2006-03-26 Randolph Chung * acinclude.m4 (ICONV_CONST): Compile test with -Werror if enabled. Index: acinclude.m4 =================================================================== RCS file: /cvs/src/src/gdb/acinclude.m4,v retrieving revision 1.13 diff -u -p -r1.13 acinclude.m4 --- acinclude.m4 17 Dec 2005 22:33:59 -0000 1.13 +++ acinclude.m4 26 Mar 2006 08:07:55 -0000 @@ -892,6 +892,8 @@ AC_DEFUN([AM_ICONV], if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) AC_MSG_CHECKING([for iconv declaration]) + oldcflags="${CFLAGS-}" + CFLAGS="${CFLAGS-} $WERROR_CFLAGS" AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include @@ -910,6 +912,7 @@ size_t iconv(); am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) + CFLAGS=$oldcflags AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi