diff --git configure ac configure ac index 47302f2 503ab6e 100644 ---

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/configure.ac b/configure.ac
index 47302f2..503ab6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3002,6 +3002,15 @@ then
VLC_ADD_PLUGIN([avcodec])
VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS])
VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS])
+ 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_WARN([No libva found, building avcodec plugin without VAAPI support.])
+ ]
+ )
VLC_RESTORE_FLAGS
have_avcodec="yes"
],[