summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.4-PATCHES/patch-07-configure-utf16-string
blob: 096127ef389c71500683ec71ea1c42972744bf78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  new --enable option so we can disable the check for UTF16 string literals.
  See comments in our libs/icu/configure.ac.

--- icu-4.4.orig/source/configure.in	2010-03-30 13:21:43.000000000 +0200
+++ icu-4.4/source/configure.in	2010-04-08 20:31:07.000000000 +0200
@@ -963,7 +963,28 @@
 fi
 AC_SUBST(U_SIZEOF_WCHAR_T)
 
+AC_MSG_CHECKING([whether to check for UTF-16 string literal support])
+enabled=yes
+U_ENABLE_UTF16_STRING_CHECK=1
+AC_ARG_ENABLE(utf16-string-check,
+    [  --enable-utf16-string-check enable testing for UTF-16 string literal support [default=yes]],
+    [ case "${enableval}" in
+	     yes|"") enabled=yes; U_ENABLE_UTF16_STRING_CHECK=1 ;;
+	     no) enabled=no; U_ENABLE_UTF16_STRING_CHECK=0 ;;
+	     *) ;;
+    esac],
+)
+AC_MSG_RESULT($enabled)
+AC_SUBST(U_ENABLE_UTF16_STRING_CHECK)
+
+
 AC_MSG_CHECKING([for UTF-16 string literal support])
+if test $U_ENABLE_UTF16_STRING_CHECK = 0; then
+U_CHECK_UTF16_STRING=0
+U_CHECK_GNUC_UTF16_STRING=0
+CHECK_UTF16_STRING_RESULT="check disabled"
+
+else # do the UTF16 literal checks
 U_CHECK_UTF16_STRING=1
 CHECK_UTF16_STRING_RESULT="unknown"
 
@@ -1048,6 +1069,7 @@
         fi
     fi
 fi
+fi
 AC_SUBST(U_CHECK_GNUC_UTF16_STRING)
 
 AC_MSG_RESULT($CHECK_UTF16_STRING_RESULT)