summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-03-11 18:32:08 (GMT)
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>2003-03-11 18:32:08 (GMT)
commitaad5b084913ee29cdda1849a11cd10090274b824 (patch)
tree9b8dbe4b968a1c5228a040a35a77f579f71c7aaf /configure.in
parent261b267e0965febb4f41237d79d7cb580a4fc029 (diff)
downloadmonitoring-plugins-aad5b084913ee29cdda1849a11cd10090274b824.tar.gz
Minor change to Karl's statfs check
Inclusion of ICMPv6 ping tests to define PING6_COMMAND Minor fix to ps syntax checking to fix bug I introduced last nite git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@394 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in221
1 files changed, 182 insertions, 39 deletions
diff --git a/configure.in b/configure.in
index 1cad0d9..179fd25 100644
--- a/configure.in
+++ b/configure.in
@@ -42,8 +42,10 @@ choke -- this is a workaround for a Sun-specific problem
42#include <sys/types.h> 42#include <sys/types.h>
43#include <sys/vfs.h>], 43#include <sys/vfs.h>],
44[struct statfs t; long c = *(t.f_spare);], 44[struct statfs t; long c = *(t.f_spare);],
45fu_cv_sys_truncating_statfs=yes, 45fu_cv_sys_truncating_statfs=yes
46fu_cv_sys_truncating_statfs=no, 46AC_MSG_RESULT(yes),
47fu_cv_sys_truncating_statfs=no
48AC_MSG_RESULT(no),
47)]) 49)])
48if test $fu_cv_sys_truncating_statfs = yes; then 50if test $fu_cv_sys_truncating_statfs = yes; then
49 AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, 51 AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1,
@@ -596,8 +598,7 @@ ac_cv_use_ps_vars=no
596AC_MSG_CHECKING(for ps syntax) 598AC_MSG_CHECKING(for ps syntax)
597dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND 599dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
598if ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ 600if ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \
599 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ \ 601 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
600 +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
601then 602then
602 ac_cv_use_ps_vars=yes 603 ac_cv_use_ps_vars=yes
603 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 604 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -629,8 +630,7 @@ then
629 630
630dnl BSD-like mode in RH 6.1 631dnl BSD-like mode in RH 6.1
631elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | \ 632elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | \
632 egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] \ 633 egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
633 >/dev/null
634then 634then
635 ac_cv_use_ps_vars=yes 635 ac_cv_use_ps_vars=yes
636 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 636 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -646,9 +646,8 @@ then
646 646
647dnl SunOS 4.1.3: 647dnl SunOS 4.1.3:
648dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND 648dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
649elif ps -laxnwww 2>/dev/null | egrep -i ["^ *F(LAGS)? +UID +PID +PPID \ 649elif ps -laxnwww 2>/dev/null | \
650 +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME \ 650 egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null
651 +COMMAND"] >/dev/null
652then 651then
653 ac_cv_use_ps_vars=yes 652 ac_cv_use_ps_vars=yes
654 ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" 653 ac_cv_ps_raw_command="$PATH_TO_PS laxnwww"
@@ -666,8 +665,8 @@ dnl Debian Linux / procps v1.2.9:
666dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND 665dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND
667dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] 666dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2]
668dnl 667dnl
669elif ps laxnwww 2>/dev/null | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI \ 668elif ps laxnwww 2>/dev/null | \
670 +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null 669 egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null
671then 670then
672 ac_cv_use_ps_vars=yes 671 ac_cv_use_ps_vars=yes
673 ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" 672 ac_cv_ps_raw_command="$PATH_TO_PS laxnwww"
@@ -683,8 +682,7 @@ then
683 682
684dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) 683dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs)
685elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ 684elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \
686 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ \ 685 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
687 +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
688then 686then
689 ac_cv_use_ps_vars=yes 687 ac_cv_use_ps_vars=yes
690 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 688 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -700,8 +698,7 @@ then
700 698
701dnl AIX 4.3.3 - needs verification. This works for Tru64 - needs %*[ +] in PS_FORMAT 699dnl AIX 4.3.3 - needs verification. This works for Tru64 - needs %*[ +] in PS_FORMAT
702elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ 700elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | \
703 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ \ 701 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
704 +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
705then 702then
706 ac_cv_use_ps_vars=yes 703 ac_cv_use_ps_vars=yes
707 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 704 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -716,8 +713,7 @@ then
716 AC_MSG_RESULT([$ac_cv_ps_command]) 713 AC_MSG_RESULT([$ac_cv_ps_command])
717 714
718elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | \ 715elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | \
719 egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ \ 716 egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
720 +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
721then 717then
722 ac_cv_use_ps_vars=yes 718 ac_cv_use_ps_vars=yes
723 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 719 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -732,8 +728,7 @@ then
732 AC_MSG_RESULT([$ac_cv_ps_command]) 728 AC_MSG_RESULT([$ac_cv_ps_command])
733 729
734elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | \ 730elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | \
735 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ 731 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
736 +PPID +[RGSCOMDNA]+"] >/dev/null
737then 732then
738 ac_cv_use_ps_vars=yes 733 ac_cv_use_ps_vars=yes
739 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 734 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -748,8 +743,7 @@ then
748 AC_MSG_RESULT([$ac_cv_ps_command]) 743 AC_MSG_RESULT([$ac_cv_ps_command])
749 744
750elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | \ 745elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | \
751 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ 746 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
752 +PPID +[RGSCOMDNA]+"] >/dev/null
753then 747then
754 ac_cv_use_ps_vars=yes 748 ac_cv_use_ps_vars=yes
755 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 749 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -764,8 +758,7 @@ then
764 AC_MSG_RESULT([$ac_cv_ps_command]) 758 AC_MSG_RESULT([$ac_cv_ps_command])
765 759
766elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | \ 760elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | \
767 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ 761 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
768 +PPID +[RGSCOMDNA]+"] >/dev/null
769then 762then
770 ac_cv_use_ps_vars=yes 763 ac_cv_use_ps_vars=yes
771 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 764 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -781,8 +774,7 @@ then
781 774
782dnl wonder who takes state instead of stat 775dnl wonder who takes state instead of stat
783elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | \ 776elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | \
784 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ 777 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
785 +PPID +[RGSCOMDNA]+"] >/dev/null
786then 778then
787 ac_cv_use_ps_vars=yes 779 ac_cv_use_ps_vars=yes
788 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" 780 ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
@@ -797,8 +789,8 @@ then
797 AC_MSG_RESULT([$ac_cv_ps_command]) 789 AC_MSG_RESULT([$ac_cv_ps_command])
798 790
799dnl IRIX 53 791dnl IRIX 53
800elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ 792elif ps -el 2>/dev/null | \
801 +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 793 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
802then 794then
803 ac_cv_use_ps_vars=yes 795 ac_cv_use_ps_vars=yes
804 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" 796 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
@@ -811,8 +803,8 @@ then
811 AC_MSG_RESULT([$ac_cv_ps_command]) 803 AC_MSG_RESULT([$ac_cv_ps_command])
812 804
813dnl IRIX 63 805dnl IRIX 63
814elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ 806elif ps -el 2>/dev/null | \
815 +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 807 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
816then 808then
817 ac_cv_use_ps_vars=yes 809 ac_cv_use_ps_vars=yes
818 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" 810 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
@@ -827,8 +819,8 @@ then
827dnl AIX 4.1: 819dnl AIX 4.1:
828dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD 820dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD
829dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper 821dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper
830elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ 822elif ps -el 2>/dev/null | \
831 +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 823 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
832then 824then
833 ac_cv_use_ps_vars=yes 825 ac_cv_use_ps_vars=yes
834 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" 826 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
@@ -841,8 +833,8 @@ then
841 AC_MSG_RESULT([$ac_cv_ps_command]) 833 AC_MSG_RESULT([$ac_cv_ps_command])
842 834
843dnl AIX? 835dnl AIX?
844elif ps glaxen 2>/dev/null | egrep -i ["^ *F +UID +PID +PPID +PRI +NI \ 836elif ps glaxen 2>/dev/null | \
845 +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null 837 egrep -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null
846then 838then
847 ac_cv_use_ps_vars=yes 839 ac_cv_use_ps_vars=yes
848 ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]" 840 ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]"
@@ -874,8 +866,8 @@ then
874 AC_MSG_RESULT([$ac_cv_ps_command]) 866 AC_MSG_RESULT([$ac_cv_ps_command])
875 867
876dnl UnixWare 868dnl UnixWare
877elif ps -Al 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI \ 869elif ps -Al 2>/dev/null | \
878 +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null 870 egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null
879then 871then
880 ac_cv_use_ps_vars=yes 872 ac_cv_use_ps_vars=yes
881 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" 873 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
@@ -961,11 +953,12 @@ AC_ARG_WITH(ping_command,
961 [sets syntax for ICMP ping]), 953 [sets syntax for ICMP ping]),
962 ac_cv_ping_command=$withval,) 954 ac_cv_ping_command=$withval,)
963 955
964AC_MSG_CHECKING(for ping syntax) 956AC_MSG_CHECKING(for ICMP ping syntax)
957ac_cv_ping_packets_first=no
965if test -n "$ac_cv_ping_command" 958if test -n "$ac_cv_ping_command"
966then 959then
967 AC_MSG_RESULT([(command-line) $ac_cv_ping_command]) 960 AC_MSG_RESULT([(command-line) $ac_cv_ping_command])
968 if test -n "$PING_PACKETS_FIRST" 961 if test -n "$ac_cv_ping_packets_first"
969 then 962 then
970 ac_cv_ping_packets_first=yes 963 ac_cv_ping_packets_first=yes
971 dnl AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$ac_cv_ping_command", 964 dnl AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$ac_cv_ping_command",
@@ -1039,7 +1032,7 @@ fi
1039AC_DEFINE_UNQUOTED(PING_COMMAND,"$ac_cv_ping_command", 1032AC_DEFINE_UNQUOTED(PING_COMMAND,"$ac_cv_ping_command",
1040 [path and args for ICMP ping command]) 1033 [path and args for ICMP ping command])
1041 1034
1042if test x$ac_cv_ping_packets_first != xno 1035if test "x$ac_cv_ping_packets_first" != "xno"
1043then 1036then
1044 AC_DEFINE(PING_PACKETS_FIRST,1, 1037 AC_DEFINE(PING_PACKETS_FIRST,1,
1045 [Define if packet count must precede host]) 1038 [Define if packet count must precede host])
@@ -1048,7 +1041,157 @@ fi
1048AC_ARG_WITH(ping6_command, 1041AC_ARG_WITH(ping6_command,
1049 ACX_HELP_STRING([--with-ping6-command=SYNTAX], 1042 ACX_HELP_STRING([--with-ping6-command=SYNTAX],
1050 [sets syntax for ICMPv6 ping]), 1043 [sets syntax for ICMPv6 ping]),
1051 PING6_COMMAND=$withval,) 1044 ac_cv_ping6_command=$withval,)
1045
1046AC_MSG_CHECKING(for ICMPv6 ping syntax)
1047ac_cv_ping6_packets_first=no
1048if test -n "$ac_cv_ping6_command"
1049then
1050 AC_MSG_RESULT([(command-line) $ac_cv_ping6_command])
1051 if test -n "$ac_cv_ping6_packets_first"
1052 then
1053 ac_cv_ping6_packets_first=yes
1054 fi
1055
1056elif test "x$PATH_TO_PING6" != "x"; then
1057 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1058 $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \
1059 egrep -i "^round-trip|^rtt" >/dev/null
1060 then
1061 ac_cv_ping6_command="$PATH_TO_PING6 -n -U -c %d %s"
1062 ac_cv_ping6_packets_first=yes
1063 AC_MSG_RESULT([$ac_cv_ping6_command])
1064
1065 elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \
1066 egrep -i "^round-trip|^rtt" >/dev/null
1067 then
1068 ac_cv_ping6_command="$PATH_TO_PING6 -n -U -c %d %s"
1069 ac_cv_ping6_packets_first=yes
1070 AC_MSG_RESULT([$ac_cv_ping6_command])
1071
1072 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \
1073 egrep -i "^round-trip|^rtt" >/dev/null
1074 then
1075 ac_cv_ping6_command="$PATH_TO_PING6 -n -c %d %s"
1076 ac_cv_ping6_packets_first=yes
1077 AC_MSG_RESULT([$ac_cv_ping6_command])
1078
1079 elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \
1080 egrep -i "^round-trip|^rtt" >/dev/null
1081 then
1082 ac_cv_ping6_command="$PATH_TO_PING6 -n %s -c %d"
1083 AC_MSG_RESULT([$ac_cv_ping6_command])
1084
1085 elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \
1086 egrep -i "^round-trip|^rtt" >/dev/null
1087 then
1088 ac_cv_ping6_command="$PATH_TO_PING6 %s -n %d"
1089 AC_MSG_RESULT([$ac_cv_ping6_command])
1090
1091 elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \
1092 egrep -i "^round-trip|^rtt" >/dev/null
1093 then
1094 ac_cv_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d"
1095 AC_MSG_RESULT([$ac_cv_ping6_command])
1096
1097 elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \
1098 egrep -i "^round-trip|^rtt" >/dev/null
1099 then
1100 ac_cv_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d"
1101 AC_MSG_RESULT([$ac_cv_ping6_command])
1102
1103 elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \
1104 egrep -i "^round-trip|^rtt" >/dev/null
1105 then
1106 ac_cv_ping_command="$PATH_TO_PING6 -n -s 56 -c %d %s"
1107 ac_cv_ping_packets_first=yes
1108 AC_MSG_RESULT([$ac_cv_ping_command])
1109
1110 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \
1111 egrep -i "^round-trip|^rtt" >/dev/null
1112 then
1113 ac_cv_ping6_command="$PATH_TO_PING6 -n -c %d %s"
1114 ac_cv_ping6_packets_first=yes
1115 AC_MSG_RESULT([$ac_cv_ping6_command])
1116
1117 fi
1118
1119elif test "x$PATH_TO_PING" != "x"; then
1120 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1121 $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \
1122 egrep -i "^round-trip|^rtt" >/dev/null
1123 then
1124 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s"
1125 ac_cv_ping6_packets_first=yes
1126 AC_MSG_RESULT([$ac_cv_ping6_command])
1127
1128 elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \
1129 egrep -i "^round-trip|^rtt" >/dev/null
1130 then
1131 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s"
1132 ac_cv_ping6_packets_first=yes
1133 AC_MSG_RESULT([$ac_cv_ping6_command])
1134
1135 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \
1136 egrep -i "^round-trip|^rtt" >/dev/null
1137 then
1138 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s"
1139 ac_cv_ping6_packets_first=yes
1140 AC_MSG_RESULT([$ac_cv_ping6_command])
1141
1142 elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \
1143 egrep -i "^round-trip|^rtt" >/dev/null
1144 then
1145 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d"
1146 AC_MSG_RESULT([$ac_cv_ping6_command])
1147
1148 elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \
1149 egrep -i "^round-trip|^rtt" >/dev/null
1150 then
1151 ac_cv_ping6_command="$PATH_TO_PING -A inet6 %s -n %d"
1152 AC_MSG_RESULT([$ac_cv_ping6_command])
1153
1154 elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \
1155 egrep -i "^round-trip|^rtt" >/dev/null
1156 then
1157 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d"
1158 AC_MSG_RESULT([$ac_cv_ping6_command])
1159
1160 elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \
1161 egrep -i "^round-trip|^rtt" >/dev/null
1162 then
1163 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d"
1164 AC_MSG_RESULT([$ac_cv_ping6_command])
1165
1166 elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \
1167 egrep -i "^round-trip|^rtt" >/dev/null
1168 then
1169 ac_cv_ping_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s"
1170 ac_cv_ping_packets_first=yes
1171 AC_MSG_RESULT([$ac_cv_ping_command])
1172
1173 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \
1174 egrep -i "^round-trip|^rtt" >/dev/null
1175 then
1176 ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s"
1177 ac_cv_ping6_packets_first=yes
1178 AC_MSG_RESULT([$ac_cv_ping6_command])
1179
1180 fi
1181
1182fi
1183
1184if test "x$ac_cv_ping6_command" != "x"; then
1185 AC_DEFINE_UNQUOTED(PING6_COMMAND,"$ac_cv_ping6_command",
1186 [path and args for ICMPv6 ping command])
1187else
1188 AC_MSG_RESULT([none])
1189fi
1190
1191if test "x$ac_cv_ping6_packets_first" != "xno"; then
1192 AC_DEFINE(PING6_PACKETS_FIRST,1,
1193 [Define if packet count must precede host])
1194fi
1052 1195
1053AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) 1196AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup)
1054 1197