configure.in
changeset 8022 7396e3cc5337
parent 8016 3746af784462
child 8056 abd9434c5d3e
equal deleted inserted replaced
8021:f96e12e0ade9 8022:7396e3cc5337
  1736         AC_DEFINE(SDL_VIDEO_OPENGL_WGL, 1, [ ])
  1736         AC_DEFINE(SDL_VIDEO_OPENGL_WGL, 1, [ ])
  1737         AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
  1737         AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
  1738     fi
  1738     fi
  1739 }
  1739 }
  1740 
  1740 
       
  1741 dnl Check for Windows OpenGL
       
  1742 CheckWINDOWSGLES()
       
  1743 {
       
  1744     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
       
  1745 
       
  1746         AC_MSG_CHECKING(for EGL support)
       
  1747         video_opengl_egl=no
       
  1748         AC_TRY_COMPILE([
       
  1749          #include <EGL/egl.h>
       
  1750         ],[
       
  1751         ],[
       
  1752         video_opengl_egl=yes
       
  1753         ])
       
  1754         AC_MSG_RESULT($video_opengl_egl)
       
  1755         if test x$video_opengl_egl = xyes; then
       
  1756             AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
       
  1757             AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
       
  1758         fi
       
  1759        
       
  1760         AC_MSG_CHECKING(for OpenGL ES v2 headers)
       
  1761         video_opengles_v2=no
       
  1762         AC_TRY_COMPILE([
       
  1763          #include <GLES2/gl2.h>
       
  1764          #include <GLES2/gl2ext.h>
       
  1765         ],[
       
  1766         ],[
       
  1767         video_opengles_v2=yes
       
  1768         ])
       
  1769         AC_MSG_RESULT($video_opengles_v2)
       
  1770         if test x$video_opengles_v2 = xyes; then
       
  1771             AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
       
  1772             AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
       
  1773             AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
       
  1774         fi
       
  1775     fi
       
  1776 }
       
  1777 
  1741 dnl Check for Haiku OpenGL
  1778 dnl Check for Haiku OpenGL
  1742 CheckHaikuGL()
  1779 CheckHaikuGL()
  1743 {
  1780 {
  1744     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  1781     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  1745         AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
  1782         AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
  2513         CheckDummyVideo
  2550         CheckDummyVideo
  2514         CheckDiskAudio
  2551         CheckDiskAudio
  2515         CheckDummyAudio
  2552         CheckDummyAudio
  2516         CheckWINDOWS
  2553         CheckWINDOWS
  2517         CheckWINDOWSGL
  2554         CheckWINDOWSGL
       
  2555         CheckWINDOWSGLES
  2518         CheckDIRECTX
  2556         CheckDIRECTX
  2519 
  2557 
  2520         # Set up the core platform files
  2558         # Set up the core platform files
  2521         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  2559         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  2522 
  2560