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