From: Erik Auerswald Date: Tue, 6 Jan 2026 23:47:32 +0000 (+0100) Subject: configure.ac: improve portability X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe631e98f982eb19512ef5920cbceacfde3277e;p=fping.git configure.ac: improve portability Testing string equality using "test" is done with the "=" operator. Bash also accepts "==", but this is not portable. The issue was noticed on NetBSD, which uses a patch to the generated "configure" script[1]. [1] https://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/fping/patches/patch-configure?rev=1.3;content-type=text%2Fplain --- diff --git a/CHANGELOG.md b/CHANGELOG.md index d83086d..2abab21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Next - ci: Removed travis-ci (#446, thanks @gsnw-sebast) - Performance optimization: reduce number of select calls and use recvmsg with MSG_DONTWAIT instead (#449) +- Improved compatibility with NetBSD (#452, thanks @auerswal) fping 5.5 (2025-12-31) ====================== diff --git a/configure.ac b/configure.ac index 115f906..27454a9 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ AS_IF([test "x$enable_ipv6" != "xno"], [ #include ]]) ]) -AS_IF([test "x$have_ipv6" == "xyes"], [ +AS_IF([test "x$have_ipv6" = "xyes"], [ dnl Test if IPv6 is supported AC_CHECK_HEADERS([netinet/ip6.h], [have_ipv6="yes"], [have_ipv6="no"], [[ #include