summaryrefslogtreecommitdiffstats
path: root/test/testlibinfo.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/testlibinfo.sh.in')
-rw-r--r--test/testlibinfo.sh.in22
1 files changed, 3 insertions, 19 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in
index 5bcd300..91eda16 100644
--- a/test/testlibinfo.sh.in
+++ b/test/testlibinfo.sh.in
@@ -74,27 +74,11 @@ fi
# built too.
if [ -n $Shared_Lib ]; then
h5libdir=../src/.libs
+ shlib=$(grep dlname ../src/libhdf5.la | sed -e "s/dlname='//" -e "s/'//")
else
h5libdir=../src
fi
-# Different OS uses different naming for shared libs.
-case `uname -s` in
- Darwin) # MacOS
- shlibsuffix=.dylib
- break
- ;;
- AIX) # AIX .a is already a shared lib
- # this is a temporary patch.
- shlibsuffix=.a
- break
- ;;
- *) # default
- shlibsuffix=.so
- break
- ;;
-esac
-
h5libsettings=../src/libhdf5.settings
# Part 1:
@@ -102,9 +86,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${shlibsuffix}
+ CHECK_LIBINFO ${h5libdir}/${shlib}
else
- SKIP ${h5libdir}/libhdf5${shlibsuffix}
+ SKIP shlib
fi
# Though rare, libhdf5.a may not have been built.