configure.ac: check for libdrm_radeon only when building classic
authorMarek Olšák <maraeo@gmail.com>
Thu, 21 Jul 2011 20:31:24 +0000 (22:31 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 21 Jul 2011 20:31:24 +0000 (22:31 +0200)
configure.ac

index f72db119fb363cc7ac0cc469a1f2c51f0eec302c..86ba87b39e847c287f061d63108ea8c03d746e15 100644 (file)
@@ -1073,11 +1073,6 @@ AC_SUBST([MESA_MODULES])
 
 AC_SUBST([HAVE_XF86VIDMODE])
 
-PKG_CHECK_MODULES([LIBDRM_RADEON],
-                 [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED],
-                 HAVE_LIBDRM_RADEON=yes,
-                 HAVE_LIBDRM_RADEON=no)
-
 dnl
 dnl More GLX setup
 dnl
@@ -1270,6 +1265,11 @@ esac
 
 case $DRI_DIRS in
 *radeon*|*r200*|*r300*|*r600*)
+    PKG_CHECK_MODULES([LIBDRM_RADEON],
+                     [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED],
+                     HAVE_LIBDRM_RADEON=yes,
+                     HAVE_LIBDRM_RADEON=no)
+
     if test "x$HAVE_LIBDRM_RADEON" = xyes; then
        RADEON_CFLAGS="-DHAVE_LIBDRM_RADEON=1 $LIBDRM_RADEON_CFLAGS"
        RADEON_LDFLAGS=$LIBDRM_RADEON_LIBS