diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-02-10 10:43:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 10:43:20 (GMT) |
commit | c07206f2ccc2356aa74bc6813a94c2190017d44e (patch) | |
tree | 1677e5fdca5c3ce544e92c5484e16a0b68df1cc9 /gl/m4/environ.m4 | |
parent | e92046f810658016b7c373677efefda3b21400e4 (diff) | |
parent | d2fcf49ad4afc15f37d082d7bc96a808369ec2d4 (diff) | |
download | monitoring-plugins-c07206f2ccc2356aa74bc6813a94c2190017d44e.tar.gz |
Merge pull request #1832 from RincewindsHat/gnulib_update_2023
Gnulib update 2023 and attendant fixes
Diffstat (limited to 'gl/m4/environ.m4')
-rw-r--r-- | gl/m4/environ.m4 | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gl/m4/environ.m4 b/gl/m4/environ.m4 index 593a33e..741dfc5 100644 --- a/gl/m4/environ.m4 +++ b/gl/m4/environ.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # environ.m4 serial 6 | 1 | # environ.m4 serial 8 |
2 | dnl Copyright (C) 2001-2004, 2006-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2001-2004, 2006-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. |
@@ -29,16 +29,15 @@ AC_DEFUN_ONCE([gl_ENVIRON], | |||
29 | AC_DEFUN([gt_CHECK_VAR_DECL], | 29 | AC_DEFUN([gt_CHECK_VAR_DECL], |
30 | [ | 30 | [ |
31 | define([gt_cv_var], [gt_cv_var_]$2[_declaration]) | 31 | define([gt_cv_var], [gt_cv_var_]$2[_declaration]) |
32 | AC_MSG_CHECKING([if $2 is properly declared]) | 32 | AC_CACHE_CHECK([if $2 is properly declared], [gt_cv_var], |
33 | AC_CACHE_VAL([gt_cv_var], [ | 33 | [AC_COMPILE_IFELSE( |
34 | AC_COMPILE_IFELSE( | 34 | [AC_LANG_PROGRAM( |
35 | [AC_LANG_PROGRAM( | 35 | [[$1 |
36 | [[$1 | 36 | typedef struct { int foo; } foo_t; |
37 | extern struct { int foo; } $2;]], | 37 | extern foo_t $2;]], |
38 | [[$2.foo = 1;]])], | 38 | [[$2.foo = 1;]])], |
39 | [gt_cv_var=no], | 39 | [gt_cv_var=no], |
40 | [gt_cv_var=yes])]) | 40 | [gt_cv_var=yes])]) |
41 | AC_MSG_RESULT([$gt_cv_var]) | ||
42 | if test $gt_cv_var = yes; then | 41 | if test $gt_cv_var = yes; then |
43 | AC_DEFINE([HAVE_]m4_translit($2, [a-z], [A-Z])[_DECL], 1, | 42 | AC_DEFINE([HAVE_]m4_translit($2, [a-z], [A-Z])[_DECL], 1, |
44 | [Define if you have the declaration of $2.]) | 43 | [Define if you have the declaration of $2.]) |