From 0d0796ce719fa2d430430094200d35e84aeb11eb Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 8 Jan 2004 13:34:03 +0000 Subject: [PATCH] - Change default format of AC_HELP_STRING messages to show whether the default is enabled or disabled - Add --enable-f77 - Add --enable-f90 - Add --enable-single-lib - Add --enable-profiling - Add --enable-weak-symbols This commit was SVN r108. --- config/lam_configure_options.m4 | 94 +++++++++++++++++++++++++++++++-- 1 file changed, 89 insertions(+), 5 deletions(-) diff --git a/config/lam_configure_options.m4 b/config/lam_configure_options.m4 index 0bfb22af16..bf6a24fc98 100644 --- a/config/lam_configure_options.m4 +++ b/config/lam_configure_options.m4 @@ -13,7 +13,7 @@ lam_show_subtitle "Configuration options" AC_MSG_CHECKING([whether to enable memory zeroing]) AC_ARG_ENABLE(memzero, AC_HELP_STRING([--enable-memzero], - [enable memory zeroing (debugging only)])) + [enable memory zeroing (debugging only) (default: disabled)])) if test "$enable_memzero" = "yes"; then AC_MSG_RESULT([yes]) WANT_MEMZERO=1 @@ -29,9 +29,9 @@ AC_DEFINE_UNQUOTED(LAM_ENABLE_MEMZERO, $WANT_MEMZERO, # AC_MSG_CHECKING([if want developer-level debugging code]) -AC_ARG_ENABLE(purify, +AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], - [enable developer-level debugging code (not for general MPI users!)])) + [enable developer-level debugging code (not for general MPI users!) (default: disabled)])) if test "$enable_debug" = "yes"; then AC_MSG_RESULT([yes]) WANT_DEBUG=1 @@ -42,9 +42,93 @@ fi AC_DEFINE_UNQUOTED(LAM_ENABLE_DEBUG, $WANT_DEBUG, [Whether we want developer-level debugging code or not]) +# +# Fortran 77 +# + +AC_MSG_CHECKING([if want Fortran 77 bindings]) +AC_ARG_ENABLE(f77, + AC_HELP_STRING([--enable-f77], + [enable f77 MPI bindings (default: enabled)])) +if test "$enable_f77" != "no"; then + AC_MSG_RESULT([yes]) + WANT_MPI_F77=1 +else + AC_MSG_RESULT([no]) + WANT_MPI_F77=0 +fi +AC_DEFINE_UNQUOTED(LAM_ENABLE_MPI_F77, $WANT_MPI_F77, + [Whether we want the MPI f77 bindings or not]) + +# +# Fortran 90 +# + +AC_MSG_CHECKING([if want Fortran 90 bindings]) +AC_ARG_ENABLE(f90, + AC_HELP_STRING([--enable-f90], + [enable f90 MPI bindings (default: enabled)])) +if test "$enable_f90" != "no"; then + AC_MSG_RESULT([yes]) + WANT_MPI_F90=1 +else + AC_MSG_RESULT([no]) + WANT_MPI_F90=0 +fi +AC_DEFINE_UNQUOTED(LAM_ENABLE_MPI_F90, $WANT_MPI_F90, + [Whether we want the MPI f90 bindings or not]) + +# +# Do we want -llam/-lmpi, or just -lmpi? +# + +AC_MSG_CHECKING([if want consolidated MPI library (not recommended)]) +AC_ARG_ENABLE(single-lib, + AC_HELP_STRING([--enable-single-lib], + [those who use the MPI wrapper compilers (mpicc, mpif77, etc.) do not care about this option. This option is *only* if you insist on using underlying compilers to compile MPI applications and only want to have -lmpi as your $LIBS) (default: disabled)])) +if test "$enable_single_lib" != "yes"; then + AC_MSG_RESULT([no]) + WANT_SINGLE_MPI_LIBRARY=1 +else + AC_MSG_RESULT([no]) + WANT_SINGLE_MPI_LIBRARY=0 +fi +AM_CONDITIONAL(WANT_SINGLE_MPI_LIBRARY, test "$WANT_SINGLE_MPI_LIBRARY" = 1) + +# +# Do we want profiling? +# + +AC_MSG_CHECKING([if want MPI profiling layers]) +AC_ARG_ENABLE(profiling, + AC_HELP_STRING([--enable-profiling], + [build the MPI profiling layers for all available languages (default: enabled)])) +if test "$enable_profiling" != "no"; then + AC_MSG_RESULT([yes]) + WANT_MPI_PROFILING=1 +else + AC_MSG_RESULT([no]) + WANT_MPI_PROFILING=0 +fi +AM_CONDITIONAL(WANT_MPI_PROFILING, test "$WANT_MPI_PROFILING" = 1) + +# +# Do we want to disable weak symbols for some reason? +# + +AC_MSG_CHECKING([if want to disable weak symbol support]) +AC_ARG_ENABLE(weak-symbols, + AC_HELP_STRING([--enable-weak-symbols], + [use weak symbols, if available (default: enabled)])) +if test "$enable_weak-symbols" != "no"; then + AC_MSG_RESULT([yes]) + WANT_WEAK_SYMBOLS=1 +else + AC_MSG_RESULT([no]) + WANT_WEAK_SYMBOLS=0 +fi + # --enable-dist -# --disable-profile -# --disable-f77 # ...? # amorphous, seem-to-be-good-idea options