[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems building 3.1.[23] on HP-UX 11.11
From: |
Stepan Kasal |
Subject: |
Re: Problems building 3.1.[23] on HP-UX 11.11 |
Date: |
Sat, 26 Jul 2003 07:23:17 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Fri, Jul 25, 2003 at 02:13:14PM -0700, Paul Eggert wrote:
> My advice is to avoid futzing with _XOPEN_SOURCE. I used to futz with
> it, but it caused too many problems on too many platforms. For
> example, it breaks <wchar.h> in glibc 2.1.3, due to a glibc bug.
In general, I beleive you are right.
But in this case, there are two options:
1) don't use multibyte support on HP-UX 11.11 with gcc
2) futz with _XOPEN_SOURCE on this platform
So I want to try this hack in custom.h (which is appended to config.h):
/* For HP/UX with gcc */
#if defined(hpux) || defined(_HPUX_SOURCE)
/* ... */
#if defined(HAVE_MBRLEN) && defined(HAVE_WCHAR_H) && defined(HAVE_WCTYPE_H)
#undef HAVE_MBRTOWC
#define HAVE_MBRTOWC 1
#define _XOPEN_SOURCE 500
#include <stdarg.h>
#endif
So even though AC_FUNC_MBRTOWC would not set HAVE_MBRTOWC, as mbstate_t
is not available, custom.h would cover it up this way.
In any case, no other platform then HP-UX would be affected.
(But, of course, I don't know whether Arnold would accept this hack.)
Stepan
- Re: Problems building 3.1.[23] on HP-UX 11.11, (continued)
- Re: Problems building 3.1.[23] on HP-UX 11.11, Stepan Kasal, 2003/07/22
- Re: Problems building 3.1.[23] on HP-UX 11.11, Dirk Heinrichs, 2003/07/22
- Re: Problems building 3.1.[23] on HP-UX 11.11, Stepan Kasal, 2003/07/22
- Re: Problems building 3.1.[23] on HP-UX 11.11, Dirk Heinrichs, 2003/07/23
- Re: Problems building 3.1.[23] on HP-UX 11.11, Stepan Kasal, 2003/07/23
- Re: Problems building 3.1.[23] on HP-UX 11.11, Dirk Heinrichs, 2003/07/23
- Re: Problems building 3.1.[23] on HP-UX 11.11, Stepan Kasal, 2003/07/23
- Re: Problems building 3.1.[23] on HP-UX 11.11, Dirk Heinrichs, 2003/07/23
- Re: Problems building 3.1.[23] on HP-UX 11.11, Stepan Kasal, 2003/07/25
- Re: Problems building 3.1.[23] on HP-UX 11.11, Paul Eggert, 2003/07/25
- Re: Problems building 3.1.[23] on HP-UX 11.11,
Stepan Kasal <=