diff options
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/input.m4 | 14 | ||||
| -rw-r--r-- | m4/summary.m4 | 1 |
2 files changed, 15 insertions, 0 deletions
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 "" |
