configure: loosen --with-platforms heuristics
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 3 May 2017 20:24:26 +0000 (21:24 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 May 2017 18:44:04 +0000 (19:44 +0100)
Remove the enable-egl pre-requirement. Platform selection does not
depend on EGL.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
configure.ac

index 2c930004cfb2480e7aa0fef8cd26b5e70f741d4f..de422107a26ca5dafda8f4e4be953ec14fedfe77 100644 (file)
@@ -1643,14 +1643,10 @@ AC_ARG_WITH([egl-platforms],
     [with_egl_platforms=auto])
 
 if test "x$with_egl_platforms" = xauto; then
-    if test "x$enable_egl" = xyes; then
-        if test "x$enable_gbm" = xyes; then
-           with_egl_platforms="x11,drm"
-        else
-           with_egl_platforms="x11"
-        fi
+    if test "x$enable_gbm" = xyes; then
+        with_egl_platforms="x11,drm"
     else
-        with_egl_platforms=""
+        with_egl_platforms="x11"
     fi
 else
     AC_MSG_WARN([--with-egl-platforms is deprecated. Use --with-platforms instead.])