Allow to override ICU_DATA_FILE from the environment
authorMike Hommey <mh@glandium.org>
Sun, 25 Sep 2016 00:22:22 +0000 (09:22 +0900)
committerMike Hommey <glandium@debian.org>
Tue, 3 Dec 2019 23:56:07 +0000 (23:56 +0000)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Allow-to-override-ICU_DATA_FILE-from-the-environment.patch

build/autoconf/icu.m4

index 6afa262b073e29939f2709095bd6e8e05945bbd0..342e9d30a2f36bdb534476540cf8d111aca4cdc1 100644 (file)
@@ -78,7 +78,9 @@ if test -n "$USE_ICU"; then
     # TODO: the l is actually endian-dependent
     # We could make this set as 'l' or 'b' for little or big, respectively,
     # but we'd need to check in a big-endian version of the file.
-    ICU_DATA_FILE="icudt${version}l.dat"
+    if test -z "$ICU_DATA_FILE"; then
+        ICU_DATA_FILE="icudt${version}l.dat"
+    fi
 fi
 
 AC_SUBST(MOZ_ICU_VERSION)