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