diff options
-rwxr-xr-x | lib/make/extras/HDF5/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/make/extras/HDF5/setup.sh b/lib/make/extras/HDF5/setup.sh index 06f1d0ac..1180ce9f 100755 --- a/lib/make/extras/HDF5/setup.sh +++ b/lib/make/extras/HDF5/setup.sh @@ -62,7 +62,7 @@ grep -qe '#define HAVE_LIBZ 1' ${HDF5_DIR}/include/H5config.h 2> /dev/null test_zlib=$? if [ $test_compress2 -eq 0 -o $test_zlib -eq 0 ] ; then - if test -z "$LIBZ_DIR" -a test -r /usr/lib/libz.a ; then + if test -z "$LIBZ_DIR" -a ! -r /usr/lib/libz.a ; then echo "HDF5 library was compiled with libz, searching for libz.a ..." CCTK_Search LIBZ_DIR "/usr/local/lib c:/packages/libz" libz.a if test -z "$LIBZ_DIR" ; then |