mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Moved the check for szip libraries so that it is only sought out if hdf5 includes szip support.
This commit is contained in:
parent
45f77090a1
commit
645d1dbaaf
@ -659,7 +659,6 @@ if test "x$enable_netcdf_4" = xyes; then
|
||||
AC_DEFINE([USE_NETCDF4], [1], [if true, build netCDF-4])
|
||||
AC_DEFINE([H5_USE_16_API], [1], [use HDF5 1.6 API])
|
||||
|
||||
AC_SEARCH_LIBS([SZ_Compress], [szip sz], [], [])
|
||||
|
||||
# Check for the main hdf5 and hdf5_hl library.
|
||||
|
||||
@ -712,6 +711,7 @@ dnl fi
|
||||
|
||||
# The user may have built HDF5 with the SZLIB library.
|
||||
if test "x$ac_cv_func_H5Z_SZIP" = xyes; then
|
||||
AC_SEARCH_LIBS([SZ_Compress], [szip sz], [], [])
|
||||
AC_DEFINE([USE_SZIP], [1], [if true, compile in szip compression in netCDF-4 variables])
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user