+2022-07-10 Bruno Haible <bruno@clisp.org>
+
+ iconv: Define a summary result.
+ Reported by Simon Josefsson in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2022-07/msg00020.html>.
+ * m4/iconv.m4 (AM_ICONV): Define also am_cv_func_iconv_summary.
+
2022-07-10 Bruno Haible <bruno@clisp.org>
iconv: Remove obsolete comment.
-# iconv.m4 serial 25
+# iconv.m4 serial 26
dnl Copyright (C) 2000-2002, 2007-2014, 2016-2022 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
ICONV_CONST="const"
fi
])
+
+ dnl A summary result, for those packages which want to print a summary at the
+ dnl end of the configuration.
+ if test "$am_func_iconv" = yes; then
+ if test -n "$LIBICONV"; then
+ am_cv_func_iconv_summary='yes, in libiconv'
+ else
+ am_cv_func_iconv_summary='yes, in libc'
+ fi
+ else
+ if test "$am_cv_func_iconv" = yes; then
+ am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
+ else
+ am_cv_func_iconv_summary='no, consider installing GNU libiconv'
+ fi
+ fi
])