diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATEXIT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATEXIT.h new file mode 100644 index 0000000..14d7c89 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATEXIT.h @@ -0,0 +1,19 @@ +// HAVE_ATEXIT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ATEXIT + +/* Since glibc 2.2.3, FreeBSD 1.0, OpenBSD 2.2, NetBSD 1.3, Mac OS (from BSD), + * Windows 95 at the latest. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_ATEXIT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETPAGESIZE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETPAGESIZE.h new file mode 100644 index 0000000..05a113a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETPAGESIZE.h @@ -0,0 +1,18 @@ +// HAVE_GETPAGESIZE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_GETPAGESIZE + +/* Since glibc 2.0 at the latest (but broken until 2.1), FreeBSD 2.0, OpenBSD + * 2.2, NetBSD 1.3, Mac OS (from BSD). + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_GETPAGESIZE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISATTY.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISATTY.h new file mode 100644 index 0000000..faaeb3d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISATTY.h @@ -0,0 +1,18 @@ +// HAVE_ISATTY : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISATTY + +/* All versions of glibc, FreeBSD, OpenBSD, NetBSD, Mac OS, Windows. + */ +#if defined(__GLIBC__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_ISATTY 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAP.h new file mode 100644 index 0000000..5f80865 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAP.h @@ -0,0 +1,19 @@ +// HAVE_MMAP : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MMAP + +/* Note: see also HAVE_SYS_MMAN_H. */ + +/* All versions of glibc, FreeBSD, OpenBSD, NetBSD, and Mac OS (from BSD). + */ +#if defined(__GLIBC__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_MMAP 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MPROTECT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MPROTECT.h new file mode 100644 index 0000000..33d051f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MPROTECT.h @@ -0,0 +1,17 @@ +// HAVE_MPROTECT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MPROTECT + +/* Since glibc 2.27 and all versions of FreeBSD, OpenBSD, NetBSD, and Mac OS. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 27) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_MPROTECT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NEWLOCALE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NEWLOCALE.h new file mode 100644 index 0000000..2e62e7f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NEWLOCALE.h @@ -0,0 +1,23 @@ +// HAVE_NEWLOCALE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_NEWLOCALE + +/* Note: see also HAVE_USELOCALE. */ + +/* Since glibc 2.3, FreeBSD 9.1, OpenBSD 6.2, and Mac OS X (hard to tell but + * based on the manpages available online it looks like Tiger at the latest). + * + * @@ TODO Update when NetBSD adds support for newlocale. According to + * https://man.netbsd.org/newlocale.3 it's only in CURRENT at the time of + * writing. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201710) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_NEWLOCALE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD.h new file mode 100644 index 0000000..47f96a9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD.h @@ -0,0 +1,13 @@ +// HAVE_PTHREAD + +/* Note that MinGW-W64 has pthread in the form of the libwinpthreads wrapper + (though GCC may or may not be configured to use pthread). However, it's + probably not a good idea to define this macro for MinGW-W64 since this + may cause whomever depends on this check to use the wrapper instead of + the native Win32 threads support. */ + +#undef HAVE_PTHREAD + +#ifndef _WIN32 +# define HAVE_PTHREAD 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STBOOL_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STBOOL_H.h new file mode 100644 index 0000000..d19d118 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STBOOL_H.h @@ -0,0 +1,5 @@ +// HAVE_STDBOOL_H + +#undef HAVE_STDBOOL_H + +#define HAVE_STDBOOL_H 1 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCONF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCONF.h new file mode 100644 index 0000000..ef362b4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCONF.h @@ -0,0 +1,15 @@ +// HAVE_SYSCONF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYSCONF + +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_SYSCONF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_MMAN_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_MMAN_H.h new file mode 100644 index 0000000..8d853e8 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_MMAN_H.h @@ -0,0 +1,19 @@ +// HAVE_SYS_MMAN_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYS_MMAN_H + +/* Note: see also HAVE_MMAP. */ + +/* All versions of glibc, FreeBSD, OpenBSD, NetBSD, and Mac OS (from BSD). + */ +#if defined(__GLIBC__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_SYS_MMAN_H 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_USELOCALE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_USELOCALE.h new file mode 100644 index 0000000..1b641b1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_USELOCALE.h @@ -0,0 +1,22 @@ +// HAVE_USELOCALE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_USELOCALE + +/* Note: see also HAVE_NEWLOCALE. */ + +/* Since glibc 2.3, FreeBSD 9.1, OpenBSD 6.2, and Mac OS X (hard to tell but + * based on the manpages available online it looks like Tiger at the latest). + * + * @@ TODO Update when NetBSD adds support for uselocale. newlocale at least + * is in CURRENT already. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201710) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_USELOCALE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XLOCALE_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XLOCALE_H.h new file mode 100644 index 0000000..75bc5bf --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XLOCALE_H.h @@ -0,0 +1,12 @@ +// HAVE_XLOCALE_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_XLOCALE_H + +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 1) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_XLOCALE_H 1 +#endif