aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2008-12-28 17:11:18 +0100
committerViliam Mateicka <viliam.mateicka@gmail.com>2008-12-28 17:11:18 +0100
commitd838a1ad24a9eaac44367e34506373b4b71e4ff0 (patch)
tree9f94024a290c0e96f53b3b83095f3303a64abadd /configure.ac
parent4654bb462814f64f79302477c59a85317256addc (diff)
downloadmpd-d838a1ad24a9eaac44367e34506373b4b71e4ff0.tar.gz
mpd-d838a1ad24a9eaac44367e34506373b4b71e4ff0.tar.xz
mpd-d838a1ad24a9eaac44367e34506373b4b71e4ff0.zip
decoder: new plugin using modplug library
Diffstat (limited to '')
-rw-r--r--configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b1c71f964..37085d475 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,6 +280,12 @@ AC_ARG_ENABLE(mod,
enable_mod=$enableval,
enable_mod=no)
+AC_ARG_ENABLE(modplug,
+ AS_HELP_STRING([--enable-modplug],
+ [enable MODPLUG support (default: disable)]),
+ enable_modplug=$enableval,
+ enable_modplug=no)
+
AC_ARG_ENABLE(mpc,
AS_HELP_STRING([--disable-mpc],
[disable musepack (MPC) support (default: enable)]),
@@ -837,6 +843,14 @@ fi
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)
+if test x$enable_modplug = xyes; then
+ PKG_CHECK_MODULES(MODPLUG, [libmodplug],
+ AC_DEFINE(HAVE_MODPLUG, 1, [Define for modplug support]),
+ enable_modplug=no)
+fi
+
+AM_CONDITIONAL(HAVE_MODPLUG, test x$enable_modplug = xyes)
+
if test x$enable_ffmpeg = xyes; then
PKG_CHECK_MODULES(FFMPEG, [libavformat libavcodec libavutil],
AC_DEFINE(HAVE_FFMPEG, 1, [Define for FFMPEG support]),
@@ -1160,6 +1174,12 @@ else
echo " MOD support ...................disabled"
fi
+if test x$enable_modplug = xyes; then
+ echo " MODPLUG support ...............enabled"
+else
+ echo " MODPLUG support ...............disabled"
+fi
+
if test x$enable_ffmpeg = xyes; then
echo " FFMPEG support ................enabled"
else
@@ -1176,6 +1196,7 @@ if
test x$enable_mpc = xno &&
test x$enable_wavpack = xno &&
test x$enable_ffmpeg = xno &&
+ test x$enable_modplug = xno &&
test x$enable_mod = xno; then
AC_MSG_ERROR([No input plugins supported!])
fi