From d85d34cb8df00e1cd9b78b27bcff55854b60d687 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 May 2021 11:09:55 +0200 Subject: configure/cmake: check for memmem --- CMakeLists.txt | 1 + configure.ac | 1 + lib/curl_config.h.cmake | 3 +++ 3 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02474e29c..9934cc477 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -990,6 +990,7 @@ check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL) check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP) check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR) +check_symbol_exists(memmem "${CURL_INCLUDES}" HAVE_MEMMEM) check_symbol_exists(strtok_r "${CURL_INCLUDES}" HAVE_STRTOK_R) check_symbol_exists(strftime "${CURL_INCLUDES}" HAVE_STRFTIME) check_symbol_exists(uname "${CURL_INCLUDES}" HAVE_UNAME) diff --git a/configure.ac b/configure.ac index 8b3ff904c..bad25d48a 100755 --- a/configure.ac +++ b/configure.ac @@ -3352,6 +3352,7 @@ AC_CHECK_FUNCS([fnmatch \ gettimeofday \ if_nametoindex \ mach_absolute_time \ + memmem \ pipe \ setlocale \ setmode \ diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index fbe17bc5b..553b74990 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -662,6 +662,9 @@ /* Define to 1 if you have the strstr function. */ #cmakedefine HAVE_STRSTR 1 +/* Define to 1 if you have the memmem function. */ +#cmakedefine HAVE_MEMMEM 1 + /* Define to 1 if you have the strtok_r function. */ #cmakedefine HAVE_STRTOK_R 1 -- cgit v1.2.1