2 # Run this to set up the build system: configure, makefiles, etc.
3 # (based on the version in enlightenment's cvs)
9 test -z "$srcdir" && srcdir=.
14 echo "checking for autoconf... "
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17 echo "You must have autoconf installed to compile $package."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
23 echo "checking for automake... "
24 (automake --version) < /dev/null > /dev/null 2>&1 || {
26 echo "You must have automake installed to compile $package."
27 echo "Download the appropriate package for your system,"
28 echo "or get the source from one of the GNU ftp sites"
29 echo "listed in http://www.gnu.org/order/ftp.html"
33 echo -n "checking for libtool... "
34 for LIBTOOLIZE in libtoolize glibtoolize nope; do
35 (which $LIBTOOLIZE) > /dev/null 2>&1 && break
37 if test x$LIBTOOLIZE = xnope; then
43 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
45 echo "You must have libtool installed to compile $package."
46 echo "Download the appropriate package for your system,"
47 echo "or get the source from one of the GNU ftp sites"
48 echo "listed in http://www.gnu.org/order/ftp.html"
52 if test "$DIE" -eq 1; then
57 echo "I am going to run ./configure with no arguments - if you wish "
58 echo "to pass any to it, please specify them on the $0 command line."
61 echo "Generating configuration files for $package, please wait...."
63 echo " aclocal $ACLOCAL_FLAGS"
64 aclocal $ACLOCAL_FLAGS
67 echo " $LIBTOOLIZE --automake"
68 $LIBTOOLIZE --automake
69 echo " automake --add-missing $AUTOMAKE_FLAGS"
70 automake --add-missing $AUTOMAKE_FLAGS
75 $srcdir/configure "$@" && echo