configure
changeset 7659 ac4ce59c40e7
parent 7600 55afbc8f2a65
child 7667 be1cc6f55840
     1.1 --- a/configure	Mon Aug 19 11:02:44 2013 -0400
     1.2 +++ b/configure	Mon Aug 19 16:29:46 2013 -0300
     1.3 @@ -20547,9 +20547,9 @@
     1.4  CheckOpenGLESX11()
     1.5  {
     1.6      if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
     1.7 -        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES (EGL) support" >&5
     1.8 -$as_echo_n "checking for OpenGL ES (EGL) support... " >&6; }
     1.9 -        video_opengles=no
    1.10 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
    1.11 +$as_echo_n "checking for EGL support... " >&6; }
    1.12 +        video_opengl_egl=no
    1.13          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.14  /* end confdefs.h.  */
    1.15  
    1.16 @@ -20566,81 +20566,86 @@
    1.17  _ACEOF
    1.18  if ac_fn_c_try_compile "$LINENO"; then :
    1.19  
    1.20 -        video_opengles=yes
    1.21 -
    1.22 -fi
    1.23 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.24 -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles" >&5
    1.25 -$as_echo "$video_opengles" >&6; }
    1.26 -        if test x$video_opengles = xyes; then
    1.27 -            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
    1.28 +        video_opengl_egl=yes
    1.29 +
    1.30 +fi
    1.31 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.32 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
    1.33 +$as_echo "$video_opengl_egl" >&6; }
    1.34 +        if test x$video_opengl_egl = xyes; then
    1.35 +
    1.36 +$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
    1.37 +
    1.38 +        fi
    1.39 +
    1.40 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
    1.41  $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
    1.42 -            video_opengles_v1=no
    1.43 -            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.44 -/* end confdefs.h.  */
    1.45 -
    1.46 -             #include <GLES/gl.h>
    1.47 -             #include <GLES/glext.h>
    1.48 -
    1.49 -int
    1.50 -main ()
    1.51 -{
    1.52 -
    1.53 -
    1.54 -  ;
    1.55 -  return 0;
    1.56 -}
    1.57 -_ACEOF
    1.58 -if ac_fn_c_try_compile "$LINENO"; then :
    1.59 -
    1.60 -            video_opengles_v1=yes
    1.61 -
    1.62 -fi
    1.63 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.64 -            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
    1.65 +        video_opengles_v1=no
    1.66 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.67 +/* end confdefs.h.  */
    1.68 +
    1.69 +         #include <GLES/gl.h>
    1.70 +         #include <GLES/glext.h>
    1.71 +
    1.72 +int
    1.73 +main ()
    1.74 +{
    1.75 +
    1.76 +
    1.77 +  ;
    1.78 +  return 0;
    1.79 +}
    1.80 +_ACEOF
    1.81 +if ac_fn_c_try_compile "$LINENO"; then :
    1.82 +
    1.83 +        video_opengles_v1=yes
    1.84 +
    1.85 +fi
    1.86 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.87 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
    1.88  $as_echo "$video_opengles_v1" >&6; }
    1.89 -            if test x$video_opengles_v1 = xyes; then
    1.90 +        if test x$video_opengles_v1 = xyes; then
    1.91  
    1.92  $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
    1.93  
    1.94  
    1.95  $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
    1.96  
    1.97 -            fi
    1.98 -            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
    1.99 +        fi
   1.100 +
   1.101 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
   1.102  $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
   1.103 -            video_opengles_v2=no
   1.104 -            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.105 -/* end confdefs.h.  */
   1.106 -
   1.107 -             #include <GLES2/gl2.h>
   1.108 -             #include <GLES2/gl2ext.h>
   1.109 -
   1.110 -int
   1.111 -main ()
   1.112 -{
   1.113 -
   1.114 -
   1.115 -  ;
   1.116 -  return 0;
   1.117 -}
   1.118 -_ACEOF
   1.119 -if ac_fn_c_try_compile "$LINENO"; then :
   1.120 -
   1.121 -            video_opengles_v2=yes
   1.122 -
   1.123 -fi
   1.124 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.125 -            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
   1.126 +        video_opengles_v2=no
   1.127 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.128 +/* end confdefs.h.  */
   1.129 +
   1.130 +         #include <GLES2/gl2.h>
   1.131 +         #include <GLES2/gl2ext.h>
   1.132 +
   1.133 +int
   1.134 +main ()
   1.135 +{
   1.136 +
   1.137 +
   1.138 +  ;
   1.139 +  return 0;
   1.140 +}
   1.141 +_ACEOF
   1.142 +if ac_fn_c_try_compile "$LINENO"; then :
   1.143 +
   1.144 +        video_opengles_v2=yes
   1.145 +
   1.146 +fi
   1.147 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.148 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
   1.149  $as_echo "$video_opengles_v2" >&6; }
   1.150 -            if test x$video_opengles_v2 = xyes; then
   1.151 +        if test x$video_opengles_v2 = xyes; then
   1.152  
   1.153  $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
   1.154  
   1.155  
   1.156  $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
   1.157  
   1.158 -            fi
   1.159          fi
   1.160      fi
   1.161  }