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!
This commit is contained in:
parent
0da07b4e3d
commit
a789107860
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue