5 AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\-p[0-9]$//' | sed -e 's/\.//'`
7 echo "Host info: $OSTYPE $MACHINE"
8 echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
9 echo " ($AUTO_MAKE_VERSION)"
13 if [ $AUTO_MAKE_VERSION -ge 14 ]; then
14 if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then echo " -I ."
18 echo "Running aclocal $ACLOCAL_OPTS"
21 echo "Running autoheader"
23 if [ ! -e simgear/simgear_config.h.in ]; then
24 echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
28 echo -n "Running automake"
29 if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then
30 echo " --add-missing --include-deps"
31 automake --add-missing --include-deps
34 automake --add-missing
37 echo "Running autoconf"
40 if [ ! -e configure ]; then
41 echo "ERROR: configure was not created!"
45 # fixup Makefiles for Irix
46 if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
47 echo "Fixing Makefiles for Irix"
48 for n in `find . -name Makefile.in`; do \
50 sed 's/$(AR) cru /$(AR) -o /g' $n.ar-new > $n; \
56 echo "======================================"
58 if [ -f config.cache ]; then
59 echo "config.cache exists. Removing the config.cache file will force"
60 echo "the ./configure script to rerun all it's tests rather than using"
61 echo "the previously cached values."
65 echo "Now you are ready to run './configure'"
66 echo "======================================"