diff options
author | Bruno Haible <bruno@clisp.org> | 2011-02-06 23:45:40 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-02-09 20:54:31 +0100 |
commit | 896cde703cb740a97353474e0156b46119b69640 (patch) | |
tree | 998deac35b00ced505137ce03f34fb054570a2bc /m4/wctype.m4 | |
parent | 0224757f8cde66d8224107dbb30a81c3d4a5f9e6 (diff) | |
download | gnulib-896cde703cb740a97353474e0156b46119b69640.tar.gz |
New module 'wctype'.
* modules/wctype: Change to represent the wctype() substitute.
* lib/wctype.in.h (wctype): New declaration.
* lib/wctype.c: New file.
* lib/wctype-impl.h: New file.
* m4/wctype.m4: New file.
* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
(gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
* modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
* tests/test-wctype-h-c++.cc: Test the declaration of wctype.
* doc/posix-functions/wctype.texi: Mention the new module and the
HP-UX 11.00 problem.
Diffstat (limited to 'm4/wctype.m4')
-rw-r--r-- | m4/wctype.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/wctype.m4 b/m4/wctype.m4 new file mode 100644 index 0000000000..93c50d3fa1 --- /dev/null +++ b/m4/wctype.m4 @@ -0,0 +1,14 @@ +# wctype.m4 serial 1 +dnl Copyright (C) 2011 Free Software Foundation, Inc. +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. + +AC_DEFUN([gl_FUNC_WCTYPE], +[ + AC_REQUIRE([gl_WCTYPE_H_DEFAULTS]) + AC_REQUIRE([gl_WCTYPE_H]) + if test $HAVE_WCTYPE_T = 0; then + AC_LIBOBJ([wctype]) + fi +]) |