307
find_path(X_INCLUDEDIR X11/Xlib.h)
309
set(X_CFLAGS "-I${X_INCLUDEDIR}")
307
312
check_include_file(X11/Xcursor/Xcursor.h HAVE_XCURSOR_H)
308
313
check_include_file(X11/extensions/Xinerama.h HAVE_XINERAMA_H)
309
314
check_include_file(X11/extensions/XInput2.h HAVE_XINPUT_H)
563
571
if(VIDEO_OPENGLES)
564
572
check_c_source_compiles("
565
573
#include <EGL/egl.h>
566
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGLES)
567
if(HAVE_VIDEO_OPENGLES)
568
check_c_source_compiles("
570
#include <GLES/glext.h>
571
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGLES_V1)
572
if(HAVE_VIDEO_OPENGLES_V1)
574
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGL_EGL)
575
if(HAVE_VIDEO_OPENGL_EGL)
576
set(SDL_VIDEO_OPENGL_EGL 1)
577
endif(HAVE_VIDEO_OPENGL_EGL)
578
check_c_source_compiles("
580
#include <GLES/glext.h>
581
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGLES_V1)
582
if(HAVE_VIDEO_OPENGLES_V1)
583
set(HAVE_VIDEO_OPENGLES TRUE)
573
584
set(SDL_VIDEO_OPENGL_ES 1)
574
585
set(SDL_VIDEO_RENDER_OGL_ES 1)
575
endif(HAVE_VIDEO_OPENGLES_V1)
576
check_c_source_compiles("
577
#include <GLES2/gl2.h>
578
#include <GLES2/gl2ext.h>
579
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGLES_V2)
580
if(HAVE_VIDEO_OPENGLES_V2)
586
endif(HAVE_VIDEO_OPENGLES_V1)
587
check_c_source_compiles("
588
#include <GLES2/gl2.h>
589
#include <GLES2/gl2ext.h>
590
int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGLES_V2)
591
if(HAVE_VIDEO_OPENGLES_V2)
592
set(HAVE_VIDEO_OPENGLES TRUE)
581
593
set(SDL_VIDEO_OPENGL_ES2 1)
582
594
set(SDL_VIDEO_RENDER_OGL_ES2 1)
583
endif(HAVE_VIDEO_OPENGLES_V2)
584
endif(HAVE_VIDEO_OPENGLES)
595
endif(HAVE_VIDEO_OPENGLES_V2)
585
597
endif(VIDEO_OPENGLES)
586
598
endmacro(CheckOpenGLESX11)