]> git.saurik.com Git - bison.git/commitdiff
maint: enable gnits only at stable releases.
authorJoel E. Denny <joeldenny@joeldenny.org>
Fri, 30 Jul 2010 02:05:09 +0000 (22:05 -0400)
committerJoel E. Denny <joeldenny@joeldenny.org>
Fri, 30 Jul 2010 03:11:12 +0000 (23:11 -0400)
* configure.ac (AM_INIT_AUTOMAKE): Underscore or dash in a
version string should disable gnits.  Explain in comments.

ChangeLog
configure.ac

index a40193cc2b3912796db62916348464d8161b95bc..15c236e7dc4a11a33aab5000522d149e08323ede 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-29  Joel E. Denny  <joeldenny@joeldenny.org>
+
+       maint: enable gnits only at stable releases.
+       * configure.ac (AM_INIT_AUTOMAKE): Underscore or dash in a
+       version string should disable gnits.  Explain in comments.
+
 2010-07-29  Joel E. Denny  <joeldenny@joeldenny.org>
 
        Prepare for 2.4.3 release.
index fa694704489b7f2f1b3b55537f4669a4d8d11f8d..73aa4735d6093065873c92c21b3540246582fafc 100644 (file)
@@ -37,11 +37,15 @@ AC_CONFIG_MACRO_DIR([m4])
 #
 # To avoid 1.11, we make 1.11.1 the minimum version.
 #
-# 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.
+# We want gnits strictness only when rolling a stable release.  For
+# release candidates, we use version strings like 2.4.3_rc1, but gnits
+# doesn't like that, so we let the underscore disable gnits.  Between
+# releases, we want to be able run make dist without being required to
+# add a bogus NEWS entry.  In that case, the version string
+# automatically contains a dash, which we also let disable gnits.
 AM_INIT_AUTOMAKE([1.11.1 dist-bzip2]
-                 m4_bmatch(m4_defn([AC_PACKAGE_VERSION]), [_], [gnu], [gnits]))
+                 m4_bmatch(m4_defn([AC_PACKAGE_VERSION]), [[-_]],
+                           [gnu], [gnits]))
 AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
 
 # Checks for the compiler.