Bug 2172

Summary: --atleast-pkgconfig-version and --define-variable weirdness
Product: pkg-config Reporter: dave benson <daveb>
Component: srcAssignee: Scott James Remnant <scott>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description dave benson 2004-12-29 14:53:46 UTC
I'm trying to set PKG_CONFIG="pkg-config --define-variable=prefix=/whatever" but
it's not working because of a option parsing issue.

Basically,
  pkg-config --define-variable=foo=bar --atleast-pkgconfig-version=0.0.9
works (succeeds with the latest pkgconfig), but if you omit the second '=',
then
  pkg-config --define-variable=foo=bar --atleast-pkgconfig-version 0.0.9
fails!

If pkg.m4 didn't use the no-= version, then this problem would not affect me.
So a patch that merely changes that might be good (for users of older pkgconfig
versions).

Maybe upgrading popt in pkg-config would fix the problem...
Comment 1 Tollef Fog Heen 2005-04-02 01:46:49 UTC
You can drop the =, so it'll be 

--define-variable foo=bar

It seems popt doesn't support mixing = and non-= options in the same command line.

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.