diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-17 01:05:54 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-07-24 19:35:11 +0200 |
commit | a405fc138596f552581d2011fd6de02d5c8186c4 (patch) | |
tree | 4c084700b5cb5e9fcedf982a2d921bbc41d9935a /gl/m4/snprintf.m4 | |
parent | 9f2a9ca3d72023ff9b5707d1872c54d65edc9017 (diff) | |
download | monitoring-plugins-a405fc1.tar.gz |
Sync with the latest Gnulib code (1a268176f)
Diffstat (limited to 'gl/m4/snprintf.m4')
-rw-r--r-- | gl/m4/snprintf.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gl/m4/snprintf.m4 b/gl/m4/snprintf.m4 index 3698e844..85209940 100644 --- a/gl/m4/snprintf.m4 +++ b/gl/m4/snprintf.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # snprintf.m4 serial 6 | 1 | # snprintf.m4 serial 7 |
2 | dnl Copyright (C) 2002-2004, 2007-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2007-2021 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -46,6 +46,14 @@ AC_DEFUN([gl_REPLACE_SNPRINTF], | |||
46 | AC_LIBOBJ([snprintf]) | 46 | AC_LIBOBJ([snprintf]) |
47 | if test $ac_cv_func_snprintf = yes; then | 47 | if test $ac_cv_func_snprintf = yes; then |
48 | REPLACE_SNPRINTF=1 | 48 | REPLACE_SNPRINTF=1 |
49 | else | ||
50 | AC_CHECK_DECLS_ONCE([snprintf]) | ||
51 | if test $ac_cv_have_decl_snprintf = yes; then | ||
52 | dnl If the function is declared but does not appear to exist, it may be | ||
53 | dnl defined as an inline function. In order to avoid a conflict, we have | ||
54 | dnl to define rpl_snprintf, not snprintf. | ||
55 | REPLACE_SNPRINTF=1 | ||
56 | fi | ||
49 | fi | 57 | fi |
50 | gl_PREREQ_SNPRINTF | 58 | gl_PREREQ_SNPRINTF |
51 | ]) | 59 | ]) |