aboutsummaryrefslogtreecommitdiff
path: root/LAPACK.sh
diff options
context:
space:
mode:
Diffstat (limited to 'LAPACK.sh')
-rw-r--r--LAPACK.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/LAPACK.sh b/LAPACK.sh
index 3c22386..3a1411a 100644
--- a/LAPACK.sh
+++ b/LAPACK.sh
@@ -57,7 +57,17 @@ if [ -z "${LAPACK_DIR}" -o "${LAPACK_DIR}" = 'BUILD' ]; then
NAME=lapack-3.3.1
SRCDIR=$(dirname $0)
BUILD_DIR=${SCRATCH_BUILD}/build/${THORN}
- INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
+ if [ -z "${LAPACK_INSTALL_DIR}" ]; then
+ echo "BEGIN MESSAGE"
+ echo "LAPACK install directory, LAPACK_INSTALL_DIR, not set. Installing in the default configuration location. "
+ echo "END MESSAGE"
+ INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
+ else
+ echo "BEGIN MESSAGE"
+ echo "LAPACK install directory, LAPACK_INSTALL_DIR, selected. Installing LAPACK at ${LAPACK_INSTALL_DIR} "
+ echo "END MESSAGE"
+ INSTALL_DIR=${LAPACK_INSTALL_DIR}
+ fi
DONE_FILE=${SCRATCH_BUILD}/done/${THORN}
LAPACK_DIR=${INSTALL_DIR}