--- configure.orig 2018-04-18 03:48:30 UTC
+++ configure
@@ -2487,7 +2487,7 @@ if test -z "$NC_CONFIG"; then
fi
NETCDF_LIBS=`$NC_CONFIG --libs`
-NETCDF_CPPFLAGS=`$NC_CONFIG --cflags`
+NETCDF_CPPFLAGS=`$NC_CONFIG --cflags | sed -E 's/-isystem[[:space:]]+[^[:space:]]+//'`