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