Home | History | Annotate | Download | only in icu4c
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.67.
      4 #
      5 #  Copyright (c) 1999-2010, International Business Machines Corporation and others. All Rights Reserved.
      6 #
      7 #
      8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     10 # Foundation, Inc.
     11 #
     12 #
     13 # This configure script is free software; the Free Software Foundation
     14 # gives unlimited permission to copy, distribute and modify it.
     15 ## -------------------- ##
     16 ## M4sh Initialization. ##
     17 ## -------------------- ##
     18 
     19 # Be more Bourne compatible
     20 DUALCASE=1; export DUALCASE # for MKS sh
     21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     22   emulate sh
     23   NULLCMD=:
     24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   # is contrary to our usage.  Disable this feature.
     26   alias -g '${1+"$@"}'='"$@"'
     27   setopt NO_GLOB_SUBST
     28 else
     29   case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac
     35 fi
     36 
     37 
     38 as_nl='
     39 '
     40 export as_nl
     41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     45 # Prefer a ksh shell builtin over an external printf program on Solaris,
     46 # but without wasting forks for bash or zsh.
     47 if test -z "$BASH_VERSION$ZSH_VERSION" \
     48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     49   as_echo='print -r --'
     50   as_echo_n='print -rn --'
     51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     52   as_echo='printf %s\n'
     53   as_echo_n='printf %s'
     54 else
     55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     57     as_echo_n='/usr/ucb/echo -n'
     58   else
     59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     60     as_echo_n_body='eval
     61       arg=$1;
     62       case $arg in #(
     63       *"$as_nl"*)
     64 	expr "X$arg" : "X\\(.*\\)$as_nl";
     65 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     66       esac;
     67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     68     '
     69     export as_echo_n_body
     70     as_echo_n='sh -c $as_echo_n_body as_echo'
     71   fi
     72   export as_echo_body
     73   as_echo='sh -c $as_echo_body as_echo'
     74 fi
     75 
     76 # The user is always right.
     77 if test "${PATH_SEPARATOR+set}" != set; then
     78   PATH_SEPARATOR=:
     79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     81       PATH_SEPARATOR=';'
     82   }
     83 fi
     84 
     85 
     86 # IFS
     87 # We need space, tab and new line, in precisely that order.  Quoting is
     88 # there to prevent editors from complaining about space-tab.
     89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     90 # splitting by setting IFS to empty value.)
     91 IFS=" ""	$as_nl"
     92 
     93 # Find who we are.  Look in the path if we contain no directory separator.
     94 case $0 in #((
     95   *[\\/]* ) as_myself=$0 ;;
     96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     97 for as_dir in $PATH
     98 do
     99   IFS=$as_save_IFS
    100   test -z "$as_dir" && as_dir=.
    101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    102   done
    103 IFS=$as_save_IFS
    104 
    105      ;;
    106 esac
    107 # We did not find ourselves, most probably we were run as `sh COMMAND'
    108 # in which case we are not to be found in the path.
    109 if test "x$as_myself" = x; then
    110   as_myself=$0
    111 fi
    112 if test ! -f "$as_myself"; then
    113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    114   exit 1
    115 fi
    116 
    117 # Unset variables that we do not need and which cause bugs (e.g. in
    118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    119 # suppresses any "Segmentation fault" message there.  '((' could
    120 # trigger a bug in pdksh 5.2.14.
    121 for as_var in BASH_ENV ENV MAIL MAILPATH
    122 do eval test x\${$as_var+set} = xset \
    123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    124 done
    125 PS1='$ '
    126 PS2='> '
    127 PS4='+ '
    128 
    129 # NLS nuisances.
    130 LC_ALL=C
    131 export LC_ALL
    132 LANGUAGE=C
    133 export LANGUAGE
    134 
    135 # CDPATH.
    136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    137 
    138 if test "x$CONFIG_SHELL" = x; then
    139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    140   emulate sh
    141   NULLCMD=:
    142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    143   # is contrary to our usage.  Disable this feature.
    144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    145   setopt NO_GLOB_SUBST
    146 else
    147   case \`(set -o) 2>/dev/null\` in #(
    148   *posix*) :
    149     set -o posix ;; #(
    150   *) :
    151      ;;
    152 esac
    153 fi
    154 "
    155   as_required="as_fn_return () { (exit \$1); }
    156 as_fn_success () { as_fn_return 0; }
    157 as_fn_failure () { as_fn_return 1; }
    158 as_fn_ret_success () { return 0; }
    159 as_fn_ret_failure () { return 1; }
    160 
    161 exitcode=0
    162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    167 
    168 else
    169   exitcode=1; echo positional parameters were not saved.
    170 fi
    171 test x\$exitcode = x0 || exit 1"
    172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    176 test \$(( 1 + 1 )) = 2 || exit 1"
    177   if (eval "$as_required") 2>/dev/null; then :
    178   as_have_required=yes
    179 else
    180   as_have_required=no
    181 fi
    182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    183 
    184 else
    185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    186 as_found=false
    187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    188 do
    189   IFS=$as_save_IFS
    190   test -z "$as_dir" && as_dir=.
    191   as_found=:
    192   case $as_dir in #(
    193 	 /*)
    194 	   for as_base in sh bash ksh sh5; do
    195 	     # Try only shells that exist, to save several forks.
    196 	     as_shell=$as_dir/$as_base
    197 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    198 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    199   CONFIG_SHELL=$as_shell as_have_required=yes
    200 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    201   break 2
    202 fi
    203 fi
    204 	   done;;
    205        esac
    206   as_found=false
    207 done
    208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    209 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    210   CONFIG_SHELL=$SHELL as_have_required=yes
    211 fi; }
    212 IFS=$as_save_IFS
    213 
    214 
    215       if test "x$CONFIG_SHELL" != x; then :
    216   # We cannot yet assume a decent shell, so we have to provide a
    217 	# neutralization value for shells without unset; and this also
    218 	# works around shells that cannot unset nonexistent variables.
    219 	BASH_ENV=/dev/null
    220 	ENV=/dev/null
    221 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    222 	export CONFIG_SHELL
    223 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    224 fi
    225 
    226     if test x$as_have_required = xno; then :
    227   $as_echo "$0: This script requires a shell more modern than all"
    228   $as_echo "$0: the shells that I found on your system."
    229   if test x${ZSH_VERSION+set} = xset ; then
    230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    232   else
    233     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    234 $0: including any error possibly output before this
    235 $0: message. Then install a modern shell, or manually run
    236 $0: the script under such a shell if you do have one."
    237   fi
    238   exit 1
    239 fi
    240 fi
    241 fi
    242 SHELL=${CONFIG_SHELL-/bin/sh}
    243 export SHELL
    244 # Unset more variables known to interfere with behavior of common tools.
    245 CLICOLOR_FORCE= GREP_OPTIONS=
    246 unset CLICOLOR_FORCE GREP_OPTIONS
    247 
    248 ## --------------------- ##
    249 ## M4sh Shell Functions. ##
    250 ## --------------------- ##
    251 # as_fn_unset VAR
    252 # ---------------
    253 # Portably unset VAR.
    254 as_fn_unset ()
    255 {
    256   { eval $1=; unset $1;}
    257 }
    258 as_unset=as_fn_unset
    259 
    260 # as_fn_set_status STATUS
    261 # -----------------------
    262 # Set $? to STATUS, without forking.
    263 as_fn_set_status ()
    264 {
    265   return $1
    266 } # as_fn_set_status
    267 
    268 # as_fn_exit STATUS
    269 # -----------------
    270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    271 as_fn_exit ()
    272 {
    273   set +e
    274   as_fn_set_status $1
    275   exit $1
    276 } # as_fn_exit
    277 
    278 # as_fn_mkdir_p
    279 # -------------
    280 # Create "$as_dir" as a directory, including parents if necessary.
    281 as_fn_mkdir_p ()
    282 {
    283 
    284   case $as_dir in #(
    285   -*) as_dir=./$as_dir;;
    286   esac
    287   test -d "$as_dir" || eval $as_mkdir_p || {
    288     as_dirs=
    289     while :; do
    290       case $as_dir in #(
    291       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    292       *) as_qdir=$as_dir;;
    293       esac
    294       as_dirs="'$as_qdir' $as_dirs"
    295       as_dir=`$as_dirname -- "$as_dir" ||
    296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    297 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    298 	 X"$as_dir" : 'X\(//\)$' \| \
    299 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    300 $as_echo X"$as_dir" |
    301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    302 	    s//\1/
    303 	    q
    304 	  }
    305 	  /^X\(\/\/\)[^/].*/{
    306 	    s//\1/
    307 	    q
    308 	  }
    309 	  /^X\(\/\/\)$/{
    310 	    s//\1/
    311 	    q
    312 	  }
    313 	  /^X\(\/\).*/{
    314 	    s//\1/
    315 	    q
    316 	  }
    317 	  s/.*/./; q'`
    318       test -d "$as_dir" && break
    319     done
    320     test -z "$as_dirs" || eval "mkdir $as_dirs"
    321   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    322 
    323 
    324 } # as_fn_mkdir_p
    325 # as_fn_append VAR VALUE
    326 # ----------------------
    327 # Append the text in VALUE to the end of the definition contained in VAR. Take
    328 # advantage of any shell optimizations that allow amortized linear growth over
    329 # repeated appends, instead of the typical quadratic growth present in naive
    330 # implementations.
    331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    332   eval 'as_fn_append ()
    333   {
    334     eval $1+=\$2
    335   }'
    336 else
    337   as_fn_append ()
    338   {
    339     eval $1=\$$1\$2
    340   }
    341 fi # as_fn_append
    342 
    343 # as_fn_arith ARG...
    344 # ------------------
    345 # Perform arithmetic evaluation on the ARGs, and store the result in the
    346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    347 # must be portable across $(()) and expr.
    348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    349   eval 'as_fn_arith ()
    350   {
    351     as_val=$(( $* ))
    352   }'
    353 else
    354   as_fn_arith ()
    355   {
    356     as_val=`expr "$@" || test $? -eq 1`
    357   }
    358 fi # as_fn_arith
    359 
    360 
    361 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    362 # ----------------------------------------
    363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    365 # script with STATUS, using 1 if that was 0.
    366 as_fn_error ()
    367 {
    368   as_status=$1; test $as_status -eq 0 && as_status=1
    369   if test "$4"; then
    370     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    371     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    372   fi
    373   $as_echo "$as_me: error: $2" >&2
    374   as_fn_exit $as_status
    375 } # as_fn_error
    376 
    377 if expr a : '\(a\)' >/dev/null 2>&1 &&
    378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    379   as_expr=expr
    380 else
    381   as_expr=false
    382 fi
    383 
    384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    385   as_basename=basename
    386 else
    387   as_basename=false
    388 fi
    389 
    390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    391   as_dirname=dirname
    392 else
    393   as_dirname=false
    394 fi
    395 
    396 as_me=`$as_basename -- "$0" ||
    397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    398 	 X"$0" : 'X\(//\)$' \| \
    399 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    400 $as_echo X/"$0" |
    401     sed '/^.*\/\([^/][^/]*\)\/*$/{
    402 	    s//\1/
    403 	    q
    404 	  }
    405 	  /^X\/\(\/\/\)$/{
    406 	    s//\1/
    407 	    q
    408 	  }
    409 	  /^X\/\(\/\).*/{
    410 	    s//\1/
    411 	    q
    412 	  }
    413 	  s/.*/./; q'`
    414 
    415 # Avoid depending upon Character Ranges.
    416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    419 as_cr_digits='0123456789'
    420 as_cr_alnum=$as_cr_Letters$as_cr_digits
    421 
    422 
    423   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    424   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    425   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    426   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    427   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    428   sed -n '
    429     p
    430     /[$]LINENO/=
    431   ' <$as_myself |
    432     sed '
    433       s/[$]LINENO.*/&-/
    434       t lineno
    435       b
    436       :lineno
    437       N
    438       :loop
    439       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    440       t loop
    441       s/-\n.*//
    442     ' >$as_me.lineno &&
    443   chmod +x "$as_me.lineno" ||
    444     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    445 
    446   # Don't try to exec as it changes $[0], causing all sort of problems
    447   # (the dirname of $[0] is not the place where we might find the
    448   # original and so on.  Autoconf is especially sensitive to this).
    449   . "./$as_me.lineno"
    450   # Exit status is that of the last command.
    451   exit
    452 }
    453 
    454 ECHO_C= ECHO_N= ECHO_T=
    455 case `echo -n x` in #(((((
    456 -n*)
    457   case `echo 'xy\c'` in
    458   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    459   xy)  ECHO_C='\c';;
    460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    461        ECHO_T='	';;
    462   esac;;
    463 *)
    464   ECHO_N='-n';;
    465 esac
    466 
    467 rm -f conf$$ conf$$.exe conf$$.file
    468 if test -d conf$$.dir; then
    469   rm -f conf$$.dir/conf$$.file
    470 else
    471   rm -f conf$$.dir
    472   mkdir conf$$.dir 2>/dev/null
    473 fi
    474 if (echo >conf$$.file) 2>/dev/null; then
    475   if ln -s conf$$.file conf$$ 2>/dev/null; then
    476     as_ln_s='ln -s'
    477     # ... but there are two gotchas:
    478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    480     # In both cases, we have to default to `cp -p'.
    481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    482       as_ln_s='cp -p'
    483   elif ln conf$$.file conf$$ 2>/dev/null; then
    484     as_ln_s=ln
    485   else
    486     as_ln_s='cp -p'
    487   fi
    488 else
    489   as_ln_s='cp -p'
    490 fi
    491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    492 rmdir conf$$.dir 2>/dev/null
    493 
    494 if mkdir -p . 2>/dev/null; then
    495   as_mkdir_p='mkdir -p "$as_dir"'
    496 else
    497   test -d ./-p && rmdir ./-p
    498   as_mkdir_p=false
    499 fi
    500 
    501 if test -x / >/dev/null 2>&1; then
    502   as_test_x='test -x'
    503 else
    504   if ls -dL / >/dev/null 2>&1; then
    505     as_ls_L_option=L
    506   else
    507     as_ls_L_option=
    508   fi
    509   as_test_x='
    510     eval sh -c '\''
    511       if test -d "$1"; then
    512 	test -d "$1/.";
    513       else
    514 	case $1 in #(
    515 	-*)set "./$1";;
    516 	esac;
    517 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    518 	???[sx]*):;;*)false;;esac;fi
    519     '\'' sh
    520   '
    521 fi
    522 as_executable_p=$as_test_x
    523 
    524 # Sed expression to map a string onto a valid CPP name.
    525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    526 
    527 # Sed expression to map a string onto a valid variable name.
    528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    529 
    530 
    531 test -n "$DJDIR" || exec 7<&0 </dev/null
    532 exec 6>&1
    533 
    534 # Name of the host.
    535 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    536 # so uname gets run too.
    537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    538 
    539 #
    540 # Initializations.
    541 #
    542 ac_default_prefix=/usr/local
    543 ac_clean_files=
    544 ac_config_libobj_dir=.
    545 LIBOBJS=
    546 cross_compiling=no
    547 subdirs=
    548 MFLAGS=
    549 MAKEFLAGS=
    550 
    551 # Identity of this package.
    552 PACKAGE_NAME=
    553 PACKAGE_TARNAME=
    554 PACKAGE_VERSION=
    555 PACKAGE_STRING=
    556 PACKAGE_BUGREPORT=
    557 PACKAGE_URL=
    558 
    559 ac_unique_file="common/unicode/utypes.h"
    560 # Factoring default headers for most tests.
    561 ac_includes_default="\
    562 #include <stdio.h>
    563 #ifdef HAVE_SYS_TYPES_H
    564 # include <sys/types.h>
    565 #endif
    566 #ifdef HAVE_SYS_STAT_H
    567 # include <sys/stat.h>
    568 #endif
    569 #ifdef STDC_HEADERS
    570 # include <stdlib.h>
    571 # include <stddef.h>
    572 #else
    573 # ifdef HAVE_STDLIB_H
    574 #  include <stdlib.h>
    575 # endif
    576 #endif
    577 #ifdef HAVE_STRING_H
    578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    579 #  include <memory.h>
    580 # endif
    581 # include <string.h>
    582 #endif
    583 #ifdef HAVE_STRINGS_H
    584 # include <strings.h>
    585 #endif
    586 #ifdef HAVE_INTTYPES_H
    587 # include <inttypes.h>
    588 #endif
    589 #ifdef HAVE_STDINT_H
    590 # include <stdint.h>
    591 #endif
    592 #ifdef HAVE_UNISTD_H
    593 # include <unistd.h>
    594 #endif"
    595 
    596 ac_subst_vars='LTLIBOBJS
    597 LIBOBJS
    598 platform_make_fragment
    599 platform_make_fragment_name
    600 platform
    601 ICUDATA_CHAR
    602 SAMPLES_TRUE
    603 TESTS_TRUE
    604 ICULIBSUFFIXCNAME
    605 U_HAVE_LIB_SUFFIX
    606 ICULIBSUFFIX
    607 DATA_PACKAGING_MODE
    608 thepkgicudatadir
    609 pkgicudatadir
    610 LAYOUT_TRUE
    611 ICUIO_TRUE
    612 EXTRAS_TRUE
    613 U_CHECK_UTF16_STRING
    614 U_CHECK_GNUC_UTF16_STRING
    615 U_SIZEOF_WCHAR_T
    616 U_HAVE_WCSCPY
    617 U_HAVE_WCHAR_H
    618 HAVE_UINT64_T
    619 HAVE_INT64_T
    620 HAVE_UINT32_T
    621 HAVE_INT32_T
    622 HAVE_UINT16_T
    623 HAVE_INT16_T
    624 HAVE_UINT8_T
    625 HAVE_INT8_T
    626 U_TIMEZONE
    627 U_HAVE_TIMEZONE
    628 U_TZNAME
    629 U_HAVE_TZNAME
    630 U_TZSET
    631 U_HAVE_TZSET
    632 U_HAVE_POPEN
    633 U_HAVE_GCC_ATOMICS
    634 U_HAVE_PLACEMENT_NEW
    635 U_OVERRIDE_CXX_ALLOCATION
    636 U_HAVE_NAMESPACE
    637 U_NL_LANGINFO_CODESET
    638 U_HAVE_NL_LANGINFO_CODESET
    639 U_IS_BIG_ENDIAN
    640 U_IOSTREAM_SOURCE
    641 U_HAVE_DIRENT_H
    642 U_HAVE_INTTYPES_H
    643 GENCCODE_ASSEMBLY
    644 HAVE_MMAP
    645 LIB_THREAD
    646 ICU_USE_THREADS
    647 THREADS_TRUE
    648 U_HAVE_STD_STRING
    649 U_INLINE
    650 ENABLE_RPATH
    651 U_CHECK_DYLOAD
    652 U_ENABLE_DYLOAD
    653 U_ENABLE_TRACING
    654 U_DISABLE_RENAMING
    655 AR
    656 RANLIB
    657 LIBCXXFLAGS
    658 LIBCFLAGS
    659 U_USE_GCC_VISIBILITY_ATTRIBUTE
    660 U_DEFAULT_SHOW_DRAFT
    661 UCLN_NO_AUTO_CLEANUP
    662 ENABLE_STATIC
    663 ENABLE_SHARED
    664 LIB_M
    665 COMPILE_LINK_ENVVAR
    666 ARFLAGS
    667 EGREP
    668 GREP
    669 DOXYGEN
    670 cross_buildroot
    671 U_MAKE
    672 cross_compiling
    673 INSTALL_DATA
    674 INSTALL_SCRIPT
    675 INSTALL_PROGRAM
    676 CPP
    677 ac_ct_CXX
    678 CXXFLAGS
    679 CXX
    680 OBJEXT
    681 EXEEXT
    682 ac_ct_CC
    683 LDFLAGS
    684 CFLAGS
    685 CC
    686 ENABLE_RELEASE
    687 ENABLE_DEBUG
    688 CPPFLAGS
    689 target_os
    690 target_vendor
    691 target_cpu
    692 target
    693 host_os
    694 host_vendor
    695 host_cpu
    696 host
    697 build_os
    698 build_vendor
    699 build_cpu
    700 build
    701 UNICODE_VERSION
    702 LIB_VERSION_MAJOR
    703 LIB_VERSION
    704 VERSION
    705 ICU_ECHO_T
    706 ICU_ECHO_C
    707 ICU_ECHO_N
    708 PACKAGE
    709 target_alias
    710 host_alias
    711 build_alias
    712 LIBS
    713 ECHO_T
    714 ECHO_N
    715 ECHO_C
    716 DEFS
    717 mandir
    718 localedir
    719 libdir
    720 psdir
    721 pdfdir
    722 dvidir
    723 htmldir
    724 infodir
    725 docdir
    726 oldincludedir
    727 includedir
    728 localstatedir
    729 sharedstatedir
    730 sysconfdir
    731 datadir
    732 datarootdir
    733 libexecdir
    734 sbindir
    735 bindir
    736 program_transform_name
    737 prefix
    738 exec_prefix
    739 PACKAGE_URL
    740 PACKAGE_BUGREPORT
    741 PACKAGE_STRING
    742 PACKAGE_VERSION
    743 PACKAGE_TARNAME
    744 PACKAGE_NAME
    745 PATH_SEPARATOR
    746 SHELL'
    747 ac_subst_files=''
    748 ac_user_opts='
    749 enable_option_checking
    750 enable_debug
    751 enable_release
    752 with_cross_build
    753 enable_strict
    754 enable_64bit_libs
    755 with_library_bits
    756 enable_shared
    757 enable_static
    758 enable_auto_cleanup
    759 enable_draft
    760 enable_renaming
    761 enable_tracing
    762 enable_dyload
    763 enable_rpath
    764 enable_threads
    765 enable_weak_threads
    766 with_iostream
    767 enable_extras
    768 enable_icuio
    769 enable_layout
    770 with_data_packaging
    771 with_library_suffix
    772 enable_tests
    773 enable_samples
    774 '
    775       ac_precious_vars='build_alias
    776 host_alias
    777 target_alias
    778 CC
    779 CFLAGS
    780 LDFLAGS
    781 LIBS
    782 CPPFLAGS
    783 CXX
    784 CXXFLAGS
    785 CCC
    786 CPP'
    787 
    788 
    789 # Initialize some variables set by options.
    790 ac_init_help=
    791 ac_init_version=false
    792 ac_unrecognized_opts=
    793 ac_unrecognized_sep=
    794 # The variables have the same names as the options, with
    795 # dashes changed to underlines.
    796 cache_file=/dev/null
    797 exec_prefix=NONE
    798 no_create=
    799 no_recursion=
    800 prefix=NONE
    801 program_prefix=NONE
    802 program_suffix=NONE
    803 program_transform_name=s,x,x,
    804 silent=
    805 site=
    806 srcdir=
    807 verbose=
    808 x_includes=NONE
    809 x_libraries=NONE
    810 
    811 # Installation directory options.
    812 # These are left unexpanded so users can "make install exec_prefix=/foo"
    813 # and all the variables that are supposed to be based on exec_prefix
    814 # by default will actually change.
    815 # Use braces instead of parens because sh, perl, etc. also accept them.
    816 # (The list follows the same order as the GNU Coding Standards.)
    817 bindir='${exec_prefix}/bin'
    818 sbindir='${exec_prefix}/sbin'
    819 libexecdir='${exec_prefix}/libexec'
    820 datarootdir='${prefix}/share'
    821 datadir='${datarootdir}'
    822 sysconfdir='${prefix}/etc'
    823 sharedstatedir='${prefix}/com'
    824 localstatedir='${prefix}/var'
    825 includedir='${prefix}/include'
    826 oldincludedir='/usr/include'
    827 docdir='${datarootdir}/doc/${PACKAGE}'
    828 infodir='${datarootdir}/info'
    829 htmldir='${docdir}'
    830 dvidir='${docdir}'
    831 pdfdir='${docdir}'
    832 psdir='${docdir}'
    833 libdir='${exec_prefix}/lib'
    834 localedir='${datarootdir}/locale'
    835 mandir='${datarootdir}/man'
    836 
    837 ac_prev=
    838 ac_dashdash=
    839 for ac_option
    840 do
    841   # If the previous option needs an argument, assign it.
    842   if test -n "$ac_prev"; then
    843     eval $ac_prev=\$ac_option
    844     ac_prev=
    845     continue
    846   fi
    847 
    848   case $ac_option in
    849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    850   *=)   ac_optarg= ;;
    851   *)    ac_optarg=yes ;;
    852   esac
    853 
    854   # Accept the important Cygnus configure options, so we can diagnose typos.
    855 
    856   case $ac_dashdash$ac_option in
    857   --)
    858     ac_dashdash=yes ;;
    859 
    860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    861     ac_prev=bindir ;;
    862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    863     bindir=$ac_optarg ;;
    864 
    865   -build | --build | --buil | --bui | --bu)
    866     ac_prev=build_alias ;;
    867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    868     build_alias=$ac_optarg ;;
    869 
    870   -cache-file | --cache-file | --cache-fil | --cache-fi \
    871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    872     ac_prev=cache_file ;;
    873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    875     cache_file=$ac_optarg ;;
    876 
    877   --config-cache | -C)
    878     cache_file=config.cache ;;
    879 
    880   -datadir | --datadir | --datadi | --datad)
    881     ac_prev=datadir ;;
    882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    883     datadir=$ac_optarg ;;
    884 
    885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    886   | --dataroo | --dataro | --datar)
    887     ac_prev=datarootdir ;;
    888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    890     datarootdir=$ac_optarg ;;
    891 
    892   -disable-* | --disable-*)
    893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    894     # Reject names that are not valid shell variable names.
    895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    896       as_fn_error $? "invalid feature name: $ac_useropt"
    897     ac_useropt_orig=$ac_useropt
    898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    899     case $ac_user_opts in
    900       *"
    901 "enable_$ac_useropt"
    902 "*) ;;
    903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    904 	 ac_unrecognized_sep=', ';;
    905     esac
    906     eval enable_$ac_useropt=no ;;
    907 
    908   -docdir | --docdir | --docdi | --doc | --do)
    909     ac_prev=docdir ;;
    910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    911     docdir=$ac_optarg ;;
    912 
    913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    914     ac_prev=dvidir ;;
    915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    916     dvidir=$ac_optarg ;;
    917 
    918   -enable-* | --enable-*)
    919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    920     # Reject names that are not valid shell variable names.
    921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    922       as_fn_error $? "invalid feature name: $ac_useropt"
    923     ac_useropt_orig=$ac_useropt
    924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    925     case $ac_user_opts in
    926       *"
    927 "enable_$ac_useropt"
    928 "*) ;;
    929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    930 	 ac_unrecognized_sep=', ';;
    931     esac
    932     eval enable_$ac_useropt=\$ac_optarg ;;
    933 
    934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    936   | --exec | --exe | --ex)
    937     ac_prev=exec_prefix ;;
    938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    940   | --exec=* | --exe=* | --ex=*)
    941     exec_prefix=$ac_optarg ;;
    942 
    943   -gas | --gas | --ga | --g)
    944     # Obsolete; use --with-gas.
    945     with_gas=yes ;;
    946 
    947   -help | --help | --hel | --he | -h)
    948     ac_init_help=long ;;
    949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    950     ac_init_help=recursive ;;
    951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    952     ac_init_help=short ;;
    953 
    954   -host | --host | --hos | --ho)
    955     ac_prev=host_alias ;;
    956   -host=* | --host=* | --hos=* | --ho=*)
    957     host_alias=$ac_optarg ;;
    958 
    959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    960     ac_prev=htmldir ;;
    961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    962   | --ht=*)
    963     htmldir=$ac_optarg ;;
    964 
    965   -includedir | --includedir | --includedi | --included | --include \
    966   | --includ | --inclu | --incl | --inc)
    967     ac_prev=includedir ;;
    968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    969   | --includ=* | --inclu=* | --incl=* | --inc=*)
    970     includedir=$ac_optarg ;;
    971 
    972   -infodir | --infodir | --infodi | --infod | --info | --inf)
    973     ac_prev=infodir ;;
    974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    975     infodir=$ac_optarg ;;
    976 
    977   -libdir | --libdir | --libdi | --libd)
    978     ac_prev=libdir ;;
    979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    980     libdir=$ac_optarg ;;
    981 
    982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    983   | --libexe | --libex | --libe)
    984     ac_prev=libexecdir ;;
    985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    986   | --libexe=* | --libex=* | --libe=*)
    987     libexecdir=$ac_optarg ;;
    988 
    989   -localedir | --localedir | --localedi | --localed | --locale)
    990     ac_prev=localedir ;;
    991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    992     localedir=$ac_optarg ;;
    993 
    994   -localstatedir | --localstatedir | --localstatedi | --localstated \
    995   | --localstate | --localstat | --localsta | --localst | --locals)
    996     ac_prev=localstatedir ;;
    997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    999     localstatedir=$ac_optarg ;;
   1000 
   1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1002     ac_prev=mandir ;;
   1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1004     mandir=$ac_optarg ;;
   1005 
   1006   -nfp | --nfp | --nf)
   1007     # Obsolete; use --without-fp.
   1008     with_fp=no ;;
   1009 
   1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1011   | --no-cr | --no-c | -n)
   1012     no_create=yes ;;
   1013 
   1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1016     no_recursion=yes ;;
   1017 
   1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1020   | --oldin | --oldi | --old | --ol | --o)
   1021     ac_prev=oldincludedir ;;
   1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1025     oldincludedir=$ac_optarg ;;
   1026 
   1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1028     ac_prev=prefix ;;
   1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1030     prefix=$ac_optarg ;;
   1031 
   1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1033   | --program-pre | --program-pr | --program-p)
   1034     ac_prev=program_prefix ;;
   1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1037     program_prefix=$ac_optarg ;;
   1038 
   1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1040   | --program-suf | --program-su | --program-s)
   1041     ac_prev=program_suffix ;;
   1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1044     program_suffix=$ac_optarg ;;
   1045 
   1046   -program-transform-name | --program-transform-name \
   1047   | --program-transform-nam | --program-transform-na \
   1048   | --program-transform-n | --program-transform- \
   1049   | --program-transform | --program-transfor \
   1050   | --program-transfo | --program-transf \
   1051   | --program-trans | --program-tran \
   1052   | --progr-tra | --program-tr | --program-t)
   1053     ac_prev=program_transform_name ;;
   1054   -program-transform-name=* | --program-transform-name=* \
   1055   | --program-transform-nam=* | --program-transform-na=* \
   1056   | --program-transform-n=* | --program-transform-=* \
   1057   | --program-transform=* | --program-transfor=* \
   1058   | --program-transfo=* | --program-transf=* \
   1059   | --program-trans=* | --program-tran=* \
   1060   | --progr-tra=* | --program-tr=* | --program-t=*)
   1061     program_transform_name=$ac_optarg ;;
   1062 
   1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1064     ac_prev=pdfdir ;;
   1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1066     pdfdir=$ac_optarg ;;
   1067 
   1068   -psdir | --psdir | --psdi | --psd | --ps)
   1069     ac_prev=psdir ;;
   1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1071     psdir=$ac_optarg ;;
   1072 
   1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1074   | -silent | --silent | --silen | --sile | --sil)
   1075     silent=yes ;;
   1076 
   1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1078     ac_prev=sbindir ;;
   1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1080   | --sbi=* | --sb=*)
   1081     sbindir=$ac_optarg ;;
   1082 
   1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1085   | --sharedst | --shareds | --shared | --share | --shar \
   1086   | --sha | --sh)
   1087     ac_prev=sharedstatedir ;;
   1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1091   | --sha=* | --sh=*)
   1092     sharedstatedir=$ac_optarg ;;
   1093 
   1094   -site | --site | --sit)
   1095     ac_prev=site ;;
   1096   -site=* | --site=* | --sit=*)
   1097     site=$ac_optarg ;;
   1098 
   1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1100     ac_prev=srcdir ;;
   1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1102     srcdir=$ac_optarg ;;
   1103 
   1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1105   | --syscon | --sysco | --sysc | --sys | --sy)
   1106     ac_prev=sysconfdir ;;
   1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1109     sysconfdir=$ac_optarg ;;
   1110 
   1111   -target | --target | --targe | --targ | --tar | --ta | --t)
   1112     ac_prev=target_alias ;;
   1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1114     target_alias=$ac_optarg ;;
   1115 
   1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1117     verbose=yes ;;
   1118 
   1119   -version | --version | --versio | --versi | --vers | -V)
   1120     ac_init_version=: ;;
   1121 
   1122   -with-* | --with-*)
   1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1124     # Reject names that are not valid shell variable names.
   1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1126       as_fn_error $? "invalid package name: $ac_useropt"
   1127     ac_useropt_orig=$ac_useropt
   1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1129     case $ac_user_opts in
   1130       *"
   1131 "with_$ac_useropt"
   1132 "*) ;;
   1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1134 	 ac_unrecognized_sep=', ';;
   1135     esac
   1136     eval with_$ac_useropt=\$ac_optarg ;;
   1137 
   1138   -without-* | --without-*)
   1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1140     # Reject names that are not valid shell variable names.
   1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1142       as_fn_error $? "invalid package name: $ac_useropt"
   1143     ac_useropt_orig=$ac_useropt
   1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1145     case $ac_user_opts in
   1146       *"
   1147 "with_$ac_useropt"
   1148 "*) ;;
   1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1150 	 ac_unrecognized_sep=', ';;
   1151     esac
   1152     eval with_$ac_useropt=no ;;
   1153 
   1154   --x)
   1155     # Obsolete; use --with-x.
   1156     with_x=yes ;;
   1157 
   1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1159   | --x-incl | --x-inc | --x-in | --x-i)
   1160     ac_prev=x_includes ;;
   1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1163     x_includes=$ac_optarg ;;
   1164 
   1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1167     ac_prev=x_libraries ;;
   1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1170     x_libraries=$ac_optarg ;;
   1171 
   1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1173 Try \`$0 --help' for more information"
   1174     ;;
   1175 
   1176   *=*)
   1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1178     # Reject names that are not valid shell variable names.
   1179     case $ac_envvar in #(
   1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1182     esac
   1183     eval $ac_envvar=\$ac_optarg
   1184     export $ac_envvar ;;
   1185 
   1186   *)
   1187     # FIXME: should be removed in autoconf 3.0.
   1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1192     ;;
   1193 
   1194   esac
   1195 done
   1196 
   1197 if test -n "$ac_prev"; then
   1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1199   as_fn_error $? "missing argument to $ac_option"
   1200 fi
   1201 
   1202 if test -n "$ac_unrecognized_opts"; then
   1203   case $enable_option_checking in
   1204     no) ;;
   1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1207   esac
   1208 fi
   1209 
   1210 # Check all directory arguments for consistency.
   1211 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1212 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1213 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1214 		libdir localedir mandir
   1215 do
   1216   eval ac_val=\$$ac_var
   1217   # Remove trailing slashes.
   1218   case $ac_val in
   1219     */ )
   1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1221       eval $ac_var=\$ac_val;;
   1222   esac
   1223   # Be sure to have absolute directory names.
   1224   case $ac_val in
   1225     [\\/$]* | ?:[\\/]* )  continue;;
   1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1227   esac
   1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1229 done
   1230 
   1231 # There might be people who depend on the old broken behavior: `$host'
   1232 # used to hold the argument of --host etc.
   1233 # FIXME: To remove some day.
   1234 build=$build_alias
   1235 host=$host_alias
   1236 target=$target_alias
   1237 
   1238 # FIXME: To remove some day.
   1239 if test "x$host_alias" != x; then
   1240   if test "x$build_alias" = x; then
   1241     cross_compiling=maybe
   1242     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
   1243     If a cross compiler is detected then cross compile mode will be used" >&2
   1244   elif test "x$build_alias" != "x$host_alias"; then
   1245     cross_compiling=yes
   1246   fi
   1247 fi
   1248 
   1249 ac_tool_prefix=
   1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1251 
   1252 test "$silent" = yes && exec 6>/dev/null
   1253 
   1254 
   1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1256 ac_ls_di=`ls -di .` &&
   1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1258   as_fn_error $? "working directory cannot be determined"
   1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1260   as_fn_error $? "pwd does not report name of working directory"
   1261 
   1262 
   1263 # Find the source files, if location was not specified.
   1264 if test -z "$srcdir"; then
   1265   ac_srcdir_defaulted=yes
   1266   # Try the directory containing this script, then the parent directory.
   1267   ac_confdir=`$as_dirname -- "$as_myself" ||
   1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1269 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1270 	 X"$as_myself" : 'X\(//\)$' \| \
   1271 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1272 $as_echo X"$as_myself" |
   1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1274 	    s//\1/
   1275 	    q
   1276 	  }
   1277 	  /^X\(\/\/\)[^/].*/{
   1278 	    s//\1/
   1279 	    q
   1280 	  }
   1281 	  /^X\(\/\/\)$/{
   1282 	    s//\1/
   1283 	    q
   1284 	  }
   1285 	  /^X\(\/\).*/{
   1286 	    s//\1/
   1287 	    q
   1288 	  }
   1289 	  s/.*/./; q'`
   1290   srcdir=$ac_confdir
   1291   if test ! -r "$srcdir/$ac_unique_file"; then
   1292     srcdir=..
   1293   fi
   1294 else
   1295   ac_srcdir_defaulted=no
   1296 fi
   1297 if test ! -r "$srcdir/$ac_unique_file"; then
   1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1299   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1300 fi
   1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1302 ac_abs_confdir=`(
   1303 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1304 	pwd)`
   1305 # When building in place, set srcdir=.
   1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1307   srcdir=.
   1308 fi
   1309 # Remove unnecessary trailing slashes from srcdir.
   1310 # Double slashes in file names in object file debugging info
   1311 # mess up M-x gdb in Emacs.
   1312 case $srcdir in
   1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1314 esac
   1315 for ac_var in $ac_precious_vars; do
   1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1317   eval ac_env_${ac_var}_value=\$${ac_var}
   1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1320 done
   1321 
   1322 #
   1323 # Report the --help message.
   1324 #
   1325 if test "$ac_init_help" = "long"; then
   1326   # Omit some internal or obsolete options to make the list less imposing.
   1327   # This message is too long to be a string in the A/UX 3.1 sh.
   1328   cat <<_ACEOF
   1329 \`configure' configures this package to adapt to many kinds of systems.
   1330 
   1331 Usage: $0 [OPTION]... [VAR=VALUE]...
   1332 
   1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1335 
   1336 Defaults for the options are specified in brackets.
   1337 
   1338 Configuration:
   1339   -h, --help              display this help and exit
   1340       --help=short        display options specific to this package
   1341       --help=recursive    display the short help of all the included packages
   1342   -V, --version           display version information and exit
   1343   -q, --quiet, --silent   do not print \`checking ...' messages
   1344       --cache-file=FILE   cache test results in FILE [disabled]
   1345   -C, --config-cache      alias for \`--cache-file=config.cache'
   1346   -n, --no-create         do not create output files
   1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1348 
   1349 Installation directories:
   1350   --prefix=PREFIX         install architecture-independent files in PREFIX
   1351                           [$ac_default_prefix]
   1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1353                           [PREFIX]
   1354 
   1355 By default, \`make install' will install all the files in
   1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1358 for instance \`--prefix=\$HOME'.
   1359 
   1360 For better control, use the options below.
   1361 
   1362 Fine tuning of the installation directories:
   1363   --bindir=DIR            user executables [EPREFIX/bin]
   1364   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1365   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1366   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1367   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1368   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1369   --libdir=DIR            object code libraries [EPREFIX/lib]
   1370   --includedir=DIR        C header files [PREFIX/include]
   1371   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1372   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1373   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1374   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1375   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1376   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1377   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1378   --htmldir=DIR           html documentation [DOCDIR]
   1379   --dvidir=DIR            dvi documentation [DOCDIR]
   1380   --pdfdir=DIR            pdf documentation [DOCDIR]
   1381   --psdir=DIR             ps documentation [DOCDIR]
   1382 _ACEOF
   1383 
   1384   cat <<\_ACEOF
   1385 
   1386 System types:
   1387   --build=BUILD     configure for building on BUILD [guessed]
   1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1389   --target=TARGET   configure for building compilers for TARGET [HOST]
   1390 _ACEOF
   1391 fi
   1392 
   1393 if test -n "$ac_init_help"; then
   1394 
   1395   cat <<\_ACEOF
   1396 
   1397 Optional Features:
   1398   --disable-option-checking  ignore unrecognized --enable/--with options
   1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1401   --enable-debug          build debug libraries default=no
   1402   --enable-release        build release libraries default=yes
   1403   --enable-strict         compile with strict compiler options default=yes
   1404   --enable-64bit-libs     (deprecated, use --with-library-bits) build 64-bit libraries default= platform default
   1405   --enable-shared         build shared libraries default=yes
   1406   --enable-static         build static libraries default=no
   1407   --enable-auto-cleanup   enable auto cleanup of libraries default=no
   1408   --enable-draft          enable draft APIs (and internal APIs) default=yes
   1409   --enable-renaming       add a version suffix to symbols default=yes
   1410   --enable-tracing        enable function and data tracing default=no
   1411   --disable-dyload        disable dynamic loading default=no
   1412   --enable-rpath          use rpath when linking default is only if necessary
   1413   --enable-threads        build ICU with thread safety default=yes
   1414   --enable-weak-threads   weakly reference the threading library default=no
   1415   --enable-extras         build ICU extras default=yes
   1416   --enable-icuio          build ICU's icuio library default=yes
   1417   --enable-layout         build ICU's layout library default=yes
   1418   --enable-tests          build ICU tests default=yes
   1419   --enable-samples        build ICU samples default=yes
   1420 
   1421 Additionally, the variable FORCE_LIBS may be set before calling configure.
   1422 If set, it will REPLACE any automatic list of libraries.
   1423 
   1424 Optional Packages:
   1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1427   --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir
   1428   --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange
   1429   --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto
   1430   --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto
   1431   --with-library-suffix=suffix    tag a suffix to the library names default=
   1432 
   1433 Some influential environment variables:
   1434   CC          C compiler command
   1435   CFLAGS      C compiler flags
   1436   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1437               nonstandard directory <lib dir>
   1438   LIBS        libraries to pass to the linker, e.g. -l<library>
   1439   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1440               you have headers in a nonstandard directory <include dir>
   1441   CXX         C++ compiler command
   1442   CXXFLAGS    C++ compiler flags
   1443   CPP         C preprocessor
   1444 
   1445 Use these variables to override the choices made by `configure' or to help
   1446 it to find libraries and programs with nonstandard names/locations.
   1447 
   1448 Report bugs to the package provider.
   1449 _ACEOF
   1450 ac_status=$?
   1451 fi
   1452 
   1453 if test "$ac_init_help" = "recursive"; then
   1454   # If there are subdirs, report their specific --help.
   1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1456     test -d "$ac_dir" ||
   1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1458       continue
   1459     ac_builddir=.
   1460 
   1461 case "$ac_dir" in
   1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1463 *)
   1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1465   # A ".." for each directory in $ac_dir_suffix.
   1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1467   case $ac_top_builddir_sub in
   1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1470   esac ;;
   1471 esac
   1472 ac_abs_top_builddir=$ac_pwd
   1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1474 # for backward compatibility:
   1475 ac_top_builddir=$ac_top_build_prefix
   1476 
   1477 case $srcdir in
   1478   .)  # We are building in place.
   1479     ac_srcdir=.
   1480     ac_top_srcdir=$ac_top_builddir_sub
   1481     ac_abs_top_srcdir=$ac_pwd ;;
   1482   [\\/]* | ?:[\\/]* )  # Absolute name.
   1483     ac_srcdir=$srcdir$ac_dir_suffix;
   1484     ac_top_srcdir=$srcdir
   1485     ac_abs_top_srcdir=$srcdir ;;
   1486   *) # Relative name.
   1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1490 esac
   1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1492 
   1493     cd "$ac_dir" || { ac_status=$?; continue; }
   1494     # Check for guested configure.
   1495     if test -f "$ac_srcdir/configure.gnu"; then
   1496       echo &&
   1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1498     elif test -f "$ac_srcdir/configure"; then
   1499       echo &&
   1500       $SHELL "$ac_srcdir/configure" --help=recursive
   1501     else
   1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1503     fi || ac_status=$?
   1504     cd "$ac_pwd" || { ac_status=$?; break; }
   1505   done
   1506 fi
   1507 
   1508 test -n "$ac_init_help" && exit $ac_status
   1509 if $ac_init_version; then
   1510   cat <<\_ACEOF
   1511 configure
   1512 generated by GNU Autoconf 2.67
   1513 
   1514 Copyright (C) 2010 Free Software Foundation, Inc.
   1515 This configure script is free software; the Free Software Foundation
   1516 gives unlimited permission to copy, distribute and modify it.
   1517 
   1518  Copyright (c) 1999-2010, International Business Machines Corporation and others. All Rights Reserved.
   1519 _ACEOF
   1520   exit
   1521 fi
   1522 
   1523 ## ------------------------ ##
   1524 ## Autoconf initialization. ##
   1525 ## ------------------------ ##
   1526 
   1527 # ac_fn_c_try_compile LINENO
   1528 # --------------------------
   1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1530 ac_fn_c_try_compile ()
   1531 {
   1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1533   rm -f conftest.$ac_objext
   1534   if { { ac_try="$ac_compile"
   1535 case "(($ac_try" in
   1536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1537   *) ac_try_echo=$ac_try;;
   1538 esac
   1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1540 $as_echo "$ac_try_echo"; } >&5
   1541   (eval "$ac_compile") 2>conftest.err
   1542   ac_status=$?
   1543   if test -s conftest.err; then
   1544     grep -v '^ *+' conftest.err >conftest.er1
   1545     cat conftest.er1 >&5
   1546     mv -f conftest.er1 conftest.err
   1547   fi
   1548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1549   test $ac_status = 0; } && {
   1550 	 test -z "$ac_c_werror_flag" ||
   1551 	 test ! -s conftest.err
   1552        } && test -s conftest.$ac_objext; then :
   1553   ac_retval=0
   1554 else
   1555   $as_echo "$as_me: failed program was:" >&5
   1556 sed 's/^/| /' conftest.$ac_ext >&5
   1557 
   1558 	ac_retval=1
   1559 fi
   1560   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1561   as_fn_set_status $ac_retval
   1562 
   1563 } # ac_fn_c_try_compile
   1564 
   1565 # ac_fn_cxx_try_compile LINENO
   1566 # ----------------------------
   1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1568 ac_fn_cxx_try_compile ()
   1569 {
   1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1571   rm -f conftest.$ac_objext
   1572   if { { ac_try="$ac_compile"
   1573 case "(($ac_try" in
   1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1575   *) ac_try_echo=$ac_try;;
   1576 esac
   1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1578 $as_echo "$ac_try_echo"; } >&5
   1579   (eval "$ac_compile") 2>conftest.err
   1580   ac_status=$?
   1581   if test -s conftest.err; then
   1582     grep -v '^ *+' conftest.err >conftest.er1
   1583     cat conftest.er1 >&5
   1584     mv -f conftest.er1 conftest.err
   1585   fi
   1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1587   test $ac_status = 0; } && {
   1588 	 test -z "$ac_cxx_werror_flag" ||
   1589 	 test ! -s conftest.err
   1590        } && test -s conftest.$ac_objext; then :
   1591   ac_retval=0
   1592 else
   1593   $as_echo "$as_me: failed program was:" >&5
   1594 sed 's/^/| /' conftest.$ac_ext >&5
   1595 
   1596 	ac_retval=1
   1597 fi
   1598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1599   as_fn_set_status $ac_retval
   1600 
   1601 } # ac_fn_cxx_try_compile
   1602 
   1603 # ac_fn_c_try_cpp LINENO
   1604 # ----------------------
   1605 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1606 ac_fn_c_try_cpp ()
   1607 {
   1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1609   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1610 case "(($ac_try" in
   1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1612   *) ac_try_echo=$ac_try;;
   1613 esac
   1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1615 $as_echo "$ac_try_echo"; } >&5
   1616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1617   ac_status=$?
   1618   if test -s conftest.err; then
   1619     grep -v '^ *+' conftest.err >conftest.er1
   1620     cat conftest.er1 >&5
   1621     mv -f conftest.er1 conftest.err
   1622   fi
   1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1624   test $ac_status = 0; } > conftest.i && {
   1625 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1626 	 test ! -s conftest.err
   1627        }; then :
   1628   ac_retval=0
   1629 else
   1630   $as_echo "$as_me: failed program was:" >&5
   1631 sed 's/^/| /' conftest.$ac_ext >&5
   1632 
   1633     ac_retval=1
   1634 fi
   1635   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1636   as_fn_set_status $ac_retval
   1637 
   1638 } # ac_fn_c_try_cpp
   1639 
   1640 # ac_fn_cxx_try_link LINENO
   1641 # -------------------------
   1642 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1643 ac_fn_cxx_try_link ()
   1644 {
   1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1646   rm -f conftest.$ac_objext conftest$ac_exeext
   1647   if { { ac_try="$ac_link"
   1648 case "(($ac_try" in
   1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1650   *) ac_try_echo=$ac_try;;
   1651 esac
   1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1653 $as_echo "$ac_try_echo"; } >&5
   1654   (eval "$ac_link") 2>conftest.err
   1655   ac_status=$?
   1656   if test -s conftest.err; then
   1657     grep -v '^ *+' conftest.err >conftest.er1
   1658     cat conftest.er1 >&5
   1659     mv -f conftest.er1 conftest.err
   1660   fi
   1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1662   test $ac_status = 0; } && {
   1663 	 test -z "$ac_cxx_werror_flag" ||
   1664 	 test ! -s conftest.err
   1665        } && test -s conftest$ac_exeext && {
   1666 	 test "$cross_compiling" = yes ||
   1667 	 $as_test_x conftest$ac_exeext
   1668        }; then :
   1669   ac_retval=0
   1670 else
   1671   $as_echo "$as_me: failed program was:" >&5
   1672 sed 's/^/| /' conftest.$ac_ext >&5
   1673 
   1674 	ac_retval=1
   1675 fi
   1676   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1677   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1678   # interfere with the next link command; also delete a directory that is
   1679   # left behind by Apple's compiler.  We do this before executing the actions.
   1680   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1681   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1682   as_fn_set_status $ac_retval
   1683 
   1684 } # ac_fn_cxx_try_link
   1685 
   1686 # ac_fn_c_try_run LINENO
   1687 # ----------------------
   1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1689 # that executables *can* be run.
   1690 ac_fn_c_try_run ()
   1691 {
   1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1693   if { { ac_try="$ac_link"
   1694 case "(($ac_try" in
   1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1696   *) ac_try_echo=$ac_try;;
   1697 esac
   1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1699 $as_echo "$ac_try_echo"; } >&5
   1700   (eval "$ac_link") 2>&5
   1701   ac_status=$?
   1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1703   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1704   { { case "(($ac_try" in
   1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1706   *) ac_try_echo=$ac_try;;
   1707 esac
   1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1709 $as_echo "$ac_try_echo"; } >&5
   1710   (eval "$ac_try") 2>&5
   1711   ac_status=$?
   1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1713   test $ac_status = 0; }; }; then :
   1714   ac_retval=0
   1715 else
   1716   $as_echo "$as_me: program exited with status $ac_status" >&5
   1717        $as_echo "$as_me: failed program was:" >&5
   1718 sed 's/^/| /' conftest.$ac_ext >&5
   1719 
   1720        ac_retval=$ac_status
   1721 fi
   1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1724   as_fn_set_status $ac_retval
   1725 
   1726 } # ac_fn_c_try_run
   1727 
   1728 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1729 # --------------------------------------------
   1730 # Tries to find the compile-time value of EXPR in a program that includes
   1731 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1732 # computed
   1733 ac_fn_c_compute_int ()
   1734 {
   1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1736   if test "$cross_compiling" = yes; then
   1737     # Depending upon the size, compute the lo and hi bounds.
   1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1739 /* end confdefs.h.  */
   1740 $4
   1741 int
   1742 main ()
   1743 {
   1744 static int test_array [1 - 2 * !(($2) >= 0)];
   1745 test_array [0] = 0
   1746 
   1747   ;
   1748   return 0;
   1749 }
   1750 _ACEOF
   1751 if ac_fn_c_try_compile "$LINENO"; then :
   1752   ac_lo=0 ac_mid=0
   1753   while :; do
   1754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1755 /* end confdefs.h.  */
   1756 $4
   1757 int
   1758 main ()
   1759 {
   1760 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1761 test_array [0] = 0
   1762 
   1763   ;
   1764   return 0;
   1765 }
   1766 _ACEOF
   1767 if ac_fn_c_try_compile "$LINENO"; then :
   1768   ac_hi=$ac_mid; break
   1769 else
   1770   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1771 			if test $ac_lo -le $ac_mid; then
   1772 			  ac_lo= ac_hi=
   1773 			  break
   1774 			fi
   1775 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1776 fi
   1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1778   done
   1779 else
   1780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1781 /* end confdefs.h.  */
   1782 $4
   1783 int
   1784 main ()
   1785 {
   1786 static int test_array [1 - 2 * !(($2) < 0)];
   1787 test_array [0] = 0
   1788 
   1789   ;
   1790   return 0;
   1791 }
   1792 _ACEOF
   1793 if ac_fn_c_try_compile "$LINENO"; then :
   1794   ac_hi=-1 ac_mid=-1
   1795   while :; do
   1796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1797 /* end confdefs.h.  */
   1798 $4
   1799 int
   1800 main ()
   1801 {
   1802 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1803 test_array [0] = 0
   1804 
   1805   ;
   1806   return 0;
   1807 }
   1808 _ACEOF
   1809 if ac_fn_c_try_compile "$LINENO"; then :
   1810   ac_lo=$ac_mid; break
   1811 else
   1812   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1813 			if test $ac_mid -le $ac_hi; then
   1814 			  ac_lo= ac_hi=
   1815 			  break
   1816 			fi
   1817 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1818 fi
   1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1820   done
   1821 else
   1822   ac_lo= ac_hi=
   1823 fi
   1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1825 fi
   1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1827 # Binary search between lo and hi bounds.
   1828 while test "x$ac_lo" != "x$ac_hi"; do
   1829   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1831 /* end confdefs.h.  */
   1832 $4
   1833 int
   1834 main ()
   1835 {
   1836 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1837 test_array [0] = 0
   1838 
   1839   ;
   1840   return 0;
   1841 }
   1842 _ACEOF
   1843 if ac_fn_c_try_compile "$LINENO"; then :
   1844   ac_hi=$ac_mid
   1845 else
   1846   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1847 fi
   1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1849 done
   1850 case $ac_lo in #((
   1851 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1852 '') ac_retval=1 ;;
   1853 esac
   1854   else
   1855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1856 /* end confdefs.h.  */
   1857 $4
   1858 static long int longval () { return $2; }
   1859 static unsigned long int ulongval () { return $2; }
   1860 #include <stdio.h>
   1861 #include <stdlib.h>
   1862 int
   1863 main ()
   1864 {
   1865 
   1866   FILE *f = fopen ("conftest.val", "w");
   1867   if (! f)
   1868     return 1;
   1869   if (($2) < 0)
   1870     {
   1871       long int i = longval ();
   1872       if (i != ($2))
   1873 	return 1;
   1874       fprintf (f, "%ld", i);
   1875     }
   1876   else
   1877     {
   1878       unsigned long int i = ulongval ();
   1879       if (i != ($2))
   1880 	return 1;
   1881       fprintf (f, "%lu", i);
   1882     }
   1883   /* Do not output a trailing newline, as this causes \r\n confusion
   1884      on some platforms.  */
   1885   return ferror (f) || fclose (f) != 0;
   1886 
   1887   ;
   1888   return 0;
   1889 }
   1890 _ACEOF
   1891 if ac_fn_c_try_run "$LINENO"; then :
   1892   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   1893 else
   1894   ac_retval=1
   1895 fi
   1896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1897   conftest.$ac_objext conftest.beam conftest.$ac_ext
   1898 rm -f conftest.val
   1899 
   1900   fi
   1901   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1902   as_fn_set_status $ac_retval
   1903 
   1904 } # ac_fn_c_compute_int
   1905 
   1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1907 # -------------------------------------------------------
   1908 # Tests whether HEADER exists and can be compiled using the include files in
   1909 # INCLUDES, setting the cache variable VAR accordingly.
   1910 ac_fn_c_check_header_compile ()
   1911 {
   1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1914 $as_echo_n "checking for $2... " >&6; }
   1915 if eval "test \"\${$3+set}\"" = set; then :
   1916   $as_echo_n "(cached) " >&6
   1917 else
   1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1919 /* end confdefs.h.  */
   1920 $4
   1921 #include <$2>
   1922 _ACEOF
   1923 if ac_fn_c_try_compile "$LINENO"; then :
   1924   eval "$3=yes"
   1925 else
   1926   eval "$3=no"
   1927 fi
   1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1929 fi
   1930 eval ac_res=\$$3
   1931 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1932 $as_echo "$ac_res" >&6; }
   1933   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1934 
   1935 } # ac_fn_c_check_header_compile
   1936 
   1937 # ac_fn_c_try_link LINENO
   1938 # -----------------------
   1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1940 ac_fn_c_try_link ()
   1941 {
   1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1943   rm -f conftest.$ac_objext conftest$ac_exeext
   1944   if { { ac_try="$ac_link"
   1945 case "(($ac_try" in
   1946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1947   *) ac_try_echo=$ac_try;;
   1948 esac
   1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1950 $as_echo "$ac_try_echo"; } >&5
   1951   (eval "$ac_link") 2>conftest.err
   1952   ac_status=$?
   1953   if test -s conftest.err; then
   1954     grep -v '^ *+' conftest.err >conftest.er1
   1955     cat conftest.er1 >&5
   1956     mv -f conftest.er1 conftest.err
   1957   fi
   1958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1959   test $ac_status = 0; } && {
   1960 	 test -z "$ac_c_werror_flag" ||
   1961 	 test ! -s conftest.err
   1962        } && test -s conftest$ac_exeext && {
   1963 	 test "$cross_compiling" = yes ||
   1964 	 $as_test_x conftest$ac_exeext
   1965        }; then :
   1966   ac_retval=0
   1967 else
   1968   $as_echo "$as_me: failed program was:" >&5
   1969 sed 's/^/| /' conftest.$ac_ext >&5
   1970 
   1971 	ac_retval=1
   1972 fi
   1973   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1974   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1975   # interfere with the next link command; also delete a directory that is
   1976   # left behind by Apple's compiler.  We do this before executing the actions.
   1977   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1978   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1979   as_fn_set_status $ac_retval
   1980 
   1981 } # ac_fn_c_try_link
   1982 
   1983 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1984 # -------------------------------------------------------
   1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1986 # the include files in INCLUDES and setting the cache variable VAR
   1987 # accordingly.
   1988 ac_fn_c_check_header_mongrel ()
   1989 {
   1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1991   if eval "test \"\${$3+set}\"" = set; then :
   1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1993 $as_echo_n "checking for $2... " >&6; }
   1994 if eval "test \"\${$3+set}\"" = set; then :
   1995   $as_echo_n "(cached) " >&6
   1996 fi
   1997 eval ac_res=\$$3
   1998 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1999 $as_echo "$ac_res" >&6; }
   2000 else
   2001   # Is the header compilable?
   2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2003 $as_echo_n "checking $2 usability... " >&6; }
   2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2005 /* end confdefs.h.  */
   2006 $4
   2007 #include <$2>
   2008 _ACEOF
   2009 if ac_fn_c_try_compile "$LINENO"; then :
   2010   ac_header_compiler=yes
   2011 else
   2012   ac_header_compiler=no
   2013 fi
   2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2016 $as_echo "$ac_header_compiler" >&6; }
   2017 
   2018 # Is the header present?
   2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2020 $as_echo_n "checking $2 presence... " >&6; }
   2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2022 /* end confdefs.h.  */
   2023 #include <$2>
   2024 _ACEOF
   2025 if ac_fn_c_try_cpp "$LINENO"; then :
   2026   ac_header_preproc=yes
   2027 else
   2028   ac_header_preproc=no
   2029 fi
   2030 rm -f conftest.err conftest.i conftest.$ac_ext
   2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2032 $as_echo "$ac_header_preproc" >&6; }
   2033 
   2034 # So?  What about this header?
   2035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   2036   yes:no: )
   2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2041     ;;
   2042   no:yes:* )
   2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2046 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2050 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2051     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2053     ;;
   2054 esac
   2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2056 $as_echo_n "checking for $2... " >&6; }
   2057 if eval "test \"\${$3+set}\"" = set; then :
   2058   $as_echo_n "(cached) " >&6
   2059 else
   2060   eval "$3=\$ac_header_compiler"
   2061 fi
   2062 eval ac_res=\$$3
   2063 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2064 $as_echo "$ac_res" >&6; }
   2065 fi
   2066   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2067 
   2068 } # ac_fn_c_check_header_mongrel
   2069 
   2070 # ac_fn_c_check_func LINENO FUNC VAR
   2071 # ----------------------------------
   2072 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2073 ac_fn_c_check_func ()
   2074 {
   2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2077 $as_echo_n "checking for $2... " >&6; }
   2078 if eval "test \"\${$3+set}\"" = set; then :
   2079   $as_echo_n "(cached) " >&6
   2080 else
   2081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2082 /* end confdefs.h.  */
   2083 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2085 #define $2 innocuous_$2
   2086 
   2087 /* System header to define __stub macros and hopefully few prototypes,
   2088     which can conflict with char $2 (); below.
   2089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2090     <limits.h> exists even on freestanding compilers.  */
   2091 
   2092 #ifdef __STDC__
   2093 # include <limits.h>
   2094 #else
   2095 # include <assert.h>
   2096 #endif
   2097 
   2098 #undef $2
   2099 
   2100 /* Override any GCC internal prototype to avoid an error.
   2101    Use char because int might match the return type of a GCC
   2102    builtin and then its argument prototype would still apply.  */
   2103 #ifdef __cplusplus
   2104 extern "C"
   2105 #endif
   2106 char $2 ();
   2107 /* The GNU C library defines this for functions which it implements
   2108     to always fail with ENOSYS.  Some functions are actually named
   2109     something starting with __ and the normal name is an alias.  */
   2110 #if defined __stub_$2 || defined __stub___$2
   2111 choke me
   2112 #endif
   2113 
   2114 int
   2115 main ()
   2116 {
   2117 return $2 ();
   2118   ;
   2119   return 0;
   2120 }
   2121 _ACEOF
   2122 if ac_fn_c_try_link "$LINENO"; then :
   2123   eval "$3=yes"
   2124 else
   2125   eval "$3=no"
   2126 fi
   2127 rm -f core conftest.err conftest.$ac_objext \
   2128     conftest$ac_exeext conftest.$ac_ext
   2129 fi
   2130 eval ac_res=\$$3
   2131 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2132 $as_echo "$ac_res" >&6; }
   2133   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2134 
   2135 } # ac_fn_c_check_func
   2136 
   2137 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2138 # -------------------------------------------
   2139 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2140 # variable VAR accordingly.
   2141 ac_fn_c_check_type ()
   2142 {
   2143   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2145 $as_echo_n "checking for $2... " >&6; }
   2146 if eval "test \"\${$3+set}\"" = set; then :
   2147   $as_echo_n "(cached) " >&6
   2148 else
   2149   eval "$3=no"
   2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2151 /* end confdefs.h.  */
   2152 $4
   2153 int
   2154 main ()
   2155 {
   2156 if (sizeof ($2))
   2157 	 return 0;
   2158   ;
   2159   return 0;
   2160 }
   2161 _ACEOF
   2162 if ac_fn_c_try_compile "$LINENO"; then :
   2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2164 /* end confdefs.h.  */
   2165 $4
   2166 int
   2167 main ()
   2168 {
   2169 if (sizeof (($2)))
   2170 	    return 0;
   2171   ;
   2172   return 0;
   2173 }
   2174 _ACEOF
   2175 if ac_fn_c_try_compile "$LINENO"; then :
   2176 
   2177 else
   2178   eval "$3=yes"
   2179 fi
   2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2181 fi
   2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2183 fi
   2184 eval ac_res=\$$3
   2185 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2186 $as_echo "$ac_res" >&6; }
   2187   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2188 
   2189 } # ac_fn_c_check_type
   2190 cat >config.log <<_ACEOF
   2191 This file contains any messages produced by compilers while
   2192 running configure, to aid debugging if configure makes a mistake.
   2193 
   2194 It was created by $as_me, which was
   2195 generated by GNU Autoconf 2.67.  Invocation command line was
   2196 
   2197   $ $0 $@
   2198 
   2199 _ACEOF
   2200 exec 5>>config.log
   2201 {
   2202 cat <<_ASUNAME
   2203 ## --------- ##
   2204 ## Platform. ##
   2205 ## --------- ##
   2206 
   2207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2212 
   2213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2215 
   2216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2219 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2223 
   2224 _ASUNAME
   2225 
   2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2227 for as_dir in $PATH
   2228 do
   2229   IFS=$as_save_IFS
   2230   test -z "$as_dir" && as_dir=.
   2231     $as_echo "PATH: $as_dir"
   2232   done
   2233 IFS=$as_save_IFS
   2234 
   2235 } >&5
   2236 
   2237 cat >&5 <<_ACEOF
   2238 
   2239 
   2240 ## ----------- ##
   2241 ## Core tests. ##
   2242 ## ----------- ##
   2243 
   2244 _ACEOF
   2245 
   2246 
   2247 # Keep a trace of the command line.
   2248 # Strip out --no-create and --no-recursion so they do not pile up.
   2249 # Strip out --silent because we don't want to record it for future runs.
   2250 # Also quote any args containing shell meta-characters.
   2251 # Make two passes to allow for proper duplicate-argument suppression.
   2252 ac_configure_args=
   2253 ac_configure_args0=
   2254 ac_configure_args1=
   2255 ac_must_keep_next=false
   2256 for ac_pass in 1 2
   2257 do
   2258   for ac_arg
   2259   do
   2260     case $ac_arg in
   2261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2263     | -silent | --silent | --silen | --sile | --sil)
   2264       continue ;;
   2265     *\'*)
   2266       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2267     esac
   2268     case $ac_pass in
   2269     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2270     2)
   2271       as_fn_append ac_configure_args1 " '$ac_arg'"
   2272       if test $ac_must_keep_next = true; then
   2273 	ac_must_keep_next=false # Got value, back to normal.
   2274       else
   2275 	case $ac_arg in
   2276 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2277 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2278 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2279 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2280 	    case "$ac_configure_args0 " in
   2281 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2282 	    esac
   2283 	    ;;
   2284 	  -* ) ac_must_keep_next=true ;;
   2285 	esac
   2286       fi
   2287       as_fn_append ac_configure_args " '$ac_arg'"
   2288       ;;
   2289     esac
   2290   done
   2291 done
   2292 { ac_configure_args0=; unset ac_configure_args0;}
   2293 { ac_configure_args1=; unset ac_configure_args1;}
   2294 
   2295 # When interrupted or exit'd, cleanup temporary files, and complete
   2296 # config.log.  We remove comments because anyway the quotes in there
   2297 # would cause problems or look ugly.
   2298 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2299 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2300 trap 'exit_status=$?
   2301   # Save into config.log some information that might help in debugging.
   2302   {
   2303     echo
   2304 
   2305     $as_echo "## ---------------- ##
   2306 ## Cache variables. ##
   2307 ## ---------------- ##"
   2308     echo
   2309     # The following way of writing the cache mishandles newlines in values,
   2310 (
   2311   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2312     eval ac_val=\$$ac_var
   2313     case $ac_val in #(
   2314     *${as_nl}*)
   2315       case $ac_var in #(
   2316       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2318       esac
   2319       case $ac_var in #(
   2320       _ | IFS | as_nl) ;; #(
   2321       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2322       *) { eval $ac_var=; unset $ac_var;} ;;
   2323       esac ;;
   2324     esac
   2325   done
   2326   (set) 2>&1 |
   2327     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2328     *${as_nl}ac_space=\ *)
   2329       sed -n \
   2330 	"s/'\''/'\''\\\\'\'''\''/g;
   2331 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2332       ;; #(
   2333     *)
   2334       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2335       ;;
   2336     esac |
   2337     sort
   2338 )
   2339     echo
   2340 
   2341     $as_echo "## ----------------- ##
   2342 ## Output variables. ##
   2343 ## ----------------- ##"
   2344     echo
   2345     for ac_var in $ac_subst_vars
   2346     do
   2347       eval ac_val=\$$ac_var
   2348       case $ac_val in
   2349       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2350       esac
   2351       $as_echo "$ac_var='\''$ac_val'\''"
   2352     done | sort
   2353     echo
   2354 
   2355     if test -n "$ac_subst_files"; then
   2356       $as_echo "## ------------------- ##
   2357 ## File substitutions. ##
   2358 ## ------------------- ##"
   2359       echo
   2360       for ac_var in $ac_subst_files
   2361       do
   2362 	eval ac_val=\$$ac_var
   2363 	case $ac_val in
   2364 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2365 	esac
   2366 	$as_echo "$ac_var='\''$ac_val'\''"
   2367       done | sort
   2368       echo
   2369     fi
   2370 
   2371     if test -s confdefs.h; then
   2372       $as_echo "## ----------- ##
   2373 ## confdefs.h. ##
   2374 ## ----------- ##"
   2375       echo
   2376       cat confdefs.h
   2377       echo
   2378     fi
   2379     test "$ac_signal" != 0 &&
   2380       $as_echo "$as_me: caught signal $ac_signal"
   2381     $as_echo "$as_me: exit $exit_status"
   2382   } >&5
   2383   rm -f core *.core core.conftest.* &&
   2384     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2385     exit $exit_status
   2386 ' 0
   2387 for ac_signal in 1 2 13 15; do
   2388   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2389 done
   2390 ac_signal=0
   2391 
   2392 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2393 rm -f -r conftest* confdefs.h
   2394 
   2395 $as_echo "/* confdefs.h */" > confdefs.h
   2396 
   2397 # Predefined preprocessor variables.
   2398 
   2399 cat >>confdefs.h <<_ACEOF
   2400 #define PACKAGE_NAME "$PACKAGE_NAME"
   2401 _ACEOF
   2402 
   2403 cat >>confdefs.h <<_ACEOF
   2404 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2405 _ACEOF
   2406 
   2407 cat >>confdefs.h <<_ACEOF
   2408 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2409 _ACEOF
   2410 
   2411 cat >>confdefs.h <<_ACEOF
   2412 #define PACKAGE_STRING "$PACKAGE_STRING"
   2413 _ACEOF
   2414 
   2415 cat >>confdefs.h <<_ACEOF
   2416 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2417 _ACEOF
   2418 
   2419 cat >>confdefs.h <<_ACEOF
   2420 #define PACKAGE_URL "$PACKAGE_URL"
   2421 _ACEOF
   2422 
   2423 
   2424 # Let the site file select an alternate cache file if it wants to.
   2425 # Prefer an explicitly selected file to automatically selected ones.
   2426 ac_site_file1=NONE
   2427 ac_site_file2=NONE
   2428 if test -n "$CONFIG_SITE"; then
   2429   # We do not want a PATH search for config.site.
   2430   case $CONFIG_SITE in #((
   2431     -*)  ac_site_file1=./$CONFIG_SITE;;
   2432     */*) ac_site_file1=$CONFIG_SITE;;
   2433     *)   ac_site_file1=./$CONFIG_SITE;;
   2434   esac
   2435 elif test "x$prefix" != xNONE; then
   2436   ac_site_file1=$prefix/share/config.site
   2437   ac_site_file2=$prefix/etc/config.site
   2438 else
   2439   ac_site_file1=$ac_default_prefix/share/config.site
   2440   ac_site_file2=$ac_default_prefix/etc/config.site
   2441 fi
   2442 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2443 do
   2444   test "x$ac_site_file" = xNONE && continue
   2445   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2446     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2447 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2448     sed 's/^/| /' "$ac_site_file" >&5
   2449     . "$ac_site_file" \
   2450       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2452 as_fn_error $? "failed to load site script $ac_site_file
   2453 See \`config.log' for more details" "$LINENO" 5; }
   2454   fi
   2455 done
   2456 
   2457 if test -r "$cache_file"; then
   2458   # Some versions of bash will fail to source /dev/null (special files
   2459   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2460   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2462 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2463     case $cache_file in
   2464       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2465       *)                      . "./$cache_file";;
   2466     esac
   2467   fi
   2468 else
   2469   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2470 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2471   >$cache_file
   2472 fi
   2473 
   2474 # Check that the precious variables saved in the cache have kept the same
   2475 # value.
   2476 ac_cache_corrupted=false
   2477 for ac_var in $ac_precious_vars; do
   2478   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2479   eval ac_new_set=\$ac_env_${ac_var}_set
   2480   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2481   eval ac_new_val=\$ac_env_${ac_var}_value
   2482   case $ac_old_set,$ac_new_set in
   2483     set,)
   2484       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2486       ac_cache_corrupted=: ;;
   2487     ,set)
   2488       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2490       ac_cache_corrupted=: ;;
   2491     ,);;
   2492     *)
   2493       if test "x$ac_old_val" != "x$ac_new_val"; then
   2494 	# differences in whitespace do not lead to failure.
   2495 	ac_old_val_w=`echo x $ac_old_val`
   2496 	ac_new_val_w=`echo x $ac_new_val`
   2497 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2498 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2500 	  ac_cache_corrupted=:
   2501 	else
   2502 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2504 	  eval $ac_var=\$ac_old_val
   2505 	fi
   2506 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2507 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2508 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2509 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2510       fi;;
   2511   esac
   2512   # Pass precious variables to config.status.
   2513   if test "$ac_new_set" = set; then
   2514     case $ac_new_val in
   2515     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2516     *) ac_arg=$ac_var=$ac_new_val ;;
   2517     esac
   2518     case " $ac_configure_args " in
   2519       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2520       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2521     esac
   2522   fi
   2523 done
   2524 if $ac_cache_corrupted; then
   2525   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2527   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2529   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2530 fi
   2531 ## -------------------- ##
   2532 ## Main body of script. ##
   2533 ## -------------------- ##
   2534 
   2535 ac_ext=c
   2536 ac_cpp='$CPP $CPPFLAGS'
   2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2540 
   2541 
   2542 
   2543 
   2544 ac_config_headers="$ac_config_headers common/icucfg.h"
   2545 
   2546 PACKAGE="icu"
   2547 
   2548 
   2549 # Use custom echo test for newline option
   2550 # Current autoconf (2.65) gives incorrect echo newline option
   2551 # for icu-config
   2552 # This may be removed later - mow (June 17, 2010)
   2553 ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
   2554 case `/bin/sh -c "echo -n x"` in
   2555 -n*)
   2556   case `/bin/sh -c "echo 'x\c'"` in
   2557   *c*) ICU_ECHO_T=' ';;     # ECHO_T is single tab character.
   2558   *)   ICU_ECHO_C='\c';;
   2559   esac;;
   2560 *)
   2561   ICU_ECHO_N='-n';;
   2562 esac
   2563 
   2564 
   2565 
   2566 
   2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
   2568 $as_echo_n "checking for ICU version numbers... " >&6; }
   2569 
   2570 # Get the ICU version from uversion.h or other headers
   2571 geticuversion() {
   2572     sed -n 's/^[ 	]*#[ 	]*define[ 	]*U_ICU_VERSION[ 	]*"\([^"]*\)".*/\1/p' "$@"
   2573 }
   2574 getuversion() {
   2575     sed -n 's/^[ 	]*#[ 	]*define[ 	]*U_UNICODE_VERSION[ 	]*"\([^"]*\)".*/\1/p' "$@"
   2576 }
   2577 VERSION=`geticuversion $srcdir/common/unicode/uvernum.h`
   2578 if test x"$VERSION" = x; then
   2579     VERSION=`geticuversion $srcdir/common/unicode/*.h`
   2580     if test x"$VERSION" = x; then
   2581         as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
   2582     fi
   2583 fi
   2584 
   2585 UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h`
   2586 if test x"$UNICODE_VERSION" = x; then
   2587     UNICODE_VERSION=`getuversion $srcdir/common/unicode/*.h`
   2588     if test x"$UNICODE_VERSION" = x; then
   2589         as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
   2590     fi
   2591 fi
   2592 # Compute a reasonable library version from the release version. This is
   2593 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
   2594 # has at least a dot in it, so we'll add a .0 if needed.
   2595 LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
   2596 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
   2597 
   2598 
   2599 
   2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
   2601 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
   2602 
   2603 
   2604 
   2605 # Determine the host system
   2606 ac_aux_dir=
   2607 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2608   if test -f "$ac_dir/install-sh"; then
   2609     ac_aux_dir=$ac_dir
   2610     ac_install_sh="$ac_aux_dir/install-sh -c"
   2611     break
   2612   elif test -f "$ac_dir/install.sh"; then
   2613     ac_aux_dir=$ac_dir
   2614     ac_install_sh="$ac_aux_dir/install.sh -c"
   2615     break
   2616   elif test -f "$ac_dir/shtool"; then
   2617     ac_aux_dir=$ac_dir
   2618     ac_install_sh="$ac_aux_dir/shtool install -c"
   2619     break
   2620   fi
   2621 done
   2622 if test -z "$ac_aux_dir"; then
   2623   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2624 fi
   2625 
   2626 # These three variables are undocumented and unsupported,
   2627 # and are intended to be withdrawn in a future Autoconf release.
   2628 # They can cause serious problems if a builder's source tree is in a directory
   2629 # whose full name contains unusual characters.
   2630 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2631 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2632 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2633 
   2634 
   2635 # Make sure we can run config.sub.
   2636 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2637   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2638 
   2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2640 $as_echo_n "checking build system type... " >&6; }
   2641 if test "${ac_cv_build+set}" = set; then :
   2642   $as_echo_n "(cached) " >&6
   2643 else
   2644   ac_build_alias=$build_alias
   2645 test "x$ac_build_alias" = x &&
   2646   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2647 test "x$ac_build_alias" = x &&
   2648   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2649 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2650   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2651 
   2652 fi
   2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2654 $as_echo "$ac_cv_build" >&6; }
   2655 case $ac_cv_build in
   2656 *-*-*) ;;
   2657 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2658 esac
   2659 build=$ac_cv_build
   2660 ac_save_IFS=$IFS; IFS='-'
   2661 set x $ac_cv_build
   2662 shift
   2663 build_cpu=$1
   2664 build_vendor=$2
   2665 shift; shift
   2666 # Remember, the first character of IFS is used to create $*,
   2667 # except with old shells:
   2668 build_os=$*
   2669 IFS=$ac_save_IFS
   2670 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2671 
   2672 
   2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2674 $as_echo_n "checking host system type... " >&6; }
   2675 if test "${ac_cv_host+set}" = set; then :
   2676   $as_echo_n "(cached) " >&6
   2677 else
   2678   if test "x$host_alias" = x; then
   2679   ac_cv_host=$ac_cv_build
   2680 else
   2681   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2682     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2683 fi
   2684 
   2685 fi
   2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2687 $as_echo "$ac_cv_host" >&6; }
   2688 case $ac_cv_host in
   2689 *-*-*) ;;
   2690 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2691 esac
   2692 host=$ac_cv_host
   2693 ac_save_IFS=$IFS; IFS='-'
   2694 set x $ac_cv_host
   2695 shift
   2696 host_cpu=$1
   2697 host_vendor=$2
   2698 shift; shift
   2699 # Remember, the first character of IFS is used to create $*,
   2700 # except with old shells:
   2701 host_os=$*
   2702 IFS=$ac_save_IFS
   2703 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2704 
   2705 
   2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2707 $as_echo_n "checking target system type... " >&6; }
   2708 if test "${ac_cv_target+set}" = set; then :
   2709   $as_echo_n "(cached) " >&6
   2710 else
   2711   if test "x$target_alias" = x; then
   2712   ac_cv_target=$ac_cv_host
   2713 else
   2714   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2715     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2716 fi
   2717 
   2718 fi
   2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2720 $as_echo "$ac_cv_target" >&6; }
   2721 case $ac_cv_target in
   2722 *-*-*) ;;
   2723 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2724 esac
   2725 target=$ac_cv_target
   2726 ac_save_IFS=$IFS; IFS='-'
   2727 set x $ac_cv_target
   2728 shift
   2729 target_cpu=$1
   2730 target_vendor=$2
   2731 shift; shift
   2732 # Remember, the first character of IFS is used to create $*,
   2733 # except with old shells:
   2734 target_os=$*
   2735 IFS=$ac_save_IFS
   2736 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2737 
   2738 
   2739 # The aliases save the names the user supplied, while $host etc.
   2740 # will get canonicalized.
   2741 test -n "$target_alias" &&
   2742   test "$program_prefix$program_suffix$program_transform_name" = \
   2743     NONENONEs,x,x, &&
   2744   program_prefix=${target_alias}-
   2745 
   2746 
   2747 
   2748 
   2749 # This variable is needed on z/OS because the C++ compiler only recognizes .C
   2750 _CXX_CXXSUFFIX=cpp
   2751 export _CXX_CXXSUFFIX
   2752 
   2753 # Check whether to build debug libraries
   2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
   2755 $as_echo_n "checking whether to build debug libraries... " >&6; }
   2756 enabled=no
   2757 ENABLE_DEBUG=0
   2758 # Check whether --enable-debug was given.
   2759 if test "${enable_debug+set}" = set; then :
   2760   enableval=$enable_debug;  case "${enableval}" in
   2761          yes|"") enabled=yes; ENABLE_DEBUG=1 ;;
   2762          *) ;;
   2763     esac
   2764 fi
   2765 
   2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   2767 $as_echo "$enabled" >&6; }
   2768 
   2769 
   2770 # Check whether to build release libraries
   2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
   2772 $as_echo_n "checking whether to build release libraries... " >&6; }
   2773 enabled=yes
   2774 ENABLE_RELEASE=1
   2775 # Check whether --enable-release was given.
   2776 if test "${enable_release+set}" = set; then :
   2777   enableval=$enable_release;  case "${enableval}" in
   2778          no) enabled=no; ENABLE_RELEASE=0 ;;
   2779          *) ;;
   2780     esac
   2781 fi
   2782 
   2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   2784 $as_echo "$enabled" >&6; }
   2785 
   2786 
   2787 # Don't use the default C/CXXFLags
   2788 : ${CFLAGS=""}
   2789 : ${CXXFLAGS=""}
   2790 
   2791 # Checks for programs
   2792 ac_ext=c
   2793 ac_cpp='$CPP $CPPFLAGS'
   2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2797 if test -n "$ac_tool_prefix"; then
   2798   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2801 $as_echo_n "checking for $ac_word... " >&6; }
   2802 if test "${ac_cv_prog_CC+set}" = set; then :
   2803   $as_echo_n "(cached) " >&6
   2804 else
   2805   if test -n "$CC"; then
   2806   ac_cv_prog_CC="$CC" # Let the user override the test.
   2807 else
   2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2809 for as_dir in $PATH
   2810 do
   2811   IFS=$as_save_IFS
   2812   test -z "$as_dir" && as_dir=.
   2813     for ac_exec_ext in '' $ac_executable_extensions; do
   2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2815     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2817     break 2
   2818   fi
   2819 done
   2820   done
   2821 IFS=$as_save_IFS
   2822 
   2823 fi
   2824 fi
   2825 CC=$ac_cv_prog_CC
   2826 if test -n "$CC"; then
   2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2828 $as_echo "$CC" >&6; }
   2829 else
   2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2831 $as_echo "no" >&6; }
   2832 fi
   2833 
   2834 
   2835 fi
   2836 if test -z "$ac_cv_prog_CC"; then
   2837   ac_ct_CC=$CC
   2838   # Extract the first word of "gcc", so it can be a program name with args.
   2839 set dummy gcc; ac_word=$2
   2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2841 $as_echo_n "checking for $ac_word... " >&6; }
   2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2843   $as_echo_n "(cached) " >&6
   2844 else
   2845   if test -n "$ac_ct_CC"; then
   2846   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2847 else
   2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2849 for as_dir in $PATH
   2850 do
   2851   IFS=$as_save_IFS
   2852   test -z "$as_dir" && as_dir=.
   2853     for ac_exec_ext in '' $ac_executable_extensions; do
   2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2855     ac_cv_prog_ac_ct_CC="gcc"
   2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2857     break 2
   2858   fi
   2859 done
   2860   done
   2861 IFS=$as_save_IFS
   2862 
   2863 fi
   2864 fi
   2865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2866 if test -n "$ac_ct_CC"; then
   2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2868 $as_echo "$ac_ct_CC" >&6; }
   2869 else
   2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2871 $as_echo "no" >&6; }
   2872 fi
   2873 
   2874   if test "x$ac_ct_CC" = x; then
   2875     CC=""
   2876   else
   2877     case $cross_compiling:$ac_tool_warned in
   2878 yes:)
   2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2881 ac_tool_warned=yes ;;
   2882 esac
   2883     CC=$ac_ct_CC
   2884   fi
   2885 else
   2886   CC="$ac_cv_prog_CC"
   2887 fi
   2888 
   2889 if test -z "$CC"; then
   2890           if test -n "$ac_tool_prefix"; then
   2891     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2892 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2894 $as_echo_n "checking for $ac_word... " >&6; }
   2895 if test "${ac_cv_prog_CC+set}" = set; then :
   2896   $as_echo_n "(cached) " >&6
   2897 else
   2898   if test -n "$CC"; then
   2899   ac_cv_prog_CC="$CC" # Let the user override the test.
   2900 else
   2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2902 for as_dir in $PATH
   2903 do
   2904   IFS=$as_save_IFS
   2905   test -z "$as_dir" && as_dir=.
   2906     for ac_exec_ext in '' $ac_executable_extensions; do
   2907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2908     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2910     break 2
   2911   fi
   2912 done
   2913   done
   2914 IFS=$as_save_IFS
   2915 
   2916 fi
   2917 fi
   2918 CC=$ac_cv_prog_CC
   2919 if test -n "$CC"; then
   2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2921 $as_echo "$CC" >&6; }
   2922 else
   2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2924 $as_echo "no" >&6; }
   2925 fi
   2926 
   2927 
   2928   fi
   2929 fi
   2930 if test -z "$CC"; then
   2931   # Extract the first word of "cc", so it can be a program name with args.
   2932 set dummy cc; ac_word=$2
   2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2934 $as_echo_n "checking for $ac_word... " >&6; }
   2935 if test "${ac_cv_prog_CC+set}" = set; then :
   2936   $as_echo_n "(cached) " >&6
   2937 else
   2938   if test -n "$CC"; then
   2939   ac_cv_prog_CC="$CC" # Let the user override the test.
   2940 else
   2941   ac_prog_rejected=no
   2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2943 for as_dir in $PATH
   2944 do
   2945   IFS=$as_save_IFS
   2946   test -z "$as_dir" && as_dir=.
   2947     for ac_exec_ext in '' $ac_executable_extensions; do
   2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2949     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2950        ac_prog_rejected=yes
   2951        continue
   2952      fi
   2953     ac_cv_prog_CC="cc"
   2954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2955     break 2
   2956   fi
   2957 done
   2958   done
   2959 IFS=$as_save_IFS
   2960 
   2961 if test $ac_prog_rejected = yes; then
   2962   # We found a bogon in the path, so make sure we never use it.
   2963   set dummy $ac_cv_prog_CC
   2964   shift
   2965   if test $# != 0; then
   2966     # We chose a different compiler from the bogus one.
   2967     # However, it has the same basename, so the bogon will be chosen
   2968     # first if we set CC to just the basename; use the full file name.
   2969     shift
   2970     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2971   fi
   2972 fi
   2973 fi
   2974 fi
   2975 CC=$ac_cv_prog_CC
   2976 if test -n "$CC"; then
   2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2978 $as_echo "$CC" >&6; }
   2979 else
   2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2981 $as_echo "no" >&6; }
   2982 fi
   2983 
   2984 
   2985 fi
   2986 if test -z "$CC"; then
   2987   if test -n "$ac_tool_prefix"; then
   2988   for ac_prog in cl.exe
   2989   do
   2990     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2993 $as_echo_n "checking for $ac_word... " >&6; }
   2994 if test "${ac_cv_prog_CC+set}" = set; then :
   2995   $as_echo_n "(cached) " >&6
   2996 else
   2997   if test -n "$CC"; then
   2998   ac_cv_prog_CC="$CC" # Let the user override the test.
   2999 else
   3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3001 for as_dir in $PATH
   3002 do
   3003   IFS=$as_save_IFS
   3004   test -z "$as_dir" && as_dir=.
   3005     for ac_exec_ext in '' $ac_executable_extensions; do
   3006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3007     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3009     break 2
   3010   fi
   3011 done
   3012   done
   3013 IFS=$as_save_IFS
   3014 
   3015 fi
   3016 fi
   3017 CC=$ac_cv_prog_CC
   3018 if test -n "$CC"; then
   3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3020 $as_echo "$CC" >&6; }
   3021 else
   3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3023 $as_echo "no" >&6; }
   3024 fi
   3025 
   3026 
   3027     test -n "$CC" && break
   3028   done
   3029 fi
   3030 if test -z "$CC"; then
   3031   ac_ct_CC=$CC
   3032   for ac_prog in cl.exe
   3033 do
   3034   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3035 set dummy $ac_prog; ac_word=$2
   3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3037 $as_echo_n "checking for $ac_word... " >&6; }
   3038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3039   $as_echo_n "(cached) " >&6
   3040 else
   3041   if test -n "$ac_ct_CC"; then
   3042   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3043 else
   3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3045 for as_dir in $PATH
   3046 do
   3047   IFS=$as_save_IFS
   3048   test -z "$as_dir" && as_dir=.
   3049     for ac_exec_ext in '' $ac_executable_extensions; do
   3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3051     ac_cv_prog_ac_ct_CC="$ac_prog"
   3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3053     break 2
   3054   fi
   3055 done
   3056   done
   3057 IFS=$as_save_IFS
   3058 
   3059 fi
   3060 fi
   3061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3062 if test -n "$ac_ct_CC"; then
   3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3064 $as_echo "$ac_ct_CC" >&6; }
   3065 else
   3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3067 $as_echo "no" >&6; }
   3068 fi
   3069 
   3070 
   3071   test -n "$ac_ct_CC" && break
   3072 done
   3073 
   3074   if test "x$ac_ct_CC" = x; then
   3075     CC=""
   3076   else
   3077     case $cross_compiling:$ac_tool_warned in
   3078 yes:)
   3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3081 ac_tool_warned=yes ;;
   3082 esac
   3083     CC=$ac_ct_CC
   3084   fi
   3085 fi
   3086 
   3087 fi
   3088 
   3089 
   3090 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3092 as_fn_error $? "no acceptable C compiler found in \$PATH
   3093 See \`config.log' for more details" "$LINENO" 5; }
   3094 
   3095 # Provide some information about the compiler.
   3096 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3097 set X $ac_compile
   3098 ac_compiler=$2
   3099 for ac_option in --version -v -V -qversion; do
   3100   { { ac_try="$ac_compiler $ac_option >&5"
   3101 case "(($ac_try" in
   3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3103   *) ac_try_echo=$ac_try;;
   3104 esac
   3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3106 $as_echo "$ac_try_echo"; } >&5
   3107   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3108   ac_status=$?
   3109   if test -s conftest.err; then
   3110     sed '10a\
   3111 ... rest of stderr output deleted ...
   3112          10q' conftest.err >conftest.er1
   3113     cat conftest.er1 >&5
   3114   fi
   3115   rm -f conftest.er1 conftest.err
   3116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3117   test $ac_status = 0; }
   3118 done
   3119 
   3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3121 /* end confdefs.h.  */
   3122 
   3123 int
   3124 main ()
   3125 {
   3126 
   3127   ;
   3128   return 0;
   3129 }
   3130 _ACEOF
   3131 ac_clean_files_save=$ac_clean_files
   3132 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3133 # Try to create an executable without -o first, disregard a.out.
   3134 # It will help us diagnose broken compilers, and finding out an intuition
   3135 # of exeext.
   3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3137 $as_echo_n "checking whether the C compiler works... " >&6; }
   3138 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3139 
   3140 # The possible output files:
   3141 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3142 
   3143 ac_rmfiles=
   3144 for ac_file in $ac_files
   3145 do
   3146   case $ac_file in
   3147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3148     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3149   esac
   3150 done
   3151 rm -f $ac_rmfiles
   3152 
   3153 if { { ac_try="$ac_link_default"
   3154 case "(($ac_try" in
   3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3156   *) ac_try_echo=$ac_try;;
   3157 esac
   3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3159 $as_echo "$ac_try_echo"; } >&5
   3160   (eval "$ac_link_default") 2>&5
   3161   ac_status=$?
   3162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3163   test $ac_status = 0; }; then :
   3164   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3166 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3167 # so that the user can short-circuit this test for compilers unknown to
   3168 # Autoconf.
   3169 for ac_file in $ac_files ''
   3170 do
   3171   test -f "$ac_file" || continue
   3172   case $ac_file in
   3173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3174 	;;
   3175     [ab].out )
   3176 	# We found the default executable, but exeext='' is most
   3177 	# certainly right.
   3178 	break;;
   3179     *.* )
   3180 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3181 	then :; else
   3182 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3183 	fi
   3184 	# We set ac_cv_exeext here because the later test for it is not
   3185 	# safe: cross compilers may not add the suffix if given an `-o'
   3186 	# argument, so we may need to know it at that point already.
   3187 	# Even if this section looks crufty: it has the advantage of
   3188 	# actually working.
   3189 	break;;
   3190     * )
   3191 	break;;
   3192   esac
   3193 done
   3194 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3195 
   3196 else
   3197   ac_file=''
   3198 fi
   3199 if test -z "$ac_file"; then :
   3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3201 $as_echo "no" >&6; }
   3202 $as_echo "$as_me: failed program was:" >&5
   3203 sed 's/^/| /' conftest.$ac_ext >&5
   3204 
   3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3207 as_fn_error 77 "C compiler cannot create executables
   3208 See \`config.log' for more details" "$LINENO" 5; }
   3209 else
   3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3211 $as_echo "yes" >&6; }
   3212 fi
   3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3214 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3216 $as_echo "$ac_file" >&6; }
   3217 ac_exeext=$ac_cv_exeext
   3218 
   3219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3220 ac_clean_files=$ac_clean_files_save
   3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3222 $as_echo_n "checking for suffix of executables... " >&6; }
   3223 if { { ac_try="$ac_link"
   3224 case "(($ac_try" in
   3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3226   *) ac_try_echo=$ac_try;;
   3227 esac
   3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3229 $as_echo "$ac_try_echo"; } >&5
   3230   (eval "$ac_link") 2>&5
   3231   ac_status=$?
   3232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3233   test $ac_status = 0; }; then :
   3234   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3235 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3236 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3237 # `rm'.
   3238 for ac_file in conftest.exe conftest conftest.*; do
   3239   test -f "$ac_file" || continue
   3240   case $ac_file in
   3241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3242     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3243 	  break;;
   3244     * ) break;;
   3245   esac
   3246 done
   3247 else
   3248   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3250 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3251 See \`config.log' for more details" "$LINENO" 5; }
   3252 fi
   3253 rm -f conftest conftest$ac_cv_exeext
   3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3255 $as_echo "$ac_cv_exeext" >&6; }
   3256 
   3257 rm -f conftest.$ac_ext
   3258 EXEEXT=$ac_cv_exeext
   3259 ac_exeext=$EXEEXT
   3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3261 /* end confdefs.h.  */
   3262 #include <stdio.h>
   3263 int
   3264 main ()
   3265 {
   3266 FILE *f = fopen ("conftest.out", "w");
   3267  return ferror (f) || fclose (f) != 0;
   3268 
   3269   ;
   3270   return 0;
   3271 }
   3272 _ACEOF
   3273 ac_clean_files="$ac_clean_files conftest.out"
   3274 # Check that the compiler produces executables we can run.  If not, either
   3275 # the compiler is broken, or we cross compile.
   3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3277 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3278 if test "$cross_compiling" != yes; then
   3279   { { ac_try="$ac_link"
   3280 case "(($ac_try" in
   3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3282   *) ac_try_echo=$ac_try;;
   3283 esac
   3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3285 $as_echo "$ac_try_echo"; } >&5
   3286   (eval "$ac_link") 2>&5
   3287   ac_status=$?
   3288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3289   test $ac_status = 0; }
   3290   if { ac_try='./conftest$ac_cv_exeext'
   3291   { { case "(($ac_try" in
   3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3293   *) ac_try_echo=$ac_try;;
   3294 esac
   3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3296 $as_echo "$ac_try_echo"; } >&5
   3297   (eval "$ac_try") 2>&5
   3298   ac_status=$?
   3299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3300   test $ac_status = 0; }; }; then
   3301     cross_compiling=no
   3302   else
   3303     if test "$cross_compiling" = maybe; then
   3304 	cross_compiling=yes
   3305     else
   3306 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3308 as_fn_error $? "cannot run C compiled programs.
   3309 If you meant to cross compile, use \`--host'.
   3310 See \`config.log' for more details" "$LINENO" 5; }
   3311     fi
   3312   fi
   3313 fi
   3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3315 $as_echo "$cross_compiling" >&6; }
   3316 
   3317 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3318 ac_clean_files=$ac_clean_files_save
   3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3320 $as_echo_n "checking for suffix of object files... " >&6; }
   3321 if test "${ac_cv_objext+set}" = set; then :
   3322   $as_echo_n "(cached) " >&6
   3323 else
   3324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3325 /* end confdefs.h.  */
   3326 
   3327 int
   3328 main ()
   3329 {
   3330 
   3331   ;
   3332   return 0;
   3333 }
   3334 _ACEOF
   3335 rm -f conftest.o conftest.obj
   3336 if { { ac_try="$ac_compile"
   3337 case "(($ac_try" in
   3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3339   *) ac_try_echo=$ac_try;;
   3340 esac
   3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3342 $as_echo "$ac_try_echo"; } >&5
   3343   (eval "$ac_compile") 2>&5
   3344   ac_status=$?
   3345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3346   test $ac_status = 0; }; then :
   3347   for ac_file in conftest.o conftest.obj conftest.*; do
   3348   test -f "$ac_file" || continue;
   3349   case $ac_file in
   3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3351     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3352        break;;
   3353   esac
   3354 done
   3355 else
   3356   $as_echo "$as_me: failed program was:" >&5
   3357 sed 's/^/| /' conftest.$ac_ext >&5
   3358 
   3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3361 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3362 See \`config.log' for more details" "$LINENO" 5; }
   3363 fi
   3364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3365 fi
   3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3367 $as_echo "$ac_cv_objext" >&6; }
   3368 OBJEXT=$ac_cv_objext
   3369 ac_objext=$OBJEXT
   3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3372 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3373   $as_echo_n "(cached) " >&6
   3374 else
   3375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3376 /* end confdefs.h.  */
   3377 
   3378 int
   3379 main ()
   3380 {
   3381 #ifndef __GNUC__
   3382        choke me
   3383 #endif
   3384 
   3385   ;
   3386   return 0;
   3387 }
   3388 _ACEOF
   3389 if ac_fn_c_try_compile "$LINENO"; then :
   3390   ac_compiler_gnu=yes
   3391 else
   3392   ac_compiler_gnu=no
   3393 fi
   3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3396 
   3397 fi
   3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3399 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3400 if test $ac_compiler_gnu = yes; then
   3401   GCC=yes
   3402 else
   3403   GCC=
   3404 fi
   3405 ac_test_CFLAGS=${CFLAGS+set}
   3406 ac_save_CFLAGS=$CFLAGS
   3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3408 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3409 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3410   $as_echo_n "(cached) " >&6
   3411 else
   3412   ac_save_c_werror_flag=$ac_c_werror_flag
   3413    ac_c_werror_flag=yes
   3414    ac_cv_prog_cc_g=no
   3415    CFLAGS="-g"
   3416    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3417 /* end confdefs.h.  */
   3418 
   3419 int
   3420 main ()
   3421 {
   3422 
   3423   ;
   3424   return 0;
   3425 }
   3426 _ACEOF
   3427 if ac_fn_c_try_compile "$LINENO"; then :
   3428   ac_cv_prog_cc_g=yes
   3429 else
   3430   CFLAGS=""
   3431       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3432 /* end confdefs.h.  */
   3433 
   3434 int
   3435 main ()
   3436 {
   3437 
   3438   ;
   3439   return 0;
   3440 }
   3441 _ACEOF
   3442 if ac_fn_c_try_compile "$LINENO"; then :
   3443 
   3444 else
   3445   ac_c_werror_flag=$ac_save_c_werror_flag
   3446 	 CFLAGS="-g"
   3447 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3448 /* end confdefs.h.  */
   3449 
   3450 int
   3451 main ()
   3452 {
   3453 
   3454   ;
   3455   return 0;
   3456 }
   3457 _ACEOF
   3458 if ac_fn_c_try_compile "$LINENO"; then :
   3459   ac_cv_prog_cc_g=yes
   3460 fi
   3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3462 fi
   3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3464 fi
   3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3466    ac_c_werror_flag=$ac_save_c_werror_flag
   3467 fi
   3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3469 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3470 if test "$ac_test_CFLAGS" = set; then
   3471   CFLAGS=$ac_save_CFLAGS
   3472 elif test $ac_cv_prog_cc_g = yes; then
   3473   if test "$GCC" = yes; then
   3474     CFLAGS="-g -O2"
   3475   else
   3476     CFLAGS="-g"
   3477   fi
   3478 else
   3479   if test "$GCC" = yes; then
   3480     CFLAGS="-O2"
   3481   else
   3482     CFLAGS=
   3483   fi
   3484 fi
   3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3486 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3487 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3488   $as_echo_n "(cached) " >&6
   3489 else
   3490   ac_cv_prog_cc_c89=no
   3491 ac_save_CC=$CC
   3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3493 /* end confdefs.h.  */
   3494 #include <stdarg.h>
   3495 #include <stdio.h>
   3496 #include <sys/types.h>
   3497 #include <sys/stat.h>
   3498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3499 struct buf { int x; };
   3500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3501 static char *e (p, i)
   3502      char **p;
   3503      int i;
   3504 {
   3505   return p[i];
   3506 }
   3507 static char *f (char * (*g) (char **, int), char **p, ...)
   3508 {
   3509   char *s;
   3510   va_list v;
   3511   va_start (v,p);
   3512   s = g (p, va_arg (v,int));
   3513   va_end (v);
   3514   return s;
   3515 }
   3516 
   3517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3518    function prototypes and stuff, but not '\xHH' hex character constants.
   3519    These don't provoke an error unfortunately, instead are silently treated
   3520    as 'x'.  The following induces an error, until -std is added to get
   3521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3522    array size at least.  It's necessary to write '\x00'==0 to get something
   3523    that's true only with -std.  */
   3524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3525 
   3526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3527    inside strings and character constants.  */
   3528 #define FOO(x) 'x'
   3529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3530 
   3531 int test (int i, double x);
   3532 struct s1 {int (*f) (int a);};
   3533 struct s2 {int (*f) (double a);};
   3534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3535 int argc;
   3536 char **argv;
   3537 int
   3538 main ()
   3539 {
   3540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3541   ;
   3542   return 0;
   3543 }
   3544 _ACEOF
   3545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3546 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3547 do
   3548   CC="$ac_save_CC $ac_arg"
   3549   if ac_fn_c_try_compile "$LINENO"; then :
   3550   ac_cv_prog_cc_c89=$ac_arg
   3551 fi
   3552 rm -f core conftest.err conftest.$ac_objext
   3553   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3554 done
   3555 rm -f conftest.$ac_ext
   3556 CC=$ac_save_CC
   3557 
   3558 fi
   3559 # AC_CACHE_VAL
   3560 case "x$ac_cv_prog_cc_c89" in
   3561   x)
   3562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3563 $as_echo "none needed" >&6; } ;;
   3564   xno)
   3565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3566 $as_echo "unsupported" >&6; } ;;
   3567   *)
   3568     CC="$CC $ac_cv_prog_cc_c89"
   3569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3571 esac
   3572 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3573 
   3574 fi
   3575 
   3576 ac_ext=c
   3577 ac_cpp='$CPP $CPPFLAGS'
   3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3581 
   3582 ac_ext=cpp
   3583 ac_cpp='$CXXCPP $CPPFLAGS'
   3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3587 if test -z "$CXX"; then
   3588   if test -n "$CCC"; then
   3589     CXX=$CCC
   3590   else
   3591     if test -n "$ac_tool_prefix"; then
   3592   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3593   do
   3594     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3597 $as_echo_n "checking for $ac_word... " >&6; }
   3598 if test "${ac_cv_prog_CXX+set}" = set; then :
   3599   $as_echo_n "(cached) " >&6
   3600 else
   3601   if test -n "$CXX"; then
   3602   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3603 else
   3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3605 for as_dir in $PATH
   3606 do
   3607   IFS=$as_save_IFS
   3608   test -z "$as_dir" && as_dir=.
   3609     for ac_exec_ext in '' $ac_executable_extensions; do
   3610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3611     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3613     break 2
   3614   fi
   3615 done
   3616   done
   3617 IFS=$as_save_IFS
   3618 
   3619 fi
   3620 fi
   3621 CXX=$ac_cv_prog_CXX
   3622 if test -n "$CXX"; then
   3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   3624 $as_echo "$CXX" >&6; }
   3625 else
   3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3627 $as_echo "no" >&6; }
   3628 fi
   3629 
   3630 
   3631     test -n "$CXX" && break
   3632   done
   3633 fi
   3634 if test -z "$CXX"; then
   3635   ac_ct_CXX=$CXX
   3636   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3637 do
   3638   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3639 set dummy $ac_prog; ac_word=$2
   3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3641 $as_echo_n "checking for $ac_word... " >&6; }
   3642 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
   3643   $as_echo_n "(cached) " >&6
   3644 else
   3645   if test -n "$ac_ct_CXX"; then
   3646   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3647 else
   3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3649 for as_dir in $PATH
   3650 do
   3651   IFS=$as_save_IFS
   3652   test -z "$as_dir" && as_dir=.
   3653     for ac_exec_ext in '' $ac_executable_extensions; do
   3654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3655     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3657     break 2
   3658   fi
   3659 done
   3660   done
   3661 IFS=$as_save_IFS
   3662 
   3663 fi
   3664 fi
   3665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3666 if test -n "$ac_ct_CXX"; then
   3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   3668 $as_echo "$ac_ct_CXX" >&6; }
   3669 else
   3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3671 $as_echo "no" >&6; }
   3672 fi
   3673 
   3674 
   3675   test -n "$ac_ct_CXX" && break
   3676 done
   3677 
   3678   if test "x$ac_ct_CXX" = x; then
   3679     CXX="g++"
   3680   else
   3681     case $cross_compiling:$ac_tool_warned in
   3682 yes:)
   3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3685 ac_tool_warned=yes ;;
   3686 esac
   3687     CXX=$ac_ct_CXX
   3688   fi
   3689 fi
   3690 
   3691   fi
   3692 fi
   3693 # Provide some information about the compiler.
   3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   3695 set X $ac_compile
   3696 ac_compiler=$2
   3697 for ac_option in --version -v -V -qversion; do
   3698   { { ac_try="$ac_compiler $ac_option >&5"
   3699 case "(($ac_try" in
   3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3701   *) ac_try_echo=$ac_try;;
   3702 esac
   3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3704 $as_echo "$ac_try_echo"; } >&5
   3705   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3706   ac_status=$?
   3707   if test -s conftest.err; then
   3708     sed '10a\
   3709 ... rest of stderr output deleted ...
   3710          10q' conftest.err >conftest.er1
   3711     cat conftest.er1 >&5
   3712   fi
   3713   rm -f conftest.er1 conftest.err
   3714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3715   test $ac_status = 0; }
   3716 done
   3717 
   3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   3719 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   3720 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
   3721   $as_echo_n "(cached) " >&6
   3722 else
   3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3724 /* end confdefs.h.  */
   3725 
   3726 int
   3727 main ()
   3728 {
   3729 #ifndef __GNUC__
   3730        choke me
   3731 #endif
   3732 
   3733   ;
   3734   return 0;
   3735 }
   3736 _ACEOF
   3737 if ac_fn_cxx_try_compile "$LINENO"; then :
   3738   ac_compiler_gnu=yes
   3739 else
   3740   ac_compiler_gnu=no
   3741 fi
   3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3743 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3744 
   3745 fi
   3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   3747 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   3748 if test $ac_compiler_gnu = yes; then
   3749   GXX=yes
   3750 else
   3751   GXX=
   3752 fi
   3753 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3754 ac_save_CXXFLAGS=$CXXFLAGS
   3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   3756 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   3757 if test "${ac_cv_prog_cxx_g+set}" = set; then :
   3758   $as_echo_n "(cached) " >&6
   3759 else
   3760   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3761    ac_cxx_werror_flag=yes
   3762    ac_cv_prog_cxx_g=no
   3763    CXXFLAGS="-g"
   3764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3765 /* end confdefs.h.  */
   3766 
   3767 int
   3768 main ()
   3769 {
   3770 
   3771   ;
   3772   return 0;
   3773 }
   3774 _ACEOF
   3775 if ac_fn_cxx_try_compile "$LINENO"; then :
   3776   ac_cv_prog_cxx_g=yes
   3777 else
   3778   CXXFLAGS=""
   3779       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3780 /* end confdefs.h.  */
   3781 
   3782 int
   3783 main ()
   3784 {
   3785 
   3786   ;
   3787   return 0;
   3788 }
   3789 _ACEOF
   3790 if ac_fn_cxx_try_compile "$LINENO"; then :
   3791 
   3792 else
   3793   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3794 	 CXXFLAGS="-g"
   3795 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3796 /* end confdefs.h.  */
   3797 
   3798 int
   3799 main ()
   3800 {
   3801 
   3802   ;
   3803   return 0;
   3804 }
   3805 _ACEOF
   3806 if ac_fn_cxx_try_compile "$LINENO"; then :
   3807   ac_cv_prog_cxx_g=yes
   3808 fi
   3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3810 fi
   3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3812 fi
   3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3814    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3815 fi
   3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   3817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   3818 if test "$ac_test_CXXFLAGS" = set; then
   3819   CXXFLAGS=$ac_save_CXXFLAGS
   3820 elif test $ac_cv_prog_cxx_g = yes; then
   3821   if test "$GXX" = yes; then
   3822     CXXFLAGS="-g -O2"
   3823   else
   3824     CXXFLAGS="-g"
   3825   fi
   3826 else
   3827   if test "$GXX" = yes; then
   3828     CXXFLAGS="-O2"
   3829   else
   3830     CXXFLAGS=
   3831   fi
   3832 fi
   3833 ac_ext=c
   3834 ac_cpp='$CPP $CPPFLAGS'
   3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3838 
   3839 
   3840 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
   3841 # The release mode use is the default one for autoconf
   3842 if test "$GCC" = yes; then
   3843     if test "$CFLAGS" = ""; then
   3844         if test "$ENABLE_DEBUG" = 1; then
   3845             CFLAGS=-g
   3846         fi
   3847         if test "$ENABLE_RELEASE" = 1; then
   3848             CFLAGS="$CFLAGS -O2"
   3849         fi
   3850     fi
   3851     if test "$CXXFLAGS" = ""; then
   3852         if test "$ENABLE_DEBUG" = 1; then
   3853             CXXFLAGS=-g
   3854         fi
   3855         if test "$ENABLE_RELEASE" = 1; then
   3856             CXXFLAGS="$CXXFLAGS -O2"
   3857         fi
   3858     fi
   3859 fi
   3860 
   3861 ac_ext=c
   3862 ac_cpp='$CPP $CPPFLAGS'
   3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3867 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3868 # On Suns, sometimes $CPP names a directory.
   3869 if test -n "$CPP" && test -d "$CPP"; then
   3870   CPP=
   3871 fi
   3872 if test -z "$CPP"; then
   3873   if test "${ac_cv_prog_CPP+set}" = set; then :
   3874   $as_echo_n "(cached) " >&6
   3875 else
   3876       # Double quotes because CPP needs to be expanded
   3877     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3878     do
   3879       ac_preproc_ok=false
   3880 for ac_c_preproc_warn_flag in '' yes
   3881 do
   3882   # Use a header file that comes with gcc, so configuring glibc
   3883   # with a fresh cross-compiler works.
   3884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3885   # <limits.h> exists even on freestanding compilers.
   3886   # On the NeXT, cc -E runs the code through the compiler's parser,
   3887   # not just through cpp. "Syntax error" is here to catch this case.
   3888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3889 /* end confdefs.h.  */
   3890 #ifdef __STDC__
   3891 # include <limits.h>
   3892 #else
   3893 # include <assert.h>
   3894 #endif
   3895 		     Syntax error
   3896 _ACEOF
   3897 if ac_fn_c_try_cpp "$LINENO"; then :
   3898 
   3899 else
   3900   # Broken: fails on valid input.
   3901 continue
   3902 fi
   3903 rm -f conftest.err conftest.i conftest.$ac_ext
   3904 
   3905   # OK, works on sane cases.  Now check whether nonexistent headers
   3906   # can be detected and how.
   3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3908 /* end confdefs.h.  */
   3909 #include <ac_nonexistent.h>
   3910 _ACEOF
   3911 if ac_fn_c_try_cpp "$LINENO"; then :
   3912   # Broken: success on invalid input.
   3913 continue
   3914 else
   3915   # Passes both tests.
   3916 ac_preproc_ok=:
   3917 break
   3918 fi
   3919 rm -f conftest.err conftest.i conftest.$ac_ext
   3920 
   3921 done
   3922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3923 rm -f conftest.i conftest.err conftest.$ac_ext
   3924 if $ac_preproc_ok; then :
   3925   break
   3926 fi
   3927 
   3928     done
   3929     ac_cv_prog_CPP=$CPP
   3930 
   3931 fi
   3932   CPP=$ac_cv_prog_CPP
   3933 else
   3934   ac_cv_prog_CPP=$CPP
   3935 fi
   3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3937 $as_echo "$CPP" >&6; }
   3938 ac_preproc_ok=false
   3939 for ac_c_preproc_warn_flag in '' yes
   3940 do
   3941   # Use a header file that comes with gcc, so configuring glibc
   3942   # with a fresh cross-compiler works.
   3943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3944   # <limits.h> exists even on freestanding compilers.
   3945   # On the NeXT, cc -E runs the code through the compiler's parser,
   3946   # not just through cpp. "Syntax error" is here to catch this case.
   3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3948 /* end confdefs.h.  */
   3949 #ifdef __STDC__
   3950 # include <limits.h>
   3951 #else
   3952 # include <assert.h>
   3953 #endif
   3954 		     Syntax error
   3955 _ACEOF
   3956 if ac_fn_c_try_cpp "$LINENO"; then :
   3957 
   3958 else
   3959   # Broken: fails on valid input.
   3960 continue
   3961 fi
   3962 rm -f conftest.err conftest.i conftest.$ac_ext
   3963 
   3964   # OK, works on sane cases.  Now check whether nonexistent headers
   3965   # can be detected and how.
   3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3967 /* end confdefs.h.  */
   3968 #include <ac_nonexistent.h>
   3969 _ACEOF
   3970 if ac_fn_c_try_cpp "$LINENO"; then :
   3971   # Broken: success on invalid input.
   3972 continue
   3973 else
   3974   # Passes both tests.
   3975 ac_preproc_ok=:
   3976 break
   3977 fi
   3978 rm -f conftest.err conftest.i conftest.$ac_ext
   3979 
   3980 done
   3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3982 rm -f conftest.i conftest.err conftest.$ac_ext
   3983 if $ac_preproc_ok; then :
   3984 
   3985 else
   3986   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3988 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3989 See \`config.log' for more details" "$LINENO" 5; }
   3990 fi
   3991 
   3992 ac_ext=c
   3993 ac_cpp='$CPP $CPPFLAGS'
   3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3997 
   3998 
   3999 # Find a good install program.  We prefer a C program (faster),
   4000 # so one script is as good as another.  But avoid the broken or
   4001 # incompatible versions:
   4002 # SysV /etc/install, /usr/sbin/install
   4003 # SunOS /usr/etc/install
   4004 # IRIX /sbin/install
   4005 # AIX /bin/install
   4006 # AmigaOS /C/install, which installs bootblocks on floppy discs
   4007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   4008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   4009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   4010 # OS/2's system install, which has a completely different semantic
   4011 # ./install, which can be erroneously created by make from ./install.sh.
   4012 # Reject install programs that cannot install multiple files.
   4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   4014 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   4015 if test -z "$INSTALL"; then
   4016 if test "${ac_cv_path_install+set}" = set; then :
   4017   $as_echo_n "(cached) " >&6
   4018 else
   4019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4020 for as_dir in $PATH
   4021 do
   4022   IFS=$as_save_IFS
   4023   test -z "$as_dir" && as_dir=.
   4024     # Account for people who put trailing slashes in PATH elements.
   4025 case $as_dir/ in #((
   4026   ./ | .// | /[cC]/* | \
   4027   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   4028   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   4029   /usr/ucb/* ) ;;
   4030   *)
   4031     # OSF1 and SCO ODT 3.0 have their own names for install.
   4032     # Don't use installbsd from OSF since it installs stuff as root
   4033     # by default.
   4034     for ac_prog in ginstall scoinst install; do
   4035       for ac_exec_ext in '' $ac_executable_extensions; do
   4036 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   4037 	  if test $ac_prog = install &&
   4038 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4039 	    # AIX install.  It has an incompatible calling convention.
   4040 	    :
   4041 	  elif test $ac_prog = install &&
   4042 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4043 	    # program-specific install script used by HP pwplus--don't use.
   4044 	    :
   4045 	  else
   4046 	    rm -rf conftest.one conftest.two conftest.dir
   4047 	    echo one > conftest.one
   4048 	    echo two > conftest.two
   4049 	    mkdir conftest.dir
   4050 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   4051 	      test -s conftest.one && test -s conftest.two &&
   4052 	      test -s conftest.dir/conftest.one &&
   4053 	      test -s conftest.dir/conftest.two
   4054 	    then
   4055 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   4056 	      break 3
   4057 	    fi
   4058 	  fi
   4059 	fi
   4060       done
   4061     done
   4062     ;;
   4063 esac
   4064 
   4065   done
   4066 IFS=$as_save_IFS
   4067 
   4068 rm -rf conftest.one conftest.two conftest.dir
   4069 
   4070 fi
   4071   if test "${ac_cv_path_install+set}" = set; then
   4072     INSTALL=$ac_cv_path_install
   4073   else
   4074     # As a last resort, use the slow shell script.  Don't cache a
   4075     # value for INSTALL within a source directory, because that will
   4076     # break other packages using the cache if that directory is
   4077     # removed, or if the value is a relative name.
   4078     INSTALL=$ac_install_sh
   4079   fi
   4080 fi
   4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   4082 $as_echo "$INSTALL" >&6; }
   4083 
   4084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   4085 # It thinks the first close brace ends the variable substitution.
   4086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   4087 
   4088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   4089 
   4090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   4091 
   4092 
   4093 
   4094 
   4095 ac_ext=cpp
   4096 ac_cpp='$CXXCPP $CPPFLAGS'
   4097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4100 
   4101 
   4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4103 /* end confdefs.h.  */
   4104 
   4105 int
   4106 main ()
   4107 {
   4108 
   4109   ;
   4110   return 0;
   4111 }
   4112 _ACEOF
   4113 if ac_fn_cxx_try_link "$LINENO"; then :
   4114 
   4115 fi
   4116 rm -f core conftest.err conftest.$ac_objext \
   4117     conftest$ac_exeext conftest.$ac_ext
   4118 ac_ext=c
   4119 ac_cpp='$CPP $CPPFLAGS'
   4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4123 
   4124 
   4125 # make sure install is relative to srcdir - if a script
   4126 if test "$srcdir" = "."; then
   4127   # If srcdir isn't just ., then (srcdir) is already prepended.
   4128   if test "${ac_install_sh}" = "${INSTALL}"; then
   4129    INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
   4130   fi
   4131 fi
   4132 
   4133 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
   4134 #AC_CHECK_PROG(STRIP, strip, strip, true)
   4135 
   4136 # Check for the platform make
   4137 for ac_prog in gmake gnumake
   4138 do
   4139   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4140 set dummy $ac_prog; ac_word=$2
   4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4142 $as_echo_n "checking for $ac_word... " >&6; }
   4143 if test "${ac_cv_path_U_MAKE+set}" = set; then :
   4144   $as_echo_n "(cached) " >&6
   4145 else
   4146   case $U_MAKE in
   4147   [\\/]* | ?:[\\/]*)
   4148   ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
   4149   ;;
   4150   *)
   4151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4152 for as_dir in $PATH
   4153 do
   4154   IFS=$as_save_IFS
   4155   test -z "$as_dir" && as_dir=.
   4156     for ac_exec_ext in '' $ac_executable_extensions; do
   4157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4158     ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext"
   4159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4160     break 2
   4161   fi
   4162 done
   4163   done
   4164 IFS=$as_save_IFS
   4165 
   4166   ;;
   4167 esac
   4168 fi
   4169 U_MAKE=$ac_cv_path_U_MAKE
   4170 if test -n "$U_MAKE"; then
   4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
   4172 $as_echo "$U_MAKE" >&6; }
   4173 else
   4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4175 $as_echo "no" >&6; }
   4176 fi
   4177 
   4178 
   4179   test -n "$U_MAKE" && break
   4180 done
   4181 test -n "$U_MAKE" || U_MAKE="make"
   4182 
   4183 
   4184 
   4185 
   4186 
   4187 # Check whether --with-cross-build was given.
   4188 if test "${with_cross_build+set}" = set; then :
   4189   withval=$with_cross_build; cross_buildroot="${withval}"
   4190 else
   4191   cross_buildroot=""
   4192 fi
   4193 
   4194 
   4195 if test "X$cross_buildroot" = "X"; then
   4196     if test "$cross_compiling" = "yes"; then
   4197         as_fn_error $? "Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5
   4198 	    fi
   4199 else
   4200     if test -f "${cross_buildroot}/config/icucross.mk"; then
   4201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
   4202 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
   4203     else
   4204         if test -d "${cross_buildroot}"; then
   4205             as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
   4206         else
   4207             as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
   4208         fi
   4209     fi
   4210 fi
   4211 
   4212 
   4213 # Check for doxygen to generate documentation
   4214 # Extract the first word of "doxygen", so it can be a program name with args.
   4215 set dummy doxygen; ac_word=$2
   4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4217 $as_echo_n "checking for $ac_word... " >&6; }
   4218 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
   4219   $as_echo_n "(cached) " >&6
   4220 else
   4221   case $DOXYGEN in
   4222   [\\/]* | ?:[\\/]*)
   4223   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   4224   ;;
   4225   *)
   4226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4227 as_dummy="$PATH:/usr/local/bin:/usr/bin"
   4228 for as_dir in $as_dummy
   4229 do
   4230   IFS=$as_save_IFS
   4231   test -z "$as_dir" && as_dir=.
   4232     for ac_exec_ext in '' $ac_executable_extensions; do
   4233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4234     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   4235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4236     break 2
   4237   fi
   4238 done
   4239   done
   4240 IFS=$as_save_IFS
   4241 
   4242   ;;
   4243 esac
   4244 fi
   4245 DOXYGEN=$ac_cv_path_DOXYGEN
   4246 if test -n "$DOXYGEN"; then
   4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   4248 $as_echo "$DOXYGEN" >&6; }
   4249 else
   4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4251 $as_echo "no" >&6; }
   4252 fi
   4253 
   4254 
   4255 
   4256 # Check that the linker is usable
   4257 
   4258 case "${host}" in
   4259     *-*-cygwin*|*-*-mingw*)
   4260         if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
   4261             as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect.
   4262                   Please follow the directions in ICU's readme." "$LINENO" 5
   4263         fi;;
   4264     *);;
   4265 esac
   4266 
   4267 # Determine the executable suffix
   4268 # We don't use AC_EXEEXT because some compilers output separate debugging
   4269 # files, which confuses the AC_EXEEXT macro.
   4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
   4271 $as_echo_n "checking checking for executable suffix... " >&6; }
   4272 case "${host}" in
   4273     *-*-cygwin*|*-*-mingw*)  EXEEXT=.exe ;;
   4274     *)      EXEEXT="" ;;
   4275 esac
   4276 ac_exeext=$EXEEXT
   4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
   4278 $as_echo "$EXEEXT" >&6; }
   4279 
   4280 
   4281 # Determine how strict we want to be when compiling
   4282 
   4283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
   4284 $as_echo_n "checking whether strict compiling is on... " >&6; }
   4285     # Check whether --enable-strict was given.
   4286 if test "${enable_strict+set}" = set; then :
   4287   enableval=$enable_strict;
   4288         if test "$enableval" = no
   4289         then
   4290             ac_use_strict_options=no
   4291         else
   4292             ac_use_strict_options=yes
   4293         fi
   4294 
   4295 else
   4296   ac_use_strict_options=yes
   4297 fi
   4298 
   4299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
   4300 $as_echo "$ac_use_strict_options" >&6; }
   4301 
   4302     if test "$ac_use_strict_options" = yes
   4303     then
   4304         if test "$GCC" = yes
   4305         then
   4306             CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
   4307             case "${host}" in
   4308             *-*-solaris*)
   4309                 CFLAGS="$CFLAGS -D__STDC__=0";;
   4310             esac
   4311         else
   4312             case "${host}" in
   4313             *-*-cygwin)
   4314                 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
   4315                 then
   4316                     CFLAGS="$CFLAGS /W4"
   4317                 fi
   4318             esac
   4319         fi
   4320         if test "$GXX" = yes
   4321         then
   4322             CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
   4323             case "${host}" in
   4324             *-*-solaris*)
   4325                 CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
   4326             esac
   4327         else
   4328             case "${host}" in
   4329             *-*-cygwin)
   4330                 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
   4331                 then
   4332                     CXXFLAGS="$CXXFLAGS /W4"
   4333                 fi
   4334             esac
   4335         fi
   4336     fi
   4337 
   4338 
   4339 # Check if we can build and use 64-bit libraries
   4340 
   4341 
   4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4343 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4344 if test "${ac_cv_path_GREP+set}" = set; then :
   4345   $as_echo_n "(cached) " >&6
   4346 else
   4347   if test -z "$GREP"; then
   4348   ac_path_GREP_found=false
   4349   # Loop through the user's path and test for each of PROGNAME-LIST
   4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4352 do
   4353   IFS=$as_save_IFS
   4354   test -z "$as_dir" && as_dir=.
   4355     for ac_prog in grep ggrep; do
   4356     for ac_exec_ext in '' $ac_executable_extensions; do
   4357       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4358       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   4359 # Check for GNU ac_path_GREP and select it if it is found.
   4360   # Check for GNU $ac_path_GREP
   4361 case `"$ac_path_GREP" --version 2>&1` in
   4362 *GNU*)
   4363   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4364 *)
   4365   ac_count=0
   4366   $as_echo_n 0123456789 >"conftest.in"
   4367   while :
   4368   do
   4369     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4370     mv "conftest.tmp" "conftest.in"
   4371     cp "conftest.in" "conftest.nl"
   4372     $as_echo 'GREP' >> "conftest.nl"
   4373     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4375     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4376     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4377       # Best one so far, save it but keep looking for a better one
   4378       ac_cv_path_GREP="$ac_path_GREP"
   4379       ac_path_GREP_max=$ac_count
   4380     fi
   4381     # 10*(2^10) chars as input seems more than enough
   4382     test $ac_count -gt 10 && break
   4383   done
   4384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4385 esac
   4386 
   4387       $ac_path_GREP_found && break 3
   4388     done
   4389   done
   4390   done
   4391 IFS=$as_save_IFS
   4392   if test -z "$ac_cv_path_GREP"; then
   4393     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4394   fi
   4395 else
   4396   ac_cv_path_GREP=$GREP
   4397 fi
   4398 
   4399 fi
   4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4401 $as_echo "$ac_cv_path_GREP" >&6; }
   4402  GREP="$ac_cv_path_GREP"
   4403 
   4404 
   4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4406 $as_echo_n "checking for egrep... " >&6; }
   4407 if test "${ac_cv_path_EGREP+set}" = set; then :
   4408   $as_echo_n "(cached) " >&6
   4409 else
   4410   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4411    then ac_cv_path_EGREP="$GREP -E"
   4412    else
   4413      if test -z "$EGREP"; then
   4414   ac_path_EGREP_found=false
   4415   # Loop through the user's path and test for each of PROGNAME-LIST
   4416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4418 do
   4419   IFS=$as_save_IFS
   4420   test -z "$as_dir" && as_dir=.
   4421     for ac_prog in egrep; do
   4422     for ac_exec_ext in '' $ac_executable_extensions; do
   4423       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4424       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4425 # Check for GNU ac_path_EGREP and select it if it is found.
   4426   # Check for GNU $ac_path_EGREP
   4427 case `"$ac_path_EGREP" --version 2>&1` in
   4428 *GNU*)
   4429   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4430 *)
   4431   ac_count=0
   4432   $as_echo_n 0123456789 >"conftest.in"
   4433   while :
   4434   do
   4435     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4436     mv "conftest.tmp" "conftest.in"
   4437     cp "conftest.in" "conftest.nl"
   4438     $as_echo 'EGREP' >> "conftest.nl"
   4439     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4440     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4441     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4442     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4443       # Best one so far, save it but keep looking for a better one
   4444       ac_cv_path_EGREP="$ac_path_EGREP"
   4445       ac_path_EGREP_max=$ac_count
   4446     fi
   4447     # 10*(2^10) chars as input seems more than enough
   4448     test $ac_count -gt 10 && break
   4449   done
   4450   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4451 esac
   4452 
   4453       $ac_path_EGREP_found && break 3
   4454     done
   4455   done
   4456   done
   4457 IFS=$as_save_IFS
   4458   if test -z "$ac_cv_path_EGREP"; then
   4459     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4460   fi
   4461 else
   4462   ac_cv_path_EGREP=$EGREP
   4463 fi
   4464 
   4465    fi
   4466 fi
   4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4468 $as_echo "$ac_cv_path_EGREP" >&6; }
   4469  EGREP="$ac_cv_path_EGREP"
   4470 
   4471 
   4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4473 $as_echo_n "checking for ANSI C header files... " >&6; }
   4474 if test "${ac_cv_header_stdc+set}" = set; then :
   4475   $as_echo_n "(cached) " >&6
   4476 else
   4477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4478 /* end confdefs.h.  */
   4479 #include <stdlib.h>
   4480 #include <stdarg.h>
   4481 #include <string.h>
   4482 #include <float.h>
   4483 
   4484 int
   4485 main ()
   4486 {
   4487 
   4488   ;
   4489   return 0;
   4490 }
   4491 _ACEOF
   4492 if ac_fn_c_try_compile "$LINENO"; then :
   4493   ac_cv_header_stdc=yes
   4494 else
   4495   ac_cv_header_stdc=no
   4496 fi
   4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4498 
   4499 if test $ac_cv_header_stdc = yes; then
   4500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4502 /* end confdefs.h.  */
   4503 #include <string.h>
   4504 
   4505 _ACEOF
   4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4507   $EGREP "memchr" >/dev/null 2>&1; then :
   4508 
   4509 else
   4510   ac_cv_header_stdc=no
   4511 fi
   4512 rm -f conftest*
   4513 
   4514 fi
   4515 
   4516 if test $ac_cv_header_stdc = yes; then
   4517   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4519 /* end confdefs.h.  */
   4520 #include <stdlib.h>
   4521 
   4522 _ACEOF
   4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4524   $EGREP "free" >/dev/null 2>&1; then :
   4525 
   4526 else
   4527   ac_cv_header_stdc=no
   4528 fi
   4529 rm -f conftest*
   4530 
   4531 fi
   4532 
   4533 if test $ac_cv_header_stdc = yes; then
   4534   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4535   if test "$cross_compiling" = yes; then :
   4536   :
   4537 else
   4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4539 /* end confdefs.h.  */
   4540 #include <ctype.h>
   4541 #include <stdlib.h>
   4542 #if ((' ' & 0x0FF) == 0x020)
   4543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4545 #else
   4546 # define ISLOWER(c) \
   4547 		   (('a' <= (c) && (c) <= 'i') \
   4548 		     || ('j' <= (c) && (c) <= 'r') \
   4549 		     || ('s' <= (c) && (c) <= 'z'))
   4550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4551 #endif
   4552 
   4553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4554 int
   4555 main ()
   4556 {
   4557   int i;
   4558   for (i = 0; i < 256; i++)
   4559     if (XOR (islower (i), ISLOWER (i))
   4560 	|| toupper (i) != TOUPPER (i))
   4561       return 2;
   4562   return 0;
   4563 }
   4564 _ACEOF
   4565 if ac_fn_c_try_run "$LINENO"; then :
   4566 
   4567 else
   4568   ac_cv_header_stdc=no
   4569 fi
   4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4571   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4572 fi
   4573 
   4574 fi
   4575 fi
   4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4577 $as_echo "$ac_cv_header_stdc" >&6; }
   4578 if test $ac_cv_header_stdc = yes; then
   4579 
   4580 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4581 
   4582 fi
   4583 
   4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4586 		  inttypes.h stdint.h unistd.h
   4587 do :
   4588   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4590 "
   4591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4592   cat >>confdefs.h <<_ACEOF
   4593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4594 _ACEOF
   4595 
   4596 fi
   4597 
   4598 done
   4599 
   4600 
   4601 
   4602     BITS_REQ=nochange
   4603     ENABLE_64BIT_LIBS=unknown
   4604     ## revisit this for cross-compile.
   4605 
   4606     # Check whether --enable-64bit-libs was given.
   4607 if test "${enable_64bit_libs+set}" = set; then :
   4608   enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
   4609          case "${enableval}" in
   4610             no|false|32) with_library_bits=32;  ;;
   4611             yes|true|64) with_library_bits=64else32 ;;
   4612             nochange) with_library_bits=nochange; ;;
   4613             *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
   4614             esac
   4615 fi
   4616 
   4617 
   4618 
   4619 
   4620 # Check whether --with-library-bits was given.
   4621 if test "${with_library_bits+set}" = set; then :
   4622   withval=$with_library_bits; case "${withval}" in
   4623             ""|nochange) BITS_REQ=$withval ;;
   4624             32|64|64else32) BITS_REQ=$withval ;;
   4625             *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
   4626             esac
   4627 fi
   4628 
   4629 
   4630     # don't use these for cross compiling
   4631     if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
   4632         as_fn_error $? "Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
   4633     fi
   4634     # The cast to long int works around a bug in the HP C Compiler
   4635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4637 # This bug is HP SR number 8606223364.
   4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   4639 $as_echo_n "checking size of void *... " >&6; }
   4640 if test "${ac_cv_sizeof_void_p+set}" = set; then :
   4641   $as_echo_n "(cached) " >&6
   4642 else
   4643   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   4644 
   4645 else
   4646   if test "$ac_cv_type_void_p" = yes; then
   4647      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4649 as_fn_error 77 "cannot compute sizeof (void *)
   4650 See \`config.log' for more details" "$LINENO" 5; }
   4651    else
   4652      ac_cv_sizeof_void_p=0
   4653    fi
   4654 fi
   4655 
   4656 fi
   4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   4658 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   4659 
   4660 
   4661 
   4662 cat >>confdefs.h <<_ACEOF
   4663 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   4664 _ACEOF
   4665 
   4666 
   4667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
   4668 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
   4669     case $ac_cv_sizeof_void_p in
   4670         8) DEFAULT_64BIT=yes ;;
   4671         4) DEFAULT_64BIT=no ;;
   4672         *) DEFAULT_64BIT=unknown
   4673     esac
   4674     BITS_GOT=unknown
   4675 
   4676     # 'OK' here means, we can exit any further checking, everything's copa
   4677     BITS_OK=yes
   4678 
   4679     # do we need to check for buildable/runnable 32 or 64 bit?
   4680     BITS_CHECK_32=no
   4681     BITS_CHECK_64=no
   4682 
   4683     # later, can we run the 32/64 bit binaries so made?
   4684     BITS_RUN_32=no
   4685     BITS_RUN_64=no
   4686 
   4687     if test "$DEFAULT_64BIT" = "yes"; then
   4688         # we get 64 bits by default.
   4689         BITS_GOT=64
   4690         case "$BITS_REQ" in
   4691             32)
   4692                 # need to look for 32 bit support.
   4693                 BITS_CHECK_32=yes
   4694                 # not copa.
   4695                 BITS_OK=no;;
   4696             # everyone else is happy.
   4697             nochange) ;;
   4698             *) ;;
   4699         esac
   4700     elif test "$DEFAULT_64BIT" = "no"; then
   4701         # not 64 bit by default.
   4702         BITS_GOT=32
   4703         case "$BITS_REQ" in
   4704             64|64else32)
   4705                 BITS_CHECK_64=yes
   4706                 #BITS_CHECK_32=yes
   4707                 BITS_OK=no;;
   4708             nochange) ;;
   4709             *) ;;
   4710         esac
   4711     elif test "$DEFAULT_64BIT" = "unknown"; then
   4712         # cross compiling.
   4713         BITS_GOT=unknown
   4714         case "$BITS_REQ" in
   4715             64|64else32) BITS_OK=no
   4716             BITS_CHECK_32=yes
   4717             BITS_CHECK_64=yes ;;
   4718             32) BITS_OK=no;;
   4719             nochange) ;;
   4720             *) ;;
   4721         esac
   4722     fi
   4723 
   4724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
   4725 $as_echo "$DEFAULT_64BIT" >&6; };
   4726 
   4727     if test "$BITS_OK" != "yes"; then
   4728         # not copa. back these up.
   4729         CFLAGS_OLD="${CFLAGS}"
   4730         CXXFLAGS_OLD="${CXXFLAGS}"
   4731         LDFLAGS_OLD="${LDFLAGS}"
   4732         ARFLAGS_OLD="${ARFLAGS}"
   4733 
   4734         CFLAGS_32="${CFLAGS}"
   4735         CXXFLAGS_32="${CXXFLAGS}"
   4736         LDFLAGS_32="${LDFLAGS}"
   4737         ARFLAGS_32="${ARFLAGS}"
   4738 
   4739         CFLAGS_64="${CFLAGS}"
   4740         CXXFLAGS_64="${CXXFLAGS}"
   4741         LDFLAGS_64="${LDFLAGS}"
   4742         ARFLAGS_64="${ARFLAGS}"
   4743 
   4744         CAN_BUILD_64=unknown
   4745         CAN_BUILD_32=unknown
   4746         # These results can't be cached because is sets compiler flags.
   4747         if test "$BITS_CHECK_64" = "yes"; then
   4748             { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
   4749 $as_echo_n "checking how to build 64-bit executables... " >&6; }
   4750             CAN_BUILD_64=no
   4751             ####
   4752             # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
   4753             #  Note, we don't have to actually check if the options work- we'll try them before using them.
   4754             #  So, only try actually testing the options, if you are trying to decide between multiple options.
   4755             # On exit from the following clauses:
   4756             # if CAN_BUILD_64=yes:
   4757             #    *FLAGS are assumed to contain the right settings for 64bit
   4758             # else if CAN_BUILD_64=no: (default)
   4759             #    *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
   4760 
   4761             if test "$GCC" = yes; then
   4762                 CFLAGS="${CFLAGS} -m64"
   4763                 CXXFLAGS="${CXXFLAGS} -m64"
   4764                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4765 /* end confdefs.h.  */
   4766 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4767 _ACEOF
   4768 if ac_fn_c_try_compile "$LINENO"; then :
   4769   CAN_BUILD_64=yes
   4770 else
   4771   CAN_BUILD_64=no
   4772 fi
   4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4774             else
   4775                 case "${host}" in
   4776                 sparc*-*-solaris*)
   4777                     # 1. try -m64
   4778                     CFLAGS="${CFLAGS} -m64"
   4779                     CXXFLAGS="${CXXFLAGS} -m64"
   4780                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4781 /* end confdefs.h.  */
   4782 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4783 _ACEOF
   4784 if ac_fn_c_try_compile "$LINENO"; then :
   4785   CAN_BUILD_64=yes
   4786 else
   4787   CAN_BUILD_64=no
   4788 fi
   4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4790                     if test "$CAN_BUILD_64" != yes; then
   4791                         # Nope. back out changes.
   4792                         CFLAGS="${CFLAGS_OLD}"
   4793                         CXXFLAGS="${CFLAGS_OLD}"
   4794                         # 2. try xarch=v9 [deprecated]
   4795                         ## TODO: cross compile: the following won't work.
   4796                         SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
   4797                         SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
   4798                         # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
   4799                         if test -z "$SOL64" && test -n "$SPARCV9"; then
   4800                             CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
   4801                             CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
   4802                             LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
   4803                             CAN_BUILD_64=yes
   4804                         fi
   4805                     fi
   4806                     ;;
   4807                 i386-*-solaris*)
   4808                     # 1. try -m64
   4809                     CFLAGS="${CFLAGS} -m64"
   4810                     CXXFLAGS="${CXXFLAGS} -m64"
   4811                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4812 /* end confdefs.h.  */
   4813 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4814 _ACEOF
   4815 if ac_fn_c_try_compile "$LINENO"; then :
   4816   CAN_BUILD_64=yes
   4817 else
   4818   CAN_BUILD_64=no
   4819 fi
   4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4821                     if test "$CAN_BUILD_64" != yes; then
   4822                         # Nope. back out changes.
   4823                         CFLAGS="${CFLAGS_OLD}"
   4824                         CXXFLAGS="${CXXFLAGS_OLD}"
   4825                         # 2. try the older compiler option
   4826                         ## TODO: cross compile problem
   4827                         SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
   4828                         if test -z "$SOL64" && test -n "$AMD64"; then
   4829                             CFLAGS="${CFLAGS} -xtarget=generic64"
   4830                             CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
   4831                             CAN_BUILD_64=yes
   4832                         fi
   4833                     fi
   4834                     ;;
   4835                 ia64-*-linux*)
   4836                     # check for ecc/ecpc compiler support
   4837                     ## TODO: cross compiler problem
   4838                     if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
   4839                         if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
   4840                             CAN_BUILD_64=yes
   4841                         fi
   4842                     fi
   4843                     ;;
   4844                 *-*-cygwin)
   4845                     # vcvarsamd64.bat should have been used to enable 64-bit builds.
   4846                     # We only do this check to display the correct answer.
   4847                     ## TODO: cross compiler problem
   4848                     if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
   4849                         CAN_BUILD_64=yes
   4850                     fi
   4851                     ;;
   4852                 *-*-aix*|powerpc64-*-linux*)
   4853                     CFLAGS="${CFLAGS} -q64"
   4854                     CXXFLAGS="${CXXFLAGS} -q64"
   4855                     LDFLAGS="${LDFLAGS} -q64"
   4856                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4857 /* end confdefs.h.  */
   4858 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4859 _ACEOF
   4860 if ac_fn_c_try_compile "$LINENO"; then :
   4861   CAN_BUILD_64=yes
   4862 else
   4863   CAN_BUILD_64=no
   4864 fi
   4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4866                     if test "$CAN_BUILD_64" = yes; then
   4867                         # worked- set other options.
   4868                         case "${host}" in
   4869                         *-*-aix*)
   4870                             # tell AIX what executable mode to use.
   4871                             ARFLAGS="${ARFLAGS} -X64"
   4872                         esac
   4873                     fi
   4874                     ;;
   4875                 *-*-hpux*)
   4876                     # First we try the newer +DD64, if that doesn't work,
   4877                     # try other options.
   4878 
   4879                     CFLAGS="${CFLAGS} +DD64"
   4880                     CXXFLAGS="${CXXFLAGS} +DD64"
   4881                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4882 /* end confdefs.h.  */
   4883 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4884 _ACEOF
   4885 if ac_fn_c_try_compile "$LINENO"; then :
   4886   CAN_BUILD_64=yes
   4887 else
   4888   CAN_BUILD_64=no
   4889 fi
   4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4891                     if test "$CAN_BUILD_64" != yes; then
   4892                         # reset
   4893                         CFLAGS="${CFLAGS_OLD}"
   4894                         CXXFLAGS="${CXXFLAGS_OLD}"
   4895                         # append
   4896                         CFLAGS="${CFLAGS} +DA2.0W"
   4897                         CXXFLAGS="${CXXFLAGS} +DA2.0W"
   4898                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4899 /* end confdefs.h.  */
   4900 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4901 _ACEOF
   4902 if ac_fn_c_try_compile "$LINENO"; then :
   4903   CAN_BUILD_64=yes
   4904 else
   4905   CAN_BUILD_64=no
   4906 fi
   4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4908                     fi
   4909                     ;;
   4910                 *-*ibm-openedition*|*-*-os390*)
   4911                     CFLAGS="${CFLAGS} -Wc,lp64"
   4912                     CXXFLAGS="${CXXFLAGS} -Wc,lp64"
   4913                     LDFLAGS="${LDFLAGS} -Wl,lp64"
   4914                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4915 /* end confdefs.h.  */
   4916 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4917 _ACEOF
   4918 if ac_fn_c_try_compile "$LINENO"; then :
   4919   CAN_BUILD_64=yes
   4920 else
   4921   CAN_BUILD_64=no
   4922 fi
   4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4924                     ;;
   4925                 *)
   4926                     # unknown platform.
   4927                     ;;
   4928                 esac
   4929             fi
   4930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
   4931 $as_echo "$CAN_BUILD_64" >&6; }
   4932             if test "$CAN_BUILD_64" = yes; then
   4933                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
   4934 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
   4935                 if test "$cross_compiling" = yes; then :
   4936   BITS_RUN_64=unknown
   4937 else
   4938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4939 /* end confdefs.h.  */
   4940 int main(void) {return (sizeof(void*)*8==64)?0:1;}
   4941 _ACEOF
   4942 if ac_fn_c_try_run "$LINENO"; then :
   4943   BITS_RUN_64=yes
   4944 else
   4945   BITS_RUN_64=no
   4946 fi
   4947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4948   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4949 fi
   4950 
   4951                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
   4952 $as_echo "$BITS_RUN_64" >&6; };
   4953 
   4954                 CFLAGS_64="${CFLAGS}"
   4955                 CXXFLAGS_64="${CXXFLAGS}"
   4956                 LDFLAGS_64="${LDFLAGS}"
   4957                 ARFLAGS_64="${ARFLAGS}"
   4958             fi
   4959             # put it back.
   4960             CFLAGS="${CFLAGS_OLD}"
   4961             CXXFLAGS="${CXXFLAGS_OLD}"
   4962             LDFLAGS="${LDFLAGS_OLD}"
   4963             ARFLAGS="${ARFLAGS_OLD}"
   4964         fi
   4965         if test "$BITS_CHECK_32" = "yes"; then
   4966             # see comment under 'if BITS_CHECK_64', above.
   4967             { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
   4968 $as_echo_n "checking how to build 32-bit executables... " >&6; }
   4969             if test "$GCC" = yes; then
   4970                 CFLAGS="${CFLAGS} -m32"
   4971                 CXXFLAGS="${CXXFLAGS} -m32"
   4972                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4973 /* end confdefs.h.  */
   4974 int main(void) {return (sizeof(void*)*8==32)?0:1;}
   4975 _ACEOF
   4976 if ac_fn_c_try_compile "$LINENO"; then :
   4977   CAN_BUILD_32=yes
   4978 else
   4979   CAN_BUILD_32=no
   4980 fi
   4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4982             fi
   4983             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
   4984 $as_echo "$CAN_BUILD_32" >&6; }
   4985             if test "$CAN_BUILD_32" = yes; then
   4986                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
   4987 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
   4988                 if test "$cross_compiling" = yes; then :
   4989   BITS_RUN_32=unknown
   4990 else
   4991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4992 /* end confdefs.h.  */
   4993 int main(void) {return (sizeof(void*)*8==32)?0:1;}
   4994 _ACEOF
   4995 if ac_fn_c_try_run "$LINENO"; then :
   4996   BITS_RUN_32=yes
   4997 else
   4998   BITS_RUN_32=no
   4999 fi
   5000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5001   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5002 fi
   5003 
   5004                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
   5005 $as_echo "$BITS_RUN_32" >&6; };
   5006                 CFLAGS_32="${CFLAGS}"
   5007                 CXXFLAGS_32="${CXXFLAGS}"
   5008                 LDFLAGS_32="${LDFLAGS}"
   5009                 ARFLAGS_32="${ARFLAGS}"
   5010             fi
   5011             # put it back.
   5012             CFLAGS="${CFLAGS_OLD}"
   5013             CXXFLAGS="${CXXFLAGS_OLD}"
   5014             LDFLAGS="${LDFLAGS_OLD}"
   5015             ARFLAGS="${ARFLAGS_OLD}"
   5016         fi
   5017 
   5018         ##
   5019         # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
   5020         #
   5021 
   5022         # First, implement 64else32
   5023         if test "$BITS_REQ" = "64else32"; then
   5024             if test "$BITS_RUN_64" = "yes"; then
   5025                 BITS_REQ=64
   5026             else
   5027                 # no changes.
   5028                 BITS_OK=yes
   5029             fi
   5030         fi
   5031 
   5032         # implement.
   5033         if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
   5034             CFLAGS="${CFLAGS_32}"
   5035             CXXFLAGS="${CXXFLAGS_32}"
   5036             LDFLAGS="${LDFLAGS_32}"
   5037             ARFLAGS="${ARFLAGS_32}"
   5038             BITS_OK=yes
   5039         elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
   5040             CFLAGS="${CFLAGS_64}"
   5041             CXXFLAGS="${CXXFLAGS_64}"
   5042             LDFLAGS="${LDFLAGS_64}"
   5043             ARFLAGS="${ARFLAGS_64}"
   5044             BITS_OK=yes
   5045         elif test "$BITS_OK" != "yes"; then
   5046             as_fn_error $? "Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
   5047         fi
   5048      fi
   5049 
   5050 
   5051 
   5052 
   5053 # Determine the Makefile fragment
   5054 
   5055 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
   5056 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
   5057 if test "${icu_cv_host_frag+set}" = set; then :
   5058   $as_echo_n "(cached) " >&6
   5059 else
   5060 
   5061 case "${host}" in
   5062 *-*-solaris*)
   5063 	if test "$GCC" = yes; then
   5064 		icu_cv_host_frag=mh-solaris-gcc
   5065 	else
   5066 		icu_cv_host_frag=mh-solaris
   5067 	fi ;;
   5068 alpha*-*-linux-gnu)
   5069 	if test "$GCC" = yes; then
   5070 		icu_cv_host_frag=mh-alpha-linux-gcc
   5071 	else
   5072 		icu_cv_host_frag=mh-alpha-linux-cc
   5073 	fi ;;
   5074 powerpc*-*-linux*)
   5075 	if test "$GCC" = yes; then
   5076 		icu_cv_host_frag=mh-linux
   5077 	else
   5078 		icu_cv_host_frag=mh-linux-va
   5079 	fi ;;
   5080 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;;
   5081 *-*-cygwin|*-*-mingw32)
   5082 	if test "$GCC" = yes; then
   5083 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5084 /* end confdefs.h.  */
   5085 
   5086 #ifndef __MINGW32__
   5087 #error This is not MinGW
   5088 #endif
   5089 int
   5090 main ()
   5091 {
   5092 
   5093   ;
   5094   return 0;
   5095 }
   5096 _ACEOF
   5097 if ac_fn_c_try_compile "$LINENO"; then :
   5098   icu_cv_host_frag=mh-mingw
   5099 else
   5100   icu_cv_host_frag=mh-cygwin
   5101 fi
   5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5103 	else
   5104 		icu_cv_host_frag=mh-cygwin-msvc
   5105 	fi ;;
   5106 *-*-*bsd*|*-*-dragonfly*) 	icu_cv_host_frag=mh-bsd-gcc ;;
   5107 *-*-aix*)
   5108 	if test "$GCC" = yes; then
   5109 		icu_cv_host_frag=mh-aix-gcc
   5110 	else
   5111 		icu_cv_host_frag=mh-aix-va
   5112 	fi ;;
   5113 *-*-hpux*)
   5114 	if test "$GCC" = yes; then
   5115 		icu_cv_host_frag=mh-hpux-gcc
   5116 	else
   5117 		case "$CXX" in
   5118 		*aCC)    icu_cv_host_frag=mh-hpux-acc ;;
   5119 		esac
   5120 	fi ;;
   5121 *-*ibm-openedition*|*-*-os390*)	icu_cv_host_frag=mh-os390 ;;
   5122 *-*-os400*)	icu_cv_host_frag=mh-os400 ;;
   5123 *-apple-rhapsody*)	icu_cv_host_frag=mh-darwin ;;
   5124 *-apple-darwin*)	icu_cv_host_frag=mh-darwin ;;
   5125 *-*-beos)       icu_cv_host_frag=mh-beos ;;
   5126 *-*-haiku)      icu_cv_host_frag=mh-haiku ;;
   5127 *-*-irix*)	icu_cv_host_frag=mh-irix ;;
   5128 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
   5129 *-*-nto*)	icu_cv_host_frag=mh-qnx ;;
   5130 *-ncr-*)	icu_cv_host_frag=mh-mpras ;;
   5131 *) 		icu_cv_host_frag=mh-unknown ;;
   5132 esac
   5133 
   5134 
   5135 fi
   5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
   5137 $as_echo "$icu_cv_host_frag" >&6; }
   5138 
   5139 
   5140 # Checks for libraries and other host specific stuff
   5141 # On HP/UX, don't link to -lm from a shared lib because it isn't
   5142 #  PIC (at least on 10.2)
   5143 case "${host}" in
   5144 	*-*-hpux*) 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
   5145 $as_echo_n "checking for floor in -lm... " >&6; }
   5146 if test "${ac_cv_lib_m_floor+set}" = set; then :
   5147   $as_echo_n "(cached) " >&6
   5148 else
   5149   ac_check_lib_save_LIBS=$LIBS
   5150 LIBS="-lm  $LIBS"
   5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5152 /* end confdefs.h.  */
   5153 
   5154 /* Override any GCC internal prototype to avoid an error.
   5155    Use char because int might match the return type of a GCC
   5156    builtin and then its argument prototype would still apply.  */
   5157 #ifdef __cplusplus
   5158 extern "C"
   5159 #endif
   5160 char floor ();
   5161 int
   5162 main ()
   5163 {
   5164 return floor ();
   5165   ;
   5166   return 0;
   5167 }
   5168 _ACEOF
   5169 if ac_fn_c_try_link "$LINENO"; then :
   5170   ac_cv_lib_m_floor=yes
   5171 else
   5172   ac_cv_lib_m_floor=no
   5173 fi
   5174 rm -f core conftest.err conftest.$ac_objext \
   5175     conftest$ac_exeext conftest.$ac_ext
   5176 LIBS=$ac_check_lib_save_LIBS
   5177 fi
   5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
   5179 $as_echo "$ac_cv_lib_m_floor" >&6; }
   5180 if test "x$ac_cv_lib_m_floor" = x""yes; then :
   5181   LIB_M="-lm"
   5182 fi
   5183  ;;
   5184 
   5185 	*) 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
   5186 $as_echo_n "checking for floor in -lm... " >&6; }
   5187 if test "${ac_cv_lib_m_floor+set}" = set; then :
   5188   $as_echo_n "(cached) " >&6
   5189 else
   5190   ac_check_lib_save_LIBS=$LIBS
   5191 LIBS="-lm  $LIBS"
   5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5193 /* end confdefs.h.  */
   5194 
   5195 /* Override any GCC internal prototype to avoid an error.
   5196    Use char because int might match the return type of a GCC
   5197    builtin and then its argument prototype would still apply.  */
   5198 #ifdef __cplusplus
   5199 extern "C"
   5200 #endif
   5201 char floor ();
   5202 int
   5203 main ()
   5204 {
   5205 return floor ();
   5206   ;
   5207   return 0;
   5208 }
   5209 _ACEOF
   5210 if ac_fn_c_try_link "$LINENO"; then :
   5211   ac_cv_lib_m_floor=yes
   5212 else
   5213   ac_cv_lib_m_floor=no
   5214 fi
   5215 rm -f core conftest.err conftest.$ac_objext \
   5216     conftest$ac_exeext conftest.$ac_ext
   5217 LIBS=$ac_check_lib_save_LIBS
   5218 fi
   5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
   5220 $as_echo "$ac_cv_lib_m_floor" >&6; }
   5221 if test "x$ac_cv_lib_m_floor" = x""yes; then :
   5222   cat >>confdefs.h <<_ACEOF
   5223 #define HAVE_LIBM 1
   5224 _ACEOF
   5225 
   5226   LIBS="-lm $LIBS"
   5227 
   5228 fi
   5229 
   5230 			LIB_M="" ;;
   5231 esac
   5232 
   5233 
   5234 # Check whether to build shared libraries
   5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   5236 $as_echo_n "checking whether to build shared libraries... " >&6; }
   5237 enabled=no
   5238 # Check whether --enable-shared was given.
   5239 if test "${enable_shared+set}" = set; then :
   5240   enableval=$enable_shared;  case "${enableval}" in
   5241 	     yes|"") enabled=yes; ENABLE_SHARED=YES ;;
   5242 	     no);;
   5243 	     *) ;;
   5244     esac
   5245 else
   5246   enabled=yes; ENABLE_SHARED=YES
   5247 
   5248 fi
   5249 
   5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5251 $as_echo "$enabled" >&6; }
   5252 
   5253 
   5254 # Check whether to build static libraries
   5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   5256 $as_echo_n "checking whether to build static libraries... " >&6; }
   5257 enabled=no
   5258 # Check whether --enable-static was given.
   5259 if test "${enable_static+set}" = set; then :
   5260   enableval=$enable_static;  case "${enableval}" in
   5261 	     yes|"") enabled=yes; ENABLE_STATIC=YES ;;
   5262 	     no) ;;
   5263 	     *) ;;
   5264     esac
   5265 fi
   5266 
   5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5268 $as_echo "$enabled" >&6; }
   5269 
   5270 
   5271 # Check whether to enable auto cleanup of libraries
   5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
   5273 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
   5274 enabled=no
   5275 UCLN_NO_AUTO_CLEANUP=1
   5276 # Check whether --enable-auto-cleanup was given.
   5277 if test "${enable_auto_cleanup+set}" = set; then :
   5278   enableval=$enable_auto_cleanup;  case "${enableval}" in
   5279          yes) enabled=yes; UCLN_NO_AUTO_CLEANUP=0 ;;
   5280          *) ;;
   5281     esac
   5282 fi
   5283 
   5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5285 $as_echo "$enabled" >&6; }
   5286 
   5287 
   5288 # MSVC floating-point option
   5289 MSVC_RELEASE_FLAG=""
   5290 if test $enabled = yes
   5291 then
   5292     if test $icu_cv_host_frag = mh-cygwin-msvc
   5293     then
   5294         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5295 /* end confdefs.h.  */
   5296 
   5297     #if defined _MSC_VER && _MSC_VER >= 1400
   5298     #else
   5299     Microsoft Visual C++ < 2005
   5300     #endif
   5301 
   5302 int
   5303 main ()
   5304 {
   5305 
   5306   ;
   5307   return 0;
   5308 }
   5309 _ACEOF
   5310 if ac_fn_c_try_compile "$LINENO"; then :
   5311   MSVC_RELEASE_FLAG="/fp:precise"
   5312 else
   5313   MSVC_RELEASE_FLAG="/Op"
   5314 fi
   5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5316 
   5317         CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}"
   5318         CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
   5319     fi
   5320 fi
   5321 
   5322 # Check whether to enabled draft APIs
   5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
   5324 $as_echo_n "checking whether to enable draft APIs... " >&6; }
   5325 enabled=yes
   5326 U_DEFAULT_SHOW_DRAFT=1
   5327 # Check whether --enable-draft was given.
   5328 if test "${enable_draft+set}" = set; then :
   5329   enableval=$enable_draft;  case "${enableval}" in
   5330          no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;;
   5331          *) ;;
   5332     esac
   5333 fi
   5334 
   5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5336 $as_echo "$enabled" >&6; }
   5337 # Make sure that we can use draft API in ICU.
   5338 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
   5339     CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API"
   5340 fi
   5341 
   5342 
   5343 # Check if we can hide variables from
   5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library API export" >&5
   5345 $as_echo_n "checking for library API export... " >&6; }
   5346 SHAREDLIBEXPORT=no
   5347 U_USE_GCC_VISIBILITY_ATTRIBUTE=0
   5348 OLD_CFLAGS="${CFLAGS}"
   5349 OLD_CXXFLAGS="${CXXFLAGS}"
   5350 if test "$ac_cv_c_compiler_gnu" = yes; then
   5351     LIBCFLAGS="-fvisibility=hidden"
   5352     LIBCXXFLAGS="-fvisibility=hidden"
   5353     CFLAGS="${CFLAGS} ${LIBCFLAGS}"
   5354     CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}"
   5355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5356 /* end confdefs.h.  */
   5357 __attribute__ ((visibility ("default"))) void f(void);
   5358 #include <stdlib.h>
   5359 int
   5360 main ()
   5361 {
   5362 exit(0);
   5363   ;
   5364   return 0;
   5365 }
   5366 _ACEOF
   5367 if ac_fn_c_try_link "$LINENO"; then :
   5368   SHAREDLIBEXPORT=yes
   5369 else
   5370   SHAREDLIBEXPORT=no
   5371 fi
   5372 rm -f core conftest.err conftest.$ac_objext \
   5373     conftest$ac_exeext conftest.$ac_ext
   5374     if test "$SHAREDLIBEXPORT" = no; then
   5375         LIBCFLAGS=
   5376         LIBCXXFLAGS=
   5377     else
   5378         U_USE_GCC_VISIBILITY_ATTRIBUTE=1
   5379     fi
   5380 else
   5381     case "${host}" in
   5382     *-*-solaris*)
   5383         LIBCFLAGS="-xldscope=hidden"
   5384         LIBCXXFLAGS="-xldscope=hidden"
   5385         CFLAGS="${CFLAGS} ${LIBCFLAGS}"
   5386         CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}"
   5387         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5388 /* end confdefs.h.  */
   5389 __global void f(void);
   5390 #include <stdlib.h>
   5391 int
   5392 main ()
   5393 {
   5394 exit(0);
   5395   ;
   5396   return 0;
   5397 }
   5398 _ACEOF
   5399 if ac_fn_c_try_link "$LINENO"; then :
   5400   SHAREDLIBEXPORT=yes
   5401 else
   5402   SHAREDLIBEXPORT=no
   5403 fi
   5404 rm -f core conftest.err conftest.$ac_objext \
   5405     conftest$ac_exeext conftest.$ac_ext
   5406         if test "$SHAREDLIBEXPORT" = no; then
   5407             LIBCFLAGS=
   5408             LIBCXXFLAGS=
   5409         fi
   5410         ;;
   5411     *-*-hpux*)
   5412         # ICU isn't set up to follow the HP syntax yet.
   5413         ;;
   5414     *)
   5415     esac
   5416 fi
   5417 # Restore to their original state because the Intel compiler chokes
   5418 # on this option when checking for the wchar_t size, but the
   5419 # option otherwise works.
   5420 CFLAGS="${OLD_CFLAGS}"
   5421 CXXFLAGS="${OLD_CXXFLAGS}"
   5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHAREDLIBEXPORT" >&5
   5423 $as_echo "$SHAREDLIBEXPORT" >&6; }
   5424 
   5425 
   5426 
   5427 
   5428 if test -n "$ac_tool_prefix"; then
   5429   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5432 $as_echo_n "checking for $ac_word... " >&6; }
   5433 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   5434   $as_echo_n "(cached) " >&6
   5435 else
   5436   if test -n "$RANLIB"; then
   5437   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5438 else
   5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5440 for as_dir in $PATH
   5441 do
   5442   IFS=$as_save_IFS
   5443   test -z "$as_dir" && as_dir=.
   5444     for ac_exec_ext in '' $ac_executable_extensions; do
   5445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5446     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5448     break 2
   5449   fi
   5450 done
   5451   done
   5452 IFS=$as_save_IFS
   5453 
   5454 fi
   5455 fi
   5456 RANLIB=$ac_cv_prog_RANLIB
   5457 if test -n "$RANLIB"; then
   5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5459 $as_echo "$RANLIB" >&6; }
   5460 else
   5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5462 $as_echo "no" >&6; }
   5463 fi
   5464 
   5465 
   5466 fi
   5467 if test -z "$ac_cv_prog_RANLIB"; then
   5468   ac_ct_RANLIB=$RANLIB
   5469   # Extract the first word of "ranlib", so it can be a program name with args.
   5470 set dummy ranlib; ac_word=$2
   5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5472 $as_echo_n "checking for $ac_word... " >&6; }
   5473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   5474   $as_echo_n "(cached) " >&6
   5475 else
   5476   if test -n "$ac_ct_RANLIB"; then
   5477   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5478 else
   5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5480 for as_dir in $PATH
   5481 do
   5482   IFS=$as_save_IFS
   5483   test -z "$as_dir" && as_dir=.
   5484     for ac_exec_ext in '' $ac_executable_extensions; do
   5485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5486     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5488     break 2
   5489   fi
   5490 done
   5491   done
   5492 IFS=$as_save_IFS
   5493 
   5494 fi
   5495 fi
   5496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5497 if test -n "$ac_ct_RANLIB"; then
   5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5499 $as_echo "$ac_ct_RANLIB" >&6; }
   5500 else
   5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5502 $as_echo "no" >&6; }
   5503 fi
   5504 
   5505   if test "x$ac_ct_RANLIB" = x; then
   5506     RANLIB=":"
   5507   else
   5508     case $cross_compiling:$ac_tool_warned in
   5509 yes:)
   5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5512 ac_tool_warned=yes ;;
   5513 esac
   5514     RANLIB=$ac_ct_RANLIB
   5515   fi
   5516 else
   5517   RANLIB="$ac_cv_prog_RANLIB"
   5518 fi
   5519 
   5520 
   5521 # look for 'ar' the proper way
   5522 #AC_PATH_PROG(AR,ar,[echo archiver ar not found re-run configure ; false],$PATH:/bin:/usr/bin:/usr/ccs/bin)
   5523 if test -n "$ac_tool_prefix"; then
   5524   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   5525 set dummy ${ac_tool_prefix}ar; ac_word=$2
   5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5527 $as_echo_n "checking for $ac_word... " >&6; }
   5528 if test "${ac_cv_prog_AR+set}" = set; then :
   5529   $as_echo_n "(cached) " >&6
   5530 else
   5531   if test -n "$AR"; then
   5532   ac_cv_prog_AR="$AR" # Let the user override the test.
   5533 else
   5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5535 for as_dir in $PATH
   5536 do
   5537   IFS=$as_save_IFS
   5538   test -z "$as_dir" && as_dir=.
   5539     for ac_exec_ext in '' $ac_executable_extensions; do
   5540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5541     ac_cv_prog_AR="${ac_tool_prefix}ar"
   5542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5543     break 2
   5544   fi
   5545 done
   5546   done
   5547 IFS=$as_save_IFS
   5548 
   5549 fi
   5550 fi
   5551 AR=$ac_cv_prog_AR
   5552 if test -n "$AR"; then
   5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5554 $as_echo "$AR" >&6; }
   5555 else
   5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5557 $as_echo "no" >&6; }
   5558 fi
   5559 
   5560 
   5561 fi
   5562 if test -z "$ac_cv_prog_AR"; then
   5563   ac_ct_AR=$AR
   5564   # Extract the first word of "ar", so it can be a program name with args.
   5565 set dummy ar; ac_word=$2
   5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5567 $as_echo_n "checking for $ac_word... " >&6; }
   5568 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   5569   $as_echo_n "(cached) " >&6
   5570 else
   5571   if test -n "$ac_ct_AR"; then
   5572   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5573 else
   5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5575 for as_dir in $PATH
   5576 do
   5577   IFS=$as_save_IFS
   5578   test -z "$as_dir" && as_dir=.
   5579     for ac_exec_ext in '' $ac_executable_extensions; do
   5580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5581     ac_cv_prog_ac_ct_AR="ar"
   5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5583     break 2
   5584   fi
   5585 done
   5586   done
   5587 IFS=$as_save_IFS
   5588 
   5589 fi
   5590 fi
   5591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5592 if test -n "$ac_ct_AR"; then
   5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5594 $as_echo "$ac_ct_AR" >&6; }
   5595 else
   5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5597 $as_echo "no" >&6; }
   5598 fi
   5599 
   5600   if test "x$ac_ct_AR" = x; then
   5601     AR=""
   5602   else
   5603     case $cross_compiling:$ac_tool_warned in
   5604 yes:)
   5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5607 ac_tool_warned=yes ;;
   5608 esac
   5609     AR=$ac_ct_AR
   5610   fi
   5611 else
   5612   AR="$ac_cv_prog_AR"
   5613 fi
   5614 
   5615 if test "x$AR" = "x"; then
   5616   as_fn_error $? "Archiver ar not found. Set AR= or fix PATH" "$LINENO" 5
   5617 fi
   5618 
   5619 
   5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
   5621 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
   5622 enabled=yes
   5623 U_DISABLE_RENAMING=0
   5624 # Check whether --enable-renaming was given.
   5625 if test "${enable_renaming+set}" = set; then :
   5626   enableval=$enable_renaming;  case "${enableval}" in
   5627 	     yes|"") enabled=yes ;;
   5628 	     no) enabled=no; U_DISABLE_RENAMING=1 ;;
   5629 	     *) ;;
   5630     esac
   5631 fi
   5632 
   5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5634 $as_echo "$enabled" >&6; }
   5635 
   5636 
   5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
   5638 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
   5639 enabled=no
   5640 U_ENABLE_TRACING=0
   5641 # Check whether --enable-tracing was given.
   5642 if test "${enable_tracing+set}" = set; then :
   5643   enableval=$enable_tracing;  case "${enableval}" in
   5644 	     yes|"") enabled=yes; U_ENABLE_TRACING=1 ;;
   5645 	     no) enabled=no; U_ENABLE_TRACING=0 ;;
   5646 	     *) ;;
   5647     esac
   5648 fi
   5649 
   5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
   5651 $as_echo "$enabled" >&6; }
   5652 
   5653 
   5654 
   5655 U_ENABLE_DYLOAD=1
   5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
   5657 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
   5658 enabled=check
   5659 # Check whether --enable-dyload was given.
   5660 if test "${enable_dyload+set}" = set; then :
   5661   enableval=$enable_dyload;  case "${enableval}" in
   5662 	     yes|"")
   5663 		     U_ENABLE_DYLOAD=1
   5664 		     enabled=check ;;
   5665 	     no)
   5666 	     	 U_ENABLE_DYLOAD=0;
   5667 	     	 enabled=disabled ;;
   5668 	     *) ;;
   5669     esac
   5670 fi
   5671 
   5672 
   5673 
   5674 # goes into icucfg.h
   5675 for ac_header in dlfcn.h
   5676 do :
   5677   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
   5678 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
   5679   cat >>confdefs.h <<_ACEOF
   5680 #define HAVE_DLFCN_H 1
   5681 _ACEOF
   5682 
   5683 fi
   5684 
   5685 done
   5686 
   5687 U_CHECK_DYLOAD=0
   5688 #AC_MSG_RESULT($enabled)
   5689 if test "$enabled" = "check"; then
   5690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   5691 $as_echo_n "checking for library containing dlopen... " >&6; }
   5692 if test "${ac_cv_search_dlopen+set}" = set; then :
   5693   $as_echo_n "(cached) " >&6
   5694 else
   5695   ac_func_search_save_LIBS=$LIBS
   5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5697 /* end confdefs.h.  */
   5698 
   5699 /* Override any GCC internal prototype to avoid an error.
   5700    Use char because int might match the return type of a GCC
   5701    builtin and then its argument prototype would still apply.  */
   5702 #ifdef __cplusplus
   5703 extern "C"
   5704 #endif
   5705 char dlopen ();
   5706 int
   5707 main ()
   5708 {
   5709 return dlopen ();
   5710   ;
   5711   return 0;
   5712 }
   5713 _ACEOF
   5714 for ac_lib in '' dl; do
   5715   if test -z "$ac_lib"; then
   5716     ac_res="none required"
   5717   else
   5718     ac_res=-l$ac_lib
   5719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5720   fi
   5721   if ac_fn_c_try_link "$LINENO"; then :
   5722   ac_cv_search_dlopen=$ac_res
   5723 fi
   5724 rm -f core conftest.err conftest.$ac_objext \
   5725     conftest$ac_exeext
   5726   if test "${ac_cv_search_dlopen+set}" = set; then :
   5727   break
   5728 fi
   5729 done
   5730 if test "${ac_cv_search_dlopen+set}" = set; then :
   5731 
   5732 else
   5733   ac_cv_search_dlopen=no
   5734 fi
   5735 rm conftest.$ac_ext
   5736 LIBS=$ac_func_search_save_LIBS
   5737 fi
   5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   5739 $as_echo "$ac_cv_search_dlopen" >&6; }
   5740 ac_res=$ac_cv_search_dlopen
   5741 if test "$ac_res" != no; then :
   5742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5743 
   5744 fi
   5745 
   5746     for ac_func in dlopen
   5747 do :
   5748   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   5749 if test "x$ac_cv_func_dlopen" = x""yes; then :
   5750   cat >>confdefs.h <<_ACEOF
   5751 #define HAVE_DLOPEN 1
   5752 _ACEOF
   5753 
   5754 fi
   5755 done
   5756 
   5757     U_CHECK_DYLOAD=1
   5758 fi
   5759 
   5760 
   5761 # Check for miscellanous functions.
   5762 # These only go into common/icucfg.h and are NOT exported with ICU builds.
   5763 # So, use for putil / tools only.
   5764 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
   5765 # rerun 'autoheader' to regenerate icucfg.h.in
   5766 for ac_func in gettimeofday
   5767 do :
   5768   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
   5769 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
   5770   cat >>confdefs.h <<_ACEOF
   5771 #define HAVE_GETTIMEOFDAY 1
   5772 _ACEOF
   5773 
   5774 fi
   5775 done
   5776 
   5777 
   5778 # Check whether to use the evil rpath or not
   5779 # Check whether --enable-rpath was given.
   5780 if test "${enable_rpath+set}" = set; then :
   5781   enableval=$enable_rpath;  case "${enableval}" in
   5782 	     yes|"") ENABLE_RPATH=YES ;;
   5783 	     no) ;;
   5784 	     *) ;;
   5785     esac
   5786 else
   5787   ENABLE_RPATH=NO
   5788 
   5789 fi
   5790 
   5791 
   5792 
   5793 
   5794 # set up U_INLINE.
   5795 # Copy the definition of AC_C_INLINE, with slight mods.
   5796 #
   5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for definition of U_INLINE for C" >&5
   5798 $as_echo_n "checking for definition of U_INLINE for C... " >&6; }
   5799 if test "${ac_cv_c_inline+set}" = set; then :
   5800   $as_echo_n "(cached) " >&6
   5801 else
   5802   ac_cv_c_inline=no
   5803 for ac_kw in inline __inline__ __inline; do
   5804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5805 /* end confdefs.h.  */
   5806 
   5807 int
   5808 main ()
   5809 {
   5810 return 0;} $ac_kw int foo() {
   5811   ;
   5812   return 0;
   5813 }
   5814 _ACEOF
   5815 if ac_fn_c_try_compile "$LINENO"; then :
   5816   ac_cv_c_inline=$ac_kw; break
   5817 fi
   5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5819   done
   5820 
   5821 fi
   5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   5823 $as_echo "$ac_cv_c_inline" >&6; }
   5824 case "$ac_cv_c_inline" in
   5825       yes)       U_INLINE= "inline" ;;
   5826 	  no )       U_INLINE= ;;
   5827 	    *)       U_INLINE=$ac_cv_c_inline ;;
   5828 esac
   5829 
   5830 
   5831 # set up U_HAVE_STD_STRING.
   5832 # Copy the definition of AC_C_INLINE, with slight mods.
   5833 #
   5834 U_HAVE_STD_STRING=0
   5835 ac_ext=cpp
   5836 ac_cpp='$CXXCPP $CPPFLAGS'
   5837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5840 
   5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
   5842 $as_echo_n "checking if we have a C++ compiler... " >&6; }
   5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5844 /* end confdefs.h.  */
   5845 
   5846 int
   5847 main ()
   5848 {
   5849 
   5850   ;
   5851   return 0;
   5852 }
   5853 _ACEOF
   5854 if ac_fn_cxx_try_compile "$LINENO"; then :
   5855   cxx_okay=yes
   5856 else
   5857   cxx_okay=no
   5858 fi
   5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5860 if test $cxx_okay = yes
   5861 then
   5862 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: congratulations" >&5
   5863 $as_echo "congratulations" >&6; }
   5864 else
   5865 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5866 $as_echo "no" >&6; }
   5867 	as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
   5868 fi
   5869 
   5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
   5871 $as_echo_n "checking if #include <string> works... " >&6; }
   5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5873 /* end confdefs.h.  */
   5874 #include <string>
   5875 int
   5876 main ()
   5877 {
   5878 
   5879   ;
   5880   return 0;
   5881 }
   5882 _ACEOF
   5883 if ac_fn_cxx_try_compile "$LINENO"; then :
   5884   ac_cv_header_stdstring=yes
   5885 else
   5886   ac_cv_header_stdstring=no
   5887 fi
   5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
   5890 $as_echo "$ac_cv_header_stdstring" >&6; }
   5891 if test $ac_cv_header_stdstring = yes
   5892 then
   5893 	U_HAVE_STD_STRING=1
   5894 fi
   5895 
   5896 ac_ext=c
   5897 ac_cpp='$CPP $CPPFLAGS'
   5898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5901 
   5902 
   5903 threads=true
   5904 
   5905 # Enable/disable threads
   5906 # Check whether --enable-threads was given.
   5907 if test "${enable_threads+set}" = set; then :
   5908   enableval=$enable_threads; case "${enableval}" in
   5909 		yes) threads=true ;;
   5910 		no)  threads=false ;;
   5911 		*) as_fn_error $? "bad value ${enableval} for --enable-threads" "$LINENO" 5 ;;
   5912 		esac
   5913 else
   5914   threads=true
   5915 fi
   5916 
   5917 
   5918 if test "$threads" = true; then
   5919   THREADS_TRUE=
   5920 else
   5921   THREADS_TRUE='#'
   5922 fi
   5923 
   5924 ICU_USE_THREADS=0
   5925 OLD_LIBS=${LIBS}
   5926 
   5927 if test $threads = true; then
   5928   # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
   5929   # and must do this before seaching for pthread_mutex_destroy, or
   5930   # we will pick up libpthreads.so not libpthread.so
   5931   # If this fails, then we must test for HPUX specials, before
   5932   # moving on to a more generic test
   5933 
   5934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
   5935 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
   5936 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then :
   5937   $as_echo_n "(cached) " >&6
   5938 else
   5939   ac_check_lib_save_LIBS=$LIBS
   5940 LIBS="-lpthread  $LIBS"
   5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5942 /* end confdefs.h.  */
   5943 
   5944 /* Override any GCC internal prototype to avoid an error.
   5945    Use char because int might match the return type of a GCC
   5946    builtin and then its argument prototype would still apply.  */
   5947 #ifdef __cplusplus
   5948 extern "C"
   5949 #endif
   5950 char pthread_attr_init ();
   5951 int
   5952 main ()
   5953 {
   5954 return pthread_attr_init ();
   5955   ;
   5956   return 0;
   5957 }
   5958 _ACEOF
   5959 if ac_fn_c_try_link "$LINENO"; then :
   5960   ac_cv_lib_pthread_pthread_attr_init=yes
   5961 else
   5962   ac_cv_lib_pthread_pthread_attr_init=no
   5963 fi
   5964 rm -f core conftest.err conftest.$ac_objext \
   5965     conftest$ac_exeext conftest.$ac_ext
   5966 LIBS=$ac_check_lib_save_LIBS
   5967 fi
   5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
   5969 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
   5970 if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""yes; then :
   5971   cat >>confdefs.h <<_ACEOF
   5972 #define HAVE_LIBPTHREAD 1
   5973 _ACEOF
   5974 
   5975   LIBS="-lpthread $LIBS"
   5976 
   5977 fi
   5978 
   5979   if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
   5980     ICU_USE_THREADS=1
   5981   else
   5982     # Locate the right library for POSIX threads. We look for the
   5983     # symbols in the libraries first, because on Solaris libc provides
   5984     # pthread_create but libpthread has the real code :(
   5985     # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
   5986     # FreeBSD users may need libpthread if they do not have libc_r.
   5987 
   5988 
   5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
   5990 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
   5991 if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then :
   5992   $as_echo_n "(cached) " >&6
   5993 else
   5994   ac_func_search_save_LIBS="$LIBS"
   5995 ac_cv_search_pthread_mutex_destroy="no"
   5996 for i in pthread pthreads c_r ; do
   5997 LIBS="-l$i  $ac_func_search_save_LIBS"
   5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5999 /* end confdefs.h.  */
   6000 
   6001 /* Override any GCC internal prototype to avoid an error.
   6002    Use char because int might match the return type of a GCC
   6003    builtin and then its argument prototype would still apply.  */
   6004 #ifdef __cplusplus
   6005 extern "C"
   6006 #endif
   6007 char pthread_mutex_destroy ();
   6008 int
   6009 main ()
   6010 {
   6011 return pthread_mutex_destroy ();
   6012   ;
   6013   return 0;
   6014 }
   6015 _ACEOF
   6016 if ac_fn_c_try_link "$LINENO"; then :
   6017   ac_cv_search_pthread_mutex_destroy="-l$i"
   6018 break
   6019 fi
   6020 rm -f core conftest.err conftest.$ac_objext \
   6021     conftest$ac_exeext conftest.$ac_ext
   6022 done
   6023 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
   6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6025 /* end confdefs.h.  */
   6026 
   6027 /* Override any GCC internal prototype to avoid an error.
   6028    Use char because int might match the return type of a GCC
   6029    builtin and then its argument prototype would still apply.  */
   6030 #ifdef __cplusplus
   6031 extern "C"
   6032 #endif
   6033 char pthread_mutex_destroy ();
   6034 int
   6035 main ()
   6036 {
   6037 return pthread_mutex_destroy ();
   6038   ;
   6039   return 0;
   6040 }
   6041 _ACEOF
   6042 if ac_fn_c_try_link "$LINENO"; then :
   6043   ac_cv_search_pthread_mutex_destroy="none required"
   6044 fi
   6045 rm -f core conftest.err conftest.$ac_objext \
   6046     conftest$ac_exeext conftest.$ac_ext
   6047 fi
   6048 LIBS="$ac_func_search_save_LIBS"
   6049 fi
   6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
   6051 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
   6052 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
   6053   test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
   6054 
   6055 else :
   6056 
   6057 fi
   6058 
   6059     if test "$ac_cv_search_pthread_mutex_destroy" != no; then
   6060       ICU_USE_THREADS=1
   6061     else
   6062       # For HP 11
   6063       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
   6064 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
   6065 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
   6066   $as_echo_n "(cached) " >&6
   6067 else
   6068   ac_check_lib_save_LIBS=$LIBS
   6069 LIBS="-lpthread  $LIBS"
   6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6071 /* end confdefs.h.  */
   6072 
   6073 /* Override any GCC internal prototype to avoid an error.
   6074    Use char because int might match the return type of a GCC
   6075    builtin and then its argument prototype would still apply.  */
   6076 #ifdef __cplusplus
   6077 extern "C"
   6078 #endif
   6079 char pthread_mutex_init ();
   6080 int
   6081 main ()
   6082 {
   6083 return pthread_mutex_init ();
   6084   ;
   6085   return 0;
   6086 }
   6087 _ACEOF
   6088 if ac_fn_c_try_link "$LINENO"; then :
   6089   ac_cv_lib_pthread_pthread_mutex_init=yes
   6090 else
   6091   ac_cv_lib_pthread_pthread_mutex_init=no
   6092 fi
   6093 rm -f core conftest.err conftest.$ac_objext \
   6094     conftest$ac_exeext conftest.$ac_ext
   6095 LIBS=$ac_check_lib_save_LIBS
   6096 fi
   6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
   6098 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
   6099 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then :
   6100   cat >>confdefs.h <<_ACEOF
   6101 #define HAVE_LIBPTHREAD 1
   6102 _ACEOF
   6103 
   6104   LIBS="-lpthread $LIBS"
   6105 
   6106 fi
   6107 
   6108       if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
   6109         ICU_USE_THREADS=1
   6110       fi
   6111     fi
   6112 
   6113     ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
   6114 if test "x$ac_cv_func_pthread_mutex_lock" = x""yes; then :
   6115 
   6116 fi
   6117 
   6118 
   6119     if test $ac_cv_func_pthread_mutex_lock = yes; then
   6120       ICU_USE_THREADS=1
   6121     fi
   6122   fi
   6123   # Check to see if we are using CygWin with MSVC
   6124   case "${host}" in
   6125   *-pc-cygwin*|*-pc-mingw*)
   6126     # For gcc, the thread options are set by mh-mingw/mh-cygwin
   6127     # For msvc, the thread options are set by runConfigureICU
   6128     ICU_USE_THREADS=1
   6129     ;;
   6130   *-*-hpux*)
   6131     # Add -mt because it does several nice things on newer compilers.
   6132     case "${icu_cv_host_frag}" in
   6133       mh-hpux-acc)
   6134         OLD_CXXFLAGS="${CXXFLAGS}"
   6135         CXXFLAGS="${CXXFLAGS} -mt"
   6136         if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
   6137            CXXFLAGS="${OLD_CXXFLAGS}"
   6138        fi
   6139       ;;
   6140     esac
   6141     ;;
   6142   *-*-solaris*)
   6143     case "${icu_cv_host_frag}" in
   6144       mh-solaris)
   6145            LIBS="${LIBS} -mt"
   6146       ;;
   6147     esac
   6148     ;;
   6149   esac
   6150 fi
   6151 
   6152 
   6153 
   6154 # Check whether --enable-weak-threads was given.
   6155 if test "${enable_weak_threads+set}" = set; then :
   6156   enableval=$enable_weak_threads; case "${enableval}" in
   6157 		yes)
   6158             LIB_THREAD="${LIBS%${OLD_LIBS}}"
   6159             LIBS=${OLD_LIBS}
   6160             ;;
   6161 		no)  ;;
   6162 		*) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
   6163 		esac
   6164 fi
   6165 
   6166 
   6167 
   6168 # Check for mmap()
   6169 
   6170 # The AC_FUNC_MMAP macro doesn't work properly.  It seems to be too specific.
   6171 # Do this check instead.
   6172 HAVE_MMAP=0
   6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
   6174 $as_echo_n "checking for mmap... " >&6; }
   6175 if test "${ac_cv_func_mmap_ok+set}" = set; then :
   6176   $as_echo_n "(cached) " >&6
   6177 else
   6178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6179 /* end confdefs.h.  */
   6180 #include <unistd.h>
   6181 #include <sys/mman.h>
   6182 #include <sys/stat.h>
   6183 #include <fcntl.h>
   6184 int
   6185 main ()
   6186 {
   6187 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
   6188   ;
   6189   return 0;
   6190 }
   6191 _ACEOF
   6192 if ac_fn_c_try_link "$LINENO"; then :
   6193   ac_cv_func_mmap_ok=yes
   6194 else
   6195   ac_cv_func_mmap_ok=no
   6196 fi
   6197 rm -f core conftest.err conftest.$ac_objext \
   6198     conftest$ac_exeext conftest.$ac_ext
   6199 fi
   6200 
   6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
   6202 $as_echo "$ac_cv_func_mmap_ok" >&6; }
   6203 if test $ac_cv_func_mmap_ok = yes
   6204 then
   6205     HAVE_MMAP=1
   6206 fi
   6207 
   6208 
   6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
   6210 $as_echo_n "checking for genccode assembly... " >&6; }
   6211 
   6212 # Check to see if genccode can generate simple assembly.
   6213 GENCCODE_ASSEMBLY=
   6214 case "${host}" in
   6215 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
   6216     if test "$GCC" = yes; then
   6217         # We're using gcc, and the simple -a gcc command line works for genccode
   6218         GENCCODE_ASSEMBLY="-a gcc"
   6219     fi ;;
   6220 i*86-*-solaris*)
   6221     if test "$GCC" = yes; then
   6222         # When using gcc, look if we're also using GNU as.
   6223         # When using GNU as, the simple -a gcc command line works for genccode.
   6224         asv=`"${CC}" -print-prog-name=as 2>/dev/null`
   6225         asv=`"${asv}" --version 2>/dev/null`
   6226         case "X${asv}" in
   6227         X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
   6228         X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
   6229         esac
   6230         unset asv
   6231     else
   6232         GENCCODE_ASSEMBLY="-a sun-x86"
   6233     fi ;;
   6234 sparc-*-solaris*)
   6235     GENCCODE_ASSEMBLY="-a sun"
   6236     ;;
   6237 ia64-*-hpux*)
   6238     GENCCODE_ASSEMBLY="-a aCC-ia64"
   6239     ;;
   6240 esac
   6241 
   6242 
   6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
   6244 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
   6245 
   6246 # Checks for header files
   6247 for ac_header in inttypes.h
   6248 do :
   6249   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
   6250 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
   6251   cat >>confdefs.h <<_ACEOF
   6252 #define HAVE_INTTYPES_H 1
   6253 _ACEOF
   6254 
   6255 fi
   6256 
   6257 done
   6258 
   6259 if test $ac_cv_header_inttypes_h = no; then
   6260  U_HAVE_INTTYPES_H=0
   6261 else
   6262  U_HAVE_INTTYPES_H=1
   6263 fi
   6264 if test "$CC" = ccc; then
   6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
   6266 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
   6267  case "${host}" in
   6268         alpha*-*-*) U_HAVE_INTTYPES_H=0;
   6269  esac
   6270 fi
   6271 
   6272 
   6273 
   6274 for ac_header in dirent.h
   6275 do :
   6276   ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
   6277 if test "x$ac_cv_header_dirent_h" = x""yes; then :
   6278   cat >>confdefs.h <<_ACEOF
   6279 #define HAVE_DIRENT_H 1
   6280 _ACEOF
   6281 
   6282 fi
   6283 
   6284 done
   6285 
   6286 if test $ac_cv_header_dirent_h = no; then
   6287  U_HAVE_DIRENT_H=0
   6288 else
   6289  U_HAVE_DIRENT_H=1
   6290 fi
   6291 
   6292 
   6293 
   6294 
   6295 
   6296 # Check whether --with-iostream was given.
   6297 if test "${with_iostream+set}" = set; then :
   6298   withval=$with_iostream; case "${withval}" in
   6299 		none) streams=none ;;
   6300 		old) streams=198506 ;;
   6301 		std) streams=199711 ;;
   6302 		auto) streams= ;;
   6303 		*) as_fn_error $? "bad value ${withval} for --with-iostream" "$LINENO" 5 ;;
   6304 		esac
   6305 else
   6306   streams=
   6307 fi
   6308 
   6309 
   6310 U_IOSTREAM_SOURCE=0
   6311 if test x$streams != xnone
   6312 then
   6313     ac_ext=cpp
   6314 ac_cpp='$CXXCPP $CPPFLAGS'
   6315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6318 
   6319     OLD_CXXFLAGS="${CXXFLAGS}"
   6320     case "${icu_cv_host_frag}" in
   6321         mh-hpux-acc)
   6322             CXXFLAGS="${CXXFLAGS} -AA"
   6323         ;;
   6324     esac
   6325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iostream usability" >&5
   6326 $as_echo_n "checking for iostream usability... " >&6; }
   6327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6328 /* end confdefs.h.  */
   6329 #include <iostream>
   6330 int
   6331 main ()
   6332 {
   6333 
   6334   ;
   6335   return 0;
   6336 }
   6337 _ACEOF
   6338 if ac_fn_cxx_try_compile "$LINENO"; then :
   6339   ac_cv_header_iostream=yes
   6340 else
   6341   ac_cv_header_iostream=no
   6342 fi
   6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6344     if test $icu_cv_host_frag = mh-cygwin-msvc
   6345     then
   6346         # <iostream> is always there on Windows.
   6347         # We do this to prevent the C++ preprocessor from being used because
   6348         # autoconf can't deal with the Windows C++ preprocessor
   6349         ac_cv_header_iostream=yes
   6350     fi
   6351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_iostream" >&5
   6352 $as_echo "$ac_cv_header_iostream" >&6; }
   6353     if test $ac_cv_header_iostream = yes
   6354     then
   6355         U_IOSTREAM_SOURCE=199711
   6356     else
   6357         CXXFLAGS="${OLD_CXXFLAGS}"
   6358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ostream in iostream.h is really defined" >&5
   6359 $as_echo_n "checking whether ostream in iostream.h is really defined... " >&6; }
   6360         if test "${ac_cv_iostream_ok+set}" = set; then :
   6361   $as_echo_n "(cached) " >&6
   6362 else
   6363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6364 /* end confdefs.h.  */
   6365 #include <iostream.h>
   6366 int
   6367 main ()
   6368 {
   6369 ostream &testout = cout; testout << "test" << endl;
   6370   ;
   6371   return 0;
   6372 }
   6373 _ACEOF
   6374 if ac_fn_cxx_try_link "$LINENO"; then :
   6375   ac_cv_iostream_ok=yes
   6376 else
   6377   ac_cv_iostream_ok=no
   6378 fi
   6379 rm -f core conftest.err conftest.$ac_objext \
   6380     conftest$ac_exeext conftest.$ac_ext
   6381 fi
   6382 
   6383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iostream_ok" >&5
   6384 $as_echo "$ac_cv_iostream_ok" >&6; }
   6385         if test $ac_cv_iostream_ok = yes
   6386         then
   6387             U_IOSTREAM_SOURCE=198506
   6388         fi
   6389     fi
   6390     if test x$streams != x
   6391     then
   6392         if test $U_IOSTREAM_SOURCE -ge $streams
   6393         then
   6394             U_IOSTREAM_SOURCE=$streams
   6395             case "${icu_cv_host_frag}" in
   6396                 mh-hpux-acc)
   6397                     if test $U_IOSTREAM_SOURCE -lt 199711; then
   6398                         CXXFLAGS=${OLD_CXXFLAGS}
   6399                     fi
   6400                 ;;
   6401             esac
   6402         else
   6403             as_fn_error $? "${withval} iostream is not available" "$LINENO" 5
   6404         fi
   6405     fi
   6406 fi
   6407 
   6408 ac_ext=c
   6409 ac_cpp='$CPP $CPPFLAGS'
   6410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6413 
   6414 
   6415 # Check for endianness
   6416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   6417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   6418 if test "${ac_cv_c_bigendian+set}" = set; then :
   6419   $as_echo_n "(cached) " >&6
   6420 else
   6421   ac_cv_c_bigendian=unknown
   6422     # See if we're dealing with a universal compiler.
   6423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6424 /* end confdefs.h.  */
   6425 #ifndef __APPLE_CC__
   6426 	       not a universal capable compiler
   6427 	     #endif
   6428 	     typedef int dummy;
   6429 
   6430 _ACEOF
   6431 if ac_fn_c_try_compile "$LINENO"; then :
   6432 
   6433 	# Check for potential -arch flags.  It is not universal unless
   6434 	# there are at least two -arch flags with different values.
   6435 	ac_arch=
   6436 	ac_prev=
   6437 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   6438 	 if test -n "$ac_prev"; then
   6439 	   case $ac_word in
   6440 	     i?86 | x86_64 | ppc | ppc64)
   6441 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   6442 		 ac_arch=$ac_word
   6443 	       else
   6444 		 ac_cv_c_bigendian=universal
   6445 		 break
   6446 	       fi
   6447 	       ;;
   6448 	   esac
   6449 	   ac_prev=
   6450 	 elif test "x$ac_word" = "x-arch"; then
   6451 	   ac_prev=arch
   6452 	 fi
   6453        done
   6454 fi
   6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6456     if test $ac_cv_c_bigendian = unknown; then
   6457       # See if sys/param.h defines the BYTE_ORDER macro.
   6458       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6459 /* end confdefs.h.  */
   6460 #include <sys/types.h>
   6461 	     #include <sys/param.h>
   6462 
   6463 int
   6464 main ()
   6465 {
   6466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   6467 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   6468 		     && LITTLE_ENDIAN)
   6469 	      bogus endian macros
   6470 	     #endif
   6471 
   6472   ;
   6473   return 0;
   6474 }
   6475 _ACEOF
   6476 if ac_fn_c_try_compile "$LINENO"; then :
   6477   # It does; now see whether it defined to BIG_ENDIAN or not.
   6478 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6479 /* end confdefs.h.  */
   6480 #include <sys/types.h>
   6481 		#include <sys/param.h>
   6482 
   6483 int
   6484 main ()
   6485 {
   6486 #if BYTE_ORDER != BIG_ENDIAN
   6487 		 not big endian
   6488 		#endif
   6489 
   6490   ;
   6491   return 0;
   6492 }
   6493 _ACEOF
   6494 if ac_fn_c_try_compile "$LINENO"; then :
   6495   ac_cv_c_bigendian=yes
   6496 else
   6497   ac_cv_c_bigendian=no
   6498 fi
   6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6500 fi
   6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6502     fi
   6503     if test $ac_cv_c_bigendian = unknown; then
   6504       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   6505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6506 /* end confdefs.h.  */
   6507 #include <limits.h>
   6508 
   6509 int
   6510 main ()
   6511 {
   6512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   6513 	      bogus endian macros
   6514 	     #endif
   6515 
   6516   ;
   6517   return 0;
   6518 }
   6519 _ACEOF
   6520 if ac_fn_c_try_compile "$LINENO"; then :
   6521   # It does; now see whether it defined to _BIG_ENDIAN or not.
   6522 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6523 /* end confdefs.h.  */
   6524 #include <limits.h>
   6525 
   6526 int
   6527 main ()
   6528 {
   6529 #ifndef _BIG_ENDIAN
   6530 		 not big endian
   6531 		#endif
   6532 
   6533   ;
   6534   return 0;
   6535 }
   6536 _ACEOF
   6537 if ac_fn_c_try_compile "$LINENO"; then :
   6538   ac_cv_c_bigendian=yes
   6539 else
   6540   ac_cv_c_bigendian=no
   6541 fi
   6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6543 fi
   6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6545     fi
   6546     if test $ac_cv_c_bigendian = unknown; then
   6547       # Compile a test program.
   6548       if test "$cross_compiling" = yes; then :
   6549   # Try to guess by grepping values from an object file.
   6550 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6551 /* end confdefs.h.  */
   6552 short int ascii_mm[] =
   6553 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   6554 		short int ascii_ii[] =
   6555 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   6556 		int use_ascii (int i) {
   6557 		  return ascii_mm[i] + ascii_ii[i];
   6558 		}
   6559 		short int ebcdic_ii[] =
   6560 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   6561 		short int ebcdic_mm[] =
   6562 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   6563 		int use_ebcdic (int i) {
   6564 		  return ebcdic_mm[i] + ebcdic_ii[i];
   6565 		}
   6566 		extern int foo;
   6567 
   6568 int
   6569 main ()
   6570 {
   6571 return use_ascii (foo) == use_ebcdic (foo);
   6572   ;
   6573   return 0;
   6574 }
   6575 _ACEOF
   6576 if ac_fn_c_try_compile "$LINENO"; then :
   6577   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   6578 	      ac_cv_c_bigendian=yes
   6579 	    fi
   6580 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   6581 	      if test "$ac_cv_c_bigendian" = unknown; then
   6582 		ac_cv_c_bigendian=no
   6583 	      else
   6584 		# finding both strings is unlikely to happen, but who knows?
   6585 		ac_cv_c_bigendian=unknown
   6586 	      fi
   6587 	    fi
   6588 fi
   6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6590 else
   6591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6592 /* end confdefs.h.  */
   6593 $ac_includes_default
   6594 int
   6595 main ()
   6596 {
   6597 
   6598 	     /* Are we little or big endian?  From Harbison&Steele.  */
   6599 	     union
   6600 	     {
   6601 	       long int l;
   6602 	       char c[sizeof (long int)];
   6603 	     } u;
   6604 	     u.l = 1;
   6605 	     return u.c[sizeof (long int) - 1] == 1;
   6606 
   6607   ;
   6608   return 0;
   6609 }
   6610 _ACEOF
   6611 if ac_fn_c_try_run "$LINENO"; then :
   6612   ac_cv_c_bigendian=no
   6613 else
   6614   ac_cv_c_bigendian=yes
   6615 fi
   6616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6617   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6618 fi
   6619 
   6620     fi
   6621 fi
   6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   6623 $as_echo "$ac_cv_c_bigendian" >&6; }
   6624  case $ac_cv_c_bigendian in #(
   6625    yes)
   6626      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   6627 ;; #(
   6628    no)
   6629       ;; #(
   6630    universal)
   6631 
   6632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   6633 
   6634      ;; #(
   6635    *)
   6636      as_fn_error $? "unknown endianness
   6637  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   6638  esac
   6639 
   6640 if test $ac_cv_c_bigendian = no; then
   6641 U_IS_BIG_ENDIAN=0
   6642 U_ENDIAN_CHAR="l"
   6643 else
   6644 U_IS_BIG_ENDIAN=1
   6645 U_ENDIAN_CHAR="b"
   6646 fi
   6647 
   6648 
   6649 # Do various POSIX related checks
   6650 U_HAVE_NL_LANGINFO_CODESET=0
   6651 U_NL_LANGINFO_CODESET=-1
   6652 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
   6653 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
   6654   U_HAVE_NL_LANGINFO=1
   6655 else
   6656   U_HAVE_NL_LANGINFO=0
   6657 fi
   6658 
   6659 if test $U_HAVE_NL_LANGINFO -eq 1; then
   6660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
   6661 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
   6662 if test "${ac_cv_nl_langinfo_codeset+set}" = set; then :
   6663   $as_echo_n "(cached) " >&6
   6664 else
   6665   ac_cv_nl_langinfo_codeset="unknown"
   6666   for a in CODESET _NL_CTYPE_CODESET_NAME; do
   6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6668 /* end confdefs.h.  */
   6669 #include <langinfo.h>
   6670 int
   6671 main ()
   6672 {
   6673 nl_langinfo($a);
   6674   ;
   6675   return 0;
   6676 }
   6677 _ACEOF
   6678 if ac_fn_c_try_link "$LINENO"; then :
   6679   ac_cv_nl_langinfo_codeset="$a"; break
   6680 fi
   6681 rm -f core conftest.err conftest.$ac_objext \
   6682     conftest$ac_exeext conftest.$ac_ext
   6683   done
   6684 fi
   6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
   6686 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
   6687   if test x$ac_cv_nl_langinfo_codeset != xunknown
   6688   then
   6689       U_HAVE_NL_LANGINFO_CODESET=1
   6690       U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
   6691   fi
   6692 fi
   6693 
   6694 
   6695 
   6696 # Namespace support checks
   6697 ac_ext=cpp
   6698 ac_cpp='$CXXCPP $CPPFLAGS'
   6699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6702 
   6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
   6704 $as_echo_n "checking for namespace support... " >&6; }
   6705 if test "${ac_cv_namespace_ok+set}" = set; then :
   6706   $as_echo_n "(cached) " >&6
   6707 else
   6708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6709 /* end confdefs.h.  */
   6710 namespace x_version {void f(){}}
   6711     namespace x = x_version;
   6712     using namespace x_version;
   6713 
   6714 int
   6715 main ()
   6716 {
   6717 f();
   6718   ;
   6719   return 0;
   6720 }
   6721 _ACEOF
   6722 if ac_fn_cxx_try_link "$LINENO"; then :
   6723   ac_cv_namespace_ok=yes
   6724 else
   6725   ac_cv_namespace_ok=no
   6726 fi
   6727 rm -f core conftest.err conftest.$ac_objext \
   6728     conftest$ac_exeext conftest.$ac_ext
   6729 fi
   6730 
   6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
   6732 $as_echo "$ac_cv_namespace_ok" >&6; }
   6733 U_HAVE_NAMESPACE=1
   6734 if test $ac_cv_namespace_ok = no
   6735 then
   6736     U_HAVE_NAMESPACE=0
   6737 fi
   6738 
   6739 
   6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
   6741 $as_echo_n "checking for properly overriding new and delete... " >&6; }
   6742 U_OVERRIDE_CXX_ALLOCATION=0
   6743 U_HAVE_PLACEMENT_NEW=0
   6744 if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then :
   6745   $as_echo_n "(cached) " >&6
   6746 else
   6747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6748 /* end confdefs.h.  */
   6749 #include <stdlib.h>
   6750     class UMemory {
   6751     public:
   6752     void *operator new(size_t size) {return malloc(size);}
   6753     void *operator new[](size_t size) {return malloc(size);}
   6754     void operator delete(void *p) {free(p);}
   6755     void operator delete[](void *p) {free(p);}
   6756     };
   6757 
   6758 int
   6759 main ()
   6760 {
   6761 
   6762   ;
   6763   return 0;
   6764 }
   6765 _ACEOF
   6766 if ac_fn_cxx_try_link "$LINENO"; then :
   6767   ac_cv_override_cxx_allocation_ok=yes
   6768 else
   6769   ac_cv_override_cxx_allocation_ok=no
   6770 fi
   6771 rm -f core conftest.err conftest.$ac_objext \
   6772     conftest$ac_exeext conftest.$ac_ext
   6773 fi
   6774 
   6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
   6776 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
   6777 if test $ac_cv_override_cxx_allocation_ok = yes
   6778 then
   6779     U_OVERRIDE_CXX_ALLOCATION=1
   6780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
   6781 $as_echo_n "checking for placement new and delete... " >&6; }
   6782     if test "${ac_cv_override_placement_new_ok+set}" = set; then :
   6783   $as_echo_n "(cached) " >&6
   6784 else
   6785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6786 /* end confdefs.h.  */
   6787 #include <stdlib.h>
   6788         class UMemory {
   6789         public:
   6790         void *operator new(size_t size) {return malloc(size);}
   6791         void *operator new[](size_t size) {return malloc(size);}
   6792         void operator delete(void *p) {free(p);}
   6793         void operator delete[](void *p) {free(p);}
   6794         void * operator new(size_t, void *ptr) { return ptr; }
   6795         void operator delete(void *, void *) {}
   6796         };
   6797 
   6798 int
   6799 main ()
   6800 {
   6801 
   6802   ;
   6803   return 0;
   6804 }
   6805 _ACEOF
   6806 if ac_fn_cxx_try_link "$LINENO"; then :
   6807   ac_cv_override_placement_new_ok=yes
   6808 else
   6809   ac_cv_override_placement_new_ok=no
   6810 fi
   6811 rm -f core conftest.err conftest.$ac_objext \
   6812     conftest$ac_exeext conftest.$ac_ext
   6813 fi
   6814 
   6815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
   6816 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
   6817     if test $ac_cv_override_placement_new_ok = yes
   6818     then
   6819         U_HAVE_PLACEMENT_NEW=1
   6820     fi
   6821 fi
   6822 
   6823 
   6824 
   6825 # gcc atomic built-in functions check
   6826 # AC_TRY_LINK([], [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);],,
   6827 ac_ext=c
   6828 ac_cpp='$CPP $CPPFLAGS'
   6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6832 
   6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc atomic functions" >&5
   6834 $as_echo_n "checking for gcc atomic functions... " >&6; }
   6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6836 /* end confdefs.h.  */
   6837 
   6838         void *p;
   6839         int   i;
   6840 
   6841 int
   6842 main ()
   6843 {
   6844 
   6845         __sync_fetch_and_add(&i, 1);
   6846         __sync_fetch_and_sub(&i, 1);
   6847         __sync_val_compare_and_swap(&p, 0, 0);
   6848 
   6849 
   6850   ;
   6851   return 0;
   6852 }
   6853 _ACEOF
   6854 if ac_fn_c_try_link "$LINENO"; then :
   6855   U_HAVE_GCC_ATOMICS=1; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6856 $as_echo "yes" >&6; }
   6857 else
   6858   U_HAVE_GCC_ATOMICS=0; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6859 $as_echo "no" >&6; }
   6860 fi
   6861 rm -f core conftest.err conftest.$ac_objext \
   6862     conftest$ac_exeext conftest.$ac_ext
   6863 
   6864 
   6865 ac_ext=c
   6866 ac_cpp='$CPP $CPPFLAGS'
   6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6870 
   6871 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
   6872 if test "x$ac_cv_func_popen" = x""yes; then :
   6873 
   6874 fi
   6875 
   6876 if test x$ac_cv_func_popen = xyes
   6877 then
   6878      U_HAVE_POPEN=1
   6879 else
   6880      U_HAVE_POPEN=0
   6881 fi
   6882 
   6883 
   6884 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   6885 if test "x$ac_cv_func_tzset" = x""yes; then :
   6886 
   6887 fi
   6888 
   6889 U_HAVE_TZSET=0
   6890 if test x$ac_cv_func_tzset = xyes
   6891 then
   6892     U_TZSET=tzset
   6893     U_HAVE_TZSET=1
   6894 else
   6895     ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
   6896 if test "x$ac_cv_func__tzset" = x""yes; then :
   6897 
   6898 fi
   6899 
   6900     if test x$ac_cv_func__tzset = xyes
   6901     then
   6902         U_TZSET=_tzset
   6903         U_HAVE_TZSET=1
   6904     fi
   6905 fi
   6906 
   6907 
   6908 
   6909 U_HAVE_TZNAME=0
   6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
   6911 $as_echo_n "checking for tzname... " >&6; }
   6912 if test "${ac_cv_var_tzname+set}" = set; then :
   6913   $as_echo_n "(cached) " >&6
   6914 else
   6915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6916 /* end confdefs.h.  */
   6917 #ifndef __USE_POSIX
   6918 #define __USE_POSIX
   6919 #endif
   6920 #include <stdlib.h>
   6921 #include <time.h>
   6922 #ifndef tzname /* For SGI.  */
   6923 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
   6924 #endif
   6925 int
   6926 main ()
   6927 {
   6928 atoi(*tzname);
   6929   ;
   6930   return 0;
   6931 }
   6932 _ACEOF
   6933 if ac_fn_c_try_link "$LINENO"; then :
   6934   ac_cv_var_tzname=yes
   6935 else
   6936   ac_cv_var_tzname=no
   6937 fi
   6938 rm -f core conftest.err conftest.$ac_objext \
   6939     conftest$ac_exeext conftest.$ac_ext
   6940 fi
   6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
   6942 $as_echo "$ac_cv_var_tzname" >&6; }
   6943 if test $ac_cv_var_tzname = yes; then
   6944   U_TZNAME=tzname
   6945   U_HAVE_TZNAME=1
   6946 else
   6947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
   6948 $as_echo_n "checking for _tzname... " >&6; }
   6949 if test "${ac_cv_var__tzname+set}" = set; then :
   6950   $as_echo_n "(cached) " >&6
   6951 else
   6952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6953 /* end confdefs.h.  */
   6954 #include <stdlib.h>
   6955   #include <time.h>
   6956   extern char *_tzname[];
   6957 int
   6958 main ()
   6959 {
   6960 atoi(*_tzname);
   6961   ;
   6962   return 0;
   6963 }
   6964 _ACEOF
   6965 if ac_fn_c_try_link "$LINENO"; then :
   6966   ac_cv_var__tzname=yes
   6967 else
   6968   ac_cv_var__tzname=no
   6969 fi
   6970 rm -f core conftest.err conftest.$ac_objext \
   6971     conftest$ac_exeext conftest.$ac_ext
   6972 fi
   6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
   6974 $as_echo "$ac_cv_var__tzname" >&6; }
   6975     if test $ac_cv_var__tzname = yes; then
   6976       U_TZNAME=_tzname
   6977       U_HAVE_TZNAME=1
   6978     fi
   6979 fi
   6980 
   6981 
   6982 
   6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
   6984 $as_echo_n "checking for timezone... " >&6; }
   6985 if test "${ac_cv_var_timezone+set}" = set; then :
   6986   $as_echo_n "(cached) " >&6
   6987 else
   6988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6989 /* end confdefs.h.  */
   6990 #ifndef __USE_POSIX
   6991 #define __USE_POSIX
   6992 #endif
   6993 #ifndef __USE_XOPEN
   6994 #define __USE_XOPEN
   6995 #endif
   6996 #include <time.h>
   6997 
   6998 int
   6999 main ()
   7000 {
   7001 timezone = 1;
   7002   ;
   7003   return 0;
   7004 }
   7005 _ACEOF
   7006 if ac_fn_c_try_link "$LINENO"; then :
   7007   ac_cv_var_timezone=yes
   7008 else
   7009   ac_cv_var_timezone=no
   7010 fi
   7011 rm -f core conftest.err conftest.$ac_objext \
   7012     conftest$ac_exeext conftest.$ac_ext
   7013 fi
   7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
   7015 $as_echo "$ac_cv_var_timezone" >&6; }
   7016 U_HAVE_TIMEZONE=0
   7017 if test $ac_cv_var_timezone = yes; then
   7018   U_TIMEZONE=timezone
   7019   U_HAVE_TIMEZONE=1
   7020 else
   7021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
   7022 $as_echo_n "checking for __timezone... " >&6; }
   7023 if test "${ac_cv_var___timezone+set}" = set; then :
   7024   $as_echo_n "(cached) " >&6
   7025 else
   7026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7027 /* end confdefs.h.  */
   7028 #include <time.h>
   7029 int
   7030 main ()
   7031 {
   7032 __timezone = 1;
   7033   ;
   7034   return 0;
   7035 }
   7036 _ACEOF
   7037 if ac_fn_c_try_link "$LINENO"; then :
   7038   ac_cv_var___timezone=yes
   7039 else
   7040   ac_cv_var___timezone=no
   7041 fi
   7042 rm -f core conftest.err conftest.$ac_objext \
   7043     conftest$ac_exeext conftest.$ac_ext
   7044 fi
   7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
   7046 $as_echo "$ac_cv_var___timezone" >&6; }
   7047   if test $ac_cv_var___timezone = yes; then
   7048     U_TIMEZONE=__timezone
   7049     U_HAVE_TIMEZONE=1
   7050   else
   7051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
   7052 $as_echo_n "checking for _timezone... " >&6; }
   7053 if test "${ac_cv_var__timezone+set}" = set; then :
   7054   $as_echo_n "(cached) " >&6
   7055 else
   7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7057 /* end confdefs.h.  */
   7058 #include <time.h>
   7059 int
   7060 main ()
   7061 {
   7062 _timezone = 1;
   7063   ;
   7064   return 0;
   7065 }
   7066 _ACEOF
   7067 if ac_fn_c_try_link "$LINENO"; then :
   7068   ac_cv_var__timezone=yes
   7069 else
   7070   ac_cv_var__timezone=no
   7071 fi
   7072 rm -f core conftest.err conftest.$ac_objext \
   7073     conftest$ac_exeext conftest.$ac_ext
   7074 fi
   7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
   7076 $as_echo "$ac_cv_var__timezone" >&6; }
   7077     if test $ac_cv_var__timezone = yes; then
   7078       U_TIMEZONE=_timezone
   7079       U_HAVE_TIMEZONE=1
   7080     fi
   7081   fi
   7082 fi
   7083 
   7084 
   7085 
   7086 # Checks for typedefs
   7087 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
   7088 if test "x$ac_cv_type_int8_t" = x""yes; then :
   7089 
   7090 else
   7091 
   7092 cat >>confdefs.h <<_ACEOF
   7093 #define int8_t signed char
   7094 _ACEOF
   7095 
   7096 fi
   7097 
   7098 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   7099 if test "x$ac_cv_type_uint8_t" = x""yes; then :
   7100 
   7101 else
   7102 
   7103 cat >>confdefs.h <<_ACEOF
   7104 #define uint8_t unsigned char
   7105 _ACEOF
   7106 
   7107 fi
   7108 
   7109 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   7110 if test "x$ac_cv_type_int16_t" = x""yes; then :
   7111 
   7112 else
   7113 
   7114 cat >>confdefs.h <<_ACEOF
   7115 #define int16_t signed short
   7116 _ACEOF
   7117 
   7118 fi
   7119 
   7120 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   7121 if test "x$ac_cv_type_uint16_t" = x""yes; then :
   7122 
   7123 else
   7124 
   7125 cat >>confdefs.h <<_ACEOF
   7126 #define uint16_t unsigned short
   7127 _ACEOF
   7128 
   7129 fi
   7130 
   7131 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   7132 if test "x$ac_cv_type_int32_t" = x""yes; then :
   7133 
   7134 else
   7135 
   7136 cat >>confdefs.h <<_ACEOF
   7137 #define int32_t signed long
   7138 _ACEOF
   7139 
   7140 fi
   7141 
   7142 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   7143 if test "x$ac_cv_type_uint32_t" = x""yes; then :
   7144 
   7145 else
   7146 
   7147 cat >>confdefs.h <<_ACEOF
   7148 #define uint32_t unsigned long
   7149 _ACEOF
   7150 
   7151 fi
   7152 
   7153 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   7154 if test "x$ac_cv_type_int64_t" = x""yes; then :
   7155 
   7156 else
   7157 
   7158 cat >>confdefs.h <<_ACEOF
   7159 #define int64_t signed long long
   7160 _ACEOF
   7161 
   7162 fi
   7163 
   7164 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   7165 if test "x$ac_cv_type_uint64_t" = x""yes; then :
   7166 
   7167 else
   7168 
   7169 cat >>confdefs.h <<_ACEOF
   7170 #define uint64_t unsigned long long
   7171 _ACEOF
   7172 
   7173 fi
   7174 
   7175 
   7176 if test $ac_cv_type_int8_t = no; then
   7177 HAVE_INT8_T=0
   7178 else
   7179 HAVE_INT8_T=1
   7180 fi
   7181 
   7182 
   7183 if test $ac_cv_type_uint8_t = no; then
   7184 HAVE_UINT8_T=0
   7185 else
   7186 HAVE_UINT8_T=1
   7187 fi
   7188 
   7189 
   7190 if test $ac_cv_type_int16_t = no; then
   7191 HAVE_INT16_T=0
   7192 else
   7193 HAVE_INT16_T=1
   7194 fi
   7195 
   7196 
   7197 if test $ac_cv_type_uint16_t = no; then
   7198 HAVE_UINT16_T=0
   7199 else
   7200 HAVE_UINT16_T=1
   7201 fi
   7202 
   7203 
   7204 if test $ac_cv_type_int32_t = no; then
   7205 HAVE_INT32_T=0
   7206 else
   7207 HAVE_INT32_T=1
   7208 fi
   7209 
   7210 
   7211 if test $ac_cv_type_uint32_t = no; then
   7212 HAVE_UINT32_T=0
   7213 else
   7214 HAVE_UINT32_T=1
   7215 fi
   7216 
   7217 
   7218 if test $ac_cv_type_int64_t = no; then
   7219 HAVE_INT64_T=0
   7220 else
   7221 HAVE_INT64_T=1
   7222 fi
   7223 
   7224 
   7225 if test $ac_cv_type_uint64_t = no; then
   7226 HAVE_UINT64_T=0
   7227 else
   7228 HAVE_UINT64_T=1
   7229 fi
   7230 
   7231 
   7232 # Do various wchar_t related checks
   7233 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
   7234 if test "x$ac_cv_header_wchar_h" = x""yes; then :
   7235 
   7236 fi
   7237 
   7238 
   7239 if test "$ac_cv_header_wchar_h" = no
   7240 then
   7241     U_HAVE_WCHAR_H=0
   7242     U_HAVE_WCSCPY=0
   7243 else
   7244 
   7245 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
   7246 
   7247     U_HAVE_WCHAR_H=1
   7248     # Some broken systems have wchar.h but not some of its functions...
   7249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
   7250 $as_echo_n "checking for library containing wcscpy... " >&6; }
   7251 if test "${ac_cv_search_wcscpy+set}" = set; then :
   7252   $as_echo_n "(cached) " >&6
   7253 else
   7254   ac_func_search_save_LIBS=$LIBS
   7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7256 /* end confdefs.h.  */
   7257 
   7258 /* Override any GCC internal prototype to avoid an error.
   7259    Use char because int might match the return type of a GCC
   7260    builtin and then its argument prototype would still apply.  */
   7261 #ifdef __cplusplus
   7262 extern "C"
   7263 #endif
   7264 char wcscpy ();
   7265 int
   7266 main ()
   7267 {
   7268 return wcscpy ();
   7269   ;
   7270   return 0;
   7271 }
   7272 _ACEOF
   7273 for ac_lib in '' wcs w; do
   7274   if test -z "$ac_lib"; then
   7275     ac_res="none required"
   7276   else
   7277     ac_res=-l$ac_lib
   7278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7279   fi
   7280   if ac_fn_c_try_link "$LINENO"; then :
   7281   ac_cv_search_wcscpy=$ac_res
   7282 fi
   7283 rm -f core conftest.err conftest.$ac_objext \
   7284     conftest$ac_exeext
   7285   if test "${ac_cv_search_wcscpy+set}" = set; then :
   7286   break
   7287 fi
   7288 done
   7289 if test "${ac_cv_search_wcscpy+set}" = set; then :
   7290 
   7291 else
   7292   ac_cv_search_wcscpy=no
   7293 fi
   7294 rm conftest.$ac_ext
   7295 LIBS=$ac_func_search_save_LIBS
   7296 fi
   7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
   7298 $as_echo "$ac_cv_search_wcscpy" >&6; }
   7299 ac_res=$ac_cv_search_wcscpy
   7300 if test "$ac_res" != no; then :
   7301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7302 
   7303 fi
   7304 
   7305     if test "$ac_cv_search_wcscpy" != no; then
   7306       U_HAVE_WCSCPY=1
   7307     else
   7308       U_HAVE_WCSCPY=0
   7309     fi
   7310 fi
   7311 
   7312 
   7313 
   7314 # The cast to long int works around a bug in the HP C Compiler
   7315 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7316 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7317 # This bug is HP SR number 8606223364.
   7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
   7319 $as_echo_n "checking size of wchar_t... " >&6; }
   7320 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
   7321   $as_echo_n "(cached) " >&6
   7322 else
   7323   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "
   7324 #if STDC_HEADERS
   7325 #include <stddef.h>
   7326 #endif
   7327 #include <stdlib.h>
   7328 #if HAVE_WCHAR_H
   7329 #include <string.h>
   7330 #include <wchar.h>
   7331 #endif
   7332 "; then :
   7333 
   7334 else
   7335   if test "$ac_cv_type_wchar_t" = yes; then
   7336      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7338 as_fn_error 77 "cannot compute sizeof (wchar_t)
   7339 See \`config.log' for more details" "$LINENO" 5; }
   7340    else
   7341      ac_cv_sizeof_wchar_t=0
   7342    fi
   7343 fi
   7344 
   7345 fi
   7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
   7347 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
   7348 
   7349 
   7350 
   7351 cat >>confdefs.h <<_ACEOF
   7352 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
   7353 _ACEOF
   7354 
   7355 
   7356 U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
   7357 # We do this check to verify that everything is okay.
   7358 if test $U_SIZEOF_WCHAR_T = 0; then
   7359     if test $U_HAVE_WCHAR_H=1; then
   7360        as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
   7361     fi
   7362 fi
   7363 
   7364 
   7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
   7366 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
   7367 U_CHECK_UTF16_STRING=1
   7368 CHECK_UTF16_STRING_RESULT="unknown"
   7369 
   7370 case "${host}" in
   7371 *-*-aix*|powerpc64-*-linux*)
   7372     if test "$ac_cv_c_compiler_gnu" = no; then
   7373         OLD_CFLAGS="${CFLAGS}"
   7374         OLD_CXXFLAGS="${CXXFLAGS}"
   7375         CFLAGS="${CFLAGS} -qutf"
   7376         CXXFLAGS="${CXXFLAGS} -qutf"
   7377         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7378 /* end confdefs.h.  */
   7379 const unsigned short hello[] = u"hello";
   7380 int
   7381 main ()
   7382 {
   7383 
   7384   ;
   7385   return 0;
   7386 }
   7387 _ACEOF
   7388 if ac_fn_c_try_compile "$LINENO"; then :
   7389   U_CHECK_UTF16_STRING=1
   7390 else
   7391   U_CHECK_UTF16_STRING=0
   7392 fi
   7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7394         if test "$U_CHECK_UTF16_STRING" = 0; then
   7395             CFLAGS="${OLD_CFLAGS}"
   7396             CXXFLAGS="${OLD_CXXFLAGS}"
   7397         else
   7398             CHECK_UTF16_STRING_RESULT="-qutf"
   7399         fi
   7400     fi
   7401     ;;
   7402 *-*-solaris*)
   7403     if test "$ac_cv_c_compiler_gnu" = no; then
   7404         OLD_CFLAGS="${CFLAGS}"
   7405         OLD_CXXFLAGS="${CXXFLAGS}"
   7406         CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
   7407         CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
   7408         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7409 /* end confdefs.h.  */
   7410 const unsigned short hello[] = U"hello";
   7411 int
   7412 main ()
   7413 {
   7414 
   7415   ;
   7416   return 0;
   7417 }
   7418 _ACEOF
   7419 if ac_fn_c_try_compile "$LINENO"; then :
   7420   U_CHECK_UTF16_STRING=1
   7421 else
   7422   U_CHECK_UTF16_STRING=0
   7423 fi
   7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7425         if test "$U_CHECK_UTF16_STRING" = 0; then
   7426             CFLAGS="${OLD_CFLAGS}"
   7427             CXXFLAGS="${OLD_CXXFLAGS}"
   7428         else
   7429             CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
   7430 
   7431             # Since we can't detect the availability of this UTF-16 syntax at compile time,
   7432             # we depend on configure telling us that we can use it.
   7433             # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
   7434             # we only use this macro within ICU.
   7435             # If an ICU user uses icu-config, this feature will be enabled.
   7436             CPPFLAGS="${CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
   7437             U_CHECK_UTF16_STRING=0
   7438         fi
   7439     fi
   7440     ;;
   7441 *-*-hpux*)
   7442     if test "$ac_cv_c_compiler_gnu" = no; then
   7443         # The option will be detected at compile time without additional compiler options.
   7444         CHECK_UTF16_STRING_RESULT="available"
   7445     fi
   7446     ;;
   7447 *-*-cygwin)
   7448     # wchar_t can be used
   7449     CHECK_UTF16_STRING_RESULT="available"
   7450     ;;
   7451 *)
   7452     ;;
   7453 esac
   7454 
   7455 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
   7456 # Since we have to use a different standard, if strict is enable, don't enable UTF16 string literals.
   7457 U_CHECK_GNUC_UTF16_STRING=0
   7458 if test "$ac_use_strict_options" = no && test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
   7459     if test "$ac_cv_c_compiler_gnu" = yes; then
   7460         OLD_CFLAGS="${CFLAGS}"
   7461         OLD_CXXFLAGS="${CXXFLAGS}"
   7462         CFLAGS="${CFLAGS} -std=gnu99 -D_GCC_"
   7463         CXXFLAGS="${CXXFLAGS} -std=c++0x"
   7464         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7465 /* end confdefs.h.  */
   7466 
   7467 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
   7468 #ifdef _GCC_
   7469 typedef __CHAR16_TYPE__ char16_t;
   7470 #endif
   7471 char16_t test[] = u"This is a UTF16 literal string.";
   7472 #else
   7473 GCC IS TOO OLD!
   7474 #endif
   7475 
   7476 int
   7477 main ()
   7478 {
   7479 
   7480   ;
   7481   return 0;
   7482 }
   7483 _ACEOF
   7484 if ac_fn_c_try_compile "$LINENO"; then :
   7485   U_CHECK_UTF16_STRING=1
   7486 else
   7487   U_CHECK_UTF16_STRING=0
   7488 fi
   7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7490         if test "$U_CHECK_UTF16_STRING" = 1; then
   7491             CHECK_UTF16_STRING_RESULT="available";
   7492             U_CHECK_GNUC_UTF16_STRING=1
   7493         else
   7494             CFLAGS="${OLD_CFLAGS}"
   7495             CXXFLAGS="${OLD_CXXFLAGS}"
   7496         fi
   7497     fi
   7498 fi
   7499 
   7500 
   7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
   7502 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
   7503 
   7504 
   7505 # Enable/disable extras
   7506 # Check whether --enable-extras was given.
   7507 if test "${enable_extras+set}" = set; then :
   7508   enableval=$enable_extras; case "${enableval}" in
   7509 		yes) extras=true ;;
   7510 		no)  extras=false ;;
   7511 		*) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
   7512 		esac
   7513 else
   7514   extras=true
   7515 fi
   7516 
   7517 
   7518 if test "$extras" = true; then
   7519   EXTRAS_TRUE=
   7520 else
   7521   EXTRAS_TRUE='#'
   7522 fi
   7523 # Check whether --enable-icuio was given.
   7524 if test "${enable_icuio+set}" = set; then :
   7525   enableval=$enable_icuio; case "${enableval}" in
   7526 		yes) icuio=true ;;
   7527 		no)  icuio=false ;;
   7528 		*) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
   7529 		esac
   7530 else
   7531   icuio=true
   7532 fi
   7533 
   7534 
   7535 if test "$icuio" = true; then
   7536   ICUIO_TRUE=
   7537 else
   7538   ICUIO_TRUE='#'
   7539 fi
   7540 
   7541 # Enable/disable layout
   7542 # Check whether --enable-layout was given.
   7543 if test "${enable_layout+set}" = set; then :
   7544   enableval=$enable_layout; case "${enableval}" in
   7545 		yes) layout=true ;;
   7546 		no)  layout=false ;;
   7547 		*) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
   7548 		esac
   7549 else
   7550   layout=true
   7551 fi
   7552 
   7553 
   7554 if test "$layout" = true; then
   7555   LAYOUT_TRUE=
   7556 else
   7557   LAYOUT_TRUE='#'
   7558 fi
   7559 
   7560 
   7561 # Check whether --with-data-packaging was given.
   7562 if test "${with_data_packaging+set}" = set; then :
   7563   withval=$with_data_packaging; case "${withval}" in
   7564                 files|archive|library) datapackaging=$withval ;;
   7565 		auto) datapackaging=$withval ;;
   7566 		common) datapackaging=archive ;;
   7567 		dll) datapackaging=library ;;
   7568 		static) datapackaging=static ;;
   7569 		*) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
   7570 		esac
   7571 else
   7572   datapackaging=
   7573 fi
   7574 
   7575 
   7576 # Note:  'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
   7577 # thesysconfdir=`eval echo $sysconfdir`
   7578 thedatadir=`eval echo $datadir`
   7579 # Always put raw data files in share/icu/{version}, etc.   Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}.
   7580 pkgicudatadir=$datadir
   7581 thepkgicudatadir=$thedatadir
   7582 
   7583 
   7584 
   7585 
   7586 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
   7587 	# default to library
   7588 	datapackaging=library
   7589 	if test "$ENABLE_STATIC" = "YES"; then
   7590 		if test "$ENABLE_SHARED" != "YES"; then
   7591 			datapackaging=static
   7592 		fi
   7593 	fi
   7594 fi
   7595 
   7596 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
   7597 
   7598 datapackaging_msg="(No explaination for mode $datapackaging.)"
   7599 
   7600 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override."
   7601 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override."
   7602 datapackaging_howfound="(unknown)"
   7603 
   7604 case "$datapackaging" in
   7605     files)
   7606     DATA_PACKAGING_MODE=files
   7607     datapackaging_msg="ICU data will be stored in individual files."
   7608     datapackaging_howfound="$datapackaging_msg_path"
   7609     ;;
   7610     archive)
   7611     DATA_PACKAGING_MODE=common
   7612     datapackaging_msg="ICU data will be stored in a single .dat file."
   7613     datapackaging_howfound="$datapackaging_msg_path"
   7614     ;;
   7615     library)
   7616     DATA_PACKAGING_MODE=dll
   7617     datapackaging_msg="ICU data will be linked with ICU."
   7618     if test "$ENABLE_STATIC" = "YES"; then
   7619         datapackaging_msg="$datapackaging_msg A static data library will be built. "
   7620     fi
   7621     if test "$ENABLE_SHARED" = "YES"; then
   7622         datapackaging_msg="$datapackaging_msg A shared data library will be built. "
   7623     fi
   7624     datapackaging_howfound="$datapackaging_msg_set"
   7625     ;;
   7626     static)
   7627     DATA_PACKAGING_MODE=static
   7628     datapackaging_msg="ICU data will be stored in a static library."
   7629     datapackaging_howfound="$datapackaging_msg_set"
   7630     ;;
   7631 esac
   7632 
   7633 
   7634 # Sets a library suffix
   7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
   7636 $as_echo_n "checking for a library suffix to use... " >&6; }
   7637 
   7638 # Check whether --with-library-suffix was given.
   7639 if test "${with_library_suffix+set}" = set; then :
   7640   withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
   7641 else
   7642   ICULIBSUFFIX=
   7643 fi
   7644 
   7645 msg=$ICULIBSUFFIX
   7646 if test "$msg" = ""; then
   7647     msg=none
   7648 fi
   7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
   7650 $as_echo "$msg" >&6; }
   7651 
   7652 if test "$ICULIBSUFFIX" != ""
   7653 then
   7654     U_HAVE_LIB_SUFFIX=1
   7655     ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
   7656 else
   7657     U_HAVE_LIB_SUFFIX=0
   7658 fi
   7659 
   7660 
   7661 
   7662 # Enable/disable tests
   7663 # Check whether --enable-tests was given.
   7664 if test "${enable_tests+set}" = set; then :
   7665   enableval=$enable_tests; case "${enableval}" in
   7666 		yes) tests=true ;;
   7667 		no)  tests=false ;;
   7668 		*) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
   7669 		esac
   7670 else
   7671   tests=true
   7672 fi
   7673 
   7674 
   7675 if test "$tests" = true; then
   7676   TESTS_TRUE=
   7677 else
   7678   TESTS_TRUE='#'
   7679 fi
   7680 
   7681 # Enable/disable samples
   7682 # Check whether --enable-samples was given.
   7683 if test "${enable_samples+set}" = set; then :
   7684   enableval=$enable_samples; case "${enableval}" in
   7685 		yes) samples=true ;;
   7686 		no)  samples=false ;;
   7687 		*) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
   7688 		esac
   7689 else
   7690   samples=true
   7691 fi
   7692 
   7693 
   7694 if test "$samples" = true; then
   7695   SAMPLES_TRUE=
   7696 else
   7697   SAMPLES_TRUE='#'
   7698 fi
   7699 
   7700 ICUDATA_CHAR=$U_ENDIAN_CHAR
   7701 
   7702 # Platform-specific Makefile setup
   7703 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
   7704 case "${host}" in
   7705 	*-*-solaris*) 	platform=U_SOLARIS ;;
   7706 	*-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu)        platform=U_LINUX ;;
   7707 	*-*-*bsd*|*-*-dragonfly*) 	platform=U_BSD ;;
   7708 	*-*-aix*) 	platform=U_AIX ;;
   7709 	*-*-hpux*) 	platform=U_HPUX ;;
   7710 	*-apple-darwin*|*-apple-rhapsody*)	platform=U_DARWIN ;;
   7711 	*-*-cygwin*|*-*-mingw*)	platform=U_CYGWIN ;;
   7712 	*-*ibm-openedition*|*-*-os390*)	platform=OS390
   7713 			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
   7714 				ICUDATA_CHAR="e"
   7715 			fi ;;
   7716 	*-*-os400*)	platform=OS400
   7717 			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
   7718 				ICUDATA_CHAR="e"
   7719 			fi ;;
   7720 	*-*-nto*)	platform=U_QNX ;;
   7721 	*-dec-osf*) 	platform=U_OSF ;;
   7722 	*-*-beos)		platform=U_BEOS ;;
   7723 	*-*-irix*)		platform=U_IRIX ;;
   7724 	*-ncr-*)		platform=U_MPRAS ;;
   7725 	*) 		platform=U_UNKNOWN_PLATFORM ;;
   7726 esac
   7727 
   7728 
   7729 platform_make_fragment_name="$icu_cv_host_frag"
   7730 platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
   7731 
   7732 
   7733 
   7734 if test "${FORCE_LIBS}" != ""; then
   7735    echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}"  1>&6
   7736    LIBS=${FORCE_LIBS}
   7737 fi
   7738 
   7739 
   7740 # Now that we're done using CPPFLAGS etc. for tests, we can change it
   7741 # for build.
   7742 
   7743 if test $ICU_USE_THREADS -ne 0
   7744 then
   7745     CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
   7746     CFLAGS="$CFLAGS \$(THREADSCFLAGS)"
   7747     CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)"
   7748 fi
   7749 
   7750 # output the Makefiles
   7751 ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile common/unicode/platform.h"
   7752 
   7753 cat >confcache <<\_ACEOF
   7754 # This file is a shell script that caches the results of configure
   7755 # tests run on this system so they can be shared between configure
   7756 # scripts and configure runs, see configure's option --config-cache.
   7757 # It is not useful on other systems.  If it contains results you don't
   7758 # want to keep, you may remove or edit it.
   7759 #
   7760 # config.status only pays attention to the cache file if you give it
   7761 # the --recheck option to rerun configure.
   7762 #
   7763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   7764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   7765 # following values.
   7766 
   7767 _ACEOF
   7768 
   7769 # The following way of writing the cache mishandles newlines in values,
   7770 # but we know of no workaround that is simple, portable, and efficient.
   7771 # So, we kill variables containing newlines.
   7772 # Ultrix sh set writes to stderr and can't be redirected directly,
   7773 # and sets the high bit in the cache file unless we assign to the vars.
   7774 (
   7775   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   7776     eval ac_val=\$$ac_var
   7777     case $ac_val in #(
   7778     *${as_nl}*)
   7779       case $ac_var in #(
   7780       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   7781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   7782       esac
   7783       case $ac_var in #(
   7784       _ | IFS | as_nl) ;; #(
   7785       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   7786       *) { eval $ac_var=; unset $ac_var;} ;;
   7787       esac ;;
   7788     esac
   7789   done
   7790 
   7791   (set) 2>&1 |
   7792     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   7793     *${as_nl}ac_space=\ *)
   7794       # `set' does not quote correctly, so add quotes: double-quote
   7795       # substitution turns \\\\ into \\, and sed turns \\ into \.
   7796       sed -n \
   7797 	"s/'/'\\\\''/g;
   7798 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   7799       ;; #(
   7800     *)
   7801       # `set' quotes correctly as required by POSIX, so do not add quotes.
   7802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   7803       ;;
   7804     esac |
   7805     sort
   7806 ) |
   7807   sed '
   7808      /^ac_cv_env_/b end
   7809      t clear
   7810      :clear
   7811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   7812      t end
   7813      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   7814      :end' >>confcache
   7815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   7816   if test -w "$cache_file"; then
   7817     test "x$cache_file" != "x/dev/null" &&
   7818       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   7819 $as_echo "$as_me: updating cache $cache_file" >&6;}
   7820     cat confcache >$cache_file
   7821   else
   7822     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   7823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   7824   fi
   7825 fi
   7826 rm -f confcache
   7827 
   7828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   7829 # Let make expand exec_prefix.
   7830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7831 
   7832 DEFS=-DHAVE_CONFIG_H
   7833 
   7834 ac_libobjs=
   7835 ac_ltlibobjs=
   7836 U=
   7837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   7838   # 1. Remove the extension, and $U if already installed.
   7839   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   7840   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   7841   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   7842   #    will be set to the directory where LIBOBJS objects are built.
   7843   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   7844   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   7845 done
   7846 LIBOBJS=$ac_libobjs
   7847 
   7848 LTLIBOBJS=$ac_ltlibobjs
   7849 
   7850 
   7851 
   7852 
   7853 : ${CONFIG_STATUS=./config.status}
   7854 ac_write_fail=0
   7855 ac_clean_files_save=$ac_clean_files
   7856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   7857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   7858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   7859 as_write_fail=0
   7860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   7861 #! $SHELL
   7862 # Generated by $as_me.
   7863 # Run this file to recreate the current configuration.
   7864 # Compiler output produced by configure, useful for debugging
   7865 # configure, is in config.log if it exists.
   7866 
   7867 debug=false
   7868 ac_cs_recheck=false
   7869 ac_cs_silent=false
   7870 
   7871 SHELL=\${CONFIG_SHELL-$SHELL}
   7872 export SHELL
   7873 _ASEOF
   7874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   7875 ## -------------------- ##
   7876 ## M4sh Initialization. ##
   7877 ## -------------------- ##
   7878 
   7879 # Be more Bourne compatible
   7880 DUALCASE=1; export DUALCASE # for MKS sh
   7881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   7882   emulate sh
   7883   NULLCMD=:
   7884   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   7885   # is contrary to our usage.  Disable this feature.
   7886   alias -g '${1+"$@"}'='"$@"'
   7887   setopt NO_GLOB_SUBST
   7888 else
   7889   case `(set -o) 2>/dev/null` in #(
   7890   *posix*) :
   7891     set -o posix ;; #(
   7892   *) :
   7893      ;;
   7894 esac
   7895 fi
   7896 
   7897 
   7898 as_nl='
   7899 '
   7900 export as_nl
   7901 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   7902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   7903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   7904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   7905 # Prefer a ksh shell builtin over an external printf program on Solaris,
   7906 # but without wasting forks for bash or zsh.
   7907 if test -z "$BASH_VERSION$ZSH_VERSION" \
   7908     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   7909   as_echo='print -r --'
   7910   as_echo_n='print -rn --'
   7911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   7912   as_echo='printf %s\n'
   7913   as_echo_n='printf %s'
   7914 else
   7915   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   7916     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   7917     as_echo_n='/usr/ucb/echo -n'
   7918   else
   7919     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   7920     as_echo_n_body='eval
   7921       arg=$1;
   7922       case $arg in #(
   7923       *"$as_nl"*)
   7924 	expr "X$arg" : "X\\(.*\\)$as_nl";
   7925 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   7926       esac;
   7927       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   7928     '
   7929     export as_echo_n_body
   7930     as_echo_n='sh -c $as_echo_n_body as_echo'
   7931   fi
   7932   export as_echo_body
   7933   as_echo='sh -c $as_echo_body as_echo'
   7934 fi
   7935 
   7936 # The user is always right.
   7937 if test "${PATH_SEPARATOR+set}" != set; then
   7938   PATH_SEPARATOR=:
   7939   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   7940     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   7941       PATH_SEPARATOR=';'
   7942   }
   7943 fi
   7944 
   7945 
   7946 # IFS
   7947 # We need space, tab and new line, in precisely that order.  Quoting is
   7948 # there to prevent editors from complaining about space-tab.
   7949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   7950 # splitting by setting IFS to empty value.)
   7951 IFS=" ""	$as_nl"
   7952 
   7953 # Find who we are.  Look in the path if we contain no directory separator.
   7954 case $0 in #((
   7955   *[\\/]* ) as_myself=$0 ;;
   7956   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7957 for as_dir in $PATH
   7958 do
   7959   IFS=$as_save_IFS
   7960   test -z "$as_dir" && as_dir=.
   7961     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   7962   done
   7963 IFS=$as_save_IFS
   7964 
   7965      ;;
   7966 esac
   7967 # We did not find ourselves, most probably we were run as `sh COMMAND'
   7968 # in which case we are not to be found in the path.
   7969 if test "x$as_myself" = x; then
   7970   as_myself=$0
   7971 fi
   7972 if test ! -f "$as_myself"; then
   7973   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   7974   exit 1
   7975 fi
   7976 
   7977 # Unset variables that we do not need and which cause bugs (e.g. in
   7978 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   7979 # suppresses any "Segmentation fault" message there.  '((' could
   7980 # trigger a bug in pdksh 5.2.14.
   7981 for as_var in BASH_ENV ENV MAIL MAILPATH
   7982 do eval test x\${$as_var+set} = xset \
   7983   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   7984 done
   7985 PS1='$ '
   7986 PS2='> '
   7987 PS4='+ '
   7988 
   7989 # NLS nuisances.
   7990 LC_ALL=C
   7991 export LC_ALL
   7992 LANGUAGE=C
   7993 export LANGUAGE
   7994 
   7995 # CDPATH.
   7996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   7997 
   7998 
   7999 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   8000 # ----------------------------------------
   8001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   8002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   8003 # script with STATUS, using 1 if that was 0.
   8004 as_fn_error ()
   8005 {
   8006   as_status=$1; test $as_status -eq 0 && as_status=1
   8007   if test "$4"; then
   8008     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   8009     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   8010   fi
   8011   $as_echo "$as_me: error: $2" >&2
   8012   as_fn_exit $as_status
   8013 } # as_fn_error
   8014 
   8015 
   8016 # as_fn_set_status STATUS
   8017 # -----------------------
   8018 # Set $? to STATUS, without forking.
   8019 as_fn_set_status ()
   8020 {
   8021   return $1
   8022 } # as_fn_set_status
   8023 
   8024 # as_fn_exit STATUS
   8025 # -----------------
   8026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   8027 as_fn_exit ()
   8028 {
   8029   set +e
   8030   as_fn_set_status $1
   8031   exit $1
   8032 } # as_fn_exit
   8033 
   8034 # as_fn_unset VAR
   8035 # ---------------
   8036 # Portably unset VAR.
   8037 as_fn_unset ()
   8038 {
   8039   { eval $1=; unset $1;}
   8040 }
   8041 as_unset=as_fn_unset
   8042 # as_fn_append VAR VALUE
   8043 # ----------------------
   8044 # Append the text in VALUE to the end of the definition contained in VAR. Take
   8045 # advantage of any shell optimizations that allow amortized linear growth over
   8046 # repeated appends, instead of the typical quadratic growth present in naive
   8047 # implementations.
   8048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   8049   eval 'as_fn_append ()
   8050   {
   8051     eval $1+=\$2
   8052   }'
   8053 else
   8054   as_fn_append ()
   8055   {
   8056     eval $1=\$$1\$2
   8057   }
   8058 fi # as_fn_append
   8059 
   8060 # as_fn_arith ARG...
   8061 # ------------------
   8062 # Perform arithmetic evaluation on the ARGs, and store the result in the
   8063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   8064 # must be portable across $(()) and expr.
   8065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   8066   eval 'as_fn_arith ()
   8067   {
   8068     as_val=$(( $* ))
   8069   }'
   8070 else
   8071   as_fn_arith ()
   8072   {
   8073     as_val=`expr "$@" || test $? -eq 1`
   8074   }
   8075 fi # as_fn_arith
   8076 
   8077 
   8078 if expr a : '\(a\)' >/dev/null 2>&1 &&
   8079    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8080   as_expr=expr
   8081 else
   8082   as_expr=false
   8083 fi
   8084 
   8085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   8086   as_basename=basename
   8087 else
   8088   as_basename=false
   8089 fi
   8090 
   8091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   8092   as_dirname=dirname
   8093 else
   8094   as_dirname=false
   8095 fi
   8096 
   8097 as_me=`$as_basename -- "$0" ||
   8098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   8099 	 X"$0" : 'X\(//\)$' \| \
   8100 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   8101 $as_echo X/"$0" |
   8102     sed '/^.*\/\([^/][^/]*\)\/*$/{
   8103 	    s//\1/
   8104 	    q
   8105 	  }
   8106 	  /^X\/\(\/\/\)$/{
   8107 	    s//\1/
   8108 	    q
   8109 	  }
   8110 	  /^X\/\(\/\).*/{
   8111 	    s//\1/
   8112 	    q
   8113 	  }
   8114 	  s/.*/./; q'`
   8115 
   8116 # Avoid depending upon Character Ranges.
   8117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   8118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   8119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   8120 as_cr_digits='0123456789'
   8121 as_cr_alnum=$as_cr_Letters$as_cr_digits
   8122 
   8123 ECHO_C= ECHO_N= ECHO_T=
   8124 case `echo -n x` in #(((((
   8125 -n*)
   8126   case `echo 'xy\c'` in
   8127   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   8128   xy)  ECHO_C='\c';;
   8129   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   8130        ECHO_T='	';;
   8131   esac;;
   8132 *)
   8133   ECHO_N='-n';;
   8134 esac
   8135 
   8136 rm -f conf$$ conf$$.exe conf$$.file
   8137 if test -d conf$$.dir; then
   8138   rm -f conf$$.dir/conf$$.file
   8139 else
   8140   rm -f conf$$.dir
   8141   mkdir conf$$.dir 2>/dev/null
   8142 fi
   8143 if (echo >conf$$.file) 2>/dev/null; then
   8144   if ln -s conf$$.file conf$$ 2>/dev/null; then
   8145     as_ln_s='ln -s'
   8146     # ... but there are two gotchas:
   8147     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   8148     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   8149     # In both cases, we have to default to `cp -p'.
   8150     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   8151       as_ln_s='cp -p'
   8152   elif ln conf$$.file conf$$ 2>/dev/null; then
   8153     as_ln_s=ln
   8154   else
   8155     as_ln_s='cp -p'
   8156   fi
   8157 else
   8158   as_ln_s='cp -p'
   8159 fi
   8160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   8161 rmdir conf$$.dir 2>/dev/null
   8162 
   8163 
   8164 # as_fn_mkdir_p
   8165 # -------------
   8166 # Create "$as_dir" as a directory, including parents if necessary.
   8167 as_fn_mkdir_p ()
   8168 {
   8169 
   8170   case $as_dir in #(
   8171   -*) as_dir=./$as_dir;;
   8172   esac
   8173   test -d "$as_dir" || eval $as_mkdir_p || {
   8174     as_dirs=
   8175     while :; do
   8176       case $as_dir in #(
   8177       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   8178       *) as_qdir=$as_dir;;
   8179       esac
   8180       as_dirs="'$as_qdir' $as_dirs"
   8181       as_dir=`$as_dirname -- "$as_dir" ||
   8182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8183 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   8184 	 X"$as_dir" : 'X\(//\)$' \| \
   8185 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   8186 $as_echo X"$as_dir" |
   8187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8188 	    s//\1/
   8189 	    q
   8190 	  }
   8191 	  /^X\(\/\/\)[^/].*/{
   8192 	    s//\1/
   8193 	    q
   8194 	  }
   8195 	  /^X\(\/\/\)$/{
   8196 	    s//\1/
   8197 	    q
   8198 	  }
   8199 	  /^X\(\/\).*/{
   8200 	    s//\1/
   8201 	    q
   8202 	  }
   8203 	  s/.*/./; q'`
   8204       test -d "$as_dir" && break
   8205     done
   8206     test -z "$as_dirs" || eval "mkdir $as_dirs"
   8207   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   8208 
   8209 
   8210 } # as_fn_mkdir_p
   8211 if mkdir -p . 2>/dev/null; then
   8212   as_mkdir_p='mkdir -p "$as_dir"'
   8213 else
   8214   test -d ./-p && rmdir ./-p
   8215   as_mkdir_p=false
   8216 fi
   8217 
   8218 if test -x / >/dev/null 2>&1; then
   8219   as_test_x='test -x'
   8220 else
   8221   if ls -dL / >/dev/null 2>&1; then
   8222     as_ls_L_option=L
   8223   else
   8224     as_ls_L_option=
   8225   fi
   8226   as_test_x='
   8227     eval sh -c '\''
   8228       if test -d "$1"; then
   8229 	test -d "$1/.";
   8230       else
   8231 	case $1 in #(
   8232 	-*)set "./$1";;
   8233 	esac;
   8234 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   8235 	???[sx]*):;;*)false;;esac;fi
   8236     '\'' sh
   8237   '
   8238 fi
   8239 as_executable_p=$as_test_x
   8240 
   8241 # Sed expression to map a string onto a valid CPP name.
   8242 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   8243 
   8244 # Sed expression to map a string onto a valid variable name.
   8245 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   8246 
   8247 
   8248 exec 6>&1
   8249 ## ----------------------------------- ##
   8250 ## Main body of $CONFIG_STATUS script. ##
   8251 ## ----------------------------------- ##
   8252 _ASEOF
   8253 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   8254 
   8255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8256 # Save the log message, to keep $0 and so on meaningful, and to
   8257 # report actual input values of CONFIG_FILES etc. instead of their
   8258 # values after options handling.
   8259 ac_log="
   8260 This file was extended by $as_me, which was
   8261 generated by GNU Autoconf 2.67.  Invocation command line was
   8262 
   8263   CONFIG_FILES    = $CONFIG_FILES
   8264   CONFIG_HEADERS  = $CONFIG_HEADERS
   8265   CONFIG_LINKS    = $CONFIG_LINKS
   8266   CONFIG_COMMANDS = $CONFIG_COMMANDS
   8267   $ $0 $@
   8268 
   8269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   8270 "
   8271 
   8272 _ACEOF
   8273 
   8274 case $ac_config_files in *"
   8275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   8276 esac
   8277 
   8278 case $ac_config_headers in *"
   8279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   8280 esac
   8281 
   8282 
   8283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8284 # Files that config.status was made for.
   8285 config_files="$ac_config_files"
   8286 config_headers="$ac_config_headers"
   8287 
   8288 _ACEOF
   8289 
   8290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8291 ac_cs_usage="\
   8292 \`$as_me' instantiates files and other configuration actions
   8293 from templates according to the current configuration.  Unless the files
   8294 and actions are specified as TAGs, all are instantiated by default.
   8295 
   8296 Usage: $0 [OPTION]... [TAG]...
   8297 
   8298   -h, --help       print this help, then exit
   8299   -V, --version    print version number and configuration settings, then exit
   8300       --config     print configuration, then exit
   8301   -q, --quiet, --silent
   8302                    do not print progress messages
   8303   -d, --debug      don't remove temporary files
   8304       --recheck    update $as_me by reconfiguring in the same conditions
   8305       --file=FILE[:TEMPLATE]
   8306                    instantiate the configuration file FILE
   8307       --header=FILE[:TEMPLATE]
   8308                    instantiate the configuration header FILE
   8309 
   8310 Configuration files:
   8311 $config_files
   8312 
   8313 Configuration headers:
   8314 $config_headers
   8315 
   8316 Report bugs to the package provider."
   8317 
   8318 _ACEOF
   8319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8320 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   8321 ac_cs_version="\\
   8322 config.status
   8323 configured by $0, generated by GNU Autoconf 2.67,
   8324   with options \\"\$ac_cs_config\\"
   8325 
   8326 Copyright (C) 2010 Free Software Foundation, Inc.
   8327 This config.status script is free software; the Free Software Foundation
   8328 gives unlimited permission to copy, distribute and modify it."
   8329 
   8330 ac_pwd='$ac_pwd'
   8331 srcdir='$srcdir'
   8332 INSTALL='$INSTALL'
   8333 test -n "\$AWK" || AWK=awk
   8334 _ACEOF
   8335 
   8336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8337 # The default lists apply if the user does not specify any file.
   8338 ac_need_defaults=:
   8339 while test $# != 0
   8340 do
   8341   case $1 in
   8342   --*=?*)
   8343     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8344     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   8345     ac_shift=:
   8346     ;;
   8347   --*=)
   8348     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8349     ac_optarg=
   8350     ac_shift=:
   8351     ;;
   8352   *)
   8353     ac_option=$1
   8354     ac_optarg=$2
   8355     ac_shift=shift
   8356     ;;
   8357   esac
   8358 
   8359   case $ac_option in
   8360   # Handling of the options.
   8361   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   8362     ac_cs_recheck=: ;;
   8363   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   8364     $as_echo "$ac_cs_version"; exit ;;
   8365   --config | --confi | --conf | --con | --co | --c )
   8366     $as_echo "$ac_cs_config"; exit ;;
   8367   --debug | --debu | --deb | --de | --d | -d )
   8368     debug=: ;;
   8369   --file | --fil | --fi | --f )
   8370     $ac_shift
   8371     case $ac_optarg in
   8372     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   8373     '') as_fn_error $? "missing file argument" ;;
   8374     esac
   8375     as_fn_append CONFIG_FILES " '$ac_optarg'"
   8376     ac_need_defaults=false;;
   8377   --header | --heade | --head | --hea )
   8378     $ac_shift
   8379     case $ac_optarg in
   8380     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   8381     esac
   8382     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   8383     ac_need_defaults=false;;
   8384   --he | --h)
   8385     # Conflict between --help and --header
   8386     as_fn_error $? "ambiguous option: \`$1'
   8387 Try \`$0 --help' for more information.";;
   8388   --help | --hel | -h )
   8389     $as_echo "$ac_cs_usage"; exit ;;
   8390   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   8391   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   8392     ac_cs_silent=: ;;
   8393 
   8394   # This is an error.
   8395   -*) as_fn_error $? "unrecognized option: \`$1'
   8396 Try \`$0 --help' for more information." ;;
   8397 
   8398   *) as_fn_append ac_config_targets " $1"
   8399      ac_need_defaults=false ;;
   8400 
   8401   esac
   8402   shift
   8403 done
   8404 
   8405 ac_configure_extra_args=
   8406 
   8407 if $ac_cs_silent; then
   8408   exec 6>/dev/null
   8409   ac_configure_extra_args="$ac_configure_extra_args --silent"
   8410 fi
   8411 
   8412 _ACEOF
   8413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8414 if \$ac_cs_recheck; then
   8415   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   8416   shift
   8417   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   8418   CONFIG_SHELL='$SHELL'
   8419   export CONFIG_SHELL
   8420   exec "\$@"
   8421 fi
   8422 
   8423 _ACEOF
   8424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8425 exec 5>>config.log
   8426 {
   8427   echo
   8428   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   8429 ## Running $as_me. ##
   8430 _ASBOX
   8431   $as_echo "$ac_log"
   8432 } >&5
   8433 
   8434 _ACEOF
   8435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8436 _ACEOF
   8437 
   8438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8439 
   8440 # Handling of arguments.
   8441 for ac_config_target in $ac_config_targets
   8442 do
   8443   case $ac_config_target in
   8444     "common/icucfg.h") CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;;
   8445     "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
   8446     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   8447     "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
   8448     "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
   8449     "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;;
   8450     "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
   8451     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
   8452     "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
   8453     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
   8454     "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
   8455     "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;;
   8456     "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
   8457     "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
   8458     "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
   8459     "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
   8460     "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
   8461     "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
   8462     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
   8463     "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
   8464     "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
   8465     "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
   8466     "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
   8467     "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
   8468     "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
   8469     "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
   8470     "tools/genctd/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;;
   8471     "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
   8472     "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;;
   8473     "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
   8474     "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
   8475     "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;;
   8476     "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
   8477     "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
   8478     "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
   8479     "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
   8480     "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
   8481     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
   8482     "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
   8483     "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
   8484     "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
   8485     "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
   8486     "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
   8487     "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
   8488     "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
   8489     "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
   8490     "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
   8491     "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
   8492     "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
   8493     "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
   8494     "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
   8495     "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
   8496     "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
   8497     "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
   8498     "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
   8499     "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
   8500     "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
   8501     "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
   8502     "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
   8503     "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
   8504     "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;;
   8505     "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;;
   8506     "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
   8507     "common/unicode/platform.h") CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;;
   8508 
   8509   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   8510   esac
   8511 done
   8512 
   8513 
   8514 # If the user did not use the arguments to specify the items to instantiate,
   8515 # then the envvar interface is used.  Set only those that are not.
   8516 # We use the long form for the default assignment because of an extremely
   8517 # bizarre bug on SunOS 4.1.3.
   8518 if $ac_need_defaults; then
   8519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   8520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   8521 fi
   8522 
   8523 # Have a temporary directory for convenience.  Make it in the build tree
   8524 # simply because there is no reason against having it here, and in addition,
   8525 # creating and moving files from /tmp can sometimes cause problems.
   8526 # Hook for its removal unless debugging.
   8527 # Note that there is a small window in which the directory will not be cleaned:
   8528 # after its creation but before its name has been assigned to `$tmp'.
   8529 $debug ||
   8530 {
   8531   tmp=
   8532   trap 'exit_status=$?
   8533   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   8534 ' 0
   8535   trap 'as_fn_exit 1' 1 2 13 15
   8536 }
   8537 # Create a (secure) tmp directory for tmp files.
   8538 
   8539 {
   8540   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   8541   test -n "$tmp" && test -d "$tmp"
   8542 }  ||
   8543 {
   8544   tmp=./conf$$-$RANDOM
   8545   (umask 077 && mkdir "$tmp")
   8546 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   8547 
   8548 # Set up the scripts for CONFIG_FILES section.
   8549 # No need to generate them if there are no CONFIG_FILES.
   8550 # This happens for instance with `./config.status config.h'.
   8551 if test -n "$CONFIG_FILES"; then
   8552 
   8553 
   8554 ac_cr=`echo X | tr X '\015'`
   8555 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   8556 # But we know of no other shell where ac_cr would be empty at this
   8557 # point, so we can use a bashism as a fallback.
   8558 if test "x$ac_cr" = x; then
   8559   eval ac_cr=\$\'\\r\'
   8560 fi
   8561 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   8562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   8563   ac_cs_awk_cr='\\r'
   8564 else
   8565   ac_cs_awk_cr=$ac_cr
   8566 fi
   8567 
   8568 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   8569 _ACEOF
   8570 
   8571 
   8572 {
   8573   echo "cat >conf$$subs.awk <<_ACEOF" &&
   8574   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   8575   echo "_ACEOF"
   8576 } >conf$$subs.sh ||
   8577   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   8579 ac_delim='%!_!# '
   8580 for ac_last_try in false false false false false :; do
   8581   . ./conf$$subs.sh ||
   8582     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8583 
   8584   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   8585   if test $ac_delim_n = $ac_delim_num; then
   8586     break
   8587   elif $ac_last_try; then
   8588     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8589   else
   8590     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8591   fi
   8592 done
   8593 rm -f conf$$subs.sh
   8594 
   8595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8596 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   8597 _ACEOF
   8598 sed -n '
   8599 h
   8600 s/^/S["/; s/!.*/"]=/
   8601 p
   8602 g
   8603 s/^[^!]*!//
   8604 :repl
   8605 t repl
   8606 s/'"$ac_delim"'$//
   8607 t delim
   8608 :nl
   8609 h
   8610 s/\(.\{148\}\)..*/\1/
   8611 t more1
   8612 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   8613 p
   8614 n
   8615 b repl
   8616 :more1
   8617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8618 p
   8619 g
   8620 s/.\{148\}//
   8621 t nl
   8622 :delim
   8623 h
   8624 s/\(.\{148\}\)..*/\1/
   8625 t more2
   8626 s/["\\]/\\&/g; s/^/"/; s/$/"/
   8627 p
   8628 b
   8629 :more2
   8630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8631 p
   8632 g
   8633 s/.\{148\}//
   8634 t delim
   8635 ' <conf$$subs.awk | sed '
   8636 /^[^""]/{
   8637   N
   8638   s/\n//
   8639 }
   8640 ' >>$CONFIG_STATUS || ac_write_fail=1
   8641 rm -f conf$$subs.awk
   8642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8643 _ACAWK
   8644 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   8645   for (key in S) S_is_set[key] = 1
   8646   FS = ""
   8647 
   8648 }
   8649 {
   8650   line = $ 0
   8651   nfields = split(line, field, "@")
   8652   substed = 0
   8653   len = length(field[1])
   8654   for (i = 2; i < nfields; i++) {
   8655     key = field[i]
   8656     keylen = length(key)
   8657     if (S_is_set[key]) {
   8658       value = S[key]
   8659       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   8660       len += length(value) + length(field[++i])
   8661       substed = 1
   8662     } else
   8663       len += 1 + keylen
   8664   }
   8665 
   8666   print line
   8667 }
   8668 
   8669 _ACAWK
   8670 _ACEOF
   8671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   8673   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   8674 else
   8675   cat
   8676 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   8677   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   8678 _ACEOF
   8679 
   8680 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   8681 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   8682 # trailing colons and then remove the whole line if VPATH becomes empty
   8683 # (actually we leave an empty line to preserve line numbers).
   8684 if test "x$srcdir" = x.; then
   8685   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   8686 h
   8687 s///
   8688 s/^/:/
   8689 s/[	 ]*$/:/
   8690 s/:\$(srcdir):/:/g
   8691 s/:\${srcdir}:/:/g
   8692 s/:@srcdir@:/:/g
   8693 s/^:*//
   8694 s/:*$//
   8695 x
   8696 s/\(=[	 ]*\).*/\1/
   8697 G
   8698 s/\n//
   8699 s/^[^=]*=[	 ]*$//
   8700 }'
   8701 fi
   8702 
   8703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8704 fi # test -n "$CONFIG_FILES"
   8705 
   8706 # Set up the scripts for CONFIG_HEADERS section.
   8707 # No need to generate them if there are no CONFIG_HEADERS.
   8708 # This happens for instance with `./config.status Makefile'.
   8709 if test -n "$CONFIG_HEADERS"; then
   8710 cat >"$tmp/defines.awk" <<\_ACAWK ||
   8711 BEGIN {
   8712 _ACEOF
   8713 
   8714 # Transform confdefs.h into an awk script `defines.awk', embedded as
   8715 # here-document in config.status, that substitutes the proper values into
   8716 # config.h.in to produce config.h.
   8717 
   8718 # Create a delimiter string that does not exist in confdefs.h, to ease
   8719 # handling of long lines.
   8720 ac_delim='%!_!# '
   8721 for ac_last_try in false false :; do
   8722   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   8723   if test -z "$ac_t"; then
   8724     break
   8725   elif $ac_last_try; then
   8726     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   8727   else
   8728     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8729   fi
   8730 done
   8731 
   8732 # For the awk script, D is an array of macro values keyed by name,
   8733 # likewise P contains macro parameters if any.  Preserve backslash
   8734 # newline sequences.
   8735 
   8736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   8737 sed -n '
   8738 s/.\{148\}/&'"$ac_delim"'/g
   8739 t rset
   8740 :rset
   8741 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   8742 t def
   8743 d
   8744 :def
   8745 s/\\$//
   8746 t bsnl
   8747 s/["\\]/\\&/g
   8748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8749 D["\1"]=" \3"/p
   8750 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   8751 d
   8752 :bsnl
   8753 s/["\\]/\\&/g
   8754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8755 D["\1"]=" \3\\\\\\n"\\/p
   8756 t cont
   8757 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   8758 t cont
   8759 d
   8760 :cont
   8761 n
   8762 s/.\{148\}/&'"$ac_delim"'/g
   8763 t clear
   8764 :clear
   8765 s/\\$//
   8766 t bsnlc
   8767 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   8768 d
   8769 :bsnlc
   8770 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   8771 b cont
   8772 ' <confdefs.h | sed '
   8773 s/'"$ac_delim"'/"\\\
   8774 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   8775 
   8776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8777   for (key in D) D_is_set[key] = 1
   8778   FS = ""
   8779 }
   8780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   8781   line = \$ 0
   8782   split(line, arg, " ")
   8783   if (arg[1] == "#") {
   8784     defundef = arg[2]
   8785     mac1 = arg[3]
   8786   } else {
   8787     defundef = substr(arg[1], 2)
   8788     mac1 = arg[2]
   8789   }
   8790   split(mac1, mac2, "(") #)
   8791   macro = mac2[1]
   8792   prefix = substr(line, 1, index(line, defundef) - 1)
   8793   if (D_is_set[macro]) {
   8794     # Preserve the white space surrounding the "#".
   8795     print prefix "define", macro P[macro] D[macro]
   8796     next
   8797   } else {
   8798     # Replace #undef with comments.  This is necessary, for example,
   8799     # in the case of _POSIX_SOURCE, which is predefined and required
   8800     # on some systems where configure will not decide to define it.
   8801     if (defundef == "undef") {
   8802       print "/*", prefix defundef, macro, "*/"
   8803       next
   8804     }
   8805   }
   8806 }
   8807 { print }
   8808 _ACAWK
   8809 _ACEOF
   8810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8811   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   8812 fi # test -n "$CONFIG_HEADERS"
   8813 
   8814 
   8815 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   8816 shift
   8817 for ac_tag
   8818 do
   8819   case $ac_tag in
   8820   :[FHLC]) ac_mode=$ac_tag; continue;;
   8821   esac
   8822   case $ac_mode$ac_tag in
   8823   :[FHL]*:*);;
   8824   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   8825   :[FH]-) ac_tag=-:-;;
   8826   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   8827   esac
   8828   ac_save_IFS=$IFS
   8829   IFS=:
   8830   set x $ac_tag
   8831   IFS=$ac_save_IFS
   8832   shift
   8833   ac_file=$1
   8834   shift
   8835 
   8836   case $ac_mode in
   8837   :L) ac_source=$1;;
   8838   :[FH])
   8839     ac_file_inputs=
   8840     for ac_f
   8841     do
   8842       case $ac_f in
   8843       -) ac_f="$tmp/stdin";;
   8844       *) # Look for the file first in the build tree, then in the source tree
   8845 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   8846 	 # because $ac_f cannot contain `:'.
   8847 	 test -f "$ac_f" ||
   8848 	   case $ac_f in
   8849 	   [\\/$]*) false;;
   8850 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   8851 	   esac ||
   8852 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   8853       esac
   8854       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   8855       as_fn_append ac_file_inputs " '$ac_f'"
   8856     done
   8857 
   8858     # Let's still pretend it is `configure' which instantiates (i.e., don't
   8859     # use $as_me), people would be surprised to read:
   8860     #    /* config.h.  Generated by config.status.  */
   8861     configure_input='Generated from '`
   8862 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   8863 	`' by configure.'
   8864     if test x"$ac_file" != x-; then
   8865       configure_input="$ac_file.  $configure_input"
   8866       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   8867 $as_echo "$as_me: creating $ac_file" >&6;}
   8868     fi
   8869     # Neutralize special characters interpreted by sed in replacement strings.
   8870     case $configure_input in #(
   8871     *\&* | *\|* | *\\* )
   8872        ac_sed_conf_input=`$as_echo "$configure_input" |
   8873        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   8874     *) ac_sed_conf_input=$configure_input;;
   8875     esac
   8876 
   8877     case $ac_tag in
   8878     *:-:* | *:-) cat >"$tmp/stdin" \
   8879       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   8880     esac
   8881     ;;
   8882   esac
   8883 
   8884   ac_dir=`$as_dirname -- "$ac_file" ||
   8885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8886 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   8887 	 X"$ac_file" : 'X\(//\)$' \| \
   8888 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   8889 $as_echo X"$ac_file" |
   8890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8891 	    s//\1/
   8892 	    q
   8893 	  }
   8894 	  /^X\(\/\/\)[^/].*/{
   8895 	    s//\1/
   8896 	    q
   8897 	  }
   8898 	  /^X\(\/\/\)$/{
   8899 	    s//\1/
   8900 	    q
   8901 	  }
   8902 	  /^X\(\/\).*/{
   8903 	    s//\1/
   8904 	    q
   8905 	  }
   8906 	  s/.*/./; q'`
   8907   as_dir="$ac_dir"; as_fn_mkdir_p
   8908   ac_builddir=.
   8909 
   8910 case "$ac_dir" in
   8911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8912 *)
   8913   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   8914   # A ".." for each directory in $ac_dir_suffix.
   8915   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   8916   case $ac_top_builddir_sub in
   8917   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8918   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   8919   esac ;;
   8920 esac
   8921 ac_abs_top_builddir=$ac_pwd
   8922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   8923 # for backward compatibility:
   8924 ac_top_builddir=$ac_top_build_prefix
   8925 
   8926 case $srcdir in
   8927   .)  # We are building in place.
   8928     ac_srcdir=.
   8929     ac_top_srcdir=$ac_top_builddir_sub
   8930     ac_abs_top_srcdir=$ac_pwd ;;
   8931   [\\/]* | ?:[\\/]* )  # Absolute name.
   8932     ac_srcdir=$srcdir$ac_dir_suffix;
   8933     ac_top_srcdir=$srcdir
   8934     ac_abs_top_srcdir=$srcdir ;;
   8935   *) # Relative name.
   8936     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   8937     ac_top_srcdir=$ac_top_build_prefix$srcdir
   8938     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   8939 esac
   8940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   8941 
   8942 
   8943   case $ac_mode in
   8944   :F)
   8945   #
   8946   # CONFIG_FILE
   8947   #
   8948 
   8949   case $INSTALL in
   8950   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   8951   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   8952   esac
   8953 _ACEOF
   8954 
   8955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8956 # If the template does not know about datarootdir, expand it.
   8957 # FIXME: This hack should be removed a few years after 2.60.
   8958 ac_datarootdir_hack=; ac_datarootdir_seen=
   8959 ac_sed_dataroot='
   8960 /datarootdir/ {
   8961   p
   8962   q
   8963 }
   8964 /@datadir@/p
   8965 /@docdir@/p
   8966 /@infodir@/p
   8967 /@localedir@/p
   8968 /@mandir@/p'
   8969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   8970 *datarootdir*) ac_datarootdir_seen=yes;;
   8971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   8972   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   8973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   8974 _ACEOF
   8975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8976   ac_datarootdir_hack='
   8977   s&@datadir@&$datadir&g
   8978   s&@docdir@&$docdir&g
   8979   s&@infodir@&$infodir&g
   8980   s&@localedir@&$localedir&g
   8981   s&@mandir@&$mandir&g
   8982   s&\\\${datarootdir}&$datarootdir&g' ;;
   8983 esac
   8984 _ACEOF
   8985 
   8986 # Neutralize VPATH when `$srcdir' = `.'.
   8987 # Shell code in configure.ac might set extrasub.
   8988 # FIXME: do we really want to maintain this feature?
   8989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8990 ac_sed_extra="$ac_vpsub
   8991 $extrasub
   8992 _ACEOF
   8993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8994 :t
   8995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   8996 s|@configure_input@|$ac_sed_conf_input|;t t
   8997 s&@top_builddir@&$ac_top_builddir_sub&;t t
   8998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   8999 s&@srcdir@&$ac_srcdir&;t t
   9000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   9001 s&@top_srcdir@&$ac_top_srcdir&;t t
   9002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   9003 s&@builddir@&$ac_builddir&;t t
   9004 s&@abs_builddir@&$ac_abs_builddir&;t t
   9005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   9006 s&@INSTALL@&$ac_INSTALL&;t t
   9007 $ac_datarootdir_hack
   9008 "
   9009 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
   9010   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9011 
   9012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   9013   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   9014   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   9015   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   9016 which seems to be undefined.  Please make sure it is defined" >&5
   9017 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   9018 which seems to be undefined.  Please make sure it is defined" >&2;}
   9019 
   9020   rm -f "$tmp/stdin"
   9021   case $ac_file in
   9022   -) cat "$tmp/out" && rm -f "$tmp/out";;
   9023   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   9024   esac \
   9025   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9026  ;;
   9027   :H)
   9028   #
   9029   # CONFIG_HEADER
   9030   #
   9031   if test x"$ac_file" != x-; then
   9032     {
   9033       $as_echo "/* $configure_input  */" \
   9034       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   9035     } >"$tmp/config.h" \
   9036       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9037     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   9038       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   9039 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   9040     else
   9041       rm -f "$ac_file"
   9042       mv "$tmp/config.h" "$ac_file" \
   9043 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9044     fi
   9045   else
   9046     $as_echo "/* $configure_input  */" \
   9047       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   9048       || as_fn_error $? "could not create -" "$LINENO" 5
   9049   fi
   9050  ;;
   9051 
   9052 
   9053   esac
   9054 
   9055 done # for ac_tag
   9056 
   9057 
   9058 as_fn_exit 0
   9059 _ACEOF
   9060 ac_clean_files=$ac_clean_files_save
   9061 
   9062 test $ac_write_fail = 0 ||
   9063   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   9064 
   9065 
   9066 # configure is writing to config.log, and then calls config.status.
   9067 # config.status does its own redirection, appending to config.log.
   9068 # Unfortunately, on DOS this fails, as config.log is still kept open
   9069 # by configure, so config.status won't be able to write to it; its
   9070 # output is simply discarded.  So we exec the FD to /dev/null,
   9071 # effectively closing config.log, so it can be properly (re)opened and
   9072 # appended to by config.status.  When coming back to configure, we
   9073 # need to make the FD available again.
   9074 if test "$no_create" != yes; then
   9075   ac_cs_success=:
   9076   ac_config_status_args=
   9077   test "$silent" = yes &&
   9078     ac_config_status_args="$ac_config_status_args --quiet"
   9079   exec 5>/dev/null
   9080   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   9081   exec 5>>config.log
   9082   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   9083   # would make configure fail if this is the last instruction.
   9084   $ac_cs_success || as_fn_exit 1
   9085 fi
   9086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   9087   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   9088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   9089 fi
   9090 
   9091 
   9092 echo
   9093 echo "ICU for C/C++ $VERSION is ready to be built."
   9094 echo "=== Important Notes: ==="
   9095 
   9096 if test $ICU_USE_THREADS = 0; then
   9097   echo
   9098   echo  "** ICU was configured without mutex or thread support. Multithread-safe operation will not be tested. If this is unexpected, then run configure with --enable-threads=yes or check the messages above to see why thread support was not found." 1>&6
   9099   echo
   9100 fi
   9101 
   9102 echo "Data Packaging: $datapackaging"
   9103 echo " This means: $datapackaging_msg"
   9104 echo " To locate data: $datapackaging_howfound"
   9105 
   9106 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
   9107 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
   9108 else
   9109 echo "** WARNING: $U_MAKE may not be GNU make."
   9110 echo "This may cause ICU to fail to build. Please make sure that GNU make"
   9111 echo "is in your PATH so that the configure script can detect its location."
   9112 fi
   9113 
   9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
   9115 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
   9116 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
   9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   9118 $as_echo "ok" >&6; }
   9119 else
   9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
   9121 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
   9122 fi
   9123 
   9124 $as_unset _CXX_CXXSUFFIX
   9125