diff options
Diffstat (limited to 'm4/iconv.m4')
-rw-r--r-- | m4/iconv.m4 | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/m4/iconv.m4 b/m4/iconv.m4 index bdafc54e..aa159c53 100644 --- a/m4/iconv.m4 +++ b/m4/iconv.m4 | |||
@@ -1,4 +1,4 @@ | |||
1 | # iconv.m4 serial 20 | 1 | # iconv.m4 serial 19 (gettext-0.18.2) |
2 | dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2000-2002, 2007-2014, 2016 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, |
@@ -258,18 +258,14 @@ 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 | else | 261 | AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], |
262 | dnl When compiling GNU libiconv on a system that does not have iconv yet, | 262 | [Define as const if the declaration of iconv() needs const.]) |
263 | dnl pick the POSIX compliant declaration without 'const'. | 263 | dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. |
264 | am_cv_proto_iconv_arg1="" | 264 | m4_ifdef([gl_ICONV_H_DEFAULTS], |
265 | [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | ||
266 | if test -n "$am_cv_proto_iconv_arg1"; then | ||
267 | ICONV_CONST="const" | ||
268 | fi | ||
269 | ]) | ||
265 | fi | 270 | 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 | ]) | ||
275 | ]) | 271 | ]) |