]> git.ipfire.org Git - thirdparty/automake.git/commit
Patch from https://bugs.gnu.org/81040. master
authorKamila Szewczyk <szewczyk@cs.uni-saarland.de>
Sat, 30 May 2026 16:18:13 +0000 (09:18 -0700)
committerKarl Berry <karl@freefriends.org>
Sat, 30 May 2026 16:18:13 +0000 (09:18 -0700)
commit78e06249b7085e178db58187705be00fc5eeb405
treebea78c80461fd36239ad4106cd8c482f427aadc7
parent500c273e707565c77d45e84c3737fe88448335ac
Patch from https://bugs.gnu.org/81040.

* m4/optional.m4: New file.  AM_OPTIONAL_AUTOMAKE(OPTIONS) makes
`make dist' build the listed dist-XXX archives when their tool is
available and skip them otherwise, without failing.  Supports
all the available compression options:
dist-bzip2, dist-bzip3, dist-xz, dist-lzip, dist-zstd, dist-zip,
dist-shar, dist-tarZ.  dist-shar is handled separately: shar is
run to an intermediate file before gzip so a missing shar cannot
leave a bogus .shar.gz behind.
* m4/local.mk (dist_automake_ac_DATA): Add m4/optional.m4.
* doc/automake.texi (Public Macros): Document it.  Cross-reference
it from dist-bzip3, dist-lzip and dist-zstd.
* t/am-optional-automake.sh: New test, including a distcheck case.
* t/list-of-tests.mk: Add it.
* NEWS: Mention the new macro.

2025-05-19  Kamila Szewczyk  <szewczyk@cs.uni-saarland.de>
NEWS
doc/automake.texi
m4/local.mk
m4/optional.m4 [new file with mode: 0644]
t/am-optional-automake.sh [new file with mode: 0644]
t/list-of-tests.mk