Added configure options to disable OpenGL ES 1.1 and 2.0 individually
authorSam Lantinga <slouken@libsdl.org>
Mon, 13 Oct 2014 10:43:10 -0700
changeset 9155dfeb88fc5a9d
parent 9154 3331d2f57704
child 9156 f68bd6205580
Added configure options to disable OpenGL ES 1.1 and 2.0 individually
configure.in
     1.1 --- a/configure.in	Sat Oct 04 14:59:41 2014 -0400
     1.2 +++ b/configure.in	Mon Oct 13 10:43:10 2014 -0700
     1.3 @@ -1973,6 +1973,12 @@
     1.4  AC_ARG_ENABLE(video-opengles,
     1.5  AC_HELP_STRING([--enable-video-opengles], [include OpenGL ES support [[default=yes]]]),
     1.6                , enable_video_opengles=yes)
     1.7 +AC_ARG_ENABLE(video-opengles1,
     1.8 +AC_HELP_STRING([--enable-video-opengles1], [include OpenGL ES 1.1 support [[default=yes]]]),
     1.9 +              , enable_video_opengles1=yes)
    1.10 +AC_ARG_ENABLE(video-opengles2,
    1.11 +AC_HELP_STRING([--enable-video-opengles2], [include OpenGL ES 2.0 support [[default=yes]]]),
    1.12 +              , enable_video_opengles2=yes)
    1.13  
    1.14  dnl Find OpenGL ES
    1.15  CheckOpenGLESX11()
    1.16 @@ -1993,36 +1999,40 @@
    1.17              AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
    1.18          fi
    1.19              
    1.20 -        AC_MSG_CHECKING(for OpenGL ES v1 headers)
    1.21 -        video_opengles_v1=no
    1.22 -        AC_TRY_COMPILE([
    1.23 -         #include <GLES/gl.h>
    1.24 -         #include <GLES/glext.h>
    1.25 -        ],[
    1.26 -        ],[
    1.27 -        video_opengles_v1=yes
    1.28 -        ])
    1.29 -        AC_MSG_RESULT($video_opengles_v1)
    1.30 -        if test x$video_opengles_v1 = xyes; then
    1.31 -            AC_DEFINE(SDL_VIDEO_OPENGL_ES, 1, [ ])
    1.32 -            AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
    1.33 -            SUMMARY_video="${SUMMARY_video} opengl_es1"
    1.34 +        if test x$enable_video_opengles1 = xyes; then
    1.35 +            AC_MSG_CHECKING(for OpenGL ES v1 headers)
    1.36 +            video_opengles_v1=no
    1.37 +            AC_TRY_COMPILE([
    1.38 +             #include <GLES/gl.h>
    1.39 +             #include <GLES/glext.h>
    1.40 +            ],[
    1.41 +            ],[
    1.42 +            video_opengles_v1=yes
    1.43 +            ])
    1.44 +            AC_MSG_RESULT($video_opengles_v1)
    1.45 +            if test x$video_opengles_v1 = xyes; then
    1.46 +                AC_DEFINE(SDL_VIDEO_OPENGL_ES, 1, [ ])
    1.47 +                AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
    1.48 +                SUMMARY_video="${SUMMARY_video} opengl_es1"
    1.49 +            fi
    1.50          fi
    1.51          
    1.52 -        AC_MSG_CHECKING(for OpenGL ES v2 headers)
    1.53 -        video_opengles_v2=no
    1.54 -        AC_TRY_COMPILE([
    1.55 -         #include <GLES2/gl2.h>
    1.56 -         #include <GLES2/gl2ext.h>
    1.57 -        ],[
    1.58 -        ],[
    1.59 -        video_opengles_v2=yes
    1.60 -        ])
    1.61 -        AC_MSG_RESULT($video_opengles_v2)
    1.62 -        if test x$video_opengles_v2 = xyes; then
    1.63 -            AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    1.64 -            AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
    1.65 -            SUMMARY_video="${SUMMARY_video} opengl_es2"
    1.66 +        if test x$enable_video_opengles2 = xyes; then
    1.67 +            AC_MSG_CHECKING(for OpenGL ES v2 headers)
    1.68 +            video_opengles_v2=no
    1.69 +            AC_TRY_COMPILE([
    1.70 +             #include <GLES2/gl2.h>
    1.71 +             #include <GLES2/gl2ext.h>
    1.72 +            ],[
    1.73 +            ],[
    1.74 +            video_opengles_v2=yes
    1.75 +            ])
    1.76 +            AC_MSG_RESULT($video_opengles_v2)
    1.77 +            if test x$video_opengles_v2 = xyes; then
    1.78 +                AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    1.79 +                AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
    1.80 +                SUMMARY_video="${SUMMARY_video} opengl_es2"
    1.81 +            fi
    1.82          fi
    1.83      fi
    1.84  }