@@ -258,9 +258,9 @@ include(PHP/CheckAVX512)
258
258
# Check functions.
259
259
################################################################################
260
260
261
- check_symbol_exists (alphasort " dirent.h" HAVE_ALPHASORT )
262
- check_symbol_exists (explicit_memset " string.h" HAVE_EXPLICIT_MEMSET )
263
- check_symbol_exists (fdatasync " unistd.h" HAVE_FDATASYNC )
261
+ check_symbol_exists (alphasort dirent.h HAVE_ALPHASORT )
262
+ check_symbol_exists (explicit_memset string .h HAVE_EXPLICIT_MEMSET )
263
+ check_symbol_exists (fdatasync unistd.h HAVE_FDATASYNC )
264
264
# The fdatasync declaration on macOS is missing in headers, yet is in C library.
265
265
if (NOT HAVE_FDATASYNC )
266
266
unset (HAVE_FDATASYNC CACHE )
@@ -279,9 +279,9 @@ block()
279
279
check_symbol_exists (flock "${headers} " HAVE_FLOCK )
280
280
endblock ()
281
281
282
- check_symbol_exists (ftok " sys/ipc.h" HAVE_FTOK )
283
- check_symbol_exists (funopen " stdio.h" HAVE_FUNOPEN )
284
- check_symbol_exists (getcwd " unistd.h" HAVE_GETCWD )
282
+ check_symbol_exists (ftok sys/ipc.h HAVE_FTOK )
283
+ check_symbol_exists (funopen stdio.h HAVE_FUNOPEN )
284
+ check_symbol_exists (getcwd unistd.h HAVE_GETCWD )
285
285
286
286
block ()
287
287
set (headers stdlib.h )
@@ -299,39 +299,39 @@ block()
299
299
check_symbol_exists (getloadavg "${headers} " HAVE_GETLOADAVG )
300
300
endblock ()
301
301
302
- check_symbol_exists (getlogin " unistd.h" HAVE_GETLOGIN )
303
- check_symbol_exists (getrusage " sys/resource.h" HAVE_GETRUSAGE )
304
- check_symbol_exists (gettimeofday " sys/time.h" HAVE_GETTIMEOFDAY )
305
- check_symbol_exists (getpwnam_r " pwd.h" HAVE_GETPWNAM_R )
306
- check_symbol_exists (getgrnam_r " grp.h" HAVE_GETGRNAM_R )
307
- check_symbol_exists (getpwuid_r " pwd.h" HAVE_GETPWUID_R )
308
- check_symbol_exists (getwd " unistd.h" HAVE_GETWD )
309
- check_symbol_exists (glob " glob.h" HAVE_GLOB )
310
- check_symbol_exists (lchown " unistd.h" HAVE_LCHOWN )
311
- check_symbol_exists (memcntl " sys/mman.h" HAVE_MEMCNTL )
302
+ check_symbol_exists (getlogin unistd.h HAVE_GETLOGIN )
303
+ check_symbol_exists (getrusage sys/resource.h HAVE_GETRUSAGE )
304
+ check_symbol_exists (gettimeofday sys/time.h HAVE_GETTIMEOFDAY )
305
+ check_symbol_exists (getpwnam_r pwd.h HAVE_GETPWNAM_R )
306
+ check_symbol_exists (getgrnam_r grp.h HAVE_GETGRNAM_R )
307
+ check_symbol_exists (getpwuid_r pwd.h HAVE_GETPWUID_R )
308
+ check_symbol_exists (getwd unistd.h HAVE_GETWD )
309
+ check_symbol_exists (glob glob.h HAVE_GLOB )
310
+ check_symbol_exists (lchown unistd.h HAVE_LCHOWN )
311
+ check_symbol_exists (memcntl sys/mman.h HAVE_MEMCNTL )
312
312
313
313
cmake_push_check_state (RESET )
314
314
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
315
- check_symbol_exists (memfd_create " sys/mman.h" HAVE_MEMFD_CREATE )
315
+ check_symbol_exists (memfd_create sys/mman.h HAVE_MEMFD_CREATE )
316
316
cmake_pop_check_state ()
317
317
318
- check_symbol_exists (mkstemp " stdlib.h" HAVE_MKSTEMP )
319
- check_symbol_exists (mmap " sys/mman.h" HAVE_MMAP )
320
- check_symbol_exists (nice " unistd.h" HAVE_NICE )
321
- check_symbol_exists (nl_langinfo " langinfo.h" HAVE_NL_LANGINFO )
322
- check_symbol_exists (prctl " sys/prctl.h" HAVE_PRCTL )
323
- check_symbol_exists (procctl " sys/procctl.h" HAVE_PROCCTL )
324
- check_symbol_exists (poll " poll.h" HAVE_POLL )
318
+ check_symbol_exists (mkstemp stdlib.h HAVE_MKSTEMP )
319
+ check_symbol_exists (mmap sys/mman.h HAVE_MMAP )
320
+ check_symbol_exists (nice unistd.h HAVE_NICE )
321
+ check_symbol_exists (nl_langinfo langinfo.h HAVE_NL_LANGINFO )
322
+ check_symbol_exists (prctl sys/prctl.h HAVE_PRCTL )
323
+ check_symbol_exists (procctl sys/procctl.h HAVE_PROCCTL )
324
+ check_symbol_exists (poll poll.h HAVE_POLL )
325
325
check_symbol_exists (
326
326
pthread_jit_write_protect_np
327
- " pthread.h"
327
+ pthread.h
328
328
HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
329
329
)
330
- check_symbol_exists (putenv " stdlib.h" HAVE_PUTENV )
331
- check_symbol_exists (scandir " dirent.h" HAVE_SCANDIR )
332
- check_symbol_exists (setitimer " sys/time.h" HAVE_SETITIMER )
333
- check_symbol_exists (setenv " stdlib.h" HAVE_SETENV )
334
- check_symbol_exists (sigprocmask " signal.h" HAVE_SIGPROCMASK )
330
+ check_symbol_exists (putenv stdlib.h HAVE_PUTENV )
331
+ check_symbol_exists (scandir dirent.h HAVE_SCANDIR )
332
+ check_symbol_exists (setitimer sys/time.h HAVE_SETITIMER )
333
+ check_symbol_exists (setenv stdlib.h HAVE_SETENV )
334
+ check_symbol_exists (sigprocmask signal.h HAVE_SIGPROCMASK )
335
335
336
336
# Check for statfs().
337
337
block ()
@@ -349,39 +349,39 @@ block()
349
349
check_symbol_exists (statfs "${headers} " HAVE_STATFS )
350
350
endblock ()
351
351
352
- check_symbol_exists (statvfs " sys/statvfs.h" HAVE_STATVFS )
353
- check_symbol_exists (std_syslog " sys/syslog.h" HAVE_STD_SYSLOG )
354
- check_symbol_exists (strcasecmp " strings.h" HAVE_STRCASECMP )
355
- check_symbol_exists (strnlen " string.h" HAVE_STRNLEN )
356
- check_symbol_exists (symlink " unistd.h" HAVE_SYMLINK )
357
- check_symbol_exists (tzset " time.h" HAVE_TZSET )
358
- check_symbol_exists (unsetenv " stdlib.h" HAVE_UNSETENV )
359
- check_symbol_exists (usleep " unistd.h" HAVE_USLEEP )
360
- check_symbol_exists (utime " utime.h" HAVE_UTIME )
352
+ check_symbol_exists (statvfs sys/statvfs.h HAVE_STATVFS )
353
+ check_symbol_exists (std_syslog sys/syslog.h HAVE_STD_SYSLOG )
354
+ check_symbol_exists (strcasecmp strings .h HAVE_STRCASECMP )
355
+ check_symbol_exists (strnlen string .h HAVE_STRNLEN )
356
+ check_symbol_exists (symlink unistd.h HAVE_SYMLINK )
357
+ check_symbol_exists (tzset time.h HAVE_TZSET )
358
+ check_symbol_exists (unsetenv stdlib.h HAVE_UNSETENV )
359
+ check_symbol_exists (usleep unistd.h HAVE_USLEEP )
360
+ check_symbol_exists (utime utime.h HAVE_UTIME )
361
361
362
362
cmake_push_check_state (RESET )
363
363
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
364
- check_symbol_exists (vasprintf " stdio.h" HAVE_VASPRINTF )
364
+ check_symbol_exists (vasprintf stdio.h HAVE_VASPRINTF )
365
365
cmake_pop_check_state ()
366
366
367
367
cmake_push_check_state (RESET )
368
368
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
369
- check_symbol_exists (asprintf " stdio.h" HAVE_ASPRINTF )
369
+ check_symbol_exists (asprintf stdio.h HAVE_ASPRINTF )
370
370
cmake_pop_check_state ()
371
371
372
372
cmake_push_check_state (RESET )
373
373
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
374
- check_symbol_exists (memmem " string.h" HAVE_MEMMEM )
374
+ check_symbol_exists (memmem string .h HAVE_MEMMEM )
375
375
cmake_pop_check_state ()
376
376
377
377
cmake_push_check_state (RESET )
378
378
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
379
- check_symbol_exists (memrchr " string.h" HAVE_MEMRCHR )
379
+ check_symbol_exists (memrchr string .h HAVE_MEMRCHR )
380
380
cmake_pop_check_state ()
381
381
382
- check_symbol_exists (strlcat " string.h" HAVE_STRLCAT )
383
- check_symbol_exists (strlcpy " string.h" HAVE_STRLCPY )
384
- check_symbol_exists (explicit_bzero " string.h" HAVE_EXPLICIT_BZERO )
382
+ check_symbol_exists (strlcat string .h HAVE_STRLCAT )
383
+ check_symbol_exists (strlcpy string .h HAVE_STRLCPY )
384
+ check_symbol_exists (explicit_bzero string .h HAVE_EXPLICIT_BZERO )
385
385
386
386
# Check reentrant functions.
387
387
include (PHP/CheckReentrantFunctions )
@@ -448,12 +448,12 @@ include(PHP/CheckFlushIo)
448
448
449
449
if (HAVE_ALLOCA_H )
450
450
# Most *.nix systems.
451
- check_symbol_exists (alloca " alloca.h" HAVE_ALLOCA )
451
+ check_symbol_exists (alloca alloca.h HAVE_ALLOCA )
452
452
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
453
- check_symbol_exists (alloca " malloc.h" HAVE_ALLOCA )
453
+ check_symbol_exists (alloca malloc.h HAVE_ALLOCA )
454
454
else ()
455
455
# BSD-based systems.
456
- check_symbol_exists (alloca " stdlib.h" HAVE_ALLOCA )
456
+ check_symbol_exists (alloca stdlib.h HAVE_ALLOCA )
457
457
endif ()
458
458
459
459
message (CHECK_START "Checking whether the compiler supports __alignof__" )
0 commit comments