comparison test/configure.in @ 3990:1164b2b282a2 SDL-1.2

OpenGL is in the X11 directory on some systems.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 30 Jun 2007 08:09:53 +0000
parents a7cda692b681
children 7a4c511c980a
comparison
equal deleted inserted replaced
3989:f903dc168217 3990:1164b2b282a2
66 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 66 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
67 ) 67 )
68 CFLAGS="$CFLAGS $SDL_CFLAGS" 68 CFLAGS="$CFLAGS $SDL_CFLAGS"
69 LIBS="$LIBS $SDL_LIBS" 69 LIBS="$LIBS $SDL_LIBS"
70 70
71 dnl Check for X11 path, needed for OpenGL on some systems
72 AC_PATH_X
73 if test x$have_x = xyes; then
74 if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
75 :
76 else
77 CFLAGS="$CFLAGS -I$ac_x_includes"
78 fi
79 if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
80 :
81 else
82 XPATH="-L$ac_x_libraries"
83 fi
84 fi
85
71 dnl Check for OpenGL 86 dnl Check for OpenGL
72 AC_MSG_CHECKING(for OpenGL support) 87 AC_MSG_CHECKING(for OpenGL support)
73 have_opengl=no 88 have_opengl=no
74 AC_TRY_COMPILE([ 89 AC_TRY_COMPILE([
75 #include "SDL_opengl.h" 90 #include "SDL_opengl.h"
78 have_opengl=yes 93 have_opengl=yes
79 ]) 94 ])
80 AC_MSG_RESULT($have_opengl) 95 AC_MSG_RESULT($have_opengl)
81 if test x$have_opengl = xyes; then 96 if test x$have_opengl = xyes; then
82 CFLAGS="$CFLAGS -DHAVE_OPENGL" 97 CFLAGS="$CFLAGS -DHAVE_OPENGL"
83 GLLIB="$SYS_GL_LIBS" 98 GLLIB="$XPATH $SYS_GL_LIBS"
84 else 99 else
85 GLLIB="" 100 GLLIB=""
86 fi 101 fi
87 AC_SUBST(GLLIB) 102 AC_SUBST(GLLIB)
88 103