From b52a9567520570bd6c850bcad3a6966f68639ef7 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 17 Sep 2020 13:09:06 +0200 Subject: Add a check whether libzstd supports stream compression Streaming compression was added fairly recently to zstd (and then the API was changed a few times). Rather than rely on libzstd versioning macros, this commit adds an m4 script to test at configure time if the enums/functions we need are available by trying to compile a small sample. Signed-off-by: David Oberhollenzer --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3de1109..70a1dfd 100644 --- a/configure.ac +++ b/configure.ac @@ -182,6 +182,8 @@ AS_IF([test "x$with_zstd" != "xno"], [ [with_zstd="no"])]) ], []) +AS_IF([test "x$with_zstd" != "xno"], [AC_TEST_ZSTD_STREAM], []) + AS_IF([test "x$with_selinux" != "xno"], [ have_selinux="yes" -- cgit v1.2.3