From 05ebaf5f4c69e194a76fe56dd268f888548bc254 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 6 Apr 2012 17:23:55 +0200 Subject: API: add support for Wayland. Signed-off-by: Gwenole Beauchesne --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1f958a8..4c2c192 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,11 @@ AC_ARG_ENABLE(egl, [build with EGL support @<:@default=yes@:>@])], [], [enable_egl="yes"]) +AC_ARG_ENABLE([wayland], + [AC_HELP_STRING([--enable-wayland], + [build with Wayland support @<:@default=yes@:>@])], + [], [enable_wayland="yes"]) + AC_ARG_ENABLE(dummy-driver, [AC_HELP_STRING([--enable-dummy-driver], [build dummy video driver @<:@default=yes@:>@])], @@ -271,6 +276,17 @@ AC_SUBST(EGL_DEPS_LIBS) AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes") AM_CONDITIONAL(BUILD_EGL_TEST, [test "x$USE_EGL" = "xyes" && test "x$libglesv1_cm" = "xyes"]) +# Check for Wayland +USE_WAYLAND="no" +if test "$enable_wayland" = "yes"; then + PKG_CHECK_MODULES([WAYLAND], [wayland-client], [USE_WAYLAND="yes"], [:]) + if test "$USE_WAYLAND" = "yes"; then + AC_DEFINE([HAVE_VA_WAYLAND], [1], + [Defined to 1 if VA/Wayland API is built]) + fi +fi +AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes") + # We only need the headers, we don't link against the DRM libraries LIBVA_CFLAGS="$DRM_CFLAGS" AC_SUBST(LIBVA_CFLAGS) @@ -303,6 +319,7 @@ AC_OUTPUT([ pkgconfig/libva-egl.pc pkgconfig/libva-glx.pc pkgconfig/libva-tpi.pc + pkgconfig/libva-wayland.pc pkgconfig/libva-x11.pc pkgconfig/libva.pc test/Makefile @@ -321,6 +338,7 @@ AC_OUTPUT([ va/egl/Makefile va/glx/Makefile va/va_version.h + va/wayland/Makefile va/x11/Makefile ]) @@ -329,6 +347,7 @@ AS_IF([test x$USE_DRM = xyes], [BACKENDS="drm $BACKENDS"]) AS_IF([test x$USE_X11 = xyes], [BACKENDS="x11 $BACKENDS"]) AS_IF([test x$USE_GLX = xyes], [BACKENDS="glx $BACKENDS"]) AS_IF([test x$USE_EGL = xyes], [BACKENDS="egl $BACKENDS"]) +AS_IF([test x$USE_WAYLAND = xyes], [BACKENDS="wayland $BACKENDS"]) echo echo "libva - ${LIBVA_VERSION} (VA-API ${VA_API_VERSION})" -- cgit v1.2.3