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