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