aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-10 19:17:16 +0100
committerMax Kellermann <max@duempel.org>2013-12-01 19:13:39 +0100
commit3e11a28cd9c204076407f02a600fcc617c7e0f3e (patch)
tree798cddd1c3804a558b1cdc885b70f5197e68d31e /configure.ac
parent3ed80f31399c80a90bc3d2a845e739fff485d7c5 (diff)
downloadmpd-3e11a28cd9c204076407f02a600fcc617c7e0f3e.tar.gz
mpd-3e11a28cd9c204076407f02a600fcc617c7e0f3e.tar.xz
mpd-3e11a28cd9c204076407f02a600fcc617c7e0f3e.zip
pcm/SoxrResampler: new resampler option using libsoxr
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 23998269b..0d74b0ca6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -360,6 +360,11 @@ AC_ARG_ENABLE(lsr,
[enable libsamplerate support]),,
enable_lsr=auto)
+AC_ARG_ENABLE(soxr,
+ AS_HELP_STRING([--enable-soxr],
+ [enable the libsoxr resampler]),,
+ enable_soxr=auto)
+
AC_ARG_ENABLE(mad,
AS_HELP_STRING([--enable-mad],
[enable libmad mp3 decoder plugin]),,
@@ -765,6 +770,15 @@ if test x$enable_lsr = xyes; then
fi
AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test x$enable_lsr = xyes)
+dnl ------------------------------ libsoxr ------------------------------------
+MPD_AUTO_PKG(soxr, SOXR, [soxr],
+ [libsoxr resampler], [libsoxr not found])
+if test x$enable_soxr = xyes; then
+ AC_DEFINE([HAVE_SOXR], 1, [Define to enable libsoxr])
+fi
+
+AM_CONDITIONAL(HAVE_SOXR, test x$enable_soxr = xyes)
+
dnl ---------------------------------------------------------------------------
dnl Input Plugins
dnl ---------------------------------------------------------------------------
@@ -1626,6 +1640,7 @@ results(wildmidi, [WildMidi])
printf '\nOther features:\n\t'
results(lsr, [libsamplerate])
+results(soxr, [libsoxr])
results(libmpdclient, [libmpdclient])
results(inotify, [inotify])
results(sqlite, [SQLite])