blob: 807d5ddc8d387f68946e252c920621852d177ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff --git a/configure.ac b/configure.ac
index d82b184..b8c5321 100644
--- a/configure.ac
+++ b/configure.ac
@@ -397,12 +397,14 @@ AC_SUBST(rl_inc)
dnl # ----------------------
dnl # HANDLE THE MPI LIBRARY
dnl # ----------------------
+mpi_use=""
AC_MSG_CHECKING([whether you want MPI])
-AC_ARG_ENABLE(mpi,
- [ --enable-mpi enable MPI layer [[default=no]]],
- [ mpi_use="yes" ],
- [ mpi_use="" ]
-)
+AC_ARG_ENABLE([mpi],
+ AS_HELP_STRING([--enable-mpi enable MPI layer [[default=no]]]))
+
+AS_IF([test "x$enable_mpi" = "xyes"], [
+ mpi_use="yes"
+])
mpi_lib="";
mpi_inc="";
if test -z "${mpi_use}"; then
|