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
=.
14 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
16 echo "You must have autoconf installed to compile $PROJECT."
17 echo "Install the appropriate package for your distribution,"
18 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
22 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
24 echo "You must have automake installed to compile $PROJECT."
25 echo "Install the appropriate package for your distribution,"
26 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
31 ($LIBTOOLIZE --version) < /dev
/null
> /dev
/null
2>&1 ||
{
32 LIBTOOLIZE
=glibtoolize
33 ($LIBTOOLIZE --version) < /dev
/null
> /dev
/null
2>&1 ||
{
35 echo "You must have libtool installed to compile $PROJECT."
36 echo "Install the appropriate package for your distribution,"
37 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
42 if test "$DIE" -eq 1; then
46 rm -rf $top_srcdir/autom4te.cache
48 aclocal
-I m4 ||
exit $?
49 $LIBTOOLIZE --force ||
exit $?
51 automake
--foreign --add-missing ||
exit $?
56 $srcdir/configure
$AUTOGEN_CONFIGURE_ARGS "$@" ||
exit $?