From a3adb7389371bf7fbb3341139d959f3c73a241b1 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Oct 2017 18:58:10 +0000 Subject: [PATCH] configure.ac: require xcb* for the omx/va/... when using x11 platform Targets such as omx and va can work w/o anything X related. Mandate the xcb* dependencies only when the X11 platform is selected. Reported-by: Lukas Rusak Fixes: 63e11ac2b5c ("configure: error out if building VA w/o supported platform") Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom Tested-by: Lukas Rusak (v1) (cherry picked from commit 85a017230cacd0661570421c8e5b0619e512d33d) --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 698d59a3a83..0b3fd9d1fc0 100644 --- a/configure.ac +++ b/configure.ac @@ -2192,7 +2192,9 @@ if test "x$enable_xvmc" = xyes -o \ "x$enable_vdpau" = xyes -o \ "x$enable_omx" = xyes -o \ "x$enable_va" = xyes; then - PKG_CHECK_MODULES([VL], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED]) + if echo $platforms | grep -q "x11"; then + PKG_CHECK_MODULES([VL], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED]) + fi need_gallium_vl_winsys=yes fi AM_CONDITIONAL(NEED_GALLIUM_VL_WINSYS, test "x$need_gallium_vl_winsys" = xyes)