Add FFmpeg/VAAPI decoder for the new `vaapidecode' element.
[platform/upstream/gstreamer-vaapi.git] / configure.ac
index f008506..2b60cf5 100644 (file)
@@ -1,7 +1,7 @@
 # gstreamer-vaapi package version number
 m4_define([gst_vaapi_major_version], [0])
 m4_define([gst_vaapi_minor_version], [1])
-m4_define([gst_vaapi_micro_version], [2])
+m4_define([gst_vaapi_micro_version], [3])
 m4_define([gst_vaapi_version],
           [gst_vaapi_major_version.gst_vaapi_minor_version.gst_vaapi_micro_version])
 
@@ -252,6 +252,15 @@ else
     USE_VAAPISINK_GLX=0
 fi
 
+dnl Check for FFmpeg
+PKG_CHECK_MODULES(LIBAVFORMAT, [libavformat])
+AC_CHECK_HEADERS([libavformat/avformat.h])
+
+PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec])
+AC_CHECK_HEADERS([libavcodec/avcodec.h])
+AC_CHECK_HEADERS([libavcodec/vaapi.h], [],
+    AC_MSG_ERROR([The system FFmpeg headers do not support VA-API]))
+
 AC_DEFINE_UNQUOTED(USE_GLX, $USE_GLX,
     [Defined to 1 if GLX is enabled])
 AM_CONDITIONAL(USE_GLX, test $USE_GLX -eq 1)
@@ -289,8 +298,7 @@ debian.upstream/gstreamer-vaapi.install.in
 debian.upstream/gstreamer-vaapi-doc.install.in
     debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:\
 debian.upstream/libgstvaapi.install.in
-    debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION-dev.install:\
-debian.upstream/libgstvaapi-dev.install.in
+    debian.upstream/libgstvaapi-dev.install
     debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:\
 debian.upstream/libgstvaapi-x11.install.in
     debian.upstream/libgstvaapi-glx-$GST_VAAPI_MAJOR_VERSION.install:\
@@ -313,19 +321,21 @@ pkgconfig/gstreamer-vaapi-glx.pc.in
 pkgconfig/gstreamer-vaapi-x11.pc.in
     gst/Makefile
     gst/vaapiconvert/Makefile
+    gst/vaapidecode/Makefile
     gst/vaapisink/Makefile
     tests/Makefile
 ])
 
 dnl Print summary
-conf_glx=$(test $USE_GLX  -eq 1 && echo yes || echo no)
-conf_vaapi_glx=$(test $USE_VAAPI_GLX  -eq 1 && echo yes || echo no)
-conf_vaapisink_glx=$(test $USE_VAAPISINK_GLX  -eq 1 && echo yes || echo no)
+yesno() {
+    test $1 -eq 1 && echo yes || echo no
+}
+
 echo
 echo $PACKAGE configuration summary:
 echo
 echo VA-API version ................... : $VA_VERSION_STR
-echo GLX support ...................... : $conf_glx
-echo VA/GLX support ................... : $conf_vaapi_glx
-echo VaapiSink/GL ..................... : $conf_vaapisink_glx
+echo GLX support ...................... : $(yesno $USE_GLX)
+echo VA/GLX support ................... : $(yesno $USE_VAAPI_GLX)
+echo VaapiSink/GL ..................... : $(yesno $USE_VAAPISINK_GLX)
 echo