]> git.mxchange.org Git - flightgear.git/commitdiff
Changes to the automake/autoconf system to reduce the number of libraries
authorcurt <curt>
Wed, 4 Nov 1998 23:01:04 +0000 (23:01 +0000)
committercurt <curt>
Wed, 4 Nov 1998 23:01:04 +0000 (23:01 +0000)
that are unnecessarily linked into the various executables.

Thanks
configure.in

diff --git a/Thanks b/Thanks
index 3e0d514b89e16d9018ea4421b25ce9e0719fdc3c..13d1b5a6fc33bec9821e6f542c2dd5ccd94e43a9 100644 (file)
--- a/Thanks
+++ b/Thanks
@@ -41,7 +41,8 @@ Jim Brennan <jjb@foothill.net>
 
 
 Bernie Bright <bbright@c031.aone.net.au>
-  Many C++ style, usage, and implimentation improvements.
+  Many C++ style, usage, and implimentation improvements.  STL portability,
+  tons o' stuff. :-)
 
 
 Bernhard H. Buckel <buckel@wmad95.mathematik.uni-wuerzburg.de>
index a2bbbddab4cbe5c7d76fc0c8c9138d248fe3605b..ae3d2d1c90502e36d9fe227a9948faf180c6b28e 100644 (file)
@@ -80,14 +80,9 @@ AM_CONDITIONAL(ENABLE_IRIX_AUDIO, test -r /usr/include/audio.h)
 AM_CONDITIONAL(ENABLE_WIN32_AUDIO, test "x$ac_cv_header_windows_h" = "xyes")
 
 dnl Check for (currently Linux only style) joystick support
-# AM_CONDITIONAL(ENABLE_JOYSTICK_SUPPORT, \
-#      test -r /usr/include/linux/joystick.h \
-#      -o "x$ac_cv_header_windows_h" = "xyes" )
 
 AM_CONDITIONAL(ENABLE_LINUX_JOYSTICK, test -r /usr/include/linux/joystick.h )
 
-# AM_CONDITIONAL(ENABLE_GLUT_JOYSTICK, "x$ac_cv_header_windows_h" = "xyes" )
-
 dnl extra library and include directories
 EXTRA_DIRS="/usr/local /usr/X11R6 /opt/X11R6"
 
@@ -103,8 +98,14 @@ AC_PATH_XTRA
 
 dnl Checks for libraries.
 
+null_LIBS="$LIBS"
+
 AC_CHECK_LIB(m, cos)
-AC_CHECK_LIB(socket, socket)
+
+base_LIBS="$LIBS"
+LIBS="$null_LIBS"
+
+# AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(X11, XCreateWindow)
 AC_CHECK_LIB(Xext, XShmCreateImage)
 AC_CHECK_LIB(Xi, XGetExtensionVersion)
@@ -150,8 +151,11 @@ if test "x$ac_cv_header_windows_h" != "xyes" ; then
     dnl check for glut
     AC_CHECK_LIB(glut, glutGetModifiers)
 
-    dnl test for glutGameModeString
+    dnl test for glutGameModeString, but avoid adding glut a second time into
+    dnl the list of libraries
+    save_LIBS="$LIBS"
     AC_CHECK_LIB(glut, glutGameModeString)
+    LIBS="$save_LIBS"
 else
     dnl Win32 is a little wierd because it has to try to handle the various
     dnl winbloze-isms.  We'll just do this manually for now.
@@ -204,6 +208,13 @@ else
     ac_cv_lib_glut_glutGameModeString="yes"
 fi
 
+opengl_LIBS="$LIBS"
+LIBS="$null_LIBS"
+
+AC_SUBST(base_LIBS)
+AC_SUBST(opengl_LIBS)
+
+
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS( \
@@ -294,3 +305,4 @@ AC_OUTPUT( \
 )
 
 AC_OUTPUT_COMMANDS([chmod 755 Simulator/Main/runfgfs])
+