diff options
author | Simon McVittie <smcv@collabora.com> | 2019-01-21 17:51:07 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-01-21 18:43:08 +0000 |
commit | 2938c2125ebcd001e470aeac1ffac45b6b1ebe89 (patch) | |
tree | 6dc8f667c4480007c8fa3ff52113b042dfacd6ce /m4/ax_add_am_macro_static.m4 | |
parent | 8747c9b5a06209b22d6b5c89c6ef44d88a74197f (diff) | |
download | dbus-2938c2125ebcd001e470aeac1ffac45b6b1ebe89.tar.gz |
Adapt to API change in AX_CODE_COVERAGE version 28
AX_CODE_COVERAGE recently changed the way it embedded its Makefile rules
in the output file: instead of using @CODE_COVERAGE_RULES@, users
are now meant to include aminclude_static.am.
The new AX_CODE_COVERAGE is only in the latest autoconf-archive release,
version 2019.01.06, which is inconveniently new, so bundle everything
we need for the moment.
This requires us to stop using the deprecated CODE_COVERAGE_LDFLAGS
(which we still used to support older versions of autoconf-archive)
and replace them with CODE_COVERAGE_LIBS.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'm4/ax_add_am_macro_static.m4')
-rw-r--r-- | m4/ax_add_am_macro_static.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/m4/ax_add_am_macro_static.m4 b/m4/ax_add_am_macro_static.m4 new file mode 100644 index 00000000..6442d24b --- /dev/null +++ b/m4/ax_add_am_macro_static.m4 @@ -0,0 +1,28 @@ +# =========================================================================== +# https://www.gnu.org/software/autoconf-archive/ax_add_am_macro_static.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_ADD_AM_MACRO_STATIC([RULE]) +# +# DESCRIPTION +# +# Adds the specified rule to $AMINCLUDE. +# +# LICENSE +# +# Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net> +# Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com> +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 8 + +AC_DEFUN([AX_ADD_AM_MACRO_STATIC],[ + AC_REQUIRE([AX_AM_MACROS_STATIC]) + AX_AC_APPEND_TO_FILE(AMINCLUDE_STATIC,[$1]) +]) |