From: Joerg Sonnenberger Date: Wed, 22 Jun 2016 21:03:43 +0000 (+0200) Subject: Ignore the MT encoder in XZ 5.2 prerelease versions. X-Git-Tag: v3.2.2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c3148ec0a2fed4834c6f9869ff7d2da77ba804c;p=thirdparty%2Flibarchive.git Ignore the MT encoder in XZ 5.2 prerelease versions. --- diff --git a/configure.ac b/configure.ac index 64775fa63..4f7f432ab 100644 --- a/configure.ac +++ b/configure.ac @@ -374,8 +374,11 @@ if test "x$with_lzma" != "xno"; then AC_CACHE_CHECK( [whether we have multithread support in lzma], ac_cv_lzma_has_mt, - [AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[#include ]], + [AC_LINK_IFELSE([ + AC_LANG_PROGRAM([[#include ] + [#if LZMA_VERSION < 50020000] + [#error unsupported] + [#endif]], [[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