dnl Checks for library functions.
AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
+AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr strcasestr \
uname flock lockf inet_aton inet_addr \
fchmod mkstemp truncate getuid regcomp)
return str;
}
+#ifndef HAVE_STRCASESTR
/* Similar to `strstr' but this function ignores the case of both strings. */
gchar *strcasestr(const gchar *haystack, const gchar *needle)
{
return strncasestr(haystack, haystack_len, needle);
}
+#endif /* HAVE_STRCASESTR */
gchar *strncasestr(const gchar *haystack, gint haystack_len, const gchar *needle)
{
gchar *strtailchomp (gchar *str,
gchar tail_char);
gchar *strcrchomp (gchar *str);
+#ifndef HAVE_STRCASESTR
gchar *strcasestr (const gchar *haystack,
const gchar *needle);
+#endif /* HAVE_STRCASESTR */
gchar *strncasestr (const gchar *haystack,
gint haystack_len,
const gchar *needle);