diff options
author | Dmitry Ermilov <dmitry.ermilov@intel.com> | 2012-06-07 08:03:01 -0400 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-08-06 14:13:00 +0200 |
commit | 4119bbe6008fbfde0bfc5a1a5e6b3570d1703ef1 (patch) | |
tree | 23f399f6a920c9a5d0e2f323debacc04f0bb7560 /configure.ac | |
parent | 5d9ed6e93de1f32921ea24bf248c5fc3f07f4a7b (diff) | |
download | libva-intel-driver-4119bbe6008fbfde0bfc5a1a5e6b3570d1703ef1.tar.gz libva-intel-driver-4119bbe6008fbfde0bfc5a1a5e6b3570d1703ef1.tar.bz2 libva-intel-driver-4119bbe6008fbfde0bfc5a1a5e6b3570d1703ef1.zip |
Allow build without VA/X11 API.
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d5fa71e..f25aafa 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,11 @@ AC_ARG_ENABLE(drm, [build with VA/DRM API support @<:@default=yes@:>@])], [], [enable_drm="yes"]) +AC_ARG_ENABLE(x11, + [AC_HELP_STRING([--enable-x11], + [build with VA/X11 API support @<:@default=yes@:>@])], + [], [enable_x11="yes"]) + AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_PROG_CC @@ -70,7 +75,6 @@ AC_PATH_PROG([GEN4ASM], [intel-gen4asm]) dnl Check for VA-API PKG_CHECK_MODULES(LIBVA_DEPS, [libva >= libva_version]) -PKG_CHECK_MODULES(LIBVA_X11_DEPS, [libva-x11]) dnl Check for VA/DRM API USE_DRM="$enable_drm" @@ -103,6 +107,15 @@ VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_MAJOR_VERSION}_${VA_MINOR_VERSION}" AC_DEFINE_UNQUOTED([VA_DRIVER_INIT_FUNC], [$VA_DRIVER_INIT_FUNC], [Define driver entry-point]) +dnl Check for VA/DRM API +USE_X11="$enable_x11" +if test "$USE_X11" = "yes"; then + PKG_CHECK_MODULES(LIBVA_X11_DEPS, [libva-x11], + [AC_DEFINE([HAVE_VA_X11], [1], [Defined to 1 if VA/X11 API is enabled])], + [USE_X11="no"]) +fi +AM_CONDITIONAL(USE_X11, test "$USE_X11" = "yes") + dnl Check for VA-API drivers path AC_MSG_CHECKING([for VA drivers path]) LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir` @@ -131,8 +144,9 @@ AC_OUTPUT([ ]) dnl Print summary -BACKENDS="x11" +BACKENDS="" AS_IF([test "$USE_DRM" = "yes"], [BACKENDS="$BACKENDS drm"]) +AS_IF([test "$USE_X11" = "yes"], [BACKENDS="$BACKENDS x11"]) echo echo $PACKAGE configuration summary: |