@@ -5,7 +5,6 @@ Project-wide configuration checks.
55include_guard (GLOBAL )
66
77include (CheckFunctionExists)
8- include (CheckIncludeFile)
98include (CheckIncludeFiles)
109include (CheckSourceCompiles)
1110include (CheckStructHasMember)
@@ -20,74 +19,74 @@ include(PHP/SearchLibraries)
2019# Check headers.
2120################################################################################
2221
23- check_include_file (alloca.h HAVE_ALLOCA_H)
24- check_include_file (arpa/inet.h HAVE_ARPA_INET_H)
25- check_include_file (sys/types.h HAVE_SYS_TYPES_H)
22+ check_include_files (alloca.h HAVE_ALLOCA_H)
23+ check_include_files (arpa/inet.h HAVE_ARPA_INET_H)
24+ check_include_files (sys/types.h HAVE_SYS_TYPES_H)
2625
2726if (HAVE_SYS_TYPES_H)
2827 # On Solaris/illumos arpa/nameser.h depends on sys/types.h.
2928 check_include_files("sys/types.h;arpa/nameser.h" HAVE_ARPA_NAMESER_H)
3029else ()
31- check_include_file (arpa/nameser.h HAVE_ARPA_NAMESER_H)
30+ check_include_files (arpa/nameser.h HAVE_ARPA_NAMESER_H)
3231endif ()
3332
34- check_include_file (dirent.h HAVE_DIRENT_H)
35- check_include_file (dlfcn.h HAVE_DLFCN_H)
36- check_include_file (dns.h HAVE_DNS_H)
37- check_include_file (fcntl.h HAVE_FCNTL_H)
38- check_include_file (grp.h HAVE_GRP_H)
39- check_include_file (ieeefp.h HAVE_IEEEFP_H)
40- check_include_file (langinfo.h HAVE_LANGINFO_H)
41- check_include_file (linux/sock_diag.h HAVE_LINUX_SOCK_DIAG_H)
42- check_include_file (netinet/in.h HAVE_NETINET_IN_H)
43- check_include_file (os/signpost.h HAVE_OS_SIGNPOST_H)
44- check_include_file (poll.h HAVE_POLL_H)
45- check_include_file (pty.h HAVE_PTY_H)
46- check_include_file (pwd.h HAVE_PWD_H)
33+ check_include_files (dirent.h HAVE_DIRENT_H)
34+ check_include_files (dlfcn.h HAVE_DLFCN_H)
35+ check_include_files (dns.h HAVE_DNS_H)
36+ check_include_files (fcntl.h HAVE_FCNTL_H)
37+ check_include_files (grp.h HAVE_GRP_H)
38+ check_include_files (ieeefp.h HAVE_IEEEFP_H)
39+ check_include_files (langinfo.h HAVE_LANGINFO_H)
40+ check_include_files (linux/sock_diag.h HAVE_LINUX_SOCK_DIAG_H)
41+ check_include_files (netinet/in.h HAVE_NETINET_IN_H)
42+ check_include_files (os/signpost.h HAVE_OS_SIGNPOST_H)
43+ check_include_files (poll.h HAVE_POLL_H)
44+ check_include_files (pty.h HAVE_PTY_H)
45+ check_include_files (pwd.h HAVE_PWD_H)
4746
4847# BSD-based systems (FreeBSD<=13) need also netinet/in.h for resolv.h to work.
4948# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=182466
5049if (HAVE_NETINET_IN_H)
5150 check_include_files("netinet/in.h;resolv.h" HAVE_RESOLV_H)
5251else ()
53- check_include_file (resolv.h HAVE_RESOLV_H)
52+ check_include_files (resolv.h HAVE_RESOLV_H)
5453endif ()
5554
56- check_include_file (strings .h HAVE_STRINGS_H)
57- check_include_file (sys/file.h HAVE_SYS_FILE_H)
58- check_include_file (sys/ioctl.h HAVE_SYS_IOCTL_H)
59- check_include_file (sys/ipc.h HAVE_SYS_IPC_H)
60- check_include_file (sys/loadavg.h HAVE_SYS_LOADAVG_H)
61- check_include_file (sys/mman.h HAVE_SYS_MMAN_H)
62- check_include_file (sys/mount.h HAVE_SYS_MOUNT_H)
63- check_include_file (sys/param.h HAVE_SYS_PARAM_H)
64- check_include_file (sys/poll.h HAVE_SYS_POLL_H)
65- check_include_file (sys/procctl.h HAVE_SYS_PROCCTL_H)
66- check_include_file (sys/resource .h HAVE_SYS_RESOURCE_H)
67- check_include_file (sys/select.h HAVE_SYS_SELECT_H)
68- check_include_file (sys/socket.h HAVE_SYS_SOCKET_H)
69- check_include_file (sys/stat.h HAVE_SYS_STAT_H)
70- check_include_file (sys/statfs.h HAVE_SYS_STATFS_H)
71- check_include_file (sys/statvfs.h HAVE_SYS_STATVFS_H)
72- check_include_file (sys/sysexits.h HAVE_SYS_SYSEXITS_H)
73- check_include_file (sys/time.h HAVE_SYS_TIME_H)
74- check_include_file (sys/uio.h HAVE_SYS_UIO_H)
75- check_include_file (sys/utsname.h HAVE_SYS_UTSNAME_H)
55+ check_include_files (strings .h HAVE_STRINGS_H)
56+ check_include_files (sys/file.h HAVE_SYS_FILE_H)
57+ check_include_files (sys/ioctl.h HAVE_SYS_IOCTL_H)
58+ check_include_files (sys/ipc.h HAVE_SYS_IPC_H)
59+ check_include_files (sys/loadavg.h HAVE_SYS_LOADAVG_H)
60+ check_include_files (sys/mman.h HAVE_SYS_MMAN_H)
61+ check_include_files (sys/mount.h HAVE_SYS_MOUNT_H)
62+ check_include_files (sys/param.h HAVE_SYS_PARAM_H)
63+ check_include_files (sys/poll.h HAVE_SYS_POLL_H)
64+ check_include_files (sys/procctl.h HAVE_SYS_PROCCTL_H)
65+ check_include_files (sys/resource .h HAVE_SYS_RESOURCE_H)
66+ check_include_files (sys/select.h HAVE_SYS_SELECT_H)
67+ check_include_files (sys/socket.h HAVE_SYS_SOCKET_H)
68+ check_include_files (sys/stat.h HAVE_SYS_STAT_H)
69+ check_include_files (sys/statfs.h HAVE_SYS_STATFS_H)
70+ check_include_files (sys/statvfs.h HAVE_SYS_STATVFS_H)
71+ check_include_files (sys/sysexits.h HAVE_SYS_SYSEXITS_H)
72+ check_include_files (sys/time.h HAVE_SYS_TIME_H)
73+ check_include_files (sys/uio.h HAVE_SYS_UIO_H)
74+ check_include_files (sys/utsname.h HAVE_SYS_UTSNAME_H)
7675# Solaris <= 10, other systems have sys/statvfs.h.
77- check_include_file (sys/vfs.h HAVE_SYS_VFS_H)
78- check_include_file (sys/wait.h HAVE_SYS_WAIT_H)
79- check_include_file (sysexits.h HAVE_SYSEXITS_H)
80- check_include_file (syslog.h HAVE_SYSLOG_H)
81- check_include_file (unistd.h HAVE_UNISTD_H)
76+ check_include_files (sys/vfs.h HAVE_SYS_VFS_H)
77+ check_include_files (sys/wait.h HAVE_SYS_WAIT_H)
78+ check_include_files (sysexits.h HAVE_SYSEXITS_H)
79+ check_include_files (syslog.h HAVE_SYSLOG_H)
80+ check_include_files (unistd.h HAVE_UNISTD_H)
8281# QNX requires unix.h to allow functions in libunix to work properly.
83- check_include_file (unix .h HAVE_UNIX_H)
84- check_include_file (utime.h HAVE_UTIME_H)
82+ check_include_files (unix .h HAVE_UNIX_H)
83+ check_include_files (utime.h HAVE_UTIME_H)
8584
8685# Intel Intrinsics headers.
87- check_include_file (tmmintrin.h HAVE_TMMINTRIN_H)
88- check_include_file (nmmintrin.h HAVE_NMMINTRIN_H)
89- check_include_file (wmmintrin.h HAVE_WMMINTRIN_H)
90- check_include_file (immintrin.h HAVE_IMMINTRIN_H)
86+ check_include_files (tmmintrin.h HAVE_TMMINTRIN_H)
87+ check_include_files (nmmintrin.h HAVE_NMMINTRIN_H)
88+ check_include_files (wmmintrin.h HAVE_WMMINTRIN_H)
89+ check_include_files (immintrin.h HAVE_IMMINTRIN_H)
9190
9291################################################################################
9392# Check structs.
0 commit comments