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