Conflicts:
libclamav/Makefile.in
... | ... |
@@ -670,6 +670,8 @@ XML_LIBS |
670 | 670 |
XML_CPPFLAGS |
671 | 671 |
ENABLE_UNRAR_FALSE |
672 | 672 |
ENABLE_UNRAR_TRUE |
673 |
+HAVE_LIBBZ2_FALSE |
|
674 |
+HAVE_LIBBZ2_TRUE |
|
673 | 675 |
LIBBZ2_PREFIX |
674 | 676 |
LTLIBBZ2 |
675 | 677 |
LIBBZ2 |
... | ... |
@@ -16979,6 +16981,15 @@ $as_echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;} |
16979 | 16979 |
fi |
16980 | 16980 |
fi |
16981 | 16981 |
|
16982 |
+ if test "x$HAVE_LIBBZ2" = "xyes"; then |
|
16983 |
+ HAVE_LIBBZ2_TRUE= |
|
16984 |
+ HAVE_LIBBZ2_FALSE='#' |
|
16985 |
+else |
|
16986 |
+ HAVE_LIBBZ2_TRUE='#' |
|
16987 |
+ HAVE_LIBBZ2_FALSE= |
|
16988 |
+fi |
|
16989 |
+ |
|
16990 |
+ |
|
16982 | 16991 |
# Check whether --enable-unrar was given. |
16983 | 16992 |
if test "${enable_unrar+set}" = set; then : |
16984 | 16993 |
enableval=$enable_unrar; want_unrar=$enableval |
... | ... |
@@ -21291,6 +21302,10 @@ if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
21291 | 21291 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
21292 | 21292 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
21293 | 21293 |
fi |
21294 |
+if test -z "${HAVE_LIBBZ2_TRUE}" && test -z "${HAVE_LIBBZ2_FALSE}"; then |
|
21295 |
+ as_fn_error $? "conditional \"HAVE_LIBBZ2\" was never defined. |
|
21296 |
+Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
21297 |
+fi |
|
21294 | 21298 |
if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then |
21295 | 21299 |
as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined. |
21296 | 21300 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
... | ... |
@@ -23899,6 +23914,10 @@ if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23899 | 23899 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
23900 | 23900 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
23901 | 23901 |
fi |
23902 |
+if test -z "${HAVE_LIBBZ2_TRUE}" && test -z "${HAVE_LIBBZ2_FALSE}"; then |
|
23903 |
+ as_fn_error $? "conditional \"HAVE_LIBBZ2\" was never defined. |
|
23904 |
+Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
23905 |
+fi |
|
23902 | 23906 |
if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then |
23903 | 23907 |
as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined. |
23904 | 23908 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
... | ... |
@@ -83,9 +83,9 @@ target_triplet = @target@ |
83 | 83 |
subdir = . |
84 | 84 |
DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ |
85 | 85 |
$(srcdir)/Makefile.in $(srcdir)/clamavcxx-config.h.in \ |
86 |
- $(top_srcdir)/configure config/ar-lib config/compile \ |
|
87 |
- config/config.guess config/config.sub config/depcomp \ |
|
88 |
- config/install-sh config/ltmain.sh config/missing |
|
86 |
+ $(top_srcdir)/configure config/config.guess config/config.sub \ |
|
87 |
+ config/depcomp config/install-sh config/ltmain.sh \ |
|
88 |
+ config/missing |
|
89 | 89 |
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
90 | 90 |
am__aclocal_m4_deps = $(top_srcdir)/m4/check_gnu_make.m4 \ |
91 | 91 |
$(top_srcdir)/m4/cxx_flag_check.m4 $(top_srcdir)/m4/libtool.m4 \ |
... | ... |
@@ -1,14 +1,18 @@ |
1 |
-FILES = clam-v2.rar clam-v3.rar clam.cab clam.exe.bz2 clam.exe clam.zip \ |
|
1 |
+FILES = clam-v2.rar clam-v3.rar clam.cab clam.exe clam.zip \ |
|
2 | 2 |
clam.arj clam.exe.rtf clam.exe.szdd clam.tar.gz clam.chm clam.sis \ |
3 | 3 |
clam-aspack.exe clam-pespin.exe clam-upx.exe clam-fsg.exe clam-mew.exe\ |
4 | 4 |
clam-nsis.exe clam-petite.exe clam-upack.exe clam-wwpack.exe clam.pdf\ |
5 | 5 |
clam.mail clam.ppt clam.tnef clam.ea05.exe clam.ea06.exe clam.d64.zip\ |
6 | 6 |
clam.exe.mbox.base64 clam.exe.mbox.uu clam.exe.binhex clam.ole.doc \ |
7 |
- clam.impl.zip clam.exe.html clam.bz2.zip clam.bin-be.cpio clam.bin-le.cpio \ |
|
7 |
+ clam.impl.zip clam.exe.html clam.bin-be.cpio clam.bin-le.cpio \ |
|
8 | 8 |
clam.newc.cpio clam.odc.cpio clam-yc.exe clam_IScab_int.exe \ |
9 | 9 |
clam_IScab_ext.exe clam_ISmsi_int.exe clam_ISmsi_ext.exe clam.7z \ |
10 | 10 |
clam_cache_emax.tgz clam.iso clamjol.iso |
11 | 11 |
|
12 |
+if HAVE_LIBBZ2 |
|
13 |
+FILES += clam.exe.bz2 clam.bz2.zip |
|
14 |
+endif |
|
15 |
+ |
|
12 | 16 |
SPLIT_DIR=$(top_srcdir)/test/.split |
13 | 17 |
|
14 | 18 |
all: $(FILES) |
... | ... |
@@ -51,6 +51,7 @@ POST_UNINSTALL = : |
51 | 51 |
build_triplet = @build@ |
52 | 52 |
host_triplet = @host@ |
53 | 53 |
target_triplet = @target@ |
54 |
+@HAVE_LIBBZ2_TRUE@am__append_1 = clam.exe.bz2 clam.bz2.zip |
|
54 | 55 |
subdir = test |
55 | 56 |
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
56 | 57 |
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
... | ... |
@@ -252,17 +253,18 @@ target_vendor = @target_vendor@ |
252 | 252 |
top_build_prefix = @top_build_prefix@ |
253 | 253 |
top_builddir = @top_builddir@ |
254 | 254 |
top_srcdir = @top_srcdir@ |
255 |
-FILES = clam-v2.rar clam-v3.rar clam.cab clam.exe.bz2 clam.exe clam.zip \ |
|
256 |
- clam.arj clam.exe.rtf clam.exe.szdd clam.tar.gz clam.chm clam.sis \ |
|
257 |
- clam-aspack.exe clam-pespin.exe clam-upx.exe clam-fsg.exe clam-mew.exe\ |
|
258 |
- clam-nsis.exe clam-petite.exe clam-upack.exe clam-wwpack.exe clam.pdf\ |
|
259 |
- clam.mail clam.ppt clam.tnef clam.ea05.exe clam.ea06.exe clam.d64.zip\ |
|
260 |
- clam.exe.mbox.base64 clam.exe.mbox.uu clam.exe.binhex clam.ole.doc \ |
|
261 |
- clam.impl.zip clam.exe.html clam.bz2.zip clam.bin-be.cpio clam.bin-le.cpio \ |
|
262 |
- clam.newc.cpio clam.odc.cpio clam-yc.exe clam_IScab_int.exe \ |
|
263 |
- clam_IScab_ext.exe clam_ISmsi_int.exe clam_ISmsi_ext.exe clam.7z \ |
|
264 |
- clam_cache_emax.tgz clam.iso clamjol.iso |
|
265 |
- |
|
255 |
+FILES = clam-v2.rar clam-v3.rar clam.cab clam.exe clam.zip clam.arj \ |
|
256 |
+ clam.exe.rtf clam.exe.szdd clam.tar.gz clam.chm clam.sis \ |
|
257 |
+ clam-aspack.exe clam-pespin.exe clam-upx.exe clam-fsg.exe \ |
|
258 |
+ clam-mew.exe clam-nsis.exe clam-petite.exe clam-upack.exe \ |
|
259 |
+ clam-wwpack.exe clam.pdf clam.mail clam.ppt clam.tnef \ |
|
260 |
+ clam.ea05.exe clam.ea06.exe clam.d64.zip clam.exe.mbox.base64 \ |
|
261 |
+ clam.exe.mbox.uu clam.exe.binhex clam.ole.doc clam.impl.zip \ |
|
262 |
+ clam.exe.html clam.bin-be.cpio clam.bin-le.cpio clam.newc.cpio \ |
|
263 |
+ clam.odc.cpio clam-yc.exe clam_IScab_int.exe \ |
|
264 |
+ clam_IScab_ext.exe clam_ISmsi_int.exe clam_ISmsi_ext.exe \ |
|
265 |
+ clam.7z clam_cache_emax.tgz clam.iso clamjol.iso \ |
|
266 |
+ $(am__append_1) |
|
266 | 267 |
SPLIT_DIR = $(top_srcdir)/test/.split |
267 | 268 |
EXTRA_DIST = .split |
268 | 269 |
all: all-am |
... | ... |
@@ -354,7 +354,12 @@ END_TEST |
354 | 354 |
|
355 | 355 |
static char **testfiles = NULL; |
356 | 356 |
static unsigned testfiles_n = 0; |
357 |
+ |
|
358 |
+#if HAVE_LIBBZ2 |
|
357 | 359 |
static const int expected_testfiles = 48; |
360 |
+#else |
|
361 |
+static const int expected_testfiles = 46; |
|
362 |
+#endif |
|
358 | 363 |
|
359 | 364 |
static void init_testfiles(void) |
360 | 365 |
{ |