aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-02-11 19:47:46 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-02-13 13:09:00 +0000
commitba0f382137749b78b27ac58238735cc20a6fa847 (patch)
tree345783092d095bc7036c1e2e670cac807a263532 /configure.ac
parent54ef790149918df40e6bc2220ffd52ade1b9669b (diff)
downloadriscv-openocd-ba0f382137749b78b27ac58238735cc20a6fa847.zip
riscv-openocd-ba0f382137749b78b27ac58238735cc20a6fa847.tar.gz
riscv-openocd-ba0f382137749b78b27ac58238735cc20a6fa847.tar.bz2
autotools: generate list of NEWS-xx file during configure
Commit 4fc0f3530c51 ("Makefile.am: fix non-POSIX warning from automake") uses the BSD make extension '!=' to generate the list of files NEWS-xx, but it's not POSIX (yet), it's not backward compatible with GNU make 3.82 (used in CentOS 7, EOL scheduled for 2024) and depending on automake evolution it could trigger again the warning 'apparently' just fixed. Move in configure the generation of the file list. The only drawback is that when a developer adds a new NEWS-xx file, he/she has to run configure again before 'make distcheck', otherwise will get failure. Change-Id: Ia97e7f4e612655a97702f95e8451040539659b85 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reported-by: Jan Matyáš <jmatyas@codasip.com> Reviewed-on: http://openocd.zylin.com/6054 Tested-by: jenkins Reviewed-by: Jan Matyas <matyas@codasip.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 158ba15..f1fa587 100644
--- a/configure.ac
+++ b/configure.ac
@@ -854,6 +854,8 @@ AS_IF([test "x$gcc_warnings" = "xyes"], [
AC_SUBST([GCC_WARNINGS], [$GCC_WARNINGS])
])
+AC_SUBST(EXTRA_DIST_NEWS, ["$(echo $srcdir/NEWS-*)"])
+
AC_CONFIG_FILES([
Makefile
])