-
- # test for glutGameModeString, but avoid adding glut a second time into
- # the list of libraries
- save_LIBS="$LIBS"
- AC_CHECK_LIB(glut, glutGameModeString)
- LIBS="$save_LIBS"
-else
- # Win32 is a little wierd because it has to try to handle the various
- # winbloze-isms. We'll just do this manually for now.
-
- echo Win32 specific hacks...
- AC_DEFINE([WIN32], 1, [Define if building on a Win32 platform])
-
- # force a failed check since we will be building under windoze
- AM_CONDITIONAL(ENABLE_XMESA_FX, test "no" = "yes")
-
- # just define these to true and hope for the best
- ac_cv_lib_glut_glutGetModifiers="yes"
- ac_cv_lib_glut_glutGameModeString="yes"
-
- if test "x$with_sgi_opengl" = "xyes" ; then
- echo "Building with glut.dll, glu.dll, and opengl.dll"
- WIN32_GLUT=glut
- WIN32_GLU=glu
- WIN32_OPENGL=opengl
- else
- echo "Building with glut32.dll, glu32.dll, and opengl32.dll"
- WIN32_GLUT=glut32
- WIN32_GLU=glu32
- WIN32_OPENGL=opengl32
+ if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno" ; then
+ dnl if no "real" glut, check for freeglut
+ AC_CHECK_LIB(freeglut, glutGetModifiers)