3 # Run this to generate all the initial makefiles.
10 # If you are going to use the non-default name for automake becase your OS
11 # installaion has multiple versions, you need to call both aclocal and automake
12 # with that version number, as they come from the same package.
15 ACLOCAL=aclocal$AM_VERSION
17 AUTOMAKE=automake$AM_VERSION
20 # Check for python. There's no "--version" option!
21 python -c "print 'Checking for python.'"
25 You must have Python in order to compile $PROJECT.
26 Download the appropriate package for your distribution/OS,
27 or get the source tarball at http://www.python.org/
33 ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
35 '' | 0.* | 1.* | 2.[0-5]* )
38 You must have autoconf 2.60 or later installed to compile $PROJECT.
39 Download the appropriate package for your distribution/OS,
40 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
47 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
56 You must have automake 1.9 or later installed to compile $PROJECT.
57 Download the appropriate package for your distribution/OS,
58 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
66 # Apple's Developer Tools have a "libtool" that has nothing to do with
67 # the GNU libtool; they call the latter "glibtool". They also call
68 # libtoolize "glibtoolize".
70 # Check for "glibtool" first.
72 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
73 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
76 LTVER=`libtool --version | grep ' libtool)' | \
77 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
80 LIBTOOLIZE=glibtoolize
87 You must have libtool 1.4 or later installed to compile $PROJECT.
88 Download the appropriate package for your distribution/OS,
89 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
97 aclocal_flags=`./aclocal-flags`
98 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
99 echo $ACLOCAL $aclocalinclude
100 $ACLOCAL $aclocalinclude || exit 1
102 # We do NOT want libtoolize overwriting our versions of config.guess and
103 # config.sub, so move them away and then move them back.
104 # We don't omit "--force", as we want libtoolize to install other files
107 mv config.guess config.guess.save-libtool
108 mv config.sub config.sub.save-libtool
109 LTARGS=" --copy --force"
110 echo $LIBTOOLIZE $LTARGS
111 $LIBTOOLIZE $LTARGS || exit 1
112 rm -f config.guess config.sub
113 mv config.guess.save-libtool config.guess
114 mv config.sub.save-libtool config.sub
116 $AUTOHEADER || exit 1
117 echo $AUTOMAKE --add-missing --gnu $am_opt
118 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
122 #./configure "$@" || exit 1
125 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."