dnl Initialize the automake stuff
dnl set the $host variable based on local machine/os
AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE(FlightGear, 0.9.5-pre1)
+AM_INIT_AUTOMAKE(FlightGear, 0.9.6)
dnl Checks for programs.
AC_PROG_MAKE_SET
fi
AM_CONDITIONAL(ENABLE_MPLAYER_AS, test "x$with_multiplayer" != "xno")
+AC_ARG_ENABLE(sp_fdms, [ --enable-sp-fdms Include special purpose Flight Models], [enable_sp_fdms="$enableval"] )
+AC_DEFINE([ENABLE_SP_FMDS], test "x$enable_sp_fdms" = "xyes", [Define to include special purpose FDMs])
+AM_CONDITIONAL(ENABLE_SP_FDM, test "x$enable_sp_fdms" != "xno")
+
dnl Thread related checks
# defaults to yes
AC_SEARCH_LIBS(cos, m)
AC_SEARCH_LIBS(dlclose, dl)
+dnl search for FreeBSD library
+AC_SEARCH_LIBS(hid_init, usbhid)
+
base_LIBS="$LIBS"
dnl Check for SDL if enabled.
-AC_ARG_ENABLE(sdl, [ --enable-sdl Configure to use SDL instead of GLUT], enable_sdl="yes", enable_sdl="")
+AC_ARG_ENABLE(sdl, [ --enable-sdl Configure to use SDL instead of GLUT], [enable_sdl="$enableval"])
AM_CONDITIONAL(USE_SDL, test "x$enable_sdl" = "xyes")
if test "x$enable_sdl" = "xyes"; then
AC_DEFINE([PU_USE_SDL], 1, [Define to use SDL])
AC_DEFINE([PU_USE_GLUT], 1, [Define to use glut])
fi
-dnl check for glut location
-AC_CHECK_HEADER(GL/glut.h)
-if test "x$ac_cv_header_GL_glut_h" = "xyes"; then
- AC_DEFINE([FG_GLUT_H], <GL/glut.h>, [Define as glut.h include location])
-else
- AC_CHECK_HEADER(GLUT/glut.h)
- if test "x$ac_cv_header_GLUT_glut_h" = "xyes"; then
- AC_DEFINE([FG_GLUT_H], <GLUT/glut.h>, [Define as glut.h include location])
- else
- if test "x$enable_sdl" != "xyes"; then
- echo "Neither GL/glut.h nor GLUT/glut.h found. Cannot continue"
- exit
- fi
- fi
-fi
-
dnl check for OpenGL related libraries
case "${host}" in
*-*-cygwin* | *-*-mingw32*)
exit
fi
-AC_MSG_CHECKING([for simgear 0.3.6 or newer])
+AC_MSG_CHECKING([for simgear 0.3.7 or newer])
AC_TRY_RUN([
#include <stdio.h>
#define MIN_MAJOR 0
#define MIN_MINOR 3
-#define MIN_MICRO 6
+#define MIN_MICRO 7
int main() {
int major, minor, micro;
- printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
+ /* printf("%d.%d.%d or greater, ", MIN_MAJOR, MIN_MINOR, MIN_MICRO); */
+ printf("[found %s] ... ", STRINGIFY(SIMGEAR_VERSION));
sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, µ );
- if ( major < MIN_MAJOR ) {
- return -1;
- } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
- return -1;
- } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
+ if ( (major < MIN_MAJOR) ||
+ (major == MIN_MAJOR && minor < MIN_MINOR) ||
+ (major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO) ) {
return -1;
}
LIBS="$saved_LIBS"
-dnl Check if SimGear was built with Norman JPEG factory support
+dnl Check if SimGear was built with Norman's JPEG factory support
AC_CHECK_HEADER(simgear/screen/jpgfactory.hxx)
if test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes"; then
AC_CHECK_LIB(jpeg, jpeg_start_compress)
src/Makefile \
src/Include/Makefile \
src/Include/version.h \
+ src/Include/config.h-msvc6 \
src/Aircraft/Makefile \
src/Airports/Makefile \
src/ATC/Makefile \
src/FDM/JSBSim/Makefile \
src/FDM/JSBSim/filtersjb/Makefile \
src/FDM/LaRCsim/Makefile \
+ src/FDM/SP/Makefile \
src/FDM/UIUCModel/Makefile \
src/FDM/YASim/Makefile \
src/FDM/Makefile \
else
echo "threads: no"
fi
+
+if test "x$enable_sp_fdms" != "xno"; then
+ echo "Include special purpose flight models: yes"
+else
+ echo "Include special purpose flight models: no"
+fi
+