1#!/bin/sh 2if test "$*"; then 3 ARGS="$*" 4else 5 test -f config.log && ARGS=`grep '^ \$ \./configure ' config.log | sed 's/^ \$ \.\/configure //' 2> /dev/null` 6fi 7 8if automake-1.9 --version < /dev/null > /dev/null 2>&1 ; then 9 AUTOMAKE=automake-1.9 10 ACLOCAL=aclocal-1.9 11else 12 if automake-1.8 --version < /dev/null > /dev/null 2>&1 ; then 13 AUTOMAKE=automake-1.8 14 ACLOCAL=aclocal-1.8 15 else 16 echo 17 echo "You must have at least automake 1.7.x installed to compile $PROJECT." 18 echo "Install the appropriate package for your distribution," 19 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" 20 echo "\n" 21 echo "trying to automake anyway but YOU WERE WARNED" 22 AUTOMAKE=automake 23 ACLOCAL=aclocal 24 fi 25fi 26 27#libtoolize --force --copy --automake || exit 1 28 29$ACLOCAL -I m4 || exit 1 30 31$AUTOMAKE --no-force --copy --add-missing --foreign || exit 1 32 33autoconf || exit 1 34#test x$NOCONFIGURE = x && echo "Running ./configure $ARGS" && ./configure $ARGS 35 36