From 23640d91607fdd856847f056e6bedf9dd40b1ceb Mon Sep 17 00:00:00 2001
From: Carlo Camilloni <carlo.camilloni@gmail.com>
Date: Thu, 23 Apr 2015 11:37:18 +0200
Subject: [PATCH] configure: more explicit messages about MPI configuration

---
 configure    | 7 +++++--
 configure.ac | 4 +++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index d374e8dad..605ef4e0b 100755
--- a/configure
+++ b/configure
@@ -6266,9 +6266,12 @@ if test $mpi == true; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will be compiled using MPI" >&5
 $as_echo "$as_me: **** PLUMED will be compiled using MPI" >&6;}
   else
-    { $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will NOT be compiled using MPI" >&5
-$as_echo "$as_me: **** PLUMED will NOT be compiled using MPI" >&6;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **** PLUMED will NOT be compiled using MPI because MPI have not been found!" >&5
+$as_echo "$as_me: WARNING: **** PLUMED will NOT be compiled using MPI because MPI have not been found!" >&2;}
   fi
+else
+    { $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will be compiled without MPI" >&5
+$as_echo "$as_me: **** PLUMED will be compiled without MPI" >&6;}
 fi
 
 
diff --git a/configure.ac b/configure.ac
index 2a6a5dbb5..9d20c93d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -510,8 +510,10 @@ if test $mpi == true; then
   if test $mpi_found == ok; then
     AC_MSG_NOTICE([**** PLUMED will be compiled using MPI])
   else 
-    AC_MSG_NOTICE([**** PLUMED will NOT be compiled using MPI])
+    AC_MSG_WARN([**** PLUMED will NOT be compiled using MPI because MPI have not been found!])
   fi
+else
+    AC_MSG_NOTICE([**** PLUMED will be compiled without MPI])
 fi
 
 AC_SUBST(build_dir)
-- 
GitLab