This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: build failure (from configure patch?)


On Fri, 26 Nov 1999, Phil Edwards wrote:

> 
> One of the recent changes to configure.in (I'd assume Mumit's float-support
> patch on the 21st; that's the only change to configure.in lately) is doing
> weird things to wchars under Linux.  I've missed the last couple days'
> worth of mailing list, but here's some experimental data for you whilst
> I browse the archives.

I had nothing to do with, really. It's the usual test bug -- comparing
a nonexistent variable against a value.  Trouble is that gnulibc1 doesn't 
(I can't check, but I'm sure I remember that to be the case) have wchar.h.

You can add quotes around the variable, or make sure it has a non
empty value (I choise the latter).

The reason it suddenly broke for Phil is that I moved _GLIBCPP_USE_WCHAR_T
from c++config.h to autoconf.

Tue Nov 30 12:08:40 1999  Mumit Khan  <khan@xraylith.wisc.edu>

	* configure.in: Fix checks for mbstate_t and WCHAR_MIN/MAX.

Index: configure.in
===================================================================
RCS file: /cvs/libstdc++/libstdc++/configure.in,v
retrieving revision 1.33
diff -u -3 -p -r1.33 configure.in
--- configure.in	1999/11/29 18:32:59	1.33
+++ configure.in	1999/11/30 18:10:23
@@ -102,7 +102,7 @@ AC_REPLACE_STRINGFUNCS(wcslen wmemchr wm
 # Test wchar.h for mbstate_t, which is needed for char_traits and others.
 AC_CHECK_HEADER(wchar.h, [AC_TRY_COMPILE([#include <wchar.h>],
 [mbstate_t teststate;], 
-use_native_mbstatet=yes, use_native_mbstatet=no)])
+use_native_mbstatet=yes, use_native_mbstatet=no)], use_native_mbstatet=no)
 if test $use_native_mbstatet = "no"; then
   AC_DEFINE(_GLIBCPP_NEED_MBSTATE_T)
   AC_MSG_WARN("standard header wchar.h does not declare the type mbstate_t")
@@ -112,7 +112,7 @@ fi
 # numeric_limits can instantiate type_traits<wchar_t>
 AC_CHECK_HEADER(wchar.h, [AC_TRY_COMPILE([#include <wchar.h>],
 [int i = WCHAR_MIN; int j = WCHAR_MAX;], 
-has_wchar_minmax=yes, has_wchar_minmax=no)])
+has_wchar_minmax=yes, has_wchar_minmax=no)], has_wchar_minmax=no)
 if test $has_wchar_minmax = "yes"; then
   AC_DEFINE(_GLIBCPP_HAS_WCHAR_MIN_MAX)
 else

Regards,
Mumit




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]