diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-20 19:06:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-27 20:57:44 -0500 |
commit | d747a66a0defe0bf25989cda4f6d9dd89674d8a0 (patch) | |
tree | 5940499155b1f9d868e9604b5e2f2060576a59dd /.gitattributes | |
parent | a61eaf68cf868e1874de168b1de5f2efcbb3cfb4 (diff) | |
download | automake-d747a66a0defe0bf25989cda4f6d9dd89674d8a0.tar.gz |
m4: rework silent-rules macros to avoid double expansion
Fixes automake bug https://bugs.gnu.org/32868.
The AM_SILENT_RULES macro defines all the silent-rules related setup.
It's also called by users to change the default verbosity level. This
leads to a quirk where automake calls it, expands the full context,
and then users call it, and it's fully expanded again.
Instead, let's rename AM_SILENT_RULES to _AM_SILENT_RULES and move the
initialization logic to late in the configure stage. This allows the
user-centric AM_SILENT_RULES call to expand into a single line to set
the default verbosity.
* m4/init.m4: Switch to _AM_SILENT_RULES.
* m4/silent.m4: Rename AM_SILENT_RULES to _AM_SILENT_RULES. Delay
evaluation of AM_SILENT_RULES to the end. Define new AM_SILENT_RULES to
set default rules verbosity.
* t/silent-defaults.sh: New tests.
* t/list-of-tests.mk: Add t/silent-defaults.sh.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions