aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@1d96b42b-98df-4a6a-9d84-1b24288d4588>2003-07-07 11:00:05 +0000
committertradke <tradke@1d96b42b-98df-4a6a-9d84-1b24288d4588>2003-07-07 11:00:05 +0000
commitaa6f1b6c149dd724ce0da31231168b763c8970ce (patch)
tree4129f1372ab6018086e36e7f789f4137a0beb8f3
parentc0977fd6ac36ea11175c2cca497e729ec051f7cf (diff)
A better check to test whether a configuration was configured with MPI.
This closes PR CactusElliptic/1218. git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllPETSc/trunk@72 1d96b42b-98df-4a6a-9d84-1b24288d4588
-rw-r--r--src/make.configuration.defn4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/make.configuration.defn b/src/make.configuration.defn
index 0db964b..c2444cd 100644
--- a/src/make.configuration.defn
+++ b/src/make.configuration.defn
@@ -11,7 +11,9 @@
### check if this was configured with MPI, bail out if not
-ifeq ($(strip $(MPI_LIBS)), )
+have_mpi := $(shell grep -s '\#define CCTK_MPI' $(CONFIG)/cctk_Extradefs.h)
+
+ifeq ($(strip $(have_mpi)), )
$(NAME): MissingMPI
.pseudo: MissingMPI
MissingMPI: