diff options
author | Max Kellermann <max@duempel.org> | 2014-10-24 23:43:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-24 23:43:21 +0200 |
commit | 30dd29e251f6a9d247b2203a1e3030c4d52b106c (patch) | |
tree | a439a5bad96b3ddfd758f915967f769fc2bf1490 /configure.ac | |
parent | 6cf1acfb4885a86c35312e160f02a6739887a8a0 (diff) | |
download | mpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.tar.gz mpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.tar.xz mpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.zip |
configure.ac: improve database dependency checks
Abort if --enable-libmpdclient or --enable-upnp are used with
--disable-database, instead of ignoring the mismatch silently.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9b6e67854..d7f8a3238 100644 --- a/configure.ac +++ b/configure.ac @@ -293,7 +293,9 @@ fi AC_ARG_ENABLE(libmpdclient, AS_HELP_STRING([--enable-libmpdclient], [enable support for the MPD client]),, - enable_libmpdclient=$database_auto) + enable_libmpdclient=auto) +MPD_DEPENDS([enable_libmpdclient], [enable_database], + [Cannot use --enable-libmpdclient with --disable-database]) AC_ARG_ENABLE(expat, AS_HELP_STRING([--enable-expat], @@ -303,7 +305,9 @@ AC_ARG_ENABLE(expat, AC_ARG_ENABLE(upnp, AS_HELP_STRING([--enable-upnp], [enable UPnP client support (default: auto)]),, - enable_upnp=$database_auto) + enable_upnp=auto) +MPD_DEPENDS([enable_upnp], [enable_database], + [Cannot use --enable-upnp with --disable-database]) AC_ARG_ENABLE(adplug, AS_HELP_STRING([--enable-adplug], |