summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-11-29 15:11:13 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-11-30 11:08:03 -0500
commitb5c53245afcb35632cc662ff7f84a578eba864c3 (patch)
tree24224328991fd48fb595b818208bde220a1d9418
parente7177e362eb2afb0772fa6a611b94c80301ef725 (diff)
egl: Only enable GLX backend if X11 EGL platform is enabled
We don't want to compile in a bunch of X11 dependencies in libEGL if we can't run EGL on X11.
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 4fb454407b4..fc554dd4c03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1273,10 +1273,6 @@ if test "x$enable_egl" = xyes; then
if test "$enable_static" != yes; then
# build egl_glx when libGL is built
- if test "x$enable_glx" = xyes; then
- HAVE_EGL_DRIVER_GLX=1
- fi
-
PKG_CHECK_MODULES([LIBUDEV], [libudev > 150],
[have_libudev=yes],[have_libudev=no])
if test "$have_libudev" = yes; then
@@ -1545,6 +1541,10 @@ for plat in $egl_platforms; do
x11)
PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 >= 1.8 xcb-xfixes])
+
+ if test "x$enable_glx" = xyes; then
+ HAVE_EGL_DRIVER_GLX=1
+ fi
;;
drm)