configure: enable vdpau and xvmc detection, with gallium
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Apr 2013 00:40:40 +0000 (01:40 +0100)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Apr 2013 01:19:34 +0000 (18:19 -0700)
Currently the vdpau and xvmc detection code, is enabled for all builds. The
state trackers exist only within gallium. Enable whenever at least one gallium
driver is selected

v2: removed stray '-a'
[mattst88 v3]: Removed stray $.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63645
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac

index ba922580e843aca517bc0c4e58fa86a8e5e1fc08..70c598e088283b8a96d6f7bbd396c38d01bd14c0 100644 (file)
@@ -1319,9 +1319,15 @@ dnl Gallium G3DVL configuration
 dnl
 AC_ARG_ENABLE([gallium-g3dvl],
     [AS_HELP_STRING([--disable-gallium-g3dvl],
-        [build gallium g3dvl @<:@default=enabled@:>@])],
+        [build gallium g3dvl @<:@default=auto@:>@])],
     [enable_gallium_g3dvl="$enableval"],
-    [enable_gallium_g3dvl=yes])
+    [enable_gallium_g3dvl=auto])
+if test "x$enable_gallium_g3dvl" = xauto; then
+    if test "x$with_gallium_drivers" != x; then
+        enable_gallium_g3dvl=yes
+    fi
+fi
+
 if test "x$enable_gallium_g3dvl" = xyes; then
     if test "x$with_gallium_drivers" = x; then
         AC_MSG_ERROR([cannot enable G3DVL without Gallium])