changes to support build of libsrc4 without libhdf5

This commit is contained in:
Ed Hartnett 2019-05-22 07:50:12 -06:00
parent 1d9f28fb70
commit 150662dd0b
5 changed files with 12 additions and 1 deletions

View File

@ -1386,6 +1386,11 @@ AC_MSG_WARN([netCDF-4 disabled => --disable-filter-testing])
enable_filter_testing=no
fi
if test "x$enable_hdf5" = xno ; then
AC_MSG_WARN([HDF5 disabled => --disable-filter-testing])
enable_filter_testing=no
fi
if test "x$enable_shared" = xno ; then
AC_MSG_WARN([Shared libraries are disabled => --disable-filter-testing])
enable_filter_testing=no

View File

@ -11,6 +11,7 @@
#ifndef _NCDIMSCALE_H_
#define _NCDIMSCALE_H_
#ifdef USE_HDF5
#include <hdf5.h>
/* This is used to uniquely identify datasets, so we can keep track of
@ -20,5 +21,6 @@ typedef struct hdf5_objid
unsigned long fileno[2]; /* file number */
haddr_t objno[2]; /* object number */
} HDF5_OBJID_T;
#endif /* USE_HDF5 */
#endif

View File

@ -9,7 +9,9 @@
*/
#include "config.h"
#ifdef USE_HDF5
#include <hdf5internal.h>
#endif
#include <math.h> /* For pow() used below. */
/** @internal Default size for unlimited dim chunksize. */

View File

@ -16,12 +16,12 @@ extern int NC3_finalize(void);
#ifdef USE_NETCDF4
#include "nc4internal.h"
#include "hdf5internal.h"
extern int NC4_initialize(void);
extern int NC4_finalize(void);
#endif
#ifdef USE_HDF5
#include "hdf5internal.h"
extern int NC_HDF5_initialize(void);
extern int NC_HDF5_finalize(void);
#endif

View File

@ -13,7 +13,9 @@
#include "config.h"
#include <nc4internal.h>
#include "nc4dispatch.h"
#ifdef USE_HDF5
#include "hdf5internal.h"
#endif
#include <math.h>
/**