summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-02-25 13:58:02 (GMT)
committerLorenz Kästle <lorenz.kaestle@netways.de>2022-01-14 15:25:14 (GMT)
commitb9c9db5fdff9575015e4c38a5fab70b229c5d8a8 (patch)
tree078e453aea985bbfae95c54978f82e2a92501a1f
parent54a3a5ea623e5cfd65d810f4b6792f199470b2d4 (diff)
downloadmonitoring-plugins-iputils.tar.gz
check for ping -{4,6} from new upstream iputilsiputils
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dfc37b5..89eda3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1225,6 +1225,16 @@ elif [[ "z$ac_cv_uname_o" = "zCygwin" -a "x$PATH_TO_PING" != "x" ]]; then
1225 ac_cv_ping6_packets_first=yes 1225 ac_cv_ping6_packets_first=yes
1226 ac_cv_ping_has_timeout=yes 1226 ac_cv_ping_has_timeout=yes
1227 AC_MSG_RESULT([$with_ping6_command]) 1227 AC_MSG_RESULT([$with_ping6_command])
1228
1229elif test "x$PATH_TO_PING" != "x" && \
1230 $PATH_TO_PING -6 -n -U -w 10 -c 1 ::1 2>/dev/null | \
1231 egrep -i "^round-trip|^rtt" >/dev/null
1232then
1233 with_ping6_command="$PATH_TO_PING -6 -n -U -w %d -c %d %s"
1234 ac_cv_ping6_packets_first=yes
1235 ac_cv_ping_has_timeout=yes
1236 AC_MSG_RESULT([$with_ping6_command])
1237
1228elif test "x$PATH_TO_PING6" != "x"; then 1238elif test "x$PATH_TO_PING6" != "x"; then
1229 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ 1239 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1230 $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ 1240 $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \