automake: src/mesa/drivers/dri/r200
[mesa.git] / configure.ac
index c0bdacbd6122f0324ccf61007764ddb7ba37e6e1..95990016b46132fefbcabdc5ea4953f2e0752bee 100644 (file)
@@ -1272,7 +1272,7 @@ case $DRI_DIRS in
 esac
 
 case $DRI_DIRS in
-*radeon*)
+*radeon*|*r200*)
     PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
 
     for d in $(echo $DRI_DIRS | sed 's/,/ /g'); do
@@ -1280,6 +1280,9 @@ case $DRI_DIRS in
         radeon)
             HAVE_RADEON_DRI=yes;
             ;;
+        r200)
+            HAVE_R200_DRI=yes;
+            ;;
         esac
     done
 
@@ -1288,6 +1291,7 @@ esac
 
 AM_CONDITIONAL(HAVE_I915_DRI, test x$HAVE_I915_DRI = xyes)
 AM_CONDITIONAL(HAVE_I965_DRI, test x$HAVE_I965_DRI = xyes)
+AM_CONDITIONAL(HAVE_R200_DRI, test x$HAVE_R200_DRI = xyes)
 AM_CONDITIONAL(HAVE_RADEON_DRI, test x$HAVE_RADEON_DRI = xyes)
 
 case $DRI_DIRS in
@@ -1296,13 +1300,6 @@ case $DRI_DIRS in
     ;;
 esac
 
-case $DRI_DIRS in
-*r200*)
-    PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
-    ;;
-esac
-
-
 dnl
 dnl OSMesa configuration
 dnl
@@ -1928,6 +1925,7 @@ dnl Substitute the config
 AC_CONFIG_FILES([configs/autoconf
                src/mesa/drivers/dri/i915/Makefile
                src/mesa/drivers/dri/i965/Makefile
+               src/mesa/drivers/dri/r200/Makefile
                src/mesa/drivers/dri/radeon/Makefile
                tests/Makefile
                tests/glx/Makefile])