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 2023 by gezelter, Mon Feb 14 23:26:25 2005 UTC vs.
Revision 2029 by gezelter, Tue Feb 15 15:17:01 2005 UTC

# Line 157 | Line 157 | AC_CACHE_CHECK([for POSIX ps], ac_cv_prog_ps_posix, [
157   fi
158  
159   AC_PATH_PROG(PS, ps)
160 < AC_CACHE_CHECK([for POSIX ps], ac_cv_prog_ps_posix, [
161 <        USER=${USER:-${LOGNAME:-`logname`}}
162 <        if $PS -U $USER -opid,args >/dev/null 2>&1; then
163 <                ac_cv_prog_ps_posix=yes
160 > AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [
161 >        if $PS ax -o rss > /dev/null 2>&1; then
162 >                ac_cv_prog_ps_ax=yes
163          else
164 <                ac_cv_prog_ps_posix=no
164 >                ac_cv_prog_ps_ax=no
165          fi
166 < ])
167 < if test "$ac_cv_prog_ps_posix" = yes; then
168 <        PSTYPE=BSD
166 >        if $PS -ef -o rss > /dev/null 2>&1; then
167 >                ac_cv_prog_ps_ef=yes
168 >        else
169 >                ac_cv_prog_ps_ef=no
170 >        fi
171 >        if test "$ac_cv_prog_ps_ax" = yes; then
172 >                ac_cv_prog_ps_syntax=BSD
173 >        else
174 >                if test "$ac_cv_prog_ps_ef" = yes; then
175 >                        ac_cv_prog_ps_syntax=POSIX
176 >                else
177 >                        AC_MSG_ERROR(Could not determine ps syntax)
178 >                fi
179 >        fi
180 > ])
181 >
182 > AC_DEFINE_UNQUOTED(PSCOMMAND, $PS, [Path to ps program])
183 >
184 > if test "$ac_cv_prog_ps_syntax" = BSD; then
185 >  AC_DEFINE(PSTYPE_IS_BSD, 1)
186   else
187 <        PSTYPE=POSIX
187 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
188 >       AC_DEFINE(PSTYPE_IS_POSIX, 1)
189 >   else
190 >       AC_MSG_ERROR(Unknown ps syntax type!)
191 >   fi
192   fi
193  
174 AC_SUBST(PS)
175 AC_SUBST(PSTYPE)
176
177
194   AC_ARG_WITH(mpi,
195          [AC_HELP_STRING([--with-mpi=<prefix>],
196                  [compile with MPI installed in <prefix> [default=no]])],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines