do not default to non-prefixed pkg-config when cross compiling
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Dec 2010 10:43:56 +0000 (11:43 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 14 Jan 2011 16:11:59 +0000 (16:11 +0000)
This can still be requested with PKG_CONFIG=/path/to/pkg-config.
Just do not use it as a default, and print a warning.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 7eabae45ad1d56ce3f209048e741a2501b23c877..c6e4aa05a89b51f79f818d4bf05d68c0f1b5c253 100755 (executable)
--- a/configure
+++ b/configure
@@ -1163,8 +1163,8 @@ fi
 # pkg-config probe
 
 if ! has $pkg_config; then
-  # likely not cross compiling, or hope for the best
-  pkg_config=pkg-config
+  echo warning: proceeding without "$pkg_config" >&2
+  pkg_config=/bin/false
 fi
 
 ##########################################