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