do not default to non-prefixed pkg-config when cross compiling

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>
This commit is contained in:
Paolo Bonzini 2010-12-23 11:43:56 +01:00 committed by Blue Swirl
parent a8bd70ad3b
commit 0842154128

4
configure vendored
View File

@ -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
##########################################