Disable direct rendering on GNU/Hurd
authornobled <nobled@dreamwidth.org>
Mon, 14 Mar 2011 22:08:22 +0000 (22:08 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 8 Apr 2011 19:37:38 +0000 (20:37 +0100)
The Hurd kernel doesn't have DRM yet.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-By: Jakob Bornecrantz <wallbraker@gmail.com>
configure.ac

index 38e673da8a1f7f4228d08d5936cbbff04b875167..5bcb5a11a2eb9f8867158afefb72ae562d4ce7d3 100644 (file)
@@ -730,12 +730,21 @@ else
 fi
 
 dnl Direct rendering or just indirect rendering
+case "$host_os" in
+gnu*)
+    dnl Disable by default on GNU/Hurd
+    driglx_direct_default="no"
+    ;;
+*)
+    driglx_direct_default="yes"
+    ;;
+esac
 AC_ARG_ENABLE([driglx-direct],
     [AS_HELP_STRING([--disable-driglx-direct],
         [enable direct rendering in GLX and EGL for DRI \
-            @<:@default=enabled@:>@])],
+            @<:@default=auto@:>@])],
     [driglx_direct="$enableval"],
-    [driglx_direct="yes"])
+    [driglx_direct="$driglx_direct_default"])
 
 dnl
 dnl libGL configuration per driver