From f3138be38681ab98b947c5e7d4e8fd9392276049 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 18 Mar 2020 22:47:15 +0100 Subject: Set a minimal libzstd version in autoconf script Version 1.3.1 is the first one which has fixed error codes exposed through the public API, which are used in the zstd compressor to determine whether compression *actually* failed or if the destination buffer was too small. Signed-off-by: David Oberhollenzer --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5cd7ef1..617c9d2 100644 --- a/configure.ac +++ b/configure.ac @@ -157,7 +157,7 @@ AS_IF([test "x$with_lz4" != "xno" -a "x$with_builtin_lz4" != "xyes"], [ AS_IF([test "x$with_builtin_lz4" != "xno"], [with_lz4="yes"], []) AS_IF([test "x$with_zstd" != "xno"], [ - PKG_CHECK_MODULES(ZSTD, [libzstd], [with_zstd="yes"], + PKG_CHECK_MODULES(ZSTD, [libzstd >= 1.3.1], [with_zstd="yes"], [AS_IF([test "x$with_zstd" = "xyes"], [AC_MSG_ERROR([cannot find zstd])], [with_zstd="no"])]) -- cgit v1.2.3