aboutsummaryrefslogtreecommitdiff
path: root/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.sh b/configure.sh
index c19188e..f5b8453 100755
--- a/configure.sh
+++ b/configure.sh
@@ -29,7 +29,9 @@ fi
# Search
################################################################################
-if [ -z "${MPI_DIR}" ]; then
+if [ -z "${MPI_DIR}" \
+ -o "$(echo "${MPI_DIR}" | tr '[a-z]' '[A-Z]')" = 'NO_BUILD' ]
+then
echo "BEGIN MESSAGE"
echo "MPI selected, but MPI_DIR not set. Checking some places..."
echo "END MESSAGE"