[vlc-devel] commit: Fix libavcodec/vaapi.h detection. (Antoine Cellerier )

git version control git at videolan.org
Wed Jan 20 09:48:57 CET 2010


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Jan 20 09:48:37 2010 +0100| [d1e7a6e58801edfb10efeeff48a3da725cb50dbd] | committer: Antoine Cellerier 

Fix libavcodec/vaapi.h detection.

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

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

diff --git a/configure.ac b/configure.ac
index f8be2f3..d8a2fff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2851,6 +2851,9 @@ AS_IF([test "${enable_libva}" != "no"], [
   AS_IF([test "x${have_avcodec}" = "xyes"], [
     PKG_CHECK_MODULES(LIBVA, [libva libva-x11],
       [
+        VLC_SAVE_FLAGS
+        CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
+        CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
         AC_CHECK_HEADERS(libavcodec/vaapi.h, [
            VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS])
            VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS])
@@ -2861,6 +2864,7 @@ AS_IF([test "${enable_libva}" != "no"], [
 	      [AC_MSG_ERROR([libva is present but libavcodec/vaapi.h is missing])],
               [AC_MSG_WARN([libva is present but libavcodec/vaapi.h is missing ])])
         ])
+        VLC_RESTORE_FLAGS
       ],[
 	AS_IF([test "${enable_libva}" == "yes"],
               [AC_MSG_ERROR([Could not find required libva.])],




More information about the vlc-devel mailing list