1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00
Files
coreutils/m4/strcase.m4
T

40 lines
984 B
Plaintext
Raw Normal View History

2005-12-02 00:42:52 +00:00
# strcase.m4 serial 3
2005-09-22 06:44:26 +00:00
dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
2005-01-22 06:25:53 +00:00
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
2003-08-17 17:58:01 +00:00
AC_DEFUN([gl_STRCASE],
[
gl_FUNC_STRCASECMP
gl_FUNC_STRNCASECMP
])
AC_DEFUN([gl_FUNC_STRCASECMP],
[
2005-09-22 06:44:26 +00:00
dnl No known system has a strcasecmp() function that works correctly in
dnl multibyte locales. Therefore we use our version always.
AC_LIBOBJ(strcasecmp)
AC_DEFINE(strcasecmp, rpl_strcasecmp, [Define to rpl_strcasecmp always.])
gl_PREREQ_STRCASECMP
2003-08-17 17:58:01 +00:00
])
AC_DEFUN([gl_FUNC_STRNCASECMP],
[
AC_REPLACE_FUNCS(strncasecmp)
if test $ac_cv_func_strncasecmp = no; then
gl_PREREQ_STRNCASECMP
fi
])
# Prerequisites of lib/strcasecmp.c.
AC_DEFUN([gl_PREREQ_STRCASECMP], [
2005-12-02 00:42:52 +00:00
AC_REQUIRE([gl_FUNC_MBRTOWC])
:
2003-08-17 17:58:01 +00:00
])
# Prerequisites of lib/strncasecmp.c.
AC_DEFUN([gl_PREREQ_STRNCASECMP], [
:
])