mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
strcasestr: remove check for this unused function
This commit is contained in:
parent
539ed6f02a
commit
429820b180
@ -3039,7 +3039,6 @@ CURL_CHECK_FUNC_SIGSETJMP
|
||||
CURL_CHECK_FUNC_SOCKET
|
||||
CURL_CHECK_FUNC_SOCKETPAIR
|
||||
CURL_CHECK_FUNC_STRCASECMP
|
||||
CURL_CHECK_FUNC_STRCASESTR
|
||||
CURL_CHECK_FUNC_STRCMPI
|
||||
CURL_CHECK_FUNC_STRDUP
|
||||
CURL_CHECK_FUNC_STRERROR_R
|
||||
|
@ -504,9 +504,6 @@
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
#define HAVE_STRCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the `strcasestr' function. */
|
||||
#define HAVE_STRCASESTR 1
|
||||
|
||||
/* Define to 1 if you have the `strcmpi' function. */
|
||||
/* #undef HAVE_STRCMPI */
|
||||
|
||||
|
@ -571,9 +571,6 @@
|
||||
/* Define to 1 if you have the strcasecmp function. */
|
||||
#define HAVE_STRCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the strcasestr function. */
|
||||
/* #undef HAVE_STRCASESTR */
|
||||
|
||||
/* Define to 1 if you have the strcmpi function. */
|
||||
/* #undef HAVE_STRCMPI */
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user