From f14c7caeb48711d93522679ea65a67c95c4a3ff5 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sat, 18 Aug 2007 00:48:16 +0000 Subject: [PATCH] ICU-5848 Allow ICU to build on GNU Hurd. X-SVN-Rev: 22419 --- icu4c/source/aclocal.m4 | 2 +- icu4c/source/configure | 5 +++-- icu4c/source/configure.in | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/icu4c/source/aclocal.m4 b/icu4c/source/aclocal.m4 index 61dba5426d9..87ba3677354 100644 --- a/icu4c/source/aclocal.m4 +++ b/icu4c/source/aclocal.m4 @@ -30,7 +30,7 @@ powerpc*-*-linux*) else icu_cv_host_frag=mh-linux-va fi ;; -*-*-linux*) icu_cv_host_frag=mh-linux ;; +*-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;; *-*-cygwin|*-*-mingw32) if test "$GCC" = yes; then AC_TRY_COMPILE([ diff --git a/icu4c/source/configure b/icu4c/source/configure index c71b4193adf..42e7d198b0f 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -3367,7 +3367,7 @@ powerpc*-*-linux*) else icu_cv_host_frag=mh-linux-va fi ;; -*-*-linux*) icu_cv_host_frag=mh-linux ;; +*-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;; *-*-cygwin|*-*-mingw32) if test "$GCC" = yes; then cat >conftest.$ac_ext <<_ACEOF @@ -4527,7 +4527,7 @@ fi GENCCODE_ASSEMBLY= case "${host}" in -i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*) +i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu) if test "$GCC" = yes; then GENCCODE_ASSEMBLY="-a gcc" fi ;; @@ -8291,6 +8291,7 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR case "${host}" in *-*-solaris*) platform=U_SOLARIS ;; *-*-linux*) platform=U_LINUX ;; + *-pc-gnu) platform=U_HURD ;; *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; *-*-aix*) platform=U_AIX ;; *-*-hpux*) platform=U_HPUX ;; diff --git a/icu4c/source/configure.in b/icu4c/source/configure.in index ba28f896c3c..6c064ab23af 100644 --- a/icu4c/source/configure.in +++ b/icu4c/source/configure.in @@ -398,7 +398,7 @@ AC_SUBST(HAVE_MMAP) dnl Check to see if genccode can generate simple assembly. GENCCODE_ASSEMBLY= case "${host}" in -i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*) +i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu) if test "$GCC" = yes; then dnl We're using gcc, and the simple -a gcc command line works for genccode GENCCODE_ASSEMBLY="-a gcc" @@ -996,6 +996,7 @@ dnl set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform case "${host}" in *-*-solaris*) platform=U_SOLARIS ;; *-*-linux*) platform=U_LINUX ;; + *-pc-gnu) platform=U_HURD ;; *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; *-*-aix*) platform=U_AIX ;; *-*-hpux*) platform=U_HPUX ;;