2005-06-22 11:20:32 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
2006-03-29 00:25:00 -08:00
|
|
|
builddir=`pwd`
|
|
|
|
|
2005-06-22 11:20:32 -07:00
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
2005-11-03 14:56:53 -08:00
|
|
|
if test -d $srcdir/m4 ; then
|
2006-03-29 00:25:00 -08:00
|
|
|
m4dir=`cd $srcdir/m4 && pwd`
|
|
|
|
aclocal_extra="-I $m4dir"
|
2005-06-23 19:18:15 -07:00
|
|
|
fi
|
|
|
|
|
2006-03-29 00:25:00 -08:00
|
|
|
cd $srcdir
|
|
|
|
echo "Generating configuration files..."
|
|
|
|
|
2005-11-03 14:56:53 -08:00
|
|
|
ACLOCAL=${ACLOCAL:-aclocal-1.9}
|
|
|
|
AUTOMAKE=${AUTOMAKE:-automake-1.9}
|
2005-06-23 19:18:15 -07:00
|
|
|
|
2005-11-03 14:56:53 -08:00
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
2005-06-23 19:18:15 -07:00
|
|
|
|
2005-11-03 14:56:53 -08:00
|
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
2005-06-23 19:18:15 -07:00
|
|
|
|
2005-11-03 14:56:53 -08:00
|
|
|
echo $LIBTOOLIZE --automake --copy
|
|
|
|
$LIBTOOLIZE --automake --copy || exit $?
|
|
|
|
|
|
|
|
echo $ACLOCAL $ACLOCAL_FLAGS $aclocal_extra
|
|
|
|
$ACLOCAL $ACLOCAL_FLAGS $aclocal_extra || exit $?
|
|
|
|
|
|
|
|
echo $AUTOHEADER
|
|
|
|
$AUTOHEADER || exit $?
|
|
|
|
|
2006-04-20 15:59:37 -07:00
|
|
|
echo $AUTOMAKE --add-missing --copy --foreign
|
|
|
|
$AUTOMAKE --add-missing --copy --foreign || exit $?
|
2005-11-03 14:56:53 -08:00
|
|
|
|
|
|
|
echo $AUTOCONF
|
|
|
|
$AUTOCONF || exit $?
|
2005-10-30 13:16:22 -08:00
|
|
|
|
2006-03-29 00:25:00 -08:00
|
|
|
if test -z $1; then
|
|
|
|
echo
|
|
|
|
echo "run '$srcdir/configure ; make ; make install'"
|
|
|
|
echo
|
|
|
|
else
|
2006-04-28 14:06:26 -07:00
|
|
|
if test $1 = "do" -o $1 = "--do"; then
|
|
|
|
shift
|
|
|
|
fi
|
2006-03-29 00:25:00 -08:00
|
|
|
cd $builddir
|
|
|
|
$srcdir/configure $*
|
|
|
|
fi
|