diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-22 20:04:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-22 20:04:16 +0000 |
commit | 3a018e2d1b57cd25d7c64d4470dc14a26851a239 (patch) | |
tree | 865aaae8706c6fbd7d7abb7f1c53d62ace2eb1d9 | |
parent | bfe7656c6e8c9cf666270d77dc91bad5135292a0 (diff) | |
download | libextractor-3a018e2d1b57cd25d7c64d4470dc14a26851a239.tar.gz libextractor-3a018e2d1b57cd25d7c64d4470dc14a26851a239.zip |
only run compression tests if lib was found
-rw-r--r-- | src/main/Makefile.am | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/Makefile.am b/src/main/Makefile.am index 4508097..3db2e69 100644 --- a/src/main/Makefile.am +++ b/src/main/Makefile.am | |||
@@ -19,10 +19,12 @@ extract_LDADD = \ | |||
19 | $(top_builddir)/src/main/libextractor.la | 19 | $(top_builddir)/src/main/libextractor.la |
20 | 20 | ||
21 | if HAVE_ZLIB | 21 | if HAVE_ZLIB |
22 | zlib =-lz | 22 | zlib =-lz |
23 | TEST_ZLIB = test_gzip | ||
23 | endif | 24 | endif |
24 | if HAVE_BZ2 | 25 | if HAVE_BZ2 |
25 | bz2lib = -lbz2 | 26 | bz2lib = -lbz2 |
27 | TEST_BZIP2 = test_bzip2 | ||
26 | endif | 28 | endif |
27 | 29 | ||
28 | libextractor_la_LDFLAGS = \ | 30 | libextractor_la_LDFLAGS = \ |
@@ -99,8 +101,8 @@ check_PROGRAMS = \ | |||
99 | test_plugin_load_multi \ | 101 | test_plugin_load_multi \ |
100 | test_ipc \ | 102 | test_ipc \ |
101 | test_file \ | 103 | test_file \ |
102 | test_gzip \ | 104 | $(TEST_ZLIB) \ |
103 | test_bzip2 | 105 | $(TEST_BZIP2) |
104 | 106 | ||
105 | if ENABLE_TEST_RUN | 107 | if ENABLE_TEST_RUN |
106 | TESTS = $(check_PROGRAMS) | 108 | TESTS = $(check_PROGRAMS) |