aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-20 22:04:14 +0100
committerMax Kellermann <max@duempel.org>2015-03-20 22:04:14 +0100
commit622d871587df9f2d638f73d3aae550c3a3dc3500 (patch)
treefb6fb0645151fb57f96f432e6630873f36c64205
parent63d04645c765f694788ab12e26cf98164776a4e3 (diff)
downloadmpd-622d871587df9f2d638f73d3aae550c3a3dc3500.tar.gz
mpd-622d871587df9f2d638f73d3aae550c3a3dc3500.tar.xz
mpd-622d871587df9f2d638f73d3aae550c3a3dc3500.zip
m4: add MPD_ENABLE_AUTO()
Diffstat (limited to '')
-rw-r--r--m4/mpd_auto.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/mpd_auto.m4 b/m4/mpd_auto.m4
index bcc4c9845..56957c854 100644
--- a/m4/mpd_auto.m4
+++ b/m4/mpd_auto.m4
@@ -114,6 +114,15 @@ AC_DEFUN([MPD_ARG_ENABLE], [
MPD_DEFINE_CONDITIONAL(enable_$1, ENABLE_$2, [$3])
])
+dnl Wrapper for MPD_ARG_ENABLE and MPD_AUTO
+dnl
+dnl Parameters: varname1, varname2, description, errmsg, default, check
+AC_DEFUN([MPD_ENABLE_AUTO], [
+ MPD_ARG_ENABLE([$1], [$2], [$3], [$5], [
+ MPD_AUTO([$1], [$3], [$4], [$6])
+ ])
+])
+
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, pre