1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5#  Copyright (c) 1999-2009, International Business Machines Corporation and others. All Rights Reserved.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME=
598PACKAGE_TARNAME=
599PACKAGE_VERSION=
600PACKAGE_STRING=
601PACKAGE_BUGREPORT=
602
603ac_unique_file="common/unicode/utypes.h"
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618#  include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623#  include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
640ac_subst_vars='LTLIBOBJS
641LIBOBJS
642platform_make_fragment
643platform_make_fragment_name
644platform
645ICUDATA_CHAR
646SAMPLES_TRUE
647TESTS_TRUE
648ICULIBSUFFIXCNAME
649U_HAVE_LIB_SUFFIX
650ICULIBSUFFIX
651DATA_PACKAGING_MODE
652thepkgicudatadir
653pkgicudatadir
654LAYOUT_TRUE
655ICUIO_TRUE
656EXTRAS_TRUE
657U_CHECK_UTF16_STRING
658U_SIZEOF_WCHAR_T
659U_HAVE_WCSCPY
660U_HAVE_WCHAR_H
661HAVE_UINT64_T
662HAVE_INT64_T
663HAVE_UINT32_T
664HAVE_INT32_T
665HAVE_UINT16_T
666HAVE_INT16_T
667HAVE_UINT8_T
668HAVE_INT8_T
669U_TIMEZONE
670U_HAVE_TIMEZONE
671U_TZNAME
672U_HAVE_TZNAME
673U_TZSET
674U_HAVE_TZSET
675U_HAVE_POPEN
676U_HAVE_PLACEMENT_NEW
677U_OVERRIDE_CXX_ALLOCATION
678U_HAVE_NAMESPACE
679U_NL_LANGINFO_CODESET
680U_HAVE_NL_LANGINFO_CODESET
681U_IS_BIG_ENDIAN
682U_IOSTREAM_SOURCE
683U_HAVE_DIRENT_H
684U_HAVE_INTTYPES_H
685EGREP
686GREP
687GENCCODE_ASSEMBLY
688HAVE_MMAP
689LIB_THREAD
690ICU_USE_THREADS
691THREADS_TRUE
692U_HAVE_STD_STRING
693U_INLINE
694ENABLE_RPATH
695U_ENABLE_TRACING
696U_DISABLE_RENAMING
697AR
698RANLIB
699LIBCXXFLAGS
700LIBCFLAGS
701U_USE_GCC_VISIBILITY_ATTRIBUTE
702U_DEFAULT_SHOW_DRAFT
703ENABLE_RELEASE
704ENABLE_DEBUG
705ENABLE_STATIC
706ENABLE_SHARED
707LIB_M
708COMPILE_LINK_ENVVAR
709ARFLAGS
710DOXYGEN
711cross_buildroot
712U_MAKE
713cross_compiling
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717CPP
718ac_ct_CXX
719CXXFLAGS
720CXX
721OBJEXT
722EXEEXT
723ac_ct_CC
724LDFLAGS
725CFLAGS
726CC
727CPPFLAGS
728target_os
729target_vendor
730target_cpu
731target
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740UNICODE_VERSION
741LIB_VERSION_MAJOR
742LIB_VERSION
743VERSION
744PACKAGE
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785with_cross_build
786enable_strict
787enable_64bit_libs
788with_library_bits
789enable_shared
790enable_static
791enable_debug
792enable_release
793enable_draft
794enable_renaming
795enable_tracing
796enable_rpath
797enable_threads
798enable_weak_threads
799with_iostream
800enable_extras
801enable_icuio
802enable_layout
803with_data_packaging
804with_library_suffix
805enable_tests
806enable_samples
807'
808      ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CXX
817CXXFLAGS
818CCC
819CPP'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *)	ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
929   { (exit 1); exit 1; }; }
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956   { (exit 1); exit 1; }; }
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112    ac_prev=sbindir ;;
1113  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114  | --sbi=* | --sb=*)
1115    sbindir=$ac_optarg ;;
1116
1117  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119  | --sharedst | --shareds | --shared | --share | --shar \
1120  | --sha | --sh)
1121    ac_prev=sharedstatedir ;;
1122  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125  | --sha=* | --sh=*)
1126    sharedstatedir=$ac_optarg ;;
1127
1128  -site | --site | --sit)
1129    ac_prev=site ;;
1130  -site=* | --site=* | --sit=*)
1131    site=$ac_optarg ;;
1132
1133  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134    ac_prev=srcdir ;;
1135  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136    srcdir=$ac_optarg ;;
1137
1138  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139  | --syscon | --sysco | --sysc | --sys | --sy)
1140    ac_prev=sysconfdir ;;
1141  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143    sysconfdir=$ac_optarg ;;
1144
1145  -target | --target | --targe | --targ | --tar | --ta | --t)
1146    ac_prev=target_alias ;;
1147  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148    target_alias=$ac_optarg ;;
1149
1150  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151    verbose=yes ;;
1152
1153  -version | --version | --versio | --versi | --vers | -V)
1154    ac_init_version=: ;;
1155
1156  -with-* | --with-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161   { (exit 1); exit 1; }; }
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=\$ac_optarg ;;
1172
1173  -without-* | --without-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178   { (exit 1); exit 1; }; }
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"with_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval with_$ac_useropt=no ;;
1189
1190  --x)
1191    # Obsolete; use --with-x.
1192    with_x=yes ;;
1193
1194  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195  | --x-incl | --x-inc | --x-in | --x-i)
1196    ac_prev=x_includes ;;
1197  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199    x_includes=$ac_optarg ;;
1200
1201  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203    ac_prev=x_libraries ;;
1204  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206    x_libraries=$ac_optarg ;;
1207
1208  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1209Try \`$0 --help' for more information." >&2
1210   { (exit 1); exit 1; }; }
1211    ;;
1212
1213  *=*)
1214    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1217      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1218   { (exit 1); exit 1; }; }
1219    eval $ac_envvar=\$ac_optarg
1220    export $ac_envvar ;;
1221
1222  *)
1223    # FIXME: should be removed in autoconf 3.0.
1224    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228    ;;
1229
1230  esac
1231done
1232
1233if test -n "$ac_prev"; then
1234  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1236   { (exit 1); exit 1; }; }
1237fi
1238
1239if test -n "$ac_unrecognized_opts"; then
1240  case $enable_option_checking in
1241    no) ;;
1242    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1243   { (exit 1); exit 1; }; } ;;
1244    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267   { (exit 1); exit 1; }; }
1268done
1269
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282    If a cross compiler is detected then cross compile mode will be used." >&2
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1298   { (exit 1); exit 1; }; }
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1301   { (exit 1); exit 1; }; }
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341   { (exit 1); exit 1; }; }
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1346   { (exit 1); exit 1; }; }
1347	pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350  srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_env_${ac_var}_value=\$${ac_var}
1361  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369  # Omit some internal or obsolete options to make the list less imposing.
1370  # This message is too long to be a string in the A/UX 3.1 sh.
1371  cat <<_ACEOF
1372\`configure' configures this package to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382  -h, --help              display this help and exit
1383      --help=short        display options specific to this package
1384      --help=recursive    display the short help of all the included packages
1385  -V, --version           display version information and exit
1386  -q, --quiet, --silent   do not print \`checking...' messages
1387      --cache-file=FILE   cache test results in FILE [disabled]
1388  -C, --config-cache      alias for \`--cache-file=config.cache'
1389  -n, --no-create         do not create output files
1390      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392Installation directories:
1393  --prefix=PREFIX         install architecture-independent files in PREFIX
1394                          [$ac_default_prefix]
1395  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                          [PREFIX]
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
1406  --bindir=DIR            user executables [EPREFIX/bin]
1407  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408  --libexecdir=DIR        program executables [EPREFIX/libexec]
1409  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412  --libdir=DIR            object code libraries [EPREFIX/lib]
1413  --includedir=DIR        C header files [PREFIX/include]
1414  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417  --infodir=DIR           info documentation [DATAROOTDIR/info]
1418  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419  --mandir=DIR            man documentation [DATAROOTDIR/man]
1420  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1421  --htmldir=DIR           html documentation [DOCDIR]
1422  --dvidir=DIR            dvi documentation [DOCDIR]
1423  --pdfdir=DIR            pdf documentation [DOCDIR]
1424  --psdir=DIR             ps documentation [DOCDIR]
1425_ACEOF
1426
1427  cat <<\_ACEOF
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432  --target=TARGET   configure for building compilers for TARGET [HOST]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437
1438  cat <<\_ACEOF
1439
1440Optional Features:
1441  --disable-option-checking  ignore unrecognized --enable/--with options
1442  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444  --enable-strict         compile with strict compiler options default=yes
1445  --enable-64bit-libs     (deprecated, use --with-library-bits) build 64-bit libraries default= platform default
1446  --enable-shared         build shared libraries default=yes
1447  --enable-static         build static libraries default=no
1448  --enable-debug          build debug libraries default=no
1449  --enable-release        build release libraries default=yes
1450  --enable-draft          enable draft APIs default=yes
1451  --enable-renaming       add a version suffix to symbols default=yes
1452  --enable-tracing        enable function and data tracing default=no
1453  --enable-rpath          use rpath when linking default is only if necessary
1454  --enable-threads        build ICU with thread safety default=yes
1455  --enable-weak-threads   weakly reference the threading library default=no
1456  --enable-extras         build ICU extras default=yes
1457  --enable-icuio          build ICU's icuio library default=yes
1458  --enable-layout         build ICU's layout library default=yes
1459  --enable-tests          build ICU tests default=yes
1460  --enable-samples        build ICU samples default=yes
1461
1462Additionally, the variable FORCE_LIBS may be set before calling configure.
1463If set, it will REPLACE any automatic list of libraries.
1464
1465Optional Packages:
1466  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468  --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir
1469  --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange
1470  --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto
1471  --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) default=auto
1472  --with-library-suffix=suffix    tag a suffix to the library names default=
1473
1474Some influential environment variables:
1475  CC          C compiler command
1476  CFLAGS      C compiler flags
1477  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1478              nonstandard directory <lib dir>
1479  LIBS        libraries to pass to the linker, e.g. -l<library>
1480  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481              you have headers in a nonstandard directory <include dir>
1482  CXX         C++ compiler command
1483  CXXFLAGS    C++ compiler flags
1484  CPP         C preprocessor
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489_ACEOF
1490ac_status=$?
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494  # If there are subdirs, report their specific --help.
1495  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496    test -d "$ac_dir" ||
1497      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498      continue
1499    ac_builddir=.
1500
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505  # A ".." for each directory in $ac_dir_suffix.
1506  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507  case $ac_top_builddir_sub in
1508  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510  esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
1516
1517case $srcdir in
1518  .)  # We are building in place.
1519    ac_srcdir=.
1520    ac_top_srcdir=$ac_top_builddir_sub
1521    ac_abs_top_srcdir=$ac_pwd ;;
1522  [\\/]* | ?:[\\/]* )  # Absolute name.
1523    ac_srcdir=$srcdir$ac_dir_suffix;
1524    ac_top_srcdir=$srcdir
1525    ac_abs_top_srcdir=$srcdir ;;
1526  *) # Relative name.
1527    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528    ac_top_srcdir=$ac_top_build_prefix$srcdir
1529    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530esac
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533    cd "$ac_dir" || { ac_status=$?; continue; }
1534    # Check for guested configure.
1535    if test -f "$ac_srcdir/configure.gnu"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538    elif test -f "$ac_srcdir/configure"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure" --help=recursive
1541    else
1542      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543    fi || ac_status=$?
1544    cd "$ac_pwd" || { ac_status=$?; break; }
1545  done
1546fi
1547
1548test -n "$ac_init_help" && exit $ac_status
1549if $ac_init_version; then
1550  cat <<\_ACEOF
1551configure
1552generated by GNU Autoconf 2.63
1553
1554Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558
1559 Copyright (c) 1999-2009, International Business Machines Corporation and others. All Rights Reserved.
1560_ACEOF
1561  exit
1562fi
1563cat >config.log <<_ACEOF
1564This file contains any messages produced by compilers while
1565running configure, to aid debugging if configure makes a mistake.
1566
1567It was created by $as_me, which was
1568generated by GNU Autoconf 2.63.  Invocation command line was
1569
1570  $ $0 $@
1571
1572_ACEOF
1573exec 5>>config.log
1574{
1575cat <<_ASUNAME
1576## --------- ##
1577## Platform. ##
1578## --------- ##
1579
1580hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1588
1589/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1590/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1591/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1593/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1594/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1595/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1596
1597_ASUNAME
1598
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602  IFS=$as_save_IFS
1603  test -z "$as_dir" && as_dir=.
1604  $as_echo "PATH: $as_dir"
1605done
1606IFS=$as_save_IFS
1607
1608} >&5
1609
1610cat >&5 <<_ACEOF
1611
1612
1613## ----------- ##
1614## Core tests. ##
1615## ----------- ##
1616
1617_ACEOF
1618
1619
1620# Keep a trace of the command line.
1621# Strip out --no-create and --no-recursion so they do not pile up.
1622# Strip out --silent because we don't want to record it for future runs.
1623# Also quote any args containing shell meta-characters.
1624# Make two passes to allow for proper duplicate-argument suppression.
1625ac_configure_args=
1626ac_configure_args0=
1627ac_configure_args1=
1628ac_must_keep_next=false
1629for ac_pass in 1 2
1630do
1631  for ac_arg
1632  do
1633    case $ac_arg in
1634    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636    | -silent | --silent | --silen | --sile | --sil)
1637      continue ;;
1638    *\'*)
1639      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640    esac
1641    case $ac_pass in
1642    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1643    2)
1644      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645      if test $ac_must_keep_next = true; then
1646	ac_must_keep_next=false # Got value, back to normal.
1647      else
1648	case $ac_arg in
1649	  *=* | --config-cache | -C | -disable-* | --disable-* \
1650	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652	  | -with-* | --with-* | -without-* | --without-* | --x)
1653	    case "$ac_configure_args0 " in
1654	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655	    esac
1656	    ;;
1657	  -* ) ac_must_keep_next=true ;;
1658	esac
1659      fi
1660      ac_configure_args="$ac_configure_args '$ac_arg'"
1661      ;;
1662    esac
1663  done
1664done
1665$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667
1668# When interrupted or exit'd, cleanup temporary files, and complete
1669# config.log.  We remove comments because anyway the quotes in there
1670# would cause problems or look ugly.
1671# WARNING: Use '\'' to represent an apostrophe within the trap.
1672# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673trap 'exit_status=$?
1674  # Save into config.log some information that might help in debugging.
1675  {
1676    echo
1677
1678    cat <<\_ASBOX
1679## ---------------- ##
1680## Cache variables. ##
1681## ---------------- ##
1682_ASBOX
1683    echo
1684    # The following way of writing the cache mishandles newlines in values,
1685(
1686  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687    eval ac_val=\$$ac_var
1688    case $ac_val in #(
1689    *${as_nl}*)
1690      case $ac_var in #(
1691      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1692$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1693      esac
1694      case $ac_var in #(
1695      _ | IFS | as_nl) ;; #(
1696      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1697      *) $as_unset $ac_var ;;
1698      esac ;;
1699    esac
1700  done
1701  (set) 2>&1 |
1702    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703    *${as_nl}ac_space=\ *)
1704      sed -n \
1705	"s/'\''/'\''\\\\'\'''\''/g;
1706	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707      ;; #(
1708    *)
1709      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710      ;;
1711    esac |
1712    sort
1713)
1714    echo
1715
1716    cat <<\_ASBOX
1717## ----------------- ##
1718## Output variables. ##
1719## ----------------- ##
1720_ASBOX
1721    echo
1722    for ac_var in $ac_subst_vars
1723    do
1724      eval ac_val=\$$ac_var
1725      case $ac_val in
1726      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727      esac
1728      $as_echo "$ac_var='\''$ac_val'\''"
1729    done | sort
1730    echo
1731
1732    if test -n "$ac_subst_files"; then
1733      cat <<\_ASBOX
1734## ------------------- ##
1735## File substitutions. ##
1736## ------------------- ##
1737_ASBOX
1738      echo
1739      for ac_var in $ac_subst_files
1740      do
1741	eval ac_val=\$$ac_var
1742	case $ac_val in
1743	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744	esac
1745	$as_echo "$ac_var='\''$ac_val'\''"
1746      done | sort
1747      echo
1748    fi
1749
1750    if test -s confdefs.h; then
1751      cat <<\_ASBOX
1752## ----------- ##
1753## confdefs.h. ##
1754## ----------- ##
1755_ASBOX
1756      echo
1757      cat confdefs.h
1758      echo
1759    fi
1760    test "$ac_signal" != 0 &&
1761      $as_echo "$as_me: caught signal $ac_signal"
1762    $as_echo "$as_me: exit $exit_status"
1763  } >&5
1764  rm -f core *.core core.conftest.* &&
1765    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766    exit $exit_status
1767' 0
1768for ac_signal in 1 2 13 15; do
1769  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770done
1771ac_signal=0
1772
1773# confdefs.h avoids OS command line length limits that DEFS can exceed.
1774rm -f -r conftest* confdefs.h
1775
1776# Predefined preprocessor variables.
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_NAME "$PACKAGE_NAME"
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_VERSION "$PACKAGE_VERSION"
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_STRING "$PACKAGE_STRING"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800_ACEOF
1801
1802
1803# Let the site file select an alternate cache file if it wants to.
1804# Prefer an explicitly selected file to automatically selected ones.
1805ac_site_file1=NONE
1806ac_site_file2=NONE
1807if test -n "$CONFIG_SITE"; then
1808  ac_site_file1=$CONFIG_SITE
1809elif test "x$prefix" != xNONE; then
1810  ac_site_file1=$prefix/share/config.site
1811  ac_site_file2=$prefix/etc/config.site
1812else
1813  ac_site_file1=$ac_default_prefix/share/config.site
1814  ac_site_file2=$ac_default_prefix/etc/config.site
1815fi
1816for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1817do
1818  test "x$ac_site_file" = xNONE && continue
1819  if test -r "$ac_site_file"; then
1820    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1822    sed 's/^/| /' "$ac_site_file" >&5
1823    . "$ac_site_file"
1824  fi
1825done
1826
1827if test -r "$cache_file"; then
1828  # Some versions of bash will fail to source /dev/null (special
1829  # files actually), so we avoid doing that.
1830  if test -f "$cache_file"; then
1831    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832$as_echo "$as_me: loading cache $cache_file" >&6;}
1833    case $cache_file in
1834      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835      *)                      . "./$cache_file";;
1836    esac
1837  fi
1838else
1839  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840$as_echo "$as_me: creating cache $cache_file" >&6;}
1841  >$cache_file
1842fi
1843
1844# Check that the precious variables saved in the cache have kept the same
1845# value.
1846ac_cache_corrupted=false
1847for ac_var in $ac_precious_vars; do
1848  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849  eval ac_new_set=\$ac_env_${ac_var}_set
1850  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851  eval ac_new_val=\$ac_env_${ac_var}_value
1852  case $ac_old_set,$ac_new_set in
1853    set,)
1854      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856      ac_cache_corrupted=: ;;
1857    ,set)
1858      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860      ac_cache_corrupted=: ;;
1861    ,);;
1862    *)
1863      if test "x$ac_old_val" != "x$ac_new_val"; then
1864	# differences in whitespace do not lead to failure.
1865	ac_old_val_w=`echo x $ac_old_val`
1866	ac_new_val_w=`echo x $ac_new_val`
1867	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1868	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870	  ac_cache_corrupted=:
1871	else
1872	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1873$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1874	  eval $ac_var=\$ac_old_val
1875	fi
1876	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1877$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1878	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1879$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1880      fi;;
1881  esac
1882  # Pass precious variables to config.status.
1883  if test "$ac_new_set" = set; then
1884    case $ac_new_val in
1885    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886    *) ac_arg=$ac_var=$ac_new_val ;;
1887    esac
1888    case " $ac_configure_args " in
1889      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891    esac
1892  fi
1893done
1894if $ac_cache_corrupted; then
1895  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1897  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901   { (exit 1); exit 1; }; }
1902fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928
1929ac_config_headers="$ac_config_headers common/icucfg.h"
1930
1931PACKAGE="icu"
1932
1933
1934{ $as_echo "$as_me:$LINENO: checking for ICU version numbers" >&5
1935$as_echo_n "checking for ICU version numbers... " >&6; }
1936
1937# Get the ICU version from uversion.h or other headers
1938geticuversion() {
1939    sed -n 's/^[ 	]*#[ 	]*define[ 	]*U_ICU_VERSION[ 	]*"\([^"]*\)".*/\1/p' "$@"
1940}
1941VERSION=`geticuversion $srcdir/common/unicode/uversion.h`
1942if test x"$VERSION" = x; then
1943    VERSION=`geticuversion $srcdir/common/unicode/*.h`
1944    if test x"$VERSION" = x; then
1945        { { $as_echo "$as_me:$LINENO: error: Cannot determine ICU version number from header files" >&5
1946$as_echo "$as_me: error: Cannot determine ICU version number from header files" >&2;}
1947   { (exit 1); exit 1; }; }
1948    fi
1949fi
1950# Compute a reasonable library version from the release version. This is
1951# very bad, but that's wanted... We want to make sure that the LIB_VERSION
1952# has at least a dot in it, so we'll add a .0 if needed.
1953LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
1954LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
1955
1956
1957
1958{ $as_echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION" >&5
1959$as_echo "release $VERSION, library $LIB_VERSION" >&6; }
1960
1961UNICODE_VERSION="5.1"
1962
1963
1964# Determine the host system
1965ac_aux_dir=
1966for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1967  if test -f "$ac_dir/install-sh"; then
1968    ac_aux_dir=$ac_dir
1969    ac_install_sh="$ac_aux_dir/install-sh -c"
1970    break
1971  elif test -f "$ac_dir/install.sh"; then
1972    ac_aux_dir=$ac_dir
1973    ac_install_sh="$ac_aux_dir/install.sh -c"
1974    break
1975  elif test -f "$ac_dir/shtool"; then
1976    ac_aux_dir=$ac_dir
1977    ac_install_sh="$ac_aux_dir/shtool install -c"
1978    break
1979  fi
1980done
1981if test -z "$ac_aux_dir"; then
1982  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1983$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1984   { (exit 1); exit 1; }; }
1985fi
1986
1987# These three variables are undocumented and unsupported,
1988# and are intended to be withdrawn in a future Autoconf release.
1989# They can cause serious problems if a builder's source tree is in a directory
1990# whose full name contains unusual characters.
1991ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1992ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1993ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1994
1995
1996# Make sure we can run config.sub.
1997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1998  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1999$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2000   { (exit 1); exit 1; }; }
2001
2002{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2003$as_echo_n "checking build system type... " >&6; }
2004if test "${ac_cv_build+set}" = set; then
2005  $as_echo_n "(cached) " >&6
2006else
2007  ac_build_alias=$build_alias
2008test "x$ac_build_alias" = x &&
2009  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2010test "x$ac_build_alias" = x &&
2011  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2012$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2013   { (exit 1); exit 1; }; }
2014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2015  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2016$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2017   { (exit 1); exit 1; }; }
2018
2019fi
2020{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2021$as_echo "$ac_cv_build" >&6; }
2022case $ac_cv_build in
2023*-*-*) ;;
2024*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2025$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2026   { (exit 1); exit 1; }; };;
2027esac
2028build=$ac_cv_build
2029ac_save_IFS=$IFS; IFS='-'
2030set x $ac_cv_build
2031shift
2032build_cpu=$1
2033build_vendor=$2
2034shift; shift
2035# Remember, the first character of IFS is used to create $*,
2036# except with old shells:
2037build_os=$*
2038IFS=$ac_save_IFS
2039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2040
2041
2042{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2043$as_echo_n "checking host system type... " >&6; }
2044if test "${ac_cv_host+set}" = set; then
2045  $as_echo_n "(cached) " >&6
2046else
2047  if test "x$host_alias" = x; then
2048  ac_cv_host=$ac_cv_build
2049else
2050  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2051    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2052$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2053   { (exit 1); exit 1; }; }
2054fi
2055
2056fi
2057{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2058$as_echo "$ac_cv_host" >&6; }
2059case $ac_cv_host in
2060*-*-*) ;;
2061*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2062$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2063   { (exit 1); exit 1; }; };;
2064esac
2065host=$ac_cv_host
2066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_host
2068shift
2069host_cpu=$1
2070host_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074host_os=$*
2075IFS=$ac_save_IFS
2076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2077
2078
2079{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2080$as_echo_n "checking target system type... " >&6; }
2081if test "${ac_cv_target+set}" = set; then
2082  $as_echo_n "(cached) " >&6
2083else
2084  if test "x$target_alias" = x; then
2085  ac_cv_target=$ac_cv_host
2086else
2087  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2088    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2089$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092
2093fi
2094{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2095$as_echo "$ac_cv_target" >&6; }
2096case $ac_cv_target in
2097*-*-*) ;;
2098*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2099$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2100   { (exit 1); exit 1; }; };;
2101esac
2102target=$ac_cv_target
2103ac_save_IFS=$IFS; IFS='-'
2104set x $ac_cv_target
2105shift
2106target_cpu=$1
2107target_vendor=$2
2108shift; shift
2109# Remember, the first character of IFS is used to create $*,
2110# except with old shells:
2111target_os=$*
2112IFS=$ac_save_IFS
2113case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2114
2115
2116# The aliases save the names the user supplied, while $host etc.
2117# will get canonicalized.
2118test -n "$target_alias" &&
2119  test "$program_prefix$program_suffix$program_transform_name" = \
2120    NONENONEs,x,x, &&
2121  program_prefix=${target_alias}-
2122
2123
2124
2125# This variable is needed on z/OS because the C++ compiler only recognizes .C
2126_CXX_CXXSUFFIX=cpp
2127export _CXX_CXXSUFFIX
2128# Checks for programs
2129ac_ext=c
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134if test -n "$ac_tool_prefix"; then
2135  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136set dummy ${ac_tool_prefix}gcc; ac_word=$2
2137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2138$as_echo_n "checking for $ac_word... " >&6; }
2139if test "${ac_cv_prog_CC+set}" = set; then
2140  $as_echo_n "(cached) " >&6
2141else
2142  if test -n "$CC"; then
2143  ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148  IFS=$as_save_IFS
2149  test -z "$as_dir" && as_dir=.
2150  for ac_exec_ext in '' $ac_executable_extensions; do
2151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154    break 2
2155  fi
2156done
2157done
2158IFS=$as_save_IFS
2159
2160fi
2161fi
2162CC=$ac_cv_prog_CC
2163if test -n "$CC"; then
2164  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2165$as_echo "$CC" >&6; }
2166else
2167  { $as_echo "$as_me:$LINENO: result: no" >&5
2168$as_echo "no" >&6; }
2169fi
2170
2171
2172fi
2173if test -z "$ac_cv_prog_CC"; then
2174  ac_ct_CC=$CC
2175  # Extract the first word of "gcc", so it can be a program name with args.
2176set dummy gcc; ac_word=$2
2177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178$as_echo_n "checking for $ac_word... " >&6; }
2179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180  $as_echo_n "(cached) " >&6
2181else
2182  if test -n "$ac_ct_CC"; then
2183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188  IFS=$as_save_IFS
2189  test -z "$as_dir" && as_dir=.
2190  for ac_exec_ext in '' $ac_executable_extensions; do
2191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192    ac_cv_prog_ac_ct_CC="gcc"
2193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194    break 2
2195  fi
2196done
2197done
2198IFS=$as_save_IFS
2199
2200fi
2201fi
2202ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203if test -n "$ac_ct_CC"; then
2204  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205$as_echo "$ac_ct_CC" >&6; }
2206else
2207  { $as_echo "$as_me:$LINENO: result: no" >&5
2208$as_echo "no" >&6; }
2209fi
2210
2211  if test "x$ac_ct_CC" = x; then
2212    CC=""
2213  else
2214    case $cross_compiling:$ac_tool_warned in
2215yes:)
2216{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2218ac_tool_warned=yes ;;
2219esac
2220    CC=$ac_ct_CC
2221  fi
2222else
2223  CC="$ac_cv_prog_CC"
2224fi
2225
2226if test -z "$CC"; then
2227          if test -n "$ac_tool_prefix"; then
2228    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229set dummy ${ac_tool_prefix}cc; ac_word=$2
2230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231$as_echo_n "checking for $ac_word... " >&6; }
2232if test "${ac_cv_prog_CC+set}" = set; then
2233  $as_echo_n "(cached) " >&6
2234else
2235  if test -n "$CC"; then
2236  ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241  IFS=$as_save_IFS
2242  test -z "$as_dir" && as_dir=.
2243  for ac_exec_ext in '' $ac_executable_extensions; do
2244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245    ac_cv_prog_CC="${ac_tool_prefix}cc"
2246    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247    break 2
2248  fi
2249done
2250done
2251IFS=$as_save_IFS
2252
2253fi
2254fi
2255CC=$ac_cv_prog_CC
2256if test -n "$CC"; then
2257  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2258$as_echo "$CC" >&6; }
2259else
2260  { $as_echo "$as_me:$LINENO: result: no" >&5
2261$as_echo "no" >&6; }
2262fi
2263
2264
2265  fi
2266fi
2267if test -z "$CC"; then
2268  # Extract the first word of "cc", so it can be a program name with args.
2269set dummy cc; ac_word=$2
2270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271$as_echo_n "checking for $ac_word... " >&6; }
2272if test "${ac_cv_prog_CC+set}" = set; then
2273  $as_echo_n "(cached) " >&6
2274else
2275  if test -n "$CC"; then
2276  ac_cv_prog_CC="$CC" # Let the user override the test.
2277else
2278  ac_prog_rejected=no
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284  for ac_exec_ext in '' $ac_executable_extensions; do
2285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2287       ac_prog_rejected=yes
2288       continue
2289     fi
2290    ac_cv_prog_CC="cc"
2291    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292    break 2
2293  fi
2294done
2295done
2296IFS=$as_save_IFS
2297
2298if test $ac_prog_rejected = yes; then
2299  # We found a bogon in the path, so make sure we never use it.
2300  set dummy $ac_cv_prog_CC
2301  shift
2302  if test $# != 0; then
2303    # We chose a different compiler from the bogus one.
2304    # However, it has the same basename, so the bogon will be chosen
2305    # first if we set CC to just the basename; use the full file name.
2306    shift
2307    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2308  fi
2309fi
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
2314  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2315$as_echo "$CC" >&6; }
2316else
2317  { $as_echo "$as_me:$LINENO: result: no" >&5
2318$as_echo "no" >&6; }
2319fi
2320
2321
2322fi
2323if test -z "$CC"; then
2324  if test -n "$ac_tool_prefix"; then
2325  for ac_prog in cl.exe
2326  do
2327    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330$as_echo_n "checking for $ac_word... " >&6; }
2331if test "${ac_cv_prog_CC+set}" = set; then
2332  $as_echo_n "(cached) " >&6
2333else
2334  if test -n "$CC"; then
2335  ac_cv_prog_CC="$CC" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340  IFS=$as_save_IFS
2341  test -z "$as_dir" && as_dir=.
2342  for ac_exec_ext in '' $ac_executable_extensions; do
2343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2345    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346    break 2
2347  fi
2348done
2349done
2350IFS=$as_save_IFS
2351
2352fi
2353fi
2354CC=$ac_cv_prog_CC
2355if test -n "$CC"; then
2356  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2357$as_echo "$CC" >&6; }
2358else
2359  { $as_echo "$as_me:$LINENO: result: no" >&5
2360$as_echo "no" >&6; }
2361fi
2362
2363
2364    test -n "$CC" && break
2365  done
2366fi
2367if test -z "$CC"; then
2368  ac_ct_CC=$CC
2369  for ac_prog in cl.exe
2370do
2371  # Extract the first word of "$ac_prog", so it can be a program name with args.
2372set dummy $ac_prog; ac_word=$2
2373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2374$as_echo_n "checking for $ac_word... " >&6; }
2375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376  $as_echo_n "(cached) " >&6
2377else
2378  if test -n "$ac_ct_CC"; then
2379  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386  for ac_exec_ext in '' $ac_executable_extensions; do
2387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388    ac_cv_prog_ac_ct_CC="$ac_prog"
2389    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390    break 2
2391  fi
2392done
2393done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399if test -n "$ac_ct_CC"; then
2400  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401$as_echo "$ac_ct_CC" >&6; }
2402else
2403  { $as_echo "$as_me:$LINENO: result: no" >&5
2404$as_echo "no" >&6; }
2405fi
2406
2407
2408  test -n "$ac_ct_CC" && break
2409done
2410
2411  if test "x$ac_ct_CC" = x; then
2412    CC=""
2413  else
2414    case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418ac_tool_warned=yes ;;
2419esac
2420    CC=$ac_ct_CC
2421  fi
2422fi
2423
2424fi
2425
2426
2427test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2430See \`config.log' for more details." >&5
2431$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2432See \`config.log' for more details." >&2;}
2433   { (exit 1); exit 1; }; }; }
2434
2435# Provide some information about the compiler.
2436$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2437set X $ac_compile
2438ac_compiler=$2
2439{ (ac_try="$ac_compiler --version >&5"
2440case "(($ac_try" in
2441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442  *) ac_try_echo=$ac_try;;
2443esac
2444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2445$as_echo "$ac_try_echo") >&5
2446  (eval "$ac_compiler --version >&5") 2>&5
2447  ac_status=$?
2448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }
2450{ (ac_try="$ac_compiler -v >&5"
2451case "(($ac_try" in
2452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453  *) ac_try_echo=$ac_try;;
2454esac
2455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2456$as_echo "$ac_try_echo") >&5
2457  (eval "$ac_compiler -v >&5") 2>&5
2458  ac_status=$?
2459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }
2461{ (ac_try="$ac_compiler -V >&5"
2462case "(($ac_try" in
2463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464  *) ac_try_echo=$ac_try;;
2465esac
2466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2467$as_echo "$ac_try_echo") >&5
2468  (eval "$ac_compiler -V >&5") 2>&5
2469  ac_status=$?
2470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }
2472
2473cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479
2480int
2481main ()
2482{
2483
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488ac_clean_files_save=$ac_clean_files
2489ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2490# Try to create an executable without -o first, disregard a.out.
2491# It will help us diagnose broken compilers, and finding out an intuition
2492# of exeext.
2493{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2494$as_echo_n "checking for C compiler default output file name... " >&6; }
2495ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2496
2497# The possible output files:
2498ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2499
2500ac_rmfiles=
2501for ac_file in $ac_files
2502do
2503  case $ac_file in
2504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2505    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2506  esac
2507done
2508rm -f $ac_rmfiles
2509
2510if { (ac_try="$ac_link_default"
2511case "(($ac_try" in
2512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513  *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2516$as_echo "$ac_try_echo") >&5
2517  (eval "$ac_link_default") 2>&5
2518  ac_status=$?
2519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; then
2521  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2522# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2523# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2524# so that the user can short-circuit this test for compilers unknown to
2525# Autoconf.
2526for ac_file in $ac_files ''
2527do
2528  test -f "$ac_file" || continue
2529  case $ac_file in
2530    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2531	;;
2532    [ab].out )
2533	# We found the default executable, but exeext='' is most
2534	# certainly right.
2535	break;;
2536    *.* )
2537        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2538	then :; else
2539	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540	fi
2541	# We set ac_cv_exeext here because the later test for it is not
2542	# safe: cross compilers may not add the suffix if given an `-o'
2543	# argument, so we may need to know it at that point already.
2544	# Even if this section looks crufty: it has the advantage of
2545	# actually working.
2546	break;;
2547    * )
2548	break;;
2549  esac
2550done
2551test "$ac_cv_exeext" = no && ac_cv_exeext=
2552
2553else
2554  ac_file=''
2555fi
2556
2557{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2558$as_echo "$ac_file" >&6; }
2559if test -z "$ac_file"; then
2560  $as_echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2566See \`config.log' for more details." >&5
2567$as_echo "$as_me: error: C compiler cannot create executables
2568See \`config.log' for more details." >&2;}
2569   { (exit 77); exit 77; }; }; }
2570fi
2571
2572ac_exeext=$ac_cv_exeext
2573
2574# Check that the compiler produces executables we can run.  If not, either
2575# the compiler is broken, or we cross compile.
2576{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2577$as_echo_n "checking whether the C compiler works... " >&6; }
2578# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2579# If not cross compiling, check that we can run a simple program.
2580if test "$cross_compiling" != yes; then
2581  if { ac_try='./$ac_file'
2582  { (case "(($ac_try" in
2583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584  *) ac_try_echo=$ac_try;;
2585esac
2586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2587$as_echo "$ac_try_echo") >&5
2588  (eval "$ac_try") 2>&5
2589  ac_status=$?
2590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592    cross_compiling=no
2593  else
2594    if test "$cross_compiling" = maybe; then
2595	cross_compiling=yes
2596    else
2597	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2600If you meant to cross compile, use \`--host'.
2601See \`config.log' for more details." >&5
2602$as_echo "$as_me: error: cannot run C compiled programs.
2603If you meant to cross compile, use \`--host'.
2604See \`config.log' for more details." >&2;}
2605   { (exit 1); exit 1; }; }; }
2606    fi
2607  fi
2608fi
2609{ $as_echo "$as_me:$LINENO: result: yes" >&5
2610$as_echo "yes" >&6; }
2611
2612rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2613ac_clean_files=$ac_clean_files_save
2614# Check that the compiler produces executables we can run.  If not, either
2615# the compiler is broken, or we cross compile.
2616{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2617$as_echo_n "checking whether we are cross compiling... " >&6; }
2618{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2619$as_echo "$cross_compiling" >&6; }
2620
2621{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2622$as_echo_n "checking for suffix of executables... " >&6; }
2623if { (ac_try="$ac_link"
2624case "(($ac_try" in
2625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626  *) ac_try_echo=$ac_try;;
2627esac
2628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2629$as_echo "$ac_try_echo") >&5
2630  (eval "$ac_link") 2>&5
2631  ac_status=$?
2632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); }; then
2634  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2636# work properly (i.e., refer to `conftest.exe'), while it won't with
2637# `rm'.
2638for ac_file in conftest.exe conftest conftest.*; do
2639  test -f "$ac_file" || continue
2640  case $ac_file in
2641    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2642    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643	  break;;
2644    * ) break;;
2645  esac
2646done
2647else
2648  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2651See \`config.log' for more details." >&5
2652$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2653See \`config.log' for more details." >&2;}
2654   { (exit 1); exit 1; }; }; }
2655fi
2656
2657rm -f conftest$ac_cv_exeext
2658{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2659$as_echo "$ac_cv_exeext" >&6; }
2660
2661rm -f conftest.$ac_ext
2662EXEEXT=$ac_cv_exeext
2663ac_exeext=$EXEEXT
2664{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2665$as_echo_n "checking for suffix of object files... " >&6; }
2666if test "${ac_cv_objext+set}" = set; then
2667  $as_echo_n "(cached) " >&6
2668else
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675
2676int
2677main ()
2678{
2679
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.o conftest.obj
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691$as_echo "$ac_try_echo") >&5
2692  (eval "$ac_compile") 2>&5
2693  ac_status=$?
2694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; then
2696  for ac_file in conftest.o conftest.obj conftest.*; do
2697  test -f "$ac_file" || continue;
2698  case $ac_file in
2699    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2700    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701       break;;
2702  esac
2703done
2704else
2705  $as_echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711See \`config.log' for more details." >&5
2712$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713See \`config.log' for more details." >&2;}
2714   { (exit 1); exit 1; }; }; }
2715fi
2716
2717rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718fi
2719{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720$as_echo "$ac_cv_objext" >&6; }
2721OBJEXT=$ac_cv_objext
2722ac_objext=$OBJEXT
2723{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2725if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726  $as_echo_n "(cached) " >&6
2727else
2728  cat >conftest.$ac_ext <<_ACEOF
2729/* confdefs.h.  */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h.  */
2734
2735int
2736main ()
2737{
2738#ifndef __GNUC__
2739       choke me
2740#endif
2741
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext
2747if { (ac_try="$ac_compile"
2748case "(($ac_try" in
2749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750  *) ac_try_echo=$ac_try;;
2751esac
2752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753$as_echo "$ac_try_echo") >&5
2754  (eval "$ac_compile") 2>conftest.er1
2755  ac_status=$?
2756  grep -v '^ *+' conftest.er1 >conftest.err
2757  rm -f conftest.er1
2758  cat conftest.err >&5
2759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); } && {
2761	 test -z "$ac_c_werror_flag" ||
2762	 test ! -s conftest.err
2763       } && test -s conftest.$ac_objext; then
2764  ac_compiler_gnu=yes
2765else
2766  $as_echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769	ac_compiler_gnu=no
2770fi
2771
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774
2775fi
2776{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2778if test $ac_compiler_gnu = yes; then
2779  GCC=yes
2780else
2781  GCC=
2782fi
2783ac_test_CFLAGS=${CFLAGS+set}
2784ac_save_CFLAGS=$CFLAGS
2785{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2786$as_echo_n "checking whether $CC accepts -g... " >&6; }
2787if test "${ac_cv_prog_cc_g+set}" = set; then
2788  $as_echo_n "(cached) " >&6
2789else
2790  ac_save_c_werror_flag=$ac_c_werror_flag
2791   ac_c_werror_flag=yes
2792   ac_cv_prog_cc_g=no
2793   CFLAGS="-g"
2794   cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h.  */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h.  */
2800
2801int
2802main ()
2803{
2804
2805  ;
2806  return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (ac_try="$ac_compile"
2811case "(($ac_try" in
2812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813  *) ac_try_echo=$ac_try;;
2814esac
2815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2816$as_echo "$ac_try_echo") >&5
2817  (eval "$ac_compile") 2>conftest.er1
2818  ac_status=$?
2819  grep -v '^ *+' conftest.er1 >conftest.err
2820  rm -f conftest.er1
2821  cat conftest.err >&5
2822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } && {
2824	 test -z "$ac_c_werror_flag" ||
2825	 test ! -s conftest.err
2826       } && test -s conftest.$ac_objext; then
2827  ac_cv_prog_cc_g=yes
2828else
2829  $as_echo "$as_me: failed program was:" >&5
2830sed 's/^/| /' conftest.$ac_ext >&5
2831
2832	CFLAGS=""
2833      cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h.  */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h.  */
2839
2840int
2841main ()
2842{
2843
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext
2849if { (ac_try="$ac_compile"
2850case "(($ac_try" in
2851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852  *) ac_try_echo=$ac_try;;
2853esac
2854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855$as_echo "$ac_try_echo") >&5
2856  (eval "$ac_compile") 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } && {
2863	 test -z "$ac_c_werror_flag" ||
2864	 test ! -s conftest.err
2865       } && test -s conftest.$ac_objext; then
2866  :
2867else
2868  $as_echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871	ac_c_werror_flag=$ac_save_c_werror_flag
2872	 CFLAGS="-g"
2873	 cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h.  */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h.  */
2879
2880int
2881main ()
2882{
2883
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (ac_try="$ac_compile"
2890case "(($ac_try" in
2891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892  *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2895$as_echo "$ac_try_echo") >&5
2896  (eval "$ac_compile") 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } && {
2903	 test -z "$ac_c_werror_flag" ||
2904	 test ! -s conftest.err
2905       } && test -s conftest.$ac_objext; then
2906  ac_cv_prog_cc_g=yes
2907else
2908  $as_echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911
2912fi
2913
2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915fi
2916
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921   ac_c_werror_flag=$ac_save_c_werror_flag
2922fi
2923{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2924$as_echo "$ac_cv_prog_cc_g" >&6; }
2925if test "$ac_test_CFLAGS" = set; then
2926  CFLAGS=$ac_save_CFLAGS
2927elif test $ac_cv_prog_cc_g = yes; then
2928  if test "$GCC" = yes; then
2929    CFLAGS="-g -O2"
2930  else
2931    CFLAGS="-g"
2932  fi
2933else
2934  if test "$GCC" = yes; then
2935    CFLAGS="-O2"
2936  else
2937    CFLAGS=
2938  fi
2939fi
2940{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2941$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2942if test "${ac_cv_prog_cc_c89+set}" = set; then
2943  $as_echo_n "(cached) " >&6
2944else
2945  ac_cv_prog_cc_c89=no
2946ac_save_CC=$CC
2947cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953#include <stdarg.h>
2954#include <stdio.h>
2955#include <sys/types.h>
2956#include <sys/stat.h>
2957/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2958struct buf { int x; };
2959FILE * (*rcsopen) (struct buf *, struct stat *, int);
2960static char *e (p, i)
2961     char **p;
2962     int i;
2963{
2964  return p[i];
2965}
2966static char *f (char * (*g) (char **, int), char **p, ...)
2967{
2968  char *s;
2969  va_list v;
2970  va_start (v,p);
2971  s = g (p, va_arg (v,int));
2972  va_end (v);
2973  return s;
2974}
2975
2976/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2977   function prototypes and stuff, but not '\xHH' hex character constants.
2978   These don't provoke an error unfortunately, instead are silently treated
2979   as 'x'.  The following induces an error, until -std is added to get
2980   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2981   array size at least.  It's necessary to write '\x00'==0 to get something
2982   that's true only with -std.  */
2983int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2984
2985/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2986   inside strings and character constants.  */
2987#define FOO(x) 'x'
2988int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2989
2990int test (int i, double x);
2991struct s1 {int (*f) (int a);};
2992struct s2 {int (*f) (double a);};
2993int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2994int argc;
2995char **argv;
2996int
2997main ()
2998{
2999return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3005	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3006do
3007  CC="$ac_save_CC $ac_arg"
3008  rm -f conftest.$ac_objext
3009if { (ac_try="$ac_compile"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015$as_echo "$ac_try_echo") >&5
3016  (eval "$ac_compile") 2>conftest.er1
3017  ac_status=$?
3018  grep -v '^ *+' conftest.er1 >conftest.err
3019  rm -f conftest.er1
3020  cat conftest.err >&5
3021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); } && {
3023	 test -z "$ac_c_werror_flag" ||
3024	 test ! -s conftest.err
3025       } && test -s conftest.$ac_objext; then
3026  ac_cv_prog_cc_c89=$ac_arg
3027else
3028  $as_echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031
3032fi
3033
3034rm -f core conftest.err conftest.$ac_objext
3035  test "x$ac_cv_prog_cc_c89" != "xno" && break
3036done
3037rm -f conftest.$ac_ext
3038CC=$ac_save_CC
3039
3040fi
3041# AC_CACHE_VAL
3042case "x$ac_cv_prog_cc_c89" in
3043  x)
3044    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3045$as_echo "none needed" >&6; } ;;
3046  xno)
3047    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3048$as_echo "unsupported" >&6; } ;;
3049  *)
3050    CC="$CC $ac_cv_prog_cc_c89"
3051    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3053esac
3054
3055
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061
3062ac_ext=cpp
3063ac_cpp='$CXXCPP $CPPFLAGS'
3064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3067if test -z "$CXX"; then
3068  if test -n "$CCC"; then
3069    CXX=$CCC
3070  else
3071    if test -n "$ac_tool_prefix"; then
3072  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3073  do
3074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CXX+set}" = set; then
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CXX"; then
3082  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089  for ac_exec_ext in '' $ac_executable_extensions; do
3090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3092    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101CXX=$ac_cv_prog_CXX
3102if test -n "$CXX"; then
3103  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3104$as_echo "$CXX" >&6; }
3105else
3106  { $as_echo "$as_me:$LINENO: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
3111    test -n "$CXX" && break
3112  done
3113fi
3114if test -z "$CXX"; then
3115  ac_ct_CXX=$CXX
3116  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3117do
3118  # Extract the first word of "$ac_prog", so it can be a program name with args.
3119set dummy $ac_prog; ac_word=$2
3120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CXX"; then
3126  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133  for ac_exec_ext in '' $ac_executable_extensions; do
3134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135    ac_cv_prog_ac_ct_CXX="$ac_prog"
3136    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3146if test -n "$ac_ct_CXX"; then
3147  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3148$as_echo "$ac_ct_CXX" >&6; }
3149else
3150  { $as_echo "$as_me:$LINENO: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155  test -n "$ac_ct_CXX" && break
3156done
3157
3158  if test "x$ac_ct_CXX" = x; then
3159    CXX="g++"
3160  else
3161    case $cross_compiling:$ac_tool_warned in
3162yes:)
3163{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165ac_tool_warned=yes ;;
3166esac
3167    CXX=$ac_ct_CXX
3168  fi
3169fi
3170
3171  fi
3172fi
3173# Provide some information about the compiler.
3174$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3175set X $ac_compile
3176ac_compiler=$2
3177{ (ac_try="$ac_compiler --version >&5"
3178case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183$as_echo "$ac_try_echo") >&5
3184  (eval "$ac_compiler --version >&5") 2>&5
3185  ac_status=$?
3186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }
3188{ (ac_try="$ac_compiler -v >&5"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194$as_echo "$ac_try_echo") >&5
3195  (eval "$ac_compiler -v >&5") 2>&5
3196  ac_status=$?
3197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }
3199{ (ac_try="$ac_compiler -V >&5"
3200case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205$as_echo "$ac_try_echo") >&5
3206  (eval "$ac_compiler -V >&5") 2>&5
3207  ac_status=$?
3208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }
3210
3211{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3212$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3213if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3214  $as_echo_n "(cached) " >&6
3215else
3216  cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h.  */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226#ifndef __GNUC__
3227       choke me
3228#endif
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241$as_echo "$ac_try_echo") >&5
3242  (eval "$ac_compile") 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } && {
3249	 test -z "$ac_cxx_werror_flag" ||
3250	 test ! -s conftest.err
3251       } && test -s conftest.$ac_objext; then
3252  ac_compiler_gnu=yes
3253else
3254  $as_echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257	ac_compiler_gnu=no
3258fi
3259
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3262
3263fi
3264{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3265$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3266if test $ac_compiler_gnu = yes; then
3267  GXX=yes
3268else
3269  GXX=
3270fi
3271ac_test_CXXFLAGS=${CXXFLAGS+set}
3272ac_save_CXXFLAGS=$CXXFLAGS
3273{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3274$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3275if test "${ac_cv_prog_cxx_g+set}" = set; then
3276  $as_echo_n "(cached) " >&6
3277else
3278  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3279   ac_cxx_werror_flag=yes
3280   ac_cv_prog_cxx_g=no
3281   CXXFLAGS="-g"
3282   cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288
3289int
3290main ()
3291{
3292
3293  ;
3294  return 0;
3295}
3296_ACEOF
3297rm -f conftest.$ac_objext
3298if { (ac_try="$ac_compile"
3299case "(($ac_try" in
3300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301  *) ac_try_echo=$ac_try;;
3302esac
3303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304$as_echo "$ac_try_echo") >&5
3305  (eval "$ac_compile") 2>conftest.er1
3306  ac_status=$?
3307  grep -v '^ *+' conftest.er1 >conftest.err
3308  rm -f conftest.er1
3309  cat conftest.err >&5
3310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); } && {
3312	 test -z "$ac_cxx_werror_flag" ||
3313	 test ! -s conftest.err
3314       } && test -s conftest.$ac_objext; then
3315  ac_cv_prog_cxx_g=yes
3316else
3317  $as_echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
3320	CXXFLAGS=""
3321      cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h.  */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (ac_try="$ac_compile"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
3344  (eval "$ac_compile") 2>conftest.er1
3345  ac_status=$?
3346  grep -v '^ *+' conftest.er1 >conftest.err
3347  rm -f conftest.er1
3348  cat conftest.err >&5
3349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } && {
3351	 test -z "$ac_cxx_werror_flag" ||
3352	 test ! -s conftest.err
3353       } && test -s conftest.$ac_objext; then
3354  :
3355else
3356  $as_echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3360	 CXXFLAGS="-g"
3361	 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h.  */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h.  */
3367
3368int
3369main ()
3370{
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (ac_try="$ac_compile"
3378case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383$as_echo "$ac_try_echo") >&5
3384  (eval "$ac_compile") 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } && {
3391	 test -z "$ac_cxx_werror_flag" ||
3392	 test ! -s conftest.err
3393       } && test -s conftest.$ac_objext; then
3394  ac_cv_prog_cxx_g=yes
3395else
3396  $as_echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
3400fi
3401
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404
3405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406fi
3407
3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3410fi
3411{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3412$as_echo "$ac_cv_prog_cxx_g" >&6; }
3413if test "$ac_test_CXXFLAGS" = set; then
3414  CXXFLAGS=$ac_save_CXXFLAGS
3415elif test $ac_cv_prog_cxx_g = yes; then
3416  if test "$GXX" = yes; then
3417    CXXFLAGS="-g -O2"
3418  else
3419    CXXFLAGS="-g"
3420  fi
3421else
3422  if test "$GXX" = yes; then
3423    CXXFLAGS="-O2"
3424  else
3425    CXXFLAGS=
3426  fi
3427fi
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434ac_ext=c
3435ac_cpp='$CPP $CPPFLAGS'
3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3440$as_echo_n "checking how to run the C preprocessor... " >&6; }
3441# On Suns, sometimes $CPP names a directory.
3442if test -n "$CPP" && test -d "$CPP"; then
3443  CPP=
3444fi
3445if test -z "$CPP"; then
3446  if test "${ac_cv_prog_CPP+set}" = set; then
3447  $as_echo_n "(cached) " >&6
3448else
3449      # Double quotes because CPP needs to be expanded
3450    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451    do
3452      ac_preproc_ok=false
3453for ac_c_preproc_warn_flag in '' yes
3454do
3455  # Use a header file that comes with gcc, so configuring glibc
3456  # with a fresh cross-compiler works.
3457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458  # <limits.h> exists even on freestanding compilers.
3459  # On the NeXT, cc -E runs the code through the compiler's parser,
3460  # not just through cpp. "Syntax error" is here to catch this case.
3461  cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467#ifdef __STDC__
3468# include <limits.h>
3469#else
3470# include <assert.h>
3471#endif
3472		     Syntax error
3473_ACEOF
3474if { (ac_try="$ac_cpp conftest.$ac_ext"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480$as_echo "$ac_try_echo") >&5
3481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } >/dev/null && {
3488	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3489	 test ! -s conftest.err
3490       }; then
3491  :
3492else
3493  $as_echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496  # Broken: fails on valid input.
3497continue
3498fi
3499
3500rm -f conftest.err conftest.$ac_ext
3501
3502  # OK, works on sane cases.  Now check whether nonexistent headers
3503  # can be detected and how.
3504  cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h.  */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h.  */
3510#include <ac_nonexistent.h>
3511_ACEOF
3512if { (ac_try="$ac_cpp conftest.$ac_ext"
3513case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518$as_echo "$ac_try_echo") >&5
3519  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520  ac_status=$?
3521  grep -v '^ *+' conftest.er1 >conftest.err
3522  rm -f conftest.er1
3523  cat conftest.err >&5
3524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); } >/dev/null && {
3526	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3527	 test ! -s conftest.err
3528       }; then
3529  # Broken: success on invalid input.
3530continue
3531else
3532  $as_echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535  # Passes both tests.
3536ac_preproc_ok=:
3537break
3538fi
3539
3540rm -f conftest.err conftest.$ac_ext
3541
3542done
3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544rm -f conftest.err conftest.$ac_ext
3545if $ac_preproc_ok; then
3546  break
3547fi
3548
3549    done
3550    ac_cv_prog_CPP=$CPP
3551
3552fi
3553  CPP=$ac_cv_prog_CPP
3554else
3555  ac_cv_prog_CPP=$CPP
3556fi
3557{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3558$as_echo "$CPP" >&6; }
3559ac_preproc_ok=false
3560for ac_c_preproc_warn_flag in '' yes
3561do
3562  # Use a header file that comes with gcc, so configuring glibc
3563  # with a fresh cross-compiler works.
3564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565  # <limits.h> exists even on freestanding compilers.
3566  # On the NeXT, cc -E runs the code through the compiler's parser,
3567  # not just through cpp. "Syntax error" is here to catch this case.
3568  cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h.  */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h.  */
3574#ifdef __STDC__
3575# include <limits.h>
3576#else
3577# include <assert.h>
3578#endif
3579		     Syntax error
3580_ACEOF
3581if { (ac_try="$ac_cpp conftest.$ac_ext"
3582case "(($ac_try" in
3583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584  *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3587$as_echo "$ac_try_echo") >&5
3588  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } >/dev/null && {
3595	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596	 test ! -s conftest.err
3597       }; then
3598  :
3599else
3600  $as_echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603  # Broken: fails on valid input.
3604continue
3605fi
3606
3607rm -f conftest.err conftest.$ac_ext
3608
3609  # OK, works on sane cases.  Now check whether nonexistent headers
3610  # can be detected and how.
3611  cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h.  */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h.  */
3617#include <ac_nonexistent.h>
3618_ACEOF
3619if { (ac_try="$ac_cpp conftest.$ac_ext"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625$as_echo "$ac_try_echo") >&5
3626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627  ac_status=$?
3628  grep -v '^ *+' conftest.er1 >conftest.err
3629  rm -f conftest.er1
3630  cat conftest.err >&5
3631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); } >/dev/null && {
3633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3634	 test ! -s conftest.err
3635       }; then
3636  # Broken: success on invalid input.
3637continue
3638else
3639  $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642  # Passes both tests.
3643ac_preproc_ok=:
3644break
3645fi
3646
3647rm -f conftest.err conftest.$ac_ext
3648
3649done
3650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651rm -f conftest.err conftest.$ac_ext
3652if $ac_preproc_ok; then
3653  :
3654else
3655  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3658See \`config.log' for more details." >&5
3659$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3660See \`config.log' for more details." >&2;}
3661   { (exit 1); exit 1; }; }; }
3662fi
3663
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670# Find a good install program.  We prefer a C program (faster),
3671# so one script is as good as another.  But avoid the broken or
3672# incompatible versions:
3673# SysV /etc/install, /usr/sbin/install
3674# SunOS /usr/etc/install
3675# IRIX /sbin/install
3676# AIX /bin/install
3677# AmigaOS /C/install, which installs bootblocks on floppy discs
3678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681# OS/2's system install, which has a completely different semantic
3682# ./install, which can be erroneously created by make from ./install.sh.
3683# Reject install programs that cannot install multiple files.
3684{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3685$as_echo_n "checking for a BSD-compatible install... " >&6; }
3686if test -z "$INSTALL"; then
3687if test "${ac_cv_path_install+set}" = set; then
3688  $as_echo_n "(cached) " >&6
3689else
3690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693  IFS=$as_save_IFS
3694  test -z "$as_dir" && as_dir=.
3695  # Account for people who put trailing slashes in PATH elements.
3696case $as_dir/ in
3697  ./ | .// | /cC/* | \
3698  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3699  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3700  /usr/ucb/* ) ;;
3701  *)
3702    # OSF1 and SCO ODT 3.0 have their own names for install.
3703    # Don't use installbsd from OSF since it installs stuff as root
3704    # by default.
3705    for ac_prog in ginstall scoinst install; do
3706      for ac_exec_ext in '' $ac_executable_extensions; do
3707	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3708	  if test $ac_prog = install &&
3709	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710	    # AIX install.  It has an incompatible calling convention.
3711	    :
3712	  elif test $ac_prog = install &&
3713	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714	    # program-specific install script used by HP pwplus--don't use.
3715	    :
3716	  else
3717	    rm -rf conftest.one conftest.two conftest.dir
3718	    echo one > conftest.one
3719	    echo two > conftest.two
3720	    mkdir conftest.dir
3721	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3722	      test -s conftest.one && test -s conftest.two &&
3723	      test -s conftest.dir/conftest.one &&
3724	      test -s conftest.dir/conftest.two
3725	    then
3726	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3727	      break 3
3728	    fi
3729	  fi
3730	fi
3731      done
3732    done
3733    ;;
3734esac
3735
3736done
3737IFS=$as_save_IFS
3738
3739rm -rf conftest.one conftest.two conftest.dir
3740
3741fi
3742  if test "${ac_cv_path_install+set}" = set; then
3743    INSTALL=$ac_cv_path_install
3744  else
3745    # As a last resort, use the slow shell script.  Don't cache a
3746    # value for INSTALL within a source directory, because that will
3747    # break other packages using the cache if that directory is
3748    # removed, or if the value is a relative name.
3749    INSTALL=$ac_install_sh
3750  fi
3751fi
3752{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3753$as_echo "$INSTALL" >&6; }
3754
3755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3756# It thinks the first close brace ends the variable substitution.
3757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3758
3759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3760
3761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3762
3763
3764
3765
3766# make sure install is relative to srcdir - if a script
3767if test "$srcdir" = "."; then
3768  # If srcdir isn't just ., then (srcdir) is already prepended.
3769  if test "${ac_install_sh}" = "${INSTALL}"; then
3770   INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
3771  fi
3772fi
3773
3774#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
3775#AC_CHECK_PROG(STRIP, strip, strip, true)
3776
3777# Check for the platform make
3778for ac_prog in gmake gnumake
3779do
3780  # Extract the first word of "$ac_prog", so it can be a program name with args.
3781set dummy $ac_prog; ac_word=$2
3782{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3783$as_echo_n "checking for $ac_word... " >&6; }
3784if test "${ac_cv_path_U_MAKE+set}" = set; then
3785  $as_echo_n "(cached) " >&6
3786else
3787  case $U_MAKE in
3788  [\\/]* | ?:[\\/]*)
3789  ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
3790  ;;
3791  *)
3792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795  IFS=$as_save_IFS
3796  test -z "$as_dir" && as_dir=.
3797  for ac_exec_ext in '' $ac_executable_extensions; do
3798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799    ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext"
3800    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801    break 2
3802  fi
3803done
3804done
3805IFS=$as_save_IFS
3806
3807  ;;
3808esac
3809fi
3810U_MAKE=$ac_cv_path_U_MAKE
3811if test -n "$U_MAKE"; then
3812  { $as_echo "$as_me:$LINENO: result: $U_MAKE" >&5
3813$as_echo "$U_MAKE" >&6; }
3814else
3815  { $as_echo "$as_me:$LINENO: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819
3820  test -n "$U_MAKE" && break
3821done
3822test -n "$U_MAKE" || U_MAKE="make"
3823
3824
3825
3826
3827
3828# Check whether --with-cross-build was given.
3829if test "${with_cross_build+set}" = set; then
3830  withval=$with_cross_build; cross_buildroot="${withval}"
3831else
3832  cross_buildroot=""
3833fi
3834
3835
3836if test "X$cross_buildroot" = "X"; then
3837    if test "$cross_compiling" = "yes"; then
3838        { { $as_echo "$as_me:$LINENO: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" >&5
3839$as_echo "$as_me: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" >&2;}
3840   { (exit 1); exit 1; }; }
3841    fi
3842else
3843    if test -f "${cross_buildroot}/config/icucross.mk"; then
3844        { $as_echo "$as_me:$LINENO: result: Using cross buildroot: $cross_buildroot" >&5
3845$as_echo "Using cross buildroot: $cross_buildroot" >&6; }
3846    else
3847        if test -d "${cross_buildroot}"; then
3848            { { $as_echo "$as_me:$LINENO: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&5
3849$as_echo "$as_me: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&2;}
3850   { (exit 1); exit 1; }; }
3851        else
3852            { { $as_echo "$as_me:$LINENO: error: No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." >&5
3853$as_echo "$as_me: error: No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." >&2;}
3854   { (exit 1); exit 1; }; }
3855        fi
3856    fi
3857fi
3858
3859
3860# Check for doxygen to generate documentation
3861# Extract the first word of "doxygen", so it can be a program name with args.
3862set dummy doxygen; ac_word=$2
3863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
3865if test "${ac_cv_path_DOXYGEN+set}" = set; then
3866  $as_echo_n "(cached) " >&6
3867else
3868  case $DOXYGEN in
3869  [\\/]* | ?:[\\/]*)
3870  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
3871  ;;
3872  *)
3873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874as_dummy="$PATH:/usr/local/bin:/usr/bin"
3875for as_dir in $as_dummy
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879  for ac_exec_ext in '' $ac_executable_extensions; do
3880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
3882    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883    break 2
3884  fi
3885done
3886done
3887IFS=$as_save_IFS
3888
3889  ;;
3890esac
3891fi
3892DOXYGEN=$ac_cv_path_DOXYGEN
3893if test -n "$DOXYGEN"; then
3894  { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
3895$as_echo "$DOXYGEN" >&6; }
3896else
3897  { $as_echo "$as_me:$LINENO: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901
3902
3903# Check that the linker is usable
3904
3905case "${host}" in
3906    *-*-cygwin*|*-*-mingw*)
3907        if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
3908            { { $as_echo "$as_me:$LINENO: error: link.exe is not a valid linker. Your PATH is incorrect.
3909                  Please follow the directions in ICU's readme." >&5
3910$as_echo "$as_me: error: link.exe is not a valid linker. Your PATH is incorrect.
3911                  Please follow the directions in ICU's readme." >&2;}
3912   { (exit 1); exit 1; }; }
3913        fi;;
3914    *);;
3915esac
3916
3917# Determine the executable suffix
3918# We don't use AC_EXEEXT because some compilers output separate debugging
3919# files, which confuses the AC_EXEEXT macro.
3920{ $as_echo "$as_me:$LINENO: checking checking for executable suffix" >&5
3921$as_echo_n "checking checking for executable suffix... " >&6; }
3922case "${host}" in
3923    *-*-cygwin*|*-*-mingw*)  EXEEXT=.exe ;;
3924    *)      EXEEXT="" ;;
3925esac
3926ac_exeext=$EXEEXT
3927{ $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
3928$as_echo "$EXEEXT" >&6; }
3929
3930
3931# Determine how strict we want to be when compiling
3932
3933    { $as_echo "$as_me:$LINENO: checking whether strict compiling is on" >&5
3934$as_echo_n "checking whether strict compiling is on... " >&6; }
3935    # Check whether --enable-strict was given.
3936if test "${enable_strict+set}" = set; then
3937  enableval=$enable_strict;
3938        if test "$enableval" = no
3939        then
3940            ac_use_strict_options=no
3941        else
3942            ac_use_strict_options=yes
3943        fi
3944
3945else
3946  ac_use_strict_options=yes
3947fi
3948
3949    { $as_echo "$as_me:$LINENO: result: $ac_use_strict_options" >&5
3950$as_echo "$ac_use_strict_options" >&6; }
3951
3952    if test "$ac_use_strict_options" = yes
3953    then
3954        if test "$GCC" = yes
3955        then
3956            CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
3957            case "${host}" in
3958            *-*-solaris*)
3959                CFLAGS="$CFLAGS -D__STDC__=0";;
3960            esac
3961        else
3962            case "${host}" in
3963            *-*-cygwin)
3964                if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
3965                then
3966                    CFLAGS="$CFLAGS /W4"
3967                fi
3968            esac
3969        fi
3970        if test "$GXX" = yes
3971        then
3972            CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
3973            case "${host}" in
3974            *-*-solaris*)
3975                CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
3976            esac
3977        else
3978            case "${host}" in
3979            *-*-cygwin)
3980                if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
3981                then
3982                    CXXFLAGS="$CXXFLAGS /W4"
3983                fi
3984            esac
3985        fi
3986    fi
3987
3988
3989# Check if we can build and use 64-bit libraries
3990
3991
3992    BITS_REQ=nochange
3993    ENABLE_64BIT_LIBS=unknown
3994    ## revisit this for cross-compile.
3995
3996    # Check whether --enable-64bit-libs was given.
3997if test "${enable_64bit_libs+set}" = set; then
3998  enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
3999         case "${enableval}" in
4000            no|false|32) with_library_bits=32;  ;;
4001            yes|true|64) with_library_bits=64else32 ;;
4002            nochange) with_library_bits=nochange; ;;
4003            *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for '--*-64bit-libs'" >&5
4004$as_echo "$as_me: error: bad value ${enableval} for '--*-64bit-libs'" >&2;}
4005   { (exit 1); exit 1; }; } ;;
4006            esac
4007fi
4008
4009
4010
4011
4012# Check whether --with-library-bits was given.
4013if test "${with_library_bits+set}" = set; then
4014  withval=$with_library_bits; case "${withval}" in
4015            ""|nochange) BITS_REQ=$withval ;;
4016            32|64|64else32) BITS_REQ=$withval ;;
4017            *) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-library-bits" >&5
4018$as_echo "$as_me: error: bad value ${withval} for --with-library-bits" >&2;}
4019   { (exit 1); exit 1; }; } ;;
4020            esac
4021fi
4022
4023
4024    # don't use these for cross compiling
4025    if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4026        { { $as_echo "$as_me:$LINENO: error: Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." >&5
4027$as_echo "$as_me: error: Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." >&2;}
4028   { (exit 1); exit 1; }; }
4029    fi
4030    DEFAULT_64BIT=no
4031    { $as_echo "$as_me:$LINENO: checking whether runnable 64 bit binaries are built by default" >&5
4032$as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4033    if test "$cross_compiling" = yes; then
4034  DEFAULT_64BIT=unknown
4035else
4036  cat >conftest.$ac_ext <<_ACEOF
4037int main(void) {return (sizeof(void*)*8==64)?0:1;}
4038_ACEOF
4039rm -f conftest$ac_exeext
4040if { (ac_try="$ac_link"
4041case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046$as_echo "$ac_try_echo") >&5
4047  (eval "$ac_link") 2>&5
4048  ac_status=$?
4049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4051  { (case "(($ac_try" in
4052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053  *) ac_try_echo=$ac_try;;
4054esac
4055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4056$as_echo "$ac_try_echo") >&5
4057  (eval "$ac_try") 2>&5
4058  ac_status=$?
4059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; }; then
4061  DEFAULT_64BIT=yes
4062else
4063  $as_echo "$as_me: program exited with status $ac_status" >&5
4064$as_echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067( exit $ac_status )
4068DEFAULT_64BIT=no
4069fi
4070rm -rf conftest.dSYM
4071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4072fi
4073
4074
4075    BITS_GOT=unknown
4076
4077    # 'OK' here means, we can exit any further checking, everything's copa
4078    BITS_OK=yes
4079
4080    # do we need to check for buildable/runnable 32 or 64 bit?
4081    BITS_CHECK_32=no
4082    BITS_CHECK_64=no
4083
4084    # later, can we run the 32/64 bit binaries so made?
4085    BITS_RUN_32=no
4086    BITS_RUN_64=no
4087
4088    if test "$DEFAULT_64BIT" = "yes"; then
4089        # we get 64 bits by default.
4090        BITS_GOT=64
4091        case "$BITS_REQ" in
4092            32)
4093                # need to look for 32 bit support.
4094                BITS_CHECK_32=yes
4095                # not copa.
4096                BITS_OK=no;;
4097            # everyone else is happy.
4098            nochange) ;;
4099            *) ;;
4100        esac
4101    elif test "$DEFAULT_64BIT" = "no"; then
4102        # not 64 bit by default.
4103        BITS_GOT=32
4104        case "$BITS_REQ" in
4105            64|64else32)
4106                BITS_CHECK_64=yes
4107                #BITS_CHECK_32=yes
4108                BITS_OK=no;;
4109            nochange) ;;
4110            *) ;;
4111        esac
4112    elif test "$DEFAULT_64BIT" = "unknown"; then
4113        { { $as_echo "$as_me:$LINENO: error: Unable to determine binary format." >&5
4114$as_echo "$as_me: error: Unable to determine binary format." >&2;}
4115   { (exit 1); exit 1; }; }
4116        # cross compiling?
4117        #BITS_GOT=unknown
4118        #case "$BITS_REQ" in
4119        #    64|64else32) BITS_OK=no
4120        #    BITS_CHECK_32=yes
4121        #    BITS_CHECK_64=yes
4122        #    32) BITS_OK=no;;
4123        #    nochange) ;;
4124        #    *) ;;
4125        #esac
4126    fi
4127
4128    { $as_echo "$as_me:$LINENO: result: $DEFAULT_64BIT" >&5
4129$as_echo "$DEFAULT_64BIT" >&6; };
4130
4131    if test "$BITS_OK" != "yes"; then
4132        # not copa. back these up.
4133        CFLAGS_OLD="${CFLAGS}"
4134        CXXFLAGS_OLD="${CXXFLAGS}"
4135        LDFLAGS_OLD="${LDFLAGS}"
4136        ARFLAGS_OLD="${ARFLAGS}"
4137
4138        CFLAGS_32="${CFLAGS}"
4139        CXXFLAGS_32="${CXXFLAGS}"
4140        LDFLAGS_32="${LDFLAGS}"
4141        ARFLAGS_32="${ARFLAGS}"
4142
4143        CFLAGS_64="${CFLAGS}"
4144        CXXFLAGS_64="${CXXFLAGS}"
4145        LDFLAGS_64="${LDFLAGS}"
4146        ARFLAGS_64="${ARFLAGS}"
4147
4148        CAN_BUILD_64=unknown
4149        CAN_BUILD_32=unknown
4150        # These results can't be cached because is sets compiler flags.
4151        if test "$BITS_CHECK_64" = "yes"; then
4152            { $as_echo "$as_me:$LINENO: checking how to build 64-bit executables" >&5
4153$as_echo_n "checking how to build 64-bit executables... " >&6; }
4154            CAN_BUILD_64=no
4155            ####
4156            # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4157            #  Note, we don't have to actually check if the options work- we'll try them before using them.
4158            #  So, only try actually testing the options, if you are trying to decide between multiple options.
4159            # On exit from the following clauses:
4160            # if CAN_BUILD_64=yes:
4161            #    *FLAGS are assumed to contain the right settings for 64bit
4162            # else if CAN_BUILD_64=no: (default)
4163            #    *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4164
4165            if test "$GCC" = yes; then
4166                CFLAGS="${CFLAGS} -m64"
4167                CXXFLAGS="${CXXFLAGS} -m64"
4168                cat >conftest.$ac_ext <<_ACEOF
4169int main(void) {return (sizeof(void*)*8==64)?0:1;}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178$as_echo "$ac_try_echo") >&5
4179  (eval "$ac_compile") 2>conftest.er1
4180  ac_status=$?
4181  grep -v '^ *+' conftest.er1 >conftest.err
4182  rm -f conftest.er1
4183  cat conftest.err >&5
4184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); } && {
4186	 test -z "$ac_c_werror_flag" ||
4187	 test ! -s conftest.err
4188       } && test -s conftest.$ac_objext; then
4189  CAN_BUILD_64=yes
4190else
4191  $as_echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194	CAN_BUILD_64=no
4195fi
4196
4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198            else
4199                case "${host}" in
4200                sparc*-*-solaris*)
4201                    # 1. try -m64
4202                    CFLAGS="${CFLAGS} -m64"
4203                    CXXFLAGS="${CXXFLAGS} -m64"
4204                    cat >conftest.$ac_ext <<_ACEOF
4205int main(void) {return (sizeof(void*)*8==64)?0:1;}
4206_ACEOF
4207rm -f conftest.$ac_objext
4208if { (ac_try="$ac_compile"
4209case "(($ac_try" in
4210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211  *) ac_try_echo=$ac_try;;
4212esac
4213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4214$as_echo "$ac_try_echo") >&5
4215  (eval "$ac_compile") 2>conftest.er1
4216  ac_status=$?
4217  grep -v '^ *+' conftest.er1 >conftest.err
4218  rm -f conftest.er1
4219  cat conftest.err >&5
4220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } && {
4222	 test -z "$ac_c_werror_flag" ||
4223	 test ! -s conftest.err
4224       } && test -s conftest.$ac_objext; then
4225  CAN_BUILD_64=yes
4226else
4227  $as_echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230	CAN_BUILD_64=no
4231fi
4232
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234                    if test "$CAN_BUILD_64" != yes; then
4235                        # Nope. back out changes.
4236                        CFLAGS="${CFLAGS_OLD}"
4237                        CXXFLAGS="${CFLAGS_OLD}"
4238                        # 2. try xarch=v9 [deprecated]
4239                        ## TODO: cross compile: the following won't work.
4240                        SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
4241                        SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4242                        # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4243                        if test -z "$SOL64" && test -n "$SPARCV9"; then
4244                            CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
4245                            CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4246                            LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
4247                            CAN_BUILD_64=yes
4248                        fi
4249                    fi
4250                    ;;
4251                i386-*-solaris*)
4252                    # 1. try -m64
4253                    CFLAGS="${CFLAGS} -m64"
4254                    CXXFLAGS="${CXXFLAGS} -m64"
4255                    cat >conftest.$ac_ext <<_ACEOF
4256int main(void) {return (sizeof(void*)*8==64)?0:1;}
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262  *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4265$as_echo "$ac_try_echo") >&5
4266  (eval "$ac_compile") 2>conftest.er1
4267  ac_status=$?
4268  grep -v '^ *+' conftest.er1 >conftest.err
4269  rm -f conftest.er1
4270  cat conftest.err >&5
4271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } && {
4273	 test -z "$ac_c_werror_flag" ||
4274	 test ! -s conftest.err
4275       } && test -s conftest.$ac_objext; then
4276  CAN_BUILD_64=yes
4277else
4278  $as_echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281	CAN_BUILD_64=no
4282fi
4283
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285                    if test "$CAN_BUILD_64" != yes; then
4286                        # Nope. back out changes.
4287                        CFLAGS="${CFLAGS_OLD}"
4288                        CXXFLAGS="${CXXFLAGS_OLD}"
4289                        # 2. try the older compiler option
4290                        ## TODO: cross compile problem
4291                        SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4292                        if test -z "$SOL64" && test -n "$AMD64"; then
4293                            CFLAGS="${CFLAGS} -xtarget=generic64"
4294                            CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
4295                            CAN_BUILD_64=yes
4296                        fi
4297                    fi
4298                    ;;
4299                ia64-*-linux*)
4300                    # check for ecc/ecpc compiler support
4301                    ## TODO: cross compiler problem
4302                    if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4303                        if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4304                            CAN_BUILD_64=yes
4305                        fi
4306                    fi
4307                    ;;
4308                *-*-cygwin)
4309                    # vcvarsamd64.bat should have been used to enable 64-bit builds.
4310                    # We only do this check to display the correct answer.
4311                    ## TODO: cross compiler problem
4312                    if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4313                        CAN_BUILD_64=yes
4314                    fi
4315                    ;;
4316                *-*-aix*|powerpc64-*-linux*)
4317                    CFLAGS="${CFLAGS} -q64"
4318                    CXXFLAGS="${CXXFLAGS} -q64"
4319                    LDFLAGS="${LDFLAGS} -q64"
4320                    cat >conftest.$ac_ext <<_ACEOF
4321int main(void) {return (sizeof(void*)*8==64)?0:1;}
4322_ACEOF
4323rm -f conftest.$ac_objext
4324if { (ac_try="$ac_compile"
4325case "(($ac_try" in
4326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327  *) ac_try_echo=$ac_try;;
4328esac
4329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330$as_echo "$ac_try_echo") >&5
4331  (eval "$ac_compile") 2>conftest.er1
4332  ac_status=$?
4333  grep -v '^ *+' conftest.er1 >conftest.err
4334  rm -f conftest.er1
4335  cat conftest.err >&5
4336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); } && {
4338	 test -z "$ac_c_werror_flag" ||
4339	 test ! -s conftest.err
4340       } && test -s conftest.$ac_objext; then
4341  CAN_BUILD_64=yes
4342else
4343  $as_echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346	CAN_BUILD_64=no
4347fi
4348
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350                    if test "$CAN_BUILD_64" = yes; then
4351                        # worked- set other options.
4352                        case "${host}" in
4353                        *-*-aix*)
4354                            # tell AIX what executable mode to use.
4355                            ARFLAGS="${ARFLAGS} -X64"
4356                        esac
4357                    fi
4358                    ;;
4359                *-*-hpux*)
4360                    # First we try the newer +DD64, if that doesn't work,
4361                    # try other options.
4362
4363                    CFLAGS="${CFLAGS} +DD64"
4364                    CXXFLAGS="${CXXFLAGS} +DD64"
4365                    cat >conftest.$ac_ext <<_ACEOF
4366int main(void) {return (sizeof(void*)*8==64)?0:1;}
4367_ACEOF
4368rm -f conftest.$ac_objext
4369if { (ac_try="$ac_compile"
4370case "(($ac_try" in
4371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372  *) ac_try_echo=$ac_try;;
4373esac
4374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375$as_echo "$ac_try_echo") >&5
4376  (eval "$ac_compile") 2>conftest.er1
4377  ac_status=$?
4378  grep -v '^ *+' conftest.er1 >conftest.err
4379  rm -f conftest.er1
4380  cat conftest.err >&5
4381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); } && {
4383	 test -z "$ac_c_werror_flag" ||
4384	 test ! -s conftest.err
4385       } && test -s conftest.$ac_objext; then
4386  CAN_BUILD_64=yes
4387else
4388  $as_echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391	CAN_BUILD_64=no
4392fi
4393
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395                    if test "$CAN_BUILD_64" != yes; then
4396                        # reset
4397                        CFLAGS="${CFLAGS_OLD}"
4398                        CXXFLAGS="${CXXFLAGS_OLD}"
4399                        # append
4400                        CFLAGS="${CFLAGS} +DA2.0W"
4401                        CXXFLAGS="${CXXFLAGS} +DA2.0W"
4402                        cat >conftest.$ac_ext <<_ACEOF
4403int main(void) {return (sizeof(void*)*8==64)?0:1;}
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (ac_try="$ac_compile"
4407case "(($ac_try" in
4408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409  *) ac_try_echo=$ac_try;;
4410esac
4411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412$as_echo "$ac_try_echo") >&5
4413  (eval "$ac_compile") 2>conftest.er1
4414  ac_status=$?
4415  grep -v '^ *+' conftest.er1 >conftest.err
4416  rm -f conftest.er1
4417  cat conftest.err >&5
4418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); } && {
4420	 test -z "$ac_c_werror_flag" ||
4421	 test ! -s conftest.err
4422       } && test -s conftest.$ac_objext; then
4423  CAN_BUILD_64=yes
4424else
4425  $as_echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428	CAN_BUILD_64=no
4429fi
4430
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432                    fi
4433                    ;;
4434                *-*ibm-openedition*|*-*-os390*)
4435                    CFLAGS="${CFLAGS} -Wc,lp64"
4436                    CXXFLAGS="${CXXFLAGS} -Wc,lp64"
4437                    LDFLAGS="${LDFLAGS} -Wl,lp64"
4438                    cat >conftest.$ac_ext <<_ACEOF
4439int main(void) {return (sizeof(void*)*8==64)?0:1;}
4440_ACEOF
4441rm -f conftest.$ac_objext
4442if { (ac_try="$ac_compile"
4443case "(($ac_try" in
4444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445  *) ac_try_echo=$ac_try;;
4446esac
4447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4448$as_echo "$ac_try_echo") >&5
4449  (eval "$ac_compile") 2>conftest.er1
4450  ac_status=$?
4451  grep -v '^ *+' conftest.er1 >conftest.err
4452  rm -f conftest.er1
4453  cat conftest.err >&5
4454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); } && {
4456	 test -z "$ac_c_werror_flag" ||
4457	 test ! -s conftest.err
4458       } && test -s conftest.$ac_objext; then
4459  CAN_BUILD_64=yes
4460else
4461  $as_echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464	CAN_BUILD_64=no
4465fi
4466
4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468                    ;;
4469                *)
4470                    # unknown platform.
4471                    ;;
4472                esac
4473            fi
4474            { $as_echo "$as_me:$LINENO: result: $CAN_BUILD_64" >&5
4475$as_echo "$CAN_BUILD_64" >&6; }
4476            if test "$CAN_BUILD_64" = yes; then
4477                { $as_echo "$as_me:$LINENO: checking whether runnable 64-bit binaries are being built " >&5
4478$as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4479                if test "$cross_compiling" = yes; then
4480  BITS_RUN_64=unknown
4481else
4482  cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h.  */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h.  */
4488int main(void) {return (sizeof(void*)*8==64)?0:1;}
4489_ACEOF
4490rm -f conftest$ac_exeext
4491if { (ac_try="$ac_link"
4492case "(($ac_try" in
4493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494  *) ac_try_echo=$ac_try;;
4495esac
4496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497$as_echo "$ac_try_echo") >&5
4498  (eval "$ac_link") 2>&5
4499  ac_status=$?
4500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4502  { (case "(($ac_try" in
4503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504  *) ac_try_echo=$ac_try;;
4505esac
4506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507$as_echo "$ac_try_echo") >&5
4508  (eval "$ac_try") 2>&5
4509  ac_status=$?
4510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  BITS_RUN_64=yes
4513else
4514  $as_echo "$as_me: program exited with status $ac_status" >&5
4515$as_echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518( exit $ac_status )
4519BITS_RUN_64=no
4520fi
4521rm -rf conftest.dSYM
4522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4523fi
4524
4525
4526                { $as_echo "$as_me:$LINENO: result: $BITS_RUN_64" >&5
4527$as_echo "$BITS_RUN_64" >&6; };
4528
4529                CFLAGS_64="${CFLAGS}"
4530                CXXFLAGS_64="${CXXFLAGS}"
4531                LDFLAGS_64="${LDFLAGS}"
4532                ARFLAGS_64="${ARFLAGS}"
4533            fi
4534            # put it back.
4535            CFLAGS="${CFLAGS_OLD}"
4536            CXXFLAGS="${CXXFLAGS_OLD}"
4537            LDFLAGS="${LDFLAGS_OLD}"
4538            ARFLAGS="${ARFLAGS_OLD}"
4539        fi
4540        if test "$BITS_CHECK_32" = "yes"; then
4541            # see comment under 'if BITS_CHECK_64', above.
4542            { $as_echo "$as_me:$LINENO: checking how to build 32-bit executables" >&5
4543$as_echo_n "checking how to build 32-bit executables... " >&6; }
4544            if test "$GCC" = yes; then
4545                CFLAGS="${CFLAGS} -m32"
4546                CXXFLAGS="${CXXFLAGS} -m32"
4547                cat >conftest.$ac_ext <<_ACEOF
4548int main(void) {return (sizeof(void*)*8==32)?0:1;}
4549_ACEOF
4550rm -f conftest.$ac_objext
4551if { (ac_try="$ac_compile"
4552case "(($ac_try" in
4553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554  *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557$as_echo "$ac_try_echo") >&5
4558  (eval "$ac_compile") 2>conftest.er1
4559  ac_status=$?
4560  grep -v '^ *+' conftest.er1 >conftest.err
4561  rm -f conftest.er1
4562  cat conftest.err >&5
4563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); } && {
4565	 test -z "$ac_c_werror_flag" ||
4566	 test ! -s conftest.err
4567       } && test -s conftest.$ac_objext; then
4568  CAN_BUILD_32=yes
4569else
4570  $as_echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573	CAN_BUILD_32=no
4574fi
4575
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577            fi
4578            { $as_echo "$as_me:$LINENO: result: $CAN_BUILD_32" >&5
4579$as_echo "$CAN_BUILD_32" >&6; }
4580            if test "$CAN_BUILD_32" = yes; then
4581                { $as_echo "$as_me:$LINENO: checking whether runnable 32-bit binaries are being built " >&5
4582$as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
4583                if test "$cross_compiling" = yes; then
4584  BITS_RUN_32=unknown
4585else
4586  cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592int main(void) {return (sizeof(void*)*8==32)?0:1;}
4593_ACEOF
4594rm -f conftest$ac_exeext
4595if { (ac_try="$ac_link"
4596case "(($ac_try" in
4597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598  *) ac_try_echo=$ac_try;;
4599esac
4600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601$as_echo "$ac_try_echo") >&5
4602  (eval "$ac_link") 2>&5
4603  ac_status=$?
4604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4606  { (case "(($ac_try" in
4607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608  *) ac_try_echo=$ac_try;;
4609esac
4610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611$as_echo "$ac_try_echo") >&5
4612  (eval "$ac_try") 2>&5
4613  ac_status=$?
4614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; }; then
4616  BITS_RUN_32=yes
4617else
4618  $as_echo "$as_me: program exited with status $ac_status" >&5
4619$as_echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622( exit $ac_status )
4623BITS_RUN_32=no
4624fi
4625rm -rf conftest.dSYM
4626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627fi
4628
4629
4630                { $as_echo "$as_me:$LINENO: result: $BITS_RUN_32" >&5
4631$as_echo "$BITS_RUN_32" >&6; };
4632                CFLAGS_32="${CFLAGS}"
4633                CXXFLAGS_32="${CXXFLAGS}"
4634                LDFLAGS_32="${LDFLAGS}"
4635                ARFLAGS_32="${ARFLAGS}"
4636            fi
4637            # put it back.
4638            CFLAGS="${CFLAGS_OLD}"
4639            CXXFLAGS="${CXXFLAGS_OLD}"
4640            LDFLAGS="${LDFLAGS_OLD}"
4641            ARFLAGS="${ARFLAGS_OLD}"
4642        fi
4643
4644        ##
4645        # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
4646        #
4647
4648        # First, implement 64else32
4649        if test "$BITS_REQ" = "64else32"; then
4650            if test "$BITS_RUN_64" = "yes"; then
4651                BITS_REQ=64
4652            else
4653                # no changes.
4654                BITS_OK=yes
4655            fi
4656        fi
4657
4658        # implement.
4659        if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
4660            CFLAGS="${CFLAGS_32}"
4661            CXXFLAGS="${CXXFLAGS_32}"
4662            LDFLAGS="${LDFLAGS_32}"
4663            ARFLAGS="${ARFLAGS_32}"
4664            BITS_OK=yes
4665        elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
4666            CFLAGS="${CFLAGS_64}"
4667            CXXFLAGS="${CXXFLAGS_64}"
4668            LDFLAGS="${LDFLAGS_64}"
4669            ARFLAGS="${ARFLAGS_64}"
4670            BITS_OK=yes
4671        elif test "$BITS_OK" != "yes"; then
4672            { { $as_echo "$as_me:$LINENO: 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." >&5
4673$as_echo "$as_me: 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." >&2;}
4674   { (exit 1); exit 1; }; }
4675        fi
4676     fi
4677
4678
4679
4680
4681# Determine the Makefile fragment
4682
4683	{ $as_echo "$as_me:$LINENO: checking which Makefile fragment to use for ${host}" >&5
4684$as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
4685if test "${icu_cv_host_frag+set}" = set; then
4686  $as_echo_n "(cached) " >&6
4687else
4688
4689case "${host}" in
4690*-*-solaris*)
4691	if test "$GCC" = yes; then
4692		icu_cv_host_frag=mh-solaris-gcc
4693	else
4694		icu_cv_host_frag=mh-solaris
4695	fi ;;
4696alpha*-*-linux-gnu)
4697	if test "$GCC" = yes; then
4698		icu_cv_host_frag=mh-alpha-linux-gcc
4699	else
4700		icu_cv_host_frag=mh-alpha-linux-cc
4701	fi ;;
4702powerpc*-*-linux*)
4703	if test "$GCC" = yes; then
4704		icu_cv_host_frag=mh-linux
4705	else
4706		icu_cv_host_frag=mh-linux-va
4707	fi ;;
4708*-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;;
4709*-*-cygwin|*-*-mingw32)
4710	if test "$GCC" = yes; then
4711		cat >conftest.$ac_ext <<_ACEOF
4712/* confdefs.h.  */
4713_ACEOF
4714cat confdefs.h >>conftest.$ac_ext
4715cat >>conftest.$ac_ext <<_ACEOF
4716/* end confdefs.h.  */
4717
4718#ifndef __MINGW32__
4719#error This is not MinGW
4720#endif
4721int
4722main ()
4723{
4724
4725  ;
4726  return 0;
4727}
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (ac_try="$ac_compile"
4731case "(($ac_try" in
4732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733  *) ac_try_echo=$ac_try;;
4734esac
4735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4736$as_echo "$ac_try_echo") >&5
4737  (eval "$ac_compile") 2>conftest.er1
4738  ac_status=$?
4739  grep -v '^ *+' conftest.er1 >conftest.err
4740  rm -f conftest.er1
4741  cat conftest.err >&5
4742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); } && {
4744	 test -z "$ac_c_werror_flag" ||
4745	 test ! -s conftest.err
4746       } && test -s conftest.$ac_objext; then
4747  icu_cv_host_frag=mh-mingw
4748else
4749  $as_echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752	icu_cv_host_frag=mh-cygwin
4753fi
4754
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756	else
4757		icu_cv_host_frag=mh-cygwin-msvc
4758	fi ;;
4759*-*-*bsd*|*-*-dragonfly*) 	icu_cv_host_frag=mh-bsd-gcc ;;
4760*-*-aix*)
4761	if test "$GCC" = yes; then
4762		icu_cv_host_frag=mh-aix-gcc
4763	else
4764		icu_cv_host_frag=mh-aix-va
4765	fi ;;
4766*-*-hpux*)
4767	if test "$GCC" = yes; then
4768		icu_cv_host_frag=mh-hpux-gcc
4769	else
4770		case "$CXX" in
4771		*aCC)    icu_cv_host_frag=mh-hpux-acc ;;
4772		esac
4773	fi ;;
4774*-*ibm-openedition*|*-*-os390*)	icu_cv_host_frag=mh-os390 ;;
4775*-*-os400*)	icu_cv_host_frag=mh-os400 ;;
4776*-apple-rhapsody*)	icu_cv_host_frag=mh-darwin ;;
4777*-apple-darwin*)	icu_cv_host_frag=mh-darwin ;;
4778*-*-beos|*-*-haiku)	icu_cv_host_frag=mh-beos ;;
4779*-*-irix*)	icu_cv_host_frag=mh-irix ;;
4780*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
4781*-*-nto*)	icu_cv_host_frag=mh-qnx ;;
4782*-ncr-*)	icu_cv_host_frag=mh-mpras ;;
4783*) 		icu_cv_host_frag=mh-unknown ;;
4784esac
4785
4786
4787fi
4788{ $as_echo "$as_me:$LINENO: result: $icu_cv_host_frag" >&5
4789$as_echo "$icu_cv_host_frag" >&6; }
4790
4791
4792# Checks for libraries and other host specific stuff
4793# On HP/UX, don't link to -lm from a shared lib because it isn't
4794#  PIC (at least on 10.2)
4795case "${host}" in
4796	*-*-hpux*) 	{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
4797$as_echo_n "checking for floor in -lm... " >&6; }
4798if test "${ac_cv_lib_m_floor+set}" = set; then
4799  $as_echo_n "(cached) " >&6
4800else
4801  ac_check_lib_save_LIBS=$LIBS
4802LIBS="-lm  $LIBS"
4803cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809
4810/* Override any GCC internal prototype to avoid an error.
4811   Use char because int might match the return type of a GCC
4812   builtin and then its argument prototype would still apply.  */
4813#ifdef __cplusplus
4814extern "C"
4815#endif
4816char floor ();
4817int
4818main ()
4819{
4820return floor ();
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825rm -f conftest.$ac_objext conftest$ac_exeext
4826if { (ac_try="$ac_link"
4827case "(($ac_try" in
4828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829  *) ac_try_echo=$ac_try;;
4830esac
4831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832$as_echo "$ac_try_echo") >&5
4833  (eval "$ac_link") 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } && {
4840	 test -z "$ac_c_werror_flag" ||
4841	 test ! -s conftest.err
4842       } && test -s conftest$ac_exeext && {
4843	 test "$cross_compiling" = yes ||
4844	 $as_test_x conftest$ac_exeext
4845       }; then
4846  ac_cv_lib_m_floor=yes
4847else
4848  $as_echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851	ac_cv_lib_m_floor=no
4852fi
4853
4854rm -rf conftest.dSYM
4855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856      conftest$ac_exeext conftest.$ac_ext
4857LIBS=$ac_check_lib_save_LIBS
4858fi
4859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
4860$as_echo "$ac_cv_lib_m_floor" >&6; }
4861if test "x$ac_cv_lib_m_floor" = x""yes; then
4862  LIB_M="-lm"
4863fi
4864 ;;
4865
4866	*)
4867{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
4868$as_echo_n "checking for floor in -lm... " >&6; }
4869if test "${ac_cv_lib_m_floor+set}" = set; then
4870  $as_echo_n "(cached) " >&6
4871else
4872  ac_check_lib_save_LIBS=$LIBS
4873LIBS="-lm  $LIBS"
4874cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h.  */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h.  */
4880
4881/* Override any GCC internal prototype to avoid an error.
4882   Use char because int might match the return type of a GCC
4883   builtin and then its argument prototype would still apply.  */
4884#ifdef __cplusplus
4885extern "C"
4886#endif
4887char floor ();
4888int
4889main ()
4890{
4891return floor ();
4892  ;
4893  return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext conftest$ac_exeext
4897if { (ac_try="$ac_link"
4898case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903$as_echo "$ac_try_echo") >&5
4904  (eval "$ac_link") 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } && {
4911	 test -z "$ac_c_werror_flag" ||
4912	 test ! -s conftest.err
4913       } && test -s conftest$ac_exeext && {
4914	 test "$cross_compiling" = yes ||
4915	 $as_test_x conftest$ac_exeext
4916       }; then
4917  ac_cv_lib_m_floor=yes
4918else
4919  $as_echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922	ac_cv_lib_m_floor=no
4923fi
4924
4925rm -rf conftest.dSYM
4926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4927      conftest$ac_exeext conftest.$ac_ext
4928LIBS=$ac_check_lib_save_LIBS
4929fi
4930{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
4931$as_echo "$ac_cv_lib_m_floor" >&6; }
4932if test "x$ac_cv_lib_m_floor" = x""yes; then
4933  cat >>confdefs.h <<_ACEOF
4934#define HAVE_LIBM 1
4935_ACEOF
4936
4937  LIBS="-lm $LIBS"
4938
4939fi
4940
4941			LIB_M="" ;;
4942esac
4943
4944
4945# Check whether to build shared libraries
4946{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
4947$as_echo_n "checking whether to build shared libraries... " >&6; }
4948enabled=no
4949# Check whether --enable-shared was given.
4950if test "${enable_shared+set}" = set; then
4951  enableval=$enable_shared;  case "${enableval}" in
4952	     yes|"") enabled=yes; ENABLE_SHARED=YES ;;
4953	     no);;
4954	     *) ;;
4955    esac
4956else
4957  enabled=yes; ENABLE_SHARED=YES
4958
4959fi
4960
4961{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
4962$as_echo "$enabled" >&6; }
4963
4964
4965# Check whether to build static libraries
4966{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
4967$as_echo_n "checking whether to build static libraries... " >&6; }
4968enabled=no
4969# Check whether --enable-static was given.
4970if test "${enable_static+set}" = set; then
4971  enableval=$enable_static;  case "${enableval}" in
4972	     yes|"") enabled=yes; ENABLE_STATIC=YES ;;
4973	     no) ;;
4974	     *) ;;
4975    esac
4976fi
4977
4978{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
4979$as_echo "$enabled" >&6; }
4980
4981
4982# Check whether to build debug libraries
4983{ $as_echo "$as_me:$LINENO: checking whether to build debug libraries" >&5
4984$as_echo_n "checking whether to build debug libraries... " >&6; }
4985enabled=no
4986ENABLE_DEBUG=0
4987# Check whether --enable-debug was given.
4988if test "${enable_debug+set}" = set; then
4989  enableval=$enable_debug;  case "${enableval}" in
4990         yes|"") enabled=yes; ENABLE_DEBUG=1 ;;
4991         *) ;;
4992    esac
4993fi
4994
4995{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
4996$as_echo "$enabled" >&6; }
4997
4998
4999# Check whether to build release libraries
5000{ $as_echo "$as_me:$LINENO: checking whether to build release libraries" >&5
5001$as_echo_n "checking whether to build release libraries... " >&6; }
5002enabled=yes
5003ENABLE_RELEASE=1
5004# Check whether --enable-release was given.
5005if test "${enable_release+set}" = set; then
5006  enableval=$enable_release;  case "${enableval}" in
5007         no) enabled=no; ENABLE_RELEASE=0 ;;
5008         *) ;;
5009    esac
5010fi
5011
5012{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
5013$as_echo "$enabled" >&6; }
5014
5015
5016# Check whether to enabled draft APIs
5017{ $as_echo "$as_me:$LINENO: checking whether to enable draft APIs" >&5
5018$as_echo_n "checking whether to enable draft APIs... " >&6; }
5019enabled=yes
5020U_DEFAULT_SHOW_DRAFT=1
5021# Check whether --enable-draft was given.
5022if test "${enable_draft+set}" = set; then
5023  enableval=$enable_draft;  case "${enableval}" in
5024         no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;;
5025         *) ;;
5026    esac
5027fi
5028
5029{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
5030$as_echo "$enabled" >&6; }
5031# Make sure that we can use draft API in ICU.
5032if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5033    CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API"
5034fi
5035
5036
5037# Check if we can hide variables from
5038{ $as_echo "$as_me:$LINENO: checking for library API export" >&5
5039$as_echo_n "checking for library API export... " >&6; }
5040SHAREDLIBEXPORT=no
5041U_USE_GCC_VISIBILITY_ATTRIBUTE=0
5042OLD_CFLAGS="${CFLAGS}"
5043OLD_CXXFLAGS="${CXXFLAGS}"
5044if test "$ac_cv_c_compiler_gnu" = yes; then
5045    LIBCFLAGS="-fvisibility=hidden"
5046    LIBCXXFLAGS="-fvisibility=hidden"
5047    CFLAGS="${CFLAGS} ${LIBCFLAGS}"
5048    CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}"
5049    cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h.  */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h.  */
5055__attribute__ ((visibility ("default"))) void f(void);
5056#include <stdlib.h>
5057int
5058main ()
5059{
5060exit(0);
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext conftest$ac_exeext
5066if { (ac_try="$ac_link"
5067case "(($ac_try" in
5068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069  *) ac_try_echo=$ac_try;;
5070esac
5071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072$as_echo "$ac_try_echo") >&5
5073  (eval "$ac_link") 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } && {
5080	 test -z "$ac_c_werror_flag" ||
5081	 test ! -s conftest.err
5082       } && test -s conftest$ac_exeext && {
5083	 test "$cross_compiling" = yes ||
5084	 $as_test_x conftest$ac_exeext
5085       }; then
5086  SHAREDLIBEXPORT=yes
5087else
5088  $as_echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091	SHAREDLIBEXPORT=no
5092fi
5093
5094rm -rf conftest.dSYM
5095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5096      conftest$ac_exeext conftest.$ac_ext
5097    if test "$SHAREDLIBEXPORT" = no; then
5098        LIBCFLAGS=
5099        LIBCXXFLAGS=
5100    else
5101        U_USE_GCC_VISIBILITY_ATTRIBUTE=1
5102    fi
5103else
5104    case "${host}" in
5105    *-*-solaris*)
5106        LIBCFLAGS="-xldscope=hidden"
5107        LIBCXXFLAGS="-xldscope=hidden"
5108        CFLAGS="${CFLAGS} ${LIBCFLAGS}"
5109        CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}"
5110        cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h.  */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h.  */
5116__global void f(void);
5117#include <stdlib.h>
5118int
5119main ()
5120{
5121exit(0);
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (ac_try="$ac_link"
5128case "(($ac_try" in
5129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130  *) ac_try_echo=$ac_try;;
5131esac
5132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133$as_echo "$ac_try_echo") >&5
5134  (eval "$ac_link") 2>conftest.er1
5135  ac_status=$?
5136  grep -v '^ *+' conftest.er1 >conftest.err
5137  rm -f conftest.er1
5138  cat conftest.err >&5
5139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140  (exit $ac_status); } && {
5141	 test -z "$ac_c_werror_flag" ||
5142	 test ! -s conftest.err
5143       } && test -s conftest$ac_exeext && {
5144	 test "$cross_compiling" = yes ||
5145	 $as_test_x conftest$ac_exeext
5146       }; then
5147  SHAREDLIBEXPORT=yes
5148else
5149  $as_echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152	SHAREDLIBEXPORT=no
5153fi
5154
5155rm -rf conftest.dSYM
5156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5157      conftest$ac_exeext conftest.$ac_ext
5158        if test "$SHAREDLIBEXPORT" = no; then
5159            LIBCFLAGS=
5160            LIBCXXFLAGS=
5161        fi
5162        ;;
5163    *-*-hpux*)
5164        # ICU isn't set up to follow the HP syntax yet.
5165        ;;
5166    *)
5167    esac
5168fi
5169# Restore to their original state because the Intel compiler chokes
5170# on this option when checking for the wchar_t size, but the
5171# option otherwise works.
5172CFLAGS="${OLD_CFLAGS}"
5173CXXFLAGS="${OLD_CXXFLAGS}"
5174{ $as_echo "$as_me:$LINENO: result: $SHAREDLIBEXPORT" >&5
5175$as_echo "$SHAREDLIBEXPORT" >&6; }
5176
5177
5178
5179
5180if test -n "$ac_tool_prefix"; then
5181  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5182set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if test "${ac_cv_prog_RANLIB+set}" = set; then
5186  $as_echo_n "(cached) " >&6
5187else
5188  if test -n "$RANLIB"; then
5189  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194  IFS=$as_save_IFS
5195  test -z "$as_dir" && as_dir=.
5196  for ac_exec_ext in '' $ac_executable_extensions; do
5197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5199    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200    break 2
5201  fi
5202done
5203done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208RANLIB=$ac_cv_prog_RANLIB
5209if test -n "$RANLIB"; then
5210  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5211$as_echo "$RANLIB" >&6; }
5212else
5213  { $as_echo "$as_me:$LINENO: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217
5218fi
5219if test -z "$ac_cv_prog_RANLIB"; then
5220  ac_ct_RANLIB=$RANLIB
5221  # Extract the first word of "ranlib", so it can be a program name with args.
5222set dummy ranlib; ac_word=$2
5223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5224$as_echo_n "checking for $ac_word... " >&6; }
5225if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5226  $as_echo_n "(cached) " >&6
5227else
5228  if test -n "$ac_ct_RANLIB"; then
5229  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236  for ac_exec_ext in '' $ac_executable_extensions; do
5237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238    ac_cv_prog_ac_ct_RANLIB="ranlib"
5239    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243done
5244IFS=$as_save_IFS
5245
5246fi
5247fi
5248ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5249if test -n "$ac_ct_RANLIB"; then
5250  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5251$as_echo "$ac_ct_RANLIB" >&6; }
5252else
5253  { $as_echo "$as_me:$LINENO: result: no" >&5
5254$as_echo "no" >&6; }
5255fi
5256
5257  if test "x$ac_ct_RANLIB" = x; then
5258    RANLIB=":"
5259  else
5260    case $cross_compiling:$ac_tool_warned in
5261yes:)
5262{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264ac_tool_warned=yes ;;
5265esac
5266    RANLIB=$ac_ct_RANLIB
5267  fi
5268else
5269  RANLIB="$ac_cv_prog_RANLIB"
5270fi
5271
5272
5273# look for 'ar' the proper way
5274#AC_PATH_PROG(AR,ar,[echo archiver ar not found re-run configure ; false],$PATH:/bin:/usr/bin:/usr/ccs/bin)
5275if test -n "$ac_tool_prefix"; then
5276  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5277set dummy ${ac_tool_prefix}ar; ac_word=$2
5278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
5280if test "${ac_cv_prog_AR+set}" = set; then
5281  $as_echo_n "(cached) " >&6
5282else
5283  if test -n "$AR"; then
5284  ac_cv_prog_AR="$AR" # Let the user override the test.
5285else
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289  IFS=$as_save_IFS
5290  test -z "$as_dir" && as_dir=.
5291  for ac_exec_ext in '' $ac_executable_extensions; do
5292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293    ac_cv_prog_AR="${ac_tool_prefix}ar"
5294    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295    break 2
5296  fi
5297done
5298done
5299IFS=$as_save_IFS
5300
5301fi
5302fi
5303AR=$ac_cv_prog_AR
5304if test -n "$AR"; then
5305  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5306$as_echo "$AR" >&6; }
5307else
5308  { $as_echo "$as_me:$LINENO: result: no" >&5
5309$as_echo "no" >&6; }
5310fi
5311
5312
5313fi
5314if test -z "$ac_cv_prog_AR"; then
5315  ac_ct_AR=$AR
5316  # Extract the first word of "ar", so it can be a program name with args.
5317set dummy ar; ac_word=$2
5318{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5319$as_echo_n "checking for $ac_word... " >&6; }
5320if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5321  $as_echo_n "(cached) " >&6
5322else
5323  if test -n "$ac_ct_AR"; then
5324  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331  for ac_exec_ext in '' $ac_executable_extensions; do
5332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333    ac_cv_prog_ac_ct_AR="ar"
5334    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335    break 2
5336  fi
5337done
5338done
5339IFS=$as_save_IFS
5340
5341fi
5342fi
5343ac_ct_AR=$ac_cv_prog_ac_ct_AR
5344if test -n "$ac_ct_AR"; then
5345  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5346$as_echo "$ac_ct_AR" >&6; }
5347else
5348  { $as_echo "$as_me:$LINENO: result: no" >&5
5349$as_echo "no" >&6; }
5350fi
5351
5352  if test "x$ac_ct_AR" = x; then
5353    AR=""
5354  else
5355    case $cross_compiling:$ac_tool_warned in
5356yes:)
5357{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359ac_tool_warned=yes ;;
5360esac
5361    AR=$ac_ct_AR
5362  fi
5363else
5364  AR="$ac_cv_prog_AR"
5365fi
5366
5367if test "x$AR" = "x"; then
5368  { { $as_echo "$as_me:$LINENO: error: Archiver ar not found. Set AR= or fix PATH" >&5
5369$as_echo "$as_me: error: Archiver ar not found. Set AR= or fix PATH" >&2;}
5370   { (exit 1); exit 1; }; }
5371fi
5372
5373
5374{ $as_echo "$as_me:$LINENO: checking whether to enable renaming of symbols" >&5
5375$as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5376enabled=yes
5377U_DISABLE_RENAMING=0
5378# Check whether --enable-renaming was given.
5379if test "${enable_renaming+set}" = set; then
5380  enableval=$enable_renaming;  case "${enableval}" in
5381	     yes|"") enabled=yes ;;
5382	     no) enabled=no; U_DISABLE_RENAMING=1 ;;
5383	     *) ;;
5384    esac
5385fi
5386
5387{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
5388$as_echo "$enabled" >&6; }
5389
5390
5391{ $as_echo "$as_me:$LINENO: checking whether to enable function and data tracing" >&5
5392$as_echo_n "checking whether to enable function and data tracing... " >&6; }
5393enabled=no
5394U_ENABLE_TRACING=0
5395# Check whether --enable-tracing was given.
5396if test "${enable_tracing+set}" = set; then
5397  enableval=$enable_tracing;  case "${enableval}" in
5398	     yes|"") enabled=yes; U_ENABLE_TRACING=1 ;;
5399	     no) enabled=no; U_ENABLE_TRACING=0 ;;
5400	     *) ;;
5401    esac
5402fi
5403
5404{ $as_echo "$as_me:$LINENO: result: $enabled" >&5
5405$as_echo "$enabled" >&6; }
5406
5407
5408# Check whether to use the evil rpath or not
5409# Check whether --enable-rpath was given.
5410if test "${enable_rpath+set}" = set; then
5411  enableval=$enable_rpath;  case "${enableval}" in
5412	     yes|"") ENABLE_RPATH=YES ;;
5413	     no) ;;
5414	     *) ;;
5415    esac
5416else
5417  ENABLE_RPATH=NO
5418
5419fi
5420
5421
5422
5423
5424# set up U_INLINE.
5425# Copy the definition of AC_C_INLINE, with slight mods.
5426#
5427{ $as_echo "$as_me:$LINENO: checking for definition of U_INLINE for C" >&5
5428$as_echo_n "checking for definition of U_INLINE for C... " >&6; }
5429if test "${ac_cv_c_inline+set}" = set; then
5430  $as_echo_n "(cached) " >&6
5431else
5432  ac_cv_c_inline=no
5433for ac_kw in inline __inline__ __inline; do
5434  cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h.  */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h.  */
5440
5441int
5442main ()
5443{
5444return 0;} $ac_kw int foo() {
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449rm -f conftest.$ac_objext
5450if { (ac_try="$ac_compile"
5451case "(($ac_try" in
5452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453  *) ac_try_echo=$ac_try;;
5454esac
5455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5456$as_echo "$ac_try_echo") >&5
5457  (eval "$ac_compile") 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } && {
5464	 test -z "$ac_c_werror_flag" ||
5465	 test ! -s conftest.err
5466       } && test -s conftest.$ac_objext; then
5467  ac_cv_c_inline=$ac_kw; break
5468else
5469  $as_echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472
5473fi
5474
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476  done
5477
5478fi
5479{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5480$as_echo "$ac_cv_c_inline" >&6; }
5481case "$ac_cv_c_inline" in
5482      yes)       U_INLINE= "inline" ;;
5483	  no )       U_INLINE= ;;
5484	    *)       U_INLINE=$ac_cv_c_inline ;;
5485esac
5486
5487
5488# set up U_HAVE_STD_STRING.
5489# Copy the definition of AC_C_INLINE, with slight mods.
5490#
5491U_HAVE_STD_STRING=0
5492ac_ext=cpp
5493ac_cpp='$CXXCPP $CPPFLAGS'
5494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497
5498{ $as_echo "$as_me:$LINENO: checking if #include <string> works" >&5
5499$as_echo_n "checking if #include <string> works... " >&6; }
5500
5501cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h.  */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h.  */
5507#include <string>
5508int
5509main ()
5510{
5511
5512  ;
5513  return 0;
5514}
5515_ACEOF
5516rm -f conftest.$ac_objext
5517if { (ac_try="$ac_compile"
5518case "(($ac_try" in
5519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520  *) ac_try_echo=$ac_try;;
5521esac
5522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523$as_echo "$ac_try_echo") >&5
5524  (eval "$ac_compile") 2>conftest.er1
5525  ac_status=$?
5526  grep -v '^ *+' conftest.er1 >conftest.err
5527  rm -f conftest.er1
5528  cat conftest.err >&5
5529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); } && {
5531	 test -z "$ac_cxx_werror_flag" ||
5532	 test ! -s conftest.err
5533       } && test -s conftest.$ac_objext; then
5534  ac_cv_header_stdstring=yes
5535else
5536  $as_echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539	ac_cv_header_stdstring=no
5540fi
5541
5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdstring" >&5
5544$as_echo "$ac_cv_header_stdstring" >&6; }
5545if test $ac_cv_header_stdstring = yes
5546then
5547	U_HAVE_STD_STRING=1
5548fi
5549
5550ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556
5557threads=true
5558
5559# Enable/disable threads
5560# Check whether --enable-threads was given.
5561if test "${enable_threads+set}" = set; then
5562  enableval=$enable_threads; case "${enableval}" in
5563		yes) threads=true ;;
5564		no)  threads=false ;;
5565		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5
5566$as_echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;}
5567   { (exit 1); exit 1; }; } ;;
5568		esac
5569else
5570  threads=true
5571fi
5572
5573
5574if test "$threads" = true; then
5575  THREADS_TRUE=
5576else
5577  THREADS_TRUE='#'
5578fi
5579
5580ICU_USE_THREADS=0
5581OLD_LIBS=${LIBS}
5582
5583if test $threads = true; then
5584  # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5585  # and must do this before seaching for pthread_mutex_destroy, or
5586  # we will pick up libpthreads.so not libpthread.so
5587  # If this fails, then we must test for HPUX specials, before
5588  # moving on to a more generic test
5589
5590
5591{ $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
5592$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5593if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
5594  $as_echo_n "(cached) " >&6
5595else
5596  ac_check_lib_save_LIBS=$LIBS
5597LIBS="-lpthread  $LIBS"
5598cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h.  */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h.  */
5604
5605/* Override any GCC internal prototype to avoid an error.
5606   Use char because int might match the return type of a GCC
5607   builtin and then its argument prototype would still apply.  */
5608#ifdef __cplusplus
5609extern "C"
5610#endif
5611char pthread_attr_init ();
5612int
5613main ()
5614{
5615return pthread_attr_init ();
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext conftest$ac_exeext
5621if { (ac_try="$ac_link"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
5628  (eval "$ac_link") 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } && {
5635	 test -z "$ac_c_werror_flag" ||
5636	 test ! -s conftest.err
5637       } && test -s conftest$ac_exeext && {
5638	 test "$cross_compiling" = yes ||
5639	 $as_test_x conftest$ac_exeext
5640       }; then
5641  ac_cv_lib_pthread_pthread_attr_init=yes
5642else
5643  $as_echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646	ac_cv_lib_pthread_pthread_attr_init=no
5647fi
5648
5649rm -rf conftest.dSYM
5650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5651      conftest$ac_exeext conftest.$ac_ext
5652LIBS=$ac_check_lib_save_LIBS
5653fi
5654{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
5655$as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
5656if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""yes; then
5657  cat >>confdefs.h <<_ACEOF
5658#define HAVE_LIBPTHREAD 1
5659_ACEOF
5660
5661  LIBS="-lpthread $LIBS"
5662
5663fi
5664
5665  if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5666    ICU_USE_THREADS=1
5667  else
5668    # Locate the right library for POSIX threads. We look for the
5669    # symbols in the libraries first, because on Solaris libc provides
5670    # pthread_create but libpthread has the real code :(
5671    # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5672    # FreeBSD users may need libpthread if they do not have libc_r.
5673
5674
5675{ $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_destroy" >&5
5676$as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
5677if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then
5678  $as_echo_n "(cached) " >&6
5679else
5680  ac_func_search_save_LIBS="$LIBS"
5681ac_cv_search_pthread_mutex_destroy="no"
5682for i in pthread pthreads c_r ; do
5683LIBS="-l$i  $ac_func_search_save_LIBS"
5684cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h.  */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h.  */
5690
5691/* Override any GCC internal prototype to avoid an error.
5692   Use char because int might match the return type of a GCC
5693   builtin and then its argument prototype would still apply.  */
5694#ifdef __cplusplus
5695extern "C"
5696#endif
5697char pthread_mutex_destroy ();
5698int
5699main ()
5700{
5701return pthread_mutex_destroy ();
5702  ;
5703  return 0;
5704}
5705_ACEOF
5706rm -f conftest.$ac_objext conftest$ac_exeext
5707if { (ac_try="$ac_link"
5708case "(($ac_try" in
5709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710  *) ac_try_echo=$ac_try;;
5711esac
5712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713$as_echo "$ac_try_echo") >&5
5714  (eval "$ac_link") 2>conftest.er1
5715  ac_status=$?
5716  grep -v '^ *+' conftest.er1 >conftest.err
5717  rm -f conftest.er1
5718  cat conftest.err >&5
5719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } && {
5721	 test -z "$ac_c_werror_flag" ||
5722	 test ! -s conftest.err
5723       } && test -s conftest$ac_exeext && {
5724	 test "$cross_compiling" = yes ||
5725	 $as_test_x conftest$ac_exeext
5726       }; then
5727  ac_cv_search_pthread_mutex_destroy="-l$i"
5728break
5729else
5730  $as_echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733
5734fi
5735
5736rm -rf conftest.dSYM
5737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5738      conftest$ac_exeext conftest.$ac_ext
5739done
5740if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
5741cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h.  */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h.  */
5747
5748/* Override any GCC internal prototype to avoid an error.
5749   Use char because int might match the return type of a GCC
5750   builtin and then its argument prototype would still apply.  */
5751#ifdef __cplusplus
5752extern "C"
5753#endif
5754char pthread_mutex_destroy ();
5755int
5756main ()
5757{
5758return pthread_mutex_destroy ();
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext
5764if { (ac_try="$ac_link"
5765case "(($ac_try" in
5766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767  *) ac_try_echo=$ac_try;;
5768esac
5769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5770$as_echo "$ac_try_echo") >&5
5771  (eval "$ac_link") 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } && {
5778	 test -z "$ac_c_werror_flag" ||
5779	 test ! -s conftest.err
5780       } && test -s conftest$ac_exeext && {
5781	 test "$cross_compiling" = yes ||
5782	 $as_test_x conftest$ac_exeext
5783       }; then
5784  ac_cv_search_pthread_mutex_destroy="none required"
5785else
5786  $as_echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789
5790fi
5791
5792rm -rf conftest.dSYM
5793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794      conftest$ac_exeext conftest.$ac_ext
5795fi
5796LIBS="$ac_func_search_save_LIBS"
5797fi
5798{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_destroy" >&5
5799$as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
5800if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5801  test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
5802
5803else :
5804
5805fi
5806
5807    if test "$ac_cv_search_pthread_mutex_destroy" != no; then
5808      ICU_USE_THREADS=1
5809    else
5810      # For HP 11
5811
5812{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
5813$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5814if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
5815  $as_echo_n "(cached) " >&6
5816else
5817  ac_check_lib_save_LIBS=$LIBS
5818LIBS="-lpthread  $LIBS"
5819cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h.  */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h.  */
5825
5826/* Override any GCC internal prototype to avoid an error.
5827   Use char because int might match the return type of a GCC
5828   builtin and then its argument prototype would still apply.  */
5829#ifdef __cplusplus
5830extern "C"
5831#endif
5832char pthread_mutex_init ();
5833int
5834main ()
5835{
5836return pthread_mutex_init ();
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext conftest$ac_exeext
5842if { (ac_try="$ac_link"
5843case "(($ac_try" in
5844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845  *) ac_try_echo=$ac_try;;
5846esac
5847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5848$as_echo "$ac_try_echo") >&5
5849  (eval "$ac_link") 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } && {
5856	 test -z "$ac_c_werror_flag" ||
5857	 test ! -s conftest.err
5858       } && test -s conftest$ac_exeext && {
5859	 test "$cross_compiling" = yes ||
5860	 $as_test_x conftest$ac_exeext
5861       }; then
5862  ac_cv_lib_pthread_pthread_mutex_init=yes
5863else
5864  $as_echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867	ac_cv_lib_pthread_pthread_mutex_init=no
5868fi
5869
5870rm -rf conftest.dSYM
5871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872      conftest$ac_exeext conftest.$ac_ext
5873LIBS=$ac_check_lib_save_LIBS
5874fi
5875{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5876$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5877if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then
5878  cat >>confdefs.h <<_ACEOF
5879#define HAVE_LIBPTHREAD 1
5880_ACEOF
5881
5882  LIBS="-lpthread $LIBS"
5883
5884fi
5885
5886      if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
5887        ICU_USE_THREADS=1
5888      fi
5889    fi
5890
5891    { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5
5892$as_echo_n "checking for pthread_mutex_lock... " >&6; }
5893if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then
5894  $as_echo_n "(cached) " >&6
5895else
5896  cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h.  */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h.  */
5902/* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock.
5903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5904#define pthread_mutex_lock innocuous_pthread_mutex_lock
5905
5906/* System header to define __stub macros and hopefully few prototypes,
5907    which can conflict with char pthread_mutex_lock (); below.
5908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909    <limits.h> exists even on freestanding compilers.  */
5910
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
5916
5917#undef pthread_mutex_lock
5918
5919/* Override any GCC internal prototype to avoid an error.
5920   Use char because int might match the return type of a GCC
5921   builtin and then its argument prototype would still apply.  */
5922#ifdef __cplusplus
5923extern "C"
5924#endif
5925char pthread_mutex_lock ();
5926/* The GNU C library defines this for functions which it implements
5927    to always fail with ENOSYS.  Some functions are actually named
5928    something starting with __ and the normal name is an alias.  */
5929#if defined __stub_pthread_mutex_lock || defined __stub___pthread_mutex_lock
5930choke me
5931#endif
5932
5933int
5934main ()
5935{
5936return pthread_mutex_lock ();
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext conftest$ac_exeext
5942if { (ac_try="$ac_link"
5943case "(($ac_try" in
5944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945  *) ac_try_echo=$ac_try;;
5946esac
5947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5948$as_echo "$ac_try_echo") >&5
5949  (eval "$ac_link") 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } && {
5956	 test -z "$ac_c_werror_flag" ||
5957	 test ! -s conftest.err
5958       } && test -s conftest$ac_exeext && {
5959	 test "$cross_compiling" = yes ||
5960	 $as_test_x conftest$ac_exeext
5961       }; then
5962  ac_cv_func_pthread_mutex_lock=yes
5963else
5964  $as_echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967	ac_cv_func_pthread_mutex_lock=no
5968fi
5969
5970rm -rf conftest.dSYM
5971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5972      conftest$ac_exeext conftest.$ac_ext
5973fi
5974{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5
5975$as_echo "$ac_cv_func_pthread_mutex_lock" >&6; }
5976
5977
5978    if test $ac_cv_func_pthread_mutex_lock = yes; then
5979      ICU_USE_THREADS=1
5980    fi
5981  fi
5982  # Check to see if we are using CygWin with MSVC
5983  case "${host}" in
5984  *-pc-cygwin*|*-pc-mingw*)
5985    # For gcc, the thread options are set by mh-mingw/mh-cygwin
5986    ICU_USE_THREADS=1
5987    if test "$ac_cv_c_compiler_gnu" = no; then
5988      # We're using normal windows compilers. Threading is available.
5989      ICU_USE_THREADS=1
5990      if test $ENABLE_DEBUG = 1; then
5991        # /MDd means 'compiles and links a debugable multithreaded program with DLL'
5992        CFLAGS="${CFLAGS} /MDd"
5993        CXXFLAGS="${CXXFLAGS} /MDd"
5994      else
5995        # /MD means 'compiles and links a multithreaded program with DLL'
5996        CFLAGS="${CFLAGS} /MD"
5997        CXXFLAGS="${CXXFLAGS} /MD"
5998      fi
5999    fi ;;
6000  *-*-hpux*)
6001    # Add -mt because it does several nice things on newer compilers.
6002    case "${icu_cv_host_frag}" in
6003      mh-hpux-acc)
6004        OLD_CXXFLAGS="${CXXFLAGS}"
6005        CXXFLAGS="${CXXFLAGS} -mt"
6006        if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
6007           CXXFLAGS="${OLD_CXXFLAGS}"
6008       fi
6009      ;;
6010    esac
6011    ;;
6012  esac
6013fi
6014
6015
6016
6017# Check whether --enable-weak-threads was given.
6018if test "${enable_weak_threads+set}" = set; then
6019  enableval=$enable_weak_threads; case "${enableval}" in
6020		yes)
6021            LIB_THREAD="${LIBS%${OLD_LIBS}}"
6022            LIBS=${OLD_LIBS}
6023            ;;
6024		no)  ;;
6025		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-weak-threads" >&5
6026$as_echo "$as_me: error: bad value ${enableval} for --enable-weak-threads" >&2;}
6027   { (exit 1); exit 1; }; } ;;
6028		esac
6029fi
6030
6031
6032
6033# Check for mmap()
6034
6035# The AC_FUNC_MMAP macro doesn't work properly.  It seems to be too specific.
6036# Do this check instead.
6037HAVE_MMAP=0
6038{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
6039$as_echo_n "checking for mmap... " >&6; }
6040if test "${ac_cv_func_mmap_ok+set}" = set; then
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h.  */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h.  */
6049#include <unistd.h>
6050#include <sys/mman.h>
6051#include <sys/stat.h>
6052#include <fcntl.h>
6053int
6054main ()
6055{
6056mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext conftest$ac_exeext
6062if { (ac_try="$ac_link"
6063case "(($ac_try" in
6064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065  *) ac_try_echo=$ac_try;;
6066esac
6067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068$as_echo "$ac_try_echo") >&5
6069  (eval "$ac_link") 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } && {
6076	 test -z "$ac_c_werror_flag" ||
6077	 test ! -s conftest.err
6078       } && test -s conftest$ac_exeext && {
6079	 test "$cross_compiling" = yes ||
6080	 $as_test_x conftest$ac_exeext
6081       }; then
6082  ac_cv_func_mmap_ok=yes
6083else
6084  $as_echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087	ac_cv_func_mmap_ok=no
6088fi
6089
6090rm -rf conftest.dSYM
6091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092      conftest$ac_exeext conftest.$ac_ext
6093fi
6094
6095{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_ok" >&5
6096$as_echo "$ac_cv_func_mmap_ok" >&6; }
6097if test $ac_cv_func_mmap_ok = yes
6098then
6099    HAVE_MMAP=1
6100fi
6101
6102
6103{ $as_echo "$as_me:$LINENO: checking for genccode assembly" >&5
6104$as_echo_n "checking for genccode assembly... " >&6; }
6105
6106# Check to see if genccode can generate simple assembly.
6107GENCCODE_ASSEMBLY=
6108case "${host}" in
6109i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu)
6110    if test "$GCC" = yes; then
6111        # We're using gcc, and the simple -a gcc command line works for genccode
6112        GENCCODE_ASSEMBLY="-a gcc"
6113    fi ;;
6114i*86-*-solaris*)
6115    if test "$GCC" = yes; then
6116        # When using gcc, look if we're also using GNU as.
6117        # When using GNU as, the simple -a gcc command line works for genccode.
6118        asv=`"${CC}" -print-prog-name=as 2>/dev/null`
6119        asv=`"${asv}" --version 2>/dev/null`
6120        case "X${asv}" in
6121        X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
6122        X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
6123        esac
6124        unset asv
6125    else
6126        GENCCODE_ASSEMBLY="-a sun-x86"
6127    fi ;;
6128sparc-*-solaris*)
6129    GENCCODE_ASSEMBLY="-a sun"
6130    ;;
6131ia64-*-hpux*)
6132    GENCCODE_ASSEMBLY="-a aCC-ia64"
6133    ;;
6134esac
6135
6136
6137{ $as_echo "$as_me:$LINENO: result: $GENCCODE_ASSEMBLY" >&5
6138$as_echo "$GENCCODE_ASSEMBLY" >&6; }
6139
6140# Checks for header files
6141
6142{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6143$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6144if test "${ac_cv_path_GREP+set}" = set; then
6145  $as_echo_n "(cached) " >&6
6146else
6147  if test -z "$GREP"; then
6148  ac_path_GREP_found=false
6149  # Loop through the user's path and test for each of PROGNAME-LIST
6150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152do
6153  IFS=$as_save_IFS
6154  test -z "$as_dir" && as_dir=.
6155  for ac_prog in grep ggrep; do
6156    for ac_exec_ext in '' $ac_executable_extensions; do
6157      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6158      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6159# Check for GNU ac_path_GREP and select it if it is found.
6160  # Check for GNU $ac_path_GREP
6161case `"$ac_path_GREP" --version 2>&1` in
6162*GNU*)
6163  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6164*)
6165  ac_count=0
6166  $as_echo_n 0123456789 >"conftest.in"
6167  while :
6168  do
6169    cat "conftest.in" "conftest.in" >"conftest.tmp"
6170    mv "conftest.tmp" "conftest.in"
6171    cp "conftest.in" "conftest.nl"
6172    $as_echo 'GREP' >> "conftest.nl"
6173    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175    ac_count=`expr $ac_count + 1`
6176    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6177      # Best one so far, save it but keep looking for a better one
6178      ac_cv_path_GREP="$ac_path_GREP"
6179      ac_path_GREP_max=$ac_count
6180    fi
6181    # 10*(2^10) chars as input seems more than enough
6182    test $ac_count -gt 10 && break
6183  done
6184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185esac
6186
6187      $ac_path_GREP_found && break 3
6188    done
6189  done
6190done
6191IFS=$as_save_IFS
6192  if test -z "$ac_cv_path_GREP"; then
6193    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6194$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6195   { (exit 1); exit 1; }; }
6196  fi
6197else
6198  ac_cv_path_GREP=$GREP
6199fi
6200
6201fi
6202{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6203$as_echo "$ac_cv_path_GREP" >&6; }
6204 GREP="$ac_cv_path_GREP"
6205
6206
6207{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
6208$as_echo_n "checking for egrep... " >&6; }
6209if test "${ac_cv_path_EGREP+set}" = set; then
6210  $as_echo_n "(cached) " >&6
6211else
6212  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6213   then ac_cv_path_EGREP="$GREP -E"
6214   else
6215     if test -z "$EGREP"; then
6216  ac_path_EGREP_found=false
6217  # Loop through the user's path and test for each of PROGNAME-LIST
6218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223  for ac_prog in egrep; do
6224    for ac_exec_ext in '' $ac_executable_extensions; do
6225      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6226      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6227# Check for GNU ac_path_EGREP and select it if it is found.
6228  # Check for GNU $ac_path_EGREP
6229case `"$ac_path_EGREP" --version 2>&1` in
6230*GNU*)
6231  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6232*)
6233  ac_count=0
6234  $as_echo_n 0123456789 >"conftest.in"
6235  while :
6236  do
6237    cat "conftest.in" "conftest.in" >"conftest.tmp"
6238    mv "conftest.tmp" "conftest.in"
6239    cp "conftest.in" "conftest.nl"
6240    $as_echo 'EGREP' >> "conftest.nl"
6241    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6242    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6243    ac_count=`expr $ac_count + 1`
6244    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6245      # Best one so far, save it but keep looking for a better one
6246      ac_cv_path_EGREP="$ac_path_EGREP"
6247      ac_path_EGREP_max=$ac_count
6248    fi
6249    # 10*(2^10) chars as input seems more than enough
6250    test $ac_count -gt 10 && break
6251  done
6252  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6253esac
6254
6255      $ac_path_EGREP_found && break 3
6256    done
6257  done
6258done
6259IFS=$as_save_IFS
6260  if test -z "$ac_cv_path_EGREP"; then
6261    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6262$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6263   { (exit 1); exit 1; }; }
6264  fi
6265else
6266  ac_cv_path_EGREP=$EGREP
6267fi
6268
6269   fi
6270fi
6271{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6272$as_echo "$ac_cv_path_EGREP" >&6; }
6273 EGREP="$ac_cv_path_EGREP"
6274
6275
6276{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277$as_echo_n "checking for ANSI C header files... " >&6; }
6278if test "${ac_cv_header_stdc+set}" = set; then
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h.  */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h.  */
6287#include <stdlib.h>
6288#include <stdarg.h>
6289#include <string.h>
6290#include <float.h>
6291
6292int
6293main ()
6294{
6295
6296  ;
6297  return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (ac_try="$ac_compile"
6302case "(($ac_try" in
6303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304  *) ac_try_echo=$ac_try;;
6305esac
6306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307$as_echo "$ac_try_echo") >&5
6308  (eval "$ac_compile") 2>conftest.er1
6309  ac_status=$?
6310  grep -v '^ *+' conftest.er1 >conftest.err
6311  rm -f conftest.er1
6312  cat conftest.err >&5
6313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); } && {
6315	 test -z "$ac_c_werror_flag" ||
6316	 test ! -s conftest.err
6317       } && test -s conftest.$ac_objext; then
6318  ac_cv_header_stdc=yes
6319else
6320  $as_echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323	ac_cv_header_stdc=no
6324fi
6325
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327
6328if test $ac_cv_header_stdc = yes; then
6329  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6330  cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h.  */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h.  */
6336#include <string.h>
6337
6338_ACEOF
6339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340  $EGREP "memchr" >/dev/null 2>&1; then
6341  :
6342else
6343  ac_cv_header_stdc=no
6344fi
6345rm -f conftest*
6346
6347fi
6348
6349if test $ac_cv_header_stdc = yes; then
6350  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6351  cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357#include <stdlib.h>
6358
6359_ACEOF
6360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361  $EGREP "free" >/dev/null 2>&1; then
6362  :
6363else
6364  ac_cv_header_stdc=no
6365fi
6366rm -f conftest*
6367
6368fi
6369
6370if test $ac_cv_header_stdc = yes; then
6371  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6372  if test "$cross_compiling" = yes; then
6373  :
6374else
6375  cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h.  */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h.  */
6381#include <ctype.h>
6382#include <stdlib.h>
6383#if ((' ' & 0x0FF) == 0x020)
6384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6386#else
6387# define ISLOWER(c) \
6388		   (('a' <= (c) && (c) <= 'i') \
6389		     || ('j' <= (c) && (c) <= 'r') \
6390		     || ('s' <= (c) && (c) <= 'z'))
6391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6392#endif
6393
6394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6395int
6396main ()
6397{
6398  int i;
6399  for (i = 0; i < 256; i++)
6400    if (XOR (islower (i), ISLOWER (i))
6401	|| toupper (i) != TOUPPER (i))
6402      return 2;
6403  return 0;
6404}
6405_ACEOF
6406rm -f conftest$ac_exeext
6407if { (ac_try="$ac_link"
6408case "(($ac_try" in
6409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410  *) ac_try_echo=$ac_try;;
6411esac
6412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6413$as_echo "$ac_try_echo") >&5
6414  (eval "$ac_link") 2>&5
6415  ac_status=$?
6416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6418  { (case "(($ac_try" in
6419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420  *) ac_try_echo=$ac_try;;
6421esac
6422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6423$as_echo "$ac_try_echo") >&5
6424  (eval "$ac_try") 2>&5
6425  ac_status=$?
6426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); }; }; then
6428  :
6429else
6430  $as_echo "$as_me: program exited with status $ac_status" >&5
6431$as_echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434( exit $ac_status )
6435ac_cv_header_stdc=no
6436fi
6437rm -rf conftest.dSYM
6438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6439fi
6440
6441
6442fi
6443fi
6444{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6445$as_echo "$ac_cv_header_stdc" >&6; }
6446if test $ac_cv_header_stdc = yes; then
6447
6448cat >>confdefs.h <<\_ACEOF
6449#define STDC_HEADERS 1
6450_ACEOF
6451
6452fi
6453
6454# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6465		  inttypes.h stdint.h unistd.h
6466do
6467as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6469$as_echo_n "checking for $ac_header... " >&6; }
6470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h.  */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h.  */
6479$ac_includes_default
6480
6481#include <$ac_header>
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (ac_try="$ac_compile"
6485case "(($ac_try" in
6486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487  *) ac_try_echo=$ac_try;;
6488esac
6489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490$as_echo "$ac_try_echo") >&5
6491  (eval "$ac_compile") 2>conftest.er1
6492  ac_status=$?
6493  grep -v '^ *+' conftest.er1 >conftest.err
6494  rm -f conftest.er1
6495  cat conftest.err >&5
6496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); } && {
6498	 test -z "$ac_c_werror_flag" ||
6499	 test ! -s conftest.err
6500       } && test -s conftest.$ac_objext; then
6501  eval "$as_ac_Header=yes"
6502else
6503  $as_echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506	eval "$as_ac_Header=no"
6507fi
6508
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510fi
6511ac_res=`eval 'as_val=${'$as_ac_Header'}
6512		 $as_echo "$as_val"'`
6513	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6514$as_echo "$ac_res" >&6; }
6515as_val=`eval 'as_val=${'$as_ac_Header'}
6516		 $as_echo "$as_val"'`
6517   if test "x$as_val" = x""yes; then
6518  cat >>confdefs.h <<_ACEOF
6519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6520_ACEOF
6521
6522fi
6523
6524done
6525
6526
6527
6528for ac_header in inttypes.h
6529do
6530as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6532  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6533$as_echo_n "checking for $ac_header... " >&6; }
6534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535  $as_echo_n "(cached) " >&6
6536fi
6537ac_res=`eval 'as_val=${'$as_ac_Header'}
6538		 $as_echo "$as_val"'`
6539	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6540$as_echo "$ac_res" >&6; }
6541else
6542  # Is the header compilable?
6543{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544$as_echo_n "checking $ac_header usability... " >&6; }
6545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h.  */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h.  */
6551$ac_includes_default
6552#include <$ac_header>
6553_ACEOF
6554rm -f conftest.$ac_objext
6555if { (ac_try="$ac_compile"
6556case "(($ac_try" in
6557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558  *) ac_try_echo=$ac_try;;
6559esac
6560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561$as_echo "$ac_try_echo") >&5
6562  (eval "$ac_compile") 2>conftest.er1
6563  ac_status=$?
6564  grep -v '^ *+' conftest.er1 >conftest.err
6565  rm -f conftest.er1
6566  cat conftest.err >&5
6567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); } && {
6569	 test -z "$ac_c_werror_flag" ||
6570	 test ! -s conftest.err
6571       } && test -s conftest.$ac_objext; then
6572  ac_header_compiler=yes
6573else
6574  $as_echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577	ac_header_compiler=no
6578fi
6579
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6582$as_echo "$ac_header_compiler" >&6; }
6583
6584# Is the header present?
6585{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6586$as_echo_n "checking $ac_header presence... " >&6; }
6587cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593#include <$ac_header>
6594_ACEOF
6595if { (ac_try="$ac_cpp conftest.$ac_ext"
6596case "(($ac_try" in
6597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598  *) ac_try_echo=$ac_try;;
6599esac
6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601$as_echo "$ac_try_echo") >&5
6602  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } >/dev/null && {
6609	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610	 test ! -s conftest.err
6611       }; then
6612  ac_header_preproc=yes
6613else
6614  $as_echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617  ac_header_preproc=no
6618fi
6619
6620rm -f conftest.err conftest.$ac_ext
6621{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622$as_echo "$ac_header_preproc" >&6; }
6623
6624# So?  What about this header?
6625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6626  yes:no: )
6627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631    ac_header_preproc=yes
6632    ;;
6633  no:yes:* )
6634    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6637$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6638    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6641$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6642    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646
6647    ;;
6648esac
6649{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6650$as_echo_n "checking for $ac_header... " >&6; }
6651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652  $as_echo_n "(cached) " >&6
6653else
6654  eval "$as_ac_Header=\$ac_header_preproc"
6655fi
6656ac_res=`eval 'as_val=${'$as_ac_Header'}
6657		 $as_echo "$as_val"'`
6658	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6659$as_echo "$ac_res" >&6; }
6660
6661fi
6662as_val=`eval 'as_val=${'$as_ac_Header'}
6663		 $as_echo "$as_val"'`
6664   if test "x$as_val" = x""yes; then
6665  cat >>confdefs.h <<_ACEOF
6666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667_ACEOF
6668
6669fi
6670
6671done
6672
6673if test $ac_cv_header_inttypes_h = no; then
6674 U_HAVE_INTTYPES_H=0
6675else
6676 U_HAVE_INTTYPES_H=1
6677fi
6678if test "$CC" = ccc; then
6679 { $as_echo "$as_me:$LINENO: result: \"C compiler set to CCC ${CC}\" " >&5
6680$as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6681 case "${host}" in
6682        alpha*-*-*) U_HAVE_INTTYPES_H=0;
6683 esac
6684fi
6685
6686
6687
6688
6689for ac_header in dirent.h
6690do
6691as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6693  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6694$as_echo_n "checking for $ac_header... " >&6; }
6695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6696  $as_echo_n "(cached) " >&6
6697fi
6698ac_res=`eval 'as_val=${'$as_ac_Header'}
6699		 $as_echo "$as_val"'`
6700	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6701$as_echo "$ac_res" >&6; }
6702else
6703  # Is the header compilable?
6704{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705$as_echo_n "checking $ac_header usability... " >&6; }
6706cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h.  */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h.  */
6712$ac_includes_default
6713#include <$ac_header>
6714_ACEOF
6715rm -f conftest.$ac_objext
6716if { (ac_try="$ac_compile"
6717case "(($ac_try" in
6718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719  *) ac_try_echo=$ac_try;;
6720esac
6721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6722$as_echo "$ac_try_echo") >&5
6723  (eval "$ac_compile") 2>conftest.er1
6724  ac_status=$?
6725  grep -v '^ *+' conftest.er1 >conftest.err
6726  rm -f conftest.er1
6727  cat conftest.err >&5
6728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); } && {
6730	 test -z "$ac_c_werror_flag" ||
6731	 test ! -s conftest.err
6732       } && test -s conftest.$ac_objext; then
6733  ac_header_compiler=yes
6734else
6735  $as_echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738	ac_header_compiler=no
6739fi
6740
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6743$as_echo "$ac_header_compiler" >&6; }
6744
6745# Is the header present?
6746{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6747$as_echo_n "checking $ac_header presence... " >&6; }
6748cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#include <$ac_header>
6755_ACEOF
6756if { (ac_try="$ac_cpp conftest.$ac_ext"
6757case "(($ac_try" in
6758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759  *) ac_try_echo=$ac_try;;
6760esac
6761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6762$as_echo "$ac_try_echo") >&5
6763  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6764  ac_status=$?
6765  grep -v '^ *+' conftest.er1 >conftest.err
6766  rm -f conftest.er1
6767  cat conftest.err >&5
6768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); } >/dev/null && {
6770	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6771	 test ! -s conftest.err
6772       }; then
6773  ac_header_preproc=yes
6774else
6775  $as_echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778  ac_header_preproc=no
6779fi
6780
6781rm -f conftest.err conftest.$ac_ext
6782{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6783$as_echo "$ac_header_preproc" >&6; }
6784
6785# So?  What about this header?
6786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6787  yes:no: )
6788    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6789$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6790    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6791$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6792    ac_header_preproc=yes
6793    ;;
6794  no:yes:* )
6795    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6796$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6797    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6798$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6799    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6800$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6801    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6802$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6803    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6804$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6805    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6806$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6807
6808    ;;
6809esac
6810{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6811$as_echo_n "checking for $ac_header... " >&6; }
6812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813  $as_echo_n "(cached) " >&6
6814else
6815  eval "$as_ac_Header=\$ac_header_preproc"
6816fi
6817ac_res=`eval 'as_val=${'$as_ac_Header'}
6818		 $as_echo "$as_val"'`
6819	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6820$as_echo "$ac_res" >&6; }
6821
6822fi
6823as_val=`eval 'as_val=${'$as_ac_Header'}
6824		 $as_echo "$as_val"'`
6825   if test "x$as_val" = x""yes; then
6826  cat >>confdefs.h <<_ACEOF
6827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6828_ACEOF
6829
6830fi
6831
6832done
6833
6834if test $ac_cv_header_dirent_h = no; then
6835 U_HAVE_DIRENT_H=0
6836else
6837 U_HAVE_DIRENT_H=1
6838fi
6839
6840
6841
6842
6843
6844# Check whether --with-iostream was given.
6845if test "${with_iostream+set}" = set; then
6846  withval=$with_iostream; case "${withval}" in
6847		none) streams=none ;;
6848		old) streams=198506 ;;
6849		std) streams=199711 ;;
6850		auto) streams= ;;
6851		*) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-iostream" >&5
6852$as_echo "$as_me: error: bad value ${withval} for --with-iostream" >&2;}
6853   { (exit 1); exit 1; }; } ;;
6854		esac
6855else
6856  streams=
6857fi
6858
6859
6860U_IOSTREAM_SOURCE=0
6861if test x$streams != xnone
6862then
6863    ac_ext=cpp
6864ac_cpp='$CXXCPP $CPPFLAGS'
6865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6868
6869    OLD_CXXFLAGS="${CXXFLAGS}"
6870    case "${icu_cv_host_frag}" in
6871        mh-hpux-acc)
6872            CXXFLAGS="${CXXFLAGS} -AA"
6873        ;;
6874    esac
6875    { $as_echo "$as_me:$LINENO: checking for iostream usability" >&5
6876$as_echo_n "checking for iostream usability... " >&6; }
6877    cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h.  */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h.  */
6883#include <iostream>
6884int
6885main ()
6886{
6887
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext
6893if { (ac_try="$ac_compile"
6894case "(($ac_try" in
6895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896  *) ac_try_echo=$ac_try;;
6897esac
6898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899$as_echo "$ac_try_echo") >&5
6900  (eval "$ac_compile") 2>conftest.er1
6901  ac_status=$?
6902  grep -v '^ *+' conftest.er1 >conftest.err
6903  rm -f conftest.er1
6904  cat conftest.err >&5
6905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906  (exit $ac_status); } && {
6907	 test -z "$ac_cxx_werror_flag" ||
6908	 test ! -s conftest.err
6909       } && test -s conftest.$ac_objext; then
6910  ac_cv_header_iostream=yes
6911else
6912  $as_echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915	ac_cv_header_iostream=no
6916fi
6917
6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919    if test $icu_cv_host_frag = mh-cygwin-msvc
6920    then
6921        # <iostream> is always there on Windows.
6922        # We do this to prevent the C++ preprocessor from being used because
6923        # autoconf can't deal with the Windows C++ preprocessor
6924        ac_cv_header_iostream=yes
6925    fi
6926    { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
6927$as_echo "$ac_cv_header_iostream" >&6; }
6928    if test $ac_cv_header_iostream = yes
6929    then
6930        U_IOSTREAM_SOURCE=199711
6931    else
6932        CXXFLAGS="${OLD_CXXFLAGS}"
6933        { $as_echo "$as_me:$LINENO: checking whether ostream in iostream.h is really defined" >&5
6934$as_echo_n "checking whether ostream in iostream.h is really defined... " >&6; }
6935        if test "${ac_cv_iostream_ok+set}" = set; then
6936  $as_echo_n "(cached) " >&6
6937else
6938  cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h.  */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h.  */
6944#include <iostream.h>
6945int
6946main ()
6947{
6948ostream &testout = cout; testout << "test" << endl;
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953rm -f conftest.$ac_objext conftest$ac_exeext
6954if { (ac_try="$ac_link"
6955case "(($ac_try" in
6956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957  *) ac_try_echo=$ac_try;;
6958esac
6959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960$as_echo "$ac_try_echo") >&5
6961  (eval "$ac_link") 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } && {
6968	 test -z "$ac_cxx_werror_flag" ||
6969	 test ! -s conftest.err
6970       } && test -s conftest$ac_exeext && {
6971	 test "$cross_compiling" = yes ||
6972	 $as_test_x conftest$ac_exeext
6973       }; then
6974  ac_cv_iostream_ok=yes
6975else
6976  $as_echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979	ac_cv_iostream_ok=no
6980fi
6981
6982rm -rf conftest.dSYM
6983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984      conftest$ac_exeext conftest.$ac_ext
6985fi
6986
6987        { $as_echo "$as_me:$LINENO: result: $ac_cv_iostream_ok" >&5
6988$as_echo "$ac_cv_iostream_ok" >&6; }
6989        if test $ac_cv_iostream_ok = yes
6990        then
6991            U_IOSTREAM_SOURCE=198506
6992        fi
6993    fi
6994    if test x$streams != x
6995    then
6996        if test $U_IOSTREAM_SOURCE -ge $streams
6997        then
6998            U_IOSTREAM_SOURCE=$streams
6999            case "${icu_cv_host_frag}" in
7000                mh-hpux-acc)
7001                    if test $U_IOSTREAM_SOURCE -lt 199711; then
7002                        CXXFLAGS=${OLD_CXXFLAGS}
7003                    fi
7004                ;;
7005            esac
7006        else
7007            { { $as_echo "$as_me:$LINENO: error: ${withval} iostream is not available" >&5
7008$as_echo "$as_me: error: ${withval} iostream is not available" >&2;}
7009   { (exit 1); exit 1; }; }
7010        fi
7011    fi
7012fi
7013
7014ac_ext=c
7015ac_cpp='$CPP $CPPFLAGS'
7016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020
7021# Check for endianness
7022
7023 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7024$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7025if test "${ac_cv_c_bigendian+set}" = set; then
7026  $as_echo_n "(cached) " >&6
7027else
7028  ac_cv_c_bigendian=unknown
7029    # See if we're dealing with a universal compiler.
7030    cat >conftest.$ac_ext <<_ACEOF
7031/* confdefs.h.  */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h.  */
7036#ifndef __APPLE_CC__
7037	       not a universal capable compiler
7038	     #endif
7039	     typedef int dummy;
7040
7041_ACEOF
7042rm -f conftest.$ac_objext
7043if { (ac_try="$ac_compile"
7044case "(($ac_try" in
7045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046  *) ac_try_echo=$ac_try;;
7047esac
7048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7049$as_echo "$ac_try_echo") >&5
7050  (eval "$ac_compile") 2>conftest.er1
7051  ac_status=$?
7052  grep -v '^ *+' conftest.er1 >conftest.err
7053  rm -f conftest.er1
7054  cat conftest.err >&5
7055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); } && {
7057	 test -z "$ac_c_werror_flag" ||
7058	 test ! -s conftest.err
7059       } && test -s conftest.$ac_objext; then
7060
7061	# Check for potential -arch flags.  It is not universal unless
7062	# there are some -arch flags.  Note that *ppc* also matches
7063	# ppc64.  This check is also rather less than ideal.
7064	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
7065	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
7066	esac
7067else
7068  $as_echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071
7072fi
7073
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075    if test $ac_cv_c_bigendian = unknown; then
7076      # See if sys/param.h defines the BYTE_ORDER macro.
7077      cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h.  */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h.  */
7083#include <sys/types.h>
7084	     #include <sys/param.h>
7085
7086int
7087main ()
7088{
7089#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7090		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7091		     && LITTLE_ENDIAN)
7092	      bogus endian macros
7093	     #endif
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext
7100if { (ac_try="$ac_compile"
7101case "(($ac_try" in
7102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103  *) ac_try_echo=$ac_try;;
7104esac
7105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106$as_echo "$ac_try_echo") >&5
7107  (eval "$ac_compile") 2>conftest.er1
7108  ac_status=$?
7109  grep -v '^ *+' conftest.er1 >conftest.err
7110  rm -f conftest.er1
7111  cat conftest.err >&5
7112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); } && {
7114	 test -z "$ac_c_werror_flag" ||
7115	 test ! -s conftest.err
7116       } && test -s conftest.$ac_objext; then
7117  # It does; now see whether it defined to BIG_ENDIAN or not.
7118	 cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h.  */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h.  */
7124#include <sys/types.h>
7125		#include <sys/param.h>
7126
7127int
7128main ()
7129{
7130#if BYTE_ORDER != BIG_ENDIAN
7131		 not big endian
7132		#endif
7133
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
7139if { (ac_try="$ac_compile"
7140case "(($ac_try" in
7141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142  *) ac_try_echo=$ac_try;;
7143esac
7144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145$as_echo "$ac_try_echo") >&5
7146  (eval "$ac_compile") 2>conftest.er1
7147  ac_status=$?
7148  grep -v '^ *+' conftest.er1 >conftest.err
7149  rm -f conftest.er1
7150  cat conftest.err >&5
7151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); } && {
7153	 test -z "$ac_c_werror_flag" ||
7154	 test ! -s conftest.err
7155       } && test -s conftest.$ac_objext; then
7156  ac_cv_c_bigendian=yes
7157else
7158  $as_echo "$as_me: failed program was:" >&5
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
7161	ac_cv_c_bigendian=no
7162fi
7163
7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165else
7166  $as_echo "$as_me: failed program was:" >&5
7167sed 's/^/| /' conftest.$ac_ext >&5
7168
7169
7170fi
7171
7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173    fi
7174    if test $ac_cv_c_bigendian = unknown; then
7175      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7176      cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h.  */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h.  */
7182#include <limits.h>
7183
7184int
7185main ()
7186{
7187#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7188	      bogus endian macros
7189	     #endif
7190
7191  ;
7192  return 0;
7193}
7194_ACEOF
7195rm -f conftest.$ac_objext
7196if { (ac_try="$ac_compile"
7197case "(($ac_try" in
7198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199  *) ac_try_echo=$ac_try;;
7200esac
7201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202$as_echo "$ac_try_echo") >&5
7203  (eval "$ac_compile") 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } && {
7210	 test -z "$ac_c_werror_flag" ||
7211	 test ! -s conftest.err
7212       } && test -s conftest.$ac_objext; then
7213  # It does; now see whether it defined to _BIG_ENDIAN or not.
7214	 cat >conftest.$ac_ext <<_ACEOF
7215/* confdefs.h.  */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h.  */
7220#include <limits.h>
7221
7222int
7223main ()
7224{
7225#ifndef _BIG_ENDIAN
7226		 not big endian
7227		#endif
7228
7229  ;
7230  return 0;
7231}
7232_ACEOF
7233rm -f conftest.$ac_objext
7234if { (ac_try="$ac_compile"
7235case "(($ac_try" in
7236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237  *) ac_try_echo=$ac_try;;
7238esac
7239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7240$as_echo "$ac_try_echo") >&5
7241  (eval "$ac_compile") 2>conftest.er1
7242  ac_status=$?
7243  grep -v '^ *+' conftest.er1 >conftest.err
7244  rm -f conftest.er1
7245  cat conftest.err >&5
7246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); } && {
7248	 test -z "$ac_c_werror_flag" ||
7249	 test ! -s conftest.err
7250       } && test -s conftest.$ac_objext; then
7251  ac_cv_c_bigendian=yes
7252else
7253  $as_echo "$as_me: failed program was:" >&5
7254sed 's/^/| /' conftest.$ac_ext >&5
7255
7256	ac_cv_c_bigendian=no
7257fi
7258
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260else
7261  $as_echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264
7265fi
7266
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268    fi
7269    if test $ac_cv_c_bigendian = unknown; then
7270      # Compile a test program.
7271      if test "$cross_compiling" = yes; then
7272  # Try to guess by grepping values from an object file.
7273	 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h.  */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h.  */
7279short int ascii_mm[] =
7280		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7281		short int ascii_ii[] =
7282		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7283		int use_ascii (int i) {
7284		  return ascii_mm[i] + ascii_ii[i];
7285		}
7286		short int ebcdic_ii[] =
7287		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7288		short int ebcdic_mm[] =
7289		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7290		int use_ebcdic (int i) {
7291		  return ebcdic_mm[i] + ebcdic_ii[i];
7292		}
7293		extern int foo;
7294
7295int
7296main ()
7297{
7298return use_ascii (foo) == use_ebcdic (foo);
7299  ;
7300  return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext
7304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307  *) ac_try_echo=$ac_try;;
7308esac
7309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310$as_echo "$ac_try_echo") >&5
7311  (eval "$ac_compile") 2>conftest.er1
7312  ac_status=$?
7313  grep -v '^ *+' conftest.er1 >conftest.err
7314  rm -f conftest.er1
7315  cat conftest.err >&5
7316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); } && {
7318	 test -z "$ac_c_werror_flag" ||
7319	 test ! -s conftest.err
7320       } && test -s conftest.$ac_objext; then
7321  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7322	      ac_cv_c_bigendian=yes
7323	    fi
7324	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7325	      if test "$ac_cv_c_bigendian" = unknown; then
7326		ac_cv_c_bigendian=no
7327	      else
7328		# finding both strings is unlikely to happen, but who knows?
7329		ac_cv_c_bigendian=unknown
7330	      fi
7331	    fi
7332else
7333  $as_echo "$as_me: failed program was:" >&5
7334sed 's/^/| /' conftest.$ac_ext >&5
7335
7336
7337fi
7338
7339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340else
7341  cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h.  */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h.  */
7347$ac_includes_default
7348int
7349main ()
7350{
7351
7352	     /* Are we little or big endian?  From Harbison&Steele.  */
7353	     union
7354	     {
7355	       long int l;
7356	       char c[sizeof (long int)];
7357	     } u;
7358	     u.l = 1;
7359	     return u.c[sizeof (long int) - 1] == 1;
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365rm -f conftest$ac_exeext
7366if { (ac_try="$ac_link"
7367case "(($ac_try" in
7368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369  *) ac_try_echo=$ac_try;;
7370esac
7371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7372$as_echo "$ac_try_echo") >&5
7373  (eval "$ac_link") 2>&5
7374  ac_status=$?
7375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7377  { (case "(($ac_try" in
7378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379  *) ac_try_echo=$ac_try;;
7380esac
7381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382$as_echo "$ac_try_echo") >&5
7383  (eval "$ac_try") 2>&5
7384  ac_status=$?
7385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386  (exit $ac_status); }; }; then
7387  ac_cv_c_bigendian=no
7388else
7389  $as_echo "$as_me: program exited with status $ac_status" >&5
7390$as_echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393( exit $ac_status )
7394ac_cv_c_bigendian=yes
7395fi
7396rm -rf conftest.dSYM
7397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7398fi
7399
7400
7401    fi
7402fi
7403{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7404$as_echo "$ac_cv_c_bigendian" >&6; }
7405 case $ac_cv_c_bigendian in #(
7406   yes)
7407     cat >>confdefs.h <<\_ACEOF
7408#define WORDS_BIGENDIAN 1
7409_ACEOF
7410;; #(
7411   no)
7412      ;; #(
7413   universal)
7414
7415cat >>confdefs.h <<\_ACEOF
7416#define AC_APPLE_UNIVERSAL_BUILD 1
7417_ACEOF
7418
7419     ;; #(
7420   *)
7421     { { $as_echo "$as_me:$LINENO: error: unknown endianness
7422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7423$as_echo "$as_me: error: unknown endianness
7424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7425   { (exit 1); exit 1; }; } ;;
7426 esac
7427
7428if test $ac_cv_c_bigendian = no; then
7429U_IS_BIG_ENDIAN=0
7430U_ENDIAN_CHAR="l"
7431else
7432U_IS_BIG_ENDIAN=1
7433U_ENDIAN_CHAR="b"
7434fi
7435
7436
7437# Do various POSIX related checks
7438U_HAVE_NL_LANGINFO_CODESET=0
7439U_NL_LANGINFO_CODESET=-1
7440{ $as_echo "$as_me:$LINENO: checking for nl_langinfo" >&5
7441$as_echo_n "checking for nl_langinfo... " >&6; }
7442if test "${ac_cv_func_nl_langinfo+set}" = set; then
7443  $as_echo_n "(cached) " >&6
7444else
7445  cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h.  */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h.  */
7451/* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo.
7452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7453#define nl_langinfo innocuous_nl_langinfo
7454
7455/* System header to define __stub macros and hopefully few prototypes,
7456    which can conflict with char nl_langinfo (); below.
7457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458    <limits.h> exists even on freestanding compilers.  */
7459
7460#ifdef __STDC__
7461# include <limits.h>
7462#else
7463# include <assert.h>
7464#endif
7465
7466#undef nl_langinfo
7467
7468/* Override any GCC internal prototype to avoid an error.
7469   Use char because int might match the return type of a GCC
7470   builtin and then its argument prototype would still apply.  */
7471#ifdef __cplusplus
7472extern "C"
7473#endif
7474char nl_langinfo ();
7475/* The GNU C library defines this for functions which it implements
7476    to always fail with ENOSYS.  Some functions are actually named
7477    something starting with __ and the normal name is an alias.  */
7478#if defined __stub_nl_langinfo || defined __stub___nl_langinfo
7479choke me
7480#endif
7481
7482int
7483main ()
7484{
7485return nl_langinfo ();
7486  ;
7487  return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
7491if { (ac_try="$ac_link"
7492case "(($ac_try" in
7493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494  *) ac_try_echo=$ac_try;;
7495esac
7496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7497$as_echo "$ac_try_echo") >&5
7498  (eval "$ac_link") 2>conftest.er1
7499  ac_status=$?
7500  grep -v '^ *+' conftest.er1 >conftest.err
7501  rm -f conftest.er1
7502  cat conftest.err >&5
7503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); } && {
7505	 test -z "$ac_c_werror_flag" ||
7506	 test ! -s conftest.err
7507       } && test -s conftest$ac_exeext && {
7508	 test "$cross_compiling" = yes ||
7509	 $as_test_x conftest$ac_exeext
7510       }; then
7511  ac_cv_func_nl_langinfo=yes
7512else
7513  $as_echo "$as_me: failed program was:" >&5
7514sed 's/^/| /' conftest.$ac_ext >&5
7515
7516	ac_cv_func_nl_langinfo=no
7517fi
7518
7519rm -rf conftest.dSYM
7520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7521      conftest$ac_exeext conftest.$ac_ext
7522fi
7523{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5
7524$as_echo "$ac_cv_func_nl_langinfo" >&6; }
7525if test "x$ac_cv_func_nl_langinfo" = x""yes; then
7526  U_HAVE_NL_LANGINFO=1
7527else
7528  U_HAVE_NL_LANGINFO=0
7529fi
7530
7531if test $U_HAVE_NL_LANGINFO -eq 1; then
7532  { $as_echo "$as_me:$LINENO: checking for nl_langinfo's argument to obtain the codeset" >&5
7533$as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
7534if test "${ac_cv_nl_langinfo_codeset+set}" = set; then
7535  $as_echo_n "(cached) " >&6
7536else
7537  ac_cv_nl_langinfo_codeset="unknown"
7538  for a in CODESET _NL_CTYPE_CODESET_NAME; do
7539  cat >conftest.$ac_ext <<_ACEOF
7540/* confdefs.h.  */
7541_ACEOF
7542cat confdefs.h >>conftest.$ac_ext
7543cat >>conftest.$ac_ext <<_ACEOF
7544/* end confdefs.h.  */
7545#include <langinfo.h>
7546int
7547main ()
7548{
7549nl_langinfo($a);
7550  ;
7551  return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext conftest$ac_exeext
7555if { (ac_try="$ac_link"
7556case "(($ac_try" in
7557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558  *) ac_try_echo=$ac_try;;
7559esac
7560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561$as_echo "$ac_try_echo") >&5
7562  (eval "$ac_link") 2>conftest.er1
7563  ac_status=$?
7564  grep -v '^ *+' conftest.er1 >conftest.err
7565  rm -f conftest.er1
7566  cat conftest.err >&5
7567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); } && {
7569	 test -z "$ac_c_werror_flag" ||
7570	 test ! -s conftest.err
7571       } && test -s conftest$ac_exeext && {
7572	 test "$cross_compiling" = yes ||
7573	 $as_test_x conftest$ac_exeext
7574       }; then
7575  ac_cv_nl_langinfo_codeset="$a"; break
7576else
7577  $as_echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580
7581fi
7582
7583rm -rf conftest.dSYM
7584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7585      conftest$ac_exeext conftest.$ac_ext
7586  done
7587fi
7588{ $as_echo "$as_me:$LINENO: result: $ac_cv_nl_langinfo_codeset" >&5
7589$as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
7590  if test x$ac_cv_nl_langinfo_codeset != xunknown
7591  then
7592      U_HAVE_NL_LANGINFO_CODESET=1
7593      U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
7594  fi
7595fi
7596
7597
7598
7599# Namespace support checks
7600ac_ext=cpp
7601ac_cpp='$CXXCPP $CPPFLAGS'
7602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7605
7606{ $as_echo "$as_me:$LINENO: checking for namespace support" >&5
7607$as_echo_n "checking for namespace support... " >&6; }
7608if test "${ac_cv_namespace_ok+set}" = set; then
7609  $as_echo_n "(cached) " >&6
7610else
7611  cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h.  */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h.  */
7617namespace x_version {void f(){}}
7618    namespace x = x_version;
7619    using namespace x_version;
7620
7621int
7622main ()
7623{
7624f();
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext conftest$ac_exeext
7630if { (ac_try="$ac_link"
7631case "(($ac_try" in
7632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633  *) ac_try_echo=$ac_try;;
7634esac
7635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636$as_echo "$ac_try_echo") >&5
7637  (eval "$ac_link") 2>conftest.er1
7638  ac_status=$?
7639  grep -v '^ *+' conftest.er1 >conftest.err
7640  rm -f conftest.er1
7641  cat conftest.err >&5
7642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); } && {
7644	 test -z "$ac_cxx_werror_flag" ||
7645	 test ! -s conftest.err
7646       } && test -s conftest$ac_exeext && {
7647	 test "$cross_compiling" = yes ||
7648	 $as_test_x conftest$ac_exeext
7649       }; then
7650  ac_cv_namespace_ok=yes
7651else
7652  $as_echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655	ac_cv_namespace_ok=no
7656fi
7657
7658rm -rf conftest.dSYM
7659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7660      conftest$ac_exeext conftest.$ac_ext
7661fi
7662
7663{ $as_echo "$as_me:$LINENO: result: $ac_cv_namespace_ok" >&5
7664$as_echo "$ac_cv_namespace_ok" >&6; }
7665U_HAVE_NAMESPACE=1
7666if test $ac_cv_namespace_ok = no
7667then
7668    U_HAVE_NAMESPACE=0
7669fi
7670
7671
7672{ $as_echo "$as_me:$LINENO: checking for properly overriding new and delete" >&5
7673$as_echo_n "checking for properly overriding new and delete... " >&6; }
7674U_OVERRIDE_CXX_ALLOCATION=0
7675U_HAVE_PLACEMENT_NEW=0
7676if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then
7677  $as_echo_n "(cached) " >&6
7678else
7679  cat >conftest.$ac_ext <<_ACEOF
7680/* confdefs.h.  */
7681_ACEOF
7682cat confdefs.h >>conftest.$ac_ext
7683cat >>conftest.$ac_ext <<_ACEOF
7684/* end confdefs.h.  */
7685#include <stdlib.h>
7686    class UMemory {
7687    public:
7688    void *operator new(size_t size) {return malloc(size);}
7689    void *operator new[](size_t size) {return malloc(size);}
7690    void operator delete(void *p) {free(p);}
7691    void operator delete[](void *p) {free(p);}
7692    };
7693
7694int
7695main ()
7696{
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext conftest$ac_exeext
7703if { (ac_try="$ac_link"
7704case "(($ac_try" in
7705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706  *) ac_try_echo=$ac_try;;
7707esac
7708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7709$as_echo "$ac_try_echo") >&5
7710  (eval "$ac_link") 2>conftest.er1
7711  ac_status=$?
7712  grep -v '^ *+' conftest.er1 >conftest.err
7713  rm -f conftest.er1
7714  cat conftest.err >&5
7715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); } && {
7717	 test -z "$ac_cxx_werror_flag" ||
7718	 test ! -s conftest.err
7719       } && test -s conftest$ac_exeext && {
7720	 test "$cross_compiling" = yes ||
7721	 $as_test_x conftest$ac_exeext
7722       }; then
7723  ac_cv_override_cxx_allocation_ok=yes
7724else
7725  $as_echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728	ac_cv_override_cxx_allocation_ok=no
7729fi
7730
7731rm -rf conftest.dSYM
7732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7733      conftest$ac_exeext conftest.$ac_ext
7734fi
7735
7736{ $as_echo "$as_me:$LINENO: result: $ac_cv_override_cxx_allocation_ok" >&5
7737$as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
7738if test $ac_cv_override_cxx_allocation_ok = yes
7739then
7740    U_OVERRIDE_CXX_ALLOCATION=1
7741    { $as_echo "$as_me:$LINENO: checking for placement new and delete" >&5
7742$as_echo_n "checking for placement new and delete... " >&6; }
7743    if test "${ac_cv_override_placement_new_ok+set}" = set; then
7744  $as_echo_n "(cached) " >&6
7745else
7746  cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h.  */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h.  */
7752#include <stdlib.h>
7753        class UMemory {
7754        public:
7755        void *operator new(size_t size) {return malloc(size);}
7756        void *operator new[](size_t size) {return malloc(size);}
7757        void operator delete(void *p) {free(p);}
7758        void operator delete[](void *p) {free(p);}
7759        void * operator new(size_t, void *ptr) { return ptr; }
7760        void operator delete(void *, void *) {}
7761        };
7762
7763int
7764main ()
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (ac_try="$ac_link"
7773case "(($ac_try" in
7774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775  *) ac_try_echo=$ac_try;;
7776esac
7777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778$as_echo "$ac_try_echo") >&5
7779  (eval "$ac_link") 2>conftest.er1
7780  ac_status=$?
7781  grep -v '^ *+' conftest.er1 >conftest.err
7782  rm -f conftest.er1
7783  cat conftest.err >&5
7784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785  (exit $ac_status); } && {
7786	 test -z "$ac_cxx_werror_flag" ||
7787	 test ! -s conftest.err
7788       } && test -s conftest$ac_exeext && {
7789	 test "$cross_compiling" = yes ||
7790	 $as_test_x conftest$ac_exeext
7791       }; then
7792  ac_cv_override_placement_new_ok=yes
7793else
7794  $as_echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7797	ac_cv_override_placement_new_ok=no
7798fi
7799
7800rm -rf conftest.dSYM
7801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7802      conftest$ac_exeext conftest.$ac_ext
7803fi
7804
7805    { $as_echo "$as_me:$LINENO: result: $ac_cv_override_placement_new_ok" >&5
7806$as_echo "$ac_cv_override_placement_new_ok" >&6; }
7807    if test $ac_cv_override_placement_new_ok = yes
7808    then
7809        U_HAVE_PLACEMENT_NEW=1
7810    fi
7811fi
7812
7813
7814
7815ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821{ $as_echo "$as_me:$LINENO: checking for popen" >&5
7822$as_echo_n "checking for popen... " >&6; }
7823if test "${ac_cv_func_popen+set}" = set; then
7824  $as_echo_n "(cached) " >&6
7825else
7826  cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h.  */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h.  */
7832/* Define popen to an innocuous variant, in case <limits.h> declares popen.
7833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7834#define popen innocuous_popen
7835
7836/* System header to define __stub macros and hopefully few prototypes,
7837    which can conflict with char popen (); below.
7838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7839    <limits.h> exists even on freestanding compilers.  */
7840
7841#ifdef __STDC__
7842# include <limits.h>
7843#else
7844# include <assert.h>
7845#endif
7846
7847#undef popen
7848
7849/* Override any GCC internal prototype to avoid an error.
7850   Use char because int might match the return type of a GCC
7851   builtin and then its argument prototype would still apply.  */
7852#ifdef __cplusplus
7853extern "C"
7854#endif
7855char popen ();
7856/* The GNU C library defines this for functions which it implements
7857    to always fail with ENOSYS.  Some functions are actually named
7858    something starting with __ and the normal name is an alias.  */
7859#if defined __stub_popen || defined __stub___popen
7860choke me
7861#endif
7862
7863int
7864main ()
7865{
7866return popen ();
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (ac_try="$ac_link"
7873case "(($ac_try" in
7874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875  *) ac_try_echo=$ac_try;;
7876esac
7877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7878$as_echo "$ac_try_echo") >&5
7879  (eval "$ac_link") 2>conftest.er1
7880  ac_status=$?
7881  grep -v '^ *+' conftest.er1 >conftest.err
7882  rm -f conftest.er1
7883  cat conftest.err >&5
7884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); } && {
7886	 test -z "$ac_c_werror_flag" ||
7887	 test ! -s conftest.err
7888       } && test -s conftest$ac_exeext && {
7889	 test "$cross_compiling" = yes ||
7890	 $as_test_x conftest$ac_exeext
7891       }; then
7892  ac_cv_func_popen=yes
7893else
7894  $as_echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897	ac_cv_func_popen=no
7898fi
7899
7900rm -rf conftest.dSYM
7901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7902      conftest$ac_exeext conftest.$ac_ext
7903fi
7904{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5
7905$as_echo "$ac_cv_func_popen" >&6; }
7906
7907if test x$ac_cv_func_popen = xyes
7908then
7909     U_HAVE_POPEN=1
7910else
7911     U_HAVE_POPEN=0
7912fi
7913
7914
7915{ $as_echo "$as_me:$LINENO: checking for tzset" >&5
7916$as_echo_n "checking for tzset... " >&6; }
7917if test "${ac_cv_func_tzset+set}" = set; then
7918  $as_echo_n "(cached) " >&6
7919else
7920  cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926/* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
7927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7928#define tzset innocuous_tzset
7929
7930/* System header to define __stub macros and hopefully few prototypes,
7931    which can conflict with char tzset (); below.
7932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7933    <limits.h> exists even on freestanding compilers.  */
7934
7935#ifdef __STDC__
7936# include <limits.h>
7937#else
7938# include <assert.h>
7939#endif
7940
7941#undef tzset
7942
7943/* Override any GCC internal prototype to avoid an error.
7944   Use char because int might match the return type of a GCC
7945   builtin and then its argument prototype would still apply.  */
7946#ifdef __cplusplus
7947extern "C"
7948#endif
7949char tzset ();
7950/* The GNU C library defines this for functions which it implements
7951    to always fail with ENOSYS.  Some functions are actually named
7952    something starting with __ and the normal name is an alias.  */
7953#if defined __stub_tzset || defined __stub___tzset
7954choke me
7955#endif
7956
7957int
7958main ()
7959{
7960return tzset ();
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (ac_try="$ac_link"
7967case "(($ac_try" in
7968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969  *) ac_try_echo=$ac_try;;
7970esac
7971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7972$as_echo "$ac_try_echo") >&5
7973  (eval "$ac_link") 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } && {
7980	 test -z "$ac_c_werror_flag" ||
7981	 test ! -s conftest.err
7982       } && test -s conftest$ac_exeext && {
7983	 test "$cross_compiling" = yes ||
7984	 $as_test_x conftest$ac_exeext
7985       }; then
7986  ac_cv_func_tzset=yes
7987else
7988  $as_echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991	ac_cv_func_tzset=no
7992fi
7993
7994rm -rf conftest.dSYM
7995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996      conftest$ac_exeext conftest.$ac_ext
7997fi
7998{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5
7999$as_echo "$ac_cv_func_tzset" >&6; }
8000
8001U_HAVE_TZSET=0
8002if test x$ac_cv_func_tzset = xyes
8003then
8004    U_TZSET=tzset
8005    U_HAVE_TZSET=1
8006else
8007    { $as_echo "$as_me:$LINENO: checking for _tzset" >&5
8008$as_echo_n "checking for _tzset... " >&6; }
8009if test "${ac_cv_func__tzset+set}" = set; then
8010  $as_echo_n "(cached) " >&6
8011else
8012  cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h.  */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h.  */
8018/* Define _tzset to an innocuous variant, in case <limits.h> declares _tzset.
8019   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8020#define _tzset innocuous__tzset
8021
8022/* System header to define __stub macros and hopefully few prototypes,
8023    which can conflict with char _tzset (); below.
8024    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8025    <limits.h> exists even on freestanding compilers.  */
8026
8027#ifdef __STDC__
8028# include <limits.h>
8029#else
8030# include <assert.h>
8031#endif
8032
8033#undef _tzset
8034
8035/* Override any GCC internal prototype to avoid an error.
8036   Use char because int might match the return type of a GCC
8037   builtin and then its argument prototype would still apply.  */
8038#ifdef __cplusplus
8039extern "C"
8040#endif
8041char _tzset ();
8042/* The GNU C library defines this for functions which it implements
8043    to always fail with ENOSYS.  Some functions are actually named
8044    something starting with __ and the normal name is an alias.  */
8045#if defined __stub__tzset || defined __stub____tzset
8046choke me
8047#endif
8048
8049int
8050main ()
8051{
8052return _tzset ();
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext conftest$ac_exeext
8058if { (ac_try="$ac_link"
8059case "(($ac_try" in
8060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061  *) ac_try_echo=$ac_try;;
8062esac
8063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8064$as_echo "$ac_try_echo") >&5
8065  (eval "$ac_link") 2>conftest.er1
8066  ac_status=$?
8067  grep -v '^ *+' conftest.er1 >conftest.err
8068  rm -f conftest.er1
8069  cat conftest.err >&5
8070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071  (exit $ac_status); } && {
8072	 test -z "$ac_c_werror_flag" ||
8073	 test ! -s conftest.err
8074       } && test -s conftest$ac_exeext && {
8075	 test "$cross_compiling" = yes ||
8076	 $as_test_x conftest$ac_exeext
8077       }; then
8078  ac_cv_func__tzset=yes
8079else
8080  $as_echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083	ac_cv_func__tzset=no
8084fi
8085
8086rm -rf conftest.dSYM
8087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088      conftest$ac_exeext conftest.$ac_ext
8089fi
8090{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__tzset" >&5
8091$as_echo "$ac_cv_func__tzset" >&6; }
8092
8093    if test x$ac_cv_func__tzset = xyes
8094    then
8095        U_TZSET=_tzset
8096        U_HAVE_TZSET=1
8097    fi
8098fi
8099
8100
8101
8102U_HAVE_TZNAME=0
8103{ $as_echo "$as_me:$LINENO: checking for tzname" >&5
8104$as_echo_n "checking for tzname... " >&6; }
8105if test "${ac_cv_var_tzname+set}" = set; then
8106  $as_echo_n "(cached) " >&6
8107else
8108  cat >conftest.$ac_ext <<_ACEOF
8109/* confdefs.h.  */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h.  */
8114#ifndef __USE_POSIX
8115#define __USE_POSIX
8116#endif
8117#include <stdlib.h>
8118#include <time.h>
8119#ifndef tzname /* For SGI.  */
8120extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8121#endif
8122int
8123main ()
8124{
8125atoi(*tzname);
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext conftest$ac_exeext
8131if { (ac_try="$ac_link"
8132case "(($ac_try" in
8133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134  *) ac_try_echo=$ac_try;;
8135esac
8136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137$as_echo "$ac_try_echo") >&5
8138  (eval "$ac_link") 2>conftest.er1
8139  ac_status=$?
8140  grep -v '^ *+' conftest.er1 >conftest.err
8141  rm -f conftest.er1
8142  cat conftest.err >&5
8143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); } && {
8145	 test -z "$ac_c_werror_flag" ||
8146	 test ! -s conftest.err
8147       } && test -s conftest$ac_exeext && {
8148	 test "$cross_compiling" = yes ||
8149	 $as_test_x conftest$ac_exeext
8150       }; then
8151  ac_cv_var_tzname=yes
8152else
8153  $as_echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156	ac_cv_var_tzname=no
8157fi
8158
8159rm -rf conftest.dSYM
8160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8161      conftest$ac_exeext conftest.$ac_ext
8162fi
8163{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8164$as_echo "$ac_cv_var_tzname" >&6; }
8165if test $ac_cv_var_tzname = yes; then
8166  U_TZNAME=tzname
8167  U_HAVE_TZNAME=1
8168else
8169  { $as_echo "$as_me:$LINENO: checking for _tzname" >&5
8170$as_echo_n "checking for _tzname... " >&6; }
8171if test "${ac_cv_var__tzname+set}" = set; then
8172  $as_echo_n "(cached) " >&6
8173else
8174  cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h.  */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h.  */
8180#include <stdlib.h>
8181  #include <time.h>
8182  extern char *_tzname[];
8183int
8184main ()
8185{
8186atoi(*_tzname);
8187  ;
8188  return 0;
8189}
8190_ACEOF
8191rm -f conftest.$ac_objext conftest$ac_exeext
8192if { (ac_try="$ac_link"
8193case "(($ac_try" in
8194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195  *) ac_try_echo=$ac_try;;
8196esac
8197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8198$as_echo "$ac_try_echo") >&5
8199  (eval "$ac_link") 2>conftest.er1
8200  ac_status=$?
8201  grep -v '^ *+' conftest.er1 >conftest.err
8202  rm -f conftest.er1
8203  cat conftest.err >&5
8204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205  (exit $ac_status); } && {
8206	 test -z "$ac_c_werror_flag" ||
8207	 test ! -s conftest.err
8208       } && test -s conftest$ac_exeext && {
8209	 test "$cross_compiling" = yes ||
8210	 $as_test_x conftest$ac_exeext
8211       }; then
8212  ac_cv_var__tzname=yes
8213else
8214  $as_echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
8217	ac_cv_var__tzname=no
8218fi
8219
8220rm -rf conftest.dSYM
8221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8222      conftest$ac_exeext conftest.$ac_ext
8223fi
8224{ $as_echo "$as_me:$LINENO: result: $ac_cv_var__tzname" >&5
8225$as_echo "$ac_cv_var__tzname" >&6; }
8226    if test $ac_cv_var__tzname = yes; then
8227      U_TZNAME=_tzname
8228      U_HAVE_TZNAME=1
8229    fi
8230fi
8231
8232
8233
8234{ $as_echo "$as_me:$LINENO: checking for timezone" >&5
8235$as_echo_n "checking for timezone... " >&6; }
8236if test "${ac_cv_var_timezone+set}" = set; then
8237  $as_echo_n "(cached) " >&6
8238else
8239  cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h.  */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h.  */
8245#ifndef __USE_POSIX
8246#define __USE_POSIX
8247#endif
8248#ifndef __USE_XOPEN
8249#define __USE_XOPEN
8250#endif
8251#include <time.h>
8252
8253int
8254main ()
8255{
8256timezone = 1;
8257  ;
8258  return 0;
8259}
8260_ACEOF
8261rm -f conftest.$ac_objext conftest$ac_exeext
8262if { (ac_try="$ac_link"
8263case "(($ac_try" in
8264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265  *) ac_try_echo=$ac_try;;
8266esac
8267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268$as_echo "$ac_try_echo") >&5
8269  (eval "$ac_link") 2>conftest.er1
8270  ac_status=$?
8271  grep -v '^ *+' conftest.er1 >conftest.err
8272  rm -f conftest.er1
8273  cat conftest.err >&5
8274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275  (exit $ac_status); } && {
8276	 test -z "$ac_c_werror_flag" ||
8277	 test ! -s conftest.err
8278       } && test -s conftest$ac_exeext && {
8279	 test "$cross_compiling" = yes ||
8280	 $as_test_x conftest$ac_exeext
8281       }; then
8282  ac_cv_var_timezone=yes
8283else
8284  $as_echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287	ac_cv_var_timezone=no
8288fi
8289
8290rm -rf conftest.dSYM
8291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292      conftest$ac_exeext conftest.$ac_ext
8293fi
8294{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5
8295$as_echo "$ac_cv_var_timezone" >&6; }
8296U_HAVE_TIMEZONE=0
8297if test $ac_cv_var_timezone = yes; then
8298  U_TIMEZONE=timezone
8299  U_HAVE_TIMEZONE=1
8300else
8301  { $as_echo "$as_me:$LINENO: checking for __timezone" >&5
8302$as_echo_n "checking for __timezone... " >&6; }
8303if test "${ac_cv_var___timezone+set}" = set; then
8304  $as_echo_n "(cached) " >&6
8305else
8306  cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h.  */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h.  */
8312#include <time.h>
8313int
8314main ()
8315{
8316__timezone = 1;
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext conftest$ac_exeext
8322if { (ac_try="$ac_link"
8323case "(($ac_try" in
8324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325  *) ac_try_echo=$ac_try;;
8326esac
8327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8328$as_echo "$ac_try_echo") >&5
8329  (eval "$ac_link") 2>conftest.er1
8330  ac_status=$?
8331  grep -v '^ *+' conftest.er1 >conftest.err
8332  rm -f conftest.er1
8333  cat conftest.err >&5
8334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335  (exit $ac_status); } && {
8336	 test -z "$ac_c_werror_flag" ||
8337	 test ! -s conftest.err
8338       } && test -s conftest$ac_exeext && {
8339	 test "$cross_compiling" = yes ||
8340	 $as_test_x conftest$ac_exeext
8341       }; then
8342  ac_cv_var___timezone=yes
8343else
8344  $as_echo "$as_me: failed program was:" >&5
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
8347	ac_cv_var___timezone=no
8348fi
8349
8350rm -rf conftest.dSYM
8351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8352      conftest$ac_exeext conftest.$ac_ext
8353fi
8354{ $as_echo "$as_me:$LINENO: result: $ac_cv_var___timezone" >&5
8355$as_echo "$ac_cv_var___timezone" >&6; }
8356  if test $ac_cv_var___timezone = yes; then
8357    U_TIMEZONE=__timezone
8358    U_HAVE_TIMEZONE=1
8359  else
8360    { $as_echo "$as_me:$LINENO: checking for _timezone" >&5
8361$as_echo_n "checking for _timezone... " >&6; }
8362if test "${ac_cv_var__timezone+set}" = set; then
8363  $as_echo_n "(cached) " >&6
8364else
8365  cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h.  */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h.  */
8371#include <time.h>
8372int
8373main ()
8374{
8375_timezone = 1;
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384  *) ac_try_echo=$ac_try;;
8385esac
8386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8387$as_echo "$ac_try_echo") >&5
8388  (eval "$ac_link") 2>conftest.er1
8389  ac_status=$?
8390  grep -v '^ *+' conftest.er1 >conftest.err
8391  rm -f conftest.er1
8392  cat conftest.err >&5
8393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); } && {
8395	 test -z "$ac_c_werror_flag" ||
8396	 test ! -s conftest.err
8397       } && test -s conftest$ac_exeext && {
8398	 test "$cross_compiling" = yes ||
8399	 $as_test_x conftest$ac_exeext
8400       }; then
8401  ac_cv_var__timezone=yes
8402else
8403  $as_echo "$as_me: failed program was:" >&5
8404sed 's/^/| /' conftest.$ac_ext >&5
8405
8406	ac_cv_var__timezone=no
8407fi
8408
8409rm -rf conftest.dSYM
8410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8411      conftest$ac_exeext conftest.$ac_ext
8412fi
8413{ $as_echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5
8414$as_echo "$ac_cv_var__timezone" >&6; }
8415    if test $ac_cv_var__timezone = yes; then
8416      U_TIMEZONE=_timezone
8417      U_HAVE_TIMEZONE=1
8418    fi
8419  fi
8420fi
8421
8422
8423
8424# Checks for typedefs
8425{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
8426$as_echo_n "checking for int8_t... " >&6; }
8427if test "${ac_cv_type_int8_t+set}" = set; then
8428  $as_echo_n "(cached) " >&6
8429else
8430  ac_cv_type_int8_t=no
8431cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h.  */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h.  */
8437$ac_includes_default
8438int
8439main ()
8440{
8441if (sizeof (int8_t))
8442       return 0;
8443  ;
8444  return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (ac_try="$ac_compile"
8449case "(($ac_try" in
8450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451  *) ac_try_echo=$ac_try;;
8452esac
8453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454$as_echo "$ac_try_echo") >&5
8455  (eval "$ac_compile") 2>conftest.er1
8456  ac_status=$?
8457  grep -v '^ *+' conftest.er1 >conftest.err
8458  rm -f conftest.er1
8459  cat conftest.err >&5
8460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); } && {
8462	 test -z "$ac_c_werror_flag" ||
8463	 test ! -s conftest.err
8464       } && test -s conftest.$ac_objext; then
8465  cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h.  */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h.  */
8471$ac_includes_default
8472int
8473main ()
8474{
8475if (sizeof ((int8_t)))
8476	  return 0;
8477  ;
8478  return 0;
8479}
8480_ACEOF
8481rm -f conftest.$ac_objext
8482if { (ac_try="$ac_compile"
8483case "(($ac_try" in
8484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485  *) ac_try_echo=$ac_try;;
8486esac
8487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488$as_echo "$ac_try_echo") >&5
8489  (eval "$ac_compile") 2>conftest.er1
8490  ac_status=$?
8491  grep -v '^ *+' conftest.er1 >conftest.err
8492  rm -f conftest.er1
8493  cat conftest.err >&5
8494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); } && {
8496	 test -z "$ac_c_werror_flag" ||
8497	 test ! -s conftest.err
8498       } && test -s conftest.$ac_objext; then
8499  :
8500else
8501  $as_echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504	ac_cv_type_int8_t=yes
8505fi
8506
8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508else
8509  $as_echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
8513fi
8514
8515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi
8517{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
8518$as_echo "$ac_cv_type_int8_t" >&6; }
8519if test "x$ac_cv_type_int8_t" = x""yes; then
8520  :
8521else
8522
8523cat >>confdefs.h <<_ACEOF
8524#define int8_t signed char
8525_ACEOF
8526
8527fi
8528
8529{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
8530$as_echo_n "checking for uint8_t... " >&6; }
8531if test "${ac_cv_type_uint8_t+set}" = set; then
8532  $as_echo_n "(cached) " >&6
8533else
8534  ac_cv_type_uint8_t=no
8535cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h.  */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h.  */
8541$ac_includes_default
8542int
8543main ()
8544{
8545if (sizeof (uint8_t))
8546       return 0;
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (ac_try="$ac_compile"
8553case "(($ac_try" in
8554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555  *) ac_try_echo=$ac_try;;
8556esac
8557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558$as_echo "$ac_try_echo") >&5
8559  (eval "$ac_compile") 2>conftest.er1
8560  ac_status=$?
8561  grep -v '^ *+' conftest.er1 >conftest.err
8562  rm -f conftest.er1
8563  cat conftest.err >&5
8564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); } && {
8566	 test -z "$ac_c_werror_flag" ||
8567	 test ! -s conftest.err
8568       } && test -s conftest.$ac_objext; then
8569  cat >conftest.$ac_ext <<_ACEOF
8570/* confdefs.h.  */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h.  */
8575$ac_includes_default
8576int
8577main ()
8578{
8579if (sizeof ((uint8_t)))
8580	  return 0;
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (ac_try="$ac_compile"
8587case "(($ac_try" in
8588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589  *) ac_try_echo=$ac_try;;
8590esac
8591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592$as_echo "$ac_try_echo") >&5
8593  (eval "$ac_compile") 2>conftest.er1
8594  ac_status=$?
8595  grep -v '^ *+' conftest.er1 >conftest.err
8596  rm -f conftest.er1
8597  cat conftest.err >&5
8598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599  (exit $ac_status); } && {
8600	 test -z "$ac_c_werror_flag" ||
8601	 test ! -s conftest.err
8602       } && test -s conftest.$ac_objext; then
8603  :
8604else
8605  $as_echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608	ac_cv_type_uint8_t=yes
8609fi
8610
8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612else
8613  $as_echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616
8617fi
8618
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8622$as_echo "$ac_cv_type_uint8_t" >&6; }
8623if test "x$ac_cv_type_uint8_t" = x""yes; then
8624  :
8625else
8626
8627cat >>confdefs.h <<_ACEOF
8628#define uint8_t unsigned char
8629_ACEOF
8630
8631fi
8632
8633{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
8634$as_echo_n "checking for int16_t... " >&6; }
8635if test "${ac_cv_type_int16_t+set}" = set; then
8636  $as_echo_n "(cached) " >&6
8637else
8638  ac_cv_type_int16_t=no
8639cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h.  */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h.  */
8645$ac_includes_default
8646int
8647main ()
8648{
8649if (sizeof (int16_t))
8650       return 0;
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext
8656if { (ac_try="$ac_compile"
8657case "(($ac_try" in
8658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659  *) ac_try_echo=$ac_try;;
8660esac
8661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662$as_echo "$ac_try_echo") >&5
8663  (eval "$ac_compile") 2>conftest.er1
8664  ac_status=$?
8665  grep -v '^ *+' conftest.er1 >conftest.err
8666  rm -f conftest.er1
8667  cat conftest.err >&5
8668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); } && {
8670	 test -z "$ac_c_werror_flag" ||
8671	 test ! -s conftest.err
8672       } && test -s conftest.$ac_objext; then
8673  cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h.  */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h.  */
8679$ac_includes_default
8680int
8681main ()
8682{
8683if (sizeof ((int16_t)))
8684	  return 0;
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693  *) ac_try_echo=$ac_try;;
8694esac
8695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8696$as_echo "$ac_try_echo") >&5
8697  (eval "$ac_compile") 2>conftest.er1
8698  ac_status=$?
8699  grep -v '^ *+' conftest.er1 >conftest.err
8700  rm -f conftest.er1
8701  cat conftest.err >&5
8702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } && {
8704	 test -z "$ac_c_werror_flag" ||
8705	 test ! -s conftest.err
8706       } && test -s conftest.$ac_objext; then
8707  :
8708else
8709  $as_echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
8712	ac_cv_type_int16_t=yes
8713fi
8714
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716else
8717  $as_echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720
8721fi
8722
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8726$as_echo "$ac_cv_type_int16_t" >&6; }
8727if test "x$ac_cv_type_int16_t" = x""yes; then
8728  :
8729else
8730
8731cat >>confdefs.h <<_ACEOF
8732#define int16_t signed short
8733_ACEOF
8734
8735fi
8736
8737{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8738$as_echo_n "checking for uint16_t... " >&6; }
8739if test "${ac_cv_type_uint16_t+set}" = set; then
8740  $as_echo_n "(cached) " >&6
8741else
8742  ac_cv_type_uint16_t=no
8743cat >conftest.$ac_ext <<_ACEOF
8744/* confdefs.h.  */
8745_ACEOF
8746cat confdefs.h >>conftest.$ac_ext
8747cat >>conftest.$ac_ext <<_ACEOF
8748/* end confdefs.h.  */
8749$ac_includes_default
8750int
8751main ()
8752{
8753if (sizeof (uint16_t))
8754       return 0;
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext
8760if { (ac_try="$ac_compile"
8761case "(($ac_try" in
8762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763  *) ac_try_echo=$ac_try;;
8764esac
8765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8766$as_echo "$ac_try_echo") >&5
8767  (eval "$ac_compile") 2>conftest.er1
8768  ac_status=$?
8769  grep -v '^ *+' conftest.er1 >conftest.err
8770  rm -f conftest.er1
8771  cat conftest.err >&5
8772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); } && {
8774	 test -z "$ac_c_werror_flag" ||
8775	 test ! -s conftest.err
8776       } && test -s conftest.$ac_objext; then
8777  cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h.  */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h.  */
8783$ac_includes_default
8784int
8785main ()
8786{
8787if (sizeof ((uint16_t)))
8788	  return 0;
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext
8794if { (ac_try="$ac_compile"
8795case "(($ac_try" in
8796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797  *) ac_try_echo=$ac_try;;
8798esac
8799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800$as_echo "$ac_try_echo") >&5
8801  (eval "$ac_compile") 2>conftest.er1
8802  ac_status=$?
8803  grep -v '^ *+' conftest.er1 >conftest.err
8804  rm -f conftest.er1
8805  cat conftest.err >&5
8806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); } && {
8808	 test -z "$ac_c_werror_flag" ||
8809	 test ! -s conftest.err
8810       } && test -s conftest.$ac_objext; then
8811  :
8812else
8813  $as_echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
8815
8816	ac_cv_type_uint16_t=yes
8817fi
8818
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820else
8821  $as_echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824
8825fi
8826
8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828fi
8829{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8830$as_echo "$ac_cv_type_uint16_t" >&6; }
8831if test "x$ac_cv_type_uint16_t" = x""yes; then
8832  :
8833else
8834
8835cat >>confdefs.h <<_ACEOF
8836#define uint16_t unsigned short
8837_ACEOF
8838
8839fi
8840
8841{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8842$as_echo_n "checking for int32_t... " >&6; }
8843if test "${ac_cv_type_int32_t+set}" = set; then
8844  $as_echo_n "(cached) " >&6
8845else
8846  ac_cv_type_int32_t=no
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h.  */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h.  */
8853$ac_includes_default
8854int
8855main ()
8856{
8857if (sizeof (int32_t))
8858       return 0;
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
8864if { (ac_try="$ac_compile"
8865case "(($ac_try" in
8866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867  *) ac_try_echo=$ac_try;;
8868esac
8869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870$as_echo "$ac_try_echo") >&5
8871  (eval "$ac_compile") 2>conftest.er1
8872  ac_status=$?
8873  grep -v '^ *+' conftest.er1 >conftest.err
8874  rm -f conftest.er1
8875  cat conftest.err >&5
8876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877  (exit $ac_status); } && {
8878	 test -z "$ac_c_werror_flag" ||
8879	 test ! -s conftest.err
8880       } && test -s conftest.$ac_objext; then
8881  cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h.  */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h.  */
8887$ac_includes_default
8888int
8889main ()
8890{
8891if (sizeof ((int32_t)))
8892	  return 0;
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897rm -f conftest.$ac_objext
8898if { (ac_try="$ac_compile"
8899case "(($ac_try" in
8900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901  *) ac_try_echo=$ac_try;;
8902esac
8903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8904$as_echo "$ac_try_echo") >&5
8905  (eval "$ac_compile") 2>conftest.er1
8906  ac_status=$?
8907  grep -v '^ *+' conftest.er1 >conftest.err
8908  rm -f conftest.er1
8909  cat conftest.err >&5
8910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); } && {
8912	 test -z "$ac_c_werror_flag" ||
8913	 test ! -s conftest.err
8914       } && test -s conftest.$ac_objext; then
8915  :
8916else
8917  $as_echo "$as_me: failed program was:" >&5
8918sed 's/^/| /' conftest.$ac_ext >&5
8919
8920	ac_cv_type_int32_t=yes
8921fi
8922
8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924else
8925  $as_echo "$as_me: failed program was:" >&5
8926sed 's/^/| /' conftest.$ac_ext >&5
8927
8928
8929fi
8930
8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932fi
8933{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8934$as_echo "$ac_cv_type_int32_t" >&6; }
8935if test "x$ac_cv_type_int32_t" = x""yes; then
8936  :
8937else
8938
8939cat >>confdefs.h <<_ACEOF
8940#define int32_t signed long
8941_ACEOF
8942
8943fi
8944
8945{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8946$as_echo_n "checking for uint32_t... " >&6; }
8947if test "${ac_cv_type_uint32_t+set}" = set; then
8948  $as_echo_n "(cached) " >&6
8949else
8950  ac_cv_type_uint32_t=no
8951cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957$ac_includes_default
8958int
8959main ()
8960{
8961if (sizeof (uint32_t))
8962       return 0;
8963  ;
8964  return 0;
8965}
8966_ACEOF
8967rm -f conftest.$ac_objext
8968if { (ac_try="$ac_compile"
8969case "(($ac_try" in
8970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971  *) ac_try_echo=$ac_try;;
8972esac
8973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8974$as_echo "$ac_try_echo") >&5
8975  (eval "$ac_compile") 2>conftest.er1
8976  ac_status=$?
8977  grep -v '^ *+' conftest.er1 >conftest.err
8978  rm -f conftest.er1
8979  cat conftest.err >&5
8980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); } && {
8982	 test -z "$ac_c_werror_flag" ||
8983	 test ! -s conftest.err
8984       } && test -s conftest.$ac_objext; then
8985  cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h.  */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h.  */
8991$ac_includes_default
8992int
8993main ()
8994{
8995if (sizeof ((uint32_t)))
8996	  return 0;
8997  ;
8998  return 0;
8999}
9000_ACEOF
9001rm -f conftest.$ac_objext
9002if { (ac_try="$ac_compile"
9003case "(($ac_try" in
9004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005  *) ac_try_echo=$ac_try;;
9006esac
9007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9008$as_echo "$ac_try_echo") >&5
9009  (eval "$ac_compile") 2>conftest.er1
9010  ac_status=$?
9011  grep -v '^ *+' conftest.er1 >conftest.err
9012  rm -f conftest.er1
9013  cat conftest.err >&5
9014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); } && {
9016	 test -z "$ac_c_werror_flag" ||
9017	 test ! -s conftest.err
9018       } && test -s conftest.$ac_objext; then
9019  :
9020else
9021  $as_echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024	ac_cv_type_uint32_t=yes
9025fi
9026
9027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028else
9029  $as_echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
9033fi
9034
9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036fi
9037{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
9038$as_echo "$ac_cv_type_uint32_t" >&6; }
9039if test "x$ac_cv_type_uint32_t" = x""yes; then
9040  :
9041else
9042
9043cat >>confdefs.h <<_ACEOF
9044#define uint32_t unsigned long
9045_ACEOF
9046
9047fi
9048
9049{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9050$as_echo_n "checking for int64_t... " >&6; }
9051if test "${ac_cv_type_int64_t+set}" = set; then
9052  $as_echo_n "(cached) " >&6
9053else
9054  ac_cv_type_int64_t=no
9055cat >conftest.$ac_ext <<_ACEOF
9056/* confdefs.h.  */
9057_ACEOF
9058cat confdefs.h >>conftest.$ac_ext
9059cat >>conftest.$ac_ext <<_ACEOF
9060/* end confdefs.h.  */
9061$ac_includes_default
9062int
9063main ()
9064{
9065if (sizeof (int64_t))
9066       return 0;
9067  ;
9068  return 0;
9069}
9070_ACEOF
9071rm -f conftest.$ac_objext
9072if { (ac_try="$ac_compile"
9073case "(($ac_try" in
9074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075  *) ac_try_echo=$ac_try;;
9076esac
9077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078$as_echo "$ac_try_echo") >&5
9079  (eval "$ac_compile") 2>conftest.er1
9080  ac_status=$?
9081  grep -v '^ *+' conftest.er1 >conftest.err
9082  rm -f conftest.er1
9083  cat conftest.err >&5
9084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); } && {
9086	 test -z "$ac_c_werror_flag" ||
9087	 test ! -s conftest.err
9088       } && test -s conftest.$ac_objext; then
9089  cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h.  */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h.  */
9095$ac_includes_default
9096int
9097main ()
9098{
9099if (sizeof ((int64_t)))
9100	  return 0;
9101  ;
9102  return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext
9106if { (ac_try="$ac_compile"
9107case "(($ac_try" in
9108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109  *) ac_try_echo=$ac_try;;
9110esac
9111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9112$as_echo "$ac_try_echo") >&5
9113  (eval "$ac_compile") 2>conftest.er1
9114  ac_status=$?
9115  grep -v '^ *+' conftest.er1 >conftest.err
9116  rm -f conftest.er1
9117  cat conftest.err >&5
9118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } && {
9120	 test -z "$ac_c_werror_flag" ||
9121	 test ! -s conftest.err
9122       } && test -s conftest.$ac_objext; then
9123  :
9124else
9125  $as_echo "$as_me: failed program was:" >&5
9126sed 's/^/| /' conftest.$ac_ext >&5
9127
9128	ac_cv_type_int64_t=yes
9129fi
9130
9131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132else
9133  $as_echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136
9137fi
9138
9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140fi
9141{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9142$as_echo "$ac_cv_type_int64_t" >&6; }
9143if test "x$ac_cv_type_int64_t" = x""yes; then
9144  :
9145else
9146
9147cat >>confdefs.h <<_ACEOF
9148#define int64_t signed long long
9149_ACEOF
9150
9151fi
9152
9153{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9154$as_echo_n "checking for uint64_t... " >&6; }
9155if test "${ac_cv_type_uint64_t+set}" = set; then
9156  $as_echo_n "(cached) " >&6
9157else
9158  ac_cv_type_uint64_t=no
9159cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h.  */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h.  */
9165$ac_includes_default
9166int
9167main ()
9168{
9169if (sizeof (uint64_t))
9170       return 0;
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175rm -f conftest.$ac_objext
9176if { (ac_try="$ac_compile"
9177case "(($ac_try" in
9178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179  *) ac_try_echo=$ac_try;;
9180esac
9181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9182$as_echo "$ac_try_echo") >&5
9183  (eval "$ac_compile") 2>conftest.er1
9184  ac_status=$?
9185  grep -v '^ *+' conftest.er1 >conftest.err
9186  rm -f conftest.er1
9187  cat conftest.err >&5
9188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } && {
9190	 test -z "$ac_c_werror_flag" ||
9191	 test ! -s conftest.err
9192       } && test -s conftest.$ac_objext; then
9193  cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h.  */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h.  */
9199$ac_includes_default
9200int
9201main ()
9202{
9203if (sizeof ((uint64_t)))
9204	  return 0;
9205  ;
9206  return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext
9210if { (ac_try="$ac_compile"
9211case "(($ac_try" in
9212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213  *) ac_try_echo=$ac_try;;
9214esac
9215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216$as_echo "$ac_try_echo") >&5
9217  (eval "$ac_compile") 2>conftest.er1
9218  ac_status=$?
9219  grep -v '^ *+' conftest.er1 >conftest.err
9220  rm -f conftest.er1
9221  cat conftest.err >&5
9222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223  (exit $ac_status); } && {
9224	 test -z "$ac_c_werror_flag" ||
9225	 test ! -s conftest.err
9226       } && test -s conftest.$ac_objext; then
9227  :
9228else
9229  $as_echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232	ac_cv_type_uint64_t=yes
9233fi
9234
9235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236else
9237  $as_echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
9240
9241fi
9242
9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244fi
9245{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9246$as_echo "$ac_cv_type_uint64_t" >&6; }
9247if test "x$ac_cv_type_uint64_t" = x""yes; then
9248  :
9249else
9250
9251cat >>confdefs.h <<_ACEOF
9252#define uint64_t unsigned long long
9253_ACEOF
9254
9255fi
9256
9257
9258if test $ac_cv_type_int8_t = no; then
9259HAVE_INT8_T=0
9260else
9261HAVE_INT8_T=1
9262fi
9263
9264
9265if test $ac_cv_type_uint8_t = no; then
9266HAVE_UINT8_T=0
9267else
9268HAVE_UINT8_T=1
9269fi
9270
9271
9272if test $ac_cv_type_int16_t = no; then
9273HAVE_INT16_T=0
9274else
9275HAVE_INT16_T=1
9276fi
9277
9278
9279if test $ac_cv_type_uint16_t = no; then
9280HAVE_UINT16_T=0
9281else
9282HAVE_UINT16_T=1
9283fi
9284
9285
9286if test $ac_cv_type_int32_t = no; then
9287HAVE_INT32_T=0
9288else
9289HAVE_INT32_T=1
9290fi
9291
9292
9293if test $ac_cv_type_uint32_t = no; then
9294HAVE_UINT32_T=0
9295else
9296HAVE_UINT32_T=1
9297fi
9298
9299
9300if test $ac_cv_type_int64_t = no; then
9301HAVE_INT64_T=0
9302else
9303HAVE_INT64_T=1
9304fi
9305
9306
9307if test $ac_cv_type_uint64_t = no; then
9308HAVE_UINT64_T=0
9309else
9310HAVE_UINT64_T=1
9311fi
9312
9313
9314# Do various wchar_t related checks
9315if test "${ac_cv_header_wchar_h+set}" = set; then
9316  { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
9317$as_echo_n "checking for wchar.h... " >&6; }
9318if test "${ac_cv_header_wchar_h+set}" = set; then
9319  $as_echo_n "(cached) " >&6
9320fi
9321{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
9322$as_echo "$ac_cv_header_wchar_h" >&6; }
9323else
9324  # Is the header compilable?
9325{ $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
9326$as_echo_n "checking wchar.h usability... " >&6; }
9327cat >conftest.$ac_ext <<_ACEOF
9328/* confdefs.h.  */
9329_ACEOF
9330cat confdefs.h >>conftest.$ac_ext
9331cat >>conftest.$ac_ext <<_ACEOF
9332/* end confdefs.h.  */
9333$ac_includes_default
9334#include <wchar.h>
9335_ACEOF
9336rm -f conftest.$ac_objext
9337if { (ac_try="$ac_compile"
9338case "(($ac_try" in
9339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340  *) ac_try_echo=$ac_try;;
9341esac
9342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343$as_echo "$ac_try_echo") >&5
9344  (eval "$ac_compile") 2>conftest.er1
9345  ac_status=$?
9346  grep -v '^ *+' conftest.er1 >conftest.err
9347  rm -f conftest.er1
9348  cat conftest.err >&5
9349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } && {
9351	 test -z "$ac_c_werror_flag" ||
9352	 test ! -s conftest.err
9353       } && test -s conftest.$ac_objext; then
9354  ac_header_compiler=yes
9355else
9356  $as_echo "$as_me: failed program was:" >&5
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
9359	ac_header_compiler=no
9360fi
9361
9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9364$as_echo "$ac_header_compiler" >&6; }
9365
9366# Is the header present?
9367{ $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
9368$as_echo_n "checking wchar.h presence... " >&6; }
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h.  */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h.  */
9375#include <wchar.h>
9376_ACEOF
9377if { (ac_try="$ac_cpp conftest.$ac_ext"
9378case "(($ac_try" in
9379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380  *) ac_try_echo=$ac_try;;
9381esac
9382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9383$as_echo "$ac_try_echo") >&5
9384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9385  ac_status=$?
9386  grep -v '^ *+' conftest.er1 >conftest.err
9387  rm -f conftest.er1
9388  cat conftest.err >&5
9389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); } >/dev/null && {
9391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9392	 test ! -s conftest.err
9393       }; then
9394  ac_header_preproc=yes
9395else
9396  $as_echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399  ac_header_preproc=no
9400fi
9401
9402rm -f conftest.err conftest.$ac_ext
9403{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9404$as_echo "$ac_header_preproc" >&6; }
9405
9406# So?  What about this header?
9407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9408  yes:no: )
9409    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
9410$as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9411    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
9412$as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
9413    ac_header_preproc=yes
9414    ;;
9415  no:yes:* )
9416    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
9417$as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
9418    { $as_echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
9419$as_echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
9420    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
9421$as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
9422    { $as_echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
9423$as_echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9424    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
9425$as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
9426    { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
9427$as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
9428
9429    ;;
9430esac
9431{ $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
9432$as_echo_n "checking for wchar.h... " >&6; }
9433if test "${ac_cv_header_wchar_h+set}" = set; then
9434  $as_echo_n "(cached) " >&6
9435else
9436  ac_cv_header_wchar_h=$ac_header_preproc
9437fi
9438{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
9439$as_echo "$ac_cv_header_wchar_h" >&6; }
9440
9441fi
9442
9443
9444if test "$ac_cv_header_wchar_h" = no
9445then
9446    U_HAVE_WCHAR_H=0
9447    U_HAVE_WCSCPY=0
9448else
9449    cat >>confdefs.h <<\_ACEOF
9450#define HAVE_WCHAR_H 1
9451_ACEOF
9452
9453    U_HAVE_WCHAR_H=1
9454    # Some broken systems have wchar.h but not some of its functions...
9455    { $as_echo "$as_me:$LINENO: checking for library containing wcscpy" >&5
9456$as_echo_n "checking for library containing wcscpy... " >&6; }
9457if test "${ac_cv_search_wcscpy+set}" = set; then
9458  $as_echo_n "(cached) " >&6
9459else
9460  ac_func_search_save_LIBS=$LIBS
9461cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h.  */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h.  */
9467
9468/* Override any GCC internal prototype to avoid an error.
9469   Use char because int might match the return type of a GCC
9470   builtin and then its argument prototype would still apply.  */
9471#ifdef __cplusplus
9472extern "C"
9473#endif
9474char wcscpy ();
9475int
9476main ()
9477{
9478return wcscpy ();
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483for ac_lib in '' wcs w; do
9484  if test -z "$ac_lib"; then
9485    ac_res="none required"
9486  else
9487    ac_res=-l$ac_lib
9488    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9489  fi
9490  rm -f conftest.$ac_objext conftest$ac_exeext
9491if { (ac_try="$ac_link"
9492case "(($ac_try" in
9493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494  *) ac_try_echo=$ac_try;;
9495esac
9496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497$as_echo "$ac_try_echo") >&5
9498  (eval "$ac_link") 2>conftest.er1
9499  ac_status=$?
9500  grep -v '^ *+' conftest.er1 >conftest.err
9501  rm -f conftest.er1
9502  cat conftest.err >&5
9503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504  (exit $ac_status); } && {
9505	 test -z "$ac_c_werror_flag" ||
9506	 test ! -s conftest.err
9507       } && test -s conftest$ac_exeext && {
9508	 test "$cross_compiling" = yes ||
9509	 $as_test_x conftest$ac_exeext
9510       }; then
9511  ac_cv_search_wcscpy=$ac_res
9512else
9513  $as_echo "$as_me: failed program was:" >&5
9514sed 's/^/| /' conftest.$ac_ext >&5
9515
9516
9517fi
9518
9519rm -rf conftest.dSYM
9520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521      conftest$ac_exeext
9522  if test "${ac_cv_search_wcscpy+set}" = set; then
9523  break
9524fi
9525done
9526if test "${ac_cv_search_wcscpy+set}" = set; then
9527  :
9528else
9529  ac_cv_search_wcscpy=no
9530fi
9531rm conftest.$ac_ext
9532LIBS=$ac_func_search_save_LIBS
9533fi
9534{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_wcscpy" >&5
9535$as_echo "$ac_cv_search_wcscpy" >&6; }
9536ac_res=$ac_cv_search_wcscpy
9537if test "$ac_res" != no; then
9538  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9539
9540fi
9541
9542    if test "$ac_cv_search_wcscpy" != no; then
9543      U_HAVE_WCSCPY=1
9544    else
9545      U_HAVE_WCSCPY=0
9546    fi
9547fi
9548
9549
9550
9551# The cast to long int works around a bug in the HP C Compiler
9552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9554# This bug is HP SR number 8606223364.
9555{ $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
9556$as_echo_n "checking size of wchar_t... " >&6; }
9557if test "${ac_cv_sizeof_wchar_t+set}" = set; then
9558  $as_echo_n "(cached) " >&6
9559else
9560  if test "$cross_compiling" = yes; then
9561  # Depending upon the size, compute the lo and hi bounds.
9562cat >conftest.$ac_ext <<_ACEOF
9563/* confdefs.h.  */
9564_ACEOF
9565cat confdefs.h >>conftest.$ac_ext
9566cat >>conftest.$ac_ext <<_ACEOF
9567/* end confdefs.h.  */
9568
9569#if STDC_HEADERS
9570#include <stddef.h>
9571#endif
9572#include <stdlib.h>
9573#if HAVE_WCHAR_H
9574#include <string.h>
9575#include <wchar.h>
9576#endif
9577
9578int
9579main ()
9580{
9581static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
9582test_array [0] = 0
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588rm -f conftest.$ac_objext
9589if { (ac_try="$ac_compile"
9590case "(($ac_try" in
9591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592  *) ac_try_echo=$ac_try;;
9593esac
9594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9595$as_echo "$ac_try_echo") >&5
9596  (eval "$ac_compile") 2>conftest.er1
9597  ac_status=$?
9598  grep -v '^ *+' conftest.er1 >conftest.err
9599  rm -f conftest.er1
9600  cat conftest.err >&5
9601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602  (exit $ac_status); } && {
9603	 test -z "$ac_c_werror_flag" ||
9604	 test ! -s conftest.err
9605       } && test -s conftest.$ac_objext; then
9606  ac_lo=0 ac_mid=0
9607  while :; do
9608    cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h.  */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h.  */
9614
9615#if STDC_HEADERS
9616#include <stddef.h>
9617#endif
9618#include <stdlib.h>
9619#if HAVE_WCHAR_H
9620#include <string.h>
9621#include <wchar.h>
9622#endif
9623
9624int
9625main ()
9626{
9627static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
9628test_array [0] = 0
9629
9630  ;
9631  return 0;
9632}
9633_ACEOF
9634rm -f conftest.$ac_objext
9635if { (ac_try="$ac_compile"
9636case "(($ac_try" in
9637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638  *) ac_try_echo=$ac_try;;
9639esac
9640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641$as_echo "$ac_try_echo") >&5
9642  (eval "$ac_compile") 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } && {
9649	 test -z "$ac_c_werror_flag" ||
9650	 test ! -s conftest.err
9651       } && test -s conftest.$ac_objext; then
9652  ac_hi=$ac_mid; break
9653else
9654  $as_echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657	ac_lo=`expr $ac_mid + 1`
9658			if test $ac_lo -le $ac_mid; then
9659			  ac_lo= ac_hi=
9660			  break
9661			fi
9662			ac_mid=`expr 2 '*' $ac_mid + 1`
9663fi
9664
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666  done
9667else
9668  $as_echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671	cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h.  */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h.  */
9677
9678#if STDC_HEADERS
9679#include <stddef.h>
9680#endif
9681#include <stdlib.h>
9682#if HAVE_WCHAR_H
9683#include <string.h>
9684#include <wchar.h>
9685#endif
9686
9687int
9688main ()
9689{
9690static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
9691test_array [0] = 0
9692
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697rm -f conftest.$ac_objext
9698if { (ac_try="$ac_compile"
9699case "(($ac_try" in
9700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701  *) ac_try_echo=$ac_try;;
9702esac
9703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9704$as_echo "$ac_try_echo") >&5
9705  (eval "$ac_compile") 2>conftest.er1
9706  ac_status=$?
9707  grep -v '^ *+' conftest.er1 >conftest.err
9708  rm -f conftest.er1
9709  cat conftest.err >&5
9710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711  (exit $ac_status); } && {
9712	 test -z "$ac_c_werror_flag" ||
9713	 test ! -s conftest.err
9714       } && test -s conftest.$ac_objext; then
9715  ac_hi=-1 ac_mid=-1
9716  while :; do
9717    cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h.  */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h.  */
9723
9724#if STDC_HEADERS
9725#include <stddef.h>
9726#endif
9727#include <stdlib.h>
9728#if HAVE_WCHAR_H
9729#include <string.h>
9730#include <wchar.h>
9731#endif
9732
9733int
9734main ()
9735{
9736static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
9737test_array [0] = 0
9738
9739  ;
9740  return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext
9744if { (ac_try="$ac_compile"
9745case "(($ac_try" in
9746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747  *) ac_try_echo=$ac_try;;
9748esac
9749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750$as_echo "$ac_try_echo") >&5
9751  (eval "$ac_compile") 2>conftest.er1
9752  ac_status=$?
9753  grep -v '^ *+' conftest.er1 >conftest.err
9754  rm -f conftest.er1
9755  cat conftest.err >&5
9756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); } && {
9758	 test -z "$ac_c_werror_flag" ||
9759	 test ! -s conftest.err
9760       } && test -s conftest.$ac_objext; then
9761  ac_lo=$ac_mid; break
9762else
9763  $as_echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766	ac_hi=`expr '(' $ac_mid ')' - 1`
9767			if test $ac_mid -le $ac_hi; then
9768			  ac_lo= ac_hi=
9769			  break
9770			fi
9771			ac_mid=`expr 2 '*' $ac_mid`
9772fi
9773
9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775  done
9776else
9777  $as_echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
9780	ac_lo= ac_hi=
9781fi
9782
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784fi
9785
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787# Binary search between lo and hi bounds.
9788while test "x$ac_lo" != "x$ac_hi"; do
9789  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9790  cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h.  */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h.  */
9796
9797#if STDC_HEADERS
9798#include <stddef.h>
9799#endif
9800#include <stdlib.h>
9801#if HAVE_WCHAR_H
9802#include <string.h>
9803#include <wchar.h>
9804#endif
9805
9806int
9807main ()
9808{
9809static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
9810test_array [0] = 0
9811
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext
9817if { (ac_try="$ac_compile"
9818case "(($ac_try" in
9819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820  *) ac_try_echo=$ac_try;;
9821esac
9822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823$as_echo "$ac_try_echo") >&5
9824  (eval "$ac_compile") 2>conftest.er1
9825  ac_status=$?
9826  grep -v '^ *+' conftest.er1 >conftest.err
9827  rm -f conftest.er1
9828  cat conftest.err >&5
9829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } && {
9831	 test -z "$ac_c_werror_flag" ||
9832	 test ! -s conftest.err
9833       } && test -s conftest.$ac_objext; then
9834  ac_hi=$ac_mid
9835else
9836  $as_echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839	ac_lo=`expr '(' $ac_mid ')' + 1`
9840fi
9841
9842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843done
9844case $ac_lo in
9845?*) ac_cv_sizeof_wchar_t=$ac_lo;;
9846'') if test "$ac_cv_type_wchar_t" = yes; then
9847     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9849{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
9850See \`config.log' for more details." >&5
9851$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
9852See \`config.log' for more details." >&2;}
9853   { (exit 77); exit 77; }; }; }
9854   else
9855     ac_cv_sizeof_wchar_t=0
9856   fi ;;
9857esac
9858else
9859  cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h.  */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h.  */
9865
9866#if STDC_HEADERS
9867#include <stddef.h>
9868#endif
9869#include <stdlib.h>
9870#if HAVE_WCHAR_H
9871#include <string.h>
9872#include <wchar.h>
9873#endif
9874
9875static long int longval () { return (long int) (sizeof (wchar_t)); }
9876static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
9877#include <stdio.h>
9878#include <stdlib.h>
9879int
9880main ()
9881{
9882
9883  FILE *f = fopen ("conftest.val", "w");
9884  if (! f)
9885    return 1;
9886  if (((long int) (sizeof (wchar_t))) < 0)
9887    {
9888      long int i = longval ();
9889      if (i != ((long int) (sizeof (wchar_t))))
9890	return 1;
9891      fprintf (f, "%ld", i);
9892    }
9893  else
9894    {
9895      unsigned long int i = ulongval ();
9896      if (i != ((long int) (sizeof (wchar_t))))
9897	return 1;
9898      fprintf (f, "%lu", i);
9899    }
9900  /* Do not output a trailing newline, as this causes \r\n confusion
9901     on some platforms.  */
9902  return ferror (f) || fclose (f) != 0;
9903
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908rm -f conftest$ac_exeext
9909if { (ac_try="$ac_link"
9910case "(($ac_try" in
9911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912  *) ac_try_echo=$ac_try;;
9913esac
9914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9915$as_echo "$ac_try_echo") >&5
9916  (eval "$ac_link") 2>&5
9917  ac_status=$?
9918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9920  { (case "(($ac_try" in
9921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922  *) ac_try_echo=$ac_try;;
9923esac
9924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9925$as_echo "$ac_try_echo") >&5
9926  (eval "$ac_try") 2>&5
9927  ac_status=$?
9928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929  (exit $ac_status); }; }; then
9930  ac_cv_sizeof_wchar_t=`cat conftest.val`
9931else
9932  $as_echo "$as_me: program exited with status $ac_status" >&5
9933$as_echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936( exit $ac_status )
9937if test "$ac_cv_type_wchar_t" = yes; then
9938     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9940{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
9941See \`config.log' for more details." >&5
9942$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
9943See \`config.log' for more details." >&2;}
9944   { (exit 77); exit 77; }; }; }
9945   else
9946     ac_cv_sizeof_wchar_t=0
9947   fi
9948fi
9949rm -rf conftest.dSYM
9950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9951fi
9952rm -f conftest.val
9953fi
9954{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
9955$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
9956
9957
9958
9959cat >>confdefs.h <<_ACEOF
9960#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
9961_ACEOF
9962
9963
9964U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
9965# We do this check to verify that everything is okay.
9966if test $U_SIZEOF_WCHAR_T = 0; then
9967    if test $U_HAVE_WCHAR_H=1; then
9968       { { $as_echo "$as_me:$LINENO: error: There is wchar.h but the size of wchar_t is 0" >&5
9969$as_echo "$as_me: error: There is wchar.h but the size of wchar_t is 0" >&2;}
9970   { (exit 1); exit 1; }; }
9971    fi
9972fi
9973
9974
9975{ $as_echo "$as_me:$LINENO: checking for UTF-16 string literal support" >&5
9976$as_echo_n "checking for UTF-16 string literal support... " >&6; }
9977U_CHECK_UTF16_STRING=1
9978CHECK_UTF16_STRING_RESULT="unknown"
9979case "${host}" in
9980*-*-aix*|powerpc64-*-linux*)
9981    if test "$ac_cv_c_compiler_gnu" = no; then
9982        OLD_CFLAGS="${CFLAGS}"
9983        OLD_CXXFLAGS="${CXXFLAGS}"
9984        CFLAGS="${CFLAGS} -qutf"
9985        CXXFLAGS="${CXXFLAGS} -qutf"
9986        cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992const unsigned short hello[] = u"hello";
9993int
9994main ()
9995{
9996
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001rm -f conftest.$ac_objext
10002if { (ac_try="$ac_compile"
10003case "(($ac_try" in
10004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005  *) ac_try_echo=$ac_try;;
10006esac
10007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10008$as_echo "$ac_try_echo") >&5
10009  (eval "$ac_compile") 2>conftest.er1
10010  ac_status=$?
10011  grep -v '^ *+' conftest.er1 >conftest.err
10012  rm -f conftest.er1
10013  cat conftest.err >&5
10014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015  (exit $ac_status); } && {
10016	 test -z "$ac_c_werror_flag" ||
10017	 test ! -s conftest.err
10018       } && test -s conftest.$ac_objext; then
10019  U_CHECK_UTF16_STRING=1
10020else
10021  $as_echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
10023
10024	U_CHECK_UTF16_STRING=0
10025fi
10026
10027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028        if test "$U_CHECK_UTF16_STRING" = 0; then
10029            CFLAGS="${OLD_CFLAGS}"
10030            CXXFLAGS="${OLD_CXXFLAGS}"
10031        else
10032            CHECK_UTF16_STRING_RESULT="-qutf"
10033        fi
10034    fi
10035    ;;
10036*-*-solaris*)
10037    if test "$ac_cv_c_compiler_gnu" = no; then
10038        OLD_CFLAGS="${CFLAGS}"
10039        OLD_CXXFLAGS="${CXXFLAGS}"
10040        CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
10041        CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
10042        cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h.  */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h.  */
10048const unsigned short hello[] = U"hello";
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057rm -f conftest.$ac_objext
10058if { (ac_try="$ac_compile"
10059case "(($ac_try" in
10060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061  *) ac_try_echo=$ac_try;;
10062esac
10063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10064$as_echo "$ac_try_echo") >&5
10065  (eval "$ac_compile") 2>conftest.er1
10066  ac_status=$?
10067  grep -v '^ *+' conftest.er1 >conftest.err
10068  rm -f conftest.er1
10069  cat conftest.err >&5
10070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); } && {
10072	 test -z "$ac_c_werror_flag" ||
10073	 test ! -s conftest.err
10074       } && test -s conftest.$ac_objext; then
10075  U_CHECK_UTF16_STRING=1
10076else
10077  $as_echo "$as_me: failed program was:" >&5
10078sed 's/^/| /' conftest.$ac_ext >&5
10079
10080	U_CHECK_UTF16_STRING=0
10081fi
10082
10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084        if test "$U_CHECK_UTF16_STRING" = 0; then
10085            CFLAGS="${OLD_CFLAGS}"
10086            CXXFLAGS="${OLD_CXXFLAGS}"
10087        else
10088            CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
10089
10090            # Since we can't detect the availability of this UTF-16 syntax at compile time,
10091            # we depend on configure telling us that we can use it.
10092            # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
10093            # we only use this macro within ICU.
10094            # If an ICU user uses icu-config, this feature will be enabled.
10095            CPPFLAGS="${CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
10096            U_CHECK_UTF16_STRING=0
10097        fi
10098    fi
10099    ;;
10100*-*-hpux*)
10101    if test "$ac_cv_c_compiler_gnu" = no; then
10102        # The option will be detected at compile time without additional compiler options.
10103        CHECK_UTF16_STRING_RESULT="available"
10104    fi
10105    ;;
10106*-*-cygwin)
10107    # wchar_t can be used
10108    CHECK_UTF16_STRING_RESULT="available"
10109    ;;
10110*)
10111    ;;
10112esac
10113{ $as_echo "$as_me:$LINENO: result: $CHECK_UTF16_STRING_RESULT" >&5
10114$as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
10115
10116
10117# Enable/disable extras
10118# Check whether --enable-extras was given.
10119if test "${enable_extras+set}" = set; then
10120  enableval=$enable_extras; case "${enableval}" in
10121		yes) extras=true ;;
10122		no)  extras=false ;;
10123		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extras" >&5
10124$as_echo "$as_me: error: bad value ${enableval} for --enable-extras" >&2;}
10125   { (exit 1); exit 1; }; } ;;
10126		esac
10127else
10128  extras=true
10129fi
10130
10131
10132if test "$extras" = true; then
10133  EXTRAS_TRUE=
10134else
10135  EXTRAS_TRUE='#'
10136fi
10137# Check whether --enable-icuio was given.
10138if test "${enable_icuio+set}" = set; then
10139  enableval=$enable_icuio; case "${enableval}" in
10140		yes) icuio=true ;;
10141		no)  icuio=false ;;
10142		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-icuio" >&5
10143$as_echo "$as_me: error: bad value ${enableval} for --enable-icuio" >&2;}
10144   { (exit 1); exit 1; }; } ;;
10145		esac
10146else
10147  icuio=true
10148fi
10149
10150
10151if test "$icuio" = true; then
10152  ICUIO_TRUE=
10153else
10154  ICUIO_TRUE='#'
10155fi
10156
10157# Enable/disable layout
10158# Check whether --enable-layout was given.
10159if test "${enable_layout+set}" = set; then
10160  enableval=$enable_layout; case "${enableval}" in
10161		yes) layout=true ;;
10162		no)  layout=false ;;
10163		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-layout" >&5
10164$as_echo "$as_me: error: bad value ${enableval} for --enable-layout" >&2;}
10165   { (exit 1); exit 1; }; } ;;
10166		esac
10167else
10168  layout=true
10169fi
10170
10171
10172if test "$layout" = true; then
10173  LAYOUT_TRUE=
10174else
10175  LAYOUT_TRUE='#'
10176fi
10177
10178
10179# Check whether --with-data-packaging was given.
10180if test "${with_data_packaging+set}" = set; then
10181  withval=$with_data_packaging; case "${withval}" in
10182                files|archive|library) datapackaging=$withval ;;
10183		auto) datapackaging=$withval ;;
10184		common) datapackaging=archive ;;
10185		dll) datapackaging=library ;;
10186		static) datapackaging=static ;;
10187		*) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-data-packaging" >&5
10188$as_echo "$as_me: error: bad value ${withval} for --with-data-packaging" >&2;}
10189   { (exit 1); exit 1; }; } ;;
10190		esac
10191else
10192  datapackaging=
10193fi
10194
10195
10196# Note:  'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
10197# thesysconfdir=`eval echo $sysconfdir`
10198thedatadir=`eval echo $datadir`
10199# 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}.
10200pkgicudatadir=$datadir
10201thepkgicudatadir=$thedatadir
10202
10203
10204
10205
10206if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
10207	datapackaging=library
10208fi
10209
10210datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
10211
10212datapackaging_msg="(No explaination for mode $datapackaging.)"
10213
10214datapackaging_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."
10215datapackaging_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."
10216datapackaging_howfound="(unknown)"
10217
10218case "$datapackaging" in
10219    files)
10220    DATA_PACKAGING_MODE=files
10221    datapackaging_msg="ICU data will be stored in individual files."
10222    datapackaging_howfound="$datapackaging_msg_path"
10223    ;;
10224    archive)
10225    DATA_PACKAGING_MODE=common
10226    datapackaging_msg="ICU data will be stored in a single .dat file."
10227    datapackaging_howfound="$datapackaging_msg_path"
10228    ;;
10229    library)
10230    DATA_PACKAGING_MODE=dll
10231    datapackaging_msg="ICU data will be linked with ICU."
10232    if test "$ENABLE_STATIC" = "YES"; then
10233        datapackaging_msg="$datapackaging_msg A static data library will be built. "
10234    fi
10235    if test "$ENABLE_SHARED" = "YES"; then
10236        datapackaging_msg="$datapackaging_msg A shared data library will be built. "
10237    fi
10238    datapackaging_howfound="$datapackaging_msg_set"
10239    ;;
10240#    static)
10241#	DATA_PACKAGING_MODE=static
10242#	;;
10243esac
10244
10245
10246# Sets a library suffix
10247{ $as_echo "$as_me:$LINENO: checking for a library suffix to use" >&5
10248$as_echo_n "checking for a library suffix to use... " >&6; }
10249
10250# Check whether --with-library-suffix was given.
10251if test "${with_library_suffix+set}" = set; then
10252  withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
10253else
10254  ICULIBSUFFIX=
10255fi
10256
10257msg=$ICULIBSUFFIX
10258if test "$msg" = ""; then
10259    msg=none
10260fi
10261{ $as_echo "$as_me:$LINENO: result: $msg" >&5
10262$as_echo "$msg" >&6; }
10263
10264if test "$ICULIBSUFFIX" != ""
10265then
10266    U_HAVE_LIB_SUFFIX=1
10267    ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
10268else
10269    U_HAVE_LIB_SUFFIX=0
10270fi
10271
10272
10273
10274# Enable/disable tests
10275# Check whether --enable-tests was given.
10276if test "${enable_tests+set}" = set; then
10277  enableval=$enable_tests; case "${enableval}" in
10278		yes) tests=true ;;
10279		no)  tests=false ;;
10280		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5
10281$as_echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;}
10282   { (exit 1); exit 1; }; } ;;
10283		esac
10284else
10285  tests=true
10286fi
10287
10288
10289if test "$tests" = true; then
10290  TESTS_TRUE=
10291else
10292  TESTS_TRUE='#'
10293fi
10294
10295# Enable/disable samples
10296# Check whether --enable-samples was given.
10297if test "${enable_samples+set}" = set; then
10298  enableval=$enable_samples; case "${enableval}" in
10299		yes) samples=true ;;
10300		no)  samples=false ;;
10301		*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-samples" >&5
10302$as_echo "$as_me: error: bad value ${enableval} for --enable-samples" >&2;}
10303   { (exit 1); exit 1; }; } ;;
10304		esac
10305else
10306  samples=true
10307fi
10308
10309
10310if test "$samples" = true; then
10311  SAMPLES_TRUE=
10312else
10313  SAMPLES_TRUE='#'
10314fi
10315
10316ICUDATA_CHAR=$U_ENDIAN_CHAR
10317
10318# Platform-specific Makefile setup
10319# set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
10320case "${host}" in
10321	*-*-solaris*) 	platform=U_SOLARIS ;;
10322	*-*-linux*) 	platform=U_LINUX ;;
10323	*-pc-gnu) 	platform=U_HURD ;;
10324	*-*-*bsd*|*-*-dragonfly*) 	platform=U_BSD ;;
10325	*-*-aix*) 	platform=U_AIX ;;
10326	*-*-hpux*) 	platform=U_HPUX ;;
10327	*-apple-darwin*|*-apple-rhapsody*)	platform=U_DARWIN ;;
10328	*-*-cygwin*|*-*-mingw*)	platform=U_CYGWIN ;;
10329	*-*ibm-openedition*|*-*-os390*)	platform=OS390
10330			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
10331				ICUDATA_CHAR="e"
10332			fi ;;
10333	*-*-os400*)	platform=OS400
10334			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
10335				ICUDATA_CHAR="e"
10336			fi ;;
10337	*-*-nto*)	platform=U_QNX ;;
10338	*-dec-osf*) 	platform=U_OSF ;;
10339	*-*-beos)		platform=U_BEOS ;;
10340	*-*-irix*)		platform=U_IRIX ;;
10341	*-ncr-*)		platform=U_MPRAS ;;
10342	*) 		platform=U_UNKNOWN_PLATFORM ;;
10343esac
10344
10345
10346platform_make_fragment_name="$icu_cv_host_frag"
10347platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
10348
10349
10350
10351if test "${FORCE_LIBS}" != ""; then
10352   echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}"  1>&6
10353   LIBS=${FORCE_LIBS}
10354fi
10355
10356
10357# Now that we're done using CPPFLAGS etc. for tests, we can change it
10358# for build.
10359
10360if test $ICU_USE_THREADS -ne 0
10361then
10362    CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
10363    CFLAGS="$CFLAGS \$(THREADSCFLAGS)"
10364    CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)"
10365fi
10366
10367# output the Makefiles
10368ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc 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/genuca/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gennames/Makefile tools/gentest/Makefile tools/gennorm/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile common/unicode/platform.h"
10369
10370cat >confcache <<\_ACEOF
10371# This file is a shell script that caches the results of configure
10372# tests run on this system so they can be shared between configure
10373# scripts and configure runs, see configure's option --config-cache.
10374# It is not useful on other systems.  If it contains results you don't
10375# want to keep, you may remove or edit it.
10376#
10377# config.status only pays attention to the cache file if you give it
10378# the --recheck option to rerun configure.
10379#
10380# `ac_cv_env_foo' variables (set or unset) will be overridden when
10381# loading this file, other *unset* `ac_cv_foo' will be assigned the
10382# following values.
10383
10384_ACEOF
10385
10386# The following way of writing the cache mishandles newlines in values,
10387# but we know of no workaround that is simple, portable, and efficient.
10388# So, we kill variables containing newlines.
10389# Ultrix sh set writes to stderr and can't be redirected directly,
10390# and sets the high bit in the cache file unless we assign to the vars.
10391(
10392  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10393    eval ac_val=\$$ac_var
10394    case $ac_val in #(
10395    *${as_nl}*)
10396      case $ac_var in #(
10397      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10399      esac
10400      case $ac_var in #(
10401      _ | IFS | as_nl) ;; #(
10402      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10403      *) $as_unset $ac_var ;;
10404      esac ;;
10405    esac
10406  done
10407
10408  (set) 2>&1 |
10409    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10410    *${as_nl}ac_space=\ *)
10411      # `set' does not quote correctly, so add quotes (double-quote
10412      # substitution turns \\\\ into \\, and sed turns \\ into \).
10413      sed -n \
10414	"s/'/'\\\\''/g;
10415	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10416      ;; #(
10417    *)
10418      # `set' quotes correctly as required by POSIX, so do not add quotes.
10419      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10420      ;;
10421    esac |
10422    sort
10423) |
10424  sed '
10425     /^ac_cv_env_/b end
10426     t clear
10427     :clear
10428     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10429     t end
10430     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10431     :end' >>confcache
10432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10433  if test -w "$cache_file"; then
10434    test "x$cache_file" != "x/dev/null" &&
10435      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10436$as_echo "$as_me: updating cache $cache_file" >&6;}
10437    cat confcache >$cache_file
10438  else
10439    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10440$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10441  fi
10442fi
10443rm -f confcache
10444
10445test "x$prefix" = xNONE && prefix=$ac_default_prefix
10446# Let make expand exec_prefix.
10447test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10448
10449DEFS=-DHAVE_CONFIG_H
10450
10451ac_libobjs=
10452ac_ltlibobjs=
10453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10454  # 1. Remove the extension, and $U if already installed.
10455  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10456  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10457  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10458  #    will be set to the directory where LIBOBJS objects are built.
10459  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10460  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10461done
10462LIBOBJS=$ac_libobjs
10463
10464LTLIBOBJS=$ac_ltlibobjs
10465
10466
10467
10468
10469: ${CONFIG_STATUS=./config.status}
10470ac_write_fail=0
10471ac_clean_files_save=$ac_clean_files
10472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10473{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10474$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10475cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10476#! $SHELL
10477# Generated by $as_me.
10478# Run this file to recreate the current configuration.
10479# Compiler output produced by configure, useful for debugging
10480# configure, is in config.log if it exists.
10481
10482debug=false
10483ac_cs_recheck=false
10484ac_cs_silent=false
10485SHELL=\${CONFIG_SHELL-$SHELL}
10486_ACEOF
10487
10488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10489## --------------------- ##
10490## M4sh Initialization.  ##
10491## --------------------- ##
10492
10493# Be more Bourne compatible
10494DUALCASE=1; export DUALCASE # for MKS sh
10495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10496  emulate sh
10497  NULLCMD=:
10498  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10499  # is contrary to our usage.  Disable this feature.
10500  alias -g '${1+"$@"}'='"$@"'
10501  setopt NO_GLOB_SUBST
10502else
10503  case `(set -o) 2>/dev/null` in
10504  *posix*) set -o posix ;;
10505esac
10506
10507fi
10508
10509
10510
10511
10512# PATH needs CR
10513# Avoid depending upon Character Ranges.
10514as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10516as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10517as_cr_digits='0123456789'
10518as_cr_alnum=$as_cr_Letters$as_cr_digits
10519
10520as_nl='
10521'
10522export as_nl
10523# Printing a long string crashes Solaris 7 /usr/bin/printf.
10524as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10525as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10526as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10527if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10528  as_echo='printf %s\n'
10529  as_echo_n='printf %s'
10530else
10531  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10532    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10533    as_echo_n='/usr/ucb/echo -n'
10534  else
10535    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10536    as_echo_n_body='eval
10537      arg=$1;
10538      case $arg in
10539      *"$as_nl"*)
10540	expr "X$arg" : "X\\(.*\\)$as_nl";
10541	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10542      esac;
10543      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10544    '
10545    export as_echo_n_body
10546    as_echo_n='sh -c $as_echo_n_body as_echo'
10547  fi
10548  export as_echo_body
10549  as_echo='sh -c $as_echo_body as_echo'
10550fi
10551
10552# The user is always right.
10553if test "${PATH_SEPARATOR+set}" != set; then
10554  PATH_SEPARATOR=:
10555  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10556    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10557      PATH_SEPARATOR=';'
10558  }
10559fi
10560
10561# Support unset when possible.
10562if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10563  as_unset=unset
10564else
10565  as_unset=false
10566fi
10567
10568
10569# IFS
10570# We need space, tab and new line, in precisely that order.  Quoting is
10571# there to prevent editors from complaining about space-tab.
10572# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10573# splitting by setting IFS to empty value.)
10574IFS=" ""	$as_nl"
10575
10576# Find who we are.  Look in the path if we contain no directory separator.
10577case $0 in
10578  *[\\/]* ) as_myself=$0 ;;
10579  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582  IFS=$as_save_IFS
10583  test -z "$as_dir" && as_dir=.
10584  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10585done
10586IFS=$as_save_IFS
10587
10588     ;;
10589esac
10590# We did not find ourselves, most probably we were run as `sh COMMAND'
10591# in which case we are not to be found in the path.
10592if test "x$as_myself" = x; then
10593  as_myself=$0
10594fi
10595if test ! -f "$as_myself"; then
10596  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10597  { (exit 1); exit 1; }
10598fi
10599
10600# Work around bugs in pre-3.0 UWIN ksh.
10601for as_var in ENV MAIL MAILPATH
10602do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10603done
10604PS1='$ '
10605PS2='> '
10606PS4='+ '
10607
10608# NLS nuisances.
10609LC_ALL=C
10610export LC_ALL
10611LANGUAGE=C
10612export LANGUAGE
10613
10614# Required to use basename.
10615if expr a : '\(a\)' >/dev/null 2>&1 &&
10616   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10617  as_expr=expr
10618else
10619  as_expr=false
10620fi
10621
10622if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10623  as_basename=basename
10624else
10625  as_basename=false
10626fi
10627
10628
10629# Name of the executable.
10630as_me=`$as_basename -- "$0" ||
10631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10632	 X"$0" : 'X\(//\)$' \| \
10633	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10634$as_echo X/"$0" |
10635    sed '/^.*\/\([^/][^/]*\)\/*$/{
10636	    s//\1/
10637	    q
10638	  }
10639	  /^X\/\(\/\/\)$/{
10640	    s//\1/
10641	    q
10642	  }
10643	  /^X\/\(\/\).*/{
10644	    s//\1/
10645	    q
10646	  }
10647	  s/.*/./; q'`
10648
10649# CDPATH.
10650$as_unset CDPATH
10651
10652
10653
10654  as_lineno_1=$LINENO
10655  as_lineno_2=$LINENO
10656  test "x$as_lineno_1" != "x$as_lineno_2" &&
10657  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10658
10659  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10660  # uniformly replaced by the line number.  The first 'sed' inserts a
10661  # line-number line after each line using $LINENO; the second 'sed'
10662  # does the real work.  The second script uses 'N' to pair each
10663  # line-number line with the line containing $LINENO, and appends
10664  # trailing '-' during substitution so that $LINENO is not a special
10665  # case at line end.
10666  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10667  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10668  # E. McMahon (1931-1989) for sed's syntax.  :-)
10669  sed -n '
10670    p
10671    /[$]LINENO/=
10672  ' <$as_myself |
10673    sed '
10674      s/[$]LINENO.*/&-/
10675      t lineno
10676      b
10677      :lineno
10678      N
10679      :loop
10680      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10681      t loop
10682      s/-\n.*//
10683    ' >$as_me.lineno &&
10684  chmod +x "$as_me.lineno" ||
10685    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10686   { (exit 1); exit 1; }; }
10687
10688  # Don't try to exec as it changes $[0], causing all sort of problems
10689  # (the dirname of $[0] is not the place where we might find the
10690  # original and so on.  Autoconf is especially sensitive to this).
10691  . "./$as_me.lineno"
10692  # Exit status is that of the last command.
10693  exit
10694}
10695
10696
10697if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10698  as_dirname=dirname
10699else
10700  as_dirname=false
10701fi
10702
10703ECHO_C= ECHO_N= ECHO_T=
10704case `echo -n x` in
10705-n*)
10706  case `echo 'x\c'` in
10707  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10708  *)   ECHO_C='\c';;
10709  esac;;
10710*)
10711  ECHO_N='-n';;
10712esac
10713if expr a : '\(a\)' >/dev/null 2>&1 &&
10714   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10715  as_expr=expr
10716else
10717  as_expr=false
10718fi
10719
10720rm -f conf$$ conf$$.exe conf$$.file
10721if test -d conf$$.dir; then
10722  rm -f conf$$.dir/conf$$.file
10723else
10724  rm -f conf$$.dir
10725  mkdir conf$$.dir 2>/dev/null
10726fi
10727if (echo >conf$$.file) 2>/dev/null; then
10728  if ln -s conf$$.file conf$$ 2>/dev/null; then
10729    as_ln_s='ln -s'
10730    # ... but there are two gotchas:
10731    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10732    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10733    # In both cases, we have to default to `cp -p'.
10734    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10735      as_ln_s='cp -p'
10736  elif ln conf$$.file conf$$ 2>/dev/null; then
10737    as_ln_s=ln
10738  else
10739    as_ln_s='cp -p'
10740  fi
10741else
10742  as_ln_s='cp -p'
10743fi
10744rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10745rmdir conf$$.dir 2>/dev/null
10746
10747if mkdir -p . 2>/dev/null; then
10748  as_mkdir_p=:
10749else
10750  test -d ./-p && rmdir ./-p
10751  as_mkdir_p=false
10752fi
10753
10754if test -x / >/dev/null 2>&1; then
10755  as_test_x='test -x'
10756else
10757  if ls -dL / >/dev/null 2>&1; then
10758    as_ls_L_option=L
10759  else
10760    as_ls_L_option=
10761  fi
10762  as_test_x='
10763    eval sh -c '\''
10764      if test -d "$1"; then
10765	test -d "$1/.";
10766      else
10767	case $1 in
10768	-*)set "./$1";;
10769	esac;
10770	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10771	???[sx]*):;;*)false;;esac;fi
10772    '\'' sh
10773  '
10774fi
10775as_executable_p=$as_test_x
10776
10777# Sed expression to map a string onto a valid CPP name.
10778as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10779
10780# Sed expression to map a string onto a valid variable name.
10781as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10782
10783
10784exec 6>&1
10785
10786# Save the log message, to keep $[0] and so on meaningful, and to
10787# report actual input values of CONFIG_FILES etc. instead of their
10788# values after options handling.
10789ac_log="
10790This file was extended by $as_me, which was
10791generated by GNU Autoconf 2.63.  Invocation command line was
10792
10793  CONFIG_FILES    = $CONFIG_FILES
10794  CONFIG_HEADERS  = $CONFIG_HEADERS
10795  CONFIG_LINKS    = $CONFIG_LINKS
10796  CONFIG_COMMANDS = $CONFIG_COMMANDS
10797  $ $0 $@
10798
10799on `(hostname || uname -n) 2>/dev/null | sed 1q`
10800"
10801
10802_ACEOF
10803
10804case $ac_config_files in *"
10805"*) set x $ac_config_files; shift; ac_config_files=$*;;
10806esac
10807
10808case $ac_config_headers in *"
10809"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10810esac
10811
10812
10813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10814# Files that config.status was made for.
10815config_files="$ac_config_files"
10816config_headers="$ac_config_headers"
10817
10818_ACEOF
10819
10820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10821ac_cs_usage="\
10822\`$as_me' instantiates files from templates according to the
10823current configuration.
10824
10825Usage: $0 [OPTION]... [FILE]...
10826
10827  -h, --help       print this help, then exit
10828  -V, --version    print version number and configuration settings, then exit
10829  -q, --quiet, --silent
10830                   do not print progress messages
10831  -d, --debug      don't remove temporary files
10832      --recheck    update $as_me by reconfiguring in the same conditions
10833      --file=FILE[:TEMPLATE]
10834                   instantiate the configuration file FILE
10835      --header=FILE[:TEMPLATE]
10836                   instantiate the configuration header FILE
10837
10838Configuration files:
10839$config_files
10840
10841Configuration headers:
10842$config_headers
10843
10844Report bugs to <bug-autoconf@gnu.org>."
10845
10846_ACEOF
10847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10848ac_cs_version="\\
10849config.status
10850configured by $0, generated by GNU Autoconf 2.63,
10851  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10852
10853Copyright (C) 2008 Free Software Foundation, Inc.
10854This config.status script is free software; the Free Software Foundation
10855gives unlimited permission to copy, distribute and modify it."
10856
10857ac_pwd='$ac_pwd'
10858srcdir='$srcdir'
10859INSTALL='$INSTALL'
10860test -n "\$AWK" || AWK=awk
10861_ACEOF
10862
10863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10864# The default lists apply if the user does not specify any file.
10865ac_need_defaults=:
10866while test $# != 0
10867do
10868  case $1 in
10869  --*=*)
10870    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10871    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10872    ac_shift=:
10873    ;;
10874  *)
10875    ac_option=$1
10876    ac_optarg=$2
10877    ac_shift=shift
10878    ;;
10879  esac
10880
10881  case $ac_option in
10882  # Handling of the options.
10883  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10884    ac_cs_recheck=: ;;
10885  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10886    $as_echo "$ac_cs_version"; exit ;;
10887  --debug | --debu | --deb | --de | --d | -d )
10888    debug=: ;;
10889  --file | --fil | --fi | --f )
10890    $ac_shift
10891    case $ac_optarg in
10892    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10893    esac
10894    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10895    ac_need_defaults=false;;
10896  --header | --heade | --head | --hea )
10897    $ac_shift
10898    case $ac_optarg in
10899    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10900    esac
10901    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10902    ac_need_defaults=false;;
10903  --he | --h)
10904    # Conflict between --help and --header
10905    { $as_echo "$as_me: error: ambiguous option: $1
10906Try \`$0 --help' for more information." >&2
10907   { (exit 1); exit 1; }; };;
10908  --help | --hel | -h )
10909    $as_echo "$ac_cs_usage"; exit ;;
10910  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10911  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10912    ac_cs_silent=: ;;
10913
10914  # This is an error.
10915  -*) { $as_echo "$as_me: error: unrecognized option: $1
10916Try \`$0 --help' for more information." >&2
10917   { (exit 1); exit 1; }; } ;;
10918
10919  *) ac_config_targets="$ac_config_targets $1"
10920     ac_need_defaults=false ;;
10921
10922  esac
10923  shift
10924done
10925
10926ac_configure_extra_args=
10927
10928if $ac_cs_silent; then
10929  exec 6>/dev/null
10930  ac_configure_extra_args="$ac_configure_extra_args --silent"
10931fi
10932
10933_ACEOF
10934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10935if \$ac_cs_recheck; then
10936  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10937  shift
10938  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10939  CONFIG_SHELL='$SHELL'
10940  export CONFIG_SHELL
10941  exec "\$@"
10942fi
10943
10944_ACEOF
10945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10946exec 5>>config.log
10947{
10948  echo
10949  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10950## Running $as_me. ##
10951_ASBOX
10952  $as_echo "$ac_log"
10953} >&5
10954
10955_ACEOF
10956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10957_ACEOF
10958
10959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10960
10961# Handling of arguments.
10962for ac_config_target in $ac_config_targets
10963do
10964  case $ac_config_target in
10965    "common/icucfg.h") CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;;
10966    "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
10967    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10968    "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
10969    "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
10970    "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
10971    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
10972    "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
10973    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
10974    "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
10975    "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;;
10976    "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
10977    "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
10978    "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
10979    "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
10980    "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
10981    "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
10982    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10983    "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
10984    "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
10985    "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
10986    "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
10987    "tools/genuca/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genuca/Makefile" ;;
10988    "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
10989    "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
10990    "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
10991    "tools/genctd/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;;
10992    "tools/gennames/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennames/Makefile" ;;
10993    "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
10994    "tools/gennorm/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm/Makefile" ;;
10995    "tools/genprops/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genprops/Makefile" ;;
10996    "tools/gencase/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencase/Makefile" ;;
10997    "tools/genbidi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbidi/Makefile" ;;
10998    "tools/genpname/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genpname/Makefile" ;;
10999    "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
11000    "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
11001    "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
11002    "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
11003    "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
11004    "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
11005    "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
11006    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11007    "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
11008    "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
11009    "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
11010    "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
11011    "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
11012    "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
11013    "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
11014    "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
11015    "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
11016    "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
11017    "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
11018    "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
11019    "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
11020    "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
11021    "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
11022    "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
11023    "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
11024    "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
11025    "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
11026    "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
11027    "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
11028    "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;;
11029    "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;;
11030    "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
11031    "common/unicode/platform.h") CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;;
11032
11033  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11034$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11035   { (exit 1); exit 1; }; };;
11036  esac
11037done
11038
11039
11040# If the user did not use the arguments to specify the items to instantiate,
11041# then the envvar interface is used.  Set only those that are not.
11042# We use the long form for the default assignment because of an extremely
11043# bizarre bug on SunOS 4.1.3.
11044if $ac_need_defaults; then
11045  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11046  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11047fi
11048
11049# Have a temporary directory for convenience.  Make it in the build tree
11050# simply because there is no reason against having it here, and in addition,
11051# creating and moving files from /tmp can sometimes cause problems.
11052# Hook for its removal unless debugging.
11053# Note that there is a small window in which the directory will not be cleaned:
11054# after its creation but before its name has been assigned to `$tmp'.
11055$debug ||
11056{
11057  tmp=
11058  trap 'exit_status=$?
11059  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11060' 0
11061  trap '{ (exit 1); exit 1; }' 1 2 13 15
11062}
11063# Create a (secure) tmp directory for tmp files.
11064
11065{
11066  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11067  test -n "$tmp" && test -d "$tmp"
11068}  ||
11069{
11070  tmp=./conf$$-$RANDOM
11071  (umask 077 && mkdir "$tmp")
11072} ||
11073{
11074   $as_echo "$as_me: cannot create a temporary directory in ." >&2
11075   { (exit 1); exit 1; }
11076}
11077
11078# Set up the scripts for CONFIG_FILES section.
11079# No need to generate them if there are no CONFIG_FILES.
11080# This happens for instance with `./config.status config.h'.
11081if test -n "$CONFIG_FILES"; then
11082
11083
11084ac_cr=`echo X |tr X "\015"`
11085ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11086if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11087  ac_cs_awk_cr='\\r'
11088else
11089  ac_cs_awk_cr=$ac_cr
11090fi
11091
11092echo 'BEGIN {' >"$tmp/subs1.awk" &&
11093_ACEOF
11094
11095
11096{
11097  echo "cat >conf$$subs.awk <<_ACEOF" &&
11098  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11099  echo "_ACEOF"
11100} >conf$$subs.sh ||
11101  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11102$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11103   { (exit 1); exit 1; }; }
11104ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11105ac_delim='%!_!# '
11106for ac_last_try in false false false false false :; do
11107  . ./conf$$subs.sh ||
11108    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11109$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11110   { (exit 1); exit 1; }; }
11111
11112  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11113  if test $ac_delim_n = $ac_delim_num; then
11114    break
11115  elif $ac_last_try; then
11116    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11117$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11118   { (exit 1); exit 1; }; }
11119  else
11120    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11121  fi
11122done
11123rm -f conf$$subs.sh
11124
11125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11126cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11127_ACEOF
11128sed -n '
11129h
11130s/^/S["/; s/!.*/"]=/
11131p
11132g
11133s/^[^!]*!//
11134:repl
11135t repl
11136s/'"$ac_delim"'$//
11137t delim
11138:nl
11139h
11140s/\(.\{148\}\).*/\1/
11141t more1
11142s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11143p
11144n
11145b repl
11146:more1
11147s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11148p
11149g
11150s/.\{148\}//
11151t nl
11152:delim
11153h
11154s/\(.\{148\}\).*/\1/
11155t more2
11156s/["\\]/\\&/g; s/^/"/; s/$/"/
11157p
11158b
11159:more2
11160s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11161p
11162g
11163s/.\{148\}//
11164t delim
11165' <conf$$subs.awk | sed '
11166/^[^""]/{
11167  N
11168  s/\n//
11169}
11170' >>$CONFIG_STATUS || ac_write_fail=1
11171rm -f conf$$subs.awk
11172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11173_ACAWK
11174cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11175  for (key in S) S_is_set[key] = 1
11176  FS = ""
11177
11178}
11179{
11180  line = $ 0
11181  nfields = split(line, field, "@")
11182  substed = 0
11183  len = length(field[1])
11184  for (i = 2; i < nfields; i++) {
11185    key = field[i]
11186    keylen = length(key)
11187    if (S_is_set[key]) {
11188      value = S[key]
11189      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11190      len += length(value) + length(field[++i])
11191      substed = 1
11192    } else
11193      len += 1 + keylen
11194  }
11195
11196  print line
11197}
11198
11199_ACAWK
11200_ACEOF
11201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11202if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11203  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11204else
11205  cat
11206fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11207  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11208$as_echo "$as_me: error: could not setup config files machinery" >&2;}
11209   { (exit 1); exit 1; }; }
11210_ACEOF
11211
11212# VPATH may cause trouble with some makes, so we remove $(srcdir),
11213# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11214# trailing colons and then remove the whole line if VPATH becomes empty
11215# (actually we leave an empty line to preserve line numbers).
11216if test "x$srcdir" = x.; then
11217  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11218s/:*\$(srcdir):*/:/
11219s/:*\${srcdir}:*/:/
11220s/:*@srcdir@:*/:/
11221s/^\([^=]*=[	 ]*\):*/\1/
11222s/:*$//
11223s/^[^=]*=[	 ]*$//
11224}'
11225fi
11226
11227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11228fi # test -n "$CONFIG_FILES"
11229
11230# Set up the scripts for CONFIG_HEADERS section.
11231# No need to generate them if there are no CONFIG_HEADERS.
11232# This happens for instance with `./config.status Makefile'.
11233if test -n "$CONFIG_HEADERS"; then
11234cat >"$tmp/defines.awk" <<\_ACAWK ||
11235BEGIN {
11236_ACEOF
11237
11238# Transform confdefs.h into an awk script `defines.awk', embedded as
11239# here-document in config.status, that substitutes the proper values into
11240# config.h.in to produce config.h.
11241
11242# Create a delimiter string that does not exist in confdefs.h, to ease
11243# handling of long lines.
11244ac_delim='%!_!# '
11245for ac_last_try in false false :; do
11246  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11247  if test -z "$ac_t"; then
11248    break
11249  elif $ac_last_try; then
11250    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11251$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11252   { (exit 1); exit 1; }; }
11253  else
11254    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11255  fi
11256done
11257
11258# For the awk script, D is an array of macro values keyed by name,
11259# likewise P contains macro parameters if any.  Preserve backslash
11260# newline sequences.
11261
11262ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11263sed -n '
11264s/.\{148\}/&'"$ac_delim"'/g
11265t rset
11266:rset
11267s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11268t def
11269d
11270:def
11271s/\\$//
11272t bsnl
11273s/["\\]/\\&/g
11274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11275D["\1"]=" \3"/p
11276s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11277d
11278:bsnl
11279s/["\\]/\\&/g
11280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11281D["\1"]=" \3\\\\\\n"\\/p
11282t cont
11283s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11284t cont
11285d
11286:cont
11287n
11288s/.\{148\}/&'"$ac_delim"'/g
11289t clear
11290:clear
11291s/\\$//
11292t bsnlc
11293s/["\\]/\\&/g; s/^/"/; s/$/"/p
11294d
11295:bsnlc
11296s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11297b cont
11298' <confdefs.h | sed '
11299s/'"$ac_delim"'/"\\\
11300"/g' >>$CONFIG_STATUS || ac_write_fail=1
11301
11302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11303  for (key in D) D_is_set[key] = 1
11304  FS = ""
11305}
11306/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11307  line = \$ 0
11308  split(line, arg, " ")
11309  if (arg[1] == "#") {
11310    defundef = arg[2]
11311    mac1 = arg[3]
11312  } else {
11313    defundef = substr(arg[1], 2)
11314    mac1 = arg[2]
11315  }
11316  split(mac1, mac2, "(") #)
11317  macro = mac2[1]
11318  prefix = substr(line, 1, index(line, defundef) - 1)
11319  if (D_is_set[macro]) {
11320    # Preserve the white space surrounding the "#".
11321    print prefix "define", macro P[macro] D[macro]
11322    next
11323  } else {
11324    # Replace #undef with comments.  This is necessary, for example,
11325    # in the case of _POSIX_SOURCE, which is predefined and required
11326    # on some systems where configure will not decide to define it.
11327    if (defundef == "undef") {
11328      print "/*", prefix defundef, macro, "*/"
11329      next
11330    }
11331  }
11332}
11333{ print }
11334_ACAWK
11335_ACEOF
11336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11338$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11339   { (exit 1); exit 1; }; }
11340fi # test -n "$CONFIG_HEADERS"
11341
11342
11343eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11344shift
11345for ac_tag
11346do
11347  case $ac_tag in
11348  :[FHLC]) ac_mode=$ac_tag; continue;;
11349  esac
11350  case $ac_mode$ac_tag in
11351  :[FHL]*:*);;
11352  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11353$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11354   { (exit 1); exit 1; }; };;
11355  :[FH]-) ac_tag=-:-;;
11356  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11357  esac
11358  ac_save_IFS=$IFS
11359  IFS=:
11360  set x $ac_tag
11361  IFS=$ac_save_IFS
11362  shift
11363  ac_file=$1
11364  shift
11365
11366  case $ac_mode in
11367  :L) ac_source=$1;;
11368  :[FH])
11369    ac_file_inputs=
11370    for ac_f
11371    do
11372      case $ac_f in
11373      -) ac_f="$tmp/stdin";;
11374      *) # Look for the file first in the build tree, then in the source tree
11375	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11376	 # because $ac_f cannot contain `:'.
11377	 test -f "$ac_f" ||
11378	   case $ac_f in
11379	   [\\/$]*) false;;
11380	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11381	   esac ||
11382	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11383$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11384   { (exit 1); exit 1; }; };;
11385      esac
11386      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11387      ac_file_inputs="$ac_file_inputs '$ac_f'"
11388    done
11389
11390    # Let's still pretend it is `configure' which instantiates (i.e., don't
11391    # use $as_me), people would be surprised to read:
11392    #    /* config.h.  Generated by config.status.  */
11393    configure_input='Generated from '`
11394	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11395	`' by configure.'
11396    if test x"$ac_file" != x-; then
11397      configure_input="$ac_file.  $configure_input"
11398      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11399$as_echo "$as_me: creating $ac_file" >&6;}
11400    fi
11401    # Neutralize special characters interpreted by sed in replacement strings.
11402    case $configure_input in #(
11403    *\&* | *\|* | *\\* )
11404       ac_sed_conf_input=`$as_echo "$configure_input" |
11405       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11406    *) ac_sed_conf_input=$configure_input;;
11407    esac
11408
11409    case $ac_tag in
11410    *:-:* | *:-) cat >"$tmp/stdin" \
11411      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11412$as_echo "$as_me: error: could not create $ac_file" >&2;}
11413   { (exit 1); exit 1; }; } ;;
11414    esac
11415    ;;
11416  esac
11417
11418  ac_dir=`$as_dirname -- "$ac_file" ||
11419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11420	 X"$ac_file" : 'X\(//\)[^/]' \| \
11421	 X"$ac_file" : 'X\(//\)$' \| \
11422	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11423$as_echo X"$ac_file" |
11424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11425	    s//\1/
11426	    q
11427	  }
11428	  /^X\(\/\/\)[^/].*/{
11429	    s//\1/
11430	    q
11431	  }
11432	  /^X\(\/\/\)$/{
11433	    s//\1/
11434	    q
11435	  }
11436	  /^X\(\/\).*/{
11437	    s//\1/
11438	    q
11439	  }
11440	  s/.*/./; q'`
11441  { as_dir="$ac_dir"
11442  case $as_dir in #(
11443  -*) as_dir=./$as_dir;;
11444  esac
11445  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11446    as_dirs=
11447    while :; do
11448      case $as_dir in #(
11449      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11450      *) as_qdir=$as_dir;;
11451      esac
11452      as_dirs="'$as_qdir' $as_dirs"
11453      as_dir=`$as_dirname -- "$as_dir" ||
11454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11455	 X"$as_dir" : 'X\(//\)[^/]' \| \
11456	 X"$as_dir" : 'X\(//\)$' \| \
11457	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11458$as_echo X"$as_dir" |
11459    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11460	    s//\1/
11461	    q
11462	  }
11463	  /^X\(\/\/\)[^/].*/{
11464	    s//\1/
11465	    q
11466	  }
11467	  /^X\(\/\/\)$/{
11468	    s//\1/
11469	    q
11470	  }
11471	  /^X\(\/\).*/{
11472	    s//\1/
11473	    q
11474	  }
11475	  s/.*/./; q'`
11476      test -d "$as_dir" && break
11477    done
11478    test -z "$as_dirs" || eval "mkdir $as_dirs"
11479  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11480$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11481   { (exit 1); exit 1; }; }; }
11482  ac_builddir=.
11483
11484case "$ac_dir" in
11485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11486*)
11487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11488  # A ".." for each directory in $ac_dir_suffix.
11489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11490  case $ac_top_builddir_sub in
11491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11493  esac ;;
11494esac
11495ac_abs_top_builddir=$ac_pwd
11496ac_abs_builddir=$ac_pwd$ac_dir_suffix
11497# for backward compatibility:
11498ac_top_builddir=$ac_top_build_prefix
11499
11500case $srcdir in
11501  .)  # We are building in place.
11502    ac_srcdir=.
11503    ac_top_srcdir=$ac_top_builddir_sub
11504    ac_abs_top_srcdir=$ac_pwd ;;
11505  [\\/]* | ?:[\\/]* )  # Absolute name.
11506    ac_srcdir=$srcdir$ac_dir_suffix;
11507    ac_top_srcdir=$srcdir
11508    ac_abs_top_srcdir=$srcdir ;;
11509  *) # Relative name.
11510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11511    ac_top_srcdir=$ac_top_build_prefix$srcdir
11512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11513esac
11514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11515
11516
11517  case $ac_mode in
11518  :F)
11519  #
11520  # CONFIG_FILE
11521  #
11522
11523  case $INSTALL in
11524  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11525  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11526  esac
11527_ACEOF
11528
11529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530# If the template does not know about datarootdir, expand it.
11531# FIXME: This hack should be removed a few years after 2.60.
11532ac_datarootdir_hack=; ac_datarootdir_seen=
11533
11534ac_sed_dataroot='
11535/datarootdir/ {
11536  p
11537  q
11538}
11539/@datadir@/p
11540/@docdir@/p
11541/@infodir@/p
11542/@localedir@/p
11543/@mandir@/p
11544'
11545case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11546*datarootdir*) ac_datarootdir_seen=yes;;
11547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11548  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11549$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11550_ACEOF
11551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11552  ac_datarootdir_hack='
11553  s&@datadir@&$datadir&g
11554  s&@docdir@&$docdir&g
11555  s&@infodir@&$infodir&g
11556  s&@localedir@&$localedir&g
11557  s&@mandir@&$mandir&g
11558    s&\\\${datarootdir}&$datarootdir&g' ;;
11559esac
11560_ACEOF
11561
11562# Neutralize VPATH when `$srcdir' = `.'.
11563# Shell code in configure.ac might set extrasub.
11564# FIXME: do we really want to maintain this feature?
11565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11566ac_sed_extra="$ac_vpsub
11567$extrasub
11568_ACEOF
11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11570:t
11571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11572s|@configure_input@|$ac_sed_conf_input|;t t
11573s&@top_builddir@&$ac_top_builddir_sub&;t t
11574s&@top_build_prefix@&$ac_top_build_prefix&;t t
11575s&@srcdir@&$ac_srcdir&;t t
11576s&@abs_srcdir@&$ac_abs_srcdir&;t t
11577s&@top_srcdir@&$ac_top_srcdir&;t t
11578s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11579s&@builddir@&$ac_builddir&;t t
11580s&@abs_builddir@&$ac_abs_builddir&;t t
11581s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11582s&@INSTALL@&$ac_INSTALL&;t t
11583$ac_datarootdir_hack
11584"
11585eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11586  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11587$as_echo "$as_me: error: could not create $ac_file" >&2;}
11588   { (exit 1); exit 1; }; }
11589
11590test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11591  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11592  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11593  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11594which seems to be undefined.  Please make sure it is defined." >&5
11595$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11596which seems to be undefined.  Please make sure it is defined." >&2;}
11597
11598  rm -f "$tmp/stdin"
11599  case $ac_file in
11600  -) cat "$tmp/out" && rm -f "$tmp/out";;
11601  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11602  esac \
11603  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11604$as_echo "$as_me: error: could not create $ac_file" >&2;}
11605   { (exit 1); exit 1; }; }
11606 ;;
11607  :H)
11608  #
11609  # CONFIG_HEADER
11610  #
11611  if test x"$ac_file" != x-; then
11612    {
11613      $as_echo "/* $configure_input  */" \
11614      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11615    } >"$tmp/config.h" \
11616      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11617$as_echo "$as_me: error: could not create $ac_file" >&2;}
11618   { (exit 1); exit 1; }; }
11619    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11620      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11621$as_echo "$as_me: $ac_file is unchanged" >&6;}
11622    else
11623      rm -f "$ac_file"
11624      mv "$tmp/config.h" "$ac_file" \
11625	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11626$as_echo "$as_me: error: could not create $ac_file" >&2;}
11627   { (exit 1); exit 1; }; }
11628    fi
11629  else
11630    $as_echo "/* $configure_input  */" \
11631      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11632      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11633$as_echo "$as_me: error: could not create -" >&2;}
11634   { (exit 1); exit 1; }; }
11635  fi
11636 ;;
11637
11638
11639  esac
11640
11641done # for ac_tag
11642
11643
11644{ (exit 0); exit 0; }
11645_ACEOF
11646chmod +x $CONFIG_STATUS
11647ac_clean_files=$ac_clean_files_save
11648
11649test $ac_write_fail = 0 ||
11650  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11651$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11652   { (exit 1); exit 1; }; }
11653
11654
11655# configure is writing to config.log, and then calls config.status.
11656# config.status does its own redirection, appending to config.log.
11657# Unfortunately, on DOS this fails, as config.log is still kept open
11658# by configure, so config.status won't be able to write to it; its
11659# output is simply discarded.  So we exec the FD to /dev/null,
11660# effectively closing config.log, so it can be properly (re)opened and
11661# appended to by config.status.  When coming back to configure, we
11662# need to make the FD available again.
11663if test "$no_create" != yes; then
11664  ac_cs_success=:
11665  ac_config_status_args=
11666  test "$silent" = yes &&
11667    ac_config_status_args="$ac_config_status_args --quiet"
11668  exec 5>/dev/null
11669  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11670  exec 5>>config.log
11671  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11672  # would make configure fail if this is the last instruction.
11673  $ac_cs_success || { (exit 1); exit 1; }
11674fi
11675if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11676  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11677$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11678fi
11679
11680
11681echo
11682echo "ICU for C/C++ $VERSION is ready to be built."
11683echo "=== Important Notes: ==="
11684
11685if test $ICU_USE_THREADS = 0; then
11686  echo
11687  echo  "** ICU was configured without mutex or thread support. Multithread-safe operation will not be tested. If this is unexpected, then run configure with --enable-threads=yes or check the messages above to see why thread support was not found." 1>&6
11688  echo
11689fi
11690
11691echo "Data Packaging: $datapackaging"
11692echo " This means: $datapackaging_msg"
11693echo " To locate data: $datapackaging_howfound"
11694
11695if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
11696echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
11697else
11698echo "** WARNING: $U_MAKE may not be GNU make."
11699echo "This may cause ICU to fail to build. Please make sure that GNU make"
11700echo "is in your PATH so that the configure script can detect its location."
11701fi
11702
11703{ $as_echo "$as_me:$LINENO: checking the version of \"$U_MAKE\"" >&5
11704$as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
11705if "$U_MAKE" -f "$srcdir/config/gmakever.mk"; then
11706{ $as_echo "$as_me:$LINENO: result: ok" >&5
11707$as_echo "ok" >&6; }
11708else
11709{ $as_echo "$as_me:$LINENO: result: too old or test failed - try upgrading GNU Make" >&5
11710$as_echo "too old or test failed - try upgrading GNU Make" >&6; }
11711fi
11712
11713$as_unset _CXX_CXXSUFFIX
11714