From: Emil Velikov <emil.veli...@collabora.com> Cc: <mesa-sta...@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac index a883a32b274..37bfb416ebe 100644 --- a/configure.ac +++ b/configure.ac @@ -2068,6 +2068,12 @@ fi AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes) if echo $platforms | grep -q "x11"; then + have_xvmc_platform=yes +else + have_xvmc_platform=no +fi + +if echo $platforms | grep -q "x11"; then have_vdpau_platform=yes else have_vdpau_platform=no @@ -2089,7 +2095,7 @@ dnl dnl Gallium G3DVL configuration dnl if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then - if test "x$enable_xvmc" = xauto; then + if test "x$enable_xvmc" = xauto -a "x$have_xvmc_platform" = xyes; then PKG_CHECK_EXISTS([xvmc >= $XVMC_REQUIRED], [enable_xvmc=yes], [enable_xvmc=no]) fi @@ -2125,6 +2131,9 @@ fi AM_CONDITIONAL(NEED_GALLIUM_VL_WINSYS, test "x$need_gallium_vl_winsys" = xyes) if test "x$enable_xvmc" = xyes; then + if test "x$have_xvmc_platform" != xyes; then + AC_MSG_ERROR([XVMC requires the x11 platforms]) + fi PKG_CHECK_MODULES([XVMC], [xvmc >= $XVMC_REQUIRED]) gallium_st="$gallium_st xvmc" fi -- 2.12.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev