File tree Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function(_acl_check result)
6363 endif ()
6464
6565 if (NOT ACL_USE_USER_GROUP)
66- check_symbol_exists(acl_free " sys/acl.h" _acl_successful)
66+ check_symbol_exists(acl_free sys/acl.h _acl_successful)
6767 else ()
6868 check_source_compiles(C [[
6969 #include <sys/acl.h>
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ endif()
7878if (NOT DEFINED Crypt_IS_BUILT_IN)
7979 cmake_push_check_state(RESET)
8080 set (CMAKE_REQUIRED_QUIET TRUE )
81- check_symbol_exists(crypt " unistd.h" Crypt_IS_BUILT_IN)
81+ check_symbol_exists(crypt unistd.h Crypt_IS_BUILT_IN)
8282 cmake_pop_check_state()
8383endif ()
8484
@@ -122,7 +122,7 @@ else()
122122 set (CMAKE_REQUIRED_INCLUDES ${Crypt_INCLUDE_DIR} )
123123 set (CMAKE_REQUIRED_LIBRARIES ${Crypt_LIBRARY} )
124124 set (CMAKE_REQUIRED_QUIET TRUE )
125- check_symbol_exists(crypt " unistd.h" _Crypt_SANITY_CHECK)
125+ check_symbol_exists(crypt unistd.h _Crypt_SANITY_CHECK)
126126 cmake_pop_check_state()
127127
128128 mark_as_advanced (Crypt_INCLUDE_DIR Crypt_LIBRARY)
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ endif()
5757if (NOT DEFINED Ndbm_IS_BUILT_IN)
5858 cmake_push_check_state(RESET)
5959 set (CMAKE_REQUIRED_QUIET TRUE )
60- check_symbol_exists(dbm_open " ndbm.h" Ndbm_IS_BUILT_IN)
60+ check_symbol_exists(dbm_open ndbm.h Ndbm_IS_BUILT_IN)
6161 cmake_pop_check_state()
6262endif ()
6363
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ include(CMakePushCheckState)
3737
3838cmake_push_check_state(RESET)
3939 set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
40- check_symbol_exists(fopencookie " stdio.h" _HAVE_FOPENCOOKIE)
40+ check_symbol_exists(fopencookie stdio.h _HAVE_FOPENCOOKIE)
4141cmake_pop_check_state()
4242
4343if (NOT _HAVE_FOPENCOOKIE)
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ block()
9393 endif ()
9494
9595 if (HAVE_SYS_MKDEV_H)
96- check_symbol_exists(major " sys/mkdev.h" MAJOR_IN_MKDEV)
96+ check_symbol_exists(major sys/mkdev.h MAJOR_IN_MKDEV)
9797 list (APPEND headers "sys/mkdev.h" )
9898 elseif (HAVE_SYS_SYSMACROS_H)
99- check_symbol_exists(major " sys/sysmacros.h" MAJOR_IN_SYSMACROS)
99+ check_symbol_exists(major sys/sysmacros.h MAJOR_IN_SYSMACROS)
100100 list (APPEND headers "sys/sysmacros.h" )
101101 endif ()
102102
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ if(TARGET Iconv::Iconv)
9494 # Sanity and library type checks.
9595 if (Iconv_IS_BUILT_IN)
9696 # When iconv is built into C library, first check if iconv function exists.
97- check_symbol_exists(iconv " iconv.h" _HAVE_ICONV)
97+ check_symbol_exists(iconv iconv.h _HAVE_ICONV)
9898
9999 # And if not, then check for libiconv function.
100100 if (NOT _HAVE_ICONV)
101- check_symbol_exists(libiconv " iconv.h" HAVE_LIBICONV)
101+ check_symbol_exists(libiconv iconv.h HAVE_LIBICONV)
102102 endif ()
103103 else ()
104104 check_library_exists(Iconv::Iconv libiconv "" HAVE_LIBICONV)
@@ -124,7 +124,7 @@ if(TARGET Iconv::Iconv)
124124 cmake_push_check_state(RESET)
125125 set (CMAKE_REQUIRED_LIBRARIES Iconv::Iconv)
126126 set (CMAKE_REQUIRED_QUIET TRUE )
127- check_symbol_exists(_libiconv_version " iconv.h" _have_gnu_libiconv)
127+ check_symbol_exists(_libiconv_version iconv.h _have_gnu_libiconv)
128128 cmake_pop_check_state()
129129 if (_have_gnu_libiconv)
130130 message (CHECK_PASS "GNU libiconv" )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ target_compile_definitions(
103103
104104# The libmbfl configuration header.
105105check_include_files(strings .h HAVE_STRINGS_H)
106- check_symbol_exists(strcasecmp " strings.h" HAVE_STRCASECMP)
106+ check_symbol_exists(strcasecmp strings .h HAVE_STRCASECMP)
107107
108108cmake_path(
109109 RELATIVE_PATH
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ add_feature_info(
292292# Configuration checks.
293293################################################################################
294294
295- check_symbol_exists(mprotect " sys/mman.h" HAVE_MPROTECT)
295+ check_symbol_exists(mprotect sys/mman.h HAVE_MPROTECT)
296296
297297# Check for shared memory support.
298298include (cmake/CheckSHM.cmake)
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ endblock()
169169if (TARGET OpenSSL::SSL)
170170 cmake_push_check_state(RESET)
171171 set (CMAKE_REQUIRED_LIBRARIES OpenSSL::SSL)
172- check_symbol_exists(RAND_egd " openssl/rand.h" HAVE_RAND_EGD)
172+ check_symbol_exists(RAND_egd openssl/rand.h HAVE_RAND_EGD)
173173 cmake_pop_check_state()
174174
175175 if (PHP_EXT_OPENSSL_SYSTEM_CIPHERS)
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ target_sources(
4848
4949target_compile_definitions (php_ext_random PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)
5050
51- check_symbol_exists(arc4random_buf " stdlib.h" HAVE_DECL_ARC4RANDOM_BUF)
52- check_symbol_exists(getrandom " sys/random.h" HAVE_GETRANDOM)
51+ check_symbol_exists(arc4random_buf stdlib.h HAVE_DECL_ARC4RANDOM_BUF)
52+ check_symbol_exists(getrandom sys/random.h HAVE_GETRANDOM)
5353
5454# Check for CCRandomGenerateBytes. Header was absent in previous macOS releases.
5555block()
You can’t perform that action at this time.
0 commit comments