diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-02-18 21:58:34 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-02-18 21:58:34 +0100 |
commit | 0645c9fc2c7f801ba3c7d68a17c137a63ada299f (patch) | |
tree | ce222906f546f03301defba9ce81ba57591a8eb3 /configure.ac | |
parent | 39680498ee0987a5e0eb203a2c0539aa1fa94d39 (diff) | |
download | monitoring-plugins-0645c9fc2c7f801ba3c7d68a17c137a63ada299f.tar.gz |
Implement new output functionality
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0432336b..b12cf6c5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -190,6 +190,19 @@ if test "$enable_libtap" = "yes" ; then | |||
190 | AC_SUBST(EXTRA_PLUGIN_TESTS) | 190 | AC_SUBST(EXTRA_PLUGIN_TESTS) |
191 | fi | 191 | fi |
192 | 192 | ||
193 | dnl JSON capabilities (cjson) | ||
194 | AC_ARG_ENABLE([json-output], | ||
195 | AC_HELP_STRING([--enable-json-output], | ||
196 | [Enables switching the output format to JSON (default: yes)]), | ||
197 | [case "${enableval}" in | ||
198 | yes) json-ouput=true ;; | ||
199 | no) json-ouput=false ;; | ||
200 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-json-ouput]) ;; | ||
201 | esac], [json_output=true]) | ||
202 | |||
203 | AM_CONDITIONAL([ENALBE_JSON_OUTPUT], [test x$json_output = xtrue]) | ||
204 | |||
205 | |||
193 | dnl INI Parsing | 206 | dnl INI Parsing |
194 | AC_ARG_ENABLE(extra-opts, | 207 | AC_ARG_ENABLE(extra-opts, |
195 | AC_HELP_STRING([--enable-extra-opts], | 208 | AC_HELP_STRING([--enable-extra-opts], |