configure.ac: require LLVM for r300g on x86 and x86_64
authorMarek Olšák <maraeo@gmail.com>
Thu, 21 Apr 2011 11:33:29 +0000 (13:33 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 25 Apr 2011 11:45:05 +0000 (13:45 +0200)
configure.ac

index d8c50ce32f534c5f7e74a27626bc4943688cd59b..1012ca56f4ca82a976dbcb4e179d3bbcd3c1d80b 100644 (file)
@@ -1780,9 +1780,16 @@ dnl Gallium Radeon r300g configuration
 dnl
 AC_ARG_ENABLE([gallium-r300],
     [AS_HELP_STRING([--enable-gallium-r300],
-        [build gallium r300 @<:@default=DRI-only@:>@])],
+        [build gallium r300 @<:@default=build DRI driver only@:>@])],
     [enable_gallium_r300="$enableval"],
     [enable_gallium_r300=auto])
+if test "x$enable_gallium_r300" != xno; then
+    if test "x$MESA_LLVM" = x0; then
+        case "$host_cpu" in
+        i*86|x86_64) AC_MSG_ERROR([LLVM is required to build Gallium R300 on x86 and x86_64]);;
+        esac
+    fi
+fi
 if test "x$enable_gallium_r300" = xauto; then
     GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
     gallium_check_st "radeon/drm" "dri-r300"