summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2016-06-22 23:03:43 +0200
committerJoerg Sonnenberger <joerg@bec.de>2016-06-22 23:03:43 +0200
commit7c3148ec0a2fed4834c6f9869ff7d2da77ba804c (patch)
treee03ce027293a8d0110ff47332516f6d527e58eed /configure.ac
parentac10fafa54743ee8f17a61892158bfd67f877e99 (diff)
downloadlibarchive-7c3148ec0a2fed4834c6f9869ff7d2da77ba804c.tar.gz
Ignore the MT encoder in XZ 5.2 prerelease versions.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 64775fa6..4f7f432a 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 <lzma.h>]],
+ [AC_LINK_IFELSE([
+ AC_LANG_PROGRAM([[#include <lzma.h>]
+ [#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