b=423913; check for -fshort-wchar correctness; r=bsmedberg
authorVladimir Vukicevic <vladimir@pobox.com>
Tue, 03 Jun 2008 17:01:27 -0700
changeset 15236 378707d75b14eb919e39f59766f1fe3f6d0f9e26
parent 15235 be00592555a0cb37dd15f72c233b5ce3e14d4cc8
child 15237 b0bc6be7db45a204e0d8f3ef4cf70824ca737900
push id69
push uservladimir@mozilla.com
push dateWed, 04 Jun 2008 00:34:07 +0000
treeherdermozilla-central@b0bc6be7db45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs423913
milestone1.9.1a1pre
b=423913; check for -fshort-wchar correctness; r=bsmedberg
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2769,22 +2769,22 @@ dnl Note that we assume that mac & win32
 
     AC_LANG_SAVE
     AC_LANG_CPLUSPLUS
     _SAVE_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS -fshort-wchar"
 
     AC_CACHE_CHECK(for compiler -fshort-wchar option, 
         ac_cv_have_usable_wchar_option_v2,
-        [AC_TRY_COMPILE([#include <stddef.h>
-                         $configure_static_assert_macros],
-                        [CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);
-                         CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)],
-                        ac_cv_have_usable_wchar_option_v2="yes",
-                        ac_cv_have_usable_wchar_option_v2="no")])
+        [AC_TRY_LINK([#include <stddef.h>
+                      $configure_static_assert_macros],
+                     [CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);
+                      CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)],
+                     ac_cv_have_usable_wchar_option_v2="yes",
+                     ac_cv_have_usable_wchar_option_v2="no")])
 
     if test "$ac_cv_have_usable_wchar_option_v2" = "yes"; then
         AC_DEFINE(HAVE_CPP_2BYTE_WCHAR_T)
         HAVE_CPP_2BYTE_WCHAR_T=1
     else    
         CXXFLAGS=$_SAVE_CXXFLAGS
     fi
     AC_LANG_RESTORE