X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmempcpy.m4;h=7214a4b39ab0c09ccd6a45610ca986a74f6e7795;hb=395f9e6a19b504609aa8b0bd7f8cc55d4547d8dd;hp=a5ed8de838ec294ca1cb202aafedf027e630f16f;hpb=521cb5f96a03acba4dd1b3502edff17aa8b52d76;p=gnulib.git diff --git a/m4/mempcpy.m4 b/m4/mempcpy.m4 index a5ed8de83..7214a4b39 100644 --- a/m4/mempcpy.m4 +++ b/m4/mempcpy.m4 @@ -1,19 +1,22 @@ -# mempcpy.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. +# mempcpy.m4 serial 11 +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2011 Free Software Foundation, +dnl 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_MEMPCPY], [ dnl Persuade glibc to declare mempcpy(). - AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_REPLACE_FUNCS(mempcpy) + dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'. + AC_REQUIRE([AC_C_RESTRICT]) + + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS([mempcpy]) if test $ac_cv_func_mempcpy = no; then - gl_PREREQ_MEMPCPY + HAVE_MEMPCPY=0 fi ])