]> Savannah Git Hosting - gnulib.git/commitdiff
package-version: Avoid compiler warnings in config.log.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Jan 2025 12:26:35 +0000 (13:26 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Jan 2025 12:26:35 +0000 (13:26 +0100)
* m4/init-package-version.m4 (gl_INIT_PACKAGE_VERSION): Undefine
PACKAGE_VERSION and PACKAGE_STRING before redefining them.

ChangeLog
m4/init-package-version.m4

index 124236df6389d2add4a06719f51241691a2d7297..a18da52db3f94f8d530ace8a26e81dc2560fef23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-26  Bruno Haible  <bruno@clisp.org>
+
+       package-version: Avoid compiler warnings in config.log.
+       * m4/init-package-version.m4 (gl_INIT_PACKAGE_VERSION): Undefine
+       PACKAGE_VERSION and PACKAGE_STRING before redefining them.
+
 2025-01-26  Bruno Haible  <bruno@clisp.org>
 
        file-has-acl: Fix --with-libsmack option handling.
index cd68547051545a2e4e864d69f3166d1c6fe32703..a9acf8453f8f283ac82313f84f41181182af2d0f 100644 (file)
@@ -1,5 +1,5 @@
 # init-package-version.m4
-# serial 5
+# serial 6
 dnl Copyright (C) 1992-2025 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
@@ -102,8 +102,10 @@ AC_DEFUN([gl_INIT_PACKAGE_VERSION],
      dnl Set variables documented in Autoconf.
      AC_SUBST([PACKAGE_VERSION], ["$1"])
      AC_SUBST([PACKAGE_STRING], ["AC_PACKAGE_NAME $1"])
+     _AC_DEFINE([#undef PACKAGE_VERSION])
      AC_DEFINE_UNQUOTED([PACKAGE_VERSION], ["$1"],
        [Define to the version of this package.])
+     _AC_DEFINE([#undef PACKAGE_STRING])
      AC_DEFINE_UNQUOTED([PACKAGE_STRING], ["AC_PACKAGE_NAME $1"],
        [Define to the full name and version of this package.])
     ])