]> git.sesse.net Git - vlc/commitdiff
bootstrap: Warn if contrib hasn't been built (on Mac OS X). (good for new comers).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 28 May 2007 18:27:44 +0000 (18:27 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 28 May 2007 18:27:44 +0000 (18:27 +0000)
bootstrap

index ba7c30e81bdf88b2dcd835954d38b492765bc1cf..841c31bc6c85b0597570155bb04944f381b0bbf1 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -40,6 +40,20 @@ if test -d extras/contrib/bin; then
     ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
   fi
   if test ".`uname -s`" = ".Darwin"; then
+    # Make sure contrib has been built
+    if test ! -e ./extras/contrib/config.mak; then
+        set +x
+        echo ""
+        echo "ERR: Contribs haven't been built"
+        echo "ERR: Please run:"
+        echo ""
+        echo "ERR:    'cd extras/contrib && ./bootstrap && make && cd ../..'"
+        echo ""
+        echo "ERR: Make sure fink has been disabled too"
+        echo ""
+        set -x
+        exit 1
+    fi
     export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
     export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
   elif test ".`uname -s`" = ".BeOS"; then