summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2009-12-04 20:24:15 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2009-12-05 06:27:47 (GMT)
commit96a23a4c117a9c2665ca09e5964eacf028dbcdcf (patch)
tree2ad5a6f21c337251fc541bce454cc5511ecf9885 /configure.in
parent96f22d97ec3ecf66ef600a446b65cdf9ad5e8619 (diff)
downloadmonitoring-plugins-96a23a4c117a9c2665ca09e5964eacf028dbcdcf.tar.gz
Detect arguments passed via --with-ping[6]-command (#2908236)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f354734..d02d7f8 100644
--- a/configure.in
+++ b/configure.in
@@ -877,10 +877,17 @@ ac_cv_ping_has_timeout=no
877if test -n "$with_ping_command" 877if test -n "$with_ping_command"
878then 878then
879 AC_MSG_RESULT([(command-line) $with_ping_command]) 879 AC_MSG_RESULT([(command-line) $with_ping_command])
880 if test -n "$ac_cv_ping_packets_first" 880 if echo "$with_ping_command" | grep '%d.*%d.*%s' >/dev/null
881 then 881 then
882 ac_cv_ping_packets_first=yes 882 ac_cv_ping_packets_first=yes
883 ac_cv_ping_has_timeout=yes 883 ac_cv_ping_has_timeout=yes
884 elif echo "$with_ping_command" | grep '%d.*%s.*%d' >/dev/null || \
885 echo "$with_ping_command" | grep '%s.*%d.*%d' >/dev/null
886 then
887 ac_cv_ping_has_timeout=yes
888 elif echo "$with_ping_command" | grep '%d.*%s' >/dev/null
889 then
890 ac_cv_ping_packets_first=yes
884 fi 891 fi
885 892
886elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ 893elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
@@ -981,7 +988,15 @@ ac_cv_ping6_packets_first=no
981if test -n "$with_ping6_command" 988if test -n "$with_ping6_command"
982then 989then
983 AC_MSG_RESULT([(command-line) $with_ping6_command]) 990 AC_MSG_RESULT([(command-line) $with_ping6_command])
984 if test -n "$ac_cv_ping6_packets_first" 991 if echo "$with_ping6_command" | grep '%d.*%d.*%s' >/dev/null
992 then
993 ac_cv_ping6_packets_first=yes
994 elif echo "$with_ping6_command" | grep '%d.*%s.*%d' >/dev/null || \
995 echo "$with_ping6_command" | grep '%s.*%d.*%d' >/dev/null
996 then
997 # Just keep same logic as ping (IPv4) if we ever need ac_cv_ping6_has_timeout
998 true
999 elif echo "$with_ping6_command" | grep '%d.*%s' >/dev/null
985 then 1000 then
986 ac_cv_ping6_packets_first=yes 1001 ac_cv_ping6_packets_first=yes
987 fi 1002 fi