|
@@ -995,6 +995,11 @@ if(CURL_CA_PATH_SET AND NOT USE_OPENSSL AND NOT USE_MBEDTLS)
|
|
|
"Set CURL_CA_PATH=none or enable one of those TLS backends.")
|
|
|
endif()
|
|
|
|
|
|
+# TODO: offload these headers to the specific tests where they are needed.
|
|
|
+list(APPEND CURL_INCLUDES "string.h")
|
|
|
+list(APPEND CURL_INCLUDES "stdlib.h")
|
|
|
+list(APPEND CURL_INCLUDES "stddef.h")
|
|
|
+
|
|
|
# Check for header files
|
|
|
if(NOT UNIX)
|
|
|
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
|
@@ -1032,14 +1037,9 @@ check_include_file("linux/tcp.h" HAVE_LINUX_TCP_H)
|
|
|
|
|
|
check_include_file_concat("poll.h" HAVE_POLL_H)
|
|
|
check_include_file_concat("pwd.h" HAVE_PWD_H)
|
|
|
-check_include_file_concat("setjmp.h" HAVE_SETJMP_H)
|
|
|
-check_include_file_concat("signal.h" HAVE_SIGNAL_H)
|
|
|
check_include_file_concat("stdatomic.h" HAVE_STDATOMIC_H)
|
|
|
check_include_file_concat("stdbool.h" HAVE_STDBOOL_H)
|
|
|
check_include_file_concat("stdint.h" HAVE_STDINT_H)
|
|
|
-check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
|
|
-check_include_file_concat("stdlib.h" HAVE_STDLIB_H)
|
|
|
-check_include_file_concat("string.h" HAVE_STRING_H)
|
|
|
check_include_file_concat("strings.h" HAVE_STRINGS_H)
|
|
|
check_include_file_concat("stropts.h" HAVE_STROPTS_H)
|
|
|
check_include_file_concat("termio.h" HAVE_TERMIO_H)
|
|
@@ -1048,8 +1048,6 @@ check_include_file_concat("time.h" HAVE_TIME_H)
|
|
|
check_include_file_concat("unistd.h" HAVE_UNISTD_H)
|
|
|
check_include_file_concat("utime.h" HAVE_UTIME_H)
|
|
|
|
|
|
-check_include_file_concat("stddef.h" HAVE_STDDEF_H)
|
|
|
-
|
|
|
check_type_size(size_t SIZEOF_SIZE_T)
|
|
|
check_type_size(ssize_t SIZEOF_SSIZE_T)
|
|
|
check_type_size("long long" SIZEOF_LONG_LONG)
|
|
@@ -1123,8 +1121,8 @@ endif()
|
|
|
check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO)
|
|
|
check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE)
|
|
|
check_symbol_exists(ftruncate "${CURL_INCLUDES}" HAVE_FTRUNCATE)
|
|
|
-check_symbol_exists(fseeko "${CURL_INCLUDES}" HAVE_FSEEKO)
|
|
|
-check_symbol_exists(_fseeki64 "${CURL_INCLUDES}" HAVE__FSEEKI64)
|
|
|
+check_symbol_exists(fseeko "${CURL_INCLUDES};stdio.h" HAVE_FSEEKO)
|
|
|
+check_symbol_exists(_fseeki64 "${CURL_INCLUDES};stdio.h" HAVE__FSEEKI64)
|
|
|
check_symbol_exists(getpeername "${CURL_INCLUDES}" HAVE_GETPEERNAME)
|
|
|
check_symbol_exists(getsockname "${CURL_INCLUDES}" HAVE_GETSOCKNAME)
|
|
|
check_symbol_exists(if_nametoindex "${CURL_INCLUDES}" HAVE_IF_NAMETOINDEX)
|
|
@@ -1163,16 +1161,12 @@ set(CMAKE_EXTRA_INCLUDE_FILES "")
|
|
|
|
|
|
# sigaction and sigsetjmp are special. Use special mechanism for
|
|
|
# detecting those, but only if previous attempt failed.
|
|
|
-if(HAVE_SIGNAL_H)
|
|
|
- check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
|
|
|
-endif()
|
|
|
+check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
|
|
|
|
|
|
if(NOT HAVE_SIGSETJMP)
|
|
|
- if(HAVE_SETJMP_H)
|
|
|
- check_symbol_exists(sigsetjmp "setjmp.h" HAVE_MACRO_SIGSETJMP)
|
|
|
- if(HAVE_MACRO_SIGSETJMP)
|
|
|
- set(HAVE_SIGSETJMP 1)
|
|
|
- endif()
|
|
|
+ check_symbol_exists(sigsetjmp "setjmp.h" HAVE_MACRO_SIGSETJMP)
|
|
|
+ if(HAVE_MACRO_SIGSETJMP)
|
|
|
+ set(HAVE_SIGSETJMP 1)
|
|
|
endif()
|
|
|
endif()
|
|
|
|