Bug 3530

Summary: [PENDING] add a PKG_CHECK_EXISTS() autoconf macro
Product: pkg-config Reporter: James Henstridge <james>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description James Henstridge 2005-06-13 03:46:53 UTC
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,
somepackage_exists=no)

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
use PKG_CHECK_EXISTS().
Comment 1 James Henstridge 2005-06-13 03:48:09 UTC
Created attachment 2885 [details] [review]
check version requirement plus other minor fixes
Comment 2 Tollef Fog Heen 2005-06-26 15:51:38 UTC
2005-06-27  Tollef Fog Heen  <tfheen@err.no>

	* pkg.m4: Add PKG_CHECK_EXISTS to check if a module exists.
	Thanks to James Henstridge for the patch.
Comment 3 Tollef Fog Heen 2005-06-27 14:00:22 UTC
pkg-config 0.18 has now been released with a fix for this bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.