GNOME Bugzilla – Bug 759191
should use pkg-config for GL
Last modified: 2015-12-11 16:03:55 UTC
The configure.ac checks for OpenGL/EGL/GLX/... don't pay any heed to the pkg-config setup. This breaks when you have PKG_CONFIG_PATH pointing to something with mesa, but it's not in CFLAGS/LDFLAGS/etc. It would be nice if configure.ac checked this (and took it into account when checking for gl.h, glx.h, etc), and then pushes the result. Mesa and Mali-6xx provide these pkg-config files, and they're already used by quite a few clients.
The only platform check in Clutter's configure.ac is actually wrong — we should be checking for X11 (and use pkg-config at that), not glx.h or glXCreateContext. We don't use GLX or EGL directly anyway — and Cogl already uses pkg-config to check for the 'gl' package.
Created attachment 316964 [details] [review] build: Use the 'x11' pkg-config module to check for X11 Don't look at GLX headers or symbols; we don't use them anyway.
Heh, nice! LGTM.
Ah, and now that WebKit has built, I can even tell you that it works. Ship it!
Pushed attachment 316964 [details] [review] to master, will likely also cherry pick it for the stable branch.