configure.ac: explicitly require libdrm for dri classic drivers.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Feb 2017 04:27:50 +0000 (14:27 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Feb 2017 23:38:15 +0000 (09:38 +1000)
Although this might come from somewhere else require it explicitly.

Reviewed-by: Chad Versace <chadversary@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
configure.ac

index d4302bf5466600337eb558db7acc97228c863fbd..73a0fda5f2621f79bd0e66ff9a6328ab8dd06b26 100644 (file)
@@ -1700,22 +1700,27 @@ if test -n "$with_dri_drivers"; then
         DRI_DIRS="$DRI_DIRS $driver"
         case "x$driver" in
         xi915)
+            require_libdrm "i915"
             HAVE_I915_DRI=yes;
             PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
             ;;
         xi965)
+            require_libdrm "i965"
             HAVE_I965_DRI=yes;
             PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
             ;;
         xnouveau)
+            require_libdrm "nouveau"
             HAVE_NOUVEAU_DRI=yes;
             PKG_CHECK_MODULES([NVVIEUX], [libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED])
             ;;
         xradeon)
+            require_libdrm "radeon"
             HAVE_RADEON_DRI=yes;
             PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
             ;;
         xr200)
+            require_libdrm "r200"
             HAVE_R200_DRI=yes;
             PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
             ;;