From 3a018e2d1b57cd25d7c64d4470dc14a26851a239 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Sep 2012 20:04:16 +0000 Subject: only run compression tests if lib was found --- src/main/Makefile.am | 10 ++++++---- 1 file 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 = \ $(top_builddir)/src/main/libextractor.la if HAVE_ZLIB - zlib =-lz +zlib =-lz +TEST_ZLIB = test_gzip endif if HAVE_BZ2 - bz2lib = -lbz2 +bz2lib = -lbz2 +TEST_BZIP2 = test_bzip2 endif libextractor_la_LDFLAGS = \ @@ -99,8 +101,8 @@ check_PROGRAMS = \ test_plugin_load_multi \ test_ipc \ test_file \ - test_gzip \ - test_bzip2 + $(TEST_ZLIB) \ + $(TEST_BZIP2) if ENABLE_TEST_RUN TESTS = $(check_PROGRAMS) -- cgit v1.2.3