summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-08 10:30:23 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-08 10:33:35 +0200
commitb6dd8725c97bb75caa4f5193e510cd53ea1e85a2 (patch)
treea1da33543ac63fa64634c72c6989aaa58d22c698 /configure.ac
parentc22d91883f6f4e74de236e8543a2d2e15b07967f (diff)
downloadlibva-intel-driver-b6dd8725c97bb75caa4f5193e510cd53ea1e85a2.tar.gz
libva-intel-driver-b6dd8725c97bb75caa4f5193e510cd53ea1e85a2.tar.bz2
libva-intel-driver-b6dd8725c97bb75caa4f5193e510cd53ea1e85a2.zip
Fix build with VA-API 0.32.0.
Really fix build back to VA-API 0.32.0, and not only VA-API 0.32.1, thus checking for VA/JPEG decode API. VA-API 0.32.0 was provided by libva 1.0.15 and earlier version, which is still available in Ubuntu 12.04-LTS. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 26 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 4c4a6db..e20c374 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,8 +10,8 @@ m4_append([intel_driver_version], intel_driver_pre_version, [.pre])
])
# libva minimum version requirement
-m4_define([libva_package_version], [1.0.16])
-m4_define([va_api_version], [0.32.1])
+m4_define([libva_package_version], [1.0.14])
+m4_define([va_api_version], [0.32.0])
# libdrm minimum version requirement
m4_define([libdrm_version], [2.4.23])
@@ -163,6 +163,30 @@ m4_ifdef([WAYLAND_SCANNER_RULES],
[WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/wayland'])],
[wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)])
+dnl Check for JPEG decoding API
+AC_CACHE_CHECK([for JPEG decoding API], ac_cv_have_va_jpeg_decode, [
+ saved_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $LIBVA_DEPS_CFLAGS"
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS $LIBVA_DEPS_LIBS"
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <va/va.h>]],
+ [[VAPictureParameterBufferJPEGBaseline pic_param;
+ VASliceParameterBufferJPEGBaseline slice_param;
+ VAHuffmanTableBufferJPEGBaseline huffman_table;
+ VAIQMatrixBufferJPEGBaseline iq_matrix;]])],
+ [ac_cv_have_va_jpeg_decode="yes"],
+ [ac_cv_have_va_jpeg_decode="no"]
+ )
+ CPPFLAGS="$saved_CPPFLAGS"
+ LIBS="$saved_LIBS"
+])
+if test "$ac_cv_have_va_jpeg_decode" = "yes"; then
+ AC_DEFINE(HAVE_VA_JPEG_DECODE, 1,
+ [Defined to 1 if VA-API exposes JPEG decoding])
+fi
+
AC_OUTPUT([
Makefile
debian.upstream/Makefile