Mercurial > hg > octave-shane > gnulib-hg
comparison m4/wchar_h.m4 @ 14277:91a2110f419b
New module 'wmemcmp'.
* modules/wmemcmp: New file.
* lib/wchar.in.h (wmemcmp): New declaration.
* lib/wmemcmp.c: New file.
* lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
* m4/wmemcmp.m4: New file.
* m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
(gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
* modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
* tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
* doc/posix-functions/wmemcmp.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 05 Feb 2011 12:47:22 +0100 |
parents | 27d6460ec7c1 |
children | fe5382375992 |
comparison
equal
deleted
inserted
replaced
14276:6b7046963230 | 14277:91a2110f419b |
---|---|
48 # include <time.h> | 48 # include <time.h> |
49 #endif | 49 #endif |
50 #include <wchar.h> | 50 #include <wchar.h> |
51 ]], | 51 ]], |
52 [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb | 52 [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb |
53 wcsrtombs wcsnrtombs wcwidth wmemchr | 53 wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp |
54 ]) | 54 ]) |
55 ]) | 55 ]) |
56 | 56 |
57 dnl Check whether <wchar.h> is usable at all. | 57 dnl Check whether <wchar.h> is usable at all. |
58 AC_DEFUN([gl_WCHAR_H_INLINE_OK], | 58 AC_DEFUN([gl_WCHAR_H_INLINE_OK], |
144 GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB]) | 144 GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB]) |
145 GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS]) | 145 GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS]) |
146 GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS]) | 146 GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS]) |
147 GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) | 147 GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) |
148 GNULIB_WMEMCHR=0; AC_SUBST([GNULIB_WMEMCHR]) | 148 GNULIB_WMEMCHR=0; AC_SUBST([GNULIB_WMEMCHR]) |
149 GNULIB_WMEMCMP=0; AC_SUBST([GNULIB_WMEMCMP]) | |
149 dnl Assume proper GNU behavior unless another module says otherwise. | 150 dnl Assume proper GNU behavior unless another module says otherwise. |
150 HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) | 151 HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) |
151 HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) | 152 HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) |
152 HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC]) | 153 HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC]) |
153 HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN]) | 154 HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN]) |
155 HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS]) | 156 HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS]) |
156 HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB]) | 157 HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB]) |
157 HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS]) | 158 HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS]) |
158 HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS]) | 159 HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS]) |
159 HAVE_WMEMCHR=1; AC_SUBST([HAVE_WMEMCHR]) | 160 HAVE_WMEMCHR=1; AC_SUBST([HAVE_WMEMCHR]) |
161 HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP]) | |
160 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) | 162 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) |
161 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) | 163 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) |
162 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) | 164 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) |
163 REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) | 165 REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) |
164 REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB]) | 166 REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB]) |