From af7e981ca4e63e081970b74e00f70051ab2c6122 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Mon, 4 Nov 2013 12:03:27 +0200 Subject: Add avio (libavformat) input plugin. --- m4/input.m4 | 14 ++++++++++++++ m4/summary.m4 | 1 + 2 files changed, 15 insertions(+) (limited to 'm4') diff --git a/m4/input.m4 b/m4/input.m4 index 0401bd999..93d387935 100644 --- a/m4/input.m4 +++ b/m4/input.m4 @@ -19,6 +19,7 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [ default_enable_vcdo=no default_enable_vdr=yes default_enable_bluray=yes + default_enable_avformat=yes default_with_external_dvdnav=no case "$host_os" in @@ -184,4 +185,17 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [ fi AM_CONDITIONAL(ENABLE_BLURAY, test "x$have_libbluray" = "xyes") + dnl libavformat + XINE_ARG_ENABLE([avformat], [Enable libavformat support]) + if test "x$enable_avformat" != "xno"; then + PKG_CHECK_MODULES([AVFORMAT], [libavformat >= 55.19.0], [have_avformat=yes], [have_avformat=no]) + if test x"$hard_enable_avformat" = x"yes" && test x"$have_avformat" != x"yes"; then + AC_MSG_ERROR([libavformat support requested, but library not found]) + fi + if test x"$have_avformat" = x"yes"; then + AC_DEFINE([HAVE_AVFORMAT], 1, [Define this if you have libavformat installed]) + fi + fi + AM_CONDITIONAL([ENABLE_AVFORMAT], [test x"$have_avformat" = x"yes"]) + ]) diff --git a/m4/summary.m4 b/m4/summary.m4 index 449b430e3..1f8109434 100644 --- a/m4/summary.m4 +++ b/m4/summary.m4 @@ -32,6 +32,7 @@ AC_DEFUN([XINE_LIB_SUMMARY], [ test x"$have_v4l2" = x"yes" && echo " - v4l2" echo " - cdda" test x"$have_libbluray" = x"yes" && echo " - bluray" + test x"$have_avformat" = x"yes" && echo " - avio (libavformat)" echo " - test" echo "" -- cgit v1.2.3