CFLAGS="$CFLAGS -Wall"
AC_MSG_CHECKING(whether to enable verbose warnings)
-AC_ARG_ENABLE(verbose-warnings,
-[ --enable-verbose-warnings
- Enable verbose compiler warnings.],
+AC_ARG_ENABLE(verbose-warnings,AS_HELP_STRING([--enable-verbose-warnings],[Enable verbose compiler warnings.]),
[ case "$enableval" in
yes)
AC_MSG_RESULT(yes)
)
AC_MSG_CHECKING(static executables)
-AC_ARG_ENABLE(static,
-[ --enable-static
- Enable static executables.],
+AC_ARG_ENABLE(static,AS_HELP_STRING([--enable-static],[Enable static executables]),
[ case "$enableval" in
yes)
AC_MSG_RESULT(yes)
)
dnl Checking if use OpenMP
-AC_MSG_CHECKING(OpenMP)
-AC_ARG_ENABLE(openmp,
-[ --enable-openmp
- Enable use of OpenMP.],
-[ case "$enableval" in
- yes)
- AC_MSG_RESULT(yes)
+AC_ARG_ENABLE([openmp], AS_HELP_STRING([--disable-openmp],[Disable use of OpenMP]))
+AS_IF([test "x$enable_openmp" != "xno"], [
AX_OPENMP
CFLAGS="$CFLAGS $OPENMP_CFLAGS"
CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
- ;;
- *)
- AC_MSG_RESULT(no)
- ;;
- esac ], AC_MSG_RESULT(no)
-)
+])
dnl Set LAM path
-AC_ARG_WITH(lam,
-[ --with-lam[=PATH] Set path of LAM MPI ],
+AC_ARG_WITH(lam,AS_HELP_STRING([--with-lam[=PATH]],[Set path of LAM MPI ]),
[ if test "$withval" != "no" ; then
trylamdir=$withval
fi ]
AC_CHECK_LIB(efence, main, [efence=true], [efence=false])
AC_MSG_CHECKING([for enable-efence])
AC_ARG_ENABLE(efence,
-[ --enable-efence Use ElectricFence memory allocation],
+[--enable-efence],[Use ElectricFence memory allocation],
[case "${enableval}" in
yes) useefence=true
AC_MSG_RESULT(yes)