configure.ac (netcdf-fortran-4.4.4) | : | configure.ac (netcdf-fortran-4.4.5) | ||
---|---|---|---|---|
skipping to change at line 12 | skipping to change at line 12 | |||
## Process this file with autoconf to produce a configure script. | ## Process this file with autoconf to produce a configure script. | |||
# This is part of Unidata's netCDF package. Copyright 2011, see the | # This is part of Unidata's netCDF package. Copyright 2011, see the | |||
# COPYRIGHT file for more information. | # COPYRIGHT file for more information. | |||
# Running autoconf on this file will trigger a warning if | # Running autoconf on this file will trigger a warning if | |||
# autoconf is not at least the specified version. | # autoconf is not at least the specified version. | |||
AC_PREREQ([2.59]) | AC_PREREQ([2.59]) | |||
# Initialize with name, version, and support email address. | # Initialize with name, version, and support email address. | |||
AC_INIT([netCDF-Fortran], [4.4.4], [support-netcdf@unidata.ucar.edu]) | AC_INIT([netCDF-Fortran], [4.4.5], [support-netcdf@unidata.ucar.edu]) | |||
# Create the VERSION file, which contains the package version from | # Create the VERSION file, which contains the package version from | |||
# AC_INIT. | # AC_INIT. | |||
echo -n AC_PACKAGE_VERSION>VERSION | echo -n AC_PACKAGE_VERSION>VERSION | |||
AC_SUBST(PACKAGE_VERSION) | AC_SUBST(PACKAGE_VERSION) | |||
AC_MSG_NOTICE([netCDF-Fortran AC_PACKAGE_VERSION]) | AC_MSG_NOTICE([netCDF-Fortran AC_PACKAGE_VERSION]) | |||
# Keep libtool macros in an m4 directory. | # Keep libtool macros in an m4 directory. | |||
AC_CONFIG_MACRO_DIR([m4]) | AC_CONFIG_MACRO_DIR([m4]) | |||
skipping to change at line 39 | skipping to change at line 39 | |||
# This call is required by automake. | # This call is required by automake. | |||
AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects]) | AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects]) | |||
AM_MAINTAINER_MODE() | AM_MAINTAINER_MODE() | |||
# Check for the existence of this file before proceeding. | # Check for the existence of this file before proceeding. | |||
AC_CONFIG_SRCDIR([libsrc/fort-attio.c]) | AC_CONFIG_SRCDIR([libsrc/fort-attio.c]) | |||
AC_MSG_NOTICE([checking user options]) | AC_MSG_NOTICE([checking user options]) | |||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ | ||||
#include <netcdf_meta.h> | ||||
#if !defined(NC_RELAX_COORD_BOUND) || NC_RELAX_COORD_BOUND == 0 | ||||
choke me | ||||
#endif]])], [nc_relax_coord_bound=yes], [nc_relax_coord_bound=no]) | ||||
if test "x$nc_relax_coord_bound" = xyes; then | ||||
AC_DEFINE([NF_RELAX_COORD_BOUND], [1], [Enable a more relaxed boundary error | ||||
check NF_EINVALCOORDS]) | ||||
fi | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ | ||||
#include <netcdf_meta.h> | ||||
#if !defined(NC_HAS_CDF5) || NC_HAS_CDF5 == 0 | ||||
choke me | ||||
#endif]])], [nc_has_cdf5=yes], [nc_has_cdf5=no]) | ||||
if test "x$nc_has_cdf5" = xyes; then | ||||
AC_DEFINE([ENABLE_CDF5], [1], [Enable CDF-5 file format]) | ||||
fi | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ | ||||
#include <netcdf_meta.h> | ||||
#if !defined(NC_HAS_PNETCDF) || NC_HAS_PNETCDF == 0 | ||||
choke me | ||||
#endif]])], [nc_has_pnetcdf=yes], [nc_has_pnetcdf=no]) | ||||
if test "x$nc_has_pnetcdf" = xyes; then | ||||
AC_DEFINE([NF_HAS_PNETCDF], [1], [Enable parallel I/O support via PnetCDF]) | ||||
fi | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ | ||||
#include <netcdf_meta.h> | ||||
#if !defined(NC_HAS_PARALLEL4) || NC_HAS_PARALLEL4 == 0 | ||||
choke me | ||||
#endif]])], [nc_has_parallel4=yes], [nc_has_parallel4=no]) | ||||
if test "x$nc_has_parallel4" = xyes; then | ||||
AC_DEFINE([NF_HAS_PARALLEL4], [1], [Enable parallel I/O support via HDF5]) | ||||
fi | ||||
# Does the user want to run extra tests with valgrind? | # Does the user want to run extra tests with valgrind? | |||
AC_MSG_CHECKING([whether extra valgrind tests should be run]) | AC_MSG_CHECKING([whether extra valgrind tests should be run]) | |||
AC_ARG_ENABLE([valgrind-tests], | AC_ARG_ENABLE([valgrind-tests], | |||
[AS_HELP_STRING([--enable-valgrind-tests], | [AS_HELP_STRING([--enable-valgrind-tests], | |||
[build with valgrind-tests (valgrind is required, static builds only)])]) | [build with valgrind-tests (valgrind is required, static builds only)])]) | |||
test "x$enable_valgrind_tests" = xyes || enable_valgrind_tests=no | test "x$enable_valgrind_tests" = xyes || enable_valgrind_tests=no | |||
AC_MSG_RESULT($enable_valgrind_tests) | AC_MSG_RESULT($enable_valgrind_tests) | |||
# Does the user want to run extra parallel tests when parallel netCDF-4 is built ? | # Does the user want to run extra parallel tests when parallel netCDF-4 is built ? | |||
AC_MSG_CHECKING([whether parallel IO tests should be run]) | AC_MSG_CHECKING([whether parallel IO tests should be run]) | |||
AC_ARG_ENABLE([parallel-tests], | AC_ARG_ENABLE([parallel-tests], | |||
[AS_HELP_STRING([--enable-parallel-tests], | [AS_HELP_STRING([--enable-parallel-tests], | |||
[Run extra parallel IO tests. Ignored if \ | [Run extra parallel IO tests. Ignored if \ | |||
netCDF-4 is not enabled, or built on a system \ | netCDF-4 is not enabled, or built on a system \ | |||
without parallel I/O support.])]) | without parallel I/O support.])]) | |||
test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no | test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no | |||
if test "x$nc_has_pnetcdf" = xno -a "x$nc_has_parallel4" = xno ; then | ||||
# paralle I/O is not enabled | ||||
enable_parallel_tests=no | ||||
fi | ||||
AC_MSG_RESULT($enable_parallel_tests) | AC_MSG_RESULT($enable_parallel_tests) | |||
# Does the user want to do some extra tests? | # Does the user want to do some extra tests? | |||
AC_MSG_CHECKING([whether netCDF extra tests should be run (developers only)]) | AC_MSG_CHECKING([whether netCDF extra tests should be run (developers only)]) | |||
AC_ARG_ENABLE([extra-tests], | AC_ARG_ENABLE([extra-tests], | |||
[AS_HELP_STRING([--enable-extra-tests], | [AS_HELP_STRING([--enable-extra-tests], | |||
[run some extra tests that may not pass because of known issues])]) | [run some extra tests that may not pass because of known issues])]) | |||
test "x$enable_extra_tests" = xyes || enable_extra_tests=no | test "x$enable_extra_tests" = xyes || enable_extra_tests=no | |||
AC_MSG_RESULT($enable_extra_tests) | AC_MSG_RESULT($enable_extra_tests) | |||
if test "x$enable_extra_tests" = xyes; then | if test "x$enable_extra_tests" = xyes; then | |||
AC_DEFINE([EXTRA_TESTS], [1], [if true, run extra tests which may not work ye t]) | AC_DEFINE([EXTRA_TESTS], [1], [if true, run extra tests which may not work ye t]) | |||
fi | fi | |||
AM_CONDITIONAL(EXTRA_TESTS, [test x$enable_extra_tests = xyes]) | AM_CONDITIONAL(EXTRA_TESTS, [test x$enable_extra_tests = xyes]) | |||
##### | ##### | |||
# Determine if we want to enable doxygen-generated documentation. | # Determine if we want to enable doxygen-generated documentation. | |||
##### | ##### | |||
AC_MSG_CHECKING([whether netCDF documentation should be generated)]) | ||||
AC_ARG_ENABLE([doxygen], | AC_ARG_ENABLE([doxygen], | |||
[AS_HELP_STRING([--enable-doxygen], | [AS_HELP_STRING([--enable-doxygen], | |||
[Enable generation of documentation with doxygen.])]) | [Enable generation of documentation with doxygen.])]) | |||
test "x$enable_doxygen" = xyes || enable_doxygen=no | test "x$enable_doxygen" = xyes || enable_doxygen=no | |||
AC_MSG_RESULT($enable_doxygen) | ||||
AM_CONDITIONAL([BUILD_DOCS], [test "x$enable_doxygen" = xyes]) | AM_CONDITIONAL([BUILD_DOCS], [test "x$enable_doxygen" = xyes]) | |||
# Does the user want to generate dot-based documentation? | # Does the user want to generate dot-based documentation? | |||
AC_ARG_ENABLE([dot], | AC_ARG_ENABLE([dot], | |||
[AS_HELP_STRING([--enable-dot], | [AS_HELP_STRING([--enable-dot], | |||
[Use dot (provided by graphviz) to generate charts and graphs in the doxy gen-based documentation.])]) | [Use dot (provided by graphviz) to generate charts and graphs in the doxy gen-based documentation.])]) | |||
test "x$enable_dot" = xyes || enable_dot=no | test "x$enable_dot" = xyes || enable_dot=no | |||
# Does the user want to generate internal documentation? | # Does the user want to generate internal documentation? | |||
AC_ARG_ENABLE([internal-docs], | AC_ARG_ENABLE([internal-docs], | |||
skipping to change at line 286 | skipping to change at line 328 | |||
AM_CONDITIONAL(LARGE_FILE_TESTS, [test x$enable_large_file_tests = xyes]) | AM_CONDITIONAL(LARGE_FILE_TESTS, [test x$enable_large_file_tests = xyes]) | |||
if test "x$enable_large_file_tests" = xyes; then | if test "x$enable_large_file_tests" = xyes; then | |||
AC_DEFINE([LARGE_FILE_TESTS], [1], [do large file tests]) | AC_DEFINE([LARGE_FILE_TESTS], [1], [do large file tests]) | |||
fi | fi | |||
# Does the user want to run benchmarks? | # Does the user want to run benchmarks? | |||
AC_MSG_CHECKING([whether benchmarks should be run (experimental)]) | AC_MSG_CHECKING([whether benchmarks should be run (experimental)]) | |||
AC_ARG_ENABLE([benchmarks], | AC_ARG_ENABLE([benchmarks], | |||
[AS_HELP_STRING([--enable-benchmarks], | [AS_HELP_STRING([--enable-benchmarks], | |||
[Run benchmarks. This is an experimental feature.] )]) | [Run benchmarks. This is an experimental feature.] )]) | |||
test "x$enable_benchmarks" = xyes || enable_benchmarks=no | test "x$enable_benchmarks" = xno || enable_benchmarks=yes | |||
AC_MSG_RESULT($enable_benchmarks) | AC_MSG_RESULT($enable_benchmarks) | |||
AM_CONDITIONAL(BUILD_BENCHMARKS, [test x$enable_benchmarks = xyes]) | AM_CONDITIONAL(BUILD_BENCHMARKS, [test x$enable_benchmarks = xyes]) | |||
# If the env. variable TEMP_LARGE is set, or if | # If the env. variable TEMP_LARGE is set, or if | |||
# --with-temp-large=<directory>, use it as a place for the large | # --with-temp-large=<directory>, use it as a place for the large | |||
# (i.e. > 2 GiB) files created during the large file testing. | # (i.e. > 2 GiB) files created during the large file testing. | |||
AC_MSG_CHECKING([where to put large temp files if large file tests are run]) | AC_MSG_CHECKING([where to put large temp files if large file tests are run]) | |||
AC_ARG_WITH([temp-large], | AC_ARG_WITH([temp-large], | |||
[AS_HELP_STRING([--with-temp-large=<directory>], | [AS_HELP_STRING([--with-temp-large=<directory>], | |||
[specify directory where large files (i.e. >2 GB) \ | [specify directory where large files (i.e. >2 GB) \ | |||
will be written, if large files tests are run with | will be written, if large files tests are run with | |||
--enable-large-file-tests])], | --enable-large-file-tests])], | |||
[TEMP_LARGE=$with_temp_large]) | [TEMP_LARGE=$with_temp_large]) | |||
TEMP_LARGE=${TEMP_LARGE-.} | TEMP_LARGE=${TEMP_LARGE-.} | |||
AC_MSG_RESULT($TEMP_LARGE) | AC_MSG_RESULT($TEMP_LARGE) | |||
#AC_SUBST(TEMP_LARGE) | ||||
AC_DEFINE_UNQUOTED([TEMP_LARGE], ["$TEMP_LARGE"], [Place to put very large netCD F test files.]) | AC_DEFINE_UNQUOTED([TEMP_LARGE], ["$TEMP_LARGE"], [Place to put very large netCD F test files.]) | |||
# Turn off building old F77 interfaces if nc_build_f03 is still yes | # Turn off building old F77 interfaces if nc_build_f03 is still yes | |||
test "x$nc_build_f03" = xyes && nc_build_f77=no | test "x$nc_build_f03" = xyes && nc_build_f77=no | |||
if test "x$nc_build_f90" = xno; then | if test "x$nc_build_f90" = xno; then | |||
F90= | F90= | |||
# If F77 is set, and FC isn't, then set FC to whatever F77 was set to. | # If F77 is set, and FC isn't, then set FC to whatever F77 was set to. | |||
AS_IF([test x${F77+set} = xset -a x${FC+set} = x],[FC=$F77]) | AS_IF([test x${F77+set} = xset -a x${FC+set} = x],[FC=$F77]) | |||
skipping to change at line 335 | skipping to change at line 376 | |||
if test "x$nc_build_f03" = xno; then | if test "x$nc_build_f03" = xno; then | |||
# Some f90 compilers change the case of the mod file names. Others | # Some f90 compilers change the case of the mod file names. Others | |||
# require special flags to be set to deal with .f90 files. Find out | # require special flags to be set to deal with .f90 files. Find out | |||
# about this compiler. | # about this compiler. | |||
AC_LANG_PUSH(Fortran) | AC_LANG_PUSH(Fortran) | |||
AC_FC_SRCEXT(f90) | AC_FC_SRCEXT(f90) | |||
AC_LANG_POP(Fortran) | AC_LANG_POP(Fortran) | |||
AX_F90_MODULE_FLAG | AX_F90_MODULE_FLAG | |||
AC_SUBST(MOD_FLAG, ${ax_cv_f90_modflag}) | AC_SUBST(MOD_FLAG, ${ax_cv_f90_modflag}) | |||
fi | fi | |||
# Set the FCLIBS flag to help with shared libraries. | ||||
# AC_FC_LIBRARY_LDFLAGS | ||||
# AC_F77_LIBRARY_LDFLAGS | ||||
fi | fi | |||
AM_CONDITIONAL(BUILD_F03, [test "x$nc_build_f03" = xyes]) | AM_CONDITIONAL(BUILD_F03, [test "x$nc_build_f03" = xyes]) | |||
# Set up libtool. | # Set up libtool. | |||
AC_MSG_NOTICE([setting up libtool]) | AC_MSG_NOTICE([setting up libtool]) | |||
LT_PREREQ([2.2]) | LT_PREREQ([2.2]) | |||
LT_INIT | LT_INIT | |||
# Valgrind tests don't work with shared builds because of some libtool | # Valgrind tests don't work with shared builds because of some libtool | |||
# weirdness. | # weirdness. | |||
if test "x$enable_shared" = xyes; then | if test "x$enable_shared" = xyes; then | |||
if test $enable_valgrind_tests = yes; then | if test $enable_valgrind_tests = yes; then | |||
AC_MSG_WARN([No valgrind tests with shared libraries]) | AC_MSG_WARN([No valgrind tests with shared libraries]) | |||
skipping to change at line 396 | skipping to change at line 432 | |||
if test "x$ac_cv_fc_compiler_gnu" = xyes; then | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |||
AC_DEFINE(f2cFortran, [1], [Turned on by netCDF configure.]) | AC_DEFINE(f2cFortran, [1], [Turned on by netCDF configure.]) | |||
fi | fi | |||
;; | ;; | |||
esac | esac | |||
esac | esac | |||
# Check to see if any macros must be set to enable large (>2GB) files. | # Check to see if any macros must be set to enable large (>2GB) files. | |||
AC_SYS_LARGEFILE | AC_SYS_LARGEFILE | |||
#AC_MSG_NOTICE([displaying some results]) | ||||
## This next macro just prints some results for debugging | ||||
## support issues. | ||||
#UD_DISPLAY_RESULTS | ||||
# For nightly build testing, output CC, FC, etc. | ||||
#echo "CPPFLAGS=$CPPFLAGS CC=$CC CFLAGS=$CFLAGS CXX=$CXX CXXFLAGS=$CXXFLAGS FC=$ | ||||
FC FCFLAGS=$FCFLAGS F77=$F77 FFLAGS=$FFLAGS LDFLAGS=$LDFLAGS LIBS=$LIBS FLIBS=$F | ||||
LIBS F90LIBS=$F90LIBS" >> comps.txt | ||||
ac_cv_prog_f90_uppercase_mod=no | ac_cv_prog_f90_uppercase_mod=no | |||
# This will test the f77 compiler, as well as check some fortran types. | # This will test the f77 compiler, as well as check some fortran types. | |||
if test "$enable_fortran_type_check" = yes; then | if test "$enable_fortran_type_check" = yes; then | |||
UD_FORTRAN_TYPES | UD_FORTRAN_TYPES | |||
if test "x$ud_fc_failed" = xyes; then | if test "x$ud_fc_failed" = xyes; then | |||
AC_MSG_ERROR([F77 compiler doesn't work, and compiler recovery disabled.]) | AC_MSG_ERROR([F77 compiler doesn't work, and compiler recovery disabled.]) | |||
fi | fi | |||
else | else | |||
AC_DEFINE(NCBYTE_T, byte) | AC_DEFINE(NCBYTE_T, byte) | |||
skipping to change at line 459 | skipping to change at line 486 | |||
[build a win32 DLL (only works on mingw)])]) | [build a win32 DLL (only works on mingw)])]) | |||
test "x$enable_dll" = xyes || enable_dll=no | test "x$enable_dll" = xyes || enable_dll=no | |||
AC_MSG_RESULT([$enable_dll]) | AC_MSG_RESULT([$enable_dll]) | |||
AM_CONDITIONAL(BUILD_DLL, [test x$enable_dll = xyes]) | AM_CONDITIONAL(BUILD_DLL, [test x$enable_dll = xyes]) | |||
if test "x$enable_dll" = xyes; then | if test "x$enable_dll" = xyes; then | |||
AC_DEFINE(DLL_NETCDF, 1, [set this only when building a DLL under MinGW]) | AC_DEFINE(DLL_NETCDF, 1, [set this only when building a DLL under MinGW]) | |||
fi | fi | |||
AC_MSG_NOTICE([checking types, headers, and functions]) | AC_MSG_NOTICE([checking types, headers, and functions]) | |||
# We must check for all these, because they may be used by the netCDF | ||||
# C library. | ||||
AC_CHECK_LIB([m], [floor], [], []) | ||||
AC_CHECK_LIB([curl], [curl_easy_setopt], [], []) | ||||
AC_SEARCH_LIBS([deflate], [zlibwapi zlibstat zlib zlib1 z], [], []) | ||||
AC_SEARCH_LIBS([SZ_Compress], [szip sz], [], []) | ||||
AC_SEARCH_LIBS([dlopen], [dl dld], [], []) | ||||
AC_SEARCH_LIBS([H5Fflush], [hdf5dll hdf5], [], []) | ||||
AC_SEARCH_LIBS([H5DSis_scale], [hdf5_hldll hdf5_hl], [], []) | ||||
# Find the netCDF header and library. | # Find the netCDF header and library. | |||
AC_CHECK_HEADERS([netcdf.h], [], [AC_MSG_ERROR([netcdf.h could not be found. Ple ase set CPPFLAGS.])]) | AC_CHECK_HEADERS([netcdf.h], [], [AC_MSG_ERROR([netcdf.h could not be found. Ple ase set CPPFLAGS.])]) | |||
AC_SEARCH_LIBS([nc_open], [netcdf]) | AC_SEARCH_LIBS([nc_open], [netcdf]) | |||
# See if various libraries are available | # See if various functions are available | |||
AC_CHECK_FUNCS([nc_def_opaque nccreate nc_set_log_level oc_open nc_use_parallel_ | AC_CHECK_FUNCS([nc_def_opaque nccreate nc_set_log_level oc_open]) | |||
enabled]) | ||||
#test "x$ac_cv_func_oc_open" = xyes && nc_has_dap=yes || nc_has_dap=no | ||||
# Whether we build/test some functionality depends on what we found in | ||||
# the C library. | ||||
#nc_build_v2=$ac_cv_func_nccreate | ||||
#nc_build_v4=$ac_cv_func_nc_def_opaque | ||||
nc_build_v2=no | nc_build_v2=no | |||
nc_build_v4=no | nc_build_v4=no | |||
nc_has_logging=no | nc_has_logging=no | |||
nc_has_dap=no | nc_has_dap=no | |||
nc_has_parallel=no | ||||
test "x$ac_cv_func_nc_def_opaque" = xyes && nc_build_v4=yes | AC_CHECK_FUNCS([nc_def_opaque],[nc_build_v4=yes],[nc_build_v4=no]) | |||
#test "x$ac_cv_func_nc_def_opaque" = xyes && nc_build_v4=yes | ||||
test "x$ac_cv_func_nccreate" = xyes && nc_build_v2=yes | test "x$ac_cv_func_nccreate" = xyes && nc_build_v2=yes | |||
test "x$ac_cv_func_nc_set_log_level" = xyes && nc_has_logging=yes | test "x$ac_cv_func_nc_set_log_level" = xyes && nc_has_logging=yes | |||
test "x$ac_cv_func_oc_open" = xyes && nc_has_dap=yes | test "x$ac_cv_func_oc_open" = xyes && nc_has_dap=yes | |||
test "x$ac_cv_func_nc_use_parallel_enabled" = xyes && nc_has_parallel=yes | ||||
#AC_CHECK_FUNC([nc_def_opaque],[nc_build_v4=yes]) | ||||
#AC_CHECK_FUNC([nccreate],[nc_build_v2=yes]) | ||||
#AC_CHECK_FUNC([nc_set_log_level],[nc_has_logging=yes]) | ||||
#AC_CHECK_FUNC([oc_open],[nc_has_dap=yes]) | ||||
#AC_CHECK_FUNC([nc_use_parallel_enabled],[nc_has_parallel=yes]) | ||||
if test "x$nc_build_v4" = xyes; then | if test "x$nc_build_v4" = xyes; then | |||
AC_DEFINE([USE_NETCDF4], [1], [if true, build netCDF-4]) | AC_DEFINE([USE_NETCDF4], [1], [if true, build netCDF-4]) | |||
fi | fi | |||
if test "x$nc_has_logging" = xyes; then | ||||
AC_DEFINE([LOGGING], [1], [if true, C library contains logging]) | ||||
fi | ||||
AC_MSG_CHECKING([netCDF logging present]) | ||||
AC_MSG_RESULT([$nc_has_logging]) | ||||
AC_MSG_CHECKING([netCDF v2 API present]) | AC_MSG_CHECKING([netCDF v2 API present]) | |||
AC_MSG_RESULT([$nc_build_v2]) | AC_MSG_RESULT([$nc_build_v2]) | |||
AC_MSG_CHECKING([netCDF-4 present]) | AC_MSG_CHECKING([netCDF-4 present]) | |||
AC_MSG_RESULT([$nc_build_v4]) | AC_MSG_RESULT([$nc_build_v4]) | |||
AC_MSG_CHECKING([whether to test the filter API]) | ||||
AC_ARG_ENABLE([filter-test], | ||||
[AS_HELP_STRING([--enable-filter-test], | ||||
[Run filter tests: requires access to the plugins | ||||
directory in a netcdf-c build.])]) | ||||
test "x$enable_filter_test" = xyes || enable_filter_test=no | ||||
AC_MSG_RESULT($enable_filter_test) | ||||
AM_CONDITIONAL([USE_NETCDF4], [test "x$nc_build_v4" = xyes]) | AM_CONDITIONAL([USE_NETCDF4], [test "x$nc_build_v4" = xyes]) | |||
AM_CONDITIONAL([BUILD_V2], [test "x$nc_build_v2" = xyes]) | AM_CONDITIONAL([BUILD_V2], [test "x$nc_build_v2" = xyes]) | |||
AM_CONDITIONAL([USE_LOGGING], [test "x$nc_has_logging" = xyes]) | AM_CONDITIONAL([USE_LOGGING], [test "x$nc_has_logging" = xyes]) | |||
AM_CONDITIONAL([BUILD_DAP], [test "x$nc_has_dap" = xyes]) | AM_CONDITIONAL([BUILD_DAP], [test "x$nc_has_dap" = xyes]) | |||
AM_CONDITIONAL([BUILD_PARALLEL], [test "x$nc_has_parallel" = xyes]) | AM_CONDITIONAL([BUILD_PNETCDF], [test "x$nc_has_pnetcdf" = xyes]) | |||
AM_CONDITIONAL([BUILD_PARALLEL4], [test "x$nc_has_parallel4" = xyes]) | ||||
AM_CONDITIONAL([BUILD_PARALLEL], [test "x$nc_has_pnetcdf" = xyes -o "x$nc_has_pa | ||||
rallel4" = xyes]) | ||||
AM_CONDITIONAL([TEST_FILTERS], [test "x$enable_filter_test" = xyes]) | ||||
AC_CHECK_HEADER(stdlib.h, ,AC_DEFINE([NO_STDLIB_H], [], [no stdlib.h])) | AC_CHECK_HEADER(stdlib.h, ,AC_DEFINE([NO_STDLIB_H], [], [no stdlib.h])) | |||
AC_CHECK_HEADER(sys/types.h, ,AC_DEFINE([NO_SYS_TYPES_H], [], [no sys_types.h])) | AC_CHECK_HEADER(sys/types.h, ,AC_DEFINE([NO_SYS_TYPES_H], [], [no sys_types.h])) | |||
AC_CHECK_HEADERS([sys/param.h]) | AC_CHECK_HEADERS([sys/param.h]) | |||
#AC_CHECK_HEADERS([locale.h]) | ||||
AC_CHECK_HEADERS([locale.h stdio.h stdarg.h errno.h ctype.h fcntl.h malloc.h std lib.h string.h \ | AC_CHECK_HEADERS([locale.h stdio.h stdarg.h errno.h ctype.h fcntl.h malloc.h std lib.h string.h \ | |||
strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/ resource.h]) | strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/ resource.h]) | |||
AC_HEADER_DIRENT | AC_HEADER_DIRENT | |||
AC_HEADER_STDC | AC_HEADER_STDC | |||
AC_HEADER_SYS_WAIT | AC_HEADER_SYS_WAIT | |||
AC_HEADER_TIME | AC_HEADER_TIME | |||
AC_FUNC_VPRINTF | AC_FUNC_VPRINTF | |||
# Check for <stdbool.h> that conforms to C99 requirements | # Check for <stdbool.h> that conforms to C99 requirements | |||
End of changes. 19 change blocks. | ||||
39 lines changed or deleted | 80 lines changed or added |