configure
changeset 8022 7396e3cc5337
parent 8007 f4264c673a8d
child 8056 abd9434c5d3e
equal deleted inserted replaced
8021:f96e12e0ade9 8022:7396e3cc5337
 20701 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
 20701 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
 20702 
 20702 
 20703     fi
 20703     fi
 20704 }
 20704 }
 20705 
 20705 
       
 20706 CheckWINDOWSGLES()
       
 20707 {
       
 20708     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
       
 20709 
       
 20710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
       
 20711 $as_echo_n "checking for EGL support... " >&6; }
       
 20712         video_opengl_egl=no
       
 20713         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 20714 /* end confdefs.h.  */
       
 20715 
       
 20716          #include <EGL/egl.h>
       
 20717 
       
 20718 int
       
 20719 main ()
       
 20720 {
       
 20721 
       
 20722 
       
 20723   ;
       
 20724   return 0;
       
 20725 }
       
 20726 _ACEOF
       
 20727 if ac_fn_c_try_compile "$LINENO"; then :
       
 20728 
       
 20729         video_opengl_egl=yes
       
 20730 
       
 20731 fi
       
 20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 20733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
       
 20734 $as_echo "$video_opengl_egl" >&6; }
       
 20735         if test x$video_opengl_egl = xyes; then
       
 20736 
       
 20737 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
       
 20738 
       
 20739 
       
 20740 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
       
 20741 
       
 20742         fi
       
 20743 
       
 20744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
       
 20745 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
       
 20746         video_opengles_v2=no
       
 20747         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 20748 /* end confdefs.h.  */
       
 20749 
       
 20750          #include <GLES2/gl2.h>
       
 20751          #include <GLES2/gl2ext.h>
       
 20752 
       
 20753 int
       
 20754 main ()
       
 20755 {
       
 20756 
       
 20757 
       
 20758   ;
       
 20759   return 0;
       
 20760 }
       
 20761 _ACEOF
       
 20762 if ac_fn_c_try_compile "$LINENO"; then :
       
 20763 
       
 20764         video_opengles_v2=yes
       
 20765 
       
 20766 fi
       
 20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 20768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
       
 20769 $as_echo "$video_opengles_v2" >&6; }
       
 20770         if test x$video_opengles_v2 = xyes; then
       
 20771 
       
 20772 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
       
 20773 
       
 20774 
       
 20775 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
       
 20776 
       
 20777 
       
 20778 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
       
 20779 
       
 20780         fi
       
 20781     fi
       
 20782 }
       
 20783 
 20706 CheckHaikuGL()
 20784 CheckHaikuGL()
 20707 {
 20785 {
 20708     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
 20786     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
 20709 
 20787 
 20710 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
 20788 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
 22259         CheckDummyVideo
 22337         CheckDummyVideo
 22260         CheckDiskAudio
 22338         CheckDiskAudio
 22261         CheckDummyAudio
 22339         CheckDummyAudio
 22262         CheckWINDOWS
 22340         CheckWINDOWS
 22263         CheckWINDOWSGL
 22341         CheckWINDOWSGL
       
 22342         CheckWINDOWSGLES
 22264         CheckDIRECTX
 22343         CheckDIRECTX
 22265 
 22344 
 22266         # Set up the core platform files
 22345         # Set up the core platform files
 22267         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
 22346         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
 22268 
 22347