• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
20DUALCASE=1; export DUALCASE # for MKS sh
21if 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
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_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.
47if 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 --'
51elif (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'
54else
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'
74fi
75
76# The user is always right.
77if 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  }
83fi
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.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
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
104IFS=$as_save_IFS
105
106     ;;
107esac
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.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
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.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export 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.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $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
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if 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
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -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
203test \$(( 1 + 1 )) = 2 || exit 1"
204  if (eval "$as_required") 2>/dev/null; then :
205  as_have_required=yes
206else
207  as_have_required=no
208fi
209  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210
211else
212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213as_found=false
214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215do
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
229fi
230fi
231	   done;;
232       esac
233  as_found=false
234done
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
238fi; }
239IFS=$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.
248BASH_ENV=/dev/null
249ENV=/dev/null
250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251case $- in # ((((
252  *v*x* | *x*v* ) as_opts=-vx ;;
253  *v* ) as_opts=-v ;;
254  *x* ) as_opts=-x ;;
255  * ) as_opts= ;;
256esac
257exec $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
261exit 255
262fi
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@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
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299# as_fn_set_status STATUS
300# -----------------------
301# Set $? to STATUS, without forking.
302as_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.
310as_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.
320as_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.
368as_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.
378if (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  }'
383else
384  as_fn_append ()
385  {
386    eval $1=\$$1\$2
387  }
388fi # 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.
395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396  eval 'as_fn_arith ()
397  {
398    as_val=$(( $* ))
399  }'
400else
401  as_fn_arith ()
402  {
403    as_val=`expr "$@" || test $? -eq 1`
404  }
405fi # 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.
413as_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
424if expr a : '\(a\)' >/dev/null 2>&1 &&
425   test "X`expr 00001 : '.*\(...\)'`" = X001; then
426  as_expr=expr
427else
428  as_expr=false
429fi
430
431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432  as_basename=basename
433else
434  as_basename=false
435fi
436
437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438  as_dirname=dirname
439else
440  as_dirname=false
441fi
442
443as_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.
463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466as_cr_digits='0123456789'
467as_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
505ECHO_C= ECHO_N= ECHO_T=
506case `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';;
516esac
517
518rm -f conf$$ conf$$.exe conf$$.file
519if test -d conf$$.dir; then
520  rm -f conf$$.dir/conf$$.file
521else
522  rm -f conf$$.dir
523  mkdir conf$$.dir 2>/dev/null
524fi
525if (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
539else
540  as_ln_s='cp -pR'
541fi
542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543rmdir conf$$.dir 2>/dev/null
544
545if mkdir -p . 2>/dev/null; then
546  as_mkdir_p='mkdir -p "$as_dir"'
547else
548  test -d ./-p && rmdir ./-p
549  as_mkdir_p=false
550fi
551
552as_test_x='test -x'
553as_executable_p=as_fn_executable_p
554
555# Sed expression to map a string onto a valid CPP name.
556as_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.
559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560
561
562test -n "$DJDIR" || exec 7<&0 </dev/null
563exec 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.
568ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569
570#
571# Initializations.
572#
573ac_default_prefix=/usr/local
574ac_clean_files=
575ac_config_libobj_dir=.
576LIBOBJS=
577cross_compiling=no
578subdirs=
579MFLAGS=
580MAKEFLAGS=
581
582# Identity of this package.
583PACKAGE_NAME='ICU'
584PACKAGE_TARNAME='International Components for Unicode'
585PACKAGE_VERSION='63.2'
586PACKAGE_STRING='ICU 63.2'
587PACKAGE_BUGREPORT='http://icu-project.org/bugs'
588PACKAGE_URL='http://icu-project.org'
589
590ac_unique_file="common/unicode/utypes.h"
591# Factoring default headers for most tests.
592ac_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
627ac_subst_vars='UCONFIG_CXXFLAGS
628UCONFIG_CFLAGS
629UCONFIG_CPPFLAGS
630LTLIBOBJS
631LIBOBJS
632LIBCXXFLAGS
633LIBCFLAGS
634platform_make_fragment
635platform_make_fragment_name
636platform
637ICUDATA_CHAR
638U_HAVE_SAMPLES
639SAMPLES_TRUE
640U_HAVE_TESTS
641TESTS_TRUE
642ICULIBSUFFIXCNAME
643U_HAVE_LIB_SUFFIX
644ICULIBSUFFIX
645DATA_PACKAGING_MODE
646thepkgicudatadir
647pkgicudatadir
648U_HAVE_TOOLS
649TOOLS_TRUE
650U_HAVE_LAYOUTEX
651LAYOUTEX_TRUE
652U_HAVE_ICUIO
653ICUIO_TRUE
654U_HAVE_EXTRAS
655EXTRAS_TRUE
656U_HAVE_WCSCPY
657U_HAVE_WCHAR_H
658U_HAVE_STRTOD_L
659U_TIMEZONE
660U_HAVE_TIMEZONE
661U_TZNAME
662U_HAVE_TZNAME
663U_TZSET
664U_HAVE_TZSET
665U_HAVE_POPEN
666U_HAVE_PLACEMENT_NEW
667U_OVERRIDE_CXX_ALLOCATION
668U_NL_LANGINFO_CODESET
669U_HAVE_NL_LANGINFO_CODESET
670U_IS_BIG_ENDIAN
671U_HAVE_DIRENT_H
672U_HAVE_INTTYPES_H
673GENCCODE_ASSEMBLY
674HAVE_MMAP
675LIB_THREAD
676ENABLE_RPATH
677U_ENABLE_DYLOAD
678U_HAVE_PLUGINS
679PLUGINS_TRUE
680U_ENABLE_TRACING
681U_DISABLE_RENAMING
682AR
683SED
684RANLIB
685U_DEFAULT_SHOW_DRAFT
686UCLN_NO_AUTO_CLEANUP
687ENABLE_STATIC
688ENABLE_SHARED
689LIB_M
690COMPILE_LINK_ENVVAR
691ARFLAGS
692EGREP
693GREP
694DOXYGEN
695cross_buildroot
696U_MAKE
697PYTHON3
698cross_compiling
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702CPP
703ICULEHB_LIBS
704ICULEHB_CFLAGS
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
707PKG_CONFIG
708ac_ct_CXX
709CXXFLAGS
710CXX
711OBJEXT
712EXEEXT
713ac_ct_CC
714LDFLAGS
715CFLAGS
716CC
717ENABLE_RELEASE
718ENABLE_DEBUG
719INSTALL_ICU_CONFIG
720CPPFLAGS
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729UNICODE_VERSION
730LIB_VERSION_MAJOR
731LIB_VERSION
732VERSION
733ICU_ECHO_T
734ICU_ECHO_C
735ICU_ECHO_N
736PACKAGE
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756runstatedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_icu_config
780enable_debug
781enable_release
782with_cross_build
783enable_strict
784enable_64bit_libs
785with_library_bits
786enable_shared
787enable_static
788enable_auto_cleanup
789enable_draft
790enable_renaming
791enable_tracing
792enable_plugins
793enable_dyload
794enable_rpath
795enable_weak_threads
796enable_extras
797enable_icuio
798enable_layoutex
799enable_layout
800enable_tools
801with_data_packaging
802with_library_suffix
803enable_tests
804enable_samples
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CXX
815CXXFLAGS
816CCC
817PKG_CONFIG
818PKG_CONFIG_PATH
819PKG_CONFIG_LIBDIR
820ICULEHB_CFLAGS
821ICULEHB_LIBS
822CPP'
823
824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828ac_unrecognized_opts=
829ac_unrecognized_sep=
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_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.)
853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
861runstatedir='${localstatedir}/run'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
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'
1219Try \`$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
1241done
1242
1243if test -n "$ac_prev"; then
1244  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245  as_fn_error $? "missing argument to $ac_option"
1246fi
1247
1248if 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
1254fi
1255
1256# Check all directory arguments for consistency.
1257for 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
1261do
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"
1275done
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.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if 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
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302  as_fn_error $? "working directory cannot be determined"
1303test "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.
1308if 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
1338else
1339  ac_srcdir_defaulted=no
1340fi
1341if 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"
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
1347	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348	pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351  srcdir=.
1352fi
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.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for 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}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if 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
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
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
1393Installation 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
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine 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
1432System 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
1436fi
1437
1438if 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
1444Optional 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
1472Additionally, the variable FORCE_LIBS may be set before calling configure.
1473If set, it will REPLACE any automatic list of libraries.
1474
1475Optional 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
1489Some 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
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to <http://icu-project.org/bugs>.
1514ICU home page: <http://icu-project.org>.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if 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
1527case "$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 ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
1542
1543case $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 ;;
1556esac
1557ac_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
1572fi
1573
1574test -n "$ac_init_help" && exit $ac_status
1575if $ac_init_version; then
1576  cat <<\_ACEOF
1577ICU configure 63.2
1578generated by GNU Autoconf 2.69
1579
1580Copyright (C) 2012 Free Software Foundation, Inc.
1581This configure script is free software; the Free Software Foundation
1582gives 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
1587fi
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.
1596ac_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"
1601case "(($ac_try" in
1602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603  *) ac_try_echo=$ac_try;;
1604esac
1605eval 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
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624	ac_retval=1
1625fi
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.
1634ac_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"
1639case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval 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
1658else
1659  $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662	ac_retval=1
1663fi
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.
1672ac_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"
1676case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval 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
1695else
1696  $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699    ac_retval=1
1700fi
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.
1709ac_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"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval 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
1736else
1737  $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740	ac_retval=1
1741fi
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.
1756ac_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"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval 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;;
1773esac
1774eval 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
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
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
1799ac_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.
1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807int
1808main ()
1809{
1810static int test_array [1 - 2 * !(($2) >= 0)];
1811test_array [0] = 0;
1812return test_array [0];
1813
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if 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
1824int
1825main ()
1826{
1827static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1828test_array [0] = 0;
1829return test_array [0];
1830
1831  ;
1832  return 0;
1833}
1834_ACEOF
1835if ac_fn_c_try_compile "$LINENO"; then :
1836  ac_hi=$ac_mid; break
1837else
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
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846  done
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850$4
1851int
1852main ()
1853{
1854static int test_array [1 - 2 * !(($2) < 0)];
1855test_array [0] = 0;
1856return test_array [0];
1857
1858  ;
1859  return 0;
1860}
1861_ACEOF
1862if 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
1868int
1869main ()
1870{
1871static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1872test_array [0] = 0;
1873return test_array [0];
1874
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  ac_lo=$ac_mid; break
1881else
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
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890  done
1891else
1892  ac_lo= ac_hi=
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897# Binary search between lo and hi bounds.
1898while 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
1903int
1904main ()
1905{
1906static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1907test_array [0] = 0;
1908return test_array [0];
1909
1910  ;
1911  return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915  ac_hi=$ac_mid
1916else
1917  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920done
1921case $ac_lo in #((
1922?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1923'') ac_retval=1 ;;
1924esac
1925  else
1926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929static long int longval () { return $2; }
1930static unsigned long int ulongval () { return $2; }
1931#include <stdio.h>
1932#include <stdlib.h>
1933int
1934main ()
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
1962if ac_fn_c_try_run "$LINENO"; then :
1963  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1964else
1965  ac_retval=1
1966fi
1967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1968  conftest.$ac_objext conftest.beam conftest.$ac_ext
1969rm -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.
1981ac_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; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991$4
1992#include <$2>
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995  eval "$3=yes"
1996else
1997  eval "$3=no"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001eval 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.
2011ac_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"
2016case "(($ac_try" in
2017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018  *) ac_try_echo=$ac_try;;
2019esac
2020eval 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
2038else
2039  $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042	ac_retval=1
2043fi
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.
2059ac_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; }
2065if eval \${$3+:} false; then :
2066  $as_echo_n "(cached) " >&6
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071else
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; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077$4
2078#include <$2>
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  ac_header_compiler=yes
2082else
2083  ac_header_compiler=no
2084fi
2085rm -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; }
2092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094#include <$2>
2095_ACEOF
2096if ac_fn_c_try_cpp "$LINENO"; then :
2097  ac_header_preproc=yes
2098else
2099  ac_header_preproc=no
2100fi
2101rm -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?
2106case $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    ;;
2129esac
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131$as_echo_n "checking for $2... " >&6; }
2132if eval \${$3+:} false; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  eval "$3=\$ac_header_compiler"
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140fi
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
2148ac_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; }
2153if eval \${$3+:} false; then :
2154  $as_echo_n "(cached) " >&6
2155else
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
2179extern "C"
2180#endif
2181char $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
2186choke me
2187#endif
2188
2189int
2190main ()
2191{
2192return $2 ();
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_link "$LINENO"; then :
2198  eval "$3=yes"
2199else
2200  eval "$3=no"
2201fi
2202rm -f core conftest.err conftest.$ac_objext \
2203    conftest$ac_exeext conftest.$ac_ext
2204fi
2205eval 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.
2216ac_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; }
2221if eval \${$3+:} false; then :
2222  $as_echo_n "(cached) " >&6
2223else
2224  eval "$3=no"
2225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228int
2229main ()
2230{
2231if (sizeof ($2))
2232	 return 0;
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h.  */
2240$4
2241int
2242main ()
2243{
2244if (sizeof (($2)))
2245	    return 0;
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251
2252else
2253  eval "$3=yes"
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258fi
2259eval 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
2265cat >config.log <<_ACEOF
2266This file contains any messages produced by compilers while
2267running configure, to aid debugging if configure makes a mistake.
2268
2269It was created by ICU $as_me 63.2, which was
2270generated by GNU Autoconf 2.69.  Invocation command line was
2271
2272  $ $0 $@
2273
2274_ACEOF
2275exec 5>>config.log
2276{
2277cat <<_ASUNAME
2278## --------- ##
2279## Platform. ##
2280## --------- ##
2281
2282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286uname -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
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306    $as_echo "PATH: $as_dir"
2307  done
2308IFS=$as_save_IFS
2309
2310} >&5
2311
2312cat >&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.
2327ac_configure_args=
2328ac_configure_args0=
2329ac_configure_args1=
2330ac_must_keep_next=false
2331for ac_pass in 1 2
2332do
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
2366done
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.
2375trap '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
2462for ac_signal in 1 2 13 15; do
2463  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464done
2465ac_signal=0
2466
2467# confdefs.h avoids OS command line length limits that DEFS can exceed.
2468rm -f -r conftest* confdefs.h
2469
2470$as_echo "/* confdefs.h */" > confdefs.h
2471
2472# Predefined preprocessor variables.
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_NAME "$PACKAGE_NAME"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_VERSION "$PACKAGE_VERSION"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_STRING "$PACKAGE_STRING"
2488_ACEOF
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492_ACEOF
2493
2494cat >>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.
2501ac_site_file1=NONE
2502ac_site_file2=NONE
2503if 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
2510elif test "x$prefix" != xNONE; then
2511  ac_site_file1=$prefix/share/config.site
2512  ac_site_file2=$prefix/etc/config.site
2513else
2514  ac_site_file1=$ac_default_prefix/share/config.site
2515  ac_site_file2=$ac_default_prefix/etc/config.site
2516fi
2517for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518do
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;}
2527as_fn_error $? "failed to load site script $ac_site_file
2528See \`config.log' for more details" "$LINENO" 5; }
2529  fi
2530done
2531
2532if 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
2543else
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
2547fi
2548
2549# Check that the precious variables saved in the cache have kept the same
2550# value.
2551ac_cache_corrupted=false
2552for 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
2598done
2599if $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
2605fi
2606## -------------------- ##
2607## Main body of script. ##
2608## -------------------- ##
2609
2610ac_ext=c
2611ac_cpp='$CPP $CPPFLAGS'
2612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615
2616
2617
2618
2619
2620
2621PACKAGE="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)
2628ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
2629case `/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';;
2637esac
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
2646geticuversion() {
2647    sed -n 's/^[ 	]*#[ 	]*define[ 	]*U_ICU_VERSION[ 	]*"\([^"]*\)".*/\1/p' "$@"
2648}
2649getuversion() {
2650    sed -n 's/^[ 	]*#[ 	]*define[ 	]*U_UNICODE_VERSION[ 	]*"\([^"]*\)".*/\1/p' "$@"
2651}
2652VERSION=`geticuversion $srcdir/common/unicode/uvernum.h`
2653if test x"$VERSION" = x; then
2654   as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2655fi
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
2662UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h`
2663if test x"$UNICODE_VERSION" = x; then
2664    as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2665fi
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/'`]
2670LIB_VERSION=$VERSION
2671LIB_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
2681ac_aux_dir=
2682for 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
2696done
2697if test -z "$ac_aux_dir"; then
2698  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2699fi
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.
2705ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2706ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2707ac_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; }
2716if ${ac_cv_build+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  ac_build_alias=$build_alias
2720test "x$ac_build_alias" = x &&
2721  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2722test "x$ac_build_alias" = x &&
2723  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2724ac_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
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2729$as_echo "$ac_cv_build" >&6; }
2730case $ac_cv_build in
2731*-*-*) ;;
2732*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2733esac
2734build=$ac_cv_build
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_build
2737shift
2738build_cpu=$1
2739build_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743build_os=$*
2744IFS=$ac_save_IFS
2745case $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; }
2750if ${ac_cv_host+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test "x$host_alias" = x; then
2754  ac_cv_host=$ac_cv_build
2755else
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
2758fi
2759
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2762$as_echo "$ac_cv_host" >&6; }
2763case $ac_cv_host in
2764*-*-*) ;;
2765*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2766esac
2767host=$ac_cv_host
2768ac_save_IFS=$IFS; IFS='-'
2769set x $ac_cv_host
2770shift
2771host_cpu=$1
2772host_vendor=$2
2773shift; shift
2774# Remember, the first character of IFS is used to create $*,
2775# except with old shells:
2776host_os=$*
2777IFS=$ac_save_IFS
2778case $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
2786export _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
2792CONFIG_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
2798UCONFIG_CPPFLAGS=""
2799# UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
2800# such as -std
2801UCONFIG_CFLAGS=""
2802
2803# Check whether to install icu-config
2804# Check whether --enable-icu-config was given.
2805if 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
2811else
2812  enable_icu_config=true
2813fi
2814
2815INSTALL_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; }
2821enabled=no
2822ENABLE_DEBUG=0
2823# Check whether --enable-debug was given.
2824if 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
2829fi
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; }
2838enabled=yes
2839ENABLE_RELEASE=1
2840# Check whether --enable-release was given.
2841if test "${enable_release+set}" = set; then :
2842  enableval=$enable_release;  case "${enableval}" in
2843         no) enabled=no; ENABLE_RELEASE=0 ;;
2844         *) ;;
2845    esac
2846fi
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
2857ac_ext=c
2858ac_cpp='$CPP $CPPFLAGS'
2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862if 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.
2866set 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; }
2869if ${ac_cv_prog_CC+:} false; then :
2870  $as_echo_n "(cached) " >&6
2871else
2872  if test -n "$CC"; then
2873  ac_cv_prog_CC="$CC" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
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
2886done
2887  done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892CC=$ac_cv_prog_CC
2893if test -n "$CC"; then
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895$as_echo "$CC" >&6; }
2896else
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901
2902    test -n "$CC" && break
2903  done
2904fi
2905if 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
2908do
2909  # Extract the first word of "$ac_prog", so it can be a program name with args.
2910set 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; }
2913if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_CC"; then
2917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
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
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if 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; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946  test -n "$ac_ct_CC" && break
2947done
2948
2949  if test "x$ac_ct_CC" = x; then
2950    CC=""
2951  else
2952    case $cross_compiling:$ac_tool_warned in
2953yes:)
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;}
2956ac_tool_warned=yes ;;
2957esac
2958    CC=$ac_ct_CC
2959  fi
2960fi
2961
2962
2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error $? "no acceptable C compiler found in \$PATH
2966See \`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
2970set X $ac_compile
2971ac_compiler=$2
2972for ac_option in --version -v -V -qversion; do
2973  { { ac_try="$ac_compiler $ac_option >&5"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval 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; }
2991done
2992
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h.  */
2995
2996int
2997main ()
2998{
2999
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004ac_clean_files_save=$ac_clean_files
3005ac_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; }
3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013# The possible output files:
3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016ac_rmfiles=
3017for ac_file in $ac_files
3018do
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
3023done
3024rm -f $ac_rmfiles
3025
3026if { { ac_try="$ac_link_default"
3027case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval 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.
3042for ac_file in $ac_files ''
3043do
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
3066done
3067test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069else
3070  ac_file=''
3071fi
3072if 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
3076sed '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;}
3080as_fn_error 77 "C compiler cannot create executables
3081See \`config.log' for more details" "$LINENO" 5; }
3082else
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085fi
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; }
3090ac_exeext=$ac_cv_exeext
3091
3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093ac_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; }
3096if { { ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval 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'.
3111for 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
3119done
3120else
3121  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3124See \`config.log' for more details" "$LINENO" 5; }
3125fi
3126rm -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
3130rm -f conftest.$ac_ext
3131EXEEXT=$ac_cv_exeext
3132ac_exeext=$EXEEXT
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135#include <stdio.h>
3136int
3137main ()
3138{
3139FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146ac_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; }
3151if test "$cross_compiling" != yes; then
3152  { { ac_try="$ac_link"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval 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;;
3167esac
3168eval 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;}
3181as_fn_error $? "cannot run C compiled programs.
3182If you meant to cross compile, use \`--host'.
3183See \`config.log' for more details" "$LINENO" 5; }
3184    fi
3185  fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191ac_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; }
3194if ${ac_cv_objext+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208rm -f conftest.o conftest.obj
3209if { { ac_try="$ac_compile"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval 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
3227done
3228else
3229  $as_echo "$as_me: failed program was:" >&5
3230sed '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;}
3234as_fn_error $? "cannot compute suffix of object files: cannot compile
3235See \`config.log' for more details" "$LINENO" 5; }
3236fi
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_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; }
3245if ${ac_cv_c_compiler_gnu+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255       choke me
3256#endif
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  ac_compiler_gnu=yes
3264else
3265  ac_compiler_gnu=no
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273if test $ac_compiler_gnu = yes; then
3274  GCC=yes
3275else
3276  GCC=
3277fi
3278ac_test_CFLAGS=${CFLAGS+set}
3279ac_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; }
3282if ${ac_cv_prog_cc_g+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
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
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301  ac_cv_prog_cc_g=yes
3302else
3303  CFLAGS=""
3304      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310
3311  ;
3312  return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316
3317else
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
3323int
3324main ()
3325{
3326
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332  ac_cv_prog_cc_g=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339   ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342$as_echo "$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344  CFLAGS=$ac_save_CFLAGS
3345elif 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
3351else
3352  if test "$GCC" = yes; then
3353    CFLAGS="-O2"
3354  else
3355    CFLAGS=
3356  fi
3357fi
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; }
3360if ${ac_cv_prog_cc_c89+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h.  */
3367#include <stdarg.h>
3368#include <stdio.h>
3369struct stat;
3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3371struct buf { int x; };
3372FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373static char *e (p, i)
3374     char **p;
3375     int i;
3376{
3377  return p[i];
3378}
3379static 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.  */
3396int 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'
3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403int test (int i, double x);
3404struct s1 {int (*f) (int a);};
3405struct s2 {int (*f) (double a);};
3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407int argc;
3408char **argv;
3409int
3410main ()
3411{
3412return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419do
3420  CC="$ac_save_CC $ac_arg"
3421  if ac_fn_c_try_compile "$LINENO"; then :
3422  ac_cv_prog_cc_c89=$ac_arg
3423fi
3424rm -f core conftest.err conftest.$ac_objext
3425  test "x$ac_cv_prog_cc_c89" != "xno" && break
3426done
3427rm -f conftest.$ac_ext
3428CC=$ac_save_CC
3429
3430fi
3431# AC_CACHE_VAL
3432case "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; } ;;
3443esac
3444if test "x$ac_cv_prog_cc_c89" != xno; then :
3445
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_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.
3456ac_ext=cpp
3457ac_cpp='$CXXCPP $CPPFLAGS'
3458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3461if 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.
3469set 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; }
3472if ${ac_cv_prog_CXX+:} false; then :
3473  $as_echo_n "(cached) " >&6
3474else
3475  if test -n "$CXX"; then
3476  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
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
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495CXX=$ac_cv_prog_CXX
3496if test -n "$CXX"; then
3497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3498$as_echo "$CXX" >&6; }
3499else
3500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502fi
3503
3504
3505    test -n "$CXX" && break
3506  done
3507fi
3508if 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
3511do
3512  # Extract the first word of "$ac_prog", so it can be a program name with args.
3513set 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; }
3516if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3517  $as_echo_n "(cached) " >&6
3518else
3519  if test -n "$ac_ct_CXX"; then
3520  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
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
3533done
3534  done
3535IFS=$as_save_IFS
3536
3537fi
3538fi
3539ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3540if 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; }
3543else
3544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549  test -n "$ac_ct_CXX" && break
3550done
3551
3552  if test "x$ac_ct_CXX" = x; then
3553    CXX="g++"
3554  else
3555    case $cross_compiling:$ac_tool_warned in
3556yes:)
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;}
3559ac_tool_warned=yes ;;
3560esac
3561    CXX=$ac_ct_CXX
3562  fi
3563fi
3564
3565  fi
3566fi
3567# Provide some information about the compiler.
3568$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3569set X $ac_compile
3570ac_compiler=$2
3571for ac_option in --version -v -V -qversion; do
3572  { { ac_try="$ac_compiler $ac_option >&5"
3573case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval 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; }
3590done
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; }
3594if ${ac_cv_cxx_compiler_gnu+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599
3600int
3601main ()
3602{
3603#ifndef __GNUC__
3604       choke me
3605#endif
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611if ac_fn_cxx_try_compile "$LINENO"; then :
3612  ac_compiler_gnu=yes
3613else
3614  ac_compiler_gnu=no
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3618
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3621$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3622if test $ac_compiler_gnu = yes; then
3623  GXX=yes
3624else
3625  GXX=
3626fi
3627ac_test_CXXFLAGS=${CXXFLAGS+set}
3628ac_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; }
3631if ${ac_cv_prog_cxx_g+:} false; then :
3632  $as_echo_n "(cached) " >&6
3633else
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
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649if ac_fn_cxx_try_compile "$LINENO"; then :
3650  ac_cv_prog_cxx_g=yes
3651else
3652  CXXFLAGS=""
3653      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h.  */
3655
3656int
3657main ()
3658{
3659
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664if ac_fn_cxx_try_compile "$LINENO"; then :
3665
3666else
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
3672int
3673main ()
3674{
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680if ac_fn_cxx_try_compile "$LINENO"; then :
3681  ac_cv_prog_cxx_g=yes
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684fi
3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686fi
3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3691$as_echo "$ac_cv_prog_cxx_g" >&6; }
3692if test "$ac_test_CXXFLAGS" = set; then
3693  CXXFLAGS=$ac_save_CXXFLAGS
3694elif 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
3700else
3701  if test "$GXX" = yes; then
3702    CXXFLAGS="-O2"
3703  else
3704    CXXFLAGS=
3705  fi
3706fi
3707ac_ext=c
3708ac_cpp='$CPP $CPPFLAGS'
3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713
3714# pkg-config is needed for harfbuzz support
3715
3716
3717
3718
3719
3720
3721
3722if 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.
3725set 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; }
3728if ${ac_cv_path_PKG_CONFIG+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
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
3737for as_dir in $PATH
3738do
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
3747done
3748  done
3749IFS=$as_save_IFS
3750
3751  ;;
3752esac
3753fi
3754PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3755if test -n "$PKG_CONFIG"; then
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3757$as_echo "$PKG_CONFIG" >&6; }
3758else
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764fi
3765if 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.
3768set 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; }
3771if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3772  $as_echo_n "(cached) " >&6
3773else
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
3780for as_dir in $PATH
3781do
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
3790done
3791  done
3792IFS=$as_save_IFS
3793
3794  ;;
3795esac
3796fi
3797ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3798if 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; }
3801else
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
3804fi
3805
3806  if test "x$ac_pt_PKG_CONFIG" = x; then
3807    PKG_CONFIG=""
3808  else
3809    case $cross_compiling:$ac_tool_warned in
3810yes:)
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;}
3813ac_tool_warned=yes ;;
3814esac
3815    PKG_CONFIG=$ac_pt_PKG_CONFIG
3816  fi
3817else
3818  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3819fi
3820
3821fi
3822if 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
3834fi
3835
3836pkg_failed=no
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5
3838$as_echo_n "checking for ICULEHB... " >&6; }
3839
3840if 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
3851else
3852  pkg_failed=yes
3853fi
3854 else
3855    pkg_failed=untried
3856fi
3857if 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
3868else
3869  pkg_failed=yes
3870fi
3871 else
3872    pkg_failed=untried
3873fi
3874
3875
3876
3877if test $pkg_failed = yes; then
3878   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879$as_echo "no" >&6; }
3880
3881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3882        _pkg_short_errors_supported=yes
3883else
3884        _pkg_short_errors_supported=no
3885fi
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	:
3895elif test $pkg_failed = untried; then
3896     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898	:
3899else
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
3905fi
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
3909if 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
3926fi
3927
3928ac_ext=c
3929ac_cpp='$CPP $CPPFLAGS'
3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_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.
3936if test -n "$CPP" && test -d "$CPP"; then
3937  CPP=
3938fi
3939if test -z "$CPP"; then
3940  if ${ac_cv_prog_CPP+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
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
3947for ac_c_preproc_warn_flag in '' yes
3948do
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
3964if ac_fn_c_try_cpp "$LINENO"; then :
3965
3966else
3967  # Broken: fails on valid input.
3968continue
3969fi
3970rm -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
3978if ac_fn_c_try_cpp "$LINENO"; then :
3979  # Broken: success on invalid input.
3980continue
3981else
3982  # Passes both tests.
3983ac_preproc_ok=:
3984break
3985fi
3986rm -f conftest.err conftest.i conftest.$ac_ext
3987
3988done
3989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990rm -f conftest.i conftest.err conftest.$ac_ext
3991if $ac_preproc_ok; then :
3992  break
3993fi
3994
3995    done
3996    ac_cv_prog_CPP=$CPP
3997
3998fi
3999  CPP=$ac_cv_prog_CPP
4000else
4001  ac_cv_prog_CPP=$CPP
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4004$as_echo "$CPP" >&6; }
4005ac_preproc_ok=false
4006for ac_c_preproc_warn_flag in '' yes
4007do
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
4023if ac_fn_c_try_cpp "$LINENO"; then :
4024
4025else
4026  # Broken: fails on valid input.
4027continue
4028fi
4029rm -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
4037if ac_fn_c_try_cpp "$LINENO"; then :
4038  # Broken: success on invalid input.
4039continue
4040else
4041  # Passes both tests.
4042ac_preproc_ok=:
4043break
4044fi
4045rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047done
4048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049rm -f conftest.i conftest.err conftest.$ac_ext
4050if $ac_preproc_ok; then :
4051
4052else
4053  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4056See \`config.log' for more details" "$LINENO" 5; }
4057fi
4058
4059ac_ext=c
4060ac_cpp='$CPP $CPPFLAGS'
4061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063ac_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; }
4082if test -z "$INSTALL"; then
4083if ${ac_cv_path_install+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089  IFS=$as_save_IFS
4090  test -z "$as_dir" && as_dir=.
4091    # Account for people who put trailing slashes in PATH elements.
4092case $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    ;;
4130esac
4131
4132  done
4133IFS=$as_save_IFS
4134
4135rm -rf conftest.one conftest.two conftest.dir
4136
4137fi
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
4147fi
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.
4153test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4154
4155test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4156
4157test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4158
4159
4160
4161
4162ac_ext=cpp
4163ac_cpp='$CXXCPP $CPPFLAGS'
4164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167
4168
4169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172int
4173main ()
4174{
4175
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180if ac_fn_cxx_try_link "$LINENO"; then :
4181
4182fi
4183rm -f core conftest.err conftest.$ac_objext \
4184    conftest$ac_exeext conftest.$ac_ext
4185ac_ext=c
4186ac_cpp='$CPP $CPPFLAGS'
4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191
4192# make sure install is relative to srcdir - if a script
4193if 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
4198fi
4199
4200#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4201#AC_CHECK_PROG(STRIP, strip, strip, true)
4202
4203for ac_prog in python3
4204do
4205  # Extract the first word of "$ac_prog", so it can be a program name with args.
4206set 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; }
4209if ${ac_cv_prog_PYTHON3+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -n "$PYTHON3"; then
4213  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
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
4226done
4227  done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
4232PYTHON3=$ac_cv_prog_PYTHON3
4233if test -n "$PYTHON3"; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
4235$as_echo "$PYTHON3" >&6; }
4236else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
4241
4242  test -n "$PYTHON3" && break
4243done
4244
4245
4246# Check for the platform make
4247for ac_prog in gmake gnumake
4248do
4249  # Extract the first word of "$ac_prog", so it can be a program name with args.
4250set 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; }
4253if ${ac_cv_path_U_MAKE+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
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
4262for as_dir in $PATH
4263do
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
4272done
4273  done
4274IFS=$as_save_IFS
4275
4276  ;;
4277esac
4278fi
4279U_MAKE=$ac_cv_path_U_MAKE
4280if test -n "$U_MAKE"; then
4281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
4282$as_echo "$U_MAKE" >&6; }
4283else
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
4286fi
4287
4288
4289  test -n "$U_MAKE" && break
4290done
4291test -n "$U_MAKE" || U_MAKE="make"
4292
4293
4294
4295
4296
4297# Check whether --with-cross-build was given.
4298if test "${with_cross_build+set}" = set; then :
4299  withval=$with_cross_build; cross_buildroot="${withval}"
4300else
4301  cross_buildroot=""
4302fi
4303
4304
4305if 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
4309else
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
4320fi
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.
4325set 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; }
4328if ${ac_cv_path_DOXYGEN+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
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
4337as_dummy="$PATH:/usr/local/bin:/usr/bin"
4338for as_dir in $as_dummy
4339do
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
4348done
4349  done
4350IFS=$as_save_IFS
4351
4352  ;;
4353esac
4354fi
4355DOXYGEN=$ac_cv_path_DOXYGEN
4356if test -n "$DOXYGEN"; then
4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4358$as_echo "$DOXYGEN" >&6; }
4359else
4360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361$as_echo "no" >&6; }
4362fi
4363
4364
4365
4366# Check that the linker is usable
4367
4368case "${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    *);;
4375esac
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; }
4382case "${host}" in
4383    *-*-cygwin*|*-*-mingw*)  EXEEXT=.exe ;;
4384    *)      EXEEXT="" ;;
4385esac
4386ac_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.
4396if 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
4405else
4406  ac_use_strict_options=yes
4407fi
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; }
4461if ${ac_cv_path_GREP+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
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
4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469do
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
4478case `"$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;;
4502esac
4503
4504      $ac_path_GREP_found && break 3
4505    done
4506  done
4507  done
4508IFS=$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
4512else
4513  ac_cv_path_GREP=$GREP
4514fi
4515
4516fi
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; }
4524if ${ac_cv_path_EGREP+:} false; then :
4525  $as_echo_n "(cached) " >&6
4526else
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
4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535do
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
4544case `"$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;;
4568esac
4569
4570      $ac_path_EGREP_found && break 3
4571    done
4572  done
4573  done
4574IFS=$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
4578else
4579  ac_cv_path_EGREP=$EGREP
4580fi
4581
4582   fi
4583fi
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; }
4591if ${ac_cv_header_stdc+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
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
4601int
4602main ()
4603{
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610  ac_cv_header_stdc=yes
4611else
4612  ac_cv_header_stdc=no
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615
4616if 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
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624  $EGREP "memchr" >/dev/null 2>&1; then :
4625
4626else
4627  ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
4630
4631fi
4632
4633if 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
4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641  $EGREP "free" >/dev/null 2>&1; then :
4642
4643else
4644  ac_cv_header_stdc=no
4645fi
4646rm -f conftest*
4647
4648fi
4649
4650if 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  :
4654else
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)))
4671int
4672main ()
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
4682if ac_fn_c_try_run "$LINENO"; then :
4683
4684else
4685  ac_cv_header_stdc=no
4686fi
4687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4688  conftest.$ac_objext conftest.beam conftest.$ac_ext
4689fi
4690
4691fi
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4694$as_echo "$ac_cv_header_stdc" >&6; }
4695if test $ac_cv_header_stdc = yes; then
4696
4697$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4698
4699fi
4700
4701# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4702for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4703		  inttypes.h stdint.h unistd.h
4704do :
4705  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4706ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4707"
4708if 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
4713fi
4714
4715done
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.
4724if 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
4732fi
4733
4734
4735
4736
4737# Check whether --with-library-bits was given.
4738if 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
4744fi
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; }
4757if ${ac_cv_sizeof_void_p+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
4761
4762else
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;}
4766as_fn_error 77 "cannot compute sizeof (void *)
4767See \`config.log' for more details" "$LINENO" 5; }
4768   else
4769     ac_cv_sizeof_void_p=0
4770   fi
4771fi
4772
4773fi
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
4779cat >>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.  */
4883int main(void) {return (sizeof(void*)*8==64)?0:1;}
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886  CAN_BUILD_64=yes
4887else
4888  CAN_BUILD_64=no
4889fi
4890rm -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
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902int main(void) {return (sizeof(void*)*8==64)?0:1;}
4903_ACEOF
4904if ac_fn_c_try_run "$LINENO"; then :
4905  CAN_BUILD_64=yes
4906else
4907  CAN_BUILD_64=no
4908fi
4909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4910  conftest.$ac_objext conftest.beam conftest.$ac_ext
4911fi
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
4936else
4937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939int main(void) {return (sizeof(void*)*8==64)?0:1;}
4940_ACEOF
4941if ac_fn_c_try_run "$LINENO"; then :
4942  CAN_BUILD_64=yes
4943else
4944  CAN_BUILD_64=no
4945fi
4946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4947  conftest.$ac_objext conftest.beam conftest.$ac_ext
4948fi
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.  */
4988int main(void) {return (sizeof(void*)*8==64)?0:1;}
4989_ACEOF
4990if ac_fn_c_try_compile "$LINENO"; then :
4991  CAN_BUILD_64=yes
4992else
4993  CAN_BUILD_64=no
4994fi
4995rm -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.  */
5013int main(void) {return (sizeof(void*)*8==64)?0:1;}
5014_ACEOF
5015if ac_fn_c_try_compile "$LINENO"; then :
5016  CAN_BUILD_64=yes
5017else
5018  CAN_BUILD_64=no
5019fi
5020rm -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.  */
5030int main(void) {return (sizeof(void*)*8==64)?0:1;}
5031_ACEOF
5032if ac_fn_c_try_compile "$LINENO"; then :
5033  CAN_BUILD_64=yes
5034else
5035  CAN_BUILD_64=no
5036fi
5037rm -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.  */
5046int main(void) {return (sizeof(void*)*8==64)?0:1;}
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  CAN_BUILD_64=yes
5050else
5051  CAN_BUILD_64=no
5052fi
5053rm -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
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int main(void) {return (sizeof(void*)*8==64)?0:1;}
5071_ACEOF
5072if ac_fn_c_try_run "$LINENO"; then :
5073  BITS_RUN_64=yes
5074else
5075  BITS_RUN_64=no
5076fi
5077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078  conftest.$ac_objext conftest.beam conftest.$ac_ext
5079fi
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.  */
5104int main(void) {return (sizeof(void*)*8==32)?0:1;}
5105_ACEOF
5106if ac_fn_c_try_compile "$LINENO"; then :
5107  CAN_BUILD_32=yes
5108else
5109  CAN_BUILD_32=no
5110fi
5111rm -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
5120else
5121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h.  */
5123int main(void) {return (sizeof(void*)*8==32)?0:1;}
5124_ACEOF
5125if ac_fn_c_try_run "$LINENO"; then :
5126  BITS_RUN_32=yes
5127else
5128  BITS_RUN_32=no
5129fi
5130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5131  conftest.$ac_objext conftest.beam conftest.$ac_ext
5132fi
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; }
5187if ${icu_cv_host_frag+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190
5191case "${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 ;;
5198alpha*-*-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 ;;
5204powerpc*-*-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 ;;
5211i[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 ;;
5217x86_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
5231int
5232main ()
5233{
5234
5235  ;
5236  return 0;
5237}
5238_ACEOF
5239if ac_fn_c_try_compile "$LINENO"; then :
5240  icu_cv_host_frag=mh-mingw64
5241else
5242  icu_cv_host_frag=mh-mingw
5243fi
5244rm -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 ;;
5277esac
5278
5279
5280fi
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)
5288case "${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; }
5291if ${ac_cv_lib_m_floor+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  ac_check_lib_save_LIBS=$LIBS
5295LIBS="-lm  $LIBS"
5296cat 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
5303extern "C"
5304#endif
5305char floor ();
5306int
5307main ()
5308{
5309return floor ();
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314if ac_fn_c_try_link "$LINENO"; then :
5315  ac_cv_lib_m_floor=yes
5316else
5317  ac_cv_lib_m_floor=no
5318fi
5319rm -f core conftest.err conftest.$ac_objext \
5320    conftest$ac_exeext conftest.$ac_ext
5321LIBS=$ac_check_lib_save_LIBS
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5324$as_echo "$ac_cv_lib_m_floor" >&6; }
5325if test "x$ac_cv_lib_m_floor" = xyes; then :
5326  LIB_M="-lm"
5327fi
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; }
5332if ${ac_cv_lib_m_floor+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  ac_check_lib_save_LIBS=$LIBS
5336LIBS="-lm  $LIBS"
5337cat 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
5344extern "C"
5345#endif
5346char floor ();
5347int
5348main ()
5349{
5350return floor ();
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_link "$LINENO"; then :
5356  ac_cv_lib_m_floor=yes
5357else
5358  ac_cv_lib_m_floor=no
5359fi
5360rm -f core conftest.err conftest.$ac_objext \
5361    conftest$ac_exeext conftest.$ac_ext
5362LIBS=$ac_check_lib_save_LIBS
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5365$as_echo "$ac_cv_lib_m_floor" >&6; }
5366if 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
5373fi
5374
5375			LIB_M="" ;;
5376esac
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; }
5382enabled=no
5383# Check whether --enable-shared was given.
5384if 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
5390else
5391  enabled=yes; ENABLE_SHARED=YES
5392
5393fi
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; }
5402enabled=no
5403# Check whether --enable-static was given.
5404if 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
5410fi
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
5417if 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
5441int
5442main ()
5443{
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_link "$LINENO"; then :
5450  CHECK_STATIC_OPT_FLAG=yes
5451else
5452  CHECK_STATIC_OPT_FLAG=no
5453fi
5454rm -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
5464fi
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; }
5470enabled=no
5471UCLN_NO_AUTO_CLEANUP=1
5472# Check whether --enable-auto-cleanup was given.
5473if 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
5481fi
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5484$as_echo "$enabled" >&6; }
5485
5486
5487# MSVC floating-point option
5488MSVC_RELEASE_FLAG=""
5489if test $enabled = yes
5490then
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
5501int
5502main ()
5503{
5504
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"; then :
5510  MSVC_RELEASE_FLAG="/fp:precise"
5511else
5512  MSVC_RELEASE_FLAG="/Op"
5513fi
5514rm -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
5519fi
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; }
5524enabled=yes
5525U_DEFAULT_SHOW_DRAFT=1
5526# Check whether --enable-draft was given.
5527if 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
5534fi
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.
5539if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5540    CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
5541fi
5542
5543
5544if 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.
5546set 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; }
5549if ${ac_cv_prog_RANLIB+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  if test -n "$RANLIB"; then
5553  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
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
5566done
5567  done
5568IFS=$as_save_IFS
5569
5570fi
5571fi
5572RANLIB=$ac_cv_prog_RANLIB
5573if test -n "$RANLIB"; then
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5575$as_echo "$RANLIB" >&6; }
5576else
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581
5582fi
5583if 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.
5586set 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; }
5589if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  if test -n "$ac_ct_RANLIB"; then
5593  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
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
5606done
5607  done
5608IFS=$as_save_IFS
5609
5610fi
5611fi
5612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5613if 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; }
5616else
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618$as_echo "no" >&6; }
5619fi
5620
5621  if test "x$ac_ct_RANLIB" = x; then
5622    RANLIB=":"
5623  else
5624    case $cross_compiling:$ac_tool_warned in
5625yes:)
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;}
5628ac_tool_warned=yes ;;
5629esac
5630    RANLIB=$ac_ct_RANLIB
5631  fi
5632else
5633  RANLIB="$ac_cv_prog_RANLIB"
5634fi
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; }
5640if ${ac_cv_path_SED+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
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
5653for as_dir in $PATH
5654do
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
5663case `"$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;;
5687esac
5688
5689      $ac_path_SED_found && break 3
5690    done
5691  done
5692  done
5693IFS=$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
5697else
5698  ac_cv_path_SED=$SED
5699fi
5700
5701fi
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
5709if 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.
5711set 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; }
5714if ${ac_cv_prog_AR+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -n "$AR"; then
5718  ac_cv_prog_AR="$AR" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
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
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737AR=$ac_cv_prog_AR
5738if test -n "$AR"; then
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5740$as_echo "$AR" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746
5747fi
5748if 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.
5751set 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; }
5754if ${ac_cv_prog_ac_ct_AR+:} false; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$ac_ct_AR"; then
5758  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
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
5771done
5772  done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777ac_ct_AR=$ac_cv_prog_ac_ct_AR
5778if 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; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786  if test "x$ac_ct_AR" = x; then
5787    AR="false"
5788  else
5789    case $cross_compiling:$ac_tool_warned in
5790yes:)
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;}
5793ac_tool_warned=yes ;;
5794esac
5795    AR=$ac_ct_AR
5796  fi
5797else
5798  AR="$ac_cv_prog_AR"
5799fi
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; }
5804enabled=yes
5805U_DISABLE_RENAMING=0
5806# Check whether --enable-renaming was given.
5807if 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
5815fi
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; }
5823enabled=no
5824U_ENABLE_TRACING=0
5825# Check whether --enable-tracing was given.
5826if 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
5834fi
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.
5841for ac_header in elf.h
5842do :
5843  ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
5844if test "x$ac_cv_header_elf_h" = xyes; then :
5845  cat >>confdefs.h <<_ACEOF
5846#define HAVE_ELF_H 1
5847_ACEOF
5848
5849fi
5850
5851done
5852
5853if test "x$ac_cv_header_elf_h" = "xyes"; then
5854    CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
5855fi
5856
5857# Enable/disable plugins
5858# Check whether --enable-plugins was given.
5859if 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
5865else
5866  plugins=false
5867fi
5868
5869
5870
5871if test "$plugins" = true; then
5872  PLUGINS_TRUE=
5873  U_HAVE_PLUGINS=1
5874else
5875  PLUGINS_TRUE='#'
5876  U_HAVE_PLUGINS=0
5877fi
5878
5879if test "x$plugins" = "xtrue"; then
5880   UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
5881fi
5882
5883
5884U_ENABLE_DYLOAD=1
5885enable=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.
5889if 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
5902fi
5903
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5905$as_echo "$enable" >&6; }
5906
5907
5908if test "$enable" = "yes"; then
5909   for ac_header in dlfcn.h
5910do :
5911  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5912if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5913  cat >>confdefs.h <<_ACEOF
5914#define HAVE_DLFCN_H 1
5915_ACEOF
5916
5917fi
5918
5919done
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; }
5924if ${ac_cv_search_dlopen+:} false; then :
5925  $as_echo_n "(cached) " >&6
5926else
5927  ac_func_search_save_LIBS=$LIBS
5928cat 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
5935extern "C"
5936#endif
5937char dlopen ();
5938int
5939main ()
5940{
5941return dlopen ();
5942  ;
5943  return 0;
5944}
5945_ACEOF
5946for 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
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext
5958  if ${ac_cv_search_dlopen+:} false; then :
5959  break
5960fi
5961done
5962if ${ac_cv_search_dlopen+:} false; then :
5963
5964else
5965  ac_cv_search_dlopen=no
5966fi
5967rm conftest.$ac_ext
5968LIBS=$ac_func_search_save_LIBS
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5971$as_echo "$ac_cv_search_dlopen" >&6; }
5972ac_res=$ac_cv_search_dlopen
5973if test "$ac_res" != no; then :
5974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5975
5976fi
5977
5978   for ac_func in dlopen
5979do :
5980  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5981if test "x$ac_cv_func_dlopen" = xyes; then :
5982  cat >>confdefs.h <<_ACEOF
5983#define HAVE_DLOPEN 1
5984_ACEOF
5985
5986fi
5987done
5988
5989
5990   if test "x$ac_cv_func_dlopen" != xyes; then
5991      CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5992   fi
5993fi
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
5998for ac_func in gettimeofday
5999do :
6000  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6001if test "x$ac_cv_func_gettimeofday" = xyes; then :
6002  cat >>confdefs.h <<_ACEOF
6003#define HAVE_GETTIMEOFDAY 1
6004_ACEOF
6005
6006fi
6007done
6008
6009
6010
6011# Check whether to use the evil rpath or not
6012# Check whether --enable-rpath was given.
6013if test "${enable_rpath+set}" = set; then :
6014  enableval=$enable_rpath;  case "${enableval}" in
6015	     yes|"") ENABLE_RPATH=YES ;;
6016	     no) ;;
6017	     *) ;;
6018    esac
6019else
6020  ENABLE_RPATH=NO
6021
6022fi
6023
6024
6025
6026
6027
6028ac_ext=cpp
6029ac_cpp='$CXXCPP $CPPFLAGS'
6030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_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; }
6036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038
6039int
6040main ()
6041{
6042
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047if ac_fn_cxx_try_compile "$LINENO"; then :
6048  cxx_okay=yes
6049else
6050  cxx_okay=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053if test $cxx_okay = yes
6054then
6055	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
6056$as_echo "Good" >&6; }
6057else
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
6061fi
6062
6063if [ "$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
6074int
6075main ()
6076{
6077
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082if ac_fn_cxx_try_compile "$LINENO"; then :
6083  cxx11_okay=yes
6084else
6085  cxx11_okay=no
6086fi
6087rm -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
6103fi
6104
6105ac_ext=c
6106ac_cpp='$CPP $CPPFLAGS'
6107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110
6111
6112# Always build ICU with multi-threading support.
6113OLD_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; }
6123if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  ac_check_lib_save_LIBS=$LIBS
6127LIBS="-lpthread  $LIBS"
6128cat 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
6135extern "C"
6136#endif
6137char pthread_attr_init ();
6138int
6139main ()
6140{
6141return pthread_attr_init ();
6142  ;
6143  return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_link "$LINENO"; then :
6147  ac_cv_lib_pthread_pthread_attr_init=yes
6148else
6149  ac_cv_lib_pthread_pthread_attr_init=no
6150fi
6151rm -f core conftest.err conftest.$ac_objext \
6152    conftest$ac_exeext conftest.$ac_ext
6153LIBS=$ac_check_lib_save_LIBS
6154fi
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; }
6157if 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
6164fi
6165
6166if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6167  :
6168else
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; }
6178if ${ac_cv_search_pthread_mutex_destroy+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  ac_func_search_save_LIBS="$LIBS"
6182ac_cv_search_pthread_mutex_destroy="no"
6183for i in pthread pthreads c_r ; do
6184LIBS="-l$i  $ac_func_search_save_LIBS"
6185cat 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
6192extern "C"
6193#endif
6194char pthread_mutex_destroy ();
6195int
6196main ()
6197{
6198return pthread_mutex_destroy ();
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203if ac_fn_c_try_link "$LINENO"; then :
6204  ac_cv_search_pthread_mutex_destroy="-l$i"
6205break
6206fi
6207rm -f core conftest.err conftest.$ac_objext \
6208    conftest$ac_exeext conftest.$ac_ext
6209done
6210if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
6211cat 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
6218extern "C"
6219#endif
6220char pthread_mutex_destroy ();
6221int
6222main ()
6223{
6224return pthread_mutex_destroy ();
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_link "$LINENO"; then :
6230  ac_cv_search_pthread_mutex_destroy="none required"
6231fi
6232rm -f core conftest.err conftest.$ac_objext \
6233    conftest$ac_exeext conftest.$ac_ext
6234fi
6235LIBS="$ac_func_search_save_LIBS"
6236fi
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; }
6239if 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
6242else :
6243
6244fi
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; }
6252if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  ac_check_lib_save_LIBS=$LIBS
6256LIBS="-lpthread  $LIBS"
6257cat 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
6264extern "C"
6265#endif
6266char pthread_mutex_init ();
6267int
6268main ()
6269{
6270return pthread_mutex_init ();
6271  ;
6272  return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_link "$LINENO"; then :
6276  ac_cv_lib_pthread_pthread_mutex_init=yes
6277else
6278  ac_cv_lib_pthread_pthread_mutex_init=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext \
6281    conftest$ac_exeext conftest.$ac_ext
6282LIBS=$ac_check_lib_save_LIBS
6283fi
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; }
6286if 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
6293fi
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"
6301if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
6302
6303fi
6304
6305
6306  if test $ac_cv_func_pthread_mutex_lock = yes; then
6307    :
6308  fi
6309fi
6310# Check to see if we are using CygWin with MSVC
6311case "${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  ;;
6338esac
6339
6340# Check whether --enable-weak-threads was given.
6341if 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
6350fi
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.
6358HAVE_MMAP=0
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6360$as_echo_n "checking for mmap... " >&6; }
6361if ${ac_cv_func_mmap_ok+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
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>
6370int
6371main ()
6372{
6373mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"; then :
6379  ac_cv_func_mmap_ok=yes
6380else
6381  ac_cv_func_mmap_ok=no
6382fi
6383rm -f core conftest.err conftest.$ac_objext \
6384    conftest$ac_exeext conftest.$ac_ext
6385fi
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; }
6389if test $ac_cv_func_mmap_ok = yes
6390then
6391    HAVE_MMAP=1
6392else
6393    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6394fi
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.
6401GENCCODE_ASSEMBLY=
6402case "${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 ;;
6408i*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 ;;
6422sparc-*-solaris*)
6423    GENCCODE_ASSEMBLY="-a sun"
6424    ;;
6425ia64-*-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    ;;
6431esac
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
6438for ac_header in inttypes.h
6439do :
6440  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6441if test "x$ac_cv_header_inttypes_h" = xyes; then :
6442  cat >>confdefs.h <<_ACEOF
6443#define HAVE_INTTYPES_H 1
6444_ACEOF
6445
6446fi
6447
6448done
6449
6450if test $ac_cv_header_inttypes_h = no; then
6451 U_HAVE_INTTYPES_H=0
6452 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6453else
6454 U_HAVE_INTTYPES_H=1
6455fi
6456if 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
6463fi
6464
6465
6466
6467for ac_header in dirent.h
6468do :
6469  ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6470if test "x$ac_cv_header_dirent_h" = xyes; then :
6471  cat >>confdefs.h <<_ACEOF
6472#define HAVE_DIRENT_H 1
6473_ACEOF
6474
6475fi
6476
6477done
6478
6479if test $ac_cv_header_dirent_h = no; then
6480 U_HAVE_DIRENT_H=0
6481 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6482else
6483 U_HAVE_DIRENT_H=1
6484fi
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; }
6491if ${ac_cv_c_bigendian+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
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
6504if 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
6527fi
6528rm -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
6536int
6537main ()
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
6549if 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
6556int
6557main ()
6558{
6559#if BYTE_ORDER != BIG_ENDIAN
6560		 not big endian
6561		#endif
6562
6563  ;
6564  return 0;
6565}
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  ac_cv_c_bigendian=yes
6569else
6570  ac_cv_c_bigendian=no
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573fi
6574rm -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
6582int
6583main ()
6584{
6585#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6586	      bogus endian macros
6587	     #endif
6588
6589  ;
6590  return 0;
6591}
6592_ACEOF
6593if 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
6599int
6600main ()
6601{
6602#ifndef _BIG_ENDIAN
6603		 not big endian
6604		#endif
6605
6606  ;
6607  return 0;
6608}
6609_ACEOF
6610if ac_fn_c_try_compile "$LINENO"; then :
6611  ac_cv_c_bigendian=yes
6612else
6613  ac_cv_c_bigendian=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616fi
6617rm -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.  */
6625short 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
6641int
6642main ()
6643{
6644return use_ascii (foo) == use_ebcdic (foo);
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if 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
6661fi
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663else
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666$ac_includes_default
6667int
6668main ()
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
6684if ac_fn_c_try_run "$LINENO"; then :
6685  ac_cv_c_bigendian=no
6686else
6687  ac_cv_c_bigendian=yes
6688fi
6689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690  conftest.$ac_objext conftest.beam conftest.$ac_ext
6691fi
6692
6693    fi
6694fi
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
6713if test $ac_cv_c_bigendian = no; then
6714U_IS_BIG_ENDIAN=0
6715U_ENDIAN_CHAR="l"
6716else
6717U_IS_BIG_ENDIAN=1
6718U_ENDIAN_CHAR="b"
6719fi
6720
6721
6722# Do various POSIX related checks
6723U_HAVE_NL_LANGINFO_CODESET=0
6724U_NL_LANGINFO_CODESET=-1
6725ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6726if test "x$ac_cv_func_nl_langinfo" = xyes; then :
6727  U_HAVE_NL_LANGINFO=1
6728else
6729  U_HAVE_NL_LANGINFO=0
6730fi
6731
6732if 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; }
6735if ${ac_cv_nl_langinfo_codeset+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
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>
6743int
6744main ()
6745{
6746nl_langinfo($a);
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751if ac_fn_c_try_link "$LINENO"; then :
6752  ac_cv_nl_langinfo_codeset="$a"; break
6753fi
6754rm -f core conftest.err conftest.$ac_objext \
6755    conftest$ac_exeext conftest.$ac_ext
6756  done
6757fi
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
6771fi
6772
6773
6774
6775# Namespace support checks
6776ac_ext=cpp
6777ac_cpp='$CXXCPP $CPPFLAGS'
6778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780ac_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; }
6784if ${ac_cv_namespace_ok+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789namespace x_version {void f(){}}
6790    namespace x = x_version;
6791    using namespace x_version;
6792
6793int
6794main ()
6795{
6796f();
6797  ;
6798  return 0;
6799}
6800_ACEOF
6801if ac_fn_cxx_try_link "$LINENO"; then :
6802  ac_cv_namespace_ok=yes
6803else
6804  ac_cv_namespace_ok=no
6805fi
6806rm -f core conftest.err conftest.$ac_objext \
6807    conftest$ac_exeext conftest.$ac_ext
6808fi
6809
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6811$as_echo "$ac_cv_namespace_ok" >&6; }
6812if test $ac_cv_namespace_ok = no
6813then
6814    as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5
6815fi
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; }
6819U_OVERRIDE_CXX_ALLOCATION=0
6820U_HAVE_PLACEMENT_NEW=0
6821if ${ac_cv_override_cxx_allocation_ok+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
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
6835int
6836main ()
6837{
6838
6839  ;
6840  return 0;
6841}
6842_ACEOF
6843if ac_fn_cxx_try_link "$LINENO"; then :
6844  ac_cv_override_cxx_allocation_ok=yes
6845else
6846  ac_cv_override_cxx_allocation_ok=no
6847fi
6848rm -f core conftest.err conftest.$ac_objext \
6849    conftest$ac_exeext conftest.$ac_ext
6850fi
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; }
6854if test $ac_cv_override_cxx_allocation_ok = yes
6855then
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
6861else
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
6875int
6876main ()
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_cxx_try_link "$LINENO"; then :
6884  ac_cv_override_placement_new_ok=yes
6885else
6886  ac_cv_override_placement_new_ok=no
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889    conftest$ac_exeext conftest.$ac_ext
6890fi
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
6900else
6901    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6902fi
6903
6904
6905
6906ac_ext=c
6907ac_cpp='$CPP $CPPFLAGS'
6908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
6913if test "x$ac_cv_func_popen" = xyes; then :
6914
6915fi
6916
6917if test x$ac_cv_func_popen = xyes
6918then
6919     U_HAVE_POPEN=1
6920else
6921     CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6922     U_HAVE_POPEN=0
6923fi
6924
6925
6926ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
6927if test "x$ac_cv_func_tzset" = xyes; then :
6928
6929fi
6930
6931U_HAVE_TZSET=0
6932if test x$ac_cv_func_tzset = xyes
6933then
6934    U_TZSET=tzset
6935    U_HAVE_TZSET=1
6936else
6937    ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
6938if test "x$ac_cv_func__tzset" = xyes; then :
6939
6940fi
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
6949fi
6950
6951
6952
6953U_HAVE_TZNAME=0
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6955$as_echo_n "checking for tzname... " >&6; }
6956if ${ac_cv_var_tzname+:} false; then :
6957  $as_echo_n "(cached) " >&6
6958else
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.  */
6967extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
6968#endif
6969int
6970main ()
6971{
6972atoi(*tzname);
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_link "$LINENO"; then :
6978  ac_cv_var_tzname=yes
6979else
6980  ac_cv_var_tzname=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext \
6983    conftest$ac_exeext conftest.$ac_ext
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6986$as_echo "$ac_cv_var_tzname" >&6; }
6987if test $ac_cv_var_tzname = yes; then
6988  U_TZNAME=tzname
6989  U_HAVE_TZNAME=1
6990else
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6992$as_echo_n "checking for _tzname... " >&6; }
6993if ${ac_cv_var__tzname+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998#include <stdlib.h>
6999  #include <time.h>
7000  extern char *_tzname[];
7001int
7002main ()
7003{
7004atoi(*_tzname);
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_link "$LINENO"; then :
7010  ac_cv_var__tzname=yes
7011else
7012  ac_cv_var__tzname=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext \
7015    conftest$ac_exeext conftest.$ac_ext
7016fi
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
7025fi
7026
7027
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
7030$as_echo_n "checking for timezone... " >&6; }
7031if ${ac_cv_var_timezone+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
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
7041int
7042main ()
7043{
7044timezone = 1;
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049if ac_fn_c_try_link "$LINENO"; then :
7050  ac_cv_var_timezone=yes
7051else
7052  ac_cv_var_timezone=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext \
7055    conftest$ac_exeext conftest.$ac_ext
7056fi
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
7058$as_echo "$ac_cv_var_timezone" >&6; }
7059U_HAVE_TIMEZONE=0
7060if test $ac_cv_var_timezone = yes; then
7061  U_TIMEZONE=timezone
7062  U_HAVE_TIMEZONE=1
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
7065$as_echo_n "checking for __timezone... " >&6; }
7066if ${ac_cv_var___timezone+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h.  */
7071#include <time.h>
7072int
7073main ()
7074{
7075__timezone = 1;
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080if ac_fn_c_try_link "$LINENO"; then :
7081  ac_cv_var___timezone=yes
7082else
7083  ac_cv_var___timezone=no
7084fi
7085rm -f core conftest.err conftest.$ac_objext \
7086    conftest$ac_exeext conftest.$ac_ext
7087fi
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; }
7096if ${ac_cv_var__timezone+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h.  */
7101#include <time.h>
7102int
7103main ()
7104{
7105_timezone = 1;
7106  ;
7107  return 0;
7108}
7109_ACEOF
7110if ac_fn_c_try_link "$LINENO"; then :
7111  ac_cv_var__timezone=yes
7112else
7113  ac_cv_var__timezone=no
7114fi
7115rm -f core conftest.err conftest.$ac_objext \
7116    conftest$ac_exeext conftest.$ac_ext
7117fi
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
7127fi
7128
7129
7130
7131ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
7132if test "x$ac_cv_func_strtod_l" = xyes; then :
7133
7134fi
7135
7136if test x$ac_cv_func_strtod_l = xyes
7137then
7138    U_HAVE_STRTOD_L=1
7139    ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
7140if test "x$ac_cv_header_xlocale_h" = xyes; then :
7141
7142fi
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
7152else
7153    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
7154    U_HAVE_STRTOD_L=0
7155fi
7156
7157
7158# Checks for typedefs
7159ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7160if test "x$ac_cv_type_int8_t" = xyes; then :
7161
7162else
7163
7164cat >>confdefs.h <<_ACEOF
7165#define int8_t signed char
7166_ACEOF
7167
7168fi
7169
7170ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7171if test "x$ac_cv_type_uint8_t" = xyes; then :
7172
7173else
7174
7175cat >>confdefs.h <<_ACEOF
7176#define uint8_t unsigned char
7177_ACEOF
7178
7179fi
7180
7181ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7182if test "x$ac_cv_type_int16_t" = xyes; then :
7183
7184else
7185
7186cat >>confdefs.h <<_ACEOF
7187#define int16_t signed short
7188_ACEOF
7189
7190fi
7191
7192ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7193if test "x$ac_cv_type_uint16_t" = xyes; then :
7194
7195else
7196
7197cat >>confdefs.h <<_ACEOF
7198#define uint16_t unsigned short
7199_ACEOF
7200
7201fi
7202
7203ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7204if test "x$ac_cv_type_int32_t" = xyes; then :
7205
7206else
7207
7208cat >>confdefs.h <<_ACEOF
7209#define int32_t signed long
7210_ACEOF
7211
7212fi
7213
7214ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7215if test "x$ac_cv_type_uint32_t" = xyes; then :
7216
7217else
7218
7219cat >>confdefs.h <<_ACEOF
7220#define uint32_t unsigned long
7221_ACEOF
7222
7223fi
7224
7225ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7226if test "x$ac_cv_type_int64_t" = xyes; then :
7227
7228else
7229
7230cat >>confdefs.h <<_ACEOF
7231#define int64_t signed long long
7232_ACEOF
7233
7234fi
7235
7236ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7237if test "x$ac_cv_type_uint64_t" = xyes; then :
7238
7239else
7240
7241cat >>confdefs.h <<_ACEOF
7242#define uint64_t unsigned long long
7243_ACEOF
7244
7245fi
7246
7247
7248if test $ac_cv_type_int8_t = no; then
7249CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
7250fi
7251
7252if test $ac_cv_type_uint8_t = no; then
7253CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
7254fi
7255
7256if test $ac_cv_type_int16_t = no; then
7257CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
7258fi
7259
7260if test $ac_cv_type_uint16_t = no; then
7261CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
7262fi
7263
7264if test $ac_cv_type_int32_t = no; then
7265CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
7266fi
7267
7268if test $ac_cv_type_uint32_t = no; then
7269CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
7270fi
7271
7272if test $ac_cv_type_int64_t = no; then
7273CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
7274fi
7275
7276if test $ac_cv_type_uint64_t = no; then
7277CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
7278fi
7279
7280# Do various wchar_t related checks
7281ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7282if test "x$ac_cv_header_wchar_h" = xyes; then :
7283
7284fi
7285
7286
7287if test "$ac_cv_header_wchar_h" = no
7288then
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"
7292else
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; }
7300if ${ac_cv_search_wcscpy+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  ac_func_search_save_LIBS=$LIBS
7304cat 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
7311extern "C"
7312#endif
7313char wcscpy ();
7314int
7315main ()
7316{
7317return wcscpy ();
7318  ;
7319  return 0;
7320}
7321_ACEOF
7322for 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
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext
7334  if ${ac_cv_search_wcscpy+:} false; then :
7335  break
7336fi
7337done
7338if ${ac_cv_search_wcscpy+:} false; then :
7339
7340else
7341  ac_cv_search_wcscpy=no
7342fi
7343rm conftest.$ac_ext
7344LIBS=$ac_func_search_save_LIBS
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7347$as_echo "$ac_cv_search_wcscpy" >&6; }
7348ac_res=$ac_cv_search_wcscpy
7349if test "$ac_res" != no; then :
7350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7351
7352fi
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
7360fi
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; }
7370if ${ac_cv_sizeof_wchar_t+:} false; then :
7371  $as_echo_n "(cached) " >&6
7372else
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
7384else
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;}
7388as_fn_error 77 "cannot compute sizeof (wchar_t)
7389See \`config.log' for more details" "$LINENO" 5; }
7390   else
7391     ac_cv_sizeof_wchar_t=0
7392   fi
7393fi
7394
7395fi
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
7401cat >>confdefs.h <<_ACEOF
7402#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7403_ACEOF
7404
7405
7406U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
7407# We do this check to verify that everything is okay.
7408if 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
7412fi
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; }
7416U_CHECK_UTF16_STRING=1
7417CHECK_UTF16_STRING_RESULT="unknown"
7418
7419case "${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.  */
7428const unsigned short hello[] = u"hello";
7429int
7430main ()
7431{
7432
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_compile "$LINENO"; then :
7438  U_CHECK_UTF16_STRING=1
7439else
7440  U_CHECK_UTF16_STRING=0
7441fi
7442rm -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.  */
7460const unsigned short hello[] = U"hello";
7461int
7462main ()
7463{
7464
7465  ;
7466  return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470  U_CHECK_UTF16_STRING=1
7471else
7472  U_CHECK_UTF16_STRING=0
7473fi
7474rm -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    ;;
7504esac
7505
7506# GCC >= 4.4 supports UTF16 string literals. As of ICU 62, both C and C++ files require them.
7507if 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
7512static const unsigned short test[] = u"This is a UTF16 literal string.";
7513
7514int
7515main ()
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_compile "$LINENO"; then :
7523  CC_UTF16_STRING=1
7524else
7525  CC_UTF16_STRING=0
7526fi
7527rm -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
7535ac_cpp='$CXXCPP $CPPFLAGS'
7536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7539
7540        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h.  */
7542
7543static const char16_t test[] = u"This is a UTF16 literal string.";
7544
7545int
7546main ()
7547{
7548
7549  ;
7550  return 0;
7551}
7552_ACEOF
7553if ac_fn_cxx_try_compile "$LINENO"; then :
7554  CXX_UTF16_STRING=1
7555else
7556  CXX_UTF16_STRING=0
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559        ac_ext=c
7560ac_cpp='$CPP $CPPFLAGS'
7561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563ac_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
7573fi
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.
7579if 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
7585else
7586  extras=true
7587fi
7588
7589
7590
7591if test "$extras" = true; then
7592  EXTRAS_TRUE=
7593  U_HAVE_EXTRAS=1
7594else
7595  EXTRAS_TRUE='#'
7596  U_HAVE_EXTRAS=0
7597fi
7598# Check whether --enable-icuio was given.
7599if 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
7605else
7606  icuio=true
7607fi
7608
7609
7610
7611if test "$icuio" = true; then
7612  ICUIO_TRUE=
7613  U_HAVE_ICUIO=1
7614else
7615  ICUIO_TRUE='#'
7616  U_HAVE_ICUIO=0
7617fi
7618
7619# Enable/disable layoutex
7620# Check whether --enable-layoutex was given.
7621if 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
7627else
7628  layoutex=$have_icu_le_hb
7629fi
7630
7631
7632
7633if test "$layoutex" = true; then
7634  LAYOUTEX_TRUE=
7635  U_HAVE_LAYOUTEX=1
7636else
7637  LAYOUTEX_TRUE='#'
7638  U_HAVE_LAYOUTEX=0
7639fi
7640
7641# Enable/disable layout
7642# Check whether --enable-layout was given.
7643if 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
7649fi
7650
7651
7652# Enable/disable tools
7653# Check whether --enable-tools was given.
7654if 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
7660else
7661  tools=true
7662fi
7663
7664
7665
7666if test "$tools" = true; then
7667  TOOLS_TRUE=
7668  U_HAVE_TOOLS=1
7669else
7670  TOOLS_TRUE='#'
7671  U_HAVE_TOOLS=0
7672fi
7673
7674
7675# Check whether --with-data-packaging was given.
7676if 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
7685else
7686  datapackaging=
7687fi
7688
7689
7690# Note:  'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7691# thesysconfdir=`eval echo $sysconfdir`
7692thedatadir=`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}.
7694pkgicudatadir=$datadir
7695thepkgicudatadir=$thedatadir
7696
7697
7698
7699
7700if 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
7708fi
7709
7710datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
7711
7712datapackaging_msg="(No explaination for mode $datapackaging.)"
7713
7714datapackaging_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."
7715datapackaging_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."
7716datapackaging_howfound="(unknown)"
7717
7718case "$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    ;;
7745esac
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.
7753if test "${with_library_suffix+set}" = set; then :
7754  withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
7755else
7756  ICULIBSUFFIX=
7757fi
7758
7759msg=$ICULIBSUFFIX
7760if test "$msg" = ""; then
7761    msg=none
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7764$as_echo "$msg" >&6; }
7765
7766if test "$ICULIBSUFFIX" != ""
7767then
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} "
7771else
7772    U_HAVE_LIB_SUFFIX=0
7773fi
7774
7775
7776
7777# Enable/disable tests
7778# Check whether --enable-tests was given.
7779if 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
7785else
7786  tests=true
7787fi
7788
7789
7790
7791if test "$tests" = true; then
7792  TESTS_TRUE=
7793  U_HAVE_TESTS=1
7794else
7795  TESTS_TRUE='#'
7796  U_HAVE_TESTS=0
7797fi
7798
7799# Enable/disable samples
7800# Check whether --enable-samples was given.
7801if 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
7807else
7808  samples=true
7809fi
7810
7811
7812
7813if test "$samples" = true; then
7814  SAMPLES_TRUE=
7815  U_HAVE_SAMPLES=1
7816else
7817  SAMPLES_TRUE='#'
7818  U_HAVE_SAMPLES=0
7819fi
7820
7821ICUDATA_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.
7825case "${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 ;;
7848esac
7849
7850
7851platform_make_fragment_name="$icu_cv_host_frag"
7852platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
7853
7854
7855
7856if test "${FORCE_LIBS}" != ""; then
7857   echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}"  1>&6
7858   LIBS=${FORCE_LIBS}
7859fi
7860
7861# Now that we're done using CPPFLAGS etc. for tests, we can change it
7862# for build.
7863
7864if test "${CC}" == "clang"; then
7865   CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
7866else
7867   CLANGCFLAGS=""
7868fi
7869
7870if test "${CXX}" == "clang++"; then
7871   CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
7872else
7873   CLANGCXXFLAGS=""
7874fi
7875
7876CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
7877CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
7878CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
7879
7880
7881
7882
7883# append all config cppflags
7884CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7885
7886echo "CPPFLAGS=$CPPFLAGS"
7887echo "CFLAGS=$CFLAGS"
7888echo "CXXFLAGS=$CXXFLAGS"
7889
7890
7891# output the Makefiles
7892ac_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
7894cat >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
7956if 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
7977fi
7978rm -f confcache
7979
7980test "x$prefix" = xNONE && prefix=$ac_default_prefix
7981# Let make expand exec_prefix.
7982test "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.
7991ac_script='
7992:mline
7993/\\$/{
7994 N
7995 s,\\\n,,
7996 b mline
7997}
7998t clear
7999:clear
8000s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
8001t quote
8002s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
8003t quote
8004b any
8005:quote
8006s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8007s/\[/\\&/g
8008s/\]/\\&/g
8009s/\$/$$/g
8010H
8011:any
8012${
8013	g
8014	s/^\n//
8015	s/\n/ /g
8016	p
8017}
8018'
8019DEFS=`sed -n "$ac_script" confdefs.h`
8020
8021
8022ac_libobjs=
8023ac_ltlibobjs=
8024U=
8025for 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'
8033done
8034LIBOBJS=$ac_libobjs
8035
8036LTLIBOBJS=$ac_ltlibobjs
8037
8038
8039
8040
8041: "${CONFIG_STATUS=./config.status}"
8042ac_write_fail=0
8043ac_clean_files_save=$ac_clean_files
8044ac_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;}
8047as_write_fail=0
8048cat >$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
8055debug=false
8056ac_cs_recheck=false
8057ac_cs_silent=false
8058
8059SHELL=\${CONFIG_SHELL-$SHELL}
8060export SHELL
8061_ASEOF
8062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8063## -------------------- ##
8064## M4sh Initialization. ##
8065## -------------------- ##
8066
8067# Be more Bourne compatible
8068DUALCASE=1; export DUALCASE # for MKS sh
8069if 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
8076else
8077  case `(set -o) 2>/dev/null` in #(
8078  *posix*) :
8079    set -o posix ;; #(
8080  *) :
8081     ;;
8082esac
8083fi
8084
8085
8086as_nl='
8087'
8088export as_nl
8089# Printing a long string crashes Solaris 7 /usr/bin/printf.
8090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8092as_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.
8095if 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 --'
8099elif (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'
8102else
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'
8122fi
8123
8124# The user is always right.
8125if 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  }
8131fi
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.)
8139IFS=" ""	$as_nl"
8140
8141# Find who we are.  Look in the path if we contain no directory separator.
8142as_myself=
8143case $0 in #((
8144  *[\\/]* ) as_myself=$0 ;;
8145  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
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
8152IFS=$as_save_IFS
8153
8154     ;;
8155esac
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.
8158if test "x$as_myself" = x; then
8159  as_myself=$0
8160fi
8161if test ! -f "$as_myself"; then
8162  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8163  exit 1
8164fi
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.
8170for as_var in BASH_ENV ENV MAIL MAILPATH
8171do eval test x\${$as_var+set} = xset \
8172  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8173done
8174PS1='$ '
8175PS2='> '
8176PS4='+ '
8177
8178# NLS nuisances.
8179LC_ALL=C
8180export LC_ALL
8181LANGUAGE=C
8182export 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.
8193as_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.
8208as_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.
8216as_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.
8226as_fn_unset ()
8227{
8228  { eval $1=; unset $1;}
8229}
8230as_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.
8237if (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  }'
8242else
8243  as_fn_append ()
8244  {
8245    eval $1=\$$1\$2
8246  }
8247fi # 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.
8254if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8255  eval 'as_fn_arith ()
8256  {
8257    as_val=$(( $* ))
8258  }'
8259else
8260  as_fn_arith ()
8261  {
8262    as_val=`expr "$@" || test $? -eq 1`
8263  }
8264fi # as_fn_arith
8265
8266
8267if expr a : '\(a\)' >/dev/null 2>&1 &&
8268   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8269  as_expr=expr
8270else
8271  as_expr=false
8272fi
8273
8274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8275  as_basename=basename
8276else
8277  as_basename=false
8278fi
8279
8280if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8281  as_dirname=dirname
8282else
8283  as_dirname=false
8284fi
8285
8286as_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.
8306as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8308as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8309as_cr_digits='0123456789'
8310as_cr_alnum=$as_cr_Letters$as_cr_digits
8311
8312ECHO_C= ECHO_N= ECHO_T=
8313case `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';;
8323esac
8324
8325rm -f conf$$ conf$$.exe conf$$.file
8326if test -d conf$$.dir; then
8327  rm -f conf$$.dir/conf$$.file
8328else
8329  rm -f conf$$.dir
8330  mkdir conf$$.dir 2>/dev/null
8331fi
8332if (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
8346else
8347  as_ln_s='cp -pR'
8348fi
8349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8350rmdir conf$$.dir 2>/dev/null
8351
8352
8353# as_fn_mkdir_p
8354# -------------
8355# Create "$as_dir" as a directory, including parents if necessary.
8356as_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
8400if mkdir -p . 2>/dev/null; then
8401  as_mkdir_p='mkdir -p "$as_dir"'
8402else
8403  test -d ./-p && rmdir ./-p
8404  as_mkdir_p=false
8405fi
8406
8407
8408# as_fn_executable_p FILE
8409# -----------------------
8410# Test if FILE is an executable regular file.
8411as_fn_executable_p ()
8412{
8413  test -f "$1" && test -x "$1"
8414} # as_fn_executable_p
8415as_test_x='test -x'
8416as_executable_p=as_fn_executable_p
8417
8418# Sed expression to map a string onto a valid CPP name.
8419as_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.
8422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8423
8424
8425exec 6>&1
8426## ----------------------------------- ##
8427## Main body of $CONFIG_STATUS script. ##
8428## ----------------------------------- ##
8429_ASEOF
8430test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8431
8432cat >>$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.
8436ac_log="
8437This file was extended by ICU $as_me 63.2, which was
8438generated 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
8446on `(hostname || uname -n) 2>/dev/null | sed 1q`
8447"
8448
8449_ACEOF
8450
8451case $ac_config_files in *"
8452"*) set x $ac_config_files; shift; ac_config_files=$*;;
8453esac
8454
8455
8456
8457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8458# Files that config.status was made for.
8459config_files="$ac_config_files"
8460
8461_ACEOF
8462
8463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8464ac_cs_usage="\
8465\`$as_me' instantiates files and other configuration actions
8466from templates according to the current configuration.  Unless the files
8467and actions are specified as TAGs, all are instantiated by default.
8468
8469Usage: $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
8481Configuration files:
8482$config_files
8483
8484Report bugs to <http://icu-project.org/bugs>.
8485ICU home page: <http://icu-project.org>."
8486
8487_ACEOF
8488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8490ac_cs_version="\\
8491ICU config.status 63.2
8492configured by $0, generated by GNU Autoconf 2.69,
8493  with options \\"\$ac_cs_config\\"
8494
8495Copyright (C) 2012 Free Software Foundation, Inc.
8496This config.status script is free software; the Free Software Foundation
8497gives unlimited permission to copy, distribute and modify it."
8498
8499ac_pwd='$ac_pwd'
8500srcdir='$srcdir'
8501INSTALL='$INSTALL'
8502test -n "\$AWK" || AWK=awk
8503_ACEOF
8504
8505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8506# The default lists apply if the user does not specify any file.
8507ac_need_defaults=:
8508while test $# != 0
8509do
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'
8554Try \`$0 --help' for more information." ;;
8555
8556  *) as_fn_append ac_config_targets " $1"
8557     ac_need_defaults=false ;;
8558
8559  esac
8560  shift
8561done
8562
8563ac_configure_extra_args=
8564
8565if $ac_cs_silent; then
8566  exec 6>/dev/null
8567  ac_configure_extra_args="$ac_configure_extra_args --silent"
8568fi
8569
8570_ACEOF
8571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8572if \$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 "\$@"
8579fi
8580
8581_ACEOF
8582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8583exec 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
8593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8594_ACEOF
8595
8596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8597
8598# Handling of arguments.
8599for ac_config_target in $ac_config_targets
8600do
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
8672done
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.
8679if $ac_need_defaults; then
8680  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8681fi
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
8708ac_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'.
8713if test -n "$CONFIG_FILES"; then
8714
8715
8716ac_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.
8720if test "x$ac_cr" = x; then
8721  eval ac_cr=\$\'\\r\'
8722fi
8723ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8724if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8725  ac_cs_awk_cr='\\r'
8726else
8727  ac_cs_awk_cr=$ac_cr
8728fi
8729
8730echo '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
8740ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8741ac_delim='%!_!# '
8742for 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
8754done
8755rm -f conf$$subs.sh
8756
8757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8758cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8759_ACEOF
8760sed -n '
8761h
8762s/^/S["/; s/!.*/"]=/
8763p
8764g
8765s/^[^!]*!//
8766:repl
8767t repl
8768s/'"$ac_delim"'$//
8769t delim
8770:nl
8771h
8772s/\(.\{148\}\)..*/\1/
8773t more1
8774s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8775p
8776n
8777b repl
8778:more1
8779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8780p
8781g
8782s/.\{148\}//
8783t nl
8784:delim
8785h
8786s/\(.\{148\}\)..*/\1/
8787t more2
8788s/["\\]/\\&/g; s/^/"/; s/$/"/
8789p
8790b
8791:more2
8792s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8793p
8794g
8795s/.\{148\}//
8796t delim
8797' <conf$$subs.awk | sed '
8798/^[^""]/{
8799  N
8800  s/\n//
8801}
8802' >>$CONFIG_STATUS || ac_write_fail=1
8803rm -f conf$$subs.awk
8804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8805_ACAWK
8806cat >>"\$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
8833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8834if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8835  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8836else
8837  cat
8838fi < "$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).
8846if test "x$srcdir" = x.; then
8847  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8848h
8849s///
8850s/^/:/
8851s/[	 ]*$/:/
8852s/:\$(srcdir):/:/g
8853s/:\${srcdir}:/:/g
8854s/:@srcdir@:/:/g
8855s/^:*//
8856s/:*$//
8857x
8858s/\(=[	 ]*\).*/\1/
8859G
8860s/\n//
8861s/^[^=]*=[	 ]*$//
8862}'
8863fi
8864
8865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8866fi # test -n "$CONFIG_FILES"
8867
8868
8869eval set X "  :F $CONFIG_FILES      "
8870shift
8871for ac_tag
8872do
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
8964case "$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 ;;
8974esac
8975ac_abs_top_builddir=$ac_pwd
8976ac_abs_builddir=$ac_pwd$ac_dir_suffix
8977# for backward compatibility:
8978ac_top_builddir=$ac_top_build_prefix
8979
8980case $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 ;;
8993esac
8994ac_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
9009cat >>$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.
9012ac_datarootdir_hack=; ac_datarootdir_seen=
9013ac_sed_dataroot='
9014/datarootdir/ {
9015  p
9016  q
9017}
9018/@datadir@/p
9019/@docdir@/p
9020/@infodir@/p
9021/@localedir@/p
9022/@mandir@/p'
9023case `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
9029cat >>$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' ;;
9037esac
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?
9043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9044ac_sed_extra="$ac_vpsub
9045$extrasub
9046_ACEOF
9047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9048:t
9049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9050s|@configure_input@|$ac_sed_conf_input|;t t
9051s&@top_builddir@&$ac_top_builddir_sub&;t t
9052s&@top_build_prefix@&$ac_top_build_prefix&;t t
9053s&@srcdir@&$ac_srcdir&;t t
9054s&@abs_srcdir@&$ac_abs_srcdir&;t t
9055s&@top_srcdir@&$ac_top_srcdir&;t t
9056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9057s&@builddir@&$ac_builddir&;t t
9058s&@abs_builddir@&$ac_abs_builddir&;t t
9059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9060s&@INSTALL@&$ac_INSTALL&;t t
9061$ac_datarootdir_hack
9062"
9063eval 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
9066test -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'
9071which 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'
9073which 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
9087done # for ac_tag
9088
9089
9090as_fn_exit 0
9091_ACEOF
9092ac_clean_files=$ac_clean_files_save
9093
9094test $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.
9106if 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
9117fi
9118if 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;}
9121fi
9122
9123
9124echo
9125echo "ICU for C/C++ $VERSION is ready to be built."
9126echo "=== Important Notes: ==="
9127
9128echo "Data Packaging: $datapackaging"
9129echo " This means: $datapackaging_msg"
9130echo " To locate data: $datapackaging_howfound"
9131
9132if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
9133echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
9134else
9135echo "** WARNING: $U_MAKE may not be GNU make."
9136echo "This may cause ICU to fail to build. Please make sure that GNU make"
9137echo "is in your PATH so that the configure script can detect its location."
9138fi
9139if test "x$AR" = "xfalse"; then
9140  echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
9141fi
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; }
9145if "$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; }
9148else
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; }
9151fi
9152
9153
9154if 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}"
9189fi
9190
9191
9192if test -n "$UCONFIG_CFLAGS"; then
9193   echo "C   apps may want to build with CFLAGS   = ${UCONFIG_CFLAGS}"
9194fi
9195
9196if test -n "$UCONFIG_CXXFLAGS"; then
9197   echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
9198fi
9199
9200if test "$tools" = false;
9201then
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."
9204fi
9205
9206if test -z "$PYTHON3";
9207then
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 ""
9212else
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 ""
9217fi
9218
9219$as_unset _CXX_CXXSUFFIX
9220