diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 176 |
1 files changed, 103 insertions, 73 deletions
diff --git a/configure.ac b/configure.ac index 7c17dcd..a294b00 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,10 +1,11 @@ | |||
1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_PREREQ(2.59) | 2 | AC_PREREQ(2.64) |
3 | AC_INIT(monitoring-plugins,2.3git) | 3 | AC_INIT(monitoring-plugins,2.3git) |
4 | AC_CONFIG_SRCDIR(NPTest.pm) | 4 | AC_CONFIG_SRCDIR(NPTest.pm) |
5 | AC_CONFIG_FILES([gl/Makefile]) | 5 | AC_CONFIG_FILES([gl/Makefile]) |
6 | AC_CONFIG_AUX_DIR(build-aux) | 6 | AC_CONFIG_AUX_DIR(build-aux) |
7 | AM_INIT_AUTOMAKE([1.8.3]) | 7 | AM_INIT_AUTOMAKE([1.8.3]) |
8 | AM_SILENT_RULES([yes]) | ||
8 | AM_MAINTAINER_MODE([enable]) | 9 | AM_MAINTAINER_MODE([enable]) |
9 | AC_CONFIG_HEADERS([config.h]) | 10 | AC_CONFIG_HEADERS([config.h]) |
10 | AC_CANONICAL_HOST | 11 | AC_CANONICAL_HOST |
@@ -327,6 +328,25 @@ AS_IF([test "x$with_ldap" != "xno"], [ | |||
327 | LIBS="$_SAVEDLIBS" | 328 | LIBS="$_SAVEDLIBS" |
328 | ]) | 329 | ]) |
329 | 330 | ||
331 | |||
332 | AC_ARG_WITH([systemd], [AS_HELP_STRING([--without-systemd], [Skips systemd support])]) | ||
333 | |||
334 | dnl Check for libsystemd | ||
335 | AS_IF([test "x$with_systemd" != "xno"], [ | ||
336 | _SAVEDLIBS="$LIBS" | ||
337 | AC_CHECK_LIB(systemd,sd_get_sessions,,,-lsystemd) | ||
338 | if test "$ac_cv_lib_systemd_sd_get_sessions" = "yes"; then | ||
339 | SYSTEMDLIBS="-lsystemd" | ||
340 | SYSTEMDINCLUDE="" | ||
341 | AC_SUBST(SYSTEMDLIBS) | ||
342 | AC_SUBST(SYSTEMDINCLUDE) | ||
343 | else | ||
344 | AC_MSG_WARN([Skipping systemd support]) | ||
345 | fi | ||
346 | LIBS="$_SAVEDLIBS" | ||
347 | ]) | ||
348 | |||
349 | |||
330 | dnl Check for headers used by check_ide_smart | 350 | dnl Check for headers used by check_ide_smart |
331 | case $host in | 351 | case $host in |
332 | *linux*) | 352 | *linux*) |
@@ -426,7 +446,7 @@ if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" | |||
426 | then | 446 | then |
427 | AC_PATH_PROG(PATH_TO_WHO,who) | 447 | AC_PATH_PROG(PATH_TO_WHO,who) |
428 | 448 | ||
429 | if [$PATH_TO_WHO -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null] | 449 | if [$PATH_TO_WHO -q 2>/dev/null | grep -E -i "^# users=[0-9]+$" >/dev/null] |
430 | then | 450 | then |
431 | ac_cv_path_to_who="$PATH_TO_WHO -q" | 451 | ac_cv_path_to_who="$PATH_TO_WHO -q" |
432 | else | 452 | else |
@@ -775,7 +795,7 @@ dnl Removing this for the moment - Ton | |||
775 | dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation | 795 | dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation |
776 | dnl Limitation that command name is not available | 796 | dnl Limitation that command name is not available |
777 | dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \ | 797 | dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \ |
778 | dnl egrep -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null | 798 | dnl grep -E -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null |
779 | dnl then | 799 | dnl then |
780 | dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]" | 800 | dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]" |
781 | dnl ac_cv_ps_command="/usr/ucb/ps -alxwwn" | 801 | dnl ac_cv_ps_command="/usr/ucb/ps -alxwwn" |
@@ -783,10 +803,20 @@ dnl ac_cv_ps_format=["%*s %d %d %d %d %*d %*d %d %d%*[ 0123456789abcdef]%[OSRZT | |||
783 | dnl ac_cv_ps_cols=8 | 803 | dnl ac_cv_ps_cols=8 |
784 | dnl AC_MSG_RESULT([$ac_cv_ps_command]) | 804 | dnl AC_MSG_RESULT([$ac_cv_ps_command]) |
785 | 805 | ||
806 | dnl This one is the exact same test as the next one but includes etime | ||
807 | elif ps axwo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ | ||
808 | grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +ELAPSED +COMMAND"] > /dev/null | ||
809 | then | ||
810 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" | ||
811 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" | ||
812 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %s %n" | ||
813 | ac_cv_ps_cols=10 | ||
814 | AC_MSG_RESULT([$ac_cv_ps_command]) | ||
815 | |||
786 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. | 816 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. |
787 | dnl so test for this first... | 817 | dnl so test for this first... |
788 | elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 818 | elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ |
789 | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null | 819 | grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null |
790 | then | 820 | then |
791 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 821 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
792 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" | 822 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" |
@@ -798,7 +828,7 @@ dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo | |||
798 | dnl Should also work for FreeBSD 5.2.1 and 5.3 | 828 | dnl Should also work for FreeBSD 5.2.1 and 5.3 |
799 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND | 829 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND |
800 | elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 830 | elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ |
801 | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null | 831 | grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null |
802 | then | 832 | then |
803 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 833 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
804 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" | 834 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" |
@@ -810,7 +840,7 @@ dnl Some *BSDs have different format for ps. This is mainly to catch FreeBSD 4. | |||
810 | dnl Limitation: Only first 16 chars returned for ucomm field | 840 | dnl Limitation: Only first 16 chars returned for ucomm field |
811 | dnl Must come before ps -weo | 841 | dnl Must come before ps -weo |
812 | elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \ | 842 | elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \ |
813 | egrep -i ["^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND"] > /dev/null | 843 | grep -E -i ["^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND"] > /dev/null |
814 | then | 844 | then |
815 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 845 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
816 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" | 846 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" |
@@ -820,7 +850,7 @@ then | |||
820 | 850 | ||
821 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 851 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
822 | elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ | 852 | elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ |
823 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+"] >/dev/null | 853 | grep -E -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+"] >/dev/null |
824 | then | 854 | then |
825 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" | 855 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" |
826 | ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid pid ppid vsz rss pcpu etime comm args'" | 856 | ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid pid ppid vsz rss pcpu etime comm args'" |
@@ -830,7 +860,7 @@ then | |||
830 | 860 | ||
831 | dnl FreeBSD | 861 | dnl FreeBSD |
832 | elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \ | 862 | elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \ |
833 | egrep -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PID +PPID"] >/dev/null | 863 | grep -E -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PID +PPID"] >/dev/null |
834 | then | 864 | then |
835 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 865 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
836 | ac_cv_ps_command="$PATH_TO_PS waxco 'state uid pid ppid vsz rss pcpu command command'" | 866 | ac_cv_ps_command="$PATH_TO_PS waxco 'state uid pid ppid vsz rss pcpu command command'" |
@@ -840,7 +870,7 @@ then | |||
840 | 870 | ||
841 | dnl BSD-like mode in RH 6.1 | 871 | dnl BSD-like mode in RH 6.1 |
842 | elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 872 | elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ |
843 | egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null | 873 | grep -E -i ["^S +COMMAND +VSZ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null |
844 | then | 874 | then |
845 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 875 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
846 | ac_cv_ps_command="$PATH_TO_PS waxno 'state uid pid ppid vsz rss pcpu comm args'" | 876 | ac_cv_ps_command="$PATH_TO_PS waxno 'state uid pid ppid vsz rss pcpu comm args'" |
@@ -852,7 +882,7 @@ dnl SunOS 4.1.3: | |||
852 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 882 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
853 | dnl Need the head -1 otherwise test will work because arguments are found | 883 | dnl Need the head -1 otherwise test will work because arguments are found |
854 | elif ps -laxnwww 2>/dev/null | head -1 | \ | 884 | elif ps -laxnwww 2>/dev/null | head -1 | \ |
855 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null | 885 | grep -E -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null |
856 | then | 886 | then |
857 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" | 887 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" |
858 | ac_cv_ps_command="$PATH_TO_PS -laxnwww" | 888 | ac_cv_ps_command="$PATH_TO_PS -laxnwww" |
@@ -865,7 +895,7 @@ dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMA | |||
865 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] | 895 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] |
866 | dnl | 896 | dnl |
867 | elif ps laxnwww 2>/dev/null | \ | 897 | elif ps laxnwww 2>/dev/null | \ |
868 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null | 898 | grep -E -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null |
869 | then | 899 | then |
870 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,procstat,&procvsz,&procrss,&pos,procprog]" | 900 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,procstat,&procvsz,&procrss,&pos,procprog]" |
871 | ac_cv_ps_command="$PATH_TO_PS laxnwww" | 901 | ac_cv_ps_command="$PATH_TO_PS laxnwww" |
@@ -875,7 +905,7 @@ then | |||
875 | 905 | ||
876 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | 906 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) |
877 | elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 907 | elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ |
878 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | 908 | grep -E -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
879 | then | 909 | then |
880 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 910 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
881 | ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid pid ppid vsz rss pcpu comm args'" | 911 | ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid pid ppid vsz rss pcpu comm args'" |
@@ -888,7 +918,7 @@ dnl Has /usr/bin/ps and /sbin/ps - force sbin version | |||
888 | dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead | 918 | dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead |
889 | dnl of 1500). Will need big changes to check_procs to support | 919 | dnl of 1500). Will need big changes to check_procs to support |
890 | elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \ | 920 | elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \ |
891 | egrep -i ["^ *S +[UID]+ +[PID]+ +[PID]+ +[%CPU]+ +[ELAPSD]+ +[COMMAND]+ +[COMMAND]+"] > /dev/null | 921 | grep -E -i ["^ *S +[UID]+ +[PID]+ +[PID]+ +[%CPU]+ +[ELAPSD]+ +[COMMAND]+ +[COMMAND]+"] > /dev/null |
892 | then | 922 | then |
893 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procpcpu,procetime,procprog,&pos]" | 923 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procpcpu,procetime,procprog,&pos]" |
894 | ac_cv_ps_command="/sbin/ps -eo 'stat uid pid ppid pcpu etime comm args'" | 924 | ac_cv_ps_command="/sbin/ps -eo 'stat uid pid ppid pcpu etime comm args'" |
@@ -897,7 +927,7 @@ then | |||
897 | AC_MSG_RESULT([$ac_cv_ps_command]) | 927 | AC_MSG_RESULT([$ac_cv_ps_command]) |
898 | 928 | ||
899 | elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 929 | elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \ |
900 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | 930 | grep -E -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
901 | then | 931 | then |
902 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 932 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
903 | ac_cv_ps_command="$PATH_TO_PS -eo 's uid pid ppid vsz rss pcpu comm args'" | 933 | ac_cv_ps_command="$PATH_TO_PS -eo 's uid pid ppid vsz rss pcpu comm args'" |
@@ -907,7 +937,7 @@ then | |||
907 | 937 | ||
908 | dnl AIX 4.3.3 and 5.1 do not have an rss field | 938 | dnl AIX 4.3.3 and 5.1 do not have an rss field |
909 | elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \ | 939 | elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \ |
910 | egrep -i ["^ *S[TAUES]* +UID +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null | 940 | grep -E -i ["^ *S[TAUES]* +UID +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null |
911 | then | 941 | then |
912 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" | 942 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" |
913 | ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid pid ppid vsz pcpu comm args'" | 943 | ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid pid ppid vsz pcpu comm args'" |
@@ -917,18 +947,18 @@ then | |||
917 | 947 | ||
918 | dnl Solaris 2.6 | 948 | dnl Solaris 2.6 |
919 | elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 949 | elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \ |
920 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null | 950 | grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null |
921 | then | 951 | then |
922 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 952 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
923 | ac_cv_ps_command="$PATH_TO_PS -Ao 's uid pid ppid vsz rss pcpu comm args'" | 953 | ac_cv_ps_command="$PATH_TO_PS -Ao 's uid pid ppid vsz rss pcpu comm args'" |
924 | # There must be no space between the %s and %n due to a wierd problem in sscanf where | 954 | # There must be no space between the %s and %n due to a weird problem in sscanf where |
925 | # it will return %n as longer than the line length | 955 | # it will return %n as longer than the line length |
926 | ac_cv_ps_format="%s %d %d %d %d %d %f %s%n" | 956 | ac_cv_ps_format="%s %d %d %d %d %d %f %s%n" |
927 | ac_cv_ps_cols=9 | 957 | ac_cv_ps_cols=9 |
928 | AC_MSG_RESULT([$ac_cv_ps_command]) | 958 | AC_MSG_RESULT([$ac_cv_ps_command]) |
929 | 959 | ||
930 | elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 960 | elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \ |
931 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null | 961 | grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null |
932 | then | 962 | then |
933 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 963 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
934 | ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid pid ppid vsz rss pcpu comm args'" | 964 | ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid pid ppid vsz rss pcpu comm args'" |
@@ -937,7 +967,7 @@ then | |||
937 | AC_MSG_RESULT([$ac_cv_ps_command]) | 967 | AC_MSG_RESULT([$ac_cv_ps_command]) |
938 | 968 | ||
939 | elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 969 | elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ |
940 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null | 970 | grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null |
941 | then | 971 | then |
942 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 972 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
943 | ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid pid ppid vsz rss pcpu comm args'" | 973 | ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid pid ppid vsz rss pcpu comm args'" |
@@ -947,7 +977,7 @@ then | |||
947 | 977 | ||
948 | dnl wonder who takes state instead of stat | 978 | dnl wonder who takes state instead of stat |
949 | elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \ | 979 | elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \ |
950 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null | 980 | grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null |
951 | then | 981 | then |
952 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 982 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
953 | ac_cv_ps_command="$PATH_TO_PS -ao 'state uid pid ppid vsz rss pcpu command args'" | 983 | ac_cv_ps_command="$PATH_TO_PS -ao 'state uid pid ppid vsz rss pcpu command args'" |
@@ -957,7 +987,7 @@ then | |||
957 | 987 | ||
958 | dnl IRIX 53 | 988 | dnl IRIX 53 |
959 | elif ps -el 2>/dev/null | \ | 989 | elif ps -el 2>/dev/null | \ |
960 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 990 | grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
961 | then | 991 | then |
962 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&pos,procprog]" | 992 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&pos,procprog]" |
963 | ac_cv_ps_command="$PATH_TO_PS -el (IRIX 53)" | 993 | ac_cv_ps_command="$PATH_TO_PS -el (IRIX 53)" |
@@ -967,7 +997,7 @@ then | |||
967 | 997 | ||
968 | dnl IRIX 63 | 998 | dnl IRIX 63 |
969 | elif ps -el 2>/dev/null | \ | 999 | elif ps -el 2>/dev/null | \ |
970 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 1000 | grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
971 | then | 1001 | then |
972 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" | 1002 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" |
973 | ac_cv_ps_command="$PATH_TO_PS -el (IRIX 63)" | 1003 | ac_cv_ps_command="$PATH_TO_PS -el (IRIX 63)" |
@@ -980,7 +1010,7 @@ dnl S UID RUID USER RUSER PID PPID VSZ %CPU COMMAND | |||
980 | dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X | 1010 | dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X |
981 | dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit | 1011 | dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit |
982 | elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ | 1012 | elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ |
983 | egrep -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null | 1013 | grep -E -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null |
984 | then | 1014 | then |
985 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" | 1015 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" |
986 | ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'" | 1016 | ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'" |
@@ -992,7 +1022,7 @@ dnl AIX 4.1: | |||
992 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 1022 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
993 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 1023 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |
994 | elif ps -el 2>/dev/null | \ | 1024 | elif ps -el 2>/dev/null | \ |
995 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 1025 | grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
996 | then | 1026 | then |
997 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" | 1027 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" |
998 | ac_cv_ps_command="$PATH_TO_PS -el (AIX 4.1 and HP-UX)" | 1028 | ac_cv_ps_command="$PATH_TO_PS -el (AIX 4.1 and HP-UX)" |
@@ -1002,7 +1032,7 @@ then | |||
1002 | 1032 | ||
1003 | dnl AIX? | 1033 | dnl AIX? |
1004 | elif ps glaxen 2>/dev/null | \ | 1034 | elif ps glaxen 2>/dev/null | \ |
1005 | egrep -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null | 1035 | grep -E -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null |
1006 | then | 1036 | then |
1007 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" | 1037 | ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" |
1008 | ac_cv_ps_command="$PATH_TO_PS glaxen" | 1038 | ac_cv_ps_command="$PATH_TO_PS glaxen" |
@@ -1016,7 +1046,7 @@ dnl Some truncation will happen in UCOMM column | |||
1016 | dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND | 1046 | dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND |
1017 | dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon | 1047 | dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon |
1018 | elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \ | 1048 | elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \ |
1019 | egrep -i ["^STAT +VSZ +RSS +UID +PPID +%CPU +UCOMM +COMMAND"] >/dev/null | 1049 | grep -E -i ["^STAT +VSZ +RSS +UID +PPID +%CPU +UCOMM +COMMAND"] >/dev/null |
1020 | then | 1050 | then |
1021 | ac_cv_ps_command="$PATH_TO_PS wwaxo 'state vsz rss uid pid ppid pcpu ucomm command'" | 1051 | ac_cv_ps_command="$PATH_TO_PS wwaxo 'state vsz rss uid pid ppid pcpu ucomm command'" |
1022 | ac_cv_ps_varlist="[procstat,&procvsz,&procrss,&procuid,&procpid,&procppid,&procpcpu,procprog,&pos]" | 1052 | ac_cv_ps_varlist="[procstat,&procvsz,&procrss,&procuid,&procpid,&procppid,&procpcpu,procprog,&pos]" |
@@ -1026,7 +1056,7 @@ then | |||
1026 | 1056 | ||
1027 | dnl UnixWare | 1057 | dnl UnixWare |
1028 | elif ps -Al 2>/dev/null | \ | 1058 | elif ps -Al 2>/dev/null | \ |
1029 | egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null | 1059 | grep -E -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null |
1030 | then | 1060 | then |
1031 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" | 1061 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" |
1032 | ac_cv_ps_command="$PATH_TO_PS -Al" | 1062 | ac_cv_ps_command="$PATH_TO_PS -Al" |
@@ -1094,14 +1124,14 @@ then | |||
1094 | 1124 | ||
1095 | elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 1125 | elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
1096 | $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ | 1126 | $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ |
1097 | egrep -i "^round-trip|^rtt" >/dev/null | 1127 | grep -E -i "^round-trip|^rtt" >/dev/null |
1098 | then | 1128 | then |
1099 | with_ping_command="$PATH_TO_PING -n -U -c %d %s" | 1129 | with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
1100 | ac_cv_ping_packets_first=yes | 1130 | ac_cv_ping_packets_first=yes |
1101 | AC_MSG_RESULT([$with_ping_command]) | 1131 | AC_MSG_RESULT([$with_ping_command]) |
1102 | 1132 | ||
1103 | elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | 1133 | elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ |
1104 | egrep -i "^round-trip|^rtt" >/dev/null | 1134 | grep -E -i "^round-trip|^rtt" >/dev/null |
1105 | then | 1135 | then |
1106 | # check if -4 is supported - issue #1550 | 1136 | # check if -4 is supported - issue #1550 |
1107 | with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s" | 1137 | with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s" |
@@ -1109,7 +1139,7 @@ then | |||
1109 | ac_cv_ping_has_timeout=yes | 1139 | ac_cv_ping_has_timeout=yes |
1110 | AC_MSG_RESULT([$with_ping_command]) | 1140 | AC_MSG_RESULT([$with_ping_command]) |
1111 | elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | 1141 | elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ |
1112 | egrep -i "^round-trip|^rtt" >/dev/null | 1142 | grep -E -i "^round-trip|^rtt" >/dev/null |
1113 | then | 1143 | then |
1114 | with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" | 1144 | with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" |
1115 | ac_cv_ping_packets_first=yes | 1145 | ac_cv_ping_packets_first=yes |
@@ -1117,52 +1147,52 @@ then | |||
1117 | AC_MSG_RESULT([$with_ping_command]) | 1147 | AC_MSG_RESULT([$with_ping_command]) |
1118 | 1148 | ||
1119 | elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ | 1149 | elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ |
1120 | egrep -i "^round-trip|^rtt" >/dev/null | 1150 | grep -E -i "^round-trip|^rtt" >/dev/null |
1121 | then | 1151 | then |
1122 | with_ping_command="$PATH_TO_PING -n -U -c %d %s" | 1152 | with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
1123 | ac_cv_ping_packets_first=yes | 1153 | ac_cv_ping_packets_first=yes |
1124 | AC_MSG_RESULT([$with_ping_command]) | 1154 | AC_MSG_RESULT([$with_ping_command]) |
1125 | 1155 | ||
1126 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ | 1156 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ |
1127 | egrep -i "^round-trip|^rtt" >/dev/null | 1157 | grep -E -i "^round-trip|^rtt" >/dev/null |
1128 | then | 1158 | then |
1129 | with_ping_command="$PATH_TO_PING -n -c %d %s" | 1159 | with_ping_command="$PATH_TO_PING -n -c %d %s" |
1130 | ac_cv_ping_packets_first=yes | 1160 | ac_cv_ping_packets_first=yes |
1131 | AC_MSG_RESULT([$with_ping_command]) | 1161 | AC_MSG_RESULT([$with_ping_command]) |
1132 | 1162 | ||
1133 | elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ | 1163 | elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ |
1134 | egrep -i "^round-trip|^rtt" >/dev/null | 1164 | grep -E -i "^round-trip|^rtt" >/dev/null |
1135 | then | 1165 | then |
1136 | with_ping_command="$PATH_TO_PING -n %s -c %d" | 1166 | with_ping_command="$PATH_TO_PING -n %s -c %d" |
1137 | AC_MSG_RESULT([$with_ping_command]) | 1167 | AC_MSG_RESULT([$with_ping_command]) |
1138 | 1168 | ||
1139 | elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ | 1169 | elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ |
1140 | egrep -i "^round-trip|^rtt" >/dev/null | 1170 | grep -E -i "^round-trip|^rtt" >/dev/null |
1141 | then | 1171 | then |
1142 | with_ping_command="$PATH_TO_PING %s -n %d" | 1172 | with_ping_command="$PATH_TO_PING %s -n %d" |
1143 | AC_MSG_RESULT([$with_ping_command]) | 1173 | AC_MSG_RESULT([$with_ping_command]) |
1144 | 1174 | ||
1145 | elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ | 1175 | elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ |
1146 | egrep -i "^round-trip|^rtt" >/dev/null | 1176 | grep -E -i "^round-trip|^rtt" >/dev/null |
1147 | then | 1177 | then |
1148 | with_ping_command="$PATH_TO_PING -n -s %s 56 %d" | 1178 | with_ping_command="$PATH_TO_PING -n -s %s 56 %d" |
1149 | AC_MSG_RESULT([$with_ping_command]) | 1179 | AC_MSG_RESULT([$with_ping_command]) |
1150 | 1180 | ||
1151 | elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ | 1181 | elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ |
1152 | egrep -i "^round-trip|^rtt" >/dev/null | 1182 | grep -E -i "^round-trip|^rtt" >/dev/null |
1153 | then | 1183 | then |
1154 | with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" | 1184 | with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" |
1155 | AC_MSG_RESULT([$with_ping_command]) | 1185 | AC_MSG_RESULT([$with_ping_command]) |
1156 | 1186 | ||
1157 | elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ | 1187 | elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ |
1158 | egrep -i "^round-trip|^rtt" >/dev/null | 1188 | grep -E -i "^round-trip|^rtt" >/dev/null |
1159 | then | 1189 | then |
1160 | with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" | 1190 | with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" |
1161 | ac_cv_ping_packets_first=yes | 1191 | ac_cv_ping_packets_first=yes |
1162 | AC_MSG_RESULT([$with_ping_command]) | 1192 | AC_MSG_RESULT([$with_ping_command]) |
1163 | 1193 | ||
1164 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ | 1194 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ |
1165 | egrep -i "^round-trip|^rtt" >/dev/null | 1195 | grep -E -i "^round-trip|^rtt" >/dev/null |
1166 | then | 1196 | then |
1167 | with_ping_command="$PATH_TO_PING -n -c %d %s" | 1197 | with_ping_command="$PATH_TO_PING -n -c %d %s" |
1168 | ac_cv_ping_packets_first=yes | 1198 | ac_cv_ping_packets_first=yes |
@@ -1218,14 +1248,14 @@ elif [[ "z$ac_cv_uname_o" = "zCygwin" -a "x$PATH_TO_PING" != "x" ]]; then | |||
1218 | elif test "x$PATH_TO_PING6" != "x"; then | 1248 | elif test "x$PATH_TO_PING6" != "x"; then |
1219 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 1249 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
1220 | $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ | 1250 | $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ |
1221 | egrep -i "^round-trip|^rtt" >/dev/null | 1251 | grep -E -i "^round-trip|^rtt" >/dev/null |
1222 | then | 1252 | then |
1223 | with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" | 1253 | with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" |
1224 | ac_cv_ping6_packets_first=yes | 1254 | ac_cv_ping6_packets_first=yes |
1225 | AC_MSG_RESULT([$with_ping6_command]) | 1255 | AC_MSG_RESULT([$with_ping6_command]) |
1226 | 1256 | ||
1227 | elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \ | 1257 | elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \ |
1228 | egrep -i "^round-trip|^rtt" >/dev/null | 1258 | grep -E -i "^round-trip|^rtt" >/dev/null |
1229 | then | 1259 | then |
1230 | with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s" | 1260 | with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s" |
1231 | ac_cv_ping6_packets_first=yes | 1261 | ac_cv_ping6_packets_first=yes |
@@ -1233,52 +1263,52 @@ elif test "x$PATH_TO_PING6" != "x"; then | |||
1233 | AC_MSG_RESULT([$with_ping6_command]) | 1263 | AC_MSG_RESULT([$with_ping6_command]) |
1234 | 1264 | ||
1235 | elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \ | 1265 | elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \ |
1236 | egrep -i "^round-trip|^rtt" >/dev/null | 1266 | grep -E -i "^round-trip|^rtt" >/dev/null |
1237 | then | 1267 | then |
1238 | with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" | 1268 | with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" |
1239 | ac_cv_ping6_packets_first=yes | 1269 | ac_cv_ping6_packets_first=yes |
1240 | AC_MSG_RESULT([$with_ping6_command]) | 1270 | AC_MSG_RESULT([$with_ping6_command]) |
1241 | 1271 | ||
1242 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ | 1272 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ |
1243 | egrep -i "^round-trip|^rtt" >/dev/null | 1273 | grep -E -i "^round-trip|^rtt" >/dev/null |
1244 | then | 1274 | then |
1245 | with_ping6_command="$PATH_TO_PING6 -n -c %d %s" | 1275 | with_ping6_command="$PATH_TO_PING6 -n -c %d %s" |
1246 | ac_cv_ping6_packets_first=yes | 1276 | ac_cv_ping6_packets_first=yes |
1247 | AC_MSG_RESULT([$with_ping6_command]) | 1277 | AC_MSG_RESULT([$with_ping6_command]) |
1248 | 1278 | ||
1249 | elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \ | 1279 | elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \ |
1250 | egrep -i "^round-trip|^rtt" >/dev/null | 1280 | grep -E -i "^round-trip|^rtt" >/dev/null |
1251 | then | 1281 | then |
1252 | with_ping6_command="$PATH_TO_PING6 -n %s -c %d" | 1282 | with_ping6_command="$PATH_TO_PING6 -n %s -c %d" |
1253 | AC_MSG_RESULT([$with_ping6_command]) | 1283 | AC_MSG_RESULT([$with_ping6_command]) |
1254 | 1284 | ||
1255 | elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \ | 1285 | elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \ |
1256 | egrep -i "^round-trip|^rtt" >/dev/null | 1286 | grep -E -i "^round-trip|^rtt" >/dev/null |
1257 | then | 1287 | then |
1258 | with_ping6_command="$PATH_TO_PING6 %s -n %d" | 1288 | with_ping6_command="$PATH_TO_PING6 %s -n %d" |
1259 | AC_MSG_RESULT([$with_ping6_command]) | 1289 | AC_MSG_RESULT([$with_ping6_command]) |
1260 | 1290 | ||
1261 | elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ | 1291 | elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ |
1262 | egrep -i "^round-trip|^rtt" >/dev/null | 1292 | grep -E -i "^round-trip|^rtt" >/dev/null |
1263 | then | 1293 | then |
1264 | with_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d" | 1294 | with_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d" |
1265 | AC_MSG_RESULT([$with_ping6_command]) | 1295 | AC_MSG_RESULT([$with_ping6_command]) |
1266 | 1296 | ||
1267 | elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ | 1297 | elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ |
1268 | egrep -i "^round-trip|^rtt" >/dev/null | 1298 | grep -E -i "^round-trip|^rtt" >/dev/null |
1269 | then | 1299 | then |
1270 | with_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d" | 1300 | with_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d" |
1271 | AC_MSG_RESULT([$with_ping6_command]) | 1301 | AC_MSG_RESULT([$with_ping6_command]) |
1272 | 1302 | ||
1273 | elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \ | 1303 | elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \ |
1274 | egrep -i "^round-trip|^rtt" >/dev/null | 1304 | grep -E -i "^round-trip|^rtt" >/dev/null |
1275 | then | 1305 | then |
1276 | with_ping6_command="$PATH_TO_PING6 -n -s 56 -c %d %s" | 1306 | with_ping6_command="$PATH_TO_PING6 -n -s 56 -c %d %s" |
1277 | ac_cv_ping6_packets_first=yes | 1307 | ac_cv_ping6_packets_first=yes |
1278 | AC_MSG_RESULT([$with_ping_command]) | 1308 | AC_MSG_RESULT([$with_ping_command]) |
1279 | 1309 | ||
1280 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ | 1310 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ |
1281 | egrep -i "^round-trip|^rtt" >/dev/null | 1311 | grep -E -i "^round-trip|^rtt" >/dev/null |
1282 | then | 1312 | then |
1283 | with_ping6_command="$PATH_TO_PING6 -n -c %d %s" | 1313 | with_ping6_command="$PATH_TO_PING6 -n -c %d %s" |
1284 | ac_cv_ping6_packets_first=yes | 1314 | ac_cv_ping6_packets_first=yes |
@@ -1289,59 +1319,59 @@ elif test "x$PATH_TO_PING6" != "x"; then | |||
1289 | elif test "x$PATH_TO_PING" != "x"; then | 1319 | elif test "x$PATH_TO_PING" != "x"; then |
1290 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 1320 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
1291 | $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ | 1321 | $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ |
1292 | egrep -i "^round-trip|^rtt" >/dev/null | 1322 | grep -E -i "^round-trip|^rtt" >/dev/null |
1293 | then | 1323 | then |
1294 | with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" | 1324 | with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" |
1295 | ac_cv_ping6_packets_first=yes | 1325 | ac_cv_ping6_packets_first=yes |
1296 | AC_MSG_RESULT([$with_ping6_command]) | 1326 | AC_MSG_RESULT([$with_ping6_command]) |
1297 | 1327 | ||
1298 | elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \ | 1328 | elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \ |
1299 | egrep -i "^round-trip|^rtt" >/dev/null | 1329 | grep -E -i "^round-trip|^rtt" >/dev/null |
1300 | then | 1330 | then |
1301 | with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" | 1331 | with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" |
1302 | ac_cv_ping6_packets_first=yes | 1332 | ac_cv_ping6_packets_first=yes |
1303 | AC_MSG_RESULT([$with_ping6_command]) | 1333 | AC_MSG_RESULT([$with_ping6_command]) |
1304 | 1334 | ||
1305 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ | 1335 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ |
1306 | egrep -i "^round-trip|^rtt" >/dev/null | 1336 | grep -E -i "^round-trip|^rtt" >/dev/null |
1307 | then | 1337 | then |
1308 | with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" | 1338 | with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" |
1309 | ac_cv_ping6_packets_first=yes | 1339 | ac_cv_ping6_packets_first=yes |
1310 | AC_MSG_RESULT([$with_ping6_command]) | 1340 | AC_MSG_RESULT([$with_ping6_command]) |
1311 | 1341 | ||
1312 | elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \ | 1342 | elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \ |
1313 | egrep -i "^round-trip|^rtt" >/dev/null | 1343 | grep -E -i "^round-trip|^rtt" >/dev/null |
1314 | then | 1344 | then |
1315 | with_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d" | 1345 | with_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d" |
1316 | AC_MSG_RESULT([$with_ping6_command]) | 1346 | AC_MSG_RESULT([$with_ping6_command]) |
1317 | 1347 | ||
1318 | elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \ | 1348 | elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \ |
1319 | egrep -i "^round-trip|^rtt" >/dev/null | 1349 | grep -E -i "^round-trip|^rtt" >/dev/null |
1320 | then | 1350 | then |
1321 | with_ping6_command="$PATH_TO_PING -A inet6 %s -n %d" | 1351 | with_ping6_command="$PATH_TO_PING -A inet6 %s -n %d" |
1322 | AC_MSG_RESULT([$with_ping6_command]) | 1352 | AC_MSG_RESULT([$with_ping6_command]) |
1323 | 1353 | ||
1324 | elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ | 1354 | elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ |
1325 | egrep -i "^round-trip|^rtt" >/dev/null | 1355 | grep -E -i "^round-trip|^rtt" >/dev/null |
1326 | then | 1356 | then |
1327 | with_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d" | 1357 | with_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d" |
1328 | AC_MSG_RESULT([$with_ping6_command]) | 1358 | AC_MSG_RESULT([$with_ping6_command]) |
1329 | 1359 | ||
1330 | elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ | 1360 | elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ |
1331 | egrep -i "^round-trip|^rtt" >/dev/null | 1361 | grep -E -i "^round-trip|^rtt" >/dev/null |
1332 | then | 1362 | then |
1333 | with_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d" | 1363 | with_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d" |
1334 | AC_MSG_RESULT([$with_ping6_command]) | 1364 | AC_MSG_RESULT([$with_ping6_command]) |
1335 | 1365 | ||
1336 | elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \ | 1366 | elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \ |
1337 | egrep -i "^round-trip|^rtt" >/dev/null | 1367 | grep -E -i "^round-trip|^rtt" >/dev/null |
1338 | then | 1368 | then |
1339 | with_ping6_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s" | 1369 | with_ping6_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s" |
1340 | ac_cv_ping6_packets_first=yes | 1370 | ac_cv_ping6_packets_first=yes |
1341 | AC_MSG_RESULT([$with_ping_command]) | 1371 | AC_MSG_RESULT([$with_ping_command]) |
1342 | 1372 | ||
1343 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ | 1373 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ |
1344 | egrep -i "^round-trip|^rtt" >/dev/null | 1374 | grep -E -i "^round-trip|^rtt" >/dev/null |
1345 | then | 1375 | then |
1346 | with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" | 1376 | with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" |
1347 | ac_cv_ping6_packets_first=yes | 1377 | ac_cv_ping6_packets_first=yes |
@@ -1541,7 +1571,7 @@ if test -n "$PATH_TO_SUDO" | |||
1541 | then | 1571 | then |
1542 | AC_DEFINE_UNQUOTED(PATH_TO_SUDO,"$PATH_TO_SUDO",[path to sudo]) | 1572 | AC_DEFINE_UNQUOTED(PATH_TO_SUDO,"$PATH_TO_SUDO",[path to sudo]) |
1543 | else | 1573 | else |
1544 | AC_MSG_WARN([Could not find sudo or eqivalent]) | 1574 | AC_MSG_WARN([Could not find sudo or equivalent]) |
1545 | fi | 1575 | fi |
1546 | 1576 | ||
1547 | AC_PATH_PROG(PATH_TO_MAILQ,mailq) | 1577 | AC_PATH_PROG(PATH_TO_MAILQ,mailq) |
@@ -1552,7 +1582,7 @@ if test -n "$PATH_TO_MAILQ" | |||
1552 | then | 1582 | then |
1553 | AC_DEFINE_UNQUOTED(PATH_TO_MAILQ,"$PATH_TO_MAILQ",[path to mailq]) | 1583 | AC_DEFINE_UNQUOTED(PATH_TO_MAILQ,"$PATH_TO_MAILQ",[path to mailq]) |
1554 | else | 1584 | else |
1555 | AC_MSG_WARN([Could not find mailq or eqivalent]) | 1585 | AC_MSG_WARN([Could not find mailq or equivalent]) |
1556 | fi | 1586 | fi |
1557 | 1587 | ||
1558 | AC_PATH_PROG(PATH_TO_QMAIL_QSTAT,qmail-qstat) | 1588 | AC_PATH_PROG(PATH_TO_QMAIL_QSTAT,qmail-qstat) |
@@ -1563,7 +1593,7 @@ if test -n "$PATH_TO_QMAIL_QSTAT" | |||
1563 | then | 1593 | then |
1564 | AC_DEFINE_UNQUOTED(PATH_TO_QMAIL_QSTAT,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat]) | 1594 | AC_DEFINE_UNQUOTED(PATH_TO_QMAIL_QSTAT,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat]) |
1565 | else | 1595 | else |
1566 | AC_MSG_WARN([Could not find qmail-qstat or eqivalent]) | 1596 | AC_MSG_WARN([Could not find qmail-qstat or equivalent]) |
1567 | fi | 1597 | fi |
1568 | 1598 | ||
1569 | dnl SWAP info required is amount allocated/available and amount free | 1599 | dnl SWAP info required is amount allocated/available and amount free |
@@ -1578,16 +1608,16 @@ then | |||
1578 | ac_cv_have_swap=yes | 1608 | ac_cv_have_swap=yes |
1579 | ac_cv_swap_command="$PATH_TO_SWAP -l" | 1609 | ac_cv_swap_command="$PATH_TO_SWAP -l" |
1580 | if [$PATH_TO_SWAP -l 2>/dev/null | \ | 1610 | if [$PATH_TO_SWAP -l 2>/dev/null | \ |
1581 | egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ | 1611 | grep -E -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ |
1582 | >/dev/null] | 1612 | >/dev/null] |
1583 | then | 1613 | then |
1584 | ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"] | 1614 | ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %lu %lu"] |
1585 | ac_cv_swap_conv=2048 | 1615 | ac_cv_swap_conv=2048 |
1586 | AC_MSG_RESULT([using IRIX format swap]) | 1616 | AC_MSG_RESULT([using IRIX format swap]) |
1587 | 1617 | ||
1588 | elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null] | 1618 | elif [$PATH_TO_SWAP -l 2>/dev/null | grep -E -i "^path +dev +swaplo +blocks +free" >/dev/null] |
1589 | then | 1619 | then |
1590 | ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"] | 1620 | ac_cv_swap_format=["%*s %*[0-9,-] %*d %lu %lu"] |
1591 | ac_cv_swap_conv=2048 | 1621 | ac_cv_swap_conv=2048 |
1592 | AC_MSG_RESULT([using Unixware format swap]) | 1622 | AC_MSG_RESULT([using Unixware format swap]) |
1593 | else | 1623 | else |
@@ -1604,23 +1634,23 @@ AC_PATH_PROG(PATH_TO_SWAPINFO,swapinfo) | |||
1604 | if (test -n "$PATH_TO_SWAPINFO") | 1634 | if (test -n "$PATH_TO_SWAPINFO") |
1605 | then | 1635 | then |
1606 | AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format]) | 1636 | AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format]) |
1607 | if [$PATH_TO_SWAPINFO -k 2>&1 | egrep -i "^Device" >/dev/null] | 1637 | if [$PATH_TO_SWAPINFO -k 2>&1 | grep -E -i "^Device" >/dev/null] |
1608 | then | 1638 | then |
1609 | ac_cv_have_swap=yes | 1639 | ac_cv_have_swap=yes |
1610 | ac_cv_swap_command="$PATH_TO_SWAPINFO -k" | 1640 | ac_cv_swap_command="$PATH_TO_SWAPINFO -k" |
1611 | 1641 | ||
1612 | if [$PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null] | 1642 | if [$PATH_TO_SWAPINFO -k 2>/dev/null | grep -E -i "^Device +1K-blocks +Used +Avail" >/dev/null] |
1613 | then | 1643 | then |
1614 | ac_cv_swap_format=["%*s %f %*d %f"] | 1644 | ac_cv_swap_format=["%*s %lu %*d %lu"] |
1615 | ac_cv_swap_conv=1024 | 1645 | ac_cv_swap_conv=1024 |
1616 | AC_MSG_RESULT([using FreeBSD format swapinfo]) | 1646 | AC_MSG_RESULT([using FreeBSD format swapinfo]) |
1617 | fi | 1647 | fi |
1618 | 1648 | ||
1619 | elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null] | 1649 | elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | grep -E -i "^TYPE +AVAIL +USED +FREE" >/dev/null] |
1620 | then | 1650 | then |
1621 | ac_cv_have_swap=yes | 1651 | ac_cv_have_swap=yes |
1622 | ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" | 1652 | ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" |
1623 | ac_cv_swap_format=["%*s %f %*d %f"] | 1653 | ac_cv_swap_format=["%*s %lu %*d %lu"] |
1624 | ac_cv_swap_conv=1024 | 1654 | ac_cv_swap_conv=1024 |
1625 | AC_MSG_RESULT([using HP-UX format swapinfo]) | 1655 | AC_MSG_RESULT([using HP-UX format swapinfo]) |
1626 | fi | 1656 | fi |
@@ -1631,11 +1661,11 @@ AC_PATH_PROG(PATH_TO_LSPS,lsps) | |||
1631 | if (test -n "$PATH_TO_LSPS") | 1661 | if (test -n "$PATH_TO_LSPS") |
1632 | then | 1662 | then |
1633 | AC_MSG_CHECKING([for $PATH_TO_LSPS format]) | 1663 | AC_MSG_CHECKING([for $PATH_TO_LSPS format]) |
1634 | if [$PATH_TO_LSPS -a 2>/dev/null | egrep -i "^Page Space" > /dev/null] | 1664 | if [$PATH_TO_LSPS -a 2>/dev/null | grep -E -i "^Page Space" > /dev/null] |
1635 | then | 1665 | then |
1636 | ac_cv_have_swap=yes | 1666 | ac_cv_have_swap=yes |
1637 | ac_cv_swap_command="$PATH_TO_LSPS -a" | 1667 | ac_cv_swap_command="$PATH_TO_LSPS -a" |
1638 | ac_cv_swap_format=["%*s %*s %*s %f%*s %f %*s"] | 1668 | ac_cv_swap_format=["%*s %*s %*s %lu%*s %lu %*s"] |
1639 | ac_cv_swap_conv=1 | 1669 | ac_cv_swap_conv=1 |
1640 | AC_MSG_RESULT([using AIX lsps]) | 1670 | AC_MSG_RESULT([using AIX lsps]) |
1641 | fi | 1671 | fi |
@@ -1821,7 +1851,7 @@ AM_GNU_GETTEXT([external], [need-ngettext]) | |||
1821 | AM_GNU_GETTEXT_VERSION(0.15) | 1851 | AM_GNU_GETTEXT_VERSION(0.15) |
1822 | 1852 | ||
1823 | dnl Check for Redhat spopen problem | 1853 | dnl Check for Redhat spopen problem |
1824 | dnl Wierd problem where ECHILD is returned from a wait call in error | 1854 | dnl Weird problem where ECHILD is returned from a wait call in error |
1825 | dnl Only appears to affect nslookup and dig calls. Only affects redhat around | 1855 | dnl Only appears to affect nslookup and dig calls. Only affects redhat around |
1826 | dnl 2.6.9-11 (okay in 2.6.9-5). Redhat investigating root cause | 1856 | dnl 2.6.9-11 (okay in 2.6.9-5). Redhat investigating root cause |
1827 | dnl We patch plugins/popen.c | 1857 | dnl We patch plugins/popen.c |
@@ -1833,7 +1863,7 @@ AC_ARG_ENABLE(redhat-pthread-workaround, | |||
1833 | [ac_cv_enable_redhat_pthread_workaround=$enableval], | 1863 | [ac_cv_enable_redhat_pthread_workaround=$enableval], |
1834 | [ac_cv_enable_redhat_pthread_workaround=test]) | 1864 | [ac_cv_enable_redhat_pthread_workaround=test]) |
1835 | if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then | 1865 | if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then |
1836 | if echo $ac_cv_uname_r | egrep "\.EL(smp)?$" >/dev/null 2>&1 ; then | 1866 | if echo $ac_cv_uname_r | grep -E "\.EL(smp)?$" >/dev/null 2>&1 ; then |
1837 | AC_MSG_NOTICE([See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time]) | 1867 | AC_MSG_NOTICE([See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time]) |
1838 | AC_MSG_CHECKING(for redhat spopen problem) | 1868 | AC_MSG_CHECKING(for redhat spopen problem) |
1839 | ( cd config_test && make && make test ) > /dev/null 2>&1 | 1869 | ( cd config_test && make && make test ) > /dev/null 2>&1 |