egl: Don't force X11 support when testing for EGL.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 05 Dec 2018 16:53:15 -0500
changeset 124577cf0d21b7d99
parent 12456 f8041c025fd3
child 12458 02b76226ee0f
egl: Don't force X11 support when testing for EGL.

Fixes building Wayland support on embedded systems without X11.

(TODO: maybe move the EGL test out of the X11 tests at some point, too.)
configure
configure.in
src/video/wayland/SDL_waylandvideo.h
     1.1 --- a/configure	Wed Dec 05 16:51:22 2018 -0500
     1.2 +++ b/configure	Wed Dec 05 16:53:15 2018 -0500
     1.3 @@ -21775,6 +21775,7 @@
     1.4  
     1.5            #define LINUX
     1.6            #define EGL_API_FB
     1.7 +          #define MESA_EGL_NO_X11_HEADERS
     1.8            #include <EGL/egl.h>
     1.9            #include <EGL/eglext.h>
    1.10  
     2.1 --- a/configure.in	Wed Dec 05 16:51:22 2018 -0500
     2.2 +++ b/configure.in	Wed Dec 05 16:53:15 2018 -0500
     2.3 @@ -2340,6 +2340,7 @@
     2.4          AC_TRY_COMPILE([
     2.5            #define LINUX
     2.6            #define EGL_API_FB
     2.7 +          #define MESA_EGL_NO_X11_HEADERS
     2.8            #include <EGL/egl.h>
     2.9            #include <EGL/eglext.h>
    2.10          ],[
     3.1 --- a/src/video/wayland/SDL_waylandvideo.h	Wed Dec 05 16:51:22 2018 -0500
     3.2 +++ b/src/video/wayland/SDL_waylandvideo.h	Wed Dec 05 16:53:15 2018 -0500
     3.3 @@ -33,7 +33,7 @@
     3.4  !!! FIXME:  in Ubuntu 18.04 (and other distros).
     3.5  */
     3.6  
     3.7 -
     3.8 +#define MESA_EGL_NO_X11_HEADERS
     3.9  #include <EGL/egl.h>
    3.10  #include "wayland-util.h"
    3.11