summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-31 22:34:26 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-21 14:55:22 +0200
commit53b997359fe5c18b64e587f0324ee0258ef5a719 (patch)
treec13c45830a18c503b06701087ac4b17afd57e67c /configure.ac
parentlib: move hashstats under debug, show per-daemon (diff)
downloadfrr-53b997359fe5c18b64e587f0324ee0258ef5a719.tar.xz
frr-53b997359fe5c18b64e587f0324ee0258ef5a719.zip
build: fix --disable-snmp
--disable-foo results in "no" as value in $enable_foo Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rwxr-xr-xconfigure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 710a71f63..bf66e00f9 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1366,7 +1366,7 @@ fi
dnl ------------------
dnl check Net-SNMP library
dnl ------------------
-if test "${enable_snmp}" != ""; then
+if test "${enable_snmp}" != "" -a "${enable_snmp}" != "no"; then
AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], [no])
if test x"$NETSNMP_CONFIG" = x"no"; then
AC_MSG_ERROR([--enable-snmp given but unable to find net-snmp-config])