3 dnl Copyright (C) 2002, 2005-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
14 AC_DEFUN([gl_FUNC_STRCASECMP],
16 AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
17 AC_CHECK_FUNCS([strcasecmp])
18 if test $ac_cv_func_strcasecmp = no; then
23 AC_DEFUN([gl_FUNC_STRNCASECMP],
25 AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
26 AC_CHECK_FUNCS([strncasecmp])
27 if test $ac_cv_func_strncasecmp = yes; then
32 AC_CHECK_DECLS([strncasecmp])
33 if test $ac_cv_have_decl_strncasecmp = no; then
34 HAVE_DECL_STRNCASECMP=0
38 # Prerequisites of lib/strcasecmp.c.
39 AC_DEFUN([gl_PREREQ_STRCASECMP], [
43 # Prerequisites of lib/strncasecmp.c.
44 AC_DEFUN([gl_PREREQ_STRNCASECMP], [