about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-02-10T02·57-0600
committerWill Dietz <w@wdtz.org>2018-02-10T03·02-0600
commit5a082ad15a0f46dc1cbfd8aa5cb3ad9d94b5f178 (patch)
treede60f50719c3fd824e8dee3acb0dc7481ca786ec /configure.ac
parent960e9c560e335c65d378805fdb2594e7079a0c45 (diff)
configure.ac: check if lzma has MT support, fix deb build/etc.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 83b2346d065c..c7498fb5240f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,6 +175,8 @@ AC_SUBST(HAVE_SODIUM, [$have_sodium])
 
 # Look for liblzma, a required dependency.
 PKG_CHECK_MODULES([LIBLZMA], [liblzma], [CXXFLAGS="$LIBLZMA_CFLAGS $CXXFLAGS"])
+AC_CHECK_LIB([lzma], [lzma_stream_encoder_mt],
+  [AC_DEFINE([HAVE_LZMA_MT], [1], [xz multithreaded compression support])])
 
 
 # Look for libbrotli{enc,dec}, optional dependencies