bullet3/autogen.sh

36 lines
495 B
Bash
Raw Normal View History

2006-05-25 19:18:29 +00:00
#! /bin/sh
if test ! -f configure.ac ; then
echo "*** Please invoke this script from directory containing configure.ac."
exit 1
fi
MACROFILE=aclocal.m4
MACRODIR=mk/autoconf
rm -f $MACROFILE
echo "Running aclocal"
aclocal
2006-05-25 19:18:29 +00:00
for i in $MACRODIR/*.m4 ; do
cat $i >> $MACROFILE
done
echo "Running automake --add-missing"
automake --add-missing
echo "Running autoheader"
2006-05-25 19:18:29 +00:00
autoheader
rc=$?
if test $rc -eq 0; then
echo "Running autoconf"
2006-05-25 19:18:29 +00:00
autoconf
rc=$?
fi
#rm -f $MACROFILE
2006-05-25 19:18:29 +00:00
exit $rc