]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge LZMA MP detection from configure.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Jul 2016 08:44:03 +0000 (10:44 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Jul 2016 08:44:03 +0000 (10:44 +0200)
CMakeLists.txt
build/cmake/config.h.in

index 648b3341c8f6ba1fe4ecce37974be84ac6bb9e92..f5917fbae06d8214f089b50bf7c413ddf5ff4052 100644 (file)
@@ -1303,6 +1303,10 @@ CHECK_C_SOURCE_COMPILES(
   "#include <sys/sysmacros.h>\nint main() { return major(256); }"
   MAJOR_IN_SYSMACROS)
 
+CHECK_C_SOURCE_COMPILES(
+  "#include <lzma.h>\n#if LZMA_VERSION < 50020000\n#error unsupported\n#endif\nint main(void){lzma_stream_encoder_mt(0, 0); return 0;}"
+  HAVE_LZMA_STREAM_ENCODER_MT)
+
 IF(HAVE_STRERROR_R)
   SET(HAVE_DECL_STRERROR_R 1)
 ENDIF(HAVE_STRERROR_R)
index dccc3023cd06c499550088f28df6c091e8007280..e6a9c517573e56869663f47c36860ef36461a2c6 100644 (file)
@@ -721,6 +721,9 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the <lzma.h> header file. */
 #cmakedefine HAVE_LZMA_H 1
 
+/* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
+#cmakedefine HAVE_LZMA_STREAM_ENCODER_MT 1
+
 /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
 #cmakedefine HAVE_LZO_LZO1X_H 1