aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb>2014-11-01 00:52:24 +0000
committereschnett <eschnett@c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb>2014-11-01 00:52:24 +0000
commitae2760e7f4c8387eea90980856710e29b7991c96 (patch)
tree3c12b8411cda112ea5d1fe4f7d35b975c94e5162
parent65f9ea3a9a2174251575a47301414c04652c71bc (diff)
Update handling standard include/library paths
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/LAPACK/trunk@51 c7ba4c71-c2f2-49b2-85d5-cb7b5f04bdfb
-rw-r--r--configure.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.sh b/configure.sh
index 4c6c942..f7cb94d 100644
--- a/configure.sh
+++ b/configure.sh
@@ -76,7 +76,7 @@ then
# Set locations
THORN=LAPACK
NAME=lapack-3.4.2
- SRCDIR=$(dirname $0)
+ SRCDIR="$(dirname $0)"
BUILD_DIR=${SCRATCH_BUILD}/build/${THORN}
if [ -z "${LAPACK_INSTALL_DIR}" ]; then
INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
@@ -184,17 +184,17 @@ fi
################################################################################
# Set options
-if [ "${LAPACK_DIR}" != '/usr/lib' -a "${LAPACK_DIR}" != '/usr/local/lib' -a \
- "${LAPACK_DIR}" != 'NO_BUILD' ]
-then
+if [ "${LAPACK_DIR}" != 'NO_BUILD' ]; then
: ${LAPACK_INC_DIRS=}
: ${LAPACK_LIB_DIRS="${LAPACK_DIR}"}
fi
: ${LAPACK_LIBS='lapack'}
+LAPACK_INC_DIRS="$(${CCTK_HOME}/lib/sbin/strip-incdirs.sh ${LAPACK_INC_DIRS})"
+LAPACK_LIB_DIRS="$(${CCTK_HOME}/lib/sbin/strip-libdirs.sh ${LAPACK_LIB_DIRS})"
+
# Pass options to Cactus
echo "BEGIN MAKE_DEFINITION"
-echo "HAVE_LAPACK = 1"
echo "LAPACK_DIR = ${LAPACK_DIR}"
echo "LAPACK_INC_DIRS = ${LAPACK_INC_DIRS}"
echo "LAPACK_LIB_DIRS = ${LAPACK_LIB_DIRS}"