On Fri, Aug 31, 2001 at 12:32:48PM +0200, Lars Gullik Bjønnes wrote:
> "R. Lahaye" <[EMAIL PROTECTED]> writes:
>
> | Hi,
> |
> | I'm running FreeBSD 4.3 (lattest official release) and there are problems
> | with the "#include <wchar>" lines in boost/boost/detail/limits.hpp.
> | All the wide character files are not available on a FreeBSD OS and may
> | not be included for quite some time. Therefore LyX needs to fix this for
> | a FreeBSD OS.
>
> are there wide string/char support in FreeBSD at all?
>
> I'll ask on the boost list if it is possible to check for the wide
> support there.
They do check (well, there's a BOOST_NO_INTRINSIC_WCHAR_T, for VC 6 at
least), but the #include <cwchar> is unconditionnal ...
[snip patch]
>
> close but remember that this needs to be done for every upgrade of
> the boost files.
Another approach (draft):
diff -u -p -r1.77 configure.in
--- configure.in 2001/08/19 09:33:45 1.77
+++ configure.in 2001/08/31 10:43:29
@@ -82,6 +82,10 @@ LYX_CXX_EXPLICIT
LYX_CXX_STL_STRING
LYX_CXX_GOOD_STD_STRING
LYX_CXX_CHEADERS
+AC_CHECK_HEADER(cwchar,
+ [],
+ [ LYX_ADD_INC_DIR(lyx_cppflags,\$(top_srcdir)/src/cheaders/wchar) ]
+)
LYX_CXX_GLOBAL_CSTD
LYX_STD_COUNT
dnl we disable rtti for now
And:
$ cat src/cheaders/wchar/cwchar
// -*- c++ -*-
// Empty cwchar for systems which don't have it
// (e.g., FreeBSD 4.3)
// We don't even pretend it to be real (no WCHAR_MIN, etc.)
>
> | Regards,
> | Rob.
> |
>
> --
> Lgb
--
Yves