]> git.mxchange.org Git - simgear.git/blobdiff - autogen.sh
SGExpression bugfix: allow <sin> within <product>
[simgear.git] / autogen.sh
index 22d20ab620acf1658dfcf288081b3b56ce4d8564..84bbd4248a7babd4ce7d8d45b91fdb2fca07e6a5 100755 (executable)
@@ -1,17 +1,43 @@
 #!/bin/sh
 
+OSTYPE=`uname -s`
+MACHINE=`uname -m`
+AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
+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
+
+echo "Host info: $OSTYPE $MACHINE"
+echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
+echo " ($AUTO_MAKE_VERSION)"
+echo ""
+
 echo "Running aclocal"
 aclocal
 
 echo "Running autoheader"
 autoheader
+if [ ! -e simgear/simgear_config.h.in ]; then
+    echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
+    exit 1
+fi    
 
-echo "Running automake"
+echo "Running automake --add-missing"
 automake --add-missing
 
 echo "Running autoconf"
 autoconf
 
+if [ ! -e configure ]; then
+    echo "ERROR: configure was not created!"
+    exit 1
+fi
+
 echo ""
 echo "======================================"