Mercurial > forge
comparison main/netcdf/src/configure.base @ 12698:1a348ee9a848 octave-forge
checking for netcdf4 support
author | abarth93 |
---|---|
date | Wed, 02 Dec 2015 09:22:02 +0000 |
parents | fa07b71bcbfb |
children |
comparison
equal
deleted
inserted
replaced
12697:79e7259c6ff1 | 12698:1a348ee9a848 |
---|---|
324 AC_CHECK_TOOL(NC_CONFIG, nc-config, nc-config) | 324 AC_CHECK_TOOL(NC_CONFIG, nc-config, nc-config) |
325 if test -z "$NC_CONFIG"; then | 325 if test -z "$NC_CONFIG"; then |
326 AC_MSG_ERROR([nc-config not found], 1); | 326 AC_MSG_ERROR([nc-config not found], 1); |
327 fi | 327 fi |
328 | 328 |
329 NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`" | 329 |
330 NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`" | 330 dnl The following will be either "yes" or "no" |
331 AC_MSG_CHECKING(for netcdf4 support) | |
332 NETCDF_V4=`$NC_CONFIG --has-nc4` | |
333 if test x$NETCDF_V4 != yes; then | |
334 AC_MSG_RESULT(yes) | |
335 else | |
336 AC_MSG_RESULT(no) | |
337 AC_MSG_ERROR(netcdf4 support missing. Did you disable netcdf4 features?) | |
338 fi | |
339 | |
340 dnl other way to check this | |
341 dnl NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`" | |
342 dnl NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`" | |
343 dnl CFLAGS="$NETCDF_CFLAGS $CFLAGS" | |
344 dnl CXXFLAGS="$NETCDF_CFLAGS $CXXFLAGS" | |
345 dnl LDFLAGS="$NETCDF_LIBS $LDFLAGS" | |
346 dnl AC_CHECK_LIB([netcdf], [nc_set_chunk_cache], , [AC_MSG_ERROR(nc_set_chunk_cache was not found in the netCDF library. Did you disable netcdf4 features?)]) | |
331 | 347 |
332 | 348 |
333 CONFIGURE_OUTPUTS="Makeconf" | 349 CONFIGURE_OUTPUTS="Makeconf" |
334 STATUS_MSG=" | 350 STATUS_MSG=" |
335 octave commands will install into the following directories: | 351 octave commands will install into the following directories: |