On Sun, 20 Jul 2008, Joel E. Denny wrote: > > m4 uses this additional trick, to turn on gnits mode for major releases but > > use > > the more relaxed gnu mode for development:
> Sure. I've seen one place where this change might help with Bison. > During development between releases, I don't like that "make dist" should > force me to name the next release in NEWS by using the name of the current > state of the code. That is, I feel that it would be best if unofficial > tarballs are not forced to have bogus NEWS entries. I pushed the patch below for this. > > > > AC_DEFINE([PACKAGE_COPYRIGHT_YEAR], [2008], > > > > [The copyright year for this package]) > > > > This could almost be considered redundant information with the gnulib > > module > > version-etc. > > I'll look into that. I'm not sure yet what to do with this. That copyright year is hard-coded in gnulib/lib/version-etc.c, but doc/yacc.1.in also needs to depend on it. Seems like configure ought to substitute it instead. Also, it's not clear to me that Bison's copyright year should be whatever gnulib was last updated to have. Maybe the copyright year should come from the latest change shown by git log? I need to think about it more, but suggestions are welcome. >From a1e50014a0ba37b3de9900754be8c04f57d18c9a Mon Sep 17 00:00:00 2001 From: Joel E. Denny <[EMAIL PROTECTED]> Date: Sat, 2 Aug 2008 02:32:29 -0400 Subject: [PATCH] Set gnu or gnits strictness. * configure.ac (AM_INIT_AUTOMAKE): Set gnu strictness during development and gnits strictness for releases. Based on Eric Blake's suggestion at <http://lists.gnu.org/archive/html/bug-bison/2008-07/msg00019.html>. diff --git a/configure.ac b/configure.ac index e1a6918..adb5271 100644 --- a/configure.ac +++ b/configure.ac @@ -30,7 +30,11 @@ AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) # We don't have a file m4/Makefile.am, so we need Automake 1.8 or later. -AM_INIT_AUTOMAKE([1.8 check-news readme-alpha dist-bzip2]) +# We want gnits strictness only when rolling a formal release so that we can, +# for example, run make dist at other times without being required to add a +# bogus NEWS entry. +AM_INIT_AUTOMAKE([1.8 dist-bzip2] + m4_bmatch(m4_defn([AC_PACKAGE_VERSION]), [-], [gnu], [gnits])) AC_CONFIG_HEADERS([lib/config.h:lib/config.hin]) # Checks for the compiler. -- 1.5.4.3