diff options
author | Max Kellermann <max@duempel.org> | 2012-03-01 20:18:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-01 20:18:16 +0100 |
commit | d07a6edd2f95f6ce11a381ef71e348f9536c1e80 (patch) | |
tree | fbd71383bc7b67747a884146c5bf71a1273094a8 /configure.ac | |
parent | 553d4e9283fe32ffdb8bd0707c63f380fd049229 (diff) | |
download | mpd-d07a6edd2f95f6ce11a381ef71e348f9536c1e80.tar.gz mpd-d07a6edd2f95f6ce11a381ef71e348f9536c1e80.tar.xz mpd-d07a6edd2f95f6ce11a381ef71e348f9536c1e80.zip |
configure.ac: detect libyajl for playlist/soundcloud
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 0bd8f9aba..ba2b35f69 100644 --- a/configure.ac +++ b/configure.ac @@ -274,8 +274,8 @@ AC_ARG_ENABLE(despotify, AC_ARG_ENABLE(soundcloud, AS_HELP_STRING([--enable-soundcloud], - [enable support for soundcloud (default: disable)]),, - [enable_soundcloud=no]) + [enable support for soundcloud.com]),, + [enable_soundcloud=auto]) AC_ARG_ENABLE(lame-encoder, AS_HELP_STRING([--enable-lame-encoder], @@ -708,10 +708,17 @@ fi AM_CONDITIONAL(ENABLE_DESPOTIFY, test x$enable_despotify = xyes) dnl --------------------------------- Soundcloud ------------------------------ +if test x$enable_soundcloud != xno; then + AC_CHECK_LIB([yajl], [yajl_alloc], + [found_soundcloud=yes YAJL_LIBS=-lyajl], + [found_soundcloud=no]) +fi +MPD_AUTO_RESULT([soundcloud], [soundcloud.com support], [libyajl not found]) if test x$enable_soundcloud = xyes; then AC_DEFINE(ENABLE_SOUNDCLOUD, 1, [Define when soundcloud is enabled]) fi AM_CONDITIONAL(ENABLE_SOUNDCLOUD, test x$enable_soundcloud = xyes) +AC_SUBST(YAJL_LIBS) dnl ---------------------------------- cdio --------------------------------- MPD_AUTO_PKG(cdio_paranoia, CDIO_PARANOIA, [libcdio_paranoia], |