aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2020-05-15 11:46:54 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2020-05-15 11:46:54 +0200
commit53e6f2970dcbabd41d55d87b2e7623a86fe48ec9 (patch)
tree766daf6602971dfc37e3e1d5f7483e35b98be5ff /configure.ac
parentadb958849491ea7e0bba4a15896ebd41a0fbff2d (diff)
parent4264e7a6edb651793ef751723537767656a89e44 (diff)
downloadmonitoring-plugins-53e6f2970dcbabd41d55d87b2e7623a86fe48ec9.tar.gz
Merge branch 'upstream' into check_curl
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 267c40a2..4aebc2ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1100,6 +1100,14 @@ then
ac_cv_ping_packets_first=yes
AC_MSG_RESULT([$with_ping_command])
+elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
+ egrep -i "^round-trip|^rtt" >/dev/null
+then
+ # check if -4 is supported - issue #1550
+ with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s"
+ ac_cv_ping_packets_first=yes
+ ac_cv_ping_has_timeout=yes
+ AC_MSG_RESULT([$with_ping_command])
elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
egrep -i "^round-trip|^rtt" >/dev/null
then