summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2008-10-17 22:27:33 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 22:27:33 +0200
commit11ad9971415c18dfb8f2042b65da31d0102b8c91 (patch)
tree96cf617ba830f1c4037f10bd6bdf1eb8135f405f /configure.ac
parent4ee8da2e694d29efef5f6311d3bf8504d474918f (diff)
ffmpeg: new decoder plugin
[mk: fixed indent, changed copyright statement, added autoconf test, fixed includes paths, fixed 2 gcc warnings, don't close input stream twice]
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a5cee2ca3..8adebafa0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -234,6 +234,12 @@ AC_ARG_ENABLE(wavpack,
enable_wavpack=$enableval,
enable_wavpack=yes)
+AC_ARG_ENABLE(ffmpeg,
+ AS_HELP_STRING([--disable-ffmpeg],
+ [enable FFMPEG support (default: enable)]),
+ enable_ffmpeg=$enableval,
+ enable_ffmpeg=yes)
+
AC_ARG_ENABLE(id3,
AS_HELP_STRING([--disable-id3],
[disable id3 support (default: enable)]),
@@ -672,6 +678,14 @@ fi
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)
+if test x$enable_ffmpeg = xyes; then
+ PKG_CHECK_MODULES(FFMPEG, [libavcodec libavformat],
+ AC_DEFINE(HAVE_FFMPEG, 1, [Define for FFMPEG support]),
+ enable_ffmpeg=no)
+fi
+
+AM_CONDITIONAL(HAVE_FFMPEG, test x$enable_ffmpeg = xyes)
+
case $with_zeroconf in
no|avahi|bonjour)
;;
@@ -955,6 +969,12 @@ else
echo " MOD support ...................disabled"
fi
+if test x$enable_ffmpeg = xyes; then
+ echo " FFMPEG support ................enabled"
+else
+ echo " FFMPEG support ................disabled"
+fi
+
if
test x$enable_mp3 = xno &&
test x$enable_oggvorbis = xno &&
@@ -964,6 +984,7 @@ if
test x$enable_aac = xno &&
test x$enable_mpc = xno &&
test x$enable_wavpack = xno &&
+ test x$enable_ffmpeg = xno &&
test x$enable_mod = xno; then
AC_MSG_ERROR([No input plugins supported!])
fi