diff options
author | Bruno Haible <bruno@clisp.org> | 2011-04-01 23:23:34 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-04-01 23:24:07 +0200 |
commit | b64c50cfe4fca783f23341fffebc7d8f84f58820 (patch) | |
tree | e16ce825280dfce20e017be7a098ef8a95eb9862 /m4/wcpcpy.m4 | |
parent | dec3475763be252103922a887920012eeb32dc26 (diff) | |
download | gnulib-b64c50cfe4fca783f23341fffebc7d8f84f58820.tar.gz |
wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
* m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
* m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
* modules/wcpcpy (Depends-on): Add extensions.
* modules/wcpncpy (Depends-on): Likewise.
* doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
systems.
* doc/posix-functions/wcpncpy.texi: Likewise.
* doc/posix-functions/wcwidth.texi: Likewise.
Diffstat (limited to 'm4/wcpcpy.m4')
-rw-r--r-- | m4/wcpcpy.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/wcpcpy.m4 b/m4/wcpcpy.m4 index 5ffe1a12e0..b23c0ef9ba 100644 --- a/m4/wcpcpy.m4 +++ b/m4/wcpcpy.m4 @@ -1,4 +1,4 @@ -# wcpcpy.m4 serial 1 +# wcpcpy.m4 serial 2 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, @@ -7,6 +7,10 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_WCPCPY], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + dnl Persuade glibc <wchar.h> to declare wcpcpy(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([wcpcpy]) if test $ac_cv_func_wcpcpy = no; then HAVE_WCPCPY=0 |