]> git.sesse.net Git - vlc/commitdiff
bootstrap: fail if pkg-config is absent
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 19 Sep 2011 14:45:48 +0000 (17:45 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 19 Sep 2011 14:46:12 +0000 (17:46 +0300)
It is still possible to compile from tarball without pkg-config, though
the result will probably be quite useless.

bootstrap

index a17fb78e978def60bad70a5393fb73a855a2a736..38f85ff2891ec439d556ef4a5009d7bef09fb8d1 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -39,26 +39,17 @@ if test -d extras/contrib/build/bin; then
   fi
 fi
 
+# Check for pkg-config
+if ! "${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
+       echo 'Error: "pkg-config" is not installed.' >&2
+       exit 1
+fi
+
 # Prepare m4/private.m4
 rm -f m4/private.m4 && cat > m4/private.m4 << EOF
 dnl  Private VLC macros - generated by bootstrap
 EOF
 
-# Check for pkg-config
-if ! pkg-config --version >/dev/null 2>&1; then
-       cat << EOF
-NOTE: "pkg-config" is missing from your system.
-Many underlying libraries will not be detected.
-==============================================================
-
-EOF
-       cat >> m4/private.m4 << EOF
-dnl  User does not have pkg-config, so assume package was not found
-AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
-
-EOF
-fi
-
 # Check for autopoint (GNU gettext)
 export AUTOPOINT
 test "$AUTOPOINT" || AUTOPOINT=autopoint