From: David Lamparter Date: Mon, 31 Jul 2017 20:34:26 +0000 (+0200) Subject: build: fix --disable-snmp X-Git-Tag: frr-3.0-rc2~17^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9f837dcab60a48163f72218e6a6b954376d7ee34;p=matthieu%2Ffrr.git build: fix --disable-snmp --disable-foo results in "no" as value in $enable_foo Signed-off-by: David Lamparter --- diff --git a/configure.ac b/configure.ac index 72f390c9d5..be0329604f 100755 --- a/configure.ac +++ b/configure.ac @@ -1315,7 +1315,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])