[monitoring-plugins] Fix PATH_TO_QMAIL_QSTAT in configure

Holger Weiss git at monitoring-plugins.org
Thu Jul 31 00:20:08 CEST 2014


    Module: monitoring-plugins
    Branch: master
    Commit: 4940a77aed654800224ae6662a4685c5505d78a6
    Author: awiddersheim <awiddersheim at hotmail.com>
 Committer: Holger Weiss <holger at zedat.fu-berlin.de>
      Date: Mon Oct 21 14:28:39 2013 -0400
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4940a77

Fix PATH_TO_QMAIL_QSTAT in configure

When configuring PATH_TO_QMAIL_QSTAT the PATH_TO_MAILQ would get applied
instead after tests had passed. Also made --with-qmail-qstat-command a
configuration option.

---

 configure.ac | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index f6ead58..1fa7472 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1478,9 +1478,12 @@ else
 fi
 
 AC_PATH_PROG(PATH_TO_QMAIL_QSTAT,qmail-qstat)
-if test -x "$PATH_TO_QMAIL_QSTAT"
+AC_ARG_WITH(qmail_qstat_command,
+            ACX_HELP_STRING([--with-qmail-qstat-command=PATH],
+                            [sets path to qmail-qstat]), PATH_TO_QMAIL_QSTAT=$withval)
+if test -n "$PATH_TO_QMAIL_QSTAT"
 then
-	AC_DEFINE_UNQUOTED(PATH_TO_MAILQ,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat])
+	AC_DEFINE_UNQUOTED(PATH_TO_QMAIL_QSTAT,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat])
 else
 	AC_MSG_WARN([Could not find qmail-qstat or eqivalent])
 fi



More information about the Commits mailing list