Browse code

configure: warn if pkg-config is missing

Signed-off-by: Mans Rullgard <mans@mansr.com>

Mans Rullgard authored on 2011/05/06 00:45:12
Showing 1 changed files
... ...
@@ -1827,6 +1827,11 @@ set_default cc nm pkg_config sysinclude
1827 1827
 enabled cross_compile || host_cc_default=$cc
1828 1828
 set_default host_cc
1829 1829
 
1830
+if ! $pkg_config --version >/dev/null 2>&1; then
1831
+    warn "$pkg_config not found, library detection may fail."
1832
+    pkg_config=false
1833
+fi
1834
+
1830 1835
 exesuf() {
1831 1836
     case $1 in
1832 1837
         mingw32*|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;