summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2013-04-18 01:40:40 +0100
committerChristian König <christian.koenig@amd.com>2013-04-18 14:31:31 +0200
commit8ba42ca5b8c60dc7a2160f983d8ed2907db0e855 (patch)
tree70a36fa60412c89f30e3f67b9c3fcfaeb33c673c
parenta5f7db9f2aa414f33b32aa16504ce7d181bafc77 (diff)
configure: enable vdpau and xvmc detection, with galliumuvd-9.1
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>
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 81d97ba917..2a6101a111 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1381,9 +1381,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])