1999-08-17 15:56:46 -07:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2004-04-20 14:30:58 -07:00
|
|
|
srcdir=`dirname $0`
|
1999-08-17 15:56:46 -07:00
|
|
|
|
2006-02-04 06:20:12 -08:00
|
|
|
(test -d src && test -d dox) || {
|
2006-02-11 01:36:11 -08:00
|
|
|
echo "You must run this script in the top-level directory"
|
|
|
|
exit 1
|
1999-08-17 15:56:46 -07:00
|
|
|
}
|
|
|
|
|
2006-02-04 06:20:12 -08:00
|
|
|
echo "Generating configuration files, please wait...."
|
1999-12-21 07:10:04 -08:00
|
|
|
|
2006-02-04 06:20:12 -08:00
|
|
|
rm -rf autom4te.cache
|
|
|
|
rm -f aclocal.m4
|
1999-08-17 15:56:46 -07:00
|
|
|
|
2006-02-04 06:20:12 -08:00
|
|
|
echo "Running autopoint -f"
|
|
|
|
autopoint -f || gautopoint -f || exit 1
|
2007-01-07 11:15:15 -08:00
|
|
|
rm -f ABOUT-NLS
|
2006-02-04 06:20:12 -08:00
|
|
|
echo "Running aclocal -I m4 $ACLOCAL_FLAGS"
|
|
|
|
aclocal -I m4 $ACLOCAL_FLAGS || exit 1
|
|
|
|
echo "Running autoconf"
|
|
|
|
autoconf || exit 1
|
|
|
|
echo "Running autoheader"
|
|
|
|
autoheader || exit 1
|
2006-09-10 11:43:20 -07:00
|
|
|
echo "Running libtoolize"
|
|
|
|
libtoolize --copy --automake || glibtoolize --automake || exit 1
|
2006-02-04 06:20:12 -08:00
|
|
|
echo "Running automake --add-missing"
|
2006-08-24 12:59:18 -07:00
|
|
|
automake --copy --add-missing || exit 1
|
1999-08-17 15:56:46 -07:00
|
|
|
|
2006-02-11 01:36:11 -08:00
|
|
|
if test x$NOCONFIGURE != x; then
|
|
|
|
echo "Skipping configure process."
|
|
|
|
exit
|
|
|
|
fi
|
2006-02-04 06:20:12 -08:00
|
|
|
|
|
|
|
#conf_flags="--enable-maintainer-mode --enable-compile-warnings"
|
1999-08-17 15:56:46 -07:00
|
|
|
|
|
|
|
if test -z "$*"; then
|
2006-02-11 01:36:11 -08:00
|
|
|
echo "I am going to run ./configure with no arguments - if you wish "
|
|
|
|
echo "to pass any to it, please specify them on the $0 command line."
|
1999-08-17 15:56:46 -07:00
|
|
|
fi
|
|
|
|
|
2006-02-11 01:36:11 -08:00
|
|
|
echo "Running $srcdir/configure $conf_flags $@ ..."
|
|
|
|
$srcdir/configure $conf_flags "$@"
|