summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8bcaef)
raw | patch | inline | side by side (parent: e8bcaef)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 5 Dec 2003 18:08:16 +0000 (18:08 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 5 Dec 2003 18:08:16 +0000 (18:08 +0000) |
Solaris (reported by Ben Whaley)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@786 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@786 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 912f43eded2350a4f1052f431d3d07c3219c4e78..9fe4ded18d5302351288dd01ed1de6ef0d6e27bb 100644 (file)
--- a/configure.in
+++ b/configure.in
dnl SunOS 4.1.3:
dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
-elif ps -laxnwww 2>/dev/null | \
+dnl Need the head -1 otherwise test will work because arguments are found
+elif ps -laxnwww 2>/dev/null | head -1 | \
egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null
then
ac_cv_ps_varlist="[&procuid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]"
AC_MSG_WARN([unable to find usable ps syntax - check_procs and check_nagios will not be compiled])
fi
-if test -n $ac_cv_ps_varlist ; then
+if test -n "$ac_cv_ps_varlist" ; then
AC_DEFINE_UNQUOTED(PS_VARLIST,$ac_cv_ps_varlist,
[Variable list for sscanf of 'ps' output])
AC_DEFINE_UNQUOTED(PS_COMMAND,"$ac_cv_ps_command",