2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
5 # Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 test -n "$DJDIR" || exec 7<&0 </dev
/null
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
568 ac_unique_file
="common/unicode/utypes.h"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
609 platform_make_fragment
610 platform_make_fragment_name
634 U_OVERRIDE_CXX_ALLOCATION
635 U_NL_LANGINFO_CODESET
636 U_HAVE_NL_LANGINFO_CODESET
722 program_transform_name
735 enable_option_checking
759 ac_precious_vars
='build_alias
773 # Initialize some variables set by options.
775 ac_init_version
=false
776 ac_unrecognized_opts
=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name
=s
,x
,x
,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir
='${exec_prefix}/bin'
802 sbindir
='${exec_prefix}/sbin'
803 libexecdir
='${exec_prefix}/libexec'
804 datarootdir
='${prefix}/share'
805 datadir
='${datarootdir}'
806 sysconfdir
='${prefix}/etc'
807 sharedstatedir
='${prefix}/com'
808 localstatedir
='${prefix}/var'
809 includedir
='${prefix}/include'
810 oldincludedir
='/usr/include'
811 docdir
='${datarootdir}/doc/${PACKAGE}'
812 infodir
='${datarootdir}/info'
817 libdir
='${exec_prefix}/lib'
818 localedir
='${datarootdir}/locale'
819 mandir
='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\
$ac_option
833 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 -build | --build | --buil | --bui | --bu)
850 ac_prev
=build_alias
;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias
=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev
=cache_file
;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file
=$ac_optarg ;;
862 cache_file
=config.cache
;;
864 -datadir | --datadir | --datadi | --datad)
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir
=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev
=datarootdir
;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir
=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
880 as_fn_error $?
"invalid feature name: $ac_useropt"
881 ac_useropt_orig
=$ac_useropt
882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep
=', ';;
890 eval enable_
$ac_useropt=no
;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
906 as_fn_error $?
"invalid feature name: $ac_useropt"
907 ac_useropt_orig
=$ac_useropt
908 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep
=', ';;
916 eval enable_
$ac_useropt=\
$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev
=exec_prefix
;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix
=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
934 ac_init_help
=recursive
;;
935 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
936 ac_init_help
=short
;;
938 -host | --host | --hos | --ho)
939 ac_prev
=host_alias
;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias
=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir
=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev
=includedir
;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir
=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir
=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev
=libexecdir
;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir
=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir
=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev
=localstatedir
;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir
=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev
=oldincludedir
;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir
=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix
=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev
=program_prefix
;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix
=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev
=program_suffix
;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix
=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev
=program_transform_name
;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name
=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir
=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir
=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev
=sharedstatedir
;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir
=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir
=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev
=sysconfdir
;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir
=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev
=target_alias
;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias
=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version
=: ;;
1107 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error $?
"invalid package name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval with_
$ac_useropt=\
$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error $?
"invalid package name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval with_
$ac_useropt=no
;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev
=x_includes
;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes
=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev
=x_libraries
;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries
=$ac_optarg ;;
1156 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1161 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1167 eval $ac_envvar=\
$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 if test -n "$ac_prev"; then
1182 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $?
"missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1189 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val
=\$
$ac_var
1201 # Remove trailing slashes.
1204 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\
$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$
]* | ?
:[\\/]* ) continue;;
1210 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1212 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target
=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x
; then
1224 if test "x$build_alias" = x
; then
1225 cross_compiling
=maybe
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1236 test "$silent" = yes && exec 6>/dev
/null
1239 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di
=`ls -di .` &&
1241 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $?
"working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $?
"pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted
=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir
=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted
=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1283 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var
in $ac_precious_vars; do
1300 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1301 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1302 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1303 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --build=BUILD configure
for building on BUILD
[guessed
]
1372 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1376 if test -n "$ac_init_help"; then
1381 --disable-option-checking ignore unrecognized
--enable/--with options
1382 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1383 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1384 --enable-debug build debug libraries and
enable the U_DEBUG define default
=no
1385 --enable-release build release libraries default
=yes
1386 --enable-strict compile with strict compiler options default
=yes
1387 --enable-64bit-libs (deprecated
, use
--with-library-bits) build
64-bit libraries default
= platform default
1388 --enable-shared build shared libraries default
=yes
1389 --enable-static build static libraries default
=no
1390 --enable-auto-cleanup enable auto cleanup of libraries default
=no
1391 --enable-draft enable draft APIs
(and internal APIs
) default
=yes
1392 --enable-renaming add a version suffix to symbols default
=yes
1393 --enable-tracing enable function and data tracing default
=no
1394 --disable-dyload disable dynamic loading default
=no
1395 --enable-rpath use rpath when linking default is only
if necessary
1396 --enable-weak-threads weakly reference the threading library default
=no
1397 --enable-extras build ICU extras default
=yes
1398 --enable-icuio build ICU
's icuio library default=yes
1399 --enable-layout build ICU's layout library default
=yes
1400 --enable-tests build ICU tests default
=yes
1401 --enable-samples build ICU samples default
=yes
1403 Additionally
, the variable FORCE_LIBS may be
set before calling configure.
1404 If
set, it will REPLACE any automatic list of libraries.
1407 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1408 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1409 --with-cross-build=dir specify an absolute path to the build directory of an ICU built
for the current platform default
=no cross dir
1410 --with-library-bits=bits specify how many bits to use
for the library
(32, 64, 64else32
, nochange
) default
=nochange
1411 --with-data-packaging=type specify how to package ICU data
(files
, archive
, library
, static
, auto
) default
=auto
1412 --with-library-suffix=suffix tag a suffix to the library names default
=
1414 Some influential environment variables
:
1415 CC C compiler
command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1418 nonstandard directory
<lib dir
>
1419 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1420 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1421 you have headers
in a nonstandard directory
<include dir
>
1422 CXX C
++ compiler
command
1423 CXXFLAGS C
++ compiler flags
1426 Use these variables to override the choices made by
`configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1429 Report bugs to the package provider.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1459 .) # We are building in place.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1493 generated by GNU Autoconf 2.68
1495 Copyright (C) 2010 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1499 Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1517 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1518 *) ac_try_echo
=$ac_try;;
1520 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1524 if test -s conftest.err
; then
1525 grep -v '^ *+' conftest.err
>conftest.er1
1526 cat conftest.er1
>&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.
$ac_objext; then :
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.
$ac_ext >&5
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status
$ac_retval
1544 } # ac_fn_c_try_compile
1546 # ac_fn_cxx_try_compile LINENO
1547 # ----------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_cxx_try_compile
()
1551 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1552 rm -f conftest.
$ac_objext
1553 if { { ac_try
="$ac_compile"
1555 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_cxx_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_cxx_try_compile
1584 # ac_fn_c_try_cpp LINENO
1585 # ----------------------
1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
1592 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1593 *) ac_try_echo
=$ac_try;;
1595 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599 if test -s conftest.err
; then
1600 grep -v '^ *+' conftest.err
>conftest.er1
1601 cat conftest.er1
>&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } > conftest.i
&& {
1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.
$ac_ext >&5
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status
$ac_retval
1621 # ac_fn_cxx_try_link LINENO
1622 # -------------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_cxx_try_link
()
1626 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1627 rm -f conftest.
$ac_objext conftest
$ac_exeext
1628 if { { ac_try
="$ac_link"
1630 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_cxx_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 $as_test_x conftest$ac_exeext
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_cxx_try_link
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=$ac_status
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1709 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1710 # --------------------------------------------
1711 # Tries to find the compile-time value of EXPR in a program that includes
1712 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1714 ac_fn_c_compute_int ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if test "$cross_compiling" = yes; then
1718 # Depending upon the size, compute the lo and hi bounds.
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1725 static int test_array [1 - 2 * !(($2) >= 0)];
1732 if ac_fn_c_try_compile "$LINENO"; then :
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1741 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_hi=$ac_mid; break
1751 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1752 if test $ac_lo -le $ac_mid; then
1756 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1767 static int test_array [1 - 2 * !(($2) < 0)];
1774 if ac_fn_c_try_compile "$LINENO"; then :
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1783 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_lo=$ac_mid; break
1793 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1794 if test $ac_mid -le $ac_hi; then
1798 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 # Binary search between lo and hi bounds.
1809 while test "x$ac_lo" != "x$ac_hi"; do
1810 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1817 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1824 if ac_fn_c_try_compile "$LINENO"; then :
1827 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1839 static long int longval () { return $2; }
1840 static unsigned long int ulongval () { return $2; }
1847 FILE *f = fopen ("conftest.val", "w");
1852 long int i = longval ();
1855 fprintf (f, "%ld", i);
1859 unsigned long int i = ulongval ();
1862 fprintf (f, "%lu", i);
1864 /* Do not output a trailing newline, as this causes \r\n confusion
1865 on some platforms. */
1866 return ferror (f) || fclose (f) != 0;
1872 if ac_fn_c_try_run "$LINENO"; then :
1873 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1878 conftest.$ac_objext conftest.beam conftest.$ac_ext
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_c_compute_int
1887 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists and can be compiled using the include files in
1890 # INCLUDES, setting the cache variable VAR accordingly.
1891 ac_fn_c_check_header_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1904 if ac_fn_c_try_compile "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_header_compile
1918 # ac_fn_c_try_link LINENO
1919 # -----------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1927 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1928 *) ac_try_echo
=$ac_try;;
1930 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1934 if test -s conftest.err
; then
1935 grep -v '^ *+' conftest.err
>conftest.er1
1936 cat conftest.er1
>&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest
$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 $as_test_x conftest
$ac_exeext
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.
$ac_ext >&5
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status
$ac_retval
1962 } # ac_fn_c_try_link
1964 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1969 ac_fn_c_check_header_mongrel
()
1971 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1972 if eval \
${$3+:} false
; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \
${$3+:} false
; then :
1976 $as_echo_n "(cached) " >&6
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_c_try_compile
"$LINENO"; then :
1991 ac_header_compiler
=yes
1993 ac_header_compiler
=no
1995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 if ac_fn_c_try_cpp
"$LINENO"; then :
2007 ac_header_preproc
=yes
2009 ac_header_preproc
=no
2011 rm -f conftest.err conftest.i conftest.
$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \
${$3+:} false
; then :
2039 $as_echo_n "(cached) " >&6
2041 eval "$3=\$ac_header_compiler"
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_header_mongrel
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func
()
2056 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \
${$3+:} false
; then :
2060 $as_echo_n "(cached) " >&6
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066 #define $2 innocuous_$2
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
2074 # include <limits.h>
2076 # include <assert.h>
2081 /* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined __stub_$2 || defined __stub___$2
2103 if ac_fn_c_try_link
"$LINENO"; then :
2108 rm -f core conftest.err conftest.
$ac_objext \
2109 conftest
$ac_exeext conftest.
$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_func
2118 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2119 # -------------------------------------------
2120 # Tests whether TYPE exists after having included INCLUDES, setting cache
2121 # variable VAR accordingly.
2122 ac_fn_c_check_type
()
2124 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \
${$3+:} false
; then :
2128 $as_echo_n "(cached) " >&6
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2143 if ac_fn_c_try_compile
"$LINENO"; then :
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_type
2171 cat >config.log
<<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2175 It was created by $as_me, which was
2176 generated by GNU Autoconf 2.68. Invocation command line was
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir
=.
2212 $as_echo "PATH: $as_dir"
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_must_keep_next
=false
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2247 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2252 as_fn_append ac_configure_args1
" '$ac_arg'"
2253 if test $ac_must_keep_next = true
; then
2254 ac_must_keep_next
=false
# Got value, back to normal.
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 -* ) ac_must_keep_next
=true
;;
2268 as_fn_append ac_configure_args
" '$ac_arg'"
2273 { ac_configure_args0
=; unset ac_configure_args0
;}
2274 { ac_configure_args1
=; unset ac_configure_args1
;}
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2330 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2341 for ac_var
in $ac_subst_files
2343 eval ac_val
=\$
$ac_var
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 $as_echo "$ac_var='\''$ac_val'\''"
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 for ac_signal
in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest
* confdefs.h
2376 $as_echo "/* confdefs.h */" > confdefs.h
2378 # Predefined preprocessor variables.
2380 cat >>confdefs.h
<<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2384 cat >>confdefs.h
<<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388 cat >>confdefs.h
<<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2392 cat >>confdefs.h
<<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2396 cat >>confdefs.h
<<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400 cat >>confdefs.h
<<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2413 */*) ac_site_file1
=$CONFIG_SITE;;
2414 *) ac_site_file1
=.
/$CONFIG_SITE;;
2416 elif test "x$prefix" != xNONE
; then
2417 ac_site_file1
=$prefix/share
/config.site
2418 ac_site_file2
=$prefix/etc
/config.site
2420 ac_site_file1
=$ac_default_prefix/share
/config.site
2421 ac_site_file2
=$ac_default_prefix/etc
/config.site
2423 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2425 test "x$ac_site_file" = xNONE
&& continue
2426 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $?
"failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2446 *) .
"./$cache_file";;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 # Check that the precious variables saved in the cache have kept the same
2457 ac_cache_corrupted
=false
2458 for ac_var
in $ac_precious_vars; do
2459 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2460 eval ac_new_set
=\
$ac_env_${ac_var}_set
2461 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2462 eval ac_new_val
=\
$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted
=: ;;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted
=: ;;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w
=`echo x $ac_old_val`
2477 ac_new_val_w
=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted
=:
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\
$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2496 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg
=$ac_var=$ac_new_val ;;
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2517 ac_cpp
='$CPP $CPPFLAGS'
2518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2526 # m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"),
2527 # [http://icu-project.org/bugs],
2528 # [International Components for Unicode],
2529 # [http://icu-project.org])
2536 # Use custom echo test for newline option
2537 # Current autoconf (2.65) gives incorrect echo newline option
2539 # This may be removed later - mow (June 17, 2010)
2540 ICU_ECHO_C
= ICU_ECHO_N
= ICU_ECHO_T
=
2541 case `/bin/sh -c "echo -n x"` in
2543 case `/bin/sh -c "echo 'x\c'"` in
2544 *c
*) ICU_ECHO_T
=' ';; # ECHO_T is single tab character.
2545 *) ICU_ECHO_C
='\c';;
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
2555 $as_echo_n "checking for ICU version numbers... " >&6; }
2557 # Get the ICU version from uversion.h or other headers
2559 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2562 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2564 VERSION
=`geticuversion $srcdir/common/unicode/uvernum.h`
2565 if test x
"$VERSION" = x
; then
2566 as_fn_error $?
"Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2570 #if test "$VERSION" != "$PACKAGE_VERSION"; then
2571 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
2574 UNICODE_VERSION
=`getuversion $srcdir/common/unicode/uchar.h`
2575 if test x
"$UNICODE_VERSION" = x
; then
2576 as_fn_error $?
"Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2578 # Compute a reasonable library version from the release version. This is
2579 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
2580 # has at least a dot in it, so we'll add a .0 if needed.
2581 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2582 LIB_VERSION
=$VERSION
2583 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
2588 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
2592 # Determine the host system
2594 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595 if test -f "$ac_dir/install-sh"; then
2597 ac_install_sh
="$ac_aux_dir/install-sh -c"
2599 elif test -f "$ac_dir/install.sh"; then
2601 ac_install_sh
="$ac_aux_dir/install.sh -c"
2603 elif test -f "$ac_dir/shtool"; then
2605 ac_install_sh
="$ac_aux_dir/shtool install -c"
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # Make sure we can run config.sub.
2623 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2624 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627 $as_echo_n "checking build system type... " >&6; }
2628 if ${ac_cv_build+:} false
; then :
2629 $as_echo_n "(cached) " >&6
2631 ac_build_alias
=$build_alias
2632 test "x$ac_build_alias" = x
&&
2633 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2634 test "x$ac_build_alias" = x
&&
2635 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2636 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641 $as_echo "$ac_cv_build" >&6; }
2642 case $ac_cv_build in
2644 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2647 ac_save_IFS
=$IFS; IFS
='-'
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2657 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661 $as_echo_n "checking host system type... " >&6; }
2662 if ${ac_cv_host+:} false
; then :
2663 $as_echo_n "(cached) " >&6
2665 if test "x$host_alias" = x
; then
2666 ac_cv_host
=$ac_cv_build
2668 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674 $as_echo "$ac_cv_host" >&6; }
2677 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2680 ac_save_IFS
=$IFS; IFS
='-'
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2690 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2696 # This variable is needed on z/OS because the C++ compiler only recognizes .C
2698 export _CXX_CXXSUFFIX
2700 # Accumulate #defines
2704 # Check whether to build debug libraries
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2706 $as_echo_n "checking whether to build debug libraries... " >&6; }
2709 # Check whether --enable-debug was given.
2710 if test "${enable_debug+set}" = set; then :
2711 enableval
=$enable_debug; case "${enableval}" in
2712 yes|"") enabled
=yes; ENABLE_DEBUG
=1; CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2718 $as_echo "$enabled" >&6; }
2721 # Check whether to build release libraries
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2723 $as_echo_n "checking whether to build release libraries... " >&6; }
2726 # Check whether --enable-release was given.
2727 if test "${enable_release+set}" = set; then :
2728 enableval
=$enable_release; case "${enableval}" in
2729 no
) enabled
=no
; ENABLE_RELEASE
=0 ;;
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2735 $as_echo "$enabled" >&6; }
2738 # Don't use the default C/CXXFLags
2742 # Checks for compilers
2744 ac_cpp
='$CPP $CPPFLAGS'
2745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false
; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC
="$CC" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$CC" && break
2791 if test -z "$CC"; then
2793 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy
$ac_prog; ac_word
=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir
=.
2810 for ac_exec_ext
in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_ac_ct_CC
="$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825 $as_echo "$ac_ct_CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$ac_ct_CC" && break
2835 if test "x$ac_ct_CC" = x
; then
2838 case $cross_compiling:$ac_tool_warned in
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned
=yes ;;
2849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $?
"no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details" "$LINENO" 5; }
2854 # Provide some information about the compiler.
2855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2858 for ac_option
in --version -v -V -qversion; do
2859 { { ac_try
="$ac_compiler $ac_option >&5"
2861 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865 $as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2868 if test -s conftest.err; then
2870 ... rest of stderr output deleted ...
2871 10q' conftest.err >conftest.er1
2872 cat conftest.er1 >&5
2874 rm -f conftest.er1 conftest.err
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2890 ac_clean_files_save=$ac_clean_files
2891 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2892 # Try to create an executable without -o first, disregard a.out.
2893 # It will help us diagnose broken compilers, and finding out an intuition
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2896 $as_echo_n "checking whether the C compiler works... " >&6; }
2897 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899 # The possible output files:
2900 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903 for ac_file in $ac_files
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 if { { ac_try="$ac_link_default"
2914 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2915 *) ac_try_echo
=$ac_try;;
2917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_link_default") 2>&5
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2924 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2926 # so that the user can short-circuit this test for compilers unknown to
2928 for ac_file
in $ac_files ''
2930 test -f "$ac_file" || continue
2932 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
2935 # We found the default executable, but exeext='' is most
2939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2941 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 # We set ac_cv_exeext here because the later test for it is not
2944 # safe: cross compilers may not add the suffix if given an `-o'
2945 # argument, so we may need to know it at that point already.
2946 # Even if this section looks crufty: it has the advantage of
2953 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2958 if test -z "$ac_file"; then :
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.
$ac_ext >&5
2964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error
77 "C compiler cannot create executables
2967 See \`config.log' for more details" "$LINENO" 5; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2973 $as_echo_n "checking for C compiler default output file name... " >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2975 $as_echo "$ac_file" >&6; }
2976 ac_exeext
=$ac_cv_exeext
2978 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2979 ac_clean_files
=$ac_clean_files_save
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2981 $as_echo_n "checking for suffix of executables... " >&6; }
2982 if { { ac_try
="$ac_link"
2984 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 $as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_link") 2>&5
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }; then :
2993 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2994 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2995 # work properly (i.e., refer to `conftest.exe'), while it won't with
2997 for ac_file
in conftest.exe conftest conftest.
*; do
2998 test -f "$ac_file" || continue
3000 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3001 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3010 See \`config.log' for more details" "$LINENO" 5; }
3012 rm -f conftest conftest
$ac_cv_exeext
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3014 $as_echo "$ac_cv_exeext" >&6; }
3016 rm -f conftest.
$ac_ext
3017 EXEEXT
=$ac_cv_exeext
3019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3025 FILE *f = fopen ("conftest.out", "w");
3026 return ferror (f) || fclose (f) != 0;
3032 ac_clean_files
="$ac_clean_files conftest.out"
3033 # Check that the compiler produces executables we can run. If not, either
3034 # the compiler is broken, or we cross compile.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3036 $as_echo_n "checking whether we are cross compiling... " >&6; }
3037 if test "$cross_compiling" != yes; then
3038 { { ac_try
="$ac_link"
3040 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link") 2>&5
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3049 if { ac_try='./conftest$ac_cv_exeext'
3050 { { case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3052 *) ac_try_echo
=$ac_try;;
3054 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_try") 2>&5
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; }; then
3062 if test "$cross_compiling" = maybe
; then
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $?
"cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details" "$LINENO" 5; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3074 $as_echo "$cross_compiling" >&6; }
3076 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3077 ac_clean_files
=$ac_clean_files_save
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3079 $as_echo_n "checking for suffix of object files... " >&6; }
3080 if ${ac_cv_objext+:} false
; then :
3081 $as_echo_n "(cached) " >&6
3083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3094 rm -f conftest.o conftest.obj
3095 if { { ac_try
="$ac_compile"
3097 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compile") 2>&5
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
3106 for ac_file in conftest.o conftest.obj conftest.*; do
3107 test -f "$ac_file" || continue;
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115 $as_echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3121 See \
`config.log' for more details" "$LINENO" 5; }
3123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3126 $as_echo "$ac_cv_objext" >&6; }
3127 OBJEXT=$ac_cv_objext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3131 if ${ac_cv_c_compiler_gnu+:} false; then :
3132 $as_echo_n "(cached) " >&6
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3148 if ac_fn_c_try_compile "$LINENO"; then :
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3159 if test $ac_compiler_gnu = yes; then
3164 ac_test_CFLAGS=${CFLAGS+set}
3165 ac_save_CFLAGS=$CFLAGS
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3168 if ${ac_cv_prog_cc_g+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 ac_save_c_werror_flag=$ac_c_werror_flag
3172 ac_c_werror_flag=yes
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3186 if ac_fn_c_try_compile "$LINENO"; then :
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 if ac_fn_c_try_compile "$LINENO"; then :
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3217 if ac_fn_c_try_compile "$LINENO"; then :
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3228 $as_echo "$ac_cv_prog_cc_g" >&6; }
3229 if test "$ac_test_CFLAGS" = set; then
3230 CFLAGS=$ac_save_CFLAGS
3231 elif test $ac_cv_prog_cc_g = yes; then
3232 if test "$GCC" = yes; then
3238 if test "$GCC" = yes; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3246 if ${ac_cv_prog_cc_c89+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 ac_cv_prog_cc_c89=no
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3255 #include <sys/types.h>
3256 #include <sys/stat.h>
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3271 s = g (p, va_arg (v,int));
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
3279 as 'x'. The following induces an error, until -std is added to get
3280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
3282 that's true only with -std. */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 CC="$ac_save_CC $ac_arg"
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_c89=$ac_arg
3311 rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 rm -f conftest.$ac_ext
3319 case "x$ac_cv_prog_cc_c89" in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3322 $as_echo "none needed" >&6; } ;;
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3325 $as_echo "unsupported" >&6; } ;;
3327 CC="$CC $ac_cv_prog_cc_c89"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331 if test "x$ac_cv_prog_cc_c89" != xno; then :
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 # Make sure that we try clang++ first, which provides C++11 support.
3342 # The g++ compiler is less likely to support C++11.
3344 ac_cpp='$CXXCPP $CPPFLAGS'
3345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348 if test -z "$CXX"; then
3349 if test -n "$CCC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CXX+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$CXX"; then
3363 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 if test -n "$CXX"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3385 $as_echo "$CXX" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$CXX" && break
3395 if test -z "$CXX"; then
3397 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$ac_ct_CXX"; then
3407 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_ac_ct_CXX="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3427 if test -n "$ac_ct_CXX"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3429 $as_echo "$ac_ct_CXX" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$ac_ct_CXX" && break
3439 if test "x$ac_ct_CXX" = x; then
3442 case $cross_compiling:$ac_tool_warned in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3454 # Provide some information about the compiler.
3455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3458 for ac_option in --version -v -V -qversion; do
3459 { { ac_try="$ac_compiler $ac_option >&5"
3461 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3462 *) ac_try_echo
=$ac_try;;
3464 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3468 if test -s conftest.err
; then
3470 ... rest of stderr output deleted ...
3471 10q' conftest.err
>conftest.er1
3472 cat conftest.er1
>&5
3474 rm -f conftest.er1 conftest.err
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3480 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3481 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3482 $as_echo_n "(cached) " >&6
3484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3498 if ac_fn_cxx_try_compile
"$LINENO"; then :
3503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3504 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3508 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3509 if test $ac_compiler_gnu = yes; then
3514 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3515 ac_save_CXXFLAGS
=$CXXFLAGS
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3517 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3518 if ${ac_cv_prog_cxx_g+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3522 ac_cxx_werror_flag
=yes
3525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3536 if ac_fn_cxx_try_compile
"$LINENO"; then :
3537 ac_cv_prog_cxx_g
=yes
3540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_cxx_try_compile
"$LINENO"; then :
3554 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 if ac_fn_cxx_try_compile
"$LINENO"; then :
3568 ac_cv_prog_cxx_g
=yes
3570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3575 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3578 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3579 if test "$ac_test_CXXFLAGS" = set; then
3580 CXXFLAGS
=$ac_save_CXXFLAGS
3581 elif test $ac_cv_prog_cxx_g = yes; then
3582 if test "$GXX" = yes; then
3588 if test "$GXX" = yes; then
3595 ac_cpp
='$CPP $CPPFLAGS'
3596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3601 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3602 # The release mode use is the default one for autoconf
3603 if test "$GCC" = yes; then
3604 if test "$CFLAGS" = ""; then
3605 if test "$ENABLE_DEBUG" = 1; then
3608 if test "$ENABLE_RELEASE" = 1; then
3609 CFLAGS
="$CFLAGS -O2"
3612 if test "$CXXFLAGS" = ""; then
3613 if test "$ENABLE_DEBUG" = 1; then
3616 if test "$ENABLE_RELEASE" = 1; then
3617 CXXFLAGS
="$CXXFLAGS -O2"
3623 ac_cpp
='$CPP $CPPFLAGS'
3624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3628 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3629 # On Suns, sometimes $CPP names a directory.
3630 if test -n "$CPP" && test -d "$CPP"; then
3633 if test -z "$CPP"; then
3634 if ${ac_cv_prog_CPP+:} false
; then :
3635 $as_echo_n "(cached) " >&6
3637 # Double quotes because CPP needs to be expanded
3638 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641 for ac_c_preproc_warn_flag
in '' yes
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646 # <limits.h> exists even on freestanding compilers.
3647 # On the NeXT, cc -E runs the code through the compiler's parser,
3648 # not just through cpp. "Syntax error" is here to catch this case.
3649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3652 # include <limits.h>
3654 # include <assert.h>
3658 if ac_fn_c_try_cpp
"$LINENO"; then :
3661 # Broken: fails on valid input.
3664 rm -f conftest.err conftest.i conftest.
$ac_ext
3666 # OK, works on sane cases. Now check whether nonexistent headers
3667 # can be detected and how.
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670 #include <ac_nonexistent.h>
3672 if ac_fn_c_try_cpp
"$LINENO"; then :
3673 # Broken: success on invalid input.
3676 # Passes both tests.
3680 rm -f conftest.err conftest.i conftest.
$ac_ext
3683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3684 rm -f conftest.i conftest.err conftest.
$ac_ext
3685 if $ac_preproc_ok; then :
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3698 $as_echo "$CPP" >&6; }
3700 for ac_c_preproc_warn_flag
in '' yes
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3711 # include <limits.h>
3713 # include <assert.h>
3717 if ac_fn_c_try_cpp
"$LINENO"; then :
3720 # Broken: fails on valid input.
3723 rm -f conftest.err conftest.i conftest.
$ac_ext
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3731 if ac_fn_c_try_cpp
"$LINENO"; then :
3732 # Broken: success on invalid input.
3735 # Passes both tests.
3739 rm -f conftest.err conftest.i conftest.
$ac_ext
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.i conftest.err conftest.
$ac_ext
3744 if $ac_preproc_ok; then :
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details" "$LINENO" 5; }
3754 ac_cpp
='$CPP $CPPFLAGS'
3755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3760 # Find a good install program. We prefer a C program (faster),
3761 # so one script is as good as another. But avoid the broken or
3762 # incompatible versions:
3763 # SysV /etc/install, /usr/sbin/install
3764 # SunOS /usr/etc/install
3765 # IRIX /sbin/install
3767 # AmigaOS /C/install, which installs bootblocks on floppy discs
3768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3771 # OS/2's system install, which has a completely different semantic
3772 # ./install, which can be erroneously created by make from ./install.sh.
3773 # Reject install programs that cannot install multiple files.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3775 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3776 if test -z "$INSTALL"; then
3777 if ${ac_cv_path_install+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir
=.
3785 # Account for people who put trailing slashes in PATH elements.
3786 case $as_dir/ in #((
3787 .
/ | .
// | /[cC
]/* | \
3788 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3789 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3792 # OSF1 and SCO ODT 3.0 have their own names for install.
3793 # Don't use installbsd from OSF since it installs stuff as root
3795 for ac_prog
in ginstall scoinst
install; do
3796 for ac_exec_ext
in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3798 if test $ac_prog = install &&
3799 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3800 # AIX install. It has an incompatible calling convention.
3802 elif test $ac_prog = install &&
3803 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3804 # program-specific install script used by HP pwplus--don't use.
3807 rm -rf conftest.one conftest.two conftest.dir
3808 echo one
> conftest.one
3809 echo two
> conftest.two
3811 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3812 test -s conftest.one
&& test -s conftest.two
&&
3813 test -s conftest.dir
/conftest.one
&&
3814 test -s conftest.dir
/conftest.two
3816 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3829 rm -rf conftest.one conftest.two conftest.dir
3832 if test "${ac_cv_path_install+set}" = set; then
3833 INSTALL
=$ac_cv_path_install
3835 # As a last resort, use the slow shell script. Don't cache a
3836 # value for INSTALL within a source directory, because that will
3837 # break other packages using the cache if that directory is
3838 # removed, or if the value is a relative name.
3839 INSTALL
=$ac_install_sh
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3843 $as_echo "$INSTALL" >&6; }
3845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3846 # It thinks the first close brace ends the variable substitution.
3847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3851 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3857 ac_cpp
='$CXXCPP $CPPFLAGS'
3858 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 if ac_fn_cxx_try_link
"$LINENO"; then :
3877 rm -f core conftest.err conftest.
$ac_objext \
3878 conftest
$ac_exeext conftest.
$ac_ext
3880 ac_cpp
='$CPP $CPPFLAGS'
3881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3886 # make sure install is relative to srcdir - if a script
3887 if test "$srcdir" = "."; then
3888 # If srcdir isn't just ., then (srcdir) is already prepended.
3889 if test "${ac_install_sh}" = "${INSTALL}"; then
3890 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
3894 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
3895 #AC_CHECK_PROG(STRIP, strip, strip, true)
3897 # Check for the platform make
3898 for ac_prog
in gmake gnumake
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy
$ac_prog; ac_word
=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if ${ac_cv_path_U_MAKE+:} false
; then :
3905 $as_echo_n "(cached) " >&6
3909 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
3912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir
=.
3917 for ac_exec_ext
in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_path_U_MAKE
="$as_dir/$ac_word$ac_exec_ext"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 U_MAKE
=$ac_cv_path_U_MAKE
3931 if test -n "$U_MAKE"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
3933 $as_echo "$U_MAKE" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3940 test -n "$U_MAKE" && break
3942 test -n "$U_MAKE" || U_MAKE
="make"
3948 # Check whether --with-cross-build was given.
3949 if test "${with_cross_build+set}" = set; then :
3950 withval
=$with_cross_build; cross_buildroot
="${withval}"
3956 if test "X$cross_buildroot" = "X"; then
3957 if test "$cross_compiling" = "yes"; then
3958 as_fn_error $?
"Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5
3961 if test -f "${cross_buildroot}/config/icucross.mk"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
3963 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
3965 if test -d "${cross_buildroot}"; then
3966 as_fn_error $?
"${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
3968 as_fn_error $?
"No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
3974 # Check for doxygen to generate documentation
3975 # Extract the first word of "doxygen", so it can be a program name with args.
3976 set dummy doxygen
; ac_word
=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_path_DOXYGEN+:} false
; then :
3980 $as_echo_n "(cached) " >&6
3984 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3988 as_dummy
="$PATH:/usr/local/bin:/usr/bin"
3989 for as_dir
in $as_dummy
3992 test -z "$as_dir" && as_dir
=.
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 DOXYGEN
=$ac_cv_path_DOXYGEN
4007 if test -n "$DOXYGEN"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4009 $as_echo "$DOXYGEN" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4017 # Check that the linker is usable
4020 *-*-cygwin*|*-*-mingw*)
4021 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4022 as_fn_error $?
"link.exe is not a valid linker. Your PATH is incorrect.
4023 Please follow the directions in ICU's readme." "$LINENO" 5
4028 # Determine the executable suffix
4029 # We don't use AC_EXEEXT because some compilers output separate debugging
4030 # files, which confuses the AC_EXEEXT macro.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4032 $as_echo_n "checking checking for executable suffix... " >&6; }
4034 *-*-cygwin*|*-*-mingw*) EXEEXT
=.exe
;;
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4039 $as_echo "$EXEEXT" >&6; }
4042 # Determine how strict we want to be when compiling
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4045 $as_echo_n "checking whether strict compiling is on... " >&6; }
4046 # Check whether --enable-strict was given.
4047 if test "${enable_strict+set}" = set; then :
4048 enableval
=$enable_strict;
4049 if test "$enableval" = no
4051 ac_use_strict_options
=no
4053 ac_use_strict_options
=yes
4057 ac_use_strict_options
=yes
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4061 $as_echo "$ac_use_strict_options" >&6; }
4063 if test "$ac_use_strict_options" = yes
4065 if test "$GCC" = yes
4067 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
4068 # We use -std=c99 to disable the gnu99 defaults and its associated warnings
4069 CFLAGS
="$CFLAGS -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
4073 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4075 CFLAGS
="$CFLAGS /W4"
4079 if test "$GXX" = yes
4081 CXXFLAGS
="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4085 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4087 CXXFLAGS
="$CXXFLAGS /W4"
4094 # Check if we can build and use 64-bit libraries
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4098 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4099 if ${ac_cv_path_GREP+:} false
; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -z "$GREP"; then
4103 ac_path_GREP_found
=false
4104 # Loop through the user's path and test for each of PROGNAME-LIST
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4106 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_prog
in grep ggrep
; do
4111 for ac_exec_ext
in '' $ac_executable_extensions; do
4112 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4113 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4114 # Check for GNU ac_path_GREP and select it if it is found.
4115 # Check for GNU $ac_path_GREP
4116 case `"$ac_path_GREP" --version 2>&1` in
4118 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4121 $as_echo_n 0123456789 >"conftest.in"
4124 cat "conftest.in" "conftest.in" >"conftest.tmp"
4125 mv "conftest.tmp" "conftest.in"
4126 cp "conftest.in" "conftest.nl"
4127 $as_echo 'GREP' >> "conftest.nl"
4128 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4129 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4130 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4131 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4132 # Best one so far, save it but keep looking for a better one
4133 ac_cv_path_GREP
="$ac_path_GREP"
4134 ac_path_GREP_max
=$ac_count
4136 # 10*(2^10) chars as input seems more than enough
4137 test $ac_count -gt 10 && break
4139 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4142 $ac_path_GREP_found && break 3
4147 if test -z "$ac_cv_path_GREP"; then
4148 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4151 ac_cv_path_GREP
=$GREP
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4156 $as_echo "$ac_cv_path_GREP" >&6; }
4157 GREP
="$ac_cv_path_GREP"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4161 $as_echo_n "checking for egrep... " >&6; }
4162 if ${ac_cv_path_EGREP+:} false
; then :
4163 $as_echo_n "(cached) " >&6
4165 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4166 then ac_cv_path_EGREP
="$GREP -E"
4168 if test -z "$EGREP"; then
4169 ac_path_EGREP_found
=false
4170 # Loop through the user's path and test for each of PROGNAME-LIST
4171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4172 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4175 test -z "$as_dir" && as_dir
=.
4176 for ac_prog
in egrep; do
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4179 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4180 # Check for GNU ac_path_EGREP and select it if it is found.
4181 # Check for GNU $ac_path_EGREP
4182 case `"$ac_path_EGREP" --version 2>&1` in
4184 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4187 $as_echo_n 0123456789 >"conftest.in"
4190 cat "conftest.in" "conftest.in" >"conftest.tmp"
4191 mv "conftest.tmp" "conftest.in"
4192 cp "conftest.in" "conftest.nl"
4193 $as_echo 'EGREP' >> "conftest.nl"
4194 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4195 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4196 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4197 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4198 # Best one so far, save it but keep looking for a better one
4199 ac_cv_path_EGREP
="$ac_path_EGREP"
4200 ac_path_EGREP_max
=$ac_count
4202 # 10*(2^10) chars as input seems more than enough
4203 test $ac_count -gt 10 && break
4205 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4208 $ac_path_EGREP_found && break 3
4213 if test -z "$ac_cv_path_EGREP"; then
4214 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4217 ac_cv_path_EGREP
=$EGREP
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4223 $as_echo "$ac_cv_path_EGREP" >&6; }
4224 EGREP
="$ac_cv_path_EGREP"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4228 $as_echo_n "checking for ANSI C header files... " >&6; }
4229 if ${ac_cv_header_stdc+:} false
; then :
4230 $as_echo_n "(cached) " >&6
4232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4247 if ac_fn_c_try_compile
"$LINENO"; then :
4248 ac_cv_header_stdc
=yes
4250 ac_cv_header_stdc
=no
4252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4254 if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "memchr" >/dev
/null
2>&1; then :
4265 ac_cv_header_stdc
=no
4271 if test $ac_cv_header_stdc = yes; then
4272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev
/null
2>&1; then :
4282 ac_cv_header_stdc
=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then :
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4297 #if ((' ' & 0x0FF) == 0x020)
4298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4301 # define ISLOWER(c) \
4302 (('a' <= (c) && (c) <= 'i') \
4303 || ('j' <= (c) && (c) <= 'r') \
4304 || ('s' <= (c) && (c) <= 'z'))
4305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313 for (i = 0; i < 256; i++)
4314 if (XOR (islower (i), ISLOWER (i))
4315 || toupper (i) != TOUPPER (i))
4320 if ac_fn_c_try_run
"$LINENO"; then :
4323 ac_cv_header_stdc
=no
4325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4332 $as_echo "$ac_cv_header_stdc" >&6; }
4333 if test $ac_cv_header_stdc = yes; then
4335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4340 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4341 inttypes.h stdint.h unistd.h
4343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4346 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4347 cat >>confdefs.h
<<_ACEOF
4348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4358 ENABLE_64BIT_LIBS
=unknown
4359 ## revisit this for cross-compile.
4361 # Check whether --enable-64bit-libs was given.
4362 if test "${enable_64bit_libs+set}" = set; then :
4363 enableval
=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4364 case "${enableval}" in
4365 no
|false
|32) with_library_bits
=32; ;;
4366 yes|true
|64) with_library_bits
=64else32
;;
4367 nochange
) with_library_bits
=nochange
; ;;
4368 *) as_fn_error $?
"bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4375 # Check whether --with-library-bits was given.
4376 if test "${with_library_bits+set}" = set; then :
4377 withval
=$with_library_bits; case "${withval}" in
4378 ""|nochange
) BITS_REQ
=$withval ;;
4379 32|64|64else32
) BITS_REQ
=$withval ;;
4380 *) as_fn_error $?
"bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4385 # don't use these for cross compiling
4386 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4387 as_fn_error $?
"Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
4389 # The cast to long int works around a bug in the HP C Compiler
4390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4392 # This bug is HP SR number 8606223364.
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4394 $as_echo_n "checking size of void *... " >&6; }
4395 if ${ac_cv_sizeof_void_p+:} false
; then :
4396 $as_echo_n "(cached) " >&6
4398 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4401 if test "$ac_cv_type_void_p" = yes; then
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error
77 "cannot compute sizeof (void *)
4405 See \`config.log' for more details" "$LINENO" 5; }
4407 ac_cv_sizeof_void_p
=0
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4413 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4417 cat >>confdefs.h
<<_ACEOF
4418 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4423 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4424 case $ac_cv_sizeof_void_p in
4425 8) DEFAULT_64BIT
=yes ;;
4426 4) DEFAULT_64BIT
=no
;;
4427 *) DEFAULT_64BIT
=unknown
4431 # 'OK' here means, we can exit any further checking, everything's copa
4434 # do we need to check for buildable/runnable 32 or 64 bit?
4438 # later, can we run the 32/64 bit binaries so made?
4442 if test "$DEFAULT_64BIT" = "yes"; then
4443 # we get 64 bits by default.
4447 # need to look for 32 bit support.
4451 # everyone else is happy.
4455 elif test "$DEFAULT_64BIT" = "no"; then
4456 # not 64 bit by default.
4466 elif test "$DEFAULT_64BIT" = "unknown"; then
4470 64|64else32
) BITS_OK
=no
4472 BITS_CHECK_64
=yes ;;
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4480 $as_echo "$DEFAULT_64BIT" >&6; };
4482 if test "$BITS_OK" != "yes"; then
4483 # not copa. back these up.
4484 CFLAGS_OLD
="${CFLAGS}"
4485 CXXFLAGS_OLD
="${CXXFLAGS}"
4486 LDFLAGS_OLD
="${LDFLAGS}"
4487 ARFLAGS_OLD
="${ARFLAGS}"
4489 CFLAGS_32
="${CFLAGS}"
4490 CXXFLAGS_32
="${CXXFLAGS}"
4491 LDFLAGS_32
="${LDFLAGS}"
4492 ARFLAGS_32
="${ARFLAGS}"
4494 CFLAGS_64
="${CFLAGS}"
4495 CXXFLAGS_64
="${CXXFLAGS}"
4496 LDFLAGS_64
="${LDFLAGS}"
4497 ARFLAGS_64
="${ARFLAGS}"
4499 CAN_BUILD_64
=unknown
4500 CAN_BUILD_32
=unknown
4501 # These results can't be cached because is sets compiler flags.
4502 if test "$BITS_CHECK_64" = "yes"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4504 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4507 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4508 # Note, we don't have to actually check if the options work- we'll try them before using them.
4509 # So, only try actually testing the options, if you are trying to decide between multiple options.
4510 # On exit from the following clauses:
4511 # if CAN_BUILD_64=yes:
4512 # *FLAGS are assumed to contain the right settings for 64bit
4513 # else if CAN_BUILD_64=no: (default)
4514 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4516 if test "$GCC" = yes; then
4517 CFLAGS
="${CFLAGS} -m64"
4518 CXXFLAGS
="${CXXFLAGS} -m64"
4519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4523 if ac_fn_c_try_compile
"$LINENO"; then :
4528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4533 CFLAGS
="${CFLAGS} -m64"
4534 CXXFLAGS
="${CXXFLAGS} -m64"
4535 if test "$cross_compiling" = yes; then :
4536 CAN_BUILD_64
=unknown
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4542 if ac_fn_c_try_run
"$LINENO"; then :
4547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4551 if test "$CAN_BUILD_64" != yes; then
4552 # Nope. back out changes.
4553 CFLAGS
="${CFLAGS_OLD}"
4554 CXXFLAGS
="${CFLAGS_OLD}"
4555 # 2. try xarch=v9 [deprecated]
4556 ## TODO: cross compile: the following won't work.
4557 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
4558 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4559 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4560 if test -z "$SOL64" && test -n "$SPARCV9"; then
4561 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
4562 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4563 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
4570 CFLAGS
="${CFLAGS} -m64"
4571 CXXFLAGS
="${CXXFLAGS} -m64"
4572 if test "$cross_compiling" = yes; then :
4573 CAN_BUILD_64
=unknown
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4579 if ac_fn_c_try_run
"$LINENO"; then :
4584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4585 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4588 if test "$CAN_BUILD_64" != yes; then
4589 # Nope. back out changes.
4590 CFLAGS
="${CFLAGS_OLD}"
4591 CXXFLAGS
="${CXXFLAGS_OLD}"
4592 # 2. try the older compiler option
4593 ## TODO: cross compile problem
4594 AMD64
=`isainfo -n 2>&1 | grep amd64`
4595 SOL64
=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4596 if test -z "$SOL64" && test -n "$AMD64"; then
4597 CFLAGS
="${CFLAGS} -xtarget=generic64"
4598 CXXFLAGS
="${CXXFLAGS} -xtarget=generic64"
4604 # check for ecc/ecpc compiler support
4605 ## TODO: cross compiler problem
4606 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4607 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4613 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4614 # We only do this check to display the correct answer.
4615 ## TODO: cross compiler problem
4616 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4620 *-*-aix*|powerpc64
-*-linux*)
4621 CFLAGS
="${CFLAGS} -q64"
4622 CXXFLAGS
="${CXXFLAGS} -q64"
4623 LDFLAGS
="${LDFLAGS} -q64"
4624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4628 if ac_fn_c_try_compile
"$LINENO"; then :
4633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4634 if test "$CAN_BUILD_64" = yes; then
4635 # worked- set other options.
4638 # tell AIX what executable mode to use.
4639 ARFLAGS
="${ARFLAGS} -X64"
4644 # First we try the newer +DD64, if that doesn't work,
4645 # try other options.
4647 CFLAGS
="${CFLAGS} +DD64"
4648 CXXFLAGS
="${CXXFLAGS} +DD64"
4649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4653 if ac_fn_c_try_compile
"$LINENO"; then :
4658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 if test "$CAN_BUILD_64" != yes; then
4661 CFLAGS
="${CFLAGS_OLD}"
4662 CXXFLAGS
="${CXXFLAGS_OLD}"
4664 CFLAGS
="${CFLAGS} +DA2.0W"
4665 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
4666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4670 if ac_fn_c_try_compile
"$LINENO"; then :
4675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4678 *-*ibm
-openedition*|*-*-os390*)
4679 CFLAGS
="${CFLAGS} -Wc,lp64"
4680 CXXFLAGS
="${CXXFLAGS} -Wc,lp64"
4681 LDFLAGS
="${LDFLAGS} -Wl,lp64"
4682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4686 if ac_fn_c_try_compile
"$LINENO"; then :
4691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
4699 $as_echo "$CAN_BUILD_64" >&6; }
4700 if test "$CAN_BUILD_64" = yes; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
4702 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4703 if test "$cross_compiling" = yes; then :
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4710 if ac_fn_c_try_run
"$LINENO"; then :
4715 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4716 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
4720 $as_echo "$BITS_RUN_64" >&6; };
4722 CFLAGS_64
="${CFLAGS}"
4723 CXXFLAGS_64
="${CXXFLAGS}"
4724 LDFLAGS_64
="${LDFLAGS}"
4725 ARFLAGS_64
="${ARFLAGS}"
4728 CFLAGS
="${CFLAGS_OLD}"
4729 CXXFLAGS
="${CXXFLAGS_OLD}"
4730 LDFLAGS
="${LDFLAGS_OLD}"
4731 ARFLAGS
="${ARFLAGS_OLD}"
4733 if test "$BITS_CHECK_32" = "yes"; then
4734 # see comment under 'if BITS_CHECK_64', above.
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
4736 $as_echo_n "checking how to build 32-bit executables... " >&6; }
4737 if test "$GCC" = yes; then
4738 CFLAGS
="${CFLAGS} -m32"
4739 CXXFLAGS
="${CXXFLAGS} -m32"
4740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 int main(void) {return (sizeof(void*)*8==32)?0:1;}
4744 if ac_fn_c_try_compile
"$LINENO"; then :
4749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
4752 $as_echo "$CAN_BUILD_32" >&6; }
4753 if test "$CAN_BUILD_32" = yes; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
4755 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
4756 if test "$cross_compiling" = yes; then :
4759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 int main(void) {return (sizeof(void*)*8==32)?0:1;}
4763 if ac_fn_c_try_run
"$LINENO"; then :
4768 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4769 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
4773 $as_echo "$BITS_RUN_32" >&6; };
4774 CFLAGS_32
="${CFLAGS}"
4775 CXXFLAGS_32
="${CXXFLAGS}"
4776 LDFLAGS_32
="${LDFLAGS}"
4777 ARFLAGS_32
="${ARFLAGS}"
4780 CFLAGS
="${CFLAGS_OLD}"
4781 CXXFLAGS
="${CXXFLAGS_OLD}"
4782 LDFLAGS
="${LDFLAGS_OLD}"
4783 ARFLAGS
="${ARFLAGS_OLD}"
4787 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
4790 # First, implement 64else32
4791 if test "$BITS_REQ" = "64else32"; then
4792 if test "$BITS_RUN_64" = "yes"; then
4801 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
4802 CFLAGS
="${CFLAGS_32}"
4803 CXXFLAGS
="${CXXFLAGS_32}"
4804 LDFLAGS
="${LDFLAGS_32}"
4805 ARFLAGS
="${ARFLAGS_32}"
4807 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
4808 CFLAGS
="${CFLAGS_64}"
4809 CXXFLAGS
="${CXXFLAGS_64}"
4810 LDFLAGS
="${LDFLAGS_64}"
4811 ARFLAGS
="${ARFLAGS_64}"
4813 elif test "$BITS_OK" != "yes"; then
4814 as_fn_error $?
"Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
4821 # Determine the Makefile fragment
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
4824 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
4825 if ${icu_cv_host_frag+:} false
; then :
4826 $as_echo_n "(cached) " >&6
4831 if test "$GCC" = yes; then
4832 icu_cv_host_frag
=mh
-solaris-gcc
4834 icu_cv_host_frag
=mh
-solaris
4837 if test "$GCC" = yes; then
4838 icu_cv_host_frag
=mh
-alpha-linux-gcc
4840 icu_cv_host_frag
=mh
-alpha-linux-cc
4843 if test "$GCC" = yes; then
4844 icu_cv_host_frag
=mh
-linux
4846 icu_cv_host_frag
=mh
-linux-va
4848 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag
=mh
-linux ;;
4849 *-*-cygwin|*-*-mingw32|*-*-mingw64)
4850 if test "$GCC" = yes; then
4851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4855 #error This is not MinGW
4865 if ac_fn_c_try_compile
"$LINENO"; then :
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4870 #error This is not MinGW64
4880 if ac_fn_c_try_compile
"$LINENO"; then :
4881 icu_cv_host_frag
=mh
-mingw64
4883 icu_cv_host_frag
=mh
-mingw
4885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4887 icu_cv_host_frag
=mh
-cygwin
4889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4891 icu_cv_host_frag
=mh
-cygwin-msvc
4893 *-*-*bsd
*|*-*-dragonfly*) icu_cv_host_frag
=mh
-bsd-gcc ;;
4895 if test "$GCC" = yes; then
4896 icu_cv_host_frag
=mh
-aix-gcc
4898 icu_cv_host_frag
=mh
-aix-va
4901 if test "$GCC" = yes; then
4902 icu_cv_host_frag
=mh
-hpux-gcc
4905 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
4908 *-*ibm
-openedition*|*-*-os390*) icu_cv_host_frag
=mh
-os390 ;;
4909 *-*-os400*) icu_cv_host_frag
=mh
-os400 ;;
4910 *-apple-rhapsody*) icu_cv_host_frag
=mh
-darwin ;;
4911 *-apple-darwin*) icu_cv_host_frag
=mh
-darwin ;;
4912 *-*-beos) icu_cv_host_frag
=mh
-beos ;;
4913 *-*-haiku) icu_cv_host_frag
=mh
-haiku ;;
4914 *-*-irix*) icu_cv_host_frag
=mh
-irix ;;
4915 *-dec-osf*) icu_cv_host_frag
=mh
-alpha-osf ;;
4916 *-*-nto*) icu_cv_host_frag
=mh
-qnx ;;
4917 *-ncr-*) icu_cv_host_frag
=mh
-mpras ;;
4918 *) icu_cv_host_frag
=mh
-unknown ;;
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
4924 $as_echo "$icu_cv_host_frag" >&6; }
4927 # Checks for libraries and other host specific stuff
4928 # On HP/UX, don't link to -lm from a shared lib because it isn't
4929 # PIC (at least on 10.2)
4931 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4932 $as_echo_n "checking for floor in -lm... " >&6; }
4933 if ${ac_cv_lib_m_floor+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 ac_check_lib_save_LIBS
=$LIBS
4938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4941 /* Override any GCC internal prototype to avoid an error.
4942 Use char because int might match the return type of a GCC
4943 builtin and then its argument prototype would still apply. */
4956 if ac_fn_c_try_link
"$LINENO"; then :
4957 ac_cv_lib_m_floor
=yes
4959 ac_cv_lib_m_floor
=no
4961 rm -f core conftest.err conftest.
$ac_objext \
4962 conftest
$ac_exeext conftest.
$ac_ext
4963 LIBS
=$ac_check_lib_save_LIBS
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
4966 $as_echo "$ac_cv_lib_m_floor" >&6; }
4967 if test "x$ac_cv_lib_m_floor" = xyes
; then :
4972 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4973 $as_echo_n "checking for floor in -lm... " >&6; }
4974 if ${ac_cv_lib_m_floor+:} false
; then :
4975 $as_echo_n "(cached) " >&6
4977 ac_check_lib_save_LIBS
=$LIBS
4979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4982 /* Override any GCC internal prototype to avoid an error.
4983 Use char because int might match the return type of a GCC
4984 builtin and then its argument prototype would still apply. */
4997 if ac_fn_c_try_link
"$LINENO"; then :
4998 ac_cv_lib_m_floor
=yes
5000 ac_cv_lib_m_floor
=no
5002 rm -f core conftest.err conftest.
$ac_objext \
5003 conftest
$ac_exeext conftest.
$ac_ext
5004 LIBS
=$ac_check_lib_save_LIBS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5007 $as_echo "$ac_cv_lib_m_floor" >&6; }
5008 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5009 cat >>confdefs.h
<<_ACEOF
5021 # Check whether to build shared libraries
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5023 $as_echo_n "checking whether to build shared libraries... " >&6; }
5025 # Check whether --enable-shared was given.
5026 if test "${enable_shared+set}" = set; then :
5027 enableval
=$enable_shared; case "${enableval}" in
5028 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
5033 enabled
=yes; ENABLE_SHARED
=YES
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5038 $as_echo "$enabled" >&6; }
5041 # Check whether to build static libraries
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5043 $as_echo_n "checking whether to build static libraries... " >&6; }
5045 # Check whether --enable-static was given.
5046 if test "${enable_static+set}" = set; then :
5047 enableval
=$enable_static; case "${enableval}" in
5048 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5055 $as_echo "$enabled" >&6; }
5058 # When building release static library, there might be some optimization flags we can use
5059 if test "$ENABLE_STATIC" = "YES"; then
5060 if test "$ENABLE_SHARED" != "YES"; then
5061 if test "$ENABLE_RELEASE" = 1; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5063 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5064 CHECK_STATIC_OPT_FLAG
=no
5066 OLD_CPPFLAGS
="${CPPFLAGS}"
5067 OLD_LDFLAGS
="${LDFLAGS}"
5070 *-linux*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5071 if test "$GCC" = yes; then
5072 CPPFLAGS
="${CPPFLAGS} -ffunction-sections -fdata-sections"
5073 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
5080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5091 if ac_fn_c_try_link
"$LINENO"; then :
5092 CHECK_STATIC_OPT_FLAG
=yes
5094 CHECK_STATIC_OPT_FLAG
=no
5096 rm -f core conftest.err conftest.
$ac_objext \
5097 conftest
$ac_exeext conftest.
$ac_ext
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5099 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5100 if test "$CHECK_STATIC_OPT_FLAG" = no
; then
5101 CPPFLAGS
="${OLD_CPPFLAGS}"
5102 LDFLAGS
="${OLD_LDFLAGS}"
5109 # Check whether to enable auto cleanup of libraries
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5111 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5113 UCLN_NO_AUTO_CLEANUP
=1
5114 # Check whether --enable-auto-cleanup was given.
5115 if test "${enable_auto_cleanup+set}" = set; then :
5116 enableval
=$enable_auto_cleanup; case "${enableval}" in
5118 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5119 UCLN_NO_AUTO_CLEANUP
=0
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5126 $as_echo "$enabled" >&6; }
5129 # MSVC floating-point option
5130 MSVC_RELEASE_FLAG
=""
5131 if test $enabled = yes
5133 if test $icu_cv_host_frag = mh
-cygwin-msvc
5135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 #if defined _MSC_VER && _MSC_VER >= 1400
5140 Microsoft Visual C++ < 2005
5151 if ac_fn_c_try_compile
"$LINENO"; then :
5152 MSVC_RELEASE_FLAG
="/fp:precise"
5154 MSVC_RELEASE_FLAG
="/Op"
5156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5158 CFLAGS
="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5159 CXXFLAGS
="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5163 # Check whether to enabled draft APIs
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5165 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5167 U_DEFAULT_SHOW_DRAFT
=1
5168 # Check whether --enable-draft was given.
5169 if test "${enable_draft+set}" = set; then :
5170 enableval
=$enable_draft; case "${enableval}" in
5171 no
) enabled
=no
; U_DEFAULT_SHOW_DRAFT
=0;
5172 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5179 $as_echo "$enabled" >&6; }
5180 # Make sure that we can use draft API in ICU.
5181 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5182 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5186 if test -n "$ac_tool_prefix"; then
5187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5188 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_RANLIB+:} false
; then :
5192 $as_echo_n "(cached) " >&6
5194 if test -n "$RANLIB"; then
5195 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir
=.
5202 for ac_exec_ext
in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 RANLIB
=$ac_cv_prog_RANLIB
5215 if test -n "$RANLIB"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5217 $as_echo "$RANLIB" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5225 if test -z "$ac_cv_prog_RANLIB"; then
5226 ac_ct_RANLIB
=$RANLIB
5227 # Extract the first word of "ranlib", so it can be a program name with args.
5228 set dummy ranlib
; ac_word
=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$ac_ct_RANLIB"; then
5235 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir
=.
5242 for ac_exec_ext
in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5255 if test -n "$ac_ct_RANLIB"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5257 $as_echo "$ac_ct_RANLIB" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5263 if test "x$ac_ct_RANLIB" = x
; then
5266 case $cross_compiling:$ac_tool_warned in
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned
=yes ;;
5272 RANLIB
=$ac_ct_RANLIB
5275 RANLIB
="$ac_cv_prog_RANLIB"
5279 # look for 'ar' the proper way
5280 if test -n "$ac_tool_prefix"; then
5281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5282 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_AR+:} false
; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$AR"; then
5289 ac_cv_prog_AR
="$AR" # Let the user override the test.
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 if test -n "$AR"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5311 $as_echo "$AR" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5326 $as_echo_n "(cached) " >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5349 if test -n "$ac_ct_AR"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5351 $as_echo "$ac_ct_AR" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5357 if test "x$ac_ct_AR" = x
; then
5360 case $cross_compiling:$ac_tool_warned in
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364 ac_tool_warned
=yes ;;
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5374 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5376 U_DISABLE_RENAMING
=0
5377 # Check whether --enable-renaming was given.
5378 if test "${enable_renaming+set}" = set; then :
5379 enableval
=$enable_renaming; case "${enableval}" in
5380 yes|"") enabled
=yes ;;
5381 no
) enabled
=no
; U_DISABLE_RENAMING
=1;
5382 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5389 $as_echo "$enabled" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5393 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5396 # Check whether --enable-tracing was given.
5397 if test "${enable_tracing+set}" = set; then :
5398 enableval
=$enable_tracing; case "${enableval}" in
5399 yes|"") enabled
=yes;
5400 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5401 U_ENABLE_TRACING
=1 ;;
5402 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5408 $as_echo "$enabled" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
5415 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
5416 # Check whether --enable-dyload was given.
5417 if test "${enable_dyload+set}" = set; then :
5418 enableval
=$enable_dyload; case "${enableval}" in
5426 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5433 $as_echo "$enable" >&6; }
5436 if test "$enable" = "yes"; then
5437 for ac_header
in dlfcn.h
5439 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5440 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5441 cat >>confdefs.h
<<_ACEOF
5442 #define HAVE_DLFCN_H 1
5449 #AC_MSG_RESULT($enabled)
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5451 $as_echo_n "checking for library containing dlopen... " >&6; }
5452 if ${ac_cv_search_dlopen+:} false
; then :
5453 $as_echo_n "(cached) " >&6
5455 ac_func_search_save_LIBS
=$LIBS
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 /* Override any GCC internal prototype to avoid an error.
5460 Use char because int might match the return type of a GCC
5461 builtin and then its argument prototype would still apply. */
5474 for ac_lib
in '' dl
; do
5475 if test -z "$ac_lib"; then
5476 ac_res
="none required"
5479 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5481 if ac_fn_c_try_link
"$LINENO"; then :
5482 ac_cv_search_dlopen
=$ac_res
5484 rm -f core conftest.err conftest.
$ac_objext \
5486 if ${ac_cv_search_dlopen+:} false
; then :
5490 if ${ac_cv_search_dlopen+:} false
; then :
5493 ac_cv_search_dlopen
=no
5496 LIBS
=$ac_func_search_save_LIBS
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5499 $as_echo "$ac_cv_search_dlopen" >&6; }
5500 ac_res
=$ac_cv_search_dlopen
5501 if test "$ac_res" != no
; then :
5502 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5506 for ac_func
in dlopen
5508 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5509 if test "x$ac_cv_func_dlopen" = xyes
; then :
5510 cat >>confdefs.h
<<_ACEOF
5511 #define HAVE_DLOPEN 1
5518 if test "x$ac_cv_func_dlopen" != xyes
; then
5519 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5523 # Check for miscellanous functions.
5524 # So, use for putil / tools only.
5525 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5526 for ac_func
in gettimeofday
5528 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5529 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
5530 cat >>confdefs.h
<<_ACEOF
5531 #define HAVE_GETTIMEOFDAY 1
5539 # Check whether to use the evil rpath or not
5540 # Check whether --enable-rpath was given.
5541 if test "${enable_rpath+set}" = set; then :
5542 enableval
=$enable_rpath; case "${enableval}" in
5543 yes|"") ENABLE_RPATH
=YES
;;
5557 ac_cpp
='$CXXCPP $CPPFLAGS'
5558 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5563 $as_echo_n "checking if we have a C++ compiler... " >&6; }
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5575 if ac_fn_cxx_try_compile
"$LINENO"; then :
5580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 if test $cxx_okay = yes
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5584 $as_echo "Good" >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 as_fn_error $?
"C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5592 $as_echo_n "checking if #include <string> works... " >&6; }
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5604 if ac_fn_cxx_try_compile
"$LINENO"; then :
5605 ac_cv_header_stdstring
=yes
5607 ac_cv_header_stdstring
=no
5609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5611 $as_echo "$ac_cv_header_stdstring" >&6; }
5612 if test $ac_cv_header_stdstring = yes
5617 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5621 ac_cpp
='$CPP $CPPFLAGS'
5622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5627 # Always build ICU with multi-threading support.
5632 if test $threads = true
; then
5633 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5634 # and must do this before seaching for pthread_mutex_destroy, or
5635 # we will pick up libpthreads.so not libpthread.so
5636 # If this fails, then we must test for HPUX specials, before
5637 # moving on to a more generic test
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
5640 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5641 if ${ac_cv_lib_pthread_pthread_attr_init+:} false
; then :
5642 $as_echo_n "(cached) " >&6
5644 ac_check_lib_save_LIBS
=$LIBS
5645 LIBS
="-lpthread $LIBS"
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 /* Override any GCC internal prototype to avoid an error.
5650 Use char because int might match the return type of a GCC
5651 builtin and then its argument prototype would still apply. */
5655 char pthread_attr_init ();
5659 return pthread_attr_init ();
5664 if ac_fn_c_try_link
"$LINENO"; then :
5665 ac_cv_lib_pthread_pthread_attr_init
=yes
5667 ac_cv_lib_pthread_pthread_attr_init
=no
5669 rm -f core conftest.err conftest.
$ac_objext \
5670 conftest
$ac_exeext conftest.
$ac_ext
5671 LIBS
=$ac_check_lib_save_LIBS
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
5674 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
5675 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
; then :
5676 cat >>confdefs.h
<<_ACEOF
5677 #define HAVE_LIBPTHREAD 1
5680 LIBS
="-lpthread $LIBS"
5684 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5687 # Locate the right library for POSIX threads. We look for the
5688 # symbols in the libraries first, because on Solaris libc provides
5689 # pthread_create but libpthread has the real code :(
5690 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5691 # FreeBSD users may need libpthread if they do not have libc_r.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
5695 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
5696 if ${ac_cv_search_pthread_mutex_destroy+:} false
; then :
5697 $as_echo_n "(cached) " >&6
5699 ac_func_search_save_LIBS
="$LIBS"
5700 ac_cv_search_pthread_mutex_destroy
="no"
5701 for i
in pthread pthreads c_r
; do
5702 LIBS
="-l$i $ac_func_search_save_LIBS"
5703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 /* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5712 char pthread_mutex_destroy ();
5716 return pthread_mutex_destroy ();
5721 if ac_fn_c_try_link
"$LINENO"; then :
5722 ac_cv_search_pthread_mutex_destroy
="-l$i"
5725 rm -f core conftest.err conftest.
$ac_objext \
5726 conftest
$ac_exeext conftest.
$ac_ext
5728 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
5729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5738 char pthread_mutex_destroy ();
5742 return pthread_mutex_destroy ();
5747 if ac_fn_c_try_link
"$LINENO"; then :
5748 ac_cv_search_pthread_mutex_destroy
="none required"
5750 rm -f core conftest.err conftest.
$ac_objext \
5751 conftest
$ac_exeext conftest.
$ac_ext
5753 LIBS
="$ac_func_search_save_LIBS"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
5756 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
5757 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5758 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
5764 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5769 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5770 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false
; then :
5771 $as_echo_n "(cached) " >&6
5773 ac_check_lib_save_LIBS
=$LIBS
5774 LIBS
="-lpthread $LIBS"
5775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5778 /* Override any GCC internal prototype to avoid an error.
5779 Use char because int might match the return type of a GCC
5780 builtin and then its argument prototype would still apply. */
5784 char pthread_mutex_init ();
5788 return pthread_mutex_init ();
5793 if ac_fn_c_try_link
"$LINENO"; then :
5794 ac_cv_lib_pthread_pthread_mutex_init
=yes
5796 ac_cv_lib_pthread_pthread_mutex_init
=no
5798 rm -f core conftest.err conftest.
$ac_objext \
5799 conftest
$ac_exeext conftest.
$ac_ext
5800 LIBS
=$ac_check_lib_save_LIBS
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5803 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5804 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
; then :
5805 cat >>confdefs.h
<<_ACEOF
5806 #define HAVE_LIBPTHREAD 1
5809 LIBS
="-lpthread $LIBS"
5813 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
5818 ac_fn_c_check_func
"$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
5819 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
; then :
5824 if test $ac_cv_func_pthread_mutex_lock = yes; then
5828 # Check to see if we are using CygWin with MSVC
5830 *-pc-cygwin*|*-pc-mingw*)
5831 # For gcc, the thread options are set by mh-mingw/mh-cygwin
5832 # For msvc, the thread options are set by runConfigureICU
5836 # Add -mt because it does several nice things on newer compilers.
5837 case "${icu_cv_host_frag}" in
5839 OLD_CXXFLAGS
="${CXXFLAGS}"
5840 CXXFLAGS
="${CXXFLAGS} -mt"
5841 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
5842 CXXFLAGS
="${OLD_CXXFLAGS}"
5848 case "${icu_cv_host_frag}" in
5857 # Check whether --enable-weak-threads was given.
5858 if test "${enable_weak_threads+set}" = set; then :
5859 enableval
=$enable_weak_threads; case "${enableval}" in
5861 LIB_THREAD
="${LIBS%${OLD_LIBS}}"
5865 *) as_fn_error $?
"bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
5873 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
5874 # Do this check instead.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
5877 $as_echo_n "checking for mmap... " >&6; }
5878 if ${ac_cv_func_mmap_ok+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 #include <sys/mman.h>
5885 #include <sys/stat.h>
5890 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
5895 if ac_fn_c_try_link
"$LINENO"; then :
5896 ac_cv_func_mmap_ok
=yes
5898 ac_cv_func_mmap_ok
=no
5900 rm -f core conftest.err conftest.
$ac_objext \
5901 conftest
$ac_exeext conftest.
$ac_ext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
5905 $as_echo "$ac_cv_func_mmap_ok" >&6; }
5906 if test $ac_cv_func_mmap_ok = yes
5910 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
5915 $as_echo_n "checking for genccode assembly... " >&6; }
5917 # Check to see if genccode can generate simple assembly.
5920 *-linux*|*-kfreebsd*-gnu*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5921 if test "$GCC" = yes; then
5922 # We're using gcc, and the simple -a gcc command line works for genccode
5923 GENCCODE_ASSEMBLY
="-a gcc"
5926 if test "$GCC" = yes; then
5927 # When using gcc, look if we're also using GNU as.
5928 # When using GNU as, the simple -a gcc command line works for genccode.
5929 asv
=`"${CC}" -print-prog-name=as 2>/dev/null`
5930 asv
=`"${asv}" --version 2>/dev/null`
5932 X
*GNU
*) GENCCODE_ASSEMBLY
="-a gcc" ;;
5933 X
*) GENCCODE_ASSEMBLY
="-a sun-x86" ;;
5937 GENCCODE_ASSEMBLY
="-a sun-x86"
5940 GENCCODE_ASSEMBLY
="-a sun"
5943 GENCCODE_ASSEMBLY
="-a aCC-ia64"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
5949 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
5951 # Checks for header files
5952 for ac_header
in inttypes.h
5954 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5955 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_INTTYPES_H 1
5964 if test $ac_cv_header_inttypes_h = no
; then
5966 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
5970 if test "$CC" = ccc
; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
5972 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
5974 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
5975 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
5981 for ac_header
in dirent.h
5983 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5984 if test "x$ac_cv_header_dirent_h" = xyes
; then :
5985 cat >>confdefs.h
<<_ACEOF
5986 #define HAVE_DIRENT_H 1
5993 if test $ac_cv_header_dirent_h = no
; then
5995 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6002 # Check for endianness
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6004 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6005 if ${ac_cv_c_bigendian+:} false
; then :
6006 $as_echo_n "(cached) " >&6
6008 ac_cv_c_bigendian
=unknown
6009 # See if we're dealing with a universal compiler.
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #ifndef __APPLE_CC__
6013 not a universal capable compiler
6018 if ac_fn_c_try_compile
"$LINENO"; then :
6020 # Check for potential -arch flags. It is not universal unless
6021 # there are at least two -arch flags with different values.
6024 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6025 if test -n "$ac_prev"; then
6027 i?
86 | x86_64
| ppc
| ppc64
)
6028 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6031 ac_cv_c_bigendian
=universal
6037 elif test "x$ac_word" = "x-arch"; then
6042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 if test $ac_cv_c_bigendian = unknown
; then
6044 # See if sys/param.h defines the BYTE_ORDER macro.
6045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <sys/types.h>
6048 #include <sys/param.h>
6053 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6054 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6063 if ac_fn_c_try_compile
"$LINENO"; then :
6064 # It does; now see whether it defined to BIG_ENDIAN or not.
6065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <sys/types.h>
6068 #include <sys/param.h>
6073 #if BYTE_ORDER != BIG_ENDIAN
6081 if ac_fn_c_try_compile
"$LINENO"; then :
6082 ac_cv_c_bigendian
=yes
6084 ac_cv_c_bigendian
=no
6086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 if test $ac_cv_c_bigendian = unknown
; then
6091 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6099 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6107 if ac_fn_c_try_compile
"$LINENO"; then :
6108 # It does; now see whether it defined to _BIG_ENDIAN or not.
6109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6124 if ac_fn_c_try_compile
"$LINENO"; then :
6125 ac_cv_c_bigendian
=yes
6127 ac_cv_c_bigendian
=no
6129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6133 if test $ac_cv_c_bigendian = unknown
; then
6134 # Compile a test program.
6135 if test "$cross_compiling" = yes; then :
6136 # Try to guess by grepping values from an object file.
6137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 short int ascii_mm[] =
6140 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6141 short int ascii_ii[] =
6142 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6143 int use_ascii (int i) {
6144 return ascii_mm[i] + ascii_ii[i];
6146 short int ebcdic_ii[] =
6147 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6148 short int ebcdic_mm[] =
6149 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6150 int use_ebcdic (int i) {
6151 return ebcdic_mm[i] + ebcdic_ii[i];
6158 return use_ascii (foo) == use_ebcdic (foo);
6163 if ac_fn_c_try_compile
"$LINENO"; then :
6164 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6165 ac_cv_c_bigendian
=yes
6167 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6168 if test "$ac_cv_c_bigendian" = unknown
; then
6169 ac_cv_c_bigendian
=no
6171 # finding both strings is unlikely to happen, but who knows?
6172 ac_cv_c_bigendian
=unknown
6176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 $ac_includes_default
6185 /* Are we little or big endian? From Harbison&Steele. */
6189 char c[sizeof (long int)];
6192 return u.c[sizeof (long int) - 1] == 1;
6198 if ac_fn_c_try_run
"$LINENO"; then :
6199 ac_cv_c_bigendian
=no
6201 ac_cv_c_bigendian
=yes
6203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6210 $as_echo "$ac_cv_c_bigendian" >&6; }
6211 case $ac_cv_c_bigendian in #(
6213 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6219 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6223 as_fn_error $?
"unknown endianness
6224 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6227 if test $ac_cv_c_bigendian = no
; then
6236 # Do various POSIX related checks
6237 U_HAVE_NL_LANGINFO_CODESET
=0
6238 U_NL_LANGINFO_CODESET
=-1
6239 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6240 if test "x$ac_cv_func_nl_langinfo" = xyes
; then :
6241 U_HAVE_NL_LANGINFO
=1
6243 U_HAVE_NL_LANGINFO
=0
6246 if test $U_HAVE_NL_LANGINFO -eq 1; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6248 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6249 if ${ac_cv_nl_langinfo_codeset+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 ac_cv_nl_langinfo_codeset
="unknown"
6253 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
6254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <langinfo.h>
6265 if ac_fn_c_try_link
"$LINENO"; then :
6266 ac_cv_nl_langinfo_codeset
="$a"; break
6268 rm -f core conftest.err conftest.
$ac_objext \
6269 conftest
$ac_exeext conftest.
$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6273 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6274 if test x
$ac_cv_nl_langinfo_codeset != xunknown
6276 U_HAVE_NL_LANGINFO_CODESET
=1
6277 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
6278 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6280 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6283 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6289 # Namespace support checks
6291 ac_cpp
='$CXXCPP $CPPFLAGS'
6292 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6297 $as_echo_n "checking for namespace support... " >&6; }
6298 if ${ac_cv_namespace_ok+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 namespace x_version {void f(){}}
6304 namespace x = x_version;
6305 using namespace x_version;
6315 if ac_fn_cxx_try_link
"$LINENO"; then :
6316 ac_cv_namespace_ok
=yes
6318 ac_cv_namespace_ok
=no
6320 rm -f core conftest.err conftest.
$ac_objext \
6321 conftest
$ac_exeext conftest.
$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6325 $as_echo "$ac_cv_namespace_ok" >&6; }
6326 if test $ac_cv_namespace_ok = no
6328 as_fn_error $?
"Namespace support is required to build ICU." "$LINENO" 5
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6332 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6333 U_OVERRIDE_CXX_ALLOCATION
=0
6334 U_HAVE_PLACEMENT_NEW
=0
6335 if ${ac_cv_override_cxx_allocation_ok+:} false
; then :
6336 $as_echo_n "(cached) " >&6
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6343 void *operator new(size_t size) {return malloc(size);}
6344 void *operator new[](size_t size) {return malloc(size);}
6345 void operator delete(void *p) {free(p);}
6346 void operator delete[](void *p) {free(p);}
6357 if ac_fn_cxx_try_link
"$LINENO"; then :
6358 ac_cv_override_cxx_allocation_ok
=yes
6360 ac_cv_override_cxx_allocation_ok
=no
6362 rm -f core conftest.err conftest.
$ac_objext \
6363 conftest
$ac_exeext conftest.
$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6367 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6368 if test $ac_cv_override_cxx_allocation_ok = yes
6370 U_OVERRIDE_CXX_ALLOCATION
=1
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6372 $as_echo_n "checking for placement new and delete... " >&6; }
6373 if ${ac_cv_override_placement_new_ok+:} false
; then :
6374 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6381 void *operator new(size_t size) {return malloc(size);}
6382 void *operator new[](size_t size) {return malloc(size);}
6383 void operator delete(void *p) {free(p);}
6384 void operator delete[](void *p) {free(p);}
6385 void * operator new(size_t, void *ptr) { return ptr; }
6386 void operator delete(void *, void *) {}
6397 if ac_fn_cxx_try_link
"$LINENO"; then :
6398 ac_cv_override_placement_new_ok
=yes
6400 ac_cv_override_placement_new_ok
=no
6402 rm -f core conftest.err conftest.
$ac_objext \
6403 conftest
$ac_exeext conftest.
$ac_ext
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6407 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6408 if test $ac_cv_override_placement_new_ok = yes
6410 U_HAVE_PLACEMENT_NEW
=1
6412 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6415 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6421 ac_cpp
='$CPP $CPPFLAGS'
6422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6426 ac_fn_c_check_func
"$LINENO" "popen" "ac_cv_func_popen"
6427 if test "x$ac_cv_func_popen" = xyes
; then :
6431 if test x
$ac_cv_func_popen = xyes
6435 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6440 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
6441 if test "x$ac_cv_func_tzset" = xyes
; then :
6446 if test x
$ac_cv_func_tzset = xyes
6451 ac_fn_c_check_func
"$LINENO" "_tzset" "ac_cv_func__tzset"
6452 if test "x$ac_cv_func__tzset" = xyes
; then :
6456 if test x
$ac_cv_func__tzset = xyes
6461 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6469 $as_echo_n "checking for tzname... " >&6; }
6470 if ${ac_cv_var_tzname+:} false
; then :
6471 $as_echo_n "(cached) " >&6
6473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6480 #ifndef tzname /* For SGI. */
6481 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6491 if ac_fn_c_try_link
"$LINENO"; then :
6492 ac_cv_var_tzname
=yes
6496 rm -f core conftest.err conftest.
$ac_objext \
6497 conftest
$ac_exeext conftest.
$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6500 $as_echo "$ac_cv_var_tzname" >&6; }
6501 if test $ac_cv_var_tzname = yes; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6506 $as_echo_n "checking for _tzname... " >&6; }
6507 if ${ac_cv_var__tzname+:} false
; then :
6508 $as_echo_n "(cached) " >&6
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6514 extern char *_tzname[];
6523 if ac_fn_c_try_link
"$LINENO"; then :
6524 ac_cv_var__tzname
=yes
6526 ac_cv_var__tzname
=no
6528 rm -f core conftest.err conftest.
$ac_objext \
6529 conftest
$ac_exeext conftest.
$ac_ext
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6532 $as_echo "$ac_cv_var__tzname" >&6; }
6533 if test $ac_cv_var__tzname = yes; then
6537 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6544 $as_echo_n "checking for timezone... " >&6; }
6545 if ${ac_cv_var_timezone+:} false
; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6566 if ac_fn_c_try_link
"$LINENO"; then :
6567 ac_cv_var_timezone
=yes
6569 ac_cv_var_timezone
=no
6571 rm -f core conftest.err conftest.
$ac_objext \
6572 conftest
$ac_exeext conftest.
$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6575 $as_echo "$ac_cv_var_timezone" >&6; }
6577 if test $ac_cv_var_timezone = yes; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6582 $as_echo_n "checking for __timezone... " >&6; }
6583 if ${ac_cv_var___timezone+:} false
; then :
6584 $as_echo_n "(cached) " >&6
6586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6597 if ac_fn_c_try_link
"$LINENO"; then :
6598 ac_cv_var___timezone
=yes
6600 ac_cv_var___timezone
=no
6602 rm -f core conftest.err conftest.
$ac_objext \
6603 conftest
$ac_exeext conftest.
$ac_ext
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
6606 $as_echo "$ac_cv_var___timezone" >&6; }
6607 if test $ac_cv_var___timezone = yes; then
6608 U_TIMEZONE
=__timezone
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
6612 $as_echo_n "checking for _timezone... " >&6; }
6613 if ${ac_cv_var__timezone+:} false
; then :
6614 $as_echo_n "(cached) " >&6
6616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6627 if ac_fn_c_try_link
"$LINENO"; then :
6628 ac_cv_var__timezone
=yes
6630 ac_cv_var__timezone
=no
6632 rm -f core conftest.err conftest.
$ac_objext \
6633 conftest
$ac_exeext conftest.
$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
6636 $as_echo "$ac_cv_var__timezone" >&6; }
6637 if test $ac_cv_var__timezone = yes; then
6638 U_TIMEZONE
=_timezone
6641 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
6648 # Checks for typedefs
6649 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6650 if test "x$ac_cv_type_int8_t" = xyes
; then :
6654 cat >>confdefs.h
<<_ACEOF
6655 #define int8_t signed char
6660 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6661 if test "x$ac_cv_type_uint8_t" = xyes
; then :
6665 cat >>confdefs.h
<<_ACEOF
6666 #define uint8_t unsigned char
6671 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6672 if test "x$ac_cv_type_int16_t" = xyes
; then :
6676 cat >>confdefs.h
<<_ACEOF
6677 #define int16_t signed short
6682 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6683 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6687 cat >>confdefs.h
<<_ACEOF
6688 #define uint16_t unsigned short
6693 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6694 if test "x$ac_cv_type_int32_t" = xyes
; then :
6698 cat >>confdefs.h
<<_ACEOF
6699 #define int32_t signed long
6704 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6705 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6709 cat >>confdefs.h
<<_ACEOF
6710 #define uint32_t unsigned long
6715 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
6716 if test "x$ac_cv_type_int64_t" = xyes
; then :
6720 cat >>confdefs.h
<<_ACEOF
6721 #define int64_t signed long long
6726 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
6727 if test "x$ac_cv_type_uint64_t" = xyes
; then :
6731 cat >>confdefs.h
<<_ACEOF
6732 #define uint64_t unsigned long long
6738 if test $ac_cv_type_int8_t = no
; then
6739 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
6742 if test $ac_cv_type_uint8_t = no
; then
6743 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
6746 if test $ac_cv_type_int16_t = no
; then
6747 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
6750 if test $ac_cv_type_uint16_t = no
; then
6751 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
6754 if test $ac_cv_type_int32_t = no
; then
6755 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
6758 if test $ac_cv_type_uint32_t = no
; then
6759 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
6762 if test $ac_cv_type_int64_t = no
; then
6763 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
6766 if test $ac_cv_type_uint64_t = no
; then
6767 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
6770 # Do various wchar_t related checks
6771 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6772 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6777 if test "$ac_cv_header_wchar_h" = no
6781 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
6784 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
6787 # Some broken systems have wchar.h but not some of its functions...
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
6789 $as_echo_n "checking for library containing wcscpy... " >&6; }
6790 if ${ac_cv_search_wcscpy+:} false
; then :
6791 $as_echo_n "(cached) " >&6
6793 ac_func_search_save_LIBS
=$LIBS
6794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6797 /* Override any GCC internal prototype to avoid an error.
6798 Use char because int might match the return type of a GCC
6799 builtin and then its argument prototype would still apply. */
6812 for ac_lib
in '' wcs w
; do
6813 if test -z "$ac_lib"; then
6814 ac_res
="none required"
6817 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6819 if ac_fn_c_try_link
"$LINENO"; then :
6820 ac_cv_search_wcscpy
=$ac_res
6822 rm -f core conftest.err conftest.
$ac_objext \
6824 if ${ac_cv_search_wcscpy+:} false
; then :
6828 if ${ac_cv_search_wcscpy+:} false
; then :
6831 ac_cv_search_wcscpy
=no
6834 LIBS
=$ac_func_search_save_LIBS
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
6837 $as_echo "$ac_cv_search_wcscpy" >&6; }
6838 ac_res
=$ac_cv_search_wcscpy
6839 if test "$ac_res" != no
; then :
6840 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6844 if test "$ac_cv_search_wcscpy" != no
; then
6848 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
6854 # The cast to long int works around a bug in the HP C Compiler
6855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6857 # This bug is HP SR number 8606223364.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6859 $as_echo_n "checking size of wchar_t... " >&6; }
6860 if ${ac_cv_sizeof_wchar_t+:} false
; then :
6861 $as_echo_n "(cached) " >&6
6863 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
6875 if test "$ac_cv_type_wchar_t" = yes; then
6876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878 as_fn_error
77 "cannot compute sizeof (wchar_t)
6879 See \`config.log' for more details" "$LINENO" 5; }
6881 ac_cv_sizeof_wchar_t
=0
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6887 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6891 cat >>confdefs.h
<<_ACEOF
6892 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6896 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
6897 # We do this check to verify that everything is okay.
6898 if test $U_SIZEOF_WCHAR_T = 0; then
6899 if test $U_HAVE_WCHAR_H=1; then
6900 as_fn_error $?
"There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
6905 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
6906 U_CHECK_UTF16_STRING
=1
6907 CHECK_UTF16_STRING_RESULT
="unknown"
6910 *-*-aix*|powerpc64
-*-linux*)
6911 if test "$GCC" = no
; then
6912 OLD_CFLAGS
="${CFLAGS}"
6913 OLD_CXXFLAGS
="${CXXFLAGS}"
6914 CFLAGS
="${CFLAGS} -qutf"
6915 CXXFLAGS
="${CXXFLAGS} -qutf"
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 const unsigned short hello[] = u"hello";
6927 if ac_fn_c_try_compile
"$LINENO"; then :
6928 U_CHECK_UTF16_STRING
=1
6930 U_CHECK_UTF16_STRING
=0
6932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6933 if test "$U_CHECK_UTF16_STRING" = 0; then
6934 CFLAGS
="${OLD_CFLAGS}"
6935 CXXFLAGS
="${OLD_CXXFLAGS}"
6937 CHECK_UTF16_STRING_RESULT
="-qutf"
6942 if test "$GCC" = no
; then
6943 OLD_CFLAGS
="${CFLAGS}"
6944 OLD_CXXFLAGS
="${CXXFLAGS}"
6945 CFLAGS
="${CFLAGS} -xustr=ascii_utf16_ushort"
6946 CXXFLAGS
="${CXXFLAGS} -xustr=ascii_utf16_ushort"
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 const unsigned short hello[] = U"hello";
6958 if ac_fn_c_try_compile
"$LINENO"; then :
6959 U_CHECK_UTF16_STRING
=1
6961 U_CHECK_UTF16_STRING
=0
6963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6964 if test "$U_CHECK_UTF16_STRING" = 0; then
6965 CFLAGS
="${OLD_CFLAGS}"
6966 CXXFLAGS
="${OLD_CXXFLAGS}"
6968 CHECK_UTF16_STRING_RESULT
="-xustr=ascii_utf16_ushort"
6970 # Since we can't detect the availability of this UTF-16 syntax at compile time,
6971 # we depend on configure telling us that we can use it.
6972 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
6973 # we only use this macro within ICU.
6974 # If an ICU user uses icu-config, this feature will be enabled.
6975 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
6976 U_CHECK_UTF16_STRING
=0
6981 if test "$GCC" = no
; then
6982 # The option will be detected at compile time without additional compiler options.
6983 CHECK_UTF16_STRING_RESULT
="available"
6987 # wchar_t can be used
6988 CHECK_UTF16_STRING_RESULT
="available"
6994 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
6995 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
6996 if test "$GCC" = yes; then
6997 OLD_CFLAGS
="${CFLAGS}"
6998 CFLAGS
="${CFLAGS} -std=gnu99"
6999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7002 static const char16_t test[] = u"This is a UTF16 literal string.";
7012 if ac_fn_c_try_compile
"$LINENO"; then :
7017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7018 if test "$CC_UTF16_STRING" = 1; then
7019 CHECK_UTF16_STRING_RESULT
="C only";
7021 CFLAGS
="${OLD_CFLAGS}"
7024 if test "$GXX" = yes; then
7025 OLD_CXXFLAGS
="${CXXFLAGS}"
7026 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7027 CXXFLAGS
="${CXXFLAGS} -std=c++11"
7029 ac_cpp
='$CXXCPP $CPPFLAGS'
7030 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7037 static const char16_t test[] = u"This is a UTF16 literal string.";
7047 if ac_fn_cxx_try_compile
"$LINENO"; then :
7052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7054 ac_cpp
='$CPP $CPPFLAGS'
7055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7059 if test "$CXX_UTF16_STRING" = 1; then
7060 if test "$CC_UTF16_STRING" = 1; then
7061 CHECK_UTF16_STRING_RESULT
="available";
7063 CHECK_UTF16_STRING_RESULT
="C++ only";
7066 CXXFLAGS
="${OLD_CXXFLAGS}"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7071 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7073 # Enable/disable extras
7074 # Check whether --enable-extras was given.
7075 if test "${enable_extras+set}" = set; then :
7076 enableval
=$enable_extras; case "${enableval}" in
7079 *) as_fn_error $?
"bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7086 if test "$extras" = true
; then
7091 # Check whether --enable-icuio was given.
7092 if test "${enable_icuio+set}" = set; then :
7093 enableval
=$enable_icuio; case "${enableval}" in
7096 *) as_fn_error $?
"bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7103 if test "$icuio" = true
; then
7109 # Enable/disable layout
7110 # Check whether --enable-layout was given.
7111 if test "${enable_layout+set}" = set; then :
7112 enableval
=$enable_layout; case "${enableval}" in
7115 *) as_fn_error $?
"bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7122 if test "$layout" = true
; then
7129 # Check whether --with-data-packaging was given.
7130 if test "${with_data_packaging+set}" = set; then :
7131 withval
=$with_data_packaging; case "${withval}" in
7132 files
|archive
|library
) datapackaging
=$withval ;;
7133 auto
) datapackaging
=$withval ;;
7134 common
) datapackaging
=archive
;;
7135 dll
) datapackaging
=library
;;
7136 static
) datapackaging
=static
;;
7137 *) as_fn_error $?
"bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7144 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7145 # thesysconfdir=`eval echo $sysconfdir`
7146 thedatadir
=`eval echo $datadir`
7147 # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}.
7148 pkgicudatadir
=$datadir
7149 thepkgicudatadir
=$thedatadir
7154 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
7155 # default to library
7156 datapackaging
=library
7157 if test "$ENABLE_STATIC" = "YES"; then
7158 if test "$ENABLE_SHARED" != "YES"; then
7159 datapackaging
=static
7164 datapackaging_dir
=`eval echo $thedatadir`"/icu/${VERSION}"
7166 datapackaging_msg
="(No explaination for mode $datapackaging.)"
7168 datapackaging_msg_path
="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override."
7169 datapackaging_msg_set
="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override."
7170 datapackaging_howfound
="(unknown)"
7172 case "$datapackaging" in
7174 DATA_PACKAGING_MODE
=files
7175 datapackaging_msg
="ICU data will be stored in individual files."
7176 datapackaging_howfound
="$datapackaging_msg_path"
7179 DATA_PACKAGING_MODE
=common
7180 datapackaging_msg
="ICU data will be stored in a single .dat file."
7181 datapackaging_howfound
="$datapackaging_msg_path"
7184 DATA_PACKAGING_MODE
=dll
7185 datapackaging_msg
="ICU data will be linked with ICU."
7186 if test "$ENABLE_STATIC" = "YES"; then
7187 datapackaging_msg
="$datapackaging_msg A static data library will be built. "
7189 if test "$ENABLE_SHARED" = "YES"; then
7190 datapackaging_msg
="$datapackaging_msg A shared data library will be built. "
7192 datapackaging_howfound
="$datapackaging_msg_set"
7195 DATA_PACKAGING_MODE
=static
7196 datapackaging_msg
="ICU data will be stored in a static library."
7197 datapackaging_howfound
="$datapackaging_msg_set"
7202 # Sets a library suffix
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7204 $as_echo_n "checking for a library suffix to use... " >&6; }
7206 # Check whether --with-library-suffix was given.
7207 if test "${with_library_suffix+set}" = set; then :
7208 withval
=$with_library_suffix; ICULIBSUFFIX
="${withval}"
7214 if test "$msg" = ""; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7218 $as_echo "$msg" >&6; }
7220 if test "$ICULIBSUFFIX" != ""
7223 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7224 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7231 # Enable/disable tests
7232 # Check whether --enable-tests was given.
7233 if test "${enable_tests+set}" = set; then :
7234 enableval
=$enable_tests; case "${enableval}" in
7237 *) as_fn_error $?
"bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7244 if test "$tests" = true
; then
7250 # Enable/disable samples
7251 # Check whether --enable-samples was given.
7252 if test "${enable_samples+set}" = set; then :
7253 enableval
=$enable_samples; case "${enableval}" in
7254 yes) samples
=true
;;
7255 no
) samples
=false
;;
7256 *) as_fn_error $?
"bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7263 if test "$samples" = true
; then
7269 ICUDATA_CHAR
=$U_ENDIAN_CHAR
7271 # Platform-specific Makefile setup
7272 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7274 *-*-solaris*) platform
=U_SOLARIS
;;
7275 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) platform
=U_LINUX
;;
7276 *-*-*bsd
*|*-*-dragonfly*) platform
=U_BSD
;;
7277 *-*-aix*) platform
=U_AIX
;;
7278 *-*-hpux*) platform
=U_HPUX
;;
7279 *-apple-darwin*|*-apple-rhapsody*) platform
=U_DARWIN
;;
7280 *-*-cygwin*) platform
=U_CYGWIN
;;
7281 *-*-mingw*) platform
=U_MINGW
;;
7282 *-*ibm
-openedition*|*-*-os390*) platform
=OS390
7283 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7286 *-*-os400*) platform
=OS400
7287 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7290 *-*-nto*) platform
=U_QNX
;;
7291 *-dec-osf*) platform
=U_OSF
;;
7292 *-*-beos) platform
=U_BEOS
;;
7293 *-*-irix*) platform
=U_IRIX
;;
7294 *-ncr-*) platform
=U_MPRAS
;;
7295 *) platform
=U_UNKNOWN_PLATFORM
;;
7299 platform_make_fragment_name
="$icu_cv_host_frag"
7300 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
7304 if test "${FORCE_LIBS}" != ""; then
7305 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7309 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7312 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
7313 CFLAGS
="$CFLAGS \$(THREADSCFLAGS)"
7314 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS)"
7319 # append all config cppflags
7320 CPPFLAGS
="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7322 echo "CPPFLAGS=$CPPFLAGS"
7323 echo "CFLAGS=$CFLAGS"
7324 echo "CXXFLAGS=$CXXFLAGS"
7327 # output the Makefiles
7328 ac_config_files
="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
7330 cat >confcache
<<\_ACEOF
7331 # This file is a shell script that caches the results of configure
7332 # tests run on this system so they can be shared between configure
7333 # scripts and configure runs, see configure's option --config-cache.
7334 # It is not useful on other systems. If it contains results you don't
7335 # want to keep, you may remove or edit it.
7337 # config.status only pays attention to the cache file if you give it
7338 # the --recheck option to rerun configure.
7340 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7341 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7346 # The following way of writing the cache mishandles newlines in values,
7347 # but we know of no workaround that is simple, portable, and efficient.
7348 # So, we kill variables containing newlines.
7349 # Ultrix sh set writes to stderr and can't be redirected directly,
7350 # and sets the high bit in the cache file unless we assign to the vars.
7352 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7353 eval ac_val
=\$
$ac_var
7357 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7358 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7361 _
| IFS
| as_nl
) ;; #(
7362 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
7363 *) { eval $ac_var=; unset $ac_var;} ;;
7369 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7370 *${as_nl}ac_space
=\
*)
7371 # `set' does not quote correctly, so add quotes: double-quote
7372 # substitution turns \\\\ into \\, and sed turns \\ into \.
7375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7378 # `set' quotes correctly as required by POSIX, so do not add quotes.
7379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7392 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7393 if test -w "$cache_file"; then
7394 if test "x$cache_file" != "x/dev/null"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7396 $as_echo "$as_me: updating cache $cache_file" >&6;}
7397 if test ! -f "$cache_file" || test -h "$cache_file"; then
7398 cat confcache
>"$cache_file"
7400 case $cache_file in #(
7402 mv -f confcache
"$cache_file"$$
&&
7403 mv -f "$cache_file"$$
"$cache_file" ;; #(
7405 mv -f confcache
"$cache_file" ;;
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7416 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7417 # Let make expand exec_prefix.
7418 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7420 # Transform confdefs.h into DEFS.
7421 # Protect against shell expansion while executing Makefile rules.
7422 # Protect against Makefile macro expansion.
7424 # If the first sed substitution is executed (which looks for macros that
7425 # take arguments), then branch to the quote section. Otherwise,
7426 # look for a macro that doesn't take arguments.
7436 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7438 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7442 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7455 DEFS
=`sed -n "$ac_script" confdefs.h`
7461 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7462 # 1. Remove the extension, and $U if already installed.
7463 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7464 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7466 # will be set to the directory where LIBOBJS objects are built.
7467 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7468 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7472 LTLIBOBJS
=$ac_ltlibobjs
7477 : "${CONFIG_STATUS=./config.status}"
7479 ac_clean_files_save
=$ac_clean_files
7480 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7486 # Generated by $as_me.
7487 # Run this file to recreate the current configuration.
7488 # Compiler output produced by configure, useful for debugging
7489 # configure, is in config.log if it exists.
7495 SHELL=\${CONFIG_SHELL-$SHELL}
7498 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
7499 ## -------------------- ##
7500 ## M4sh Initialization. ##
7501 ## -------------------- ##
7503 # Be more Bourne compatible
7504 DUALCASE
=1; export DUALCASE
# for MKS sh
7505 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7509 # is contrary to our usage. Disable this feature.
7510 alias -g '${1+"$@"}'='"$@"'
7511 setopt NO_GLOB_SUBST
7513 case `(set -o) 2>/dev/null` in #(
7525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7526 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7529 # Prefer a ksh shell builtin over an external printf program on Solaris,
7530 # but without wasting forks for bash or zsh.
7531 if test -z "$BASH_VERSION$ZSH_VERSION" \
7532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7533 as_echo='print
-r --'
7534 as_echo_n='print
-rn --'
7535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7536 as_echo='printf %s
\n'
7537 as_echo_n='printf %s
'
7539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7540 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7541 as_echo_n='/usr
/ucb
/echo -n'
7543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7544 as_echo_n_body='eval
7548 expr "X$arg" : "X\\(.*\\)$as_nl";
7549 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7553 export as_echo_n_body
7554 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7557 as_echo='sh
-c $as_echo_body as_echo
'
7560 # The user is always right.
7561 if test "${PATH_SEPARATOR+set}" != set; then
7563 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7564 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7571 # We need space, tab and new line, in precisely that order. Quoting is
7572 # there to prevent editors from complaining about space-tab.
7573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7574 # splitting by setting IFS to empty value.)
7577 # Find who we are. Look in the path if we contain no directory separator.
7580 *[\\/]* ) as_myself=$0 ;;
7581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7592 # We did not find ourselves, most probably we were run as `sh COMMAND'
7593 # in which case we are not to be found in the path.
7594 if test "x$as_myself" = x
; then
7597 if test ! -f "$as_myself"; then
7598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7602 # Unset variables that we do not need and which cause bugs (e.g. in
7603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7604 # suppresses any "Segmentation fault" message there. '((' could
7605 # trigger a bug in pdksh 5.2.14.
7606 for as_var
in BASH_ENV ENV MAIL MAILPATH
7607 do eval test x\
${$as_var+set} = xset \
7608 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
7621 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7625 # ----------------------------------------
7626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7628 # script with STATUS, using 1 if that was 0.
7631 as_status
=$1; test $as_status -eq 0 && as_status
=1
7633 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7636 $as_echo "$as_me: error: $2" >&2
7637 as_fn_exit
$as_status
7641 # as_fn_set_status STATUS
7642 # -----------------------
7643 # Set $? to STATUS, without forking.
7647 } # as_fn_set_status
7651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7661 # Portably unset VAR.
7664 { eval $1=; unset $1;}
7666 as_unset
=as_fn_unset
7667 # as_fn_append VAR VALUE
7668 # ----------------------
7669 # Append the text in VALUE to the end of the definition contained in VAR. Take
7670 # advantage of any shell optimizations that allow amortized linear growth over
7671 # repeated appends, instead of the typical quadratic growth present in naive
7673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7674 eval 'as_fn_append ()
7685 # as_fn_arith ARG...
7686 # ------------------
7687 # Perform arithmetic evaluation on the ARGs, and store the result in the
7688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7689 # must be portable across $(()) and expr.
7690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7691 eval 'as_fn_arith ()
7698 as_val
=`expr "$@" || test $? -eq 1`
7703 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7704 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7710 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7711 as_basename
=basename
7716 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7722 as_me
=`$as_basename -- "$0" ||
7723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7724 X"$0" : 'X\(//\)$' \| \
7725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7727 sed '/^.*\/\([^/][^/]*\)\/*$/{
7741 # Avoid depending upon Character Ranges.
7742 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7743 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7744 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7745 as_cr_digits
='0123456789'
7746 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7748 ECHO_C
= ECHO_N
= ECHO_T
=
7749 case `echo -n x` in #(((((
7751 case `echo 'xy\c'` in
7752 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7754 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7761 rm -f conf$$ conf$$.exe conf$$.
file
7762 if test -d conf$$.dir
; then
7763 rm -f conf$$.dir
/conf$$.
file
7766 mkdir conf$$.dir
2>/dev
/null
7768 if (echo >conf$$.
file) 2>/dev
/null
; then
7769 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7771 # ... but there are two gotchas:
7772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7774 # In both cases, we have to default to `cp -p'.
7775 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
7777 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7785 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7786 rmdir conf$$.dir
2>/dev
/null
7791 # Create "$as_dir" as a directory, including parents if necessary.
7796 -*) as_dir
=.
/$as_dir;;
7798 test -d "$as_dir" || eval $as_mkdir_p || {
7802 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7803 *) as_qdir
=$as_dir;;
7805 as_dirs
="'$as_qdir' $as_dirs"
7806 as_dir
=`$as_dirname -- "$as_dir" ||
7807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808 X"$as_dir" : 'X\(//\)[^/]' \| \
7809 X"$as_dir" : 'X\(//\)$' \| \
7810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7811 $as_echo X"$as_dir" |
7812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7829 test -d "$as_dir" && break
7831 test -z "$as_dirs" || eval "mkdir $as_dirs"
7832 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7836 if mkdir -p .
2>/dev
/null
; then
7837 as_mkdir_p
='mkdir -p "$as_dir"'
7839 test -d .
/-p && rmdir .
/-p
7843 if test -x / >/dev
/null
2>&1; then
7846 if ls -dL / >/dev
/null
2>&1; then
7853 if test -d "$1"; then
7859 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7860 ???[sx]*):;;*)false;;esac;fi
7864 as_executable_p
=$as_test_x
7866 # Sed expression to map a string onto a valid CPP name.
7867 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7869 # Sed expression to map a string onto a valid variable name.
7870 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7874 ## ----------------------------------- ##
7875 ## Main body of $CONFIG_STATUS script. ##
7876 ## ----------------------------------- ##
7878 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7880 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
7881 # Save the log message, to keep $0 and so on meaningful, and to
7882 # report actual input values of CONFIG_FILES etc. instead of their
7883 # values after options handling.
7885 This file was extended by $as_me, which was
7886 generated by GNU Autoconf 2.68. Invocation command line was
7888 CONFIG_FILES = $CONFIG_FILES
7889 CONFIG_HEADERS = $CONFIG_HEADERS
7890 CONFIG_LINKS = $CONFIG_LINKS
7891 CONFIG_COMMANDS = $CONFIG_COMMANDS
7894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7899 case $ac_config_files in *"
7900 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7906 # Files that config.status was made for.
7907 config_files="$ac_config_files"
7911 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
7913 \`$as_me' instantiates files and other configuration actions
7914 from templates according to the current configuration. Unless the files
7915 and actions are specified as TAGs, all are instantiated by default.
7917 Usage: $0 [OPTION]... [TAG]...
7919 -h, --help print this help, then exit
7920 -V, --version print version number and configuration settings, then exit
7921 --config print configuration, then exit
7922 -q, --quiet, --silent
7923 do not print progress messages
7924 -d, --debug don't remove temporary files
7925 --recheck update $as_me by reconfiguring in the same conditions
7926 --file=FILE[:TEMPLATE]
7927 instantiate the configuration file FILE
7929 Configuration files:
7932 Report bugs to the package provider."
7935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7936 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7939 configured by $0, generated by GNU Autoconf 2.68,
7940 with options \\"\$ac_cs_config\\"
7942 Copyright (C) 2010 Free Software Foundation, Inc.
7943 This config.status script is free software; the Free Software Foundation
7944 gives unlimited permission to copy, distribute and modify it."
7949 test -n "\$AWK" || AWK=awk
7952 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
7953 # The default lists apply if the user does not specify any file.
7959 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7960 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7964 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7976 # Handling of the options.
7977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7980 $as_echo "$ac_cs_version"; exit ;;
7981 --config | --confi | --conf | --con | --co | --c )
7982 $as_echo "$ac_cs_config"; exit ;;
7983 --debug | --debu | --deb | --de | --d | -d )
7985 --file | --fil | --fi | --f )
7988 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7989 '') as_fn_error $?
"missing file argument" ;;
7991 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7992 ac_need_defaults
=false
;;
7993 --he | --h | --help | --hel | -h )
7994 $as_echo "$ac_cs_usage"; exit ;;
7995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8000 -*) as_fn_error $?
"unrecognized option: \`$1'
8001 Try \`$0 --help' for more information." ;;
8003 *) as_fn_append ac_config_targets
" $1"
8004 ac_need_defaults
=false
;;
8010 ac_configure_extra_args
=
8012 if $ac_cs_silent; then
8014 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8019 if \$ac_cs_recheck; then
8020 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8022 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8023 CONFIG_SHELL='$SHELL'
8029 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8034 ## Running $as_me. ##
8040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8043 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8045 # Handling of arguments.
8046 for ac_config_target
in $ac_config_targets
8048 case $ac_config_target in
8049 "icudefs.mk") CONFIG_FILES
="$CONFIG_FILES icudefs.mk" ;;
8050 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8051 "data/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES data/pkgdataMakefile" ;;
8052 "config/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES config/Makefile.inc" ;;
8053 "config/icu.pc") CONFIG_FILES
="$CONFIG_FILES config/icu.pc" ;;
8054 "config/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES config/pkgdataMakefile" ;;
8055 "data/Makefile") CONFIG_FILES
="$CONFIG_FILES data/Makefile" ;;
8056 "stubdata/Makefile") CONFIG_FILES
="$CONFIG_FILES stubdata/Makefile" ;;
8057 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8058 "i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES i18n/Makefile" ;;
8059 "layout/Makefile") CONFIG_FILES
="$CONFIG_FILES layout/Makefile" ;;
8060 "layoutex/Makefile") CONFIG_FILES
="$CONFIG_FILES layoutex/Makefile" ;;
8061 "io/Makefile") CONFIG_FILES
="$CONFIG_FILES io/Makefile" ;;
8062 "extra/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/Makefile" ;;
8063 "extra/uconv/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/Makefile" ;;
8064 "extra/uconv/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8065 "extra/scrptrun/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8066 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8067 "tools/ctestfw/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8068 "tools/toolutil/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/toolutil/Makefile" ;;
8069 "tools/makeconv/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/makeconv/Makefile" ;;
8070 "tools/genrb/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genrb/Makefile" ;;
8071 "tools/genccode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genccode/Makefile" ;;
8072 "tools/gencmn/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencmn/Makefile" ;;
8073 "tools/gencnval/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencnval/Makefile" ;;
8074 "tools/gendict/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gendict/Makefile" ;;
8075 "tools/gentest/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gentest/Makefile" ;;
8076 "tools/gennorm2/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8077 "tools/genbrk/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genbrk/Makefile" ;;
8078 "tools/gensprep/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gensprep/Makefile" ;;
8079 "tools/icuinfo/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8080 "tools/icupkg/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icupkg/Makefile" ;;
8081 "tools/icuswap/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuswap/Makefile" ;;
8082 "tools/pkgdata/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8083 "tools/tzcode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/tzcode/Makefile" ;;
8084 "tools/gencfu/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencfu/Makefile" ;;
8085 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
8086 "test/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES test/compat/Makefile" ;;
8087 "test/testdata/Makefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/Makefile" ;;
8088 "test/testdata/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8089 "test/hdrtst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/hdrtst/Makefile" ;;
8090 "test/intltest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/intltest/Makefile" ;;
8091 "test/cintltst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/cintltst/Makefile" ;;
8092 "test/iotest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/iotest/Makefile" ;;
8093 "test/letest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/letest/Makefile" ;;
8094 "test/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/Makefile" ;;
8095 "test/perf/collationperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8096 "test/perf/collperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8097 "test/perf/dicttrieperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8098 "test/perf/ubrkperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8099 "test/perf/charperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8100 "test/perf/convperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8101 "test/perf/normperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8102 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8103 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8104 "test/perf/strsrchperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8105 "test/perf/unisetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8106 "test/perf/usetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8107 "test/perf/ustrperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8108 "test/perf/utfperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8109 "test/perf/utrie2perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8110 "samples/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/Makefile" ;;
8111 "samples/date/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/date/Makefile" ;;
8112 "samples/cal/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/cal/Makefile" ;;
8113 "samples/layout/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/layout/Makefile" ;;
8115 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8120 # If the user did not use the arguments to specify the items to instantiate,
8121 # then the envvar interface is used. Set only those that are not.
8122 # We use the long form for the default assignment because of an extremely
8123 # bizarre bug on SunOS 4.1.3.
8124 if $ac_need_defaults; then
8125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8128 # Have a temporary directory for convenience. Make it in the build tree
8129 # simply because there is no reason against having it here, and in addition,
8130 # creating and moving files from /tmp can sometimes cause problems.
8131 # Hook for its removal unless debugging.
8132 # Note that there is a small window in which the directory will not be cleaned:
8133 # after its creation but before its name has been assigned to `$tmp'.
8137 trap 'exit_status=$?
8139 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8141 trap 'as_fn_exit 1' 1 2 13 15
8143 # Create a (secure) tmp directory for tmp files.
8146 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8150 tmp
=.
/conf$$
-$RANDOM
8151 (umask 077 && mkdir "$tmp")
8152 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8155 # Set up the scripts for CONFIG_FILES section.
8156 # No need to generate them if there are no CONFIG_FILES.
8157 # This happens for instance with `./config.status config.h'.
8158 if test -n "$CONFIG_FILES"; then
8161 ac_cr
=`echo X | tr X '\015'`
8162 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8163 # But we know of no other shell where ac_cr would be empty at this
8164 # point, so we can use a bashism as a fallback.
8165 if test "x$ac_cr" = x
; then
8166 eval ac_cr
=\$
\'\\r
\'
8168 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8169 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8175 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8180 echo "cat >conf$$subs.awk <<_ACEOF" &&
8181 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8184 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8185 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8187 for ac_last_try in false false false false false :; do
8188 . ./conf$$subs.sh ||
8189 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8191 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8192 if test $ac_delim_n = $ac_delim_num; then
8194 elif $ac_last_try; then
8195 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8197 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8203 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8207 s/^/S["/; s
/!.
*/"]=/
8217 s/\(.\{148\}\)..*/\1/
8219 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8224 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8231 s/\(.\{148\}\)..*/\1/
8233 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8237 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8242 ' <conf$$subs.awk | sed '
8247 ' >>$CONFIG_STATUS || ac_write_fail=1
8248 rm -f conf$$subs.awk
8249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8251 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8252 for (key in S) S_is_set[key] = 1
8258 nfields = split(line, field, "@
")
8260 len = length(field[1])
8261 for (i = 2; i < nfields; i++) {
8263 keylen = length(key)
8264 if (S_is_set[key]) {
8266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8267 len += length(value) + length(field[++i])
8278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8279 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8280 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8283 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8284 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8287 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8288 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8289 # trailing colons and then remove the whole line if VPATH becomes empty
8290 # (actually we leave an empty line to preserve line numbers).
8291 if test "x
$srcdir" = x.; then
8292 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8311 fi # test -n "$CONFIG_FILES"
8314 eval set X " :F
$CONFIG_FILES "
8319 :[FHLC]) ac_mode=$ac_tag; continue;;
8321 case $ac_mode$ac_tag in
8323 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8324 :[FH]-) ac_tag=-:-;;
8325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8342 -) ac_f="$ac_tmp/stdin";;
8343 *) # Look for the file first in the build tree, then in the source tree
8344 # (if the path is not absolute). The absolute path cannot be DOS-style,
8345 # because $ac_f cannot contain `:'.
8349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8351 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8354 as_fn_append ac_file_inputs " '$ac_f'"
8357 # Let's still pretend it is `configure' which instantiates (i.e., don't
8358 # use $as_me), people would be surprised to read:
8359 # /* config.h. Generated by config.status. */
8360 configure_input='Generated from '`
8361 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8363 if test x"$ac_file" != x-; then
8364 configure_input="$ac_file.
$configure_input"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8366 $as_echo "$as_me: creating
$ac_file" >&6;}
8368 # Neutralize special characters interpreted by sed in replacement strings.
8369 case $configure_input in #(
8370 *\&* | *\|* | *\\* )
8371 ac_sed_conf_input=`$as_echo "$configure_input" |
8372 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8373 *) ac_sed_conf_input=$configure_input;;
8377 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8378 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8383 ac_dir=`$as_dirname -- "$ac_file" ||
8384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8385 X"$ac_file" : 'X\(//\)[^/]' \| \
8386 X"$ac_file" : 'X\(//\)$' \| \
8387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8388 $as_echo X"$ac_file" |
8389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8406 as_dir="$ac_dir"; as_fn_mkdir_p
8410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8413 # A "..
" for each directory in $ac_dir_suffix.
8414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8415 case $ac_top_builddir_sub in
8416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8420 ac_abs_top_builddir=$ac_pwd
8421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8422 # for backward compatibility:
8423 ac_top_builddir=$ac_top_build_prefix
8426 .) # We are building in place.
8428 ac_top_srcdir=$ac_top_builddir_sub
8429 ac_abs_top_srcdir=$ac_pwd ;;
8430 [\\/]* | ?:[\\/]* ) # Absolute name.
8431 ac_srcdir=$srcdir$ac_dir_suffix;
8432 ac_top_srcdir=$srcdir
8433 ac_abs_top_srcdir=$srcdir ;;
8435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8436 ac_top_srcdir=$ac_top_build_prefix$srcdir
8437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8455 # If the template does not know about datarootdir, expand it.
8456 # FIXME: This hack should be removed a few years after 2.60.
8457 ac_datarootdir_hack=; ac_datarootdir_seen=
8468 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8469 *datarootdir*) ac_datarootdir_seen=yes;;
8470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8472 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8475 ac_datarootdir_hack='
8476 s&@datadir@&$datadir&g
8477 s&@docdir@&$docdir&g
8478 s&@infodir@&$infodir&g
8479 s&@localedir@&$localedir&g
8480 s&@mandir@&$mandir&g
8481 s&\\\${datarootdir}&$datarootdir&g' ;;
8485 # Neutralize VPATH when `$srcdir' = `.'.
8486 # Shell code in configure.ac might set extrasub.
8487 # FIXME: do we really want to maintain this feature?
8488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8489 ac_sed_extra="$ac_vpsub
8492 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8494 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8495 s
|@configure_input@
|$ac_sed_conf_input|;t t
8496 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8497 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8498 s
&@srcdir@
&$ac_srcdir&;t t
8499 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8500 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8501 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8502 s
&@builddir@
&$ac_builddir&;t t
8503 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8504 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8505 s
&@INSTALL@
&$ac_INSTALL&;t t
8506 $ac_datarootdir_hack
8508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8509 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8511 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8512 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8514 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8516 which seems to be undefined. Please make sure it is defined" >&5
8517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8518 which seems to be undefined. Please make sure it is defined" >&2;}
8520 rm -f "$ac_tmp/stdin"
8522 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8523 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8537 ac_clean_files=$ac_clean_files_save
8539 test $ac_write_fail = 0 ||
8540 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8543 # configure is writing to config.log, and then calls config.status.
8544 # config.status does its own redirection, appending to config.log.
8545 # Unfortunately, on DOS this fails, as config.log is still kept open
8546 # by configure, so config.status won't be able to
write to it
; its
8547 # output is simply discarded. So we exec the FD to /dev/null,
8548 # effectively closing config.log, so it can be properly (re)opened and
8549 # appended to by config.status. When coming back to configure, we
8550 # need to make the FD available again.
8551 if test "$no_create" != yes; then
8553 ac_config_status_args
=
8554 test "$silent" = yes &&
8555 ac_config_status_args
="$ac_config_status_args --quiet"
8557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8560 # would make configure fail if this is the last instruction.
8561 $ac_cs_success || as_fn_exit
1
8563 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8565 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8570 echo "ICU for C/C++ $VERSION is ready to be built."
8571 echo "=== Important Notes: ==="
8573 echo "Data Packaging: $datapackaging"
8574 echo " This means: $datapackaging_msg"
8575 echo " To locate data: $datapackaging_howfound"
8577 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
8578 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
8580 echo "** WARNING: $U_MAKE may not be GNU make."
8581 echo "This may cause ICU to fail to build. Please make sure that GNU make"
8582 echo "is in your PATH so that the configure script can detect its location."
8584 if test "x$AR" = "xfalse"; then
8585 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
8589 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
8590 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM
="$platform"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8592 $as_echo "ok" >&6; }
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
8595 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
8598 if test -n "$UCONFIG_CPPFLAGS"; then
8599 HDRFILE
="uconfig.h.prepend"
8600 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8602 echo " ${UCONFIG_CPPFLAGS}"
8604 echo 'The recommended way to do this is to prepend the following lines to source/common/unicode/uconfig.h or #include them near the top of that file.'
8605 echo "Creating the file ${HDRFILE}"
8607 echo '--------------- ' "${HDRFILE}"
8609 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8610 echo >> "${HDRFILE}"
8611 for flag
in ${UCONFIG_CPPFLAGS};
8613 echo " /* $flag */" >> "${HDRFILE}"
8616 \
echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
8617 \
echo >> "${HDRFILE}"
8620 \
echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
8621 \
echo >> "${HDRFILE}"
8624 \
echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
8625 \
echo >> "${HDRFILE}"
8630 \
echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
8631 echo >> "${HDRFILE}"
8632 echo '--------------- end ' "${HDRFILE}"
8635 $as_unset _CXX_CXXSUFFIX