Merge remote branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 May 2011 02:28:12 +0000 (04:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 May 2011 02:28:23 +0000 (04:28 +0200)
* qatar/master:
  configure: warn if pkg-config is missing

Merged-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 3d08cb4d5b14aa9c4c25228d7d0a2fd708039f1a..11fb7f883761acb511895c0df9f0b52e3234eedc 100755 (executable)
--- a/configure
+++ b/configure
@@ -1857,6 +1857,11 @@ set_default cc nm pkg_config strip sysinclude
 enabled cross_compile || host_cc_default=$cc
 set_default host_cc
 
+if ! $pkg_config --version >/dev/null 2>&1; then
+    warn "$pkg_config not found, library detection may fail."
+    pkg_config=false
+fi
+
 exesuf() {
     case $1 in
         mingw32*|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;