#! /bin/sh
## bootstrap file for the VLC media player
-## $Id: bootstrap,v 1.82 2003/11/06 10:09:16 sam Exp $
+## $Id$
##
## Authors: Sam Hocevar <sam@zoy.org>
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
do
printf "."
mf="modules/${dir}/Modules.am"
- basedir="${dir%%\/*}"
+ basedir="`echo "${dir}" | cut -f1 -d/`"
# automake will not recurse for make dist if we don't define SUBDIRS = .
subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
rm -f modules/${dir}/Makefile.am && cat > modules/${dir}/Makefile.am << EOF