2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
16 if libtool --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version | libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
18 case $libtool_version in
24 if $have_libtool ; then : ; else
26 echo "You must have libtool 1.4 installed to compile $PROJECT."
27 echo "Install the appropriate package for your distribution,"
28 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
32 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
34 echo "You must have autoconf installed to compile $PROJECT."
35 echo "libtool the appropriate package for your distribution,"
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
41 if automake --version < /dev/null > /dev/null 2>&1 ; then
42 automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
43 case $automake_version in
51 if $have_automake ; then : ; else
53 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
54 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
55 echo "(or a newer version if it is available)"
59 if test "$DIE" -eq 1; then
63 test $TEST_TYPE $FILE || {
64 echo "You must run this script in the top-level $PROJECT directory"
68 if test -z "$AUTOGEN_SUBDIR_MODE"; then
70 echo "I am going to run ./configure with no arguments - if you wish "
71 echo "to pass any to it, please specify them on the $0 command line."
76 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
79 aclocal $ACLOCAL_FLAGS
81 # optionally feature autoheader
82 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
88 if test -z "$AUTOGEN_SUBDIR_MODE"; then
89 $srcdir/configure --enable-maintainer-mode --enable-gtk-doc "$@"
92 echo "Now type 'make' to compile $PROJECT."