]> git.mxchange.org Git - flightgear.git/commitdiff
Don't link agains OpenGL libraries when it's not needed
authorehofman <ehofman>
Mon, 7 Jul 2003 11:26:48 +0000 (11:26 +0000)
committerehofman <ehofman>
Mon, 7 Jul 2003 11:26:48 +0000 (11:26 +0000)
configure.ac

index 27091e02814fbcd239f15275a85d6c616fecefe0..79dff6c37a386332a82e0b34cd87c9843e9fd0c8 100644 (file)
@@ -198,12 +198,8 @@ esac
 
 dnl Checks for libraries.
 
-null_LIBS="$LIBS"
-
 AC_SEARCH_LIBS(cos, m)
 
-base_LIBS="$LIBS"
-
 dnl Thread related checks
 AC_CHECK_LIB(pthread, pthread_exit)
 if test "x$ac_cv_lib_pthread_pthread_exit" != "xyes" \
@@ -229,6 +225,9 @@ AC_SEARCH_LIBS(socket, socket)
 AC_SEARCH_LIBS(main, nsl)
 AC_SEARCH_LIBS(dlclose, dl)
 
+base_LIBS="$LIBS"
+opengl_LIBS=""
+
 dnl check for glut location
 AC_CHECK_HEADER(GL/glut.h)
 if test "x$ac_cv_header_GL_glut_h" = "xyes"; then