--- trunk/OOPSE-3.0/ac-tools/configure.in 2005/02/14 23:26:25 2023 +++ trunk/OOPSE-3.0/ac-tools/configure.in 2005/03/04 15:29:03 2081 @@ -157,24 +157,40 @@ AC_CACHE_CHECK([for POSIX ps], ac_cv_prog_ps_posix, [ fi AC_PATH_PROG(PS, ps) -AC_CACHE_CHECK([for POSIX ps], ac_cv_prog_ps_posix, [ - USER=${USER:-${LOGNAME:-`logname`}} - if $PS -U $USER -opid,args >/dev/null 2>&1; then - ac_cv_prog_ps_posix=yes +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_posix=no + 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 ]) -if test "$ac_cv_prog_ps_posix" = yes; then - PSTYPE=BSD + +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 - PSTYPE=POSIX + 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_SUBST(PS) -AC_SUBST(PSTYPE) - - AC_ARG_WITH(mpi, [AC_HELP_STRING([--with-mpi=], [compile with MPI installed in [default=no]])], @@ -194,28 +210,27 @@ AC_ARG_WITH(sprng, fi AC_SUBST(USE_MPI) -AC_ARG_WITH(sprng, - [AC_HELP_STRING([--with-sprng=], - [compile with SPRNG installed in [default=/usr/local]])], - with_sprng=$withval, - with_sprng="/usr/local") +dnl AC_ARG_WITH(sprng, +dnl [AC_HELP_STRING([--with-sprng=], +dnl [compile with SPRNG installed in [default=/usr/local]])], +dnl with_sprng=$withval, +dnl with_sprng="/usr/local") +dnl +dnl case "x$with_sprng" in +dnl xyes | "x") USE_SPRNG=yes;; +dnl xno) USE_SPRNG=no ;; +dnl *) SPRNG="$with_sprng"; USE_SPRNG=yes ;; +dnl esac +dnl if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then +dnl SPRNG="/usr/local" +dnl fi +dnl if test "$USE_SPRNG" = "yes"; then +dnl ACX_SPRNG +dnl fi +dnl AC_SUBST(USE_SPRNG) -case "x$with_sprng" in - xyes | "x") USE_SPRNG=yes;; - xno) USE_SPRNG=no ;; - *) SPRNG="$with_sprng"; USE_SPRNG=yes ;; -esac -if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then - SPRNG="/usr/local" -fi -if test "$USE_SPRNG" = "yes"; then - ACX_SPRNG -fi -AC_SUBST(USE_SPRNG) +dnl CHECK_MKL - -CHECK_MKL - BB_ENABLE_DOXYGEN AC_EXEEXT