3 # Allow invocation from a separate build directory; in that case, we change
4 # to the source directory to run the auto*, then change back before running configure
6 test -z "$srcdir" && srcdir=.
13 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo "You must have autoconf installed to compile $PROJECT."
16 echo "Install the appropriate package for your distribution,"
17 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
21 (automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo "You must have automake installed to compile $PROJECT."
24 echo "Install the appropriate package for your distribution,"
25 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
29 if test "$DIE" -eq 1; then
33 rm -rf $top_srcdir/autom4te.cache
38 libtoolize --force || exit $?
40 automake --foreign --add-missing || exit $?
45 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?