From: Juan RP Date: Thu, 5 May 2016 05:55:57 +0000 (+0200) Subject: configure.ac: define HAVE_LZMA_STREAM_ENCODER_MT if it is detected properly. X-Git-Tag: v3.2.1~30^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F700%2Fhead;p=thirdparty%2Flibarchive.git configure.ac: define HAVE_LZMA_STREAM_ENCODER_MT if it is detected properly. ... otherwise HAVE_LZMA_STREAM_ENCODER_MT is undefined and the code for multithreaded xz compression is skipped completely. --- diff --git a/configure.ac b/configure.ac index 1ab54cb1a..cb6943fa7 100644 --- a/configure.ac +++ b/configure.ac @@ -377,6 +377,9 @@ if test "x$with_lzma" != "xno"; then AC_LANG_PROGRAM([[#include ]], [[lzma_stream_encoder_mt(0, 0);]])], [ac_cv_lzma_has_mt=yes], [ac_cv_lzma_has_mt=no])]) + if test "x$ac_cv_lzma_has_mt" != xno; then + AC_DEFINE([HAVE_LZMA_STREAM_ENCODER_MT], [1], [Define to 1 if you have the `lzma_stream_encoder_mt' function.]) + fi fi AC_ARG_WITH([lzo2],