With some further investigation, I think I know what is happening now.

In my build script, I include the path /mingw32/share/aclocal as an aclocal 
search path. It so happens that this contains wint_t.m4, and this version does 
not have the GNULIB_OVERRIDES_WINT_T section in it. So bootstrap is actually 
including this file instead of the one provided by gnulib.

Some further digging shows that this file is installed by gettext:

$pacman -Qo /mingw32/share/aclocal/wint_t.m4
/mingw32/share/aclocal/wint_t.m4 is owned by mingw-w64-i686-gettext 0.19.7-1


Thanks,
Jeremy
From: T J<mailto:[email protected]>
Sent: Saturday, 31 December 2016 9:50 AM
To: Bruno Haible<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: RE: stdint broken on mingw


Hi Bruno,



This is the output:



$grep -n GNULIB_OVERRIDES_WINT_T config.status lib/Makefile

lib/Makefile:2041:            -e 
's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \

lib/Makefile:2722:            -e 
's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \



Thanks,

Jeremy



From: Bruno Haible<mailto:[email protected]>
Sent: Friday, 30 December 2016 9:51 PM
To: T J<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: Re: stdint broken on mingw



Hi,

> In particular, this is the generated from stdint.h:
>
> > /* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> 
> > overrides
>    wint_t.  */
> > #if
> > # undef WINT_MIN

I don't understand how, given the existing code, @GNULIB_OVERRIDES_WINT_T@ can
be substituted with an empty string.

Can you please show the result of

$ grep -n GNULIB_OVERRIDES_WINT_T config.status lib/Makefile

Thanks.

        Bruno

Reply via email to