trying to fix classic build problem
@@ -193,10 +193,6 @@ AC_ARG_ENABLE([netcdf-4], [AS_HELP_STRING([--disable-netcdf-4],
[do not build with netcdf-4 (else HDF5 and zlib required)])])
test "x$enable_netcdf_4" = xno || enable_netcdf_4=yes
-enable_hdf5=$enable_netcdf_4
-AC_MSG_CHECKING([whether we should build with HDF5])
-AC_MSG_RESULT([$enable_hdf5])
-
# Synonym
AC_ARG_ENABLE([netcdf4], [AS_HELP_STRING([--disable-netcdf4],
[(just a synonym for --disable-netcdf-4)])])
@@ -206,6 +202,11 @@ enable_netcdf_4=no
fi
AC_MSG_RESULT([$enable_netcdf_4])
+# Does the user want to use HDF5?
+enable_hdf5=$enable_netcdf_4
+AC_MSG_CHECKING([whether we should build with HDF5])
+AC_MSG_RESULT([$enable_hdf5])
+
# Does the user require dynamic loading?
# This is only for those hdf5 installs that support it.
AC_MSG_CHECKING([do we require hdf5 dynamic-loading support])
