From 406165fcb2a1b3a49983d9e68fcbee9d3640fbea Mon Sep 17 00:00:00 2001 From: Petr Malat Date: Thu, 23 Dec 2021 11:47:04 +0100 Subject: Support libzstd compiled with compressor disabled ZSTD library can be compiled with the compressor disabled, which is handy on space restricted systems as the compressor accounts for more than two thirds of the library size. Detect this case and use libzstd for the decompression only. Compression will be done using zstd binary if it's available. --- build/cmake/config.h.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build') diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 5ddd2f33..ad799c02 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -738,6 +738,10 @@ typedef uint64_t uintmax_t; /* Define to 1 if you have the `zstd' library (-lzstd). */ #cmakedefine HAVE_LIBZSTD 1 +/* Define to 1 if you have the `zstd' library (-lzstd) with compression + support. */ +#cmakedefine HAVE_LIBZSTD_COMPRESSOR 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_LIMITS_H 1 -- cgit v1.2.1