diff options
author | bmundim <bmundim@c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb> | 2011-07-23 04:57:30 +0000 |
---|---|---|
committer | bmundim <bmundim@c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb> | 2011-07-23 04:57:30 +0000 |
commit | 690b9ddfae21018e5698694d0f84d260895579cd (patch) | |
tree | 46e8106d6fb7a48313c44b52de73da31051fc356 | |
parent | 1265332cd427c256c7263071b45657b1b8d502d5 (diff) |
Introduce LAPACK_INSTALL_DIR configuration option.
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/LAPACK/trunk@19 c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb
-rw-r--r-- | LAPACK.sh | 12 | ||||
-rw-r--r-- | configuration.ccl | 2 |
2 files changed, 12 insertions, 2 deletions
@@ -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} diff --git a/configuration.ccl b/configuration.ccl index 9c1dcfd..452a39b 100644 --- a/configuration.ccl +++ b/configuration.ccl @@ -4,7 +4,7 @@ PROVIDES LAPACK { SCRIPT LAPACK.sh LANG bash - OPTIONS LAPACK_DIR LAPACK_LIBS + OPTIONS LAPACK_DIR LAPACK_INSTALL_DIR LAPACK_LIBS } REQUIRES BLAS |