diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
commit | bbdcf5a704517d35a76ba8b666075da9ffe39ac4 (patch) | |
tree | a36bec4f7c2802dfe5efc5cb2dfc902fec2a23b8 /gl/m4/iconv.m4 | |
parent | fa1ac7ecb247faf58fe65740c0d40e0585f684c9 (diff) | |
download | monitoring-plugins-bbdcf5a.tar.gz |
Sync with the latest Gnulib code (fa1ac7ec)
Diffstat (limited to 'gl/m4/iconv.m4')
-rw-r--r-- | gl/m4/iconv.m4 | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/gl/m4/iconv.m4 b/gl/m4/iconv.m4 index d0e61de2..2065c977 100644 --- a/gl/m4/iconv.m4 +++ b/gl/m4/iconv.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # iconv.m4 serial 24 | 1 | # iconv.m4 serial 26 |
2 | dnl Copyright (C) 2000-2002, 2007-2014, 2016-2021 Free Software Foundation, | 2 | dnl Copyright (C) 2000-2002, 2007-2014, 2016-2022 Free Software Foundation, |
3 | dnl Inc. | 3 | dnl Inc. |
4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
@@ -234,12 +234,6 @@ AC_DEFUN([AM_ICONV_LINK], | |||
234 | 234 | ||
235 | dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like | 235 | dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like |
236 | dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". | 236 | dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". |
237 | dnl This is tricky because of the way 'aclocal' is implemented: | ||
238 | dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. | ||
239 | dnl Otherwise aclocal's initial scan pass would miss the macro definition. | ||
240 | dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. | ||
241 | dnl Otherwise aclocal would emit many "Use of uninitialized value $1" | ||
242 | dnl warnings. | ||
243 | AC_DEFUN_ONCE([AM_ICONV], | 237 | AC_DEFUN_ONCE([AM_ICONV], |
244 | [ | 238 | [ |
245 | AM_ICONV_LINK | 239 | AM_ICONV_LINK |
@@ -280,4 +274,20 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si | |||
280 | ICONV_CONST="const" | 274 | ICONV_CONST="const" |
281 | fi | 275 | fi |
282 | ]) | 276 | ]) |
277 | |||
278 | dnl A summary result, for those packages which want to print a summary at the | ||
279 | dnl end of the configuration. | ||
280 | if test "$am_func_iconv" = yes; then | ||
281 | if test -n "$LIBICONV"; then | ||
282 | am_cv_func_iconv_summary='yes, in libiconv' | ||
283 | else | ||
284 | am_cv_func_iconv_summary='yes, in libc' | ||
285 | fi | ||
286 | else | ||
287 | if test "$am_cv_func_iconv" = yes; then | ||
288 | am_cv_func_iconv_summary='not working, consider installing GNU libiconv' | ||
289 | else | ||
290 | am_cv_func_iconv_summary='no, consider installing GNU libiconv' | ||
291 | fi | ||
292 | fi | ||
283 | ]) | 293 | ]) |