ICU-6487 Add better check in configure for utf16 string literal support.

X-SVN-Rev: 26321
This commit is contained in:
Michael Ow 2009-07-14 17:08:44 +00:00
parent 4f6fd26142
commit 6113a8cabf
2 changed files with 8 additions and 2 deletions

View file

@ -10137,7 +10137,10 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
int daisy;
#ifdef _GCC_
typedef __CHAR16_TYPE__ char16_t;
#endif
char16_t test[] = u"This is a UTF16 literal string.";
#else
GCC IS TOO OLD!
#endif

View file

@ -933,7 +933,10 @@ if test "$ac_use_strict_options" = no && test "$CHECK_UTF16_STRING_RESULT" = "un
CXXFLAGS="${CXXFLAGS} -std=c++0x"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
int daisy;
#ifdef _GCC_
typedef __CHAR16_TYPE__ char16_t;
#endif
char16_t test[] = u"This is a UTF16 literal string.";
#else
GCC IS TOO OLD!
#endif