X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bootstrap;h=1eaa5664030b6146cd08afce156ccfacac090e42;hb=d7f669675704b62500959d9782320ce1810c3c91;hp=a17fb78e978def60bad70a5393fb73a855a2a736;hpb=01946f2369d3744ce7db0785a7bb53f3e8de262d;p=vlc diff --git a/bootstrap b/bootstrap index a17fb78e97..1eaa566403 100755 --- a/bootstrap +++ b/bootstrap @@ -19,24 +19,21 @@ fi ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}" +# Check for tools directory +if test -d extras/tools/build/bin; then + PATH="`pwd`/extras/tools/build/bin:$PATH" +fi + ### ### Get a sane environment, just in case ### CYGWIN=binmode export CYGWIN -# Check for contrib directory -if test -d extras/contrib/build/bin; then - PATH="`pwd`/extras/contrib/build/bin:$PATH" - if test -d extras/contrib/build/share/aclocal; then - ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/build/share/aclocal" - fi - if test ".`uname -s`" = ".Darwin"; then - LD_LIBRARY_PATH=./extras/contrib/build/lib:$LD_LIBRARY_PATH - DYLD_LIBRARY_PATH=./extras/contrib/build/lib:$DYLD_LIBRARY_PATH - export LD_LIBRARY_PATH - export DYLD_LIBRARY_PATH - 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 @@ -44,21 +41,6 @@ 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 @@ -82,7 +64,7 @@ echo "generating modules/**/Makefile.am" find modules/ -name Modules.am | \ sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \ while read d; do - sh modules/genmf "$d" + ${CONFIG_SHELL-sh} modules/genmf "$d" printf "." done printf "\n"