3 # Run this to generate all the initial makefiles.
5 # $Id: autogen.sh,v 1.23 2003/02/15 03:17:17 jmayer Exp $
11 # Check for python. There's no "--version" option!
12 python -c "print 'Checking for python.'"
16 You must have Python in order to compile $PROJECT.
17 Download the appropriate package for your distribution/OS,
18 or get the source tarball at http://www.python.org/
24 ACVER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'`
26 0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \
27 2\.1[0-2] | 2\.1[0-2][a-z]* )
30 You must have autoconf 2.13 or later installed to compile $PROJECT.
31 Download the appropriate package for your distribution/OS,
32 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
39 AMVER=`automake --version | grep '^automake' | sed 's/.*)//'`
41 0* | 1\.[0-3] | 1\.[0-3][a-z]* )
45 You must have automake 1.4 or later installed to compile $PROJECT.
46 Download the appropriate package for your distribution/OS,
47 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
54 LTVER=`libtool --version | grep ' libtool)' | \
55 sed 's/.*) \([0-9][0-9.]*\) .*/\1/' `
57 0* | 1\.[0-2] | 1\.[0-2][a-z]* | \
58 1\.3\.[0-2] | 1\.3\.[0-2][a-z]* )
62 You must have libtool 1.3.3 or later installed to compile $PROJECT.
63 Download the appropriate package for your distribution/OS,
64 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
73 # We do NOT want libtoolize overwriting our versions of config.guess and
74 # config.sub, so move them away and then move them back.
75 # We don't omit "--force", as we want libtoolize to install other files
78 mv config.guess config.guess.save-libtool
79 mv config.sub config.sub.save-libtool
80 libtoolize --copy --force || exit 1
81 rm -f config.guess config.sub
82 mv config.guess.save-libtool config.guess
83 mv config.sub.save-libtool config.sub
85 #if test -z "$*"; then
86 # echo "Running ./configure with no arguments. If you wish to pass any,"
87 # echo "please specify them on the $0 command line."
90 if glib-config --version >/dev/null 2>&1 ; then
91 rm -f aclocal-missing/glib.m4
93 cp aclocal-fallback/glib.m4 aclocal-missing/
95 if gtk-config --version >/dev/null 2>&1 ; then
96 rm -f aclocal-missing/gtk.m4
98 cp aclocal-fallback/gtk.m4 aclocal-missing/
100 if pkg-config glib-2.0 >/dev/null 2>&1 ; then
101 rm -f aclocal-missing/glib-2.0.m4
103 cp aclocal-fallback/glib-2.0.m4 aclocal-missing/
105 if pkg-config gtk+-2.0 >/dev/null 2>&1 ; then
106 rm -f aclocal-missing/gtk-2.0.m4
108 cp aclocal-fallback/gtk-2.0.m4 aclocal-missing/
111 for dir in . epan wiretap ; do
115 if [ "$dir" = "." ] ; then
120 aclocal_flags=`$topdir/aclocal-flags`
121 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
122 echo aclocal $aclocalinclude
123 aclocal $aclocalinclude || 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."