diff options
author | Mark Wielaard <mark@klomp.org> | 2004-04-09 17:14:44 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2004-04-09 17:14:44 +0000 |
commit | 9d68675206a6cd1e986add4de790c4359c9db820 (patch) | |
tree | 5c16168987c96b2696b950e8d38e996c6add3025 /autogen.sh | |
parent | 5ace7a5312a3d988a108e126af7c78a246d93d84 (diff) | |
download | classpath-9d68675206a6cd1e986add4de790c4359c9db820.tar.gz |
* autogen.sh: Check for explicit versions of the autotools installed
in /usr/bin.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh index d6216eebf..2a3b3f447 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,26 +2,51 @@ set -e -libtoolize --version | head -1 +LIBTOOLIZE=libtoolize +${LIBTOOLIZE} --version | head -1 echo "libtoolize: minimum version required: 1.4.2" -autoconf --version | head -1 + +AUTOCONF=autoconf +${AUTOCONF} --version | head -1 echo "autoconf: minimum version required: 2.59" -automake --version | head -1 + +# Autoheader is part of autoconf +AUTOHEADER=autoheader +${AUTOHEADER} --version | head -1 +echo "autoheader: minimum version required: 2.59" + +AUTOMAKE=automake +if test -x /usr/bin/automake-1.8; then + AUTOMAKE=/usr/bin/automake-1.8 +elif test -x /usr/bin/automake-1.7; then + AUTOMAKE=/usr/bin/automake-1.7 +fi +${AUTOMAKE} --version | head -1 echo "automake: minimum version required: 1.7.0" +# Aclocal is part of automake +ACLOCAL=aclocal +if test -x /usr/bin/aclocal-1.8; then + ACLOCAL=/usr/bin/aclocal-1.8 +elif test -x /usr/bin/aclocal-1.7; then + ACLOCAL=/usr/bin/aclocal-1.7 +fi +${ACLOCAL} --version | head -1 +echo "aclocal: minimum version required: 1.7.0" + echo "libtoolize ..." -libtoolize --force --copy +${LIBTOOLIZE} --force --copy echo "aclocal ..." -aclocal +${ACLOCAL} echo "autoheader ..." -autoheader --force +${AUTOHEADER} --force echo "automake ..." -automake --add-missing --copy +${AUTOMAKE} --add-missing --copy echo "autoconf ..." -autoconf --force +${AUTOCONF} --force echo "Finished" |