summaryrefslogtreecommitdiff
path: root/gl/m4/stpcpy.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/stpcpy.m4')
-rw-r--r--gl/m4/stpcpy.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/gl/m4/stpcpy.m4 b/gl/m4/stpcpy.m4
index 241e68c8..f3acbee7 100644
--- a/gl/m4/stpcpy.m4
+++ b/gl/m4/stpcpy.m4
@@ -1,5 +1,5 @@
-# stpcpy.m4 serial 9
-dnl Copyright (C) 2002, 2007, 2009-2022 Free Software Foundation, Inc.
+# stpcpy.m4 serial 11
+dnl Copyright (C) 2002, 2007, 2009-2023 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.
@@ -13,9 +13,12 @@ AC_DEFUN([gl_FUNC_STPCPY],
AC_REQUIRE([AC_C_RESTRICT])
AC_REQUIRE([gl_STRING_H_DEFAULTS])
- AC_CHECK_FUNCS([stpcpy])
+ gl_CHECK_FUNCS_ANDROID([stpcpy], [[#include <string.h>]])
if test $ac_cv_func_stpcpy = no; then
HAVE_STPCPY=0
+ case "$gl_cv_onwards_func_stpcpy" in
+ future*) REPLACE_STPCPY=1 ;;
+ esac
fi
])