]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix --disable-snmp 1015/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 31 Jul 2017 20:34:26 +0000 (22:34 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 21 Aug 2017 12:55:00 +0000 (14:55 +0200)
--disable-foo results in "no" as value in $enable_foo

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
configure.ac

index 72f390c9d5871c8694fa2df371e17dc3858bcd90..be0329604f0e36f2c9c42900feedc01df0c17a03 100755 (executable)
@@ -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])