New module 'strcasestr'.
[gnulib.git] / m4 / strcasestr.m4
1 # strcasestr.m4 serial 1
2 dnl Copyright (C) 2005 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_STRCASESTR],
8 [
9   dnl No known system has a strcasestr() function that works correctly in
10   dnl multibyte locales. Therefore we use our version always.
11   AC_LIBOBJ(strcasestr)
12   AC_DEFINE(strcasestr, rpl_strcasestr, [Define to rpl_strcasestr always.])
13   gl_PREREQ_STRCASESTR
14 ])
15
16 # Prerequisites of lib/strcasestr.c.
17 AC_DEFUN([gl_PREREQ_STRCASESTR], [
18   gl_FUNC_MBRTOWC
19 ])