[vlc-devel] commit: Add configure.ac detection of libva, default disabled. ( Konstantin Pavlov )

git version control git at videolan.org
Fri Oct 16 09:44:28 CEST 2009


vlc | branch: master | Konstantin Pavlov <thresh at altlinux.org> | Wed Jul 29 13:38:07 2009 +0400| [3db4349322e6c3542aebd7f31dff66bceadced75] | committer: Konstantin Pavlov 

Add configure.ac detection of libva, default disabled.

This enables building avcodec plugin with VAAPI support.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3db4349322e6c3542aebd7f31dff66bceadced75
---

 configure.ac |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index edc5f44..dbde8a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2932,6 +2932,26 @@ then
 fi
 
 dnl
+dnl libva needs avcodec
+dnl
+AC_ARG_ENABLE(libva,
+  [  --enable-libva         libva VAAPI support (default disabled)])
+AS_IF([test "${enable_libva}" = "yes"], [
+  AS_IF([test "x${have_avcodec}" = "xyes"], [
+    PKG_CHECK_MODULES(LIBVA, [libva libva-x11],
+      [
+        VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS])
+        VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS])
+        AC_DEFINE(HAVE_AVCODEC_VAAPI, 1, [Define if avcodec has to be built with VAAPI support.])
+      ],[
+        AC_MSG_ERROR([Could not find libva.])
+    ])
+  ],[
+    AC_MSG_ERROR([libva VAAPI support depends on libavcodec.])
+  ])
+])
+
+dnl
 dnl stream_out switcher needs libavcodec
 dnl
 AC_ARG_ENABLE(switcher,




More information about the vlc-devel mailing list