3 dnl Copyright (C) 2002, 2007, 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_FUNC_STPCPY],
10 dnl Persuade glibc <string.h> to declare stpcpy().
11 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
13 dnl The stpcpy() declaration in lib/string.in.h uses 'restrict'.
14 AC_REQUIRE([AC_C_RESTRICT])
16 AC_REQUIRE([gl_STRING_H_DEFAULTS])
17 gl_CHECK_FUNCS_ANDROID([stpcpy], [[#include <string.h>]])
18 if test $ac_cv_func_stpcpy = no; then
20 case "$gl_cv_onwards_func_stpcpy" in
21 future*) REPLACE_STPCPY=1 ;;
26 # Prerequisites of lib/stpcpy.c.
27 AC_DEFUN([gl_PREREQ_STPCPY], [