2 AC_ARG_ENABLE(opengltest,
3 [ --disable-opengltest Do not try to compile and run a test OpenGL program],
4 , enable_opengltest=yes)
5 AC_MSG_CHECKING(for OpenGL support)
7 if test "x$enable_opengltest" = "xyes" ; then
19 AC_MSG_RESULT($have_opengl)
20 if test x$have_opengl != xyes; then
21 AC_MSG_ERROR([*** Can't find the OpenGL library Try: http://www.opengl.org])
24 if test `uname -s` == FreeBSD; then
27 if test `uname -s` == Darwin; then
28 GL_LIBS="-framework OpenGL"
30 GL_LIBS="-lGL -lGLU -lpthread"