strcasestr: remove check for this unused function

This commit is contained in:
Daniel Stenberg 2013-02-23 19:51:05 +01:00
parent 539ed6f02a
commit 429820b180
4 changed files with 0 additions and 93 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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 */

View File

@ -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