1999-07-27 04:43:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Run this to generate all the initial makefiles.
|
|
|
|
#
|
2000-02-11 03:17:58 +00:00
|
|
|
# $Id: autogen.sh,v 1.8 2000/02/11 03:17:43 gram Exp $
|
1999-07-27 04:43:22 +00:00
|
|
|
|
|
|
|
DIE=0
|
|
|
|
PROJECT="Ethereal"
|
|
|
|
|
1999-12-30 21:34:58 +00:00
|
|
|
#
|
|
|
|
# XXX - we should really get the version numbers into variables, and
|
|
|
|
# check to make sure they have a recent enough version, but I'm
|
|
|
|
# not sure that the version strings you get are amenable to ordered
|
|
|
|
# comparisons (e.g., I think some versions of Red Hat Linux may have
|
|
|
|
# version numbers such as "1.4a"); that may be soluble, but it might
|
|
|
|
# take some work.
|
|
|
|
#
|
1999-07-27 04:43:22 +00:00
|
|
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
1999-12-30 21:34:58 +00:00
|
|
|
echo "You must have autoconf 2.13 or later installed to compile $PROJECT."
|
1999-07-27 05:19:10 +00:00
|
|
|
echo "Download the appropriate package for your distribution/OS,"
|
1999-12-30 21:34:58 +00:00
|
|
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/"
|
1999-07-27 04:43:22 +00:00
|
|
|
DIE=1
|
|
|
|
}
|
|
|
|
|
|
|
|
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
1999-12-30 21:34:58 +00:00
|
|
|
echo "You must have automake 1.4 or later installed to compile $PROJECT."
|
|
|
|
echo "Download the appropriate package for your distribution/OS,"
|
|
|
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
|
|
|
|
DIE=1
|
|
|
|
}
|
|
|
|
|
|
|
|
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
2000-02-11 03:17:58 +00:00
|
|
|
echo "You must have libtool 1.3.3 or later installed to compile $PROJECT."
|
1999-07-27 05:19:10 +00:00
|
|
|
echo "Download the appropriate package for your distribution/OS,"
|
1999-12-30 21:34:58 +00:00
|
|
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/"
|
1999-07-27 04:43:22 +00:00
|
|
|
DIE=1
|
|
|
|
}
|
|
|
|
|
|
|
|
if test "$DIE" -eq 1 ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2000-02-11 03:17:58 +00:00
|
|
|
libtoolize --copy --force
|
|
|
|
|
1999-07-27 04:43:22 +00:00
|
|
|
if test -z "$*"; then
|
1999-08-04 00:21:37 +00:00
|
|
|
echo "Running ./configure with no arguments. If you wish to pass any,"
|
1999-07-27 04:43:22 +00:00
|
|
|
echo "please specify them on the $0 command line."
|
|
|
|
fi
|
|
|
|
|
1999-08-31 05:52:08 +00:00
|
|
|
for dir in . wiretap ; do
|
1999-07-27 04:43:22 +00:00
|
|
|
echo processing $dir
|
|
|
|
(cd $dir; \
|
|
|
|
aclocalinclude="$ACLOCAL_FLAGS"; \
|
|
|
|
aclocal $aclocalinclude; \
|
|
|
|
autoheader; automake --add-missing --gnu $am_opt; autoconf)
|
|
|
|
done
|
|
|
|
|
|
|
|
./configure "$@"
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Now type 'make' to compile $PROJECT."
|