From 5fe631e98f982eb19512ef5920cbceacfde3277e Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Wed, 7 Jan 2026 00:47:32 +0100 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + configure.ac | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.0