diff options
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in index f3547349..d02d7f85 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -877,10 +877,17 @@ ac_cv_ping_has_timeout=no | |||
| 877 | if test -n "$with_ping_command" | 877 | if test -n "$with_ping_command" |
| 878 | then | 878 | then |
| 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 | ||
| 886 | elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 893 | elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
| @@ -981,7 +988,15 @@ ac_cv_ping6_packets_first=no | |||
| 981 | if test -n "$with_ping6_command" | 988 | if test -n "$with_ping6_command" |
| 982 | then | 989 | then |
| 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 |
