test/configure.in
changeset 8014 0a4b6dec7de5
parent 7981 6d538bc1b395
child 8021 f96e12e0ade9
equal deleted inserted replaced
8013:109299fe73ad 8014:0a4b6dec7de5
   133 ],[
   133 ],[
   134 have_opengles=yes
   134 have_opengles=yes
   135 ])
   135 ])
   136 AC_MSG_RESULT($have_opengles)
   136 AC_MSG_RESULT($have_opengles)
   137 
   137 
       
   138 dnl Check for OpenGL ES2
       
   139 AC_MSG_CHECKING(for OpenGL ES2 support)
       
   140 have_opengles2=no
       
   141 AC_TRY_COMPILE([
       
   142  #if defined (__IPHONEOS__)
       
   143     #include <OpenGLES/ES2/gl.h>
       
   144     #include <OpenGLES/ES2/glext.h>
       
   145  #else
       
   146     #include <GLES2/gl2.h>
       
   147     #include <GLES2/gl2ext.h>
       
   148  #endif
       
   149 ],[
       
   150 ],[
       
   151 have_opengles2=yes
       
   152 ])
       
   153 AC_MSG_RESULT($have_opengles2)
       
   154 
   138 GLLIB=""
   155 GLLIB=""
   139 GLESLIB=""
   156 GLESLIB=""
       
   157 GLES2LIB=""
   140 if test x$have_opengles = xyes; then
   158 if test x$have_opengles = xyes; then
   141     CFLAGS="$CFLAGS -DHAVE_OPENGLES"
   159     CFLAGS="$CFLAGS -DHAVE_OPENGLES"
   142     GLESLIB="$XPATH -lGLESv1_CM"
   160     GLESLIB="$XPATH -lGLESv1_CM"
       
   161 fi
       
   162 if test x$have_opengles2 = xyes; then
       
   163     CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
       
   164     GLES2LIB="$XPATH -lGLESv2"
   143 fi
   165 fi
   144 if test x$have_opengl = xyes; then
   166 if test x$have_opengl = xyes; then
   145     CFLAGS="$CFLAGS -DHAVE_OPENGL"
   167     CFLAGS="$CFLAGS -DHAVE_OPENGL"
   146     GLLIB="$XPATH $SYS_GL_LIBS"
   168     GLLIB="$XPATH $SYS_GL_LIBS"
   147 fi
   169 fi
   148 
   170 
   149 AC_SUBST(GLLIB)
   171 AC_SUBST(GLLIB)
   150 AC_SUBST(GLESLIB)
   172 AC_SUBST(GLESLIB)
       
   173 AC_SUBST(GLES2LIB)
   151 AC_SUBST(XLIB)
   174 AC_SUBST(XLIB)
   152 
   175 
   153 dnl Check for SDL_ttf
   176 dnl Check for SDL_ttf
   154 AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
   177 AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
   155 if test x$have_SDL_ttf = xyes; then
   178 if test x$have_SDL_ttf = xyes; then