Home | History | Annotate | Line # | Download | only in m4
      1  1.1.1.2  christos # mempcpy.m4 serial 12
      2  1.1.1.2  christos dnl Copyright (C) 2003-2004, 2006-2007, 2009-2022 Free Software Foundation,
      3      1.1  christos dnl Inc.
      4      1.1  christos dnl This file is free software; the Free Software Foundation
      5      1.1  christos dnl gives unlimited permission to copy and/or distribute it,
      6      1.1  christos dnl with or without modifications, as long as this notice is preserved.
      7      1.1  christos 
      8      1.1  christos AC_DEFUN([gl_FUNC_MEMPCPY],
      9      1.1  christos [
     10      1.1  christos   dnl Persuade glibc <string.h> to declare mempcpy().
     11      1.1  christos   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
     12      1.1  christos 
     13      1.1  christos   dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'.
     14      1.1  christos   AC_REQUIRE([AC_C_RESTRICT])
     15      1.1  christos 
     16  1.1.1.2  christos   AC_REQUIRE([gl_STRING_H_DEFAULTS])
     17      1.1  christos   AC_CHECK_FUNCS([mempcpy])
     18      1.1  christos   if test $ac_cv_func_mempcpy = no; then
     19      1.1  christos     HAVE_MEMPCPY=0
     20      1.1  christos   fi
     21      1.1  christos ])
     22      1.1  christos 
     23      1.1  christos # Prerequisites of lib/mempcpy.c.
     24      1.1  christos AC_DEFUN([gl_PREREQ_MEMPCPY], [
     25      1.1  christos   :
     26      1.1  christos ])
     27