# HG changeset patch # User Bruno Haible # Date 1222535601 -7200 # Node ID 03cdea1c8b78e0aa52596740bb7d38eb5be40bb4 # Parent 20a9c8c912b3800e985f08998054123a502b7ce9 Avoid assigning WCHAR_H in different .m4 files. diff -r 20a9c8c912b3 -r 03cdea1c8b78 ChangeLog --- a/ChangeLog Sat Sep 27 17:55:04 2008 +0200 +++ b/ChangeLog Sat Sep 27 19:13:21 2008 +0200 @@ -1,3 +1,9 @@ +2008-09-27 Bruno Haible + + * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning + WCHAR_H directly. + 2008-09-27 Bruno Haible * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor. diff -r 20a9c8c912b3 -r 03cdea1c8b78 m4/wchar.m4 --- a/m4/wchar.m4 Sat Sep 27 17:55:04 2008 +0200 +++ b/m4/wchar.m4 Sat Sep 27 19:13:21 2008 +0200 @@ -7,7 +7,7 @@ dnl Written by Eric Blake. -# wchar.m4 serial 5 +# wchar.m4 serial 6 AC_DEFUN([gl_WCHAR_H], [ @@ -45,6 +45,13 @@ gl_CHECK_NEXT_HEADERS([wchar.h]) ]) +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_WCHAR_H], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + WCHAR_H=wchar.h +]) + AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. @@ -58,6 +65,5 @@ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) - WCHAR_H= - AC_SUBST([WCHAR_H]) + WCHAR_H=''; AC_SUBST([WCHAR_H]) ]) diff -r 20a9c8c912b3 -r 03cdea1c8b78 m4/wcwidth.m4 --- a/m4/wcwidth.m4 Sat Sep 27 17:55:04 2008 +0200 +++ b/m4/wcwidth.m4 Sat Sep 27 19:13:21 2008 +0200 @@ -1,5 +1,5 @@ -# wcwidth.m4 serial 13 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# wcwidth.m4 serial 14 +dnl Copyright (C) 2006-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -80,6 +80,6 @@ fi if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h + gl_REPLACE_WCHAR_H fi ])