aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-11 20:31:17 +0100
committerMax Kellermann <max@duempel.org>2009-02-11 20:31:17 +0100
commit1136f6fb7a2a6a0a5bfba0dcf99410d1bbf04252 (patch)
treeb2456b7bb8c4d521933f5ae6e96db4b2c2675e09 /configure.ac
parent82fee1390c072e508309a947b1889e7cc56795a4 (diff)
downloadmpd-1136f6fb7a2a6a0a5bfba0dcf99410d1bbf04252.tar.gz
mpd-1136f6fb7a2a6a0a5bfba0dcf99410d1bbf04252.tar.xz
mpd-1136f6fb7a2a6a0a5bfba0dcf99410d1bbf04252.zip
sidplay: new decoder plugin for playing C64 SID files
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1a6530f69..f10f3c0c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -412,6 +412,11 @@ AC_ARG_WITH(tremor,[[ --with-tremor[=PFX] Use Tremor(vorbisidec) intege
AC_ARG_WITH(tremor-libraries,[ --with-tremor-libraries=DIR Directory where Tremor library is installed (optional)], tremor_libraries="$withval", tremor_libraries="")
AC_ARG_WITH(tremor-includes,[ --with-tremor-includes=DIR Directory where Tremor header files are installed (optional)], tremor_includes="$withval", tremor_includes="")
+AC_ARG_ENABLE(sidplay,
+ AS_HELP_STRING([--enable-sidplay],
+ [enable C64 SID support via libsidplay2 (default: disable)]),,
+ enable_sidplay=no)
+
AC_ARG_ENABLE(wavpack,
AS_HELP_STRING([--disable-wavpack],
[disable WavPack support (default: enable)]),
@@ -1004,6 +1009,20 @@ fi
AM_CONDITIONAL(HAVE_FFMPEG, test x$enable_ffmpeg = xyes)
+if test x$enable_sidplay = xyes; then
+ # libsidplay2 exposes a C++ interface
+ AC_PROG_CXX
+
+ # we have no test yet.. we're not using pkg-config here
+ # because libsidplay2's .pc file requires libtool
+ AC_SUBST(SIDPLAY_LIBS,"-lsidplay2 -lresid-builder")
+ AC_SUBST(SIDPLAY_CFLAGS,)
+
+ AC_DEFINE(ENABLE_SIDPLAY, 1, [Define for libsidplay2 support]),
+fi
+
+AM_CONDITIONAL(ENABLE_SIDPLAY, test x$enable_sidplay = xyes)
+
dnl
dnl Documentation
@@ -1283,6 +1302,12 @@ else
echo " MODPLUG support ...............disabled"
fi
+if test x$enable_sidplay = xyes; then
+ echo " C64 SID support ...............enabled"
+else
+ echo " C64 SID support ...............disabled"
+fi
+
if test x$enable_ffmpeg = xyes; then
echo " FFMPEG support ................enabled"
else
@@ -1300,6 +1325,7 @@ if
test x$enable_wavpack = xno &&
test x$enable_ffmpeg = xno &&
test x$enable_modplug = xno &&
+ test x$enable_sidplay = xno &&
test x$enable_mod = xno; then
AC_MSG_ERROR([No input plugins supported!])
fi