Mesa (master): configure.ac: enable EGL platform DRM if GBM is enabled

Marek Olšák mareko at kemper.freedesktop.org
Wed Oct 19 21:20:57 UTC 2016


Module: Mesa
Branch: master
Commit: baed5eab82262bf9b76f5e237ecf21605360d0e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baed5eab82262bf9b76f5e237ecf21605360d0e3

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Oct 18 23:20:29 2016 +0200

configure.ac: enable EGL platform DRM if GBM is enabled

since GBM is enabled by default, this is also enabled by default

the whitespace changes remove tabs

Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 configure.ac | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6f6e388..797c2de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2017,9 +2017,13 @@ AC_ARG_WITH([egl-platforms],
         "x11,drm" @<:@default=auto@:>@])],
     [with_egl_platforms="$withval"],
     [if test "x$enable_egl" = xyes; then
-	with_egl_platforms="x11"
+        if test "x$enable_gbm" = xyes; then
+           with_egl_platforms="x11,drm"
+        else
+           with_egl_platforms="x11"
+        fi
     else
-	with_egl_platforms=""
+        with_egl_platforms=""
     fi])
 
 if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then




More information about the mesa-commit mailing list