Fixes breaking issues when using autoconf 2.69 and automake 1.15.
Micah Snyder authored on 2020/01/02 03:10:32... | ... |
@@ -23,8 +23,6 @@ AC_PREREQ([2.59]) |
23 | 23 |
dnl For a release change [devel] to the real version [0.xy] |
24 | 24 |
dnl also change VERSION below |
25 | 25 |
AC_INIT([ClamAV], [0.102.2], [https://bugzilla.clamav.net/], [clamav], [https://www.clamav.net/]) |
26 |
-dnl put configure auxiliary into config |
|
27 |
-AC_CONFIG_AUX_DIR([config]) |
|
28 | 26 |
|
29 | 27 |
dnl put configure auxiliary into config |
30 | 28 |
AC_CONFIG_AUX_DIR([config]) |
... | ... |
@@ -44,13 +42,12 @@ dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings |
44 | 44 |
dnl enable stealth builds and psychedelic tests |
45 | 45 |
AM_INIT_AUTOMAKE([1.11 -Wall -Wportability -Wno-override std-options foreign dist-bzip2 no-define color-tests parallel-tests tar-ustar]) |
46 | 46 |
AM_SILENT_RULES([yes]) |
47 |
- |
|
47 |
+AC_USE_SYSTEM_EXTENSIONS |
|
48 | 48 |
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
49 | 49 |
|
50 | 50 |
dnl we told automake to not define these, since we want to include |
51 | 51 |
dnl the date in the version |
52 | 52 |
AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) |
53 |
-AC_USE_SYSTEM_EXTENSIONS |
|
54 | 53 |
|
55 | 54 |
m4_include([m4/reorganization/version.m4]) |
56 | 55 |
|
... | ... |
@@ -10,7 +10,7 @@ |
10 | 10 |
|
11 | 11 |
if ENABLE_FUZZ |
12 | 12 |
|
13 |
-LIB_FUZZING_ENGINE_DEPRECATED ?= standalone_fuzz_target_runner.a |
|
13 |
+LIB_FUZZING_ENGINE_DEPRECATED ?= libstandalone_fuzz_target_runner.a |
|
14 | 14 |
|
15 | 15 |
AM_CPPFLAGS = \ |
16 | 16 |
@SSL_CPPFLAGS@ \ |
... | ... |
@@ -63,8 +63,8 @@ fuzz_PROGRAMS = \ |
63 | 63 |
clamav_dbload_WDB_fuzzer \ |
64 | 64 |
clamav_dbload_YARA_fuzzer |
65 | 65 |
|
66 |
-dist_standalone_fuzz_target_runner_a_SOURCES = standalone_fuzz_target_runner.cpp |
|
67 |
-noinst_LIBRARIES = standalone_fuzz_target_runner.a |
|
66 |
+dist_libstandalone_fuzz_target_runner_a_SOURCES = standalone_fuzz_target_runner.cpp |
|
67 |
+noinst_LIBRARIES = libstandalone_fuzz_target_runner.a |
|
68 | 68 |
|
69 | 69 |
dist_clamav_scanmap_fuzzer_SOURCES = clamav_scanmap_fuzzer.cpp |
70 | 70 |
clamav_scanmap_fuzzer_LDADD = $(LIB_FUZZING_ENGINE_DEPRECATED) @SSL_LIBS@ $(top_builddir)/libclamav/libclamav.la $(top_builddir)/libclamav/libclammspack.la |
... | ... |
@@ -686,7 +686,7 @@ libclamav_la_SOURCES += bignum.h\ |
686 | 686 |
tomsfastmath/sqr/fp_sqr_comba_small_set.c\ |
687 | 687 |
tomsfastmath/sqr/fp_sqrmod.c |
688 | 688 |
|
689 |
-.PHONY: version.h.tmp |
|
689 |
+.PHONY2: version.h.tmp |
|
690 | 690 |
version.c: version.h |
691 | 691 |
version.h: version.h.tmp |
692 | 692 |
$(AM_V_GEN) if test -f version.h.static; then\ |
... | ... |
@@ -19,12 +19,13 @@ AC_CONFIG_AUX_DIR([config]) |
19 | 19 |
AC_CONFIG_MACRO_DIR([m4]) |
20 | 20 |
AC_CONFIG_HEADER([clamavcxx-config.h]) |
21 | 21 |
AC_CANONICAL_TARGET |
22 |
-AM_INIT_AUTOMAKE([1.9 -Wall -Wportability foreign no-define color-tests tar-pax]) |
|
22 |
+AM_INIT_AUTOMAKE([1.11 subdir-objects -Wall -Wportability foreign no-define color-tests tar-pax]) |
|
23 | 23 |
AM_SILENT_RULES([yes]) |
24 | 24 |
|
25 | 25 |
cxxset=${CXXFLAGS+set} |
26 | 26 |
AC_PROG_CXX |
27 | 27 |
AC_C_BIGENDIAN |
28 |
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
|
28 | 29 |
|
29 | 30 |
if test "$cxxset" != set; then |
30 | 31 |
# don't use the default -O2 -g because -g bloats the C++ binaries too much |