mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
removed the check for H5Pset_libver_bounds (HAVE_H5PSET_LIBVER_BOUNDS) since API
function was introduced in 1.8.0 (and some tests used H5Pset_libver_bounds without checking HAVE_H5PSET_LIBVER_BOUNDS.
This commit is contained in:
parent
991bf075d9
commit
a464bea84b
@ -767,7 +767,6 @@ IF(USE_HDF5)
|
||||
|
||||
#Check to see if HDF5 library has collective metadata APIs, (HDF5 >= 1.10.0)
|
||||
CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5Pset_all_coll_metadata_ops "" HDF5_HAS_COLL_METADATA_OPS)
|
||||
CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5Pset_libver_bounds "" HAVE_H5PSET_LIBVER_BOUNDS)
|
||||
CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5free_memory "" HAVE_H5FREE_MEMORY)
|
||||
CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5allocate_memory "" HAVE_H5ALLOCATE_MEMORY)
|
||||
CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5resize_memory "" HAVE_H5RESIZE_MEMORY)
|
||||
|
@ -253,9 +253,6 @@ are set when opening a binary file on Windows. */
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#cmakedefine HAVE_STRUCT_TIMESPEC 1
|
||||
|
||||
/* if true, netcdf4 file properties will be set using H5Pset_libver_bounds */
|
||||
#cmakedefine HAVE_H5PSET_LIBVER_BOUNDS 1
|
||||
|
||||
/* Define to 1 if you have the `H5Z_SZIP' function. */
|
||||
#cmakedefine HAVE_H5Z_SZIP 1
|
||||
|
||||
|
@ -1196,7 +1196,7 @@ if test "x$enable_hdf5" = xyes; then
|
||||
|
||||
# H5Pset_fapl_mpiposix and H5Pget_fapl_mpiposix have been removed since HDF5 1.8.12.
|
||||
# Use H5Pset_fapl_mpio and H5Pget_fapl_mpio, instead.
|
||||
AC_CHECK_FUNCS([H5Pget_fapl_mpio H5Pset_deflate H5Z_SZIP H5free_memory H5resize_memory H5allocate_memory H5Pset_libver_bounds H5Pset_all_coll_metadata_ops])
|
||||
AC_CHECK_FUNCS([H5Pget_fapl_mpio H5Pset_deflate H5Z_SZIP H5free_memory H5resize_memory H5allocate_memory H5Pset_all_coll_metadata_ops])
|
||||
|
||||
# Check to see if HDF5 library has collective metadata APIs, (HDF5 >= 1.10.0)
|
||||
if test "x$ac_cv_func_H5Pset_all_coll_metadata_ops" = xyes; then
|
||||
|
@ -166,7 +166,6 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,
|
||||
nc4_chunk_cache_preemption));
|
||||
}
|
||||
|
||||
#ifdef HAVE_H5PSET_LIBVER_BOUNDS
|
||||
#if H5_VERSION_GE(1,10,2)
|
||||
/* lib versions 1.10.2 and higher */
|
||||
if (H5Pset_libver_bounds(fapl_id, H5F_LIBVER_V18, H5F_LIBVER_LATEST) < 0)
|
||||
@ -180,7 +179,6 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,
|
||||
#endif
|
||||
#endif
|
||||
BAIL(NC_EHDFERR);
|
||||
#endif
|
||||
|
||||
/* Create the property list. */
|
||||
if ((fcpl_id = H5Pcreate(H5P_FILE_CREATE)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user