Commit 3db43493 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Add configure.ac detection of libva, default disabled.

This enables building avcodec plugin with VAAPI support.
parent ed1959d2
...@@ -2931,6 +2931,26 @@ then ...@@ -2931,6 +2931,26 @@ then
]) ])
fi 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
dnl stream_out switcher needs libavcodec dnl stream_out switcher needs libavcodec
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment