Commit a22c2bec authored by Sam Hocevar's avatar Sam Hocevar

* bootstrap:

    + Run libtoolize before aclocal.
    + Support automake 1.8.
parent b8146fc6
#! /bin/sh #! /bin/sh
## bootstrap file for libdvbpsi -- Sam Hocevar <sam@zoy.org> ## generic bootstrap file for libraries -- Sam Hocevar <sam@zoy.org>
## $Id: bootstrap,v 1.5 2003/11/06 10:13:40 sam Exp $ ## $Id$
set -x set -x
set -e set -e
...@@ -14,7 +14,9 @@ export CYGWIN ...@@ -14,7 +14,9 @@ export CYGWIN
# Check for automake # Check for automake
amvers="no" amvers="no"
if automake-1.7 --version >/dev/null 2>&1; then if automake-1.8 --version >/dev/null 2>&1; then
amvers="-1.8"
elif automake-1.7 --version >/dev/null 2>&1; then
amvers="-1.7" amvers="-1.7"
elif automake-1.6 --version >/dev/null 2>&1; then elif automake-1.6 --version >/dev/null 2>&1; then
amvers="-1.6" amvers="-1.6"
...@@ -37,10 +39,10 @@ fi ...@@ -37,10 +39,10 @@ fi
# Check for libtool # Check for libtool
libtoolize="no" libtoolize="no"
if libtoolize --version >/dev/null 2>&1; then if glibtoolize --version >/dev/null 2>&1; then
libtoolize="libtoolize"
elif glibtoolize --version >/dev/null 2>&1; then
libtoolize="glibtoolize" libtoolize="glibtoolize"
elif libtoolize --version >/dev/null 2>&1; then
libtoolize="libtoolize"
fi fi
if test "$libtoolize" = "no"; then if test "$libtoolize" = "no"; then
...@@ -54,14 +56,13 @@ rm -f aclocal.m4 configure config.guess config.log config.sub config.cache confi ...@@ -54,14 +56,13 @@ rm -f aclocal.m4 configure config.guess config.log config.sub config.cache confi
rm -Rf autom4te.cache rm -Rf autom4te.cache
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh) (cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
aclocal${amvers}
${libtoolize} --copy --force ${libtoolize} --copy --force
if test -f "ltmain.sh"; then if test -f "ltmain.sh"; then
echo "$0: working around a minor libtool issue" echo "$0: working around a minor libtool issue"
mv ltmain.sh autotools/ mv ltmain.sh autotools/
fi fi
aclocal${amvers}
autoconf autoconf
autoheader autoheader
automake${amvers} --add-missing --copy automake${amvers} --add-missing --copy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment