g3dvl: check for existense of XvMC header/libs
authorChristian König <deathsimple@vodafone.de>
Thu, 14 Jul 2011 10:42:17 +0000 (12:42 +0200)
committerChristian König <deathsimple@vodafone.de>
Thu, 14 Jul 2011 13:36:14 +0000 (15:36 +0200)
Building the XvMC state tracker only works when the header/libs are available.

configure.ac

index c3047d622a33b1be11004e1859c5d5a3ad4f195d..4f4730218531f1369631428a31b3dc3ae129a44e 100644 (file)
@@ -1511,7 +1511,7 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 
     if test "x$enable_xvmc" = xauto; then
-        enable_xvmc=yes
+       PKG_CHECK_EXISTS([xvmc], [enable_xvmc=yes], [enable_xvmc=no])
     fi
 
     if test "x$enable_vdpau" = xauto; then
@@ -1523,8 +1523,8 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 fi
 
-#TODO: Check for xvmc libs/headers
 if test "x$enable_xvmc" = xyes; then
+    PKG_CHECK_MODULES([XVMC], [xvmc >= 1.0.6 xorg-server])
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
     HAVE_ST_XVMC="yes"
 fi