Corrected a typo in dv21.c, added a stanza for zlib.dll into configure.ac

This commit is contained in:
Ward Fisher 2012-05-21 21:08:49 +00:00
parent 0cdced57ed
commit f2516809c5
2 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ AC_CHECK_SIZEOF(off_t)
AC_CHECK_SIZEOF(size_t)
if test "x$enable_netcdf_4" = xyes || test "x$enable_dap" = xyes; then
AC_SEARCH_LIBS([deflate], [zlib1 z], [], [
AC_SEARCH_LIBS([deflate], [zlib zlib1 z], [], [
AC_MSG_ERROR([Can't find or link to the z library. Turn off netCDF-4 and \
opendap with --disable-netcdf-4 --disable-dap, or see config.log for errors.])])
fi

View File

@ -46,7 +46,7 @@ nvdims(int ncid, int varid)
{
int ndims, status;
if ((status = nc_inq_var_ndims(ncid, varid, &ndims)))
if ((status = nc_inq_varndims(ncid, varid, &ndims)))
{
nc_advise("ncvdims", status, "ncid %d", ncid);
return -1;