summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96f22d9)
raw | patch | inline | side by side (parent: 96f22d9)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Fri, 4 Dec 2009 20:24:15 +0000 (15:24 -0500) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Sat, 5 Dec 2009 06:27:47 +0000 (01:27 -0500) |
NEWS | patch | blob | history | |
configure.in | patch | blob | history |
index f5be20140ce6c3dd2c63b129465c5a90c89d178e..667e1f0e33d48f89147e7c458ba2cd03350e8ff2 100644 (file)
--- a/NEWS
+++ b/NEWS
Add proxy-authorization option to check_http (Marcel Kuiper - #1323230, Bryan Irvine - #2863925)
check_icmp now increment the sequence counter in each packet
Fix usage of repeated -o options in check_snmp
Add proxy-authorization option to check_http (Marcel Kuiper - #1323230, Bryan Irvine - #2863925)
check_icmp now increment the sequence counter in each packet
Fix usage of repeated -o options in check_snmp
+ Try to detect arguments passed via --with-ping[6]-command and set options accordingly (#2908236)
WARNINGS
Updated developer documentation to say that performance labels should not have an equals sign or
single quote in the label
WARNINGS
Updated developer documentation to say that performance labels should not have an equals sign or
single quote in the label
diff --git a/configure.in b/configure.in
index f3547349b06361f152679ddc41cdc299586d90fd..d02d7f85beafe3c993eea023a5473fae09c69a08 100644 (file)
--- a/configure.in
+++ b/configure.in
if test -n "$with_ping_command"
then
AC_MSG_RESULT([(command-line) $with_ping_command])
if test -n "$with_ping_command"
then
AC_MSG_RESULT([(command-line) $with_ping_command])
- if test -n "$ac_cv_ping_packets_first"
+ if echo "$with_ping_command" | grep '%d.*%d.*%s' >/dev/null
then
ac_cv_ping_packets_first=yes
ac_cv_ping_has_timeout=yes
then
ac_cv_ping_packets_first=yes
ac_cv_ping_has_timeout=yes
+ elif echo "$with_ping_command" | grep '%d.*%s.*%d' >/dev/null || \
+ echo "$with_ping_command" | grep '%s.*%d.*%d' >/dev/null
+ then
+ ac_cv_ping_has_timeout=yes
+ elif echo "$with_ping_command" | grep '%d.*%s' >/dev/null
+ then
+ ac_cv_ping_packets_first=yes
fi
elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
fi
elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
if test -n "$with_ping6_command"
then
AC_MSG_RESULT([(command-line) $with_ping6_command])
if test -n "$with_ping6_command"
then
AC_MSG_RESULT([(command-line) $with_ping6_command])
- if test -n "$ac_cv_ping6_packets_first"
+ if echo "$with_ping6_command" | grep '%d.*%d.*%s' >/dev/null
+ then
+ ac_cv_ping6_packets_first=yes
+ elif echo "$with_ping6_command" | grep '%d.*%s.*%d' >/dev/null || \
+ echo "$with_ping6_command" | grep '%s.*%d.*%d' >/dev/null
+ then
+ # Just keep same logic as ping (IPv4) if we ever need ac_cv_ping6_has_timeout
+ true
+ elif echo "$with_ping6_command" | grep '%d.*%s' >/dev/null
then
ac_cv_ping6_packets_first=yes
fi
then
ac_cv_ping6_packets_first=yes
fi