]> git.mxchange.org Git - flightgear.git/blobdiff - autogen.sh
Initial checkin of a TurbineEngine implementation. This hasn't been
[flightgear.git] / autogen.sh
index 201a536e8c1ae72ac500978010f2ea6d6b2adcd1..c4a3061a132c575e2ad2f5098d409eee41026260 100755 (executable)
@@ -2,58 +2,42 @@
 
 OSTYPE=`uname -s`
 MACHINE=`uname -m`
-AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\-p[0-9]$//' | sed -e 's/\.//'`
+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 ""
 
-ACLOCAL_OPTS=""
-if [ $AUTO_MAKE_VERSION -ge 14 ]; then
-    if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then    echo " -I ."
-        ACLOCAL_OPTS="-I ."
-    fi
-fi
-echo "Running aclocal $ACLOCAL_OPTS"
-aclocal $ACLOCAL_OPTS 2> autogen.err
+echo "Running aclocal"
+aclocal
 
 echo "Running autoheader"
-autoheader 2>> autogen.err
+autoheader
 if [ ! -e src/Include/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 2>> autogen.err
-else
-    echo " --add-missing"
-    automake --add-missing 2>> autogen.err
-fi
+echo "Running automake --add-missing"
+automake --add-missing
 
 echo "Running autoconf"
-autoconf 2>> autogen.err
+autoconf
 
 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 "Fixing Makefiles for Irix"
-    for n in `find . -name Makefile.in`; do \
-        mv -f $n $n.ar-new; \
-        sed 's/$(AR) cru /$(AR) -o /g' $n.ar-new > $n; \
-        rm -f $n.ar-new; \
-    done;
-fi
-
 echo ""
 echo "======================================"
 
@@ -66,5 +50,3 @@ fi
 
 echo "Now you are ready to run './configure'"
 echo "======================================"
-
-rm -f autogen.err