summaryrefslogtreecommitdiffstats
path: root/make/configure.py
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-05-29 12:50:22 -0700
committerJohn Stebbins <[email protected]>2018-05-29 14:29:29 -0700
commite52abd8813732080752eff10e4762e47ddca037c (patch)
tree9a5ee6381db0b113fe29d72ad12840135086a619 /make/configure.py
parentf314b7673fcd0d95a30d10e5f1e5b32bebbad092 (diff)
contrib: add lzma support
lzma may be used by the ffmpeg tiff decoder which can be used in matroska files.
Diffstat (limited to 'make/configure.py')
-rw-r--r--make/configure.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/make/configure.py b/make/configure.py
index 99c9a5f49..532c9ee1a 100644
--- a/make/configure.py
+++ b/make/configure.py
@@ -1686,6 +1686,18 @@ int main ()
libz = LDProbe( 'static zlib', '%s -static' % Tools.gcc.pathname, '-lz', libz_test )
libz.run()
+ xz_test = """
+#include <stdio.h>
+#include <lzma.h>
+int main ()
+{
+ lzma_stream_decoder(NULL, 0, 0);
+ return 0;
+}
+"""
+ xz = LDProbe( 'static xz', '%s -static' % Tools.gcc.pathname, '-llzma', xz_test )
+ xz.run()
+
iconv_test = """
#include <stdio.h>
#include <iconv.h>
@@ -1893,6 +1905,8 @@ int main()
doc.add( 'HAS.bz2', 1 )
if not libz.fail:
doc.add( 'HAS.libz', 1 )
+ if not xz.fail:
+ doc.add( 'HAS.xz', 1 )
if not iconv.fail:
doc.add( 'HAS.iconv', 1 )
if not regex.fail: