2010-08-30 22:19:58 -07:00
|
|
|
[ -z "$ACLOCAL" ] && ACLOCAL=aclocal
|
|
|
|
[ -z "$AUTOCONF" ] && AUTOCONF=autoconf
|
|
|
|
[ -z "$AUTOHEADER" ] && AUTOHEADER=autoheader
|
|
|
|
[ -z "$AUTOMAKE" ] && AUTOMAKE=automake
|
|
|
|
|
|
|
|
workingdir=`pwd`
|
2010-12-26 20:18:16 -08:00
|
|
|
rel_srcdir=`dirname "$0"`
|
|
|
|
srcdir=`cd "$rel_srcdir" && pwd`
|
2010-08-30 22:19:58 -07:00
|
|
|
|
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
# autoreconf --verbose --install --force || exit $!
|
|
|
|
|
|
|
|
run_cmd() {
|
|
|
|
echo "$@"
|
|
|
|
"$@" || exit $!
|
|
|
|
}
|
|
|
|
|
2010-09-20 00:33:43 -07:00
|
|
|
# run_cmd libtoolize --copy --force
|
2010-08-30 22:19:58 -07:00
|
|
|
|
|
|
|
run_cmd $ACLOCAL --force -I m4 $ACLOCAL_FLAGS
|
|
|
|
run_cmd $AUTOCONF --force
|
|
|
|
run_cmd $AUTOHEADER --force
|
|
|
|
run_cmd $AUTOMAKE --add-missing --copy --force-missing
|
2010-12-26 20:18:16 -08:00
|
|
|
|
|
|
|
if [ "$1" ]; then
|
|
|
|
cd $workingdir && run_cmd $rel_srcdir/configure --enable-dev-mode "$@"
|
|
|
|
else
|
|
|
|
echo "Done. Run '$rel_srcdir/configure --enable-dev-mode' to configure"
|
|
|
|
fi
|