aboutsummaryrefslogtreecommitdiff
path: root/config/zstd.m4
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@arm.com>2022-11-04 11:06:47 +0100
committerChristophe Lyon <christophe.lyon@arm.com>2022-11-07 14:32:10 +0100
commit200164d46732f6a2fb9d81aa9650c006db4148e6 (patch)
tree2ba277c8d3c5b8e708bfd1dc243a63518cf61511 /config/zstd.m4
parent8bfb6941c358ee2da8320125644c59bf90842f6b (diff)
downloadbinutils-200164d46732f6a2fb9d81aa9650c006db4148e6.zip
binutils-200164d46732f6a2fb9d81aa9650c006db4148e6.tar.gz
binutils-200164d46732f6a2fb9d81aa9650c006db4148e6.tar.bz2
configure: require libzstd >= 1.4.0
gas uses ZSTD_compressStream2 which is only available with libzstd >= 1.4.0, leading to build errors when an older version is installed. This patch updates the check libzstd presence to check its version is >= 1.4.0. However, since gas seems to be the only component requiring such a recent version this may imply that we disable ZSTD support for all components although some would still benefit from an older version. I ran 'autoreconf -f' in all directories containing a configure.ac file, using vanilla autoconf-2.69 and automake-1.15.1. I noticed several errors from autoheader in readline, as well as warnings in intl, but they are unrelated to this patch. This should fix some of the buildbots. OK for trunk? Thanks, Christophe
Diffstat (limited to 'config/zstd.m4')
-rw-r--r--config/zstd.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/zstd.m4 b/config/zstd.m4
index 6da4db6..eb34c0f 100644
--- a/config/zstd.m4
+++ b/config/zstd.m4
@@ -12,7 +12,7 @@ AC_ARG_WITH(zstd,
[], [with_zstd=auto])
AS_IF([test "$with_zstd" != no],
- [PKG_CHECK_MODULES(ZSTD, [libzstd], [
+ [PKG_CHECK_MODULES(ZSTD, [libzstd >= 1.4.0], [
AC_DEFINE(HAVE_ZSTD, 1, [Define to 1 if zstd is enabled.])
], [
if test "$with_zstd" = yes; then