1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.61. 4 # 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463 } 464 465 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 481 esac 482 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486 else 487 as_expr=false 488 fi 489 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 497 echo >conf$$.file 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506 elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508 else 509 as_ln_s='cp -p' 510 fi 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 513 514 if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516 else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519 fi 520 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 543 544 # Sed expression to map a string onto a valid CPP name. 545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547 # Sed expression to map a string onto a valid variable name. 548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553 # Check that we are running under the correct shell. 554 SHELL=${CONFIG_SHELL-/bin/sh} 555 556 case X$ECHO in 557 X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561 esac 562 563 echo=${ECHO-echo} 564 if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567 elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573 else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576 fi 577 578 if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582 $* 583 EOF 584 exit 0 585 fi 586 587 # The HP-UX ksh and POSIX shell print the target directory to stdout 588 # if CDPATH is set. 589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591 if test -z "$ECHO"; then 592 if test "X${echo_test_string+set}" != Xset; then 593 # find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603 fi 604 605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609 else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689 fi 690 fi 691 692 # Copy echo and quote the copy suitably for passing to libtool from 693 # the Makefile, instead of quoting the original, which is used later. 694 ECHO=$echo 695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697 fi 698 699 700 701 702 tagnames=${tagnames+${tagnames},}CXX 703 704 tagnames=${tagnames+${tagnames},}F77 705 706 exec 7<&0 </dev/null 6>&1 707 708 # Name of the host. 709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710 # so uname gets run too. 711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713 # 714 # Initializations. 715 # 716 ac_default_prefix=/usr/local 717 ac_clean_files= 718 ac_config_libobj_dir=. 719 LIBOBJS= 720 cross_compiling=no 721 subdirs= 722 MFLAGS= 723 MAKEFLAGS= 724 SHELL=${CONFIG_SHELL-/bin/sh} 725 726 # Identity of this package. 727 PACKAGE_NAME= 728 PACKAGE_TARNAME= 729 PACKAGE_VERSION= 730 PACKAGE_STRING= 731 PACKAGE_BUGREPORT= 732 733 ac_unique_file="intl/dcigettext.c" 734 # Factoring default headers for most tests. 735 ac_includes_default="\ 736 #include <stdio.h> 737 #ifdef HAVE_SYS_TYPES_H 738 # include <sys/types.h> 739 #endif 740 #ifdef HAVE_SYS_STAT_H 741 # include <sys/stat.h> 742 #endif 743 #ifdef STDC_HEADERS 744 # include <stdlib.h> 745 # include <stddef.h> 746 #else 747 # ifdef HAVE_STDLIB_H 748 # include <stdlib.h> 749 # endif 750 #endif 751 #ifdef HAVE_STRING_H 752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753 # include <memory.h> 754 # endif 755 # include <string.h> 756 #endif 757 #ifdef HAVE_STRINGS_H 758 # include <strings.h> 759 #endif 760 #ifdef HAVE_INTTYPES_H 761 # include <inttypes.h> 762 #endif 763 #ifdef HAVE_STDINT_H 764 # include <stdint.h> 765 #endif 766 #ifdef HAVE_UNISTD_H 767 # include <unistd.h> 768 #endif" 769 770 gt_needs= 771 gl_header_list= 772 gl_func_list= 773 ac_subst_vars='SHELL 774 PATH_SEPARATOR 775 PACKAGE_NAME 776 PACKAGE_TARNAME 777 PACKAGE_VERSION 778 PACKAGE_STRING 779 PACKAGE_BUGREPORT 780 exec_prefix 781 prefix 782 program_transform_name 783 bindir 784 sbindir 785 libexecdir 786 datarootdir 787 datadir 788 sysconfdir 789 sharedstatedir 790 localstatedir 791 includedir 792 oldincludedir 793 docdir 794 infodir 795 htmldir 796 dvidir 797 pdfdir 798 psdir 799 libdir 800 localedir 801 mandir 802 DEFS 803 ECHO_C 804 ECHO_N 805 ECHO_T 806 LIBS 807 build_alias 808 host_alias 809 target_alias 810 INSTALL_PROGRAM 811 INSTALL_SCRIPT 812 INSTALL_DATA 813 am__isrc 814 CYGPATH_W 815 PACKAGE 816 VERSION 817 ACLOCAL 818 AUTOCONF 819 AUTOMAKE 820 AUTOHEADER 821 MAKEINFO 822 install_sh 823 STRIP 824 INSTALL_STRIP_PROGRAM 825 mkdir_p 826 AWK 827 SET_MAKE 828 am__leading_dot 829 AMTAR 830 am__tar 831 am__untar 832 CC 833 CFLAGS 834 LDFLAGS 835 CPPFLAGS 836 ac_ct_CC 837 EXEEXT 838 OBJEXT 839 DEPDIR 840 am__include 841 am__quote 842 AMDEP_TRUE 843 AMDEP_FALSE 844 AMDEPBACKSLASH 845 CCDEPMODE 846 am__fastdepCC_TRUE 847 am__fastdepCC_FALSE 848 YACC 849 YFLAGS 850 JAVA_CHOICE 851 CPP 852 GREP 853 EGREP 854 HAVE_GCJ_IN_PATH 855 HAVE_JAVAC_IN_PATH 856 HAVE_JIKES_IN_PATH 857 CONF_JAVAC 858 CLASSPATH 859 CLASSPATH_SEPARATOR 860 HAVE_JAVAC_ENVVAR 861 HAVE_GCJ_C 862 HAVE_JAVAC 863 HAVE_JIKES 864 JAR 865 BUILDJAVA 866 CSHARP_CHOICE 867 HAVE_CSCC_IN_PATH 868 HAVE_MCS_IN_PATH 869 HAVE_CSC_IN_PATH 870 HAVE_CSCC 871 HAVE_MCS 872 HAVE_CSC 873 CSHARPCOMPFLAGS 874 BUILDCSHARP 875 build 876 build_cpu 877 build_vendor 878 build_os 879 host 880 host_cpu 881 host_vendor 882 host_os 883 RANLIB 884 LN_S 885 ECHO 886 AR 887 DLLTOOL 888 AS 889 OBJDUMP 890 CXX 891 CXXFLAGS 892 ac_ct_CXX 893 CXXDEPMODE 894 am__fastdepCXX_TRUE 895 am__fastdepCXX_FALSE 896 CXXCPP 897 F77 898 FFLAGS 899 ac_ct_F77 900 LIBTOOL 901 USE_NLS 902 MSGFMT 903 GMSGFMT 904 MSGFMT_015 905 GMSGFMT_015 906 XGETTEXT 907 XGETTEXT_015 908 MSGMERGE 909 GLIBC2 910 CFLAG_VISIBILITY 911 HAVE_VISIBILITY 912 ALLOCA 913 PRI_MACROS_BROKEN 914 LIBPTH 915 LTLIBPTH 916 LIBTHREAD 917 LTLIBTHREAD 918 LIBMULTITHREAD 919 LTLIBMULTITHREAD 920 LIBICONV 921 LTLIBICONV 922 INTLBISON 923 GLIBC21 924 INTL_MACOSX_LIBS 925 HAVE_POSIX_PRINTF 926 HAVE_ASPRINTF 927 HAVE_SNPRINTF 928 HAVE_WPRINTF 929 WOE32DLL 930 BUILD_INCLUDED_LIBINTL 931 USE_INCLUDED_LIBINTL 932 CATOBJEXT 933 DATADIRNAME 934 INSTOBJEXT 935 GENCAT 936 INTLOBJS 937 INTL_LIBTOOL_SUFFIX_PREFIX 938 INTLLIBS 939 LIBINTL 940 LTLIBINTL 941 POSUB 942 GL_COND_LIBTOOL_TRUE 943 GL_COND_LIBTOOL_FALSE 944 ALLOCA_H 945 GETOPT_H 946 RELOCATABLE 947 SET_RELOCATABLE 948 RELOCATABLE_VIA_LD_TRUE 949 RELOCATABLE_VIA_LD_FALSE 950 STDBOOL_H 951 HAVE__BOOL 952 UNISTD_H 953 LIBGRT_LIBDEPS 954 LIBGRT_LTLIBDEPS 955 PERL 956 CROSS_COMPILING 957 LIBSCHED 958 ENABLE_LIBASPRINTF_TRUE 959 ENABLE_LIBASPRINTF_FALSE 960 subdirs 961 LIBOBJS 962 LTLIBOBJS 963 gl_LIBOBJS 964 gl_LTLIBOBJS' 965 ac_subst_files='' 966 ac_precious_vars='build_alias 967 host_alias 968 target_alias 969 CC 970 CFLAGS 971 LDFLAGS 972 LIBS 973 CPPFLAGS 974 YACC 975 YFLAGS 976 CPP 977 CXX 978 CXXFLAGS 979 CCC 980 CXXCPP 981 F77 982 FFLAGS' 983 ac_subdirs_all='libasprintf' 984 985 # Initialize some variables set by options. 986 ac_init_help= 987 ac_init_version=false 988 # The variables have the same names as the options, with 989 # dashes changed to underlines. 990 cache_file=/dev/null 991 exec_prefix=NONE 992 no_create= 993 no_recursion= 994 prefix=NONE 995 program_prefix=NONE 996 program_suffix=NONE 997 program_transform_name=s,x,x, 998 silent= 999 site= 1000 srcdir= 1001 verbose= 1002 x_includes=NONE 1003 x_libraries=NONE 1004 1005 # Installation directory options. 1006 # These are left unexpanded so users can "make install exec_prefix=/foo" 1007 # and all the variables that are supposed to be based on exec_prefix 1008 # by default will actually change. 1009 # Use braces instead of parens because sh, perl, etc. also accept them. 1010 # (The list follows the same order as the GNU Coding Standards.) 1011 bindir='${exec_prefix}/bin' 1012 sbindir='${exec_prefix}/sbin' 1013 libexecdir='${exec_prefix}/libexec' 1014 datarootdir='${prefix}/share' 1015 datadir='${datarootdir}' 1016 sysconfdir='${prefix}/etc' 1017 sharedstatedir='${prefix}/com' 1018 localstatedir='${prefix}/var' 1019 includedir='${prefix}/include' 1020 oldincludedir='/usr/include' 1021 docdir='${datarootdir}/doc/${PACKAGE}' 1022 infodir='${datarootdir}/info' 1023 htmldir='${docdir}' 1024 dvidir='${docdir}' 1025 pdfdir='${docdir}' 1026 psdir='${docdir}' 1027 libdir='${exec_prefix}/lib' 1028 localedir='${datarootdir}/locale' 1029 mandir='${datarootdir}/man' 1030 1031 ac_prev= 1032 ac_dashdash= 1033 for ac_option 1034 do 1035 # If the previous option needs an argument, assign it. 1036 if test -n "$ac_prev"; then 1037 eval $ac_prev=\$ac_option 1038 ac_prev= 1039 continue 1040 fi 1041 1042 case $ac_option in 1043 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1044 *) ac_optarg=yes ;; 1045 esac 1046 1047 # Accept the important Cygnus configure options, so we can diagnose typos. 1048 1049 case $ac_dashdash$ac_option in 1050 --) 1051 ac_dashdash=yes ;; 1052 1053 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1054 ac_prev=bindir ;; 1055 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1056 bindir=$ac_optarg ;; 1057 1058 -build | --build | --buil | --bui | --bu) 1059 ac_prev=build_alias ;; 1060 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1061 build_alias=$ac_optarg ;; 1062 1063 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1065 ac_prev=cache_file ;; 1066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1068 cache_file=$ac_optarg ;; 1069 1070 --config-cache | -C) 1071 cache_file=config.cache ;; 1072 1073 -datadir | --datadir | --datadi | --datad) 1074 ac_prev=datadir ;; 1075 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1076 datadir=$ac_optarg ;; 1077 1078 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1079 | --dataroo | --dataro | --datar) 1080 ac_prev=datarootdir ;; 1081 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1082 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1083 datarootdir=$ac_optarg ;; 1084 1085 -disable-* | --disable-*) 1086 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1090 { (exit 1); exit 1; }; } 1091 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1092 eval enable_$ac_feature=no ;; 1093 1094 -docdir | --docdir | --docdi | --doc | --do) 1095 ac_prev=docdir ;; 1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1097 docdir=$ac_optarg ;; 1098 1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1100 ac_prev=dvidir ;; 1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1102 dvidir=$ac_optarg ;; 1103 1104 -enable-* | --enable-*) 1105 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1108 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1109 { (exit 1); exit 1; }; } 1110 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1111 eval enable_$ac_feature=\$ac_optarg ;; 1112 1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1115 | --exec | --exe | --ex) 1116 ac_prev=exec_prefix ;; 1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1119 | --exec=* | --exe=* | --ex=*) 1120 exec_prefix=$ac_optarg ;; 1121 1122 -gas | --gas | --ga | --g) 1123 # Obsolete; use --with-gas. 1124 with_gas=yes ;; 1125 1126 -help | --help | --hel | --he | -h) 1127 ac_init_help=long ;; 1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1129 ac_init_help=recursive ;; 1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1131 ac_init_help=short ;; 1132 1133 -host | --host | --hos | --ho) 1134 ac_prev=host_alias ;; 1135 -host=* | --host=* | --hos=* | --ho=*) 1136 host_alias=$ac_optarg ;; 1137 1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1139 ac_prev=htmldir ;; 1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1141 | --ht=*) 1142 htmldir=$ac_optarg ;; 1143 1144 -includedir | --includedir | --includedi | --included | --include \ 1145 | --includ | --inclu | --incl | --inc) 1146 ac_prev=includedir ;; 1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1148 | --includ=* | --inclu=* | --incl=* | --inc=*) 1149 includedir=$ac_optarg ;; 1150 1151 -infodir | --infodir | --infodi | --infod | --info | --inf) 1152 ac_prev=infodir ;; 1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1154 infodir=$ac_optarg ;; 1155 1156 -libdir | --libdir | --libdi | --libd) 1157 ac_prev=libdir ;; 1158 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1159 libdir=$ac_optarg ;; 1160 1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1162 | --libexe | --libex | --libe) 1163 ac_prev=libexecdir ;; 1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1165 | --libexe=* | --libex=* | --libe=*) 1166 libexecdir=$ac_optarg ;; 1167 1168 -localedir | --localedir | --localedi | --localed | --locale) 1169 ac_prev=localedir ;; 1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1171 localedir=$ac_optarg ;; 1172 1173 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1174 | --localstate | --localstat | --localsta | --localst | --locals) 1175 ac_prev=localstatedir ;; 1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1178 localstatedir=$ac_optarg ;; 1179 1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1181 ac_prev=mandir ;; 1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1183 mandir=$ac_optarg ;; 1184 1185 -nfp | --nfp | --nf) 1186 # Obsolete; use --without-fp. 1187 with_fp=no ;; 1188 1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1190 | --no-cr | --no-c | -n) 1191 no_create=yes ;; 1192 1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1195 no_recursion=yes ;; 1196 1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1199 | --oldin | --oldi | --old | --ol | --o) 1200 ac_prev=oldincludedir ;; 1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1204 oldincludedir=$ac_optarg ;; 1205 1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1207 ac_prev=prefix ;; 1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1209 prefix=$ac_optarg ;; 1210 1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1212 | --program-pre | --program-pr | --program-p) 1213 ac_prev=program_prefix ;; 1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1216 program_prefix=$ac_optarg ;; 1217 1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1219 | --program-suf | --program-su | --program-s) 1220 ac_prev=program_suffix ;; 1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1223 program_suffix=$ac_optarg ;; 1224 1225 -program-transform-name | --program-transform-name \ 1226 | --program-transform-nam | --program-transform-na \ 1227 | --program-transform-n | --program-transform- \ 1228 | --program-transform | --program-transfor \ 1229 | --program-transfo | --program-transf \ 1230 | --program-trans | --program-tran \ 1231 | --progr-tra | --program-tr | --program-t) 1232 ac_prev=program_transform_name ;; 1233 -program-transform-name=* | --program-transform-name=* \ 1234 | --program-transform-nam=* | --program-transform-na=* \ 1235 | --program-transform-n=* | --program-transform-=* \ 1236 | --program-transform=* | --program-transfor=* \ 1237 | --program-transfo=* | --program-transf=* \ 1238 | --program-trans=* | --program-tran=* \ 1239 | --progr-tra=* | --program-tr=* | --program-t=*) 1240 program_transform_name=$ac_optarg ;; 1241 1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1243 ac_prev=pdfdir ;; 1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1245 pdfdir=$ac_optarg ;; 1246 1247 -psdir | --psdir | --psdi | --psd | --ps) 1248 ac_prev=psdir ;; 1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1250 psdir=$ac_optarg ;; 1251 1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1253 | -silent | --silent | --silen | --sile | --sil) 1254 silent=yes ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1305 { echo "$as_me: error: invalid package name: $ac_package" >&2 1306 { (exit 1); exit 1; }; } 1307 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1308 eval with_$ac_package=\$ac_optarg ;; 1309 1310 -without-* | --without-*) 1311 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1314 { echo "$as_me: error: invalid package name: $ac_package" >&2 1315 { (exit 1); exit 1; }; } 1316 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1317 eval with_$ac_package=no ;; 1318 1319 --x) 1320 # Obsolete; use --with-x. 1321 with_x=yes ;; 1322 1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1324 | --x-incl | --x-inc | --x-in | --x-i) 1325 ac_prev=x_includes ;; 1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1328 x_includes=$ac_optarg ;; 1329 1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1332 ac_prev=x_libraries ;; 1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1335 x_libraries=$ac_optarg ;; 1336 1337 -*) { echo "$as_me: error: unrecognized option: $ac_option 1338 Try \`$0 --help' for more information." >&2 1339 { (exit 1); exit 1; }; } 1340 ;; 1341 1342 *=*) 1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1344 # Reject names that are not valid shell variable names. 1345 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1346 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1347 { (exit 1); exit 1; }; } 1348 eval $ac_envvar=\$ac_optarg 1349 export $ac_envvar ;; 1350 1351 *) 1352 # FIXME: should be removed in autoconf 3.0. 1353 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1355 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1356 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1357 ;; 1358 1359 esac 1360 done 1361 1362 if test -n "$ac_prev"; then 1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1364 { echo "$as_me: error: missing argument to $ac_option" >&2 1365 { (exit 1); exit 1; }; } 1366 fi 1367 1368 # Be sure to have absolute directory names. 1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1370 datadir sysconfdir sharedstatedir localstatedir includedir \ 1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1372 libdir localedir mandir 1373 do 1374 eval ac_val=\$$ac_var 1375 case $ac_val in 1376 [\\/$]* | ?:[\\/]* ) continue;; 1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1378 esac 1379 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1380 { (exit 1); exit 1; }; } 1381 done 1382 1383 # There might be people who depend on the old broken behavior: `$host' 1384 # used to hold the argument of --host etc. 1385 # FIXME: To remove some day. 1386 build=$build_alias 1387 host=$host_alias 1388 target=$target_alias 1389 1390 # FIXME: To remove some day. 1391 if test "x$host_alias" != x; then 1392 if test "x$build_alias" = x; then 1393 cross_compiling=maybe 1394 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1395 If a cross compiler is detected then cross compile mode will be used." >&2 1396 elif test "x$build_alias" != "x$host_alias"; then 1397 cross_compiling=yes 1398 fi 1399 fi 1400 1401 ac_tool_prefix= 1402 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1403 1404 test "$silent" = yes && exec 6>/dev/null 1405 1406 1407 ac_pwd=`pwd` && test -n "$ac_pwd" && 1408 ac_ls_di=`ls -di .` && 1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1410 { echo "$as_me: error: Working directory cannot be determined" >&2 1411 { (exit 1); exit 1; }; } 1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1413 { echo "$as_me: error: pwd does not report name of working directory" >&2 1414 { (exit 1); exit 1; }; } 1415 1416 1417 # Find the source files, if location was not specified. 1418 if test -z "$srcdir"; then 1419 ac_srcdir_defaulted=yes 1420 # Try the directory containing this script, then the parent directory. 1421 ac_confdir=`$as_dirname -- "$0" || 1422 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1423 X"$0" : 'X\(//\)[^/]' \| \ 1424 X"$0" : 'X\(//\)$' \| \ 1425 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1426 echo X"$0" | 1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)[^/].*/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\/\)$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\).*/{ 1440 s//\1/ 1441 q 1442 } 1443 s/.*/./; q'` 1444 srcdir=$ac_confdir 1445 if test ! -r "$srcdir/$ac_unique_file"; then 1446 srcdir=.. 1447 fi 1448 else 1449 ac_srcdir_defaulted=no 1450 fi 1451 if test ! -r "$srcdir/$ac_unique_file"; then 1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1453 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1454 { (exit 1); exit 1; }; } 1455 fi 1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1457 ac_abs_confdir=`( 1458 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1459 { (exit 1); exit 1; }; } 1460 pwd)` 1461 # When building in place, set srcdir=. 1462 if test "$ac_abs_confdir" = "$ac_pwd"; then 1463 srcdir=. 1464 fi 1465 # Remove unnecessary trailing slashes from srcdir. 1466 # Double slashes in file names in object file debugging info 1467 # mess up M-x gdb in Emacs. 1468 case $srcdir in 1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1470 esac 1471 for ac_var in $ac_precious_vars; do 1472 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_env_${ac_var}_value=\$${ac_var} 1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1476 done 1477 1478 # 1479 # Report the --help message. 1480 # 1481 if test "$ac_init_help" = "long"; then 1482 # Omit some internal or obsolete options to make the list less imposing. 1483 # This message is too long to be a string in the A/UX 3.1 sh. 1484 cat <<_ACEOF 1485 \`configure' configures this package to adapt to many kinds of systems. 1486 1487 Usage: $0 [OPTION]... [VAR=VALUE]... 1488 1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1490 VAR=VALUE. See below for descriptions of some of the useful variables. 1491 1492 Defaults for the options are specified in brackets. 1493 1494 Configuration: 1495 -h, --help display this help and exit 1496 --help=short display options specific to this package 1497 --help=recursive display the short help of all the included packages 1498 -V, --version display version information and exit 1499 -q, --quiet, --silent do not print \`checking...' messages 1500 --cache-file=FILE cache test results in FILE [disabled] 1501 -C, --config-cache alias for \`--cache-file=config.cache' 1502 -n, --no-create do not create output files 1503 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1504 1505 Installation directories: 1506 --prefix=PREFIX install architecture-independent files in PREFIX 1507 [$ac_default_prefix] 1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1509 [PREFIX] 1510 1511 By default, \`make install' will install all the files in 1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1514 for instance \`--prefix=\$HOME'. 1515 1516 For better control, use the options below. 1517 1518 Fine tuning of the installation directories: 1519 --bindir=DIR user executables [EPREFIX/bin] 1520 --sbindir=DIR system admin executables [EPREFIX/sbin] 1521 --libexecdir=DIR program executables [EPREFIX/libexec] 1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1525 --libdir=DIR object code libraries [EPREFIX/lib] 1526 --includedir=DIR C header files [PREFIX/include] 1527 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1530 --infodir=DIR info documentation [DATAROOTDIR/info] 1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1532 --mandir=DIR man documentation [DATAROOTDIR/man] 1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1534 --htmldir=DIR html documentation [DOCDIR] 1535 --dvidir=DIR dvi documentation [DOCDIR] 1536 --pdfdir=DIR pdf documentation [DOCDIR] 1537 --psdir=DIR ps documentation [DOCDIR] 1538 _ACEOF 1539 1540 cat <<\_ACEOF 1541 1542 Program names: 1543 --program-prefix=PREFIX prepend PREFIX to installed program names 1544 --program-suffix=SUFFIX append SUFFIX to installed program names 1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1546 1547 System types: 1548 --build=BUILD configure for building on BUILD [guessed] 1549 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1550 _ACEOF 1551 fi 1552 1553 if test -n "$ac_init_help"; then 1554 1555 cat <<\_ACEOF 1556 1557 Optional Features: 1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1560 --disable-dependency-tracking speeds up one-time build 1561 --enable-dependency-tracking do not reject slow dependency extractors 1562 --disable-java do not build Java sources 1563 --disable-native-java do not compile Java to native executables 1564 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) 1565 --enable-shared[=PKGS] build shared libraries [default=yes] 1566 --enable-static[=PKGS] build static libraries [default=yes] 1567 --enable-fast-install[=PKGS] 1568 optimize for fast installation [default=yes] 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --disable-nls do not use Native Language Support 1571 --enable-threads={posix|solaris|pth|win32} 1572 specify multithreading API 1573 --disable-threads build without multithread safety 1574 --disable-rpath do not hardcode runtime library paths 1575 --enable-relocatable install a package that can be moved in the filesystem 1576 --disable-libasprintf do not build libasprintf 1577 1578 Optional Packages: 1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1582 --with-pic try to use only PIC/non-PIC objects [default=use 1583 both] 1584 --with-tags[=TAGS] include additional configurations [automatic] 1585 --with-gnu-ld assume the C compiler uses GNU ld default=no 1586 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1587 --without-libpth-prefix don't search for libpth in includedir and libdir 1588 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1589 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1590 --with-included-gettext use the GNU gettext library included here 1591 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1592 --without-libintl-prefix don't search for libintl in includedir and libdir 1593 1594 Some influential environment variables: 1595 CC C compiler command 1596 CFLAGS C compiler flags 1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1598 nonstandard directory <lib dir> 1599 LIBS libraries to pass to the linker, e.g. -l<library> 1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1601 you have headers in a nonstandard directory <include dir> 1602 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1603 the first program found out of: `bison -y', `byacc', `yacc'. 1604 YFLAGS The list of arguments that will be passed by default to $YACC. 1605 This script will default YFLAGS to the empty string to avoid a 1606 default value of `-d' given by some make applications. 1607 CPP C preprocessor 1608 CXX C++ compiler command 1609 CXXFLAGS C++ compiler flags 1610 CXXCPP C++ preprocessor 1611 F77 Fortran 77 compiler command 1612 FFLAGS Fortran 77 compiler flags 1613 1614 Use these variables to override the choices made by `configure' or to help 1615 it to find libraries and programs with nonstandard names/locations. 1616 1617 _ACEOF 1618 ac_status=$? 1619 fi 1620 1621 if test "$ac_init_help" = "recursive"; then 1622 # If there are subdirs, report their specific --help. 1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1624 test -d "$ac_dir" || continue 1625 ac_builddir=. 1626 1627 case "$ac_dir" in 1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1629 *) 1630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1631 # A ".." for each directory in $ac_dir_suffix. 1632 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1633 case $ac_top_builddir_sub in 1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1636 esac ;; 1637 esac 1638 ac_abs_top_builddir=$ac_pwd 1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1640 # for backward compatibility: 1641 ac_top_builddir=$ac_top_build_prefix 1642 1643 case $srcdir in 1644 .) # We are building in place. 1645 ac_srcdir=. 1646 ac_top_srcdir=$ac_top_builddir_sub 1647 ac_abs_top_srcdir=$ac_pwd ;; 1648 [\\/]* | ?:[\\/]* ) # Absolute name. 1649 ac_srcdir=$srcdir$ac_dir_suffix; 1650 ac_top_srcdir=$srcdir 1651 ac_abs_top_srcdir=$srcdir ;; 1652 *) # Relative name. 1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1654 ac_top_srcdir=$ac_top_build_prefix$srcdir 1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1656 esac 1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1658 1659 cd "$ac_dir" || { ac_status=$?; continue; } 1660 # Check for guested configure. 1661 if test -f "$ac_srcdir/configure.gnu"; then 1662 echo && 1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1664 elif test -f "$ac_srcdir/configure"; then 1665 echo && 1666 $SHELL "$ac_srcdir/configure" --help=recursive 1667 else 1668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1669 fi || ac_status=$? 1670 cd "$ac_pwd" || { ac_status=$?; break; } 1671 done 1672 fi 1673 1674 test -n "$ac_init_help" && exit $ac_status 1675 if $ac_init_version; then 1676 cat <<\_ACEOF 1677 configure 1678 generated by GNU Autoconf 2.61 1679 1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1681 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1682 This configure script is free software; the Free Software Foundation 1683 gives unlimited permission to copy, distribute and modify it. 1684 _ACEOF 1685 exit 1686 fi 1687 cat >config.log <<_ACEOF 1688 This file contains any messages produced by compilers while 1689 running configure, to aid debugging if configure makes a mistake. 1690 1691 It was created by $as_me, which was 1692 generated by GNU Autoconf 2.61. Invocation command line was 1693 1694 $ $0 $@ 1695 1696 _ACEOF 1697 exec 5>>config.log 1698 { 1699 cat <<_ASUNAME 1700 ## --------- ## 1701 ## Platform. ## 1702 ## --------- ## 1703 1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1705 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1706 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1707 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1708 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1709 1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1712 1713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1720 1721 _ASUNAME 1722 1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1724 for as_dir in $PATH 1725 do 1726 IFS=$as_save_IFS 1727 test -z "$as_dir" && as_dir=. 1728 echo "PATH: $as_dir" 1729 done 1730 IFS=$as_save_IFS 1731 1732 } >&5 1733 1734 cat >&5 <<_ACEOF 1735 1736 1737 ## ----------- ## 1738 ## Core tests. ## 1739 ## ----------- ## 1740 1741 _ACEOF 1742 1743 1744 # Keep a trace of the command line. 1745 # Strip out --no-create and --no-recursion so they do not pile up. 1746 # Strip out --silent because we don't want to record it for future runs. 1747 # Also quote any args containing shell meta-characters. 1748 # Make two passes to allow for proper duplicate-argument suppression. 1749 ac_configure_args= 1750 ac_configure_args0= 1751 ac_configure_args1= 1752 ac_must_keep_next=false 1753 for ac_pass in 1 2 1754 do 1755 for ac_arg 1756 do 1757 case $ac_arg in 1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1760 | -silent | --silent | --silen | --sile | --sil) 1761 continue ;; 1762 *\'*) 1763 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1764 esac 1765 case $ac_pass in 1766 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1767 2) 1768 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1769 if test $ac_must_keep_next = true; then 1770 ac_must_keep_next=false # Got value, back to normal. 1771 else 1772 case $ac_arg in 1773 *=* | --config-cache | -C | -disable-* | --disable-* \ 1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1776 | -with-* | --with-* | -without-* | --without-* | --x) 1777 case "$ac_configure_args0 " in 1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1779 esac 1780 ;; 1781 -* ) ac_must_keep_next=true ;; 1782 esac 1783 fi 1784 ac_configure_args="$ac_configure_args '$ac_arg'" 1785 ;; 1786 esac 1787 done 1788 done 1789 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1790 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1791 1792 # When interrupted or exit'd, cleanup temporary files, and complete 1793 # config.log. We remove comments because anyway the quotes in there 1794 # would cause problems or look ugly. 1795 # WARNING: Use '\'' to represent an apostrophe within the trap. 1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1797 trap 'exit_status=$? 1798 # Save into config.log some information that might help in debugging. 1799 { 1800 echo 1801 1802 cat <<\_ASBOX 1803 ## ---------------- ## 1804 ## Cache variables. ## 1805 ## ---------------- ## 1806 _ASBOX 1807 echo 1808 # The following way of writing the cache mishandles newlines in values, 1809 ( 1810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1811 eval ac_val=\$$ac_var 1812 case $ac_val in #( 1813 *${as_nl}*) 1814 case $ac_var in #( 1815 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1816 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1817 esac 1818 case $ac_var in #( 1819 _ | IFS | as_nl) ;; #( 1820 *) $as_unset $ac_var ;; 1821 esac ;; 1822 esac 1823 done 1824 (set) 2>&1 | 1825 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1826 *${as_nl}ac_space=\ *) 1827 sed -n \ 1828 "s/'\''/'\''\\\\'\'''\''/g; 1829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1830 ;; #( 1831 *) 1832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1833 ;; 1834 esac | 1835 sort 1836 ) 1837 echo 1838 1839 cat <<\_ASBOX 1840 ## ----------------- ## 1841 ## Output variables. ## 1842 ## ----------------- ## 1843 _ASBOX 1844 echo 1845 for ac_var in $ac_subst_vars 1846 do 1847 eval ac_val=\$$ac_var 1848 case $ac_val in 1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1850 esac 1851 echo "$ac_var='\''$ac_val'\''" 1852 done | sort 1853 echo 1854 1855 if test -n "$ac_subst_files"; then 1856 cat <<\_ASBOX 1857 ## ------------------- ## 1858 ## File substitutions. ## 1859 ## ------------------- ## 1860 _ASBOX 1861 echo 1862 for ac_var in $ac_subst_files 1863 do 1864 eval ac_val=\$$ac_var 1865 case $ac_val in 1866 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1867 esac 1868 echo "$ac_var='\''$ac_val'\''" 1869 done | sort 1870 echo 1871 fi 1872 1873 if test -s confdefs.h; then 1874 cat <<\_ASBOX 1875 ## ----------- ## 1876 ## confdefs.h. ## 1877 ## ----------- ## 1878 _ASBOX 1879 echo 1880 cat confdefs.h 1881 echo 1882 fi 1883 test "$ac_signal" != 0 && 1884 echo "$as_me: caught signal $ac_signal" 1885 echo "$as_me: exit $exit_status" 1886 } >&5 1887 rm -f core *.core core.conftest.* && 1888 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1889 exit $exit_status 1890 ' 0 1891 for ac_signal in 1 2 13 15; do 1892 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1893 done 1894 ac_signal=0 1895 1896 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1897 rm -f -r conftest* confdefs.h 1898 1899 # Predefined preprocessor variables. 1900 1901 cat >>confdefs.h <<_ACEOF 1902 #define PACKAGE_NAME "$PACKAGE_NAME" 1903 _ACEOF 1904 1905 1906 cat >>confdefs.h <<_ACEOF 1907 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1908 _ACEOF 1909 1910 1911 cat >>confdefs.h <<_ACEOF 1912 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1913 _ACEOF 1914 1915 1916 cat >>confdefs.h <<_ACEOF 1917 #define PACKAGE_STRING "$PACKAGE_STRING" 1918 _ACEOF 1919 1920 1921 cat >>confdefs.h <<_ACEOF 1922 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1923 _ACEOF 1924 1925 1926 # Let the site file select an alternate cache file if it wants to. 1927 # Prefer explicitly selected file to automatically selected ones. 1928 if test -n "$CONFIG_SITE"; then 1929 set x "$CONFIG_SITE" 1930 elif test "x$prefix" != xNONE; then 1931 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1932 else 1933 set x "$ac_default_prefix/share/config.site" \ 1934 "$ac_default_prefix/etc/config.site" 1935 fi 1936 shift 1937 for ac_site_file 1938 do 1939 if test -r "$ac_site_file"; then 1940 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1941 echo "$as_me: loading site script $ac_site_file" >&6;} 1942 sed 's/^/| /' "$ac_site_file" >&5 1943 . "$ac_site_file" 1944 fi 1945 done 1946 1947 if test -r "$cache_file"; then 1948 # Some versions of bash will fail to source /dev/null (special 1949 # files actually), so we avoid doing that. 1950 if test -f "$cache_file"; then 1951 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1952 echo "$as_me: loading cache $cache_file" >&6;} 1953 case $cache_file in 1954 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1955 *) . "./$cache_file";; 1956 esac 1957 fi 1958 else 1959 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1960 echo "$as_me: creating cache $cache_file" >&6;} 1961 >$cache_file 1962 fi 1963 1964 gt_needs="$gt_needs need-ngettext" 1965 gl_header_list="$gl_header_list stdlib.h" 1966 gl_header_list="$gl_header_list string.h" 1967 gl_header_list="$gl_header_list sys/param.h" 1968 gl_header_list="$gl_header_list unistd.h" 1969 gl_header_list="$gl_header_list wchar.h" 1970 gl_header_list="$gl_header_list wctype.h" 1971 gl_func_list="$gl_func_list iswprint" 1972 gl_func_list="$gl_func_list wcwidth" 1973 # Check that the precious variables saved in the cache have kept the same 1974 # value. 1975 ac_cache_corrupted=false 1976 for ac_var in $ac_precious_vars; do 1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1978 eval ac_new_set=\$ac_env_${ac_var}_set 1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1980 eval ac_new_val=\$ac_env_${ac_var}_value 1981 case $ac_old_set,$ac_new_set in 1982 set,) 1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1985 ac_cache_corrupted=: ;; 1986 ,set) 1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1989 ac_cache_corrupted=: ;; 1990 ,);; 1991 *) 1992 if test "x$ac_old_val" != "x$ac_new_val"; then 1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1996 echo "$as_me: former value: $ac_old_val" >&2;} 1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1998 echo "$as_me: current value: $ac_new_val" >&2;} 1999 ac_cache_corrupted=: 2000 fi;; 2001 esac 2002 # Pass precious variables to config.status. 2003 if test "$ac_new_set" = set; then 2004 case $ac_new_val in 2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2006 *) ac_arg=$ac_var=$ac_new_val ;; 2007 esac 2008 case " $ac_configure_args " in 2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2011 esac 2012 fi 2013 done 2014 if $ac_cache_corrupted; then 2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2019 { (exit 1); exit 1; }; } 2020 fi 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 ac_ext=c 2039 ac_cpp='$CPP $CPPFLAGS' 2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2043 2044 2045 2046 ac_aux_dir= 2047 for ac_dir in ../build-aux "$srcdir"/../build-aux; do 2048 if test -f "$ac_dir/install-sh"; then 2049 ac_aux_dir=$ac_dir 2050 ac_install_sh="$ac_aux_dir/install-sh -c" 2051 break 2052 elif test -f "$ac_dir/install.sh"; then 2053 ac_aux_dir=$ac_dir 2054 ac_install_sh="$ac_aux_dir/install.sh -c" 2055 break 2056 elif test -f "$ac_dir/shtool"; then 2057 ac_aux_dir=$ac_dir 2058 ac_install_sh="$ac_aux_dir/shtool install -c" 2059 break 2060 fi 2061 done 2062 if test -z "$ac_aux_dir"; then 2063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 2064 echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} 2065 { (exit 1); exit 1; }; } 2066 fi 2067 2068 # These three variables are undocumented and unsupported, 2069 # and are intended to be withdrawn in a future Autoconf release. 2070 # They can cause serious problems if a builder's source tree is in a directory 2071 # whose full name contains unusual characters. 2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2075 2076 2077 . $srcdir/../version.sh 2078 am__api_version='1.10' 2079 2080 # Find a good install program. We prefer a C program (faster), 2081 # so one script is as good as another. But avoid the broken or 2082 # incompatible versions: 2083 # SysV /etc/install, /usr/sbin/install 2084 # SunOS /usr/etc/install 2085 # IRIX /sbin/install 2086 # AIX /bin/install 2087 # AmigaOS /C/install, which installs bootblocks on floppy discs 2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2091 # OS/2's system install, which has a completely different semantic 2092 # ./install, which can be erroneously created by make from ./install.sh. 2093 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2094 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2095 if test -z "$INSTALL"; then 2096 if test "${ac_cv_path_install+set}" = set; then 2097 echo $ECHO_N "(cached) $ECHO_C" >&6 2098 else 2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2100 for as_dir in $PATH 2101 do 2102 IFS=$as_save_IFS 2103 test -z "$as_dir" && as_dir=. 2104 # Account for people who put trailing slashes in PATH elements. 2105 case $as_dir/ in 2106 ./ | .// | /cC/* | \ 2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2109 /usr/ucb/* ) ;; 2110 *) 2111 # OSF1 and SCO ODT 3.0 have their own names for install. 2112 # Don't use installbsd from OSF since it installs stuff as root 2113 # by default. 2114 for ac_prog in ginstall scoinst install; do 2115 for ac_exec_ext in '' $ac_executable_extensions; do 2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2117 if test $ac_prog = install && 2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2119 # AIX install. It has an incompatible calling convention. 2120 : 2121 elif test $ac_prog = install && 2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2123 # program-specific install script used by HP pwplus--don't use. 2124 : 2125 else 2126 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2127 break 3 2128 fi 2129 fi 2130 done 2131 done 2132 ;; 2133 esac 2134 done 2135 IFS=$as_save_IFS 2136 2137 2138 fi 2139 if test "${ac_cv_path_install+set}" = set; then 2140 INSTALL=$ac_cv_path_install 2141 else 2142 # As a last resort, use the slow shell script. Don't cache a 2143 # value for INSTALL within a source directory, because that will 2144 # break other packages using the cache if that directory is 2145 # removed, or if the value is a relative name. 2146 INSTALL=$ac_install_sh 2147 fi 2148 fi 2149 { echo "$as_me:$LINENO: result: $INSTALL" >&5 2150 echo "${ECHO_T}$INSTALL" >&6; } 2151 2152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2153 # It thinks the first close brace ends the variable substitution. 2154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2155 2156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2157 2158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2159 2160 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2161 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2162 # Just in case 2163 sleep 1 2164 echo timestamp > conftest.file 2165 # Do `set' in a subshell so we don't clobber the current shell's 2166 # arguments. Must try -L first in case configure is actually a 2167 # symlink; some systems play weird games with the mod time of symlinks 2168 # (eg FreeBSD returns the mod time of the symlink's containing 2169 # directory). 2170 if ( 2171 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2172 if test "$*" = "X"; then 2173 # -L didn't work. 2174 set X `ls -t $srcdir/configure conftest.file` 2175 fi 2176 rm -f conftest.file 2177 if test "$*" != "X $srcdir/configure conftest.file" \ 2178 && test "$*" != "X conftest.file $srcdir/configure"; then 2179 2180 # If neither matched, then we have a broken ls. This can happen 2181 # if, for instance, CONFIG_SHELL is bash and it inherits a 2182 # broken ls alias from the environment. This has actually 2183 # happened. Such a system could not be considered "sane". 2184 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2185 alias in your environment" >&5 2186 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2187 alias in your environment" >&2;} 2188 { (exit 1); exit 1; }; } 2189 fi 2190 2191 test "$2" = conftest.file 2192 ) 2193 then 2194 # Ok. 2195 : 2196 else 2197 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2198 Check your system clock" >&5 2199 echo "$as_me: error: newly created file is older than distributed files! 2200 Check your system clock" >&2;} 2201 { (exit 1); exit 1; }; } 2202 fi 2203 { echo "$as_me:$LINENO: result: yes" >&5 2204 echo "${ECHO_T}yes" >&6; } 2205 test "$program_prefix" != NONE && 2206 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2207 # Use a double $ so make ignores it. 2208 test "$program_suffix" != NONE && 2209 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2210 # Double any \ or $. echo might interpret backslashes. 2211 # By default was `s,x,x', remove it if useless. 2212 cat <<\_ACEOF >conftest.sed 2213 s/[\\$]/&&/g;s/;s,x,x,$// 2214 _ACEOF 2215 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2216 rm -f conftest.sed 2217 2218 # expand $ac_aux_dir to an absolute path 2219 am_aux_dir=`cd $ac_aux_dir && pwd` 2220 2221 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2222 # Use eval to expand $SHELL 2223 if eval "$MISSING --run true"; then 2224 am_missing_run="$MISSING --run " 2225 else 2226 am_missing_run= 2227 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2228 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2229 fi 2230 2231 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2232 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2233 if test -z "$MKDIR_P"; then 2234 if test "${ac_cv_path_mkdir+set}" = set; then 2235 echo $ECHO_N "(cached) $ECHO_C" >&6 2236 else 2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2238 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2239 do 2240 IFS=$as_save_IFS 2241 test -z "$as_dir" && as_dir=. 2242 for ac_prog in mkdir gmkdir; do 2243 for ac_exec_ext in '' $ac_executable_extensions; do 2244 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2245 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2246 'mkdir (GNU coreutils) '* | \ 2247 'mkdir (coreutils) '* | \ 2248 'mkdir (fileutils) '4.1*) 2249 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2250 break 3;; 2251 esac 2252 done 2253 done 2254 done 2255 IFS=$as_save_IFS 2256 2257 fi 2258 2259 if test "${ac_cv_path_mkdir+set}" = set; then 2260 MKDIR_P="$ac_cv_path_mkdir -p" 2261 else 2262 # As a last resort, use the slow shell script. Don't cache a 2263 # value for MKDIR_P within a source directory, because that will 2264 # break other packages using the cache if that directory is 2265 # removed, or if the value is a relative name. 2266 test -d ./--version && rmdir ./--version 2267 MKDIR_P="$ac_install_sh -d" 2268 fi 2269 fi 2270 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2271 echo "${ECHO_T}$MKDIR_P" >&6; } 2272 2273 mkdir_p="$MKDIR_P" 2274 case $mkdir_p in 2275 [\\/$]* | ?:[\\/]*) ;; 2276 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2277 esac 2278 2279 for ac_prog in gawk mawk nawk awk 2280 do 2281 # Extract the first word of "$ac_prog", so it can be a program name with args. 2282 set dummy $ac_prog; ac_word=$2 2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2285 if test "${ac_cv_prog_AWK+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287 else 2288 if test -n "$AWK"; then 2289 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2290 else 2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292 for as_dir in $PATH 2293 do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 for ac_exec_ext in '' $ac_executable_extensions; do 2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2298 ac_cv_prog_AWK="$ac_prog" 2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2300 break 2 2301 fi 2302 done 2303 done 2304 IFS=$as_save_IFS 2305 2306 fi 2307 fi 2308 AWK=$ac_cv_prog_AWK 2309 if test -n "$AWK"; then 2310 { echo "$as_me:$LINENO: result: $AWK" >&5 2311 echo "${ECHO_T}$AWK" >&6; } 2312 else 2313 { echo "$as_me:$LINENO: result: no" >&5 2314 echo "${ECHO_T}no" >&6; } 2315 fi 2316 2317 2318 test -n "$AWK" && break 2319 done 2320 2321 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2322 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2323 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2324 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2325 echo $ECHO_N "(cached) $ECHO_C" >&6 2326 else 2327 cat >conftest.make <<\_ACEOF 2328 SHELL = /bin/sh 2329 all: 2330 @echo '@@@%%%=$(MAKE)=@@@%%%' 2331 _ACEOF 2332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2333 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2334 *@@@%%%=?*=@@@%%%*) 2335 eval ac_cv_prog_make_${ac_make}_set=yes;; 2336 *) 2337 eval ac_cv_prog_make_${ac_make}_set=no;; 2338 esac 2339 rm -f conftest.make 2340 fi 2341 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2342 { echo "$as_me:$LINENO: result: yes" >&5 2343 echo "${ECHO_T}yes" >&6; } 2344 SET_MAKE= 2345 else 2346 { echo "$as_me:$LINENO: result: no" >&5 2347 echo "${ECHO_T}no" >&6; } 2348 SET_MAKE="MAKE=${MAKE-make}" 2349 fi 2350 2351 rm -rf .tst 2>/dev/null 2352 mkdir .tst 2>/dev/null 2353 if test -d .tst; then 2354 am__leading_dot=. 2355 else 2356 am__leading_dot=_ 2357 fi 2358 rmdir .tst 2>/dev/null 2359 2360 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2361 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2362 # is not polluted with repeated "-I." 2363 am__isrc=' -I$(srcdir)' 2364 # test to see if srcdir already configured 2365 if test -f $srcdir/config.status; then 2366 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2367 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2368 { (exit 1); exit 1; }; } 2369 fi 2370 fi 2371 2372 # test whether we have cygpath 2373 if test -z "$CYGPATH_W"; then 2374 if (cygpath --version) >/dev/null 2>/dev/null; then 2375 CYGPATH_W='cygpath -w' 2376 else 2377 CYGPATH_W=echo 2378 fi 2379 fi 2380 2381 2382 # Define the identity of the package. 2383 PACKAGE=gettext-runtime 2384 VERSION=$VERSION_NUMBER 2385 2386 2387 cat >>confdefs.h <<_ACEOF 2388 #define PACKAGE "$PACKAGE" 2389 _ACEOF 2390 2391 2392 cat >>confdefs.h <<_ACEOF 2393 #define VERSION "$VERSION" 2394 _ACEOF 2395 2396 # Some tools Automake needs. 2397 2398 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2399 2400 2401 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2402 2403 2404 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2405 2406 2407 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2408 2409 2410 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2411 2412 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2413 2414 # Installed binaries are usually stripped using `strip' when the user 2415 # run `make install-strip'. However `strip' might not be the right 2416 # tool to use in cross-compilation environments, therefore Automake 2417 # will honor the `STRIP' environment variable to overrule this program. 2418 if test "$cross_compiling" != no; then 2419 if test -n "$ac_tool_prefix"; then 2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2421 set dummy ${ac_tool_prefix}strip; ac_word=$2 2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2424 if test "${ac_cv_prog_STRIP+set}" = set; then 2425 echo $ECHO_N "(cached) $ECHO_C" >&6 2426 else 2427 if test -n "$STRIP"; then 2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2429 else 2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2431 for as_dir in $PATH 2432 do 2433 IFS=$as_save_IFS 2434 test -z "$as_dir" && as_dir=. 2435 for ac_exec_ext in '' $ac_executable_extensions; do 2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2439 break 2 2440 fi 2441 done 2442 done 2443 IFS=$as_save_IFS 2444 2445 fi 2446 fi 2447 STRIP=$ac_cv_prog_STRIP 2448 if test -n "$STRIP"; then 2449 { echo "$as_me:$LINENO: result: $STRIP" >&5 2450 echo "${ECHO_T}$STRIP" >&6; } 2451 else 2452 { echo "$as_me:$LINENO: result: no" >&5 2453 echo "${ECHO_T}no" >&6; } 2454 fi 2455 2456 2457 fi 2458 if test -z "$ac_cv_prog_STRIP"; then 2459 ac_ct_STRIP=$STRIP 2460 # Extract the first word of "strip", so it can be a program name with args. 2461 set dummy strip; ac_word=$2 2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2465 echo $ECHO_N "(cached) $ECHO_C" >&6 2466 else 2467 if test -n "$ac_ct_STRIP"; then 2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2469 else 2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471 for as_dir in $PATH 2472 do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2477 ac_cv_prog_ac_ct_STRIP="strip" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481 done 2482 done 2483 IFS=$as_save_IFS 2484 2485 fi 2486 fi 2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2488 if test -n "$ac_ct_STRIP"; then 2489 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2490 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2491 else 2492 { echo "$as_me:$LINENO: result: no" >&5 2493 echo "${ECHO_T}no" >&6; } 2494 fi 2495 2496 if test "x$ac_ct_STRIP" = x; then 2497 STRIP=":" 2498 else 2499 case $cross_compiling:$ac_tool_warned in 2500 yes:) 2501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2502 whose name does not start with the host triplet. If you think this 2503 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2505 whose name does not start with the host triplet. If you think this 2506 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2507 ac_tool_warned=yes ;; 2508 esac 2509 STRIP=$ac_ct_STRIP 2510 fi 2511 else 2512 STRIP="$ac_cv_prog_STRIP" 2513 fi 2514 2515 fi 2516 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2517 2518 # We need awk for the "check" target. The system "awk" is bad on 2519 # some platforms. 2520 # Always define AMTAR for backward compatibility. 2521 2522 AMTAR=${AMTAR-"${am_missing_run}tar"} 2523 2524 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2525 2526 2527 2528 2529 2530 ac_config_headers="$ac_config_headers config.h" 2531 2532 2533 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' 2534 2535 ac_ext=c 2536 ac_cpp='$CPP $CPPFLAGS' 2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2540 if test -n "$ac_tool_prefix"; then 2541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2542 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2545 if test "${ac_cv_prog_CC+set}" = set; then 2546 echo $ECHO_N "(cached) $ECHO_C" >&6 2547 else 2548 if test -n "$CC"; then 2549 ac_cv_prog_CC="$CC" # Let the user override the test. 2550 else 2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552 for as_dir in $PATH 2553 do 2554 IFS=$as_save_IFS 2555 test -z "$as_dir" && as_dir=. 2556 for ac_exec_ext in '' $ac_executable_extensions; do 2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2558 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2560 break 2 2561 fi 2562 done 2563 done 2564 IFS=$as_save_IFS 2565 2566 fi 2567 fi 2568 CC=$ac_cv_prog_CC 2569 if test -n "$CC"; then 2570 { echo "$as_me:$LINENO: result: $CC" >&5 2571 echo "${ECHO_T}$CC" >&6; } 2572 else 2573 { echo "$as_me:$LINENO: result: no" >&5 2574 echo "${ECHO_T}no" >&6; } 2575 fi 2576 2577 2578 fi 2579 if test -z "$ac_cv_prog_CC"; then 2580 ac_ct_CC=$CC 2581 # Extract the first word of "gcc", so it can be a program name with args. 2582 set dummy gcc; ac_word=$2 2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2586 echo $ECHO_N "(cached) $ECHO_C" >&6 2587 else 2588 if test -n "$ac_ct_CC"; then 2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2590 else 2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592 for as_dir in $PATH 2593 do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2598 ac_cv_prog_ac_ct_CC="gcc" 2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602 done 2603 done 2604 IFS=$as_save_IFS 2605 2606 fi 2607 fi 2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2609 if test -n "$ac_ct_CC"; then 2610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2611 echo "${ECHO_T}$ac_ct_CC" >&6; } 2612 else 2613 { echo "$as_me:$LINENO: result: no" >&5 2614 echo "${ECHO_T}no" >&6; } 2615 fi 2616 2617 if test "x$ac_ct_CC" = x; then 2618 CC="" 2619 else 2620 case $cross_compiling:$ac_tool_warned in 2621 yes:) 2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2623 whose name does not start with the host triplet. If you think this 2624 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2626 whose name does not start with the host triplet. If you think this 2627 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2628 ac_tool_warned=yes ;; 2629 esac 2630 CC=$ac_ct_CC 2631 fi 2632 else 2633 CC="$ac_cv_prog_CC" 2634 fi 2635 2636 if test -z "$CC"; then 2637 if test -n "$ac_tool_prefix"; then 2638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2639 set dummy ${ac_tool_prefix}cc; ac_word=$2 2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2642 if test "${ac_cv_prog_CC+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 2644 else 2645 if test -n "$CC"; then 2646 ac_cv_prog_CC="$CC" # Let the user override the test. 2647 else 2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649 for as_dir in $PATH 2650 do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2655 ac_cv_prog_CC="${ac_tool_prefix}cc" 2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659 done 2660 done 2661 IFS=$as_save_IFS 2662 2663 fi 2664 fi 2665 CC=$ac_cv_prog_CC 2666 if test -n "$CC"; then 2667 { echo "$as_me:$LINENO: result: $CC" >&5 2668 echo "${ECHO_T}$CC" >&6; } 2669 else 2670 { echo "$as_me:$LINENO: result: no" >&5 2671 echo "${ECHO_T}no" >&6; } 2672 fi 2673 2674 2675 fi 2676 fi 2677 if test -z "$CC"; then 2678 # Extract the first word of "cc", so it can be a program name with args. 2679 set dummy cc; ac_word=$2 2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2682 if test "${ac_cv_prog_CC+set}" = set; then 2683 echo $ECHO_N "(cached) $ECHO_C" >&6 2684 else 2685 if test -n "$CC"; then 2686 ac_cv_prog_CC="$CC" # Let the user override the test. 2687 else 2688 ac_prog_rejected=no 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690 for as_dir in $PATH 2691 do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2697 ac_prog_rejected=yes 2698 continue 2699 fi 2700 ac_cv_prog_CC="cc" 2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2702 break 2 2703 fi 2704 done 2705 done 2706 IFS=$as_save_IFS 2707 2708 if test $ac_prog_rejected = yes; then 2709 # We found a bogon in the path, so make sure we never use it. 2710 set dummy $ac_cv_prog_CC 2711 shift 2712 if test $# != 0; then 2713 # We chose a different compiler from the bogus one. 2714 # However, it has the same basename, so the bogon will be chosen 2715 # first if we set CC to just the basename; use the full file name. 2716 shift 2717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2718 fi 2719 fi 2720 fi 2721 fi 2722 CC=$ac_cv_prog_CC 2723 if test -n "$CC"; then 2724 { echo "$as_me:$LINENO: result: $CC" >&5 2725 echo "${ECHO_T}$CC" >&6; } 2726 else 2727 { echo "$as_me:$LINENO: result: no" >&5 2728 echo "${ECHO_T}no" >&6; } 2729 fi 2730 2731 2732 fi 2733 if test -z "$CC"; then 2734 if test -n "$ac_tool_prefix"; then 2735 for ac_prog in cl.exe 2736 do 2737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2741 if test "${ac_cv_prog_CC+set}" = set; then 2742 echo $ECHO_N "(cached) $ECHO_C" >&6 2743 else 2744 if test -n "$CC"; then 2745 ac_cv_prog_CC="$CC" # Let the user override the test. 2746 else 2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748 for as_dir in $PATH 2749 do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2756 break 2 2757 fi 2758 done 2759 done 2760 IFS=$as_save_IFS 2761 2762 fi 2763 fi 2764 CC=$ac_cv_prog_CC 2765 if test -n "$CC"; then 2766 { echo "$as_me:$LINENO: result: $CC" >&5 2767 echo "${ECHO_T}$CC" >&6; } 2768 else 2769 { echo "$as_me:$LINENO: result: no" >&5 2770 echo "${ECHO_T}no" >&6; } 2771 fi 2772 2773 2774 test -n "$CC" && break 2775 done 2776 fi 2777 if test -z "$CC"; then 2778 ac_ct_CC=$CC 2779 for ac_prog in cl.exe 2780 do 2781 # Extract the first word of "$ac_prog", so it can be a program name with args. 2782 set dummy $ac_prog; ac_word=$2 2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2786 echo $ECHO_N "(cached) $ECHO_C" >&6 2787 else 2788 if test -n "$ac_ct_CC"; then 2789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2790 else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792 for as_dir in $PATH 2793 do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2798 ac_cv_prog_ac_ct_CC="$ac_prog" 2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802 done 2803 done 2804 IFS=$as_save_IFS 2805 2806 fi 2807 fi 2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2809 if test -n "$ac_ct_CC"; then 2810 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2811 echo "${ECHO_T}$ac_ct_CC" >&6; } 2812 else 2813 { echo "$as_me:$LINENO: result: no" >&5 2814 echo "${ECHO_T}no" >&6; } 2815 fi 2816 2817 2818 test -n "$ac_ct_CC" && break 2819 done 2820 2821 if test "x$ac_ct_CC" = x; then 2822 CC="" 2823 else 2824 case $cross_compiling:$ac_tool_warned in 2825 yes:) 2826 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2827 whose name does not start with the host triplet. If you think this 2828 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2829 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2830 whose name does not start with the host triplet. If you think this 2831 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2832 ac_tool_warned=yes ;; 2833 esac 2834 CC=$ac_ct_CC 2835 fi 2836 fi 2837 2838 fi 2839 2840 2841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2842 See \`config.log' for more details." >&5 2843 echo "$as_me: error: no acceptable C compiler found in \$PATH 2844 See \`config.log' for more details." >&2;} 2845 { (exit 1); exit 1; }; } 2846 2847 # Provide some information about the compiler. 2848 echo "$as_me:$LINENO: checking for C compiler version" >&5 2849 ac_compiler=`set X $ac_compile; echo $2` 2850 { (ac_try="$ac_compiler --version >&5" 2851 case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854 esac 2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2856 (eval "$ac_compiler --version >&5") 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); } 2860 { (ac_try="$ac_compiler -v >&5" 2861 case "(($ac_try" in 2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2863 *) ac_try_echo=$ac_try;; 2864 esac 2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2866 (eval "$ac_compiler -v >&5") 2>&5 2867 ac_status=$? 2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2869 (exit $ac_status); } 2870 { (ac_try="$ac_compiler -V >&5" 2871 case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874 esac 2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2876 (eval "$ac_compiler -V >&5") 2>&5 2877 ac_status=$? 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); } 2880 2881 cat >conftest.$ac_ext <<_ACEOF 2882 /* confdefs.h. */ 2883 _ACEOF 2884 cat confdefs.h >>conftest.$ac_ext 2885 cat >>conftest.$ac_ext <<_ACEOF 2886 /* end confdefs.h. */ 2887 2888 int 2889 main () 2890 { 2891 2892 ; 2893 return 0; 2894 } 2895 _ACEOF 2896 ac_clean_files_save=$ac_clean_files 2897 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2898 # Try to create an executable without -o first, disregard a.out. 2899 # It will help us diagnose broken compilers, and finding out an intuition 2900 # of exeext. 2901 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2902 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2903 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2904 # 2905 # List of possible output files, starting from the most likely. 2906 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2907 # only as a last resort. b.out is created by i960 compilers. 2908 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2909 # 2910 # The IRIX 6 linker writes into existing files which may not be 2911 # executable, retaining their permissions. Remove them first so a 2912 # subsequent execution test works. 2913 ac_rmfiles= 2914 for ac_file in $ac_files 2915 do 2916 case $ac_file in 2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2919 esac 2920 done 2921 rm -f $ac_rmfiles 2922 2923 if { (ac_try="$ac_link_default" 2924 case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927 esac 2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2929 (eval "$ac_link_default") 2>&5 2930 ac_status=$? 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); }; then 2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2935 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2936 # so that the user can short-circuit this test for compilers unknown to 2937 # Autoconf. 2938 for ac_file in $ac_files '' 2939 do 2940 test -f "$ac_file" || continue 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2943 ;; 2944 [ab].out ) 2945 # We found the default executable, but exeext='' is most 2946 # certainly right. 2947 break;; 2948 *.* ) 2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2950 then :; else 2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2952 fi 2953 # We set ac_cv_exeext here because the later test for it is not 2954 # safe: cross compilers may not add the suffix if given an `-o' 2955 # argument, so we may need to know it at that point already. 2956 # Even if this section looks crufty: it has the advantage of 2957 # actually working. 2958 break;; 2959 * ) 2960 break;; 2961 esac 2962 done 2963 test "$ac_cv_exeext" = no && ac_cv_exeext= 2964 2965 else 2966 ac_file='' 2967 fi 2968 2969 { echo "$as_me:$LINENO: result: $ac_file" >&5 2970 echo "${ECHO_T}$ac_file" >&6; } 2971 if test -z "$ac_file"; then 2972 echo "$as_me: failed program was:" >&5 2973 sed 's/^/| /' conftest.$ac_ext >&5 2974 2975 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2976 See \`config.log' for more details." >&5 2977 echo "$as_me: error: C compiler cannot create executables 2978 See \`config.log' for more details." >&2;} 2979 { (exit 77); exit 77; }; } 2980 fi 2981 2982 ac_exeext=$ac_cv_exeext 2983 2984 # Check that the compiler produces executables we can run. If not, either 2985 # the compiler is broken, or we cross compile. 2986 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2987 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2989 # If not cross compiling, check that we can run a simple program. 2990 if test "$cross_compiling" != yes; then 2991 if { ac_try='./$ac_file' 2992 { (case "(($ac_try" in 2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2994 *) ac_try_echo=$ac_try;; 2995 esac 2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2997 (eval "$ac_try") 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; }; then 3001 cross_compiling=no 3002 else 3003 if test "$cross_compiling" = maybe; then 3004 cross_compiling=yes 3005 else 3006 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3007 If you meant to cross compile, use \`--host'. 3008 See \`config.log' for more details." >&5 3009 echo "$as_me: error: cannot run C compiled programs. 3010 If you meant to cross compile, use \`--host'. 3011 See \`config.log' for more details." >&2;} 3012 { (exit 1); exit 1; }; } 3013 fi 3014 fi 3015 fi 3016 { echo "$as_me:$LINENO: result: yes" >&5 3017 echo "${ECHO_T}yes" >&6; } 3018 3019 rm -f a.out a.exe conftest$ac_cv_exeext b.out 3020 ac_clean_files=$ac_clean_files_save 3021 # Check that the compiler produces executables we can run. If not, either 3022 # the compiler is broken, or we cross compile. 3023 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3024 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3025 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 3026 echo "${ECHO_T}$cross_compiling" >&6; } 3027 3028 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 3029 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3030 if { (ac_try="$ac_link" 3031 case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034 esac 3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3036 (eval "$ac_link") 2>&5 3037 ac_status=$? 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; then 3040 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3042 # work properly (i.e., refer to `conftest.exe'), while it won't with 3043 # `rm'. 3044 for ac_file in conftest.exe conftest conftest.*; do 3045 test -f "$ac_file" || continue 3046 case $ac_file in 3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3049 break;; 3050 * ) break;; 3051 esac 3052 done 3053 else 3054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3055 See \`config.log' for more details." >&5 3056 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3057 See \`config.log' for more details." >&2;} 3058 { (exit 1); exit 1; }; } 3059 fi 3060 3061 rm -f conftest$ac_cv_exeext 3062 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3063 echo "${ECHO_T}$ac_cv_exeext" >&6; } 3064 3065 rm -f conftest.$ac_ext 3066 EXEEXT=$ac_cv_exeext 3067 ac_exeext=$EXEEXT 3068 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 3069 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3070 if test "${ac_cv_objext+set}" = set; then 3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3072 else 3073 cat >conftest.$ac_ext <<_ACEOF 3074 /* confdefs.h. */ 3075 _ACEOF 3076 cat confdefs.h >>conftest.$ac_ext 3077 cat >>conftest.$ac_ext <<_ACEOF 3078 /* end confdefs.h. */ 3079 3080 int 3081 main () 3082 { 3083 3084 ; 3085 return 0; 3086 } 3087 _ACEOF 3088 rm -f conftest.o conftest.obj 3089 if { (ac_try="$ac_compile" 3090 case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093 esac 3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3095 (eval "$ac_compile") 2>&5 3096 ac_status=$? 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; then 3099 for ac_file in conftest.o conftest.obj conftest.*; do 3100 test -f "$ac_file" || continue; 3101 case $ac_file in 3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3104 break;; 3105 esac 3106 done 3107 else 3108 echo "$as_me: failed program was:" >&5 3109 sed 's/^/| /' conftest.$ac_ext >&5 3110 3111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3112 See \`config.log' for more details." >&5 3113 echo "$as_me: error: cannot compute suffix of object files: cannot compile 3114 See \`config.log' for more details." >&2;} 3115 { (exit 1); exit 1; }; } 3116 fi 3117 3118 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3119 fi 3120 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3121 echo "${ECHO_T}$ac_cv_objext" >&6; } 3122 OBJEXT=$ac_cv_objext 3123 ac_objext=$OBJEXT 3124 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3126 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3127 echo $ECHO_N "(cached) $ECHO_C" >&6 3128 else 3129 cat >conftest.$ac_ext <<_ACEOF 3130 /* confdefs.h. */ 3131 _ACEOF 3132 cat confdefs.h >>conftest.$ac_ext 3133 cat >>conftest.$ac_ext <<_ACEOF 3134 /* end confdefs.h. */ 3135 3136 int 3137 main () 3138 { 3139 #ifndef __GNUC__ 3140 choke me 3141 #endif 3142 3143 ; 3144 return 0; 3145 } 3146 _ACEOF 3147 rm -f conftest.$ac_objext 3148 if { (ac_try="$ac_compile" 3149 case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152 esac 3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3154 (eval "$ac_compile") 2>conftest.er1 3155 ac_status=$? 3156 grep -v '^ *+' conftest.er1 >conftest.err 3157 rm -f conftest.er1 3158 cat conftest.err >&5 3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } && { 3161 test -z "$ac_c_werror_flag" || 3162 test ! -s conftest.err 3163 } && test -s conftest.$ac_objext; then 3164 ac_compiler_gnu=yes 3165 else 3166 echo "$as_me: failed program was:" >&5 3167 sed 's/^/| /' conftest.$ac_ext >&5 3168 3169 ac_compiler_gnu=no 3170 fi 3171 3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3173 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3174 3175 fi 3176 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3178 GCC=`test $ac_compiler_gnu = yes && echo yes` 3179 ac_test_CFLAGS=${CFLAGS+set} 3180 ac_save_CFLAGS=$CFLAGS 3181 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3182 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3183 if test "${ac_cv_prog_cc_g+set}" = set; then 3184 echo $ECHO_N "(cached) $ECHO_C" >&6 3185 else 3186 ac_save_c_werror_flag=$ac_c_werror_flag 3187 ac_c_werror_flag=yes 3188 ac_cv_prog_cc_g=no 3189 CFLAGS="-g" 3190 cat >conftest.$ac_ext <<_ACEOF 3191 /* confdefs.h. */ 3192 _ACEOF 3193 cat confdefs.h >>conftest.$ac_ext 3194 cat >>conftest.$ac_ext <<_ACEOF 3195 /* end confdefs.h. */ 3196 3197 int 3198 main () 3199 { 3200 3201 ; 3202 return 0; 3203 } 3204 _ACEOF 3205 rm -f conftest.$ac_objext 3206 if { (ac_try="$ac_compile" 3207 case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210 esac 3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3212 (eval "$ac_compile") 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } && { 3219 test -z "$ac_c_werror_flag" || 3220 test ! -s conftest.err 3221 } && test -s conftest.$ac_objext; then 3222 ac_cv_prog_cc_g=yes 3223 else 3224 echo "$as_me: failed program was:" >&5 3225 sed 's/^/| /' conftest.$ac_ext >&5 3226 3227 CFLAGS="" 3228 cat >conftest.$ac_ext <<_ACEOF 3229 /* confdefs.h. */ 3230 _ACEOF 3231 cat confdefs.h >>conftest.$ac_ext 3232 cat >>conftest.$ac_ext <<_ACEOF 3233 /* end confdefs.h. */ 3234 3235 int 3236 main () 3237 { 3238 3239 ; 3240 return 0; 3241 } 3242 _ACEOF 3243 rm -f conftest.$ac_objext 3244 if { (ac_try="$ac_compile" 3245 case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248 esac 3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_compile") 2>conftest.er1 3251 ac_status=$? 3252 grep -v '^ *+' conftest.er1 >conftest.err 3253 rm -f conftest.er1 3254 cat conftest.err >&5 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); } && { 3257 test -z "$ac_c_werror_flag" || 3258 test ! -s conftest.err 3259 } && test -s conftest.$ac_objext; then 3260 : 3261 else 3262 echo "$as_me: failed program was:" >&5 3263 sed 's/^/| /' conftest.$ac_ext >&5 3264 3265 ac_c_werror_flag=$ac_save_c_werror_flag 3266 CFLAGS="-g" 3267 cat >conftest.$ac_ext <<_ACEOF 3268 /* confdefs.h. */ 3269 _ACEOF 3270 cat confdefs.h >>conftest.$ac_ext 3271 cat >>conftest.$ac_ext <<_ACEOF 3272 /* end confdefs.h. */ 3273 3274 int 3275 main () 3276 { 3277 3278 ; 3279 return 0; 3280 } 3281 _ACEOF 3282 rm -f conftest.$ac_objext 3283 if { (ac_try="$ac_compile" 3284 case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287 esac 3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && { 3296 test -z "$ac_c_werror_flag" || 3297 test ! -s conftest.err 3298 } && test -s conftest.$ac_objext; then 3299 ac_cv_prog_cc_g=yes 3300 else 3301 echo "$as_me: failed program was:" >&5 3302 sed 's/^/| /' conftest.$ac_ext >&5 3303 3304 3305 fi 3306 3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3308 fi 3309 3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3311 fi 3312 3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3314 ac_c_werror_flag=$ac_save_c_werror_flag 3315 fi 3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3318 if test "$ac_test_CFLAGS" = set; then 3319 CFLAGS=$ac_save_CFLAGS 3320 elif test $ac_cv_prog_cc_g = yes; then 3321 if test "$GCC" = yes; then 3322 CFLAGS="-g -O2" 3323 else 3324 CFLAGS="-g" 3325 fi 3326 else 3327 if test "$GCC" = yes; then 3328 CFLAGS="-O2" 3329 else 3330 CFLAGS= 3331 fi 3332 fi 3333 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3334 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3335 if test "${ac_cv_prog_cc_c89+set}" = set; then 3336 echo $ECHO_N "(cached) $ECHO_C" >&6 3337 else 3338 ac_cv_prog_cc_c89=no 3339 ac_save_CC=$CC 3340 cat >conftest.$ac_ext <<_ACEOF 3341 /* confdefs.h. */ 3342 _ACEOF 3343 cat confdefs.h >>conftest.$ac_ext 3344 cat >>conftest.$ac_ext <<_ACEOF 3345 /* end confdefs.h. */ 3346 #include <stdarg.h> 3347 #include <stdio.h> 3348 #include <sys/types.h> 3349 #include <sys/stat.h> 3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3351 struct buf { int x; }; 3352 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3353 static char *e (p, i) 3354 char **p; 3355 int i; 3356 { 3357 return p[i]; 3358 } 3359 static char *f (char * (*g) (char **, int), char **p, ...) 3360 { 3361 char *s; 3362 va_list v; 3363 va_start (v,p); 3364 s = g (p, va_arg (v,int)); 3365 va_end (v); 3366 return s; 3367 } 3368 3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3370 function prototypes and stuff, but not '\xHH' hex character constants. 3371 These don't provoke an error unfortunately, instead are silently treated 3372 as 'x'. The following induces an error, until -std is added to get 3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3374 array size at least. It's necessary to write '\x00'==0 to get something 3375 that's true only with -std. */ 3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3377 3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3379 inside strings and character constants. */ 3380 #define FOO(x) 'x' 3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3382 3383 int test (int i, double x); 3384 struct s1 {int (*f) (int a);}; 3385 struct s2 {int (*f) (double a);}; 3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3387 int argc; 3388 char **argv; 3389 int 3390 main () 3391 { 3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3393 ; 3394 return 0; 3395 } 3396 _ACEOF 3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3399 do 3400 CC="$ac_save_CC $ac_arg" 3401 rm -f conftest.$ac_objext 3402 if { (ac_try="$ac_compile" 3403 case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406 esac 3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3408 (eval "$ac_compile") 2>conftest.er1 3409 ac_status=$? 3410 grep -v '^ *+' conftest.er1 >conftest.err 3411 rm -f conftest.er1 3412 cat conftest.err >&5 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); } && { 3415 test -z "$ac_c_werror_flag" || 3416 test ! -s conftest.err 3417 } && test -s conftest.$ac_objext; then 3418 ac_cv_prog_cc_c89=$ac_arg 3419 else 3420 echo "$as_me: failed program was:" >&5 3421 sed 's/^/| /' conftest.$ac_ext >&5 3422 3423 3424 fi 3425 3426 rm -f core conftest.err conftest.$ac_objext 3427 test "x$ac_cv_prog_cc_c89" != "xno" && break 3428 done 3429 rm -f conftest.$ac_ext 3430 CC=$ac_save_CC 3431 3432 fi 3433 # AC_CACHE_VAL 3434 case "x$ac_cv_prog_cc_c89" in 3435 x) 3436 { echo "$as_me:$LINENO: result: none needed" >&5 3437 echo "${ECHO_T}none needed" >&6; } ;; 3438 xno) 3439 { echo "$as_me:$LINENO: result: unsupported" >&5 3440 echo "${ECHO_T}unsupported" >&6; } ;; 3441 *) 3442 CC="$CC $ac_cv_prog_cc_c89" 3443 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3444 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3445 esac 3446 3447 3448 ac_ext=c 3449 ac_cpp='$CPP $CPPFLAGS' 3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3453 DEPDIR="${am__leading_dot}deps" 3454 3455 ac_config_commands="$ac_config_commands depfiles" 3456 3457 3458 am_make=${MAKE-make} 3459 cat > confinc << 'END' 3460 am__doit: 3461 @echo done 3462 .PHONY: am__doit 3463 END 3464 # If we don't find an include directive, just comment out the code. 3465 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3466 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3467 am__include="#" 3468 am__quote= 3469 _am_result=none 3470 # First try GNU make style include. 3471 echo "include confinc" > confmf 3472 # We grep out `Entering directory' and `Leaving directory' 3473 # messages which can occur if `w' ends up in MAKEFLAGS. 3474 # In particular we don't look at `^make:' because GNU make might 3475 # be invoked under some other name (usually "gmake"), in which 3476 # case it prints its new name instead of `make'. 3477 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3478 am__include=include 3479 am__quote= 3480 _am_result=GNU 3481 fi 3482 # Now try BSD make style include. 3483 if test "$am__include" = "#"; then 3484 echo '.include "confinc"' > confmf 3485 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3486 am__include=.include 3487 am__quote="\"" 3488 _am_result=BSD 3489 fi 3490 fi 3491 3492 3493 { echo "$as_me:$LINENO: result: $_am_result" >&5 3494 echo "${ECHO_T}$_am_result" >&6; } 3495 rm -f confinc confmf 3496 3497 # Check whether --enable-dependency-tracking was given. 3498 if test "${enable_dependency_tracking+set}" = set; then 3499 enableval=$enable_dependency_tracking; 3500 fi 3501 3502 if test "x$enable_dependency_tracking" != xno; then 3503 am_depcomp="$ac_aux_dir/depcomp" 3504 AMDEPBACKSLASH='\' 3505 fi 3506 if test "x$enable_dependency_tracking" != xno; then 3507 AMDEP_TRUE= 3508 AMDEP_FALSE='#' 3509 else 3510 AMDEP_TRUE='#' 3511 AMDEP_FALSE= 3512 fi 3513 3514 3515 3516 depcc="$CC" am_compiler_list= 3517 3518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522 else 3523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3524 # We make a subdir and do the tests there. Otherwise we can end up 3525 # making bogus files that we don't know about and never remove. For 3526 # instance it was reported that on HP-UX the gcc test will end up 3527 # making a dummy file named `D' -- because `-MD' means `put the output 3528 # in D'. 3529 mkdir conftest.dir 3530 # Copy depcomp to subdir because otherwise we won't find it if we're 3531 # using a relative directory. 3532 cp "$am_depcomp" conftest.dir 3533 cd conftest.dir 3534 # We will build objects and dependencies in a subdirectory because 3535 # it helps to detect inapplicable dependency modes. For instance 3536 # both Tru64's cc and ICC support -MD to output dependencies as a 3537 # side effect of compilation, but ICC will put the dependencies in 3538 # the current directory while Tru64 will put them in the object 3539 # directory. 3540 mkdir sub 3541 3542 am_cv_CC_dependencies_compiler_type=none 3543 if test "$am_compiler_list" = ""; then 3544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3545 fi 3546 for depmode in $am_compiler_list; do 3547 # Setup a source with many dependencies, because some compilers 3548 # like to wrap large dependency lists on column 80 (with \), and 3549 # we should not choose a depcomp mode which is confused by this. 3550 # 3551 # We need to recreate these files for each test, as the compiler may 3552 # overwrite some of them when testing with obscure command lines. 3553 # This happens at least with the AIX C compiler. 3554 : > sub/conftest.c 3555 for i in 1 2 3 4 5 6; do 3556 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3558 # Solaris 8's {/usr,}/bin/sh. 3559 touch sub/conftst$i.h 3560 done 3561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3562 3563 case $depmode in 3564 nosideeffect) 3565 # after this tag, mechanisms are not by side-effect, so they'll 3566 # only be used when explicitly requested 3567 if test "x$enable_dependency_tracking" = xyes; then 3568 continue 3569 else 3570 break 3571 fi 3572 ;; 3573 none) break ;; 3574 esac 3575 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3576 # mode. It turns out that the SunPro C++ compiler does not properly 3577 # handle `-M -o', and we need to detect this. 3578 if depmode=$depmode \ 3579 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3581 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3582 >/dev/null 2>conftest.err && 3583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3585 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3587 # icc doesn't choke on unknown options, it will just issue warnings 3588 # or remarks (even with -Werror). So we grep stderr for any message 3589 # that says an option was ignored or not supported. 3590 # When given -MP, icc 7.0 and 7.1 complain thusly: 3591 # icc: Command line warning: ignoring option '-M'; no argument required 3592 # The diagnosis changed in icc 8.0: 3593 # icc: Command line remark: option '-MP' not supported 3594 if (grep 'ignoring option' conftest.err || 3595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3596 am_cv_CC_dependencies_compiler_type=$depmode 3597 break 3598 fi 3599 fi 3600 done 3601 3602 cd .. 3603 rm -rf conftest.dir 3604 else 3605 am_cv_CC_dependencies_compiler_type=none 3606 fi 3607 3608 fi 3609 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3610 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3612 3613 if 3614 test "x$enable_dependency_tracking" != xno \ 3615 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3616 am__fastdepCC_TRUE= 3617 am__fastdepCC_FALSE='#' 3618 else 3619 am__fastdepCC_TRUE='#' 3620 am__fastdepCC_FALSE= 3621 fi 3622 3623 3624 # Find a good install program. We prefer a C program (faster), 3625 # so one script is as good as another. But avoid the broken or 3626 # incompatible versions: 3627 # SysV /etc/install, /usr/sbin/install 3628 # SunOS /usr/etc/install 3629 # IRIX /sbin/install 3630 # AIX /bin/install 3631 # AmigaOS /C/install, which installs bootblocks on floppy discs 3632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3635 # OS/2's system install, which has a completely different semantic 3636 # ./install, which can be erroneously created by make from ./install.sh. 3637 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3638 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3639 if test -z "$INSTALL"; then 3640 if test "${ac_cv_path_install+set}" = set; then 3641 echo $ECHO_N "(cached) $ECHO_C" >&6 3642 else 3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644 for as_dir in $PATH 3645 do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 # Account for people who put trailing slashes in PATH elements. 3649 case $as_dir/ in 3650 ./ | .// | /cC/* | \ 3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3653 /usr/ucb/* ) ;; 3654 *) 3655 # OSF1 and SCO ODT 3.0 have their own names for install. 3656 # Don't use installbsd from OSF since it installs stuff as root 3657 # by default. 3658 for ac_prog in ginstall scoinst install; do 3659 for ac_exec_ext in '' $ac_executable_extensions; do 3660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3661 if test $ac_prog = install && 3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3663 # AIX install. It has an incompatible calling convention. 3664 : 3665 elif test $ac_prog = install && 3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3667 # program-specific install script used by HP pwplus--don't use. 3668 : 3669 else 3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3671 break 3 3672 fi 3673 fi 3674 done 3675 done 3676 ;; 3677 esac 3678 done 3679 IFS=$as_save_IFS 3680 3681 3682 fi 3683 if test "${ac_cv_path_install+set}" = set; then 3684 INSTALL=$ac_cv_path_install 3685 else 3686 # As a last resort, use the slow shell script. Don't cache a 3687 # value for INSTALL within a source directory, because that will 3688 # break other packages using the cache if that directory is 3689 # removed, or if the value is a relative name. 3690 INSTALL=$ac_install_sh 3691 fi 3692 fi 3693 { echo "$as_me:$LINENO: result: $INSTALL" >&5 3694 echo "${ECHO_T}$INSTALL" >&6; } 3695 3696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3697 # It thinks the first close brace ends the variable substitution. 3698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3699 3700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3701 3702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3703 3704 for ac_prog in 'bison -y' byacc 3705 do 3706 # Extract the first word of "$ac_prog", so it can be a program name with args. 3707 set dummy $ac_prog; ac_word=$2 3708 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3710 if test "${ac_cv_prog_YACC+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712 else 3713 if test -n "$YACC"; then 3714 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3715 else 3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717 for as_dir in $PATH 3718 do 3719 IFS=$as_save_IFS 3720 test -z "$as_dir" && as_dir=. 3721 for ac_exec_ext in '' $ac_executable_extensions; do 3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3723 ac_cv_prog_YACC="$ac_prog" 3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3725 break 2 3726 fi 3727 done 3728 done 3729 IFS=$as_save_IFS 3730 3731 fi 3732 fi 3733 YACC=$ac_cv_prog_YACC 3734 if test -n "$YACC"; then 3735 { echo "$as_me:$LINENO: result: $YACC" >&5 3736 echo "${ECHO_T}$YACC" >&6; } 3737 else 3738 { echo "$as_me:$LINENO: result: no" >&5 3739 echo "${ECHO_T}no" >&6; } 3740 fi 3741 3742 3743 test -n "$YACC" && break 3744 done 3745 test -n "$YACC" || YACC="yacc" 3746 3747 3748 3749 { echo "$as_me:$LINENO: checking whether to use Java" >&5 3750 echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } 3751 # Check whether --enable-java was given. 3752 if test "${enable_java+set}" = set; then 3753 enableval=$enable_java; JAVA_CHOICE="$enableval" 3754 else 3755 JAVA_CHOICE=yes 3756 fi 3757 3758 { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 3759 echo "${ECHO_T}$JAVA_CHOICE" >&6; } 3760 if test "$JAVA_CHOICE" = yes; then 3761 # Check whether --enable-native-java was given. 3762 if test "${enable_native_java+set}" = set; then 3763 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode 3764 fi 3765 3766 fi 3767 3768 3769 3770 3771 ac_ext=c 3772 ac_cpp='$CPP $CPPFLAGS' 3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3776 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3777 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3778 # On Suns, sometimes $CPP names a directory. 3779 if test -n "$CPP" && test -d "$CPP"; then 3780 CPP= 3781 fi 3782 if test -z "$CPP"; then 3783 if test "${ac_cv_prog_CPP+set}" = set; then 3784 echo $ECHO_N "(cached) $ECHO_C" >&6 3785 else 3786 # Double quotes because CPP needs to be expanded 3787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3788 do 3789 ac_preproc_ok=false 3790 for ac_c_preproc_warn_flag in '' yes 3791 do 3792 # Use a header file that comes with gcc, so configuring glibc 3793 # with a fresh cross-compiler works. 3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3795 # <limits.h> exists even on freestanding compilers. 3796 # On the NeXT, cc -E runs the code through the compiler's parser, 3797 # not just through cpp. "Syntax error" is here to catch this case. 3798 cat >conftest.$ac_ext <<_ACEOF 3799 /* confdefs.h. */ 3800 _ACEOF 3801 cat confdefs.h >>conftest.$ac_ext 3802 cat >>conftest.$ac_ext <<_ACEOF 3803 /* end confdefs.h. */ 3804 #ifdef __STDC__ 3805 # include <limits.h> 3806 #else 3807 # include <assert.h> 3808 #endif 3809 Syntax error 3810 _ACEOF 3811 if { (ac_try="$ac_cpp conftest.$ac_ext" 3812 case "(($ac_try" in 3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3814 *) ac_try_echo=$ac_try;; 3815 esac 3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3818 ac_status=$? 3819 grep -v '^ *+' conftest.er1 >conftest.err 3820 rm -f conftest.er1 3821 cat conftest.err >&5 3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3823 (exit $ac_status); } >/dev/null && { 3824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3825 test ! -s conftest.err 3826 }; then 3827 : 3828 else 3829 echo "$as_me: failed program was:" >&5 3830 sed 's/^/| /' conftest.$ac_ext >&5 3831 3832 # Broken: fails on valid input. 3833 continue 3834 fi 3835 3836 rm -f conftest.err conftest.$ac_ext 3837 3838 # OK, works on sane cases. Now check whether nonexistent headers 3839 # can be detected and how. 3840 cat >conftest.$ac_ext <<_ACEOF 3841 /* confdefs.h. */ 3842 _ACEOF 3843 cat confdefs.h >>conftest.$ac_ext 3844 cat >>conftest.$ac_ext <<_ACEOF 3845 /* end confdefs.h. */ 3846 #include <ac_nonexistent.h> 3847 _ACEOF 3848 if { (ac_try="$ac_cpp conftest.$ac_ext" 3849 case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852 esac 3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3855 ac_status=$? 3856 grep -v '^ *+' conftest.er1 >conftest.err 3857 rm -f conftest.er1 3858 cat conftest.err >&5 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } >/dev/null && { 3861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3862 test ! -s conftest.err 3863 }; then 3864 # Broken: success on invalid input. 3865 continue 3866 else 3867 echo "$as_me: failed program was:" >&5 3868 sed 's/^/| /' conftest.$ac_ext >&5 3869 3870 # Passes both tests. 3871 ac_preproc_ok=: 3872 break 3873 fi 3874 3875 rm -f conftest.err conftest.$ac_ext 3876 3877 done 3878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3879 rm -f conftest.err conftest.$ac_ext 3880 if $ac_preproc_ok; then 3881 break 3882 fi 3883 3884 done 3885 ac_cv_prog_CPP=$CPP 3886 3887 fi 3888 CPP=$ac_cv_prog_CPP 3889 else 3890 ac_cv_prog_CPP=$CPP 3891 fi 3892 { echo "$as_me:$LINENO: result: $CPP" >&5 3893 echo "${ECHO_T}$CPP" >&6; } 3894 ac_preproc_ok=false 3895 for ac_c_preproc_warn_flag in '' yes 3896 do 3897 # Use a header file that comes with gcc, so configuring glibc 3898 # with a fresh cross-compiler works. 3899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3900 # <limits.h> exists even on freestanding compilers. 3901 # On the NeXT, cc -E runs the code through the compiler's parser, 3902 # not just through cpp. "Syntax error" is here to catch this case. 3903 cat >conftest.$ac_ext <<_ACEOF 3904 /* confdefs.h. */ 3905 _ACEOF 3906 cat confdefs.h >>conftest.$ac_ext 3907 cat >>conftest.$ac_ext <<_ACEOF 3908 /* end confdefs.h. */ 3909 #ifdef __STDC__ 3910 # include <limits.h> 3911 #else 3912 # include <assert.h> 3913 #endif 3914 Syntax error 3915 _ACEOF 3916 if { (ac_try="$ac_cpp conftest.$ac_ext" 3917 case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920 esac 3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3923 ac_status=$? 3924 grep -v '^ *+' conftest.er1 >conftest.err 3925 rm -f conftest.er1 3926 cat conftest.err >&5 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); } >/dev/null && { 3929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3930 test ! -s conftest.err 3931 }; then 3932 : 3933 else 3934 echo "$as_me: failed program was:" >&5 3935 sed 's/^/| /' conftest.$ac_ext >&5 3936 3937 # Broken: fails on valid input. 3938 continue 3939 fi 3940 3941 rm -f conftest.err conftest.$ac_ext 3942 3943 # OK, works on sane cases. Now check whether nonexistent headers 3944 # can be detected and how. 3945 cat >conftest.$ac_ext <<_ACEOF 3946 /* confdefs.h. */ 3947 _ACEOF 3948 cat confdefs.h >>conftest.$ac_ext 3949 cat >>conftest.$ac_ext <<_ACEOF 3950 /* end confdefs.h. */ 3951 #include <ac_nonexistent.h> 3952 _ACEOF 3953 if { (ac_try="$ac_cpp conftest.$ac_ext" 3954 case "(($ac_try" in 3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3956 *) ac_try_echo=$ac_try;; 3957 esac 3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3960 ac_status=$? 3961 grep -v '^ *+' conftest.er1 >conftest.err 3962 rm -f conftest.er1 3963 cat conftest.err >&5 3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3965 (exit $ac_status); } >/dev/null && { 3966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3967 test ! -s conftest.err 3968 }; then 3969 # Broken: success on invalid input. 3970 continue 3971 else 3972 echo "$as_me: failed program was:" >&5 3973 sed 's/^/| /' conftest.$ac_ext >&5 3974 3975 # Passes both tests. 3976 ac_preproc_ok=: 3977 break 3978 fi 3979 3980 rm -f conftest.err conftest.$ac_ext 3981 3982 done 3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3984 rm -f conftest.err conftest.$ac_ext 3985 if $ac_preproc_ok; then 3986 : 3987 else 3988 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3989 See \`config.log' for more details." >&5 3990 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3991 See \`config.log' for more details." >&2;} 3992 { (exit 1); exit 1; }; } 3993 fi 3994 3995 ac_ext=c 3996 ac_cpp='$CPP $CPPFLAGS' 3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4000 4001 4002 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4003 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4004 if test "${ac_cv_path_GREP+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006 else 4007 # Extract the first word of "grep ggrep" to use in msg output 4008 if test -z "$GREP"; then 4009 set dummy grep ggrep; ac_prog_name=$2 4010 if test "${ac_cv_path_GREP+set}" = set; then 4011 echo $ECHO_N "(cached) $ECHO_C" >&6 4012 else 4013 ac_path_GREP_found=false 4014 # Loop through the user's path and test for each of PROGNAME-LIST 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4017 do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_prog in grep ggrep; do 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4023 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4024 # Check for GNU ac_path_GREP and select it if it is found. 4025 # Check for GNU $ac_path_GREP 4026 case `"$ac_path_GREP" --version 2>&1` in 4027 *GNU*) 4028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4029 *) 4030 ac_count=0 4031 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4032 while : 4033 do 4034 cat "conftest.in" "conftest.in" >"conftest.tmp" 4035 mv "conftest.tmp" "conftest.in" 4036 cp "conftest.in" "conftest.nl" 4037 echo 'GREP' >> "conftest.nl" 4038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4040 ac_count=`expr $ac_count + 1` 4041 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4042 # Best one so far, save it but keep looking for a better one 4043 ac_cv_path_GREP="$ac_path_GREP" 4044 ac_path_GREP_max=$ac_count 4045 fi 4046 # 10*(2^10) chars as input seems more than enough 4047 test $ac_count -gt 10 && break 4048 done 4049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4050 esac 4051 4052 4053 $ac_path_GREP_found && break 3 4054 done 4055 done 4056 4057 done 4058 IFS=$as_save_IFS 4059 4060 4061 fi 4062 4063 GREP="$ac_cv_path_GREP" 4064 if test -z "$GREP"; then 4065 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4066 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4067 { (exit 1); exit 1; }; } 4068 fi 4069 4070 else 4071 ac_cv_path_GREP=$GREP 4072 fi 4073 4074 4075 fi 4076 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4077 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4078 GREP="$ac_cv_path_GREP" 4079 4080 4081 { echo "$as_me:$LINENO: checking for egrep" >&5 4082 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4083 if test "${ac_cv_path_EGREP+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085 else 4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4087 then ac_cv_path_EGREP="$GREP -E" 4088 else 4089 # Extract the first word of "egrep" to use in msg output 4090 if test -z "$EGREP"; then 4091 set dummy egrep; ac_prog_name=$2 4092 if test "${ac_cv_path_EGREP+set}" = set; then 4093 echo $ECHO_N "(cached) $ECHO_C" >&6 4094 else 4095 ac_path_EGREP_found=false 4096 # Loop through the user's path and test for each of PROGNAME-LIST 4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099 do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in egrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4105 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4106 # Check for GNU ac_path_EGREP and select it if it is found. 4107 # Check for GNU $ac_path_EGREP 4108 case `"$ac_path_EGREP" --version 2>&1` in 4109 *GNU*) 4110 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4111 *) 4112 ac_count=0 4113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 echo 'EGREP' >> "conftest.nl" 4120 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 ac_count=`expr $ac_count + 1` 4123 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_EGREP="$ac_path_EGREP" 4126 ac_path_EGREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132 esac 4133 4134 4135 $ac_path_EGREP_found && break 3 4136 done 4137 done 4138 4139 done 4140 IFS=$as_save_IFS 4141 4142 4143 fi 4144 4145 EGREP="$ac_cv_path_EGREP" 4146 if test -z "$EGREP"; then 4147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4148 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4149 { (exit 1); exit 1; }; } 4150 fi 4151 4152 else 4153 ac_cv_path_EGREP=$EGREP 4154 fi 4155 4156 4157 fi 4158 fi 4159 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4160 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4161 EGREP="$ac_cv_path_EGREP" 4162 4163 4164 4165 4166 cat >conftest.$ac_ext <<_ACEOF 4167 /* confdefs.h. */ 4168 _ACEOF 4169 cat confdefs.h >>conftest.$ac_ext 4170 cat >>conftest.$ac_ext <<_ACEOF 4171 /* end confdefs.h. */ 4172 4173 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ 4174 yes 4175 #endif 4176 4177 _ACEOF 4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4179 $EGREP "yes" >/dev/null 2>&1; then 4180 CLASSPATH_SEPARATOR=';' 4181 else 4182 CLASSPATH_SEPARATOR=':' 4183 fi 4184 rm -f conftest* 4185 4186 source_version=1.3 4187 test -n "$source_version" || { 4188 { { echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5 4189 echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;} 4190 { (exit 1); exit 1; }; } 4191 } 4192 target_version=1.1 4193 case "$source_version" in 4194 1.3) goodcode='class conftest {}' 4195 failcode='class conftestfail { static { assert(true); } }' ;; 4196 1.4) goodcode='class conftest { static { assert(true); } }' 4197 failcode='class conftestfail<T> { T foo() { return null; } }' ;; 4198 1.5) goodcode='class conftest<T> { T foo() { return null; } }' 4199 failcode='class conftestfail syntax error' ;; 4200 *) { { echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5 4201 echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;} 4202 { (exit 1); exit 1; }; } ;; 4203 esac 4204 case "$target_version" in 4205 1.1) cfversion=45 ;; 4206 1.2) cfversion=46 ;; 4207 1.3) cfversion=47 ;; 4208 1.4) cfversion=48 ;; 4209 1.5) cfversion=49 ;; 4210 1.6) cfversion=50 ;; 4211 *) { { echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5 4212 echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;} 4213 { (exit 1); exit 1; }; } ;; 4214 esac 4215 # Function to output the classfile version of a file (8th byte) in decimal. 4216 if od -A x < /dev/null >/dev/null 2>/dev/null; then 4217 # Use POSIX od. 4218 func_classfile_version () 4219 { 4220 od -A n -t d1 -j 7 -N 1 "$1" 4221 } 4222 else 4223 # Use BSD hexdump. 4224 func_classfile_version () 4225 { 4226 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' 4227 echo 4228 } 4229 fi 4230 { echo "$as_me:$LINENO: checking for Java compiler" >&5 4231 echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6; } 4232 CONF_JAVAC= 4233 HAVE_JAVAC_ENVVAR= 4234 HAVE_GCJ_C= 4235 HAVE_JAVAC= 4236 HAVE_JIKES= 4237 HAVE_JAVACOMP= 4238 cat > conftestlib.java <<EOF 4239 public class conftestlib { 4240 public static void main (String[] args) { 4241 } 4242 } 4243 EOF 4244 echo "$goodcode" > conftest.java 4245 echo "$failcode" > conftestfail.java 4246 if test -n "$JAVAC"; then 4247 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then 4248 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then 4249 rm -f conftest.class 4250 if { echo "$as_me:4250: $JAVAC -d . conftest.java" >&5 4251 $JAVAC -d . conftest.java >&5 2>&1 4252 } \ 4253 && test -f conftest.class; then 4254 CONF_JAVAC="$JAVAC" 4255 HAVE_JAVAC_ENVVAR=1 4256 HAVE_JAVACOMP=1 4257 fi 4258 else 4259 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then 4260 javac_works= 4261 rm -f conftest.class 4262 if { echo "$as_me:4262: $JAVAC -d . conftest.java" >&5 4263 $JAVAC -d . conftest.java >&5 2>&1 4264 } \ 4265 && test -f conftest.class; then 4266 javac_works=1 4267 fi 4268 javac_noassert_works= 4269 rm -f conftest.class 4270 if { echo "$as_me:4270: $JAVAC -fno-assert -d . conftest.java" >&5 4271 $JAVAC -fno-assert -d . conftest.java >&5 2>&1 4272 } \ 4273 && test -f conftest.class; then 4274 javac_noassert_works=1 4275 fi 4276 if test -n "$javac_works" && test -n "$javac_noassert_works"; then 4277 rm -f conftestfail.class 4278 if { echo "$as_me:4278: $JAVAC -d . conftestfail.java" >&5 4279 $JAVAC -d . conftestfail.java >&5 2>&1 4280 } \ 4281 && test -f conftestfail.class \ 4282 && ! { echo "$as_me:4282: $JAVAC -fno-assert -d . conftestfail.java" >&5 4283 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 4284 }; then 4285 javac_works= 4286 fi 4287 fi 4288 if test -n "$javac_works"; then 4289 CONF_JAVAC="$JAVAC" 4290 HAVE_JAVAC_ENVVAR=1 4291 HAVE_JAVACOMP=1 4292 else 4293 if test -n "$javac_noassert_works"; then 4294 CONF_JAVAC="$JAVAC -fno-assert" 4295 HAVE_JAVAC_ENVVAR=1 4296 HAVE_JAVACOMP=1 4297 fi 4298 fi 4299 fi 4300 fi 4301 else 4302 rm -f conftest.class 4303 if { echo "$as_me:4303: $JAVAC -d . conftest.java" >&5 4304 $JAVAC -d . conftest.java >&5 2>&1 4305 } \ 4306 && test -f conftest.class \ 4307 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4308 rm -f conftest.class 4309 rm -f conftestfail.class 4310 if { echo "$as_me:4310: $JAVAC -source $source_version -d . conftest.java" >&5 4311 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 4312 } \ 4313 && test -f conftest.class \ 4314 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 4315 && { echo "$as_me:4315: $JAVAC -d . conftestfail.java" >&5 4316 $JAVAC -d . conftestfail.java >&5 2>&1 4317 } \ 4318 && test -f conftestfail.class \ 4319 && ! { echo "$as_me:4319: $JAVAC -source $source_version -d . conftestfail.java" >&5 4320 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 4321 }; then 4322 CONF_JAVAC="$JAVAC -source $source_version" 4323 HAVE_JAVAC_ENVVAR=1 4324 HAVE_JAVACOMP=1 4325 else 4326 CONF_JAVAC="$JAVAC" 4327 HAVE_JAVAC_ENVVAR=1 4328 HAVE_JAVACOMP=1 4329 fi 4330 else 4331 rm -f conftest.class 4332 if { echo "$as_me:4332: $JAVAC -target $target_version -d . conftest.java" >&5 4333 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 4334 } \ 4335 && test -f conftest.class \ 4336 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4337 rm -f conftest.class 4338 rm -f conftestfail.class 4339 if { echo "$as_me:4339: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 4340 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 4341 } \ 4342 && test -f conftest.class \ 4343 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 4344 && { echo "$as_me:4344: $JAVAC -target $target_version -d . conftestfail.java" >&5 4345 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 4346 } \ 4347 && test -f conftestfail.class \ 4348 && ! { echo "$as_me:4348: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 4349 $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 4350 }; then 4351 CONF_JAVAC="$JAVAC -target $target_version -source $source_version" 4352 HAVE_JAVAC_ENVVAR=1 4353 HAVE_JAVACOMP=1 4354 else 4355 CONF_JAVAC="$JAVAC -target $target_version" 4356 HAVE_JAVAC_ENVVAR=1 4357 HAVE_JAVACOMP=1 4358 fi 4359 else 4360 rm -f conftest.class 4361 if { echo "$as_me:4361: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 4362 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 4363 } \ 4364 && test -f conftest.class \ 4365 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4366 CONF_JAVAC="$JAVAC -target $target_version -source $source_version" 4367 HAVE_JAVAC_ENVVAR=1 4368 HAVE_JAVACOMP=1 4369 fi 4370 fi 4371 fi 4372 fi 4373 fi 4374 if test -z "$HAVE_JAVACOMP"; then 4375 # Extract the first word of "gcj", so it can be a program name with args. 4376 set dummy gcj; ac_word=$2 4377 : 4378 if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then 4379 echo $ECHO_N "(cached) $ECHO_C" >&6 4380 else 4381 if test -n "$HAVE_GCJ_IN_PATH"; then 4382 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. 4383 else 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385 for as_dir in $PATH 4386 do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4391 ac_cv_prog_HAVE_GCJ_IN_PATH="yes" 4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395 done 4396 done 4397 IFS=$as_save_IFS 4398 4399 fi 4400 fi 4401 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH 4402 if test -n "$HAVE_GCJ_IN_PATH"; then 4403 : 4404 else 4405 : 4406 fi 4407 4408 4409 # Extract the first word of "javac", so it can be a program name with args. 4410 set dummy javac; ac_word=$2 4411 : 4412 if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then 4413 echo $ECHO_N "(cached) $ECHO_C" >&6 4414 else 4415 if test -n "$HAVE_JAVAC_IN_PATH"; then 4416 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. 4417 else 4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419 for as_dir in $PATH 4420 do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4425 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" 4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4427 break 2 4428 fi 4429 done 4430 done 4431 IFS=$as_save_IFS 4432 4433 fi 4434 fi 4435 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH 4436 if test -n "$HAVE_JAVAC_IN_PATH"; then 4437 : 4438 else 4439 : 4440 fi 4441 4442 4443 # Extract the first word of "jikes", so it can be a program name with args. 4444 set dummy jikes; ac_word=$2 4445 : 4446 if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then 4447 echo $ECHO_N "(cached) $ECHO_C" >&6 4448 else 4449 if test -n "$HAVE_JIKES_IN_PATH"; then 4450 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. 4451 else 4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453 for as_dir in $PATH 4454 do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4459 ac_cv_prog_HAVE_JIKES_IN_PATH="yes" 4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4461 break 2 4462 fi 4463 done 4464 done 4465 IFS=$as_save_IFS 4466 4467 fi 4468 fi 4469 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH 4470 if test -n "$HAVE_JIKES_IN_PATH"; then 4471 : 4472 else 4473 : 4474 fi 4475 4476 4477 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then 4478 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then 4479 if { echo "$as_me:4479: gcj -C -d . conftestlib.java" >&5 4480 gcj -C -d . conftestlib.java >&5 2>&1 4481 }; then 4482 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then 4483 rm -f conftest.class 4484 if { echo "$as_me:4484: gcj -C -d . conftest.java" >&5 4485 gcj -C -d . conftest.java >&5 2>&1 4486 } \ 4487 && test -f conftest.class; then 4488 CONF_JAVAC="gcj -C" 4489 HAVE_GCJ_C=1 4490 HAVE_JAVACOMP=1 4491 fi 4492 else 4493 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then 4494 rm -f conftest.class 4495 if { echo "$as_me:4495: gcj -C -fno-assert -d . conftest.java" >&5 4496 gcj -C -fno-assert -d . conftest.java >&5 2>&1 4497 } \ 4498 && test -f conftest.class; then 4499 CONF_JAVAC="gcj -C -fno-assert" 4500 HAVE_GCJ_C=1 4501 HAVE_JAVACOMP=1 4502 else 4503 rm -f conftest.class 4504 if { echo "$as_me:4504: gcj -C -d . conftest.java" >&5 4505 gcj -C -d . conftest.java >&5 2>&1 4506 } \ 4507 && test -f conftest.class; then 4508 CONF_JAVAC="gcj -C" 4509 HAVE_GCJ_C=1 4510 HAVE_JAVACOMP=1 4511 fi 4512 fi 4513 fi 4514 fi 4515 fi 4516 fi 4517 fi 4518 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then 4519 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ 4520 && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then 4521 rm -f conftest.class 4522 if { echo "$as_me:4522: javac -d . conftest.java" >&5 4523 javac -d . conftest.java >&5 2>&1 4524 } \ 4525 && test -f conftest.class \ 4526 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4527 rm -f conftest.class 4528 rm -f conftestfail.class 4529 if { echo "$as_me:4529: javac -source $source_version -d . conftest.java" >&5 4530 javac -source "$source_version" -d . conftest.java >&5 2>&1 4531 } \ 4532 && test -f conftest.class \ 4533 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 4534 && { echo "$as_me:4534: javac -d . conftestfail.java" >&5 4535 javac -d . conftestfail.java >&5 2>&1 4536 } \ 4537 && test -f conftestfail.class \ 4538 && ! { echo "$as_me:4538: javac -source $source_version -d . conftestfail.java" >&5 4539 javac -source "$source_version" -d . conftestfail.java >&5 2>&1 4540 }; then 4541 CONF_JAVAC="javac -source $source_version" 4542 HAVE_JAVAC=1 4543 HAVE_JAVACOMP=1 4544 else 4545 CONF_JAVAC="javac" 4546 HAVE_JAVAC=1 4547 HAVE_JAVACOMP=1 4548 fi 4549 else 4550 rm -f conftest.class 4551 if { echo "$as_me:4551: javac -target $target_version -d . conftest.java" >&5 4552 javac -target "$target_version" -d . conftest.java >&5 2>&1 4553 } \ 4554 && test -f conftest.class \ 4555 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4556 rm -f conftest.class 4557 rm -f conftestfail.class 4558 if { echo "$as_me:4558: javac -target $target_version -source $source_version -d . conftest.java" >&5 4559 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 4560 } \ 4561 && test -f conftest.class \ 4562 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 4563 && { echo "$as_me:4563: javac -target $target_version -d . conftestfail.java" >&5 4564 javac -target "$target_version" -d . conftestfail.java >&5 2>&1 4565 } \ 4566 && test -f conftestfail.class \ 4567 && ! { echo "$as_me:4567: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 4568 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 4569 }; then 4570 CONF_JAVAC="javac -target $target_version -source $source_version" 4571 HAVE_JAVAC=1 4572 HAVE_JAVACOMP=1 4573 else 4574 CONF_JAVAC="javac -target $target_version" 4575 HAVE_JAVAC=1 4576 HAVE_JAVACOMP=1 4577 fi 4578 else 4579 rm -f conftest.class 4580 if { echo "$as_me:4580: javac -target $target_version -source $source_version -d . conftest.java" >&5 4581 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 4582 } \ 4583 && test -f conftest.class \ 4584 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 4585 CONF_JAVAC="javac -target $target_version -source $source_version" 4586 HAVE_JAVAC=1 4587 HAVE_JAVACOMP=1 4588 fi 4589 fi 4590 fi 4591 fi 4592 fi 4593 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then 4594 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ 4595 && ( 4596 # See if the existing CLASSPATH is sufficient to make jikes work. 4597 unset JAVA_HOME 4598 jikes conftestlib.java >&5 2>&1 4599 error=$? 4600 rm -f conftestlib.class 4601 exit $error 4602 ); then 4603 if test "$source_version" = 1.3; then 4604 CONF_JAVAC="jikes" 4605 HAVE_JIKES=1 4606 HAVE_JAVACOMP=1 4607 fi 4608 fi 4609 fi 4610 fi 4611 rm -f conftest*.java conftest*.class 4612 if test -n "$HAVE_JAVACOMP"; then 4613 ac_result="$CONF_JAVAC" 4614 else 4615 ac_result="no" 4616 fi 4617 { echo "$as_me:$LINENO: result: $ac_result" >&5 4618 echo "${ECHO_T}$ac_result" >&6; } 4619 4620 4621 4622 4623 4624 4625 4626 4627 # Extract the first word of "jar", so it can be a program name with args. 4628 set dummy jar; ac_word=$2 4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4631 if test "${ac_cv_prog_JAR+set}" = set; then 4632 echo $ECHO_N "(cached) $ECHO_C" >&6 4633 else 4634 if test -n "$JAR"; then 4635 ac_cv_prog_JAR="$JAR" # Let the user override the test. 4636 else 4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638 for as_dir in $PATH 4639 do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4644 ac_cv_prog_JAR="jar" 4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648 done 4649 done 4650 IFS=$as_save_IFS 4651 4652 fi 4653 fi 4654 JAR=$ac_cv_prog_JAR 4655 if test -n "$JAR"; then 4656 { echo "$as_me:$LINENO: result: $JAR" >&5 4657 echo "${ECHO_T}$JAR" >&6; } 4658 else 4659 { echo "$as_me:$LINENO: result: no" >&5 4660 echo "${ECHO_T}no" >&6; } 4661 fi 4662 4663 4664 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then 4665 BUILDJAVA=yes 4666 else 4667 BUILDJAVA=no 4668 fi 4669 4670 4671 4672 { echo "$as_me:$LINENO: checking for preferred C# implementation" >&5 4673 echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6; } 4674 # Check whether --enable-csharp was given. 4675 if test "${enable_csharp+set}" = set; then 4676 enableval=$enable_csharp; CSHARP_CHOICE="$enableval" 4677 else 4678 CSHARP_CHOICE=any 4679 fi 4680 4681 4682 { echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5 4683 echo "${ECHO_T}$CSHARP_CHOICE" >&6; } 4684 case "$CSHARP_CHOICE" in 4685 pnet) 4686 4687 cat >>confdefs.h <<\_ACEOF 4688 #define CSHARP_CHOICE_PNET 1 4689 _ACEOF 4690 4691 ;; 4692 mono) 4693 4694 cat >>confdefs.h <<\_ACEOF 4695 #define CSHARP_CHOICE_MONO 1 4696 _ACEOF 4697 4698 ;; 4699 esac 4700 4701 4702 4703 { echo "$as_me:$LINENO: checking for C# compiler" >&5 4704 echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6; } 4705 HAVE_CSHARPCOMP=1 4706 # Extract the first word of "cscc", so it can be a program name with args. 4707 set dummy cscc; ac_word=$2 4708 : 4709 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then 4710 echo $ECHO_N "(cached) $ECHO_C" >&6 4711 else 4712 if test -n "$HAVE_CSCC_IN_PATH"; then 4713 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. 4714 else 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716 for as_dir in $PATH 4717 do 4718 IFS=$as_save_IFS 4719 test -z "$as_dir" && as_dir=. 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4722 ac_cv_prog_HAVE_CSCC_IN_PATH="yes" 4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726 done 4727 done 4728 IFS=$as_save_IFS 4729 4730 fi 4731 fi 4732 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH 4733 if test -n "$HAVE_CSCC_IN_PATH"; then 4734 : 4735 else 4736 : 4737 fi 4738 4739 4740 # Extract the first word of "mcs", so it can be a program name with args. 4741 set dummy mcs; ac_word=$2 4742 : 4743 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745 else 4746 if test -n "$HAVE_MCS_IN_PATH"; then 4747 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. 4748 else 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750 for as_dir in $PATH 4751 do 4752 IFS=$as_save_IFS 4753 test -z "$as_dir" && as_dir=. 4754 for ac_exec_ext in '' $ac_executable_extensions; do 4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4756 ac_cv_prog_HAVE_MCS_IN_PATH="yes" 4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4758 break 2 4759 fi 4760 done 4761 done 4762 IFS=$as_save_IFS 4763 4764 fi 4765 fi 4766 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH 4767 if test -n "$HAVE_MCS_IN_PATH"; then 4768 : 4769 else 4770 : 4771 fi 4772 4773 4774 # Extract the first word of "csc", so it can be a program name with args. 4775 set dummy csc; ac_word=$2 4776 : 4777 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779 else 4780 if test -n "$HAVE_CSC_IN_PATH"; then 4781 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. 4782 else 4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4784 for as_dir in $PATH 4785 do 4786 IFS=$as_save_IFS 4787 test -z "$as_dir" && as_dir=. 4788 for ac_exec_ext in '' $ac_executable_extensions; do 4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4790 ac_cv_prog_HAVE_CSC_IN_PATH="yes" 4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4792 break 2 4793 fi 4794 done 4795 done 4796 IFS=$as_save_IFS 4797 4798 fi 4799 fi 4800 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH 4801 if test -n "$HAVE_CSC_IN_PATH"; then 4802 : 4803 else 4804 : 4805 fi 4806 4807 4808 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do 4809 case "$impl" in 4810 pnet) 4811 if test -n "$HAVE_CSCC_IN_PATH" \ 4812 && cscc --version >/dev/null 2>/dev/null \ 4813 && ( 4814 # See if pnetlib is well installed. 4815 echo 'class ConfTest { static void Main() { } }' > conftest.cs 4816 cscc -o conftest.exe conftest.cs 2>/dev/null 4817 error=$? 4818 rm -f conftest.cs conftest.exe 4819 exit $error 4820 ); then 4821 HAVE_CSCC=1 4822 ac_result="cscc" 4823 break 4824 fi 4825 ;; 4826 mono) 4827 if test -n "$HAVE_MCS_IN_PATH" \ 4828 && mcs --version >/dev/null 2>/dev/null; then 4829 HAVE_MCS=1 4830 ac_result="mcs" 4831 break 4832 fi 4833 ;; 4834 sscli) 4835 if test -n "$HAVE_CSC_IN_PATH" \ 4836 && csc -help >/dev/null 2>/dev/null \ 4837 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then 4838 HAVE_CSC=1 4839 ac_result="csc" 4840 break 4841 fi 4842 ;; 4843 no) 4844 HAVE_CSHARPCOMP= 4845 ac_result="no" 4846 break 4847 ;; 4848 esac 4849 done 4850 { echo "$as_me:$LINENO: result: $ac_result" >&5 4851 echo "${ECHO_T}$ac_result" >&6; } 4852 4853 4854 4855 if test -z "${CSHARPCOMPFLAGS+set}"; then 4856 CSHARPCOMPFLAGS="-O -g" 4857 fi 4858 4859 4860 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then 4861 BUILDCSHARP=yes 4862 else 4863 BUILDCSHARP=no 4864 fi 4865 4866 4867 # Make sure we can run config.sub. 4868 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4869 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4870 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4871 { (exit 1); exit 1; }; } 4872 4873 { echo "$as_me:$LINENO: checking build system type" >&5 4874 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 4875 if test "${ac_cv_build+set}" = set; then 4876 echo $ECHO_N "(cached) $ECHO_C" >&6 4877 else 4878 ac_build_alias=$build_alias 4879 test "x$ac_build_alias" = x && 4880 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4881 test "x$ac_build_alias" = x && 4882 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4883 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4884 { (exit 1); exit 1; }; } 4885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4887 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4888 { (exit 1); exit 1; }; } 4889 4890 fi 4891 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4892 echo "${ECHO_T}$ac_cv_build" >&6; } 4893 case $ac_cv_build in 4894 *-*-*) ;; 4895 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4896 echo "$as_me: error: invalid value of canonical build" >&2;} 4897 { (exit 1); exit 1; }; };; 4898 esac 4899 build=$ac_cv_build 4900 ac_save_IFS=$IFS; IFS='-' 4901 set x $ac_cv_build 4902 shift 4903 build_cpu=$1 4904 build_vendor=$2 4905 shift; shift 4906 # Remember, the first character of IFS is used to create $*, 4907 # except with old shells: 4908 build_os=$* 4909 IFS=$ac_save_IFS 4910 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4911 4912 4913 { echo "$as_me:$LINENO: checking host system type" >&5 4914 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 4915 if test "${ac_cv_host+set}" = set; then 4916 echo $ECHO_N "(cached) $ECHO_C" >&6 4917 else 4918 if test "x$host_alias" = x; then 4919 ac_cv_host=$ac_cv_build 4920 else 4921 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4922 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4923 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4924 { (exit 1); exit 1; }; } 4925 fi 4926 4927 fi 4928 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4929 echo "${ECHO_T}$ac_cv_host" >&6; } 4930 case $ac_cv_host in 4931 *-*-*) ;; 4932 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4933 echo "$as_me: error: invalid value of canonical host" >&2;} 4934 { (exit 1); exit 1; }; };; 4935 esac 4936 host=$ac_cv_host 4937 ac_save_IFS=$IFS; IFS='-' 4938 set x $ac_cv_host 4939 shift 4940 host_cpu=$1 4941 host_vendor=$2 4942 shift; shift 4943 # Remember, the first character of IFS is used to create $*, 4944 # except with old shells: 4945 host_os=$* 4946 IFS=$ac_save_IFS 4947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4948 4949 4950 4951 4952 4953 4954 if test -n "$ac_tool_prefix"; then 4955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4959 if test "${ac_cv_prog_RANLIB+set}" = set; then 4960 echo $ECHO_N "(cached) $ECHO_C" >&6 4961 else 4962 if test -n "$RANLIB"; then 4963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4964 else 4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966 for as_dir in $PATH 4967 do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976 done 4977 done 4978 IFS=$as_save_IFS 4979 4980 fi 4981 fi 4982 RANLIB=$ac_cv_prog_RANLIB 4983 if test -n "$RANLIB"; then 4984 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4985 echo "${ECHO_T}$RANLIB" >&6; } 4986 else 4987 { echo "$as_me:$LINENO: result: no" >&5 4988 echo "${ECHO_T}no" >&6; } 4989 fi 4990 4991 4992 fi 4993 if test -z "$ac_cv_prog_RANLIB"; then 4994 ac_ct_RANLIB=$RANLIB 4995 # Extract the first word of "ranlib", so it can be a program name with args. 4996 set dummy ranlib; ac_word=$2 4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5000 echo $ECHO_N "(cached) $ECHO_C" >&6 5001 else 5002 if test -n "$ac_ct_RANLIB"; then 5003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5004 else 5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006 for as_dir in $PATH 5007 do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5012 ac_cv_prog_ac_ct_RANLIB="ranlib" 5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016 done 5017 done 5018 IFS=$as_save_IFS 5019 5020 fi 5021 fi 5022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5023 if test -n "$ac_ct_RANLIB"; then 5024 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5025 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5026 else 5027 { echo "$as_me:$LINENO: result: no" >&5 5028 echo "${ECHO_T}no" >&6; } 5029 fi 5030 5031 if test "x$ac_ct_RANLIB" = x; then 5032 RANLIB=":" 5033 else 5034 case $cross_compiling:$ac_tool_warned in 5035 yes:) 5036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5037 whose name does not start with the host triplet. If you think this 5038 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 5039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5040 whose name does not start with the host triplet. If you think this 5041 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 5042 ac_tool_warned=yes ;; 5043 esac 5044 RANLIB=$ac_ct_RANLIB 5045 fi 5046 else 5047 RANLIB="$ac_cv_prog_RANLIB" 5048 fi 5049 5050 5051 cat >>confdefs.h <<\_ACEOF 5052 #define _GNU_SOURCE 1 5053 _ACEOF 5054 5055 5056 5057 { echo "$as_me:$LINENO: checking for AIX" >&5 5058 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 5059 cat >conftest.$ac_ext <<_ACEOF 5060 /* confdefs.h. */ 5061 _ACEOF 5062 cat confdefs.h >>conftest.$ac_ext 5063 cat >>conftest.$ac_ext <<_ACEOF 5064 /* end confdefs.h. */ 5065 #ifdef _AIX 5066 yes 5067 #endif 5068 5069 _ACEOF 5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5071 $EGREP "yes" >/dev/null 2>&1; then 5072 { echo "$as_me:$LINENO: result: yes" >&5 5073 echo "${ECHO_T}yes" >&6; } 5074 cat >>confdefs.h <<\_ACEOF 5075 #define _ALL_SOURCE 1 5076 _ACEOF 5077 5078 else 5079 { echo "$as_me:$LINENO: result: no" >&5 5080 echo "${ECHO_T}no" >&6; } 5081 fi 5082 rm -f conftest* 5083 5084 5085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5087 if test "${ac_cv_header_stdc+set}" = set; then 5088 echo $ECHO_N "(cached) $ECHO_C" >&6 5089 else 5090 cat >conftest.$ac_ext <<_ACEOF 5091 /* confdefs.h. */ 5092 _ACEOF 5093 cat confdefs.h >>conftest.$ac_ext 5094 cat >>conftest.$ac_ext <<_ACEOF 5095 /* end confdefs.h. */ 5096 #include <stdlib.h> 5097 #include <stdarg.h> 5098 #include <string.h> 5099 #include <float.h> 5100 5101 int 5102 main () 5103 { 5104 5105 ; 5106 return 0; 5107 } 5108 _ACEOF 5109 rm -f conftest.$ac_objext 5110 if { (ac_try="$ac_compile" 5111 case "(($ac_try" in 5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5113 *) ac_try_echo=$ac_try;; 5114 esac 5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5116 (eval "$ac_compile") 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } && { 5123 test -z "$ac_c_werror_flag" || 5124 test ! -s conftest.err 5125 } && test -s conftest.$ac_objext; then 5126 ac_cv_header_stdc=yes 5127 else 5128 echo "$as_me: failed program was:" >&5 5129 sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 ac_cv_header_stdc=no 5132 fi 5133 5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5135 5136 if test $ac_cv_header_stdc = yes; then 5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5138 cat >conftest.$ac_ext <<_ACEOF 5139 /* confdefs.h. */ 5140 _ACEOF 5141 cat confdefs.h >>conftest.$ac_ext 5142 cat >>conftest.$ac_ext <<_ACEOF 5143 /* end confdefs.h. */ 5144 #include <string.h> 5145 5146 _ACEOF 5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5148 $EGREP "memchr" >/dev/null 2>&1; then 5149 : 5150 else 5151 ac_cv_header_stdc=no 5152 fi 5153 rm -f conftest* 5154 5155 fi 5156 5157 if test $ac_cv_header_stdc = yes; then 5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5159 cat >conftest.$ac_ext <<_ACEOF 5160 /* confdefs.h. */ 5161 _ACEOF 5162 cat confdefs.h >>conftest.$ac_ext 5163 cat >>conftest.$ac_ext <<_ACEOF 5164 /* end confdefs.h. */ 5165 #include <stdlib.h> 5166 5167 _ACEOF 5168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5169 $EGREP "free" >/dev/null 2>&1; then 5170 : 5171 else 5172 ac_cv_header_stdc=no 5173 fi 5174 rm -f conftest* 5175 5176 fi 5177 5178 if test $ac_cv_header_stdc = yes; then 5179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5180 if test "$cross_compiling" = yes; then 5181 : 5182 else 5183 cat >conftest.$ac_ext <<_ACEOF 5184 /* confdefs.h. */ 5185 _ACEOF 5186 cat confdefs.h >>conftest.$ac_ext 5187 cat >>conftest.$ac_ext <<_ACEOF 5188 /* end confdefs.h. */ 5189 #include <ctype.h> 5190 #include <stdlib.h> 5191 #if ((' ' & 0x0FF) == 0x020) 5192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5194 #else 5195 # define ISLOWER(c) \ 5196 (('a' <= (c) && (c) <= 'i') \ 5197 || ('j' <= (c) && (c) <= 'r') \ 5198 || ('s' <= (c) && (c) <= 'z')) 5199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5200 #endif 5201 5202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5203 int 5204 main () 5205 { 5206 int i; 5207 for (i = 0; i < 256; i++) 5208 if (XOR (islower (i), ISLOWER (i)) 5209 || toupper (i) != TOUPPER (i)) 5210 return 2; 5211 return 0; 5212 } 5213 _ACEOF 5214 rm -f conftest$ac_exeext 5215 if { (ac_try="$ac_link" 5216 case "(($ac_try" in 5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5218 *) ac_try_echo=$ac_try;; 5219 esac 5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5221 (eval "$ac_link") 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5225 { (case "(($ac_try" in 5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5227 *) ac_try_echo=$ac_try;; 5228 esac 5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5230 (eval "$ac_try") 2>&5 5231 ac_status=$? 5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 (exit $ac_status); }; }; then 5234 : 5235 else 5236 echo "$as_me: program exited with status $ac_status" >&5 5237 echo "$as_me: failed program was:" >&5 5238 sed 's/^/| /' conftest.$ac_ext >&5 5239 5240 ( exit $ac_status ) 5241 ac_cv_header_stdc=no 5242 fi 5243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5244 fi 5245 5246 5247 fi 5248 fi 5249 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5250 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5251 if test $ac_cv_header_stdc = yes; then 5252 5253 cat >>confdefs.h <<\_ACEOF 5254 #define STDC_HEADERS 1 5255 _ACEOF 5256 5257 fi 5258 5259 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5270 inttypes.h stdint.h unistd.h 5271 do 5272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5273 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277 else 5278 cat >conftest.$ac_ext <<_ACEOF 5279 /* confdefs.h. */ 5280 _ACEOF 5281 cat confdefs.h >>conftest.$ac_ext 5282 cat >>conftest.$ac_ext <<_ACEOF 5283 /* end confdefs.h. */ 5284 $ac_includes_default 5285 5286 #include <$ac_header> 5287 _ACEOF 5288 rm -f conftest.$ac_objext 5289 if { (ac_try="$ac_compile" 5290 case "(($ac_try" in 5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5292 *) ac_try_echo=$ac_try;; 5293 esac 5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5295 (eval "$ac_compile") 2>conftest.er1 5296 ac_status=$? 5297 grep -v '^ *+' conftest.er1 >conftest.err 5298 rm -f conftest.er1 5299 cat conftest.err >&5 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); } && { 5302 test -z "$ac_c_werror_flag" || 5303 test ! -s conftest.err 5304 } && test -s conftest.$ac_objext; then 5305 eval "$as_ac_Header=yes" 5306 else 5307 echo "$as_me: failed program was:" >&5 5308 sed 's/^/| /' conftest.$ac_ext >&5 5309 5310 eval "$as_ac_Header=no" 5311 fi 5312 5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5314 fi 5315 ac_res=`eval echo '${'$as_ac_Header'}'` 5316 { echo "$as_me:$LINENO: result: $ac_res" >&5 5317 echo "${ECHO_T}$ac_res" >&6; } 5318 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5319 cat >>confdefs.h <<_ACEOF 5320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5321 _ACEOF 5322 5323 fi 5324 5325 done 5326 5327 5328 if test "${ac_cv_header_minix_config_h+set}" = set; then 5329 { echo "$as_me:$LINENO: checking for minix/config.h" >&5 5330 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 5331 if test "${ac_cv_header_minix_config_h+set}" = set; then 5332 echo $ECHO_N "(cached) $ECHO_C" >&6 5333 fi 5334 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 5335 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 5336 else 5337 # Is the header compilable? 5338 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 5339 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } 5340 cat >conftest.$ac_ext <<_ACEOF 5341 /* confdefs.h. */ 5342 _ACEOF 5343 cat confdefs.h >>conftest.$ac_ext 5344 cat >>conftest.$ac_ext <<_ACEOF 5345 /* end confdefs.h. */ 5346 $ac_includes_default 5347 #include <minix/config.h> 5348 _ACEOF 5349 rm -f conftest.$ac_objext 5350 if { (ac_try="$ac_compile" 5351 case "(($ac_try" in 5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5353 *) ac_try_echo=$ac_try;; 5354 esac 5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5356 (eval "$ac_compile") 2>conftest.er1 5357 ac_status=$? 5358 grep -v '^ *+' conftest.er1 >conftest.err 5359 rm -f conftest.er1 5360 cat conftest.err >&5 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); } && { 5363 test -z "$ac_c_werror_flag" || 5364 test ! -s conftest.err 5365 } && test -s conftest.$ac_objext; then 5366 ac_header_compiler=yes 5367 else 5368 echo "$as_me: failed program was:" >&5 5369 sed 's/^/| /' conftest.$ac_ext >&5 5370 5371 ac_header_compiler=no 5372 fi 5373 5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5376 echo "${ECHO_T}$ac_header_compiler" >&6; } 5377 5378 # Is the header present? 5379 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 5380 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } 5381 cat >conftest.$ac_ext <<_ACEOF 5382 /* confdefs.h. */ 5383 _ACEOF 5384 cat confdefs.h >>conftest.$ac_ext 5385 cat >>conftest.$ac_ext <<_ACEOF 5386 /* end confdefs.h. */ 5387 #include <minix/config.h> 5388 _ACEOF 5389 if { (ac_try="$ac_cpp conftest.$ac_ext" 5390 case "(($ac_try" in 5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5392 *) ac_try_echo=$ac_try;; 5393 esac 5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5396 ac_status=$? 5397 grep -v '^ *+' conftest.er1 >conftest.err 5398 rm -f conftest.er1 5399 cat conftest.err >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } >/dev/null && { 5402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5403 test ! -s conftest.err 5404 }; then 5405 ac_header_preproc=yes 5406 else 5407 echo "$as_me: failed program was:" >&5 5408 sed 's/^/| /' conftest.$ac_ext >&5 5409 5410 ac_header_preproc=no 5411 fi 5412 5413 rm -f conftest.err conftest.$ac_ext 5414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5415 echo "${ECHO_T}$ac_header_preproc" >&6; } 5416 5417 # So? What about this header? 5418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5419 yes:no: ) 5420 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 5421 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5422 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 5423 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 5424 ac_header_preproc=yes 5425 ;; 5426 no:yes:* ) 5427 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 5428 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 5429 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 5430 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 5431 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 5432 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 5433 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 5434 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 5435 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 5436 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 5437 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 5438 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 5439 5440 ;; 5441 esac 5442 { echo "$as_me:$LINENO: checking for minix/config.h" >&5 5443 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 5444 if test "${ac_cv_header_minix_config_h+set}" = set; then 5445 echo $ECHO_N "(cached) $ECHO_C" >&6 5446 else 5447 ac_cv_header_minix_config_h=$ac_header_preproc 5448 fi 5449 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 5450 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 5451 5452 fi 5453 if test $ac_cv_header_minix_config_h = yes; then 5454 MINIX=yes 5455 else 5456 MINIX= 5457 fi 5458 5459 5460 if test "$MINIX" = yes; then 5461 5462 cat >>confdefs.h <<\_ACEOF 5463 #define _POSIX_SOURCE 1 5464 _ACEOF 5465 5466 5467 cat >>confdefs.h <<\_ACEOF 5468 #define _POSIX_1_SOURCE 2 5469 _ACEOF 5470 5471 5472 cat >>confdefs.h <<\_ACEOF 5473 #define _MINIX 1 5474 _ACEOF 5475 5476 fi 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 5489 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } 5490 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 5491 echo $ECHO_N "(cached) $ECHO_C" >&6 5492 else 5493 cat >conftest.$ac_ext <<_ACEOF 5494 /* confdefs.h. */ 5495 _ACEOF 5496 cat confdefs.h >>conftest.$ac_ext 5497 cat >>conftest.$ac_ext <<_ACEOF 5498 /* end confdefs.h. */ 5499 5500 # define __EXTENSIONS__ 1 5501 $ac_includes_default 5502 int 5503 main () 5504 { 5505 5506 ; 5507 return 0; 5508 } 5509 _ACEOF 5510 rm -f conftest.$ac_objext 5511 if { (ac_try="$ac_compile" 5512 case "(($ac_try" in 5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5514 *) ac_try_echo=$ac_try;; 5515 esac 5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5517 (eval "$ac_compile") 2>conftest.er1 5518 ac_status=$? 5519 grep -v '^ *+' conftest.er1 >conftest.err 5520 rm -f conftest.er1 5521 cat conftest.err >&5 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); } && { 5524 test -z "$ac_c_werror_flag" || 5525 test ! -s conftest.err 5526 } && test -s conftest.$ac_objext; then 5527 ac_cv_safe_to_define___extensions__=yes 5528 else 5529 echo "$as_me: failed program was:" >&5 5530 sed 's/^/| /' conftest.$ac_ext >&5 5531 5532 ac_cv_safe_to_define___extensions__=no 5533 fi 5534 5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5536 fi 5537 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 5538 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } 5539 test $ac_cv_safe_to_define___extensions__ = yes && 5540 cat >>confdefs.h <<\_ACEOF 5541 #define __EXTENSIONS__ 1 5542 _ACEOF 5543 5544 cat >>confdefs.h <<\_ACEOF 5545 #define _POSIX_PTHREAD_SEMANTICS 1 5546 _ACEOF 5547 5548 cat >>confdefs.h <<\_ACEOF 5549 #define _TANDEM_SOURCE 1 5550 _ACEOF 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 case "$host_os" in 5563 mingw* | cygwin*) 5564 { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 5565 echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } 5566 if test "${gl_cv_ld_autoimport+set}" = set; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568 else 5569 5570 gl_save_LDFLAGS="$LDFLAGS" 5571 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 5572 cat >conftest.$ac_ext <<_ACEOF 5573 /* confdefs.h. */ 5574 _ACEOF 5575 cat confdefs.h >>conftest.$ac_ext 5576 cat >>conftest.$ac_ext <<_ACEOF 5577 /* end confdefs.h. */ 5578 5579 int 5580 main () 5581 { 5582 5583 ; 5584 return 0; 5585 } 5586 _ACEOF 5587 rm -f conftest.$ac_objext conftest$ac_exeext 5588 if { (ac_try="$ac_link" 5589 case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592 esac 5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5594 (eval "$ac_link") 2>conftest.er1 5595 ac_status=$? 5596 grep -v '^ *+' conftest.er1 >conftest.err 5597 rm -f conftest.er1 5598 cat conftest.err >&5 5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5600 (exit $ac_status); } && { 5601 test -z "$ac_c_werror_flag" || 5602 test ! -s conftest.err 5603 } && test -s conftest$ac_exeext && 5604 $as_test_x conftest$ac_exeext; then 5605 gl_cv_ld_autoimport=yes 5606 else 5607 echo "$as_me: failed program was:" >&5 5608 sed 's/^/| /' conftest.$ac_ext >&5 5609 5610 gl_cv_ld_autoimport=no 5611 fi 5612 5613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5614 conftest$ac_exeext conftest.$ac_ext 5615 LDFLAGS="$gl_save_LDFLAGS" 5616 fi 5617 5618 { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 5619 echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } 5620 if test $gl_cv_ld_autoimport = yes; then 5621 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 5622 fi 5623 ;; 5624 esac 5625 5626 5627 5628 # Check whether --enable-shared was given. 5629 if test "${enable_shared+set}" = set; then 5630 enableval=$enable_shared; p=${PACKAGE-default} 5631 case $enableval in 5632 yes) enable_shared=yes ;; 5633 no) enable_shared=no ;; 5634 *) 5635 enable_shared=no 5636 # Look at the argument we got. We use all the common list separators. 5637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5638 for pkg in $enableval; do 5639 IFS="$lt_save_ifs" 5640 if test "X$pkg" = "X$p"; then 5641 enable_shared=yes 5642 fi 5643 done 5644 IFS="$lt_save_ifs" 5645 ;; 5646 esac 5647 else 5648 enable_shared=yes 5649 fi 5650 5651 5652 # Check whether --enable-static was given. 5653 if test "${enable_static+set}" = set; then 5654 enableval=$enable_static; p=${PACKAGE-default} 5655 case $enableval in 5656 yes) enable_static=yes ;; 5657 no) enable_static=no ;; 5658 *) 5659 enable_static=no 5660 # Look at the argument we got. We use all the common list separators. 5661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5662 for pkg in $enableval; do 5663 IFS="$lt_save_ifs" 5664 if test "X$pkg" = "X$p"; then 5665 enable_static=yes 5666 fi 5667 done 5668 IFS="$lt_save_ifs" 5669 ;; 5670 esac 5671 else 5672 enable_static=yes 5673 fi 5674 5675 5676 # Check whether --enable-fast-install was given. 5677 if test "${enable_fast_install+set}" = set; then 5678 enableval=$enable_fast_install; p=${PACKAGE-default} 5679 case $enableval in 5680 yes) enable_fast_install=yes ;; 5681 no) enable_fast_install=no ;; 5682 *) 5683 enable_fast_install=no 5684 # Look at the argument we got. We use all the common list separators. 5685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5686 for pkg in $enableval; do 5687 IFS="$lt_save_ifs" 5688 if test "X$pkg" = "X$p"; then 5689 enable_fast_install=yes 5690 fi 5691 done 5692 IFS="$lt_save_ifs" 5693 ;; 5694 esac 5695 else 5696 enable_fast_install=yes 5697 fi 5698 5699 5700 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5701 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5702 if test "${lt_cv_path_SED+set}" = set; then 5703 echo $ECHO_N "(cached) $ECHO_C" >&6 5704 else 5705 # Loop through the user's path and test for sed and gsed. 5706 # Then use that list of sed's as ones to test for truncation. 5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708 for as_dir in $PATH 5709 do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for lt_ac_prog in sed gsed; do 5713 for ac_exec_ext in '' $ac_executable_extensions; do 5714 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5715 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5716 fi 5717 done 5718 done 5719 done 5720 lt_ac_max=0 5721 lt_ac_count=0 5722 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 5723 # along with /bin/sed that truncates output. 5724 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5725 test ! -f $lt_ac_sed && continue 5726 cat /dev/null > conftest.in 5727 lt_ac_count=0 5728 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5729 # Check for GNU sed and select it if it is found. 5730 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5731 lt_cv_path_SED=$lt_ac_sed 5732 break 5733 fi 5734 while true; do 5735 cat conftest.in conftest.in >conftest.tmp 5736 mv conftest.tmp conftest.in 5737 cp conftest.in conftest.nl 5738 echo >>conftest.nl 5739 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5740 cmp -s conftest.out conftest.nl || break 5741 # 10000 chars as input seems more than enough 5742 test $lt_ac_count -gt 10 && break 5743 lt_ac_count=`expr $lt_ac_count + 1` 5744 if test $lt_ac_count -gt $lt_ac_max; then 5745 lt_ac_max=$lt_ac_count 5746 lt_cv_path_SED=$lt_ac_sed 5747 fi 5748 done 5749 done 5750 5751 fi 5752 5753 SED=$lt_cv_path_SED 5754 { echo "$as_me:$LINENO: result: $SED" >&5 5755 echo "${ECHO_T}$SED" >&6; } 5756 5757 5758 # Check whether --with-gnu-ld was given. 5759 if test "${with_gnu_ld+set}" = set; then 5760 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5761 else 5762 with_gnu_ld=no 5763 fi 5764 5765 ac_prog=ld 5766 if test "$GCC" = yes; then 5767 # Check if gcc -print-prog-name=ld gives a path. 5768 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5769 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5770 case $host in 5771 *-*-mingw*) 5772 # gcc leaves a trailing carriage return which upsets mingw 5773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5774 *) 5775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5776 esac 5777 case $ac_prog in 5778 # Accept absolute paths. 5779 [\\/]* | ?:[\\/]*) 5780 re_direlt='/[^/][^/]*/\.\./' 5781 # Canonicalize the pathname of ld 5782 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5784 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5785 done 5786 test -z "$LD" && LD="$ac_prog" 5787 ;; 5788 "") 5789 # If it fails, then pretend we aren't using GCC. 5790 ac_prog=ld 5791 ;; 5792 *) 5793 # If it is relative, then search for the first ld in PATH. 5794 with_gnu_ld=unknown 5795 ;; 5796 esac 5797 elif test "$with_gnu_ld" = yes; then 5798 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5799 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5800 else 5801 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5802 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5803 fi 5804 if test "${lt_cv_path_LD+set}" = set; then 5805 echo $ECHO_N "(cached) $ECHO_C" >&6 5806 else 5807 if test -z "$LD"; then 5808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5809 for ac_dir in $PATH; do 5810 IFS="$lt_save_ifs" 5811 test -z "$ac_dir" && ac_dir=. 5812 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5813 lt_cv_path_LD="$ac_dir/$ac_prog" 5814 # Check to see if the program is GNU ld. I'd rather use --version, 5815 # but apparently some variants of GNU ld only accept -v. 5816 # Break only if it was the GNU/non-GNU ld that we prefer. 5817 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5818 *GNU* | *'with BFD'*) 5819 test "$with_gnu_ld" != no && break 5820 ;; 5821 *) 5822 test "$with_gnu_ld" != yes && break 5823 ;; 5824 esac 5825 fi 5826 done 5827 IFS="$lt_save_ifs" 5828 else 5829 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5830 fi 5831 fi 5832 5833 LD="$lt_cv_path_LD" 5834 if test -n "$LD"; then 5835 { echo "$as_me:$LINENO: result: $LD" >&5 5836 echo "${ECHO_T}$LD" >&6; } 5837 else 5838 { echo "$as_me:$LINENO: result: no" >&5 5839 echo "${ECHO_T}no" >&6; } 5840 fi 5841 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5842 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5843 { (exit 1); exit 1; }; } 5844 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5845 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5846 if test "${lt_cv_prog_gnu_ld+set}" = set; then 5847 echo $ECHO_N "(cached) $ECHO_C" >&6 5848 else 5849 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5850 case `$LD -v 2>&1 </dev/null` in 5851 *GNU* | *'with BFD'*) 5852 lt_cv_prog_gnu_ld=yes 5853 ;; 5854 *) 5855 lt_cv_prog_gnu_ld=no 5856 ;; 5857 esac 5858 fi 5859 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5860 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5861 with_gnu_ld=$lt_cv_prog_gnu_ld 5862 5863 5864 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5865 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5866 if test "${lt_cv_ld_reload_flag+set}" = set; then 5867 echo $ECHO_N "(cached) $ECHO_C" >&6 5868 else 5869 lt_cv_ld_reload_flag='-r' 5870 fi 5871 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5872 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5873 reload_flag=$lt_cv_ld_reload_flag 5874 case $reload_flag in 5875 "" | " "*) ;; 5876 *) reload_flag=" $reload_flag" ;; 5877 esac 5878 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5879 case $host_os in 5880 darwin*) 5881 if test "$GCC" = yes; then 5882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5883 else 5884 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5885 fi 5886 ;; 5887 esac 5888 5889 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5890 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5891 if test "${lt_cv_path_NM+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893 else 5894 if test -n "$NM"; then 5895 # Let the user override the test. 5896 lt_cv_path_NM="$NM" 5897 else 5898 lt_nm_to_check="${ac_tool_prefix}nm" 5899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5900 lt_nm_to_check="$lt_nm_to_check nm" 5901 fi 5902 for lt_tmp_nm in $lt_nm_to_check; do 5903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5905 IFS="$lt_save_ifs" 5906 test -z "$ac_dir" && ac_dir=. 5907 tmp_nm="$ac_dir/$lt_tmp_nm" 5908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5909 # Check to see if the nm accepts a BSD-compat flag. 5910 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5911 # nm: unknown option "B" ignored 5912 # Tru64's nm complains that /dev/null is an invalid object file 5913 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5914 */dev/null* | *'Invalid file or object type'*) 5915 lt_cv_path_NM="$tmp_nm -B" 5916 break 5917 ;; 5918 *) 5919 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5920 */dev/null*) 5921 lt_cv_path_NM="$tmp_nm -p" 5922 break 5923 ;; 5924 *) 5925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5926 continue # so that we can try to find one that supports BSD flags 5927 ;; 5928 esac 5929 ;; 5930 esac 5931 fi 5932 done 5933 IFS="$lt_save_ifs" 5934 done 5935 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5936 fi 5937 fi 5938 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5939 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5940 NM="$lt_cv_path_NM" 5941 5942 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 5943 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5944 LN_S=$as_ln_s 5945 if test "$LN_S" = "ln -s"; then 5946 { echo "$as_me:$LINENO: result: yes" >&5 5947 echo "${ECHO_T}yes" >&6; } 5948 else 5949 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5950 echo "${ECHO_T}no, using $LN_S" >&6; } 5951 fi 5952 5953 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5954 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 5955 if test "${lt_cv_deplibs_check_method+set}" = set; then 5956 echo $ECHO_N "(cached) $ECHO_C" >&6 5957 else 5958 lt_cv_file_magic_cmd='$MAGIC_CMD' 5959 lt_cv_file_magic_test_file= 5960 lt_cv_deplibs_check_method='unknown' 5961 # Need to set the preceding variable on all platforms that support 5962 # interlibrary dependencies. 5963 # 'none' -- dependencies not supported. 5964 # `unknown' -- same as none, but documents that we really don't know. 5965 # 'pass_all' -- all dependencies passed with no checks. 5966 # 'test_compile' -- check by making test program. 5967 # 'file_magic [[regex]]' -- check by looking for files in library path 5968 # which responds to the $file_magic_cmd with a given extended regex. 5969 # If you have `file' or equivalent on your system and you're not sure 5970 # whether `pass_all' will *always* work, you probably want this one. 5971 5972 case $host_os in 5973 aix4* | aix5*) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 5977 beos*) 5978 lt_cv_deplibs_check_method=pass_all 5979 ;; 5980 5981 bsdi[45]*) 5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5983 lt_cv_file_magic_cmd='/usr/bin/file -L' 5984 lt_cv_file_magic_test_file=/shlib/libc.so 5985 ;; 5986 5987 cygwin*) 5988 # func_win32_libid is a shell function defined in ltmain.sh 5989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5990 lt_cv_file_magic_cmd='func_win32_libid' 5991 ;; 5992 5993 mingw* | pw32*) 5994 # Base MSYS/MinGW do not provide the 'file' command needed by 5995 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5996 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5997 lt_cv_file_magic_cmd='$OBJDUMP -f' 5998 ;; 5999 6000 darwin* | rhapsody*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004 freebsd* | kfreebsd*-gnu | dragonfly*) 6005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6006 case $host_cpu in 6007 i*86 ) 6008 # Not sure whether the presence of OpenBSD here was a mistake. 6009 # Let's accept both of them until this is cleared up. 6010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6011 lt_cv_file_magic_cmd=/usr/bin/file 6012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6013 ;; 6014 esac 6015 else 6016 lt_cv_deplibs_check_method=pass_all 6017 fi 6018 ;; 6019 6020 gnu*) 6021 lt_cv_deplibs_check_method=pass_all 6022 ;; 6023 6024 hpux10.20* | hpux11*) 6025 lt_cv_file_magic_cmd=/usr/bin/file 6026 case $host_cpu in 6027 ia64*) 6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6030 ;; 6031 hppa*64*) 6032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6034 ;; 6035 *) 6036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6037 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6038 ;; 6039 esac 6040 ;; 6041 6042 interix3*) 6043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6045 ;; 6046 6047 irix5* | irix6* | nonstopux*) 6048 case $LD in 6049 *-32|*"-32 ") libmagic=32-bit;; 6050 *-n32|*"-n32 ") libmagic=N32;; 6051 *-64|*"-64 ") libmagic=64-bit;; 6052 *) libmagic=never-match;; 6053 esac 6054 lt_cv_deplibs_check_method=pass_all 6055 ;; 6056 6057 # This must be Linux ELF. 6058 linux*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062 netbsd*) 6063 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6065 else 6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6067 fi 6068 ;; 6069 6070 newos6*) 6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6072 lt_cv_file_magic_cmd=/usr/bin/file 6073 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6074 ;; 6075 6076 nto-qnx*) 6077 lt_cv_deplibs_check_method=unknown 6078 ;; 6079 6080 openbsd*) 6081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6083 else 6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6085 fi 6086 ;; 6087 6088 osf3* | osf4* | osf5*) 6089 lt_cv_deplibs_check_method=pass_all 6090 ;; 6091 6092 solaris*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096 sysv4 | sysv4.3*) 6097 case $host_vendor in 6098 motorola) 6099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6101 ;; 6102 ncr) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 sequent) 6106 lt_cv_file_magic_cmd='/bin/file' 6107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6108 ;; 6109 sni) 6110 lt_cv_file_magic_cmd='/bin/file' 6111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6112 lt_cv_file_magic_test_file=/lib/libc.so 6113 ;; 6114 siemens) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 pc) 6118 lt_cv_deplibs_check_method=pass_all 6119 ;; 6120 esac 6121 ;; 6122 6123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 esac 6127 6128 fi 6129 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 6131 file_magic_cmd=$lt_cv_file_magic_cmd 6132 deplibs_check_method=$lt_cv_deplibs_check_method 6133 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6134 6135 6136 # If no C compiler was specified, use CC. 6137 LTCC=${LTCC-"$CC"} 6138 6139 # If no C compiler flags were specified, use CFLAGS. 6140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6141 6142 # Allow CC to be a program name with arguments. 6143 compiler=$CC 6144 6145 # Check whether --enable-libtool-lock was given. 6146 if test "${enable_libtool_lock+set}" = set; then 6147 enableval=$enable_libtool_lock; 6148 fi 6149 6150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6151 6152 # Some flags need to be propagated to the compiler or linker for good 6153 # libtool support. 6154 case $host in 6155 ia64-*-hpux*) 6156 # Find out which ABI we are using. 6157 echo 'int i;' > conftest.$ac_ext 6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6159 (eval $ac_compile) 2>&5 6160 ac_status=$? 6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6162 (exit $ac_status); }; then 6163 case `/usr/bin/file conftest.$ac_objext` in 6164 *ELF-32*) 6165 HPUX_IA64_MODE="32" 6166 ;; 6167 *ELF-64*) 6168 HPUX_IA64_MODE="64" 6169 ;; 6170 esac 6171 fi 6172 rm -rf conftest* 6173 ;; 6174 *-*-irix6*) 6175 # Find out which ABI we are using. 6176 echo '#line 6176 "configure"' > conftest.$ac_ext 6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6178 (eval $ac_compile) 2>&5 6179 ac_status=$? 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); }; then 6182 if test "$lt_cv_prog_gnu_ld" = yes; then 6183 case `/usr/bin/file conftest.$ac_objext` in 6184 *32-bit*) 6185 LD="${LD-ld} -melf32bsmip" 6186 ;; 6187 *N32*) 6188 LD="${LD-ld} -melf32bmipn32" 6189 ;; 6190 *64-bit*) 6191 LD="${LD-ld} -melf64bmip" 6192 ;; 6193 esac 6194 else 6195 case `/usr/bin/file conftest.$ac_objext` in 6196 *32-bit*) 6197 LD="${LD-ld} -32" 6198 ;; 6199 *N32*) 6200 LD="${LD-ld} -n32" 6201 ;; 6202 *64-bit*) 6203 LD="${LD-ld} -64" 6204 ;; 6205 esac 6206 fi 6207 fi 6208 rm -rf conftest* 6209 ;; 6210 6211 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6212 # Find out which ABI we are using. 6213 echo 'int i;' > conftest.$ac_ext 6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6215 (eval $ac_compile) 2>&5 6216 ac_status=$? 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218 (exit $ac_status); }; then 6219 case `/usr/bin/file conftest.o` in 6220 *32-bit*) 6221 case $host in 6222 x86_64-*linux*) 6223 LD="${LD-ld} -m elf_i386" 6224 ;; 6225 ppc64-*linux*|powerpc64-*linux*) 6226 LD="${LD-ld} -m elf32ppclinux" 6227 ;; 6228 s390x-*linux*) 6229 LD="${LD-ld} -m elf_s390" 6230 ;; 6231 sparc64-*linux*) 6232 LD="${LD-ld} -m elf32_sparc" 6233 ;; 6234 esac 6235 ;; 6236 *64-bit*) 6237 case $host in 6238 x86_64-*linux*) 6239 LD="${LD-ld} -m elf_x86_64" 6240 ;; 6241 ppc*-*linux*|powerpc*-*linux*) 6242 LD="${LD-ld} -m elf64ppc" 6243 ;; 6244 s390*-*linux*) 6245 LD="${LD-ld} -m elf64_s390" 6246 ;; 6247 sparc*-*linux*) 6248 LD="${LD-ld} -m elf64_sparc" 6249 ;; 6250 esac 6251 ;; 6252 esac 6253 fi 6254 rm -rf conftest* 6255 ;; 6256 6257 *-*-sco3.2v5*) 6258 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6259 SAVE_CFLAGS="$CFLAGS" 6260 CFLAGS="$CFLAGS -belf" 6261 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6262 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 6263 if test "${lt_cv_cc_needs_belf+set}" = set; then 6264 echo $ECHO_N "(cached) $ECHO_C" >&6 6265 else 6266 ac_ext=c 6267 ac_cpp='$CPP $CPPFLAGS' 6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6271 6272 cat >conftest.$ac_ext <<_ACEOF 6273 /* confdefs.h. */ 6274 _ACEOF 6275 cat confdefs.h >>conftest.$ac_ext 6276 cat >>conftest.$ac_ext <<_ACEOF 6277 /* end confdefs.h. */ 6278 6279 int 6280 main () 6281 { 6282 6283 ; 6284 return 0; 6285 } 6286 _ACEOF 6287 rm -f conftest.$ac_objext conftest$ac_exeext 6288 if { (ac_try="$ac_link" 6289 case "(($ac_try" in 6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6291 *) ac_try_echo=$ac_try;; 6292 esac 6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6294 (eval "$ac_link") 2>conftest.er1 6295 ac_status=$? 6296 grep -v '^ *+' conftest.er1 >conftest.err 6297 rm -f conftest.er1 6298 cat conftest.err >&5 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } && { 6301 test -z "$ac_c_werror_flag" || 6302 test ! -s conftest.err 6303 } && test -s conftest$ac_exeext && 6304 $as_test_x conftest$ac_exeext; then 6305 lt_cv_cc_needs_belf=yes 6306 else 6307 echo "$as_me: failed program was:" >&5 6308 sed 's/^/| /' conftest.$ac_ext >&5 6309 6310 lt_cv_cc_needs_belf=no 6311 fi 6312 6313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6314 conftest$ac_exeext conftest.$ac_ext 6315 ac_ext=c 6316 ac_cpp='$CPP $CPPFLAGS' 6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6320 6321 fi 6322 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6323 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 6324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6326 CFLAGS="$SAVE_CFLAGS" 6327 fi 6328 ;; 6329 sparc*-*solaris*) 6330 # Find out which ABI we are using. 6331 echo 'int i;' > conftest.$ac_ext 6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6333 (eval $ac_compile) 2>&5 6334 ac_status=$? 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); }; then 6337 case `/usr/bin/file conftest.o` in 6338 *64-bit*) 6339 case $lt_cv_prog_gnu_ld in 6340 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6341 *) LD="${LD-ld} -64" ;; 6342 esac 6343 ;; 6344 esac 6345 fi 6346 rm -rf conftest* 6347 ;; 6348 6349 *-*-cygwin* | *-*-mingw* | *-*-pw32*) 6350 if test -n "$ac_tool_prefix"; then 6351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6352 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6355 if test "${ac_cv_prog_DLLTOOL+set}" = set; then 6356 echo $ECHO_N "(cached) $ECHO_C" >&6 6357 else 6358 if test -n "$DLLTOOL"; then 6359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6360 else 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372 done 6373 done 6374 IFS=$as_save_IFS 6375 6376 fi 6377 fi 6378 DLLTOOL=$ac_cv_prog_DLLTOOL 6379 if test -n "$DLLTOOL"; then 6380 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 6381 echo "${ECHO_T}$DLLTOOL" >&6; } 6382 else 6383 { echo "$as_me:$LINENO: result: no" >&5 6384 echo "${ECHO_T}no" >&6; } 6385 fi 6386 6387 6388 fi 6389 if test -z "$ac_cv_prog_DLLTOOL"; then 6390 ac_ct_DLLTOOL=$DLLTOOL 6391 # Extract the first word of "dlltool", so it can be a program name with args. 6392 set dummy dlltool; ac_word=$2 6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6395 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 6396 echo $ECHO_N "(cached) $ECHO_C" >&6 6397 else 6398 if test -n "$ac_ct_DLLTOOL"; then 6399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6400 else 6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402 for as_dir in $PATH 6403 do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6408 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412 done 6413 done 6414 IFS=$as_save_IFS 6415 6416 fi 6417 fi 6418 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6419 if test -n "$ac_ct_DLLTOOL"; then 6420 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 6421 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 6422 else 6423 { echo "$as_me:$LINENO: result: no" >&5 6424 echo "${ECHO_T}no" >&6; } 6425 fi 6426 6427 if test "x$ac_ct_DLLTOOL" = x; then 6428 DLLTOOL="false" 6429 else 6430 case $cross_compiling:$ac_tool_warned in 6431 yes:) 6432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6433 whose name does not start with the host triplet. If you think this 6434 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6436 whose name does not start with the host triplet. If you think this 6437 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6438 ac_tool_warned=yes ;; 6439 esac 6440 DLLTOOL=$ac_ct_DLLTOOL 6441 fi 6442 else 6443 DLLTOOL="$ac_cv_prog_DLLTOOL" 6444 fi 6445 6446 if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6448 set dummy ${ac_tool_prefix}as; ac_word=$2 6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6451 if test "${ac_cv_prog_AS+set}" = set; then 6452 echo $ECHO_N "(cached) $ECHO_C" >&6 6453 else 6454 if test -n "$AS"; then 6455 ac_cv_prog_AS="$AS" # Let the user override the test. 6456 else 6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458 for as_dir in $PATH 6459 do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6464 ac_cv_prog_AS="${ac_tool_prefix}as" 6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468 done 6469 done 6470 IFS=$as_save_IFS 6471 6472 fi 6473 fi 6474 AS=$ac_cv_prog_AS 6475 if test -n "$AS"; then 6476 { echo "$as_me:$LINENO: result: $AS" >&5 6477 echo "${ECHO_T}$AS" >&6; } 6478 else 6479 { echo "$as_me:$LINENO: result: no" >&5 6480 echo "${ECHO_T}no" >&6; } 6481 fi 6482 6483 6484 fi 6485 if test -z "$ac_cv_prog_AS"; then 6486 ac_ct_AS=$AS 6487 # Extract the first word of "as", so it can be a program name with args. 6488 set dummy as; ac_word=$2 6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6491 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 6492 echo $ECHO_N "(cached) $ECHO_C" >&6 6493 else 6494 if test -n "$ac_ct_AS"; then 6495 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6496 else 6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498 for as_dir in $PATH 6499 do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_exec_ext in '' $ac_executable_extensions; do 6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6504 ac_cv_prog_ac_ct_AS="as" 6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6506 break 2 6507 fi 6508 done 6509 done 6510 IFS=$as_save_IFS 6511 6512 fi 6513 fi 6514 ac_ct_AS=$ac_cv_prog_ac_ct_AS 6515 if test -n "$ac_ct_AS"; then 6516 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 6517 echo "${ECHO_T}$ac_ct_AS" >&6; } 6518 else 6519 { echo "$as_me:$LINENO: result: no" >&5 6520 echo "${ECHO_T}no" >&6; } 6521 fi 6522 6523 if test "x$ac_ct_AS" = x; then 6524 AS="false" 6525 else 6526 case $cross_compiling:$ac_tool_warned in 6527 yes:) 6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6529 whose name does not start with the host triplet. If you think this 6530 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6532 whose name does not start with the host triplet. If you think this 6533 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6534 ac_tool_warned=yes ;; 6535 esac 6536 AS=$ac_ct_AS 6537 fi 6538 else 6539 AS="$ac_cv_prog_AS" 6540 fi 6541 6542 if test -n "$ac_tool_prefix"; then 6543 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6544 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6547 if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549 else 6550 if test -n "$OBJDUMP"; then 6551 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6552 else 6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554 for as_dir in $PATH 6555 do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6560 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564 done 6565 done 6566 IFS=$as_save_IFS 6567 6568 fi 6569 fi 6570 OBJDUMP=$ac_cv_prog_OBJDUMP 6571 if test -n "$OBJDUMP"; then 6572 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6573 echo "${ECHO_T}$OBJDUMP" >&6; } 6574 else 6575 { echo "$as_me:$LINENO: result: no" >&5 6576 echo "${ECHO_T}no" >&6; } 6577 fi 6578 6579 6580 fi 6581 if test -z "$ac_cv_prog_OBJDUMP"; then 6582 ac_ct_OBJDUMP=$OBJDUMP 6583 # Extract the first word of "objdump", so it can be a program name with args. 6584 set dummy objdump; ac_word=$2 6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6587 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589 else 6590 if test -n "$ac_ct_OBJDUMP"; then 6591 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6592 else 6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594 for as_dir in $PATH 6595 do 6596 IFS=$as_save_IFS 6597 test -z "$as_dir" && as_dir=. 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6600 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604 done 6605 done 6606 IFS=$as_save_IFS 6607 6608 fi 6609 fi 6610 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6611 if test -n "$ac_ct_OBJDUMP"; then 6612 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6613 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 6614 else 6615 { echo "$as_me:$LINENO: result: no" >&5 6616 echo "${ECHO_T}no" >&6; } 6617 fi 6618 6619 if test "x$ac_ct_OBJDUMP" = x; then 6620 OBJDUMP="false" 6621 else 6622 case $cross_compiling:$ac_tool_warned in 6623 yes:) 6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6625 whose name does not start with the host triplet. If you think this 6626 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6628 whose name does not start with the host triplet. If you think this 6629 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6630 ac_tool_warned=yes ;; 6631 esac 6632 OBJDUMP=$ac_ct_OBJDUMP 6633 fi 6634 else 6635 OBJDUMP="$ac_cv_prog_OBJDUMP" 6636 fi 6637 6638 ;; 6639 6640 esac 6641 6642 need_locks="$enable_libtool_lock" 6643 6644 6645 6646 for ac_header in dlfcn.h 6647 do 6648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6650 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6653 echo $ECHO_N "(cached) $ECHO_C" >&6 6654 fi 6655 ac_res=`eval echo '${'$as_ac_Header'}'` 6656 { echo "$as_me:$LINENO: result: $ac_res" >&5 6657 echo "${ECHO_T}$ac_res" >&6; } 6658 else 6659 # Is the header compilable? 6660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 6661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6662 cat >conftest.$ac_ext <<_ACEOF 6663 /* confdefs.h. */ 6664 _ACEOF 6665 cat confdefs.h >>conftest.$ac_ext 6666 cat >>conftest.$ac_ext <<_ACEOF 6667 /* end confdefs.h. */ 6668 $ac_includes_default 6669 #include <$ac_header> 6670 _ACEOF 6671 rm -f conftest.$ac_objext 6672 if { (ac_try="$ac_compile" 6673 case "(($ac_try" in 6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6675 *) ac_try_echo=$ac_try;; 6676 esac 6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6678 (eval "$ac_compile") 2>conftest.er1 6679 ac_status=$? 6680 grep -v '^ *+' conftest.er1 >conftest.err 6681 rm -f conftest.er1 6682 cat conftest.err >&5 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6684 (exit $ac_status); } && { 6685 test -z "$ac_c_werror_flag" || 6686 test ! -s conftest.err 6687 } && test -s conftest.$ac_objext; then 6688 ac_header_compiler=yes 6689 else 6690 echo "$as_me: failed program was:" >&5 6691 sed 's/^/| /' conftest.$ac_ext >&5 6692 6693 ac_header_compiler=no 6694 fi 6695 6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6698 echo "${ECHO_T}$ac_header_compiler" >&6; } 6699 6700 # Is the header present? 6701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 6702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6703 cat >conftest.$ac_ext <<_ACEOF 6704 /* confdefs.h. */ 6705 _ACEOF 6706 cat confdefs.h >>conftest.$ac_ext 6707 cat >>conftest.$ac_ext <<_ACEOF 6708 /* end confdefs.h. */ 6709 #include <$ac_header> 6710 _ACEOF 6711 if { (ac_try="$ac_cpp conftest.$ac_ext" 6712 case "(($ac_try" in 6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6714 *) ac_try_echo=$ac_try;; 6715 esac 6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } >/dev/null && { 6724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6725 test ! -s conftest.err 6726 }; then 6727 ac_header_preproc=yes 6728 else 6729 echo "$as_me: failed program was:" >&5 6730 sed 's/^/| /' conftest.$ac_ext >&5 6731 6732 ac_header_preproc=no 6733 fi 6734 6735 rm -f conftest.err conftest.$ac_ext 6736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6737 echo "${ECHO_T}$ac_header_preproc" >&6; } 6738 6739 # So? What about this header? 6740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6741 yes:no: ) 6742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6746 ac_header_preproc=yes 6747 ;; 6748 no:yes:* ) 6749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6761 6762 ;; 6763 esac 6764 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6767 echo $ECHO_N "(cached) $ECHO_C" >&6 6768 else 6769 eval "$as_ac_Header=\$ac_header_preproc" 6770 fi 6771 ac_res=`eval echo '${'$as_ac_Header'}'` 6772 { echo "$as_me:$LINENO: result: $ac_res" >&5 6773 echo "${ECHO_T}$ac_res" >&6; } 6774 6775 fi 6776 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6777 cat >>confdefs.h <<_ACEOF 6778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6779 _ACEOF 6780 6781 fi 6782 6783 done 6784 6785 ac_ext=cpp 6786 ac_cpp='$CXXCPP $CPPFLAGS' 6787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6790 if test -z "$CXX"; then 6791 if test -n "$CCC"; then 6792 CXX=$CCC 6793 else 6794 if test -n "$ac_tool_prefix"; then 6795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6796 do 6797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6801 if test "${ac_cv_prog_CXX+set}" = set; then 6802 echo $ECHO_N "(cached) $ECHO_C" >&6 6803 else 6804 if test -n "$CXX"; then 6805 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6806 else 6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808 for as_dir in $PATH 6809 do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818 done 6819 done 6820 IFS=$as_save_IFS 6821 6822 fi 6823 fi 6824 CXX=$ac_cv_prog_CXX 6825 if test -n "$CXX"; then 6826 { echo "$as_me:$LINENO: result: $CXX" >&5 6827 echo "${ECHO_T}$CXX" >&6; } 6828 else 6829 { echo "$as_me:$LINENO: result: no" >&5 6830 echo "${ECHO_T}no" >&6; } 6831 fi 6832 6833 6834 test -n "$CXX" && break 6835 done 6836 fi 6837 if test -z "$CXX"; then 6838 ac_ct_CXX=$CXX 6839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6840 do 6841 # Extract the first word of "$ac_prog", so it can be a program name with args. 6842 set dummy $ac_prog; ac_word=$2 6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847 else 6848 if test -n "$ac_ct_CXX"; then 6849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6850 else 6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6852 for as_dir in $PATH 6853 do 6854 IFS=$as_save_IFS 6855 test -z "$as_dir" && as_dir=. 6856 for ac_exec_ext in '' $ac_executable_extensions; do 6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6858 ac_cv_prog_ac_ct_CXX="$ac_prog" 6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6860 break 2 6861 fi 6862 done 6863 done 6864 IFS=$as_save_IFS 6865 6866 fi 6867 fi 6868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6869 if test -n "$ac_ct_CXX"; then 6870 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6871 echo "${ECHO_T}$ac_ct_CXX" >&6; } 6872 else 6873 { echo "$as_me:$LINENO: result: no" >&5 6874 echo "${ECHO_T}no" >&6; } 6875 fi 6876 6877 6878 test -n "$ac_ct_CXX" && break 6879 done 6880 6881 if test "x$ac_ct_CXX" = x; then 6882 CXX="g++" 6883 else 6884 case $cross_compiling:$ac_tool_warned in 6885 yes:) 6886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6887 whose name does not start with the host triplet. If you think this 6888 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6890 whose name does not start with the host triplet. If you think this 6891 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6892 ac_tool_warned=yes ;; 6893 esac 6894 CXX=$ac_ct_CXX 6895 fi 6896 fi 6897 6898 fi 6899 fi 6900 # Provide some information about the compiler. 6901 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6902 ac_compiler=`set X $ac_compile; echo $2` 6903 { (ac_try="$ac_compiler --version >&5" 6904 case "(($ac_try" in 6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6906 *) ac_try_echo=$ac_try;; 6907 esac 6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6909 (eval "$ac_compiler --version >&5") 2>&5 6910 ac_status=$? 6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6912 (exit $ac_status); } 6913 { (ac_try="$ac_compiler -v >&5" 6914 case "(($ac_try" in 6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6916 *) ac_try_echo=$ac_try;; 6917 esac 6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6919 (eval "$ac_compiler -v >&5") 2>&5 6920 ac_status=$? 6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6922 (exit $ac_status); } 6923 { (ac_try="$ac_compiler -V >&5" 6924 case "(($ac_try" in 6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6926 *) ac_try_echo=$ac_try;; 6927 esac 6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6929 (eval "$ac_compiler -V >&5") 2>&5 6930 ac_status=$? 6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6932 (exit $ac_status); } 6933 6934 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6935 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6937 echo $ECHO_N "(cached) $ECHO_C" >&6 6938 else 6939 cat >conftest.$ac_ext <<_ACEOF 6940 /* confdefs.h. */ 6941 _ACEOF 6942 cat confdefs.h >>conftest.$ac_ext 6943 cat >>conftest.$ac_ext <<_ACEOF 6944 /* end confdefs.h. */ 6945 6946 int 6947 main () 6948 { 6949 #ifndef __GNUC__ 6950 choke me 6951 #endif 6952 6953 ; 6954 return 0; 6955 } 6956 _ACEOF 6957 rm -f conftest.$ac_objext 6958 if { (ac_try="$ac_compile" 6959 case "(($ac_try" in 6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6961 *) ac_try_echo=$ac_try;; 6962 esac 6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6964 (eval "$ac_compile") 2>conftest.er1 6965 ac_status=$? 6966 grep -v '^ *+' conftest.er1 >conftest.err 6967 rm -f conftest.er1 6968 cat conftest.err >&5 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6970 (exit $ac_status); } && { 6971 test -z "$ac_cxx_werror_flag" || 6972 test ! -s conftest.err 6973 } && test -s conftest.$ac_objext; then 6974 ac_compiler_gnu=yes 6975 else 6976 echo "$as_me: failed program was:" >&5 6977 sed 's/^/| /' conftest.$ac_ext >&5 6978 6979 ac_compiler_gnu=no 6980 fi 6981 6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6984 6985 fi 6986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6988 GXX=`test $ac_compiler_gnu = yes && echo yes` 6989 ac_test_CXXFLAGS=${CXXFLAGS+set} 6990 ac_save_CXXFLAGS=$CXXFLAGS 6991 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6993 if test "${ac_cv_prog_cxx_g+set}" = set; then 6994 echo $ECHO_N "(cached) $ECHO_C" >&6 6995 else 6996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6997 ac_cxx_werror_flag=yes 6998 ac_cv_prog_cxx_g=no 6999 CXXFLAGS="-g" 7000 cat >conftest.$ac_ext <<_ACEOF 7001 /* confdefs.h. */ 7002 _ACEOF 7003 cat confdefs.h >>conftest.$ac_ext 7004 cat >>conftest.$ac_ext <<_ACEOF 7005 /* end confdefs.h. */ 7006 7007 int 7008 main () 7009 { 7010 7011 ; 7012 return 0; 7013 } 7014 _ACEOF 7015 rm -f conftest.$ac_objext 7016 if { (ac_try="$ac_compile" 7017 case "(($ac_try" in 7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7019 *) ac_try_echo=$ac_try;; 7020 esac 7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7022 (eval "$ac_compile") 2>conftest.er1 7023 ac_status=$? 7024 grep -v '^ *+' conftest.er1 >conftest.err 7025 rm -f conftest.er1 7026 cat conftest.err >&5 7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); } && { 7029 test -z "$ac_cxx_werror_flag" || 7030 test ! -s conftest.err 7031 } && test -s conftest.$ac_objext; then 7032 ac_cv_prog_cxx_g=yes 7033 else 7034 echo "$as_me: failed program was:" >&5 7035 sed 's/^/| /' conftest.$ac_ext >&5 7036 7037 CXXFLAGS="" 7038 cat >conftest.$ac_ext <<_ACEOF 7039 /* confdefs.h. */ 7040 _ACEOF 7041 cat confdefs.h >>conftest.$ac_ext 7042 cat >>conftest.$ac_ext <<_ACEOF 7043 /* end confdefs.h. */ 7044 7045 int 7046 main () 7047 { 7048 7049 ; 7050 return 0; 7051 } 7052 _ACEOF 7053 rm -f conftest.$ac_objext 7054 if { (ac_try="$ac_compile" 7055 case "(($ac_try" in 7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7057 *) ac_try_echo=$ac_try;; 7058 esac 7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7060 (eval "$ac_compile") 2>conftest.er1 7061 ac_status=$? 7062 grep -v '^ *+' conftest.er1 >conftest.err 7063 rm -f conftest.er1 7064 cat conftest.err >&5 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7066 (exit $ac_status); } && { 7067 test -z "$ac_cxx_werror_flag" || 7068 test ! -s conftest.err 7069 } && test -s conftest.$ac_objext; then 7070 : 7071 else 7072 echo "$as_me: failed program was:" >&5 7073 sed 's/^/| /' conftest.$ac_ext >&5 7074 7075 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7076 CXXFLAGS="-g" 7077 cat >conftest.$ac_ext <<_ACEOF 7078 /* confdefs.h. */ 7079 _ACEOF 7080 cat confdefs.h >>conftest.$ac_ext 7081 cat >>conftest.$ac_ext <<_ACEOF 7082 /* end confdefs.h. */ 7083 7084 int 7085 main () 7086 { 7087 7088 ; 7089 return 0; 7090 } 7091 _ACEOF 7092 rm -f conftest.$ac_objext 7093 if { (ac_try="$ac_compile" 7094 case "(($ac_try" in 7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7096 *) ac_try_echo=$ac_try;; 7097 esac 7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7099 (eval "$ac_compile") 2>conftest.er1 7100 ac_status=$? 7101 grep -v '^ *+' conftest.er1 >conftest.err 7102 rm -f conftest.er1 7103 cat conftest.err >&5 7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 (exit $ac_status); } && { 7106 test -z "$ac_cxx_werror_flag" || 7107 test ! -s conftest.err 7108 } && test -s conftest.$ac_objext; then 7109 ac_cv_prog_cxx_g=yes 7110 else 7111 echo "$as_me: failed program was:" >&5 7112 sed 's/^/| /' conftest.$ac_ext >&5 7113 7114 7115 fi 7116 7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7118 fi 7119 7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7121 fi 7122 7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7125 fi 7126 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7127 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 7128 if test "$ac_test_CXXFLAGS" = set; then 7129 CXXFLAGS=$ac_save_CXXFLAGS 7130 elif test $ac_cv_prog_cxx_g = yes; then 7131 if test "$GXX" = yes; then 7132 CXXFLAGS="-g -O2" 7133 else 7134 CXXFLAGS="-g" 7135 fi 7136 else 7137 if test "$GXX" = yes; then 7138 CXXFLAGS="-O2" 7139 else 7140 CXXFLAGS= 7141 fi 7142 fi 7143 ac_ext=cpp 7144 ac_cpp='$CXXCPP $CPPFLAGS' 7145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7148 7149 depcc="$CXX" am_compiler_list= 7150 7151 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 7153 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155 else 7156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7157 # We make a subdir and do the tests there. Otherwise we can end up 7158 # making bogus files that we don't know about and never remove. For 7159 # instance it was reported that on HP-UX the gcc test will end up 7160 # making a dummy file named `D' -- because `-MD' means `put the output 7161 # in D'. 7162 mkdir conftest.dir 7163 # Copy depcomp to subdir because otherwise we won't find it if we're 7164 # using a relative directory. 7165 cp "$am_depcomp" conftest.dir 7166 cd conftest.dir 7167 # We will build objects and dependencies in a subdirectory because 7168 # it helps to detect inapplicable dependency modes. For instance 7169 # both Tru64's cc and ICC support -MD to output dependencies as a 7170 # side effect of compilation, but ICC will put the dependencies in 7171 # the current directory while Tru64 will put them in the object 7172 # directory. 7173 mkdir sub 7174 7175 am_cv_CXX_dependencies_compiler_type=none 7176 if test "$am_compiler_list" = ""; then 7177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7178 fi 7179 for depmode in $am_compiler_list; do 7180 # Setup a source with many dependencies, because some compilers 7181 # like to wrap large dependency lists on column 80 (with \), and 7182 # we should not choose a depcomp mode which is confused by this. 7183 # 7184 # We need to recreate these files for each test, as the compiler may 7185 # overwrite some of them when testing with obscure command lines. 7186 # This happens at least with the AIX C compiler. 7187 : > sub/conftest.c 7188 for i in 1 2 3 4 5 6; do 7189 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7191 # Solaris 8's {/usr,}/bin/sh. 7192 touch sub/conftst$i.h 7193 done 7194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7195 7196 case $depmode in 7197 nosideeffect) 7198 # after this tag, mechanisms are not by side-effect, so they'll 7199 # only be used when explicitly requested 7200 if test "x$enable_dependency_tracking" = xyes; then 7201 continue 7202 else 7203 break 7204 fi 7205 ;; 7206 none) break ;; 7207 esac 7208 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7209 # mode. It turns out that the SunPro C++ compiler does not properly 7210 # handle `-M -o', and we need to detect this. 7211 if depmode=$depmode \ 7212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7215 >/dev/null 2>conftest.err && 7216 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7218 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7220 # icc doesn't choke on unknown options, it will just issue warnings 7221 # or remarks (even with -Werror). So we grep stderr for any message 7222 # that says an option was ignored or not supported. 7223 # When given -MP, icc 7.0 and 7.1 complain thusly: 7224 # icc: Command line warning: ignoring option '-M'; no argument required 7225 # The diagnosis changed in icc 8.0: 7226 # icc: Command line remark: option '-MP' not supported 7227 if (grep 'ignoring option' conftest.err || 7228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7229 am_cv_CXX_dependencies_compiler_type=$depmode 7230 break 7231 fi 7232 fi 7233 done 7234 7235 cd .. 7236 rm -rf conftest.dir 7237 else 7238 am_cv_CXX_dependencies_compiler_type=none 7239 fi 7240 7241 fi 7242 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7243 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 7244 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7245 7246 if 7247 test "x$enable_dependency_tracking" != xno \ 7248 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7249 am__fastdepCXX_TRUE= 7250 am__fastdepCXX_FALSE='#' 7251 else 7252 am__fastdepCXX_TRUE='#' 7253 am__fastdepCXX_FALSE= 7254 fi 7255 7256 7257 7258 7259 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7260 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7261 (test "X$CXX" != "Xg++"))) ; then 7262 ac_ext=cpp 7263 ac_cpp='$CXXCPP $CPPFLAGS' 7264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7267 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 7269 if test -z "$CXXCPP"; then 7270 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7271 echo $ECHO_N "(cached) $ECHO_C" >&6 7272 else 7273 # Double quotes because CXXCPP needs to be expanded 7274 for CXXCPP in "$CXX -E" "/lib/cpp" 7275 do 7276 ac_preproc_ok=false 7277 for ac_cxx_preproc_warn_flag in '' yes 7278 do 7279 # Use a header file that comes with gcc, so configuring glibc 7280 # with a fresh cross-compiler works. 7281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7282 # <limits.h> exists even on freestanding compilers. 7283 # On the NeXT, cc -E runs the code through the compiler's parser, 7284 # not just through cpp. "Syntax error" is here to catch this case. 7285 cat >conftest.$ac_ext <<_ACEOF 7286 /* confdefs.h. */ 7287 _ACEOF 7288 cat confdefs.h >>conftest.$ac_ext 7289 cat >>conftest.$ac_ext <<_ACEOF 7290 /* end confdefs.h. */ 7291 #ifdef __STDC__ 7292 # include <limits.h> 7293 #else 7294 # include <assert.h> 7295 #endif 7296 Syntax error 7297 _ACEOF 7298 if { (ac_try="$ac_cpp conftest.$ac_ext" 7299 case "(($ac_try" in 7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7301 *) ac_try_echo=$ac_try;; 7302 esac 7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7305 ac_status=$? 7306 grep -v '^ *+' conftest.er1 >conftest.err 7307 rm -f conftest.er1 7308 cat conftest.err >&5 7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7310 (exit $ac_status); } >/dev/null && { 7311 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7312 test ! -s conftest.err 7313 }; then 7314 : 7315 else 7316 echo "$as_me: failed program was:" >&5 7317 sed 's/^/| /' conftest.$ac_ext >&5 7318 7319 # Broken: fails on valid input. 7320 continue 7321 fi 7322 7323 rm -f conftest.err conftest.$ac_ext 7324 7325 # OK, works on sane cases. Now check whether nonexistent headers 7326 # can be detected and how. 7327 cat >conftest.$ac_ext <<_ACEOF 7328 /* confdefs.h. */ 7329 _ACEOF 7330 cat confdefs.h >>conftest.$ac_ext 7331 cat >>conftest.$ac_ext <<_ACEOF 7332 /* end confdefs.h. */ 7333 #include <ac_nonexistent.h> 7334 _ACEOF 7335 if { (ac_try="$ac_cpp conftest.$ac_ext" 7336 case "(($ac_try" in 7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7338 *) ac_try_echo=$ac_try;; 7339 esac 7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7342 ac_status=$? 7343 grep -v '^ *+' conftest.er1 >conftest.err 7344 rm -f conftest.er1 7345 cat conftest.err >&5 7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7347 (exit $ac_status); } >/dev/null && { 7348 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7349 test ! -s conftest.err 7350 }; then 7351 # Broken: success on invalid input. 7352 continue 7353 else 7354 echo "$as_me: failed program was:" >&5 7355 sed 's/^/| /' conftest.$ac_ext >&5 7356 7357 # Passes both tests. 7358 ac_preproc_ok=: 7359 break 7360 fi 7361 7362 rm -f conftest.err conftest.$ac_ext 7363 7364 done 7365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7366 rm -f conftest.err conftest.$ac_ext 7367 if $ac_preproc_ok; then 7368 break 7369 fi 7370 7371 done 7372 ac_cv_prog_CXXCPP=$CXXCPP 7373 7374 fi 7375 CXXCPP=$ac_cv_prog_CXXCPP 7376 else 7377 ac_cv_prog_CXXCPP=$CXXCPP 7378 fi 7379 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 7380 echo "${ECHO_T}$CXXCPP" >&6; } 7381 ac_preproc_ok=false 7382 for ac_cxx_preproc_warn_flag in '' yes 7383 do 7384 # Use a header file that comes with gcc, so configuring glibc 7385 # with a fresh cross-compiler works. 7386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7387 # <limits.h> exists even on freestanding compilers. 7388 # On the NeXT, cc -E runs the code through the compiler's parser, 7389 # not just through cpp. "Syntax error" is here to catch this case. 7390 cat >conftest.$ac_ext <<_ACEOF 7391 /* confdefs.h. */ 7392 _ACEOF 7393 cat confdefs.h >>conftest.$ac_ext 7394 cat >>conftest.$ac_ext <<_ACEOF 7395 /* end confdefs.h. */ 7396 #ifdef __STDC__ 7397 # include <limits.h> 7398 #else 7399 # include <assert.h> 7400 #endif 7401 Syntax error 7402 _ACEOF 7403 if { (ac_try="$ac_cpp conftest.$ac_ext" 7404 case "(($ac_try" in 7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7406 *) ac_try_echo=$ac_try;; 7407 esac 7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7410 ac_status=$? 7411 grep -v '^ *+' conftest.er1 >conftest.err 7412 rm -f conftest.er1 7413 cat conftest.err >&5 7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7415 (exit $ac_status); } >/dev/null && { 7416 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7417 test ! -s conftest.err 7418 }; then 7419 : 7420 else 7421 echo "$as_me: failed program was:" >&5 7422 sed 's/^/| /' conftest.$ac_ext >&5 7423 7424 # Broken: fails on valid input. 7425 continue 7426 fi 7427 7428 rm -f conftest.err conftest.$ac_ext 7429 7430 # OK, works on sane cases. Now check whether nonexistent headers 7431 # can be detected and how. 7432 cat >conftest.$ac_ext <<_ACEOF 7433 /* confdefs.h. */ 7434 _ACEOF 7435 cat confdefs.h >>conftest.$ac_ext 7436 cat >>conftest.$ac_ext <<_ACEOF 7437 /* end confdefs.h. */ 7438 #include <ac_nonexistent.h> 7439 _ACEOF 7440 if { (ac_try="$ac_cpp conftest.$ac_ext" 7441 case "(($ac_try" in 7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7443 *) ac_try_echo=$ac_try;; 7444 esac 7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7447 ac_status=$? 7448 grep -v '^ *+' conftest.er1 >conftest.err 7449 rm -f conftest.er1 7450 cat conftest.err >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7452 (exit $ac_status); } >/dev/null && { 7453 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7454 test ! -s conftest.err 7455 }; then 7456 # Broken: success on invalid input. 7457 continue 7458 else 7459 echo "$as_me: failed program was:" >&5 7460 sed 's/^/| /' conftest.$ac_ext >&5 7461 7462 # Passes both tests. 7463 ac_preproc_ok=: 7464 break 7465 fi 7466 7467 rm -f conftest.err conftest.$ac_ext 7468 7469 done 7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7471 rm -f conftest.err conftest.$ac_ext 7472 if $ac_preproc_ok; then 7473 : 7474 else 7475 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7476 See \`config.log' for more details." >&5 7477 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7478 See \`config.log' for more details." >&2;} 7479 { (exit 1); exit 1; }; } 7480 fi 7481 7482 ac_ext=cpp 7483 ac_cpp='$CXXCPP $CPPFLAGS' 7484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7487 7488 fi 7489 7490 7491 ac_ext=f 7492 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7493 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7494 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7495 if test -n "$ac_tool_prefix"; then 7496 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7497 do 7498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7502 if test "${ac_cv_prog_F77+set}" = set; then 7503 echo $ECHO_N "(cached) $ECHO_C" >&6 7504 else 7505 if test -n "$F77"; then 7506 ac_cv_prog_F77="$F77" # Let the user override the test. 7507 else 7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7509 for as_dir in $PATH 7510 do 7511 IFS=$as_save_IFS 7512 test -z "$as_dir" && as_dir=. 7513 for ac_exec_ext in '' $ac_executable_extensions; do 7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7515 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7517 break 2 7518 fi 7519 done 7520 done 7521 IFS=$as_save_IFS 7522 7523 fi 7524 fi 7525 F77=$ac_cv_prog_F77 7526 if test -n "$F77"; then 7527 { echo "$as_me:$LINENO: result: $F77" >&5 7528 echo "${ECHO_T}$F77" >&6; } 7529 else 7530 { echo "$as_me:$LINENO: result: no" >&5 7531 echo "${ECHO_T}no" >&6; } 7532 fi 7533 7534 7535 test -n "$F77" && break 7536 done 7537 fi 7538 if test -z "$F77"; then 7539 ac_ct_F77=$F77 7540 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7541 do 7542 # Extract the first word of "$ac_prog", so it can be a program name with args. 7543 set dummy $ac_prog; ac_word=$2 7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7546 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7547 echo $ECHO_N "(cached) $ECHO_C" >&6 7548 else 7549 if test -n "$ac_ct_F77"; then 7550 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7551 else 7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553 for as_dir in $PATH 7554 do 7555 IFS=$as_save_IFS 7556 test -z "$as_dir" && as_dir=. 7557 for ac_exec_ext in '' $ac_executable_extensions; do 7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7559 ac_cv_prog_ac_ct_F77="$ac_prog" 7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 break 2 7562 fi 7563 done 7564 done 7565 IFS=$as_save_IFS 7566 7567 fi 7568 fi 7569 ac_ct_F77=$ac_cv_prog_ac_ct_F77 7570 if test -n "$ac_ct_F77"; then 7571 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7572 echo "${ECHO_T}$ac_ct_F77" >&6; } 7573 else 7574 { echo "$as_me:$LINENO: result: no" >&5 7575 echo "${ECHO_T}no" >&6; } 7576 fi 7577 7578 7579 test -n "$ac_ct_F77" && break 7580 done 7581 7582 if test "x$ac_ct_F77" = x; then 7583 F77="" 7584 else 7585 case $cross_compiling:$ac_tool_warned in 7586 yes:) 7587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7588 whose name does not start with the host triplet. If you think this 7589 configuration is useful to you, please write to autoconf@gnu.org." >&5 7590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7591 whose name does not start with the host triplet. If you think this 7592 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7593 ac_tool_warned=yes ;; 7594 esac 7595 F77=$ac_ct_F77 7596 fi 7597 fi 7598 7599 7600 # Provide some information about the compiler. 7601 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7602 ac_compiler=`set X $ac_compile; echo $2` 7603 { (ac_try="$ac_compiler --version >&5" 7604 case "(($ac_try" in 7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7606 *) ac_try_echo=$ac_try;; 7607 esac 7608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7609 (eval "$ac_compiler --version >&5") 2>&5 7610 ac_status=$? 7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7612 (exit $ac_status); } 7613 { (ac_try="$ac_compiler -v >&5" 7614 case "(($ac_try" in 7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7616 *) ac_try_echo=$ac_try;; 7617 esac 7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7619 (eval "$ac_compiler -v >&5") 2>&5 7620 ac_status=$? 7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7622 (exit $ac_status); } 7623 { (ac_try="$ac_compiler -V >&5" 7624 case "(($ac_try" in 7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7626 *) ac_try_echo=$ac_try;; 7627 esac 7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7629 (eval "$ac_compiler -V >&5") 2>&5 7630 ac_status=$? 7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7632 (exit $ac_status); } 7633 rm -f a.out 7634 7635 # If we don't use `.F' as extension, the preprocessor is not run on the 7636 # input file. (Note that this only needs to work for GNU compilers.) 7637 ac_save_ext=$ac_ext 7638 ac_ext=F 7639 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7640 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 7641 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7642 echo $ECHO_N "(cached) $ECHO_C" >&6 7643 else 7644 cat >conftest.$ac_ext <<_ACEOF 7645 program main 7646 #ifndef __GNUC__ 7647 choke me 7648 #endif 7649 7650 end 7651 _ACEOF 7652 rm -f conftest.$ac_objext 7653 if { (ac_try="$ac_compile" 7654 case "(($ac_try" in 7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7656 *) ac_try_echo=$ac_try;; 7657 esac 7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7659 (eval "$ac_compile") 2>conftest.er1 7660 ac_status=$? 7661 grep -v '^ *+' conftest.er1 >conftest.err 7662 rm -f conftest.er1 7663 cat conftest.err >&5 7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7665 (exit $ac_status); } && { 7666 test -z "$ac_f77_werror_flag" || 7667 test ! -s conftest.err 7668 } && test -s conftest.$ac_objext; then 7669 ac_compiler_gnu=yes 7670 else 7671 echo "$as_me: failed program was:" >&5 7672 sed 's/^/| /' conftest.$ac_ext >&5 7673 7674 ac_compiler_gnu=no 7675 fi 7676 7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7678 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7679 7680 fi 7681 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7682 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 7683 ac_ext=$ac_save_ext 7684 ac_test_FFLAGS=${FFLAGS+set} 7685 ac_save_FFLAGS=$FFLAGS 7686 FFLAGS= 7687 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7688 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 7689 if test "${ac_cv_prog_f77_g+set}" = set; then 7690 echo $ECHO_N "(cached) $ECHO_C" >&6 7691 else 7692 FFLAGS=-g 7693 cat >conftest.$ac_ext <<_ACEOF 7694 program main 7695 7696 end 7697 _ACEOF 7698 rm -f conftest.$ac_objext 7699 if { (ac_try="$ac_compile" 7700 case "(($ac_try" in 7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7702 *) ac_try_echo=$ac_try;; 7703 esac 7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7705 (eval "$ac_compile") 2>conftest.er1 7706 ac_status=$? 7707 grep -v '^ *+' conftest.er1 >conftest.err 7708 rm -f conftest.er1 7709 cat conftest.err >&5 7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7711 (exit $ac_status); } && { 7712 test -z "$ac_f77_werror_flag" || 7713 test ! -s conftest.err 7714 } && test -s conftest.$ac_objext; then 7715 ac_cv_prog_f77_g=yes 7716 else 7717 echo "$as_me: failed program was:" >&5 7718 sed 's/^/| /' conftest.$ac_ext >&5 7719 7720 ac_cv_prog_f77_g=no 7721 fi 7722 7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7724 7725 fi 7726 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7727 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 7728 if test "$ac_test_FFLAGS" = set; then 7729 FFLAGS=$ac_save_FFLAGS 7730 elif test $ac_cv_prog_f77_g = yes; then 7731 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7732 FFLAGS="-g -O2" 7733 else 7734 FFLAGS="-g" 7735 fi 7736 else 7737 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7738 FFLAGS="-O2" 7739 else 7740 FFLAGS= 7741 fi 7742 fi 7743 7744 G77=`test $ac_compiler_gnu = yes && echo yes` 7745 ac_ext=c 7746 ac_cpp='$CPP $CPPFLAGS' 7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7750 7751 7752 7753 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7754 7755 # find the maximum length of command line arguments 7756 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7757 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 7758 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7759 echo $ECHO_N "(cached) $ECHO_C" >&6 7760 else 7761 i=0 7762 teststring="ABCD" 7763 7764 case $build_os in 7765 msdosdjgpp*) 7766 # On DJGPP, this test can blow up pretty badly due to problems in libc 7767 # (any single argument exceeding 2000 bytes causes a buffer overrun 7768 # during glob expansion). Even if it were fixed, the result of this 7769 # check would be larger than it should be. 7770 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7771 ;; 7772 7773 gnu*) 7774 # Under GNU Hurd, this test is not required because there is 7775 # no limit to the length of command line arguments. 7776 # Libtool will interpret -1 as no limit whatsoever 7777 lt_cv_sys_max_cmd_len=-1; 7778 ;; 7779 7780 cygwin* | mingw*) 7781 # On Win9x/ME, this test blows up -- it succeeds, but takes 7782 # about 5 minutes as the teststring grows exponentially. 7783 # Worse, since 9x/ME are not pre-emptively multitasking, 7784 # you end up with a "frozen" computer, even though with patience 7785 # the test eventually succeeds (with a max line length of 256k). 7786 # Instead, let's just punt: use the minimum linelength reported by 7787 # all of the supported platforms: 8192 (on NT/2K/XP). 7788 lt_cv_sys_max_cmd_len=8192; 7789 ;; 7790 7791 amigaos*) 7792 # On AmigaOS with pdksh, this test takes hours, literally. 7793 # So we just punt and use a minimum line length of 8192. 7794 lt_cv_sys_max_cmd_len=8192; 7795 ;; 7796 7797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7798 # This has been around since 386BSD, at least. Likely further. 7799 if test -x /sbin/sysctl; then 7800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7801 elif test -x /usr/sbin/sysctl; then 7802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7803 else 7804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7805 fi 7806 # And add a safety zone 7807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7809 ;; 7810 7811 interix*) 7812 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7813 lt_cv_sys_max_cmd_len=196608 7814 ;; 7815 7816 osf*) 7817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7819 # nice to cause kernel panics so lets avoid the loop below. 7820 # First set a reasonable default. 7821 lt_cv_sys_max_cmd_len=16384 7822 # 7823 if test -x /sbin/sysconfig; then 7824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7825 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7826 esac 7827 fi 7828 ;; 7829 sco3.2v5*) 7830 lt_cv_sys_max_cmd_len=102400 7831 ;; 7832 sysv5* | sco5v6* | sysv4.2uw2*) 7833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7834 if test -n "$kargmax"; then 7835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7836 else 7837 lt_cv_sys_max_cmd_len=32768 7838 fi 7839 ;; 7840 *) 7841 # If test is not a shell built-in, we'll probably end up computing a 7842 # maximum length that is only half of the actual maximum length, but 7843 # we can't tell. 7844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7845 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7846 = "XX$teststring") >/dev/null 2>&1 && 7847 new_result=`expr "X$teststring" : ".*" 2>&1` && 7848 lt_cv_sys_max_cmd_len=$new_result && 7849 test $i != 17 # 1/2 MB should be enough 7850 do 7851 i=`expr $i + 1` 7852 teststring=$teststring$teststring 7853 done 7854 teststring= 7855 # Add a significant safety factor because C++ compilers can tack on massive 7856 # amounts of additional arguments before passing them to the linker. 7857 # It appears as though 1/2 is a usable value. 7858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7859 ;; 7860 esac 7861 7862 fi 7863 7864 if test -n $lt_cv_sys_max_cmd_len ; then 7865 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7866 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 7867 else 7868 { echo "$as_me:$LINENO: result: none" >&5 7869 echo "${ECHO_T}none" >&6; } 7870 fi 7871 7872 7873 7874 7875 # Check for command to grab the raw symbol name followed by C symbol from nm. 7876 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7877 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 7878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7879 echo $ECHO_N "(cached) $ECHO_C" >&6 7880 else 7881 7882 # These are sane defaults that work on at least a few old systems. 7883 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7884 7885 # Character class describing NM global symbol codes. 7886 symcode='[BCDEGRST]' 7887 7888 # Regexp to match symbols that can be accessed directly from C. 7889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7890 7891 # Transform an extracted symbol line into a proper C declaration 7892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7893 7894 # Transform an extracted symbol line into symbol name and symbol address 7895 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7896 7897 # Define system-specific variables. 7898 case $host_os in 7899 aix*) 7900 symcode='[BCDT]' 7901 ;; 7902 cygwin* | mingw* | pw32*) 7903 symcode='[ABCDGISTW]' 7904 ;; 7905 hpux*) # Its linker distinguishes data from code symbols 7906 if test "$host_cpu" = ia64; then 7907 symcode='[ABCDEGRST]' 7908 fi 7909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7910 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7911 ;; 7912 linux*) 7913 if test "$host_cpu" = ia64; then 7914 symcode='[ABCDGIRSTW]' 7915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7916 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7917 fi 7918 ;; 7919 irix* | nonstopux*) 7920 symcode='[BCDEGRST]' 7921 ;; 7922 osf*) 7923 symcode='[BCDEGQRST]' 7924 ;; 7925 solaris*) 7926 symcode='[BDRT]' 7927 ;; 7928 sco3.2v5*) 7929 symcode='[DT]' 7930 ;; 7931 sysv4.2uw2*) 7932 symcode='[DT]' 7933 ;; 7934 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7935 symcode='[ABDT]' 7936 ;; 7937 sysv4) 7938 symcode='[DFNSTU]' 7939 ;; 7940 esac 7941 7942 # Handle CRLF in mingw tool chain 7943 opt_cr= 7944 case $build_os in 7945 mingw*) 7946 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7947 ;; 7948 esac 7949 7950 # If we're using GNU nm, then use its standard symbol codes. 7951 case `$NM -V 2>&1` in 7952 *GNU* | *'with BFD'*) 7953 symcode='[ABCDGIRSTW]' ;; 7954 esac 7955 7956 # Try without a prefix undercore, then with it. 7957 for ac_symprfx in "" "_"; do 7958 7959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7960 symxfrm="\\1 $ac_symprfx\\2 \\2" 7961 7962 # Write the raw and C identifiers. 7963 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7964 7965 # Check to see that the pipe works correctly. 7966 pipe_works=no 7967 7968 rm -f conftest* 7969 cat > conftest.$ac_ext <<EOF 7970 #ifdef __cplusplus 7971 extern "C" { 7972 #endif 7973 char nm_test_var; 7974 void nm_test_func(){} 7975 #ifdef __cplusplus 7976 } 7977 #endif 7978 int main(){nm_test_var='a';nm_test_func();return(0);} 7979 EOF 7980 7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7982 (eval $ac_compile) 2>&5 7983 ac_status=$? 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7985 (exit $ac_status); }; then 7986 # Now try to grab the symbols. 7987 nlist=conftest.nm 7988 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7989 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7990 ac_status=$? 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7992 (exit $ac_status); } && test -s "$nlist"; then 7993 # Try sorting and uniquifying the output. 7994 if sort "$nlist" | uniq > "$nlist"T; then 7995 mv -f "$nlist"T "$nlist" 7996 else 7997 rm -f "$nlist"T 7998 fi 7999 8000 # Make sure that we snagged all the symbols we need. 8001 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8002 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8003 cat <<EOF > conftest.$ac_ext 8004 #ifdef __cplusplus 8005 extern "C" { 8006 #endif 8007 8008 EOF 8009 # Now generate the symbol file. 8010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8011 8012 cat <<EOF >> conftest.$ac_ext 8013 #if defined (__STDC__) && __STDC__ 8014 # define lt_ptr_t void * 8015 #else 8016 # define lt_ptr_t char * 8017 # define const 8018 #endif 8019 8020 /* The mapping between symbol names and symbols. */ 8021 const struct { 8022 const char *name; 8023 lt_ptr_t address; 8024 } 8025 lt_preloaded_symbols[] = 8026 { 8027 EOF 8028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8029 cat <<\EOF >> conftest.$ac_ext 8030 {0, (lt_ptr_t) 0} 8031 }; 8032 8033 #ifdef __cplusplus 8034 } 8035 #endif 8036 EOF 8037 # Now try linking the two files. 8038 mv conftest.$ac_objext conftstm.$ac_objext 8039 lt_save_LIBS="$LIBS" 8040 lt_save_CFLAGS="$CFLAGS" 8041 LIBS="conftstm.$ac_objext" 8042 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8044 (eval $ac_link) 2>&5 8045 ac_status=$? 8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8048 pipe_works=yes 8049 fi 8050 LIBS="$lt_save_LIBS" 8051 CFLAGS="$lt_save_CFLAGS" 8052 else 8053 echo "cannot find nm_test_func in $nlist" >&5 8054 fi 8055 else 8056 echo "cannot find nm_test_var in $nlist" >&5 8057 fi 8058 else 8059 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8060 fi 8061 else 8062 echo "$progname: failed program was:" >&5 8063 cat conftest.$ac_ext >&5 8064 fi 8065 rm -f conftest* conftst* 8066 8067 # Do not use the global_symbol_pipe unless it works. 8068 if test "$pipe_works" = yes; then 8069 break 8070 else 8071 lt_cv_sys_global_symbol_pipe= 8072 fi 8073 done 8074 8075 fi 8076 8077 if test -z "$lt_cv_sys_global_symbol_pipe"; then 8078 lt_cv_sys_global_symbol_to_cdecl= 8079 fi 8080 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8081 { echo "$as_me:$LINENO: result: failed" >&5 8082 echo "${ECHO_T}failed" >&6; } 8083 else 8084 { echo "$as_me:$LINENO: result: ok" >&5 8085 echo "${ECHO_T}ok" >&6; } 8086 fi 8087 8088 { echo "$as_me:$LINENO: checking for objdir" >&5 8089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8090 if test "${lt_cv_objdir+set}" = set; then 8091 echo $ECHO_N "(cached) $ECHO_C" >&6 8092 else 8093 rm -f .libs 2>/dev/null 8094 mkdir .libs 2>/dev/null 8095 if test -d .libs; then 8096 lt_cv_objdir=.libs 8097 else 8098 # MS-DOS does not allow filenames that begin with a dot. 8099 lt_cv_objdir=_libs 8100 fi 8101 rmdir .libs 2>/dev/null 8102 fi 8103 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8104 echo "${ECHO_T}$lt_cv_objdir" >&6; } 8105 objdir=$lt_cv_objdir 8106 8107 8108 8109 8110 8111 case $host_os in 8112 aix3*) 8113 # AIX sometimes has problems with the GCC collect2 program. For some 8114 # reason, if we set the COLLECT_NAMES environment variable, the problems 8115 # vanish in a puff of smoke. 8116 if test "X${COLLECT_NAMES+set}" != Xset; then 8117 COLLECT_NAMES= 8118 export COLLECT_NAMES 8119 fi 8120 ;; 8121 esac 8122 8123 # Sed substitution that helps us do robust quoting. It backslashifies 8124 # metacharacters that are still active within double-quoted strings. 8125 Xsed='sed -e 1s/^X//' 8126 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8127 8128 # Same as above, but do not quote variable references. 8129 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8130 8131 # Sed substitution to delay expansion of an escaped shell variable in a 8132 # double_quote_subst'ed string. 8133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8134 8135 # Sed substitution to avoid accidental globbing in evaled expressions 8136 no_glob_subst='s/\*/\\\*/g' 8137 8138 # Constants: 8139 rm="rm -f" 8140 8141 # Global variables: 8142 default_ofile=libtool 8143 can_build_shared=yes 8144 8145 # All known linkers require a `.a' archive for static linking (except MSVC, 8146 # which needs '.lib'). 8147 libext=a 8148 ltmain="$ac_aux_dir/ltmain.sh" 8149 ofile="$default_ofile" 8150 with_gnu_ld="$lt_cv_prog_gnu_ld" 8151 8152 if test -n "$ac_tool_prefix"; then 8153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8154 set dummy ${ac_tool_prefix}ar; ac_word=$2 8155 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8157 if test "${ac_cv_prog_AR+set}" = set; then 8158 echo $ECHO_N "(cached) $ECHO_C" >&6 8159 else 8160 if test -n "$AR"; then 8161 ac_cv_prog_AR="$AR" # Let the user override the test. 8162 else 8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8164 for as_dir in $PATH 8165 do 8166 IFS=$as_save_IFS 8167 test -z "$as_dir" && as_dir=. 8168 for ac_exec_ext in '' $ac_executable_extensions; do 8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8170 ac_cv_prog_AR="${ac_tool_prefix}ar" 8171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8172 break 2 8173 fi 8174 done 8175 done 8176 IFS=$as_save_IFS 8177 8178 fi 8179 fi 8180 AR=$ac_cv_prog_AR 8181 if test -n "$AR"; then 8182 { echo "$as_me:$LINENO: result: $AR" >&5 8183 echo "${ECHO_T}$AR" >&6; } 8184 else 8185 { echo "$as_me:$LINENO: result: no" >&5 8186 echo "${ECHO_T}no" >&6; } 8187 fi 8188 8189 8190 fi 8191 if test -z "$ac_cv_prog_AR"; then 8192 ac_ct_AR=$AR 8193 # Extract the first word of "ar", so it can be a program name with args. 8194 set dummy ar; ac_word=$2 8195 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8197 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8198 echo $ECHO_N "(cached) $ECHO_C" >&6 8199 else 8200 if test -n "$ac_ct_AR"; then 8201 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8202 else 8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8204 for as_dir in $PATH 8205 do 8206 IFS=$as_save_IFS 8207 test -z "$as_dir" && as_dir=. 8208 for ac_exec_ext in '' $ac_executable_extensions; do 8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8210 ac_cv_prog_ac_ct_AR="ar" 8211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8212 break 2 8213 fi 8214 done 8215 done 8216 IFS=$as_save_IFS 8217 8218 fi 8219 fi 8220 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8221 if test -n "$ac_ct_AR"; then 8222 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8223 echo "${ECHO_T}$ac_ct_AR" >&6; } 8224 else 8225 { echo "$as_me:$LINENO: result: no" >&5 8226 echo "${ECHO_T}no" >&6; } 8227 fi 8228 8229 if test "x$ac_ct_AR" = x; then 8230 AR="false" 8231 else 8232 case $cross_compiling:$ac_tool_warned in 8233 yes:) 8234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8235 whose name does not start with the host triplet. If you think this 8236 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 8237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8238 whose name does not start with the host triplet. If you think this 8239 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 8240 ac_tool_warned=yes ;; 8241 esac 8242 AR=$ac_ct_AR 8243 fi 8244 else 8245 AR="$ac_cv_prog_AR" 8246 fi 8247 8248 if test -n "$ac_tool_prefix"; then 8249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8251 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8253 if test "${ac_cv_prog_RANLIB+set}" = set; then 8254 echo $ECHO_N "(cached) $ECHO_C" >&6 8255 else 8256 if test -n "$RANLIB"; then 8257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8258 else 8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8260 for as_dir in $PATH 8261 do 8262 IFS=$as_save_IFS 8263 test -z "$as_dir" && as_dir=. 8264 for ac_exec_ext in '' $ac_executable_extensions; do 8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8268 break 2 8269 fi 8270 done 8271 done 8272 IFS=$as_save_IFS 8273 8274 fi 8275 fi 8276 RANLIB=$ac_cv_prog_RANLIB 8277 if test -n "$RANLIB"; then 8278 { echo "$as_me:$LINENO: result: $RANLIB" >&5 8279 echo "${ECHO_T}$RANLIB" >&6; } 8280 else 8281 { echo "$as_me:$LINENO: result: no" >&5 8282 echo "${ECHO_T}no" >&6; } 8283 fi 8284 8285 8286 fi 8287 if test -z "$ac_cv_prog_RANLIB"; then 8288 ac_ct_RANLIB=$RANLIB 8289 # Extract the first word of "ranlib", so it can be a program name with args. 8290 set dummy ranlib; ac_word=$2 8291 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8294 echo $ECHO_N "(cached) $ECHO_C" >&6 8295 else 8296 if test -n "$ac_ct_RANLIB"; then 8297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8298 else 8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8300 for as_dir in $PATH 8301 do 8302 IFS=$as_save_IFS 8303 test -z "$as_dir" && as_dir=. 8304 for ac_exec_ext in '' $ac_executable_extensions; do 8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8306 ac_cv_prog_ac_ct_RANLIB="ranlib" 8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8308 break 2 8309 fi 8310 done 8311 done 8312 IFS=$as_save_IFS 8313 8314 fi 8315 fi 8316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8317 if test -n "$ac_ct_RANLIB"; then 8318 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8319 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 8320 else 8321 { echo "$as_me:$LINENO: result: no" >&5 8322 echo "${ECHO_T}no" >&6; } 8323 fi 8324 8325 if test "x$ac_ct_RANLIB" = x; then 8326 RANLIB=":" 8327 else 8328 case $cross_compiling:$ac_tool_warned in 8329 yes:) 8330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8331 whose name does not start with the host triplet. If you think this 8332 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 8333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8334 whose name does not start with the host triplet. If you think this 8335 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 8336 ac_tool_warned=yes ;; 8337 esac 8338 RANLIB=$ac_ct_RANLIB 8339 fi 8340 else 8341 RANLIB="$ac_cv_prog_RANLIB" 8342 fi 8343 8344 if test -n "$ac_tool_prefix"; then 8345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8346 set dummy ${ac_tool_prefix}strip; ac_word=$2 8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8349 if test "${ac_cv_prog_STRIP+set}" = set; then 8350 echo $ECHO_N "(cached) $ECHO_C" >&6 8351 else 8352 if test -n "$STRIP"; then 8353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8354 else 8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8356 for as_dir in $PATH 8357 do 8358 IFS=$as_save_IFS 8359 test -z "$as_dir" && as_dir=. 8360 for ac_exec_ext in '' $ac_executable_extensions; do 8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8362 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8364 break 2 8365 fi 8366 done 8367 done 8368 IFS=$as_save_IFS 8369 8370 fi 8371 fi 8372 STRIP=$ac_cv_prog_STRIP 8373 if test -n "$STRIP"; then 8374 { echo "$as_me:$LINENO: result: $STRIP" >&5 8375 echo "${ECHO_T}$STRIP" >&6; } 8376 else 8377 { echo "$as_me:$LINENO: result: no" >&5 8378 echo "${ECHO_T}no" >&6; } 8379 fi 8380 8381 8382 fi 8383 if test -z "$ac_cv_prog_STRIP"; then 8384 ac_ct_STRIP=$STRIP 8385 # Extract the first word of "strip", so it can be a program name with args. 8386 set dummy strip; ac_word=$2 8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5 8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8390 echo $ECHO_N "(cached) $ECHO_C" >&6 8391 else 8392 if test -n "$ac_ct_STRIP"; then 8393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8394 else 8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396 for as_dir in $PATH 8397 do 8398 IFS=$as_save_IFS 8399 test -z "$as_dir" && as_dir=. 8400 for ac_exec_ext in '' $ac_executable_extensions; do 8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8402 ac_cv_prog_ac_ct_STRIP="strip" 8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8404 break 2 8405 fi 8406 done 8407 done 8408 IFS=$as_save_IFS 8409 8410 fi 8411 fi 8412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8413 if test -n "$ac_ct_STRIP"; then 8414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8415 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 8416 else 8417 { echo "$as_me:$LINENO: result: no" >&5 8418 echo "${ECHO_T}no" >&6; } 8419 fi 8420 8421 if test "x$ac_ct_STRIP" = x; then 8422 STRIP=":" 8423 else 8424 case $cross_compiling:$ac_tool_warned in 8425 yes:) 8426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8427 whose name does not start with the host triplet. If you think this 8428 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 8429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8430 whose name does not start with the host triplet. If you think this 8431 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 8432 ac_tool_warned=yes ;; 8433 esac 8434 STRIP=$ac_ct_STRIP 8435 fi 8436 else 8437 STRIP="$ac_cv_prog_STRIP" 8438 fi 8439 8440 8441 old_CC="$CC" 8442 old_CFLAGS="$CFLAGS" 8443 8444 # Set sane defaults for various variables 8445 test -z "$AR" && AR=ar 8446 test -z "$AR_FLAGS" && AR_FLAGS=cru 8447 test -z "$AS" && AS=as 8448 test -z "$CC" && CC=cc 8449 test -z "$LTCC" && LTCC=$CC 8450 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8451 test -z "$DLLTOOL" && DLLTOOL=dlltool 8452 test -z "$LD" && LD=ld 8453 test -z "$LN_S" && LN_S="ln -s" 8454 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8455 test -z "$NM" && NM=nm 8456 test -z "$SED" && SED=sed 8457 test -z "$OBJDUMP" && OBJDUMP=objdump 8458 test -z "$RANLIB" && RANLIB=: 8459 test -z "$STRIP" && STRIP=: 8460 test -z "$ac_objext" && ac_objext=o 8461 8462 # Determine commands to create old-style static archives. 8463 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8464 old_postinstall_cmds='chmod 644 $oldlib' 8465 old_postuninstall_cmds= 8466 8467 if test -n "$RANLIB"; then 8468 case $host_os in 8469 openbsd*) 8470 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8471 ;; 8472 *) 8473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8474 ;; 8475 esac 8476 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8477 fi 8478 8479 for cc_temp in $compiler""; do 8480 case $cc_temp in 8481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8483 \-*) ;; 8484 *) break;; 8485 esac 8486 done 8487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8488 8489 8490 # Only perform the check for file, if the check method requires it 8491 case $deplibs_check_method in 8492 file_magic*) 8493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8494 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8495 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8497 echo $ECHO_N "(cached) $ECHO_C" >&6 8498 else 8499 case $MAGIC_CMD in 8500 [\\/*] | ?:[\\/]*) 8501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8502 ;; 8503 *) 8504 lt_save_MAGIC_CMD="$MAGIC_CMD" 8505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8507 for ac_dir in $ac_dummy; do 8508 IFS="$lt_save_ifs" 8509 test -z "$ac_dir" && ac_dir=. 8510 if test -f $ac_dir/${ac_tool_prefix}file; then 8511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8512 if test -n "$file_magic_test_file"; then 8513 case $deplibs_check_method in 8514 "file_magic "*) 8515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8518 $EGREP "$file_magic_regex" > /dev/null; then 8519 : 8520 else 8521 cat <<EOF 1>&2 8522 8523 *** Warning: the command libtool uses to detect shared libraries, 8524 *** $file_magic_cmd, produces output that libtool cannot recognize. 8525 *** The result is that libtool may fail to recognize shared libraries 8526 *** as such. This will affect the creation of libtool libraries that 8527 *** depend on shared libraries, but programs linked with such libtool 8528 *** libraries will work regardless of this problem. Nevertheless, you 8529 *** may want to report the problem to your system manager and/or to 8530 *** bug-libtool@gnu.org 8531 8532 EOF 8533 fi ;; 8534 esac 8535 fi 8536 break 8537 fi 8538 done 8539 IFS="$lt_save_ifs" 8540 MAGIC_CMD="$lt_save_MAGIC_CMD" 8541 ;; 8542 esac 8543 fi 8544 8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8546 if test -n "$MAGIC_CMD"; then 8547 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8548 echo "${ECHO_T}$MAGIC_CMD" >&6; } 8549 else 8550 { echo "$as_me:$LINENO: result: no" >&5 8551 echo "${ECHO_T}no" >&6; } 8552 fi 8553 8554 if test -z "$lt_cv_path_MAGIC_CMD"; then 8555 if test -n "$ac_tool_prefix"; then 8556 { echo "$as_me:$LINENO: checking for file" >&5 8557 echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8559 echo $ECHO_N "(cached) $ECHO_C" >&6 8560 else 8561 case $MAGIC_CMD in 8562 [\\/*] | ?:[\\/]*) 8563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8564 ;; 8565 *) 8566 lt_save_MAGIC_CMD="$MAGIC_CMD" 8567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8569 for ac_dir in $ac_dummy; do 8570 IFS="$lt_save_ifs" 8571 test -z "$ac_dir" && ac_dir=. 8572 if test -f $ac_dir/file; then 8573 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8574 if test -n "$file_magic_test_file"; then 8575 case $deplibs_check_method in 8576 "file_magic "*) 8577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8580 $EGREP "$file_magic_regex" > /dev/null; then 8581 : 8582 else 8583 cat <<EOF 1>&2 8584 8585 *** Warning: the command libtool uses to detect shared libraries, 8586 *** $file_magic_cmd, produces output that libtool cannot recognize. 8587 *** The result is that libtool may fail to recognize shared libraries 8588 *** as such. This will affect the creation of libtool libraries that 8589 *** depend on shared libraries, but programs linked with such libtool 8590 *** libraries will work regardless of this problem. Nevertheless, you 8591 *** may want to report the problem to your system manager and/or to 8592 *** bug-libtool@gnu.org 8593 8594 EOF 8595 fi ;; 8596 esac 8597 fi 8598 break 8599 fi 8600 done 8601 IFS="$lt_save_ifs" 8602 MAGIC_CMD="$lt_save_MAGIC_CMD" 8603 ;; 8604 esac 8605 fi 8606 8607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8608 if test -n "$MAGIC_CMD"; then 8609 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8610 echo "${ECHO_T}$MAGIC_CMD" >&6; } 8611 else 8612 { echo "$as_me:$LINENO: result: no" >&5 8613 echo "${ECHO_T}no" >&6; } 8614 fi 8615 8616 else 8617 MAGIC_CMD=: 8618 fi 8619 fi 8620 8621 fi 8622 ;; 8623 esac 8624 8625 enable_dlopen=no 8626 enable_win32_dll=yes 8627 8628 # Check whether --enable-libtool-lock was given. 8629 if test "${enable_libtool_lock+set}" = set; then 8630 enableval=$enable_libtool_lock; 8631 fi 8632 8633 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8634 8635 8636 # Check whether --with-pic was given. 8637 if test "${with_pic+set}" = set; then 8638 withval=$with_pic; pic_mode="$withval" 8639 else 8640 pic_mode=default 8641 fi 8642 8643 test -z "$pic_mode" && pic_mode=default 8644 8645 # Use C for the default configuration in the libtool script 8646 tagname= 8647 lt_save_CC="$CC" 8648 ac_ext=c 8649 ac_cpp='$CPP $CPPFLAGS' 8650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8652 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8653 8654 8655 # Source file extension for C test sources. 8656 ac_ext=c 8657 8658 # Object file extension for compiled C test sources. 8659 objext=o 8660 objext=$objext 8661 8662 # Code to be used in simple compile tests 8663 lt_simple_compile_test_code="int some_variable = 0;\n" 8664 8665 # Code to be used in simple link tests 8666 lt_simple_link_test_code='int main(){return(0);}\n' 8667 8668 8669 # If no C compiler was specified, use CC. 8670 LTCC=${LTCC-"$CC"} 8671 8672 # If no C compiler flags were specified, use CFLAGS. 8673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8674 8675 # Allow CC to be a program name with arguments. 8676 compiler=$CC 8677 8678 8679 # save warnings/boilerplate of simple test code 8680 ac_outfile=conftest.$ac_objext 8681 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8683 _lt_compiler_boilerplate=`cat conftest.err` 8684 $rm conftest* 8685 8686 ac_outfile=conftest.$ac_objext 8687 printf "$lt_simple_link_test_code" >conftest.$ac_ext 8688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8689 _lt_linker_boilerplate=`cat conftest.err` 8690 $rm conftest* 8691 8692 8693 ## CAVEAT EMPTOR: 8694 ## There is no encapsulation within the following macros, do not change 8695 ## the running order or otherwise move them around unless you know exactly 8696 ## what you are doing... 8697 8698 lt_prog_compiler_no_builtin_flag= 8699 8700 if test "$GCC" = yes; then 8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8702 8703 8704 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8707 echo $ECHO_N "(cached) $ECHO_C" >&6 8708 else 8709 lt_cv_prog_compiler_rtti_exceptions=no 8710 ac_outfile=conftest.$ac_objext 8711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8712 lt_compiler_flag="-fno-rtti -fno-exceptions" 8713 # Insert the option either (1) after the last *FLAGS variable, or 8714 # (2) before a word containing "conftest.", or (3) at the end. 8715 # Note that $ac_compile itself does not contain backslashes and begins 8716 # with a dollar sign (not a hyphen), so the echo should work correctly. 8717 # The option is referenced via a variable to avoid confusing sed. 8718 lt_compile=`echo "$ac_compile" | $SED \ 8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8721 -e 's:$: $lt_compiler_flag:'` 8722 (eval echo "\"\$as_me:8722: $lt_compile\"" >&5) 8723 (eval "$lt_compile" 2>conftest.err) 8724 ac_status=$? 8725 cat conftest.err >&5 8726 echo "$as_me:8726: \$? = $ac_status" >&5 8727 if (exit $ac_status) && test -s "$ac_outfile"; then 8728 # The compiler can only warn and ignore the option if not recognized 8729 # So say no if there are warnings other than the usual output. 8730 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8733 lt_cv_prog_compiler_rtti_exceptions=yes 8734 fi 8735 fi 8736 $rm conftest* 8737 8738 fi 8739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8740 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8741 8742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8744 else 8745 : 8746 fi 8747 8748 fi 8749 8750 lt_prog_compiler_wl= 8751 lt_prog_compiler_pic= 8752 lt_prog_compiler_static= 8753 8754 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8756 8757 if test "$GCC" = yes; then 8758 lt_prog_compiler_wl='-Wl,' 8759 lt_prog_compiler_static='-static' 8760 8761 case $host_os in 8762 aix*) 8763 # All AIX code is PIC. 8764 if test "$host_cpu" = ia64; then 8765 # AIX 5 now supports IA64 processor 8766 lt_prog_compiler_static='-Bstatic' 8767 fi 8768 ;; 8769 8770 amigaos*) 8771 # FIXME: we need at least 68020 code to build shared libraries, but 8772 # adding the `-m68020' flag to GCC prevents building anything better, 8773 # like `-m68040'. 8774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8775 ;; 8776 8777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8778 # PIC is the default for these OSes. 8779 ;; 8780 8781 mingw* | cygwin* | pw32* | os2*) 8782 # This hack is so that the source file can tell whether it is being 8783 # built for inclusion in a dll (and should export symbols for example). 8784 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8785 # (--disable-auto-import) libraries 8786 lt_prog_compiler_pic='-DDLL_EXPORT' 8787 ;; 8788 8789 darwin* | rhapsody*) 8790 # PIC is the default on this platform 8791 # Common symbols not allowed in MH_DYLIB files 8792 lt_prog_compiler_pic='-fno-common' 8793 ;; 8794 8795 interix3*) 8796 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8797 # Instead, we relocate shared libraries at runtime. 8798 ;; 8799 8800 msdosdjgpp*) 8801 # Just because we use GCC doesn't mean we suddenly get shared libraries 8802 # on systems that don't support them. 8803 lt_prog_compiler_can_build_shared=no 8804 enable_shared=no 8805 ;; 8806 8807 sysv4*MP*) 8808 if test -d /usr/nec; then 8809 lt_prog_compiler_pic=-Kconform_pic 8810 fi 8811 ;; 8812 8813 hpux*) 8814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8815 # not for PA HP-UX. 8816 case $host_cpu in 8817 hppa*64*|ia64*) 8818 # +Z the default 8819 ;; 8820 *) 8821 lt_prog_compiler_pic='-fPIC' 8822 ;; 8823 esac 8824 ;; 8825 8826 *) 8827 lt_prog_compiler_pic='-fPIC' 8828 ;; 8829 esac 8830 else 8831 # PORTME Check for flag to pass linker flags through the system compiler. 8832 case $host_os in 8833 aix*) 8834 lt_prog_compiler_wl='-Wl,' 8835 if test "$host_cpu" = ia64; then 8836 # AIX 5 now supports IA64 processor 8837 lt_prog_compiler_static='-Bstatic' 8838 else 8839 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8840 fi 8841 ;; 8842 darwin*) 8843 # PIC is the default on this platform 8844 # Common symbols not allowed in MH_DYLIB files 8845 case $cc_basename in 8846 xlc*) 8847 lt_prog_compiler_pic='-qnocommon' 8848 lt_prog_compiler_wl='-Wl,' 8849 ;; 8850 esac 8851 ;; 8852 8853 mingw* | cygwin* | pw32* | os2*) 8854 # This hack is so that the source file can tell whether it is being 8855 # built for inclusion in a dll (and should export symbols for example). 8856 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8857 # (--disable-auto-import) libraries 8858 lt_prog_compiler_pic='-DDLL_EXPORT' 8859 ;; 8860 8861 hpux9* | hpux10* | hpux11*) 8862 lt_prog_compiler_wl='-Wl,' 8863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8864 # not for PA HP-UX. 8865 case $host_cpu in 8866 hppa*64*|ia64*) 8867 # +Z the default 8868 ;; 8869 *) 8870 lt_prog_compiler_pic='+Z' 8871 ;; 8872 esac 8873 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8874 lt_prog_compiler_static='${wl}-a ${wl}archive' 8875 ;; 8876 8877 irix5* | irix6* | nonstopux*) 8878 lt_prog_compiler_wl='-Wl,' 8879 # PIC (with -KPIC) is the default. 8880 lt_prog_compiler_static='-non_shared' 8881 ;; 8882 8883 newsos6) 8884 lt_prog_compiler_pic='-KPIC' 8885 lt_prog_compiler_static='-Bstatic' 8886 ;; 8887 8888 linux*) 8889 case $cc_basename in 8890 icc* | ecc*) 8891 lt_prog_compiler_wl='-Wl,' 8892 lt_prog_compiler_pic='-KPIC' 8893 lt_prog_compiler_static='-static' 8894 ;; 8895 pgcc* | pgf77* | pgf90* | pgf95*) 8896 # Portland Group compilers (*not* the Pentium gcc compiler, 8897 # which looks to be a dead project) 8898 lt_prog_compiler_wl='-Wl,' 8899 lt_prog_compiler_pic='-fpic' 8900 lt_prog_compiler_static='-Bstatic' 8901 ;; 8902 ccc*) 8903 lt_prog_compiler_wl='-Wl,' 8904 # All Alpha code is PIC. 8905 lt_prog_compiler_static='-non_shared' 8906 ;; 8907 como) 8908 lt_prog_compiler_wl='-lopt=' 8909 ;; 8910 *) 8911 case `$CC -V 2>&1 | sed 5q` in 8912 *Sun\ C*) 8913 # Sun C 5.9 8914 lt_prog_compiler_pic='-KPIC' 8915 lt_prog_compiler_static='-Bstatic' 8916 lt_prog_compiler_wl='-Wl,' 8917 ;; 8918 *Sun\ F*) 8919 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8920 lt_prog_compiler_pic='-KPIC' 8921 lt_prog_compiler_static='-Bstatic' 8922 lt_prog_compiler_wl='' 8923 ;; 8924 esac 8925 ;; 8926 esac 8927 ;; 8928 8929 osf3* | osf4* | osf5*) 8930 lt_prog_compiler_wl='-Wl,' 8931 # All OSF/1 code is PIC. 8932 lt_prog_compiler_static='-non_shared' 8933 ;; 8934 8935 solaris*) 8936 lt_prog_compiler_pic='-KPIC' 8937 lt_prog_compiler_static='-Bstatic' 8938 case $cc_basename in 8939 f77* | f90* | f95*) 8940 lt_prog_compiler_wl='-Qoption ld ';; 8941 *) 8942 lt_prog_compiler_wl='-Wl,';; 8943 esac 8944 ;; 8945 8946 sunos4*) 8947 lt_prog_compiler_wl='-Qoption ld ' 8948 lt_prog_compiler_pic='-PIC' 8949 lt_prog_compiler_static='-Bstatic' 8950 ;; 8951 8952 sysv4 | sysv4.2uw2* | sysv4.3*) 8953 lt_prog_compiler_wl='-Wl,' 8954 lt_prog_compiler_pic='-KPIC' 8955 lt_prog_compiler_static='-Bstatic' 8956 ;; 8957 8958 sysv4*MP*) 8959 if test -d /usr/nec ;then 8960 lt_prog_compiler_pic='-Kconform_pic' 8961 lt_prog_compiler_static='-Bstatic' 8962 fi 8963 ;; 8964 8965 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8966 lt_prog_compiler_wl='-Wl,' 8967 lt_prog_compiler_pic='-KPIC' 8968 lt_prog_compiler_static='-Bstatic' 8969 ;; 8970 8971 unicos*) 8972 lt_prog_compiler_wl='-Wl,' 8973 lt_prog_compiler_can_build_shared=no 8974 ;; 8975 8976 uts4*) 8977 lt_prog_compiler_pic='-pic' 8978 lt_prog_compiler_static='-Bstatic' 8979 ;; 8980 8981 *) 8982 lt_prog_compiler_can_build_shared=no 8983 ;; 8984 esac 8985 fi 8986 8987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8988 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8989 8990 # 8991 # Check to make sure the PIC flag actually works. 8992 # 8993 if test -n "$lt_prog_compiler_pic"; then 8994 8995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8997 if test "${lt_prog_compiler_pic_works+set}" = set; then 8998 echo $ECHO_N "(cached) $ECHO_C" >&6 8999 else 9000 lt_prog_compiler_pic_works=no 9001 ac_outfile=conftest.$ac_objext 9002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9004 # Insert the option either (1) after the last *FLAGS variable, or 9005 # (2) before a word containing "conftest.", or (3) at the end. 9006 # Note that $ac_compile itself does not contain backslashes and begins 9007 # with a dollar sign (not a hyphen), so the echo should work correctly. 9008 # The option is referenced via a variable to avoid confusing sed. 9009 lt_compile=`echo "$ac_compile" | $SED \ 9010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9012 -e 's:$: $lt_compiler_flag:'` 9013 (eval echo "\"\$as_me:9013: $lt_compile\"" >&5) 9014 (eval "$lt_compile" 2>conftest.err) 9015 ac_status=$? 9016 cat conftest.err >&5 9017 echo "$as_me:9017: \$? = $ac_status" >&5 9018 if (exit $ac_status) && test -s "$ac_outfile"; then 9019 # The compiler can only warn and ignore the option if not recognized 9020 # So say no if there are warnings other than the usual output. 9021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9024 lt_prog_compiler_pic_works=yes 9025 fi 9026 fi 9027 $rm conftest* 9028 9029 fi 9030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9031 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 9032 9033 if test x"$lt_prog_compiler_pic_works" = xyes; then 9034 case $lt_prog_compiler_pic in 9035 "" | " "*) ;; 9036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9037 esac 9038 else 9039 lt_prog_compiler_pic= 9040 lt_prog_compiler_can_build_shared=no 9041 fi 9042 9043 fi 9044 case $host_os in 9045 # For platforms which do not support PIC, -DPIC is meaningless: 9046 *djgpp*) 9047 lt_prog_compiler_pic= 9048 ;; 9049 *) 9050 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9051 ;; 9052 esac 9053 9054 # 9055 # Check to make sure the static flag actually works. 9056 # 9057 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9060 if test "${lt_prog_compiler_static_works+set}" = set; then 9061 echo $ECHO_N "(cached) $ECHO_C" >&6 9062 else 9063 lt_prog_compiler_static_works=no 9064 save_LDFLAGS="$LDFLAGS" 9065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9066 printf "$lt_simple_link_test_code" > conftest.$ac_ext 9067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9068 # The linker can only warn and ignore the option if not recognized 9069 # So say no if there are warnings 9070 if test -s conftest.err; then 9071 # Append any errors to the config.log. 9072 cat conftest.err 1>&5 9073 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9075 if diff conftest.exp conftest.er2 >/dev/null; then 9076 lt_prog_compiler_static_works=yes 9077 fi 9078 else 9079 lt_prog_compiler_static_works=yes 9080 fi 9081 fi 9082 $rm conftest* 9083 LDFLAGS="$save_LDFLAGS" 9084 9085 fi 9086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9087 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 9088 9089 if test x"$lt_prog_compiler_static_works" = xyes; then 9090 : 9091 else 9092 lt_prog_compiler_static= 9093 fi 9094 9095 9096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9099 echo $ECHO_N "(cached) $ECHO_C" >&6 9100 else 9101 lt_cv_prog_compiler_c_o=no 9102 $rm -r conftest 2>/dev/null 9103 mkdir conftest 9104 cd conftest 9105 mkdir out 9106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9107 9108 lt_compiler_flag="-o out/conftest2.$ac_objext" 9109 # Insert the option either (1) after the last *FLAGS variable, or 9110 # (2) before a word containing "conftest.", or (3) at the end. 9111 # Note that $ac_compile itself does not contain backslashes and begins 9112 # with a dollar sign (not a hyphen), so the echo should work correctly. 9113 lt_compile=`echo "$ac_compile" | $SED \ 9114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9116 -e 's:$: $lt_compiler_flag:'` 9117 (eval echo "\"\$as_me:9117: $lt_compile\"" >&5) 9118 (eval "$lt_compile" 2>out/conftest.err) 9119 ac_status=$? 9120 cat out/conftest.err >&5 9121 echo "$as_me:9121: \$? = $ac_status" >&5 9122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9123 then 9124 # The compiler can only warn and ignore the option if not recognized 9125 # So say no if there are warnings 9126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9129 lt_cv_prog_compiler_c_o=yes 9130 fi 9131 fi 9132 chmod u+w . 2>&5 9133 $rm conftest* 9134 # SGI C++ compiler will create directory out/ii_files/ for 9135 # template instantiation 9136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9137 $rm out/* && rmdir out 9138 cd .. 9139 rmdir conftest 9140 $rm conftest* 9141 9142 fi 9143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9145 9146 9147 hard_links="nottested" 9148 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9149 # do not overwrite the value of need_locks provided by the user 9150 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9152 hard_links=yes 9153 $rm conftest* 9154 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9155 touch conftest.a 9156 ln conftest.a conftest.b 2>&5 || hard_links=no 9157 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9158 { echo "$as_me:$LINENO: result: $hard_links" >&5 9159 echo "${ECHO_T}$hard_links" >&6; } 9160 if test "$hard_links" = no; then 9161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9163 need_locks=warn 9164 fi 9165 else 9166 need_locks=no 9167 fi 9168 9169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9171 9172 runpath_var= 9173 allow_undefined_flag= 9174 enable_shared_with_static_runtimes=no 9175 archive_cmds= 9176 archive_expsym_cmds= 9177 old_archive_From_new_cmds= 9178 old_archive_from_expsyms_cmds= 9179 export_dynamic_flag_spec= 9180 whole_archive_flag_spec= 9181 thread_safe_flag_spec= 9182 hardcode_libdir_flag_spec= 9183 hardcode_libdir_flag_spec_ld= 9184 hardcode_libdir_separator= 9185 hardcode_direct=no 9186 hardcode_minus_L=no 9187 hardcode_shlibpath_var=unsupported 9188 link_all_deplibs=unknown 9189 hardcode_automatic=no 9190 module_cmds= 9191 module_expsym_cmds= 9192 always_export_symbols=no 9193 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9194 # include_expsyms should be a list of space-separated symbols to be *always* 9195 # included in the symbol list 9196 include_expsyms= 9197 # exclude_expsyms can be an extended regexp of symbols to exclude 9198 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9199 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9200 # as well as any symbol that contains `d'. 9201 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9202 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9203 # platforms (ab)use it in PIC code, but their linkers get confused if 9204 # the symbol is explicitly referenced. Since portable code cannot 9205 # rely on this symbol name, it's probably fine to never include it in 9206 # preloaded symbol tables. 9207 extract_expsyms_cmds= 9208 # Just being paranoid about ensuring that cc_basename is set. 9209 for cc_temp in $compiler""; do 9210 case $cc_temp in 9211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9213 \-*) ;; 9214 *) break;; 9215 esac 9216 done 9217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9218 9219 case $host_os in 9220 cygwin* | mingw* | pw32*) 9221 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9222 # When not using gcc, we currently assume that we are using 9223 # Microsoft Visual C++. 9224 if test "$GCC" != yes; then 9225 with_gnu_ld=no 9226 fi 9227 ;; 9228 interix*) 9229 # we just hope/assume this is gcc and not c89 (= MSVC++) 9230 with_gnu_ld=yes 9231 ;; 9232 openbsd*) 9233 with_gnu_ld=no 9234 ;; 9235 esac 9236 9237 ld_shlibs=yes 9238 if test "$with_gnu_ld" = yes; then 9239 # If archive_cmds runs LD, not CC, wlarc should be empty 9240 wlarc='${wl}' 9241 9242 # Set some defaults for GNU ld with shared library support. These 9243 # are reset later if shared libraries are not supported. Putting them 9244 # here allows them to be overridden if necessary. 9245 runpath_var=LD_RUN_PATH 9246 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9247 export_dynamic_flag_spec='${wl}--export-dynamic' 9248 # ancient GNU ld didn't support --whole-archive et. al. 9249 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9250 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9251 else 9252 whole_archive_flag_spec= 9253 fi 9254 supports_anon_versioning=no 9255 case `$LD -v 2>/dev/null` in 9256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9259 *\ 2.11.*) ;; # other 2.11 versions 9260 *) supports_anon_versioning=yes ;; 9261 esac 9262 9263 # See if GNU ld supports shared libraries. 9264 case $host_os in 9265 aix3* | aix4* | aix5*) 9266 # On AIX/PPC, the GNU linker is very broken 9267 if test "$host_cpu" != ia64; then 9268 ld_shlibs=no 9269 cat <<EOF 1>&2 9270 9271 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 9272 *** to be unable to reliably create shared libraries on AIX. 9273 *** Therefore, libtool is disabling shared libraries support. If you 9274 *** really care for shared libraries, you may want to modify your PATH 9275 *** so that a non-GNU linker is found, and then restart. 9276 9277 EOF 9278 fi 9279 ;; 9280 9281 amigaos*) 9282 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9283 hardcode_libdir_flag_spec='-L$libdir' 9284 hardcode_minus_L=yes 9285 9286 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 9287 # that the semantics of dynamic libraries on AmigaOS, at least up 9288 # to version 4, is to share data among multiple programs linked 9289 # with the same dynamic library. Since this doesn't match the 9290 # behavior of shared libraries on other platforms, we can't use 9291 # them. 9292 ld_shlibs=no 9293 ;; 9294 9295 beos*) 9296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9297 allow_undefined_flag=unsupported 9298 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9299 # support --undefined. This deserves some investigation. FIXME 9300 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9301 else 9302 ld_shlibs=no 9303 fi 9304 ;; 9305 9306 cygwin* | mingw* | pw32*) 9307 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9308 # as there is no search path for DLLs. 9309 hardcode_libdir_flag_spec='-L$libdir' 9310 allow_undefined_flag=unsupported 9311 always_export_symbols=no 9312 enable_shared_with_static_runtimes=yes 9313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 9314 9315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9317 # If the export-symbols file already is a .def file (1st line 9318 # is EXPORTS), use it as is; otherwise, prepend... 9319 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9320 cp $export_symbols $output_objdir/$soname.def; 9321 else 9322 echo EXPORTS > $output_objdir/$soname.def; 9323 cat $export_symbols >> $output_objdir/$soname.def; 9324 fi~ 9325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9326 else 9327 ld_shlibs=no 9328 fi 9329 ;; 9330 9331 interix3*) 9332 hardcode_direct=no 9333 hardcode_shlibpath_var=no 9334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9335 export_dynamic_flag_spec='${wl}-E' 9336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9337 # Instead, shared libraries are loaded at an image base (0x10000000 by 9338 # default) and relocated if they conflict, which is a slow very memory 9339 # consuming and fragmenting process. To avoid this, we pick a random, 9340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9341 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9343 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9344 ;; 9345 9346 linux*) 9347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9348 tmp_addflag= 9349 case $cc_basename,$host_cpu in 9350 pgcc*) # Portland Group C compiler 9351 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9352 tmp_addflag=' $pic_flag' 9353 ;; 9354 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9355 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9356 tmp_addflag=' $pic_flag -Mnomain' ;; 9357 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9358 tmp_addflag=' -i_dynamic' ;; 9359 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9360 tmp_addflag=' -i_dynamic -nofor_main' ;; 9361 ifc* | ifort*) # Intel Fortran compiler 9362 tmp_addflag=' -nofor_main' ;; 9363 esac 9364 case `$CC -V 2>&1 | sed 5q` in 9365 *Sun\ C*) # Sun C 5.9 9366 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 9367 tmp_sharedflag='-G' ;; 9368 *Sun\ F*) # Sun Fortran 8.3 9369 tmp_sharedflag='-G' ;; 9370 *) 9371 tmp_sharedflag='-shared' ;; 9372 esac 9373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9374 9375 if test $supports_anon_versioning = yes; then 9376 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9378 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9380 fi 9381 else 9382 ld_shlibs=no 9383 fi 9384 ;; 9385 9386 netbsd*) 9387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9388 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9389 wlarc= 9390 else 9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9393 fi 9394 ;; 9395 9396 solaris*) 9397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9398 ld_shlibs=no 9399 cat <<EOF 1>&2 9400 9401 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9402 *** create shared libraries on Solaris systems. Therefore, libtool 9403 *** is disabling shared libraries support. We urge you to upgrade GNU 9404 *** binutils to release 2.9.1 or newer. Another option is to modify 9405 *** your PATH or compiler configuration so that the native linker is 9406 *** used, and then restart. 9407 9408 EOF 9409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9412 else 9413 ld_shlibs=no 9414 fi 9415 ;; 9416 9417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9418 case `$LD -v 2>&1` in 9419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9420 ld_shlibs=no 9421 cat <<_LT_EOF 1>&2 9422 9423 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9424 *** reliably create shared libraries on SCO systems. Therefore, libtool 9425 *** is disabling shared libraries support. We urge you to upgrade GNU 9426 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9427 *** your PATH or compiler configuration so that the native linker is 9428 *** used, and then restart. 9429 9430 _LT_EOF 9431 ;; 9432 *) 9433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9434 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9437 else 9438 ld_shlibs=no 9439 fi 9440 ;; 9441 esac 9442 ;; 9443 9444 sunos4*) 9445 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9446 wlarc= 9447 hardcode_direct=yes 9448 hardcode_shlibpath_var=no 9449 ;; 9450 9451 *) 9452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9455 else 9456 ld_shlibs=no 9457 fi 9458 ;; 9459 esac 9460 9461 if test "$ld_shlibs" = no; then 9462 runpath_var= 9463 hardcode_libdir_flag_spec= 9464 export_dynamic_flag_spec= 9465 whole_archive_flag_spec= 9466 fi 9467 else 9468 # PORTME fill in a description of your system's linker (not GNU ld) 9469 case $host_os in 9470 aix3*) 9471 allow_undefined_flag=unsupported 9472 always_export_symbols=yes 9473 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9474 # Note: this linker hardcodes the directories in LIBPATH if there 9475 # are no directories specified by -L. 9476 hardcode_minus_L=yes 9477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9478 # Neither direct hardcoding nor static linking is supported with a 9479 # broken collect2. 9480 hardcode_direct=unsupported 9481 fi 9482 ;; 9483 9484 aix4* | aix5*) 9485 if test "$host_cpu" = ia64; then 9486 # On IA64, the linker does run time linking by default, so we don't 9487 # have to do anything special. 9488 aix_use_runtimelinking=no 9489 exp_sym_flag='-Bexport' 9490 no_entry_flag="" 9491 else 9492 # If we're using GNU nm, then we don't want the "-C" option. 9493 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9495 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9496 else 9497 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9498 fi 9499 aix_use_runtimelinking=no 9500 9501 # Test if we are trying to use run time linking or normal 9502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9503 # need to do runtime linking. 9504 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9505 for ld_flag in $LDFLAGS; do 9506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9507 aix_use_runtimelinking=yes 9508 break 9509 fi 9510 done 9511 ;; 9512 esac 9513 9514 exp_sym_flag='-bexport' 9515 no_entry_flag='-bnoentry' 9516 fi 9517 9518 # When large executables or shared objects are built, AIX ld can 9519 # have problems creating the table of contents. If linking a library 9520 # or program results in "error TOC overflow" add -mminimal-toc to 9521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9523 9524 archive_cmds='' 9525 hardcode_direct=yes 9526 hardcode_libdir_separator=':' 9527 link_all_deplibs=yes 9528 9529 if test "$GCC" = yes; then 9530 case $host_os in aix4.[012]|aix4.[012].*) 9531 # We only want to do this on AIX 4.2 and lower, the check 9532 # below for broken collect2 doesn't work under 4.3+ 9533 collect2name=`${CC} -print-prog-name=collect2` 9534 if test -f "$collect2name" && \ 9535 strings "$collect2name" | grep resolve_lib_name >/dev/null 9536 then 9537 # We have reworked collect2 9538 hardcode_direct=yes 9539 else 9540 # We have old collect2 9541 hardcode_direct=unsupported 9542 # It fails to find uninstalled libraries when the uninstalled 9543 # path is not listed in the libpath. Setting hardcode_minus_L 9544 # to unsupported forces relinking 9545 hardcode_minus_L=yes 9546 hardcode_libdir_flag_spec='-L$libdir' 9547 hardcode_libdir_separator= 9548 fi 9549 ;; 9550 esac 9551 shared_flag='-shared' 9552 if test "$aix_use_runtimelinking" = yes; then 9553 shared_flag="$shared_flag "'${wl}-G' 9554 fi 9555 else 9556 # not using gcc 9557 if test "$host_cpu" = ia64; then 9558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9559 # chokes on -Wl,-G. The following line is correct: 9560 shared_flag='-G' 9561 else 9562 if test "$aix_use_runtimelinking" = yes; then 9563 shared_flag='${wl}-G' 9564 else 9565 shared_flag='${wl}-bM:SRE' 9566 fi 9567 fi 9568 fi 9569 9570 # It seems that -bexpall does not export symbols beginning with 9571 # underscore (_), so it is better to generate a list of symbols to export. 9572 always_export_symbols=yes 9573 if test "$aix_use_runtimelinking" = yes; then 9574 # Warning - without using the other runtime loading flags (-brtl), 9575 # -berok will link without error, but may produce a broken library. 9576 allow_undefined_flag='-berok' 9577 # Determine the default libpath from the value encoded in an empty executable. 9578 cat >conftest.$ac_ext <<_ACEOF 9579 /* confdefs.h. */ 9580 _ACEOF 9581 cat confdefs.h >>conftest.$ac_ext 9582 cat >>conftest.$ac_ext <<_ACEOF 9583 /* end confdefs.h. */ 9584 9585 int 9586 main () 9587 { 9588 9589 ; 9590 return 0; 9591 } 9592 _ACEOF 9593 rm -f conftest.$ac_objext conftest$ac_exeext 9594 if { (ac_try="$ac_link" 9595 case "(($ac_try" in 9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9597 *) ac_try_echo=$ac_try;; 9598 esac 9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9600 (eval "$ac_link") 2>conftest.er1 9601 ac_status=$? 9602 grep -v '^ *+' conftest.er1 >conftest.err 9603 rm -f conftest.er1 9604 cat conftest.err >&5 9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9606 (exit $ac_status); } && { 9607 test -z "$ac_c_werror_flag" || 9608 test ! -s conftest.err 9609 } && test -s conftest$ac_exeext && 9610 $as_test_x conftest$ac_exeext; then 9611 9612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9613 }'` 9614 # Check for a 64-bit object if we didn't find anything. 9615 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9616 }'`; fi 9617 else 9618 echo "$as_me: failed program was:" >&5 9619 sed 's/^/| /' conftest.$ac_ext >&5 9620 9621 9622 fi 9623 9624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9625 conftest$ac_exeext conftest.$ac_ext 9626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9627 9628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9629 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9630 else 9631 if test "$host_cpu" = ia64; then 9632 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9633 allow_undefined_flag="-z nodefs" 9634 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9635 else 9636 # Determine the default libpath from the value encoded in an empty executable. 9637 cat >conftest.$ac_ext <<_ACEOF 9638 /* confdefs.h. */ 9639 _ACEOF 9640 cat confdefs.h >>conftest.$ac_ext 9641 cat >>conftest.$ac_ext <<_ACEOF 9642 /* end confdefs.h. */ 9643 9644 int 9645 main () 9646 { 9647 9648 ; 9649 return 0; 9650 } 9651 _ACEOF 9652 rm -f conftest.$ac_objext conftest$ac_exeext 9653 if { (ac_try="$ac_link" 9654 case "(($ac_try" in 9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9656 *) ac_try_echo=$ac_try;; 9657 esac 9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9659 (eval "$ac_link") 2>conftest.er1 9660 ac_status=$? 9661 grep -v '^ *+' conftest.er1 >conftest.err 9662 rm -f conftest.er1 9663 cat conftest.err >&5 9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9665 (exit $ac_status); } && { 9666 test -z "$ac_c_werror_flag" || 9667 test ! -s conftest.err 9668 } && test -s conftest$ac_exeext && 9669 $as_test_x conftest$ac_exeext; then 9670 9671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9672 }'` 9673 # Check for a 64-bit object if we didn't find anything. 9674 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9675 }'`; fi 9676 else 9677 echo "$as_me: failed program was:" >&5 9678 sed 's/^/| /' conftest.$ac_ext >&5 9679 9680 9681 fi 9682 9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9684 conftest$ac_exeext conftest.$ac_ext 9685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9686 9687 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9688 # Warning - without using the other run time loading flags, 9689 # -berok will link without error, but may produce a broken library. 9690 no_undefined_flag=' ${wl}-bernotok' 9691 allow_undefined_flag=' ${wl}-berok' 9692 # Exported symbols can be pulled into shared objects from archives 9693 whole_archive_flag_spec='$convenience' 9694 archive_cmds_need_lc=yes 9695 # This is similar to how AIX traditionally builds its shared libraries. 9696 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9697 fi 9698 fi 9699 ;; 9700 9701 amigaos*) 9702 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9703 hardcode_libdir_flag_spec='-L$libdir' 9704 hardcode_minus_L=yes 9705 # see comment about different semantics on the GNU ld section 9706 ld_shlibs=no 9707 ;; 9708 9709 bsdi[45]*) 9710 export_dynamic_flag_spec=-rdynamic 9711 ;; 9712 9713 cygwin* | mingw* | pw32*) 9714 # When not using gcc, we currently assume that we are using 9715 # Microsoft Visual C++. 9716 # hardcode_libdir_flag_spec is actually meaningless, as there is 9717 # no search path for DLLs. 9718 hardcode_libdir_flag_spec=' ' 9719 allow_undefined_flag=unsupported 9720 # Tell ltmain to make .lib files, not .a files. 9721 libext=lib 9722 # Tell ltmain to make .dll files, not .so files. 9723 shrext_cmds=".dll" 9724 # FIXME: Setting linknames here is a bad hack. 9725 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9726 # The linker will automatically build a .lib file if we build a DLL. 9727 old_archive_From_new_cmds='true' 9728 # FIXME: Should let the user specify the lib program. 9729 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9730 fix_srcfile_path='`cygpath -w "$srcfile"`' 9731 enable_shared_with_static_runtimes=yes 9732 ;; 9733 9734 darwin* | rhapsody*) 9735 case $host_os in 9736 rhapsody* | darwin1.[012]) 9737 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9738 ;; 9739 *) # Darwin 1.3 on 9740 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9741 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9742 else 9743 case ${MACOSX_DEPLOYMENT_TARGET} in 9744 10.[012]) 9745 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9746 ;; 9747 10.*) 9748 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9749 ;; 9750 esac 9751 fi 9752 ;; 9753 esac 9754 archive_cmds_need_lc=no 9755 hardcode_direct=no 9756 hardcode_automatic=yes 9757 hardcode_shlibpath_var=unsupported 9758 whole_archive_flag_spec='' 9759 link_all_deplibs=yes 9760 if test "$GCC" = yes ; then 9761 output_verbose_link_cmd='echo' 9762 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9763 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9765 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9766 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9767 else 9768 case $cc_basename in 9769 xlc*) 9770 output_verbose_link_cmd='echo' 9771 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9772 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9773 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9774 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9775 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9776 ;; 9777 *) 9778 ld_shlibs=no 9779 ;; 9780 esac 9781 fi 9782 ;; 9783 9784 dgux*) 9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9786 hardcode_libdir_flag_spec='-L$libdir' 9787 hardcode_shlibpath_var=no 9788 ;; 9789 9790 freebsd1*) 9791 ld_shlibs=no 9792 ;; 9793 9794 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9795 # support. Future versions do this automatically, but an explicit c++rt0.o 9796 # does not break anything, and helps significantly (at the cost of a little 9797 # extra space). 9798 freebsd2.2*) 9799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9800 hardcode_libdir_flag_spec='-R$libdir' 9801 hardcode_direct=yes 9802 hardcode_shlibpath_var=no 9803 ;; 9804 9805 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9806 freebsd2*) 9807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9808 hardcode_direct=yes 9809 hardcode_minus_L=yes 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9814 freebsd* | kfreebsd*-gnu | dragonfly*) 9815 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9816 hardcode_libdir_flag_spec='-R$libdir' 9817 hardcode_direct=yes 9818 hardcode_shlibpath_var=no 9819 ;; 9820 9821 hpux9*) 9822 if test "$GCC" = yes; then 9823 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9824 else 9825 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9826 fi 9827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9828 hardcode_libdir_separator=: 9829 hardcode_direct=yes 9830 9831 # hardcode_minus_L: Not really in the search PATH, 9832 # but as the default location of the library. 9833 hardcode_minus_L=yes 9834 export_dynamic_flag_spec='${wl}-E' 9835 ;; 9836 9837 hpux10*) 9838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9840 else 9841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9842 fi 9843 if test "$with_gnu_ld" = no; then 9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9845 hardcode_libdir_separator=: 9846 9847 hardcode_direct=yes 9848 export_dynamic_flag_spec='${wl}-E' 9849 9850 # hardcode_minus_L: Not really in the search PATH, 9851 # but as the default location of the library. 9852 hardcode_minus_L=yes 9853 fi 9854 ;; 9855 9856 hpux11*) 9857 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9858 case $host_cpu in 9859 hppa*64*) 9860 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9861 ;; 9862 ia64*) 9863 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9864 ;; 9865 *) 9866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9867 ;; 9868 esac 9869 else 9870 case $host_cpu in 9871 hppa*64*) 9872 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9873 ;; 9874 ia64*) 9875 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9876 ;; 9877 *) 9878 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9879 ;; 9880 esac 9881 fi 9882 if test "$with_gnu_ld" = no; then 9883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9884 hardcode_libdir_separator=: 9885 9886 case $host_cpu in 9887 hppa*64*|ia64*) 9888 hardcode_libdir_flag_spec_ld='+b $libdir' 9889 hardcode_direct=no 9890 hardcode_shlibpath_var=no 9891 ;; 9892 *) 9893 hardcode_direct=yes 9894 export_dynamic_flag_spec='${wl}-E' 9895 9896 # hardcode_minus_L: Not really in the search PATH, 9897 # but as the default location of the library. 9898 hardcode_minus_L=yes 9899 ;; 9900 esac 9901 fi 9902 ;; 9903 9904 irix5* | irix6* | nonstopux*) 9905 if test "$GCC" = yes; then 9906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9907 else 9908 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9909 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9910 fi 9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9912 hardcode_libdir_separator=: 9913 link_all_deplibs=yes 9914 ;; 9915 9916 netbsd*) 9917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9919 else 9920 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9921 fi 9922 hardcode_libdir_flag_spec='-R$libdir' 9923 hardcode_direct=yes 9924 hardcode_shlibpath_var=no 9925 ;; 9926 9927 newsos6) 9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9929 hardcode_direct=yes 9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9931 hardcode_libdir_separator=: 9932 hardcode_shlibpath_var=no 9933 ;; 9934 9935 openbsd*) 9936 hardcode_direct=yes 9937 hardcode_shlibpath_var=no 9938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9940 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9942 export_dynamic_flag_spec='${wl}-E' 9943 else 9944 case $host_os in 9945 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9947 hardcode_libdir_flag_spec='-R$libdir' 9948 ;; 9949 *) 9950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9951 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9952 ;; 9953 esac 9954 fi 9955 ;; 9956 9957 os2*) 9958 hardcode_libdir_flag_spec='-L$libdir' 9959 hardcode_minus_L=yes 9960 allow_undefined_flag=unsupported 9961 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9962 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9963 ;; 9964 9965 osf3*) 9966 if test "$GCC" = yes; then 9967 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9968 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9969 else 9970 allow_undefined_flag=' -expect_unresolved \*' 9971 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9972 fi 9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9974 hardcode_libdir_separator=: 9975 ;; 9976 9977 osf4* | osf5*) # as osf3* with the addition of -msym flag 9978 if test "$GCC" = yes; then 9979 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9982 else 9983 allow_undefined_flag=' -expect_unresolved \*' 9984 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9985 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9986 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 9987 9988 # Both c and cxx compiler support -rpath directly 9989 hardcode_libdir_flag_spec='-rpath $libdir' 9990 fi 9991 hardcode_libdir_separator=: 9992 ;; 9993 9994 solaris*) 9995 no_undefined_flag=' -z text' 9996 if test "$GCC" = yes; then 9997 wlarc='${wl}' 9998 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9999 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10000 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10001 else 10002 wlarc='' 10003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10004 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10006 fi 10007 hardcode_libdir_flag_spec='-R$libdir' 10008 hardcode_shlibpath_var=no 10009 case $host_os in 10010 solaris2.[0-5] | solaris2.[0-5].*) ;; 10011 *) 10012 # The compiler driver will combine linker options so we 10013 # cannot just pass the convience library names through 10014 # without $wl, iff we do not link with $LD. 10015 # Luckily, gcc supports the same syntax we need for Sun Studio. 10016 # Supported since Solaris 2.6 (maybe 2.5.1?) 10017 case $wlarc in 10018 '') 10019 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 10020 *) 10021 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 10022 esac ;; 10023 esac 10024 link_all_deplibs=yes 10025 ;; 10026 10027 sunos4*) 10028 if test "x$host_vendor" = xsequent; then 10029 # Use $CC to link under sequent, because it throws in some extra .o 10030 # files that make .init and .fini sections work. 10031 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10032 else 10033 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10034 fi 10035 hardcode_libdir_flag_spec='-L$libdir' 10036 hardcode_direct=yes 10037 hardcode_minus_L=yes 10038 hardcode_shlibpath_var=no 10039 ;; 10040 10041 sysv4) 10042 case $host_vendor in 10043 sni) 10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10045 hardcode_direct=yes # is this really true??? 10046 ;; 10047 siemens) 10048 ## LD is ld it makes a PLAMLIB 10049 ## CC just makes a GrossModule. 10050 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10051 reload_cmds='$CC -r -o $output$reload_objs' 10052 hardcode_direct=no 10053 ;; 10054 motorola) 10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10056 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10057 ;; 10058 esac 10059 runpath_var='LD_RUN_PATH' 10060 hardcode_shlibpath_var=no 10061 ;; 10062 10063 sysv4.3*) 10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10065 hardcode_shlibpath_var=no 10066 export_dynamic_flag_spec='-Bexport' 10067 ;; 10068 10069 sysv4*MP*) 10070 if test -d /usr/nec; then 10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10072 hardcode_shlibpath_var=no 10073 runpath_var=LD_RUN_PATH 10074 hardcode_runpath_var=yes 10075 ld_shlibs=yes 10076 fi 10077 ;; 10078 10079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 10080 no_undefined_flag='${wl}-z,text' 10081 archive_cmds_need_lc=no 10082 hardcode_shlibpath_var=no 10083 runpath_var='LD_RUN_PATH' 10084 10085 if test "$GCC" = yes; then 10086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10088 else 10089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10091 fi 10092 ;; 10093 10094 sysv5* | sco3.2v5* | sco5v6*) 10095 # Note: We can NOT use -z defs as we might desire, because we do not 10096 # link with -lc, and that would cause any symbols used from libc to 10097 # always be unresolved, which means just about no library would 10098 # ever link correctly. If we're not using GNU ld we use -z text 10099 # though, which does catch some bad symbols but isn't as heavy-handed 10100 # as -z defs. 10101 no_undefined_flag='${wl}-z,text' 10102 allow_undefined_flag='${wl}-z,nodefs' 10103 archive_cmds_need_lc=no 10104 hardcode_shlibpath_var=no 10105 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10106 hardcode_libdir_separator=':' 10107 link_all_deplibs=yes 10108 export_dynamic_flag_spec='${wl}-Bexport' 10109 runpath_var='LD_RUN_PATH' 10110 10111 if test "$GCC" = yes; then 10112 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10114 else 10115 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10117 fi 10118 ;; 10119 10120 uts4*) 10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10122 hardcode_libdir_flag_spec='-L$libdir' 10123 hardcode_shlibpath_var=no 10124 ;; 10125 10126 *) 10127 ld_shlibs=no 10128 ;; 10129 esac 10130 fi 10131 10132 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10133 echo "${ECHO_T}$ld_shlibs" >&6; } 10134 test "$ld_shlibs" = no && can_build_shared=no 10135 10136 # 10137 # Do we need to explicitly link libc? 10138 # 10139 case "x$archive_cmds_need_lc" in 10140 x|xyes) 10141 # Assume -lc should be added 10142 archive_cmds_need_lc=yes 10143 10144 if test "$enable_shared" = yes && test "$GCC" = yes; then 10145 case $archive_cmds in 10146 *'~'*) 10147 # FIXME: we may have to deal with multi-command sequences. 10148 ;; 10149 '$CC '*) 10150 # Test whether the compiler implicitly links with -lc since on some 10151 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10152 # to ld, don't add -lc before -lgcc. 10153 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10154 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10155 $rm conftest* 10156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10157 10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10159 (eval $ac_compile) 2>&5 10160 ac_status=$? 10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10162 (exit $ac_status); } 2>conftest.err; then 10163 soname=conftest 10164 lib=conftest 10165 libobjs=conftest.$ac_objext 10166 deplibs= 10167 wl=$lt_prog_compiler_wl 10168 pic_flag=$lt_prog_compiler_pic 10169 compiler_flags=-v 10170 linker_flags=-v 10171 verstring= 10172 output_objdir=. 10173 libname=conftest 10174 lt_save_allow_undefined_flag=$allow_undefined_flag 10175 allow_undefined_flag= 10176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10177 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10178 ac_status=$? 10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10180 (exit $ac_status); } 10181 then 10182 archive_cmds_need_lc=no 10183 else 10184 archive_cmds_need_lc=yes 10185 fi 10186 allow_undefined_flag=$lt_save_allow_undefined_flag 10187 else 10188 cat conftest.err 1>&5 10189 fi 10190 $rm conftest* 10191 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10192 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10193 ;; 10194 esac 10195 fi 10196 ;; 10197 esac 10198 10199 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10201 library_names_spec= 10202 libname_spec='lib$name' 10203 soname_spec= 10204 shrext_cmds=".so" 10205 postinstall_cmds= 10206 postuninstall_cmds= 10207 finish_cmds= 10208 finish_eval= 10209 shlibpath_var= 10210 shlibpath_overrides_runpath=unknown 10211 version_type=none 10212 dynamic_linker="$host_os ld.so" 10213 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10214 if test "$GCC" = yes; then 10215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10216 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10217 # if the path contains ";" then we assume it to be the separator 10218 # otherwise default to the standard path separator (i.e. ":") - it is 10219 # assumed that no part of a normal pathname contains ";" but that should 10220 # okay in the real world where ";" in dirpaths is itself problematic. 10221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10222 else 10223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10224 fi 10225 else 10226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10227 fi 10228 need_lib_prefix=unknown 10229 hardcode_into_libs=no 10230 10231 # when you set need_version to no, make sure it does not cause -set_version 10232 # flags to be left without arguments 10233 need_version=unknown 10234 10235 case $host_os in 10236 aix3*) 10237 version_type=linux 10238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10239 shlibpath_var=LIBPATH 10240 10241 # AIX 3 has no versioning support, so we append a major version to the name. 10242 soname_spec='${libname}${release}${shared_ext}$major' 10243 ;; 10244 10245 aix4* | aix5*) 10246 version_type=linux 10247 need_lib_prefix=no 10248 need_version=no 10249 hardcode_into_libs=yes 10250 if test "$host_cpu" = ia64; then 10251 # AIX 5 supports IA64 10252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10253 shlibpath_var=LD_LIBRARY_PATH 10254 else 10255 # With GCC up to 2.95.x, collect2 would create an import file 10256 # for dependence libraries. The import file would start with 10257 # the line `#! .'. This would cause the generated library to 10258 # depend on `.', always an invalid library. This was fixed in 10259 # development snapshots of GCC prior to 3.0. 10260 case $host_os in 10261 aix4 | aix4.[01] | aix4.[01].*) 10262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10263 echo ' yes ' 10264 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10265 : 10266 else 10267 can_build_shared=no 10268 fi 10269 ;; 10270 esac 10271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10272 # soname into executable. Probably we can add versioning support to 10273 # collect2, so additional links can be useful in future. 10274 if test "$aix_use_runtimelinking" = yes; then 10275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10276 # instead of lib<name>.a to let people know that these are not 10277 # typical AIX shared libraries. 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10279 else 10280 # We preserve .a as extension for shared libraries through AIX4.2 10281 # and later when we are not doing run time linking. 10282 library_names_spec='${libname}${release}.a $libname.a' 10283 soname_spec='${libname}${release}${shared_ext}$major' 10284 fi 10285 shlibpath_var=LIBPATH 10286 fi 10287 ;; 10288 10289 amigaos*) 10290 library_names_spec='$libname.ixlibrary $libname.a' 10291 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10292 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10293 ;; 10294 10295 beos*) 10296 library_names_spec='${libname}${shared_ext}' 10297 dynamic_linker="$host_os ld.so" 10298 shlibpath_var=LIBRARY_PATH 10299 ;; 10300 10301 bsdi[45]*) 10302 version_type=linux 10303 need_version=no 10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10305 soname_spec='${libname}${release}${shared_ext}$major' 10306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10307 shlibpath_var=LD_LIBRARY_PATH 10308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10310 # the default ld.so.conf also contains /usr/contrib/lib and 10311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10312 # libtool to hard-code these into programs 10313 ;; 10314 10315 cygwin* | mingw* | pw32*) 10316 version_type=windows 10317 shrext_cmds=".dll" 10318 need_version=no 10319 need_lib_prefix=no 10320 10321 case $GCC,$host_os in 10322 yes,cygwin* | yes,mingw* | yes,pw32*) 10323 library_names_spec='$libname.dll.a' 10324 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10325 postinstall_cmds='base_file=`basename \${file}`~ 10326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10327 dldir=$destdir/`dirname \$dlpath`~ 10328 test -d \$dldir || mkdir -p \$dldir~ 10329 $install_prog $dir/$dlname \$dldir/$dlname~ 10330 chmod a+x \$dldir/$dlname' 10331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10332 dlpath=$dir/\$dldll~ 10333 $rm \$dlpath' 10334 shlibpath_overrides_runpath=yes 10335 10336 case $host_os in 10337 cygwin*) 10338 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10339 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10340 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10341 ;; 10342 mingw*) 10343 # MinGW DLLs use traditional 'lib' prefix 10344 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10345 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10346 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10347 # It is most probably a Windows format PATH printed by 10348 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10349 # path with ; separators, and with drive letters. We can handle the 10350 # drive letters (cygwin fileutils understands them), so leave them, 10351 # especially as we might pass files found there to a mingw objdump, 10352 # which wouldn't understand a cygwinified path. Ahh. 10353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10354 else 10355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10356 fi 10357 ;; 10358 pw32*) 10359 # pw32 DLLs use 'pw' prefix rather than 'lib' 10360 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10361 ;; 10362 esac 10363 ;; 10364 10365 *) 10366 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10367 ;; 10368 esac 10369 dynamic_linker='Win32 ld.exe' 10370 # FIXME: first we should search . and the directory the executable is in 10371 shlibpath_var=PATH 10372 ;; 10373 10374 darwin* | rhapsody*) 10375 dynamic_linker="$host_os dyld" 10376 version_type=darwin 10377 need_lib_prefix=no 10378 need_version=no 10379 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10380 soname_spec='${libname}${release}${major}$shared_ext' 10381 shlibpath_overrides_runpath=yes 10382 shlibpath_var=DYLD_LIBRARY_PATH 10383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10384 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10385 if test "$GCC" = yes; then 10386 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 10387 else 10388 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10389 fi 10390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10391 ;; 10392 10393 dgux*) 10394 version_type=linux 10395 need_lib_prefix=no 10396 need_version=no 10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10398 soname_spec='${libname}${release}${shared_ext}$major' 10399 shlibpath_var=LD_LIBRARY_PATH 10400 ;; 10401 10402 freebsd1*) 10403 dynamic_linker=no 10404 ;; 10405 10406 kfreebsd*-gnu) 10407 version_type=linux 10408 need_lib_prefix=no 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 shlibpath_var=LD_LIBRARY_PATH 10413 shlibpath_overrides_runpath=no 10414 hardcode_into_libs=yes 10415 dynamic_linker='GNU ld.so' 10416 ;; 10417 10418 freebsd* | dragonfly*) 10419 # DragonFly does not have aout. When/if they implement a new 10420 # versioning mechanism, adjust this. 10421 if test -x /usr/bin/objformat; then 10422 objformat=`/usr/bin/objformat` 10423 else 10424 case $host_os in 10425 freebsd[123]*) objformat=aout ;; 10426 *) objformat=elf ;; 10427 esac 10428 fi 10429 version_type=freebsd-$objformat 10430 case $version_type in 10431 freebsd-elf*) 10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10433 need_version=no 10434 need_lib_prefix=no 10435 ;; 10436 freebsd-*) 10437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10438 need_version=yes 10439 ;; 10440 esac 10441 shlibpath_var=LD_LIBRARY_PATH 10442 case $host_os in 10443 freebsd2*) 10444 shlibpath_overrides_runpath=yes 10445 ;; 10446 freebsd3.[01]* | freebsdelf3.[01]*) 10447 shlibpath_overrides_runpath=yes 10448 hardcode_into_libs=yes 10449 ;; 10450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10452 shlibpath_overrides_runpath=no 10453 hardcode_into_libs=yes 10454 ;; 10455 freebsd*) # from 4.6 on 10456 shlibpath_overrides_runpath=yes 10457 hardcode_into_libs=yes 10458 ;; 10459 esac 10460 ;; 10461 10462 gnu*) 10463 version_type=linux 10464 need_lib_prefix=no 10465 need_version=no 10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10467 soname_spec='${libname}${release}${shared_ext}$major' 10468 shlibpath_var=LD_LIBRARY_PATH 10469 hardcode_into_libs=yes 10470 ;; 10471 10472 hpux9* | hpux10* | hpux11*) 10473 # Give a soname corresponding to the major version so that dld.sl refuses to 10474 # link against other versions. 10475 version_type=sunos 10476 need_lib_prefix=no 10477 need_version=no 10478 case $host_cpu in 10479 ia64*) 10480 shrext_cmds='.so' 10481 hardcode_into_libs=yes 10482 dynamic_linker="$host_os dld.so" 10483 shlibpath_var=LD_LIBRARY_PATH 10484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10486 soname_spec='${libname}${release}${shared_ext}$major' 10487 if test "X$HPUX_IA64_MODE" = X32; then 10488 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10489 else 10490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10491 fi 10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10493 ;; 10494 hppa*64*) 10495 shrext_cmds='.sl' 10496 hardcode_into_libs=yes 10497 dynamic_linker="$host_os dld.sl" 10498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10501 soname_spec='${libname}${release}${shared_ext}$major' 10502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10504 ;; 10505 *) 10506 shrext_cmds='.sl' 10507 dynamic_linker="$host_os dld.sl" 10508 shlibpath_var=SHLIB_PATH 10509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10511 soname_spec='${libname}${release}${shared_ext}$major' 10512 ;; 10513 esac 10514 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10515 postinstall_cmds='chmod 555 $lib' 10516 ;; 10517 10518 interix3*) 10519 version_type=linux 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 shlibpath_overrides_runpath=no 10527 hardcode_into_libs=yes 10528 ;; 10529 10530 irix5* | irix6* | nonstopux*) 10531 case $host_os in 10532 nonstopux*) version_type=nonstopux ;; 10533 *) 10534 if test "$lt_cv_prog_gnu_ld" = yes; then 10535 version_type=linux 10536 else 10537 version_type=irix 10538 fi ;; 10539 esac 10540 need_lib_prefix=no 10541 need_version=no 10542 soname_spec='${libname}${release}${shared_ext}$major' 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10544 case $host_os in 10545 irix5* | nonstopux*) 10546 libsuff= shlibsuff= 10547 ;; 10548 *) 10549 case $LD in # libtool.m4 will add one of these switches to LD 10550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10551 libsuff= shlibsuff= libmagic=32-bit;; 10552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10553 libsuff=32 shlibsuff=N32 libmagic=N32;; 10554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10555 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10556 *) libsuff= shlibsuff= libmagic=never-match;; 10557 esac 10558 ;; 10559 esac 10560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10561 shlibpath_overrides_runpath=no 10562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10564 hardcode_into_libs=yes 10565 ;; 10566 10567 # No shared lib support for Linux oldld, aout, or coff. 10568 linux*oldld* | linux*aout* | linux*coff*) 10569 dynamic_linker=no 10570 ;; 10571 10572 # This must be Linux ELF. 10573 linux*) 10574 version_type=linux 10575 need_lib_prefix=no 10576 need_version=no 10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10578 soname_spec='${libname}${release}${shared_ext}$major' 10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10580 shlibpath_var=LD_LIBRARY_PATH 10581 shlibpath_overrides_runpath=no 10582 # This implies no fast_install, which is unacceptable. 10583 # Some rework will be needed to allow for fast_install 10584 # before this can be enabled. 10585 hardcode_into_libs=yes 10586 10587 # Append ld.so.conf contents to the search path 10588 if test -f /etc/ld.so.conf; then 10589 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10590 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10591 fi 10592 10593 # We used to test for /lib/ld.so.1 and disable shared libraries on 10594 # powerpc, because MkLinux only supported shared libraries with the 10595 # GNU dynamic linker. Since this was broken with cross compilers, 10596 # most powerpc-linux boxes support dynamic linking these days and 10597 # people can always --disable-shared, the test was removed, and we 10598 # assume the GNU/Linux dynamic linker is in use. 10599 dynamic_linker='GNU/Linux ld.so' 10600 ;; 10601 10602 knetbsd*-gnu) 10603 version_type=linux 10604 need_lib_prefix=no 10605 need_version=no 10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10607 soname_spec='${libname}${release}${shared_ext}$major' 10608 shlibpath_var=LD_LIBRARY_PATH 10609 shlibpath_overrides_runpath=no 10610 hardcode_into_libs=yes 10611 dynamic_linker='GNU ld.so' 10612 ;; 10613 10614 netbsd*) 10615 version_type=sunos 10616 need_lib_prefix=no 10617 need_version=no 10618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10621 dynamic_linker='NetBSD (a.out) ld.so' 10622 else 10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10624 soname_spec='${libname}${release}${shared_ext}$major' 10625 dynamic_linker='NetBSD ld.elf_so' 10626 fi 10627 shlibpath_var=LD_LIBRARY_PATH 10628 shlibpath_overrides_runpath=yes 10629 hardcode_into_libs=yes 10630 ;; 10631 10632 newsos6) 10633 version_type=linux 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10635 shlibpath_var=LD_LIBRARY_PATH 10636 shlibpath_overrides_runpath=yes 10637 ;; 10638 10639 nto-qnx*) 10640 version_type=linux 10641 need_lib_prefix=no 10642 need_version=no 10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10644 soname_spec='${libname}${release}${shared_ext}$major' 10645 shlibpath_var=LD_LIBRARY_PATH 10646 shlibpath_overrides_runpath=yes 10647 ;; 10648 10649 openbsd*) 10650 version_type=sunos 10651 sys_lib_dlsearch_path_spec="/usr/lib" 10652 need_lib_prefix=no 10653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10654 case $host_os in 10655 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10656 *) need_version=no ;; 10657 esac 10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10660 shlibpath_var=LD_LIBRARY_PATH 10661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10662 case $host_os in 10663 openbsd2.[89] | openbsd2.[89].*) 10664 shlibpath_overrides_runpath=no 10665 ;; 10666 *) 10667 shlibpath_overrides_runpath=yes 10668 ;; 10669 esac 10670 else 10671 shlibpath_overrides_runpath=yes 10672 fi 10673 ;; 10674 10675 os2*) 10676 libname_spec='$name' 10677 shrext_cmds=".dll" 10678 need_lib_prefix=no 10679 library_names_spec='$libname${shared_ext} $libname.a' 10680 dynamic_linker='OS/2 ld.exe' 10681 shlibpath_var=LIBPATH 10682 ;; 10683 10684 osf3* | osf4* | osf5*) 10685 version_type=osf 10686 need_lib_prefix=no 10687 need_version=no 10688 soname_spec='${libname}${release}${shared_ext}$major' 10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10690 shlibpath_var=LD_LIBRARY_PATH 10691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10693 ;; 10694 10695 solaris*) 10696 version_type=linux 10697 need_lib_prefix=no 10698 need_version=no 10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10700 soname_spec='${libname}${release}${shared_ext}$major' 10701 shlibpath_var=LD_LIBRARY_PATH 10702 shlibpath_overrides_runpath=yes 10703 hardcode_into_libs=yes 10704 # ldd complains unless libraries are executable 10705 postinstall_cmds='chmod +x $lib' 10706 ;; 10707 10708 sunos4*) 10709 version_type=sunos 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10712 shlibpath_var=LD_LIBRARY_PATH 10713 shlibpath_overrides_runpath=yes 10714 if test "$with_gnu_ld" = yes; then 10715 need_lib_prefix=no 10716 fi 10717 need_version=yes 10718 ;; 10719 10720 sysv4 | sysv4.3*) 10721 version_type=linux 10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10723 soname_spec='${libname}${release}${shared_ext}$major' 10724 shlibpath_var=LD_LIBRARY_PATH 10725 case $host_vendor in 10726 sni) 10727 shlibpath_overrides_runpath=no 10728 need_lib_prefix=no 10729 export_dynamic_flag_spec='${wl}-Blargedynsym' 10730 runpath_var=LD_RUN_PATH 10731 ;; 10732 siemens) 10733 need_lib_prefix=no 10734 ;; 10735 motorola) 10736 need_lib_prefix=no 10737 need_version=no 10738 shlibpath_overrides_runpath=no 10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10740 ;; 10741 esac 10742 ;; 10743 10744 sysv4*MP*) 10745 if test -d /usr/nec ;then 10746 version_type=linux 10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10748 soname_spec='$libname${shared_ext}.$major' 10749 shlibpath_var=LD_LIBRARY_PATH 10750 fi 10751 ;; 10752 10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10754 version_type=freebsd-elf 10755 need_lib_prefix=no 10756 need_version=no 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 hardcode_into_libs=yes 10761 if test "$with_gnu_ld" = yes; then 10762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10763 shlibpath_overrides_runpath=no 10764 else 10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10766 shlibpath_overrides_runpath=yes 10767 case $host_os in 10768 sco3.2v5*) 10769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10770 ;; 10771 esac 10772 fi 10773 sys_lib_dlsearch_path_spec='/usr/lib' 10774 ;; 10775 10776 uts4*) 10777 version_type=linux 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10779 soname_spec='${libname}${release}${shared_ext}$major' 10780 shlibpath_var=LD_LIBRARY_PATH 10781 ;; 10782 10783 *) 10784 dynamic_linker=no 10785 ;; 10786 esac 10787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10788 echo "${ECHO_T}$dynamic_linker" >&6; } 10789 test "$dynamic_linker" = no && can_build_shared=no 10790 10791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10792 if test "$GCC" = yes; then 10793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10794 fi 10795 10796 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10798 hardcode_action= 10799 if test -n "$hardcode_libdir_flag_spec" || \ 10800 test -n "$runpath_var" || \ 10801 test "X$hardcode_automatic" = "Xyes" ; then 10802 10803 # We can hardcode non-existant directories. 10804 if test "$hardcode_direct" != no && 10805 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10806 # have to relink, otherwise we might link with an installed library 10807 # when we should be linking with a yet-to-be-installed one 10808 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10809 test "$hardcode_minus_L" != no; then 10810 # Linking always hardcodes the temporary library directory. 10811 hardcode_action=relink 10812 else 10813 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10814 hardcode_action=immediate 10815 fi 10816 else 10817 # We cannot hardcode anything, or else we can only hardcode existing 10818 # directories. 10819 hardcode_action=unsupported 10820 fi 10821 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 10822 echo "${ECHO_T}$hardcode_action" >&6; } 10823 10824 if test "$hardcode_action" = relink; then 10825 # Fast installation is not supported 10826 enable_fast_install=no 10827 elif test "$shlibpath_overrides_runpath" = yes || 10828 test "$enable_shared" = no; then 10829 # Fast installation is not necessary 10830 enable_fast_install=needless 10831 fi 10832 10833 striplib= 10834 old_striplib= 10835 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10839 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10840 { echo "$as_me:$LINENO: result: yes" >&5 10841 echo "${ECHO_T}yes" >&6; } 10842 else 10843 # FIXME - insert some real tests, host_os isn't really good enough 10844 case $host_os in 10845 darwin*) 10846 if test -n "$STRIP" ; then 10847 striplib="$STRIP -x" 10848 { echo "$as_me:$LINENO: result: yes" >&5 10849 echo "${ECHO_T}yes" >&6; } 10850 else 10851 { echo "$as_me:$LINENO: result: no" >&5 10852 echo "${ECHO_T}no" >&6; } 10853 fi 10854 ;; 10855 *) 10856 { echo "$as_me:$LINENO: result: no" >&5 10857 echo "${ECHO_T}no" >&6; } 10858 ;; 10859 esac 10860 fi 10861 10862 if test "x$enable_dlopen" != xyes; then 10863 enable_dlopen=unknown 10864 enable_dlopen_self=unknown 10865 enable_dlopen_self_static=unknown 10866 else 10867 lt_cv_dlopen=no 10868 lt_cv_dlopen_libs= 10869 10870 case $host_os in 10871 beos*) 10872 lt_cv_dlopen="load_add_on" 10873 lt_cv_dlopen_libs= 10874 lt_cv_dlopen_self=yes 10875 ;; 10876 10877 mingw* | pw32*) 10878 lt_cv_dlopen="LoadLibrary" 10879 lt_cv_dlopen_libs= 10880 ;; 10881 10882 cygwin*) 10883 lt_cv_dlopen="dlopen" 10884 lt_cv_dlopen_libs= 10885 ;; 10886 10887 darwin*) 10888 # if libdl is installed we need to link against it 10889 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10892 echo $ECHO_N "(cached) $ECHO_C" >&6 10893 else 10894 ac_check_lib_save_LIBS=$LIBS 10895 LIBS="-ldl $LIBS" 10896 cat >conftest.$ac_ext <<_ACEOF 10897 /* confdefs.h. */ 10898 _ACEOF 10899 cat confdefs.h >>conftest.$ac_ext 10900 cat >>conftest.$ac_ext <<_ACEOF 10901 /* end confdefs.h. */ 10902 10903 /* Override any GCC internal prototype to avoid an error. 10904 Use char because int might match the return type of a GCC 10905 builtin and then its argument prototype would still apply. */ 10906 #ifdef __cplusplus 10907 extern "C" 10908 #endif 10909 char dlopen (); 10910 int 10911 main () 10912 { 10913 return dlopen (); 10914 ; 10915 return 0; 10916 } 10917 _ACEOF 10918 rm -f conftest.$ac_objext conftest$ac_exeext 10919 if { (ac_try="$ac_link" 10920 case "(($ac_try" in 10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10922 *) ac_try_echo=$ac_try;; 10923 esac 10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10925 (eval "$ac_link") 2>conftest.er1 10926 ac_status=$? 10927 grep -v '^ *+' conftest.er1 >conftest.err 10928 rm -f conftest.er1 10929 cat conftest.err >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); } && { 10932 test -z "$ac_c_werror_flag" || 10933 test ! -s conftest.err 10934 } && test -s conftest$ac_exeext && 10935 $as_test_x conftest$ac_exeext; then 10936 ac_cv_lib_dl_dlopen=yes 10937 else 10938 echo "$as_me: failed program was:" >&5 10939 sed 's/^/| /' conftest.$ac_ext >&5 10940 10941 ac_cv_lib_dl_dlopen=no 10942 fi 10943 10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10945 conftest$ac_exeext conftest.$ac_ext 10946 LIBS=$ac_check_lib_save_LIBS 10947 fi 10948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10950 if test $ac_cv_lib_dl_dlopen = yes; then 10951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10952 else 10953 10954 lt_cv_dlopen="dyld" 10955 lt_cv_dlopen_libs= 10956 lt_cv_dlopen_self=yes 10957 10958 fi 10959 10960 ;; 10961 10962 *) 10963 { echo "$as_me:$LINENO: checking for shl_load" >&5 10964 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10965 if test "${ac_cv_func_shl_load+set}" = set; then 10966 echo $ECHO_N "(cached) $ECHO_C" >&6 10967 else 10968 cat >conftest.$ac_ext <<_ACEOF 10969 /* confdefs.h. */ 10970 _ACEOF 10971 cat confdefs.h >>conftest.$ac_ext 10972 cat >>conftest.$ac_ext <<_ACEOF 10973 /* end confdefs.h. */ 10974 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10976 #define shl_load innocuous_shl_load 10977 10978 /* System header to define __stub macros and hopefully few prototypes, 10979 which can conflict with char shl_load (); below. 10980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10981 <limits.h> exists even on freestanding compilers. */ 10982 10983 #ifdef __STDC__ 10984 # include <limits.h> 10985 #else 10986 # include <assert.h> 10987 #endif 10988 10989 #undef shl_load 10990 10991 /* Override any GCC internal prototype to avoid an error. 10992 Use char because int might match the return type of a GCC 10993 builtin and then its argument prototype would still apply. */ 10994 #ifdef __cplusplus 10995 extern "C" 10996 #endif 10997 char shl_load (); 10998 /* The GNU C library defines this for functions which it implements 10999 to always fail with ENOSYS. Some functions are actually named 11000 something starting with __ and the normal name is an alias. */ 11001 #if defined __stub_shl_load || defined __stub___shl_load 11002 choke me 11003 #endif 11004 11005 int 11006 main () 11007 { 11008 return shl_load (); 11009 ; 11010 return 0; 11011 } 11012 _ACEOF 11013 rm -f conftest.$ac_objext conftest$ac_exeext 11014 if { (ac_try="$ac_link" 11015 case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018 esac 11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_link") 2>conftest.er1 11021 ac_status=$? 11022 grep -v '^ *+' conftest.er1 >conftest.err 11023 rm -f conftest.er1 11024 cat conftest.err >&5 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); } && { 11027 test -z "$ac_c_werror_flag" || 11028 test ! -s conftest.err 11029 } && test -s conftest$ac_exeext && 11030 $as_test_x conftest$ac_exeext; then 11031 ac_cv_func_shl_load=yes 11032 else 11033 echo "$as_me: failed program was:" >&5 11034 sed 's/^/| /' conftest.$ac_ext >&5 11035 11036 ac_cv_func_shl_load=no 11037 fi 11038 11039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11040 conftest$ac_exeext conftest.$ac_ext 11041 fi 11042 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11043 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11044 if test $ac_cv_func_shl_load = yes; then 11045 lt_cv_dlopen="shl_load" 11046 else 11047 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11048 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11049 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11050 echo $ECHO_N "(cached) $ECHO_C" >&6 11051 else 11052 ac_check_lib_save_LIBS=$LIBS 11053 LIBS="-ldld $LIBS" 11054 cat >conftest.$ac_ext <<_ACEOF 11055 /* confdefs.h. */ 11056 _ACEOF 11057 cat confdefs.h >>conftest.$ac_ext 11058 cat >>conftest.$ac_ext <<_ACEOF 11059 /* end confdefs.h. */ 11060 11061 /* Override any GCC internal prototype to avoid an error. 11062 Use char because int might match the return type of a GCC 11063 builtin and then its argument prototype would still apply. */ 11064 #ifdef __cplusplus 11065 extern "C" 11066 #endif 11067 char shl_load (); 11068 int 11069 main () 11070 { 11071 return shl_load (); 11072 ; 11073 return 0; 11074 } 11075 _ACEOF 11076 rm -f conftest.$ac_objext conftest$ac_exeext 11077 if { (ac_try="$ac_link" 11078 case "(($ac_try" in 11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11080 *) ac_try_echo=$ac_try;; 11081 esac 11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11083 (eval "$ac_link") 2>conftest.er1 11084 ac_status=$? 11085 grep -v '^ *+' conftest.er1 >conftest.err 11086 rm -f conftest.er1 11087 cat conftest.err >&5 11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11089 (exit $ac_status); } && { 11090 test -z "$ac_c_werror_flag" || 11091 test ! -s conftest.err 11092 } && test -s conftest$ac_exeext && 11093 $as_test_x conftest$ac_exeext; then 11094 ac_cv_lib_dld_shl_load=yes 11095 else 11096 echo "$as_me: failed program was:" >&5 11097 sed 's/^/| /' conftest.$ac_ext >&5 11098 11099 ac_cv_lib_dld_shl_load=no 11100 fi 11101 11102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11103 conftest$ac_exeext conftest.$ac_ext 11104 LIBS=$ac_check_lib_save_LIBS 11105 fi 11106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11107 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11108 if test $ac_cv_lib_dld_shl_load = yes; then 11109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11110 else 11111 { echo "$as_me:$LINENO: checking for dlopen" >&5 11112 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11113 if test "${ac_cv_func_dlopen+set}" = set; then 11114 echo $ECHO_N "(cached) $ECHO_C" >&6 11115 else 11116 cat >conftest.$ac_ext <<_ACEOF 11117 /* confdefs.h. */ 11118 _ACEOF 11119 cat confdefs.h >>conftest.$ac_ext 11120 cat >>conftest.$ac_ext <<_ACEOF 11121 /* end confdefs.h. */ 11122 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11123 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11124 #define dlopen innocuous_dlopen 11125 11126 /* System header to define __stub macros and hopefully few prototypes, 11127 which can conflict with char dlopen (); below. 11128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11129 <limits.h> exists even on freestanding compilers. */ 11130 11131 #ifdef __STDC__ 11132 # include <limits.h> 11133 #else 11134 # include <assert.h> 11135 #endif 11136 11137 #undef dlopen 11138 11139 /* Override any GCC internal prototype to avoid an error. 11140 Use char because int might match the return type of a GCC 11141 builtin and then its argument prototype would still apply. */ 11142 #ifdef __cplusplus 11143 extern "C" 11144 #endif 11145 char dlopen (); 11146 /* The GNU C library defines this for functions which it implements 11147 to always fail with ENOSYS. Some functions are actually named 11148 something starting with __ and the normal name is an alias. */ 11149 #if defined __stub_dlopen || defined __stub___dlopen 11150 choke me 11151 #endif 11152 11153 int 11154 main () 11155 { 11156 return dlopen (); 11157 ; 11158 return 0; 11159 } 11160 _ACEOF 11161 rm -f conftest.$ac_objext conftest$ac_exeext 11162 if { (ac_try="$ac_link" 11163 case "(($ac_try" in 11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11165 *) ac_try_echo=$ac_try;; 11166 esac 11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11168 (eval "$ac_link") 2>conftest.er1 11169 ac_status=$? 11170 grep -v '^ *+' conftest.er1 >conftest.err 11171 rm -f conftest.er1 11172 cat conftest.err >&5 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); } && { 11175 test -z "$ac_c_werror_flag" || 11176 test ! -s conftest.err 11177 } && test -s conftest$ac_exeext && 11178 $as_test_x conftest$ac_exeext; then 11179 ac_cv_func_dlopen=yes 11180 else 11181 echo "$as_me: failed program was:" >&5 11182 sed 's/^/| /' conftest.$ac_ext >&5 11183 11184 ac_cv_func_dlopen=no 11185 fi 11186 11187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11188 conftest$ac_exeext conftest.$ac_ext 11189 fi 11190 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11191 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11192 if test $ac_cv_func_dlopen = yes; then 11193 lt_cv_dlopen="dlopen" 11194 else 11195 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11198 echo $ECHO_N "(cached) $ECHO_C" >&6 11199 else 11200 ac_check_lib_save_LIBS=$LIBS 11201 LIBS="-ldl $LIBS" 11202 cat >conftest.$ac_ext <<_ACEOF 11203 /* confdefs.h. */ 11204 _ACEOF 11205 cat confdefs.h >>conftest.$ac_ext 11206 cat >>conftest.$ac_ext <<_ACEOF 11207 /* end confdefs.h. */ 11208 11209 /* Override any GCC internal prototype to avoid an error. 11210 Use char because int might match the return type of a GCC 11211 builtin and then its argument prototype would still apply. */ 11212 #ifdef __cplusplus 11213 extern "C" 11214 #endif 11215 char dlopen (); 11216 int 11217 main () 11218 { 11219 return dlopen (); 11220 ; 11221 return 0; 11222 } 11223 _ACEOF 11224 rm -f conftest.$ac_objext conftest$ac_exeext 11225 if { (ac_try="$ac_link" 11226 case "(($ac_try" in 11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11228 *) ac_try_echo=$ac_try;; 11229 esac 11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11231 (eval "$ac_link") 2>conftest.er1 11232 ac_status=$? 11233 grep -v '^ *+' conftest.er1 >conftest.err 11234 rm -f conftest.er1 11235 cat conftest.err >&5 11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 (exit $ac_status); } && { 11238 test -z "$ac_c_werror_flag" || 11239 test ! -s conftest.err 11240 } && test -s conftest$ac_exeext && 11241 $as_test_x conftest$ac_exeext; then 11242 ac_cv_lib_dl_dlopen=yes 11243 else 11244 echo "$as_me: failed program was:" >&5 11245 sed 's/^/| /' conftest.$ac_ext >&5 11246 11247 ac_cv_lib_dl_dlopen=no 11248 fi 11249 11250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11251 conftest$ac_exeext conftest.$ac_ext 11252 LIBS=$ac_check_lib_save_LIBS 11253 fi 11254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11256 if test $ac_cv_lib_dl_dlopen = yes; then 11257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11258 else 11259 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11260 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11261 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11262 echo $ECHO_N "(cached) $ECHO_C" >&6 11263 else 11264 ac_check_lib_save_LIBS=$LIBS 11265 LIBS="-lsvld $LIBS" 11266 cat >conftest.$ac_ext <<_ACEOF 11267 /* confdefs.h. */ 11268 _ACEOF 11269 cat confdefs.h >>conftest.$ac_ext 11270 cat >>conftest.$ac_ext <<_ACEOF 11271 /* end confdefs.h. */ 11272 11273 /* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276 #ifdef __cplusplus 11277 extern "C" 11278 #endif 11279 char dlopen (); 11280 int 11281 main () 11282 { 11283 return dlopen (); 11284 ; 11285 return 0; 11286 } 11287 _ACEOF 11288 rm -f conftest.$ac_objext conftest$ac_exeext 11289 if { (ac_try="$ac_link" 11290 case "(($ac_try" in 11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11292 *) ac_try_echo=$ac_try;; 11293 esac 11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11295 (eval "$ac_link") 2>conftest.er1 11296 ac_status=$? 11297 grep -v '^ *+' conftest.er1 >conftest.err 11298 rm -f conftest.er1 11299 cat conftest.err >&5 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } && { 11302 test -z "$ac_c_werror_flag" || 11303 test ! -s conftest.err 11304 } && test -s conftest$ac_exeext && 11305 $as_test_x conftest$ac_exeext; then 11306 ac_cv_lib_svld_dlopen=yes 11307 else 11308 echo "$as_me: failed program was:" >&5 11309 sed 's/^/| /' conftest.$ac_ext >&5 11310 11311 ac_cv_lib_svld_dlopen=no 11312 fi 11313 11314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11315 conftest$ac_exeext conftest.$ac_ext 11316 LIBS=$ac_check_lib_save_LIBS 11317 fi 11318 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11319 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11320 if test $ac_cv_lib_svld_dlopen = yes; then 11321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11322 else 11323 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11324 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11326 echo $ECHO_N "(cached) $ECHO_C" >&6 11327 else 11328 ac_check_lib_save_LIBS=$LIBS 11329 LIBS="-ldld $LIBS" 11330 cat >conftest.$ac_ext <<_ACEOF 11331 /* confdefs.h. */ 11332 _ACEOF 11333 cat confdefs.h >>conftest.$ac_ext 11334 cat >>conftest.$ac_ext <<_ACEOF 11335 /* end confdefs.h. */ 11336 11337 /* Override any GCC internal prototype to avoid an error. 11338 Use char because int might match the return type of a GCC 11339 builtin and then its argument prototype would still apply. */ 11340 #ifdef __cplusplus 11341 extern "C" 11342 #endif 11343 char dld_link (); 11344 int 11345 main () 11346 { 11347 return dld_link (); 11348 ; 11349 return 0; 11350 } 11351 _ACEOF 11352 rm -f conftest.$ac_objext conftest$ac_exeext 11353 if { (ac_try="$ac_link" 11354 case "(($ac_try" in 11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11356 *) ac_try_echo=$ac_try;; 11357 esac 11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11359 (eval "$ac_link") 2>conftest.er1 11360 ac_status=$? 11361 grep -v '^ *+' conftest.er1 >conftest.err 11362 rm -f conftest.er1 11363 cat conftest.err >&5 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); } && { 11366 test -z "$ac_c_werror_flag" || 11367 test ! -s conftest.err 11368 } && test -s conftest$ac_exeext && 11369 $as_test_x conftest$ac_exeext; then 11370 ac_cv_lib_dld_dld_link=yes 11371 else 11372 echo "$as_me: failed program was:" >&5 11373 sed 's/^/| /' conftest.$ac_ext >&5 11374 11375 ac_cv_lib_dld_dld_link=no 11376 fi 11377 11378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11379 conftest$ac_exeext conftest.$ac_ext 11380 LIBS=$ac_check_lib_save_LIBS 11381 fi 11382 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11383 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11384 if test $ac_cv_lib_dld_dld_link = yes; then 11385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11386 fi 11387 11388 11389 fi 11390 11391 11392 fi 11393 11394 11395 fi 11396 11397 11398 fi 11399 11400 11401 fi 11402 11403 ;; 11404 esac 11405 11406 if test "x$lt_cv_dlopen" != xno; then 11407 enable_dlopen=yes 11408 else 11409 enable_dlopen=no 11410 fi 11411 11412 case $lt_cv_dlopen in 11413 dlopen) 11414 save_CPPFLAGS="$CPPFLAGS" 11415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11416 11417 save_LDFLAGS="$LDFLAGS" 11418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11419 11420 save_LIBS="$LIBS" 11421 LIBS="$lt_cv_dlopen_libs $LIBS" 11422 11423 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11424 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11425 if test "${lt_cv_dlopen_self+set}" = set; then 11426 echo $ECHO_N "(cached) $ECHO_C" >&6 11427 else 11428 if test "$cross_compiling" = yes; then : 11429 lt_cv_dlopen_self=cross 11430 else 11431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11432 lt_status=$lt_dlunknown 11433 cat > conftest.$ac_ext <<EOF 11434 #line 11434 "configure" 11435 #include "confdefs.h" 11436 11437 #if HAVE_DLFCN_H 11438 #include <dlfcn.h> 11439 #endif 11440 11441 #include <stdio.h> 11442 11443 #ifdef RTLD_GLOBAL 11444 # define LT_DLGLOBAL RTLD_GLOBAL 11445 #else 11446 # ifdef DL_GLOBAL 11447 # define LT_DLGLOBAL DL_GLOBAL 11448 # else 11449 # define LT_DLGLOBAL 0 11450 # endif 11451 #endif 11452 11453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11454 find out it does not work in some platform. */ 11455 #ifndef LT_DLLAZY_OR_NOW 11456 # ifdef RTLD_LAZY 11457 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11458 # else 11459 # ifdef DL_LAZY 11460 # define LT_DLLAZY_OR_NOW DL_LAZY 11461 # else 11462 # ifdef RTLD_NOW 11463 # define LT_DLLAZY_OR_NOW RTLD_NOW 11464 # else 11465 # ifdef DL_NOW 11466 # define LT_DLLAZY_OR_NOW DL_NOW 11467 # else 11468 # define LT_DLLAZY_OR_NOW 0 11469 # endif 11470 # endif 11471 # endif 11472 # endif 11473 #endif 11474 11475 #ifdef __cplusplus 11476 extern "C" void exit (int); 11477 #endif 11478 11479 void fnord() { int i=42;} 11480 int main () 11481 { 11482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11483 int status = $lt_dlunknown; 11484 11485 if (self) 11486 { 11487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11489 /* dlclose (self); */ 11490 } 11491 else 11492 puts (dlerror ()); 11493 11494 exit (status); 11495 } 11496 EOF 11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11498 (eval $ac_link) 2>&5 11499 ac_status=$? 11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11501 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11502 (./conftest; exit; ) >&5 2>/dev/null 11503 lt_status=$? 11504 case x$lt_status in 11505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11508 esac 11509 else : 11510 # compilation failed 11511 lt_cv_dlopen_self=no 11512 fi 11513 fi 11514 rm -fr conftest* 11515 11516 11517 fi 11518 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11519 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11520 11521 if test "x$lt_cv_dlopen_self" = xyes; then 11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11523 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11524 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11525 if test "${lt_cv_dlopen_self_static+set}" = set; then 11526 echo $ECHO_N "(cached) $ECHO_C" >&6 11527 else 11528 if test "$cross_compiling" = yes; then : 11529 lt_cv_dlopen_self_static=cross 11530 else 11531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11532 lt_status=$lt_dlunknown 11533 cat > conftest.$ac_ext <<EOF 11534 #line 11534 "configure" 11535 #include "confdefs.h" 11536 11537 #if HAVE_DLFCN_H 11538 #include <dlfcn.h> 11539 #endif 11540 11541 #include <stdio.h> 11542 11543 #ifdef RTLD_GLOBAL 11544 # define LT_DLGLOBAL RTLD_GLOBAL 11545 #else 11546 # ifdef DL_GLOBAL 11547 # define LT_DLGLOBAL DL_GLOBAL 11548 # else 11549 # define LT_DLGLOBAL 0 11550 # endif 11551 #endif 11552 11553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11554 find out it does not work in some platform. */ 11555 #ifndef LT_DLLAZY_OR_NOW 11556 # ifdef RTLD_LAZY 11557 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11558 # else 11559 # ifdef DL_LAZY 11560 # define LT_DLLAZY_OR_NOW DL_LAZY 11561 # else 11562 # ifdef RTLD_NOW 11563 # define LT_DLLAZY_OR_NOW RTLD_NOW 11564 # else 11565 # ifdef DL_NOW 11566 # define LT_DLLAZY_OR_NOW DL_NOW 11567 # else 11568 # define LT_DLLAZY_OR_NOW 0 11569 # endif 11570 # endif 11571 # endif 11572 # endif 11573 #endif 11574 11575 #ifdef __cplusplus 11576 extern "C" void exit (int); 11577 #endif 11578 11579 void fnord() { int i=42;} 11580 int main () 11581 { 11582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11583 int status = $lt_dlunknown; 11584 11585 if (self) 11586 { 11587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11589 /* dlclose (self); */ 11590 } 11591 else 11592 puts (dlerror ()); 11593 11594 exit (status); 11595 } 11596 EOF 11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11598 (eval $ac_link) 2>&5 11599 ac_status=$? 11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11601 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11602 (./conftest; exit; ) >&5 2>/dev/null 11603 lt_status=$? 11604 case x$lt_status in 11605 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11606 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11607 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11608 esac 11609 else : 11610 # compilation failed 11611 lt_cv_dlopen_self_static=no 11612 fi 11613 fi 11614 rm -fr conftest* 11615 11616 11617 fi 11618 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11619 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11620 fi 11621 11622 CPPFLAGS="$save_CPPFLAGS" 11623 LDFLAGS="$save_LDFLAGS" 11624 LIBS="$save_LIBS" 11625 ;; 11626 esac 11627 11628 case $lt_cv_dlopen_self in 11629 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11630 *) enable_dlopen_self=unknown ;; 11631 esac 11632 11633 case $lt_cv_dlopen_self_static in 11634 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11635 *) enable_dlopen_self_static=unknown ;; 11636 esac 11637 fi 11638 11639 11640 # Report which library types will actually be built 11641 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11642 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11643 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 11644 echo "${ECHO_T}$can_build_shared" >&6; } 11645 11646 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11647 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11648 test "$can_build_shared" = "no" && enable_shared=no 11649 11650 # On AIX, shared libraries and static libraries use the same namespace, and 11651 # are all built from PIC. 11652 case $host_os in 11653 aix3*) 11654 test "$enable_shared" = yes && enable_static=no 11655 if test -n "$RANLIB"; then 11656 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11657 postinstall_cmds='$RANLIB $lib' 11658 fi 11659 ;; 11660 11661 aix4* | aix5*) 11662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11663 test "$enable_shared" = yes && enable_static=no 11664 fi 11665 ;; 11666 esac 11667 { echo "$as_me:$LINENO: result: $enable_shared" >&5 11668 echo "${ECHO_T}$enable_shared" >&6; } 11669 11670 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11671 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11672 # Make sure either enable_shared or enable_static is yes. 11673 test "$enable_shared" = yes || enable_static=yes 11674 { echo "$as_me:$LINENO: result: $enable_static" >&5 11675 echo "${ECHO_T}$enable_static" >&6; } 11676 11677 # The else clause should only fire when bootstrapping the 11678 # libtool distribution, otherwise you forgot to ship ltmain.sh 11679 # with your package, and you will get complaints that there are 11680 # no rules to generate ltmain.sh. 11681 if test -f "$ltmain"; then 11682 # See if we are running on zsh, and set the options which allow our commands through 11683 # without removal of \ escapes. 11684 if test -n "${ZSH_VERSION+set}" ; then 11685 setopt NO_GLOB_SUBST 11686 fi 11687 # Now quote all the things that may contain metacharacters while being 11688 # careful not to overquote the AC_SUBSTed values. We take copies of the 11689 # variables and quote the copies for generation of the libtool script. 11690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11691 SED SHELL STRIP \ 11692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11694 deplibs_check_method reload_flag reload_cmds need_locks \ 11695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11696 lt_cv_sys_global_symbol_to_c_name_address \ 11697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11698 old_postinstall_cmds old_postuninstall_cmds \ 11699 compiler \ 11700 CC \ 11701 LD \ 11702 lt_prog_compiler_wl \ 11703 lt_prog_compiler_pic \ 11704 lt_prog_compiler_static \ 11705 lt_prog_compiler_no_builtin_flag \ 11706 export_dynamic_flag_spec \ 11707 thread_safe_flag_spec \ 11708 whole_archive_flag_spec \ 11709 enable_shared_with_static_runtimes \ 11710 old_archive_cmds \ 11711 old_archive_from_new_cmds \ 11712 predep_objects \ 11713 postdep_objects \ 11714 predeps \ 11715 postdeps \ 11716 compiler_lib_search_path \ 11717 archive_cmds \ 11718 archive_expsym_cmds \ 11719 postinstall_cmds \ 11720 postuninstall_cmds \ 11721 old_archive_from_expsyms_cmds \ 11722 allow_undefined_flag \ 11723 no_undefined_flag \ 11724 export_symbols_cmds \ 11725 hardcode_libdir_flag_spec \ 11726 hardcode_libdir_flag_spec_ld \ 11727 hardcode_libdir_separator \ 11728 hardcode_automatic \ 11729 module_cmds \ 11730 module_expsym_cmds \ 11731 lt_cv_prog_compiler_c_o \ 11732 exclude_expsyms \ 11733 include_expsyms; do 11734 11735 case $var in 11736 old_archive_cmds | \ 11737 old_archive_from_new_cmds | \ 11738 archive_cmds | \ 11739 archive_expsym_cmds | \ 11740 module_cmds | \ 11741 module_expsym_cmds | \ 11742 old_archive_from_expsyms_cmds | \ 11743 export_symbols_cmds | \ 11744 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11745 postinstall_cmds | postuninstall_cmds | \ 11746 old_postinstall_cmds | old_postuninstall_cmds | \ 11747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11748 # Double-quote double-evaled strings. 11749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11750 ;; 11751 *) 11752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11753 ;; 11754 esac 11755 done 11756 11757 case $lt_echo in 11758 *'\$0 --fallback-echo"') 11759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11760 ;; 11761 esac 11762 11763 cfgfile="${ofile}T" 11764 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11765 $rm -f "$cfgfile" 11766 { echo "$as_me:$LINENO: creating $ofile" >&5 11767 echo "$as_me: creating $ofile" >&6;} 11768 11769 cat <<__EOF__ >> "$cfgfile" 11770 #! $SHELL 11771 11772 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11773 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11774 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 11775 # 11776 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11777 # Free Software Foundation, Inc. 11778 # 11779 # This file is part of GNU Libtool: 11780 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 11781 # 11782 # This program is free software; you can redistribute it and/or modify 11783 # it under the terms of the GNU General Public License as published by 11784 # the Free Software Foundation; either version 2 of the License, or 11785 # (at your option) any later version. 11786 # 11787 # This program is distributed in the hope that it will be useful, but 11788 # WITHOUT ANY WARRANTY; without even the implied warranty of 11789 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11790 # General Public License for more details. 11791 # 11792 # You should have received a copy of the GNU General Public License 11793 # along with this program; if not, write to the Free Software 11794 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11795 # 11796 # As a special exception to the GNU General Public License, if you 11797 # distribute this file as part of a program that contains a 11798 # configuration script generated by Autoconf, you may include it under 11799 # the same distribution terms that you use for the rest of that program. 11800 11801 # A sed program that does not truncate output. 11802 SED=$lt_SED 11803 11804 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 11805 Xsed="$SED -e 1s/^X//" 11806 11807 # The HP-UX ksh and POSIX shell print the target directory to stdout 11808 # if CDPATH is set. 11809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11810 11811 # The names of the tagged configurations supported by this script. 11812 available_tags= 11813 11814 # ### BEGIN LIBTOOL CONFIG 11815 11816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11817 11818 # Shell to use when invoking shell scripts. 11819 SHELL=$lt_SHELL 11820 11821 # Whether or not to build shared libraries. 11822 build_libtool_libs=$enable_shared 11823 11824 # Whether or not to build static libraries. 11825 build_old_libs=$enable_static 11826 11827 # Whether or not to add -lc for building shared libraries. 11828 build_libtool_need_lc=$archive_cmds_need_lc 11829 11830 # Whether or not to disallow shared libs when runtime libs are static 11831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11832 11833 # Whether or not to optimize for fast installation. 11834 fast_install=$enable_fast_install 11835 11836 # The host system. 11837 host_alias=$host_alias 11838 host=$host 11839 host_os=$host_os 11840 11841 # The build system. 11842 build_alias=$build_alias 11843 build=$build 11844 build_os=$build_os 11845 11846 # An echo program that does not interpret backslashes. 11847 echo=$lt_echo 11848 11849 # The archiver. 11850 AR=$lt_AR 11851 AR_FLAGS=$lt_AR_FLAGS 11852 11853 # A C compiler. 11854 LTCC=$lt_LTCC 11855 11856 # LTCC compiler flags. 11857 LTCFLAGS=$lt_LTCFLAGS 11858 11859 # A language-specific compiler. 11860 CC=$lt_compiler 11861 11862 # Is the compiler the GNU C compiler? 11863 with_gcc=$GCC 11864 11865 # An ERE matcher. 11866 EGREP=$lt_EGREP 11867 11868 # The linker used to build libraries. 11869 LD=$lt_LD 11870 11871 # Whether we need hard or soft links. 11872 LN_S=$lt_LN_S 11873 11874 # A BSD-compatible nm program. 11875 NM=$lt_NM 11876 11877 # A symbol stripping program 11878 STRIP=$lt_STRIP 11879 11880 # Used to examine libraries when file_magic_cmd begins "file" 11881 MAGIC_CMD=$MAGIC_CMD 11882 11883 # Used on cygwin: DLL creation program. 11884 DLLTOOL="$DLLTOOL" 11885 11886 # Used on cygwin: object dumper. 11887 OBJDUMP="$OBJDUMP" 11888 11889 # Used on cygwin: assembler. 11890 AS="$AS" 11891 11892 # The name of the directory that contains temporary libtool files. 11893 objdir=$objdir 11894 11895 # How to create reloadable object files. 11896 reload_flag=$lt_reload_flag 11897 reload_cmds=$lt_reload_cmds 11898 11899 # How to pass a linker flag through the compiler. 11900 wl=$lt_lt_prog_compiler_wl 11901 11902 # Object file suffix (normally "o"). 11903 objext="$ac_objext" 11904 11905 # Old archive suffix (normally "a"). 11906 libext="$libext" 11907 11908 # Shared library suffix (normally ".so"). 11909 shrext_cmds='$shrext_cmds' 11910 11911 # Executable file suffix (normally ""). 11912 exeext="$exeext" 11913 11914 # Additional compiler flags for building library objects. 11915 pic_flag=$lt_lt_prog_compiler_pic 11916 pic_mode=$pic_mode 11917 11918 # What is the maximum length of a command? 11919 max_cmd_len=$lt_cv_sys_max_cmd_len 11920 11921 # Does compiler simultaneously support -c and -o options? 11922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11923 11924 # Must we lock files when doing compilation? 11925 need_locks=$lt_need_locks 11926 11927 # Do we need the lib prefix for modules? 11928 need_lib_prefix=$need_lib_prefix 11929 11930 # Do we need a version for libraries? 11931 need_version=$need_version 11932 11933 # Whether dlopen is supported. 11934 dlopen_support=$enable_dlopen 11935 11936 # Whether dlopen of programs is supported. 11937 dlopen_self=$enable_dlopen_self 11938 11939 # Whether dlopen of statically linked programs is supported. 11940 dlopen_self_static=$enable_dlopen_self_static 11941 11942 # Compiler flag to prevent dynamic linking. 11943 link_static_flag=$lt_lt_prog_compiler_static 11944 11945 # Compiler flag to turn off builtin functions. 11946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11947 11948 # Compiler flag to allow reflexive dlopens. 11949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11950 11951 # Compiler flag to generate shared objects directly from archives. 11952 whole_archive_flag_spec=$lt_whole_archive_flag_spec 11953 11954 # Compiler flag to generate thread-safe objects. 11955 thread_safe_flag_spec=$lt_thread_safe_flag_spec 11956 11957 # Library versioning type. 11958 version_type=$version_type 11959 11960 # Format of library name prefix. 11961 libname_spec=$lt_libname_spec 11962 11963 # List of archive names. First name is the real one, the rest are links. 11964 # The last name is the one that the linker finds with -lNAME. 11965 library_names_spec=$lt_library_names_spec 11966 11967 # The coded name of the library, if different from the real name. 11968 soname_spec=$lt_soname_spec 11969 11970 # Commands used to build and install an old-style archive. 11971 RANLIB=$lt_RANLIB 11972 old_archive_cmds=$lt_old_archive_cmds 11973 old_postinstall_cmds=$lt_old_postinstall_cmds 11974 old_postuninstall_cmds=$lt_old_postuninstall_cmds 11975 11976 # Create an old-style archive from a shared archive. 11977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11978 11979 # Create a temporary old-style archive to link instead of a shared archive. 11980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11981 11982 # Commands used to build and install a shared archive. 11983 archive_cmds=$lt_archive_cmds 11984 archive_expsym_cmds=$lt_archive_expsym_cmds 11985 postinstall_cmds=$lt_postinstall_cmds 11986 postuninstall_cmds=$lt_postuninstall_cmds 11987 11988 # Commands used to build a loadable module (assumed same as above if empty) 11989 module_cmds=$lt_module_cmds 11990 module_expsym_cmds=$lt_module_expsym_cmds 11991 11992 # Commands to strip libraries. 11993 old_striplib=$lt_old_striplib 11994 striplib=$lt_striplib 11995 11996 # Dependencies to place before the objects being linked to create a 11997 # shared library. 11998 predep_objects=$lt_predep_objects 11999 12000 # Dependencies to place after the objects being linked to create a 12001 # shared library. 12002 postdep_objects=$lt_postdep_objects 12003 12004 # Dependencies to place before the objects being linked to create a 12005 # shared library. 12006 predeps=$lt_predeps 12007 12008 # Dependencies to place after the objects being linked to create a 12009 # shared library. 12010 postdeps=$lt_postdeps 12011 12012 # The library search path used internally by the compiler when linking 12013 # a shared library. 12014 compiler_lib_search_path=$lt_compiler_lib_search_path 12015 12016 # Method to check whether dependent libraries are shared objects. 12017 deplibs_check_method=$lt_deplibs_check_method 12018 12019 # Command to use when deplibs_check_method == file_magic. 12020 file_magic_cmd=$lt_file_magic_cmd 12021 12022 # Flag that allows shared libraries with undefined symbols to be built. 12023 allow_undefined_flag=$lt_allow_undefined_flag 12024 12025 # Flag that forces no undefined symbols. 12026 no_undefined_flag=$lt_no_undefined_flag 12027 12028 # Commands used to finish a libtool library installation in a directory. 12029 finish_cmds=$lt_finish_cmds 12030 12031 # Same as above, but a single script fragment to be evaled but not shown. 12032 finish_eval=$lt_finish_eval 12033 12034 # Take the output of nm and produce a listing of raw symbols and C names. 12035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12036 12037 # Transform the output of nm in a proper C declaration 12038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12039 12040 # Transform the output of nm in a C name address pair 12041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12042 12043 # This is the shared library runtime path variable. 12044 runpath_var=$runpath_var 12045 12046 # This is the shared library path variable. 12047 shlibpath_var=$shlibpath_var 12048 12049 # Is shlibpath searched before the hard-coded library search path? 12050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12051 12052 # How to hardcode a shared library path into an executable. 12053 hardcode_action=$hardcode_action 12054 12055 # Whether we should hardcode library paths into libraries. 12056 hardcode_into_libs=$hardcode_into_libs 12057 12058 # Flag to hardcode \$libdir into a binary during linking. 12059 # This must work even if \$libdir does not exist. 12060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12061 12062 # If ld is used when linking, flag to hardcode \$libdir into 12063 # a binary during linking. This must work even if \$libdir does 12064 # not exist. 12065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12066 12067 # Whether we need a single -rpath flag with a separated argument. 12068 hardcode_libdir_separator=$lt_hardcode_libdir_separator 12069 12070 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12071 # resulting binary. 12072 hardcode_direct=$hardcode_direct 12073 12074 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12075 # resulting binary. 12076 hardcode_minus_L=$hardcode_minus_L 12077 12078 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12079 # the resulting binary. 12080 hardcode_shlibpath_var=$hardcode_shlibpath_var 12081 12082 # Set to yes if building a shared library automatically hardcodes DIR into the library 12083 # and all subsequent libraries and executables linked against it. 12084 hardcode_automatic=$hardcode_automatic 12085 12086 # Variables whose values should be saved in libtool wrapper scripts and 12087 # restored at relink time. 12088 variables_saved_for_relink="$variables_saved_for_relink" 12089 12090 # Whether libtool must link a program against all its dependency libraries. 12091 link_all_deplibs=$link_all_deplibs 12092 12093 # Compile-time system search path for libraries 12094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12095 12096 # Run-time system search path for libraries 12097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12098 12099 # Fix the shell variable \$srcfile for the compiler. 12100 fix_srcfile_path="$fix_srcfile_path" 12101 12102 # Set to yes if exported symbols are required. 12103 always_export_symbols=$always_export_symbols 12104 12105 # The commands to list exported symbols. 12106 export_symbols_cmds=$lt_export_symbols_cmds 12107 12108 # The commands to extract the exported symbol list from a shared archive. 12109 extract_expsyms_cmds=$lt_extract_expsyms_cmds 12110 12111 # Symbols that should not be listed in the preloaded symbols. 12112 exclude_expsyms=$lt_exclude_expsyms 12113 12114 # Symbols that must always be exported. 12115 include_expsyms=$lt_include_expsyms 12116 12117 # ### END LIBTOOL CONFIG 12118 12119 __EOF__ 12120 12121 12122 case $host_os in 12123 aix3*) 12124 cat <<\EOF >> "$cfgfile" 12125 12126 # AIX sometimes has problems with the GCC collect2 program. For some 12127 # reason, if we set the COLLECT_NAMES environment variable, the problems 12128 # vanish in a puff of smoke. 12129 if test "X${COLLECT_NAMES+set}" != Xset; then 12130 COLLECT_NAMES= 12131 export COLLECT_NAMES 12132 fi 12133 EOF 12134 ;; 12135 esac 12136 12137 # We use sed instead of cat because bash on DJGPP gets confused if 12138 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12139 # text mode, it properly converts lines to CR/LF. This bash problem 12140 # is reportedly fixed, but why not run on old versions too? 12141 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12142 12143 mv -f "$cfgfile" "$ofile" || \ 12144 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12145 chmod +x "$ofile" 12146 12147 else 12148 # If there is no Makefile yet, we rely on a make rule to execute 12149 # `config.status --recheck' to rerun these tests and create the 12150 # libtool script then. 12151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12152 if test -f "$ltmain_in"; then 12153 test -f Makefile && make "$ltmain" 12154 fi 12155 fi 12156 12157 12158 ac_ext=c 12159 ac_cpp='$CPP $CPPFLAGS' 12160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12162 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12163 12164 CC="$lt_save_CC" 12165 12166 12167 # Check whether --with-tags was given. 12168 if test "${with_tags+set}" = set; then 12169 withval=$with_tags; tagnames="$withval" 12170 fi 12171 12172 12173 if test -f "$ltmain" && test -n "$tagnames"; then 12174 if test ! -f "${ofile}"; then 12175 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12176 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12177 fi 12178 12179 if test -z "$LTCC"; then 12180 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12181 if test -z "$LTCC"; then 12182 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12183 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12184 else 12185 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12186 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12187 fi 12188 fi 12189 if test -z "$LTCFLAGS"; then 12190 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12191 fi 12192 12193 # Extract list of available tagged configurations in $ofile. 12194 # Note that this assumes the entire list is on one line. 12195 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12196 12197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12198 for tagname in $tagnames; do 12199 IFS="$lt_save_ifs" 12200 # Check whether tagname contains only valid characters 12201 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12202 "") ;; 12203 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12204 echo "$as_me: error: invalid tag name: $tagname" >&2;} 12205 { (exit 1); exit 1; }; } 12206 ;; 12207 esac 12208 12209 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12210 then 12211 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12212 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12213 { (exit 1); exit 1; }; } 12214 fi 12215 12216 # Update the list of available tags. 12217 if test -n "$tagname"; then 12218 echo appending configuration tag \"$tagname\" to $ofile 12219 12220 case $tagname in 12221 CXX) 12222 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12223 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12224 (test "X$CXX" != "Xg++"))) ; then 12225 ac_ext=cpp 12226 ac_cpp='$CXXCPP $CPPFLAGS' 12227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12230 12231 12232 12233 12234 archive_cmds_need_lc_CXX=no 12235 allow_undefined_flag_CXX= 12236 always_export_symbols_CXX=no 12237 archive_expsym_cmds_CXX= 12238 export_dynamic_flag_spec_CXX= 12239 hardcode_direct_CXX=no 12240 hardcode_libdir_flag_spec_CXX= 12241 hardcode_libdir_flag_spec_ld_CXX= 12242 hardcode_libdir_separator_CXX= 12243 hardcode_minus_L_CXX=no 12244 hardcode_shlibpath_var_CXX=unsupported 12245 hardcode_automatic_CXX=no 12246 module_cmds_CXX= 12247 module_expsym_cmds_CXX= 12248 link_all_deplibs_CXX=unknown 12249 old_archive_cmds_CXX=$old_archive_cmds 12250 no_undefined_flag_CXX= 12251 whole_archive_flag_spec_CXX= 12252 enable_shared_with_static_runtimes_CXX=no 12253 12254 # Dependencies to place before and after the object being linked: 12255 predep_objects_CXX= 12256 postdep_objects_CXX= 12257 predeps_CXX= 12258 postdeps_CXX= 12259 compiler_lib_search_path_CXX= 12260 12261 # Source file extension for C++ test sources. 12262 ac_ext=cpp 12263 12264 # Object file extension for compiled C++ test sources. 12265 objext=o 12266 objext_CXX=$objext 12267 12268 # Code to be used in simple compile tests 12269 lt_simple_compile_test_code="int some_variable = 0;\n" 12270 12271 # Code to be used in simple link tests 12272 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 12273 12274 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12275 12276 # If no C compiler was specified, use CC. 12277 LTCC=${LTCC-"$CC"} 12278 12279 # If no C compiler flags were specified, use CFLAGS. 12280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12281 12282 # Allow CC to be a program name with arguments. 12283 compiler=$CC 12284 12285 12286 # save warnings/boilerplate of simple test code 12287 ac_outfile=conftest.$ac_objext 12288 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12290 _lt_compiler_boilerplate=`cat conftest.err` 12291 $rm conftest* 12292 12293 ac_outfile=conftest.$ac_objext 12294 printf "$lt_simple_link_test_code" >conftest.$ac_ext 12295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12296 _lt_linker_boilerplate=`cat conftest.err` 12297 $rm conftest* 12298 12299 12300 # Allow CC to be a program name with arguments. 12301 lt_save_CC=$CC 12302 lt_save_LD=$LD 12303 lt_save_GCC=$GCC 12304 GCC=$GXX 12305 lt_save_with_gnu_ld=$with_gnu_ld 12306 lt_save_path_LD=$lt_cv_path_LD 12307 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12308 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12309 else 12310 $as_unset lt_cv_prog_gnu_ld 12311 fi 12312 if test -n "${lt_cv_path_LDCXX+set}"; then 12313 lt_cv_path_LD=$lt_cv_path_LDCXX 12314 else 12315 $as_unset lt_cv_path_LD 12316 fi 12317 test -z "${LDCXX+set}" || LD=$LDCXX 12318 CC=${CXX-"c++"} 12319 compiler=$CC 12320 compiler_CXX=$CC 12321 for cc_temp in $compiler""; do 12322 case $cc_temp in 12323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12325 \-*) ;; 12326 *) break;; 12327 esac 12328 done 12329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12330 12331 12332 # We don't want -fno-exception wen compiling C++ code, so set the 12333 # no_builtin_flag separately 12334 if test "$GXX" = yes; then 12335 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12336 else 12337 lt_prog_compiler_no_builtin_flag_CXX= 12338 fi 12339 12340 if test "$GXX" = yes; then 12341 # Set up default GNU C++ configuration 12342 12343 12344 # Check whether --with-gnu-ld was given. 12345 if test "${with_gnu_ld+set}" = set; then 12346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12347 else 12348 with_gnu_ld=no 12349 fi 12350 12351 ac_prog=ld 12352 if test "$GCC" = yes; then 12353 # Check if gcc -print-prog-name=ld gives a path. 12354 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12355 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12356 case $host in 12357 *-*-mingw*) 12358 # gcc leaves a trailing carriage return which upsets mingw 12359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12360 *) 12361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12362 esac 12363 case $ac_prog in 12364 # Accept absolute paths. 12365 [\\/]* | ?:[\\/]*) 12366 re_direlt='/[^/][^/]*/\.\./' 12367 # Canonicalize the pathname of ld 12368 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12369 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12370 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12371 done 12372 test -z "$LD" && LD="$ac_prog" 12373 ;; 12374 "") 12375 # If it fails, then pretend we aren't using GCC. 12376 ac_prog=ld 12377 ;; 12378 *) 12379 # If it is relative, then search for the first ld in PATH. 12380 with_gnu_ld=unknown 12381 ;; 12382 esac 12383 elif test "$with_gnu_ld" = yes; then 12384 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12385 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12386 else 12387 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12388 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12389 fi 12390 if test "${lt_cv_path_LD+set}" = set; then 12391 echo $ECHO_N "(cached) $ECHO_C" >&6 12392 else 12393 if test -z "$LD"; then 12394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12395 for ac_dir in $PATH; do 12396 IFS="$lt_save_ifs" 12397 test -z "$ac_dir" && ac_dir=. 12398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12399 lt_cv_path_LD="$ac_dir/$ac_prog" 12400 # Check to see if the program is GNU ld. I'd rather use --version, 12401 # but apparently some variants of GNU ld only accept -v. 12402 # Break only if it was the GNU/non-GNU ld that we prefer. 12403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12404 *GNU* | *'with BFD'*) 12405 test "$with_gnu_ld" != no && break 12406 ;; 12407 *) 12408 test "$with_gnu_ld" != yes && break 12409 ;; 12410 esac 12411 fi 12412 done 12413 IFS="$lt_save_ifs" 12414 else 12415 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12416 fi 12417 fi 12418 12419 LD="$lt_cv_path_LD" 12420 if test -n "$LD"; then 12421 { echo "$as_me:$LINENO: result: $LD" >&5 12422 echo "${ECHO_T}$LD" >&6; } 12423 else 12424 { echo "$as_me:$LINENO: result: no" >&5 12425 echo "${ECHO_T}no" >&6; } 12426 fi 12427 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12428 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12429 { (exit 1); exit 1; }; } 12430 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12431 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12432 if test "${lt_cv_prog_gnu_ld+set}" = set; then 12433 echo $ECHO_N "(cached) $ECHO_C" >&6 12434 else 12435 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12436 case `$LD -v 2>&1 </dev/null` in 12437 *GNU* | *'with BFD'*) 12438 lt_cv_prog_gnu_ld=yes 12439 ;; 12440 *) 12441 lt_cv_prog_gnu_ld=no 12442 ;; 12443 esac 12444 fi 12445 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12446 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12447 with_gnu_ld=$lt_cv_prog_gnu_ld 12448 12449 12450 12451 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12452 # archiving commands below assume that GNU ld is being used. 12453 if test "$with_gnu_ld" = yes; then 12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12455 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12456 12457 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12459 12460 # If archive_cmds runs LD, not CC, wlarc should be empty 12461 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12462 # investigate it a little bit more. (MM) 12463 wlarc='${wl}' 12464 12465 # ancient GNU ld didn't support --whole-archive et. al. 12466 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12467 grep 'no-whole-archive' > /dev/null; then 12468 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12469 else 12470 whole_archive_flag_spec_CXX= 12471 fi 12472 else 12473 with_gnu_ld=no 12474 wlarc= 12475 12476 # A generic and very simple default shared library creation 12477 # command for GNU C++ for the case where it uses the native 12478 # linker, instead of GNU ld. If possible, this setting should 12479 # overridden to take advantage of the native linker features on 12480 # the platform it is being used on. 12481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12482 fi 12483 12484 # Commands to make compiler produce verbose output that lists 12485 # what "hidden" libraries, object files and flags are used when 12486 # linking a shared library. 12487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12488 12489 else 12490 GXX=no 12491 with_gnu_ld=no 12492 wlarc= 12493 fi 12494 12495 # PORTME: fill in a description of your system's C++ link characteristics 12496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12498 ld_shlibs_CXX=yes 12499 case $host_os in 12500 aix3*) 12501 # FIXME: insert proper C++ library support 12502 ld_shlibs_CXX=no 12503 ;; 12504 aix4* | aix5*) 12505 if test "$host_cpu" = ia64; then 12506 # On IA64, the linker does run time linking by default, so we don't 12507 # have to do anything special. 12508 aix_use_runtimelinking=no 12509 exp_sym_flag='-Bexport' 12510 no_entry_flag="" 12511 else 12512 aix_use_runtimelinking=no 12513 12514 # Test if we are trying to use run time linking or normal 12515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12516 # need to do runtime linking. 12517 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12518 for ld_flag in $LDFLAGS; do 12519 case $ld_flag in 12520 *-brtl*) 12521 aix_use_runtimelinking=yes 12522 break 12523 ;; 12524 esac 12525 done 12526 ;; 12527 esac 12528 12529 exp_sym_flag='-bexport' 12530 no_entry_flag='-bnoentry' 12531 fi 12532 12533 # When large executables or shared objects are built, AIX ld can 12534 # have problems creating the table of contents. If linking a library 12535 # or program results in "error TOC overflow" add -mminimal-toc to 12536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12538 12539 archive_cmds_CXX='' 12540 hardcode_direct_CXX=yes 12541 hardcode_libdir_separator_CXX=':' 12542 link_all_deplibs_CXX=yes 12543 12544 if test "$GXX" = yes; then 12545 case $host_os in aix4.[012]|aix4.[012].*) 12546 # We only want to do this on AIX 4.2 and lower, the check 12547 # below for broken collect2 doesn't work under 4.3+ 12548 collect2name=`${CC} -print-prog-name=collect2` 12549 if test -f "$collect2name" && \ 12550 strings "$collect2name" | grep resolve_lib_name >/dev/null 12551 then 12552 # We have reworked collect2 12553 hardcode_direct_CXX=yes 12554 else 12555 # We have old collect2 12556 hardcode_direct_CXX=unsupported 12557 # It fails to find uninstalled libraries when the uninstalled 12558 # path is not listed in the libpath. Setting hardcode_minus_L 12559 # to unsupported forces relinking 12560 hardcode_minus_L_CXX=yes 12561 hardcode_libdir_flag_spec_CXX='-L$libdir' 12562 hardcode_libdir_separator_CXX= 12563 fi 12564 ;; 12565 esac 12566 shared_flag='-shared' 12567 if test "$aix_use_runtimelinking" = yes; then 12568 shared_flag="$shared_flag "'${wl}-G' 12569 fi 12570 else 12571 # not using gcc 12572 if test "$host_cpu" = ia64; then 12573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12574 # chokes on -Wl,-G. The following line is correct: 12575 shared_flag='-G' 12576 else 12577 if test "$aix_use_runtimelinking" = yes; then 12578 shared_flag='${wl}-G' 12579 else 12580 shared_flag='${wl}-bM:SRE' 12581 fi 12582 fi 12583 fi 12584 12585 # It seems that -bexpall does not export symbols beginning with 12586 # underscore (_), so it is better to generate a list of symbols to export. 12587 always_export_symbols_CXX=yes 12588 if test "$aix_use_runtimelinking" = yes; then 12589 # Warning - without using the other runtime loading flags (-brtl), 12590 # -berok will link without error, but may produce a broken library. 12591 allow_undefined_flag_CXX='-berok' 12592 # Determine the default libpath from the value encoded in an empty executable. 12593 cat >conftest.$ac_ext <<_ACEOF 12594 /* confdefs.h. */ 12595 _ACEOF 12596 cat confdefs.h >>conftest.$ac_ext 12597 cat >>conftest.$ac_ext <<_ACEOF 12598 /* end confdefs.h. */ 12599 12600 int 12601 main () 12602 { 12603 12604 ; 12605 return 0; 12606 } 12607 _ACEOF 12608 rm -f conftest.$ac_objext conftest$ac_exeext 12609 if { (ac_try="$ac_link" 12610 case "(($ac_try" in 12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12612 *) ac_try_echo=$ac_try;; 12613 esac 12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12615 (eval "$ac_link") 2>conftest.er1 12616 ac_status=$? 12617 grep -v '^ *+' conftest.er1 >conftest.err 12618 rm -f conftest.er1 12619 cat conftest.err >&5 12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12621 (exit $ac_status); } && { 12622 test -z "$ac_cxx_werror_flag" || 12623 test ! -s conftest.err 12624 } && test -s conftest$ac_exeext && 12625 $as_test_x conftest$ac_exeext; then 12626 12627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12628 }'` 12629 # Check for a 64-bit object if we didn't find anything. 12630 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12631 }'`; fi 12632 else 12633 echo "$as_me: failed program was:" >&5 12634 sed 's/^/| /' conftest.$ac_ext >&5 12635 12636 12637 fi 12638 12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12640 conftest$ac_exeext conftest.$ac_ext 12641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12642 12643 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12644 12645 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12646 else 12647 if test "$host_cpu" = ia64; then 12648 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12649 allow_undefined_flag_CXX="-z nodefs" 12650 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12651 else 12652 # Determine the default libpath from the value encoded in an empty executable. 12653 cat >conftest.$ac_ext <<_ACEOF 12654 /* confdefs.h. */ 12655 _ACEOF 12656 cat confdefs.h >>conftest.$ac_ext 12657 cat >>conftest.$ac_ext <<_ACEOF 12658 /* end confdefs.h. */ 12659 12660 int 12661 main () 12662 { 12663 12664 ; 12665 return 0; 12666 } 12667 _ACEOF 12668 rm -f conftest.$ac_objext conftest$ac_exeext 12669 if { (ac_try="$ac_link" 12670 case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673 esac 12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12675 (eval "$ac_link") 2>conftest.er1 12676 ac_status=$? 12677 grep -v '^ *+' conftest.er1 >conftest.err 12678 rm -f conftest.er1 12679 cat conftest.err >&5 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); } && { 12682 test -z "$ac_cxx_werror_flag" || 12683 test ! -s conftest.err 12684 } && test -s conftest$ac_exeext && 12685 $as_test_x conftest$ac_exeext; then 12686 12687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12688 }'` 12689 # Check for a 64-bit object if we didn't find anything. 12690 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12691 }'`; fi 12692 else 12693 echo "$as_me: failed program was:" >&5 12694 sed 's/^/| /' conftest.$ac_ext >&5 12695 12696 12697 fi 12698 12699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12700 conftest$ac_exeext conftest.$ac_ext 12701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12702 12703 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12704 # Warning - without using the other run time loading flags, 12705 # -berok will link without error, but may produce a broken library. 12706 no_undefined_flag_CXX=' ${wl}-bernotok' 12707 allow_undefined_flag_CXX=' ${wl}-berok' 12708 # Exported symbols can be pulled into shared objects from archives 12709 whole_archive_flag_spec_CXX='$convenience' 12710 archive_cmds_need_lc_CXX=yes 12711 # This is similar to how AIX traditionally builds its shared libraries. 12712 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12713 fi 12714 fi 12715 ;; 12716 12717 beos*) 12718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12719 allow_undefined_flag_CXX=unsupported 12720 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12721 # support --undefined. This deserves some investigation. FIXME 12722 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12723 else 12724 ld_shlibs_CXX=no 12725 fi 12726 ;; 12727 12728 chorus*) 12729 case $cc_basename in 12730 *) 12731 # FIXME: insert proper C++ library support 12732 ld_shlibs_CXX=no 12733 ;; 12734 esac 12735 ;; 12736 12737 cygwin* | mingw* | pw32*) 12738 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12739 # as there is no search path for DLLs. 12740 hardcode_libdir_flag_spec_CXX='-L$libdir' 12741 allow_undefined_flag_CXX=unsupported 12742 always_export_symbols_CXX=no 12743 enable_shared_with_static_runtimes_CXX=yes 12744 12745 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12747 # If the export-symbols file already is a .def file (1st line 12748 # is EXPORTS), use it as is; otherwise, prepend... 12749 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12750 cp $export_symbols $output_objdir/$soname.def; 12751 else 12752 echo EXPORTS > $output_objdir/$soname.def; 12753 cat $export_symbols >> $output_objdir/$soname.def; 12754 fi~ 12755 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12756 else 12757 ld_shlibs_CXX=no 12758 fi 12759 ;; 12760 darwin* | rhapsody*) 12761 case $host_os in 12762 rhapsody* | darwin1.[012]) 12763 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12764 ;; 12765 *) # Darwin 1.3 on 12766 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12767 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12768 else 12769 case ${MACOSX_DEPLOYMENT_TARGET} in 12770 10.[012]) 12771 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12772 ;; 12773 10.*) 12774 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12775 ;; 12776 esac 12777 fi 12778 ;; 12779 esac 12780 archive_cmds_need_lc_CXX=no 12781 hardcode_direct_CXX=no 12782 hardcode_automatic_CXX=yes 12783 hardcode_shlibpath_var_CXX=unsupported 12784 whole_archive_flag_spec_CXX='' 12785 link_all_deplibs_CXX=yes 12786 12787 if test "$GXX" = yes ; then 12788 lt_int_apple_cc_single_mod=no 12789 output_verbose_link_cmd='echo' 12790 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12791 lt_int_apple_cc_single_mod=yes 12792 fi 12793 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12794 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12795 else 12796 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12797 fi 12798 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12800 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12801 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12802 else 12803 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12804 fi 12805 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12806 else 12807 case $cc_basename in 12808 xlc*) 12809 output_verbose_link_cmd='echo' 12810 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 12811 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12813 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12814 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12815 ;; 12816 *) 12817 ld_shlibs_CXX=no 12818 ;; 12819 esac 12820 fi 12821 ;; 12822 12823 dgux*) 12824 case $cc_basename in 12825 ec++*) 12826 # FIXME: insert proper C++ library support 12827 ld_shlibs_CXX=no 12828 ;; 12829 ghcx*) 12830 # Green Hills C++ Compiler 12831 # FIXME: insert proper C++ library support 12832 ld_shlibs_CXX=no 12833 ;; 12834 *) 12835 # FIXME: insert proper C++ library support 12836 ld_shlibs_CXX=no 12837 ;; 12838 esac 12839 ;; 12840 freebsd[12]*) 12841 # C++ shared libraries reported to be fairly broken before switch to ELF 12842 ld_shlibs_CXX=no 12843 ;; 12844 freebsd-elf*) 12845 archive_cmds_need_lc_CXX=no 12846 ;; 12847 freebsd* | kfreebsd*-gnu | dragonfly*) 12848 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12849 # conventions 12850 ld_shlibs_CXX=yes 12851 ;; 12852 gnu*) 12853 ;; 12854 hpux9*) 12855 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12856 hardcode_libdir_separator_CXX=: 12857 export_dynamic_flag_spec_CXX='${wl}-E' 12858 hardcode_direct_CXX=yes 12859 hardcode_minus_L_CXX=yes # Not in the search PATH, 12860 # but as the default 12861 # location of the library. 12862 12863 case $cc_basename in 12864 CC*) 12865 # FIXME: insert proper C++ library support 12866 ld_shlibs_CXX=no 12867 ;; 12868 aCC*) 12869 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12870 # Commands to make compiler produce verbose output that lists 12871 # what "hidden" libraries, object files and flags are used when 12872 # linking a shared library. 12873 # 12874 # There doesn't appear to be a way to prevent this compiler from 12875 # explicitly linking system object files so we need to strip them 12876 # from the output so that they don't get included in the library 12877 # dependencies. 12878 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12879 ;; 12880 *) 12881 if test "$GXX" = yes; then 12882 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12883 else 12884 # FIXME: insert proper C++ library support 12885 ld_shlibs_CXX=no 12886 fi 12887 ;; 12888 esac 12889 ;; 12890 hpux10*|hpux11*) 12891 if test $with_gnu_ld = no; then 12892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12893 hardcode_libdir_separator_CXX=: 12894 12895 case $host_cpu in 12896 hppa*64*|ia64*) 12897 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12898 ;; 12899 *) 12900 export_dynamic_flag_spec_CXX='${wl}-E' 12901 ;; 12902 esac 12903 fi 12904 case $host_cpu in 12905 hppa*64*|ia64*) 12906 hardcode_direct_CXX=no 12907 hardcode_shlibpath_var_CXX=no 12908 ;; 12909 *) 12910 hardcode_direct_CXX=yes 12911 hardcode_minus_L_CXX=yes # Not in the search PATH, 12912 # but as the default 12913 # location of the library. 12914 ;; 12915 esac 12916 12917 case $cc_basename in 12918 CC*) 12919 # FIXME: insert proper C++ library support 12920 ld_shlibs_CXX=no 12921 ;; 12922 aCC*) 12923 case $host_cpu in 12924 hppa*64*) 12925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12926 ;; 12927 ia64*) 12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12929 ;; 12930 *) 12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12932 ;; 12933 esac 12934 # Commands to make compiler produce verbose output that lists 12935 # what "hidden" libraries, object files and flags are used when 12936 # linking a shared library. 12937 # 12938 # There doesn't appear to be a way to prevent this compiler from 12939 # explicitly linking system object files so we need to strip them 12940 # from the output so that they don't get included in the library 12941 # dependencies. 12942 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12943 ;; 12944 *) 12945 if test "$GXX" = yes; then 12946 if test $with_gnu_ld = no; then 12947 case $host_cpu in 12948 hppa*64*) 12949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12950 ;; 12951 ia64*) 12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12953 ;; 12954 *) 12955 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12956 ;; 12957 esac 12958 fi 12959 else 12960 # FIXME: insert proper C++ library support 12961 ld_shlibs_CXX=no 12962 fi 12963 ;; 12964 esac 12965 ;; 12966 interix3*) 12967 hardcode_direct_CXX=no 12968 hardcode_shlibpath_var_CXX=no 12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12970 export_dynamic_flag_spec_CXX='${wl}-E' 12971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12972 # Instead, shared libraries are loaded at an image base (0x10000000 by 12973 # default) and relocated if they conflict, which is a slow very memory 12974 # consuming and fragmenting process. To avoid this, we pick a random, 12975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12976 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12977 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12978 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12979 ;; 12980 irix5* | irix6*) 12981 case $cc_basename in 12982 CC*) 12983 # SGI C++ 12984 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12985 12986 # Archives containing C++ object files must be created using 12987 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12988 # necessary to make sure instantiated templates are included 12989 # in the archive. 12990 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12991 ;; 12992 *) 12993 if test "$GXX" = yes; then 12994 if test "$with_gnu_ld" = no; then 12995 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12996 else 12997 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12998 fi 12999 fi 13000 link_all_deplibs_CXX=yes 13001 ;; 13002 esac 13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13004 hardcode_libdir_separator_CXX=: 13005 ;; 13006 linux*) 13007 case $cc_basename in 13008 KCC*) 13009 # Kuck and Associates, Inc. (KAI) C++ Compiler 13010 13011 # KCC will only create a shared library if the output file 13012 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13013 # to its proper name (with version) after linking. 13014 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13015 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13016 # Commands to make compiler produce verbose output that lists 13017 # what "hidden" libraries, object files and flags are used when 13018 # linking a shared library. 13019 # 13020 # There doesn't appear to be a way to prevent this compiler from 13021 # explicitly linking system object files so we need to strip them 13022 # from the output so that they don't get included in the library 13023 # dependencies. 13024 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13025 13026 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13028 13029 # Archives containing C++ object files must be created using 13030 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13032 ;; 13033 icpc*) 13034 # Intel C++ 13035 with_gnu_ld=yes 13036 # version 8.0 and above of icpc choke on multiply defined symbols 13037 # if we add $predep_objects and $postdep_objects, however 7.1 and 13038 # earlier do not add the objects themselves. 13039 case `$CC -V 2>&1` in 13040 *"Version 7."*) 13041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13042 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13043 ;; 13044 *) # Version 8.0 or newer 13045 tmp_idyn= 13046 case $host_cpu in 13047 ia64*) tmp_idyn=' -i_dynamic';; 13048 esac 13049 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13050 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13051 ;; 13052 esac 13053 archive_cmds_need_lc_CXX=no 13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13057 ;; 13058 pgCC*) 13059 # Portland Group C++ compiler 13060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13061 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13062 13063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13065 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13066 ;; 13067 cxx*) 13068 # Compaq C++ 13069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13070 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13071 13072 runpath_var=LD_RUN_PATH 13073 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13074 hardcode_libdir_separator_CXX=: 13075 13076 # Commands to make compiler produce verbose output that lists 13077 # what "hidden" libraries, object files and flags are used when 13078 # linking a shared library. 13079 # 13080 # There doesn't appear to be a way to prevent this compiler from 13081 # explicitly linking system object files so we need to strip them 13082 # from the output so that they don't get included in the library 13083 # dependencies. 13084 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13085 ;; 13086 *) 13087 case `$CC -V 2>&1 | sed 5q` in 13088 *Sun\ C*) 13089 # Sun C++ 5.9 13090 no_undefined_flag_CXX=' -zdefs' 13091 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13092 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13093 hardcode_libdir_flag_spec_CXX='-R$libdir' 13094 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13095 13096 # Not sure whether something based on 13097 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13098 # would be better. 13099 output_verbose_link_cmd='echo' 13100 13101 # Archives containing C++ object files must be created using 13102 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13103 # necessary to make sure instantiated templates are included 13104 # in the archive. 13105 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13106 ;; 13107 esac 13108 ;; 13109 esac 13110 ;; 13111 lynxos*) 13112 # FIXME: insert proper C++ library support 13113 ld_shlibs_CXX=no 13114 ;; 13115 m88k*) 13116 # FIXME: insert proper C++ library support 13117 ld_shlibs_CXX=no 13118 ;; 13119 mvs*) 13120 case $cc_basename in 13121 cxx*) 13122 # FIXME: insert proper C++ library support 13123 ld_shlibs_CXX=no 13124 ;; 13125 *) 13126 # FIXME: insert proper C++ library support 13127 ld_shlibs_CXX=no 13128 ;; 13129 esac 13130 ;; 13131 netbsd*) 13132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13133 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13134 wlarc= 13135 hardcode_libdir_flag_spec_CXX='-R$libdir' 13136 hardcode_direct_CXX=yes 13137 hardcode_shlibpath_var_CXX=no 13138 fi 13139 # Workaround some broken pre-1.5 toolchains 13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13141 ;; 13142 openbsd2*) 13143 # C++ shared libraries are fairly broken 13144 ld_shlibs_CXX=no 13145 ;; 13146 openbsd*) 13147 hardcode_direct_CXX=yes 13148 hardcode_shlibpath_var_CXX=no 13149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13151 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13152 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13153 export_dynamic_flag_spec_CXX='${wl}-E' 13154 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13155 fi 13156 output_verbose_link_cmd='echo' 13157 ;; 13158 osf3*) 13159 case $cc_basename in 13160 KCC*) 13161 # Kuck and Associates, Inc. (KAI) C++ Compiler 13162 13163 # KCC will only create a shared library if the output file 13164 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13165 # to its proper name (with version) after linking. 13166 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13167 13168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13169 hardcode_libdir_separator_CXX=: 13170 13171 # Archives containing C++ object files must be created using 13172 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13173 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13174 13175 ;; 13176 RCC*) 13177 # Rational C++ 2.4.1 13178 # FIXME: insert proper C++ library support 13179 ld_shlibs_CXX=no 13180 ;; 13181 cxx*) 13182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13183 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13184 13185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13186 hardcode_libdir_separator_CXX=: 13187 13188 # Commands to make compiler produce verbose output that lists 13189 # what "hidden" libraries, object files and flags are used when 13190 # linking a shared library. 13191 # 13192 # There doesn't appear to be a way to prevent this compiler from 13193 # explicitly linking system object files so we need to strip them 13194 # from the output so that they don't get included in the library 13195 # dependencies. 13196 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13197 ;; 13198 *) 13199 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13200 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13201 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13202 13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13204 hardcode_libdir_separator_CXX=: 13205 13206 # Commands to make compiler produce verbose output that lists 13207 # what "hidden" libraries, object files and flags are used when 13208 # linking a shared library. 13209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13210 13211 else 13212 # FIXME: insert proper C++ library support 13213 ld_shlibs_CXX=no 13214 fi 13215 ;; 13216 esac 13217 ;; 13218 osf4* | osf5*) 13219 case $cc_basename in 13220 KCC*) 13221 # Kuck and Associates, Inc. (KAI) C++ Compiler 13222 13223 # KCC will only create a shared library if the output file 13224 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13225 # to its proper name (with version) after linking. 13226 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13227 13228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13229 hardcode_libdir_separator_CXX=: 13230 13231 # Archives containing C++ object files must be created using 13232 # the KAI C++ compiler. 13233 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13234 ;; 13235 RCC*) 13236 # Rational C++ 2.4.1 13237 # FIXME: insert proper C++ library support 13238 ld_shlibs_CXX=no 13239 ;; 13240 cxx*) 13241 allow_undefined_flag_CXX=' -expect_unresolved \*' 13242 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13243 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13244 echo "-hidden">> $lib.exp~ 13245 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 13246 $rm $lib.exp' 13247 13248 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13249 hardcode_libdir_separator_CXX=: 13250 13251 # Commands to make compiler produce verbose output that lists 13252 # what "hidden" libraries, object files and flags are used when 13253 # linking a shared library. 13254 # 13255 # There doesn't appear to be a way to prevent this compiler from 13256 # explicitly linking system object files so we need to strip them 13257 # from the output so that they don't get included in the library 13258 # dependencies. 13259 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13260 ;; 13261 *) 13262 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13263 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13264 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13265 13266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13267 hardcode_libdir_separator_CXX=: 13268 13269 # Commands to make compiler produce verbose output that lists 13270 # what "hidden" libraries, object files and flags are used when 13271 # linking a shared library. 13272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13273 13274 else 13275 # FIXME: insert proper C++ library support 13276 ld_shlibs_CXX=no 13277 fi 13278 ;; 13279 esac 13280 ;; 13281 psos*) 13282 # FIXME: insert proper C++ library support 13283 ld_shlibs_CXX=no 13284 ;; 13285 sunos4*) 13286 case $cc_basename in 13287 CC*) 13288 # Sun C++ 4.x 13289 # FIXME: insert proper C++ library support 13290 ld_shlibs_CXX=no 13291 ;; 13292 lcc*) 13293 # Lucid 13294 # FIXME: insert proper C++ library support 13295 ld_shlibs_CXX=no 13296 ;; 13297 *) 13298 # FIXME: insert proper C++ library support 13299 ld_shlibs_CXX=no 13300 ;; 13301 esac 13302 ;; 13303 solaris*) 13304 case $cc_basename in 13305 CC*) 13306 # Sun C++ 4.2, 5.x and Centerline C++ 13307 archive_cmds_need_lc_CXX=yes 13308 no_undefined_flag_CXX=' -zdefs' 13309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13311 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13312 13313 hardcode_libdir_flag_spec_CXX='-R$libdir' 13314 hardcode_shlibpath_var_CXX=no 13315 case $host_os in 13316 solaris2.[0-5] | solaris2.[0-5].*) ;; 13317 *) 13318 # The C++ compiler is used as linker so we must use $wl 13319 # flag to pass the commands to the underlying system 13320 # linker. We must also pass each convience library through 13321 # to the system linker between allextract/defaultextract. 13322 # The C++ compiler will combine linker options so we 13323 # cannot just pass the convience library names through 13324 # without $wl. 13325 # Supported since Solaris 2.6 (maybe 2.5.1?) 13326 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 13327 ;; 13328 esac 13329 link_all_deplibs_CXX=yes 13330 13331 output_verbose_link_cmd='echo' 13332 13333 # Archives containing C++ object files must be created using 13334 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13335 # necessary to make sure instantiated templates are included 13336 # in the archive. 13337 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13338 ;; 13339 gcx*) 13340 # Green Hills C++ Compiler 13341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13342 13343 # The C++ compiler must be used to create the archive. 13344 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13345 ;; 13346 *) 13347 # GNU C++ compiler with Solaris linker 13348 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13349 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13350 if $CC --version | grep -v '^2\.7' > /dev/null; then 13351 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13352 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13353 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13354 13355 # Commands to make compiler produce verbose output that lists 13356 # what "hidden" libraries, object files and flags are used when 13357 # linking a shared library. 13358 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13359 else 13360 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13361 # platform. 13362 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13363 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13364 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13365 13366 # Commands to make compiler produce verbose output that lists 13367 # what "hidden" libraries, object files and flags are used when 13368 # linking a shared library. 13369 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13370 fi 13371 13372 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13373 fi 13374 ;; 13375 esac 13376 ;; 13377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13378 no_undefined_flag_CXX='${wl}-z,text' 13379 archive_cmds_need_lc_CXX=no 13380 hardcode_shlibpath_var_CXX=no 13381 runpath_var='LD_RUN_PATH' 13382 13383 case $cc_basename in 13384 CC*) 13385 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13386 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13387 ;; 13388 *) 13389 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13390 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13391 ;; 13392 esac 13393 ;; 13394 sysv5* | sco3.2v5* | sco5v6*) 13395 # Note: We can NOT use -z defs as we might desire, because we do not 13396 # link with -lc, and that would cause any symbols used from libc to 13397 # always be unresolved, which means just about no library would 13398 # ever link correctly. If we're not using GNU ld we use -z text 13399 # though, which does catch some bad symbols but isn't as heavy-handed 13400 # as -z defs. 13401 # For security reasons, it is highly recommended that you always 13402 # use absolute paths for naming shared libraries, and exclude the 13403 # DT_RUNPATH tag from executables and libraries. But doing so 13404 # requires that you compile everything twice, which is a pain. 13405 # So that behaviour is only enabled if SCOABSPATH is set to a 13406 # non-empty value in the environment. Most likely only useful for 13407 # creating official distributions of packages. 13408 # This is a hack until libtool officially supports absolute path 13409 # names for shared libraries. 13410 no_undefined_flag_CXX='${wl}-z,text' 13411 allow_undefined_flag_CXX='${wl}-z,nodefs' 13412 archive_cmds_need_lc_CXX=no 13413 hardcode_shlibpath_var_CXX=no 13414 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13415 hardcode_libdir_separator_CXX=':' 13416 link_all_deplibs_CXX=yes 13417 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13418 runpath_var='LD_RUN_PATH' 13419 13420 case $cc_basename in 13421 CC*) 13422 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13424 ;; 13425 *) 13426 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13428 ;; 13429 esac 13430 ;; 13431 tandem*) 13432 case $cc_basename in 13433 NCC*) 13434 # NonStop-UX NCC 3.20 13435 # FIXME: insert proper C++ library support 13436 ld_shlibs_CXX=no 13437 ;; 13438 *) 13439 # FIXME: insert proper C++ library support 13440 ld_shlibs_CXX=no 13441 ;; 13442 esac 13443 ;; 13444 vxworks*) 13445 # FIXME: insert proper C++ library support 13446 ld_shlibs_CXX=no 13447 ;; 13448 *) 13449 # FIXME: insert proper C++ library support 13450 ld_shlibs_CXX=no 13451 ;; 13452 esac 13453 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13454 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13455 test "$ld_shlibs_CXX" = no && can_build_shared=no 13456 13457 GCC_CXX="$GXX" 13458 LD_CXX="$LD" 13459 13460 ## CAVEAT EMPTOR: 13461 ## There is no encapsulation within the following macros, do not change 13462 ## the running order or otherwise move them around unless you know exactly 13463 ## what you are doing... 13464 13465 cat > conftest.$ac_ext <<EOF 13466 class Foo 13467 { 13468 public: 13469 Foo (void) { a = 0; } 13470 private: 13471 int a; 13472 }; 13473 EOF 13474 13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13476 (eval $ac_compile) 2>&5 13477 ac_status=$? 13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13479 (exit $ac_status); }; then 13480 # Parse the compiler output and extract the necessary 13481 # objects, libraries and library flags. 13482 13483 # Sentinel used to keep track of whether or not we are before 13484 # the conftest object file. 13485 pre_test_object_deps_done=no 13486 13487 # The `*' in the case matches for architectures that use `case' in 13488 # $output_verbose_cmd can trigger glob expansion during the loop 13489 # eval without this substitution. 13490 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13491 13492 for p in `eval $output_verbose_link_cmd`; do 13493 case $p in 13494 13495 -L* | -R* | -l*) 13496 # Some compilers place space between "-{L,R}" and the path. 13497 # Remove the space. 13498 if test $p = "-L" \ 13499 || test $p = "-R"; then 13500 prev=$p 13501 continue 13502 else 13503 prev= 13504 fi 13505 13506 if test "$pre_test_object_deps_done" = no; then 13507 case $p in 13508 -L* | -R*) 13509 # Internal compiler library paths should come after those 13510 # provided the user. The postdeps already come after the 13511 # user supplied libs so there is no need to process them. 13512 if test -z "$compiler_lib_search_path_CXX"; then 13513 compiler_lib_search_path_CXX="${prev}${p}" 13514 else 13515 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13516 fi 13517 ;; 13518 # The "-l" case would never come before the object being 13519 # linked, so don't bother handling this case. 13520 esac 13521 else 13522 if test -z "$postdeps_CXX"; then 13523 postdeps_CXX="${prev}${p}" 13524 else 13525 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13526 fi 13527 fi 13528 ;; 13529 13530 *.$objext) 13531 # This assumes that the test object file only shows up 13532 # once in the compiler output. 13533 if test "$p" = "conftest.$objext"; then 13534 pre_test_object_deps_done=yes 13535 continue 13536 fi 13537 13538 if test "$pre_test_object_deps_done" = no; then 13539 if test -z "$predep_objects_CXX"; then 13540 predep_objects_CXX="$p" 13541 else 13542 predep_objects_CXX="$predep_objects_CXX $p" 13543 fi 13544 else 13545 if test -z "$postdep_objects_CXX"; then 13546 postdep_objects_CXX="$p" 13547 else 13548 postdep_objects_CXX="$postdep_objects_CXX $p" 13549 fi 13550 fi 13551 ;; 13552 13553 *) ;; # Ignore the rest. 13554 13555 esac 13556 done 13557 13558 # Clean up. 13559 rm -f a.out a.exe 13560 else 13561 echo "libtool.m4: error: problem compiling CXX test program" 13562 fi 13563 13564 $rm -f confest.$objext 13565 13566 # PORTME: override above test on systems where it is broken 13567 case $host_os in 13568 interix3*) 13569 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13570 # hack all around it, let's just trust "g++" to DTRT. 13571 predep_objects_CXX= 13572 postdep_objects_CXX= 13573 postdeps_CXX= 13574 ;; 13575 13576 linux*) 13577 case `$CC -V 2>&1 | sed 5q` in 13578 *Sun\ C*) 13579 # Sun C++ 5.9 13580 postdeps_CXX='-lCstd -lCrun' 13581 ;; 13582 esac 13583 ;; 13584 13585 solaris*) 13586 case $cc_basename in 13587 CC*) 13588 # Adding this requires a known-good setup of shared libraries for 13589 # Sun compiler versions before 5.6, else PIC objects from an old 13590 # archive will be linked into the output, leading to subtle bugs. 13591 postdeps_CXX='-lCstd -lCrun' 13592 ;; 13593 esac 13594 ;; 13595 esac 13596 13597 13598 case " $postdeps_CXX " in 13599 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 13600 esac 13601 13602 lt_prog_compiler_wl_CXX= 13603 lt_prog_compiler_pic_CXX= 13604 lt_prog_compiler_static_CXX= 13605 13606 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13607 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13608 13609 # C++ specific cases for pic, static, wl, etc. 13610 if test "$GXX" = yes; then 13611 lt_prog_compiler_wl_CXX='-Wl,' 13612 lt_prog_compiler_static_CXX='-static' 13613 13614 case $host_os in 13615 aix*) 13616 # All AIX code is PIC. 13617 if test "$host_cpu" = ia64; then 13618 # AIX 5 now supports IA64 processor 13619 lt_prog_compiler_static_CXX='-Bstatic' 13620 fi 13621 ;; 13622 amigaos*) 13623 # FIXME: we need at least 68020 code to build shared libraries, but 13624 # adding the `-m68020' flag to GCC prevents building anything better, 13625 # like `-m68040'. 13626 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13627 ;; 13628 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13629 # PIC is the default for these OSes. 13630 ;; 13631 mingw* | cygwin* | os2* | pw32*) 13632 # This hack is so that the source file can tell whether it is being 13633 # built for inclusion in a dll (and should export symbols for example). 13634 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13635 # (--disable-auto-import) libraries 13636 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13637 ;; 13638 darwin* | rhapsody*) 13639 # PIC is the default on this platform 13640 # Common symbols not allowed in MH_DYLIB files 13641 lt_prog_compiler_pic_CXX='-fno-common' 13642 ;; 13643 *djgpp*) 13644 # DJGPP does not support shared libraries at all 13645 lt_prog_compiler_pic_CXX= 13646 ;; 13647 interix3*) 13648 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13649 # Instead, we relocate shared libraries at runtime. 13650 ;; 13651 sysv4*MP*) 13652 if test -d /usr/nec; then 13653 lt_prog_compiler_pic_CXX=-Kconform_pic 13654 fi 13655 ;; 13656 hpux*) 13657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13658 # not for PA HP-UX. 13659 case $host_cpu in 13660 hppa*64*|ia64*) 13661 ;; 13662 *) 13663 lt_prog_compiler_pic_CXX='-fPIC' 13664 ;; 13665 esac 13666 ;; 13667 *) 13668 lt_prog_compiler_pic_CXX='-fPIC' 13669 ;; 13670 esac 13671 else 13672 case $host_os in 13673 aix4* | aix5*) 13674 # All AIX code is PIC. 13675 if test "$host_cpu" = ia64; then 13676 # AIX 5 now supports IA64 processor 13677 lt_prog_compiler_static_CXX='-Bstatic' 13678 else 13679 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13680 fi 13681 ;; 13682 chorus*) 13683 case $cc_basename in 13684 cxch68*) 13685 # Green Hills C++ Compiler 13686 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13687 ;; 13688 esac 13689 ;; 13690 darwin*) 13691 # PIC is the default on this platform 13692 # Common symbols not allowed in MH_DYLIB files 13693 case $cc_basename in 13694 xlc*) 13695 lt_prog_compiler_pic_CXX='-qnocommon' 13696 lt_prog_compiler_wl_CXX='-Wl,' 13697 ;; 13698 esac 13699 ;; 13700 dgux*) 13701 case $cc_basename in 13702 ec++*) 13703 lt_prog_compiler_pic_CXX='-KPIC' 13704 ;; 13705 ghcx*) 13706 # Green Hills C++ Compiler 13707 lt_prog_compiler_pic_CXX='-pic' 13708 ;; 13709 *) 13710 ;; 13711 esac 13712 ;; 13713 freebsd* | kfreebsd*-gnu | dragonfly*) 13714 # FreeBSD uses GNU C++ 13715 ;; 13716 hpux9* | hpux10* | hpux11*) 13717 case $cc_basename in 13718 CC*) 13719 lt_prog_compiler_wl_CXX='-Wl,' 13720 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13721 if test "$host_cpu" != ia64; then 13722 lt_prog_compiler_pic_CXX='+Z' 13723 fi 13724 ;; 13725 aCC*) 13726 lt_prog_compiler_wl_CXX='-Wl,' 13727 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13728 case $host_cpu in 13729 hppa*64*|ia64*) 13730 # +Z the default 13731 ;; 13732 *) 13733 lt_prog_compiler_pic_CXX='+Z' 13734 ;; 13735 esac 13736 ;; 13737 *) 13738 ;; 13739 esac 13740 ;; 13741 interix*) 13742 # This is c89, which is MS Visual C++ (no shared libs) 13743 # Anyone wants to do a port? 13744 ;; 13745 irix5* | irix6* | nonstopux*) 13746 case $cc_basename in 13747 CC*) 13748 lt_prog_compiler_wl_CXX='-Wl,' 13749 lt_prog_compiler_static_CXX='-non_shared' 13750 # CC pic flag -KPIC is the default. 13751 ;; 13752 *) 13753 ;; 13754 esac 13755 ;; 13756 linux*) 13757 case $cc_basename in 13758 KCC*) 13759 # KAI C++ Compiler 13760 lt_prog_compiler_wl_CXX='--backend -Wl,' 13761 lt_prog_compiler_pic_CXX='-fPIC' 13762 ;; 13763 icpc* | ecpc*) 13764 # Intel C++ 13765 lt_prog_compiler_wl_CXX='-Wl,' 13766 lt_prog_compiler_pic_CXX='-KPIC' 13767 lt_prog_compiler_static_CXX='-static' 13768 ;; 13769 pgCC*) 13770 # Portland Group C++ compiler. 13771 lt_prog_compiler_wl_CXX='-Wl,' 13772 lt_prog_compiler_pic_CXX='-fpic' 13773 lt_prog_compiler_static_CXX='-Bstatic' 13774 ;; 13775 cxx*) 13776 # Compaq C++ 13777 # Make sure the PIC flag is empty. It appears that all Alpha 13778 # Linux and Compaq Tru64 Unix objects are PIC. 13779 lt_prog_compiler_pic_CXX= 13780 lt_prog_compiler_static_CXX='-non_shared' 13781 ;; 13782 *) 13783 case `$CC -V 2>&1 | sed 5q` in 13784 *Sun\ C*) 13785 # Sun C++ 5.9 13786 lt_prog_compiler_pic_CXX='-KPIC' 13787 lt_prog_compiler_static_CXX='-Bstatic' 13788 lt_prog_compiler_wl_CXX='-Qoption ld ' 13789 ;; 13790 esac 13791 ;; 13792 esac 13793 ;; 13794 lynxos*) 13795 ;; 13796 m88k*) 13797 ;; 13798 mvs*) 13799 case $cc_basename in 13800 cxx*) 13801 lt_prog_compiler_pic_CXX='-W c,exportall' 13802 ;; 13803 *) 13804 ;; 13805 esac 13806 ;; 13807 netbsd*) 13808 ;; 13809 osf3* | osf4* | osf5*) 13810 case $cc_basename in 13811 KCC*) 13812 lt_prog_compiler_wl_CXX='--backend -Wl,' 13813 ;; 13814 RCC*) 13815 # Rational C++ 2.4.1 13816 lt_prog_compiler_pic_CXX='-pic' 13817 ;; 13818 cxx*) 13819 # Digital/Compaq C++ 13820 lt_prog_compiler_wl_CXX='-Wl,' 13821 # Make sure the PIC flag is empty. It appears that all Alpha 13822 # Linux and Compaq Tru64 Unix objects are PIC. 13823 lt_prog_compiler_pic_CXX= 13824 lt_prog_compiler_static_CXX='-non_shared' 13825 ;; 13826 *) 13827 ;; 13828 esac 13829 ;; 13830 psos*) 13831 ;; 13832 solaris*) 13833 case $cc_basename in 13834 CC*) 13835 # Sun C++ 4.2, 5.x and Centerline C++ 13836 lt_prog_compiler_pic_CXX='-KPIC' 13837 lt_prog_compiler_static_CXX='-Bstatic' 13838 lt_prog_compiler_wl_CXX='-Qoption ld ' 13839 ;; 13840 gcx*) 13841 # Green Hills C++ Compiler 13842 lt_prog_compiler_pic_CXX='-PIC' 13843 ;; 13844 *) 13845 ;; 13846 esac 13847 ;; 13848 sunos4*) 13849 case $cc_basename in 13850 CC*) 13851 # Sun C++ 4.x 13852 lt_prog_compiler_pic_CXX='-pic' 13853 lt_prog_compiler_static_CXX='-Bstatic' 13854 ;; 13855 lcc*) 13856 # Lucid 13857 lt_prog_compiler_pic_CXX='-pic' 13858 ;; 13859 *) 13860 ;; 13861 esac 13862 ;; 13863 tandem*) 13864 case $cc_basename in 13865 NCC*) 13866 # NonStop-UX NCC 3.20 13867 lt_prog_compiler_pic_CXX='-KPIC' 13868 ;; 13869 *) 13870 ;; 13871 esac 13872 ;; 13873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13874 case $cc_basename in 13875 CC*) 13876 lt_prog_compiler_wl_CXX='-Wl,' 13877 lt_prog_compiler_pic_CXX='-KPIC' 13878 lt_prog_compiler_static_CXX='-Bstatic' 13879 ;; 13880 esac 13881 ;; 13882 vxworks*) 13883 ;; 13884 *) 13885 lt_prog_compiler_can_build_shared_CXX=no 13886 ;; 13887 esac 13888 fi 13889 13890 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13891 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13892 13893 # 13894 # Check to make sure the PIC flag actually works. 13895 # 13896 if test -n "$lt_prog_compiler_pic_CXX"; then 13897 13898 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13899 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13900 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13901 echo $ECHO_N "(cached) $ECHO_C" >&6 13902 else 13903 lt_prog_compiler_pic_works_CXX=no 13904 ac_outfile=conftest.$ac_objext 13905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13906 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13907 # Insert the option either (1) after the last *FLAGS variable, or 13908 # (2) before a word containing "conftest.", or (3) at the end. 13909 # Note that $ac_compile itself does not contain backslashes and begins 13910 # with a dollar sign (not a hyphen), so the echo should work correctly. 13911 # The option is referenced via a variable to avoid confusing sed. 13912 lt_compile=`echo "$ac_compile" | $SED \ 13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13915 -e 's:$: $lt_compiler_flag:'` 13916 (eval echo "\"\$as_me:13916: $lt_compile\"" >&5) 13917 (eval "$lt_compile" 2>conftest.err) 13918 ac_status=$? 13919 cat conftest.err >&5 13920 echo "$as_me:13920: \$? = $ac_status" >&5 13921 if (exit $ac_status) && test -s "$ac_outfile"; then 13922 # The compiler can only warn and ignore the option if not recognized 13923 # So say no if there are warnings other than the usual output. 13924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13927 lt_prog_compiler_pic_works_CXX=yes 13928 fi 13929 fi 13930 $rm conftest* 13931 13932 fi 13933 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13934 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 13935 13936 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13937 case $lt_prog_compiler_pic_CXX in 13938 "" | " "*) ;; 13939 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13940 esac 13941 else 13942 lt_prog_compiler_pic_CXX= 13943 lt_prog_compiler_can_build_shared_CXX=no 13944 fi 13945 13946 fi 13947 case $host_os in 13948 # For platforms which do not support PIC, -DPIC is meaningless: 13949 *djgpp*) 13950 lt_prog_compiler_pic_CXX= 13951 ;; 13952 *) 13953 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13954 ;; 13955 esac 13956 13957 # 13958 # Check to make sure the static flag actually works. 13959 # 13960 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13961 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13962 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13963 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13964 echo $ECHO_N "(cached) $ECHO_C" >&6 13965 else 13966 lt_prog_compiler_static_works_CXX=no 13967 save_LDFLAGS="$LDFLAGS" 13968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13969 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13971 # The linker can only warn and ignore the option if not recognized 13972 # So say no if there are warnings 13973 if test -s conftest.err; then 13974 # Append any errors to the config.log. 13975 cat conftest.err 1>&5 13976 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13978 if diff conftest.exp conftest.er2 >/dev/null; then 13979 lt_prog_compiler_static_works_CXX=yes 13980 fi 13981 else 13982 lt_prog_compiler_static_works_CXX=yes 13983 fi 13984 fi 13985 $rm conftest* 13986 LDFLAGS="$save_LDFLAGS" 13987 13988 fi 13989 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13990 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 13991 13992 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13993 : 13994 else 13995 lt_prog_compiler_static_CXX= 13996 fi 13997 13998 13999 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14001 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14002 echo $ECHO_N "(cached) $ECHO_C" >&6 14003 else 14004 lt_cv_prog_compiler_c_o_CXX=no 14005 $rm -r conftest 2>/dev/null 14006 mkdir conftest 14007 cd conftest 14008 mkdir out 14009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14010 14011 lt_compiler_flag="-o out/conftest2.$ac_objext" 14012 # Insert the option either (1) after the last *FLAGS variable, or 14013 # (2) before a word containing "conftest.", or (3) at the end. 14014 # Note that $ac_compile itself does not contain backslashes and begins 14015 # with a dollar sign (not a hyphen), so the echo should work correctly. 14016 lt_compile=`echo "$ac_compile" | $SED \ 14017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14019 -e 's:$: $lt_compiler_flag:'` 14020 (eval echo "\"\$as_me:14020: $lt_compile\"" >&5) 14021 (eval "$lt_compile" 2>out/conftest.err) 14022 ac_status=$? 14023 cat out/conftest.err >&5 14024 echo "$as_me:14024: \$? = $ac_status" >&5 14025 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14026 then 14027 # The compiler can only warn and ignore the option if not recognized 14028 # So say no if there are warnings 14029 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14032 lt_cv_prog_compiler_c_o_CXX=yes 14033 fi 14034 fi 14035 chmod u+w . 2>&5 14036 $rm conftest* 14037 # SGI C++ compiler will create directory out/ii_files/ for 14038 # template instantiation 14039 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14040 $rm out/* && rmdir out 14041 cd .. 14042 rmdir conftest 14043 $rm conftest* 14044 14045 fi 14046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14048 14049 14050 hard_links="nottested" 14051 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14052 # do not overwrite the value of need_locks provided by the user 14053 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14055 hard_links=yes 14056 $rm conftest* 14057 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14058 touch conftest.a 14059 ln conftest.a conftest.b 2>&5 || hard_links=no 14060 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14061 { echo "$as_me:$LINENO: result: $hard_links" >&5 14062 echo "${ECHO_T}$hard_links" >&6; } 14063 if test "$hard_links" = no; then 14064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14066 need_locks=warn 14067 fi 14068 else 14069 need_locks=no 14070 fi 14071 14072 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14074 14075 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14076 case $host_os in 14077 aix4* | aix5*) 14078 # If we're using GNU nm, then we don't want the "-C" option. 14079 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14081 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14082 else 14083 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14084 fi 14085 ;; 14086 pw32*) 14087 export_symbols_cmds_CXX="$ltdll_cmds" 14088 ;; 14089 cygwin* | mingw*) 14090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14091 ;; 14092 *) 14093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14094 ;; 14095 esac 14096 14097 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14098 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14099 test "$ld_shlibs_CXX" = no && can_build_shared=no 14100 14101 # 14102 # Do we need to explicitly link libc? 14103 # 14104 case "x$archive_cmds_need_lc_CXX" in 14105 x|xyes) 14106 # Assume -lc should be added 14107 archive_cmds_need_lc_CXX=yes 14108 14109 if test "$enable_shared" = yes && test "$GCC" = yes; then 14110 case $archive_cmds_CXX in 14111 *'~'*) 14112 # FIXME: we may have to deal with multi-command sequences. 14113 ;; 14114 '$CC '*) 14115 # Test whether the compiler implicitly links with -lc since on some 14116 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14117 # to ld, don't add -lc before -lgcc. 14118 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14120 $rm conftest* 14121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14122 14123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14124 (eval $ac_compile) 2>&5 14125 ac_status=$? 14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14127 (exit $ac_status); } 2>conftest.err; then 14128 soname=conftest 14129 lib=conftest 14130 libobjs=conftest.$ac_objext 14131 deplibs= 14132 wl=$lt_prog_compiler_wl_CXX 14133 pic_flag=$lt_prog_compiler_pic_CXX 14134 compiler_flags=-v 14135 linker_flags=-v 14136 verstring= 14137 output_objdir=. 14138 libname=conftest 14139 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14140 allow_undefined_flag_CXX= 14141 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14142 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14143 ac_status=$? 14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14145 (exit $ac_status); } 14146 then 14147 archive_cmds_need_lc_CXX=no 14148 else 14149 archive_cmds_need_lc_CXX=yes 14150 fi 14151 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14152 else 14153 cat conftest.err 1>&5 14154 fi 14155 $rm conftest* 14156 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14157 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14158 ;; 14159 esac 14160 fi 14161 ;; 14162 esac 14163 14164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14166 library_names_spec= 14167 libname_spec='lib$name' 14168 soname_spec= 14169 shrext_cmds=".so" 14170 postinstall_cmds= 14171 postuninstall_cmds= 14172 finish_cmds= 14173 finish_eval= 14174 shlibpath_var= 14175 shlibpath_overrides_runpath=unknown 14176 version_type=none 14177 dynamic_linker="$host_os ld.so" 14178 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14179 if test "$GCC" = yes; then 14180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14181 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14182 # if the path contains ";" then we assume it to be the separator 14183 # otherwise default to the standard path separator (i.e. ":") - it is 14184 # assumed that no part of a normal pathname contains ";" but that should 14185 # okay in the real world where ";" in dirpaths is itself problematic. 14186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14187 else 14188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14189 fi 14190 else 14191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14192 fi 14193 need_lib_prefix=unknown 14194 hardcode_into_libs=no 14195 14196 # when you set need_version to no, make sure it does not cause -set_version 14197 # flags to be left without arguments 14198 need_version=unknown 14199 14200 case $host_os in 14201 aix3*) 14202 version_type=linux 14203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14204 shlibpath_var=LIBPATH 14205 14206 # AIX 3 has no versioning support, so we append a major version to the name. 14207 soname_spec='${libname}${release}${shared_ext}$major' 14208 ;; 14209 14210 aix4* | aix5*) 14211 version_type=linux 14212 need_lib_prefix=no 14213 need_version=no 14214 hardcode_into_libs=yes 14215 if test "$host_cpu" = ia64; then 14216 # AIX 5 supports IA64 14217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14218 shlibpath_var=LD_LIBRARY_PATH 14219 else 14220 # With GCC up to 2.95.x, collect2 would create an import file 14221 # for dependence libraries. The import file would start with 14222 # the line `#! .'. This would cause the generated library to 14223 # depend on `.', always an invalid library. This was fixed in 14224 # development snapshots of GCC prior to 3.0. 14225 case $host_os in 14226 aix4 | aix4.[01] | aix4.[01].*) 14227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14228 echo ' yes ' 14229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14230 : 14231 else 14232 can_build_shared=no 14233 fi 14234 ;; 14235 esac 14236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14237 # soname into executable. Probably we can add versioning support to 14238 # collect2, so additional links can be useful in future. 14239 if test "$aix_use_runtimelinking" = yes; then 14240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14241 # instead of lib<name>.a to let people know that these are not 14242 # typical AIX shared libraries. 14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14244 else 14245 # We preserve .a as extension for shared libraries through AIX4.2 14246 # and later when we are not doing run time linking. 14247 library_names_spec='${libname}${release}.a $libname.a' 14248 soname_spec='${libname}${release}${shared_ext}$major' 14249 fi 14250 shlibpath_var=LIBPATH 14251 fi 14252 ;; 14253 14254 amigaos*) 14255 library_names_spec='$libname.ixlibrary $libname.a' 14256 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14257 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14258 ;; 14259 14260 beos*) 14261 library_names_spec='${libname}${shared_ext}' 14262 dynamic_linker="$host_os ld.so" 14263 shlibpath_var=LIBRARY_PATH 14264 ;; 14265 14266 bsdi[45]*) 14267 version_type=linux 14268 need_version=no 14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14270 soname_spec='${libname}${release}${shared_ext}$major' 14271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14272 shlibpath_var=LD_LIBRARY_PATH 14273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14275 # the default ld.so.conf also contains /usr/contrib/lib and 14276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14277 # libtool to hard-code these into programs 14278 ;; 14279 14280 cygwin* | mingw* | pw32*) 14281 version_type=windows 14282 shrext_cmds=".dll" 14283 need_version=no 14284 need_lib_prefix=no 14285 14286 case $GCC,$host_os in 14287 yes,cygwin* | yes,mingw* | yes,pw32*) 14288 library_names_spec='$libname.dll.a' 14289 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14290 postinstall_cmds='base_file=`basename \${file}`~ 14291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14292 dldir=$destdir/`dirname \$dlpath`~ 14293 test -d \$dldir || mkdir -p \$dldir~ 14294 $install_prog $dir/$dlname \$dldir/$dlname~ 14295 chmod a+x \$dldir/$dlname' 14296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14297 dlpath=$dir/\$dldll~ 14298 $rm \$dlpath' 14299 shlibpath_overrides_runpath=yes 14300 14301 case $host_os in 14302 cygwin*) 14303 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14306 ;; 14307 mingw*) 14308 # MinGW DLLs use traditional 'lib' prefix 14309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14312 # It is most probably a Windows format PATH printed by 14313 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14314 # path with ; separators, and with drive letters. We can handle the 14315 # drive letters (cygwin fileutils understands them), so leave them, 14316 # especially as we might pass files found there to a mingw objdump, 14317 # which wouldn't understand a cygwinified path. Ahh. 14318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14319 else 14320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14321 fi 14322 ;; 14323 pw32*) 14324 # pw32 DLLs use 'pw' prefix rather than 'lib' 14325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14326 ;; 14327 esac 14328 ;; 14329 14330 *) 14331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14332 ;; 14333 esac 14334 dynamic_linker='Win32 ld.exe' 14335 # FIXME: first we should search . and the directory the executable is in 14336 shlibpath_var=PATH 14337 ;; 14338 14339 darwin* | rhapsody*) 14340 dynamic_linker="$host_os dyld" 14341 version_type=darwin 14342 need_lib_prefix=no 14343 need_version=no 14344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14345 soname_spec='${libname}${release}${major}$shared_ext' 14346 shlibpath_overrides_runpath=yes 14347 shlibpath_var=DYLD_LIBRARY_PATH 14348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14350 if test "$GCC" = yes; then 14351 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 14352 else 14353 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14354 fi 14355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14356 ;; 14357 14358 dgux*) 14359 version_type=linux 14360 need_lib_prefix=no 14361 need_version=no 14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14363 soname_spec='${libname}${release}${shared_ext}$major' 14364 shlibpath_var=LD_LIBRARY_PATH 14365 ;; 14366 14367 freebsd1*) 14368 dynamic_linker=no 14369 ;; 14370 14371 kfreebsd*-gnu) 14372 version_type=linux 14373 need_lib_prefix=no 14374 need_version=no 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14376 soname_spec='${libname}${release}${shared_ext}$major' 14377 shlibpath_var=LD_LIBRARY_PATH 14378 shlibpath_overrides_runpath=no 14379 hardcode_into_libs=yes 14380 dynamic_linker='GNU ld.so' 14381 ;; 14382 14383 freebsd* | dragonfly*) 14384 # DragonFly does not have aout. When/if they implement a new 14385 # versioning mechanism, adjust this. 14386 if test -x /usr/bin/objformat; then 14387 objformat=`/usr/bin/objformat` 14388 else 14389 case $host_os in 14390 freebsd[123]*) objformat=aout ;; 14391 *) objformat=elf ;; 14392 esac 14393 fi 14394 version_type=freebsd-$objformat 14395 case $version_type in 14396 freebsd-elf*) 14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14398 need_version=no 14399 need_lib_prefix=no 14400 ;; 14401 freebsd-*) 14402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14403 need_version=yes 14404 ;; 14405 esac 14406 shlibpath_var=LD_LIBRARY_PATH 14407 case $host_os in 14408 freebsd2*) 14409 shlibpath_overrides_runpath=yes 14410 ;; 14411 freebsd3.[01]* | freebsdelf3.[01]*) 14412 shlibpath_overrides_runpath=yes 14413 hardcode_into_libs=yes 14414 ;; 14415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14417 shlibpath_overrides_runpath=no 14418 hardcode_into_libs=yes 14419 ;; 14420 freebsd*) # from 4.6 on 14421 shlibpath_overrides_runpath=yes 14422 hardcode_into_libs=yes 14423 ;; 14424 esac 14425 ;; 14426 14427 gnu*) 14428 version_type=linux 14429 need_lib_prefix=no 14430 need_version=no 14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14432 soname_spec='${libname}${release}${shared_ext}$major' 14433 shlibpath_var=LD_LIBRARY_PATH 14434 hardcode_into_libs=yes 14435 ;; 14436 14437 hpux9* | hpux10* | hpux11*) 14438 # Give a soname corresponding to the major version so that dld.sl refuses to 14439 # link against other versions. 14440 version_type=sunos 14441 need_lib_prefix=no 14442 need_version=no 14443 case $host_cpu in 14444 ia64*) 14445 shrext_cmds='.so' 14446 hardcode_into_libs=yes 14447 dynamic_linker="$host_os dld.so" 14448 shlibpath_var=LD_LIBRARY_PATH 14449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14451 soname_spec='${libname}${release}${shared_ext}$major' 14452 if test "X$HPUX_IA64_MODE" = X32; then 14453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14454 else 14455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14456 fi 14457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14458 ;; 14459 hppa*64*) 14460 shrext_cmds='.sl' 14461 hardcode_into_libs=yes 14462 dynamic_linker="$host_os dld.sl" 14463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14466 soname_spec='${libname}${release}${shared_ext}$major' 14467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14469 ;; 14470 *) 14471 shrext_cmds='.sl' 14472 dynamic_linker="$host_os dld.sl" 14473 shlibpath_var=SHLIB_PATH 14474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14476 soname_spec='${libname}${release}${shared_ext}$major' 14477 ;; 14478 esac 14479 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14480 postinstall_cmds='chmod 555 $lib' 14481 ;; 14482 14483 interix3*) 14484 version_type=linux 14485 need_lib_prefix=no 14486 need_version=no 14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14488 soname_spec='${libname}${release}${shared_ext}$major' 14489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14490 shlibpath_var=LD_LIBRARY_PATH 14491 shlibpath_overrides_runpath=no 14492 hardcode_into_libs=yes 14493 ;; 14494 14495 irix5* | irix6* | nonstopux*) 14496 case $host_os in 14497 nonstopux*) version_type=nonstopux ;; 14498 *) 14499 if test "$lt_cv_prog_gnu_ld" = yes; then 14500 version_type=linux 14501 else 14502 version_type=irix 14503 fi ;; 14504 esac 14505 need_lib_prefix=no 14506 need_version=no 14507 soname_spec='${libname}${release}${shared_ext}$major' 14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14509 case $host_os in 14510 irix5* | nonstopux*) 14511 libsuff= shlibsuff= 14512 ;; 14513 *) 14514 case $LD in # libtool.m4 will add one of these switches to LD 14515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14516 libsuff= shlibsuff= libmagic=32-bit;; 14517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14518 libsuff=32 shlibsuff=N32 libmagic=N32;; 14519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14520 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14521 *) libsuff= shlibsuff= libmagic=never-match;; 14522 esac 14523 ;; 14524 esac 14525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14526 shlibpath_overrides_runpath=no 14527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14529 hardcode_into_libs=yes 14530 ;; 14531 14532 # No shared lib support for Linux oldld, aout, or coff. 14533 linux*oldld* | linux*aout* | linux*coff*) 14534 dynamic_linker=no 14535 ;; 14536 14537 # This must be Linux ELF. 14538 linux*) 14539 version_type=linux 14540 need_lib_prefix=no 14541 need_version=no 14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14543 soname_spec='${libname}${release}${shared_ext}$major' 14544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14545 shlibpath_var=LD_LIBRARY_PATH 14546 shlibpath_overrides_runpath=no 14547 # This implies no fast_install, which is unacceptable. 14548 # Some rework will be needed to allow for fast_install 14549 # before this can be enabled. 14550 hardcode_into_libs=yes 14551 14552 # Append ld.so.conf contents to the search path 14553 if test -f /etc/ld.so.conf; then 14554 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14556 fi 14557 14558 # We used to test for /lib/ld.so.1 and disable shared libraries on 14559 # powerpc, because MkLinux only supported shared libraries with the 14560 # GNU dynamic linker. Since this was broken with cross compilers, 14561 # most powerpc-linux boxes support dynamic linking these days and 14562 # people can always --disable-shared, the test was removed, and we 14563 # assume the GNU/Linux dynamic linker is in use. 14564 dynamic_linker='GNU/Linux ld.so' 14565 ;; 14566 14567 knetbsd*-gnu) 14568 version_type=linux 14569 need_lib_prefix=no 14570 need_version=no 14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14572 soname_spec='${libname}${release}${shared_ext}$major' 14573 shlibpath_var=LD_LIBRARY_PATH 14574 shlibpath_overrides_runpath=no 14575 hardcode_into_libs=yes 14576 dynamic_linker='GNU ld.so' 14577 ;; 14578 14579 netbsd*) 14580 version_type=sunos 14581 need_lib_prefix=no 14582 need_version=no 14583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14586 dynamic_linker='NetBSD (a.out) ld.so' 14587 else 14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14589 soname_spec='${libname}${release}${shared_ext}$major' 14590 dynamic_linker='NetBSD ld.elf_so' 14591 fi 14592 shlibpath_var=LD_LIBRARY_PATH 14593 shlibpath_overrides_runpath=yes 14594 hardcode_into_libs=yes 14595 ;; 14596 14597 newsos6) 14598 version_type=linux 14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14600 shlibpath_var=LD_LIBRARY_PATH 14601 shlibpath_overrides_runpath=yes 14602 ;; 14603 14604 nto-qnx*) 14605 version_type=linux 14606 need_lib_prefix=no 14607 need_version=no 14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14609 soname_spec='${libname}${release}${shared_ext}$major' 14610 shlibpath_var=LD_LIBRARY_PATH 14611 shlibpath_overrides_runpath=yes 14612 ;; 14613 14614 openbsd*) 14615 version_type=sunos 14616 sys_lib_dlsearch_path_spec="/usr/lib" 14617 need_lib_prefix=no 14618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14619 case $host_os in 14620 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14621 *) need_version=no ;; 14622 esac 14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14625 shlibpath_var=LD_LIBRARY_PATH 14626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14627 case $host_os in 14628 openbsd2.[89] | openbsd2.[89].*) 14629 shlibpath_overrides_runpath=no 14630 ;; 14631 *) 14632 shlibpath_overrides_runpath=yes 14633 ;; 14634 esac 14635 else 14636 shlibpath_overrides_runpath=yes 14637 fi 14638 ;; 14639 14640 os2*) 14641 libname_spec='$name' 14642 shrext_cmds=".dll" 14643 need_lib_prefix=no 14644 library_names_spec='$libname${shared_ext} $libname.a' 14645 dynamic_linker='OS/2 ld.exe' 14646 shlibpath_var=LIBPATH 14647 ;; 14648 14649 osf3* | osf4* | osf5*) 14650 version_type=osf 14651 need_lib_prefix=no 14652 need_version=no 14653 soname_spec='${libname}${release}${shared_ext}$major' 14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14655 shlibpath_var=LD_LIBRARY_PATH 14656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14658 ;; 14659 14660 solaris*) 14661 version_type=linux 14662 need_lib_prefix=no 14663 need_version=no 14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14665 soname_spec='${libname}${release}${shared_ext}$major' 14666 shlibpath_var=LD_LIBRARY_PATH 14667 shlibpath_overrides_runpath=yes 14668 hardcode_into_libs=yes 14669 # ldd complains unless libraries are executable 14670 postinstall_cmds='chmod +x $lib' 14671 ;; 14672 14673 sunos4*) 14674 version_type=sunos 14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14677 shlibpath_var=LD_LIBRARY_PATH 14678 shlibpath_overrides_runpath=yes 14679 if test "$with_gnu_ld" = yes; then 14680 need_lib_prefix=no 14681 fi 14682 need_version=yes 14683 ;; 14684 14685 sysv4 | sysv4.3*) 14686 version_type=linux 14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14688 soname_spec='${libname}${release}${shared_ext}$major' 14689 shlibpath_var=LD_LIBRARY_PATH 14690 case $host_vendor in 14691 sni) 14692 shlibpath_overrides_runpath=no 14693 need_lib_prefix=no 14694 export_dynamic_flag_spec='${wl}-Blargedynsym' 14695 runpath_var=LD_RUN_PATH 14696 ;; 14697 siemens) 14698 need_lib_prefix=no 14699 ;; 14700 motorola) 14701 need_lib_prefix=no 14702 need_version=no 14703 shlibpath_overrides_runpath=no 14704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14705 ;; 14706 esac 14707 ;; 14708 14709 sysv4*MP*) 14710 if test -d /usr/nec ;then 14711 version_type=linux 14712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14713 soname_spec='$libname${shared_ext}.$major' 14714 shlibpath_var=LD_LIBRARY_PATH 14715 fi 14716 ;; 14717 14718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14719 version_type=freebsd-elf 14720 need_lib_prefix=no 14721 need_version=no 14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14723 soname_spec='${libname}${release}${shared_ext}$major' 14724 shlibpath_var=LD_LIBRARY_PATH 14725 hardcode_into_libs=yes 14726 if test "$with_gnu_ld" = yes; then 14727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14728 shlibpath_overrides_runpath=no 14729 else 14730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14731 shlibpath_overrides_runpath=yes 14732 case $host_os in 14733 sco3.2v5*) 14734 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14735 ;; 14736 esac 14737 fi 14738 sys_lib_dlsearch_path_spec='/usr/lib' 14739 ;; 14740 14741 uts4*) 14742 version_type=linux 14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14744 soname_spec='${libname}${release}${shared_ext}$major' 14745 shlibpath_var=LD_LIBRARY_PATH 14746 ;; 14747 14748 *) 14749 dynamic_linker=no 14750 ;; 14751 esac 14752 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14753 echo "${ECHO_T}$dynamic_linker" >&6; } 14754 test "$dynamic_linker" = no && can_build_shared=no 14755 14756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14757 if test "$GCC" = yes; then 14758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14759 fi 14760 14761 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14762 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14763 hardcode_action_CXX= 14764 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14765 test -n "$runpath_var_CXX" || \ 14766 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14767 14768 # We can hardcode non-existant directories. 14769 if test "$hardcode_direct_CXX" != no && 14770 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14771 # have to relink, otherwise we might link with an installed library 14772 # when we should be linking with a yet-to-be-installed one 14773 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14774 test "$hardcode_minus_L_CXX" != no; then 14775 # Linking always hardcodes the temporary library directory. 14776 hardcode_action_CXX=relink 14777 else 14778 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14779 hardcode_action_CXX=immediate 14780 fi 14781 else 14782 # We cannot hardcode anything, or else we can only hardcode existing 14783 # directories. 14784 hardcode_action_CXX=unsupported 14785 fi 14786 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14787 echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14788 14789 if test "$hardcode_action_CXX" = relink; then 14790 # Fast installation is not supported 14791 enable_fast_install=no 14792 elif test "$shlibpath_overrides_runpath" = yes || 14793 test "$enable_shared" = no; then 14794 # Fast installation is not necessary 14795 enable_fast_install=needless 14796 fi 14797 14798 14799 # The else clause should only fire when bootstrapping the 14800 # libtool distribution, otherwise you forgot to ship ltmain.sh 14801 # with your package, and you will get complaints that there are 14802 # no rules to generate ltmain.sh. 14803 if test -f "$ltmain"; then 14804 # See if we are running on zsh, and set the options which allow our commands through 14805 # without removal of \ escapes. 14806 if test -n "${ZSH_VERSION+set}" ; then 14807 setopt NO_GLOB_SUBST 14808 fi 14809 # Now quote all the things that may contain metacharacters while being 14810 # careful not to overquote the AC_SUBSTed values. We take copies of the 14811 # variables and quote the copies for generation of the libtool script. 14812 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14813 SED SHELL STRIP \ 14814 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14815 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14816 deplibs_check_method reload_flag reload_cmds need_locks \ 14817 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14818 lt_cv_sys_global_symbol_to_c_name_address \ 14819 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14820 old_postinstall_cmds old_postuninstall_cmds \ 14821 compiler_CXX \ 14822 CC_CXX \ 14823 LD_CXX \ 14824 lt_prog_compiler_wl_CXX \ 14825 lt_prog_compiler_pic_CXX \ 14826 lt_prog_compiler_static_CXX \ 14827 lt_prog_compiler_no_builtin_flag_CXX \ 14828 export_dynamic_flag_spec_CXX \ 14829 thread_safe_flag_spec_CXX \ 14830 whole_archive_flag_spec_CXX \ 14831 enable_shared_with_static_runtimes_CXX \ 14832 old_archive_cmds_CXX \ 14833 old_archive_from_new_cmds_CXX \ 14834 predep_objects_CXX \ 14835 postdep_objects_CXX \ 14836 predeps_CXX \ 14837 postdeps_CXX \ 14838 compiler_lib_search_path_CXX \ 14839 archive_cmds_CXX \ 14840 archive_expsym_cmds_CXX \ 14841 postinstall_cmds_CXX \ 14842 postuninstall_cmds_CXX \ 14843 old_archive_from_expsyms_cmds_CXX \ 14844 allow_undefined_flag_CXX \ 14845 no_undefined_flag_CXX \ 14846 export_symbols_cmds_CXX \ 14847 hardcode_libdir_flag_spec_CXX \ 14848 hardcode_libdir_flag_spec_ld_CXX \ 14849 hardcode_libdir_separator_CXX \ 14850 hardcode_automatic_CXX \ 14851 module_cmds_CXX \ 14852 module_expsym_cmds_CXX \ 14853 lt_cv_prog_compiler_c_o_CXX \ 14854 exclude_expsyms_CXX \ 14855 include_expsyms_CXX; do 14856 14857 case $var in 14858 old_archive_cmds_CXX | \ 14859 old_archive_from_new_cmds_CXX | \ 14860 archive_cmds_CXX | \ 14861 archive_expsym_cmds_CXX | \ 14862 module_cmds_CXX | \ 14863 module_expsym_cmds_CXX | \ 14864 old_archive_from_expsyms_cmds_CXX | \ 14865 export_symbols_cmds_CXX | \ 14866 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14867 postinstall_cmds | postuninstall_cmds | \ 14868 old_postinstall_cmds | old_postuninstall_cmds | \ 14869 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14870 # Double-quote double-evaled strings. 14871 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14872 ;; 14873 *) 14874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14875 ;; 14876 esac 14877 done 14878 14879 case $lt_echo in 14880 *'\$0 --fallback-echo"') 14881 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14882 ;; 14883 esac 14884 14885 cfgfile="$ofile" 14886 14887 cat <<__EOF__ >> "$cfgfile" 14888 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 14889 14890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14891 14892 # Shell to use when invoking shell scripts. 14893 SHELL=$lt_SHELL 14894 14895 # Whether or not to build shared libraries. 14896 build_libtool_libs=$enable_shared 14897 14898 # Whether or not to build static libraries. 14899 build_old_libs=$enable_static 14900 14901 # Whether or not to add -lc for building shared libraries. 14902 build_libtool_need_lc=$archive_cmds_need_lc_CXX 14903 14904 # Whether or not to disallow shared libs when runtime libs are static 14905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14906 14907 # Whether or not to optimize for fast installation. 14908 fast_install=$enable_fast_install 14909 14910 # The host system. 14911 host_alias=$host_alias 14912 host=$host 14913 host_os=$host_os 14914 14915 # The build system. 14916 build_alias=$build_alias 14917 build=$build 14918 build_os=$build_os 14919 14920 # An echo program that does not interpret backslashes. 14921 echo=$lt_echo 14922 14923 # The archiver. 14924 AR=$lt_AR 14925 AR_FLAGS=$lt_AR_FLAGS 14926 14927 # A C compiler. 14928 LTCC=$lt_LTCC 14929 14930 # LTCC compiler flags. 14931 LTCFLAGS=$lt_LTCFLAGS 14932 14933 # A language-specific compiler. 14934 CC=$lt_compiler_CXX 14935 14936 # Is the compiler the GNU C compiler? 14937 with_gcc=$GCC_CXX 14938 14939 # An ERE matcher. 14940 EGREP=$lt_EGREP 14941 14942 # The linker used to build libraries. 14943 LD=$lt_LD_CXX 14944 14945 # Whether we need hard or soft links. 14946 LN_S=$lt_LN_S 14947 14948 # A BSD-compatible nm program. 14949 NM=$lt_NM 14950 14951 # A symbol stripping program 14952 STRIP=$lt_STRIP 14953 14954 # Used to examine libraries when file_magic_cmd begins "file" 14955 MAGIC_CMD=$MAGIC_CMD 14956 14957 # Used on cygwin: DLL creation program. 14958 DLLTOOL="$DLLTOOL" 14959 14960 # Used on cygwin: object dumper. 14961 OBJDUMP="$OBJDUMP" 14962 14963 # Used on cygwin: assembler. 14964 AS="$AS" 14965 14966 # The name of the directory that contains temporary libtool files. 14967 objdir=$objdir 14968 14969 # How to create reloadable object files. 14970 reload_flag=$lt_reload_flag 14971 reload_cmds=$lt_reload_cmds 14972 14973 # How to pass a linker flag through the compiler. 14974 wl=$lt_lt_prog_compiler_wl_CXX 14975 14976 # Object file suffix (normally "o"). 14977 objext="$ac_objext" 14978 14979 # Old archive suffix (normally "a"). 14980 libext="$libext" 14981 14982 # Shared library suffix (normally ".so"). 14983 shrext_cmds='$shrext_cmds' 14984 14985 # Executable file suffix (normally ""). 14986 exeext="$exeext" 14987 14988 # Additional compiler flags for building library objects. 14989 pic_flag=$lt_lt_prog_compiler_pic_CXX 14990 pic_mode=$pic_mode 14991 14992 # What is the maximum length of a command? 14993 max_cmd_len=$lt_cv_sys_max_cmd_len 14994 14995 # Does compiler simultaneously support -c and -o options? 14996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14997 14998 # Must we lock files when doing compilation? 14999 need_locks=$lt_need_locks 15000 15001 # Do we need the lib prefix for modules? 15002 need_lib_prefix=$need_lib_prefix 15003 15004 # Do we need a version for libraries? 15005 need_version=$need_version 15006 15007 # Whether dlopen is supported. 15008 dlopen_support=$enable_dlopen 15009 15010 # Whether dlopen of programs is supported. 15011 dlopen_self=$enable_dlopen_self 15012 15013 # Whether dlopen of statically linked programs is supported. 15014 dlopen_self_static=$enable_dlopen_self_static 15015 15016 # Compiler flag to prevent dynamic linking. 15017 link_static_flag=$lt_lt_prog_compiler_static_CXX 15018 15019 # Compiler flag to turn off builtin functions. 15020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15021 15022 # Compiler flag to allow reflexive dlopens. 15023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15024 15025 # Compiler flag to generate shared objects directly from archives. 15026 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15027 15028 # Compiler flag to generate thread-safe objects. 15029 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15030 15031 # Library versioning type. 15032 version_type=$version_type 15033 15034 # Format of library name prefix. 15035 libname_spec=$lt_libname_spec 15036 15037 # List of archive names. First name is the real one, the rest are links. 15038 # The last name is the one that the linker finds with -lNAME. 15039 library_names_spec=$lt_library_names_spec 15040 15041 # The coded name of the library, if different from the real name. 15042 soname_spec=$lt_soname_spec 15043 15044 # Commands used to build and install an old-style archive. 15045 RANLIB=$lt_RANLIB 15046 old_archive_cmds=$lt_old_archive_cmds_CXX 15047 old_postinstall_cmds=$lt_old_postinstall_cmds 15048 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15049 15050 # Create an old-style archive from a shared archive. 15051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15052 15053 # Create a temporary old-style archive to link instead of a shared archive. 15054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15055 15056 # Commands used to build and install a shared archive. 15057 archive_cmds=$lt_archive_cmds_CXX 15058 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15059 postinstall_cmds=$lt_postinstall_cmds 15060 postuninstall_cmds=$lt_postuninstall_cmds 15061 15062 # Commands used to build a loadable module (assumed same as above if empty) 15063 module_cmds=$lt_module_cmds_CXX 15064 module_expsym_cmds=$lt_module_expsym_cmds_CXX 15065 15066 # Commands to strip libraries. 15067 old_striplib=$lt_old_striplib 15068 striplib=$lt_striplib 15069 15070 # Dependencies to place before the objects being linked to create a 15071 # shared library. 15072 predep_objects=$lt_predep_objects_CXX 15073 15074 # Dependencies to place after the objects being linked to create a 15075 # shared library. 15076 postdep_objects=$lt_postdep_objects_CXX 15077 15078 # Dependencies to place before the objects being linked to create a 15079 # shared library. 15080 predeps=$lt_predeps_CXX 15081 15082 # Dependencies to place after the objects being linked to create a 15083 # shared library. 15084 postdeps=$lt_postdeps_CXX 15085 15086 # The library search path used internally by the compiler when linking 15087 # a shared library. 15088 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15089 15090 # Method to check whether dependent libraries are shared objects. 15091 deplibs_check_method=$lt_deplibs_check_method 15092 15093 # Command to use when deplibs_check_method == file_magic. 15094 file_magic_cmd=$lt_file_magic_cmd 15095 15096 # Flag that allows shared libraries with undefined symbols to be built. 15097 allow_undefined_flag=$lt_allow_undefined_flag_CXX 15098 15099 # Flag that forces no undefined symbols. 15100 no_undefined_flag=$lt_no_undefined_flag_CXX 15101 15102 # Commands used to finish a libtool library installation in a directory. 15103 finish_cmds=$lt_finish_cmds 15104 15105 # Same as above, but a single script fragment to be evaled but not shown. 15106 finish_eval=$lt_finish_eval 15107 15108 # Take the output of nm and produce a listing of raw symbols and C names. 15109 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15110 15111 # Transform the output of nm in a proper C declaration 15112 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15113 15114 # Transform the output of nm in a C name address pair 15115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15116 15117 # This is the shared library runtime path variable. 15118 runpath_var=$runpath_var 15119 15120 # This is the shared library path variable. 15121 shlibpath_var=$shlibpath_var 15122 15123 # Is shlibpath searched before the hard-coded library search path? 15124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15125 15126 # How to hardcode a shared library path into an executable. 15127 hardcode_action=$hardcode_action_CXX 15128 15129 # Whether we should hardcode library paths into libraries. 15130 hardcode_into_libs=$hardcode_into_libs 15131 15132 # Flag to hardcode \$libdir into a binary during linking. 15133 # This must work even if \$libdir does not exist. 15134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15135 15136 # If ld is used when linking, flag to hardcode \$libdir into 15137 # a binary during linking. This must work even if \$libdir does 15138 # not exist. 15139 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15140 15141 # Whether we need a single -rpath flag with a separated argument. 15142 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15143 15144 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15145 # resulting binary. 15146 hardcode_direct=$hardcode_direct_CXX 15147 15148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15149 # resulting binary. 15150 hardcode_minus_L=$hardcode_minus_L_CXX 15151 15152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15153 # the resulting binary. 15154 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15155 15156 # Set to yes if building a shared library automatically hardcodes DIR into the library 15157 # and all subsequent libraries and executables linked against it. 15158 hardcode_automatic=$hardcode_automatic_CXX 15159 15160 # Variables whose values should be saved in libtool wrapper scripts and 15161 # restored at relink time. 15162 variables_saved_for_relink="$variables_saved_for_relink" 15163 15164 # Whether libtool must link a program against all its dependency libraries. 15165 link_all_deplibs=$link_all_deplibs_CXX 15166 15167 # Compile-time system search path for libraries 15168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15169 15170 # Run-time system search path for libraries 15171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15172 15173 # Fix the shell variable \$srcfile for the compiler. 15174 fix_srcfile_path="$fix_srcfile_path_CXX" 15175 15176 # Set to yes if exported symbols are required. 15177 always_export_symbols=$always_export_symbols_CXX 15178 15179 # The commands to list exported symbols. 15180 export_symbols_cmds=$lt_export_symbols_cmds_CXX 15181 15182 # The commands to extract the exported symbol list from a shared archive. 15183 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15184 15185 # Symbols that should not be listed in the preloaded symbols. 15186 exclude_expsyms=$lt_exclude_expsyms_CXX 15187 15188 # Symbols that must always be exported. 15189 include_expsyms=$lt_include_expsyms_CXX 15190 15191 # ### END LIBTOOL TAG CONFIG: $tagname 15192 15193 __EOF__ 15194 15195 15196 else 15197 # If there is no Makefile yet, we rely on a make rule to execute 15198 # `config.status --recheck' to rerun these tests and create the 15199 # libtool script then. 15200 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15201 if test -f "$ltmain_in"; then 15202 test -f Makefile && make "$ltmain" 15203 fi 15204 fi 15205 15206 15207 ac_ext=c 15208 ac_cpp='$CPP $CPPFLAGS' 15209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15211 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15212 15213 CC=$lt_save_CC 15214 LDCXX=$LD 15215 LD=$lt_save_LD 15216 GCC=$lt_save_GCC 15217 with_gnu_ldcxx=$with_gnu_ld 15218 with_gnu_ld=$lt_save_with_gnu_ld 15219 lt_cv_path_LDCXX=$lt_cv_path_LD 15220 lt_cv_path_LD=$lt_save_path_LD 15221 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15222 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15223 15224 else 15225 tagname="" 15226 fi 15227 ;; 15228 15229 F77) 15230 if test -n "$F77" && test "X$F77" != "Xno"; then 15231 15232 ac_ext=f 15233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15236 15237 15238 archive_cmds_need_lc_F77=no 15239 allow_undefined_flag_F77= 15240 always_export_symbols_F77=no 15241 archive_expsym_cmds_F77= 15242 export_dynamic_flag_spec_F77= 15243 hardcode_direct_F77=no 15244 hardcode_libdir_flag_spec_F77= 15245 hardcode_libdir_flag_spec_ld_F77= 15246 hardcode_libdir_separator_F77= 15247 hardcode_minus_L_F77=no 15248 hardcode_automatic_F77=no 15249 module_cmds_F77= 15250 module_expsym_cmds_F77= 15251 link_all_deplibs_F77=unknown 15252 old_archive_cmds_F77=$old_archive_cmds 15253 no_undefined_flag_F77= 15254 whole_archive_flag_spec_F77= 15255 enable_shared_with_static_runtimes_F77=no 15256 15257 # Source file extension for f77 test sources. 15258 ac_ext=f 15259 15260 # Object file extension for compiled f77 test sources. 15261 objext=o 15262 objext_F77=$objext 15263 15264 # Code to be used in simple compile tests 15265 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15266 15267 # Code to be used in simple link tests 15268 lt_simple_link_test_code=" program t\n end\n" 15269 15270 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15271 15272 # If no C compiler was specified, use CC. 15273 LTCC=${LTCC-"$CC"} 15274 15275 # If no C compiler flags were specified, use CFLAGS. 15276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15277 15278 # Allow CC to be a program name with arguments. 15279 compiler=$CC 15280 15281 15282 # save warnings/boilerplate of simple test code 15283 ac_outfile=conftest.$ac_objext 15284 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15286 _lt_compiler_boilerplate=`cat conftest.err` 15287 $rm conftest* 15288 15289 ac_outfile=conftest.$ac_objext 15290 printf "$lt_simple_link_test_code" >conftest.$ac_ext 15291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15292 _lt_linker_boilerplate=`cat conftest.err` 15293 $rm conftest* 15294 15295 15296 # Allow CC to be a program name with arguments. 15297 lt_save_CC="$CC" 15298 CC=${F77-"f77"} 15299 compiler=$CC 15300 compiler_F77=$CC 15301 for cc_temp in $compiler""; do 15302 case $cc_temp in 15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15305 \-*) ;; 15306 *) break;; 15307 esac 15308 done 15309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15310 15311 15312 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15313 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 15314 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 15315 echo "${ECHO_T}$can_build_shared" >&6; } 15316 15317 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15318 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 15319 test "$can_build_shared" = "no" && enable_shared=no 15320 15321 # On AIX, shared libraries and static libraries use the same namespace, and 15322 # are all built from PIC. 15323 case $host_os in 15324 aix3*) 15325 test "$enable_shared" = yes && enable_static=no 15326 if test -n "$RANLIB"; then 15327 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15328 postinstall_cmds='$RANLIB $lib' 15329 fi 15330 ;; 15331 aix4* | aix5*) 15332 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15333 test "$enable_shared" = yes && enable_static=no 15334 fi 15335 ;; 15336 esac 15337 { echo "$as_me:$LINENO: result: $enable_shared" >&5 15338 echo "${ECHO_T}$enable_shared" >&6; } 15339 15340 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15341 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 15342 # Make sure either enable_shared or enable_static is yes. 15343 test "$enable_shared" = yes || enable_static=yes 15344 { echo "$as_me:$LINENO: result: $enable_static" >&5 15345 echo "${ECHO_T}$enable_static" >&6; } 15346 15347 GCC_F77="$G77" 15348 LD_F77="$LD" 15349 15350 lt_prog_compiler_wl_F77= 15351 lt_prog_compiler_pic_F77= 15352 lt_prog_compiler_static_F77= 15353 15354 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15356 15357 if test "$GCC" = yes; then 15358 lt_prog_compiler_wl_F77='-Wl,' 15359 lt_prog_compiler_static_F77='-static' 15360 15361 case $host_os in 15362 aix*) 15363 # All AIX code is PIC. 15364 if test "$host_cpu" = ia64; then 15365 # AIX 5 now supports IA64 processor 15366 lt_prog_compiler_static_F77='-Bstatic' 15367 fi 15368 ;; 15369 15370 amigaos*) 15371 # FIXME: we need at least 68020 code to build shared libraries, but 15372 # adding the `-m68020' flag to GCC prevents building anything better, 15373 # like `-m68040'. 15374 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15375 ;; 15376 15377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15378 # PIC is the default for these OSes. 15379 ;; 15380 15381 mingw* | cygwin* | pw32* | os2*) 15382 # This hack is so that the source file can tell whether it is being 15383 # built for inclusion in a dll (and should export symbols for example). 15384 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15385 # (--disable-auto-import) libraries 15386 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15387 ;; 15388 15389 darwin* | rhapsody*) 15390 # PIC is the default on this platform 15391 # Common symbols not allowed in MH_DYLIB files 15392 lt_prog_compiler_pic_F77='-fno-common' 15393 ;; 15394 15395 interix3*) 15396 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15397 # Instead, we relocate shared libraries at runtime. 15398 ;; 15399 15400 msdosdjgpp*) 15401 # Just because we use GCC doesn't mean we suddenly get shared libraries 15402 # on systems that don't support them. 15403 lt_prog_compiler_can_build_shared_F77=no 15404 enable_shared=no 15405 ;; 15406 15407 sysv4*MP*) 15408 if test -d /usr/nec; then 15409 lt_prog_compiler_pic_F77=-Kconform_pic 15410 fi 15411 ;; 15412 15413 hpux*) 15414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15415 # not for PA HP-UX. 15416 case $host_cpu in 15417 hppa*64*|ia64*) 15418 # +Z the default 15419 ;; 15420 *) 15421 lt_prog_compiler_pic_F77='-fPIC' 15422 ;; 15423 esac 15424 ;; 15425 15426 *) 15427 lt_prog_compiler_pic_F77='-fPIC' 15428 ;; 15429 esac 15430 else 15431 # PORTME Check for flag to pass linker flags through the system compiler. 15432 case $host_os in 15433 aix*) 15434 lt_prog_compiler_wl_F77='-Wl,' 15435 if test "$host_cpu" = ia64; then 15436 # AIX 5 now supports IA64 processor 15437 lt_prog_compiler_static_F77='-Bstatic' 15438 else 15439 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15440 fi 15441 ;; 15442 darwin*) 15443 # PIC is the default on this platform 15444 # Common symbols not allowed in MH_DYLIB files 15445 case $cc_basename in 15446 xlc*) 15447 lt_prog_compiler_pic_F77='-qnocommon' 15448 lt_prog_compiler_wl_F77='-Wl,' 15449 ;; 15450 esac 15451 ;; 15452 15453 mingw* | cygwin* | pw32* | os2*) 15454 # This hack is so that the source file can tell whether it is being 15455 # built for inclusion in a dll (and should export symbols for example). 15456 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15457 # (--disable-auto-import) libraries 15458 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15459 ;; 15460 15461 hpux9* | hpux10* | hpux11*) 15462 lt_prog_compiler_wl_F77='-Wl,' 15463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15464 # not for PA HP-UX. 15465 case $host_cpu in 15466 hppa*64*|ia64*) 15467 # +Z the default 15468 ;; 15469 *) 15470 lt_prog_compiler_pic_F77='+Z' 15471 ;; 15472 esac 15473 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15474 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15475 ;; 15476 15477 irix5* | irix6* | nonstopux*) 15478 lt_prog_compiler_wl_F77='-Wl,' 15479 # PIC (with -KPIC) is the default. 15480 lt_prog_compiler_static_F77='-non_shared' 15481 ;; 15482 15483 newsos6) 15484 lt_prog_compiler_pic_F77='-KPIC' 15485 lt_prog_compiler_static_F77='-Bstatic' 15486 ;; 15487 15488 linux*) 15489 case $cc_basename in 15490 icc* | ecc*) 15491 lt_prog_compiler_wl_F77='-Wl,' 15492 lt_prog_compiler_pic_F77='-KPIC' 15493 lt_prog_compiler_static_F77='-static' 15494 ;; 15495 pgcc* | pgf77* | pgf90* | pgf95*) 15496 # Portland Group compilers (*not* the Pentium gcc compiler, 15497 # which looks to be a dead project) 15498 lt_prog_compiler_wl_F77='-Wl,' 15499 lt_prog_compiler_pic_F77='-fpic' 15500 lt_prog_compiler_static_F77='-Bstatic' 15501 ;; 15502 ccc*) 15503 lt_prog_compiler_wl_F77='-Wl,' 15504 # All Alpha code is PIC. 15505 lt_prog_compiler_static_F77='-non_shared' 15506 ;; 15507 como) 15508 lt_prog_compiler_wl_F77='-lopt=' 15509 ;; 15510 *) 15511 case `$CC -V 2>&1 | sed 5q` in 15512 *Sun\ C*) 15513 # Sun C 5.9 15514 lt_prog_compiler_pic_F77='-KPIC' 15515 lt_prog_compiler_static_F77='-Bstatic' 15516 lt_prog_compiler_wl_F77='-Wl,' 15517 ;; 15518 *Sun\ F*) 15519 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15520 lt_prog_compiler_pic_F77='-KPIC' 15521 lt_prog_compiler_static_F77='-Bstatic' 15522 lt_prog_compiler_wl_F77='' 15523 ;; 15524 esac 15525 ;; 15526 esac 15527 ;; 15528 15529 osf3* | osf4* | osf5*) 15530 lt_prog_compiler_wl_F77='-Wl,' 15531 # All OSF/1 code is PIC. 15532 lt_prog_compiler_static_F77='-non_shared' 15533 ;; 15534 15535 solaris*) 15536 lt_prog_compiler_pic_F77='-KPIC' 15537 lt_prog_compiler_static_F77='-Bstatic' 15538 case $cc_basename in 15539 f77* | f90* | f95*) 15540 lt_prog_compiler_wl_F77='-Qoption ld ';; 15541 *) 15542 lt_prog_compiler_wl_F77='-Wl,';; 15543 esac 15544 ;; 15545 15546 sunos4*) 15547 lt_prog_compiler_wl_F77='-Qoption ld ' 15548 lt_prog_compiler_pic_F77='-PIC' 15549 lt_prog_compiler_static_F77='-Bstatic' 15550 ;; 15551 15552 sysv4 | sysv4.2uw2* | sysv4.3*) 15553 lt_prog_compiler_wl_F77='-Wl,' 15554 lt_prog_compiler_pic_F77='-KPIC' 15555 lt_prog_compiler_static_F77='-Bstatic' 15556 ;; 15557 15558 sysv4*MP*) 15559 if test -d /usr/nec ;then 15560 lt_prog_compiler_pic_F77='-Kconform_pic' 15561 lt_prog_compiler_static_F77='-Bstatic' 15562 fi 15563 ;; 15564 15565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15566 lt_prog_compiler_wl_F77='-Wl,' 15567 lt_prog_compiler_pic_F77='-KPIC' 15568 lt_prog_compiler_static_F77='-Bstatic' 15569 ;; 15570 15571 unicos*) 15572 lt_prog_compiler_wl_F77='-Wl,' 15573 lt_prog_compiler_can_build_shared_F77=no 15574 ;; 15575 15576 uts4*) 15577 lt_prog_compiler_pic_F77='-pic' 15578 lt_prog_compiler_static_F77='-Bstatic' 15579 ;; 15580 15581 *) 15582 lt_prog_compiler_can_build_shared_F77=no 15583 ;; 15584 esac 15585 fi 15586 15587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15588 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 15589 15590 # 15591 # Check to make sure the PIC flag actually works. 15592 # 15593 if test -n "$lt_prog_compiler_pic_F77"; then 15594 15595 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15596 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 15597 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15598 echo $ECHO_N "(cached) $ECHO_C" >&6 15599 else 15600 lt_prog_compiler_pic_works_F77=no 15601 ac_outfile=conftest.$ac_objext 15602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15603 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15604 # Insert the option either (1) after the last *FLAGS variable, or 15605 # (2) before a word containing "conftest.", or (3) at the end. 15606 # Note that $ac_compile itself does not contain backslashes and begins 15607 # with a dollar sign (not a hyphen), so the echo should work correctly. 15608 # The option is referenced via a variable to avoid confusing sed. 15609 lt_compile=`echo "$ac_compile" | $SED \ 15610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15612 -e 's:$: $lt_compiler_flag:'` 15613 (eval echo "\"\$as_me:15613: $lt_compile\"" >&5) 15614 (eval "$lt_compile" 2>conftest.err) 15615 ac_status=$? 15616 cat conftest.err >&5 15617 echo "$as_me:15617: \$? = $ac_status" >&5 15618 if (exit $ac_status) && test -s "$ac_outfile"; then 15619 # The compiler can only warn and ignore the option if not recognized 15620 # So say no if there are warnings other than the usual output. 15621 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15624 lt_prog_compiler_pic_works_F77=yes 15625 fi 15626 fi 15627 $rm conftest* 15628 15629 fi 15630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15631 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 15632 15633 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15634 case $lt_prog_compiler_pic_F77 in 15635 "" | " "*) ;; 15636 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15637 esac 15638 else 15639 lt_prog_compiler_pic_F77= 15640 lt_prog_compiler_can_build_shared_F77=no 15641 fi 15642 15643 fi 15644 case $host_os in 15645 # For platforms which do not support PIC, -DPIC is meaningless: 15646 *djgpp*) 15647 lt_prog_compiler_pic_F77= 15648 ;; 15649 *) 15650 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15651 ;; 15652 esac 15653 15654 # 15655 # Check to make sure the static flag actually works. 15656 # 15657 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15658 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15659 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15660 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15661 echo $ECHO_N "(cached) $ECHO_C" >&6 15662 else 15663 lt_prog_compiler_static_works_F77=no 15664 save_LDFLAGS="$LDFLAGS" 15665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15666 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15668 # The linker can only warn and ignore the option if not recognized 15669 # So say no if there are warnings 15670 if test -s conftest.err; then 15671 # Append any errors to the config.log. 15672 cat conftest.err 1>&5 15673 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15675 if diff conftest.exp conftest.er2 >/dev/null; then 15676 lt_prog_compiler_static_works_F77=yes 15677 fi 15678 else 15679 lt_prog_compiler_static_works_F77=yes 15680 fi 15681 fi 15682 $rm conftest* 15683 LDFLAGS="$save_LDFLAGS" 15684 15685 fi 15686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15687 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 15688 15689 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15690 : 15691 else 15692 lt_prog_compiler_static_F77= 15693 fi 15694 15695 15696 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15697 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15698 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15699 echo $ECHO_N "(cached) $ECHO_C" >&6 15700 else 15701 lt_cv_prog_compiler_c_o_F77=no 15702 $rm -r conftest 2>/dev/null 15703 mkdir conftest 15704 cd conftest 15705 mkdir out 15706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15707 15708 lt_compiler_flag="-o out/conftest2.$ac_objext" 15709 # Insert the option either (1) after the last *FLAGS variable, or 15710 # (2) before a word containing "conftest.", or (3) at the end. 15711 # Note that $ac_compile itself does not contain backslashes and begins 15712 # with a dollar sign (not a hyphen), so the echo should work correctly. 15713 lt_compile=`echo "$ac_compile" | $SED \ 15714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15716 -e 's:$: $lt_compiler_flag:'` 15717 (eval echo "\"\$as_me:15717: $lt_compile\"" >&5) 15718 (eval "$lt_compile" 2>out/conftest.err) 15719 ac_status=$? 15720 cat out/conftest.err >&5 15721 echo "$as_me:15721: \$? = $ac_status" >&5 15722 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15723 then 15724 # The compiler can only warn and ignore the option if not recognized 15725 # So say no if there are warnings 15726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15729 lt_cv_prog_compiler_c_o_F77=yes 15730 fi 15731 fi 15732 chmod u+w . 2>&5 15733 $rm conftest* 15734 # SGI C++ compiler will create directory out/ii_files/ for 15735 # template instantiation 15736 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15737 $rm out/* && rmdir out 15738 cd .. 15739 rmdir conftest 15740 $rm conftest* 15741 15742 fi 15743 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15744 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 15745 15746 15747 hard_links="nottested" 15748 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15749 # do not overwrite the value of need_locks provided by the user 15750 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15752 hard_links=yes 15753 $rm conftest* 15754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15755 touch conftest.a 15756 ln conftest.a conftest.b 2>&5 || hard_links=no 15757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15758 { echo "$as_me:$LINENO: result: $hard_links" >&5 15759 echo "${ECHO_T}$hard_links" >&6; } 15760 if test "$hard_links" = no; then 15761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15763 need_locks=warn 15764 fi 15765 else 15766 need_locks=no 15767 fi 15768 15769 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15771 15772 runpath_var= 15773 allow_undefined_flag_F77= 15774 enable_shared_with_static_runtimes_F77=no 15775 archive_cmds_F77= 15776 archive_expsym_cmds_F77= 15777 old_archive_From_new_cmds_F77= 15778 old_archive_from_expsyms_cmds_F77= 15779 export_dynamic_flag_spec_F77= 15780 whole_archive_flag_spec_F77= 15781 thread_safe_flag_spec_F77= 15782 hardcode_libdir_flag_spec_F77= 15783 hardcode_libdir_flag_spec_ld_F77= 15784 hardcode_libdir_separator_F77= 15785 hardcode_direct_F77=no 15786 hardcode_minus_L_F77=no 15787 hardcode_shlibpath_var_F77=unsupported 15788 link_all_deplibs_F77=unknown 15789 hardcode_automatic_F77=no 15790 module_cmds_F77= 15791 module_expsym_cmds_F77= 15792 always_export_symbols_F77=no 15793 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15794 # include_expsyms should be a list of space-separated symbols to be *always* 15795 # included in the symbol list 15796 include_expsyms_F77= 15797 # exclude_expsyms can be an extended regexp of symbols to exclude 15798 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15800 # as well as any symbol that contains `d'. 15801 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15803 # platforms (ab)use it in PIC code, but their linkers get confused if 15804 # the symbol is explicitly referenced. Since portable code cannot 15805 # rely on this symbol name, it's probably fine to never include it in 15806 # preloaded symbol tables. 15807 extract_expsyms_cmds= 15808 # Just being paranoid about ensuring that cc_basename is set. 15809 for cc_temp in $compiler""; do 15810 case $cc_temp in 15811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15813 \-*) ;; 15814 *) break;; 15815 esac 15816 done 15817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15818 15819 case $host_os in 15820 cygwin* | mingw* | pw32*) 15821 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15822 # When not using gcc, we currently assume that we are using 15823 # Microsoft Visual C++. 15824 if test "$GCC" != yes; then 15825 with_gnu_ld=no 15826 fi 15827 ;; 15828 interix*) 15829 # we just hope/assume this is gcc and not c89 (= MSVC++) 15830 with_gnu_ld=yes 15831 ;; 15832 openbsd*) 15833 with_gnu_ld=no 15834 ;; 15835 esac 15836 15837 ld_shlibs_F77=yes 15838 if test "$with_gnu_ld" = yes; then 15839 # If archive_cmds runs LD, not CC, wlarc should be empty 15840 wlarc='${wl}' 15841 15842 # Set some defaults for GNU ld with shared library support. These 15843 # are reset later if shared libraries are not supported. Putting them 15844 # here allows them to be overridden if necessary. 15845 runpath_var=LD_RUN_PATH 15846 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15847 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15848 # ancient GNU ld didn't support --whole-archive et. al. 15849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15850 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15851 else 15852 whole_archive_flag_spec_F77= 15853 fi 15854 supports_anon_versioning=no 15855 case `$LD -v 2>/dev/null` in 15856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15859 *\ 2.11.*) ;; # other 2.11 versions 15860 *) supports_anon_versioning=yes ;; 15861 esac 15862 15863 # See if GNU ld supports shared libraries. 15864 case $host_os in 15865 aix3* | aix4* | aix5*) 15866 # On AIX/PPC, the GNU linker is very broken 15867 if test "$host_cpu" != ia64; then 15868 ld_shlibs_F77=no 15869 cat <<EOF 1>&2 15870 15871 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 15872 *** to be unable to reliably create shared libraries on AIX. 15873 *** Therefore, libtool is disabling shared libraries support. If you 15874 *** really care for shared libraries, you may want to modify your PATH 15875 *** so that a non-GNU linker is found, and then restart. 15876 15877 EOF 15878 fi 15879 ;; 15880 15881 amigaos*) 15882 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15883 hardcode_libdir_flag_spec_F77='-L$libdir' 15884 hardcode_minus_L_F77=yes 15885 15886 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 15887 # that the semantics of dynamic libraries on AmigaOS, at least up 15888 # to version 4, is to share data among multiple programs linked 15889 # with the same dynamic library. Since this doesn't match the 15890 # behavior of shared libraries on other platforms, we can't use 15891 # them. 15892 ld_shlibs_F77=no 15893 ;; 15894 15895 beos*) 15896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15897 allow_undefined_flag_F77=unsupported 15898 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 15899 # support --undefined. This deserves some investigation. FIXME 15900 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15901 else 15902 ld_shlibs_F77=no 15903 fi 15904 ;; 15905 15906 cygwin* | mingw* | pw32*) 15907 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15908 # as there is no search path for DLLs. 15909 hardcode_libdir_flag_spec_F77='-L$libdir' 15910 allow_undefined_flag_F77=unsupported 15911 always_export_symbols_F77=no 15912 enable_shared_with_static_runtimes_F77=yes 15913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15914 15915 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15917 # If the export-symbols file already is a .def file (1st line 15918 # is EXPORTS), use it as is; otherwise, prepend... 15919 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15920 cp $export_symbols $output_objdir/$soname.def; 15921 else 15922 echo EXPORTS > $output_objdir/$soname.def; 15923 cat $export_symbols >> $output_objdir/$soname.def; 15924 fi~ 15925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15926 else 15927 ld_shlibs_F77=no 15928 fi 15929 ;; 15930 15931 interix3*) 15932 hardcode_direct_F77=no 15933 hardcode_shlibpath_var_F77=no 15934 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15935 export_dynamic_flag_spec_F77='${wl}-E' 15936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15937 # Instead, shared libraries are loaded at an image base (0x10000000 by 15938 # default) and relocated if they conflict, which is a slow very memory 15939 # consuming and fragmenting process. To avoid this, we pick a random, 15940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15941 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15942 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15943 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15944 ;; 15945 15946 linux*) 15947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15948 tmp_addflag= 15949 case $cc_basename,$host_cpu in 15950 pgcc*) # Portland Group C compiler 15951 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15952 tmp_addflag=' $pic_flag' 15953 ;; 15954 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15955 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15956 tmp_addflag=' $pic_flag -Mnomain' ;; 15957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15958 tmp_addflag=' -i_dynamic' ;; 15959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15960 tmp_addflag=' -i_dynamic -nofor_main' ;; 15961 ifc* | ifort*) # Intel Fortran compiler 15962 tmp_addflag=' -nofor_main' ;; 15963 esac 15964 case `$CC -V 2>&1 | sed 5q` in 15965 *Sun\ C*) # Sun C 5.9 15966 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 15967 tmp_sharedflag='-G' ;; 15968 *Sun\ F*) # Sun Fortran 8.3 15969 tmp_sharedflag='-G' ;; 15970 *) 15971 tmp_sharedflag='-shared' ;; 15972 esac 15973 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15974 15975 if test $supports_anon_versioning = yes; then 15976 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15978 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15980 fi 15981 else 15982 ld_shlibs_F77=no 15983 fi 15984 ;; 15985 15986 netbsd*) 15987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15988 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15989 wlarc= 15990 else 15991 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15992 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15993 fi 15994 ;; 15995 15996 solaris*) 15997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15998 ld_shlibs_F77=no 15999 cat <<EOF 1>&2 16000 16001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16002 *** create shared libraries on Solaris systems. Therefore, libtool 16003 *** is disabling shared libraries support. We urge you to upgrade GNU 16004 *** binutils to release 2.9.1 or newer. Another option is to modify 16005 *** your PATH or compiler configuration so that the native linker is 16006 *** used, and then restart. 16007 16008 EOF 16009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16010 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16011 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16012 else 16013 ld_shlibs_F77=no 16014 fi 16015 ;; 16016 16017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16018 case `$LD -v 2>&1` in 16019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16020 ld_shlibs_F77=no 16021 cat <<_LT_EOF 1>&2 16022 16023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16024 *** reliably create shared libraries on SCO systems. Therefore, libtool 16025 *** is disabling shared libraries support. We urge you to upgrade GNU 16026 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16027 *** your PATH or compiler configuration so that the native linker is 16028 *** used, and then restart. 16029 16030 _LT_EOF 16031 ;; 16032 *) 16033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16034 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16036 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16037 else 16038 ld_shlibs_F77=no 16039 fi 16040 ;; 16041 esac 16042 ;; 16043 16044 sunos4*) 16045 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16046 wlarc= 16047 hardcode_direct_F77=yes 16048 hardcode_shlibpath_var_F77=no 16049 ;; 16050 16051 *) 16052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16053 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16054 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16055 else 16056 ld_shlibs_F77=no 16057 fi 16058 ;; 16059 esac 16060 16061 if test "$ld_shlibs_F77" = no; then 16062 runpath_var= 16063 hardcode_libdir_flag_spec_F77= 16064 export_dynamic_flag_spec_F77= 16065 whole_archive_flag_spec_F77= 16066 fi 16067 else 16068 # PORTME fill in a description of your system's linker (not GNU ld) 16069 case $host_os in 16070 aix3*) 16071 allow_undefined_flag_F77=unsupported 16072 always_export_symbols_F77=yes 16073 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16074 # Note: this linker hardcodes the directories in LIBPATH if there 16075 # are no directories specified by -L. 16076 hardcode_minus_L_F77=yes 16077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16078 # Neither direct hardcoding nor static linking is supported with a 16079 # broken collect2. 16080 hardcode_direct_F77=unsupported 16081 fi 16082 ;; 16083 16084 aix4* | aix5*) 16085 if test "$host_cpu" = ia64; then 16086 # On IA64, the linker does run time linking by default, so we don't 16087 # have to do anything special. 16088 aix_use_runtimelinking=no 16089 exp_sym_flag='-Bexport' 16090 no_entry_flag="" 16091 else 16092 # If we're using GNU nm, then we don't want the "-C" option. 16093 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16094 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16095 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16096 else 16097 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16098 fi 16099 aix_use_runtimelinking=no 16100 16101 # Test if we are trying to use run time linking or normal 16102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16103 # need to do runtime linking. 16104 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16105 for ld_flag in $LDFLAGS; do 16106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16107 aix_use_runtimelinking=yes 16108 break 16109 fi 16110 done 16111 ;; 16112 esac 16113 16114 exp_sym_flag='-bexport' 16115 no_entry_flag='-bnoentry' 16116 fi 16117 16118 # When large executables or shared objects are built, AIX ld can 16119 # have problems creating the table of contents. If linking a library 16120 # or program results in "error TOC overflow" add -mminimal-toc to 16121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16123 16124 archive_cmds_F77='' 16125 hardcode_direct_F77=yes 16126 hardcode_libdir_separator_F77=':' 16127 link_all_deplibs_F77=yes 16128 16129 if test "$GCC" = yes; then 16130 case $host_os in aix4.[012]|aix4.[012].*) 16131 # We only want to do this on AIX 4.2 and lower, the check 16132 # below for broken collect2 doesn't work under 4.3+ 16133 collect2name=`${CC} -print-prog-name=collect2` 16134 if test -f "$collect2name" && \ 16135 strings "$collect2name" | grep resolve_lib_name >/dev/null 16136 then 16137 # We have reworked collect2 16138 hardcode_direct_F77=yes 16139 else 16140 # We have old collect2 16141 hardcode_direct_F77=unsupported 16142 # It fails to find uninstalled libraries when the uninstalled 16143 # path is not listed in the libpath. Setting hardcode_minus_L 16144 # to unsupported forces relinking 16145 hardcode_minus_L_F77=yes 16146 hardcode_libdir_flag_spec_F77='-L$libdir' 16147 hardcode_libdir_separator_F77= 16148 fi 16149 ;; 16150 esac 16151 shared_flag='-shared' 16152 if test "$aix_use_runtimelinking" = yes; then 16153 shared_flag="$shared_flag "'${wl}-G' 16154 fi 16155 else 16156 # not using gcc 16157 if test "$host_cpu" = ia64; then 16158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16159 # chokes on -Wl,-G. The following line is correct: 16160 shared_flag='-G' 16161 else 16162 if test "$aix_use_runtimelinking" = yes; then 16163 shared_flag='${wl}-G' 16164 else 16165 shared_flag='${wl}-bM:SRE' 16166 fi 16167 fi 16168 fi 16169 16170 # It seems that -bexpall does not export symbols beginning with 16171 # underscore (_), so it is better to generate a list of symbols to export. 16172 always_export_symbols_F77=yes 16173 if test "$aix_use_runtimelinking" = yes; then 16174 # Warning - without using the other runtime loading flags (-brtl), 16175 # -berok will link without error, but may produce a broken library. 16176 allow_undefined_flag_F77='-berok' 16177 # Determine the default libpath from the value encoded in an empty executable. 16178 cat >conftest.$ac_ext <<_ACEOF 16179 program main 16180 16181 end 16182 _ACEOF 16183 rm -f conftest.$ac_objext conftest$ac_exeext 16184 if { (ac_try="$ac_link" 16185 case "(($ac_try" in 16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16187 *) ac_try_echo=$ac_try;; 16188 esac 16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16190 (eval "$ac_link") 2>conftest.er1 16191 ac_status=$? 16192 grep -v '^ *+' conftest.er1 >conftest.err 16193 rm -f conftest.er1 16194 cat conftest.err >&5 16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16196 (exit $ac_status); } && { 16197 test -z "$ac_f77_werror_flag" || 16198 test ! -s conftest.err 16199 } && test -s conftest$ac_exeext && 16200 $as_test_x conftest$ac_exeext; then 16201 16202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16203 }'` 16204 # Check for a 64-bit object if we didn't find anything. 16205 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16206 }'`; fi 16207 else 16208 echo "$as_me: failed program was:" >&5 16209 sed 's/^/| /' conftest.$ac_ext >&5 16210 16211 16212 fi 16213 16214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16215 conftest$ac_exeext conftest.$ac_ext 16216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16217 16218 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16219 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16220 else 16221 if test "$host_cpu" = ia64; then 16222 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16223 allow_undefined_flag_F77="-z nodefs" 16224 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16225 else 16226 # Determine the default libpath from the value encoded in an empty executable. 16227 cat >conftest.$ac_ext <<_ACEOF 16228 program main 16229 16230 end 16231 _ACEOF 16232 rm -f conftest.$ac_objext conftest$ac_exeext 16233 if { (ac_try="$ac_link" 16234 case "(($ac_try" in 16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16236 *) ac_try_echo=$ac_try;; 16237 esac 16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16239 (eval "$ac_link") 2>conftest.er1 16240 ac_status=$? 16241 grep -v '^ *+' conftest.er1 >conftest.err 16242 rm -f conftest.er1 16243 cat conftest.err >&5 16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16245 (exit $ac_status); } && { 16246 test -z "$ac_f77_werror_flag" || 16247 test ! -s conftest.err 16248 } && test -s conftest$ac_exeext && 16249 $as_test_x conftest$ac_exeext; then 16250 16251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16252 }'` 16253 # Check for a 64-bit object if we didn't find anything. 16254 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16255 }'`; fi 16256 else 16257 echo "$as_me: failed program was:" >&5 16258 sed 's/^/| /' conftest.$ac_ext >&5 16259 16260 16261 fi 16262 16263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16264 conftest$ac_exeext conftest.$ac_ext 16265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16266 16267 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16268 # Warning - without using the other run time loading flags, 16269 # -berok will link without error, but may produce a broken library. 16270 no_undefined_flag_F77=' ${wl}-bernotok' 16271 allow_undefined_flag_F77=' ${wl}-berok' 16272 # Exported symbols can be pulled into shared objects from archives 16273 whole_archive_flag_spec_F77='$convenience' 16274 archive_cmds_need_lc_F77=yes 16275 # This is similar to how AIX traditionally builds its shared libraries. 16276 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16277 fi 16278 fi 16279 ;; 16280 16281 amigaos*) 16282 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16283 hardcode_libdir_flag_spec_F77='-L$libdir' 16284 hardcode_minus_L_F77=yes 16285 # see comment about different semantics on the GNU ld section 16286 ld_shlibs_F77=no 16287 ;; 16288 16289 bsdi[45]*) 16290 export_dynamic_flag_spec_F77=-rdynamic 16291 ;; 16292 16293 cygwin* | mingw* | pw32*) 16294 # When not using gcc, we currently assume that we are using 16295 # Microsoft Visual C++. 16296 # hardcode_libdir_flag_spec is actually meaningless, as there is 16297 # no search path for DLLs. 16298 hardcode_libdir_flag_spec_F77=' ' 16299 allow_undefined_flag_F77=unsupported 16300 # Tell ltmain to make .lib files, not .a files. 16301 libext=lib 16302 # Tell ltmain to make .dll files, not .so files. 16303 shrext_cmds=".dll" 16304 # FIXME: Setting linknames here is a bad hack. 16305 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16306 # The linker will automatically build a .lib file if we build a DLL. 16307 old_archive_From_new_cmds_F77='true' 16308 # FIXME: Should let the user specify the lib program. 16309 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16310 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16311 enable_shared_with_static_runtimes_F77=yes 16312 ;; 16313 16314 darwin* | rhapsody*) 16315 case $host_os in 16316 rhapsody* | darwin1.[012]) 16317 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16318 ;; 16319 *) # Darwin 1.3 on 16320 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16321 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16322 else 16323 case ${MACOSX_DEPLOYMENT_TARGET} in 16324 10.[012]) 16325 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16326 ;; 16327 10.*) 16328 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16329 ;; 16330 esac 16331 fi 16332 ;; 16333 esac 16334 archive_cmds_need_lc_F77=no 16335 hardcode_direct_F77=no 16336 hardcode_automatic_F77=yes 16337 hardcode_shlibpath_var_F77=unsupported 16338 whole_archive_flag_spec_F77='' 16339 link_all_deplibs_F77=yes 16340 if test "$GCC" = yes ; then 16341 output_verbose_link_cmd='echo' 16342 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16343 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16345 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16346 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16347 else 16348 case $cc_basename in 16349 xlc*) 16350 output_verbose_link_cmd='echo' 16351 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16352 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16354 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16355 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16356 ;; 16357 *) 16358 ld_shlibs_F77=no 16359 ;; 16360 esac 16361 fi 16362 ;; 16363 16364 dgux*) 16365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16366 hardcode_libdir_flag_spec_F77='-L$libdir' 16367 hardcode_shlibpath_var_F77=no 16368 ;; 16369 16370 freebsd1*) 16371 ld_shlibs_F77=no 16372 ;; 16373 16374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16375 # support. Future versions do this automatically, but an explicit c++rt0.o 16376 # does not break anything, and helps significantly (at the cost of a little 16377 # extra space). 16378 freebsd2.2*) 16379 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16380 hardcode_libdir_flag_spec_F77='-R$libdir' 16381 hardcode_direct_F77=yes 16382 hardcode_shlibpath_var_F77=no 16383 ;; 16384 16385 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16386 freebsd2*) 16387 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16388 hardcode_direct_F77=yes 16389 hardcode_minus_L_F77=yes 16390 hardcode_shlibpath_var_F77=no 16391 ;; 16392 16393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16394 freebsd* | kfreebsd*-gnu | dragonfly*) 16395 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16396 hardcode_libdir_flag_spec_F77='-R$libdir' 16397 hardcode_direct_F77=yes 16398 hardcode_shlibpath_var_F77=no 16399 ;; 16400 16401 hpux9*) 16402 if test "$GCC" = yes; then 16403 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16404 else 16405 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16406 fi 16407 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16408 hardcode_libdir_separator_F77=: 16409 hardcode_direct_F77=yes 16410 16411 # hardcode_minus_L: Not really in the search PATH, 16412 # but as the default location of the library. 16413 hardcode_minus_L_F77=yes 16414 export_dynamic_flag_spec_F77='${wl}-E' 16415 ;; 16416 16417 hpux10*) 16418 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16419 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16420 else 16421 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16422 fi 16423 if test "$with_gnu_ld" = no; then 16424 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16425 hardcode_libdir_separator_F77=: 16426 16427 hardcode_direct_F77=yes 16428 export_dynamic_flag_spec_F77='${wl}-E' 16429 16430 # hardcode_minus_L: Not really in the search PATH, 16431 # but as the default location of the library. 16432 hardcode_minus_L_F77=yes 16433 fi 16434 ;; 16435 16436 hpux11*) 16437 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16438 case $host_cpu in 16439 hppa*64*) 16440 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16441 ;; 16442 ia64*) 16443 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16444 ;; 16445 *) 16446 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16447 ;; 16448 esac 16449 else 16450 case $host_cpu in 16451 hppa*64*) 16452 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16453 ;; 16454 ia64*) 16455 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16456 ;; 16457 *) 16458 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16459 ;; 16460 esac 16461 fi 16462 if test "$with_gnu_ld" = no; then 16463 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16464 hardcode_libdir_separator_F77=: 16465 16466 case $host_cpu in 16467 hppa*64*|ia64*) 16468 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16469 hardcode_direct_F77=no 16470 hardcode_shlibpath_var_F77=no 16471 ;; 16472 *) 16473 hardcode_direct_F77=yes 16474 export_dynamic_flag_spec_F77='${wl}-E' 16475 16476 # hardcode_minus_L: Not really in the search PATH, 16477 # but as the default location of the library. 16478 hardcode_minus_L_F77=yes 16479 ;; 16480 esac 16481 fi 16482 ;; 16483 16484 irix5* | irix6* | nonstopux*) 16485 if test "$GCC" = yes; then 16486 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16487 else 16488 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16489 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16490 fi 16491 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16492 hardcode_libdir_separator_F77=: 16493 link_all_deplibs_F77=yes 16494 ;; 16495 16496 netbsd*) 16497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16498 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16499 else 16500 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16501 fi 16502 hardcode_libdir_flag_spec_F77='-R$libdir' 16503 hardcode_direct_F77=yes 16504 hardcode_shlibpath_var_F77=no 16505 ;; 16506 16507 newsos6) 16508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16509 hardcode_direct_F77=yes 16510 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16511 hardcode_libdir_separator_F77=: 16512 hardcode_shlibpath_var_F77=no 16513 ;; 16514 16515 openbsd*) 16516 hardcode_direct_F77=yes 16517 hardcode_shlibpath_var_F77=no 16518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16519 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16520 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16521 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16522 export_dynamic_flag_spec_F77='${wl}-E' 16523 else 16524 case $host_os in 16525 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16526 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16527 hardcode_libdir_flag_spec_F77='-R$libdir' 16528 ;; 16529 *) 16530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16531 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16532 ;; 16533 esac 16534 fi 16535 ;; 16536 16537 os2*) 16538 hardcode_libdir_flag_spec_F77='-L$libdir' 16539 hardcode_minus_L_F77=yes 16540 allow_undefined_flag_F77=unsupported 16541 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 16542 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16543 ;; 16544 16545 osf3*) 16546 if test "$GCC" = yes; then 16547 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16548 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16549 else 16550 allow_undefined_flag_F77=' -expect_unresolved \*' 16551 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16552 fi 16553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16554 hardcode_libdir_separator_F77=: 16555 ;; 16556 16557 osf4* | osf5*) # as osf3* with the addition of -msym flag 16558 if test "$GCC" = yes; then 16559 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16560 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16562 else 16563 allow_undefined_flag_F77=' -expect_unresolved \*' 16564 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16565 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 16566 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 16567 16568 # Both c and cxx compiler support -rpath directly 16569 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16570 fi 16571 hardcode_libdir_separator_F77=: 16572 ;; 16573 16574 solaris*) 16575 no_undefined_flag_F77=' -z text' 16576 if test "$GCC" = yes; then 16577 wlarc='${wl}' 16578 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16579 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16580 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16581 else 16582 wlarc='' 16583 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16584 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16586 fi 16587 hardcode_libdir_flag_spec_F77='-R$libdir' 16588 hardcode_shlibpath_var_F77=no 16589 case $host_os in 16590 solaris2.[0-5] | solaris2.[0-5].*) ;; 16591 *) 16592 # The compiler driver will combine linker options so we 16593 # cannot just pass the convience library names through 16594 # without $wl, iff we do not link with $LD. 16595 # Luckily, gcc supports the same syntax we need for Sun Studio. 16596 # Supported since Solaris 2.6 (maybe 2.5.1?) 16597 case $wlarc in 16598 '') 16599 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16600 *) 16601 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 16602 esac ;; 16603 esac 16604 link_all_deplibs_F77=yes 16605 ;; 16606 16607 sunos4*) 16608 if test "x$host_vendor" = xsequent; then 16609 # Use $CC to link under sequent, because it throws in some extra .o 16610 # files that make .init and .fini sections work. 16611 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16612 else 16613 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16614 fi 16615 hardcode_libdir_flag_spec_F77='-L$libdir' 16616 hardcode_direct_F77=yes 16617 hardcode_minus_L_F77=yes 16618 hardcode_shlibpath_var_F77=no 16619 ;; 16620 16621 sysv4) 16622 case $host_vendor in 16623 sni) 16624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16625 hardcode_direct_F77=yes # is this really true??? 16626 ;; 16627 siemens) 16628 ## LD is ld it makes a PLAMLIB 16629 ## CC just makes a GrossModule. 16630 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16631 reload_cmds_F77='$CC -r -o $output$reload_objs' 16632 hardcode_direct_F77=no 16633 ;; 16634 motorola) 16635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16636 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16637 ;; 16638 esac 16639 runpath_var='LD_RUN_PATH' 16640 hardcode_shlibpath_var_F77=no 16641 ;; 16642 16643 sysv4.3*) 16644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16645 hardcode_shlibpath_var_F77=no 16646 export_dynamic_flag_spec_F77='-Bexport' 16647 ;; 16648 16649 sysv4*MP*) 16650 if test -d /usr/nec; then 16651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16652 hardcode_shlibpath_var_F77=no 16653 runpath_var=LD_RUN_PATH 16654 hardcode_runpath_var=yes 16655 ld_shlibs_F77=yes 16656 fi 16657 ;; 16658 16659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16660 no_undefined_flag_F77='${wl}-z,text' 16661 archive_cmds_need_lc_F77=no 16662 hardcode_shlibpath_var_F77=no 16663 runpath_var='LD_RUN_PATH' 16664 16665 if test "$GCC" = yes; then 16666 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16667 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16668 else 16669 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16670 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16671 fi 16672 ;; 16673 16674 sysv5* | sco3.2v5* | sco5v6*) 16675 # Note: We can NOT use -z defs as we might desire, because we do not 16676 # link with -lc, and that would cause any symbols used from libc to 16677 # always be unresolved, which means just about no library would 16678 # ever link correctly. If we're not using GNU ld we use -z text 16679 # though, which does catch some bad symbols but isn't as heavy-handed 16680 # as -z defs. 16681 no_undefined_flag_F77='${wl}-z,text' 16682 allow_undefined_flag_F77='${wl}-z,nodefs' 16683 archive_cmds_need_lc_F77=no 16684 hardcode_shlibpath_var_F77=no 16685 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16686 hardcode_libdir_separator_F77=':' 16687 link_all_deplibs_F77=yes 16688 export_dynamic_flag_spec_F77='${wl}-Bexport' 16689 runpath_var='LD_RUN_PATH' 16690 16691 if test "$GCC" = yes; then 16692 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16693 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16694 else 16695 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16696 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16697 fi 16698 ;; 16699 16700 uts4*) 16701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16702 hardcode_libdir_flag_spec_F77='-L$libdir' 16703 hardcode_shlibpath_var_F77=no 16704 ;; 16705 16706 *) 16707 ld_shlibs_F77=no 16708 ;; 16709 esac 16710 fi 16711 16712 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16713 echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16714 test "$ld_shlibs_F77" = no && can_build_shared=no 16715 16716 # 16717 # Do we need to explicitly link libc? 16718 # 16719 case "x$archive_cmds_need_lc_F77" in 16720 x|xyes) 16721 # Assume -lc should be added 16722 archive_cmds_need_lc_F77=yes 16723 16724 if test "$enable_shared" = yes && test "$GCC" = yes; then 16725 case $archive_cmds_F77 in 16726 *'~'*) 16727 # FIXME: we may have to deal with multi-command sequences. 16728 ;; 16729 '$CC '*) 16730 # Test whether the compiler implicitly links with -lc since on some 16731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16732 # to ld, don't add -lc before -lgcc. 16733 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16735 $rm conftest* 16736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16737 16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16739 (eval $ac_compile) 2>&5 16740 ac_status=$? 16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16742 (exit $ac_status); } 2>conftest.err; then 16743 soname=conftest 16744 lib=conftest 16745 libobjs=conftest.$ac_objext 16746 deplibs= 16747 wl=$lt_prog_compiler_wl_F77 16748 pic_flag=$lt_prog_compiler_pic_F77 16749 compiler_flags=-v 16750 linker_flags=-v 16751 verstring= 16752 output_objdir=. 16753 libname=conftest 16754 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16755 allow_undefined_flag_F77= 16756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16757 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16758 ac_status=$? 16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16760 (exit $ac_status); } 16761 then 16762 archive_cmds_need_lc_F77=no 16763 else 16764 archive_cmds_need_lc_F77=yes 16765 fi 16766 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16767 else 16768 cat conftest.err 1>&5 16769 fi 16770 $rm conftest* 16771 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16772 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16773 ;; 16774 esac 16775 fi 16776 ;; 16777 esac 16778 16779 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16781 library_names_spec= 16782 libname_spec='lib$name' 16783 soname_spec= 16784 shrext_cmds=".so" 16785 postinstall_cmds= 16786 postuninstall_cmds= 16787 finish_cmds= 16788 finish_eval= 16789 shlibpath_var= 16790 shlibpath_overrides_runpath=unknown 16791 version_type=none 16792 dynamic_linker="$host_os ld.so" 16793 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16794 if test "$GCC" = yes; then 16795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16797 # if the path contains ";" then we assume it to be the separator 16798 # otherwise default to the standard path separator (i.e. ":") - it is 16799 # assumed that no part of a normal pathname contains ";" but that should 16800 # okay in the real world where ";" in dirpaths is itself problematic. 16801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16802 else 16803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16804 fi 16805 else 16806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16807 fi 16808 need_lib_prefix=unknown 16809 hardcode_into_libs=no 16810 16811 # when you set need_version to no, make sure it does not cause -set_version 16812 # flags to be left without arguments 16813 need_version=unknown 16814 16815 case $host_os in 16816 aix3*) 16817 version_type=linux 16818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16819 shlibpath_var=LIBPATH 16820 16821 # AIX 3 has no versioning support, so we append a major version to the name. 16822 soname_spec='${libname}${release}${shared_ext}$major' 16823 ;; 16824 16825 aix4* | aix5*) 16826 version_type=linux 16827 need_lib_prefix=no 16828 need_version=no 16829 hardcode_into_libs=yes 16830 if test "$host_cpu" = ia64; then 16831 # AIX 5 supports IA64 16832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16833 shlibpath_var=LD_LIBRARY_PATH 16834 else 16835 # With GCC up to 2.95.x, collect2 would create an import file 16836 # for dependence libraries. The import file would start with 16837 # the line `#! .'. This would cause the generated library to 16838 # depend on `.', always an invalid library. This was fixed in 16839 # development snapshots of GCC prior to 3.0. 16840 case $host_os in 16841 aix4 | aix4.[01] | aix4.[01].*) 16842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16843 echo ' yes ' 16844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16845 : 16846 else 16847 can_build_shared=no 16848 fi 16849 ;; 16850 esac 16851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16852 # soname into executable. Probably we can add versioning support to 16853 # collect2, so additional links can be useful in future. 16854 if test "$aix_use_runtimelinking" = yes; then 16855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16856 # instead of lib<name>.a to let people know that these are not 16857 # typical AIX shared libraries. 16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16859 else 16860 # We preserve .a as extension for shared libraries through AIX4.2 16861 # and later when we are not doing run time linking. 16862 library_names_spec='${libname}${release}.a $libname.a' 16863 soname_spec='${libname}${release}${shared_ext}$major' 16864 fi 16865 shlibpath_var=LIBPATH 16866 fi 16867 ;; 16868 16869 amigaos*) 16870 library_names_spec='$libname.ixlibrary $libname.a' 16871 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16872 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16873 ;; 16874 16875 beos*) 16876 library_names_spec='${libname}${shared_ext}' 16877 dynamic_linker="$host_os ld.so" 16878 shlibpath_var=LIBRARY_PATH 16879 ;; 16880 16881 bsdi[45]*) 16882 version_type=linux 16883 need_version=no 16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16885 soname_spec='${libname}${release}${shared_ext}$major' 16886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16887 shlibpath_var=LD_LIBRARY_PATH 16888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16890 # the default ld.so.conf also contains /usr/contrib/lib and 16891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16892 # libtool to hard-code these into programs 16893 ;; 16894 16895 cygwin* | mingw* | pw32*) 16896 version_type=windows 16897 shrext_cmds=".dll" 16898 need_version=no 16899 need_lib_prefix=no 16900 16901 case $GCC,$host_os in 16902 yes,cygwin* | yes,mingw* | yes,pw32*) 16903 library_names_spec='$libname.dll.a' 16904 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16905 postinstall_cmds='base_file=`basename \${file}`~ 16906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16907 dldir=$destdir/`dirname \$dlpath`~ 16908 test -d \$dldir || mkdir -p \$dldir~ 16909 $install_prog $dir/$dlname \$dldir/$dlname~ 16910 chmod a+x \$dldir/$dlname' 16911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16912 dlpath=$dir/\$dldll~ 16913 $rm \$dlpath' 16914 shlibpath_overrides_runpath=yes 16915 16916 case $host_os in 16917 cygwin*) 16918 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16921 ;; 16922 mingw*) 16923 # MinGW DLLs use traditional 'lib' prefix 16924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16927 # It is most probably a Windows format PATH printed by 16928 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16929 # path with ; separators, and with drive letters. We can handle the 16930 # drive letters (cygwin fileutils understands them), so leave them, 16931 # especially as we might pass files found there to a mingw objdump, 16932 # which wouldn't understand a cygwinified path. Ahh. 16933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16934 else 16935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16936 fi 16937 ;; 16938 pw32*) 16939 # pw32 DLLs use 'pw' prefix rather than 'lib' 16940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16941 ;; 16942 esac 16943 ;; 16944 16945 *) 16946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16947 ;; 16948 esac 16949 dynamic_linker='Win32 ld.exe' 16950 # FIXME: first we should search . and the directory the executable is in 16951 shlibpath_var=PATH 16952 ;; 16953 16954 darwin* | rhapsody*) 16955 dynamic_linker="$host_os dyld" 16956 version_type=darwin 16957 need_lib_prefix=no 16958 need_version=no 16959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16960 soname_spec='${libname}${release}${major}$shared_ext' 16961 shlibpath_overrides_runpath=yes 16962 shlibpath_var=DYLD_LIBRARY_PATH 16963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16965 if test "$GCC" = yes; then 16966 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16967 else 16968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16969 fi 16970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16971 ;; 16972 16973 dgux*) 16974 version_type=linux 16975 need_lib_prefix=no 16976 need_version=no 16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16978 soname_spec='${libname}${release}${shared_ext}$major' 16979 shlibpath_var=LD_LIBRARY_PATH 16980 ;; 16981 16982 freebsd1*) 16983 dynamic_linker=no 16984 ;; 16985 16986 kfreebsd*-gnu) 16987 version_type=linux 16988 need_lib_prefix=no 16989 need_version=no 16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16991 soname_spec='${libname}${release}${shared_ext}$major' 16992 shlibpath_var=LD_LIBRARY_PATH 16993 shlibpath_overrides_runpath=no 16994 hardcode_into_libs=yes 16995 dynamic_linker='GNU ld.so' 16996 ;; 16997 16998 freebsd* | dragonfly*) 16999 # DragonFly does not have aout. When/if they implement a new 17000 # versioning mechanism, adjust this. 17001 if test -x /usr/bin/objformat; then 17002 objformat=`/usr/bin/objformat` 17003 else 17004 case $host_os in 17005 freebsd[123]*) objformat=aout ;; 17006 *) objformat=elf ;; 17007 esac 17008 fi 17009 version_type=freebsd-$objformat 17010 case $version_type in 17011 freebsd-elf*) 17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17013 need_version=no 17014 need_lib_prefix=no 17015 ;; 17016 freebsd-*) 17017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17018 need_version=yes 17019 ;; 17020 esac 17021 shlibpath_var=LD_LIBRARY_PATH 17022 case $host_os in 17023 freebsd2*) 17024 shlibpath_overrides_runpath=yes 17025 ;; 17026 freebsd3.[01]* | freebsdelf3.[01]*) 17027 shlibpath_overrides_runpath=yes 17028 hardcode_into_libs=yes 17029 ;; 17030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17032 shlibpath_overrides_runpath=no 17033 hardcode_into_libs=yes 17034 ;; 17035 freebsd*) # from 4.6 on 17036 shlibpath_overrides_runpath=yes 17037 hardcode_into_libs=yes 17038 ;; 17039 esac 17040 ;; 17041 17042 gnu*) 17043 version_type=linux 17044 need_lib_prefix=no 17045 need_version=no 17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17047 soname_spec='${libname}${release}${shared_ext}$major' 17048 shlibpath_var=LD_LIBRARY_PATH 17049 hardcode_into_libs=yes 17050 ;; 17051 17052 hpux9* | hpux10* | hpux11*) 17053 # Give a soname corresponding to the major version so that dld.sl refuses to 17054 # link against other versions. 17055 version_type=sunos 17056 need_lib_prefix=no 17057 need_version=no 17058 case $host_cpu in 17059 ia64*) 17060 shrext_cmds='.so' 17061 hardcode_into_libs=yes 17062 dynamic_linker="$host_os dld.so" 17063 shlibpath_var=LD_LIBRARY_PATH 17064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17066 soname_spec='${libname}${release}${shared_ext}$major' 17067 if test "X$HPUX_IA64_MODE" = X32; then 17068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17069 else 17070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17071 fi 17072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17073 ;; 17074 hppa*64*) 17075 shrext_cmds='.sl' 17076 hardcode_into_libs=yes 17077 dynamic_linker="$host_os dld.sl" 17078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17081 soname_spec='${libname}${release}${shared_ext}$major' 17082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17084 ;; 17085 *) 17086 shrext_cmds='.sl' 17087 dynamic_linker="$host_os dld.sl" 17088 shlibpath_var=SHLIB_PATH 17089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17091 soname_spec='${libname}${release}${shared_ext}$major' 17092 ;; 17093 esac 17094 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17095 postinstall_cmds='chmod 555 $lib' 17096 ;; 17097 17098 interix3*) 17099 version_type=linux 17100 need_lib_prefix=no 17101 need_version=no 17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17103 soname_spec='${libname}${release}${shared_ext}$major' 17104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17105 shlibpath_var=LD_LIBRARY_PATH 17106 shlibpath_overrides_runpath=no 17107 hardcode_into_libs=yes 17108 ;; 17109 17110 irix5* | irix6* | nonstopux*) 17111 case $host_os in 17112 nonstopux*) version_type=nonstopux ;; 17113 *) 17114 if test "$lt_cv_prog_gnu_ld" = yes; then 17115 version_type=linux 17116 else 17117 version_type=irix 17118 fi ;; 17119 esac 17120 need_lib_prefix=no 17121 need_version=no 17122 soname_spec='${libname}${release}${shared_ext}$major' 17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17124 case $host_os in 17125 irix5* | nonstopux*) 17126 libsuff= shlibsuff= 17127 ;; 17128 *) 17129 case $LD in # libtool.m4 will add one of these switches to LD 17130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17131 libsuff= shlibsuff= libmagic=32-bit;; 17132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17133 libsuff=32 shlibsuff=N32 libmagic=N32;; 17134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17135 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17136 *) libsuff= shlibsuff= libmagic=never-match;; 17137 esac 17138 ;; 17139 esac 17140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17141 shlibpath_overrides_runpath=no 17142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17144 hardcode_into_libs=yes 17145 ;; 17146 17147 # No shared lib support for Linux oldld, aout, or coff. 17148 linux*oldld* | linux*aout* | linux*coff*) 17149 dynamic_linker=no 17150 ;; 17151 17152 # This must be Linux ELF. 17153 linux*) 17154 version_type=linux 17155 need_lib_prefix=no 17156 need_version=no 17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17158 soname_spec='${libname}${release}${shared_ext}$major' 17159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17160 shlibpath_var=LD_LIBRARY_PATH 17161 shlibpath_overrides_runpath=no 17162 # This implies no fast_install, which is unacceptable. 17163 # Some rework will be needed to allow for fast_install 17164 # before this can be enabled. 17165 hardcode_into_libs=yes 17166 17167 # Append ld.so.conf contents to the search path 17168 if test -f /etc/ld.so.conf; then 17169 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17171 fi 17172 17173 # We used to test for /lib/ld.so.1 and disable shared libraries on 17174 # powerpc, because MkLinux only supported shared libraries with the 17175 # GNU dynamic linker. Since this was broken with cross compilers, 17176 # most powerpc-linux boxes support dynamic linking these days and 17177 # people can always --disable-shared, the test was removed, and we 17178 # assume the GNU/Linux dynamic linker is in use. 17179 dynamic_linker='GNU/Linux ld.so' 17180 ;; 17181 17182 knetbsd*-gnu) 17183 version_type=linux 17184 need_lib_prefix=no 17185 need_version=no 17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17187 soname_spec='${libname}${release}${shared_ext}$major' 17188 shlibpath_var=LD_LIBRARY_PATH 17189 shlibpath_overrides_runpath=no 17190 hardcode_into_libs=yes 17191 dynamic_linker='GNU ld.so' 17192 ;; 17193 17194 netbsd*) 17195 version_type=sunos 17196 need_lib_prefix=no 17197 need_version=no 17198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17201 dynamic_linker='NetBSD (a.out) ld.so' 17202 else 17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17204 soname_spec='${libname}${release}${shared_ext}$major' 17205 dynamic_linker='NetBSD ld.elf_so' 17206 fi 17207 shlibpath_var=LD_LIBRARY_PATH 17208 shlibpath_overrides_runpath=yes 17209 hardcode_into_libs=yes 17210 ;; 17211 17212 newsos6) 17213 version_type=linux 17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17215 shlibpath_var=LD_LIBRARY_PATH 17216 shlibpath_overrides_runpath=yes 17217 ;; 17218 17219 nto-qnx*) 17220 version_type=linux 17221 need_lib_prefix=no 17222 need_version=no 17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17224 soname_spec='${libname}${release}${shared_ext}$major' 17225 shlibpath_var=LD_LIBRARY_PATH 17226 shlibpath_overrides_runpath=yes 17227 ;; 17228 17229 openbsd*) 17230 version_type=sunos 17231 sys_lib_dlsearch_path_spec="/usr/lib" 17232 need_lib_prefix=no 17233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17234 case $host_os in 17235 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17236 *) need_version=no ;; 17237 esac 17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17240 shlibpath_var=LD_LIBRARY_PATH 17241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17242 case $host_os in 17243 openbsd2.[89] | openbsd2.[89].*) 17244 shlibpath_overrides_runpath=no 17245 ;; 17246 *) 17247 shlibpath_overrides_runpath=yes 17248 ;; 17249 esac 17250 else 17251 shlibpath_overrides_runpath=yes 17252 fi 17253 ;; 17254 17255 os2*) 17256 libname_spec='$name' 17257 shrext_cmds=".dll" 17258 need_lib_prefix=no 17259 library_names_spec='$libname${shared_ext} $libname.a' 17260 dynamic_linker='OS/2 ld.exe' 17261 shlibpath_var=LIBPATH 17262 ;; 17263 17264 osf3* | osf4* | osf5*) 17265 version_type=osf 17266 need_lib_prefix=no 17267 need_version=no 17268 soname_spec='${libname}${release}${shared_ext}$major' 17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17270 shlibpath_var=LD_LIBRARY_PATH 17271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17273 ;; 17274 17275 solaris*) 17276 version_type=linux 17277 need_lib_prefix=no 17278 need_version=no 17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17280 soname_spec='${libname}${release}${shared_ext}$major' 17281 shlibpath_var=LD_LIBRARY_PATH 17282 shlibpath_overrides_runpath=yes 17283 hardcode_into_libs=yes 17284 # ldd complains unless libraries are executable 17285 postinstall_cmds='chmod +x $lib' 17286 ;; 17287 17288 sunos4*) 17289 version_type=sunos 17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17292 shlibpath_var=LD_LIBRARY_PATH 17293 shlibpath_overrides_runpath=yes 17294 if test "$with_gnu_ld" = yes; then 17295 need_lib_prefix=no 17296 fi 17297 need_version=yes 17298 ;; 17299 17300 sysv4 | sysv4.3*) 17301 version_type=linux 17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17303 soname_spec='${libname}${release}${shared_ext}$major' 17304 shlibpath_var=LD_LIBRARY_PATH 17305 case $host_vendor in 17306 sni) 17307 shlibpath_overrides_runpath=no 17308 need_lib_prefix=no 17309 export_dynamic_flag_spec='${wl}-Blargedynsym' 17310 runpath_var=LD_RUN_PATH 17311 ;; 17312 siemens) 17313 need_lib_prefix=no 17314 ;; 17315 motorola) 17316 need_lib_prefix=no 17317 need_version=no 17318 shlibpath_overrides_runpath=no 17319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17320 ;; 17321 esac 17322 ;; 17323 17324 sysv4*MP*) 17325 if test -d /usr/nec ;then 17326 version_type=linux 17327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17328 soname_spec='$libname${shared_ext}.$major' 17329 shlibpath_var=LD_LIBRARY_PATH 17330 fi 17331 ;; 17332 17333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17334 version_type=freebsd-elf 17335 need_lib_prefix=no 17336 need_version=no 17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17338 soname_spec='${libname}${release}${shared_ext}$major' 17339 shlibpath_var=LD_LIBRARY_PATH 17340 hardcode_into_libs=yes 17341 if test "$with_gnu_ld" = yes; then 17342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17343 shlibpath_overrides_runpath=no 17344 else 17345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17346 shlibpath_overrides_runpath=yes 17347 case $host_os in 17348 sco3.2v5*) 17349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17350 ;; 17351 esac 17352 fi 17353 sys_lib_dlsearch_path_spec='/usr/lib' 17354 ;; 17355 17356 uts4*) 17357 version_type=linux 17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17359 soname_spec='${libname}${release}${shared_ext}$major' 17360 shlibpath_var=LD_LIBRARY_PATH 17361 ;; 17362 17363 *) 17364 dynamic_linker=no 17365 ;; 17366 esac 17367 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17368 echo "${ECHO_T}$dynamic_linker" >&6; } 17369 test "$dynamic_linker" = no && can_build_shared=no 17370 17371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17372 if test "$GCC" = yes; then 17373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17374 fi 17375 17376 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17378 hardcode_action_F77= 17379 if test -n "$hardcode_libdir_flag_spec_F77" || \ 17380 test -n "$runpath_var_F77" || \ 17381 test "X$hardcode_automatic_F77" = "Xyes" ; then 17382 17383 # We can hardcode non-existant directories. 17384 if test "$hardcode_direct_F77" != no && 17385 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17386 # have to relink, otherwise we might link with an installed library 17387 # when we should be linking with a yet-to-be-installed one 17388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17389 test "$hardcode_minus_L_F77" != no; then 17390 # Linking always hardcodes the temporary library directory. 17391 hardcode_action_F77=relink 17392 else 17393 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17394 hardcode_action_F77=immediate 17395 fi 17396 else 17397 # We cannot hardcode anything, or else we can only hardcode existing 17398 # directories. 17399 hardcode_action_F77=unsupported 17400 fi 17401 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17402 echo "${ECHO_T}$hardcode_action_F77" >&6; } 17403 17404 if test "$hardcode_action_F77" = relink; then 17405 # Fast installation is not supported 17406 enable_fast_install=no 17407 elif test "$shlibpath_overrides_runpath" = yes || 17408 test "$enable_shared" = no; then 17409 # Fast installation is not necessary 17410 enable_fast_install=needless 17411 fi 17412 17413 17414 # The else clause should only fire when bootstrapping the 17415 # libtool distribution, otherwise you forgot to ship ltmain.sh 17416 # with your package, and you will get complaints that there are 17417 # no rules to generate ltmain.sh. 17418 if test -f "$ltmain"; then 17419 # See if we are running on zsh, and set the options which allow our commands through 17420 # without removal of \ escapes. 17421 if test -n "${ZSH_VERSION+set}" ; then 17422 setopt NO_GLOB_SUBST 17423 fi 17424 # Now quote all the things that may contain metacharacters while being 17425 # careful not to overquote the AC_SUBSTed values. We take copies of the 17426 # variables and quote the copies for generation of the libtool script. 17427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17428 SED SHELL STRIP \ 17429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17431 deplibs_check_method reload_flag reload_cmds need_locks \ 17432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17433 lt_cv_sys_global_symbol_to_c_name_address \ 17434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17435 old_postinstall_cmds old_postuninstall_cmds \ 17436 compiler_F77 \ 17437 CC_F77 \ 17438 LD_F77 \ 17439 lt_prog_compiler_wl_F77 \ 17440 lt_prog_compiler_pic_F77 \ 17441 lt_prog_compiler_static_F77 \ 17442 lt_prog_compiler_no_builtin_flag_F77 \ 17443 export_dynamic_flag_spec_F77 \ 17444 thread_safe_flag_spec_F77 \ 17445 whole_archive_flag_spec_F77 \ 17446 enable_shared_with_static_runtimes_F77 \ 17447 old_archive_cmds_F77 \ 17448 old_archive_from_new_cmds_F77 \ 17449 predep_objects_F77 \ 17450 postdep_objects_F77 \ 17451 predeps_F77 \ 17452 postdeps_F77 \ 17453 compiler_lib_search_path_F77 \ 17454 archive_cmds_F77 \ 17455 archive_expsym_cmds_F77 \ 17456 postinstall_cmds_F77 \ 17457 postuninstall_cmds_F77 \ 17458 old_archive_from_expsyms_cmds_F77 \ 17459 allow_undefined_flag_F77 \ 17460 no_undefined_flag_F77 \ 17461 export_symbols_cmds_F77 \ 17462 hardcode_libdir_flag_spec_F77 \ 17463 hardcode_libdir_flag_spec_ld_F77 \ 17464 hardcode_libdir_separator_F77 \ 17465 hardcode_automatic_F77 \ 17466 module_cmds_F77 \ 17467 module_expsym_cmds_F77 \ 17468 lt_cv_prog_compiler_c_o_F77 \ 17469 exclude_expsyms_F77 \ 17470 include_expsyms_F77; do 17471 17472 case $var in 17473 old_archive_cmds_F77 | \ 17474 old_archive_from_new_cmds_F77 | \ 17475 archive_cmds_F77 | \ 17476 archive_expsym_cmds_F77 | \ 17477 module_cmds_F77 | \ 17478 module_expsym_cmds_F77 | \ 17479 old_archive_from_expsyms_cmds_F77 | \ 17480 export_symbols_cmds_F77 | \ 17481 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17482 postinstall_cmds | postuninstall_cmds | \ 17483 old_postinstall_cmds | old_postuninstall_cmds | \ 17484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17485 # Double-quote double-evaled strings. 17486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17487 ;; 17488 *) 17489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17490 ;; 17491 esac 17492 done 17493 17494 case $lt_echo in 17495 *'\$0 --fallback-echo"') 17496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17497 ;; 17498 esac 17499 17500 cfgfile="$ofile" 17501 17502 cat <<__EOF__ >> "$cfgfile" 17503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 17504 17505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17506 17507 # Shell to use when invoking shell scripts. 17508 SHELL=$lt_SHELL 17509 17510 # Whether or not to build shared libraries. 17511 build_libtool_libs=$enable_shared 17512 17513 # Whether or not to build static libraries. 17514 build_old_libs=$enable_static 17515 17516 # Whether or not to add -lc for building shared libraries. 17517 build_libtool_need_lc=$archive_cmds_need_lc_F77 17518 17519 # Whether or not to disallow shared libs when runtime libs are static 17520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17521 17522 # Whether or not to optimize for fast installation. 17523 fast_install=$enable_fast_install 17524 17525 # The host system. 17526 host_alias=$host_alias 17527 host=$host 17528 host_os=$host_os 17529 17530 # The build system. 17531 build_alias=$build_alias 17532 build=$build 17533 build_os=$build_os 17534 17535 # An echo program that does not interpret backslashes. 17536 echo=$lt_echo 17537 17538 # The archiver. 17539 AR=$lt_AR 17540 AR_FLAGS=$lt_AR_FLAGS 17541 17542 # A C compiler. 17543 LTCC=$lt_LTCC 17544 17545 # LTCC compiler flags. 17546 LTCFLAGS=$lt_LTCFLAGS 17547 17548 # A language-specific compiler. 17549 CC=$lt_compiler_F77 17550 17551 # Is the compiler the GNU C compiler? 17552 with_gcc=$GCC_F77 17553 17554 # An ERE matcher. 17555 EGREP=$lt_EGREP 17556 17557 # The linker used to build libraries. 17558 LD=$lt_LD_F77 17559 17560 # Whether we need hard or soft links. 17561 LN_S=$lt_LN_S 17562 17563 # A BSD-compatible nm program. 17564 NM=$lt_NM 17565 17566 # A symbol stripping program 17567 STRIP=$lt_STRIP 17568 17569 # Used to examine libraries when file_magic_cmd begins "file" 17570 MAGIC_CMD=$MAGIC_CMD 17571 17572 # Used on cygwin: DLL creation program. 17573 DLLTOOL="$DLLTOOL" 17574 17575 # Used on cygwin: object dumper. 17576 OBJDUMP="$OBJDUMP" 17577 17578 # Used on cygwin: assembler. 17579 AS="$AS" 17580 17581 # The name of the directory that contains temporary libtool files. 17582 objdir=$objdir 17583 17584 # How to create reloadable object files. 17585 reload_flag=$lt_reload_flag 17586 reload_cmds=$lt_reload_cmds 17587 17588 # How to pass a linker flag through the compiler. 17589 wl=$lt_lt_prog_compiler_wl_F77 17590 17591 # Object file suffix (normally "o"). 17592 objext="$ac_objext" 17593 17594 # Old archive suffix (normally "a"). 17595 libext="$libext" 17596 17597 # Shared library suffix (normally ".so"). 17598 shrext_cmds='$shrext_cmds' 17599 17600 # Executable file suffix (normally ""). 17601 exeext="$exeext" 17602 17603 # Additional compiler flags for building library objects. 17604 pic_flag=$lt_lt_prog_compiler_pic_F77 17605 pic_mode=$pic_mode 17606 17607 # What is the maximum length of a command? 17608 max_cmd_len=$lt_cv_sys_max_cmd_len 17609 17610 # Does compiler simultaneously support -c and -o options? 17611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17612 17613 # Must we lock files when doing compilation? 17614 need_locks=$lt_need_locks 17615 17616 # Do we need the lib prefix for modules? 17617 need_lib_prefix=$need_lib_prefix 17618 17619 # Do we need a version for libraries? 17620 need_version=$need_version 17621 17622 # Whether dlopen is supported. 17623 dlopen_support=$enable_dlopen 17624 17625 # Whether dlopen of programs is supported. 17626 dlopen_self=$enable_dlopen_self 17627 17628 # Whether dlopen of statically linked programs is supported. 17629 dlopen_self_static=$enable_dlopen_self_static 17630 17631 # Compiler flag to prevent dynamic linking. 17632 link_static_flag=$lt_lt_prog_compiler_static_F77 17633 17634 # Compiler flag to turn off builtin functions. 17635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17636 17637 # Compiler flag to allow reflexive dlopens. 17638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17639 17640 # Compiler flag to generate shared objects directly from archives. 17641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17642 17643 # Compiler flag to generate thread-safe objects. 17644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17645 17646 # Library versioning type. 17647 version_type=$version_type 17648 17649 # Format of library name prefix. 17650 libname_spec=$lt_libname_spec 17651 17652 # List of archive names. First name is the real one, the rest are links. 17653 # The last name is the one that the linker finds with -lNAME. 17654 library_names_spec=$lt_library_names_spec 17655 17656 # The coded name of the library, if different from the real name. 17657 soname_spec=$lt_soname_spec 17658 17659 # Commands used to build and install an old-style archive. 17660 RANLIB=$lt_RANLIB 17661 old_archive_cmds=$lt_old_archive_cmds_F77 17662 old_postinstall_cmds=$lt_old_postinstall_cmds 17663 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17664 17665 # Create an old-style archive from a shared archive. 17666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17667 17668 # Create a temporary old-style archive to link instead of a shared archive. 17669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17670 17671 # Commands used to build and install a shared archive. 17672 archive_cmds=$lt_archive_cmds_F77 17673 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17674 postinstall_cmds=$lt_postinstall_cmds 17675 postuninstall_cmds=$lt_postuninstall_cmds 17676 17677 # Commands used to build a loadable module (assumed same as above if empty) 17678 module_cmds=$lt_module_cmds_F77 17679 module_expsym_cmds=$lt_module_expsym_cmds_F77 17680 17681 # Commands to strip libraries. 17682 old_striplib=$lt_old_striplib 17683 striplib=$lt_striplib 17684 17685 # Dependencies to place before the objects being linked to create a 17686 # shared library. 17687 predep_objects=$lt_predep_objects_F77 17688 17689 # Dependencies to place after the objects being linked to create a 17690 # shared library. 17691 postdep_objects=$lt_postdep_objects_F77 17692 17693 # Dependencies to place before the objects being linked to create a 17694 # shared library. 17695 predeps=$lt_predeps_F77 17696 17697 # Dependencies to place after the objects being linked to create a 17698 # shared library. 17699 postdeps=$lt_postdeps_F77 17700 17701 # The library search path used internally by the compiler when linking 17702 # a shared library. 17703 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17704 17705 # Method to check whether dependent libraries are shared objects. 17706 deplibs_check_method=$lt_deplibs_check_method 17707 17708 # Command to use when deplibs_check_method == file_magic. 17709 file_magic_cmd=$lt_file_magic_cmd 17710 17711 # Flag that allows shared libraries with undefined symbols to be built. 17712 allow_undefined_flag=$lt_allow_undefined_flag_F77 17713 17714 # Flag that forces no undefined symbols. 17715 no_undefined_flag=$lt_no_undefined_flag_F77 17716 17717 # Commands used to finish a libtool library installation in a directory. 17718 finish_cmds=$lt_finish_cmds 17719 17720 # Same as above, but a single script fragment to be evaled but not shown. 17721 finish_eval=$lt_finish_eval 17722 17723 # Take the output of nm and produce a listing of raw symbols and C names. 17724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17725 17726 # Transform the output of nm in a proper C declaration 17727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17728 17729 # Transform the output of nm in a C name address pair 17730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17731 17732 # This is the shared library runtime path variable. 17733 runpath_var=$runpath_var 17734 17735 # This is the shared library path variable. 17736 shlibpath_var=$shlibpath_var 17737 17738 # Is shlibpath searched before the hard-coded library search path? 17739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17740 17741 # How to hardcode a shared library path into an executable. 17742 hardcode_action=$hardcode_action_F77 17743 17744 # Whether we should hardcode library paths into libraries. 17745 hardcode_into_libs=$hardcode_into_libs 17746 17747 # Flag to hardcode \$libdir into a binary during linking. 17748 # This must work even if \$libdir does not exist. 17749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17750 17751 # If ld is used when linking, flag to hardcode \$libdir into 17752 # a binary during linking. This must work even if \$libdir does 17753 # not exist. 17754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17755 17756 # Whether we need a single -rpath flag with a separated argument. 17757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17758 17759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17760 # resulting binary. 17761 hardcode_direct=$hardcode_direct_F77 17762 17763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17764 # resulting binary. 17765 hardcode_minus_L=$hardcode_minus_L_F77 17766 17767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17768 # the resulting binary. 17769 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17770 17771 # Set to yes if building a shared library automatically hardcodes DIR into the library 17772 # and all subsequent libraries and executables linked against it. 17773 hardcode_automatic=$hardcode_automatic_F77 17774 17775 # Variables whose values should be saved in libtool wrapper scripts and 17776 # restored at relink time. 17777 variables_saved_for_relink="$variables_saved_for_relink" 17778 17779 # Whether libtool must link a program against all its dependency libraries. 17780 link_all_deplibs=$link_all_deplibs_F77 17781 17782 # Compile-time system search path for libraries 17783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17784 17785 # Run-time system search path for libraries 17786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17787 17788 # Fix the shell variable \$srcfile for the compiler. 17789 fix_srcfile_path="$fix_srcfile_path_F77" 17790 17791 # Set to yes if exported symbols are required. 17792 always_export_symbols=$always_export_symbols_F77 17793 17794 # The commands to list exported symbols. 17795 export_symbols_cmds=$lt_export_symbols_cmds_F77 17796 17797 # The commands to extract the exported symbol list from a shared archive. 17798 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17799 17800 # Symbols that should not be listed in the preloaded symbols. 17801 exclude_expsyms=$lt_exclude_expsyms_F77 17802 17803 # Symbols that must always be exported. 17804 include_expsyms=$lt_include_expsyms_F77 17805 17806 # ### END LIBTOOL TAG CONFIG: $tagname 17807 17808 __EOF__ 17809 17810 17811 else 17812 # If there is no Makefile yet, we rely on a make rule to execute 17813 # `config.status --recheck' to rerun these tests and create the 17814 # libtool script then. 17815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17816 if test -f "$ltmain_in"; then 17817 test -f Makefile && make "$ltmain" 17818 fi 17819 fi 17820 17821 17822 ac_ext=c 17823 ac_cpp='$CPP $CPPFLAGS' 17824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17826 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17827 17828 CC="$lt_save_CC" 17829 17830 else 17831 tagname="" 17832 fi 17833 ;; 17834 17835 GCJ) 17836 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17837 17838 17839 # Source file extension for Java test sources. 17840 ac_ext=java 17841 17842 # Object file extension for compiled Java test sources. 17843 objext=o 17844 objext_GCJ=$objext 17845 17846 # Code to be used in simple compile tests 17847 lt_simple_compile_test_code="class foo {}\n" 17848 17849 # Code to be used in simple link tests 17850 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17851 17852 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17853 17854 # If no C compiler was specified, use CC. 17855 LTCC=${LTCC-"$CC"} 17856 17857 # If no C compiler flags were specified, use CFLAGS. 17858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17859 17860 # Allow CC to be a program name with arguments. 17861 compiler=$CC 17862 17863 17864 # save warnings/boilerplate of simple test code 17865 ac_outfile=conftest.$ac_objext 17866 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17868 _lt_compiler_boilerplate=`cat conftest.err` 17869 $rm conftest* 17870 17871 ac_outfile=conftest.$ac_objext 17872 printf "$lt_simple_link_test_code" >conftest.$ac_ext 17873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17874 _lt_linker_boilerplate=`cat conftest.err` 17875 $rm conftest* 17876 17877 17878 # Allow CC to be a program name with arguments. 17879 lt_save_CC="$CC" 17880 CC=${GCJ-"gcj"} 17881 compiler=$CC 17882 compiler_GCJ=$CC 17883 for cc_temp in $compiler""; do 17884 case $cc_temp in 17885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17887 \-*) ;; 17888 *) break;; 17889 esac 17890 done 17891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17892 17893 17894 # GCJ did not exist at the time GCC didn't implicitly link libc in. 17895 archive_cmds_need_lc_GCJ=no 17896 17897 old_archive_cmds_GCJ=$old_archive_cmds 17898 17899 ## CAVEAT EMPTOR: 17900 ## There is no encapsulation within the following macros, do not change 17901 ## the running order or otherwise move them around unless you know exactly 17902 ## what you are doing... 17903 17904 lt_prog_compiler_no_builtin_flag_GCJ= 17905 17906 if test "$GCC" = yes; then 17907 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17908 17909 17910 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17911 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17912 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17913 echo $ECHO_N "(cached) $ECHO_C" >&6 17914 else 17915 lt_cv_prog_compiler_rtti_exceptions=no 17916 ac_outfile=conftest.$ac_objext 17917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17918 lt_compiler_flag="-fno-rtti -fno-exceptions" 17919 # Insert the option either (1) after the last *FLAGS variable, or 17920 # (2) before a word containing "conftest.", or (3) at the end. 17921 # Note that $ac_compile itself does not contain backslashes and begins 17922 # with a dollar sign (not a hyphen), so the echo should work correctly. 17923 # The option is referenced via a variable to avoid confusing sed. 17924 lt_compile=`echo "$ac_compile" | $SED \ 17925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17927 -e 's:$: $lt_compiler_flag:'` 17928 (eval echo "\"\$as_me:17928: $lt_compile\"" >&5) 17929 (eval "$lt_compile" 2>conftest.err) 17930 ac_status=$? 17931 cat conftest.err >&5 17932 echo "$as_me:17932: \$? = $ac_status" >&5 17933 if (exit $ac_status) && test -s "$ac_outfile"; then 17934 # The compiler can only warn and ignore the option if not recognized 17935 # So say no if there are warnings other than the usual output. 17936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17939 lt_cv_prog_compiler_rtti_exceptions=yes 17940 fi 17941 fi 17942 $rm conftest* 17943 17944 fi 17945 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17946 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17947 17948 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17949 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17950 else 17951 : 17952 fi 17953 17954 fi 17955 17956 lt_prog_compiler_wl_GCJ= 17957 lt_prog_compiler_pic_GCJ= 17958 lt_prog_compiler_static_GCJ= 17959 17960 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17961 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 17962 17963 if test "$GCC" = yes; then 17964 lt_prog_compiler_wl_GCJ='-Wl,' 17965 lt_prog_compiler_static_GCJ='-static' 17966 17967 case $host_os in 17968 aix*) 17969 # All AIX code is PIC. 17970 if test "$host_cpu" = ia64; then 17971 # AIX 5 now supports IA64 processor 17972 lt_prog_compiler_static_GCJ='-Bstatic' 17973 fi 17974 ;; 17975 17976 amigaos*) 17977 # FIXME: we need at least 68020 code to build shared libraries, but 17978 # adding the `-m68020' flag to GCC prevents building anything better, 17979 # like `-m68040'. 17980 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17981 ;; 17982 17983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17984 # PIC is the default for these OSes. 17985 ;; 17986 17987 mingw* | cygwin* | pw32* | os2*) 17988 # This hack is so that the source file can tell whether it is being 17989 # built for inclusion in a dll (and should export symbols for example). 17990 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17991 # (--disable-auto-import) libraries 17992 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17993 ;; 17994 17995 darwin* | rhapsody*) 17996 # PIC is the default on this platform 17997 # Common symbols not allowed in MH_DYLIB files 17998 lt_prog_compiler_pic_GCJ='-fno-common' 17999 ;; 18000 18001 interix3*) 18002 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18003 # Instead, we relocate shared libraries at runtime. 18004 ;; 18005 18006 msdosdjgpp*) 18007 # Just because we use GCC doesn't mean we suddenly get shared libraries 18008 # on systems that don't support them. 18009 lt_prog_compiler_can_build_shared_GCJ=no 18010 enable_shared=no 18011 ;; 18012 18013 sysv4*MP*) 18014 if test -d /usr/nec; then 18015 lt_prog_compiler_pic_GCJ=-Kconform_pic 18016 fi 18017 ;; 18018 18019 hpux*) 18020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18021 # not for PA HP-UX. 18022 case $host_cpu in 18023 hppa*64*|ia64*) 18024 # +Z the default 18025 ;; 18026 *) 18027 lt_prog_compiler_pic_GCJ='-fPIC' 18028 ;; 18029 esac 18030 ;; 18031 18032 *) 18033 lt_prog_compiler_pic_GCJ='-fPIC' 18034 ;; 18035 esac 18036 else 18037 # PORTME Check for flag to pass linker flags through the system compiler. 18038 case $host_os in 18039 aix*) 18040 lt_prog_compiler_wl_GCJ='-Wl,' 18041 if test "$host_cpu" = ia64; then 18042 # AIX 5 now supports IA64 processor 18043 lt_prog_compiler_static_GCJ='-Bstatic' 18044 else 18045 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18046 fi 18047 ;; 18048 darwin*) 18049 # PIC is the default on this platform 18050 # Common symbols not allowed in MH_DYLIB files 18051 case $cc_basename in 18052 xlc*) 18053 lt_prog_compiler_pic_GCJ='-qnocommon' 18054 lt_prog_compiler_wl_GCJ='-Wl,' 18055 ;; 18056 esac 18057 ;; 18058 18059 mingw* | cygwin* | pw32* | os2*) 18060 # This hack is so that the source file can tell whether it is being 18061 # built for inclusion in a dll (and should export symbols for example). 18062 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18063 # (--disable-auto-import) libraries 18064 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18065 ;; 18066 18067 hpux9* | hpux10* | hpux11*) 18068 lt_prog_compiler_wl_GCJ='-Wl,' 18069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18070 # not for PA HP-UX. 18071 case $host_cpu in 18072 hppa*64*|ia64*) 18073 # +Z the default 18074 ;; 18075 *) 18076 lt_prog_compiler_pic_GCJ='+Z' 18077 ;; 18078 esac 18079 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18080 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18081 ;; 18082 18083 irix5* | irix6* | nonstopux*) 18084 lt_prog_compiler_wl_GCJ='-Wl,' 18085 # PIC (with -KPIC) is the default. 18086 lt_prog_compiler_static_GCJ='-non_shared' 18087 ;; 18088 18089 newsos6) 18090 lt_prog_compiler_pic_GCJ='-KPIC' 18091 lt_prog_compiler_static_GCJ='-Bstatic' 18092 ;; 18093 18094 linux*) 18095 case $cc_basename in 18096 icc* | ecc*) 18097 lt_prog_compiler_wl_GCJ='-Wl,' 18098 lt_prog_compiler_pic_GCJ='-KPIC' 18099 lt_prog_compiler_static_GCJ='-static' 18100 ;; 18101 pgcc* | pgf77* | pgf90* | pgf95*) 18102 # Portland Group compilers (*not* the Pentium gcc compiler, 18103 # which looks to be a dead project) 18104 lt_prog_compiler_wl_GCJ='-Wl,' 18105 lt_prog_compiler_pic_GCJ='-fpic' 18106 lt_prog_compiler_static_GCJ='-Bstatic' 18107 ;; 18108 ccc*) 18109 lt_prog_compiler_wl_GCJ='-Wl,' 18110 # All Alpha code is PIC. 18111 lt_prog_compiler_static_GCJ='-non_shared' 18112 ;; 18113 como) 18114 lt_prog_compiler_wl_GCJ='-lopt=' 18115 ;; 18116 *) 18117 case `$CC -V 2>&1 | sed 5q` in 18118 *Sun\ C*) 18119 # Sun C 5.9 18120 lt_prog_compiler_pic_GCJ='-KPIC' 18121 lt_prog_compiler_static_GCJ='-Bstatic' 18122 lt_prog_compiler_wl_GCJ='-Wl,' 18123 ;; 18124 *Sun\ F*) 18125 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18126 lt_prog_compiler_pic_GCJ='-KPIC' 18127 lt_prog_compiler_static_GCJ='-Bstatic' 18128 lt_prog_compiler_wl_GCJ='' 18129 ;; 18130 esac 18131 ;; 18132 esac 18133 ;; 18134 18135 osf3* | osf4* | osf5*) 18136 lt_prog_compiler_wl_GCJ='-Wl,' 18137 # All OSF/1 code is PIC. 18138 lt_prog_compiler_static_GCJ='-non_shared' 18139 ;; 18140 18141 solaris*) 18142 lt_prog_compiler_pic_GCJ='-KPIC' 18143 lt_prog_compiler_static_GCJ='-Bstatic' 18144 case $cc_basename in 18145 f77* | f90* | f95*) 18146 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18147 *) 18148 lt_prog_compiler_wl_GCJ='-Wl,';; 18149 esac 18150 ;; 18151 18152 sunos4*) 18153 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18154 lt_prog_compiler_pic_GCJ='-PIC' 18155 lt_prog_compiler_static_GCJ='-Bstatic' 18156 ;; 18157 18158 sysv4 | sysv4.2uw2* | sysv4.3*) 18159 lt_prog_compiler_wl_GCJ='-Wl,' 18160 lt_prog_compiler_pic_GCJ='-KPIC' 18161 lt_prog_compiler_static_GCJ='-Bstatic' 18162 ;; 18163 18164 sysv4*MP*) 18165 if test -d /usr/nec ;then 18166 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18167 lt_prog_compiler_static_GCJ='-Bstatic' 18168 fi 18169 ;; 18170 18171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18172 lt_prog_compiler_wl_GCJ='-Wl,' 18173 lt_prog_compiler_pic_GCJ='-KPIC' 18174 lt_prog_compiler_static_GCJ='-Bstatic' 18175 ;; 18176 18177 unicos*) 18178 lt_prog_compiler_wl_GCJ='-Wl,' 18179 lt_prog_compiler_can_build_shared_GCJ=no 18180 ;; 18181 18182 uts4*) 18183 lt_prog_compiler_pic_GCJ='-pic' 18184 lt_prog_compiler_static_GCJ='-Bstatic' 18185 ;; 18186 18187 *) 18188 lt_prog_compiler_can_build_shared_GCJ=no 18189 ;; 18190 esac 18191 fi 18192 18193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18194 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 18195 18196 # 18197 # Check to make sure the PIC flag actually works. 18198 # 18199 if test -n "$lt_prog_compiler_pic_GCJ"; then 18200 18201 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18202 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 18203 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18204 echo $ECHO_N "(cached) $ECHO_C" >&6 18205 else 18206 lt_prog_compiler_pic_works_GCJ=no 18207 ac_outfile=conftest.$ac_objext 18208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18209 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18210 # Insert the option either (1) after the last *FLAGS variable, or 18211 # (2) before a word containing "conftest.", or (3) at the end. 18212 # Note that $ac_compile itself does not contain backslashes and begins 18213 # with a dollar sign (not a hyphen), so the echo should work correctly. 18214 # The option is referenced via a variable to avoid confusing sed. 18215 lt_compile=`echo "$ac_compile" | $SED \ 18216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18218 -e 's:$: $lt_compiler_flag:'` 18219 (eval echo "\"\$as_me:18219: $lt_compile\"" >&5) 18220 (eval "$lt_compile" 2>conftest.err) 18221 ac_status=$? 18222 cat conftest.err >&5 18223 echo "$as_me:18223: \$? = $ac_status" >&5 18224 if (exit $ac_status) && test -s "$ac_outfile"; then 18225 # The compiler can only warn and ignore the option if not recognized 18226 # So say no if there are warnings other than the usual output. 18227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18230 lt_prog_compiler_pic_works_GCJ=yes 18231 fi 18232 fi 18233 $rm conftest* 18234 18235 fi 18236 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18237 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 18238 18239 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18240 case $lt_prog_compiler_pic_GCJ in 18241 "" | " "*) ;; 18242 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18243 esac 18244 else 18245 lt_prog_compiler_pic_GCJ= 18246 lt_prog_compiler_can_build_shared_GCJ=no 18247 fi 18248 18249 fi 18250 case $host_os in 18251 # For platforms which do not support PIC, -DPIC is meaningless: 18252 *djgpp*) 18253 lt_prog_compiler_pic_GCJ= 18254 ;; 18255 *) 18256 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18257 ;; 18258 esac 18259 18260 # 18261 # Check to make sure the static flag actually works. 18262 # 18263 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18264 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18265 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 18266 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 18267 echo $ECHO_N "(cached) $ECHO_C" >&6 18268 else 18269 lt_prog_compiler_static_works_GCJ=no 18270 save_LDFLAGS="$LDFLAGS" 18271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18272 printf "$lt_simple_link_test_code" > conftest.$ac_ext 18273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18274 # The linker can only warn and ignore the option if not recognized 18275 # So say no if there are warnings 18276 if test -s conftest.err; then 18277 # Append any errors to the config.log. 18278 cat conftest.err 1>&5 18279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18281 if diff conftest.exp conftest.er2 >/dev/null; then 18282 lt_prog_compiler_static_works_GCJ=yes 18283 fi 18284 else 18285 lt_prog_compiler_static_works_GCJ=yes 18286 fi 18287 fi 18288 $rm conftest* 18289 LDFLAGS="$save_LDFLAGS" 18290 18291 fi 18292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 18293 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 18294 18295 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 18296 : 18297 else 18298 lt_prog_compiler_static_GCJ= 18299 fi 18300 18301 18302 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 18304 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18305 echo $ECHO_N "(cached) $ECHO_C" >&6 18306 else 18307 lt_cv_prog_compiler_c_o_GCJ=no 18308 $rm -r conftest 2>/dev/null 18309 mkdir conftest 18310 cd conftest 18311 mkdir out 18312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18313 18314 lt_compiler_flag="-o out/conftest2.$ac_objext" 18315 # Insert the option either (1) after the last *FLAGS variable, or 18316 # (2) before a word containing "conftest.", or (3) at the end. 18317 # Note that $ac_compile itself does not contain backslashes and begins 18318 # with a dollar sign (not a hyphen), so the echo should work correctly. 18319 lt_compile=`echo "$ac_compile" | $SED \ 18320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18322 -e 's:$: $lt_compiler_flag:'` 18323 (eval echo "\"\$as_me:18323: $lt_compile\"" >&5) 18324 (eval "$lt_compile" 2>out/conftest.err) 18325 ac_status=$? 18326 cat out/conftest.err >&5 18327 echo "$as_me:18327: \$? = $ac_status" >&5 18328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18329 then 18330 # The compiler can only warn and ignore the option if not recognized 18331 # So say no if there are warnings 18332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18335 lt_cv_prog_compiler_c_o_GCJ=yes 18336 fi 18337 fi 18338 chmod u+w . 2>&5 18339 $rm conftest* 18340 # SGI C++ compiler will create directory out/ii_files/ for 18341 # template instantiation 18342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18343 $rm out/* && rmdir out 18344 cd .. 18345 rmdir conftest 18346 $rm conftest* 18347 18348 fi 18349 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 18351 18352 18353 hard_links="nottested" 18354 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18355 # do not overwrite the value of need_locks provided by the user 18356 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 18358 hard_links=yes 18359 $rm conftest* 18360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18361 touch conftest.a 18362 ln conftest.a conftest.b 2>&5 || hard_links=no 18363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18364 { echo "$as_me:$LINENO: result: $hard_links" >&5 18365 echo "${ECHO_T}$hard_links" >&6; } 18366 if test "$hard_links" = no; then 18367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18369 need_locks=warn 18370 fi 18371 else 18372 need_locks=no 18373 fi 18374 18375 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18377 18378 runpath_var= 18379 allow_undefined_flag_GCJ= 18380 enable_shared_with_static_runtimes_GCJ=no 18381 archive_cmds_GCJ= 18382 archive_expsym_cmds_GCJ= 18383 old_archive_From_new_cmds_GCJ= 18384 old_archive_from_expsyms_cmds_GCJ= 18385 export_dynamic_flag_spec_GCJ= 18386 whole_archive_flag_spec_GCJ= 18387 thread_safe_flag_spec_GCJ= 18388 hardcode_libdir_flag_spec_GCJ= 18389 hardcode_libdir_flag_spec_ld_GCJ= 18390 hardcode_libdir_separator_GCJ= 18391 hardcode_direct_GCJ=no 18392 hardcode_minus_L_GCJ=no 18393 hardcode_shlibpath_var_GCJ=unsupported 18394 link_all_deplibs_GCJ=unknown 18395 hardcode_automatic_GCJ=no 18396 module_cmds_GCJ= 18397 module_expsym_cmds_GCJ= 18398 always_export_symbols_GCJ=no 18399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18400 # include_expsyms should be a list of space-separated symbols to be *always* 18401 # included in the symbol list 18402 include_expsyms_GCJ= 18403 # exclude_expsyms can be an extended regexp of symbols to exclude 18404 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18406 # as well as any symbol that contains `d'. 18407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18409 # platforms (ab)use it in PIC code, but their linkers get confused if 18410 # the symbol is explicitly referenced. Since portable code cannot 18411 # rely on this symbol name, it's probably fine to never include it in 18412 # preloaded symbol tables. 18413 extract_expsyms_cmds= 18414 # Just being paranoid about ensuring that cc_basename is set. 18415 for cc_temp in $compiler""; do 18416 case $cc_temp in 18417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18419 \-*) ;; 18420 *) break;; 18421 esac 18422 done 18423 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18424 18425 case $host_os in 18426 cygwin* | mingw* | pw32*) 18427 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18428 # When not using gcc, we currently assume that we are using 18429 # Microsoft Visual C++. 18430 if test "$GCC" != yes; then 18431 with_gnu_ld=no 18432 fi 18433 ;; 18434 interix*) 18435 # we just hope/assume this is gcc and not c89 (= MSVC++) 18436 with_gnu_ld=yes 18437 ;; 18438 openbsd*) 18439 with_gnu_ld=no 18440 ;; 18441 esac 18442 18443 ld_shlibs_GCJ=yes 18444 if test "$with_gnu_ld" = yes; then 18445 # If archive_cmds runs LD, not CC, wlarc should be empty 18446 wlarc='${wl}' 18447 18448 # Set some defaults for GNU ld with shared library support. These 18449 # are reset later if shared libraries are not supported. Putting them 18450 # here allows them to be overridden if necessary. 18451 runpath_var=LD_RUN_PATH 18452 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18453 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18454 # ancient GNU ld didn't support --whole-archive et. al. 18455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18456 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18457 else 18458 whole_archive_flag_spec_GCJ= 18459 fi 18460 supports_anon_versioning=no 18461 case `$LD -v 2>/dev/null` in 18462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18465 *\ 2.11.*) ;; # other 2.11 versions 18466 *) supports_anon_versioning=yes ;; 18467 esac 18468 18469 # See if GNU ld supports shared libraries. 18470 case $host_os in 18471 aix3* | aix4* | aix5*) 18472 # On AIX/PPC, the GNU linker is very broken 18473 if test "$host_cpu" != ia64; then 18474 ld_shlibs_GCJ=no 18475 cat <<EOF 1>&2 18476 18477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 18478 *** to be unable to reliably create shared libraries on AIX. 18479 *** Therefore, libtool is disabling shared libraries support. If you 18480 *** really care for shared libraries, you may want to modify your PATH 18481 *** so that a non-GNU linker is found, and then restart. 18482 18483 EOF 18484 fi 18485 ;; 18486 18487 amigaos*) 18488 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 18489 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18490 hardcode_minus_L_GCJ=yes 18491 18492 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 18493 # that the semantics of dynamic libraries on AmigaOS, at least up 18494 # to version 4, is to share data among multiple programs linked 18495 # with the same dynamic library. Since this doesn't match the 18496 # behavior of shared libraries on other platforms, we can't use 18497 # them. 18498 ld_shlibs_GCJ=no 18499 ;; 18500 18501 beos*) 18502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18503 allow_undefined_flag_GCJ=unsupported 18504 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 18505 # support --undefined. This deserves some investigation. FIXME 18506 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18507 else 18508 ld_shlibs_GCJ=no 18509 fi 18510 ;; 18511 18512 cygwin* | mingw* | pw32*) 18513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18514 # as there is no search path for DLLs. 18515 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18516 allow_undefined_flag_GCJ=unsupported 18517 always_export_symbols_GCJ=no 18518 enable_shared_with_static_runtimes_GCJ=yes 18519 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18520 18521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18523 # If the export-symbols file already is a .def file (1st line 18524 # is EXPORTS), use it as is; otherwise, prepend... 18525 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18526 cp $export_symbols $output_objdir/$soname.def; 18527 else 18528 echo EXPORTS > $output_objdir/$soname.def; 18529 cat $export_symbols >> $output_objdir/$soname.def; 18530 fi~ 18531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18532 else 18533 ld_shlibs_GCJ=no 18534 fi 18535 ;; 18536 18537 interix3*) 18538 hardcode_direct_GCJ=no 18539 hardcode_shlibpath_var_GCJ=no 18540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18541 export_dynamic_flag_spec_GCJ='${wl}-E' 18542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18543 # Instead, shared libraries are loaded at an image base (0x10000000 by 18544 # default) and relocated if they conflict, which is a slow very memory 18545 # consuming and fragmenting process. To avoid this, we pick a random, 18546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18547 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18548 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18549 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18550 ;; 18551 18552 linux*) 18553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18554 tmp_addflag= 18555 case $cc_basename,$host_cpu in 18556 pgcc*) # Portland Group C compiler 18557 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18558 tmp_addflag=' $pic_flag' 18559 ;; 18560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18561 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18562 tmp_addflag=' $pic_flag -Mnomain' ;; 18563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18564 tmp_addflag=' -i_dynamic' ;; 18565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18566 tmp_addflag=' -i_dynamic -nofor_main' ;; 18567 ifc* | ifort*) # Intel Fortran compiler 18568 tmp_addflag=' -nofor_main' ;; 18569 esac 18570 case `$CC -V 2>&1 | sed 5q` in 18571 *Sun\ C*) # Sun C 5.9 18572 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 18573 tmp_sharedflag='-G' ;; 18574 *Sun\ F*) # Sun Fortran 8.3 18575 tmp_sharedflag='-G' ;; 18576 *) 18577 tmp_sharedflag='-shared' ;; 18578 esac 18579 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18580 18581 if test $supports_anon_versioning = yes; then 18582 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18584 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18586 fi 18587 else 18588 ld_shlibs_GCJ=no 18589 fi 18590 ;; 18591 18592 netbsd*) 18593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18594 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18595 wlarc= 18596 else 18597 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18598 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18599 fi 18600 ;; 18601 18602 solaris*) 18603 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18604 ld_shlibs_GCJ=no 18605 cat <<EOF 1>&2 18606 18607 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 18608 *** create shared libraries on Solaris systems. Therefore, libtool 18609 *** is disabling shared libraries support. We urge you to upgrade GNU 18610 *** binutils to release 2.9.1 or newer. Another option is to modify 18611 *** your PATH or compiler configuration so that the native linker is 18612 *** used, and then restart. 18613 18614 EOF 18615 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18616 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18617 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18618 else 18619 ld_shlibs_GCJ=no 18620 fi 18621 ;; 18622 18623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18624 case `$LD -v 2>&1` in 18625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18626 ld_shlibs_GCJ=no 18627 cat <<_LT_EOF 1>&2 18628 18629 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18630 *** reliably create shared libraries on SCO systems. Therefore, libtool 18631 *** is disabling shared libraries support. We urge you to upgrade GNU 18632 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18633 *** your PATH or compiler configuration so that the native linker is 18634 *** used, and then restart. 18635 18636 _LT_EOF 18637 ;; 18638 *) 18639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18640 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18641 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18642 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18643 else 18644 ld_shlibs_GCJ=no 18645 fi 18646 ;; 18647 esac 18648 ;; 18649 18650 sunos4*) 18651 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18652 wlarc= 18653 hardcode_direct_GCJ=yes 18654 hardcode_shlibpath_var_GCJ=no 18655 ;; 18656 18657 *) 18658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18660 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18661 else 18662 ld_shlibs_GCJ=no 18663 fi 18664 ;; 18665 esac 18666 18667 if test "$ld_shlibs_GCJ" = no; then 18668 runpath_var= 18669 hardcode_libdir_flag_spec_GCJ= 18670 export_dynamic_flag_spec_GCJ= 18671 whole_archive_flag_spec_GCJ= 18672 fi 18673 else 18674 # PORTME fill in a description of your system's linker (not GNU ld) 18675 case $host_os in 18676 aix3*) 18677 allow_undefined_flag_GCJ=unsupported 18678 always_export_symbols_GCJ=yes 18679 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 18680 # Note: this linker hardcodes the directories in LIBPATH if there 18681 # are no directories specified by -L. 18682 hardcode_minus_L_GCJ=yes 18683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18684 # Neither direct hardcoding nor static linking is supported with a 18685 # broken collect2. 18686 hardcode_direct_GCJ=unsupported 18687 fi 18688 ;; 18689 18690 aix4* | aix5*) 18691 if test "$host_cpu" = ia64; then 18692 # On IA64, the linker does run time linking by default, so we don't 18693 # have to do anything special. 18694 aix_use_runtimelinking=no 18695 exp_sym_flag='-Bexport' 18696 no_entry_flag="" 18697 else 18698 # If we're using GNU nm, then we don't want the "-C" option. 18699 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18700 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18701 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 18702 else 18703 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 18704 fi 18705 aix_use_runtimelinking=no 18706 18707 # Test if we are trying to use run time linking or normal 18708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18709 # need to do runtime linking. 18710 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18711 for ld_flag in $LDFLAGS; do 18712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18713 aix_use_runtimelinking=yes 18714 break 18715 fi 18716 done 18717 ;; 18718 esac 18719 18720 exp_sym_flag='-bexport' 18721 no_entry_flag='-bnoentry' 18722 fi 18723 18724 # When large executables or shared objects are built, AIX ld can 18725 # have problems creating the table of contents. If linking a library 18726 # or program results in "error TOC overflow" add -mminimal-toc to 18727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18729 18730 archive_cmds_GCJ='' 18731 hardcode_direct_GCJ=yes 18732 hardcode_libdir_separator_GCJ=':' 18733 link_all_deplibs_GCJ=yes 18734 18735 if test "$GCC" = yes; then 18736 case $host_os in aix4.[012]|aix4.[012].*) 18737 # We only want to do this on AIX 4.2 and lower, the check 18738 # below for broken collect2 doesn't work under 4.3+ 18739 collect2name=`${CC} -print-prog-name=collect2` 18740 if test -f "$collect2name" && \ 18741 strings "$collect2name" | grep resolve_lib_name >/dev/null 18742 then 18743 # We have reworked collect2 18744 hardcode_direct_GCJ=yes 18745 else 18746 # We have old collect2 18747 hardcode_direct_GCJ=unsupported 18748 # It fails to find uninstalled libraries when the uninstalled 18749 # path is not listed in the libpath. Setting hardcode_minus_L 18750 # to unsupported forces relinking 18751 hardcode_minus_L_GCJ=yes 18752 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18753 hardcode_libdir_separator_GCJ= 18754 fi 18755 ;; 18756 esac 18757 shared_flag='-shared' 18758 if test "$aix_use_runtimelinking" = yes; then 18759 shared_flag="$shared_flag "'${wl}-G' 18760 fi 18761 else 18762 # not using gcc 18763 if test "$host_cpu" = ia64; then 18764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18765 # chokes on -Wl,-G. The following line is correct: 18766 shared_flag='-G' 18767 else 18768 if test "$aix_use_runtimelinking" = yes; then 18769 shared_flag='${wl}-G' 18770 else 18771 shared_flag='${wl}-bM:SRE' 18772 fi 18773 fi 18774 fi 18775 18776 # It seems that -bexpall does not export symbols beginning with 18777 # underscore (_), so it is better to generate a list of symbols to export. 18778 always_export_symbols_GCJ=yes 18779 if test "$aix_use_runtimelinking" = yes; then 18780 # Warning - without using the other runtime loading flags (-brtl), 18781 # -berok will link without error, but may produce a broken library. 18782 allow_undefined_flag_GCJ='-berok' 18783 # Determine the default libpath from the value encoded in an empty executable. 18784 cat >conftest.$ac_ext <<_ACEOF 18785 /* confdefs.h. */ 18786 _ACEOF 18787 cat confdefs.h >>conftest.$ac_ext 18788 cat >>conftest.$ac_ext <<_ACEOF 18789 /* end confdefs.h. */ 18790 18791 int 18792 main () 18793 { 18794 18795 ; 18796 return 0; 18797 } 18798 _ACEOF 18799 rm -f conftest.$ac_objext conftest$ac_exeext 18800 if { (ac_try="$ac_link" 18801 case "(($ac_try" in 18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18803 *) ac_try_echo=$ac_try;; 18804 esac 18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18806 (eval "$ac_link") 2>conftest.er1 18807 ac_status=$? 18808 grep -v '^ *+' conftest.er1 >conftest.err 18809 rm -f conftest.er1 18810 cat conftest.err >&5 18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18812 (exit $ac_status); } && { 18813 test -z "$ac_c_werror_flag" || 18814 test ! -s conftest.err 18815 } && test -s conftest$ac_exeext && 18816 $as_test_x conftest$ac_exeext; then 18817 18818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18819 }'` 18820 # Check for a 64-bit object if we didn't find anything. 18821 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18822 }'`; fi 18823 else 18824 echo "$as_me: failed program was:" >&5 18825 sed 's/^/| /' conftest.$ac_ext >&5 18826 18827 18828 fi 18829 18830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18831 conftest$ac_exeext conftest.$ac_ext 18832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18833 18834 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18835 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18836 else 18837 if test "$host_cpu" = ia64; then 18838 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18839 allow_undefined_flag_GCJ="-z nodefs" 18840 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18841 else 18842 # Determine the default libpath from the value encoded in an empty executable. 18843 cat >conftest.$ac_ext <<_ACEOF 18844 /* confdefs.h. */ 18845 _ACEOF 18846 cat confdefs.h >>conftest.$ac_ext 18847 cat >>conftest.$ac_ext <<_ACEOF 18848 /* end confdefs.h. */ 18849 18850 int 18851 main () 18852 { 18853 18854 ; 18855 return 0; 18856 } 18857 _ACEOF 18858 rm -f conftest.$ac_objext conftest$ac_exeext 18859 if { (ac_try="$ac_link" 18860 case "(($ac_try" in 18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18862 *) ac_try_echo=$ac_try;; 18863 esac 18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18865 (eval "$ac_link") 2>conftest.er1 18866 ac_status=$? 18867 grep -v '^ *+' conftest.er1 >conftest.err 18868 rm -f conftest.er1 18869 cat conftest.err >&5 18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18871 (exit $ac_status); } && { 18872 test -z "$ac_c_werror_flag" || 18873 test ! -s conftest.err 18874 } && test -s conftest$ac_exeext && 18875 $as_test_x conftest$ac_exeext; then 18876 18877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18878 }'` 18879 # Check for a 64-bit object if we didn't find anything. 18880 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18881 }'`; fi 18882 else 18883 echo "$as_me: failed program was:" >&5 18884 sed 's/^/| /' conftest.$ac_ext >&5 18885 18886 18887 fi 18888 18889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18890 conftest$ac_exeext conftest.$ac_ext 18891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18892 18893 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18894 # Warning - without using the other run time loading flags, 18895 # -berok will link without error, but may produce a broken library. 18896 no_undefined_flag_GCJ=' ${wl}-bernotok' 18897 allow_undefined_flag_GCJ=' ${wl}-berok' 18898 # Exported symbols can be pulled into shared objects from archives 18899 whole_archive_flag_spec_GCJ='$convenience' 18900 archive_cmds_need_lc_GCJ=yes 18901 # This is similar to how AIX traditionally builds its shared libraries. 18902 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18903 fi 18904 fi 18905 ;; 18906 18907 amigaos*) 18908 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 18909 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18910 hardcode_minus_L_GCJ=yes 18911 # see comment about different semantics on the GNU ld section 18912 ld_shlibs_GCJ=no 18913 ;; 18914 18915 bsdi[45]*) 18916 export_dynamic_flag_spec_GCJ=-rdynamic 18917 ;; 18918 18919 cygwin* | mingw* | pw32*) 18920 # When not using gcc, we currently assume that we are using 18921 # Microsoft Visual C++. 18922 # hardcode_libdir_flag_spec is actually meaningless, as there is 18923 # no search path for DLLs. 18924 hardcode_libdir_flag_spec_GCJ=' ' 18925 allow_undefined_flag_GCJ=unsupported 18926 # Tell ltmain to make .lib files, not .a files. 18927 libext=lib 18928 # Tell ltmain to make .dll files, not .so files. 18929 shrext_cmds=".dll" 18930 # FIXME: Setting linknames here is a bad hack. 18931 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18932 # The linker will automatically build a .lib file if we build a DLL. 18933 old_archive_From_new_cmds_GCJ='true' 18934 # FIXME: Should let the user specify the lib program. 18935 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18936 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18937 enable_shared_with_static_runtimes_GCJ=yes 18938 ;; 18939 18940 darwin* | rhapsody*) 18941 case $host_os in 18942 rhapsody* | darwin1.[012]) 18943 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18944 ;; 18945 *) # Darwin 1.3 on 18946 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18947 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18948 else 18949 case ${MACOSX_DEPLOYMENT_TARGET} in 18950 10.[012]) 18951 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18952 ;; 18953 10.*) 18954 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18955 ;; 18956 esac 18957 fi 18958 ;; 18959 esac 18960 archive_cmds_need_lc_GCJ=no 18961 hardcode_direct_GCJ=no 18962 hardcode_automatic_GCJ=yes 18963 hardcode_shlibpath_var_GCJ=unsupported 18964 whole_archive_flag_spec_GCJ='' 18965 link_all_deplibs_GCJ=yes 18966 if test "$GCC" = yes ; then 18967 output_verbose_link_cmd='echo' 18968 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18969 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18971 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18972 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18973 else 18974 case $cc_basename in 18975 xlc*) 18976 output_verbose_link_cmd='echo' 18977 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18978 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18979 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18980 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18981 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18982 ;; 18983 *) 18984 ld_shlibs_GCJ=no 18985 ;; 18986 esac 18987 fi 18988 ;; 18989 18990 dgux*) 18991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18992 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18993 hardcode_shlibpath_var_GCJ=no 18994 ;; 18995 18996 freebsd1*) 18997 ld_shlibs_GCJ=no 18998 ;; 18999 19000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19001 # support. Future versions do this automatically, but an explicit c++rt0.o 19002 # does not break anything, and helps significantly (at the cost of a little 19003 # extra space). 19004 freebsd2.2*) 19005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19006 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19007 hardcode_direct_GCJ=yes 19008 hardcode_shlibpath_var_GCJ=no 19009 ;; 19010 19011 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19012 freebsd2*) 19013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19014 hardcode_direct_GCJ=yes 19015 hardcode_minus_L_GCJ=yes 19016 hardcode_shlibpath_var_GCJ=no 19017 ;; 19018 19019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19020 freebsd* | kfreebsd*-gnu | dragonfly*) 19021 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19022 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19023 hardcode_direct_GCJ=yes 19024 hardcode_shlibpath_var_GCJ=no 19025 ;; 19026 19027 hpux9*) 19028 if test "$GCC" = yes; then 19029 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19030 else 19031 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19032 fi 19033 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19034 hardcode_libdir_separator_GCJ=: 19035 hardcode_direct_GCJ=yes 19036 19037 # hardcode_minus_L: Not really in the search PATH, 19038 # but as the default location of the library. 19039 hardcode_minus_L_GCJ=yes 19040 export_dynamic_flag_spec_GCJ='${wl}-E' 19041 ;; 19042 19043 hpux10*) 19044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19045 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19046 else 19047 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19048 fi 19049 if test "$with_gnu_ld" = no; then 19050 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19051 hardcode_libdir_separator_GCJ=: 19052 19053 hardcode_direct_GCJ=yes 19054 export_dynamic_flag_spec_GCJ='${wl}-E' 19055 19056 # hardcode_minus_L: Not really in the search PATH, 19057 # but as the default location of the library. 19058 hardcode_minus_L_GCJ=yes 19059 fi 19060 ;; 19061 19062 hpux11*) 19063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19064 case $host_cpu in 19065 hppa*64*) 19066 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19067 ;; 19068 ia64*) 19069 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19070 ;; 19071 *) 19072 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19073 ;; 19074 esac 19075 else 19076 case $host_cpu in 19077 hppa*64*) 19078 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19079 ;; 19080 ia64*) 19081 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19082 ;; 19083 *) 19084 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19085 ;; 19086 esac 19087 fi 19088 if test "$with_gnu_ld" = no; then 19089 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19090 hardcode_libdir_separator_GCJ=: 19091 19092 case $host_cpu in 19093 hppa*64*|ia64*) 19094 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19095 hardcode_direct_GCJ=no 19096 hardcode_shlibpath_var_GCJ=no 19097 ;; 19098 *) 19099 hardcode_direct_GCJ=yes 19100 export_dynamic_flag_spec_GCJ='${wl}-E' 19101 19102 # hardcode_minus_L: Not really in the search PATH, 19103 # but as the default location of the library. 19104 hardcode_minus_L_GCJ=yes 19105 ;; 19106 esac 19107 fi 19108 ;; 19109 19110 irix5* | irix6* | nonstopux*) 19111 if test "$GCC" = yes; then 19112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19113 else 19114 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19115 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19116 fi 19117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19118 hardcode_libdir_separator_GCJ=: 19119 link_all_deplibs_GCJ=yes 19120 ;; 19121 19122 netbsd*) 19123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19125 else 19126 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19127 fi 19128 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19129 hardcode_direct_GCJ=yes 19130 hardcode_shlibpath_var_GCJ=no 19131 ;; 19132 19133 newsos6) 19134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19135 hardcode_direct_GCJ=yes 19136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19137 hardcode_libdir_separator_GCJ=: 19138 hardcode_shlibpath_var_GCJ=no 19139 ;; 19140 19141 openbsd*) 19142 hardcode_direct_GCJ=yes 19143 hardcode_shlibpath_var_GCJ=no 19144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19145 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19146 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19148 export_dynamic_flag_spec_GCJ='${wl}-E' 19149 else 19150 case $host_os in 19151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19153 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19154 ;; 19155 *) 19156 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19157 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19158 ;; 19159 esac 19160 fi 19161 ;; 19162 19163 os2*) 19164 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19165 hardcode_minus_L_GCJ=yes 19166 allow_undefined_flag_GCJ=unsupported 19167 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 19168 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19169 ;; 19170 19171 osf3*) 19172 if test "$GCC" = yes; then 19173 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19174 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19175 else 19176 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19177 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19178 fi 19179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19180 hardcode_libdir_separator_GCJ=: 19181 ;; 19182 19183 osf4* | osf5*) # as osf3* with the addition of -msym flag 19184 if test "$GCC" = yes; then 19185 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19186 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19188 else 19189 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19190 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19191 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 19192 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 19193 19194 # Both c and cxx compiler support -rpath directly 19195 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19196 fi 19197 hardcode_libdir_separator_GCJ=: 19198 ;; 19199 19200 solaris*) 19201 no_undefined_flag_GCJ=' -z text' 19202 if test "$GCC" = yes; then 19203 wlarc='${wl}' 19204 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19205 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19206 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19207 else 19208 wlarc='' 19209 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19210 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19211 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19212 fi 19213 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19214 hardcode_shlibpath_var_GCJ=no 19215 case $host_os in 19216 solaris2.[0-5] | solaris2.[0-5].*) ;; 19217 *) 19218 # The compiler driver will combine linker options so we 19219 # cannot just pass the convience library names through 19220 # without $wl, iff we do not link with $LD. 19221 # Luckily, gcc supports the same syntax we need for Sun Studio. 19222 # Supported since Solaris 2.6 (maybe 2.5.1?) 19223 case $wlarc in 19224 '') 19225 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19226 *) 19227 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 19228 esac ;; 19229 esac 19230 link_all_deplibs_GCJ=yes 19231 ;; 19232 19233 sunos4*) 19234 if test "x$host_vendor" = xsequent; then 19235 # Use $CC to link under sequent, because it throws in some extra .o 19236 # files that make .init and .fini sections work. 19237 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19238 else 19239 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19240 fi 19241 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19242 hardcode_direct_GCJ=yes 19243 hardcode_minus_L_GCJ=yes 19244 hardcode_shlibpath_var_GCJ=no 19245 ;; 19246 19247 sysv4) 19248 case $host_vendor in 19249 sni) 19250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19251 hardcode_direct_GCJ=yes # is this really true??? 19252 ;; 19253 siemens) 19254 ## LD is ld it makes a PLAMLIB 19255 ## CC just makes a GrossModule. 19256 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19257 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19258 hardcode_direct_GCJ=no 19259 ;; 19260 motorola) 19261 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19262 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19263 ;; 19264 esac 19265 runpath_var='LD_RUN_PATH' 19266 hardcode_shlibpath_var_GCJ=no 19267 ;; 19268 19269 sysv4.3*) 19270 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19271 hardcode_shlibpath_var_GCJ=no 19272 export_dynamic_flag_spec_GCJ='-Bexport' 19273 ;; 19274 19275 sysv4*MP*) 19276 if test -d /usr/nec; then 19277 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19278 hardcode_shlibpath_var_GCJ=no 19279 runpath_var=LD_RUN_PATH 19280 hardcode_runpath_var=yes 19281 ld_shlibs_GCJ=yes 19282 fi 19283 ;; 19284 19285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 19286 no_undefined_flag_GCJ='${wl}-z,text' 19287 archive_cmds_need_lc_GCJ=no 19288 hardcode_shlibpath_var_GCJ=no 19289 runpath_var='LD_RUN_PATH' 19290 19291 if test "$GCC" = yes; then 19292 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19293 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19294 else 19295 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19296 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19297 fi 19298 ;; 19299 19300 sysv5* | sco3.2v5* | sco5v6*) 19301 # Note: We can NOT use -z defs as we might desire, because we do not 19302 # link with -lc, and that would cause any symbols used from libc to 19303 # always be unresolved, which means just about no library would 19304 # ever link correctly. If we're not using GNU ld we use -z text 19305 # though, which does catch some bad symbols but isn't as heavy-handed 19306 # as -z defs. 19307 no_undefined_flag_GCJ='${wl}-z,text' 19308 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19309 archive_cmds_need_lc_GCJ=no 19310 hardcode_shlibpath_var_GCJ=no 19311 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19312 hardcode_libdir_separator_GCJ=':' 19313 link_all_deplibs_GCJ=yes 19314 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19315 runpath_var='LD_RUN_PATH' 19316 19317 if test "$GCC" = yes; then 19318 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19319 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19320 else 19321 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19322 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19323 fi 19324 ;; 19325 19326 uts4*) 19327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19328 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19329 hardcode_shlibpath_var_GCJ=no 19330 ;; 19331 19332 *) 19333 ld_shlibs_GCJ=no 19334 ;; 19335 esac 19336 fi 19337 19338 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19339 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 19340 test "$ld_shlibs_GCJ" = no && can_build_shared=no 19341 19342 # 19343 # Do we need to explicitly link libc? 19344 # 19345 case "x$archive_cmds_need_lc_GCJ" in 19346 x|xyes) 19347 # Assume -lc should be added 19348 archive_cmds_need_lc_GCJ=yes 19349 19350 if test "$enable_shared" = yes && test "$GCC" = yes; then 19351 case $archive_cmds_GCJ in 19352 *'~'*) 19353 # FIXME: we may have to deal with multi-command sequences. 19354 ;; 19355 '$CC '*) 19356 # Test whether the compiler implicitly links with -lc since on some 19357 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19358 # to ld, don't add -lc before -lgcc. 19359 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19360 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19361 $rm conftest* 19362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19363 19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19365 (eval $ac_compile) 2>&5 19366 ac_status=$? 19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19368 (exit $ac_status); } 2>conftest.err; then 19369 soname=conftest 19370 lib=conftest 19371 libobjs=conftest.$ac_objext 19372 deplibs= 19373 wl=$lt_prog_compiler_wl_GCJ 19374 pic_flag=$lt_prog_compiler_pic_GCJ 19375 compiler_flags=-v 19376 linker_flags=-v 19377 verstring= 19378 output_objdir=. 19379 libname=conftest 19380 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19381 allow_undefined_flag_GCJ= 19382 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19383 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19384 ac_status=$? 19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19386 (exit $ac_status); } 19387 then 19388 archive_cmds_need_lc_GCJ=no 19389 else 19390 archive_cmds_need_lc_GCJ=yes 19391 fi 19392 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19393 else 19394 cat conftest.err 1>&5 19395 fi 19396 $rm conftest* 19397 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19398 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 19399 ;; 19400 esac 19401 fi 19402 ;; 19403 esac 19404 19405 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19406 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19407 library_names_spec= 19408 libname_spec='lib$name' 19409 soname_spec= 19410 shrext_cmds=".so" 19411 postinstall_cmds= 19412 postuninstall_cmds= 19413 finish_cmds= 19414 finish_eval= 19415 shlibpath_var= 19416 shlibpath_overrides_runpath=unknown 19417 version_type=none 19418 dynamic_linker="$host_os ld.so" 19419 sys_lib_dlsearch_path_spec="/lib /usr/lib" 19420 if test "$GCC" = yes; then 19421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19422 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19423 # if the path contains ";" then we assume it to be the separator 19424 # otherwise default to the standard path separator (i.e. ":") - it is 19425 # assumed that no part of a normal pathname contains ";" but that should 19426 # okay in the real world where ";" in dirpaths is itself problematic. 19427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19428 else 19429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19430 fi 19431 else 19432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19433 fi 19434 need_lib_prefix=unknown 19435 hardcode_into_libs=no 19436 19437 # when you set need_version to no, make sure it does not cause -set_version 19438 # flags to be left without arguments 19439 need_version=unknown 19440 19441 case $host_os in 19442 aix3*) 19443 version_type=linux 19444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19445 shlibpath_var=LIBPATH 19446 19447 # AIX 3 has no versioning support, so we append a major version to the name. 19448 soname_spec='${libname}${release}${shared_ext}$major' 19449 ;; 19450 19451 aix4* | aix5*) 19452 version_type=linux 19453 need_lib_prefix=no 19454 need_version=no 19455 hardcode_into_libs=yes 19456 if test "$host_cpu" = ia64; then 19457 # AIX 5 supports IA64 19458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19459 shlibpath_var=LD_LIBRARY_PATH 19460 else 19461 # With GCC up to 2.95.x, collect2 would create an import file 19462 # for dependence libraries. The import file would start with 19463 # the line `#! .'. This would cause the generated library to 19464 # depend on `.', always an invalid library. This was fixed in 19465 # development snapshots of GCC prior to 3.0. 19466 case $host_os in 19467 aix4 | aix4.[01] | aix4.[01].*) 19468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19469 echo ' yes ' 19470 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19471 : 19472 else 19473 can_build_shared=no 19474 fi 19475 ;; 19476 esac 19477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19478 # soname into executable. Probably we can add versioning support to 19479 # collect2, so additional links can be useful in future. 19480 if test "$aix_use_runtimelinking" = yes; then 19481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19482 # instead of lib<name>.a to let people know that these are not 19483 # typical AIX shared libraries. 19484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19485 else 19486 # We preserve .a as extension for shared libraries through AIX4.2 19487 # and later when we are not doing run time linking. 19488 library_names_spec='${libname}${release}.a $libname.a' 19489 soname_spec='${libname}${release}${shared_ext}$major' 19490 fi 19491 shlibpath_var=LIBPATH 19492 fi 19493 ;; 19494 19495 amigaos*) 19496 library_names_spec='$libname.ixlibrary $libname.a' 19497 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 19499 ;; 19500 19501 beos*) 19502 library_names_spec='${libname}${shared_ext}' 19503 dynamic_linker="$host_os ld.so" 19504 shlibpath_var=LIBRARY_PATH 19505 ;; 19506 19507 bsdi[45]*) 19508 version_type=linux 19509 need_version=no 19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19511 soname_spec='${libname}${release}${shared_ext}$major' 19512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19513 shlibpath_var=LD_LIBRARY_PATH 19514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19516 # the default ld.so.conf also contains /usr/contrib/lib and 19517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19518 # libtool to hard-code these into programs 19519 ;; 19520 19521 cygwin* | mingw* | pw32*) 19522 version_type=windows 19523 shrext_cmds=".dll" 19524 need_version=no 19525 need_lib_prefix=no 19526 19527 case $GCC,$host_os in 19528 yes,cygwin* | yes,mingw* | yes,pw32*) 19529 library_names_spec='$libname.dll.a' 19530 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19531 postinstall_cmds='base_file=`basename \${file}`~ 19532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19533 dldir=$destdir/`dirname \$dlpath`~ 19534 test -d \$dldir || mkdir -p \$dldir~ 19535 $install_prog $dir/$dlname \$dldir/$dlname~ 19536 chmod a+x \$dldir/$dlname' 19537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19538 dlpath=$dir/\$dldll~ 19539 $rm \$dlpath' 19540 shlibpath_overrides_runpath=yes 19541 19542 case $host_os in 19543 cygwin*) 19544 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19545 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19546 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19547 ;; 19548 mingw*) 19549 # MinGW DLLs use traditional 'lib' prefix 19550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19552 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19553 # It is most probably a Windows format PATH printed by 19554 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19555 # path with ; separators, and with drive letters. We can handle the 19556 # drive letters (cygwin fileutils understands them), so leave them, 19557 # especially as we might pass files found there to a mingw objdump, 19558 # which wouldn't understand a cygwinified path. Ahh. 19559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19560 else 19561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19562 fi 19563 ;; 19564 pw32*) 19565 # pw32 DLLs use 'pw' prefix rather than 'lib' 19566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19567 ;; 19568 esac 19569 ;; 19570 19571 *) 19572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19573 ;; 19574 esac 19575 dynamic_linker='Win32 ld.exe' 19576 # FIXME: first we should search . and the directory the executable is in 19577 shlibpath_var=PATH 19578 ;; 19579 19580 darwin* | rhapsody*) 19581 dynamic_linker="$host_os dyld" 19582 version_type=darwin 19583 need_lib_prefix=no 19584 need_version=no 19585 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19586 soname_spec='${libname}${release}${major}$shared_ext' 19587 shlibpath_overrides_runpath=yes 19588 shlibpath_var=DYLD_LIBRARY_PATH 19589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19590 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19591 if test "$GCC" = yes; then 19592 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 19593 else 19594 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19595 fi 19596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19597 ;; 19598 19599 dgux*) 19600 version_type=linux 19601 need_lib_prefix=no 19602 need_version=no 19603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19604 soname_spec='${libname}${release}${shared_ext}$major' 19605 shlibpath_var=LD_LIBRARY_PATH 19606 ;; 19607 19608 freebsd1*) 19609 dynamic_linker=no 19610 ;; 19611 19612 kfreebsd*-gnu) 19613 version_type=linux 19614 need_lib_prefix=no 19615 need_version=no 19616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19617 soname_spec='${libname}${release}${shared_ext}$major' 19618 shlibpath_var=LD_LIBRARY_PATH 19619 shlibpath_overrides_runpath=no 19620 hardcode_into_libs=yes 19621 dynamic_linker='GNU ld.so' 19622 ;; 19623 19624 freebsd* | dragonfly*) 19625 # DragonFly does not have aout. When/if they implement a new 19626 # versioning mechanism, adjust this. 19627 if test -x /usr/bin/objformat; then 19628 objformat=`/usr/bin/objformat` 19629 else 19630 case $host_os in 19631 freebsd[123]*) objformat=aout ;; 19632 *) objformat=elf ;; 19633 esac 19634 fi 19635 version_type=freebsd-$objformat 19636 case $version_type in 19637 freebsd-elf*) 19638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19639 need_version=no 19640 need_lib_prefix=no 19641 ;; 19642 freebsd-*) 19643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19644 need_version=yes 19645 ;; 19646 esac 19647 shlibpath_var=LD_LIBRARY_PATH 19648 case $host_os in 19649 freebsd2*) 19650 shlibpath_overrides_runpath=yes 19651 ;; 19652 freebsd3.[01]* | freebsdelf3.[01]*) 19653 shlibpath_overrides_runpath=yes 19654 hardcode_into_libs=yes 19655 ;; 19656 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19657 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19658 shlibpath_overrides_runpath=no 19659 hardcode_into_libs=yes 19660 ;; 19661 freebsd*) # from 4.6 on 19662 shlibpath_overrides_runpath=yes 19663 hardcode_into_libs=yes 19664 ;; 19665 esac 19666 ;; 19667 19668 gnu*) 19669 version_type=linux 19670 need_lib_prefix=no 19671 need_version=no 19672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19673 soname_spec='${libname}${release}${shared_ext}$major' 19674 shlibpath_var=LD_LIBRARY_PATH 19675 hardcode_into_libs=yes 19676 ;; 19677 19678 hpux9* | hpux10* | hpux11*) 19679 # Give a soname corresponding to the major version so that dld.sl refuses to 19680 # link against other versions. 19681 version_type=sunos 19682 need_lib_prefix=no 19683 need_version=no 19684 case $host_cpu in 19685 ia64*) 19686 shrext_cmds='.so' 19687 hardcode_into_libs=yes 19688 dynamic_linker="$host_os dld.so" 19689 shlibpath_var=LD_LIBRARY_PATH 19690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19692 soname_spec='${libname}${release}${shared_ext}$major' 19693 if test "X$HPUX_IA64_MODE" = X32; then 19694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19695 else 19696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19697 fi 19698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19699 ;; 19700 hppa*64*) 19701 shrext_cmds='.sl' 19702 hardcode_into_libs=yes 19703 dynamic_linker="$host_os dld.sl" 19704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19707 soname_spec='${libname}${release}${shared_ext}$major' 19708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19710 ;; 19711 *) 19712 shrext_cmds='.sl' 19713 dynamic_linker="$host_os dld.sl" 19714 shlibpath_var=SHLIB_PATH 19715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19717 soname_spec='${libname}${release}${shared_ext}$major' 19718 ;; 19719 esac 19720 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19721 postinstall_cmds='chmod 555 $lib' 19722 ;; 19723 19724 interix3*) 19725 version_type=linux 19726 need_lib_prefix=no 19727 need_version=no 19728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19729 soname_spec='${libname}${release}${shared_ext}$major' 19730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19731 shlibpath_var=LD_LIBRARY_PATH 19732 shlibpath_overrides_runpath=no 19733 hardcode_into_libs=yes 19734 ;; 19735 19736 irix5* | irix6* | nonstopux*) 19737 case $host_os in 19738 nonstopux*) version_type=nonstopux ;; 19739 *) 19740 if test "$lt_cv_prog_gnu_ld" = yes; then 19741 version_type=linux 19742 else 19743 version_type=irix 19744 fi ;; 19745 esac 19746 need_lib_prefix=no 19747 need_version=no 19748 soname_spec='${libname}${release}${shared_ext}$major' 19749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19750 case $host_os in 19751 irix5* | nonstopux*) 19752 libsuff= shlibsuff= 19753 ;; 19754 *) 19755 case $LD in # libtool.m4 will add one of these switches to LD 19756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19757 libsuff= shlibsuff= libmagic=32-bit;; 19758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19759 libsuff=32 shlibsuff=N32 libmagic=N32;; 19760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19761 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19762 *) libsuff= shlibsuff= libmagic=never-match;; 19763 esac 19764 ;; 19765 esac 19766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19767 shlibpath_overrides_runpath=no 19768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19770 hardcode_into_libs=yes 19771 ;; 19772 19773 # No shared lib support for Linux oldld, aout, or coff. 19774 linux*oldld* | linux*aout* | linux*coff*) 19775 dynamic_linker=no 19776 ;; 19777 19778 # This must be Linux ELF. 19779 linux*) 19780 version_type=linux 19781 need_lib_prefix=no 19782 need_version=no 19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19784 soname_spec='${libname}${release}${shared_ext}$major' 19785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19786 shlibpath_var=LD_LIBRARY_PATH 19787 shlibpath_overrides_runpath=no 19788 # This implies no fast_install, which is unacceptable. 19789 # Some rework will be needed to allow for fast_install 19790 # before this can be enabled. 19791 hardcode_into_libs=yes 19792 19793 # Append ld.so.conf contents to the search path 19794 if test -f /etc/ld.so.conf; then 19795 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19797 fi 19798 19799 # We used to test for /lib/ld.so.1 and disable shared libraries on 19800 # powerpc, because MkLinux only supported shared libraries with the 19801 # GNU dynamic linker. Since this was broken with cross compilers, 19802 # most powerpc-linux boxes support dynamic linking these days and 19803 # people can always --disable-shared, the test was removed, and we 19804 # assume the GNU/Linux dynamic linker is in use. 19805 dynamic_linker='GNU/Linux ld.so' 19806 ;; 19807 19808 knetbsd*-gnu) 19809 version_type=linux 19810 need_lib_prefix=no 19811 need_version=no 19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19813 soname_spec='${libname}${release}${shared_ext}$major' 19814 shlibpath_var=LD_LIBRARY_PATH 19815 shlibpath_overrides_runpath=no 19816 hardcode_into_libs=yes 19817 dynamic_linker='GNU ld.so' 19818 ;; 19819 19820 netbsd*) 19821 version_type=sunos 19822 need_lib_prefix=no 19823 need_version=no 19824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19827 dynamic_linker='NetBSD (a.out) ld.so' 19828 else 19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19830 soname_spec='${libname}${release}${shared_ext}$major' 19831 dynamic_linker='NetBSD ld.elf_so' 19832 fi 19833 shlibpath_var=LD_LIBRARY_PATH 19834 shlibpath_overrides_runpath=yes 19835 hardcode_into_libs=yes 19836 ;; 19837 19838 newsos6) 19839 version_type=linux 19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19841 shlibpath_var=LD_LIBRARY_PATH 19842 shlibpath_overrides_runpath=yes 19843 ;; 19844 19845 nto-qnx*) 19846 version_type=linux 19847 need_lib_prefix=no 19848 need_version=no 19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19850 soname_spec='${libname}${release}${shared_ext}$major' 19851 shlibpath_var=LD_LIBRARY_PATH 19852 shlibpath_overrides_runpath=yes 19853 ;; 19854 19855 openbsd*) 19856 version_type=sunos 19857 sys_lib_dlsearch_path_spec="/usr/lib" 19858 need_lib_prefix=no 19859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19860 case $host_os in 19861 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19862 *) need_version=no ;; 19863 esac 19864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19866 shlibpath_var=LD_LIBRARY_PATH 19867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19868 case $host_os in 19869 openbsd2.[89] | openbsd2.[89].*) 19870 shlibpath_overrides_runpath=no 19871 ;; 19872 *) 19873 shlibpath_overrides_runpath=yes 19874 ;; 19875 esac 19876 else 19877 shlibpath_overrides_runpath=yes 19878 fi 19879 ;; 19880 19881 os2*) 19882 libname_spec='$name' 19883 shrext_cmds=".dll" 19884 need_lib_prefix=no 19885 library_names_spec='$libname${shared_ext} $libname.a' 19886 dynamic_linker='OS/2 ld.exe' 19887 shlibpath_var=LIBPATH 19888 ;; 19889 19890 osf3* | osf4* | osf5*) 19891 version_type=osf 19892 need_lib_prefix=no 19893 need_version=no 19894 soname_spec='${libname}${release}${shared_ext}$major' 19895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19896 shlibpath_var=LD_LIBRARY_PATH 19897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19899 ;; 19900 19901 solaris*) 19902 version_type=linux 19903 need_lib_prefix=no 19904 need_version=no 19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19906 soname_spec='${libname}${release}${shared_ext}$major' 19907 shlibpath_var=LD_LIBRARY_PATH 19908 shlibpath_overrides_runpath=yes 19909 hardcode_into_libs=yes 19910 # ldd complains unless libraries are executable 19911 postinstall_cmds='chmod +x $lib' 19912 ;; 19913 19914 sunos4*) 19915 version_type=sunos 19916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19918 shlibpath_var=LD_LIBRARY_PATH 19919 shlibpath_overrides_runpath=yes 19920 if test "$with_gnu_ld" = yes; then 19921 need_lib_prefix=no 19922 fi 19923 need_version=yes 19924 ;; 19925 19926 sysv4 | sysv4.3*) 19927 version_type=linux 19928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19929 soname_spec='${libname}${release}${shared_ext}$major' 19930 shlibpath_var=LD_LIBRARY_PATH 19931 case $host_vendor in 19932 sni) 19933 shlibpath_overrides_runpath=no 19934 need_lib_prefix=no 19935 export_dynamic_flag_spec='${wl}-Blargedynsym' 19936 runpath_var=LD_RUN_PATH 19937 ;; 19938 siemens) 19939 need_lib_prefix=no 19940 ;; 19941 motorola) 19942 need_lib_prefix=no 19943 need_version=no 19944 shlibpath_overrides_runpath=no 19945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19946 ;; 19947 esac 19948 ;; 19949 19950 sysv4*MP*) 19951 if test -d /usr/nec ;then 19952 version_type=linux 19953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19954 soname_spec='$libname${shared_ext}.$major' 19955 shlibpath_var=LD_LIBRARY_PATH 19956 fi 19957 ;; 19958 19959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19960 version_type=freebsd-elf 19961 need_lib_prefix=no 19962 need_version=no 19963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19964 soname_spec='${libname}${release}${shared_ext}$major' 19965 shlibpath_var=LD_LIBRARY_PATH 19966 hardcode_into_libs=yes 19967 if test "$with_gnu_ld" = yes; then 19968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19969 shlibpath_overrides_runpath=no 19970 else 19971 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19972 shlibpath_overrides_runpath=yes 19973 case $host_os in 19974 sco3.2v5*) 19975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19976 ;; 19977 esac 19978 fi 19979 sys_lib_dlsearch_path_spec='/usr/lib' 19980 ;; 19981 19982 uts4*) 19983 version_type=linux 19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19985 soname_spec='${libname}${release}${shared_ext}$major' 19986 shlibpath_var=LD_LIBRARY_PATH 19987 ;; 19988 19989 *) 19990 dynamic_linker=no 19991 ;; 19992 esac 19993 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19994 echo "${ECHO_T}$dynamic_linker" >&6; } 19995 test "$dynamic_linker" = no && can_build_shared=no 19996 19997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19998 if test "$GCC" = yes; then 19999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20000 fi 20001 20002 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20003 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20004 hardcode_action_GCJ= 20005 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20006 test -n "$runpath_var_GCJ" || \ 20007 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20008 20009 # We can hardcode non-existant directories. 20010 if test "$hardcode_direct_GCJ" != no && 20011 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20012 # have to relink, otherwise we might link with an installed library 20013 # when we should be linking with a yet-to-be-installed one 20014 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20015 test "$hardcode_minus_L_GCJ" != no; then 20016 # Linking always hardcodes the temporary library directory. 20017 hardcode_action_GCJ=relink 20018 else 20019 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20020 hardcode_action_GCJ=immediate 20021 fi 20022 else 20023 # We cannot hardcode anything, or else we can only hardcode existing 20024 # directories. 20025 hardcode_action_GCJ=unsupported 20026 fi 20027 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20028 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 20029 20030 if test "$hardcode_action_GCJ" = relink; then 20031 # Fast installation is not supported 20032 enable_fast_install=no 20033 elif test "$shlibpath_overrides_runpath" = yes || 20034 test "$enable_shared" = no; then 20035 # Fast installation is not necessary 20036 enable_fast_install=needless 20037 fi 20038 20039 20040 # The else clause should only fire when bootstrapping the 20041 # libtool distribution, otherwise you forgot to ship ltmain.sh 20042 # with your package, and you will get complaints that there are 20043 # no rules to generate ltmain.sh. 20044 if test -f "$ltmain"; then 20045 # See if we are running on zsh, and set the options which allow our commands through 20046 # without removal of \ escapes. 20047 if test -n "${ZSH_VERSION+set}" ; then 20048 setopt NO_GLOB_SUBST 20049 fi 20050 # Now quote all the things that may contain metacharacters while being 20051 # careful not to overquote the AC_SUBSTed values. We take copies of the 20052 # variables and quote the copies for generation of the libtool script. 20053 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20054 SED SHELL STRIP \ 20055 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20056 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20057 deplibs_check_method reload_flag reload_cmds need_locks \ 20058 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20059 lt_cv_sys_global_symbol_to_c_name_address \ 20060 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20061 old_postinstall_cmds old_postuninstall_cmds \ 20062 compiler_GCJ \ 20063 CC_GCJ \ 20064 LD_GCJ \ 20065 lt_prog_compiler_wl_GCJ \ 20066 lt_prog_compiler_pic_GCJ \ 20067 lt_prog_compiler_static_GCJ \ 20068 lt_prog_compiler_no_builtin_flag_GCJ \ 20069 export_dynamic_flag_spec_GCJ \ 20070 thread_safe_flag_spec_GCJ \ 20071 whole_archive_flag_spec_GCJ \ 20072 enable_shared_with_static_runtimes_GCJ \ 20073 old_archive_cmds_GCJ \ 20074 old_archive_from_new_cmds_GCJ \ 20075 predep_objects_GCJ \ 20076 postdep_objects_GCJ \ 20077 predeps_GCJ \ 20078 postdeps_GCJ \ 20079 compiler_lib_search_path_GCJ \ 20080 archive_cmds_GCJ \ 20081 archive_expsym_cmds_GCJ \ 20082 postinstall_cmds_GCJ \ 20083 postuninstall_cmds_GCJ \ 20084 old_archive_from_expsyms_cmds_GCJ \ 20085 allow_undefined_flag_GCJ \ 20086 no_undefined_flag_GCJ \ 20087 export_symbols_cmds_GCJ \ 20088 hardcode_libdir_flag_spec_GCJ \ 20089 hardcode_libdir_flag_spec_ld_GCJ \ 20090 hardcode_libdir_separator_GCJ \ 20091 hardcode_automatic_GCJ \ 20092 module_cmds_GCJ \ 20093 module_expsym_cmds_GCJ \ 20094 lt_cv_prog_compiler_c_o_GCJ \ 20095 exclude_expsyms_GCJ \ 20096 include_expsyms_GCJ; do 20097 20098 case $var in 20099 old_archive_cmds_GCJ | \ 20100 old_archive_from_new_cmds_GCJ | \ 20101 archive_cmds_GCJ | \ 20102 archive_expsym_cmds_GCJ | \ 20103 module_cmds_GCJ | \ 20104 module_expsym_cmds_GCJ | \ 20105 old_archive_from_expsyms_cmds_GCJ | \ 20106 export_symbols_cmds_GCJ | \ 20107 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20108 postinstall_cmds | postuninstall_cmds | \ 20109 old_postinstall_cmds | old_postuninstall_cmds | \ 20110 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20111 # Double-quote double-evaled strings. 20112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20113 ;; 20114 *) 20115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20116 ;; 20117 esac 20118 done 20119 20120 case $lt_echo in 20121 *'\$0 --fallback-echo"') 20122 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20123 ;; 20124 esac 20125 20126 cfgfile="$ofile" 20127 20128 cat <<__EOF__ >> "$cfgfile" 20129 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 20130 20131 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20132 20133 # Shell to use when invoking shell scripts. 20134 SHELL=$lt_SHELL 20135 20136 # Whether or not to build shared libraries. 20137 build_libtool_libs=$enable_shared 20138 20139 # Whether or not to build static libraries. 20140 build_old_libs=$enable_static 20141 20142 # Whether or not to add -lc for building shared libraries. 20143 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20144 20145 # Whether or not to disallow shared libs when runtime libs are static 20146 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20147 20148 # Whether or not to optimize for fast installation. 20149 fast_install=$enable_fast_install 20150 20151 # The host system. 20152 host_alias=$host_alias 20153 host=$host 20154 host_os=$host_os 20155 20156 # The build system. 20157 build_alias=$build_alias 20158 build=$build 20159 build_os=$build_os 20160 20161 # An echo program that does not interpret backslashes. 20162 echo=$lt_echo 20163 20164 # The archiver. 20165 AR=$lt_AR 20166 AR_FLAGS=$lt_AR_FLAGS 20167 20168 # A C compiler. 20169 LTCC=$lt_LTCC 20170 20171 # LTCC compiler flags. 20172 LTCFLAGS=$lt_LTCFLAGS 20173 20174 # A language-specific compiler. 20175 CC=$lt_compiler_GCJ 20176 20177 # Is the compiler the GNU C compiler? 20178 with_gcc=$GCC_GCJ 20179 20180 # An ERE matcher. 20181 EGREP=$lt_EGREP 20182 20183 # The linker used to build libraries. 20184 LD=$lt_LD_GCJ 20185 20186 # Whether we need hard or soft links. 20187 LN_S=$lt_LN_S 20188 20189 # A BSD-compatible nm program. 20190 NM=$lt_NM 20191 20192 # A symbol stripping program 20193 STRIP=$lt_STRIP 20194 20195 # Used to examine libraries when file_magic_cmd begins "file" 20196 MAGIC_CMD=$MAGIC_CMD 20197 20198 # Used on cygwin: DLL creation program. 20199 DLLTOOL="$DLLTOOL" 20200 20201 # Used on cygwin: object dumper. 20202 OBJDUMP="$OBJDUMP" 20203 20204 # Used on cygwin: assembler. 20205 AS="$AS" 20206 20207 # The name of the directory that contains temporary libtool files. 20208 objdir=$objdir 20209 20210 # How to create reloadable object files. 20211 reload_flag=$lt_reload_flag 20212 reload_cmds=$lt_reload_cmds 20213 20214 # How to pass a linker flag through the compiler. 20215 wl=$lt_lt_prog_compiler_wl_GCJ 20216 20217 # Object file suffix (normally "o"). 20218 objext="$ac_objext" 20219 20220 # Old archive suffix (normally "a"). 20221 libext="$libext" 20222 20223 # Shared library suffix (normally ".so"). 20224 shrext_cmds='$shrext_cmds' 20225 20226 # Executable file suffix (normally ""). 20227 exeext="$exeext" 20228 20229 # Additional compiler flags for building library objects. 20230 pic_flag=$lt_lt_prog_compiler_pic_GCJ 20231 pic_mode=$pic_mode 20232 20233 # What is the maximum length of a command? 20234 max_cmd_len=$lt_cv_sys_max_cmd_len 20235 20236 # Does compiler simultaneously support -c and -o options? 20237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20238 20239 # Must we lock files when doing compilation? 20240 need_locks=$lt_need_locks 20241 20242 # Do we need the lib prefix for modules? 20243 need_lib_prefix=$need_lib_prefix 20244 20245 # Do we need a version for libraries? 20246 need_version=$need_version 20247 20248 # Whether dlopen is supported. 20249 dlopen_support=$enable_dlopen 20250 20251 # Whether dlopen of programs is supported. 20252 dlopen_self=$enable_dlopen_self 20253 20254 # Whether dlopen of statically linked programs is supported. 20255 dlopen_self_static=$enable_dlopen_self_static 20256 20257 # Compiler flag to prevent dynamic linking. 20258 link_static_flag=$lt_lt_prog_compiler_static_GCJ 20259 20260 # Compiler flag to turn off builtin functions. 20261 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20262 20263 # Compiler flag to allow reflexive dlopens. 20264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20265 20266 # Compiler flag to generate shared objects directly from archives. 20267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20268 20269 # Compiler flag to generate thread-safe objects. 20270 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20271 20272 # Library versioning type. 20273 version_type=$version_type 20274 20275 # Format of library name prefix. 20276 libname_spec=$lt_libname_spec 20277 20278 # List of archive names. First name is the real one, the rest are links. 20279 # The last name is the one that the linker finds with -lNAME. 20280 library_names_spec=$lt_library_names_spec 20281 20282 # The coded name of the library, if different from the real name. 20283 soname_spec=$lt_soname_spec 20284 20285 # Commands used to build and install an old-style archive. 20286 RANLIB=$lt_RANLIB 20287 old_archive_cmds=$lt_old_archive_cmds_GCJ 20288 old_postinstall_cmds=$lt_old_postinstall_cmds 20289 old_postuninstall_cmds=$lt_old_postuninstall_cmds 20290 20291 # Create an old-style archive from a shared archive. 20292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20293 20294 # Create a temporary old-style archive to link instead of a shared archive. 20295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20296 20297 # Commands used to build and install a shared archive. 20298 archive_cmds=$lt_archive_cmds_GCJ 20299 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20300 postinstall_cmds=$lt_postinstall_cmds 20301 postuninstall_cmds=$lt_postuninstall_cmds 20302 20303 # Commands used to build a loadable module (assumed same as above if empty) 20304 module_cmds=$lt_module_cmds_GCJ 20305 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20306 20307 # Commands to strip libraries. 20308 old_striplib=$lt_old_striplib 20309 striplib=$lt_striplib 20310 20311 # Dependencies to place before the objects being linked to create a 20312 # shared library. 20313 predep_objects=$lt_predep_objects_GCJ 20314 20315 # Dependencies to place after the objects being linked to create a 20316 # shared library. 20317 postdep_objects=$lt_postdep_objects_GCJ 20318 20319 # Dependencies to place before the objects being linked to create a 20320 # shared library. 20321 predeps=$lt_predeps_GCJ 20322 20323 # Dependencies to place after the objects being linked to create a 20324 # shared library. 20325 postdeps=$lt_postdeps_GCJ 20326 20327 # The library search path used internally by the compiler when linking 20328 # a shared library. 20329 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20330 20331 # Method to check whether dependent libraries are shared objects. 20332 deplibs_check_method=$lt_deplibs_check_method 20333 20334 # Command to use when deplibs_check_method == file_magic. 20335 file_magic_cmd=$lt_file_magic_cmd 20336 20337 # Flag that allows shared libraries with undefined symbols to be built. 20338 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20339 20340 # Flag that forces no undefined symbols. 20341 no_undefined_flag=$lt_no_undefined_flag_GCJ 20342 20343 # Commands used to finish a libtool library installation in a directory. 20344 finish_cmds=$lt_finish_cmds 20345 20346 # Same as above, but a single script fragment to be evaled but not shown. 20347 finish_eval=$lt_finish_eval 20348 20349 # Take the output of nm and produce a listing of raw symbols and C names. 20350 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20351 20352 # Transform the output of nm in a proper C declaration 20353 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20354 20355 # Transform the output of nm in a C name address pair 20356 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20357 20358 # This is the shared library runtime path variable. 20359 runpath_var=$runpath_var 20360 20361 # This is the shared library path variable. 20362 shlibpath_var=$shlibpath_var 20363 20364 # Is shlibpath searched before the hard-coded library search path? 20365 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20366 20367 # How to hardcode a shared library path into an executable. 20368 hardcode_action=$hardcode_action_GCJ 20369 20370 # Whether we should hardcode library paths into libraries. 20371 hardcode_into_libs=$hardcode_into_libs 20372 20373 # Flag to hardcode \$libdir into a binary during linking. 20374 # This must work even if \$libdir does not exist. 20375 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20376 20377 # If ld is used when linking, flag to hardcode \$libdir into 20378 # a binary during linking. This must work even if \$libdir does 20379 # not exist. 20380 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20381 20382 # Whether we need a single -rpath flag with a separated argument. 20383 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20384 20385 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20386 # resulting binary. 20387 hardcode_direct=$hardcode_direct_GCJ 20388 20389 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20390 # resulting binary. 20391 hardcode_minus_L=$hardcode_minus_L_GCJ 20392 20393 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20394 # the resulting binary. 20395 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20396 20397 # Set to yes if building a shared library automatically hardcodes DIR into the library 20398 # and all subsequent libraries and executables linked against it. 20399 hardcode_automatic=$hardcode_automatic_GCJ 20400 20401 # Variables whose values should be saved in libtool wrapper scripts and 20402 # restored at relink time. 20403 variables_saved_for_relink="$variables_saved_for_relink" 20404 20405 # Whether libtool must link a program against all its dependency libraries. 20406 link_all_deplibs=$link_all_deplibs_GCJ 20407 20408 # Compile-time system search path for libraries 20409 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20410 20411 # Run-time system search path for libraries 20412 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20413 20414 # Fix the shell variable \$srcfile for the compiler. 20415 fix_srcfile_path="$fix_srcfile_path_GCJ" 20416 20417 # Set to yes if exported symbols are required. 20418 always_export_symbols=$always_export_symbols_GCJ 20419 20420 # The commands to list exported symbols. 20421 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20422 20423 # The commands to extract the exported symbol list from a shared archive. 20424 extract_expsyms_cmds=$lt_extract_expsyms_cmds 20425 20426 # Symbols that should not be listed in the preloaded symbols. 20427 exclude_expsyms=$lt_exclude_expsyms_GCJ 20428 20429 # Symbols that must always be exported. 20430 include_expsyms=$lt_include_expsyms_GCJ 20431 20432 # ### END LIBTOOL TAG CONFIG: $tagname 20433 20434 __EOF__ 20435 20436 20437 else 20438 # If there is no Makefile yet, we rely on a make rule to execute 20439 # `config.status --recheck' to rerun these tests and create the 20440 # libtool script then. 20441 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20442 if test -f "$ltmain_in"; then 20443 test -f Makefile && make "$ltmain" 20444 fi 20445 fi 20446 20447 20448 ac_ext=c 20449 ac_cpp='$CPP $CPPFLAGS' 20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20453 20454 CC="$lt_save_CC" 20455 20456 else 20457 tagname="" 20458 fi 20459 ;; 20460 20461 RC) 20462 20463 20464 # Source file extension for RC test sources. 20465 ac_ext=rc 20466 20467 # Object file extension for compiled RC test sources. 20468 objext=o 20469 objext_RC=$objext 20470 20471 # Code to be used in simple compile tests 20472 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20473 20474 # Code to be used in simple link tests 20475 lt_simple_link_test_code="$lt_simple_compile_test_code" 20476 20477 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 20478 20479 # If no C compiler was specified, use CC. 20480 LTCC=${LTCC-"$CC"} 20481 20482 # If no C compiler flags were specified, use CFLAGS. 20483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20484 20485 # Allow CC to be a program name with arguments. 20486 compiler=$CC 20487 20488 20489 # save warnings/boilerplate of simple test code 20490 ac_outfile=conftest.$ac_objext 20491 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20493 _lt_compiler_boilerplate=`cat conftest.err` 20494 $rm conftest* 20495 20496 ac_outfile=conftest.$ac_objext 20497 printf "$lt_simple_link_test_code" >conftest.$ac_ext 20498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20499 _lt_linker_boilerplate=`cat conftest.err` 20500 $rm conftest* 20501 20502 20503 # Allow CC to be a program name with arguments. 20504 lt_save_CC="$CC" 20505 CC=${RC-"windres"} 20506 compiler=$CC 20507 compiler_RC=$CC 20508 for cc_temp in $compiler""; do 20509 case $cc_temp in 20510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20512 \-*) ;; 20513 *) break;; 20514 esac 20515 done 20516 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20517 20518 lt_cv_prog_compiler_c_o_RC=yes 20519 20520 # The else clause should only fire when bootstrapping the 20521 # libtool distribution, otherwise you forgot to ship ltmain.sh 20522 # with your package, and you will get complaints that there are 20523 # no rules to generate ltmain.sh. 20524 if test -f "$ltmain"; then 20525 # See if we are running on zsh, and set the options which allow our commands through 20526 # without removal of \ escapes. 20527 if test -n "${ZSH_VERSION+set}" ; then 20528 setopt NO_GLOB_SUBST 20529 fi 20530 # Now quote all the things that may contain metacharacters while being 20531 # careful not to overquote the AC_SUBSTed values. We take copies of the 20532 # variables and quote the copies for generation of the libtool script. 20533 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20534 SED SHELL STRIP \ 20535 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20536 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20537 deplibs_check_method reload_flag reload_cmds need_locks \ 20538 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20539 lt_cv_sys_global_symbol_to_c_name_address \ 20540 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20541 old_postinstall_cmds old_postuninstall_cmds \ 20542 compiler_RC \ 20543 CC_RC \ 20544 LD_RC \ 20545 lt_prog_compiler_wl_RC \ 20546 lt_prog_compiler_pic_RC \ 20547 lt_prog_compiler_static_RC \ 20548 lt_prog_compiler_no_builtin_flag_RC \ 20549 export_dynamic_flag_spec_RC \ 20550 thread_safe_flag_spec_RC \ 20551 whole_archive_flag_spec_RC \ 20552 enable_shared_with_static_runtimes_RC \ 20553 old_archive_cmds_RC \ 20554 old_archive_from_new_cmds_RC \ 20555 predep_objects_RC \ 20556 postdep_objects_RC \ 20557 predeps_RC \ 20558 postdeps_RC \ 20559 compiler_lib_search_path_RC \ 20560 archive_cmds_RC \ 20561 archive_expsym_cmds_RC \ 20562 postinstall_cmds_RC \ 20563 postuninstall_cmds_RC \ 20564 old_archive_from_expsyms_cmds_RC \ 20565 allow_undefined_flag_RC \ 20566 no_undefined_flag_RC \ 20567 export_symbols_cmds_RC \ 20568 hardcode_libdir_flag_spec_RC \ 20569 hardcode_libdir_flag_spec_ld_RC \ 20570 hardcode_libdir_separator_RC \ 20571 hardcode_automatic_RC \ 20572 module_cmds_RC \ 20573 module_expsym_cmds_RC \ 20574 lt_cv_prog_compiler_c_o_RC \ 20575 exclude_expsyms_RC \ 20576 include_expsyms_RC; do 20577 20578 case $var in 20579 old_archive_cmds_RC | \ 20580 old_archive_from_new_cmds_RC | \ 20581 archive_cmds_RC | \ 20582 archive_expsym_cmds_RC | \ 20583 module_cmds_RC | \ 20584 module_expsym_cmds_RC | \ 20585 old_archive_from_expsyms_cmds_RC | \ 20586 export_symbols_cmds_RC | \ 20587 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20588 postinstall_cmds | postuninstall_cmds | \ 20589 old_postinstall_cmds | old_postuninstall_cmds | \ 20590 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20591 # Double-quote double-evaled strings. 20592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20593 ;; 20594 *) 20595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20596 ;; 20597 esac 20598 done 20599 20600 case $lt_echo in 20601 *'\$0 --fallback-echo"') 20602 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20603 ;; 20604 esac 20605 20606 cfgfile="$ofile" 20607 20608 cat <<__EOF__ >> "$cfgfile" 20609 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 20610 20611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20612 20613 # Shell to use when invoking shell scripts. 20614 SHELL=$lt_SHELL 20615 20616 # Whether or not to build shared libraries. 20617 build_libtool_libs=$enable_shared 20618 20619 # Whether or not to build static libraries. 20620 build_old_libs=$enable_static 20621 20622 # Whether or not to add -lc for building shared libraries. 20623 build_libtool_need_lc=$archive_cmds_need_lc_RC 20624 20625 # Whether or not to disallow shared libs when runtime libs are static 20626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20627 20628 # Whether or not to optimize for fast installation. 20629 fast_install=$enable_fast_install 20630 20631 # The host system. 20632 host_alias=$host_alias 20633 host=$host 20634 host_os=$host_os 20635 20636 # The build system. 20637 build_alias=$build_alias 20638 build=$build 20639 build_os=$build_os 20640 20641 # An echo program that does not interpret backslashes. 20642 echo=$lt_echo 20643 20644 # The archiver. 20645 AR=$lt_AR 20646 AR_FLAGS=$lt_AR_FLAGS 20647 20648 # A C compiler. 20649 LTCC=$lt_LTCC 20650 20651 # LTCC compiler flags. 20652 LTCFLAGS=$lt_LTCFLAGS 20653 20654 # A language-specific compiler. 20655 CC=$lt_compiler_RC 20656 20657 # Is the compiler the GNU C compiler? 20658 with_gcc=$GCC_RC 20659 20660 # An ERE matcher. 20661 EGREP=$lt_EGREP 20662 20663 # The linker used to build libraries. 20664 LD=$lt_LD_RC 20665 20666 # Whether we need hard or soft links. 20667 LN_S=$lt_LN_S 20668 20669 # A BSD-compatible nm program. 20670 NM=$lt_NM 20671 20672 # A symbol stripping program 20673 STRIP=$lt_STRIP 20674 20675 # Used to examine libraries when file_magic_cmd begins "file" 20676 MAGIC_CMD=$MAGIC_CMD 20677 20678 # Used on cygwin: DLL creation program. 20679 DLLTOOL="$DLLTOOL" 20680 20681 # Used on cygwin: object dumper. 20682 OBJDUMP="$OBJDUMP" 20683 20684 # Used on cygwin: assembler. 20685 AS="$AS" 20686 20687 # The name of the directory that contains temporary libtool files. 20688 objdir=$objdir 20689 20690 # How to create reloadable object files. 20691 reload_flag=$lt_reload_flag 20692 reload_cmds=$lt_reload_cmds 20693 20694 # How to pass a linker flag through the compiler. 20695 wl=$lt_lt_prog_compiler_wl_RC 20696 20697 # Object file suffix (normally "o"). 20698 objext="$ac_objext" 20699 20700 # Old archive suffix (normally "a"). 20701 libext="$libext" 20702 20703 # Shared library suffix (normally ".so"). 20704 shrext_cmds='$shrext_cmds' 20705 20706 # Executable file suffix (normally ""). 20707 exeext="$exeext" 20708 20709 # Additional compiler flags for building library objects. 20710 pic_flag=$lt_lt_prog_compiler_pic_RC 20711 pic_mode=$pic_mode 20712 20713 # What is the maximum length of a command? 20714 max_cmd_len=$lt_cv_sys_max_cmd_len 20715 20716 # Does compiler simultaneously support -c and -o options? 20717 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20718 20719 # Must we lock files when doing compilation? 20720 need_locks=$lt_need_locks 20721 20722 # Do we need the lib prefix for modules? 20723 need_lib_prefix=$need_lib_prefix 20724 20725 # Do we need a version for libraries? 20726 need_version=$need_version 20727 20728 # Whether dlopen is supported. 20729 dlopen_support=$enable_dlopen 20730 20731 # Whether dlopen of programs is supported. 20732 dlopen_self=$enable_dlopen_self 20733 20734 # Whether dlopen of statically linked programs is supported. 20735 dlopen_self_static=$enable_dlopen_self_static 20736 20737 # Compiler flag to prevent dynamic linking. 20738 link_static_flag=$lt_lt_prog_compiler_static_RC 20739 20740 # Compiler flag to turn off builtin functions. 20741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20742 20743 # Compiler flag to allow reflexive dlopens. 20744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20745 20746 # Compiler flag to generate shared objects directly from archives. 20747 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20748 20749 # Compiler flag to generate thread-safe objects. 20750 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20751 20752 # Library versioning type. 20753 version_type=$version_type 20754 20755 # Format of library name prefix. 20756 libname_spec=$lt_libname_spec 20757 20758 # List of archive names. First name is the real one, the rest are links. 20759 # The last name is the one that the linker finds with -lNAME. 20760 library_names_spec=$lt_library_names_spec 20761 20762 # The coded name of the library, if different from the real name. 20763 soname_spec=$lt_soname_spec 20764 20765 # Commands used to build and install an old-style archive. 20766 RANLIB=$lt_RANLIB 20767 old_archive_cmds=$lt_old_archive_cmds_RC 20768 old_postinstall_cmds=$lt_old_postinstall_cmds 20769 old_postuninstall_cmds=$lt_old_postuninstall_cmds 20770 20771 # Create an old-style archive from a shared archive. 20772 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20773 20774 # Create a temporary old-style archive to link instead of a shared archive. 20775 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20776 20777 # Commands used to build and install a shared archive. 20778 archive_cmds=$lt_archive_cmds_RC 20779 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20780 postinstall_cmds=$lt_postinstall_cmds 20781 postuninstall_cmds=$lt_postuninstall_cmds 20782 20783 # Commands used to build a loadable module (assumed same as above if empty) 20784 module_cmds=$lt_module_cmds_RC 20785 module_expsym_cmds=$lt_module_expsym_cmds_RC 20786 20787 # Commands to strip libraries. 20788 old_striplib=$lt_old_striplib 20789 striplib=$lt_striplib 20790 20791 # Dependencies to place before the objects being linked to create a 20792 # shared library. 20793 predep_objects=$lt_predep_objects_RC 20794 20795 # Dependencies to place after the objects being linked to create a 20796 # shared library. 20797 postdep_objects=$lt_postdep_objects_RC 20798 20799 # Dependencies to place before the objects being linked to create a 20800 # shared library. 20801 predeps=$lt_predeps_RC 20802 20803 # Dependencies to place after the objects being linked to create a 20804 # shared library. 20805 postdeps=$lt_postdeps_RC 20806 20807 # The library search path used internally by the compiler when linking 20808 # a shared library. 20809 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20810 20811 # Method to check whether dependent libraries are shared objects. 20812 deplibs_check_method=$lt_deplibs_check_method 20813 20814 # Command to use when deplibs_check_method == file_magic. 20815 file_magic_cmd=$lt_file_magic_cmd 20816 20817 # Flag that allows shared libraries with undefined symbols to be built. 20818 allow_undefined_flag=$lt_allow_undefined_flag_RC 20819 20820 # Flag that forces no undefined symbols. 20821 no_undefined_flag=$lt_no_undefined_flag_RC 20822 20823 # Commands used to finish a libtool library installation in a directory. 20824 finish_cmds=$lt_finish_cmds 20825 20826 # Same as above, but a single script fragment to be evaled but not shown. 20827 finish_eval=$lt_finish_eval 20828 20829 # Take the output of nm and produce a listing of raw symbols and C names. 20830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20831 20832 # Transform the output of nm in a proper C declaration 20833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20834 20835 # Transform the output of nm in a C name address pair 20836 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20837 20838 # This is the shared library runtime path variable. 20839 runpath_var=$runpath_var 20840 20841 # This is the shared library path variable. 20842 shlibpath_var=$shlibpath_var 20843 20844 # Is shlibpath searched before the hard-coded library search path? 20845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20846 20847 # How to hardcode a shared library path into an executable. 20848 hardcode_action=$hardcode_action_RC 20849 20850 # Whether we should hardcode library paths into libraries. 20851 hardcode_into_libs=$hardcode_into_libs 20852 20853 # Flag to hardcode \$libdir into a binary during linking. 20854 # This must work even if \$libdir does not exist. 20855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20856 20857 # If ld is used when linking, flag to hardcode \$libdir into 20858 # a binary during linking. This must work even if \$libdir does 20859 # not exist. 20860 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20861 20862 # Whether we need a single -rpath flag with a separated argument. 20863 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20864 20865 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20866 # resulting binary. 20867 hardcode_direct=$hardcode_direct_RC 20868 20869 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20870 # resulting binary. 20871 hardcode_minus_L=$hardcode_minus_L_RC 20872 20873 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20874 # the resulting binary. 20875 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20876 20877 # Set to yes if building a shared library automatically hardcodes DIR into the library 20878 # and all subsequent libraries and executables linked against it. 20879 hardcode_automatic=$hardcode_automatic_RC 20880 20881 # Variables whose values should be saved in libtool wrapper scripts and 20882 # restored at relink time. 20883 variables_saved_for_relink="$variables_saved_for_relink" 20884 20885 # Whether libtool must link a program against all its dependency libraries. 20886 link_all_deplibs=$link_all_deplibs_RC 20887 20888 # Compile-time system search path for libraries 20889 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20890 20891 # Run-time system search path for libraries 20892 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20893 20894 # Fix the shell variable \$srcfile for the compiler. 20895 fix_srcfile_path="$fix_srcfile_path_RC" 20896 20897 # Set to yes if exported symbols are required. 20898 always_export_symbols=$always_export_symbols_RC 20899 20900 # The commands to list exported symbols. 20901 export_symbols_cmds=$lt_export_symbols_cmds_RC 20902 20903 # The commands to extract the exported symbol list from a shared archive. 20904 extract_expsyms_cmds=$lt_extract_expsyms_cmds 20905 20906 # Symbols that should not be listed in the preloaded symbols. 20907 exclude_expsyms=$lt_exclude_expsyms_RC 20908 20909 # Symbols that must always be exported. 20910 include_expsyms=$lt_include_expsyms_RC 20911 20912 # ### END LIBTOOL TAG CONFIG: $tagname 20913 20914 __EOF__ 20915 20916 20917 else 20918 # If there is no Makefile yet, we rely on a make rule to execute 20919 # `config.status --recheck' to rerun these tests and create the 20920 # libtool script then. 20921 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20922 if test -f "$ltmain_in"; then 20923 test -f Makefile && make "$ltmain" 20924 fi 20925 fi 20926 20927 20928 ac_ext=c 20929 ac_cpp='$CPP $CPPFLAGS' 20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20933 20934 CC="$lt_save_CC" 20935 20936 ;; 20937 20938 *) 20939 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20940 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20941 { (exit 1); exit 1; }; } 20942 ;; 20943 esac 20944 20945 # Append the new tag name to the list of available tags. 20946 if test -n "$tagname" ; then 20947 available_tags="$available_tags $tagname" 20948 fi 20949 fi 20950 done 20951 IFS="$lt_save_ifs" 20952 20953 # Now substitute the updated list of available tags. 20954 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20955 mv "${ofile}T" "$ofile" 20956 chmod +x "$ofile" 20957 else 20958 rm -f "${ofile}T" 20959 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20960 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20961 { (exit 1); exit 1; }; } 20962 fi 20963 fi 20964 20965 20966 20967 # This can be used to rebuild libtool when needed 20968 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20969 20970 # Always use our own libtool. 20971 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20972 20973 # Prevent multiple expansion 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 20998 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 20999 # Check whether --enable-nls was given. 21000 if test "${enable_nls+set}" = set; then 21001 enableval=$enable_nls; USE_NLS=$enableval 21002 else 21003 USE_NLS=yes 21004 fi 21005 21006 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 21007 echo "${ECHO_T}$USE_NLS" >&6; } 21008 21009 21010 21011 21012 21013 21014 # Prepare PATH_SEPARATOR. 21015 # The user is always right. 21016 if test "${PATH_SEPARATOR+set}" != set; then 21017 echo "#! /bin/sh" >conf$$.sh 21018 echo "exit 0" >>conf$$.sh 21019 chmod +x conf$$.sh 21020 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21021 PATH_SEPARATOR=';' 21022 else 21023 PATH_SEPARATOR=: 21024 fi 21025 rm -f conf$$.sh 21026 fi 21027 21028 # Find out how to test for executable files. Don't use a zero-byte file, 21029 # as systems may use methods other than mode bits to determine executability. 21030 cat >conf$$.file <<_ASEOF 21031 #! /bin/sh 21032 exit 0 21033 _ASEOF 21034 chmod +x conf$$.file 21035 if test -x conf$$.file >/dev/null 2>&1; then 21036 ac_executable_p="test -x" 21037 else 21038 ac_executable_p="test -f" 21039 fi 21040 rm -f conf$$.file 21041 21042 # Extract the first word of "msgfmt", so it can be a program name with args. 21043 set dummy msgfmt; ac_word=$2 21044 { echo "$as_me:$LINENO: checking for $ac_word" >&5 21045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21046 if test "${ac_cv_path_MSGFMT+set}" = set; then 21047 echo $ECHO_N "(cached) $ECHO_C" >&6 21048 else 21049 case "$MSGFMT" in 21050 [\\/]* | ?:[\\/]*) 21051 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 21052 ;; 21053 *) 21054 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 21055 for ac_dir in $PATH; do 21056 IFS="$ac_save_IFS" 21057 test -z "$ac_dir" && ac_dir=. 21058 for ac_exec_ext in '' $ac_executable_extensions; do 21059 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 21060 echo "$as_me: trying $ac_dir/$ac_word..." >&5 21061 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 21062 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 21063 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 21064 break 2 21065 fi 21066 fi 21067 done 21068 done 21069 IFS="$ac_save_IFS" 21070 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 21071 ;; 21072 esac 21073 fi 21074 MSGFMT="$ac_cv_path_MSGFMT" 21075 if test "$MSGFMT" != ":"; then 21076 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 21077 echo "${ECHO_T}$MSGFMT" >&6; } 21078 else 21079 { echo "$as_me:$LINENO: result: no" >&5 21080 echo "${ECHO_T}no" >&6; } 21081 fi 21082 21083 # Extract the first word of "gmsgfmt", so it can be a program name with args. 21084 set dummy gmsgfmt; ac_word=$2 21085 { echo "$as_me:$LINENO: checking for $ac_word" >&5 21086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21087 if test "${ac_cv_path_GMSGFMT+set}" = set; then 21088 echo $ECHO_N "(cached) $ECHO_C" >&6 21089 else 21090 case $GMSGFMT in 21091 [\\/]* | ?:[\\/]*) 21092 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 21093 ;; 21094 *) 21095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21096 for as_dir in $PATH 21097 do 21098 IFS=$as_save_IFS 21099 test -z "$as_dir" && as_dir=. 21100 for ac_exec_ext in '' $ac_executable_extensions; do 21101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21102 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 21103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21104 break 2 21105 fi 21106 done 21107 done 21108 IFS=$as_save_IFS 21109 21110 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 21111 ;; 21112 esac 21113 fi 21114 GMSGFMT=$ac_cv_path_GMSGFMT 21115 if test -n "$GMSGFMT"; then 21116 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 21117 echo "${ECHO_T}$GMSGFMT" >&6; } 21118 else 21119 { echo "$as_me:$LINENO: result: no" >&5 21120 echo "${ECHO_T}no" >&6; } 21121 fi 21122 21123 21124 21125 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 21126 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 21127 *) MSGFMT_015=$MSGFMT ;; 21128 esac 21129 21130 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 21131 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 21132 *) GMSGFMT_015=$GMSGFMT ;; 21133 esac 21134 21135 21136 21137 # Prepare PATH_SEPARATOR. 21138 # The user is always right. 21139 if test "${PATH_SEPARATOR+set}" != set; then 21140 echo "#! /bin/sh" >conf$$.sh 21141 echo "exit 0" >>conf$$.sh 21142 chmod +x conf$$.sh 21143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21144 PATH_SEPARATOR=';' 21145 else 21146 PATH_SEPARATOR=: 21147 fi 21148 rm -f conf$$.sh 21149 fi 21150 21151 # Find out how to test for executable files. Don't use a zero-byte file, 21152 # as systems may use methods other than mode bits to determine executability. 21153 cat >conf$$.file <<_ASEOF 21154 #! /bin/sh 21155 exit 0 21156 _ASEOF 21157 chmod +x conf$$.file 21158 if test -x conf$$.file >/dev/null 2>&1; then 21159 ac_executable_p="test -x" 21160 else 21161 ac_executable_p="test -f" 21162 fi 21163 rm -f conf$$.file 21164 21165 # Extract the first word of "xgettext", so it can be a program name with args. 21166 set dummy xgettext; ac_word=$2 21167 { echo "$as_me:$LINENO: checking for $ac_word" >&5 21168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21169 if test "${ac_cv_path_XGETTEXT+set}" = set; then 21170 echo $ECHO_N "(cached) $ECHO_C" >&6 21171 else 21172 case "$XGETTEXT" in 21173 [\\/]* | ?:[\\/]*) 21174 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 21175 ;; 21176 *) 21177 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 21178 for ac_dir in $PATH; do 21179 IFS="$ac_save_IFS" 21180 test -z "$ac_dir" && ac_dir=. 21181 for ac_exec_ext in '' $ac_executable_extensions; do 21182 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 21183 echo "$as_me: trying $ac_dir/$ac_word..." >&5 21184 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 21185 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 21186 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 21187 break 2 21188 fi 21189 fi 21190 done 21191 done 21192 IFS="$ac_save_IFS" 21193 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 21194 ;; 21195 esac 21196 fi 21197 XGETTEXT="$ac_cv_path_XGETTEXT" 21198 if test "$XGETTEXT" != ":"; then 21199 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 21200 echo "${ECHO_T}$XGETTEXT" >&6; } 21201 else 21202 { echo "$as_me:$LINENO: result: no" >&5 21203 echo "${ECHO_T}no" >&6; } 21204 fi 21205 21206 rm -f messages.po 21207 21208 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 21209 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 21210 *) XGETTEXT_015=$XGETTEXT ;; 21211 esac 21212 21213 21214 21215 # Prepare PATH_SEPARATOR. 21216 # The user is always right. 21217 if test "${PATH_SEPARATOR+set}" != set; then 21218 echo "#! /bin/sh" >conf$$.sh 21219 echo "exit 0" >>conf$$.sh 21220 chmod +x conf$$.sh 21221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21222 PATH_SEPARATOR=';' 21223 else 21224 PATH_SEPARATOR=: 21225 fi 21226 rm -f conf$$.sh 21227 fi 21228 21229 # Find out how to test for executable files. Don't use a zero-byte file, 21230 # as systems may use methods other than mode bits to determine executability. 21231 cat >conf$$.file <<_ASEOF 21232 #! /bin/sh 21233 exit 0 21234 _ASEOF 21235 chmod +x conf$$.file 21236 if test -x conf$$.file >/dev/null 2>&1; then 21237 ac_executable_p="test -x" 21238 else 21239 ac_executable_p="test -f" 21240 fi 21241 rm -f conf$$.file 21242 21243 # Extract the first word of "msgmerge", so it can be a program name with args. 21244 set dummy msgmerge; ac_word=$2 21245 { echo "$as_me:$LINENO: checking for $ac_word" >&5 21246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21247 if test "${ac_cv_path_MSGMERGE+set}" = set; then 21248 echo $ECHO_N "(cached) $ECHO_C" >&6 21249 else 21250 case "$MSGMERGE" in 21251 [\\/]* | ?:[\\/]*) 21252 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 21253 ;; 21254 *) 21255 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 21256 for ac_dir in $PATH; do 21257 IFS="$ac_save_IFS" 21258 test -z "$ac_dir" && ac_dir=. 21259 for ac_exec_ext in '' $ac_executable_extensions; do 21260 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 21261 echo "$as_me: trying $ac_dir/$ac_word..." >&5 21262 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 21263 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 21264 break 2 21265 fi 21266 fi 21267 done 21268 done 21269 IFS="$ac_save_IFS" 21270 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 21271 ;; 21272 esac 21273 fi 21274 MSGMERGE="$ac_cv_path_MSGMERGE" 21275 if test "$MSGMERGE" != ":"; then 21276 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 21277 echo "${ECHO_T}$MSGMERGE" >&6; } 21278 else 21279 { echo "$as_me:$LINENO: result: no" >&5 21280 echo "${ECHO_T}no" >&6; } 21281 fi 21282 21283 21284 test -n "$localedir" || localedir='${datadir}/locale' 21285 21286 21287 ac_config_commands="$ac_config_commands po-directories" 21288 21289 21290 21291 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 21292 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } 21293 if test "${ac_cv_gnu_library_2+set}" = set; then 21294 echo $ECHO_N "(cached) $ECHO_C" >&6 21295 else 21296 cat >conftest.$ac_ext <<_ACEOF 21297 /* confdefs.h. */ 21298 _ACEOF 21299 cat confdefs.h >>conftest.$ac_ext 21300 cat >>conftest.$ac_ext <<_ACEOF 21301 /* end confdefs.h. */ 21302 21303 #include <features.h> 21304 #ifdef __GNU_LIBRARY__ 21305 #if (__GLIBC__ >= 2) 21306 Lucky GNU user 21307 #endif 21308 #endif 21309 21310 _ACEOF 21311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21312 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 21313 ac_cv_gnu_library_2=yes 21314 else 21315 ac_cv_gnu_library_2=no 21316 fi 21317 rm -f conftest* 21318 21319 21320 21321 fi 21322 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 21323 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } 21324 21325 GLIBC2="$ac_cv_gnu_library_2" 21326 21327 21328 21329 21330 CFLAG_VISIBILITY= 21331 HAVE_VISIBILITY=0 21332 if test -n "$GCC"; then 21333 { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5 21334 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; } 21335 if test "${gl_cv_cc_visibility+set}" = set; then 21336 echo $ECHO_N "(cached) $ECHO_C" >&6 21337 else 21338 21339 gl_save_CFLAGS="$CFLAGS" 21340 CFLAGS="$CFLAGS -fvisibility=hidden" 21341 cat >conftest.$ac_ext <<_ACEOF 21342 /* confdefs.h. */ 21343 _ACEOF 21344 cat confdefs.h >>conftest.$ac_ext 21345 cat >>conftest.$ac_ext <<_ACEOF 21346 /* end confdefs.h. */ 21347 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 21348 extern __attribute__((__visibility__("default"))) int exportedvar; 21349 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 21350 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 21351 int 21352 main () 21353 { 21354 21355 ; 21356 return 0; 21357 } 21358 _ACEOF 21359 rm -f conftest.$ac_objext 21360 if { (ac_try="$ac_compile" 21361 case "(($ac_try" in 21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21363 *) ac_try_echo=$ac_try;; 21364 esac 21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21366 (eval "$ac_compile") 2>conftest.er1 21367 ac_status=$? 21368 grep -v '^ *+' conftest.er1 >conftest.err 21369 rm -f conftest.er1 21370 cat conftest.err >&5 21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21372 (exit $ac_status); } && { 21373 test -z "$ac_c_werror_flag" || 21374 test ! -s conftest.err 21375 } && test -s conftest.$ac_objext; then 21376 gl_cv_cc_visibility=yes 21377 else 21378 echo "$as_me: failed program was:" >&5 21379 sed 's/^/| /' conftest.$ac_ext >&5 21380 21381 gl_cv_cc_visibility=no 21382 fi 21383 21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21385 CFLAGS="$gl_save_CFLAGS" 21386 fi 21387 21388 { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5 21389 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; } 21390 if test $gl_cv_cc_visibility = yes; then 21391 CFLAG_VISIBILITY="-fvisibility=hidden" 21392 HAVE_VISIBILITY=1 21393 fi 21394 fi 21395 21396 21397 21398 cat >>confdefs.h <<_ACEOF 21399 #define HAVE_VISIBILITY $HAVE_VISIBILITY 21400 _ACEOF 21401 21402 21403 { echo "$as_me:$LINENO: checking for inline" >&5 21404 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 21405 if test "${ac_cv_c_inline+set}" = set; then 21406 echo $ECHO_N "(cached) $ECHO_C" >&6 21407 else 21408 ac_cv_c_inline=no 21409 for ac_kw in inline __inline__ __inline; do 21410 cat >conftest.$ac_ext <<_ACEOF 21411 /* confdefs.h. */ 21412 _ACEOF 21413 cat confdefs.h >>conftest.$ac_ext 21414 cat >>conftest.$ac_ext <<_ACEOF 21415 /* end confdefs.h. */ 21416 #ifndef __cplusplus 21417 typedef int foo_t; 21418 static $ac_kw foo_t static_foo () {return 0; } 21419 $ac_kw foo_t foo () {return 0; } 21420 #endif 21421 21422 _ACEOF 21423 rm -f conftest.$ac_objext 21424 if { (ac_try="$ac_compile" 21425 case "(($ac_try" in 21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21427 *) ac_try_echo=$ac_try;; 21428 esac 21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21430 (eval "$ac_compile") 2>conftest.er1 21431 ac_status=$? 21432 grep -v '^ *+' conftest.er1 >conftest.err 21433 rm -f conftest.er1 21434 cat conftest.err >&5 21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21436 (exit $ac_status); } && { 21437 test -z "$ac_c_werror_flag" || 21438 test ! -s conftest.err 21439 } && test -s conftest.$ac_objext; then 21440 ac_cv_c_inline=$ac_kw 21441 else 21442 echo "$as_me: failed program was:" >&5 21443 sed 's/^/| /' conftest.$ac_ext >&5 21444 21445 21446 fi 21447 21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21449 test "$ac_cv_c_inline" != no && break 21450 done 21451 21452 fi 21453 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 21454 echo "${ECHO_T}$ac_cv_c_inline" >&6; } 21455 21456 21457 case $ac_cv_c_inline in 21458 inline | yes) ;; 21459 *) 21460 case $ac_cv_c_inline in 21461 no) ac_val=;; 21462 *) ac_val=$ac_cv_c_inline;; 21463 esac 21464 cat >>confdefs.h <<_ACEOF 21465 #ifndef __cplusplus 21466 #define inline $ac_val 21467 #endif 21468 _ACEOF 21469 ;; 21470 esac 21471 21472 { echo "$as_me:$LINENO: checking for size_t" >&5 21473 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 21474 if test "${ac_cv_type_size_t+set}" = set; then 21475 echo $ECHO_N "(cached) $ECHO_C" >&6 21476 else 21477 cat >conftest.$ac_ext <<_ACEOF 21478 /* confdefs.h. */ 21479 _ACEOF 21480 cat confdefs.h >>conftest.$ac_ext 21481 cat >>conftest.$ac_ext <<_ACEOF 21482 /* end confdefs.h. */ 21483 $ac_includes_default 21484 typedef size_t ac__type_new_; 21485 int 21486 main () 21487 { 21488 if ((ac__type_new_ *) 0) 21489 return 0; 21490 if (sizeof (ac__type_new_)) 21491 return 0; 21492 ; 21493 return 0; 21494 } 21495 _ACEOF 21496 rm -f conftest.$ac_objext 21497 if { (ac_try="$ac_compile" 21498 case "(($ac_try" in 21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21500 *) ac_try_echo=$ac_try;; 21501 esac 21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21503 (eval "$ac_compile") 2>conftest.er1 21504 ac_status=$? 21505 grep -v '^ *+' conftest.er1 >conftest.err 21506 rm -f conftest.er1 21507 cat conftest.err >&5 21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21509 (exit $ac_status); } && { 21510 test -z "$ac_c_werror_flag" || 21511 test ! -s conftest.err 21512 } && test -s conftest.$ac_objext; then 21513 ac_cv_type_size_t=yes 21514 else 21515 echo "$as_me: failed program was:" >&5 21516 sed 's/^/| /' conftest.$ac_ext >&5 21517 21518 ac_cv_type_size_t=no 21519 fi 21520 21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21522 fi 21523 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 21524 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 21525 if test $ac_cv_type_size_t = yes; then 21526 : 21527 else 21528 21529 cat >>confdefs.h <<_ACEOF 21530 #define size_t unsigned int 21531 _ACEOF 21532 21533 fi 21534 21535 21536 { echo "$as_me:$LINENO: checking for stdint.h" >&5 21537 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 21538 if test "${gl_cv_header_stdint_h+set}" = set; then 21539 echo $ECHO_N "(cached) $ECHO_C" >&6 21540 else 21541 cat >conftest.$ac_ext <<_ACEOF 21542 /* confdefs.h. */ 21543 _ACEOF 21544 cat confdefs.h >>conftest.$ac_ext 21545 cat >>conftest.$ac_ext <<_ACEOF 21546 /* end confdefs.h. */ 21547 #include <sys/types.h> 21548 #include <stdint.h> 21549 int 21550 main () 21551 { 21552 uintmax_t i = (uintmax_t) -1; return !i; 21553 ; 21554 return 0; 21555 } 21556 _ACEOF 21557 rm -f conftest.$ac_objext 21558 if { (ac_try="$ac_compile" 21559 case "(($ac_try" in 21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21561 *) ac_try_echo=$ac_try;; 21562 esac 21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21564 (eval "$ac_compile") 2>conftest.er1 21565 ac_status=$? 21566 grep -v '^ *+' conftest.er1 >conftest.err 21567 rm -f conftest.er1 21568 cat conftest.err >&5 21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21570 (exit $ac_status); } && { 21571 test -z "$ac_c_werror_flag" || 21572 test ! -s conftest.err 21573 } && test -s conftest.$ac_objext; then 21574 gl_cv_header_stdint_h=yes 21575 else 21576 echo "$as_me: failed program was:" >&5 21577 sed 's/^/| /' conftest.$ac_ext >&5 21578 21579 gl_cv_header_stdint_h=no 21580 fi 21581 21582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21583 fi 21584 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 21585 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } 21586 if test $gl_cv_header_stdint_h = yes; then 21587 21588 cat >>confdefs.h <<_ACEOF 21589 #define HAVE_STDINT_H_WITH_UINTMAX 1 21590 _ACEOF 21591 21592 fi 21593 21594 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21595 # for constant arguments. Useless! 21596 { echo "$as_me:$LINENO: checking for working alloca.h" >&5 21597 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 21598 if test "${ac_cv_working_alloca_h+set}" = set; then 21599 echo $ECHO_N "(cached) $ECHO_C" >&6 21600 else 21601 cat >conftest.$ac_ext <<_ACEOF 21602 /* confdefs.h. */ 21603 _ACEOF 21604 cat confdefs.h >>conftest.$ac_ext 21605 cat >>conftest.$ac_ext <<_ACEOF 21606 /* end confdefs.h. */ 21607 #include <alloca.h> 21608 int 21609 main () 21610 { 21611 char *p = (char *) alloca (2 * sizeof (int)); 21612 if (p) return 0; 21613 ; 21614 return 0; 21615 } 21616 _ACEOF 21617 rm -f conftest.$ac_objext conftest$ac_exeext 21618 if { (ac_try="$ac_link" 21619 case "(($ac_try" in 21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21621 *) ac_try_echo=$ac_try;; 21622 esac 21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21624 (eval "$ac_link") 2>conftest.er1 21625 ac_status=$? 21626 grep -v '^ *+' conftest.er1 >conftest.err 21627 rm -f conftest.er1 21628 cat conftest.err >&5 21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21630 (exit $ac_status); } && { 21631 test -z "$ac_c_werror_flag" || 21632 test ! -s conftest.err 21633 } && test -s conftest$ac_exeext && 21634 $as_test_x conftest$ac_exeext; then 21635 ac_cv_working_alloca_h=yes 21636 else 21637 echo "$as_me: failed program was:" >&5 21638 sed 's/^/| /' conftest.$ac_ext >&5 21639 21640 ac_cv_working_alloca_h=no 21641 fi 21642 21643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21644 conftest$ac_exeext conftest.$ac_ext 21645 fi 21646 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 21647 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 21648 if test $ac_cv_working_alloca_h = yes; then 21649 21650 cat >>confdefs.h <<\_ACEOF 21651 #define HAVE_ALLOCA_H 1 21652 _ACEOF 21653 21654 fi 21655 21656 { echo "$as_me:$LINENO: checking for alloca" >&5 21657 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 21658 if test "${ac_cv_func_alloca_works+set}" = set; then 21659 echo $ECHO_N "(cached) $ECHO_C" >&6 21660 else 21661 cat >conftest.$ac_ext <<_ACEOF 21662 /* confdefs.h. */ 21663 _ACEOF 21664 cat confdefs.h >>conftest.$ac_ext 21665 cat >>conftest.$ac_ext <<_ACEOF 21666 /* end confdefs.h. */ 21667 #ifdef __GNUC__ 21668 # define alloca __builtin_alloca 21669 #else 21670 # ifdef _MSC_VER 21671 # include <malloc.h> 21672 # define alloca _alloca 21673 # else 21674 # ifdef HAVE_ALLOCA_H 21675 # include <alloca.h> 21676 # else 21677 # ifdef _AIX 21678 #pragma alloca 21679 # else 21680 # ifndef alloca /* predefined by HP cc +Olibcalls */ 21681 char *alloca (); 21682 # endif 21683 # endif 21684 # endif 21685 # endif 21686 #endif 21687 21688 int 21689 main () 21690 { 21691 char *p = (char *) alloca (1); 21692 if (p) return 0; 21693 ; 21694 return 0; 21695 } 21696 _ACEOF 21697 rm -f conftest.$ac_objext conftest$ac_exeext 21698 if { (ac_try="$ac_link" 21699 case "(($ac_try" in 21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21701 *) ac_try_echo=$ac_try;; 21702 esac 21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21704 (eval "$ac_link") 2>conftest.er1 21705 ac_status=$? 21706 grep -v '^ *+' conftest.er1 >conftest.err 21707 rm -f conftest.er1 21708 cat conftest.err >&5 21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21710 (exit $ac_status); } && { 21711 test -z "$ac_c_werror_flag" || 21712 test ! -s conftest.err 21713 } && test -s conftest$ac_exeext && 21714 $as_test_x conftest$ac_exeext; then 21715 ac_cv_func_alloca_works=yes 21716 else 21717 echo "$as_me: failed program was:" >&5 21718 sed 's/^/| /' conftest.$ac_ext >&5 21719 21720 ac_cv_func_alloca_works=no 21721 fi 21722 21723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21724 conftest$ac_exeext conftest.$ac_ext 21725 fi 21726 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 21727 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 21728 21729 if test $ac_cv_func_alloca_works = yes; then 21730 21731 cat >>confdefs.h <<\_ACEOF 21732 #define HAVE_ALLOCA 1 21733 _ACEOF 21734 21735 else 21736 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21737 # that cause trouble. Some versions do not even contain alloca or 21738 # contain a buggy version. If you still want to use their alloca, 21739 # use ar to extract alloca.o from them instead of compiling alloca.c. 21740 21741 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 21742 21743 cat >>confdefs.h <<\_ACEOF 21744 #define C_ALLOCA 1 21745 _ACEOF 21746 21747 21748 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 21749 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 21750 if test "${ac_cv_os_cray+set}" = set; then 21751 echo $ECHO_N "(cached) $ECHO_C" >&6 21752 else 21753 cat >conftest.$ac_ext <<_ACEOF 21754 /* confdefs.h. */ 21755 _ACEOF 21756 cat confdefs.h >>conftest.$ac_ext 21757 cat >>conftest.$ac_ext <<_ACEOF 21758 /* end confdefs.h. */ 21759 #if defined CRAY && ! defined CRAY2 21760 webecray 21761 #else 21762 wenotbecray 21763 #endif 21764 21765 _ACEOF 21766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21767 $EGREP "webecray" >/dev/null 2>&1; then 21768 ac_cv_os_cray=yes 21769 else 21770 ac_cv_os_cray=no 21771 fi 21772 rm -f conftest* 21773 21774 fi 21775 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 21776 echo "${ECHO_T}$ac_cv_os_cray" >&6; } 21777 if test $ac_cv_os_cray = yes; then 21778 for ac_func in _getb67 GETB67 getb67; do 21779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21780 { echo "$as_me:$LINENO: checking for $ac_func" >&5 21781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21783 echo $ECHO_N "(cached) $ECHO_C" >&6 21784 else 21785 cat >conftest.$ac_ext <<_ACEOF 21786 /* confdefs.h. */ 21787 _ACEOF 21788 cat confdefs.h >>conftest.$ac_ext 21789 cat >>conftest.$ac_ext <<_ACEOF 21790 /* end confdefs.h. */ 21791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21792 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21793 #define $ac_func innocuous_$ac_func 21794 21795 /* System header to define __stub macros and hopefully few prototypes, 21796 which can conflict with char $ac_func (); below. 21797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21798 <limits.h> exists even on freestanding compilers. */ 21799 21800 #ifdef __STDC__ 21801 # include <limits.h> 21802 #else 21803 # include <assert.h> 21804 #endif 21805 21806 #undef $ac_func 21807 21808 /* Override any GCC internal prototype to avoid an error. 21809 Use char because int might match the return type of a GCC 21810 builtin and then its argument prototype would still apply. */ 21811 #ifdef __cplusplus 21812 extern "C" 21813 #endif 21814 char $ac_func (); 21815 /* The GNU C library defines this for functions which it implements 21816 to always fail with ENOSYS. Some functions are actually named 21817 something starting with __ and the normal name is an alias. */ 21818 #if defined __stub_$ac_func || defined __stub___$ac_func 21819 choke me 21820 #endif 21821 21822 int 21823 main () 21824 { 21825 return $ac_func (); 21826 ; 21827 return 0; 21828 } 21829 _ACEOF 21830 rm -f conftest.$ac_objext conftest$ac_exeext 21831 if { (ac_try="$ac_link" 21832 case "(($ac_try" in 21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21834 *) ac_try_echo=$ac_try;; 21835 esac 21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21837 (eval "$ac_link") 2>conftest.er1 21838 ac_status=$? 21839 grep -v '^ *+' conftest.er1 >conftest.err 21840 rm -f conftest.er1 21841 cat conftest.err >&5 21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); } && { 21844 test -z "$ac_c_werror_flag" || 21845 test ! -s conftest.err 21846 } && test -s conftest$ac_exeext && 21847 $as_test_x conftest$ac_exeext; then 21848 eval "$as_ac_var=yes" 21849 else 21850 echo "$as_me: failed program was:" >&5 21851 sed 's/^/| /' conftest.$ac_ext >&5 21852 21853 eval "$as_ac_var=no" 21854 fi 21855 21856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21857 conftest$ac_exeext conftest.$ac_ext 21858 fi 21859 ac_res=`eval echo '${'$as_ac_var'}'` 21860 { echo "$as_me:$LINENO: result: $ac_res" >&5 21861 echo "${ECHO_T}$ac_res" >&6; } 21862 if test `eval echo '${'$as_ac_var'}'` = yes; then 21863 21864 cat >>confdefs.h <<_ACEOF 21865 #define CRAY_STACKSEG_END $ac_func 21866 _ACEOF 21867 21868 break 21869 fi 21870 21871 done 21872 fi 21873 21874 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 21875 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 21876 if test "${ac_cv_c_stack_direction+set}" = set; then 21877 echo $ECHO_N "(cached) $ECHO_C" >&6 21878 else 21879 if test "$cross_compiling" = yes; then 21880 ac_cv_c_stack_direction=0 21881 else 21882 cat >conftest.$ac_ext <<_ACEOF 21883 /* confdefs.h. */ 21884 _ACEOF 21885 cat confdefs.h >>conftest.$ac_ext 21886 cat >>conftest.$ac_ext <<_ACEOF 21887 /* end confdefs.h. */ 21888 $ac_includes_default 21889 int 21890 find_stack_direction () 21891 { 21892 static char *addr = 0; 21893 auto char dummy; 21894 if (addr == 0) 21895 { 21896 addr = &dummy; 21897 return find_stack_direction (); 21898 } 21899 else 21900 return (&dummy > addr) ? 1 : -1; 21901 } 21902 21903 int 21904 main () 21905 { 21906 return find_stack_direction () < 0; 21907 } 21908 _ACEOF 21909 rm -f conftest$ac_exeext 21910 if { (ac_try="$ac_link" 21911 case "(($ac_try" in 21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21913 *) ac_try_echo=$ac_try;; 21914 esac 21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21916 (eval "$ac_link") 2>&5 21917 ac_status=$? 21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21920 { (case "(($ac_try" in 21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21922 *) ac_try_echo=$ac_try;; 21923 esac 21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21925 (eval "$ac_try") 2>&5 21926 ac_status=$? 21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21928 (exit $ac_status); }; }; then 21929 ac_cv_c_stack_direction=1 21930 else 21931 echo "$as_me: program exited with status $ac_status" >&5 21932 echo "$as_me: failed program was:" >&5 21933 sed 's/^/| /' conftest.$ac_ext >&5 21934 21935 ( exit $ac_status ) 21936 ac_cv_c_stack_direction=-1 21937 fi 21938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21939 fi 21940 21941 21942 fi 21943 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 21944 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 21945 21946 cat >>confdefs.h <<_ACEOF 21947 #define STACK_DIRECTION $ac_cv_c_stack_direction 21948 _ACEOF 21949 21950 21951 fi 21952 21953 21954 21955 for ac_header in stdlib.h unistd.h 21956 do 21957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21959 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21962 echo $ECHO_N "(cached) $ECHO_C" >&6 21963 fi 21964 ac_res=`eval echo '${'$as_ac_Header'}'` 21965 { echo "$as_me:$LINENO: result: $ac_res" >&5 21966 echo "${ECHO_T}$ac_res" >&6; } 21967 else 21968 # Is the header compilable? 21969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 21970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21971 cat >conftest.$ac_ext <<_ACEOF 21972 /* confdefs.h. */ 21973 _ACEOF 21974 cat confdefs.h >>conftest.$ac_ext 21975 cat >>conftest.$ac_ext <<_ACEOF 21976 /* end confdefs.h. */ 21977 $ac_includes_default 21978 #include <$ac_header> 21979 _ACEOF 21980 rm -f conftest.$ac_objext 21981 if { (ac_try="$ac_compile" 21982 case "(($ac_try" in 21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21984 *) ac_try_echo=$ac_try;; 21985 esac 21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21987 (eval "$ac_compile") 2>conftest.er1 21988 ac_status=$? 21989 grep -v '^ *+' conftest.er1 >conftest.err 21990 rm -f conftest.er1 21991 cat conftest.err >&5 21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21993 (exit $ac_status); } && { 21994 test -z "$ac_c_werror_flag" || 21995 test ! -s conftest.err 21996 } && test -s conftest.$ac_objext; then 21997 ac_header_compiler=yes 21998 else 21999 echo "$as_me: failed program was:" >&5 22000 sed 's/^/| /' conftest.$ac_ext >&5 22001 22002 ac_header_compiler=no 22003 fi 22004 22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22007 echo "${ECHO_T}$ac_header_compiler" >&6; } 22008 22009 # Is the header present? 22010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 22011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22012 cat >conftest.$ac_ext <<_ACEOF 22013 /* confdefs.h. */ 22014 _ACEOF 22015 cat confdefs.h >>conftest.$ac_ext 22016 cat >>conftest.$ac_ext <<_ACEOF 22017 /* end confdefs.h. */ 22018 #include <$ac_header> 22019 _ACEOF 22020 if { (ac_try="$ac_cpp conftest.$ac_ext" 22021 case "(($ac_try" in 22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22023 *) ac_try_echo=$ac_try;; 22024 esac 22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22027 ac_status=$? 22028 grep -v '^ *+' conftest.er1 >conftest.err 22029 rm -f conftest.er1 22030 cat conftest.err >&5 22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22032 (exit $ac_status); } >/dev/null && { 22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22034 test ! -s conftest.err 22035 }; then 22036 ac_header_preproc=yes 22037 else 22038 echo "$as_me: failed program was:" >&5 22039 sed 's/^/| /' conftest.$ac_ext >&5 22040 22041 ac_header_preproc=no 22042 fi 22043 22044 rm -f conftest.err conftest.$ac_ext 22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22046 echo "${ECHO_T}$ac_header_preproc" >&6; } 22047 22048 # So? What about this header? 22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22050 yes:no: ) 22051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22055 ac_header_preproc=yes 22056 ;; 22057 no:yes:* ) 22058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22070 22071 ;; 22072 esac 22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22076 echo $ECHO_N "(cached) $ECHO_C" >&6 22077 else 22078 eval "$as_ac_Header=\$ac_header_preproc" 22079 fi 22080 ac_res=`eval echo '${'$as_ac_Header'}'` 22081 { echo "$as_me:$LINENO: result: $ac_res" >&5 22082 echo "${ECHO_T}$ac_res" >&6; } 22083 22084 fi 22085 if test `eval echo '${'$as_ac_Header'}'` = yes; then 22086 cat >>confdefs.h <<_ACEOF 22087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22088 _ACEOF 22089 22090 fi 22091 22092 done 22093 22094 22095 for ac_func in getpagesize 22096 do 22097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22098 { echo "$as_me:$LINENO: checking for $ac_func" >&5 22099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22101 echo $ECHO_N "(cached) $ECHO_C" >&6 22102 else 22103 cat >conftest.$ac_ext <<_ACEOF 22104 /* confdefs.h. */ 22105 _ACEOF 22106 cat confdefs.h >>conftest.$ac_ext 22107 cat >>conftest.$ac_ext <<_ACEOF 22108 /* end confdefs.h. */ 22109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22110 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22111 #define $ac_func innocuous_$ac_func 22112 22113 /* System header to define __stub macros and hopefully few prototypes, 22114 which can conflict with char $ac_func (); below. 22115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22116 <limits.h> exists even on freestanding compilers. */ 22117 22118 #ifdef __STDC__ 22119 # include <limits.h> 22120 #else 22121 # include <assert.h> 22122 #endif 22123 22124 #undef $ac_func 22125 22126 /* Override any GCC internal prototype to avoid an error. 22127 Use char because int might match the return type of a GCC 22128 builtin and then its argument prototype would still apply. */ 22129 #ifdef __cplusplus 22130 extern "C" 22131 #endif 22132 char $ac_func (); 22133 /* The GNU C library defines this for functions which it implements 22134 to always fail with ENOSYS. Some functions are actually named 22135 something starting with __ and the normal name is an alias. */ 22136 #if defined __stub_$ac_func || defined __stub___$ac_func 22137 choke me 22138 #endif 22139 22140 int 22141 main () 22142 { 22143 return $ac_func (); 22144 ; 22145 return 0; 22146 } 22147 _ACEOF 22148 rm -f conftest.$ac_objext conftest$ac_exeext 22149 if { (ac_try="$ac_link" 22150 case "(($ac_try" in 22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22152 *) ac_try_echo=$ac_try;; 22153 esac 22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22155 (eval "$ac_link") 2>conftest.er1 22156 ac_status=$? 22157 grep -v '^ *+' conftest.er1 >conftest.err 22158 rm -f conftest.er1 22159 cat conftest.err >&5 22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22161 (exit $ac_status); } && { 22162 test -z "$ac_c_werror_flag" || 22163 test ! -s conftest.err 22164 } && test -s conftest$ac_exeext && 22165 $as_test_x conftest$ac_exeext; then 22166 eval "$as_ac_var=yes" 22167 else 22168 echo "$as_me: failed program was:" >&5 22169 sed 's/^/| /' conftest.$ac_ext >&5 22170 22171 eval "$as_ac_var=no" 22172 fi 22173 22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22175 conftest$ac_exeext conftest.$ac_ext 22176 fi 22177 ac_res=`eval echo '${'$as_ac_var'}'` 22178 { echo "$as_me:$LINENO: result: $ac_res" >&5 22179 echo "${ECHO_T}$ac_res" >&6; } 22180 if test `eval echo '${'$as_ac_var'}'` = yes; then 22181 cat >>confdefs.h <<_ACEOF 22182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22183 _ACEOF 22184 22185 fi 22186 done 22187 22188 { echo "$as_me:$LINENO: checking for working mmap" >&5 22189 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 22190 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 22191 echo $ECHO_N "(cached) $ECHO_C" >&6 22192 else 22193 if test "$cross_compiling" = yes; then 22194 ac_cv_func_mmap_fixed_mapped=no 22195 else 22196 cat >conftest.$ac_ext <<_ACEOF 22197 /* confdefs.h. */ 22198 _ACEOF 22199 cat confdefs.h >>conftest.$ac_ext 22200 cat >>conftest.$ac_ext <<_ACEOF 22201 /* end confdefs.h. */ 22202 $ac_includes_default 22203 /* malloc might have been renamed as rpl_malloc. */ 22204 #undef malloc 22205 22206 /* Thanks to Mike Haertel and Jim Avera for this test. 22207 Here is a matrix of mmap possibilities: 22208 mmap private not fixed 22209 mmap private fixed at somewhere currently unmapped 22210 mmap private fixed at somewhere already mapped 22211 mmap shared not fixed 22212 mmap shared fixed at somewhere currently unmapped 22213 mmap shared fixed at somewhere already mapped 22214 For private mappings, we should verify that changes cannot be read() 22215 back from the file, nor mmap's back from the file at a different 22216 address. (There have been systems where private was not correctly 22217 implemented like the infamous i386 svr4.0, and systems where the 22218 VM page cache was not coherent with the file system buffer cache 22219 like early versions of FreeBSD and possibly contemporary NetBSD.) 22220 For shared mappings, we should conversely verify that changes get 22221 propagated back to all the places they're supposed to be. 22222 22223 Grep wants private fixed already mapped. 22224 The main things grep needs to know about mmap are: 22225 * does it exist and is it safe to write into the mmap'd area 22226 * how to use it (BSD variants) */ 22227 22228 #include <fcntl.h> 22229 #include <sys/mman.h> 22230 22231 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 22232 char *malloc (); 22233 #endif 22234 22235 /* This mess was copied from the GNU getpagesize.h. */ 22236 #ifndef HAVE_GETPAGESIZE 22237 /* Assume that all systems that can run configure have sys/param.h. */ 22238 # ifndef HAVE_SYS_PARAM_H 22239 # define HAVE_SYS_PARAM_H 1 22240 # endif 22241 22242 # ifdef _SC_PAGESIZE 22243 # define getpagesize() sysconf(_SC_PAGESIZE) 22244 # else /* no _SC_PAGESIZE */ 22245 # ifdef HAVE_SYS_PARAM_H 22246 # include <sys/param.h> 22247 # ifdef EXEC_PAGESIZE 22248 # define getpagesize() EXEC_PAGESIZE 22249 # else /* no EXEC_PAGESIZE */ 22250 # ifdef NBPG 22251 # define getpagesize() NBPG * CLSIZE 22252 # ifndef CLSIZE 22253 # define CLSIZE 1 22254 # endif /* no CLSIZE */ 22255 # else /* no NBPG */ 22256 # ifdef NBPC 22257 # define getpagesize() NBPC 22258 # else /* no NBPC */ 22259 # ifdef PAGESIZE 22260 # define getpagesize() PAGESIZE 22261 # endif /* PAGESIZE */ 22262 # endif /* no NBPC */ 22263 # endif /* no NBPG */ 22264 # endif /* no EXEC_PAGESIZE */ 22265 # else /* no HAVE_SYS_PARAM_H */ 22266 # define getpagesize() 8192 /* punt totally */ 22267 # endif /* no HAVE_SYS_PARAM_H */ 22268 # endif /* no _SC_PAGESIZE */ 22269 22270 #endif /* no HAVE_GETPAGESIZE */ 22271 22272 int 22273 main () 22274 { 22275 char *data, *data2, *data3; 22276 int i, pagesize; 22277 int fd; 22278 22279 pagesize = getpagesize (); 22280 22281 /* First, make a file with some known garbage in it. */ 22282 data = (char *) malloc (pagesize); 22283 if (!data) 22284 return 1; 22285 for (i = 0; i < pagesize; ++i) 22286 *(data + i) = rand (); 22287 umask (0); 22288 fd = creat ("conftest.mmap", 0600); 22289 if (fd < 0) 22290 return 1; 22291 if (write (fd, data, pagesize) != pagesize) 22292 return 1; 22293 close (fd); 22294 22295 /* Next, try to mmap the file at a fixed address which already has 22296 something else allocated at it. If we can, also make sure that 22297 we see the same garbage. */ 22298 fd = open ("conftest.mmap", O_RDWR); 22299 if (fd < 0) 22300 return 1; 22301 data2 = (char *) malloc (2 * pagesize); 22302 if (!data2) 22303 return 1; 22304 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 22305 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 22306 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 22307 return 1; 22308 for (i = 0; i < pagesize; ++i) 22309 if (*(data + i) != *(data2 + i)) 22310 return 1; 22311 22312 /* Finally, make sure that changes to the mapped area do not 22313 percolate back to the file as seen by read(). (This is a bug on 22314 some variants of i386 svr4.0.) */ 22315 for (i = 0; i < pagesize; ++i) 22316 *(data2 + i) = *(data2 + i) + 1; 22317 data3 = (char *) malloc (pagesize); 22318 if (!data3) 22319 return 1; 22320 if (read (fd, data3, pagesize) != pagesize) 22321 return 1; 22322 for (i = 0; i < pagesize; ++i) 22323 if (*(data + i) != *(data3 + i)) 22324 return 1; 22325 close (fd); 22326 return 0; 22327 } 22328 _ACEOF 22329 rm -f conftest$ac_exeext 22330 if { (ac_try="$ac_link" 22331 case "(($ac_try" in 22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22333 *) ac_try_echo=$ac_try;; 22334 esac 22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22336 (eval "$ac_link") 2>&5 22337 ac_status=$? 22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22340 { (case "(($ac_try" in 22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22342 *) ac_try_echo=$ac_try;; 22343 esac 22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22345 (eval "$ac_try") 2>&5 22346 ac_status=$? 22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22348 (exit $ac_status); }; }; then 22349 ac_cv_func_mmap_fixed_mapped=yes 22350 else 22351 echo "$as_me: program exited with status $ac_status" >&5 22352 echo "$as_me: failed program was:" >&5 22353 sed 's/^/| /' conftest.$ac_ext >&5 22354 22355 ( exit $ac_status ) 22356 ac_cv_func_mmap_fixed_mapped=no 22357 fi 22358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22359 fi 22360 22361 22362 fi 22363 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 22364 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 22365 if test $ac_cv_func_mmap_fixed_mapped = yes; then 22366 22367 cat >>confdefs.h <<\_ACEOF 22368 #define HAVE_MMAP 1 22369 _ACEOF 22370 22371 fi 22372 rm -f conftest.mmap 22373 22374 22375 22376 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 22377 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } 22378 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 22379 echo $ECHO_N "(cached) $ECHO_C" >&6 22380 else 22381 22382 if test "$cross_compiling" = yes; then 22383 22384 # Guess based on the CPU. 22385 case "$host_cpu" in 22386 alpha* | i3456786 | m68k | s390*) 22387 gt_cv_int_divbyzero_sigfpe="guessing yes";; 22388 *) 22389 gt_cv_int_divbyzero_sigfpe="guessing no";; 22390 esac 22391 22392 else 22393 cat >conftest.$ac_ext <<_ACEOF 22394 /* confdefs.h. */ 22395 _ACEOF 22396 cat confdefs.h >>conftest.$ac_ext 22397 cat >>conftest.$ac_ext <<_ACEOF 22398 /* end confdefs.h. */ 22399 22400 #include <stdlib.h> 22401 #include <signal.h> 22402 22403 static void 22404 #ifdef __cplusplus 22405 sigfpe_handler (int sig) 22406 #else 22407 sigfpe_handler (sig) int sig; 22408 #endif 22409 { 22410 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 22411 exit (sig != SIGFPE); 22412 } 22413 22414 int x = 1; 22415 int y = 0; 22416 int z; 22417 int nan; 22418 22419 int main () 22420 { 22421 signal (SIGFPE, sigfpe_handler); 22422 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 22423 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 22424 signal (SIGTRAP, sigfpe_handler); 22425 #endif 22426 /* Linux/SPARC yields signal SIGILL. */ 22427 #if defined (__sparc__) && defined (__linux__) 22428 signal (SIGILL, sigfpe_handler); 22429 #endif 22430 22431 z = x / y; 22432 nan = y / y; 22433 exit (1); 22434 } 22435 22436 _ACEOF 22437 rm -f conftest$ac_exeext 22438 if { (ac_try="$ac_link" 22439 case "(($ac_try" in 22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22441 *) ac_try_echo=$ac_try;; 22442 esac 22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22444 (eval "$ac_link") 2>&5 22445 ac_status=$? 22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22448 { (case "(($ac_try" in 22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22450 *) ac_try_echo=$ac_try;; 22451 esac 22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22453 (eval "$ac_try") 2>&5 22454 ac_status=$? 22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22456 (exit $ac_status); }; }; then 22457 gt_cv_int_divbyzero_sigfpe=yes 22458 else 22459 echo "$as_me: program exited with status $ac_status" >&5 22460 echo "$as_me: failed program was:" >&5 22461 sed 's/^/| /' conftest.$ac_ext >&5 22462 22463 ( exit $ac_status ) 22464 gt_cv_int_divbyzero_sigfpe=no 22465 fi 22466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22467 fi 22468 22469 22470 22471 fi 22472 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 22473 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } 22474 case "$gt_cv_int_divbyzero_sigfpe" in 22475 *yes) value=1;; 22476 *) value=0;; 22477 esac 22478 22479 cat >>confdefs.h <<_ACEOF 22480 #define INTDIV0_RAISES_SIGFPE $value 22481 _ACEOF 22482 22483 22484 22485 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 22486 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 22487 if test "${gl_cv_header_inttypes_h+set}" = set; then 22488 echo $ECHO_N "(cached) $ECHO_C" >&6 22489 else 22490 cat >conftest.$ac_ext <<_ACEOF 22491 /* confdefs.h. */ 22492 _ACEOF 22493 cat confdefs.h >>conftest.$ac_ext 22494 cat >>conftest.$ac_ext <<_ACEOF 22495 /* end confdefs.h. */ 22496 #include <sys/types.h> 22497 #include <inttypes.h> 22498 int 22499 main () 22500 { 22501 uintmax_t i = (uintmax_t) -1; return !i; 22502 ; 22503 return 0; 22504 } 22505 _ACEOF 22506 rm -f conftest.$ac_objext 22507 if { (ac_try="$ac_compile" 22508 case "(($ac_try" in 22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22510 *) ac_try_echo=$ac_try;; 22511 esac 22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22513 (eval "$ac_compile") 2>conftest.er1 22514 ac_status=$? 22515 grep -v '^ *+' conftest.er1 >conftest.err 22516 rm -f conftest.er1 22517 cat conftest.err >&5 22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22519 (exit $ac_status); } && { 22520 test -z "$ac_c_werror_flag" || 22521 test ! -s conftest.err 22522 } && test -s conftest.$ac_objext; then 22523 gl_cv_header_inttypes_h=yes 22524 else 22525 echo "$as_me: failed program was:" >&5 22526 sed 's/^/| /' conftest.$ac_ext >&5 22527 22528 gl_cv_header_inttypes_h=no 22529 fi 22530 22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22532 fi 22533 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 22534 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } 22535 if test $gl_cv_header_inttypes_h = yes; then 22536 22537 cat >>confdefs.h <<_ACEOF 22538 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 22539 _ACEOF 22540 22541 fi 22542 22543 22544 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5 22545 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; } 22546 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then 22547 echo $ECHO_N "(cached) $ECHO_C" >&6 22548 else 22549 cat >conftest.$ac_ext <<_ACEOF 22550 /* confdefs.h. */ 22551 _ACEOF 22552 cat confdefs.h >>conftest.$ac_ext 22553 cat >>conftest.$ac_ext <<_ACEOF 22554 /* end confdefs.h. */ 22555 unsigned long long int ull = 18446744073709551615ULL; 22556 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 22557 ? 1 : -1)]; 22558 int i = 63; 22559 int 22560 main () 22561 { 22562 unsigned long long int ullmax = 18446744073709551615ull; 22563 return (ull << 63 | ull >> 63 | ull << i | ull >> i 22564 | ullmax / ull | ullmax % ull); 22565 ; 22566 return 0; 22567 } 22568 _ACEOF 22569 rm -f conftest.$ac_objext conftest$ac_exeext 22570 if { (ac_try="$ac_link" 22571 case "(($ac_try" in 22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22573 *) ac_try_echo=$ac_try;; 22574 esac 22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22576 (eval "$ac_link") 2>conftest.er1 22577 ac_status=$? 22578 grep -v '^ *+' conftest.er1 >conftest.err 22579 rm -f conftest.er1 22580 cat conftest.err >&5 22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22582 (exit $ac_status); } && { 22583 test -z "$ac_c_werror_flag" || 22584 test ! -s conftest.err 22585 } && test -s conftest$ac_exeext && 22586 $as_test_x conftest$ac_exeext; then 22587 ac_cv_type_unsigned_long_long_int=yes 22588 else 22589 echo "$as_me: failed program was:" >&5 22590 sed 's/^/| /' conftest.$ac_ext >&5 22591 22592 ac_cv_type_unsigned_long_long_int=no 22593 fi 22594 22595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22596 conftest$ac_exeext conftest.$ac_ext 22597 fi 22598 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 22599 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; } 22600 if test $ac_cv_type_unsigned_long_long_int = yes; then 22601 22602 cat >>confdefs.h <<\_ACEOF 22603 #define HAVE_UNSIGNED_LONG_LONG_INT 1 22604 _ACEOF 22605 22606 fi 22607 22608 22609 22610 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int 22611 if test $ac_cv_type_unsigned_long_long = yes; then 22612 22613 cat >>confdefs.h <<\_ACEOF 22614 #define HAVE_UNSIGNED_LONG_LONG 1 22615 _ACEOF 22616 22617 fi 22618 22619 22620 22621 22622 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 22623 22624 test $ac_cv_type_unsigned_long_long = yes \ 22625 && ac_type='unsigned long long' \ 22626 || ac_type='unsigned long' 22627 22628 cat >>confdefs.h <<_ACEOF 22629 #define uintmax_t $ac_type 22630 _ACEOF 22631 22632 else 22633 22634 cat >>confdefs.h <<\_ACEOF 22635 #define HAVE_UINTMAX_T 1 22636 _ACEOF 22637 22638 fi 22639 22640 22641 22642 for ac_header in inttypes.h 22643 do 22644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22646 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22649 echo $ECHO_N "(cached) $ECHO_C" >&6 22650 fi 22651 ac_res=`eval echo '${'$as_ac_Header'}'` 22652 { echo "$as_me:$LINENO: result: $ac_res" >&5 22653 echo "${ECHO_T}$ac_res" >&6; } 22654 else 22655 # Is the header compilable? 22656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 22657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22658 cat >conftest.$ac_ext <<_ACEOF 22659 /* confdefs.h. */ 22660 _ACEOF 22661 cat confdefs.h >>conftest.$ac_ext 22662 cat >>conftest.$ac_ext <<_ACEOF 22663 /* end confdefs.h. */ 22664 $ac_includes_default 22665 #include <$ac_header> 22666 _ACEOF 22667 rm -f conftest.$ac_objext 22668 if { (ac_try="$ac_compile" 22669 case "(($ac_try" in 22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22671 *) ac_try_echo=$ac_try;; 22672 esac 22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22674 (eval "$ac_compile") 2>conftest.er1 22675 ac_status=$? 22676 grep -v '^ *+' conftest.er1 >conftest.err 22677 rm -f conftest.er1 22678 cat conftest.err >&5 22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22680 (exit $ac_status); } && { 22681 test -z "$ac_c_werror_flag" || 22682 test ! -s conftest.err 22683 } && test -s conftest.$ac_objext; then 22684 ac_header_compiler=yes 22685 else 22686 echo "$as_me: failed program was:" >&5 22687 sed 's/^/| /' conftest.$ac_ext >&5 22688 22689 ac_header_compiler=no 22690 fi 22691 22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22694 echo "${ECHO_T}$ac_header_compiler" >&6; } 22695 22696 # Is the header present? 22697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 22698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22699 cat >conftest.$ac_ext <<_ACEOF 22700 /* confdefs.h. */ 22701 _ACEOF 22702 cat confdefs.h >>conftest.$ac_ext 22703 cat >>conftest.$ac_ext <<_ACEOF 22704 /* end confdefs.h. */ 22705 #include <$ac_header> 22706 _ACEOF 22707 if { (ac_try="$ac_cpp conftest.$ac_ext" 22708 case "(($ac_try" in 22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22710 *) ac_try_echo=$ac_try;; 22711 esac 22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22714 ac_status=$? 22715 grep -v '^ *+' conftest.er1 >conftest.err 22716 rm -f conftest.er1 22717 cat conftest.err >&5 22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22719 (exit $ac_status); } >/dev/null && { 22720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22721 test ! -s conftest.err 22722 }; then 22723 ac_header_preproc=yes 22724 else 22725 echo "$as_me: failed program was:" >&5 22726 sed 's/^/| /' conftest.$ac_ext >&5 22727 22728 ac_header_preproc=no 22729 fi 22730 22731 rm -f conftest.err conftest.$ac_ext 22732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22733 echo "${ECHO_T}$ac_header_preproc" >&6; } 22734 22735 # So? What about this header? 22736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22737 yes:no: ) 22738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22742 ac_header_preproc=yes 22743 ;; 22744 no:yes:* ) 22745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22757 22758 ;; 22759 esac 22760 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22763 echo $ECHO_N "(cached) $ECHO_C" >&6 22764 else 22765 eval "$as_ac_Header=\$ac_header_preproc" 22766 fi 22767 ac_res=`eval echo '${'$as_ac_Header'}'` 22768 { echo "$as_me:$LINENO: result: $ac_res" >&5 22769 echo "${ECHO_T}$ac_res" >&6; } 22770 22771 fi 22772 if test `eval echo '${'$as_ac_Header'}'` = yes; then 22773 cat >>confdefs.h <<_ACEOF 22774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22775 _ACEOF 22776 22777 fi 22778 22779 done 22780 22781 if test $ac_cv_header_inttypes_h = yes; then 22782 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 22783 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } 22784 if test "${gt_cv_inttypes_pri_broken+set}" = set; then 22785 echo $ECHO_N "(cached) $ECHO_C" >&6 22786 else 22787 22788 cat >conftest.$ac_ext <<_ACEOF 22789 /* confdefs.h. */ 22790 _ACEOF 22791 cat confdefs.h >>conftest.$ac_ext 22792 cat >>conftest.$ac_ext <<_ACEOF 22793 /* end confdefs.h. */ 22794 #include <inttypes.h> 22795 #ifdef PRId32 22796 char *p = PRId32; 22797 #endif 22798 22799 int 22800 main () 22801 { 22802 22803 ; 22804 return 0; 22805 } 22806 _ACEOF 22807 rm -f conftest.$ac_objext 22808 if { (ac_try="$ac_compile" 22809 case "(($ac_try" in 22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22811 *) ac_try_echo=$ac_try;; 22812 esac 22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22814 (eval "$ac_compile") 2>conftest.er1 22815 ac_status=$? 22816 grep -v '^ *+' conftest.er1 >conftest.err 22817 rm -f conftest.er1 22818 cat conftest.err >&5 22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22820 (exit $ac_status); } && { 22821 test -z "$ac_c_werror_flag" || 22822 test ! -s conftest.err 22823 } && test -s conftest.$ac_objext; then 22824 gt_cv_inttypes_pri_broken=no 22825 else 22826 echo "$as_me: failed program was:" >&5 22827 sed 's/^/| /' conftest.$ac_ext >&5 22828 22829 gt_cv_inttypes_pri_broken=yes 22830 fi 22831 22832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22833 22834 fi 22835 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 22836 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } 22837 fi 22838 if test "$gt_cv_inttypes_pri_broken" = yes; then 22839 22840 cat >>confdefs.h <<_ACEOF 22841 #define PRI_MACROS_BROKEN 1 22842 _ACEOF 22843 22844 PRI_MACROS_BROKEN=1 22845 else 22846 PRI_MACROS_BROKEN=0 22847 fi 22848 22849 22850 22851 22852 22853 # Check whether --enable-threads was given. 22854 if test "${enable_threads+set}" = set; then 22855 enableval=$enable_threads; gl_use_threads=$enableval 22856 else 22857 case "$host_os" in 22858 osf*) gl_use_threads=no ;; 22859 *) gl_use_threads=yes ;; 22860 esac 22861 22862 fi 22863 22864 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 22865 # For using <pthread.h>: 22866 case "$host_os" in 22867 osf*) 22868 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 22869 # groks <pthread.h>. cc also understands the flag -pthread, but 22870 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 22871 # 2. putting a flag into CPPFLAGS that has an effect on the linker 22872 # causes the AC_TRY_LINK test below to succeed unexpectedly, 22873 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 22874 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 22875 ;; 22876 esac 22877 # Some systems optimize for single-threaded programs by default, and 22878 # need special flags to disable these optimizations. For example, the 22879 # definition of 'errno' in <errno.h>. 22880 case "$host_os" in 22881 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 22882 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 22883 esac 22884 fi 22885 22886 22887 22888 22889 22890 if test "X$prefix" = "XNONE"; then 22891 acl_final_prefix="$ac_default_prefix" 22892 else 22893 acl_final_prefix="$prefix" 22894 fi 22895 if test "X$exec_prefix" = "XNONE"; then 22896 acl_final_exec_prefix='${prefix}' 22897 else 22898 acl_final_exec_prefix="$exec_prefix" 22899 fi 22900 acl_save_prefix="$prefix" 22901 prefix="$acl_final_prefix" 22902 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 22903 prefix="$acl_save_prefix" 22904 22905 22906 # Check whether --with-gnu-ld was given. 22907 if test "${with_gnu_ld+set}" = set; then 22908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 22909 else 22910 with_gnu_ld=no 22911 fi 22912 22913 # Prepare PATH_SEPARATOR. 22914 # The user is always right. 22915 if test "${PATH_SEPARATOR+set}" != set; then 22916 echo "#! /bin/sh" >conf$$.sh 22917 echo "exit 0" >>conf$$.sh 22918 chmod +x conf$$.sh 22919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22920 PATH_SEPARATOR=';' 22921 else 22922 PATH_SEPARATOR=: 22923 fi 22924 rm -f conf$$.sh 22925 fi 22926 ac_prog=ld 22927 if test "$GCC" = yes; then 22928 # Check if gcc -print-prog-name=ld gives a path. 22929 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 22930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 22931 case $host in 22932 *-*-mingw*) 22933 # gcc leaves a trailing carriage return which upsets mingw 22934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 22935 *) 22936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 22937 esac 22938 case $ac_prog in 22939 # Accept absolute paths. 22940 [\\/]* | [A-Za-z]:[\\/]*) 22941 re_direlt='/[^/][^/]*/\.\./' 22942 # Canonicalize the path of ld 22943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 22944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 22945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 22946 done 22947 test -z "$LD" && LD="$ac_prog" 22948 ;; 22949 "") 22950 # If it fails, then pretend we aren't using GCC. 22951 ac_prog=ld 22952 ;; 22953 *) 22954 # If it is relative, then search for the first ld in PATH. 22955 with_gnu_ld=unknown 22956 ;; 22957 esac 22958 elif test "$with_gnu_ld" = yes; then 22959 { echo "$as_me:$LINENO: checking for GNU ld" >&5 22960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 22961 else 22962 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 22963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 22964 fi 22965 if test "${acl_cv_path_LD+set}" = set; then 22966 echo $ECHO_N "(cached) $ECHO_C" >&6 22967 else 22968 if test -z "$LD"; then 22969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 22970 for ac_dir in $PATH; do 22971 test -z "$ac_dir" && ac_dir=. 22972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 22973 acl_cv_path_LD="$ac_dir/$ac_prog" 22974 # Check to see if the program is GNU ld. I'd rather use --version, 22975 # but apparently some GNU ld's only accept -v. 22976 # Break only if it was the GNU/non-GNU ld that we prefer. 22977 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 22978 *GNU* | *'with BFD'*) 22979 test "$with_gnu_ld" != no && break ;; 22980 *) 22981 test "$with_gnu_ld" != yes && break ;; 22982 esac 22983 fi 22984 done 22985 IFS="$ac_save_ifs" 22986 else 22987 acl_cv_path_LD="$LD" # Let the user override the test with a path. 22988 fi 22989 fi 22990 22991 LD="$acl_cv_path_LD" 22992 if test -n "$LD"; then 22993 { echo "$as_me:$LINENO: result: $LD" >&5 22994 echo "${ECHO_T}$LD" >&6; } 22995 else 22996 { echo "$as_me:$LINENO: result: no" >&5 22997 echo "${ECHO_T}no" >&6; } 22998 fi 22999 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 23000 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 23001 { (exit 1); exit 1; }; } 23002 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 23003 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 23004 if test "${acl_cv_prog_gnu_ld+set}" = set; then 23005 echo $ECHO_N "(cached) $ECHO_C" >&6 23006 else 23007 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 23008 case `$LD -v 2>&1 </dev/null` in 23009 *GNU* | *'with BFD'*) 23010 acl_cv_prog_gnu_ld=yes ;; 23011 *) 23012 acl_cv_prog_gnu_ld=no ;; 23013 esac 23014 fi 23015 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 23016 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 23017 with_gnu_ld=$acl_cv_prog_gnu_ld 23018 23019 23020 23021 23022 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 23023 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 23024 if test "${acl_cv_rpath+set}" = set; then 23025 echo $ECHO_N "(cached) $ECHO_C" >&6 23026 else 23027 23028 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 23029 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 23030 . ./conftest.sh 23031 rm -f ./conftest.sh 23032 acl_cv_rpath=done 23033 23034 fi 23035 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 23036 echo "${ECHO_T}$acl_cv_rpath" >&6; } 23037 wl="$acl_cv_wl" 23038 libext="$acl_cv_libext" 23039 shlibext="$acl_cv_shlibext" 23040 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 23041 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 23042 hardcode_direct="$acl_cv_hardcode_direct" 23043 hardcode_minus_L="$acl_cv_hardcode_minus_L" 23044 # Check whether --enable-rpath was given. 23045 if test "${enable_rpath+set}" = set; then 23046 enableval=$enable_rpath; : 23047 else 23048 enable_rpath=yes 23049 fi 23050 23051 23052 23053 acl_libdirstem=lib 23054 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 23055 if test -n "$searchpath"; then 23056 acl_save_IFS="${IFS= }"; IFS=":" 23057 for searchdir in $searchpath; do 23058 if test -d "$searchdir"; then 23059 case "$searchdir" in 23060 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 23061 *) searchdir=`cd "$searchdir" && pwd` 23062 case "$searchdir" in 23063 */lib64 ) acl_libdirstem=lib64 ;; 23064 esac ;; 23065 esac 23066 fi 23067 done 23068 IFS="$acl_save_IFS" 23069 fi 23070 23071 23072 23073 gl_threads_api=none 23074 LIBTHREAD= 23075 LTLIBTHREAD= 23076 LIBMULTITHREAD= 23077 LTLIBMULTITHREAD= 23078 if test "$gl_use_threads" != no; then 23079 { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5 23080 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; } 23081 gl_have_weak=no 23082 cat >conftest.$ac_ext <<_ACEOF 23083 /* confdefs.h. */ 23084 _ACEOF 23085 cat confdefs.h >>conftest.$ac_ext 23086 cat >>conftest.$ac_ext <<_ACEOF 23087 /* end confdefs.h. */ 23088 extern void xyzzy (); 23089 #pragma weak xyzzy 23090 int 23091 main () 23092 { 23093 xyzzy(); 23094 ; 23095 return 0; 23096 } 23097 _ACEOF 23098 rm -f conftest.$ac_objext conftest$ac_exeext 23099 if { (ac_try="$ac_link" 23100 case "(($ac_try" in 23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23102 *) ac_try_echo=$ac_try;; 23103 esac 23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23105 (eval "$ac_link") 2>conftest.er1 23106 ac_status=$? 23107 grep -v '^ *+' conftest.er1 >conftest.err 23108 rm -f conftest.er1 23109 cat conftest.err >&5 23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23111 (exit $ac_status); } && { 23112 test -z "$ac_c_werror_flag" || 23113 test ! -s conftest.err 23114 } && test -s conftest$ac_exeext && 23115 $as_test_x conftest$ac_exeext; then 23116 gl_have_weak=yes 23117 else 23118 echo "$as_me: failed program was:" >&5 23119 sed 's/^/| /' conftest.$ac_ext >&5 23120 23121 23122 fi 23123 23124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23125 conftest$ac_exeext conftest.$ac_ext 23126 { echo "$as_me:$LINENO: result: $gl_have_weak" >&5 23127 echo "${ECHO_T}$gl_have_weak" >&6; } 23128 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 23129 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 23130 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY. 23131 if test "${ac_cv_header_pthread_h+set}" = set; then 23132 { echo "$as_me:$LINENO: checking for pthread.h" >&5 23133 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } 23134 if test "${ac_cv_header_pthread_h+set}" = set; then 23135 echo $ECHO_N "(cached) $ECHO_C" >&6 23136 fi 23137 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 23138 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } 23139 else 23140 # Is the header compilable? 23141 { echo "$as_me:$LINENO: checking pthread.h usability" >&5 23142 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } 23143 cat >conftest.$ac_ext <<_ACEOF 23144 /* confdefs.h. */ 23145 _ACEOF 23146 cat confdefs.h >>conftest.$ac_ext 23147 cat >>conftest.$ac_ext <<_ACEOF 23148 /* end confdefs.h. */ 23149 $ac_includes_default 23150 #include <pthread.h> 23151 _ACEOF 23152 rm -f conftest.$ac_objext 23153 if { (ac_try="$ac_compile" 23154 case "(($ac_try" in 23155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23156 *) ac_try_echo=$ac_try;; 23157 esac 23158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23159 (eval "$ac_compile") 2>conftest.er1 23160 ac_status=$? 23161 grep -v '^ *+' conftest.er1 >conftest.err 23162 rm -f conftest.er1 23163 cat conftest.err >&5 23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23165 (exit $ac_status); } && { 23166 test -z "$ac_c_werror_flag" || 23167 test ! -s conftest.err 23168 } && test -s conftest.$ac_objext; then 23169 ac_header_compiler=yes 23170 else 23171 echo "$as_me: failed program was:" >&5 23172 sed 's/^/| /' conftest.$ac_ext >&5 23173 23174 ac_header_compiler=no 23175 fi 23176 23177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23179 echo "${ECHO_T}$ac_header_compiler" >&6; } 23180 23181 # Is the header present? 23182 { echo "$as_me:$LINENO: checking pthread.h presence" >&5 23183 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } 23184 cat >conftest.$ac_ext <<_ACEOF 23185 /* confdefs.h. */ 23186 _ACEOF 23187 cat confdefs.h >>conftest.$ac_ext 23188 cat >>conftest.$ac_ext <<_ACEOF 23189 /* end confdefs.h. */ 23190 #include <pthread.h> 23191 _ACEOF 23192 if { (ac_try="$ac_cpp conftest.$ac_ext" 23193 case "(($ac_try" in 23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23195 *) ac_try_echo=$ac_try;; 23196 esac 23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23199 ac_status=$? 23200 grep -v '^ *+' conftest.er1 >conftest.err 23201 rm -f conftest.er1 23202 cat conftest.err >&5 23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23204 (exit $ac_status); } >/dev/null && { 23205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23206 test ! -s conftest.err 23207 }; then 23208 ac_header_preproc=yes 23209 else 23210 echo "$as_me: failed program was:" >&5 23211 sed 's/^/| /' conftest.$ac_ext >&5 23212 23213 ac_header_preproc=no 23214 fi 23215 23216 rm -f conftest.err conftest.$ac_ext 23217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23218 echo "${ECHO_T}$ac_header_preproc" >&6; } 23219 23220 # So? What about this header? 23221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23222 yes:no: ) 23223 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 23224 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 23225 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 23226 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} 23227 ac_header_preproc=yes 23228 ;; 23229 no:yes:* ) 23230 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 23231 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} 23232 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 23233 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} 23234 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 23235 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} 23236 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 23237 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} 23238 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 23239 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} 23240 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 23241 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} 23242 23243 ;; 23244 esac 23245 { echo "$as_me:$LINENO: checking for pthread.h" >&5 23246 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } 23247 if test "${ac_cv_header_pthread_h+set}" = set; then 23248 echo $ECHO_N "(cached) $ECHO_C" >&6 23249 else 23250 ac_cv_header_pthread_h=$ac_header_preproc 23251 fi 23252 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 23253 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } 23254 23255 fi 23256 if test $ac_cv_header_pthread_h = yes; then 23257 gl_have_pthread_h=yes 23258 else 23259 gl_have_pthread_h=no 23260 fi 23261 23262 23263 if test "$gl_have_pthread_h" = yes; then 23264 # Other possible tests: 23265 # -lpthreads (FSU threads, PCthreads) 23266 # -lgthreads 23267 gl_have_pthread= 23268 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 23269 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 23270 # the second one only in libpthread, and lock.c needs it. 23271 cat >conftest.$ac_ext <<_ACEOF 23272 /* confdefs.h. */ 23273 _ACEOF 23274 cat confdefs.h >>conftest.$ac_ext 23275 cat >>conftest.$ac_ext <<_ACEOF 23276 /* end confdefs.h. */ 23277 #include <pthread.h> 23278 int 23279 main () 23280 { 23281 pthread_mutex_lock((pthread_mutex_t*)0); 23282 pthread_mutexattr_init((pthread_mutexattr_t*)0); 23283 ; 23284 return 0; 23285 } 23286 _ACEOF 23287 rm -f conftest.$ac_objext conftest$ac_exeext 23288 if { (ac_try="$ac_link" 23289 case "(($ac_try" in 23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23291 *) ac_try_echo=$ac_try;; 23292 esac 23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23294 (eval "$ac_link") 2>conftest.er1 23295 ac_status=$? 23296 grep -v '^ *+' conftest.er1 >conftest.err 23297 rm -f conftest.er1 23298 cat conftest.err >&5 23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23300 (exit $ac_status); } && { 23301 test -z "$ac_c_werror_flag" || 23302 test ! -s conftest.err 23303 } && test -s conftest$ac_exeext && 23304 $as_test_x conftest$ac_exeext; then 23305 gl_have_pthread=yes 23306 else 23307 echo "$as_me: failed program was:" >&5 23308 sed 's/^/| /' conftest.$ac_ext >&5 23309 23310 23311 fi 23312 23313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23314 conftest$ac_exeext conftest.$ac_ext 23315 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 23316 # since it is defined as a macro on OSF/1.) 23317 if test -n "$gl_have_pthread"; then 23318 # The program links fine without libpthread. But it may actually 23319 # need to link with libpthread in order to create multiple threads. 23320 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 23321 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } 23322 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then 23323 echo $ECHO_N "(cached) $ECHO_C" >&6 23324 else 23325 ac_check_lib_save_LIBS=$LIBS 23326 LIBS="-lpthread $LIBS" 23327 cat >conftest.$ac_ext <<_ACEOF 23328 /* confdefs.h. */ 23329 _ACEOF 23330 cat confdefs.h >>conftest.$ac_ext 23331 cat >>conftest.$ac_ext <<_ACEOF 23332 /* end confdefs.h. */ 23333 23334 /* Override any GCC internal prototype to avoid an error. 23335 Use char because int might match the return type of a GCC 23336 builtin and then its argument prototype would still apply. */ 23337 #ifdef __cplusplus 23338 extern "C" 23339 #endif 23340 char pthread_kill (); 23341 int 23342 main () 23343 { 23344 return pthread_kill (); 23345 ; 23346 return 0; 23347 } 23348 _ACEOF 23349 rm -f conftest.$ac_objext conftest$ac_exeext 23350 if { (ac_try="$ac_link" 23351 case "(($ac_try" in 23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23353 *) ac_try_echo=$ac_try;; 23354 esac 23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23356 (eval "$ac_link") 2>conftest.er1 23357 ac_status=$? 23358 grep -v '^ *+' conftest.er1 >conftest.err 23359 rm -f conftest.er1 23360 cat conftest.err >&5 23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23362 (exit $ac_status); } && { 23363 test -z "$ac_c_werror_flag" || 23364 test ! -s conftest.err 23365 } && test -s conftest$ac_exeext && 23366 $as_test_x conftest$ac_exeext; then 23367 ac_cv_lib_pthread_pthread_kill=yes 23368 else 23369 echo "$as_me: failed program was:" >&5 23370 sed 's/^/| /' conftest.$ac_ext >&5 23371 23372 ac_cv_lib_pthread_pthread_kill=no 23373 fi 23374 23375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23376 conftest$ac_exeext conftest.$ac_ext 23377 LIBS=$ac_check_lib_save_LIBS 23378 fi 23379 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 23380 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } 23381 if test $ac_cv_lib_pthread_pthread_kill = yes; then 23382 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 23383 # On Solaris and HP-UX, most pthread functions exist also in libc. 23384 # Therefore pthread_in_use() needs to actually try to create a 23385 # thread: pthread_create from libc will fail, whereas 23386 # pthread_create will actually create a thread. 23387 case "$host_os" in 23388 solaris* | hpux*) 23389 23390 cat >>confdefs.h <<\_ACEOF 23391 #define PTHREAD_IN_USE_DETECTION_HARD 1 23392 _ACEOF 23393 23394 esac 23395 23396 fi 23397 23398 else 23399 # Some library is needed. Try libpthread and libc_r. 23400 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 23401 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } 23402 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then 23403 echo $ECHO_N "(cached) $ECHO_C" >&6 23404 else 23405 ac_check_lib_save_LIBS=$LIBS 23406 LIBS="-lpthread $LIBS" 23407 cat >conftest.$ac_ext <<_ACEOF 23408 /* confdefs.h. */ 23409 _ACEOF 23410 cat confdefs.h >>conftest.$ac_ext 23411 cat >>conftest.$ac_ext <<_ACEOF 23412 /* end confdefs.h. */ 23413 23414 /* Override any GCC internal prototype to avoid an error. 23415 Use char because int might match the return type of a GCC 23416 builtin and then its argument prototype would still apply. */ 23417 #ifdef __cplusplus 23418 extern "C" 23419 #endif 23420 char pthread_kill (); 23421 int 23422 main () 23423 { 23424 return pthread_kill (); 23425 ; 23426 return 0; 23427 } 23428 _ACEOF 23429 rm -f conftest.$ac_objext conftest$ac_exeext 23430 if { (ac_try="$ac_link" 23431 case "(($ac_try" in 23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23433 *) ac_try_echo=$ac_try;; 23434 esac 23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23436 (eval "$ac_link") 2>conftest.er1 23437 ac_status=$? 23438 grep -v '^ *+' conftest.er1 >conftest.err 23439 rm -f conftest.er1 23440 cat conftest.err >&5 23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23442 (exit $ac_status); } && { 23443 test -z "$ac_c_werror_flag" || 23444 test ! -s conftest.err 23445 } && test -s conftest$ac_exeext && 23446 $as_test_x conftest$ac_exeext; then 23447 ac_cv_lib_pthread_pthread_kill=yes 23448 else 23449 echo "$as_me: failed program was:" >&5 23450 sed 's/^/| /' conftest.$ac_ext >&5 23451 23452 ac_cv_lib_pthread_pthread_kill=no 23453 fi 23454 23455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23456 conftest$ac_exeext conftest.$ac_ext 23457 LIBS=$ac_check_lib_save_LIBS 23458 fi 23459 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 23460 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } 23461 if test $ac_cv_lib_pthread_pthread_kill = yes; then 23462 gl_have_pthread=yes 23463 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 23464 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 23465 fi 23466 23467 if test -z "$gl_have_pthread"; then 23468 # For FreeBSD 4. 23469 { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5 23470 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; } 23471 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then 23472 echo $ECHO_N "(cached) $ECHO_C" >&6 23473 else 23474 ac_check_lib_save_LIBS=$LIBS 23475 LIBS="-lc_r $LIBS" 23476 cat >conftest.$ac_ext <<_ACEOF 23477 /* confdefs.h. */ 23478 _ACEOF 23479 cat confdefs.h >>conftest.$ac_ext 23480 cat >>conftest.$ac_ext <<_ACEOF 23481 /* end confdefs.h. */ 23482 23483 /* Override any GCC internal prototype to avoid an error. 23484 Use char because int might match the return type of a GCC 23485 builtin and then its argument prototype would still apply. */ 23486 #ifdef __cplusplus 23487 extern "C" 23488 #endif 23489 char pthread_kill (); 23490 int 23491 main () 23492 { 23493 return pthread_kill (); 23494 ; 23495 return 0; 23496 } 23497 _ACEOF 23498 rm -f conftest.$ac_objext conftest$ac_exeext 23499 if { (ac_try="$ac_link" 23500 case "(($ac_try" in 23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23502 *) ac_try_echo=$ac_try;; 23503 esac 23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23505 (eval "$ac_link") 2>conftest.er1 23506 ac_status=$? 23507 grep -v '^ *+' conftest.er1 >conftest.err 23508 rm -f conftest.er1 23509 cat conftest.err >&5 23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23511 (exit $ac_status); } && { 23512 test -z "$ac_c_werror_flag" || 23513 test ! -s conftest.err 23514 } && test -s conftest$ac_exeext && 23515 $as_test_x conftest$ac_exeext; then 23516 ac_cv_lib_c_r_pthread_kill=yes 23517 else 23518 echo "$as_me: failed program was:" >&5 23519 sed 's/^/| /' conftest.$ac_ext >&5 23520 23521 ac_cv_lib_c_r_pthread_kill=no 23522 fi 23523 23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23525 conftest$ac_exeext conftest.$ac_ext 23526 LIBS=$ac_check_lib_save_LIBS 23527 fi 23528 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5 23529 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; } 23530 if test $ac_cv_lib_c_r_pthread_kill = yes; then 23531 gl_have_pthread=yes 23532 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 23533 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 23534 fi 23535 23536 fi 23537 fi 23538 if test -n "$gl_have_pthread"; then 23539 gl_threads_api=posix 23540 23541 cat >>confdefs.h <<\_ACEOF 23542 #define USE_POSIX_THREADS 1 23543 _ACEOF 23544 23545 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 23546 if test $gl_have_weak = yes; then 23547 23548 cat >>confdefs.h <<\_ACEOF 23549 #define USE_POSIX_THREADS_WEAK 1 23550 _ACEOF 23551 23552 LIBTHREAD= 23553 LTLIBTHREAD= 23554 fi 23555 fi 23556 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the 23557 # pthread_rwlock_* functions. 23558 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 23559 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } 23560 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then 23561 echo $ECHO_N "(cached) $ECHO_C" >&6 23562 else 23563 cat >conftest.$ac_ext <<_ACEOF 23564 /* confdefs.h. */ 23565 _ACEOF 23566 cat confdefs.h >>conftest.$ac_ext 23567 cat >>conftest.$ac_ext <<_ACEOF 23568 /* end confdefs.h. */ 23569 #include <pthread.h> 23570 23571 typedef pthread_rwlock_t ac__type_new_; 23572 int 23573 main () 23574 { 23575 if ((ac__type_new_ *) 0) 23576 return 0; 23577 if (sizeof (ac__type_new_)) 23578 return 0; 23579 ; 23580 return 0; 23581 } 23582 _ACEOF 23583 rm -f conftest.$ac_objext 23584 if { (ac_try="$ac_compile" 23585 case "(($ac_try" in 23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23587 *) ac_try_echo=$ac_try;; 23588 esac 23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23590 (eval "$ac_compile") 2>conftest.er1 23591 ac_status=$? 23592 grep -v '^ *+' conftest.er1 >conftest.err 23593 rm -f conftest.er1 23594 cat conftest.err >&5 23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23596 (exit $ac_status); } && { 23597 test -z "$ac_c_werror_flag" || 23598 test ! -s conftest.err 23599 } && test -s conftest.$ac_objext; then 23600 ac_cv_type_pthread_rwlock_t=yes 23601 else 23602 echo "$as_me: failed program was:" >&5 23603 sed 's/^/| /' conftest.$ac_ext >&5 23604 23605 ac_cv_type_pthread_rwlock_t=no 23606 fi 23607 23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23609 fi 23610 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 23611 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } 23612 if test $ac_cv_type_pthread_rwlock_t = yes; then 23613 23614 cat >>confdefs.h <<\_ACEOF 23615 #define HAVE_PTHREAD_RWLOCK 1 23616 _ACEOF 23617 23618 fi 23619 23620 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 23621 cat >conftest.$ac_ext <<_ACEOF 23622 /* confdefs.h. */ 23623 _ACEOF 23624 cat confdefs.h >>conftest.$ac_ext 23625 cat >>conftest.$ac_ext <<_ACEOF 23626 /* end confdefs.h. */ 23627 #include <pthread.h> 23628 int 23629 main () 23630 { 23631 #if __FreeBSD__ == 4 23632 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 23633 #else 23634 int x = (int)PTHREAD_MUTEX_RECURSIVE; 23635 return !x; 23636 #endif 23637 ; 23638 return 0; 23639 } 23640 _ACEOF 23641 rm -f conftest.$ac_objext 23642 if { (ac_try="$ac_compile" 23643 case "(($ac_try" in 23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23645 *) ac_try_echo=$ac_try;; 23646 esac 23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23648 (eval "$ac_compile") 2>conftest.er1 23649 ac_status=$? 23650 grep -v '^ *+' conftest.er1 >conftest.err 23651 rm -f conftest.er1 23652 cat conftest.err >&5 23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23654 (exit $ac_status); } && { 23655 test -z "$ac_c_werror_flag" || 23656 test ! -s conftest.err 23657 } && test -s conftest.$ac_objext; then 23658 23659 cat >>confdefs.h <<\_ACEOF 23660 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1 23661 _ACEOF 23662 23663 else 23664 echo "$as_me: failed program was:" >&5 23665 sed 's/^/| /' conftest.$ac_ext >&5 23666 23667 23668 fi 23669 23670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23671 fi 23672 fi 23673 fi 23674 if test -z "$gl_have_pthread"; then 23675 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 23676 gl_have_solaristhread= 23677 gl_save_LIBS="$LIBS" 23678 LIBS="$LIBS -lthread" 23679 cat >conftest.$ac_ext <<_ACEOF 23680 /* confdefs.h. */ 23681 _ACEOF 23682 cat confdefs.h >>conftest.$ac_ext 23683 cat >>conftest.$ac_ext <<_ACEOF 23684 /* end confdefs.h. */ 23685 #include <thread.h> 23686 #include <synch.h> 23687 int 23688 main () 23689 { 23690 thr_self(); 23691 ; 23692 return 0; 23693 } 23694 _ACEOF 23695 rm -f conftest.$ac_objext conftest$ac_exeext 23696 if { (ac_try="$ac_link" 23697 case "(($ac_try" in 23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23699 *) ac_try_echo=$ac_try;; 23700 esac 23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23702 (eval "$ac_link") 2>conftest.er1 23703 ac_status=$? 23704 grep -v '^ *+' conftest.er1 >conftest.err 23705 rm -f conftest.er1 23706 cat conftest.err >&5 23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23708 (exit $ac_status); } && { 23709 test -z "$ac_c_werror_flag" || 23710 test ! -s conftest.err 23711 } && test -s conftest$ac_exeext && 23712 $as_test_x conftest$ac_exeext; then 23713 gl_have_solaristhread=yes 23714 else 23715 echo "$as_me: failed program was:" >&5 23716 sed 's/^/| /' conftest.$ac_ext >&5 23717 23718 23719 fi 23720 23721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23722 conftest$ac_exeext conftest.$ac_ext 23723 LIBS="$gl_save_LIBS" 23724 if test -n "$gl_have_solaristhread"; then 23725 gl_threads_api=solaris 23726 LIBTHREAD=-lthread 23727 LTLIBTHREAD=-lthread 23728 LIBMULTITHREAD="$LIBTHREAD" 23729 LTLIBMULTITHREAD="$LTLIBTHREAD" 23730 23731 cat >>confdefs.h <<\_ACEOF 23732 #define USE_SOLARIS_THREADS 1 23733 _ACEOF 23734 23735 if test $gl_have_weak = yes; then 23736 23737 cat >>confdefs.h <<\_ACEOF 23738 #define USE_SOLARIS_THREADS_WEAK 1 23739 _ACEOF 23740 23741 LIBTHREAD= 23742 LTLIBTHREAD= 23743 fi 23744 fi 23745 fi 23746 fi 23747 if test "$gl_use_threads" = pth; then 23748 gl_save_CPPFLAGS="$CPPFLAGS" 23749 23750 23751 23752 23753 23754 { echo "$as_me:$LINENO: checking how to link with libpth" >&5 23755 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; } 23756 if test "${ac_cv_libpth_libs+set}" = set; then 23757 echo $ECHO_N "(cached) $ECHO_C" >&6 23758 else 23759 23760 23761 23762 23763 use_additional=yes 23764 23765 acl_save_prefix="$prefix" 23766 prefix="$acl_final_prefix" 23767 acl_save_exec_prefix="$exec_prefix" 23768 exec_prefix="$acl_final_exec_prefix" 23769 23770 eval additional_includedir=\"$includedir\" 23771 eval additional_libdir=\"$libdir\" 23772 23773 exec_prefix="$acl_save_exec_prefix" 23774 prefix="$acl_save_prefix" 23775 23776 23777 # Check whether --with-libpth-prefix was given. 23778 if test "${with_libpth_prefix+set}" = set; then 23779 withval=$with_libpth_prefix; 23780 if test "X$withval" = "Xno"; then 23781 use_additional=no 23782 else 23783 if test "X$withval" = "X"; then 23784 23785 acl_save_prefix="$prefix" 23786 prefix="$acl_final_prefix" 23787 acl_save_exec_prefix="$exec_prefix" 23788 exec_prefix="$acl_final_exec_prefix" 23789 23790 eval additional_includedir=\"$includedir\" 23791 eval additional_libdir=\"$libdir\" 23792 23793 exec_prefix="$acl_save_exec_prefix" 23794 prefix="$acl_save_prefix" 23795 23796 else 23797 additional_includedir="$withval/include" 23798 additional_libdir="$withval/$acl_libdirstem" 23799 fi 23800 fi 23801 23802 fi 23803 23804 LIBPTH= 23805 LTLIBPTH= 23806 INCPTH= 23807 rpathdirs= 23808 ltrpathdirs= 23809 names_already_handled= 23810 names_next_round='pth ' 23811 while test -n "$names_next_round"; do 23812 names_this_round="$names_next_round" 23813 names_next_round= 23814 for name in $names_this_round; do 23815 already_handled= 23816 for n in $names_already_handled; do 23817 if test "$n" = "$name"; then 23818 already_handled=yes 23819 break 23820 fi 23821 done 23822 if test -z "$already_handled"; then 23823 names_already_handled="$names_already_handled $name" 23824 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 23825 eval value=\"\$HAVE_LIB$uppername\" 23826 if test -n "$value"; then 23827 if test "$value" = yes; then 23828 eval value=\"\$LIB$uppername\" 23829 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 23830 eval value=\"\$LTLIB$uppername\" 23831 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 23832 else 23833 : 23834 fi 23835 else 23836 found_dir= 23837 found_la= 23838 found_so= 23839 found_a= 23840 if test $use_additional = yes; then 23841 if test -n "$shlibext" \ 23842 && { test -f "$additional_libdir/lib$name.$shlibext" \ 23843 || { test "$shlibext" = dll \ 23844 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 23845 found_dir="$additional_libdir" 23846 if test -f "$additional_libdir/lib$name.$shlibext"; then 23847 found_so="$additional_libdir/lib$name.$shlibext" 23848 else 23849 found_so="$additional_libdir/lib$name.dll.a" 23850 fi 23851 if test -f "$additional_libdir/lib$name.la"; then 23852 found_la="$additional_libdir/lib$name.la" 23853 fi 23854 else 23855 if test -f "$additional_libdir/lib$name.$libext"; then 23856 found_dir="$additional_libdir" 23857 found_a="$additional_libdir/lib$name.$libext" 23858 if test -f "$additional_libdir/lib$name.la"; then 23859 found_la="$additional_libdir/lib$name.la" 23860 fi 23861 fi 23862 fi 23863 fi 23864 if test "X$found_dir" = "X"; then 23865 for x in $LDFLAGS $LTLIBPTH; do 23866 23867 acl_save_prefix="$prefix" 23868 prefix="$acl_final_prefix" 23869 acl_save_exec_prefix="$exec_prefix" 23870 exec_prefix="$acl_final_exec_prefix" 23871 eval x=\"$x\" 23872 exec_prefix="$acl_save_exec_prefix" 23873 prefix="$acl_save_prefix" 23874 23875 case "$x" in 23876 -L*) 23877 dir=`echo "X$x" | sed -e 's/^X-L//'` 23878 if test -n "$shlibext" \ 23879 && { test -f "$dir/lib$name.$shlibext" \ 23880 || { test "$shlibext" = dll \ 23881 && test -f "$dir/lib$name.dll.a"; }; }; then 23882 found_dir="$dir" 23883 if test -f "$dir/lib$name.$shlibext"; then 23884 found_so="$dir/lib$name.$shlibext" 23885 else 23886 found_so="$dir/lib$name.dll.a" 23887 fi 23888 if test -f "$dir/lib$name.la"; then 23889 found_la="$dir/lib$name.la" 23890 fi 23891 else 23892 if test -f "$dir/lib$name.$libext"; then 23893 found_dir="$dir" 23894 found_a="$dir/lib$name.$libext" 23895 if test -f "$dir/lib$name.la"; then 23896 found_la="$dir/lib$name.la" 23897 fi 23898 fi 23899 fi 23900 ;; 23901 esac 23902 if test "X$found_dir" != "X"; then 23903 break 23904 fi 23905 done 23906 fi 23907 if test "X$found_dir" != "X"; then 23908 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 23909 if test "X$found_so" != "X"; then 23910 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 23911 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 23912 else 23913 haveit= 23914 for x in $ltrpathdirs; do 23915 if test "X$x" = "X$found_dir"; then 23916 haveit=yes 23917 break 23918 fi 23919 done 23920 if test -z "$haveit"; then 23921 ltrpathdirs="$ltrpathdirs $found_dir" 23922 fi 23923 if test "$hardcode_direct" = yes; then 23924 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 23925 else 23926 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 23927 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 23928 haveit= 23929 for x in $rpathdirs; do 23930 if test "X$x" = "X$found_dir"; then 23931 haveit=yes 23932 break 23933 fi 23934 done 23935 if test -z "$haveit"; then 23936 rpathdirs="$rpathdirs $found_dir" 23937 fi 23938 else 23939 haveit= 23940 for x in $LDFLAGS $LIBPTH; do 23941 23942 acl_save_prefix="$prefix" 23943 prefix="$acl_final_prefix" 23944 acl_save_exec_prefix="$exec_prefix" 23945 exec_prefix="$acl_final_exec_prefix" 23946 eval x=\"$x\" 23947 exec_prefix="$acl_save_exec_prefix" 23948 prefix="$acl_save_prefix" 23949 23950 if test "X$x" = "X-L$found_dir"; then 23951 haveit=yes 23952 break 23953 fi 23954 done 23955 if test -z "$haveit"; then 23956 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 23957 fi 23958 if test "$hardcode_minus_L" != no; then 23959 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 23960 else 23961 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 23962 fi 23963 fi 23964 fi 23965 fi 23966 else 23967 if test "X$found_a" != "X"; then 23968 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 23969 else 23970 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 23971 fi 23972 fi 23973 additional_includedir= 23974 case "$found_dir" in 23975 */$acl_libdirstem | */$acl_libdirstem/) 23976 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 23977 additional_includedir="$basedir/include" 23978 ;; 23979 esac 23980 if test "X$additional_includedir" != "X"; then 23981 if test "X$additional_includedir" != "X/usr/include"; then 23982 haveit= 23983 if test "X$additional_includedir" = "X/usr/local/include"; then 23984 if test -n "$GCC"; then 23985 case $host_os in 23986 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 23987 esac 23988 fi 23989 fi 23990 if test -z "$haveit"; then 23991 for x in $CPPFLAGS $INCPTH; do 23992 23993 acl_save_prefix="$prefix" 23994 prefix="$acl_final_prefix" 23995 acl_save_exec_prefix="$exec_prefix" 23996 exec_prefix="$acl_final_exec_prefix" 23997 eval x=\"$x\" 23998 exec_prefix="$acl_save_exec_prefix" 23999 prefix="$acl_save_prefix" 24000 24001 if test "X$x" = "X-I$additional_includedir"; then 24002 haveit=yes 24003 break 24004 fi 24005 done 24006 if test -z "$haveit"; then 24007 if test -d "$additional_includedir"; then 24008 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 24009 fi 24010 fi 24011 fi 24012 fi 24013 fi 24014 if test -n "$found_la"; then 24015 save_libdir="$libdir" 24016 case "$found_la" in 24017 */* | *\\*) . "$found_la" ;; 24018 *) . "./$found_la" ;; 24019 esac 24020 libdir="$save_libdir" 24021 for dep in $dependency_libs; do 24022 case "$dep" in 24023 -L*) 24024 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 24025 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 24026 haveit= 24027 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 24028 if test -n "$GCC"; then 24029 case $host_os in 24030 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24031 esac 24032 fi 24033 fi 24034 if test -z "$haveit"; then 24035 haveit= 24036 for x in $LDFLAGS $LIBPTH; do 24037 24038 acl_save_prefix="$prefix" 24039 prefix="$acl_final_prefix" 24040 acl_save_exec_prefix="$exec_prefix" 24041 exec_prefix="$acl_final_exec_prefix" 24042 eval x=\"$x\" 24043 exec_prefix="$acl_save_exec_prefix" 24044 prefix="$acl_save_prefix" 24045 24046 if test "X$x" = "X-L$additional_libdir"; then 24047 haveit=yes 24048 break 24049 fi 24050 done 24051 if test -z "$haveit"; then 24052 if test -d "$additional_libdir"; then 24053 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 24054 fi 24055 fi 24056 haveit= 24057 for x in $LDFLAGS $LTLIBPTH; do 24058 24059 acl_save_prefix="$prefix" 24060 prefix="$acl_final_prefix" 24061 acl_save_exec_prefix="$exec_prefix" 24062 exec_prefix="$acl_final_exec_prefix" 24063 eval x=\"$x\" 24064 exec_prefix="$acl_save_exec_prefix" 24065 prefix="$acl_save_prefix" 24066 24067 if test "X$x" = "X-L$additional_libdir"; then 24068 haveit=yes 24069 break 24070 fi 24071 done 24072 if test -z "$haveit"; then 24073 if test -d "$additional_libdir"; then 24074 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 24075 fi 24076 fi 24077 fi 24078 fi 24079 ;; 24080 -R*) 24081 dir=`echo "X$dep" | sed -e 's/^X-R//'` 24082 if test "$enable_rpath" != no; then 24083 haveit= 24084 for x in $rpathdirs; do 24085 if test "X$x" = "X$dir"; then 24086 haveit=yes 24087 break 24088 fi 24089 done 24090 if test -z "$haveit"; then 24091 rpathdirs="$rpathdirs $dir" 24092 fi 24093 haveit= 24094 for x in $ltrpathdirs; do 24095 if test "X$x" = "X$dir"; then 24096 haveit=yes 24097 break 24098 fi 24099 done 24100 if test -z "$haveit"; then 24101 ltrpathdirs="$ltrpathdirs $dir" 24102 fi 24103 fi 24104 ;; 24105 -l*) 24106 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 24107 ;; 24108 *.la) 24109 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 24110 ;; 24111 *) 24112 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 24113 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 24114 ;; 24115 esac 24116 done 24117 fi 24118 else 24119 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 24120 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 24121 fi 24122 fi 24123 fi 24124 done 24125 done 24126 if test "X$rpathdirs" != "X"; then 24127 if test -n "$hardcode_libdir_separator"; then 24128 alldirs= 24129 for found_dir in $rpathdirs; do 24130 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 24131 done 24132 acl_save_libdir="$libdir" 24133 libdir="$alldirs" 24134 eval flag=\"$hardcode_libdir_flag_spec\" 24135 libdir="$acl_save_libdir" 24136 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 24137 else 24138 for found_dir in $rpathdirs; do 24139 acl_save_libdir="$libdir" 24140 libdir="$found_dir" 24141 eval flag=\"$hardcode_libdir_flag_spec\" 24142 libdir="$acl_save_libdir" 24143 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 24144 done 24145 fi 24146 fi 24147 if test "X$ltrpathdirs" != "X"; then 24148 for found_dir in $ltrpathdirs; do 24149 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 24150 done 24151 fi 24152 24153 ac_cv_libpth_libs="$LIBPTH" 24154 ac_cv_libpth_ltlibs="$LTLIBPTH" 24155 ac_cv_libpth_cppflags="$INCPTH" 24156 24157 fi 24158 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5 24159 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; } 24160 LIBPTH="$ac_cv_libpth_libs" 24161 LTLIBPTH="$ac_cv_libpth_ltlibs" 24162 INCPTH="$ac_cv_libpth_cppflags" 24163 24164 for element in $INCPTH; do 24165 haveit= 24166 for x in $CPPFLAGS; do 24167 24168 acl_save_prefix="$prefix" 24169 prefix="$acl_final_prefix" 24170 acl_save_exec_prefix="$exec_prefix" 24171 exec_prefix="$acl_final_exec_prefix" 24172 eval x=\"$x\" 24173 exec_prefix="$acl_save_exec_prefix" 24174 prefix="$acl_save_prefix" 24175 24176 if test "X$x" = "X$element"; then 24177 haveit=yes 24178 break 24179 fi 24180 done 24181 if test -z "$haveit"; then 24182 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 24183 fi 24184 done 24185 24186 24187 24188 HAVE_LIBPTH=yes 24189 24190 24191 24192 gl_have_pth= 24193 gl_save_LIBS="$LIBS" 24194 LIBS="$LIBS -lpth" 24195 cat >conftest.$ac_ext <<_ACEOF 24196 /* confdefs.h. */ 24197 _ACEOF 24198 cat confdefs.h >>conftest.$ac_ext 24199 cat >>conftest.$ac_ext <<_ACEOF 24200 /* end confdefs.h. */ 24201 #include <pth.h> 24202 int 24203 main () 24204 { 24205 pth_self(); 24206 ; 24207 return 0; 24208 } 24209 _ACEOF 24210 rm -f conftest.$ac_objext conftest$ac_exeext 24211 if { (ac_try="$ac_link" 24212 case "(($ac_try" in 24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24214 *) ac_try_echo=$ac_try;; 24215 esac 24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24217 (eval "$ac_link") 2>conftest.er1 24218 ac_status=$? 24219 grep -v '^ *+' conftest.er1 >conftest.err 24220 rm -f conftest.er1 24221 cat conftest.err >&5 24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24223 (exit $ac_status); } && { 24224 test -z "$ac_c_werror_flag" || 24225 test ! -s conftest.err 24226 } && test -s conftest$ac_exeext && 24227 $as_test_x conftest$ac_exeext; then 24228 gl_have_pth=yes 24229 else 24230 echo "$as_me: failed program was:" >&5 24231 sed 's/^/| /' conftest.$ac_ext >&5 24232 24233 24234 fi 24235 24236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24237 conftest$ac_exeext conftest.$ac_ext 24238 LIBS="$gl_save_LIBS" 24239 if test -n "$gl_have_pth"; then 24240 gl_threads_api=pth 24241 LIBTHREAD="$LIBPTH" 24242 LTLIBTHREAD="$LTLIBPTH" 24243 LIBMULTITHREAD="$LIBTHREAD" 24244 LTLIBMULTITHREAD="$LTLIBTHREAD" 24245 24246 cat >>confdefs.h <<\_ACEOF 24247 #define USE_PTH_THREADS 1 24248 _ACEOF 24249 24250 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 24251 if test $gl_have_weak = yes; then 24252 24253 cat >>confdefs.h <<\_ACEOF 24254 #define USE_PTH_THREADS_WEAK 1 24255 _ACEOF 24256 24257 LIBTHREAD= 24258 LTLIBTHREAD= 24259 fi 24260 fi 24261 else 24262 CPPFLAGS="$gl_save_CPPFLAGS" 24263 fi 24264 fi 24265 if test -z "$gl_have_pthread"; then 24266 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then 24267 if { case "$host_os" in 24268 mingw*) true;; 24269 *) false;; 24270 esac 24271 }; then 24272 gl_threads_api=win32 24273 24274 cat >>confdefs.h <<\_ACEOF 24275 #define USE_WIN32_THREADS 1 24276 _ACEOF 24277 24278 fi 24279 fi 24280 fi 24281 fi 24282 { echo "$as_me:$LINENO: checking for multithread API to use" >&5 24283 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; } 24284 { echo "$as_me:$LINENO: result: $gl_threads_api" >&5 24285 echo "${ECHO_T}$gl_threads_api" >&6; } 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 use_additional=yes 24306 24307 acl_save_prefix="$prefix" 24308 prefix="$acl_final_prefix" 24309 acl_save_exec_prefix="$exec_prefix" 24310 exec_prefix="$acl_final_exec_prefix" 24311 24312 eval additional_includedir=\"$includedir\" 24313 eval additional_libdir=\"$libdir\" 24314 24315 exec_prefix="$acl_save_exec_prefix" 24316 prefix="$acl_save_prefix" 24317 24318 24319 # Check whether --with-libiconv-prefix was given. 24320 if test "${with_libiconv_prefix+set}" = set; then 24321 withval=$with_libiconv_prefix; 24322 if test "X$withval" = "Xno"; then 24323 use_additional=no 24324 else 24325 if test "X$withval" = "X"; then 24326 24327 acl_save_prefix="$prefix" 24328 prefix="$acl_final_prefix" 24329 acl_save_exec_prefix="$exec_prefix" 24330 exec_prefix="$acl_final_exec_prefix" 24331 24332 eval additional_includedir=\"$includedir\" 24333 eval additional_libdir=\"$libdir\" 24334 24335 exec_prefix="$acl_save_exec_prefix" 24336 prefix="$acl_save_prefix" 24337 24338 else 24339 additional_includedir="$withval/include" 24340 additional_libdir="$withval/$acl_libdirstem" 24341 fi 24342 fi 24343 24344 fi 24345 24346 LIBICONV= 24347 LTLIBICONV= 24348 INCICONV= 24349 rpathdirs= 24350 ltrpathdirs= 24351 names_already_handled= 24352 names_next_round='iconv ' 24353 while test -n "$names_next_round"; do 24354 names_this_round="$names_next_round" 24355 names_next_round= 24356 for name in $names_this_round; do 24357 already_handled= 24358 for n in $names_already_handled; do 24359 if test "$n" = "$name"; then 24360 already_handled=yes 24361 break 24362 fi 24363 done 24364 if test -z "$already_handled"; then 24365 names_already_handled="$names_already_handled $name" 24366 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 24367 eval value=\"\$HAVE_LIB$uppername\" 24368 if test -n "$value"; then 24369 if test "$value" = yes; then 24370 eval value=\"\$LIB$uppername\" 24371 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 24372 eval value=\"\$LTLIB$uppername\" 24373 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 24374 else 24375 : 24376 fi 24377 else 24378 found_dir= 24379 found_la= 24380 found_so= 24381 found_a= 24382 if test $use_additional = yes; then 24383 if test -n "$shlibext" \ 24384 && { test -f "$additional_libdir/lib$name.$shlibext" \ 24385 || { test "$shlibext" = dll \ 24386 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 24387 found_dir="$additional_libdir" 24388 if test -f "$additional_libdir/lib$name.$shlibext"; then 24389 found_so="$additional_libdir/lib$name.$shlibext" 24390 else 24391 found_so="$additional_libdir/lib$name.dll.a" 24392 fi 24393 if test -f "$additional_libdir/lib$name.la"; then 24394 found_la="$additional_libdir/lib$name.la" 24395 fi 24396 else 24397 if test -f "$additional_libdir/lib$name.$libext"; then 24398 found_dir="$additional_libdir" 24399 found_a="$additional_libdir/lib$name.$libext" 24400 if test -f "$additional_libdir/lib$name.la"; then 24401 found_la="$additional_libdir/lib$name.la" 24402 fi 24403 fi 24404 fi 24405 fi 24406 if test "X$found_dir" = "X"; then 24407 for x in $LDFLAGS $LTLIBICONV; do 24408 24409 acl_save_prefix="$prefix" 24410 prefix="$acl_final_prefix" 24411 acl_save_exec_prefix="$exec_prefix" 24412 exec_prefix="$acl_final_exec_prefix" 24413 eval x=\"$x\" 24414 exec_prefix="$acl_save_exec_prefix" 24415 prefix="$acl_save_prefix" 24416 24417 case "$x" in 24418 -L*) 24419 dir=`echo "X$x" | sed -e 's/^X-L//'` 24420 if test -n "$shlibext" \ 24421 && { test -f "$dir/lib$name.$shlibext" \ 24422 || { test "$shlibext" = dll \ 24423 && test -f "$dir/lib$name.dll.a"; }; }; then 24424 found_dir="$dir" 24425 if test -f "$dir/lib$name.$shlibext"; then 24426 found_so="$dir/lib$name.$shlibext" 24427 else 24428 found_so="$dir/lib$name.dll.a" 24429 fi 24430 if test -f "$dir/lib$name.la"; then 24431 found_la="$dir/lib$name.la" 24432 fi 24433 else 24434 if test -f "$dir/lib$name.$libext"; then 24435 found_dir="$dir" 24436 found_a="$dir/lib$name.$libext" 24437 if test -f "$dir/lib$name.la"; then 24438 found_la="$dir/lib$name.la" 24439 fi 24440 fi 24441 fi 24442 ;; 24443 esac 24444 if test "X$found_dir" != "X"; then 24445 break 24446 fi 24447 done 24448 fi 24449 if test "X$found_dir" != "X"; then 24450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 24451 if test "X$found_so" != "X"; then 24452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 24453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 24454 else 24455 haveit= 24456 for x in $ltrpathdirs; do 24457 if test "X$x" = "X$found_dir"; then 24458 haveit=yes 24459 break 24460 fi 24461 done 24462 if test -z "$haveit"; then 24463 ltrpathdirs="$ltrpathdirs $found_dir" 24464 fi 24465 if test "$hardcode_direct" = yes; then 24466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 24467 else 24468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 24469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 24470 haveit= 24471 for x in $rpathdirs; do 24472 if test "X$x" = "X$found_dir"; then 24473 haveit=yes 24474 break 24475 fi 24476 done 24477 if test -z "$haveit"; then 24478 rpathdirs="$rpathdirs $found_dir" 24479 fi 24480 else 24481 haveit= 24482 for x in $LDFLAGS $LIBICONV; do 24483 24484 acl_save_prefix="$prefix" 24485 prefix="$acl_final_prefix" 24486 acl_save_exec_prefix="$exec_prefix" 24487 exec_prefix="$acl_final_exec_prefix" 24488 eval x=\"$x\" 24489 exec_prefix="$acl_save_exec_prefix" 24490 prefix="$acl_save_prefix" 24491 24492 if test "X$x" = "X-L$found_dir"; then 24493 haveit=yes 24494 break 24495 fi 24496 done 24497 if test -z "$haveit"; then 24498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 24499 fi 24500 if test "$hardcode_minus_L" != no; then 24501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 24502 else 24503 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 24504 fi 24505 fi 24506 fi 24507 fi 24508 else 24509 if test "X$found_a" != "X"; then 24510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 24511 else 24512 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 24513 fi 24514 fi 24515 additional_includedir= 24516 case "$found_dir" in 24517 */$acl_libdirstem | */$acl_libdirstem/) 24518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 24519 additional_includedir="$basedir/include" 24520 ;; 24521 esac 24522 if test "X$additional_includedir" != "X"; then 24523 if test "X$additional_includedir" != "X/usr/include"; then 24524 haveit= 24525 if test "X$additional_includedir" = "X/usr/local/include"; then 24526 if test -n "$GCC"; then 24527 case $host_os in 24528 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24529 esac 24530 fi 24531 fi 24532 if test -z "$haveit"; then 24533 for x in $CPPFLAGS $INCICONV; do 24534 24535 acl_save_prefix="$prefix" 24536 prefix="$acl_final_prefix" 24537 acl_save_exec_prefix="$exec_prefix" 24538 exec_prefix="$acl_final_exec_prefix" 24539 eval x=\"$x\" 24540 exec_prefix="$acl_save_exec_prefix" 24541 prefix="$acl_save_prefix" 24542 24543 if test "X$x" = "X-I$additional_includedir"; then 24544 haveit=yes 24545 break 24546 fi 24547 done 24548 if test -z "$haveit"; then 24549 if test -d "$additional_includedir"; then 24550 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 24551 fi 24552 fi 24553 fi 24554 fi 24555 fi 24556 if test -n "$found_la"; then 24557 save_libdir="$libdir" 24558 case "$found_la" in 24559 */* | *\\*) . "$found_la" ;; 24560 *) . "./$found_la" ;; 24561 esac 24562 libdir="$save_libdir" 24563 for dep in $dependency_libs; do 24564 case "$dep" in 24565 -L*) 24566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 24567 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 24568 haveit= 24569 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 24570 if test -n "$GCC"; then 24571 case $host_os in 24572 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24573 esac 24574 fi 24575 fi 24576 if test -z "$haveit"; then 24577 haveit= 24578 for x in $LDFLAGS $LIBICONV; do 24579 24580 acl_save_prefix="$prefix" 24581 prefix="$acl_final_prefix" 24582 acl_save_exec_prefix="$exec_prefix" 24583 exec_prefix="$acl_final_exec_prefix" 24584 eval x=\"$x\" 24585 exec_prefix="$acl_save_exec_prefix" 24586 prefix="$acl_save_prefix" 24587 24588 if test "X$x" = "X-L$additional_libdir"; then 24589 haveit=yes 24590 break 24591 fi 24592 done 24593 if test -z "$haveit"; then 24594 if test -d "$additional_libdir"; then 24595 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 24596 fi 24597 fi 24598 haveit= 24599 for x in $LDFLAGS $LTLIBICONV; do 24600 24601 acl_save_prefix="$prefix" 24602 prefix="$acl_final_prefix" 24603 acl_save_exec_prefix="$exec_prefix" 24604 exec_prefix="$acl_final_exec_prefix" 24605 eval x=\"$x\" 24606 exec_prefix="$acl_save_exec_prefix" 24607 prefix="$acl_save_prefix" 24608 24609 if test "X$x" = "X-L$additional_libdir"; then 24610 haveit=yes 24611 break 24612 fi 24613 done 24614 if test -z "$haveit"; then 24615 if test -d "$additional_libdir"; then 24616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 24617 fi 24618 fi 24619 fi 24620 fi 24621 ;; 24622 -R*) 24623 dir=`echo "X$dep" | sed -e 's/^X-R//'` 24624 if test "$enable_rpath" != no; then 24625 haveit= 24626 for x in $rpathdirs; do 24627 if test "X$x" = "X$dir"; then 24628 haveit=yes 24629 break 24630 fi 24631 done 24632 if test -z "$haveit"; then 24633 rpathdirs="$rpathdirs $dir" 24634 fi 24635 haveit= 24636 for x in $ltrpathdirs; do 24637 if test "X$x" = "X$dir"; then 24638 haveit=yes 24639 break 24640 fi 24641 done 24642 if test -z "$haveit"; then 24643 ltrpathdirs="$ltrpathdirs $dir" 24644 fi 24645 fi 24646 ;; 24647 -l*) 24648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 24649 ;; 24650 *.la) 24651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 24652 ;; 24653 *) 24654 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 24655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 24656 ;; 24657 esac 24658 done 24659 fi 24660 else 24661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 24662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 24663 fi 24664 fi 24665 fi 24666 done 24667 done 24668 if test "X$rpathdirs" != "X"; then 24669 if test -n "$hardcode_libdir_separator"; then 24670 alldirs= 24671 for found_dir in $rpathdirs; do 24672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 24673 done 24674 acl_save_libdir="$libdir" 24675 libdir="$alldirs" 24676 eval flag=\"$hardcode_libdir_flag_spec\" 24677 libdir="$acl_save_libdir" 24678 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 24679 else 24680 for found_dir in $rpathdirs; do 24681 acl_save_libdir="$libdir" 24682 libdir="$found_dir" 24683 eval flag=\"$hardcode_libdir_flag_spec\" 24684 libdir="$acl_save_libdir" 24685 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 24686 done 24687 fi 24688 fi 24689 if test "X$ltrpathdirs" != "X"; then 24690 for found_dir in $ltrpathdirs; do 24691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 24692 done 24693 fi 24694 24695 24696 24697 24698 24699 cat >conftest.$ac_ext <<_ACEOF 24700 /* confdefs.h. */ 24701 _ACEOF 24702 cat confdefs.h >>conftest.$ac_ext 24703 cat >>conftest.$ac_ext <<_ACEOF 24704 /* end confdefs.h. */ 24705 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 24706 int 24707 main () 24708 { 24709 24710 ; 24711 return 0; 24712 } 24713 _ACEOF 24714 rm -f conftest.$ac_objext conftest$ac_exeext 24715 if { (ac_try="$ac_link" 24716 case "(($ac_try" in 24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24718 *) ac_try_echo=$ac_try;; 24719 esac 24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24721 (eval "$ac_link") 2>conftest.er1 24722 ac_status=$? 24723 grep -v '^ *+' conftest.er1 >conftest.err 24724 rm -f conftest.er1 24725 cat conftest.err >&5 24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24727 (exit $ac_status); } && { 24728 test -z "$ac_c_werror_flag" || 24729 test ! -s conftest.err 24730 } && test -s conftest$ac_exeext && 24731 $as_test_x conftest$ac_exeext; then 24732 24733 cat >>confdefs.h <<\_ACEOF 24734 #define HAVE_BUILTIN_EXPECT 1 24735 _ACEOF 24736 24737 else 24738 echo "$as_me: failed program was:" >&5 24739 sed 's/^/| /' conftest.$ac_ext >&5 24740 24741 24742 fi 24743 24744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24745 conftest$ac_exeext conftest.$ac_ext 24746 24747 24748 24749 24750 24751 24752 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 24753 do 24754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24756 { echo "$as_me:$LINENO: checking for $ac_header" >&5 24757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24759 echo $ECHO_N "(cached) $ECHO_C" >&6 24760 fi 24761 ac_res=`eval echo '${'$as_ac_Header'}'` 24762 { echo "$as_me:$LINENO: result: $ac_res" >&5 24763 echo "${ECHO_T}$ac_res" >&6; } 24764 else 24765 # Is the header compilable? 24766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 24767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 24768 cat >conftest.$ac_ext <<_ACEOF 24769 /* confdefs.h. */ 24770 _ACEOF 24771 cat confdefs.h >>conftest.$ac_ext 24772 cat >>conftest.$ac_ext <<_ACEOF 24773 /* end confdefs.h. */ 24774 $ac_includes_default 24775 #include <$ac_header> 24776 _ACEOF 24777 rm -f conftest.$ac_objext 24778 if { (ac_try="$ac_compile" 24779 case "(($ac_try" in 24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24781 *) ac_try_echo=$ac_try;; 24782 esac 24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24784 (eval "$ac_compile") 2>conftest.er1 24785 ac_status=$? 24786 grep -v '^ *+' conftest.er1 >conftest.err 24787 rm -f conftest.er1 24788 cat conftest.err >&5 24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24790 (exit $ac_status); } && { 24791 test -z "$ac_c_werror_flag" || 24792 test ! -s conftest.err 24793 } && test -s conftest.$ac_objext; then 24794 ac_header_compiler=yes 24795 else 24796 echo "$as_me: failed program was:" >&5 24797 sed 's/^/| /' conftest.$ac_ext >&5 24798 24799 ac_header_compiler=no 24800 fi 24801 24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24804 echo "${ECHO_T}$ac_header_compiler" >&6; } 24805 24806 # Is the header present? 24807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 24808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 24809 cat >conftest.$ac_ext <<_ACEOF 24810 /* confdefs.h. */ 24811 _ACEOF 24812 cat confdefs.h >>conftest.$ac_ext 24813 cat >>conftest.$ac_ext <<_ACEOF 24814 /* end confdefs.h. */ 24815 #include <$ac_header> 24816 _ACEOF 24817 if { (ac_try="$ac_cpp conftest.$ac_ext" 24818 case "(($ac_try" in 24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24820 *) ac_try_echo=$ac_try;; 24821 esac 24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 24824 ac_status=$? 24825 grep -v '^ *+' conftest.er1 >conftest.err 24826 rm -f conftest.er1 24827 cat conftest.err >&5 24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24829 (exit $ac_status); } >/dev/null && { 24830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 24831 test ! -s conftest.err 24832 }; then 24833 ac_header_preproc=yes 24834 else 24835 echo "$as_me: failed program was:" >&5 24836 sed 's/^/| /' conftest.$ac_ext >&5 24837 24838 ac_header_preproc=no 24839 fi 24840 24841 rm -f conftest.err conftest.$ac_ext 24842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24843 echo "${ECHO_T}$ac_header_preproc" >&6; } 24844 24845 # So? What about this header? 24846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24847 yes:no: ) 24848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24852 ac_header_preproc=yes 24853 ;; 24854 no:yes:* ) 24855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24867 24868 ;; 24869 esac 24870 { echo "$as_me:$LINENO: checking for $ac_header" >&5 24871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24873 echo $ECHO_N "(cached) $ECHO_C" >&6 24874 else 24875 eval "$as_ac_Header=\$ac_header_preproc" 24876 fi 24877 ac_res=`eval echo '${'$as_ac_Header'}'` 24878 { echo "$as_me:$LINENO: result: $ac_res" >&5 24879 echo "${ECHO_T}$ac_res" >&6; } 24880 24881 fi 24882 if test `eval echo '${'$as_ac_Header'}'` = yes; then 24883 cat >>confdefs.h <<_ACEOF 24884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24885 _ACEOF 24886 24887 fi 24888 24889 done 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 24908 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ 24909 argz_next __fsetlocking 24910 do 24911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24912 { echo "$as_me:$LINENO: checking for $ac_func" >&5 24913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 24914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24915 echo $ECHO_N "(cached) $ECHO_C" >&6 24916 else 24917 cat >conftest.$ac_ext <<_ACEOF 24918 /* confdefs.h. */ 24919 _ACEOF 24920 cat confdefs.h >>conftest.$ac_ext 24921 cat >>conftest.$ac_ext <<_ACEOF 24922 /* end confdefs.h. */ 24923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24924 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24925 #define $ac_func innocuous_$ac_func 24926 24927 /* System header to define __stub macros and hopefully few prototypes, 24928 which can conflict with char $ac_func (); below. 24929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24930 <limits.h> exists even on freestanding compilers. */ 24931 24932 #ifdef __STDC__ 24933 # include <limits.h> 24934 #else 24935 # include <assert.h> 24936 #endif 24937 24938 #undef $ac_func 24939 24940 /* Override any GCC internal prototype to avoid an error. 24941 Use char because int might match the return type of a GCC 24942 builtin and then its argument prototype would still apply. */ 24943 #ifdef __cplusplus 24944 extern "C" 24945 #endif 24946 char $ac_func (); 24947 /* The GNU C library defines this for functions which it implements 24948 to always fail with ENOSYS. Some functions are actually named 24949 something starting with __ and the normal name is an alias. */ 24950 #if defined __stub_$ac_func || defined __stub___$ac_func 24951 choke me 24952 #endif 24953 24954 int 24955 main () 24956 { 24957 return $ac_func (); 24958 ; 24959 return 0; 24960 } 24961 _ACEOF 24962 rm -f conftest.$ac_objext conftest$ac_exeext 24963 if { (ac_try="$ac_link" 24964 case "(($ac_try" in 24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24966 *) ac_try_echo=$ac_try;; 24967 esac 24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24969 (eval "$ac_link") 2>conftest.er1 24970 ac_status=$? 24971 grep -v '^ *+' conftest.er1 >conftest.err 24972 rm -f conftest.er1 24973 cat conftest.err >&5 24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24975 (exit $ac_status); } && { 24976 test -z "$ac_c_werror_flag" || 24977 test ! -s conftest.err 24978 } && test -s conftest$ac_exeext && 24979 $as_test_x conftest$ac_exeext; then 24980 eval "$as_ac_var=yes" 24981 else 24982 echo "$as_me: failed program was:" >&5 24983 sed 's/^/| /' conftest.$ac_ext >&5 24984 24985 eval "$as_ac_var=no" 24986 fi 24987 24988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24989 conftest$ac_exeext conftest.$ac_ext 24990 fi 24991 ac_res=`eval echo '${'$as_ac_var'}'` 24992 { echo "$as_me:$LINENO: result: $ac_res" >&5 24993 echo "${ECHO_T}$ac_res" >&6; } 24994 if test `eval echo '${'$as_ac_var'}'` = yes; then 24995 cat >>confdefs.h <<_ACEOF 24996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24997 _ACEOF 24998 24999 fi 25000 done 25001 25002 25003 25004 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 25005 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 25006 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 25007 echo $ECHO_N "(cached) $ECHO_C" >&6 25008 else 25009 cat >conftest.$ac_ext <<_ACEOF 25010 /* confdefs.h. */ 25011 _ACEOF 25012 cat confdefs.h >>conftest.$ac_ext 25013 cat >>conftest.$ac_ext <<_ACEOF 25014 /* end confdefs.h. */ 25015 #include <stdio.h> 25016 int 25017 main () 25018 { 25019 25020 #ifndef feof_unlocked 25021 char *p = (char *) feof_unlocked; 25022 #endif 25023 25024 ; 25025 return 0; 25026 } 25027 _ACEOF 25028 rm -f conftest.$ac_objext 25029 if { (ac_try="$ac_compile" 25030 case "(($ac_try" in 25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25032 *) ac_try_echo=$ac_try;; 25033 esac 25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25035 (eval "$ac_compile") 2>conftest.er1 25036 ac_status=$? 25037 grep -v '^ *+' conftest.er1 >conftest.err 25038 rm -f conftest.er1 25039 cat conftest.err >&5 25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25041 (exit $ac_status); } && { 25042 test -z "$ac_c_werror_flag" || 25043 test ! -s conftest.err 25044 } && test -s conftest.$ac_objext; then 25045 ac_cv_have_decl_feof_unlocked=yes 25046 else 25047 echo "$as_me: failed program was:" >&5 25048 sed 's/^/| /' conftest.$ac_ext >&5 25049 25050 ac_cv_have_decl_feof_unlocked=no 25051 fi 25052 25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25054 fi 25055 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 25056 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 25057 if test $ac_cv_have_decl_feof_unlocked = yes; then 25058 gt_value=1 25059 else 25060 gt_value=0 25061 fi 25062 25063 cat >>confdefs.h <<_ACEOF 25064 #define HAVE_DECL_FEOF_UNLOCKED $gt_value 25065 _ACEOF 25066 25067 25068 25069 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 25070 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 25071 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 25072 echo $ECHO_N "(cached) $ECHO_C" >&6 25073 else 25074 cat >conftest.$ac_ext <<_ACEOF 25075 /* confdefs.h. */ 25076 _ACEOF 25077 cat confdefs.h >>conftest.$ac_ext 25078 cat >>conftest.$ac_ext <<_ACEOF 25079 /* end confdefs.h. */ 25080 #include <stdio.h> 25081 int 25082 main () 25083 { 25084 25085 #ifndef fgets_unlocked 25086 char *p = (char *) fgets_unlocked; 25087 #endif 25088 25089 ; 25090 return 0; 25091 } 25092 _ACEOF 25093 rm -f conftest.$ac_objext 25094 if { (ac_try="$ac_compile" 25095 case "(($ac_try" in 25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25097 *) ac_try_echo=$ac_try;; 25098 esac 25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25100 (eval "$ac_compile") 2>conftest.er1 25101 ac_status=$? 25102 grep -v '^ *+' conftest.er1 >conftest.err 25103 rm -f conftest.er1 25104 cat conftest.err >&5 25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25106 (exit $ac_status); } && { 25107 test -z "$ac_c_werror_flag" || 25108 test ! -s conftest.err 25109 } && test -s conftest.$ac_objext; then 25110 ac_cv_have_decl_fgets_unlocked=yes 25111 else 25112 echo "$as_me: failed program was:" >&5 25113 sed 's/^/| /' conftest.$ac_ext >&5 25114 25115 ac_cv_have_decl_fgets_unlocked=no 25116 fi 25117 25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25119 fi 25120 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 25121 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 25122 if test $ac_cv_have_decl_fgets_unlocked = yes; then 25123 gt_value=1 25124 else 25125 gt_value=0 25126 fi 25127 25128 cat >>confdefs.h <<_ACEOF 25129 #define HAVE_DECL_FGETS_UNLOCKED $gt_value 25130 _ACEOF 25131 25132 25133 25134 25135 25136 25137 25138 25139 am_save_CPPFLAGS="$CPPFLAGS" 25140 25141 for element in $INCICONV; do 25142 haveit= 25143 for x in $CPPFLAGS; do 25144 25145 acl_save_prefix="$prefix" 25146 prefix="$acl_final_prefix" 25147 acl_save_exec_prefix="$exec_prefix" 25148 exec_prefix="$acl_final_exec_prefix" 25149 eval x=\"$x\" 25150 exec_prefix="$acl_save_exec_prefix" 25151 prefix="$acl_save_prefix" 25152 25153 if test "X$x" = "X$element"; then 25154 haveit=yes 25155 break 25156 fi 25157 done 25158 if test -z "$haveit"; then 25159 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 25160 fi 25161 done 25162 25163 25164 { echo "$as_me:$LINENO: checking for iconv" >&5 25165 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 25166 if test "${am_cv_func_iconv+set}" = set; then 25167 echo $ECHO_N "(cached) $ECHO_C" >&6 25168 else 25169 25170 am_cv_func_iconv="no, consider installing GNU libiconv" 25171 am_cv_lib_iconv=no 25172 cat >conftest.$ac_ext <<_ACEOF 25173 /* confdefs.h. */ 25174 _ACEOF 25175 cat confdefs.h >>conftest.$ac_ext 25176 cat >>conftest.$ac_ext <<_ACEOF 25177 /* end confdefs.h. */ 25178 #include <stdlib.h> 25179 #include <iconv.h> 25180 int 25181 main () 25182 { 25183 iconv_t cd = iconv_open("",""); 25184 iconv(cd,NULL,NULL,NULL,NULL); 25185 iconv_close(cd); 25186 ; 25187 return 0; 25188 } 25189 _ACEOF 25190 rm -f conftest.$ac_objext conftest$ac_exeext 25191 if { (ac_try="$ac_link" 25192 case "(($ac_try" in 25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25194 *) ac_try_echo=$ac_try;; 25195 esac 25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25197 (eval "$ac_link") 2>conftest.er1 25198 ac_status=$? 25199 grep -v '^ *+' conftest.er1 >conftest.err 25200 rm -f conftest.er1 25201 cat conftest.err >&5 25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25203 (exit $ac_status); } && { 25204 test -z "$ac_c_werror_flag" || 25205 test ! -s conftest.err 25206 } && test -s conftest$ac_exeext && 25207 $as_test_x conftest$ac_exeext; then 25208 am_cv_func_iconv=yes 25209 else 25210 echo "$as_me: failed program was:" >&5 25211 sed 's/^/| /' conftest.$ac_ext >&5 25212 25213 25214 fi 25215 25216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25217 conftest$ac_exeext conftest.$ac_ext 25218 if test "$am_cv_func_iconv" != yes; then 25219 am_save_LIBS="$LIBS" 25220 LIBS="$LIBS $LIBICONV" 25221 cat >conftest.$ac_ext <<_ACEOF 25222 /* confdefs.h. */ 25223 _ACEOF 25224 cat confdefs.h >>conftest.$ac_ext 25225 cat >>conftest.$ac_ext <<_ACEOF 25226 /* end confdefs.h. */ 25227 #include <stdlib.h> 25228 #include <iconv.h> 25229 int 25230 main () 25231 { 25232 iconv_t cd = iconv_open("",""); 25233 iconv(cd,NULL,NULL,NULL,NULL); 25234 iconv_close(cd); 25235 ; 25236 return 0; 25237 } 25238 _ACEOF 25239 rm -f conftest.$ac_objext conftest$ac_exeext 25240 if { (ac_try="$ac_link" 25241 case "(($ac_try" in 25242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25243 *) ac_try_echo=$ac_try;; 25244 esac 25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25246 (eval "$ac_link") 2>conftest.er1 25247 ac_status=$? 25248 grep -v '^ *+' conftest.er1 >conftest.err 25249 rm -f conftest.er1 25250 cat conftest.err >&5 25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25252 (exit $ac_status); } && { 25253 test -z "$ac_c_werror_flag" || 25254 test ! -s conftest.err 25255 } && test -s conftest$ac_exeext && 25256 $as_test_x conftest$ac_exeext; then 25257 am_cv_lib_iconv=yes 25258 am_cv_func_iconv=yes 25259 else 25260 echo "$as_me: failed program was:" >&5 25261 sed 's/^/| /' conftest.$ac_ext >&5 25262 25263 25264 fi 25265 25266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25267 conftest$ac_exeext conftest.$ac_ext 25268 LIBS="$am_save_LIBS" 25269 fi 25270 25271 fi 25272 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 25273 echo "${ECHO_T}$am_cv_func_iconv" >&6; } 25274 if test "$am_cv_func_iconv" = yes; then 25275 25276 cat >>confdefs.h <<\_ACEOF 25277 #define HAVE_ICONV 1 25278 _ACEOF 25279 25280 fi 25281 if test "$am_cv_lib_iconv" = yes; then 25282 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 25283 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 25284 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 25285 echo "${ECHO_T}$LIBICONV" >&6; } 25286 else 25287 CPPFLAGS="$am_save_CPPFLAGS" 25288 LIBICONV= 25289 LTLIBICONV= 25290 fi 25291 25292 25293 25294 if test "$am_cv_func_iconv" = yes; then 25295 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 25296 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 25297 if test "${am_cv_proto_iconv+set}" = set; then 25298 echo $ECHO_N "(cached) $ECHO_C" >&6 25299 else 25300 25301 cat >conftest.$ac_ext <<_ACEOF 25302 /* confdefs.h. */ 25303 _ACEOF 25304 cat confdefs.h >>conftest.$ac_ext 25305 cat >>conftest.$ac_ext <<_ACEOF 25306 /* end confdefs.h. */ 25307 25308 #include <stdlib.h> 25309 #include <iconv.h> 25310 extern 25311 #ifdef __cplusplus 25312 "C" 25313 #endif 25314 #if defined(__STDC__) || defined(__cplusplus) 25315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 25316 #else 25317 size_t iconv(); 25318 #endif 25319 25320 int 25321 main () 25322 { 25323 25324 ; 25325 return 0; 25326 } 25327 _ACEOF 25328 rm -f conftest.$ac_objext 25329 if { (ac_try="$ac_compile" 25330 case "(($ac_try" in 25331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25332 *) ac_try_echo=$ac_try;; 25333 esac 25334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25335 (eval "$ac_compile") 2>conftest.er1 25336 ac_status=$? 25337 grep -v '^ *+' conftest.er1 >conftest.err 25338 rm -f conftest.er1 25339 cat conftest.err >&5 25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25341 (exit $ac_status); } && { 25342 test -z "$ac_c_werror_flag" || 25343 test ! -s conftest.err 25344 } && test -s conftest.$ac_objext; then 25345 am_cv_proto_iconv_arg1="" 25346 else 25347 echo "$as_me: failed program was:" >&5 25348 sed 's/^/| /' conftest.$ac_ext >&5 25349 25350 am_cv_proto_iconv_arg1="const" 25351 fi 25352 25353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25354 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 25355 fi 25356 25357 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 25358 { echo "$as_me:$LINENO: result: ${ac_t:- 25359 }$am_cv_proto_iconv" >&5 25360 echo "${ECHO_T}${ac_t:- 25361 }$am_cv_proto_iconv" >&6; } 25362 25363 cat >>confdefs.h <<_ACEOF 25364 #define ICONV_CONST $am_cv_proto_iconv_arg1 25365 _ACEOF 25366 25367 fi 25368 25369 25370 { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5 25371 echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; } 25372 if test "${gt_cv_nl_locale_name+set}" = set; then 25373 echo $ECHO_N "(cached) $ECHO_C" >&6 25374 else 25375 cat >conftest.$ac_ext <<_ACEOF 25376 /* confdefs.h. */ 25377 _ACEOF 25378 cat confdefs.h >>conftest.$ac_ext 25379 cat >>conftest.$ac_ext <<_ACEOF 25380 /* end confdefs.h. */ 25381 #include <langinfo.h> 25382 #include <locale.h> 25383 int 25384 main () 25385 { 25386 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); 25387 ; 25388 return 0; 25389 } 25390 _ACEOF 25391 rm -f conftest.$ac_objext conftest$ac_exeext 25392 if { (ac_try="$ac_link" 25393 case "(($ac_try" in 25394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25395 *) ac_try_echo=$ac_try;; 25396 esac 25397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25398 (eval "$ac_link") 2>conftest.er1 25399 ac_status=$? 25400 grep -v '^ *+' conftest.er1 >conftest.err 25401 rm -f conftest.er1 25402 cat conftest.err >&5 25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25404 (exit $ac_status); } && { 25405 test -z "$ac_c_werror_flag" || 25406 test ! -s conftest.err 25407 } && test -s conftest$ac_exeext && 25408 $as_test_x conftest$ac_exeext; then 25409 gt_cv_nl_locale_name=yes 25410 else 25411 echo "$as_me: failed program was:" >&5 25412 sed 's/^/| /' conftest.$ac_ext >&5 25413 25414 gt_cv_nl_locale_name=no 25415 fi 25416 25417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25418 conftest$ac_exeext conftest.$ac_ext 25419 25420 fi 25421 { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5 25422 echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; } 25423 if test $gt_cv_nl_locale_name = yes; then 25424 25425 cat >>confdefs.h <<\_ACEOF 25426 #define HAVE_NL_LOCALE_NAME 1 25427 _ACEOF 25428 25429 fi 25430 25431 for ac_prog in bison 25432 do 25433 # Extract the first word of "$ac_prog", so it can be a program name with args. 25434 set dummy $ac_prog; ac_word=$2 25435 { echo "$as_me:$LINENO: checking for $ac_word" >&5 25436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 25437 if test "${ac_cv_prog_INTLBISON+set}" = set; then 25438 echo $ECHO_N "(cached) $ECHO_C" >&6 25439 else 25440 if test -n "$INTLBISON"; then 25441 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 25442 else 25443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25444 for as_dir in $PATH 25445 do 25446 IFS=$as_save_IFS 25447 test -z "$as_dir" && as_dir=. 25448 for ac_exec_ext in '' $ac_executable_extensions; do 25449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25450 ac_cv_prog_INTLBISON="$ac_prog" 25451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25452 break 2 25453 fi 25454 done 25455 done 25456 IFS=$as_save_IFS 25457 25458 fi 25459 fi 25460 INTLBISON=$ac_cv_prog_INTLBISON 25461 if test -n "$INTLBISON"; then 25462 { echo "$as_me:$LINENO: result: $INTLBISON" >&5 25463 echo "${ECHO_T}$INTLBISON" >&6; } 25464 else 25465 { echo "$as_me:$LINENO: result: no" >&5 25466 echo "${ECHO_T}no" >&6; } 25467 fi 25468 25469 25470 test -n "$INTLBISON" && break 25471 done 25472 25473 if test -z "$INTLBISON"; then 25474 ac_verc_fail=yes 25475 else 25476 { echo "$as_me:$LINENO: checking version of bison" >&5 25477 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } 25478 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 25479 case $ac_prog_version in 25480 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 25481 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 25482 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 25483 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 25484 esac 25485 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 25486 echo "${ECHO_T}$ac_prog_version" >&6; } 25487 fi 25488 if test $ac_verc_fail = yes; then 25489 INTLBISON=: 25490 fi 25491 25492 25493 { echo "$as_me:$LINENO: checking for long long int" >&5 25494 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } 25495 if test "${ac_cv_type_long_long_int+set}" = set; then 25496 echo $ECHO_N "(cached) $ECHO_C" >&6 25497 else 25498 cat >conftest.$ac_ext <<_ACEOF 25499 /* confdefs.h. */ 25500 _ACEOF 25501 cat confdefs.h >>conftest.$ac_ext 25502 cat >>conftest.$ac_ext <<_ACEOF 25503 /* end confdefs.h. */ 25504 long long int ll = 9223372036854775807ll; 25505 long long int nll = -9223372036854775807LL; 25506 typedef int a[((-9223372036854775807LL < 0 25507 && 0 < 9223372036854775807ll) 25508 ? 1 : -1)]; 25509 int i = 63; 25510 int 25511 main () 25512 { 25513 long long int llmax = 9223372036854775807ll; 25514 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 25515 | (llmax / ll) | (llmax % ll)); 25516 ; 25517 return 0; 25518 } 25519 _ACEOF 25520 rm -f conftest.$ac_objext conftest$ac_exeext 25521 if { (ac_try="$ac_link" 25522 case "(($ac_try" in 25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25524 *) ac_try_echo=$ac_try;; 25525 esac 25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25527 (eval "$ac_link") 2>conftest.er1 25528 ac_status=$? 25529 grep -v '^ *+' conftest.er1 >conftest.err 25530 rm -f conftest.er1 25531 cat conftest.err >&5 25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25533 (exit $ac_status); } && { 25534 test -z "$ac_c_werror_flag" || 25535 test ! -s conftest.err 25536 } && test -s conftest$ac_exeext && 25537 $as_test_x conftest$ac_exeext; then 25538 ac_cv_type_long_long_int=yes 25539 else 25540 echo "$as_me: failed program was:" >&5 25541 sed 's/^/| /' conftest.$ac_ext >&5 25542 25543 ac_cv_type_long_long_int=no 25544 fi 25545 25546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25547 conftest$ac_exeext conftest.$ac_ext 25548 fi 25549 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 25550 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } 25551 if test $ac_cv_type_long_long_int = yes; then 25552 25553 cat >>confdefs.h <<\_ACEOF 25554 #define HAVE_LONG_LONG_INT 1 25555 _ACEOF 25556 25557 fi 25558 25559 25560 { echo "$as_me:$LINENO: checking for long double" >&5 25561 echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 25562 if test "${gt_cv_c_long_double+set}" = set; then 25563 echo $ECHO_N "(cached) $ECHO_C" >&6 25564 else 25565 if test "$GCC" = yes; then 25566 gt_cv_c_long_double=yes 25567 else 25568 cat >conftest.$ac_ext <<_ACEOF 25569 /* confdefs.h. */ 25570 _ACEOF 25571 cat confdefs.h >>conftest.$ac_ext 25572 cat >>conftest.$ac_ext <<_ACEOF 25573 /* end confdefs.h. */ 25574 25575 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 25576 long double foo = 0.0; 25577 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 25578 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 25579 25580 int 25581 main () 25582 { 25583 25584 ; 25585 return 0; 25586 } 25587 _ACEOF 25588 rm -f conftest.$ac_objext 25589 if { (ac_try="$ac_compile" 25590 case "(($ac_try" in 25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25592 *) ac_try_echo=$ac_try;; 25593 esac 25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25595 (eval "$ac_compile") 2>conftest.er1 25596 ac_status=$? 25597 grep -v '^ *+' conftest.er1 >conftest.err 25598 rm -f conftest.er1 25599 cat conftest.err >&5 25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25601 (exit $ac_status); } && { 25602 test -z "$ac_c_werror_flag" || 25603 test ! -s conftest.err 25604 } && test -s conftest.$ac_objext; then 25605 gt_cv_c_long_double=yes 25606 else 25607 echo "$as_me: failed program was:" >&5 25608 sed 's/^/| /' conftest.$ac_ext >&5 25609 25610 gt_cv_c_long_double=no 25611 fi 25612 25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25614 fi 25615 fi 25616 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 25617 echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 25618 if test $gt_cv_c_long_double = yes; then 25619 25620 cat >>confdefs.h <<\_ACEOF 25621 #define HAVE_LONG_DOUBLE 1 25622 _ACEOF 25623 25624 fi 25625 25626 25627 { echo "$as_me:$LINENO: checking for wchar_t" >&5 25628 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 25629 if test "${gt_cv_c_wchar_t+set}" = set; then 25630 echo $ECHO_N "(cached) $ECHO_C" >&6 25631 else 25632 cat >conftest.$ac_ext <<_ACEOF 25633 /* confdefs.h. */ 25634 _ACEOF 25635 cat confdefs.h >>conftest.$ac_ext 25636 cat >>conftest.$ac_ext <<_ACEOF 25637 /* end confdefs.h. */ 25638 #include <stddef.h> 25639 wchar_t foo = (wchar_t)'\0'; 25640 int 25641 main () 25642 { 25643 25644 ; 25645 return 0; 25646 } 25647 _ACEOF 25648 rm -f conftest.$ac_objext 25649 if { (ac_try="$ac_compile" 25650 case "(($ac_try" in 25651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25652 *) ac_try_echo=$ac_try;; 25653 esac 25654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25655 (eval "$ac_compile") 2>conftest.er1 25656 ac_status=$? 25657 grep -v '^ *+' conftest.er1 >conftest.err 25658 rm -f conftest.er1 25659 cat conftest.err >&5 25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25661 (exit $ac_status); } && { 25662 test -z "$ac_c_werror_flag" || 25663 test ! -s conftest.err 25664 } && test -s conftest.$ac_objext; then 25665 gt_cv_c_wchar_t=yes 25666 else 25667 echo "$as_me: failed program was:" >&5 25668 sed 's/^/| /' conftest.$ac_ext >&5 25669 25670 gt_cv_c_wchar_t=no 25671 fi 25672 25673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25674 fi 25675 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 25676 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 25677 if test $gt_cv_c_wchar_t = yes; then 25678 25679 cat >>confdefs.h <<\_ACEOF 25680 #define HAVE_WCHAR_T 1 25681 _ACEOF 25682 25683 fi 25684 25685 25686 { echo "$as_me:$LINENO: checking for wint_t" >&5 25687 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 25688 if test "${gt_cv_c_wint_t+set}" = set; then 25689 echo $ECHO_N "(cached) $ECHO_C" >&6 25690 else 25691 cat >conftest.$ac_ext <<_ACEOF 25692 /* confdefs.h. */ 25693 _ACEOF 25694 cat confdefs.h >>conftest.$ac_ext 25695 cat >>conftest.$ac_ext <<_ACEOF 25696 /* end confdefs.h. */ 25697 #include <wchar.h> 25698 wint_t foo = (wchar_t)'\0'; 25699 int 25700 main () 25701 { 25702 25703 ; 25704 return 0; 25705 } 25706 _ACEOF 25707 rm -f conftest.$ac_objext 25708 if { (ac_try="$ac_compile" 25709 case "(($ac_try" in 25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25711 *) ac_try_echo=$ac_try;; 25712 esac 25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25714 (eval "$ac_compile") 2>conftest.er1 25715 ac_status=$? 25716 grep -v '^ *+' conftest.er1 >conftest.err 25717 rm -f conftest.er1 25718 cat conftest.err >&5 25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25720 (exit $ac_status); } && { 25721 test -z "$ac_c_werror_flag" || 25722 test ! -s conftest.err 25723 } && test -s conftest.$ac_objext; then 25724 gt_cv_c_wint_t=yes 25725 else 25726 echo "$as_me: failed program was:" >&5 25727 sed 's/^/| /' conftest.$ac_ext >&5 25728 25729 gt_cv_c_wint_t=no 25730 fi 25731 25732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25733 fi 25734 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 25735 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 25736 if test $gt_cv_c_wint_t = yes; then 25737 25738 cat >>confdefs.h <<\_ACEOF 25739 #define HAVE_WINT_T 1 25740 _ACEOF 25741 25742 fi 25743 25744 25745 25746 25747 { echo "$as_me:$LINENO: checking for intmax_t" >&5 25748 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 25749 if test "${gt_cv_c_intmax_t+set}" = set; then 25750 echo $ECHO_N "(cached) $ECHO_C" >&6 25751 else 25752 cat >conftest.$ac_ext <<_ACEOF 25753 /* confdefs.h. */ 25754 _ACEOF 25755 cat confdefs.h >>conftest.$ac_ext 25756 cat >>conftest.$ac_ext <<_ACEOF 25757 /* end confdefs.h. */ 25758 25759 #include <stddef.h> 25760 #include <stdlib.h> 25761 #if HAVE_STDINT_H_WITH_UINTMAX 25762 #include <stdint.h> 25763 #endif 25764 #if HAVE_INTTYPES_H_WITH_UINTMAX 25765 #include <inttypes.h> 25766 #endif 25767 25768 int 25769 main () 25770 { 25771 intmax_t x = -1; 25772 return !x; 25773 ; 25774 return 0; 25775 } 25776 _ACEOF 25777 rm -f conftest.$ac_objext 25778 if { (ac_try="$ac_compile" 25779 case "(($ac_try" in 25780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25781 *) ac_try_echo=$ac_try;; 25782 esac 25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25784 (eval "$ac_compile") 2>conftest.er1 25785 ac_status=$? 25786 grep -v '^ *+' conftest.er1 >conftest.err 25787 rm -f conftest.er1 25788 cat conftest.err >&5 25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25790 (exit $ac_status); } && { 25791 test -z "$ac_c_werror_flag" || 25792 test ! -s conftest.err 25793 } && test -s conftest.$ac_objext; then 25794 gt_cv_c_intmax_t=yes 25795 else 25796 echo "$as_me: failed program was:" >&5 25797 sed 's/^/| /' conftest.$ac_ext >&5 25798 25799 gt_cv_c_intmax_t=no 25800 fi 25801 25802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25803 fi 25804 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 25805 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 25806 if test $gt_cv_c_intmax_t = yes; then 25807 25808 cat >>confdefs.h <<\_ACEOF 25809 #define HAVE_INTMAX_T 1 25810 _ACEOF 25811 25812 fi 25813 25814 25815 25816 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 25817 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 25818 if test "${gt_cv_func_printf_posix+set}" = set; then 25819 echo $ECHO_N "(cached) $ECHO_C" >&6 25820 else 25821 25822 if test "$cross_compiling" = yes; then 25823 25824 cat >conftest.$ac_ext <<_ACEOF 25825 /* confdefs.h. */ 25826 _ACEOF 25827 cat confdefs.h >>conftest.$ac_ext 25828 cat >>conftest.$ac_ext <<_ACEOF 25829 /* end confdefs.h. */ 25830 25831 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 25832 notposix 25833 #endif 25834 25835 _ACEOF 25836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25837 $EGREP "notposix" >/dev/null 2>&1; then 25838 gt_cv_func_printf_posix="guessing no" 25839 else 25840 gt_cv_func_printf_posix="guessing yes" 25841 fi 25842 rm -f conftest* 25843 25844 25845 else 25846 cat >conftest.$ac_ext <<_ACEOF 25847 /* confdefs.h. */ 25848 _ACEOF 25849 cat confdefs.h >>conftest.$ac_ext 25850 cat >>conftest.$ac_ext <<_ACEOF 25851 /* end confdefs.h. */ 25852 25853 #include <stdio.h> 25854 #include <string.h> 25855 /* The string "%2$d %1$d", with dollar characters protected from the shell's 25856 dollar expansion (possibly an autoconf bug). */ 25857 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 25858 static char buf[100]; 25859 int main () 25860 { 25861 sprintf (buf, format, 33, 55); 25862 return (strcmp (buf, "55 33") != 0); 25863 } 25864 _ACEOF 25865 rm -f conftest$ac_exeext 25866 if { (ac_try="$ac_link" 25867 case "(($ac_try" in 25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25869 *) ac_try_echo=$ac_try;; 25870 esac 25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25872 (eval "$ac_link") 2>&5 25873 ac_status=$? 25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25876 { (case "(($ac_try" in 25877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25878 *) ac_try_echo=$ac_try;; 25879 esac 25880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25881 (eval "$ac_try") 2>&5 25882 ac_status=$? 25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25884 (exit $ac_status); }; }; then 25885 gt_cv_func_printf_posix=yes 25886 else 25887 echo "$as_me: program exited with status $ac_status" >&5 25888 echo "$as_me: failed program was:" >&5 25889 sed 's/^/| /' conftest.$ac_ext >&5 25890 25891 ( exit $ac_status ) 25892 gt_cv_func_printf_posix=no 25893 fi 25894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25895 fi 25896 25897 25898 25899 fi 25900 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 25901 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 25902 case $gt_cv_func_printf_posix in 25903 *yes) 25904 25905 cat >>confdefs.h <<\_ACEOF 25906 #define HAVE_POSIX_PRINTF 1 25907 _ACEOF 25908 25909 ;; 25910 esac 25911 25912 25913 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 25914 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } 25915 if test "${ac_cv_gnu_library_2_1+set}" = set; then 25916 echo $ECHO_N "(cached) $ECHO_C" >&6 25917 else 25918 cat >conftest.$ac_ext <<_ACEOF 25919 /* confdefs.h. */ 25920 _ACEOF 25921 cat confdefs.h >>conftest.$ac_ext 25922 cat >>conftest.$ac_ext <<_ACEOF 25923 /* end confdefs.h. */ 25924 25925 #include <features.h> 25926 #ifdef __GNU_LIBRARY__ 25927 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 25928 Lucky GNU user 25929 #endif 25930 #endif 25931 25932 _ACEOF 25933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25934 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 25935 ac_cv_gnu_library_2_1=yes 25936 else 25937 ac_cv_gnu_library_2_1=no 25938 fi 25939 rm -f conftest* 25940 25941 25942 25943 fi 25944 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 25945 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } 25946 25947 GLIBC21="$ac_cv_gnu_library_2_1" 25948 25949 25950 25951 25952 for ac_header in stdint.h 25953 do 25954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25956 { echo "$as_me:$LINENO: checking for $ac_header" >&5 25957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25959 echo $ECHO_N "(cached) $ECHO_C" >&6 25960 fi 25961 ac_res=`eval echo '${'$as_ac_Header'}'` 25962 { echo "$as_me:$LINENO: result: $ac_res" >&5 25963 echo "${ECHO_T}$ac_res" >&6; } 25964 else 25965 # Is the header compilable? 25966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 25967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 25968 cat >conftest.$ac_ext <<_ACEOF 25969 /* confdefs.h. */ 25970 _ACEOF 25971 cat confdefs.h >>conftest.$ac_ext 25972 cat >>conftest.$ac_ext <<_ACEOF 25973 /* end confdefs.h. */ 25974 $ac_includes_default 25975 #include <$ac_header> 25976 _ACEOF 25977 rm -f conftest.$ac_objext 25978 if { (ac_try="$ac_compile" 25979 case "(($ac_try" in 25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25981 *) ac_try_echo=$ac_try;; 25982 esac 25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25984 (eval "$ac_compile") 2>conftest.er1 25985 ac_status=$? 25986 grep -v '^ *+' conftest.er1 >conftest.err 25987 rm -f conftest.er1 25988 cat conftest.err >&5 25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25990 (exit $ac_status); } && { 25991 test -z "$ac_c_werror_flag" || 25992 test ! -s conftest.err 25993 } && test -s conftest.$ac_objext; then 25994 ac_header_compiler=yes 25995 else 25996 echo "$as_me: failed program was:" >&5 25997 sed 's/^/| /' conftest.$ac_ext >&5 25998 25999 ac_header_compiler=no 26000 fi 26001 26002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26004 echo "${ECHO_T}$ac_header_compiler" >&6; } 26005 26006 # Is the header present? 26007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 26008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 26009 cat >conftest.$ac_ext <<_ACEOF 26010 /* confdefs.h. */ 26011 _ACEOF 26012 cat confdefs.h >>conftest.$ac_ext 26013 cat >>conftest.$ac_ext <<_ACEOF 26014 /* end confdefs.h. */ 26015 #include <$ac_header> 26016 _ACEOF 26017 if { (ac_try="$ac_cpp conftest.$ac_ext" 26018 case "(($ac_try" in 26019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26020 *) ac_try_echo=$ac_try;; 26021 esac 26022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 26024 ac_status=$? 26025 grep -v '^ *+' conftest.er1 >conftest.err 26026 rm -f conftest.er1 26027 cat conftest.err >&5 26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26029 (exit $ac_status); } >/dev/null && { 26030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 26031 test ! -s conftest.err 26032 }; then 26033 ac_header_preproc=yes 26034 else 26035 echo "$as_me: failed program was:" >&5 26036 sed 's/^/| /' conftest.$ac_ext >&5 26037 26038 ac_header_preproc=no 26039 fi 26040 26041 rm -f conftest.err conftest.$ac_ext 26042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26043 echo "${ECHO_T}$ac_header_preproc" >&6; } 26044 26045 # So? What about this header? 26046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26047 yes:no: ) 26048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 26049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 26050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 26051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 26052 ac_header_preproc=yes 26053 ;; 26054 no:yes:* ) 26055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 26056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 26057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 26058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 26059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 26060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 26061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 26062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 26063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 26064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 26065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 26066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 26067 26068 ;; 26069 esac 26070 { echo "$as_me:$LINENO: checking for $ac_header" >&5 26071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26073 echo $ECHO_N "(cached) $ECHO_C" >&6 26074 else 26075 eval "$as_ac_Header=\$ac_header_preproc" 26076 fi 26077 ac_res=`eval echo '${'$as_ac_Header'}'` 26078 { echo "$as_me:$LINENO: result: $ac_res" >&5 26079 echo "${ECHO_T}$ac_res" >&6; } 26080 26081 fi 26082 if test `eval echo '${'$as_ac_Header'}'` = yes; then 26083 cat >>confdefs.h <<_ACEOF 26084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26085 _ACEOF 26086 26087 fi 26088 26089 done 26090 26091 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 26092 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 26093 if test "${gl_cv_size_max+set}" = set; then 26094 echo $ECHO_N "(cached) $ECHO_C" >&6 26095 else 26096 26097 gl_cv_size_max= 26098 cat >conftest.$ac_ext <<_ACEOF 26099 /* confdefs.h. */ 26100 _ACEOF 26101 cat confdefs.h >>conftest.$ac_ext 26102 cat >>conftest.$ac_ext <<_ACEOF 26103 /* end confdefs.h. */ 26104 26105 #include <limits.h> 26106 #if HAVE_STDINT_H 26107 #include <stdint.h> 26108 #endif 26109 #ifdef SIZE_MAX 26110 Found it 26111 #endif 26112 26113 _ACEOF 26114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26115 $EGREP "Found it" >/dev/null 2>&1; then 26116 gl_cv_size_max=yes 26117 fi 26118 rm -f conftest* 26119 26120 if test -z "$gl_cv_size_max"; then 26121 if test "$cross_compiling" = yes; then 26122 # Depending upon the size, compute the lo and hi bounds. 26123 cat >conftest.$ac_ext <<_ACEOF 26124 /* confdefs.h. */ 26125 _ACEOF 26126 cat confdefs.h >>conftest.$ac_ext 26127 cat >>conftest.$ac_ext <<_ACEOF 26128 /* end confdefs.h. */ 26129 #include <stddef.h> 26130 #include <limits.h> 26131 int 26132 main () 26133 { 26134 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; 26135 test_array [0] = 0 26136 26137 ; 26138 return 0; 26139 } 26140 _ACEOF 26141 rm -f conftest.$ac_objext 26142 if { (ac_try="$ac_compile" 26143 case "(($ac_try" in 26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26145 *) ac_try_echo=$ac_try;; 26146 esac 26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26148 (eval "$ac_compile") 2>conftest.er1 26149 ac_status=$? 26150 grep -v '^ *+' conftest.er1 >conftest.err 26151 rm -f conftest.er1 26152 cat conftest.err >&5 26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26154 (exit $ac_status); } && { 26155 test -z "$ac_c_werror_flag" || 26156 test ! -s conftest.err 26157 } && test -s conftest.$ac_objext; then 26158 ac_lo=0 ac_mid=0 26159 while :; do 26160 cat >conftest.$ac_ext <<_ACEOF 26161 /* confdefs.h. */ 26162 _ACEOF 26163 cat confdefs.h >>conftest.$ac_ext 26164 cat >>conftest.$ac_ext <<_ACEOF 26165 /* end confdefs.h. */ 26166 #include <stddef.h> 26167 #include <limits.h> 26168 int 26169 main () 26170 { 26171 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; 26172 test_array [0] = 0 26173 26174 ; 26175 return 0; 26176 } 26177 _ACEOF 26178 rm -f conftest.$ac_objext 26179 if { (ac_try="$ac_compile" 26180 case "(($ac_try" in 26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26182 *) ac_try_echo=$ac_try;; 26183 esac 26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26185 (eval "$ac_compile") 2>conftest.er1 26186 ac_status=$? 26187 grep -v '^ *+' conftest.er1 >conftest.err 26188 rm -f conftest.er1 26189 cat conftest.err >&5 26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26191 (exit $ac_status); } && { 26192 test -z "$ac_c_werror_flag" || 26193 test ! -s conftest.err 26194 } && test -s conftest.$ac_objext; then 26195 ac_hi=$ac_mid; break 26196 else 26197 echo "$as_me: failed program was:" >&5 26198 sed 's/^/| /' conftest.$ac_ext >&5 26199 26200 ac_lo=`expr $ac_mid + 1` 26201 if test $ac_lo -le $ac_mid; then 26202 ac_lo= ac_hi= 26203 break 26204 fi 26205 ac_mid=`expr 2 '*' $ac_mid + 1` 26206 fi 26207 26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26209 done 26210 else 26211 echo "$as_me: failed program was:" >&5 26212 sed 's/^/| /' conftest.$ac_ext >&5 26213 26214 cat >conftest.$ac_ext <<_ACEOF 26215 /* confdefs.h. */ 26216 _ACEOF 26217 cat confdefs.h >>conftest.$ac_ext 26218 cat >>conftest.$ac_ext <<_ACEOF 26219 /* end confdefs.h. */ 26220 #include <stddef.h> 26221 #include <limits.h> 26222 int 26223 main () 26224 { 26225 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; 26226 test_array [0] = 0 26227 26228 ; 26229 return 0; 26230 } 26231 _ACEOF 26232 rm -f conftest.$ac_objext 26233 if { (ac_try="$ac_compile" 26234 case "(($ac_try" in 26235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26236 *) ac_try_echo=$ac_try;; 26237 esac 26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26239 (eval "$ac_compile") 2>conftest.er1 26240 ac_status=$? 26241 grep -v '^ *+' conftest.er1 >conftest.err 26242 rm -f conftest.er1 26243 cat conftest.err >&5 26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26245 (exit $ac_status); } && { 26246 test -z "$ac_c_werror_flag" || 26247 test ! -s conftest.err 26248 } && test -s conftest.$ac_objext; then 26249 ac_hi=-1 ac_mid=-1 26250 while :; do 26251 cat >conftest.$ac_ext <<_ACEOF 26252 /* confdefs.h. */ 26253 _ACEOF 26254 cat confdefs.h >>conftest.$ac_ext 26255 cat >>conftest.$ac_ext <<_ACEOF 26256 /* end confdefs.h. */ 26257 #include <stddef.h> 26258 #include <limits.h> 26259 int 26260 main () 26261 { 26262 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; 26263 test_array [0] = 0 26264 26265 ; 26266 return 0; 26267 } 26268 _ACEOF 26269 rm -f conftest.$ac_objext 26270 if { (ac_try="$ac_compile" 26271 case "(($ac_try" in 26272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26273 *) ac_try_echo=$ac_try;; 26274 esac 26275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26276 (eval "$ac_compile") 2>conftest.er1 26277 ac_status=$? 26278 grep -v '^ *+' conftest.er1 >conftest.err 26279 rm -f conftest.er1 26280 cat conftest.err >&5 26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26282 (exit $ac_status); } && { 26283 test -z "$ac_c_werror_flag" || 26284 test ! -s conftest.err 26285 } && test -s conftest.$ac_objext; then 26286 ac_lo=$ac_mid; break 26287 else 26288 echo "$as_me: failed program was:" >&5 26289 sed 's/^/| /' conftest.$ac_ext >&5 26290 26291 ac_hi=`expr '(' $ac_mid ')' - 1` 26292 if test $ac_mid -le $ac_hi; then 26293 ac_lo= ac_hi= 26294 break 26295 fi 26296 ac_mid=`expr 2 '*' $ac_mid` 26297 fi 26298 26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26300 done 26301 else 26302 echo "$as_me: failed program was:" >&5 26303 sed 's/^/| /' conftest.$ac_ext >&5 26304 26305 ac_lo= ac_hi= 26306 fi 26307 26308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26309 fi 26310 26311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26312 # Binary search between lo and hi bounds. 26313 while test "x$ac_lo" != "x$ac_hi"; do 26314 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 26315 cat >conftest.$ac_ext <<_ACEOF 26316 /* confdefs.h. */ 26317 _ACEOF 26318 cat confdefs.h >>conftest.$ac_ext 26319 cat >>conftest.$ac_ext <<_ACEOF 26320 /* end confdefs.h. */ 26321 #include <stddef.h> 26322 #include <limits.h> 26323 int 26324 main () 26325 { 26326 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; 26327 test_array [0] = 0 26328 26329 ; 26330 return 0; 26331 } 26332 _ACEOF 26333 rm -f conftest.$ac_objext 26334 if { (ac_try="$ac_compile" 26335 case "(($ac_try" in 26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26337 *) ac_try_echo=$ac_try;; 26338 esac 26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26340 (eval "$ac_compile") 2>conftest.er1 26341 ac_status=$? 26342 grep -v '^ *+' conftest.er1 >conftest.err 26343 rm -f conftest.er1 26344 cat conftest.err >&5 26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26346 (exit $ac_status); } && { 26347 test -z "$ac_c_werror_flag" || 26348 test ! -s conftest.err 26349 } && test -s conftest.$ac_objext; then 26350 ac_hi=$ac_mid 26351 else 26352 echo "$as_me: failed program was:" >&5 26353 sed 's/^/| /' conftest.$ac_ext >&5 26354 26355 ac_lo=`expr '(' $ac_mid ')' + 1` 26356 fi 26357 26358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26359 done 26360 case $ac_lo in 26361 ?*) size_t_bits_minus_1=$ac_lo;; 26362 '') size_t_bits_minus_1= ;; 26363 esac 26364 else 26365 cat >conftest.$ac_ext <<_ACEOF 26366 /* confdefs.h. */ 26367 _ACEOF 26368 cat confdefs.h >>conftest.$ac_ext 26369 cat >>conftest.$ac_ext <<_ACEOF 26370 /* end confdefs.h. */ 26371 #include <stddef.h> 26372 #include <limits.h> 26373 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } 26374 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } 26375 #include <stdio.h> 26376 #include <stdlib.h> 26377 int 26378 main () 26379 { 26380 26381 FILE *f = fopen ("conftest.val", "w"); 26382 if (! f) 26383 return 1; 26384 if ((sizeof (size_t) * CHAR_BIT - 1) < 0) 26385 { 26386 long int i = longval (); 26387 if (i != (sizeof (size_t) * CHAR_BIT - 1)) 26388 return 1; 26389 fprintf (f, "%ld\n", i); 26390 } 26391 else 26392 { 26393 unsigned long int i = ulongval (); 26394 if (i != (sizeof (size_t) * CHAR_BIT - 1)) 26395 return 1; 26396 fprintf (f, "%lu\n", i); 26397 } 26398 return ferror (f) || fclose (f) != 0; 26399 26400 ; 26401 return 0; 26402 } 26403 _ACEOF 26404 rm -f conftest$ac_exeext 26405 if { (ac_try="$ac_link" 26406 case "(($ac_try" in 26407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26408 *) ac_try_echo=$ac_try;; 26409 esac 26410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26411 (eval "$ac_link") 2>&5 26412 ac_status=$? 26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26415 { (case "(($ac_try" in 26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26417 *) ac_try_echo=$ac_try;; 26418 esac 26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26420 (eval "$ac_try") 2>&5 26421 ac_status=$? 26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26423 (exit $ac_status); }; }; then 26424 size_t_bits_minus_1=`cat conftest.val` 26425 else 26426 echo "$as_me: program exited with status $ac_status" >&5 26427 echo "$as_me: failed program was:" >&5 26428 sed 's/^/| /' conftest.$ac_ext >&5 26429 26430 ( exit $ac_status ) 26431 size_t_bits_minus_1= 26432 fi 26433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26434 fi 26435 rm -f conftest.val 26436 26437 if test "$cross_compiling" = yes; then 26438 # Depending upon the size, compute the lo and hi bounds. 26439 cat >conftest.$ac_ext <<_ACEOF 26440 /* confdefs.h. */ 26441 _ACEOF 26442 cat confdefs.h >>conftest.$ac_ext 26443 cat >>conftest.$ac_ext <<_ACEOF 26444 /* end confdefs.h. */ 26445 #include <stddef.h> 26446 int 26447 main () 26448 { 26449 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 26450 test_array [0] = 0 26451 26452 ; 26453 return 0; 26454 } 26455 _ACEOF 26456 rm -f conftest.$ac_objext 26457 if { (ac_try="$ac_compile" 26458 case "(($ac_try" in 26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26460 *) ac_try_echo=$ac_try;; 26461 esac 26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26463 (eval "$ac_compile") 2>conftest.er1 26464 ac_status=$? 26465 grep -v '^ *+' conftest.er1 >conftest.err 26466 rm -f conftest.er1 26467 cat conftest.err >&5 26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26469 (exit $ac_status); } && { 26470 test -z "$ac_c_werror_flag" || 26471 test ! -s conftest.err 26472 } && test -s conftest.$ac_objext; then 26473 ac_lo=0 ac_mid=0 26474 while :; do 26475 cat >conftest.$ac_ext <<_ACEOF 26476 /* confdefs.h. */ 26477 _ACEOF 26478 cat confdefs.h >>conftest.$ac_ext 26479 cat >>conftest.$ac_ext <<_ACEOF 26480 /* end confdefs.h. */ 26481 #include <stddef.h> 26482 int 26483 main () 26484 { 26485 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 26486 test_array [0] = 0 26487 26488 ; 26489 return 0; 26490 } 26491 _ACEOF 26492 rm -f conftest.$ac_objext 26493 if { (ac_try="$ac_compile" 26494 case "(($ac_try" in 26495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26496 *) ac_try_echo=$ac_try;; 26497 esac 26498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26499 (eval "$ac_compile") 2>conftest.er1 26500 ac_status=$? 26501 grep -v '^ *+' conftest.er1 >conftest.err 26502 rm -f conftest.er1 26503 cat conftest.err >&5 26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26505 (exit $ac_status); } && { 26506 test -z "$ac_c_werror_flag" || 26507 test ! -s conftest.err 26508 } && test -s conftest.$ac_objext; then 26509 ac_hi=$ac_mid; break 26510 else 26511 echo "$as_me: failed program was:" >&5 26512 sed 's/^/| /' conftest.$ac_ext >&5 26513 26514 ac_lo=`expr $ac_mid + 1` 26515 if test $ac_lo -le $ac_mid; then 26516 ac_lo= ac_hi= 26517 break 26518 fi 26519 ac_mid=`expr 2 '*' $ac_mid + 1` 26520 fi 26521 26522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26523 done 26524 else 26525 echo "$as_me: failed program was:" >&5 26526 sed 's/^/| /' conftest.$ac_ext >&5 26527 26528 cat >conftest.$ac_ext <<_ACEOF 26529 /* confdefs.h. */ 26530 _ACEOF 26531 cat confdefs.h >>conftest.$ac_ext 26532 cat >>conftest.$ac_ext <<_ACEOF 26533 /* end confdefs.h. */ 26534 #include <stddef.h> 26535 int 26536 main () 26537 { 26538 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 26539 test_array [0] = 0 26540 26541 ; 26542 return 0; 26543 } 26544 _ACEOF 26545 rm -f conftest.$ac_objext 26546 if { (ac_try="$ac_compile" 26547 case "(($ac_try" in 26548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26549 *) ac_try_echo=$ac_try;; 26550 esac 26551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26552 (eval "$ac_compile") 2>conftest.er1 26553 ac_status=$? 26554 grep -v '^ *+' conftest.er1 >conftest.err 26555 rm -f conftest.er1 26556 cat conftest.err >&5 26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26558 (exit $ac_status); } && { 26559 test -z "$ac_c_werror_flag" || 26560 test ! -s conftest.err 26561 } && test -s conftest.$ac_objext; then 26562 ac_hi=-1 ac_mid=-1 26563 while :; do 26564 cat >conftest.$ac_ext <<_ACEOF 26565 /* confdefs.h. */ 26566 _ACEOF 26567 cat confdefs.h >>conftest.$ac_ext 26568 cat >>conftest.$ac_ext <<_ACEOF 26569 /* end confdefs.h. */ 26570 #include <stddef.h> 26571 int 26572 main () 26573 { 26574 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 26575 test_array [0] = 0 26576 26577 ; 26578 return 0; 26579 } 26580 _ACEOF 26581 rm -f conftest.$ac_objext 26582 if { (ac_try="$ac_compile" 26583 case "(($ac_try" in 26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26585 *) ac_try_echo=$ac_try;; 26586 esac 26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26588 (eval "$ac_compile") 2>conftest.er1 26589 ac_status=$? 26590 grep -v '^ *+' conftest.er1 >conftest.err 26591 rm -f conftest.er1 26592 cat conftest.err >&5 26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26594 (exit $ac_status); } && { 26595 test -z "$ac_c_werror_flag" || 26596 test ! -s conftest.err 26597 } && test -s conftest.$ac_objext; then 26598 ac_lo=$ac_mid; break 26599 else 26600 echo "$as_me: failed program was:" >&5 26601 sed 's/^/| /' conftest.$ac_ext >&5 26602 26603 ac_hi=`expr '(' $ac_mid ')' - 1` 26604 if test $ac_mid -le $ac_hi; then 26605 ac_lo= ac_hi= 26606 break 26607 fi 26608 ac_mid=`expr 2 '*' $ac_mid` 26609 fi 26610 26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26612 done 26613 else 26614 echo "$as_me: failed program was:" >&5 26615 sed 's/^/| /' conftest.$ac_ext >&5 26616 26617 ac_lo= ac_hi= 26618 fi 26619 26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26621 fi 26622 26623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26624 # Binary search between lo and hi bounds. 26625 while test "x$ac_lo" != "x$ac_hi"; do 26626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 26627 cat >conftest.$ac_ext <<_ACEOF 26628 /* confdefs.h. */ 26629 _ACEOF 26630 cat confdefs.h >>conftest.$ac_ext 26631 cat >>conftest.$ac_ext <<_ACEOF 26632 /* end confdefs.h. */ 26633 #include <stddef.h> 26634 int 26635 main () 26636 { 26637 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 26638 test_array [0] = 0 26639 26640 ; 26641 return 0; 26642 } 26643 _ACEOF 26644 rm -f conftest.$ac_objext 26645 if { (ac_try="$ac_compile" 26646 case "(($ac_try" in 26647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26648 *) ac_try_echo=$ac_try;; 26649 esac 26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26651 (eval "$ac_compile") 2>conftest.er1 26652 ac_status=$? 26653 grep -v '^ *+' conftest.er1 >conftest.err 26654 rm -f conftest.er1 26655 cat conftest.err >&5 26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26657 (exit $ac_status); } && { 26658 test -z "$ac_c_werror_flag" || 26659 test ! -s conftest.err 26660 } && test -s conftest.$ac_objext; then 26661 ac_hi=$ac_mid 26662 else 26663 echo "$as_me: failed program was:" >&5 26664 sed 's/^/| /' conftest.$ac_ext >&5 26665 26666 ac_lo=`expr '(' $ac_mid ')' + 1` 26667 fi 26668 26669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26670 done 26671 case $ac_lo in 26672 ?*) fits_in_uint=$ac_lo;; 26673 '') fits_in_uint= ;; 26674 esac 26675 else 26676 cat >conftest.$ac_ext <<_ACEOF 26677 /* confdefs.h. */ 26678 _ACEOF 26679 cat confdefs.h >>conftest.$ac_ext 26680 cat >>conftest.$ac_ext <<_ACEOF 26681 /* end confdefs.h. */ 26682 #include <stddef.h> 26683 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 26684 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 26685 #include <stdio.h> 26686 #include <stdlib.h> 26687 int 26688 main () 26689 { 26690 26691 FILE *f = fopen ("conftest.val", "w"); 26692 if (! f) 26693 return 1; 26694 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 26695 { 26696 long int i = longval (); 26697 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 26698 return 1; 26699 fprintf (f, "%ld\n", i); 26700 } 26701 else 26702 { 26703 unsigned long int i = ulongval (); 26704 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 26705 return 1; 26706 fprintf (f, "%lu\n", i); 26707 } 26708 return ferror (f) || fclose (f) != 0; 26709 26710 ; 26711 return 0; 26712 } 26713 _ACEOF 26714 rm -f conftest$ac_exeext 26715 if { (ac_try="$ac_link" 26716 case "(($ac_try" in 26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26718 *) ac_try_echo=$ac_try;; 26719 esac 26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26721 (eval "$ac_link") 2>&5 26722 ac_status=$? 26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26725 { (case "(($ac_try" in 26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26727 *) ac_try_echo=$ac_try;; 26728 esac 26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26730 (eval "$ac_try") 2>&5 26731 ac_status=$? 26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26733 (exit $ac_status); }; }; then 26734 fits_in_uint=`cat conftest.val` 26735 else 26736 echo "$as_me: program exited with status $ac_status" >&5 26737 echo "$as_me: failed program was:" >&5 26738 sed 's/^/| /' conftest.$ac_ext >&5 26739 26740 ( exit $ac_status ) 26741 fits_in_uint= 26742 fi 26743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26744 fi 26745 rm -f conftest.val 26746 26747 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 26748 if test $fits_in_uint = 1; then 26749 cat >conftest.$ac_ext <<_ACEOF 26750 /* confdefs.h. */ 26751 _ACEOF 26752 cat confdefs.h >>conftest.$ac_ext 26753 cat >>conftest.$ac_ext <<_ACEOF 26754 /* end confdefs.h. */ 26755 #include <stddef.h> 26756 extern size_t foo; 26757 extern unsigned long foo; 26758 26759 int 26760 main () 26761 { 26762 26763 ; 26764 return 0; 26765 } 26766 _ACEOF 26767 rm -f conftest.$ac_objext 26768 if { (ac_try="$ac_compile" 26769 case "(($ac_try" in 26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26771 *) ac_try_echo=$ac_try;; 26772 esac 26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26774 (eval "$ac_compile") 2>conftest.er1 26775 ac_status=$? 26776 grep -v '^ *+' conftest.er1 >conftest.err 26777 rm -f conftest.er1 26778 cat conftest.err >&5 26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26780 (exit $ac_status); } && { 26781 test -z "$ac_c_werror_flag" || 26782 test ! -s conftest.err 26783 } && test -s conftest.$ac_objext; then 26784 fits_in_uint=0 26785 else 26786 echo "$as_me: failed program was:" >&5 26787 sed 's/^/| /' conftest.$ac_ext >&5 26788 26789 26790 fi 26791 26792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26793 fi 26794 if test $fits_in_uint = 1; then 26795 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 26796 else 26797 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 26798 fi 26799 else 26800 gl_cv_size_max='((size_t)~(size_t)0)' 26801 fi 26802 fi 26803 26804 fi 26805 26806 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 26807 echo "${ECHO_T}$gl_cv_size_max" >&6; } 26808 if test "$gl_cv_size_max" != yes; then 26809 26810 cat >>confdefs.h <<_ACEOF 26811 #define SIZE_MAX $gl_cv_size_max 26812 _ACEOF 26813 26814 fi 26815 26816 26817 26818 26819 26820 for ac_header in stdint.h 26821 do 26822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 26823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26824 { echo "$as_me:$LINENO: checking for $ac_header" >&5 26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26827 echo $ECHO_N "(cached) $ECHO_C" >&6 26828 fi 26829 ac_res=`eval echo '${'$as_ac_Header'}'` 26830 { echo "$as_me:$LINENO: result: $ac_res" >&5 26831 echo "${ECHO_T}$ac_res" >&6; } 26832 else 26833 # Is the header compilable? 26834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 26835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 26836 cat >conftest.$ac_ext <<_ACEOF 26837 /* confdefs.h. */ 26838 _ACEOF 26839 cat confdefs.h >>conftest.$ac_ext 26840 cat >>conftest.$ac_ext <<_ACEOF 26841 /* end confdefs.h. */ 26842 $ac_includes_default 26843 #include <$ac_header> 26844 _ACEOF 26845 rm -f conftest.$ac_objext 26846 if { (ac_try="$ac_compile" 26847 case "(($ac_try" in 26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26849 *) ac_try_echo=$ac_try;; 26850 esac 26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26852 (eval "$ac_compile") 2>conftest.er1 26853 ac_status=$? 26854 grep -v '^ *+' conftest.er1 >conftest.err 26855 rm -f conftest.er1 26856 cat conftest.err >&5 26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26858 (exit $ac_status); } && { 26859 test -z "$ac_c_werror_flag" || 26860 test ! -s conftest.err 26861 } && test -s conftest.$ac_objext; then 26862 ac_header_compiler=yes 26863 else 26864 echo "$as_me: failed program was:" >&5 26865 sed 's/^/| /' conftest.$ac_ext >&5 26866 26867 ac_header_compiler=no 26868 fi 26869 26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26872 echo "${ECHO_T}$ac_header_compiler" >&6; } 26873 26874 # Is the header present? 26875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 26876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 26877 cat >conftest.$ac_ext <<_ACEOF 26878 /* confdefs.h. */ 26879 _ACEOF 26880 cat confdefs.h >>conftest.$ac_ext 26881 cat >>conftest.$ac_ext <<_ACEOF 26882 /* end confdefs.h. */ 26883 #include <$ac_header> 26884 _ACEOF 26885 if { (ac_try="$ac_cpp conftest.$ac_ext" 26886 case "(($ac_try" in 26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26888 *) ac_try_echo=$ac_try;; 26889 esac 26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 26892 ac_status=$? 26893 grep -v '^ *+' conftest.er1 >conftest.err 26894 rm -f conftest.er1 26895 cat conftest.err >&5 26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26897 (exit $ac_status); } >/dev/null && { 26898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 26899 test ! -s conftest.err 26900 }; then 26901 ac_header_preproc=yes 26902 else 26903 echo "$as_me: failed program was:" >&5 26904 sed 's/^/| /' conftest.$ac_ext >&5 26905 26906 ac_header_preproc=no 26907 fi 26908 26909 rm -f conftest.err conftest.$ac_ext 26910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26911 echo "${ECHO_T}$ac_header_preproc" >&6; } 26912 26913 # So? What about this header? 26914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26915 yes:no: ) 26916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 26917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 26918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 26919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 26920 ac_header_preproc=yes 26921 ;; 26922 no:yes:* ) 26923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 26924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 26925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 26926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 26927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 26928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 26929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 26930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 26931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 26932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 26933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 26934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 26935 26936 ;; 26937 esac 26938 { echo "$as_me:$LINENO: checking for $ac_header" >&5 26939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26941 echo $ECHO_N "(cached) $ECHO_C" >&6 26942 else 26943 eval "$as_ac_Header=\$ac_header_preproc" 26944 fi 26945 ac_res=`eval echo '${'$as_ac_Header'}'` 26946 { echo "$as_me:$LINENO: result: $ac_res" >&5 26947 echo "${ECHO_T}$ac_res" >&6; } 26948 26949 fi 26950 if test `eval echo '${'$as_ac_Header'}'` = yes; then 26951 cat >>confdefs.h <<_ACEOF 26952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26953 _ACEOF 26954 26955 fi 26956 26957 done 26958 26959 26960 26961 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 26962 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 26963 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 26964 echo $ECHO_N "(cached) $ECHO_C" >&6 26965 else 26966 gt_save_LIBS="$LIBS" 26967 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 26968 cat >conftest.$ac_ext <<_ACEOF 26969 /* confdefs.h. */ 26970 _ACEOF 26971 cat confdefs.h >>conftest.$ac_ext 26972 cat >>conftest.$ac_ext <<_ACEOF 26973 /* end confdefs.h. */ 26974 #include <CoreFoundation/CFPreferences.h> 26975 int 26976 main () 26977 { 26978 CFPreferencesCopyAppValue(NULL, NULL) 26979 ; 26980 return 0; 26981 } 26982 _ACEOF 26983 rm -f conftest.$ac_objext conftest$ac_exeext 26984 if { (ac_try="$ac_link" 26985 case "(($ac_try" in 26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26987 *) ac_try_echo=$ac_try;; 26988 esac 26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26990 (eval "$ac_link") 2>conftest.er1 26991 ac_status=$? 26992 grep -v '^ *+' conftest.er1 >conftest.err 26993 rm -f conftest.er1 26994 cat conftest.err >&5 26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26996 (exit $ac_status); } && { 26997 test -z "$ac_c_werror_flag" || 26998 test ! -s conftest.err 26999 } && test -s conftest$ac_exeext && 27000 $as_test_x conftest$ac_exeext; then 27001 gt_cv_func_CFPreferencesCopyAppValue=yes 27002 else 27003 echo "$as_me: failed program was:" >&5 27004 sed 's/^/| /' conftest.$ac_ext >&5 27005 27006 gt_cv_func_CFPreferencesCopyAppValue=no 27007 fi 27008 27009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27010 conftest$ac_exeext conftest.$ac_ext 27011 LIBS="$gt_save_LIBS" 27012 fi 27013 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 27014 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 27015 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 27016 27017 cat >>confdefs.h <<\_ACEOF 27018 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 27019 _ACEOF 27020 27021 fi 27022 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 27023 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } 27024 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 27025 echo $ECHO_N "(cached) $ECHO_C" >&6 27026 else 27027 gt_save_LIBS="$LIBS" 27028 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 27029 cat >conftest.$ac_ext <<_ACEOF 27030 /* confdefs.h. */ 27031 _ACEOF 27032 cat confdefs.h >>conftest.$ac_ext 27033 cat >>conftest.$ac_ext <<_ACEOF 27034 /* end confdefs.h. */ 27035 #include <CoreFoundation/CFLocale.h> 27036 int 27037 main () 27038 { 27039 CFLocaleCopyCurrent(); 27040 ; 27041 return 0; 27042 } 27043 _ACEOF 27044 rm -f conftest.$ac_objext conftest$ac_exeext 27045 if { (ac_try="$ac_link" 27046 case "(($ac_try" in 27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27048 *) ac_try_echo=$ac_try;; 27049 esac 27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27051 (eval "$ac_link") 2>conftest.er1 27052 ac_status=$? 27053 grep -v '^ *+' conftest.er1 >conftest.err 27054 rm -f conftest.er1 27055 cat conftest.err >&5 27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27057 (exit $ac_status); } && { 27058 test -z "$ac_c_werror_flag" || 27059 test ! -s conftest.err 27060 } && test -s conftest$ac_exeext && 27061 $as_test_x conftest$ac_exeext; then 27062 gt_cv_func_CFLocaleCopyCurrent=yes 27063 else 27064 echo "$as_me: failed program was:" >&5 27065 sed 's/^/| /' conftest.$ac_ext >&5 27066 27067 gt_cv_func_CFLocaleCopyCurrent=no 27068 fi 27069 27070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27071 conftest$ac_exeext conftest.$ac_ext 27072 LIBS="$gt_save_LIBS" 27073 fi 27074 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 27075 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } 27076 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 27077 27078 cat >>confdefs.h <<\_ACEOF 27079 #define HAVE_CFLOCALECOPYCURRENT 1 27080 _ACEOF 27081 27082 fi 27083 INTL_MACOSX_LIBS= 27084 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 27085 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 27086 fi 27087 27088 27089 27090 27091 27092 27093 27094 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 27095 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 27096 if test "${ac_cv_type_ptrdiff_t+set}" = set; then 27097 echo $ECHO_N "(cached) $ECHO_C" >&6 27098 else 27099 cat >conftest.$ac_ext <<_ACEOF 27100 /* confdefs.h. */ 27101 _ACEOF 27102 cat confdefs.h >>conftest.$ac_ext 27103 cat >>conftest.$ac_ext <<_ACEOF 27104 /* end confdefs.h. */ 27105 $ac_includes_default 27106 typedef ptrdiff_t ac__type_new_; 27107 int 27108 main () 27109 { 27110 if ((ac__type_new_ *) 0) 27111 return 0; 27112 if (sizeof (ac__type_new_)) 27113 return 0; 27114 ; 27115 return 0; 27116 } 27117 _ACEOF 27118 rm -f conftest.$ac_objext 27119 if { (ac_try="$ac_compile" 27120 case "(($ac_try" in 27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27122 *) ac_try_echo=$ac_try;; 27123 esac 27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27125 (eval "$ac_compile") 2>conftest.er1 27126 ac_status=$? 27127 grep -v '^ *+' conftest.er1 >conftest.err 27128 rm -f conftest.er1 27129 cat conftest.err >&5 27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27131 (exit $ac_status); } && { 27132 test -z "$ac_c_werror_flag" || 27133 test ! -s conftest.err 27134 } && test -s conftest.$ac_objext; then 27135 ac_cv_type_ptrdiff_t=yes 27136 else 27137 echo "$as_me: failed program was:" >&5 27138 sed 's/^/| /' conftest.$ac_ext >&5 27139 27140 ac_cv_type_ptrdiff_t=no 27141 fi 27142 27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27144 fi 27145 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 27146 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 27147 if test $ac_cv_type_ptrdiff_t = yes; then 27148 : 27149 else 27150 27151 cat >>confdefs.h <<\_ACEOF 27152 #define ptrdiff_t long 27153 _ACEOF 27154 27155 27156 fi 27157 27158 27159 27160 27161 for ac_header in stddef.h stdlib.h string.h 27162 do 27163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 27164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27165 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27168 echo $ECHO_N "(cached) $ECHO_C" >&6 27169 fi 27170 ac_res=`eval echo '${'$as_ac_Header'}'` 27171 { echo "$as_me:$LINENO: result: $ac_res" >&5 27172 echo "${ECHO_T}$ac_res" >&6; } 27173 else 27174 # Is the header compilable? 27175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 27176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 27177 cat >conftest.$ac_ext <<_ACEOF 27178 /* confdefs.h. */ 27179 _ACEOF 27180 cat confdefs.h >>conftest.$ac_ext 27181 cat >>conftest.$ac_ext <<_ACEOF 27182 /* end confdefs.h. */ 27183 $ac_includes_default 27184 #include <$ac_header> 27185 _ACEOF 27186 rm -f conftest.$ac_objext 27187 if { (ac_try="$ac_compile" 27188 case "(($ac_try" in 27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27190 *) ac_try_echo=$ac_try;; 27191 esac 27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27193 (eval "$ac_compile") 2>conftest.er1 27194 ac_status=$? 27195 grep -v '^ *+' conftest.er1 >conftest.err 27196 rm -f conftest.er1 27197 cat conftest.err >&5 27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27199 (exit $ac_status); } && { 27200 test -z "$ac_c_werror_flag" || 27201 test ! -s conftest.err 27202 } && test -s conftest.$ac_objext; then 27203 ac_header_compiler=yes 27204 else 27205 echo "$as_me: failed program was:" >&5 27206 sed 's/^/| /' conftest.$ac_ext >&5 27207 27208 ac_header_compiler=no 27209 fi 27210 27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27213 echo "${ECHO_T}$ac_header_compiler" >&6; } 27214 27215 # Is the header present? 27216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 27217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 27218 cat >conftest.$ac_ext <<_ACEOF 27219 /* confdefs.h. */ 27220 _ACEOF 27221 cat confdefs.h >>conftest.$ac_ext 27222 cat >>conftest.$ac_ext <<_ACEOF 27223 /* end confdefs.h. */ 27224 #include <$ac_header> 27225 _ACEOF 27226 if { (ac_try="$ac_cpp conftest.$ac_ext" 27227 case "(($ac_try" in 27228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27229 *) ac_try_echo=$ac_try;; 27230 esac 27231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27233 ac_status=$? 27234 grep -v '^ *+' conftest.er1 >conftest.err 27235 rm -f conftest.er1 27236 cat conftest.err >&5 27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27238 (exit $ac_status); } >/dev/null && { 27239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27240 test ! -s conftest.err 27241 }; then 27242 ac_header_preproc=yes 27243 else 27244 echo "$as_me: failed program was:" >&5 27245 sed 's/^/| /' conftest.$ac_ext >&5 27246 27247 ac_header_preproc=no 27248 fi 27249 27250 rm -f conftest.err conftest.$ac_ext 27251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27252 echo "${ECHO_T}$ac_header_preproc" >&6; } 27253 27254 # So? What about this header? 27255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27256 yes:no: ) 27257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 27258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 27259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 27260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 27261 ac_header_preproc=yes 27262 ;; 27263 no:yes:* ) 27264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 27265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 27266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 27267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 27268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 27269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 27270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 27271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 27272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 27273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 27274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 27275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 27276 27277 ;; 27278 esac 27279 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27282 echo $ECHO_N "(cached) $ECHO_C" >&6 27283 else 27284 eval "$as_ac_Header=\$ac_header_preproc" 27285 fi 27286 ac_res=`eval echo '${'$as_ac_Header'}'` 27287 { echo "$as_me:$LINENO: result: $ac_res" >&5 27288 echo "${ECHO_T}$ac_res" >&6; } 27289 27290 fi 27291 if test `eval echo '${'$as_ac_Header'}'` = yes; then 27292 cat >>confdefs.h <<_ACEOF 27293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 27294 _ACEOF 27295 27296 fi 27297 27298 done 27299 27300 27301 27302 27303 27304 27305 27306 27307 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen 27308 do 27309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 27310 { echo "$as_me:$LINENO: checking for $ac_func" >&5 27311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 27312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 27313 echo $ECHO_N "(cached) $ECHO_C" >&6 27314 else 27315 cat >conftest.$ac_ext <<_ACEOF 27316 /* confdefs.h. */ 27317 _ACEOF 27318 cat confdefs.h >>conftest.$ac_ext 27319 cat >>conftest.$ac_ext <<_ACEOF 27320 /* end confdefs.h. */ 27321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 27322 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27323 #define $ac_func innocuous_$ac_func 27324 27325 /* System header to define __stub macros and hopefully few prototypes, 27326 which can conflict with char $ac_func (); below. 27327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27328 <limits.h> exists even on freestanding compilers. */ 27329 27330 #ifdef __STDC__ 27331 # include <limits.h> 27332 #else 27333 # include <assert.h> 27334 #endif 27335 27336 #undef $ac_func 27337 27338 /* Override any GCC internal prototype to avoid an error. 27339 Use char because int might match the return type of a GCC 27340 builtin and then its argument prototype would still apply. */ 27341 #ifdef __cplusplus 27342 extern "C" 27343 #endif 27344 char $ac_func (); 27345 /* The GNU C library defines this for functions which it implements 27346 to always fail with ENOSYS. Some functions are actually named 27347 something starting with __ and the normal name is an alias. */ 27348 #if defined __stub_$ac_func || defined __stub___$ac_func 27349 choke me 27350 #endif 27351 27352 int 27353 main () 27354 { 27355 return $ac_func (); 27356 ; 27357 return 0; 27358 } 27359 _ACEOF 27360 rm -f conftest.$ac_objext conftest$ac_exeext 27361 if { (ac_try="$ac_link" 27362 case "(($ac_try" in 27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27364 *) ac_try_echo=$ac_try;; 27365 esac 27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27367 (eval "$ac_link") 2>conftest.er1 27368 ac_status=$? 27369 grep -v '^ *+' conftest.er1 >conftest.err 27370 rm -f conftest.er1 27371 cat conftest.err >&5 27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27373 (exit $ac_status); } && { 27374 test -z "$ac_c_werror_flag" || 27375 test ! -s conftest.err 27376 } && test -s conftest$ac_exeext && 27377 $as_test_x conftest$ac_exeext; then 27378 eval "$as_ac_var=yes" 27379 else 27380 echo "$as_me: failed program was:" >&5 27381 sed 's/^/| /' conftest.$ac_ext >&5 27382 27383 eval "$as_ac_var=no" 27384 fi 27385 27386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27387 conftest$ac_exeext conftest.$ac_ext 27388 fi 27389 ac_res=`eval echo '${'$as_ac_var'}'` 27390 { echo "$as_me:$LINENO: result: $ac_res" >&5 27391 echo "${ECHO_T}$ac_res" >&6; } 27392 if test `eval echo '${'$as_ac_var'}'` = yes; then 27393 cat >>confdefs.h <<_ACEOF 27394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27395 _ACEOF 27396 27397 fi 27398 done 27399 27400 27401 27402 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 27403 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 27404 if test "${ac_cv_have_decl__snprintf+set}" = set; then 27405 echo $ECHO_N "(cached) $ECHO_C" >&6 27406 else 27407 cat >conftest.$ac_ext <<_ACEOF 27408 /* confdefs.h. */ 27409 _ACEOF 27410 cat confdefs.h >>conftest.$ac_ext 27411 cat >>conftest.$ac_ext <<_ACEOF 27412 /* end confdefs.h. */ 27413 #include <stdio.h> 27414 int 27415 main () 27416 { 27417 27418 #ifndef _snprintf 27419 char *p = (char *) _snprintf; 27420 #endif 27421 27422 ; 27423 return 0; 27424 } 27425 _ACEOF 27426 rm -f conftest.$ac_objext 27427 if { (ac_try="$ac_compile" 27428 case "(($ac_try" in 27429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27430 *) ac_try_echo=$ac_try;; 27431 esac 27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27433 (eval "$ac_compile") 2>conftest.er1 27434 ac_status=$? 27435 grep -v '^ *+' conftest.er1 >conftest.err 27436 rm -f conftest.er1 27437 cat conftest.err >&5 27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27439 (exit $ac_status); } && { 27440 test -z "$ac_c_werror_flag" || 27441 test ! -s conftest.err 27442 } && test -s conftest.$ac_objext; then 27443 ac_cv_have_decl__snprintf=yes 27444 else 27445 echo "$as_me: failed program was:" >&5 27446 sed 's/^/| /' conftest.$ac_ext >&5 27447 27448 ac_cv_have_decl__snprintf=no 27449 fi 27450 27451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27452 fi 27453 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 27454 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 27455 if test $ac_cv_have_decl__snprintf = yes; then 27456 gt_value=1 27457 else 27458 gt_value=0 27459 fi 27460 27461 cat >>confdefs.h <<_ACEOF 27462 #define HAVE_DECL__SNPRINTF $gt_value 27463 _ACEOF 27464 27465 27466 27467 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 27468 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } 27469 if test "${ac_cv_have_decl__snwprintf+set}" = set; then 27470 echo $ECHO_N "(cached) $ECHO_C" >&6 27471 else 27472 cat >conftest.$ac_ext <<_ACEOF 27473 /* confdefs.h. */ 27474 _ACEOF 27475 cat confdefs.h >>conftest.$ac_ext 27476 cat >>conftest.$ac_ext <<_ACEOF 27477 /* end confdefs.h. */ 27478 #include <stdio.h> 27479 int 27480 main () 27481 { 27482 27483 #ifndef _snwprintf 27484 char *p = (char *) _snwprintf; 27485 #endif 27486 27487 ; 27488 return 0; 27489 } 27490 _ACEOF 27491 rm -f conftest.$ac_objext 27492 if { (ac_try="$ac_compile" 27493 case "(($ac_try" in 27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27495 *) ac_try_echo=$ac_try;; 27496 esac 27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27498 (eval "$ac_compile") 2>conftest.er1 27499 ac_status=$? 27500 grep -v '^ *+' conftest.er1 >conftest.err 27501 rm -f conftest.er1 27502 cat conftest.err >&5 27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27504 (exit $ac_status); } && { 27505 test -z "$ac_c_werror_flag" || 27506 test ! -s conftest.err 27507 } && test -s conftest.$ac_objext; then 27508 ac_cv_have_decl__snwprintf=yes 27509 else 27510 echo "$as_me: failed program was:" >&5 27511 sed 's/^/| /' conftest.$ac_ext >&5 27512 27513 ac_cv_have_decl__snwprintf=no 27514 fi 27515 27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27517 fi 27518 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 27519 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } 27520 if test $ac_cv_have_decl__snwprintf = yes; then 27521 gt_value=1 27522 else 27523 gt_value=0 27524 fi 27525 27526 cat >>confdefs.h <<_ACEOF 27527 #define HAVE_DECL__SNWPRINTF $gt_value 27528 _ACEOF 27529 27530 27531 27532 27533 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 27534 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 27535 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 27536 echo $ECHO_N "(cached) $ECHO_C" >&6 27537 else 27538 cat >conftest.$ac_ext <<_ACEOF 27539 /* confdefs.h. */ 27540 _ACEOF 27541 cat confdefs.h >>conftest.$ac_ext 27542 cat >>conftest.$ac_ext <<_ACEOF 27543 /* end confdefs.h. */ 27544 #include <stdio.h> 27545 int 27546 main () 27547 { 27548 27549 #ifndef getc_unlocked 27550 char *p = (char *) getc_unlocked; 27551 #endif 27552 27553 ; 27554 return 0; 27555 } 27556 _ACEOF 27557 rm -f conftest.$ac_objext 27558 if { (ac_try="$ac_compile" 27559 case "(($ac_try" in 27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27561 *) ac_try_echo=$ac_try;; 27562 esac 27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27564 (eval "$ac_compile") 2>conftest.er1 27565 ac_status=$? 27566 grep -v '^ *+' conftest.er1 >conftest.err 27567 rm -f conftest.er1 27568 cat conftest.err >&5 27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27570 (exit $ac_status); } && { 27571 test -z "$ac_c_werror_flag" || 27572 test ! -s conftest.err 27573 } && test -s conftest.$ac_objext; then 27574 ac_cv_have_decl_getc_unlocked=yes 27575 else 27576 echo "$as_me: failed program was:" >&5 27577 sed 's/^/| /' conftest.$ac_ext >&5 27578 27579 ac_cv_have_decl_getc_unlocked=no 27580 fi 27581 27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27583 fi 27584 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 27585 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 27586 if test $ac_cv_have_decl_getc_unlocked = yes; then 27587 gt_value=1 27588 else 27589 gt_value=0 27590 fi 27591 27592 cat >>confdefs.h <<_ACEOF 27593 #define HAVE_DECL_GETC_UNLOCKED $gt_value 27594 _ACEOF 27595 27596 27597 27598 case $gt_cv_func_printf_posix in 27599 *yes) HAVE_POSIX_PRINTF=1 ;; 27600 *) HAVE_POSIX_PRINTF=0 ;; 27601 esac 27602 27603 if test "$ac_cv_func_asprintf" = yes; then 27604 HAVE_ASPRINTF=1 27605 else 27606 HAVE_ASPRINTF=0 27607 fi 27608 27609 if test "$ac_cv_func_snprintf" = yes; then 27610 HAVE_SNPRINTF=1 27611 else 27612 HAVE_SNPRINTF=0 27613 fi 27614 27615 if test "$ac_cv_func_wprintf" = yes; then 27616 HAVE_WPRINTF=1 27617 else 27618 HAVE_WPRINTF=0 27619 fi 27620 27621 27622 27623 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 27624 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } 27625 if test "${am_cv_langinfo_codeset+set}" = set; then 27626 echo $ECHO_N "(cached) $ECHO_C" >&6 27627 else 27628 cat >conftest.$ac_ext <<_ACEOF 27629 /* confdefs.h. */ 27630 _ACEOF 27631 cat confdefs.h >>conftest.$ac_ext 27632 cat >>conftest.$ac_ext <<_ACEOF 27633 /* end confdefs.h. */ 27634 #include <langinfo.h> 27635 int 27636 main () 27637 { 27638 char* cs = nl_langinfo(CODESET); return !cs; 27639 ; 27640 return 0; 27641 } 27642 _ACEOF 27643 rm -f conftest.$ac_objext conftest$ac_exeext 27644 if { (ac_try="$ac_link" 27645 case "(($ac_try" in 27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27647 *) ac_try_echo=$ac_try;; 27648 esac 27649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27650 (eval "$ac_link") 2>conftest.er1 27651 ac_status=$? 27652 grep -v '^ *+' conftest.er1 >conftest.err 27653 rm -f conftest.er1 27654 cat conftest.err >&5 27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27656 (exit $ac_status); } && { 27657 test -z "$ac_c_werror_flag" || 27658 test ! -s conftest.err 27659 } && test -s conftest$ac_exeext && 27660 $as_test_x conftest$ac_exeext; then 27661 am_cv_langinfo_codeset=yes 27662 else 27663 echo "$as_me: failed program was:" >&5 27664 sed 's/^/| /' conftest.$ac_ext >&5 27665 27666 am_cv_langinfo_codeset=no 27667 fi 27668 27669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27670 conftest$ac_exeext conftest.$ac_ext 27671 27672 fi 27673 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 27674 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } 27675 if test $am_cv_langinfo_codeset = yes; then 27676 27677 cat >>confdefs.h <<\_ACEOF 27678 #define HAVE_LANGINFO_CODESET 1 27679 _ACEOF 27680 27681 fi 27682 27683 27684 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 27685 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 27686 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then 27687 echo $ECHO_N "(cached) $ECHO_C" >&6 27688 else 27689 cat >conftest.$ac_ext <<_ACEOF 27690 /* confdefs.h. */ 27691 _ACEOF 27692 cat confdefs.h >>conftest.$ac_ext 27693 cat >>conftest.$ac_ext <<_ACEOF 27694 /* end confdefs.h. */ 27695 #include <locale.h> 27696 int 27697 main () 27698 { 27699 return LC_MESSAGES 27700 ; 27701 return 0; 27702 } 27703 _ACEOF 27704 rm -f conftest.$ac_objext conftest$ac_exeext 27705 if { (ac_try="$ac_link" 27706 case "(($ac_try" in 27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27708 *) ac_try_echo=$ac_try;; 27709 esac 27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27711 (eval "$ac_link") 2>conftest.er1 27712 ac_status=$? 27713 grep -v '^ *+' conftest.er1 >conftest.err 27714 rm -f conftest.er1 27715 cat conftest.err >&5 27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27717 (exit $ac_status); } && { 27718 test -z "$ac_c_werror_flag" || 27719 test ! -s conftest.err 27720 } && test -s conftest$ac_exeext && 27721 $as_test_x conftest$ac_exeext; then 27722 gt_cv_val_LC_MESSAGES=yes 27723 else 27724 echo "$as_me: failed program was:" >&5 27725 sed 's/^/| /' conftest.$ac_ext >&5 27726 27727 gt_cv_val_LC_MESSAGES=no 27728 fi 27729 27730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27731 conftest$ac_exeext conftest.$ac_ext 27732 fi 27733 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 27734 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } 27735 if test $gt_cv_val_LC_MESSAGES = yes; then 27736 27737 cat >>confdefs.h <<\_ACEOF 27738 #define HAVE_LC_MESSAGES 1 27739 _ACEOF 27740 27741 fi 27742 27743 27744 if test "$enable_shared" = yes; then 27745 case "$host_os" in 27746 cygwin*) is_woe32dll=yes ;; 27747 *) is_woe32dll=no ;; 27748 esac 27749 else 27750 is_woe32dll=no 27751 fi 27752 WOE32DLL=$is_woe32dll 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 27777 27778 27779 27780 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 27781 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 27782 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 27783 echo $ECHO_N "(cached) $ECHO_C" >&6 27784 else 27785 gt_save_LIBS="$LIBS" 27786 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 27787 cat >conftest.$ac_ext <<_ACEOF 27788 /* confdefs.h. */ 27789 _ACEOF 27790 cat confdefs.h >>conftest.$ac_ext 27791 cat >>conftest.$ac_ext <<_ACEOF 27792 /* end confdefs.h. */ 27793 #include <CoreFoundation/CFPreferences.h> 27794 int 27795 main () 27796 { 27797 CFPreferencesCopyAppValue(NULL, NULL) 27798 ; 27799 return 0; 27800 } 27801 _ACEOF 27802 rm -f conftest.$ac_objext conftest$ac_exeext 27803 if { (ac_try="$ac_link" 27804 case "(($ac_try" in 27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27806 *) ac_try_echo=$ac_try;; 27807 esac 27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27809 (eval "$ac_link") 2>conftest.er1 27810 ac_status=$? 27811 grep -v '^ *+' conftest.er1 >conftest.err 27812 rm -f conftest.er1 27813 cat conftest.err >&5 27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27815 (exit $ac_status); } && { 27816 test -z "$ac_c_werror_flag" || 27817 test ! -s conftest.err 27818 } && test -s conftest$ac_exeext && 27819 $as_test_x conftest$ac_exeext; then 27820 gt_cv_func_CFPreferencesCopyAppValue=yes 27821 else 27822 echo "$as_me: failed program was:" >&5 27823 sed 's/^/| /' conftest.$ac_ext >&5 27824 27825 gt_cv_func_CFPreferencesCopyAppValue=no 27826 fi 27827 27828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27829 conftest$ac_exeext conftest.$ac_ext 27830 LIBS="$gt_save_LIBS" 27831 fi 27832 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 27833 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 27834 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 27835 27836 cat >>confdefs.h <<\_ACEOF 27837 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 27838 _ACEOF 27839 27840 fi 27841 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 27842 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } 27843 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 27844 echo $ECHO_N "(cached) $ECHO_C" >&6 27845 else 27846 gt_save_LIBS="$LIBS" 27847 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 27848 cat >conftest.$ac_ext <<_ACEOF 27849 /* confdefs.h. */ 27850 _ACEOF 27851 cat confdefs.h >>conftest.$ac_ext 27852 cat >>conftest.$ac_ext <<_ACEOF 27853 /* end confdefs.h. */ 27854 #include <CoreFoundation/CFLocale.h> 27855 int 27856 main () 27857 { 27858 CFLocaleCopyCurrent(); 27859 ; 27860 return 0; 27861 } 27862 _ACEOF 27863 rm -f conftest.$ac_objext conftest$ac_exeext 27864 if { (ac_try="$ac_link" 27865 case "(($ac_try" in 27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27867 *) ac_try_echo=$ac_try;; 27868 esac 27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27870 (eval "$ac_link") 2>conftest.er1 27871 ac_status=$? 27872 grep -v '^ *+' conftest.er1 >conftest.err 27873 rm -f conftest.er1 27874 cat conftest.err >&5 27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27876 (exit $ac_status); } && { 27877 test -z "$ac_c_werror_flag" || 27878 test ! -s conftest.err 27879 } && test -s conftest$ac_exeext && 27880 $as_test_x conftest$ac_exeext; then 27881 gt_cv_func_CFLocaleCopyCurrent=yes 27882 else 27883 echo "$as_me: failed program was:" >&5 27884 sed 's/^/| /' conftest.$ac_ext >&5 27885 27886 gt_cv_func_CFLocaleCopyCurrent=no 27887 fi 27888 27889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27890 conftest$ac_exeext conftest.$ac_ext 27891 LIBS="$gt_save_LIBS" 27892 fi 27893 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 27894 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } 27895 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 27896 27897 cat >>confdefs.h <<\_ACEOF 27898 #define HAVE_CFLOCALECOPYCURRENT 1 27899 _ACEOF 27900 27901 fi 27902 INTL_MACOSX_LIBS= 27903 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 27904 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 27905 fi 27906 27907 27908 27909 27910 27911 27912 BUILD_INCLUDED_LIBINTL=no 27913 USE_INCLUDED_LIBINTL=no 27914 27915 LIBINTL= 27916 LTLIBINTL= 27917 POSUB= 27918 27919 case " $gt_needs " in 27920 *" need-formatstring-macros "*) gt_api_version=3 ;; 27921 *" need-ngettext "*) gt_api_version=2 ;; 27922 *) gt_api_version=1 ;; 27923 esac 27924 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 27925 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 27926 27927 if test "$USE_NLS" = "yes"; then 27928 gt_use_preinstalled_gnugettext=no 27929 27930 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 27931 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } 27932 27933 # Check whether --with-included-gettext was given. 27934 if test "${with_included_gettext+set}" = set; then 27935 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 27936 else 27937 nls_cv_force_use_gnu_gettext=no 27938 fi 27939 27940 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 27941 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } 27942 27943 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 27944 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 27945 27946 27947 if test $gt_api_version -ge 3; then 27948 gt_revision_test_code=' 27949 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 27950 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 27951 #endif 27952 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 27953 ' 27954 else 27955 gt_revision_test_code= 27956 fi 27957 if test $gt_api_version -ge 2; then 27958 gt_expression_test_code=' + * ngettext ("", "", 0)' 27959 else 27960 gt_expression_test_code= 27961 fi 27962 27963 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 27964 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 27965 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then 27966 echo $ECHO_N "(cached) $ECHO_C" >&6 27967 else 27968 cat >conftest.$ac_ext <<_ACEOF 27969 /* confdefs.h. */ 27970 _ACEOF 27971 cat confdefs.h >>conftest.$ac_ext 27972 cat >>conftest.$ac_ext <<_ACEOF 27973 /* end confdefs.h. */ 27974 #include <libintl.h> 27975 $gt_revision_test_code 27976 extern int _nl_msg_cat_cntr; 27977 extern int *_nl_domain_bindings; 27978 int 27979 main () 27980 { 27981 bindtextdomain ("", ""); 27982 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 27983 ; 27984 return 0; 27985 } 27986 _ACEOF 27987 rm -f conftest.$ac_objext conftest$ac_exeext 27988 if { (ac_try="$ac_link" 27989 case "(($ac_try" in 27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27991 *) ac_try_echo=$ac_try;; 27992 esac 27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27994 (eval "$ac_link") 2>conftest.er1 27995 ac_status=$? 27996 grep -v '^ *+' conftest.er1 >conftest.err 27997 rm -f conftest.er1 27998 cat conftest.err >&5 27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28000 (exit $ac_status); } && { 28001 test -z "$ac_c_werror_flag" || 28002 test ! -s conftest.err 28003 } && test -s conftest$ac_exeext && 28004 $as_test_x conftest$ac_exeext; then 28005 eval "$gt_func_gnugettext_libc=yes" 28006 else 28007 echo "$as_me: failed program was:" >&5 28008 sed 's/^/| /' conftest.$ac_ext >&5 28009 28010 eval "$gt_func_gnugettext_libc=no" 28011 fi 28012 28013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28014 conftest$ac_exeext conftest.$ac_ext 28015 fi 28016 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 28017 { echo "$as_me:$LINENO: result: $ac_res" >&5 28018 echo "${ECHO_T}$ac_res" >&6; } 28019 28020 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 28021 28022 28023 28024 28025 use_additional=yes 28026 28027 acl_save_prefix="$prefix" 28028 prefix="$acl_final_prefix" 28029 acl_save_exec_prefix="$exec_prefix" 28030 exec_prefix="$acl_final_exec_prefix" 28031 28032 eval additional_includedir=\"$includedir\" 28033 eval additional_libdir=\"$libdir\" 28034 28035 exec_prefix="$acl_save_exec_prefix" 28036 prefix="$acl_save_prefix" 28037 28038 28039 # Check whether --with-libintl-prefix was given. 28040 if test "${with_libintl_prefix+set}" = set; then 28041 withval=$with_libintl_prefix; 28042 if test "X$withval" = "Xno"; then 28043 use_additional=no 28044 else 28045 if test "X$withval" = "X"; then 28046 28047 acl_save_prefix="$prefix" 28048 prefix="$acl_final_prefix" 28049 acl_save_exec_prefix="$exec_prefix" 28050 exec_prefix="$acl_final_exec_prefix" 28051 28052 eval additional_includedir=\"$includedir\" 28053 eval additional_libdir=\"$libdir\" 28054 28055 exec_prefix="$acl_save_exec_prefix" 28056 prefix="$acl_save_prefix" 28057 28058 else 28059 additional_includedir="$withval/include" 28060 additional_libdir="$withval/$acl_libdirstem" 28061 fi 28062 fi 28063 28064 fi 28065 28066 LIBINTL= 28067 LTLIBINTL= 28068 INCINTL= 28069 rpathdirs= 28070 ltrpathdirs= 28071 names_already_handled= 28072 names_next_round='intl ' 28073 while test -n "$names_next_round"; do 28074 names_this_round="$names_next_round" 28075 names_next_round= 28076 for name in $names_this_round; do 28077 already_handled= 28078 for n in $names_already_handled; do 28079 if test "$n" = "$name"; then 28080 already_handled=yes 28081 break 28082 fi 28083 done 28084 if test -z "$already_handled"; then 28085 names_already_handled="$names_already_handled $name" 28086 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 28087 eval value=\"\$HAVE_LIB$uppername\" 28088 if test -n "$value"; then 28089 if test "$value" = yes; then 28090 eval value=\"\$LIB$uppername\" 28091 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 28092 eval value=\"\$LTLIB$uppername\" 28093 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 28094 else 28095 : 28096 fi 28097 else 28098 found_dir= 28099 found_la= 28100 found_so= 28101 found_a= 28102 if test $use_additional = yes; then 28103 if test -n "$shlibext" \ 28104 && { test -f "$additional_libdir/lib$name.$shlibext" \ 28105 || { test "$shlibext" = dll \ 28106 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 28107 found_dir="$additional_libdir" 28108 if test -f "$additional_libdir/lib$name.$shlibext"; then 28109 found_so="$additional_libdir/lib$name.$shlibext" 28110 else 28111 found_so="$additional_libdir/lib$name.dll.a" 28112 fi 28113 if test -f "$additional_libdir/lib$name.la"; then 28114 found_la="$additional_libdir/lib$name.la" 28115 fi 28116 else 28117 if test -f "$additional_libdir/lib$name.$libext"; then 28118 found_dir="$additional_libdir" 28119 found_a="$additional_libdir/lib$name.$libext" 28120 if test -f "$additional_libdir/lib$name.la"; then 28121 found_la="$additional_libdir/lib$name.la" 28122 fi 28123 fi 28124 fi 28125 fi 28126 if test "X$found_dir" = "X"; then 28127 for x in $LDFLAGS $LTLIBINTL; do 28128 28129 acl_save_prefix="$prefix" 28130 prefix="$acl_final_prefix" 28131 acl_save_exec_prefix="$exec_prefix" 28132 exec_prefix="$acl_final_exec_prefix" 28133 eval x=\"$x\" 28134 exec_prefix="$acl_save_exec_prefix" 28135 prefix="$acl_save_prefix" 28136 28137 case "$x" in 28138 -L*) 28139 dir=`echo "X$x" | sed -e 's/^X-L//'` 28140 if test -n "$shlibext" \ 28141 && { test -f "$dir/lib$name.$shlibext" \ 28142 || { test "$shlibext" = dll \ 28143 && test -f "$dir/lib$name.dll.a"; }; }; then 28144 found_dir="$dir" 28145 if test -f "$dir/lib$name.$shlibext"; then 28146 found_so="$dir/lib$name.$shlibext" 28147 else 28148 found_so="$dir/lib$name.dll.a" 28149 fi 28150 if test -f "$dir/lib$name.la"; then 28151 found_la="$dir/lib$name.la" 28152 fi 28153 else 28154 if test -f "$dir/lib$name.$libext"; then 28155 found_dir="$dir" 28156 found_a="$dir/lib$name.$libext" 28157 if test -f "$dir/lib$name.la"; then 28158 found_la="$dir/lib$name.la" 28159 fi 28160 fi 28161 fi 28162 ;; 28163 esac 28164 if test "X$found_dir" != "X"; then 28165 break 28166 fi 28167 done 28168 fi 28169 if test "X$found_dir" != "X"; then 28170 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 28171 if test "X$found_so" != "X"; then 28172 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 28173 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 28174 else 28175 haveit= 28176 for x in $ltrpathdirs; do 28177 if test "X$x" = "X$found_dir"; then 28178 haveit=yes 28179 break 28180 fi 28181 done 28182 if test -z "$haveit"; then 28183 ltrpathdirs="$ltrpathdirs $found_dir" 28184 fi 28185 if test "$hardcode_direct" = yes; then 28186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 28187 else 28188 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 28189 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 28190 haveit= 28191 for x in $rpathdirs; do 28192 if test "X$x" = "X$found_dir"; then 28193 haveit=yes 28194 break 28195 fi 28196 done 28197 if test -z "$haveit"; then 28198 rpathdirs="$rpathdirs $found_dir" 28199 fi 28200 else 28201 haveit= 28202 for x in $LDFLAGS $LIBINTL; do 28203 28204 acl_save_prefix="$prefix" 28205 prefix="$acl_final_prefix" 28206 acl_save_exec_prefix="$exec_prefix" 28207 exec_prefix="$acl_final_exec_prefix" 28208 eval x=\"$x\" 28209 exec_prefix="$acl_save_exec_prefix" 28210 prefix="$acl_save_prefix" 28211 28212 if test "X$x" = "X-L$found_dir"; then 28213 haveit=yes 28214 break 28215 fi 28216 done 28217 if test -z "$haveit"; then 28218 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 28219 fi 28220 if test "$hardcode_minus_L" != no; then 28221 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 28222 else 28223 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 28224 fi 28225 fi 28226 fi 28227 fi 28228 else 28229 if test "X$found_a" != "X"; then 28230 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 28231 else 28232 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 28233 fi 28234 fi 28235 additional_includedir= 28236 case "$found_dir" in 28237 */$acl_libdirstem | */$acl_libdirstem/) 28238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 28239 additional_includedir="$basedir/include" 28240 ;; 28241 esac 28242 if test "X$additional_includedir" != "X"; then 28243 if test "X$additional_includedir" != "X/usr/include"; then 28244 haveit= 28245 if test "X$additional_includedir" = "X/usr/local/include"; then 28246 if test -n "$GCC"; then 28247 case $host_os in 28248 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 28249 esac 28250 fi 28251 fi 28252 if test -z "$haveit"; then 28253 for x in $CPPFLAGS $INCINTL; do 28254 28255 acl_save_prefix="$prefix" 28256 prefix="$acl_final_prefix" 28257 acl_save_exec_prefix="$exec_prefix" 28258 exec_prefix="$acl_final_exec_prefix" 28259 eval x=\"$x\" 28260 exec_prefix="$acl_save_exec_prefix" 28261 prefix="$acl_save_prefix" 28262 28263 if test "X$x" = "X-I$additional_includedir"; then 28264 haveit=yes 28265 break 28266 fi 28267 done 28268 if test -z "$haveit"; then 28269 if test -d "$additional_includedir"; then 28270 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 28271 fi 28272 fi 28273 fi 28274 fi 28275 fi 28276 if test -n "$found_la"; then 28277 save_libdir="$libdir" 28278 case "$found_la" in 28279 */* | *\\*) . "$found_la" ;; 28280 *) . "./$found_la" ;; 28281 esac 28282 libdir="$save_libdir" 28283 for dep in $dependency_libs; do 28284 case "$dep" in 28285 -L*) 28286 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 28287 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 28288 haveit= 28289 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 28290 if test -n "$GCC"; then 28291 case $host_os in 28292 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 28293 esac 28294 fi 28295 fi 28296 if test -z "$haveit"; then 28297 haveit= 28298 for x in $LDFLAGS $LIBINTL; do 28299 28300 acl_save_prefix="$prefix" 28301 prefix="$acl_final_prefix" 28302 acl_save_exec_prefix="$exec_prefix" 28303 exec_prefix="$acl_final_exec_prefix" 28304 eval x=\"$x\" 28305 exec_prefix="$acl_save_exec_prefix" 28306 prefix="$acl_save_prefix" 28307 28308 if test "X$x" = "X-L$additional_libdir"; then 28309 haveit=yes 28310 break 28311 fi 28312 done 28313 if test -z "$haveit"; then 28314 if test -d "$additional_libdir"; then 28315 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 28316 fi 28317 fi 28318 haveit= 28319 for x in $LDFLAGS $LTLIBINTL; do 28320 28321 acl_save_prefix="$prefix" 28322 prefix="$acl_final_prefix" 28323 acl_save_exec_prefix="$exec_prefix" 28324 exec_prefix="$acl_final_exec_prefix" 28325 eval x=\"$x\" 28326 exec_prefix="$acl_save_exec_prefix" 28327 prefix="$acl_save_prefix" 28328 28329 if test "X$x" = "X-L$additional_libdir"; then 28330 haveit=yes 28331 break 28332 fi 28333 done 28334 if test -z "$haveit"; then 28335 if test -d "$additional_libdir"; then 28336 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 28337 fi 28338 fi 28339 fi 28340 fi 28341 ;; 28342 -R*) 28343 dir=`echo "X$dep" | sed -e 's/^X-R//'` 28344 if test "$enable_rpath" != no; then 28345 haveit= 28346 for x in $rpathdirs; do 28347 if test "X$x" = "X$dir"; then 28348 haveit=yes 28349 break 28350 fi 28351 done 28352 if test -z "$haveit"; then 28353 rpathdirs="$rpathdirs $dir" 28354 fi 28355 haveit= 28356 for x in $ltrpathdirs; do 28357 if test "X$x" = "X$dir"; then 28358 haveit=yes 28359 break 28360 fi 28361 done 28362 if test -z "$haveit"; then 28363 ltrpathdirs="$ltrpathdirs $dir" 28364 fi 28365 fi 28366 ;; 28367 -l*) 28368 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 28369 ;; 28370 *.la) 28371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 28372 ;; 28373 *) 28374 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 28375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 28376 ;; 28377 esac 28378 done 28379 fi 28380 else 28381 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 28382 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 28383 fi 28384 fi 28385 fi 28386 done 28387 done 28388 if test "X$rpathdirs" != "X"; then 28389 if test -n "$hardcode_libdir_separator"; then 28390 alldirs= 28391 for found_dir in $rpathdirs; do 28392 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 28393 done 28394 acl_save_libdir="$libdir" 28395 libdir="$alldirs" 28396 eval flag=\"$hardcode_libdir_flag_spec\" 28397 libdir="$acl_save_libdir" 28398 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 28399 else 28400 for found_dir in $rpathdirs; do 28401 acl_save_libdir="$libdir" 28402 libdir="$found_dir" 28403 eval flag=\"$hardcode_libdir_flag_spec\" 28404 libdir="$acl_save_libdir" 28405 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 28406 done 28407 fi 28408 fi 28409 if test "X$ltrpathdirs" != "X"; then 28410 for found_dir in $ltrpathdirs; do 28411 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 28412 done 28413 fi 28414 28415 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 28416 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 28417 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then 28418 echo $ECHO_N "(cached) $ECHO_C" >&6 28419 else 28420 gt_save_CPPFLAGS="$CPPFLAGS" 28421 CPPFLAGS="$CPPFLAGS $INCINTL" 28422 gt_save_LIBS="$LIBS" 28423 LIBS="$LIBS $LIBINTL" 28424 cat >conftest.$ac_ext <<_ACEOF 28425 /* confdefs.h. */ 28426 _ACEOF 28427 cat confdefs.h >>conftest.$ac_ext 28428 cat >>conftest.$ac_ext <<_ACEOF 28429 /* end confdefs.h. */ 28430 #include <libintl.h> 28431 $gt_revision_test_code 28432 extern int _nl_msg_cat_cntr; 28433 extern 28434 #ifdef __cplusplus 28435 "C" 28436 #endif 28437 const char *_nl_expand_alias (const char *); 28438 int 28439 main () 28440 { 28441 bindtextdomain ("", ""); 28442 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 28443 ; 28444 return 0; 28445 } 28446 _ACEOF 28447 rm -f conftest.$ac_objext conftest$ac_exeext 28448 if { (ac_try="$ac_link" 28449 case "(($ac_try" in 28450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28451 *) ac_try_echo=$ac_try;; 28452 esac 28453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28454 (eval "$ac_link") 2>conftest.er1 28455 ac_status=$? 28456 grep -v '^ *+' conftest.er1 >conftest.err 28457 rm -f conftest.er1 28458 cat conftest.err >&5 28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28460 (exit $ac_status); } && { 28461 test -z "$ac_c_werror_flag" || 28462 test ! -s conftest.err 28463 } && test -s conftest$ac_exeext && 28464 $as_test_x conftest$ac_exeext; then 28465 eval "$gt_func_gnugettext_libintl=yes" 28466 else 28467 echo "$as_me: failed program was:" >&5 28468 sed 's/^/| /' conftest.$ac_ext >&5 28469 28470 eval "$gt_func_gnugettext_libintl=no" 28471 fi 28472 28473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28474 conftest$ac_exeext conftest.$ac_ext 28475 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 28476 LIBS="$LIBS $LIBICONV" 28477 cat >conftest.$ac_ext <<_ACEOF 28478 /* confdefs.h. */ 28479 _ACEOF 28480 cat confdefs.h >>conftest.$ac_ext 28481 cat >>conftest.$ac_ext <<_ACEOF 28482 /* end confdefs.h. */ 28483 #include <libintl.h> 28484 $gt_revision_test_code 28485 extern int _nl_msg_cat_cntr; 28486 extern 28487 #ifdef __cplusplus 28488 "C" 28489 #endif 28490 const char *_nl_expand_alias (const char *); 28491 int 28492 main () 28493 { 28494 bindtextdomain ("", ""); 28495 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 28496 ; 28497 return 0; 28498 } 28499 _ACEOF 28500 rm -f conftest.$ac_objext conftest$ac_exeext 28501 if { (ac_try="$ac_link" 28502 case "(($ac_try" in 28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28504 *) ac_try_echo=$ac_try;; 28505 esac 28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28507 (eval "$ac_link") 2>conftest.er1 28508 ac_status=$? 28509 grep -v '^ *+' conftest.er1 >conftest.err 28510 rm -f conftest.er1 28511 cat conftest.err >&5 28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28513 (exit $ac_status); } && { 28514 test -z "$ac_c_werror_flag" || 28515 test ! -s conftest.err 28516 } && test -s conftest$ac_exeext && 28517 $as_test_x conftest$ac_exeext; then 28518 LIBINTL="$LIBINTL $LIBICONV" 28519 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 28520 eval "$gt_func_gnugettext_libintl=yes" 28521 28522 else 28523 echo "$as_me: failed program was:" >&5 28524 sed 's/^/| /' conftest.$ac_ext >&5 28525 28526 28527 fi 28528 28529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28530 conftest$ac_exeext conftest.$ac_ext 28531 fi 28532 CPPFLAGS="$gt_save_CPPFLAGS" 28533 LIBS="$gt_save_LIBS" 28534 fi 28535 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 28536 { echo "$as_me:$LINENO: result: $ac_res" >&5 28537 echo "${ECHO_T}$ac_res" >&6; } 28538 fi 28539 28540 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 28541 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 28542 && test "$PACKAGE" != gettext-runtime \ 28543 && test "$PACKAGE" != gettext-tools; }; then 28544 gt_use_preinstalled_gnugettext=yes 28545 else 28546 LIBINTL= 28547 LTLIBINTL= 28548 INCINTL= 28549 fi 28550 28551 28552 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 28553 nls_cv_use_gnu_gettext=yes 28554 fi 28555 fi 28556 28557 if test "$nls_cv_use_gnu_gettext" = "yes"; then 28558 BUILD_INCLUDED_LIBINTL=yes 28559 USE_INCLUDED_LIBINTL=yes 28560 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" 28561 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" 28562 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 28563 fi 28564 28565 CATOBJEXT= 28566 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 28567 || test "$nls_cv_use_gnu_gettext" = "yes"; then 28568 CATOBJEXT=.gmo 28569 fi 28570 28571 28572 if test -n "$INTL_MACOSX_LIBS"; then 28573 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 28574 || test "$nls_cv_use_gnu_gettext" = "yes"; then 28575 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 28576 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 28577 fi 28578 fi 28579 28580 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 28581 || test "$nls_cv_use_gnu_gettext" = "yes"; then 28582 28583 cat >>confdefs.h <<\_ACEOF 28584 #define ENABLE_NLS 1 28585 _ACEOF 28586 28587 else 28588 USE_NLS=no 28589 fi 28590 fi 28591 28592 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 28593 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 28594 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 28595 echo "${ECHO_T}$USE_NLS" >&6; } 28596 if test "$USE_NLS" = "yes"; then 28597 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 28598 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 28599 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 28600 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 28601 gt_source="external libintl" 28602 else 28603 gt_source="libc" 28604 fi 28605 else 28606 gt_source="included intl directory" 28607 fi 28608 { echo "$as_me:$LINENO: result: $gt_source" >&5 28609 echo "${ECHO_T}$gt_source" >&6; } 28610 fi 28611 28612 if test "$USE_NLS" = "yes"; then 28613 28614 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 28615 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 28616 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 28617 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 28618 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 28619 echo "${ECHO_T}$LIBINTL" >&6; } 28620 28621 for element in $INCINTL; do 28622 haveit= 28623 for x in $CPPFLAGS; do 28624 28625 acl_save_prefix="$prefix" 28626 prefix="$acl_final_prefix" 28627 acl_save_exec_prefix="$exec_prefix" 28628 exec_prefix="$acl_final_exec_prefix" 28629 eval x=\"$x\" 28630 exec_prefix="$acl_save_exec_prefix" 28631 prefix="$acl_save_prefix" 28632 28633 if test "X$x" = "X$element"; then 28634 haveit=yes 28635 break 28636 fi 28637 done 28638 if test -z "$haveit"; then 28639 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 28640 fi 28641 done 28642 28643 fi 28644 28645 28646 cat >>confdefs.h <<\_ACEOF 28647 #define HAVE_GETTEXT 1 28648 _ACEOF 28649 28650 28651 cat >>confdefs.h <<\_ACEOF 28652 #define HAVE_DCGETTEXT 1 28653 _ACEOF 28654 28655 fi 28656 28657 POSUB=po 28658 fi 28659 28660 28661 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 28662 BUILD_INCLUDED_LIBINTL=yes 28663 fi 28664 28665 28666 28667 28668 28669 nls_cv_header_intl= 28670 nls_cv_header_libgt= 28671 28672 DATADIRNAME=share 28673 28674 28675 INSTOBJEXT=.mo 28676 28677 28678 GENCAT=gencat 28679 28680 28681 INTLOBJS= 28682 if test "$USE_INCLUDED_LIBINTL" = yes; then 28683 INTLOBJS="\$(GETTOBJS)" 28684 fi 28685 28686 28687 INTL_LIBTOOL_SUFFIX_PREFIX=l 28688 28689 28690 28691 INTLLIBS="$LIBINTL" 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 for ac_header in $gl_header_list 28705 do 28706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 28707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28708 { echo "$as_me:$LINENO: checking for $ac_header" >&5 28709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 28710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28711 echo $ECHO_N "(cached) $ECHO_C" >&6 28712 fi 28713 ac_res=`eval echo '${'$as_ac_Header'}'` 28714 { echo "$as_me:$LINENO: result: $ac_res" >&5 28715 echo "${ECHO_T}$ac_res" >&6; } 28716 else 28717 # Is the header compilable? 28718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 28719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 28720 cat >conftest.$ac_ext <<_ACEOF 28721 /* confdefs.h. */ 28722 _ACEOF 28723 cat confdefs.h >>conftest.$ac_ext 28724 cat >>conftest.$ac_ext <<_ACEOF 28725 /* end confdefs.h. */ 28726 $ac_includes_default 28727 #include <$ac_header> 28728 _ACEOF 28729 rm -f conftest.$ac_objext 28730 if { (ac_try="$ac_compile" 28731 case "(($ac_try" in 28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28733 *) ac_try_echo=$ac_try;; 28734 esac 28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28736 (eval "$ac_compile") 2>conftest.er1 28737 ac_status=$? 28738 grep -v '^ *+' conftest.er1 >conftest.err 28739 rm -f conftest.er1 28740 cat conftest.err >&5 28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28742 (exit $ac_status); } && { 28743 test -z "$ac_c_werror_flag" || 28744 test ! -s conftest.err 28745 } && test -s conftest.$ac_objext; then 28746 ac_header_compiler=yes 28747 else 28748 echo "$as_me: failed program was:" >&5 28749 sed 's/^/| /' conftest.$ac_ext >&5 28750 28751 ac_header_compiler=no 28752 fi 28753 28754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 28756 echo "${ECHO_T}$ac_header_compiler" >&6; } 28757 28758 # Is the header present? 28759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 28760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 28761 cat >conftest.$ac_ext <<_ACEOF 28762 /* confdefs.h. */ 28763 _ACEOF 28764 cat confdefs.h >>conftest.$ac_ext 28765 cat >>conftest.$ac_ext <<_ACEOF 28766 /* end confdefs.h. */ 28767 #include <$ac_header> 28768 _ACEOF 28769 if { (ac_try="$ac_cpp conftest.$ac_ext" 28770 case "(($ac_try" in 28771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28772 *) ac_try_echo=$ac_try;; 28773 esac 28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 28776 ac_status=$? 28777 grep -v '^ *+' conftest.er1 >conftest.err 28778 rm -f conftest.er1 28779 cat conftest.err >&5 28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28781 (exit $ac_status); } >/dev/null && { 28782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 28783 test ! -s conftest.err 28784 }; then 28785 ac_header_preproc=yes 28786 else 28787 echo "$as_me: failed program was:" >&5 28788 sed 's/^/| /' conftest.$ac_ext >&5 28789 28790 ac_header_preproc=no 28791 fi 28792 28793 rm -f conftest.err conftest.$ac_ext 28794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 28795 echo "${ECHO_T}$ac_header_preproc" >&6; } 28796 28797 # So? What about this header? 28798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 28799 yes:no: ) 28800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 28801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 28802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 28803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 28804 ac_header_preproc=yes 28805 ;; 28806 no:yes:* ) 28807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 28808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 28809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 28810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 28811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 28812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 28813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 28814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 28815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 28816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 28817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 28818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 28819 28820 ;; 28821 esac 28822 { echo "$as_me:$LINENO: checking for $ac_header" >&5 28823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 28824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28825 echo $ECHO_N "(cached) $ECHO_C" >&6 28826 else 28827 eval "$as_ac_Header=\$ac_header_preproc" 28828 fi 28829 ac_res=`eval echo '${'$as_ac_Header'}'` 28830 { echo "$as_me:$LINENO: result: $ac_res" >&5 28831 echo "${ECHO_T}$ac_res" >&6; } 28832 28833 fi 28834 if test `eval echo '${'$as_ac_Header'}'` = yes; then 28835 cat >>confdefs.h <<_ACEOF 28836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 28837 _ACEOF 28838 28839 fi 28840 28841 done 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 for ac_header in stdlib.h 28857 do 28858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 28859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28860 { echo "$as_me:$LINENO: checking for $ac_header" >&5 28861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 28862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28863 echo $ECHO_N "(cached) $ECHO_C" >&6 28864 fi 28865 ac_res=`eval echo '${'$as_ac_Header'}'` 28866 { echo "$as_me:$LINENO: result: $ac_res" >&5 28867 echo "${ECHO_T}$ac_res" >&6; } 28868 else 28869 # Is the header compilable? 28870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 28871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 28872 cat >conftest.$ac_ext <<_ACEOF 28873 /* confdefs.h. */ 28874 _ACEOF 28875 cat confdefs.h >>conftest.$ac_ext 28876 cat >>conftest.$ac_ext <<_ACEOF 28877 /* end confdefs.h. */ 28878 $ac_includes_default 28879 #include <$ac_header> 28880 _ACEOF 28881 rm -f conftest.$ac_objext 28882 if { (ac_try="$ac_compile" 28883 case "(($ac_try" in 28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28885 *) ac_try_echo=$ac_try;; 28886 esac 28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28888 (eval "$ac_compile") 2>conftest.er1 28889 ac_status=$? 28890 grep -v '^ *+' conftest.er1 >conftest.err 28891 rm -f conftest.er1 28892 cat conftest.err >&5 28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28894 (exit $ac_status); } && { 28895 test -z "$ac_c_werror_flag" || 28896 test ! -s conftest.err 28897 } && test -s conftest.$ac_objext; then 28898 ac_header_compiler=yes 28899 else 28900 echo "$as_me: failed program was:" >&5 28901 sed 's/^/| /' conftest.$ac_ext >&5 28902 28903 ac_header_compiler=no 28904 fi 28905 28906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 28908 echo "${ECHO_T}$ac_header_compiler" >&6; } 28909 28910 # Is the header present? 28911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 28912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 28913 cat >conftest.$ac_ext <<_ACEOF 28914 /* confdefs.h. */ 28915 _ACEOF 28916 cat confdefs.h >>conftest.$ac_ext 28917 cat >>conftest.$ac_ext <<_ACEOF 28918 /* end confdefs.h. */ 28919 #include <$ac_header> 28920 _ACEOF 28921 if { (ac_try="$ac_cpp conftest.$ac_ext" 28922 case "(($ac_try" in 28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28924 *) ac_try_echo=$ac_try;; 28925 esac 28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 28928 ac_status=$? 28929 grep -v '^ *+' conftest.er1 >conftest.err 28930 rm -f conftest.er1 28931 cat conftest.err >&5 28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28933 (exit $ac_status); } >/dev/null && { 28934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 28935 test ! -s conftest.err 28936 }; then 28937 ac_header_preproc=yes 28938 else 28939 echo "$as_me: failed program was:" >&5 28940 sed 's/^/| /' conftest.$ac_ext >&5 28941 28942 ac_header_preproc=no 28943 fi 28944 28945 rm -f conftest.err conftest.$ac_ext 28946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 28947 echo "${ECHO_T}$ac_header_preproc" >&6; } 28948 28949 # So? What about this header? 28950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 28951 yes:no: ) 28952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 28953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 28954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 28955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 28956 ac_header_preproc=yes 28957 ;; 28958 no:yes:* ) 28959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 28960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 28961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 28962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 28963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 28964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 28965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 28966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 28967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 28968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 28969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 28970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 28971 28972 ;; 28973 esac 28974 { echo "$as_me:$LINENO: checking for $ac_header" >&5 28975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 28976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 28977 echo $ECHO_N "(cached) $ECHO_C" >&6 28978 else 28979 eval "$as_ac_Header=\$ac_header_preproc" 28980 fi 28981 ac_res=`eval echo '${'$as_ac_Header'}'` 28982 { echo "$as_me:$LINENO: result: $ac_res" >&5 28983 echo "${ECHO_T}$ac_res" >&6; } 28984 28985 fi 28986 if test `eval echo '${'$as_ac_Header'}'` = yes; then 28987 cat >>confdefs.h <<_ACEOF 28988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 28989 _ACEOF 28990 28991 fi 28992 28993 done 28994 28995 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 28996 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 28997 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 28998 echo $ECHO_N "(cached) $ECHO_C" >&6 28999 else 29000 if test "$cross_compiling" = yes; then 29001 ac_cv_func_malloc_0_nonnull=no 29002 else 29003 cat >conftest.$ac_ext <<_ACEOF 29004 /* confdefs.h. */ 29005 _ACEOF 29006 cat confdefs.h >>conftest.$ac_ext 29007 cat >>conftest.$ac_ext <<_ACEOF 29008 /* end confdefs.h. */ 29009 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 29010 # include <stdlib.h> 29011 #else 29012 char *malloc (); 29013 #endif 29014 29015 int 29016 main () 29017 { 29018 return ! malloc (0); 29019 ; 29020 return 0; 29021 } 29022 _ACEOF 29023 rm -f conftest$ac_exeext 29024 if { (ac_try="$ac_link" 29025 case "(($ac_try" in 29026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29027 *) ac_try_echo=$ac_try;; 29028 esac 29029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29030 (eval "$ac_link") 2>&5 29031 ac_status=$? 29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 29034 { (case "(($ac_try" in 29035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29036 *) ac_try_echo=$ac_try;; 29037 esac 29038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29039 (eval "$ac_try") 2>&5 29040 ac_status=$? 29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29042 (exit $ac_status); }; }; then 29043 ac_cv_func_malloc_0_nonnull=yes 29044 else 29045 echo "$as_me: program exited with status $ac_status" >&5 29046 echo "$as_me: failed program was:" >&5 29047 sed 's/^/| /' conftest.$ac_ext >&5 29048 29049 ( exit $ac_status ) 29050 ac_cv_func_malloc_0_nonnull=no 29051 fi 29052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 29053 fi 29054 29055 29056 fi 29057 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 29058 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 29059 if test $ac_cv_func_malloc_0_nonnull = yes; then 29060 gl_cv_func_malloc_0_nonnull=1 29061 else 29062 gl_cv_func_malloc_0_nonnull=0 29063 fi 29064 29065 29066 29067 cat >>confdefs.h <<_ACEOF 29068 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull 29069 _ACEOF 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 29085 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } 29086 if test "${ac_cv_have_decl_strerror_r+set}" = set; then 29087 echo $ECHO_N "(cached) $ECHO_C" >&6 29088 else 29089 cat >conftest.$ac_ext <<_ACEOF 29090 /* confdefs.h. */ 29091 _ACEOF 29092 cat confdefs.h >>conftest.$ac_ext 29093 cat >>conftest.$ac_ext <<_ACEOF 29094 /* end confdefs.h. */ 29095 $ac_includes_default 29096 int 29097 main () 29098 { 29099 #ifndef strerror_r 29100 (void) strerror_r; 29101 #endif 29102 29103 ; 29104 return 0; 29105 } 29106 _ACEOF 29107 rm -f conftest.$ac_objext 29108 if { (ac_try="$ac_compile" 29109 case "(($ac_try" in 29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29111 *) ac_try_echo=$ac_try;; 29112 esac 29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29114 (eval "$ac_compile") 2>conftest.er1 29115 ac_status=$? 29116 grep -v '^ *+' conftest.er1 >conftest.err 29117 rm -f conftest.er1 29118 cat conftest.err >&5 29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29120 (exit $ac_status); } && { 29121 test -z "$ac_c_werror_flag" || 29122 test ! -s conftest.err 29123 } && test -s conftest.$ac_objext; then 29124 ac_cv_have_decl_strerror_r=yes 29125 else 29126 echo "$as_me: failed program was:" >&5 29127 sed 's/^/| /' conftest.$ac_ext >&5 29128 29129 ac_cv_have_decl_strerror_r=no 29130 fi 29131 29132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29133 fi 29134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 29135 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } 29136 if test $ac_cv_have_decl_strerror_r = yes; then 29137 29138 cat >>confdefs.h <<_ACEOF 29139 #define HAVE_DECL_STRERROR_R 1 29140 _ACEOF 29141 29142 29143 else 29144 cat >>confdefs.h <<_ACEOF 29145 #define HAVE_DECL_STRERROR_R 0 29146 _ACEOF 29147 29148 29149 fi 29150 29151 29152 29153 for ac_func in strerror_r 29154 do 29155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29156 { echo "$as_me:$LINENO: checking for $ac_func" >&5 29157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29159 echo $ECHO_N "(cached) $ECHO_C" >&6 29160 else 29161 cat >conftest.$ac_ext <<_ACEOF 29162 /* confdefs.h. */ 29163 _ACEOF 29164 cat confdefs.h >>conftest.$ac_ext 29165 cat >>conftest.$ac_ext <<_ACEOF 29166 /* end confdefs.h. */ 29167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29168 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29169 #define $ac_func innocuous_$ac_func 29170 29171 /* System header to define __stub macros and hopefully few prototypes, 29172 which can conflict with char $ac_func (); below. 29173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29174 <limits.h> exists even on freestanding compilers. */ 29175 29176 #ifdef __STDC__ 29177 # include <limits.h> 29178 #else 29179 # include <assert.h> 29180 #endif 29181 29182 #undef $ac_func 29183 29184 /* Override any GCC internal prototype to avoid an error. 29185 Use char because int might match the return type of a GCC 29186 builtin and then its argument prototype would still apply. */ 29187 #ifdef __cplusplus 29188 extern "C" 29189 #endif 29190 char $ac_func (); 29191 /* The GNU C library defines this for functions which it implements 29192 to always fail with ENOSYS. Some functions are actually named 29193 something starting with __ and the normal name is an alias. */ 29194 #if defined __stub_$ac_func || defined __stub___$ac_func 29195 choke me 29196 #endif 29197 29198 int 29199 main () 29200 { 29201 return $ac_func (); 29202 ; 29203 return 0; 29204 } 29205 _ACEOF 29206 rm -f conftest.$ac_objext conftest$ac_exeext 29207 if { (ac_try="$ac_link" 29208 case "(($ac_try" in 29209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29210 *) ac_try_echo=$ac_try;; 29211 esac 29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29213 (eval "$ac_link") 2>conftest.er1 29214 ac_status=$? 29215 grep -v '^ *+' conftest.er1 >conftest.err 29216 rm -f conftest.er1 29217 cat conftest.err >&5 29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29219 (exit $ac_status); } && { 29220 test -z "$ac_c_werror_flag" || 29221 test ! -s conftest.err 29222 } && test -s conftest$ac_exeext && 29223 $as_test_x conftest$ac_exeext; then 29224 eval "$as_ac_var=yes" 29225 else 29226 echo "$as_me: failed program was:" >&5 29227 sed 's/^/| /' conftest.$ac_ext >&5 29228 29229 eval "$as_ac_var=no" 29230 fi 29231 29232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29233 conftest$ac_exeext conftest.$ac_ext 29234 fi 29235 ac_res=`eval echo '${'$as_ac_var'}'` 29236 { echo "$as_me:$LINENO: result: $ac_res" >&5 29237 echo "${ECHO_T}$ac_res" >&6; } 29238 if test `eval echo '${'$as_ac_var'}'` = yes; then 29239 cat >>confdefs.h <<_ACEOF 29240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29241 _ACEOF 29242 29243 fi 29244 done 29245 29246 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 29247 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } 29248 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 29249 echo $ECHO_N "(cached) $ECHO_C" >&6 29250 else 29251 29252 ac_cv_func_strerror_r_char_p=no 29253 if test $ac_cv_have_decl_strerror_r = yes; then 29254 cat >conftest.$ac_ext <<_ACEOF 29255 /* confdefs.h. */ 29256 _ACEOF 29257 cat confdefs.h >>conftest.$ac_ext 29258 cat >>conftest.$ac_ext <<_ACEOF 29259 /* end confdefs.h. */ 29260 $ac_includes_default 29261 int 29262 main () 29263 { 29264 29265 char buf[100]; 29266 char x = *strerror_r (0, buf, sizeof buf); 29267 char *p = strerror_r (0, buf, sizeof buf); 29268 return !p || x; 29269 29270 ; 29271 return 0; 29272 } 29273 _ACEOF 29274 rm -f conftest.$ac_objext 29275 if { (ac_try="$ac_compile" 29276 case "(($ac_try" in 29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29278 *) ac_try_echo=$ac_try;; 29279 esac 29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29281 (eval "$ac_compile") 2>conftest.er1 29282 ac_status=$? 29283 grep -v '^ *+' conftest.er1 >conftest.err 29284 rm -f conftest.er1 29285 cat conftest.err >&5 29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29287 (exit $ac_status); } && { 29288 test -z "$ac_c_werror_flag" || 29289 test ! -s conftest.err 29290 } && test -s conftest.$ac_objext; then 29291 ac_cv_func_strerror_r_char_p=yes 29292 else 29293 echo "$as_me: failed program was:" >&5 29294 sed 's/^/| /' conftest.$ac_ext >&5 29295 29296 29297 fi 29298 29299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29300 else 29301 # strerror_r is not declared. Choose between 29302 # systems that have relatively inaccessible declarations for the 29303 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 29304 # former has a strerror_r that returns char*, while the latter 29305 # has a strerror_r that returns `int'. 29306 # This test should segfault on the DEC system. 29307 if test "$cross_compiling" = yes; then 29308 : 29309 else 29310 cat >conftest.$ac_ext <<_ACEOF 29311 /* confdefs.h. */ 29312 _ACEOF 29313 cat confdefs.h >>conftest.$ac_ext 29314 cat >>conftest.$ac_ext <<_ACEOF 29315 /* end confdefs.h. */ 29316 $ac_includes_default 29317 extern char *strerror_r (); 29318 int 29319 main () 29320 { 29321 char buf[100]; 29322 char x = *strerror_r (0, buf, sizeof buf); 29323 return ! isalpha (x); 29324 ; 29325 return 0; 29326 } 29327 _ACEOF 29328 rm -f conftest$ac_exeext 29329 if { (ac_try="$ac_link" 29330 case "(($ac_try" in 29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29332 *) ac_try_echo=$ac_try;; 29333 esac 29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29335 (eval "$ac_link") 2>&5 29336 ac_status=$? 29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 29339 { (case "(($ac_try" in 29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29341 *) ac_try_echo=$ac_try;; 29342 esac 29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29344 (eval "$ac_try") 2>&5 29345 ac_status=$? 29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29347 (exit $ac_status); }; }; then 29348 ac_cv_func_strerror_r_char_p=yes 29349 else 29350 echo "$as_me: program exited with status $ac_status" >&5 29351 echo "$as_me: failed program was:" >&5 29352 sed 's/^/| /' conftest.$ac_ext >&5 29353 29354 fi 29355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 29356 fi 29357 29358 29359 fi 29360 29361 fi 29362 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 29363 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } 29364 if test $ac_cv_func_strerror_r_char_p = yes; then 29365 29366 cat >>confdefs.h <<\_ACEOF 29367 #define STRERROR_R_CHAR_P 1 29368 _ACEOF 29369 29370 fi 29371 29372 29373 if test -z "$GETOPT_H"; then 29374 29375 for ac_header in getopt.h 29376 do 29377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 29378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 29379 { echo "$as_me:$LINENO: checking for $ac_header" >&5 29380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 29381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 29382 echo $ECHO_N "(cached) $ECHO_C" >&6 29383 fi 29384 ac_res=`eval echo '${'$as_ac_Header'}'` 29385 { echo "$as_me:$LINENO: result: $ac_res" >&5 29386 echo "${ECHO_T}$ac_res" >&6; } 29387 else 29388 # Is the header compilable? 29389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 29390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 29391 cat >conftest.$ac_ext <<_ACEOF 29392 /* confdefs.h. */ 29393 _ACEOF 29394 cat confdefs.h >>conftest.$ac_ext 29395 cat >>conftest.$ac_ext <<_ACEOF 29396 /* end confdefs.h. */ 29397 $ac_includes_default 29398 #include <$ac_header> 29399 _ACEOF 29400 rm -f conftest.$ac_objext 29401 if { (ac_try="$ac_compile" 29402 case "(($ac_try" in 29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29404 *) ac_try_echo=$ac_try;; 29405 esac 29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29407 (eval "$ac_compile") 2>conftest.er1 29408 ac_status=$? 29409 grep -v '^ *+' conftest.er1 >conftest.err 29410 rm -f conftest.er1 29411 cat conftest.err >&5 29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29413 (exit $ac_status); } && { 29414 test -z "$ac_c_werror_flag" || 29415 test ! -s conftest.err 29416 } && test -s conftest.$ac_objext; then 29417 ac_header_compiler=yes 29418 else 29419 echo "$as_me: failed program was:" >&5 29420 sed 's/^/| /' conftest.$ac_ext >&5 29421 29422 ac_header_compiler=no 29423 fi 29424 29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 29427 echo "${ECHO_T}$ac_header_compiler" >&6; } 29428 29429 # Is the header present? 29430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 29431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 29432 cat >conftest.$ac_ext <<_ACEOF 29433 /* confdefs.h. */ 29434 _ACEOF 29435 cat confdefs.h >>conftest.$ac_ext 29436 cat >>conftest.$ac_ext <<_ACEOF 29437 /* end confdefs.h. */ 29438 #include <$ac_header> 29439 _ACEOF 29440 if { (ac_try="$ac_cpp conftest.$ac_ext" 29441 case "(($ac_try" in 29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29443 *) ac_try_echo=$ac_try;; 29444 esac 29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 29447 ac_status=$? 29448 grep -v '^ *+' conftest.er1 >conftest.err 29449 rm -f conftest.er1 29450 cat conftest.err >&5 29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29452 (exit $ac_status); } >/dev/null && { 29453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 29454 test ! -s conftest.err 29455 }; then 29456 ac_header_preproc=yes 29457 else 29458 echo "$as_me: failed program was:" >&5 29459 sed 's/^/| /' conftest.$ac_ext >&5 29460 29461 ac_header_preproc=no 29462 fi 29463 29464 rm -f conftest.err conftest.$ac_ext 29465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 29466 echo "${ECHO_T}$ac_header_preproc" >&6; } 29467 29468 # So? What about this header? 29469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 29470 yes:no: ) 29471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 29472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 29473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 29474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 29475 ac_header_preproc=yes 29476 ;; 29477 no:yes:* ) 29478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 29479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 29480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 29481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 29482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 29483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 29484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 29485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 29486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 29487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 29488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 29489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 29490 29491 ;; 29492 esac 29493 { echo "$as_me:$LINENO: checking for $ac_header" >&5 29494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 29495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 29496 echo $ECHO_N "(cached) $ECHO_C" >&6 29497 else 29498 eval "$as_ac_Header=\$ac_header_preproc" 29499 fi 29500 ac_res=`eval echo '${'$as_ac_Header'}'` 29501 { echo "$as_me:$LINENO: result: $ac_res" >&5 29502 echo "${ECHO_T}$ac_res" >&6; } 29503 29504 fi 29505 if test `eval echo '${'$as_ac_Header'}'` = yes; then 29506 cat >>confdefs.h <<_ACEOF 29507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 29508 _ACEOF 29509 29510 else 29511 GETOPT_H=getopt.h 29512 fi 29513 29514 done 29515 29516 fi 29517 29518 if test -z "$GETOPT_H"; then 29519 29520 for ac_func in getopt_long_only 29521 do 29522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29523 { echo "$as_me:$LINENO: checking for $ac_func" >&5 29524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29526 echo $ECHO_N "(cached) $ECHO_C" >&6 29527 else 29528 cat >conftest.$ac_ext <<_ACEOF 29529 /* confdefs.h. */ 29530 _ACEOF 29531 cat confdefs.h >>conftest.$ac_ext 29532 cat >>conftest.$ac_ext <<_ACEOF 29533 /* end confdefs.h. */ 29534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29535 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29536 #define $ac_func innocuous_$ac_func 29537 29538 /* System header to define __stub macros and hopefully few prototypes, 29539 which can conflict with char $ac_func (); below. 29540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29541 <limits.h> exists even on freestanding compilers. */ 29542 29543 #ifdef __STDC__ 29544 # include <limits.h> 29545 #else 29546 # include <assert.h> 29547 #endif 29548 29549 #undef $ac_func 29550 29551 /* Override any GCC internal prototype to avoid an error. 29552 Use char because int might match the return type of a GCC 29553 builtin and then its argument prototype would still apply. */ 29554 #ifdef __cplusplus 29555 extern "C" 29556 #endif 29557 char $ac_func (); 29558 /* The GNU C library defines this for functions which it implements 29559 to always fail with ENOSYS. Some functions are actually named 29560 something starting with __ and the normal name is an alias. */ 29561 #if defined __stub_$ac_func || defined __stub___$ac_func 29562 choke me 29563 #endif 29564 29565 int 29566 main () 29567 { 29568 return $ac_func (); 29569 ; 29570 return 0; 29571 } 29572 _ACEOF 29573 rm -f conftest.$ac_objext conftest$ac_exeext 29574 if { (ac_try="$ac_link" 29575 case "(($ac_try" in 29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29577 *) ac_try_echo=$ac_try;; 29578 esac 29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29580 (eval "$ac_link") 2>conftest.er1 29581 ac_status=$? 29582 grep -v '^ *+' conftest.er1 >conftest.err 29583 rm -f conftest.er1 29584 cat conftest.err >&5 29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29586 (exit $ac_status); } && { 29587 test -z "$ac_c_werror_flag" || 29588 test ! -s conftest.err 29589 } && test -s conftest$ac_exeext && 29590 $as_test_x conftest$ac_exeext; then 29591 eval "$as_ac_var=yes" 29592 else 29593 echo "$as_me: failed program was:" >&5 29594 sed 's/^/| /' conftest.$ac_ext >&5 29595 29596 eval "$as_ac_var=no" 29597 fi 29598 29599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29600 conftest$ac_exeext conftest.$ac_ext 29601 fi 29602 ac_res=`eval echo '${'$as_ac_var'}'` 29603 { echo "$as_me:$LINENO: result: $ac_res" >&5 29604 echo "${ECHO_T}$ac_res" >&6; } 29605 if test `eval echo '${'$as_ac_var'}'` = yes; then 29606 cat >>confdefs.h <<_ACEOF 29607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29608 _ACEOF 29609 29610 else 29611 GETOPT_H=getopt.h 29612 fi 29613 done 29614 29615 fi 29616 29617 if test -z "$GETOPT_H"; then 29618 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 29619 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } 29620 if test "${ac_cv_have_decl_optreset+set}" = set; then 29621 echo $ECHO_N "(cached) $ECHO_C" >&6 29622 else 29623 cat >conftest.$ac_ext <<_ACEOF 29624 /* confdefs.h. */ 29625 _ACEOF 29626 cat confdefs.h >>conftest.$ac_ext 29627 cat >>conftest.$ac_ext <<_ACEOF 29628 /* end confdefs.h. */ 29629 #include <getopt.h> 29630 29631 int 29632 main () 29633 { 29634 #ifndef optreset 29635 (void) optreset; 29636 #endif 29637 29638 ; 29639 return 0; 29640 } 29641 _ACEOF 29642 rm -f conftest.$ac_objext 29643 if { (ac_try="$ac_compile" 29644 case "(($ac_try" in 29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29646 *) ac_try_echo=$ac_try;; 29647 esac 29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29649 (eval "$ac_compile") 2>conftest.er1 29650 ac_status=$? 29651 grep -v '^ *+' conftest.er1 >conftest.err 29652 rm -f conftest.er1 29653 cat conftest.err >&5 29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29655 (exit $ac_status); } && { 29656 test -z "$ac_c_werror_flag" || 29657 test ! -s conftest.err 29658 } && test -s conftest.$ac_objext; then 29659 ac_cv_have_decl_optreset=yes 29660 else 29661 echo "$as_me: failed program was:" >&5 29662 sed 's/^/| /' conftest.$ac_ext >&5 29663 29664 ac_cv_have_decl_optreset=no 29665 fi 29666 29667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29668 fi 29669 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 29670 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } 29671 if test $ac_cv_have_decl_optreset = yes; then 29672 GETOPT_H=getopt.h 29673 fi 29674 29675 fi 29676 29677 if test -z "$GETOPT_H"; then 29678 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 29679 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } 29680 if test "${gl_cv_func_gnu_getopt+set}" = set; then 29681 echo $ECHO_N "(cached) $ECHO_C" >&6 29682 else 29683 if test "$cross_compiling" = yes; then 29684 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 29685 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } 29686 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then 29687 echo $ECHO_N "(cached) $ECHO_C" >&6 29688 else 29689 cat >conftest.$ac_ext <<_ACEOF 29690 /* confdefs.h. */ 29691 _ACEOF 29692 cat confdefs.h >>conftest.$ac_ext 29693 cat >>conftest.$ac_ext <<_ACEOF 29694 /* end confdefs.h. */ 29695 #include <getopt.h> 29696 29697 int 29698 main () 29699 { 29700 #ifndef getopt_clip 29701 (void) getopt_clip; 29702 #endif 29703 29704 ; 29705 return 0; 29706 } 29707 _ACEOF 29708 rm -f conftest.$ac_objext 29709 if { (ac_try="$ac_compile" 29710 case "(($ac_try" in 29711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29712 *) ac_try_echo=$ac_try;; 29713 esac 29714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29715 (eval "$ac_compile") 2>conftest.er1 29716 ac_status=$? 29717 grep -v '^ *+' conftest.er1 >conftest.err 29718 rm -f conftest.er1 29719 cat conftest.err >&5 29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29721 (exit $ac_status); } && { 29722 test -z "$ac_c_werror_flag" || 29723 test ! -s conftest.err 29724 } && test -s conftest.$ac_objext; then 29725 ac_cv_have_decl_getopt_clip=yes 29726 else 29727 echo "$as_me: failed program was:" >&5 29728 sed 's/^/| /' conftest.$ac_ext >&5 29729 29730 ac_cv_have_decl_getopt_clip=no 29731 fi 29732 29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29734 fi 29735 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 29736 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } 29737 if test $ac_cv_have_decl_getopt_clip = yes; then 29738 gl_cv_func_gnu_getopt=no 29739 else 29740 gl_cv_func_gnu_getopt=yes 29741 fi 29742 29743 else 29744 cat >conftest.$ac_ext <<_ACEOF 29745 /* confdefs.h. */ 29746 _ACEOF 29747 cat confdefs.h >>conftest.$ac_ext 29748 cat >>conftest.$ac_ext <<_ACEOF 29749 /* end confdefs.h. */ 29750 #include <getopt.h> 29751 int 29752 main () 29753 { 29754 29755 char *myargv[3]; 29756 myargv[0] = "conftest"; 29757 myargv[1] = "-+"; 29758 myargv[2] = 0; 29759 return getopt (2, myargv, "+a") != '?'; 29760 29761 ; 29762 return 0; 29763 } 29764 _ACEOF 29765 rm -f conftest$ac_exeext 29766 if { (ac_try="$ac_link" 29767 case "(($ac_try" in 29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29769 *) ac_try_echo=$ac_try;; 29770 esac 29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29772 (eval "$ac_link") 2>&5 29773 ac_status=$? 29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 29776 { (case "(($ac_try" in 29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29778 *) ac_try_echo=$ac_try;; 29779 esac 29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29781 (eval "$ac_try") 2>&5 29782 ac_status=$? 29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29784 (exit $ac_status); }; }; then 29785 gl_cv_func_gnu_getopt=yes 29786 else 29787 echo "$as_me: program exited with status $ac_status" >&5 29788 echo "$as_me: failed program was:" >&5 29789 sed 's/^/| /' conftest.$ac_ext >&5 29790 29791 ( exit $ac_status ) 29792 gl_cv_func_gnu_getopt=no 29793 fi 29794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 29795 fi 29796 29797 29798 fi 29799 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 29800 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } 29801 if test "$gl_cv_func_gnu_getopt" = "no"; then 29802 GETOPT_H=getopt.h 29803 fi 29804 fi 29805 29806 29807 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5 29808 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; } 29809 if test "${ac_cv_have_decl_getenv+set}" = set; then 29810 echo $ECHO_N "(cached) $ECHO_C" >&6 29811 else 29812 cat >conftest.$ac_ext <<_ACEOF 29813 /* confdefs.h. */ 29814 _ACEOF 29815 cat confdefs.h >>conftest.$ac_ext 29816 cat >>conftest.$ac_ext <<_ACEOF 29817 /* end confdefs.h. */ 29818 $ac_includes_default 29819 int 29820 main () 29821 { 29822 #ifndef getenv 29823 (void) getenv; 29824 #endif 29825 29826 ; 29827 return 0; 29828 } 29829 _ACEOF 29830 rm -f conftest.$ac_objext 29831 if { (ac_try="$ac_compile" 29832 case "(($ac_try" in 29833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29834 *) ac_try_echo=$ac_try;; 29835 esac 29836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29837 (eval "$ac_compile") 2>conftest.er1 29838 ac_status=$? 29839 grep -v '^ *+' conftest.er1 >conftest.err 29840 rm -f conftest.er1 29841 cat conftest.err >&5 29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29843 (exit $ac_status); } && { 29844 test -z "$ac_c_werror_flag" || 29845 test ! -s conftest.err 29846 } && test -s conftest.$ac_objext; then 29847 ac_cv_have_decl_getenv=yes 29848 else 29849 echo "$as_me: failed program was:" >&5 29850 sed 's/^/| /' conftest.$ac_ext >&5 29851 29852 ac_cv_have_decl_getenv=no 29853 fi 29854 29855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29856 fi 29857 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 29858 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; } 29859 if test $ac_cv_have_decl_getenv = yes; then 29860 29861 cat >>confdefs.h <<_ACEOF 29862 #define HAVE_DECL_GETENV 1 29863 _ACEOF 29864 29865 29866 else 29867 cat >>confdefs.h <<_ACEOF 29868 #define HAVE_DECL_GETENV 0 29869 _ACEOF 29870 29871 29872 fi 29873 29874 29875 29876 29877 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 29878 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 29879 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 29880 echo $ECHO_N "(cached) $ECHO_C" >&6 29881 else 29882 cat >conftest.$ac_ext <<_ACEOF 29883 /* confdefs.h. */ 29884 _ACEOF 29885 cat confdefs.h >>conftest.$ac_ext 29886 cat >>conftest.$ac_ext <<_ACEOF 29887 /* end confdefs.h. */ 29888 $ac_includes_default 29889 int 29890 main () 29891 { 29892 #ifndef getc_unlocked 29893 (void) getc_unlocked; 29894 #endif 29895 29896 ; 29897 return 0; 29898 } 29899 _ACEOF 29900 rm -f conftest.$ac_objext 29901 if { (ac_try="$ac_compile" 29902 case "(($ac_try" in 29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29904 *) ac_try_echo=$ac_try;; 29905 esac 29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29907 (eval "$ac_compile") 2>conftest.er1 29908 ac_status=$? 29909 grep -v '^ *+' conftest.er1 >conftest.err 29910 rm -f conftest.er1 29911 cat conftest.err >&5 29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29913 (exit $ac_status); } && { 29914 test -z "$ac_c_werror_flag" || 29915 test ! -s conftest.err 29916 } && test -s conftest.$ac_objext; then 29917 ac_cv_have_decl_getc_unlocked=yes 29918 else 29919 echo "$as_me: failed program was:" >&5 29920 sed 's/^/| /' conftest.$ac_ext >&5 29921 29922 ac_cv_have_decl_getc_unlocked=no 29923 fi 29924 29925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29926 fi 29927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 29928 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 29929 if test $ac_cv_have_decl_getc_unlocked = yes; then 29930 29931 cat >>confdefs.h <<_ACEOF 29932 #define HAVE_DECL_GETC_UNLOCKED 1 29933 _ACEOF 29934 29935 29936 else 29937 cat >>confdefs.h <<_ACEOF 29938 #define HAVE_DECL_GETC_UNLOCKED 0 29939 _ACEOF 29940 29941 29942 fi 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 { echo "$as_me:$LINENO: checking for mbstate_t" >&5 29959 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } 29960 if test "${ac_cv_type_mbstate_t+set}" = set; then 29961 echo $ECHO_N "(cached) $ECHO_C" >&6 29962 else 29963 cat >conftest.$ac_ext <<_ACEOF 29964 /* confdefs.h. */ 29965 _ACEOF 29966 cat confdefs.h >>conftest.$ac_ext 29967 cat >>conftest.$ac_ext <<_ACEOF 29968 /* end confdefs.h. */ 29969 $ac_includes_default 29970 # include <wchar.h> 29971 int 29972 main () 29973 { 29974 mbstate_t x; return sizeof x; 29975 ; 29976 return 0; 29977 } 29978 _ACEOF 29979 rm -f conftest.$ac_objext 29980 if { (ac_try="$ac_compile" 29981 case "(($ac_try" in 29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29983 *) ac_try_echo=$ac_try;; 29984 esac 29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29986 (eval "$ac_compile") 2>conftest.er1 29987 ac_status=$? 29988 grep -v '^ *+' conftest.er1 >conftest.err 29989 rm -f conftest.er1 29990 cat conftest.err >&5 29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29992 (exit $ac_status); } && { 29993 test -z "$ac_c_werror_flag" || 29994 test ! -s conftest.err 29995 } && test -s conftest.$ac_objext; then 29996 ac_cv_type_mbstate_t=yes 29997 else 29998 echo "$as_me: failed program was:" >&5 29999 sed 's/^/| /' conftest.$ac_ext >&5 30000 30001 ac_cv_type_mbstate_t=no 30002 fi 30003 30004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30005 fi 30006 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 30007 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } 30008 if test $ac_cv_type_mbstate_t = yes; then 30009 30010 cat >>confdefs.h <<\_ACEOF 30011 #define HAVE_MBSTATE_T 1 30012 _ACEOF 30013 30014 else 30015 30016 cat >>confdefs.h <<\_ACEOF 30017 #define mbstate_t int 30018 _ACEOF 30019 30020 fi 30021 30022 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 30023 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } 30024 if test "${gl_cv_func_mbrtowc+set}" = set; then 30025 echo $ECHO_N "(cached) $ECHO_C" >&6 30026 else 30027 cat >conftest.$ac_ext <<_ACEOF 30028 /* confdefs.h. */ 30029 _ACEOF 30030 cat confdefs.h >>conftest.$ac_ext 30031 cat >>conftest.$ac_ext <<_ACEOF 30032 /* end confdefs.h. */ 30033 #include <wchar.h> 30034 int 30035 main () 30036 { 30037 wchar_t wc; 30038 char const s[] = ""; 30039 size_t n = 1; 30040 mbstate_t state; 30041 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 30042 ; 30043 return 0; 30044 } 30045 _ACEOF 30046 rm -f conftest.$ac_objext conftest$ac_exeext 30047 if { (ac_try="$ac_link" 30048 case "(($ac_try" in 30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30050 *) ac_try_echo=$ac_try;; 30051 esac 30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30053 (eval "$ac_link") 2>conftest.er1 30054 ac_status=$? 30055 grep -v '^ *+' conftest.er1 >conftest.err 30056 rm -f conftest.er1 30057 cat conftest.err >&5 30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30059 (exit $ac_status); } && { 30060 test -z "$ac_c_werror_flag" || 30061 test ! -s conftest.err 30062 } && test -s conftest$ac_exeext && 30063 $as_test_x conftest$ac_exeext; then 30064 gl_cv_func_mbrtowc=yes 30065 else 30066 echo "$as_me: failed program was:" >&5 30067 sed 's/^/| /' conftest.$ac_ext >&5 30068 30069 gl_cv_func_mbrtowc=no 30070 fi 30071 30072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30073 conftest$ac_exeext conftest.$ac_ext 30074 fi 30075 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 30076 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } 30077 if test $gl_cv_func_mbrtowc = yes; then 30078 30079 cat >>confdefs.h <<\_ACEOF 30080 #define HAVE_MBRTOWC 1 30081 _ACEOF 30082 30083 fi 30084 30085 30086 { echo "$as_me:$LINENO: checking for shared library path variable" >&5 30087 echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6; } 30088 if test "${acl_cv_libpath+set}" = set; then 30089 echo $ECHO_N "(cached) $ECHO_C" >&6 30090 else 30091 30092 LD="$LD" \ 30093 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh 30094 . ./conftest.sh 30095 rm -f ./conftest.sh 30096 acl_cv_libpath=${acl_cv_shlibpath_var:-none} 30097 30098 fi 30099 { echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5 30100 echo "${ECHO_T}$acl_cv_libpath" >&6; } 30101 shlibpath_var="$acl_cv_shlibpath_var" 30102 30103 30104 { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5 30105 echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; } 30106 # Check whether --enable-relocatable was given. 30107 if test "${enable_relocatable+set}" = set; then 30108 enableval=$enable_relocatable; if test "$enableval" != no; then 30109 RELOCATABLE=yes 30110 else 30111 RELOCATABLE=no 30112 fi 30113 30114 else 30115 RELOCATABLE=no 30116 fi 30117 30118 30119 { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5 30120 echo "${ECHO_T}$RELOCATABLE" >&6; } 30121 30122 30123 30124 if test "X$prefix" = "XNONE"; then 30125 reloc_final_prefix="$ac_default_prefix" 30126 else 30127 reloc_final_prefix="$prefix" 30128 fi 30129 30130 cat >>confdefs.h <<_ACEOF 30131 #define INSTALLPREFIX "${reloc_final_prefix}" 30132 _ACEOF 30133 30134 30135 30136 30137 30138 30139 30140 30141 is_noop=no 30142 use_elf_origin_trick=no 30143 if test $RELOCATABLE = yes; then 30144 # --enable-relocatable implies --disable-rpath 30145 enable_rpath=no 30146 30147 cat >>confdefs.h <<\_ACEOF 30148 #define ENABLE_RELOCATABLE 1 30149 _ACEOF 30150 30151 30152 30153 for ac_header in unistd.h mach-o/dyld.h 30154 do 30155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 30156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 30157 { echo "$as_me:$LINENO: checking for $ac_header" >&5 30158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 30159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 30160 echo $ECHO_N "(cached) $ECHO_C" >&6 30161 fi 30162 ac_res=`eval echo '${'$as_ac_Header'}'` 30163 { echo "$as_me:$LINENO: result: $ac_res" >&5 30164 echo "${ECHO_T}$ac_res" >&6; } 30165 else 30166 # Is the header compilable? 30167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 30168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 30169 cat >conftest.$ac_ext <<_ACEOF 30170 /* confdefs.h. */ 30171 _ACEOF 30172 cat confdefs.h >>conftest.$ac_ext 30173 cat >>conftest.$ac_ext <<_ACEOF 30174 /* end confdefs.h. */ 30175 $ac_includes_default 30176 #include <$ac_header> 30177 _ACEOF 30178 rm -f conftest.$ac_objext 30179 if { (ac_try="$ac_compile" 30180 case "(($ac_try" in 30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30182 *) ac_try_echo=$ac_try;; 30183 esac 30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30185 (eval "$ac_compile") 2>conftest.er1 30186 ac_status=$? 30187 grep -v '^ *+' conftest.er1 >conftest.err 30188 rm -f conftest.er1 30189 cat conftest.err >&5 30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30191 (exit $ac_status); } && { 30192 test -z "$ac_c_werror_flag" || 30193 test ! -s conftest.err 30194 } && test -s conftest.$ac_objext; then 30195 ac_header_compiler=yes 30196 else 30197 echo "$as_me: failed program was:" >&5 30198 sed 's/^/| /' conftest.$ac_ext >&5 30199 30200 ac_header_compiler=no 30201 fi 30202 30203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 30205 echo "${ECHO_T}$ac_header_compiler" >&6; } 30206 30207 # Is the header present? 30208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 30209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 30210 cat >conftest.$ac_ext <<_ACEOF 30211 /* confdefs.h. */ 30212 _ACEOF 30213 cat confdefs.h >>conftest.$ac_ext 30214 cat >>conftest.$ac_ext <<_ACEOF 30215 /* end confdefs.h. */ 30216 #include <$ac_header> 30217 _ACEOF 30218 if { (ac_try="$ac_cpp conftest.$ac_ext" 30219 case "(($ac_try" in 30220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30221 *) ac_try_echo=$ac_try;; 30222 esac 30223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 30225 ac_status=$? 30226 grep -v '^ *+' conftest.er1 >conftest.err 30227 rm -f conftest.er1 30228 cat conftest.err >&5 30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30230 (exit $ac_status); } >/dev/null && { 30231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 30232 test ! -s conftest.err 30233 }; then 30234 ac_header_preproc=yes 30235 else 30236 echo "$as_me: failed program was:" >&5 30237 sed 's/^/| /' conftest.$ac_ext >&5 30238 30239 ac_header_preproc=no 30240 fi 30241 30242 rm -f conftest.err conftest.$ac_ext 30243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 30244 echo "${ECHO_T}$ac_header_preproc" >&6; } 30245 30246 # So? What about this header? 30247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 30248 yes:no: ) 30249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 30250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 30251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 30252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 30253 ac_header_preproc=yes 30254 ;; 30255 no:yes:* ) 30256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 30257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 30258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 30259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 30260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 30261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 30262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 30263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 30264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 30265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 30266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 30267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 30268 30269 ;; 30270 esac 30271 { echo "$as_me:$LINENO: checking for $ac_header" >&5 30272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 30273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 30274 echo $ECHO_N "(cached) $ECHO_C" >&6 30275 else 30276 eval "$as_ac_Header=\$ac_header_preproc" 30277 fi 30278 ac_res=`eval echo '${'$as_ac_Header'}'` 30279 { echo "$as_me:$LINENO: result: $ac_res" >&5 30280 echo "${ECHO_T}$ac_res" >&6; } 30281 30282 fi 30283 if test `eval echo '${'$as_ac_Header'}'` = yes; then 30284 cat >>confdefs.h <<_ACEOF 30285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 30286 _ACEOF 30287 30288 fi 30289 30290 done 30291 30292 30293 for ac_func in _NSGetExecutablePath 30294 do 30295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30296 { echo "$as_me:$LINENO: checking for $ac_func" >&5 30297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 30298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 30299 echo $ECHO_N "(cached) $ECHO_C" >&6 30300 else 30301 cat >conftest.$ac_ext <<_ACEOF 30302 /* confdefs.h. */ 30303 _ACEOF 30304 cat confdefs.h >>conftest.$ac_ext 30305 cat >>conftest.$ac_ext <<_ACEOF 30306 /* end confdefs.h. */ 30307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 30308 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30309 #define $ac_func innocuous_$ac_func 30310 30311 /* System header to define __stub macros and hopefully few prototypes, 30312 which can conflict with char $ac_func (); below. 30313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30314 <limits.h> exists even on freestanding compilers. */ 30315 30316 #ifdef __STDC__ 30317 # include <limits.h> 30318 #else 30319 # include <assert.h> 30320 #endif 30321 30322 #undef $ac_func 30323 30324 /* Override any GCC internal prototype to avoid an error. 30325 Use char because int might match the return type of a GCC 30326 builtin and then its argument prototype would still apply. */ 30327 #ifdef __cplusplus 30328 extern "C" 30329 #endif 30330 char $ac_func (); 30331 /* The GNU C library defines this for functions which it implements 30332 to always fail with ENOSYS. Some functions are actually named 30333 something starting with __ and the normal name is an alias. */ 30334 #if defined __stub_$ac_func || defined __stub___$ac_func 30335 choke me 30336 #endif 30337 30338 int 30339 main () 30340 { 30341 return $ac_func (); 30342 ; 30343 return 0; 30344 } 30345 _ACEOF 30346 rm -f conftest.$ac_objext conftest$ac_exeext 30347 if { (ac_try="$ac_link" 30348 case "(($ac_try" in 30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30350 *) ac_try_echo=$ac_try;; 30351 esac 30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30353 (eval "$ac_link") 2>conftest.er1 30354 ac_status=$? 30355 grep -v '^ *+' conftest.er1 >conftest.err 30356 rm -f conftest.er1 30357 cat conftest.err >&5 30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30359 (exit $ac_status); } && { 30360 test -z "$ac_c_werror_flag" || 30361 test ! -s conftest.err 30362 } && test -s conftest$ac_exeext && 30363 $as_test_x conftest$ac_exeext; then 30364 eval "$as_ac_var=yes" 30365 else 30366 echo "$as_me: failed program was:" >&5 30367 sed 's/^/| /' conftest.$ac_ext >&5 30368 30369 eval "$as_ac_var=no" 30370 fi 30371 30372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30373 conftest$ac_exeext conftest.$ac_ext 30374 fi 30375 ac_res=`eval echo '${'$as_ac_var'}'` 30376 { echo "$as_me:$LINENO: result: $ac_res" >&5 30377 echo "${ECHO_T}$ac_res" >&6; } 30378 if test `eval echo '${'$as_ac_var'}'` = yes; then 30379 cat >>confdefs.h <<_ACEOF 30380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30381 _ACEOF 30382 30383 fi 30384 done 30385 30386 case "$host_os" in 30387 mingw*) is_noop=yes ;; 30388 linux*) use_elf_origin_trick=yes ;; 30389 esac 30390 if test $is_noop = yes; then 30391 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :" 30392 else 30393 if test $use_elf_origin_trick = yes; then 30394 case "$ac_aux_dir" in 30395 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; 30396 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; 30397 esac 30398 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" 30399 else 30400 SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" 30401 case "$ac_aux_dir" in 30402 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; 30403 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; 30404 esac 30405 fi 30406 fi 30407 else 30408 SET_RELOCATABLE= 30409 fi 30410 30411 if test $is_noop = yes || test $use_elf_origin_trick = yes; then 30412 RELOCATABLE_VIA_LD_TRUE= 30413 RELOCATABLE_VIA_LD_FALSE='#' 30414 else 30415 RELOCATABLE_VIA_LD_TRUE='#' 30416 RELOCATABLE_VIA_LD_FALSE= 30417 fi 30418 30419 30420 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 30421 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } 30422 if test "${ac_cv_header_stdbool_h+set}" = set; then 30423 echo $ECHO_N "(cached) $ECHO_C" >&6 30424 else 30425 cat >conftest.$ac_ext <<_ACEOF 30426 /* confdefs.h. */ 30427 _ACEOF 30428 cat confdefs.h >>conftest.$ac_ext 30429 cat >>conftest.$ac_ext <<_ACEOF 30430 /* end confdefs.h. */ 30431 30432 #include <stdbool.h> 30433 #ifndef bool 30434 "error: bool is not defined" 30435 #endif 30436 #ifndef false 30437 "error: false is not defined" 30438 #endif 30439 #if false 30440 "error: false is not 0" 30441 #endif 30442 #ifndef true 30443 "error: true is not defined" 30444 #endif 30445 #if true != 1 30446 "error: true is not 1" 30447 #endif 30448 #ifndef __bool_true_false_are_defined 30449 "error: __bool_true_false_are_defined is not defined" 30450 #endif 30451 30452 struct s { _Bool s: 1; _Bool t; } s; 30453 30454 char a[true == 1 ? 1 : -1]; 30455 char b[false == 0 ? 1 : -1]; 30456 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 30457 char d[(bool) 0.5 == true ? 1 : -1]; 30458 bool e = &s; 30459 char f[(_Bool) 0.0 == false ? 1 : -1]; 30460 char g[true]; 30461 char h[sizeof (_Bool)]; 30462 char i[sizeof s.t]; 30463 enum { j = false, k = true, l = false * true, m = true * 256 }; 30464 _Bool n[m]; 30465 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 30466 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 30467 #if defined __xlc__ || defined __GNUC__ 30468 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 30469 reported by James Lemley on 2005-10-05; see 30470 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 30471 This test is not quite right, since xlc is allowed to 30472 reject this program, as the initializer for xlcbug is 30473 not one of the forms that C requires support for. 30474 However, doing the test right would require a run-time 30475 test, and that would make cross-compilation harder. 30476 Let us hope that IBM fixes the xlc bug, and also adds 30477 support for this kind of constant expression. In the 30478 meantime, this test will reject xlc, which is OK, since 30479 our stdbool.h substitute should suffice. We also test 30480 this with GCC, where it should work, to detect more 30481 quickly whether someone messes up the test in the 30482 future. */ 30483 char digs[] = "0123456789"; 30484 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 30485 #endif 30486 /* Catch a bug in an HP-UX C compiler. See 30487 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 30488 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 30489 */ 30490 _Bool q = true; 30491 _Bool *pq = &q; 30492 30493 int 30494 main () 30495 { 30496 30497 *pq |= q; 30498 *pq |= ! q; 30499 /* Refer to every declared value, to avoid compiler optimizations. */ 30500 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 30501 + !m + !n + !o + !p + !q + !pq); 30502 30503 ; 30504 return 0; 30505 } 30506 _ACEOF 30507 rm -f conftest.$ac_objext 30508 if { (ac_try="$ac_compile" 30509 case "(($ac_try" in 30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30511 *) ac_try_echo=$ac_try;; 30512 esac 30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30514 (eval "$ac_compile") 2>conftest.er1 30515 ac_status=$? 30516 grep -v '^ *+' conftest.er1 >conftest.err 30517 rm -f conftest.er1 30518 cat conftest.err >&5 30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30520 (exit $ac_status); } && { 30521 test -z "$ac_c_werror_flag" || 30522 test ! -s conftest.err 30523 } && test -s conftest.$ac_objext; then 30524 ac_cv_header_stdbool_h=yes 30525 else 30526 echo "$as_me: failed program was:" >&5 30527 sed 's/^/| /' conftest.$ac_ext >&5 30528 30529 ac_cv_header_stdbool_h=no 30530 fi 30531 30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30533 fi 30534 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 30535 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } 30536 { echo "$as_me:$LINENO: checking for _Bool" >&5 30537 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } 30538 if test "${ac_cv_type__Bool+set}" = set; then 30539 echo $ECHO_N "(cached) $ECHO_C" >&6 30540 else 30541 cat >conftest.$ac_ext <<_ACEOF 30542 /* confdefs.h. */ 30543 _ACEOF 30544 cat confdefs.h >>conftest.$ac_ext 30545 cat >>conftest.$ac_ext <<_ACEOF 30546 /* end confdefs.h. */ 30547 $ac_includes_default 30548 typedef _Bool ac__type_new_; 30549 int 30550 main () 30551 { 30552 if ((ac__type_new_ *) 0) 30553 return 0; 30554 if (sizeof (ac__type_new_)) 30555 return 0; 30556 ; 30557 return 0; 30558 } 30559 _ACEOF 30560 rm -f conftest.$ac_objext 30561 if { (ac_try="$ac_compile" 30562 case "(($ac_try" in 30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30564 *) ac_try_echo=$ac_try;; 30565 esac 30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30567 (eval "$ac_compile") 2>conftest.er1 30568 ac_status=$? 30569 grep -v '^ *+' conftest.er1 >conftest.err 30570 rm -f conftest.er1 30571 cat conftest.err >&5 30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30573 (exit $ac_status); } && { 30574 test -z "$ac_c_werror_flag" || 30575 test ! -s conftest.err 30576 } && test -s conftest.$ac_objext; then 30577 ac_cv_type__Bool=yes 30578 else 30579 echo "$as_me: failed program was:" >&5 30580 sed 's/^/| /' conftest.$ac_ext >&5 30581 30582 ac_cv_type__Bool=no 30583 fi 30584 30585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30586 fi 30587 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 30588 echo "${ECHO_T}$ac_cv_type__Bool" >&6; } 30589 if test $ac_cv_type__Bool = yes; then 30590 30591 cat >>confdefs.h <<_ACEOF 30592 #define HAVE__BOOL 1 30593 _ACEOF 30594 30595 30596 fi 30597 30598 if test $ac_cv_header_stdbool_h = yes; then 30599 30600 cat >>confdefs.h <<\_ACEOF 30601 #define HAVE_STDBOOL_H 1 30602 _ACEOF 30603 30604 fi 30605 30606 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5 30607 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; } 30608 if test "${ac_cv_have_decl_strdup+set}" = set; then 30609 echo $ECHO_N "(cached) $ECHO_C" >&6 30610 else 30611 cat >conftest.$ac_ext <<_ACEOF 30612 /* confdefs.h. */ 30613 _ACEOF 30614 cat confdefs.h >>conftest.$ac_ext 30615 cat >>conftest.$ac_ext <<_ACEOF 30616 /* end confdefs.h. */ 30617 $ac_includes_default 30618 int 30619 main () 30620 { 30621 #ifndef strdup 30622 (void) strdup; 30623 #endif 30624 30625 ; 30626 return 0; 30627 } 30628 _ACEOF 30629 rm -f conftest.$ac_objext 30630 if { (ac_try="$ac_compile" 30631 case "(($ac_try" in 30632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30633 *) ac_try_echo=$ac_try;; 30634 esac 30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30636 (eval "$ac_compile") 2>conftest.er1 30637 ac_status=$? 30638 grep -v '^ *+' conftest.er1 >conftest.err 30639 rm -f conftest.er1 30640 cat conftest.err >&5 30641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30642 (exit $ac_status); } && { 30643 test -z "$ac_c_werror_flag" || 30644 test ! -s conftest.err 30645 } && test -s conftest.$ac_objext; then 30646 ac_cv_have_decl_strdup=yes 30647 else 30648 echo "$as_me: failed program was:" >&5 30649 sed 's/^/| /' conftest.$ac_ext >&5 30650 30651 ac_cv_have_decl_strdup=no 30652 fi 30653 30654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30655 fi 30656 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5 30657 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; } 30658 if test $ac_cv_have_decl_strdup = yes; then 30659 30660 cat >>confdefs.h <<_ACEOF 30661 #define HAVE_DECL_STRDUP 1 30662 _ACEOF 30663 30664 30665 else 30666 cat >>confdefs.h <<_ACEOF 30667 #define HAVE_DECL_STRDUP 0 30668 _ACEOF 30669 30670 30671 fi 30672 30673 30674 30675 30676 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 30677 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; } 30678 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then 30679 echo $ECHO_N "(cached) $ECHO_C" >&6 30680 else 30681 cat >conftest.$ac_ext <<_ACEOF 30682 /* confdefs.h. */ 30683 _ACEOF 30684 cat confdefs.h >>conftest.$ac_ext 30685 cat >>conftest.$ac_ext <<_ACEOF 30686 /* end confdefs.h. */ 30687 $ac_includes_default 30688 int 30689 main () 30690 { 30691 #ifndef clearerr_unlocked 30692 (void) clearerr_unlocked; 30693 #endif 30694 30695 ; 30696 return 0; 30697 } 30698 _ACEOF 30699 rm -f conftest.$ac_objext 30700 if { (ac_try="$ac_compile" 30701 case "(($ac_try" in 30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30703 *) ac_try_echo=$ac_try;; 30704 esac 30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30706 (eval "$ac_compile") 2>conftest.er1 30707 ac_status=$? 30708 grep -v '^ *+' conftest.er1 >conftest.err 30709 rm -f conftest.er1 30710 cat conftest.err >&5 30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30712 (exit $ac_status); } && { 30713 test -z "$ac_c_werror_flag" || 30714 test ! -s conftest.err 30715 } && test -s conftest.$ac_objext; then 30716 ac_cv_have_decl_clearerr_unlocked=yes 30717 else 30718 echo "$as_me: failed program was:" >&5 30719 sed 's/^/| /' conftest.$ac_ext >&5 30720 30721 ac_cv_have_decl_clearerr_unlocked=no 30722 fi 30723 30724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30725 fi 30726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 30727 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; } 30728 if test $ac_cv_have_decl_clearerr_unlocked = yes; then 30729 30730 cat >>confdefs.h <<_ACEOF 30731 #define HAVE_DECL_CLEARERR_UNLOCKED 1 30732 _ACEOF 30733 30734 30735 else 30736 cat >>confdefs.h <<_ACEOF 30737 #define HAVE_DECL_CLEARERR_UNLOCKED 0 30738 _ACEOF 30739 30740 30741 fi 30742 30743 30744 30745 30746 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 30747 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 30748 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 30749 echo $ECHO_N "(cached) $ECHO_C" >&6 30750 else 30751 cat >conftest.$ac_ext <<_ACEOF 30752 /* confdefs.h. */ 30753 _ACEOF 30754 cat confdefs.h >>conftest.$ac_ext 30755 cat >>conftest.$ac_ext <<_ACEOF 30756 /* end confdefs.h. */ 30757 $ac_includes_default 30758 int 30759 main () 30760 { 30761 #ifndef feof_unlocked 30762 (void) feof_unlocked; 30763 #endif 30764 30765 ; 30766 return 0; 30767 } 30768 _ACEOF 30769 rm -f conftest.$ac_objext 30770 if { (ac_try="$ac_compile" 30771 case "(($ac_try" in 30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30773 *) ac_try_echo=$ac_try;; 30774 esac 30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30776 (eval "$ac_compile") 2>conftest.er1 30777 ac_status=$? 30778 grep -v '^ *+' conftest.er1 >conftest.err 30779 rm -f conftest.er1 30780 cat conftest.err >&5 30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30782 (exit $ac_status); } && { 30783 test -z "$ac_c_werror_flag" || 30784 test ! -s conftest.err 30785 } && test -s conftest.$ac_objext; then 30786 ac_cv_have_decl_feof_unlocked=yes 30787 else 30788 echo "$as_me: failed program was:" >&5 30789 sed 's/^/| /' conftest.$ac_ext >&5 30790 30791 ac_cv_have_decl_feof_unlocked=no 30792 fi 30793 30794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30795 fi 30796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 30797 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 30798 if test $ac_cv_have_decl_feof_unlocked = yes; then 30799 30800 cat >>confdefs.h <<_ACEOF 30801 #define HAVE_DECL_FEOF_UNLOCKED 1 30802 _ACEOF 30803 30804 30805 else 30806 cat >>confdefs.h <<_ACEOF 30807 #define HAVE_DECL_FEOF_UNLOCKED 0 30808 _ACEOF 30809 30810 30811 fi 30812 30813 30814 30815 30816 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 30817 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; } 30818 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then 30819 echo $ECHO_N "(cached) $ECHO_C" >&6 30820 else 30821 cat >conftest.$ac_ext <<_ACEOF 30822 /* confdefs.h. */ 30823 _ACEOF 30824 cat confdefs.h >>conftest.$ac_ext 30825 cat >>conftest.$ac_ext <<_ACEOF 30826 /* end confdefs.h. */ 30827 $ac_includes_default 30828 int 30829 main () 30830 { 30831 #ifndef ferror_unlocked 30832 (void) ferror_unlocked; 30833 #endif 30834 30835 ; 30836 return 0; 30837 } 30838 _ACEOF 30839 rm -f conftest.$ac_objext 30840 if { (ac_try="$ac_compile" 30841 case "(($ac_try" in 30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30843 *) ac_try_echo=$ac_try;; 30844 esac 30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30846 (eval "$ac_compile") 2>conftest.er1 30847 ac_status=$? 30848 grep -v '^ *+' conftest.er1 >conftest.err 30849 rm -f conftest.er1 30850 cat conftest.err >&5 30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30852 (exit $ac_status); } && { 30853 test -z "$ac_c_werror_flag" || 30854 test ! -s conftest.err 30855 } && test -s conftest.$ac_objext; then 30856 ac_cv_have_decl_ferror_unlocked=yes 30857 else 30858 echo "$as_me: failed program was:" >&5 30859 sed 's/^/| /' conftest.$ac_ext >&5 30860 30861 ac_cv_have_decl_ferror_unlocked=no 30862 fi 30863 30864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30865 fi 30866 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 30867 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; } 30868 if test $ac_cv_have_decl_ferror_unlocked = yes; then 30869 30870 cat >>confdefs.h <<_ACEOF 30871 #define HAVE_DECL_FERROR_UNLOCKED 1 30872 _ACEOF 30873 30874 30875 else 30876 cat >>confdefs.h <<_ACEOF 30877 #define HAVE_DECL_FERROR_UNLOCKED 0 30878 _ACEOF 30879 30880 30881 fi 30882 30883 30884 30885 30886 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 30887 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; } 30888 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then 30889 echo $ECHO_N "(cached) $ECHO_C" >&6 30890 else 30891 cat >conftest.$ac_ext <<_ACEOF 30892 /* confdefs.h. */ 30893 _ACEOF 30894 cat confdefs.h >>conftest.$ac_ext 30895 cat >>conftest.$ac_ext <<_ACEOF 30896 /* end confdefs.h. */ 30897 $ac_includes_default 30898 int 30899 main () 30900 { 30901 #ifndef fflush_unlocked 30902 (void) fflush_unlocked; 30903 #endif 30904 30905 ; 30906 return 0; 30907 } 30908 _ACEOF 30909 rm -f conftest.$ac_objext 30910 if { (ac_try="$ac_compile" 30911 case "(($ac_try" in 30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30913 *) ac_try_echo=$ac_try;; 30914 esac 30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30916 (eval "$ac_compile") 2>conftest.er1 30917 ac_status=$? 30918 grep -v '^ *+' conftest.er1 >conftest.err 30919 rm -f conftest.er1 30920 cat conftest.err >&5 30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30922 (exit $ac_status); } && { 30923 test -z "$ac_c_werror_flag" || 30924 test ! -s conftest.err 30925 } && test -s conftest.$ac_objext; then 30926 ac_cv_have_decl_fflush_unlocked=yes 30927 else 30928 echo "$as_me: failed program was:" >&5 30929 sed 's/^/| /' conftest.$ac_ext >&5 30930 30931 ac_cv_have_decl_fflush_unlocked=no 30932 fi 30933 30934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30935 fi 30936 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 30937 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; } 30938 if test $ac_cv_have_decl_fflush_unlocked = yes; then 30939 30940 cat >>confdefs.h <<_ACEOF 30941 #define HAVE_DECL_FFLUSH_UNLOCKED 1 30942 _ACEOF 30943 30944 30945 else 30946 cat >>confdefs.h <<_ACEOF 30947 #define HAVE_DECL_FFLUSH_UNLOCKED 0 30948 _ACEOF 30949 30950 30951 fi 30952 30953 30954 30955 30956 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 30957 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 30958 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 30959 echo $ECHO_N "(cached) $ECHO_C" >&6 30960 else 30961 cat >conftest.$ac_ext <<_ACEOF 30962 /* confdefs.h. */ 30963 _ACEOF 30964 cat confdefs.h >>conftest.$ac_ext 30965 cat >>conftest.$ac_ext <<_ACEOF 30966 /* end confdefs.h. */ 30967 $ac_includes_default 30968 int 30969 main () 30970 { 30971 #ifndef fgets_unlocked 30972 (void) fgets_unlocked; 30973 #endif 30974 30975 ; 30976 return 0; 30977 } 30978 _ACEOF 30979 rm -f conftest.$ac_objext 30980 if { (ac_try="$ac_compile" 30981 case "(($ac_try" in 30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30983 *) ac_try_echo=$ac_try;; 30984 esac 30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30986 (eval "$ac_compile") 2>conftest.er1 30987 ac_status=$? 30988 grep -v '^ *+' conftest.er1 >conftest.err 30989 rm -f conftest.er1 30990 cat conftest.err >&5 30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30992 (exit $ac_status); } && { 30993 test -z "$ac_c_werror_flag" || 30994 test ! -s conftest.err 30995 } && test -s conftest.$ac_objext; then 30996 ac_cv_have_decl_fgets_unlocked=yes 30997 else 30998 echo "$as_me: failed program was:" >&5 30999 sed 's/^/| /' conftest.$ac_ext >&5 31000 31001 ac_cv_have_decl_fgets_unlocked=no 31002 fi 31003 31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31005 fi 31006 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 31007 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 31008 if test $ac_cv_have_decl_fgets_unlocked = yes; then 31009 31010 cat >>confdefs.h <<_ACEOF 31011 #define HAVE_DECL_FGETS_UNLOCKED 1 31012 _ACEOF 31013 31014 31015 else 31016 cat >>confdefs.h <<_ACEOF 31017 #define HAVE_DECL_FGETS_UNLOCKED 0 31018 _ACEOF 31019 31020 31021 fi 31022 31023 31024 31025 31026 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 31027 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; } 31028 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then 31029 echo $ECHO_N "(cached) $ECHO_C" >&6 31030 else 31031 cat >conftest.$ac_ext <<_ACEOF 31032 /* confdefs.h. */ 31033 _ACEOF 31034 cat confdefs.h >>conftest.$ac_ext 31035 cat >>conftest.$ac_ext <<_ACEOF 31036 /* end confdefs.h. */ 31037 $ac_includes_default 31038 int 31039 main () 31040 { 31041 #ifndef fputc_unlocked 31042 (void) fputc_unlocked; 31043 #endif 31044 31045 ; 31046 return 0; 31047 } 31048 _ACEOF 31049 rm -f conftest.$ac_objext 31050 if { (ac_try="$ac_compile" 31051 case "(($ac_try" in 31052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31053 *) ac_try_echo=$ac_try;; 31054 esac 31055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31056 (eval "$ac_compile") 2>conftest.er1 31057 ac_status=$? 31058 grep -v '^ *+' conftest.er1 >conftest.err 31059 rm -f conftest.er1 31060 cat conftest.err >&5 31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31062 (exit $ac_status); } && { 31063 test -z "$ac_c_werror_flag" || 31064 test ! -s conftest.err 31065 } && test -s conftest.$ac_objext; then 31066 ac_cv_have_decl_fputc_unlocked=yes 31067 else 31068 echo "$as_me: failed program was:" >&5 31069 sed 's/^/| /' conftest.$ac_ext >&5 31070 31071 ac_cv_have_decl_fputc_unlocked=no 31072 fi 31073 31074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31075 fi 31076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 31077 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; } 31078 if test $ac_cv_have_decl_fputc_unlocked = yes; then 31079 31080 cat >>confdefs.h <<_ACEOF 31081 #define HAVE_DECL_FPUTC_UNLOCKED 1 31082 _ACEOF 31083 31084 31085 else 31086 cat >>confdefs.h <<_ACEOF 31087 #define HAVE_DECL_FPUTC_UNLOCKED 0 31088 _ACEOF 31089 31090 31091 fi 31092 31093 31094 31095 31096 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 31097 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; } 31098 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then 31099 echo $ECHO_N "(cached) $ECHO_C" >&6 31100 else 31101 cat >conftest.$ac_ext <<_ACEOF 31102 /* confdefs.h. */ 31103 _ACEOF 31104 cat confdefs.h >>conftest.$ac_ext 31105 cat >>conftest.$ac_ext <<_ACEOF 31106 /* end confdefs.h. */ 31107 $ac_includes_default 31108 int 31109 main () 31110 { 31111 #ifndef fputs_unlocked 31112 (void) fputs_unlocked; 31113 #endif 31114 31115 ; 31116 return 0; 31117 } 31118 _ACEOF 31119 rm -f conftest.$ac_objext 31120 if { (ac_try="$ac_compile" 31121 case "(($ac_try" in 31122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31123 *) ac_try_echo=$ac_try;; 31124 esac 31125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31126 (eval "$ac_compile") 2>conftest.er1 31127 ac_status=$? 31128 grep -v '^ *+' conftest.er1 >conftest.err 31129 rm -f conftest.er1 31130 cat conftest.err >&5 31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31132 (exit $ac_status); } && { 31133 test -z "$ac_c_werror_flag" || 31134 test ! -s conftest.err 31135 } && test -s conftest.$ac_objext; then 31136 ac_cv_have_decl_fputs_unlocked=yes 31137 else 31138 echo "$as_me: failed program was:" >&5 31139 sed 's/^/| /' conftest.$ac_ext >&5 31140 31141 ac_cv_have_decl_fputs_unlocked=no 31142 fi 31143 31144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31145 fi 31146 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 31147 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; } 31148 if test $ac_cv_have_decl_fputs_unlocked = yes; then 31149 31150 cat >>confdefs.h <<_ACEOF 31151 #define HAVE_DECL_FPUTS_UNLOCKED 1 31152 _ACEOF 31153 31154 31155 else 31156 cat >>confdefs.h <<_ACEOF 31157 #define HAVE_DECL_FPUTS_UNLOCKED 0 31158 _ACEOF 31159 31160 31161 fi 31162 31163 31164 31165 31166 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 31167 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; } 31168 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then 31169 echo $ECHO_N "(cached) $ECHO_C" >&6 31170 else 31171 cat >conftest.$ac_ext <<_ACEOF 31172 /* confdefs.h. */ 31173 _ACEOF 31174 cat confdefs.h >>conftest.$ac_ext 31175 cat >>conftest.$ac_ext <<_ACEOF 31176 /* end confdefs.h. */ 31177 $ac_includes_default 31178 int 31179 main () 31180 { 31181 #ifndef fread_unlocked 31182 (void) fread_unlocked; 31183 #endif 31184 31185 ; 31186 return 0; 31187 } 31188 _ACEOF 31189 rm -f conftest.$ac_objext 31190 if { (ac_try="$ac_compile" 31191 case "(($ac_try" in 31192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31193 *) ac_try_echo=$ac_try;; 31194 esac 31195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31196 (eval "$ac_compile") 2>conftest.er1 31197 ac_status=$? 31198 grep -v '^ *+' conftest.er1 >conftest.err 31199 rm -f conftest.er1 31200 cat conftest.err >&5 31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31202 (exit $ac_status); } && { 31203 test -z "$ac_c_werror_flag" || 31204 test ! -s conftest.err 31205 } && test -s conftest.$ac_objext; then 31206 ac_cv_have_decl_fread_unlocked=yes 31207 else 31208 echo "$as_me: failed program was:" >&5 31209 sed 's/^/| /' conftest.$ac_ext >&5 31210 31211 ac_cv_have_decl_fread_unlocked=no 31212 fi 31213 31214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31215 fi 31216 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 31217 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; } 31218 if test $ac_cv_have_decl_fread_unlocked = yes; then 31219 31220 cat >>confdefs.h <<_ACEOF 31221 #define HAVE_DECL_FREAD_UNLOCKED 1 31222 _ACEOF 31223 31224 31225 else 31226 cat >>confdefs.h <<_ACEOF 31227 #define HAVE_DECL_FREAD_UNLOCKED 0 31228 _ACEOF 31229 31230 31231 fi 31232 31233 31234 31235 31236 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 31237 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; } 31238 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then 31239 echo $ECHO_N "(cached) $ECHO_C" >&6 31240 else 31241 cat >conftest.$ac_ext <<_ACEOF 31242 /* confdefs.h. */ 31243 _ACEOF 31244 cat confdefs.h >>conftest.$ac_ext 31245 cat >>conftest.$ac_ext <<_ACEOF 31246 /* end confdefs.h. */ 31247 $ac_includes_default 31248 int 31249 main () 31250 { 31251 #ifndef fwrite_unlocked 31252 (void) fwrite_unlocked; 31253 #endif 31254 31255 ; 31256 return 0; 31257 } 31258 _ACEOF 31259 rm -f conftest.$ac_objext 31260 if { (ac_try="$ac_compile" 31261 case "(($ac_try" in 31262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31263 *) ac_try_echo=$ac_try;; 31264 esac 31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31266 (eval "$ac_compile") 2>conftest.er1 31267 ac_status=$? 31268 grep -v '^ *+' conftest.er1 >conftest.err 31269 rm -f conftest.er1 31270 cat conftest.err >&5 31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31272 (exit $ac_status); } && { 31273 test -z "$ac_c_werror_flag" || 31274 test ! -s conftest.err 31275 } && test -s conftest.$ac_objext; then 31276 ac_cv_have_decl_fwrite_unlocked=yes 31277 else 31278 echo "$as_me: failed program was:" >&5 31279 sed 's/^/| /' conftest.$ac_ext >&5 31280 31281 ac_cv_have_decl_fwrite_unlocked=no 31282 fi 31283 31284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31285 fi 31286 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 31287 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; } 31288 if test $ac_cv_have_decl_fwrite_unlocked = yes; then 31289 31290 cat >>confdefs.h <<_ACEOF 31291 #define HAVE_DECL_FWRITE_UNLOCKED 1 31292 _ACEOF 31293 31294 31295 else 31296 cat >>confdefs.h <<_ACEOF 31297 #define HAVE_DECL_FWRITE_UNLOCKED 0 31298 _ACEOF 31299 31300 31301 fi 31302 31303 31304 31305 31306 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 31307 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; } 31308 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then 31309 echo $ECHO_N "(cached) $ECHO_C" >&6 31310 else 31311 cat >conftest.$ac_ext <<_ACEOF 31312 /* confdefs.h. */ 31313 _ACEOF 31314 cat confdefs.h >>conftest.$ac_ext 31315 cat >>conftest.$ac_ext <<_ACEOF 31316 /* end confdefs.h. */ 31317 $ac_includes_default 31318 int 31319 main () 31320 { 31321 #ifndef getchar_unlocked 31322 (void) getchar_unlocked; 31323 #endif 31324 31325 ; 31326 return 0; 31327 } 31328 _ACEOF 31329 rm -f conftest.$ac_objext 31330 if { (ac_try="$ac_compile" 31331 case "(($ac_try" in 31332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31333 *) ac_try_echo=$ac_try;; 31334 esac 31335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31336 (eval "$ac_compile") 2>conftest.er1 31337 ac_status=$? 31338 grep -v '^ *+' conftest.er1 >conftest.err 31339 rm -f conftest.er1 31340 cat conftest.err >&5 31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31342 (exit $ac_status); } && { 31343 test -z "$ac_c_werror_flag" || 31344 test ! -s conftest.err 31345 } && test -s conftest.$ac_objext; then 31346 ac_cv_have_decl_getchar_unlocked=yes 31347 else 31348 echo "$as_me: failed program was:" >&5 31349 sed 's/^/| /' conftest.$ac_ext >&5 31350 31351 ac_cv_have_decl_getchar_unlocked=no 31352 fi 31353 31354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31355 fi 31356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 31357 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; } 31358 if test $ac_cv_have_decl_getchar_unlocked = yes; then 31359 31360 cat >>confdefs.h <<_ACEOF 31361 #define HAVE_DECL_GETCHAR_UNLOCKED 1 31362 _ACEOF 31363 31364 31365 else 31366 cat >>confdefs.h <<_ACEOF 31367 #define HAVE_DECL_GETCHAR_UNLOCKED 0 31368 _ACEOF 31369 31370 31371 fi 31372 31373 31374 31375 31376 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 31377 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; } 31378 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then 31379 echo $ECHO_N "(cached) $ECHO_C" >&6 31380 else 31381 cat >conftest.$ac_ext <<_ACEOF 31382 /* confdefs.h. */ 31383 _ACEOF 31384 cat confdefs.h >>conftest.$ac_ext 31385 cat >>conftest.$ac_ext <<_ACEOF 31386 /* end confdefs.h. */ 31387 $ac_includes_default 31388 int 31389 main () 31390 { 31391 #ifndef putc_unlocked 31392 (void) putc_unlocked; 31393 #endif 31394 31395 ; 31396 return 0; 31397 } 31398 _ACEOF 31399 rm -f conftest.$ac_objext 31400 if { (ac_try="$ac_compile" 31401 case "(($ac_try" in 31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31403 *) ac_try_echo=$ac_try;; 31404 esac 31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31406 (eval "$ac_compile") 2>conftest.er1 31407 ac_status=$? 31408 grep -v '^ *+' conftest.er1 >conftest.err 31409 rm -f conftest.er1 31410 cat conftest.err >&5 31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31412 (exit $ac_status); } && { 31413 test -z "$ac_c_werror_flag" || 31414 test ! -s conftest.err 31415 } && test -s conftest.$ac_objext; then 31416 ac_cv_have_decl_putc_unlocked=yes 31417 else 31418 echo "$as_me: failed program was:" >&5 31419 sed 's/^/| /' conftest.$ac_ext >&5 31420 31421 ac_cv_have_decl_putc_unlocked=no 31422 fi 31423 31424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31425 fi 31426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 31427 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; } 31428 if test $ac_cv_have_decl_putc_unlocked = yes; then 31429 31430 cat >>confdefs.h <<_ACEOF 31431 #define HAVE_DECL_PUTC_UNLOCKED 1 31432 _ACEOF 31433 31434 31435 else 31436 cat >>confdefs.h <<_ACEOF 31437 #define HAVE_DECL_PUTC_UNLOCKED 0 31438 _ACEOF 31439 31440 31441 fi 31442 31443 31444 31445 31446 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 31447 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; } 31448 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then 31449 echo $ECHO_N "(cached) $ECHO_C" >&6 31450 else 31451 cat >conftest.$ac_ext <<_ACEOF 31452 /* confdefs.h. */ 31453 _ACEOF 31454 cat confdefs.h >>conftest.$ac_ext 31455 cat >>conftest.$ac_ext <<_ACEOF 31456 /* end confdefs.h. */ 31457 $ac_includes_default 31458 int 31459 main () 31460 { 31461 #ifndef putchar_unlocked 31462 (void) putchar_unlocked; 31463 #endif 31464 31465 ; 31466 return 0; 31467 } 31468 _ACEOF 31469 rm -f conftest.$ac_objext 31470 if { (ac_try="$ac_compile" 31471 case "(($ac_try" in 31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31473 *) ac_try_echo=$ac_try;; 31474 esac 31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31476 (eval "$ac_compile") 2>conftest.er1 31477 ac_status=$? 31478 grep -v '^ *+' conftest.er1 >conftest.err 31479 rm -f conftest.er1 31480 cat conftest.err >&5 31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31482 (exit $ac_status); } && { 31483 test -z "$ac_c_werror_flag" || 31484 test ! -s conftest.err 31485 } && test -s conftest.$ac_objext; then 31486 ac_cv_have_decl_putchar_unlocked=yes 31487 else 31488 echo "$as_me: failed program was:" >&5 31489 sed 's/^/| /' conftest.$ac_ext >&5 31490 31491 ac_cv_have_decl_putchar_unlocked=no 31492 fi 31493 31494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31495 fi 31496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 31497 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; } 31498 if test $ac_cv_have_decl_putchar_unlocked = yes; then 31499 31500 cat >>confdefs.h <<_ACEOF 31501 #define HAVE_DECL_PUTCHAR_UNLOCKED 1 31502 _ACEOF 31503 31504 31505 else 31506 cat >>confdefs.h <<_ACEOF 31507 #define HAVE_DECL_PUTCHAR_UNLOCKED 0 31508 _ACEOF 31509 31510 31511 fi 31512 31513 31514 31515 31516 31517 31518 31519 31520 for ac_func in $gl_func_list 31521 do 31522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31523 { echo "$as_me:$LINENO: checking for $ac_func" >&5 31524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 31525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 31526 echo $ECHO_N "(cached) $ECHO_C" >&6 31527 else 31528 cat >conftest.$ac_ext <<_ACEOF 31529 /* confdefs.h. */ 31530 _ACEOF 31531 cat confdefs.h >>conftest.$ac_ext 31532 cat >>conftest.$ac_ext <<_ACEOF 31533 /* end confdefs.h. */ 31534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31535 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31536 #define $ac_func innocuous_$ac_func 31537 31538 /* System header to define __stub macros and hopefully few prototypes, 31539 which can conflict with char $ac_func (); below. 31540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31541 <limits.h> exists even on freestanding compilers. */ 31542 31543 #ifdef __STDC__ 31544 # include <limits.h> 31545 #else 31546 # include <assert.h> 31547 #endif 31548 31549 #undef $ac_func 31550 31551 /* Override any GCC internal prototype to avoid an error. 31552 Use char because int might match the return type of a GCC 31553 builtin and then its argument prototype would still apply. */ 31554 #ifdef __cplusplus 31555 extern "C" 31556 #endif 31557 char $ac_func (); 31558 /* The GNU C library defines this for functions which it implements 31559 to always fail with ENOSYS. Some functions are actually named 31560 something starting with __ and the normal name is an alias. */ 31561 #if defined __stub_$ac_func || defined __stub___$ac_func 31562 choke me 31563 #endif 31564 31565 int 31566 main () 31567 { 31568 return $ac_func (); 31569 ; 31570 return 0; 31571 } 31572 _ACEOF 31573 rm -f conftest.$ac_objext conftest$ac_exeext 31574 if { (ac_try="$ac_link" 31575 case "(($ac_try" in 31576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31577 *) ac_try_echo=$ac_try;; 31578 esac 31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31580 (eval "$ac_link") 2>conftest.er1 31581 ac_status=$? 31582 grep -v '^ *+' conftest.er1 >conftest.err 31583 rm -f conftest.er1 31584 cat conftest.err >&5 31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31586 (exit $ac_status); } && { 31587 test -z "$ac_c_werror_flag" || 31588 test ! -s conftest.err 31589 } && test -s conftest$ac_exeext && 31590 $as_test_x conftest$ac_exeext; then 31591 eval "$as_ac_var=yes" 31592 else 31593 echo "$as_me: failed program was:" >&5 31594 sed 's/^/| /' conftest.$ac_ext >&5 31595 31596 eval "$as_ac_var=no" 31597 fi 31598 31599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31600 conftest$ac_exeext conftest.$ac_ext 31601 fi 31602 ac_res=`eval echo '${'$as_ac_var'}'` 31603 { echo "$as_me:$LINENO: result: $ac_res" >&5 31604 echo "${ECHO_T}$ac_res" >&6; } 31605 if test `eval echo '${'$as_ac_var'}'` = yes; then 31606 cat >>confdefs.h <<_ACEOF 31607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31608 _ACEOF 31609 31610 fi 31611 done 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 if false; then 31628 GL_COND_LIBTOOL_TRUE= 31629 GL_COND_LIBTOOL_FALSE='#' 31630 else 31631 GL_COND_LIBTOOL_TRUE='#' 31632 GL_COND_LIBTOOL_FALSE= 31633 fi 31634 31635 gl_cond_libtool=false 31636 gl_libdeps= 31637 gl_ltlibdeps= 31638 gl_source_base='gnulib-lib' 31639 31640 31641 31642 31643 31644 if test $ac_cv_func_alloca_works = no; then 31645 31646 31647 : 31648 31649 31650 31651 31652 31653 31654 31655 31656 : 31657 31658 fi 31659 31660 # Define an additional variable used in the Makefile substitution. 31661 31662 cat >conftest.$ac_ext <<_ACEOF 31663 /* confdefs.h. */ 31664 _ACEOF 31665 cat confdefs.h >>conftest.$ac_ext 31666 cat >>conftest.$ac_ext <<_ACEOF 31667 /* end confdefs.h. */ 31668 31669 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H 31670 Need own alloca 31671 #endif 31672 31673 _ACEOF 31674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31675 $EGREP "Need own alloca" >/dev/null 2>&1; then 31676 ALLOCA_H=alloca.h 31677 else 31678 ALLOCA_H= 31679 fi 31680 rm -f conftest* 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 if test $ac_cv_func_alloca_works = no; then 31691 31692 31693 : 31694 31695 31696 31697 31698 31699 31700 31701 31702 : 31703 31704 fi 31705 31706 # Define an additional variable used in the Makefile substitution. 31707 31708 cat >conftest.$ac_ext <<_ACEOF 31709 /* confdefs.h. */ 31710 _ACEOF 31711 cat confdefs.h >>conftest.$ac_ext 31712 cat >>conftest.$ac_ext <<_ACEOF 31713 /* end confdefs.h. */ 31714 31715 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H 31716 Need own alloca 31717 #endif 31718 31719 _ACEOF 31720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31721 $EGREP "Need own alloca" >/dev/null 2>&1; then 31722 ALLOCA_H=alloca.h 31723 else 31724 ALLOCA_H= 31725 fi 31726 rm -f conftest* 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 for ac_func in atexit 31737 do 31738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31739 { echo "$as_me:$LINENO: checking for $ac_func" >&5 31740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 31741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 31742 echo $ECHO_N "(cached) $ECHO_C" >&6 31743 else 31744 cat >conftest.$ac_ext <<_ACEOF 31745 /* confdefs.h. */ 31746 _ACEOF 31747 cat confdefs.h >>conftest.$ac_ext 31748 cat >>conftest.$ac_ext <<_ACEOF 31749 /* end confdefs.h. */ 31750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31752 #define $ac_func innocuous_$ac_func 31753 31754 /* System header to define __stub macros and hopefully few prototypes, 31755 which can conflict with char $ac_func (); below. 31756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31757 <limits.h> exists even on freestanding compilers. */ 31758 31759 #ifdef __STDC__ 31760 # include <limits.h> 31761 #else 31762 # include <assert.h> 31763 #endif 31764 31765 #undef $ac_func 31766 31767 /* Override any GCC internal prototype to avoid an error. 31768 Use char because int might match the return type of a GCC 31769 builtin and then its argument prototype would still apply. */ 31770 #ifdef __cplusplus 31771 extern "C" 31772 #endif 31773 char $ac_func (); 31774 /* The GNU C library defines this for functions which it implements 31775 to always fail with ENOSYS. Some functions are actually named 31776 something starting with __ and the normal name is an alias. */ 31777 #if defined __stub_$ac_func || defined __stub___$ac_func 31778 choke me 31779 #endif 31780 31781 int 31782 main () 31783 { 31784 return $ac_func (); 31785 ; 31786 return 0; 31787 } 31788 _ACEOF 31789 rm -f conftest.$ac_objext conftest$ac_exeext 31790 if { (ac_try="$ac_link" 31791 case "(($ac_try" in 31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31793 *) ac_try_echo=$ac_try;; 31794 esac 31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31796 (eval "$ac_link") 2>conftest.er1 31797 ac_status=$? 31798 grep -v '^ *+' conftest.er1 >conftest.err 31799 rm -f conftest.er1 31800 cat conftest.err >&5 31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31802 (exit $ac_status); } && { 31803 test -z "$ac_c_werror_flag" || 31804 test ! -s conftest.err 31805 } && test -s conftest$ac_exeext && 31806 $as_test_x conftest$ac_exeext; then 31807 eval "$as_ac_var=yes" 31808 else 31809 echo "$as_me: failed program was:" >&5 31810 sed 's/^/| /' conftest.$ac_ext >&5 31811 31812 eval "$as_ac_var=no" 31813 fi 31814 31815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31816 conftest$ac_exeext conftest.$ac_ext 31817 fi 31818 ac_res=`eval echo '${'$as_ac_var'}'` 31819 { echo "$as_me:$LINENO: result: $ac_res" >&5 31820 echo "${ECHO_T}$ac_res" >&6; } 31821 if test `eval echo '${'$as_ac_var'}'` = yes; then 31822 cat >>confdefs.h <<_ACEOF 31823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31824 _ACEOF 31825 31826 else 31827 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 31828 fi 31829 done 31830 31831 if test $ac_cv_func_atexit = no; then 31832 31833 : 31834 31835 fi 31836 31837 31838 31839 for ac_func in canonicalize_file_name 31840 do 31841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31842 { echo "$as_me:$LINENO: checking for $ac_func" >&5 31843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 31844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 31845 echo $ECHO_N "(cached) $ECHO_C" >&6 31846 else 31847 cat >conftest.$ac_ext <<_ACEOF 31848 /* confdefs.h. */ 31849 _ACEOF 31850 cat confdefs.h >>conftest.$ac_ext 31851 cat >>conftest.$ac_ext <<_ACEOF 31852 /* end confdefs.h. */ 31853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31854 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31855 #define $ac_func innocuous_$ac_func 31856 31857 /* System header to define __stub macros and hopefully few prototypes, 31858 which can conflict with char $ac_func (); below. 31859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31860 <limits.h> exists even on freestanding compilers. */ 31861 31862 #ifdef __STDC__ 31863 # include <limits.h> 31864 #else 31865 # include <assert.h> 31866 #endif 31867 31868 #undef $ac_func 31869 31870 /* Override any GCC internal prototype to avoid an error. 31871 Use char because int might match the return type of a GCC 31872 builtin and then its argument prototype would still apply. */ 31873 #ifdef __cplusplus 31874 extern "C" 31875 #endif 31876 char $ac_func (); 31877 /* The GNU C library defines this for functions which it implements 31878 to always fail with ENOSYS. Some functions are actually named 31879 something starting with __ and the normal name is an alias. */ 31880 #if defined __stub_$ac_func || defined __stub___$ac_func 31881 choke me 31882 #endif 31883 31884 int 31885 main () 31886 { 31887 return $ac_func (); 31888 ; 31889 return 0; 31890 } 31891 _ACEOF 31892 rm -f conftest.$ac_objext conftest$ac_exeext 31893 if { (ac_try="$ac_link" 31894 case "(($ac_try" in 31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31896 *) ac_try_echo=$ac_try;; 31897 esac 31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31899 (eval "$ac_link") 2>conftest.er1 31900 ac_status=$? 31901 grep -v '^ *+' conftest.er1 >conftest.err 31902 rm -f conftest.er1 31903 cat conftest.err >&5 31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31905 (exit $ac_status); } && { 31906 test -z "$ac_c_werror_flag" || 31907 test ! -s conftest.err 31908 } && test -s conftest$ac_exeext && 31909 $as_test_x conftest$ac_exeext; then 31910 eval "$as_ac_var=yes" 31911 else 31912 echo "$as_me: failed program was:" >&5 31913 sed 's/^/| /' conftest.$ac_ext >&5 31914 31915 eval "$as_ac_var=no" 31916 fi 31917 31918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31919 conftest$ac_exeext conftest.$ac_ext 31920 fi 31921 ac_res=`eval echo '${'$as_ac_var'}'` 31922 { echo "$as_me:$LINENO: result: $ac_res" >&5 31923 echo "${ECHO_T}$ac_res" >&6; } 31924 if test `eval echo '${'$as_ac_var'}'` = yes; then 31925 cat >>confdefs.h <<_ACEOF 31926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31927 _ACEOF 31928 31929 fi 31930 done 31931 31932 if test $ac_cv_func_canonicalize_file_name = no; then 31933 gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext" 31934 31935 cat >>confdefs.h <<\_ACEOF 31936 #define realpath rpl_realpath 31937 _ACEOF 31938 31939 31940 31941 : 31942 31943 31944 31945 31946 31947 31948 31949 31950 31951 31952 for ac_func in getcwd readlink 31953 do 31954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31955 { echo "$as_me:$LINENO: checking for $ac_func" >&5 31956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 31957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 31958 echo $ECHO_N "(cached) $ECHO_C" >&6 31959 else 31960 cat >conftest.$ac_ext <<_ACEOF 31961 /* confdefs.h. */ 31962 _ACEOF 31963 cat confdefs.h >>conftest.$ac_ext 31964 cat >>conftest.$ac_ext <<_ACEOF 31965 /* end confdefs.h. */ 31966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31968 #define $ac_func innocuous_$ac_func 31969 31970 /* System header to define __stub macros and hopefully few prototypes, 31971 which can conflict with char $ac_func (); below. 31972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31973 <limits.h> exists even on freestanding compilers. */ 31974 31975 #ifdef __STDC__ 31976 # include <limits.h> 31977 #else 31978 # include <assert.h> 31979 #endif 31980 31981 #undef $ac_func 31982 31983 /* Override any GCC internal prototype to avoid an error. 31984 Use char because int might match the return type of a GCC 31985 builtin and then its argument prototype would still apply. */ 31986 #ifdef __cplusplus 31987 extern "C" 31988 #endif 31989 char $ac_func (); 31990 /* The GNU C library defines this for functions which it implements 31991 to always fail with ENOSYS. Some functions are actually named 31992 something starting with __ and the normal name is an alias. */ 31993 #if defined __stub_$ac_func || defined __stub___$ac_func 31994 choke me 31995 #endif 31996 31997 int 31998 main () 31999 { 32000 return $ac_func (); 32001 ; 32002 return 0; 32003 } 32004 _ACEOF 32005 rm -f conftest.$ac_objext conftest$ac_exeext 32006 if { (ac_try="$ac_link" 32007 case "(($ac_try" in 32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32009 *) ac_try_echo=$ac_try;; 32010 esac 32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32012 (eval "$ac_link") 2>conftest.er1 32013 ac_status=$? 32014 grep -v '^ *+' conftest.er1 >conftest.err 32015 rm -f conftest.er1 32016 cat conftest.err >&5 32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32018 (exit $ac_status); } && { 32019 test -z "$ac_c_werror_flag" || 32020 test ! -s conftest.err 32021 } && test -s conftest$ac_exeext && 32022 $as_test_x conftest$ac_exeext; then 32023 eval "$as_ac_var=yes" 32024 else 32025 echo "$as_me: failed program was:" >&5 32026 sed 's/^/| /' conftest.$ac_ext >&5 32027 32028 eval "$as_ac_var=no" 32029 fi 32030 32031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32032 conftest$ac_exeext conftest.$ac_ext 32033 fi 32034 ac_res=`eval echo '${'$as_ac_var'}'` 32035 { echo "$as_me:$LINENO: result: $ac_res" >&5 32036 echo "${ECHO_T}$ac_res" >&6; } 32037 if test `eval echo '${'$as_ac_var'}'` = yes; then 32038 cat >>confdefs.h <<_ACEOF 32039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32040 _ACEOF 32041 32042 fi 32043 done 32044 32045 32046 fi 32047 32048 32049 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" 32050 32051 32052 { echo "$as_me:$LINENO: checking for error_at_line" >&5 32053 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } 32054 if test "${ac_cv_lib_error_at_line+set}" = set; then 32055 echo $ECHO_N "(cached) $ECHO_C" >&6 32056 else 32057 cat >conftest.$ac_ext <<_ACEOF 32058 /* confdefs.h. */ 32059 _ACEOF 32060 cat confdefs.h >>conftest.$ac_ext 32061 cat >>conftest.$ac_ext <<_ACEOF 32062 /* end confdefs.h. */ 32063 #include <error.h> 32064 int 32065 main () 32066 { 32067 error_at_line (0, 0, "", 0, "an error occurred"); 32068 ; 32069 return 0; 32070 } 32071 _ACEOF 32072 rm -f conftest.$ac_objext conftest$ac_exeext 32073 if { (ac_try="$ac_link" 32074 case "(($ac_try" in 32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32076 *) ac_try_echo=$ac_try;; 32077 esac 32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32079 (eval "$ac_link") 2>conftest.er1 32080 ac_status=$? 32081 grep -v '^ *+' conftest.er1 >conftest.err 32082 rm -f conftest.er1 32083 cat conftest.err >&5 32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32085 (exit $ac_status); } && { 32086 test -z "$ac_c_werror_flag" || 32087 test ! -s conftest.err 32088 } && test -s conftest$ac_exeext && 32089 $as_test_x conftest$ac_exeext; then 32090 ac_cv_lib_error_at_line=yes 32091 else 32092 echo "$as_me: failed program was:" >&5 32093 sed 's/^/| /' conftest.$ac_ext >&5 32094 32095 ac_cv_lib_error_at_line=no 32096 fi 32097 32098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32099 conftest$ac_exeext conftest.$ac_ext 32100 fi 32101 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 32102 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } 32103 if test $ac_cv_lib_error_at_line = no; then 32104 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 32105 fi 32106 32107 32108 32109 : 32110 32111 32112 32113 cat >>confdefs.h <<\_ACEOF 32114 #define GNULIB_FWRITEERROR 1 32115 _ACEOF 32116 32117 32118 32119 if test -n "$GETOPT_H"; then 32120 32121 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 32122 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 32123 32124 GETOPT_H=getopt.h 32125 32126 cat >>confdefs.h <<\_ACEOF 32127 #define __GETOPT_PREFIX rpl_ 32128 _ACEOF 32129 32130 32131 32132 32133 32134 : 32135 32136 32137 32138 32139 32140 32141 32142 fi 32143 32144 32145 32146 32147 32148 32149 32150 am_save_CPPFLAGS="$CPPFLAGS" 32151 32152 for element in $INCICONV; do 32153 haveit= 32154 for x in $CPPFLAGS; do 32155 32156 acl_save_prefix="$prefix" 32157 prefix="$acl_final_prefix" 32158 acl_save_exec_prefix="$exec_prefix" 32159 exec_prefix="$acl_final_exec_prefix" 32160 eval x=\"$x\" 32161 exec_prefix="$acl_save_exec_prefix" 32162 prefix="$acl_save_prefix" 32163 32164 if test "X$x" = "X$element"; then 32165 haveit=yes 32166 break 32167 fi 32168 done 32169 if test -z "$haveit"; then 32170 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 32171 fi 32172 done 32173 32174 32175 { echo "$as_me:$LINENO: checking for iconv" >&5 32176 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 32177 if test "${am_cv_func_iconv+set}" = set; then 32178 echo $ECHO_N "(cached) $ECHO_C" >&6 32179 else 32180 32181 am_cv_func_iconv="no, consider installing GNU libiconv" 32182 am_cv_lib_iconv=no 32183 cat >conftest.$ac_ext <<_ACEOF 32184 /* confdefs.h. */ 32185 _ACEOF 32186 cat confdefs.h >>conftest.$ac_ext 32187 cat >>conftest.$ac_ext <<_ACEOF 32188 /* end confdefs.h. */ 32189 #include <stdlib.h> 32190 #include <iconv.h> 32191 int 32192 main () 32193 { 32194 iconv_t cd = iconv_open("",""); 32195 iconv(cd,NULL,NULL,NULL,NULL); 32196 iconv_close(cd); 32197 ; 32198 return 0; 32199 } 32200 _ACEOF 32201 rm -f conftest.$ac_objext conftest$ac_exeext 32202 if { (ac_try="$ac_link" 32203 case "(($ac_try" in 32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32205 *) ac_try_echo=$ac_try;; 32206 esac 32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32208 (eval "$ac_link") 2>conftest.er1 32209 ac_status=$? 32210 grep -v '^ *+' conftest.er1 >conftest.err 32211 rm -f conftest.er1 32212 cat conftest.err >&5 32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32214 (exit $ac_status); } && { 32215 test -z "$ac_c_werror_flag" || 32216 test ! -s conftest.err 32217 } && test -s conftest$ac_exeext && 32218 $as_test_x conftest$ac_exeext; then 32219 am_cv_func_iconv=yes 32220 else 32221 echo "$as_me: failed program was:" >&5 32222 sed 's/^/| /' conftest.$ac_ext >&5 32223 32224 32225 fi 32226 32227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32228 conftest$ac_exeext conftest.$ac_ext 32229 if test "$am_cv_func_iconv" != yes; then 32230 am_save_LIBS="$LIBS" 32231 LIBS="$LIBS $LIBICONV" 32232 cat >conftest.$ac_ext <<_ACEOF 32233 /* confdefs.h. */ 32234 _ACEOF 32235 cat confdefs.h >>conftest.$ac_ext 32236 cat >>conftest.$ac_ext <<_ACEOF 32237 /* end confdefs.h. */ 32238 #include <stdlib.h> 32239 #include <iconv.h> 32240 int 32241 main () 32242 { 32243 iconv_t cd = iconv_open("",""); 32244 iconv(cd,NULL,NULL,NULL,NULL); 32245 iconv_close(cd); 32246 ; 32247 return 0; 32248 } 32249 _ACEOF 32250 rm -f conftest.$ac_objext conftest$ac_exeext 32251 if { (ac_try="$ac_link" 32252 case "(($ac_try" in 32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32254 *) ac_try_echo=$ac_try;; 32255 esac 32256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32257 (eval "$ac_link") 2>conftest.er1 32258 ac_status=$? 32259 grep -v '^ *+' conftest.er1 >conftest.err 32260 rm -f conftest.er1 32261 cat conftest.err >&5 32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32263 (exit $ac_status); } && { 32264 test -z "$ac_c_werror_flag" || 32265 test ! -s conftest.err 32266 } && test -s conftest$ac_exeext && 32267 $as_test_x conftest$ac_exeext; then 32268 am_cv_lib_iconv=yes 32269 am_cv_func_iconv=yes 32270 else 32271 echo "$as_me: failed program was:" >&5 32272 sed 's/^/| /' conftest.$ac_ext >&5 32273 32274 32275 fi 32276 32277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32278 conftest$ac_exeext conftest.$ac_ext 32279 LIBS="$am_save_LIBS" 32280 fi 32281 32282 fi 32283 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 32284 echo "${ECHO_T}$am_cv_func_iconv" >&6; } 32285 if test "$am_cv_func_iconv" = yes; then 32286 32287 cat >>confdefs.h <<\_ACEOF 32288 #define HAVE_ICONV 1 32289 _ACEOF 32290 32291 fi 32292 if test "$am_cv_lib_iconv" = yes; then 32293 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 32294 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 32295 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 32296 echo "${ECHO_T}$LIBICONV" >&6; } 32297 else 32298 CPPFLAGS="$am_save_CPPFLAGS" 32299 LIBICONV= 32300 LTLIBICONV= 32301 fi 32302 32303 32304 32305 if test "$am_cv_func_iconv" = yes; then 32306 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 32307 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 32308 if test "${am_cv_proto_iconv+set}" = set; then 32309 echo $ECHO_N "(cached) $ECHO_C" >&6 32310 else 32311 32312 cat >conftest.$ac_ext <<_ACEOF 32313 /* confdefs.h. */ 32314 _ACEOF 32315 cat confdefs.h >>conftest.$ac_ext 32316 cat >>conftest.$ac_ext <<_ACEOF 32317 /* end confdefs.h. */ 32318 32319 #include <stdlib.h> 32320 #include <iconv.h> 32321 extern 32322 #ifdef __cplusplus 32323 "C" 32324 #endif 32325 #if defined(__STDC__) || defined(__cplusplus) 32326 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 32327 #else 32328 size_t iconv(); 32329 #endif 32330 32331 int 32332 main () 32333 { 32334 32335 ; 32336 return 0; 32337 } 32338 _ACEOF 32339 rm -f conftest.$ac_objext 32340 if { (ac_try="$ac_compile" 32341 case "(($ac_try" in 32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32343 *) ac_try_echo=$ac_try;; 32344 esac 32345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32346 (eval "$ac_compile") 2>conftest.er1 32347 ac_status=$? 32348 grep -v '^ *+' conftest.er1 >conftest.err 32349 rm -f conftest.er1 32350 cat conftest.err >&5 32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32352 (exit $ac_status); } && { 32353 test -z "$ac_c_werror_flag" || 32354 test ! -s conftest.err 32355 } && test -s conftest.$ac_objext; then 32356 am_cv_proto_iconv_arg1="" 32357 else 32358 echo "$as_me: failed program was:" >&5 32359 sed 's/^/| /' conftest.$ac_ext >&5 32360 32361 am_cv_proto_iconv_arg1="const" 32362 fi 32363 32364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32365 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 32366 fi 32367 32368 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 32369 { echo "$as_me:$LINENO: result: ${ac_t:- 32370 }$am_cv_proto_iconv" >&5 32371 echo "${ECHO_T}${ac_t:- 32372 }$am_cv_proto_iconv" >&6; } 32373 32374 cat >>confdefs.h <<_ACEOF 32375 #define ICONV_CONST $am_cv_proto_iconv_arg1 32376 _ACEOF 32377 32378 fi 32379 32380 32381 { echo "$as_me:$LINENO: checking whether to use Java" >&5 32382 echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } 32383 # Check whether --enable-java was given. 32384 if test "${enable_java+set}" = set; then 32385 enableval=$enable_java; JAVA_CHOICE="$enableval" 32386 else 32387 JAVA_CHOICE=yes 32388 fi 32389 32390 { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 32391 echo "${ECHO_T}$JAVA_CHOICE" >&6; } 32392 if test "$JAVA_CHOICE" = yes; then 32393 # Check whether --enable-native-java was given. 32394 if test "${enable_native_java+set}" = set; then 32395 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode 32396 fi 32397 32398 fi 32399 32400 32401 # You need to invoke gt_JAVACOMP yourself, possibly with arguments. 32402 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" 32403 32404 32405 32406 32407 : 32408 32409 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 : 32421 32422 32423 32424 32425 32426 if test $ac_cv_header_wchar_h = yes; then 32427 gl_LIBOBJS="$gl_LIBOBJS mbchar.$ac_objext" 32428 32429 : 32430 32431 32432 32433 32434 32435 32436 for ac_func in iswcntrl 32437 do 32438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32439 { echo "$as_me:$LINENO: checking for $ac_func" >&5 32440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 32441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 32442 echo $ECHO_N "(cached) $ECHO_C" >&6 32443 else 32444 cat >conftest.$ac_ext <<_ACEOF 32445 /* confdefs.h. */ 32446 _ACEOF 32447 cat confdefs.h >>conftest.$ac_ext 32448 cat >>conftest.$ac_ext <<_ACEOF 32449 /* end confdefs.h. */ 32450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 32451 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32452 #define $ac_func innocuous_$ac_func 32453 32454 /* System header to define __stub macros and hopefully few prototypes, 32455 which can conflict with char $ac_func (); below. 32456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32457 <limits.h> exists even on freestanding compilers. */ 32458 32459 #ifdef __STDC__ 32460 # include <limits.h> 32461 #else 32462 # include <assert.h> 32463 #endif 32464 32465 #undef $ac_func 32466 32467 /* Override any GCC internal prototype to avoid an error. 32468 Use char because int might match the return type of a GCC 32469 builtin and then its argument prototype would still apply. */ 32470 #ifdef __cplusplus 32471 extern "C" 32472 #endif 32473 char $ac_func (); 32474 /* The GNU C library defines this for functions which it implements 32475 to always fail with ENOSYS. Some functions are actually named 32476 something starting with __ and the normal name is an alias. */ 32477 #if defined __stub_$ac_func || defined __stub___$ac_func 32478 choke me 32479 #endif 32480 32481 int 32482 main () 32483 { 32484 return $ac_func (); 32485 ; 32486 return 0; 32487 } 32488 _ACEOF 32489 rm -f conftest.$ac_objext conftest$ac_exeext 32490 if { (ac_try="$ac_link" 32491 case "(($ac_try" in 32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32493 *) ac_try_echo=$ac_try;; 32494 esac 32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32496 (eval "$ac_link") 2>conftest.er1 32497 ac_status=$? 32498 grep -v '^ *+' conftest.er1 >conftest.err 32499 rm -f conftest.er1 32500 cat conftest.err >&5 32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32502 (exit $ac_status); } && { 32503 test -z "$ac_c_werror_flag" || 32504 test ! -s conftest.err 32505 } && test -s conftest$ac_exeext && 32506 $as_test_x conftest$ac_exeext; then 32507 eval "$as_ac_var=yes" 32508 else 32509 echo "$as_me: failed program was:" >&5 32510 sed 's/^/| /' conftest.$ac_ext >&5 32511 32512 eval "$as_ac_var=no" 32513 fi 32514 32515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32516 conftest$ac_exeext conftest.$ac_ext 32517 fi 32518 ac_res=`eval echo '${'$as_ac_var'}'` 32519 { echo "$as_me:$LINENO: result: $ac_res" >&5 32520 echo "${ECHO_T}$ac_res" >&6; } 32521 if test `eval echo '${'$as_ac_var'}'` = yes; then 32522 cat >>confdefs.h <<_ACEOF 32523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32524 _ACEOF 32525 32526 fi 32527 done 32528 32529 fi 32530 32531 32532 32533 32534 : 32535 32536 32537 32538 for ac_func in memchr 32539 do 32540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32541 { echo "$as_me:$LINENO: checking for $ac_func" >&5 32542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 32543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 32544 echo $ECHO_N "(cached) $ECHO_C" >&6 32545 else 32546 cat >conftest.$ac_ext <<_ACEOF 32547 /* confdefs.h. */ 32548 _ACEOF 32549 cat confdefs.h >>conftest.$ac_ext 32550 cat >>conftest.$ac_ext <<_ACEOF 32551 /* end confdefs.h. */ 32552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 32553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32554 #define $ac_func innocuous_$ac_func 32555 32556 /* System header to define __stub macros and hopefully few prototypes, 32557 which can conflict with char $ac_func (); below. 32558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32559 <limits.h> exists even on freestanding compilers. */ 32560 32561 #ifdef __STDC__ 32562 # include <limits.h> 32563 #else 32564 # include <assert.h> 32565 #endif 32566 32567 #undef $ac_func 32568 32569 /* Override any GCC internal prototype to avoid an error. 32570 Use char because int might match the return type of a GCC 32571 builtin and then its argument prototype would still apply. */ 32572 #ifdef __cplusplus 32573 extern "C" 32574 #endif 32575 char $ac_func (); 32576 /* The GNU C library defines this for functions which it implements 32577 to always fail with ENOSYS. Some functions are actually named 32578 something starting with __ and the normal name is an alias. */ 32579 #if defined __stub_$ac_func || defined __stub___$ac_func 32580 choke me 32581 #endif 32582 32583 int 32584 main () 32585 { 32586 return $ac_func (); 32587 ; 32588 return 0; 32589 } 32590 _ACEOF 32591 rm -f conftest.$ac_objext conftest$ac_exeext 32592 if { (ac_try="$ac_link" 32593 case "(($ac_try" in 32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32595 *) ac_try_echo=$ac_try;; 32596 esac 32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32598 (eval "$ac_link") 2>conftest.er1 32599 ac_status=$? 32600 grep -v '^ *+' conftest.er1 >conftest.err 32601 rm -f conftest.er1 32602 cat conftest.err >&5 32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32604 (exit $ac_status); } && { 32605 test -z "$ac_c_werror_flag" || 32606 test ! -s conftest.err 32607 } && test -s conftest$ac_exeext && 32608 $as_test_x conftest$ac_exeext; then 32609 eval "$as_ac_var=yes" 32610 else 32611 echo "$as_me: failed program was:" >&5 32612 sed 's/^/| /' conftest.$ac_ext >&5 32613 32614 eval "$as_ac_var=no" 32615 fi 32616 32617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32618 conftest$ac_exeext conftest.$ac_ext 32619 fi 32620 ac_res=`eval echo '${'$as_ac_var'}'` 32621 { echo "$as_me:$LINENO: result: $ac_res" >&5 32622 echo "${ECHO_T}$ac_res" >&6; } 32623 if test `eval echo '${'$as_ac_var'}'` = yes; then 32624 cat >>confdefs.h <<_ACEOF 32625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32626 _ACEOF 32627 32628 else 32629 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 32630 fi 32631 done 32632 32633 if test $ac_cv_func_memchr = no; then 32634 32635 32636 for ac_header in bp-sym.h 32637 do 32638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 32639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 32640 { echo "$as_me:$LINENO: checking for $ac_header" >&5 32641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 32642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 32643 echo $ECHO_N "(cached) $ECHO_C" >&6 32644 fi 32645 ac_res=`eval echo '${'$as_ac_Header'}'` 32646 { echo "$as_me:$LINENO: result: $ac_res" >&5 32647 echo "${ECHO_T}$ac_res" >&6; } 32648 else 32649 # Is the header compilable? 32650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 32651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 32652 cat >conftest.$ac_ext <<_ACEOF 32653 /* confdefs.h. */ 32654 _ACEOF 32655 cat confdefs.h >>conftest.$ac_ext 32656 cat >>conftest.$ac_ext <<_ACEOF 32657 /* end confdefs.h. */ 32658 $ac_includes_default 32659 #include <$ac_header> 32660 _ACEOF 32661 rm -f conftest.$ac_objext 32662 if { (ac_try="$ac_compile" 32663 case "(($ac_try" in 32664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32665 *) ac_try_echo=$ac_try;; 32666 esac 32667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32668 (eval "$ac_compile") 2>conftest.er1 32669 ac_status=$? 32670 grep -v '^ *+' conftest.er1 >conftest.err 32671 rm -f conftest.er1 32672 cat conftest.err >&5 32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32674 (exit $ac_status); } && { 32675 test -z "$ac_c_werror_flag" || 32676 test ! -s conftest.err 32677 } && test -s conftest.$ac_objext; then 32678 ac_header_compiler=yes 32679 else 32680 echo "$as_me: failed program was:" >&5 32681 sed 's/^/| /' conftest.$ac_ext >&5 32682 32683 ac_header_compiler=no 32684 fi 32685 32686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 32688 echo "${ECHO_T}$ac_header_compiler" >&6; } 32689 32690 # Is the header present? 32691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 32692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 32693 cat >conftest.$ac_ext <<_ACEOF 32694 /* confdefs.h. */ 32695 _ACEOF 32696 cat confdefs.h >>conftest.$ac_ext 32697 cat >>conftest.$ac_ext <<_ACEOF 32698 /* end confdefs.h. */ 32699 #include <$ac_header> 32700 _ACEOF 32701 if { (ac_try="$ac_cpp conftest.$ac_ext" 32702 case "(($ac_try" in 32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32704 *) ac_try_echo=$ac_try;; 32705 esac 32706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 32708 ac_status=$? 32709 grep -v '^ *+' conftest.er1 >conftest.err 32710 rm -f conftest.er1 32711 cat conftest.err >&5 32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32713 (exit $ac_status); } >/dev/null && { 32714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 32715 test ! -s conftest.err 32716 }; then 32717 ac_header_preproc=yes 32718 else 32719 echo "$as_me: failed program was:" >&5 32720 sed 's/^/| /' conftest.$ac_ext >&5 32721 32722 ac_header_preproc=no 32723 fi 32724 32725 rm -f conftest.err conftest.$ac_ext 32726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 32727 echo "${ECHO_T}$ac_header_preproc" >&6; } 32728 32729 # So? What about this header? 32730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 32731 yes:no: ) 32732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 32733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 32734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 32735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 32736 ac_header_preproc=yes 32737 ;; 32738 no:yes:* ) 32739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 32740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 32741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 32742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 32743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 32744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 32745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 32746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 32747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 32749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 32750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 32751 32752 ;; 32753 esac 32754 { echo "$as_me:$LINENO: checking for $ac_header" >&5 32755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 32756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 32757 echo $ECHO_N "(cached) $ECHO_C" >&6 32758 else 32759 eval "$as_ac_Header=\$ac_header_preproc" 32760 fi 32761 ac_res=`eval echo '${'$as_ac_Header'}'` 32762 { echo "$as_me:$LINENO: result: $ac_res" >&5 32763 echo "${ECHO_T}$ac_res" >&6; } 32764 32765 fi 32766 if test `eval echo '${'$as_ac_Header'}'` = yes; then 32767 cat >>confdefs.h <<_ACEOF 32768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 32769 _ACEOF 32770 32771 fi 32772 32773 done 32774 32775 32776 fi 32777 32778 32779 32780 for ac_func in memmove 32781 do 32782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32783 { echo "$as_me:$LINENO: checking for $ac_func" >&5 32784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 32785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 32786 echo $ECHO_N "(cached) $ECHO_C" >&6 32787 else 32788 cat >conftest.$ac_ext <<_ACEOF 32789 /* confdefs.h. */ 32790 _ACEOF 32791 cat confdefs.h >>conftest.$ac_ext 32792 cat >>conftest.$ac_ext <<_ACEOF 32793 /* end confdefs.h. */ 32794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 32795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32796 #define $ac_func innocuous_$ac_func 32797 32798 /* System header to define __stub macros and hopefully few prototypes, 32799 which can conflict with char $ac_func (); below. 32800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32801 <limits.h> exists even on freestanding compilers. */ 32802 32803 #ifdef __STDC__ 32804 # include <limits.h> 32805 #else 32806 # include <assert.h> 32807 #endif 32808 32809 #undef $ac_func 32810 32811 /* Override any GCC internal prototype to avoid an error. 32812 Use char because int might match the return type of a GCC 32813 builtin and then its argument prototype would still apply. */ 32814 #ifdef __cplusplus 32815 extern "C" 32816 #endif 32817 char $ac_func (); 32818 /* The GNU C library defines this for functions which it implements 32819 to always fail with ENOSYS. Some functions are actually named 32820 something starting with __ and the normal name is an alias. */ 32821 #if defined __stub_$ac_func || defined __stub___$ac_func 32822 choke me 32823 #endif 32824 32825 int 32826 main () 32827 { 32828 return $ac_func (); 32829 ; 32830 return 0; 32831 } 32832 _ACEOF 32833 rm -f conftest.$ac_objext conftest$ac_exeext 32834 if { (ac_try="$ac_link" 32835 case "(($ac_try" in 32836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32837 *) ac_try_echo=$ac_try;; 32838 esac 32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32840 (eval "$ac_link") 2>conftest.er1 32841 ac_status=$? 32842 grep -v '^ *+' conftest.er1 >conftest.err 32843 rm -f conftest.er1 32844 cat conftest.err >&5 32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32846 (exit $ac_status); } && { 32847 test -z "$ac_c_werror_flag" || 32848 test ! -s conftest.err 32849 } && test -s conftest$ac_exeext && 32850 $as_test_x conftest$ac_exeext; then 32851 eval "$as_ac_var=yes" 32852 else 32853 echo "$as_me: failed program was:" >&5 32854 sed 's/^/| /' conftest.$ac_ext >&5 32855 32856 eval "$as_ac_var=no" 32857 fi 32858 32859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32860 conftest$ac_exeext conftest.$ac_ext 32861 fi 32862 ac_res=`eval echo '${'$as_ac_var'}'` 32863 { echo "$as_me:$LINENO: result: $ac_res" >&5 32864 echo "${ECHO_T}$ac_res" >&6; } 32865 if test `eval echo '${'$as_ac_var'}'` = yes; then 32866 cat >>confdefs.h <<_ACEOF 32867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32868 _ACEOF 32869 32870 else 32871 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 32872 fi 32873 done 32874 32875 if test $ac_cv_func_memmove = no; then 32876 32877 : 32878 32879 fi 32880 32881 32882 32883 : 32884 32885 32886 32887 32888 32889 32890 32891 32892 for ac_func in readlink 32893 do 32894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32895 { echo "$as_me:$LINENO: checking for $ac_func" >&5 32896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 32897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 32898 echo $ECHO_N "(cached) $ECHO_C" >&6 32899 else 32900 cat >conftest.$ac_ext <<_ACEOF 32901 /* confdefs.h. */ 32902 _ACEOF 32903 cat confdefs.h >>conftest.$ac_ext 32904 cat >>conftest.$ac_ext <<_ACEOF 32905 /* end confdefs.h. */ 32906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 32907 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32908 #define $ac_func innocuous_$ac_func 32909 32910 /* System header to define __stub macros and hopefully few prototypes, 32911 which can conflict with char $ac_func (); below. 32912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32913 <limits.h> exists even on freestanding compilers. */ 32914 32915 #ifdef __STDC__ 32916 # include <limits.h> 32917 #else 32918 # include <assert.h> 32919 #endif 32920 32921 #undef $ac_func 32922 32923 /* Override any GCC internal prototype to avoid an error. 32924 Use char because int might match the return type of a GCC 32925 builtin and then its argument prototype would still apply. */ 32926 #ifdef __cplusplus 32927 extern "C" 32928 #endif 32929 char $ac_func (); 32930 /* The GNU C library defines this for functions which it implements 32931 to always fail with ENOSYS. Some functions are actually named 32932 something starting with __ and the normal name is an alias. */ 32933 #if defined __stub_$ac_func || defined __stub___$ac_func 32934 choke me 32935 #endif 32936 32937 int 32938 main () 32939 { 32940 return $ac_func (); 32941 ; 32942 return 0; 32943 } 32944 _ACEOF 32945 rm -f conftest.$ac_objext conftest$ac_exeext 32946 if { (ac_try="$ac_link" 32947 case "(($ac_try" in 32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32949 *) ac_try_echo=$ac_try;; 32950 esac 32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32952 (eval "$ac_link") 2>conftest.er1 32953 ac_status=$? 32954 grep -v '^ *+' conftest.er1 >conftest.err 32955 rm -f conftest.er1 32956 cat conftest.err >&5 32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32958 (exit $ac_status); } && { 32959 test -z "$ac_c_werror_flag" || 32960 test ! -s conftest.err 32961 } && test -s conftest$ac_exeext && 32962 $as_test_x conftest$ac_exeext; then 32963 eval "$as_ac_var=yes" 32964 else 32965 echo "$as_me: failed program was:" >&5 32966 sed 's/^/| /' conftest.$ac_ext >&5 32967 32968 eval "$as_ac_var=no" 32969 fi 32970 32971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32972 conftest$ac_exeext conftest.$ac_ext 32973 fi 32974 ac_res=`eval echo '${'$as_ac_var'}'` 32975 { echo "$as_me:$LINENO: result: $ac_res" >&5 32976 echo "${ECHO_T}$ac_res" >&6; } 32977 if test `eval echo '${'$as_ac_var'}'` = yes; then 32978 cat >>confdefs.h <<_ACEOF 32979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32980 _ACEOF 32981 32982 fi 32983 done 32984 32985 if test $ac_cv_func_readlink = no; then 32986 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" 32987 32988 : 32989 32990 fi 32991 32992 32993 32994 if test $RELOCATABLE = yes; then 32995 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" 32996 fi 32997 32998 32999 33000 33001 for ac_func in setenv unsetenv 33002 do 33003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33004 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33007 echo $ECHO_N "(cached) $ECHO_C" >&6 33008 else 33009 cat >conftest.$ac_ext <<_ACEOF 33010 /* confdefs.h. */ 33011 _ACEOF 33012 cat confdefs.h >>conftest.$ac_ext 33013 cat >>conftest.$ac_ext <<_ACEOF 33014 /* end confdefs.h. */ 33015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33017 #define $ac_func innocuous_$ac_func 33018 33019 /* System header to define __stub macros and hopefully few prototypes, 33020 which can conflict with char $ac_func (); below. 33021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33022 <limits.h> exists even on freestanding compilers. */ 33023 33024 #ifdef __STDC__ 33025 # include <limits.h> 33026 #else 33027 # include <assert.h> 33028 #endif 33029 33030 #undef $ac_func 33031 33032 /* Override any GCC internal prototype to avoid an error. 33033 Use char because int might match the return type of a GCC 33034 builtin and then its argument prototype would still apply. */ 33035 #ifdef __cplusplus 33036 extern "C" 33037 #endif 33038 char $ac_func (); 33039 /* The GNU C library defines this for functions which it implements 33040 to always fail with ENOSYS. Some functions are actually named 33041 something starting with __ and the normal name is an alias. */ 33042 #if defined __stub_$ac_func || defined __stub___$ac_func 33043 choke me 33044 #endif 33045 33046 int 33047 main () 33048 { 33049 return $ac_func (); 33050 ; 33051 return 0; 33052 } 33053 _ACEOF 33054 rm -f conftest.$ac_objext conftest$ac_exeext 33055 if { (ac_try="$ac_link" 33056 case "(($ac_try" in 33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33058 *) ac_try_echo=$ac_try;; 33059 esac 33060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33061 (eval "$ac_link") 2>conftest.er1 33062 ac_status=$? 33063 grep -v '^ *+' conftest.er1 >conftest.err 33064 rm -f conftest.er1 33065 cat conftest.err >&5 33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33067 (exit $ac_status); } && { 33068 test -z "$ac_c_werror_flag" || 33069 test ! -s conftest.err 33070 } && test -s conftest$ac_exeext && 33071 $as_test_x conftest$ac_exeext; then 33072 eval "$as_ac_var=yes" 33073 else 33074 echo "$as_me: failed program was:" >&5 33075 sed 's/^/| /' conftest.$ac_ext >&5 33076 33077 eval "$as_ac_var=no" 33078 fi 33079 33080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33081 conftest$ac_exeext conftest.$ac_ext 33082 fi 33083 ac_res=`eval echo '${'$as_ac_var'}'` 33084 { echo "$as_me:$LINENO: result: $ac_res" >&5 33085 echo "${ECHO_T}$ac_res" >&6; } 33086 if test `eval echo '${'$as_ac_var'}'` = yes; then 33087 cat >>confdefs.h <<_ACEOF 33088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33089 _ACEOF 33090 33091 else 33092 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 33093 fi 33094 done 33095 33096 if test $ac_cv_func_setenv = no; then 33097 33098 33099 33100 : 33101 33102 33103 33104 33105 33106 33107 for ac_header in search.h 33108 do 33109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 33111 { echo "$as_me:$LINENO: checking for $ac_header" >&5 33112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 33113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 33114 echo $ECHO_N "(cached) $ECHO_C" >&6 33115 fi 33116 ac_res=`eval echo '${'$as_ac_Header'}'` 33117 { echo "$as_me:$LINENO: result: $ac_res" >&5 33118 echo "${ECHO_T}$ac_res" >&6; } 33119 else 33120 # Is the header compilable? 33121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 33122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 33123 cat >conftest.$ac_ext <<_ACEOF 33124 /* confdefs.h. */ 33125 _ACEOF 33126 cat confdefs.h >>conftest.$ac_ext 33127 cat >>conftest.$ac_ext <<_ACEOF 33128 /* end confdefs.h. */ 33129 $ac_includes_default 33130 #include <$ac_header> 33131 _ACEOF 33132 rm -f conftest.$ac_objext 33133 if { (ac_try="$ac_compile" 33134 case "(($ac_try" in 33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33136 *) ac_try_echo=$ac_try;; 33137 esac 33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33139 (eval "$ac_compile") 2>conftest.er1 33140 ac_status=$? 33141 grep -v '^ *+' conftest.er1 >conftest.err 33142 rm -f conftest.er1 33143 cat conftest.err >&5 33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33145 (exit $ac_status); } && { 33146 test -z "$ac_c_werror_flag" || 33147 test ! -s conftest.err 33148 } && test -s conftest.$ac_objext; then 33149 ac_header_compiler=yes 33150 else 33151 echo "$as_me: failed program was:" >&5 33152 sed 's/^/| /' conftest.$ac_ext >&5 33153 33154 ac_header_compiler=no 33155 fi 33156 33157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33159 echo "${ECHO_T}$ac_header_compiler" >&6; } 33160 33161 # Is the header present? 33162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 33163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 33164 cat >conftest.$ac_ext <<_ACEOF 33165 /* confdefs.h. */ 33166 _ACEOF 33167 cat confdefs.h >>conftest.$ac_ext 33168 cat >>conftest.$ac_ext <<_ACEOF 33169 /* end confdefs.h. */ 33170 #include <$ac_header> 33171 _ACEOF 33172 if { (ac_try="$ac_cpp conftest.$ac_ext" 33173 case "(($ac_try" in 33174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33175 *) ac_try_echo=$ac_try;; 33176 esac 33177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 33179 ac_status=$? 33180 grep -v '^ *+' conftest.er1 >conftest.err 33181 rm -f conftest.er1 33182 cat conftest.err >&5 33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33184 (exit $ac_status); } >/dev/null && { 33185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 33186 test ! -s conftest.err 33187 }; then 33188 ac_header_preproc=yes 33189 else 33190 echo "$as_me: failed program was:" >&5 33191 sed 's/^/| /' conftest.$ac_ext >&5 33192 33193 ac_header_preproc=no 33194 fi 33195 33196 rm -f conftest.err conftest.$ac_ext 33197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33198 echo "${ECHO_T}$ac_header_preproc" >&6; } 33199 33200 # So? What about this header? 33201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33202 yes:no: ) 33203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 33206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 33207 ac_header_preproc=yes 33208 ;; 33209 no:yes:* ) 33210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 33215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 33216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 33217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 33218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 33220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 33221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 33222 33223 ;; 33224 esac 33225 { echo "$as_me:$LINENO: checking for $ac_header" >&5 33226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 33227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 33228 echo $ECHO_N "(cached) $ECHO_C" >&6 33229 else 33230 eval "$as_ac_Header=\$ac_header_preproc" 33231 fi 33232 ac_res=`eval echo '${'$as_ac_Header'}'` 33233 { echo "$as_me:$LINENO: result: $ac_res" >&5 33234 echo "${ECHO_T}$ac_res" >&6; } 33235 33236 fi 33237 if test `eval echo '${'$as_ac_Header'}'` = yes; then 33238 cat >>confdefs.h <<_ACEOF 33239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33240 _ACEOF 33241 33242 fi 33243 33244 done 33245 33246 33247 for ac_func in tsearch 33248 do 33249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33250 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33253 echo $ECHO_N "(cached) $ECHO_C" >&6 33254 else 33255 cat >conftest.$ac_ext <<_ACEOF 33256 /* confdefs.h. */ 33257 _ACEOF 33258 cat confdefs.h >>conftest.$ac_ext 33259 cat >>conftest.$ac_ext <<_ACEOF 33260 /* end confdefs.h. */ 33261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33262 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33263 #define $ac_func innocuous_$ac_func 33264 33265 /* System header to define __stub macros and hopefully few prototypes, 33266 which can conflict with char $ac_func (); below. 33267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33268 <limits.h> exists even on freestanding compilers. */ 33269 33270 #ifdef __STDC__ 33271 # include <limits.h> 33272 #else 33273 # include <assert.h> 33274 #endif 33275 33276 #undef $ac_func 33277 33278 /* Override any GCC internal prototype to avoid an error. 33279 Use char because int might match the return type of a GCC 33280 builtin and then its argument prototype would still apply. */ 33281 #ifdef __cplusplus 33282 extern "C" 33283 #endif 33284 char $ac_func (); 33285 /* The GNU C library defines this for functions which it implements 33286 to always fail with ENOSYS. Some functions are actually named 33287 something starting with __ and the normal name is an alias. */ 33288 #if defined __stub_$ac_func || defined __stub___$ac_func 33289 choke me 33290 #endif 33291 33292 int 33293 main () 33294 { 33295 return $ac_func (); 33296 ; 33297 return 0; 33298 } 33299 _ACEOF 33300 rm -f conftest.$ac_objext conftest$ac_exeext 33301 if { (ac_try="$ac_link" 33302 case "(($ac_try" in 33303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33304 *) ac_try_echo=$ac_try;; 33305 esac 33306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33307 (eval "$ac_link") 2>conftest.er1 33308 ac_status=$? 33309 grep -v '^ *+' conftest.er1 >conftest.err 33310 rm -f conftest.er1 33311 cat conftest.err >&5 33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33313 (exit $ac_status); } && { 33314 test -z "$ac_c_werror_flag" || 33315 test ! -s conftest.err 33316 } && test -s conftest$ac_exeext && 33317 $as_test_x conftest$ac_exeext; then 33318 eval "$as_ac_var=yes" 33319 else 33320 echo "$as_me: failed program was:" >&5 33321 sed 's/^/| /' conftest.$ac_ext >&5 33322 33323 eval "$as_ac_var=no" 33324 fi 33325 33326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33327 conftest$ac_exeext conftest.$ac_ext 33328 fi 33329 ac_res=`eval echo '${'$as_ac_var'}'` 33330 { echo "$as_me:$LINENO: result: $ac_res" >&5 33331 echo "${ECHO_T}$ac_res" >&6; } 33332 if test `eval echo '${'$as_ac_var'}'` = yes; then 33333 cat >>confdefs.h <<_ACEOF 33334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33335 _ACEOF 33336 33337 fi 33338 done 33339 33340 33341 33342 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 33343 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } 33344 if test "${gt_cv_var_environ_declaration+set}" = set; then 33345 echo $ECHO_N "(cached) $ECHO_C" >&6 33346 else 33347 33348 cat >conftest.$ac_ext <<_ACEOF 33349 /* confdefs.h. */ 33350 _ACEOF 33351 cat confdefs.h >>conftest.$ac_ext 33352 cat >>conftest.$ac_ext <<_ACEOF 33353 /* end confdefs.h. */ 33354 #include <unistd.h> 33355 extern struct { int foo; } environ; 33356 int 33357 main () 33358 { 33359 environ.foo = 1; 33360 ; 33361 return 0; 33362 } 33363 _ACEOF 33364 rm -f conftest.$ac_objext 33365 if { (ac_try="$ac_compile" 33366 case "(($ac_try" in 33367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33368 *) ac_try_echo=$ac_try;; 33369 esac 33370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33371 (eval "$ac_compile") 2>conftest.er1 33372 ac_status=$? 33373 grep -v '^ *+' conftest.er1 >conftest.err 33374 rm -f conftest.er1 33375 cat conftest.err >&5 33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33377 (exit $ac_status); } && { 33378 test -z "$ac_c_werror_flag" || 33379 test ! -s conftest.err 33380 } && test -s conftest.$ac_objext; then 33381 gt_cv_var_environ_declaration=no 33382 else 33383 echo "$as_me: failed program was:" >&5 33384 sed 's/^/| /' conftest.$ac_ext >&5 33385 33386 gt_cv_var_environ_declaration=yes 33387 fi 33388 33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33390 fi 33391 33392 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 33393 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } 33394 if test $gt_cv_var_environ_declaration = yes; then 33395 33396 cat >>confdefs.h <<\_ACEOF 33397 #define HAVE_ENVIRON_DECL 1 33398 _ACEOF 33399 33400 fi 33401 33402 33403 fi 33404 if test $ac_cv_func_unsetenv = no; then 33405 33406 33407 : 33408 33409 33410 33411 33412 33413 33414 33415 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 33416 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } 33417 if test "${gt_cv_var_environ_declaration+set}" = set; then 33418 echo $ECHO_N "(cached) $ECHO_C" >&6 33419 else 33420 33421 cat >conftest.$ac_ext <<_ACEOF 33422 /* confdefs.h. */ 33423 _ACEOF 33424 cat confdefs.h >>conftest.$ac_ext 33425 cat >>conftest.$ac_ext <<_ACEOF 33426 /* end confdefs.h. */ 33427 #include <unistd.h> 33428 extern struct { int foo; } environ; 33429 int 33430 main () 33431 { 33432 environ.foo = 1; 33433 ; 33434 return 0; 33435 } 33436 _ACEOF 33437 rm -f conftest.$ac_objext 33438 if { (ac_try="$ac_compile" 33439 case "(($ac_try" in 33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33441 *) ac_try_echo=$ac_try;; 33442 esac 33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33444 (eval "$ac_compile") 2>conftest.er1 33445 ac_status=$? 33446 grep -v '^ *+' conftest.er1 >conftest.err 33447 rm -f conftest.er1 33448 cat conftest.err >&5 33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33450 (exit $ac_status); } && { 33451 test -z "$ac_c_werror_flag" || 33452 test ! -s conftest.err 33453 } && test -s conftest.$ac_objext; then 33454 gt_cv_var_environ_declaration=no 33455 else 33456 echo "$as_me: failed program was:" >&5 33457 sed 's/^/| /' conftest.$ac_ext >&5 33458 33459 gt_cv_var_environ_declaration=yes 33460 fi 33461 33462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33463 fi 33464 33465 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 33466 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } 33467 if test $gt_cv_var_environ_declaration = yes; then 33468 33469 cat >>confdefs.h <<\_ACEOF 33470 #define HAVE_ENVIRON_DECL 1 33471 _ACEOF 33472 33473 fi 33474 33475 33476 else 33477 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5 33478 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; } 33479 if test "${gt_cv_func_unsetenv_ret+set}" = set; then 33480 echo $ECHO_N "(cached) $ECHO_C" >&6 33481 else 33482 cat >conftest.$ac_ext <<_ACEOF 33483 /* confdefs.h. */ 33484 _ACEOF 33485 cat confdefs.h >>conftest.$ac_ext 33486 cat >>conftest.$ac_ext <<_ACEOF 33487 /* end confdefs.h. */ 33488 #include <stdlib.h> 33489 extern 33490 #ifdef __cplusplus 33491 "C" 33492 #endif 33493 #if defined(__STDC__) || defined(__cplusplus) 33494 int unsetenv (const char *name); 33495 #else 33496 int unsetenv(); 33497 #endif 33498 33499 int 33500 main () 33501 { 33502 33503 ; 33504 return 0; 33505 } 33506 _ACEOF 33507 rm -f conftest.$ac_objext 33508 if { (ac_try="$ac_compile" 33509 case "(($ac_try" in 33510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33511 *) ac_try_echo=$ac_try;; 33512 esac 33513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33514 (eval "$ac_compile") 2>conftest.er1 33515 ac_status=$? 33516 grep -v '^ *+' conftest.er1 >conftest.err 33517 rm -f conftest.er1 33518 cat conftest.err >&5 33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33520 (exit $ac_status); } && { 33521 test -z "$ac_c_werror_flag" || 33522 test ! -s conftest.err 33523 } && test -s conftest.$ac_objext; then 33524 gt_cv_func_unsetenv_ret='int' 33525 else 33526 echo "$as_me: failed program was:" >&5 33527 sed 's/^/| /' conftest.$ac_ext >&5 33528 33529 gt_cv_func_unsetenv_ret='void' 33530 fi 33531 33532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33533 fi 33534 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5 33535 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; } 33536 if test $gt_cv_func_unsetenv_ret = 'void'; then 33537 33538 cat >>confdefs.h <<\_ACEOF 33539 #define VOID_UNSETENV 1 33540 _ACEOF 33541 33542 fi 33543 fi 33544 33545 33546 { echo "$as_me:$LINENO: checking for ssize_t" >&5 33547 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 33548 if test "${gt_cv_ssize_t+set}" = set; then 33549 echo $ECHO_N "(cached) $ECHO_C" >&6 33550 else 33551 cat >conftest.$ac_ext <<_ACEOF 33552 /* confdefs.h. */ 33553 _ACEOF 33554 cat confdefs.h >>conftest.$ac_ext 33555 cat >>conftest.$ac_ext <<_ACEOF 33556 /* end confdefs.h. */ 33557 #include <sys/types.h> 33558 int 33559 main () 33560 { 33561 int x = sizeof (ssize_t *) + sizeof (ssize_t); 33562 return !x; 33563 ; 33564 return 0; 33565 } 33566 _ACEOF 33567 rm -f conftest.$ac_objext 33568 if { (ac_try="$ac_compile" 33569 case "(($ac_try" in 33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33571 *) ac_try_echo=$ac_try;; 33572 esac 33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33574 (eval "$ac_compile") 2>conftest.er1 33575 ac_status=$? 33576 grep -v '^ *+' conftest.er1 >conftest.err 33577 rm -f conftest.er1 33578 cat conftest.err >&5 33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33580 (exit $ac_status); } && { 33581 test -z "$ac_c_werror_flag" || 33582 test ! -s conftest.err 33583 } && test -s conftest.$ac_objext; then 33584 gt_cv_ssize_t=yes 33585 else 33586 echo "$as_me: failed program was:" >&5 33587 sed 's/^/| /' conftest.$ac_ext >&5 33588 33589 gt_cv_ssize_t=no 33590 fi 33591 33592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33593 fi 33594 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 33595 echo "${ECHO_T}$gt_cv_ssize_t" >&6; } 33596 if test $gt_cv_ssize_t = no; then 33597 33598 cat >>confdefs.h <<\_ACEOF 33599 #define ssize_t int 33600 _ACEOF 33601 33602 fi 33603 33604 33605 33606 33607 # Define two additional variables used in the Makefile substitution. 33608 33609 if test "$ac_cv_header_stdbool_h" = yes; then 33610 STDBOOL_H='' 33611 else 33612 STDBOOL_H='stdbool.h' 33613 fi 33614 33615 33616 if test "$ac_cv_type__Bool" = yes; then 33617 HAVE__BOOL=1 33618 else 33619 HAVE__BOOL=0 33620 fi 33621 33622 33623 33624 33625 for ac_func in strdup 33626 do 33627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33628 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33631 echo $ECHO_N "(cached) $ECHO_C" >&6 33632 else 33633 cat >conftest.$ac_ext <<_ACEOF 33634 /* confdefs.h. */ 33635 _ACEOF 33636 cat confdefs.h >>conftest.$ac_ext 33637 cat >>conftest.$ac_ext <<_ACEOF 33638 /* end confdefs.h. */ 33639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33640 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33641 #define $ac_func innocuous_$ac_func 33642 33643 /* System header to define __stub macros and hopefully few prototypes, 33644 which can conflict with char $ac_func (); below. 33645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33646 <limits.h> exists even on freestanding compilers. */ 33647 33648 #ifdef __STDC__ 33649 # include <limits.h> 33650 #else 33651 # include <assert.h> 33652 #endif 33653 33654 #undef $ac_func 33655 33656 /* Override any GCC internal prototype to avoid an error. 33657 Use char because int might match the return type of a GCC 33658 builtin and then its argument prototype would still apply. */ 33659 #ifdef __cplusplus 33660 extern "C" 33661 #endif 33662 char $ac_func (); 33663 /* The GNU C library defines this for functions which it implements 33664 to always fail with ENOSYS. Some functions are actually named 33665 something starting with __ and the normal name is an alias. */ 33666 #if defined __stub_$ac_func || defined __stub___$ac_func 33667 choke me 33668 #endif 33669 33670 int 33671 main () 33672 { 33673 return $ac_func (); 33674 ; 33675 return 0; 33676 } 33677 _ACEOF 33678 rm -f conftest.$ac_objext conftest$ac_exeext 33679 if { (ac_try="$ac_link" 33680 case "(($ac_try" in 33681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33682 *) ac_try_echo=$ac_try;; 33683 esac 33684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33685 (eval "$ac_link") 2>conftest.er1 33686 ac_status=$? 33687 grep -v '^ *+' conftest.er1 >conftest.err 33688 rm -f conftest.er1 33689 cat conftest.err >&5 33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33691 (exit $ac_status); } && { 33692 test -z "$ac_c_werror_flag" || 33693 test ! -s conftest.err 33694 } && test -s conftest$ac_exeext && 33695 $as_test_x conftest$ac_exeext; then 33696 eval "$as_ac_var=yes" 33697 else 33698 echo "$as_me: failed program was:" >&5 33699 sed 's/^/| /' conftest.$ac_ext >&5 33700 33701 eval "$as_ac_var=no" 33702 fi 33703 33704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33705 conftest$ac_exeext conftest.$ac_ext 33706 fi 33707 ac_res=`eval echo '${'$as_ac_var'}'` 33708 { echo "$as_me:$LINENO: result: $ac_res" >&5 33709 echo "${ECHO_T}$ac_res" >&6; } 33710 if test `eval echo '${'$as_ac_var'}'` = yes; then 33711 cat >>confdefs.h <<_ACEOF 33712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33713 _ACEOF 33714 33715 else 33716 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 33717 fi 33718 done 33719 33720 33721 : 33722 33723 33724 33725 33726 33727 : 33728 33729 33730 33731 for ac_func in strerror 33732 do 33733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33734 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33737 echo $ECHO_N "(cached) $ECHO_C" >&6 33738 else 33739 cat >conftest.$ac_ext <<_ACEOF 33740 /* confdefs.h. */ 33741 _ACEOF 33742 cat confdefs.h >>conftest.$ac_ext 33743 cat >>conftest.$ac_ext <<_ACEOF 33744 /* end confdefs.h. */ 33745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33747 #define $ac_func innocuous_$ac_func 33748 33749 /* System header to define __stub macros and hopefully few prototypes, 33750 which can conflict with char $ac_func (); below. 33751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33752 <limits.h> exists even on freestanding compilers. */ 33753 33754 #ifdef __STDC__ 33755 # include <limits.h> 33756 #else 33757 # include <assert.h> 33758 #endif 33759 33760 #undef $ac_func 33761 33762 /* Override any GCC internal prototype to avoid an error. 33763 Use char because int might match the return type of a GCC 33764 builtin and then its argument prototype would still apply. */ 33765 #ifdef __cplusplus 33766 extern "C" 33767 #endif 33768 char $ac_func (); 33769 /* The GNU C library defines this for functions which it implements 33770 to always fail with ENOSYS. Some functions are actually named 33771 something starting with __ and the normal name is an alias. */ 33772 #if defined __stub_$ac_func || defined __stub___$ac_func 33773 choke me 33774 #endif 33775 33776 int 33777 main () 33778 { 33779 return $ac_func (); 33780 ; 33781 return 0; 33782 } 33783 _ACEOF 33784 rm -f conftest.$ac_objext conftest$ac_exeext 33785 if { (ac_try="$ac_link" 33786 case "(($ac_try" in 33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33788 *) ac_try_echo=$ac_try;; 33789 esac 33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33791 (eval "$ac_link") 2>conftest.er1 33792 ac_status=$? 33793 grep -v '^ *+' conftest.er1 >conftest.err 33794 rm -f conftest.er1 33795 cat conftest.err >&5 33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33797 (exit $ac_status); } && { 33798 test -z "$ac_c_werror_flag" || 33799 test ! -s conftest.err 33800 } && test -s conftest$ac_exeext && 33801 $as_test_x conftest$ac_exeext; then 33802 eval "$as_ac_var=yes" 33803 else 33804 echo "$as_me: failed program was:" >&5 33805 sed 's/^/| /' conftest.$ac_ext >&5 33806 33807 eval "$as_ac_var=no" 33808 fi 33809 33810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33811 conftest$ac_exeext conftest.$ac_ext 33812 fi 33813 ac_res=`eval echo '${'$as_ac_var'}'` 33814 { echo "$as_me:$LINENO: result: $ac_res" >&5 33815 echo "${ECHO_T}$ac_res" >&6; } 33816 if test `eval echo '${'$as_ac_var'}'` = yes; then 33817 cat >>confdefs.h <<_ACEOF 33818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33819 _ACEOF 33820 33821 else 33822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 33823 fi 33824 done 33825 33826 if test $ac_cv_func_strerror = no; then 33827 33828 : 33829 33830 fi 33831 33832 if test $gl_cond_libtool = false; then 33833 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" 33834 gl_libdeps="$gl_libdeps $LIBICONV" 33835 fi 33836 33837 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" 33838 33839 33840 : 33841 33842 33843 33844 33845 for ac_func in strtol 33846 do 33847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33848 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33851 echo $ECHO_N "(cached) $ECHO_C" >&6 33852 else 33853 cat >conftest.$ac_ext <<_ACEOF 33854 /* confdefs.h. */ 33855 _ACEOF 33856 cat confdefs.h >>conftest.$ac_ext 33857 cat >>conftest.$ac_ext <<_ACEOF 33858 /* end confdefs.h. */ 33859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33861 #define $ac_func innocuous_$ac_func 33862 33863 /* System header to define __stub macros and hopefully few prototypes, 33864 which can conflict with char $ac_func (); below. 33865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33866 <limits.h> exists even on freestanding compilers. */ 33867 33868 #ifdef __STDC__ 33869 # include <limits.h> 33870 #else 33871 # include <assert.h> 33872 #endif 33873 33874 #undef $ac_func 33875 33876 /* Override any GCC internal prototype to avoid an error. 33877 Use char because int might match the return type of a GCC 33878 builtin and then its argument prototype would still apply. */ 33879 #ifdef __cplusplus 33880 extern "C" 33881 #endif 33882 char $ac_func (); 33883 /* The GNU C library defines this for functions which it implements 33884 to always fail with ENOSYS. Some functions are actually named 33885 something starting with __ and the normal name is an alias. */ 33886 #if defined __stub_$ac_func || defined __stub___$ac_func 33887 choke me 33888 #endif 33889 33890 int 33891 main () 33892 { 33893 return $ac_func (); 33894 ; 33895 return 0; 33896 } 33897 _ACEOF 33898 rm -f conftest.$ac_objext conftest$ac_exeext 33899 if { (ac_try="$ac_link" 33900 case "(($ac_try" in 33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33902 *) ac_try_echo=$ac_try;; 33903 esac 33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33905 (eval "$ac_link") 2>conftest.er1 33906 ac_status=$? 33907 grep -v '^ *+' conftest.er1 >conftest.err 33908 rm -f conftest.er1 33909 cat conftest.err >&5 33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33911 (exit $ac_status); } && { 33912 test -z "$ac_c_werror_flag" || 33913 test ! -s conftest.err 33914 } && test -s conftest$ac_exeext && 33915 $as_test_x conftest$ac_exeext; then 33916 eval "$as_ac_var=yes" 33917 else 33918 echo "$as_me: failed program was:" >&5 33919 sed 's/^/| /' conftest.$ac_ext >&5 33920 33921 eval "$as_ac_var=no" 33922 fi 33923 33924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33925 conftest$ac_exeext conftest.$ac_ext 33926 fi 33927 ac_res=`eval echo '${'$as_ac_var'}'` 33928 { echo "$as_me:$LINENO: result: $ac_res" >&5 33929 echo "${ECHO_T}$ac_res" >&6; } 33930 if test `eval echo '${'$as_ac_var'}'` = yes; then 33931 cat >>confdefs.h <<_ACEOF 33932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33933 _ACEOF 33934 33935 else 33936 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 33937 fi 33938 done 33939 33940 33941 33942 33943 for ac_func in strtoul 33944 do 33945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33946 { echo "$as_me:$LINENO: checking for $ac_func" >&5 33947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 33948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 33949 echo $ECHO_N "(cached) $ECHO_C" >&6 33950 else 33951 cat >conftest.$ac_ext <<_ACEOF 33952 /* confdefs.h. */ 33953 _ACEOF 33954 cat confdefs.h >>conftest.$ac_ext 33955 cat >>conftest.$ac_ext <<_ACEOF 33956 /* end confdefs.h. */ 33957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 33958 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33959 #define $ac_func innocuous_$ac_func 33960 33961 /* System header to define __stub macros and hopefully few prototypes, 33962 which can conflict with char $ac_func (); below. 33963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33964 <limits.h> exists even on freestanding compilers. */ 33965 33966 #ifdef __STDC__ 33967 # include <limits.h> 33968 #else 33969 # include <assert.h> 33970 #endif 33971 33972 #undef $ac_func 33973 33974 /* Override any GCC internal prototype to avoid an error. 33975 Use char because int might match the return type of a GCC 33976 builtin and then its argument prototype would still apply. */ 33977 #ifdef __cplusplus 33978 extern "C" 33979 #endif 33980 char $ac_func (); 33981 /* The GNU C library defines this for functions which it implements 33982 to always fail with ENOSYS. Some functions are actually named 33983 something starting with __ and the normal name is an alias. */ 33984 #if defined __stub_$ac_func || defined __stub___$ac_func 33985 choke me 33986 #endif 33987 33988 int 33989 main () 33990 { 33991 return $ac_func (); 33992 ; 33993 return 0; 33994 } 33995 _ACEOF 33996 rm -f conftest.$ac_objext conftest$ac_exeext 33997 if { (ac_try="$ac_link" 33998 case "(($ac_try" in 33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34000 *) ac_try_echo=$ac_try;; 34001 esac 34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34003 (eval "$ac_link") 2>conftest.er1 34004 ac_status=$? 34005 grep -v '^ *+' conftest.er1 >conftest.err 34006 rm -f conftest.er1 34007 cat conftest.err >&5 34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34009 (exit $ac_status); } && { 34010 test -z "$ac_c_werror_flag" || 34011 test ! -s conftest.err 34012 } && test -s conftest$ac_exeext && 34013 $as_test_x conftest$ac_exeext; then 34014 eval "$as_ac_var=yes" 34015 else 34016 echo "$as_me: failed program was:" >&5 34017 sed 's/^/| /' conftest.$ac_ext >&5 34018 34019 eval "$as_ac_var=no" 34020 fi 34021 34022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34023 conftest$ac_exeext conftest.$ac_ext 34024 fi 34025 ac_res=`eval echo '${'$as_ac_var'}'` 34026 { echo "$as_me:$LINENO: result: $ac_res" >&5 34027 echo "${ECHO_T}$ac_res" >&6; } 34028 if test `eval echo '${'$as_ac_var'}'` = yes; then 34029 cat >>confdefs.h <<_ACEOF 34030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 34031 _ACEOF 34032 34033 else 34034 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 34035 fi 34036 done 34037 34038 34039 34040 34041 for ac_header in unistd.h 34042 do 34043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 34045 { echo "$as_me:$LINENO: checking for $ac_header" >&5 34046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 34047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 34048 echo $ECHO_N "(cached) $ECHO_C" >&6 34049 fi 34050 ac_res=`eval echo '${'$as_ac_Header'}'` 34051 { echo "$as_me:$LINENO: result: $ac_res" >&5 34052 echo "${ECHO_T}$ac_res" >&6; } 34053 else 34054 # Is the header compilable? 34055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 34056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 34057 cat >conftest.$ac_ext <<_ACEOF 34058 /* confdefs.h. */ 34059 _ACEOF 34060 cat confdefs.h >>conftest.$ac_ext 34061 cat >>conftest.$ac_ext <<_ACEOF 34062 /* end confdefs.h. */ 34063 $ac_includes_default 34064 #include <$ac_header> 34065 _ACEOF 34066 rm -f conftest.$ac_objext 34067 if { (ac_try="$ac_compile" 34068 case "(($ac_try" in 34069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34070 *) ac_try_echo=$ac_try;; 34071 esac 34072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34073 (eval "$ac_compile") 2>conftest.er1 34074 ac_status=$? 34075 grep -v '^ *+' conftest.er1 >conftest.err 34076 rm -f conftest.er1 34077 cat conftest.err >&5 34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34079 (exit $ac_status); } && { 34080 test -z "$ac_c_werror_flag" || 34081 test ! -s conftest.err 34082 } && test -s conftest.$ac_objext; then 34083 ac_header_compiler=yes 34084 else 34085 echo "$as_me: failed program was:" >&5 34086 sed 's/^/| /' conftest.$ac_ext >&5 34087 34088 ac_header_compiler=no 34089 fi 34090 34091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34093 echo "${ECHO_T}$ac_header_compiler" >&6; } 34094 34095 # Is the header present? 34096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 34097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 34098 cat >conftest.$ac_ext <<_ACEOF 34099 /* confdefs.h. */ 34100 _ACEOF 34101 cat confdefs.h >>conftest.$ac_ext 34102 cat >>conftest.$ac_ext <<_ACEOF 34103 /* end confdefs.h. */ 34104 #include <$ac_header> 34105 _ACEOF 34106 if { (ac_try="$ac_cpp conftest.$ac_ext" 34107 case "(($ac_try" in 34108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34109 *) ac_try_echo=$ac_try;; 34110 esac 34111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 34113 ac_status=$? 34114 grep -v '^ *+' conftest.er1 >conftest.err 34115 rm -f conftest.er1 34116 cat conftest.err >&5 34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34118 (exit $ac_status); } >/dev/null && { 34119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 34120 test ! -s conftest.err 34121 }; then 34122 ac_header_preproc=yes 34123 else 34124 echo "$as_me: failed program was:" >&5 34125 sed 's/^/| /' conftest.$ac_ext >&5 34126 34127 ac_header_preproc=no 34128 fi 34129 34130 rm -f conftest.err conftest.$ac_ext 34131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34132 echo "${ECHO_T}$ac_header_preproc" >&6; } 34133 34134 # So? What about this header? 34135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34136 yes:no: ) 34137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34141 ac_header_preproc=yes 34142 ;; 34143 no:yes:* ) 34144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34156 34157 ;; 34158 esac 34159 { echo "$as_me:$LINENO: checking for $ac_header" >&5 34160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 34161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 34162 echo $ECHO_N "(cached) $ECHO_C" >&6 34163 else 34164 eval "$as_ac_Header=\$ac_header_preproc" 34165 fi 34166 ac_res=`eval echo '${'$as_ac_Header'}'` 34167 { echo "$as_me:$LINENO: result: $ac_res" >&5 34168 echo "${ECHO_T}$ac_res" >&6; } 34169 34170 fi 34171 if test `eval echo '${'$as_ac_Header'}'` = yes; then 34172 cat >>confdefs.h <<_ACEOF 34173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34174 _ACEOF 34175 34176 UNISTD_H='' 34177 34178 else 34179 34180 UNISTD_H='unistd.h' 34181 34182 fi 34183 34184 done 34185 34186 34187 34188 34189 34190 cat >>confdefs.h <<\_ACEOF 34191 #define USE_UNLOCKED_IO 1 34192 _ACEOF 34193 34194 34195 34196 34197 34198 : 34199 34200 34201 34202 34203 34204 34205 : 34206 34207 34208 34209 34210 34211 34212 : 34213 34214 34215 34216 34217 34218 34219 : 34220 34221 34222 34223 34224 34225 34226 : 34227 34228 34229 34230 34231 34232 34233 : 34234 34235 34236 34237 34238 34239 34240 : 34241 34242 34243 34244 34245 34246 34247 : 34248 34249 34250 34251 34252 34253 34254 : 34255 34256 34257 34258 34259 34260 34261 : 34262 34263 34264 34265 34266 34267 34268 : 34269 34270 34271 34272 34273 34274 34275 : 34276 34277 34278 34279 34280 34281 34282 : 34283 34284 34285 34286 34287 34288 34289 34290 34291 34292 34293 34294 34295 34296 34297 : 34298 34299 34300 34301 34302 34303 34304 34305 34306 34307 : 34308 34309 34310 34311 34312 34313 34314 34315 34316 34317 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5 34318 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; } 34319 if test "${ac_cv_have_decl_wcwidth+set}" = set; then 34320 echo $ECHO_N "(cached) $ECHO_C" >&6 34321 else 34322 cat >conftest.$ac_ext <<_ACEOF 34323 /* confdefs.h. */ 34324 _ACEOF 34325 cat confdefs.h >>conftest.$ac_ext 34326 cat >>conftest.$ac_ext <<_ACEOF 34327 /* end confdefs.h. */ 34328 34329 /* AIX 3.2.5 declares wcwidth in <string.h>. */ 34330 #include <string.h> 34331 #if HAVE_WCHAR_H 34332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 34333 <wchar.h>. 34334 BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before 34335 <wchar.h>. */ 34336 # include <stdio.h> 34337 # include <time.h> 34338 # include <wchar.h> 34339 #endif 34340 34341 34342 int 34343 main () 34344 { 34345 #ifndef wcwidth 34346 (void) wcwidth; 34347 #endif 34348 34349 ; 34350 return 0; 34351 } 34352 _ACEOF 34353 rm -f conftest.$ac_objext 34354 if { (ac_try="$ac_compile" 34355 case "(($ac_try" in 34356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34357 *) ac_try_echo=$ac_try;; 34358 esac 34359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34360 (eval "$ac_compile") 2>conftest.er1 34361 ac_status=$? 34362 grep -v '^ *+' conftest.er1 >conftest.err 34363 rm -f conftest.er1 34364 cat conftest.err >&5 34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34366 (exit $ac_status); } && { 34367 test -z "$ac_c_werror_flag" || 34368 test ! -s conftest.err 34369 } && test -s conftest.$ac_objext; then 34370 ac_cv_have_decl_wcwidth=yes 34371 else 34372 echo "$as_me: failed program was:" >&5 34373 sed 's/^/| /' conftest.$ac_ext >&5 34374 34375 ac_cv_have_decl_wcwidth=no 34376 fi 34377 34378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34379 fi 34380 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5 34381 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; } 34382 if test $ac_cv_have_decl_wcwidth = yes; then 34383 34384 cat >>confdefs.h <<_ACEOF 34385 #define HAVE_DECL_WCWIDTH 1 34386 _ACEOF 34387 34388 34389 else 34390 cat >>confdefs.h <<_ACEOF 34391 #define HAVE_DECL_WCWIDTH 0 34392 _ACEOF 34393 34394 34395 fi 34396 34397 34398 34399 34400 34401 : 34402 34403 34404 34405 34406 34407 34408 LIBGRT_LIBDEPS="$gl_libdeps" 34409 34410 LIBGRT_LTLIBDEPS="$gl_ltlibdeps" 34411 34412 34413 34414 34415 34416 { echo "$as_me:$LINENO: checking for size_t" >&5 34417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 34418 if test "${ac_cv_type_size_t+set}" = set; then 34419 echo $ECHO_N "(cached) $ECHO_C" >&6 34420 else 34421 cat >conftest.$ac_ext <<_ACEOF 34422 /* confdefs.h. */ 34423 _ACEOF 34424 cat confdefs.h >>conftest.$ac_ext 34425 cat >>conftest.$ac_ext <<_ACEOF 34426 /* end confdefs.h. */ 34427 $ac_includes_default 34428 typedef size_t ac__type_new_; 34429 int 34430 main () 34431 { 34432 if ((ac__type_new_ *) 0) 34433 return 0; 34434 if (sizeof (ac__type_new_)) 34435 return 0; 34436 ; 34437 return 0; 34438 } 34439 _ACEOF 34440 rm -f conftest.$ac_objext 34441 if { (ac_try="$ac_compile" 34442 case "(($ac_try" in 34443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34444 *) ac_try_echo=$ac_try;; 34445 esac 34446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34447 (eval "$ac_compile") 2>conftest.er1 34448 ac_status=$? 34449 grep -v '^ *+' conftest.er1 >conftest.err 34450 rm -f conftest.er1 34451 cat conftest.err >&5 34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34453 (exit $ac_status); } && { 34454 test -z "$ac_c_werror_flag" || 34455 test ! -s conftest.err 34456 } && test -s conftest.$ac_objext; then 34457 ac_cv_type_size_t=yes 34458 else 34459 echo "$as_me: failed program was:" >&5 34460 sed 's/^/| /' conftest.$ac_ext >&5 34461 34462 ac_cv_type_size_t=no 34463 fi 34464 34465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34466 fi 34467 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 34468 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 34469 if test $ac_cv_type_size_t = yes; then 34470 : 34471 else 34472 34473 cat >>confdefs.h <<_ACEOF 34474 #define size_t unsigned int 34475 _ACEOF 34476 34477 fi 34478 34479 34480 for ac_func in setlocale 34481 do 34482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 34483 { echo "$as_me:$LINENO: checking for $ac_func" >&5 34484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 34485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 34486 echo $ECHO_N "(cached) $ECHO_C" >&6 34487 else 34488 cat >conftest.$ac_ext <<_ACEOF 34489 /* confdefs.h. */ 34490 _ACEOF 34491 cat confdefs.h >>conftest.$ac_ext 34492 cat >>conftest.$ac_ext <<_ACEOF 34493 /* end confdefs.h. */ 34494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 34495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34496 #define $ac_func innocuous_$ac_func 34497 34498 /* System header to define __stub macros and hopefully few prototypes, 34499 which can conflict with char $ac_func (); below. 34500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34501 <limits.h> exists even on freestanding compilers. */ 34502 34503 #ifdef __STDC__ 34504 # include <limits.h> 34505 #else 34506 # include <assert.h> 34507 #endif 34508 34509 #undef $ac_func 34510 34511 /* Override any GCC internal prototype to avoid an error. 34512 Use char because int might match the return type of a GCC 34513 builtin and then its argument prototype would still apply. */ 34514 #ifdef __cplusplus 34515 extern "C" 34516 #endif 34517 char $ac_func (); 34518 /* The GNU C library defines this for functions which it implements 34519 to always fail with ENOSYS. Some functions are actually named 34520 something starting with __ and the normal name is an alias. */ 34521 #if defined __stub_$ac_func || defined __stub___$ac_func 34522 choke me 34523 #endif 34524 34525 int 34526 main () 34527 { 34528 return $ac_func (); 34529 ; 34530 return 0; 34531 } 34532 _ACEOF 34533 rm -f conftest.$ac_objext conftest$ac_exeext 34534 if { (ac_try="$ac_link" 34535 case "(($ac_try" in 34536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34537 *) ac_try_echo=$ac_try;; 34538 esac 34539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34540 (eval "$ac_link") 2>conftest.er1 34541 ac_status=$? 34542 grep -v '^ *+' conftest.er1 >conftest.err 34543 rm -f conftest.er1 34544 cat conftest.err >&5 34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34546 (exit $ac_status); } && { 34547 test -z "$ac_c_werror_flag" || 34548 test ! -s conftest.err 34549 } && test -s conftest$ac_exeext && 34550 $as_test_x conftest$ac_exeext; then 34551 eval "$as_ac_var=yes" 34552 else 34553 echo "$as_me: failed program was:" >&5 34554 sed 's/^/| /' conftest.$ac_ext >&5 34555 34556 eval "$as_ac_var=no" 34557 fi 34558 34559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34560 conftest$ac_exeext conftest.$ac_ext 34561 fi 34562 ac_res=`eval echo '${'$as_ac_var'}'` 34563 { echo "$as_me:$LINENO: result: $ac_res" >&5 34564 echo "${ECHO_T}$ac_res" >&6; } 34565 if test `eval echo '${'$as_ac_var'}'` = yes; then 34566 cat >>confdefs.h <<_ACEOF 34567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 34568 _ACEOF 34569 34570 fi 34571 done 34572 34573 34574 34575 34576 34577 ac_aux_dir_abs=`cd $ac_aux_dir && pwd` 34578 # Extract the first word of "perl", so it can be a program name with args. 34579 set dummy perl; ac_word=$2 34580 { echo "$as_me:$LINENO: checking for $ac_word" >&5 34581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 34582 if test "${ac_cv_path_PERL+set}" = set; then 34583 echo $ECHO_N "(cached) $ECHO_C" >&6 34584 else 34585 case $PERL in 34586 [\\/]* | ?:[\\/]*) 34587 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 34588 ;; 34589 *) 34590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34591 for as_dir in $PATH 34592 do 34593 IFS=$as_save_IFS 34594 test -z "$as_dir" && as_dir=. 34595 for ac_exec_ext in '' $ac_executable_extensions; do 34596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 34597 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 34598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 34599 break 2 34600 fi 34601 done 34602 done 34603 IFS=$as_save_IFS 34604 34605 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" 34606 ;; 34607 esac 34608 fi 34609 PERL=$ac_cv_path_PERL 34610 if test -n "$PERL"; then 34611 { echo "$as_me:$LINENO: result: $PERL" >&5 34612 echo "${ECHO_T}$PERL" >&6; } 34613 else 34614 { echo "$as_me:$LINENO: result: no" >&5 34615 echo "${ECHO_T}no" >&6; } 34616 fi 34617 34618 34619 34620 CROSS_COMPILING=$cross_compiling 34621 34622 34623 34624 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 34625 do 34626 # Extract the first word of "$ac_prog", so it can be a program name with args. 34627 set dummy $ac_prog; ac_word=$2 34628 { echo "$as_me:$LINENO: checking for $ac_word" >&5 34629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 34630 if test "${ac_cv_prog_CXX+set}" = set; then 34631 echo $ECHO_N "(cached) $ECHO_C" >&6 34632 else 34633 if test -n "$CXX"; then 34634 ac_cv_prog_CXX="$CXX" # Let the user override the test. 34635 else 34636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34637 for as_dir in $PATH 34638 do 34639 IFS=$as_save_IFS 34640 test -z "$as_dir" && as_dir=. 34641 for ac_exec_ext in '' $ac_executable_extensions; do 34642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 34643 ac_cv_prog_CXX="$ac_prog" 34644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 34645 break 2 34646 fi 34647 done 34648 done 34649 IFS=$as_save_IFS 34650 34651 fi 34652 fi 34653 CXX=$ac_cv_prog_CXX 34654 if test -n "$CXX"; then 34655 { echo "$as_me:$LINENO: result: $CXX" >&5 34656 echo "${ECHO_T}$CXX" >&6; } 34657 else 34658 { echo "$as_me:$LINENO: result: no" >&5 34659 echo "${ECHO_T}no" >&6; } 34660 fi 34661 34662 34663 test -n "$CXX" && break 34664 done 34665 test -n "$CXX" || CXX=":" 34666 34667 if test "$CXX" != ":"; then 34668 { echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 34669 echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6; } 34670 ac_ext=cpp 34671 ac_cpp='$CXXCPP $CPPFLAGS' 34672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34675 34676 34677 34678 echo 'int main () { return 0; }' > conftest.$ac_ext 34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 34680 (eval $ac_link) 2>&5 34681 ac_status=$? 34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34683 (exit $ac_status); } && test -s conftest$ac_exeext; then 34684 ac_cv_prog_cxx_works=yes 34685 if (./conftest; exit) 2>/dev/null; then 34686 ac_cv_prog_cxx_cross=no 34687 else 34688 ac_cv_prog_cxx_cross=yes 34689 fi 34690 else 34691 ac_cv_prog_cxx_works=no 34692 fi 34693 rm -fr conftest* 34694 ac_ext=c 34695 ac_cpp='$CPP $CPPFLAGS' 34696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34698 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34699 34700 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5 34701 echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6; } 34702 if test $ac_cv_prog_cxx_works = no; then 34703 CXX=: 34704 else 34705 { echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5 34706 echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6; } 34707 ac_ext=cpp 34708 ac_cpp='$CXXCPP $CPPFLAGS' 34709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34712 34713 cat <<EOF > conftest.$ac_ext 34714 #include <iostream> 34715 namespace test { using namespace std; } 34716 std::ostream* ptr; 34717 int main () { return 0; } 34718 EOF 34719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 34720 (eval $ac_link) 2>&5 34721 ac_status=$? 34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34723 (exit $ac_status); } && test -s conftest$ac_exeext; then 34724 gt_cv_prog_cxx_namespaces=yes 34725 else 34726 gt_cv_prog_cxx_namespaces=no 34727 fi 34728 rm -fr conftest* 34729 ac_ext=c 34730 ac_cpp='$CPP $CPPFLAGS' 34731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34733 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34734 34735 { echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5 34736 echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6; } 34737 if test $gt_cv_prog_cxx_namespaces = no; then 34738 CXX=: 34739 fi 34740 fi 34741 fi 34742 34743 34744 LIBSCHED= 34745 if test $gl_threads_api = posix; then 34746 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 34747 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; } 34748 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then 34749 echo $ECHO_N "(cached) $ECHO_C" >&6 34750 else 34751 ac_check_lib_save_LIBS=$LIBS 34752 LIBS="-lrt $LIBS" 34753 cat >conftest.$ac_ext <<_ACEOF 34754 /* confdefs.h. */ 34755 _ACEOF 34756 cat confdefs.h >>conftest.$ac_ext 34757 cat >>conftest.$ac_ext <<_ACEOF 34758 /* end confdefs.h. */ 34759 34760 /* Override any GCC internal prototype to avoid an error. 34761 Use char because int might match the return type of a GCC 34762 builtin and then its argument prototype would still apply. */ 34763 #ifdef __cplusplus 34764 extern "C" 34765 #endif 34766 char sched_yield (); 34767 int 34768 main () 34769 { 34770 return sched_yield (); 34771 ; 34772 return 0; 34773 } 34774 _ACEOF 34775 rm -f conftest.$ac_objext conftest$ac_exeext 34776 if { (ac_try="$ac_link" 34777 case "(($ac_try" in 34778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34779 *) ac_try_echo=$ac_try;; 34780 esac 34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34782 (eval "$ac_link") 2>conftest.er1 34783 ac_status=$? 34784 grep -v '^ *+' conftest.er1 >conftest.err 34785 rm -f conftest.er1 34786 cat conftest.err >&5 34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34788 (exit $ac_status); } && { 34789 test -z "$ac_c_werror_flag" || 34790 test ! -s conftest.err 34791 } && test -s conftest$ac_exeext && 34792 $as_test_x conftest$ac_exeext; then 34793 ac_cv_lib_rt_sched_yield=yes 34794 else 34795 echo "$as_me: failed program was:" >&5 34796 sed 's/^/| /' conftest.$ac_ext >&5 34797 34798 ac_cv_lib_rt_sched_yield=no 34799 fi 34800 34801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34802 conftest$ac_exeext conftest.$ac_ext 34803 LIBS=$ac_check_lib_save_LIBS 34804 fi 34805 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 34806 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; } 34807 if test $ac_cv_lib_rt_sched_yield = yes; then 34808 LIBSCHED=-lrt 34809 fi 34810 34811 fi 34812 34813 34814 # Check whether --enable-libasprintf was given. 34815 if test "${enable_libasprintf+set}" = set; then 34816 enableval=$enable_libasprintf; if test "$enableval" != no; then 34817 SUBDIR_libasprintf=libasprintf 34818 else 34819 SUBDIR_libasprintf= 34820 fi 34821 34822 else 34823 SUBDIR_libasprintf=libasprintf 34824 fi 34825 34826 if test "$CXX" = ":"; then 34827 SUBDIR_libasprintf= 34828 fi 34829 if test -n "$SUBDIR_libasprintf"; then 34830 ENABLE_LIBASPRINTF_TRUE= 34831 ENABLE_LIBASPRINTF_FALSE='#' 34832 else 34833 ENABLE_LIBASPRINTF_TRUE='#' 34834 ENABLE_LIBASPRINTF_FALSE= 34835 fi 34836 34837 34838 subdirs="$subdirs libasprintf" 34839 34840 34841 ac_config_files="$ac_config_files Makefile" 34842 34843 34844 ac_config_files="$ac_config_files doc/Makefile" 34845 34846 34847 ac_config_files="$ac_config_files intl/Makefile" 34848 34849 34850 ac_config_files="$ac_config_files intl-java/Makefile" 34851 34852 34853 ac_config_files="$ac_config_files intl-csharp/Makefile" 34854 34855 34856 ac_config_files="$ac_config_files gnulib-lib/Makefile" 34857 34858 34859 ac_config_files="$ac_config_files src/Makefile" 34860 34861 ac_config_files="$ac_config_files src/gettext.sh" 34862 34863 34864 ac_config_files="$ac_config_files po/Makefile.in" 34865 34866 34867 ac_config_files="$ac_config_files man/Makefile" 34868 34869 ac_config_files="$ac_config_files man/x-to-1" 34870 34871 34872 ac_config_files="$ac_config_files m4/Makefile" 34873 34874 34875 ac_config_files="$ac_config_files tests/Makefile" 34876 34877 34878 cat >confcache <<\_ACEOF 34879 # This file is a shell script that caches the results of configure 34880 # tests run on this system so they can be shared between configure 34881 # scripts and configure runs, see configure's option --config-cache. 34882 # It is not useful on other systems. If it contains results you don't 34883 # want to keep, you may remove or edit it. 34884 # 34885 # config.status only pays attention to the cache file if you give it 34886 # the --recheck option to rerun configure. 34887 # 34888 # `ac_cv_env_foo' variables (set or unset) will be overridden when 34889 # loading this file, other *unset* `ac_cv_foo' will be assigned the 34890 # following values. 34891 34892 _ACEOF 34893 34894 # The following way of writing the cache mishandles newlines in values, 34895 # but we know of no workaround that is simple, portable, and efficient. 34896 # So, we kill variables containing newlines. 34897 # Ultrix sh set writes to stderr and can't be redirected directly, 34898 # and sets the high bit in the cache file unless we assign to the vars. 34899 ( 34900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 34901 eval ac_val=\$$ac_var 34902 case $ac_val in #( 34903 *${as_nl}*) 34904 case $ac_var in #( 34905 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 34906 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 34907 esac 34908 case $ac_var in #( 34909 _ | IFS | as_nl) ;; #( 34910 *) $as_unset $ac_var ;; 34911 esac ;; 34912 esac 34913 done 34914 34915 (set) 2>&1 | 34916 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34917 *${as_nl}ac_space=\ *) 34918 # `set' does not quote correctly, so add quotes (double-quote 34919 # substitution turns \\\\ into \\, and sed turns \\ into \). 34920 sed -n \ 34921 "s/'/'\\\\''/g; 34922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34923 ;; #( 34924 *) 34925 # `set' quotes correctly as required by POSIX, so do not add quotes. 34926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34927 ;; 34928 esac | 34929 sort 34930 ) | 34931 sed ' 34932 /^ac_cv_env_/b end 34933 t clear 34934 :clear 34935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 34936 t end 34937 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34938 :end' >>confcache 34939 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34940 if test -w "$cache_file"; then 34941 test "x$cache_file" != "x/dev/null" && 34942 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 34943 echo "$as_me: updating cache $cache_file" >&6;} 34944 cat confcache >$cache_file 34945 else 34946 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 34947 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 34948 fi 34949 fi 34950 rm -f confcache 34951 34952 test "x$prefix" = xNONE && prefix=$ac_default_prefix 34953 # Let make expand exec_prefix. 34954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34955 34956 DEFS=-DHAVE_CONFIG_H 34957 34958 ac_libobjs= 34959 ac_ltlibobjs= 34960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34961 # 1. Remove the extension, and $U if already installed. 34962 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34963 ac_i=`echo "$ac_i" | sed "$ac_script"` 34964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34965 # will be set to the directory where LIBOBJS objects are built. 34966 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34967 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 34968 done 34969 LIBOBJS=$ac_libobjs 34970 34971 LTLIBOBJS=$ac_ltlibobjs 34972 34973 34974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 34975 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 34976 Usually this means the macro was only invoked conditionally." >&5 34977 echo "$as_me: error: conditional \"AMDEP\" was never defined. 34978 Usually this means the macro was only invoked conditionally." >&2;} 34979 { (exit 1); exit 1; }; } 34980 fi 34981 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 34982 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 34983 Usually this means the macro was only invoked conditionally." >&5 34984 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 34985 Usually this means the macro was only invoked conditionally." >&2;} 34986 { (exit 1); exit 1; }; } 34987 fi 34988 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 34989 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 34990 Usually this means the macro was only invoked conditionally." >&5 34991 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 34992 Usually this means the macro was only invoked conditionally." >&2;} 34993 { (exit 1); exit 1; }; } 34994 fi 34995 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 34996 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. 34997 Usually this means the macro was only invoked conditionally." >&5 34998 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. 34999 Usually this means the macro was only invoked conditionally." >&2;} 35000 { (exit 1); exit 1; }; } 35001 fi 35002 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then 35003 { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. 35004 Usually this means the macro was only invoked conditionally." >&5 35005 echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. 35006 Usually this means the macro was only invoked conditionally." >&2;} 35007 { (exit 1); exit 1; }; } 35008 fi 35009 35010 gl_libobjs= 35011 gl_ltlibobjs= 35012 if test -n "$gl_LIBOBJS"; then 35013 # Remove the extension. 35014 sed_drop_objext='s/\.o$//;s/\.obj$//' 35015 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do 35016 gl_libobjs="$gl_libobjs $i.$ac_objext" 35017 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 35018 done 35019 fi 35020 gl_LIBOBJS=$gl_libobjs 35021 35022 gl_LTLIBOBJS=$gl_ltlibobjs 35023 35024 35025 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then 35026 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBASPRINTF\" was never defined. 35027 Usually this means the macro was only invoked conditionally." >&5 35028 echo "$as_me: error: conditional \"ENABLE_LIBASPRINTF\" was never defined. 35029 Usually this means the macro was only invoked conditionally." >&2;} 35030 { (exit 1); exit 1; }; } 35031 fi 35032 35033 : ${CONFIG_STATUS=./config.status} 35034 ac_clean_files_save=$ac_clean_files 35035 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35036 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 35037 echo "$as_me: creating $CONFIG_STATUS" >&6;} 35038 cat >$CONFIG_STATUS <<_ACEOF 35039 #! $SHELL 35040 # Generated by $as_me. 35041 # Run this file to recreate the current configuration. 35042 # Compiler output produced by configure, useful for debugging 35043 # configure, is in config.log if it exists. 35044 35045 debug=false 35046 ac_cs_recheck=false 35047 ac_cs_silent=false 35048 SHELL=\${CONFIG_SHELL-$SHELL} 35049 _ACEOF 35050 35051 cat >>$CONFIG_STATUS <<\_ACEOF 35052 ## --------------------- ## 35053 ## M4sh Initialization. ## 35054 ## --------------------- ## 35055 35056 # Be more Bourne compatible 35057 DUALCASE=1; export DUALCASE # for MKS sh 35058 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 35059 emulate sh 35060 NULLCMD=: 35061 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 35062 # is contrary to our usage. Disable this feature. 35063 alias -g '${1+"$@"}'='"$@"' 35064 setopt NO_GLOB_SUBST 35065 else 35066 case `(set -o) 2>/dev/null` in 35067 *posix*) set -o posix ;; 35068 esac 35069 35070 fi 35071 35072 35073 35074 35075 # PATH needs CR 35076 # Avoid depending upon Character Ranges. 35077 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35080 as_cr_digits='0123456789' 35081 as_cr_alnum=$as_cr_Letters$as_cr_digits 35082 35083 # The user is always right. 35084 if test "${PATH_SEPARATOR+set}" != set; then 35085 echo "#! /bin/sh" >conf$$.sh 35086 echo "exit 0" >>conf$$.sh 35087 chmod +x conf$$.sh 35088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 35089 PATH_SEPARATOR=';' 35090 else 35091 PATH_SEPARATOR=: 35092 fi 35093 rm -f conf$$.sh 35094 fi 35095 35096 # Support unset when possible. 35097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 35098 as_unset=unset 35099 else 35100 as_unset=false 35101 fi 35102 35103 35104 # IFS 35105 # We need space, tab and new line, in precisely that order. Quoting is 35106 # there to prevent editors from complaining about space-tab. 35107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 35108 # splitting by setting IFS to empty value.) 35109 as_nl=' 35110 ' 35111 IFS=" "" $as_nl" 35112 35113 # Find who we are. Look in the path if we contain no directory separator. 35114 case $0 in 35115 *[\\/]* ) as_myself=$0 ;; 35116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35117 for as_dir in $PATH 35118 do 35119 IFS=$as_save_IFS 35120 test -z "$as_dir" && as_dir=. 35121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 35122 done 35123 IFS=$as_save_IFS 35124 35125 ;; 35126 esac 35127 # We did not find ourselves, most probably we were run as `sh COMMAND' 35128 # in which case we are not to be found in the path. 35129 if test "x$as_myself" = x; then 35130 as_myself=$0 35131 fi 35132 if test ! -f "$as_myself"; then 35133 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 35134 { (exit 1); exit 1; } 35135 fi 35136 35137 # Work around bugs in pre-3.0 UWIN ksh. 35138 for as_var in ENV MAIL MAILPATH 35139 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 35140 done 35141 PS1='$ ' 35142 PS2='> ' 35143 PS4='+ ' 35144 35145 # NLS nuisances. 35146 for as_var in \ 35147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 35148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 35149 LC_TELEPHONE LC_TIME 35150 do 35151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 35152 eval $as_var=C; export $as_var 35153 else 35154 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 35155 fi 35156 done 35157 35158 # Required to use basename. 35159 if expr a : '\(a\)' >/dev/null 2>&1 && 35160 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35161 as_expr=expr 35162 else 35163 as_expr=false 35164 fi 35165 35166 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 35167 as_basename=basename 35168 else 35169 as_basename=false 35170 fi 35171 35172 35173 # Name of the executable. 35174 as_me=`$as_basename -- "$0" || 35175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 35176 X"$0" : 'X\(//\)$' \| \ 35177 X"$0" : 'X\(/\)' \| . 2>/dev/null || 35178 echo X/"$0" | 35179 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35180 s//\1/ 35181 q 35182 } 35183 /^X\/\(\/\/\)$/{ 35184 s//\1/ 35185 q 35186 } 35187 /^X\/\(\/\).*/{ 35188 s//\1/ 35189 q 35190 } 35191 s/.*/./; q'` 35192 35193 # CDPATH. 35194 $as_unset CDPATH 35195 35196 35197 35198 as_lineno_1=$LINENO 35199 as_lineno_2=$LINENO 35200 test "x$as_lineno_1" != "x$as_lineno_2" && 35201 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 35202 35203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 35204 # uniformly replaced by the line number. The first 'sed' inserts a 35205 # line-number line after each line using $LINENO; the second 'sed' 35206 # does the real work. The second script uses 'N' to pair each 35207 # line-number line with the line containing $LINENO, and appends 35208 # trailing '-' during substitution so that $LINENO is not a special 35209 # case at line end. 35210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 35211 # scripts with optimization help from Paolo Bonzini. Blame Lee 35212 # E. McMahon (1931-1989) for sed's syntax. :-) 35213 sed -n ' 35214 p 35215 /[$]LINENO/= 35216 ' <$as_myself | 35217 sed ' 35218 s/[$]LINENO.*/&-/ 35219 t lineno 35220 b 35221 :lineno 35222 N 35223 :loop 35224 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 35225 t loop 35226 s/-\n.*// 35227 ' >$as_me.lineno && 35228 chmod +x "$as_me.lineno" || 35229 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 35230 { (exit 1); exit 1; }; } 35231 35232 # Don't try to exec as it changes $[0], causing all sort of problems 35233 # (the dirname of $[0] is not the place where we might find the 35234 # original and so on. Autoconf is especially sensitive to this). 35235 . "./$as_me.lineno" 35236 # Exit status is that of the last command. 35237 exit 35238 } 35239 35240 35241 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 35242 as_dirname=dirname 35243 else 35244 as_dirname=false 35245 fi 35246 35247 ECHO_C= ECHO_N= ECHO_T= 35248 case `echo -n x` in 35249 -n*) 35250 case `echo 'x\c'` in 35251 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 35252 *) ECHO_C='\c';; 35253 esac;; 35254 *) 35255 ECHO_N='-n';; 35256 esac 35257 35258 if expr a : '\(a\)' >/dev/null 2>&1 && 35259 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35260 as_expr=expr 35261 else 35262 as_expr=false 35263 fi 35264 35265 rm -f conf$$ conf$$.exe conf$$.file 35266 if test -d conf$$.dir; then 35267 rm -f conf$$.dir/conf$$.file 35268 else 35269 rm -f conf$$.dir 35270 mkdir conf$$.dir 35271 fi 35272 echo >conf$$.file 35273 if ln -s conf$$.file conf$$ 2>/dev/null; then 35274 as_ln_s='ln -s' 35275 # ... but there are two gotchas: 35276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 35277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 35278 # In both cases, we have to default to `cp -p'. 35279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 35280 as_ln_s='cp -p' 35281 elif ln conf$$.file conf$$ 2>/dev/null; then 35282 as_ln_s=ln 35283 else 35284 as_ln_s='cp -p' 35285 fi 35286 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 35287 rmdir conf$$.dir 2>/dev/null 35288 35289 if mkdir -p . 2>/dev/null; then 35290 as_mkdir_p=: 35291 else 35292 test -d ./-p && rmdir ./-p 35293 as_mkdir_p=false 35294 fi 35295 35296 if test -x / >/dev/null 2>&1; then 35297 as_test_x='test -x' 35298 else 35299 if ls -dL / >/dev/null 2>&1; then 35300 as_ls_L_option=L 35301 else 35302 as_ls_L_option= 35303 fi 35304 as_test_x=' 35305 eval sh -c '\'' 35306 if test -d "$1"; then 35307 test -d "$1/."; 35308 else 35309 case $1 in 35310 -*)set "./$1";; 35311 esac; 35312 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 35313 ???[sx]*):;;*)false;;esac;fi 35314 '\'' sh 35315 ' 35316 fi 35317 as_executable_p=$as_test_x 35318 35319 # Sed expression to map a string onto a valid CPP name. 35320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 35321 35322 # Sed expression to map a string onto a valid variable name. 35323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 35324 35325 35326 exec 6>&1 35327 35328 # Save the log message, to keep $[0] and so on meaningful, and to 35329 # report actual input values of CONFIG_FILES etc. instead of their 35330 # values after options handling. 35331 ac_log=" 35332 This file was extended by $as_me, which was 35333 generated by GNU Autoconf 2.61. Invocation command line was 35334 35335 CONFIG_FILES = $CONFIG_FILES 35336 CONFIG_HEADERS = $CONFIG_HEADERS 35337 CONFIG_LINKS = $CONFIG_LINKS 35338 CONFIG_COMMANDS = $CONFIG_COMMANDS 35339 $ $0 $@ 35340 35341 on `(hostname || uname -n) 2>/dev/null | sed 1q` 35342 " 35343 35344 _ACEOF 35345 35346 cat >>$CONFIG_STATUS <<_ACEOF 35347 # Files that config.status was made for. 35348 config_files="$ac_config_files" 35349 config_headers="$ac_config_headers" 35350 config_commands="$ac_config_commands" 35351 35352 _ACEOF 35353 35354 cat >>$CONFIG_STATUS <<\_ACEOF 35355 ac_cs_usage="\ 35356 \`$as_me' instantiates files from templates according to the 35357 current configuration. 35358 35359 Usage: $0 [OPTIONS] [FILE]... 35360 35361 -h, --help print this help, then exit 35362 -V, --version print version number and configuration settings, then exit 35363 -q, --quiet do not print progress messages 35364 -d, --debug don't remove temporary files 35365 --recheck update $as_me by reconfiguring in the same conditions 35366 --file=FILE[:TEMPLATE] 35367 instantiate the configuration file FILE 35368 --header=FILE[:TEMPLATE] 35369 instantiate the configuration header FILE 35370 35371 Configuration files: 35372 $config_files 35373 35374 Configuration headers: 35375 $config_headers 35376 35377 Configuration commands: 35378 $config_commands 35379 35380 Report bugs to <bug-autoconf (at] gnu.org>." 35381 35382 _ACEOF 35383 cat >>$CONFIG_STATUS <<_ACEOF 35384 ac_cs_version="\\ 35385 config.status 35386 configured by $0, generated by GNU Autoconf 2.61, 35387 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 35388 35389 Copyright (C) 2006 Free Software Foundation, Inc. 35390 This config.status script is free software; the Free Software Foundation 35391 gives unlimited permission to copy, distribute and modify it." 35392 35393 ac_pwd='$ac_pwd' 35394 srcdir='$srcdir' 35395 INSTALL='$INSTALL' 35396 MKDIR_P='$MKDIR_P' 35397 _ACEOF 35398 35399 cat >>$CONFIG_STATUS <<\_ACEOF 35400 # If no file are specified by the user, then we need to provide default 35401 # value. By we need to know if files were specified by the user. 35402 ac_need_defaults=: 35403 while test $# != 0 35404 do 35405 case $1 in 35406 --*=*) 35407 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 35409 ac_shift=: 35410 ;; 35411 *) 35412 ac_option=$1 35413 ac_optarg=$2 35414 ac_shift=shift 35415 ;; 35416 esac 35417 35418 case $ac_option in 35419 # Handling of the options. 35420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 35421 ac_cs_recheck=: ;; 35422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 35423 echo "$ac_cs_version"; exit ;; 35424 --debug | --debu | --deb | --de | --d | -d ) 35425 debug=: ;; 35426 --file | --fil | --fi | --f ) 35427 $ac_shift 35428 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 35429 ac_need_defaults=false;; 35430 --header | --heade | --head | --hea ) 35431 $ac_shift 35432 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 35433 ac_need_defaults=false;; 35434 --he | --h) 35435 # Conflict between --help and --header 35436 { echo "$as_me: error: ambiguous option: $1 35437 Try \`$0 --help' for more information." >&2 35438 { (exit 1); exit 1; }; };; 35439 --help | --hel | -h ) 35440 echo "$ac_cs_usage"; exit ;; 35441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 35442 | -silent | --silent | --silen | --sile | --sil | --si | --s) 35443 ac_cs_silent=: ;; 35444 35445 # This is an error. 35446 -*) { echo "$as_me: error: unrecognized option: $1 35447 Try \`$0 --help' for more information." >&2 35448 { (exit 1); exit 1; }; } ;; 35449 35450 *) ac_config_targets="$ac_config_targets $1" 35451 ac_need_defaults=false ;; 35452 35453 esac 35454 shift 35455 done 35456 35457 ac_configure_extra_args= 35458 35459 if $ac_cs_silent; then 35460 exec 6>/dev/null 35461 ac_configure_extra_args="$ac_configure_extra_args --silent" 35462 fi 35463 35464 _ACEOF 35465 cat >>$CONFIG_STATUS <<_ACEOF 35466 if \$ac_cs_recheck; then 35467 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 35468 CONFIG_SHELL=$SHELL 35469 export CONFIG_SHELL 35470 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 35471 fi 35472 35473 _ACEOF 35474 cat >>$CONFIG_STATUS <<\_ACEOF 35475 exec 5>>config.log 35476 { 35477 echo 35478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 35479 ## Running $as_me. ## 35480 _ASBOX 35481 echo "$ac_log" 35482 } >&5 35483 35484 _ACEOF 35485 cat >>$CONFIG_STATUS <<_ACEOF 35486 # 35487 # INIT-COMMANDS 35488 # 35489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 35490 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 35491 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 35492 # from automake < 1.5. 35493 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 35494 # Capture the value of LINGUAS because we need it to compute CATALOGS. 35495 LINGUAS="${LINGUAS-%UNSET%}" 35496 35497 35498 _ACEOF 35499 35500 cat >>$CONFIG_STATUS <<\_ACEOF 35501 35502 # Handling of arguments. 35503 for ac_config_target in $ac_config_targets 35504 do 35505 case $ac_config_target in 35506 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 35507 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 35508 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 35509 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; 35510 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; 35511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 35512 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 35513 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 35514 "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;; 35515 "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;; 35516 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; 35517 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 35518 "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;; 35519 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 35520 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 35521 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; 35522 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 35523 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 35524 35525 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 35526 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 35527 { (exit 1); exit 1; }; };; 35528 esac 35529 done 35530 35531 35532 # If the user did not use the arguments to specify the items to instantiate, 35533 # then the envvar interface is used. Set only those that are not. 35534 # We use the long form for the default assignment because of an extremely 35535 # bizarre bug on SunOS 4.1.3. 35536 if $ac_need_defaults; then 35537 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 35538 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 35539 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 35540 fi 35541 35542 # Have a temporary directory for convenience. Make it in the build tree 35543 # simply because there is no reason against having it here, and in addition, 35544 # creating and moving files from /tmp can sometimes cause problems. 35545 # Hook for its removal unless debugging. 35546 # Note that there is a small window in which the directory will not be cleaned: 35547 # after its creation but before its name has been assigned to `$tmp'. 35548 $debug || 35549 { 35550 tmp= 35551 trap 'exit_status=$? 35552 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 35553 ' 0 35554 trap '{ (exit 1); exit 1; }' 1 2 13 15 35555 } 35556 # Create a (secure) tmp directory for tmp files. 35557 35558 { 35559 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35560 test -n "$tmp" && test -d "$tmp" 35561 } || 35562 { 35563 tmp=./conf$$-$RANDOM 35564 (umask 077 && mkdir "$tmp") 35565 } || 35566 { 35567 echo "$me: cannot create a temporary directory in ." >&2 35568 { (exit 1); exit 1; } 35569 } 35570 35571 # 35572 # Set up the sed scripts for CONFIG_FILES section. 35573 # 35574 35575 # No need to generate the scripts if there are no CONFIG_FILES. 35576 # This happens for instance when ./config.status config.h 35577 if test -n "$CONFIG_FILES"; then 35578 35579 _ACEOF 35580 35581 35582 35583 ac_delim='%!_!# ' 35584 for ac_last_try in false false false false false :; do 35585 cat >conf$$subs.sed <<_ACEOF 35586 SHELL!$SHELL$ac_delim 35587 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 35588 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 35589 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 35590 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 35591 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 35592 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 35593 exec_prefix!$exec_prefix$ac_delim 35594 prefix!$prefix$ac_delim 35595 program_transform_name!$program_transform_name$ac_delim 35596 bindir!$bindir$ac_delim 35597 sbindir!$sbindir$ac_delim 35598 libexecdir!$libexecdir$ac_delim 35599 datarootdir!$datarootdir$ac_delim 35600 datadir!$datadir$ac_delim 35601 sysconfdir!$sysconfdir$ac_delim 35602 sharedstatedir!$sharedstatedir$ac_delim 35603 localstatedir!$localstatedir$ac_delim 35604 includedir!$includedir$ac_delim 35605 oldincludedir!$oldincludedir$ac_delim 35606 docdir!$docdir$ac_delim 35607 infodir!$infodir$ac_delim 35608 htmldir!$htmldir$ac_delim 35609 dvidir!$dvidir$ac_delim 35610 pdfdir!$pdfdir$ac_delim 35611 psdir!$psdir$ac_delim 35612 libdir!$libdir$ac_delim 35613 localedir!$localedir$ac_delim 35614 mandir!$mandir$ac_delim 35615 DEFS!$DEFS$ac_delim 35616 ECHO_C!$ECHO_C$ac_delim 35617 ECHO_N!$ECHO_N$ac_delim 35618 ECHO_T!$ECHO_T$ac_delim 35619 LIBS!$LIBS$ac_delim 35620 build_alias!$build_alias$ac_delim 35621 host_alias!$host_alias$ac_delim 35622 target_alias!$target_alias$ac_delim 35623 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 35624 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 35625 INSTALL_DATA!$INSTALL_DATA$ac_delim 35626 am__isrc!$am__isrc$ac_delim 35627 CYGPATH_W!$CYGPATH_W$ac_delim 35628 PACKAGE!$PACKAGE$ac_delim 35629 VERSION!$VERSION$ac_delim 35630 ACLOCAL!$ACLOCAL$ac_delim 35631 AUTOCONF!$AUTOCONF$ac_delim 35632 AUTOMAKE!$AUTOMAKE$ac_delim 35633 AUTOHEADER!$AUTOHEADER$ac_delim 35634 MAKEINFO!$MAKEINFO$ac_delim 35635 install_sh!$install_sh$ac_delim 35636 STRIP!$STRIP$ac_delim 35637 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 35638 mkdir_p!$mkdir_p$ac_delim 35639 AWK!$AWK$ac_delim 35640 SET_MAKE!$SET_MAKE$ac_delim 35641 am__leading_dot!$am__leading_dot$ac_delim 35642 AMTAR!$AMTAR$ac_delim 35643 am__tar!$am__tar$ac_delim 35644 am__untar!$am__untar$ac_delim 35645 CC!$CC$ac_delim 35646 CFLAGS!$CFLAGS$ac_delim 35647 LDFLAGS!$LDFLAGS$ac_delim 35648 CPPFLAGS!$CPPFLAGS$ac_delim 35649 ac_ct_CC!$ac_ct_CC$ac_delim 35650 EXEEXT!$EXEEXT$ac_delim 35651 OBJEXT!$OBJEXT$ac_delim 35652 DEPDIR!$DEPDIR$ac_delim 35653 am__include!$am__include$ac_delim 35654 am__quote!$am__quote$ac_delim 35655 AMDEP_TRUE!$AMDEP_TRUE$ac_delim 35656 AMDEP_FALSE!$AMDEP_FALSE$ac_delim 35657 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 35658 CCDEPMODE!$CCDEPMODE$ac_delim 35659 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 35660 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 35661 YACC!$YACC$ac_delim 35662 YFLAGS!$YFLAGS$ac_delim 35663 JAVA_CHOICE!$JAVA_CHOICE$ac_delim 35664 CPP!$CPP$ac_delim 35665 GREP!$GREP$ac_delim 35666 EGREP!$EGREP$ac_delim 35667 HAVE_GCJ_IN_PATH!$HAVE_GCJ_IN_PATH$ac_delim 35668 HAVE_JAVAC_IN_PATH!$HAVE_JAVAC_IN_PATH$ac_delim 35669 HAVE_JIKES_IN_PATH!$HAVE_JIKES_IN_PATH$ac_delim 35670 CONF_JAVAC!$CONF_JAVAC$ac_delim 35671 CLASSPATH!$CLASSPATH$ac_delim 35672 CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim 35673 HAVE_JAVAC_ENVVAR!$HAVE_JAVAC_ENVVAR$ac_delim 35674 HAVE_GCJ_C!$HAVE_GCJ_C$ac_delim 35675 HAVE_JAVAC!$HAVE_JAVAC$ac_delim 35676 HAVE_JIKES!$HAVE_JIKES$ac_delim 35677 JAR!$JAR$ac_delim 35678 BUILDJAVA!$BUILDJAVA$ac_delim 35679 CSHARP_CHOICE!$CSHARP_CHOICE$ac_delim 35680 HAVE_CSCC_IN_PATH!$HAVE_CSCC_IN_PATH$ac_delim 35681 HAVE_MCS_IN_PATH!$HAVE_MCS_IN_PATH$ac_delim 35682 HAVE_CSC_IN_PATH!$HAVE_CSC_IN_PATH$ac_delim 35683 _ACEOF 35684 35685 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 35686 break 35687 elif $ac_last_try; then 35688 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 35689 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 35690 { (exit 1); exit 1; }; } 35691 else 35692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35693 fi 35694 done 35695 35696 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 35697 if test -n "$ac_eof"; then 35698 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 35699 ac_eof=`expr $ac_eof + 1` 35700 fi 35701 35702 cat >>$CONFIG_STATUS <<_ACEOF 35703 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 35704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35705 _ACEOF 35706 sed ' 35707 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 35708 s/^/s,@/; s/!/@,|#_!!_#|/ 35709 :n 35710 t n 35711 s/'"$ac_delim"'$/,g/; t 35712 s/$/\\/; p 35713 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 35714 ' >>$CONFIG_STATUS <conf$$subs.sed 35715 rm -f conf$$subs.sed 35716 cat >>$CONFIG_STATUS <<_ACEOF 35717 CEOF$ac_eof 35718 _ACEOF 35719 35720 35721 ac_delim='%!_!# ' 35722 for ac_last_try in false false false false false :; do 35723 cat >conf$$subs.sed <<_ACEOF 35724 HAVE_CSCC!$HAVE_CSCC$ac_delim 35725 HAVE_MCS!$HAVE_MCS$ac_delim 35726 HAVE_CSC!$HAVE_CSC$ac_delim 35727 CSHARPCOMPFLAGS!$CSHARPCOMPFLAGS$ac_delim 35728 BUILDCSHARP!$BUILDCSHARP$ac_delim 35729 build!$build$ac_delim 35730 build_cpu!$build_cpu$ac_delim 35731 build_vendor!$build_vendor$ac_delim 35732 build_os!$build_os$ac_delim 35733 host!$host$ac_delim 35734 host_cpu!$host_cpu$ac_delim 35735 host_vendor!$host_vendor$ac_delim 35736 host_os!$host_os$ac_delim 35737 RANLIB!$RANLIB$ac_delim 35738 LN_S!$LN_S$ac_delim 35739 ECHO!$ECHO$ac_delim 35740 AR!$AR$ac_delim 35741 DLLTOOL!$DLLTOOL$ac_delim 35742 AS!$AS$ac_delim 35743 OBJDUMP!$OBJDUMP$ac_delim 35744 CXX!$CXX$ac_delim 35745 CXXFLAGS!$CXXFLAGS$ac_delim 35746 ac_ct_CXX!$ac_ct_CXX$ac_delim 35747 CXXDEPMODE!$CXXDEPMODE$ac_delim 35748 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 35749 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 35750 CXXCPP!$CXXCPP$ac_delim 35751 F77!$F77$ac_delim 35752 FFLAGS!$FFLAGS$ac_delim 35753 ac_ct_F77!$ac_ct_F77$ac_delim 35754 LIBTOOL!$LIBTOOL$ac_delim 35755 USE_NLS!$USE_NLS$ac_delim 35756 MSGFMT!$MSGFMT$ac_delim 35757 GMSGFMT!$GMSGFMT$ac_delim 35758 MSGFMT_015!$MSGFMT_015$ac_delim 35759 GMSGFMT_015!$GMSGFMT_015$ac_delim 35760 XGETTEXT!$XGETTEXT$ac_delim 35761 XGETTEXT_015!$XGETTEXT_015$ac_delim 35762 MSGMERGE!$MSGMERGE$ac_delim 35763 GLIBC2!$GLIBC2$ac_delim 35764 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim 35765 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim 35766 ALLOCA!$ALLOCA$ac_delim 35767 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim 35768 LIBPTH!$LIBPTH$ac_delim 35769 LTLIBPTH!$LTLIBPTH$ac_delim 35770 LIBTHREAD!$LIBTHREAD$ac_delim 35771 LTLIBTHREAD!$LTLIBTHREAD$ac_delim 35772 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim 35773 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim 35774 LIBICONV!$LIBICONV$ac_delim 35775 LTLIBICONV!$LTLIBICONV$ac_delim 35776 INTLBISON!$INTLBISON$ac_delim 35777 GLIBC21!$GLIBC21$ac_delim 35778 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim 35779 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim 35780 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim 35781 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim 35782 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim 35783 WOE32DLL!$WOE32DLL$ac_delim 35784 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim 35785 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim 35786 CATOBJEXT!$CATOBJEXT$ac_delim 35787 DATADIRNAME!$DATADIRNAME$ac_delim 35788 INSTOBJEXT!$INSTOBJEXT$ac_delim 35789 GENCAT!$GENCAT$ac_delim 35790 INTLOBJS!$INTLOBJS$ac_delim 35791 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim 35792 INTLLIBS!$INTLLIBS$ac_delim 35793 LIBINTL!$LIBINTL$ac_delim 35794 LTLIBINTL!$LTLIBINTL$ac_delim 35795 POSUB!$POSUB$ac_delim 35796 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim 35797 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim 35798 ALLOCA_H!$ALLOCA_H$ac_delim 35799 GETOPT_H!$GETOPT_H$ac_delim 35800 RELOCATABLE!$RELOCATABLE$ac_delim 35801 SET_RELOCATABLE!$SET_RELOCATABLE$ac_delim 35802 RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim 35803 RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim 35804 STDBOOL_H!$STDBOOL_H$ac_delim 35805 HAVE__BOOL!$HAVE__BOOL$ac_delim 35806 UNISTD_H!$UNISTD_H$ac_delim 35807 LIBGRT_LIBDEPS!$LIBGRT_LIBDEPS$ac_delim 35808 LIBGRT_LTLIBDEPS!$LIBGRT_LTLIBDEPS$ac_delim 35809 PERL!$PERL$ac_delim 35810 CROSS_COMPILING!$CROSS_COMPILING$ac_delim 35811 LIBSCHED!$LIBSCHED$ac_delim 35812 ENABLE_LIBASPRINTF_TRUE!$ENABLE_LIBASPRINTF_TRUE$ac_delim 35813 ENABLE_LIBASPRINTF_FALSE!$ENABLE_LIBASPRINTF_FALSE$ac_delim 35814 subdirs!$subdirs$ac_delim 35815 LIBOBJS!$LIBOBJS$ac_delim 35816 LTLIBOBJS!$LTLIBOBJS$ac_delim 35817 gl_LIBOBJS!$gl_LIBOBJS$ac_delim 35818 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim 35819 _ACEOF 35820 35821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then 35822 break 35823 elif $ac_last_try; then 35824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 35825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 35826 { (exit 1); exit 1; }; } 35827 else 35828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35829 fi 35830 done 35831 35832 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 35833 if test -n "$ac_eof"; then 35834 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 35835 ac_eof=`expr $ac_eof + 1` 35836 fi 35837 35838 cat >>$CONFIG_STATUS <<_ACEOF 35839 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 35840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 35841 _ACEOF 35842 sed ' 35843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 35844 s/^/s,@/; s/!/@,|#_!!_#|/ 35845 :n 35846 t n 35847 s/'"$ac_delim"'$/,g/; t 35848 s/$/\\/; p 35849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 35850 ' >>$CONFIG_STATUS <conf$$subs.sed 35851 rm -f conf$$subs.sed 35852 cat >>$CONFIG_STATUS <<_ACEOF 35853 :end 35854 s/|#_!!_#|//g 35855 CEOF$ac_eof 35856 _ACEOF 35857 35858 35859 # VPATH may cause trouble with some makes, so we remove $(srcdir), 35860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 35861 # trailing colons and then remove the whole line if VPATH becomes empty 35862 # (actually we leave an empty line to preserve line numbers). 35863 if test "x$srcdir" = x.; then 35864 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 35865 s/:*\$(srcdir):*/:/ 35866 s/:*\${srcdir}:*/:/ 35867 s/:*@srcdir@:*/:/ 35868 s/^\([^=]*=[ ]*\):*/\1/ 35869 s/:*$// 35870 s/^[^=]*=[ ]*$// 35871 }' 35872 fi 35873 35874 cat >>$CONFIG_STATUS <<\_ACEOF 35875 fi # test -n "$CONFIG_FILES" 35876 35877 35878 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 35879 do 35880 case $ac_tag in 35881 :[FHLC]) ac_mode=$ac_tag; continue;; 35882 esac 35883 case $ac_mode$ac_tag in 35884 :[FHL]*:*);; 35885 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 35886 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 35887 { (exit 1); exit 1; }; };; 35888 :[FH]-) ac_tag=-:-;; 35889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35890 esac 35891 ac_save_IFS=$IFS 35892 IFS=: 35893 set x $ac_tag 35894 IFS=$ac_save_IFS 35895 shift 35896 ac_file=$1 35897 shift 35898 35899 case $ac_mode in 35900 :L) ac_source=$1;; 35901 :[FH]) 35902 ac_file_inputs= 35903 for ac_f 35904 do 35905 case $ac_f in 35906 -) ac_f="$tmp/stdin";; 35907 *) # Look for the file first in the build tree, then in the source tree 35908 # (if the path is not absolute). The absolute path cannot be DOS-style, 35909 # because $ac_f cannot contain `:'. 35910 test -f "$ac_f" || 35911 case $ac_f in 35912 [\\/$]*) false;; 35913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35914 esac || 35915 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 35916 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 35917 { (exit 1); exit 1; }; };; 35918 esac 35919 ac_file_inputs="$ac_file_inputs $ac_f" 35920 done 35921 35922 # Let's still pretend it is `configure' which instantiates (i.e., don't 35923 # use $as_me), people would be surprised to read: 35924 # /* config.h. Generated by config.status. */ 35925 configure_input="Generated from "`IFS=: 35926 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 35927 if test x"$ac_file" != x-; then 35928 configure_input="$ac_file. $configure_input" 35929 { echo "$as_me:$LINENO: creating $ac_file" >&5 35930 echo "$as_me: creating $ac_file" >&6;} 35931 fi 35932 35933 case $ac_tag in 35934 *:-:* | *:-) cat >"$tmp/stdin";; 35935 esac 35936 ;; 35937 esac 35938 35939 ac_dir=`$as_dirname -- "$ac_file" || 35940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35941 X"$ac_file" : 'X\(//\)[^/]' \| \ 35942 X"$ac_file" : 'X\(//\)$' \| \ 35943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35944 echo X"$ac_file" | 35945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35946 s//\1/ 35947 q 35948 } 35949 /^X\(\/\/\)[^/].*/{ 35950 s//\1/ 35951 q 35952 } 35953 /^X\(\/\/\)$/{ 35954 s//\1/ 35955 q 35956 } 35957 /^X\(\/\).*/{ 35958 s//\1/ 35959 q 35960 } 35961 s/.*/./; q'` 35962 { as_dir="$ac_dir" 35963 case $as_dir in #( 35964 -*) as_dir=./$as_dir;; 35965 esac 35966 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 35967 as_dirs= 35968 while :; do 35969 case $as_dir in #( 35970 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 35971 *) as_qdir=$as_dir;; 35972 esac 35973 as_dirs="'$as_qdir' $as_dirs" 35974 as_dir=`$as_dirname -- "$as_dir" || 35975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35976 X"$as_dir" : 'X\(//\)[^/]' \| \ 35977 X"$as_dir" : 'X\(//\)$' \| \ 35978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35979 echo X"$as_dir" | 35980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35981 s//\1/ 35982 q 35983 } 35984 /^X\(\/\/\)[^/].*/{ 35985 s//\1/ 35986 q 35987 } 35988 /^X\(\/\/\)$/{ 35989 s//\1/ 35990 q 35991 } 35992 /^X\(\/\).*/{ 35993 s//\1/ 35994 q 35995 } 35996 s/.*/./; q'` 35997 test -d "$as_dir" && break 35998 done 35999 test -z "$as_dirs" || eval "mkdir $as_dirs" 36000 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 36001 echo "$as_me: error: cannot create directory $as_dir" >&2;} 36002 { (exit 1); exit 1; }; }; } 36003 ac_builddir=. 36004 36005 case "$ac_dir" in 36006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36007 *) 36008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 36009 # A ".." for each directory in $ac_dir_suffix. 36010 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 36011 case $ac_top_builddir_sub in 36012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36014 esac ;; 36015 esac 36016 ac_abs_top_builddir=$ac_pwd 36017 ac_abs_builddir=$ac_pwd$ac_dir_suffix 36018 # for backward compatibility: 36019 ac_top_builddir=$ac_top_build_prefix 36020 36021 case $srcdir in 36022 .) # We are building in place. 36023 ac_srcdir=. 36024 ac_top_srcdir=$ac_top_builddir_sub 36025 ac_abs_top_srcdir=$ac_pwd ;; 36026 [\\/]* | ?:[\\/]* ) # Absolute name. 36027 ac_srcdir=$srcdir$ac_dir_suffix; 36028 ac_top_srcdir=$srcdir 36029 ac_abs_top_srcdir=$srcdir ;; 36030 *) # Relative name. 36031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36032 ac_top_srcdir=$ac_top_build_prefix$srcdir 36033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36034 esac 36035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36036 36037 36038 case $ac_mode in 36039 :F) 36040 # 36041 # CONFIG_FILE 36042 # 36043 36044 case $INSTALL in 36045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 36046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 36047 esac 36048 ac_MKDIR_P=$MKDIR_P 36049 case $MKDIR_P in 36050 [\\/$]* | ?:[\\/]* ) ;; 36051 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 36052 esac 36053 _ACEOF 36054 36055 cat >>$CONFIG_STATUS <<\_ACEOF 36056 # If the template does not know about datarootdir, expand it. 36057 # FIXME: This hack should be removed a few years after 2.60. 36058 ac_datarootdir_hack=; ac_datarootdir_seen= 36059 36060 case `sed -n '/datarootdir/ { 36061 p 36062 q 36063 } 36064 /@datadir@/p 36065 /@docdir@/p 36066 /@infodir@/p 36067 /@localedir@/p 36068 /@mandir@/p 36069 ' $ac_file_inputs` in 36070 *datarootdir*) ac_datarootdir_seen=yes;; 36071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 36072 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 36073 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 36074 _ACEOF 36075 cat >>$CONFIG_STATUS <<_ACEOF 36076 ac_datarootdir_hack=' 36077 s&@datadir@&$datadir&g 36078 s&@docdir@&$docdir&g 36079 s&@infodir@&$infodir&g 36080 s&@localedir@&$localedir&g 36081 s&@mandir@&$mandir&g 36082 s&\\\${datarootdir}&$datarootdir&g' ;; 36083 esac 36084 _ACEOF 36085 36086 # Neutralize VPATH when `$srcdir' = `.'. 36087 # Shell code in configure.ac might set extrasub. 36088 # FIXME: do we really want to maintain this feature? 36089 cat >>$CONFIG_STATUS <<_ACEOF 36090 sed "$ac_vpsub 36091 $extrasub 36092 _ACEOF 36093 cat >>$CONFIG_STATUS <<\_ACEOF 36094 :t 36095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36096 s&@configure_input@&$configure_input&;t t 36097 s&@top_builddir@&$ac_top_builddir_sub&;t t 36098 s&@srcdir@&$ac_srcdir&;t t 36099 s&@abs_srcdir@&$ac_abs_srcdir&;t t 36100 s&@top_srcdir@&$ac_top_srcdir&;t t 36101 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 36102 s&@builddir@&$ac_builddir&;t t 36103 s&@abs_builddir@&$ac_abs_builddir&;t t 36104 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 36105 s&@INSTALL@&$ac_INSTALL&;t t 36106 s&@MKDIR_P@&$ac_MKDIR_P&;t t 36107 $ac_datarootdir_hack 36108 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 36109 36110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 36111 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 36112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 36113 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36114 which seems to be undefined. Please make sure it is defined." >&5 36115 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36116 which seems to be undefined. Please make sure it is defined." >&2;} 36117 36118 rm -f "$tmp/stdin" 36119 case $ac_file in 36120 -) cat "$tmp/out"; rm -f "$tmp/out";; 36121 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 36122 esac 36123 ;; 36124 :H) 36125 # 36126 # CONFIG_HEADER 36127 # 36128 _ACEOF 36129 36130 # Transform confdefs.h into a sed script `conftest.defines', that 36131 # substitutes the proper values into config.h.in to produce config.h. 36132 rm -f conftest.defines conftest.tail 36133 # First, append a space to every undef/define line, to ease matching. 36134 echo 's/$/ /' >conftest.defines 36135 # Then, protect against being on the right side of a sed subst, or in 36136 # an unquoted here document, in config.status. If some macros were 36137 # called several times there might be several #defines for the same 36138 # symbol, which is useless. But do not sort them, since the last 36139 # AC_DEFINE must be honored. 36140 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 36141 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 36142 # NAME is the cpp macro being defined, VALUE is the value it is being given. 36143 # PARAMS is the parameter list in the macro definition--in most cases, it's 36144 # just an empty string. 36145 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 36146 ac_dB='\\)[ (].*,\\1define\\2' 36147 ac_dC=' ' 36148 ac_dD=' ,' 36149 36150 uniq confdefs.h | 36151 sed -n ' 36152 t rset 36153 :rset 36154 s/^[ ]*#[ ]*define[ ][ ]*// 36155 t ok 36156 d 36157 :ok 36158 s/[\\&,]/\\&/g 36159 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 36160 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 36161 ' >>conftest.defines 36162 36163 # Remove the space that was appended to ease matching. 36164 # Then replace #undef with comments. This is necessary, for 36165 # example, in the case of _POSIX_SOURCE, which is predefined and required 36166 # on some systems where configure will not decide to define it. 36167 # (The regexp can be short, since the line contains either #define or #undef.) 36168 echo 's/ $// 36169 s,^[ #]*u.*,/* & */,' >>conftest.defines 36170 36171 # Break up conftest.defines: 36172 ac_max_sed_lines=50 36173 36174 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 36175 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 36176 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 36177 # et cetera. 36178 ac_in='$ac_file_inputs' 36179 ac_out='"$tmp/out1"' 36180 ac_nxt='"$tmp/out2"' 36181 36182 while : 36183 do 36184 # Write a here document: 36185 cat >>$CONFIG_STATUS <<_ACEOF 36186 # First, check the format of the line: 36187 cat >"\$tmp/defines.sed" <<\\CEOF 36188 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 36189 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 36190 b 36191 :def 36192 _ACEOF 36193 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 36194 echo 'CEOF 36195 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 36196 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 36197 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 36198 grep . conftest.tail >/dev/null || break 36199 rm -f conftest.defines 36200 mv conftest.tail conftest.defines 36201 done 36202 rm -f conftest.defines conftest.tail 36203 36204 echo "ac_result=$ac_in" >>$CONFIG_STATUS 36205 cat >>$CONFIG_STATUS <<\_ACEOF 36206 if test x"$ac_file" != x-; then 36207 echo "/* $configure_input */" >"$tmp/config.h" 36208 cat "$ac_result" >>"$tmp/config.h" 36209 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 36210 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 36211 echo "$as_me: $ac_file is unchanged" >&6;} 36212 else 36213 rm -f $ac_file 36214 mv "$tmp/config.h" $ac_file 36215 fi 36216 else 36217 echo "/* $configure_input */" 36218 cat "$ac_result" 36219 fi 36220 rm -f "$tmp/out12" 36221 # Compute $ac_file's index in $config_headers. 36222 _am_stamp_count=1 36223 for _am_header in $config_headers :; do 36224 case $_am_header in 36225 $ac_file | $ac_file:* ) 36226 break ;; 36227 * ) 36228 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 36229 esac 36230 done 36231 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 36232 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36233 X$ac_file : 'X\(//\)[^/]' \| \ 36234 X$ac_file : 'X\(//\)$' \| \ 36235 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 36236 echo X$ac_file | 36237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36238 s//\1/ 36239 q 36240 } 36241 /^X\(\/\/\)[^/].*/{ 36242 s//\1/ 36243 q 36244 } 36245 /^X\(\/\/\)$/{ 36246 s//\1/ 36247 q 36248 } 36249 /^X\(\/\).*/{ 36250 s//\1/ 36251 q 36252 } 36253 s/.*/./; q'`/stamp-h$_am_stamp_count 36254 ;; 36255 36256 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 36257 echo "$as_me: executing $ac_file commands" >&6;} 36258 ;; 36259 esac 36260 36261 36262 case $ac_file$ac_mode in 36263 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 36264 # Strip MF so we end up with the name of the file. 36265 mf=`echo "$mf" | sed -e 's/:.*$//'` 36266 # Check whether this is an Automake generated Makefile or not. 36267 # We used to match only the files named `Makefile.in', but 36268 # some people rename them; so instead we look at the file content. 36269 # Grep'ing the first line is not enough: some people post-process 36270 # each Makefile.in and add a new line on top of each file to say so. 36271 # Grep'ing the whole file is not good either: AIX grep has a line 36272 # limit of 2048, but all sed's we know have understand at least 4000. 36273 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 36274 dirpart=`$as_dirname -- "$mf" || 36275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36276 X"$mf" : 'X\(//\)[^/]' \| \ 36277 X"$mf" : 'X\(//\)$' \| \ 36278 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 36279 echo X"$mf" | 36280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36281 s//\1/ 36282 q 36283 } 36284 /^X\(\/\/\)[^/].*/{ 36285 s//\1/ 36286 q 36287 } 36288 /^X\(\/\/\)$/{ 36289 s//\1/ 36290 q 36291 } 36292 /^X\(\/\).*/{ 36293 s//\1/ 36294 q 36295 } 36296 s/.*/./; q'` 36297 else 36298 continue 36299 fi 36300 # Extract the definition of DEPDIR, am__include, and am__quote 36301 # from the Makefile without running `make'. 36302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 36303 test -z "$DEPDIR" && continue 36304 am__include=`sed -n 's/^am__include = //p' < "$mf"` 36305 test -z "am__include" && continue 36306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 36307 # When using ansi2knr, U may be empty or an underscore; expand it 36308 U=`sed -n 's/^U = //p' < "$mf"` 36309 # Find all dependency output files, they are included files with 36310 # $(DEPDIR) in their names. We invoke sed twice because it is the 36311 # simplest approach to changing $(DEPDIR) to its actual value in the 36312 # expansion. 36313 for file in `sed -n " 36314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 36315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 36316 # Make sure the directory exists. 36317 test -f "$dirpart/$file" && continue 36318 fdir=`$as_dirname -- "$file" || 36319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36320 X"$file" : 'X\(//\)[^/]' \| \ 36321 X"$file" : 'X\(//\)$' \| \ 36322 X"$file" : 'X\(/\)' \| . 2>/dev/null || 36323 echo X"$file" | 36324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36325 s//\1/ 36326 q 36327 } 36328 /^X\(\/\/\)[^/].*/{ 36329 s//\1/ 36330 q 36331 } 36332 /^X\(\/\/\)$/{ 36333 s//\1/ 36334 q 36335 } 36336 /^X\(\/\).*/{ 36337 s//\1/ 36338 q 36339 } 36340 s/.*/./; q'` 36341 { as_dir=$dirpart/$fdir 36342 case $as_dir in #( 36343 -*) as_dir=./$as_dir;; 36344 esac 36345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 36346 as_dirs= 36347 while :; do 36348 case $as_dir in #( 36349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 36350 *) as_qdir=$as_dir;; 36351 esac 36352 as_dirs="'$as_qdir' $as_dirs" 36353 as_dir=`$as_dirname -- "$as_dir" || 36354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36355 X"$as_dir" : 'X\(//\)[^/]' \| \ 36356 X"$as_dir" : 'X\(//\)$' \| \ 36357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 36358 echo X"$as_dir" | 36359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36360 s//\1/ 36361 q 36362 } 36363 /^X\(\/\/\)[^/].*/{ 36364 s//\1/ 36365 q 36366 } 36367 /^X\(\/\/\)$/{ 36368 s//\1/ 36369 q 36370 } 36371 /^X\(\/\).*/{ 36372 s//\1/ 36373 q 36374 } 36375 s/.*/./; q'` 36376 test -d "$as_dir" && break 36377 done 36378 test -z "$as_dirs" || eval "mkdir $as_dirs" 36379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 36380 echo "$as_me: error: cannot create directory $as_dir" >&2;} 36381 { (exit 1); exit 1; }; }; } 36382 # echo "creating $dirpart/$file" 36383 echo '# dummy' > "$dirpart/$file" 36384 done 36385 done 36386 ;; 36387 "po-directories":C) 36388 for ac_file in $CONFIG_FILES; do 36389 # Support "outfile[:infile[:infile...]]" 36390 case "$ac_file" in 36391 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 36392 esac 36393 # PO directories have a Makefile.in generated from Makefile.in.in. 36394 case "$ac_file" in */Makefile.in) 36395 # Adjust a relative srcdir. 36396 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 36397 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 36398 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 36399 # In autoconf-2.13 it is called $ac_given_srcdir. 36400 # In autoconf-2.50 it is called $srcdir. 36401 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 36402 case "$ac_given_srcdir" in 36403 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 36404 /*) top_srcdir="$ac_given_srcdir" ;; 36405 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 36406 esac 36407 # Treat a directory as a PO directory if and only if it has a 36408 # POTFILES.in file. This allows packages to have multiple PO 36409 # directories under different names or in different locations. 36410 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 36411 rm -f "$ac_dir/POTFILES" 36412 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 36413 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 36414 POMAKEFILEDEPS="POTFILES.in" 36415 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 36416 # on $ac_dir but don't depend on user-specified configuration 36417 # parameters. 36418 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 36419 # The LINGUAS file contains the set of available languages. 36420 if test -n "$OBSOLETE_ALL_LINGUAS"; then 36421 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 36422 fi 36423 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 36424 # Hide the ALL_LINGUAS assigment from automake < 1.5. 36425 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 36426 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 36427 else 36428 # The set of available languages was given in configure.in. 36429 # Hide the ALL_LINGUAS assigment from automake < 1.5. 36430 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 36431 fi 36432 # Compute POFILES 36433 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 36434 # Compute UPDATEPOFILES 36435 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 36436 # Compute DUMMYPOFILES 36437 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 36438 # Compute GMOFILES 36439 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 36440 case "$ac_given_srcdir" in 36441 .) srcdirpre= ;; 36442 *) srcdirpre='$(srcdir)/' ;; 36443 esac 36444 POFILES= 36445 UPDATEPOFILES= 36446 DUMMYPOFILES= 36447 GMOFILES= 36448 for lang in $ALL_LINGUAS; do 36449 POFILES="$POFILES $srcdirpre$lang.po" 36450 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 36451 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 36452 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 36453 done 36454 # CATALOGS depends on both $ac_dir and the user's LINGUAS 36455 # environment variable. 36456 INST_LINGUAS= 36457 if test -n "$ALL_LINGUAS"; then 36458 for presentlang in $ALL_LINGUAS; do 36459 useit=no 36460 if test "%UNSET%" != "$LINGUAS"; then 36461 desiredlanguages="$LINGUAS" 36462 else 36463 desiredlanguages="$ALL_LINGUAS" 36464 fi 36465 for desiredlang in $desiredlanguages; do 36466 # Use the presentlang catalog if desiredlang is 36467 # a. equal to presentlang, or 36468 # b. a variant of presentlang (because in this case, 36469 # presentlang can be used as a fallback for messages 36470 # which are not translated in the desiredlang catalog). 36471 case "$desiredlang" in 36472 "$presentlang"*) useit=yes;; 36473 esac 36474 done 36475 if test $useit = yes; then 36476 INST_LINGUAS="$INST_LINGUAS $presentlang" 36477 fi 36478 done 36479 fi 36480 CATALOGS= 36481 if test -n "$INST_LINGUAS"; then 36482 for lang in $INST_LINGUAS; do 36483 CATALOGS="$CATALOGS $lang.gmo" 36484 done 36485 fi 36486 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 36487 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 36488 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 36489 if test -f "$f"; then 36490 case "$f" in 36491 *.orig | *.bak | *~) ;; 36492 *) cat "$f" >> "$ac_dir/Makefile" ;; 36493 esac 36494 fi 36495 done 36496 fi 36497 ;; 36498 esac 36499 done ;; 36500 "gnulib-lib/Makefile":F) 36501 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp 36502 mv $ac_file.tmp $ac_file 36503 ;; 36504 "src/Makefile":F) 36505 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp 36506 mv $ac_file.tmp $ac_file 36507 ;; 36508 "src/gettext.sh":F) chmod a+x src/gettext.sh ;; 36509 "man/Makefile":F) 36510 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp 36511 mv $ac_file.tmp $ac_file 36512 ;; 36513 36514 esac 36515 done # for ac_tag 36516 36517 36518 { (exit 0); exit 0; } 36519 _ACEOF 36520 chmod +x $CONFIG_STATUS 36521 ac_clean_files=$ac_clean_files_save 36522 36523 36524 # configure is writing to config.log, and then calls config.status. 36525 # config.status does its own redirection, appending to config.log. 36526 # Unfortunately, on DOS this fails, as config.log is still kept open 36527 # by configure, so config.status won't be able to write to it; its 36528 # output is simply discarded. So we exec the FD to /dev/null, 36529 # effectively closing config.log, so it can be properly (re)opened and 36530 # appended to by config.status. When coming back to configure, we 36531 # need to make the FD available again. 36532 if test "$no_create" != yes; then 36533 ac_cs_success=: 36534 ac_config_status_args= 36535 test "$silent" = yes && 36536 ac_config_status_args="$ac_config_status_args --quiet" 36537 exec 5>/dev/null 36538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 36539 exec 5>>config.log 36540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 36541 # would make configure fail if this is the last instruction. 36542 $ac_cs_success || { (exit 1); exit 1; } 36543 fi 36544 36545 # 36546 # CONFIG_SUBDIRS section. 36547 # 36548 if test "$no_recursion" != yes; then 36549 36550 # Remove --cache-file and --srcdir arguments so they do not pile up. 36551 ac_sub_configure_args= 36552 ac_prev= 36553 eval "set x $ac_configure_args" 36554 shift 36555 for ac_arg 36556 do 36557 if test -n "$ac_prev"; then 36558 ac_prev= 36559 continue 36560 fi 36561 case $ac_arg in 36562 -cache-file | --cache-file | --cache-fil | --cache-fi \ 36563 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 36564 ac_prev=cache_file ;; 36565 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 36566 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 36567 | --c=*) 36568 ;; 36569 --config-cache | -C) 36570 ;; 36571 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 36572 ac_prev=srcdir ;; 36573 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 36574 ;; 36575 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 36576 ac_prev=prefix ;; 36577 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 36578 ;; 36579 *) 36580 case $ac_arg in 36581 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36582 esac 36583 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 36584 esac 36585 done 36586 36587 # Always prepend --prefix to ensure using the same prefix 36588 # in subdir configurations. 36589 ac_arg="--prefix=$prefix" 36590 case $ac_arg in 36591 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36592 esac 36593 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 36594 36595 # Pass --silent 36596 if test "$silent" = yes; then 36597 ac_sub_configure_args="--silent $ac_sub_configure_args" 36598 fi 36599 36600 ac_popdir=`pwd` 36601 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 36602 36603 # Do not complain, so a configure script can configure whichever 36604 # parts of a large source tree are present. 36605 test -d "$srcdir/$ac_dir" || continue 36606 36607 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 36608 echo "$as_me:$LINENO: $ac_msg" >&5 36609 echo "$ac_msg" >&6 36610 { as_dir="$ac_dir" 36611 case $as_dir in #( 36612 -*) as_dir=./$as_dir;; 36613 esac 36614 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 36615 as_dirs= 36616 while :; do 36617 case $as_dir in #( 36618 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 36619 *) as_qdir=$as_dir;; 36620 esac 36621 as_dirs="'$as_qdir' $as_dirs" 36622 as_dir=`$as_dirname -- "$as_dir" || 36623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36624 X"$as_dir" : 'X\(//\)[^/]' \| \ 36625 X"$as_dir" : 'X\(//\)$' \| \ 36626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 36627 echo X"$as_dir" | 36628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36629 s//\1/ 36630 q 36631 } 36632 /^X\(\/\/\)[^/].*/{ 36633 s//\1/ 36634 q 36635 } 36636 /^X\(\/\/\)$/{ 36637 s//\1/ 36638 q 36639 } 36640 /^X\(\/\).*/{ 36641 s//\1/ 36642 q 36643 } 36644 s/.*/./; q'` 36645 test -d "$as_dir" && break 36646 done 36647 test -z "$as_dirs" || eval "mkdir $as_dirs" 36648 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 36649 echo "$as_me: error: cannot create directory $as_dir" >&2;} 36650 { (exit 1); exit 1; }; }; } 36651 ac_builddir=. 36652 36653 case "$ac_dir" in 36654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36655 *) 36656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 36657 # A ".." for each directory in $ac_dir_suffix. 36658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 36659 case $ac_top_builddir_sub in 36660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36662 esac ;; 36663 esac 36664 ac_abs_top_builddir=$ac_pwd 36665 ac_abs_builddir=$ac_pwd$ac_dir_suffix 36666 # for backward compatibility: 36667 ac_top_builddir=$ac_top_build_prefix 36668 36669 case $srcdir in 36670 .) # We are building in place. 36671 ac_srcdir=. 36672 ac_top_srcdir=$ac_top_builddir_sub 36673 ac_abs_top_srcdir=$ac_pwd ;; 36674 [\\/]* | ?:[\\/]* ) # Absolute name. 36675 ac_srcdir=$srcdir$ac_dir_suffix; 36676 ac_top_srcdir=$srcdir 36677 ac_abs_top_srcdir=$srcdir ;; 36678 *) # Relative name. 36679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36680 ac_top_srcdir=$ac_top_build_prefix$srcdir 36681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36682 esac 36683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36684 36685 36686 cd "$ac_dir" 36687 36688 # Check for guested configure; otherwise get Cygnus style configure. 36689 if test -f "$ac_srcdir/configure.gnu"; then 36690 ac_sub_configure=$ac_srcdir/configure.gnu 36691 elif test -f "$ac_srcdir/configure"; then 36692 ac_sub_configure=$ac_srcdir/configure 36693 elif test -f "$ac_srcdir/configure.in"; then 36694 # This should be Cygnus configure. 36695 ac_sub_configure=$ac_aux_dir/configure 36696 else 36697 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 36698 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 36699 ac_sub_configure= 36700 fi 36701 36702 # The recursion is here. 36703 if test -n "$ac_sub_configure"; then 36704 # Make the cache file name correct relative to the subdirectory. 36705 case $cache_file in 36706 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 36707 *) # Relative name. 36708 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 36709 esac 36710 36711 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 36712 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 36713 # The eval makes quoting arguments work. 36714 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 36715 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 36716 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 36717 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 36718 { (exit 1); exit 1; }; } 36719 fi 36720 36721 cd "$ac_popdir" 36722 done 36723 fi 36724 36725