128 |
|
[Define if you have the _system_configuration variable.])], |
129 |
|
[AC_MSG_RESULT([no])]) |
130 |
|
|
131 |
– |
|
132 |
– |
dnl undef HAVE__SYSTEM_CONFIGURATION |
133 |
– |
|
134 |
– |
|
131 |
|
dnl check for system getopt |
132 |
|
adl_FUNC_GETOPT_LONG |
133 |
|
|
156 |
|
exit 1 |
157 |
|
fi |
158 |
|
|
159 |
+ |
AC_PATH_PROG(PS, ps) |
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_ax=no |
165 |
+ |
fi |
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_es" = 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 |
+ |
AC_DEFINE_UNQUOTED(PSCOMMAND, $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, |
186 |
|
[AC_HELP_STRING([--with-mpi=<prefix>], |
187 |
|
[compile with MPI installed in <prefix> [default=no]])], |