diff --git a/configure.ac b/configure.ac index 38b186afe6..7a389cde54 100644 --- a/configure.ac +++ b/configure.ac @@ -227,6 +227,8 @@ AC_MSG_RESULT($enable_dap) if test "x$enable_remote_functionality" = xno ; then AC_MSG_WARN([All network access is disabled => DAP support disabled.]) enable_dap=no + AC_MSG_WARN([All network access is disabled => NCZARR support disabled.]) + enable_nczarr=no fi AC_MSG_CHECKING([whether netcdf zarr storage format should be disabled]) @@ -664,6 +666,13 @@ AC_ARG_ENABLE([quantize], [disable quantize support. It is safe to leave this on unless you specifically need to disable it.])]) test "x$enable_quantize" = xno || enable_quantize=yes +# If HDF5 and nczarr are disabled, there is no quantize. +if test "x${enable_hdf5}" = xno; then + if test "x${enable_nczarr}" = xno; then + enable_quantize=no + fi +fi + AC_MSG_RESULT($enable_quantize) if test "x${enable_quantize}" = xyes; then AC_DEFINE([NETCDF_ENABLE_QUANTIZE], [1], [if true, enable quantize support])