ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/ac-tools/configure.in
(Generate patch)

Comparing trunk/OOPSE-3.0/ac-tools/configure.in (file contents):
Revision 2022 by gezelter, Mon Feb 14 23:16:48 2005 UTC vs.
Revision 2024 by gezelter, Tue Feb 15 05:05:33 2005 UTC

# Line 156 | Line 156 | AC_PATH_PROG(PS_PATH, ps)
156    exit 1
157   fi
158  
159 < AC_PATH_PROG(PS_PATH, ps)
160 < AC_CACHE_CHECK([for POSIX ps], ac_cv_prog_ps_posix, [
161 <        USER=${USER:-${LOGNAME:-`logname`}}
162 <        if $PS_PATH -U $USER -opid,args >/dev/null 2>&1; then
163 <                ac_cv_prog_ps_posix=yes
159 > AC_PATH_PROG(PS, ps)
160 > AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [
161 >        if $PS -ef -o rss > /dev/null 2>&1; then
162 >                ac_cv_prog_ps_ef=yes
163          else
164 <                ac_cv_prog_ps_posix=no
164 >                ac_cv_prog_ps_ef=no
165          fi
166 +        if $PS ax -o rss > /dev/null 2>&1; then
167 +                ac_cv_prog_ps_ax=yes
168 +        else
169 +                ac_cv_prog_ps_ax=no
170 +        fi
171 +        if test "$ac_cv_prog_ps_ef" = yes; then
172 +                ac_cv_prog_ps_syntax=POSIX
173 +        else
174 +                if test "$ac_cv_prog_ps_ax" = yes; then
175 +                        ac_cv_prog_ps_syntax=BSD
176 +                else
177 +                        AC_MSG_ERROR(Could not determine ps syntax)
178 +                fi
179 +        fi
180   ])
181 < if test "$ac_cv_prog_ps_posix" = yes; then
182 <        BSD_PS=yes
170 < else
171 <        POSIX_PS=yes
172 < fi
173 < AC_SUBST(PS_PATH)
174 < AC_SUBST(BSD_PS)
175 < AC_SUBST(POSIX_PS)
181 > AC_DEFINE_UNQUOTED(PS, $PS, [Path to ps program])
182 > AC_DEFINE_UNQUOTED(PSTYPE, $ac_cv_prog_ps_syntax, [ps syntax type])
183  
184  
185   AC_ARG_WITH(mpi,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines