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