diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-02-23 19:51:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-02-23 19:51:05 +0100 |
commit | 429820b180ffd5e43028722e36b013bad6c215ac (patch) | |
tree | 99f4d871721d75b245ad2f6a2abbe3a838c266a0 /m4 | |
parent | 539ed6f02ab51083592a463421ae4c4555a740cc (diff) |
strcasestr: remove check for this unused function
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-functions.m4 | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index d3bff078d..fdf004b8e 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -5867,92 +5867,6 @@ AC_DEFUN([CURL_CHECK_FUNC_STRCASECMP], [ fi ]) - -dnl CURL_CHECK_FUNC_STRCASESTR -dnl ------------------------------------------------- -dnl Verify if strcasestr is available, prototyped, and -dnl can be compiled. If all of these are true, and -dnl usage has not been previously disallowed with -dnl shell variable curl_disallow_strcasestr, then -dnl HAVE_STRCASESTR will be defined. - -AC_DEFUN([CURL_CHECK_FUNC_STRCASESTR], [ - AC_REQUIRE([CURL_INCLUDES_STRING])dnl - # - tst_links_strcasestr="unknown" - tst_proto_strcasestr="unknown" - tst_compi_strcasestr="unknown" - tst_allow_strcasestr="unknown" - # - AC_MSG_CHECKING([if strcasestr can be linked]) - AC_LINK_IFELSE([ - AC_LANG_FUNC_LINK_TRY([strcasestr]) - ],[ - AC_MSG_RESULT([yes]) - tst_links_strcasestr="yes" - ],[ - AC_MSG_RESULT([no]) - tst_links_strcasestr="no" - ]) - # - if test "$tst_links_strcasestr" = "yes"; then - AC_MSG_CHECKING([if strcasestr is prototyped]) - AC_EGREP_CPP([strcasestr],[ - $curl_includes_string - ],[ - AC_MSG_RESULT([yes]) - tst_proto_strcasestr="yes" - ],[ - AC_MSG_RESULT([no]) - tst_proto_strcasestr="no" - ]) - fi - # - if test "$tst_proto_strcasestr" = "yes"; then - AC_MSG_CHECKING([if strcasestr is compilable]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[ - $curl_includes_string - ]],[[ - if(0 != strcasestr(0, 0)) - return 1; - ]]) - ],[ - AC_MSG_RESULT([yes]) - tst_compi_strcasestr="yes" - ],[ - AC_MSG_RESULT([no]) - tst_compi_strcasestr="no" - ]) - fi - # - if test "$tst_compi_strcasestr" = "yes"; then - AC_MSG_CHECKING([if strcasestr usage allowed]) - if test "x$curl_disallow_strcasestr" != "xyes"; then - AC_MSG_RESULT([yes]) - tst_allow_strcasestr="yes" - else - AC_MSG_RESULT([no]) - tst_allow_strcasestr="no" - fi - fi - # - AC_MSG_CHECKING([if strcasestr might be used]) - if test "$tst_links_strcasestr" = "yes" && - test "$tst_proto_strcasestr" = "yes" && - test "$tst_compi_strcasestr" = "yes" && - test "$tst_allow_strcasestr" = "yes"; then - AC_MSG_RESULT([yes]) - AC_DEFINE_UNQUOTED(HAVE_STRCASESTR, 1, - [Define to 1 if you have the strcasestr function.]) - ac_cv_func_strcasestr="yes" - else - AC_MSG_RESULT([no]) - ac_cv_func_strcasestr="no" - fi -]) - - dnl CURL_CHECK_FUNC_STRCMPI dnl ------------------------------------------------- dnl Verify if strcmpi is available, prototyped, and |