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