summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-09-22 16:09:56 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-09-22 16:09:56 (GMT)
commitcd0f704f4dd50e754924b6c5cd6a883fe9f1a994 (patch)
tree0ce615cdedaa1e851f8df0c0cce85b817e9497f7
parent1d2bf10ae704d08b03ce9f86234e81368549ba3e (diff)
downloadhdf5-cd0f704f4dd50e754924b6c5cd6a883fe9f1a994.zip
hdf5-cd0f704f4dd50e754924b6c5cd6a883fe9f1a994.tar.gz
hdf5-cd0f704f4dd50e754924b6c5cd6a883fe9f1a994.tar.bz2
[svn-r17503] Bug fix:
Test failed with libhdf5.so not found in MacOS which uses a different suffix (*.dylib) for shared lib. Solution: Added code to setup shared lib file suffix according to OS types. Tested: Tejeda, jam.
-rw-r--r--test/testlibinfo.sh.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in
index d8cd7e5..97fb59d 100644
--- a/test/testlibinfo.sh.in
+++ b/test/testlibinfo.sh.in
@@ -78,6 +78,18 @@ else
h5libdir=../src
fi
+# Different OS uses different naming for shared libs.
+case `uname -s` in
+ Darwin) # MacOS
+ shlibsuffix=.dylib
+ break
+ ;;
+ *) # default
+ shlibsuffix=.so
+ break
+ ;;
+esac
+
h5libsettings=../src/libhdf5.settings
# Part 1:
@@ -85,9 +97,9 @@ h5libsettings=../src/libhdf5.settings
# libhdf5.settings file.
# Check dynamic library file if built.
if [ x-$Shared_Lib = x-yes ]; then
- CHECK_LIBINFO ${h5libdir}/libhdf5.so
+ CHECK_LIBINFO ${h5libdir}/libhdf5${shlibsuffix}
else
- SKIP ${h5libdir}/libhdf5.so
+ SKIP ${h5libdir}/libhdf5${shlibsuffix}
fi
# Though rare, libhdf5.a may not have been built.