diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-09 16:08:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-09 16:08:58 +0000 |
commit | 2c92c64be5afdf033f8d21178b02950a379c1fb4 (patch) | |
tree | a2a0365e0fc42c4b7a1a854da9d4074643a7ff1b /Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross | |
parent | bfbe81796df41ce30c05a1dc88bb3147f28837b5 (diff) |
update build system
git-svn-id: svn://tug.org/texlive/trunk@15951 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross')
-rw-r--r-- | Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross b/Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross new file mode 100644 index 00000000000..db9d037a273 --- /dev/null +++ b/Build/source/libs/icu/icu-4.2.1-PATCHES/patch-09-cross @@ -0,0 +1,22 @@ + Replace AC_RUN_IFELSE by AC_CHECK_SIZEOF for cross compilation. + +diff -ur icu-4.2.1.orig/source/aclocal.m4 icu-4.2.1/source/aclocal.m4 +--- icu-4.2.1.orig/source/aclocal.m4 2009-07-01 20:51:26.000000000 +0200 ++++ icu-4.2.1/source/aclocal.m4 2009-10-28 20:38:09.000000000 +0100 +@@ -149,10 +149,13 @@ + if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then + AC_MSG_ERROR([Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually.]) + fi +- DEFAULT_64BIT=no ++ AC_CHECK_SIZEOF([void *]) + AC_MSG_CHECKING([whether runnable 64 bit binaries are built by default]) +- AC_RUN_IFELSE(int main(void) {return (sizeof(void*)*8==64)?0:1;}, +- DEFAULT_64BIT=yes, DEFAULT_64BIT=no, DEFAULT_64BIT=unknown) ++ case $ac_cv_sizeof_void_p in ++ 8) DEFAULT_64BIT=yes ;; ++ 4) DEFAULT_64BIT=no ;; ++ *) DEFAULT_64BIT=unknown ++ esac + BITS_GOT=unknown + + # 'OK' here means, we can exit any further checking, everything's copa |