diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-02-11 06:20:24 (GMT) |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-02-11 06:20:24 (GMT) |
commit | f867d7b44080fa9716deeff4476275f9a489879f (patch) | |
tree | bc964662fc3300dc626fb6d833d8ed5c8f46eca7 /gl/m4/vsnprintf.m4 | |
parent | 9734c439cba0a02b087e50789e94ec9b07754608 (diff) | |
parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
download | monitoring-plugins-f867d7b44080fa9716deeff4476275f9a489879f.tar.gz |
Merge branch 'master' into curlfixes
Diffstat (limited to 'gl/m4/vsnprintf.m4')
-rw-r--r-- | gl/m4/vsnprintf.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gl/m4/vsnprintf.m4 b/gl/m4/vsnprintf.m4 index 4900764..7fbb11c 100644 --- a/gl/m4/vsnprintf.m4 +++ b/gl/m4/vsnprintf.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # vsnprintf.m4 serial 6 | 1 | # vsnprintf.m4 serial 7 |
2 | dnl Copyright (C) 2002-2004, 2007-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2007-2023 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_VSNPRINTF], | |||
46 | AC_LIBOBJ([vsnprintf]) | 46 | AC_LIBOBJ([vsnprintf]) |
47 | if test $ac_cv_func_vsnprintf = yes; then | 47 | if test $ac_cv_func_vsnprintf = yes; then |
48 | REPLACE_VSNPRINTF=1 | 48 | REPLACE_VSNPRINTF=1 |
49 | else | ||
50 | AC_CHECK_DECLS_ONCE([vsnprintf]) | ||
51 | if test $ac_cv_have_decl_vsnprintf = 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_vsnprintf, not vsnprintf. | ||
55 | REPLACE_VSNPRINTF=1 | ||
56 | fi | ||
49 | fi | 57 | fi |
50 | gl_PREREQ_VSNPRINTF | 58 | gl_PREREQ_VSNPRINTF |
51 | ]) | 59 | ]) |