forked from Unidata/netcdf-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Unidata#2171 from DennisHeimbigner/fixmingw.dmh
Support MSYS2/Mingw platform
- Loading branch information
Showing
98 changed files
with
2,071 additions
and
1,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: NetCDF-Build MinGW | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
update: true | ||
install: git mingw-w64-x86_64-toolchain automake libtool autoconf make mingw-w64-x86_64-hdf5 unzip | ||
- name: CI-Build | ||
shell: msys2 {0} | ||
run: | | ||
echo 'Running in MSYS2!' | ||
set -e | ||
pwd | ||
git clone --single-branch --branch moreosfixes.tmp https://github.com/DennisHeimbigner/netcdf-c.git | ||
cd netcdf-c | ||
autoreconf -i --force | ||
./configure --prefix=/builddir -enable-shared --disable-static --disable-plugins --disable-logging --disable-dap-remote-tests --disable-byterange | ||
make -j LDFLAGS="-no-undefined -Wl,--export-all-symbols" | ||
make check | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
AC_PREREQ([2.59]) | ||
|
||
# Initialize with name, version, and support email address. | ||
AC_INIT([netCDF], [4.8.2-development], [[email protected]], [netcdf-c]) | ||
AC_INIT([netCDF],[4.8.2-development],[[email protected]],[netcdf-c]) | ||
|
||
## | ||
# Prefer an empty CFLAGS variable instead of the default -g -O2. | ||
|
@@ -93,6 +93,19 @@ AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects]) | |
# Check for the existence of this file before proceeding. | ||
AC_CONFIG_SRCDIR([include/netcdf.h]) | ||
|
||
# Figure out platforms of special interest | ||
case "`uname`" in | ||
CYGWIN*) ISCYGWIN=yes;; | ||
Darwin*) ISOSX=yes;; | ||
WIN*) ISMSVC=yes;; | ||
MINGW*) ISMINGW=yes;; | ||
esac | ||
|
||
if test "x$MSYSTEM" != x ; then | ||
ISMINGW=yes | ||
ISMSYS=yes | ||
fi | ||
|
||
AC_MSG_NOTICE([checking supported formats]) | ||
|
||
# An explicit disable of netcdf-4 | netcdf4 is treated as if it was disable-hdf5 | ||
|
@@ -521,7 +534,6 @@ CFLAGS="$SAVECFLAGS" | |
|
||
# --enable-dap => enable-dap4 | ||
enable_dap4=$enable_dap | ||
# Default is to do the short remote tests. | ||
AC_MSG_CHECKING([whether dap remote testing should be enabled]) | ||
AC_ARG_ENABLE([dap-remote-tests], | ||
[AS_HELP_STRING([--enable-dap-remote-tests], | ||
|
@@ -1180,14 +1192,23 @@ fi | |
AC_MSG_CHECKING([whether dynamically loaded plugins is enabled]) | ||
AC_ARG_ENABLE([plugins], | ||
[AS_HELP_STRING([--disable-plugins], | ||
[allow dynamically loaded plugins])]) | ||
if test "x$have_libdld" = xno ; then enable_plugins=no; fi | ||
[disallow dynamically loaded plugins])]) | ||
test "x$enable_plugins" = xno || enable_plugins=yes | ||
AC_MSG_RESULT($enable_plugins) | ||
AC_MSG_RESULT([$enable_plugins]) | ||
if test "x$have_libdld" = xno && test "x$ISMSVC" = xno; then | ||
enable_plugins=no | ||
AC_MSG_WARN([libdld required for enable-plugins.]) | ||
fi | ||
if test "x$enable_plugins" = xyes && test "x$enable_shared" = xno; then | ||
AC_MSG_WARN([--disable-shared => --disable-plugins]) | ||
enable_plugins=no | ||
fi | ||
|
||
if test "x$enable_plugins" = xyes; then | ||
AC_DEFINE([ENABLE_PLUGINS], [1], [if true, support dynamically loaded plugins]) | ||
fi | ||
AM_CONDITIONAL(ENABLE_PLUGINS, [test "x$enable_plugins" = xyes]) | ||
AC_SUBST(USEPLUGINS, [${enable_plugins}]) | ||
|
||
AC_FUNC_ALLOCA | ||
AC_CHECK_DECLS([isnan, isinf, isfinite],,,[#include <math.h>]) | ||
|
@@ -1199,22 +1220,26 @@ AC_TYPE_UINTPTR_T | |
AC_C_CHAR_UNSIGNED | ||
AC_C_BIGENDIAN | ||
|
||
# Figure out platforms of special interest | ||
case "`uname`" in | ||
CYGWIN*) ISCYGWIN=yes;; | ||
Darwin*) ISOSX=yes;; | ||
WIN*) ISMSVC=yes;; | ||
MINGW*) ISMINGW=yes;; | ||
esac | ||
AM_CONDITIONAL(ISCYGWIN, [test "x$ISCYGWIN" = xyes]) | ||
AM_CONDITIONAL(ISMSVC, [test "x$ISMSVC" = xyes]) | ||
AM_CONDITIONAL(ISOSX, [test "x$ISOSX" = xyes]) | ||
AM_CONDITIONAL(ISMINGW, [test "x$ISMINGW" = xyes]) | ||
AM_CONDITIONAL(ISMSYS, [test "x$ISMSYS" = xyes]) | ||
|
||
AC_SUBST([ISMSVC], [${ISMSVC}]) | ||
AC_SUBST([ISCYGWIN], [${ISCYGWIN}]) | ||
AC_SUBST([ISOSX], [${ISOSX}]) | ||
AC_SUBST([ISMINGW], [${ISMINGW}]) | ||
AC_SUBST([ISMSYS], [${ISMSYS}]) | ||
|
||
if test "x$ISMSVC" != x ; then REGEDIT=yes; fi | ||
if test "x$ISMSYS" != x ; then REGEDIT=yes; fi | ||
if test "x$ISCYGWIN" != x ; then REGEDIT=yes; fi | ||
if test "x$REGEDIT" = xyes; then | ||
AC_DEFINE([REGEDIT], 1, [dreg.c usable]) | ||
fi | ||
AM_CONDITIONAL(REGEDIT, [test "x$REGEDIT" = xyes]) | ||
AC_SUBST([ISREGEDIT], [yes]) | ||
|
||
### | ||
# Crude hack to work around an issue | ||
|
@@ -1594,9 +1619,6 @@ AC_ARG_ENABLE([nczarr-filters], [AS_HELP_STRING([--disable-nczarr-filters], | |
[disable NCZarr filters])]) | ||
test "x$enable_nczarr_filters" = xno || enable_nczarr_filters=yes | ||
AC_MSG_RESULT([$enable_nczarr_filters]) | ||
if test "x$enable_nczarr_filters" = xyes; then | ||
AC_DEFINE([ENABLE_NCZARR_FILTERS], [1], [if true, enable NCZarr filters]) | ||
fi | ||
|
||
# Control filter test/example | ||
AC_MSG_CHECKING([whether filter testing should be run]) | ||
|
@@ -1606,19 +1628,24 @@ AC_ARG_ENABLE([filter-testing], | |
test "x$enable_filter_testing" = xno || enable_filter_testing=yes | ||
AC_MSG_RESULT($enable_filter_testing) | ||
|
||
if test "x$enable_nczarr" = xno ; then | ||
# Apply constraints | ||
if test "x$enable_plugins" = xno ; then | ||
AC_MSG_WARN([--disable-plugins => --disable-nczarr-filters]) | ||
enable_nczarr_filters=no | ||
fi | ||
|
||
if test "x$enable_hdf5" = xno && test "x$enable_nczarr" = xno ; then | ||
AC_MSG_WARN([HDF5 and NCZarr are disabled => --disable-filter-testing]) | ||
if test "x$enable_plugins" = xno ; then | ||
AC_MSG_WARN([--disable-plugins => --disable-filter-testing]) | ||
enable_filter_testing=no | ||
fi | ||
|
||
if test "x$enable_shared" = xno ; then | ||
AC_MSG_WARN([Shared libraries are disabled => --disable-filter-testing]) | ||
enable_filter_testing=no | ||
enable_nczarr_filters=no | ||
if test "x$enable_filter_testing" = xno; then | ||
AC_MSG_WARN([--disable-filter-testing => --disable-nczarr-filter-testing]) | ||
enable_nczarr_filter_testing=no | ||
fi | ||
|
||
if test "x$enable_nczarr_filters" = xyes; then | ||
AC_DEFINE([ENABLE_NCZARR_FILTERS], [1], [if true, enable NCZarr filters]) | ||
fi | ||
|
||
# Client side filter registration is permanently disabled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.