]> git.proxmox.com Git - qemu.git/commitdiff
configure: Make missing pkg-config an error rather than a warning
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Sep 2011 11:15:56 +0000 (12:15 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 21 Sep 2011 09:49:02 +0000 (10:49 +0100)
If pkg-config doesn't exist then make configure fail immediately
with a useful error message. Now that glib is a required dependency,
proceeding despite the missing pkg-config will just cause us to
fail later with a misleading message about glib not being present.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure

index 414317af00c9071c37bc9ae4743a727358cf076e..9ab3ab4eb09f485fa6559efd1812d1a538d13510 100755 (executable)
--- a/configure
+++ b/configure
@@ -1340,8 +1340,8 @@ fi
 # pkg-config probe
 
 if ! has $pkg_config; then
-  echo warning: proceeding without "$pkg_config" >&2
-  pkg_config=/bin/false
+  echo "Error: pkg-config binary '$pkg_config' not found"
+  exit 1
 fi
 
 ##########################################