1998-04-03 22:35:10 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
dnl The basis for this file was generated by autoscan(1) [pere 1998-03-19]
|
|
|
|
dnl
|
1998-04-06 15:56:04 +00:00
|
|
|
AC_INIT(Simulator/Aircraft/aircraft.c)
|
1998-04-03 22:35:10 +00:00
|
|
|
|
|
|
|
dnl Initialize the automake stuff
|
1998-05-07 23:02:53 +00:00
|
|
|
AM_INIT_AUTOMAKE(FlightGear, 0.46)
|
1998-04-03 22:35:10 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
dnl Initialize libtool
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl Initialize maintainer mode
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
dnl Check to see if this `configure' is being run in the `Cygwin32' environment
|
|
|
|
AM_CYGWIN32
|
|
|
|
|
|
|
|
dnl extra library and include directories
|
|
|
|
if test "x$am_cv_cygwin32" = "xyes" ; then
|
|
|
|
wi_EXTRA_DIRS(no, /store /usr/local /local /user/local /usr/share \
|
|
|
|
/usr/X11R6 /opt/X11R6 `pwd`/Win32)
|
|
|
|
else
|
|
|
|
wi_EXTRA_DIRS(no, /store /usr/local /local /user/local /usr/share \
|
|
|
|
/usr/X11R6 /opt/X11R6)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Check for X11 (fancy)
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
|
|
|
|
AC_CHECK_LIB(m, cos)
|
|
|
|
AC_CHECK_LIB(socket, socket)
|
|
|
|
AC_CHECK_LIB(X11, XCreateWindow)
|
|
|
|
AC_CHECK_LIB(Xext, XShmCreateImage)
|
|
|
|
AC_CHECK_LIB(Xi, XGetExtensionVersion)
|
1998-04-14 02:45:53 +00:00
|
|
|
AC_CHECK_LIB(ICE, IceOpenConnection)
|
|
|
|
AC_CHECK_LIB(SM, SmcOpenConnection)
|
|
|
|
AC_CHECK_LIB(Xt, XtMalloc)
|
1998-04-03 22:35:10 +00:00
|
|
|
AC_CHECK_LIB(Xmu, XmuLookupStandardColormap)
|
|
|
|
|
|
|
|
AC_CHECK_LIB(GLcore, glNewList)
|
|
|
|
if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
|
|
|
|
dnl if no GLcore, check for GL
|
|
|
|
AC_CHECK_LIB(GL, glNewList)
|
|
|
|
if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
|
|
|
|
dnl if no GL, check for MesaGL
|
|
|
|
AC_CHECK_LIB(MesaGL, glNewList)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dnl if GLcore found, then also check for GL
|
|
|
|
AC_CHECK_LIB(GL, glXCreateContext)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_LIB(GLU, gluLookAt)
|
|
|
|
if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
|
|
|
|
dnl if no GLU, check for MesaGLU
|
|
|
|
AC_CHECK_LIB(MesaGLU, gluLookAt)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_LIB(glut, glutGetModifiers)
|
|
|
|
|
|
|
|
dnl cygwin32 is a little wierd because it has to try to handle the various
|
|
|
|
dnl winbloze-isms. We'll just do this manually for now.
|
|
|
|
if test "x$am_cv_cygwin32" = "xyes" ; then
|
|
|
|
echo Cygnus Win32 specific hacks...
|
|
|
|
AC_DEFINE(WIN32)
|
|
|
|
|
|
|
|
dnl Note, the double square brackets are required becuase single brackets
|
|
|
|
dnl seem to get stripped out
|
|
|
|
if [[ -f `pwd`/Win32/glut.dll ]]; then
|
|
|
|
echo " found glut.dll, adding -lglut"
|
|
|
|
LIBS="$LIBS -lglut"
|
|
|
|
else
|
|
|
|
echo " Cannot find glut.dll"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [[ -f `pwd`/Win32/glu.dll ]]; then
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " found glu.dll"
|
1998-04-03 22:35:10 +00:00
|
|
|
else
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " Can't find glu.dll, assuming it's someplace"
|
1998-04-03 22:35:10 +00:00
|
|
|
fi
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " adding -lglu"
|
|
|
|
LIBS="$LIBS -lglu"
|
1998-04-03 22:35:10 +00:00
|
|
|
if [[ -f `pwd`/Win32/opengl.dll ]]; then
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " found opengl.dll"
|
1998-04-03 22:35:10 +00:00
|
|
|
else
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " Can't find opengl.dll, assuming it's somplace"
|
1998-04-03 22:35:10 +00:00
|
|
|
fi
|
1998-04-09 01:43:36 +00:00
|
|
|
echo " adding -lopengl"
|
|
|
|
LIBS="$LIBS -lopengl"
|
1998-04-03 22:35:10 +00:00
|
|
|
echo " adding -luser32 -lgdi32"
|
|
|
|
LIBS="$LIBS -luser32 -lgdi32"
|
|
|
|
ac_cv_lib_glut_glutGetModifiers="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS( fcntl.h getopt.h malloc.h stdlib.h sys/time.h sys/timeb.h \
|
|
|
|
unistd.h windows.h winbase.h values.h )
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
AC_CHECK_FUNCS( ftime gettimeofday mktime strstr rand random \
|
1998-04-26 05:01:07 +00:00
|
|
|
setitimer getitimer signal GetLocalTime rint )
|
1998-04-03 22:35:10 +00:00
|
|
|
|
|
|
|
if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno"; then
|
|
|
|
echo
|
|
|
|
echo "Unable to find the necessary GL libraries."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1998-04-14 02:45:53 +00:00
|
|
|
AM_CONFIG_HEADER(Include/config.h)
|
1998-04-03 22:35:10 +00:00
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
1998-04-14 02:45:53 +00:00
|
|
|
Include/Makefile \
|
|
|
|
Lib/Makefile \
|
|
|
|
Lib/Bucket/Makefile \
|
1998-04-18 03:57:08 +00:00
|
|
|
Lib/Debug/Makefile \
|
1998-04-14 02:45:53 +00:00
|
|
|
Lib/DEM/Makefile \
|
1998-04-18 03:57:08 +00:00
|
|
|
Lib/Math/Makefile \
|
1998-04-14 02:45:53 +00:00
|
|
|
Lib/XGL/Makefile \
|
1998-04-18 03:57:08 +00:00
|
|
|
Lib/zlib/Makefile \
|
1998-04-09 01:43:36 +00:00
|
|
|
Simulator/Makefile \
|
1998-04-06 15:56:04 +00:00
|
|
|
Simulator/Aircraft/Makefile \
|
|
|
|
Simulator/Astro/Makefile \
|
1998-04-14 02:45:53 +00:00
|
|
|
Simulator/Autopilot/Makefile \
|
1998-04-06 15:56:04 +00:00
|
|
|
Simulator/Cockpit/Makefile \
|
|
|
|
Simulator/Controls/Makefile \
|
|
|
|
Simulator/Flight/LaRCsim/Makefile \
|
|
|
|
Simulator/Flight/Slew/Makefile \
|
1998-04-09 01:43:36 +00:00
|
|
|
Simulator/Flight/Makefile \
|
1998-04-06 15:56:04 +00:00
|
|
|
Simulator/Joystick/Makefile \
|
|
|
|
Simulator/Main/Makefile \
|
1998-04-09 01:43:36 +00:00
|
|
|
Simulator/Main/runfg \
|
|
|
|
Simulator/Main/runfg.bat \
|
1998-04-06 15:56:04 +00:00
|
|
|
Simulator/Makefile \
|
|
|
|
Simulator/Scenery/Makefile \
|
|
|
|
Simulator/Time/Makefile \
|
|
|
|
Simulator/Weather/Makefile \
|
1998-04-09 01:43:36 +00:00
|
|
|
Tools/Makefile \
|
|
|
|
Tools/AssemTris/Makefile \
|
|
|
|
Tools/Dem2node/Makefile \
|
1998-04-18 03:57:08 +00:00
|
|
|
Tools/DemRaw2ascii/Makefile \
|
1998-04-09 01:43:36 +00:00
|
|
|
Tools/FixNode/Makefile \
|
|
|
|
Tools/FixObj/Makefile \
|
|
|
|
Tools/SplitTris/Makefile \
|
|
|
|
Tools/Stripe_u/Makefile \
|
|
|
|
Tools/Tri2obj/Makefile \
|
|
|
|
Tools/Triangle/Makefile \
|
1998-04-25 14:59:29 +00:00
|
|
|
Tests/Makefile \
|
1998-04-03 22:35:10 +00:00
|
|
|
)
|