-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 12/20/2008 5:43 AM:
> On HP-UX 11.11, mbstate_t is not defined by <wchar.h> unless _XOPEN_SOURCE is
> set to 500. (Even when _HPUX_SOURCE is set!)

What happens if _XOPEN_SOURCE is set to something larger than 500,
implying a newer standards version?

> 
> I have submitted a patch so that autoconf sets this flag by default. But there
> are so many INSTALL files which only recommend CC="cc -Ae", that IMO this
> needs to be handled by the gnulib 'extensions' module as well.

>       Ensure mbstate_t is defined on HP-UX 11.11.
>       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
>       AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.

This begs the question - should autoconf's AC_USE_SYSTEM_EXTENSIONS also
be doing this, rather than just relying on _AC_PROG_CC_C89?  Also, your
proposed patch only touched the C89 tests; what about C99?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklM7y8ACgkQ84KuGfSFAYAS+QCfc3h5tdVZr0rNr+C3udQyD8M7
OHEAn1W36O9lBP4426a/OuB9yGpypB7+
=5xWu
-----END PGP SIGNATURE-----


Reply via email to