X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=m4%2Fmempcpy.m4;h=a3c022f70b25465e7422ec1d634c05138d48b4b8;hb=12a64eb033ac96ccc78f96d66067c70be7d2be90;hp=a5ed8de838ec294ca1cb202aafedf027e630f16f;hpb=521cb5f96a03acba4dd1b3502edff17aa8b52d76;p=gnulib.git diff --git a/m4/mempcpy.m4 b/m4/mempcpy.m4 index a5ed8de83..a3c022f70 100644 --- a/m4/mempcpy.m4 +++ b/m4/mempcpy.m4 @@ -1,18 +1,21 @@ -# 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 10 +dnl Copyright (C) 2003-2004, 2006-2007, 2009 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_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_REPLACE_FUNCS([mempcpy]) if test $ac_cv_func_mempcpy = no; then + HAVE_MEMPCPY=0 gl_PREREQ_MEMPCPY fi ])