Commit Graph

1043 Commits

Author SHA1 Message Date
Ward Fisher
effdd8a3a2 Add compiler flag to fix infinities issue with intel compilers. 2024-06-12 10:42:48 -06:00
Ward Fisher
6abcddbb43
Merge pull request #2931 from DennisHeimbigner/loglevel.dmh
Cleanup handling of NETCDF_ENABLE_SET_LOG_LEVEL and NETCDF_ENABLE_SET_LOG_LEVEL_FUNC
2024-06-07 12:58:44 -05:00
Ward Fisher
8af3891c86 Remove redunandant option. 2024-06-06 15:12:23 -06:00
Ward Fisher
cb321fa0db Fix a few issues related to detection of libhdf4. 2024-06-04 16:15:49 -06:00
Dennis Heimbigner
fd637fd460 Cleanup handling of NETCDF_ENABLE_SET_LOG_LEVEL and NETCDF_ENABLE_SET_LOG_LEVEL_FUNC
The NETCDF_ENABLE_SET_LOG_LEVEL_FUNC option is apparently not used, but
is effectively used to set NETCDF_ENABLE_SET_LOG_LEVEL.
This is not clear from the build files CMakeLists.txt and configure.ac.
So this PR cleanups the code to make it more clear what is going on.
2024-05-24 16:48:04 -06:00
Dennis Heimbigner
f0f0f39950 Cleanup various Zarr-related build issues
# Description
Remove various obsolete build options. Also do some code movement.

## Specific Changes

* The remotetest server is sometimes unstable, so provide a mechanism
  to force disabling calls to remotetest.unidata.ucar.edu.
  This is enabled by adding a repository variable named
  REMOTETESTDOWN with the value "yes".
* Fix CMakeLists.txt to use the uname command as an alternate
  to using the hostname command (which does not work under cygwin).
* Remove the JNA stuff as obsolete
* Remove the ENABLE_CLIENTSIDE_FILTERS options since it has been
  disabled for a while.
* Fix bad option flag in some github action .yml files: change --disable-xml2 to --disable-libxml2
* Collect globalstate definitions into nc4internal.h
* Remove ENABLE_NCZARR_FILTERS_TESTING option as obsolete and replace
  with ENABLE_NCZARR_FILTERS
* Move some dispatcher independent functions from libsrc4/nc4internal.c to libdispatch/ddispatch.c
* As a long term goal, and because it is now the case that --enable-nczarr
    => USE_NETCDF4, make the external options --enable-netcdf-4 and
    --enable-netcdf4 obsolete in favor of --enable-hdf5
    We will do the following for one more release cycle.
        1. Make --enable-netcdf-4 be an alias for --enable-netcdf4.
        2. Make --enable-netcdf4 an alias for --enable-hdf5.
        3. Internally, convert most uses of USE_NETCDF_4 ad USE_NETCDF4 to USE_HDF5
    After the next release, --enable-netcdf-4 and --enable-netcdf4 will
    be removed.
2024-05-15 18:46:25 -06:00
Dennis Heimbigner
69ed78e7d7 Convert the ENABLE_XXX options to NETCDF_ENABLE_XXX options
# Primary Change
In order to conform to the cmake overhaul, occurrences of
ENABLE_XXX options in the nczarr code have been changed to
NETCDF_ENABLE_XXX.

# Misc. Other changes
* Fix use of rand_s in libdispatch/ncrandom.c
* Fix some bugs in the mingw gitub action.
* Fix signature bug in libncpoco/cp_win32.c
* Make some NCZarr fixes to config.h.cmake.in
2024-05-11 16:23:40 -06:00
Ward Fisher
ebd3f36a9a Modify CMakeLists.txt to honor CMAKE_INSTALL_MANDIR in support of https://github.com/Unidata/netcdf-c/issues/2920. 2024-05-07 16:46:43 -06:00
مهدي شينون (Mehdi Chinoune)
8d6ba9ffcb
CMake: Enable plugins on MinGW 2024-05-01 11:02:04 +01:00
Ward Fisher
610afe8c2c Correct typo. 2024-04-08 11:51:52 -06:00
Ward Fisher
2798948670 Remove check for libcurl unless it is necessary for required functionality. 2024-04-08 10:34:22 -06:00
Ward Fisher
cdd9cbb83c Merging current main development branch, changing option name to include
NETCDF_ prefix. Thanks!

Merge remote-tracking branch 'upstream/main' into cmake-ncgen-generate
2024-03-21 14:08:12 -06:00
Ward Fisher
37e6b92703
Merge pull request #2895 from K20shores/prefix_options
Prefix all options with NETCDF_
2024-03-20 12:07:23 -06:00
Ward Fisher
ab2adc68da A bit of cleanup for now, more to follow, but moving on to other roadblocks. 2024-03-20 11:25:36 -06:00
Ward Fisher
43573c5669 Comment out debugging messages, will remove before final merge. Clean up the logic, remove some rough edges. 2024-03-19 16:36:20 -06:00
Ward Fisher
67609b0965 Add a filter to process options and report deprecation warning. 2024-03-19 16:30:47 -06:00
Kyle Shores
5097e2ed9e adding deprecation error for usage of NETCDF_ENABLE_NETCDF4 2024-03-19 11:58:03 -05:00
Kyle Shores
449c0e3f97 removing cmake alias variable for netcdf4 2024-03-19 11:54:54 -05:00
Kyle Shores
adc82f5d1d replacing something that removes semicolons 2024-03-19 09:36:54 -05:00
Kyle Shores
9be78dc53a Replacing NC_USE_STATIC_CRT with NETCDF_USE_STATIC_CRT 2024-03-18 15:57:34 -05:00
Kyle Shores
345e4462e3 Replace NC_FIND_SHARED_LIBS with NETCDF_FIND_SHARED_LIBS 2024-03-18 15:55:25 -05:00
Kyle Shores
d9bdb5cf86 Replace ENABLE_XGETOPT with NETCDF_ENABLE_XGETOPT 2024-03-18 15:55:04 -05:00
Kyle Shores
ff1307b62d Replace ENABLE_UNIT_TESTS with NETCDF_ENABLE_UNIT_TESTS 2024-03-18 15:54:51 -05:00
Kyle Shores
a82659b0e9 Replace ENABLE_TESTS with NETCDF_ENABLE_TESTS 2024-03-18 15:54:48 -05:00
Kyle Shores
6c652a6495 Replace ENABLE_STRICT_NULL_BYTE_HEADER_PADDING with NETCDF_ENABLE_STRICT_NULL_BYTE_HEADER_PADDING 2024-03-18 15:54:29 -05:00
Kyle Shores
b2fabc2d7a Replace ENABLE_STDIO with NETCDF_ENABLE_STDIO 2024-03-18 15:54:26 -05:00
Kyle Shores
eaff8289fc Replace ENABLE_SHARED_LIBRARY_VERSION with NETCDF_ENABLE_SHARED_LIBRARY_VERSION 2024-03-18 15:54:23 -05:00
Kyle Shores
e5ee259288 Replace ENABLE_SET_LOG_LEVEL_FUNC with NETCDF_ENABLE_SET_LOG_LEVEL_FUNC 2024-03-18 15:54:20 -05:00
Kyle Shores
8fd6dcb979 Replace ENABLE_S3 with NETCDF_ENABLE_S3 2024-03-18 15:54:15 -05:00
Kyle Shores
78fb3dcf37 Replace ENABLE_REMOTE_FUNCTIONALITY with NETCDF_ENABLE_REMOTE_FUNCTIONALITY 2024-03-18 15:54:12 -05:00
Kyle Shores
85f697868c Replace ENABLE_QUANTIZE with NETCDF_ENABLE_QUANTIZE 2024-03-18 15:54:07 -05:00
Kyle Shores
dba34ac5c2 Replace ENABLE_PNETCDF with NETCDF_ENABLE_PNETCDF 2024-03-18 15:54:02 -05:00
Kyle Shores
44778e52bf Replace ENABLE_PLUGINS with NETCDF_ENABLE_PLUGINS 2024-03-18 15:53:59 -05:00
Kyle Shores
f54f42db62 Replace ENABLE_PARALLEL_TESTS with NETCDF_ENABLE_PARALLEL_TESTS 2024-03-18 15:53:56 -05:00
Kyle Shores
2baf0ba862 Replace ENABLE_PARALLEL4 with NETCDF_ENABLE_PARALLEL4 2024-03-18 15:53:49 -05:00
Kyle Shores
1ada3f6717 Replace ENABLE_NETCDF_4 with NETCDF_ENABLE_NETCDF_4 2024-03-18 15:53:46 -05:00
Kyle Shores
b51234b06a Replace ENABLE_NETCDF4 with NETCDF_ENABLE_NETCDF4 2024-03-18 15:52:21 -05:00
Kyle Shores
d1334f7b88 Replace ENABLE_NCZARR with NETCDF_ENABLE_NCZARR 2024-03-18 15:52:19 -05:00
Kyle Shores
7f8ad2c250 Replace ENABLE_MMAP with NETCDF_ENABLE_MMAP 2024-03-18 15:52:17 -05:00
Kyle Shores
c6d35cf7e2 Replace ENABLE_METADATA_PERF_TESTS with NETCDF_ENABLE_METADATA_PERF_TESTS 2024-03-18 15:52:13 -05:00
Kyle Shores
dcdff98109 Replace ENABLE_LOGGING with NETCDF_ENABLE_LOGGING 2024-03-18 15:52:11 -05:00
Kyle Shores
9584b4fa3b Replace ENABLE_LIBXML2 with NETCDF_ENABLE_LIBXML2 2024-03-18 15:52:09 -05:00
Kyle Shores
ba2cf68597 Replace ENABLE_LARGE_FILE_TESTS with NETCDF_ENABLE_LARGE_FILE_TESTS 2024-03-18 15:52:07 -05:00
Kyle Shores
57600055d0 Replace ENABLE_LARGE_FILE_SUPPORT with NETCDF_ENABLE_LARGE_FILE_SUPPORT 2024-03-18 15:52:06 -05:00
Kyle Shores
39a04033d3 Replace ENABLE_INTERNAL_DOCS with NETCDF_ENABLE_INTERNAL_DOCS 2024-03-18 15:52:04 -05:00
Kyle Shores
c5f24df396 Replace ENABLE_HDF5 with NETCDF_ENABLE_HDF5 2024-03-18 15:52:02 -05:00
Kyle Shores
376f6b8314 Replace ENABLE_HDF4 with NETCDF_ENABLE_HDF4 2024-03-18 15:52:00 -05:00
Kyle Shores
e9f700befc Replace ENABLE_FSYNC with NETCDF_ENABLE_FSYNC 2024-03-18 15:51:59 -05:00
Kyle Shores
37ed3708c0 Replace ENABLE_FILTER_ZSTD with NETCDF_ENABLE_FILTER_ZSTD 2024-03-18 15:51:57 -05:00
Kyle Shores
0535edd9c1 Replace ENABLE_FILTER_TESTING with NETCDF_ENABLE_FILTER_TESTING 2024-03-18 15:51:55 -05:00