summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-10 20:57:50 +0100
committerMax Kellermann <max@musicpd.org>2018-01-12 14:33:22 +0100
commit93b51d56aa61aae9a5096d40cd5a36de0e658f49 (patch)
tree70ecddebd3490af59b55630becb3d3054ebbc153 /configure.ac
parent86c50574d2056563d8e506cb0ccdfafa628070f1 (diff)
input/tidal: new input plugin to receive Tidal streams
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ca9ee1691..6216a4f90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -367,6 +367,11 @@ AC_ARG_ENABLE(soundcloud,
[enable support for soundcloud.com]),,
[enable_soundcloud=auto])
+AC_ARG_ENABLE(tidal,
+ AS_HELP_STRING([--enable-tidal],
+ [enable support for Tidal streaming]),,
+ [enable_tidal=auto])
+
AC_ARG_ENABLE([libwrap],
AS_HELP_STRING([--enable-libwrap], [use libwrap]),,
[enable_libwrap=auto])
@@ -562,7 +567,7 @@ MPD_ENABLE_AUTO_PKG(expat, EXPAT, [expat],
dnl -------------------------------- yajl -------------------------------------
-if test x$enable_soundcloud != xno; then
+if test x$enable_soundcloud != xno || test x$enable_tidal != xno; then
PKG_CHECK_MODULES([YAJL], [yajl >= 2.0],
[found_yajl=yes],
[found_yajl=no])
@@ -700,6 +705,7 @@ dnl Input Plugins
dnl ---------------------------------------------------------------------------
dnl ----------------------------------- CURL ----------------------------------
+
MPD_ENABLE_AUTO_PKG(curl, CURL, [libcurl >= 7.18],
[libcurl HTTP streaming], [libcurl not found])
@@ -718,6 +724,12 @@ MPD_DEPENDS([enable_soundcloud], [found_yajl],
MPD_DEFINE_CONDITIONAL(enable_soundcloud, ENABLE_SOUNDCLOUD,
[soundcloud.com support])
+dnl --------------------------------- Tidal -----------------------------------
+MPD_DEPENDS([enable_tidal], [found_yajl], [Tidal streaming], [libyajl not found])
+MPD_DEPENDS([enable_tidal], [enable_curl], [Tidal streaming], [libcurl not found])
+MPD_AUTO(tidal, [Tidal streaming], [Tidal not available], [found_tidal=yes])
+MPD_DEFINE_CONDITIONAL(enable_tidal, ENABLE_TIDAL, [Tidal streaming])
+
dnl ---------------------------------- cdio ---------------------------------
MPD_ENABLE_AUTO_PKG(cdio_paranoia, CDIO_PARANOIA, [libcdio_paranoia],
[libcdio_paranoia input plugin], [libcdio_paranoia not found])
@@ -1515,6 +1527,7 @@ results(cdio_paranoia, [CDIO_PARANOIA])
results(curl,[CURL])
results(smbclient,[SMBCLIENT])
results(soundcloud,[Soundcloud])
+results(tidal,[Tidal])
printf '\n\t'
results(mms,[MMS])