Commit 63e11ac2 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

configure: error out if building VA w/o supported platform

A bit pedantic patch to fool proof should someone start thinkering
without knowing what they do.

Cc: <>
Signed-off-by: default avatarEmil Velikov <>
Reviewed-by: default avatarEric Engestrom <>
parent 912f24fd
...@@ -2062,6 +2062,12 @@ if test "x$enable_xa" = xyes; then ...@@ -2062,6 +2062,12 @@ if test "x$enable_xa" = xyes; then
fi fi
AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes) AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes)
if echo $platforms | grep -q "x11\|drm\|wayland"; then
dnl dnl
dnl Gallium G3DVL configuration dnl Gallium G3DVL configuration
dnl dnl
...@@ -2078,7 +2084,7 @@ if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then ...@@ -2078,7 +2084,7 @@ if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then
PKG_CHECK_EXISTS([libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED], [enable_omx=yes], [enable_omx=no]) PKG_CHECK_EXISTS([libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED], [enable_omx=yes], [enable_omx=no])
fi fi
if test "x$enable_va" = xauto; then if test "x$enable_va" = xauto -a "x$have_va_platform" = xyes; then
PKG_CHECK_EXISTS([libva >= $LIBVA_REQUIRED], [enable_va=yes], [enable_va=no]) PKG_CHECK_EXISTS([libva >= $LIBVA_REQUIRED], [enable_va=yes], [enable_va=no])
fi fi
fi fi
...@@ -2121,6 +2127,9 @@ fi ...@@ -2121,6 +2127,9 @@ fi
AM_CONDITIONAL(HAVE_ST_OMX, test "x$enable_omx" = xyes) AM_CONDITIONAL(HAVE_ST_OMX, test "x$enable_omx" = xyes)
if test "x$enable_va" = xyes; then if test "x$enable_va" = xyes; then
if test "x$have_va_platform" != xyes; then
AC_MSG_ERROR([VA requires at least one of the x11 drm or wayland platforms])
gallium_st="$gallium_st va" gallium_st="$gallium_st va"
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment