diff --git a/Makefile b/Makefile index 4c5a8f4aba..f87b0a9c20 100644 --- a/Makefile +++ b/Makefile @@ -1069,7 +1069,7 @@ fseek_test : # rule used by configure to test if this will compile with netcdf4 nc4_test: - if [ $(USENETCDFPAR) -eq 0 ] ; then \ + if [ -z "$(USENETCDFPAR)" ] || [ $(USENETCDFPAR) -eq 0 ] ; then \ ( cd tools ; /bin/rm -f nc4_test.{exe,nc,o} ; $(SCC) -o nc4_test.exe nc4_test.c -I$(NETCDF)/include -L$(NETCDF)/lib -lnetcdf $(NETCDF4_DEP_LIB) ; cd .. ) ; \ else \ ( cd tools ; /bin/rm -f nc4_test.{exe,nc,o} ; $(DM_CC) -o nc4_test.exe nc4_test.c -I$(NETCDF)/include -L$(NETCDF)/lib -lnetcdf $(NETCDF4_DEP_LIB) ; cd .. ) ; \