diff options
author | eschnett <eschnett@d47fded2-66c1-406f-af09-4fc0800f9c6b> | 2014-11-01 01:11:43 +0000 |
---|---|---|
committer | eschnett <eschnett@d47fded2-66c1-406f-af09-4fc0800f9c6b> | 2014-11-01 01:11:43 +0000 |
commit | c8a75dd80564d3e93a392d6bcedfd41be0080301 (patch) | |
tree | 7841b373d313bb83bdb2466ab9a1dd23d25f1cf2 | |
parent | a9613fd3d36b5d04f3d8c145cfab7f8408654c8d (diff) |
Update handling standard include/library pathssvn
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/zlib/trunk@44 d47fded2-66c1-406f-af09-4fc0800f9c6b
-rw-r--r-- | configure.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.sh b/configure.sh index 80aeec0..775a6fe 100644 --- a/configure.sh +++ b/configure.sh @@ -98,7 +98,7 @@ then # Set locations THORN=zlib NAME=zlib-1.2.8 - SRCDIR=$(dirname $0) + SRCDIR="$(dirname $0)" BUILD_DIR=${SCRATCH_BUILD}/build/${THORN} if [ -z "${ZLIB_INSTALL_DIR}" ]; then INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN} @@ -187,17 +187,17 @@ fi ################################################################################ # Set options -if [ "${ZLIB_DIR}" != '/usr' -a "${ZLIB_DIR}" != '/usr/local' -a \ - "${ZLIB_DIR}" != 'NO_BUILD' ] -then +if [ "${ZLIB_DIR}" != 'NO_BUILD' ]; then : ${ZLIB_INC_DIRS="${ZLIB_DIR}/include"} : ${ZLIB_LIB_DIRS="${ZLIB_DIR}/lib"} fi : ${ZLIB_LIBS='z'} +ZLIB_INC_DIRS="$(${CCTK_HOME}/lib/sbin/strip-incdirs.sh ${ZLIB_INC_DIRS})" +ZLIB_LIB_DIRS="$(${CCTK_HOME}/lib/sbin/strip-libdirs.sh ${ZLIB_LIB_DIRS})" + # Pass options to Cactus echo "BEGIN MAKE_DEFINITION" -echo "HAVE_ZLIB = 1" echo "ZLIB_DIR = ${ZLIB_DIR}" echo "ZLIB_INC_DIRS = ${ZLIB_INC_DIRS}" echo "ZLIB_LIB_DIRS = ${ZLIB_LIB_DIRS}" |