Use OpenMP by default
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 21 Mar 2018 05:49:31 +0000 (23:49 -0600)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 21 Mar 2018 05:49:31 +0000 (23:49 -0600)
configure.ac

index 3136795..930c62a 100644 (file)
@@ -207,9 +207,7 @@ AC_MSG_CHECKING(sstream)
 
 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)
@@ -222,9 +220,7 @@ AC_ARG_ENABLE(verbose-warnings,
 )
 
 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)
@@ -237,26 +233,15 @@ AC_ARG_ENABLE(static,
 )
 
 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 ]
@@ -476,7 +461,7 @@ dnl Check for efence
 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)