diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 21:13:38 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 21:13:38 +0100 |
commit | 8235fd0aef2945e0d638fba3493134588d085d5a (patch) | |
tree | aafe5c7cf840fe013ca423445cc88bb5f8b1bc74 /configure.ac | |
parent | 04e0a182aeb5defaf6b39cbbd8d9c87491c4f1e4 (diff) | |
download | monitoring-plugins-8235fd0aef2945e0d638fba3493134588d085d5a.tar.gz |
check_mailq: Add sudo support
This addition is based on a patch contributed by Christopher Schultz.
Closes #1099.
Closes #1171.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fb8f9500..ce1728e3 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1484,6 +1484,16 @@ else | |||
1484 | AC_MSG_WARN([Get ssh in order to make check_by_ssh plugin]) | 1484 | AC_MSG_WARN([Get ssh in order to make check_by_ssh plugin]) |
1485 | fi | 1485 | fi |
1486 | 1486 | ||
1487 | AC_PATH_PROG(PATH_TO_SUDO,sudo) | ||
1488 | AC_ARG_WITH(sudo_command, | ||
1489 | ACX_HELP_STRING([--with-sudo-command=PATH], | ||
1490 | [sets path to sudo]), PATH_TO_SUDO=$withval) | ||
1491 | if test -n "$PATH_TO_SUDO" | ||
1492 | then | ||
1493 | AC_DEFINE_UNQUOTED(PATH_TO_SUDO,"$PATH_TO_SUDO",[path to sudo]) | ||
1494 | else | ||
1495 | AC_MSG_WARN([Could not find sudo or eqivalent]) | ||
1496 | fi | ||
1487 | 1497 | ||
1488 | AC_PATH_PROG(PATH_TO_MAILQ,mailq) | 1498 | AC_PATH_PROG(PATH_TO_MAILQ,mailq) |
1489 | AC_ARG_WITH(mailq_command, | 1499 | AC_ARG_WITH(mailq_command, |