GNOME Bugzilla – Bug 749507
gtk-2.0.m4 fails to detect a prefixed pkg-config
Last modified: 2015-05-22 04:12:05 UTC
Created attachment 303488 [details] [review] Patch which changes gtk-2.0.m4 to use PKG_PROG_PKG_CONFIG With the current code used in the m4 macro, gtk-2.0.m4 can't find a prefixed pkg-config. This presents issue when cross compiling, as pkg-config needs to be prefixed to work with the target being compiled for; ex. `x86_64-pc-linux-gnu-pkg-config` can't be used to compile for a `i686-pc-linux-gnu` target, so we need to use `i686-pc-linux-gnu-pkg-config`. I've included a patch which fixes this to use PKG_PROG_PKG_CONFIG rather than the custom detection code currently in it. I've tested this on Exherbo Linux.
Review of attachment 303488 [details] [review]: Shouldn't this have some AC_REQUIRE([PKG_PROG_PKG_CONFIG]) then ?
Created attachment 303622 [details] [review] gtk-2.0.m4-fix-pkg-config-detection.patch Second revision. Added AC_REQUIRE([PKG_PROG_PKG_CONFIG]).