configure: support --without-ignored-network-interface-prefix
authorStefan Becker <chemobejk@gmail.com>
Thu, 27 Jun 2019 09:41:06 +0000 (12:41 +0300)
committerStefan Becker <chemobejk@gmail.com>
Thu, 27 Jun 2019 16:52:31 +0000 (19:52 +0300)
This fixes commit b4abda09c79e4ce372a3771300abf568c85c7ff5

--without-XXX sets $withval to "no", hence we must check for this special
value instead of ignoring network interfaces that start with "no".

configure.ac

index 5254154..42d1fe9 100644 (file)
@@ -403,7 +403,7 @@ AC_ARG_WITH([ignored-network-interface-prefix],
      check algorithm. For example, interfaces "virbr" in the case of the virtual bridge
      handled by libvirtd, do not help in finding connectivity.])],
     [interface_prefix="$withval"])
-AS_IF([test -n "$interface_prefix"],
+AS_IF([test -n "$interface_prefix" && test "x$interface_prefix" != "xno"],
   [[interface_prefix_list=`echo $interface_prefix | sed 's/,/","/g'`]
    AC_DEFINE_UNQUOTED([IGNORED_IFACE_PREFIX],["$interface_prefix_list"],
     [Ignore this network interface prefix from the connection check])