configure: explicitly require shared glapi for enable-dri
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 7 Dec 2016 13:25:00 +0000 (13:25 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 18 Jan 2017 16:01:15 +0000 (16:01 +0000)
We've been using and depending on it for at least a couple of years.
Make it obvious and error out, should one opt for it.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 1d719be352f2d462d8823a16c30e4af44d57cc64..6771aa64e16fcc96fc7a0e90cdf1ee0a579b6c35 100644 (file)
@@ -1585,9 +1585,7 @@ if test "x$enable_shader_cache" = "xyes"; then
 fi
 
 if test "x$enable_dri" = xyes; then
-    if test "$enable_static" = yes; then
-        AC_MSG_ERROR([Cannot use static libraries for DRI drivers])
-    fi
+    require_dri_shared_libs_and_glapi "DRI"
 
     # not a hard requirement as swrast does not depend on it
     if test "x$have_libdrm" = xyes; then