--- trunk/OOPSE-3.0/ac-tools/configure.in 2005/02/11 22:35:51 1997 +++ trunk/OOPSE-3.0/ac-tools/configure.in 2005/02/15 15:17:01 2029 @@ -128,10 +128,6 @@ AC_TRY_COMPILE([#include ], [Define if you have the _system_configuration variable.])], [AC_MSG_RESULT([no])]) - -dnl undef HAVE__SYSTEM_CONFIGURATION - - dnl check for system getopt adl_FUNC_GETOPT_LONG @@ -159,8 +155,42 @@ fi AC_CACHE_SAVE exit 1 fi + +AC_PATH_PROG(PS, ps) +AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [ + if $PS ax -o rss > /dev/null 2>&1; then + ac_cv_prog_ps_ax=yes + else + ac_cv_prog_ps_ax=no + fi + if $PS -ef -o rss > /dev/null 2>&1; then + ac_cv_prog_ps_ef=yes + else + ac_cv_prog_ps_ef=no + fi + if test "$ac_cv_prog_ps_ax" = yes; then + ac_cv_prog_ps_syntax=BSD + else + if test "$ac_cv_prog_ps_ef" = yes; then + ac_cv_prog_ps_syntax=POSIX + else + AC_MSG_ERROR(Could not determine ps syntax) + fi + fi +]) +AC_DEFINE_UNQUOTED(PSCOMMAND, $PS, [Path to ps program]) +if test "$ac_cv_prog_ps_syntax" = BSD; then + AC_DEFINE(PSTYPE_IS_BSD, 1) +else + if test "$ac_cv_prog_ps_syntax" = POSIX; then + AC_DEFINE(PSTYPE_IS_POSIX, 1) + else + AC_MSG_ERROR(Unknown ps syntax type!) + fi +fi + AC_ARG_WITH(mpi, [AC_HELP_STRING([--with-mpi=], [compile with MPI installed in [default=no]])],