diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/m4/warn-on-use.m4 | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/m4/warn-on-use.m4')
-rw-r--r-- | gl/m4/warn-on-use.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gl/m4/warn-on-use.m4 b/gl/m4/warn-on-use.m4 index 10649c5..6c8c76b 100644 --- a/gl/m4/warn-on-use.m4 +++ b/gl/m4/warn-on-use.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # warn-on-use.m4 serial 10 | 1 | # warn-on-use.m4 |
2 | dnl Copyright (C) 2010-2023 Free Software Foundation, Inc. | 2 | # serial 11 |
3 | dnl Copyright (C) 2010-2024 Free Software Foundation, Inc. | ||
3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
@@ -36,7 +37,7 @@ AC_DEFUN([gl_WARN_ON_USE_PREPARE], | |||
36 | dnl clang (e.g. strndup), reference ac_compile_for_check_decl instead | 37 | dnl clang (e.g. strndup), reference ac_compile_for_check_decl instead |
37 | dnl of ac_compile. If, for whatever reason, the override of AC_PROG_CC | 38 | dnl of ac_compile. If, for whatever reason, the override of AC_PROG_CC |
38 | dnl in zzgnulib.m4 is inactive, use the original ac_compile. | 39 | dnl in zzgnulib.m4 is inactive, use the original ac_compile. |
39 | ac_save_ac_compile="$ac_compile" | 40 | ac_saved_ac_compile="$ac_compile" |
40 | if test -n "$ac_compile_for_check_decl"; then | 41 | if test -n "$ac_compile_for_check_decl"; then |
41 | ac_compile="$ac_compile_for_check_decl" | 42 | ac_compile="$ac_compile_for_check_decl" |
42 | fi | 43 | fi |
@@ -46,7 +47,7 @@ AC_DEFUN([gl_WARN_ON_USE_PREPARE], | |||
46 | [[#undef $gl_func | 47 | [[#undef $gl_func |
47 | (void) $gl_func;]])], | 48 | (void) $gl_func;]])], |
48 | [AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])]) | 49 | [AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])]) |
49 | ac_compile="$ac_save_ac_compile" | 50 | ac_compile="$ac_saved_ac_compile" |
50 | AS_VAR_IF([gl_Symbol], [yes], | 51 | AS_VAR_IF([gl_Symbol], [yes], |
51 | [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) | 52 | [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) |
52 | dnl Shortcut for an AC_CHECK_DECL invocation that may come later: | 53 | dnl Shortcut for an AC_CHECK_DECL invocation that may come later: |