./configure --prefix=/install/path --with-netcdf-incs="-I/path/to/netcdf/include" --with-netcdf-libs="-L/path/to/netcdf/lib -lnetcdff -lnetcdf"