]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: fix --disable-snmp
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:22 +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 710a71f63620d66070552f418ee65bb7acd9929d..bf66e00f9fbcb9b0e3220d08816a87eb011cc2bd 100755 (executable)
@@ -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])