Bug 1325246 - Unbreak build --with-system-icu after bug 1270146. r?glandium draft
authorJan Beich <jbeich@FreeBSD.org>
Thu, 22 Dec 2016 01:42:19 +0000
changeset 453550 bb6479349b77266e7c41b3d901dce5df20a4a8d4
parent 453490 bbbd2f7539f224a482cc6d2dd10e6a5f31c8baf3
child 540498 cb1f1d764891be2cb6675cea6876308c74fd1049
push id39704
push userbmo:jbeich@FreeBSD.org
push dateFri, 23 Dec 2016 20:32:32 +0000
reviewersglandium
bugs1325246, 1270146
milestone53.0a1
Bug 1325246 - Unbreak build --with-system-icu after bug 1270146. r?glandium MozReview-Commit-ID: Dob5wTmHgxn
build/autoconf/icu.m4
config/system-headers
--- a/build/autoconf/icu.m4
+++ b/build/autoconf/icu.m4
@@ -93,19 +93,22 @@ if test -n "$USE_ICU"; then
 fi
 
 AC_SUBST(MOZ_ICU_VERSION)
 AC_SUBST(ENABLE_INTL_API)
 AC_SUBST(USE_ICU)
 AC_SUBST(ICU_DATA_FILE)
 AC_SUBST(MOZ_ICU_DATA_ARCHIVE)
 
-if test -n "$USE_ICU" -a -z "$MOZ_SYSTEM_ICU"; then
-    if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then
-      AC_MSG_ERROR([Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api])
-    fi
-    dnl We build ICU as a static library.
-    AC_DEFINE(U_STATIC_IMPLEMENTATION)
+if test -n "$USE_ICU"; then
     dnl Source files that use ICU should have control over which parts of the ICU
     dnl namespace they want to use.
     AC_DEFINE(U_USING_ICU_NAMESPACE,0)
+
+    if test -z "$MOZ_SYSTEM_ICU"; then
+        if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then
+            AC_MSG_ERROR([Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api])
+        fi
+        dnl We build ICU as a static library.
+        AC_DEFINE(U_STATIC_IMPLEMENTATION)
+    fi
 fi
 ])
--- a/config/system-headers
+++ b/config/system-headers
@@ -1312,24 +1312,26 @@ sys/thr.h
 sys/user.h
 kvm.h
 spawn.h
 err.h
 xlocale.h
 #ifdef MOZ_SYSTEM_ICU
 unicode/locid.h
 unicode/numsys.h
+unicode/plurrule.h
 unicode/timezone.h
 unicode/ucal.h
 unicode/uchar.h
 unicode/uclean.h
 unicode/ucol.h
 unicode/udat.h
 unicode/udatpg.h
 unicode/uenum.h
 unicode/unorm.h
 unicode/unum.h
+unicode/upluralrules.h
 unicode/ustring.h
 unicode/utypes.h
 #endif
 libutil.h
 unwind.h
 fenv.h