configure: error out when building backend-less libEGL
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 Jun 2015 16:44:02 +0000 (17:44 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 23 Jun 2015 16:07:32 +0000 (17:07 +0100)
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac

index 677fb5bbb89a91dacec25bdf0d89c29278f2e94c..8e62bd893eee0fed5eb09e760caa5b01c3fb9e34 100644 (file)
@@ -1542,8 +1542,12 @@ if test "x$enable_egl" = xyes; then
 
     if test "$enable_static" != yes; then
         if test "x$enable_dri" = xyes; then
-           HAVE_EGL_DRIVER_DRI2=1
-       fi
+            HAVE_EGL_DRIVER_DRI2=1
+        else
+            # Avoid building an "empty" libEGL. Drop/update this
+            # when other backends (haiku?) come along.
+            AC_MSG_ERROR([egl requires --enable-dri])
+        fi
 
     fi
 fi