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