xstrtol: Improve documentation.
[gnulib.git] / m4 / strcase.m4
blob63021733bd3e5e69cca419a9e79fe0e8109d3b51
1 # strcase.m4
2 # serial 12
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.
8 AC_DEFUN([gl_STRCASE],
10   gl_FUNC_STRCASECMP
11   gl_FUNC_STRNCASECMP
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
19     HAVE_STRCASECMP=0
20   fi
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
28     HAVE_STRNCASECMP=1
29   else
30     HAVE_STRNCASECMP=0
31   fi
32   AC_CHECK_DECLS([strncasecmp])
33   if test $ac_cv_have_decl_strncasecmp = no; then
34     HAVE_DECL_STRNCASECMP=0
35   fi
38 # Prerequisites of lib/strcasecmp.c.
39 AC_DEFUN([gl_PREREQ_STRCASECMP], [
40   :
43 # Prerequisites of lib/strncasecmp.c.
44 AC_DEFUN([gl_PREREQ_STRNCASECMP], [
45   :