diff options
author | Emil Velikov <[email protected]> | 2016-12-07 14:38:10 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2017-05-31 22:32:03 +0200 |
commit | 112e732867735e551e02f651d216641e96d704f9 (patch) | |
tree | 706246f2df7e1533773fb37bd925dbb15a58d2f6 | |
parent | 637a5d58b04d5ec7c20f789e7734310d874042c0 (diff) |
configure: error out if building OMX w/o supported platform
Cc: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit 1914c814a6c4aaaf03c26f6c20a9871ebc98895f)
Signed-off-by: Juan A. Suarez Romero <[email protected]>
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2aae768ad5b..0c15f062d06 100644 --- a/configure.ac +++ b/configure.ac @@ -2062,6 +2062,12 @@ if test "x$enable_xa" = xyes; then fi AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes) +if echo $platforms | grep -q "x11\|drm"; then + have_omx_platform=yes +else + have_omx_platform=no +fi + if echo $platforms | grep -q "x11\|drm\|wayland"; then have_va_platform=yes else @@ -2080,7 +2086,7 @@ if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then PKG_CHECK_EXISTS([vdpau >= $VDPAU_REQUIRED], [enable_vdpau=yes], [enable_vdpau=no]) fi - if test "x$enable_omx" = xauto; then + if test "x$enable_omx" = xauto -a "x$have_omx_platform" = xyes; then PKG_CHECK_EXISTS([libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED], [enable_omx=yes], [enable_omx=no]) fi @@ -2121,6 +2127,9 @@ fi AM_CONDITIONAL(HAVE_ST_VDPAU, test "x$enable_vdpau" = xyes) if test "x$enable_omx" = xyes; then + if test "x$have_omx_platform" != xyes; then + AC_MSG_ERROR([OMX requires at least one of the x11 or drm platforms]) + fi PKG_CHECK_MODULES([OMX], [libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED]) gallium_st="$gallium_st omx" fi |