X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=autogen.sh;h=a929538d20a626286197af48899ff6ce0c5ed645;hp=1c0fc61156971033268bd0a11156d287f2827d58;hb=cfe3f58b2e4c444d7906337bba507f8a23f84830;hpb=18dafb65d9e1094b17483b4cdbd336a962081402;ds=sidebyside diff --git a/autogen.sh b/autogen.sh index 1c0fc6115697..a929538d20a6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,23 +11,35 @@ cd $srcdir DIE=0 (autoconf --version) < /dev/null > /dev/null 2>&1 || { - echo - echo "You must have autoconf installed to compile $PROJECT." - echo "Install the appropriate package for your distribution," - echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" - DIE=1 + echo + echo "You must have autoconf installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" + DIE=1 } (automake --version) < /dev/null > /dev/null 2>&1 || { - echo - echo "You must have automake installed to compile $PROJECT." - echo "Install the appropriate package for your distribution," - echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" - DIE=1 + echo + echo "You must have automake installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" + DIE=1 +} + +LIBTOOLIZE=libtoolize +($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + LIBTOOLIZE=glibtoolize + ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have libtool installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/" + DIE=1 + } } if test "$DIE" -eq 1; then - exit 1 + exit 1 fi rm -rf $top_srcdir/autom4te.cache @@ -35,7 +47,7 @@ rm -rf $top_srcdir/autom4te.cache touch README INSTALL aclocal || exit $? -libtoolize --force || exit $? +$LIBTOOLIZE --force || exit $? autoheader || exit $? automake --foreign --add-missing || exit $? autoconf || exit $?