2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ICU 57.1.
5 # Report bugs to <http://icu-project.org/bugs>.
7 # Copyright (c) 1999-2015, International Business Machines Corporation and others. All Rights Reserved.
10 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
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
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
142 _as_can_reexec
=no
; export _as_can_reexec
;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
151 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec
=; unset _as_can_reexec
;}
164 if test "x$CONFIG_SHELL" = x
; then
165 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required
="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev
/null
; then :
209 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
214 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir
=.
221 for as_base
in sh bash ksh sh5
; do
222 # Try only shells that exist, to save several forks.
223 as_shell
=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
226 CONFIG_SHELL
=$as_shell as_have_required
=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
237 CONFIG_SHELL
=$SHELL as_have_required
=yes
242 if test "x$CONFIG_SHELL" != x
; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
252 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x
$as_have_required = xno
; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x
${ZSH_VERSION+set} = xset
; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: http://icu-project.org/bugs about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
281 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE
= GREP_OPTIONS
=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir
=.
/$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs
="'$as_qdir' $as_dirs"
334 as_dir
=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p
()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
403 as_val
=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status
=$1; test $as_status -eq 0 && as_status
=1
417 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit
$as_status
424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
431 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
443 as_me
=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits
='0123456789'
467 as_cr_alnum
=$as_cr_Letters$as_cr_digits
470 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
471 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x
"$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec
=no
; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C
= ECHO_N
= ECHO_T
=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
518 rm -f conf$$ conf$$.exe conf$$.
file
519 if test -d conf$$.dir
; then
520 rm -f conf$$.dir
/conf$$.
file
523 mkdir conf$$.dir
2>/dev
/null
525 if (echo >conf$$.
file) 2>/dev
/null
; then
526 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
543 rmdir conf$$.dir
2>/dev
/null
545 if mkdir -p .
2>/dev
/null
; then
546 as_mkdir_p
='mkdir -p "$as_dir"'
548 test -d .
/-p && rmdir .
/-p
553 as_executable_p
=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev
/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix
=/usr
/local
575 ac_config_libobj_dir
=.
582 # Identity of this package.
584 PACKAGE_TARNAME
='International Components for Unicode'
585 PACKAGE_VERSION
='57.1'
586 PACKAGE_STRING
='ICU 57.1'
587 PACKAGE_BUGREPORT
='http://icu-project.org/bugs'
588 PACKAGE_URL
='http://icu-project.org'
590 ac_unique_file
="common/unicode/utypes.h"
591 # Factoring default headers for most tests.
592 ac_includes_default
="\
594 #ifdef HAVE_SYS_TYPES_H
595 # include <sys/types.h>
597 #ifdef HAVE_SYS_STAT_H
598 # include <sys/stat.h>
604 # ifdef HAVE_STDLIB_H
609 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #ifdef HAVE_STRINGS_H
615 # include <strings.h>
617 #ifdef HAVE_INTTYPES_H
618 # include <inttypes.h>
627 ac_subst_vars
='UCONFIG_CXXFLAGS
634 platform_make_fragment
635 platform_make_fragment_name
668 U_OVERRIDE_CXX_ALLOCATION
669 U_NL_LANGINFO_CODESET
670 U_HAVE_NL_LANGINFO_CODESET
764 program_transform_name
777 enable_option_checking
804 ac_precious_vars
='build_alias
823 # Initialize some variables set by options.
825 ac_init_version
=false
826 ac_unrecognized_opts
=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name
=s
,x
,x
,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir
='${exec_prefix}/bin'
852 sbindir
='${exec_prefix}/sbin'
853 libexecdir
='${exec_prefix}/libexec'
854 datarootdir
='${prefix}/share'
855 datadir
='${datarootdir}'
856 sysconfdir
='${prefix}/etc'
857 sharedstatedir
='${prefix}/com'
858 localstatedir
='${prefix}/var'
859 includedir
='${prefix}/include'
860 oldincludedir
='/usr/include'
861 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir
='${datarootdir}/info'
867 libdir
='${exec_prefix}/lib'
868 localedir
='${datarootdir}/locale'
869 mandir
='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\
$ac_option
883 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev
=build_alias
;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev
=cache_file
;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 as_fn_error $?
"invalid feature name: $ac_useropt"
931 ac_useropt_orig
=$ac_useropt
932 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep
=', ';;
940 eval enable_
$ac_useropt=no
;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
956 as_fn_error $?
"invalid feature name: $ac_useropt"
957 ac_useropt_orig
=$ac_useropt
958 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep
=', ';;
966 eval enable_
$ac_useropt=\
$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev
=exec_prefix
;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix
=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
981 -help | --help | --hel | --he | -h)
983 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
984 ac_init_help
=recursive
;;
985 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
986 ac_init_help
=short
;;
988 -host | --host | --hos | --ho)
989 ac_prev
=host_alias
;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias
=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 htmldir
=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev
=includedir
;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir
=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir
=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir
=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev
=libexecdir
;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir
=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev
=localedir
;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir
=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev
=localstatedir
;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir
=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir
=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev
=oldincludedir
;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir
=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix
=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev
=program_prefix
;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix
=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev
=program_suffix
;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix
=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev
=program_transform_name
;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name
=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir
=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 sbindir
=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1121 ac_prev
=sharedstatedir
;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 sharedstatedir
=$ac_optarg ;;
1128 -site | --site | --sit)
1130 -site=* | --site=* | --sit=*)
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir
=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev
=sysconfdir
;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir
=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev
=target_alias
;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias
=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version
=: ;;
1157 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1160 as_fn_error $?
"invalid package name: $ac_useropt"
1161 ac_useropt_orig
=$ac_useropt
1162 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=\
$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 as_fn_error $?
"invalid package name: $ac_useropt"
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=no
;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev
=x_includes
;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes
=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev
=x_libraries
;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries
=$ac_optarg ;;
1206 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1211 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\
$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 if test -n "$ac_prev"; then
1232 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $?
"missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val
=\$
$ac_var
1251 # Remove trailing slashes.
1254 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\
$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$
]* | ?
:[\\/]* ) continue;;
1260 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1262 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target
=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x
; then
1274 if test "x$build_alias" = x
; then
1275 cross_compiling
=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1282 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1284 test "$silent" = yes && exec 6>/dev
/null
1287 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di
=`ls -di .` &&
1289 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $?
"working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $?
"pwd does not report name of working directory"
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted
=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir
=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1327 ac_srcdir_defaulted
=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1331 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1333 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1345 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 for ac_var
in $ac_precious_vars; do
1348 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1349 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1350 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1351 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1361 \`configure' configures ICU 57.1 to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/International
1410 Components for Unicode]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1420 --build=BUILD configure
for building on BUILD
[guessed
]
1421 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short
| recursive
) echo "Configuration of ICU 57.1:";;
1432 --disable-option-checking ignore unrecognized
--enable/--with options
1433 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1434 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1435 --enable-debug build debug libraries and
enable the U_DEBUG define default
=no
1436 --enable-release build release libraries default
=yes
1437 --enable-strict compile with strict compiler options default
=yes
1438 --enable-64bit-libs (deprecated
, use
--with-library-bits) build
64-bit libraries default
= platform default
1439 --enable-shared build shared libraries default
=yes
1440 --enable-static build static libraries default
=no
1441 --enable-auto-cleanup enable auto cleanup of libraries default
=no
1442 --enable-draft enable draft APIs
(and internal APIs
) default
=yes
1443 --enable-renaming add a version suffix to symbols default
=yes
1444 --enable-tracing enable function and data tracing default
=no
1445 --enable-plugins enable plugins default
=no
1446 --disable-dyload disable dynamic loading default
=no
1447 --enable-rpath use rpath when linking default is only
if necessary
1448 --enable-weak-threads weakly reference the threading library default
=no
1449 --enable-extras build ICU extras default
=yes
1450 --enable-icuio build ICU
's icuio library default=yes
1451 --enable-layout build ICU's DEPRECATED layout library default
=yes
1452 --enable-layoutex build ICU
's Paragraph Layout library default=same-as-layout.
1453 If not building with the ICU Layout library, then icu-le-hb must be installed via pkg-config.
1454 See http://harfbuzz.org
1455 --enable-tools build ICU's tools default
=yes
1456 --enable-tests build ICU tests default
=yes
1457 --enable-samples build ICU samples default
=yes
1459 Additionally
, the variable FORCE_LIBS may be
set before calling configure.
1460 If
set, it will REPLACE any automatic list of libraries.
1463 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1464 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1465 --with-cross-build=dir specify an absolute path to the build directory of an ICU built
for the current platform default
=no cross dir
1466 --with-library-bits=bits specify how many bits to use
for the library
(32, 64, 64else32
, nochange
) default
=nochange
1467 --with-data-packaging specify how to package ICU data. Possible values
:
1468 files raw files
(.res
, etc
)
1469 archive build a single icudtXX.dat
file
1470 library shared library
(.dll
/.so
/etc.
)
1471 static static library
(.a
/.lib
/etc.
)
1472 auto build shared
if possible
(default
)
1473 See http
://userguide.icu
-project.org
/icudata
for more info.
1474 --with-library-suffix=suffix tag a suffix to the library names default
=
1476 Some influential environment variables
:
1477 CC C compiler
command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1480 nonstandard directory
<lib dir
>
1481 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1482 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1483 you have headers
in a nonstandard directory
<include dir
>
1484 CXX C
++ compiler
command
1485 CXXFLAGS C
++ compiler flags
1486 PKG_CONFIG path to pkg
-config utility
1488 directories to add to pkg
-config's search path
1490 path overriding pkg-config's built
-in search path
1492 C compiler flags
for ICULEHB
, overriding pkg
-config
1494 linker flags
for ICULEHB
, overriding pkg
-config
1497 Use these variables to override the choices made by
`configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to <http://icu-project.org/bugs>.
1501 ICU home page: <http://icu-project.org>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.69
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1571 Copyright (c) 1999-2015, International Business Machines Corporation and others. All Rights Reserved.
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1589 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1590 *) ac_try_echo
=$ac_try;;
1592 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1596 if test -s conftest.err
; then
1597 grep -v '^ *+' conftest.err
>conftest.er1
1598 cat conftest.er1
>&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.
$ac_objext; then :
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.
$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status
$ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_cxx_try_compile LINENO
1619 # ----------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_cxx_try_compile
()
1623 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1624 rm -f conftest.
$ac_objext
1625 if { { ac_try
="$ac_compile"
1627 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_cxx_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_cxx_try_compile
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1665 *) ac_try_echo
=$ac_try;;
1667 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 if test -s conftest.err
; then
1672 grep -v '^ *+' conftest.err
>conftest.er1
1673 cat conftest.er1
>&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i
&& {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.
$ac_ext >&5
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status
$ac_retval
1693 # ac_fn_cxx_try_link LINENO
1694 # -------------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_cxx_try_link
()
1698 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1699 rm -f conftest.
$ac_objext conftest
$ac_exeext
1700 if { { ac_try
="$ac_link"
1702 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_cxx_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1737 } # ac_fn_cxx_try_link
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742 # that executables *can* be run.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1748 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1749 *) ac_try_echo
=$ac_try;;
1751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=$ac_status
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1781 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1782 # --------------------------------------------
1783 # Tries to find the compile-time value of EXPR in a program that includes
1784 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1786 ac_fn_c_compute_int ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if test "$cross_compiling" = yes; then
1790 # Depending upon the size, compute the lo and hi bounds.
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1797 static int test_array [1 - 2 * !(($2) >= 0)];
1799 return test_array [0];
1805 if ac_fn_c_try_compile "$LINENO"; then :
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1814 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1816 return test_array [0];
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_hi=$ac_mid; break
1825 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1826 if test $ac_lo -le $ac_mid; then
1830 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1841 static int test_array [1 - 2 * !(($2) < 0)];
1843 return test_array [0];
1849 if ac_fn_c_try_compile "$LINENO"; then :
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1858 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1860 return test_array [0];
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_lo=$ac_mid; break
1869 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1870 if test $ac_mid -le $ac_hi; then
1874 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 # Binary search between lo and hi bounds.
1885 while test "x$ac_lo" != "x$ac_hi"; do
1886 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1893 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895 return test_array [0];
1901 if ac_fn_c_try_compile "$LINENO"; then :
1904 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 static long int longval () { return $2; }
1917 static unsigned long int ulongval () { return $2; }
1924 FILE *f = fopen ("conftest.val", "w");
1929 long int i = longval ();
1932 fprintf (f, "%ld", i);
1936 unsigned long int i = ulongval ();
1939 fprintf (f, "%lu", i);
1941 /* Do not output a trailing newline, as this causes \r\n confusion
1942 on some platforms. */
1943 return ferror (f) || fclose (f) != 0;
1949 if ac_fn_c_try_run "$LINENO"; then :
1950 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1955 conftest.$ac_objext conftest.beam conftest.$ac_ext
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1962 } # ac_fn_c_compute_int
1964 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists and can be compiled using the include files in
1967 # INCLUDES, setting the cache variable VAR accordingly.
1968 ac_fn_c_check_header_compile ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval \${$3+:} false; then :
1974 $as_echo_n "(cached) " >&6
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1981 if ac_fn_c_try_compile "$LINENO"; then :
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_header_compile
1995 # ac_fn_c_try_link LINENO
1996 # -----------------------
1997 # Try to link conftest.$ac_ext, and return whether this succeeded.
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 rm -f conftest.$ac_objext conftest$ac_exeext
2002 if { { ac_try="$ac_link"
2004 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2005 *) ac_try_echo
=$ac_try;;
2007 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_link") 2>conftest.err
2011 if test -s conftest.err
; then
2012 grep -v '^ *+' conftest.err
>conftest.er1
2013 cat conftest.er1
>&5
2014 mv -f conftest.er1 conftest.err
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && {
2018 test -z "$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2020 } && test -s conftest
$ac_exeext && {
2021 test "$cross_compiling" = yes ||
2022 test -x conftest
$ac_exeext
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.
$ac_ext >&5
2031 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033 # interfere with the next link command; also delete a directory that is
2034 # left behind by Apple's compiler. We do this before executing the actions.
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status
$ac_retval
2039 } # ac_fn_c_try_link
2041 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2044 # the include files in INCLUDES and setting the cache variable VAR
2046 ac_fn_c_check_header_mongrel
()
2048 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2049 if eval \
${$3+:} false
; then :
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \
${$3+:} false
; then :
2053 $as_echo_n "(cached) " >&6
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 # Is the header compilable?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2061 $as_echo_n "checking $2 usability... " >&6; }
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2067 if ac_fn_c_try_compile
"$LINENO"; then :
2068 ac_header_compiler
=yes
2070 ac_header_compiler
=no
2072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2074 $as_echo "$ac_header_compiler" >&6; }
2076 # Is the header present?
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2078 $as_echo_n "checking $2 presence... " >&6; }
2079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 if ac_fn_c_try_cpp
"$LINENO"; then :
2084 ac_header_preproc
=yes
2086 ac_header_preproc
=no
2088 rm -f conftest.err conftest.i conftest.
$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2090 $as_echo "$ac_header_preproc" >&6; }
2092 # So? What about this header?
2093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2096 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2098 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2102 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2104 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2106 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2108 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2110 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2111 ( $as_echo "## ------------------------------------------ ##
2112 ## Report this to http://icu-project.org/bugs ##
2113 ## ------------------------------------------ ##"
2114 ) | sed "s/^/$as_me: WARNING: /" >&2
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \
${$3+:} false
; then :
2120 $as_echo_n "(cached) " >&6
2122 eval "$3=\$ac_header_compiler"
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_header_mongrel
2132 # ac_fn_c_check_func LINENO FUNC VAR
2133 # ----------------------------------
2134 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2135 ac_fn_c_check_func
()
2137 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \
${$3+:} false
; then :
2141 $as_echo_n "(cached) " >&6
2143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2147 #define $2 innocuous_$2
2149 /* System header to define __stub macros and hopefully few prototypes,
2150 which can conflict with char $2 (); below.
2151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2152 <limits.h> exists even on freestanding compilers. */
2155 # include <limits.h>
2157 # include <assert.h>
2162 /* Override any GCC internal prototype to avoid an error.
2163 Use char because int might match the return type of a GCC
2164 builtin and then its argument prototype would still apply. */
2169 /* The GNU C library defines this for functions which it implements
2170 to always fail with ENOSYS. Some functions are actually named
2171 something starting with __ and the normal name is an alias. */
2172 #if defined __stub_$2 || defined __stub___$2
2184 if ac_fn_c_try_link
"$LINENO"; then :
2189 rm -f core conftest.err conftest.
$ac_objext \
2190 conftest
$ac_exeext conftest.
$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_func
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type
()
2205 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if eval \
${$3+:} false
; then :
2209 $as_echo_n "(cached) " >&6
2212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2224 if ac_fn_c_try_compile
"$LINENO"; then :
2225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_type
2252 cat >config.log
<<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2256 It was created by ICU $as_me 57.1, which was
2257 generated by GNU Autoconf 2.69. Invocation command line was
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir
=.
2293 $as_echo "PATH: $as_dir"
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_must_keep_next
=false
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2328 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2333 as_fn_append ac_configure_args1
" '$ac_arg'"
2334 if test $ac_must_keep_next = true
; then
2335 ac_must_keep_next
=false
# Got value, back to normal.
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 -* ) ac_must_keep_next
=true
;;
2349 as_fn_append ac_configure_args
" '$ac_arg'"
2354 { ac_configure_args0
=; unset ac_configure_args0
;}
2355 { ac_configure_args1
=; unset ac_configure_args1
;}
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2367 $as_echo "## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##"
2371 # The following way of writing the cache mishandles newlines in values,
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 $as_echo "## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##"
2407 for ac_var in $ac_subst_vars
2409 eval ac_val=\$$ac_var
2411 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 $as_echo "$ac_var='\''$ac_val'\''"
2417 if test -n "$ac_subst_files"; then
2418 $as_echo "## ------------------- ##
2419 ## File substitutions. ##
2420 ## ------------------- ##"
2422 for ac_var
in $ac_subst_files
2424 eval ac_val
=\$
$ac_var
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 $as_echo "$ac_var='\''$ac_val'\''"
2433 if test -s confdefs.h; then
2434 $as_echo "## ----------- ##
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 for ac_signal
in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest
* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h
<<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 cat >>confdefs.h
<<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 cat >>confdefs.h
<<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 cat >>confdefs.h
<<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 cat >>confdefs.h
<<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 cat >>confdefs.h
<<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2490 if test -n "$CONFIG_SITE"; then
2491 # We do not want a PATH search for config.site.
2492 case $CONFIG_SITE in #((
2493 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2494 */*) ac_site_file1
=$CONFIG_SITE;;
2495 *) ac_site_file1
=.
/$CONFIG_SITE;;
2497 elif test "x$prefix" != xNONE
; then
2498 ac_site_file1
=$prefix/share
/config.site
2499 ac_site_file2
=$prefix/etc
/config.site
2501 ac_site_file1
=$ac_default_prefix/share
/config.site
2502 ac_site_file2
=$ac_default_prefix/etc
/config.site
2504 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2506 test "x$ac_site_file" = xNONE
&& continue
2507 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $?
"failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2526 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2527 *) .
"./$cache_file";;
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2536 # Check that the precious variables saved in the cache have kept the same
2538 ac_cache_corrupted
=false
2539 for ac_var
in $ac_precious_vars; do
2540 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2541 eval ac_new_set
=\
$ac_env_${ac_var}_set
2542 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2543 eval ac_new_val
=\
$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548 ac_cache_corrupted
=: ;;
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552 ac_cache_corrupted
=: ;;
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w
=`echo x $ac_old_val`
2558 ac_new_val_w
=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted
=:
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\
$ac_old_val
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2577 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg
=$ac_var=$ac_new_val ;;
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2586 if $ac_cache_corrupted; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2598 ac_cpp
='$CPP $CPPFLAGS'
2599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2611 # Use custom echo test for newline option
2612 # Current autoconf (2.65) gives incorrect echo newline option
2614 # This may be removed later - mow (June 17, 2010)
2615 ICU_ECHO_C
= ICU_ECHO_N
= ICU_ECHO_T
=
2616 case `/bin/sh -c "echo -n x"` in
2618 case `/bin/sh -c "echo 'x\c'"` in
2619 *c
*) ICU_ECHO_T
=' ';; # ECHO_T is single tab character.
2620 *) ICU_ECHO_C
='\c';;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
2630 $as_echo_n "checking for ICU version numbers... " >&6; }
2632 # Get the ICU version from uversion.h or other headers
2634 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2637 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2639 VERSION
=`geticuversion $srcdir/common/unicode/uvernum.h`
2640 if test x
"$VERSION" = x
; then
2641 as_fn_error $?
"Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2645 #if test "$VERSION" != "$PACKAGE_VERSION"; then
2646 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
2649 UNICODE_VERSION
=`getuversion $srcdir/common/unicode/uchar.h`
2650 if test x
"$UNICODE_VERSION" = x
; then
2651 as_fn_error $?
"Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2653 # Compute a reasonable library version from the release version. This is
2654 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
2655 # has at least a dot in it, so we'll add a .0 if needed.
2656 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2657 LIB_VERSION
=$VERSION
2658 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
2663 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
2667 # Determine the host system
2669 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2670 if test -f "$ac_dir/install-sh"; then
2672 ac_install_sh
="$ac_aux_dir/install-sh -c"
2674 elif test -f "$ac_dir/install.sh"; then
2676 ac_install_sh
="$ac_aux_dir/install.sh -c"
2678 elif test -f "$ac_dir/shtool"; then
2680 ac_install_sh
="$ac_aux_dir/shtool install -c"
2684 if test -z "$ac_aux_dir"; then
2685 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2688 # These three variables are undocumented and unsupported,
2689 # and are intended to be withdrawn in a future Autoconf release.
2690 # They can cause serious problems if a builder's source tree is in a directory
2691 # whose full name contains unusual characters.
2692 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2693 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2694 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697 # Make sure we can run config.sub.
2698 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2699 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2702 $as_echo_n "checking build system type... " >&6; }
2703 if ${ac_cv_build+:} false
; then :
2704 $as_echo_n "(cached) " >&6
2706 ac_build_alias
=$build_alias
2707 test "x$ac_build_alias" = x
&&
2708 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2709 test "x$ac_build_alias" = x
&&
2710 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2711 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2712 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2716 $as_echo "$ac_cv_build" >&6; }
2717 case $ac_cv_build in
2719 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2722 ac_save_IFS
=$IFS; IFS
='-'
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2732 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2736 $as_echo_n "checking host system type... " >&6; }
2737 if ${ac_cv_host+:} false
; then :
2738 $as_echo_n "(cached) " >&6
2740 if test "x$host_alias" = x
; then
2741 ac_cv_host
=$ac_cv_build
2743 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2744 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2749 $as_echo "$ac_cv_host" >&6; }
2752 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2755 ac_save_IFS
=$IFS; IFS
='-'
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2765 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771 # This variable is needed on z/OS because the C++ compiler only recognizes .C
2773 export _CXX_CXXSUFFIX
2775 # Accumulate #defines
2777 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
2778 # They are only needed for building ICU itself. Example: platform stuff
2780 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
2781 # and also a notice is output that they need to be set
2782 # for end-users of ICU also. uconfig.h.prepend is generated
2783 # with, for example, "#define U_DISABLE_RENAMING 1"
2784 # Example: ICU configuration stuff
2786 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
2790 # Check whether to build debug libraries
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2792 $as_echo_n "checking whether to build debug libraries... " >&6; }
2795 # Check whether --enable-debug was given.
2796 if test "${enable_debug+set}" = set; then :
2797 enableval
=$enable_debug; case "${enableval}" in
2798 yes|"") enabled
=yes; ENABLE_DEBUG
=1; CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2804 $as_echo "$enabled" >&6; }
2807 # Check whether to build release libraries
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2809 $as_echo_n "checking whether to build release libraries... " >&6; }
2812 # Check whether --enable-release was given.
2813 if test "${enable_release+set}" = set; then :
2814 enableval
=$enable_release; case "${enableval}" in
2815 no
) enabled
=no
; ENABLE_RELEASE
=0 ;;
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2821 $as_echo "$enabled" >&6; }
2824 # Don't use the default C/CXXFLags
2828 # Checks for compilers
2830 ac_cpp
='$CPP $CPPFLAGS'
2831 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false
; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC
="$CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2874 test -n "$CC" && break
2877 if test -z "$CC"; then
2879 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_prog; ac_word
=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC
="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2918 test -n "$ac_ct_CC" && break
2921 if test "x$ac_ct_CC" = x
; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned
=yes ;;
2935 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $?
"no acceptable C compiler found in \$PATH
2938 See \`config.log' for more details" "$LINENO" 5; }
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944 for ac_option
in --version -v -V -qversion; do
2945 { { ac_try
="$ac_compiler $ac_option >&5"
2947 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 if test -s conftest.err; then
2956 ... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
2960 rm -f conftest.er1 conftest.err
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982 $as_echo_n "checking whether the C compiler works... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989 for ac_file in $ac_files
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2998 if { { ac_try="$ac_link_default"
3000 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3001 *) ac_try_echo
=$ac_try;;
3003 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3014 for ac_file
in $ac_files ''
3016 test -f "$ac_file" || continue
3018 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3021 # We found the default executable, but exeext='' is most
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3027 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3039 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3044 if test -z "$ac_file"; then :
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.
$ac_ext >&5
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error
77 "C compiler cannot create executables
3053 See \`config.log' for more details" "$LINENO" 5; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059 $as_echo_n "checking for C compiler default output file name... " >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061 $as_echo "$ac_file" >&6; }
3062 ac_exeext
=$ac_cv_exeext
3064 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3065 ac_clean_files
=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { { ac_try
="$ac_link"
3070 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3080 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe'), while it won't with
3083 for ac_file
in conftest.exe conftest conftest.
*; do
3084 test -f "$ac_file" || continue
3086 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3087 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details" "$LINENO" 5; }
3098 rm -f conftest conftest
$ac_cv_exeext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100 $as_echo "$ac_cv_exeext" >&6; }
3102 rm -f conftest.
$ac_ext
3103 EXEEXT
=$ac_cv_exeext
3105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3111 FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3118 ac_clean_files
="$ac_clean_files conftest.out"
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 if test "$cross_compiling" != yes; then
3124 { { ac_try
="$ac_link"
3126 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3138 *) ac_try_echo
=$ac_try;;
3140 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3148 if test "$cross_compiling" = maybe
; then
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $?
"cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details" "$LINENO" 5; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160 $as_echo "$cross_compiling" >&6; }
3162 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3163 ac_clean_files
=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if ${ac_cv_objext+:} false
; then :
3167 $as_echo_n "(cached) " >&6
3169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try
="$ac_compile"
3183 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3207 See \
`config.log' for more details" "$LINENO" 5; }
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217 if ${ac_cv_c_compiler_gnu+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3234 if ac_fn_c_try_compile "$LINENO"; then :
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3250 ac_test_CFLAGS=${CFLAGS+set}
3251 ac_save_CFLAGS=$CFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3254 if ${ac_cv_prog_cc_g+:} false; then :
3255 $as_echo_n "(cached) " >&6
3257 ac_save_c_werror_flag=$ac_c_werror_flag
3258 ac_c_werror_flag=yes
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3272 if ac_fn_c_try_compile "$LINENO"; then :
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3287 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 if ac_fn_c_try_compile "$LINENO"; then :
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314 $as_echo "$ac_cv_prog_cc_g" >&6; }
3315 if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317 elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3324 if test "$GCC" = yes; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332 if ${ac_cv_prog_cc_c89+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 ac_cv_prog_cc_c89=no
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3356 s = g (p, va_arg (v,int));
3361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3362 function prototypes and stuff, but not '\xHH' hex character constants.
3363 These don't provoke an error unfortunately, instead are silently treated
3364 as 'x'. The following induces an error, until -std is added to get
3365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3366 array size at least. It's necessary to write '\x00'==0 to get something
3367 that's true only with -std. */
3368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371 inside strings and character constants. */
3373 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375 int test (int i, double x);
3376 struct s1 {int (*f) (int a);};
3377 struct s2 {int (*f) (double a);};
3378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392 CC="$ac_save_CC $ac_arg"
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_c89=$ac_arg
3396 rm -f core conftest.err conftest.$ac_objext
3397 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 rm -f conftest.$ac_ext
3404 case "x$ac_cv_prog_cc_c89" in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407 $as_echo "none needed" >&6; } ;;
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410 $as_echo "unsupported" >&6; } ;;
3412 CC="$CC $ac_cv_prog_cc_c89"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416 if test "x$ac_cv_prog_cc_c89" != xno; then :
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 # Make sure that we try clang++ first, which provides C++11 support.
3427 # The g++ compiler is less likely to support C++11.
3429 ac_cpp='$CXXCPP $CPPFLAGS'
3430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3433 if test -z "$CXX"; then
3434 if test -n "$CCC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CXX+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$CXX"; then
3448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CXX"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3470 $as_echo "$CXX" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3477 test -n "$CXX" && break
3480 if test -z "$CXX"; then
3482 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$ac_ct_CXX"; then
3492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_ac_ct_CXX="$ac_prog"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3512 if test -n "$ac_ct_CXX"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3514 $as_echo "$ac_ct_CXX" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3521 test -n "$ac_ct_CXX" && break
3524 if test "x$ac_ct_CXX" = x; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3539 # Provide some information about the compiler.
3540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3543 for ac_option in --version -v -V -qversion; do
3544 { { ac_try="$ac_compiler $ac_option >&5"
3546 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3547 *) ac_try_echo
=$ac_try;;
3549 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3553 if test -s conftest.err
; then
3555 ... rest of stderr output deleted ...
3556 10q' conftest.err
>conftest.er1
3557 cat conftest.er1
>&5
3559 rm -f conftest.er1 conftest.err
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3565 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3566 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3567 $as_echo_n "(cached) " >&6
3569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3583 if ac_fn_cxx_try_compile
"$LINENO"; then :
3588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3589 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3593 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3594 if test $ac_compiler_gnu = yes; then
3599 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3600 ac_save_CXXFLAGS
=$CXXFLAGS
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3602 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3603 if ${ac_cv_prog_cxx_g+:} false
; then :
3604 $as_echo_n "(cached) " >&6
3606 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3607 ac_cxx_werror_flag
=yes
3610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3621 if ac_fn_cxx_try_compile
"$LINENO"; then :
3622 ac_cv_prog_cxx_g
=yes
3625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3636 if ac_fn_cxx_try_compile
"$LINENO"; then :
3639 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3652 if ac_fn_cxx_try_compile
"$LINENO"; then :
3653 ac_cv_prog_cxx_g
=yes
3655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3660 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3663 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3664 if test "$ac_test_CXXFLAGS" = set; then
3665 CXXFLAGS
=$ac_save_CXXFLAGS
3666 elif test $ac_cv_prog_cxx_g = yes; then
3667 if test "$GXX" = yes; then
3673 if test "$GXX" = yes; then
3680 ac_cpp
='$CPP $CPPFLAGS'
3681 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3686 # pkg-config is needed for harfbuzz support
3694 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3697 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3701 $as_echo_n "(cached) " >&6
3705 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir
=.
3713 for ac_exec_ext
in '' $ac_executable_extensions; do
3714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3727 if test -n "$PKG_CONFIG"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3729 $as_echo "$PKG_CONFIG" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3737 if test -z "$ac_cv_path_PKG_CONFIG"; then
3738 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3739 # Extract the first word of "pkg-config", so it can be a program name with args.
3740 set dummy pkg
-config; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3744 $as_echo_n "(cached) " >&6
3746 case $ac_pt_PKG_CONFIG in
3748 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir
=.
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3770 if test -n "$ac_pt_PKG_CONFIG"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3772 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3778 if test "x$ac_pt_PKG_CONFIG" = x
; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned
=yes ;;
3787 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3790 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3794 if test -n "$PKG_CONFIG"; then
3795 _pkg_min_version
=0.20
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3797 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3798 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3800 $as_echo "yes" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5
3810 $as_echo_n "checking for ICULEHB... " >&6; }
3812 if test -n "$ICULEHB_CFLAGS"; then
3813 pkg_cv_ICULEHB_CFLAGS
="$ICULEHB_CFLAGS"
3814 elif test -n "$PKG_CONFIG"; then
3815 if test -n "$PKG_CONFIG" && \
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3817 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then
3821 pkg_cv_ICULEHB_CFLAGS
=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null`
3822 test "x$?" != "x0" && pkg_failed
=yes
3829 if test -n "$ICULEHB_LIBS"; then
3830 pkg_cv_ICULEHB_LIBS
="$ICULEHB_LIBS"
3831 elif test -n "$PKG_CONFIG"; then
3832 if test -n "$PKG_CONFIG" && \
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3834 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; then
3838 pkg_cv_ICULEHB_LIBS
=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null`
3839 test "x$?" != "x0" && pkg_failed
=yes
3849 if test $pkg_failed = yes; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3854 _pkg_short_errors_supported
=yes
3856 _pkg_short_errors_supported
=no
3858 if test $_pkg_short_errors_supported = yes; then
3859 ICULEHB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-le-hb" 2>&1`
3861 ICULEHB_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-le-hb" 2>&1`
3863 # Put the nasty error message in config.log where it belongs
3864 echo "$ICULEHB_PKG_ERRORS" >&5
3867 elif test $pkg_failed = untried
; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3872 ICULEHB_CFLAGS
=$pkg_cv_ICULEHB_CFLAGS
3873 ICULEHB_LIBS
=$pkg_cv_ICULEHB_LIBS
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3879 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3880 # The release mode use is the default one for autoconf
3881 if test "$GCC" = yes; then
3882 if test "$CFLAGS" = ""; then
3883 if test "$ENABLE_DEBUG" = 1; then
3886 if test "$ENABLE_RELEASE" = 1; then
3887 CFLAGS
="$CFLAGS -O2"
3890 if test "$CXXFLAGS" = ""; then
3891 if test "$ENABLE_DEBUG" = 1; then
3894 if test "$ENABLE_RELEASE" = 1; then
3895 CXXFLAGS
="$CXXFLAGS -O2"
3901 ac_cpp
='$CPP $CPPFLAGS'
3902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3906 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3907 # On Suns, sometimes $CPP names a directory.
3908 if test -n "$CPP" && test -d "$CPP"; then
3911 if test -z "$CPP"; then
3912 if ${ac_cv_prog_CPP+:} false
; then :
3913 $as_echo_n "(cached) " >&6
3915 # Double quotes because CPP needs to be expanded
3916 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 for ac_c_preproc_warn_flag
in '' yes
3921 # Use a header file that comes with gcc, so configuring glibc
3922 # with a fresh cross-compiler works.
3923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924 # <limits.h> exists even on freestanding compilers.
3925 # On the NeXT, cc -E runs the code through the compiler's parser,
3926 # not just through cpp. "Syntax error" is here to catch this case.
3927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3930 # include <limits.h>
3932 # include <assert.h>
3936 if ac_fn_c_try_cpp
"$LINENO"; then :
3939 # Broken: fails on valid input.
3942 rm -f conftest.err conftest.i conftest.
$ac_ext
3944 # OK, works on sane cases. Now check whether nonexistent headers
3945 # can be detected and how.
3946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948 #include <ac_nonexistent.h>
3950 if ac_fn_c_try_cpp
"$LINENO"; then :
3951 # Broken: success on invalid input.
3954 # Passes both tests.
3958 rm -f conftest.err conftest.i conftest.
$ac_ext
3961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962 rm -f conftest.i conftest.err conftest.
$ac_ext
3963 if $ac_preproc_ok; then :
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3976 $as_echo "$CPP" >&6; }
3978 for ac_c_preproc_warn_flag
in '' yes
3980 # Use a header file that comes with gcc, so configuring glibc
3981 # with a fresh cross-compiler works.
3982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3983 # <limits.h> exists even on freestanding compilers.
3984 # On the NeXT, cc -E runs the code through the compiler's parser,
3985 # not just through cpp. "Syntax error" is here to catch this case.
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3989 # include <limits.h>
3991 # include <assert.h>
3995 if ac_fn_c_try_cpp
"$LINENO"; then :
3998 # Broken: fails on valid input.
4001 rm -f conftest.err conftest.i conftest.
$ac_ext
4003 # OK, works on sane cases. Now check whether nonexistent headers
4004 # can be detected and how.
4005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4009 if ac_fn_c_try_cpp
"$LINENO"; then :
4010 # Broken: success on invalid input.
4013 # Passes both tests.
4017 rm -f conftest.err conftest.i conftest.
$ac_ext
4020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4021 rm -f conftest.i conftest.err conftest.
$ac_ext
4022 if $ac_preproc_ok; then :
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4028 See \`config.log' for more details" "$LINENO" 5; }
4032 ac_cpp
='$CPP $CPPFLAGS'
4033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4038 # Find a good install program. We prefer a C program (faster),
4039 # so one script is as good as another. But avoid the broken or
4040 # incompatible versions:
4041 # SysV /etc/install, /usr/sbin/install
4042 # SunOS /usr/etc/install
4043 # IRIX /sbin/install
4045 # AmigaOS /C/install, which installs bootblocks on floppy discs
4046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4049 # OS/2's system install, which has a completely different semantic
4050 # ./install, which can be erroneously created by make from ./install.sh.
4051 # Reject install programs that cannot install multiple files.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4053 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4054 if test -z "$INSTALL"; then
4055 if ${ac_cv_path_install+:} false
; then :
4056 $as_echo_n "(cached) " >&6
4058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir
=.
4063 # Account for people who put trailing slashes in PATH elements.
4064 case $as_dir/ in #((
4065 .
/ | .
// | /[cC
]/* | \
4066 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
4067 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4070 # OSF1 and SCO ODT 3.0 have their own names for install.
4071 # Don't use installbsd from OSF since it installs stuff as root
4073 for ac_prog
in ginstall scoinst
install; do
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4076 if test $ac_prog = install &&
4077 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4078 # AIX install. It has an incompatible calling convention.
4080 elif test $ac_prog = install &&
4081 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4082 # program-specific install script used by HP pwplus--don't use.
4085 rm -rf conftest.one conftest.two conftest.dir
4086 echo one
> conftest.one
4087 echo two
> conftest.two
4089 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4090 test -s conftest.one
&& test -s conftest.two
&&
4091 test -s conftest.dir
/conftest.one
&&
4092 test -s conftest.dir
/conftest.two
4094 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4107 rm -rf conftest.one conftest.two conftest.dir
4110 if test "${ac_cv_path_install+set}" = set; then
4111 INSTALL
=$ac_cv_path_install
4113 # As a last resort, use the slow shell script. Don't cache a
4114 # value for INSTALL within a source directory, because that will
4115 # break other packages using the cache if that directory is
4116 # removed, or if the value is a relative name.
4117 INSTALL
=$ac_install_sh
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4121 $as_echo "$INSTALL" >&6; }
4123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4124 # It thinks the first close brace ends the variable substitution.
4125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4127 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4129 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4135 ac_cpp
='$CXXCPP $CPPFLAGS'
4136 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4152 if ac_fn_cxx_try_link
"$LINENO"; then :
4155 rm -f core conftest.err conftest.
$ac_objext \
4156 conftest
$ac_exeext conftest.
$ac_ext
4158 ac_cpp
='$CPP $CPPFLAGS'
4159 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4164 # make sure install is relative to srcdir - if a script
4165 if test "$srcdir" = "."; then
4166 # If srcdir isn't just ., then (srcdir) is already prepended.
4167 if test "${ac_install_sh}" = "${INSTALL}"; then
4168 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
4172 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4173 #AC_CHECK_PROG(STRIP, strip, strip, true)
4175 # Check for the platform make
4176 for ac_prog
in gmake gnumake
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy
$ac_prog; ac_word
=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_path_U_MAKE+:} false
; then :
4183 $as_echo_n "(cached) " >&6
4187 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_path_U_MAKE
="$as_dir/$ac_word$ac_exec_ext"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 U_MAKE
=$ac_cv_path_U_MAKE
4209 if test -n "$U_MAKE"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
4211 $as_echo "$U_MAKE" >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4218 test -n "$U_MAKE" && break
4220 test -n "$U_MAKE" || U_MAKE
="make"
4226 # Check whether --with-cross-build was given.
4227 if test "${with_cross_build+set}" = set; then :
4228 withval
=$with_cross_build; cross_buildroot
="${withval}"
4234 if test "X$cross_buildroot" = "X"; then
4235 if test "$cross_compiling" = "yes"; then
4236 as_fn_error $?
"Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5
4239 if test -f "${cross_buildroot}/config/icucross.mk"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
4241 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
4243 if test -d "${cross_buildroot}"; then
4244 as_fn_error $?
"${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
4246 as_fn_error $?
"No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
4252 # Check for doxygen to generate documentation
4253 # Extract the first word of "doxygen", so it can be a program name with args.
4254 set dummy doxygen
; ac_word
=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_path_DOXYGEN+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4262 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
4265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4266 as_dummy
="$PATH:/usr/local/bin:/usr/bin"
4267 for as_dir
in $as_dummy
4270 test -z "$as_dir" && as_dir
=.
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 DOXYGEN
=$ac_cv_path_DOXYGEN
4285 if test -n "$DOXYGEN"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4287 $as_echo "$DOXYGEN" >&6; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4295 # Check that the linker is usable
4298 *-*-cygwin*|*-*-mingw*)
4299 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4300 as_fn_error $?
"link.exe is not a valid linker. Your PATH is incorrect.
4301 Please follow the directions in ICU's readme." "$LINENO" 5
4306 # Determine the executable suffix
4307 # We don't use AC_EXEEXT because some compilers output separate debugging
4308 # files, which confuses the AC_EXEEXT macro.
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4310 $as_echo_n "checking checking for executable suffix... " >&6; }
4312 *-*-cygwin*|*-*-mingw*) EXEEXT
=.exe
;;
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4317 $as_echo "$EXEEXT" >&6; }
4320 # Determine how strict we want to be when compiling
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4323 $as_echo_n "checking whether strict compiling is on... " >&6; }
4324 # Check whether --enable-strict was given.
4325 if test "${enable_strict+set}" = set; then :
4326 enableval
=$enable_strict;
4327 if test "$enableval" = no
4329 ac_use_strict_options
=no
4331 ac_use_strict_options
=yes
4335 ac_use_strict_options
=yes
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4339 $as_echo "$ac_use_strict_options" >&6; }
4341 if test "$ac_use_strict_options" = yes
4343 if test "$GCC" = yes
4347 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
4348 # We use -std=c99 to disable the gnu99 defaults and its associated warnings
4349 CFLAGS
="$CFLAGS -std=c99"
4353 CFLAGS
="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
4357 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4359 CFLAGS
="$CFLAGS /W4"
4362 CFLAGS
="$CFLAGS -W4" ;;
4365 if test "$GXX" = yes
4367 CXXFLAGS
="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4371 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4373 CXXFLAGS
="$CXXFLAGS /W4"
4376 CFLAGS
="$CFLAGS -W4" ;;
4382 # Check if we can build and use 64-bit libraries
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4386 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4387 if ${ac_cv_path_GREP+:} false
; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -z "$GREP"; then
4391 ac_path_GREP_found
=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4394 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4397 test -z "$as_dir" && as_dir
=.
4398 for ac_prog
in grep ggrep
; do
4399 for ac_exec_ext
in '' $ac_executable_extensions; do
4400 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p
"$ac_path_GREP" || continue
4402 # Check for GNU ac_path_GREP and select it if it is found.
4403 # Check for GNU $ac_path_GREP
4404 case `"$ac_path_GREP" --version 2>&1` in
4406 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4409 $as_echo_n 0123456789 >"conftest.in"
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'GREP' >> "conftest.nl"
4416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4417 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4418 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_GREP
="$ac_path_GREP"
4422 ac_path_GREP_max
=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4427 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4430 $ac_path_GREP_found && break 3
4435 if test -z "$ac_cv_path_GREP"; then
4436 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 ac_cv_path_GREP
=$GREP
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4444 $as_echo "$ac_cv_path_GREP" >&6; }
4445 GREP
="$ac_cv_path_GREP"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4449 $as_echo_n "checking for egrep... " >&6; }
4450 if ${ac_cv_path_EGREP+:} false
; then :
4451 $as_echo_n "(cached) " >&6
4453 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4454 then ac_cv_path_EGREP
="$GREP -E"
4456 if test -z "$EGREP"; then
4457 ac_path_EGREP_found
=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_prog
in egrep; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4467 as_fn_executable_p
"$ac_path_EGREP" || continue
4468 # Check for GNU ac_path_EGREP and select it if it is found.
4469 # Check for GNU $ac_path_EGREP
4470 case `"$ac_path_EGREP" --version 2>&1` in
4472 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4475 $as_echo_n 0123456789 >"conftest.in"
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'EGREP' >> "conftest.nl"
4482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4483 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4484 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_EGREP
="$ac_path_EGREP"
4488 ac_path_EGREP_max
=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4493 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4496 $ac_path_EGREP_found && break 3
4501 if test -z "$ac_cv_path_EGREP"; then
4502 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 ac_cv_path_EGREP
=$EGREP
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4511 $as_echo "$ac_cv_path_EGREP" >&6; }
4512 EGREP
="$ac_cv_path_EGREP"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4516 $as_echo_n "checking for ANSI C header files... " >&6; }
4517 if ${ac_cv_header_stdc+:} false
; then :
4518 $as_echo_n "(cached) " >&6
4520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4535 if ac_fn_c_try_compile
"$LINENO"; then :
4536 ac_cv_header_stdc
=yes
4538 ac_cv_header_stdc
=no
4540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4542 if test $ac_cv_header_stdc = yes; then
4543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 $EGREP "memchr" >/dev
/null
2>&1; then :
4553 ac_cv_header_stdc
=no
4559 if test $ac_cv_header_stdc = yes; then
4560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "free" >/dev
/null
2>&1; then :
4570 ac_cv_header_stdc
=no
4576 if test $ac_cv_header_stdc = yes; then
4577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4578 if test "$cross_compiling" = yes; then :
4581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 #if ((' ' & 0x0FF) == 0x020)
4586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4589 # define ISLOWER(c) \
4590 (('a' <= (c) && (c) <= 'i') \
4591 || ('j' <= (c) && (c) <= 'r') \
4592 || ('s' <= (c) && (c) <= 'z'))
4593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4601 for (i = 0; i < 256; i++)
4602 if (XOR (islower (i), ISLOWER (i))
4603 || toupper (i) != TOUPPER (i))
4608 if ac_fn_c_try_run
"$LINENO"; then :
4611 ac_cv_header_stdc
=no
4613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4620 $as_echo "$ac_cv_header_stdc" >&6; }
4621 if test $ac_cv_header_stdc = yes; then
4623 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4627 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4628 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4629 inttypes.h stdint.h unistd.h
4631 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4634 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4635 cat >>confdefs.h
<<_ACEOF
4636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4646 ENABLE_64BIT_LIBS
=unknown
4647 ## revisit this for cross-compile.
4649 # Check whether --enable-64bit-libs was given.
4650 if test "${enable_64bit_libs+set}" = set; then :
4651 enableval
=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4652 case "${enableval}" in
4653 no
|false
|32) with_library_bits
=32; ;;
4654 yes|true
|64) with_library_bits
=64else32
;;
4655 nochange
) with_library_bits
=nochange
; ;;
4656 *) as_fn_error $?
"bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4663 # Check whether --with-library-bits was given.
4664 if test "${with_library_bits+set}" = set; then :
4665 withval
=$with_library_bits; case "${withval}" in
4666 ""|nochange
) BITS_REQ
=$withval ;;
4667 32|64|64else32
) BITS_REQ
=$withval ;;
4668 *) as_fn_error $?
"bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4673 # don't use these for cross compiling
4674 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4675 as_fn_error $?
"Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
4677 # The cast to long int works around a bug in the HP C Compiler
4678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4680 # This bug is HP SR number 8606223364.
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4682 $as_echo_n "checking size of void *... " >&6; }
4683 if ${ac_cv_sizeof_void_p+:} false
; then :
4684 $as_echo_n "(cached) " >&6
4686 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4689 if test "$ac_cv_type_void_p" = yes; then
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error
77 "cannot compute sizeof (void *)
4693 See \`config.log' for more details" "$LINENO" 5; }
4695 ac_cv_sizeof_void_p
=0
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4701 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4705 cat >>confdefs.h
<<_ACEOF
4706 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4711 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4712 case $ac_cv_sizeof_void_p in
4713 8) DEFAULT_64BIT
=yes ;;
4714 4) DEFAULT_64BIT
=no
;;
4715 *) DEFAULT_64BIT
=unknown
4719 # 'OK' here means, we can exit any further checking, everything's copa
4722 # do we need to check for buildable/runnable 32 or 64 bit?
4726 # later, can we run the 32/64 bit binaries so made?
4730 if test "$DEFAULT_64BIT" = "yes"; then
4731 # we get 64 bits by default.
4735 # need to look for 32 bit support.
4739 # everyone else is happy.
4743 elif test "$DEFAULT_64BIT" = "no"; then
4744 # not 64 bit by default.
4754 elif test "$DEFAULT_64BIT" = "unknown"; then
4758 64|64else32
) BITS_OK
=no
4760 BITS_CHECK_64
=yes ;;
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4768 $as_echo "$DEFAULT_64BIT" >&6; };
4770 if test "$BITS_OK" != "yes"; then
4771 # not copa. back these up.
4772 CFLAGS_OLD
="${CFLAGS}"
4773 CXXFLAGS_OLD
="${CXXFLAGS}"
4774 LDFLAGS_OLD
="${LDFLAGS}"
4775 ARFLAGS_OLD
="${ARFLAGS}"
4777 CFLAGS_32
="${CFLAGS}"
4778 CXXFLAGS_32
="${CXXFLAGS}"
4779 LDFLAGS_32
="${LDFLAGS}"
4780 ARFLAGS_32
="${ARFLAGS}"
4782 CFLAGS_64
="${CFLAGS}"
4783 CXXFLAGS_64
="${CXXFLAGS}"
4784 LDFLAGS_64
="${LDFLAGS}"
4785 ARFLAGS_64
="${ARFLAGS}"
4787 CAN_BUILD_64
=unknown
4788 CAN_BUILD_32
=unknown
4789 # These results can't be cached because is sets compiler flags.
4790 if test "$BITS_CHECK_64" = "yes"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4792 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4795 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4796 # Note, we don't have to actually check if the options work- we'll try them before using them.
4797 # So, only try actually testing the options, if you are trying to decide between multiple options.
4798 # On exit from the following clauses:
4799 # if CAN_BUILD_64=yes:
4800 # *FLAGS are assumed to contain the right settings for 64bit
4801 # else if CAN_BUILD_64=no: (default)
4802 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4804 if test "$GCC" = yes; then
4805 CFLAGS
="${CFLAGS} -m64"
4806 CXXFLAGS
="${CXXFLAGS} -m64"
4807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4811 if ac_fn_c_try_compile
"$LINENO"; then :
4816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 CFLAGS
="${CFLAGS} -m64"
4822 CXXFLAGS
="${CXXFLAGS} -m64"
4823 if test "$cross_compiling" = yes; then :
4824 CAN_BUILD_64
=unknown
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4830 if ac_fn_c_try_run
"$LINENO"; then :
4835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4839 if test "$CAN_BUILD_64" != yes; then
4840 # Nope. back out changes.
4841 CFLAGS
="${CFLAGS_OLD}"
4842 CXXFLAGS
="${CXXFLAGS_OLD}"
4843 # 2. try xarch=v9 [deprecated]
4844 ## TODO: cross compile: the following won't work.
4845 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
4846 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4847 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4848 if test -z "$SOL64" && test -n "$SPARCV9"; then
4849 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
4850 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4851 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
4858 CFLAGS
="${CFLAGS} -m64"
4859 CXXFLAGS
="${CXXFLAGS} -m64"
4860 if test "$cross_compiling" = yes; then :
4861 CAN_BUILD_64
=unknown
4863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4867 if ac_fn_c_try_run
"$LINENO"; then :
4872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4876 if test "$CAN_BUILD_64" != yes; then
4877 # Nope. back out changes.
4878 CFLAGS
="${CFLAGS_OLD}"
4879 CXXFLAGS
="${CXXFLAGS_OLD}"
4880 # 2. try the older compiler option
4881 ## TODO: cross compile problem
4882 AMD64
=`isainfo -n 2>&1 | grep amd64`
4883 SOL64
=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4884 if test -z "$SOL64" && test -n "$AMD64"; then
4885 CFLAGS
="${CFLAGS} -xtarget=generic64"
4886 CXXFLAGS
="${CXXFLAGS} -xtarget=generic64"
4892 # check for ecc/ecpc compiler support
4893 ## TODO: cross compiler problem
4894 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4895 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4901 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4902 # We only do this check to display the correct answer.
4903 ## TODO: cross compiler problem
4904 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4908 *-*-aix*|powerpc64
-*-linux*)
4909 CFLAGS
="${CFLAGS} -q64"
4910 CXXFLAGS
="${CXXFLAGS} -q64"
4911 LDFLAGS
="${LDFLAGS} -q64"
4912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4916 if ac_fn_c_try_compile
"$LINENO"; then :
4921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4922 if test "$CAN_BUILD_64" = yes; then
4923 # worked- set other options.
4926 # tell AIX what executable mode to use.
4927 ARFLAGS
="${ARFLAGS} -X64"
4932 # First we try the newer +DD64, if that doesn't work,
4933 # try other options.
4935 CFLAGS
="${CFLAGS} +DD64"
4936 CXXFLAGS
="${CXXFLAGS} +DD64"
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4941 if ac_fn_c_try_compile
"$LINENO"; then :
4946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4947 if test "$CAN_BUILD_64" != yes; then
4949 CFLAGS
="${CFLAGS_OLD}"
4950 CXXFLAGS
="${CXXFLAGS_OLD}"
4952 CFLAGS
="${CFLAGS} +DA2.0W"
4953 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
4954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4958 if ac_fn_c_try_compile
"$LINENO"; then :
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4966 *-*ibm
-openedition*|*-*-os390*)
4967 CFLAGS
="${CFLAGS} -Wc,lp64"
4968 CXXFLAGS
="${CXXFLAGS} -Wc,lp64"
4969 LDFLAGS
="${LDFLAGS} -Wl,lp64"
4970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4974 if ac_fn_c_try_compile
"$LINENO"; then :
4979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
4987 $as_echo "$CAN_BUILD_64" >&6; }
4988 if test "$CAN_BUILD_64" = yes; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
4990 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4991 if test "$cross_compiling" = yes; then :
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4998 if ac_fn_c_try_run
"$LINENO"; then :
5003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
5008 $as_echo "$BITS_RUN_64" >&6; };
5010 CFLAGS_64
="${CFLAGS}"
5011 CXXFLAGS_64
="${CXXFLAGS}"
5012 LDFLAGS_64
="${LDFLAGS}"
5013 ARFLAGS_64
="${ARFLAGS}"
5016 CFLAGS
="${CFLAGS_OLD}"
5017 CXXFLAGS
="${CXXFLAGS_OLD}"
5018 LDFLAGS
="${LDFLAGS_OLD}"
5019 ARFLAGS
="${ARFLAGS_OLD}"
5021 if test "$BITS_CHECK_32" = "yes"; then
5022 # see comment under 'if BITS_CHECK_64', above.
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
5024 $as_echo_n "checking how to build 32-bit executables... " >&6; }
5025 if test "$GCC" = yes; then
5026 CFLAGS
="${CFLAGS} -m32"
5027 CXXFLAGS
="${CXXFLAGS} -m32"
5028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5032 if ac_fn_c_try_compile
"$LINENO"; then :
5037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
5040 $as_echo "$CAN_BUILD_32" >&6; }
5041 if test "$CAN_BUILD_32" = yes; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
5043 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
5044 if test "$cross_compiling" = yes; then :
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5051 if ac_fn_c_try_run
"$LINENO"; then :
5056 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5057 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
5061 $as_echo "$BITS_RUN_32" >&6; };
5062 CFLAGS_32
="${CFLAGS}"
5063 CXXFLAGS_32
="${CXXFLAGS}"
5064 LDFLAGS_32
="${LDFLAGS}"
5065 ARFLAGS_32
="${ARFLAGS}"
5068 CFLAGS
="${CFLAGS_OLD}"
5069 CXXFLAGS
="${CXXFLAGS_OLD}"
5070 LDFLAGS
="${LDFLAGS_OLD}"
5071 ARFLAGS
="${ARFLAGS_OLD}"
5075 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
5078 # First, implement 64else32
5079 if test "$BITS_REQ" = "64else32"; then
5080 if test "$BITS_RUN_64" = "yes"; then
5089 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5090 CFLAGS
="${CFLAGS_32}"
5091 CXXFLAGS
="${CXXFLAGS_32}"
5092 LDFLAGS
="${LDFLAGS_32}"
5093 ARFLAGS
="${ARFLAGS_32}"
5095 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5096 CFLAGS
="${CFLAGS_64}"
5097 CXXFLAGS
="${CXXFLAGS_64}"
5098 LDFLAGS
="${LDFLAGS_64}"
5099 ARFLAGS
="${ARFLAGS_64}"
5101 elif test "$BITS_OK" != "yes"; then
5102 as_fn_error $?
"Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
5109 # Determine the Makefile fragment
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
5112 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
5113 if ${icu_cv_host_frag+:} false
; then :
5114 $as_echo_n "(cached) " >&6
5119 if test "$GCC" = yes; then
5120 icu_cv_host_frag
=mh
-solaris-gcc
5122 icu_cv_host_frag
=mh
-solaris
5125 if test "$GCC" = yes; then
5126 icu_cv_host_frag
=mh
-alpha-linux-gcc
5128 icu_cv_host_frag
=mh
-alpha-linux-cc
5131 if test "$GCC" = yes; then
5132 icu_cv_host_frag
=mh
-linux
5134 icu_cv_host_frag
=mh
-linux-va
5136 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag
=mh
-linux ;;
5137 i
[34567]86-*-cygwin)
5138 if test "$GCC" = yes; then
5139 icu_cv_host_frag
=mh
-cygwin
5141 icu_cv_host_frag
=mh
-cygwin-msvc
5144 if test "$GCC" = yes; then
5145 icu_cv_host_frag
=mh
-cygwin64
5147 icu_cv_host_frag
=mh
-cygwin-msvc
5150 if test "$GCC" = yes; then
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5155 #error This is not MinGW64
5165 if ac_fn_c_try_compile
"$LINENO"; then :
5166 icu_cv_host_frag
=mh
-mingw64
5168 icu_cv_host_frag
=mh
-mingw
5170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5173 *-*-mingw*) icu_cv_host_frag
=mh
-msys-msvc ;;
5174 *-*-cygwin) icu_cv_host_frag
=mh
-cygwin-msvc ;;
5177 *-*-*bsd
*|*-*-dragonfly*) icu_cv_host_frag
=mh
-bsd-gcc ;;
5179 if test "$GCC" = yes; then
5180 icu_cv_host_frag
=mh
-aix-gcc
5182 icu_cv_host_frag
=mh
-aix-va
5185 if test "$GCC" = yes; then
5186 icu_cv_host_frag
=mh
-hpux-gcc
5189 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
5192 *-*ibm
-openedition*|*-*-os390*) icu_cv_host_frag
=mh
-os390 ;;
5193 *-*-os400*) icu_cv_host_frag
=mh
-os400 ;;
5194 *-apple-rhapsody*) icu_cv_host_frag
=mh
-darwin ;;
5195 *-apple-darwin*) icu_cv_host_frag
=mh
-darwin ;;
5196 *-*-beos) icu_cv_host_frag
=mh
-beos ;;
5197 *-*-haiku) icu_cv_host_frag
=mh
-haiku ;;
5198 *-*-irix*) icu_cv_host_frag
=mh
-irix ;;
5199 *-dec-osf*) icu_cv_host_frag
=mh
-alpha-osf ;;
5200 *-*-nto*) icu_cv_host_frag
=mh
-qnx ;;
5201 *-ncr-*) icu_cv_host_frag
=mh
-mpras ;;
5202 *) icu_cv_host_frag
=mh
-unknown ;;
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
5208 $as_echo "$icu_cv_host_frag" >&6; }
5211 # Checks for libraries and other host specific stuff
5212 # On HP/UX, don't link to -lm from a shared lib because it isn't
5213 # PIC (at least on 10.2)
5215 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5216 $as_echo_n "checking for floor in -lm... " >&6; }
5217 if ${ac_cv_lib_m_floor+:} false
; then :
5218 $as_echo_n "(cached) " >&6
5220 ac_check_lib_save_LIBS
=$LIBS
5222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5225 /* Override any GCC internal prototype to avoid an error.
5226 Use char because int might match the return type of a GCC
5227 builtin and then its argument prototype would still apply. */
5240 if ac_fn_c_try_link
"$LINENO"; then :
5241 ac_cv_lib_m_floor
=yes
5243 ac_cv_lib_m_floor
=no
5245 rm -f core conftest.err conftest.
$ac_objext \
5246 conftest
$ac_exeext conftest.
$ac_ext
5247 LIBS
=$ac_check_lib_save_LIBS
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5250 $as_echo "$ac_cv_lib_m_floor" >&6; }
5251 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5256 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5257 $as_echo_n "checking for floor in -lm... " >&6; }
5258 if ${ac_cv_lib_m_floor+:} false
; then :
5259 $as_echo_n "(cached) " >&6
5261 ac_check_lib_save_LIBS
=$LIBS
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 /* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply. */
5281 if ac_fn_c_try_link
"$LINENO"; then :
5282 ac_cv_lib_m_floor
=yes
5284 ac_cv_lib_m_floor
=no
5286 rm -f core conftest.err conftest.
$ac_objext \
5287 conftest
$ac_exeext conftest.
$ac_ext
5288 LIBS
=$ac_check_lib_save_LIBS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5291 $as_echo "$ac_cv_lib_m_floor" >&6; }
5292 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5293 cat >>confdefs.h
<<_ACEOF
5305 # Check whether to build shared libraries
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5307 $as_echo_n "checking whether to build shared libraries... " >&6; }
5309 # Check whether --enable-shared was given.
5310 if test "${enable_shared+set}" = set; then :
5311 enableval
=$enable_shared; case "${enableval}" in
5312 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
5317 enabled
=yes; ENABLE_SHARED
=YES
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5322 $as_echo "$enabled" >&6; }
5325 # Check whether to build static libraries
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5327 $as_echo_n "checking whether to build static libraries... " >&6; }
5329 # Check whether --enable-static was given.
5330 if test "${enable_static+set}" = set; then :
5331 enableval
=$enable_static; case "${enableval}" in
5332 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5339 $as_echo "$enabled" >&6; }
5342 # When building release static library, there might be some optimization flags we can use
5343 if test "$ENABLE_STATIC" = "YES"; then
5344 if test "$ENABLE_SHARED" != "YES"; then
5345 if test "$ENABLE_RELEASE" = 1; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5347 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5348 CHECK_STATIC_OPT_FLAG
=no
5350 OLD_CPPFLAGS
="${CPPFLAGS}"
5351 OLD_LDFLAGS
="${LDFLAGS}"
5354 *-linux*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5355 if test "$GCC" = yes; then
5356 CPPFLAGS
="${CPPFLAGS} -ffunction-sections -fdata-sections"
5357 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
5364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5375 if ac_fn_c_try_link
"$LINENO"; then :
5376 CHECK_STATIC_OPT_FLAG
=yes
5378 CHECK_STATIC_OPT_FLAG
=no
5380 rm -f core conftest.err conftest.
$ac_objext \
5381 conftest
$ac_exeext conftest.
$ac_ext
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5383 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5384 if test "$CHECK_STATIC_OPT_FLAG" = no
; then
5385 CPPFLAGS
="${OLD_CPPFLAGS}"
5386 LDFLAGS
="${OLD_LDFLAGS}"
5393 # Check whether to enable auto cleanup of libraries
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5395 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5397 UCLN_NO_AUTO_CLEANUP
=1
5398 # Check whether --enable-auto-cleanup was given.
5399 if test "${enable_auto_cleanup+set}" = set; then :
5400 enableval
=$enable_auto_cleanup; case "${enableval}" in
5402 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5403 UCLN_NO_AUTO_CLEANUP
=0
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5410 $as_echo "$enabled" >&6; }
5413 # MSVC floating-point option
5414 MSVC_RELEASE_FLAG
=""
5415 if test $enabled = yes
5417 if test $icu_cv_host_frag = mh
-cygwin-msvc -o $icu_cv_host_frag = mh
-msys-msvc
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 #if defined _MSC_VER && _MSC_VER >= 1400
5424 Microsoft Visual C++ < 2005
5435 if ac_fn_c_try_compile
"$LINENO"; then :
5436 MSVC_RELEASE_FLAG
="/fp:precise"
5438 MSVC_RELEASE_FLAG
="/Op"
5440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5442 CFLAGS
="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5443 CXXFLAGS
="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5447 # Check whether to enabled draft APIs
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5449 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5451 U_DEFAULT_SHOW_DRAFT
=1
5452 # Check whether --enable-draft was given.
5453 if test "${enable_draft+set}" = set; then :
5454 enableval
=$enable_draft; case "${enableval}" in
5455 no
) enabled
=no
; U_DEFAULT_SHOW_DRAFT
=0;
5456 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5463 $as_echo "$enabled" >&6; }
5464 # Make sure that we can use draft API in ICU.
5465 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5466 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5472 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_RANLIB+:} false
; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$RANLIB"; then
5479 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir
=.
5486 for ac_exec_ext
in '' $ac_executable_extensions; do
5487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 RANLIB
=$ac_cv_prog_RANLIB
5499 if test -n "$RANLIB"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5501 $as_echo "$RANLIB" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_RANLIB"; then
5510 ac_ct_RANLIB
=$RANLIB
5511 # Extract the first word of "ranlib", so it can be a program name with args.
5512 set dummy ranlib
; ac_word
=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_RANLIB"; then
5519 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5539 if test -n "$ac_ct_RANLIB"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5541 $as_echo "$ac_ct_RANLIB" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_RANLIB" = x
; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned
=yes ;;
5556 RANLIB
=$ac_ct_RANLIB
5559 RANLIB
="$ac_cv_prog_RANLIB"
5563 # look for 'ar' the proper way
5564 if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5566 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_AR+:} false
; then :
5570 $as_echo_n "(cached) " >&6
5572 if test -n "$AR"; then
5573 ac_cv_prog_AR
="$AR" # Let the user override the test.
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_exec_ext
in '' $ac_executable_extensions; do
5581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 if test -n "$AR"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5595 $as_echo "$AR" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5603 if test -z "$ac_cv_prog_AR"; then
5605 # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy
ar; ac_word
=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5610 $as_echo_n "(cached) " >&6
5612 if test -n "$ac_ct_AR"; then
5613 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir
=.
5620 for ac_exec_ext
in '' $ac_executable_extensions; do
5621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_AR
="ar"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5635 $as_echo "$ac_ct_AR" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5641 if test "x$ac_ct_AR" = x
; then
5644 case $cross_compiling:$ac_tool_warned in
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned
=yes ;;
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5658 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5660 U_DISABLE_RENAMING
=0
5661 # Check whether --enable-renaming was given.
5662 if test "${enable_renaming+set}" = set; then :
5663 enableval
=$enable_renaming; case "${enableval}" in
5664 yes|"") enabled
=yes ;;
5665 no
) enabled
=no
; U_DISABLE_RENAMING
=1;
5666 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5673 $as_echo "$enabled" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5677 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5680 # Check whether --enable-tracing was given.
5681 if test "${enable_tracing+set}" = set; then :
5682 enableval
=$enable_tracing; case "${enableval}" in
5683 yes|"") enabled
=yes;
5684 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5685 U_ENABLE_TRACING
=1 ;;
5686 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5692 $as_echo "$enabled" >&6; }
5695 # check if elf.h is present.
5696 for ac_header
in elf.h
5698 ac_fn_c_check_header_mongrel
"$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
5699 if test "x$ac_cv_header_elf_h" = xyes
; then :
5700 cat >>confdefs.h
<<_ACEOF
5701 #define HAVE_ELF_H 1
5708 if test "x$ac_cv_header_elf_h" = "xyes"; then
5709 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
5712 # Enable/disable plugins
5713 # Check whether --enable-plugins was given.
5714 if test "${enable_plugins+set}" = set; then :
5715 enableval
=$enable_plugins; case "${enableval}" in
5716 yes) plugins
=true
;;
5717 no
) plugins
=false
;;
5718 *) as_fn_error $?
"bad value ${enableval} for --enable-plugins" "$LINENO" 5 ;;
5726 if test "$plugins" = true
; then
5734 if test "x$plugins" = "xtrue"; then
5735 UCONFIG_CPPFLAGS
="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins. Ignored if plugins disabled." >&5
5742 $as_echo_n "checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... " >&6; }
5743 # Check whether --enable-dyload was given.
5744 if test "${enable_dyload+set}" = set; then :
5745 enableval
=$enable_dyload; case "${enableval}" in
5753 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5760 $as_echo "$enable" >&6; }
5763 if test "$enable" = "yes"; then
5764 for ac_header
in dlfcn.h
5766 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5767 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5768 cat >>confdefs.h
<<_ACEOF
5769 #define HAVE_DLFCN_H 1
5776 #AC_MSG_RESULT($enabled)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5778 $as_echo_n "checking for library containing dlopen... " >&6; }
5779 if ${ac_cv_search_dlopen+:} false
; then :
5780 $as_echo_n "(cached) " >&6
5782 ac_func_search_save_LIBS
=$LIBS
5783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5786 /* Override any GCC internal prototype to avoid an error.
5787 Use char because int might match the return type of a GCC
5788 builtin and then its argument prototype would still apply. */
5801 for ac_lib
in '' dl
; do
5802 if test -z "$ac_lib"; then
5803 ac_res
="none required"
5806 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5808 if ac_fn_c_try_link
"$LINENO"; then :
5809 ac_cv_search_dlopen
=$ac_res
5811 rm -f core conftest.err conftest.
$ac_objext \
5813 if ${ac_cv_search_dlopen+:} false
; then :
5817 if ${ac_cv_search_dlopen+:} false
; then :
5820 ac_cv_search_dlopen
=no
5823 LIBS
=$ac_func_search_save_LIBS
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5826 $as_echo "$ac_cv_search_dlopen" >&6; }
5827 ac_res
=$ac_cv_search_dlopen
5828 if test "$ac_res" != no
; then :
5829 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5833 for ac_func
in dlopen
5835 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5836 if test "x$ac_cv_func_dlopen" = xyes
; then :
5837 cat >>confdefs.h
<<_ACEOF
5838 #define HAVE_DLOPEN 1
5845 if test "x$ac_cv_func_dlopen" != xyes
; then
5846 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5850 # Check for miscellanous functions.
5851 # So, use for putil / tools only.
5852 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5853 for ac_func
in gettimeofday
5855 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5856 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
5857 cat >>confdefs.h
<<_ACEOF
5858 #define HAVE_GETTIMEOFDAY 1
5866 # Check whether to use the evil rpath or not
5867 # Check whether --enable-rpath was given.
5868 if test "${enable_rpath+set}" = set; then :
5869 enableval
=$enable_rpath; case "${enableval}" in
5870 yes|"") ENABLE_RPATH
=YES
;;
5884 ac_cpp
='$CXXCPP $CPPFLAGS'
5885 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5890 $as_echo_n "checking if we have a C++ compiler... " >&6; }
5891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5902 if ac_fn_cxx_try_compile
"$LINENO"; then :
5907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 if test $cxx_okay = yes
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5911 $as_echo "Good" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 as_fn_error $?
"C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5918 if [ "$GXX" = yes ]; then
5919 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x,
5920 # and check that the compiler still works.
5921 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev
/null
2>&1; then
5922 OLD_CXXFLAGS
="${CXXFLAGS}"
5923 CXXFLAGS
="$CXXFLAGS --std=c++0x"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5
5925 $as_echo_n "checking if we have a C++11 compiler... " >&6; }
5926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5937 if ac_fn_cxx_try_compile
"$LINENO"; then :
5942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5
5944 $as_echo "$cxx11_okay" >&6; }
5945 if [ $cxx11_okay = yes ]; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5
5947 $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;}
5948 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} --std=c++0x"
5950 CXXFLAGS
="$OLD_CXXFLAGS"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5956 $as_echo_n "checking if #include <string> works... " >&6; }
5957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5968 if ac_fn_cxx_try_compile
"$LINENO"; then :
5969 ac_cv_header_stdstring
=yes
5971 ac_cv_header_stdstring
=no
5973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5975 $as_echo "$ac_cv_header_stdstring" >&6; }
5976 if test $ac_cv_header_stdstring = yes
5981 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5
5987 $as_echo_n "checking if #include <atomic> works... " >&6; }
5988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5999 if ac_fn_cxx_try_compile
"$LINENO"; then :
6000 ac_cv_header_atomic
=yes
6002 ac_cv_header_atomic
=no
6004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5
6006 $as_echo "$ac_cv_header_atomic" >&6; }
6007 if test $ac_cv_header_atomic = yes
6013 # Make this available via CPPFLAGS
6014 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
6018 ac_cpp
='$CPP $CPPFLAGS'
6019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6024 # Always build ICU with multi-threading support.
6027 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
6028 # and must do this before seaching for pthread_mutex_destroy, or
6029 # we will pick up libpthreads.so not libpthread.so
6030 # If this fails, then we must test for HPUX specials, before
6031 # moving on to a more generic test
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
6034 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
6035 if ${ac_cv_lib_pthread_pthread_attr_init+:} false
; then :
6036 $as_echo_n "(cached) " >&6
6038 ac_check_lib_save_LIBS
=$LIBS
6039 LIBS
="-lpthread $LIBS"
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 /* Override any GCC internal prototype to avoid an error.
6044 Use char because int might match the return type of a GCC
6045 builtin and then its argument prototype would still apply. */
6049 char pthread_attr_init ();
6053 return pthread_attr_init ();
6058 if ac_fn_c_try_link
"$LINENO"; then :
6059 ac_cv_lib_pthread_pthread_attr_init
=yes
6061 ac_cv_lib_pthread_pthread_attr_init
=no
6063 rm -f core conftest.err conftest.
$ac_objext \
6064 conftest
$ac_exeext conftest.
$ac_ext
6065 LIBS
=$ac_check_lib_save_LIBS
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6068 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
6069 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
; then :
6070 cat >>confdefs.h
<<_ACEOF
6071 #define HAVE_LIBPTHREAD 1
6074 LIBS
="-lpthread $LIBS"
6078 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6081 # Locate the right library for POSIX threads. We look for the
6082 # symbols in the libraries first, because on Solaris libc provides
6083 # pthread_create but libpthread has the real code :(
6084 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
6085 # FreeBSD users may need libpthread if they do not have libc_r.
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
6089 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
6090 if ${ac_cv_search_pthread_mutex_destroy+:} false
; then :
6091 $as_echo_n "(cached) " >&6
6093 ac_func_search_save_LIBS
="$LIBS"
6094 ac_cv_search_pthread_mutex_destroy
="no"
6095 for i
in pthread pthreads c_r
; do
6096 LIBS
="-l$i $ac_func_search_save_LIBS"
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6100 /* Override any GCC internal prototype to avoid an error.
6101 Use char because int might match the return type of a GCC
6102 builtin and then its argument prototype would still apply. */
6106 char pthread_mutex_destroy ();
6110 return pthread_mutex_destroy ();
6115 if ac_fn_c_try_link
"$LINENO"; then :
6116 ac_cv_search_pthread_mutex_destroy
="-l$i"
6119 rm -f core conftest.err conftest.
$ac_objext \
6120 conftest
$ac_exeext conftest.
$ac_ext
6122 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 /* Override any GCC internal prototype to avoid an error.
6127 Use char because int might match the return type of a GCC
6128 builtin and then its argument prototype would still apply. */
6132 char pthread_mutex_destroy ();
6136 return pthread_mutex_destroy ();
6141 if ac_fn_c_try_link
"$LINENO"; then :
6142 ac_cv_search_pthread_mutex_destroy
="none required"
6144 rm -f core conftest.err conftest.
$ac_objext \
6145 conftest
$ac_exeext conftest.
$ac_ext
6147 LIBS
="$ac_func_search_save_LIBS"
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
6150 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
6151 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
6152 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
6158 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6163 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
6164 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false
; then :
6165 $as_echo_n "(cached) " >&6
6167 ac_check_lib_save_LIBS
=$LIBS
6168 LIBS
="-lpthread $LIBS"
6169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6178 char pthread_mutex_init ();
6182 return pthread_mutex_init ();
6187 if ac_fn_c_try_link
"$LINENO"; then :
6188 ac_cv_lib_pthread_pthread_mutex_init
=yes
6190 ac_cv_lib_pthread_pthread_mutex_init
=no
6192 rm -f core conftest.err conftest.
$ac_objext \
6193 conftest
$ac_exeext conftest.
$ac_ext
6194 LIBS
=$ac_check_lib_save_LIBS
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6197 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6198 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
; then :
6199 cat >>confdefs.h
<<_ACEOF
6200 #define HAVE_LIBPTHREAD 1
6203 LIBS
="-lpthread $LIBS"
6207 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6212 ac_fn_c_check_func
"$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6213 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
; then :
6218 if test $ac_cv_func_pthread_mutex_lock = yes; then
6222 # Check to see if we are using CygWin with MSVC
6224 *-pc-cygwin*|*-pc-mingw*)
6225 # For gcc, the thread options are set by mh-mingw/mh-cygwin
6226 # For msvc, the thread options are set by runConfigureICU
6230 # Add -mt because it does several nice things on newer compilers.
6231 case "${icu_cv_host_frag}" in
6233 OLD_CXXFLAGS
="${CXXFLAGS}"
6234 CXXFLAGS
="${CXXFLAGS} -mt"
6235 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
6236 CXXFLAGS
="${OLD_CXXFLAGS}"
6238 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -mt"
6244 case "${icu_cv_host_frag}" in
6252 # Check whether --enable-weak-threads was given.
6253 if test "${enable_weak_threads+set}" = set; then :
6254 enableval
=$enable_weak_threads; case "${enableval}" in
6256 LIB_THREAD
="${LIBS%${OLD_LIBS}}"
6260 *) as_fn_error $?
"bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
6268 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6269 # Do this check instead.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6272 $as_echo_n "checking for mmap... " >&6; }
6273 if ${ac_cv_func_mmap_ok+:} false
; then :
6274 $as_echo_n "(cached) " >&6
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6279 #include <sys/mman.h>
6280 #include <sys/stat.h>
6285 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6290 if ac_fn_c_try_link
"$LINENO"; then :
6291 ac_cv_func_mmap_ok
=yes
6293 ac_cv_func_mmap_ok
=no
6295 rm -f core conftest.err conftest.
$ac_objext \
6296 conftest
$ac_exeext conftest.
$ac_ext
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
6300 $as_echo "$ac_cv_func_mmap_ok" >&6; }
6301 if test $ac_cv_func_mmap_ok = yes
6305 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
6310 $as_echo_n "checking for genccode assembly... " >&6; }
6312 # Check to see if genccode can generate simple assembly.
6315 *-linux*|*-kfreebsd*-gnu*|i
*86-*-*bsd
*|i
*86-pc-gnu)
6316 if test "$GCC" = yes; then
6317 # We're using gcc, and the simple -a gcc command line works for genccode
6318 GENCCODE_ASSEMBLY
="-a gcc"
6321 if test "$GCC" = yes; then
6322 # When using gcc, look if we're also using GNU as.
6323 # When using GNU as, the simple -a gcc command line works for genccode.
6324 asv
=`"${CC}" -print-prog-name=as 2>/dev/null`
6325 asv
=`"${asv}" --version 2>/dev/null`
6327 X
*GNU
*) GENCCODE_ASSEMBLY
="-a gcc" ;;
6328 X
*) GENCCODE_ASSEMBLY
="-a sun-x86" ;;
6332 GENCCODE_ASSEMBLY
="-a sun-x86"
6335 GENCCODE_ASSEMBLY
="-a sun"
6338 # There has been some issues with building ICU data on HPUX ia64 aCC
6339 # when using the assemble code setting below. For now, build without
6340 # assemble code for this platform. This will increase the build time.
6341 # GENCCODE_ASSEMBLY="-a aCC-ia64"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
6347 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
6349 # Checks for header files
6350 for ac_header
in inttypes.h
6352 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6353 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
6354 cat >>confdefs.h
<<_ACEOF
6355 #define HAVE_INTTYPES_H 1
6362 if test $ac_cv_header_inttypes_h = no
; then
6364 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6368 if test "$CC" = ccc
; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
6370 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6372 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
6373 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6379 for ac_header
in dirent.h
6381 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6382 if test "x$ac_cv_header_dirent_h" = xyes
; then :
6383 cat >>confdefs.h
<<_ACEOF
6384 #define HAVE_DIRENT_H 1
6391 if test $ac_cv_header_dirent_h = no
; then
6393 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6400 # Check for endianness
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6402 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6403 if ${ac_cv_c_bigendian+:} false
; then :
6404 $as_echo_n "(cached) " >&6
6406 ac_cv_c_bigendian
=unknown
6407 # See if we're dealing with a universal compiler.
6408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #ifndef __APPLE_CC__
6411 not a universal capable compiler
6416 if ac_fn_c_try_compile
"$LINENO"; then :
6418 # Check for potential -arch flags. It is not universal unless
6419 # there are at least two -arch flags with different values.
6422 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6423 if test -n "$ac_prev"; then
6425 i?
86 | x86_64
| ppc
| ppc64
)
6426 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6429 ac_cv_c_bigendian
=universal
6435 elif test "x$ac_word" = "x-arch"; then
6440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6441 if test $ac_cv_c_bigendian = unknown
; then
6442 # See if sys/param.h defines the BYTE_ORDER macro.
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <sys/types.h>
6446 #include <sys/param.h>
6451 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6452 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 # It does; now see whether it defined to BIG_ENDIAN or not.
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <sys/types.h>
6466 #include <sys/param.h>
6471 #if BYTE_ORDER != BIG_ENDIAN
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 ac_cv_c_bigendian
=yes
6482 ac_cv_c_bigendian
=no
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6488 if test $ac_cv_c_bigendian = unknown
; then
6489 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6497 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6505 if ac_fn_c_try_compile
"$LINENO"; then :
6506 # It does; now see whether it defined to _BIG_ENDIAN or not.
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6522 if ac_fn_c_try_compile
"$LINENO"; then :
6523 ac_cv_c_bigendian
=yes
6525 ac_cv_c_bigendian
=no
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6531 if test $ac_cv_c_bigendian = unknown
; then
6532 # Compile a test program.
6533 if test "$cross_compiling" = yes; then :
6534 # Try to guess by grepping values from an object file.
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 short int ascii_mm[] =
6538 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6539 short int ascii_ii[] =
6540 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6541 int use_ascii (int i) {
6542 return ascii_mm[i] + ascii_ii[i];
6544 short int ebcdic_ii[] =
6545 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6546 short int ebcdic_mm[] =
6547 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6548 int use_ebcdic (int i) {
6549 return ebcdic_mm[i] + ebcdic_ii[i];
6556 return use_ascii (foo) == use_ebcdic (foo);
6561 if ac_fn_c_try_compile
"$LINENO"; then :
6562 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6563 ac_cv_c_bigendian
=yes
6565 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6566 if test "$ac_cv_c_bigendian" = unknown
; then
6567 ac_cv_c_bigendian
=no
6569 # finding both strings is unlikely to happen, but who knows?
6570 ac_cv_c_bigendian
=unknown
6574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 $ac_includes_default
6583 /* Are we little or big endian? From Harbison&Steele. */
6587 char c[sizeof (long int)];
6590 return u.c[sizeof (long int) - 1] == 1;
6596 if ac_fn_c_try_run
"$LINENO"; then :
6597 ac_cv_c_bigendian
=no
6599 ac_cv_c_bigendian
=yes
6601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6608 $as_echo "$ac_cv_c_bigendian" >&6; }
6609 case $ac_cv_c_bigendian in #(
6611 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6617 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6621 as_fn_error $?
"unknown endianness
6622 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6625 if test $ac_cv_c_bigendian = no
; then
6634 # Do various POSIX related checks
6635 U_HAVE_NL_LANGINFO_CODESET
=0
6636 U_NL_LANGINFO_CODESET
=-1
6637 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6638 if test "x$ac_cv_func_nl_langinfo" = xyes
; then :
6639 U_HAVE_NL_LANGINFO
=1
6641 U_HAVE_NL_LANGINFO
=0
6644 if test $U_HAVE_NL_LANGINFO -eq 1; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6646 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6647 if ${ac_cv_nl_langinfo_codeset+:} false
; then :
6648 $as_echo_n "(cached) " >&6
6650 ac_cv_nl_langinfo_codeset
="unknown"
6651 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 #include <langinfo.h>
6663 if ac_fn_c_try_link
"$LINENO"; then :
6664 ac_cv_nl_langinfo_codeset
="$a"; break
6666 rm -f core conftest.err conftest.
$ac_objext \
6667 conftest
$ac_exeext conftest.
$ac_ext
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6671 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6672 if test x
$ac_cv_nl_langinfo_codeset != xunknown
6674 U_HAVE_NL_LANGINFO_CODESET
=1
6675 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
6676 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6678 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6681 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6687 # Namespace support checks
6689 ac_cpp
='$CXXCPP $CPPFLAGS'
6690 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6695 $as_echo_n "checking for namespace support... " >&6; }
6696 if ${ac_cv_namespace_ok+:} false
; then :
6697 $as_echo_n "(cached) " >&6
6699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 namespace x_version {void f(){}}
6702 namespace x = x_version;
6703 using namespace x_version;
6713 if ac_fn_cxx_try_link
"$LINENO"; then :
6714 ac_cv_namespace_ok
=yes
6716 ac_cv_namespace_ok
=no
6718 rm -f core conftest.err conftest.
$ac_objext \
6719 conftest
$ac_exeext conftest.
$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6723 $as_echo "$ac_cv_namespace_ok" >&6; }
6724 if test $ac_cv_namespace_ok = no
6726 as_fn_error $?
"Namespace support is required to build ICU." "$LINENO" 5
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6730 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6731 U_OVERRIDE_CXX_ALLOCATION
=0
6732 U_HAVE_PLACEMENT_NEW
=0
6733 if ${ac_cv_override_cxx_allocation_ok+:} false
; then :
6734 $as_echo_n "(cached) " >&6
6736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6741 void *operator new(size_t size) {return malloc(size);}
6742 void *operator new[](size_t size) {return malloc(size);}
6743 void operator delete(void *p) {free(p);}
6744 void operator delete[](void *p) {free(p);}
6755 if ac_fn_cxx_try_link
"$LINENO"; then :
6756 ac_cv_override_cxx_allocation_ok
=yes
6758 ac_cv_override_cxx_allocation_ok
=no
6760 rm -f core conftest.err conftest.
$ac_objext \
6761 conftest
$ac_exeext conftest.
$ac_ext
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6765 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6766 if test $ac_cv_override_cxx_allocation_ok = yes
6768 U_OVERRIDE_CXX_ALLOCATION
=1
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6770 $as_echo_n "checking for placement new and delete... " >&6; }
6771 if ${ac_cv_override_placement_new_ok+:} false
; then :
6772 $as_echo_n "(cached) " >&6
6774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6779 void *operator new(size_t size) {return malloc(size);}
6780 void *operator new[](size_t size) {return malloc(size);}
6781 void operator delete(void *p) {free(p);}
6782 void operator delete[](void *p) {free(p);}
6783 void * operator new(size_t, void *ptr) { return ptr; }
6784 void operator delete(void *, void *) {}
6795 if ac_fn_cxx_try_link
"$LINENO"; then :
6796 ac_cv_override_placement_new_ok
=yes
6798 ac_cv_override_placement_new_ok
=no
6800 rm -f core conftest.err conftest.
$ac_objext \
6801 conftest
$ac_exeext conftest.
$ac_ext
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6805 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6806 if test $ac_cv_override_placement_new_ok = yes
6808 U_HAVE_PLACEMENT_NEW
=1
6810 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6813 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6819 ac_cpp
='$CPP $CPPFLAGS'
6820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6824 ac_fn_c_check_func
"$LINENO" "popen" "ac_cv_func_popen"
6825 if test "x$ac_cv_func_popen" = xyes
; then :
6829 if test x
$ac_cv_func_popen = xyes
6833 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6838 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
6839 if test "x$ac_cv_func_tzset" = xyes
; then :
6844 if test x
$ac_cv_func_tzset = xyes
6849 ac_fn_c_check_func
"$LINENO" "_tzset" "ac_cv_func__tzset"
6850 if test "x$ac_cv_func__tzset" = xyes
; then :
6854 if test x
$ac_cv_func__tzset = xyes
6859 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6867 $as_echo_n "checking for tzname... " >&6; }
6868 if ${ac_cv_var_tzname+:} false
; then :
6869 $as_echo_n "(cached) " >&6
6871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6878 #ifndef tzname /* For SGI. */
6879 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6889 if ac_fn_c_try_link
"$LINENO"; then :
6890 ac_cv_var_tzname
=yes
6894 rm -f core conftest.err conftest.
$ac_objext \
6895 conftest
$ac_exeext conftest.
$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6898 $as_echo "$ac_cv_var_tzname" >&6; }
6899 if test $ac_cv_var_tzname = yes; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6904 $as_echo_n "checking for _tzname... " >&6; }
6905 if ${ac_cv_var__tzname+:} false
; then :
6906 $as_echo_n "(cached) " >&6
6908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6912 extern char *_tzname[];
6921 if ac_fn_c_try_link
"$LINENO"; then :
6922 ac_cv_var__tzname
=yes
6924 ac_cv_var__tzname
=no
6926 rm -f core conftest.err conftest.
$ac_objext \
6927 conftest
$ac_exeext conftest.
$ac_ext
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6930 $as_echo "$ac_cv_var__tzname" >&6; }
6931 if test $ac_cv_var__tzname = yes; then
6935 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6942 $as_echo_n "checking for timezone... " >&6; }
6943 if ${ac_cv_var_timezone+:} false
; then :
6944 $as_echo_n "(cached) " >&6
6946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6964 if ac_fn_c_try_link
"$LINENO"; then :
6965 ac_cv_var_timezone
=yes
6967 ac_cv_var_timezone
=no
6969 rm -f core conftest.err conftest.
$ac_objext \
6970 conftest
$ac_exeext conftest.
$ac_ext
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6973 $as_echo "$ac_cv_var_timezone" >&6; }
6975 if test $ac_cv_var_timezone = yes; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6980 $as_echo_n "checking for __timezone... " >&6; }
6981 if ${ac_cv_var___timezone+:} false
; then :
6982 $as_echo_n "(cached) " >&6
6984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6995 if ac_fn_c_try_link
"$LINENO"; then :
6996 ac_cv_var___timezone
=yes
6998 ac_cv_var___timezone
=no
7000 rm -f core conftest.err conftest.
$ac_objext \
7001 conftest
$ac_exeext conftest.
$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
7004 $as_echo "$ac_cv_var___timezone" >&6; }
7005 if test $ac_cv_var___timezone = yes; then
7006 U_TIMEZONE
=__timezone
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
7010 $as_echo_n "checking for _timezone... " >&6; }
7011 if ${ac_cv_var__timezone+:} false
; then :
7012 $as_echo_n "(cached) " >&6
7014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7025 if ac_fn_c_try_link
"$LINENO"; then :
7026 ac_cv_var__timezone
=yes
7028 ac_cv_var__timezone
=no
7030 rm -f core conftest.err conftest.
$ac_objext \
7031 conftest
$ac_exeext conftest.
$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
7034 $as_echo "$ac_cv_var__timezone" >&6; }
7035 if test $ac_cv_var__timezone = yes; then
7036 U_TIMEZONE
=_timezone
7039 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
7046 # Checks for typedefs
7047 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7048 if test "x$ac_cv_type_int8_t" = xyes
; then :
7052 cat >>confdefs.h
<<_ACEOF
7053 #define int8_t signed char
7058 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7059 if test "x$ac_cv_type_uint8_t" = xyes
; then :
7063 cat >>confdefs.h
<<_ACEOF
7064 #define uint8_t unsigned char
7069 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7070 if test "x$ac_cv_type_int16_t" = xyes
; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define int16_t signed short
7080 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7081 if test "x$ac_cv_type_uint16_t" = xyes
; then :
7085 cat >>confdefs.h
<<_ACEOF
7086 #define uint16_t unsigned short
7091 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_int32_t" = xyes
; then :
7096 cat >>confdefs.h
<<_ACEOF
7097 #define int32_t signed long
7102 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7103 if test "x$ac_cv_type_uint32_t" = xyes
; then :
7107 cat >>confdefs.h
<<_ACEOF
7108 #define uint32_t unsigned long
7113 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_int64_t" = xyes
; then :
7118 cat >>confdefs.h
<<_ACEOF
7119 #define int64_t signed long long
7124 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7125 if test "x$ac_cv_type_uint64_t" = xyes
; then :
7129 cat >>confdefs.h
<<_ACEOF
7130 #define uint64_t unsigned long long
7136 if test $ac_cv_type_int8_t = no
; then
7137 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
7140 if test $ac_cv_type_uint8_t = no
; then
7141 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
7144 if test $ac_cv_type_int16_t = no
; then
7145 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
7148 if test $ac_cv_type_uint16_t = no
; then
7149 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
7152 if test $ac_cv_type_int32_t = no
; then
7153 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
7156 if test $ac_cv_type_uint32_t = no
; then
7157 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
7160 if test $ac_cv_type_int64_t = no
; then
7161 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
7164 if test $ac_cv_type_uint64_t = no
; then
7165 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
7168 # Do various wchar_t related checks
7169 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7170 if test "x$ac_cv_header_wchar_h" = xyes
; then :
7175 if test "$ac_cv_header_wchar_h" = no
7179 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
7182 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7185 # Some broken systems have wchar.h but not some of its functions...
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
7187 $as_echo_n "checking for library containing wcscpy... " >&6; }
7188 if ${ac_cv_search_wcscpy+:} false
; then :
7189 $as_echo_n "(cached) " >&6
7191 ac_func_search_save_LIBS
=$LIBS
7192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 /* Override any GCC internal prototype to avoid an error.
7196 Use char because int might match the return type of a GCC
7197 builtin and then its argument prototype would still apply. */
7210 for ac_lib
in '' wcs w
; do
7211 if test -z "$ac_lib"; then
7212 ac_res
="none required"
7215 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7217 if ac_fn_c_try_link
"$LINENO"; then :
7218 ac_cv_search_wcscpy
=$ac_res
7220 rm -f core conftest.err conftest.
$ac_objext \
7222 if ${ac_cv_search_wcscpy+:} false
; then :
7226 if ${ac_cv_search_wcscpy+:} false
; then :
7229 ac_cv_search_wcscpy
=no
7232 LIBS
=$ac_func_search_save_LIBS
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7235 $as_echo "$ac_cv_search_wcscpy" >&6; }
7236 ac_res
=$ac_cv_search_wcscpy
7237 if test "$ac_res" != no
; then :
7238 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7242 if test "$ac_cv_search_wcscpy" != no
; then
7246 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
7252 # The cast to long int works around a bug in the HP C Compiler
7253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7255 # This bug is HP SR number 8606223364.
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7257 $as_echo_n "checking size of wchar_t... " >&6; }
7258 if ${ac_cv_sizeof_wchar_t+:} false
; then :
7259 $as_echo_n "(cached) " >&6
7261 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7273 if test "$ac_cv_type_wchar_t" = yes; then
7274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7276 as_fn_error
77 "cannot compute sizeof (wchar_t)
7277 See \`config.log' for more details" "$LINENO" 5; }
7279 ac_cv_sizeof_wchar_t
=0
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7285 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7289 cat >>confdefs.h
<<_ACEOF
7290 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7294 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
7295 # We do this check to verify that everything is okay.
7296 if test $U_SIZEOF_WCHAR_T = 0; then
7297 if test $U_HAVE_WCHAR_H=1; then
7298 as_fn_error $?
"There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7303 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
7304 U_CHECK_UTF16_STRING
=1
7305 CHECK_UTF16_STRING_RESULT
="unknown"
7308 *-*-aix*|powerpc64
-*-linux*)
7309 if test "$GCC" = no
; then
7310 OLD_CFLAGS
="${CFLAGS}"
7311 OLD_CXXFLAGS
="${CXXFLAGS}"
7312 CFLAGS
="${CFLAGS} -qutf"
7313 CXXFLAGS
="${CXXFLAGS} -qutf"
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 const unsigned short hello[] = u"hello";
7325 if ac_fn_c_try_compile
"$LINENO"; then :
7326 U_CHECK_UTF16_STRING
=1
7328 U_CHECK_UTF16_STRING
=0
7330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7331 if test "$U_CHECK_UTF16_STRING" = 0; then
7332 CFLAGS
="${OLD_CFLAGS}"
7333 CXXFLAGS
="${OLD_CXXFLAGS}"
7335 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -qutf"
7336 CHECK_UTF16_STRING_RESULT
="-qutf"
7341 if test "$GCC" = no
; then
7342 OLD_CFLAGS
="${CFLAGS}"
7343 OLD_CXXFLAGS
="${CXXFLAGS}"
7344 CFLAGS
="${CFLAGS} -xustr=ascii_utf16_ushort"
7345 CXXFLAGS
="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 const unsigned short hello[] = U"hello";
7357 if ac_fn_c_try_compile
"$LINENO"; then :
7358 U_CHECK_UTF16_STRING
=1
7360 U_CHECK_UTF16_STRING
=0
7362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 if test "$U_CHECK_UTF16_STRING" = 0; then
7364 CFLAGS
="${OLD_CFLAGS}"
7365 CXXFLAGS
="${OLD_CXXFLAGS}"
7367 CHECK_UTF16_STRING_RESULT
="-xustr=ascii_utf16_ushort"
7368 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
7369 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
7370 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7371 # we depend on configure telling us that we can use it.
7372 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7373 # we only use this macro within ICU.
7374 # If an ICU user uses icu-config, this feature will be enabled.
7375 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
7376 U_CHECK_UTF16_STRING
=0
7381 if test "$GCC" = no
; then
7382 # The option will be detected at compile time without additional compiler options.
7383 CHECK_UTF16_STRING_RESULT
="available"
7387 # wchar_t can be used
7388 CHECK_UTF16_STRING_RESULT
="available"
7394 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
7395 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7396 if test "$GCC" = yes; then
7397 OLD_CFLAGS
="${CFLAGS}"
7398 CFLAGS
="${CFLAGS} -std=gnu99"
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 static const char16_t test[] = u"This is a UTF16 literal string.";
7412 if ac_fn_c_try_compile
"$LINENO"; then :
7417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7418 if test "$CC_UTF16_STRING" = 1; then
7419 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -std=gnu99"
7420 CHECK_UTF16_STRING_RESULT
="C only";
7422 CFLAGS
="${OLD_CFLAGS}"
7425 if test "$GXX" = yes; then
7426 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7428 ac_cpp
='$CXXCPP $CPPFLAGS'
7429 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7436 static const char16_t test[] = u"This is a UTF16 literal string.";
7446 if ac_fn_cxx_try_compile
"$LINENO"; then :
7451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 ac_cpp
='$CPP $CPPFLAGS'
7454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7458 if test "$CXX_UTF16_STRING" = 1; then
7459 if test "$CC_UTF16_STRING" = 1; then
7460 CHECK_UTF16_STRING_RESULT
="available";
7462 CHECK_UTF16_STRING_RESULT
="C++ only";
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7468 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7470 # Enable/disable extras
7471 # Check whether --enable-extras was given.
7472 if test "${enable_extras+set}" = set; then :
7473 enableval
=$enable_extras; case "${enableval}" in
7476 *) as_fn_error $?
"bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7484 if test "$extras" = true
; then
7491 # Check whether --enable-icuio was given.
7492 if test "${enable_icuio+set}" = set; then :
7493 enableval
=$enable_icuio; case "${enableval}" in
7496 *) as_fn_error $?
"bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7504 if test "$icuio" = true
; then
7512 # Enable/disable layout
7513 # Check whether --enable-layout was given.
7514 if test "${enable_layout+set}" = set; then :
7515 enableval
=$enable_layout; case "${enableval}" in
7518 *) as_fn_error $?
"bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7526 if test "$layout" = true
; then
7534 # Enable/disable layoutex
7535 # Check whether --enable-layoutex was given.
7536 if test "${enable_layoutex+set}" = set; then :
7537 enableval
=$enable_layoutex; case "${enableval}" in
7538 yes) layoutex
=true
;;
7539 no
) layoutex
=false
;;
7540 *) as_fn_error $?
"bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;;
7548 if test "$layoutex" = true
; then
7556 # Enable/disable tools
7557 # Check whether --enable-tools was given.
7558 if test "${enable_tools+set}" = set; then :
7559 enableval
=$enable_tools; case "${enableval}" in
7562 *) as_fn_error $?
"bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
7570 if test "$tools" = true
; then
7579 # Check whether --with-data-packaging was given.
7580 if test "${with_data_packaging+set}" = set; then :
7581 withval
=$with_data_packaging; case "${withval}" in
7582 files
|archive
|library
) datapackaging
=$withval ;;
7583 auto
) datapackaging
=$withval ;;
7584 common
) datapackaging
=archive
;;
7585 dll
) datapackaging
=library
;;
7586 static
) datapackaging
=static
;;
7587 *) as_fn_error $?
"bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7594 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7595 # thesysconfdir=`eval echo $sysconfdir`
7596 thedatadir
=`eval echo $datadir`
7597 # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}.
7598 pkgicudatadir
=$datadir
7599 thepkgicudatadir
=$thedatadir
7604 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
7605 # default to library
7606 datapackaging
=library
7607 if test "$ENABLE_STATIC" = "YES"; then
7608 if test "$ENABLE_SHARED" != "YES"; then
7609 datapackaging
=static
7614 datapackaging_dir
=`eval echo $thedatadir`"/icu/${VERSION}"
7616 datapackaging_msg
="(No explaination for mode $datapackaging.)"
7618 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."
7619 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."
7620 datapackaging_howfound
="(unknown)"
7622 case "$datapackaging" in
7624 DATA_PACKAGING_MODE
=files
7625 datapackaging_msg
="ICU data will be stored in individual files."
7626 datapackaging_howfound
="$datapackaging_msg_path"
7629 DATA_PACKAGING_MODE
=common
7630 datapackaging_msg
="ICU data will be stored in a single .dat file."
7631 datapackaging_howfound
="$datapackaging_msg_path"
7634 DATA_PACKAGING_MODE
=dll
7635 datapackaging_msg
="ICU data will be linked with ICU."
7636 if test "$ENABLE_STATIC" = "YES"; then
7637 datapackaging_msg
="$datapackaging_msg A static data library will be built. "
7639 if test "$ENABLE_SHARED" = "YES"; then
7640 datapackaging_msg
="$datapackaging_msg A shared data library will be built. "
7642 datapackaging_howfound
="$datapackaging_msg_set"
7645 DATA_PACKAGING_MODE
=static
7646 datapackaging_msg
="ICU data will be stored in a static library."
7647 datapackaging_howfound
="$datapackaging_msg_set"
7652 # Sets a library suffix
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7654 $as_echo_n "checking for a library suffix to use... " >&6; }
7656 # Check whether --with-library-suffix was given.
7657 if test "${with_library_suffix+set}" = set; then :
7658 withval
=$with_library_suffix; ICULIBSUFFIX
="${withval}"
7664 if test "$msg" = ""; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7668 $as_echo "$msg" >&6; }
7670 if test "$ICULIBSUFFIX" != ""
7673 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7674 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7681 # Enable/disable tests
7682 # Check whether --enable-tests was given.
7683 if test "${enable_tests+set}" = set; then :
7684 enableval
=$enable_tests; case "${enableval}" in
7687 *) as_fn_error $?
"bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7695 if test "$tests" = true
; then
7703 # Enable/disable samples
7704 # Check whether --enable-samples was given.
7705 if test "${enable_samples+set}" = set; then :
7706 enableval
=$enable_samples; case "${enableval}" in
7707 yes) samples
=true
;;
7708 no
) samples
=false
;;
7709 *) as_fn_error $?
"bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7717 if test "$samples" = true
; then
7725 ICUDATA_CHAR
=$U_ENDIAN_CHAR
7727 # Platform-specific Makefile setup
7728 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7730 *-*-solaris*) platform
=U_SOLARIS
;;
7731 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) platform
=U_LINUX
;;
7732 *-*-*bsd
*|*-*-dragonfly*) platform
=U_BSD
;;
7733 *-*-aix*) platform
=U_AIX
;;
7734 *-*-hpux*) platform
=U_HPUX
;;
7735 *-apple-darwin*|*-apple-rhapsody*) platform
=U_DARWIN
;;
7736 *-*-cygwin*) platform
=U_CYGWIN
;;
7737 *-*-mingw*) platform
=U_MINGW
;;
7738 *-*ibm
-openedition*|*-*-os390*) platform
=OS390
7739 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7742 *-*-os400*) platform
=OS400
7743 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7746 *-*-nto*) platform
=U_QNX
;;
7747 *-dec-osf*) platform
=U_OSF
;;
7748 *-*-beos) platform
=U_BEOS
;;
7749 *-*-irix*) platform
=U_IRIX
;;
7750 *-ncr-*) platform
=U_MPRAS
;;
7751 *) platform
=U_UNKNOWN_PLATFORM
;;
7755 platform_make_fragment_name
="$icu_cv_host_frag"
7756 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
7760 if test "${FORCE_LIBS}" != ""; then
7761 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7765 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7768 if test "${CC}" == "clang"; then
7769 CLANGCFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7774 if test "${CXX}" == "clang++"; then
7775 CLANGCXXFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7780 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
7781 CFLAGS
="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
7782 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
7787 # append all config cppflags
7788 CPPFLAGS
="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7790 echo "CPPFLAGS=$CPPFLAGS"
7791 echo "CFLAGS=$CFLAGS"
7792 echo "CXXFLAGS=$CXXFLAGS"
7795 # output the Makefiles
7796 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/collperf2/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/perf/leperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
7798 cat >confcache
<<\_ACEOF
7799 # This file is a shell script that caches the results of configure
7800 # tests run on this system so they can be shared between configure
7801 # scripts and configure runs, see configure's option --config-cache.
7802 # It is not useful on other systems. If it contains results you don't
7803 # want to keep, you may remove or edit it.
7805 # config.status only pays attention to the cache file if you give it
7806 # the --recheck option to rerun configure.
7808 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7809 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7814 # The following way of writing the cache mishandles newlines in values,
7815 # but we know of no workaround that is simple, portable, and efficient.
7816 # So, we kill variables containing newlines.
7817 # Ultrix sh set writes to stderr and can't be redirected directly,
7818 # and sets the high bit in the cache file unless we assign to the vars.
7820 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7821 eval ac_val
=\$
$ac_var
7825 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7826 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7829 _
| IFS
| as_nl
) ;; #(
7830 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
7831 *) { eval $ac_var=; unset $ac_var;} ;;
7837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7838 *${as_nl}ac_space
=\
*)
7839 # `set' does not quote correctly, so add quotes: double-quote
7840 # substitution turns \\\\ into \\, and sed turns \\ into \.
7843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7846 # `set' quotes correctly as required by POSIX, so do not add quotes.
7847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7860 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7861 if test -w "$cache_file"; then
7862 if test "x$cache_file" != "x/dev/null"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7864 $as_echo "$as_me: updating cache $cache_file" >&6;}
7865 if test ! -f "$cache_file" || test -h "$cache_file"; then
7866 cat confcache
>"$cache_file"
7868 case $cache_file in #(
7870 mv -f confcache
"$cache_file"$$
&&
7871 mv -f "$cache_file"$$
"$cache_file" ;; #(
7873 mv -f confcache
"$cache_file" ;;
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7879 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7884 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7885 # Let make expand exec_prefix.
7886 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7888 # Transform confdefs.h into DEFS.
7889 # Protect against shell expansion while executing Makefile rules.
7890 # Protect against Makefile macro expansion.
7892 # If the first sed substitution is executed (which looks for macros that
7893 # take arguments), then branch to the quote section. Otherwise,
7894 # look for a macro that doesn't take arguments.
7904 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7906 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7910 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7923 DEFS
=`sed -n "$ac_script" confdefs.h`
7929 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7930 # 1. Remove the extension, and $U if already installed.
7931 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7932 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7934 # will be set to the directory where LIBOBJS objects are built.
7935 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7936 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7940 LTLIBOBJS
=$ac_ltlibobjs
7945 : "${CONFIG_STATUS=./config.status}"
7947 ac_clean_files_save
=$ac_clean_files
7948 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7950 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7952 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7954 # Generated by $as_me.
7955 # Run this file to recreate the current configuration.
7956 # Compiler output produced by configure, useful for debugging
7957 # configure, is in config.log if it exists.
7963 SHELL=\${CONFIG_SHELL-$SHELL}
7966 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
7967 ## -------------------- ##
7968 ## M4sh Initialization. ##
7969 ## -------------------- ##
7971 # Be more Bourne compatible
7972 DUALCASE
=1; export DUALCASE
# for MKS sh
7973 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7976 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7977 # is contrary to our usage. Disable this feature.
7978 alias -g '${1+"$@"}'='"$@"'
7979 setopt NO_GLOB_SUBST
7981 case `(set -o) 2>/dev/null` in #(
7993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7994 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7997 # Prefer a ksh shell builtin over an external printf program on Solaris,
7998 # but without wasting forks for bash or zsh.
7999 if test -z "$BASH_VERSION$ZSH_VERSION" \
8000 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8001 as_echo='print
-r --'
8002 as_echo_n='print
-rn --'
8003 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8004 as_echo='printf %s
\n'
8005 as_echo_n='printf %s
'
8007 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8008 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8009 as_echo_n='/usr
/ucb
/echo -n'
8011 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8012 as_echo_n_body='eval
8016 expr "X$arg" : "X\\(.*\\)$as_nl";
8017 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8019 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8021 export as_echo_n_body
8022 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8025 as_echo='sh
-c $as_echo_body as_echo
'
8028 # The user is always right.
8029 if test "${PATH_SEPARATOR+set}" != set; then
8031 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8032 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8039 # We need space, tab and new line, in precisely that order. Quoting is
8040 # there to prevent editors from complaining about space-tab.
8041 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8042 # splitting by setting IFS to empty value.)
8045 # Find who we are. Look in the path if we contain no directory separator.
8048 *[\\/]* ) as_myself=$0 ;;
8049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 test -z "$as_dir" && as_dir=.
8054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8060 # We did not find ourselves, most probably we were run as `sh COMMAND'
8061 # in which case we are not to be found in the path.
8062 if test "x$as_myself" = x
; then
8065 if test ! -f "$as_myself"; then
8066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8070 # Unset variables that we do not need and which cause bugs (e.g. in
8071 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8072 # suppresses any "Segmentation fault" message there. '((' could
8073 # trigger a bug in pdksh 5.2.14.
8074 for as_var
in BASH_ENV ENV MAIL MAILPATH
8075 do eval test x\
${$as_var+set} = xset \
8076 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
8089 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8092 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8093 # ----------------------------------------
8094 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8095 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8096 # script with STATUS, using 1 if that was 0.
8099 as_status
=$1; test $as_status -eq 0 && as_status
=1
8101 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8102 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8104 $as_echo "$as_me: error: $2" >&2
8105 as_fn_exit
$as_status
8109 # as_fn_set_status STATUS
8110 # -----------------------
8111 # Set $? to STATUS, without forking.
8115 } # as_fn_set_status
8119 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8129 # Portably unset VAR.
8132 { eval $1=; unset $1;}
8134 as_unset
=as_fn_unset
8135 # as_fn_append VAR VALUE
8136 # ----------------------
8137 # Append the text in VALUE to the end of the definition contained in VAR. Take
8138 # advantage of any shell optimizations that allow amortized linear growth over
8139 # repeated appends, instead of the typical quadratic growth present in naive
8141 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8142 eval 'as_fn_append ()
8153 # as_fn_arith ARG...
8154 # ------------------
8155 # Perform arithmetic evaluation on the ARGs, and store the result in the
8156 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8157 # must be portable across $(()) and expr.
8158 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8159 eval 'as_fn_arith ()
8166 as_val
=`expr "$@" || test $? -eq 1`
8171 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8172 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8178 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8179 as_basename
=basename
8184 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8190 as_me
=`$as_basename -- "$0" ||
8191 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8192 X"$0" : 'X\(//\)$' \| \
8193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8195 sed '/^.*\/\([^/][^/]*\)\/*$/{
8209 # Avoid depending upon Character Ranges.
8210 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8211 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8212 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8213 as_cr_digits
='0123456789'
8214 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8216 ECHO_C
= ECHO_N
= ECHO_T
=
8217 case `echo -n x` in #(((((
8219 case `echo 'xy\c'` in
8220 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8222 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8229 rm -f conf$$ conf$$.exe conf$$.
file
8230 if test -d conf$$.dir
; then
8231 rm -f conf$$.dir
/conf$$.
file
8234 mkdir conf$$.dir
2>/dev
/null
8236 if (echo >conf$$.
file) 2>/dev
/null
; then
8237 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8239 # ... but there are two gotchas:
8240 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8241 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8242 # In both cases, we have to default to `cp -pR'.
8243 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
8245 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8253 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8254 rmdir conf$$.dir
2>/dev
/null
8259 # Create "$as_dir" as a directory, including parents if necessary.
8264 -*) as_dir
=.
/$as_dir;;
8266 test -d "$as_dir" || eval $as_mkdir_p || {
8270 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8271 *) as_qdir
=$as_dir;;
8273 as_dirs
="'$as_qdir' $as_dirs"
8274 as_dir
=`$as_dirname -- "$as_dir" ||
8275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8276 X"$as_dir" : 'X\(//\)[^/]' \| \
8277 X"$as_dir" : 'X\(//\)$' \| \
8278 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8279 $as_echo X"$as_dir" |
8280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8297 test -d "$as_dir" && break
8299 test -z "$as_dirs" || eval "mkdir $as_dirs"
8300 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8304 if mkdir -p .
2>/dev
/null
; then
8305 as_mkdir_p
='mkdir -p "$as_dir"'
8307 test -d .
/-p && rmdir .
/-p
8312 # as_fn_executable_p FILE
8313 # -----------------------
8314 # Test if FILE is an executable regular file.
8315 as_fn_executable_p
()
8317 test -f "$1" && test -x "$1"
8318 } # as_fn_executable_p
8320 as_executable_p
=as_fn_executable_p
8322 # Sed expression to map a string onto a valid CPP name.
8323 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8325 # Sed expression to map a string onto a valid variable name.
8326 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8330 ## ----------------------------------- ##
8331 ## Main body of $CONFIG_STATUS script. ##
8332 ## ----------------------------------- ##
8334 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8336 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8337 # Save the log message, to keep $0 and so on meaningful, and to
8338 # report actual input values of CONFIG_FILES etc. instead of their
8339 # values after options handling.
8341 This file was extended by ICU $as_me 57.1, which was
8342 generated by GNU Autoconf 2.69. Invocation command line was
8344 CONFIG_FILES = $CONFIG_FILES
8345 CONFIG_HEADERS = $CONFIG_HEADERS
8346 CONFIG_LINKS = $CONFIG_LINKS
8347 CONFIG_COMMANDS = $CONFIG_COMMANDS
8350 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8355 case $ac_config_files in *"
8356 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8362 # Files that config.status was made for.
8363 config_files="$ac_config_files"
8367 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8369 \`$as_me' instantiates files and other configuration actions
8370 from templates according to the current configuration. Unless the files
8371 and actions are specified as TAGs, all are instantiated by default.
8373 Usage: $0 [OPTION]... [TAG]...
8375 -h, --help print this help, then exit
8376 -V, --version print version number and configuration settings, then exit
8377 --config print configuration, then exit
8378 -q, --quiet, --silent
8379 do not print progress messages
8380 -d, --debug don't remove temporary files
8381 --recheck update $as_me by reconfiguring in the same conditions
8382 --file=FILE[:TEMPLATE]
8383 instantiate the configuration file FILE
8385 Configuration files:
8388 Report bugs to <http://icu-project.org/bugs>.
8389 ICU home page: <http://icu-project.org>."
8392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8393 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8395 ICU config.status 57.1
8396 configured by $0, generated by GNU Autoconf 2.69,
8397 with options \\"\$ac_cs_config\\"
8399 Copyright (C) 2012 Free Software Foundation, Inc.
8400 This config.status script is free software; the Free Software Foundation
8401 gives unlimited permission to copy, distribute and modify it."
8406 test -n "\$AWK" || AWK=awk
8409 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8410 # The default lists apply if the user does not specify any file.
8416 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8417 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8421 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8433 # Handling of the options.
8434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8436 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8437 $as_echo "$ac_cs_version"; exit ;;
8438 --config | --confi | --conf | --con | --co | --c )
8439 $as_echo "$ac_cs_config"; exit ;;
8440 --debug | --debu | --deb | --de | --d | -d )
8442 --file | --fil | --fi | --f )
8445 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8446 '') as_fn_error $?
"missing file argument" ;;
8448 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8449 ac_need_defaults
=false
;;
8450 --he | --h | --help | --hel | -h )
8451 $as_echo "$ac_cs_usage"; exit ;;
8452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8457 -*) as_fn_error $?
"unrecognized option: \`$1'
8458 Try \`$0 --help' for more information." ;;
8460 *) as_fn_append ac_config_targets
" $1"
8461 ac_need_defaults
=false
;;
8467 ac_configure_extra_args
=
8469 if $ac_cs_silent; then
8471 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8476 if \$ac_cs_recheck; then
8477 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8480 CONFIG_SHELL='$SHELL'
8486 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8491 ## Running $as_me. ##
8497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8500 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8502 # Handling of arguments.
8503 for ac_config_target
in $ac_config_targets
8505 case $ac_config_target in
8506 "icudefs.mk") CONFIG_FILES
="$CONFIG_FILES icudefs.mk" ;;
8507 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8508 "data/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES data/pkgdataMakefile" ;;
8509 "config/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES config/Makefile.inc" ;;
8510 "config/icu.pc") CONFIG_FILES
="$CONFIG_FILES config/icu.pc" ;;
8511 "config/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES config/pkgdataMakefile" ;;
8512 "data/Makefile") CONFIG_FILES
="$CONFIG_FILES data/Makefile" ;;
8513 "stubdata/Makefile") CONFIG_FILES
="$CONFIG_FILES stubdata/Makefile" ;;
8514 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8515 "i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES i18n/Makefile" ;;
8516 "layout/Makefile") CONFIG_FILES
="$CONFIG_FILES layout/Makefile" ;;
8517 "layoutex/Makefile") CONFIG_FILES
="$CONFIG_FILES layoutex/Makefile" ;;
8518 "io/Makefile") CONFIG_FILES
="$CONFIG_FILES io/Makefile" ;;
8519 "extra/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/Makefile" ;;
8520 "extra/uconv/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/Makefile" ;;
8521 "extra/uconv/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8522 "extra/scrptrun/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8523 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8524 "tools/ctestfw/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8525 "tools/toolutil/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/toolutil/Makefile" ;;
8526 "tools/makeconv/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/makeconv/Makefile" ;;
8527 "tools/genrb/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genrb/Makefile" ;;
8528 "tools/genccode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genccode/Makefile" ;;
8529 "tools/gencmn/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencmn/Makefile" ;;
8530 "tools/gencnval/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencnval/Makefile" ;;
8531 "tools/gendict/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gendict/Makefile" ;;
8532 "tools/gentest/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gentest/Makefile" ;;
8533 "tools/gennorm2/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8534 "tools/genbrk/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genbrk/Makefile" ;;
8535 "tools/gensprep/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gensprep/Makefile" ;;
8536 "tools/icuinfo/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8537 "tools/icupkg/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icupkg/Makefile" ;;
8538 "tools/icuswap/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuswap/Makefile" ;;
8539 "tools/pkgdata/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8540 "tools/tzcode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/tzcode/Makefile" ;;
8541 "tools/gencfu/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencfu/Makefile" ;;
8542 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
8543 "test/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES test/compat/Makefile" ;;
8544 "test/testdata/Makefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/Makefile" ;;
8545 "test/testdata/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8546 "test/hdrtst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/hdrtst/Makefile" ;;
8547 "test/intltest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/intltest/Makefile" ;;
8548 "test/cintltst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/cintltst/Makefile" ;;
8549 "test/iotest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/iotest/Makefile" ;;
8550 "test/letest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/letest/Makefile" ;;
8551 "test/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/Makefile" ;;
8552 "test/perf/collationperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8553 "test/perf/collperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8554 "test/perf/collperf2/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf2/Makefile" ;;
8555 "test/perf/dicttrieperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8556 "test/perf/ubrkperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8557 "test/perf/charperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8558 "test/perf/convperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8559 "test/perf/normperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8560 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8561 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8562 "test/perf/strsrchperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8563 "test/perf/unisetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8564 "test/perf/usetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8565 "test/perf/ustrperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8566 "test/perf/utfperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8567 "test/perf/utrie2perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8568 "test/perf/leperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/leperf/Makefile" ;;
8569 "samples/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/Makefile" ;;
8570 "samples/date/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/date/Makefile" ;;
8571 "samples/cal/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/cal/Makefile" ;;
8572 "samples/layout/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/layout/Makefile" ;;
8574 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8579 # If the user did not use the arguments to specify the items to instantiate,
8580 # then the envvar interface is used. Set only those that are not.
8581 # We use the long form for the default assignment because of an extremely
8582 # bizarre bug on SunOS 4.1.3.
8583 if $ac_need_defaults; then
8584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8587 # Have a temporary directory for convenience. Make it in the build tree
8588 # simply because there is no reason against having it here, and in addition,
8589 # creating and moving files from /tmp can sometimes cause problems.
8590 # Hook for its removal unless debugging.
8591 # Note that there is a small window in which the directory will not be cleaned:
8592 # after its creation but before its name has been assigned to `$tmp'.
8596 trap 'exit_status=$?
8598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8600 trap 'as_fn_exit 1' 1 2 13 15
8602 # Create a (secure) tmp directory for tmp files.
8605 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8609 tmp
=.
/conf$$
-$RANDOM
8610 (umask 077 && mkdir "$tmp")
8611 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8614 # Set up the scripts for CONFIG_FILES section.
8615 # No need to generate them if there are no CONFIG_FILES.
8616 # This happens for instance with `./config.status config.h'.
8617 if test -n "$CONFIG_FILES"; then
8620 ac_cr
=`echo X | tr X '\015'`
8621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8622 # But we know of no other shell where ac_cr would be empty at this
8623 # point, so we can use a bashism as a fallback.
8624 if test "x$ac_cr" = x
; then
8625 eval ac_cr
=\$
\'\\r
\'
8627 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8634 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8639 echo "cat >conf$$subs.awk <<_ACEOF" &&
8640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8643 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8646 for ac_last_try in false false false false false :; do
8647 . ./conf$$subs.sh ||
8648 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8650 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8651 if test $ac_delim_n = $ac_delim_num; then
8653 elif $ac_last_try; then
8654 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8656 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8662 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8666 s/^/S["/; s
/!.
*/"]=/
8676 s/\(.\{148\}\)..*/\1/
8678 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8683 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8690 s/\(.\{148\}\)..*/\1/
8692 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8696 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8701 ' <conf$$subs.awk | sed '
8706 ' >>$CONFIG_STATUS || ac_write_fail=1
8707 rm -f conf$$subs.awk
8708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8710 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8711 for (key in S) S_is_set[key] = 1
8717 nfields = split(line, field, "@
")
8719 len = length(field[1])
8720 for (i = 2; i < nfields; i++) {
8722 keylen = length(key)
8723 if (S_is_set[key]) {
8725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8726 len += length(value) + length(field[++i])
8737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8738 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8739 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8742 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8743 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8746 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8747 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8748 # trailing colons and then remove the whole line if VPATH becomes empty
8749 # (actually we leave an empty line to preserve line numbers).
8750 if test "x
$srcdir" = x.; then
8751 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8770 fi # test -n "$CONFIG_FILES"
8773 eval set X " :F
$CONFIG_FILES "
8778 :[FHLC]) ac_mode=$ac_tag; continue;;
8780 case $ac_mode$ac_tag in
8782 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8783 :[FH]-) ac_tag=-:-;;
8784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8801 -) ac_f="$ac_tmp/stdin";;
8802 *) # Look for the file first in the build tree, then in the source tree
8803 # (if the path is not absolute). The absolute path cannot be DOS-style,
8804 # because $ac_f cannot contain `:'.
8808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8813 as_fn_append ac_file_inputs " '$ac_f'"
8816 # Let's still pretend it is `configure' which instantiates (i.e., don't
8817 # use $as_me), people would be surprised to read:
8818 # /* config.h. Generated by config.status. */
8819 configure_input='Generated from '`
8820 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8822 if test x"$ac_file" != x-; then
8823 configure_input="$ac_file.
$configure_input"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8825 $as_echo "$as_me: creating
$ac_file" >&6;}
8827 # Neutralize special characters interpreted by sed in replacement strings.
8828 case $configure_input in #(
8829 *\&* | *\|* | *\\* )
8830 ac_sed_conf_input=`$as_echo "$configure_input" |
8831 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8832 *) ac_sed_conf_input=$configure_input;;
8836 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8837 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8842 ac_dir=`$as_dirname -- "$ac_file" ||
8843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8844 X"$ac_file" : 'X\(//\)[^/]' \| \
8845 X"$ac_file" : 'X\(//\)$' \| \
8846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8847 $as_echo X"$ac_file" |
8848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8865 as_dir="$ac_dir"; as_fn_mkdir_p
8869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8872 # A "..
" for each directory in $ac_dir_suffix.
8873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8874 case $ac_top_builddir_sub in
8875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8879 ac_abs_top_builddir=$ac_pwd
8880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8881 # for backward compatibility:
8882 ac_top_builddir=$ac_top_build_prefix
8885 .) # We are building in place.
8887 ac_top_srcdir=$ac_top_builddir_sub
8888 ac_abs_top_srcdir=$ac_pwd ;;
8889 [\\/]* | ?:[\\/]* ) # Absolute name.
8890 ac_srcdir=$srcdir$ac_dir_suffix;
8891 ac_top_srcdir=$srcdir
8892 ac_abs_top_srcdir=$srcdir ;;
8894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8895 ac_top_srcdir=$ac_top_build_prefix$srcdir
8896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8914 # If the template does not know about datarootdir, expand it.
8915 # FIXME: This hack should be removed a few years after 2.60.
8916 ac_datarootdir_hack=; ac_datarootdir_seen=
8927 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8928 *datarootdir*) ac_datarootdir_seen=yes;;
8929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8931 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8934 ac_datarootdir_hack='
8935 s&@datadir@&$datadir&g
8936 s&@docdir@&$docdir&g
8937 s&@infodir@&$infodir&g
8938 s&@localedir@&$localedir&g
8939 s&@mandir@&$mandir&g
8940 s&\\\${datarootdir}&$datarootdir&g' ;;
8944 # Neutralize VPATH when `$srcdir' = `.'.
8945 # Shell code in configure.ac might set extrasub.
8946 # FIXME: do we really want to maintain this feature?
8947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8948 ac_sed_extra="$ac_vpsub
8951 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8953 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8954 s
|@configure_input@
|$ac_sed_conf_input|;t t
8955 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8956 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8957 s
&@srcdir@
&$ac_srcdir&;t t
8958 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8959 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8960 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8961 s
&@builddir@
&$ac_builddir&;t t
8962 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8963 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8964 s
&@INSTALL@
&$ac_INSTALL&;t t
8965 $ac_datarootdir_hack
8967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8968 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8971 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8973 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8975 which seems to be undefined. Please make sure it is defined" >&5
8976 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8977 which seems to be undefined. Please make sure it is defined" >&2;}
8979 rm -f "$ac_tmp/stdin"
8981 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8982 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8996 ac_clean_files=$ac_clean_files_save
8998 test $ac_write_fail = 0 ||
8999 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9002 # configure is writing to config.log, and then calls config.status.
9003 # config.status does its own redirection, appending to config.log.
9004 # Unfortunately, on DOS this fails, as config.log is still kept open
9005 # by configure, so config.status won't be able to
write to it
; its
9006 # output is simply discarded. So we exec the FD to /dev/null,
9007 # effectively closing config.log, so it can be properly (re)opened and
9008 # appended to by config.status. When coming back to configure, we
9009 # need to make the FD available again.
9010 if test "$no_create" != yes; then
9012 ac_config_status_args
=
9013 test "$silent" = yes &&
9014 ac_config_status_args
="$ac_config_status_args --quiet"
9016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9019 # would make configure fail if this is the last instruction.
9020 $ac_cs_success || as_fn_exit
1
9022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9029 echo "ICU for C/C++ $VERSION is ready to be built."
9030 echo "=== Important Notes: ==="
9032 echo "Data Packaging: $datapackaging"
9033 echo " This means: $datapackaging_msg"
9034 echo " To locate data: $datapackaging_howfound"
9036 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
9037 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
9039 echo "** WARNING: $U_MAKE may not be GNU make."
9040 echo "This may cause ICU to fail to build. Please make sure that GNU make"
9041 echo "is in your PATH so that the configure script can detect its location."
9043 if test "x$AR" = "xfalse"; then
9044 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
9048 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
9049 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM
="$platform"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9051 $as_echo "ok" >&6; }
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
9054 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
9058 if test -n "$UCONFIG_CPPFLAGS"; then
9059 HDRFILE
="uconfig.h.prepend"
9060 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
9062 echo " ${UCONFIG_CPPFLAGS}"
9064 echo 'The recommended way to do this is to prepend the following lines to source/common/unicode/uconfig.h or #include them near the top of that file.'
9065 echo "Creating the file ${HDRFILE}"
9067 echo '--------------- ' "${HDRFILE}"
9069 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
9070 echo >> "${HDRFILE}"
9071 for flag
in ${UCONFIG_CPPFLAGS};
9073 echo " /* $flag */" >> "${HDRFILE}"
9076 \
echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
9077 \
echo >> "${HDRFILE}"
9080 \
echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
9081 \
echo >> "${HDRFILE}"
9084 \
echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
9085 \
echo >> "${HDRFILE}"
9090 \
echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
9091 echo >> "${HDRFILE}"
9092 echo '--------------- end ' "${HDRFILE}"
9096 if test -n "$UCONFIG_CFLAGS"; then
9097 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
9100 if test -n "$UCONFIG_CXXFLAGS"; then
9101 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
9104 if test "$tools" = false
;
9106 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
9107 echo "## Expect build failures in the 'data', 'test', and other directories."
9110 $as_unset _CXX_CXXSUFFIX