]> git.sesse.net Git - vlc/blobdiff - bootstrap
Make sure a couple of variables are initialized before
[vlc] / bootstrap
index 7e0213dd25d74956cf1a78a4eaf94de1be7699e5..52845507189fbe7f18df84c1819b86f813bed16e 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  bootstrap file for the VLC media player
-##  $Id: bootstrap,v 1.80 2003/10/26 14:49:26 sam Exp $
+##  $Id: bootstrap,v 1.83 2003/11/15 01:21:48 massiot Exp $
 ##
 ##  Authors: Sam Hocevar <sam@zoy.org>
 
@@ -29,6 +29,13 @@ set -x
 AUTOMAKESUCKS=no
 INSTALLSUCKS=no
 
+# Check for contrib directory
+if test -d extras/contrib/bin; then
+  export PATH=./extras/contrib/bin:$PATH
+  export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
+  export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
+fi
+
 # Check for automake
 amvers="none"
 if automake-1.7 --version >/dev/null 2>&1; then
@@ -75,16 +82,10 @@ if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
   GETTEXT=yes
 else
   # User's gettext is too old. try to continue anyway.
-  echo > ABOUT-NLS
-  mkdir -p intl
-  echo > intl/Makefile.am
   autopoint=:
   GETTEXT=old
 fi;else
   # we don't have gettext. grmbl. try to continue anyway.
-  echo > ABOUT-NLS
-  mkdir -p intl
-  echo > intl/Makefile.am
   autopoint=:
   GETTEXT=no
 fi
@@ -107,7 +108,7 @@ autoheader=autoheader
 ##
 
 set +x
-printf "generating modules/**/Makefile.am and m4/private.m4"
+echo "generating modules/**/Makefile.am and m4/private.m4"
 
 # Prepare m4/private.m4
 rm -f m4/private.m4 && cat > m4/private.m4 << EOF
@@ -325,7 +326,7 @@ BLAH
 EOF
 cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4
 
-echo "done."
+echo " done."
 
 ###
 ###  classic bootstrap stuff
@@ -334,6 +335,7 @@ set -x
 
 # remove autotools cruft
 rm -f aclocal.m4 configure config.log config.h config.h.in
+rm -Rf autom4te.cache
 # remove old autotools extra cruft
 rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
 # remove new autotools extra cruft
@@ -348,8 +350,13 @@ rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am
 # remove new vlc cruft
 rm -f stamp-builtin stamp-h* mozilla/stamp-pic
 
-# Automake complains if this is not present
+# Automake complains if these are not present
 rm -f vlc-config.in && printf "" > vlc-config.in
+if [ "$GETTEXT" != "yes" ]; then
+  test -d intl || mkdir intl
+  printf "" > intl/Makefile.am
+  printf "" > ABOUT-NLS
+fi
 
 # Do the rest
 ${autopoint} -f