[Mesa-dev] [PATCH] configure.ac: explicitly require libdrm for dri classic drivers.

Dave Airlie airlied at gmail.com
Thu Feb 2 04:28:50 UTC 2017


From: Dave Airlie <airlied at redhat.com>

Although this might come from somewhere else require it explicitly.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index d4302bf..73a0fda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
             ;;
-- 
2.9.3



More information about the mesa-dev mailing list