X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fwcpcpy.m4;h=b23c0ef9ba01725abe9853b58316f891e53e6977;hb=264aa350f10afaedbd96ca64f232c8b4498a37f4;hp=5ffe1a12e0b2b92cef74aaeae3796069f37135c8;hpb=0fd07686f8cf0e1f3e025f3598090d938dbf4e80;p=gnulib.git diff --git a/m4/wcpcpy.m4 b/m4/wcpcpy.m4 index 5ffe1a12e..b23c0ef9b 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 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