From 30dd29e251f6a9d247b2203a1e3030c4d52b106c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 24 Oct 2014 23:43:21 +0200 Subject: configure.ac: improve database dependency checks Abort if --enable-libmpdclient or --enable-upnp are used with --disable-database, instead of ignoring the mismatch silently. --- m4/mpd_depends.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 m4/mpd_depends.m4 (limited to 'm4/mpd_depends.m4') diff --git a/m4/mpd_depends.m4 b/m4/mpd_depends.m4 new file mode 100644 index 000000000..4898f9084 --- /dev/null +++ b/m4/mpd_depends.m4 @@ -0,0 +1,9 @@ +AC_DEFUN([MPD_DEPENDS], [ + if test x$$2 = xno; then + if test x$$1 = xauto; then + $1=no + elif test x$$1 = xyes; then + AC_MSG_ERROR([$3]) + fi + fi +]) -- cgit v1.2.3