Browse code

clamonacc - make curl version configure error message more verbose; remove Makefile artifact from merge conflict which broke auto configure logic

Mickey Sola authored on 2019/08/01 03:47:55
Showing 5 changed files
... ...
@@ -20,7 +20,7 @@
20 20
 
21 21
 ACLOCAL_AMFLAGS=-I m4
22 22
 
23
-SUBDIRS = libltdl libclamav libfreshclam clamscan clamd clamdscan clamonacc freshclam sigtool clamconf database docs etc clamav-milter test clamdtop clambc unit_tests
23
+SUBDIRS = libltdl libclamav libfreshclam clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test clamdtop clambc unit_tests
24 24
 EXTRA_DIST = examples shared libclamav.pc.in COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.YARA COPYING.pcre platform.h.in libclamunrar libclamunrar_iface libclammspack clamdscan/clamdscan.map win32 ChangeLog.md INSTALL.md NEWS.md README.md
25 25
 
26 26
 bin_SCRIPTS=clamav-config
... ...
@@ -297,8 +297,8 @@ ETAGS = etags
297 297
 CTAGS = ctags
298 298
 CSCOPE = cscope
299 299
 DIST_SUBDIRS = libltdl libclamav libfreshclam clamscan clamd clamdscan \
300
-	clamonacc freshclam sigtool clamconf database docs etc \
301
-	clamav-milter test clamdtop clambc unit_tests clamsubmit fuzz
300
+	freshclam sigtool clamconf database docs etc clamav-milter \
301
+	test clamdtop clambc unit_tests clamonacc clamsubmit fuzz
302 302
 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
303 303
 	$(srcdir)/clamav-config.in $(srcdir)/clamav-types.h.in \
304 304
 	$(srcdir)/libclamav.pc.in $(srcdir)/platform.h.in \
... ...
@@ -619,8 +619,8 @@ top_builddir = @top_builddir@
619 619
 top_srcdir = @top_srcdir@
620 620
 ACLOCAL_AMFLAGS = -I m4
621 621
 SUBDIRS = libltdl libclamav libfreshclam clamscan clamd clamdscan \
622
-	clamonacc freshclam sigtool clamconf database docs etc \
623
-	clamav-milter test clamdtop clambc unit_tests $(am__append_1) \
622
+	freshclam sigtool clamconf database docs etc clamav-milter \
623
+	test clamdtop clambc unit_tests $(am__append_1) \
624 624
 	$(am__append_2) $(am__append_3)
625 625
 EXTRA_DIST = examples shared libclamav.pc.in COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.YARA COPYING.pcre platform.h.in libclamunrar libclamunrar_iface libclammspack clamdscan/clamdscan.map win32 ChangeLog.md INSTALL.md NEWS.md README.md
626 626
 bin_SCRIPTS = clamav-config
... ...
@@ -29188,7 +29188,7 @@ fi
29188 29188
                       if test $curl_version -ge 470272 ; then
29189 29189
                         $enable_clamonacc="yes"
29190 29190
                     else
29191
-                        as_fn_error $? "Your libcurl (e.g. libcurl-devel) is too old. ClamAV (with clamonacc) requires libcurl 7.45 or higher." "$LINENO" 5
29191
+                        as_fn_error $? "Your libcurl (e.g. libcurl-devel) is too old. Installing ClamAV with clamonacc requires libcurl 7.45 or higher. For a quick fix, run ./configure again with --disable-clamonacc if you do not wish to use on-access scanning features. For more information on ClamAV's on-access scanner, please read our documentation: https://www.clamav.net/documents/on-access-scanning#on-access-scanning" "$LINENO" 5
29192 29192
                     fi
29193 29193
 
29194 29194
 fi
... ...
@@ -5765,8 +5765,8 @@ maintainer-clean-generic:
5765 5765
 	@echo "This command is intended for maintainers to use"
5766 5766
 	@echo "it deletes files that may require special tools to rebuild."
5767 5767
 	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
5768
-@BUILD_EXTERNAL_LLVM_TRUE@distclean-local:
5769 5768
 @BUILD_EXTERNAL_LLVM_TRUE@clean-local:
5769
+@BUILD_EXTERNAL_LLVM_TRUE@distclean-local:
5770 5770
 clean: clean-am
5771 5771
 
5772 5772
 clean-am: clean-generic clean-libtool clean-local \
... ...
@@ -66,7 +66,11 @@ if test "X$have_curl" = "Xyes"; then
66 66
                     [if test $curl_version -ge 470272 ; then 
67 67
                         $enable_clamonacc="yes"
68 68
                     else
69
-                        AC_MSG_ERROR([Your libcurl (e.g. libcurl-devel) is too old. ClamAV (with clamonacc) requires libcurl 7.45 or higher.])
69
+                        AC_MSG_ERROR([m4_normalize([
70
+                                Your libcurl (e.g. libcurl-devel) is too old. Installing ClamAV with clamonacc requires libcurl 7.45 or higher.
71
+                                For a quick fix, run ./configure again with --disable-clamonacc if you do not wish to use on-access scanning features.
72
+                                For more information on ClamAV's on-access scanner, please read our documentation: https://www.clamav.net/documents/on-access-scanning#on-access-scanning
73
+                        ])])
70 74
                     fi]
71 75
                 )
72 76