strcasestr: remove check for this unused function
authorDaniel Stenberg <daniel@haxx.se>
Sat, 23 Feb 2013 18:51:05 +0000 (19:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 23 Feb 2013 18:51:05 +0000 (19:51 +0100)
configure.ac
lib/config-symbian.h
lib/config-vxworks.h
m4/curl-functions.m4

index baacf9f..d77cfe0 100644 (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
index 754319f..17d92b0 100644 (file)
 /* 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 */
 
index ab12876..c94534a 100644 (file)
 /* 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 */
 
index d3bff07..fdf004b 100644 (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