From a789107860d7d70138219dc4dc679e564fcf0f92 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 12 May 2011 11:43:27 +0100 Subject: [PATCH] build: Only allow GLX when finding the x11 pc file You can refine earlier the ALLOW_GLX variable when enabling OpenGL builds: No x11.pc? no GLX! --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1c9178130..1fda551ce 100644 --- a/configure.ac +++ b/configure.ac @@ -396,7 +396,8 @@ AS_IF([test "x$enable_gl" = "xyes"], [ DRIVER_COUNT=$((DRIVER_COUNT + 1)) COGL_DRIVER=gl - ALLOW_GLX=yes + + PKG_CHECK_EXISTS([x11], [ALLOW_GLX=yes]) cogl_gl_headers="GL/gl.h"