summaryrefslogtreecommitdiff
path: root/m4/wchar_h.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-06 15:18:24 +0100
committerBruno Haible <bruno@clisp.org>2011-02-07 23:36:07 +0100
commit8e5e25f79c3ff689fc3a3aab0fe439064ef76d02 (patch)
tree9a5ed7a76917027d013c147a0878a7b58aaedd77 /m4/wchar_h.m4
parentcaf727a459d4f451f29c2edf565d7d4eb12df6fc (diff)
downloadgnulib-8e5e25f79c3ff689fc3a3aab0fe439064ef76d02.tar.gz
New module 'wcsstr'.
* modules/wcsstr: New file. * lib/wchar.in.h (wcsstr): New declaration. * lib/wcsstr.c: New file. * lib/wcsstr-impl.h: New file, from libutf8 with modifications. * m4/wcsstr.m4: New file. * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared. (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR. * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR. * tests/test-wchar-c++.cc: Test the declaration of wcsstr. * doc/posix-functions/wcsstr.texi: Mention the new module.
Diffstat (limited to 'm4/wchar_h.m4')
-rw-r--r--m4/wchar_h.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/wchar_h.m4 b/m4/wchar_h.m4
index 8b54006da6..9e5fbcdd5e 100644
--- a/m4/wchar_h.m4
+++ b/m4/wchar_h.m4
@@ -53,7 +53,7 @@ AC_DEFUN([gl_WCHAR_H],
wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset
wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp
wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr
- wcscspn wcsspn wcspbrk
+ wcscspn wcsspn wcspbrk wcsstr
])
])
@@ -173,6 +173,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
GNULIB_WCSCSPN=0; AC_SUBST([GNULIB_WCSCSPN])
GNULIB_WCSSPN=0; AC_SUBST([GNULIB_WCSSPN])
GNULIB_WCSPBRK=0; AC_SUBST([GNULIB_WCSPBRK])
+ GNULIB_WCSSTR=0; AC_SUBST([GNULIB_WCSSTR])
dnl Assume proper GNU behavior unless another module says otherwise.
HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
@@ -208,6 +209,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
HAVE_WCSCSPN=1; AC_SUBST([HAVE_WCSCSPN])
HAVE_WCSSPN=1; AC_SUBST([HAVE_WCSSPN])
HAVE_WCSPBRK=1; AC_SUBST([HAVE_WCSPBRK])
+ HAVE_WCSSTR=1; AC_SUBST([HAVE_WCSSTR])
HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])