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=.
11 LIBTOOLIZE_FLAGS="--force --automake"
12 ACLOCAL_FLAGS="-I autotools"
13 AUTOMAKE_FLAGS="--foreign --add-missing"
17 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
19 echo "You must have gtkdocize installed to compile $PROJECT."
20 echo "Install the appropriate package for your distribution,"
21 echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
25 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
27 echo "You must have autoconf installed to compile $PROJECT."
28 echo "Install the appropriate package for your distribution,"
29 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
33 (automake --version) < /dev/null > /dev/null 2>&1 || {
35 echo "You must have automake 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/automake/"
42 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
43 LIBTOOLIZE=glibtoolize
44 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
46 echo "You must have libtool installed to compile $PROJECT."
47 echo "Install the appropriate package for your distribution,"
48 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
53 if test "$DIE" -eq 1; then
57 rm -rf $top_srcdir/autom4te.cache
62 aclocal $ACLOCAL_FLAGS || exit $?
63 $LIBTOOLIZE $LIBTOOLIZE_FLAGS || exit $?
65 automake $AUTOMAKE_FLAGS || exit $?
70 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?