summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e4351ad7..41b39c7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.64]) 2AC_PREREQ([2.64])
3AC_INIT([monitoring-plugins],[2.4git]) 3AC_INIT([monitoring-plugins],[3.0.0git])
4AC_CONFIG_SRCDIR(NPTest.pm) 4AC_CONFIG_SRCDIR(NPTest.pm)
5AC_CONFIG_FILES([gl/Makefile]) 5AC_CONFIG_FILES([gl/Makefile])
6AC_CONFIG_AUX_DIR(build-aux) 6AC_CONFIG_AUX_DIR(build-aux)
@@ -1445,6 +1445,19 @@ else
1445 AC_MSG_WARN([Get smbclient from Samba.org to monitor SMB shares]) 1445 AC_MSG_WARN([Get smbclient from Samba.org to monitor SMB shares])
1446fi 1446fi
1447 1447
1448AC_PATH_PROG(PATH_TO_NETSNMPCONFIG,net-snmp-config)
1449AC_ARG_WITH(netsnmpconfig_command,
1450 ACX_HELP_STRING([--with-net-snmp-config-command=PATH],
1451 [sets path to net-snmp-config]),
1452 PATH_TO_NETSNMPCONFIG=$withval)
1453if test -n "$PATH_TO_NETSNMPCONFIG"
1454then
1455 AC_DEFINE_UNQUOTED(PATH_TO_NETSNMPCONFIG,"$PATH_TO_NETSNMPCONFIG",[path to net-snmp-config binary])
1456 EXTRAS="$EXTRAS check_snmp"
1457else
1458 AC_MSG_WARN([Install net-snmp-config to build check_snmp])
1459fi
1460
1448AC_PATH_PROG(PATH_TO_SNMPGET,snmpget) 1461AC_PATH_PROG(PATH_TO_SNMPGET,snmpget)
1449AC_ARG_WITH(snmpget_command, 1462AC_ARG_WITH(snmpget_command,
1450 ACX_HELP_STRING([--with-snmpget-command=PATH], 1463 ACX_HELP_STRING([--with-snmpget-command=PATH],