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-4]* | \
36 2.5[0-1] | 2.5[0-1][a-z]* )
39 You must have autoconf 2.52 or later installed to compile $PROJECT.
40 Download the appropriate package for your distribution/OS,
41 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
48 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
54 You must have automake 1.6 or later installed to compile $PROJECT.
55 Download the appropriate package for your distribution/OS,
56 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
64 # Apple's Developer Tools have a "libtool" that has nothing to do with
65 # the GNU libtool; they call the latter "glibtool". They also call
66 # libtoolize "glibtoolize".
68 # Check for "glibtool" first.
70 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
71 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
74 LTVER=`libtool --version | grep ' libtool)' | \
75 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
78 LIBTOOLIZE=glibtoolize
85 You must have libtool 1.4 or later installed to compile $PROJECT.
86 Download the appropriate package for your distribution/OS,
87 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
95 for dir in . wiretap ; do
99 if [ "$dir" = "." ] ; then
104 aclocal_flags=`$topdir/aclocal-flags`
105 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
106 echo $ACLOCAL $aclocalinclude
107 $ACLOCAL $aclocalinclude || exit 1
108 if [ "$dir" = "." ] ; then
110 # We do NOT want libtoolize overwriting our versions of config.guess and
111 # config.sub, so move them away and then move them back.
112 # We don't omit "--force", as we want libtoolize to install other files
115 mv config.guess config.guess.save-libtool
116 mv config.sub config.sub.save-libtool
117 LTARGS=" --copy --force"
118 echo $LIBTOOLIZE $LTARGS
119 $LIBTOOLIZE $LTARGS || exit 1
120 rm -f config.guess config.sub
121 mv config.guess.save-libtool config.guess
122 mv config.sub.save-libtool config.sub
125 $AUTOHEADER || exit 1
126 echo $AUTOMAKE --add-missing --gnu $am_opt
127 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
133 #./configure "$@" || exit 1
136 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."