aboutsummaryrefslogtreecommitdiff
path: root/m4/iconv.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/iconv.m4')
-rw-r--r--m4/iconv.m424
1 files changed, 14 insertions, 10 deletions
diff --git a/m4/iconv.m4 b/m4/iconv.m4
index aa159c53..bdafc54e 100644
--- a/m4/iconv.m4
+++ b/m4/iconv.m4
@@ -1,4 +1,4 @@
1# iconv.m4 serial 19 (gettext-0.18.2) 1# iconv.m4 serial 20
2dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc. 2dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -258,14 +258,18 @@ size_t iconv();
258 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 258 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
259 AC_MSG_RESULT([ 259 AC_MSG_RESULT([
260 $am_cv_proto_iconv]) 260 $am_cv_proto_iconv])
261 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], 261 else
262 [Define as const if the declaration of iconv() needs const.]) 262 dnl When compiling GNU libiconv on a system that does not have iconv yet,
263 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. 263 dnl pick the POSIX compliant declaration without 'const'.
264 m4_ifdef([gl_ICONV_H_DEFAULTS], 264 am_cv_proto_iconv_arg1=""
265 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
266 if test -n "$am_cv_proto_iconv_arg1"; then
267 ICONV_CONST="const"
268 fi
269 ])
270 fi 265 fi
266 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
267 [Define as const if the declaration of iconv() needs const.])
268 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
269 m4_ifdef([gl_ICONV_H_DEFAULTS],
270 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
271 if test -n "$am_cv_proto_iconv_arg1"; then
272 ICONV_CONST="const"
273 fi
274 ])
271]) 275])