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