From 7dfe0bf9b22d3c0dbfdae1ab850273fd28f1606d Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 11 Dec 2002 19:57:00 +0000 Subject: [PATCH] Remove -lmk4 from the LIBS after the version check is complete. --- configure.ac | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index a12582a5..c16390d4 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,21 @@ AM_CONDITIONAL(HAVE_THREADS, test "x$ac_cv_lib_pthread_pthread_exit" = "xyes" -a AC_CHECK_LIB(socket, socket) +dnl check for glut location +AC_CHECK_HEADER(GL/glut.h) +if test "x$ac_cv_header_GL_glut_h" = "xyes"; then + AC_DEFINE([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([GLUT_H], "GLUT/glut.h", [Define as glut.h include location]) + else + echo "Neither GL/glut.h nor GLUT/glut.h found. Cannot continue" + exit + fi +fi + +dnl check for OpenGL related libraries case "${host}" in *-*-cygwin* | *-*-mingw32*) dnl CygWin under Windoze. @@ -221,20 +236,6 @@ case "${host}" in esac -dnl check for glut location -AC_CHECK_HEADER(GL/glut.h) -if test "x$ac_cv_header_GL_glut_h" = "xyes"; then - AC_DEFINE([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([GLUT_H], "GLUT/glut.h", [Define as glut.h include location]) - else - echo "Neither GL/glut.h nor GLUT/glut.h found. Cannot continue" - exit - fi -fi - opengl_LIBS="$LIBS" LIBS="$base_LIBS" @@ -334,6 +335,8 @@ Also, look up this issue in the FlightGear FAQ.])], AC_MSG_RESULT(yes) ) +LIBS="$saved_LIBS" + AC_LANG_POP dnl Check for system installed zlib -- 2.39.5