]> git.tokkee.org Git - nagiosplug.git/commitdiff

Code

check for the -w flag for ping6 as well as ping
authorM. Sean Finney <seanius@users.sourceforge.net>
Tue, 19 Apr 2005 00:09:18 +0000 (00:09 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Tue, 19 Apr 2005 00:09:18 +0000 (00:09 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1165 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index e2c79afb57d2cb6285ae9cf50b745d046afc031d..65c7b31e75d3d6fb0b91994c7ef0920f02d6ac98 100644 (file)
@@ -957,6 +957,14 @@ elif test "x$PATH_TO_PING6" != "x"; then
                ac_cv_ping6_packets_first=yes
                AC_MSG_RESULT([$with_ping6_command])
 
+       elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \
+               egrep -i "^round-trip|^rtt" >/dev/null
+       then
+               with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s"
+               ac_cv_ping6_packets_first=yes
+               ac_cv_ping_has_timeout=yes
+               AC_MSG_RESULT([$with_ping6_command])
+
        elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \
                egrep -i "^round-trip|^rtt" >/dev/null
        then