aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@fb53df36-e548-4a1e-8150-ab98cbd5e786>2011-11-10 16:14:07 +0000
committereschnett <eschnett@fb53df36-e548-4a1e-8150-ab98cbd5e786>2011-11-10 16:14:07 +0000
commitb80375bff6061339ce1a427de563c2981b4be632 (patch)
tree4148adfda98096390968ec0195321b027de5d11a
parent81539d92d179303a08012cdc93c7f08543f880e0 (diff)
Accept HDF5_DIR=BUILD case-independently
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/HDF5/trunk@46 fb53df36-e548-4a1e-8150-ab98cbd5e786
-rw-r--r--HDF5.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/HDF5.sh b/HDF5.sh
index 9b67b96..9589656 100644
--- a/HDF5.sh
+++ b/HDF5.sh
@@ -45,7 +45,9 @@ fi
# Search
################################################################################
-if [ -z "${HDF5_DIR}" ]; then
+if [ -z "${HDF5_DIR}" \
+ -o "$(echo "${HDF5_DIR}" | tr '[a-z]' '[A-Z]')" = 'BUILD' ]
+then
echo "BEGIN MESSAGE"
echo "HDF5 selected, but HDF5_DIR not set. Checking some places..."
echo "END MESSAGE"