diff --git a/icu4c/as_is/os400/configure b/icu4c/as_is/os400/configure index 73361c58385..459d2d516fe 100755 --- a/icu4c/as_is/os400/configure +++ b/icu4c/as_is/os400/configure @@ -11,12 +11,10 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: -ac_help="$ac_help - --enable-debug enables debug symbols [default=no]" -ac_help="$ac_help - --disable-debug disables debug output and debug symbols [default=no]" ac_help="$ac_help --enable-strict compile with strict compiler options [default=no]" +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]" ac_help="$ac_help @@ -28,15 +26,19 @@ ac_help="$ac_help ac_help="$ac_help --enable-threads build ICU with threads [default=yes]" ac_help="$ac_help - --with-iostream=version specify the version of iostream to use (old, std, auto) [default=auto]" + --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-layout build ICU layout [default=no]" + --enable-ustdio build ICU's ustdio library [default=yes]" +ac_help="$ac_help + --enable-layout build ICU's layout library [default=no]" ac_help="$ac_help --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) [default=auto]" ac_help="$ac_help " +ac_help="$ac_help + --with-library-suffix=suffix tag a suffix to the library names [default=]" ac_help="$ac_help --enable-tests build ICU tests [default=yes]" ac_help="$ac_help @@ -558,9 +560,19 @@ PACKAGE="icu" echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6 -echo "configure:562: checking for ICU version numbers" >&5 +echo "configure:564: checking for ICU version numbers" >&5 -VERSION=`sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' $srcdir/common/unicode/utypes.h` + +geticuversion() { + sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" +} +VERSION=`geticuversion $srcdir/common/unicode/uversion.h` +if test x"$VERSION" = x; then + VERSION=`geticuversion $srcdir/common/unicode/*.h` + if test x"$VERSION" = x; then + { echo "configure: error: Cannot determine ICU version number from header files" 1>&2; exit 1; } + fi +fi LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` @@ -568,7 +580,7 @@ LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6 -UNICODE_VERSION="3.0.0" +UNICODE_VERSION="3.1.1" thedatadir=`eval echo $datadir` @@ -579,36 +591,10 @@ thelibdir=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $lib CPPFLAGS="${CPPFLAGS} -I." - - # Check whether --enable-debug or --disable-debug was given. -if test "${enable_debug+set}" = set; then - enableval="$enable_debug" - - if test $enableval = "no"; then - ac_use_debug_code="no" - ac_use_debug_define=yes - else - ac_use_debug_code="yes" - ac_use_debug_define=no - fi - -else - ac_use_debug_code="no" - ac_use_debug_define=no - -fi - - # Check whether --enable-dummyoption or --disable-dummyoption was given. -if test "${enable_dummyoption+set}" = set; then - enableval="$enable_dummyoption" - : -fi - - - # Extract the first word of "gcc", so it can be a program name with args. +# 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:612: 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 @@ -638,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:642: 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 @@ -689,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:693: 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 @@ -721,7 +707,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:725: 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. @@ -732,12 +718,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 736 "configure" +#line 722 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x 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 @@ -763,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:767: 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:772: 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 @@ -777,7 +763,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -c qpponly conftest.c'; { (eval echo configure:751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -c qpponly 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 @@ -796,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:800: 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 @@ -827,12 +813,12 @@ else fi fi - for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl +for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 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:836: 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 @@ -864,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:868: 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. @@ -875,12 +861,12 @@ cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF -#line 879 "configure" +#line 865 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x 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 @@ -906,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:910: 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:915: 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 @@ -920,7 +906,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -c qpponly conftest.C'; { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -c qpponly 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 @@ -939,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:943: 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 @@ -970,6 +956,57 @@ 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:978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + del -f conftest* + continue +fi +del -f conftest* + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + del -f conftest* + break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +del -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 @@ -1001,7 +1038,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:1006: checking for a BSD compatible install" >&5 +echo "configure:1042: 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 @@ -1065,7 +1102,7 @@ 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:1070: checking for $ac_word" >&5 +echo "configure:1106: 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 @@ -1095,7 +1132,7 @@ fi # 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:1100: checking for $ac_word" >&5 +echo "configure:1136: 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 @@ -1123,12 +1160,12 @@ else fi -for ac_prog in gmake +for ac_prog in gmake gnumake 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:1133: checking for $ac_word" >&5 +echo "configure:1169: 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 @@ -1166,9 +1203,45 @@ 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:1210: 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 + case "$DOXYGEN" in + /*) + ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH:/usr/local/bin:/usr/bin" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -x $ac_dir/$ac_word; then + ac_cv_path_DOXYGEN="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +DOXYGEN="$ac_cv_path_DOXYGEN" +if test -n "$DOXYGEN"; then + echo "$ac_t""$DOXYGEN" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6 -echo "configure:1173: checking whether strict compiling is on" >&5 +echo "configure:1245: 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" @@ -1206,7 +1279,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:1211: checking host system type" >&5 +echo "configure:1283: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -1227,30 +1300,73 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 -SOL64=no -case "${host}" in -*-*-solaris*) - if test "$ac_cv_prog_gcc" = no; then - echo $ac_n "checking if we have a 64-bit (sparcv9) compiler""... $ac_c" 1>&6 -echo "configure:1237: checking if we have a 64-bit (sparcv9) compiler" >&5 - SOL64=`$CXX -xarch=v9 && $CC -xarch=v9 2>&1 |grep -v usage:` - if test -z "$SOL64"; then - echo "$ac_t""yes" 1>&6 - SOL64=yes - else - echo "$ac_t""no" 1>&6 - SOL64=no - fi - fi ;; -alpha*-*-linux-gnu) - CFLAGS="${CFLAGS} -mieee -O2" - CXXFLAGS="${CXXFLAGS} -mieee -O2" - ;; -esac +OLD_CPPFLAGS="${CPPFLAGS}" +# Check whether --enable-64bit-libs or --disable-64bit-libs was given. +if test "${enable_64bit_libs+set}" = set; then + enableval="$enable_64bit_libs" + ENABLE_64BIT_LIBS=${enableval} +else + ENABLE_64BIT_LIBS=yes + +fi + +echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6 +echo "configure:1315: checking for 64-bit executable support" >&5 +if eval "test \"`echo '$''{'ac_cv_64bit_ok'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$ENABLE_64BIT_LIBS" = no; then + case "${host}" in + *-*-hpux*) + case "${CXX}" in + *CC) + CPPFLAGS="${CPPFLAGS} +DAportable" + ;; + esac;; + esac + else + case "${host}" in + *-*-solaris*) + if test "$ac_cv_prog_gcc" = no; then + 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 + CPPFLAGS="${CPPFLAGS} -xtarget=ultra -xarch=v9" + ENABLE_64BIT_LIBS=yes + else + ENABLE_64BIT_LIBS=no + fi + else + ENABLE_64BIT_LIBS=no + fi + ;; +# *-*-aix*) +# CPPFLAGS="${CPPFLAGS} -q64" +# AC_TRY_RUN(int main(void) {return 0;}, +# ENABLE_64BIT_LIBS=yes, ENABLE_64BIT_LIBS=no, ENABLE_64BIT_LIBS=no) +# ;; + *-*-hpux*) + ENABLE_64BIT_LIBS=unknown + ;; + *) + ENABLE_64BIT_LIBS=no + ;; + esac + fi + ac_cv_64bit_ok="${ENABLE_64BIT_LIBS}" + + +fi + +echo "$ac_t""$ac_cv_64bit_ok" 1>&6 +# Don't reset the CPPFLAGS here because of HP/UX +# Individual tests that fail should reset it to OLD_CPPFLAGS. +ENABLE_64BIT_LIBS="${ac_cv_64bit_ok}" + echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6 -echo "configure:1255: checking which Makefile fragment to use" >&5 +echo "configure:1370: checking which Makefile fragment to use" >&5 if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1260,15 +1376,19 @@ case "${host}" in if test "$ac_cv_prog_gcc" = yes; then icu_cv_host_frag=mh-solaris-gcc else - if test "$SOL64" = yes; then - icu_cv_host_frag=mh-solaris-sparcv9 - else - icu_cv_host_frag=mh-solaris - fi + icu_cv_host_frag=mh-solaris fi ;; -*-*-mips*) icu_cv_host_frag=mh-irix ;; -*-*-linux*) icu_cv_host_frag=mh-linux ;; -*-*-freebsd*|*-*-netbsd*) icu_cv_host_frag=mh-bsd-gcc ;; +*-*-irix*) icu_cv_host_frag=mh-irix ;; +alpha*-*-linux-gnu) + if test "$ac_cv_prog_gcc" = yes; then + icu_cv_host_frag=mh-alpha-linux-gcc + else + icu_cv_host_frag=mh-alpha-linux-cc + fi ;; +*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; +*-*-linux*) icu_cv_host_frag=mh-linux ;; +*-*-cygwin) icu_cv_host_frag=mh-cygwin ;; +*-*-*bsd*) icu_cv_host_frag=mh-bsd-gcc ;; *-*-aix*) case "$CXX" in *vacpp*)icu_cv_host_frag=mh-aix-va ;; @@ -1280,7 +1400,7 @@ case "${host}" in *aCC) icu_cv_host_frag=mh-hpux-acc ;; *CC) icu_cv_host_frag=mh-hpux-cc ;; esac;; -*-*-os390*) icu_cv_host_frag=mh-os390 ;; +*-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; *-*-os400*) icu_cv_host_frag=mh-os400 ;; *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; @@ -1298,7 +1418,7 @@ hpuxcma=false case "${host}" in *-*-hpux10*) hpuxcma=true echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1303: checking for floor in -lm" >&5 +echo "configure:1422: 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 @@ -1306,7 +1426,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1338,7 +1458,7 @@ else fi ;; *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1343: checking for floor in -lm" >&5 +echo "configure:1462: 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 @@ -1346,7 +1466,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1379,7 +1499,7 @@ fi ;; *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 -echo "configure:1384: checking for floor in -lm" >&5 +echo "configure:1503: 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 @@ -1387,7 +1507,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1461,7 +1581,7 @@ if test $hpuxcma = true; then fi echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 -echo "configure:1466: checking whether to build shared libraries" >&5 +echo "configure:1585: 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 @@ -1480,7 +1600,7 @@ echo "$ac_t""$enabled" 1>&6 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 -echo "configure:1485: checking whether to build static libraries" >&5 +echo "configure:1604: 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 @@ -1498,7 +1618,7 @@ 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:1503: checking for $ac_word" >&5 +echo "configure:1622: 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 @@ -1526,6 +1646,7 @@ else fi + # Check whether --enable-rpath or --disable-rpath was given. if test "${enable_rpath+set}" = set; then enableval="$enable_rpath" @@ -1541,6 +1662,42 @@ fi + +echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6 +echo "configure:1668: 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 + del -f conftest* + ac_cv_c_inline=$ac_kw; break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +del -f conftest* + done + +fi + +echo "$ac_t""$ac_cv_c_inline" 1>&6 +case "$ac_cv_c_inline" in + yes) U_INLINE= "inline" ;; + no ) U_INLINE= ;; + *) U_INLINE=$ac_cv_c_inline ;; +esac + + threads=true # Check whether --enable-threads or --disable-threads was given. @@ -1570,7 +1727,7 @@ ICU_USE_THREADS=0 if test $hpuxcma = true; then if test $threads = true; then echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 -echo "configure:1575: checking for pthread_create in -lcma" >&5 +echo "configure:1731: 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 @@ -1578,7 +1735,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcma $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1621,98 +1778,28 @@ fi fi fi else -if test $threads = true; then - - - -echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6 -echo "configure:1631: 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 -LIBS="-l$i $ac_func_search_save_LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - ac_cv_search_pthread_mutex_destroy="-l$i" -break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -del -f conftest* -done -if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - ac_cv_search_pthread_mutex_destroy="none required" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -del -f conftest* -fi -LIBS="$ac_func_search_save_LIBS" -fi - -echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6 -if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then - test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" - -else : - -fi - - if test "$ac_cv_search_pthread_mutex_destroy" != no; then - ICU_USE_THREADS=1 - else - echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 -echo "configure:1698: checking for pthread_mutex_init in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'` + + echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 +echo "configure:1784: 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 else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1739,18 +1826,139 @@ else echo "$ac_t""no" 1>&6 fi - if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then - ICU_USE_THREADS=1 - fi - fi + if test $ac_cv_lib_pthread_pthread_attr_init = yes; then + ICU_USE_THREADS=1 + else + if test $threads = true; then - echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6 -echo "configure:1750: checking for pthread_mutex_lock" >&5 + + +echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6 +echo "configure:1838: 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 +LIBS="-l$i $ac_func_search_save_LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then + del -f conftest* + ac_cv_search_pthread_mutex_destroy="-l$i" +break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +del -f conftest* +done +if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then + del -f conftest* + ac_cv_search_pthread_mutex_destroy="none required" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +del -f conftest* +fi +LIBS="$ac_func_search_save_LIBS" +fi + +echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6 +if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then + test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" + +else : + +fi + + if test "$ac_cv_search_pthread_mutex_destroy" != no; then + ICU_USE_THREADS=1 + else + echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 +echo "configure:1905: 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 +else + ac_save_LIBS="$LIBS" +LIBS="-lpthread $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then + del -f conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + del -f conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +del -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 pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + + if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then + ICU_USE_THREADS=1 + fi + fi + + echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6 +echo "configure:1957: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_func_pthread_mutex_lock=yes" else @@ -1793,200 +2001,58 @@ else fi - if test $ac_cv_func_pthread_mutex_lock = yes; then - ICU_USE_THREADS=1 + if test $ac_cv_func_pthread_mutex_lock = yes; then + ICU_USE_THREADS=1 + fi + fi fi - -fi fi -# check for dlopen() -HAVE_DLOPEN=0 - -#add more libs here.. - -echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6 -echo "configure:1814: checking for library containing dlopen" >&5 -if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_func_search_save_LIBS="$LIBS" -ac_cv_search_dlopen="no" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - ac_cv_search_dlopen="none required" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -del -f conftest* -test "$ac_cv_search_dlopen" = "no" && for i in c dl; do -LIBS="-l$i $ac_func_search_save_LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - ac_cv_search_dlopen="-l$i" -break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -del -f conftest* -done -LIBS="$ac_func_search_save_LIBS" -fi - -echo "$ac_t""$ac_cv_search_dlopen" 1>&6 -if test "$ac_cv_search_dlopen" != "no"; then - test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" - -else : - -fi - -if test "$ac_cv_search_dlopen" != no; then -HAVE_DLOPEN=1 -fi - -if test $HAVE_DLOPEN = 0; then - echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 -echo "configure:1881: checking for shl_load in -ldld" >&5 -ac_lib_var=`echo dld'_'shl_load | 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="-ldld $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - del -f conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -del -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 dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 -fi - - if test $ac_cv_lib_dld_shl_load = yes; then - HAVE_DLOPEN=1 - - fi -fi - - -if test $HAVE_DLOPEN = 0; then - echo $ac_n "checking for dllload""... $ac_c" 1>&6 -echo "configure:1936: checking for dllload" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dllload'+set}'`\" = set"; then +# The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. +# Do this check instead. +HAVE_MMAP=0 +echo $ac_n "checking for mmap""... $ac_c" 1>&6 +echo "configure:2019: 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 < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char dllload(); - + +#include +#include +#include +#include + int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_dllload) || defined (__stub___dllload) -choke me -#else -dllload(); -#endif - + mmap((void *)0, 0, PROT_READ, 0, 0, 0); ; return 0; } EOF -if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* - eval "ac_cv_func_dllload=yes" + ac_cv_func_mmap_ok=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 del -f conftest* - eval "ac_cv_func_dllload=no" + ac_cv_func_mmap_ok=no fi -del -f conftest* +del -f conftest* fi -if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 +echo "$ac_t""$ac_cv_func_mmap_ok" 1>&6 +if test $ac_cv_func_mmap_ok = yes +then + HAVE_MMAP=1 fi - if test $ac_cv_func_dllload = yes; then - HAVE_DLOPEN=1 - fi -fi - - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1991: checking how to run the C preprocessor" >&5 +echo "configure:2056: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1998,16 +2064,16 @@ else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -c -qpponly" - # On the NeXT, cc -c qpponly runs the code through the compiler's parser, + # 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:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2077: \"$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 : @@ -2018,13 +2084,13 @@ else del -f conftest* CPP="${CC-cc} -c qpponly -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2094: \"$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 : @@ -2035,13 +2101,13 @@ else del -f conftest* CPP="${CC-cc} -nologo -c -qpponly" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2111: \"$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 : @@ -2065,292 +2131,21 @@ else fi echo "$ac_t""$CPP" 1>&6 -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2074: 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:2084: \"$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 - del -f conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - del -f conftest* - eval "ac_cv_header_$ac_safe=no" -fi -del -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2113: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then - del -f conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - del -f conftest* - eval "ac_cv_func_$ac_func=no" -fi -del -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2166: checking for working mmap" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat > conftest.$ac_ext < -#include -#include - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - del -f conftest* - ac_cv_func_mmap_fixed_mapped=no -fi -del -f conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 -if test $ac_cv_func_mmap_fixed_mapped = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MMAP 1 -EOF - -fi - -if test $ac_cv_func_mmap_fixed_mapped = yes; then - HAVE_MMAP=1 -fi - - 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:2345: checking for $ac_hdr" >&5 +echo "configure:2139: 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:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2149: \"$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 del -f conftest* @@ -2377,20 +2172,27 @@ fi done if test $ac_cv_header_inttypes_h = no; then -U_HAVE_INTTYPES_H=0 + U_HAVE_INTTYPES_H=0 else -U_HAVE_INTTYPES_H=1 + U_HAVE_INTTYPES_H=1 fi +if test $CC = ccc; then + echo "$ac_t"""C compiler set to CCC ${CC}" " 1>&6 + case "${host}" in + alpha*-*-*) U_HAVE_INTTYPES_H=0; + esac +fi + # Check whether --with-iostream or --without-iostream was given. if test "${with_iostream+set}" = set; then withval="$with_iostream" case "${withval}" in - none) streams=none ;; + none) streams=none ;; old) streams=198506 ;; std) streams=199711 ;; - auto) streams= ;; + auto) streams= ;; *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;; esac else @@ -2398,6 +2200,7 @@ else fi +U_IOSTREAM_SOURCE=0 if test x$streams != xnone then @@ -2408,9 +2211,8 @@ 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 - U_IOSTREAM_SOURCE=0 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:2415: checking how to run the C++ preprocessor" >&5 +echo "configure:2216: 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 @@ -2423,12 +2225,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -c -qpponly" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2234: \"$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 : @@ -2454,17 +2256,17 @@ echo "$ac_t""$CXXCPP" 1>&6 ac_safe=`echo "iostream" | sed 'y%./+-%__p_%'` echo $ac_n "checking for iostream""... $ac_c" 1>&6 -echo "configure:2459: checking for iostream" >&5 +echo "configure:2260: checking for iostream" >&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:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2270: \"$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 del -f conftest* @@ -2491,17 +2293,17 @@ fi else ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for iostream.h""... $ac_c" 1>&6 -echo "configure:2496: checking for iostream.h" >&5 +echo "configure:2297: 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:2506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2307: \"$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 del -f conftest* @@ -2524,19 +2326,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:2529: checking whether ostream is really defined" >&5 +echo "configure:2330: 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:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_iostream_ok=yes else @@ -2575,14 +2377,14 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:2580: checking whether byte ordering is bigendian" >&5 +echo "configure:2381: 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 @@ -2593,11 +2395,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then del -f conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -2608,7 +2410,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then del -f conftest* ac_cv_c_bigendian=yes else @@ -2628,7 +2430,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 -x conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -2675,17 +2477,17 @@ fi ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 -echo "configure:2680: checking for wchar.h" >&5 +echo "configure:2481: 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:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2491: \"$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 del -f conftest* @@ -2718,14 +2520,14 @@ EOF U_HAVE_WCHAR_H=1 echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6 -echo "configure:2723: checking for library containing wcscpy" >&5 +echo "configure:2524: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_search_wcscpy="none required" else @@ -2747,7 +2549,7 @@ del -f conftest* test "$ac_cv_search_wcscpy" = "no" && for i in wcs; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_search_wcscpy="-l$i" break @@ -2790,12 +2592,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:2795: checking for nl_langinfo" >&5 +echo "configure:2596: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_func_nl_langinfo=yes" else @@ -2841,21 +2643,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:2846: checking for nl_langinfo's argument to obtain the codeset" >&5 +echo "configure:2647: 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:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_nl_langinfo_codeset="$a"; break else @@ -2875,13 +2677,65 @@ echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6 fi + +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +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 + +U_HAVE_NAMESPACE=0 +echo $ac_n "checking for namespace support""... $ac_c" 1>&6 +echo "configure:2691: 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 -x conftest${ac_exeext}; then + del -f conftest* + ac_cv_namespace_ok=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + del -f conftest* + ac_cv_namespace_ok=no +fi +del -f conftest* +fi + +echo "$ac_t""$ac_cv_namespace_ok" 1>&6 +U_HAVE_NAMESPACE=1 +if test $ac_cv_namespace_ok = no +then + U_HAVE_NAMESPACE=0 +fi + + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + echo $ac_n "checking for tzset""... $ac_c" 1>&6 -echo "configure:2881: checking for tzset" >&5 +echo "configure:2734: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_func_tzset=yes" else @@ -2928,12 +2782,12 @@ then U_TZSET=tzset else echo $ac_n "checking for _tzset""... $ac_c" 1>&6 -echo "configure:2933: checking for _tzset" >&5 +echo "configure:2786: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* eval "ac_cv_func__tzset=yes" else @@ -2982,12 +2836,12 @@ fi fi echo $ac_n "checking for tzname""... $ac_c" 1>&6 -echo "configure:2987: checking for tzname" >&5 +echo "configure:2840: 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 <&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_var_tzname=yes else @@ -3017,12 +2871,12 @@ if test $ac_cv_var_tzname = yes; then U_TZNAME=tzname else echo $ac_n "checking for _tzname""... $ac_c" 1>&6 -echo "configure:3022: checking for _tzname" >&5 +echo "configure:2875: 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 < extern char *_tzname[]; @@ -3031,7 +2885,7 @@ int main() { atoi(*_tzname); ; return 0; } EOF -if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_var__tzname=yes else @@ -3049,13 +2903,14 @@ echo "$ac_t""$ac_cv_var__tzname" 1>&6 fi fi + echo $ac_n "checking for timezone""... $ac_c" 1>&6 -echo "configure:3055: checking for timezone" >&5 +echo "configure:2909: 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 -x conftest${ac_exeext}; then +if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_var_timezone=yes else @@ -3082,16 +2937,18 @@ del -f conftest* fi echo "$ac_t""$ac_cv_var_timezone" 1>&6 +U_HAVE_TIMEZONE=0 if test $ac_cv_var_timezone = yes; then U_TIMEZONE=timezone + U_HAVE_TIMEZONE=1 else echo $ac_n "checking for __timezone""... $ac_c" 1>&6 -echo "configure:3091: checking for __timezone" >&5 +echo "configure:2947: 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 < @@ -3099,7 +2956,7 @@ int main() { __timezone = 1; ; return 0; } EOF -if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_var___timezone=yes else @@ -3114,14 +2971,15 @@ fi echo "$ac_t""$ac_cv_var___timezone" 1>&6 if test $ac_cv_var___timezone = yes; then U_TIMEZONE=__timezone + U_HAVE_TIMEZONE=1 else echo $ac_n "checking for _timezone""... $ac_c" 1>&6 -echo "configure:3121: checking for _timezone" >&5 +echo "configure:2978: 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 < @@ -3129,7 +2987,7 @@ int main() { _timezone = 1; ; return 0; } EOF -if { (eval echo configure:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then +if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; then del -f conftest* ac_cv_var__timezone=yes else @@ -3144,14 +3002,16 @@ fi echo "$ac_t""$ac_cv_var__timezone" 1>&6 if test $ac_cv_var__timezone = yes; then U_TIMEZONE=_timezone + U_HAVE_TIMEZONE=1 fi fi fi + ac_default_sizeof_wchar_t=4 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 -echo "configure:3156: checking size of wchar_t" >&5 +echo "configure:3015: 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 @@ -3159,7 +3019,7 @@ else ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t else cat > conftest.$ac_ext < @@ -3176,7 +3036,7 @@ main() exit(0); } EOF -if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_wchar_t=`cat conftestval` else @@ -3199,12 +3059,12 @@ U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3204: checking for ANSI C header files" >&5 +echo "configure:3063: 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 @@ -3212,7 +3072,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3076: \"$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 del -f conftest* @@ -3229,7 +3089,7 @@ del -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 @@ -3247,7 +3107,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 @@ -3268,7 +3128,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -3279,7 +3139,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; # && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -x conftest${ac_exeext}; # && (./conftest; exit) 2>/dev/null then : else @@ -3303,12 +3163,12 @@ EOF fi echo $ac_n "checking for int8_t""... $ac_c" 1>&6 -echo "configure:3308: checking for int8_t" >&5 +echo "configure:3167: 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 @@ -3336,12 +3196,12 @@ EOF fi echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 -echo "configure:3341: checking for uint8_t" >&5 +echo "configure:3200: 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 @@ -3369,12 +3229,12 @@ EOF fi echo $ac_n "checking for int16_t""... $ac_c" 1>&6 -echo "configure:3374: checking for int16_t" >&5 +echo "configure:3233: 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 @@ -3402,12 +3262,12 @@ EOF fi echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 -echo "configure:3407: checking for uint16_t" >&5 +echo "configure:3266: 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 @@ -3435,12 +3295,12 @@ EOF fi echo $ac_n "checking for int32_t""... $ac_c" 1>&6 -echo "configure:3440: checking for int32_t" >&5 +echo "configure:3299: 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 @@ -3468,12 +3328,12 @@ EOF fi echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 -echo "configure:3473: checking for uint32_t" >&5 +echo "configure:3332: 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 @@ -3500,13 +3360,13 @@ EOF fi -echo $ac_n "checking for bool_t""... $ac_c" 1>&6 -echo "configure:3506: checking for bool_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_bool_t'+set}'`\" = set"; then +echo $ac_n "checking for int64_t""... $ac_c" 1>&6 +echo "configure:3365: 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 @@ -3515,20 +3375,53 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])bool_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then del -f conftest* - ac_cv_type_bool_t=yes + ac_cv_type_int64_t=yes else del -f conftest* - ac_cv_type_bool_t=no + ac_cv_type_int64_t=no fi del -f conftest* fi -echo "$ac_t""$ac_cv_type_bool_t" 1>&6 -if test $ac_cv_type_bool_t = no; then +echo "$ac_t""$ac_cv_type_int64_t" 1>&6 +if test $ac_cv_type_int64_t = no; then cat >> confdefs.h <<\EOF -#define bool_t signed char +#define int64_t signed long +EOF + +fi + +echo $ac_n "checking for uint64_t""... $ac_c" 1>&6 +echo "configure:3398: 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 +#include +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + del -f conftest* + ac_cv_type_uint64_t=yes +else + del -f conftest* + ac_cv_type_uint64_t=no +fi +del -f conftest* + +fi +echo "$ac_t""$ac_cv_type_uint64_t" 1>&6 +if test $ac_cv_type_uint64_t = no; then + cat >> confdefs.h <<\EOF +#define uint64_t unsigned long EOF fi @@ -3576,10 +3469,17 @@ HAVE_UINT32_T=1 fi -if test $ac_cv_type_bool_t = no; then -HAVE_BOOL_T=0 +if test $ac_cv_type_int64_t = no; then +HAVE_INT64_T=0 else -HAVE_BOOL_T=1 +HAVE_INT64_T=1 +fi + + +if test $ac_cv_type_uint64_t = no; then +HAVE_UINT64_T=0 +else +HAVE_UINT64_T=1 fi @@ -3609,6 +3509,27 @@ 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; } ;; + esac +else + ustdio=true +fi + + + +if test "$ustdio" = true; then + USTDIO_TRUE= + USTDIO_FALSE='#' +else + USTDIO_TRUE='#' + USTDIO_FALSE= +fi # Check whether --enable-layout or --disable-layout was given. if test "${enable_layout+set}" = set; then @@ -3675,15 +3596,12 @@ if test x"$mapped" != x; then fi if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then - if test "$HAVE_DLOPEN" -eq 1; then datapackaging=library - else - datapackaging=archive - fi fi case "$datapackaging" in files) + DATA_PACKAGING_CPPFLAGS=-DUDATA_FILES DATA_PACKAGING_MODE=files ;; archive) @@ -3698,6 +3616,23 @@ esac +echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6 +echo "configure:3621: 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" + ICULIBSUFFIX="${withval}" +else + ICULIBSUFFIX= +fi + +msg=$ICULIBSUFFIX +if test x"$msg" = x; then + msg=none +fi +echo "$ac_t""$msg" 1>&6 + + # Check whether --enable-tests or --disable-tests was given. if test "${enable_tests+set}" = set; then enableval="$enable_tests" @@ -3747,12 +3682,13 @@ ICUDATA_CHAR=$U_ENDIAN_CHAR case "${host}" in *-*-solaris*) platform=U_SOLARIS ;; *-*-linux*) platform=U_LINUX ;; - *-*-freebsd*) platform=U_LINUX ;; + *-*-*bsd*) platform=U_BSD ;; *-*-aix*) platform=AIX ;; *-sequent-*) platform=PTX ;; *-*-hpux*) platform=HPUX ;; + *-dec-osf*) platform=U_OSF ;; *-*-irix*) platform=IRIX ;; - *-*-os390*) platform=OS390 + *-*ibm-openedition*|*-*-os390*) platform=OS390 ICUDATA_CHAR="e" ;; *-*-os400*) platform=OS400 ICUDATA_CHAR="e" ;; @@ -3769,12 +3705,12 @@ platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" case "${host}" in *-*-solaris*) ld_rpath_suf=":" ;; *-*-linux*) ld_rpath_suf=" " ;; - *-*-freebsd*) ld_rpath_suf=" " ;; + *-*-*bsd*) ld_rpath_suf=" " ;; *-*-aix*) ld_rpath_suf="" ;; *-sequent-*) ld_rpath_suf="" ;; *-*-hpux*) ld_rpath_suf=":" ;; *-*-irix*) ld_rpath_suf=" " ;; - *-*-os390*) ld_rpath_suf="" ;; + *-*ibm-openedition*|*-*-os390*) ld_rpath_suf="" ;; *-*-os400*) ld_rpath_suf=" " ;; *) ld_rpath_suf="" ;; esac @@ -3785,15 +3721,15 @@ case "${host}" in for file in samples/date/date \ samples/cal/cal test/cintltst/cintltst \ tools/makeconv/makeconv tools/genrb/genrb \ - tools/rbdump/read tools/genccode/genccode \ - tools/gencmn/gencmn tools/gencnval/gencnval \ + tools/genccode/genccode \ + tools/gencmn/gencmn tools/gencmn/decmn \ + tools/gencnval/gencnval tools/gennorm/gennorm \ tools/gennames/gennames tools/gentest/gentest \ - tools/pkgdata/pkgdata tools/genqchk/genqchk \ - tools/genfchk/genfchk tools/genprops/genprops + tools/pkgdata/pkgdata tools/genprops/genprops do if test -f $file.c; then mv $file.c $file.cpp - else + else echo "# $file.c does not exist or is already renamed [warning]" fi done @@ -3932,17 +3868,24 @@ trap 'del -f `echo "README icudefs.mk \ data/Makefile data/build/Makefile \ common/Makefile config/Makefile.inc i18n/Makefile \ layout/Makefile \ - extra/Makefile extra/ustdio/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/pkgdata/icupkg.inc \ - tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gentz/Makefile \ + tools/genccode/Makefile tools/gencmn/Makefile \ + tools/gencnval/Makefile tools/gentz/Makefile \ tools/gennames/Makefile tools/toolutil/Makefile tools/gentest/Makefile \ - tools/genqchk/Makefile tools/genfchk/Makefile tools/genprops/Makefile \ + tools/gennorm/Makefile \ + tools/genprops/Makefile \ + tools/dumpce/Makefile \ test/Makefile test/testdata/Makefile test/intltest/Makefile test/cintltst/Makefile \ test/ieeetest/Makefile \ - samples/Makefile samples/date/Makefile samples/cal/Makefile \ + test/collperf/Makefile \ + test/thaitest/Makefile \ + test/letest/Makefile \ + samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile \ common/unicode/platform.h common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF