Rename LIBC_VERSION to BUILD2_AUTOCONF_LIBC_VERSION, add include guard

This commit is contained in:
Boris Kolpackov 2022-04-24 12:09:02 +02:00
parent fba5138c0d
commit 79d26b5bb3
20 changed files with 28 additions and 23 deletions

View File

@ -141,9 +141,9 @@ The first line in this header file must be in the form:
If the name is followed by the `!` modifier, then it is *unprefixable* (see
the previous section for details). The name can also be followed by `:` and a
list of base checks. Such checks are automatically inserted before the rest of
the lines in the resulting substitution. One notable check that you may
want to use as a base is [`LIBC_VERSION`][libc-version] (see comments for
details).
the lines in the resulting substitution. One notable check that you may want
to use as a base is [`BUILD2_AUTOCONF_LIBC_VERSION`][libc-version] (see
comments for details).
Subsequent lines should be C-style comments or preprocessor directives that
`#define` or `#undef` `<NAME>` depending on whether the feature is available
@ -180,4 +180,4 @@ ways that deal with duplication (for example, include guards).
[module-in]: https://build2.org/build2/doc/build2-build-system-manual.xhtml#module-in
[proj-config]: https://build2.org/build2/doc/build2-build-system-manual.xhtml#proj-config
[checks]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/
[libc-version]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/LIBC_VERSION.h
[libc-version]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/BUILD2_AUTOCONF_LIBC_VERSION.h

View File

@ -1,4 +1,7 @@
// LIBC_VERSION!
// BUILD2_AUTOCONF_LIBC_VERSION!
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
#define BUILD2_AUTOCONF_LIBC_VERSION
/* Include headers required to make various libc version number macros
* available.
@ -167,3 +170,5 @@
#else
# define BUILD2_AUTOCONF_MACOS_PREREQ(maj, min) 0
#endif
#endif /* BUILD2_AUTOCONF_LIBC_VERSION */

View File

@ -1,4 +1,4 @@
// HAVE_CLOCK_GETTIME : LIBC_VERSION
// HAVE_CLOCK_GETTIME : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_CLOCK_GETTIME

View File

@ -1,4 +1,4 @@
// HAVE_DLOPEN : LIBC_VERSION
// HAVE_DLOPEN : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_DLOPEN

View File

@ -1,4 +1,4 @@
// HAVE_EVENTFD : LIBC_VERSION
// HAVE_EVENTFD : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_EVENTFD

View File

@ -1,4 +1,4 @@
// HAVE_EXPLICIT_BZERO : LIBC_VERSION
// HAVE_EXPLICIT_BZERO : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_EXPLICIT_BZERO

View File

@ -1,4 +1,4 @@
// HAVE_EXPLICIT_MEMSET : LIBC_VERSION
// HAVE_EXPLICIT_MEMSET : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_EXPLICIT_MEMSET

View File

@ -1,4 +1,4 @@
// HAVE_FUTIMENS : LIBC_VERSION
// HAVE_FUTIMENS : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_FUTIMENS

View File

@ -1,4 +1,4 @@
// HAVE_FUTIMES : LIBC_VERSION
// HAVE_FUTIMES : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_FUTIMES

View File

@ -1,4 +1,4 @@
// HAVE_GETAUXVAL : LIBC_VERSION
// HAVE_GETAUXVAL : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_GETAUXVAL

View File

@ -1,4 +1,4 @@
// HAVE_GETENTROPY : LIBC_VERSION
// HAVE_GETENTROPY : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_GETENTROPY

View File

@ -1,4 +1,4 @@
// HAVE_INOTIFY : LIBC_VERSION
// HAVE_INOTIFY : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_INOTIFY

View File

@ -1,4 +1,4 @@
// HAVE_LINKAT : LIBC_VERSION
// HAVE_LINKAT : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_LINKAT

View File

@ -1,4 +1,4 @@
// HAVE_POLL : LIBC_VERSION
// HAVE_POLL : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_POLL

View File

@ -1,4 +1,4 @@
// HAVE_POLLTS : LIBC_VERSION
// HAVE_POLLTS : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_POLLTS

View File

@ -1,4 +1,4 @@
// HAVE_POSIX_FALLOCATE : LIBC_VERSION
// HAVE_POSIX_FALLOCATE : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_POSIX_FALLOCATE

View File

@ -1,4 +1,4 @@
// HAVE_PPOLL : LIBC_VERSION
// HAVE_PPOLL : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_PPOLL

View File

@ -1,4 +1,4 @@
// HAVE_RENAMEAT2 : LIBC_VERSION
// HAVE_RENAMEAT2 : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_RENAMEAT2

View File

@ -1,4 +1,4 @@
// HAVE_STATX : LIBC_VERSION
// HAVE_STATX : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_STATX

View File

@ -1,4 +1,4 @@
// HAVE_THREADSAFE_CLOEXEC
// HAVE_THREADSAFE_CLOEXEC : BUILD2_AUTOCONF_LIBC_VERSION
#undef HAVE_THREADSAFE_CLOEXEC