3 # Run this to generate all the initial makefiles.
5 # $Id: autogen.sh,v 1.35 2004/05/02 00:43:43 guy Exp $
15 # Check for python. There's no "--version" option!
16 python -c "print 'Checking for python.'"
20 You must have Python in order to compile $PROJECT.
21 Download the appropriate package for your distribution/OS,
22 or get the source tarball at http://www.python.org/
28 ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
30 '' | 0.* | 1.* | 2.[0-4]* | \
31 2.5[0-1] | 2.5[0-1][a-z]* )
34 You must have autoconf 2.52 or later installed to compile $PROJECT.
35 Download the appropriate package for your distribution/OS,
36 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
43 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
49 You must have automake 1.6 or later installed to compile $PROJECT.
50 Download the appropriate package for your distribution/OS,
51 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
59 # Apple's Developer Tools have a "libtool" that has nothing to do with
60 # the GNU libtool; they call the latter "glibtool". They also call
61 # libtoolize "glibtoolize".
63 # Check for "glibtool" first.
65 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
66 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
69 LTVER=`libtool --version | grep ' libtool)' | \
70 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
73 LIBTOOLIZE=glibtoolize
80 You must have libtool 1.4 or later installed to compile $PROJECT.
81 Download the appropriate package for your distribution/OS,
82 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
91 # We do NOT want libtoolize overwriting our versions of config.guess and
92 # config.sub, so move them away and then move them back.
93 # We don't omit "--force", as we want libtoolize to install other files
96 mv config.guess config.guess.save-libtool
97 mv config.sub config.sub.save-libtool
98 LTARGS=" --copy --force"
99 echo $LIBTOOLIZE $LTARGS
100 $LIBTOOLIZE $LTARGS || exit 1
101 rm -f config.guess config.sub
102 mv config.guess.save-libtool config.guess
103 mv config.sub.save-libtool config.sub
105 for dir in . wiretap ; do
109 if [ "$dir" = "." ] ; then
114 aclocal_flags=`$topdir/aclocal-flags`
115 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
116 echo $ACLOCAL $aclocalinclude
117 $ACLOCAL $aclocalinclude || exit 1
119 $AUTOHEADER || exit 1
120 echo $AUTOMAKE --add-missing --gnu $am_opt
121 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
127 #./configure "$@" || exit 1
130 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."