2001-12-29 11:35:31 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-01-17 23:21:49 +08:00
|
|
|
OSTYPE=`uname -s`
|
|
|
|
MACHINE=`uname -m`
|
2002-09-03 06:18:31 +08:00
|
|
|
AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
|
2002-09-04 05:44:44 +08:00
|
|
|
if test $AUTO_MAKE_VERSION -lt 15; then
|
|
|
|
echo ""
|
|
|
|
echo "You need to upgrade to automake version 1.5 or greater."
|
|
|
|
echo "Most distributions have packages available to install or you can"
|
|
|
|
echo "find the source for the most recent version at"
|
|
|
|
echo "ftp://ftp.gnu.org/gnu/automake"
|
|
|
|
exit 1
|
|
|
|
fi
|
2002-01-17 23:21:49 +08:00
|
|
|
|
|
|
|
echo "Host info: $OSTYPE $MACHINE"
|
|
|
|
echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
|
|
|
|
echo " ($AUTO_MAKE_VERSION)"
|
|
|
|
echo ""
|
|
|
|
|
2002-09-06 23:30:11 +08:00
|
|
|
echo "Running aclocal"
|
|
|
|
aclocal
|
2001-12-29 11:35:31 +08:00
|
|
|
|
|
|
|
echo "Running autoheader"
|
2002-08-25 02:21:49 +08:00
|
|
|
autoheader
|
2002-08-24 11:54:45 +08:00
|
|
|
if [ ! -e simgear/simgear_config.h.in ]; then
|
|
|
|
echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
|
|
|
|
exit 1
|
|
|
|
fi
|
2001-12-29 11:35:31 +08:00
|
|
|
|
2002-09-06 23:30:11 +08:00
|
|
|
echo "Running automake --add-missing"
|
|
|
|
automake --add-missing
|
2001-12-29 11:35:31 +08:00
|
|
|
|
|
|
|
echo "Running autoconf"
|
2002-08-25 02:21:49 +08:00
|
|
|
autoconf
|
2002-08-24 11:54:45 +08:00
|
|
|
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
echo "ERROR: configure was not created!"
|
|
|
|
exit 1
|
|
|
|
fi
|
2001-12-29 11:35:31 +08:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "======================================"
|
|
|
|
|
|
|
|
if [ -f config.cache ]; then
|
|
|
|
echo "config.cache exists. Removing the config.cache file will force"
|
|
|
|
echo "the ./configure script to rerun all it's tests rather than using"
|
|
|
|
echo "the previously cached values."
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Now you are ready to run './configure'"
|
|
|
|
echo "======================================"
|