summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df5d53f)
raw | patch | inline | side by side (parent: df5d53f)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 17 Dec 2004 18:14:18 +0000 (18:14 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 17 Dec 2004 18:14:18 +0000 (18:14 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1037 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 5e95c9138dfbfcc8806d828c7f1aa66040415af9..21d28de5310820890d63766bd61591631f569ddf 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_MSG_CHECKING(for ps syntax)
dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
+dnl Should also work for FreeBSD 5.2.1 and 5.3
dnl STAT UCOMM VSZ RSS USER PPID COMMAND
if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \
- egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
+ egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
then
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'"