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
+echo "Running aclocal"
+aclocal
echo "Running autoheader"
autoheader
exit 1
fi
-echo -n "Running automake"
-if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then
- echo " --add-missing --include-deps"
- automake --add-missing --include-deps
-else
- echo " --add-missing"
- automake --add-missing
-fi
+echo "Running automake --add-missing"
+automake --add-missing
echo "Running autoconf"
autoconf
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 "======================================"
AC_PROG_INSTALL
AC_PROG_LN_S
+
+# Used on the Irix platform
AR="ar"
+ARFLAGS="cru"
OS=`uname -s`
if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then
if test "$CXX" = "CC"; then
AR="CC -ar"
- AC_SUBST(AR)
+ ARFLAGS="-o"
fi
fi
+AC_SUBST(AR)
+AC_SUBST(ARFLAGS)
+
if echo $includedir | egrep "simgear$" > /dev/null; then
echo "includedir is" $includedir "libdir is" $libdir