summaryrefslogtreecommitdiffstats
path: root/gl/m4/iconv.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/iconv.m4')
-rw-r--r--gl/m4/iconv.m426
1 files changed, 18 insertions, 8 deletions
diff --git a/gl/m4/iconv.m4 b/gl/m4/iconv.m4
index d0e61de..2065c97 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
2dnl Copyright (C) 2000-2002, 2007-2014, 2016-2021 Free Software Foundation, 2dnl Copyright (C) 2000-2002, 2007-2014, 2016-2022 Free Software Foundation,
3dnl Inc. 3dnl Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
@@ -234,12 +234,6 @@ AC_DEFUN([AM_ICONV_LINK],
234 234
235dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like 235dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like
236dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". 236dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
237dnl This is tricky because of the way 'aclocal' is implemented:
238dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
239dnl Otherwise aclocal's initial scan pass would miss the macro definition.
240dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
241dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
242dnl warnings.
243AC_DEFUN_ONCE([AM_ICONV], 237AC_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])