Skip to content

Commit

Permalink
Enable szip by default in Autotools (#3412)
Browse files Browse the repository at this point in the history
Since libaec is so prevalent and BSD-licensed for both encode and
decode, we build the szip filter by default when the szip or aec
libraries are found.
  • Loading branch information
derobins authored Aug 23, 2023
1 parent f61522e commit 81fc47c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ AC_ARG_WITH([fnord],
## ----------------------------------------------------------------------
## Make the external filters list available to *.in files
## At this point it's unset (no external filters by default) but it
## will be filled in during the deflate (zlib) and szip processing
## will be filled in during the deflate/zlib and szip/libaec processing
## below.
##
AC_SUBST([EXTERNAL_FILTERS])
Expand Down Expand Up @@ -1666,13 +1666,18 @@ fi
## command-line switch. The value is an include path and/or a library path.
## If the library path is specified then it must be preceded by a comma.
##
## libaec also implements Space Data System Standard 121.0-B-2 and has
## an szip compatibility header. Since the AEC library is BSD licensed
## for both encoding and decoding, we now build with the filter enabled
## by default when the library is found.
##
AC_SUBST([LL_PATH])
AC_SUBST([USE_FILTER_SZIP]) USE_FILTER_SZIP="no"
AC_ARG_WITH([szlib],
[AS_HELP_STRING([--with-szlib=DIR],
[Use szlib library for external szlib I/O
filter [default=no]])],,
[withval=no])
filter [default=yes]])],,
[withval=yes])

case "X-$withval" in
X-yes)
Expand Down
6 changes: 6 additions & 0 deletions release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ New Features

Configuration:
-------------
- Autotools builds now build the szip filter by default when an appropriate
library is found

Since libaec is prevalent and BSD-licensed for both encoding and
decoding, we build the szip filter by default now.

- Removed CMake cross-compiling variables

* HDF5_USE_PREGEN
Expand Down

0 comments on commit 81fc47c

Please sign in to comment.