# HG changeset patch # User Sam Lantinga # Date 1183190993 0 # Node ID 1164b2b282a2f553d35bf2ab4394ea64e90696bf # Parent f903dc1682172ecac5095f0c144c3ab662136eaf OpenGL is in the X11 directory on some systems. diff -r f903dc168217 -r 1164b2b282a2 test/configure.in --- a/test/configure.in Sat Jun 30 03:47:50 2007 +0000 +++ b/test/configure.in Sat Jun 30 08:09:53 2007 +0000 @@ -68,6 +68,21 @@ CFLAGS="$CFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" +dnl Check for X11 path, needed for OpenGL on some systems +AC_PATH_X +if test x$have_x = xyes; then + if test x$ac_x_includes = xno || test x$ac_x_includes = x; then + : + else + CFLAGS="$CFLAGS -I$ac_x_includes" + fi + if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then + : + else + XPATH="-L$ac_x_libraries" + fi +fi + dnl Check for OpenGL AC_MSG_CHECKING(for OpenGL support) have_opengl=no @@ -80,7 +95,7 @@ AC_MSG_RESULT($have_opengl) if test x$have_opengl = xyes; then CFLAGS="$CFLAGS -DHAVE_OPENGL" - GLLIB="$SYS_GL_LIBS" + GLLIB="$XPATH $SYS_GL_LIBS" else GLLIB="" fi