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 $?
|
|
|
|
|
|
|
|
echo $AUTOMAKE --add-missing --copy
|
|
|
|
$AUTOMAKE --add-missing --copy || exit $?
|
|
|
|
|
|
|
|
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
|
|
|
|
cd $builddir
|
|
|
|
$srcdir/configure $*
|
|
|
|
fi
|