configure: only install khrplatform.h if needed
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 14 Jul 2017 10:14:28 +0000 (11:14 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 14 Jul 2017 12:23:54 +0000 (13:23 +0100)
khrplatform.h is only used by EGL and GLES; let's only install it when
one of those is enabled.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac
src/mapi/Makefile.am

index 61d98e28e03f113bb64db685f83ad465da3ae0a0..46fcd8f3fe78b9f2eb6dfa3f99d1c79bfc6e8b03 100644 (file)
@@ -1291,6 +1291,9 @@ AM_CONDITIONAL(HAVE_OPENGL_ES2, test "x$enable_gles2" = xyes)
 AM_CONDITIONAL(NEED_OPENGL_COMMON, test "x$enable_opengl" = xyes -o \
                                         "x$enable_gles1" = xyes -o \
                                         "x$enable_gles2" = xyes)
+AM_CONDITIONAL(NEED_KHRPLATFORM, test "x$enable_egl" = xyes -o \
+                                      "x$enable_gles1" = xyes -o \
+                                      "x$enable_gles2" = xyes)
 
 # Validate GLX options
 if test "x$enable_glx" = xyes; then
index 9ff70a14fddaaf20a0606c22851f340362a60e44..83e32d2185edb884045febbddb85e209373e3123 100644 (file)
@@ -242,5 +242,7 @@ es2api/glapi_mapi_tmp.h: glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
 
 include $(top_srcdir)/install-lib-links.mk
 
+if NEED_KHRPLATFORM
 khrdir = $(includedir)/KHR
 khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h
+endif