diff options
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r-- | mk/Autoconf.mk | 9 |
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 |