fi
fi
echo "Running aclocal $ACLOCAL_OPTS"
-aclocal $ACLOCAL_OPTS
+aclocal $ACLOCAL_OPTS 2> autogen.err
echo "Running autoheader"
-autoheader
+autoheader 2>> autogen.err
+if [ ! -e simgear/simgear_config.h.in ]; then
+ echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
+ echo "Aborting ... consulte autogen.err for details."
+ exit 1
+fi
echo -n "Running automake"
if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then
echo " --add-missing --include-deps"
- automake --add-missing --include-deps
+ automake --add-missing --include-deps 2>> autogen.err
else
echo " --add-missing"
- automake --add-missing
+ automake --add-missing 2>> autogen.err
fi
echo "Running autoconf"
-autoconf
+autoconf 2>> autogen.err
+
+if [ ! -e configure ]; then
+ echo "ERROR: configure was not created!"
+ echo "Aborting ... consulte autogen.err for details."
+ exit 1
+fi
# fixup Makefiles for Irix
if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
echo "Now you are ready to run './configure'"
echo "======================================"
+
+rm -f autogen.err