$ pkg-config --atleast-pkgconfig-version 0.20 $ echo $? 0 but $ pkg-config --define-variable=prefix=foo --atleast-pkgconfig-version 0.20 $ echo $? 1 .. so using PKG_CONFIG to override a prefix doesn't work with configures that test pkg-config's version this way. Moo.
As a workaround, if you use the same sort of options (with or without =), it works better: : tfheen@qurzaw ~ > pkg-config --define-variable=prefix=foo --atleast-pkgconfig-version=0.20 : tfheen@qurzaw ~ > echo $? 0 : tfheen@qurzaw ~ > pkg-config --define-variable prefix=foo --atleast-pkgconfig-version 0.20 : tfheen@qurzaw ~ > echo $? 0 I agree it looks like a bug in the popt option parsing library, it ought to allow you to mix a bit more freely.
*** This bug has been marked as a duplicate of bug 9584 ***
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.