Mercurial > hg > octave-jordi > gnulib-hg
diff m4/wcscpy.m4 @ 14283:f6f1da9d12f7
New module 'wcscpy'.
* modules/wcscpy: New file.
* lib/wchar.in.h (wcscpy): New declaration.
* lib/wcscpy.c: New file.
* lib/wcscpy-impl.h: New file, from libutf8 with modifications.
* m4/wcscpy.m4: New file.
* m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
(gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
* modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
* tests/test-wchar-c++.cc: Test the declaration of wcscpy.
* doc/posix-functions/wcscpy.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 05 Feb 2011 14:23:31 +0100 (2011-02-05) |
parents | |
children | 221c01a6249f |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/m4/wcscpy.m4 @@ -0,0 +1,15 @@ +# wcscpy.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_WCSCPY], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([wcscpy]) + if test $ac_cv_func_wcscpy = no; then + HAVE_WCSCPY=0 + AC_LIBOBJ([wcscpy]) + fi +])