Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-18 05:17:54 +0300
committerMike Frysinger <vapier@gentoo.org>2022-01-20 03:59:16 +0300
commit21fb1b461c29b61faf199ec2362ff9a53d6f01e6 (patch)
tree71112e065cf05d4c6e5c1c3376c5dcb4c40346b6 /newlib/configure.ac
parent850e08fedbc6fcd15b6db3ea44aaeafb14fb5490 (diff)
newlib: move version defines out of the config headers
This will make it easier to move newlib.h to use autoheader directly. We only want the newlib version defines in our hand curated version file, _newlib_version.h, not in the template header, newlib.h, so using AC_DEFINE doesn't make much sense.
Diffstat (limited to 'newlib/configure.ac')
-rw-r--r--newlib/configure.ac10
1 files changed, 6 insertions, 4 deletions
diff --git a/newlib/configure.ac b/newlib/configure.ac
index 35d94666a..e1fb2ad0e 100644
--- a/newlib/configure.ac
+++ b/newlib/configure.ac
@@ -477,10 +477,12 @@ if test "${newlib_mb}" = "yes"; then
fi
AC_DEFINE_UNQUOTED(_MB_LEN_MAX, $_mb_len_max, [Multibyte max length.])
-AC_DEFINE(_NEWLIB_VERSION, "NEWLIB_VERSION", [The newlib version in string format.])
-AC_DEFINE(__NEWLIB__, NEWLIB_MAJOR_VERSION, [The newlib major version number.])
-AC_DEFINE(__NEWLIB_MINOR__, NEWLIB_MINOR_VERSION, [The newlib minor version number.])
-AC_DEFINE(__NEWLIB_PATCHLEVEL__, NEWLIB_PATCHLEVEL_VERSION, [The newlib patch level.])
+dnl These are AC_SUBST instead of AC_DEFINE as they're hand maintained in a
+dnl dedicated _newlib_version.h, and we don't want them in newlib.h.
+AC_SUBST([NEWLIB_VERSION])
+AC_SUBST([NEWLIB_MAJOR_VERSION])
+AC_SUBST([NEWLIB_MINOR_VERSION])
+AC_SUBST([NEWLIB_PATCHLEVEL_VERSION])
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"