aboutsummaryrefslogtreecommitdiffstats
path: root/mk/Autoconf.mk
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-03-17 12:46:41 +0000
committerkraxel <kraxel>2006-03-17 12:46:41 +0000
commit9583914ba076818ce50dbce10cce990649742952 (patch)
tree95babab75dd8d7a1d7a442311cda8332529fdd2a /mk/Autoconf.mk
parentf356778e6134001ac1543918f77d7d1217a1a3e7 (diff)
downloadfbida-9583914ba076818ce50dbce10cce990649742952.tar.gz
sync up, minor fixes
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r--mk/Autoconf.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk
index 4d25d21..aea4900 100644
--- a/mk/Autoconf.mk
+++ b/mk/Autoconf.mk
@@ -1,7 +1,7 @@
#
# simple autoconf system for GNU make
#
-# (c) 2002-2004 Gerd Knorr <kraxel@bytesex.org>
+# (c) 2002-2006 Gerd Hoffmann <kraxel@suse.de>
#
# credits for creating this one go to the autotools people because
# they managed it to annoy lots of developers and users (including
@@ -110,6 +110,13 @@ ac_resdir = $(shell \
echo "/etc/X11" || echo "/usr/X11R6/lib/X11");\
$(call ac_fini))
+# check if package is installed, via pkg-config
+# args: pkg name
+ac_pkg_config = $(shell \
+ $(call ac_init,for $(1) (using pkg-config));\
+ $(call ac_b_cmd, pkg-config $(1));\
+ $(call ac_fini))
+
########################################################################
# build Make.config