X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/configure diff --git a/icuSources/configure b/icuSources/configure index a3262646..932ed338 100755 --- a/icuSources/configure +++ b/icuSources/configure @@ -16,23 +16,27 @@ ac_help="$ac_help ac_help="$ac_help --enable-64bit-libs build 64-bit libraries [default=yes]" ac_help="$ac_help - --enable-hpuxcma build ICU with HPUX CMA threads (only ver>=11) [default=no]" + --enable-shared build shared libraries [default=yes]" ac_help="$ac_help - --enable-shared[=PKGS] build shared libraries [default=yes]" + --enable-static build static libraries [default=no]" ac_help="$ac_help - --enable-static[=PKGS] build static libraries [default=no]" + --enable-debug build debug libraries [default=no]" +ac_help="$ac_help + --enable-release build release libraries [default=yes]" ac_help="$ac_help --enable-renaming add a version suffix to symbols [default=yes]" +ac_help="$ac_help + --enable-tracing enable function and data tracing [default=yes]" ac_help="$ac_help --enable-rpath use rpath when linking [default is only if necessary]" ac_help="$ac_help - --enable-threads build ICU with threads [default=yes]" + --enable-threads build ICU with thread safety [default=yes]" ac_help="$ac_help --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]" ac_help="$ac_help --enable-extras build ICU extras [default=yes]" ac_help="$ac_help - --enable-ustdio build ICU's ustdio library [default=yes]" + --enable-icuio build ICU's icuio library [default=yes]" ac_help="$ac_help --enable-layout build ICU's layout library [default=yes]" ac_help="$ac_help @@ -562,7 +566,7 @@ PACKAGE="icu" echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6 -echo "configure:566: checking for ICU version numbers" >&5 +echo "configure:570: checking for ICU version numbers" >&5 geticuversion() { sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" @@ -581,15 +585,16 @@ LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6 -UNICODE_VERSION="4" +UNICODE_VERSION="4.0.1" +#AC_SUBST(CINTLTST_CPPFLAGS) # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:593: checking for $ac_word" >&5 +echo "configure:598: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -619,7 +624,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:623: checking for $ac_word" >&5 +echo "configure:628: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -670,7 +675,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:674: checking for $ac_word" >&5 +echo "configure:679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -702,7 +707,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -713,12 +718,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 717 "configure" +#line 722 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -744,12 +749,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:753: checking whether we are using GNU C" >&5 +echo "configure:758: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -758,7 +763,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -777,7 +782,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:781: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:786: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -813,7 +818,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:817: checking for $ac_word" >&5 +echo "configure:822: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -845,7 +850,7 @@ test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:849: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +echo "configure:854: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -856,12 +861,12 @@ cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF -#line 860 "configure" +#line 865 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -887,12 +892,12 @@ if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:891: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:896: checking whether we are using GNU C++" >&5 +echo "configure:901: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -901,7 +906,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -920,7 +925,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:924: checking whether ${CXX-g++} accepts -g" >&5 +echo "configure:929: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -951,57 +956,6 @@ else fi fi -for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat > conftest.$ac_ext < -$ac_declaration -int main() { -exit (42); -; return 0; } -EOF -if { (eval echo configure:973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - continue -fi -rm -f conftest* - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -done -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - - ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then @@ -1033,7 +987,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1037: checking for a BSD compatible install" >&5 +echo "configure:991: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1094,40 +1048,11 @@ if test "$srcdir" = "."; then fi fi -# Extract the first word of "autoconf", so it can be a program name with args. -set dummy autoconf; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1101: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AUTOCONF"; then - ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AUTOCONF="autoconf" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="true" -fi -fi -AUTOCONF="$ac_cv_prog_AUTOCONF" -if test -n "$AUTOCONF"; then - echo "$ac_t""$AUTOCONF" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - +#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1131: checking for $ac_word" >&5 +echo "configure:1056: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1160,7 +1085,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1164: checking for $ac_word" >&5 +echo "configure:1089: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_U_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1201,7 +1126,7 @@ test -n "$U_MAKE" || U_MAKE="make" # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1205: checking for $ac_word" >&5 +echo "configure:1130: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1241,7 +1166,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:1245: checking host system type" >&5 +echo "configure:1170: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -1262,12 +1187,12 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:1266: checking for Cygwin environment" >&5 +echo "configure:1191: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else @@ -1295,19 +1220,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:1299: checking for mingw32 environment" >&5 +echo "configure:1224: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else @@ -1326,7 +1251,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1330: checking for executable suffix" >&5 +echo "configure:1255: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1336,7 +1261,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; @@ -1359,16 +1284,16 @@ ac_exeext=$EXEEXT echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6 -echo "configure:1363: checking whether strict compiling is on" >&5 +echo "configure:1288: checking whether strict compiling is on" >&5 # Check whether --enable-strict or --disable-strict was given. if test "${enable_strict+set}" = set; then enableval="$enable_strict" - if test "$enableval" = no - then - ac_use_strict_options=no + if test "$enableval" = no + then + ac_use_strict_options=no else - ac_use_strict_options=yes + ac_use_strict_options=yes fi else @@ -1381,19 +1306,35 @@ fi then if test "$GCC" = yes then - CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline" + CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long" case "${host}" in *-*-solaris*) CFLAGS="$CFLAGS -D__STDC__=0";; esac + else + case "${host}" in + *-*-cygwin) + if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" + then + CFLAGS="$CFLAGS /W4" + fi + esac fi if test "$GXX" = yes then - CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline" + CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long" case "${host}" in *-*-solaris*) CXXFLAGS="$CXXFLAGS -D__STDC__=0";; esac + else + case "${host}" in + *-*-cygwin) + if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" + then + CXXFLAGS="$CXXFLAGS /W4" + fi + esac fi fi @@ -1409,23 +1350,16 @@ else fi echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6 -echo "configure:1413: checking for 64-bit executable support" >&5 - if test "$ENABLE_64BIT_LIBS" = no; then - case "${host}" in - *-*-hpux*) - case "${CXX}" in - *CC) - CFLAGS="${CFLAGS} +DAportable" - CXXFLAGS="${CXXFLAGS} +DAportable" - ;; - esac;; - esac - else +echo "configure:1354: checking for 64-bit executable support" >&5 + if test "$ENABLE_64BIT_LIBS" != no; then case "${host}" in *-*-solaris*) - if test "$ac_cv_prog_gcc" = no; then + SPARCV9=`isainfo -n 2>&1 | grep sparcv9` + if test "$GCC" = yes; then + # We could add a check for -m64 depending on the gcc version. + ENABLE_64BIT_LIBS=no + else SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` - SPARCV9=`isainfo -n 2>&1 | grep sparcv9` if test -z "$SOL64" && test -n "$SPARCV9"; then CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" @@ -1434,26 +1368,61 @@ echo "configure:1413: checking for 64-bit executable support" >&5 else ENABLE_64BIT_LIBS=no fi + fi + ;; + ia64-*-linux*) + if test "$GCC" = yes; then + # gcc compiler support + if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then + ENABLE_64BIT_LIBS=yes + else + ENABLE_64BIT_LIBS=no + fi + else + # check for ecc/ecpc compiler support + if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then + if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then + ENABLE_64BIT_LIBS=yes + else + ENABLE_64BIT_LIBS=no + fi + else + # unknown + ENABLE_64BIT_LIBS=no + fi + fi + ;; + x86_64-*-linux*) + if test "$GCC" = yes; then + if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then + ENABLE_64BIT_LIBS=yes + else + ENABLE_64BIT_LIBS=no + fi else + # unknown ENABLE_64BIT_LIBS=no fi ;; - *-*-aix*) - OLD_CFLAGS="${CFLAGS}" - OLD_CXXFLAGS="${CXXFLAGS}" - OLD_LDFLAGS="${LDFLAGS}" - CFLAGS="${CFLAGS} -q64" - CXXFLAGS="${CXXFLAGS} -q64" - LDFLAGS="${LDFLAGS} -q64" - if test "$cross_compiling" = yes; then + *-*-aix*|powerpc64-*-linux*) + if test "$ac_cv_prog_gcc" = no; then + # Note: Have not tested 64-bitness with gcc. + # Maybe the flag "-maix64" could be used with gcc? + OLD_CFLAGS="${CFLAGS}" + OLD_CXXFLAGS="${CXXFLAGS}" + OLD_LDFLAGS="${LDFLAGS}" + CFLAGS="${CFLAGS} -q64" + CXXFLAGS="${CXXFLAGS} -q64" + LDFLAGS="${LDFLAGS} -q64" + if test "$cross_compiling" = yes; then ENABLE_64BIT_LIBS=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ENABLE_64BIT_LIBS=yes else @@ -1465,28 +1434,33 @@ fi rm -fr conftest* fi - if test "$ENABLE_64BIT_LIBS" = no; then - CFLAGS="${OLD_CFLAGS}" - CXXFLAGS="${OLD_CXXFLAGS}" - LDFLAGS="${OLD_LDFLAGS}" - else - ARFLAGS="${ARFLAGS} -X64" + if test "$ENABLE_64BIT_LIBS" = no; then + CFLAGS="${OLD_CFLAGS}" + CXXFLAGS="${OLD_CXXFLAGS}" + LDFLAGS="${OLD_LDFLAGS}" + else + case "${host}" in + *-*-aix*) + ARFLAGS="${ARFLAGS} -X64" + esac + fi fi ;; *-*-hpux*) + OLD_CFLAGS="${CFLAGS}" OLD_CXXFLAGS="${CXXFLAGS}" - CFLAGS="${CFLAGS} +DA2.0W" - CXXFLAGS="${CXXFLAGS} +DA2.0W" + CFLAGS="${CFLAGS} +DD64" + CXXFLAGS="${CXXFLAGS} +DD64" if test "$cross_compiling" = yes; then ENABLE_64BIT_LIBS=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ENABLE_64BIT_LIBS=yes else @@ -1501,6 +1475,32 @@ fi if test "$ENABLE_64BIT_LIBS" = no; then CFLAGS="${OLD_CFLAGS}" CXXFLAGS="${OLD_CXXFLAGS}" + CFLAGS="${CFLAGS} +DA2.0W" + CXXFLAGS="${CXXFLAGS} +DA2.0W" + if test "$cross_compiling" = yes; then + ENABLE_64BIT_LIBS=no +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ENABLE_64BIT_LIBS=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ENABLE_64BIT_LIBS=no +fi +rm -fr conftest* +fi + + if test "$ENABLE_64BIT_LIBS" = no; then + CFLAGS="${OLD_CFLAGS}" + CXXFLAGS="${OLD_CXXFLAGS}" + fi fi ;; *) @@ -1522,33 +1522,49 @@ else case "${host}" in *-*-solaris*) - if test "$ac_cv_prog_gcc" = yes; then + if test "$GCC" = yes; then icu_cv_host_frag=mh-solaris-gcc else icu_cv_host_frag=mh-solaris fi ;; alpha*-*-linux-gnu) - if test "$ac_cv_prog_gcc" = yes; then + if test "$GCC" = yes; then icu_cv_host_frag=mh-alpha-linux-gcc else icu_cv_host_frag=mh-alpha-linux-cc fi ;; +powerpc*-*-linux*) + if test "$GCC" = yes; then + icu_cv_host_frag=mh-linux + else + icu_cv_host_frag=mh-linux-va + fi ;; *-*-linux*) icu_cv_host_frag=mh-linux ;; *-*-cygwin) - if test "$ac_cv_prog_gcc" = yes; then + if test "$GCC" = yes; then icu_cv_host_frag=mh-cygwin else icu_cv_host_frag=mh-cygwin-msvc fi ;; +*-*-mingw32) + if test "$GCC" = yes; then + icu_cv_host_frag=mh-mingw + else + icu_cv_host_frag=mh-cygwin-msvc + fi ;; *-*-*bsd*) icu_cv_host_frag=mh-bsd-gcc ;; *-*-aix*) - if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then - icu_cv_host_frag=mh-aix + if test "$GCC" = yes; then + icu_cv_host_frag=mh-aix-gcc else - icu_cv_host_frag=mh-aix-va + if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then + icu_cv_host_frag=mh-aix + else + icu_cv_host_frag=mh-aix-va + fi fi ;; *-*-hpux*) - if test "$ac_cv_prog_gcc" = yes; then + if test "$GCC" = yes; then icu_cv_host_frag=mh-hpux-gcc else case "$CXX" in @@ -1560,9 +1576,11 @@ alpha*-*-linux-gnu) *-*-os400*) icu_cv_host_frag=mh-os400 ;; *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; +*-*-beos) icu_cv_host_frag=mh-beos ;; *-*-irix*) icu_cv_host_frag=mh-irix ;; *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; *-*-nto*) icu_cv_host_frag=mh-qnx ;; +*-ncr-*) icu_cv_host_frag=mh-mpras ;; *-sequent-*) icu_cv_host_frag=mh-ptx ;; *) icu_cv_host_frag=mh-unknown ;; esac @@ -1573,52 +1591,9 @@ fi echo "$ac_t""$icu_cv_host_frag" 1>&6 -hpuxcma=false - case "${host}" in - *-*-hpux10*) hpuxcma=true - echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1582: checking for floor in -lm" >&5 -ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIB_M="-lm" -else - echo "$ac_t""no" 1>&6 -fi - ;; *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1622: checking for floor in -lm" >&5 +echo "configure:1597: checking for floor in -lm" >&5 ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1626,7 +1601,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1659,7 +1634,7 @@ fi ;; *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1663: checking for floor in -lm" >&5 +echo "configure:1638: checking for floor in -lm" >&5 ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1667,7 +1642,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1709,39 +1684,8 @@ fi esac - -if test $hpuxcma = false; then - # Check whether --enable-hpuxcma or --disable-hpuxcma was given. -if test "${enable_hpuxcma+set}" = set; then - enableval="$enable_hpuxcma" - case "${enableval}" in - yes) hpuxcma=true;; - no) hpuxcma=false;; - *) { echo "configure: error: bad value ${enableval} for --enable-hpuxcma" 1>&2; exit 1; } ;; - esac -fi - -fi - - - -if test "$hpuxcma" = true; then - HPUX_CMA_TRUE= - HPUX_CMA_FALSE='#' -else - HPUX_CMA_TRUE='#' - HPUX_CMA_FALSE= -fi - -if test $hpuxcma = true; then - case "${host}" in - *-*-hpux*) hpuxcma=true ;; - *) { echo "configure: error: --enable-hpuxcma is not valid on this platform ${host}" 1>&2; exit 1; } ;; - esac -fi - echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 -echo "configure:1745: checking whether to build shared libraries" >&5 +echo "configure:1689: checking whether to build shared libraries" >&5 enabled=no # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then @@ -1760,7 +1704,7 @@ echo "$ac_t""$enabled" 1>&6 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 -echo "configure:1764: checking whether to build static libraries" >&5 +echo "configure:1708: checking whether to build static libraries" >&5 enabled=no # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then @@ -1775,10 +1719,42 @@ fi echo "$ac_t""$enabled" 1>&6 +echo $ac_n "checking whether to build debug libraries""... $ac_c" 1>&6 +echo "configure:1724: checking whether to build debug libraries" >&5 +enabled=no +ENABLE_DEBUG=0 +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_debug+set}" = set; then + enableval="$enable_debug" + case "${enableval}" in + yes|"") enabled=yes; ENABLE_DEBUG=1 ;; + *) ;; + esac +fi + +echo "$ac_t""$enabled" 1>&6 + + +echo $ac_n "checking whether to build release libraries""... $ac_c" 1>&6 +echo "configure:1740: checking whether to build release libraries" >&5 +enabled=yes +ENABLE_RELEASE=1 +# Check whether --enable-release or --disable-release was given. +if test "${enable_release+set}" = set; then + enableval="$enable_release" + case "${enableval}" in + no) enabled=no; ENABLE_RELEASE=0 ;; + *) ;; + esac +fi + +echo "$ac_t""$enabled" 1>&6 + + # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1782: checking for $ac_word" >&5 +echo "configure:1758: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1808,7 +1784,7 @@ fi # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1812: checking for $ac_word" >&5 +echo "configure:1788: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1843,7 +1819,7 @@ fi echo $ac_n "checking whether to enable renaming of symbols""... $ac_c" 1>&6 -echo "configure:1847: checking whether to enable renaming of symbols" >&5 +echo "configure:1823: checking whether to enable renaming of symbols" >&5 enabled=yes U_DISABLE_RENAMING=0 # Check whether --enable-renaming or --disable-renaming was given. @@ -1859,6 +1835,23 @@ fi echo "$ac_t""$enabled" 1>&6 +echo $ac_n "checking whether to enable function and data tracing""... $ac_c" 1>&6 +echo "configure:1840: checking whether to enable function and data tracing" >&5 +enabled=yes +U_ENABLE_TRACING=1 +# Check whether --enable-tracing or --disable-tracing was given. +if test "${enable_tracing+set}" = set; then + enableval="$enable_tracing" + case "${enableval}" in + yes|"") enabled=yes ;; + no) enabled=no; U_ENABLE_TRACING=0 ;; + *) ;; + esac +fi + +echo "$ac_t""$enabled" 1>&6 + + # Check whether --enable-rpath or --disable-rpath was given. if test "${enable_rpath+set}" = set; then enableval="$enable_rpath" @@ -1876,21 +1869,21 @@ fi echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6 -echo "configure:1880: checking for definition of U_INLINE for C" >&5 +echo "configure:1873: checking for definition of U_INLINE for C" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -1925,73 +1918,18 @@ else fi - if test "$threads" = true; then THREADS_TRUE= - THREADS_FALSE='#' else THREADS_TRUE='#' - THREADS_FALSE= fi ICU_USE_THREADS=0 if test $threads = true; then - if test $hpuxcma = true; then - echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 -echo "configure:1943: checking for pthread_create in -lcma" >&5 -ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lcma $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo cma | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 -fi - - if test $ac_cv_lib_cma_pthread_create = yes; then - ICU_USE_THREADS=1 - fi - else echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 -echo "configure:1995: checking for pthread_attr_init in -lpthread" >&5 +echo "configure:1933: checking for pthread_attr_init in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1999,7 +1937,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2040,19 +1978,19 @@ fi if test $ac_cv_lib_pthread_pthread_attr_init = yes; then ICU_USE_THREADS=1 else - + echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6 -echo "configure:2047: checking for library containing pthread_mutex_destroy" >&5 +echo "configure:1985: checking for library containing pthread_mutex_destroy" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_mutex_destroy="no" -for i in pthread pthreads c_r cma; do +for i in pthread pthreads c_r ; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_mutex_destroy="-l$i" break @@ -2075,7 +2013,7 @@ rm -f conftest* done if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_mutex_destroy="none required" else @@ -2110,7 +2048,7 @@ fi ICU_USE_THREADS=1 else echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 -echo "configure:2114: checking for pthread_mutex_init in -lpthread" >&5 +echo "configure:2052: checking for pthread_mutex_init in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2118,7 +2056,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2162,12 +2100,12 @@ fi fi echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6 -echo "configure:2166: checking for pthread_mutex_lock" >&5 +echo "configure:2104: checking for pthread_mutex_lock" >&5 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_pthread_mutex_lock=yes" else @@ -2213,8 +2151,24 @@ fi if test $ac_cv_func_pthread_mutex_lock = yes; then ICU_USE_THREADS=1 fi + case "${host}" in + *-pc-cygwin*|*-pc-mingw*) + if test "$ac_cv_prog_gcc" = no; then + ICU_USE_THREADS=1 + fi ;; + *-*-hpux*) + case "${icu_cv_host_frag}" in + mh-hpux-acc) + OLD_CXXFLAGS="${CXXFLAGS}" + CXXFLAGS="${CXXFLAGS} -mt" + if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then + CXXFLAGS="${OLD_CXXFLAGS}" + fi + ;; + esac + ;; + esac fi - fi fi @@ -2224,12 +2178,12 @@ fi # Do this check instead. HAVE_MMAP=0 echo $ac_n "checking for mmap""... $ac_c" 1>&6 -echo "configure:2228: checking for mmap" >&5 +echo "configure:2182: checking for mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_ok'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -2241,7 +2195,7 @@ int main() { mmap((void *)0, 0, PROT_READ, 0, 0, 0); ; return 0; } EOF -if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_mmap_ok=yes else @@ -2260,8 +2214,18 @@ then fi +GENCCODE_ASSEMBLY= +case "${host}" in +i*86-*-*bsd*|i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*) + if test "$GCC" = yes; then + GENCCODE_ASSEMBLY="-a gcc" + fi ;; +esac + + + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2265: checking how to run the C preprocessor" >&5 +echo "configure:2229: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -2276,13 +2240,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2293,13 +2257,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2310,13 +2274,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2344,17 +2308,17 @@ for ac_hdr in inttypes.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2348: checking for $ac_hdr" >&5 +echo "configure:2312: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2420,17 +2384,23 @@ ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross + OLD_CXXFLAGS="${CXXFLAGS}" + case "${icu_cv_host_frag}" in + mh-hpux-acc) + CXXFLAGS="${CXXFLAGS} -AA" + ;; + esac echo $ac_n "checking iostream usability""... $ac_c" 1>&6 -echo "configure:2425: checking iostream usability" >&5 +echo "configure:2395: checking iostream usability" >&5 cat > conftest.$ac_ext < int main() { ; return 0; } EOF -if { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_iostream=yes else @@ -2440,13 +2410,18 @@ else ac_cv_header_iostream=no fi rm -f conftest* + if test $icu_cv_host_frag = mh-cygwin-msvc + then + ac_cv_header_iostream=yes + fi echo "$ac_t""$ac_cv_header_iostream" 1>&6 if test $ac_cv_header_iostream = yes then U_IOSTREAM_SOURCE=199711 else + CXXFLAGS="${OLD_CXXFLAGS}" echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:2450: checking how to run the C++ preprocessor" >&5 +echo "configure:2425: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2459,12 +2434,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2490,17 +2465,17 @@ echo "$ac_t""$CXXCPP" 1>&6 ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for iostream.h""... $ac_c" 1>&6 -echo "configure:2494: checking for iostream.h" >&5 +echo "configure:2469: checking for iostream.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2523,19 +2498,19 @@ fi if test $ac_cv_header_iostream_h = yes; then echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6 -echo "configure:2527: checking whether ostream is really defined" >&5 +echo "configure:2502: checking whether ostream is really defined" >&5 if eval "test \"`echo '$''{'ac_cv_iostream_ok'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { ostream &testout = cout; testout << "test" << endl; ; return 0; } EOF -if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_iostream_ok=yes else @@ -2559,6 +2534,13 @@ fi if test $U_IOSTREAM_SOURCE -ge $streams then U_IOSTREAM_SOURCE=$streams + case "${icu_cv_host_frag}" in + mh-hpux-acc) + if test $U_IOSTREAM_SOURCE -lt 199711; then + CXXFLAGS=${OLD_CXXFLAGS} + fi + ;; + esac else { echo "configure: error: ${withval} iostream is not available" 1>&2; exit 1; } fi @@ -2574,14 +2556,14 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:2578: checking whether byte ordering is bigendian" >&5 +echo "configure:2560: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext < #include @@ -2592,11 +2574,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -2607,7 +2589,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -2627,7 +2609,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -2675,12 +2657,12 @@ fi U_HAVE_NL_LANGINFO_CODESET=0 U_NL_LANGINFO_CODESET=-1 echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6 -echo "configure:2679: checking for nl_langinfo" >&5 +echo "configure:2661: checking for nl_langinfo" >&5 if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_nl_langinfo=yes" else @@ -2726,21 +2708,21 @@ fi if test $U_HAVE_NL_LANGINFO -eq 1; then echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6 -echo "configure:2730: checking for nl_langinfo's argument to obtain the codeset" >&5 +echo "configure:2712: checking for nl_langinfo's argument to obtain the codeset" >&5 if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_nl_langinfo_codeset="unknown" for a in CODESET _NL_CTYPE_CODESET_NAME; do cat > conftest.$ac_ext < int main() { nl_langinfo($a); ; return 0; } EOF -if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_nl_langinfo_codeset="$a"; break else @@ -2769,12 +2751,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for namespace support""... $ac_c" 1>&6 -echo "configure:2773: checking for namespace support" >&5 +echo "configure:2755: checking for namespace support" >&5 if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_namespace_ok=yes else @@ -2805,17 +2787,18 @@ fi echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6 -echo "configure:2809: checking for properly overriding new and delete" >&5 +echo "configure:2791: checking for properly overriding new and delete" >&5 U_OVERRIDE_CXX_ALLOCATION=0 U_HAVE_PLACEMENT_NEW=0 if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < - class UObject { + class UMemory { + public: void *operator new(size_t size) {return malloc(size);} void *operator new[](size_t size) {return malloc(size);} void operator delete(void *p) {free(p);} @@ -2826,7 +2809,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_override_cxx_allocation_ok=yes else @@ -2843,15 +2826,16 @@ if test $ac_cv_override_cxx_allocation_ok = yes then U_OVERRIDE_CXX_ALLOCATION=1 echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6 -echo "configure:2847: checking for placement new and delete" >&5 +echo "configure:2830: checking for placement new and delete" >&5 if eval "test \"`echo '$''{'ac_cv_override_placement_new_ok'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < - class UObject { + class UMemory { + public: void *operator new(size_t size) {return malloc(size);} void *operator new[](size_t size) {return malloc(size);} void operator delete(void *p) {free(p);} @@ -2864,7 +2848,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_override_placement_new_ok=yes else @@ -2893,12 +2877,12 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking for popen""... $ac_c" 1>&6 -echo "configure:2897: checking for popen" >&5 +echo "configure:2881: checking for popen" >&5 if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_popen=yes" else @@ -2949,12 +2933,12 @@ fi echo $ac_n "checking for tzset""... $ac_c" 1>&6 -echo "configure:2953: checking for tzset" >&5 +echo "configure:2937: checking for tzset" >&5 if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_tzset=yes" else @@ -2996,17 +2980,19 @@ else echo "$ac_t""no" 1>&6 fi +U_HAVE_TZSET=0 if test x$ac_cv_func_tzset = xyes then U_TZSET=tzset + U_HAVE_TZSET=1 else echo $ac_n "checking for _tzset""... $ac_c" 1>&6 -echo "configure:3005: checking for _tzset" >&5 +echo "configure:2991: checking for _tzset" >&5 if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__tzset=yes" else @@ -3050,21 +3036,26 @@ fi if test x$ac_cv_func__tzset = xyes then - U_TZSET=_tzset + U_TZSET=_tzset + U_HAVE_TZSET=1 fi fi + + +U_HAVE_TZNAME=0 echo $ac_n "checking for tzname""... $ac_c" 1>&6 -echo "configure:3059: checking for tzname" >&5 +echo "configure:3049: checking for tzname" >&5 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #ifndef tzname /* For SGI. */ extern char *tzname[]; /* RS6000 and others reject char **tzname. */ @@ -3073,7 +3064,7 @@ int main() { atoi(*tzname); ; return 0; } EOF -if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var_tzname=yes else @@ -3088,15 +3079,17 @@ fi echo "$ac_t""$ac_cv_var_tzname" 1>&6 if test $ac_cv_var_tzname = yes; then U_TZNAME=tzname + U_HAVE_TZNAME=1 else echo $ac_n "checking for _tzname""... $ac_c" 1>&6 -echo "configure:3094: checking for _tzname" >&5 +echo "configure:3086: checking for _tzname" >&5 if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include extern char *_tzname[]; @@ -3104,7 +3097,7 @@ int main() { atoi(*_tzname); ; return 0; } EOF -if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var__tzname=yes else @@ -3119,17 +3112,19 @@ fi echo "$ac_t""$ac_cv_var__tzname" 1>&6 if test $ac_cv_var__tzname = yes; then U_TZNAME=_tzname + U_HAVE_TZNAME=1 fi fi + echo $ac_n "checking for timezone""... $ac_c" 1>&6 -echo "configure:3128: checking for timezone" >&5 +echo "configure:3123: checking for timezone" >&5 if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var_timezone=yes else @@ -3162,12 +3157,12 @@ if test $ac_cv_var_timezone = yes; then U_HAVE_TIMEZONE=1 else echo $ac_n "checking for __timezone""... $ac_c" 1>&6 -echo "configure:3166: checking for __timezone" >&5 +echo "configure:3161: checking for __timezone" >&5 if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3175,7 +3170,7 @@ int main() { __timezone = 1; ; return 0; } EOF -if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var___timezone=yes else @@ -3193,12 +3188,12 @@ echo "$ac_t""$ac_cv_var___timezone" 1>&6 U_HAVE_TIMEZONE=1 else echo $ac_n "checking for _timezone""... $ac_c" 1>&6 -echo "configure:3197: checking for _timezone" >&5 +echo "configure:3192: checking for _timezone" >&5 if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3206,7 +3201,7 @@ int main() { _timezone = 1; ; return 0; } EOF -if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var__timezone=yes else @@ -3229,12 +3224,12 @@ fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3233: checking for ANSI C header files" >&5 +echo "configure:3228: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3242,7 +3237,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3259,7 +3254,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3277,7 +3272,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3298,7 +3293,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -3309,7 +3304,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3333,12 +3328,12 @@ EOF fi echo $ac_n "checking for int8_t""... $ac_c" 1>&6 -echo "configure:3337: checking for int8_t" >&5 +echo "configure:3332: checking for int8_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3366,12 +3361,12 @@ EOF fi echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 -echo "configure:3370: checking for uint8_t" >&5 +echo "configure:3365: checking for uint8_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3399,12 +3394,12 @@ EOF fi echo $ac_n "checking for int16_t""... $ac_c" 1>&6 -echo "configure:3403: checking for int16_t" >&5 +echo "configure:3398: checking for int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3432,12 +3427,12 @@ EOF fi echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 -echo "configure:3436: checking for uint16_t" >&5 +echo "configure:3431: checking for uint16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3465,12 +3460,12 @@ EOF fi echo $ac_n "checking for int32_t""... $ac_c" 1>&6 -echo "configure:3469: checking for int32_t" >&5 +echo "configure:3464: checking for int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3498,12 +3493,12 @@ EOF fi echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 -echo "configure:3502: checking for uint32_t" >&5 +echo "configure:3497: checking for uint32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3531,12 +3526,12 @@ EOF fi echo $ac_n "checking for int64_t""... $ac_c" 1>&6 -echo "configure:3535: checking for int64_t" >&5 +echo "configure:3530: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3564,12 +3559,12 @@ EOF fi echo $ac_n "checking for uint64_t""... $ac_c" 1>&6 -echo "configure:3568: checking for uint64_t" >&5 +echo "configure:3563: checking for uint64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3655,17 +3650,17 @@ fi ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 -echo "configure:3659: checking for wchar.h" >&5 +echo "configure:3654: checking for wchar.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3698,14 +3693,14 @@ EOF U_HAVE_WCHAR_H=1 echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6 -echo "configure:3702: checking for library containing wcscpy" >&5 +echo "configure:3697: checking for library containing wcscpy" >&5 if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_wcscpy="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_wcscpy="none required" else @@ -3727,7 +3722,7 @@ rm -f conftest* test "$ac_cv_search_wcscpy" = "no" && for i in wcs w; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_wcscpy="-l$i" break @@ -3769,7 +3764,7 @@ fi ac_default_sizeof_wchar_t=4 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 -echo "configure:3773: checking size of wchar_t" >&5 +echo "configure:3768: checking size of wchar_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3777,7 +3772,7 @@ else ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t else cat > conftest.$ac_ext < @@ -3795,7 +3790,7 @@ main() exit(0); } EOF -if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_wchar_t=`cat conftestval` else @@ -3822,10 +3817,11 @@ if test $U_SIZEOF_WCHAR_T = 0; then fi -ECHO_N=$ac_n -ECHO_C=$ac_c - - +#dnl Echo +#ECHO_N=$ac_n +#ECHO_C=$ac_c +#AC_SUBST(ECHO_N) +#AC_SUBST(ECHO_C) # Check whether --enable-extras or --disable-extras was given. if test "${enable_extras+set}" = set; then @@ -3840,34 +3836,28 @@ else fi - if test "$extras" = true; then EXTRAS_TRUE= - EXTRAS_FALSE='#' else EXTRAS_TRUE='#' - EXTRAS_FALSE= fi # Check whether --enable-extras or --disable-extras was given. if test "${enable_extras+set}" = set; then enableval="$enable_extras" case "${enableval}" in - yes) ustdio=true ;; - no) ustdio=false ;; - *) { echo "configure: error: bad value ${enableval} for --enable-ustdio" 1>&2; exit 1; } ;; + yes) icuio=true ;; + no) icuio=false ;; + *) { echo "configure: error: bad value ${enableval} for --enable-icuio" 1>&2; exit 1; } ;; esac else - ustdio=true + icuio=true fi - -if test "$ustdio" = true; then - USTDIO_TRUE= - USTDIO_FALSE='#' +if test "$icuio" = true; then + ICUIO_TRUE= else - USTDIO_TRUE='#' - USTDIO_FALSE= + ICUIO_TRUE='#' fi # Check whether --enable-layout or --disable-layout was given. @@ -3883,13 +3873,10 @@ else fi - if test "$layout" = true; then LAYOUT_TRUE= - LAYOUT_FALSE='#' else LAYOUT_TRUE='#' - LAYOUT_FALSE= fi # Check whether --with-data-packaging or --without-data-packaging was given. @@ -3900,7 +3887,8 @@ if test "${with_data_packaging+set}" = set; then auto) datapackaging=$withval ;; common) datapackaging=archive ;; dll) datapackaging=library ;; - *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;; + static) datapackaging=static ;; + *) { echo "configure: error: bad value ${withval} for --with-data-packaging" 1>&2; exit 1; } ;; esac else datapackaging= @@ -3913,16 +3901,8 @@ thedatadir=`eval echo $datadir` thelibdir=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir` -case $datapackaging in - common) - pkgicudatadir=$datadir - thepkgicudatadir=$thedatadir - ;; - *) - pkgicudatadir=$libdir - thepkgicudatadir=$thelibdir - ;; -esac +pkgicudatadir=$datadir +thepkgicudatadir=$thedatadir @@ -3977,7 +3957,7 @@ esac echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6 -echo "configure:3981: checking for a library suffix to use" >&5 +echo "configure:3961: checking for a library suffix to use" >&5 # Check whether --with-library-suffix or --without-library-suffix was given. if test "${with_library_suffix+set}" = set; then withval="$with_library_suffix" @@ -4015,13 +3995,10 @@ else fi - if test "$tests" = true; then TESTS_TRUE= - TESTS_FALSE='#' else TESTS_TRUE='#' - TESTS_FALSE= fi # Check whether --enable-samples or --disable-samples was given. @@ -4037,13 +4014,10 @@ else fi - if test "$samples" = true; then SAMPLES_TRUE= - SAMPLES_FALSE='#' else SAMPLES_TRUE='#' - SAMPLES_FALSE= fi ICUDATA_CHAR=$U_ENDIAN_CHAR @@ -4052,8 +4026,8 @@ case "${host}" in *-*-solaris*) platform=U_SOLARIS ;; *-*-linux*) platform=U_LINUX ;; *-*-*bsd*) platform=U_BSD ;; - *-*-aix*) platform=AIX ;; - *-*-hpux*) platform=HPUX ;; + *-*-aix*) platform=U_AIX ;; + *-*-hpux*) platform=U_HPUX ;; *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; *-*ibm-openedition*|*-*-os390*) platform=OS390 @@ -4062,7 +4036,9 @@ case "${host}" in ICUDATA_CHAR="e" ;; *-*-nto*) platform=U_QNX ;; *-dec-osf*) platform=U_OSF ;; - *-*-irix*) platform=IRIX ;; + *-*-beos) platform=U_BEOS ;; + *-*-irix*) platform=U_IRIX ;; + *-ncr-*) platform=U_MPRAS ;; *-sequent-*) platform=PTX ;; *) platform=U_UNKNOWN_PLATFORM ;; esac @@ -4089,7 +4065,7 @@ esac case "${host}" in *-*-hpux*) - if test "$ac_cv_prog_gcc" != yes; then + if test "${icu_cv_host_frag}" = "mh-hpux-cc"; then for file in samples/date/date \ samples/cal/cal test/cintltst/cintltst \ tools/makeconv/makeconv tools/genrb/genrb \ @@ -4098,7 +4074,8 @@ case "${host}" in tools/gencnval/gencnval tools/gennorm/gennorm \ tools/gennames/gennames tools/gentest/gentest \ tools/pkgdata/pkgdata tools/genprops/genprops \ - tools/genidna/genidna + tools/gencase/gencase \ + tools/gensprep/gensprep do if test -f $file.c; then mv $file.c $file.cpp @@ -4125,10 +4102,6 @@ fi -if test $hpuxcma = true; then - CPPFLAGS="${CPPFLAGS} -D_PTHREADS_DRAFT4 -DHPUX_CMA" -fi - if test $ICU_USE_THREADS -ne 0 then @@ -4137,15 +4110,6 @@ then CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" fi -if test "$ac_cv_lib_dld_shl_load" = "yes"; then - CPPFLAGS="${CPPFLAGS} -DICU_USE_SHL_LOAD" -fi - - -if test "$ac_cv_func_dllload" = "yes"; then - CPPFLAGS="${CPPFLAGS} -DICU_USE_SHL_LOAD" -fi - trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -4247,36 +4211,47 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "README icudefs.mk \ +trap 'rm -fr `echo "icudefs.mk \ Makefile \ - data/Makefile data/icupkg.inc \ - common/Makefile config/Makefile.inc i18n/Makefile \ + data/icupkg.inc \ + config/Makefile.inc \ + data/Makefile \ + stubdata/Makefile \ + common/Makefile \ + i18n/Makefile \ layout/Makefile \ layoutex/Makefile \ - extra/Makefile extra/ustdio/Makefile \ - extra/uconv/Makefile extra/scrptrun/Makefile - stubdata/Makefile \ - tools/Makefile tools/ctestfw/Makefile tools/makeconv/Makefile \ - tools/genrb/Makefile \ - tools/genuca/Makefile \ - tools/pkgdata/Makefile \ - tools/genccode/Makefile tools/gencmn/Makefile \ - tools/gencnval/Makefile tools/gentz/Makefile \ - tools/gennames/Makefile tools/toolutil/Makefile \ + io/Makefile \ + extra/Makefile \ + extra/uconv/Makefile extra/scrptrun/Makefile \ + tools/Makefile tools/ctestfw/Makefile \ + tools/makeconv/Makefile \ + tools/genrb/Makefile \ + tools/genuca/Makefile \ + tools/genccode/Makefile \ + tools/gencmn/Makefile \ + tools/gencnval/Makefile \ + tools/gennames/Makefile \ tools/gentest/Makefile \ tools/gennorm/Makefile \ tools/genprops/Makefile \ + tools/gencase/Makefile \ tools/genpname/Makefile \ tools/genbrk/Makefile \ - tools/genidna/Makefile \ + tools/gensprep/Makefile \ + tools/icuswap/Makefile \ + tools/pkgdata/Makefile \ + tools/toolutil/Makefile \ tools/dumpce/Makefile \ - test/Makefile test/testdata/Makefile \ + test/Makefile \ + test/testdata/Makefile \ + test/testdata/pkgdata.inc \ + test/hdrtst/Makefile \ test/intltest/Makefile \ test/cintltst/Makefile \ test/iotest/Makefile \ - test/ieeetest/Makefile \ - test/testmap/Makefile \ test/thaitest/Makefile \ + test/testmap/Makefile \ test/letest/Makefile \ test/threadtest/Makefile \ samples/Makefile samples/date/Makefile \ @@ -4323,7 +4298,6 @@ s%@CXX@%$CXX%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@AUTOCONF@%$AUTOCONF%g s%@STRIP@%$STRIP%g s%@U_MAKE@%$U_MAKE%g s%@DOXYGEN@%$DOXYGEN%g @@ -4336,19 +4310,20 @@ s%@EXEEXT@%$EXEEXT%g s%@ARFLAGS@%$ARFLAGS%g s%@COMPILE_LINK_ENVVAR@%$COMPILE_LINK_ENVVAR%g s%@LIB_M@%$LIB_M%g -s%@HPUX_CMA_TRUE@%$HPUX_CMA_TRUE%g -s%@HPUX_CMA_FALSE@%$HPUX_CMA_FALSE%g s%@ENABLE_SHARED@%$ENABLE_SHARED%g s%@ENABLE_STATIC@%$ENABLE_STATIC%g +s%@ENABLE_DEBUG@%$ENABLE_DEBUG%g +s%@ENABLE_RELEASE@%$ENABLE_RELEASE%g s%@RANLIB@%$RANLIB%g s%@AR@%$AR%g s%@U_DISABLE_RENAMING@%$U_DISABLE_RENAMING%g +s%@U_ENABLE_TRACING@%$U_ENABLE_TRACING%g s%@ENABLE_RPATH@%$ENABLE_RPATH%g s%@U_INLINE@%$U_INLINE%g s%@THREADS_TRUE@%$THREADS_TRUE%g -s%@THREADS_FALSE@%$THREADS_FALSE%g s%@ICU_USE_THREADS@%$ICU_USE_THREADS%g s%@HAVE_MMAP@%$HAVE_MMAP%g +s%@GENCCODE_ASSEMBLY@%$GENCCODE_ASSEMBLY%g s%@CPP@%$CPP%g s%@U_HAVE_INTTYPES_H@%$U_HAVE_INTTYPES_H%g s%@CXXCPP@%$CXXCPP%g @@ -4361,7 +4336,9 @@ s%@U_HAVE_NAMESPACE@%$U_HAVE_NAMESPACE%g s%@U_OVERRIDE_CXX_ALLOCATION@%$U_OVERRIDE_CXX_ALLOCATION%g s%@U_HAVE_PLACEMENT_NEW@%$U_HAVE_PLACEMENT_NEW%g s%@U_HAVE_POPEN@%$U_HAVE_POPEN%g +s%@U_HAVE_TZSET@%$U_HAVE_TZSET%g s%@U_TZSET@%$U_TZSET%g +s%@U_HAVE_TZNAME@%$U_HAVE_TZNAME%g s%@U_TZNAME@%$U_TZNAME%g s%@U_HAVE_TIMEZONE@%$U_HAVE_TIMEZONE%g s%@U_TIMEZONE@%$U_TIMEZONE%g @@ -4376,14 +4353,9 @@ s%@HAVE_UINT64_T@%$HAVE_UINT64_T%g s%@U_HAVE_WCHAR_H@%$U_HAVE_WCHAR_H%g s%@U_HAVE_WCSCPY@%$U_HAVE_WCSCPY%g s%@U_SIZEOF_WCHAR_T@%$U_SIZEOF_WCHAR_T%g -s%@ECHO_N@%$ECHO_N%g -s%@ECHO_C@%$ECHO_C%g s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g -s%@EXTRAS_FALSE@%$EXTRAS_FALSE%g -s%@USTDIO_TRUE@%$USTDIO_TRUE%g -s%@USTDIO_FALSE@%$USTDIO_FALSE%g +s%@ICUIO_TRUE@%$ICUIO_TRUE%g s%@LAYOUT_TRUE@%$LAYOUT_TRUE%g -s%@LAYOUT_FALSE@%$LAYOUT_FALSE%g s%@thesysconfdir@%$thesysconfdir%g s%@thedatadir@%$thedatadir%g s%@thelibdir@%$thelibdir%g @@ -4395,9 +4367,7 @@ s%@ICULIBSUFFIX@%$ICULIBSUFFIX%g s%@U_HAVE_LIB_SUFFIX@%$U_HAVE_LIB_SUFFIX%g s%@ICULIBSUFFIXCNAME@%$ICULIBSUFFIXCNAME%g s%@TESTS_TRUE@%$TESTS_TRUE%g -s%@TESTS_FALSE@%$TESTS_FALSE%g s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g -s%@SAMPLES_FALSE@%$SAMPLES_FALSE%g s%@ICUDATA_CHAR@%$ICUDATA_CHAR%g s%@platform@%$platform%g s%@platform_make_fragment_name@%$platform_make_fragment_name%g @@ -4445,34 +4415,45 @@ EOF cat >> $CONFIG_STATUS <