From 347b35676f425a42edbd997226c0cdd3c7d202ee Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 27 Jun 2013 11:43:41 +0100 Subject: [PATCH 1/2] build: fix EGL build when no X11 headers are present eglplatform.h defaults to X11 on Unix unless told otherwise, so if we're doing a build without any X11 support tell it so that we don't try including headers that don't exist. Signed-off-by: Ross Burton https://bugs.freedesktop.org/show_bug.cgi?id=64959 --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 6832b0d..d6896d0 100644 --- a/configure.ac +++ b/configure.ac @@ -1490,6 +1490,12 @@ AC_SUBST([EGL_NATIVE_PLATFORM]) AC_SUBST([EGL_PLATFORMS]) AC_SUBST([EGL_CFLAGS]) +# If we don't have the X11 platform, set this define so we don't try to include +# the X11 headers. +if ! echo "$egl_platforms" | grep -q 'x11'; then + DEFINES="$DEFINES -DMESA_EGL_NO_X11_HEADERS" +fi + AC_ARG_WITH([egl-driver-dir], [AS_HELP_STRING([--with-egl-driver-dir=DIR], [directory for EGL drivers [[default=${libdir}/egl]]])], -- 1.7.10.4