The following patch adds a PKG_CHECK_EXISTS() macro. A fair number of Gnome
packages do things like this:
PKG_CHECK_MODULES(NOTUSED, somepackage, somepackage_exists=yes,
And don't use the resulting NOTUSED_CFLAGS / NOTUSED_LIBS environment variables.
The PKG_CHECK_EXISTS() macro only does the --exists check, without setting
variables or exiting if there is no ACTION-IF-NOT-FOUND and the check fails. It
also logs the check to config.log. I also modified the _PKG_CONFIG() macro to
Created attachment 2885 [details] [review]
check version requirement plus other minor fixes
2005-06-27 Tollef Fog Heen <email@example.com>
* pkg.m4: Add PKG_CHECK_EXISTS to check if a module exists.
Thanks to James Henstridge for the patch.
pkg-config 0.18 has now been released with a fix for this bug.