-Test avec kernel 3.4.7 incluant driver nouveau.
[hvlinux.git] / stage4 / pkg / MesaLib
index 80b8017..a7068bd 100644 (file)
@@ -2,10 +2,28 @@
 
 hvconfig_pre()
 {
+    local DRVPTS="--with-dri-drivers=no"
+    local GALPTS="--with-gallium-drivers="
+
+    if [ -n "${XORG_VIDEO_DRIVER}" ]; then
+        case "${XORG_VIDEO_DRIVER}" in
+           nouveau)
+               DRVPTS="--with-dri-drivers=nouveau"
+               GALPTS="--enable-gallium-nouveau"
+               ;;
+           intel)
+               DRVPTS="--with-dri-drivers=i915,i965"
+               GALPTS="--enable-gallium-i915 --enable-gallium-i965"
+               ;;
+       esac
+    fi
+
     CONFIGURE_OPTS="\
         ${CONFIGURE_OPTS} \
         --enable-motif \
         --enable-xcb \
+        ${DRVPTS} \
+        ${GALPTS} \
         ${XORG_CONFIG}"
 
     # Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS