Add checks used by libharfbuzz
This commit is contained in:
parent
4c1a1bbff5
commit
a7d7c362de
19
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATEXIT.h
Normal file
19
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATEXIT.h
Normal file
@ -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
|
@ -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
|
18
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISATTY.h
Normal file
18
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISATTY.h
Normal file
@ -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
|
19
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAP.h
Normal file
19
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAP.h
Normal file
@ -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
|
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MPROTECT.h
Normal file
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MPROTECT.h
Normal file
@ -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
|
@ -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
|
13
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD.h
Normal file
13
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD.h
Normal file
@ -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
|
@ -0,0 +1,5 @@
|
|||||||
|
// HAVE_STDBOOL_H
|
||||||
|
|
||||||
|
#undef HAVE_STDBOOL_H
|
||||||
|
|
||||||
|
#define HAVE_STDBOOL_H 1
|
15
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCONF.h
Normal file
15
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCONF.h
Normal file
@ -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
|
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user