AC_PREREQ(2.52)
dnl Initialize the automake stuff
-AM_INIT_AUTOMAKE(SimGear, 0.3.3)
+AM_INIT_AUTOMAKE(SimGear, 0.3.5)
dnl Specify KAI C++ compiler and flags.
dnl Borrowed with slight modification from blitz distribution.
if test "x$CXX" = "xCC" -o "x$CXX" = "xccache CC"; then
AR="$CXX -ar"
ARFLAGS="-o"
- CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility"
+ CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro740"
compatibility_DIR="compatibility"
+ MIPSpro_DIRS="MIPSpro740"
+ AC_MSG_CHECKING([for MIPSpro compiler version 7.4 or newer])
+ AC_TRY_RUN([
+ int main() {
+ if ( _COMPILER_VERSION < 740 ) {
+ return -1;
+ }
+ return 0;
+ }
+
+ ], AC_MSG_RESULT(yes),
+ [ AC_MSG_RESULT(no)
+ CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro721"
+ MIPSpro_DIRS="$(MIPSpro_DIRS) MIPSpro721"
+ AC_MSG_WARN([Using our own subset of the STL headers])
+ ], AC_MSG_RESULT(yes))
+ AC_SUBST(MIPSpro_DIRS)
fi
;;
*)
fi
AM_CONDITIONAL(ENABLE_JPEG_SERVER, test "x$with_jpeg_factory" = "xyes")
+# specify the plib location
+AC_ARG_WITH(plib, [ --with-plib=PREFIX Specify the prefix path to plib])
+
+if test "x$with_plib" != "x" ; then
+ echo "plib prefix is $with_plib"
+ EXTRA_DIRS="${EXTRA_DIRS} $with_plib"
+fi
dnl Determine an extra directories to add to include/lib search paths
case "${host}" in
if test -d /opt/X11R6 ; then
EXTRA_DIR2="/opt/X11R6"
fi
- EXTRA_DIRS="$EXTRA_DIR1 $EXTRA_DIR2"
+ EXTRA_DIRS="${EXTRA_DIRS} $EXTRA_DIR1 $EXTRA_DIR2"
;;
esac
AC_STRUCT_TM
dnl Checks for library functions.
+old_LIBS=$LIBS
+LIBS="$base_LIBS $network_LIBS $opengl_LIBS"
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS( \
+AC_CHECK_FUNCS( [ \
ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
- random drand48 setitimer getitimer signal GetLocalTime rint getrusage )
+ random drand48 setitimer getitimer signal GetLocalTime rint getrusage ] )
+LIBS=$old_LIBS
AM_CONFIG_HEADER(simgear/simgear_config.h)
simgear/Makefile \
simgear/version.h \
simgear/compatibility/Makefile \
+ simgear/compatibility/MIPSpro721/Makefile \
+ simgear/compatibility/MIPSpro740/Makefile \
simgear/bucket/Makefile \
simgear/debug/Makefile \
simgear/ephemeris/Makefile \
simgear/io/Makefile \
simgear/magvar/Makefile \
simgear/math/Makefile \
- simgear/metar/Makefile \
+ simgear/environment/Makefile \
simgear/misc/Makefile \
+ simgear/nasal/Makefile \
simgear/props/Makefile \
simgear/route/Makefile \
simgear/scene/Makefile \
simgear/screen/Makefile \
simgear/serial/Makefile \
simgear/sound/Makefile \
+ simgear/structure/Makefile \
simgear/threads/Makefile \
simgear/timing/Makefile \
simgear/xgl/Makefile \