Fix building on macOS

This commit is contained in:
Sergey Kosukhin 2023-06-12 11:26:06 +02:00
parent 7cb42a6739
commit 4cdbef4a02

View File

@ -1247,8 +1247,8 @@ if test "x$enable_hdf5" = "xno" ; then
enable_dap4=no
fi
if test "x$ISOSX" = xyes && test "x$have_libxml2" = xno ; then
AC_MSG_ERROR([Error: OSX requires libxml2 => --disable-dap4.])
if test "x$ISOSX" = xyes && test "x$have_libxml2" = xno && test "x$enable_dap4" = xyes ; then
AC_MSG_WARN([OSX requires libxml2 for DAP4 support; disabling DAP4])
enable_dap4=no
fi