1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.63 for netbsd-iscsi 20111006. 4 # 5 # Report bugs to <Alistair Crooks <agc (at] NetBSD.org>>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 # Support unset when possible. 84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86 else 87 as_unset=false 88 fi 89 90 91 # IFS 92 # We need space, tab and new line, in precisely that order. Quoting is 93 # there to prevent editors from complaining about space-tab. 94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 95 # splitting by setting IFS to empty value.) 96 IFS=" "" $as_nl" 97 98 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # Required to use basename. 137 if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140 else 141 as_expr=false 142 fi 143 144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146 else 147 as_basename=false 148 fi 149 150 151 # Name of the executable. 152 as_me=`$as_basename -- "$0" || 153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156 $as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485 } 486 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490 else 491 as_dirname=false 492 fi 493 494 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 496 -n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501 *) 502 ECHO_N='-n';; 503 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507 else 508 as_expr=false 509 fi 510 511 rm -f conf$$ conf$$.exe conf$$.file 512 if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514 else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517 fi 518 if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532 else 533 as_ln_s='cp -p' 534 fi 535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536 rmdir conf$$.dir 2>/dev/null 537 538 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540 else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543 fi 544 545 if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547 else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565 fi 566 as_executable_p=$as_test_x 567 568 # Sed expression to map a string onto a valid CPP name. 569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571 # Sed expression to map a string onto a valid variable name. 572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577 # Check that we are running under the correct shell. 578 SHELL=${CONFIG_SHELL-/bin/sh} 579 580 case X$ECHO in 581 X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585 esac 586 587 echo=${ECHO-echo} 588 if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591 elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597 else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600 fi 601 602 if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606 $* 607 EOF 608 exit 0 609 fi 610 611 # The HP-UX ksh and POSIX shell print the target directory to stdout 612 # if CDPATH is set. 613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615 if test -z "$ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627 fi 628 629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633 else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713 fi 714 fi 715 716 # Copy echo and quote the copy suitably for passing to libtool from 717 # the Makefile, instead of quoting the original, which is used later. 718 ECHO=$echo 719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721 fi 722 723 724 725 726 tagnames=${tagnames+${tagnames},}CXX 727 728 tagnames=${tagnames+${tagnames},}F77 729 730 exec 7<&0 </dev/null 6>&1 731 732 # Name of the host. 733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734 # so uname gets run too. 735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737 # 738 # Initializations. 739 # 740 ac_default_prefix=/usr/local 741 ac_clean_files= 742 ac_config_libobj_dir=. 743 LIBOBJS= 744 cross_compiling=no 745 subdirs= 746 MFLAGS= 747 MAKEFLAGS= 748 SHELL=${CONFIG_SHELL-/bin/sh} 749 750 # Identity of this package. 751 PACKAGE_NAME='netbsd-iscsi' 752 PACKAGE_TARNAME='netbsd-iscsi' 753 PACKAGE_VERSION='20111006' 754 PACKAGE_STRING='netbsd-iscsi 20111006' 755 PACKAGE_BUGREPORT='Alistair Crooks <agc (at] NetBSD.org>' 756 757 ac_unique_file="src/lib/protocol.c" 758 # Factoring default headers for most tests. 759 ac_includes_default="\ 760 #include <stdio.h> 761 #ifdef HAVE_SYS_TYPES_H 762 # include <sys/types.h> 763 #endif 764 #ifdef HAVE_SYS_STAT_H 765 # include <sys/stat.h> 766 #endif 767 #ifdef STDC_HEADERS 768 # include <stdlib.h> 769 # include <stddef.h> 770 #else 771 # ifdef HAVE_STDLIB_H 772 # include <stdlib.h> 773 # endif 774 #endif 775 #ifdef HAVE_STRING_H 776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777 # include <memory.h> 778 # endif 779 # include <string.h> 780 #endif 781 #ifdef HAVE_STRINGS_H 782 # include <strings.h> 783 #endif 784 #ifdef HAVE_INTTYPES_H 785 # include <inttypes.h> 786 #endif 787 #ifdef HAVE_STDINT_H 788 # include <stdint.h> 789 #endif 790 #ifdef HAVE_UNISTD_H 791 # include <unistd.h> 792 #endif" 793 794 ac_subst_vars='LTLIBOBJS 795 LIBOBJS 796 LIBTOOL 797 ac_ct_F77 798 FFLAGS 799 F77 800 CXXCPP 801 am__fastdepCXX_FALSE 802 am__fastdepCXX_TRUE 803 CXXDEPMODE 804 ac_ct_CXX 805 CXXFLAGS 806 CXX 807 CPP 808 AR 809 ECHO 810 LN_S 811 EGREP 812 GREP 813 SED 814 RANLIB 815 am__fastdepCC_FALSE 816 am__fastdepCC_TRUE 817 CCDEPMODE 818 AMDEPBACKSLASH 819 AMDEP_FALSE 820 AMDEP_TRUE 821 am__quote 822 am__include 823 DEPDIR 824 OBJEXT 825 EXEEXT 826 ac_ct_CC 827 CPPFLAGS 828 LDFLAGS 829 CFLAGS 830 CC 831 CANONICAL_HOST 832 host_os 833 host_vendor 834 host_cpu 835 host 836 build_os 837 build_vendor 838 build_cpu 839 build 840 MAINT 841 MAINTAINER_MODE_FALSE 842 MAINTAINER_MODE_TRUE 843 am__untar 844 am__tar 845 AMTAR 846 am__leading_dot 847 SET_MAKE 848 AWK 849 mkdir_p 850 MKDIR_P 851 INSTALL_STRIP_PROGRAM 852 STRIP 853 install_sh 854 MAKEINFO 855 AUTOHEADER 856 AUTOMAKE 857 AUTOCONF 858 ACLOCAL 859 VERSION 860 PACKAGE 861 CYGPATH_W 862 am__isrc 863 INSTALL_DATA 864 INSTALL_SCRIPT 865 INSTALL_PROGRAM 866 target_alias 867 host_alias 868 build_alias 869 LIBS 870 ECHO_T 871 ECHO_N 872 ECHO_C 873 DEFS 874 mandir 875 localedir 876 libdir 877 psdir 878 pdfdir 879 dvidir 880 htmldir 881 infodir 882 docdir 883 oldincludedir 884 includedir 885 localstatedir 886 sharedstatedir 887 sysconfdir 888 datadir 889 datarootdir 890 libexecdir 891 sbindir 892 bindir 893 program_transform_name 894 prefix 895 exec_prefix 896 PACKAGE_BUGREPORT 897 PACKAGE_STRING 898 PACKAGE_VERSION 899 PACKAGE_TARNAME 900 PACKAGE_NAME 901 PATH_SEPARATOR 902 SHELL' 903 ac_subst_files='' 904 ac_user_opts=' 905 enable_option_checking 906 enable_maintainer_mode 907 enable_dependency_tracking 908 enable_shared 909 enable_static 910 enable_fast_install 911 with_gnu_ld 912 enable_libtool_lock 913 with_pic 914 with_tags 915 ' 916 ac_precious_vars='build_alias 917 host_alias 918 target_alias 919 CC 920 CFLAGS 921 LDFLAGS 922 LIBS 923 CPPFLAGS 924 CPP 925 CXX 926 CXXFLAGS 927 CCC 928 CXXCPP 929 F77 930 FFLAGS' 931 932 933 # Initialize some variables set by options. 934 ac_init_help= 935 ac_init_version=false 936 ac_unrecognized_opts= 937 ac_unrecognized_sep= 938 # The variables have the same names as the options, with 939 # dashes changed to underlines. 940 cache_file=/dev/null 941 exec_prefix=NONE 942 no_create= 943 no_recursion= 944 prefix=NONE 945 program_prefix=NONE 946 program_suffix=NONE 947 program_transform_name=s,x,x, 948 silent= 949 site= 950 srcdir= 951 verbose= 952 x_includes=NONE 953 x_libraries=NONE 954 955 # Installation directory options. 956 # These are left unexpanded so users can "make install exec_prefix=/foo" 957 # and all the variables that are supposed to be based on exec_prefix 958 # by default will actually change. 959 # Use braces instead of parens because sh, perl, etc. also accept them. 960 # (The list follows the same order as the GNU Coding Standards.) 961 bindir='${exec_prefix}/bin' 962 sbindir='${exec_prefix}/sbin' 963 libexecdir='${exec_prefix}/libexec' 964 datarootdir='${prefix}/share' 965 datadir='${datarootdir}' 966 sysconfdir='${prefix}/etc' 967 sharedstatedir='${prefix}/com' 968 localstatedir='${prefix}/var' 969 includedir='${prefix}/include' 970 oldincludedir='/usr/include' 971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972 infodir='${datarootdir}/info' 973 htmldir='${docdir}' 974 dvidir='${docdir}' 975 pdfdir='${docdir}' 976 psdir='${docdir}' 977 libdir='${exec_prefix}/lib' 978 localedir='${datarootdir}/locale' 979 mandir='${datarootdir}/man' 980 981 ac_prev= 982 ac_dashdash= 983 for ac_option 984 do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1040 { (exit 1); exit 1; }; } 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045 "enable_$ac_useropt" 1046 "*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=no ;; 1051 1052 -docdir | --docdir | --docdi | --doc | --do) 1053 ac_prev=docdir ;; 1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1055 docdir=$ac_optarg ;; 1056 1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1058 ac_prev=dvidir ;; 1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1060 dvidir=$ac_optarg ;; 1061 1062 -enable-* | --enable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072 "enable_$ac_useropt" 1073 "*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=\$ac_optarg ;; 1078 1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1081 | --exec | --exe | --ex) 1082 ac_prev=exec_prefix ;; 1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1085 | --exec=* | --exe=* | --ex=*) 1086 exec_prefix=$ac_optarg ;; 1087 1088 -gas | --gas | --ga | --g) 1089 # Obsolete; use --with-gas. 1090 with_gas=yes ;; 1091 1092 -help | --help | --hel | --he | -h) 1093 ac_init_help=long ;; 1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1095 ac_init_help=recursive ;; 1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1097 ac_init_help=short ;; 1098 1099 -host | --host | --hos | --ho) 1100 ac_prev=host_alias ;; 1101 -host=* | --host=* | --hos=* | --ho=*) 1102 host_alias=$ac_optarg ;; 1103 1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1105 ac_prev=htmldir ;; 1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1107 | --ht=*) 1108 htmldir=$ac_optarg ;; 1109 1110 -includedir | --includedir | --includedi | --included | --include \ 1111 | --includ | --inclu | --incl | --inc) 1112 ac_prev=includedir ;; 1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1114 | --includ=* | --inclu=* | --incl=* | --inc=*) 1115 includedir=$ac_optarg ;; 1116 1117 -infodir | --infodir | --infodi | --infod | --info | --inf) 1118 ac_prev=infodir ;; 1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1120 infodir=$ac_optarg ;; 1121 1122 -libdir | --libdir | --libdi | --libd) 1123 ac_prev=libdir ;; 1124 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1125 libdir=$ac_optarg ;; 1126 1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1128 | --libexe | --libex | --libe) 1129 ac_prev=libexecdir ;; 1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1131 | --libexe=* | --libex=* | --libe=*) 1132 libexecdir=$ac_optarg ;; 1133 1134 -localedir | --localedir | --localedi | --localed | --locale) 1135 ac_prev=localedir ;; 1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1137 localedir=$ac_optarg ;; 1138 1139 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1140 | --localstate | --localstat | --localsta | --localst | --locals) 1141 ac_prev=localstatedir ;; 1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1144 localstatedir=$ac_optarg ;; 1145 1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1147 ac_prev=mandir ;; 1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1149 mandir=$ac_optarg ;; 1150 1151 -nfp | --nfp | --nf) 1152 # Obsolete; use --without-fp. 1153 with_fp=no ;; 1154 1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1156 | --no-cr | --no-c | -n) 1157 no_create=yes ;; 1158 1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1161 no_recursion=yes ;; 1162 1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1165 | --oldin | --oldi | --old | --ol | --o) 1166 ac_prev=oldincludedir ;; 1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1170 oldincludedir=$ac_optarg ;; 1171 1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1173 ac_prev=prefix ;; 1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1175 prefix=$ac_optarg ;; 1176 1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1178 | --program-pre | --program-pr | --program-p) 1179 ac_prev=program_prefix ;; 1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1182 program_prefix=$ac_optarg ;; 1183 1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1185 | --program-suf | --program-su | --program-s) 1186 ac_prev=program_suffix ;; 1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1189 program_suffix=$ac_optarg ;; 1190 1191 -program-transform-name | --program-transform-name \ 1192 | --program-transform-nam | --program-transform-na \ 1193 | --program-transform-n | --program-transform- \ 1194 | --program-transform | --program-transfor \ 1195 | --program-transfo | --program-transf \ 1196 | --program-trans | --program-tran \ 1197 | --progr-tra | --program-tr | --program-t) 1198 ac_prev=program_transform_name ;; 1199 -program-transform-name=* | --program-transform-name=* \ 1200 | --program-transform-nam=* | --program-transform-na=* \ 1201 | --program-transform-n=* | --program-transform-=* \ 1202 | --program-transform=* | --program-transfor=* \ 1203 | --program-transfo=* | --program-transf=* \ 1204 | --program-trans=* | --program-tran=* \ 1205 | --progr-tra=* | --program-tr=* | --program-t=*) 1206 program_transform_name=$ac_optarg ;; 1207 1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1209 ac_prev=pdfdir ;; 1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1211 pdfdir=$ac_optarg ;; 1212 1213 -psdir | --psdir | --psdi | --psd | --ps) 1214 ac_prev=psdir ;; 1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1216 psdir=$ac_optarg ;; 1217 1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1219 | -silent | --silent | --silen | --sile | --sil) 1220 silent=yes ;; 1221 1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1223 ac_prev=sbindir ;; 1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1225 | --sbi=* | --sb=*) 1226 sbindir=$ac_optarg ;; 1227 1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1230 | --sharedst | --shareds | --shared | --share | --shar \ 1231 | --sha | --sh) 1232 ac_prev=sharedstatedir ;; 1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1236 | --sha=* | --sh=*) 1237 sharedstatedir=$ac_optarg ;; 1238 1239 -site | --site | --sit) 1240 ac_prev=site ;; 1241 -site=* | --site=* | --sit=*) 1242 site=$ac_optarg ;; 1243 1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1245 ac_prev=srcdir ;; 1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1247 srcdir=$ac_optarg ;; 1248 1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1250 | --syscon | --sysco | --sysc | --sys | --sy) 1251 ac_prev=sysconfdir ;; 1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1254 sysconfdir=$ac_optarg ;; 1255 1256 -target | --target | --targe | --targ | --tar | --ta | --t) 1257 ac_prev=target_alias ;; 1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1259 target_alias=$ac_optarg ;; 1260 1261 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1262 verbose=yes ;; 1263 1264 -version | --version | --versio | --versi | --vers | -V) 1265 ac_init_version=: ;; 1266 1267 -with-* | --with-*) 1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1269 # Reject names that are not valid shell variable names. 1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1272 { (exit 1); exit 1; }; } 1273 ac_useropt_orig=$ac_useropt 1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1275 case $ac_user_opts in 1276 *" 1277 "with_$ac_useropt" 1278 "*) ;; 1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1280 ac_unrecognized_sep=', ';; 1281 esac 1282 eval with_$ac_useropt=\$ac_optarg ;; 1283 1284 -without-* | --without-*) 1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1286 # Reject names that are not valid shell variable names. 1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1289 { (exit 1); exit 1; }; } 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294 "with_$ac_useropt" 1295 "*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=no ;; 1300 1301 --x) 1302 # Obsolete; use --with-x. 1303 with_x=yes ;; 1304 1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1306 | --x-incl | --x-inc | --x-in | --x-i) 1307 ac_prev=x_includes ;; 1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1310 x_includes=$ac_optarg ;; 1311 1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1314 ac_prev=x_libraries ;; 1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1317 x_libraries=$ac_optarg ;; 1318 1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1320 Try \`$0 --help' for more information." >&2 1321 { (exit 1); exit 1; }; } 1322 ;; 1323 1324 *=*) 1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1326 # Reject names that are not valid shell variable names. 1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1329 { (exit 1); exit 1; }; } 1330 eval $ac_envvar=\$ac_optarg 1331 export $ac_envvar ;; 1332 1333 *) 1334 # FIXME: should be removed in autoconf 3.0. 1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1339 ;; 1340 1341 esac 1342 done 1343 1344 if test -n "$ac_prev"; then 1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1347 { (exit 1); exit 1; }; } 1348 fi 1349 1350 if test -n "$ac_unrecognized_opts"; then 1351 case $enable_option_checking in 1352 no) ;; 1353 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1354 { (exit 1); exit 1; }; } ;; 1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1356 esac 1357 fi 1358 1359 # Check all directory arguments for consistency. 1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1361 datadir sysconfdir sharedstatedir localstatedir includedir \ 1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1363 libdir localedir mandir 1364 do 1365 eval ac_val=\$$ac_var 1366 # Remove trailing slashes. 1367 case $ac_val in 1368 */ ) 1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1370 eval $ac_var=\$ac_val;; 1371 esac 1372 # Be sure to have absolute directory names. 1373 case $ac_val in 1374 [\\/$]* | ?:[\\/]* ) continue;; 1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1376 esac 1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1378 { (exit 1); exit 1; }; } 1379 done 1380 1381 # There might be people who depend on the old broken behavior: `$host' 1382 # used to hold the argument of --host etc. 1383 # FIXME: To remove some day. 1384 build=$build_alias 1385 host=$host_alias 1386 target=$target_alias 1387 1388 # FIXME: To remove some day. 1389 if test "x$host_alias" != x; then 1390 if test "x$build_alias" = x; then 1391 cross_compiling=maybe 1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1393 If a cross compiler is detected then cross compile mode will be used." >&2 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397 fi 1398 1399 ac_tool_prefix= 1400 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402 test "$silent" = yes && exec 6>/dev/null 1403 1404 1405 ac_pwd=`pwd` && test -n "$ac_pwd" && 1406 ac_ls_di=`ls -di .` && 1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1409 { (exit 1); exit 1; }; } 1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1412 { (exit 1); exit 1; }; } 1413 1414 1415 # Find the source files, if location was not specified. 1416 if test -z "$srcdir"; then 1417 ac_srcdir_defaulted=yes 1418 # Try the directory containing this script, then the parent directory. 1419 ac_confdir=`$as_dirname -- "$as_myself" || 1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1421 X"$as_myself" : 'X\(//\)[^/]' \| \ 1422 X"$as_myself" : 'X\(//\)$' \| \ 1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1424 $as_echo X"$as_myself" | 1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1426 s//\1/ 1427 q 1428 } 1429 /^X\(\/\/\)[^/].*/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)$/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\).*/{ 1438 s//\1/ 1439 q 1440 } 1441 s/.*/./; q'` 1442 srcdir=$ac_confdir 1443 if test ! -r "$srcdir/$ac_unique_file"; then 1444 srcdir=.. 1445 fi 1446 else 1447 ac_srcdir_defaulted=no 1448 fi 1449 if test ! -r "$srcdir/$ac_unique_file"; then 1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1452 { (exit 1); exit 1; }; } 1453 fi 1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1455 ac_abs_confdir=`( 1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1457 { (exit 1); exit 1; }; } 1458 pwd)` 1459 # When building in place, set srcdir=. 1460 if test "$ac_abs_confdir" = "$ac_pwd"; then 1461 srcdir=. 1462 fi 1463 # Remove unnecessary trailing slashes from srcdir. 1464 # Double slashes in file names in object file debugging info 1465 # mess up M-x gdb in Emacs. 1466 case $srcdir in 1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1468 esac 1469 for ac_var in $ac_precious_vars; do 1470 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_env_${ac_var}_value=\$${ac_var} 1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1474 done 1475 1476 # 1477 # Report the --help message. 1478 # 1479 if test "$ac_init_help" = "long"; then 1480 # Omit some internal or obsolete options to make the list less imposing. 1481 # This message is too long to be a string in the A/UX 3.1 sh. 1482 cat <<_ACEOF 1483 \`configure' configures netbsd-iscsi 20111006 to adapt to many kinds of systems. 1484 1485 Usage: $0 [OPTION]... [VAR=VALUE]... 1486 1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1488 VAR=VALUE. See below for descriptions of some of the useful variables. 1489 1490 Defaults for the options are specified in brackets. 1491 1492 Configuration: 1493 -h, --help display this help and exit 1494 --help=short display options specific to this package 1495 --help=recursive display the short help of all the included packages 1496 -V, --version display version information and exit 1497 -q, --quiet, --silent do not print \`checking...' messages 1498 --cache-file=FILE cache test results in FILE [disabled] 1499 -C, --config-cache alias for \`--cache-file=config.cache' 1500 -n, --no-create do not create output files 1501 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1502 1503 Installation directories: 1504 --prefix=PREFIX install architecture-independent files in PREFIX 1505 [$ac_default_prefix] 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1507 [PREFIX] 1508 1509 By default, \`make install' will install all the files in 1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1512 for instance \`--prefix=\$HOME'. 1513 1514 For better control, use the options below. 1515 1516 Fine tuning of the installation directories: 1517 --bindir=DIR user executables [EPREFIX/bin] 1518 --sbindir=DIR system admin executables [EPREFIX/sbin] 1519 --libexecdir=DIR program executables [EPREFIX/libexec] 1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/netbsd-iscsi] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536 _ACEOF 1537 1538 cat <<\_ACEOF 1539 1540 Program names: 1541 --program-prefix=PREFIX prepend PREFIX to installed program names 1542 --program-suffix=SUFFIX append SUFFIX to installed program names 1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1544 1545 System types: 1546 --build=BUILD configure for building on BUILD [guessed] 1547 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1548 _ACEOF 1549 fi 1550 1551 if test -n "$ac_init_help"; then 1552 case $ac_init_help in 1553 short | recursive ) echo "Configuration of netbsd-iscsi 20111006:";; 1554 esac 1555 cat <<\_ACEOF 1556 1557 Optional Features: 1558 --disable-option-checking ignore unrecognized --enable/--with options 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1561 --enable-maintainer-mode enable make rules and dependencies not useful 1562 (and sometimes confusing) to the casual installer 1563 --disable-dependency-tracking speeds up one-time build 1564 --enable-dependency-tracking do not reject slow dependency extractors 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 1571 Optional Packages: 1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1575 --with-pic try to use only PIC/non-PIC objects [default=use 1576 both] 1577 --with-tags[=TAGS] include additional configurations [automatic] 1578 1579 Some influential environment variables: 1580 CC C compiler command 1581 CFLAGS C compiler flags 1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1583 nonstandard directory <lib dir> 1584 LIBS libraries to pass to the linker, e.g. -l<library> 1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1586 you have headers in a nonstandard directory <include dir> 1587 CPP C preprocessor 1588 CXX C++ compiler command 1589 CXXFLAGS C++ compiler flags 1590 CXXCPP C++ preprocessor 1591 F77 Fortran 77 compiler command 1592 FFLAGS Fortran 77 compiler flags 1593 1594 Use these variables to override the choices made by `configure' or to help 1595 it to find libraries and programs with nonstandard names/locations. 1596 1597 Report bugs to <Alistair Crooks <agc@NetBSD.org>>. 1598 _ACEOF 1599 ac_status=$? 1600 fi 1601 1602 if test "$ac_init_help" = "recursive"; then 1603 # If there are subdirs, report their specific --help. 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1605 test -d "$ac_dir" || 1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1607 continue 1608 ac_builddir=. 1609 1610 case "$ac_dir" in 1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1612 *) 1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1614 # A ".." for each directory in $ac_dir_suffix. 1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1616 case $ac_top_builddir_sub in 1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1619 esac ;; 1620 esac 1621 ac_abs_top_builddir=$ac_pwd 1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1623 # for backward compatibility: 1624 ac_top_builddir=$ac_top_build_prefix 1625 1626 case $srcdir in 1627 .) # We are building in place. 1628 ac_srcdir=. 1629 ac_top_srcdir=$ac_top_builddir_sub 1630 ac_abs_top_srcdir=$ac_pwd ;; 1631 [\\/]* | ?:[\\/]* ) # Absolute name. 1632 ac_srcdir=$srcdir$ac_dir_suffix; 1633 ac_top_srcdir=$srcdir 1634 ac_abs_top_srcdir=$srcdir ;; 1635 *) # Relative name. 1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1637 ac_top_srcdir=$ac_top_build_prefix$srcdir 1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1639 esac 1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1641 1642 cd "$ac_dir" || { ac_status=$?; continue; } 1643 # Check for guested configure. 1644 if test -f "$ac_srcdir/configure.gnu"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1647 elif test -f "$ac_srcdir/configure"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure" --help=recursive 1650 else 1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1652 fi || ac_status=$? 1653 cd "$ac_pwd" || { ac_status=$?; break; } 1654 done 1655 fi 1656 1657 test -n "$ac_init_help" && exit $ac_status 1658 if $ac_init_version; then 1659 cat <<\_ACEOF 1660 netbsd-iscsi configure 20111006 1661 generated by GNU Autoconf 2.63 1662 1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1664 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1665 This configure script is free software; the Free Software Foundation 1666 gives unlimited permission to copy, distribute and modify it. 1667 _ACEOF 1668 exit 1669 fi 1670 cat >config.log <<_ACEOF 1671 This file contains any messages produced by compilers while 1672 running configure, to aid debugging if configure makes a mistake. 1673 1674 It was created by netbsd-iscsi $as_me 20111006, which was 1675 generated by GNU Autoconf 2.63. Invocation command line was 1676 1677 $ $0 $@ 1678 1679 _ACEOF 1680 exec 5>>config.log 1681 { 1682 cat <<_ASUNAME 1683 ## --------- ## 1684 ## Platform. ## 1685 ## --------- ## 1686 1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1688 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1689 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1690 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1691 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1692 1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1695 1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1703 1704 _ASUNAME 1705 1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1707 for as_dir in $PATH 1708 do 1709 IFS=$as_save_IFS 1710 test -z "$as_dir" && as_dir=. 1711 $as_echo "PATH: $as_dir" 1712 done 1713 IFS=$as_save_IFS 1714 1715 } >&5 1716 1717 cat >&5 <<_ACEOF 1718 1719 1720 ## ----------- ## 1721 ## Core tests. ## 1722 ## ----------- ## 1723 1724 _ACEOF 1725 1726 1727 # Keep a trace of the command line. 1728 # Strip out --no-create and --no-recursion so they do not pile up. 1729 # Strip out --silent because we don't want to record it for future runs. 1730 # Also quote any args containing shell meta-characters. 1731 # Make two passes to allow for proper duplicate-argument suppression. 1732 ac_configure_args= 1733 ac_configure_args0= 1734 ac_configure_args1= 1735 ac_must_keep_next=false 1736 for ac_pass in 1 2 1737 do 1738 for ac_arg 1739 do 1740 case $ac_arg in 1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1743 | -silent | --silent | --silen | --sile | --sil) 1744 continue ;; 1745 *\'*) 1746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 esac 1748 case $ac_pass in 1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1750 2) 1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1752 if test $ac_must_keep_next = true; then 1753 ac_must_keep_next=false # Got value, back to normal. 1754 else 1755 case $ac_arg in 1756 *=* | --config-cache | -C | -disable-* | --disable-* \ 1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1759 | -with-* | --with-* | -without-* | --without-* | --x) 1760 case "$ac_configure_args0 " in 1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1762 esac 1763 ;; 1764 -* ) ac_must_keep_next=true ;; 1765 esac 1766 fi 1767 ac_configure_args="$ac_configure_args '$ac_arg'" 1768 ;; 1769 esac 1770 done 1771 done 1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1774 1775 # When interrupted or exit'd, cleanup temporary files, and complete 1776 # config.log. We remove comments because anyway the quotes in there 1777 # would cause problems or look ugly. 1778 # WARNING: Use '\'' to represent an apostrophe within the trap. 1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1780 trap 'exit_status=$? 1781 # Save into config.log some information that might help in debugging. 1782 { 1783 echo 1784 1785 cat <<\_ASBOX 1786 ## ---------------- ## 1787 ## Cache variables. ## 1788 ## ---------------- ## 1789 _ASBOX 1790 echo 1791 # The following way of writing the cache mishandles newlines in values, 1792 ( 1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1794 eval ac_val=\$$ac_var 1795 case $ac_val in #( 1796 *${as_nl}*) 1797 case $ac_var in #( 1798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1800 esac 1801 case $ac_var in #( 1802 _ | IFS | as_nl) ;; #( 1803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1804 *) $as_unset $ac_var ;; 1805 esac ;; 1806 esac 1807 done 1808 (set) 2>&1 | 1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1810 *${as_nl}ac_space=\ *) 1811 sed -n \ 1812 "s/'\''/'\''\\\\'\'''\''/g; 1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1814 ;; #( 1815 *) 1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1817 ;; 1818 esac | 1819 sort 1820 ) 1821 echo 1822 1823 cat <<\_ASBOX 1824 ## ----------------- ## 1825 ## Output variables. ## 1826 ## ----------------- ## 1827 _ASBOX 1828 echo 1829 for ac_var in $ac_subst_vars 1830 do 1831 eval ac_val=\$$ac_var 1832 case $ac_val in 1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1834 esac 1835 $as_echo "$ac_var='\''$ac_val'\''" 1836 done | sort 1837 echo 1838 1839 if test -n "$ac_subst_files"; then 1840 cat <<\_ASBOX 1841 ## ------------------- ## 1842 ## File substitutions. ## 1843 ## ------------------- ## 1844 _ASBOX 1845 echo 1846 for ac_var in $ac_subst_files 1847 do 1848 eval ac_val=\$$ac_var 1849 case $ac_val in 1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1851 esac 1852 $as_echo "$ac_var='\''$ac_val'\''" 1853 done | sort 1854 echo 1855 fi 1856 1857 if test -s confdefs.h; then 1858 cat <<\_ASBOX 1859 ## ----------- ## 1860 ## confdefs.h. ## 1861 ## ----------- ## 1862 _ASBOX 1863 echo 1864 cat confdefs.h 1865 echo 1866 fi 1867 test "$ac_signal" != 0 && 1868 $as_echo "$as_me: caught signal $ac_signal" 1869 $as_echo "$as_me: exit $exit_status" 1870 } >&5 1871 rm -f core *.core core.conftest.* && 1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1873 exit $exit_status 1874 ' 0 1875 for ac_signal in 1 2 13 15; do 1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1877 done 1878 ac_signal=0 1879 1880 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1881 rm -f -r conftest* confdefs.h 1882 1883 # Predefined preprocessor variables. 1884 1885 cat >>confdefs.h <<_ACEOF 1886 #define PACKAGE_NAME "$PACKAGE_NAME" 1887 _ACEOF 1888 1889 1890 cat >>confdefs.h <<_ACEOF 1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1892 _ACEOF 1893 1894 1895 cat >>confdefs.h <<_ACEOF 1896 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1897 _ACEOF 1898 1899 1900 cat >>confdefs.h <<_ACEOF 1901 #define PACKAGE_STRING "$PACKAGE_STRING" 1902 _ACEOF 1903 1904 1905 cat >>confdefs.h <<_ACEOF 1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1907 _ACEOF 1908 1909 1910 # Let the site file select an alternate cache file if it wants to. 1911 # Prefer an explicitly selected file to automatically selected ones. 1912 ac_site_file1=NONE 1913 ac_site_file2=NONE 1914 if test -n "$CONFIG_SITE"; then 1915 ac_site_file1=$CONFIG_SITE 1916 elif test "x$prefix" != xNONE; then 1917 ac_site_file1=$prefix/share/config.site 1918 ac_site_file2=$prefix/etc/config.site 1919 else 1920 ac_site_file1=$ac_default_prefix/share/config.site 1921 ac_site_file2=$ac_default_prefix/etc/config.site 1922 fi 1923 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1924 do 1925 test "x$ac_site_file" = xNONE && continue 1926 if test -r "$ac_site_file"; then 1927 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1928 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1929 sed 's/^/| /' "$ac_site_file" >&5 1930 . "$ac_site_file" 1931 fi 1932 done 1933 1934 if test -r "$cache_file"; then 1935 # Some versions of bash will fail to source /dev/null (special 1936 # files actually), so we avoid doing that. 1937 if test -f "$cache_file"; then 1938 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1939 $as_echo "$as_me: loading cache $cache_file" >&6;} 1940 case $cache_file in 1941 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1942 *) . "./$cache_file";; 1943 esac 1944 fi 1945 else 1946 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1947 $as_echo "$as_me: creating cache $cache_file" >&6;} 1948 >$cache_file 1949 fi 1950 1951 # Check that the precious variables saved in the cache have kept the same 1952 # value. 1953 ac_cache_corrupted=false 1954 for ac_var in $ac_precious_vars; do 1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1956 eval ac_new_set=\$ac_env_${ac_var}_set 1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1958 eval ac_new_val=\$ac_env_${ac_var}_value 1959 case $ac_old_set,$ac_new_set in 1960 set,) 1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1963 ac_cache_corrupted=: ;; 1964 ,set) 1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1967 ac_cache_corrupted=: ;; 1968 ,);; 1969 *) 1970 if test "x$ac_old_val" != "x$ac_new_val"; then 1971 # differences in whitespace do not lead to failure. 1972 ac_old_val_w=`echo x $ac_old_val` 1973 ac_new_val_w=`echo x $ac_new_val` 1974 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1977 ac_cache_corrupted=: 1978 else 1979 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1981 eval $ac_var=\$ac_old_val 1982 fi 1983 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1985 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1987 fi;; 1988 esac 1989 # Pass precious variables to config.status. 1990 if test "$ac_new_set" = set; then 1991 case $ac_new_val in 1992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1993 *) ac_arg=$ac_var=$ac_new_val ;; 1994 esac 1995 case " $ac_configure_args " in 1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1998 esac 1999 fi 2000 done 2001 if $ac_cache_corrupted; then 2002 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2008 { (exit 1); exit 1; }; } 2009 fi 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 ac_ext=c 2036 ac_cpp='$CPP $CPPFLAGS' 2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2040 2041 2042 2043 2044 ac_aux_dir= 2045 for ac_dir in buildaux "$srcdir"/buildaux; do 2046 if test -f "$ac_dir/install-sh"; then 2047 ac_aux_dir=$ac_dir 2048 ac_install_sh="$ac_aux_dir/install-sh -c" 2049 break 2050 elif test -f "$ac_dir/install.sh"; then 2051 ac_aux_dir=$ac_dir 2052 ac_install_sh="$ac_aux_dir/install.sh -c" 2053 break 2054 elif test -f "$ac_dir/shtool"; then 2055 ac_aux_dir=$ac_dir 2056 ac_install_sh="$ac_aux_dir/shtool install -c" 2057 break 2058 fi 2059 done 2060 if test -z "$ac_aux_dir"; then 2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&5 2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&2;} 2063 { (exit 1); exit 1; }; } 2064 fi 2065 2066 # These three variables are undocumented and unsupported, 2067 # and are intended to be withdrawn in a future Autoconf release. 2068 # They can cause serious problems if a builder's source tree is in a directory 2069 # whose full name contains unusual characters. 2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2073 2074 2075 ac_config_headers="$ac_config_headers include/config.h" 2076 2077 2078 ## --------------------- ## 2079 ## M4sh Initialization. ## 2080 ## --------------------- ## 2081 2082 # Be more Bourne compatible 2083 DUALCASE=1; export DUALCASE # for MKS sh 2084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2085 emulate sh 2086 NULLCMD=: 2087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2088 # is contrary to our usage. Disable this feature. 2089 alias -g '${1+"$@"}'='"$@"' 2090 setopt NO_GLOB_SUBST 2091 else 2092 case `(set -o) 2>/dev/null` in 2093 *posix*) set -o posix ;; 2094 esac 2095 2096 fi 2097 2098 2099 2100 2101 # PATH needs CR 2102 # Avoid depending upon Character Ranges. 2103 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2106 as_cr_digits='0123456789' 2107 as_cr_alnum=$as_cr_Letters$as_cr_digits 2108 2109 as_nl=' 2110 ' 2111 export as_nl 2112 # Printing a long string crashes Solaris 7 /usr/bin/printf. 2113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 2115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 2116 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 2117 as_echo='printf %s\n' 2118 as_echo_n='printf %s' 2119 else 2120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 2121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 2122 as_echo_n='/usr/ucb/echo -n' 2123 else 2124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 2125 as_echo_n_body='eval 2126 arg=$1; 2127 case $arg in 2128 *"$as_nl"*) 2129 expr "X$arg" : "X\\(.*\\)$as_nl"; 2130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 2131 esac; 2132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 2133 ' 2134 export as_echo_n_body 2135 as_echo_n='sh -c $as_echo_n_body as_echo' 2136 fi 2137 export as_echo_body 2138 as_echo='sh -c $as_echo_body as_echo' 2139 fi 2140 2141 # The user is always right. 2142 if test "${PATH_SEPARATOR+set}" != set; then 2143 PATH_SEPARATOR=: 2144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 2145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 2146 PATH_SEPARATOR=';' 2147 } 2148 fi 2149 2150 # Support unset when possible. 2151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2152 as_unset=unset 2153 else 2154 as_unset=false 2155 fi 2156 2157 2158 # IFS 2159 # We need space, tab and new line, in precisely that order. Quoting is 2160 # there to prevent editors from complaining about space-tab. 2161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 2162 # splitting by setting IFS to empty value.) 2163 IFS=" "" $as_nl" 2164 2165 # Find who we are. Look in the path if we contain no directory separator. 2166 case $0 in 2167 *[\\/]* ) as_myself=$0 ;; 2168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2169 for as_dir in $PATH 2170 do 2171 IFS=$as_save_IFS 2172 test -z "$as_dir" && as_dir=. 2173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2174 done 2175 IFS=$as_save_IFS 2176 2177 ;; 2178 esac 2179 # We did not find ourselves, most probably we were run as `sh COMMAND' 2180 # in which case we are not to be found in the path. 2181 if test "x$as_myself" = x; then 2182 as_myself=$0 2183 fi 2184 if test ! -f "$as_myself"; then 2185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2186 { (exit 1); exit 1; } 2187 fi 2188 2189 # Work around bugs in pre-3.0 UWIN ksh. 2190 for as_var in ENV MAIL MAILPATH 2191 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2192 done 2193 PS1='$ ' 2194 PS2='> ' 2195 PS4='+ ' 2196 2197 # NLS nuisances. 2198 LC_ALL=C 2199 export LC_ALL 2200 LANGUAGE=C 2201 export LANGUAGE 2202 2203 # Required to use basename. 2204 if expr a : '\(a\)' >/dev/null 2>&1 && 2205 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2206 as_expr=expr 2207 else 2208 as_expr=false 2209 fi 2210 2211 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2212 as_basename=basename 2213 else 2214 as_basename=false 2215 fi 2216 2217 2218 # Name of the executable. 2219 as_me=`$as_basename -- "$0" || 2220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2221 X"$0" : 'X\(//\)$' \| \ 2222 X"$0" : 'X\(/\)' \| . 2>/dev/null || 2223 $as_echo X/"$0" | 2224 sed '/^.*\/\([^/][^/]*\)\/*$/{ 2225 s//\1/ 2226 q 2227 } 2228 /^X\/\(\/\/\)$/{ 2229 s//\1/ 2230 q 2231 } 2232 /^X\/\(\/\).*/{ 2233 s//\1/ 2234 q 2235 } 2236 s/.*/./; q'` 2237 2238 # CDPATH. 2239 $as_unset CDPATH 2240 2241 2242 am__api_version='1.10' 2243 2244 # Find a good install program. We prefer a C program (faster), 2245 # so one script is as good as another. But avoid the broken or 2246 # incompatible versions: 2247 # SysV /etc/install, /usr/sbin/install 2248 # SunOS /usr/etc/install 2249 # IRIX /sbin/install 2250 # AIX /bin/install 2251 # AmigaOS /C/install, which installs bootblocks on floppy discs 2252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2255 # OS/2's system install, which has a completely different semantic 2256 # ./install, which can be erroneously created by make from ./install.sh. 2257 # Reject install programs that cannot install multiple files. 2258 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2259 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2260 if test -z "$INSTALL"; then 2261 if test "${ac_cv_path_install+set}" = set; then 2262 $as_echo_n "(cached) " >&6 2263 else 2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2265 for as_dir in $PATH 2266 do 2267 IFS=$as_save_IFS 2268 test -z "$as_dir" && as_dir=. 2269 # Account for people who put trailing slashes in PATH elements. 2270 case $as_dir/ in 2271 ./ | .// | /cC/* | \ 2272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2273 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2274 /usr/ucb/* ) ;; 2275 *) 2276 # OSF1 and SCO ODT 3.0 have their own names for install. 2277 # Don't use installbsd from OSF since it installs stuff as root 2278 # by default. 2279 for ac_prog in ginstall scoinst install; do 2280 for ac_exec_ext in '' $ac_executable_extensions; do 2281 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2282 if test $ac_prog = install && 2283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2284 # AIX install. It has an incompatible calling convention. 2285 : 2286 elif test $ac_prog = install && 2287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2288 # program-specific install script used by HP pwplus--don't use. 2289 : 2290 else 2291 rm -rf conftest.one conftest.two conftest.dir 2292 echo one > conftest.one 2293 echo two > conftest.two 2294 mkdir conftest.dir 2295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2296 test -s conftest.one && test -s conftest.two && 2297 test -s conftest.dir/conftest.one && 2298 test -s conftest.dir/conftest.two 2299 then 2300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2301 break 3 2302 fi 2303 fi 2304 fi 2305 done 2306 done 2307 ;; 2308 esac 2309 2310 done 2311 IFS=$as_save_IFS 2312 2313 rm -rf conftest.one conftest.two conftest.dir 2314 2315 fi 2316 if test "${ac_cv_path_install+set}" = set; then 2317 INSTALL=$ac_cv_path_install 2318 else 2319 # As a last resort, use the slow shell script. Don't cache a 2320 # value for INSTALL within a source directory, because that will 2321 # break other packages using the cache if that directory is 2322 # removed, or if the value is a relative name. 2323 INSTALL=$ac_install_sh 2324 fi 2325 fi 2326 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2327 $as_echo "$INSTALL" >&6; } 2328 2329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2330 # It thinks the first close brace ends the variable substitution. 2331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2332 2333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2334 2335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2336 2337 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2338 $as_echo_n "checking whether build environment is sane... " >&6; } 2339 # Just in case 2340 sleep 1 2341 echo timestamp > conftest.file 2342 # Do `set' in a subshell so we don't clobber the current shell's 2343 # arguments. Must try -L first in case configure is actually a 2344 # symlink; some systems play weird games with the mod time of symlinks 2345 # (eg FreeBSD returns the mod time of the symlink's containing 2346 # directory). 2347 if ( 2348 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2349 if test "$*" = "X"; then 2350 # -L didn't work. 2351 set X `ls -t $srcdir/configure conftest.file` 2352 fi 2353 rm -f conftest.file 2354 if test "$*" != "X $srcdir/configure conftest.file" \ 2355 && test "$*" != "X conftest.file $srcdir/configure"; then 2356 2357 # If neither matched, then we have a broken ls. This can happen 2358 # if, for instance, CONFIG_SHELL is bash and it inherits a 2359 # broken ls alias from the environment. This has actually 2360 # happened. Such a system could not be considered "sane". 2361 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2362 alias in your environment" >&5 2363 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2364 alias in your environment" >&2;} 2365 { (exit 1); exit 1; }; } 2366 fi 2367 2368 test "$2" = conftest.file 2369 ) 2370 then 2371 # Ok. 2372 : 2373 else 2374 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2375 Check your system clock" >&5 2376 $as_echo "$as_me: error: newly created file is older than distributed files! 2377 Check your system clock" >&2;} 2378 { (exit 1); exit 1; }; } 2379 fi 2380 { $as_echo "$as_me:$LINENO: result: yes" >&5 2381 $as_echo "yes" >&6; } 2382 test "$program_prefix" != NONE && 2383 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2384 # Use a double $ so make ignores it. 2385 test "$program_suffix" != NONE && 2386 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2387 # Double any \ or $. 2388 # By default was `s,x,x', remove it if useless. 2389 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2390 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2391 2392 # expand $ac_aux_dir to an absolute path 2393 am_aux_dir=`cd $ac_aux_dir && pwd` 2394 2395 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2396 # Use eval to expand $SHELL 2397 if eval "$MISSING --run true"; then 2398 am_missing_run="$MISSING --run " 2399 else 2400 am_missing_run= 2401 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2403 fi 2404 2405 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2406 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2407 if test -z "$MKDIR_P"; then 2408 if test "${ac_cv_path_mkdir+set}" = set; then 2409 $as_echo_n "(cached) " >&6 2410 else 2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2413 do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_prog in mkdir gmkdir; do 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2419 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2420 'mkdir (GNU coreutils) '* | \ 2421 'mkdir (coreutils) '* | \ 2422 'mkdir (fileutils) '4.1*) 2423 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2424 break 3;; 2425 esac 2426 done 2427 done 2428 done 2429 IFS=$as_save_IFS 2430 2431 fi 2432 2433 if test "${ac_cv_path_mkdir+set}" = set; then 2434 MKDIR_P="$ac_cv_path_mkdir -p" 2435 else 2436 # As a last resort, use the slow shell script. Don't cache a 2437 # value for MKDIR_P within a source directory, because that will 2438 # break other packages using the cache if that directory is 2439 # removed, or if the value is a relative name. 2440 test -d ./--version && rmdir ./--version 2441 MKDIR_P="$ac_install_sh -d" 2442 fi 2443 fi 2444 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2445 $as_echo "$MKDIR_P" >&6; } 2446 2447 mkdir_p="$MKDIR_P" 2448 case $mkdir_p in 2449 [\\/$]* | ?:[\\/]*) ;; 2450 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2451 esac 2452 2453 for ac_prog in gawk mawk nawk awk 2454 do 2455 # Extract the first word of "$ac_prog", so it can be a program name with args. 2456 set dummy $ac_prog; ac_word=$2 2457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2458 $as_echo_n "checking for $ac_word... " >&6; } 2459 if test "${ac_cv_prog_AWK+set}" = set; then 2460 $as_echo_n "(cached) " >&6 2461 else 2462 if test -n "$AWK"; then 2463 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2464 else 2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466 for as_dir in $PATH 2467 do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_AWK="$ac_prog" 2473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476 done 2477 done 2478 IFS=$as_save_IFS 2479 2480 fi 2481 fi 2482 AWK=$ac_cv_prog_AWK 2483 if test -n "$AWK"; then 2484 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2485 $as_echo "$AWK" >&6; } 2486 else 2487 { $as_echo "$as_me:$LINENO: result: no" >&5 2488 $as_echo "no" >&6; } 2489 fi 2490 2491 2492 test -n "$AWK" && break 2493 done 2494 2495 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2496 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2497 set x ${MAKE-make} 2498 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2499 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2500 $as_echo_n "(cached) " >&6 2501 else 2502 cat >conftest.make <<\_ACEOF 2503 SHELL = /bin/sh 2504 all: 2505 @echo '@@@%%%=$(MAKE)=@@@%%%' 2506 _ACEOF 2507 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2508 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2509 *@@@%%%=?*=@@@%%%*) 2510 eval ac_cv_prog_make_${ac_make}_set=yes;; 2511 *) 2512 eval ac_cv_prog_make_${ac_make}_set=no;; 2513 esac 2514 rm -f conftest.make 2515 fi 2516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2517 { $as_echo "$as_me:$LINENO: result: yes" >&5 2518 $as_echo "yes" >&6; } 2519 SET_MAKE= 2520 else 2521 { $as_echo "$as_me:$LINENO: result: no" >&5 2522 $as_echo "no" >&6; } 2523 SET_MAKE="MAKE=${MAKE-make}" 2524 fi 2525 2526 rm -rf .tst 2>/dev/null 2527 mkdir .tst 2>/dev/null 2528 if test -d .tst; then 2529 am__leading_dot=. 2530 else 2531 am__leading_dot=_ 2532 fi 2533 rmdir .tst 2>/dev/null 2534 2535 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2536 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2537 # is not polluted with repeated "-I." 2538 am__isrc=' -I$(srcdir)' 2539 # test to see if srcdir already configured 2540 if test -f $srcdir/config.status; then 2541 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2542 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2543 { (exit 1); exit 1; }; } 2544 fi 2545 fi 2546 2547 # test whether we have cygpath 2548 if test -z "$CYGPATH_W"; then 2549 if (cygpath --version) >/dev/null 2>/dev/null; then 2550 CYGPATH_W='cygpath -w' 2551 else 2552 CYGPATH_W=echo 2553 fi 2554 fi 2555 2556 2557 # Define the identity of the package. 2558 PACKAGE='netbsd-iscsi' 2559 VERSION='20111006' 2560 2561 2562 cat >>confdefs.h <<_ACEOF 2563 #define PACKAGE "$PACKAGE" 2564 _ACEOF 2565 2566 2567 cat >>confdefs.h <<_ACEOF 2568 #define VERSION "$VERSION" 2569 _ACEOF 2570 2571 # Some tools Automake needs. 2572 2573 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2574 2575 2576 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2577 2578 2579 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2580 2581 2582 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2583 2584 2585 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2586 2587 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2588 2589 # Installed binaries are usually stripped using `strip' when the user 2590 # run `make install-strip'. However `strip' might not be the right 2591 # tool to use in cross-compilation environments, therefore Automake 2592 # will honor the `STRIP' environment variable to overrule this program. 2593 if test "$cross_compiling" != no; then 2594 if test -n "$ac_tool_prefix"; then 2595 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2596 set dummy ${ac_tool_prefix}strip; ac_word=$2 2597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2598 $as_echo_n "checking for $ac_word... " >&6; } 2599 if test "${ac_cv_prog_STRIP+set}" = set; then 2600 $as_echo_n "(cached) " >&6 2601 else 2602 if test -n "$STRIP"; then 2603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2604 else 2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606 for as_dir in $PATH 2607 do 2608 IFS=$as_save_IFS 2609 test -z "$as_dir" && as_dir=. 2610 for ac_exec_ext in '' $ac_executable_extensions; do 2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2612 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2614 break 2 2615 fi 2616 done 2617 done 2618 IFS=$as_save_IFS 2619 2620 fi 2621 fi 2622 STRIP=$ac_cv_prog_STRIP 2623 if test -n "$STRIP"; then 2624 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2625 $as_echo "$STRIP" >&6; } 2626 else 2627 { $as_echo "$as_me:$LINENO: result: no" >&5 2628 $as_echo "no" >&6; } 2629 fi 2630 2631 2632 fi 2633 if test -z "$ac_cv_prog_STRIP"; then 2634 ac_ct_STRIP=$STRIP 2635 # Extract the first word of "strip", so it can be a program name with args. 2636 set dummy strip; ac_word=$2 2637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2638 $as_echo_n "checking for $ac_word... " >&6; } 2639 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2640 $as_echo_n "(cached) " >&6 2641 else 2642 if test -n "$ac_ct_STRIP"; then 2643 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2644 else 2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2646 for as_dir in $PATH 2647 do 2648 IFS=$as_save_IFS 2649 test -z "$as_dir" && as_dir=. 2650 for ac_exec_ext in '' $ac_executable_extensions; do 2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2652 ac_cv_prog_ac_ct_STRIP="strip" 2653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2654 break 2 2655 fi 2656 done 2657 done 2658 IFS=$as_save_IFS 2659 2660 fi 2661 fi 2662 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2663 if test -n "$ac_ct_STRIP"; then 2664 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2665 $as_echo "$ac_ct_STRIP" >&6; } 2666 else 2667 { $as_echo "$as_me:$LINENO: result: no" >&5 2668 $as_echo "no" >&6; } 2669 fi 2670 2671 if test "x$ac_ct_STRIP" = x; then 2672 STRIP=":" 2673 else 2674 case $cross_compiling:$ac_tool_warned in 2675 yes:) 2676 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2678 ac_tool_warned=yes ;; 2679 esac 2680 STRIP=$ac_ct_STRIP 2681 fi 2682 else 2683 STRIP="$ac_cv_prog_STRIP" 2684 fi 2685 2686 fi 2687 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2688 2689 # We need awk for the "check" target. The system "awk" is bad on 2690 # some platforms. 2691 # Always define AMTAR for backward compatibility. 2692 2693 AMTAR=${AMTAR-"${am_missing_run}tar"} 2694 2695 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2696 2697 2698 2699 2700 2701 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2702 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2703 # Check whether --enable-maintainer-mode was given. 2704 if test "${enable_maintainer_mode+set}" = set; then 2705 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2706 else 2707 USE_MAINTAINER_MODE=no 2708 fi 2709 2710 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2711 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2712 if test $USE_MAINTAINER_MODE = yes; then 2713 MAINTAINER_MODE_TRUE= 2714 MAINTAINER_MODE_FALSE='#' 2715 else 2716 MAINTAINER_MODE_TRUE='#' 2717 MAINTAINER_MODE_FALSE= 2718 fi 2719 2720 MAINT=$MAINTAINER_MODE_TRUE 2721 2722 2723 2724 # Make sure we can run config.sub. 2725 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2726 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2727 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2728 { (exit 1); exit 1; }; } 2729 2730 { $as_echo "$as_me:$LINENO: checking build system type" >&5 2731 $as_echo_n "checking build system type... " >&6; } 2732 if test "${ac_cv_build+set}" = set; then 2733 $as_echo_n "(cached) " >&6 2734 else 2735 ac_build_alias=$build_alias 2736 test "x$ac_build_alias" = x && 2737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2738 test "x$ac_build_alias" = x && 2739 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2740 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2741 { (exit 1); exit 1; }; } 2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2743 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2744 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2745 { (exit 1); exit 1; }; } 2746 2747 fi 2748 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2749 $as_echo "$ac_cv_build" >&6; } 2750 case $ac_cv_build in 2751 *-*-*) ;; 2752 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2753 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 2754 { (exit 1); exit 1; }; };; 2755 esac 2756 build=$ac_cv_build 2757 ac_save_IFS=$IFS; IFS='-' 2758 set x $ac_cv_build 2759 shift 2760 build_cpu=$1 2761 build_vendor=$2 2762 shift; shift 2763 # Remember, the first character of IFS is used to create $*, 2764 # except with old shells: 2765 build_os=$* 2766 IFS=$ac_save_IFS 2767 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2768 2769 2770 { $as_echo "$as_me:$LINENO: checking host system type" >&5 2771 $as_echo_n "checking host system type... " >&6; } 2772 if test "${ac_cv_host+set}" = set; then 2773 $as_echo_n "(cached) " >&6 2774 else 2775 if test "x$host_alias" = x; then 2776 ac_cv_host=$ac_cv_build 2777 else 2778 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2779 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2780 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2781 { (exit 1); exit 1; }; } 2782 fi 2783 2784 fi 2785 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2786 $as_echo "$ac_cv_host" >&6; } 2787 case $ac_cv_host in 2788 *-*-*) ;; 2789 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2790 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 2791 { (exit 1); exit 1; }; };; 2792 esac 2793 host=$ac_cv_host 2794 ac_save_IFS=$IFS; IFS='-' 2795 set x $ac_cv_host 2796 shift 2797 host_cpu=$1 2798 host_vendor=$2 2799 shift; shift 2800 # Remember, the first character of IFS is used to create $*, 2801 # except with old shells: 2802 host_os=$* 2803 IFS=$ac_save_IFS 2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2805 2806 2807 CANONICAL_HOST=$host 2808 2809 2810 # Find a good install program. We prefer a C program (faster), 2811 # so one script is as good as another. But avoid the broken or 2812 # incompatible versions: 2813 # SysV /etc/install, /usr/sbin/install 2814 # SunOS /usr/etc/install 2815 # IRIX /sbin/install 2816 # AIX /bin/install 2817 # AmigaOS /C/install, which installs bootblocks on floppy discs 2818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2821 # OS/2's system install, which has a completely different semantic 2822 # ./install, which can be erroneously created by make from ./install.sh. 2823 # Reject install programs that cannot install multiple files. 2824 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2825 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2826 if test -z "$INSTALL"; then 2827 if test "${ac_cv_path_install+set}" = set; then 2828 $as_echo_n "(cached) " >&6 2829 else 2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831 for as_dir in $PATH 2832 do 2833 IFS=$as_save_IFS 2834 test -z "$as_dir" && as_dir=. 2835 # Account for people who put trailing slashes in PATH elements. 2836 case $as_dir/ in 2837 ./ | .// | /cC/* | \ 2838 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2839 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2840 /usr/ucb/* ) ;; 2841 *) 2842 # OSF1 and SCO ODT 3.0 have their own names for install. 2843 # Don't use installbsd from OSF since it installs stuff as root 2844 # by default. 2845 for ac_prog in ginstall scoinst install; do 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2848 if test $ac_prog = install && 2849 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2850 # AIX install. It has an incompatible calling convention. 2851 : 2852 elif test $ac_prog = install && 2853 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2854 # program-specific install script used by HP pwplus--don't use. 2855 : 2856 else 2857 rm -rf conftest.one conftest.two conftest.dir 2858 echo one > conftest.one 2859 echo two > conftest.two 2860 mkdir conftest.dir 2861 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2862 test -s conftest.one && test -s conftest.two && 2863 test -s conftest.dir/conftest.one && 2864 test -s conftest.dir/conftest.two 2865 then 2866 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2867 break 3 2868 fi 2869 fi 2870 fi 2871 done 2872 done 2873 ;; 2874 esac 2875 2876 done 2877 IFS=$as_save_IFS 2878 2879 rm -rf conftest.one conftest.two conftest.dir 2880 2881 fi 2882 if test "${ac_cv_path_install+set}" = set; then 2883 INSTALL=$ac_cv_path_install 2884 else 2885 # As a last resort, use the slow shell script. Don't cache a 2886 # value for INSTALL within a source directory, because that will 2887 # break other packages using the cache if that directory is 2888 # removed, or if the value is a relative name. 2889 INSTALL=$ac_install_sh 2890 fi 2891 fi 2892 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2893 $as_echo "$INSTALL" >&6; } 2894 2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2896 # It thinks the first close brace ends the variable substitution. 2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2898 2899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2900 2901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2902 2903 ac_ext=c 2904 ac_cpp='$CPP $CPPFLAGS' 2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2908 if test -n "$ac_tool_prefix"; then 2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2912 $as_echo_n "checking for $ac_word... " >&6; } 2913 if test "${ac_cv_prog_CC+set}" = set; then 2914 $as_echo_n "(cached) " >&6 2915 else 2916 if test -n "$CC"; then 2917 ac_cv_prog_CC="$CC" # Let the user override the test. 2918 else 2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920 for as_dir in $PATH 2921 do 2922 IFS=$as_save_IFS 2923 test -z "$as_dir" && as_dir=. 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2926 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930 done 2931 done 2932 IFS=$as_save_IFS 2933 2934 fi 2935 fi 2936 CC=$ac_cv_prog_CC 2937 if test -n "$CC"; then 2938 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2939 $as_echo "$CC" >&6; } 2940 else 2941 { $as_echo "$as_me:$LINENO: result: no" >&5 2942 $as_echo "no" >&6; } 2943 fi 2944 2945 2946 fi 2947 if test -z "$ac_cv_prog_CC"; then 2948 ac_ct_CC=$CC 2949 # Extract the first word of "gcc", so it can be a program name with args. 2950 set dummy gcc; ac_word=$2 2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2952 $as_echo_n "checking for $ac_word... " >&6; } 2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2954 $as_echo_n "(cached) " >&6 2955 else 2956 if test -n "$ac_ct_CC"; then 2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2958 else 2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960 for as_dir in $PATH 2961 do 2962 IFS=$as_save_IFS 2963 test -z "$as_dir" && as_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2966 ac_cv_prog_ac_ct_CC="gcc" 2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970 done 2971 done 2972 IFS=$as_save_IFS 2973 2974 fi 2975 fi 2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2977 if test -n "$ac_ct_CC"; then 2978 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2979 $as_echo "$ac_ct_CC" >&6; } 2980 else 2981 { $as_echo "$as_me:$LINENO: result: no" >&5 2982 $as_echo "no" >&6; } 2983 fi 2984 2985 if test "x$ac_ct_CC" = x; then 2986 CC="" 2987 else 2988 case $cross_compiling:$ac_tool_warned in 2989 yes:) 2990 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2992 ac_tool_warned=yes ;; 2993 esac 2994 CC=$ac_ct_CC 2995 fi 2996 else 2997 CC="$ac_cv_prog_CC" 2998 fi 2999 3000 if test -z "$CC"; then 3001 if test -n "$ac_tool_prefix"; then 3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3003 set dummy ${ac_tool_prefix}cc; ac_word=$2 3004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3005 $as_echo_n "checking for $ac_word... " >&6; } 3006 if test "${ac_cv_prog_CC+set}" = set; then 3007 $as_echo_n "(cached) " >&6 3008 else 3009 if test -n "$CC"; then 3010 ac_cv_prog_CC="$CC" # Let the user override the test. 3011 else 3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013 for as_dir in $PATH 3014 do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3019 ac_cv_prog_CC="${ac_tool_prefix}cc" 3020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023 done 3024 done 3025 IFS=$as_save_IFS 3026 3027 fi 3028 fi 3029 CC=$ac_cv_prog_CC 3030 if test -n "$CC"; then 3031 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3032 $as_echo "$CC" >&6; } 3033 else 3034 { $as_echo "$as_me:$LINENO: result: no" >&5 3035 $as_echo "no" >&6; } 3036 fi 3037 3038 3039 fi 3040 fi 3041 if test -z "$CC"; then 3042 # Extract the first word of "cc", so it can be a program name with args. 3043 set dummy cc; ac_word=$2 3044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3045 $as_echo_n "checking for $ac_word... " >&6; } 3046 if test "${ac_cv_prog_CC+set}" = set; then 3047 $as_echo_n "(cached) " >&6 3048 else 3049 if test -n "$CC"; then 3050 ac_cv_prog_CC="$CC" # Let the user override the test. 3051 else 3052 ac_prog_rejected=no 3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054 for as_dir in $PATH 3055 do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3061 ac_prog_rejected=yes 3062 continue 3063 fi 3064 ac_cv_prog_CC="cc" 3065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068 done 3069 done 3070 IFS=$as_save_IFS 3071 3072 if test $ac_prog_rejected = yes; then 3073 # We found a bogon in the path, so make sure we never use it. 3074 set dummy $ac_cv_prog_CC 3075 shift 3076 if test $# != 0; then 3077 # We chose a different compiler from the bogus one. 3078 # However, it has the same basename, so the bogon will be chosen 3079 # first if we set CC to just the basename; use the full file name. 3080 shift 3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3082 fi 3083 fi 3084 fi 3085 fi 3086 CC=$ac_cv_prog_CC 3087 if test -n "$CC"; then 3088 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3089 $as_echo "$CC" >&6; } 3090 else 3091 { $as_echo "$as_me:$LINENO: result: no" >&5 3092 $as_echo "no" >&6; } 3093 fi 3094 3095 3096 fi 3097 if test -z "$CC"; then 3098 if test -n "$ac_tool_prefix"; then 3099 for ac_prog in cl.exe 3100 do 3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3104 $as_echo_n "checking for $ac_word... " >&6; } 3105 if test "${ac_cv_prog_CC+set}" = set; then 3106 $as_echo_n "(cached) " >&6 3107 else 3108 if test -n "$CC"; then 3109 ac_cv_prog_CC="$CC" # Let the user override the test. 3110 else 3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112 for as_dir in $PATH 3113 do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122 done 3123 done 3124 IFS=$as_save_IFS 3125 3126 fi 3127 fi 3128 CC=$ac_cv_prog_CC 3129 if test -n "$CC"; then 3130 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3131 $as_echo "$CC" >&6; } 3132 else 3133 { $as_echo "$as_me:$LINENO: result: no" >&5 3134 $as_echo "no" >&6; } 3135 fi 3136 3137 3138 test -n "$CC" && break 3139 done 3140 fi 3141 if test -z "$CC"; then 3142 ac_ct_CC=$CC 3143 for ac_prog in cl.exe 3144 do 3145 # Extract the first word of "$ac_prog", so it can be a program name with args. 3146 set dummy $ac_prog; ac_word=$2 3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3148 $as_echo_n "checking for $ac_word... " >&6; } 3149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3150 $as_echo_n "(cached) " >&6 3151 else 3152 if test -n "$ac_ct_CC"; then 3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3154 else 3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156 for as_dir in $PATH 3157 do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3162 ac_cv_prog_ac_ct_CC="$ac_prog" 3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166 done 3167 done 3168 IFS=$as_save_IFS 3169 3170 fi 3171 fi 3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3173 if test -n "$ac_ct_CC"; then 3174 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3175 $as_echo "$ac_ct_CC" >&6; } 3176 else 3177 { $as_echo "$as_me:$LINENO: result: no" >&5 3178 $as_echo "no" >&6; } 3179 fi 3180 3181 3182 test -n "$ac_ct_CC" && break 3183 done 3184 3185 if test "x$ac_ct_CC" = x; then 3186 CC="" 3187 else 3188 case $cross_compiling:$ac_tool_warned in 3189 yes:) 3190 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3192 ac_tool_warned=yes ;; 3193 esac 3194 CC=$ac_ct_CC 3195 fi 3196 fi 3197 3198 fi 3199 3200 3201 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3203 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3204 See \`config.log' for more details." >&5 3205 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3206 See \`config.log' for more details." >&2;} 3207 { (exit 1); exit 1; }; }; } 3208 3209 # Provide some information about the compiler. 3210 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3211 set X $ac_compile 3212 ac_compiler=$2 3213 { (ac_try="$ac_compiler --version >&5" 3214 case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217 esac 3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3219 $as_echo "$ac_try_echo") >&5 3220 (eval "$ac_compiler --version >&5") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); } 3224 { (ac_try="$ac_compiler -v >&5" 3225 case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228 esac 3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3230 $as_echo "$ac_try_echo") >&5 3231 (eval "$ac_compiler -v >&5") 2>&5 3232 ac_status=$? 3233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } 3235 { (ac_try="$ac_compiler -V >&5" 3236 case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239 esac 3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3241 $as_echo "$ac_try_echo") >&5 3242 (eval "$ac_compiler -V >&5") 2>&5 3243 ac_status=$? 3244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3245 (exit $ac_status); } 3246 3247 cat >conftest.$ac_ext <<_ACEOF 3248 /* confdefs.h. */ 3249 _ACEOF 3250 cat confdefs.h >>conftest.$ac_ext 3251 cat >>conftest.$ac_ext <<_ACEOF 3252 /* end confdefs.h. */ 3253 3254 int 3255 main () 3256 { 3257 3258 ; 3259 return 0; 3260 } 3261 _ACEOF 3262 ac_clean_files_save=$ac_clean_files 3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3264 # Try to create an executable without -o first, disregard a.out. 3265 # It will help us diagnose broken compilers, and finding out an intuition 3266 # of exeext. 3267 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3268 $as_echo_n "checking for C compiler default output file name... " >&6; } 3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3270 3271 # The possible output files: 3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3273 3274 ac_rmfiles= 3275 for ac_file in $ac_files 3276 do 3277 case $ac_file in 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3280 esac 3281 done 3282 rm -f $ac_rmfiles 3283 3284 if { (ac_try="$ac_link_default" 3285 case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288 esac 3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3290 $as_echo "$ac_try_echo") >&5 3291 (eval "$ac_link_default") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); }; then 3295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3297 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3298 # so that the user can short-circuit this test for compilers unknown to 3299 # Autoconf. 3300 for ac_file in $ac_files '' 3301 do 3302 test -f "$ac_file" || continue 3303 case $ac_file in 3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3305 ;; 3306 [ab].out ) 3307 # We found the default executable, but exeext='' is most 3308 # certainly right. 3309 break;; 3310 *.* ) 3311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3312 then :; else 3313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3314 fi 3315 # We set ac_cv_exeext here because the later test for it is not 3316 # safe: cross compilers may not add the suffix if given an `-o' 3317 # argument, so we may need to know it at that point already. 3318 # Even if this section looks crufty: it has the advantage of 3319 # actually working. 3320 break;; 3321 * ) 3322 break;; 3323 esac 3324 done 3325 test "$ac_cv_exeext" = no && ac_cv_exeext= 3326 3327 else 3328 ac_file='' 3329 fi 3330 3331 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3332 $as_echo "$ac_file" >&6; } 3333 if test -z "$ac_file"; then 3334 $as_echo "$as_me: failed program was:" >&5 3335 sed 's/^/| /' conftest.$ac_ext >&5 3336 3337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3339 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3340 See \`config.log' for more details." >&5 3341 $as_echo "$as_me: error: C compiler cannot create executables 3342 See \`config.log' for more details." >&2;} 3343 { (exit 77); exit 77; }; }; } 3344 fi 3345 3346 ac_exeext=$ac_cv_exeext 3347 3348 # Check that the compiler produces executables we can run. If not, either 3349 # the compiler is broken, or we cross compile. 3350 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3351 $as_echo_n "checking whether the C compiler works... " >&6; } 3352 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3353 # If not cross compiling, check that we can run a simple program. 3354 if test "$cross_compiling" != yes; then 3355 if { ac_try='./$ac_file' 3356 { (case "(($ac_try" in 3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3358 *) ac_try_echo=$ac_try;; 3359 esac 3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3361 $as_echo "$ac_try_echo") >&5 3362 (eval "$ac_try") 2>&5 3363 ac_status=$? 3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); }; }; then 3366 cross_compiling=no 3367 else 3368 if test "$cross_compiling" = maybe; then 3369 cross_compiling=yes 3370 else 3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3373 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3374 If you meant to cross compile, use \`--host'. 3375 See \`config.log' for more details." >&5 3376 $as_echo "$as_me: error: cannot run C compiled programs. 3377 If you meant to cross compile, use \`--host'. 3378 See \`config.log' for more details." >&2;} 3379 { (exit 1); exit 1; }; }; } 3380 fi 3381 fi 3382 fi 3383 { $as_echo "$as_me:$LINENO: result: yes" >&5 3384 $as_echo "yes" >&6; } 3385 3386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3387 ac_clean_files=$ac_clean_files_save 3388 # Check that the compiler produces executables we can run. If not, either 3389 # the compiler is broken, or we cross compile. 3390 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3391 $as_echo_n "checking whether we are cross compiling... " >&6; } 3392 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3393 $as_echo "$cross_compiling" >&6; } 3394 3395 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3396 $as_echo_n "checking for suffix of executables... " >&6; } 3397 if { (ac_try="$ac_link" 3398 case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401 esac 3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3403 $as_echo "$ac_try_echo") >&5 3404 (eval "$ac_link") 2>&5 3405 ac_status=$? 3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3407 (exit $ac_status); }; then 3408 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3410 # work properly (i.e., refer to `conftest.exe'), while it won't with 3411 # `rm'. 3412 for ac_file in conftest.exe conftest conftest.*; do 3413 test -f "$ac_file" || continue 3414 case $ac_file in 3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3417 break;; 3418 * ) break;; 3419 esac 3420 done 3421 else 3422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3424 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3425 See \`config.log' for more details." >&5 3426 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3427 See \`config.log' for more details." >&2;} 3428 { (exit 1); exit 1; }; }; } 3429 fi 3430 3431 rm -f conftest$ac_cv_exeext 3432 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3433 $as_echo "$ac_cv_exeext" >&6; } 3434 3435 rm -f conftest.$ac_ext 3436 EXEEXT=$ac_cv_exeext 3437 ac_exeext=$EXEEXT 3438 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3439 $as_echo_n "checking for suffix of object files... " >&6; } 3440 if test "${ac_cv_objext+set}" = set; then 3441 $as_echo_n "(cached) " >&6 3442 else 3443 cat >conftest.$ac_ext <<_ACEOF 3444 /* confdefs.h. */ 3445 _ACEOF 3446 cat confdefs.h >>conftest.$ac_ext 3447 cat >>conftest.$ac_ext <<_ACEOF 3448 /* end confdefs.h. */ 3449 3450 int 3451 main () 3452 { 3453 3454 ; 3455 return 0; 3456 } 3457 _ACEOF 3458 rm -f conftest.o conftest.obj 3459 if { (ac_try="$ac_compile" 3460 case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463 esac 3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3465 $as_echo "$ac_try_echo") >&5 3466 (eval "$ac_compile") 2>&5 3467 ac_status=$? 3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; then 3470 for ac_file in conftest.o conftest.obj conftest.*; do 3471 test -f "$ac_file" || continue; 3472 case $ac_file in 3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3475 break;; 3476 esac 3477 done 3478 else 3479 $as_echo "$as_me: failed program was:" >&5 3480 sed 's/^/| /' conftest.$ac_ext >&5 3481 3482 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3485 See \`config.log' for more details." >&5 3486 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3487 See \`config.log' for more details." >&2;} 3488 { (exit 1); exit 1; }; }; } 3489 fi 3490 3491 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3492 fi 3493 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3494 $as_echo "$ac_cv_objext" >&6; } 3495 OBJEXT=$ac_cv_objext 3496 ac_objext=$OBJEXT 3497 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3499 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3500 $as_echo_n "(cached) " >&6 3501 else 3502 cat >conftest.$ac_ext <<_ACEOF 3503 /* confdefs.h. */ 3504 _ACEOF 3505 cat confdefs.h >>conftest.$ac_ext 3506 cat >>conftest.$ac_ext <<_ACEOF 3507 /* end confdefs.h. */ 3508 3509 int 3510 main () 3511 { 3512 #ifndef __GNUC__ 3513 choke me 3514 #endif 3515 3516 ; 3517 return 0; 3518 } 3519 _ACEOF 3520 rm -f conftest.$ac_objext 3521 if { (ac_try="$ac_compile" 3522 case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525 esac 3526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3527 $as_echo "$ac_try_echo") >&5 3528 (eval "$ac_compile") 2>conftest.er1 3529 ac_status=$? 3530 grep -v '^ *+' conftest.er1 >conftest.err 3531 rm -f conftest.er1 3532 cat conftest.err >&5 3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); } && { 3535 test -z "$ac_c_werror_flag" || 3536 test ! -s conftest.err 3537 } && test -s conftest.$ac_objext; then 3538 ac_compiler_gnu=yes 3539 else 3540 $as_echo "$as_me: failed program was:" >&5 3541 sed 's/^/| /' conftest.$ac_ext >&5 3542 3543 ac_compiler_gnu=no 3544 fi 3545 3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3547 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3548 3549 fi 3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3551 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3552 if test $ac_compiler_gnu = yes; then 3553 GCC=yes 3554 else 3555 GCC= 3556 fi 3557 ac_test_CFLAGS=${CFLAGS+set} 3558 ac_save_CFLAGS=$CFLAGS 3559 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3560 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3561 if test "${ac_cv_prog_cc_g+set}" = set; then 3562 $as_echo_n "(cached) " >&6 3563 else 3564 ac_save_c_werror_flag=$ac_c_werror_flag 3565 ac_c_werror_flag=yes 3566 ac_cv_prog_cc_g=no 3567 CFLAGS="-g" 3568 cat >conftest.$ac_ext <<_ACEOF 3569 /* confdefs.h. */ 3570 _ACEOF 3571 cat confdefs.h >>conftest.$ac_ext 3572 cat >>conftest.$ac_ext <<_ACEOF 3573 /* end confdefs.h. */ 3574 3575 int 3576 main () 3577 { 3578 3579 ; 3580 return 0; 3581 } 3582 _ACEOF 3583 rm -f conftest.$ac_objext 3584 if { (ac_try="$ac_compile" 3585 case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588 esac 3589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3590 $as_echo "$ac_try_echo") >&5 3591 (eval "$ac_compile") 2>conftest.er1 3592 ac_status=$? 3593 grep -v '^ *+' conftest.er1 >conftest.err 3594 rm -f conftest.er1 3595 cat conftest.err >&5 3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3597 (exit $ac_status); } && { 3598 test -z "$ac_c_werror_flag" || 3599 test ! -s conftest.err 3600 } && test -s conftest.$ac_objext; then 3601 ac_cv_prog_cc_g=yes 3602 else 3603 $as_echo "$as_me: failed program was:" >&5 3604 sed 's/^/| /' conftest.$ac_ext >&5 3605 3606 CFLAGS="" 3607 cat >conftest.$ac_ext <<_ACEOF 3608 /* confdefs.h. */ 3609 _ACEOF 3610 cat confdefs.h >>conftest.$ac_ext 3611 cat >>conftest.$ac_ext <<_ACEOF 3612 /* end confdefs.h. */ 3613 3614 int 3615 main () 3616 { 3617 3618 ; 3619 return 0; 3620 } 3621 _ACEOF 3622 rm -f conftest.$ac_objext 3623 if { (ac_try="$ac_compile" 3624 case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627 esac 3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3629 $as_echo "$ac_try_echo") >&5 3630 (eval "$ac_compile") 2>conftest.er1 3631 ac_status=$? 3632 grep -v '^ *+' conftest.er1 >conftest.err 3633 rm -f conftest.er1 3634 cat conftest.err >&5 3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); } && { 3637 test -z "$ac_c_werror_flag" || 3638 test ! -s conftest.err 3639 } && test -s conftest.$ac_objext; then 3640 : 3641 else 3642 $as_echo "$as_me: failed program was:" >&5 3643 sed 's/^/| /' conftest.$ac_ext >&5 3644 3645 ac_c_werror_flag=$ac_save_c_werror_flag 3646 CFLAGS="-g" 3647 cat >conftest.$ac_ext <<_ACEOF 3648 /* confdefs.h. */ 3649 _ACEOF 3650 cat confdefs.h >>conftest.$ac_ext 3651 cat >>conftest.$ac_ext <<_ACEOF 3652 /* end confdefs.h. */ 3653 3654 int 3655 main () 3656 { 3657 3658 ; 3659 return 0; 3660 } 3661 _ACEOF 3662 rm -f conftest.$ac_objext 3663 if { (ac_try="$ac_compile" 3664 case "(($ac_try" in 3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3666 *) ac_try_echo=$ac_try;; 3667 esac 3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3669 $as_echo "$ac_try_echo") >&5 3670 (eval "$ac_compile") 2>conftest.er1 3671 ac_status=$? 3672 grep -v '^ *+' conftest.er1 >conftest.err 3673 rm -f conftest.er1 3674 cat conftest.err >&5 3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); } && { 3677 test -z "$ac_c_werror_flag" || 3678 test ! -s conftest.err 3679 } && test -s conftest.$ac_objext; then 3680 ac_cv_prog_cc_g=yes 3681 else 3682 $as_echo "$as_me: failed program was:" >&5 3683 sed 's/^/| /' conftest.$ac_ext >&5 3684 3685 3686 fi 3687 3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3689 fi 3690 3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3692 fi 3693 3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3695 ac_c_werror_flag=$ac_save_c_werror_flag 3696 fi 3697 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3698 $as_echo "$ac_cv_prog_cc_g" >&6; } 3699 if test "$ac_test_CFLAGS" = set; then 3700 CFLAGS=$ac_save_CFLAGS 3701 elif test $ac_cv_prog_cc_g = yes; then 3702 if test "$GCC" = yes; then 3703 CFLAGS="-g -O2" 3704 else 3705 CFLAGS="-g" 3706 fi 3707 else 3708 if test "$GCC" = yes; then 3709 CFLAGS="-O2" 3710 else 3711 CFLAGS= 3712 fi 3713 fi 3714 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3716 if test "${ac_cv_prog_cc_c89+set}" = set; then 3717 $as_echo_n "(cached) " >&6 3718 else 3719 ac_cv_prog_cc_c89=no 3720 ac_save_CC=$CC 3721 cat >conftest.$ac_ext <<_ACEOF 3722 /* confdefs.h. */ 3723 _ACEOF 3724 cat confdefs.h >>conftest.$ac_ext 3725 cat >>conftest.$ac_ext <<_ACEOF 3726 /* end confdefs.h. */ 3727 #include <stdarg.h> 3728 #include <stdio.h> 3729 #include <sys/types.h> 3730 #include <sys/stat.h> 3731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3732 struct buf { int x; }; 3733 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3734 static char *e (p, i) 3735 char **p; 3736 int i; 3737 { 3738 return p[i]; 3739 } 3740 static char *f (char * (*g) (char **, int), char **p, ...) 3741 { 3742 char *s; 3743 va_list v; 3744 va_start (v,p); 3745 s = g (p, va_arg (v,int)); 3746 va_end (v); 3747 return s; 3748 } 3749 3750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3751 function prototypes and stuff, but not '\xHH' hex character constants. 3752 These don't provoke an error unfortunately, instead are silently treated 3753 as 'x'. The following induces an error, until -std is added to get 3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3755 array size at least. It's necessary to write '\x00'==0 to get something 3756 that's true only with -std. */ 3757 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3758 3759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3760 inside strings and character constants. */ 3761 #define FOO(x) 'x' 3762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3763 3764 int test (int i, double x); 3765 struct s1 {int (*f) (int a);}; 3766 struct s2 {int (*f) (double a);}; 3767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3768 int argc; 3769 char **argv; 3770 int 3771 main () 3772 { 3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3774 ; 3775 return 0; 3776 } 3777 _ACEOF 3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3780 do 3781 CC="$ac_save_CC $ac_arg" 3782 rm -f conftest.$ac_objext 3783 if { (ac_try="$ac_compile" 3784 case "(($ac_try" in 3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3786 *) ac_try_echo=$ac_try;; 3787 esac 3788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3789 $as_echo "$ac_try_echo") >&5 3790 (eval "$ac_compile") 2>conftest.er1 3791 ac_status=$? 3792 grep -v '^ *+' conftest.er1 >conftest.err 3793 rm -f conftest.er1 3794 cat conftest.err >&5 3795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } && { 3797 test -z "$ac_c_werror_flag" || 3798 test ! -s conftest.err 3799 } && test -s conftest.$ac_objext; then 3800 ac_cv_prog_cc_c89=$ac_arg 3801 else 3802 $as_echo "$as_me: failed program was:" >&5 3803 sed 's/^/| /' conftest.$ac_ext >&5 3804 3805 3806 fi 3807 3808 rm -f core conftest.err conftest.$ac_objext 3809 test "x$ac_cv_prog_cc_c89" != "xno" && break 3810 done 3811 rm -f conftest.$ac_ext 3812 CC=$ac_save_CC 3813 3814 fi 3815 # AC_CACHE_VAL 3816 case "x$ac_cv_prog_cc_c89" in 3817 x) 3818 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3819 $as_echo "none needed" >&6; } ;; 3820 xno) 3821 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3822 $as_echo "unsupported" >&6; } ;; 3823 *) 3824 CC="$CC $ac_cv_prog_cc_c89" 3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3826 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3827 esac 3828 3829 3830 ac_ext=c 3831 ac_cpp='$CPP $CPPFLAGS' 3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3835 DEPDIR="${am__leading_dot}deps" 3836 3837 ac_config_commands="$ac_config_commands depfiles" 3838 3839 3840 am_make=${MAKE-make} 3841 cat > confinc << 'END' 3842 am__doit: 3843 @echo done 3844 .PHONY: am__doit 3845 END 3846 # If we don't find an include directive, just comment out the code. 3847 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3848 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3849 am__include="#" 3850 am__quote= 3851 _am_result=none 3852 # First try GNU make style include. 3853 echo "include confinc" > confmf 3854 # We grep out `Entering directory' and `Leaving directory' 3855 # messages which can occur if `w' ends up in MAKEFLAGS. 3856 # In particular we don't look at `^make:' because GNU make might 3857 # be invoked under some other name (usually "gmake"), in which 3858 # case it prints its new name instead of `make'. 3859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3860 am__include=include 3861 am__quote= 3862 _am_result=GNU 3863 fi 3864 # Now try BSD make style include. 3865 if test "$am__include" = "#"; then 3866 echo '.include "confinc"' > confmf 3867 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3868 am__include=.include 3869 am__quote="\"" 3870 _am_result=BSD 3871 fi 3872 fi 3873 3874 3875 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3876 $as_echo "$_am_result" >&6; } 3877 rm -f confinc confmf 3878 3879 # Check whether --enable-dependency-tracking was given. 3880 if test "${enable_dependency_tracking+set}" = set; then 3881 enableval=$enable_dependency_tracking; 3882 fi 3883 3884 if test "x$enable_dependency_tracking" != xno; then 3885 am_depcomp="$ac_aux_dir/depcomp" 3886 AMDEPBACKSLASH='\' 3887 fi 3888 if test "x$enable_dependency_tracking" != xno; then 3889 AMDEP_TRUE= 3890 AMDEP_FALSE='#' 3891 else 3892 AMDEP_TRUE='#' 3893 AMDEP_FALSE= 3894 fi 3895 3896 3897 3898 depcc="$CC" am_compiler_list= 3899 3900 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3901 $as_echo_n "checking dependency style of $depcc... " >&6; } 3902 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3903 $as_echo_n "(cached) " >&6 3904 else 3905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3906 # We make a subdir and do the tests there. Otherwise we can end up 3907 # making bogus files that we don't know about and never remove. For 3908 # instance it was reported that on HP-UX the gcc test will end up 3909 # making a dummy file named `D' -- because `-MD' means `put the output 3910 # in D'. 3911 mkdir conftest.dir 3912 # Copy depcomp to subdir because otherwise we won't find it if we're 3913 # using a relative directory. 3914 cp "$am_depcomp" conftest.dir 3915 cd conftest.dir 3916 # We will build objects and dependencies in a subdirectory because 3917 # it helps to detect inapplicable dependency modes. For instance 3918 # both Tru64's cc and ICC support -MD to output dependencies as a 3919 # side effect of compilation, but ICC will put the dependencies in 3920 # the current directory while Tru64 will put them in the object 3921 # directory. 3922 mkdir sub 3923 3924 am_cv_CC_dependencies_compiler_type=none 3925 if test "$am_compiler_list" = ""; then 3926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3927 fi 3928 for depmode in $am_compiler_list; do 3929 # Setup a source with many dependencies, because some compilers 3930 # like to wrap large dependency lists on column 80 (with \), and 3931 # we should not choose a depcomp mode which is confused by this. 3932 # 3933 # We need to recreate these files for each test, as the compiler may 3934 # overwrite some of them when testing with obscure command lines. 3935 # This happens at least with the AIX C compiler. 3936 : > sub/conftest.c 3937 for i in 1 2 3 4 5 6; do 3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3939 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3940 # Solaris 8's {/usr,}/bin/sh. 3941 touch sub/conftst$i.h 3942 done 3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3944 3945 case $depmode in 3946 nosideeffect) 3947 # after this tag, mechanisms are not by side-effect, so they'll 3948 # only be used when explicitly requested 3949 if test "x$enable_dependency_tracking" = xyes; then 3950 continue 3951 else 3952 break 3953 fi 3954 ;; 3955 none) break ;; 3956 esac 3957 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3958 # mode. It turns out that the SunPro C++ compiler does not properly 3959 # handle `-M -o', and we need to detect this. 3960 if depmode=$depmode \ 3961 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3963 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3964 >/dev/null 2>conftest.err && 3965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3967 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3969 # icc doesn't choke on unknown options, it will just issue warnings 3970 # or remarks (even with -Werror). So we grep stderr for any message 3971 # that says an option was ignored or not supported. 3972 # When given -MP, icc 7.0 and 7.1 complain thusly: 3973 # icc: Command line warning: ignoring option '-M'; no argument required 3974 # The diagnosis changed in icc 8.0: 3975 # icc: Command line remark: option '-MP' not supported 3976 if (grep 'ignoring option' conftest.err || 3977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3978 am_cv_CC_dependencies_compiler_type=$depmode 3979 break 3980 fi 3981 fi 3982 done 3983 3984 cd .. 3985 rm -rf conftest.dir 3986 else 3987 am_cv_CC_dependencies_compiler_type=none 3988 fi 3989 3990 fi 3991 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3992 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3993 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3994 3995 if 3996 test "x$enable_dependency_tracking" != xno \ 3997 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3998 am__fastdepCC_TRUE= 3999 am__fastdepCC_FALSE='#' 4000 else 4001 am__fastdepCC_TRUE='#' 4002 am__fastdepCC_FALSE= 4003 fi 4004 4005 4006 if test -n "$ac_tool_prefix"; then 4007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4010 $as_echo_n "checking for $ac_word... " >&6; } 4011 if test "${ac_cv_prog_RANLIB+set}" = set; then 4012 $as_echo_n "(cached) " >&6 4013 else 4014 if test -n "$RANLIB"; then 4015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4016 else 4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4018 for as_dir in $PATH 4019 do 4020 IFS=$as_save_IFS 4021 test -z "$as_dir" && as_dir=. 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4026 break 2 4027 fi 4028 done 4029 done 4030 IFS=$as_save_IFS 4031 4032 fi 4033 fi 4034 RANLIB=$ac_cv_prog_RANLIB 4035 if test -n "$RANLIB"; then 4036 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4037 $as_echo "$RANLIB" >&6; } 4038 else 4039 { $as_echo "$as_me:$LINENO: result: no" >&5 4040 $as_echo "no" >&6; } 4041 fi 4042 4043 4044 fi 4045 if test -z "$ac_cv_prog_RANLIB"; then 4046 ac_ct_RANLIB=$RANLIB 4047 # Extract the first word of "ranlib", so it can be a program name with args. 4048 set dummy ranlib; ac_word=$2 4049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4050 $as_echo_n "checking for $ac_word... " >&6; } 4051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4052 $as_echo_n "(cached) " >&6 4053 else 4054 if test -n "$ac_ct_RANLIB"; then 4055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4056 else 4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4058 for as_dir in $PATH 4059 do 4060 IFS=$as_save_IFS 4061 test -z "$as_dir" && as_dir=. 4062 for ac_exec_ext in '' $ac_executable_extensions; do 4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4064 ac_cv_prog_ac_ct_RANLIB="ranlib" 4065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4066 break 2 4067 fi 4068 done 4069 done 4070 IFS=$as_save_IFS 4071 4072 fi 4073 fi 4074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4075 if test -n "$ac_ct_RANLIB"; then 4076 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4077 $as_echo "$ac_ct_RANLIB" >&6; } 4078 else 4079 { $as_echo "$as_me:$LINENO: result: no" >&5 4080 $as_echo "no" >&6; } 4081 fi 4082 4083 if test "x$ac_ct_RANLIB" = x; then 4084 RANLIB=":" 4085 else 4086 case $cross_compiling:$ac_tool_warned in 4087 yes:) 4088 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4090 ac_tool_warned=yes ;; 4091 esac 4092 RANLIB=$ac_ct_RANLIB 4093 fi 4094 else 4095 RANLIB="$ac_cv_prog_RANLIB" 4096 fi 4097 4098 # Check whether --enable-shared was given. 4099 if test "${enable_shared+set}" = set; then 4100 enableval=$enable_shared; p=${PACKAGE-default} 4101 case $enableval in 4102 yes) enable_shared=yes ;; 4103 no) enable_shared=no ;; 4104 *) 4105 enable_shared=no 4106 # Look at the argument we got. We use all the common list separators. 4107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4108 for pkg in $enableval; do 4109 IFS="$lt_save_ifs" 4110 if test "X$pkg" = "X$p"; then 4111 enable_shared=yes 4112 fi 4113 done 4114 IFS="$lt_save_ifs" 4115 ;; 4116 esac 4117 else 4118 enable_shared=yes 4119 fi 4120 4121 4122 # Check whether --enable-static was given. 4123 if test "${enable_static+set}" = set; then 4124 enableval=$enable_static; p=${PACKAGE-default} 4125 case $enableval in 4126 yes) enable_static=yes ;; 4127 no) enable_static=no ;; 4128 *) 4129 enable_static=no 4130 # Look at the argument we got. We use all the common list separators. 4131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4132 for pkg in $enableval; do 4133 IFS="$lt_save_ifs" 4134 if test "X$pkg" = "X$p"; then 4135 enable_static=yes 4136 fi 4137 done 4138 IFS="$lt_save_ifs" 4139 ;; 4140 esac 4141 else 4142 enable_static=yes 4143 fi 4144 4145 4146 # Check whether --enable-fast-install was given. 4147 if test "${enable_fast_install+set}" = set; then 4148 enableval=$enable_fast_install; p=${PACKAGE-default} 4149 case $enableval in 4150 yes) enable_fast_install=yes ;; 4151 no) enable_fast_install=no ;; 4152 *) 4153 enable_fast_install=no 4154 # Look at the argument we got. We use all the common list separators. 4155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4156 for pkg in $enableval; do 4157 IFS="$lt_save_ifs" 4158 if test "X$pkg" = "X$p"; then 4159 enable_fast_install=yes 4160 fi 4161 done 4162 IFS="$lt_save_ifs" 4163 ;; 4164 esac 4165 else 4166 enable_fast_install=yes 4167 fi 4168 4169 4170 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4171 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4172 if test "${lt_cv_path_SED+set}" = set; then 4173 $as_echo_n "(cached) " >&6 4174 else 4175 # Loop through the user's path and test for sed and gsed. 4176 # Then use that list of sed's as ones to test for truncation. 4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178 for as_dir in $PATH 4179 do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for lt_ac_prog in sed gsed; do 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4185 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4186 fi 4187 done 4188 done 4189 done 4190 IFS=$as_save_IFS 4191 lt_ac_max=0 4192 lt_ac_count=0 4193 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4194 # along with /bin/sed that truncates output. 4195 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4196 test ! -f $lt_ac_sed && continue 4197 cat /dev/null > conftest.in 4198 lt_ac_count=0 4199 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4200 # Check for GNU sed and select it if it is found. 4201 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4202 lt_cv_path_SED=$lt_ac_sed 4203 break 4204 fi 4205 while true; do 4206 cat conftest.in conftest.in >conftest.tmp 4207 mv conftest.tmp conftest.in 4208 cp conftest.in conftest.nl 4209 echo >>conftest.nl 4210 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4211 cmp -s conftest.out conftest.nl || break 4212 # 10000 chars as input seems more than enough 4213 test $lt_ac_count -gt 10 && break 4214 lt_ac_count=`expr $lt_ac_count + 1` 4215 if test $lt_ac_count -gt $lt_ac_max; then 4216 lt_ac_max=$lt_ac_count 4217 lt_cv_path_SED=$lt_ac_sed 4218 fi 4219 done 4220 done 4221 4222 fi 4223 4224 SED=$lt_cv_path_SED 4225 4226 { $as_echo "$as_me:$LINENO: result: $SED" >&5 4227 $as_echo "$SED" >&6; } 4228 4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4231 if test "${ac_cv_path_GREP+set}" = set; then 4232 $as_echo_n "(cached) " >&6 4233 else 4234 if test -z "$GREP"; then 4235 ac_path_GREP_found=false 4236 # Loop through the user's path and test for each of PROGNAME-LIST 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4239 do 4240 IFS=$as_save_IFS 4241 test -z "$as_dir" && as_dir=. 4242 for ac_prog in grep ggrep; do 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4246 # Check for GNU ac_path_GREP and select it if it is found. 4247 # Check for GNU $ac_path_GREP 4248 case `"$ac_path_GREP" --version 2>&1` in 4249 *GNU*) 4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4251 *) 4252 ac_count=0 4253 $as_echo_n 0123456789 >"conftest.in" 4254 while : 4255 do 4256 cat "conftest.in" "conftest.in" >"conftest.tmp" 4257 mv "conftest.tmp" "conftest.in" 4258 cp "conftest.in" "conftest.nl" 4259 $as_echo 'GREP' >> "conftest.nl" 4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4262 ac_count=`expr $ac_count + 1` 4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4264 # Best one so far, save it but keep looking for a better one 4265 ac_cv_path_GREP="$ac_path_GREP" 4266 ac_path_GREP_max=$ac_count 4267 fi 4268 # 10*(2^10) chars as input seems more than enough 4269 test $ac_count -gt 10 && break 4270 done 4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4272 esac 4273 4274 $ac_path_GREP_found && break 3 4275 done 4276 done 4277 done 4278 IFS=$as_save_IFS 4279 if test -z "$ac_cv_path_GREP"; then 4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4282 { (exit 1); exit 1; }; } 4283 fi 4284 else 4285 ac_cv_path_GREP=$GREP 4286 fi 4287 4288 fi 4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4290 $as_echo "$ac_cv_path_GREP" >&6; } 4291 GREP="$ac_cv_path_GREP" 4292 4293 4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4295 $as_echo_n "checking for egrep... " >&6; } 4296 if test "${ac_cv_path_EGREP+set}" = set; then 4297 $as_echo_n "(cached) " >&6 4298 else 4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4300 then ac_cv_path_EGREP="$GREP -E" 4301 else 4302 if test -z "$EGREP"; then 4303 ac_path_EGREP_found=false 4304 # Loop through the user's path and test for each of PROGNAME-LIST 4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4307 do 4308 IFS=$as_save_IFS 4309 test -z "$as_dir" && as_dir=. 4310 for ac_prog in egrep; do 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4314 # Check for GNU ac_path_EGREP and select it if it is found. 4315 # Check for GNU $ac_path_EGREP 4316 case `"$ac_path_EGREP" --version 2>&1` in 4317 *GNU*) 4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4319 *) 4320 ac_count=0 4321 $as_echo_n 0123456789 >"conftest.in" 4322 while : 4323 do 4324 cat "conftest.in" "conftest.in" >"conftest.tmp" 4325 mv "conftest.tmp" "conftest.in" 4326 cp "conftest.in" "conftest.nl" 4327 $as_echo 'EGREP' >> "conftest.nl" 4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4330 ac_count=`expr $ac_count + 1` 4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4332 # Best one so far, save it but keep looking for a better one 4333 ac_cv_path_EGREP="$ac_path_EGREP" 4334 ac_path_EGREP_max=$ac_count 4335 fi 4336 # 10*(2^10) chars as input seems more than enough 4337 test $ac_count -gt 10 && break 4338 done 4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4340 esac 4341 4342 $ac_path_EGREP_found && break 3 4343 done 4344 done 4345 done 4346 IFS=$as_save_IFS 4347 if test -z "$ac_cv_path_EGREP"; then 4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4350 { (exit 1); exit 1; }; } 4351 fi 4352 else 4353 ac_cv_path_EGREP=$EGREP 4354 fi 4355 4356 fi 4357 fi 4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4359 $as_echo "$ac_cv_path_EGREP" >&6; } 4360 EGREP="$ac_cv_path_EGREP" 4361 4362 4363 4364 # Check whether --with-gnu-ld was given. 4365 if test "${with_gnu_ld+set}" = set; then 4366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4367 else 4368 with_gnu_ld=no 4369 fi 4370 4371 ac_prog=ld 4372 if test "$GCC" = yes; then 4373 # Check if gcc -print-prog-name=ld gives a path. 4374 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4375 $as_echo_n "checking for ld used by $CC... " >&6; } 4376 case $host in 4377 *-*-mingw*) 4378 # gcc leaves a trailing carriage return which upsets mingw 4379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4380 *) 4381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4382 esac 4383 case $ac_prog in 4384 # Accept absolute paths. 4385 [\\/]* | ?:[\\/]*) 4386 re_direlt='/[^/][^/]*/\.\./' 4387 # Canonicalize the pathname of ld 4388 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4390 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4391 done 4392 test -z "$LD" && LD="$ac_prog" 4393 ;; 4394 "") 4395 # If it fails, then pretend we aren't using GCC. 4396 ac_prog=ld 4397 ;; 4398 *) 4399 # If it is relative, then search for the first ld in PATH. 4400 with_gnu_ld=unknown 4401 ;; 4402 esac 4403 elif test "$with_gnu_ld" = yes; then 4404 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4405 $as_echo_n "checking for GNU ld... " >&6; } 4406 else 4407 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4408 $as_echo_n "checking for non-GNU ld... " >&6; } 4409 fi 4410 if test "${lt_cv_path_LD+set}" = set; then 4411 $as_echo_n "(cached) " >&6 4412 else 4413 if test -z "$LD"; then 4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4415 for ac_dir in $PATH; do 4416 IFS="$lt_save_ifs" 4417 test -z "$ac_dir" && ac_dir=. 4418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4419 lt_cv_path_LD="$ac_dir/$ac_prog" 4420 # Check to see if the program is GNU ld. I'd rather use --version, 4421 # but apparently some variants of GNU ld only accept -v. 4422 # Break only if it was the GNU/non-GNU ld that we prefer. 4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4424 *GNU* | *'with BFD'*) 4425 test "$with_gnu_ld" != no && break 4426 ;; 4427 *) 4428 test "$with_gnu_ld" != yes && break 4429 ;; 4430 esac 4431 fi 4432 done 4433 IFS="$lt_save_ifs" 4434 else 4435 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4436 fi 4437 fi 4438 4439 LD="$lt_cv_path_LD" 4440 if test -n "$LD"; then 4441 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4442 $as_echo "$LD" >&6; } 4443 else 4444 { $as_echo "$as_me:$LINENO: result: no" >&5 4445 $as_echo "no" >&6; } 4446 fi 4447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4449 { (exit 1); exit 1; }; } 4450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4452 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4453 $as_echo_n "(cached) " >&6 4454 else 4455 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4456 case `$LD -v 2>&1 </dev/null` in 4457 *GNU* | *'with BFD'*) 4458 lt_cv_prog_gnu_ld=yes 4459 ;; 4460 *) 4461 lt_cv_prog_gnu_ld=no 4462 ;; 4463 esac 4464 fi 4465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4466 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4467 with_gnu_ld=$lt_cv_prog_gnu_ld 4468 4469 4470 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4471 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4472 if test "${lt_cv_ld_reload_flag+set}" = set; then 4473 $as_echo_n "(cached) " >&6 4474 else 4475 lt_cv_ld_reload_flag='-r' 4476 fi 4477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4478 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4479 reload_flag=$lt_cv_ld_reload_flag 4480 case $reload_flag in 4481 "" | " "*) ;; 4482 *) reload_flag=" $reload_flag" ;; 4483 esac 4484 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4485 case $host_os in 4486 darwin*) 4487 if test "$GCC" = yes; then 4488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4489 else 4490 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4491 fi 4492 ;; 4493 esac 4494 4495 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4496 $as_echo_n "checking for BSD-compatible nm... " >&6; } 4497 if test "${lt_cv_path_NM+set}" = set; then 4498 $as_echo_n "(cached) " >&6 4499 else 4500 if test -n "$NM"; then 4501 # Let the user override the test. 4502 lt_cv_path_NM="$NM" 4503 else 4504 lt_nm_to_check="${ac_tool_prefix}nm" 4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4506 lt_nm_to_check="$lt_nm_to_check nm" 4507 fi 4508 for lt_tmp_nm in $lt_nm_to_check; do 4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4511 IFS="$lt_save_ifs" 4512 test -z "$ac_dir" && ac_dir=. 4513 tmp_nm="$ac_dir/$lt_tmp_nm" 4514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4515 # Check to see if the nm accepts a BSD-compat flag. 4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4517 # nm: unknown option "B" ignored 4518 # Tru64's nm complains that /dev/null is an invalid object file 4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4520 */dev/null* | *'Invalid file or object type'*) 4521 lt_cv_path_NM="$tmp_nm -B" 4522 break 4523 ;; 4524 *) 4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4526 */dev/null*) 4527 lt_cv_path_NM="$tmp_nm -p" 4528 break 4529 ;; 4530 *) 4531 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4532 continue # so that we can try to find one that supports BSD flags 4533 ;; 4534 esac 4535 ;; 4536 esac 4537 fi 4538 done 4539 IFS="$lt_save_ifs" 4540 done 4541 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4542 fi 4543 fi 4544 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4545 $as_echo "$lt_cv_path_NM" >&6; } 4546 NM="$lt_cv_path_NM" 4547 4548 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4549 $as_echo_n "checking whether ln -s works... " >&6; } 4550 LN_S=$as_ln_s 4551 if test "$LN_S" = "ln -s"; then 4552 { $as_echo "$as_me:$LINENO: result: yes" >&5 4553 $as_echo "yes" >&6; } 4554 else 4555 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4556 $as_echo "no, using $LN_S" >&6; } 4557 fi 4558 4559 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4560 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 4561 if test "${lt_cv_deplibs_check_method+set}" = set; then 4562 $as_echo_n "(cached) " >&6 4563 else 4564 lt_cv_file_magic_cmd='$MAGIC_CMD' 4565 lt_cv_file_magic_test_file= 4566 lt_cv_deplibs_check_method='unknown' 4567 # Need to set the preceding variable on all platforms that support 4568 # interlibrary dependencies. 4569 # 'none' -- dependencies not supported. 4570 # `unknown' -- same as none, but documents that we really don't know. 4571 # 'pass_all' -- all dependencies passed with no checks. 4572 # 'test_compile' -- check by making test program. 4573 # 'file_magic [[regex]]' -- check by looking for files in library path 4574 # which responds to the $file_magic_cmd with a given extended regex. 4575 # If you have `file' or equivalent on your system and you're not sure 4576 # whether `pass_all' will *always* work, you probably want this one. 4577 4578 case $host_os in 4579 aix4* | aix5*) 4580 lt_cv_deplibs_check_method=pass_all 4581 ;; 4582 4583 beos*) 4584 lt_cv_deplibs_check_method=pass_all 4585 ;; 4586 4587 bsdi[45]*) 4588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4589 lt_cv_file_magic_cmd='/usr/bin/file -L' 4590 lt_cv_file_magic_test_file=/shlib/libc.so 4591 ;; 4592 4593 cygwin*) 4594 # func_win32_libid is a shell function defined in ltmain.sh 4595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4596 lt_cv_file_magic_cmd='func_win32_libid' 4597 ;; 4598 4599 mingw* | pw32*) 4600 # Base MSYS/MinGW do not provide the 'file' command needed by 4601 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4602 # unless we find 'file', for example because we are cross-compiling. 4603 if ( file / ) >/dev/null 2>&1; then 4604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4605 lt_cv_file_magic_cmd='func_win32_libid' 4606 else 4607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4608 lt_cv_file_magic_cmd='$OBJDUMP -f' 4609 fi 4610 ;; 4611 4612 darwin* | rhapsody*) 4613 lt_cv_deplibs_check_method=pass_all 4614 ;; 4615 4616 freebsd* | dragonfly*) 4617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4618 case $host_cpu in 4619 i*86 ) 4620 # Not sure whether the presence of OpenBSD here was a mistake. 4621 # Let's accept both of them until this is cleared up. 4622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4623 lt_cv_file_magic_cmd=/usr/bin/file 4624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4625 ;; 4626 esac 4627 else 4628 lt_cv_deplibs_check_method=pass_all 4629 fi 4630 ;; 4631 4632 gnu*) 4633 lt_cv_deplibs_check_method=pass_all 4634 ;; 4635 4636 hpux10.20* | hpux11*) 4637 lt_cv_file_magic_cmd=/usr/bin/file 4638 case $host_cpu in 4639 ia64*) 4640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4642 ;; 4643 hppa*64*) 4644 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]' 4645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4646 ;; 4647 *) 4648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4649 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4650 ;; 4651 esac 4652 ;; 4653 4654 interix[3-9]*) 4655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4657 ;; 4658 4659 irix5* | irix6* | nonstopux*) 4660 case $LD in 4661 *-32|*"-32 ") libmagic=32-bit;; 4662 *-n32|*"-n32 ") libmagic=N32;; 4663 *-64|*"-64 ") libmagic=64-bit;; 4664 *) libmagic=never-match;; 4665 esac 4666 lt_cv_deplibs_check_method=pass_all 4667 ;; 4668 4669 # This must be Linux ELF. 4670 linux* | k*bsd*-gnu) 4671 lt_cv_deplibs_check_method=pass_all 4672 ;; 4673 4674 netbsd*) 4675 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4677 else 4678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4679 fi 4680 ;; 4681 4682 newos6*) 4683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4684 lt_cv_file_magic_cmd=/usr/bin/file 4685 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4686 ;; 4687 4688 nto-qnx*) 4689 lt_cv_deplibs_check_method=unknown 4690 ;; 4691 4692 openbsd*) 4693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4695 else 4696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4697 fi 4698 ;; 4699 4700 osf3* | osf4* | osf5*) 4701 lt_cv_deplibs_check_method=pass_all 4702 ;; 4703 4704 rdos*) 4705 lt_cv_deplibs_check_method=pass_all 4706 ;; 4707 4708 solaris*) 4709 lt_cv_deplibs_check_method=pass_all 4710 ;; 4711 4712 sysv4 | sysv4.3*) 4713 case $host_vendor in 4714 motorola) 4715 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]' 4716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4717 ;; 4718 ncr) 4719 lt_cv_deplibs_check_method=pass_all 4720 ;; 4721 sequent) 4722 lt_cv_file_magic_cmd='/bin/file' 4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4724 ;; 4725 sni) 4726 lt_cv_file_magic_cmd='/bin/file' 4727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4728 lt_cv_file_magic_test_file=/lib/libc.so 4729 ;; 4730 siemens) 4731 lt_cv_deplibs_check_method=pass_all 4732 ;; 4733 pc) 4734 lt_cv_deplibs_check_method=pass_all 4735 ;; 4736 esac 4737 ;; 4738 4739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4740 lt_cv_deplibs_check_method=pass_all 4741 ;; 4742 esac 4743 4744 fi 4745 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4746 $as_echo "$lt_cv_deplibs_check_method" >&6; } 4747 file_magic_cmd=$lt_cv_file_magic_cmd 4748 deplibs_check_method=$lt_cv_deplibs_check_method 4749 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4750 4751 4752 4753 4754 # If no C compiler was specified, use CC. 4755 LTCC=${LTCC-"$CC"} 4756 4757 # If no C compiler flags were specified, use CFLAGS. 4758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4759 4760 # Allow CC to be a program name with arguments. 4761 compiler=$CC 4762 4763 4764 # Check whether --enable-libtool-lock was given. 4765 if test "${enable_libtool_lock+set}" = set; then 4766 enableval=$enable_libtool_lock; 4767 fi 4768 4769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4770 4771 # Some flags need to be propagated to the compiler or linker for good 4772 # libtool support. 4773 case $host in 4774 ia64-*-hpux*) 4775 # Find out which ABI we are using. 4776 echo 'int i;' > conftest.$ac_ext 4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4778 (eval $ac_compile) 2>&5 4779 ac_status=$? 4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); }; then 4782 case `/usr/bin/file conftest.$ac_objext` in 4783 *ELF-32*) 4784 HPUX_IA64_MODE="32" 4785 ;; 4786 *ELF-64*) 4787 HPUX_IA64_MODE="64" 4788 ;; 4789 esac 4790 fi 4791 rm -rf conftest* 4792 ;; 4793 *-*-irix6*) 4794 # Find out which ABI we are using. 4795 echo '#line 4795 "configure"' > conftest.$ac_ext 4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4797 (eval $ac_compile) 2>&5 4798 ac_status=$? 4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); }; then 4801 if test "$lt_cv_prog_gnu_ld" = yes; then 4802 case `/usr/bin/file conftest.$ac_objext` in 4803 *32-bit*) 4804 LD="${LD-ld} -melf32bsmip" 4805 ;; 4806 *N32*) 4807 LD="${LD-ld} -melf32bmipn32" 4808 ;; 4809 *64-bit*) 4810 LD="${LD-ld} -melf64bmip" 4811 ;; 4812 esac 4813 else 4814 case `/usr/bin/file conftest.$ac_objext` in 4815 *32-bit*) 4816 LD="${LD-ld} -32" 4817 ;; 4818 *N32*) 4819 LD="${LD-ld} -n32" 4820 ;; 4821 *64-bit*) 4822 LD="${LD-ld} -64" 4823 ;; 4824 esac 4825 fi 4826 fi 4827 rm -rf conftest* 4828 ;; 4829 4830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4831 s390*-*linux*|sparc*-*linux*) 4832 # Find out which ABI we are using. 4833 echo 'int i;' > conftest.$ac_ext 4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4835 (eval $ac_compile) 2>&5 4836 ac_status=$? 4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4838 (exit $ac_status); }; then 4839 case `/usr/bin/file conftest.o` in 4840 *32-bit*) 4841 case $host in 4842 x86_64-*kfreebsd*-gnu) 4843 LD="${LD-ld} -m elf_i386_fbsd" 4844 ;; 4845 x86_64-*linux*) 4846 LD="${LD-ld} -m elf_i386" 4847 ;; 4848 ppc64-*linux*|powerpc64-*linux*) 4849 LD="${LD-ld} -m elf32ppclinux" 4850 ;; 4851 s390x-*linux*) 4852 LD="${LD-ld} -m elf_s390" 4853 ;; 4854 sparc64-*linux*) 4855 LD="${LD-ld} -m elf32_sparc" 4856 ;; 4857 esac 4858 ;; 4859 *64-bit*) 4860 case $host in 4861 x86_64-*kfreebsd*-gnu) 4862 LD="${LD-ld} -m elf_x86_64_fbsd" 4863 ;; 4864 x86_64-*linux*) 4865 LD="${LD-ld} -m elf_x86_64" 4866 ;; 4867 ppc*-*linux*|powerpc*-*linux*) 4868 LD="${LD-ld} -m elf64ppc" 4869 ;; 4870 s390*-*linux*) 4871 LD="${LD-ld} -m elf64_s390" 4872 ;; 4873 sparc*-*linux*) 4874 LD="${LD-ld} -m elf64_sparc" 4875 ;; 4876 esac 4877 ;; 4878 esac 4879 fi 4880 rm -rf conftest* 4881 ;; 4882 4883 *-*-sco3.2v5*) 4884 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4885 SAVE_CFLAGS="$CFLAGS" 4886 CFLAGS="$CFLAGS -belf" 4887 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4889 if test "${lt_cv_cc_needs_belf+set}" = set; then 4890 $as_echo_n "(cached) " >&6 4891 else 4892 ac_ext=c 4893 ac_cpp='$CPP $CPPFLAGS' 4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4897 4898 cat >conftest.$ac_ext <<_ACEOF 4899 /* confdefs.h. */ 4900 _ACEOF 4901 cat confdefs.h >>conftest.$ac_ext 4902 cat >>conftest.$ac_ext <<_ACEOF 4903 /* end confdefs.h. */ 4904 4905 int 4906 main () 4907 { 4908 4909 ; 4910 return 0; 4911 } 4912 _ACEOF 4913 rm -f conftest.$ac_objext conftest$ac_exeext 4914 if { (ac_try="$ac_link" 4915 case "(($ac_try" in 4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4917 *) ac_try_echo=$ac_try;; 4918 esac 4919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4920 $as_echo "$ac_try_echo") >&5 4921 (eval "$ac_link") 2>conftest.er1 4922 ac_status=$? 4923 grep -v '^ *+' conftest.er1 >conftest.err 4924 rm -f conftest.er1 4925 cat conftest.err >&5 4926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); } && { 4928 test -z "$ac_c_werror_flag" || 4929 test ! -s conftest.err 4930 } && test -s conftest$ac_exeext && { 4931 test "$cross_compiling" = yes || 4932 $as_test_x conftest$ac_exeext 4933 }; then 4934 lt_cv_cc_needs_belf=yes 4935 else 4936 $as_echo "$as_me: failed program was:" >&5 4937 sed 's/^/| /' conftest.$ac_ext >&5 4938 4939 lt_cv_cc_needs_belf=no 4940 fi 4941 4942 rm -rf conftest.dSYM 4943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4944 conftest$ac_exeext conftest.$ac_ext 4945 ac_ext=c 4946 ac_cpp='$CPP $CPPFLAGS' 4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950 4951 fi 4952 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4953 $as_echo "$lt_cv_cc_needs_belf" >&6; } 4954 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4955 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4956 CFLAGS="$SAVE_CFLAGS" 4957 fi 4958 ;; 4959 sparc*-*solaris*) 4960 # Find out which ABI we are using. 4961 echo 'int i;' > conftest.$ac_ext 4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4963 (eval $ac_compile) 2>&5 4964 ac_status=$? 4965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4966 (exit $ac_status); }; then 4967 case `/usr/bin/file conftest.o` in 4968 *64-bit*) 4969 case $lt_cv_prog_gnu_ld in 4970 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4971 *) LD="${LD-ld} -64" ;; 4972 esac 4973 ;; 4974 esac 4975 fi 4976 rm -rf conftest* 4977 ;; 4978 4979 4980 esac 4981 4982 need_locks="$enable_libtool_lock" 4983 4984 4985 ac_ext=c 4986 ac_cpp='$CPP $CPPFLAGS' 4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4990 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4991 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4992 # On Suns, sometimes $CPP names a directory. 4993 if test -n "$CPP" && test -d "$CPP"; then 4994 CPP= 4995 fi 4996 if test -z "$CPP"; then 4997 if test "${ac_cv_prog_CPP+set}" = set; then 4998 $as_echo_n "(cached) " >&6 4999 else 5000 # Double quotes because CPP needs to be expanded 5001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5002 do 5003 ac_preproc_ok=false 5004 for ac_c_preproc_warn_flag in '' yes 5005 do 5006 # Use a header file that comes with gcc, so configuring glibc 5007 # with a fresh cross-compiler works. 5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5009 # <limits.h> exists even on freestanding compilers. 5010 # On the NeXT, cc -E runs the code through the compiler's parser, 5011 # not just through cpp. "Syntax error" is here to catch this case. 5012 cat >conftest.$ac_ext <<_ACEOF 5013 /* confdefs.h. */ 5014 _ACEOF 5015 cat confdefs.h >>conftest.$ac_ext 5016 cat >>conftest.$ac_ext <<_ACEOF 5017 /* end confdefs.h. */ 5018 #ifdef __STDC__ 5019 # include <limits.h> 5020 #else 5021 # include <assert.h> 5022 #endif 5023 Syntax error 5024 _ACEOF 5025 if { (ac_try="$ac_cpp conftest.$ac_ext" 5026 case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029 esac 5030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5031 $as_echo "$ac_try_echo") >&5 5032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5033 ac_status=$? 5034 grep -v '^ *+' conftest.er1 >conftest.err 5035 rm -f conftest.er1 5036 cat conftest.err >&5 5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); } >/dev/null && { 5039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5040 test ! -s conftest.err 5041 }; then 5042 : 5043 else 5044 $as_echo "$as_me: failed program was:" >&5 5045 sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 # Broken: fails on valid input. 5048 continue 5049 fi 5050 5051 rm -f conftest.err conftest.$ac_ext 5052 5053 # OK, works on sane cases. Now check whether nonexistent headers 5054 # can be detected and how. 5055 cat >conftest.$ac_ext <<_ACEOF 5056 /* confdefs.h. */ 5057 _ACEOF 5058 cat confdefs.h >>conftest.$ac_ext 5059 cat >>conftest.$ac_ext <<_ACEOF 5060 /* end confdefs.h. */ 5061 #include <ac_nonexistent.h> 5062 _ACEOF 5063 if { (ac_try="$ac_cpp conftest.$ac_ext" 5064 case "(($ac_try" in 5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5066 *) ac_try_echo=$ac_try;; 5067 esac 5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5069 $as_echo "$ac_try_echo") >&5 5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } >/dev/null && { 5077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5078 test ! -s conftest.err 5079 }; then 5080 # Broken: success on invalid input. 5081 continue 5082 else 5083 $as_echo "$as_me: failed program was:" >&5 5084 sed 's/^/| /' conftest.$ac_ext >&5 5085 5086 # Passes both tests. 5087 ac_preproc_ok=: 5088 break 5089 fi 5090 5091 rm -f conftest.err conftest.$ac_ext 5092 5093 done 5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5095 rm -f conftest.err conftest.$ac_ext 5096 if $ac_preproc_ok; then 5097 break 5098 fi 5099 5100 done 5101 ac_cv_prog_CPP=$CPP 5102 5103 fi 5104 CPP=$ac_cv_prog_CPP 5105 else 5106 ac_cv_prog_CPP=$CPP 5107 fi 5108 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 5109 $as_echo "$CPP" >&6; } 5110 ac_preproc_ok=false 5111 for ac_c_preproc_warn_flag in '' yes 5112 do 5113 # Use a header file that comes with gcc, so configuring glibc 5114 # with a fresh cross-compiler works. 5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5116 # <limits.h> exists even on freestanding compilers. 5117 # On the NeXT, cc -E runs the code through the compiler's parser, 5118 # not just through cpp. "Syntax error" is here to catch this case. 5119 cat >conftest.$ac_ext <<_ACEOF 5120 /* confdefs.h. */ 5121 _ACEOF 5122 cat confdefs.h >>conftest.$ac_ext 5123 cat >>conftest.$ac_ext <<_ACEOF 5124 /* end confdefs.h. */ 5125 #ifdef __STDC__ 5126 # include <limits.h> 5127 #else 5128 # include <assert.h> 5129 #endif 5130 Syntax error 5131 _ACEOF 5132 if { (ac_try="$ac_cpp conftest.$ac_ext" 5133 case "(($ac_try" in 5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5135 *) ac_try_echo=$ac_try;; 5136 esac 5137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5138 $as_echo "$ac_try_echo") >&5 5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } >/dev/null && { 5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5147 test ! -s conftest.err 5148 }; then 5149 : 5150 else 5151 $as_echo "$as_me: failed program was:" >&5 5152 sed 's/^/| /' conftest.$ac_ext >&5 5153 5154 # Broken: fails on valid input. 5155 continue 5156 fi 5157 5158 rm -f conftest.err conftest.$ac_ext 5159 5160 # OK, works on sane cases. Now check whether nonexistent headers 5161 # can be detected and how. 5162 cat >conftest.$ac_ext <<_ACEOF 5163 /* confdefs.h. */ 5164 _ACEOF 5165 cat confdefs.h >>conftest.$ac_ext 5166 cat >>conftest.$ac_ext <<_ACEOF 5167 /* end confdefs.h. */ 5168 #include <ac_nonexistent.h> 5169 _ACEOF 5170 if { (ac_try="$ac_cpp conftest.$ac_ext" 5171 case "(($ac_try" in 5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5173 *) ac_try_echo=$ac_try;; 5174 esac 5175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5176 $as_echo "$ac_try_echo") >&5 5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5178 ac_status=$? 5179 grep -v '^ *+' conftest.er1 >conftest.err 5180 rm -f conftest.er1 5181 cat conftest.err >&5 5182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); } >/dev/null && { 5184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5185 test ! -s conftest.err 5186 }; then 5187 # Broken: success on invalid input. 5188 continue 5189 else 5190 $as_echo "$as_me: failed program was:" >&5 5191 sed 's/^/| /' conftest.$ac_ext >&5 5192 5193 # Passes both tests. 5194 ac_preproc_ok=: 5195 break 5196 fi 5197 5198 rm -f conftest.err conftest.$ac_ext 5199 5200 done 5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5202 rm -f conftest.err conftest.$ac_ext 5203 if $ac_preproc_ok; then 5204 : 5205 else 5206 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5208 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5209 See \`config.log' for more details." >&5 5210 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5211 See \`config.log' for more details." >&2;} 5212 { (exit 1); exit 1; }; }; } 5213 fi 5214 5215 ac_ext=c 5216 ac_cpp='$CPP $CPPFLAGS' 5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5220 5221 5222 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5223 $as_echo_n "checking for ANSI C header files... " >&6; } 5224 if test "${ac_cv_header_stdc+set}" = set; then 5225 $as_echo_n "(cached) " >&6 5226 else 5227 cat >conftest.$ac_ext <<_ACEOF 5228 /* confdefs.h. */ 5229 _ACEOF 5230 cat confdefs.h >>conftest.$ac_ext 5231 cat >>conftest.$ac_ext <<_ACEOF 5232 /* end confdefs.h. */ 5233 #include <stdlib.h> 5234 #include <stdarg.h> 5235 #include <string.h> 5236 #include <float.h> 5237 5238 int 5239 main () 5240 { 5241 5242 ; 5243 return 0; 5244 } 5245 _ACEOF 5246 rm -f conftest.$ac_objext 5247 if { (ac_try="$ac_compile" 5248 case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251 esac 5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5253 $as_echo "$ac_try_echo") >&5 5254 (eval "$ac_compile") 2>conftest.er1 5255 ac_status=$? 5256 grep -v '^ *+' conftest.er1 >conftest.err 5257 rm -f conftest.er1 5258 cat conftest.err >&5 5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); } && { 5261 test -z "$ac_c_werror_flag" || 5262 test ! -s conftest.err 5263 } && test -s conftest.$ac_objext; then 5264 ac_cv_header_stdc=yes 5265 else 5266 $as_echo "$as_me: failed program was:" >&5 5267 sed 's/^/| /' conftest.$ac_ext >&5 5268 5269 ac_cv_header_stdc=no 5270 fi 5271 5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5273 5274 if test $ac_cv_header_stdc = yes; then 5275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5276 cat >conftest.$ac_ext <<_ACEOF 5277 /* confdefs.h. */ 5278 _ACEOF 5279 cat confdefs.h >>conftest.$ac_ext 5280 cat >>conftest.$ac_ext <<_ACEOF 5281 /* end confdefs.h. */ 5282 #include <string.h> 5283 5284 _ACEOF 5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5286 $EGREP "memchr" >/dev/null 2>&1; then 5287 : 5288 else 5289 ac_cv_header_stdc=no 5290 fi 5291 rm -f conftest* 5292 5293 fi 5294 5295 if test $ac_cv_header_stdc = yes; then 5296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5297 cat >conftest.$ac_ext <<_ACEOF 5298 /* confdefs.h. */ 5299 _ACEOF 5300 cat confdefs.h >>conftest.$ac_ext 5301 cat >>conftest.$ac_ext <<_ACEOF 5302 /* end confdefs.h. */ 5303 #include <stdlib.h> 5304 5305 _ACEOF 5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5307 $EGREP "free" >/dev/null 2>&1; then 5308 : 5309 else 5310 ac_cv_header_stdc=no 5311 fi 5312 rm -f conftest* 5313 5314 fi 5315 5316 if test $ac_cv_header_stdc = yes; then 5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5318 if test "$cross_compiling" = yes; then 5319 : 5320 else 5321 cat >conftest.$ac_ext <<_ACEOF 5322 /* confdefs.h. */ 5323 _ACEOF 5324 cat confdefs.h >>conftest.$ac_ext 5325 cat >>conftest.$ac_ext <<_ACEOF 5326 /* end confdefs.h. */ 5327 #include <ctype.h> 5328 #include <stdlib.h> 5329 #if ((' ' & 0x0FF) == 0x020) 5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5332 #else 5333 # define ISLOWER(c) \ 5334 (('a' <= (c) && (c) <= 'i') \ 5335 || ('j' <= (c) && (c) <= 'r') \ 5336 || ('s' <= (c) && (c) <= 'z')) 5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5338 #endif 5339 5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5341 int 5342 main () 5343 { 5344 int i; 5345 for (i = 0; i < 256; i++) 5346 if (XOR (islower (i), ISLOWER (i)) 5347 || toupper (i) != TOUPPER (i)) 5348 return 2; 5349 return 0; 5350 } 5351 _ACEOF 5352 rm -f conftest$ac_exeext 5353 if { (ac_try="$ac_link" 5354 case "(($ac_try" in 5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5356 *) ac_try_echo=$ac_try;; 5357 esac 5358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5359 $as_echo "$ac_try_echo") >&5 5360 (eval "$ac_link") 2>&5 5361 ac_status=$? 5362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5364 { (case "(($ac_try" in 5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5366 *) ac_try_echo=$ac_try;; 5367 esac 5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5369 $as_echo "$ac_try_echo") >&5 5370 (eval "$ac_try") 2>&5 5371 ac_status=$? 5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373 (exit $ac_status); }; }; then 5374 : 5375 else 5376 $as_echo "$as_me: program exited with status $ac_status" >&5 5377 $as_echo "$as_me: failed program was:" >&5 5378 sed 's/^/| /' conftest.$ac_ext >&5 5379 5380 ( exit $ac_status ) 5381 ac_cv_header_stdc=no 5382 fi 5383 rm -rf conftest.dSYM 5384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5385 fi 5386 5387 5388 fi 5389 fi 5390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5391 $as_echo "$ac_cv_header_stdc" >&6; } 5392 if test $ac_cv_header_stdc = yes; then 5393 5394 cat >>confdefs.h <<\_ACEOF 5395 #define STDC_HEADERS 1 5396 _ACEOF 5397 5398 fi 5399 5400 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5411 inttypes.h stdint.h unistd.h 5412 do 5413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5414 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5415 $as_echo_n "checking for $ac_header... " >&6; } 5416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5417 $as_echo_n "(cached) " >&6 5418 else 5419 cat >conftest.$ac_ext <<_ACEOF 5420 /* confdefs.h. */ 5421 _ACEOF 5422 cat confdefs.h >>conftest.$ac_ext 5423 cat >>conftest.$ac_ext <<_ACEOF 5424 /* end confdefs.h. */ 5425 $ac_includes_default 5426 5427 #include <$ac_header> 5428 _ACEOF 5429 rm -f conftest.$ac_objext 5430 if { (ac_try="$ac_compile" 5431 case "(($ac_try" in 5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5433 *) ac_try_echo=$ac_try;; 5434 esac 5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5436 $as_echo "$ac_try_echo") >&5 5437 (eval "$ac_compile") 2>conftest.er1 5438 ac_status=$? 5439 grep -v '^ *+' conftest.er1 >conftest.err 5440 rm -f conftest.er1 5441 cat conftest.err >&5 5442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); } && { 5444 test -z "$ac_c_werror_flag" || 5445 test ! -s conftest.err 5446 } && test -s conftest.$ac_objext; then 5447 eval "$as_ac_Header=yes" 5448 else 5449 $as_echo "$as_me: failed program was:" >&5 5450 sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 eval "$as_ac_Header=no" 5453 fi 5454 5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5456 fi 5457 ac_res=`eval 'as_val=${'$as_ac_Header'} 5458 $as_echo "$as_val"'` 5459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5460 $as_echo "$ac_res" >&6; } 5461 as_val=`eval 'as_val=${'$as_ac_Header'} 5462 $as_echo "$as_val"'` 5463 if test "x$as_val" = x""yes; then 5464 cat >>confdefs.h <<_ACEOF 5465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5466 _ACEOF 5467 5468 fi 5469 5470 done 5471 5472 5473 5474 for ac_header in dlfcn.h 5475 do 5476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5479 $as_echo_n "checking for $ac_header... " >&6; } 5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5481 $as_echo_n "(cached) " >&6 5482 fi 5483 ac_res=`eval 'as_val=${'$as_ac_Header'} 5484 $as_echo "$as_val"'` 5485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5486 $as_echo "$ac_res" >&6; } 5487 else 5488 # Is the header compilable? 5489 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5490 $as_echo_n "checking $ac_header usability... " >&6; } 5491 cat >conftest.$ac_ext <<_ACEOF 5492 /* confdefs.h. */ 5493 _ACEOF 5494 cat confdefs.h >>conftest.$ac_ext 5495 cat >>conftest.$ac_ext <<_ACEOF 5496 /* end confdefs.h. */ 5497 $ac_includes_default 5498 #include <$ac_header> 5499 _ACEOF 5500 rm -f conftest.$ac_objext 5501 if { (ac_try="$ac_compile" 5502 case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505 esac 5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5507 $as_echo "$ac_try_echo") >&5 5508 (eval "$ac_compile") 2>conftest.er1 5509 ac_status=$? 5510 grep -v '^ *+' conftest.er1 >conftest.err 5511 rm -f conftest.er1 5512 cat conftest.err >&5 5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } && { 5515 test -z "$ac_c_werror_flag" || 5516 test ! -s conftest.err 5517 } && test -s conftest.$ac_objext; then 5518 ac_header_compiler=yes 5519 else 5520 $as_echo "$as_me: failed program was:" >&5 5521 sed 's/^/| /' conftest.$ac_ext >&5 5522 5523 ac_header_compiler=no 5524 fi 5525 5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5528 $as_echo "$ac_header_compiler" >&6; } 5529 5530 # Is the header present? 5531 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5532 $as_echo_n "checking $ac_header presence... " >&6; } 5533 cat >conftest.$ac_ext <<_ACEOF 5534 /* confdefs.h. */ 5535 _ACEOF 5536 cat confdefs.h >>conftest.$ac_ext 5537 cat >>conftest.$ac_ext <<_ACEOF 5538 /* end confdefs.h. */ 5539 #include <$ac_header> 5540 _ACEOF 5541 if { (ac_try="$ac_cpp conftest.$ac_ext" 5542 case "(($ac_try" in 5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5544 *) ac_try_echo=$ac_try;; 5545 esac 5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5547 $as_echo "$ac_try_echo") >&5 5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5549 ac_status=$? 5550 grep -v '^ *+' conftest.er1 >conftest.err 5551 rm -f conftest.er1 5552 cat conftest.err >&5 5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); } >/dev/null && { 5555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5556 test ! -s conftest.err 5557 }; then 5558 ac_header_preproc=yes 5559 else 5560 $as_echo "$as_me: failed program was:" >&5 5561 sed 's/^/| /' conftest.$ac_ext >&5 5562 5563 ac_header_preproc=no 5564 fi 5565 5566 rm -f conftest.err conftest.$ac_ext 5567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5568 $as_echo "$ac_header_preproc" >&6; } 5569 5570 # So? What about this header? 5571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5572 yes:no: ) 5573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5574 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5577 ac_header_preproc=yes 5578 ;; 5579 no:yes:* ) 5580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5581 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5583 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5585 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5587 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5591 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5592 ( cat <<\_ASBOX 5593 ## ----------------------------------------------- ## 5594 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 5595 ## ----------------------------------------------- ## 5596 _ASBOX 5597 ) | sed "s/^/$as_me: WARNING: /" >&2 5598 ;; 5599 esac 5600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5601 $as_echo_n "checking for $ac_header... " >&6; } 5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5603 $as_echo_n "(cached) " >&6 5604 else 5605 eval "$as_ac_Header=\$ac_header_preproc" 5606 fi 5607 ac_res=`eval 'as_val=${'$as_ac_Header'} 5608 $as_echo "$as_val"'` 5609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5610 $as_echo "$ac_res" >&6; } 5611 5612 fi 5613 as_val=`eval 'as_val=${'$as_ac_Header'} 5614 $as_echo "$as_val"'` 5615 if test "x$as_val" = x""yes; then 5616 cat >>confdefs.h <<_ACEOF 5617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5618 _ACEOF 5619 5620 fi 5621 5622 done 5623 5624 ac_ext=cpp 5625 ac_cpp='$CXXCPP $CPPFLAGS' 5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5629 if test -z "$CXX"; then 5630 if test -n "$CCC"; then 5631 CXX=$CCC 5632 else 5633 if test -n "$ac_tool_prefix"; then 5634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5635 do 5636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5639 $as_echo_n "checking for $ac_word... " >&6; } 5640 if test "${ac_cv_prog_CXX+set}" = set; then 5641 $as_echo_n "(cached) " >&6 5642 else 5643 if test -n "$CXX"; then 5644 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5645 else 5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5647 for as_dir in $PATH 5648 do 5649 IFS=$as_save_IFS 5650 test -z "$as_dir" && as_dir=. 5651 for ac_exec_ext in '' $ac_executable_extensions; do 5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5653 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5655 break 2 5656 fi 5657 done 5658 done 5659 IFS=$as_save_IFS 5660 5661 fi 5662 fi 5663 CXX=$ac_cv_prog_CXX 5664 if test -n "$CXX"; then 5665 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5666 $as_echo "$CXX" >&6; } 5667 else 5668 { $as_echo "$as_me:$LINENO: result: no" >&5 5669 $as_echo "no" >&6; } 5670 fi 5671 5672 5673 test -n "$CXX" && break 5674 done 5675 fi 5676 if test -z "$CXX"; then 5677 ac_ct_CXX=$CXX 5678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5679 do 5680 # Extract the first word of "$ac_prog", so it can be a program name with args. 5681 set dummy $ac_prog; ac_word=$2 5682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5683 $as_echo_n "checking for $ac_word... " >&6; } 5684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5685 $as_echo_n "(cached) " >&6 5686 else 5687 if test -n "$ac_ct_CXX"; then 5688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5689 else 5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691 for as_dir in $PATH 5692 do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5697 ac_cv_prog_ac_ct_CXX="$ac_prog" 5698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701 done 5702 done 5703 IFS=$as_save_IFS 5704 5705 fi 5706 fi 5707 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5708 if test -n "$ac_ct_CXX"; then 5709 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5710 $as_echo "$ac_ct_CXX" >&6; } 5711 else 5712 { $as_echo "$as_me:$LINENO: result: no" >&5 5713 $as_echo "no" >&6; } 5714 fi 5715 5716 5717 test -n "$ac_ct_CXX" && break 5718 done 5719 5720 if test "x$ac_ct_CXX" = x; then 5721 CXX="g++" 5722 else 5723 case $cross_compiling:$ac_tool_warned in 5724 yes:) 5725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5727 ac_tool_warned=yes ;; 5728 esac 5729 CXX=$ac_ct_CXX 5730 fi 5731 fi 5732 5733 fi 5734 fi 5735 # Provide some information about the compiler. 5736 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5737 set X $ac_compile 5738 ac_compiler=$2 5739 { (ac_try="$ac_compiler --version >&5" 5740 case "(($ac_try" in 5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5742 *) ac_try_echo=$ac_try;; 5743 esac 5744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5745 $as_echo "$ac_try_echo") >&5 5746 (eval "$ac_compiler --version >&5") 2>&5 5747 ac_status=$? 5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); } 5750 { (ac_try="$ac_compiler -v >&5" 5751 case "(($ac_try" in 5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5753 *) ac_try_echo=$ac_try;; 5754 esac 5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5756 $as_echo "$ac_try_echo") >&5 5757 (eval "$ac_compiler -v >&5") 2>&5 5758 ac_status=$? 5759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); } 5761 { (ac_try="$ac_compiler -V >&5" 5762 case "(($ac_try" in 5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5764 *) ac_try_echo=$ac_try;; 5765 esac 5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5767 $as_echo "$ac_try_echo") >&5 5768 (eval "$ac_compiler -V >&5") 2>&5 5769 ac_status=$? 5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 (exit $ac_status); } 5772 5773 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5776 $as_echo_n "(cached) " >&6 5777 else 5778 cat >conftest.$ac_ext <<_ACEOF 5779 /* confdefs.h. */ 5780 _ACEOF 5781 cat confdefs.h >>conftest.$ac_ext 5782 cat >>conftest.$ac_ext <<_ACEOF 5783 /* end confdefs.h. */ 5784 5785 int 5786 main () 5787 { 5788 #ifndef __GNUC__ 5789 choke me 5790 #endif 5791 5792 ; 5793 return 0; 5794 } 5795 _ACEOF 5796 rm -f conftest.$ac_objext 5797 if { (ac_try="$ac_compile" 5798 case "(($ac_try" in 5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5800 *) ac_try_echo=$ac_try;; 5801 esac 5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5803 $as_echo "$ac_try_echo") >&5 5804 (eval "$ac_compile") 2>conftest.er1 5805 ac_status=$? 5806 grep -v '^ *+' conftest.er1 >conftest.err 5807 rm -f conftest.er1 5808 cat conftest.err >&5 5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); } && { 5811 test -z "$ac_cxx_werror_flag" || 5812 test ! -s conftest.err 5813 } && test -s conftest.$ac_objext; then 5814 ac_compiler_gnu=yes 5815 else 5816 $as_echo "$as_me: failed program was:" >&5 5817 sed 's/^/| /' conftest.$ac_ext >&5 5818 5819 ac_compiler_gnu=no 5820 fi 5821 5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5824 5825 fi 5826 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5828 if test $ac_compiler_gnu = yes; then 5829 GXX=yes 5830 else 5831 GXX= 5832 fi 5833 ac_test_CXXFLAGS=${CXXFLAGS+set} 5834 ac_save_CXXFLAGS=$CXXFLAGS 5835 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5836 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 5837 if test "${ac_cv_prog_cxx_g+set}" = set; then 5838 $as_echo_n "(cached) " >&6 5839 else 5840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5841 ac_cxx_werror_flag=yes 5842 ac_cv_prog_cxx_g=no 5843 CXXFLAGS="-g" 5844 cat >conftest.$ac_ext <<_ACEOF 5845 /* confdefs.h. */ 5846 _ACEOF 5847 cat confdefs.h >>conftest.$ac_ext 5848 cat >>conftest.$ac_ext <<_ACEOF 5849 /* end confdefs.h. */ 5850 5851 int 5852 main () 5853 { 5854 5855 ; 5856 return 0; 5857 } 5858 _ACEOF 5859 rm -f conftest.$ac_objext 5860 if { (ac_try="$ac_compile" 5861 case "(($ac_try" in 5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5863 *) ac_try_echo=$ac_try;; 5864 esac 5865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5866 $as_echo "$ac_try_echo") >&5 5867 (eval "$ac_compile") 2>conftest.er1 5868 ac_status=$? 5869 grep -v '^ *+' conftest.er1 >conftest.err 5870 rm -f conftest.er1 5871 cat conftest.err >&5 5872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); } && { 5874 test -z "$ac_cxx_werror_flag" || 5875 test ! -s conftest.err 5876 } && test -s conftest.$ac_objext; then 5877 ac_cv_prog_cxx_g=yes 5878 else 5879 $as_echo "$as_me: failed program was:" >&5 5880 sed 's/^/| /' conftest.$ac_ext >&5 5881 5882 CXXFLAGS="" 5883 cat >conftest.$ac_ext <<_ACEOF 5884 /* confdefs.h. */ 5885 _ACEOF 5886 cat confdefs.h >>conftest.$ac_ext 5887 cat >>conftest.$ac_ext <<_ACEOF 5888 /* end confdefs.h. */ 5889 5890 int 5891 main () 5892 { 5893 5894 ; 5895 return 0; 5896 } 5897 _ACEOF 5898 rm -f conftest.$ac_objext 5899 if { (ac_try="$ac_compile" 5900 case "(($ac_try" in 5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5902 *) ac_try_echo=$ac_try;; 5903 esac 5904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5905 $as_echo "$ac_try_echo") >&5 5906 (eval "$ac_compile") 2>conftest.er1 5907 ac_status=$? 5908 grep -v '^ *+' conftest.er1 >conftest.err 5909 rm -f conftest.er1 5910 cat conftest.err >&5 5911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5912 (exit $ac_status); } && { 5913 test -z "$ac_cxx_werror_flag" || 5914 test ! -s conftest.err 5915 } && test -s conftest.$ac_objext; then 5916 : 5917 else 5918 $as_echo "$as_me: failed program was:" >&5 5919 sed 's/^/| /' conftest.$ac_ext >&5 5920 5921 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5922 CXXFLAGS="-g" 5923 cat >conftest.$ac_ext <<_ACEOF 5924 /* confdefs.h. */ 5925 _ACEOF 5926 cat confdefs.h >>conftest.$ac_ext 5927 cat >>conftest.$ac_ext <<_ACEOF 5928 /* end confdefs.h. */ 5929 5930 int 5931 main () 5932 { 5933 5934 ; 5935 return 0; 5936 } 5937 _ACEOF 5938 rm -f conftest.$ac_objext 5939 if { (ac_try="$ac_compile" 5940 case "(($ac_try" in 5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5942 *) ac_try_echo=$ac_try;; 5943 esac 5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5945 $as_echo "$ac_try_echo") >&5 5946 (eval "$ac_compile") 2>conftest.er1 5947 ac_status=$? 5948 grep -v '^ *+' conftest.er1 >conftest.err 5949 rm -f conftest.er1 5950 cat conftest.err >&5 5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5952 (exit $ac_status); } && { 5953 test -z "$ac_cxx_werror_flag" || 5954 test ! -s conftest.err 5955 } && test -s conftest.$ac_objext; then 5956 ac_cv_prog_cxx_g=yes 5957 else 5958 $as_echo "$as_me: failed program was:" >&5 5959 sed 's/^/| /' conftest.$ac_ext >&5 5960 5961 5962 fi 5963 5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5965 fi 5966 5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5968 fi 5969 5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5972 fi 5973 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5974 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5975 if test "$ac_test_CXXFLAGS" = set; then 5976 CXXFLAGS=$ac_save_CXXFLAGS 5977 elif test $ac_cv_prog_cxx_g = yes; then 5978 if test "$GXX" = yes; then 5979 CXXFLAGS="-g -O2" 5980 else 5981 CXXFLAGS="-g" 5982 fi 5983 else 5984 if test "$GXX" = yes; then 5985 CXXFLAGS="-O2" 5986 else 5987 CXXFLAGS= 5988 fi 5989 fi 5990 ac_ext=cpp 5991 ac_cpp='$CXXCPP $CPPFLAGS' 5992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5995 5996 depcc="$CXX" am_compiler_list= 5997 5998 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5999 $as_echo_n "checking dependency style of $depcc... " >&6; } 6000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6001 $as_echo_n "(cached) " >&6 6002 else 6003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6004 # We make a subdir and do the tests there. Otherwise we can end up 6005 # making bogus files that we don't know about and never remove. For 6006 # instance it was reported that on HP-UX the gcc test will end up 6007 # making a dummy file named `D' -- because `-MD' means `put the output 6008 # in D'. 6009 mkdir conftest.dir 6010 # Copy depcomp to subdir because otherwise we won't find it if we're 6011 # using a relative directory. 6012 cp "$am_depcomp" conftest.dir 6013 cd conftest.dir 6014 # We will build objects and dependencies in a subdirectory because 6015 # it helps to detect inapplicable dependency modes. For instance 6016 # both Tru64's cc and ICC support -MD to output dependencies as a 6017 # side effect of compilation, but ICC will put the dependencies in 6018 # the current directory while Tru64 will put them in the object 6019 # directory. 6020 mkdir sub 6021 6022 am_cv_CXX_dependencies_compiler_type=none 6023 if test "$am_compiler_list" = ""; then 6024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6025 fi 6026 for depmode in $am_compiler_list; do 6027 # Setup a source with many dependencies, because some compilers 6028 # like to wrap large dependency lists on column 80 (with \), and 6029 # we should not choose a depcomp mode which is confused by this. 6030 # 6031 # We need to recreate these files for each test, as the compiler may 6032 # overwrite some of them when testing with obscure command lines. 6033 # This happens at least with the AIX C compiler. 6034 : > sub/conftest.c 6035 for i in 1 2 3 4 5 6; do 6036 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6038 # Solaris 8's {/usr,}/bin/sh. 6039 touch sub/conftst$i.h 6040 done 6041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6042 6043 case $depmode in 6044 nosideeffect) 6045 # after this tag, mechanisms are not by side-effect, so they'll 6046 # only be used when explicitly requested 6047 if test "x$enable_dependency_tracking" = xyes; then 6048 continue 6049 else 6050 break 6051 fi 6052 ;; 6053 none) break ;; 6054 esac 6055 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6056 # mode. It turns out that the SunPro C++ compiler does not properly 6057 # handle `-M -o', and we need to detect this. 6058 if depmode=$depmode \ 6059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6062 >/dev/null 2>conftest.err && 6063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6067 # icc doesn't choke on unknown options, it will just issue warnings 6068 # or remarks (even with -Werror). So we grep stderr for any message 6069 # that says an option was ignored or not supported. 6070 # When given -MP, icc 7.0 and 7.1 complain thusly: 6071 # icc: Command line warning: ignoring option '-M'; no argument required 6072 # The diagnosis changed in icc 8.0: 6073 # icc: Command line remark: option '-MP' not supported 6074 if (grep 'ignoring option' conftest.err || 6075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6076 am_cv_CXX_dependencies_compiler_type=$depmode 6077 break 6078 fi 6079 fi 6080 done 6081 6082 cd .. 6083 rm -rf conftest.dir 6084 else 6085 am_cv_CXX_dependencies_compiler_type=none 6086 fi 6087 6088 fi 6089 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6090 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6091 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6092 6093 if 6094 test "x$enable_dependency_tracking" != xno \ 6095 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6096 am__fastdepCXX_TRUE= 6097 am__fastdepCXX_FALSE='#' 6098 else 6099 am__fastdepCXX_TRUE='#' 6100 am__fastdepCXX_FALSE= 6101 fi 6102 6103 6104 6105 6106 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6107 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6108 (test "X$CXX" != "Xg++"))) ; then 6109 ac_ext=cpp 6110 ac_cpp='$CXXCPP $CPPFLAGS' 6111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6114 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6115 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6116 if test -z "$CXXCPP"; then 6117 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6118 $as_echo_n "(cached) " >&6 6119 else 6120 # Double quotes because CXXCPP needs to be expanded 6121 for CXXCPP in "$CXX -E" "/lib/cpp" 6122 do 6123 ac_preproc_ok=false 6124 for ac_cxx_preproc_warn_flag in '' yes 6125 do 6126 # Use a header file that comes with gcc, so configuring glibc 6127 # with a fresh cross-compiler works. 6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6129 # <limits.h> exists even on freestanding compilers. 6130 # On the NeXT, cc -E runs the code through the compiler's parser, 6131 # not just through cpp. "Syntax error" is here to catch this case. 6132 cat >conftest.$ac_ext <<_ACEOF 6133 /* confdefs.h. */ 6134 _ACEOF 6135 cat confdefs.h >>conftest.$ac_ext 6136 cat >>conftest.$ac_ext <<_ACEOF 6137 /* end confdefs.h. */ 6138 #ifdef __STDC__ 6139 # include <limits.h> 6140 #else 6141 # include <assert.h> 6142 #endif 6143 Syntax error 6144 _ACEOF 6145 if { (ac_try="$ac_cpp conftest.$ac_ext" 6146 case "(($ac_try" in 6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6148 *) ac_try_echo=$ac_try;; 6149 esac 6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6151 $as_echo "$ac_try_echo") >&5 6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6153 ac_status=$? 6154 grep -v '^ *+' conftest.er1 >conftest.err 6155 rm -f conftest.er1 6156 cat conftest.err >&5 6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); } >/dev/null && { 6159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6160 test ! -s conftest.err 6161 }; then 6162 : 6163 else 6164 $as_echo "$as_me: failed program was:" >&5 6165 sed 's/^/| /' conftest.$ac_ext >&5 6166 6167 # Broken: fails on valid input. 6168 continue 6169 fi 6170 6171 rm -f conftest.err conftest.$ac_ext 6172 6173 # OK, works on sane cases. Now check whether nonexistent headers 6174 # can be detected and how. 6175 cat >conftest.$ac_ext <<_ACEOF 6176 /* confdefs.h. */ 6177 _ACEOF 6178 cat confdefs.h >>conftest.$ac_ext 6179 cat >>conftest.$ac_ext <<_ACEOF 6180 /* end confdefs.h. */ 6181 #include <ac_nonexistent.h> 6182 _ACEOF 6183 if { (ac_try="$ac_cpp conftest.$ac_ext" 6184 case "(($ac_try" in 6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6186 *) ac_try_echo=$ac_try;; 6187 esac 6188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6189 $as_echo "$ac_try_echo") >&5 6190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6191 ac_status=$? 6192 grep -v '^ *+' conftest.er1 >conftest.err 6193 rm -f conftest.er1 6194 cat conftest.err >&5 6195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6196 (exit $ac_status); } >/dev/null && { 6197 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6198 test ! -s conftest.err 6199 }; then 6200 # Broken: success on invalid input. 6201 continue 6202 else 6203 $as_echo "$as_me: failed program was:" >&5 6204 sed 's/^/| /' conftest.$ac_ext >&5 6205 6206 # Passes both tests. 6207 ac_preproc_ok=: 6208 break 6209 fi 6210 6211 rm -f conftest.err conftest.$ac_ext 6212 6213 done 6214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6215 rm -f conftest.err conftest.$ac_ext 6216 if $ac_preproc_ok; then 6217 break 6218 fi 6219 6220 done 6221 ac_cv_prog_CXXCPP=$CXXCPP 6222 6223 fi 6224 CXXCPP=$ac_cv_prog_CXXCPP 6225 else 6226 ac_cv_prog_CXXCPP=$CXXCPP 6227 fi 6228 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6229 $as_echo "$CXXCPP" >&6; } 6230 ac_preproc_ok=false 6231 for ac_cxx_preproc_warn_flag in '' yes 6232 do 6233 # Use a header file that comes with gcc, so configuring glibc 6234 # with a fresh cross-compiler works. 6235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6236 # <limits.h> exists even on freestanding compilers. 6237 # On the NeXT, cc -E runs the code through the compiler's parser, 6238 # not just through cpp. "Syntax error" is here to catch this case. 6239 cat >conftest.$ac_ext <<_ACEOF 6240 /* confdefs.h. */ 6241 _ACEOF 6242 cat confdefs.h >>conftest.$ac_ext 6243 cat >>conftest.$ac_ext <<_ACEOF 6244 /* end confdefs.h. */ 6245 #ifdef __STDC__ 6246 # include <limits.h> 6247 #else 6248 # include <assert.h> 6249 #endif 6250 Syntax error 6251 _ACEOF 6252 if { (ac_try="$ac_cpp conftest.$ac_ext" 6253 case "(($ac_try" in 6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6255 *) ac_try_echo=$ac_try;; 6256 esac 6257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6258 $as_echo "$ac_try_echo") >&5 6259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6260 ac_status=$? 6261 grep -v '^ *+' conftest.er1 >conftest.err 6262 rm -f conftest.er1 6263 cat conftest.err >&5 6264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6265 (exit $ac_status); } >/dev/null && { 6266 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6267 test ! -s conftest.err 6268 }; then 6269 : 6270 else 6271 $as_echo "$as_me: failed program was:" >&5 6272 sed 's/^/| /' conftest.$ac_ext >&5 6273 6274 # Broken: fails on valid input. 6275 continue 6276 fi 6277 6278 rm -f conftest.err conftest.$ac_ext 6279 6280 # OK, works on sane cases. Now check whether nonexistent headers 6281 # can be detected and how. 6282 cat >conftest.$ac_ext <<_ACEOF 6283 /* confdefs.h. */ 6284 _ACEOF 6285 cat confdefs.h >>conftest.$ac_ext 6286 cat >>conftest.$ac_ext <<_ACEOF 6287 /* end confdefs.h. */ 6288 #include <ac_nonexistent.h> 6289 _ACEOF 6290 if { (ac_try="$ac_cpp conftest.$ac_ext" 6291 case "(($ac_try" in 6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6293 *) ac_try_echo=$ac_try;; 6294 esac 6295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6296 $as_echo "$ac_try_echo") >&5 6297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6298 ac_status=$? 6299 grep -v '^ *+' conftest.er1 >conftest.err 6300 rm -f conftest.er1 6301 cat conftest.err >&5 6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6303 (exit $ac_status); } >/dev/null && { 6304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6305 test ! -s conftest.err 6306 }; then 6307 # Broken: success on invalid input. 6308 continue 6309 else 6310 $as_echo "$as_me: failed program was:" >&5 6311 sed 's/^/| /' conftest.$ac_ext >&5 6312 6313 # Passes both tests. 6314 ac_preproc_ok=: 6315 break 6316 fi 6317 6318 rm -f conftest.err conftest.$ac_ext 6319 6320 done 6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6322 rm -f conftest.err conftest.$ac_ext 6323 if $ac_preproc_ok; then 6324 : 6325 else 6326 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6328 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6329 See \`config.log' for more details." >&5 6330 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6331 See \`config.log' for more details." >&2;} 6332 { (exit 1); exit 1; }; }; } 6333 fi 6334 6335 ac_ext=cpp 6336 ac_cpp='$CXXCPP $CPPFLAGS' 6337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6340 6341 fi 6342 6343 6344 ac_ext=f 6345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6348 if test -n "$ac_tool_prefix"; then 6349 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 6350 do 6351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6354 $as_echo_n "checking for $ac_word... " >&6; } 6355 if test "${ac_cv_prog_F77+set}" = set; then 6356 $as_echo_n "(cached) " >&6 6357 else 6358 if test -n "$F77"; then 6359 ac_cv_prog_F77="$F77" # 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_F77="$ac_tool_prefix$ac_prog" 6369 $as_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 F77=$ac_cv_prog_F77 6379 if test -n "$F77"; then 6380 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6381 $as_echo "$F77" >&6; } 6382 else 6383 { $as_echo "$as_me:$LINENO: result: no" >&5 6384 $as_echo "no" >&6; } 6385 fi 6386 6387 6388 test -n "$F77" && break 6389 done 6390 fi 6391 if test -z "$F77"; then 6392 ac_ct_F77=$F77 6393 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 6394 do 6395 # Extract the first word of "$ac_prog", so it can be a program name with args. 6396 set dummy $ac_prog; ac_word=$2 6397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6398 $as_echo_n "checking for $ac_word... " >&6; } 6399 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6400 $as_echo_n "(cached) " >&6 6401 else 6402 if test -n "$ac_ct_F77"; then 6403 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6404 else 6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406 for as_dir in $PATH 6407 do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6412 ac_cv_prog_ac_ct_F77="$ac_prog" 6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416 done 6417 done 6418 IFS=$as_save_IFS 6419 6420 fi 6421 fi 6422 ac_ct_F77=$ac_cv_prog_ac_ct_F77 6423 if test -n "$ac_ct_F77"; then 6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6425 $as_echo "$ac_ct_F77" >&6; } 6426 else 6427 { $as_echo "$as_me:$LINENO: result: no" >&5 6428 $as_echo "no" >&6; } 6429 fi 6430 6431 6432 test -n "$ac_ct_F77" && break 6433 done 6434 6435 if test "x$ac_ct_F77" = x; then 6436 F77="" 6437 else 6438 case $cross_compiling:$ac_tool_warned in 6439 yes:) 6440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6442 ac_tool_warned=yes ;; 6443 esac 6444 F77=$ac_ct_F77 6445 fi 6446 fi 6447 6448 6449 # Provide some information about the compiler. 6450 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6451 set X $ac_compile 6452 ac_compiler=$2 6453 { (ac_try="$ac_compiler --version >&5" 6454 case "(($ac_try" in 6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6456 *) ac_try_echo=$ac_try;; 6457 esac 6458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6459 $as_echo "$ac_try_echo") >&5 6460 (eval "$ac_compiler --version >&5") 2>&5 6461 ac_status=$? 6462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); } 6464 { (ac_try="$ac_compiler -v >&5" 6465 case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468 esac 6469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6470 $as_echo "$ac_try_echo") >&5 6471 (eval "$ac_compiler -v >&5") 2>&5 6472 ac_status=$? 6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6474 (exit $ac_status); } 6475 { (ac_try="$ac_compiler -V >&5" 6476 case "(($ac_try" in 6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6478 *) ac_try_echo=$ac_try;; 6479 esac 6480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6481 $as_echo "$ac_try_echo") >&5 6482 (eval "$ac_compiler -V >&5") 2>&5 6483 ac_status=$? 6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } 6486 rm -f a.out 6487 6488 # If we don't use `.F' as extension, the preprocessor is not run on the 6489 # input file. (Note that this only needs to work for GNU compilers.) 6490 ac_save_ext=$ac_ext 6491 ac_ext=F 6492 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6493 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6494 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6495 $as_echo_n "(cached) " >&6 6496 else 6497 cat >conftest.$ac_ext <<_ACEOF 6498 program main 6499 #ifndef __GNUC__ 6500 choke me 6501 #endif 6502 6503 end 6504 _ACEOF 6505 rm -f conftest.$ac_objext 6506 if { (ac_try="$ac_compile" 6507 case "(($ac_try" in 6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6509 *) ac_try_echo=$ac_try;; 6510 esac 6511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6512 $as_echo "$ac_try_echo") >&5 6513 (eval "$ac_compile") 2>conftest.er1 6514 ac_status=$? 6515 grep -v '^ *+' conftest.er1 >conftest.err 6516 rm -f conftest.er1 6517 cat conftest.err >&5 6518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6519 (exit $ac_status); } && { 6520 test -z "$ac_f77_werror_flag" || 6521 test ! -s conftest.err 6522 } && test -s conftest.$ac_objext; then 6523 ac_compiler_gnu=yes 6524 else 6525 $as_echo "$as_me: failed program was:" >&5 6526 sed 's/^/| /' conftest.$ac_ext >&5 6527 6528 ac_compiler_gnu=no 6529 fi 6530 6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6532 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6533 6534 fi 6535 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6536 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6537 ac_ext=$ac_save_ext 6538 ac_test_FFLAGS=${FFLAGS+set} 6539 ac_save_FFLAGS=$FFLAGS 6540 FFLAGS= 6541 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6542 $as_echo_n "checking whether $F77 accepts -g... " >&6; } 6543 if test "${ac_cv_prog_f77_g+set}" = set; then 6544 $as_echo_n "(cached) " >&6 6545 else 6546 FFLAGS=-g 6547 cat >conftest.$ac_ext <<_ACEOF 6548 program main 6549 6550 end 6551 _ACEOF 6552 rm -f conftest.$ac_objext 6553 if { (ac_try="$ac_compile" 6554 case "(($ac_try" in 6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6556 *) ac_try_echo=$ac_try;; 6557 esac 6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6559 $as_echo "$ac_try_echo") >&5 6560 (eval "$ac_compile") 2>conftest.er1 6561 ac_status=$? 6562 grep -v '^ *+' conftest.er1 >conftest.err 6563 rm -f conftest.er1 6564 cat conftest.err >&5 6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6566 (exit $ac_status); } && { 6567 test -z "$ac_f77_werror_flag" || 6568 test ! -s conftest.err 6569 } && test -s conftest.$ac_objext; then 6570 ac_cv_prog_f77_g=yes 6571 else 6572 $as_echo "$as_me: failed program was:" >&5 6573 sed 's/^/| /' conftest.$ac_ext >&5 6574 6575 ac_cv_prog_f77_g=no 6576 fi 6577 6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6579 6580 fi 6581 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6582 $as_echo "$ac_cv_prog_f77_g" >&6; } 6583 if test "$ac_test_FFLAGS" = set; then 6584 FFLAGS=$ac_save_FFLAGS 6585 elif test $ac_cv_prog_f77_g = yes; then 6586 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6587 FFLAGS="-g -O2" 6588 else 6589 FFLAGS="-g" 6590 fi 6591 else 6592 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6593 FFLAGS="-O2" 6594 else 6595 FFLAGS= 6596 fi 6597 fi 6598 6599 if test $ac_compiler_gnu = yes; then 6600 G77=yes 6601 else 6602 G77= 6603 fi 6604 ac_ext=c 6605 ac_cpp='$CPP $CPPFLAGS' 6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6609 6610 6611 6612 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6613 6614 # find the maximum length of command line arguments 6615 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6616 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6618 $as_echo_n "(cached) " >&6 6619 else 6620 i=0 6621 teststring="ABCD" 6622 6623 case $build_os in 6624 msdosdjgpp*) 6625 # On DJGPP, this test can blow up pretty badly due to problems in libc 6626 # (any single argument exceeding 2000 bytes causes a buffer overrun 6627 # during glob expansion). Even if it were fixed, the result of this 6628 # check would be larger than it should be. 6629 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6630 ;; 6631 6632 gnu*) 6633 # Under GNU Hurd, this test is not required because there is 6634 # no limit to the length of command line arguments. 6635 # Libtool will interpret -1 as no limit whatsoever 6636 lt_cv_sys_max_cmd_len=-1; 6637 ;; 6638 6639 cygwin* | mingw*) 6640 # On Win9x/ME, this test blows up -- it succeeds, but takes 6641 # about 5 minutes as the teststring grows exponentially. 6642 # Worse, since 9x/ME are not pre-emptively multitasking, 6643 # you end up with a "frozen" computer, even though with patience 6644 # the test eventually succeeds (with a max line length of 256k). 6645 # Instead, let's just punt: use the minimum linelength reported by 6646 # all of the supported platforms: 8192 (on NT/2K/XP). 6647 lt_cv_sys_max_cmd_len=8192; 6648 ;; 6649 6650 amigaos*) 6651 # On AmigaOS with pdksh, this test takes hours, literally. 6652 # So we just punt and use a minimum line length of 8192. 6653 lt_cv_sys_max_cmd_len=8192; 6654 ;; 6655 6656 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6657 # This has been around since 386BSD, at least. Likely further. 6658 if test -x /sbin/sysctl; then 6659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6660 elif test -x /usr/sbin/sysctl; then 6661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6662 else 6663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6664 fi 6665 # And add a safety zone 6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6668 ;; 6669 6670 interix*) 6671 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6672 lt_cv_sys_max_cmd_len=196608 6673 ;; 6674 6675 osf*) 6676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6678 # nice to cause kernel panics so lets avoid the loop below. 6679 # First set a reasonable default. 6680 lt_cv_sys_max_cmd_len=16384 6681 # 6682 if test -x /sbin/sysconfig; then 6683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6684 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6685 esac 6686 fi 6687 ;; 6688 sco3.2v5*) 6689 lt_cv_sys_max_cmd_len=102400 6690 ;; 6691 sysv5* | sco5v6* | sysv4.2uw2*) 6692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6693 if test -n "$kargmax"; then 6694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6695 else 6696 lt_cv_sys_max_cmd_len=32768 6697 fi 6698 ;; 6699 *) 6700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6701 if test -n "$lt_cv_sys_max_cmd_len"; then 6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6704 else 6705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6706 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6707 = "XX$teststring") >/dev/null 2>&1 && 6708 new_result=`expr "X$teststring" : ".*" 2>&1` && 6709 lt_cv_sys_max_cmd_len=$new_result && 6710 test $i != 17 # 1/2 MB should be enough 6711 do 6712 i=`expr $i + 1` 6713 teststring=$teststring$teststring 6714 done 6715 teststring= 6716 # Add a significant safety factor because C++ compilers can tack on massive 6717 # amounts of additional arguments before passing them to the linker. 6718 # It appears as though 1/2 is a usable value. 6719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6720 fi 6721 ;; 6722 esac 6723 6724 fi 6725 6726 if test -n $lt_cv_sys_max_cmd_len ; then 6727 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6728 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6729 else 6730 { $as_echo "$as_me:$LINENO: result: none" >&5 6731 $as_echo "none" >&6; } 6732 fi 6733 6734 6735 6736 6737 6738 # Check for command to grab the raw symbol name followed by C symbol from nm. 6739 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6740 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6741 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6742 $as_echo_n "(cached) " >&6 6743 else 6744 6745 # These are sane defaults that work on at least a few old systems. 6746 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6747 6748 # Character class describing NM global symbol codes. 6749 symcode='[BCDEGRST]' 6750 6751 # Regexp to match symbols that can be accessed directly from C. 6752 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6753 6754 # Transform an extracted symbol line into a proper C declaration 6755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6756 6757 # Transform an extracted symbol line into symbol name and symbol address 6758 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'" 6759 6760 # Define system-specific variables. 6761 case $host_os in 6762 aix*) 6763 symcode='[BCDT]' 6764 ;; 6765 cygwin* | mingw* | pw32*) 6766 symcode='[ABCDGISTW]' 6767 ;; 6768 hpux*) # Its linker distinguishes data from code symbols 6769 if test "$host_cpu" = ia64; then 6770 symcode='[ABCDEGRST]' 6771 fi 6772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6773 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'" 6774 ;; 6775 linux* | k*bsd*-gnu) 6776 if test "$host_cpu" = ia64; then 6777 symcode='[ABCDGIRSTW]' 6778 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6779 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'" 6780 fi 6781 ;; 6782 irix* | nonstopux*) 6783 symcode='[BCDEGRST]' 6784 ;; 6785 osf*) 6786 symcode='[BCDEGQRST]' 6787 ;; 6788 solaris*) 6789 symcode='[BDRT]' 6790 ;; 6791 sco3.2v5*) 6792 symcode='[DT]' 6793 ;; 6794 sysv4.2uw2*) 6795 symcode='[DT]' 6796 ;; 6797 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6798 symcode='[ABDT]' 6799 ;; 6800 sysv4) 6801 symcode='[DFNSTU]' 6802 ;; 6803 esac 6804 6805 # Handle CRLF in mingw tool chain 6806 opt_cr= 6807 case $build_os in 6808 mingw*) 6809 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6810 ;; 6811 esac 6812 6813 # If we're using GNU nm, then use its standard symbol codes. 6814 case `$NM -V 2>&1` in 6815 *GNU* | *'with BFD'*) 6816 symcode='[ABCDGIRSTW]' ;; 6817 esac 6818 6819 # Try without a prefix undercore, then with it. 6820 for ac_symprfx in "" "_"; do 6821 6822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6823 symxfrm="\\1 $ac_symprfx\\2 \\2" 6824 6825 # Write the raw and C identifiers. 6826 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6827 6828 # Check to see that the pipe works correctly. 6829 pipe_works=no 6830 6831 rm -f conftest* 6832 cat > conftest.$ac_ext <<EOF 6833 #ifdef __cplusplus 6834 extern "C" { 6835 #endif 6836 char nm_test_var; 6837 void nm_test_func(){} 6838 #ifdef __cplusplus 6839 } 6840 #endif 6841 int main(){nm_test_var='a';nm_test_func();return(0);} 6842 EOF 6843 6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6845 (eval $ac_compile) 2>&5 6846 ac_status=$? 6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6848 (exit $ac_status); }; then 6849 # Now try to grab the symbols. 6850 nlist=conftest.nm 6851 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6852 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6853 ac_status=$? 6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6855 (exit $ac_status); } && test -s "$nlist"; then 6856 # Try sorting and uniquifying the output. 6857 if sort "$nlist" | uniq > "$nlist"T; then 6858 mv -f "$nlist"T "$nlist" 6859 else 6860 rm -f "$nlist"T 6861 fi 6862 6863 # Make sure that we snagged all the symbols we need. 6864 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6865 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6866 cat <<EOF > conftest.$ac_ext 6867 #ifdef __cplusplus 6868 extern "C" { 6869 #endif 6870 6871 EOF 6872 # Now generate the symbol file. 6873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6874 6875 cat <<EOF >> conftest.$ac_ext 6876 #if defined (__STDC__) && __STDC__ 6877 # define lt_ptr_t void * 6878 #else 6879 # define lt_ptr_t char * 6880 # define const 6881 #endif 6882 6883 /* The mapping between symbol names and symbols. */ 6884 const struct { 6885 const char *name; 6886 lt_ptr_t address; 6887 } 6888 lt_preloaded_symbols[] = 6889 { 6890 EOF 6891 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6892 cat <<\EOF >> conftest.$ac_ext 6893 {0, (lt_ptr_t) 0} 6894 }; 6895 6896 #ifdef __cplusplus 6897 } 6898 #endif 6899 EOF 6900 # Now try linking the two files. 6901 mv conftest.$ac_objext conftstm.$ac_objext 6902 lt_save_LIBS="$LIBS" 6903 lt_save_CFLAGS="$CFLAGS" 6904 LIBS="conftstm.$ac_objext" 6905 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6907 (eval $ac_link) 2>&5 6908 ac_status=$? 6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6910 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6911 pipe_works=yes 6912 fi 6913 LIBS="$lt_save_LIBS" 6914 CFLAGS="$lt_save_CFLAGS" 6915 else 6916 echo "cannot find nm_test_func in $nlist" >&5 6917 fi 6918 else 6919 echo "cannot find nm_test_var in $nlist" >&5 6920 fi 6921 else 6922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6923 fi 6924 else 6925 echo "$progname: failed program was:" >&5 6926 cat conftest.$ac_ext >&5 6927 fi 6928 rm -f conftest* conftst* 6929 6930 # Do not use the global_symbol_pipe unless it works. 6931 if test "$pipe_works" = yes; then 6932 break 6933 else 6934 lt_cv_sys_global_symbol_pipe= 6935 fi 6936 done 6937 6938 fi 6939 6940 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6941 lt_cv_sys_global_symbol_to_cdecl= 6942 fi 6943 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6944 { $as_echo "$as_me:$LINENO: result: failed" >&5 6945 $as_echo "failed" >&6; } 6946 else 6947 { $as_echo "$as_me:$LINENO: result: ok" >&5 6948 $as_echo "ok" >&6; } 6949 fi 6950 6951 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 6952 $as_echo_n "checking for objdir... " >&6; } 6953 if test "${lt_cv_objdir+set}" = set; then 6954 $as_echo_n "(cached) " >&6 6955 else 6956 rm -f .libs 2>/dev/null 6957 mkdir .libs 2>/dev/null 6958 if test -d .libs; then 6959 lt_cv_objdir=.libs 6960 else 6961 # MS-DOS does not allow filenames that begin with a dot. 6962 lt_cv_objdir=_libs 6963 fi 6964 rmdir .libs 2>/dev/null 6965 fi 6966 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6967 $as_echo "$lt_cv_objdir" >&6; } 6968 objdir=$lt_cv_objdir 6969 6970 6971 6972 6973 6974 case $host_os in 6975 aix3*) 6976 # AIX sometimes has problems with the GCC collect2 program. For some 6977 # reason, if we set the COLLECT_NAMES environment variable, the problems 6978 # vanish in a puff of smoke. 6979 if test "X${COLLECT_NAMES+set}" != Xset; then 6980 COLLECT_NAMES= 6981 export COLLECT_NAMES 6982 fi 6983 ;; 6984 esac 6985 6986 # Sed substitution that helps us do robust quoting. It backslashifies 6987 # metacharacters that are still active within double-quoted strings. 6988 Xsed='sed -e 1s/^X//' 6989 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6990 6991 # Same as above, but do not quote variable references. 6992 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6993 6994 # Sed substitution to delay expansion of an escaped shell variable in a 6995 # double_quote_subst'ed string. 6996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6997 6998 # Sed substitution to avoid accidental globbing in evaled expressions 6999 no_glob_subst='s/\*/\\\*/g' 7000 7001 # Constants: 7002 rm="rm -f" 7003 7004 # Global variables: 7005 default_ofile=libtool 7006 can_build_shared=yes 7007 7008 # All known linkers require a `.a' archive for static linking (except MSVC, 7009 # which needs '.lib'). 7010 libext=a 7011 ltmain="$ac_aux_dir/ltmain.sh" 7012 ofile="$default_ofile" 7013 with_gnu_ld="$lt_cv_prog_gnu_ld" 7014 7015 if test -n "$ac_tool_prefix"; then 7016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7017 set dummy ${ac_tool_prefix}ar; ac_word=$2 7018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7019 $as_echo_n "checking for $ac_word... " >&6; } 7020 if test "${ac_cv_prog_AR+set}" = set; then 7021 $as_echo_n "(cached) " >&6 7022 else 7023 if test -n "$AR"; then 7024 ac_cv_prog_AR="$AR" # Let the user override the test. 7025 else 7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027 for as_dir in $PATH 7028 do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7033 ac_cv_prog_AR="${ac_tool_prefix}ar" 7034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037 done 7038 done 7039 IFS=$as_save_IFS 7040 7041 fi 7042 fi 7043 AR=$ac_cv_prog_AR 7044 if test -n "$AR"; then 7045 { $as_echo "$as_me:$LINENO: result: $AR" >&5 7046 $as_echo "$AR" >&6; } 7047 else 7048 { $as_echo "$as_me:$LINENO: result: no" >&5 7049 $as_echo "no" >&6; } 7050 fi 7051 7052 7053 fi 7054 if test -z "$ac_cv_prog_AR"; then 7055 ac_ct_AR=$AR 7056 # Extract the first word of "ar", so it can be a program name with args. 7057 set dummy ar; ac_word=$2 7058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7059 $as_echo_n "checking for $ac_word... " >&6; } 7060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7061 $as_echo_n "(cached) " >&6 7062 else 7063 if test -n "$ac_ct_AR"; then 7064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7065 else 7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7067 for as_dir in $PATH 7068 do 7069 IFS=$as_save_IFS 7070 test -z "$as_dir" && as_dir=. 7071 for ac_exec_ext in '' $ac_executable_extensions; do 7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7073 ac_cv_prog_ac_ct_AR="ar" 7074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7075 break 2 7076 fi 7077 done 7078 done 7079 IFS=$as_save_IFS 7080 7081 fi 7082 fi 7083 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7084 if test -n "$ac_ct_AR"; then 7085 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7086 $as_echo "$ac_ct_AR" >&6; } 7087 else 7088 { $as_echo "$as_me:$LINENO: result: no" >&5 7089 $as_echo "no" >&6; } 7090 fi 7091 7092 if test "x$ac_ct_AR" = x; then 7093 AR="false" 7094 else 7095 case $cross_compiling:$ac_tool_warned in 7096 yes:) 7097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7099 ac_tool_warned=yes ;; 7100 esac 7101 AR=$ac_ct_AR 7102 fi 7103 else 7104 AR="$ac_cv_prog_AR" 7105 fi 7106 7107 if test -n "$ac_tool_prefix"; then 7108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7111 $as_echo_n "checking for $ac_word... " >&6; } 7112 if test "${ac_cv_prog_RANLIB+set}" = set; then 7113 $as_echo_n "(cached) " >&6 7114 else 7115 if test -n "$RANLIB"; then 7116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7117 else 7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7119 for as_dir in $PATH 7120 do 7121 IFS=$as_save_IFS 7122 test -z "$as_dir" && as_dir=. 7123 for ac_exec_ext in '' $ac_executable_extensions; do 7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7127 break 2 7128 fi 7129 done 7130 done 7131 IFS=$as_save_IFS 7132 7133 fi 7134 fi 7135 RANLIB=$ac_cv_prog_RANLIB 7136 if test -n "$RANLIB"; then 7137 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 7138 $as_echo "$RANLIB" >&6; } 7139 else 7140 { $as_echo "$as_me:$LINENO: result: no" >&5 7141 $as_echo "no" >&6; } 7142 fi 7143 7144 7145 fi 7146 if test -z "$ac_cv_prog_RANLIB"; then 7147 ac_ct_RANLIB=$RANLIB 7148 # Extract the first word of "ranlib", so it can be a program name with args. 7149 set dummy ranlib; ac_word=$2 7150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7151 $as_echo_n "checking for $ac_word... " >&6; } 7152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7153 $as_echo_n "(cached) " >&6 7154 else 7155 if test -n "$ac_ct_RANLIB"; then 7156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7157 else 7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7159 for as_dir in $PATH 7160 do 7161 IFS=$as_save_IFS 7162 test -z "$as_dir" && as_dir=. 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7165 ac_cv_prog_ac_ct_RANLIB="ranlib" 7166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7167 break 2 7168 fi 7169 done 7170 done 7171 IFS=$as_save_IFS 7172 7173 fi 7174 fi 7175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7176 if test -n "$ac_ct_RANLIB"; then 7177 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7178 $as_echo "$ac_ct_RANLIB" >&6; } 7179 else 7180 { $as_echo "$as_me:$LINENO: result: no" >&5 7181 $as_echo "no" >&6; } 7182 fi 7183 7184 if test "x$ac_ct_RANLIB" = x; then 7185 RANLIB=":" 7186 else 7187 case $cross_compiling:$ac_tool_warned in 7188 yes:) 7189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7191 ac_tool_warned=yes ;; 7192 esac 7193 RANLIB=$ac_ct_RANLIB 7194 fi 7195 else 7196 RANLIB="$ac_cv_prog_RANLIB" 7197 fi 7198 7199 if test -n "$ac_tool_prefix"; then 7200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7201 set dummy ${ac_tool_prefix}strip; ac_word=$2 7202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7203 $as_echo_n "checking for $ac_word... " >&6; } 7204 if test "${ac_cv_prog_STRIP+set}" = set; then 7205 $as_echo_n "(cached) " >&6 7206 else 7207 if test -n "$STRIP"; then 7208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7209 else 7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211 for as_dir in $PATH 7212 do 7213 IFS=$as_save_IFS 7214 test -z "$as_dir" && as_dir=. 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7217 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221 done 7222 done 7223 IFS=$as_save_IFS 7224 7225 fi 7226 fi 7227 STRIP=$ac_cv_prog_STRIP 7228 if test -n "$STRIP"; then 7229 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7230 $as_echo "$STRIP" >&6; } 7231 else 7232 { $as_echo "$as_me:$LINENO: result: no" >&5 7233 $as_echo "no" >&6; } 7234 fi 7235 7236 7237 fi 7238 if test -z "$ac_cv_prog_STRIP"; then 7239 ac_ct_STRIP=$STRIP 7240 # Extract the first word of "strip", so it can be a program name with args. 7241 set dummy strip; ac_word=$2 7242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7243 $as_echo_n "checking for $ac_word... " >&6; } 7244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7245 $as_echo_n "(cached) " >&6 7246 else 7247 if test -n "$ac_ct_STRIP"; then 7248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7249 else 7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7251 for as_dir in $PATH 7252 do 7253 IFS=$as_save_IFS 7254 test -z "$as_dir" && as_dir=. 7255 for ac_exec_ext in '' $ac_executable_extensions; do 7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7257 ac_cv_prog_ac_ct_STRIP="strip" 7258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7259 break 2 7260 fi 7261 done 7262 done 7263 IFS=$as_save_IFS 7264 7265 fi 7266 fi 7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7268 if test -n "$ac_ct_STRIP"; then 7269 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7270 $as_echo "$ac_ct_STRIP" >&6; } 7271 else 7272 { $as_echo "$as_me:$LINENO: result: no" >&5 7273 $as_echo "no" >&6; } 7274 fi 7275 7276 if test "x$ac_ct_STRIP" = x; then 7277 STRIP=":" 7278 else 7279 case $cross_compiling:$ac_tool_warned in 7280 yes:) 7281 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7283 ac_tool_warned=yes ;; 7284 esac 7285 STRIP=$ac_ct_STRIP 7286 fi 7287 else 7288 STRIP="$ac_cv_prog_STRIP" 7289 fi 7290 7291 7292 old_CC="$CC" 7293 old_CFLAGS="$CFLAGS" 7294 7295 # Set sane defaults for various variables 7296 test -z "$AR" && AR=ar 7297 test -z "$AR_FLAGS" && AR_FLAGS=cru 7298 test -z "$AS" && AS=as 7299 test -z "$CC" && CC=cc 7300 test -z "$LTCC" && LTCC=$CC 7301 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7302 test -z "$DLLTOOL" && DLLTOOL=dlltool 7303 test -z "$LD" && LD=ld 7304 test -z "$LN_S" && LN_S="ln -s" 7305 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7306 test -z "$NM" && NM=nm 7307 test -z "$SED" && SED=sed 7308 test -z "$OBJDUMP" && OBJDUMP=objdump 7309 test -z "$RANLIB" && RANLIB=: 7310 test -z "$STRIP" && STRIP=: 7311 test -z "$ac_objext" && ac_objext=o 7312 7313 # Determine commands to create old-style static archives. 7314 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7315 old_postinstall_cmds='chmod 644 $oldlib' 7316 old_postuninstall_cmds= 7317 7318 if test -n "$RANLIB"; then 7319 case $host_os in 7320 openbsd*) 7321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7322 ;; 7323 *) 7324 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7325 ;; 7326 esac 7327 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7328 fi 7329 7330 for cc_temp in $compiler""; do 7331 case $cc_temp in 7332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7334 \-*) ;; 7335 *) break;; 7336 esac 7337 done 7338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7339 7340 7341 # Only perform the check for file, if the check method requires it 7342 case $deplibs_check_method in 7343 file_magic*) 7344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7345 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7347 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7348 $as_echo_n "(cached) " >&6 7349 else 7350 case $MAGIC_CMD in 7351 [\\/*] | ?:[\\/]*) 7352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7353 ;; 7354 *) 7355 lt_save_MAGIC_CMD="$MAGIC_CMD" 7356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7358 for ac_dir in $ac_dummy; do 7359 IFS="$lt_save_ifs" 7360 test -z "$ac_dir" && ac_dir=. 7361 if test -f $ac_dir/${ac_tool_prefix}file; then 7362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7363 if test -n "$file_magic_test_file"; then 7364 case $deplibs_check_method in 7365 "file_magic "*) 7366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7369 $EGREP "$file_magic_regex" > /dev/null; then 7370 : 7371 else 7372 cat <<EOF 1>&2 7373 7374 *** Warning: the command libtool uses to detect shared libraries, 7375 *** $file_magic_cmd, produces output that libtool cannot recognize. 7376 *** The result is that libtool may fail to recognize shared libraries 7377 *** as such. This will affect the creation of libtool libraries that 7378 *** depend on shared libraries, but programs linked with such libtool 7379 *** libraries will work regardless of this problem. Nevertheless, you 7380 *** may want to report the problem to your system manager and/or to 7381 *** bug-libtool@gnu.org 7382 7383 EOF 7384 fi ;; 7385 esac 7386 fi 7387 break 7388 fi 7389 done 7390 IFS="$lt_save_ifs" 7391 MAGIC_CMD="$lt_save_MAGIC_CMD" 7392 ;; 7393 esac 7394 fi 7395 7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7397 if test -n "$MAGIC_CMD"; then 7398 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7399 $as_echo "$MAGIC_CMD" >&6; } 7400 else 7401 { $as_echo "$as_me:$LINENO: result: no" >&5 7402 $as_echo "no" >&6; } 7403 fi 7404 7405 if test -z "$lt_cv_path_MAGIC_CMD"; then 7406 if test -n "$ac_tool_prefix"; then 7407 { $as_echo "$as_me:$LINENO: checking for file" >&5 7408 $as_echo_n "checking for file... " >&6; } 7409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7410 $as_echo_n "(cached) " >&6 7411 else 7412 case $MAGIC_CMD in 7413 [\\/*] | ?:[\\/]*) 7414 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7415 ;; 7416 *) 7417 lt_save_MAGIC_CMD="$MAGIC_CMD" 7418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7420 for ac_dir in $ac_dummy; do 7421 IFS="$lt_save_ifs" 7422 test -z "$ac_dir" && ac_dir=. 7423 if test -f $ac_dir/file; then 7424 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7425 if test -n "$file_magic_test_file"; then 7426 case $deplibs_check_method in 7427 "file_magic "*) 7428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7431 $EGREP "$file_magic_regex" > /dev/null; then 7432 : 7433 else 7434 cat <<EOF 1>&2 7435 7436 *** Warning: the command libtool uses to detect shared libraries, 7437 *** $file_magic_cmd, produces output that libtool cannot recognize. 7438 *** The result is that libtool may fail to recognize shared libraries 7439 *** as such. This will affect the creation of libtool libraries that 7440 *** depend on shared libraries, but programs linked with such libtool 7441 *** libraries will work regardless of this problem. Nevertheless, you 7442 *** may want to report the problem to your system manager and/or to 7443 *** bug-libtool@gnu.org 7444 7445 EOF 7446 fi ;; 7447 esac 7448 fi 7449 break 7450 fi 7451 done 7452 IFS="$lt_save_ifs" 7453 MAGIC_CMD="$lt_save_MAGIC_CMD" 7454 ;; 7455 esac 7456 fi 7457 7458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7459 if test -n "$MAGIC_CMD"; then 7460 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7461 $as_echo "$MAGIC_CMD" >&6; } 7462 else 7463 { $as_echo "$as_me:$LINENO: result: no" >&5 7464 $as_echo "no" >&6; } 7465 fi 7466 7467 else 7468 MAGIC_CMD=: 7469 fi 7470 fi 7471 7472 fi 7473 ;; 7474 esac 7475 7476 enable_dlopen=no 7477 enable_win32_dll=no 7478 7479 # Check whether --enable-libtool-lock was given. 7480 if test "${enable_libtool_lock+set}" = set; then 7481 enableval=$enable_libtool_lock; 7482 fi 7483 7484 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7485 7486 7487 # Check whether --with-pic was given. 7488 if test "${with_pic+set}" = set; then 7489 withval=$with_pic; pic_mode="$withval" 7490 else 7491 pic_mode=default 7492 fi 7493 7494 test -z "$pic_mode" && pic_mode=default 7495 7496 # Use C for the default configuration in the libtool script 7497 tagname= 7498 lt_save_CC="$CC" 7499 ac_ext=c 7500 ac_cpp='$CPP $CPPFLAGS' 7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7504 7505 7506 # Source file extension for C test sources. 7507 ac_ext=c 7508 7509 # Object file extension for compiled C test sources. 7510 objext=o 7511 objext=$objext 7512 7513 # Code to be used in simple compile tests 7514 lt_simple_compile_test_code="int some_variable = 0;" 7515 7516 # Code to be used in simple link tests 7517 lt_simple_link_test_code='int main(){return(0);}' 7518 7519 7520 # If no C compiler was specified, use CC. 7521 LTCC=${LTCC-"$CC"} 7522 7523 # If no C compiler flags were specified, use CFLAGS. 7524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7525 7526 # Allow CC to be a program name with arguments. 7527 compiler=$CC 7528 7529 7530 # save warnings/boilerplate of simple test code 7531 ac_outfile=conftest.$ac_objext 7532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7534 _lt_compiler_boilerplate=`cat conftest.err` 7535 $rm conftest* 7536 7537 ac_outfile=conftest.$ac_objext 7538 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7540 _lt_linker_boilerplate=`cat conftest.err` 7541 $rm conftest* 7542 7543 7544 7545 lt_prog_compiler_no_builtin_flag= 7546 7547 if test "$GCC" = yes; then 7548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7549 7550 7551 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7554 $as_echo_n "(cached) " >&6 7555 else 7556 lt_cv_prog_compiler_rtti_exceptions=no 7557 ac_outfile=conftest.$ac_objext 7558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7559 lt_compiler_flag="-fno-rtti -fno-exceptions" 7560 # Insert the option either (1) after the last *FLAGS variable, or 7561 # (2) before a word containing "conftest.", or (3) at the end. 7562 # Note that $ac_compile itself does not contain backslashes and begins 7563 # with a dollar sign (not a hyphen), so the echo should work correctly. 7564 # The option is referenced via a variable to avoid confusing sed. 7565 lt_compile=`echo "$ac_compile" | $SED \ 7566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7568 -e 's:$: $lt_compiler_flag:'` 7569 (eval echo "\"\$as_me:7569: $lt_compile\"" >&5) 7570 (eval "$lt_compile" 2>conftest.err) 7571 ac_status=$? 7572 cat conftest.err >&5 7573 echo "$as_me:7573: \$? = $ac_status" >&5 7574 if (exit $ac_status) && test -s "$ac_outfile"; then 7575 # The compiler can only warn and ignore the option if not recognized 7576 # So say no if there are warnings other than the usual output. 7577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7580 lt_cv_prog_compiler_rtti_exceptions=yes 7581 fi 7582 fi 7583 $rm conftest* 7584 7585 fi 7586 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7588 7589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7591 else 7592 : 7593 fi 7594 7595 fi 7596 7597 lt_prog_compiler_wl= 7598 lt_prog_compiler_pic= 7599 lt_prog_compiler_static= 7600 7601 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7603 7604 if test "$GCC" = yes; then 7605 lt_prog_compiler_wl='-Wl,' 7606 lt_prog_compiler_static='-static' 7607 7608 case $host_os in 7609 aix*) 7610 # All AIX code is PIC. 7611 if test "$host_cpu" = ia64; then 7612 # AIX 5 now supports IA64 processor 7613 lt_prog_compiler_static='-Bstatic' 7614 fi 7615 ;; 7616 7617 amigaos*) 7618 # FIXME: we need at least 68020 code to build shared libraries, but 7619 # adding the `-m68020' flag to GCC prevents building anything better, 7620 # like `-m68040'. 7621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7622 ;; 7623 7624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7625 # PIC is the default for these OSes. 7626 ;; 7627 7628 mingw* | cygwin* | pw32* | os2*) 7629 # This hack is so that the source file can tell whether it is being 7630 # built for inclusion in a dll (and should export symbols for example). 7631 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7632 # (--disable-auto-import) libraries 7633 lt_prog_compiler_pic='-DDLL_EXPORT' 7634 ;; 7635 7636 darwin* | rhapsody*) 7637 # PIC is the default on this platform 7638 # Common symbols not allowed in MH_DYLIB files 7639 lt_prog_compiler_pic='-fno-common' 7640 ;; 7641 7642 interix[3-9]*) 7643 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7644 # Instead, we relocate shared libraries at runtime. 7645 ;; 7646 7647 msdosdjgpp*) 7648 # Just because we use GCC doesn't mean we suddenly get shared libraries 7649 # on systems that don't support them. 7650 lt_prog_compiler_can_build_shared=no 7651 enable_shared=no 7652 ;; 7653 7654 sysv4*MP*) 7655 if test -d /usr/nec; then 7656 lt_prog_compiler_pic=-Kconform_pic 7657 fi 7658 ;; 7659 7660 hpux*) 7661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7662 # not for PA HP-UX. 7663 case $host_cpu in 7664 hppa*64*|ia64*) 7665 # +Z the default 7666 ;; 7667 *) 7668 lt_prog_compiler_pic='-fPIC' 7669 ;; 7670 esac 7671 ;; 7672 7673 *) 7674 lt_prog_compiler_pic='-fPIC' 7675 ;; 7676 esac 7677 else 7678 # PORTME Check for flag to pass linker flags through the system compiler. 7679 case $host_os in 7680 aix*) 7681 lt_prog_compiler_wl='-Wl,' 7682 if test "$host_cpu" = ia64; then 7683 # AIX 5 now supports IA64 processor 7684 lt_prog_compiler_static='-Bstatic' 7685 else 7686 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7687 fi 7688 ;; 7689 darwin*) 7690 # PIC is the default on this platform 7691 # Common symbols not allowed in MH_DYLIB files 7692 case $cc_basename in 7693 xlc*) 7694 lt_prog_compiler_pic='-qnocommon' 7695 lt_prog_compiler_wl='-Wl,' 7696 ;; 7697 esac 7698 ;; 7699 7700 mingw* | cygwin* | pw32* | os2*) 7701 # This hack is so that the source file can tell whether it is being 7702 # built for inclusion in a dll (and should export symbols for example). 7703 lt_prog_compiler_pic='-DDLL_EXPORT' 7704 ;; 7705 7706 hpux9* | hpux10* | hpux11*) 7707 lt_prog_compiler_wl='-Wl,' 7708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7709 # not for PA HP-UX. 7710 case $host_cpu in 7711 hppa*64*|ia64*) 7712 # +Z the default 7713 ;; 7714 *) 7715 lt_prog_compiler_pic='+Z' 7716 ;; 7717 esac 7718 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7719 lt_prog_compiler_static='${wl}-a ${wl}archive' 7720 ;; 7721 7722 irix5* | irix6* | nonstopux*) 7723 lt_prog_compiler_wl='-Wl,' 7724 # PIC (with -KPIC) is the default. 7725 lt_prog_compiler_static='-non_shared' 7726 ;; 7727 7728 newsos6) 7729 lt_prog_compiler_pic='-KPIC' 7730 lt_prog_compiler_static='-Bstatic' 7731 ;; 7732 7733 linux* | k*bsd*-gnu) 7734 case $cc_basename in 7735 icc* | ecc*) 7736 lt_prog_compiler_wl='-Wl,' 7737 lt_prog_compiler_pic='-KPIC' 7738 lt_prog_compiler_static='-static' 7739 ;; 7740 pgcc* | pgf77* | pgf90* | pgf95*) 7741 # Portland Group compilers (*not* the Pentium gcc compiler, 7742 # which looks to be a dead project) 7743 lt_prog_compiler_wl='-Wl,' 7744 lt_prog_compiler_pic='-fpic' 7745 lt_prog_compiler_static='-Bstatic' 7746 ;; 7747 ccc*) 7748 lt_prog_compiler_wl='-Wl,' 7749 # All Alpha code is PIC. 7750 lt_prog_compiler_static='-non_shared' 7751 ;; 7752 *) 7753 case `$CC -V 2>&1 | sed 5q` in 7754 *Sun\ C*) 7755 # Sun C 5.9 7756 lt_prog_compiler_pic='-KPIC' 7757 lt_prog_compiler_static='-Bstatic' 7758 lt_prog_compiler_wl='-Wl,' 7759 ;; 7760 *Sun\ F*) 7761 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7762 lt_prog_compiler_pic='-KPIC' 7763 lt_prog_compiler_static='-Bstatic' 7764 lt_prog_compiler_wl='' 7765 ;; 7766 esac 7767 ;; 7768 esac 7769 ;; 7770 7771 osf3* | osf4* | osf5*) 7772 lt_prog_compiler_wl='-Wl,' 7773 # All OSF/1 code is PIC. 7774 lt_prog_compiler_static='-non_shared' 7775 ;; 7776 7777 rdos*) 7778 lt_prog_compiler_static='-non_shared' 7779 ;; 7780 7781 solaris*) 7782 lt_prog_compiler_pic='-KPIC' 7783 lt_prog_compiler_static='-Bstatic' 7784 case $cc_basename in 7785 f77* | f90* | f95*) 7786 lt_prog_compiler_wl='-Qoption ld ';; 7787 *) 7788 lt_prog_compiler_wl='-Wl,';; 7789 esac 7790 ;; 7791 7792 sunos4*) 7793 lt_prog_compiler_wl='-Qoption ld ' 7794 lt_prog_compiler_pic='-PIC' 7795 lt_prog_compiler_static='-Bstatic' 7796 ;; 7797 7798 sysv4 | sysv4.2uw2* | sysv4.3*) 7799 lt_prog_compiler_wl='-Wl,' 7800 lt_prog_compiler_pic='-KPIC' 7801 lt_prog_compiler_static='-Bstatic' 7802 ;; 7803 7804 sysv4*MP*) 7805 if test -d /usr/nec ;then 7806 lt_prog_compiler_pic='-Kconform_pic' 7807 lt_prog_compiler_static='-Bstatic' 7808 fi 7809 ;; 7810 7811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7812 lt_prog_compiler_wl='-Wl,' 7813 lt_prog_compiler_pic='-KPIC' 7814 lt_prog_compiler_static='-Bstatic' 7815 ;; 7816 7817 unicos*) 7818 lt_prog_compiler_wl='-Wl,' 7819 lt_prog_compiler_can_build_shared=no 7820 ;; 7821 7822 uts4*) 7823 lt_prog_compiler_pic='-pic' 7824 lt_prog_compiler_static='-Bstatic' 7825 ;; 7826 7827 *) 7828 lt_prog_compiler_can_build_shared=no 7829 ;; 7830 esac 7831 fi 7832 7833 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7834 $as_echo "$lt_prog_compiler_pic" >&6; } 7835 7836 # 7837 # Check to make sure the PIC flag actually works. 7838 # 7839 if test -n "$lt_prog_compiler_pic"; then 7840 7841 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7843 if test "${lt_prog_compiler_pic_works+set}" = set; then 7844 $as_echo_n "(cached) " >&6 7845 else 7846 lt_prog_compiler_pic_works=no 7847 ac_outfile=conftest.$ac_objext 7848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7850 # Insert the option either (1) after the last *FLAGS variable, or 7851 # (2) before a word containing "conftest.", or (3) at the end. 7852 # Note that $ac_compile itself does not contain backslashes and begins 7853 # with a dollar sign (not a hyphen), so the echo should work correctly. 7854 # The option is referenced via a variable to avoid confusing sed. 7855 lt_compile=`echo "$ac_compile" | $SED \ 7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7858 -e 's:$: $lt_compiler_flag:'` 7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5) 7860 (eval "$lt_compile" 2>conftest.err) 7861 ac_status=$? 7862 cat conftest.err >&5 7863 echo "$as_me:7863: \$? = $ac_status" >&5 7864 if (exit $ac_status) && test -s "$ac_outfile"; then 7865 # The compiler can only warn and ignore the option if not recognized 7866 # So say no if there are warnings other than the usual output. 7867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7870 lt_prog_compiler_pic_works=yes 7871 fi 7872 fi 7873 $rm conftest* 7874 7875 fi 7876 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7877 $as_echo "$lt_prog_compiler_pic_works" >&6; } 7878 7879 if test x"$lt_prog_compiler_pic_works" = xyes; then 7880 case $lt_prog_compiler_pic in 7881 "" | " "*) ;; 7882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7883 esac 7884 else 7885 lt_prog_compiler_pic= 7886 lt_prog_compiler_can_build_shared=no 7887 fi 7888 7889 fi 7890 case $host_os in 7891 # For platforms which do not support PIC, -DPIC is meaningless: 7892 *djgpp*) 7893 lt_prog_compiler_pic= 7894 ;; 7895 *) 7896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7897 ;; 7898 esac 7899 7900 # 7901 # Check to make sure the static flag actually works. 7902 # 7903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7904 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7906 if test "${lt_prog_compiler_static_works+set}" = set; then 7907 $as_echo_n "(cached) " >&6 7908 else 7909 lt_prog_compiler_static_works=no 7910 save_LDFLAGS="$LDFLAGS" 7911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7912 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7914 # The linker can only warn and ignore the option if not recognized 7915 # So say no if there are warnings 7916 if test -s conftest.err; then 7917 # Append any errors to the config.log. 7918 cat conftest.err 1>&5 7919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7921 if diff conftest.exp conftest.er2 >/dev/null; then 7922 lt_prog_compiler_static_works=yes 7923 fi 7924 else 7925 lt_prog_compiler_static_works=yes 7926 fi 7927 fi 7928 $rm conftest* 7929 LDFLAGS="$save_LDFLAGS" 7930 7931 fi 7932 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7933 $as_echo "$lt_prog_compiler_static_works" >&6; } 7934 7935 if test x"$lt_prog_compiler_static_works" = xyes; then 7936 : 7937 else 7938 lt_prog_compiler_static= 7939 fi 7940 7941 7942 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7944 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7945 $as_echo_n "(cached) " >&6 7946 else 7947 lt_cv_prog_compiler_c_o=no 7948 $rm -r conftest 2>/dev/null 7949 mkdir conftest 7950 cd conftest 7951 mkdir out 7952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7953 7954 lt_compiler_flag="-o out/conftest2.$ac_objext" 7955 # Insert the option either (1) after the last *FLAGS variable, or 7956 # (2) before a word containing "conftest.", or (3) at the end. 7957 # Note that $ac_compile itself does not contain backslashes and begins 7958 # with a dollar sign (not a hyphen), so the echo should work correctly. 7959 lt_compile=`echo "$ac_compile" | $SED \ 7960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7962 -e 's:$: $lt_compiler_flag:'` 7963 (eval echo "\"\$as_me:7963: $lt_compile\"" >&5) 7964 (eval "$lt_compile" 2>out/conftest.err) 7965 ac_status=$? 7966 cat out/conftest.err >&5 7967 echo "$as_me:7967: \$? = $ac_status" >&5 7968 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7969 then 7970 # The compiler can only warn and ignore the option if not recognized 7971 # So say no if there are warnings 7972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7975 lt_cv_prog_compiler_c_o=yes 7976 fi 7977 fi 7978 chmod u+w . 2>&5 7979 $rm conftest* 7980 # SGI C++ compiler will create directory out/ii_files/ for 7981 # template instantiation 7982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7983 $rm out/* && rmdir out 7984 cd .. 7985 rmdir conftest 7986 $rm conftest* 7987 7988 fi 7989 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7991 7992 7993 hard_links="nottested" 7994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7995 # do not overwrite the value of need_locks provided by the user 7996 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7997 $as_echo_n "checking if we can lock with hard links... " >&6; } 7998 hard_links=yes 7999 $rm conftest* 8000 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8001 touch conftest.a 8002 ln conftest.a conftest.b 2>&5 || hard_links=no 8003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8004 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8005 $as_echo "$hard_links" >&6; } 8006 if test "$hard_links" = no; then 8007 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8008 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8009 need_locks=warn 8010 fi 8011 else 8012 need_locks=no 8013 fi 8014 8015 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8016 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8017 8018 runpath_var= 8019 allow_undefined_flag= 8020 enable_shared_with_static_runtimes=no 8021 archive_cmds= 8022 archive_expsym_cmds= 8023 old_archive_From_new_cmds= 8024 old_archive_from_expsyms_cmds= 8025 export_dynamic_flag_spec= 8026 whole_archive_flag_spec= 8027 thread_safe_flag_spec= 8028 hardcode_libdir_flag_spec= 8029 hardcode_libdir_flag_spec_ld= 8030 hardcode_libdir_separator= 8031 hardcode_direct=no 8032 hardcode_minus_L=no 8033 hardcode_shlibpath_var=unsupported 8034 link_all_deplibs=unknown 8035 hardcode_automatic=no 8036 module_cmds= 8037 module_expsym_cmds= 8038 always_export_symbols=no 8039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8040 # include_expsyms should be a list of space-separated symbols to be *always* 8041 # included in the symbol list 8042 include_expsyms= 8043 # exclude_expsyms can be an extended regexp of symbols to exclude 8044 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8046 # as well as any symbol that contains `d'. 8047 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8049 # platforms (ab)use it in PIC code, but their linkers get confused if 8050 # the symbol is explicitly referenced. Since portable code cannot 8051 # rely on this symbol name, it's probably fine to never include it in 8052 # preloaded symbol tables. 8053 extract_expsyms_cmds= 8054 # Just being paranoid about ensuring that cc_basename is set. 8055 for cc_temp in $compiler""; do 8056 case $cc_temp in 8057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8059 \-*) ;; 8060 *) break;; 8061 esac 8062 done 8063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8064 8065 case $host_os in 8066 cygwin* | mingw* | pw32*) 8067 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8068 # When not using gcc, we currently assume that we are using 8069 # Microsoft Visual C++. 8070 if test "$GCC" != yes; then 8071 with_gnu_ld=no 8072 fi 8073 ;; 8074 interix*) 8075 # we just hope/assume this is gcc and not c89 (= MSVC++) 8076 with_gnu_ld=yes 8077 ;; 8078 openbsd*) 8079 with_gnu_ld=no 8080 ;; 8081 esac 8082 8083 ld_shlibs=yes 8084 if test "$with_gnu_ld" = yes; then 8085 # If archive_cmds runs LD, not CC, wlarc should be empty 8086 wlarc='${wl}' 8087 8088 # Set some defaults for GNU ld with shared library support. These 8089 # are reset later if shared libraries are not supported. Putting them 8090 # here allows them to be overridden if necessary. 8091 runpath_var=LD_RUN_PATH 8092 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8093 export_dynamic_flag_spec='${wl}--export-dynamic' 8094 # ancient GNU ld didn't support --whole-archive et. al. 8095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8097 else 8098 whole_archive_flag_spec= 8099 fi 8100 supports_anon_versioning=no 8101 case `$LD -v 2>/dev/null` in 8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8105 *\ 2.11.*) ;; # other 2.11 versions 8106 *) supports_anon_versioning=yes ;; 8107 esac 8108 8109 # See if GNU ld supports shared libraries. 8110 case $host_os in 8111 aix3* | aix4* | aix5*) 8112 # On AIX/PPC, the GNU linker is very broken 8113 if test "$host_cpu" != ia64; then 8114 ld_shlibs=no 8115 cat <<EOF 1>&2 8116 8117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 8118 *** to be unable to reliably create shared libraries on AIX. 8119 *** Therefore, libtool is disabling shared libraries support. If you 8120 *** really care for shared libraries, you may want to modify your PATH 8121 *** so that a non-GNU linker is found, and then restart. 8122 8123 EOF 8124 fi 8125 ;; 8126 8127 amigaos*) 8128 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)' 8129 hardcode_libdir_flag_spec='-L$libdir' 8130 hardcode_minus_L=yes 8131 8132 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 8133 # that the semantics of dynamic libraries on AmigaOS, at least up 8134 # to version 4, is to share data among multiple programs linked 8135 # with the same dynamic library. Since this doesn't match the 8136 # behavior of shared libraries on other platforms, we can't use 8137 # them. 8138 ld_shlibs=no 8139 ;; 8140 8141 beos*) 8142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8143 allow_undefined_flag=unsupported 8144 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8145 # support --undefined. This deserves some investigation. FIXME 8146 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8147 else 8148 ld_shlibs=no 8149 fi 8150 ;; 8151 8152 cygwin* | mingw* | pw32*) 8153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8154 # as there is no search path for DLLs. 8155 hardcode_libdir_flag_spec='-L$libdir' 8156 allow_undefined_flag=unsupported 8157 always_export_symbols=no 8158 enable_shared_with_static_runtimes=yes 8159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8160 8161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8163 # If the export-symbols file already is a .def file (1st line 8164 # is EXPORTS), use it as is; otherwise, prepend... 8165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8166 cp $export_symbols $output_objdir/$soname.def; 8167 else 8168 echo EXPORTS > $output_objdir/$soname.def; 8169 cat $export_symbols >> $output_objdir/$soname.def; 8170 fi~ 8171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8172 else 8173 ld_shlibs=no 8174 fi 8175 ;; 8176 8177 interix[3-9]*) 8178 hardcode_direct=no 8179 hardcode_shlibpath_var=no 8180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8181 export_dynamic_flag_spec='${wl}-E' 8182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8183 # Instead, shared libraries are loaded at an image base (0x10000000 by 8184 # default) and relocated if they conflict, which is a slow very memory 8185 # consuming and fragmenting process. To avoid this, we pick a random, 8186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8187 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8189 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' 8190 ;; 8191 8192 gnu* | linux* | k*bsd*-gnu) 8193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8194 tmp_addflag= 8195 case $cc_basename,$host_cpu in 8196 pgcc*) # Portland Group C compiler 8197 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' 8198 tmp_addflag=' $pic_flag' 8199 ;; 8200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8201 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' 8202 tmp_addflag=' $pic_flag -Mnomain' ;; 8203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8204 tmp_addflag=' -i_dynamic' ;; 8205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8206 tmp_addflag=' -i_dynamic -nofor_main' ;; 8207 ifc* | ifort*) # Intel Fortran compiler 8208 tmp_addflag=' -nofor_main' ;; 8209 esac 8210 case `$CC -V 2>&1 | sed 5q` in 8211 *Sun\ C*) # Sun C 5.9 8212 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' 8213 tmp_sharedflag='-G' ;; 8214 *Sun\ F*) # Sun Fortran 8.3 8215 tmp_sharedflag='-G' ;; 8216 *) 8217 tmp_sharedflag='-shared' ;; 8218 esac 8219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8220 8221 if test $supports_anon_versioning = yes; then 8222 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8224 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8226 fi 8227 else 8228 ld_shlibs=no 8229 fi 8230 ;; 8231 8232 netbsd*) 8233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8234 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8235 wlarc= 8236 else 8237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8239 fi 8240 ;; 8241 8242 solaris*) 8243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8244 ld_shlibs=no 8245 cat <<EOF 1>&2 8246 8247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8248 *** create shared libraries on Solaris systems. Therefore, libtool 8249 *** is disabling shared libraries support. We urge you to upgrade GNU 8250 *** binutils to release 2.9.1 or newer. Another option is to modify 8251 *** your PATH or compiler configuration so that the native linker is 8252 *** used, and then restart. 8253 8254 EOF 8255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8258 else 8259 ld_shlibs=no 8260 fi 8261 ;; 8262 8263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8264 case `$LD -v 2>&1` in 8265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8266 ld_shlibs=no 8267 cat <<_LT_EOF 1>&2 8268 8269 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8270 *** reliably create shared libraries on SCO systems. Therefore, libtool 8271 *** is disabling shared libraries support. We urge you to upgrade GNU 8272 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8273 *** your PATH or compiler configuration so that the native linker is 8274 *** used, and then restart. 8275 8276 _LT_EOF 8277 ;; 8278 *) 8279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8280 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8283 else 8284 ld_shlibs=no 8285 fi 8286 ;; 8287 esac 8288 ;; 8289 8290 sunos4*) 8291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8292 wlarc= 8293 hardcode_direct=yes 8294 hardcode_shlibpath_var=no 8295 ;; 8296 8297 *) 8298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8301 else 8302 ld_shlibs=no 8303 fi 8304 ;; 8305 esac 8306 8307 if test "$ld_shlibs" = no; then 8308 runpath_var= 8309 hardcode_libdir_flag_spec= 8310 export_dynamic_flag_spec= 8311 whole_archive_flag_spec= 8312 fi 8313 else 8314 # PORTME fill in a description of your system's linker (not GNU ld) 8315 case $host_os in 8316 aix3*) 8317 allow_undefined_flag=unsupported 8318 always_export_symbols=yes 8319 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' 8320 # Note: this linker hardcodes the directories in LIBPATH if there 8321 # are no directories specified by -L. 8322 hardcode_minus_L=yes 8323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8324 # Neither direct hardcoding nor static linking is supported with a 8325 # broken collect2. 8326 hardcode_direct=unsupported 8327 fi 8328 ;; 8329 8330 aix4* | aix5*) 8331 if test "$host_cpu" = ia64; then 8332 # On IA64, the linker does run time linking by default, so we don't 8333 # have to do anything special. 8334 aix_use_runtimelinking=no 8335 exp_sym_flag='-Bexport' 8336 no_entry_flag="" 8337 else 8338 # If we're using GNU nm, then we don't want the "-C" option. 8339 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8341 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' 8342 else 8343 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' 8344 fi 8345 aix_use_runtimelinking=no 8346 8347 # Test if we are trying to use run time linking or normal 8348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8349 # need to do runtime linking. 8350 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8351 for ld_flag in $LDFLAGS; do 8352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8353 aix_use_runtimelinking=yes 8354 break 8355 fi 8356 done 8357 ;; 8358 esac 8359 8360 exp_sym_flag='-bexport' 8361 no_entry_flag='-bnoentry' 8362 fi 8363 8364 # When large executables or shared objects are built, AIX ld can 8365 # have problems creating the table of contents. If linking a library 8366 # or program results in "error TOC overflow" add -mminimal-toc to 8367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8369 8370 archive_cmds='' 8371 hardcode_direct=yes 8372 hardcode_libdir_separator=':' 8373 link_all_deplibs=yes 8374 8375 if test "$GCC" = yes; then 8376 case $host_os in aix4.[012]|aix4.[012].*) 8377 # We only want to do this on AIX 4.2 and lower, the check 8378 # below for broken collect2 doesn't work under 4.3+ 8379 collect2name=`${CC} -print-prog-name=collect2` 8380 if test -f "$collect2name" && \ 8381 strings "$collect2name" | grep resolve_lib_name >/dev/null 8382 then 8383 # We have reworked collect2 8384 : 8385 else 8386 # We have old collect2 8387 hardcode_direct=unsupported 8388 # It fails to find uninstalled libraries when the uninstalled 8389 # path is not listed in the libpath. Setting hardcode_minus_L 8390 # to unsupported forces relinking 8391 hardcode_minus_L=yes 8392 hardcode_libdir_flag_spec='-L$libdir' 8393 hardcode_libdir_separator= 8394 fi 8395 ;; 8396 esac 8397 shared_flag='-shared' 8398 if test "$aix_use_runtimelinking" = yes; then 8399 shared_flag="$shared_flag "'${wl}-G' 8400 fi 8401 else 8402 # not using gcc 8403 if test "$host_cpu" = ia64; then 8404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8405 # chokes on -Wl,-G. The following line is correct: 8406 shared_flag='-G' 8407 else 8408 if test "$aix_use_runtimelinking" = yes; then 8409 shared_flag='${wl}-G' 8410 else 8411 shared_flag='${wl}-bM:SRE' 8412 fi 8413 fi 8414 fi 8415 8416 # It seems that -bexpall does not export symbols beginning with 8417 # underscore (_), so it is better to generate a list of symbols to export. 8418 always_export_symbols=yes 8419 if test "$aix_use_runtimelinking" = yes; then 8420 # Warning - without using the other runtime loading flags (-brtl), 8421 # -berok will link without error, but may produce a broken library. 8422 allow_undefined_flag='-berok' 8423 # Determine the default libpath from the value encoded in an empty executable. 8424 cat >conftest.$ac_ext <<_ACEOF 8425 /* confdefs.h. */ 8426 _ACEOF 8427 cat confdefs.h >>conftest.$ac_ext 8428 cat >>conftest.$ac_ext <<_ACEOF 8429 /* end confdefs.h. */ 8430 8431 int 8432 main () 8433 { 8434 8435 ; 8436 return 0; 8437 } 8438 _ACEOF 8439 rm -f conftest.$ac_objext conftest$ac_exeext 8440 if { (ac_try="$ac_link" 8441 case "(($ac_try" in 8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8443 *) ac_try_echo=$ac_try;; 8444 esac 8445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8446 $as_echo "$ac_try_echo") >&5 8447 (eval "$ac_link") 2>conftest.er1 8448 ac_status=$? 8449 grep -v '^ *+' conftest.er1 >conftest.err 8450 rm -f conftest.er1 8451 cat conftest.err >&5 8452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8453 (exit $ac_status); } && { 8454 test -z "$ac_c_werror_flag" || 8455 test ! -s conftest.err 8456 } && test -s conftest$ac_exeext && { 8457 test "$cross_compiling" = yes || 8458 $as_test_x conftest$ac_exeext 8459 }; then 8460 8461 lt_aix_libpath_sed=' 8462 /Import File Strings/,/^$/ { 8463 /^0/ { 8464 s/^0 *\(.*\)$/\1/ 8465 p 8466 } 8467 }' 8468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8469 # Check for a 64-bit object if we didn't find anything. 8470 if test -z "$aix_libpath"; then 8471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8472 fi 8473 else 8474 $as_echo "$as_me: failed program was:" >&5 8475 sed 's/^/| /' conftest.$ac_ext >&5 8476 8477 8478 fi 8479 8480 rm -rf conftest.dSYM 8481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8482 conftest$ac_exeext conftest.$ac_ext 8483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8484 8485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8486 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" 8487 else 8488 if test "$host_cpu" = ia64; then 8489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8490 allow_undefined_flag="-z nodefs" 8491 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" 8492 else 8493 # Determine the default libpath from the value encoded in an empty executable. 8494 cat >conftest.$ac_ext <<_ACEOF 8495 /* confdefs.h. */ 8496 _ACEOF 8497 cat confdefs.h >>conftest.$ac_ext 8498 cat >>conftest.$ac_ext <<_ACEOF 8499 /* end confdefs.h. */ 8500 8501 int 8502 main () 8503 { 8504 8505 ; 8506 return 0; 8507 } 8508 _ACEOF 8509 rm -f conftest.$ac_objext conftest$ac_exeext 8510 if { (ac_try="$ac_link" 8511 case "(($ac_try" in 8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8513 *) ac_try_echo=$ac_try;; 8514 esac 8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8516 $as_echo "$ac_try_echo") >&5 8517 (eval "$ac_link") 2>conftest.er1 8518 ac_status=$? 8519 grep -v '^ *+' conftest.er1 >conftest.err 8520 rm -f conftest.er1 8521 cat conftest.err >&5 8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); } && { 8524 test -z "$ac_c_werror_flag" || 8525 test ! -s conftest.err 8526 } && test -s conftest$ac_exeext && { 8527 test "$cross_compiling" = yes || 8528 $as_test_x conftest$ac_exeext 8529 }; then 8530 8531 lt_aix_libpath_sed=' 8532 /Import File Strings/,/^$/ { 8533 /^0/ { 8534 s/^0 *\(.*\)$/\1/ 8535 p 8536 } 8537 }' 8538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8539 # Check for a 64-bit object if we didn't find anything. 8540 if test -z "$aix_libpath"; then 8541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8542 fi 8543 else 8544 $as_echo "$as_me: failed program was:" >&5 8545 sed 's/^/| /' conftest.$ac_ext >&5 8546 8547 8548 fi 8549 8550 rm -rf conftest.dSYM 8551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8552 conftest$ac_exeext conftest.$ac_ext 8553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8554 8555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8556 # Warning - without using the other run time loading flags, 8557 # -berok will link without error, but may produce a broken library. 8558 no_undefined_flag=' ${wl}-bernotok' 8559 allow_undefined_flag=' ${wl}-berok' 8560 # Exported symbols can be pulled into shared objects from archives 8561 whole_archive_flag_spec='$convenience' 8562 archive_cmds_need_lc=yes 8563 # This is similar to how AIX traditionally builds its shared libraries. 8564 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' 8565 fi 8566 fi 8567 ;; 8568 8569 amigaos*) 8570 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)' 8571 hardcode_libdir_flag_spec='-L$libdir' 8572 hardcode_minus_L=yes 8573 # see comment about different semantics on the GNU ld section 8574 ld_shlibs=no 8575 ;; 8576 8577 bsdi[45]*) 8578 export_dynamic_flag_spec=-rdynamic 8579 ;; 8580 8581 cygwin* | mingw* | pw32*) 8582 # When not using gcc, we currently assume that we are using 8583 # Microsoft Visual C++. 8584 # hardcode_libdir_flag_spec is actually meaningless, as there is 8585 # no search path for DLLs. 8586 hardcode_libdir_flag_spec=' ' 8587 allow_undefined_flag=unsupported 8588 # Tell ltmain to make .lib files, not .a files. 8589 libext=lib 8590 # Tell ltmain to make .dll files, not .so files. 8591 shrext_cmds=".dll" 8592 # FIXME: Setting linknames here is a bad hack. 8593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8594 # The linker will automatically build a .lib file if we build a DLL. 8595 old_archive_From_new_cmds='true' 8596 # FIXME: Should let the user specify the lib program. 8597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8598 fix_srcfile_path='`cygpath -w "$srcfile"`' 8599 enable_shared_with_static_runtimes=yes 8600 ;; 8601 8602 darwin* | rhapsody*) 8603 case $host_os in 8604 rhapsody* | darwin1.[012]) 8605 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8606 ;; 8607 *) # Darwin 1.3 on 8608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8610 else 8611 case ${MACOSX_DEPLOYMENT_TARGET} in 8612 10.[012]) 8613 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8614 ;; 8615 10.*) 8616 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8617 ;; 8618 esac 8619 fi 8620 ;; 8621 esac 8622 archive_cmds_need_lc=no 8623 hardcode_direct=no 8624 hardcode_automatic=yes 8625 hardcode_shlibpath_var=unsupported 8626 whole_archive_flag_spec='' 8627 link_all_deplibs=yes 8628 if test "$GCC" = yes ; then 8629 output_verbose_link_cmd='echo' 8630 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8633 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}' 8634 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}' 8635 else 8636 case $cc_basename in 8637 xlc*) 8638 output_verbose_link_cmd='echo' 8639 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8642 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8643 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}' 8644 ;; 8645 *) 8646 ld_shlibs=no 8647 ;; 8648 esac 8649 fi 8650 ;; 8651 8652 dgux*) 8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8654 hardcode_libdir_flag_spec='-L$libdir' 8655 hardcode_shlibpath_var=no 8656 ;; 8657 8658 freebsd1*) 8659 ld_shlibs=no 8660 ;; 8661 8662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8663 # support. Future versions do this automatically, but an explicit c++rt0.o 8664 # does not break anything, and helps significantly (at the cost of a little 8665 # extra space). 8666 freebsd2.2*) 8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8668 hardcode_libdir_flag_spec='-R$libdir' 8669 hardcode_direct=yes 8670 hardcode_shlibpath_var=no 8671 ;; 8672 8673 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8674 freebsd2*) 8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8676 hardcode_direct=yes 8677 hardcode_minus_L=yes 8678 hardcode_shlibpath_var=no 8679 ;; 8680 8681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8682 freebsd* | dragonfly*) 8683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8684 hardcode_libdir_flag_spec='-R$libdir' 8685 hardcode_direct=yes 8686 hardcode_shlibpath_var=no 8687 ;; 8688 8689 hpux9*) 8690 if test "$GCC" = yes; then 8691 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' 8692 else 8693 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' 8694 fi 8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8696 hardcode_libdir_separator=: 8697 hardcode_direct=yes 8698 8699 # hardcode_minus_L: Not really in the search PATH, 8700 # but as the default location of the library. 8701 hardcode_minus_L=yes 8702 export_dynamic_flag_spec='${wl}-E' 8703 ;; 8704 8705 hpux10*) 8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8708 else 8709 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8710 fi 8711 if test "$with_gnu_ld" = no; then 8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8713 hardcode_libdir_separator=: 8714 8715 hardcode_direct=yes 8716 export_dynamic_flag_spec='${wl}-E' 8717 8718 # hardcode_minus_L: Not really in the search PATH, 8719 # but as the default location of the library. 8720 hardcode_minus_L=yes 8721 fi 8722 ;; 8723 8724 hpux11*) 8725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8726 case $host_cpu in 8727 hppa*64*) 8728 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8729 ;; 8730 ia64*) 8731 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8732 ;; 8733 *) 8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8735 ;; 8736 esac 8737 else 8738 case $host_cpu in 8739 hppa*64*) 8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8741 ;; 8742 ia64*) 8743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8744 ;; 8745 *) 8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8747 ;; 8748 esac 8749 fi 8750 if test "$with_gnu_ld" = no; then 8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8752 hardcode_libdir_separator=: 8753 8754 case $host_cpu in 8755 hppa*64*|ia64*) 8756 hardcode_libdir_flag_spec_ld='+b $libdir' 8757 hardcode_direct=no 8758 hardcode_shlibpath_var=no 8759 ;; 8760 *) 8761 hardcode_direct=yes 8762 export_dynamic_flag_spec='${wl}-E' 8763 8764 # hardcode_minus_L: Not really in the search PATH, 8765 # but as the default location of the library. 8766 hardcode_minus_L=yes 8767 ;; 8768 esac 8769 fi 8770 ;; 8771 8772 irix5* | irix6* | nonstopux*) 8773 if test "$GCC" = yes; then 8774 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' 8775 else 8776 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' 8777 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8778 fi 8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8780 hardcode_libdir_separator=: 8781 link_all_deplibs=yes 8782 ;; 8783 8784 netbsd*) 8785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8787 else 8788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8789 fi 8790 hardcode_libdir_flag_spec='-R$libdir' 8791 hardcode_direct=yes 8792 hardcode_shlibpath_var=no 8793 ;; 8794 8795 newsos6) 8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8797 hardcode_direct=yes 8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8799 hardcode_libdir_separator=: 8800 hardcode_shlibpath_var=no 8801 ;; 8802 8803 openbsd*) 8804 if test -f /usr/libexec/ld.so; then 8805 hardcode_direct=yes 8806 hardcode_shlibpath_var=no 8807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8811 export_dynamic_flag_spec='${wl}-E' 8812 else 8813 case $host_os in 8814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8816 hardcode_libdir_flag_spec='-R$libdir' 8817 ;; 8818 *) 8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8821 ;; 8822 esac 8823 fi 8824 else 8825 ld_shlibs=no 8826 fi 8827 ;; 8828 8829 os2*) 8830 hardcode_libdir_flag_spec='-L$libdir' 8831 hardcode_minus_L=yes 8832 allow_undefined_flag=unsupported 8833 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' 8834 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8835 ;; 8836 8837 osf3*) 8838 if test "$GCC" = yes; then 8839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8840 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' 8841 else 8842 allow_undefined_flag=' -expect_unresolved \*' 8843 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' 8844 fi 8845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8846 hardcode_libdir_separator=: 8847 ;; 8848 8849 osf4* | osf5*) # as osf3* with the addition of -msym flag 8850 if test "$GCC" = yes; then 8851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8852 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' 8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8854 else 8855 allow_undefined_flag=' -expect_unresolved \*' 8856 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' 8857 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8858 $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' 8859 8860 # Both c and cxx compiler support -rpath directly 8861 hardcode_libdir_flag_spec='-rpath $libdir' 8862 fi 8863 hardcode_libdir_separator=: 8864 ;; 8865 8866 solaris*) 8867 no_undefined_flag=' -z text' 8868 if test "$GCC" = yes; then 8869 wlarc='${wl}' 8870 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8872 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8873 else 8874 wlarc='' 8875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8878 fi 8879 hardcode_libdir_flag_spec='-R$libdir' 8880 hardcode_shlibpath_var=no 8881 case $host_os in 8882 solaris2.[0-5] | solaris2.[0-5].*) ;; 8883 *) 8884 # The compiler driver will combine and reorder linker options, 8885 # but understands `-z linker_flag'. GCC discards it without `$wl', 8886 # but is careful enough not to reorder. 8887 # Supported since Solaris 2.6 (maybe 2.5.1?) 8888 if test "$GCC" = yes; then 8889 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8890 else 8891 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8892 fi 8893 ;; 8894 esac 8895 link_all_deplibs=yes 8896 ;; 8897 8898 sunos4*) 8899 if test "x$host_vendor" = xsequent; then 8900 # Use $CC to link under sequent, because it throws in some extra .o 8901 # files that make .init and .fini sections work. 8902 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8903 else 8904 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8905 fi 8906 hardcode_libdir_flag_spec='-L$libdir' 8907 hardcode_direct=yes 8908 hardcode_minus_L=yes 8909 hardcode_shlibpath_var=no 8910 ;; 8911 8912 sysv4) 8913 case $host_vendor in 8914 sni) 8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8916 hardcode_direct=yes # is this really true??? 8917 ;; 8918 siemens) 8919 ## LD is ld it makes a PLAMLIB 8920 ## CC just makes a GrossModule. 8921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8922 reload_cmds='$CC -r -o $output$reload_objs' 8923 hardcode_direct=no 8924 ;; 8925 motorola) 8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8927 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8928 ;; 8929 esac 8930 runpath_var='LD_RUN_PATH' 8931 hardcode_shlibpath_var=no 8932 ;; 8933 8934 sysv4.3*) 8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8936 hardcode_shlibpath_var=no 8937 export_dynamic_flag_spec='-Bexport' 8938 ;; 8939 8940 sysv4*MP*) 8941 if test -d /usr/nec; then 8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8943 hardcode_shlibpath_var=no 8944 runpath_var=LD_RUN_PATH 8945 hardcode_runpath_var=yes 8946 ld_shlibs=yes 8947 fi 8948 ;; 8949 8950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8951 no_undefined_flag='${wl}-z,text' 8952 archive_cmds_need_lc=no 8953 hardcode_shlibpath_var=no 8954 runpath_var='LD_RUN_PATH' 8955 8956 if test "$GCC" = yes; then 8957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8959 else 8960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8962 fi 8963 ;; 8964 8965 sysv5* | sco3.2v5* | sco5v6*) 8966 # Note: We can NOT use -z defs as we might desire, because we do not 8967 # link with -lc, and that would cause any symbols used from libc to 8968 # always be unresolved, which means just about no library would 8969 # ever link correctly. If we're not using GNU ld we use -z text 8970 # though, which does catch some bad symbols but isn't as heavy-handed 8971 # as -z defs. 8972 no_undefined_flag='${wl}-z,text' 8973 allow_undefined_flag='${wl}-z,nodefs' 8974 archive_cmds_need_lc=no 8975 hardcode_shlibpath_var=no 8976 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8977 hardcode_libdir_separator=':' 8978 link_all_deplibs=yes 8979 export_dynamic_flag_spec='${wl}-Bexport' 8980 runpath_var='LD_RUN_PATH' 8981 8982 if test "$GCC" = yes; then 8983 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8984 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8985 else 8986 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8987 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8988 fi 8989 ;; 8990 8991 uts4*) 8992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_shlibpath_var=no 8995 ;; 8996 8997 *) 8998 ld_shlibs=no 8999 ;; 9000 esac 9001 fi 9002 9003 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9004 $as_echo "$ld_shlibs" >&6; } 9005 test "$ld_shlibs" = no && can_build_shared=no 9006 9007 # 9008 # Do we need to explicitly link libc? 9009 # 9010 case "x$archive_cmds_need_lc" in 9011 x|xyes) 9012 # Assume -lc should be added 9013 archive_cmds_need_lc=yes 9014 9015 if test "$enable_shared" = yes && test "$GCC" = yes; then 9016 case $archive_cmds in 9017 *'~'*) 9018 # FIXME: we may have to deal with multi-command sequences. 9019 ;; 9020 '$CC '*) 9021 # Test whether the compiler implicitly links with -lc since on some 9022 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9023 # to ld, don't add -lc before -lgcc. 9024 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9025 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9026 $rm conftest* 9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9028 9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9030 (eval $ac_compile) 2>&5 9031 ac_status=$? 9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9033 (exit $ac_status); } 2>conftest.err; then 9034 soname=conftest 9035 lib=conftest 9036 libobjs=conftest.$ac_objext 9037 deplibs= 9038 wl=$lt_prog_compiler_wl 9039 pic_flag=$lt_prog_compiler_pic 9040 compiler_flags=-v 9041 linker_flags=-v 9042 verstring= 9043 output_objdir=. 9044 libname=conftest 9045 lt_save_allow_undefined_flag=$allow_undefined_flag 9046 allow_undefined_flag= 9047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9048 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9049 ac_status=$? 9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 (exit $ac_status); } 9052 then 9053 archive_cmds_need_lc=no 9054 else 9055 archive_cmds_need_lc=yes 9056 fi 9057 allow_undefined_flag=$lt_save_allow_undefined_flag 9058 else 9059 cat conftest.err 1>&5 9060 fi 9061 $rm conftest* 9062 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9063 $as_echo "$archive_cmds_need_lc" >&6; } 9064 ;; 9065 esac 9066 fi 9067 ;; 9068 esac 9069 9070 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9071 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9072 library_names_spec= 9073 libname_spec='lib$name' 9074 soname_spec= 9075 shrext_cmds=".so" 9076 postinstall_cmds= 9077 postuninstall_cmds= 9078 finish_cmds= 9079 finish_eval= 9080 shlibpath_var= 9081 shlibpath_overrides_runpath=unknown 9082 version_type=none 9083 dynamic_linker="$host_os ld.so" 9084 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9085 9086 if test "$GCC" = yes; then 9087 case $host_os in 9088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9089 *) lt_awk_arg="/^libraries:/" ;; 9090 esac 9091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9092 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9093 # if the path contains ";" then we assume it to be the separator 9094 # otherwise default to the standard path separator (i.e. ":") - it is 9095 # assumed that no part of a normal pathname contains ";" but that should 9096 # okay in the real world where ";" in dirpaths is itself problematic. 9097 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9098 else 9099 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9100 fi 9101 # Ok, now we have the path, separated by spaces, we can step through it 9102 # and add multilib dir if necessary. 9103 lt_tmp_lt_search_path_spec= 9104 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9105 for lt_sys_path in $lt_search_path_spec; do 9106 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9108 else 9109 test -d "$lt_sys_path" && \ 9110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9111 fi 9112 done 9113 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9114 BEGIN {RS=" "; FS="/|\n";} { 9115 lt_foo=""; 9116 lt_count=0; 9117 for (lt_i = NF; lt_i > 0; lt_i--) { 9118 if ($lt_i != "" && $lt_i != ".") { 9119 if ($lt_i == "..") { 9120 lt_count++; 9121 } else { 9122 if (lt_count == 0) { 9123 lt_foo="/" $lt_i lt_foo; 9124 } else { 9125 lt_count--; 9126 } 9127 } 9128 } 9129 } 9130 if (lt_foo != "") { lt_freq[lt_foo]++; } 9131 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9132 }'` 9133 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9134 else 9135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9136 fi 9137 need_lib_prefix=unknown 9138 hardcode_into_libs=no 9139 9140 # when you set need_version to no, make sure it does not cause -set_version 9141 # flags to be left without arguments 9142 need_version=unknown 9143 9144 case $host_os in 9145 aix3*) 9146 version_type=linux 9147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9148 shlibpath_var=LIBPATH 9149 9150 # AIX 3 has no versioning support, so we append a major version to the name. 9151 soname_spec='${libname}${release}${shared_ext}$major' 9152 ;; 9153 9154 aix4* | aix5*) 9155 version_type=linux 9156 need_lib_prefix=no 9157 need_version=no 9158 hardcode_into_libs=yes 9159 if test "$host_cpu" = ia64; then 9160 # AIX 5 supports IA64 9161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9162 shlibpath_var=LD_LIBRARY_PATH 9163 else 9164 # With GCC up to 2.95.x, collect2 would create an import file 9165 # for dependence libraries. The import file would start with 9166 # the line `#! .'. This would cause the generated library to 9167 # depend on `.', always an invalid library. This was fixed in 9168 # development snapshots of GCC prior to 3.0. 9169 case $host_os in 9170 aix4 | aix4.[01] | aix4.[01].*) 9171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9172 echo ' yes ' 9173 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9174 : 9175 else 9176 can_build_shared=no 9177 fi 9178 ;; 9179 esac 9180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9181 # soname into executable. Probably we can add versioning support to 9182 # collect2, so additional links can be useful in future. 9183 if test "$aix_use_runtimelinking" = yes; then 9184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9185 # instead of lib<name>.a to let people know that these are not 9186 # typical AIX shared libraries. 9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9188 else 9189 # We preserve .a as extension for shared libraries through AIX4.2 9190 # and later when we are not doing run time linking. 9191 library_names_spec='${libname}${release}.a $libname.a' 9192 soname_spec='${libname}${release}${shared_ext}$major' 9193 fi 9194 shlibpath_var=LIBPATH 9195 fi 9196 ;; 9197 9198 amigaos*) 9199 library_names_spec='$libname.ixlibrary $libname.a' 9200 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9201 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' 9202 ;; 9203 9204 beos*) 9205 library_names_spec='${libname}${shared_ext}' 9206 dynamic_linker="$host_os ld.so" 9207 shlibpath_var=LIBRARY_PATH 9208 ;; 9209 9210 bsdi[45]*) 9211 version_type=linux 9212 need_version=no 9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9214 soname_spec='${libname}${release}${shared_ext}$major' 9215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9216 shlibpath_var=LD_LIBRARY_PATH 9217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9219 # the default ld.so.conf also contains /usr/contrib/lib and 9220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9221 # libtool to hard-code these into programs 9222 ;; 9223 9224 cygwin* | mingw* | pw32*) 9225 version_type=windows 9226 shrext_cmds=".dll" 9227 need_version=no 9228 need_lib_prefix=no 9229 9230 case $GCC,$host_os in 9231 yes,cygwin* | yes,mingw* | yes,pw32*) 9232 library_names_spec='$libname.dll.a' 9233 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9234 postinstall_cmds='base_file=`basename \${file}`~ 9235 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9236 dldir=$destdir/`dirname \$dlpath`~ 9237 test -d \$dldir || mkdir -p \$dldir~ 9238 $install_prog $dir/$dlname \$dldir/$dlname~ 9239 chmod a+x \$dldir/$dlname' 9240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9241 dlpath=$dir/\$dldll~ 9242 $rm \$dlpath' 9243 shlibpath_overrides_runpath=yes 9244 9245 case $host_os in 9246 cygwin*) 9247 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9250 ;; 9251 mingw*) 9252 # MinGW DLLs use traditional 'lib' prefix 9253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9255 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9256 # It is most probably a Windows format PATH printed by 9257 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9258 # path with ; separators, and with drive letters. We can handle the 9259 # drive letters (cygwin fileutils understands them), so leave them, 9260 # especially as we might pass files found there to a mingw objdump, 9261 # which wouldn't understand a cygwinified path. Ahh. 9262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9263 else 9264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9265 fi 9266 ;; 9267 pw32*) 9268 # pw32 DLLs use 'pw' prefix rather than 'lib' 9269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9270 ;; 9271 esac 9272 ;; 9273 9274 *) 9275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9276 ;; 9277 esac 9278 dynamic_linker='Win32 ld.exe' 9279 # FIXME: first we should search . and the directory the executable is in 9280 shlibpath_var=PATH 9281 ;; 9282 9283 darwin* | rhapsody*) 9284 dynamic_linker="$host_os dyld" 9285 version_type=darwin 9286 need_lib_prefix=no 9287 need_version=no 9288 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9289 soname_spec='${libname}${release}${major}$shared_ext' 9290 shlibpath_overrides_runpath=yes 9291 shlibpath_var=DYLD_LIBRARY_PATH 9292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9293 9294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9296 ;; 9297 9298 dgux*) 9299 version_type=linux 9300 need_lib_prefix=no 9301 need_version=no 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9303 soname_spec='${libname}${release}${shared_ext}$major' 9304 shlibpath_var=LD_LIBRARY_PATH 9305 ;; 9306 9307 freebsd1*) 9308 dynamic_linker=no 9309 ;; 9310 9311 freebsd* | dragonfly*) 9312 # DragonFly does not have aout. When/if they implement a new 9313 # versioning mechanism, adjust this. 9314 if test -x /usr/bin/objformat; then 9315 objformat=`/usr/bin/objformat` 9316 else 9317 case $host_os in 9318 freebsd[123]*) objformat=aout ;; 9319 *) objformat=elf ;; 9320 esac 9321 fi 9322 version_type=freebsd-$objformat 9323 case $version_type in 9324 freebsd-elf*) 9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9326 need_version=no 9327 need_lib_prefix=no 9328 ;; 9329 freebsd-*) 9330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9331 need_version=yes 9332 ;; 9333 esac 9334 shlibpath_var=LD_LIBRARY_PATH 9335 case $host_os in 9336 freebsd2*) 9337 shlibpath_overrides_runpath=yes 9338 ;; 9339 freebsd3.[01]* | freebsdelf3.[01]*) 9340 shlibpath_overrides_runpath=yes 9341 hardcode_into_libs=yes 9342 ;; 9343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9345 shlibpath_overrides_runpath=no 9346 hardcode_into_libs=yes 9347 ;; 9348 *) # from 4.6 on, and DragonFly 9349 shlibpath_overrides_runpath=yes 9350 hardcode_into_libs=yes 9351 ;; 9352 esac 9353 ;; 9354 9355 gnu*) 9356 version_type=linux 9357 need_lib_prefix=no 9358 need_version=no 9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 shlibpath_var=LD_LIBRARY_PATH 9362 hardcode_into_libs=yes 9363 ;; 9364 9365 hpux9* | hpux10* | hpux11*) 9366 # Give a soname corresponding to the major version so that dld.sl refuses to 9367 # link against other versions. 9368 version_type=sunos 9369 need_lib_prefix=no 9370 need_version=no 9371 case $host_cpu in 9372 ia64*) 9373 shrext_cmds='.so' 9374 hardcode_into_libs=yes 9375 dynamic_linker="$host_os dld.so" 9376 shlibpath_var=LD_LIBRARY_PATH 9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9379 soname_spec='${libname}${release}${shared_ext}$major' 9380 if test "X$HPUX_IA64_MODE" = X32; then 9381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9382 else 9383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9384 fi 9385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9386 ;; 9387 hppa*64*) 9388 shrext_cmds='.sl' 9389 hardcode_into_libs=yes 9390 dynamic_linker="$host_os dld.sl" 9391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9394 soname_spec='${libname}${release}${shared_ext}$major' 9395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9397 ;; 9398 *) 9399 shrext_cmds='.sl' 9400 dynamic_linker="$host_os dld.sl" 9401 shlibpath_var=SHLIB_PATH 9402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9404 soname_spec='${libname}${release}${shared_ext}$major' 9405 ;; 9406 esac 9407 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9408 postinstall_cmds='chmod 555 $lib' 9409 ;; 9410 9411 interix[3-9]*) 9412 version_type=linux 9413 need_lib_prefix=no 9414 need_version=no 9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9416 soname_spec='${libname}${release}${shared_ext}$major' 9417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9418 shlibpath_var=LD_LIBRARY_PATH 9419 shlibpath_overrides_runpath=no 9420 hardcode_into_libs=yes 9421 ;; 9422 9423 irix5* | irix6* | nonstopux*) 9424 case $host_os in 9425 nonstopux*) version_type=nonstopux ;; 9426 *) 9427 if test "$lt_cv_prog_gnu_ld" = yes; then 9428 version_type=linux 9429 else 9430 version_type=irix 9431 fi ;; 9432 esac 9433 need_lib_prefix=no 9434 need_version=no 9435 soname_spec='${libname}${release}${shared_ext}$major' 9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9437 case $host_os in 9438 irix5* | nonstopux*) 9439 libsuff= shlibsuff= 9440 ;; 9441 *) 9442 case $LD in # libtool.m4 will add one of these switches to LD 9443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9444 libsuff= shlibsuff= libmagic=32-bit;; 9445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9446 libsuff=32 shlibsuff=N32 libmagic=N32;; 9447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9448 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9449 *) libsuff= shlibsuff= libmagic=never-match;; 9450 esac 9451 ;; 9452 esac 9453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9454 shlibpath_overrides_runpath=no 9455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9457 hardcode_into_libs=yes 9458 ;; 9459 9460 # No shared lib support for Linux oldld, aout, or coff. 9461 linux*oldld* | linux*aout* | linux*coff*) 9462 dynamic_linker=no 9463 ;; 9464 9465 # This must be Linux ELF. 9466 linux* | k*bsd*-gnu) 9467 version_type=linux 9468 need_lib_prefix=no 9469 need_version=no 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9471 soname_spec='${libname}${release}${shared_ext}$major' 9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9473 shlibpath_var=LD_LIBRARY_PATH 9474 shlibpath_overrides_runpath=no 9475 # This implies no fast_install, which is unacceptable. 9476 # Some rework will be needed to allow for fast_install 9477 # before this can be enabled. 9478 hardcode_into_libs=yes 9479 9480 # Append ld.so.conf contents to the search path 9481 if test -f /etc/ld.so.conf; then 9482 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9484 fi 9485 9486 # We used to test for /lib/ld.so.1 and disable shared libraries on 9487 # powerpc, because MkLinux only supported shared libraries with the 9488 # GNU dynamic linker. Since this was broken with cross compilers, 9489 # most powerpc-linux boxes support dynamic linking these days and 9490 # people can always --disable-shared, the test was removed, and we 9491 # assume the GNU/Linux dynamic linker is in use. 9492 dynamic_linker='GNU/Linux ld.so' 9493 ;; 9494 9495 netbsd*) 9496 version_type=sunos 9497 need_lib_prefix=no 9498 need_version=no 9499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9502 dynamic_linker='NetBSD (a.out) ld.so' 9503 else 9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9505 soname_spec='${libname}${release}${shared_ext}$major' 9506 dynamic_linker='NetBSD ld.elf_so' 9507 fi 9508 shlibpath_var=LD_LIBRARY_PATH 9509 shlibpath_overrides_runpath=yes 9510 hardcode_into_libs=yes 9511 ;; 9512 9513 newsos6) 9514 version_type=linux 9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9516 shlibpath_var=LD_LIBRARY_PATH 9517 shlibpath_overrides_runpath=yes 9518 ;; 9519 9520 nto-qnx*) 9521 version_type=linux 9522 need_lib_prefix=no 9523 need_version=no 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9525 soname_spec='${libname}${release}${shared_ext}$major' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 shlibpath_overrides_runpath=yes 9528 ;; 9529 9530 openbsd*) 9531 version_type=sunos 9532 sys_lib_dlsearch_path_spec="/usr/lib" 9533 need_lib_prefix=no 9534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9535 case $host_os in 9536 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9537 *) need_version=no ;; 9538 esac 9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9541 shlibpath_var=LD_LIBRARY_PATH 9542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9543 case $host_os in 9544 openbsd2.[89] | openbsd2.[89].*) 9545 shlibpath_overrides_runpath=no 9546 ;; 9547 *) 9548 shlibpath_overrides_runpath=yes 9549 ;; 9550 esac 9551 else 9552 shlibpath_overrides_runpath=yes 9553 fi 9554 ;; 9555 9556 os2*) 9557 libname_spec='$name' 9558 shrext_cmds=".dll" 9559 need_lib_prefix=no 9560 library_names_spec='$libname${shared_ext} $libname.a' 9561 dynamic_linker='OS/2 ld.exe' 9562 shlibpath_var=LIBPATH 9563 ;; 9564 9565 osf3* | osf4* | osf5*) 9566 version_type=osf 9567 need_lib_prefix=no 9568 need_version=no 9569 soname_spec='${libname}${release}${shared_ext}$major' 9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9571 shlibpath_var=LD_LIBRARY_PATH 9572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9574 ;; 9575 9576 rdos*) 9577 dynamic_linker=no 9578 ;; 9579 9580 solaris*) 9581 version_type=linux 9582 need_lib_prefix=no 9583 need_version=no 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 shlibpath_var=LD_LIBRARY_PATH 9587 shlibpath_overrides_runpath=yes 9588 hardcode_into_libs=yes 9589 # ldd complains unless libraries are executable 9590 postinstall_cmds='chmod +x $lib' 9591 ;; 9592 9593 sunos4*) 9594 version_type=sunos 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9597 shlibpath_var=LD_LIBRARY_PATH 9598 shlibpath_overrides_runpath=yes 9599 if test "$with_gnu_ld" = yes; then 9600 need_lib_prefix=no 9601 fi 9602 need_version=yes 9603 ;; 9604 9605 sysv4 | sysv4.3*) 9606 version_type=linux 9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9608 soname_spec='${libname}${release}${shared_ext}$major' 9609 shlibpath_var=LD_LIBRARY_PATH 9610 case $host_vendor in 9611 sni) 9612 shlibpath_overrides_runpath=no 9613 need_lib_prefix=no 9614 export_dynamic_flag_spec='${wl}-Blargedynsym' 9615 runpath_var=LD_RUN_PATH 9616 ;; 9617 siemens) 9618 need_lib_prefix=no 9619 ;; 9620 motorola) 9621 need_lib_prefix=no 9622 need_version=no 9623 shlibpath_overrides_runpath=no 9624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9625 ;; 9626 esac 9627 ;; 9628 9629 sysv4*MP*) 9630 if test -d /usr/nec ;then 9631 version_type=linux 9632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9633 soname_spec='$libname${shared_ext}.$major' 9634 shlibpath_var=LD_LIBRARY_PATH 9635 fi 9636 ;; 9637 9638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9639 version_type=freebsd-elf 9640 need_lib_prefix=no 9641 need_version=no 9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9643 soname_spec='${libname}${release}${shared_ext}$major' 9644 shlibpath_var=LD_LIBRARY_PATH 9645 hardcode_into_libs=yes 9646 if test "$with_gnu_ld" = yes; then 9647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9648 shlibpath_overrides_runpath=no 9649 else 9650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9651 shlibpath_overrides_runpath=yes 9652 case $host_os in 9653 sco3.2v5*) 9654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9655 ;; 9656 esac 9657 fi 9658 sys_lib_dlsearch_path_spec='/usr/lib' 9659 ;; 9660 9661 uts4*) 9662 version_type=linux 9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9664 soname_spec='${libname}${release}${shared_ext}$major' 9665 shlibpath_var=LD_LIBRARY_PATH 9666 ;; 9667 9668 *) 9669 dynamic_linker=no 9670 ;; 9671 esac 9672 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9673 $as_echo "$dynamic_linker" >&6; } 9674 test "$dynamic_linker" = no && can_build_shared=no 9675 9676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9677 if test "$GCC" = yes; then 9678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9679 fi 9680 9681 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9682 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9683 hardcode_action= 9684 if test -n "$hardcode_libdir_flag_spec" || \ 9685 test -n "$runpath_var" || \ 9686 test "X$hardcode_automatic" = "Xyes" ; then 9687 9688 # We can hardcode non-existant directories. 9689 if test "$hardcode_direct" != no && 9690 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9691 # have to relink, otherwise we might link with an installed library 9692 # when we should be linking with a yet-to-be-installed one 9693 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9694 test "$hardcode_minus_L" != no; then 9695 # Linking always hardcodes the temporary library directory. 9696 hardcode_action=relink 9697 else 9698 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9699 hardcode_action=immediate 9700 fi 9701 else 9702 # We cannot hardcode anything, or else we can only hardcode existing 9703 # directories. 9704 hardcode_action=unsupported 9705 fi 9706 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9707 $as_echo "$hardcode_action" >&6; } 9708 9709 if test "$hardcode_action" = relink; then 9710 # Fast installation is not supported 9711 enable_fast_install=no 9712 elif test "$shlibpath_overrides_runpath" = yes || 9713 test "$enable_shared" = no; then 9714 # Fast installation is not necessary 9715 enable_fast_install=needless 9716 fi 9717 9718 striplib= 9719 old_striplib= 9720 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9721 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 9722 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9723 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9724 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9725 { $as_echo "$as_me:$LINENO: result: yes" >&5 9726 $as_echo "yes" >&6; } 9727 else 9728 # FIXME - insert some real tests, host_os isn't really good enough 9729 case $host_os in 9730 darwin*) 9731 if test -n "$STRIP" ; then 9732 striplib="$STRIP -x" 9733 old_striplib="$STRIP -S" 9734 { $as_echo "$as_me:$LINENO: result: yes" >&5 9735 $as_echo "yes" >&6; } 9736 else 9737 { $as_echo "$as_me:$LINENO: result: no" >&5 9738 $as_echo "no" >&6; } 9739 fi 9740 ;; 9741 *) 9742 { $as_echo "$as_me:$LINENO: result: no" >&5 9743 $as_echo "no" >&6; } 9744 ;; 9745 esac 9746 fi 9747 9748 if test "x$enable_dlopen" != xyes; then 9749 enable_dlopen=unknown 9750 enable_dlopen_self=unknown 9751 enable_dlopen_self_static=unknown 9752 else 9753 lt_cv_dlopen=no 9754 lt_cv_dlopen_libs= 9755 9756 case $host_os in 9757 beos*) 9758 lt_cv_dlopen="load_add_on" 9759 lt_cv_dlopen_libs= 9760 lt_cv_dlopen_self=yes 9761 ;; 9762 9763 mingw* | pw32*) 9764 lt_cv_dlopen="LoadLibrary" 9765 lt_cv_dlopen_libs= 9766 ;; 9767 9768 cygwin*) 9769 lt_cv_dlopen="dlopen" 9770 lt_cv_dlopen_libs= 9771 ;; 9772 9773 darwin*) 9774 # if libdl is installed we need to link against it 9775 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9776 $as_echo_n "checking for dlopen in -ldl... " >&6; } 9777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9778 $as_echo_n "(cached) " >&6 9779 else 9780 ac_check_lib_save_LIBS=$LIBS 9781 LIBS="-ldl $LIBS" 9782 cat >conftest.$ac_ext <<_ACEOF 9783 /* confdefs.h. */ 9784 _ACEOF 9785 cat confdefs.h >>conftest.$ac_ext 9786 cat >>conftest.$ac_ext <<_ACEOF 9787 /* end confdefs.h. */ 9788 9789 /* Override any GCC internal prototype to avoid an error. 9790 Use char because int might match the return type of a GCC 9791 builtin and then its argument prototype would still apply. */ 9792 #ifdef __cplusplus 9793 extern "C" 9794 #endif 9795 char dlopen (); 9796 int 9797 main () 9798 { 9799 return dlopen (); 9800 ; 9801 return 0; 9802 } 9803 _ACEOF 9804 rm -f conftest.$ac_objext conftest$ac_exeext 9805 if { (ac_try="$ac_link" 9806 case "(($ac_try" in 9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9808 *) ac_try_echo=$ac_try;; 9809 esac 9810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9811 $as_echo "$ac_try_echo") >&5 9812 (eval "$ac_link") 2>conftest.er1 9813 ac_status=$? 9814 grep -v '^ *+' conftest.er1 >conftest.err 9815 rm -f conftest.er1 9816 cat conftest.err >&5 9817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9818 (exit $ac_status); } && { 9819 test -z "$ac_c_werror_flag" || 9820 test ! -s conftest.err 9821 } && test -s conftest$ac_exeext && { 9822 test "$cross_compiling" = yes || 9823 $as_test_x conftest$ac_exeext 9824 }; then 9825 ac_cv_lib_dl_dlopen=yes 9826 else 9827 $as_echo "$as_me: failed program was:" >&5 9828 sed 's/^/| /' conftest.$ac_ext >&5 9829 9830 ac_cv_lib_dl_dlopen=no 9831 fi 9832 9833 rm -rf conftest.dSYM 9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9835 conftest$ac_exeext conftest.$ac_ext 9836 LIBS=$ac_check_lib_save_LIBS 9837 fi 9838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9839 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9840 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9842 else 9843 9844 lt_cv_dlopen="dyld" 9845 lt_cv_dlopen_libs= 9846 lt_cv_dlopen_self=yes 9847 9848 fi 9849 9850 ;; 9851 9852 *) 9853 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9854 $as_echo_n "checking for shl_load... " >&6; } 9855 if test "${ac_cv_func_shl_load+set}" = set; then 9856 $as_echo_n "(cached) " >&6 9857 else 9858 cat >conftest.$ac_ext <<_ACEOF 9859 /* confdefs.h. */ 9860 _ACEOF 9861 cat confdefs.h >>conftest.$ac_ext 9862 cat >>conftest.$ac_ext <<_ACEOF 9863 /* end confdefs.h. */ 9864 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9866 #define shl_load innocuous_shl_load 9867 9868 /* System header to define __stub macros and hopefully few prototypes, 9869 which can conflict with char shl_load (); below. 9870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9871 <limits.h> exists even on freestanding compilers. */ 9872 9873 #ifdef __STDC__ 9874 # include <limits.h> 9875 #else 9876 # include <assert.h> 9877 #endif 9878 9879 #undef shl_load 9880 9881 /* Override any GCC internal prototype to avoid an error. 9882 Use char because int might match the return type of a GCC 9883 builtin and then its argument prototype would still apply. */ 9884 #ifdef __cplusplus 9885 extern "C" 9886 #endif 9887 char shl_load (); 9888 /* The GNU C library defines this for functions which it implements 9889 to always fail with ENOSYS. Some functions are actually named 9890 something starting with __ and the normal name is an alias. */ 9891 #if defined __stub_shl_load || defined __stub___shl_load 9892 choke me 9893 #endif 9894 9895 int 9896 main () 9897 { 9898 return shl_load (); 9899 ; 9900 return 0; 9901 } 9902 _ACEOF 9903 rm -f conftest.$ac_objext conftest$ac_exeext 9904 if { (ac_try="$ac_link" 9905 case "(($ac_try" in 9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9907 *) ac_try_echo=$ac_try;; 9908 esac 9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9910 $as_echo "$ac_try_echo") >&5 9911 (eval "$ac_link") 2>conftest.er1 9912 ac_status=$? 9913 grep -v '^ *+' conftest.er1 >conftest.err 9914 rm -f conftest.er1 9915 cat conftest.err >&5 9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); } && { 9918 test -z "$ac_c_werror_flag" || 9919 test ! -s conftest.err 9920 } && test -s conftest$ac_exeext && { 9921 test "$cross_compiling" = yes || 9922 $as_test_x conftest$ac_exeext 9923 }; then 9924 ac_cv_func_shl_load=yes 9925 else 9926 $as_echo "$as_me: failed program was:" >&5 9927 sed 's/^/| /' conftest.$ac_ext >&5 9928 9929 ac_cv_func_shl_load=no 9930 fi 9931 9932 rm -rf conftest.dSYM 9933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9934 conftest$ac_exeext conftest.$ac_ext 9935 fi 9936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9937 $as_echo "$ac_cv_func_shl_load" >&6; } 9938 if test "x$ac_cv_func_shl_load" = x""yes; then 9939 lt_cv_dlopen="shl_load" 9940 else 9941 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9942 $as_echo_n "checking for shl_load in -ldld... " >&6; } 9943 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9944 $as_echo_n "(cached) " >&6 9945 else 9946 ac_check_lib_save_LIBS=$LIBS 9947 LIBS="-ldld $LIBS" 9948 cat >conftest.$ac_ext <<_ACEOF 9949 /* confdefs.h. */ 9950 _ACEOF 9951 cat confdefs.h >>conftest.$ac_ext 9952 cat >>conftest.$ac_ext <<_ACEOF 9953 /* end confdefs.h. */ 9954 9955 /* Override any GCC internal prototype to avoid an error. 9956 Use char because int might match the return type of a GCC 9957 builtin and then its argument prototype would still apply. */ 9958 #ifdef __cplusplus 9959 extern "C" 9960 #endif 9961 char shl_load (); 9962 int 9963 main () 9964 { 9965 return shl_load (); 9966 ; 9967 return 0; 9968 } 9969 _ACEOF 9970 rm -f conftest.$ac_objext conftest$ac_exeext 9971 if { (ac_try="$ac_link" 9972 case "(($ac_try" in 9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9974 *) ac_try_echo=$ac_try;; 9975 esac 9976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9977 $as_echo "$ac_try_echo") >&5 9978 (eval "$ac_link") 2>conftest.er1 9979 ac_status=$? 9980 grep -v '^ *+' conftest.er1 >conftest.err 9981 rm -f conftest.er1 9982 cat conftest.err >&5 9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } && { 9985 test -z "$ac_c_werror_flag" || 9986 test ! -s conftest.err 9987 } && test -s conftest$ac_exeext && { 9988 test "$cross_compiling" = yes || 9989 $as_test_x conftest$ac_exeext 9990 }; then 9991 ac_cv_lib_dld_shl_load=yes 9992 else 9993 $as_echo "$as_me: failed program was:" >&5 9994 sed 's/^/| /' conftest.$ac_ext >&5 9995 9996 ac_cv_lib_dld_shl_load=no 9997 fi 9998 9999 rm -rf conftest.dSYM 10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10001 conftest$ac_exeext conftest.$ac_ext 10002 LIBS=$ac_check_lib_save_LIBS 10003 fi 10004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10005 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10006 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10007 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10008 else 10009 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10010 $as_echo_n "checking for dlopen... " >&6; } 10011 if test "${ac_cv_func_dlopen+set}" = set; then 10012 $as_echo_n "(cached) " >&6 10013 else 10014 cat >conftest.$ac_ext <<_ACEOF 10015 /* confdefs.h. */ 10016 _ACEOF 10017 cat confdefs.h >>conftest.$ac_ext 10018 cat >>conftest.$ac_ext <<_ACEOF 10019 /* end confdefs.h. */ 10020 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10021 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10022 #define dlopen innocuous_dlopen 10023 10024 /* System header to define __stub macros and hopefully few prototypes, 10025 which can conflict with char dlopen (); below. 10026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10027 <limits.h> exists even on freestanding compilers. */ 10028 10029 #ifdef __STDC__ 10030 # include <limits.h> 10031 #else 10032 # include <assert.h> 10033 #endif 10034 10035 #undef dlopen 10036 10037 /* Override any GCC internal prototype to avoid an error. 10038 Use char because int might match the return type of a GCC 10039 builtin and then its argument prototype would still apply. */ 10040 #ifdef __cplusplus 10041 extern "C" 10042 #endif 10043 char dlopen (); 10044 /* The GNU C library defines this for functions which it implements 10045 to always fail with ENOSYS. Some functions are actually named 10046 something starting with __ and the normal name is an alias. */ 10047 #if defined __stub_dlopen || defined __stub___dlopen 10048 choke me 10049 #endif 10050 10051 int 10052 main () 10053 { 10054 return dlopen (); 10055 ; 10056 return 0; 10057 } 10058 _ACEOF 10059 rm -f conftest.$ac_objext conftest$ac_exeext 10060 if { (ac_try="$ac_link" 10061 case "(($ac_try" in 10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10063 *) ac_try_echo=$ac_try;; 10064 esac 10065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10066 $as_echo "$ac_try_echo") >&5 10067 (eval "$ac_link") 2>conftest.er1 10068 ac_status=$? 10069 grep -v '^ *+' conftest.er1 >conftest.err 10070 rm -f conftest.er1 10071 cat conftest.err >&5 10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10073 (exit $ac_status); } && { 10074 test -z "$ac_c_werror_flag" || 10075 test ! -s conftest.err 10076 } && test -s conftest$ac_exeext && { 10077 test "$cross_compiling" = yes || 10078 $as_test_x conftest$ac_exeext 10079 }; then 10080 ac_cv_func_dlopen=yes 10081 else 10082 $as_echo "$as_me: failed program was:" >&5 10083 sed 's/^/| /' conftest.$ac_ext >&5 10084 10085 ac_cv_func_dlopen=no 10086 fi 10087 10088 rm -rf conftest.dSYM 10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10090 conftest$ac_exeext conftest.$ac_ext 10091 fi 10092 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10093 $as_echo "$ac_cv_func_dlopen" >&6; } 10094 if test "x$ac_cv_func_dlopen" = x""yes; then 10095 lt_cv_dlopen="dlopen" 10096 else 10097 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10098 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10100 $as_echo_n "(cached) " >&6 10101 else 10102 ac_check_lib_save_LIBS=$LIBS 10103 LIBS="-ldl $LIBS" 10104 cat >conftest.$ac_ext <<_ACEOF 10105 /* confdefs.h. */ 10106 _ACEOF 10107 cat confdefs.h >>conftest.$ac_ext 10108 cat >>conftest.$ac_ext <<_ACEOF 10109 /* end confdefs.h. */ 10110 10111 /* Override any GCC internal prototype to avoid an error. 10112 Use char because int might match the return type of a GCC 10113 builtin and then its argument prototype would still apply. */ 10114 #ifdef __cplusplus 10115 extern "C" 10116 #endif 10117 char dlopen (); 10118 int 10119 main () 10120 { 10121 return dlopen (); 10122 ; 10123 return 0; 10124 } 10125 _ACEOF 10126 rm -f conftest.$ac_objext conftest$ac_exeext 10127 if { (ac_try="$ac_link" 10128 case "(($ac_try" in 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10130 *) ac_try_echo=$ac_try;; 10131 esac 10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10133 $as_echo "$ac_try_echo") >&5 10134 (eval "$ac_link") 2>conftest.er1 10135 ac_status=$? 10136 grep -v '^ *+' conftest.er1 >conftest.err 10137 rm -f conftest.er1 10138 cat conftest.err >&5 10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10140 (exit $ac_status); } && { 10141 test -z "$ac_c_werror_flag" || 10142 test ! -s conftest.err 10143 } && test -s conftest$ac_exeext && { 10144 test "$cross_compiling" = yes || 10145 $as_test_x conftest$ac_exeext 10146 }; then 10147 ac_cv_lib_dl_dlopen=yes 10148 else 10149 $as_echo "$as_me: failed program was:" >&5 10150 sed 's/^/| /' conftest.$ac_ext >&5 10151 10152 ac_cv_lib_dl_dlopen=no 10153 fi 10154 10155 rm -rf conftest.dSYM 10156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10157 conftest$ac_exeext conftest.$ac_ext 10158 LIBS=$ac_check_lib_save_LIBS 10159 fi 10160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10161 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10162 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10164 else 10165 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10166 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10167 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10168 $as_echo_n "(cached) " >&6 10169 else 10170 ac_check_lib_save_LIBS=$LIBS 10171 LIBS="-lsvld $LIBS" 10172 cat >conftest.$ac_ext <<_ACEOF 10173 /* confdefs.h. */ 10174 _ACEOF 10175 cat confdefs.h >>conftest.$ac_ext 10176 cat >>conftest.$ac_ext <<_ACEOF 10177 /* end confdefs.h. */ 10178 10179 /* Override any GCC internal prototype to avoid an error. 10180 Use char because int might match the return type of a GCC 10181 builtin and then its argument prototype would still apply. */ 10182 #ifdef __cplusplus 10183 extern "C" 10184 #endif 10185 char dlopen (); 10186 int 10187 main () 10188 { 10189 return dlopen (); 10190 ; 10191 return 0; 10192 } 10193 _ACEOF 10194 rm -f conftest.$ac_objext conftest$ac_exeext 10195 if { (ac_try="$ac_link" 10196 case "(($ac_try" in 10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10198 *) ac_try_echo=$ac_try;; 10199 esac 10200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10201 $as_echo "$ac_try_echo") >&5 10202 (eval "$ac_link") 2>conftest.er1 10203 ac_status=$? 10204 grep -v '^ *+' conftest.er1 >conftest.err 10205 rm -f conftest.er1 10206 cat conftest.err >&5 10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); } && { 10209 test -z "$ac_c_werror_flag" || 10210 test ! -s conftest.err 10211 } && test -s conftest$ac_exeext && { 10212 test "$cross_compiling" = yes || 10213 $as_test_x conftest$ac_exeext 10214 }; then 10215 ac_cv_lib_svld_dlopen=yes 10216 else 10217 $as_echo "$as_me: failed program was:" >&5 10218 sed 's/^/| /' conftest.$ac_ext >&5 10219 10220 ac_cv_lib_svld_dlopen=no 10221 fi 10222 10223 rm -rf conftest.dSYM 10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10225 conftest$ac_exeext conftest.$ac_ext 10226 LIBS=$ac_check_lib_save_LIBS 10227 fi 10228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10229 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10230 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10232 else 10233 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10234 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10236 $as_echo_n "(cached) " >&6 10237 else 10238 ac_check_lib_save_LIBS=$LIBS 10239 LIBS="-ldld $LIBS" 10240 cat >conftest.$ac_ext <<_ACEOF 10241 /* confdefs.h. */ 10242 _ACEOF 10243 cat confdefs.h >>conftest.$ac_ext 10244 cat >>conftest.$ac_ext <<_ACEOF 10245 /* end confdefs.h. */ 10246 10247 /* Override any GCC internal prototype to avoid an error. 10248 Use char because int might match the return type of a GCC 10249 builtin and then its argument prototype would still apply. */ 10250 #ifdef __cplusplus 10251 extern "C" 10252 #endif 10253 char dld_link (); 10254 int 10255 main () 10256 { 10257 return dld_link (); 10258 ; 10259 return 0; 10260 } 10261 _ACEOF 10262 rm -f conftest.$ac_objext conftest$ac_exeext 10263 if { (ac_try="$ac_link" 10264 case "(($ac_try" in 10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10266 *) ac_try_echo=$ac_try;; 10267 esac 10268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10269 $as_echo "$ac_try_echo") >&5 10270 (eval "$ac_link") 2>conftest.er1 10271 ac_status=$? 10272 grep -v '^ *+' conftest.er1 >conftest.err 10273 rm -f conftest.er1 10274 cat conftest.err >&5 10275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 (exit $ac_status); } && { 10277 test -z "$ac_c_werror_flag" || 10278 test ! -s conftest.err 10279 } && test -s conftest$ac_exeext && { 10280 test "$cross_compiling" = yes || 10281 $as_test_x conftest$ac_exeext 10282 }; then 10283 ac_cv_lib_dld_dld_link=yes 10284 else 10285 $as_echo "$as_me: failed program was:" >&5 10286 sed 's/^/| /' conftest.$ac_ext >&5 10287 10288 ac_cv_lib_dld_dld_link=no 10289 fi 10290 10291 rm -rf conftest.dSYM 10292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10293 conftest$ac_exeext conftest.$ac_ext 10294 LIBS=$ac_check_lib_save_LIBS 10295 fi 10296 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10298 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10300 fi 10301 10302 10303 fi 10304 10305 10306 fi 10307 10308 10309 fi 10310 10311 10312 fi 10313 10314 10315 fi 10316 10317 ;; 10318 esac 10319 10320 if test "x$lt_cv_dlopen" != xno; then 10321 enable_dlopen=yes 10322 else 10323 enable_dlopen=no 10324 fi 10325 10326 case $lt_cv_dlopen in 10327 dlopen) 10328 save_CPPFLAGS="$CPPFLAGS" 10329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10330 10331 save_LDFLAGS="$LDFLAGS" 10332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10333 10334 save_LIBS="$LIBS" 10335 LIBS="$lt_cv_dlopen_libs $LIBS" 10336 10337 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10338 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10339 if test "${lt_cv_dlopen_self+set}" = set; then 10340 $as_echo_n "(cached) " >&6 10341 else 10342 if test "$cross_compiling" = yes; then : 10343 lt_cv_dlopen_self=cross 10344 else 10345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10346 lt_status=$lt_dlunknown 10347 cat > conftest.$ac_ext <<EOF 10348 #line 10348 "configure" 10349 #include "confdefs.h" 10350 10351 #if HAVE_DLFCN_H 10352 #include <dlfcn.h> 10353 #endif 10354 10355 #include <stdio.h> 10356 10357 #ifdef RTLD_GLOBAL 10358 # define LT_DLGLOBAL RTLD_GLOBAL 10359 #else 10360 # ifdef DL_GLOBAL 10361 # define LT_DLGLOBAL DL_GLOBAL 10362 # else 10363 # define LT_DLGLOBAL 0 10364 # endif 10365 #endif 10366 10367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10368 find out it does not work in some platform. */ 10369 #ifndef LT_DLLAZY_OR_NOW 10370 # ifdef RTLD_LAZY 10371 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10372 # else 10373 # ifdef DL_LAZY 10374 # define LT_DLLAZY_OR_NOW DL_LAZY 10375 # else 10376 # ifdef RTLD_NOW 10377 # define LT_DLLAZY_OR_NOW RTLD_NOW 10378 # else 10379 # ifdef DL_NOW 10380 # define LT_DLLAZY_OR_NOW DL_NOW 10381 # else 10382 # define LT_DLLAZY_OR_NOW 0 10383 # endif 10384 # endif 10385 # endif 10386 # endif 10387 #endif 10388 10389 #ifdef __cplusplus 10390 extern "C" void exit (int); 10391 #endif 10392 10393 void fnord() { int i=42;} 10394 int main () 10395 { 10396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10397 int status = $lt_dlunknown; 10398 10399 if (self) 10400 { 10401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10403 /* dlclose (self); */ 10404 } 10405 else 10406 puts (dlerror ()); 10407 10408 exit (status); 10409 } 10410 EOF 10411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10412 (eval $ac_link) 2>&5 10413 ac_status=$? 10414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10415 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10416 (./conftest; exit; ) >&5 2>/dev/null 10417 lt_status=$? 10418 case x$lt_status in 10419 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10420 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10421 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10422 esac 10423 else : 10424 # compilation failed 10425 lt_cv_dlopen_self=no 10426 fi 10427 fi 10428 rm -fr conftest* 10429 10430 10431 fi 10432 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10433 $as_echo "$lt_cv_dlopen_self" >&6; } 10434 10435 if test "x$lt_cv_dlopen_self" = xyes; then 10436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10437 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10438 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10439 if test "${lt_cv_dlopen_self_static+set}" = set; then 10440 $as_echo_n "(cached) " >&6 10441 else 10442 if test "$cross_compiling" = yes; then : 10443 lt_cv_dlopen_self_static=cross 10444 else 10445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10446 lt_status=$lt_dlunknown 10447 cat > conftest.$ac_ext <<EOF 10448 #line 10448 "configure" 10449 #include "confdefs.h" 10450 10451 #if HAVE_DLFCN_H 10452 #include <dlfcn.h> 10453 #endif 10454 10455 #include <stdio.h> 10456 10457 #ifdef RTLD_GLOBAL 10458 # define LT_DLGLOBAL RTLD_GLOBAL 10459 #else 10460 # ifdef DL_GLOBAL 10461 # define LT_DLGLOBAL DL_GLOBAL 10462 # else 10463 # define LT_DLGLOBAL 0 10464 # endif 10465 #endif 10466 10467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10468 find out it does not work in some platform. */ 10469 #ifndef LT_DLLAZY_OR_NOW 10470 # ifdef RTLD_LAZY 10471 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10472 # else 10473 # ifdef DL_LAZY 10474 # define LT_DLLAZY_OR_NOW DL_LAZY 10475 # else 10476 # ifdef RTLD_NOW 10477 # define LT_DLLAZY_OR_NOW RTLD_NOW 10478 # else 10479 # ifdef DL_NOW 10480 # define LT_DLLAZY_OR_NOW DL_NOW 10481 # else 10482 # define LT_DLLAZY_OR_NOW 0 10483 # endif 10484 # endif 10485 # endif 10486 # endif 10487 #endif 10488 10489 #ifdef __cplusplus 10490 extern "C" void exit (int); 10491 #endif 10492 10493 void fnord() { int i=42;} 10494 int main () 10495 { 10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10497 int status = $lt_dlunknown; 10498 10499 if (self) 10500 { 10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10503 /* dlclose (self); */ 10504 } 10505 else 10506 puts (dlerror ()); 10507 10508 exit (status); 10509 } 10510 EOF 10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10512 (eval $ac_link) 2>&5 10513 ac_status=$? 10514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10515 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10516 (./conftest; exit; ) >&5 2>/dev/null 10517 lt_status=$? 10518 case x$lt_status in 10519 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10520 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10521 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10522 esac 10523 else : 10524 # compilation failed 10525 lt_cv_dlopen_self_static=no 10526 fi 10527 fi 10528 rm -fr conftest* 10529 10530 10531 fi 10532 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10533 $as_echo "$lt_cv_dlopen_self_static" >&6; } 10534 fi 10535 10536 CPPFLAGS="$save_CPPFLAGS" 10537 LDFLAGS="$save_LDFLAGS" 10538 LIBS="$save_LIBS" 10539 ;; 10540 esac 10541 10542 case $lt_cv_dlopen_self in 10543 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10544 *) enable_dlopen_self=unknown ;; 10545 esac 10546 10547 case $lt_cv_dlopen_self_static in 10548 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10549 *) enable_dlopen_self_static=unknown ;; 10550 esac 10551 fi 10552 10553 10554 # Report which library types will actually be built 10555 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10556 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 10557 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10558 $as_echo "$can_build_shared" >&6; } 10559 10560 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10561 $as_echo_n "checking whether to build shared libraries... " >&6; } 10562 test "$can_build_shared" = "no" && enable_shared=no 10563 10564 # On AIX, shared libraries and static libraries use the same namespace, and 10565 # are all built from PIC. 10566 case $host_os in 10567 aix3*) 10568 test "$enable_shared" = yes && enable_static=no 10569 if test -n "$RANLIB"; then 10570 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10571 postinstall_cmds='$RANLIB $lib' 10572 fi 10573 ;; 10574 10575 aix4* | aix5*) 10576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10577 test "$enable_shared" = yes && enable_static=no 10578 fi 10579 ;; 10580 esac 10581 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10582 $as_echo "$enable_shared" >&6; } 10583 10584 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10585 $as_echo_n "checking whether to build static libraries... " >&6; } 10586 # Make sure either enable_shared or enable_static is yes. 10587 test "$enable_shared" = yes || enable_static=yes 10588 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10589 $as_echo "$enable_static" >&6; } 10590 10591 # The else clause should only fire when bootstrapping the 10592 # libtool distribution, otherwise you forgot to ship ltmain.sh 10593 # with your package, and you will get complaints that there are 10594 # no rules to generate ltmain.sh. 10595 if test -f "$ltmain"; then 10596 # See if we are running on zsh, and set the options which allow our commands through 10597 # without removal of \ escapes. 10598 if test -n "${ZSH_VERSION+set}" ; then 10599 setopt NO_GLOB_SUBST 10600 fi 10601 # Now quote all the things that may contain metacharacters while being 10602 # careful not to overquote the AC_SUBSTed values. We take copies of the 10603 # variables and quote the copies for generation of the libtool script. 10604 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10605 SED SHELL STRIP \ 10606 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10607 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10608 deplibs_check_method reload_flag reload_cmds need_locks \ 10609 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10610 lt_cv_sys_global_symbol_to_c_name_address \ 10611 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10612 old_postinstall_cmds old_postuninstall_cmds \ 10613 compiler \ 10614 CC \ 10615 LD \ 10616 lt_prog_compiler_wl \ 10617 lt_prog_compiler_pic \ 10618 lt_prog_compiler_static \ 10619 lt_prog_compiler_no_builtin_flag \ 10620 export_dynamic_flag_spec \ 10621 thread_safe_flag_spec \ 10622 whole_archive_flag_spec \ 10623 enable_shared_with_static_runtimes \ 10624 old_archive_cmds \ 10625 old_archive_from_new_cmds \ 10626 predep_objects \ 10627 postdep_objects \ 10628 predeps \ 10629 postdeps \ 10630 compiler_lib_search_path \ 10631 archive_cmds \ 10632 archive_expsym_cmds \ 10633 postinstall_cmds \ 10634 postuninstall_cmds \ 10635 old_archive_from_expsyms_cmds \ 10636 allow_undefined_flag \ 10637 no_undefined_flag \ 10638 export_symbols_cmds \ 10639 hardcode_libdir_flag_spec \ 10640 hardcode_libdir_flag_spec_ld \ 10641 hardcode_libdir_separator \ 10642 hardcode_automatic \ 10643 module_cmds \ 10644 module_expsym_cmds \ 10645 lt_cv_prog_compiler_c_o \ 10646 fix_srcfile_path \ 10647 exclude_expsyms \ 10648 include_expsyms; do 10649 10650 case $var in 10651 old_archive_cmds | \ 10652 old_archive_from_new_cmds | \ 10653 archive_cmds | \ 10654 archive_expsym_cmds | \ 10655 module_cmds | \ 10656 module_expsym_cmds | \ 10657 old_archive_from_expsyms_cmds | \ 10658 export_symbols_cmds | \ 10659 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10660 postinstall_cmds | postuninstall_cmds | \ 10661 old_postinstall_cmds | old_postuninstall_cmds | \ 10662 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10663 # Double-quote double-evaled strings. 10664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10665 ;; 10666 *) 10667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10668 ;; 10669 esac 10670 done 10671 10672 case $lt_echo in 10673 *'\$0 --fallback-echo"') 10674 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10675 ;; 10676 esac 10677 10678 cfgfile="${ofile}T" 10679 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10680 $rm -f "$cfgfile" 10681 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10682 $as_echo "$as_me: creating $ofile" >&6;} 10683 10684 cat <<__EOF__ >> "$cfgfile" 10685 #! $SHELL 10686 10687 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10688 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10689 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 10690 # 10691 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10692 # Free Software Foundation, Inc. 10693 # 10694 # This file is part of GNU Libtool: 10695 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 10696 # 10697 # This program is free software; you can redistribute it and/or modify 10698 # it under the terms of the GNU General Public License as published by 10699 # the Free Software Foundation; either version 2 of the License, or 10700 # (at your option) any later version. 10701 # 10702 # This program is distributed in the hope that it will be useful, but 10703 # WITHOUT ANY WARRANTY; without even the implied warranty of 10704 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10705 # General Public License for more details. 10706 # 10707 # You should have received a copy of the GNU General Public License 10708 # along with this program; if not, write to the Free Software 10709 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10710 # 10711 # As a special exception to the GNU General Public License, if you 10712 # distribute this file as part of a program that contains a 10713 # configuration script generated by Autoconf, you may include it under 10714 # the same distribution terms that you use for the rest of that program. 10715 10716 # A sed program that does not truncate output. 10717 SED=$lt_SED 10718 10719 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 10720 Xsed="$SED -e 1s/^X//" 10721 10722 # The HP-UX ksh and POSIX shell print the target directory to stdout 10723 # if CDPATH is set. 10724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10725 10726 # The names of the tagged configurations supported by this script. 10727 available_tags= 10728 10729 # ### BEGIN LIBTOOL CONFIG 10730 10731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10732 10733 # Shell to use when invoking shell scripts. 10734 SHELL=$lt_SHELL 10735 10736 # Whether or not to build shared libraries. 10737 build_libtool_libs=$enable_shared 10738 10739 # Whether or not to build static libraries. 10740 build_old_libs=$enable_static 10741 10742 # Whether or not to add -lc for building shared libraries. 10743 build_libtool_need_lc=$archive_cmds_need_lc 10744 10745 # Whether or not to disallow shared libs when runtime libs are static 10746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10747 10748 # Whether or not to optimize for fast installation. 10749 fast_install=$enable_fast_install 10750 10751 # The host system. 10752 host_alias=$host_alias 10753 host=$host 10754 host_os=$host_os 10755 10756 # The build system. 10757 build_alias=$build_alias 10758 build=$build 10759 build_os=$build_os 10760 10761 # An echo program that does not interpret backslashes. 10762 echo=$lt_echo 10763 10764 # The archiver. 10765 AR=$lt_AR 10766 AR_FLAGS=$lt_AR_FLAGS 10767 10768 # A C compiler. 10769 LTCC=$lt_LTCC 10770 10771 # LTCC compiler flags. 10772 LTCFLAGS=$lt_LTCFLAGS 10773 10774 # A language-specific compiler. 10775 CC=$lt_compiler 10776 10777 # Is the compiler the GNU C compiler? 10778 with_gcc=$GCC 10779 10780 # An ERE matcher. 10781 EGREP=$lt_EGREP 10782 10783 # The linker used to build libraries. 10784 LD=$lt_LD 10785 10786 # Whether we need hard or soft links. 10787 LN_S=$lt_LN_S 10788 10789 # A BSD-compatible nm program. 10790 NM=$lt_NM 10791 10792 # A symbol stripping program 10793 STRIP=$lt_STRIP 10794 10795 # Used to examine libraries when file_magic_cmd begins "file" 10796 MAGIC_CMD=$MAGIC_CMD 10797 10798 # Used on cygwin: DLL creation program. 10799 DLLTOOL="$DLLTOOL" 10800 10801 # Used on cygwin: object dumper. 10802 OBJDUMP="$OBJDUMP" 10803 10804 # Used on cygwin: assembler. 10805 AS="$AS" 10806 10807 # The name of the directory that contains temporary libtool files. 10808 objdir=$objdir 10809 10810 # How to create reloadable object files. 10811 reload_flag=$lt_reload_flag 10812 reload_cmds=$lt_reload_cmds 10813 10814 # How to pass a linker flag through the compiler. 10815 wl=$lt_lt_prog_compiler_wl 10816 10817 # Object file suffix (normally "o"). 10818 objext="$ac_objext" 10819 10820 # Old archive suffix (normally "a"). 10821 libext="$libext" 10822 10823 # Shared library suffix (normally ".so"). 10824 shrext_cmds='$shrext_cmds' 10825 10826 # Executable file suffix (normally ""). 10827 exeext="$exeext" 10828 10829 # Additional compiler flags for building library objects. 10830 pic_flag=$lt_lt_prog_compiler_pic 10831 pic_mode=$pic_mode 10832 10833 # What is the maximum length of a command? 10834 max_cmd_len=$lt_cv_sys_max_cmd_len 10835 10836 # Does compiler simultaneously support -c and -o options? 10837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10838 10839 # Must we lock files when doing compilation? 10840 need_locks=$lt_need_locks 10841 10842 # Do we need the lib prefix for modules? 10843 need_lib_prefix=$need_lib_prefix 10844 10845 # Do we need a version for libraries? 10846 need_version=$need_version 10847 10848 # Whether dlopen is supported. 10849 dlopen_support=$enable_dlopen 10850 10851 # Whether dlopen of programs is supported. 10852 dlopen_self=$enable_dlopen_self 10853 10854 # Whether dlopen of statically linked programs is supported. 10855 dlopen_self_static=$enable_dlopen_self_static 10856 10857 # Compiler flag to prevent dynamic linking. 10858 link_static_flag=$lt_lt_prog_compiler_static 10859 10860 # Compiler flag to turn off builtin functions. 10861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10862 10863 # Compiler flag to allow reflexive dlopens. 10864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10865 10866 # Compiler flag to generate shared objects directly from archives. 10867 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10868 10869 # Compiler flag to generate thread-safe objects. 10870 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10871 10872 # Library versioning type. 10873 version_type=$version_type 10874 10875 # Format of library name prefix. 10876 libname_spec=$lt_libname_spec 10877 10878 # List of archive names. First name is the real one, the rest are links. 10879 # The last name is the one that the linker finds with -lNAME. 10880 library_names_spec=$lt_library_names_spec 10881 10882 # The coded name of the library, if different from the real name. 10883 soname_spec=$lt_soname_spec 10884 10885 # Commands used to build and install an old-style archive. 10886 RANLIB=$lt_RANLIB 10887 old_archive_cmds=$lt_old_archive_cmds 10888 old_postinstall_cmds=$lt_old_postinstall_cmds 10889 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10890 10891 # Create an old-style archive from a shared archive. 10892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10893 10894 # Create a temporary old-style archive to link instead of a shared archive. 10895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10896 10897 # Commands used to build and install a shared archive. 10898 archive_cmds=$lt_archive_cmds 10899 archive_expsym_cmds=$lt_archive_expsym_cmds 10900 postinstall_cmds=$lt_postinstall_cmds 10901 postuninstall_cmds=$lt_postuninstall_cmds 10902 10903 # Commands used to build a loadable module (assumed same as above if empty) 10904 module_cmds=$lt_module_cmds 10905 module_expsym_cmds=$lt_module_expsym_cmds 10906 10907 # Commands to strip libraries. 10908 old_striplib=$lt_old_striplib 10909 striplib=$lt_striplib 10910 10911 # Dependencies to place before the objects being linked to create a 10912 # shared library. 10913 predep_objects=$lt_predep_objects 10914 10915 # Dependencies to place after the objects being linked to create a 10916 # shared library. 10917 postdep_objects=$lt_postdep_objects 10918 10919 # Dependencies to place before the objects being linked to create a 10920 # shared library. 10921 predeps=$lt_predeps 10922 10923 # Dependencies to place after the objects being linked to create a 10924 # shared library. 10925 postdeps=$lt_postdeps 10926 10927 # The library search path used internally by the compiler when linking 10928 # a shared library. 10929 compiler_lib_search_path=$lt_compiler_lib_search_path 10930 10931 # Method to check whether dependent libraries are shared objects. 10932 deplibs_check_method=$lt_deplibs_check_method 10933 10934 # Command to use when deplibs_check_method == file_magic. 10935 file_magic_cmd=$lt_file_magic_cmd 10936 10937 # Flag that allows shared libraries with undefined symbols to be built. 10938 allow_undefined_flag=$lt_allow_undefined_flag 10939 10940 # Flag that forces no undefined symbols. 10941 no_undefined_flag=$lt_no_undefined_flag 10942 10943 # Commands used to finish a libtool library installation in a directory. 10944 finish_cmds=$lt_finish_cmds 10945 10946 # Same as above, but a single script fragment to be evaled but not shown. 10947 finish_eval=$lt_finish_eval 10948 10949 # Take the output of nm and produce a listing of raw symbols and C names. 10950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10951 10952 # Transform the output of nm in a proper C declaration 10953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10954 10955 # Transform the output of nm in a C name address pair 10956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10957 10958 # This is the shared library runtime path variable. 10959 runpath_var=$runpath_var 10960 10961 # This is the shared library path variable. 10962 shlibpath_var=$shlibpath_var 10963 10964 # Is shlibpath searched before the hard-coded library search path? 10965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10966 10967 # How to hardcode a shared library path into an executable. 10968 hardcode_action=$hardcode_action 10969 10970 # Whether we should hardcode library paths into libraries. 10971 hardcode_into_libs=$hardcode_into_libs 10972 10973 # Flag to hardcode \$libdir into a binary during linking. 10974 # This must work even if \$libdir does not exist. 10975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10976 10977 # If ld is used when linking, flag to hardcode \$libdir into 10978 # a binary during linking. This must work even if \$libdir does 10979 # not exist. 10980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10981 10982 # Whether we need a single -rpath flag with a separated argument. 10983 hardcode_libdir_separator=$lt_hardcode_libdir_separator 10984 10985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10986 # resulting binary. 10987 hardcode_direct=$hardcode_direct 10988 10989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10990 # resulting binary. 10991 hardcode_minus_L=$hardcode_minus_L 10992 10993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10994 # the resulting binary. 10995 hardcode_shlibpath_var=$hardcode_shlibpath_var 10996 10997 # Set to yes if building a shared library automatically hardcodes DIR into the library 10998 # and all subsequent libraries and executables linked against it. 10999 hardcode_automatic=$hardcode_automatic 11000 11001 # Variables whose values should be saved in libtool wrapper scripts and 11002 # restored at relink time. 11003 variables_saved_for_relink="$variables_saved_for_relink" 11004 11005 # Whether libtool must link a program against all its dependency libraries. 11006 link_all_deplibs=$link_all_deplibs 11007 11008 # Compile-time system search path for libraries 11009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11010 11011 # Run-time system search path for libraries 11012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11013 11014 # Fix the shell variable \$srcfile for the compiler. 11015 fix_srcfile_path=$lt_fix_srcfile_path 11016 11017 # Set to yes if exported symbols are required. 11018 always_export_symbols=$always_export_symbols 11019 11020 # The commands to list exported symbols. 11021 export_symbols_cmds=$lt_export_symbols_cmds 11022 11023 # The commands to extract the exported symbol list from a shared archive. 11024 extract_expsyms_cmds=$lt_extract_expsyms_cmds 11025 11026 # Symbols that should not be listed in the preloaded symbols. 11027 exclude_expsyms=$lt_exclude_expsyms 11028 11029 # Symbols that must always be exported. 11030 include_expsyms=$lt_include_expsyms 11031 11032 # ### END LIBTOOL CONFIG 11033 11034 __EOF__ 11035 11036 11037 case $host_os in 11038 aix3*) 11039 cat <<\EOF >> "$cfgfile" 11040 11041 # AIX sometimes has problems with the GCC collect2 program. For some 11042 # reason, if we set the COLLECT_NAMES environment variable, the problems 11043 # vanish in a puff of smoke. 11044 if test "X${COLLECT_NAMES+set}" != Xset; then 11045 COLLECT_NAMES= 11046 export COLLECT_NAMES 11047 fi 11048 EOF 11049 ;; 11050 esac 11051 11052 # We use sed instead of cat because bash on DJGPP gets confused if 11053 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11054 # text mode, it properly converts lines to CR/LF. This bash problem 11055 # is reportedly fixed, but why not run on old versions too? 11056 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11057 11058 mv -f "$cfgfile" "$ofile" || \ 11059 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11060 chmod +x "$ofile" 11061 11062 else 11063 # If there is no Makefile yet, we rely on a make rule to execute 11064 # `config.status --recheck' to rerun these tests and create the 11065 # libtool script then. 11066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11067 if test -f "$ltmain_in"; then 11068 test -f Makefile && make "$ltmain" 11069 fi 11070 fi 11071 11072 11073 ac_ext=c 11074 ac_cpp='$CPP $CPPFLAGS' 11075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11077 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11078 11079 CC="$lt_save_CC" 11080 11081 11082 # Check whether --with-tags was given. 11083 if test "${with_tags+set}" = set; then 11084 withval=$with_tags; tagnames="$withval" 11085 fi 11086 11087 11088 if test -f "$ltmain" && test -n "$tagnames"; then 11089 if test ! -f "${ofile}"; then 11090 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11091 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11092 fi 11093 11094 if test -z "$LTCC"; then 11095 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11096 if test -z "$LTCC"; then 11097 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11098 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11099 else 11100 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11101 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11102 fi 11103 fi 11104 if test -z "$LTCFLAGS"; then 11105 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11106 fi 11107 11108 # Extract list of available tagged configurations in $ofile. 11109 # Note that this assumes the entire list is on one line. 11110 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11111 11112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11113 for tagname in $tagnames; do 11114 IFS="$lt_save_ifs" 11115 # Check whether tagname contains only valid characters 11116 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11117 "") ;; 11118 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11119 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11120 { (exit 1); exit 1; }; } 11121 ;; 11122 esac 11123 11124 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11125 then 11126 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11127 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11128 { (exit 1); exit 1; }; } 11129 fi 11130 11131 # Update the list of available tags. 11132 if test -n "$tagname"; then 11133 echo appending configuration tag \"$tagname\" to $ofile 11134 11135 case $tagname in 11136 CXX) 11137 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11138 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11139 (test "X$CXX" != "Xg++"))) ; then 11140 ac_ext=cpp 11141 ac_cpp='$CXXCPP $CPPFLAGS' 11142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11145 11146 11147 11148 11149 archive_cmds_need_lc_CXX=no 11150 allow_undefined_flag_CXX= 11151 always_export_symbols_CXX=no 11152 archive_expsym_cmds_CXX= 11153 export_dynamic_flag_spec_CXX= 11154 hardcode_direct_CXX=no 11155 hardcode_libdir_flag_spec_CXX= 11156 hardcode_libdir_flag_spec_ld_CXX= 11157 hardcode_libdir_separator_CXX= 11158 hardcode_minus_L_CXX=no 11159 hardcode_shlibpath_var_CXX=unsupported 11160 hardcode_automatic_CXX=no 11161 module_cmds_CXX= 11162 module_expsym_cmds_CXX= 11163 link_all_deplibs_CXX=unknown 11164 old_archive_cmds_CXX=$old_archive_cmds 11165 no_undefined_flag_CXX= 11166 whole_archive_flag_spec_CXX= 11167 enable_shared_with_static_runtimes_CXX=no 11168 11169 # Dependencies to place before and after the object being linked: 11170 predep_objects_CXX= 11171 postdep_objects_CXX= 11172 predeps_CXX= 11173 postdeps_CXX= 11174 compiler_lib_search_path_CXX= 11175 11176 # Source file extension for C++ test sources. 11177 ac_ext=cpp 11178 11179 # Object file extension for compiled C++ test sources. 11180 objext=o 11181 objext_CXX=$objext 11182 11183 # Code to be used in simple compile tests 11184 lt_simple_compile_test_code="int some_variable = 0;" 11185 11186 # Code to be used in simple link tests 11187 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11188 11189 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11190 11191 # If no C compiler was specified, use CC. 11192 LTCC=${LTCC-"$CC"} 11193 11194 # If no C compiler flags were specified, use CFLAGS. 11195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11196 11197 # Allow CC to be a program name with arguments. 11198 compiler=$CC 11199 11200 11201 # save warnings/boilerplate of simple test code 11202 ac_outfile=conftest.$ac_objext 11203 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11204 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11205 _lt_compiler_boilerplate=`cat conftest.err` 11206 $rm conftest* 11207 11208 ac_outfile=conftest.$ac_objext 11209 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11210 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11211 _lt_linker_boilerplate=`cat conftest.err` 11212 $rm conftest* 11213 11214 11215 # Allow CC to be a program name with arguments. 11216 lt_save_CC=$CC 11217 lt_save_LD=$LD 11218 lt_save_GCC=$GCC 11219 GCC=$GXX 11220 lt_save_with_gnu_ld=$with_gnu_ld 11221 lt_save_path_LD=$lt_cv_path_LD 11222 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11223 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11224 else 11225 $as_unset lt_cv_prog_gnu_ld 11226 fi 11227 if test -n "${lt_cv_path_LDCXX+set}"; then 11228 lt_cv_path_LD=$lt_cv_path_LDCXX 11229 else 11230 $as_unset lt_cv_path_LD 11231 fi 11232 test -z "${LDCXX+set}" || LD=$LDCXX 11233 CC=${CXX-"c++"} 11234 compiler=$CC 11235 compiler_CXX=$CC 11236 for cc_temp in $compiler""; do 11237 case $cc_temp in 11238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11240 \-*) ;; 11241 *) break;; 11242 esac 11243 done 11244 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11245 11246 11247 # We don't want -fno-exception wen compiling C++ code, so set the 11248 # no_builtin_flag separately 11249 if test "$GXX" = yes; then 11250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11251 else 11252 lt_prog_compiler_no_builtin_flag_CXX= 11253 fi 11254 11255 if test "$GXX" = yes; then 11256 # Set up default GNU C++ configuration 11257 11258 11259 # Check whether --with-gnu-ld was given. 11260 if test "${with_gnu_ld+set}" = set; then 11261 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11262 else 11263 with_gnu_ld=no 11264 fi 11265 11266 ac_prog=ld 11267 if test "$GCC" = yes; then 11268 # Check if gcc -print-prog-name=ld gives a path. 11269 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11270 $as_echo_n "checking for ld used by $CC... " >&6; } 11271 case $host in 11272 *-*-mingw*) 11273 # gcc leaves a trailing carriage return which upsets mingw 11274 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11275 *) 11276 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11277 esac 11278 case $ac_prog in 11279 # Accept absolute paths. 11280 [\\/]* | ?:[\\/]*) 11281 re_direlt='/[^/][^/]*/\.\./' 11282 # Canonicalize the pathname of ld 11283 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11284 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11285 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11286 done 11287 test -z "$LD" && LD="$ac_prog" 11288 ;; 11289 "") 11290 # If it fails, then pretend we aren't using GCC. 11291 ac_prog=ld 11292 ;; 11293 *) 11294 # If it is relative, then search for the first ld in PATH. 11295 with_gnu_ld=unknown 11296 ;; 11297 esac 11298 elif test "$with_gnu_ld" = yes; then 11299 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11300 $as_echo_n "checking for GNU ld... " >&6; } 11301 else 11302 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11303 $as_echo_n "checking for non-GNU ld... " >&6; } 11304 fi 11305 if test "${lt_cv_path_LD+set}" = set; then 11306 $as_echo_n "(cached) " >&6 11307 else 11308 if test -z "$LD"; then 11309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11310 for ac_dir in $PATH; do 11311 IFS="$lt_save_ifs" 11312 test -z "$ac_dir" && ac_dir=. 11313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11314 lt_cv_path_LD="$ac_dir/$ac_prog" 11315 # Check to see if the program is GNU ld. I'd rather use --version, 11316 # but apparently some variants of GNU ld only accept -v. 11317 # Break only if it was the GNU/non-GNU ld that we prefer. 11318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11319 *GNU* | *'with BFD'*) 11320 test "$with_gnu_ld" != no && break 11321 ;; 11322 *) 11323 test "$with_gnu_ld" != yes && break 11324 ;; 11325 esac 11326 fi 11327 done 11328 IFS="$lt_save_ifs" 11329 else 11330 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11331 fi 11332 fi 11333 11334 LD="$lt_cv_path_LD" 11335 if test -n "$LD"; then 11336 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11337 $as_echo "$LD" >&6; } 11338 else 11339 { $as_echo "$as_me:$LINENO: result: no" >&5 11340 $as_echo "no" >&6; } 11341 fi 11342 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11343 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11344 { (exit 1); exit 1; }; } 11345 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11347 if test "${lt_cv_prog_gnu_ld+set}" = set; then 11348 $as_echo_n "(cached) " >&6 11349 else 11350 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11351 case `$LD -v 2>&1 </dev/null` in 11352 *GNU* | *'with BFD'*) 11353 lt_cv_prog_gnu_ld=yes 11354 ;; 11355 *) 11356 lt_cv_prog_gnu_ld=no 11357 ;; 11358 esac 11359 fi 11360 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11361 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11362 with_gnu_ld=$lt_cv_prog_gnu_ld 11363 11364 11365 11366 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11367 # archiving commands below assume that GNU ld is being used. 11368 if test "$with_gnu_ld" = yes; then 11369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11370 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' 11371 11372 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11374 11375 # If archive_cmds runs LD, not CC, wlarc should be empty 11376 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11377 # investigate it a little bit more. (MM) 11378 wlarc='${wl}' 11379 11380 # ancient GNU ld didn't support --whole-archive et. al. 11381 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11382 grep 'no-whole-archive' > /dev/null; then 11383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11384 else 11385 whole_archive_flag_spec_CXX= 11386 fi 11387 else 11388 with_gnu_ld=no 11389 wlarc= 11390 11391 # A generic and very simple default shared library creation 11392 # command for GNU C++ for the case where it uses the native 11393 # linker, instead of GNU ld. If possible, this setting should 11394 # overridden to take advantage of the native linker features on 11395 # the platform it is being used on. 11396 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11397 fi 11398 11399 # Commands to make compiler produce verbose output that lists 11400 # what "hidden" libraries, object files and flags are used when 11401 # linking a shared library. 11402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11403 11404 else 11405 GXX=no 11406 with_gnu_ld=no 11407 wlarc= 11408 fi 11409 11410 # PORTME: fill in a description of your system's C++ link characteristics 11411 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11413 ld_shlibs_CXX=yes 11414 case $host_os in 11415 aix3*) 11416 # FIXME: insert proper C++ library support 11417 ld_shlibs_CXX=no 11418 ;; 11419 aix4* | aix5*) 11420 if test "$host_cpu" = ia64; then 11421 # On IA64, the linker does run time linking by default, so we don't 11422 # have to do anything special. 11423 aix_use_runtimelinking=no 11424 exp_sym_flag='-Bexport' 11425 no_entry_flag="" 11426 else 11427 aix_use_runtimelinking=no 11428 11429 # Test if we are trying to use run time linking or normal 11430 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11431 # need to do runtime linking. 11432 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11433 for ld_flag in $LDFLAGS; do 11434 case $ld_flag in 11435 *-brtl*) 11436 aix_use_runtimelinking=yes 11437 break 11438 ;; 11439 esac 11440 done 11441 ;; 11442 esac 11443 11444 exp_sym_flag='-bexport' 11445 no_entry_flag='-bnoentry' 11446 fi 11447 11448 # When large executables or shared objects are built, AIX ld can 11449 # have problems creating the table of contents. If linking a library 11450 # or program results in "error TOC overflow" add -mminimal-toc to 11451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11453 11454 archive_cmds_CXX='' 11455 hardcode_direct_CXX=yes 11456 hardcode_libdir_separator_CXX=':' 11457 link_all_deplibs_CXX=yes 11458 11459 if test "$GXX" = yes; then 11460 case $host_os in aix4.[012]|aix4.[012].*) 11461 # We only want to do this on AIX 4.2 and lower, the check 11462 # below for broken collect2 doesn't work under 4.3+ 11463 collect2name=`${CC} -print-prog-name=collect2` 11464 if test -f "$collect2name" && \ 11465 strings "$collect2name" | grep resolve_lib_name >/dev/null 11466 then 11467 # We have reworked collect2 11468 : 11469 else 11470 # We have old collect2 11471 hardcode_direct_CXX=unsupported 11472 # It fails to find uninstalled libraries when the uninstalled 11473 # path is not listed in the libpath. Setting hardcode_minus_L 11474 # to unsupported forces relinking 11475 hardcode_minus_L_CXX=yes 11476 hardcode_libdir_flag_spec_CXX='-L$libdir' 11477 hardcode_libdir_separator_CXX= 11478 fi 11479 ;; 11480 esac 11481 shared_flag='-shared' 11482 if test "$aix_use_runtimelinking" = yes; then 11483 shared_flag="$shared_flag "'${wl}-G' 11484 fi 11485 else 11486 # not using gcc 11487 if test "$host_cpu" = ia64; then 11488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11489 # chokes on -Wl,-G. The following line is correct: 11490 shared_flag='-G' 11491 else 11492 if test "$aix_use_runtimelinking" = yes; then 11493 shared_flag='${wl}-G' 11494 else 11495 shared_flag='${wl}-bM:SRE' 11496 fi 11497 fi 11498 fi 11499 11500 # It seems that -bexpall does not export symbols beginning with 11501 # underscore (_), so it is better to generate a list of symbols to export. 11502 always_export_symbols_CXX=yes 11503 if test "$aix_use_runtimelinking" = yes; then 11504 # Warning - without using the other runtime loading flags (-brtl), 11505 # -berok will link without error, but may produce a broken library. 11506 allow_undefined_flag_CXX='-berok' 11507 # Determine the default libpath from the value encoded in an empty executable. 11508 cat >conftest.$ac_ext <<_ACEOF 11509 /* confdefs.h. */ 11510 _ACEOF 11511 cat confdefs.h >>conftest.$ac_ext 11512 cat >>conftest.$ac_ext <<_ACEOF 11513 /* end confdefs.h. */ 11514 11515 int 11516 main () 11517 { 11518 11519 ; 11520 return 0; 11521 } 11522 _ACEOF 11523 rm -f conftest.$ac_objext conftest$ac_exeext 11524 if { (ac_try="$ac_link" 11525 case "(($ac_try" in 11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11527 *) ac_try_echo=$ac_try;; 11528 esac 11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11530 $as_echo "$ac_try_echo") >&5 11531 (eval "$ac_link") 2>conftest.er1 11532 ac_status=$? 11533 grep -v '^ *+' conftest.er1 >conftest.err 11534 rm -f conftest.er1 11535 cat conftest.err >&5 11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11537 (exit $ac_status); } && { 11538 test -z "$ac_cxx_werror_flag" || 11539 test ! -s conftest.err 11540 } && test -s conftest$ac_exeext && { 11541 test "$cross_compiling" = yes || 11542 $as_test_x conftest$ac_exeext 11543 }; then 11544 11545 lt_aix_libpath_sed=' 11546 /Import File Strings/,/^$/ { 11547 /^0/ { 11548 s/^0 *\(.*\)$/\1/ 11549 p 11550 } 11551 }' 11552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11553 # Check for a 64-bit object if we didn't find anything. 11554 if test -z "$aix_libpath"; then 11555 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11556 fi 11557 else 11558 $as_echo "$as_me: failed program was:" >&5 11559 sed 's/^/| /' conftest.$ac_ext >&5 11560 11561 11562 fi 11563 11564 rm -rf conftest.dSYM 11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11566 conftest$ac_exeext conftest.$ac_ext 11567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11568 11569 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11570 11571 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" 11572 else 11573 if test "$host_cpu" = ia64; then 11574 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11575 allow_undefined_flag_CXX="-z nodefs" 11576 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" 11577 else 11578 # Determine the default libpath from the value encoded in an empty executable. 11579 cat >conftest.$ac_ext <<_ACEOF 11580 /* confdefs.h. */ 11581 _ACEOF 11582 cat confdefs.h >>conftest.$ac_ext 11583 cat >>conftest.$ac_ext <<_ACEOF 11584 /* end confdefs.h. */ 11585 11586 int 11587 main () 11588 { 11589 11590 ; 11591 return 0; 11592 } 11593 _ACEOF 11594 rm -f conftest.$ac_objext conftest$ac_exeext 11595 if { (ac_try="$ac_link" 11596 case "(($ac_try" in 11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11598 *) ac_try_echo=$ac_try;; 11599 esac 11600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11601 $as_echo "$ac_try_echo") >&5 11602 (eval "$ac_link") 2>conftest.er1 11603 ac_status=$? 11604 grep -v '^ *+' conftest.er1 >conftest.err 11605 rm -f conftest.er1 11606 cat conftest.err >&5 11607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11608 (exit $ac_status); } && { 11609 test -z "$ac_cxx_werror_flag" || 11610 test ! -s conftest.err 11611 } && test -s conftest$ac_exeext && { 11612 test "$cross_compiling" = yes || 11613 $as_test_x conftest$ac_exeext 11614 }; then 11615 11616 lt_aix_libpath_sed=' 11617 /Import File Strings/,/^$/ { 11618 /^0/ { 11619 s/^0 *\(.*\)$/\1/ 11620 p 11621 } 11622 }' 11623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11624 # Check for a 64-bit object if we didn't find anything. 11625 if test -z "$aix_libpath"; then 11626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11627 fi 11628 else 11629 $as_echo "$as_me: failed program was:" >&5 11630 sed 's/^/| /' conftest.$ac_ext >&5 11631 11632 11633 fi 11634 11635 rm -rf conftest.dSYM 11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11637 conftest$ac_exeext conftest.$ac_ext 11638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11639 11640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11641 # Warning - without using the other run time loading flags, 11642 # -berok will link without error, but may produce a broken library. 11643 no_undefined_flag_CXX=' ${wl}-bernotok' 11644 allow_undefined_flag_CXX=' ${wl}-berok' 11645 # Exported symbols can be pulled into shared objects from archives 11646 whole_archive_flag_spec_CXX='$convenience' 11647 archive_cmds_need_lc_CXX=yes 11648 # This is similar to how AIX traditionally builds its shared libraries. 11649 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' 11650 fi 11651 fi 11652 ;; 11653 11654 beos*) 11655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11656 allow_undefined_flag_CXX=unsupported 11657 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11658 # support --undefined. This deserves some investigation. FIXME 11659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11660 else 11661 ld_shlibs_CXX=no 11662 fi 11663 ;; 11664 11665 chorus*) 11666 case $cc_basename in 11667 *) 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 esac 11672 ;; 11673 11674 cygwin* | mingw* | pw32*) 11675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11676 # as there is no search path for DLLs. 11677 hardcode_libdir_flag_spec_CXX='-L$libdir' 11678 allow_undefined_flag_CXX=unsupported 11679 always_export_symbols_CXX=no 11680 enable_shared_with_static_runtimes_CXX=yes 11681 11682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11683 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' 11684 # If the export-symbols file already is a .def file (1st line 11685 # is EXPORTS), use it as is; otherwise, prepend... 11686 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11687 cp $export_symbols $output_objdir/$soname.def; 11688 else 11689 echo EXPORTS > $output_objdir/$soname.def; 11690 cat $export_symbols >> $output_objdir/$soname.def; 11691 fi~ 11692 $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' 11693 else 11694 ld_shlibs_CXX=no 11695 fi 11696 ;; 11697 darwin* | rhapsody*) 11698 case $host_os in 11699 rhapsody* | darwin1.[012]) 11700 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11701 ;; 11702 *) # Darwin 1.3 on 11703 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11704 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11705 else 11706 case ${MACOSX_DEPLOYMENT_TARGET} in 11707 10.[012]) 11708 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11709 ;; 11710 10.*) 11711 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11712 ;; 11713 esac 11714 fi 11715 ;; 11716 esac 11717 archive_cmds_need_lc_CXX=no 11718 hardcode_direct_CXX=no 11719 hardcode_automatic_CXX=yes 11720 hardcode_shlibpath_var_CXX=unsupported 11721 whole_archive_flag_spec_CXX='' 11722 link_all_deplibs_CXX=yes 11723 11724 if test "$GXX" = yes ; then 11725 lt_int_apple_cc_single_mod=no 11726 output_verbose_link_cmd='echo' 11727 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11728 lt_int_apple_cc_single_mod=yes 11729 fi 11730 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11731 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11732 else 11733 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' 11734 fi 11735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11737 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11738 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}' 11739 else 11740 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}' 11741 fi 11742 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}' 11743 else 11744 case $cc_basename in 11745 xlc*) 11746 output_verbose_link_cmd='echo' 11747 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11750 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11751 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}' 11752 ;; 11753 *) 11754 ld_shlibs_CXX=no 11755 ;; 11756 esac 11757 fi 11758 ;; 11759 11760 dgux*) 11761 case $cc_basename in 11762 ec++*) 11763 # FIXME: insert proper C++ library support 11764 ld_shlibs_CXX=no 11765 ;; 11766 ghcx*) 11767 # Green Hills C++ Compiler 11768 # FIXME: insert proper C++ library support 11769 ld_shlibs_CXX=no 11770 ;; 11771 *) 11772 # FIXME: insert proper C++ library support 11773 ld_shlibs_CXX=no 11774 ;; 11775 esac 11776 ;; 11777 freebsd[12]*) 11778 # C++ shared libraries reported to be fairly broken before switch to ELF 11779 ld_shlibs_CXX=no 11780 ;; 11781 freebsd-elf*) 11782 archive_cmds_need_lc_CXX=no 11783 ;; 11784 freebsd* | dragonfly*) 11785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11786 # conventions 11787 ld_shlibs_CXX=yes 11788 ;; 11789 gnu*) 11790 ;; 11791 hpux9*) 11792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11793 hardcode_libdir_separator_CXX=: 11794 export_dynamic_flag_spec_CXX='${wl}-E' 11795 hardcode_direct_CXX=yes 11796 hardcode_minus_L_CXX=yes # Not in the search PATH, 11797 # but as the default 11798 # location of the library. 11799 11800 case $cc_basename in 11801 CC*) 11802 # FIXME: insert proper C++ library support 11803 ld_shlibs_CXX=no 11804 ;; 11805 aCC*) 11806 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' 11807 # Commands to make compiler produce verbose output that lists 11808 # what "hidden" libraries, object files and flags are used when 11809 # linking a shared library. 11810 # 11811 # There doesn't appear to be a way to prevent this compiler from 11812 # explicitly linking system object files so we need to strip them 11813 # from the output so that they don't get included in the library 11814 # dependencies. 11815 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' 11816 ;; 11817 *) 11818 if test "$GXX" = yes; then 11819 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' 11820 else 11821 # FIXME: insert proper C++ library support 11822 ld_shlibs_CXX=no 11823 fi 11824 ;; 11825 esac 11826 ;; 11827 hpux10*|hpux11*) 11828 if test $with_gnu_ld = no; then 11829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11830 hardcode_libdir_separator_CXX=: 11831 11832 case $host_cpu in 11833 hppa*64*|ia64*) ;; 11834 *) 11835 export_dynamic_flag_spec_CXX='${wl}-E' 11836 ;; 11837 esac 11838 fi 11839 case $host_cpu in 11840 hppa*64*|ia64*) 11841 hardcode_direct_CXX=no 11842 hardcode_shlibpath_var_CXX=no 11843 ;; 11844 *) 11845 hardcode_direct_CXX=yes 11846 hardcode_minus_L_CXX=yes # Not in the search PATH, 11847 # but as the default 11848 # location of the library. 11849 ;; 11850 esac 11851 11852 case $cc_basename in 11853 CC*) 11854 # FIXME: insert proper C++ library support 11855 ld_shlibs_CXX=no 11856 ;; 11857 aCC*) 11858 case $host_cpu in 11859 hppa*64*) 11860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11861 ;; 11862 ia64*) 11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11864 ;; 11865 *) 11866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11867 ;; 11868 esac 11869 # Commands to make compiler produce verbose output that lists 11870 # what "hidden" libraries, object files and flags are used when 11871 # linking a shared library. 11872 # 11873 # There doesn't appear to be a way to prevent this compiler from 11874 # explicitly linking system object files so we need to strip them 11875 # from the output so that they don't get included in the library 11876 # dependencies. 11877 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' 11878 ;; 11879 *) 11880 if test "$GXX" = yes; then 11881 if test $with_gnu_ld = no; then 11882 case $host_cpu in 11883 hppa*64*) 11884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11885 ;; 11886 ia64*) 11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11888 ;; 11889 *) 11890 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' 11891 ;; 11892 esac 11893 fi 11894 else 11895 # FIXME: insert proper C++ library support 11896 ld_shlibs_CXX=no 11897 fi 11898 ;; 11899 esac 11900 ;; 11901 interix[3-9]*) 11902 hardcode_direct_CXX=no 11903 hardcode_shlibpath_var_CXX=no 11904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11905 export_dynamic_flag_spec_CXX='${wl}-E' 11906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11907 # Instead, shared libraries are loaded at an image base (0x10000000 by 11908 # default) and relocated if they conflict, which is a slow very memory 11909 # consuming and fragmenting process. To avoid this, we pick a random, 11910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11911 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11912 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' 11913 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' 11914 ;; 11915 irix5* | irix6*) 11916 case $cc_basename in 11917 CC*) 11918 # SGI C++ 11919 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' 11920 11921 # Archives containing C++ object files must be created using 11922 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11923 # necessary to make sure instantiated templates are included 11924 # in the archive. 11925 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11926 ;; 11927 *) 11928 if test "$GXX" = yes; then 11929 if test "$with_gnu_ld" = no; then 11930 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' 11931 else 11932 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' 11933 fi 11934 fi 11935 link_all_deplibs_CXX=yes 11936 ;; 11937 esac 11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11939 hardcode_libdir_separator_CXX=: 11940 ;; 11941 linux* | k*bsd*-gnu) 11942 case $cc_basename in 11943 KCC*) 11944 # Kuck and Associates, Inc. (KAI) C++ Compiler 11945 11946 # KCC will only create a shared library if the output file 11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11948 # to its proper name (with version) after linking. 11949 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' 11950 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' 11951 # Commands to make compiler produce verbose output that lists 11952 # what "hidden" libraries, object files and flags are used when 11953 # linking a shared library. 11954 # 11955 # There doesn't appear to be a way to prevent this compiler from 11956 # explicitly linking system object files so we need to strip them 11957 # from the output so that they don't get included in the library 11958 # dependencies. 11959 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' 11960 11961 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11963 11964 # Archives containing C++ object files must be created using 11965 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11967 ;; 11968 icpc*) 11969 # Intel C++ 11970 with_gnu_ld=yes 11971 # version 8.0 and above of icpc choke on multiply defined symbols 11972 # if we add $predep_objects and $postdep_objects, however 7.1 and 11973 # earlier do not add the objects themselves. 11974 case `$CC -V 2>&1` in 11975 *"Version 7."*) 11976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11977 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' 11978 ;; 11979 *) # Version 8.0 or newer 11980 tmp_idyn= 11981 case $host_cpu in 11982 ia64*) tmp_idyn=' -i_dynamic';; 11983 esac 11984 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11985 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' 11986 ;; 11987 esac 11988 archive_cmds_need_lc_CXX=no 11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11992 ;; 11993 pgCC*) 11994 # Portland Group C++ compiler 11995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11996 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' 11997 11998 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12000 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' 12001 ;; 12002 cxx*) 12003 # Compaq C++ 12004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12005 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' 12006 12007 runpath_var=LD_RUN_PATH 12008 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12009 hardcode_libdir_separator_CXX=: 12010 12011 # Commands to make compiler produce verbose output that lists 12012 # what "hidden" libraries, object files and flags are used when 12013 # linking a shared library. 12014 # 12015 # There doesn't appear to be a way to prevent this compiler from 12016 # explicitly linking system object files so we need to strip them 12017 # from the output so that they don't get included in the library 12018 # dependencies. 12019 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' 12020 ;; 12021 *) 12022 case `$CC -V 2>&1 | sed 5q` in 12023 *Sun\ C*) 12024 # Sun C++ 5.9 12025 no_undefined_flag_CXX=' -zdefs' 12026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12027 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' 12028 hardcode_libdir_flag_spec_CXX='-R$libdir' 12029 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' 12030 12031 # Not sure whether something based on 12032 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12033 # would be better. 12034 output_verbose_link_cmd='echo' 12035 12036 # Archives containing C++ object files must be created using 12037 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12038 # necessary to make sure instantiated templates are included 12039 # in the archive. 12040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12041 ;; 12042 esac 12043 ;; 12044 esac 12045 ;; 12046 lynxos*) 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 m88k*) 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 ;; 12054 mvs*) 12055 case $cc_basename in 12056 cxx*) 12057 # FIXME: insert proper C++ library support 12058 ld_shlibs_CXX=no 12059 ;; 12060 *) 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 esac 12065 ;; 12066 netbsd*) 12067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12069 wlarc= 12070 hardcode_libdir_flag_spec_CXX='-R$libdir' 12071 hardcode_direct_CXX=yes 12072 hardcode_shlibpath_var_CXX=no 12073 fi 12074 # Workaround some broken pre-1.5 toolchains 12075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12076 ;; 12077 openbsd2*) 12078 # C++ shared libraries are fairly broken 12079 ld_shlibs_CXX=no 12080 ;; 12081 openbsd*) 12082 if test -f /usr/libexec/ld.so; then 12083 hardcode_direct_CXX=yes 12084 hardcode_shlibpath_var_CXX=no 12085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12088 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12089 export_dynamic_flag_spec_CXX='${wl}-E' 12090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12091 fi 12092 output_verbose_link_cmd='echo' 12093 else 12094 ld_shlibs_CXX=no 12095 fi 12096 ;; 12097 osf3*) 12098 case $cc_basename in 12099 KCC*) 12100 # Kuck and Associates, Inc. (KAI) C++ Compiler 12101 12102 # KCC will only create a shared library if the output file 12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12104 # to its proper name (with version) after linking. 12105 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' 12106 12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12108 hardcode_libdir_separator_CXX=: 12109 12110 # Archives containing C++ object files must be created using 12111 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12113 12114 ;; 12115 RCC*) 12116 # Rational C++ 2.4.1 12117 # FIXME: insert proper C++ library support 12118 ld_shlibs_CXX=no 12119 ;; 12120 cxx*) 12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12122 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' 12123 12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12125 hardcode_libdir_separator_CXX=: 12126 12127 # Commands to make compiler produce verbose output that lists 12128 # what "hidden" libraries, object files and flags are used when 12129 # linking a shared library. 12130 # 12131 # There doesn't appear to be a way to prevent this compiler from 12132 # explicitly linking system object files so we need to strip them 12133 # from the output so that they don't get included in the library 12134 # dependencies. 12135 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' 12136 ;; 12137 *) 12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12140 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' 12141 12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12143 hardcode_libdir_separator_CXX=: 12144 12145 # Commands to make compiler produce verbose output that lists 12146 # what "hidden" libraries, object files and flags are used when 12147 # linking a shared library. 12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12149 12150 else 12151 # FIXME: insert proper C++ library support 12152 ld_shlibs_CXX=no 12153 fi 12154 ;; 12155 esac 12156 ;; 12157 osf4* | osf5*) 12158 case $cc_basename in 12159 KCC*) 12160 # Kuck and Associates, Inc. (KAI) C++ Compiler 12161 12162 # KCC will only create a shared library if the output file 12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12164 # to its proper name (with version) after linking. 12165 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' 12166 12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12168 hardcode_libdir_separator_CXX=: 12169 12170 # Archives containing C++ object files must be created using 12171 # the KAI C++ compiler. 12172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12173 ;; 12174 RCC*) 12175 # Rational C++ 2.4.1 12176 # FIXME: insert proper C++ library support 12177 ld_shlibs_CXX=no 12178 ;; 12179 cxx*) 12180 allow_undefined_flag_CXX=' -expect_unresolved \*' 12181 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' 12182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12183 echo "-hidden">> $lib.exp~ 12184 $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~ 12185 $rm $lib.exp' 12186 12187 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12188 hardcode_libdir_separator_CXX=: 12189 12190 # Commands to make compiler produce verbose output that lists 12191 # what "hidden" libraries, object files and flags are used when 12192 # linking a shared library. 12193 # 12194 # There doesn't appear to be a way to prevent this compiler from 12195 # explicitly linking system object files so we need to strip them 12196 # from the output so that they don't get included in the library 12197 # dependencies. 12198 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' 12199 ;; 12200 *) 12201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12203 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' 12204 12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12206 hardcode_libdir_separator_CXX=: 12207 12208 # Commands to make compiler produce verbose output that lists 12209 # what "hidden" libraries, object files and flags are used when 12210 # linking a shared library. 12211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12212 12213 else 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 fi 12217 ;; 12218 esac 12219 ;; 12220 psos*) 12221 # FIXME: insert proper C++ library support 12222 ld_shlibs_CXX=no 12223 ;; 12224 sunos4*) 12225 case $cc_basename in 12226 CC*) 12227 # Sun C++ 4.x 12228 # FIXME: insert proper C++ library support 12229 ld_shlibs_CXX=no 12230 ;; 12231 lcc*) 12232 # Lucid 12233 # FIXME: insert proper C++ library support 12234 ld_shlibs_CXX=no 12235 ;; 12236 *) 12237 # FIXME: insert proper C++ library support 12238 ld_shlibs_CXX=no 12239 ;; 12240 esac 12241 ;; 12242 solaris*) 12243 case $cc_basename in 12244 CC*) 12245 # Sun C++ 4.2, 5.x and Centerline C++ 12246 archive_cmds_need_lc_CXX=yes 12247 no_undefined_flag_CXX=' -zdefs' 12248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12250 $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' 12251 12252 hardcode_libdir_flag_spec_CXX='-R$libdir' 12253 hardcode_shlibpath_var_CXX=no 12254 case $host_os in 12255 solaris2.[0-5] | solaris2.[0-5].*) ;; 12256 *) 12257 # The compiler driver will combine and reorder linker options, 12258 # but understands `-z linker_flag'. 12259 # Supported since Solaris 2.6 (maybe 2.5.1?) 12260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12261 ;; 12262 esac 12263 link_all_deplibs_CXX=yes 12264 12265 output_verbose_link_cmd='echo' 12266 12267 # Archives containing C++ object files must be created using 12268 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12269 # necessary to make sure instantiated templates are included 12270 # in the archive. 12271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12272 ;; 12273 gcx*) 12274 # Green Hills C++ Compiler 12275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12276 12277 # The C++ compiler must be used to create the archive. 12278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12279 ;; 12280 *) 12281 # GNU C++ compiler with Solaris linker 12282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12284 if $CC --version | grep -v '^2\.7' > /dev/null; then 12285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12288 12289 # Commands to make compiler produce verbose output that lists 12290 # what "hidden" libraries, object files and flags are used when 12291 # linking a shared library. 12292 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12293 else 12294 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12295 # platform. 12296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12299 12300 # Commands to make compiler produce verbose output that lists 12301 # what "hidden" libraries, object files and flags are used when 12302 # linking a shared library. 12303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12304 fi 12305 12306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12307 case $host_os in 12308 solaris2.[0-5] | solaris2.[0-5].*) ;; 12309 *) 12310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12311 ;; 12312 esac 12313 fi 12314 ;; 12315 esac 12316 ;; 12317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12318 no_undefined_flag_CXX='${wl}-z,text' 12319 archive_cmds_need_lc_CXX=no 12320 hardcode_shlibpath_var_CXX=no 12321 runpath_var='LD_RUN_PATH' 12322 12323 case $cc_basename in 12324 CC*) 12325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12327 ;; 12328 *) 12329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12331 ;; 12332 esac 12333 ;; 12334 sysv5* | sco3.2v5* | sco5v6*) 12335 # Note: We can NOT use -z defs as we might desire, because we do not 12336 # link with -lc, and that would cause any symbols used from libc to 12337 # always be unresolved, which means just about no library would 12338 # ever link correctly. If we're not using GNU ld we use -z text 12339 # though, which does catch some bad symbols but isn't as heavy-handed 12340 # as -z defs. 12341 # For security reasons, it is highly recommended that you always 12342 # use absolute paths for naming shared libraries, and exclude the 12343 # DT_RUNPATH tag from executables and libraries. But doing so 12344 # requires that you compile everything twice, which is a pain. 12345 # So that behaviour is only enabled if SCOABSPATH is set to a 12346 # non-empty value in the environment. Most likely only useful for 12347 # creating official distributions of packages. 12348 # This is a hack until libtool officially supports absolute path 12349 # names for shared libraries. 12350 no_undefined_flag_CXX='${wl}-z,text' 12351 allow_undefined_flag_CXX='${wl}-z,nodefs' 12352 archive_cmds_need_lc_CXX=no 12353 hardcode_shlibpath_var_CXX=no 12354 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12355 hardcode_libdir_separator_CXX=':' 12356 link_all_deplibs_CXX=yes 12357 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12358 runpath_var='LD_RUN_PATH' 12359 12360 case $cc_basename in 12361 CC*) 12362 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12364 ;; 12365 *) 12366 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12367 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12368 ;; 12369 esac 12370 ;; 12371 tandem*) 12372 case $cc_basename in 12373 NCC*) 12374 # NonStop-UX NCC 3.20 12375 # FIXME: insert proper C++ library support 12376 ld_shlibs_CXX=no 12377 ;; 12378 *) 12379 # FIXME: insert proper C++ library support 12380 ld_shlibs_CXX=no 12381 ;; 12382 esac 12383 ;; 12384 vxworks*) 12385 # FIXME: insert proper C++ library support 12386 ld_shlibs_CXX=no 12387 ;; 12388 *) 12389 # FIXME: insert proper C++ library support 12390 ld_shlibs_CXX=no 12391 ;; 12392 esac 12393 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12394 $as_echo "$ld_shlibs_CXX" >&6; } 12395 test "$ld_shlibs_CXX" = no && can_build_shared=no 12396 12397 GCC_CXX="$GXX" 12398 LD_CXX="$LD" 12399 12400 12401 cat > conftest.$ac_ext <<EOF 12402 class Foo 12403 { 12404 public: 12405 Foo (void) { a = 0; } 12406 private: 12407 int a; 12408 }; 12409 EOF 12410 12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12412 (eval $ac_compile) 2>&5 12413 ac_status=$? 12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); }; then 12416 # Parse the compiler output and extract the necessary 12417 # objects, libraries and library flags. 12418 12419 # Sentinel used to keep track of whether or not we are before 12420 # the conftest object file. 12421 pre_test_object_deps_done=no 12422 12423 # The `*' in the case matches for architectures that use `case' in 12424 # $output_verbose_cmd can trigger glob expansion during the loop 12425 # eval without this substitution. 12426 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12427 12428 for p in `eval $output_verbose_link_cmd`; do 12429 case $p in 12430 12431 -L* | -R* | -l*) 12432 # Some compilers place space between "-{L,R}" and the path. 12433 # Remove the space. 12434 if test $p = "-L" \ 12435 || test $p = "-R"; then 12436 prev=$p 12437 continue 12438 else 12439 prev= 12440 fi 12441 12442 if test "$pre_test_object_deps_done" = no; then 12443 case $p in 12444 -L* | -R*) 12445 # Internal compiler library paths should come after those 12446 # provided the user. The postdeps already come after the 12447 # user supplied libs so there is no need to process them. 12448 if test -z "$compiler_lib_search_path_CXX"; then 12449 compiler_lib_search_path_CXX="${prev}${p}" 12450 else 12451 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12452 fi 12453 ;; 12454 # The "-l" case would never come before the object being 12455 # linked, so don't bother handling this case. 12456 esac 12457 else 12458 if test -z "$postdeps_CXX"; then 12459 postdeps_CXX="${prev}${p}" 12460 else 12461 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12462 fi 12463 fi 12464 ;; 12465 12466 *.$objext) 12467 # This assumes that the test object file only shows up 12468 # once in the compiler output. 12469 if test "$p" = "conftest.$objext"; then 12470 pre_test_object_deps_done=yes 12471 continue 12472 fi 12473 12474 if test "$pre_test_object_deps_done" = no; then 12475 if test -z "$predep_objects_CXX"; then 12476 predep_objects_CXX="$p" 12477 else 12478 predep_objects_CXX="$predep_objects_CXX $p" 12479 fi 12480 else 12481 if test -z "$postdep_objects_CXX"; then 12482 postdep_objects_CXX="$p" 12483 else 12484 postdep_objects_CXX="$postdep_objects_CXX $p" 12485 fi 12486 fi 12487 ;; 12488 12489 *) ;; # Ignore the rest. 12490 12491 esac 12492 done 12493 12494 # Clean up. 12495 rm -f a.out a.exe 12496 else 12497 echo "libtool.m4: error: problem compiling CXX test program" 12498 fi 12499 12500 $rm -f confest.$objext 12501 12502 # PORTME: override above test on systems where it is broken 12503 case $host_os in 12504 interix[3-9]*) 12505 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12506 # hack all around it, let's just trust "g++" to DTRT. 12507 predep_objects_CXX= 12508 postdep_objects_CXX= 12509 postdeps_CXX= 12510 ;; 12511 12512 linux*) 12513 case `$CC -V 2>&1 | sed 5q` in 12514 *Sun\ C*) 12515 # Sun C++ 5.9 12516 # 12517 # The more standards-conforming stlport4 library is 12518 # incompatible with the Cstd library. Avoid specifying 12519 # it if it's in CXXFLAGS. Ignore libCrun as 12520 # -library=stlport4 depends on it. 12521 case " $CXX $CXXFLAGS " in 12522 *" -library=stlport4 "*) 12523 solaris_use_stlport4=yes 12524 ;; 12525 esac 12526 if test "$solaris_use_stlport4" != yes; then 12527 postdeps_CXX='-library=Cstd -library=Crun' 12528 fi 12529 ;; 12530 esac 12531 ;; 12532 12533 solaris*) 12534 case $cc_basename in 12535 CC*) 12536 # The more standards-conforming stlport4 library is 12537 # incompatible with the Cstd library. Avoid specifying 12538 # it if it's in CXXFLAGS. Ignore libCrun as 12539 # -library=stlport4 depends on it. 12540 case " $CXX $CXXFLAGS " in 12541 *" -library=stlport4 "*) 12542 solaris_use_stlport4=yes 12543 ;; 12544 esac 12545 12546 # Adding this requires a known-good setup of shared libraries for 12547 # Sun compiler versions before 5.6, else PIC objects from an old 12548 # archive will be linked into the output, leading to subtle bugs. 12549 if test "$solaris_use_stlport4" != yes; then 12550 postdeps_CXX='-library=Cstd -library=Crun' 12551 fi 12552 ;; 12553 esac 12554 ;; 12555 esac 12556 12557 12558 case " $postdeps_CXX " in 12559 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12560 esac 12561 12562 lt_prog_compiler_wl_CXX= 12563 lt_prog_compiler_pic_CXX= 12564 lt_prog_compiler_static_CXX= 12565 12566 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12568 12569 # C++ specific cases for pic, static, wl, etc. 12570 if test "$GXX" = yes; then 12571 lt_prog_compiler_wl_CXX='-Wl,' 12572 lt_prog_compiler_static_CXX='-static' 12573 12574 case $host_os in 12575 aix*) 12576 # All AIX code is PIC. 12577 if test "$host_cpu" = ia64; then 12578 # AIX 5 now supports IA64 processor 12579 lt_prog_compiler_static_CXX='-Bstatic' 12580 fi 12581 ;; 12582 amigaos*) 12583 # FIXME: we need at least 68020 code to build shared libraries, but 12584 # adding the `-m68020' flag to GCC prevents building anything better, 12585 # like `-m68040'. 12586 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12587 ;; 12588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12589 # PIC is the default for these OSes. 12590 ;; 12591 mingw* | cygwin* | os2* | pw32*) 12592 # This hack is so that the source file can tell whether it is being 12593 # built for inclusion in a dll (and should export symbols for example). 12594 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12595 # (--disable-auto-import) libraries 12596 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12597 ;; 12598 darwin* | rhapsody*) 12599 # PIC is the default on this platform 12600 # Common symbols not allowed in MH_DYLIB files 12601 lt_prog_compiler_pic_CXX='-fno-common' 12602 ;; 12603 *djgpp*) 12604 # DJGPP does not support shared libraries at all 12605 lt_prog_compiler_pic_CXX= 12606 ;; 12607 interix[3-9]*) 12608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12609 # Instead, we relocate shared libraries at runtime. 12610 ;; 12611 sysv4*MP*) 12612 if test -d /usr/nec; then 12613 lt_prog_compiler_pic_CXX=-Kconform_pic 12614 fi 12615 ;; 12616 hpux*) 12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12618 # not for PA HP-UX. 12619 case $host_cpu in 12620 hppa*64*|ia64*) 12621 ;; 12622 *) 12623 lt_prog_compiler_pic_CXX='-fPIC' 12624 ;; 12625 esac 12626 ;; 12627 *) 12628 lt_prog_compiler_pic_CXX='-fPIC' 12629 ;; 12630 esac 12631 else 12632 case $host_os in 12633 aix4* | aix5*) 12634 # All AIX code is PIC. 12635 if test "$host_cpu" = ia64; then 12636 # AIX 5 now supports IA64 processor 12637 lt_prog_compiler_static_CXX='-Bstatic' 12638 else 12639 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12640 fi 12641 ;; 12642 chorus*) 12643 case $cc_basename in 12644 cxch68*) 12645 # Green Hills C++ Compiler 12646 # _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" 12647 ;; 12648 esac 12649 ;; 12650 darwin*) 12651 # PIC is the default on this platform 12652 # Common symbols not allowed in MH_DYLIB files 12653 case $cc_basename in 12654 xlc*) 12655 lt_prog_compiler_pic_CXX='-qnocommon' 12656 lt_prog_compiler_wl_CXX='-Wl,' 12657 ;; 12658 esac 12659 ;; 12660 dgux*) 12661 case $cc_basename in 12662 ec++*) 12663 lt_prog_compiler_pic_CXX='-KPIC' 12664 ;; 12665 ghcx*) 12666 # Green Hills C++ Compiler 12667 lt_prog_compiler_pic_CXX='-pic' 12668 ;; 12669 *) 12670 ;; 12671 esac 12672 ;; 12673 freebsd* | dragonfly*) 12674 # FreeBSD uses GNU C++ 12675 ;; 12676 hpux9* | hpux10* | hpux11*) 12677 case $cc_basename in 12678 CC*) 12679 lt_prog_compiler_wl_CXX='-Wl,' 12680 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12681 if test "$host_cpu" != ia64; then 12682 lt_prog_compiler_pic_CXX='+Z' 12683 fi 12684 ;; 12685 aCC*) 12686 lt_prog_compiler_wl_CXX='-Wl,' 12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12688 case $host_cpu in 12689 hppa*64*|ia64*) 12690 # +Z the default 12691 ;; 12692 *) 12693 lt_prog_compiler_pic_CXX='+Z' 12694 ;; 12695 esac 12696 ;; 12697 *) 12698 ;; 12699 esac 12700 ;; 12701 interix*) 12702 # This is c89, which is MS Visual C++ (no shared libs) 12703 # Anyone wants to do a port? 12704 ;; 12705 irix5* | irix6* | nonstopux*) 12706 case $cc_basename in 12707 CC*) 12708 lt_prog_compiler_wl_CXX='-Wl,' 12709 lt_prog_compiler_static_CXX='-non_shared' 12710 # CC pic flag -KPIC is the default. 12711 ;; 12712 *) 12713 ;; 12714 esac 12715 ;; 12716 linux* | k*bsd*-gnu) 12717 case $cc_basename in 12718 KCC*) 12719 # KAI C++ Compiler 12720 lt_prog_compiler_wl_CXX='--backend -Wl,' 12721 lt_prog_compiler_pic_CXX='-fPIC' 12722 ;; 12723 icpc* | ecpc*) 12724 # Intel C++ 12725 lt_prog_compiler_wl_CXX='-Wl,' 12726 lt_prog_compiler_pic_CXX='-KPIC' 12727 lt_prog_compiler_static_CXX='-static' 12728 ;; 12729 pgCC*) 12730 # Portland Group C++ compiler. 12731 lt_prog_compiler_wl_CXX='-Wl,' 12732 lt_prog_compiler_pic_CXX='-fpic' 12733 lt_prog_compiler_static_CXX='-Bstatic' 12734 ;; 12735 cxx*) 12736 # Compaq C++ 12737 # Make sure the PIC flag is empty. It appears that all Alpha 12738 # Linux and Compaq Tru64 Unix objects are PIC. 12739 lt_prog_compiler_pic_CXX= 12740 lt_prog_compiler_static_CXX='-non_shared' 12741 ;; 12742 *) 12743 case `$CC -V 2>&1 | sed 5q` in 12744 *Sun\ C*) 12745 # Sun C++ 5.9 12746 lt_prog_compiler_pic_CXX='-KPIC' 12747 lt_prog_compiler_static_CXX='-Bstatic' 12748 lt_prog_compiler_wl_CXX='-Qoption ld ' 12749 ;; 12750 esac 12751 ;; 12752 esac 12753 ;; 12754 lynxos*) 12755 ;; 12756 m88k*) 12757 ;; 12758 mvs*) 12759 case $cc_basename in 12760 cxx*) 12761 lt_prog_compiler_pic_CXX='-W c,exportall' 12762 ;; 12763 *) 12764 ;; 12765 esac 12766 ;; 12767 netbsd*) 12768 ;; 12769 osf3* | osf4* | osf5*) 12770 case $cc_basename in 12771 KCC*) 12772 lt_prog_compiler_wl_CXX='--backend -Wl,' 12773 ;; 12774 RCC*) 12775 # Rational C++ 2.4.1 12776 lt_prog_compiler_pic_CXX='-pic' 12777 ;; 12778 cxx*) 12779 # Digital/Compaq C++ 12780 lt_prog_compiler_wl_CXX='-Wl,' 12781 # Make sure the PIC flag is empty. It appears that all Alpha 12782 # Linux and Compaq Tru64 Unix objects are PIC. 12783 lt_prog_compiler_pic_CXX= 12784 lt_prog_compiler_static_CXX='-non_shared' 12785 ;; 12786 *) 12787 ;; 12788 esac 12789 ;; 12790 psos*) 12791 ;; 12792 solaris*) 12793 case $cc_basename in 12794 CC*) 12795 # Sun C++ 4.2, 5.x and Centerline C++ 12796 lt_prog_compiler_pic_CXX='-KPIC' 12797 lt_prog_compiler_static_CXX='-Bstatic' 12798 lt_prog_compiler_wl_CXX='-Qoption ld ' 12799 ;; 12800 gcx*) 12801 # Green Hills C++ Compiler 12802 lt_prog_compiler_pic_CXX='-PIC' 12803 ;; 12804 *) 12805 ;; 12806 esac 12807 ;; 12808 sunos4*) 12809 case $cc_basename in 12810 CC*) 12811 # Sun C++ 4.x 12812 lt_prog_compiler_pic_CXX='-pic' 12813 lt_prog_compiler_static_CXX='-Bstatic' 12814 ;; 12815 lcc*) 12816 # Lucid 12817 lt_prog_compiler_pic_CXX='-pic' 12818 ;; 12819 *) 12820 ;; 12821 esac 12822 ;; 12823 tandem*) 12824 case $cc_basename in 12825 NCC*) 12826 # NonStop-UX NCC 3.20 12827 lt_prog_compiler_pic_CXX='-KPIC' 12828 ;; 12829 *) 12830 ;; 12831 esac 12832 ;; 12833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12834 case $cc_basename in 12835 CC*) 12836 lt_prog_compiler_wl_CXX='-Wl,' 12837 lt_prog_compiler_pic_CXX='-KPIC' 12838 lt_prog_compiler_static_CXX='-Bstatic' 12839 ;; 12840 esac 12841 ;; 12842 vxworks*) 12843 ;; 12844 *) 12845 lt_prog_compiler_can_build_shared_CXX=no 12846 ;; 12847 esac 12848 fi 12849 12850 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12851 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12852 12853 # 12854 # Check to make sure the PIC flag actually works. 12855 # 12856 if test -n "$lt_prog_compiler_pic_CXX"; then 12857 12858 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12860 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12861 $as_echo_n "(cached) " >&6 12862 else 12863 lt_prog_compiler_pic_works_CXX=no 12864 ac_outfile=conftest.$ac_objext 12865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12867 # Insert the option either (1) after the last *FLAGS variable, or 12868 # (2) before a word containing "conftest.", or (3) at the end. 12869 # Note that $ac_compile itself does not contain backslashes and begins 12870 # with a dollar sign (not a hyphen), so the echo should work correctly. 12871 # The option is referenced via a variable to avoid confusing sed. 12872 lt_compile=`echo "$ac_compile" | $SED \ 12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12875 -e 's:$: $lt_compiler_flag:'` 12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5) 12877 (eval "$lt_compile" 2>conftest.err) 12878 ac_status=$? 12879 cat conftest.err >&5 12880 echo "$as_me:12880: \$? = $ac_status" >&5 12881 if (exit $ac_status) && test -s "$ac_outfile"; then 12882 # The compiler can only warn and ignore the option if not recognized 12883 # So say no if there are warnings other than the usual output. 12884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12887 lt_prog_compiler_pic_works_CXX=yes 12888 fi 12889 fi 12890 $rm conftest* 12891 12892 fi 12893 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12894 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; } 12895 12896 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12897 case $lt_prog_compiler_pic_CXX in 12898 "" | " "*) ;; 12899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12900 esac 12901 else 12902 lt_prog_compiler_pic_CXX= 12903 lt_prog_compiler_can_build_shared_CXX=no 12904 fi 12905 12906 fi 12907 case $host_os in 12908 # For platforms which do not support PIC, -DPIC is meaningless: 12909 *djgpp*) 12910 lt_prog_compiler_pic_CXX= 12911 ;; 12912 *) 12913 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12914 ;; 12915 esac 12916 12917 # 12918 # Check to make sure the static flag actually works. 12919 # 12920 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12921 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12922 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12923 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12924 $as_echo_n "(cached) " >&6 12925 else 12926 lt_prog_compiler_static_works_CXX=no 12927 save_LDFLAGS="$LDFLAGS" 12928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12929 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12931 # The linker can only warn and ignore the option if not recognized 12932 # So say no if there are warnings 12933 if test -s conftest.err; then 12934 # Append any errors to the config.log. 12935 cat conftest.err 1>&5 12936 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12938 if diff conftest.exp conftest.er2 >/dev/null; then 12939 lt_prog_compiler_static_works_CXX=yes 12940 fi 12941 else 12942 lt_prog_compiler_static_works_CXX=yes 12943 fi 12944 fi 12945 $rm conftest* 12946 LDFLAGS="$save_LDFLAGS" 12947 12948 fi 12949 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12950 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; } 12951 12952 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12953 : 12954 else 12955 lt_prog_compiler_static_CXX= 12956 fi 12957 12958 12959 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12961 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12962 $as_echo_n "(cached) " >&6 12963 else 12964 lt_cv_prog_compiler_c_o_CXX=no 12965 $rm -r conftest 2>/dev/null 12966 mkdir conftest 12967 cd conftest 12968 mkdir out 12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12970 12971 lt_compiler_flag="-o out/conftest2.$ac_objext" 12972 # Insert the option either (1) after the last *FLAGS variable, or 12973 # (2) before a word containing "conftest.", or (3) at the end. 12974 # Note that $ac_compile itself does not contain backslashes and begins 12975 # with a dollar sign (not a hyphen), so the echo should work correctly. 12976 lt_compile=`echo "$ac_compile" | $SED \ 12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12979 -e 's:$: $lt_compiler_flag:'` 12980 (eval echo "\"\$as_me:12980: $lt_compile\"" >&5) 12981 (eval "$lt_compile" 2>out/conftest.err) 12982 ac_status=$? 12983 cat out/conftest.err >&5 12984 echo "$as_me:12984: \$? = $ac_status" >&5 12985 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12986 then 12987 # The compiler can only warn and ignore the option if not recognized 12988 # So say no if there are warnings 12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12992 lt_cv_prog_compiler_c_o_CXX=yes 12993 fi 12994 fi 12995 chmod u+w . 2>&5 12996 $rm conftest* 12997 # SGI C++ compiler will create directory out/ii_files/ for 12998 # template instantiation 12999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13000 $rm out/* && rmdir out 13001 cd .. 13002 rmdir conftest 13003 $rm conftest* 13004 13005 fi 13006 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13007 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13008 13009 13010 hard_links="nottested" 13011 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13012 # do not overwrite the value of need_locks provided by the user 13013 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13014 $as_echo_n "checking if we can lock with hard links... " >&6; } 13015 hard_links=yes 13016 $rm conftest* 13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13018 touch conftest.a 13019 ln conftest.a conftest.b 2>&5 || hard_links=no 13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13021 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13022 $as_echo "$hard_links" >&6; } 13023 if test "$hard_links" = no; then 13024 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13026 need_locks=warn 13027 fi 13028 else 13029 need_locks=no 13030 fi 13031 13032 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13034 13035 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13036 case $host_os in 13037 aix4* | aix5*) 13038 # If we're using GNU nm, then we don't want the "-C" option. 13039 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13040 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13041 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' 13042 else 13043 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' 13044 fi 13045 ;; 13046 pw32*) 13047 export_symbols_cmds_CXX="$ltdll_cmds" 13048 ;; 13049 cygwin* | mingw*) 13050 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' 13051 ;; 13052 *) 13053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13054 ;; 13055 esac 13056 13057 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13058 $as_echo "$ld_shlibs_CXX" >&6; } 13059 test "$ld_shlibs_CXX" = no && can_build_shared=no 13060 13061 # 13062 # Do we need to explicitly link libc? 13063 # 13064 case "x$archive_cmds_need_lc_CXX" in 13065 x|xyes) 13066 # Assume -lc should be added 13067 archive_cmds_need_lc_CXX=yes 13068 13069 if test "$enable_shared" = yes && test "$GCC" = yes; then 13070 case $archive_cmds_CXX in 13071 *'~'*) 13072 # FIXME: we may have to deal with multi-command sequences. 13073 ;; 13074 '$CC '*) 13075 # Test whether the compiler implicitly links with -lc since on some 13076 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13077 # to ld, don't add -lc before -lgcc. 13078 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13079 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13080 $rm conftest* 13081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13082 13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13084 (eval $ac_compile) 2>&5 13085 ac_status=$? 13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13087 (exit $ac_status); } 2>conftest.err; then 13088 soname=conftest 13089 lib=conftest 13090 libobjs=conftest.$ac_objext 13091 deplibs= 13092 wl=$lt_prog_compiler_wl_CXX 13093 pic_flag=$lt_prog_compiler_pic_CXX 13094 compiler_flags=-v 13095 linker_flags=-v 13096 verstring= 13097 output_objdir=. 13098 libname=conftest 13099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13100 allow_undefined_flag_CXX= 13101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13102 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13103 ac_status=$? 13104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13105 (exit $ac_status); } 13106 then 13107 archive_cmds_need_lc_CXX=no 13108 else 13109 archive_cmds_need_lc_CXX=yes 13110 fi 13111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13112 else 13113 cat conftest.err 1>&5 13114 fi 13115 $rm conftest* 13116 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13117 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 13118 ;; 13119 esac 13120 fi 13121 ;; 13122 esac 13123 13124 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13125 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13126 library_names_spec= 13127 libname_spec='lib$name' 13128 soname_spec= 13129 shrext_cmds=".so" 13130 postinstall_cmds= 13131 postuninstall_cmds= 13132 finish_cmds= 13133 finish_eval= 13134 shlibpath_var= 13135 shlibpath_overrides_runpath=unknown 13136 version_type=none 13137 dynamic_linker="$host_os ld.so" 13138 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13139 13140 need_lib_prefix=unknown 13141 hardcode_into_libs=no 13142 13143 # when you set need_version to no, make sure it does not cause -set_version 13144 # flags to be left without arguments 13145 need_version=unknown 13146 13147 case $host_os in 13148 aix3*) 13149 version_type=linux 13150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13151 shlibpath_var=LIBPATH 13152 13153 # AIX 3 has no versioning support, so we append a major version to the name. 13154 soname_spec='${libname}${release}${shared_ext}$major' 13155 ;; 13156 13157 aix4* | aix5*) 13158 version_type=linux 13159 need_lib_prefix=no 13160 need_version=no 13161 hardcode_into_libs=yes 13162 if test "$host_cpu" = ia64; then 13163 # AIX 5 supports IA64 13164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13165 shlibpath_var=LD_LIBRARY_PATH 13166 else 13167 # With GCC up to 2.95.x, collect2 would create an import file 13168 # for dependence libraries. The import file would start with 13169 # the line `#! .'. This would cause the generated library to 13170 # depend on `.', always an invalid library. This was fixed in 13171 # development snapshots of GCC prior to 3.0. 13172 case $host_os in 13173 aix4 | aix4.[01] | aix4.[01].*) 13174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13175 echo ' yes ' 13176 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13177 : 13178 else 13179 can_build_shared=no 13180 fi 13181 ;; 13182 esac 13183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13184 # soname into executable. Probably we can add versioning support to 13185 # collect2, so additional links can be useful in future. 13186 if test "$aix_use_runtimelinking" = yes; then 13187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13188 # instead of lib<name>.a to let people know that these are not 13189 # typical AIX shared libraries. 13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13191 else 13192 # We preserve .a as extension for shared libraries through AIX4.2 13193 # and later when we are not doing run time linking. 13194 library_names_spec='${libname}${release}.a $libname.a' 13195 soname_spec='${libname}${release}${shared_ext}$major' 13196 fi 13197 shlibpath_var=LIBPATH 13198 fi 13199 ;; 13200 13201 amigaos*) 13202 library_names_spec='$libname.ixlibrary $libname.a' 13203 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13204 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' 13205 ;; 13206 13207 beos*) 13208 library_names_spec='${libname}${shared_ext}' 13209 dynamic_linker="$host_os ld.so" 13210 shlibpath_var=LIBRARY_PATH 13211 ;; 13212 13213 bsdi[45]*) 13214 version_type=linux 13215 need_version=no 13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13217 soname_spec='${libname}${release}${shared_ext}$major' 13218 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13219 shlibpath_var=LD_LIBRARY_PATH 13220 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13221 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13222 # the default ld.so.conf also contains /usr/contrib/lib and 13223 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13224 # libtool to hard-code these into programs 13225 ;; 13226 13227 cygwin* | mingw* | pw32*) 13228 version_type=windows 13229 shrext_cmds=".dll" 13230 need_version=no 13231 need_lib_prefix=no 13232 13233 case $GCC,$host_os in 13234 yes,cygwin* | yes,mingw* | yes,pw32*) 13235 library_names_spec='$libname.dll.a' 13236 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13237 postinstall_cmds='base_file=`basename \${file}`~ 13238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13239 dldir=$destdir/`dirname \$dlpath`~ 13240 test -d \$dldir || mkdir -p \$dldir~ 13241 $install_prog $dir/$dlname \$dldir/$dlname~ 13242 chmod a+x \$dldir/$dlname' 13243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13244 dlpath=$dir/\$dldll~ 13245 $rm \$dlpath' 13246 shlibpath_overrides_runpath=yes 13247 13248 case $host_os in 13249 cygwin*) 13250 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13252 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13253 ;; 13254 mingw*) 13255 # MinGW DLLs use traditional 'lib' prefix 13256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13258 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13259 # It is most probably a Windows format PATH printed by 13260 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13261 # path with ; separators, and with drive letters. We can handle the 13262 # drive letters (cygwin fileutils understands them), so leave them, 13263 # especially as we might pass files found there to a mingw objdump, 13264 # which wouldn't understand a cygwinified path. Ahh. 13265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13266 else 13267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13268 fi 13269 ;; 13270 pw32*) 13271 # pw32 DLLs use 'pw' prefix rather than 'lib' 13272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13273 ;; 13274 esac 13275 ;; 13276 13277 *) 13278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13279 ;; 13280 esac 13281 dynamic_linker='Win32 ld.exe' 13282 # FIXME: first we should search . and the directory the executable is in 13283 shlibpath_var=PATH 13284 ;; 13285 13286 darwin* | rhapsody*) 13287 dynamic_linker="$host_os dyld" 13288 version_type=darwin 13289 need_lib_prefix=no 13290 need_version=no 13291 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13292 soname_spec='${libname}${release}${major}$shared_ext' 13293 shlibpath_overrides_runpath=yes 13294 shlibpath_var=DYLD_LIBRARY_PATH 13295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13296 13297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13298 ;; 13299 13300 dgux*) 13301 version_type=linux 13302 need_lib_prefix=no 13303 need_version=no 13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13305 soname_spec='${libname}${release}${shared_ext}$major' 13306 shlibpath_var=LD_LIBRARY_PATH 13307 ;; 13308 13309 freebsd1*) 13310 dynamic_linker=no 13311 ;; 13312 13313 freebsd* | dragonfly*) 13314 # DragonFly does not have aout. When/if they implement a new 13315 # versioning mechanism, adjust this. 13316 if test -x /usr/bin/objformat; then 13317 objformat=`/usr/bin/objformat` 13318 else 13319 case $host_os in 13320 freebsd[123]*) objformat=aout ;; 13321 *) objformat=elf ;; 13322 esac 13323 fi 13324 version_type=freebsd-$objformat 13325 case $version_type in 13326 freebsd-elf*) 13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13328 need_version=no 13329 need_lib_prefix=no 13330 ;; 13331 freebsd-*) 13332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13333 need_version=yes 13334 ;; 13335 esac 13336 shlibpath_var=LD_LIBRARY_PATH 13337 case $host_os in 13338 freebsd2*) 13339 shlibpath_overrides_runpath=yes 13340 ;; 13341 freebsd3.[01]* | freebsdelf3.[01]*) 13342 shlibpath_overrides_runpath=yes 13343 hardcode_into_libs=yes 13344 ;; 13345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13347 shlibpath_overrides_runpath=no 13348 hardcode_into_libs=yes 13349 ;; 13350 *) # from 4.6 on, and DragonFly 13351 shlibpath_overrides_runpath=yes 13352 hardcode_into_libs=yes 13353 ;; 13354 esac 13355 ;; 13356 13357 gnu*) 13358 version_type=linux 13359 need_lib_prefix=no 13360 need_version=no 13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13362 soname_spec='${libname}${release}${shared_ext}$major' 13363 shlibpath_var=LD_LIBRARY_PATH 13364 hardcode_into_libs=yes 13365 ;; 13366 13367 hpux9* | hpux10* | hpux11*) 13368 # Give a soname corresponding to the major version so that dld.sl refuses to 13369 # link against other versions. 13370 version_type=sunos 13371 need_lib_prefix=no 13372 need_version=no 13373 case $host_cpu in 13374 ia64*) 13375 shrext_cmds='.so' 13376 hardcode_into_libs=yes 13377 dynamic_linker="$host_os dld.so" 13378 shlibpath_var=LD_LIBRARY_PATH 13379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13381 soname_spec='${libname}${release}${shared_ext}$major' 13382 if test "X$HPUX_IA64_MODE" = X32; then 13383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13384 else 13385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13386 fi 13387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13388 ;; 13389 hppa*64*) 13390 shrext_cmds='.sl' 13391 hardcode_into_libs=yes 13392 dynamic_linker="$host_os dld.sl" 13393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13396 soname_spec='${libname}${release}${shared_ext}$major' 13397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13399 ;; 13400 *) 13401 shrext_cmds='.sl' 13402 dynamic_linker="$host_os dld.sl" 13403 shlibpath_var=SHLIB_PATH 13404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13406 soname_spec='${libname}${release}${shared_ext}$major' 13407 ;; 13408 esac 13409 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13410 postinstall_cmds='chmod 555 $lib' 13411 ;; 13412 13413 interix[3-9]*) 13414 version_type=linux 13415 need_lib_prefix=no 13416 need_version=no 13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13418 soname_spec='${libname}${release}${shared_ext}$major' 13419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13420 shlibpath_var=LD_LIBRARY_PATH 13421 shlibpath_overrides_runpath=no 13422 hardcode_into_libs=yes 13423 ;; 13424 13425 irix5* | irix6* | nonstopux*) 13426 case $host_os in 13427 nonstopux*) version_type=nonstopux ;; 13428 *) 13429 if test "$lt_cv_prog_gnu_ld" = yes; then 13430 version_type=linux 13431 else 13432 version_type=irix 13433 fi ;; 13434 esac 13435 need_lib_prefix=no 13436 need_version=no 13437 soname_spec='${libname}${release}${shared_ext}$major' 13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13439 case $host_os in 13440 irix5* | nonstopux*) 13441 libsuff= shlibsuff= 13442 ;; 13443 *) 13444 case $LD in # libtool.m4 will add one of these switches to LD 13445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13446 libsuff= shlibsuff= libmagic=32-bit;; 13447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13448 libsuff=32 shlibsuff=N32 libmagic=N32;; 13449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13450 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13451 *) libsuff= shlibsuff= libmagic=never-match;; 13452 esac 13453 ;; 13454 esac 13455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13456 shlibpath_overrides_runpath=no 13457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13459 hardcode_into_libs=yes 13460 ;; 13461 13462 # No shared lib support for Linux oldld, aout, or coff. 13463 linux*oldld* | linux*aout* | linux*coff*) 13464 dynamic_linker=no 13465 ;; 13466 13467 # This must be Linux ELF. 13468 linux* | k*bsd*-gnu) 13469 version_type=linux 13470 need_lib_prefix=no 13471 need_version=no 13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13473 soname_spec='${libname}${release}${shared_ext}$major' 13474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13475 shlibpath_var=LD_LIBRARY_PATH 13476 shlibpath_overrides_runpath=no 13477 # This implies no fast_install, which is unacceptable. 13478 # Some rework will be needed to allow for fast_install 13479 # before this can be enabled. 13480 hardcode_into_libs=yes 13481 13482 # Append ld.so.conf contents to the search path 13483 if test -f /etc/ld.so.conf; then 13484 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13486 fi 13487 13488 # We used to test for /lib/ld.so.1 and disable shared libraries on 13489 # powerpc, because MkLinux only supported shared libraries with the 13490 # GNU dynamic linker. Since this was broken with cross compilers, 13491 # most powerpc-linux boxes support dynamic linking these days and 13492 # people can always --disable-shared, the test was removed, and we 13493 # assume the GNU/Linux dynamic linker is in use. 13494 dynamic_linker='GNU/Linux ld.so' 13495 ;; 13496 13497 netbsd*) 13498 version_type=sunos 13499 need_lib_prefix=no 13500 need_version=no 13501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13504 dynamic_linker='NetBSD (a.out) ld.so' 13505 else 13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13507 soname_spec='${libname}${release}${shared_ext}$major' 13508 dynamic_linker='NetBSD ld.elf_so' 13509 fi 13510 shlibpath_var=LD_LIBRARY_PATH 13511 shlibpath_overrides_runpath=yes 13512 hardcode_into_libs=yes 13513 ;; 13514 13515 newsos6) 13516 version_type=linux 13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13518 shlibpath_var=LD_LIBRARY_PATH 13519 shlibpath_overrides_runpath=yes 13520 ;; 13521 13522 nto-qnx*) 13523 version_type=linux 13524 need_lib_prefix=no 13525 need_version=no 13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13527 soname_spec='${libname}${release}${shared_ext}$major' 13528 shlibpath_var=LD_LIBRARY_PATH 13529 shlibpath_overrides_runpath=yes 13530 ;; 13531 13532 openbsd*) 13533 version_type=sunos 13534 sys_lib_dlsearch_path_spec="/usr/lib" 13535 need_lib_prefix=no 13536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13537 case $host_os in 13538 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13539 *) need_version=no ;; 13540 esac 13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13543 shlibpath_var=LD_LIBRARY_PATH 13544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13545 case $host_os in 13546 openbsd2.[89] | openbsd2.[89].*) 13547 shlibpath_overrides_runpath=no 13548 ;; 13549 *) 13550 shlibpath_overrides_runpath=yes 13551 ;; 13552 esac 13553 else 13554 shlibpath_overrides_runpath=yes 13555 fi 13556 ;; 13557 13558 os2*) 13559 libname_spec='$name' 13560 shrext_cmds=".dll" 13561 need_lib_prefix=no 13562 library_names_spec='$libname${shared_ext} $libname.a' 13563 dynamic_linker='OS/2 ld.exe' 13564 shlibpath_var=LIBPATH 13565 ;; 13566 13567 osf3* | osf4* | osf5*) 13568 version_type=osf 13569 need_lib_prefix=no 13570 need_version=no 13571 soname_spec='${libname}${release}${shared_ext}$major' 13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13573 shlibpath_var=LD_LIBRARY_PATH 13574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13576 ;; 13577 13578 rdos*) 13579 dynamic_linker=no 13580 ;; 13581 13582 solaris*) 13583 version_type=linux 13584 need_lib_prefix=no 13585 need_version=no 13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13587 soname_spec='${libname}${release}${shared_ext}$major' 13588 shlibpath_var=LD_LIBRARY_PATH 13589 shlibpath_overrides_runpath=yes 13590 hardcode_into_libs=yes 13591 # ldd complains unless libraries are executable 13592 postinstall_cmds='chmod +x $lib' 13593 ;; 13594 13595 sunos4*) 13596 version_type=sunos 13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13599 shlibpath_var=LD_LIBRARY_PATH 13600 shlibpath_overrides_runpath=yes 13601 if test "$with_gnu_ld" = yes; then 13602 need_lib_prefix=no 13603 fi 13604 need_version=yes 13605 ;; 13606 13607 sysv4 | sysv4.3*) 13608 version_type=linux 13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13610 soname_spec='${libname}${release}${shared_ext}$major' 13611 shlibpath_var=LD_LIBRARY_PATH 13612 case $host_vendor in 13613 sni) 13614 shlibpath_overrides_runpath=no 13615 need_lib_prefix=no 13616 export_dynamic_flag_spec='${wl}-Blargedynsym' 13617 runpath_var=LD_RUN_PATH 13618 ;; 13619 siemens) 13620 need_lib_prefix=no 13621 ;; 13622 motorola) 13623 need_lib_prefix=no 13624 need_version=no 13625 shlibpath_overrides_runpath=no 13626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13627 ;; 13628 esac 13629 ;; 13630 13631 sysv4*MP*) 13632 if test -d /usr/nec ;then 13633 version_type=linux 13634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13635 soname_spec='$libname${shared_ext}.$major' 13636 shlibpath_var=LD_LIBRARY_PATH 13637 fi 13638 ;; 13639 13640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13641 version_type=freebsd-elf 13642 need_lib_prefix=no 13643 need_version=no 13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13645 soname_spec='${libname}${release}${shared_ext}$major' 13646 shlibpath_var=LD_LIBRARY_PATH 13647 hardcode_into_libs=yes 13648 if test "$with_gnu_ld" = yes; then 13649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13650 shlibpath_overrides_runpath=no 13651 else 13652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13653 shlibpath_overrides_runpath=yes 13654 case $host_os in 13655 sco3.2v5*) 13656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13657 ;; 13658 esac 13659 fi 13660 sys_lib_dlsearch_path_spec='/usr/lib' 13661 ;; 13662 13663 uts4*) 13664 version_type=linux 13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13666 soname_spec='${libname}${release}${shared_ext}$major' 13667 shlibpath_var=LD_LIBRARY_PATH 13668 ;; 13669 13670 *) 13671 dynamic_linker=no 13672 ;; 13673 esac 13674 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13675 $as_echo "$dynamic_linker" >&6; } 13676 test "$dynamic_linker" = no && can_build_shared=no 13677 13678 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13679 if test "$GCC" = yes; then 13680 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13681 fi 13682 13683 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13685 hardcode_action_CXX= 13686 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13687 test -n "$runpath_var_CXX" || \ 13688 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13689 13690 # We can hardcode non-existant directories. 13691 if test "$hardcode_direct_CXX" != no && 13692 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13693 # have to relink, otherwise we might link with an installed library 13694 # when we should be linking with a yet-to-be-installed one 13695 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13696 test "$hardcode_minus_L_CXX" != no; then 13697 # Linking always hardcodes the temporary library directory. 13698 hardcode_action_CXX=relink 13699 else 13700 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13701 hardcode_action_CXX=immediate 13702 fi 13703 else 13704 # We cannot hardcode anything, or else we can only hardcode existing 13705 # directories. 13706 hardcode_action_CXX=unsupported 13707 fi 13708 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13709 $as_echo "$hardcode_action_CXX" >&6; } 13710 13711 if test "$hardcode_action_CXX" = relink; then 13712 # Fast installation is not supported 13713 enable_fast_install=no 13714 elif test "$shlibpath_overrides_runpath" = yes || 13715 test "$enable_shared" = no; then 13716 # Fast installation is not necessary 13717 enable_fast_install=needless 13718 fi 13719 13720 13721 # The else clause should only fire when bootstrapping the 13722 # libtool distribution, otherwise you forgot to ship ltmain.sh 13723 # with your package, and you will get complaints that there are 13724 # no rules to generate ltmain.sh. 13725 if test -f "$ltmain"; then 13726 # See if we are running on zsh, and set the options which allow our commands through 13727 # without removal of \ escapes. 13728 if test -n "${ZSH_VERSION+set}" ; then 13729 setopt NO_GLOB_SUBST 13730 fi 13731 # Now quote all the things that may contain metacharacters while being 13732 # careful not to overquote the AC_SUBSTed values. We take copies of the 13733 # variables and quote the copies for generation of the libtool script. 13734 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13735 SED SHELL STRIP \ 13736 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13737 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13738 deplibs_check_method reload_flag reload_cmds need_locks \ 13739 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13740 lt_cv_sys_global_symbol_to_c_name_address \ 13741 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13742 old_postinstall_cmds old_postuninstall_cmds \ 13743 compiler_CXX \ 13744 CC_CXX \ 13745 LD_CXX \ 13746 lt_prog_compiler_wl_CXX \ 13747 lt_prog_compiler_pic_CXX \ 13748 lt_prog_compiler_static_CXX \ 13749 lt_prog_compiler_no_builtin_flag_CXX \ 13750 export_dynamic_flag_spec_CXX \ 13751 thread_safe_flag_spec_CXX \ 13752 whole_archive_flag_spec_CXX \ 13753 enable_shared_with_static_runtimes_CXX \ 13754 old_archive_cmds_CXX \ 13755 old_archive_from_new_cmds_CXX \ 13756 predep_objects_CXX \ 13757 postdep_objects_CXX \ 13758 predeps_CXX \ 13759 postdeps_CXX \ 13760 compiler_lib_search_path_CXX \ 13761 archive_cmds_CXX \ 13762 archive_expsym_cmds_CXX \ 13763 postinstall_cmds_CXX \ 13764 postuninstall_cmds_CXX \ 13765 old_archive_from_expsyms_cmds_CXX \ 13766 allow_undefined_flag_CXX \ 13767 no_undefined_flag_CXX \ 13768 export_symbols_cmds_CXX \ 13769 hardcode_libdir_flag_spec_CXX \ 13770 hardcode_libdir_flag_spec_ld_CXX \ 13771 hardcode_libdir_separator_CXX \ 13772 hardcode_automatic_CXX \ 13773 module_cmds_CXX \ 13774 module_expsym_cmds_CXX \ 13775 lt_cv_prog_compiler_c_o_CXX \ 13776 fix_srcfile_path_CXX \ 13777 exclude_expsyms_CXX \ 13778 include_expsyms_CXX; do 13779 13780 case $var in 13781 old_archive_cmds_CXX | \ 13782 old_archive_from_new_cmds_CXX | \ 13783 archive_cmds_CXX | \ 13784 archive_expsym_cmds_CXX | \ 13785 module_cmds_CXX | \ 13786 module_expsym_cmds_CXX | \ 13787 old_archive_from_expsyms_cmds_CXX | \ 13788 export_symbols_cmds_CXX | \ 13789 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13790 postinstall_cmds | postuninstall_cmds | \ 13791 old_postinstall_cmds | old_postuninstall_cmds | \ 13792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13793 # Double-quote double-evaled strings. 13794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13795 ;; 13796 *) 13797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13798 ;; 13799 esac 13800 done 13801 13802 case $lt_echo in 13803 *'\$0 --fallback-echo"') 13804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13805 ;; 13806 esac 13807 13808 cfgfile="$ofile" 13809 13810 cat <<__EOF__ >> "$cfgfile" 13811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13812 13813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13814 13815 # Shell to use when invoking shell scripts. 13816 SHELL=$lt_SHELL 13817 13818 # Whether or not to build shared libraries. 13819 build_libtool_libs=$enable_shared 13820 13821 # Whether or not to build static libraries. 13822 build_old_libs=$enable_static 13823 13824 # Whether or not to add -lc for building shared libraries. 13825 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13826 13827 # Whether or not to disallow shared libs when runtime libs are static 13828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13829 13830 # Whether or not to optimize for fast installation. 13831 fast_install=$enable_fast_install 13832 13833 # The host system. 13834 host_alias=$host_alias 13835 host=$host 13836 host_os=$host_os 13837 13838 # The build system. 13839 build_alias=$build_alias 13840 build=$build 13841 build_os=$build_os 13842 13843 # An echo program that does not interpret backslashes. 13844 echo=$lt_echo 13845 13846 # The archiver. 13847 AR=$lt_AR 13848 AR_FLAGS=$lt_AR_FLAGS 13849 13850 # A C compiler. 13851 LTCC=$lt_LTCC 13852 13853 # LTCC compiler flags. 13854 LTCFLAGS=$lt_LTCFLAGS 13855 13856 # A language-specific compiler. 13857 CC=$lt_compiler_CXX 13858 13859 # Is the compiler the GNU C compiler? 13860 with_gcc=$GCC_CXX 13861 13862 # An ERE matcher. 13863 EGREP=$lt_EGREP 13864 13865 # The linker used to build libraries. 13866 LD=$lt_LD_CXX 13867 13868 # Whether we need hard or soft links. 13869 LN_S=$lt_LN_S 13870 13871 # A BSD-compatible nm program. 13872 NM=$lt_NM 13873 13874 # A symbol stripping program 13875 STRIP=$lt_STRIP 13876 13877 # Used to examine libraries when file_magic_cmd begins "file" 13878 MAGIC_CMD=$MAGIC_CMD 13879 13880 # Used on cygwin: DLL creation program. 13881 DLLTOOL="$DLLTOOL" 13882 13883 # Used on cygwin: object dumper. 13884 OBJDUMP="$OBJDUMP" 13885 13886 # Used on cygwin: assembler. 13887 AS="$AS" 13888 13889 # The name of the directory that contains temporary libtool files. 13890 objdir=$objdir 13891 13892 # How to create reloadable object files. 13893 reload_flag=$lt_reload_flag 13894 reload_cmds=$lt_reload_cmds 13895 13896 # How to pass a linker flag through the compiler. 13897 wl=$lt_lt_prog_compiler_wl_CXX 13898 13899 # Object file suffix (normally "o"). 13900 objext="$ac_objext" 13901 13902 # Old archive suffix (normally "a"). 13903 libext="$libext" 13904 13905 # Shared library suffix (normally ".so"). 13906 shrext_cmds='$shrext_cmds' 13907 13908 # Executable file suffix (normally ""). 13909 exeext="$exeext" 13910 13911 # Additional compiler flags for building library objects. 13912 pic_flag=$lt_lt_prog_compiler_pic_CXX 13913 pic_mode=$pic_mode 13914 13915 # What is the maximum length of a command? 13916 max_cmd_len=$lt_cv_sys_max_cmd_len 13917 13918 # Does compiler simultaneously support -c and -o options? 13919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13920 13921 # Must we lock files when doing compilation? 13922 need_locks=$lt_need_locks 13923 13924 # Do we need the lib prefix for modules? 13925 need_lib_prefix=$need_lib_prefix 13926 13927 # Do we need a version for libraries? 13928 need_version=$need_version 13929 13930 # Whether dlopen is supported. 13931 dlopen_support=$enable_dlopen 13932 13933 # Whether dlopen of programs is supported. 13934 dlopen_self=$enable_dlopen_self 13935 13936 # Whether dlopen of statically linked programs is supported. 13937 dlopen_self_static=$enable_dlopen_self_static 13938 13939 # Compiler flag to prevent dynamic linking. 13940 link_static_flag=$lt_lt_prog_compiler_static_CXX 13941 13942 # Compiler flag to turn off builtin functions. 13943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13944 13945 # Compiler flag to allow reflexive dlopens. 13946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13947 13948 # Compiler flag to generate shared objects directly from archives. 13949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13950 13951 # Compiler flag to generate thread-safe objects. 13952 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13953 13954 # Library versioning type. 13955 version_type=$version_type 13956 13957 # Format of library name prefix. 13958 libname_spec=$lt_libname_spec 13959 13960 # List of archive names. First name is the real one, the rest are links. 13961 # The last name is the one that the linker finds with -lNAME. 13962 library_names_spec=$lt_library_names_spec 13963 13964 # The coded name of the library, if different from the real name. 13965 soname_spec=$lt_soname_spec 13966 13967 # Commands used to build and install an old-style archive. 13968 RANLIB=$lt_RANLIB 13969 old_archive_cmds=$lt_old_archive_cmds_CXX 13970 old_postinstall_cmds=$lt_old_postinstall_cmds 13971 old_postuninstall_cmds=$lt_old_postuninstall_cmds 13972 13973 # Create an old-style archive from a shared archive. 13974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13975 13976 # Create a temporary old-style archive to link instead of a shared archive. 13977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13978 13979 # Commands used to build and install a shared archive. 13980 archive_cmds=$lt_archive_cmds_CXX 13981 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13982 postinstall_cmds=$lt_postinstall_cmds 13983 postuninstall_cmds=$lt_postuninstall_cmds 13984 13985 # Commands used to build a loadable module (assumed same as above if empty) 13986 module_cmds=$lt_module_cmds_CXX 13987 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13988 13989 # Commands to strip libraries. 13990 old_striplib=$lt_old_striplib 13991 striplib=$lt_striplib 13992 13993 # Dependencies to place before the objects being linked to create a 13994 # shared library. 13995 predep_objects=$lt_predep_objects_CXX 13996 13997 # Dependencies to place after the objects being linked to create a 13998 # shared library. 13999 postdep_objects=$lt_postdep_objects_CXX 14000 14001 # Dependencies to place before the objects being linked to create a 14002 # shared library. 14003 predeps=$lt_predeps_CXX 14004 14005 # Dependencies to place after the objects being linked to create a 14006 # shared library. 14007 postdeps=$lt_postdeps_CXX 14008 14009 # The library search path used internally by the compiler when linking 14010 # a shared library. 14011 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14012 14013 # Method to check whether dependent libraries are shared objects. 14014 deplibs_check_method=$lt_deplibs_check_method 14015 14016 # Command to use when deplibs_check_method == file_magic. 14017 file_magic_cmd=$lt_file_magic_cmd 14018 14019 # Flag that allows shared libraries with undefined symbols to be built. 14020 allow_undefined_flag=$lt_allow_undefined_flag_CXX 14021 14022 # Flag that forces no undefined symbols. 14023 no_undefined_flag=$lt_no_undefined_flag_CXX 14024 14025 # Commands used to finish a libtool library installation in a directory. 14026 finish_cmds=$lt_finish_cmds 14027 14028 # Same as above, but a single script fragment to be evaled but not shown. 14029 finish_eval=$lt_finish_eval 14030 14031 # Take the output of nm and produce a listing of raw symbols and C names. 14032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14033 14034 # Transform the output of nm in a proper C declaration 14035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14036 14037 # Transform the output of nm in a C name address pair 14038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14039 14040 # This is the shared library runtime path variable. 14041 runpath_var=$runpath_var 14042 14043 # This is the shared library path variable. 14044 shlibpath_var=$shlibpath_var 14045 14046 # Is shlibpath searched before the hard-coded library search path? 14047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14048 14049 # How to hardcode a shared library path into an executable. 14050 hardcode_action=$hardcode_action_CXX 14051 14052 # Whether we should hardcode library paths into libraries. 14053 hardcode_into_libs=$hardcode_into_libs 14054 14055 # Flag to hardcode \$libdir into a binary during linking. 14056 # This must work even if \$libdir does not exist. 14057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14058 14059 # If ld is used when linking, flag to hardcode \$libdir into 14060 # a binary during linking. This must work even if \$libdir does 14061 # not exist. 14062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14063 14064 # Whether we need a single -rpath flag with a separated argument. 14065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14066 14067 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14068 # resulting binary. 14069 hardcode_direct=$hardcode_direct_CXX 14070 14071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14072 # resulting binary. 14073 hardcode_minus_L=$hardcode_minus_L_CXX 14074 14075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14076 # the resulting binary. 14077 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14078 14079 # Set to yes if building a shared library automatically hardcodes DIR into the library 14080 # and all subsequent libraries and executables linked against it. 14081 hardcode_automatic=$hardcode_automatic_CXX 14082 14083 # Variables whose values should be saved in libtool wrapper scripts and 14084 # restored at relink time. 14085 variables_saved_for_relink="$variables_saved_for_relink" 14086 14087 # Whether libtool must link a program against all its dependency libraries. 14088 link_all_deplibs=$link_all_deplibs_CXX 14089 14090 # Compile-time system search path for libraries 14091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14092 14093 # Run-time system search path for libraries 14094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14095 14096 # Fix the shell variable \$srcfile for the compiler. 14097 fix_srcfile_path=$lt_fix_srcfile_path 14098 14099 # Set to yes if exported symbols are required. 14100 always_export_symbols=$always_export_symbols_CXX 14101 14102 # The commands to list exported symbols. 14103 export_symbols_cmds=$lt_export_symbols_cmds_CXX 14104 14105 # The commands to extract the exported symbol list from a shared archive. 14106 extract_expsyms_cmds=$lt_extract_expsyms_cmds 14107 14108 # Symbols that should not be listed in the preloaded symbols. 14109 exclude_expsyms=$lt_exclude_expsyms_CXX 14110 14111 # Symbols that must always be exported. 14112 include_expsyms=$lt_include_expsyms_CXX 14113 14114 # ### END LIBTOOL TAG CONFIG: $tagname 14115 14116 __EOF__ 14117 14118 14119 else 14120 # If there is no Makefile yet, we rely on a make rule to execute 14121 # `config.status --recheck' to rerun these tests and create the 14122 # libtool script then. 14123 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14124 if test -f "$ltmain_in"; then 14125 test -f Makefile && make "$ltmain" 14126 fi 14127 fi 14128 14129 14130 ac_ext=c 14131 ac_cpp='$CPP $CPPFLAGS' 14132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14134 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14135 14136 CC=$lt_save_CC 14137 LDCXX=$LD 14138 LD=$lt_save_LD 14139 GCC=$lt_save_GCC 14140 with_gnu_ldcxx=$with_gnu_ld 14141 with_gnu_ld=$lt_save_with_gnu_ld 14142 lt_cv_path_LDCXX=$lt_cv_path_LD 14143 lt_cv_path_LD=$lt_save_path_LD 14144 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14145 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14146 14147 else 14148 tagname="" 14149 fi 14150 ;; 14151 14152 F77) 14153 if test -n "$F77" && test "X$F77" != "Xno"; then 14154 14155 ac_ext=f 14156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14159 14160 14161 archive_cmds_need_lc_F77=no 14162 allow_undefined_flag_F77= 14163 always_export_symbols_F77=no 14164 archive_expsym_cmds_F77= 14165 export_dynamic_flag_spec_F77= 14166 hardcode_direct_F77=no 14167 hardcode_libdir_flag_spec_F77= 14168 hardcode_libdir_flag_spec_ld_F77= 14169 hardcode_libdir_separator_F77= 14170 hardcode_minus_L_F77=no 14171 hardcode_automatic_F77=no 14172 module_cmds_F77= 14173 module_expsym_cmds_F77= 14174 link_all_deplibs_F77=unknown 14175 old_archive_cmds_F77=$old_archive_cmds 14176 no_undefined_flag_F77= 14177 whole_archive_flag_spec_F77= 14178 enable_shared_with_static_runtimes_F77=no 14179 14180 # Source file extension for f77 test sources. 14181 ac_ext=f 14182 14183 # Object file extension for compiled f77 test sources. 14184 objext=o 14185 objext_F77=$objext 14186 14187 # Code to be used in simple compile tests 14188 lt_simple_compile_test_code="\ 14189 subroutine t 14190 return 14191 end 14192 " 14193 14194 # Code to be used in simple link tests 14195 lt_simple_link_test_code="\ 14196 program t 14197 end 14198 " 14199 14200 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14201 14202 # If no C compiler was specified, use CC. 14203 LTCC=${LTCC-"$CC"} 14204 14205 # If no C compiler flags were specified, use CFLAGS. 14206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14207 14208 # Allow CC to be a program name with arguments. 14209 compiler=$CC 14210 14211 14212 # save warnings/boilerplate of simple test code 14213 ac_outfile=conftest.$ac_objext 14214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14216 _lt_compiler_boilerplate=`cat conftest.err` 14217 $rm conftest* 14218 14219 ac_outfile=conftest.$ac_objext 14220 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14222 _lt_linker_boilerplate=`cat conftest.err` 14223 $rm conftest* 14224 14225 14226 # Allow CC to be a program name with arguments. 14227 lt_save_CC="$CC" 14228 CC=${F77-"f77"} 14229 compiler=$CC 14230 compiler_F77=$CC 14231 for cc_temp in $compiler""; do 14232 case $cc_temp in 14233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14235 \-*) ;; 14236 *) break;; 14237 esac 14238 done 14239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14240 14241 14242 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14243 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 14244 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14245 $as_echo "$can_build_shared" >&6; } 14246 14247 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14248 $as_echo_n "checking whether to build shared libraries... " >&6; } 14249 test "$can_build_shared" = "no" && enable_shared=no 14250 14251 # On AIX, shared libraries and static libraries use the same namespace, and 14252 # are all built from PIC. 14253 case $host_os in 14254 aix3*) 14255 test "$enable_shared" = yes && enable_static=no 14256 if test -n "$RANLIB"; then 14257 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14258 postinstall_cmds='$RANLIB $lib' 14259 fi 14260 ;; 14261 aix4* | aix5*) 14262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14263 test "$enable_shared" = yes && enable_static=no 14264 fi 14265 ;; 14266 esac 14267 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14268 $as_echo "$enable_shared" >&6; } 14269 14270 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14271 $as_echo_n "checking whether to build static libraries... " >&6; } 14272 # Make sure either enable_shared or enable_static is yes. 14273 test "$enable_shared" = yes || enable_static=yes 14274 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14275 $as_echo "$enable_static" >&6; } 14276 14277 GCC_F77="$G77" 14278 LD_F77="$LD" 14279 14280 lt_prog_compiler_wl_F77= 14281 lt_prog_compiler_pic_F77= 14282 lt_prog_compiler_static_F77= 14283 14284 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14285 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14286 14287 if test "$GCC" = yes; then 14288 lt_prog_compiler_wl_F77='-Wl,' 14289 lt_prog_compiler_static_F77='-static' 14290 14291 case $host_os in 14292 aix*) 14293 # All AIX code is PIC. 14294 if test "$host_cpu" = ia64; then 14295 # AIX 5 now supports IA64 processor 14296 lt_prog_compiler_static_F77='-Bstatic' 14297 fi 14298 ;; 14299 14300 amigaos*) 14301 # FIXME: we need at least 68020 code to build shared libraries, but 14302 # adding the `-m68020' flag to GCC prevents building anything better, 14303 # like `-m68040'. 14304 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14305 ;; 14306 14307 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14308 # PIC is the default for these OSes. 14309 ;; 14310 14311 mingw* | cygwin* | pw32* | os2*) 14312 # This hack is so that the source file can tell whether it is being 14313 # built for inclusion in a dll (and should export symbols for example). 14314 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14315 # (--disable-auto-import) libraries 14316 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14317 ;; 14318 14319 darwin* | rhapsody*) 14320 # PIC is the default on this platform 14321 # Common symbols not allowed in MH_DYLIB files 14322 lt_prog_compiler_pic_F77='-fno-common' 14323 ;; 14324 14325 interix[3-9]*) 14326 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14327 # Instead, we relocate shared libraries at runtime. 14328 ;; 14329 14330 msdosdjgpp*) 14331 # Just because we use GCC doesn't mean we suddenly get shared libraries 14332 # on systems that don't support them. 14333 lt_prog_compiler_can_build_shared_F77=no 14334 enable_shared=no 14335 ;; 14336 14337 sysv4*MP*) 14338 if test -d /usr/nec; then 14339 lt_prog_compiler_pic_F77=-Kconform_pic 14340 fi 14341 ;; 14342 14343 hpux*) 14344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14345 # not for PA HP-UX. 14346 case $host_cpu in 14347 hppa*64*|ia64*) 14348 # +Z the default 14349 ;; 14350 *) 14351 lt_prog_compiler_pic_F77='-fPIC' 14352 ;; 14353 esac 14354 ;; 14355 14356 *) 14357 lt_prog_compiler_pic_F77='-fPIC' 14358 ;; 14359 esac 14360 else 14361 # PORTME Check for flag to pass linker flags through the system compiler. 14362 case $host_os in 14363 aix*) 14364 lt_prog_compiler_wl_F77='-Wl,' 14365 if test "$host_cpu" = ia64; then 14366 # AIX 5 now supports IA64 processor 14367 lt_prog_compiler_static_F77='-Bstatic' 14368 else 14369 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14370 fi 14371 ;; 14372 darwin*) 14373 # PIC is the default on this platform 14374 # Common symbols not allowed in MH_DYLIB files 14375 case $cc_basename in 14376 xlc*) 14377 lt_prog_compiler_pic_F77='-qnocommon' 14378 lt_prog_compiler_wl_F77='-Wl,' 14379 ;; 14380 esac 14381 ;; 14382 14383 mingw* | cygwin* | pw32* | os2*) 14384 # This hack is so that the source file can tell whether it is being 14385 # built for inclusion in a dll (and should export symbols for example). 14386 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14387 ;; 14388 14389 hpux9* | hpux10* | hpux11*) 14390 lt_prog_compiler_wl_F77='-Wl,' 14391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14392 # not for PA HP-UX. 14393 case $host_cpu in 14394 hppa*64*|ia64*) 14395 # +Z the default 14396 ;; 14397 *) 14398 lt_prog_compiler_pic_F77='+Z' 14399 ;; 14400 esac 14401 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14402 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14403 ;; 14404 14405 irix5* | irix6* | nonstopux*) 14406 lt_prog_compiler_wl_F77='-Wl,' 14407 # PIC (with -KPIC) is the default. 14408 lt_prog_compiler_static_F77='-non_shared' 14409 ;; 14410 14411 newsos6) 14412 lt_prog_compiler_pic_F77='-KPIC' 14413 lt_prog_compiler_static_F77='-Bstatic' 14414 ;; 14415 14416 linux* | k*bsd*-gnu) 14417 case $cc_basename in 14418 icc* | ecc*) 14419 lt_prog_compiler_wl_F77='-Wl,' 14420 lt_prog_compiler_pic_F77='-KPIC' 14421 lt_prog_compiler_static_F77='-static' 14422 ;; 14423 pgcc* | pgf77* | pgf90* | pgf95*) 14424 # Portland Group compilers (*not* the Pentium gcc compiler, 14425 # which looks to be a dead project) 14426 lt_prog_compiler_wl_F77='-Wl,' 14427 lt_prog_compiler_pic_F77='-fpic' 14428 lt_prog_compiler_static_F77='-Bstatic' 14429 ;; 14430 ccc*) 14431 lt_prog_compiler_wl_F77='-Wl,' 14432 # All Alpha code is PIC. 14433 lt_prog_compiler_static_F77='-non_shared' 14434 ;; 14435 *) 14436 case `$CC -V 2>&1 | sed 5q` in 14437 *Sun\ C*) 14438 # Sun C 5.9 14439 lt_prog_compiler_pic_F77='-KPIC' 14440 lt_prog_compiler_static_F77='-Bstatic' 14441 lt_prog_compiler_wl_F77='-Wl,' 14442 ;; 14443 *Sun\ F*) 14444 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14445 lt_prog_compiler_pic_F77='-KPIC' 14446 lt_prog_compiler_static_F77='-Bstatic' 14447 lt_prog_compiler_wl_F77='' 14448 ;; 14449 esac 14450 ;; 14451 esac 14452 ;; 14453 14454 osf3* | osf4* | osf5*) 14455 lt_prog_compiler_wl_F77='-Wl,' 14456 # All OSF/1 code is PIC. 14457 lt_prog_compiler_static_F77='-non_shared' 14458 ;; 14459 14460 rdos*) 14461 lt_prog_compiler_static_F77='-non_shared' 14462 ;; 14463 14464 solaris*) 14465 lt_prog_compiler_pic_F77='-KPIC' 14466 lt_prog_compiler_static_F77='-Bstatic' 14467 case $cc_basename in 14468 f77* | f90* | f95*) 14469 lt_prog_compiler_wl_F77='-Qoption ld ';; 14470 *) 14471 lt_prog_compiler_wl_F77='-Wl,';; 14472 esac 14473 ;; 14474 14475 sunos4*) 14476 lt_prog_compiler_wl_F77='-Qoption ld ' 14477 lt_prog_compiler_pic_F77='-PIC' 14478 lt_prog_compiler_static_F77='-Bstatic' 14479 ;; 14480 14481 sysv4 | sysv4.2uw2* | sysv4.3*) 14482 lt_prog_compiler_wl_F77='-Wl,' 14483 lt_prog_compiler_pic_F77='-KPIC' 14484 lt_prog_compiler_static_F77='-Bstatic' 14485 ;; 14486 14487 sysv4*MP*) 14488 if test -d /usr/nec ;then 14489 lt_prog_compiler_pic_F77='-Kconform_pic' 14490 lt_prog_compiler_static_F77='-Bstatic' 14491 fi 14492 ;; 14493 14494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14495 lt_prog_compiler_wl_F77='-Wl,' 14496 lt_prog_compiler_pic_F77='-KPIC' 14497 lt_prog_compiler_static_F77='-Bstatic' 14498 ;; 14499 14500 unicos*) 14501 lt_prog_compiler_wl_F77='-Wl,' 14502 lt_prog_compiler_can_build_shared_F77=no 14503 ;; 14504 14505 uts4*) 14506 lt_prog_compiler_pic_F77='-pic' 14507 lt_prog_compiler_static_F77='-Bstatic' 14508 ;; 14509 14510 *) 14511 lt_prog_compiler_can_build_shared_F77=no 14512 ;; 14513 esac 14514 fi 14515 14516 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14517 $as_echo "$lt_prog_compiler_pic_F77" >&6; } 14518 14519 # 14520 # Check to make sure the PIC flag actually works. 14521 # 14522 if test -n "$lt_prog_compiler_pic_F77"; then 14523 14524 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14526 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14527 $as_echo_n "(cached) " >&6 14528 else 14529 lt_prog_compiler_pic_works_F77=no 14530 ac_outfile=conftest.$ac_objext 14531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14532 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14533 # Insert the option either (1) after the last *FLAGS variable, or 14534 # (2) before a word containing "conftest.", or (3) at the end. 14535 # Note that $ac_compile itself does not contain backslashes and begins 14536 # with a dollar sign (not a hyphen), so the echo should work correctly. 14537 # The option is referenced via a variable to avoid confusing sed. 14538 lt_compile=`echo "$ac_compile" | $SED \ 14539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14541 -e 's:$: $lt_compiler_flag:'` 14542 (eval echo "\"\$as_me:14542: $lt_compile\"" >&5) 14543 (eval "$lt_compile" 2>conftest.err) 14544 ac_status=$? 14545 cat conftest.err >&5 14546 echo "$as_me:14546: \$? = $ac_status" >&5 14547 if (exit $ac_status) && test -s "$ac_outfile"; then 14548 # The compiler can only warn and ignore the option if not recognized 14549 # So say no if there are warnings other than the usual output. 14550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14553 lt_prog_compiler_pic_works_F77=yes 14554 fi 14555 fi 14556 $rm conftest* 14557 14558 fi 14559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14560 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; } 14561 14562 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14563 case $lt_prog_compiler_pic_F77 in 14564 "" | " "*) ;; 14565 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14566 esac 14567 else 14568 lt_prog_compiler_pic_F77= 14569 lt_prog_compiler_can_build_shared_F77=no 14570 fi 14571 14572 fi 14573 case $host_os in 14574 # For platforms which do not support PIC, -DPIC is meaningless: 14575 *djgpp*) 14576 lt_prog_compiler_pic_F77= 14577 ;; 14578 *) 14579 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14580 ;; 14581 esac 14582 14583 # 14584 # Check to make sure the static flag actually works. 14585 # 14586 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14587 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14589 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14590 $as_echo_n "(cached) " >&6 14591 else 14592 lt_prog_compiler_static_works_F77=no 14593 save_LDFLAGS="$LDFLAGS" 14594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14595 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14597 # The linker can only warn and ignore the option if not recognized 14598 # So say no if there are warnings 14599 if test -s conftest.err; then 14600 # Append any errors to the config.log. 14601 cat conftest.err 1>&5 14602 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14604 if diff conftest.exp conftest.er2 >/dev/null; then 14605 lt_prog_compiler_static_works_F77=yes 14606 fi 14607 else 14608 lt_prog_compiler_static_works_F77=yes 14609 fi 14610 fi 14611 $rm conftest* 14612 LDFLAGS="$save_LDFLAGS" 14613 14614 fi 14615 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14616 $as_echo "$lt_prog_compiler_static_works_F77" >&6; } 14617 14618 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14619 : 14620 else 14621 lt_prog_compiler_static_F77= 14622 fi 14623 14624 14625 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14627 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14628 $as_echo_n "(cached) " >&6 14629 else 14630 lt_cv_prog_compiler_c_o_F77=no 14631 $rm -r conftest 2>/dev/null 14632 mkdir conftest 14633 cd conftest 14634 mkdir out 14635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14636 14637 lt_compiler_flag="-o out/conftest2.$ac_objext" 14638 # Insert the option either (1) after the last *FLAGS variable, or 14639 # (2) before a word containing "conftest.", or (3) at the end. 14640 # Note that $ac_compile itself does not contain backslashes and begins 14641 # with a dollar sign (not a hyphen), so the echo should work correctly. 14642 lt_compile=`echo "$ac_compile" | $SED \ 14643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14645 -e 's:$: $lt_compiler_flag:'` 14646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5) 14647 (eval "$lt_compile" 2>out/conftest.err) 14648 ac_status=$? 14649 cat out/conftest.err >&5 14650 echo "$as_me:14650: \$? = $ac_status" >&5 14651 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14652 then 14653 # The compiler can only warn and ignore the option if not recognized 14654 # So say no if there are warnings 14655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14658 lt_cv_prog_compiler_c_o_F77=yes 14659 fi 14660 fi 14661 chmod u+w . 2>&5 14662 $rm conftest* 14663 # SGI C++ compiler will create directory out/ii_files/ for 14664 # template instantiation 14665 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14666 $rm out/* && rmdir out 14667 cd .. 14668 rmdir conftest 14669 $rm conftest* 14670 14671 fi 14672 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14673 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14674 14675 14676 hard_links="nottested" 14677 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14678 # do not overwrite the value of need_locks provided by the user 14679 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14680 $as_echo_n "checking if we can lock with hard links... " >&6; } 14681 hard_links=yes 14682 $rm conftest* 14683 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14684 touch conftest.a 14685 ln conftest.a conftest.b 2>&5 || hard_links=no 14686 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14687 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14688 $as_echo "$hard_links" >&6; } 14689 if test "$hard_links" = no; then 14690 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14691 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14692 need_locks=warn 14693 fi 14694 else 14695 need_locks=no 14696 fi 14697 14698 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14700 14701 runpath_var= 14702 allow_undefined_flag_F77= 14703 enable_shared_with_static_runtimes_F77=no 14704 archive_cmds_F77= 14705 archive_expsym_cmds_F77= 14706 old_archive_From_new_cmds_F77= 14707 old_archive_from_expsyms_cmds_F77= 14708 export_dynamic_flag_spec_F77= 14709 whole_archive_flag_spec_F77= 14710 thread_safe_flag_spec_F77= 14711 hardcode_libdir_flag_spec_F77= 14712 hardcode_libdir_flag_spec_ld_F77= 14713 hardcode_libdir_separator_F77= 14714 hardcode_direct_F77=no 14715 hardcode_minus_L_F77=no 14716 hardcode_shlibpath_var_F77=unsupported 14717 link_all_deplibs_F77=unknown 14718 hardcode_automatic_F77=no 14719 module_cmds_F77= 14720 module_expsym_cmds_F77= 14721 always_export_symbols_F77=no 14722 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14723 # include_expsyms should be a list of space-separated symbols to be *always* 14724 # included in the symbol list 14725 include_expsyms_F77= 14726 # exclude_expsyms can be an extended regexp of symbols to exclude 14727 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14729 # as well as any symbol that contains `d'. 14730 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14732 # platforms (ab)use it in PIC code, but their linkers get confused if 14733 # the symbol is explicitly referenced. Since portable code cannot 14734 # rely on this symbol name, it's probably fine to never include it in 14735 # preloaded symbol tables. 14736 extract_expsyms_cmds= 14737 # Just being paranoid about ensuring that cc_basename is set. 14738 for cc_temp in $compiler""; do 14739 case $cc_temp in 14740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14742 \-*) ;; 14743 *) break;; 14744 esac 14745 done 14746 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14747 14748 case $host_os in 14749 cygwin* | mingw* | pw32*) 14750 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14751 # When not using gcc, we currently assume that we are using 14752 # Microsoft Visual C++. 14753 if test "$GCC" != yes; then 14754 with_gnu_ld=no 14755 fi 14756 ;; 14757 interix*) 14758 # we just hope/assume this is gcc and not c89 (= MSVC++) 14759 with_gnu_ld=yes 14760 ;; 14761 openbsd*) 14762 with_gnu_ld=no 14763 ;; 14764 esac 14765 14766 ld_shlibs_F77=yes 14767 if test "$with_gnu_ld" = yes; then 14768 # If archive_cmds runs LD, not CC, wlarc should be empty 14769 wlarc='${wl}' 14770 14771 # Set some defaults for GNU ld with shared library support. These 14772 # are reset later if shared libraries are not supported. Putting them 14773 # here allows them to be overridden if necessary. 14774 runpath_var=LD_RUN_PATH 14775 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14776 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14777 # ancient GNU ld didn't support --whole-archive et. al. 14778 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14779 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14780 else 14781 whole_archive_flag_spec_F77= 14782 fi 14783 supports_anon_versioning=no 14784 case `$LD -v 2>/dev/null` in 14785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14788 *\ 2.11.*) ;; # other 2.11 versions 14789 *) supports_anon_versioning=yes ;; 14790 esac 14791 14792 # See if GNU ld supports shared libraries. 14793 case $host_os in 14794 aix3* | aix4* | aix5*) 14795 # On AIX/PPC, the GNU linker is very broken 14796 if test "$host_cpu" != ia64; then 14797 ld_shlibs_F77=no 14798 cat <<EOF 1>&2 14799 14800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14801 *** to be unable to reliably create shared libraries on AIX. 14802 *** Therefore, libtool is disabling shared libraries support. If you 14803 *** really care for shared libraries, you may want to modify your PATH 14804 *** so that a non-GNU linker is found, and then restart. 14805 14806 EOF 14807 fi 14808 ;; 14809 14810 amigaos*) 14811 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)' 14812 hardcode_libdir_flag_spec_F77='-L$libdir' 14813 hardcode_minus_L_F77=yes 14814 14815 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 14816 # that the semantics of dynamic libraries on AmigaOS, at least up 14817 # to version 4, is to share data among multiple programs linked 14818 # with the same dynamic library. Since this doesn't match the 14819 # behavior of shared libraries on other platforms, we can't use 14820 # them. 14821 ld_shlibs_F77=no 14822 ;; 14823 14824 beos*) 14825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14826 allow_undefined_flag_F77=unsupported 14827 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14828 # support --undefined. This deserves some investigation. FIXME 14829 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14830 else 14831 ld_shlibs_F77=no 14832 fi 14833 ;; 14834 14835 cygwin* | mingw* | pw32*) 14836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14837 # as there is no search path for DLLs. 14838 hardcode_libdir_flag_spec_F77='-L$libdir' 14839 allow_undefined_flag_F77=unsupported 14840 always_export_symbols_F77=no 14841 enable_shared_with_static_runtimes_F77=yes 14842 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14843 14844 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14845 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14846 # If the export-symbols file already is a .def file (1st line 14847 # is EXPORTS), use it as is; otherwise, prepend... 14848 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14849 cp $export_symbols $output_objdir/$soname.def; 14850 else 14851 echo EXPORTS > $output_objdir/$soname.def; 14852 cat $export_symbols >> $output_objdir/$soname.def; 14853 fi~ 14854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14855 else 14856 ld_shlibs_F77=no 14857 fi 14858 ;; 14859 14860 interix[3-9]*) 14861 hardcode_direct_F77=no 14862 hardcode_shlibpath_var_F77=no 14863 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14864 export_dynamic_flag_spec_F77='${wl}-E' 14865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14866 # Instead, shared libraries are loaded at an image base (0x10000000 by 14867 # default) and relocated if they conflict, which is a slow very memory 14868 # consuming and fragmenting process. To avoid this, we pick a random, 14869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14870 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14871 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' 14872 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' 14873 ;; 14874 14875 gnu* | linux* | k*bsd*-gnu) 14876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14877 tmp_addflag= 14878 case $cc_basename,$host_cpu in 14879 pgcc*) # Portland Group C compiler 14880 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' 14881 tmp_addflag=' $pic_flag' 14882 ;; 14883 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14884 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' 14885 tmp_addflag=' $pic_flag -Mnomain' ;; 14886 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14887 tmp_addflag=' -i_dynamic' ;; 14888 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14889 tmp_addflag=' -i_dynamic -nofor_main' ;; 14890 ifc* | ifort*) # Intel Fortran compiler 14891 tmp_addflag=' -nofor_main' ;; 14892 esac 14893 case `$CC -V 2>&1 | sed 5q` in 14894 *Sun\ C*) # Sun C 5.9 14895 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' 14896 tmp_sharedflag='-G' ;; 14897 *Sun\ F*) # Sun Fortran 8.3 14898 tmp_sharedflag='-G' ;; 14899 *) 14900 tmp_sharedflag='-shared' ;; 14901 esac 14902 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14903 14904 if test $supports_anon_versioning = yes; then 14905 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14907 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14908 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14909 fi 14910 else 14911 ld_shlibs_F77=no 14912 fi 14913 ;; 14914 14915 netbsd*) 14916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14917 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14918 wlarc= 14919 else 14920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14922 fi 14923 ;; 14924 14925 solaris*) 14926 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14927 ld_shlibs_F77=no 14928 cat <<EOF 1>&2 14929 14930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 14931 *** create shared libraries on Solaris systems. Therefore, libtool 14932 *** is disabling shared libraries support. We urge you to upgrade GNU 14933 *** binutils to release 2.9.1 or newer. Another option is to modify 14934 *** your PATH or compiler configuration so that the native linker is 14935 *** used, and then restart. 14936 14937 EOF 14938 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14939 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14940 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14941 else 14942 ld_shlibs_F77=no 14943 fi 14944 ;; 14945 14946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14947 case `$LD -v 2>&1` in 14948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14949 ld_shlibs_F77=no 14950 cat <<_LT_EOF 1>&2 14951 14952 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14953 *** reliably create shared libraries on SCO systems. Therefore, libtool 14954 *** is disabling shared libraries support. We urge you to upgrade GNU 14955 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14956 *** your PATH or compiler configuration so that the native linker is 14957 *** used, and then restart. 14958 14959 _LT_EOF 14960 ;; 14961 *) 14962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14963 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14964 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14965 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14966 else 14967 ld_shlibs_F77=no 14968 fi 14969 ;; 14970 esac 14971 ;; 14972 14973 sunos4*) 14974 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14975 wlarc= 14976 hardcode_direct_F77=yes 14977 hardcode_shlibpath_var_F77=no 14978 ;; 14979 14980 *) 14981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14982 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14983 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14984 else 14985 ld_shlibs_F77=no 14986 fi 14987 ;; 14988 esac 14989 14990 if test "$ld_shlibs_F77" = no; then 14991 runpath_var= 14992 hardcode_libdir_flag_spec_F77= 14993 export_dynamic_flag_spec_F77= 14994 whole_archive_flag_spec_F77= 14995 fi 14996 else 14997 # PORTME fill in a description of your system's linker (not GNU ld) 14998 case $host_os in 14999 aix3*) 15000 allow_undefined_flag_F77=unsupported 15001 always_export_symbols_F77=yes 15002 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' 15003 # Note: this linker hardcodes the directories in LIBPATH if there 15004 # are no directories specified by -L. 15005 hardcode_minus_L_F77=yes 15006 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15007 # Neither direct hardcoding nor static linking is supported with a 15008 # broken collect2. 15009 hardcode_direct_F77=unsupported 15010 fi 15011 ;; 15012 15013 aix4* | aix5*) 15014 if test "$host_cpu" = ia64; then 15015 # On IA64, the linker does run time linking by default, so we don't 15016 # have to do anything special. 15017 aix_use_runtimelinking=no 15018 exp_sym_flag='-Bexport' 15019 no_entry_flag="" 15020 else 15021 # If we're using GNU nm, then we don't want the "-C" option. 15022 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15023 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15024 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' 15025 else 15026 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' 15027 fi 15028 aix_use_runtimelinking=no 15029 15030 # Test if we are trying to use run time linking or normal 15031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15032 # need to do runtime linking. 15033 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15034 for ld_flag in $LDFLAGS; do 15035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15036 aix_use_runtimelinking=yes 15037 break 15038 fi 15039 done 15040 ;; 15041 esac 15042 15043 exp_sym_flag='-bexport' 15044 no_entry_flag='-bnoentry' 15045 fi 15046 15047 # When large executables or shared objects are built, AIX ld can 15048 # have problems creating the table of contents. If linking a library 15049 # or program results in "error TOC overflow" add -mminimal-toc to 15050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15052 15053 archive_cmds_F77='' 15054 hardcode_direct_F77=yes 15055 hardcode_libdir_separator_F77=':' 15056 link_all_deplibs_F77=yes 15057 15058 if test "$GCC" = yes; then 15059 case $host_os in aix4.[012]|aix4.[012].*) 15060 # We only want to do this on AIX 4.2 and lower, the check 15061 # below for broken collect2 doesn't work under 4.3+ 15062 collect2name=`${CC} -print-prog-name=collect2` 15063 if test -f "$collect2name" && \ 15064 strings "$collect2name" | grep resolve_lib_name >/dev/null 15065 then 15066 # We have reworked collect2 15067 : 15068 else 15069 # We have old collect2 15070 hardcode_direct_F77=unsupported 15071 # It fails to find uninstalled libraries when the uninstalled 15072 # path is not listed in the libpath. Setting hardcode_minus_L 15073 # to unsupported forces relinking 15074 hardcode_minus_L_F77=yes 15075 hardcode_libdir_flag_spec_F77='-L$libdir' 15076 hardcode_libdir_separator_F77= 15077 fi 15078 ;; 15079 esac 15080 shared_flag='-shared' 15081 if test "$aix_use_runtimelinking" = yes; then 15082 shared_flag="$shared_flag "'${wl}-G' 15083 fi 15084 else 15085 # not using gcc 15086 if test "$host_cpu" = ia64; then 15087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15088 # chokes on -Wl,-G. The following line is correct: 15089 shared_flag='-G' 15090 else 15091 if test "$aix_use_runtimelinking" = yes; then 15092 shared_flag='${wl}-G' 15093 else 15094 shared_flag='${wl}-bM:SRE' 15095 fi 15096 fi 15097 fi 15098 15099 # It seems that -bexpall does not export symbols beginning with 15100 # underscore (_), so it is better to generate a list of symbols to export. 15101 always_export_symbols_F77=yes 15102 if test "$aix_use_runtimelinking" = yes; then 15103 # Warning - without using the other runtime loading flags (-brtl), 15104 # -berok will link without error, but may produce a broken library. 15105 allow_undefined_flag_F77='-berok' 15106 # Determine the default libpath from the value encoded in an empty executable. 15107 cat >conftest.$ac_ext <<_ACEOF 15108 program main 15109 15110 end 15111 _ACEOF 15112 rm -f conftest.$ac_objext conftest$ac_exeext 15113 if { (ac_try="$ac_link" 15114 case "(($ac_try" in 15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15116 *) ac_try_echo=$ac_try;; 15117 esac 15118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15119 $as_echo "$ac_try_echo") >&5 15120 (eval "$ac_link") 2>conftest.er1 15121 ac_status=$? 15122 grep -v '^ *+' conftest.er1 >conftest.err 15123 rm -f conftest.er1 15124 cat conftest.err >&5 15125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15126 (exit $ac_status); } && { 15127 test -z "$ac_f77_werror_flag" || 15128 test ! -s conftest.err 15129 } && test -s conftest$ac_exeext && { 15130 test "$cross_compiling" = yes || 15131 $as_test_x conftest$ac_exeext 15132 }; then 15133 15134 lt_aix_libpath_sed=' 15135 /Import File Strings/,/^$/ { 15136 /^0/ { 15137 s/^0 *\(.*\)$/\1/ 15138 p 15139 } 15140 }' 15141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15142 # Check for a 64-bit object if we didn't find anything. 15143 if test -z "$aix_libpath"; then 15144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15145 fi 15146 else 15147 $as_echo "$as_me: failed program was:" >&5 15148 sed 's/^/| /' conftest.$ac_ext >&5 15149 15150 15151 fi 15152 15153 rm -rf conftest.dSYM 15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15155 conftest$ac_exeext conftest.$ac_ext 15156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15157 15158 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15159 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" 15160 else 15161 if test "$host_cpu" = ia64; then 15162 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15163 allow_undefined_flag_F77="-z nodefs" 15164 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" 15165 else 15166 # Determine the default libpath from the value encoded in an empty executable. 15167 cat >conftest.$ac_ext <<_ACEOF 15168 program main 15169 15170 end 15171 _ACEOF 15172 rm -f conftest.$ac_objext conftest$ac_exeext 15173 if { (ac_try="$ac_link" 15174 case "(($ac_try" in 15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15176 *) ac_try_echo=$ac_try;; 15177 esac 15178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15179 $as_echo "$ac_try_echo") >&5 15180 (eval "$ac_link") 2>conftest.er1 15181 ac_status=$? 15182 grep -v '^ *+' conftest.er1 >conftest.err 15183 rm -f conftest.er1 15184 cat conftest.err >&5 15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15186 (exit $ac_status); } && { 15187 test -z "$ac_f77_werror_flag" || 15188 test ! -s conftest.err 15189 } && test -s conftest$ac_exeext && { 15190 test "$cross_compiling" = yes || 15191 $as_test_x conftest$ac_exeext 15192 }; then 15193 15194 lt_aix_libpath_sed=' 15195 /Import File Strings/,/^$/ { 15196 /^0/ { 15197 s/^0 *\(.*\)$/\1/ 15198 p 15199 } 15200 }' 15201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15202 # Check for a 64-bit object if we didn't find anything. 15203 if test -z "$aix_libpath"; then 15204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15205 fi 15206 else 15207 $as_echo "$as_me: failed program was:" >&5 15208 sed 's/^/| /' conftest.$ac_ext >&5 15209 15210 15211 fi 15212 15213 rm -rf conftest.dSYM 15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15215 conftest$ac_exeext conftest.$ac_ext 15216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15217 15218 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15219 # Warning - without using the other run time loading flags, 15220 # -berok will link without error, but may produce a broken library. 15221 no_undefined_flag_F77=' ${wl}-bernotok' 15222 allow_undefined_flag_F77=' ${wl}-berok' 15223 # Exported symbols can be pulled into shared objects from archives 15224 whole_archive_flag_spec_F77='$convenience' 15225 archive_cmds_need_lc_F77=yes 15226 # This is similar to how AIX traditionally builds its shared libraries. 15227 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' 15228 fi 15229 fi 15230 ;; 15231 15232 amigaos*) 15233 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)' 15234 hardcode_libdir_flag_spec_F77='-L$libdir' 15235 hardcode_minus_L_F77=yes 15236 # see comment about different semantics on the GNU ld section 15237 ld_shlibs_F77=no 15238 ;; 15239 15240 bsdi[45]*) 15241 export_dynamic_flag_spec_F77=-rdynamic 15242 ;; 15243 15244 cygwin* | mingw* | pw32*) 15245 # When not using gcc, we currently assume that we are using 15246 # Microsoft Visual C++. 15247 # hardcode_libdir_flag_spec is actually meaningless, as there is 15248 # no search path for DLLs. 15249 hardcode_libdir_flag_spec_F77=' ' 15250 allow_undefined_flag_F77=unsupported 15251 # Tell ltmain to make .lib files, not .a files. 15252 libext=lib 15253 # Tell ltmain to make .dll files, not .so files. 15254 shrext_cmds=".dll" 15255 # FIXME: Setting linknames here is a bad hack. 15256 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15257 # The linker will automatically build a .lib file if we build a DLL. 15258 old_archive_From_new_cmds_F77='true' 15259 # FIXME: Should let the user specify the lib program. 15260 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15261 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15262 enable_shared_with_static_runtimes_F77=yes 15263 ;; 15264 15265 darwin* | rhapsody*) 15266 case $host_os in 15267 rhapsody* | darwin1.[012]) 15268 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15269 ;; 15270 *) # Darwin 1.3 on 15271 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15272 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15273 else 15274 case ${MACOSX_DEPLOYMENT_TARGET} in 15275 10.[012]) 15276 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15277 ;; 15278 10.*) 15279 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15280 ;; 15281 esac 15282 fi 15283 ;; 15284 esac 15285 archive_cmds_need_lc_F77=no 15286 hardcode_direct_F77=no 15287 hardcode_automatic_F77=yes 15288 hardcode_shlibpath_var_F77=unsupported 15289 whole_archive_flag_spec_F77='' 15290 link_all_deplibs_F77=yes 15291 if test "$GCC" = yes ; then 15292 output_verbose_link_cmd='echo' 15293 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15294 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15296 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}' 15297 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}' 15298 else 15299 case $cc_basename in 15300 xlc*) 15301 output_verbose_link_cmd='echo' 15302 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15303 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15305 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15306 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}' 15307 ;; 15308 *) 15309 ld_shlibs_F77=no 15310 ;; 15311 esac 15312 fi 15313 ;; 15314 15315 dgux*) 15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15317 hardcode_libdir_flag_spec_F77='-L$libdir' 15318 hardcode_shlibpath_var_F77=no 15319 ;; 15320 15321 freebsd1*) 15322 ld_shlibs_F77=no 15323 ;; 15324 15325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15326 # support. Future versions do this automatically, but an explicit c++rt0.o 15327 # does not break anything, and helps significantly (at the cost of a little 15328 # extra space). 15329 freebsd2.2*) 15330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15331 hardcode_libdir_flag_spec_F77='-R$libdir' 15332 hardcode_direct_F77=yes 15333 hardcode_shlibpath_var_F77=no 15334 ;; 15335 15336 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15337 freebsd2*) 15338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15339 hardcode_direct_F77=yes 15340 hardcode_minus_L_F77=yes 15341 hardcode_shlibpath_var_F77=no 15342 ;; 15343 15344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15345 freebsd* | dragonfly*) 15346 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15347 hardcode_libdir_flag_spec_F77='-R$libdir' 15348 hardcode_direct_F77=yes 15349 hardcode_shlibpath_var_F77=no 15350 ;; 15351 15352 hpux9*) 15353 if test "$GCC" = yes; then 15354 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' 15355 else 15356 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' 15357 fi 15358 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15359 hardcode_libdir_separator_F77=: 15360 hardcode_direct_F77=yes 15361 15362 # hardcode_minus_L: Not really in the search PATH, 15363 # but as the default location of the library. 15364 hardcode_minus_L_F77=yes 15365 export_dynamic_flag_spec_F77='${wl}-E' 15366 ;; 15367 15368 hpux10*) 15369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15370 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15371 else 15372 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15373 fi 15374 if test "$with_gnu_ld" = no; then 15375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15376 hardcode_libdir_separator_F77=: 15377 15378 hardcode_direct_F77=yes 15379 export_dynamic_flag_spec_F77='${wl}-E' 15380 15381 # hardcode_minus_L: Not really in the search PATH, 15382 # but as the default location of the library. 15383 hardcode_minus_L_F77=yes 15384 fi 15385 ;; 15386 15387 hpux11*) 15388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15389 case $host_cpu in 15390 hppa*64*) 15391 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15392 ;; 15393 ia64*) 15394 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15395 ;; 15396 *) 15397 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15398 ;; 15399 esac 15400 else 15401 case $host_cpu in 15402 hppa*64*) 15403 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15404 ;; 15405 ia64*) 15406 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15407 ;; 15408 *) 15409 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15410 ;; 15411 esac 15412 fi 15413 if test "$with_gnu_ld" = no; then 15414 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15415 hardcode_libdir_separator_F77=: 15416 15417 case $host_cpu in 15418 hppa*64*|ia64*) 15419 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15420 hardcode_direct_F77=no 15421 hardcode_shlibpath_var_F77=no 15422 ;; 15423 *) 15424 hardcode_direct_F77=yes 15425 export_dynamic_flag_spec_F77='${wl}-E' 15426 15427 # hardcode_minus_L: Not really in the search PATH, 15428 # but as the default location of the library. 15429 hardcode_minus_L_F77=yes 15430 ;; 15431 esac 15432 fi 15433 ;; 15434 15435 irix5* | irix6* | nonstopux*) 15436 if test "$GCC" = yes; then 15437 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' 15438 else 15439 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' 15440 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15441 fi 15442 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15443 hardcode_libdir_separator_F77=: 15444 link_all_deplibs_F77=yes 15445 ;; 15446 15447 netbsd*) 15448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15449 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15450 else 15451 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15452 fi 15453 hardcode_libdir_flag_spec_F77='-R$libdir' 15454 hardcode_direct_F77=yes 15455 hardcode_shlibpath_var_F77=no 15456 ;; 15457 15458 newsos6) 15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15460 hardcode_direct_F77=yes 15461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15462 hardcode_libdir_separator_F77=: 15463 hardcode_shlibpath_var_F77=no 15464 ;; 15465 15466 openbsd*) 15467 if test -f /usr/libexec/ld.so; then 15468 hardcode_direct_F77=yes 15469 hardcode_shlibpath_var_F77=no 15470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15471 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15472 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15473 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15474 export_dynamic_flag_spec_F77='${wl}-E' 15475 else 15476 case $host_os in 15477 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15478 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15479 hardcode_libdir_flag_spec_F77='-R$libdir' 15480 ;; 15481 *) 15482 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15483 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15484 ;; 15485 esac 15486 fi 15487 else 15488 ld_shlibs_F77=no 15489 fi 15490 ;; 15491 15492 os2*) 15493 hardcode_libdir_flag_spec_F77='-L$libdir' 15494 hardcode_minus_L_F77=yes 15495 allow_undefined_flag_F77=unsupported 15496 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' 15497 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15498 ;; 15499 15500 osf3*) 15501 if test "$GCC" = yes; then 15502 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15503 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' 15504 else 15505 allow_undefined_flag_F77=' -expect_unresolved \*' 15506 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' 15507 fi 15508 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15509 hardcode_libdir_separator_F77=: 15510 ;; 15511 15512 osf4* | osf5*) # as osf3* with the addition of -msym flag 15513 if test "$GCC" = yes; then 15514 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15515 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' 15516 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15517 else 15518 allow_undefined_flag_F77=' -expect_unresolved \*' 15519 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' 15520 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~ 15521 $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' 15522 15523 # Both c and cxx compiler support -rpath directly 15524 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15525 fi 15526 hardcode_libdir_separator_F77=: 15527 ;; 15528 15529 solaris*) 15530 no_undefined_flag_F77=' -z text' 15531 if test "$GCC" = yes; then 15532 wlarc='${wl}' 15533 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15534 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15535 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15536 else 15537 wlarc='' 15538 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15539 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15541 fi 15542 hardcode_libdir_flag_spec_F77='-R$libdir' 15543 hardcode_shlibpath_var_F77=no 15544 case $host_os in 15545 solaris2.[0-5] | solaris2.[0-5].*) ;; 15546 *) 15547 # The compiler driver will combine and reorder linker options, 15548 # but understands `-z linker_flag'. GCC discards it without `$wl', 15549 # but is careful enough not to reorder. 15550 # Supported since Solaris 2.6 (maybe 2.5.1?) 15551 if test "$GCC" = yes; then 15552 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15553 else 15554 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15555 fi 15556 ;; 15557 esac 15558 link_all_deplibs_F77=yes 15559 ;; 15560 15561 sunos4*) 15562 if test "x$host_vendor" = xsequent; then 15563 # Use $CC to link under sequent, because it throws in some extra .o 15564 # files that make .init and .fini sections work. 15565 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15566 else 15567 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15568 fi 15569 hardcode_libdir_flag_spec_F77='-L$libdir' 15570 hardcode_direct_F77=yes 15571 hardcode_minus_L_F77=yes 15572 hardcode_shlibpath_var_F77=no 15573 ;; 15574 15575 sysv4) 15576 case $host_vendor in 15577 sni) 15578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15579 hardcode_direct_F77=yes # is this really true??? 15580 ;; 15581 siemens) 15582 ## LD is ld it makes a PLAMLIB 15583 ## CC just makes a GrossModule. 15584 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15585 reload_cmds_F77='$CC -r -o $output$reload_objs' 15586 hardcode_direct_F77=no 15587 ;; 15588 motorola) 15589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15590 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15591 ;; 15592 esac 15593 runpath_var='LD_RUN_PATH' 15594 hardcode_shlibpath_var_F77=no 15595 ;; 15596 15597 sysv4.3*) 15598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15599 hardcode_shlibpath_var_F77=no 15600 export_dynamic_flag_spec_F77='-Bexport' 15601 ;; 15602 15603 sysv4*MP*) 15604 if test -d /usr/nec; then 15605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15606 hardcode_shlibpath_var_F77=no 15607 runpath_var=LD_RUN_PATH 15608 hardcode_runpath_var=yes 15609 ld_shlibs_F77=yes 15610 fi 15611 ;; 15612 15613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15614 no_undefined_flag_F77='${wl}-z,text' 15615 archive_cmds_need_lc_F77=no 15616 hardcode_shlibpath_var_F77=no 15617 runpath_var='LD_RUN_PATH' 15618 15619 if test "$GCC" = yes; then 15620 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15621 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15622 else 15623 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15624 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15625 fi 15626 ;; 15627 15628 sysv5* | sco3.2v5* | sco5v6*) 15629 # Note: We can NOT use -z defs as we might desire, because we do not 15630 # link with -lc, and that would cause any symbols used from libc to 15631 # always be unresolved, which means just about no library would 15632 # ever link correctly. If we're not using GNU ld we use -z text 15633 # though, which does catch some bad symbols but isn't as heavy-handed 15634 # as -z defs. 15635 no_undefined_flag_F77='${wl}-z,text' 15636 allow_undefined_flag_F77='${wl}-z,nodefs' 15637 archive_cmds_need_lc_F77=no 15638 hardcode_shlibpath_var_F77=no 15639 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15640 hardcode_libdir_separator_F77=':' 15641 link_all_deplibs_F77=yes 15642 export_dynamic_flag_spec_F77='${wl}-Bexport' 15643 runpath_var='LD_RUN_PATH' 15644 15645 if test "$GCC" = yes; then 15646 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15647 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15648 else 15649 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15650 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15651 fi 15652 ;; 15653 15654 uts4*) 15655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15656 hardcode_libdir_flag_spec_F77='-L$libdir' 15657 hardcode_shlibpath_var_F77=no 15658 ;; 15659 15660 *) 15661 ld_shlibs_F77=no 15662 ;; 15663 esac 15664 fi 15665 15666 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15667 $as_echo "$ld_shlibs_F77" >&6; } 15668 test "$ld_shlibs_F77" = no && can_build_shared=no 15669 15670 # 15671 # Do we need to explicitly link libc? 15672 # 15673 case "x$archive_cmds_need_lc_F77" in 15674 x|xyes) 15675 # Assume -lc should be added 15676 archive_cmds_need_lc_F77=yes 15677 15678 if test "$enable_shared" = yes && test "$GCC" = yes; then 15679 case $archive_cmds_F77 in 15680 *'~'*) 15681 # FIXME: we may have to deal with multi-command sequences. 15682 ;; 15683 '$CC '*) 15684 # Test whether the compiler implicitly links with -lc since on some 15685 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15686 # to ld, don't add -lc before -lgcc. 15687 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15689 $rm conftest* 15690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15691 15692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15693 (eval $ac_compile) 2>&5 15694 ac_status=$? 15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15696 (exit $ac_status); } 2>conftest.err; then 15697 soname=conftest 15698 lib=conftest 15699 libobjs=conftest.$ac_objext 15700 deplibs= 15701 wl=$lt_prog_compiler_wl_F77 15702 pic_flag=$lt_prog_compiler_pic_F77 15703 compiler_flags=-v 15704 linker_flags=-v 15705 verstring= 15706 output_objdir=. 15707 libname=conftest 15708 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15709 allow_undefined_flag_F77= 15710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15711 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15712 ac_status=$? 15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15714 (exit $ac_status); } 15715 then 15716 archive_cmds_need_lc_F77=no 15717 else 15718 archive_cmds_need_lc_F77=yes 15719 fi 15720 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15721 else 15722 cat conftest.err 1>&5 15723 fi 15724 $rm conftest* 15725 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15726 $as_echo "$archive_cmds_need_lc_F77" >&6; } 15727 ;; 15728 esac 15729 fi 15730 ;; 15731 esac 15732 15733 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15734 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15735 library_names_spec= 15736 libname_spec='lib$name' 15737 soname_spec= 15738 shrext_cmds=".so" 15739 postinstall_cmds= 15740 postuninstall_cmds= 15741 finish_cmds= 15742 finish_eval= 15743 shlibpath_var= 15744 shlibpath_overrides_runpath=unknown 15745 version_type=none 15746 dynamic_linker="$host_os ld.so" 15747 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15748 15749 need_lib_prefix=unknown 15750 hardcode_into_libs=no 15751 15752 # when you set need_version to no, make sure it does not cause -set_version 15753 # flags to be left without arguments 15754 need_version=unknown 15755 15756 case $host_os in 15757 aix3*) 15758 version_type=linux 15759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15760 shlibpath_var=LIBPATH 15761 15762 # AIX 3 has no versioning support, so we append a major version to the name. 15763 soname_spec='${libname}${release}${shared_ext}$major' 15764 ;; 15765 15766 aix4* | aix5*) 15767 version_type=linux 15768 need_lib_prefix=no 15769 need_version=no 15770 hardcode_into_libs=yes 15771 if test "$host_cpu" = ia64; then 15772 # AIX 5 supports IA64 15773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15774 shlibpath_var=LD_LIBRARY_PATH 15775 else 15776 # With GCC up to 2.95.x, collect2 would create an import file 15777 # for dependence libraries. The import file would start with 15778 # the line `#! .'. This would cause the generated library to 15779 # depend on `.', always an invalid library. This was fixed in 15780 # development snapshots of GCC prior to 3.0. 15781 case $host_os in 15782 aix4 | aix4.[01] | aix4.[01].*) 15783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15784 echo ' yes ' 15785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15786 : 15787 else 15788 can_build_shared=no 15789 fi 15790 ;; 15791 esac 15792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15793 # soname into executable. Probably we can add versioning support to 15794 # collect2, so additional links can be useful in future. 15795 if test "$aix_use_runtimelinking" = yes; then 15796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15797 # instead of lib<name>.a to let people know that these are not 15798 # typical AIX shared libraries. 15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15800 else 15801 # We preserve .a as extension for shared libraries through AIX4.2 15802 # and later when we are not doing run time linking. 15803 library_names_spec='${libname}${release}.a $libname.a' 15804 soname_spec='${libname}${release}${shared_ext}$major' 15805 fi 15806 shlibpath_var=LIBPATH 15807 fi 15808 ;; 15809 15810 amigaos*) 15811 library_names_spec='$libname.ixlibrary $libname.a' 15812 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15813 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' 15814 ;; 15815 15816 beos*) 15817 library_names_spec='${libname}${shared_ext}' 15818 dynamic_linker="$host_os ld.so" 15819 shlibpath_var=LIBRARY_PATH 15820 ;; 15821 15822 bsdi[45]*) 15823 version_type=linux 15824 need_version=no 15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15826 soname_spec='${libname}${release}${shared_ext}$major' 15827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15828 shlibpath_var=LD_LIBRARY_PATH 15829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15831 # the default ld.so.conf also contains /usr/contrib/lib and 15832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15833 # libtool to hard-code these into programs 15834 ;; 15835 15836 cygwin* | mingw* | pw32*) 15837 version_type=windows 15838 shrext_cmds=".dll" 15839 need_version=no 15840 need_lib_prefix=no 15841 15842 case $GCC,$host_os in 15843 yes,cygwin* | yes,mingw* | yes,pw32*) 15844 library_names_spec='$libname.dll.a' 15845 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15846 postinstall_cmds='base_file=`basename \${file}`~ 15847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15848 dldir=$destdir/`dirname \$dlpath`~ 15849 test -d \$dldir || mkdir -p \$dldir~ 15850 $install_prog $dir/$dlname \$dldir/$dlname~ 15851 chmod a+x \$dldir/$dlname' 15852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15853 dlpath=$dir/\$dldll~ 15854 $rm \$dlpath' 15855 shlibpath_overrides_runpath=yes 15856 15857 case $host_os in 15858 cygwin*) 15859 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15862 ;; 15863 mingw*) 15864 # MinGW DLLs use traditional 'lib' prefix 15865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15868 # It is most probably a Windows format PATH printed by 15869 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15870 # path with ; separators, and with drive letters. We can handle the 15871 # drive letters (cygwin fileutils understands them), so leave them, 15872 # especially as we might pass files found there to a mingw objdump, 15873 # which wouldn't understand a cygwinified path. Ahh. 15874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15875 else 15876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15877 fi 15878 ;; 15879 pw32*) 15880 # pw32 DLLs use 'pw' prefix rather than 'lib' 15881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15882 ;; 15883 esac 15884 ;; 15885 15886 *) 15887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15888 ;; 15889 esac 15890 dynamic_linker='Win32 ld.exe' 15891 # FIXME: first we should search . and the directory the executable is in 15892 shlibpath_var=PATH 15893 ;; 15894 15895 darwin* | rhapsody*) 15896 dynamic_linker="$host_os dyld" 15897 version_type=darwin 15898 need_lib_prefix=no 15899 need_version=no 15900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15901 soname_spec='${libname}${release}${major}$shared_ext' 15902 shlibpath_overrides_runpath=yes 15903 shlibpath_var=DYLD_LIBRARY_PATH 15904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15905 15906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15907 ;; 15908 15909 dgux*) 15910 version_type=linux 15911 need_lib_prefix=no 15912 need_version=no 15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15914 soname_spec='${libname}${release}${shared_ext}$major' 15915 shlibpath_var=LD_LIBRARY_PATH 15916 ;; 15917 15918 freebsd1*) 15919 dynamic_linker=no 15920 ;; 15921 15922 freebsd* | dragonfly*) 15923 # DragonFly does not have aout. When/if they implement a new 15924 # versioning mechanism, adjust this. 15925 if test -x /usr/bin/objformat; then 15926 objformat=`/usr/bin/objformat` 15927 else 15928 case $host_os in 15929 freebsd[123]*) objformat=aout ;; 15930 *) objformat=elf ;; 15931 esac 15932 fi 15933 version_type=freebsd-$objformat 15934 case $version_type in 15935 freebsd-elf*) 15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15937 need_version=no 15938 need_lib_prefix=no 15939 ;; 15940 freebsd-*) 15941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15942 need_version=yes 15943 ;; 15944 esac 15945 shlibpath_var=LD_LIBRARY_PATH 15946 case $host_os in 15947 freebsd2*) 15948 shlibpath_overrides_runpath=yes 15949 ;; 15950 freebsd3.[01]* | freebsdelf3.[01]*) 15951 shlibpath_overrides_runpath=yes 15952 hardcode_into_libs=yes 15953 ;; 15954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15956 shlibpath_overrides_runpath=no 15957 hardcode_into_libs=yes 15958 ;; 15959 *) # from 4.6 on, and DragonFly 15960 shlibpath_overrides_runpath=yes 15961 hardcode_into_libs=yes 15962 ;; 15963 esac 15964 ;; 15965 15966 gnu*) 15967 version_type=linux 15968 need_lib_prefix=no 15969 need_version=no 15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15971 soname_spec='${libname}${release}${shared_ext}$major' 15972 shlibpath_var=LD_LIBRARY_PATH 15973 hardcode_into_libs=yes 15974 ;; 15975 15976 hpux9* | hpux10* | hpux11*) 15977 # Give a soname corresponding to the major version so that dld.sl refuses to 15978 # link against other versions. 15979 version_type=sunos 15980 need_lib_prefix=no 15981 need_version=no 15982 case $host_cpu in 15983 ia64*) 15984 shrext_cmds='.so' 15985 hardcode_into_libs=yes 15986 dynamic_linker="$host_os dld.so" 15987 shlibpath_var=LD_LIBRARY_PATH 15988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15990 soname_spec='${libname}${release}${shared_ext}$major' 15991 if test "X$HPUX_IA64_MODE" = X32; then 15992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15993 else 15994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15995 fi 15996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15997 ;; 15998 hppa*64*) 15999 shrext_cmds='.sl' 16000 hardcode_into_libs=yes 16001 dynamic_linker="$host_os dld.sl" 16002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16005 soname_spec='${libname}${release}${shared_ext}$major' 16006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16008 ;; 16009 *) 16010 shrext_cmds='.sl' 16011 dynamic_linker="$host_os dld.sl" 16012 shlibpath_var=SHLIB_PATH 16013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16015 soname_spec='${libname}${release}${shared_ext}$major' 16016 ;; 16017 esac 16018 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16019 postinstall_cmds='chmod 555 $lib' 16020 ;; 16021 16022 interix[3-9]*) 16023 version_type=linux 16024 need_lib_prefix=no 16025 need_version=no 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16027 soname_spec='${libname}${release}${shared_ext}$major' 16028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16029 shlibpath_var=LD_LIBRARY_PATH 16030 shlibpath_overrides_runpath=no 16031 hardcode_into_libs=yes 16032 ;; 16033 16034 irix5* | irix6* | nonstopux*) 16035 case $host_os in 16036 nonstopux*) version_type=nonstopux ;; 16037 *) 16038 if test "$lt_cv_prog_gnu_ld" = yes; then 16039 version_type=linux 16040 else 16041 version_type=irix 16042 fi ;; 16043 esac 16044 need_lib_prefix=no 16045 need_version=no 16046 soname_spec='${libname}${release}${shared_ext}$major' 16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16048 case $host_os in 16049 irix5* | nonstopux*) 16050 libsuff= shlibsuff= 16051 ;; 16052 *) 16053 case $LD in # libtool.m4 will add one of these switches to LD 16054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16055 libsuff= shlibsuff= libmagic=32-bit;; 16056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16057 libsuff=32 shlibsuff=N32 libmagic=N32;; 16058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16059 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16060 *) libsuff= shlibsuff= libmagic=never-match;; 16061 esac 16062 ;; 16063 esac 16064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16065 shlibpath_overrides_runpath=no 16066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16068 hardcode_into_libs=yes 16069 ;; 16070 16071 # No shared lib support for Linux oldld, aout, or coff. 16072 linux*oldld* | linux*aout* | linux*coff*) 16073 dynamic_linker=no 16074 ;; 16075 16076 # This must be Linux ELF. 16077 linux* | k*bsd*-gnu) 16078 version_type=linux 16079 need_lib_prefix=no 16080 need_version=no 16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16082 soname_spec='${libname}${release}${shared_ext}$major' 16083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16084 shlibpath_var=LD_LIBRARY_PATH 16085 shlibpath_overrides_runpath=no 16086 # This implies no fast_install, which is unacceptable. 16087 # Some rework will be needed to allow for fast_install 16088 # before this can be enabled. 16089 hardcode_into_libs=yes 16090 16091 # Append ld.so.conf contents to the search path 16092 if test -f /etc/ld.so.conf; then 16093 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16095 fi 16096 16097 # We used to test for /lib/ld.so.1 and disable shared libraries on 16098 # powerpc, because MkLinux only supported shared libraries with the 16099 # GNU dynamic linker. Since this was broken with cross compilers, 16100 # most powerpc-linux boxes support dynamic linking these days and 16101 # people can always --disable-shared, the test was removed, and we 16102 # assume the GNU/Linux dynamic linker is in use. 16103 dynamic_linker='GNU/Linux ld.so' 16104 ;; 16105 16106 netbsd*) 16107 version_type=sunos 16108 need_lib_prefix=no 16109 need_version=no 16110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16113 dynamic_linker='NetBSD (a.out) ld.so' 16114 else 16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16116 soname_spec='${libname}${release}${shared_ext}$major' 16117 dynamic_linker='NetBSD ld.elf_so' 16118 fi 16119 shlibpath_var=LD_LIBRARY_PATH 16120 shlibpath_overrides_runpath=yes 16121 hardcode_into_libs=yes 16122 ;; 16123 16124 newsos6) 16125 version_type=linux 16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 shlibpath_overrides_runpath=yes 16129 ;; 16130 16131 nto-qnx*) 16132 version_type=linux 16133 need_lib_prefix=no 16134 need_version=no 16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16136 soname_spec='${libname}${release}${shared_ext}$major' 16137 shlibpath_var=LD_LIBRARY_PATH 16138 shlibpath_overrides_runpath=yes 16139 ;; 16140 16141 openbsd*) 16142 version_type=sunos 16143 sys_lib_dlsearch_path_spec="/usr/lib" 16144 need_lib_prefix=no 16145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16146 case $host_os in 16147 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16148 *) need_version=no ;; 16149 esac 16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16152 shlibpath_var=LD_LIBRARY_PATH 16153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16154 case $host_os in 16155 openbsd2.[89] | openbsd2.[89].*) 16156 shlibpath_overrides_runpath=no 16157 ;; 16158 *) 16159 shlibpath_overrides_runpath=yes 16160 ;; 16161 esac 16162 else 16163 shlibpath_overrides_runpath=yes 16164 fi 16165 ;; 16166 16167 os2*) 16168 libname_spec='$name' 16169 shrext_cmds=".dll" 16170 need_lib_prefix=no 16171 library_names_spec='$libname${shared_ext} $libname.a' 16172 dynamic_linker='OS/2 ld.exe' 16173 shlibpath_var=LIBPATH 16174 ;; 16175 16176 osf3* | osf4* | osf5*) 16177 version_type=osf 16178 need_lib_prefix=no 16179 need_version=no 16180 soname_spec='${libname}${release}${shared_ext}$major' 16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16182 shlibpath_var=LD_LIBRARY_PATH 16183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16185 ;; 16186 16187 rdos*) 16188 dynamic_linker=no 16189 ;; 16190 16191 solaris*) 16192 version_type=linux 16193 need_lib_prefix=no 16194 need_version=no 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16196 soname_spec='${libname}${release}${shared_ext}$major' 16197 shlibpath_var=LD_LIBRARY_PATH 16198 shlibpath_overrides_runpath=yes 16199 hardcode_into_libs=yes 16200 # ldd complains unless libraries are executable 16201 postinstall_cmds='chmod +x $lib' 16202 ;; 16203 16204 sunos4*) 16205 version_type=sunos 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16208 shlibpath_var=LD_LIBRARY_PATH 16209 shlibpath_overrides_runpath=yes 16210 if test "$with_gnu_ld" = yes; then 16211 need_lib_prefix=no 16212 fi 16213 need_version=yes 16214 ;; 16215 16216 sysv4 | sysv4.3*) 16217 version_type=linux 16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16219 soname_spec='${libname}${release}${shared_ext}$major' 16220 shlibpath_var=LD_LIBRARY_PATH 16221 case $host_vendor in 16222 sni) 16223 shlibpath_overrides_runpath=no 16224 need_lib_prefix=no 16225 export_dynamic_flag_spec='${wl}-Blargedynsym' 16226 runpath_var=LD_RUN_PATH 16227 ;; 16228 siemens) 16229 need_lib_prefix=no 16230 ;; 16231 motorola) 16232 need_lib_prefix=no 16233 need_version=no 16234 shlibpath_overrides_runpath=no 16235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16236 ;; 16237 esac 16238 ;; 16239 16240 sysv4*MP*) 16241 if test -d /usr/nec ;then 16242 version_type=linux 16243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16244 soname_spec='$libname${shared_ext}.$major' 16245 shlibpath_var=LD_LIBRARY_PATH 16246 fi 16247 ;; 16248 16249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16250 version_type=freebsd-elf 16251 need_lib_prefix=no 16252 need_version=no 16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16254 soname_spec='${libname}${release}${shared_ext}$major' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 hardcode_into_libs=yes 16257 if test "$with_gnu_ld" = yes; then 16258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16259 shlibpath_overrides_runpath=no 16260 else 16261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16262 shlibpath_overrides_runpath=yes 16263 case $host_os in 16264 sco3.2v5*) 16265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16266 ;; 16267 esac 16268 fi 16269 sys_lib_dlsearch_path_spec='/usr/lib' 16270 ;; 16271 16272 uts4*) 16273 version_type=linux 16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16275 soname_spec='${libname}${release}${shared_ext}$major' 16276 shlibpath_var=LD_LIBRARY_PATH 16277 ;; 16278 16279 *) 16280 dynamic_linker=no 16281 ;; 16282 esac 16283 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16284 $as_echo "$dynamic_linker" >&6; } 16285 test "$dynamic_linker" = no && can_build_shared=no 16286 16287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16288 if test "$GCC" = yes; then 16289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16290 fi 16291 16292 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16294 hardcode_action_F77= 16295 if test -n "$hardcode_libdir_flag_spec_F77" || \ 16296 test -n "$runpath_var_F77" || \ 16297 test "X$hardcode_automatic_F77" = "Xyes" ; then 16298 16299 # We can hardcode non-existant directories. 16300 if test "$hardcode_direct_F77" != no && 16301 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16302 # have to relink, otherwise we might link with an installed library 16303 # when we should be linking with a yet-to-be-installed one 16304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16305 test "$hardcode_minus_L_F77" != no; then 16306 # Linking always hardcodes the temporary library directory. 16307 hardcode_action_F77=relink 16308 else 16309 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16310 hardcode_action_F77=immediate 16311 fi 16312 else 16313 # We cannot hardcode anything, or else we can only hardcode existing 16314 # directories. 16315 hardcode_action_F77=unsupported 16316 fi 16317 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16318 $as_echo "$hardcode_action_F77" >&6; } 16319 16320 if test "$hardcode_action_F77" = relink; then 16321 # Fast installation is not supported 16322 enable_fast_install=no 16323 elif test "$shlibpath_overrides_runpath" = yes || 16324 test "$enable_shared" = no; then 16325 # Fast installation is not necessary 16326 enable_fast_install=needless 16327 fi 16328 16329 16330 # The else clause should only fire when bootstrapping the 16331 # libtool distribution, otherwise you forgot to ship ltmain.sh 16332 # with your package, and you will get complaints that there are 16333 # no rules to generate ltmain.sh. 16334 if test -f "$ltmain"; then 16335 # See if we are running on zsh, and set the options which allow our commands through 16336 # without removal of \ escapes. 16337 if test -n "${ZSH_VERSION+set}" ; then 16338 setopt NO_GLOB_SUBST 16339 fi 16340 # Now quote all the things that may contain metacharacters while being 16341 # careful not to overquote the AC_SUBSTed values. We take copies of the 16342 # variables and quote the copies for generation of the libtool script. 16343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16344 SED SHELL STRIP \ 16345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16347 deplibs_check_method reload_flag reload_cmds need_locks \ 16348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16349 lt_cv_sys_global_symbol_to_c_name_address \ 16350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16351 old_postinstall_cmds old_postuninstall_cmds \ 16352 compiler_F77 \ 16353 CC_F77 \ 16354 LD_F77 \ 16355 lt_prog_compiler_wl_F77 \ 16356 lt_prog_compiler_pic_F77 \ 16357 lt_prog_compiler_static_F77 \ 16358 lt_prog_compiler_no_builtin_flag_F77 \ 16359 export_dynamic_flag_spec_F77 \ 16360 thread_safe_flag_spec_F77 \ 16361 whole_archive_flag_spec_F77 \ 16362 enable_shared_with_static_runtimes_F77 \ 16363 old_archive_cmds_F77 \ 16364 old_archive_from_new_cmds_F77 \ 16365 predep_objects_F77 \ 16366 postdep_objects_F77 \ 16367 predeps_F77 \ 16368 postdeps_F77 \ 16369 compiler_lib_search_path_F77 \ 16370 archive_cmds_F77 \ 16371 archive_expsym_cmds_F77 \ 16372 postinstall_cmds_F77 \ 16373 postuninstall_cmds_F77 \ 16374 old_archive_from_expsyms_cmds_F77 \ 16375 allow_undefined_flag_F77 \ 16376 no_undefined_flag_F77 \ 16377 export_symbols_cmds_F77 \ 16378 hardcode_libdir_flag_spec_F77 \ 16379 hardcode_libdir_flag_spec_ld_F77 \ 16380 hardcode_libdir_separator_F77 \ 16381 hardcode_automatic_F77 \ 16382 module_cmds_F77 \ 16383 module_expsym_cmds_F77 \ 16384 lt_cv_prog_compiler_c_o_F77 \ 16385 fix_srcfile_path_F77 \ 16386 exclude_expsyms_F77 \ 16387 include_expsyms_F77; do 16388 16389 case $var in 16390 old_archive_cmds_F77 | \ 16391 old_archive_from_new_cmds_F77 | \ 16392 archive_cmds_F77 | \ 16393 archive_expsym_cmds_F77 | \ 16394 module_cmds_F77 | \ 16395 module_expsym_cmds_F77 | \ 16396 old_archive_from_expsyms_cmds_F77 | \ 16397 export_symbols_cmds_F77 | \ 16398 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16399 postinstall_cmds | postuninstall_cmds | \ 16400 old_postinstall_cmds | old_postuninstall_cmds | \ 16401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16402 # Double-quote double-evaled strings. 16403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16404 ;; 16405 *) 16406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16407 ;; 16408 esac 16409 done 16410 16411 case $lt_echo in 16412 *'\$0 --fallback-echo"') 16413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16414 ;; 16415 esac 16416 16417 cfgfile="$ofile" 16418 16419 cat <<__EOF__ >> "$cfgfile" 16420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 16421 16422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16423 16424 # Shell to use when invoking shell scripts. 16425 SHELL=$lt_SHELL 16426 16427 # Whether or not to build shared libraries. 16428 build_libtool_libs=$enable_shared 16429 16430 # Whether or not to build static libraries. 16431 build_old_libs=$enable_static 16432 16433 # Whether or not to add -lc for building shared libraries. 16434 build_libtool_need_lc=$archive_cmds_need_lc_F77 16435 16436 # Whether or not to disallow shared libs when runtime libs are static 16437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16438 16439 # Whether or not to optimize for fast installation. 16440 fast_install=$enable_fast_install 16441 16442 # The host system. 16443 host_alias=$host_alias 16444 host=$host 16445 host_os=$host_os 16446 16447 # The build system. 16448 build_alias=$build_alias 16449 build=$build 16450 build_os=$build_os 16451 16452 # An echo program that does not interpret backslashes. 16453 echo=$lt_echo 16454 16455 # The archiver. 16456 AR=$lt_AR 16457 AR_FLAGS=$lt_AR_FLAGS 16458 16459 # A C compiler. 16460 LTCC=$lt_LTCC 16461 16462 # LTCC compiler flags. 16463 LTCFLAGS=$lt_LTCFLAGS 16464 16465 # A language-specific compiler. 16466 CC=$lt_compiler_F77 16467 16468 # Is the compiler the GNU C compiler? 16469 with_gcc=$GCC_F77 16470 16471 # An ERE matcher. 16472 EGREP=$lt_EGREP 16473 16474 # The linker used to build libraries. 16475 LD=$lt_LD_F77 16476 16477 # Whether we need hard or soft links. 16478 LN_S=$lt_LN_S 16479 16480 # A BSD-compatible nm program. 16481 NM=$lt_NM 16482 16483 # A symbol stripping program 16484 STRIP=$lt_STRIP 16485 16486 # Used to examine libraries when file_magic_cmd begins "file" 16487 MAGIC_CMD=$MAGIC_CMD 16488 16489 # Used on cygwin: DLL creation program. 16490 DLLTOOL="$DLLTOOL" 16491 16492 # Used on cygwin: object dumper. 16493 OBJDUMP="$OBJDUMP" 16494 16495 # Used on cygwin: assembler. 16496 AS="$AS" 16497 16498 # The name of the directory that contains temporary libtool files. 16499 objdir=$objdir 16500 16501 # How to create reloadable object files. 16502 reload_flag=$lt_reload_flag 16503 reload_cmds=$lt_reload_cmds 16504 16505 # How to pass a linker flag through the compiler. 16506 wl=$lt_lt_prog_compiler_wl_F77 16507 16508 # Object file suffix (normally "o"). 16509 objext="$ac_objext" 16510 16511 # Old archive suffix (normally "a"). 16512 libext="$libext" 16513 16514 # Shared library suffix (normally ".so"). 16515 shrext_cmds='$shrext_cmds' 16516 16517 # Executable file suffix (normally ""). 16518 exeext="$exeext" 16519 16520 # Additional compiler flags for building library objects. 16521 pic_flag=$lt_lt_prog_compiler_pic_F77 16522 pic_mode=$pic_mode 16523 16524 # What is the maximum length of a command? 16525 max_cmd_len=$lt_cv_sys_max_cmd_len 16526 16527 # Does compiler simultaneously support -c and -o options? 16528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16529 16530 # Must we lock files when doing compilation? 16531 need_locks=$lt_need_locks 16532 16533 # Do we need the lib prefix for modules? 16534 need_lib_prefix=$need_lib_prefix 16535 16536 # Do we need a version for libraries? 16537 need_version=$need_version 16538 16539 # Whether dlopen is supported. 16540 dlopen_support=$enable_dlopen 16541 16542 # Whether dlopen of programs is supported. 16543 dlopen_self=$enable_dlopen_self 16544 16545 # Whether dlopen of statically linked programs is supported. 16546 dlopen_self_static=$enable_dlopen_self_static 16547 16548 # Compiler flag to prevent dynamic linking. 16549 link_static_flag=$lt_lt_prog_compiler_static_F77 16550 16551 # Compiler flag to turn off builtin functions. 16552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16553 16554 # Compiler flag to allow reflexive dlopens. 16555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16556 16557 # Compiler flag to generate shared objects directly from archives. 16558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16559 16560 # Compiler flag to generate thread-safe objects. 16561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16562 16563 # Library versioning type. 16564 version_type=$version_type 16565 16566 # Format of library name prefix. 16567 libname_spec=$lt_libname_spec 16568 16569 # List of archive names. First name is the real one, the rest are links. 16570 # The last name is the one that the linker finds with -lNAME. 16571 library_names_spec=$lt_library_names_spec 16572 16573 # The coded name of the library, if different from the real name. 16574 soname_spec=$lt_soname_spec 16575 16576 # Commands used to build and install an old-style archive. 16577 RANLIB=$lt_RANLIB 16578 old_archive_cmds=$lt_old_archive_cmds_F77 16579 old_postinstall_cmds=$lt_old_postinstall_cmds 16580 old_postuninstall_cmds=$lt_old_postuninstall_cmds 16581 16582 # Create an old-style archive from a shared archive. 16583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16584 16585 # Create a temporary old-style archive to link instead of a shared archive. 16586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16587 16588 # Commands used to build and install a shared archive. 16589 archive_cmds=$lt_archive_cmds_F77 16590 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16591 postinstall_cmds=$lt_postinstall_cmds 16592 postuninstall_cmds=$lt_postuninstall_cmds 16593 16594 # Commands used to build a loadable module (assumed same as above if empty) 16595 module_cmds=$lt_module_cmds_F77 16596 module_expsym_cmds=$lt_module_expsym_cmds_F77 16597 16598 # Commands to strip libraries. 16599 old_striplib=$lt_old_striplib 16600 striplib=$lt_striplib 16601 16602 # Dependencies to place before the objects being linked to create a 16603 # shared library. 16604 predep_objects=$lt_predep_objects_F77 16605 16606 # Dependencies to place after the objects being linked to create a 16607 # shared library. 16608 postdep_objects=$lt_postdep_objects_F77 16609 16610 # Dependencies to place before the objects being linked to create a 16611 # shared library. 16612 predeps=$lt_predeps_F77 16613 16614 # Dependencies to place after the objects being linked to create a 16615 # shared library. 16616 postdeps=$lt_postdeps_F77 16617 16618 # The library search path used internally by the compiler when linking 16619 # a shared library. 16620 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16621 16622 # Method to check whether dependent libraries are shared objects. 16623 deplibs_check_method=$lt_deplibs_check_method 16624 16625 # Command to use when deplibs_check_method == file_magic. 16626 file_magic_cmd=$lt_file_magic_cmd 16627 16628 # Flag that allows shared libraries with undefined symbols to be built. 16629 allow_undefined_flag=$lt_allow_undefined_flag_F77 16630 16631 # Flag that forces no undefined symbols. 16632 no_undefined_flag=$lt_no_undefined_flag_F77 16633 16634 # Commands used to finish a libtool library installation in a directory. 16635 finish_cmds=$lt_finish_cmds 16636 16637 # Same as above, but a single script fragment to be evaled but not shown. 16638 finish_eval=$lt_finish_eval 16639 16640 # Take the output of nm and produce a listing of raw symbols and C names. 16641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16642 16643 # Transform the output of nm in a proper C declaration 16644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16645 16646 # Transform the output of nm in a C name address pair 16647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16648 16649 # This is the shared library runtime path variable. 16650 runpath_var=$runpath_var 16651 16652 # This is the shared library path variable. 16653 shlibpath_var=$shlibpath_var 16654 16655 # Is shlibpath searched before the hard-coded library search path? 16656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16657 16658 # How to hardcode a shared library path into an executable. 16659 hardcode_action=$hardcode_action_F77 16660 16661 # Whether we should hardcode library paths into libraries. 16662 hardcode_into_libs=$hardcode_into_libs 16663 16664 # Flag to hardcode \$libdir into a binary during linking. 16665 # This must work even if \$libdir does not exist. 16666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16667 16668 # If ld is used when linking, flag to hardcode \$libdir into 16669 # a binary during linking. This must work even if \$libdir does 16670 # not exist. 16671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16672 16673 # Whether we need a single -rpath flag with a separated argument. 16674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16675 16676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16677 # resulting binary. 16678 hardcode_direct=$hardcode_direct_F77 16679 16680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16681 # resulting binary. 16682 hardcode_minus_L=$hardcode_minus_L_F77 16683 16684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16685 # the resulting binary. 16686 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16687 16688 # Set to yes if building a shared library automatically hardcodes DIR into the library 16689 # and all subsequent libraries and executables linked against it. 16690 hardcode_automatic=$hardcode_automatic_F77 16691 16692 # Variables whose values should be saved in libtool wrapper scripts and 16693 # restored at relink time. 16694 variables_saved_for_relink="$variables_saved_for_relink" 16695 16696 # Whether libtool must link a program against all its dependency libraries. 16697 link_all_deplibs=$link_all_deplibs_F77 16698 16699 # Compile-time system search path for libraries 16700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16701 16702 # Run-time system search path for libraries 16703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16704 16705 # Fix the shell variable \$srcfile for the compiler. 16706 fix_srcfile_path=$lt_fix_srcfile_path 16707 16708 # Set to yes if exported symbols are required. 16709 always_export_symbols=$always_export_symbols_F77 16710 16711 # The commands to list exported symbols. 16712 export_symbols_cmds=$lt_export_symbols_cmds_F77 16713 16714 # The commands to extract the exported symbol list from a shared archive. 16715 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16716 16717 # Symbols that should not be listed in the preloaded symbols. 16718 exclude_expsyms=$lt_exclude_expsyms_F77 16719 16720 # Symbols that must always be exported. 16721 include_expsyms=$lt_include_expsyms_F77 16722 16723 # ### END LIBTOOL TAG CONFIG: $tagname 16724 16725 __EOF__ 16726 16727 16728 else 16729 # If there is no Makefile yet, we rely on a make rule to execute 16730 # `config.status --recheck' to rerun these tests and create the 16731 # libtool script then. 16732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16733 if test -f "$ltmain_in"; then 16734 test -f Makefile && make "$ltmain" 16735 fi 16736 fi 16737 16738 16739 ac_ext=c 16740 ac_cpp='$CPP $CPPFLAGS' 16741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16743 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16744 16745 CC="$lt_save_CC" 16746 16747 else 16748 tagname="" 16749 fi 16750 ;; 16751 16752 GCJ) 16753 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16754 16755 16756 # Source file extension for Java test sources. 16757 ac_ext=java 16758 16759 # Object file extension for compiled Java test sources. 16760 objext=o 16761 objext_GCJ=$objext 16762 16763 # Code to be used in simple compile tests 16764 lt_simple_compile_test_code="class foo {}" 16765 16766 # Code to be used in simple link tests 16767 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16768 16769 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16770 16771 # If no C compiler was specified, use CC. 16772 LTCC=${LTCC-"$CC"} 16773 16774 # If no C compiler flags were specified, use CFLAGS. 16775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16776 16777 # Allow CC to be a program name with arguments. 16778 compiler=$CC 16779 16780 16781 # save warnings/boilerplate of simple test code 16782 ac_outfile=conftest.$ac_objext 16783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16785 _lt_compiler_boilerplate=`cat conftest.err` 16786 $rm conftest* 16787 16788 ac_outfile=conftest.$ac_objext 16789 echo "$lt_simple_link_test_code" >conftest.$ac_ext 16790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16791 _lt_linker_boilerplate=`cat conftest.err` 16792 $rm conftest* 16793 16794 16795 # Allow CC to be a program name with arguments. 16796 lt_save_CC="$CC" 16797 CC=${GCJ-"gcj"} 16798 compiler=$CC 16799 compiler_GCJ=$CC 16800 for cc_temp in $compiler""; do 16801 case $cc_temp in 16802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16804 \-*) ;; 16805 *) break;; 16806 esac 16807 done 16808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16809 16810 16811 # GCJ did not exist at the time GCC didn't implicitly link libc in. 16812 archive_cmds_need_lc_GCJ=no 16813 16814 old_archive_cmds_GCJ=$old_archive_cmds 16815 16816 16817 lt_prog_compiler_no_builtin_flag_GCJ= 16818 16819 if test "$GCC" = yes; then 16820 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16821 16822 16823 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16824 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16826 $as_echo_n "(cached) " >&6 16827 else 16828 lt_cv_prog_compiler_rtti_exceptions=no 16829 ac_outfile=conftest.$ac_objext 16830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16831 lt_compiler_flag="-fno-rtti -fno-exceptions" 16832 # Insert the option either (1) after the last *FLAGS variable, or 16833 # (2) before a word containing "conftest.", or (3) at the end. 16834 # Note that $ac_compile itself does not contain backslashes and begins 16835 # with a dollar sign (not a hyphen), so the echo should work correctly. 16836 # The option is referenced via a variable to avoid confusing sed. 16837 lt_compile=`echo "$ac_compile" | $SED \ 16838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16840 -e 's:$: $lt_compiler_flag:'` 16841 (eval echo "\"\$as_me:16841: $lt_compile\"" >&5) 16842 (eval "$lt_compile" 2>conftest.err) 16843 ac_status=$? 16844 cat conftest.err >&5 16845 echo "$as_me:16845: \$? = $ac_status" >&5 16846 if (exit $ac_status) && test -s "$ac_outfile"; then 16847 # The compiler can only warn and ignore the option if not recognized 16848 # So say no if there are warnings other than the usual output. 16849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16852 lt_cv_prog_compiler_rtti_exceptions=yes 16853 fi 16854 fi 16855 $rm conftest* 16856 16857 fi 16858 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16859 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16860 16861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16862 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16863 else 16864 : 16865 fi 16866 16867 fi 16868 16869 lt_prog_compiler_wl_GCJ= 16870 lt_prog_compiler_pic_GCJ= 16871 lt_prog_compiler_static_GCJ= 16872 16873 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16874 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16875 16876 if test "$GCC" = yes; then 16877 lt_prog_compiler_wl_GCJ='-Wl,' 16878 lt_prog_compiler_static_GCJ='-static' 16879 16880 case $host_os in 16881 aix*) 16882 # All AIX code is PIC. 16883 if test "$host_cpu" = ia64; then 16884 # AIX 5 now supports IA64 processor 16885 lt_prog_compiler_static_GCJ='-Bstatic' 16886 fi 16887 ;; 16888 16889 amigaos*) 16890 # FIXME: we need at least 68020 code to build shared libraries, but 16891 # adding the `-m68020' flag to GCC prevents building anything better, 16892 # like `-m68040'. 16893 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16894 ;; 16895 16896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16897 # PIC is the default for these OSes. 16898 ;; 16899 16900 mingw* | cygwin* | pw32* | os2*) 16901 # This hack is so that the source file can tell whether it is being 16902 # built for inclusion in a dll (and should export symbols for example). 16903 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16904 # (--disable-auto-import) libraries 16905 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16906 ;; 16907 16908 darwin* | rhapsody*) 16909 # PIC is the default on this platform 16910 # Common symbols not allowed in MH_DYLIB files 16911 lt_prog_compiler_pic_GCJ='-fno-common' 16912 ;; 16913 16914 interix[3-9]*) 16915 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16916 # Instead, we relocate shared libraries at runtime. 16917 ;; 16918 16919 msdosdjgpp*) 16920 # Just because we use GCC doesn't mean we suddenly get shared libraries 16921 # on systems that don't support them. 16922 lt_prog_compiler_can_build_shared_GCJ=no 16923 enable_shared=no 16924 ;; 16925 16926 sysv4*MP*) 16927 if test -d /usr/nec; then 16928 lt_prog_compiler_pic_GCJ=-Kconform_pic 16929 fi 16930 ;; 16931 16932 hpux*) 16933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16934 # not for PA HP-UX. 16935 case $host_cpu in 16936 hppa*64*|ia64*) 16937 # +Z the default 16938 ;; 16939 *) 16940 lt_prog_compiler_pic_GCJ='-fPIC' 16941 ;; 16942 esac 16943 ;; 16944 16945 *) 16946 lt_prog_compiler_pic_GCJ='-fPIC' 16947 ;; 16948 esac 16949 else 16950 # PORTME Check for flag to pass linker flags through the system compiler. 16951 case $host_os in 16952 aix*) 16953 lt_prog_compiler_wl_GCJ='-Wl,' 16954 if test "$host_cpu" = ia64; then 16955 # AIX 5 now supports IA64 processor 16956 lt_prog_compiler_static_GCJ='-Bstatic' 16957 else 16958 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16959 fi 16960 ;; 16961 darwin*) 16962 # PIC is the default on this platform 16963 # Common symbols not allowed in MH_DYLIB files 16964 case $cc_basename in 16965 xlc*) 16966 lt_prog_compiler_pic_GCJ='-qnocommon' 16967 lt_prog_compiler_wl_GCJ='-Wl,' 16968 ;; 16969 esac 16970 ;; 16971 16972 mingw* | cygwin* | pw32* | os2*) 16973 # This hack is so that the source file can tell whether it is being 16974 # built for inclusion in a dll (and should export symbols for example). 16975 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16976 ;; 16977 16978 hpux9* | hpux10* | hpux11*) 16979 lt_prog_compiler_wl_GCJ='-Wl,' 16980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16981 # not for PA HP-UX. 16982 case $host_cpu in 16983 hppa*64*|ia64*) 16984 # +Z the default 16985 ;; 16986 *) 16987 lt_prog_compiler_pic_GCJ='+Z' 16988 ;; 16989 esac 16990 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16991 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16992 ;; 16993 16994 irix5* | irix6* | nonstopux*) 16995 lt_prog_compiler_wl_GCJ='-Wl,' 16996 # PIC (with -KPIC) is the default. 16997 lt_prog_compiler_static_GCJ='-non_shared' 16998 ;; 16999 17000 newsos6) 17001 lt_prog_compiler_pic_GCJ='-KPIC' 17002 lt_prog_compiler_static_GCJ='-Bstatic' 17003 ;; 17004 17005 linux* | k*bsd*-gnu) 17006 case $cc_basename in 17007 icc* | ecc*) 17008 lt_prog_compiler_wl_GCJ='-Wl,' 17009 lt_prog_compiler_pic_GCJ='-KPIC' 17010 lt_prog_compiler_static_GCJ='-static' 17011 ;; 17012 pgcc* | pgf77* | pgf90* | pgf95*) 17013 # Portland Group compilers (*not* the Pentium gcc compiler, 17014 # which looks to be a dead project) 17015 lt_prog_compiler_wl_GCJ='-Wl,' 17016 lt_prog_compiler_pic_GCJ='-fpic' 17017 lt_prog_compiler_static_GCJ='-Bstatic' 17018 ;; 17019 ccc*) 17020 lt_prog_compiler_wl_GCJ='-Wl,' 17021 # All Alpha code is PIC. 17022 lt_prog_compiler_static_GCJ='-non_shared' 17023 ;; 17024 *) 17025 case `$CC -V 2>&1 | sed 5q` in 17026 *Sun\ C*) 17027 # Sun C 5.9 17028 lt_prog_compiler_pic_GCJ='-KPIC' 17029 lt_prog_compiler_static_GCJ='-Bstatic' 17030 lt_prog_compiler_wl_GCJ='-Wl,' 17031 ;; 17032 *Sun\ F*) 17033 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17034 lt_prog_compiler_pic_GCJ='-KPIC' 17035 lt_prog_compiler_static_GCJ='-Bstatic' 17036 lt_prog_compiler_wl_GCJ='' 17037 ;; 17038 esac 17039 ;; 17040 esac 17041 ;; 17042 17043 osf3* | osf4* | osf5*) 17044 lt_prog_compiler_wl_GCJ='-Wl,' 17045 # All OSF/1 code is PIC. 17046 lt_prog_compiler_static_GCJ='-non_shared' 17047 ;; 17048 17049 rdos*) 17050 lt_prog_compiler_static_GCJ='-non_shared' 17051 ;; 17052 17053 solaris*) 17054 lt_prog_compiler_pic_GCJ='-KPIC' 17055 lt_prog_compiler_static_GCJ='-Bstatic' 17056 case $cc_basename in 17057 f77* | f90* | f95*) 17058 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17059 *) 17060 lt_prog_compiler_wl_GCJ='-Wl,';; 17061 esac 17062 ;; 17063 17064 sunos4*) 17065 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17066 lt_prog_compiler_pic_GCJ='-PIC' 17067 lt_prog_compiler_static_GCJ='-Bstatic' 17068 ;; 17069 17070 sysv4 | sysv4.2uw2* | sysv4.3*) 17071 lt_prog_compiler_wl_GCJ='-Wl,' 17072 lt_prog_compiler_pic_GCJ='-KPIC' 17073 lt_prog_compiler_static_GCJ='-Bstatic' 17074 ;; 17075 17076 sysv4*MP*) 17077 if test -d /usr/nec ;then 17078 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17079 lt_prog_compiler_static_GCJ='-Bstatic' 17080 fi 17081 ;; 17082 17083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17084 lt_prog_compiler_wl_GCJ='-Wl,' 17085 lt_prog_compiler_pic_GCJ='-KPIC' 17086 lt_prog_compiler_static_GCJ='-Bstatic' 17087 ;; 17088 17089 unicos*) 17090 lt_prog_compiler_wl_GCJ='-Wl,' 17091 lt_prog_compiler_can_build_shared_GCJ=no 17092 ;; 17093 17094 uts4*) 17095 lt_prog_compiler_pic_GCJ='-pic' 17096 lt_prog_compiler_static_GCJ='-Bstatic' 17097 ;; 17098 17099 *) 17100 lt_prog_compiler_can_build_shared_GCJ=no 17101 ;; 17102 esac 17103 fi 17104 17105 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17106 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17107 17108 # 17109 # Check to make sure the PIC flag actually works. 17110 # 17111 if test -n "$lt_prog_compiler_pic_GCJ"; then 17112 17113 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17114 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17115 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17116 $as_echo_n "(cached) " >&6 17117 else 17118 lt_prog_compiler_pic_works_GCJ=no 17119 ac_outfile=conftest.$ac_objext 17120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17121 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17122 # Insert the option either (1) after the last *FLAGS variable, or 17123 # (2) before a word containing "conftest.", or (3) at the end. 17124 # Note that $ac_compile itself does not contain backslashes and begins 17125 # with a dollar sign (not a hyphen), so the echo should work correctly. 17126 # The option is referenced via a variable to avoid confusing sed. 17127 lt_compile=`echo "$ac_compile" | $SED \ 17128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17130 -e 's:$: $lt_compiler_flag:'` 17131 (eval echo "\"\$as_me:17131: $lt_compile\"" >&5) 17132 (eval "$lt_compile" 2>conftest.err) 17133 ac_status=$? 17134 cat conftest.err >&5 17135 echo "$as_me:17135: \$? = $ac_status" >&5 17136 if (exit $ac_status) && test -s "$ac_outfile"; then 17137 # The compiler can only warn and ignore the option if not recognized 17138 # So say no if there are warnings other than the usual output. 17139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17142 lt_prog_compiler_pic_works_GCJ=yes 17143 fi 17144 fi 17145 $rm conftest* 17146 17147 fi 17148 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17149 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 17150 17151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17152 case $lt_prog_compiler_pic_GCJ in 17153 "" | " "*) ;; 17154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17155 esac 17156 else 17157 lt_prog_compiler_pic_GCJ= 17158 lt_prog_compiler_can_build_shared_GCJ=no 17159 fi 17160 17161 fi 17162 case $host_os in 17163 # For platforms which do not support PIC, -DPIC is meaningless: 17164 *djgpp*) 17165 lt_prog_compiler_pic_GCJ= 17166 ;; 17167 *) 17168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17169 ;; 17170 esac 17171 17172 # 17173 # Check to make sure the static flag actually works. 17174 # 17175 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17176 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17178 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17179 $as_echo_n "(cached) " >&6 17180 else 17181 lt_prog_compiler_static_works_GCJ=no 17182 save_LDFLAGS="$LDFLAGS" 17183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17184 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17186 # The linker can only warn and ignore the option if not recognized 17187 # So say no if there are warnings 17188 if test -s conftest.err; then 17189 # Append any errors to the config.log. 17190 cat conftest.err 1>&5 17191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17193 if diff conftest.exp conftest.er2 >/dev/null; then 17194 lt_prog_compiler_static_works_GCJ=yes 17195 fi 17196 else 17197 lt_prog_compiler_static_works_GCJ=yes 17198 fi 17199 fi 17200 $rm conftest* 17201 LDFLAGS="$save_LDFLAGS" 17202 17203 fi 17204 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17205 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; } 17206 17207 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17208 : 17209 else 17210 lt_prog_compiler_static_GCJ= 17211 fi 17212 17213 17214 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17217 $as_echo_n "(cached) " >&6 17218 else 17219 lt_cv_prog_compiler_c_o_GCJ=no 17220 $rm -r conftest 2>/dev/null 17221 mkdir conftest 17222 cd conftest 17223 mkdir out 17224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17225 17226 lt_compiler_flag="-o out/conftest2.$ac_objext" 17227 # Insert the option either (1) after the last *FLAGS variable, or 17228 # (2) before a word containing "conftest.", or (3) at the end. 17229 # Note that $ac_compile itself does not contain backslashes and begins 17230 # with a dollar sign (not a hyphen), so the echo should work correctly. 17231 lt_compile=`echo "$ac_compile" | $SED \ 17232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17234 -e 's:$: $lt_compiler_flag:'` 17235 (eval echo "\"\$as_me:17235: $lt_compile\"" >&5) 17236 (eval "$lt_compile" 2>out/conftest.err) 17237 ac_status=$? 17238 cat out/conftest.err >&5 17239 echo "$as_me:17239: \$? = $ac_status" >&5 17240 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17241 then 17242 # The compiler can only warn and ignore the option if not recognized 17243 # So say no if there are warnings 17244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17247 lt_cv_prog_compiler_c_o_GCJ=yes 17248 fi 17249 fi 17250 chmod u+w . 2>&5 17251 $rm conftest* 17252 # SGI C++ compiler will create directory out/ii_files/ for 17253 # template instantiation 17254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17255 $rm out/* && rmdir out 17256 cd .. 17257 rmdir conftest 17258 $rm conftest* 17259 17260 fi 17261 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17262 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17263 17264 17265 hard_links="nottested" 17266 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17267 # do not overwrite the value of need_locks provided by the user 17268 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17269 $as_echo_n "checking if we can lock with hard links... " >&6; } 17270 hard_links=yes 17271 $rm conftest* 17272 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17273 touch conftest.a 17274 ln conftest.a conftest.b 2>&5 || hard_links=no 17275 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17276 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17277 $as_echo "$hard_links" >&6; } 17278 if test "$hard_links" = no; then 17279 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17280 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17281 need_locks=warn 17282 fi 17283 else 17284 need_locks=no 17285 fi 17286 17287 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17289 17290 runpath_var= 17291 allow_undefined_flag_GCJ= 17292 enable_shared_with_static_runtimes_GCJ=no 17293 archive_cmds_GCJ= 17294 archive_expsym_cmds_GCJ= 17295 old_archive_From_new_cmds_GCJ= 17296 old_archive_from_expsyms_cmds_GCJ= 17297 export_dynamic_flag_spec_GCJ= 17298 whole_archive_flag_spec_GCJ= 17299 thread_safe_flag_spec_GCJ= 17300 hardcode_libdir_flag_spec_GCJ= 17301 hardcode_libdir_flag_spec_ld_GCJ= 17302 hardcode_libdir_separator_GCJ= 17303 hardcode_direct_GCJ=no 17304 hardcode_minus_L_GCJ=no 17305 hardcode_shlibpath_var_GCJ=unsupported 17306 link_all_deplibs_GCJ=unknown 17307 hardcode_automatic_GCJ=no 17308 module_cmds_GCJ= 17309 module_expsym_cmds_GCJ= 17310 always_export_symbols_GCJ=no 17311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17312 # include_expsyms should be a list of space-separated symbols to be *always* 17313 # included in the symbol list 17314 include_expsyms_GCJ= 17315 # exclude_expsyms can be an extended regexp of symbols to exclude 17316 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17318 # as well as any symbol that contains `d'. 17319 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17321 # platforms (ab)use it in PIC code, but their linkers get confused if 17322 # the symbol is explicitly referenced. Since portable code cannot 17323 # rely on this symbol name, it's probably fine to never include it in 17324 # preloaded symbol tables. 17325 extract_expsyms_cmds= 17326 # Just being paranoid about ensuring that cc_basename is set. 17327 for cc_temp in $compiler""; do 17328 case $cc_temp in 17329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17331 \-*) ;; 17332 *) break;; 17333 esac 17334 done 17335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17336 17337 case $host_os in 17338 cygwin* | mingw* | pw32*) 17339 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17340 # When not using gcc, we currently assume that we are using 17341 # Microsoft Visual C++. 17342 if test "$GCC" != yes; then 17343 with_gnu_ld=no 17344 fi 17345 ;; 17346 interix*) 17347 # we just hope/assume this is gcc and not c89 (= MSVC++) 17348 with_gnu_ld=yes 17349 ;; 17350 openbsd*) 17351 with_gnu_ld=no 17352 ;; 17353 esac 17354 17355 ld_shlibs_GCJ=yes 17356 if test "$with_gnu_ld" = yes; then 17357 # If archive_cmds runs LD, not CC, wlarc should be empty 17358 wlarc='${wl}' 17359 17360 # Set some defaults for GNU ld with shared library support. These 17361 # are reset later if shared libraries are not supported. Putting them 17362 # here allows them to be overridden if necessary. 17363 runpath_var=LD_RUN_PATH 17364 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17365 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17366 # ancient GNU ld didn't support --whole-archive et. al. 17367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17368 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17369 else 17370 whole_archive_flag_spec_GCJ= 17371 fi 17372 supports_anon_versioning=no 17373 case `$LD -v 2>/dev/null` in 17374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17377 *\ 2.11.*) ;; # other 2.11 versions 17378 *) supports_anon_versioning=yes ;; 17379 esac 17380 17381 # See if GNU ld supports shared libraries. 17382 case $host_os in 17383 aix3* | aix4* | aix5*) 17384 # On AIX/PPC, the GNU linker is very broken 17385 if test "$host_cpu" != ia64; then 17386 ld_shlibs_GCJ=no 17387 cat <<EOF 1>&2 17388 17389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 17390 *** to be unable to reliably create shared libraries on AIX. 17391 *** Therefore, libtool is disabling shared libraries support. If you 17392 *** really care for shared libraries, you may want to modify your PATH 17393 *** so that a non-GNU linker is found, and then restart. 17394 17395 EOF 17396 fi 17397 ;; 17398 17399 amigaos*) 17400 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)' 17401 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17402 hardcode_minus_L_GCJ=yes 17403 17404 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 17405 # that the semantics of dynamic libraries on AmigaOS, at least up 17406 # to version 4, is to share data among multiple programs linked 17407 # with the same dynamic library. Since this doesn't match the 17408 # behavior of shared libraries on other platforms, we can't use 17409 # them. 17410 ld_shlibs_GCJ=no 17411 ;; 17412 17413 beos*) 17414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17415 allow_undefined_flag_GCJ=unsupported 17416 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 17417 # support --undefined. This deserves some investigation. FIXME 17418 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17419 else 17420 ld_shlibs_GCJ=no 17421 fi 17422 ;; 17423 17424 cygwin* | mingw* | pw32*) 17425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17426 # as there is no search path for DLLs. 17427 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17428 allow_undefined_flag_GCJ=unsupported 17429 always_export_symbols_GCJ=no 17430 enable_shared_with_static_runtimes_GCJ=yes 17431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17432 17433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17435 # If the export-symbols file already is a .def file (1st line 17436 # is EXPORTS), use it as is; otherwise, prepend... 17437 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17438 cp $export_symbols $output_objdir/$soname.def; 17439 else 17440 echo EXPORTS > $output_objdir/$soname.def; 17441 cat $export_symbols >> $output_objdir/$soname.def; 17442 fi~ 17443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17444 else 17445 ld_shlibs_GCJ=no 17446 fi 17447 ;; 17448 17449 interix[3-9]*) 17450 hardcode_direct_GCJ=no 17451 hardcode_shlibpath_var_GCJ=no 17452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17453 export_dynamic_flag_spec_GCJ='${wl}-E' 17454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17455 # Instead, shared libraries are loaded at an image base (0x10000000 by 17456 # default) and relocated if they conflict, which is a slow very memory 17457 # consuming and fragmenting process. To avoid this, we pick a random, 17458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17459 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17460 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' 17461 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' 17462 ;; 17463 17464 gnu* | linux* | k*bsd*-gnu) 17465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17466 tmp_addflag= 17467 case $cc_basename,$host_cpu in 17468 pgcc*) # Portland Group C compiler 17469 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' 17470 tmp_addflag=' $pic_flag' 17471 ;; 17472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17473 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' 17474 tmp_addflag=' $pic_flag -Mnomain' ;; 17475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17476 tmp_addflag=' -i_dynamic' ;; 17477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17478 tmp_addflag=' -i_dynamic -nofor_main' ;; 17479 ifc* | ifort*) # Intel Fortran compiler 17480 tmp_addflag=' -nofor_main' ;; 17481 esac 17482 case `$CC -V 2>&1 | sed 5q` in 17483 *Sun\ C*) # Sun C 5.9 17484 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' 17485 tmp_sharedflag='-G' ;; 17486 *Sun\ F*) # Sun Fortran 8.3 17487 tmp_sharedflag='-G' ;; 17488 *) 17489 tmp_sharedflag='-shared' ;; 17490 esac 17491 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17492 17493 if test $supports_anon_versioning = yes; then 17494 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17496 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17498 fi 17499 else 17500 ld_shlibs_GCJ=no 17501 fi 17502 ;; 17503 17504 netbsd*) 17505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17506 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17507 wlarc= 17508 else 17509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17511 fi 17512 ;; 17513 17514 solaris*) 17515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17516 ld_shlibs_GCJ=no 17517 cat <<EOF 1>&2 17518 17519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 17520 *** create shared libraries on Solaris systems. Therefore, libtool 17521 *** is disabling shared libraries support. We urge you to upgrade GNU 17522 *** binutils to release 2.9.1 or newer. Another option is to modify 17523 *** your PATH or compiler configuration so that the native linker is 17524 *** used, and then restart. 17525 17526 EOF 17527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17530 else 17531 ld_shlibs_GCJ=no 17532 fi 17533 ;; 17534 17535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17536 case `$LD -v 2>&1` in 17537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17538 ld_shlibs_GCJ=no 17539 cat <<_LT_EOF 1>&2 17540 17541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17542 *** reliably create shared libraries on SCO systems. Therefore, libtool 17543 *** is disabling shared libraries support. We urge you to upgrade GNU 17544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17545 *** your PATH or compiler configuration so that the native linker is 17546 *** used, and then restart. 17547 17548 _LT_EOF 17549 ;; 17550 *) 17551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17552 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17555 else 17556 ld_shlibs_GCJ=no 17557 fi 17558 ;; 17559 esac 17560 ;; 17561 17562 sunos4*) 17563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17564 wlarc= 17565 hardcode_direct_GCJ=yes 17566 hardcode_shlibpath_var_GCJ=no 17567 ;; 17568 17569 *) 17570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17573 else 17574 ld_shlibs_GCJ=no 17575 fi 17576 ;; 17577 esac 17578 17579 if test "$ld_shlibs_GCJ" = no; then 17580 runpath_var= 17581 hardcode_libdir_flag_spec_GCJ= 17582 export_dynamic_flag_spec_GCJ= 17583 whole_archive_flag_spec_GCJ= 17584 fi 17585 else 17586 # PORTME fill in a description of your system's linker (not GNU ld) 17587 case $host_os in 17588 aix3*) 17589 allow_undefined_flag_GCJ=unsupported 17590 always_export_symbols_GCJ=yes 17591 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' 17592 # Note: this linker hardcodes the directories in LIBPATH if there 17593 # are no directories specified by -L. 17594 hardcode_minus_L_GCJ=yes 17595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17596 # Neither direct hardcoding nor static linking is supported with a 17597 # broken collect2. 17598 hardcode_direct_GCJ=unsupported 17599 fi 17600 ;; 17601 17602 aix4* | aix5*) 17603 if test "$host_cpu" = ia64; then 17604 # On IA64, the linker does run time linking by default, so we don't 17605 # have to do anything special. 17606 aix_use_runtimelinking=no 17607 exp_sym_flag='-Bexport' 17608 no_entry_flag="" 17609 else 17610 # If we're using GNU nm, then we don't want the "-C" option. 17611 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17613 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' 17614 else 17615 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' 17616 fi 17617 aix_use_runtimelinking=no 17618 17619 # Test if we are trying to use run time linking or normal 17620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17621 # need to do runtime linking. 17622 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17623 for ld_flag in $LDFLAGS; do 17624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17625 aix_use_runtimelinking=yes 17626 break 17627 fi 17628 done 17629 ;; 17630 esac 17631 17632 exp_sym_flag='-bexport' 17633 no_entry_flag='-bnoentry' 17634 fi 17635 17636 # When large executables or shared objects are built, AIX ld can 17637 # have problems creating the table of contents. If linking a library 17638 # or program results in "error TOC overflow" add -mminimal-toc to 17639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17641 17642 archive_cmds_GCJ='' 17643 hardcode_direct_GCJ=yes 17644 hardcode_libdir_separator_GCJ=':' 17645 link_all_deplibs_GCJ=yes 17646 17647 if test "$GCC" = yes; then 17648 case $host_os in aix4.[012]|aix4.[012].*) 17649 # We only want to do this on AIX 4.2 and lower, the check 17650 # below for broken collect2 doesn't work under 4.3+ 17651 collect2name=`${CC} -print-prog-name=collect2` 17652 if test -f "$collect2name" && \ 17653 strings "$collect2name" | grep resolve_lib_name >/dev/null 17654 then 17655 # We have reworked collect2 17656 : 17657 else 17658 # We have old collect2 17659 hardcode_direct_GCJ=unsupported 17660 # It fails to find uninstalled libraries when the uninstalled 17661 # path is not listed in the libpath. Setting hardcode_minus_L 17662 # to unsupported forces relinking 17663 hardcode_minus_L_GCJ=yes 17664 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17665 hardcode_libdir_separator_GCJ= 17666 fi 17667 ;; 17668 esac 17669 shared_flag='-shared' 17670 if test "$aix_use_runtimelinking" = yes; then 17671 shared_flag="$shared_flag "'${wl}-G' 17672 fi 17673 else 17674 # not using gcc 17675 if test "$host_cpu" = ia64; then 17676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17677 # chokes on -Wl,-G. The following line is correct: 17678 shared_flag='-G' 17679 else 17680 if test "$aix_use_runtimelinking" = yes; then 17681 shared_flag='${wl}-G' 17682 else 17683 shared_flag='${wl}-bM:SRE' 17684 fi 17685 fi 17686 fi 17687 17688 # It seems that -bexpall does not export symbols beginning with 17689 # underscore (_), so it is better to generate a list of symbols to export. 17690 always_export_symbols_GCJ=yes 17691 if test "$aix_use_runtimelinking" = yes; then 17692 # Warning - without using the other runtime loading flags (-brtl), 17693 # -berok will link without error, but may produce a broken library. 17694 allow_undefined_flag_GCJ='-berok' 17695 # Determine the default libpath from the value encoded in an empty executable. 17696 cat >conftest.$ac_ext <<_ACEOF 17697 /* confdefs.h. */ 17698 _ACEOF 17699 cat confdefs.h >>conftest.$ac_ext 17700 cat >>conftest.$ac_ext <<_ACEOF 17701 /* end confdefs.h. */ 17702 17703 int 17704 main () 17705 { 17706 17707 ; 17708 return 0; 17709 } 17710 _ACEOF 17711 rm -f conftest.$ac_objext conftest$ac_exeext 17712 if { (ac_try="$ac_link" 17713 case "(($ac_try" in 17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17715 *) ac_try_echo=$ac_try;; 17716 esac 17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17718 $as_echo "$ac_try_echo") >&5 17719 (eval "$ac_link") 2>conftest.er1 17720 ac_status=$? 17721 grep -v '^ *+' conftest.er1 >conftest.err 17722 rm -f conftest.er1 17723 cat conftest.err >&5 17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17725 (exit $ac_status); } && { 17726 test -z "$ac_c_werror_flag" || 17727 test ! -s conftest.err 17728 } && test -s conftest$ac_exeext && { 17729 test "$cross_compiling" = yes || 17730 $as_test_x conftest$ac_exeext 17731 }; then 17732 17733 lt_aix_libpath_sed=' 17734 /Import File Strings/,/^$/ { 17735 /^0/ { 17736 s/^0 *\(.*\)$/\1/ 17737 p 17738 } 17739 }' 17740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17741 # Check for a 64-bit object if we didn't find anything. 17742 if test -z "$aix_libpath"; then 17743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17744 fi 17745 else 17746 $as_echo "$as_me: failed program was:" >&5 17747 sed 's/^/| /' conftest.$ac_ext >&5 17748 17749 17750 fi 17751 17752 rm -rf conftest.dSYM 17753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17754 conftest$ac_exeext conftest.$ac_ext 17755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17756 17757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17758 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" 17759 else 17760 if test "$host_cpu" = ia64; then 17761 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17762 allow_undefined_flag_GCJ="-z nodefs" 17763 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" 17764 else 17765 # Determine the default libpath from the value encoded in an empty executable. 17766 cat >conftest.$ac_ext <<_ACEOF 17767 /* confdefs.h. */ 17768 _ACEOF 17769 cat confdefs.h >>conftest.$ac_ext 17770 cat >>conftest.$ac_ext <<_ACEOF 17771 /* end confdefs.h. */ 17772 17773 int 17774 main () 17775 { 17776 17777 ; 17778 return 0; 17779 } 17780 _ACEOF 17781 rm -f conftest.$ac_objext conftest$ac_exeext 17782 if { (ac_try="$ac_link" 17783 case "(($ac_try" in 17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17785 *) ac_try_echo=$ac_try;; 17786 esac 17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17788 $as_echo "$ac_try_echo") >&5 17789 (eval "$ac_link") 2>conftest.er1 17790 ac_status=$? 17791 grep -v '^ *+' conftest.er1 >conftest.err 17792 rm -f conftest.er1 17793 cat conftest.err >&5 17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17795 (exit $ac_status); } && { 17796 test -z "$ac_c_werror_flag" || 17797 test ! -s conftest.err 17798 } && test -s conftest$ac_exeext && { 17799 test "$cross_compiling" = yes || 17800 $as_test_x conftest$ac_exeext 17801 }; then 17802 17803 lt_aix_libpath_sed=' 17804 /Import File Strings/,/^$/ { 17805 /^0/ { 17806 s/^0 *\(.*\)$/\1/ 17807 p 17808 } 17809 }' 17810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17811 # Check for a 64-bit object if we didn't find anything. 17812 if test -z "$aix_libpath"; then 17813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17814 fi 17815 else 17816 $as_echo "$as_me: failed program was:" >&5 17817 sed 's/^/| /' conftest.$ac_ext >&5 17818 17819 17820 fi 17821 17822 rm -rf conftest.dSYM 17823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17824 conftest$ac_exeext conftest.$ac_ext 17825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17826 17827 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17828 # Warning - without using the other run time loading flags, 17829 # -berok will link without error, but may produce a broken library. 17830 no_undefined_flag_GCJ=' ${wl}-bernotok' 17831 allow_undefined_flag_GCJ=' ${wl}-berok' 17832 # Exported symbols can be pulled into shared objects from archives 17833 whole_archive_flag_spec_GCJ='$convenience' 17834 archive_cmds_need_lc_GCJ=yes 17835 # This is similar to how AIX traditionally builds its shared libraries. 17836 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' 17837 fi 17838 fi 17839 ;; 17840 17841 amigaos*) 17842 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)' 17843 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17844 hardcode_minus_L_GCJ=yes 17845 # see comment about different semantics on the GNU ld section 17846 ld_shlibs_GCJ=no 17847 ;; 17848 17849 bsdi[45]*) 17850 export_dynamic_flag_spec_GCJ=-rdynamic 17851 ;; 17852 17853 cygwin* | mingw* | pw32*) 17854 # When not using gcc, we currently assume that we are using 17855 # Microsoft Visual C++. 17856 # hardcode_libdir_flag_spec is actually meaningless, as there is 17857 # no search path for DLLs. 17858 hardcode_libdir_flag_spec_GCJ=' ' 17859 allow_undefined_flag_GCJ=unsupported 17860 # Tell ltmain to make .lib files, not .a files. 17861 libext=lib 17862 # Tell ltmain to make .dll files, not .so files. 17863 shrext_cmds=".dll" 17864 # FIXME: Setting linknames here is a bad hack. 17865 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17866 # The linker will automatically build a .lib file if we build a DLL. 17867 old_archive_From_new_cmds_GCJ='true' 17868 # FIXME: Should let the user specify the lib program. 17869 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17870 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17871 enable_shared_with_static_runtimes_GCJ=yes 17872 ;; 17873 17874 darwin* | rhapsody*) 17875 case $host_os in 17876 rhapsody* | darwin1.[012]) 17877 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17878 ;; 17879 *) # Darwin 1.3 on 17880 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17881 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17882 else 17883 case ${MACOSX_DEPLOYMENT_TARGET} in 17884 10.[012]) 17885 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17886 ;; 17887 10.*) 17888 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17889 ;; 17890 esac 17891 fi 17892 ;; 17893 esac 17894 archive_cmds_need_lc_GCJ=no 17895 hardcode_direct_GCJ=no 17896 hardcode_automatic_GCJ=yes 17897 hardcode_shlibpath_var_GCJ=unsupported 17898 whole_archive_flag_spec_GCJ='' 17899 link_all_deplibs_GCJ=yes 17900 if test "$GCC" = yes ; then 17901 output_verbose_link_cmd='echo' 17902 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17903 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17905 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}' 17906 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}' 17907 else 17908 case $cc_basename in 17909 xlc*) 17910 output_verbose_link_cmd='echo' 17911 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17914 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17915 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}' 17916 ;; 17917 *) 17918 ld_shlibs_GCJ=no 17919 ;; 17920 esac 17921 fi 17922 ;; 17923 17924 dgux*) 17925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17926 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17927 hardcode_shlibpath_var_GCJ=no 17928 ;; 17929 17930 freebsd1*) 17931 ld_shlibs_GCJ=no 17932 ;; 17933 17934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17935 # support. Future versions do this automatically, but an explicit c++rt0.o 17936 # does not break anything, and helps significantly (at the cost of a little 17937 # extra space). 17938 freebsd2.2*) 17939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17940 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17941 hardcode_direct_GCJ=yes 17942 hardcode_shlibpath_var_GCJ=no 17943 ;; 17944 17945 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17946 freebsd2*) 17947 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17948 hardcode_direct_GCJ=yes 17949 hardcode_minus_L_GCJ=yes 17950 hardcode_shlibpath_var_GCJ=no 17951 ;; 17952 17953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17954 freebsd* | dragonfly*) 17955 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17956 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17957 hardcode_direct_GCJ=yes 17958 hardcode_shlibpath_var_GCJ=no 17959 ;; 17960 17961 hpux9*) 17962 if test "$GCC" = yes; then 17963 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' 17964 else 17965 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' 17966 fi 17967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17968 hardcode_libdir_separator_GCJ=: 17969 hardcode_direct_GCJ=yes 17970 17971 # hardcode_minus_L: Not really in the search PATH, 17972 # but as the default location of the library. 17973 hardcode_minus_L_GCJ=yes 17974 export_dynamic_flag_spec_GCJ='${wl}-E' 17975 ;; 17976 17977 hpux10*) 17978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17980 else 17981 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17982 fi 17983 if test "$with_gnu_ld" = no; then 17984 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17985 hardcode_libdir_separator_GCJ=: 17986 17987 hardcode_direct_GCJ=yes 17988 export_dynamic_flag_spec_GCJ='${wl}-E' 17989 17990 # hardcode_minus_L: Not really in the search PATH, 17991 # but as the default location of the library. 17992 hardcode_minus_L_GCJ=yes 17993 fi 17994 ;; 17995 17996 hpux11*) 17997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17998 case $host_cpu in 17999 hppa*64*) 18000 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18001 ;; 18002 ia64*) 18003 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18004 ;; 18005 *) 18006 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18007 ;; 18008 esac 18009 else 18010 case $host_cpu in 18011 hppa*64*) 18012 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18013 ;; 18014 ia64*) 18015 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18016 ;; 18017 *) 18018 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18019 ;; 18020 esac 18021 fi 18022 if test "$with_gnu_ld" = no; then 18023 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18024 hardcode_libdir_separator_GCJ=: 18025 18026 case $host_cpu in 18027 hppa*64*|ia64*) 18028 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18029 hardcode_direct_GCJ=no 18030 hardcode_shlibpath_var_GCJ=no 18031 ;; 18032 *) 18033 hardcode_direct_GCJ=yes 18034 export_dynamic_flag_spec_GCJ='${wl}-E' 18035 18036 # hardcode_minus_L: Not really in the search PATH, 18037 # but as the default location of the library. 18038 hardcode_minus_L_GCJ=yes 18039 ;; 18040 esac 18041 fi 18042 ;; 18043 18044 irix5* | irix6* | nonstopux*) 18045 if test "$GCC" = yes; then 18046 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' 18047 else 18048 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' 18049 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18050 fi 18051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18052 hardcode_libdir_separator_GCJ=: 18053 link_all_deplibs_GCJ=yes 18054 ;; 18055 18056 netbsd*) 18057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18059 else 18060 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18061 fi 18062 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18063 hardcode_direct_GCJ=yes 18064 hardcode_shlibpath_var_GCJ=no 18065 ;; 18066 18067 newsos6) 18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18069 hardcode_direct_GCJ=yes 18070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18071 hardcode_libdir_separator_GCJ=: 18072 hardcode_shlibpath_var_GCJ=no 18073 ;; 18074 18075 openbsd*) 18076 if test -f /usr/libexec/ld.so; then 18077 hardcode_direct_GCJ=yes 18078 hardcode_shlibpath_var_GCJ=no 18079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18081 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18083 export_dynamic_flag_spec_GCJ='${wl}-E' 18084 else 18085 case $host_os in 18086 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18088 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18089 ;; 18090 *) 18091 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18093 ;; 18094 esac 18095 fi 18096 else 18097 ld_shlibs_GCJ=no 18098 fi 18099 ;; 18100 18101 os2*) 18102 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18103 hardcode_minus_L_GCJ=yes 18104 allow_undefined_flag_GCJ=unsupported 18105 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' 18106 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18107 ;; 18108 18109 osf3*) 18110 if test "$GCC" = yes; then 18111 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18112 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' 18113 else 18114 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18115 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' 18116 fi 18117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18118 hardcode_libdir_separator_GCJ=: 18119 ;; 18120 18121 osf4* | osf5*) # as osf3* with the addition of -msym flag 18122 if test "$GCC" = yes; then 18123 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18124 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' 18125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18126 else 18127 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18128 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' 18129 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~ 18130 $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' 18131 18132 # Both c and cxx compiler support -rpath directly 18133 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18134 fi 18135 hardcode_libdir_separator_GCJ=: 18136 ;; 18137 18138 solaris*) 18139 no_undefined_flag_GCJ=' -z text' 18140 if test "$GCC" = yes; then 18141 wlarc='${wl}' 18142 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18144 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18145 else 18146 wlarc='' 18147 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18150 fi 18151 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18152 hardcode_shlibpath_var_GCJ=no 18153 case $host_os in 18154 solaris2.[0-5] | solaris2.[0-5].*) ;; 18155 *) 18156 # The compiler driver will combine and reorder linker options, 18157 # but understands `-z linker_flag'. GCC discards it without `$wl', 18158 # but is careful enough not to reorder. 18159 # Supported since Solaris 2.6 (maybe 2.5.1?) 18160 if test "$GCC" = yes; then 18161 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18162 else 18163 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18164 fi 18165 ;; 18166 esac 18167 link_all_deplibs_GCJ=yes 18168 ;; 18169 18170 sunos4*) 18171 if test "x$host_vendor" = xsequent; then 18172 # Use $CC to link under sequent, because it throws in some extra .o 18173 # files that make .init and .fini sections work. 18174 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18175 else 18176 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18177 fi 18178 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18179 hardcode_direct_GCJ=yes 18180 hardcode_minus_L_GCJ=yes 18181 hardcode_shlibpath_var_GCJ=no 18182 ;; 18183 18184 sysv4) 18185 case $host_vendor in 18186 sni) 18187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18188 hardcode_direct_GCJ=yes # is this really true??? 18189 ;; 18190 siemens) 18191 ## LD is ld it makes a PLAMLIB 18192 ## CC just makes a GrossModule. 18193 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18194 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18195 hardcode_direct_GCJ=no 18196 ;; 18197 motorola) 18198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18199 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18200 ;; 18201 esac 18202 runpath_var='LD_RUN_PATH' 18203 hardcode_shlibpath_var_GCJ=no 18204 ;; 18205 18206 sysv4.3*) 18207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18208 hardcode_shlibpath_var_GCJ=no 18209 export_dynamic_flag_spec_GCJ='-Bexport' 18210 ;; 18211 18212 sysv4*MP*) 18213 if test -d /usr/nec; then 18214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18215 hardcode_shlibpath_var_GCJ=no 18216 runpath_var=LD_RUN_PATH 18217 hardcode_runpath_var=yes 18218 ld_shlibs_GCJ=yes 18219 fi 18220 ;; 18221 18222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18223 no_undefined_flag_GCJ='${wl}-z,text' 18224 archive_cmds_need_lc_GCJ=no 18225 hardcode_shlibpath_var_GCJ=no 18226 runpath_var='LD_RUN_PATH' 18227 18228 if test "$GCC" = yes; then 18229 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18230 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18231 else 18232 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18233 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18234 fi 18235 ;; 18236 18237 sysv5* | sco3.2v5* | sco5v6*) 18238 # Note: We can NOT use -z defs as we might desire, because we do not 18239 # link with -lc, and that would cause any symbols used from libc to 18240 # always be unresolved, which means just about no library would 18241 # ever link correctly. If we're not using GNU ld we use -z text 18242 # though, which does catch some bad symbols but isn't as heavy-handed 18243 # as -z defs. 18244 no_undefined_flag_GCJ='${wl}-z,text' 18245 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18246 archive_cmds_need_lc_GCJ=no 18247 hardcode_shlibpath_var_GCJ=no 18248 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18249 hardcode_libdir_separator_GCJ=':' 18250 link_all_deplibs_GCJ=yes 18251 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18252 runpath_var='LD_RUN_PATH' 18253 18254 if test "$GCC" = yes; then 18255 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18256 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18257 else 18258 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18259 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18260 fi 18261 ;; 18262 18263 uts4*) 18264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18265 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18266 hardcode_shlibpath_var_GCJ=no 18267 ;; 18268 18269 *) 18270 ld_shlibs_GCJ=no 18271 ;; 18272 esac 18273 fi 18274 18275 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18276 $as_echo "$ld_shlibs_GCJ" >&6; } 18277 test "$ld_shlibs_GCJ" = no && can_build_shared=no 18278 18279 # 18280 # Do we need to explicitly link libc? 18281 # 18282 case "x$archive_cmds_need_lc_GCJ" in 18283 x|xyes) 18284 # Assume -lc should be added 18285 archive_cmds_need_lc_GCJ=yes 18286 18287 if test "$enable_shared" = yes && test "$GCC" = yes; then 18288 case $archive_cmds_GCJ in 18289 *'~'*) 18290 # FIXME: we may have to deal with multi-command sequences. 18291 ;; 18292 '$CC '*) 18293 # Test whether the compiler implicitly links with -lc since on some 18294 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18295 # to ld, don't add -lc before -lgcc. 18296 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18298 $rm conftest* 18299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18300 18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18302 (eval $ac_compile) 2>&5 18303 ac_status=$? 18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18305 (exit $ac_status); } 2>conftest.err; then 18306 soname=conftest 18307 lib=conftest 18308 libobjs=conftest.$ac_objext 18309 deplibs= 18310 wl=$lt_prog_compiler_wl_GCJ 18311 pic_flag=$lt_prog_compiler_pic_GCJ 18312 compiler_flags=-v 18313 linker_flags=-v 18314 verstring= 18315 output_objdir=. 18316 libname=conftest 18317 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18318 allow_undefined_flag_GCJ= 18319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18320 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18321 ac_status=$? 18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18323 (exit $ac_status); } 18324 then 18325 archive_cmds_need_lc_GCJ=no 18326 else 18327 archive_cmds_need_lc_GCJ=yes 18328 fi 18329 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18330 else 18331 cat conftest.err 1>&5 18332 fi 18333 $rm conftest* 18334 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18335 $as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18336 ;; 18337 esac 18338 fi 18339 ;; 18340 esac 18341 18342 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18343 $as_echo_n "checking dynamic linker characteristics... " >&6; } 18344 library_names_spec= 18345 libname_spec='lib$name' 18346 soname_spec= 18347 shrext_cmds=".so" 18348 postinstall_cmds= 18349 postuninstall_cmds= 18350 finish_cmds= 18351 finish_eval= 18352 shlibpath_var= 18353 shlibpath_overrides_runpath=unknown 18354 version_type=none 18355 dynamic_linker="$host_os ld.so" 18356 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18357 18358 need_lib_prefix=unknown 18359 hardcode_into_libs=no 18360 18361 # when you set need_version to no, make sure it does not cause -set_version 18362 # flags to be left without arguments 18363 need_version=unknown 18364 18365 case $host_os in 18366 aix3*) 18367 version_type=linux 18368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18369 shlibpath_var=LIBPATH 18370 18371 # AIX 3 has no versioning support, so we append a major version to the name. 18372 soname_spec='${libname}${release}${shared_ext}$major' 18373 ;; 18374 18375 aix4* | aix5*) 18376 version_type=linux 18377 need_lib_prefix=no 18378 need_version=no 18379 hardcode_into_libs=yes 18380 if test "$host_cpu" = ia64; then 18381 # AIX 5 supports IA64 18382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18383 shlibpath_var=LD_LIBRARY_PATH 18384 else 18385 # With GCC up to 2.95.x, collect2 would create an import file 18386 # for dependence libraries. The import file would start with 18387 # the line `#! .'. This would cause the generated library to 18388 # depend on `.', always an invalid library. This was fixed in 18389 # development snapshots of GCC prior to 3.0. 18390 case $host_os in 18391 aix4 | aix4.[01] | aix4.[01].*) 18392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18393 echo ' yes ' 18394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18395 : 18396 else 18397 can_build_shared=no 18398 fi 18399 ;; 18400 esac 18401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18402 # soname into executable. Probably we can add versioning support to 18403 # collect2, so additional links can be useful in future. 18404 if test "$aix_use_runtimelinking" = yes; then 18405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18406 # instead of lib<name>.a to let people know that these are not 18407 # typical AIX shared libraries. 18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18409 else 18410 # We preserve .a as extension for shared libraries through AIX4.2 18411 # and later when we are not doing run time linking. 18412 library_names_spec='${libname}${release}.a $libname.a' 18413 soname_spec='${libname}${release}${shared_ext}$major' 18414 fi 18415 shlibpath_var=LIBPATH 18416 fi 18417 ;; 18418 18419 amigaos*) 18420 library_names_spec='$libname.ixlibrary $libname.a' 18421 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18422 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' 18423 ;; 18424 18425 beos*) 18426 library_names_spec='${libname}${shared_ext}' 18427 dynamic_linker="$host_os ld.so" 18428 shlibpath_var=LIBRARY_PATH 18429 ;; 18430 18431 bsdi[45]*) 18432 version_type=linux 18433 need_version=no 18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18435 soname_spec='${libname}${release}${shared_ext}$major' 18436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18437 shlibpath_var=LD_LIBRARY_PATH 18438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18440 # the default ld.so.conf also contains /usr/contrib/lib and 18441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18442 # libtool to hard-code these into programs 18443 ;; 18444 18445 cygwin* | mingw* | pw32*) 18446 version_type=windows 18447 shrext_cmds=".dll" 18448 need_version=no 18449 need_lib_prefix=no 18450 18451 case $GCC,$host_os in 18452 yes,cygwin* | yes,mingw* | yes,pw32*) 18453 library_names_spec='$libname.dll.a' 18454 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18455 postinstall_cmds='base_file=`basename \${file}`~ 18456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18457 dldir=$destdir/`dirname \$dlpath`~ 18458 test -d \$dldir || mkdir -p \$dldir~ 18459 $install_prog $dir/$dlname \$dldir/$dlname~ 18460 chmod a+x \$dldir/$dlname' 18461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18462 dlpath=$dir/\$dldll~ 18463 $rm \$dlpath' 18464 shlibpath_overrides_runpath=yes 18465 18466 case $host_os in 18467 cygwin*) 18468 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18471 ;; 18472 mingw*) 18473 # MinGW DLLs use traditional 'lib' prefix 18474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18477 # It is most probably a Windows format PATH printed by 18478 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18479 # path with ; separators, and with drive letters. We can handle the 18480 # drive letters (cygwin fileutils understands them), so leave them, 18481 # especially as we might pass files found there to a mingw objdump, 18482 # which wouldn't understand a cygwinified path. Ahh. 18483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18484 else 18485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18486 fi 18487 ;; 18488 pw32*) 18489 # pw32 DLLs use 'pw' prefix rather than 'lib' 18490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18491 ;; 18492 esac 18493 ;; 18494 18495 *) 18496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18497 ;; 18498 esac 18499 dynamic_linker='Win32 ld.exe' 18500 # FIXME: first we should search . and the directory the executable is in 18501 shlibpath_var=PATH 18502 ;; 18503 18504 darwin* | rhapsody*) 18505 dynamic_linker="$host_os dyld" 18506 version_type=darwin 18507 need_lib_prefix=no 18508 need_version=no 18509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18510 soname_spec='${libname}${release}${major}$shared_ext' 18511 shlibpath_overrides_runpath=yes 18512 shlibpath_var=DYLD_LIBRARY_PATH 18513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18514 18515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18516 ;; 18517 18518 dgux*) 18519 version_type=linux 18520 need_lib_prefix=no 18521 need_version=no 18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18523 soname_spec='${libname}${release}${shared_ext}$major' 18524 shlibpath_var=LD_LIBRARY_PATH 18525 ;; 18526 18527 freebsd1*) 18528 dynamic_linker=no 18529 ;; 18530 18531 freebsd* | dragonfly*) 18532 # DragonFly does not have aout. When/if they implement a new 18533 # versioning mechanism, adjust this. 18534 if test -x /usr/bin/objformat; then 18535 objformat=`/usr/bin/objformat` 18536 else 18537 case $host_os in 18538 freebsd[123]*) objformat=aout ;; 18539 *) objformat=elf ;; 18540 esac 18541 fi 18542 version_type=freebsd-$objformat 18543 case $version_type in 18544 freebsd-elf*) 18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18546 need_version=no 18547 need_lib_prefix=no 18548 ;; 18549 freebsd-*) 18550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18551 need_version=yes 18552 ;; 18553 esac 18554 shlibpath_var=LD_LIBRARY_PATH 18555 case $host_os in 18556 freebsd2*) 18557 shlibpath_overrides_runpath=yes 18558 ;; 18559 freebsd3.[01]* | freebsdelf3.[01]*) 18560 shlibpath_overrides_runpath=yes 18561 hardcode_into_libs=yes 18562 ;; 18563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18565 shlibpath_overrides_runpath=no 18566 hardcode_into_libs=yes 18567 ;; 18568 *) # from 4.6 on, and DragonFly 18569 shlibpath_overrides_runpath=yes 18570 hardcode_into_libs=yes 18571 ;; 18572 esac 18573 ;; 18574 18575 gnu*) 18576 version_type=linux 18577 need_lib_prefix=no 18578 need_version=no 18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18580 soname_spec='${libname}${release}${shared_ext}$major' 18581 shlibpath_var=LD_LIBRARY_PATH 18582 hardcode_into_libs=yes 18583 ;; 18584 18585 hpux9* | hpux10* | hpux11*) 18586 # Give a soname corresponding to the major version so that dld.sl refuses to 18587 # link against other versions. 18588 version_type=sunos 18589 need_lib_prefix=no 18590 need_version=no 18591 case $host_cpu in 18592 ia64*) 18593 shrext_cmds='.so' 18594 hardcode_into_libs=yes 18595 dynamic_linker="$host_os dld.so" 18596 shlibpath_var=LD_LIBRARY_PATH 18597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18599 soname_spec='${libname}${release}${shared_ext}$major' 18600 if test "X$HPUX_IA64_MODE" = X32; then 18601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18602 else 18603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18604 fi 18605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18606 ;; 18607 hppa*64*) 18608 shrext_cmds='.sl' 18609 hardcode_into_libs=yes 18610 dynamic_linker="$host_os dld.sl" 18611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18614 soname_spec='${libname}${release}${shared_ext}$major' 18615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18617 ;; 18618 *) 18619 shrext_cmds='.sl' 18620 dynamic_linker="$host_os dld.sl" 18621 shlibpath_var=SHLIB_PATH 18622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18624 soname_spec='${libname}${release}${shared_ext}$major' 18625 ;; 18626 esac 18627 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18628 postinstall_cmds='chmod 555 $lib' 18629 ;; 18630 18631 interix[3-9]*) 18632 version_type=linux 18633 need_lib_prefix=no 18634 need_version=no 18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18636 soname_spec='${libname}${release}${shared_ext}$major' 18637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18638 shlibpath_var=LD_LIBRARY_PATH 18639 shlibpath_overrides_runpath=no 18640 hardcode_into_libs=yes 18641 ;; 18642 18643 irix5* | irix6* | nonstopux*) 18644 case $host_os in 18645 nonstopux*) version_type=nonstopux ;; 18646 *) 18647 if test "$lt_cv_prog_gnu_ld" = yes; then 18648 version_type=linux 18649 else 18650 version_type=irix 18651 fi ;; 18652 esac 18653 need_lib_prefix=no 18654 need_version=no 18655 soname_spec='${libname}${release}${shared_ext}$major' 18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18657 case $host_os in 18658 irix5* | nonstopux*) 18659 libsuff= shlibsuff= 18660 ;; 18661 *) 18662 case $LD in # libtool.m4 will add one of these switches to LD 18663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18664 libsuff= shlibsuff= libmagic=32-bit;; 18665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18666 libsuff=32 shlibsuff=N32 libmagic=N32;; 18667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18668 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18669 *) libsuff= shlibsuff= libmagic=never-match;; 18670 esac 18671 ;; 18672 esac 18673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18674 shlibpath_overrides_runpath=no 18675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18677 hardcode_into_libs=yes 18678 ;; 18679 18680 # No shared lib support for Linux oldld, aout, or coff. 18681 linux*oldld* | linux*aout* | linux*coff*) 18682 dynamic_linker=no 18683 ;; 18684 18685 # This must be Linux ELF. 18686 linux* | k*bsd*-gnu) 18687 version_type=linux 18688 need_lib_prefix=no 18689 need_version=no 18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18691 soname_spec='${libname}${release}${shared_ext}$major' 18692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18693 shlibpath_var=LD_LIBRARY_PATH 18694 shlibpath_overrides_runpath=no 18695 # This implies no fast_install, which is unacceptable. 18696 # Some rework will be needed to allow for fast_install 18697 # before this can be enabled. 18698 hardcode_into_libs=yes 18699 18700 # Append ld.so.conf contents to the search path 18701 if test -f /etc/ld.so.conf; then 18702 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18704 fi 18705 18706 # We used to test for /lib/ld.so.1 and disable shared libraries on 18707 # powerpc, because MkLinux only supported shared libraries with the 18708 # GNU dynamic linker. Since this was broken with cross compilers, 18709 # most powerpc-linux boxes support dynamic linking these days and 18710 # people can always --disable-shared, the test was removed, and we 18711 # assume the GNU/Linux dynamic linker is in use. 18712 dynamic_linker='GNU/Linux ld.so' 18713 ;; 18714 18715 netbsd*) 18716 version_type=sunos 18717 need_lib_prefix=no 18718 need_version=no 18719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18722 dynamic_linker='NetBSD (a.out) ld.so' 18723 else 18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18725 soname_spec='${libname}${release}${shared_ext}$major' 18726 dynamic_linker='NetBSD ld.elf_so' 18727 fi 18728 shlibpath_var=LD_LIBRARY_PATH 18729 shlibpath_overrides_runpath=yes 18730 hardcode_into_libs=yes 18731 ;; 18732 18733 newsos6) 18734 version_type=linux 18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18736 shlibpath_var=LD_LIBRARY_PATH 18737 shlibpath_overrides_runpath=yes 18738 ;; 18739 18740 nto-qnx*) 18741 version_type=linux 18742 need_lib_prefix=no 18743 need_version=no 18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18745 soname_spec='${libname}${release}${shared_ext}$major' 18746 shlibpath_var=LD_LIBRARY_PATH 18747 shlibpath_overrides_runpath=yes 18748 ;; 18749 18750 openbsd*) 18751 version_type=sunos 18752 sys_lib_dlsearch_path_spec="/usr/lib" 18753 need_lib_prefix=no 18754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18755 case $host_os in 18756 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18757 *) need_version=no ;; 18758 esac 18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18761 shlibpath_var=LD_LIBRARY_PATH 18762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18763 case $host_os in 18764 openbsd2.[89] | openbsd2.[89].*) 18765 shlibpath_overrides_runpath=no 18766 ;; 18767 *) 18768 shlibpath_overrides_runpath=yes 18769 ;; 18770 esac 18771 else 18772 shlibpath_overrides_runpath=yes 18773 fi 18774 ;; 18775 18776 os2*) 18777 libname_spec='$name' 18778 shrext_cmds=".dll" 18779 need_lib_prefix=no 18780 library_names_spec='$libname${shared_ext} $libname.a' 18781 dynamic_linker='OS/2 ld.exe' 18782 shlibpath_var=LIBPATH 18783 ;; 18784 18785 osf3* | osf4* | osf5*) 18786 version_type=osf 18787 need_lib_prefix=no 18788 need_version=no 18789 soname_spec='${libname}${release}${shared_ext}$major' 18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18791 shlibpath_var=LD_LIBRARY_PATH 18792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18794 ;; 18795 18796 rdos*) 18797 dynamic_linker=no 18798 ;; 18799 18800 solaris*) 18801 version_type=linux 18802 need_lib_prefix=no 18803 need_version=no 18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18805 soname_spec='${libname}${release}${shared_ext}$major' 18806 shlibpath_var=LD_LIBRARY_PATH 18807 shlibpath_overrides_runpath=yes 18808 hardcode_into_libs=yes 18809 # ldd complains unless libraries are executable 18810 postinstall_cmds='chmod +x $lib' 18811 ;; 18812 18813 sunos4*) 18814 version_type=sunos 18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18817 shlibpath_var=LD_LIBRARY_PATH 18818 shlibpath_overrides_runpath=yes 18819 if test "$with_gnu_ld" = yes; then 18820 need_lib_prefix=no 18821 fi 18822 need_version=yes 18823 ;; 18824 18825 sysv4 | sysv4.3*) 18826 version_type=linux 18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18828 soname_spec='${libname}${release}${shared_ext}$major' 18829 shlibpath_var=LD_LIBRARY_PATH 18830 case $host_vendor in 18831 sni) 18832 shlibpath_overrides_runpath=no 18833 need_lib_prefix=no 18834 export_dynamic_flag_spec='${wl}-Blargedynsym' 18835 runpath_var=LD_RUN_PATH 18836 ;; 18837 siemens) 18838 need_lib_prefix=no 18839 ;; 18840 motorola) 18841 need_lib_prefix=no 18842 need_version=no 18843 shlibpath_overrides_runpath=no 18844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18845 ;; 18846 esac 18847 ;; 18848 18849 sysv4*MP*) 18850 if test -d /usr/nec ;then 18851 version_type=linux 18852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18853 soname_spec='$libname${shared_ext}.$major' 18854 shlibpath_var=LD_LIBRARY_PATH 18855 fi 18856 ;; 18857 18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18859 version_type=freebsd-elf 18860 need_lib_prefix=no 18861 need_version=no 18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18863 soname_spec='${libname}${release}${shared_ext}$major' 18864 shlibpath_var=LD_LIBRARY_PATH 18865 hardcode_into_libs=yes 18866 if test "$with_gnu_ld" = yes; then 18867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18868 shlibpath_overrides_runpath=no 18869 else 18870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18871 shlibpath_overrides_runpath=yes 18872 case $host_os in 18873 sco3.2v5*) 18874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18875 ;; 18876 esac 18877 fi 18878 sys_lib_dlsearch_path_spec='/usr/lib' 18879 ;; 18880 18881 uts4*) 18882 version_type=linux 18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18884 soname_spec='${libname}${release}${shared_ext}$major' 18885 shlibpath_var=LD_LIBRARY_PATH 18886 ;; 18887 18888 *) 18889 dynamic_linker=no 18890 ;; 18891 esac 18892 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18893 $as_echo "$dynamic_linker" >&6; } 18894 test "$dynamic_linker" = no && can_build_shared=no 18895 18896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18897 if test "$GCC" = yes; then 18898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18899 fi 18900 18901 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18903 hardcode_action_GCJ= 18904 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18905 test -n "$runpath_var_GCJ" || \ 18906 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18907 18908 # We can hardcode non-existant directories. 18909 if test "$hardcode_direct_GCJ" != no && 18910 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18911 # have to relink, otherwise we might link with an installed library 18912 # when we should be linking with a yet-to-be-installed one 18913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18914 test "$hardcode_minus_L_GCJ" != no; then 18915 # Linking always hardcodes the temporary library directory. 18916 hardcode_action_GCJ=relink 18917 else 18918 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18919 hardcode_action_GCJ=immediate 18920 fi 18921 else 18922 # We cannot hardcode anything, or else we can only hardcode existing 18923 # directories. 18924 hardcode_action_GCJ=unsupported 18925 fi 18926 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18927 $as_echo "$hardcode_action_GCJ" >&6; } 18928 18929 if test "$hardcode_action_GCJ" = relink; then 18930 # Fast installation is not supported 18931 enable_fast_install=no 18932 elif test "$shlibpath_overrides_runpath" = yes || 18933 test "$enable_shared" = no; then 18934 # Fast installation is not necessary 18935 enable_fast_install=needless 18936 fi 18937 18938 18939 # The else clause should only fire when bootstrapping the 18940 # libtool distribution, otherwise you forgot to ship ltmain.sh 18941 # with your package, and you will get complaints that there are 18942 # no rules to generate ltmain.sh. 18943 if test -f "$ltmain"; then 18944 # See if we are running on zsh, and set the options which allow our commands through 18945 # without removal of \ escapes. 18946 if test -n "${ZSH_VERSION+set}" ; then 18947 setopt NO_GLOB_SUBST 18948 fi 18949 # Now quote all the things that may contain metacharacters while being 18950 # careful not to overquote the AC_SUBSTed values. We take copies of the 18951 # variables and quote the copies for generation of the libtool script. 18952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18953 SED SHELL STRIP \ 18954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18956 deplibs_check_method reload_flag reload_cmds need_locks \ 18957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18958 lt_cv_sys_global_symbol_to_c_name_address \ 18959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18960 old_postinstall_cmds old_postuninstall_cmds \ 18961 compiler_GCJ \ 18962 CC_GCJ \ 18963 LD_GCJ \ 18964 lt_prog_compiler_wl_GCJ \ 18965 lt_prog_compiler_pic_GCJ \ 18966 lt_prog_compiler_static_GCJ \ 18967 lt_prog_compiler_no_builtin_flag_GCJ \ 18968 export_dynamic_flag_spec_GCJ \ 18969 thread_safe_flag_spec_GCJ \ 18970 whole_archive_flag_spec_GCJ \ 18971 enable_shared_with_static_runtimes_GCJ \ 18972 old_archive_cmds_GCJ \ 18973 old_archive_from_new_cmds_GCJ \ 18974 predep_objects_GCJ \ 18975 postdep_objects_GCJ \ 18976 predeps_GCJ \ 18977 postdeps_GCJ \ 18978 compiler_lib_search_path_GCJ \ 18979 archive_cmds_GCJ \ 18980 archive_expsym_cmds_GCJ \ 18981 postinstall_cmds_GCJ \ 18982 postuninstall_cmds_GCJ \ 18983 old_archive_from_expsyms_cmds_GCJ \ 18984 allow_undefined_flag_GCJ \ 18985 no_undefined_flag_GCJ \ 18986 export_symbols_cmds_GCJ \ 18987 hardcode_libdir_flag_spec_GCJ \ 18988 hardcode_libdir_flag_spec_ld_GCJ \ 18989 hardcode_libdir_separator_GCJ \ 18990 hardcode_automatic_GCJ \ 18991 module_cmds_GCJ \ 18992 module_expsym_cmds_GCJ \ 18993 lt_cv_prog_compiler_c_o_GCJ \ 18994 fix_srcfile_path_GCJ \ 18995 exclude_expsyms_GCJ \ 18996 include_expsyms_GCJ; do 18997 18998 case $var in 18999 old_archive_cmds_GCJ | \ 19000 old_archive_from_new_cmds_GCJ | \ 19001 archive_cmds_GCJ | \ 19002 archive_expsym_cmds_GCJ | \ 19003 module_cmds_GCJ | \ 19004 module_expsym_cmds_GCJ | \ 19005 old_archive_from_expsyms_cmds_GCJ | \ 19006 export_symbols_cmds_GCJ | \ 19007 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19008 postinstall_cmds | postuninstall_cmds | \ 19009 old_postinstall_cmds | old_postuninstall_cmds | \ 19010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19011 # Double-quote double-evaled strings. 19012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19013 ;; 19014 *) 19015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19016 ;; 19017 esac 19018 done 19019 19020 case $lt_echo in 19021 *'\$0 --fallback-echo"') 19022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19023 ;; 19024 esac 19025 19026 cfgfile="$ofile" 19027 19028 cat <<__EOF__ >> "$cfgfile" 19029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19030 19031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19032 19033 # Shell to use when invoking shell scripts. 19034 SHELL=$lt_SHELL 19035 19036 # Whether or not to build shared libraries. 19037 build_libtool_libs=$enable_shared 19038 19039 # Whether or not to build static libraries. 19040 build_old_libs=$enable_static 19041 19042 # Whether or not to add -lc for building shared libraries. 19043 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19044 19045 # Whether or not to disallow shared libs when runtime libs are static 19046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19047 19048 # Whether or not to optimize for fast installation. 19049 fast_install=$enable_fast_install 19050 19051 # The host system. 19052 host_alias=$host_alias 19053 host=$host 19054 host_os=$host_os 19055 19056 # The build system. 19057 build_alias=$build_alias 19058 build=$build 19059 build_os=$build_os 19060 19061 # An echo program that does not interpret backslashes. 19062 echo=$lt_echo 19063 19064 # The archiver. 19065 AR=$lt_AR 19066 AR_FLAGS=$lt_AR_FLAGS 19067 19068 # A C compiler. 19069 LTCC=$lt_LTCC 19070 19071 # LTCC compiler flags. 19072 LTCFLAGS=$lt_LTCFLAGS 19073 19074 # A language-specific compiler. 19075 CC=$lt_compiler_GCJ 19076 19077 # Is the compiler the GNU C compiler? 19078 with_gcc=$GCC_GCJ 19079 19080 # An ERE matcher. 19081 EGREP=$lt_EGREP 19082 19083 # The linker used to build libraries. 19084 LD=$lt_LD_GCJ 19085 19086 # Whether we need hard or soft links. 19087 LN_S=$lt_LN_S 19088 19089 # A BSD-compatible nm program. 19090 NM=$lt_NM 19091 19092 # A symbol stripping program 19093 STRIP=$lt_STRIP 19094 19095 # Used to examine libraries when file_magic_cmd begins "file" 19096 MAGIC_CMD=$MAGIC_CMD 19097 19098 # Used on cygwin: DLL creation program. 19099 DLLTOOL="$DLLTOOL" 19100 19101 # Used on cygwin: object dumper. 19102 OBJDUMP="$OBJDUMP" 19103 19104 # Used on cygwin: assembler. 19105 AS="$AS" 19106 19107 # The name of the directory that contains temporary libtool files. 19108 objdir=$objdir 19109 19110 # How to create reloadable object files. 19111 reload_flag=$lt_reload_flag 19112 reload_cmds=$lt_reload_cmds 19113 19114 # How to pass a linker flag through the compiler. 19115 wl=$lt_lt_prog_compiler_wl_GCJ 19116 19117 # Object file suffix (normally "o"). 19118 objext="$ac_objext" 19119 19120 # Old archive suffix (normally "a"). 19121 libext="$libext" 19122 19123 # Shared library suffix (normally ".so"). 19124 shrext_cmds='$shrext_cmds' 19125 19126 # Executable file suffix (normally ""). 19127 exeext="$exeext" 19128 19129 # Additional compiler flags for building library objects. 19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ 19131 pic_mode=$pic_mode 19132 19133 # What is the maximum length of a command? 19134 max_cmd_len=$lt_cv_sys_max_cmd_len 19135 19136 # Does compiler simultaneously support -c and -o options? 19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19138 19139 # Must we lock files when doing compilation? 19140 need_locks=$lt_need_locks 19141 19142 # Do we need the lib prefix for modules? 19143 need_lib_prefix=$need_lib_prefix 19144 19145 # Do we need a version for libraries? 19146 need_version=$need_version 19147 19148 # Whether dlopen is supported. 19149 dlopen_support=$enable_dlopen 19150 19151 # Whether dlopen of programs is supported. 19152 dlopen_self=$enable_dlopen_self 19153 19154 # Whether dlopen of statically linked programs is supported. 19155 dlopen_self_static=$enable_dlopen_self_static 19156 19157 # Compiler flag to prevent dynamic linking. 19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ 19159 19160 # Compiler flag to turn off builtin functions. 19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19162 19163 # Compiler flag to allow reflexive dlopens. 19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19165 19166 # Compiler flag to generate shared objects directly from archives. 19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19168 19169 # Compiler flag to generate thread-safe objects. 19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19171 19172 # Library versioning type. 19173 version_type=$version_type 19174 19175 # Format of library name prefix. 19176 libname_spec=$lt_libname_spec 19177 19178 # List of archive names. First name is the real one, the rest are links. 19179 # The last name is the one that the linker finds with -lNAME. 19180 library_names_spec=$lt_library_names_spec 19181 19182 # The coded name of the library, if different from the real name. 19183 soname_spec=$lt_soname_spec 19184 19185 # Commands used to build and install an old-style archive. 19186 RANLIB=$lt_RANLIB 19187 old_archive_cmds=$lt_old_archive_cmds_GCJ 19188 old_postinstall_cmds=$lt_old_postinstall_cmds 19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19190 19191 # Create an old-style archive from a shared archive. 19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19193 19194 # Create a temporary old-style archive to link instead of a shared archive. 19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19196 19197 # Commands used to build and install a shared archive. 19198 archive_cmds=$lt_archive_cmds_GCJ 19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19200 postinstall_cmds=$lt_postinstall_cmds 19201 postuninstall_cmds=$lt_postuninstall_cmds 19202 19203 # Commands used to build a loadable module (assumed same as above if empty) 19204 module_cmds=$lt_module_cmds_GCJ 19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19206 19207 # Commands to strip libraries. 19208 old_striplib=$lt_old_striplib 19209 striplib=$lt_striplib 19210 19211 # Dependencies to place before the objects being linked to create a 19212 # shared library. 19213 predep_objects=$lt_predep_objects_GCJ 19214 19215 # Dependencies to place after the objects being linked to create a 19216 # shared library. 19217 postdep_objects=$lt_postdep_objects_GCJ 19218 19219 # Dependencies to place before the objects being linked to create a 19220 # shared library. 19221 predeps=$lt_predeps_GCJ 19222 19223 # Dependencies to place after the objects being linked to create a 19224 # shared library. 19225 postdeps=$lt_postdeps_GCJ 19226 19227 # The library search path used internally by the compiler when linking 19228 # a shared library. 19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19230 19231 # Method to check whether dependent libraries are shared objects. 19232 deplibs_check_method=$lt_deplibs_check_method 19233 19234 # Command to use when deplibs_check_method == file_magic. 19235 file_magic_cmd=$lt_file_magic_cmd 19236 19237 # Flag that allows shared libraries with undefined symbols to be built. 19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19239 19240 # Flag that forces no undefined symbols. 19241 no_undefined_flag=$lt_no_undefined_flag_GCJ 19242 19243 # Commands used to finish a libtool library installation in a directory. 19244 finish_cmds=$lt_finish_cmds 19245 19246 # Same as above, but a single script fragment to be evaled but not shown. 19247 finish_eval=$lt_finish_eval 19248 19249 # Take the output of nm and produce a listing of raw symbols and C names. 19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19251 19252 # Transform the output of nm in a proper C declaration 19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19254 19255 # Transform the output of nm in a C name address pair 19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19257 19258 # This is the shared library runtime path variable. 19259 runpath_var=$runpath_var 19260 19261 # This is the shared library path variable. 19262 shlibpath_var=$shlibpath_var 19263 19264 # Is shlibpath searched before the hard-coded library search path? 19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19266 19267 # How to hardcode a shared library path into an executable. 19268 hardcode_action=$hardcode_action_GCJ 19269 19270 # Whether we should hardcode library paths into libraries. 19271 hardcode_into_libs=$hardcode_into_libs 19272 19273 # Flag to hardcode \$libdir into a binary during linking. 19274 # This must work even if \$libdir does not exist. 19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19276 19277 # If ld is used when linking, flag to hardcode \$libdir into 19278 # a binary during linking. This must work even if \$libdir does 19279 # not exist. 19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19281 19282 # Whether we need a single -rpath flag with a separated argument. 19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19284 19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19286 # resulting binary. 19287 hardcode_direct=$hardcode_direct_GCJ 19288 19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19290 # resulting binary. 19291 hardcode_minus_L=$hardcode_minus_L_GCJ 19292 19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19294 # the resulting binary. 19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19296 19297 # Set to yes if building a shared library automatically hardcodes DIR into the library 19298 # and all subsequent libraries and executables linked against it. 19299 hardcode_automatic=$hardcode_automatic_GCJ 19300 19301 # Variables whose values should be saved in libtool wrapper scripts and 19302 # restored at relink time. 19303 variables_saved_for_relink="$variables_saved_for_relink" 19304 19305 # Whether libtool must link a program against all its dependency libraries. 19306 link_all_deplibs=$link_all_deplibs_GCJ 19307 19308 # Compile-time system search path for libraries 19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19310 19311 # Run-time system search path for libraries 19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19313 19314 # Fix the shell variable \$srcfile for the compiler. 19315 fix_srcfile_path=$lt_fix_srcfile_path 19316 19317 # Set to yes if exported symbols are required. 19318 always_export_symbols=$always_export_symbols_GCJ 19319 19320 # The commands to list exported symbols. 19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19322 19323 # The commands to extract the exported symbol list from a shared archive. 19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19325 19326 # Symbols that should not be listed in the preloaded symbols. 19327 exclude_expsyms=$lt_exclude_expsyms_GCJ 19328 19329 # Symbols that must always be exported. 19330 include_expsyms=$lt_include_expsyms_GCJ 19331 19332 # ### END LIBTOOL TAG CONFIG: $tagname 19333 19334 __EOF__ 19335 19336 19337 else 19338 # If there is no Makefile yet, we rely on a make rule to execute 19339 # `config.status --recheck' to rerun these tests and create the 19340 # libtool script then. 19341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19342 if test -f "$ltmain_in"; then 19343 test -f Makefile && make "$ltmain" 19344 fi 19345 fi 19346 19347 19348 ac_ext=c 19349 ac_cpp='$CPP $CPPFLAGS' 19350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19352 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19353 19354 CC="$lt_save_CC" 19355 19356 else 19357 tagname="" 19358 fi 19359 ;; 19360 19361 RC) 19362 19363 19364 # Source file extension for RC test sources. 19365 ac_ext=rc 19366 19367 # Object file extension for compiled RC test sources. 19368 objext=o 19369 objext_RC=$objext 19370 19371 # Code to be used in simple compile tests 19372 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19373 19374 # Code to be used in simple link tests 19375 lt_simple_link_test_code="$lt_simple_compile_test_code" 19376 19377 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19378 19379 # If no C compiler was specified, use CC. 19380 LTCC=${LTCC-"$CC"} 19381 19382 # If no C compiler flags were specified, use CFLAGS. 19383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19384 19385 # Allow CC to be a program name with arguments. 19386 compiler=$CC 19387 19388 19389 # save warnings/boilerplate of simple test code 19390 ac_outfile=conftest.$ac_objext 19391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19393 _lt_compiler_boilerplate=`cat conftest.err` 19394 $rm conftest* 19395 19396 ac_outfile=conftest.$ac_objext 19397 echo "$lt_simple_link_test_code" >conftest.$ac_ext 19398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19399 _lt_linker_boilerplate=`cat conftest.err` 19400 $rm conftest* 19401 19402 19403 # Allow CC to be a program name with arguments. 19404 lt_save_CC="$CC" 19405 CC=${RC-"windres"} 19406 compiler=$CC 19407 compiler_RC=$CC 19408 for cc_temp in $compiler""; do 19409 case $cc_temp in 19410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19412 \-*) ;; 19413 *) break;; 19414 esac 19415 done 19416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19417 19418 lt_cv_prog_compiler_c_o_RC=yes 19419 19420 # The else clause should only fire when bootstrapping the 19421 # libtool distribution, otherwise you forgot to ship ltmain.sh 19422 # with your package, and you will get complaints that there are 19423 # no rules to generate ltmain.sh. 19424 if test -f "$ltmain"; then 19425 # See if we are running on zsh, and set the options which allow our commands through 19426 # without removal of \ escapes. 19427 if test -n "${ZSH_VERSION+set}" ; then 19428 setopt NO_GLOB_SUBST 19429 fi 19430 # Now quote all the things that may contain metacharacters while being 19431 # careful not to overquote the AC_SUBSTed values. We take copies of the 19432 # variables and quote the copies for generation of the libtool script. 19433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19434 SED SHELL STRIP \ 19435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19437 deplibs_check_method reload_flag reload_cmds need_locks \ 19438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19439 lt_cv_sys_global_symbol_to_c_name_address \ 19440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19441 old_postinstall_cmds old_postuninstall_cmds \ 19442 compiler_RC \ 19443 CC_RC \ 19444 LD_RC \ 19445 lt_prog_compiler_wl_RC \ 19446 lt_prog_compiler_pic_RC \ 19447 lt_prog_compiler_static_RC \ 19448 lt_prog_compiler_no_builtin_flag_RC \ 19449 export_dynamic_flag_spec_RC \ 19450 thread_safe_flag_spec_RC \ 19451 whole_archive_flag_spec_RC \ 19452 enable_shared_with_static_runtimes_RC \ 19453 old_archive_cmds_RC \ 19454 old_archive_from_new_cmds_RC \ 19455 predep_objects_RC \ 19456 postdep_objects_RC \ 19457 predeps_RC \ 19458 postdeps_RC \ 19459 compiler_lib_search_path_RC \ 19460 archive_cmds_RC \ 19461 archive_expsym_cmds_RC \ 19462 postinstall_cmds_RC \ 19463 postuninstall_cmds_RC \ 19464 old_archive_from_expsyms_cmds_RC \ 19465 allow_undefined_flag_RC \ 19466 no_undefined_flag_RC \ 19467 export_symbols_cmds_RC \ 19468 hardcode_libdir_flag_spec_RC \ 19469 hardcode_libdir_flag_spec_ld_RC \ 19470 hardcode_libdir_separator_RC \ 19471 hardcode_automatic_RC \ 19472 module_cmds_RC \ 19473 module_expsym_cmds_RC \ 19474 lt_cv_prog_compiler_c_o_RC \ 19475 fix_srcfile_path_RC \ 19476 exclude_expsyms_RC \ 19477 include_expsyms_RC; do 19478 19479 case $var in 19480 old_archive_cmds_RC | \ 19481 old_archive_from_new_cmds_RC | \ 19482 archive_cmds_RC | \ 19483 archive_expsym_cmds_RC | \ 19484 module_cmds_RC | \ 19485 module_expsym_cmds_RC | \ 19486 old_archive_from_expsyms_cmds_RC | \ 19487 export_symbols_cmds_RC | \ 19488 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19489 postinstall_cmds | postuninstall_cmds | \ 19490 old_postinstall_cmds | old_postuninstall_cmds | \ 19491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19492 # Double-quote double-evaled strings. 19493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19494 ;; 19495 *) 19496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19497 ;; 19498 esac 19499 done 19500 19501 case $lt_echo in 19502 *'\$0 --fallback-echo"') 19503 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19504 ;; 19505 esac 19506 19507 cfgfile="$ofile" 19508 19509 cat <<__EOF__ >> "$cfgfile" 19510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19511 19512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19513 19514 # Shell to use when invoking shell scripts. 19515 SHELL=$lt_SHELL 19516 19517 # Whether or not to build shared libraries. 19518 build_libtool_libs=$enable_shared 19519 19520 # Whether or not to build static libraries. 19521 build_old_libs=$enable_static 19522 19523 # Whether or not to add -lc for building shared libraries. 19524 build_libtool_need_lc=$archive_cmds_need_lc_RC 19525 19526 # Whether or not to disallow shared libs when runtime libs are static 19527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19528 19529 # Whether or not to optimize for fast installation. 19530 fast_install=$enable_fast_install 19531 19532 # The host system. 19533 host_alias=$host_alias 19534 host=$host 19535 host_os=$host_os 19536 19537 # The build system. 19538 build_alias=$build_alias 19539 build=$build 19540 build_os=$build_os 19541 19542 # An echo program that does not interpret backslashes. 19543 echo=$lt_echo 19544 19545 # The archiver. 19546 AR=$lt_AR 19547 AR_FLAGS=$lt_AR_FLAGS 19548 19549 # A C compiler. 19550 LTCC=$lt_LTCC 19551 19552 # LTCC compiler flags. 19553 LTCFLAGS=$lt_LTCFLAGS 19554 19555 # A language-specific compiler. 19556 CC=$lt_compiler_RC 19557 19558 # Is the compiler the GNU C compiler? 19559 with_gcc=$GCC_RC 19560 19561 # An ERE matcher. 19562 EGREP=$lt_EGREP 19563 19564 # The linker used to build libraries. 19565 LD=$lt_LD_RC 19566 19567 # Whether we need hard or soft links. 19568 LN_S=$lt_LN_S 19569 19570 # A BSD-compatible nm program. 19571 NM=$lt_NM 19572 19573 # A symbol stripping program 19574 STRIP=$lt_STRIP 19575 19576 # Used to examine libraries when file_magic_cmd begins "file" 19577 MAGIC_CMD=$MAGIC_CMD 19578 19579 # Used on cygwin: DLL creation program. 19580 DLLTOOL="$DLLTOOL" 19581 19582 # Used on cygwin: object dumper. 19583 OBJDUMP="$OBJDUMP" 19584 19585 # Used on cygwin: assembler. 19586 AS="$AS" 19587 19588 # The name of the directory that contains temporary libtool files. 19589 objdir=$objdir 19590 19591 # How to create reloadable object files. 19592 reload_flag=$lt_reload_flag 19593 reload_cmds=$lt_reload_cmds 19594 19595 # How to pass a linker flag through the compiler. 19596 wl=$lt_lt_prog_compiler_wl_RC 19597 19598 # Object file suffix (normally "o"). 19599 objext="$ac_objext" 19600 19601 # Old archive suffix (normally "a"). 19602 libext="$libext" 19603 19604 # Shared library suffix (normally ".so"). 19605 shrext_cmds='$shrext_cmds' 19606 19607 # Executable file suffix (normally ""). 19608 exeext="$exeext" 19609 19610 # Additional compiler flags for building library objects. 19611 pic_flag=$lt_lt_prog_compiler_pic_RC 19612 pic_mode=$pic_mode 19613 19614 # What is the maximum length of a command? 19615 max_cmd_len=$lt_cv_sys_max_cmd_len 19616 19617 # Does compiler simultaneously support -c and -o options? 19618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19619 19620 # Must we lock files when doing compilation? 19621 need_locks=$lt_need_locks 19622 19623 # Do we need the lib prefix for modules? 19624 need_lib_prefix=$need_lib_prefix 19625 19626 # Do we need a version for libraries? 19627 need_version=$need_version 19628 19629 # Whether dlopen is supported. 19630 dlopen_support=$enable_dlopen 19631 19632 # Whether dlopen of programs is supported. 19633 dlopen_self=$enable_dlopen_self 19634 19635 # Whether dlopen of statically linked programs is supported. 19636 dlopen_self_static=$enable_dlopen_self_static 19637 19638 # Compiler flag to prevent dynamic linking. 19639 link_static_flag=$lt_lt_prog_compiler_static_RC 19640 19641 # Compiler flag to turn off builtin functions. 19642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19643 19644 # Compiler flag to allow reflexive dlopens. 19645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19646 19647 # Compiler flag to generate shared objects directly from archives. 19648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19649 19650 # Compiler flag to generate thread-safe objects. 19651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19652 19653 # Library versioning type. 19654 version_type=$version_type 19655 19656 # Format of library name prefix. 19657 libname_spec=$lt_libname_spec 19658 19659 # List of archive names. First name is the real one, the rest are links. 19660 # The last name is the one that the linker finds with -lNAME. 19661 library_names_spec=$lt_library_names_spec 19662 19663 # The coded name of the library, if different from the real name. 19664 soname_spec=$lt_soname_spec 19665 19666 # Commands used to build and install an old-style archive. 19667 RANLIB=$lt_RANLIB 19668 old_archive_cmds=$lt_old_archive_cmds_RC 19669 old_postinstall_cmds=$lt_old_postinstall_cmds 19670 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19671 19672 # Create an old-style archive from a shared archive. 19673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19674 19675 # Create a temporary old-style archive to link instead of a shared archive. 19676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19677 19678 # Commands used to build and install a shared archive. 19679 archive_cmds=$lt_archive_cmds_RC 19680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19681 postinstall_cmds=$lt_postinstall_cmds 19682 postuninstall_cmds=$lt_postuninstall_cmds 19683 19684 # Commands used to build a loadable module (assumed same as above if empty) 19685 module_cmds=$lt_module_cmds_RC 19686 module_expsym_cmds=$lt_module_expsym_cmds_RC 19687 19688 # Commands to strip libraries. 19689 old_striplib=$lt_old_striplib 19690 striplib=$lt_striplib 19691 19692 # Dependencies to place before the objects being linked to create a 19693 # shared library. 19694 predep_objects=$lt_predep_objects_RC 19695 19696 # Dependencies to place after the objects being linked to create a 19697 # shared library. 19698 postdep_objects=$lt_postdep_objects_RC 19699 19700 # Dependencies to place before the objects being linked to create a 19701 # shared library. 19702 predeps=$lt_predeps_RC 19703 19704 # Dependencies to place after the objects being linked to create a 19705 # shared library. 19706 postdeps=$lt_postdeps_RC 19707 19708 # The library search path used internally by the compiler when linking 19709 # a shared library. 19710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19711 19712 # Method to check whether dependent libraries are shared objects. 19713 deplibs_check_method=$lt_deplibs_check_method 19714 19715 # Command to use when deplibs_check_method == file_magic. 19716 file_magic_cmd=$lt_file_magic_cmd 19717 19718 # Flag that allows shared libraries with undefined symbols to be built. 19719 allow_undefined_flag=$lt_allow_undefined_flag_RC 19720 19721 # Flag that forces no undefined symbols. 19722 no_undefined_flag=$lt_no_undefined_flag_RC 19723 19724 # Commands used to finish a libtool library installation in a directory. 19725 finish_cmds=$lt_finish_cmds 19726 19727 # Same as above, but a single script fragment to be evaled but not shown. 19728 finish_eval=$lt_finish_eval 19729 19730 # Take the output of nm and produce a listing of raw symbols and C names. 19731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19732 19733 # Transform the output of nm in a proper C declaration 19734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19735 19736 # Transform the output of nm in a C name address pair 19737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19738 19739 # This is the shared library runtime path variable. 19740 runpath_var=$runpath_var 19741 19742 # This is the shared library path variable. 19743 shlibpath_var=$shlibpath_var 19744 19745 # Is shlibpath searched before the hard-coded library search path? 19746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19747 19748 # How to hardcode a shared library path into an executable. 19749 hardcode_action=$hardcode_action_RC 19750 19751 # Whether we should hardcode library paths into libraries. 19752 hardcode_into_libs=$hardcode_into_libs 19753 19754 # Flag to hardcode \$libdir into a binary during linking. 19755 # This must work even if \$libdir does not exist. 19756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19757 19758 # If ld is used when linking, flag to hardcode \$libdir into 19759 # a binary during linking. This must work even if \$libdir does 19760 # not exist. 19761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19762 19763 # Whether we need a single -rpath flag with a separated argument. 19764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19765 19766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19767 # resulting binary. 19768 hardcode_direct=$hardcode_direct_RC 19769 19770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19771 # resulting binary. 19772 hardcode_minus_L=$hardcode_minus_L_RC 19773 19774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19775 # the resulting binary. 19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19777 19778 # Set to yes if building a shared library automatically hardcodes DIR into the library 19779 # and all subsequent libraries and executables linked against it. 19780 hardcode_automatic=$hardcode_automatic_RC 19781 19782 # Variables whose values should be saved in libtool wrapper scripts and 19783 # restored at relink time. 19784 variables_saved_for_relink="$variables_saved_for_relink" 19785 19786 # Whether libtool must link a program against all its dependency libraries. 19787 link_all_deplibs=$link_all_deplibs_RC 19788 19789 # Compile-time system search path for libraries 19790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19791 19792 # Run-time system search path for libraries 19793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19794 19795 # Fix the shell variable \$srcfile for the compiler. 19796 fix_srcfile_path=$lt_fix_srcfile_path 19797 19798 # Set to yes if exported symbols are required. 19799 always_export_symbols=$always_export_symbols_RC 19800 19801 # The commands to list exported symbols. 19802 export_symbols_cmds=$lt_export_symbols_cmds_RC 19803 19804 # The commands to extract the exported symbol list from a shared archive. 19805 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19806 19807 # Symbols that should not be listed in the preloaded symbols. 19808 exclude_expsyms=$lt_exclude_expsyms_RC 19809 19810 # Symbols that must always be exported. 19811 include_expsyms=$lt_include_expsyms_RC 19812 19813 # ### END LIBTOOL TAG CONFIG: $tagname 19814 19815 __EOF__ 19816 19817 19818 else 19819 # If there is no Makefile yet, we rely on a make rule to execute 19820 # `config.status --recheck' to rerun these tests and create the 19821 # libtool script then. 19822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19823 if test -f "$ltmain_in"; then 19824 test -f Makefile && make "$ltmain" 19825 fi 19826 fi 19827 19828 19829 ac_ext=c 19830 ac_cpp='$CPP $CPPFLAGS' 19831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19833 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19834 19835 CC="$lt_save_CC" 19836 19837 ;; 19838 19839 *) 19840 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19841 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19842 { (exit 1); exit 1; }; } 19843 ;; 19844 esac 19845 19846 # Append the new tag name to the list of available tags. 19847 if test -n "$tagname" ; then 19848 available_tags="$available_tags $tagname" 19849 fi 19850 fi 19851 done 19852 IFS="$lt_save_ifs" 19853 19854 # Now substitute the updated list of available tags. 19855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19856 mv "${ofile}T" "$ofile" 19857 chmod +x "$ofile" 19858 else 19859 rm -f "${ofile}T" 19860 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19861 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19862 { (exit 1); exit 1; }; } 19863 fi 19864 fi 19865 19866 19867 19868 # This can be used to rebuild libtool when needed 19869 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19870 19871 # Always use our own libtool. 19872 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19873 19874 # Prevent multiple expansion 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19897 $as_echo_n "checking for ANSI C header files... " >&6; } 19898 if test "${ac_cv_header_stdc+set}" = set; then 19899 $as_echo_n "(cached) " >&6 19900 else 19901 cat >conftest.$ac_ext <<_ACEOF 19902 /* confdefs.h. */ 19903 _ACEOF 19904 cat confdefs.h >>conftest.$ac_ext 19905 cat >>conftest.$ac_ext <<_ACEOF 19906 /* end confdefs.h. */ 19907 #include <stdlib.h> 19908 #include <stdarg.h> 19909 #include <string.h> 19910 #include <float.h> 19911 19912 int 19913 main () 19914 { 19915 19916 ; 19917 return 0; 19918 } 19919 _ACEOF 19920 rm -f conftest.$ac_objext 19921 if { (ac_try="$ac_compile" 19922 case "(($ac_try" in 19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19924 *) ac_try_echo=$ac_try;; 19925 esac 19926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19927 $as_echo "$ac_try_echo") >&5 19928 (eval "$ac_compile") 2>conftest.er1 19929 ac_status=$? 19930 grep -v '^ *+' conftest.er1 >conftest.err 19931 rm -f conftest.er1 19932 cat conftest.err >&5 19933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19934 (exit $ac_status); } && { 19935 test -z "$ac_c_werror_flag" || 19936 test ! -s conftest.err 19937 } && test -s conftest.$ac_objext; then 19938 ac_cv_header_stdc=yes 19939 else 19940 $as_echo "$as_me: failed program was:" >&5 19941 sed 's/^/| /' conftest.$ac_ext >&5 19942 19943 ac_cv_header_stdc=no 19944 fi 19945 19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19947 19948 if test $ac_cv_header_stdc = yes; then 19949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19950 cat >conftest.$ac_ext <<_ACEOF 19951 /* confdefs.h. */ 19952 _ACEOF 19953 cat confdefs.h >>conftest.$ac_ext 19954 cat >>conftest.$ac_ext <<_ACEOF 19955 /* end confdefs.h. */ 19956 #include <string.h> 19957 19958 _ACEOF 19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19960 $EGREP "memchr" >/dev/null 2>&1; then 19961 : 19962 else 19963 ac_cv_header_stdc=no 19964 fi 19965 rm -f conftest* 19966 19967 fi 19968 19969 if test $ac_cv_header_stdc = yes; then 19970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19971 cat >conftest.$ac_ext <<_ACEOF 19972 /* confdefs.h. */ 19973 _ACEOF 19974 cat confdefs.h >>conftest.$ac_ext 19975 cat >>conftest.$ac_ext <<_ACEOF 19976 /* end confdefs.h. */ 19977 #include <stdlib.h> 19978 19979 _ACEOF 19980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19981 $EGREP "free" >/dev/null 2>&1; then 19982 : 19983 else 19984 ac_cv_header_stdc=no 19985 fi 19986 rm -f conftest* 19987 19988 fi 19989 19990 if test $ac_cv_header_stdc = yes; then 19991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19992 if test "$cross_compiling" = yes; then 19993 : 19994 else 19995 cat >conftest.$ac_ext <<_ACEOF 19996 /* confdefs.h. */ 19997 _ACEOF 19998 cat confdefs.h >>conftest.$ac_ext 19999 cat >>conftest.$ac_ext <<_ACEOF 20000 /* end confdefs.h. */ 20001 #include <ctype.h> 20002 #include <stdlib.h> 20003 #if ((' ' & 0x0FF) == 0x020) 20004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20006 #else 20007 # define ISLOWER(c) \ 20008 (('a' <= (c) && (c) <= 'i') \ 20009 || ('j' <= (c) && (c) <= 'r') \ 20010 || ('s' <= (c) && (c) <= 'z')) 20011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20012 #endif 20013 20014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20015 int 20016 main () 20017 { 20018 int i; 20019 for (i = 0; i < 256; i++) 20020 if (XOR (islower (i), ISLOWER (i)) 20021 || toupper (i) != TOUPPER (i)) 20022 return 2; 20023 return 0; 20024 } 20025 _ACEOF 20026 rm -f conftest$ac_exeext 20027 if { (ac_try="$ac_link" 20028 case "(($ac_try" in 20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20030 *) ac_try_echo=$ac_try;; 20031 esac 20032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20033 $as_echo "$ac_try_echo") >&5 20034 (eval "$ac_link") 2>&5 20035 ac_status=$? 20036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20038 { (case "(($ac_try" in 20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20040 *) ac_try_echo=$ac_try;; 20041 esac 20042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20043 $as_echo "$ac_try_echo") >&5 20044 (eval "$ac_try") 2>&5 20045 ac_status=$? 20046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20047 (exit $ac_status); }; }; then 20048 : 20049 else 20050 $as_echo "$as_me: program exited with status $ac_status" >&5 20051 $as_echo "$as_me: failed program was:" >&5 20052 sed 's/^/| /' conftest.$ac_ext >&5 20053 20054 ( exit $ac_status ) 20055 ac_cv_header_stdc=no 20056 fi 20057 rm -rf conftest.dSYM 20058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20059 fi 20060 20061 20062 fi 20063 fi 20064 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20065 $as_echo "$ac_cv_header_stdc" >&6; } 20066 if test $ac_cv_header_stdc = yes; then 20067 20068 cat >>confdefs.h <<\_ACEOF 20069 #define STDC_HEADERS 1 20070 _ACEOF 20071 20072 fi 20073 20074 20075 20076 20077 20078 for ac_header in sys/types.h sys/param.h sys/stat.h sys/time.h 20079 do 20080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20083 $as_echo_n "checking for $ac_header... " >&6; } 20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20085 $as_echo_n "(cached) " >&6 20086 fi 20087 ac_res=`eval 'as_val=${'$as_ac_Header'} 20088 $as_echo "$as_val"'` 20089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20090 $as_echo "$ac_res" >&6; } 20091 else 20092 # Is the header compilable? 20093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20094 $as_echo_n "checking $ac_header usability... " >&6; } 20095 cat >conftest.$ac_ext <<_ACEOF 20096 /* confdefs.h. */ 20097 _ACEOF 20098 cat confdefs.h >>conftest.$ac_ext 20099 cat >>conftest.$ac_ext <<_ACEOF 20100 /* end confdefs.h. */ 20101 $ac_includes_default 20102 #include <$ac_header> 20103 _ACEOF 20104 rm -f conftest.$ac_objext 20105 if { (ac_try="$ac_compile" 20106 case "(($ac_try" in 20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20108 *) ac_try_echo=$ac_try;; 20109 esac 20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20111 $as_echo "$ac_try_echo") >&5 20112 (eval "$ac_compile") 2>conftest.er1 20113 ac_status=$? 20114 grep -v '^ *+' conftest.er1 >conftest.err 20115 rm -f conftest.er1 20116 cat conftest.err >&5 20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20118 (exit $ac_status); } && { 20119 test -z "$ac_c_werror_flag" || 20120 test ! -s conftest.err 20121 } && test -s conftest.$ac_objext; then 20122 ac_header_compiler=yes 20123 else 20124 $as_echo "$as_me: failed program was:" >&5 20125 sed 's/^/| /' conftest.$ac_ext >&5 20126 20127 ac_header_compiler=no 20128 fi 20129 20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20132 $as_echo "$ac_header_compiler" >&6; } 20133 20134 # Is the header present? 20135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20136 $as_echo_n "checking $ac_header presence... " >&6; } 20137 cat >conftest.$ac_ext <<_ACEOF 20138 /* confdefs.h. */ 20139 _ACEOF 20140 cat confdefs.h >>conftest.$ac_ext 20141 cat >>conftest.$ac_ext <<_ACEOF 20142 /* end confdefs.h. */ 20143 #include <$ac_header> 20144 _ACEOF 20145 if { (ac_try="$ac_cpp conftest.$ac_ext" 20146 case "(($ac_try" in 20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20148 *) ac_try_echo=$ac_try;; 20149 esac 20150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20151 $as_echo "$ac_try_echo") >&5 20152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20153 ac_status=$? 20154 grep -v '^ *+' conftest.er1 >conftest.err 20155 rm -f conftest.er1 20156 cat conftest.err >&5 20157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20158 (exit $ac_status); } >/dev/null && { 20159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20160 test ! -s conftest.err 20161 }; then 20162 ac_header_preproc=yes 20163 else 20164 $as_echo "$as_me: failed program was:" >&5 20165 sed 's/^/| /' conftest.$ac_ext >&5 20166 20167 ac_header_preproc=no 20168 fi 20169 20170 rm -f conftest.err conftest.$ac_ext 20171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20172 $as_echo "$ac_header_preproc" >&6; } 20173 20174 # So? What about this header? 20175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20176 yes:no: ) 20177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20181 ac_header_preproc=yes 20182 ;; 20183 no:yes:* ) 20184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20196 ( cat <<\_ASBOX 20197 ## ----------------------------------------------- ## 20198 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20199 ## ----------------------------------------------- ## 20200 _ASBOX 20201 ) | sed "s/^/$as_me: WARNING: /" >&2 20202 ;; 20203 esac 20204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20205 $as_echo_n "checking for $ac_header... " >&6; } 20206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20207 $as_echo_n "(cached) " >&6 20208 else 20209 eval "$as_ac_Header=\$ac_header_preproc" 20210 fi 20211 ac_res=`eval 'as_val=${'$as_ac_Header'} 20212 $as_echo "$as_val"'` 20213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20214 $as_echo "$ac_res" >&6; } 20215 20216 fi 20217 as_val=`eval 'as_val=${'$as_ac_Header'} 20218 $as_echo "$as_val"'` 20219 if test "x$as_val" = x""yes; then 20220 cat >>confdefs.h <<_ACEOF 20221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20222 _ACEOF 20223 20224 fi 20225 20226 done 20227 20228 20229 20230 20231 20232 20233 for ac_header in sys/mman.h sys/uio.h sys/socket.h sys/time.h sys/vfs.h 20234 do 20235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20238 $as_echo_n "checking for $ac_header... " >&6; } 20239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20240 $as_echo_n "(cached) " >&6 20241 fi 20242 ac_res=`eval 'as_val=${'$as_ac_Header'} 20243 $as_echo "$as_val"'` 20244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20245 $as_echo "$ac_res" >&6; } 20246 else 20247 # Is the header compilable? 20248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20249 $as_echo_n "checking $ac_header usability... " >&6; } 20250 cat >conftest.$ac_ext <<_ACEOF 20251 /* confdefs.h. */ 20252 _ACEOF 20253 cat confdefs.h >>conftest.$ac_ext 20254 cat >>conftest.$ac_ext <<_ACEOF 20255 /* end confdefs.h. */ 20256 $ac_includes_default 20257 #include <$ac_header> 20258 _ACEOF 20259 rm -f conftest.$ac_objext 20260 if { (ac_try="$ac_compile" 20261 case "(($ac_try" in 20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20263 *) ac_try_echo=$ac_try;; 20264 esac 20265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20266 $as_echo "$ac_try_echo") >&5 20267 (eval "$ac_compile") 2>conftest.er1 20268 ac_status=$? 20269 grep -v '^ *+' conftest.er1 >conftest.err 20270 rm -f conftest.er1 20271 cat conftest.err >&5 20272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20273 (exit $ac_status); } && { 20274 test -z "$ac_c_werror_flag" || 20275 test ! -s conftest.err 20276 } && test -s conftest.$ac_objext; then 20277 ac_header_compiler=yes 20278 else 20279 $as_echo "$as_me: failed program was:" >&5 20280 sed 's/^/| /' conftest.$ac_ext >&5 20281 20282 ac_header_compiler=no 20283 fi 20284 20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20287 $as_echo "$ac_header_compiler" >&6; } 20288 20289 # Is the header present? 20290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20291 $as_echo_n "checking $ac_header presence... " >&6; } 20292 cat >conftest.$ac_ext <<_ACEOF 20293 /* confdefs.h. */ 20294 _ACEOF 20295 cat confdefs.h >>conftest.$ac_ext 20296 cat >>conftest.$ac_ext <<_ACEOF 20297 /* end confdefs.h. */ 20298 #include <$ac_header> 20299 _ACEOF 20300 if { (ac_try="$ac_cpp conftest.$ac_ext" 20301 case "(($ac_try" in 20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20303 *) ac_try_echo=$ac_try;; 20304 esac 20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20306 $as_echo "$ac_try_echo") >&5 20307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20308 ac_status=$? 20309 grep -v '^ *+' conftest.er1 >conftest.err 20310 rm -f conftest.er1 20311 cat conftest.err >&5 20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20313 (exit $ac_status); } >/dev/null && { 20314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20315 test ! -s conftest.err 20316 }; then 20317 ac_header_preproc=yes 20318 else 20319 $as_echo "$as_me: failed program was:" >&5 20320 sed 's/^/| /' conftest.$ac_ext >&5 20321 20322 ac_header_preproc=no 20323 fi 20324 20325 rm -f conftest.err conftest.$ac_ext 20326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20327 $as_echo "$ac_header_preproc" >&6; } 20328 20329 # So? What about this header? 20330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20331 yes:no: ) 20332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20336 ac_header_preproc=yes 20337 ;; 20338 no:yes:* ) 20339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20342 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20346 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20351 ( cat <<\_ASBOX 20352 ## ----------------------------------------------- ## 20353 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20354 ## ----------------------------------------------- ## 20355 _ASBOX 20356 ) | sed "s/^/$as_me: WARNING: /" >&2 20357 ;; 20358 esac 20359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20360 $as_echo_n "checking for $ac_header... " >&6; } 20361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20362 $as_echo_n "(cached) " >&6 20363 else 20364 eval "$as_ac_Header=\$ac_header_preproc" 20365 fi 20366 ac_res=`eval 'as_val=${'$as_ac_Header'} 20367 $as_echo "$as_val"'` 20368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20369 $as_echo "$ac_res" >&6; } 20370 20371 fi 20372 as_val=`eval 'as_val=${'$as_ac_Header'} 20373 $as_echo "$as_val"'` 20374 if test "x$as_val" = x""yes; then 20375 cat >>confdefs.h <<_ACEOF 20376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20377 _ACEOF 20378 20379 fi 20380 20381 done 20382 20383 20384 20385 20386 20387 20388 for ac_header in arpa/inet.h netinet/in.h netinet/tcp.h netdb.h poll.h 20389 do 20390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20393 $as_echo_n "checking for $ac_header... " >&6; } 20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20395 $as_echo_n "(cached) " >&6 20396 fi 20397 ac_res=`eval 'as_val=${'$as_ac_Header'} 20398 $as_echo "$as_val"'` 20399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20400 $as_echo "$ac_res" >&6; } 20401 else 20402 # Is the header compilable? 20403 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20404 $as_echo_n "checking $ac_header usability... " >&6; } 20405 cat >conftest.$ac_ext <<_ACEOF 20406 /* confdefs.h. */ 20407 _ACEOF 20408 cat confdefs.h >>conftest.$ac_ext 20409 cat >>conftest.$ac_ext <<_ACEOF 20410 /* end confdefs.h. */ 20411 $ac_includes_default 20412 #include <$ac_header> 20413 _ACEOF 20414 rm -f conftest.$ac_objext 20415 if { (ac_try="$ac_compile" 20416 case "(($ac_try" in 20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20418 *) ac_try_echo=$ac_try;; 20419 esac 20420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20421 $as_echo "$ac_try_echo") >&5 20422 (eval "$ac_compile") 2>conftest.er1 20423 ac_status=$? 20424 grep -v '^ *+' conftest.er1 >conftest.err 20425 rm -f conftest.er1 20426 cat conftest.err >&5 20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20428 (exit $ac_status); } && { 20429 test -z "$ac_c_werror_flag" || 20430 test ! -s conftest.err 20431 } && test -s conftest.$ac_objext; then 20432 ac_header_compiler=yes 20433 else 20434 $as_echo "$as_me: failed program was:" >&5 20435 sed 's/^/| /' conftest.$ac_ext >&5 20436 20437 ac_header_compiler=no 20438 fi 20439 20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20442 $as_echo "$ac_header_compiler" >&6; } 20443 20444 # Is the header present? 20445 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20446 $as_echo_n "checking $ac_header presence... " >&6; } 20447 cat >conftest.$ac_ext <<_ACEOF 20448 /* confdefs.h. */ 20449 _ACEOF 20450 cat confdefs.h >>conftest.$ac_ext 20451 cat >>conftest.$ac_ext <<_ACEOF 20452 /* end confdefs.h. */ 20453 #include <$ac_header> 20454 _ACEOF 20455 if { (ac_try="$ac_cpp conftest.$ac_ext" 20456 case "(($ac_try" in 20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20458 *) ac_try_echo=$ac_try;; 20459 esac 20460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20461 $as_echo "$ac_try_echo") >&5 20462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20463 ac_status=$? 20464 grep -v '^ *+' conftest.er1 >conftest.err 20465 rm -f conftest.er1 20466 cat conftest.err >&5 20467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20468 (exit $ac_status); } >/dev/null && { 20469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20470 test ! -s conftest.err 20471 }; then 20472 ac_header_preproc=yes 20473 else 20474 $as_echo "$as_me: failed program was:" >&5 20475 sed 's/^/| /' conftest.$ac_ext >&5 20476 20477 ac_header_preproc=no 20478 fi 20479 20480 rm -f conftest.err conftest.$ac_ext 20481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20482 $as_echo "$ac_header_preproc" >&6; } 20483 20484 # So? What about this header? 20485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20486 yes:no: ) 20487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20488 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20491 ac_header_preproc=yes 20492 ;; 20493 no:yes:* ) 20494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20495 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20497 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20499 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20501 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20503 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20505 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20506 ( cat <<\_ASBOX 20507 ## ----------------------------------------------- ## 20508 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20509 ## ----------------------------------------------- ## 20510 _ASBOX 20511 ) | sed "s/^/$as_me: WARNING: /" >&2 20512 ;; 20513 esac 20514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20515 $as_echo_n "checking for $ac_header... " >&6; } 20516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20517 $as_echo_n "(cached) " >&6 20518 else 20519 eval "$as_ac_Header=\$ac_header_preproc" 20520 fi 20521 ac_res=`eval 'as_val=${'$as_ac_Header'} 20522 $as_echo "$as_val"'` 20523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20524 $as_echo "$ac_res" >&6; } 20525 20526 fi 20527 as_val=`eval 'as_val=${'$as_ac_Header'} 20528 $as_echo "$as_val"'` 20529 if test "x$as_val" = x""yes; then 20530 cat >>confdefs.h <<_ACEOF 20531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20532 _ACEOF 20533 20534 fi 20535 20536 done 20537 20538 20539 20540 20541 20542 for ac_header in asm/byteorder.h sys/bswap.h sys/byteorder.h sys/select.h 20543 do 20544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20547 $as_echo_n "checking for $ac_header... " >&6; } 20548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20549 $as_echo_n "(cached) " >&6 20550 fi 20551 ac_res=`eval 'as_val=${'$as_ac_Header'} 20552 $as_echo "$as_val"'` 20553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20554 $as_echo "$ac_res" >&6; } 20555 else 20556 # Is the header compilable? 20557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20558 $as_echo_n "checking $ac_header usability... " >&6; } 20559 cat >conftest.$ac_ext <<_ACEOF 20560 /* confdefs.h. */ 20561 _ACEOF 20562 cat confdefs.h >>conftest.$ac_ext 20563 cat >>conftest.$ac_ext <<_ACEOF 20564 /* end confdefs.h. */ 20565 $ac_includes_default 20566 #include <$ac_header> 20567 _ACEOF 20568 rm -f conftest.$ac_objext 20569 if { (ac_try="$ac_compile" 20570 case "(($ac_try" in 20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20572 *) ac_try_echo=$ac_try;; 20573 esac 20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20575 $as_echo "$ac_try_echo") >&5 20576 (eval "$ac_compile") 2>conftest.er1 20577 ac_status=$? 20578 grep -v '^ *+' conftest.er1 >conftest.err 20579 rm -f conftest.er1 20580 cat conftest.err >&5 20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20582 (exit $ac_status); } && { 20583 test -z "$ac_c_werror_flag" || 20584 test ! -s conftest.err 20585 } && test -s conftest.$ac_objext; then 20586 ac_header_compiler=yes 20587 else 20588 $as_echo "$as_me: failed program was:" >&5 20589 sed 's/^/| /' conftest.$ac_ext >&5 20590 20591 ac_header_compiler=no 20592 fi 20593 20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20596 $as_echo "$ac_header_compiler" >&6; } 20597 20598 # Is the header present? 20599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20600 $as_echo_n "checking $ac_header presence... " >&6; } 20601 cat >conftest.$ac_ext <<_ACEOF 20602 /* confdefs.h. */ 20603 _ACEOF 20604 cat confdefs.h >>conftest.$ac_ext 20605 cat >>conftest.$ac_ext <<_ACEOF 20606 /* end confdefs.h. */ 20607 #include <$ac_header> 20608 _ACEOF 20609 if { (ac_try="$ac_cpp conftest.$ac_ext" 20610 case "(($ac_try" in 20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20612 *) ac_try_echo=$ac_try;; 20613 esac 20614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20615 $as_echo "$ac_try_echo") >&5 20616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20617 ac_status=$? 20618 grep -v '^ *+' conftest.er1 >conftest.err 20619 rm -f conftest.er1 20620 cat conftest.err >&5 20621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20622 (exit $ac_status); } >/dev/null && { 20623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20624 test ! -s conftest.err 20625 }; then 20626 ac_header_preproc=yes 20627 else 20628 $as_echo "$as_me: failed program was:" >&5 20629 sed 's/^/| /' conftest.$ac_ext >&5 20630 20631 ac_header_preproc=no 20632 fi 20633 20634 rm -f conftest.err conftest.$ac_ext 20635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20636 $as_echo "$ac_header_preproc" >&6; } 20637 20638 # So? What about this header? 20639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20640 yes:no: ) 20641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20645 ac_header_preproc=yes 20646 ;; 20647 no:yes:* ) 20648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20651 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20655 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20660 ( cat <<\_ASBOX 20661 ## ----------------------------------------------- ## 20662 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20663 ## ----------------------------------------------- ## 20664 _ASBOX 20665 ) | sed "s/^/$as_me: WARNING: /" >&2 20666 ;; 20667 esac 20668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20669 $as_echo_n "checking for $ac_header... " >&6; } 20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20671 $as_echo_n "(cached) " >&6 20672 else 20673 eval "$as_ac_Header=\$ac_header_preproc" 20674 fi 20675 ac_res=`eval 'as_val=${'$as_ac_Header'} 20676 $as_echo "$as_val"'` 20677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20678 $as_echo "$ac_res" >&6; } 20679 20680 fi 20681 as_val=`eval 'as_val=${'$as_ac_Header'} 20682 $as_echo "$as_val"'` 20683 if test "x$as_val" = x""yes; then 20684 cat >>confdefs.h <<_ACEOF 20685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20686 _ACEOF 20687 20688 fi 20689 20690 done 20691 20692 20693 20694 20695 for ac_header in libkern/OSByteOrder.h byteswap.h machine/endian.h 20696 do 20697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20700 $as_echo_n "checking for $ac_header... " >&6; } 20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20702 $as_echo_n "(cached) " >&6 20703 fi 20704 ac_res=`eval 'as_val=${'$as_ac_Header'} 20705 $as_echo "$as_val"'` 20706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20707 $as_echo "$ac_res" >&6; } 20708 else 20709 # Is the header compilable? 20710 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20711 $as_echo_n "checking $ac_header usability... " >&6; } 20712 cat >conftest.$ac_ext <<_ACEOF 20713 /* confdefs.h. */ 20714 _ACEOF 20715 cat confdefs.h >>conftest.$ac_ext 20716 cat >>conftest.$ac_ext <<_ACEOF 20717 /* end confdefs.h. */ 20718 $ac_includes_default 20719 #include <$ac_header> 20720 _ACEOF 20721 rm -f conftest.$ac_objext 20722 if { (ac_try="$ac_compile" 20723 case "(($ac_try" in 20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20725 *) ac_try_echo=$ac_try;; 20726 esac 20727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20728 $as_echo "$ac_try_echo") >&5 20729 (eval "$ac_compile") 2>conftest.er1 20730 ac_status=$? 20731 grep -v '^ *+' conftest.er1 >conftest.err 20732 rm -f conftest.er1 20733 cat conftest.err >&5 20734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20735 (exit $ac_status); } && { 20736 test -z "$ac_c_werror_flag" || 20737 test ! -s conftest.err 20738 } && test -s conftest.$ac_objext; then 20739 ac_header_compiler=yes 20740 else 20741 $as_echo "$as_me: failed program was:" >&5 20742 sed 's/^/| /' conftest.$ac_ext >&5 20743 20744 ac_header_compiler=no 20745 fi 20746 20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20749 $as_echo "$ac_header_compiler" >&6; } 20750 20751 # Is the header present? 20752 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20753 $as_echo_n "checking $ac_header presence... " >&6; } 20754 cat >conftest.$ac_ext <<_ACEOF 20755 /* confdefs.h. */ 20756 _ACEOF 20757 cat confdefs.h >>conftest.$ac_ext 20758 cat >>conftest.$ac_ext <<_ACEOF 20759 /* end confdefs.h. */ 20760 #include <$ac_header> 20761 _ACEOF 20762 if { (ac_try="$ac_cpp conftest.$ac_ext" 20763 case "(($ac_try" in 20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20765 *) ac_try_echo=$ac_try;; 20766 esac 20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20768 $as_echo "$ac_try_echo") >&5 20769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20770 ac_status=$? 20771 grep -v '^ *+' conftest.er1 >conftest.err 20772 rm -f conftest.er1 20773 cat conftest.err >&5 20774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20775 (exit $ac_status); } >/dev/null && { 20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20777 test ! -s conftest.err 20778 }; then 20779 ac_header_preproc=yes 20780 else 20781 $as_echo "$as_me: failed program was:" >&5 20782 sed 's/^/| /' conftest.$ac_ext >&5 20783 20784 ac_header_preproc=no 20785 fi 20786 20787 rm -f conftest.err conftest.$ac_ext 20788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20789 $as_echo "$ac_header_preproc" >&6; } 20790 20791 # So? What about this header? 20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20793 yes:no: ) 20794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20795 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20798 ac_header_preproc=yes 20799 ;; 20800 no:yes:* ) 20801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20802 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20804 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20806 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20808 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20812 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20813 ( cat <<\_ASBOX 20814 ## ----------------------------------------------- ## 20815 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20816 ## ----------------------------------------------- ## 20817 _ASBOX 20818 ) | sed "s/^/$as_me: WARNING: /" >&2 20819 ;; 20820 esac 20821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20822 $as_echo_n "checking for $ac_header... " >&6; } 20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20824 $as_echo_n "(cached) " >&6 20825 else 20826 eval "$as_ac_Header=\$ac_header_preproc" 20827 fi 20828 ac_res=`eval 'as_val=${'$as_ac_Header'} 20829 $as_echo "$as_val"'` 20830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20831 $as_echo "$ac_res" >&6; } 20832 20833 fi 20834 as_val=`eval 'as_val=${'$as_ac_Header'} 20835 $as_echo "$as_val"'` 20836 if test "x$as_val" = x""yes; then 20837 cat >>confdefs.h <<_ACEOF 20838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20839 _ACEOF 20840 20841 fi 20842 20843 done 20844 20845 20846 20847 20848 20849 20850 20851 20852 for ac_header in ctype.h errno.h fcntl.h pthread.h pwd.h signal.h stdint.h 20853 do 20854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20857 $as_echo_n "checking for $ac_header... " >&6; } 20858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20859 $as_echo_n "(cached) " >&6 20860 fi 20861 ac_res=`eval 'as_val=${'$as_ac_Header'} 20862 $as_echo "$as_val"'` 20863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20864 $as_echo "$ac_res" >&6; } 20865 else 20866 # Is the header compilable? 20867 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20868 $as_echo_n "checking $ac_header usability... " >&6; } 20869 cat >conftest.$ac_ext <<_ACEOF 20870 /* confdefs.h. */ 20871 _ACEOF 20872 cat confdefs.h >>conftest.$ac_ext 20873 cat >>conftest.$ac_ext <<_ACEOF 20874 /* end confdefs.h. */ 20875 $ac_includes_default 20876 #include <$ac_header> 20877 _ACEOF 20878 rm -f conftest.$ac_objext 20879 if { (ac_try="$ac_compile" 20880 case "(($ac_try" in 20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20882 *) ac_try_echo=$ac_try;; 20883 esac 20884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20885 $as_echo "$ac_try_echo") >&5 20886 (eval "$ac_compile") 2>conftest.er1 20887 ac_status=$? 20888 grep -v '^ *+' conftest.er1 >conftest.err 20889 rm -f conftest.er1 20890 cat conftest.err >&5 20891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20892 (exit $ac_status); } && { 20893 test -z "$ac_c_werror_flag" || 20894 test ! -s conftest.err 20895 } && test -s conftest.$ac_objext; then 20896 ac_header_compiler=yes 20897 else 20898 $as_echo "$as_me: failed program was:" >&5 20899 sed 's/^/| /' conftest.$ac_ext >&5 20900 20901 ac_header_compiler=no 20902 fi 20903 20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20905 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20906 $as_echo "$ac_header_compiler" >&6; } 20907 20908 # Is the header present? 20909 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20910 $as_echo_n "checking $ac_header presence... " >&6; } 20911 cat >conftest.$ac_ext <<_ACEOF 20912 /* confdefs.h. */ 20913 _ACEOF 20914 cat confdefs.h >>conftest.$ac_ext 20915 cat >>conftest.$ac_ext <<_ACEOF 20916 /* end confdefs.h. */ 20917 #include <$ac_header> 20918 _ACEOF 20919 if { (ac_try="$ac_cpp conftest.$ac_ext" 20920 case "(($ac_try" in 20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20922 *) ac_try_echo=$ac_try;; 20923 esac 20924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20925 $as_echo "$ac_try_echo") >&5 20926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20927 ac_status=$? 20928 grep -v '^ *+' conftest.er1 >conftest.err 20929 rm -f conftest.er1 20930 cat conftest.err >&5 20931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20932 (exit $ac_status); } >/dev/null && { 20933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20934 test ! -s conftest.err 20935 }; then 20936 ac_header_preproc=yes 20937 else 20938 $as_echo "$as_me: failed program was:" >&5 20939 sed 's/^/| /' conftest.$ac_ext >&5 20940 20941 ac_header_preproc=no 20942 fi 20943 20944 rm -f conftest.err conftest.$ac_ext 20945 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20946 $as_echo "$ac_header_preproc" >&6; } 20947 20948 # So? What about this header? 20949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20950 yes:no: ) 20951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20952 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20955 ac_header_preproc=yes 20956 ;; 20957 no:yes:* ) 20958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20959 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20961 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20963 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20965 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20969 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20970 ( cat <<\_ASBOX 20971 ## ----------------------------------------------- ## 20972 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 20973 ## ----------------------------------------------- ## 20974 _ASBOX 20975 ) | sed "s/^/$as_me: WARNING: /" >&2 20976 ;; 20977 esac 20978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20979 $as_echo_n "checking for $ac_header... " >&6; } 20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20981 $as_echo_n "(cached) " >&6 20982 else 20983 eval "$as_ac_Header=\$ac_header_preproc" 20984 fi 20985 ac_res=`eval 'as_val=${'$as_ac_Header'} 20986 $as_echo "$as_val"'` 20987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20988 $as_echo "$ac_res" >&6; } 20989 20990 fi 20991 as_val=`eval 'as_val=${'$as_ac_Header'} 20992 $as_echo "$as_val"'` 20993 if test "x$as_val" = x""yes; then 20994 cat >>confdefs.h <<_ACEOF 20995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20996 _ACEOF 20997 20998 fi 20999 21000 done 21001 21002 21003 21004 21005 21006 21007 21008 21009 for ac_header in stdlib.h syslog.h unistd.h string.h stdarg.h utime.h uuid.h 21010 do 21011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 21014 $as_echo_n "checking for $ac_header... " >&6; } 21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21016 $as_echo_n "(cached) " >&6 21017 fi 21018 ac_res=`eval 'as_val=${'$as_ac_Header'} 21019 $as_echo "$as_val"'` 21020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21021 $as_echo "$ac_res" >&6; } 21022 else 21023 # Is the header compilable? 21024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 21025 $as_echo_n "checking $ac_header usability... " >&6; } 21026 cat >conftest.$ac_ext <<_ACEOF 21027 /* confdefs.h. */ 21028 _ACEOF 21029 cat confdefs.h >>conftest.$ac_ext 21030 cat >>conftest.$ac_ext <<_ACEOF 21031 /* end confdefs.h. */ 21032 $ac_includes_default 21033 #include <$ac_header> 21034 _ACEOF 21035 rm -f conftest.$ac_objext 21036 if { (ac_try="$ac_compile" 21037 case "(($ac_try" in 21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21039 *) ac_try_echo=$ac_try;; 21040 esac 21041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21042 $as_echo "$ac_try_echo") >&5 21043 (eval "$ac_compile") 2>conftest.er1 21044 ac_status=$? 21045 grep -v '^ *+' conftest.er1 >conftest.err 21046 rm -f conftest.er1 21047 cat conftest.err >&5 21048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21049 (exit $ac_status); } && { 21050 test -z "$ac_c_werror_flag" || 21051 test ! -s conftest.err 21052 } && test -s conftest.$ac_objext; then 21053 ac_header_compiler=yes 21054 else 21055 $as_echo "$as_me: failed program was:" >&5 21056 sed 's/^/| /' conftest.$ac_ext >&5 21057 21058 ac_header_compiler=no 21059 fi 21060 21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21063 $as_echo "$ac_header_compiler" >&6; } 21064 21065 # Is the header present? 21066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 21067 $as_echo_n "checking $ac_header presence... " >&6; } 21068 cat >conftest.$ac_ext <<_ACEOF 21069 /* confdefs.h. */ 21070 _ACEOF 21071 cat confdefs.h >>conftest.$ac_ext 21072 cat >>conftest.$ac_ext <<_ACEOF 21073 /* end confdefs.h. */ 21074 #include <$ac_header> 21075 _ACEOF 21076 if { (ac_try="$ac_cpp conftest.$ac_ext" 21077 case "(($ac_try" in 21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21079 *) ac_try_echo=$ac_try;; 21080 esac 21081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21082 $as_echo "$ac_try_echo") >&5 21083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21084 ac_status=$? 21085 grep -v '^ *+' conftest.er1 >conftest.err 21086 rm -f conftest.er1 21087 cat conftest.err >&5 21088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21089 (exit $ac_status); } >/dev/null && { 21090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21091 test ! -s conftest.err 21092 }; then 21093 ac_header_preproc=yes 21094 else 21095 $as_echo "$as_me: failed program was:" >&5 21096 sed 's/^/| /' conftest.$ac_ext >&5 21097 21098 ac_header_preproc=no 21099 fi 21100 21101 rm -f conftest.err conftest.$ac_ext 21102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21103 $as_echo "$ac_header_preproc" >&6; } 21104 21105 # So? What about this header? 21106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21107 yes:no: ) 21108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21112 ac_header_preproc=yes 21113 ;; 21114 no:yes:* ) 21115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21127 ( cat <<\_ASBOX 21128 ## ----------------------------------------------- ## 21129 ## Report this to Alistair Crooks <agc (at] NetBSD.org> ## 21130 ## ----------------------------------------------- ## 21131 _ASBOX 21132 ) | sed "s/^/$as_me: WARNING: /" >&2 21133 ;; 21134 esac 21135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 21136 $as_echo_n "checking for $ac_header... " >&6; } 21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21138 $as_echo_n "(cached) " >&6 21139 else 21140 eval "$as_ac_Header=\$ac_header_preproc" 21141 fi 21142 ac_res=`eval 'as_val=${'$as_ac_Header'} 21143 $as_echo "$as_val"'` 21144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21145 $as_echo "$ac_res" >&6; } 21146 21147 fi 21148 as_val=`eval 'as_val=${'$as_ac_Header'} 21149 $as_echo "$as_val"'` 21150 if test "x$as_val" = x""yes; then 21151 cat >>confdefs.h <<_ACEOF 21152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21153 _ACEOF 21154 21155 fi 21156 21157 done 21158 21159 21160 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 21161 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 21162 if test "${ac_cv_c_const+set}" = set; then 21163 $as_echo_n "(cached) " >&6 21164 else 21165 cat >conftest.$ac_ext <<_ACEOF 21166 /* confdefs.h. */ 21167 _ACEOF 21168 cat confdefs.h >>conftest.$ac_ext 21169 cat >>conftest.$ac_ext <<_ACEOF 21170 /* end confdefs.h. */ 21171 21172 int 21173 main () 21174 { 21175 /* FIXME: Include the comments suggested by Paul. */ 21176 #ifndef __cplusplus 21177 /* Ultrix mips cc rejects this. */ 21178 typedef int charset[2]; 21179 const charset cs; 21180 /* SunOS 4.1.1 cc rejects this. */ 21181 char const *const *pcpcc; 21182 char **ppc; 21183 /* NEC SVR4.0.2 mips cc rejects this. */ 21184 struct point {int x, y;}; 21185 static struct point const zero = {0,0}; 21186 /* AIX XL C 1.02.0.0 rejects this. 21187 It does not let you subtract one const X* pointer from another in 21188 an arm of an if-expression whose if-part is not a constant 21189 expression */ 21190 const char *g = "string"; 21191 pcpcc = &g + (g ? g-g : 0); 21192 /* HPUX 7.0 cc rejects these. */ 21193 ++pcpcc; 21194 ppc = (char**) pcpcc; 21195 pcpcc = (char const *const *) ppc; 21196 { /* SCO 3.2v4 cc rejects this. */ 21197 char *t; 21198 char const *s = 0 ? (char *) 0 : (char const *) 0; 21199 21200 *t++ = 0; 21201 if (s) return 0; 21202 } 21203 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21204 int x[] = {25, 17}; 21205 const int *foo = &x[0]; 21206 ++foo; 21207 } 21208 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21209 typedef const int *iptr; 21210 iptr p = 0; 21211 ++p; 21212 } 21213 { /* AIX XL C 1.02.0.0 rejects this saying 21214 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21215 struct s { int j; const int *ap[3]; }; 21216 struct s *b; b->j = 5; 21217 } 21218 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21219 const int foo = 10; 21220 if (!foo) return 0; 21221 } 21222 return !cs[0] && !zero.x; 21223 #endif 21224 21225 ; 21226 return 0; 21227 } 21228 _ACEOF 21229 rm -f conftest.$ac_objext 21230 if { (ac_try="$ac_compile" 21231 case "(($ac_try" in 21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21233 *) ac_try_echo=$ac_try;; 21234 esac 21235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21236 $as_echo "$ac_try_echo") >&5 21237 (eval "$ac_compile") 2>conftest.er1 21238 ac_status=$? 21239 grep -v '^ *+' conftest.er1 >conftest.err 21240 rm -f conftest.er1 21241 cat conftest.err >&5 21242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21243 (exit $ac_status); } && { 21244 test -z "$ac_c_werror_flag" || 21245 test ! -s conftest.err 21246 } && test -s conftest.$ac_objext; then 21247 ac_cv_c_const=yes 21248 else 21249 $as_echo "$as_me: failed program was:" >&5 21250 sed 's/^/| /' conftest.$ac_ext >&5 21251 21252 ac_cv_c_const=no 21253 fi 21254 21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21256 fi 21257 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 21258 $as_echo "$ac_cv_c_const" >&6; } 21259 if test $ac_cv_c_const = no; then 21260 21261 cat >>confdefs.h <<\_ACEOF 21262 #define const /**/ 21263 _ACEOF 21264 21265 fi 21266 21267 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 21268 $as_echo_n "checking for size_t... " >&6; } 21269 if test "${ac_cv_type_size_t+set}" = set; then 21270 $as_echo_n "(cached) " >&6 21271 else 21272 ac_cv_type_size_t=no 21273 cat >conftest.$ac_ext <<_ACEOF 21274 /* confdefs.h. */ 21275 _ACEOF 21276 cat confdefs.h >>conftest.$ac_ext 21277 cat >>conftest.$ac_ext <<_ACEOF 21278 /* end confdefs.h. */ 21279 $ac_includes_default 21280 int 21281 main () 21282 { 21283 if (sizeof (size_t)) 21284 return 0; 21285 ; 21286 return 0; 21287 } 21288 _ACEOF 21289 rm -f conftest.$ac_objext 21290 if { (ac_try="$ac_compile" 21291 case "(($ac_try" in 21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21293 *) ac_try_echo=$ac_try;; 21294 esac 21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21296 $as_echo "$ac_try_echo") >&5 21297 (eval "$ac_compile") 2>conftest.er1 21298 ac_status=$? 21299 grep -v '^ *+' conftest.er1 >conftest.err 21300 rm -f conftest.er1 21301 cat conftest.err >&5 21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21303 (exit $ac_status); } && { 21304 test -z "$ac_c_werror_flag" || 21305 test ! -s conftest.err 21306 } && test -s conftest.$ac_objext; then 21307 cat >conftest.$ac_ext <<_ACEOF 21308 /* confdefs.h. */ 21309 _ACEOF 21310 cat confdefs.h >>conftest.$ac_ext 21311 cat >>conftest.$ac_ext <<_ACEOF 21312 /* end confdefs.h. */ 21313 $ac_includes_default 21314 int 21315 main () 21316 { 21317 if (sizeof ((size_t))) 21318 return 0; 21319 ; 21320 return 0; 21321 } 21322 _ACEOF 21323 rm -f conftest.$ac_objext 21324 if { (ac_try="$ac_compile" 21325 case "(($ac_try" in 21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21327 *) ac_try_echo=$ac_try;; 21328 esac 21329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21330 $as_echo "$ac_try_echo") >&5 21331 (eval "$ac_compile") 2>conftest.er1 21332 ac_status=$? 21333 grep -v '^ *+' conftest.er1 >conftest.err 21334 rm -f conftest.er1 21335 cat conftest.err >&5 21336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21337 (exit $ac_status); } && { 21338 test -z "$ac_c_werror_flag" || 21339 test ! -s conftest.err 21340 } && test -s conftest.$ac_objext; then 21341 : 21342 else 21343 $as_echo "$as_me: failed program was:" >&5 21344 sed 's/^/| /' conftest.$ac_ext >&5 21345 21346 ac_cv_type_size_t=yes 21347 fi 21348 21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21350 else 21351 $as_echo "$as_me: failed program was:" >&5 21352 sed 's/^/| /' conftest.$ac_ext >&5 21353 21354 21355 fi 21356 21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21358 fi 21359 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 21360 $as_echo "$ac_cv_type_size_t" >&6; } 21361 if test "x$ac_cv_type_size_t" = x""yes; then 21362 : 21363 else 21364 21365 cat >>confdefs.h <<_ACEOF 21366 #define size_t unsigned int 21367 _ACEOF 21368 21369 fi 21370 21371 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 21372 $as_echo_n "checking for socklen_t... " >&6; } 21373 if test "${ac_cv_type_socklen_t+set}" = set; then 21374 $as_echo_n "(cached) " >&6 21375 else 21376 ac_cv_type_socklen_t=no 21377 cat >conftest.$ac_ext <<_ACEOF 21378 /* confdefs.h. */ 21379 _ACEOF 21380 cat confdefs.h >>conftest.$ac_ext 21381 cat >>conftest.$ac_ext <<_ACEOF 21382 /* end confdefs.h. */ 21383 21384 #include <sys/socket.h> 21385 #include <arpa/inet.h> 21386 21387 21388 int 21389 main () 21390 { 21391 if (sizeof (socklen_t)) 21392 return 0; 21393 ; 21394 return 0; 21395 } 21396 _ACEOF 21397 rm -f conftest.$ac_objext 21398 if { (ac_try="$ac_compile" 21399 case "(($ac_try" in 21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21401 *) ac_try_echo=$ac_try;; 21402 esac 21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21404 $as_echo "$ac_try_echo") >&5 21405 (eval "$ac_compile") 2>conftest.er1 21406 ac_status=$? 21407 grep -v '^ *+' conftest.er1 >conftest.err 21408 rm -f conftest.er1 21409 cat conftest.err >&5 21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21411 (exit $ac_status); } && { 21412 test -z "$ac_c_werror_flag" || 21413 test ! -s conftest.err 21414 } && test -s conftest.$ac_objext; then 21415 cat >conftest.$ac_ext <<_ACEOF 21416 /* confdefs.h. */ 21417 _ACEOF 21418 cat confdefs.h >>conftest.$ac_ext 21419 cat >>conftest.$ac_ext <<_ACEOF 21420 /* end confdefs.h. */ 21421 21422 #include <sys/socket.h> 21423 #include <arpa/inet.h> 21424 21425 21426 int 21427 main () 21428 { 21429 if (sizeof ((socklen_t))) 21430 return 0; 21431 ; 21432 return 0; 21433 } 21434 _ACEOF 21435 rm -f conftest.$ac_objext 21436 if { (ac_try="$ac_compile" 21437 case "(($ac_try" in 21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21439 *) ac_try_echo=$ac_try;; 21440 esac 21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21442 $as_echo "$ac_try_echo") >&5 21443 (eval "$ac_compile") 2>conftest.er1 21444 ac_status=$? 21445 grep -v '^ *+' conftest.er1 >conftest.err 21446 rm -f conftest.er1 21447 cat conftest.err >&5 21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21449 (exit $ac_status); } && { 21450 test -z "$ac_c_werror_flag" || 21451 test ! -s conftest.err 21452 } && test -s conftest.$ac_objext; then 21453 : 21454 else 21455 $as_echo "$as_me: failed program was:" >&5 21456 sed 's/^/| /' conftest.$ac_ext >&5 21457 21458 ac_cv_type_socklen_t=yes 21459 fi 21460 21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21462 else 21463 $as_echo "$as_me: failed program was:" >&5 21464 sed 's/^/| /' conftest.$ac_ext >&5 21465 21466 21467 fi 21468 21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21470 fi 21471 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 21472 $as_echo "$ac_cv_type_socklen_t" >&6; } 21473 if test "x$ac_cv_type_socklen_t" = x""yes; then 21474 21475 cat >>confdefs.h <<_ACEOF 21476 #define HAVE_SOCKLEN_T 1 21477 _ACEOF 21478 21479 21480 fi 21481 21482 { $as_echo "$as_me:$LINENO: checking for long long" >&5 21483 $as_echo_n "checking for long long... " >&6; } 21484 if test "${ac_cv_type_long_long+set}" = set; then 21485 $as_echo_n "(cached) " >&6 21486 else 21487 ac_cv_type_long_long=no 21488 cat >conftest.$ac_ext <<_ACEOF 21489 /* confdefs.h. */ 21490 _ACEOF 21491 cat confdefs.h >>conftest.$ac_ext 21492 cat >>conftest.$ac_ext <<_ACEOF 21493 /* end confdefs.h. */ 21494 $ac_includes_default 21495 int 21496 main () 21497 { 21498 if (sizeof (long long)) 21499 return 0; 21500 ; 21501 return 0; 21502 } 21503 _ACEOF 21504 rm -f conftest.$ac_objext 21505 if { (ac_try="$ac_compile" 21506 case "(($ac_try" in 21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21508 *) ac_try_echo=$ac_try;; 21509 esac 21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21511 $as_echo "$ac_try_echo") >&5 21512 (eval "$ac_compile") 2>conftest.er1 21513 ac_status=$? 21514 grep -v '^ *+' conftest.er1 >conftest.err 21515 rm -f conftest.er1 21516 cat conftest.err >&5 21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21518 (exit $ac_status); } && { 21519 test -z "$ac_c_werror_flag" || 21520 test ! -s conftest.err 21521 } && test -s conftest.$ac_objext; then 21522 cat >conftest.$ac_ext <<_ACEOF 21523 /* confdefs.h. */ 21524 _ACEOF 21525 cat confdefs.h >>conftest.$ac_ext 21526 cat >>conftest.$ac_ext <<_ACEOF 21527 /* end confdefs.h. */ 21528 $ac_includes_default 21529 int 21530 main () 21531 { 21532 if (sizeof ((long long))) 21533 return 0; 21534 ; 21535 return 0; 21536 } 21537 _ACEOF 21538 rm -f conftest.$ac_objext 21539 if { (ac_try="$ac_compile" 21540 case "(($ac_try" in 21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21542 *) ac_try_echo=$ac_try;; 21543 esac 21544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21545 $as_echo "$ac_try_echo") >&5 21546 (eval "$ac_compile") 2>conftest.er1 21547 ac_status=$? 21548 grep -v '^ *+' conftest.er1 >conftest.err 21549 rm -f conftest.er1 21550 cat conftest.err >&5 21551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21552 (exit $ac_status); } && { 21553 test -z "$ac_c_werror_flag" || 21554 test ! -s conftest.err 21555 } && test -s conftest.$ac_objext; then 21556 : 21557 else 21558 $as_echo "$as_me: failed program was:" >&5 21559 sed 's/^/| /' conftest.$ac_ext >&5 21560 21561 ac_cv_type_long_long=yes 21562 fi 21563 21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21565 else 21566 $as_echo "$as_me: failed program was:" >&5 21567 sed 's/^/| /' conftest.$ac_ext >&5 21568 21569 21570 fi 21571 21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21573 fi 21574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 21575 $as_echo "$ac_cv_type_long_long" >&6; } 21576 if test "x$ac_cv_type_long_long" = x""yes; then 21577 21578 cat >>confdefs.h <<_ACEOF 21579 #define HAVE_LONG_LONG 1 21580 _ACEOF 21581 21582 21583 fi 21584 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 21585 $as_echo_n "checking for unsigned long long... " >&6; } 21586 if test "${ac_cv_type_unsigned_long_long+set}" = set; then 21587 $as_echo_n "(cached) " >&6 21588 else 21589 ac_cv_type_unsigned_long_long=no 21590 cat >conftest.$ac_ext <<_ACEOF 21591 /* confdefs.h. */ 21592 _ACEOF 21593 cat confdefs.h >>conftest.$ac_ext 21594 cat >>conftest.$ac_ext <<_ACEOF 21595 /* end confdefs.h. */ 21596 $ac_includes_default 21597 int 21598 main () 21599 { 21600 if (sizeof (unsigned long long)) 21601 return 0; 21602 ; 21603 return 0; 21604 } 21605 _ACEOF 21606 rm -f conftest.$ac_objext 21607 if { (ac_try="$ac_compile" 21608 case "(($ac_try" in 21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21610 *) ac_try_echo=$ac_try;; 21611 esac 21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21613 $as_echo "$ac_try_echo") >&5 21614 (eval "$ac_compile") 2>conftest.er1 21615 ac_status=$? 21616 grep -v '^ *+' conftest.er1 >conftest.err 21617 rm -f conftest.er1 21618 cat conftest.err >&5 21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21620 (exit $ac_status); } && { 21621 test -z "$ac_c_werror_flag" || 21622 test ! -s conftest.err 21623 } && test -s conftest.$ac_objext; then 21624 cat >conftest.$ac_ext <<_ACEOF 21625 /* confdefs.h. */ 21626 _ACEOF 21627 cat confdefs.h >>conftest.$ac_ext 21628 cat >>conftest.$ac_ext <<_ACEOF 21629 /* end confdefs.h. */ 21630 $ac_includes_default 21631 int 21632 main () 21633 { 21634 if (sizeof ((unsigned long long))) 21635 return 0; 21636 ; 21637 return 0; 21638 } 21639 _ACEOF 21640 rm -f conftest.$ac_objext 21641 if { (ac_try="$ac_compile" 21642 case "(($ac_try" in 21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21644 *) ac_try_echo=$ac_try;; 21645 esac 21646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21647 $as_echo "$ac_try_echo") >&5 21648 (eval "$ac_compile") 2>conftest.er1 21649 ac_status=$? 21650 grep -v '^ *+' conftest.er1 >conftest.err 21651 rm -f conftest.er1 21652 cat conftest.err >&5 21653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21654 (exit $ac_status); } && { 21655 test -z "$ac_c_werror_flag" || 21656 test ! -s conftest.err 21657 } && test -s conftest.$ac_objext; then 21658 : 21659 else 21660 $as_echo "$as_me: failed program was:" >&5 21661 sed 's/^/| /' conftest.$ac_ext >&5 21662 21663 ac_cv_type_unsigned_long_long=yes 21664 fi 21665 21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21667 else 21668 $as_echo "$as_me: failed program was:" >&5 21669 sed 's/^/| /' conftest.$ac_ext >&5 21670 21671 21672 fi 21673 21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21675 fi 21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 21677 $as_echo "$ac_cv_type_unsigned_long_long" >&6; } 21678 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then 21679 21680 cat >>confdefs.h <<_ACEOF 21681 #define HAVE_UNSIGNED_LONG_LONG 1 21682 _ACEOF 21683 21684 21685 fi 21686 21687 cat >>confdefs.h <<_ACEOF 21688 #define HAVE_SOCKLEN_T $ac_cv_type_socklen_t 21689 _ACEOF 21690 21691 cat >>confdefs.h <<_ACEOF 21692 #define HAVE_LONG_LONG $ac_cv_type_long_long 21693 _ACEOF 21694 21695 cat >>confdefs.h <<_ACEOF 21696 #define HAVE_UNSIGNED_LONG_LONG $ac_cv_type_unsigned_long_long 21697 _ACEOF 21698 21699 21700 # Checks for typedefs, structures, and compiler characteristics. 21701 # 21702 21703 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5 21704 $as_echo_n "checking for unsigned long long int... " >&6; } 21705 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then 21706 $as_echo_n "(cached) " >&6 21707 else 21708 cat >conftest.$ac_ext <<_ACEOF 21709 21710 /* confdefs.h. */ 21711 _ACEOF 21712 cat confdefs.h >>conftest.$ac_ext 21713 cat >>conftest.$ac_ext <<_ACEOF 21714 /* end confdefs.h. */ 21715 /* For now, do not test the preprocessor; as of 2007 there are too many 21716 implementations with broken preprocessors. Perhaps this can 21717 be revisited in 2012. In the meantime, code should not expect 21718 #if to work with literals wider than 32 bits. */ 21719 /* Test literals. */ 21720 long long int ll = 9223372036854775807ll; 21721 long long int nll = -9223372036854775807LL; 21722 unsigned long long int ull = 18446744073709551615ULL; 21723 /* Test constant expressions. */ 21724 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 21725 ? 1 : -1)]; 21726 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 21727 ? 1 : -1)]; 21728 int i = 63; 21729 int 21730 main () 21731 { 21732 /* Test availability of runtime routines for shift and division. */ 21733 long long int llmax = 9223372036854775807ll; 21734 unsigned long long int ullmax = 18446744073709551615ull; 21735 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 21736 | (llmax / ll) | (llmax % ll) 21737 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 21738 | (ullmax / ull) | (ullmax % ull)); 21739 ; 21740 return 0; 21741 } 21742 21743 _ACEOF 21744 rm -f conftest.$ac_objext conftest$ac_exeext 21745 if { (ac_try="$ac_link" 21746 case "(($ac_try" in 21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21748 *) ac_try_echo=$ac_try;; 21749 esac 21750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21751 $as_echo "$ac_try_echo") >&5 21752 (eval "$ac_link") 2>conftest.er1 21753 ac_status=$? 21754 grep -v '^ *+' conftest.er1 >conftest.err 21755 rm -f conftest.er1 21756 cat conftest.err >&5 21757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21758 (exit $ac_status); } && { 21759 test -z "$ac_c_werror_flag" || 21760 test ! -s conftest.err 21761 } && test -s conftest$ac_exeext && { 21762 test "$cross_compiling" = yes || 21763 $as_test_x conftest$ac_exeext 21764 }; then 21765 ac_cv_type_unsigned_long_long_int=yes 21766 else 21767 $as_echo "$as_me: failed program was:" >&5 21768 sed 's/^/| /' conftest.$ac_ext >&5 21769 21770 ac_cv_type_unsigned_long_long_int=no 21771 fi 21772 21773 rm -rf conftest.dSYM 21774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21775 conftest$ac_exeext conftest.$ac_ext 21776 fi 21777 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 21778 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 21779 if test $ac_cv_type_unsigned_long_long_int = yes; then 21780 21781 cat >>confdefs.h <<\_ACEOF 21782 #define HAVE_UNSIGNED_LONG_LONG_INT 1 21783 _ACEOF 21784 21785 fi 21786 21787 21788 { $as_echo "$as_me:$LINENO: checking for long long int" >&5 21789 $as_echo_n "checking for long long int... " >&6; } 21790 if test "${ac_cv_type_long_long_int+set}" = set; then 21791 $as_echo_n "(cached) " >&6 21792 else 21793 cat >conftest.$ac_ext <<_ACEOF 21794 21795 /* confdefs.h. */ 21796 _ACEOF 21797 cat confdefs.h >>conftest.$ac_ext 21798 cat >>conftest.$ac_ext <<_ACEOF 21799 /* end confdefs.h. */ 21800 /* For now, do not test the preprocessor; as of 2007 there are too many 21801 implementations with broken preprocessors. Perhaps this can 21802 be revisited in 2012. In the meantime, code should not expect 21803 #if to work with literals wider than 32 bits. */ 21804 /* Test literals. */ 21805 long long int ll = 9223372036854775807ll; 21806 long long int nll = -9223372036854775807LL; 21807 unsigned long long int ull = 18446744073709551615ULL; 21808 /* Test constant expressions. */ 21809 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 21810 ? 1 : -1)]; 21811 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 21812 ? 1 : -1)]; 21813 int i = 63; 21814 int 21815 main () 21816 { 21817 /* Test availability of runtime routines for shift and division. */ 21818 long long int llmax = 9223372036854775807ll; 21819 unsigned long long int ullmax = 18446744073709551615ull; 21820 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 21821 | (llmax / ll) | (llmax % ll) 21822 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 21823 | (ullmax / ull) | (ullmax % ull)); 21824 ; 21825 return 0; 21826 } 21827 21828 _ACEOF 21829 rm -f conftest.$ac_objext conftest$ac_exeext 21830 if { (ac_try="$ac_link" 21831 case "(($ac_try" in 21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21833 *) ac_try_echo=$ac_try;; 21834 esac 21835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21836 $as_echo "$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 $as_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 test "$cross_compiling" = yes || 21848 $as_test_x conftest$ac_exeext 21849 }; then 21850 if test "$cross_compiling" = yes; then 21851 ac_cv_type_long_long_int=yes 21852 else 21853 cat >conftest.$ac_ext <<_ACEOF 21854 /* confdefs.h. */ 21855 _ACEOF 21856 cat confdefs.h >>conftest.$ac_ext 21857 cat >>conftest.$ac_ext <<_ACEOF 21858 /* end confdefs.h. */ 21859 #include <limits.h> 21860 #ifndef LLONG_MAX 21861 # define HALF \ 21862 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 21863 # define LLONG_MAX (HALF - 1 + HALF) 21864 #endif 21865 int 21866 main () 21867 { 21868 long long int n = 1; 21869 int i; 21870 for (i = 0; ; i++) 21871 { 21872 long long int m = n << i; 21873 if (m >> i != n) 21874 return 1; 21875 if (LLONG_MAX / 2 < m) 21876 break; 21877 } 21878 return 0; 21879 ; 21880 return 0; 21881 } 21882 _ACEOF 21883 rm -f conftest$ac_exeext 21884 if { (ac_try="$ac_link" 21885 case "(($ac_try" in 21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21887 *) ac_try_echo=$ac_try;; 21888 esac 21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21890 $as_echo "$ac_try_echo") >&5 21891 (eval "$ac_link") 2>&5 21892 ac_status=$? 21893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21895 { (case "(($ac_try" in 21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21897 *) ac_try_echo=$ac_try;; 21898 esac 21899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21900 $as_echo "$ac_try_echo") >&5 21901 (eval "$ac_try") 2>&5 21902 ac_status=$? 21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21904 (exit $ac_status); }; }; then 21905 ac_cv_type_long_long_int=yes 21906 else 21907 $as_echo "$as_me: program exited with status $ac_status" >&5 21908 $as_echo "$as_me: failed program was:" >&5 21909 sed 's/^/| /' conftest.$ac_ext >&5 21910 21911 ( exit $ac_status ) 21912 ac_cv_type_long_long_int=no 21913 fi 21914 rm -rf conftest.dSYM 21915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21916 fi 21917 21918 21919 else 21920 $as_echo "$as_me: failed program was:" >&5 21921 sed 's/^/| /' conftest.$ac_ext >&5 21922 21923 ac_cv_type_long_long_int=no 21924 fi 21925 21926 rm -rf conftest.dSYM 21927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21928 conftest$ac_exeext conftest.$ac_ext 21929 fi 21930 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 21931 $as_echo "$ac_cv_type_long_long_int" >&6; } 21932 if test $ac_cv_type_long_long_int = yes; then 21933 21934 cat >>confdefs.h <<\_ACEOF 21935 #define HAVE_LONG_LONG_INT 1 21936 _ACEOF 21937 21938 fi 21939 21940 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 21941 $as_echo_n "checking for size_t... " >&6; } 21942 if test "${ac_cv_type_size_t+set}" = set; then 21943 $as_echo_n "(cached) " >&6 21944 else 21945 ac_cv_type_size_t=no 21946 cat >conftest.$ac_ext <<_ACEOF 21947 /* confdefs.h. */ 21948 _ACEOF 21949 cat confdefs.h >>conftest.$ac_ext 21950 cat >>conftest.$ac_ext <<_ACEOF 21951 /* end confdefs.h. */ 21952 $ac_includes_default 21953 int 21954 main () 21955 { 21956 if (sizeof (size_t)) 21957 return 0; 21958 ; 21959 return 0; 21960 } 21961 _ACEOF 21962 rm -f conftest.$ac_objext 21963 if { (ac_try="$ac_compile" 21964 case "(($ac_try" in 21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21966 *) ac_try_echo=$ac_try;; 21967 esac 21968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21969 $as_echo "$ac_try_echo") >&5 21970 (eval "$ac_compile") 2>conftest.er1 21971 ac_status=$? 21972 grep -v '^ *+' conftest.er1 >conftest.err 21973 rm -f conftest.er1 21974 cat conftest.err >&5 21975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21976 (exit $ac_status); } && { 21977 test -z "$ac_c_werror_flag" || 21978 test ! -s conftest.err 21979 } && test -s conftest.$ac_objext; then 21980 cat >conftest.$ac_ext <<_ACEOF 21981 /* confdefs.h. */ 21982 _ACEOF 21983 cat confdefs.h >>conftest.$ac_ext 21984 cat >>conftest.$ac_ext <<_ACEOF 21985 /* end confdefs.h. */ 21986 $ac_includes_default 21987 int 21988 main () 21989 { 21990 if (sizeof ((size_t))) 21991 return 0; 21992 ; 21993 return 0; 21994 } 21995 _ACEOF 21996 rm -f conftest.$ac_objext 21997 if { (ac_try="$ac_compile" 21998 case "(($ac_try" in 21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22000 *) ac_try_echo=$ac_try;; 22001 esac 22002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22003 $as_echo "$ac_try_echo") >&5 22004 (eval "$ac_compile") 2>conftest.er1 22005 ac_status=$? 22006 grep -v '^ *+' conftest.er1 >conftest.err 22007 rm -f conftest.er1 22008 cat conftest.err >&5 22009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22010 (exit $ac_status); } && { 22011 test -z "$ac_c_werror_flag" || 22012 test ! -s conftest.err 22013 } && test -s conftest.$ac_objext; then 22014 : 22015 else 22016 $as_echo "$as_me: failed program was:" >&5 22017 sed 's/^/| /' conftest.$ac_ext >&5 22018 22019 ac_cv_type_size_t=yes 22020 fi 22021 22022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22023 else 22024 $as_echo "$as_me: failed program was:" >&5 22025 sed 's/^/| /' conftest.$ac_ext >&5 22026 22027 22028 fi 22029 22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22031 fi 22032 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 22033 $as_echo "$ac_cv_type_size_t" >&6; } 22034 if test "x$ac_cv_type_size_t" = x""yes; then 22035 : 22036 else 22037 22038 cat >>confdefs.h <<_ACEOF 22039 #define size_t unsigned int 22040 _ACEOF 22041 22042 fi 22043 22044 22045 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 22046 $as_echo_n "checking for uint16_t... " >&6; } 22047 if test "${ac_cv_c_uint16_t+set}" = set; then 22048 $as_echo_n "(cached) " >&6 22049 else 22050 ac_cv_c_uint16_t=no 22051 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ 22052 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 22053 cat >conftest.$ac_ext <<_ACEOF 22054 /* confdefs.h. */ 22055 _ACEOF 22056 cat confdefs.h >>conftest.$ac_ext 22057 cat >>conftest.$ac_ext <<_ACEOF 22058 /* end confdefs.h. */ 22059 $ac_includes_default 22060 int 22061 main () 22062 { 22063 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; 22064 test_array [0] = 0 22065 22066 ; 22067 return 0; 22068 } 22069 _ACEOF 22070 rm -f conftest.$ac_objext 22071 if { (ac_try="$ac_compile" 22072 case "(($ac_try" in 22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22074 *) ac_try_echo=$ac_try;; 22075 esac 22076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22077 $as_echo "$ac_try_echo") >&5 22078 (eval "$ac_compile") 2>conftest.er1 22079 ac_status=$? 22080 grep -v '^ *+' conftest.er1 >conftest.err 22081 rm -f conftest.er1 22082 cat conftest.err >&5 22083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22084 (exit $ac_status); } && { 22085 test -z "$ac_c_werror_flag" || 22086 test ! -s conftest.err 22087 } && test -s conftest.$ac_objext; then 22088 case $ac_type in 22089 uint16_t) ac_cv_c_uint16_t=yes ;; 22090 *) ac_cv_c_uint16_t=$ac_type ;; 22091 esac 22092 22093 else 22094 $as_echo "$as_me: failed program was:" >&5 22095 sed 's/^/| /' conftest.$ac_ext >&5 22096 22097 22098 fi 22099 22100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22101 test "$ac_cv_c_uint16_t" != no && break 22102 done 22103 fi 22104 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 22105 $as_echo "$ac_cv_c_uint16_t" >&6; } 22106 case $ac_cv_c_uint16_t in #( 22107 no|yes) ;; #( 22108 *) 22109 22110 22111 cat >>confdefs.h <<_ACEOF 22112 #define uint16_t $ac_cv_c_uint16_t 22113 _ACEOF 22114 ;; 22115 esac 22116 22117 22118 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 22119 $as_echo_n "checking for uint32_t... " >&6; } 22120 if test "${ac_cv_c_uint32_t+set}" = set; then 22121 $as_echo_n "(cached) " >&6 22122 else 22123 ac_cv_c_uint32_t=no 22124 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 22125 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 22126 cat >conftest.$ac_ext <<_ACEOF 22127 /* confdefs.h. */ 22128 _ACEOF 22129 cat confdefs.h >>conftest.$ac_ext 22130 cat >>conftest.$ac_ext <<_ACEOF 22131 /* end confdefs.h. */ 22132 $ac_includes_default 22133 int 22134 main () 22135 { 22136 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 22137 test_array [0] = 0 22138 22139 ; 22140 return 0; 22141 } 22142 _ACEOF 22143 rm -f conftest.$ac_objext 22144 if { (ac_try="$ac_compile" 22145 case "(($ac_try" in 22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22147 *) ac_try_echo=$ac_try;; 22148 esac 22149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22150 $as_echo "$ac_try_echo") >&5 22151 (eval "$ac_compile") 2>conftest.er1 22152 ac_status=$? 22153 grep -v '^ *+' conftest.er1 >conftest.err 22154 rm -f conftest.er1 22155 cat conftest.err >&5 22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22157 (exit $ac_status); } && { 22158 test -z "$ac_c_werror_flag" || 22159 test ! -s conftest.err 22160 } && test -s conftest.$ac_objext; then 22161 case $ac_type in 22162 uint32_t) ac_cv_c_uint32_t=yes ;; 22163 *) ac_cv_c_uint32_t=$ac_type ;; 22164 esac 22165 22166 else 22167 $as_echo "$as_me: failed program was:" >&5 22168 sed 's/^/| /' conftest.$ac_ext >&5 22169 22170 22171 fi 22172 22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22174 test "$ac_cv_c_uint32_t" != no && break 22175 done 22176 fi 22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 22178 $as_echo "$ac_cv_c_uint32_t" >&6; } 22179 case $ac_cv_c_uint32_t in #( 22180 no|yes) ;; #( 22181 *) 22182 22183 cat >>confdefs.h <<\_ACEOF 22184 #define _UINT32_T 1 22185 _ACEOF 22186 22187 22188 cat >>confdefs.h <<_ACEOF 22189 #define uint32_t $ac_cv_c_uint32_t 22190 _ACEOF 22191 ;; 22192 esac 22193 22194 22195 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 22196 $as_echo_n "checking for uint64_t... " >&6; } 22197 if test "${ac_cv_c_uint64_t+set}" = set; then 22198 $as_echo_n "(cached) " >&6 22199 else 22200 ac_cv_c_uint64_t=no 22201 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ 22202 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 22203 cat >conftest.$ac_ext <<_ACEOF 22204 /* confdefs.h. */ 22205 _ACEOF 22206 cat confdefs.h >>conftest.$ac_ext 22207 cat >>conftest.$ac_ext <<_ACEOF 22208 /* end confdefs.h. */ 22209 $ac_includes_default 22210 int 22211 main () 22212 { 22213 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; 22214 test_array [0] = 0 22215 22216 ; 22217 return 0; 22218 } 22219 _ACEOF 22220 rm -f conftest.$ac_objext 22221 if { (ac_try="$ac_compile" 22222 case "(($ac_try" in 22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22224 *) ac_try_echo=$ac_try;; 22225 esac 22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22227 $as_echo "$ac_try_echo") >&5 22228 (eval "$ac_compile") 2>conftest.er1 22229 ac_status=$? 22230 grep -v '^ *+' conftest.er1 >conftest.err 22231 rm -f conftest.er1 22232 cat conftest.err >&5 22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22234 (exit $ac_status); } && { 22235 test -z "$ac_c_werror_flag" || 22236 test ! -s conftest.err 22237 } && test -s conftest.$ac_objext; then 22238 case $ac_type in 22239 uint64_t) ac_cv_c_uint64_t=yes ;; 22240 *) ac_cv_c_uint64_t=$ac_type ;; 22241 esac 22242 22243 else 22244 $as_echo "$as_me: failed program was:" >&5 22245 sed 's/^/| /' conftest.$ac_ext >&5 22246 22247 22248 fi 22249 22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22251 test "$ac_cv_c_uint64_t" != no && break 22252 done 22253 fi 22254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 22255 $as_echo "$ac_cv_c_uint64_t" >&6; } 22256 case $ac_cv_c_uint64_t in #( 22257 no|yes) ;; #( 22258 *) 22259 22260 cat >>confdefs.h <<\_ACEOF 22261 #define _UINT64_T 1 22262 _ACEOF 22263 22264 22265 cat >>confdefs.h <<_ACEOF 22266 #define uint64_t $ac_cv_c_uint64_t 22267 _ACEOF 22268 ;; 22269 esac 22270 22271 22272 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 22273 $as_echo_n "checking for uint8_t... " >&6; } 22274 if test "${ac_cv_c_uint8_t+set}" = set; then 22275 $as_echo_n "(cached) " >&6 22276 else 22277 ac_cv_c_uint8_t=no 22278 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ 22279 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 22280 cat >conftest.$ac_ext <<_ACEOF 22281 /* confdefs.h. */ 22282 _ACEOF 22283 cat confdefs.h >>conftest.$ac_ext 22284 cat >>conftest.$ac_ext <<_ACEOF 22285 /* end confdefs.h. */ 22286 $ac_includes_default 22287 int 22288 main () 22289 { 22290 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; 22291 test_array [0] = 0 22292 22293 ; 22294 return 0; 22295 } 22296 _ACEOF 22297 rm -f conftest.$ac_objext 22298 if { (ac_try="$ac_compile" 22299 case "(($ac_try" in 22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22301 *) ac_try_echo=$ac_try;; 22302 esac 22303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22304 $as_echo "$ac_try_echo") >&5 22305 (eval "$ac_compile") 2>conftest.er1 22306 ac_status=$? 22307 grep -v '^ *+' conftest.er1 >conftest.err 22308 rm -f conftest.er1 22309 cat conftest.err >&5 22310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22311 (exit $ac_status); } && { 22312 test -z "$ac_c_werror_flag" || 22313 test ! -s conftest.err 22314 } && test -s conftest.$ac_objext; then 22315 case $ac_type in 22316 uint8_t) ac_cv_c_uint8_t=yes ;; 22317 *) ac_cv_c_uint8_t=$ac_type ;; 22318 esac 22319 22320 else 22321 $as_echo "$as_me: failed program was:" >&5 22322 sed 's/^/| /' conftest.$ac_ext >&5 22323 22324 22325 fi 22326 22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22328 test "$ac_cv_c_uint8_t" != no && break 22329 done 22330 fi 22331 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 22332 $as_echo "$ac_cv_c_uint8_t" >&6; } 22333 case $ac_cv_c_uint8_t in #( 22334 no|yes) ;; #( 22335 *) 22336 22337 cat >>confdefs.h <<\_ACEOF 22338 #define _UINT8_T 1 22339 _ACEOF 22340 22341 22342 cat >>confdefs.h <<_ACEOF 22343 #define uint8_t $ac_cv_c_uint8_t 22344 _ACEOF 22345 ;; 22346 esac 22347 22348 22349 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 22350 $as_echo_n "checking for library containing gethostbyname... " >&6; } 22351 if test "${ac_cv_search_gethostbyname+set}" = set; then 22352 $as_echo_n "(cached) " >&6 22353 else 22354 ac_func_search_save_LIBS=$LIBS 22355 cat >conftest.$ac_ext <<_ACEOF 22356 /* confdefs.h. */ 22357 _ACEOF 22358 cat confdefs.h >>conftest.$ac_ext 22359 cat >>conftest.$ac_ext <<_ACEOF 22360 /* end confdefs.h. */ 22361 22362 /* Override any GCC internal prototype to avoid an error. 22363 Use char because int might match the return type of a GCC 22364 builtin and then its argument prototype would still apply. */ 22365 #ifdef __cplusplus 22366 extern "C" 22367 #endif 22368 char gethostbyname (); 22369 int 22370 main () 22371 { 22372 return gethostbyname (); 22373 ; 22374 return 0; 22375 } 22376 _ACEOF 22377 for ac_lib in '' nsl; do 22378 if test -z "$ac_lib"; then 22379 ac_res="none required" 22380 else 22381 ac_res=-l$ac_lib 22382 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22383 fi 22384 rm -f conftest.$ac_objext conftest$ac_exeext 22385 if { (ac_try="$ac_link" 22386 case "(($ac_try" in 22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22388 *) ac_try_echo=$ac_try;; 22389 esac 22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22391 $as_echo "$ac_try_echo") >&5 22392 (eval "$ac_link") 2>conftest.er1 22393 ac_status=$? 22394 grep -v '^ *+' conftest.er1 >conftest.err 22395 rm -f conftest.er1 22396 cat conftest.err >&5 22397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22398 (exit $ac_status); } && { 22399 test -z "$ac_c_werror_flag" || 22400 test ! -s conftest.err 22401 } && test -s conftest$ac_exeext && { 22402 test "$cross_compiling" = yes || 22403 $as_test_x conftest$ac_exeext 22404 }; then 22405 ac_cv_search_gethostbyname=$ac_res 22406 else 22407 $as_echo "$as_me: failed program was:" >&5 22408 sed 's/^/| /' conftest.$ac_ext >&5 22409 22410 22411 fi 22412 22413 rm -rf conftest.dSYM 22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22415 conftest$ac_exeext 22416 if test "${ac_cv_search_gethostbyname+set}" = set; then 22417 break 22418 fi 22419 done 22420 if test "${ac_cv_search_gethostbyname+set}" = set; then 22421 : 22422 else 22423 ac_cv_search_gethostbyname=no 22424 fi 22425 rm conftest.$ac_ext 22426 LIBS=$ac_func_search_save_LIBS 22427 fi 22428 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 22429 $as_echo "$ac_cv_search_gethostbyname" >&6; } 22430 ac_res=$ac_cv_search_gethostbyname 22431 if test "$ac_res" != no; then 22432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22433 22434 fi 22435 22436 { $as_echo "$as_me:$LINENO: checking for library containing connect" >&5 22437 $as_echo_n "checking for library containing connect... " >&6; } 22438 if test "${ac_cv_search_connect+set}" = set; then 22439 $as_echo_n "(cached) " >&6 22440 else 22441 ac_func_search_save_LIBS=$LIBS 22442 cat >conftest.$ac_ext <<_ACEOF 22443 /* confdefs.h. */ 22444 _ACEOF 22445 cat confdefs.h >>conftest.$ac_ext 22446 cat >>conftest.$ac_ext <<_ACEOF 22447 /* end confdefs.h. */ 22448 22449 /* Override any GCC internal prototype to avoid an error. 22450 Use char because int might match the return type of a GCC 22451 builtin and then its argument prototype would still apply. */ 22452 #ifdef __cplusplus 22453 extern "C" 22454 #endif 22455 char connect (); 22456 int 22457 main () 22458 { 22459 return connect (); 22460 ; 22461 return 0; 22462 } 22463 _ACEOF 22464 for ac_lib in '' socket; do 22465 if test -z "$ac_lib"; then 22466 ac_res="none required" 22467 else 22468 ac_res=-l$ac_lib 22469 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22470 fi 22471 rm -f conftest.$ac_objext conftest$ac_exeext 22472 if { (ac_try="$ac_link" 22473 case "(($ac_try" in 22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22475 *) ac_try_echo=$ac_try;; 22476 esac 22477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22478 $as_echo "$ac_try_echo") >&5 22479 (eval "$ac_link") 2>conftest.er1 22480 ac_status=$? 22481 grep -v '^ *+' conftest.er1 >conftest.err 22482 rm -f conftest.er1 22483 cat conftest.err >&5 22484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22485 (exit $ac_status); } && { 22486 test -z "$ac_c_werror_flag" || 22487 test ! -s conftest.err 22488 } && test -s conftest$ac_exeext && { 22489 test "$cross_compiling" = yes || 22490 $as_test_x conftest$ac_exeext 22491 }; then 22492 ac_cv_search_connect=$ac_res 22493 else 22494 $as_echo "$as_me: failed program was:" >&5 22495 sed 's/^/| /' conftest.$ac_ext >&5 22496 22497 22498 fi 22499 22500 rm -rf conftest.dSYM 22501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22502 conftest$ac_exeext 22503 if test "${ac_cv_search_connect+set}" = set; then 22504 break 22505 fi 22506 done 22507 if test "${ac_cv_search_connect+set}" = set; then 22508 : 22509 else 22510 ac_cv_search_connect=no 22511 fi 22512 rm conftest.$ac_ext 22513 LIBS=$ac_func_search_save_LIBS 22514 fi 22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5 22516 $as_echo "$ac_cv_search_connect" >&6; } 22517 ac_res=$ac_cv_search_connect 22518 if test "$ac_res" != no; then 22519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22520 22521 fi 22522 22523 { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 22524 $as_echo_n "checking for library containing inet_aton... " >&6; } 22525 if test "${ac_cv_search_inet_aton+set}" = set; then 22526 $as_echo_n "(cached) " >&6 22527 else 22528 ac_func_search_save_LIBS=$LIBS 22529 cat >conftest.$ac_ext <<_ACEOF 22530 /* confdefs.h. */ 22531 _ACEOF 22532 cat confdefs.h >>conftest.$ac_ext 22533 cat >>conftest.$ac_ext <<_ACEOF 22534 /* end confdefs.h. */ 22535 22536 /* Override any GCC internal prototype to avoid an error. 22537 Use char because int might match the return type of a GCC 22538 builtin and then its argument prototype would still apply. */ 22539 #ifdef __cplusplus 22540 extern "C" 22541 #endif 22542 char inet_aton (); 22543 int 22544 main () 22545 { 22546 return inet_aton (); 22547 ; 22548 return 0; 22549 } 22550 _ACEOF 22551 for ac_lib in '' resolv; do 22552 if test -z "$ac_lib"; then 22553 ac_res="none required" 22554 else 22555 ac_res=-l$ac_lib 22556 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22557 fi 22558 rm -f conftest.$ac_objext conftest$ac_exeext 22559 if { (ac_try="$ac_link" 22560 case "(($ac_try" in 22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22562 *) ac_try_echo=$ac_try;; 22563 esac 22564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22565 $as_echo "$ac_try_echo") >&5 22566 (eval "$ac_link") 2>conftest.er1 22567 ac_status=$? 22568 grep -v '^ *+' conftest.er1 >conftest.err 22569 rm -f conftest.er1 22570 cat conftest.err >&5 22571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22572 (exit $ac_status); } && { 22573 test -z "$ac_c_werror_flag" || 22574 test ! -s conftest.err 22575 } && test -s conftest$ac_exeext && { 22576 test "$cross_compiling" = yes || 22577 $as_test_x conftest$ac_exeext 22578 }; then 22579 ac_cv_search_inet_aton=$ac_res 22580 else 22581 $as_echo "$as_me: failed program was:" >&5 22582 sed 's/^/| /' conftest.$ac_ext >&5 22583 22584 22585 fi 22586 22587 rm -rf conftest.dSYM 22588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22589 conftest$ac_exeext 22590 if test "${ac_cv_search_inet_aton+set}" = set; then 22591 break 22592 fi 22593 done 22594 if test "${ac_cv_search_inet_aton+set}" = set; then 22595 : 22596 else 22597 ac_cv_search_inet_aton=no 22598 fi 22599 rm conftest.$ac_ext 22600 LIBS=$ac_func_search_save_LIBS 22601 fi 22602 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 22603 $as_echo "$ac_cv_search_inet_aton" >&6; } 22604 ac_res=$ac_cv_search_inet_aton 22605 if test "$ac_res" != no; then 22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22607 22608 fi 22609 22610 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 22611 $as_echo_n "checking for library containing pthread_create... " >&6; } 22612 if test "${ac_cv_search_pthread_create+set}" = set; then 22613 $as_echo_n "(cached) " >&6 22614 else 22615 ac_func_search_save_LIBS=$LIBS 22616 cat >conftest.$ac_ext <<_ACEOF 22617 /* confdefs.h. */ 22618 _ACEOF 22619 cat confdefs.h >>conftest.$ac_ext 22620 cat >>conftest.$ac_ext <<_ACEOF 22621 /* end confdefs.h. */ 22622 22623 /* Override any GCC internal prototype to avoid an error. 22624 Use char because int might match the return type of a GCC 22625 builtin and then its argument prototype would still apply. */ 22626 #ifdef __cplusplus 22627 extern "C" 22628 #endif 22629 char pthread_create (); 22630 int 22631 main () 22632 { 22633 return pthread_create (); 22634 ; 22635 return 0; 22636 } 22637 _ACEOF 22638 for ac_lib in '' pthread; do 22639 if test -z "$ac_lib"; then 22640 ac_res="none required" 22641 else 22642 ac_res=-l$ac_lib 22643 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22644 fi 22645 rm -f conftest.$ac_objext conftest$ac_exeext 22646 if { (ac_try="$ac_link" 22647 case "(($ac_try" in 22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22649 *) ac_try_echo=$ac_try;; 22650 esac 22651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22652 $as_echo "$ac_try_echo") >&5 22653 (eval "$ac_link") 2>conftest.er1 22654 ac_status=$? 22655 grep -v '^ *+' conftest.er1 >conftest.err 22656 rm -f conftest.er1 22657 cat conftest.err >&5 22658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22659 (exit $ac_status); } && { 22660 test -z "$ac_c_werror_flag" || 22661 test ! -s conftest.err 22662 } && test -s conftest$ac_exeext && { 22663 test "$cross_compiling" = yes || 22664 $as_test_x conftest$ac_exeext 22665 }; then 22666 ac_cv_search_pthread_create=$ac_res 22667 else 22668 $as_echo "$as_me: failed program was:" >&5 22669 sed 's/^/| /' conftest.$ac_ext >&5 22670 22671 22672 fi 22673 22674 rm -rf conftest.dSYM 22675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22676 conftest$ac_exeext 22677 if test "${ac_cv_search_pthread_create+set}" = set; then 22678 break 22679 fi 22680 done 22681 if test "${ac_cv_search_pthread_create+set}" = set; then 22682 : 22683 else 22684 ac_cv_search_pthread_create=no 22685 fi 22686 rm conftest.$ac_ext 22687 LIBS=$ac_func_search_save_LIBS 22688 fi 22689 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 22690 $as_echo "$ac_cv_search_pthread_create" >&6; } 22691 ac_res=$ac_cv_search_pthread_create 22692 if test "$ac_res" != no; then 22693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22694 22695 fi 22696 22697 22698 22699 22700 22701 22702 22703 22704 for ac_func in __bswap64 asprintf asnprintf bswap64 daemon fsync_range 22705 do 22706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22708 $as_echo_n "checking for $ac_func... " >&6; } 22709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22710 $as_echo_n "(cached) " >&6 22711 else 22712 cat >conftest.$ac_ext <<_ACEOF 22713 /* confdefs.h. */ 22714 _ACEOF 22715 cat confdefs.h >>conftest.$ac_ext 22716 cat >>conftest.$ac_ext <<_ACEOF 22717 /* end confdefs.h. */ 22718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22720 #define $ac_func innocuous_$ac_func 22721 22722 /* System header to define __stub macros and hopefully few prototypes, 22723 which can conflict with char $ac_func (); below. 22724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22725 <limits.h> exists even on freestanding compilers. */ 22726 22727 #ifdef __STDC__ 22728 # include <limits.h> 22729 #else 22730 # include <assert.h> 22731 #endif 22732 22733 #undef $ac_func 22734 22735 /* Override any GCC internal prototype to avoid an error. 22736 Use char because int might match the return type of a GCC 22737 builtin and then its argument prototype would still apply. */ 22738 #ifdef __cplusplus 22739 extern "C" 22740 #endif 22741 char $ac_func (); 22742 /* The GNU C library defines this for functions which it implements 22743 to always fail with ENOSYS. Some functions are actually named 22744 something starting with __ and the normal name is an alias. */ 22745 #if defined __stub_$ac_func || defined __stub___$ac_func 22746 choke me 22747 #endif 22748 22749 int 22750 main () 22751 { 22752 return $ac_func (); 22753 ; 22754 return 0; 22755 } 22756 _ACEOF 22757 rm -f conftest.$ac_objext conftest$ac_exeext 22758 if { (ac_try="$ac_link" 22759 case "(($ac_try" in 22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22761 *) ac_try_echo=$ac_try;; 22762 esac 22763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22764 $as_echo "$ac_try_echo") >&5 22765 (eval "$ac_link") 2>conftest.er1 22766 ac_status=$? 22767 grep -v '^ *+' conftest.er1 >conftest.err 22768 rm -f conftest.er1 22769 cat conftest.err >&5 22770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22771 (exit $ac_status); } && { 22772 test -z "$ac_c_werror_flag" || 22773 test ! -s conftest.err 22774 } && test -s conftest$ac_exeext && { 22775 test "$cross_compiling" = yes || 22776 $as_test_x conftest$ac_exeext 22777 }; then 22778 eval "$as_ac_var=yes" 22779 else 22780 $as_echo "$as_me: failed program was:" >&5 22781 sed 's/^/| /' conftest.$ac_ext >&5 22782 22783 eval "$as_ac_var=no" 22784 fi 22785 22786 rm -rf conftest.dSYM 22787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22788 conftest$ac_exeext conftest.$ac_ext 22789 fi 22790 ac_res=`eval 'as_val=${'$as_ac_var'} 22791 $as_echo "$as_val"'` 22792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22793 $as_echo "$ac_res" >&6; } 22794 as_val=`eval 'as_val=${'$as_ac_var'} 22795 $as_echo "$as_val"'` 22796 if test "x$as_val" = x""yes; then 22797 cat >>confdefs.h <<_ACEOF 22798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22799 _ACEOF 22800 22801 fi 22802 done 22803 22804 22805 22806 22807 22808 22809 22810 22811 for ac_func in getaddrinfo getnameinfo htobe64 memset bcopy poll snprintf 22812 do 22813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22815 $as_echo_n "checking for $ac_func... " >&6; } 22816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22817 $as_echo_n "(cached) " >&6 22818 else 22819 cat >conftest.$ac_ext <<_ACEOF 22820 /* confdefs.h. */ 22821 _ACEOF 22822 cat confdefs.h >>conftest.$ac_ext 22823 cat >>conftest.$ac_ext <<_ACEOF 22824 /* end confdefs.h. */ 22825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22827 #define $ac_func innocuous_$ac_func 22828 22829 /* System header to define __stub macros and hopefully few prototypes, 22830 which can conflict with char $ac_func (); below. 22831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22832 <limits.h> exists even on freestanding compilers. */ 22833 22834 #ifdef __STDC__ 22835 # include <limits.h> 22836 #else 22837 # include <assert.h> 22838 #endif 22839 22840 #undef $ac_func 22841 22842 /* Override any GCC internal prototype to avoid an error. 22843 Use char because int might match the return type of a GCC 22844 builtin and then its argument prototype would still apply. */ 22845 #ifdef __cplusplus 22846 extern "C" 22847 #endif 22848 char $ac_func (); 22849 /* The GNU C library defines this for functions which it implements 22850 to always fail with ENOSYS. Some functions are actually named 22851 something starting with __ and the normal name is an alias. */ 22852 #if defined __stub_$ac_func || defined __stub___$ac_func 22853 choke me 22854 #endif 22855 22856 int 22857 main () 22858 { 22859 return $ac_func (); 22860 ; 22861 return 0; 22862 } 22863 _ACEOF 22864 rm -f conftest.$ac_objext conftest$ac_exeext 22865 if { (ac_try="$ac_link" 22866 case "(($ac_try" in 22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22868 *) ac_try_echo=$ac_try;; 22869 esac 22870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22871 $as_echo "$ac_try_echo") >&5 22872 (eval "$ac_link") 2>conftest.er1 22873 ac_status=$? 22874 grep -v '^ *+' conftest.er1 >conftest.err 22875 rm -f conftest.er1 22876 cat conftest.err >&5 22877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22878 (exit $ac_status); } && { 22879 test -z "$ac_c_werror_flag" || 22880 test ! -s conftest.err 22881 } && test -s conftest$ac_exeext && { 22882 test "$cross_compiling" = yes || 22883 $as_test_x conftest$ac_exeext 22884 }; then 22885 eval "$as_ac_var=yes" 22886 else 22887 $as_echo "$as_me: failed program was:" >&5 22888 sed 's/^/| /' conftest.$ac_ext >&5 22889 22890 eval "$as_ac_var=no" 22891 fi 22892 22893 rm -rf conftest.dSYM 22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22895 conftest$ac_exeext conftest.$ac_ext 22896 fi 22897 ac_res=`eval 'as_val=${'$as_ac_var'} 22898 $as_echo "$as_val"'` 22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22900 $as_echo "$ac_res" >&6; } 22901 as_val=`eval 'as_val=${'$as_ac_var'} 22902 $as_echo "$as_val"'` 22903 if test "x$as_val" = x""yes; then 22904 cat >>confdefs.h <<_ACEOF 22905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22906 _ACEOF 22907 22908 fi 22909 done 22910 22911 22912 22913 22914 22915 22916 22917 for ac_func in strlcpy strtoll syslog uuid_create uuid_to_string vasprintf 22918 do 22919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22920 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22921 $as_echo_n "checking for $ac_func... " >&6; } 22922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22923 $as_echo_n "(cached) " >&6 22924 else 22925 cat >conftest.$ac_ext <<_ACEOF 22926 /* confdefs.h. */ 22927 _ACEOF 22928 cat confdefs.h >>conftest.$ac_ext 22929 cat >>conftest.$ac_ext <<_ACEOF 22930 /* end confdefs.h. */ 22931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22932 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22933 #define $ac_func innocuous_$ac_func 22934 22935 /* System header to define __stub macros and hopefully few prototypes, 22936 which can conflict with char $ac_func (); below. 22937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22938 <limits.h> exists even on freestanding compilers. */ 22939 22940 #ifdef __STDC__ 22941 # include <limits.h> 22942 #else 22943 # include <assert.h> 22944 #endif 22945 22946 #undef $ac_func 22947 22948 /* Override any GCC internal prototype to avoid an error. 22949 Use char because int might match the return type of a GCC 22950 builtin and then its argument prototype would still apply. */ 22951 #ifdef __cplusplus 22952 extern "C" 22953 #endif 22954 char $ac_func (); 22955 /* The GNU C library defines this for functions which it implements 22956 to always fail with ENOSYS. Some functions are actually named 22957 something starting with __ and the normal name is an alias. */ 22958 #if defined __stub_$ac_func || defined __stub___$ac_func 22959 choke me 22960 #endif 22961 22962 int 22963 main () 22964 { 22965 return $ac_func (); 22966 ; 22967 return 0; 22968 } 22969 _ACEOF 22970 rm -f conftest.$ac_objext conftest$ac_exeext 22971 if { (ac_try="$ac_link" 22972 case "(($ac_try" in 22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22974 *) ac_try_echo=$ac_try;; 22975 esac 22976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22977 $as_echo "$ac_try_echo") >&5 22978 (eval "$ac_link") 2>conftest.er1 22979 ac_status=$? 22980 grep -v '^ *+' conftest.er1 >conftest.err 22981 rm -f conftest.er1 22982 cat conftest.err >&5 22983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22984 (exit $ac_status); } && { 22985 test -z "$ac_c_werror_flag" || 22986 test ! -s conftest.err 22987 } && test -s conftest$ac_exeext && { 22988 test "$cross_compiling" = yes || 22989 $as_test_x conftest$ac_exeext 22990 }; then 22991 eval "$as_ac_var=yes" 22992 else 22993 $as_echo "$as_me: failed program was:" >&5 22994 sed 's/^/| /' conftest.$ac_ext >&5 22995 22996 eval "$as_ac_var=no" 22997 fi 22998 22999 rm -rf conftest.dSYM 23000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23001 conftest$ac_exeext conftest.$ac_ext 23002 fi 23003 ac_res=`eval 'as_val=${'$as_ac_var'} 23004 $as_echo "$as_val"'` 23005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23006 $as_echo "$ac_res" >&6; } 23007 as_val=`eval 'as_val=${'$as_ac_var'} 23008 $as_echo "$as_val"'` 23009 if test "x$as_val" = x""yes; then 23010 cat >>confdefs.h <<_ACEOF 23011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23012 _ACEOF 23013 23014 fi 23015 done 23016 23017 23018 23019 23020 for ac_func in vasprintf vasnprintf vsnprintf 23021 do 23022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23023 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 23024 $as_echo_n "checking for $ac_func... " >&6; } 23025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23026 $as_echo_n "(cached) " >&6 23027 else 23028 cat >conftest.$ac_ext <<_ACEOF 23029 /* confdefs.h. */ 23030 _ACEOF 23031 cat confdefs.h >>conftest.$ac_ext 23032 cat >>conftest.$ac_ext <<_ACEOF 23033 /* end confdefs.h. */ 23034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23035 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23036 #define $ac_func innocuous_$ac_func 23037 23038 /* System header to define __stub macros and hopefully few prototypes, 23039 which can conflict with char $ac_func (); below. 23040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23041 <limits.h> exists even on freestanding compilers. */ 23042 23043 #ifdef __STDC__ 23044 # include <limits.h> 23045 #else 23046 # include <assert.h> 23047 #endif 23048 23049 #undef $ac_func 23050 23051 /* Override any GCC internal prototype to avoid an error. 23052 Use char because int might match the return type of a GCC 23053 builtin and then its argument prototype would still apply. */ 23054 #ifdef __cplusplus 23055 extern "C" 23056 #endif 23057 char $ac_func (); 23058 /* The GNU C library defines this for functions which it implements 23059 to always fail with ENOSYS. Some functions are actually named 23060 something starting with __ and the normal name is an alias. */ 23061 #if defined __stub_$ac_func || defined __stub___$ac_func 23062 choke me 23063 #endif 23064 23065 int 23066 main () 23067 { 23068 return $ac_func (); 23069 ; 23070 return 0; 23071 } 23072 _ACEOF 23073 rm -f conftest.$ac_objext conftest$ac_exeext 23074 if { (ac_try="$ac_link" 23075 case "(($ac_try" in 23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23077 *) ac_try_echo=$ac_try;; 23078 esac 23079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23080 $as_echo "$ac_try_echo") >&5 23081 (eval "$ac_link") 2>conftest.er1 23082 ac_status=$? 23083 grep -v '^ *+' conftest.er1 >conftest.err 23084 rm -f conftest.er1 23085 cat conftest.err >&5 23086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23087 (exit $ac_status); } && { 23088 test -z "$ac_c_werror_flag" || 23089 test ! -s conftest.err 23090 } && test -s conftest$ac_exeext && { 23091 test "$cross_compiling" = yes || 23092 $as_test_x conftest$ac_exeext 23093 }; then 23094 eval "$as_ac_var=yes" 23095 else 23096 $as_echo "$as_me: failed program was:" >&5 23097 sed 's/^/| /' conftest.$ac_ext >&5 23098 23099 eval "$as_ac_var=no" 23100 fi 23101 23102 rm -rf conftest.dSYM 23103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23104 conftest$ac_exeext conftest.$ac_ext 23105 fi 23106 ac_res=`eval 'as_val=${'$as_ac_var'} 23107 $as_echo "$as_val"'` 23108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 23109 $as_echo "$ac_res" >&6; } 23110 as_val=`eval 'as_val=${'$as_ac_var'} 23111 $as_echo "$as_val"'` 23112 if test "x$as_val" = x""yes; then 23113 cat >>confdefs.h <<_ACEOF 23114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23115 _ACEOF 23116 23117 fi 23118 done 23119 23120 23121 ac_config_files="$ac_config_files Makefile" 23122 23123 cat >confcache <<\_ACEOF 23124 # This file is a shell script that caches the results of configure 23125 # tests run on this system so they can be shared between configure 23126 # scripts and configure runs, see configure's option --config-cache. 23127 # It is not useful on other systems. If it contains results you don't 23128 # want to keep, you may remove or edit it. 23129 # 23130 # config.status only pays attention to the cache file if you give it 23131 # the --recheck option to rerun configure. 23132 # 23133 # `ac_cv_env_foo' variables (set or unset) will be overridden when 23134 # loading this file, other *unset* `ac_cv_foo' will be assigned the 23135 # following values. 23136 23137 _ACEOF 23138 23139 # The following way of writing the cache mishandles newlines in values, 23140 # but we know of no workaround that is simple, portable, and efficient. 23141 # So, we kill variables containing newlines. 23142 # Ultrix sh set writes to stderr and can't be redirected directly, 23143 # and sets the high bit in the cache file unless we assign to the vars. 23144 ( 23145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23146 eval ac_val=\$$ac_var 23147 case $ac_val in #( 23148 *${as_nl}*) 23149 case $ac_var in #( 23150 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 23151 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23152 esac 23153 case $ac_var in #( 23154 _ | IFS | as_nl) ;; #( 23155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23156 *) $as_unset $ac_var ;; 23157 esac ;; 23158 esac 23159 done 23160 23161 (set) 2>&1 | 23162 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23163 *${as_nl}ac_space=\ *) 23164 # `set' does not quote correctly, so add quotes (double-quote 23165 # substitution turns \\\\ into \\, and sed turns \\ into \). 23166 sed -n \ 23167 "s/'/'\\\\''/g; 23168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23169 ;; #( 23170 *) 23171 # `set' quotes correctly as required by POSIX, so do not add quotes. 23172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23173 ;; 23174 esac | 23175 sort 23176 ) | 23177 sed ' 23178 /^ac_cv_env_/b end 23179 t clear 23180 :clear 23181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23182 t end 23183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23184 :end' >>confcache 23185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23186 if test -w "$cache_file"; then 23187 test "x$cache_file" != "x/dev/null" && 23188 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 23189 $as_echo "$as_me: updating cache $cache_file" >&6;} 23190 cat confcache >$cache_file 23191 else 23192 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23193 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23194 fi 23195 fi 23196 rm -f confcache 23197 23198 test "x$prefix" = xNONE && prefix=$ac_default_prefix 23199 # Let make expand exec_prefix. 23200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23201 23202 DEFS=-DHAVE_CONFIG_H 23203 23204 ac_libobjs= 23205 ac_ltlibobjs= 23206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23207 # 1. Remove the extension, and $U if already installed. 23208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23209 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 23210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23211 # will be set to the directory where LIBOBJS objects are built. 23212 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23213 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23214 done 23215 LIBOBJS=$ac_libobjs 23216 23217 LTLIBOBJS=$ac_ltlibobjs 23218 23219 23220 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23221 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23222 Usually this means the macro was only invoked conditionally." >&5 23223 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23224 Usually this means the macro was only invoked conditionally." >&2;} 23225 { (exit 1); exit 1; }; } 23226 fi 23227 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23228 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23229 Usually this means the macro was only invoked conditionally." >&5 23230 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 23231 Usually this means the macro was only invoked conditionally." >&2;} 23232 { (exit 1); exit 1; }; } 23233 fi 23234 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23235 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23236 Usually this means the macro was only invoked conditionally." >&5 23237 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23238 Usually this means the macro was only invoked conditionally." >&2;} 23239 { (exit 1); exit 1; }; } 23240 fi 23241 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23242 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23243 Usually this means the macro was only invoked conditionally." >&5 23244 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23245 Usually this means the macro was only invoked conditionally." >&2;} 23246 { (exit 1); exit 1; }; } 23247 fi 23248 23249 : ${CONFIG_STATUS=./config.status} 23250 ac_write_fail=0 23251 ac_clean_files_save=$ac_clean_files 23252 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23253 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23254 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23255 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23256 #! $SHELL 23257 # Generated by $as_me. 23258 # Run this file to recreate the current configuration. 23259 # Compiler output produced by configure, useful for debugging 23260 # configure, is in config.log if it exists. 23261 23262 debug=false 23263 ac_cs_recheck=false 23264 ac_cs_silent=false 23265 SHELL=\${CONFIG_SHELL-$SHELL} 23266 _ACEOF 23267 23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23269 ## --------------------- ## 23270 ## M4sh Initialization. ## 23271 ## --------------------- ## 23272 23273 # Be more Bourne compatible 23274 DUALCASE=1; export DUALCASE # for MKS sh 23275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23276 emulate sh 23277 NULLCMD=: 23278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23279 # is contrary to our usage. Disable this feature. 23280 alias -g '${1+"$@"}'='"$@"' 23281 setopt NO_GLOB_SUBST 23282 else 23283 case `(set -o) 2>/dev/null` in 23284 *posix*) set -o posix ;; 23285 esac 23286 23287 fi 23288 23289 23290 23291 23292 # PATH needs CR 23293 # Avoid depending upon Character Ranges. 23294 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23297 as_cr_digits='0123456789' 23298 as_cr_alnum=$as_cr_Letters$as_cr_digits 23299 23300 as_nl=' 23301 ' 23302 export as_nl 23303 # Printing a long string crashes Solaris 7 /usr/bin/printf. 23304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23307 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23308 as_echo='printf %s\n' 23309 as_echo_n='printf %s' 23310 else 23311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23313 as_echo_n='/usr/ucb/echo -n' 23314 else 23315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23316 as_echo_n_body='eval 23317 arg=$1; 23318 case $arg in 23319 *"$as_nl"*) 23320 expr "X$arg" : "X\\(.*\\)$as_nl"; 23321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23322 esac; 23323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23324 ' 23325 export as_echo_n_body 23326 as_echo_n='sh -c $as_echo_n_body as_echo' 23327 fi 23328 export as_echo_body 23329 as_echo='sh -c $as_echo_body as_echo' 23330 fi 23331 23332 # The user is always right. 23333 if test "${PATH_SEPARATOR+set}" != set; then 23334 PATH_SEPARATOR=: 23335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23337 PATH_SEPARATOR=';' 23338 } 23339 fi 23340 23341 # Support unset when possible. 23342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23343 as_unset=unset 23344 else 23345 as_unset=false 23346 fi 23347 23348 23349 # IFS 23350 # We need space, tab and new line, in precisely that order. Quoting is 23351 # there to prevent editors from complaining about space-tab. 23352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 23353 # splitting by setting IFS to empty value.) 23354 IFS=" "" $as_nl" 23355 23356 # Find who we are. Look in the path if we contain no directory separator. 23357 case $0 in 23358 *[\\/]* ) as_myself=$0 ;; 23359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23360 for as_dir in $PATH 23361 do 23362 IFS=$as_save_IFS 23363 test -z "$as_dir" && as_dir=. 23364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23365 done 23366 IFS=$as_save_IFS 23367 23368 ;; 23369 esac 23370 # We did not find ourselves, most probably we were run as `sh COMMAND' 23371 # in which case we are not to be found in the path. 23372 if test "x$as_myself" = x; then 23373 as_myself=$0 23374 fi 23375 if test ! -f "$as_myself"; then 23376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23377 { (exit 1); exit 1; } 23378 fi 23379 23380 # Work around bugs in pre-3.0 UWIN ksh. 23381 for as_var in ENV MAIL MAILPATH 23382 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23383 done 23384 PS1='$ ' 23385 PS2='> ' 23386 PS4='+ ' 23387 23388 # NLS nuisances. 23389 LC_ALL=C 23390 export LC_ALL 23391 LANGUAGE=C 23392 export LANGUAGE 23393 23394 # Required to use basename. 23395 if expr a : '\(a\)' >/dev/null 2>&1 && 23396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23397 as_expr=expr 23398 else 23399 as_expr=false 23400 fi 23401 23402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23403 as_basename=basename 23404 else 23405 as_basename=false 23406 fi 23407 23408 23409 # Name of the executable. 23410 as_me=`$as_basename -- "$0" || 23411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23412 X"$0" : 'X\(//\)$' \| \ 23413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23414 $as_echo X/"$0" | 23415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23416 s//\1/ 23417 q 23418 } 23419 /^X\/\(\/\/\)$/{ 23420 s//\1/ 23421 q 23422 } 23423 /^X\/\(\/\).*/{ 23424 s//\1/ 23425 q 23426 } 23427 s/.*/./; q'` 23428 23429 # CDPATH. 23430 $as_unset CDPATH 23431 23432 23433 23434 as_lineno_1=$LINENO 23435 as_lineno_2=$LINENO 23436 test "x$as_lineno_1" != "x$as_lineno_2" && 23437 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23438 23439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23440 # uniformly replaced by the line number. The first 'sed' inserts a 23441 # line-number line after each line using $LINENO; the second 'sed' 23442 # does the real work. The second script uses 'N' to pair each 23443 # line-number line with the line containing $LINENO, and appends 23444 # trailing '-' during substitution so that $LINENO is not a special 23445 # case at line end. 23446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23447 # scripts with optimization help from Paolo Bonzini. Blame Lee 23448 # E. McMahon (1931-1989) for sed's syntax. :-) 23449 sed -n ' 23450 p 23451 /[$]LINENO/= 23452 ' <$as_myself | 23453 sed ' 23454 s/[$]LINENO.*/&-/ 23455 t lineno 23456 b 23457 :lineno 23458 N 23459 :loop 23460 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23461 t loop 23462 s/-\n.*// 23463 ' >$as_me.lineno && 23464 chmod +x "$as_me.lineno" || 23465 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23466 { (exit 1); exit 1; }; } 23467 23468 # Don't try to exec as it changes $[0], causing all sort of problems 23469 # (the dirname of $[0] is not the place where we might find the 23470 # original and so on. Autoconf is especially sensitive to this). 23471 . "./$as_me.lineno" 23472 # Exit status is that of the last command. 23473 exit 23474 } 23475 23476 23477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23478 as_dirname=dirname 23479 else 23480 as_dirname=false 23481 fi 23482 23483 ECHO_C= ECHO_N= ECHO_T= 23484 case `echo -n x` in 23485 -n*) 23486 case `echo 'x\c'` in 23487 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23488 *) ECHO_C='\c';; 23489 esac;; 23490 *) 23491 ECHO_N='-n';; 23492 esac 23493 if expr a : '\(a\)' >/dev/null 2>&1 && 23494 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23495 as_expr=expr 23496 else 23497 as_expr=false 23498 fi 23499 23500 rm -f conf$$ conf$$.exe conf$$.file 23501 if test -d conf$$.dir; then 23502 rm -f conf$$.dir/conf$$.file 23503 else 23504 rm -f conf$$.dir 23505 mkdir conf$$.dir 2>/dev/null 23506 fi 23507 if (echo >conf$$.file) 2>/dev/null; then 23508 if ln -s conf$$.file conf$$ 2>/dev/null; then 23509 as_ln_s='ln -s' 23510 # ... but there are two gotchas: 23511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23513 # In both cases, we have to default to `cp -p'. 23514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23515 as_ln_s='cp -p' 23516 elif ln conf$$.file conf$$ 2>/dev/null; then 23517 as_ln_s=ln 23518 else 23519 as_ln_s='cp -p' 23520 fi 23521 else 23522 as_ln_s='cp -p' 23523 fi 23524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23525 rmdir conf$$.dir 2>/dev/null 23526 23527 if mkdir -p . 2>/dev/null; then 23528 as_mkdir_p=: 23529 else 23530 test -d ./-p && rmdir ./-p 23531 as_mkdir_p=false 23532 fi 23533 23534 if test -x / >/dev/null 2>&1; then 23535 as_test_x='test -x' 23536 else 23537 if ls -dL / >/dev/null 2>&1; then 23538 as_ls_L_option=L 23539 else 23540 as_ls_L_option= 23541 fi 23542 as_test_x=' 23543 eval sh -c '\'' 23544 if test -d "$1"; then 23545 test -d "$1/."; 23546 else 23547 case $1 in 23548 -*)set "./$1";; 23549 esac; 23550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23551 ???[sx]*):;;*)false;;esac;fi 23552 '\'' sh 23553 ' 23554 fi 23555 as_executable_p=$as_test_x 23556 23557 # Sed expression to map a string onto a valid CPP name. 23558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23559 23560 # Sed expression to map a string onto a valid variable name. 23561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23562 23563 23564 exec 6>&1 23565 23566 # Save the log message, to keep $[0] and so on meaningful, and to 23567 # report actual input values of CONFIG_FILES etc. instead of their 23568 # values after options handling. 23569 ac_log=" 23570 This file was extended by netbsd-iscsi $as_me 20111006, which was 23571 generated by GNU Autoconf 2.63. Invocation command line was 23572 23573 CONFIG_FILES = $CONFIG_FILES 23574 CONFIG_HEADERS = $CONFIG_HEADERS 23575 CONFIG_LINKS = $CONFIG_LINKS 23576 CONFIG_COMMANDS = $CONFIG_COMMANDS 23577 $ $0 $@ 23578 23579 on `(hostname || uname -n) 2>/dev/null | sed 1q` 23580 " 23581 23582 _ACEOF 23583 23584 case $ac_config_files in *" 23585 "*) set x $ac_config_files; shift; ac_config_files=$*;; 23586 esac 23587 23588 case $ac_config_headers in *" 23589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23590 esac 23591 23592 23593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23594 # Files that config.status was made for. 23595 config_files="$ac_config_files" 23596 config_headers="$ac_config_headers" 23597 config_commands="$ac_config_commands" 23598 23599 _ACEOF 23600 23601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23602 ac_cs_usage="\ 23603 \`$as_me' instantiates files from templates according to the 23604 current configuration. 23605 23606 Usage: $0 [OPTION]... [FILE]... 23607 23608 -h, --help print this help, then exit 23609 -V, --version print version number and configuration settings, then exit 23610 -q, --quiet, --silent 23611 do not print progress messages 23612 -d, --debug don't remove temporary files 23613 --recheck update $as_me by reconfiguring in the same conditions 23614 --file=FILE[:TEMPLATE] 23615 instantiate the configuration file FILE 23616 --header=FILE[:TEMPLATE] 23617 instantiate the configuration header FILE 23618 23619 Configuration files: 23620 $config_files 23621 23622 Configuration headers: 23623 $config_headers 23624 23625 Configuration commands: 23626 $config_commands 23627 23628 Report bugs to <bug-autoconf (at] gnu.org>." 23629 23630 _ACEOF 23631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23632 ac_cs_version="\\ 23633 netbsd-iscsi config.status 20111006 23634 configured by $0, generated by GNU Autoconf 2.63, 23635 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23636 23637 Copyright (C) 2008 Free Software Foundation, Inc. 23638 This config.status script is free software; the Free Software Foundation 23639 gives unlimited permission to copy, distribute and modify it." 23640 23641 ac_pwd='$ac_pwd' 23642 srcdir='$srcdir' 23643 INSTALL='$INSTALL' 23644 MKDIR_P='$MKDIR_P' 23645 AWK='$AWK' 23646 test -n "\$AWK" || AWK=awk 23647 _ACEOF 23648 23649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23650 # The default lists apply if the user does not specify any file. 23651 ac_need_defaults=: 23652 while test $# != 0 23653 do 23654 case $1 in 23655 --*=*) 23656 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23658 ac_shift=: 23659 ;; 23660 *) 23661 ac_option=$1 23662 ac_optarg=$2 23663 ac_shift=shift 23664 ;; 23665 esac 23666 23667 case $ac_option in 23668 # Handling of the options. 23669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23670 ac_cs_recheck=: ;; 23671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23672 $as_echo "$ac_cs_version"; exit ;; 23673 --debug | --debu | --deb | --de | --d | -d ) 23674 debug=: ;; 23675 --file | --fil | --fi | --f ) 23676 $ac_shift 23677 case $ac_optarg in 23678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23679 esac 23680 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 23681 ac_need_defaults=false;; 23682 --header | --heade | --head | --hea ) 23683 $ac_shift 23684 case $ac_optarg in 23685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23686 esac 23687 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 23688 ac_need_defaults=false;; 23689 --he | --h) 23690 # Conflict between --help and --header 23691 { $as_echo "$as_me: error: ambiguous option: $1 23692 Try \`$0 --help' for more information." >&2 23693 { (exit 1); exit 1; }; };; 23694 --help | --hel | -h ) 23695 $as_echo "$ac_cs_usage"; exit ;; 23696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23697 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23698 ac_cs_silent=: ;; 23699 23700 # This is an error. 23701 -*) { $as_echo "$as_me: error: unrecognized option: $1 23702 Try \`$0 --help' for more information." >&2 23703 { (exit 1); exit 1; }; } ;; 23704 23705 *) ac_config_targets="$ac_config_targets $1" 23706 ac_need_defaults=false ;; 23707 23708 esac 23709 shift 23710 done 23711 23712 ac_configure_extra_args= 23713 23714 if $ac_cs_silent; then 23715 exec 6>/dev/null 23716 ac_configure_extra_args="$ac_configure_extra_args --silent" 23717 fi 23718 23719 _ACEOF 23720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23721 if \$ac_cs_recheck; then 23722 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23723 shift 23724 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23725 CONFIG_SHELL='$SHELL' 23726 export CONFIG_SHELL 23727 exec "\$@" 23728 fi 23729 23730 _ACEOF 23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23732 exec 5>>config.log 23733 { 23734 echo 23735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23736 ## Running $as_me. ## 23737 _ASBOX 23738 $as_echo "$ac_log" 23739 } >&5 23740 23741 _ACEOF 23742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23743 # 23744 # INIT-COMMANDS 23745 # 23746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23747 23748 _ACEOF 23749 23750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23751 23752 # Handling of arguments. 23753 for ac_config_target in $ac_config_targets 23754 do 23755 case $ac_config_target in 23756 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 23757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23759 23760 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23761 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23762 { (exit 1); exit 1; }; };; 23763 esac 23764 done 23765 23766 23767 # If the user did not use the arguments to specify the items to instantiate, 23768 # then the envvar interface is used. Set only those that are not. 23769 # We use the long form for the default assignment because of an extremely 23770 # bizarre bug on SunOS 4.1.3. 23771 if $ac_need_defaults; then 23772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23775 fi 23776 23777 # Have a temporary directory for convenience. Make it in the build tree 23778 # simply because there is no reason against having it here, and in addition, 23779 # creating and moving files from /tmp can sometimes cause problems. 23780 # Hook for its removal unless debugging. 23781 # Note that there is a small window in which the directory will not be cleaned: 23782 # after its creation but before its name has been assigned to `$tmp'. 23783 $debug || 23784 { 23785 tmp= 23786 trap 'exit_status=$? 23787 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23788 ' 0 23789 trap '{ (exit 1); exit 1; }' 1 2 13 15 23790 } 23791 # Create a (secure) tmp directory for tmp files. 23792 23793 { 23794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23795 test -n "$tmp" && test -d "$tmp" 23796 } || 23797 { 23798 tmp=./conf$$-$RANDOM 23799 (umask 077 && mkdir "$tmp") 23800 } || 23801 { 23802 $as_echo "$as_me: cannot create a temporary directory in ." >&2 23803 { (exit 1); exit 1; } 23804 } 23805 23806 # Set up the scripts for CONFIG_FILES section. 23807 # No need to generate them if there are no CONFIG_FILES. 23808 # This happens for instance with `./config.status config.h'. 23809 if test -n "$CONFIG_FILES"; then 23810 23811 23812 ac_cr=' ' 23814 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23815 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23816 ac_cs_awk_cr='\\r' 23817 else 23818 ac_cs_awk_cr=$ac_cr 23819 fi 23820 23821 echo 'BEGIN {' >"$tmp/subs1.awk" && 23822 _ACEOF 23823 23824 23825 { 23826 echo "cat >conf$$subs.awk <<_ACEOF" && 23827 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23828 echo "_ACEOF" 23829 } >conf$$subs.sh || 23830 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23831 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23832 { (exit 1); exit 1; }; } 23833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23834 ac_delim='%!_!# ' 23835 for ac_last_try in false false false false false :; do 23836 . ./conf$$subs.sh || 23837 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23838 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23839 { (exit 1); exit 1; }; } 23840 23841 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23842 if test $ac_delim_n = $ac_delim_num; then 23843 break 23844 elif $ac_last_try; then 23845 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23846 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23847 { (exit 1); exit 1; }; } 23848 else 23849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23850 fi 23851 done 23852 rm -f conf$$subs.sh 23853 23854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23855 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23856 _ACEOF 23857 sed -n ' 23858 h 23859 s/^/S["/; s/!.*/"]=/ 23860 p 23861 g 23862 s/^[^!]*!// 23863 :repl 23864 t repl 23865 s/'"$ac_delim"'$// 23866 t delim 23867 :nl 23868 h 23869 s/\(.\{148\}\).*/\1/ 23870 t more1 23871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23872 p 23873 n 23874 b repl 23875 :more1 23876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23877 p 23878 g 23879 s/.\{148\}// 23880 t nl 23881 :delim 23882 h 23883 s/\(.\{148\}\).*/\1/ 23884 t more2 23885 s/["\\]/\\&/g; s/^/"/; s/$/"/ 23886 p 23887 b 23888 :more2 23889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23890 p 23891 g 23892 s/.\{148\}// 23893 t delim 23894 ' <conf$$subs.awk | sed ' 23895 /^[^""]/{ 23896 N 23897 s/\n// 23898 } 23899 ' >>$CONFIG_STATUS || ac_write_fail=1 23900 rm -f conf$$subs.awk 23901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23902 _ACAWK 23903 cat >>"\$tmp/subs1.awk" <<_ACAWK && 23904 for (key in S) S_is_set[key] = 1 23905 FS = "" 23906 23907 } 23908 { 23909 line = $ 0 23910 nfields = split(line, field, "@") 23911 substed = 0 23912 len = length(field[1]) 23913 for (i = 2; i < nfields; i++) { 23914 key = field[i] 23915 keylen = length(key) 23916 if (S_is_set[key]) { 23917 value = S[key] 23918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23919 len += length(value) + length(field[++i]) 23920 substed = 1 23921 } else 23922 len += 1 + keylen 23923 } 23924 23925 print line 23926 } 23927 23928 _ACAWK 23929 _ACEOF 23930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23933 else 23934 cat 23935 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23936 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23937 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 23938 { (exit 1); exit 1; }; } 23939 _ACEOF 23940 23941 # VPATH may cause trouble with some makes, so we remove $(srcdir), 23942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23943 # trailing colons and then remove the whole line if VPATH becomes empty 23944 # (actually we leave an empty line to preserve line numbers). 23945 if test "x$srcdir" = x.; then 23946 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23947 s/:*\$(srcdir):*/:/ 23948 s/:*\${srcdir}:*/:/ 23949 s/:*@srcdir@:*/:/ 23950 s/^\([^=]*=[ ]*\):*/\1/ 23951 s/:*$// 23952 s/^[^=]*=[ ]*$// 23953 }' 23954 fi 23955 23956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23957 fi # test -n "$CONFIG_FILES" 23958 23959 # Set up the scripts for CONFIG_HEADERS section. 23960 # No need to generate them if there are no CONFIG_HEADERS. 23961 # This happens for instance with `./config.status Makefile'. 23962 if test -n "$CONFIG_HEADERS"; then 23963 cat >"$tmp/defines.awk" <<\_ACAWK || 23964 BEGIN { 23965 _ACEOF 23966 23967 # Transform confdefs.h into an awk script `defines.awk', embedded as 23968 # here-document in config.status, that substitutes the proper values into 23969 # config.h.in to produce config.h. 23970 23971 # Create a delimiter string that does not exist in confdefs.h, to ease 23972 # handling of long lines. 23973 ac_delim='%!_!# ' 23974 for ac_last_try in false false :; do 23975 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23976 if test -z "$ac_t"; then 23977 break 23978 elif $ac_last_try; then 23979 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23980 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23981 { (exit 1); exit 1; }; } 23982 else 23983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23984 fi 23985 done 23986 23987 # For the awk script, D is an array of macro values keyed by name, 23988 # likewise P contains macro parameters if any. Preserve backslash 23989 # newline sequences. 23990 23991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23992 sed -n ' 23993 s/.\{148\}/&'"$ac_delim"'/g 23994 t rset 23995 :rset 23996 s/^[ ]*#[ ]*define[ ][ ]*/ / 23997 t def 23998 d 23999 :def 24000 s/\\$// 24001 t bsnl 24002 s/["\\]/\\&/g 24003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24004 D["\1"]=" \3"/p 24005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24006 d 24007 :bsnl 24008 s/["\\]/\\&/g 24009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24010 D["\1"]=" \3\\\\\\n"\\/p 24011 t cont 24012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24013 t cont 24014 d 24015 :cont 24016 n 24017 s/.\{148\}/&'"$ac_delim"'/g 24018 t clear 24019 :clear 24020 s/\\$// 24021 t bsnlc 24022 s/["\\]/\\&/g; s/^/"/; s/$/"/p 24023 d 24024 :bsnlc 24025 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24026 b cont 24027 ' <confdefs.h | sed ' 24028 s/'"$ac_delim"'/"\\\ 24029 "/g' >>$CONFIG_STATUS || ac_write_fail=1 24030 24031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24032 for (key in D) D_is_set[key] = 1 24033 FS = "" 24034 } 24035 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24036 line = \$ 0 24037 split(line, arg, " ") 24038 if (arg[1] == "#") { 24039 defundef = arg[2] 24040 mac1 = arg[3] 24041 } else { 24042 defundef = substr(arg[1], 2) 24043 mac1 = arg[2] 24044 } 24045 split(mac1, mac2, "(") #) 24046 macro = mac2[1] 24047 prefix = substr(line, 1, index(line, defundef) - 1) 24048 if (D_is_set[macro]) { 24049 # Preserve the white space surrounding the "#". 24050 print prefix "define", macro P[macro] D[macro] 24051 next 24052 } else { 24053 # Replace #undef with comments. This is necessary, for example, 24054 # in the case of _POSIX_SOURCE, which is predefined and required 24055 # on some systems where configure will not decide to define it. 24056 if (defundef == "undef") { 24057 print "/*", prefix defundef, macro, "*/" 24058 next 24059 } 24060 } 24061 } 24062 { print } 24063 _ACAWK 24064 _ACEOF 24065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24066 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 24067 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 24068 { (exit 1); exit 1; }; } 24069 fi # test -n "$CONFIG_HEADERS" 24070 24071 24072 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24073 shift 24074 for ac_tag 24075 do 24076 case $ac_tag in 24077 :[FHLC]) ac_mode=$ac_tag; continue;; 24078 esac 24079 case $ac_mode$ac_tag in 24080 :[FHL]*:*);; 24081 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 24082 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 24083 { (exit 1); exit 1; }; };; 24084 :[FH]-) ac_tag=-:-;; 24085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24086 esac 24087 ac_save_IFS=$IFS 24088 IFS=: 24089 set x $ac_tag 24090 IFS=$ac_save_IFS 24091 shift 24092 ac_file=$1 24093 shift 24094 24095 case $ac_mode in 24096 :L) ac_source=$1;; 24097 :[FH]) 24098 ac_file_inputs= 24099 for ac_f 24100 do 24101 case $ac_f in 24102 -) ac_f="$tmp/stdin";; 24103 *) # Look for the file first in the build tree, then in the source tree 24104 # (if the path is not absolute). The absolute path cannot be DOS-style, 24105 # because $ac_f cannot contain `:'. 24106 test -f "$ac_f" || 24107 case $ac_f in 24108 [\\/$]*) false;; 24109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24110 esac || 24111 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24112 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24113 { (exit 1); exit 1; }; };; 24114 esac 24115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24116 ac_file_inputs="$ac_file_inputs '$ac_f'" 24117 done 24118 24119 # Let's still pretend it is `configure' which instantiates (i.e., don't 24120 # use $as_me), people would be surprised to read: 24121 # /* config.h. Generated by config.status. */ 24122 configure_input='Generated from '` 24123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24124 `' by configure.' 24125 if test x"$ac_file" != x-; then 24126 configure_input="$ac_file. $configure_input" 24127 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 24128 $as_echo "$as_me: creating $ac_file" >&6;} 24129 fi 24130 # Neutralize special characters interpreted by sed in replacement strings. 24131 case $configure_input in #( 24132 *\&* | *\|* | *\\* ) 24133 ac_sed_conf_input=`$as_echo "$configure_input" | 24134 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24135 *) ac_sed_conf_input=$configure_input;; 24136 esac 24137 24138 case $ac_tag in 24139 *:-:* | *:-) cat >"$tmp/stdin" \ 24140 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24141 $as_echo "$as_me: error: could not create $ac_file" >&2;} 24142 { (exit 1); exit 1; }; } ;; 24143 esac 24144 ;; 24145 esac 24146 24147 ac_dir=`$as_dirname -- "$ac_file" || 24148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24149 X"$ac_file" : 'X\(//\)[^/]' \| \ 24150 X"$ac_file" : 'X\(//\)$' \| \ 24151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24152 $as_echo X"$ac_file" | 24153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24154 s//\1/ 24155 q 24156 } 24157 /^X\(\/\/\)[^/].*/{ 24158 s//\1/ 24159 q 24160 } 24161 /^X\(\/\/\)$/{ 24162 s//\1/ 24163 q 24164 } 24165 /^X\(\/\).*/{ 24166 s//\1/ 24167 q 24168 } 24169 s/.*/./; q'` 24170 { as_dir="$ac_dir" 24171 case $as_dir in #( 24172 -*) as_dir=./$as_dir;; 24173 esac 24174 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24175 as_dirs= 24176 while :; do 24177 case $as_dir in #( 24178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24179 *) as_qdir=$as_dir;; 24180 esac 24181 as_dirs="'$as_qdir' $as_dirs" 24182 as_dir=`$as_dirname -- "$as_dir" || 24183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24184 X"$as_dir" : 'X\(//\)[^/]' \| \ 24185 X"$as_dir" : 'X\(//\)$' \| \ 24186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24187 $as_echo X"$as_dir" | 24188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24189 s//\1/ 24190 q 24191 } 24192 /^X\(\/\/\)[^/].*/{ 24193 s//\1/ 24194 q 24195 } 24196 /^X\(\/\/\)$/{ 24197 s//\1/ 24198 q 24199 } 24200 /^X\(\/\).*/{ 24201 s//\1/ 24202 q 24203 } 24204 s/.*/./; q'` 24205 test -d "$as_dir" && break 24206 done 24207 test -z "$as_dirs" || eval "mkdir $as_dirs" 24208 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24209 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 24210 { (exit 1); exit 1; }; }; } 24211 ac_builddir=. 24212 24213 case "$ac_dir" in 24214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24215 *) 24216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24217 # A ".." for each directory in $ac_dir_suffix. 24218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24219 case $ac_top_builddir_sub in 24220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24222 esac ;; 24223 esac 24224 ac_abs_top_builddir=$ac_pwd 24225 ac_abs_builddir=$ac_pwd$ac_dir_suffix 24226 # for backward compatibility: 24227 ac_top_builddir=$ac_top_build_prefix 24228 24229 case $srcdir in 24230 .) # We are building in place. 24231 ac_srcdir=. 24232 ac_top_srcdir=$ac_top_builddir_sub 24233 ac_abs_top_srcdir=$ac_pwd ;; 24234 [\\/]* | ?:[\\/]* ) # Absolute name. 24235 ac_srcdir=$srcdir$ac_dir_suffix; 24236 ac_top_srcdir=$srcdir 24237 ac_abs_top_srcdir=$srcdir ;; 24238 *) # Relative name. 24239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24240 ac_top_srcdir=$ac_top_build_prefix$srcdir 24241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24242 esac 24243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24244 24245 24246 case $ac_mode in 24247 :F) 24248 # 24249 # CONFIG_FILE 24250 # 24251 24252 case $INSTALL in 24253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24255 esac 24256 ac_MKDIR_P=$MKDIR_P 24257 case $MKDIR_P in 24258 [\\/$]* | ?:[\\/]* ) ;; 24259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24260 esac 24261 _ACEOF 24262 24263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24264 # If the template does not know about datarootdir, expand it. 24265 # FIXME: This hack should be removed a few years after 2.60. 24266 ac_datarootdir_hack=; ac_datarootdir_seen= 24267 24268 ac_sed_dataroot=' 24269 /datarootdir/ { 24270 p 24271 q 24272 } 24273 /@datadir@/p 24274 /@docdir@/p 24275 /@infodir@/p 24276 /@localedir@/p 24277 /@mandir@/p 24278 ' 24279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24280 *datarootdir*) ac_datarootdir_seen=yes;; 24281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24282 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24284 _ACEOF 24285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24286 ac_datarootdir_hack=' 24287 s&@datadir@&$datadir&g 24288 s&@docdir@&$docdir&g 24289 s&@infodir@&$infodir&g 24290 s&@localedir@&$localedir&g 24291 s&@mandir@&$mandir&g 24292 s&\\\${datarootdir}&$datarootdir&g' ;; 24293 esac 24294 _ACEOF 24295 24296 # Neutralize VPATH when `$srcdir' = `.'. 24297 # Shell code in configure.ac might set extrasub. 24298 # FIXME: do we really want to maintain this feature? 24299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24300 ac_sed_extra="$ac_vpsub 24301 $extrasub 24302 _ACEOF 24303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24304 :t 24305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24306 s|@configure_input@|$ac_sed_conf_input|;t t 24307 s&@top_builddir@&$ac_top_builddir_sub&;t t 24308 s&@top_build_prefix@&$ac_top_build_prefix&;t t 24309 s&@srcdir@&$ac_srcdir&;t t 24310 s&@abs_srcdir@&$ac_abs_srcdir&;t t 24311 s&@top_srcdir@&$ac_top_srcdir&;t t 24312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24313 s&@builddir@&$ac_builddir&;t t 24314 s&@abs_builddir@&$ac_abs_builddir&;t t 24315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24316 s&@INSTALL@&$ac_INSTALL&;t t 24317 s&@MKDIR_P@&$ac_MKDIR_P&;t t 24318 $ac_datarootdir_hack 24319 " 24320 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 24321 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24322 $as_echo "$as_me: error: could not create $ac_file" >&2;} 24323 { (exit 1); exit 1; }; } 24324 24325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24326 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24328 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24329 which seems to be undefined. Please make sure it is defined." >&5 24330 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24331 which seems to be undefined. Please make sure it is defined." >&2;} 24332 24333 rm -f "$tmp/stdin" 24334 case $ac_file in 24335 -) cat "$tmp/out" && rm -f "$tmp/out";; 24336 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 24337 esac \ 24338 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24339 $as_echo "$as_me: error: could not create $ac_file" >&2;} 24340 { (exit 1); exit 1; }; } 24341 ;; 24342 :H) 24343 # 24344 # CONFIG_HEADER 24345 # 24346 if test x"$ac_file" != x-; then 24347 { 24348 $as_echo "/* $configure_input */" \ 24349 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 24350 } >"$tmp/config.h" \ 24351 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24352 $as_echo "$as_me: error: could not create $ac_file" >&2;} 24353 { (exit 1); exit 1; }; } 24354 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 24355 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24356 $as_echo "$as_me: $ac_file is unchanged" >&6;} 24357 else 24358 rm -f "$ac_file" 24359 mv "$tmp/config.h" "$ac_file" \ 24360 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24361 $as_echo "$as_me: error: could not create $ac_file" >&2;} 24362 { (exit 1); exit 1; }; } 24363 fi 24364 else 24365 $as_echo "/* $configure_input */" \ 24366 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 24367 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 24368 $as_echo "$as_me: error: could not create -" >&2;} 24369 { (exit 1); exit 1; }; } 24370 fi 24371 # Compute "$ac_file"'s index in $config_headers. 24372 _am_arg="$ac_file" 24373 _am_stamp_count=1 24374 for _am_header in $config_headers :; do 24375 case $_am_header in 24376 $_am_arg | $_am_arg:* ) 24377 break ;; 24378 * ) 24379 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24380 esac 24381 done 24382 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24383 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24384 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24385 X"$_am_arg" : 'X\(//\)$' \| \ 24386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24387 $as_echo X"$_am_arg" | 24388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24389 s//\1/ 24390 q 24391 } 24392 /^X\(\/\/\)[^/].*/{ 24393 s//\1/ 24394 q 24395 } 24396 /^X\(\/\/\)$/{ 24397 s//\1/ 24398 q 24399 } 24400 /^X\(\/\).*/{ 24401 s//\1/ 24402 q 24403 } 24404 s/.*/./; q'`/stamp-h$_am_stamp_count 24405 ;; 24406 24407 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 24408 $as_echo "$as_me: executing $ac_file commands" >&6;} 24409 ;; 24410 esac 24411 24412 24413 case $ac_file$ac_mode in 24414 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24415 # Strip MF so we end up with the name of the file. 24416 mf=`echo "$mf" | sed -e 's/:.*$//'` 24417 # Check whether this is an Automake generated Makefile or not. 24418 # We used to match only the files named `Makefile.in', but 24419 # some people rename them; so instead we look at the file content. 24420 # Grep'ing the first line is not enough: some people post-process 24421 # each Makefile.in and add a new line on top of each file to say so. 24422 # Grep'ing the whole file is not good either: AIX grep has a line 24423 # limit of 2048, but all sed's we know have understand at least 4000. 24424 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24425 dirpart=`$as_dirname -- "$mf" || 24426 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24427 X"$mf" : 'X\(//\)[^/]' \| \ 24428 X"$mf" : 'X\(//\)$' \| \ 24429 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24430 $as_echo X"$mf" | 24431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24432 s//\1/ 24433 q 24434 } 24435 /^X\(\/\/\)[^/].*/{ 24436 s//\1/ 24437 q 24438 } 24439 /^X\(\/\/\)$/{ 24440 s//\1/ 24441 q 24442 } 24443 /^X\(\/\).*/{ 24444 s//\1/ 24445 q 24446 } 24447 s/.*/./; q'` 24448 else 24449 continue 24450 fi 24451 # Extract the definition of DEPDIR, am__include, and am__quote 24452 # from the Makefile without running `make'. 24453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24454 test -z "$DEPDIR" && continue 24455 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24456 test -z "am__include" && continue 24457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24458 # When using ansi2knr, U may be empty or an underscore; expand it 24459 U=`sed -n 's/^U = //p' < "$mf"` 24460 # Find all dependency output files, they are included files with 24461 # $(DEPDIR) in their names. We invoke sed twice because it is the 24462 # simplest approach to changing $(DEPDIR) to its actual value in the 24463 # expansion. 24464 for file in `sed -n " 24465 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24466 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24467 # Make sure the directory exists. 24468 test -f "$dirpart/$file" && continue 24469 fdir=`$as_dirname -- "$file" || 24470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24471 X"$file" : 'X\(//\)[^/]' \| \ 24472 X"$file" : 'X\(//\)$' \| \ 24473 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24474 $as_echo X"$file" | 24475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24476 s//\1/ 24477 q 24478 } 24479 /^X\(\/\/\)[^/].*/{ 24480 s//\1/ 24481 q 24482 } 24483 /^X\(\/\/\)$/{ 24484 s//\1/ 24485 q 24486 } 24487 /^X\(\/\).*/{ 24488 s//\1/ 24489 q 24490 } 24491 s/.*/./; q'` 24492 { as_dir=$dirpart/$fdir 24493 case $as_dir in #( 24494 -*) as_dir=./$as_dir;; 24495 esac 24496 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24497 as_dirs= 24498 while :; do 24499 case $as_dir in #( 24500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24501 *) as_qdir=$as_dir;; 24502 esac 24503 as_dirs="'$as_qdir' $as_dirs" 24504 as_dir=`$as_dirname -- "$as_dir" || 24505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24506 X"$as_dir" : 'X\(//\)[^/]' \| \ 24507 X"$as_dir" : 'X\(//\)$' \| \ 24508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24509 $as_echo X"$as_dir" | 24510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24511 s//\1/ 24512 q 24513 } 24514 /^X\(\/\/\)[^/].*/{ 24515 s//\1/ 24516 q 24517 } 24518 /^X\(\/\/\)$/{ 24519 s//\1/ 24520 q 24521 } 24522 /^X\(\/\).*/{ 24523 s//\1/ 24524 q 24525 } 24526 s/.*/./; q'` 24527 test -d "$as_dir" && break 24528 done 24529 test -z "$as_dirs" || eval "mkdir $as_dirs" 24530 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24531 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 24532 { (exit 1); exit 1; }; }; } 24533 # echo "creating $dirpart/$file" 24534 echo '# dummy' > "$dirpart/$file" 24535 done 24536 done 24537 ;; 24538 24539 esac 24540 done # for ac_tag 24541 24542 24543 { (exit 0); exit 0; } 24544 _ACEOF 24545 chmod +x $CONFIG_STATUS 24546 ac_clean_files=$ac_clean_files_save 24547 24548 test $ac_write_fail = 0 || 24549 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 24550 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 24551 { (exit 1); exit 1; }; } 24552 24553 24554 # configure is writing to config.log, and then calls config.status. 24555 # config.status does its own redirection, appending to config.log. 24556 # Unfortunately, on DOS this fails, as config.log is still kept open 24557 # by configure, so config.status won't be able to write to it; its 24558 # output is simply discarded. So we exec the FD to /dev/null, 24559 # effectively closing config.log, so it can be properly (re)opened and 24560 # appended to by config.status. When coming back to configure, we 24561 # need to make the FD available again. 24562 if test "$no_create" != yes; then 24563 ac_cs_success=: 24564 ac_config_status_args= 24565 test "$silent" = yes && 24566 ac_config_status_args="$ac_config_status_args --quiet" 24567 exec 5>/dev/null 24568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24569 exec 5>>config.log 24570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24571 # would make configure fail if this is the last instruction. 24572 $ac_cs_success || { (exit 1); exit 1; } 24573 fi 24574 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24575 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24576 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24577 fi 24578 24579 ac_config_files="$ac_config_files src/Makefile" 24580 24581 cat >confcache <<\_ACEOF 24582 # This file is a shell script that caches the results of configure 24583 # tests run on this system so they can be shared between configure 24584 # scripts and configure runs, see configure's option --config-cache. 24585 # It is not useful on other systems. If it contains results you don't 24586 # want to keep, you may remove or edit it. 24587 # 24588 # config.status only pays attention to the cache file if you give it 24589 # the --recheck option to rerun configure. 24590 # 24591 # `ac_cv_env_foo' variables (set or unset) will be overridden when 24592 # loading this file, other *unset* `ac_cv_foo' will be assigned the 24593 # following values. 24594 24595 _ACEOF 24596 24597 # The following way of writing the cache mishandles newlines in values, 24598 # but we know of no workaround that is simple, portable, and efficient. 24599 # So, we kill variables containing newlines. 24600 # Ultrix sh set writes to stderr and can't be redirected directly, 24601 # and sets the high bit in the cache file unless we assign to the vars. 24602 ( 24603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24604 eval ac_val=\$$ac_var 24605 case $ac_val in #( 24606 *${as_nl}*) 24607 case $ac_var in #( 24608 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 24609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24610 esac 24611 case $ac_var in #( 24612 _ | IFS | as_nl) ;; #( 24613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24614 *) $as_unset $ac_var ;; 24615 esac ;; 24616 esac 24617 done 24618 24619 (set) 2>&1 | 24620 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24621 *${as_nl}ac_space=\ *) 24622 # `set' does not quote correctly, so add quotes (double-quote 24623 # substitution turns \\\\ into \\, and sed turns \\ into \). 24624 sed -n \ 24625 "s/'/'\\\\''/g; 24626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24627 ;; #( 24628 *) 24629 # `set' quotes correctly as required by POSIX, so do not add quotes. 24630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24631 ;; 24632 esac | 24633 sort 24634 ) | 24635 sed ' 24636 /^ac_cv_env_/b end 24637 t clear 24638 :clear 24639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24640 t end 24641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24642 :end' >>confcache 24643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24644 if test -w "$cache_file"; then 24645 test "x$cache_file" != "x/dev/null" && 24646 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 24647 $as_echo "$as_me: updating cache $cache_file" >&6;} 24648 cat confcache >$cache_file 24649 else 24650 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 24651 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24652 fi 24653 fi 24654 rm -f confcache 24655 24656 test "x$prefix" = xNONE && prefix=$ac_default_prefix 24657 # Let make expand exec_prefix. 24658 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24659 24660 DEFS=-DHAVE_CONFIG_H 24661 24662 ac_libobjs= 24663 ac_ltlibobjs= 24664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24665 # 1. Remove the extension, and $U if already installed. 24666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24667 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24669 # will be set to the directory where LIBOBJS objects are built. 24670 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24671 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 24672 done 24673 LIBOBJS=$ac_libobjs 24674 24675 LTLIBOBJS=$ac_ltlibobjs 24676 24677 24678 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 24679 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 24680 Usually this means the macro was only invoked conditionally." >&5 24681 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 24682 Usually this means the macro was only invoked conditionally." >&2;} 24683 { (exit 1); exit 1; }; } 24684 fi 24685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24686 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 24687 Usually this means the macro was only invoked conditionally." >&5 24688 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 24689 Usually this means the macro was only invoked conditionally." >&2;} 24690 { (exit 1); exit 1; }; } 24691 fi 24692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24693 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 24694 Usually this means the macro was only invoked conditionally." >&5 24695 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 24696 Usually this means the macro was only invoked conditionally." >&2;} 24697 { (exit 1); exit 1; }; } 24698 fi 24699 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 24700 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 24701 Usually this means the macro was only invoked conditionally." >&5 24702 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 24703 Usually this means the macro was only invoked conditionally." >&2;} 24704 { (exit 1); exit 1; }; } 24705 fi 24706 24707 : ${CONFIG_STATUS=./config.status} 24708 ac_write_fail=0 24709 ac_clean_files_save=$ac_clean_files 24710 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24711 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 24712 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24713 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24714 #! $SHELL 24715 # Generated by $as_me. 24716 # Run this file to recreate the current configuration. 24717 # Compiler output produced by configure, useful for debugging 24718 # configure, is in config.log if it exists. 24719 24720 debug=false 24721 ac_cs_recheck=false 24722 ac_cs_silent=false 24723 SHELL=\${CONFIG_SHELL-$SHELL} 24724 _ACEOF 24725 24726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24727 ## --------------------- ## 24728 ## M4sh Initialization. ## 24729 ## --------------------- ## 24730 24731 # Be more Bourne compatible 24732 DUALCASE=1; export DUALCASE # for MKS sh 24733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24734 emulate sh 24735 NULLCMD=: 24736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24737 # is contrary to our usage. Disable this feature. 24738 alias -g '${1+"$@"}'='"$@"' 24739 setopt NO_GLOB_SUBST 24740 else 24741 case `(set -o) 2>/dev/null` in 24742 *posix*) set -o posix ;; 24743 esac 24744 24745 fi 24746 24747 24748 24749 24750 # PATH needs CR 24751 # Avoid depending upon Character Ranges. 24752 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24755 as_cr_digits='0123456789' 24756 as_cr_alnum=$as_cr_Letters$as_cr_digits 24757 24758 as_nl=' 24759 ' 24760 export as_nl 24761 # Printing a long string crashes Solaris 7 /usr/bin/printf. 24762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24765 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24766 as_echo='printf %s\n' 24767 as_echo_n='printf %s' 24768 else 24769 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24770 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24771 as_echo_n='/usr/ucb/echo -n' 24772 else 24773 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24774 as_echo_n_body='eval 24775 arg=$1; 24776 case $arg in 24777 *"$as_nl"*) 24778 expr "X$arg" : "X\\(.*\\)$as_nl"; 24779 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24780 esac; 24781 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24782 ' 24783 export as_echo_n_body 24784 as_echo_n='sh -c $as_echo_n_body as_echo' 24785 fi 24786 export as_echo_body 24787 as_echo='sh -c $as_echo_body as_echo' 24788 fi 24789 24790 # The user is always right. 24791 if test "${PATH_SEPARATOR+set}" != set; then 24792 PATH_SEPARATOR=: 24793 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24794 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24795 PATH_SEPARATOR=';' 24796 } 24797 fi 24798 24799 # Support unset when possible. 24800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 24801 as_unset=unset 24802 else 24803 as_unset=false 24804 fi 24805 24806 24807 # IFS 24808 # We need space, tab and new line, in precisely that order. Quoting is 24809 # there to prevent editors from complaining about space-tab. 24810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 24811 # splitting by setting IFS to empty value.) 24812 IFS=" "" $as_nl" 24813 24814 # Find who we are. Look in the path if we contain no directory separator. 24815 case $0 in 24816 *[\\/]* ) as_myself=$0 ;; 24817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24818 for as_dir in $PATH 24819 do 24820 IFS=$as_save_IFS 24821 test -z "$as_dir" && as_dir=. 24822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24823 done 24824 IFS=$as_save_IFS 24825 24826 ;; 24827 esac 24828 # We did not find ourselves, most probably we were run as `sh COMMAND' 24829 # in which case we are not to be found in the path. 24830 if test "x$as_myself" = x; then 24831 as_myself=$0 24832 fi 24833 if test ! -f "$as_myself"; then 24834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24835 { (exit 1); exit 1; } 24836 fi 24837 24838 # Work around bugs in pre-3.0 UWIN ksh. 24839 for as_var in ENV MAIL MAILPATH 24840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 24841 done 24842 PS1='$ ' 24843 PS2='> ' 24844 PS4='+ ' 24845 24846 # NLS nuisances. 24847 LC_ALL=C 24848 export LC_ALL 24849 LANGUAGE=C 24850 export LANGUAGE 24851 24852 # Required to use basename. 24853 if expr a : '\(a\)' >/dev/null 2>&1 && 24854 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24855 as_expr=expr 24856 else 24857 as_expr=false 24858 fi 24859 24860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24861 as_basename=basename 24862 else 24863 as_basename=false 24864 fi 24865 24866 24867 # Name of the executable. 24868 as_me=`$as_basename -- "$0" || 24869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24870 X"$0" : 'X\(//\)$' \| \ 24871 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24872 $as_echo X/"$0" | 24873 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24874 s//\1/ 24875 q 24876 } 24877 /^X\/\(\/\/\)$/{ 24878 s//\1/ 24879 q 24880 } 24881 /^X\/\(\/\).*/{ 24882 s//\1/ 24883 q 24884 } 24885 s/.*/./; q'` 24886 24887 # CDPATH. 24888 $as_unset CDPATH 24889 24890 24891 24892 as_lineno_1=$LINENO 24893 as_lineno_2=$LINENO 24894 test "x$as_lineno_1" != "x$as_lineno_2" && 24895 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 24896 24897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24898 # uniformly replaced by the line number. The first 'sed' inserts a 24899 # line-number line after each line using $LINENO; the second 'sed' 24900 # does the real work. The second script uses 'N' to pair each 24901 # line-number line with the line containing $LINENO, and appends 24902 # trailing '-' during substitution so that $LINENO is not a special 24903 # case at line end. 24904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24905 # scripts with optimization help from Paolo Bonzini. Blame Lee 24906 # E. McMahon (1931-1989) for sed's syntax. :-) 24907 sed -n ' 24908 p 24909 /[$]LINENO/= 24910 ' <$as_myself | 24911 sed ' 24912 s/[$]LINENO.*/&-/ 24913 t lineno 24914 b 24915 :lineno 24916 N 24917 :loop 24918 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 24919 t loop 24920 s/-\n.*// 24921 ' >$as_me.lineno && 24922 chmod +x "$as_me.lineno" || 24923 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 24924 { (exit 1); exit 1; }; } 24925 24926 # Don't try to exec as it changes $[0], causing all sort of problems 24927 # (the dirname of $[0] is not the place where we might find the 24928 # original and so on. Autoconf is especially sensitive to this). 24929 . "./$as_me.lineno" 24930 # Exit status is that of the last command. 24931 exit 24932 } 24933 24934 24935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24936 as_dirname=dirname 24937 else 24938 as_dirname=false 24939 fi 24940 24941 ECHO_C= ECHO_N= ECHO_T= 24942 case `echo -n x` in 24943 -n*) 24944 case `echo 'x\c'` in 24945 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24946 *) ECHO_C='\c';; 24947 esac;; 24948 *) 24949 ECHO_N='-n';; 24950 esac 24951 if expr a : '\(a\)' >/dev/null 2>&1 && 24952 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24953 as_expr=expr 24954 else 24955 as_expr=false 24956 fi 24957 24958 rm -f conf$$ conf$$.exe conf$$.file 24959 if test -d conf$$.dir; then 24960 rm -f conf$$.dir/conf$$.file 24961 else 24962 rm -f conf$$.dir 24963 mkdir conf$$.dir 2>/dev/null 24964 fi 24965 if (echo >conf$$.file) 2>/dev/null; then 24966 if ln -s conf$$.file conf$$ 2>/dev/null; then 24967 as_ln_s='ln -s' 24968 # ... but there are two gotchas: 24969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24971 # In both cases, we have to default to `cp -p'. 24972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24973 as_ln_s='cp -p' 24974 elif ln conf$$.file conf$$ 2>/dev/null; then 24975 as_ln_s=ln 24976 else 24977 as_ln_s='cp -p' 24978 fi 24979 else 24980 as_ln_s='cp -p' 24981 fi 24982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24983 rmdir conf$$.dir 2>/dev/null 24984 24985 if mkdir -p . 2>/dev/null; then 24986 as_mkdir_p=: 24987 else 24988 test -d ./-p && rmdir ./-p 24989 as_mkdir_p=false 24990 fi 24991 24992 if test -x / >/dev/null 2>&1; then 24993 as_test_x='test -x' 24994 else 24995 if ls -dL / >/dev/null 2>&1; then 24996 as_ls_L_option=L 24997 else 24998 as_ls_L_option= 24999 fi 25000 as_test_x=' 25001 eval sh -c '\'' 25002 if test -d "$1"; then 25003 test -d "$1/."; 25004 else 25005 case $1 in 25006 -*)set "./$1";; 25007 esac; 25008 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 25009 ???[sx]*):;;*)false;;esac;fi 25010 '\'' sh 25011 ' 25012 fi 25013 as_executable_p=$as_test_x 25014 25015 # Sed expression to map a string onto a valid CPP name. 25016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25017 25018 # Sed expression to map a string onto a valid variable name. 25019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25020 25021 25022 exec 6>&1 25023 25024 # Save the log message, to keep $[0] and so on meaningful, and to 25025 # report actual input values of CONFIG_FILES etc. instead of their 25026 # values after options handling. 25027 ac_log=" 25028 This file was extended by netbsd-iscsi $as_me 20111006, which was 25029 generated by GNU Autoconf 2.63. Invocation command line was 25030 25031 CONFIG_FILES = $CONFIG_FILES 25032 CONFIG_HEADERS = $CONFIG_HEADERS 25033 CONFIG_LINKS = $CONFIG_LINKS 25034 CONFIG_COMMANDS = $CONFIG_COMMANDS 25035 $ $0 $@ 25036 25037 on `(hostname || uname -n) 2>/dev/null | sed 1q` 25038 " 25039 25040 _ACEOF 25041 25042 case $ac_config_files in *" 25043 "*) set x $ac_config_files; shift; ac_config_files=$*;; 25044 esac 25045 25046 case $ac_config_headers in *" 25047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25048 esac 25049 25050 25051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25052 # Files that config.status was made for. 25053 config_files="$ac_config_files" 25054 config_headers="$ac_config_headers" 25055 config_commands="$ac_config_commands" 25056 25057 _ACEOF 25058 25059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25060 ac_cs_usage="\ 25061 \`$as_me' instantiates files from templates according to the 25062 current configuration. 25063 25064 Usage: $0 [OPTION]... [FILE]... 25065 25066 -h, --help print this help, then exit 25067 -V, --version print version number and configuration settings, then exit 25068 -q, --quiet, --silent 25069 do not print progress messages 25070 -d, --debug don't remove temporary files 25071 --recheck update $as_me by reconfiguring in the same conditions 25072 --file=FILE[:TEMPLATE] 25073 instantiate the configuration file FILE 25074 --header=FILE[:TEMPLATE] 25075 instantiate the configuration header FILE 25076 25077 Configuration files: 25078 $config_files 25079 25080 Configuration headers: 25081 $config_headers 25082 25083 Configuration commands: 25084 $config_commands 25085 25086 Report bugs to <bug-autoconf (at] gnu.org>." 25087 25088 _ACEOF 25089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25090 ac_cs_version="\\ 25091 netbsd-iscsi config.status 20111006 25092 configured by $0, generated by GNU Autoconf 2.63, 25093 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 25094 25095 Copyright (C) 2008 Free Software Foundation, Inc. 25096 This config.status script is free software; the Free Software Foundation 25097 gives unlimited permission to copy, distribute and modify it." 25098 25099 ac_pwd='$ac_pwd' 25100 srcdir='$srcdir' 25101 INSTALL='$INSTALL' 25102 MKDIR_P='$MKDIR_P' 25103 AWK='$AWK' 25104 test -n "\$AWK" || AWK=awk 25105 _ACEOF 25106 25107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25108 # The default lists apply if the user does not specify any file. 25109 ac_need_defaults=: 25110 while test $# != 0 25111 do 25112 case $1 in 25113 --*=*) 25114 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25116 ac_shift=: 25117 ;; 25118 *) 25119 ac_option=$1 25120 ac_optarg=$2 25121 ac_shift=shift 25122 ;; 25123 esac 25124 25125 case $ac_option in 25126 # Handling of the options. 25127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25128 ac_cs_recheck=: ;; 25129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25130 $as_echo "$ac_cs_version"; exit ;; 25131 --debug | --debu | --deb | --de | --d | -d ) 25132 debug=: ;; 25133 --file | --fil | --fi | --f ) 25134 $ac_shift 25135 case $ac_optarg in 25136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25137 esac 25138 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 25139 ac_need_defaults=false;; 25140 --header | --heade | --head | --hea ) 25141 $ac_shift 25142 case $ac_optarg in 25143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25144 esac 25145 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 25146 ac_need_defaults=false;; 25147 --he | --h) 25148 # Conflict between --help and --header 25149 { $as_echo "$as_me: error: ambiguous option: $1 25150 Try \`$0 --help' for more information." >&2 25151 { (exit 1); exit 1; }; };; 25152 --help | --hel | -h ) 25153 $as_echo "$ac_cs_usage"; exit ;; 25154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25155 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25156 ac_cs_silent=: ;; 25157 25158 # This is an error. 25159 -*) { $as_echo "$as_me: error: unrecognized option: $1 25160 Try \`$0 --help' for more information." >&2 25161 { (exit 1); exit 1; }; } ;; 25162 25163 *) ac_config_targets="$ac_config_targets $1" 25164 ac_need_defaults=false ;; 25165 25166 esac 25167 shift 25168 done 25169 25170 ac_configure_extra_args= 25171 25172 if $ac_cs_silent; then 25173 exec 6>/dev/null 25174 ac_configure_extra_args="$ac_configure_extra_args --silent" 25175 fi 25176 25177 _ACEOF 25178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25179 if \$ac_cs_recheck; then 25180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25181 shift 25182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25183 CONFIG_SHELL='$SHELL' 25184 export CONFIG_SHELL 25185 exec "\$@" 25186 fi 25187 25188 _ACEOF 25189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25190 exec 5>>config.log 25191 { 25192 echo 25193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25194 ## Running $as_me. ## 25195 _ASBOX 25196 $as_echo "$ac_log" 25197 } >&5 25198 25199 _ACEOF 25200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25201 # 25202 # INIT-COMMANDS 25203 # 25204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25205 25206 _ACEOF 25207 25208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25209 25210 # Handling of arguments. 25211 for ac_config_target in $ac_config_targets 25212 do 25213 case $ac_config_target in 25214 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 25215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25217 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 25218 25219 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 25220 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 25221 { (exit 1); exit 1; }; };; 25222 esac 25223 done 25224 25225 25226 # If the user did not use the arguments to specify the items to instantiate, 25227 # then the envvar interface is used. Set only those that are not. 25228 # We use the long form for the default assignment because of an extremely 25229 # bizarre bug on SunOS 4.1.3. 25230 if $ac_need_defaults; then 25231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25234 fi 25235 25236 # Have a temporary directory for convenience. Make it in the build tree 25237 # simply because there is no reason against having it here, and in addition, 25238 # creating and moving files from /tmp can sometimes cause problems. 25239 # Hook for its removal unless debugging. 25240 # Note that there is a small window in which the directory will not be cleaned: 25241 # after its creation but before its name has been assigned to `$tmp'. 25242 $debug || 25243 { 25244 tmp= 25245 trap 'exit_status=$? 25246 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 25247 ' 0 25248 trap '{ (exit 1); exit 1; }' 1 2 13 15 25249 } 25250 # Create a (secure) tmp directory for tmp files. 25251 25252 { 25253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25254 test -n "$tmp" && test -d "$tmp" 25255 } || 25256 { 25257 tmp=./conf$$-$RANDOM 25258 (umask 077 && mkdir "$tmp") 25259 } || 25260 { 25261 $as_echo "$as_me: cannot create a temporary directory in ." >&2 25262 { (exit 1); exit 1; } 25263 } 25264 25265 # Set up the scripts for CONFIG_FILES section. 25266 # No need to generate them if there are no CONFIG_FILES. 25267 # This happens for instance with `./config.status config.h'. 25268 if test -n "$CONFIG_FILES"; then 25269 25270 25271 ac_cr=' ' 25273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25275 ac_cs_awk_cr='\\r' 25276 else 25277 ac_cs_awk_cr=$ac_cr 25278 fi 25279 25280 echo 'BEGIN {' >"$tmp/subs1.awk" && 25281 _ACEOF 25282 25283 25284 { 25285 echo "cat >conf$$subs.awk <<_ACEOF" && 25286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25287 echo "_ACEOF" 25288 } >conf$$subs.sh || 25289 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25290 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25291 { (exit 1); exit 1; }; } 25292 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 25293 ac_delim='%!_!# ' 25294 for ac_last_try in false false false false false :; do 25295 . ./conf$$subs.sh || 25296 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25297 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25298 { (exit 1); exit 1; }; } 25299 25300 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25301 if test $ac_delim_n = $ac_delim_num; then 25302 break 25303 elif $ac_last_try; then 25304 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25305 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25306 { (exit 1); exit 1; }; } 25307 else 25308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25309 fi 25310 done 25311 rm -f conf$$subs.sh 25312 25313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25314 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 25315 _ACEOF 25316 sed -n ' 25317 h 25318 s/^/S["/; s/!.*/"]=/ 25319 p 25320 g 25321 s/^[^!]*!// 25322 :repl 25323 t repl 25324 s/'"$ac_delim"'$// 25325 t delim 25326 :nl 25327 h 25328 s/\(.\{148\}\).*/\1/ 25329 t more1 25330 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25331 p 25332 n 25333 b repl 25334 :more1 25335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25336 p 25337 g 25338 s/.\{148\}// 25339 t nl 25340 :delim 25341 h 25342 s/\(.\{148\}\).*/\1/ 25343 t more2 25344 s/["\\]/\\&/g; s/^/"/; s/$/"/ 25345 p 25346 b 25347 :more2 25348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25349 p 25350 g 25351 s/.\{148\}// 25352 t delim 25353 ' <conf$$subs.awk | sed ' 25354 /^[^""]/{ 25355 N 25356 s/\n// 25357 } 25358 ' >>$CONFIG_STATUS || ac_write_fail=1 25359 rm -f conf$$subs.awk 25360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25361 _ACAWK 25362 cat >>"\$tmp/subs1.awk" <<_ACAWK && 25363 for (key in S) S_is_set[key] = 1 25364 FS = "" 25365 25366 } 25367 { 25368 line = $ 0 25369 nfields = split(line, field, "@") 25370 substed = 0 25371 len = length(field[1]) 25372 for (i = 2; i < nfields; i++) { 25373 key = field[i] 25374 keylen = length(key) 25375 if (S_is_set[key]) { 25376 value = S[key] 25377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25378 len += length(value) + length(field[++i]) 25379 substed = 1 25380 } else 25381 len += 1 + keylen 25382 } 25383 25384 print line 25385 } 25386 25387 _ACAWK 25388 _ACEOF 25389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25390 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25391 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25392 else 25393 cat 25394 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 25395 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 25396 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 25397 { (exit 1); exit 1; }; } 25398 _ACEOF 25399 25400 # VPATH may cause trouble with some makes, so we remove $(srcdir), 25401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25402 # trailing colons and then remove the whole line if VPATH becomes empty 25403 # (actually we leave an empty line to preserve line numbers). 25404 if test "x$srcdir" = x.; then 25405 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25406 s/:*\$(srcdir):*/:/ 25407 s/:*\${srcdir}:*/:/ 25408 s/:*@srcdir@:*/:/ 25409 s/^\([^=]*=[ ]*\):*/\1/ 25410 s/:*$// 25411 s/^[^=]*=[ ]*$// 25412 }' 25413 fi 25414 25415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25416 fi # test -n "$CONFIG_FILES" 25417 25418 # Set up the scripts for CONFIG_HEADERS section. 25419 # No need to generate them if there are no CONFIG_HEADERS. 25420 # This happens for instance with `./config.status Makefile'. 25421 if test -n "$CONFIG_HEADERS"; then 25422 cat >"$tmp/defines.awk" <<\_ACAWK || 25423 BEGIN { 25424 _ACEOF 25425 25426 # Transform confdefs.h into an awk script `defines.awk', embedded as 25427 # here-document in config.status, that substitutes the proper values into 25428 # config.h.in to produce config.h. 25429 25430 # Create a delimiter string that does not exist in confdefs.h, to ease 25431 # handling of long lines. 25432 ac_delim='%!_!# ' 25433 for ac_last_try in false false :; do 25434 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 25435 if test -z "$ac_t"; then 25436 break 25437 elif $ac_last_try; then 25438 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 25439 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 25440 { (exit 1); exit 1; }; } 25441 else 25442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25443 fi 25444 done 25445 25446 # For the awk script, D is an array of macro values keyed by name, 25447 # likewise P contains macro parameters if any. Preserve backslash 25448 # newline sequences. 25449 25450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25451 sed -n ' 25452 s/.\{148\}/&'"$ac_delim"'/g 25453 t rset 25454 :rset 25455 s/^[ ]*#[ ]*define[ ][ ]*/ / 25456 t def 25457 d 25458 :def 25459 s/\\$// 25460 t bsnl 25461 s/["\\]/\\&/g 25462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25463 D["\1"]=" \3"/p 25464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25465 d 25466 :bsnl 25467 s/["\\]/\\&/g 25468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25469 D["\1"]=" \3\\\\\\n"\\/p 25470 t cont 25471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25472 t cont 25473 d 25474 :cont 25475 n 25476 s/.\{148\}/&'"$ac_delim"'/g 25477 t clear 25478 :clear 25479 s/\\$// 25480 t bsnlc 25481 s/["\\]/\\&/g; s/^/"/; s/$/"/p 25482 d 25483 :bsnlc 25484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25485 b cont 25486 ' <confdefs.h | sed ' 25487 s/'"$ac_delim"'/"\\\ 25488 "/g' >>$CONFIG_STATUS || ac_write_fail=1 25489 25490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25491 for (key in D) D_is_set[key] = 1 25492 FS = "" 25493 } 25494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25495 line = \$ 0 25496 split(line, arg, " ") 25497 if (arg[1] == "#") { 25498 defundef = arg[2] 25499 mac1 = arg[3] 25500 } else { 25501 defundef = substr(arg[1], 2) 25502 mac1 = arg[2] 25503 } 25504 split(mac1, mac2, "(") #) 25505 macro = mac2[1] 25506 prefix = substr(line, 1, index(line, defundef) - 1) 25507 if (D_is_set[macro]) { 25508 # Preserve the white space surrounding the "#". 25509 print prefix "define", macro P[macro] D[macro] 25510 next 25511 } else { 25512 # Replace #undef with comments. This is necessary, for example, 25513 # in the case of _POSIX_SOURCE, which is predefined and required 25514 # on some systems where configure will not decide to define it. 25515 if (defundef == "undef") { 25516 print "/*", prefix defundef, macro, "*/" 25517 next 25518 } 25519 } 25520 } 25521 { print } 25522 _ACAWK 25523 _ACEOF 25524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25525 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 25526 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 25527 { (exit 1); exit 1; }; } 25528 fi # test -n "$CONFIG_HEADERS" 25529 25530 25531 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25532 shift 25533 for ac_tag 25534 do 25535 case $ac_tag in 25536 :[FHLC]) ac_mode=$ac_tag; continue;; 25537 esac 25538 case $ac_mode$ac_tag in 25539 :[FHL]*:*);; 25540 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 25541 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 25542 { (exit 1); exit 1; }; };; 25543 :[FH]-) ac_tag=-:-;; 25544 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25545 esac 25546 ac_save_IFS=$IFS 25547 IFS=: 25548 set x $ac_tag 25549 IFS=$ac_save_IFS 25550 shift 25551 ac_file=$1 25552 shift 25553 25554 case $ac_mode in 25555 :L) ac_source=$1;; 25556 :[FH]) 25557 ac_file_inputs= 25558 for ac_f 25559 do 25560 case $ac_f in 25561 -) ac_f="$tmp/stdin";; 25562 *) # Look for the file first in the build tree, then in the source tree 25563 # (if the path is not absolute). The absolute path cannot be DOS-style, 25564 # because $ac_f cannot contain `:'. 25565 test -f "$ac_f" || 25566 case $ac_f in 25567 [\\/$]*) false;; 25568 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25569 esac || 25570 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 25571 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 25572 { (exit 1); exit 1; }; };; 25573 esac 25574 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25575 ac_file_inputs="$ac_file_inputs '$ac_f'" 25576 done 25577 25578 # Let's still pretend it is `configure' which instantiates (i.e., don't 25579 # use $as_me), people would be surprised to read: 25580 # /* config.h. Generated by config.status. */ 25581 configure_input='Generated from '` 25582 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25583 `' by configure.' 25584 if test x"$ac_file" != x-; then 25585 configure_input="$ac_file. $configure_input" 25586 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 25587 $as_echo "$as_me: creating $ac_file" >&6;} 25588 fi 25589 # Neutralize special characters interpreted by sed in replacement strings. 25590 case $configure_input in #( 25591 *\&* | *\|* | *\\* ) 25592 ac_sed_conf_input=`$as_echo "$configure_input" | 25593 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25594 *) ac_sed_conf_input=$configure_input;; 25595 esac 25596 25597 case $ac_tag in 25598 *:-:* | *:-) cat >"$tmp/stdin" \ 25599 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25600 $as_echo "$as_me: error: could not create $ac_file" >&2;} 25601 { (exit 1); exit 1; }; } ;; 25602 esac 25603 ;; 25604 esac 25605 25606 ac_dir=`$as_dirname -- "$ac_file" || 25607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25608 X"$ac_file" : 'X\(//\)[^/]' \| \ 25609 X"$ac_file" : 'X\(//\)$' \| \ 25610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25611 $as_echo X"$ac_file" | 25612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25613 s//\1/ 25614 q 25615 } 25616 /^X\(\/\/\)[^/].*/{ 25617 s//\1/ 25618 q 25619 } 25620 /^X\(\/\/\)$/{ 25621 s//\1/ 25622 q 25623 } 25624 /^X\(\/\).*/{ 25625 s//\1/ 25626 q 25627 } 25628 s/.*/./; q'` 25629 { as_dir="$ac_dir" 25630 case $as_dir in #( 25631 -*) as_dir=./$as_dir;; 25632 esac 25633 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25634 as_dirs= 25635 while :; do 25636 case $as_dir in #( 25637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25638 *) as_qdir=$as_dir;; 25639 esac 25640 as_dirs="'$as_qdir' $as_dirs" 25641 as_dir=`$as_dirname -- "$as_dir" || 25642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25643 X"$as_dir" : 'X\(//\)[^/]' \| \ 25644 X"$as_dir" : 'X\(//\)$' \| \ 25645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25646 $as_echo X"$as_dir" | 25647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25648 s//\1/ 25649 q 25650 } 25651 /^X\(\/\/\)[^/].*/{ 25652 s//\1/ 25653 q 25654 } 25655 /^X\(\/\/\)$/{ 25656 s//\1/ 25657 q 25658 } 25659 /^X\(\/\).*/{ 25660 s//\1/ 25661 q 25662 } 25663 s/.*/./; q'` 25664 test -d "$as_dir" && break 25665 done 25666 test -z "$as_dirs" || eval "mkdir $as_dirs" 25667 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25668 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 25669 { (exit 1); exit 1; }; }; } 25670 ac_builddir=. 25671 25672 case "$ac_dir" in 25673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25674 *) 25675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25676 # A ".." for each directory in $ac_dir_suffix. 25677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25678 case $ac_top_builddir_sub in 25679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25681 esac ;; 25682 esac 25683 ac_abs_top_builddir=$ac_pwd 25684 ac_abs_builddir=$ac_pwd$ac_dir_suffix 25685 # for backward compatibility: 25686 ac_top_builddir=$ac_top_build_prefix 25687 25688 case $srcdir in 25689 .) # We are building in place. 25690 ac_srcdir=. 25691 ac_top_srcdir=$ac_top_builddir_sub 25692 ac_abs_top_srcdir=$ac_pwd ;; 25693 [\\/]* | ?:[\\/]* ) # Absolute name. 25694 ac_srcdir=$srcdir$ac_dir_suffix; 25695 ac_top_srcdir=$srcdir 25696 ac_abs_top_srcdir=$srcdir ;; 25697 *) # Relative name. 25698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25699 ac_top_srcdir=$ac_top_build_prefix$srcdir 25700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25701 esac 25702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25703 25704 25705 case $ac_mode in 25706 :F) 25707 # 25708 # CONFIG_FILE 25709 # 25710 25711 case $INSTALL in 25712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25713 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25714 esac 25715 ac_MKDIR_P=$MKDIR_P 25716 case $MKDIR_P in 25717 [\\/$]* | ?:[\\/]* ) ;; 25718 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25719 esac 25720 _ACEOF 25721 25722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25723 # If the template does not know about datarootdir, expand it. 25724 # FIXME: This hack should be removed a few years after 2.60. 25725 ac_datarootdir_hack=; ac_datarootdir_seen= 25726 25727 ac_sed_dataroot=' 25728 /datarootdir/ { 25729 p 25730 q 25731 } 25732 /@datadir@/p 25733 /@docdir@/p 25734 /@infodir@/p 25735 /@localedir@/p 25736 /@mandir@/p 25737 ' 25738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25739 *datarootdir*) ac_datarootdir_seen=yes;; 25740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25741 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25743 _ACEOF 25744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25745 ac_datarootdir_hack=' 25746 s&@datadir@&$datadir&g 25747 s&@docdir@&$docdir&g 25748 s&@infodir@&$infodir&g 25749 s&@localedir@&$localedir&g 25750 s&@mandir@&$mandir&g 25751 s&\\\${datarootdir}&$datarootdir&g' ;; 25752 esac 25753 _ACEOF 25754 25755 # Neutralize VPATH when `$srcdir' = `.'. 25756 # Shell code in configure.ac might set extrasub. 25757 # FIXME: do we really want to maintain this feature? 25758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25759 ac_sed_extra="$ac_vpsub 25760 $extrasub 25761 _ACEOF 25762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25763 :t 25764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25765 s|@configure_input@|$ac_sed_conf_input|;t t 25766 s&@top_builddir@&$ac_top_builddir_sub&;t t 25767 s&@top_build_prefix@&$ac_top_build_prefix&;t t 25768 s&@srcdir@&$ac_srcdir&;t t 25769 s&@abs_srcdir@&$ac_abs_srcdir&;t t 25770 s&@top_srcdir@&$ac_top_srcdir&;t t 25771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25772 s&@builddir@&$ac_builddir&;t t 25773 s&@abs_builddir@&$ac_abs_builddir&;t t 25774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25775 s&@INSTALL@&$ac_INSTALL&;t t 25776 s&@MKDIR_P@&$ac_MKDIR_P&;t t 25777 $ac_datarootdir_hack 25778 " 25779 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 25780 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25781 $as_echo "$as_me: error: could not create $ac_file" >&2;} 25782 { (exit 1); exit 1; }; } 25783 25784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25785 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 25786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 25787 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25788 which seems to be undefined. Please make sure it is defined." >&5 25789 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25790 which seems to be undefined. Please make sure it is defined." >&2;} 25791 25792 rm -f "$tmp/stdin" 25793 case $ac_file in 25794 -) cat "$tmp/out" && rm -f "$tmp/out";; 25795 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 25796 esac \ 25797 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25798 $as_echo "$as_me: error: could not create $ac_file" >&2;} 25799 { (exit 1); exit 1; }; } 25800 ;; 25801 :H) 25802 # 25803 # CONFIG_HEADER 25804 # 25805 if test x"$ac_file" != x-; then 25806 { 25807 $as_echo "/* $configure_input */" \ 25808 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 25809 } >"$tmp/config.h" \ 25810 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25811 $as_echo "$as_me: error: could not create $ac_file" >&2;} 25812 { (exit 1); exit 1; }; } 25813 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 25814 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 25815 $as_echo "$as_me: $ac_file is unchanged" >&6;} 25816 else 25817 rm -f "$ac_file" 25818 mv "$tmp/config.h" "$ac_file" \ 25819 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25820 $as_echo "$as_me: error: could not create $ac_file" >&2;} 25821 { (exit 1); exit 1; }; } 25822 fi 25823 else 25824 $as_echo "/* $configure_input */" \ 25825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 25826 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 25827 $as_echo "$as_me: error: could not create -" >&2;} 25828 { (exit 1); exit 1; }; } 25829 fi 25830 # Compute "$ac_file"'s index in $config_headers. 25831 _am_arg="$ac_file" 25832 _am_stamp_count=1 25833 for _am_header in $config_headers :; do 25834 case $_am_header in 25835 $_am_arg | $_am_arg:* ) 25836 break ;; 25837 * ) 25838 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25839 esac 25840 done 25841 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25842 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25843 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25844 X"$_am_arg" : 'X\(//\)$' \| \ 25845 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25846 $as_echo X"$_am_arg" | 25847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25848 s//\1/ 25849 q 25850 } 25851 /^X\(\/\/\)[^/].*/{ 25852 s//\1/ 25853 q 25854 } 25855 /^X\(\/\/\)$/{ 25856 s//\1/ 25857 q 25858 } 25859 /^X\(\/\).*/{ 25860 s//\1/ 25861 q 25862 } 25863 s/.*/./; q'`/stamp-h$_am_stamp_count 25864 ;; 25865 25866 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 25867 $as_echo "$as_me: executing $ac_file commands" >&6;} 25868 ;; 25869 esac 25870 25871 25872 case $ac_file$ac_mode in 25873 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25874 # Strip MF so we end up with the name of the file. 25875 mf=`echo "$mf" | sed -e 's/:.*$//'` 25876 # Check whether this is an Automake generated Makefile or not. 25877 # We used to match only the files named `Makefile.in', but 25878 # some people rename them; so instead we look at the file content. 25879 # Grep'ing the first line is not enough: some people post-process 25880 # each Makefile.in and add a new line on top of each file to say so. 25881 # Grep'ing the whole file is not good either: AIX grep has a line 25882 # limit of 2048, but all sed's we know have understand at least 4000. 25883 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 25884 dirpart=`$as_dirname -- "$mf" || 25885 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25886 X"$mf" : 'X\(//\)[^/]' \| \ 25887 X"$mf" : 'X\(//\)$' \| \ 25888 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 25889 $as_echo X"$mf" | 25890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25891 s//\1/ 25892 q 25893 } 25894 /^X\(\/\/\)[^/].*/{ 25895 s//\1/ 25896 q 25897 } 25898 /^X\(\/\/\)$/{ 25899 s//\1/ 25900 q 25901 } 25902 /^X\(\/\).*/{ 25903 s//\1/ 25904 q 25905 } 25906 s/.*/./; q'` 25907 else 25908 continue 25909 fi 25910 # Extract the definition of DEPDIR, am__include, and am__quote 25911 # from the Makefile without running `make'. 25912 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 25913 test -z "$DEPDIR" && continue 25914 am__include=`sed -n 's/^am__include = //p' < "$mf"` 25915 test -z "am__include" && continue 25916 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 25917 # When using ansi2knr, U may be empty or an underscore; expand it 25918 U=`sed -n 's/^U = //p' < "$mf"` 25919 # Find all dependency output files, they are included files with 25920 # $(DEPDIR) in their names. We invoke sed twice because it is the 25921 # simplest approach to changing $(DEPDIR) to its actual value in the 25922 # expansion. 25923 for file in `sed -n " 25924 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 25925 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25926 # Make sure the directory exists. 25927 test -f "$dirpart/$file" && continue 25928 fdir=`$as_dirname -- "$file" || 25929 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25930 X"$file" : 'X\(//\)[^/]' \| \ 25931 X"$file" : 'X\(//\)$' \| \ 25932 X"$file" : 'X\(/\)' \| . 2>/dev/null || 25933 $as_echo X"$file" | 25934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25935 s//\1/ 25936 q 25937 } 25938 /^X\(\/\/\)[^/].*/{ 25939 s//\1/ 25940 q 25941 } 25942 /^X\(\/\/\)$/{ 25943 s//\1/ 25944 q 25945 } 25946 /^X\(\/\).*/{ 25947 s//\1/ 25948 q 25949 } 25950 s/.*/./; q'` 25951 { as_dir=$dirpart/$fdir 25952 case $as_dir in #( 25953 -*) as_dir=./$as_dir;; 25954 esac 25955 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25956 as_dirs= 25957 while :; do 25958 case $as_dir in #( 25959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25960 *) as_qdir=$as_dir;; 25961 esac 25962 as_dirs="'$as_qdir' $as_dirs" 25963 as_dir=`$as_dirname -- "$as_dir" || 25964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25965 X"$as_dir" : 'X\(//\)[^/]' \| \ 25966 X"$as_dir" : 'X\(//\)$' \| \ 25967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25968 $as_echo X"$as_dir" | 25969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25970 s//\1/ 25971 q 25972 } 25973 /^X\(\/\/\)[^/].*/{ 25974 s//\1/ 25975 q 25976 } 25977 /^X\(\/\/\)$/{ 25978 s//\1/ 25979 q 25980 } 25981 /^X\(\/\).*/{ 25982 s//\1/ 25983 q 25984 } 25985 s/.*/./; q'` 25986 test -d "$as_dir" && break 25987 done 25988 test -z "$as_dirs" || eval "mkdir $as_dirs" 25989 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25990 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 25991 { (exit 1); exit 1; }; }; } 25992 # echo "creating $dirpart/$file" 25993 echo '# dummy' > "$dirpart/$file" 25994 done 25995 done 25996 ;; 25997 25998 esac 25999 done # for ac_tag 26000 26001 26002 { (exit 0); exit 0; } 26003 _ACEOF 26004 chmod +x $CONFIG_STATUS 26005 ac_clean_files=$ac_clean_files_save 26006 26007 test $ac_write_fail = 0 || 26008 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 26009 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 26010 { (exit 1); exit 1; }; } 26011 26012 26013 # configure is writing to config.log, and then calls config.status. 26014 # config.status does its own redirection, appending to config.log. 26015 # Unfortunately, on DOS this fails, as config.log is still kept open 26016 # by configure, so config.status won't be able to write to it; its 26017 # output is simply discarded. So we exec the FD to /dev/null, 26018 # effectively closing config.log, so it can be properly (re)opened and 26019 # appended to by config.status. When coming back to configure, we 26020 # need to make the FD available again. 26021 if test "$no_create" != yes; then 26022 ac_cs_success=: 26023 ac_config_status_args= 26024 test "$silent" = yes && 26025 ac_config_status_args="$ac_config_status_args --quiet" 26026 exec 5>/dev/null 26027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26028 exec 5>>config.log 26029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26030 # would make configure fail if this is the last instruction. 26031 $ac_cs_success || { (exit 1); exit 1; } 26032 fi 26033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26034 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26036 fi 26037 26038 ac_config_files="$ac_config_files src/lib/Makefile" 26039 26040 cat >confcache <<\_ACEOF 26041 # This file is a shell script that caches the results of configure 26042 # tests run on this system so they can be shared between configure 26043 # scripts and configure runs, see configure's option --config-cache. 26044 # It is not useful on other systems. If it contains results you don't 26045 # want to keep, you may remove or edit it. 26046 # 26047 # config.status only pays attention to the cache file if you give it 26048 # the --recheck option to rerun configure. 26049 # 26050 # `ac_cv_env_foo' variables (set or unset) will be overridden when 26051 # loading this file, other *unset* `ac_cv_foo' will be assigned the 26052 # following values. 26053 26054 _ACEOF 26055 26056 # The following way of writing the cache mishandles newlines in values, 26057 # but we know of no workaround that is simple, portable, and efficient. 26058 # So, we kill variables containing newlines. 26059 # Ultrix sh set writes to stderr and can't be redirected directly, 26060 # and sets the high bit in the cache file unless we assign to the vars. 26061 ( 26062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26063 eval ac_val=\$$ac_var 26064 case $ac_val in #( 26065 *${as_nl}*) 26066 case $ac_var in #( 26067 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 26068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26069 esac 26070 case $ac_var in #( 26071 _ | IFS | as_nl) ;; #( 26072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26073 *) $as_unset $ac_var ;; 26074 esac ;; 26075 esac 26076 done 26077 26078 (set) 2>&1 | 26079 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26080 *${as_nl}ac_space=\ *) 26081 # `set' does not quote correctly, so add quotes (double-quote 26082 # substitution turns \\\\ into \\, and sed turns \\ into \). 26083 sed -n \ 26084 "s/'/'\\\\''/g; 26085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26086 ;; #( 26087 *) 26088 # `set' quotes correctly as required by POSIX, so do not add quotes. 26089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26090 ;; 26091 esac | 26092 sort 26093 ) | 26094 sed ' 26095 /^ac_cv_env_/b end 26096 t clear 26097 :clear 26098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26099 t end 26100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26101 :end' >>confcache 26102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26103 if test -w "$cache_file"; then 26104 test "x$cache_file" != "x/dev/null" && 26105 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 26106 $as_echo "$as_me: updating cache $cache_file" >&6;} 26107 cat confcache >$cache_file 26108 else 26109 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 26110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26111 fi 26112 fi 26113 rm -f confcache 26114 26115 test "x$prefix" = xNONE && prefix=$ac_default_prefix 26116 # Let make expand exec_prefix. 26117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26118 26119 DEFS=-DHAVE_CONFIG_H 26120 26121 ac_libobjs= 26122 ac_ltlibobjs= 26123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26124 # 1. Remove the extension, and $U if already installed. 26125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26126 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26128 # will be set to the directory where LIBOBJS objects are built. 26129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 26131 done 26132 LIBOBJS=$ac_libobjs 26133 26134 LTLIBOBJS=$ac_ltlibobjs 26135 26136 26137 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 26138 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 26139 Usually this means the macro was only invoked conditionally." >&5 26140 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 26141 Usually this means the macro was only invoked conditionally." >&2;} 26142 { (exit 1); exit 1; }; } 26143 fi 26144 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 26145 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 26146 Usually this means the macro was only invoked conditionally." >&5 26147 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 26148 Usually this means the macro was only invoked conditionally." >&2;} 26149 { (exit 1); exit 1; }; } 26150 fi 26151 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 26152 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 26153 Usually this means the macro was only invoked conditionally." >&5 26154 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 26155 Usually this means the macro was only invoked conditionally." >&2;} 26156 { (exit 1); exit 1; }; } 26157 fi 26158 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 26159 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 26160 Usually this means the macro was only invoked conditionally." >&5 26161 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 26162 Usually this means the macro was only invoked conditionally." >&2;} 26163 { (exit 1); exit 1; }; } 26164 fi 26165 26166 : ${CONFIG_STATUS=./config.status} 26167 ac_write_fail=0 26168 ac_clean_files_save=$ac_clean_files 26169 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26170 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 26171 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26172 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26173 #! $SHELL 26174 # Generated by $as_me. 26175 # Run this file to recreate the current configuration. 26176 # Compiler output produced by configure, useful for debugging 26177 # configure, is in config.log if it exists. 26178 26179 debug=false 26180 ac_cs_recheck=false 26181 ac_cs_silent=false 26182 SHELL=\${CONFIG_SHELL-$SHELL} 26183 _ACEOF 26184 26185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26186 ## --------------------- ## 26187 ## M4sh Initialization. ## 26188 ## --------------------- ## 26189 26190 # Be more Bourne compatible 26191 DUALCASE=1; export DUALCASE # for MKS sh 26192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26193 emulate sh 26194 NULLCMD=: 26195 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26196 # is contrary to our usage. Disable this feature. 26197 alias -g '${1+"$@"}'='"$@"' 26198 setopt NO_GLOB_SUBST 26199 else 26200 case `(set -o) 2>/dev/null` in 26201 *posix*) set -o posix ;; 26202 esac 26203 26204 fi 26205 26206 26207 26208 26209 # PATH needs CR 26210 # Avoid depending upon Character Ranges. 26211 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26214 as_cr_digits='0123456789' 26215 as_cr_alnum=$as_cr_Letters$as_cr_digits 26216 26217 as_nl=' 26218 ' 26219 export as_nl 26220 # Printing a long string crashes Solaris 7 /usr/bin/printf. 26221 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26224 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 26225 as_echo='printf %s\n' 26226 as_echo_n='printf %s' 26227 else 26228 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26229 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26230 as_echo_n='/usr/ucb/echo -n' 26231 else 26232 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26233 as_echo_n_body='eval 26234 arg=$1; 26235 case $arg in 26236 *"$as_nl"*) 26237 expr "X$arg" : "X\\(.*\\)$as_nl"; 26238 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26239 esac; 26240 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26241 ' 26242 export as_echo_n_body 26243 as_echo_n='sh -c $as_echo_n_body as_echo' 26244 fi 26245 export as_echo_body 26246 as_echo='sh -c $as_echo_body as_echo' 26247 fi 26248 26249 # The user is always right. 26250 if test "${PATH_SEPARATOR+set}" != set; then 26251 PATH_SEPARATOR=: 26252 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26253 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26254 PATH_SEPARATOR=';' 26255 } 26256 fi 26257 26258 # Support unset when possible. 26259 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26260 as_unset=unset 26261 else 26262 as_unset=false 26263 fi 26264 26265 26266 # IFS 26267 # We need space, tab and new line, in precisely that order. Quoting is 26268 # there to prevent editors from complaining about space-tab. 26269 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 26270 # splitting by setting IFS to empty value.) 26271 IFS=" "" $as_nl" 26272 26273 # Find who we are. Look in the path if we contain no directory separator. 26274 case $0 in 26275 *[\\/]* ) as_myself=$0 ;; 26276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26277 for as_dir in $PATH 26278 do 26279 IFS=$as_save_IFS 26280 test -z "$as_dir" && as_dir=. 26281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26282 done 26283 IFS=$as_save_IFS 26284 26285 ;; 26286 esac 26287 # We did not find ourselves, most probably we were run as `sh COMMAND' 26288 # in which case we are not to be found in the path. 26289 if test "x$as_myself" = x; then 26290 as_myself=$0 26291 fi 26292 if test ! -f "$as_myself"; then 26293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26294 { (exit 1); exit 1; } 26295 fi 26296 26297 # Work around bugs in pre-3.0 UWIN ksh. 26298 for as_var in ENV MAIL MAILPATH 26299 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 26300 done 26301 PS1='$ ' 26302 PS2='> ' 26303 PS4='+ ' 26304 26305 # NLS nuisances. 26306 LC_ALL=C 26307 export LC_ALL 26308 LANGUAGE=C 26309 export LANGUAGE 26310 26311 # Required to use basename. 26312 if expr a : '\(a\)' >/dev/null 2>&1 && 26313 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26314 as_expr=expr 26315 else 26316 as_expr=false 26317 fi 26318 26319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26320 as_basename=basename 26321 else 26322 as_basename=false 26323 fi 26324 26325 26326 # Name of the executable. 26327 as_me=`$as_basename -- "$0" || 26328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26329 X"$0" : 'X\(//\)$' \| \ 26330 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26331 $as_echo X/"$0" | 26332 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26333 s//\1/ 26334 q 26335 } 26336 /^X\/\(\/\/\)$/{ 26337 s//\1/ 26338 q 26339 } 26340 /^X\/\(\/\).*/{ 26341 s//\1/ 26342 q 26343 } 26344 s/.*/./; q'` 26345 26346 # CDPATH. 26347 $as_unset CDPATH 26348 26349 26350 26351 as_lineno_1=$LINENO 26352 as_lineno_2=$LINENO 26353 test "x$as_lineno_1" != "x$as_lineno_2" && 26354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 26355 26356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 26357 # uniformly replaced by the line number. The first 'sed' inserts a 26358 # line-number line after each line using $LINENO; the second 'sed' 26359 # does the real work. The second script uses 'N' to pair each 26360 # line-number line with the line containing $LINENO, and appends 26361 # trailing '-' during substitution so that $LINENO is not a special 26362 # case at line end. 26363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 26364 # scripts with optimization help from Paolo Bonzini. Blame Lee 26365 # E. McMahon (1931-1989) for sed's syntax. :-) 26366 sed -n ' 26367 p 26368 /[$]LINENO/= 26369 ' <$as_myself | 26370 sed ' 26371 s/[$]LINENO.*/&-/ 26372 t lineno 26373 b 26374 :lineno 26375 N 26376 :loop 26377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 26378 t loop 26379 s/-\n.*// 26380 ' >$as_me.lineno && 26381 chmod +x "$as_me.lineno" || 26382 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 26383 { (exit 1); exit 1; }; } 26384 26385 # Don't try to exec as it changes $[0], causing all sort of problems 26386 # (the dirname of $[0] is not the place where we might find the 26387 # original and so on. Autoconf is especially sensitive to this). 26388 . "./$as_me.lineno" 26389 # Exit status is that of the last command. 26390 exit 26391 } 26392 26393 26394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26395 as_dirname=dirname 26396 else 26397 as_dirname=false 26398 fi 26399 26400 ECHO_C= ECHO_N= ECHO_T= 26401 case `echo -n x` in 26402 -n*) 26403 case `echo 'x\c'` in 26404 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26405 *) ECHO_C='\c';; 26406 esac;; 26407 *) 26408 ECHO_N='-n';; 26409 esac 26410 if expr a : '\(a\)' >/dev/null 2>&1 && 26411 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26412 as_expr=expr 26413 else 26414 as_expr=false 26415 fi 26416 26417 rm -f conf$$ conf$$.exe conf$$.file 26418 if test -d conf$$.dir; then 26419 rm -f conf$$.dir/conf$$.file 26420 else 26421 rm -f conf$$.dir 26422 mkdir conf$$.dir 2>/dev/null 26423 fi 26424 if (echo >conf$$.file) 2>/dev/null; then 26425 if ln -s conf$$.file conf$$ 2>/dev/null; then 26426 as_ln_s='ln -s' 26427 # ... but there are two gotchas: 26428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26430 # In both cases, we have to default to `cp -p'. 26431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26432 as_ln_s='cp -p' 26433 elif ln conf$$.file conf$$ 2>/dev/null; then 26434 as_ln_s=ln 26435 else 26436 as_ln_s='cp -p' 26437 fi 26438 else 26439 as_ln_s='cp -p' 26440 fi 26441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26442 rmdir conf$$.dir 2>/dev/null 26443 26444 if mkdir -p . 2>/dev/null; then 26445 as_mkdir_p=: 26446 else 26447 test -d ./-p && rmdir ./-p 26448 as_mkdir_p=false 26449 fi 26450 26451 if test -x / >/dev/null 2>&1; then 26452 as_test_x='test -x' 26453 else 26454 if ls -dL / >/dev/null 2>&1; then 26455 as_ls_L_option=L 26456 else 26457 as_ls_L_option= 26458 fi 26459 as_test_x=' 26460 eval sh -c '\'' 26461 if test -d "$1"; then 26462 test -d "$1/."; 26463 else 26464 case $1 in 26465 -*)set "./$1";; 26466 esac; 26467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 26468 ???[sx]*):;;*)false;;esac;fi 26469 '\'' sh 26470 ' 26471 fi 26472 as_executable_p=$as_test_x 26473 26474 # Sed expression to map a string onto a valid CPP name. 26475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26476 26477 # Sed expression to map a string onto a valid variable name. 26478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26479 26480 26481 exec 6>&1 26482 26483 # Save the log message, to keep $[0] and so on meaningful, and to 26484 # report actual input values of CONFIG_FILES etc. instead of their 26485 # values after options handling. 26486 ac_log=" 26487 This file was extended by netbsd-iscsi $as_me 20111006, which was 26488 generated by GNU Autoconf 2.63. Invocation command line was 26489 26490 CONFIG_FILES = $CONFIG_FILES 26491 CONFIG_HEADERS = $CONFIG_HEADERS 26492 CONFIG_LINKS = $CONFIG_LINKS 26493 CONFIG_COMMANDS = $CONFIG_COMMANDS 26494 $ $0 $@ 26495 26496 on `(hostname || uname -n) 2>/dev/null | sed 1q` 26497 " 26498 26499 _ACEOF 26500 26501 case $ac_config_files in *" 26502 "*) set x $ac_config_files; shift; ac_config_files=$*;; 26503 esac 26504 26505 case $ac_config_headers in *" 26506 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 26507 esac 26508 26509 26510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26511 # Files that config.status was made for. 26512 config_files="$ac_config_files" 26513 config_headers="$ac_config_headers" 26514 config_commands="$ac_config_commands" 26515 26516 _ACEOF 26517 26518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26519 ac_cs_usage="\ 26520 \`$as_me' instantiates files from templates according to the 26521 current configuration. 26522 26523 Usage: $0 [OPTION]... [FILE]... 26524 26525 -h, --help print this help, then exit 26526 -V, --version print version number and configuration settings, then exit 26527 -q, --quiet, --silent 26528 do not print progress messages 26529 -d, --debug don't remove temporary files 26530 --recheck update $as_me by reconfiguring in the same conditions 26531 --file=FILE[:TEMPLATE] 26532 instantiate the configuration file FILE 26533 --header=FILE[:TEMPLATE] 26534 instantiate the configuration header FILE 26535 26536 Configuration files: 26537 $config_files 26538 26539 Configuration headers: 26540 $config_headers 26541 26542 Configuration commands: 26543 $config_commands 26544 26545 Report bugs to <bug-autoconf (at] gnu.org>." 26546 26547 _ACEOF 26548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26549 ac_cs_version="\\ 26550 netbsd-iscsi config.status 20111006 26551 configured by $0, generated by GNU Autoconf 2.63, 26552 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 26553 26554 Copyright (C) 2008 Free Software Foundation, Inc. 26555 This config.status script is free software; the Free Software Foundation 26556 gives unlimited permission to copy, distribute and modify it." 26557 26558 ac_pwd='$ac_pwd' 26559 srcdir='$srcdir' 26560 INSTALL='$INSTALL' 26561 MKDIR_P='$MKDIR_P' 26562 AWK='$AWK' 26563 test -n "\$AWK" || AWK=awk 26564 _ACEOF 26565 26566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26567 # The default lists apply if the user does not specify any file. 26568 ac_need_defaults=: 26569 while test $# != 0 26570 do 26571 case $1 in 26572 --*=*) 26573 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 26575 ac_shift=: 26576 ;; 26577 *) 26578 ac_option=$1 26579 ac_optarg=$2 26580 ac_shift=shift 26581 ;; 26582 esac 26583 26584 case $ac_option in 26585 # Handling of the options. 26586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26587 ac_cs_recheck=: ;; 26588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26589 $as_echo "$ac_cs_version"; exit ;; 26590 --debug | --debu | --deb | --de | --d | -d ) 26591 debug=: ;; 26592 --file | --fil | --fi | --f ) 26593 $ac_shift 26594 case $ac_optarg in 26595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26596 esac 26597 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 26598 ac_need_defaults=false;; 26599 --header | --heade | --head | --hea ) 26600 $ac_shift 26601 case $ac_optarg in 26602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26603 esac 26604 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 26605 ac_need_defaults=false;; 26606 --he | --h) 26607 # Conflict between --help and --header 26608 { $as_echo "$as_me: error: ambiguous option: $1 26609 Try \`$0 --help' for more information." >&2 26610 { (exit 1); exit 1; }; };; 26611 --help | --hel | -h ) 26612 $as_echo "$ac_cs_usage"; exit ;; 26613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26614 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26615 ac_cs_silent=: ;; 26616 26617 # This is an error. 26618 -*) { $as_echo "$as_me: error: unrecognized option: $1 26619 Try \`$0 --help' for more information." >&2 26620 { (exit 1); exit 1; }; } ;; 26621 26622 *) ac_config_targets="$ac_config_targets $1" 26623 ac_need_defaults=false ;; 26624 26625 esac 26626 shift 26627 done 26628 26629 ac_configure_extra_args= 26630 26631 if $ac_cs_silent; then 26632 exec 6>/dev/null 26633 ac_configure_extra_args="$ac_configure_extra_args --silent" 26634 fi 26635 26636 _ACEOF 26637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26638 if \$ac_cs_recheck; then 26639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26640 shift 26641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 26642 CONFIG_SHELL='$SHELL' 26643 export CONFIG_SHELL 26644 exec "\$@" 26645 fi 26646 26647 _ACEOF 26648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26649 exec 5>>config.log 26650 { 26651 echo 26652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26653 ## Running $as_me. ## 26654 _ASBOX 26655 $as_echo "$ac_log" 26656 } >&5 26657 26658 _ACEOF 26659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26660 # 26661 # INIT-COMMANDS 26662 # 26663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 26664 26665 _ACEOF 26666 26667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26668 26669 # Handling of arguments. 26670 for ac_config_target in $ac_config_targets 26671 do 26672 case $ac_config_target in 26673 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 26674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26676 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 26677 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 26678 26679 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 26680 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 26681 { (exit 1); exit 1; }; };; 26682 esac 26683 done 26684 26685 26686 # If the user did not use the arguments to specify the items to instantiate, 26687 # then the envvar interface is used. Set only those that are not. 26688 # We use the long form for the default assignment because of an extremely 26689 # bizarre bug on SunOS 4.1.3. 26690 if $ac_need_defaults; then 26691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26694 fi 26695 26696 # Have a temporary directory for convenience. Make it in the build tree 26697 # simply because there is no reason against having it here, and in addition, 26698 # creating and moving files from /tmp can sometimes cause problems. 26699 # Hook for its removal unless debugging. 26700 # Note that there is a small window in which the directory will not be cleaned: 26701 # after its creation but before its name has been assigned to `$tmp'. 26702 $debug || 26703 { 26704 tmp= 26705 trap 'exit_status=$? 26706 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26707 ' 0 26708 trap '{ (exit 1); exit 1; }' 1 2 13 15 26709 } 26710 # Create a (secure) tmp directory for tmp files. 26711 26712 { 26713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26714 test -n "$tmp" && test -d "$tmp" 26715 } || 26716 { 26717 tmp=./conf$$-$RANDOM 26718 (umask 077 && mkdir "$tmp") 26719 } || 26720 { 26721 $as_echo "$as_me: cannot create a temporary directory in ." >&2 26722 { (exit 1); exit 1; } 26723 } 26724 26725 # Set up the scripts for CONFIG_FILES section. 26726 # No need to generate them if there are no CONFIG_FILES. 26727 # This happens for instance with `./config.status config.h'. 26728 if test -n "$CONFIG_FILES"; then 26729 26730 26731 ac_cr=' ' 26733 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26734 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26735 ac_cs_awk_cr='\\r' 26736 else 26737 ac_cs_awk_cr=$ac_cr 26738 fi 26739 26740 echo 'BEGIN {' >"$tmp/subs1.awk" && 26741 _ACEOF 26742 26743 26744 { 26745 echo "cat >conf$$subs.awk <<_ACEOF" && 26746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26747 echo "_ACEOF" 26748 } >conf$$subs.sh || 26749 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26750 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26751 { (exit 1); exit 1; }; } 26752 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26753 ac_delim='%!_!# ' 26754 for ac_last_try in false false false false false :; do 26755 . ./conf$$subs.sh || 26756 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26757 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26758 { (exit 1); exit 1; }; } 26759 26760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26761 if test $ac_delim_n = $ac_delim_num; then 26762 break 26763 elif $ac_last_try; then 26764 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 26765 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 26766 { (exit 1); exit 1; }; } 26767 else 26768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26769 fi 26770 done 26771 rm -f conf$$subs.sh 26772 26773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26774 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 26775 _ACEOF 26776 sed -n ' 26777 h 26778 s/^/S["/; s/!.*/"]=/ 26779 p 26780 g 26781 s/^[^!]*!// 26782 :repl 26783 t repl 26784 s/'"$ac_delim"'$// 26785 t delim 26786 :nl 26787 h 26788 s/\(.\{148\}\).*/\1/ 26789 t more1 26790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26791 p 26792 n 26793 b repl 26794 :more1 26795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26796 p 26797 g 26798 s/.\{148\}// 26799 t nl 26800 :delim 26801 h 26802 s/\(.\{148\}\).*/\1/ 26803 t more2 26804 s/["\\]/\\&/g; s/^/"/; s/$/"/ 26805 p 26806 b 26807 :more2 26808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26809 p 26810 g 26811 s/.\{148\}// 26812 t delim 26813 ' <conf$$subs.awk | sed ' 26814 /^[^""]/{ 26815 N 26816 s/\n// 26817 } 26818 ' >>$CONFIG_STATUS || ac_write_fail=1 26819 rm -f conf$$subs.awk 26820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26821 _ACAWK 26822 cat >>"\$tmp/subs1.awk" <<_ACAWK && 26823 for (key in S) S_is_set[key] = 1 26824 FS = "" 26825 26826 } 26827 { 26828 line = $ 0 26829 nfields = split(line, field, "@") 26830 substed = 0 26831 len = length(field[1]) 26832 for (i = 2; i < nfields; i++) { 26833 key = field[i] 26834 keylen = length(key) 26835 if (S_is_set[key]) { 26836 value = S[key] 26837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26838 len += length(value) + length(field[++i]) 26839 substed = 1 26840 } else 26841 len += 1 + keylen 26842 } 26843 26844 print line 26845 } 26846 26847 _ACAWK 26848 _ACEOF 26849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26850 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26851 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26852 else 26853 cat 26854 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26855 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 26856 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 26857 { (exit 1); exit 1; }; } 26858 _ACEOF 26859 26860 # VPATH may cause trouble with some makes, so we remove $(srcdir), 26861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 26862 # trailing colons and then remove the whole line if VPATH becomes empty 26863 # (actually we leave an empty line to preserve line numbers). 26864 if test "x$srcdir" = x.; then 26865 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 26866 s/:*\$(srcdir):*/:/ 26867 s/:*\${srcdir}:*/:/ 26868 s/:*@srcdir@:*/:/ 26869 s/^\([^=]*=[ ]*\):*/\1/ 26870 s/:*$// 26871 s/^[^=]*=[ ]*$// 26872 }' 26873 fi 26874 26875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26876 fi # test -n "$CONFIG_FILES" 26877 26878 # Set up the scripts for CONFIG_HEADERS section. 26879 # No need to generate them if there are no CONFIG_HEADERS. 26880 # This happens for instance with `./config.status Makefile'. 26881 if test -n "$CONFIG_HEADERS"; then 26882 cat >"$tmp/defines.awk" <<\_ACAWK || 26883 BEGIN { 26884 _ACEOF 26885 26886 # Transform confdefs.h into an awk script `defines.awk', embedded as 26887 # here-document in config.status, that substitutes the proper values into 26888 # config.h.in to produce config.h. 26889 26890 # Create a delimiter string that does not exist in confdefs.h, to ease 26891 # handling of long lines. 26892 ac_delim='%!_!# ' 26893 for ac_last_try in false false :; do 26894 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 26895 if test -z "$ac_t"; then 26896 break 26897 elif $ac_last_try; then 26898 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 26899 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 26900 { (exit 1); exit 1; }; } 26901 else 26902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26903 fi 26904 done 26905 26906 # For the awk script, D is an array of macro values keyed by name, 26907 # likewise P contains macro parameters if any. Preserve backslash 26908 # newline sequences. 26909 26910 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26911 sed -n ' 26912 s/.\{148\}/&'"$ac_delim"'/g 26913 t rset 26914 :rset 26915 s/^[ ]*#[ ]*define[ ][ ]*/ / 26916 t def 26917 d 26918 :def 26919 s/\\$// 26920 t bsnl 26921 s/["\\]/\\&/g 26922 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26923 D["\1"]=" \3"/p 26924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26925 d 26926 :bsnl 26927 s/["\\]/\\&/g 26928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26929 D["\1"]=" \3\\\\\\n"\\/p 26930 t cont 26931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26932 t cont 26933 d 26934 :cont 26935 n 26936 s/.\{148\}/&'"$ac_delim"'/g 26937 t clear 26938 :clear 26939 s/\\$// 26940 t bsnlc 26941 s/["\\]/\\&/g; s/^/"/; s/$/"/p 26942 d 26943 :bsnlc 26944 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26945 b cont 26946 ' <confdefs.h | sed ' 26947 s/'"$ac_delim"'/"\\\ 26948 "/g' >>$CONFIG_STATUS || ac_write_fail=1 26949 26950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26951 for (key in D) D_is_set[key] = 1 26952 FS = "" 26953 } 26954 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26955 line = \$ 0 26956 split(line, arg, " ") 26957 if (arg[1] == "#") { 26958 defundef = arg[2] 26959 mac1 = arg[3] 26960 } else { 26961 defundef = substr(arg[1], 2) 26962 mac1 = arg[2] 26963 } 26964 split(mac1, mac2, "(") #) 26965 macro = mac2[1] 26966 prefix = substr(line, 1, index(line, defundef) - 1) 26967 if (D_is_set[macro]) { 26968 # Preserve the white space surrounding the "#". 26969 print prefix "define", macro P[macro] D[macro] 26970 next 26971 } else { 26972 # Replace #undef with comments. This is necessary, for example, 26973 # in the case of _POSIX_SOURCE, which is predefined and required 26974 # on some systems where configure will not decide to define it. 26975 if (defundef == "undef") { 26976 print "/*", prefix defundef, macro, "*/" 26977 next 26978 } 26979 } 26980 } 26981 { print } 26982 _ACAWK 26983 _ACEOF 26984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26985 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 26986 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 26987 { (exit 1); exit 1; }; } 26988 fi # test -n "$CONFIG_HEADERS" 26989 26990 26991 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26992 shift 26993 for ac_tag 26994 do 26995 case $ac_tag in 26996 :[FHLC]) ac_mode=$ac_tag; continue;; 26997 esac 26998 case $ac_mode$ac_tag in 26999 :[FHL]*:*);; 27000 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 27001 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 27002 { (exit 1); exit 1; }; };; 27003 :[FH]-) ac_tag=-:-;; 27004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27005 esac 27006 ac_save_IFS=$IFS 27007 IFS=: 27008 set x $ac_tag 27009 IFS=$ac_save_IFS 27010 shift 27011 ac_file=$1 27012 shift 27013 27014 case $ac_mode in 27015 :L) ac_source=$1;; 27016 :[FH]) 27017 ac_file_inputs= 27018 for ac_f 27019 do 27020 case $ac_f in 27021 -) ac_f="$tmp/stdin";; 27022 *) # Look for the file first in the build tree, then in the source tree 27023 # (if the path is not absolute). The absolute path cannot be DOS-style, 27024 # because $ac_f cannot contain `:'. 27025 test -f "$ac_f" || 27026 case $ac_f in 27027 [\\/$]*) false;; 27028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27029 esac || 27030 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 27031 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 27032 { (exit 1); exit 1; }; };; 27033 esac 27034 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27035 ac_file_inputs="$ac_file_inputs '$ac_f'" 27036 done 27037 27038 # Let's still pretend it is `configure' which instantiates (i.e., don't 27039 # use $as_me), people would be surprised to read: 27040 # /* config.h. Generated by config.status. */ 27041 configure_input='Generated from '` 27042 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27043 `' by configure.' 27044 if test x"$ac_file" != x-; then 27045 configure_input="$ac_file. $configure_input" 27046 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 27047 $as_echo "$as_me: creating $ac_file" >&6;} 27048 fi 27049 # Neutralize special characters interpreted by sed in replacement strings. 27050 case $configure_input in #( 27051 *\&* | *\|* | *\\* ) 27052 ac_sed_conf_input=`$as_echo "$configure_input" | 27053 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27054 *) ac_sed_conf_input=$configure_input;; 27055 esac 27056 27057 case $ac_tag in 27058 *:-:* | *:-) cat >"$tmp/stdin" \ 27059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 27060 $as_echo "$as_me: error: could not create $ac_file" >&2;} 27061 { (exit 1); exit 1; }; } ;; 27062 esac 27063 ;; 27064 esac 27065 27066 ac_dir=`$as_dirname -- "$ac_file" || 27067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27068 X"$ac_file" : 'X\(//\)[^/]' \| \ 27069 X"$ac_file" : 'X\(//\)$' \| \ 27070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27071 $as_echo X"$ac_file" | 27072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27073 s//\1/ 27074 q 27075 } 27076 /^X\(\/\/\)[^/].*/{ 27077 s//\1/ 27078 q 27079 } 27080 /^X\(\/\/\)$/{ 27081 s//\1/ 27082 q 27083 } 27084 /^X\(\/\).*/{ 27085 s//\1/ 27086 q 27087 } 27088 s/.*/./; q'` 27089 { as_dir="$ac_dir" 27090 case $as_dir in #( 27091 -*) as_dir=./$as_dir;; 27092 esac 27093 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 27094 as_dirs= 27095 while :; do 27096 case $as_dir in #( 27097 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27098 *) as_qdir=$as_dir;; 27099 esac 27100 as_dirs="'$as_qdir' $as_dirs" 27101 as_dir=`$as_dirname -- "$as_dir" || 27102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27103 X"$as_dir" : 'X\(//\)[^/]' \| \ 27104 X"$as_dir" : 'X\(//\)$' \| \ 27105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27106 $as_echo X"$as_dir" | 27107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27108 s//\1/ 27109 q 27110 } 27111 /^X\(\/\/\)[^/].*/{ 27112 s//\1/ 27113 q 27114 } 27115 /^X\(\/\/\)$/{ 27116 s//\1/ 27117 q 27118 } 27119 /^X\(\/\).*/{ 27120 s//\1/ 27121 q 27122 } 27123 s/.*/./; q'` 27124 test -d "$as_dir" && break 27125 done 27126 test -z "$as_dirs" || eval "mkdir $as_dirs" 27127 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 27128 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 27129 { (exit 1); exit 1; }; }; } 27130 ac_builddir=. 27131 27132 case "$ac_dir" in 27133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27134 *) 27135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 27136 # A ".." for each directory in $ac_dir_suffix. 27137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27138 case $ac_top_builddir_sub in 27139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27141 esac ;; 27142 esac 27143 ac_abs_top_builddir=$ac_pwd 27144 ac_abs_builddir=$ac_pwd$ac_dir_suffix 27145 # for backward compatibility: 27146 ac_top_builddir=$ac_top_build_prefix 27147 27148 case $srcdir in 27149 .) # We are building in place. 27150 ac_srcdir=. 27151 ac_top_srcdir=$ac_top_builddir_sub 27152 ac_abs_top_srcdir=$ac_pwd ;; 27153 [\\/]* | ?:[\\/]* ) # Absolute name. 27154 ac_srcdir=$srcdir$ac_dir_suffix; 27155 ac_top_srcdir=$srcdir 27156 ac_abs_top_srcdir=$srcdir ;; 27157 *) # Relative name. 27158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27159 ac_top_srcdir=$ac_top_build_prefix$srcdir 27160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27161 esac 27162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27163 27164 27165 case $ac_mode in 27166 :F) 27167 # 27168 # CONFIG_FILE 27169 # 27170 27171 case $INSTALL in 27172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 27174 esac 27175 ac_MKDIR_P=$MKDIR_P 27176 case $MKDIR_P in 27177 [\\/$]* | ?:[\\/]* ) ;; 27178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 27179 esac 27180 _ACEOF 27181 27182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27183 # If the template does not know about datarootdir, expand it. 27184 # FIXME: This hack should be removed a few years after 2.60. 27185 ac_datarootdir_hack=; ac_datarootdir_seen= 27186 27187 ac_sed_dataroot=' 27188 /datarootdir/ { 27189 p 27190 q 27191 } 27192 /@datadir@/p 27193 /@docdir@/p 27194 /@infodir@/p 27195 /@localedir@/p 27196 /@mandir@/p 27197 ' 27198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27199 *datarootdir*) ac_datarootdir_seen=yes;; 27200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27201 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27203 _ACEOF 27204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27205 ac_datarootdir_hack=' 27206 s&@datadir@&$datadir&g 27207 s&@docdir@&$docdir&g 27208 s&@infodir@&$infodir&g 27209 s&@localedir@&$localedir&g 27210 s&@mandir@&$mandir&g 27211 s&\\\${datarootdir}&$datarootdir&g' ;; 27212 esac 27213 _ACEOF 27214 27215 # Neutralize VPATH when `$srcdir' = `.'. 27216 # Shell code in configure.ac might set extrasub. 27217 # FIXME: do we really want to maintain this feature? 27218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27219 ac_sed_extra="$ac_vpsub 27220 $extrasub 27221 _ACEOF 27222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27223 :t 27224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27225 s|@configure_input@|$ac_sed_conf_input|;t t 27226 s&@top_builddir@&$ac_top_builddir_sub&;t t 27227 s&@top_build_prefix@&$ac_top_build_prefix&;t t 27228 s&@srcdir@&$ac_srcdir&;t t 27229 s&@abs_srcdir@&$ac_abs_srcdir&;t t 27230 s&@top_srcdir@&$ac_top_srcdir&;t t 27231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27232 s&@builddir@&$ac_builddir&;t t 27233 s&@abs_builddir@&$ac_abs_builddir&;t t 27234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27235 s&@INSTALL@&$ac_INSTALL&;t t 27236 s&@MKDIR_P@&$ac_MKDIR_P&;t t 27237 $ac_datarootdir_hack 27238 " 27239 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27240 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 27241 $as_echo "$as_me: error: could not create $ac_file" >&2;} 27242 { (exit 1); exit 1; }; } 27243 27244 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27245 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27246 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27247 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27248 which seems to be undefined. Please make sure it is defined." >&5 27249 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27250 which seems to be undefined. Please make sure it is defined." >&2;} 27251 27252 rm -f "$tmp/stdin" 27253 case $ac_file in 27254 -) cat "$tmp/out" && rm -f "$tmp/out";; 27255 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27256 esac \ 27257 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 27258 $as_echo "$as_me: error: could not create $ac_file" >&2;} 27259 { (exit 1); exit 1; }; } 27260 ;; 27261 :H) 27262 # 27263 # CONFIG_HEADER 27264 # 27265 if test x"$ac_file" != x-; then 27266 { 27267 $as_echo "/* $configure_input */" \ 27268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27269 } >"$tmp/config.h" \ 27270 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 27271 $as_echo "$as_me: error: could not create $ac_file" >&2;} 27272 { (exit 1); exit 1; }; } 27273 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27274 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 27275 $as_echo "$as_me: $ac_file is unchanged" >&6;} 27276 else 27277 rm -f "$ac_file" 27278 mv "$tmp/config.h" "$ac_file" \ 27279 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 27280 $as_echo "$as_me: error: could not create $ac_file" >&2;} 27281 { (exit 1); exit 1; }; } 27282 fi 27283 else 27284 $as_echo "/* $configure_input */" \ 27285 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27286 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 27287 $as_echo "$as_me: error: could not create -" >&2;} 27288 { (exit 1); exit 1; }; } 27289 fi 27290 # Compute "$ac_file"'s index in $config_headers. 27291 _am_arg="$ac_file" 27292 _am_stamp_count=1 27293 for _am_header in $config_headers :; do 27294 case $_am_header in 27295 $_am_arg | $_am_arg:* ) 27296 break ;; 27297 * ) 27298 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 27299 esac 27300 done 27301 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 27302 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27303 X"$_am_arg" : 'X\(//\)[^/]' \| \ 27304 X"$_am_arg" : 'X\(//\)$' \| \ 27305 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 27306 $as_echo X"$_am_arg" | 27307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27308 s//\1/ 27309 q 27310 } 27311 /^X\(\/\/\)[^/].*/{ 27312 s//\1/ 27313 q 27314 } 27315 /^X\(\/\/\)$/{ 27316 s//\1/ 27317 q 27318 } 27319 /^X\(\/\).*/{ 27320 s//\1/ 27321 q 27322 } 27323 s/.*/./; q'`/stamp-h$_am_stamp_count 27324 ;; 27325 27326 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 27327 $as_echo "$as_me: executing $ac_file commands" >&6;} 27328 ;; 27329 esac 27330 27331 27332 case $ac_file$ac_mode in 27333 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 27334 # Strip MF so we end up with the name of the file. 27335 mf=`echo "$mf" | sed -e 's/:.*$//'` 27336 # Check whether this is an Automake generated Makefile or not. 27337 # We used to match only the files named `Makefile.in', but 27338 # some people rename them; so instead we look at the file content. 27339 # Grep'ing the first line is not enough: some people post-process 27340 # each Makefile.in and add a new line on top of each file to say so. 27341 # Grep'ing the whole file is not good either: AIX grep has a line 27342 # limit of 2048, but all sed's we know have understand at least 4000. 27343 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 27344 dirpart=`$as_dirname -- "$mf" || 27345 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27346 X"$mf" : 'X\(//\)[^/]' \| \ 27347 X"$mf" : 'X\(//\)$' \| \ 27348 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 27349 $as_echo X"$mf" | 27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27351 s//\1/ 27352 q 27353 } 27354 /^X\(\/\/\)[^/].*/{ 27355 s//\1/ 27356 q 27357 } 27358 /^X\(\/\/\)$/{ 27359 s//\1/ 27360 q 27361 } 27362 /^X\(\/\).*/{ 27363 s//\1/ 27364 q 27365 } 27366 s/.*/./; q'` 27367 else 27368 continue 27369 fi 27370 # Extract the definition of DEPDIR, am__include, and am__quote 27371 # from the Makefile without running `make'. 27372 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 27373 test -z "$DEPDIR" && continue 27374 am__include=`sed -n 's/^am__include = //p' < "$mf"` 27375 test -z "am__include" && continue 27376 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 27377 # When using ansi2knr, U may be empty or an underscore; expand it 27378 U=`sed -n 's/^U = //p' < "$mf"` 27379 # Find all dependency output files, they are included files with 27380 # $(DEPDIR) in their names. We invoke sed twice because it is the 27381 # simplest approach to changing $(DEPDIR) to its actual value in the 27382 # expansion. 27383 for file in `sed -n " 27384 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 27385 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 27386 # Make sure the directory exists. 27387 test -f "$dirpart/$file" && continue 27388 fdir=`$as_dirname -- "$file" || 27389 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27390 X"$file" : 'X\(//\)[^/]' \| \ 27391 X"$file" : 'X\(//\)$' \| \ 27392 X"$file" : 'X\(/\)' \| . 2>/dev/null || 27393 $as_echo X"$file" | 27394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27395 s//\1/ 27396 q 27397 } 27398 /^X\(\/\/\)[^/].*/{ 27399 s//\1/ 27400 q 27401 } 27402 /^X\(\/\/\)$/{ 27403 s//\1/ 27404 q 27405 } 27406 /^X\(\/\).*/{ 27407 s//\1/ 27408 q 27409 } 27410 s/.*/./; q'` 27411 { as_dir=$dirpart/$fdir 27412 case $as_dir in #( 27413 -*) as_dir=./$as_dir;; 27414 esac 27415 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 27416 as_dirs= 27417 while :; do 27418 case $as_dir in #( 27419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27420 *) as_qdir=$as_dir;; 27421 esac 27422 as_dirs="'$as_qdir' $as_dirs" 27423 as_dir=`$as_dirname -- "$as_dir" || 27424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27425 X"$as_dir" : 'X\(//\)[^/]' \| \ 27426 X"$as_dir" : 'X\(//\)$' \| \ 27427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27428 $as_echo X"$as_dir" | 27429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27430 s//\1/ 27431 q 27432 } 27433 /^X\(\/\/\)[^/].*/{ 27434 s//\1/ 27435 q 27436 } 27437 /^X\(\/\/\)$/{ 27438 s//\1/ 27439 q 27440 } 27441 /^X\(\/\).*/{ 27442 s//\1/ 27443 q 27444 } 27445 s/.*/./; q'` 27446 test -d "$as_dir" && break 27447 done 27448 test -z "$as_dirs" || eval "mkdir $as_dirs" 27449 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 27450 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 27451 { (exit 1); exit 1; }; }; } 27452 # echo "creating $dirpart/$file" 27453 echo '# dummy' > "$dirpart/$file" 27454 done 27455 done 27456 ;; 27457 27458 esac 27459 done # for ac_tag 27460 27461 27462 { (exit 0); exit 0; } 27463 _ACEOF 27464 chmod +x $CONFIG_STATUS 27465 ac_clean_files=$ac_clean_files_save 27466 27467 test $ac_write_fail = 0 || 27468 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 27469 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 27470 { (exit 1); exit 1; }; } 27471 27472 27473 # configure is writing to config.log, and then calls config.status. 27474 # config.status does its own redirection, appending to config.log. 27475 # Unfortunately, on DOS this fails, as config.log is still kept open 27476 # by configure, so config.status won't be able to write to it; its 27477 # output is simply discarded. So we exec the FD to /dev/null, 27478 # effectively closing config.log, so it can be properly (re)opened and 27479 # appended to by config.status. When coming back to configure, we 27480 # need to make the FD available again. 27481 if test "$no_create" != yes; then 27482 ac_cs_success=: 27483 ac_config_status_args= 27484 test "$silent" = yes && 27485 ac_config_status_args="$ac_config_status_args --quiet" 27486 exec 5>/dev/null 27487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27488 exec 5>>config.log 27489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27490 # would make configure fail if this is the last instruction. 27491 $ac_cs_success || { (exit 1); exit 1; } 27492 fi 27493 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27494 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27495 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27496 fi 27497 27498 ac_config_files="$ac_config_files src/target/Makefile" 27499 27500 cat >confcache <<\_ACEOF 27501 # This file is a shell script that caches the results of configure 27502 # tests run on this system so they can be shared between configure 27503 # scripts and configure runs, see configure's option --config-cache. 27504 # It is not useful on other systems. If it contains results you don't 27505 # want to keep, you may remove or edit it. 27506 # 27507 # config.status only pays attention to the cache file if you give it 27508 # the --recheck option to rerun configure. 27509 # 27510 # `ac_cv_env_foo' variables (set or unset) will be overridden when 27511 # loading this file, other *unset* `ac_cv_foo' will be assigned the 27512 # following values. 27513 27514 _ACEOF 27515 27516 # The following way of writing the cache mishandles newlines in values, 27517 # but we know of no workaround that is simple, portable, and efficient. 27518 # So, we kill variables containing newlines. 27519 # Ultrix sh set writes to stderr and can't be redirected directly, 27520 # and sets the high bit in the cache file unless we assign to the vars. 27521 ( 27522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27523 eval ac_val=\$$ac_var 27524 case $ac_val in #( 27525 *${as_nl}*) 27526 case $ac_var in #( 27527 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 27528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27529 esac 27530 case $ac_var in #( 27531 _ | IFS | as_nl) ;; #( 27532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27533 *) $as_unset $ac_var ;; 27534 esac ;; 27535 esac 27536 done 27537 27538 (set) 2>&1 | 27539 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27540 *${as_nl}ac_space=\ *) 27541 # `set' does not quote correctly, so add quotes (double-quote 27542 # substitution turns \\\\ into \\, and sed turns \\ into \). 27543 sed -n \ 27544 "s/'/'\\\\''/g; 27545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27546 ;; #( 27547 *) 27548 # `set' quotes correctly as required by POSIX, so do not add quotes. 27549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27550 ;; 27551 esac | 27552 sort 27553 ) | 27554 sed ' 27555 /^ac_cv_env_/b end 27556 t clear 27557 :clear 27558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27559 t end 27560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27561 :end' >>confcache 27562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27563 if test -w "$cache_file"; then 27564 test "x$cache_file" != "x/dev/null" && 27565 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 27566 $as_echo "$as_me: updating cache $cache_file" >&6;} 27567 cat confcache >$cache_file 27568 else 27569 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 27570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27571 fi 27572 fi 27573 rm -f confcache 27574 27575 test "x$prefix" = xNONE && prefix=$ac_default_prefix 27576 # Let make expand exec_prefix. 27577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27578 27579 DEFS=-DHAVE_CONFIG_H 27580 27581 ac_libobjs= 27582 ac_ltlibobjs= 27583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27584 # 1. Remove the extension, and $U if already installed. 27585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27588 # will be set to the directory where LIBOBJS objects are built. 27589 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27590 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 27591 done 27592 LIBOBJS=$ac_libobjs 27593 27594 LTLIBOBJS=$ac_ltlibobjs 27595 27596 27597 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27598 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27599 Usually this means the macro was only invoked conditionally." >&5 27600 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27601 Usually this means the macro was only invoked conditionally." >&2;} 27602 { (exit 1); exit 1; }; } 27603 fi 27604 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27605 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27606 Usually this means the macro was only invoked conditionally." >&5 27607 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 27608 Usually this means the macro was only invoked conditionally." >&2;} 27609 { (exit 1); exit 1; }; } 27610 fi 27611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27612 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27613 Usually this means the macro was only invoked conditionally." >&5 27614 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27615 Usually this means the macro was only invoked conditionally." >&2;} 27616 { (exit 1); exit 1; }; } 27617 fi 27618 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27619 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27620 Usually this means the macro was only invoked conditionally." >&5 27621 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27622 Usually this means the macro was only invoked conditionally." >&2;} 27623 { (exit 1); exit 1; }; } 27624 fi 27625 27626 : ${CONFIG_STATUS=./config.status} 27627 ac_write_fail=0 27628 ac_clean_files_save=$ac_clean_files 27629 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27630 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27632 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27633 #! $SHELL 27634 # Generated by $as_me. 27635 # Run this file to recreate the current configuration. 27636 # Compiler output produced by configure, useful for debugging 27637 # configure, is in config.log if it exists. 27638 27639 debug=false 27640 ac_cs_recheck=false 27641 ac_cs_silent=false 27642 SHELL=\${CONFIG_SHELL-$SHELL} 27643 _ACEOF 27644 27645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27646 ## --------------------- ## 27647 ## M4sh Initialization. ## 27648 ## --------------------- ## 27649 27650 # Be more Bourne compatible 27651 DUALCASE=1; export DUALCASE # for MKS sh 27652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27653 emulate sh 27654 NULLCMD=: 27655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27656 # is contrary to our usage. Disable this feature. 27657 alias -g '${1+"$@"}'='"$@"' 27658 setopt NO_GLOB_SUBST 27659 else 27660 case `(set -o) 2>/dev/null` in 27661 *posix*) set -o posix ;; 27662 esac 27663 27664 fi 27665 27666 27667 27668 27669 # PATH needs CR 27670 # Avoid depending upon Character Ranges. 27671 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27672 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27673 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27674 as_cr_digits='0123456789' 27675 as_cr_alnum=$as_cr_Letters$as_cr_digits 27676 27677 as_nl=' 27678 ' 27679 export as_nl 27680 # Printing a long string crashes Solaris 7 /usr/bin/printf. 27681 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27683 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27684 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27685 as_echo='printf %s\n' 27686 as_echo_n='printf %s' 27687 else 27688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27689 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27690 as_echo_n='/usr/ucb/echo -n' 27691 else 27692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27693 as_echo_n_body='eval 27694 arg=$1; 27695 case $arg in 27696 *"$as_nl"*) 27697 expr "X$arg" : "X\\(.*\\)$as_nl"; 27698 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27699 esac; 27700 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27701 ' 27702 export as_echo_n_body 27703 as_echo_n='sh -c $as_echo_n_body as_echo' 27704 fi 27705 export as_echo_body 27706 as_echo='sh -c $as_echo_body as_echo' 27707 fi 27708 27709 # The user is always right. 27710 if test "${PATH_SEPARATOR+set}" != set; then 27711 PATH_SEPARATOR=: 27712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27714 PATH_SEPARATOR=';' 27715 } 27716 fi 27717 27718 # Support unset when possible. 27719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27720 as_unset=unset 27721 else 27722 as_unset=false 27723 fi 27724 27725 27726 # IFS 27727 # We need space, tab and new line, in precisely that order. Quoting is 27728 # there to prevent editors from complaining about space-tab. 27729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 27730 # splitting by setting IFS to empty value.) 27731 IFS=" "" $as_nl" 27732 27733 # Find who we are. Look in the path if we contain no directory separator. 27734 case $0 in 27735 *[\\/]* ) as_myself=$0 ;; 27736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27737 for as_dir in $PATH 27738 do 27739 IFS=$as_save_IFS 27740 test -z "$as_dir" && as_dir=. 27741 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27742 done 27743 IFS=$as_save_IFS 27744 27745 ;; 27746 esac 27747 # We did not find ourselves, most probably we were run as `sh COMMAND' 27748 # in which case we are not to be found in the path. 27749 if test "x$as_myself" = x; then 27750 as_myself=$0 27751 fi 27752 if test ! -f "$as_myself"; then 27753 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27754 { (exit 1); exit 1; } 27755 fi 27756 27757 # Work around bugs in pre-3.0 UWIN ksh. 27758 for as_var in ENV MAIL MAILPATH 27759 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27760 done 27761 PS1='$ ' 27762 PS2='> ' 27763 PS4='+ ' 27764 27765 # NLS nuisances. 27766 LC_ALL=C 27767 export LC_ALL 27768 LANGUAGE=C 27769 export LANGUAGE 27770 27771 # Required to use basename. 27772 if expr a : '\(a\)' >/dev/null 2>&1 && 27773 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27774 as_expr=expr 27775 else 27776 as_expr=false 27777 fi 27778 27779 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27780 as_basename=basename 27781 else 27782 as_basename=false 27783 fi 27784 27785 27786 # Name of the executable. 27787 as_me=`$as_basename -- "$0" || 27788 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27789 X"$0" : 'X\(//\)$' \| \ 27790 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27791 $as_echo X/"$0" | 27792 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27793 s//\1/ 27794 q 27795 } 27796 /^X\/\(\/\/\)$/{ 27797 s//\1/ 27798 q 27799 } 27800 /^X\/\(\/\).*/{ 27801 s//\1/ 27802 q 27803 } 27804 s/.*/./; q'` 27805 27806 # CDPATH. 27807 $as_unset CDPATH 27808 27809 27810 27811 as_lineno_1=$LINENO 27812 as_lineno_2=$LINENO 27813 test "x$as_lineno_1" != "x$as_lineno_2" && 27814 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 27815 27816 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27817 # uniformly replaced by the line number. The first 'sed' inserts a 27818 # line-number line after each line using $LINENO; the second 'sed' 27819 # does the real work. The second script uses 'N' to pair each 27820 # line-number line with the line containing $LINENO, and appends 27821 # trailing '-' during substitution so that $LINENO is not a special 27822 # case at line end. 27823 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27824 # scripts with optimization help from Paolo Bonzini. Blame Lee 27825 # E. McMahon (1931-1989) for sed's syntax. :-) 27826 sed -n ' 27827 p 27828 /[$]LINENO/= 27829 ' <$as_myself | 27830 sed ' 27831 s/[$]LINENO.*/&-/ 27832 t lineno 27833 b 27834 :lineno 27835 N 27836 :loop 27837 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 27838 t loop 27839 s/-\n.*// 27840 ' >$as_me.lineno && 27841 chmod +x "$as_me.lineno" || 27842 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 27843 { (exit 1); exit 1; }; } 27844 27845 # Don't try to exec as it changes $[0], causing all sort of problems 27846 # (the dirname of $[0] is not the place where we might find the 27847 # original and so on. Autoconf is especially sensitive to this). 27848 . "./$as_me.lineno" 27849 # Exit status is that of the last command. 27850 exit 27851 } 27852 27853 27854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27855 as_dirname=dirname 27856 else 27857 as_dirname=false 27858 fi 27859 27860 ECHO_C= ECHO_N= ECHO_T= 27861 case `echo -n x` in 27862 -n*) 27863 case `echo 'x\c'` in 27864 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27865 *) ECHO_C='\c';; 27866 esac;; 27867 *) 27868 ECHO_N='-n';; 27869 esac 27870 if expr a : '\(a\)' >/dev/null 2>&1 && 27871 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27872 as_expr=expr 27873 else 27874 as_expr=false 27875 fi 27876 27877 rm -f conf$$ conf$$.exe conf$$.file 27878 if test -d conf$$.dir; then 27879 rm -f conf$$.dir/conf$$.file 27880 else 27881 rm -f conf$$.dir 27882 mkdir conf$$.dir 2>/dev/null 27883 fi 27884 if (echo >conf$$.file) 2>/dev/null; then 27885 if ln -s conf$$.file conf$$ 2>/dev/null; then 27886 as_ln_s='ln -s' 27887 # ... but there are two gotchas: 27888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27890 # In both cases, we have to default to `cp -p'. 27891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27892 as_ln_s='cp -p' 27893 elif ln conf$$.file conf$$ 2>/dev/null; then 27894 as_ln_s=ln 27895 else 27896 as_ln_s='cp -p' 27897 fi 27898 else 27899 as_ln_s='cp -p' 27900 fi 27901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27902 rmdir conf$$.dir 2>/dev/null 27903 27904 if mkdir -p . 2>/dev/null; then 27905 as_mkdir_p=: 27906 else 27907 test -d ./-p && rmdir ./-p 27908 as_mkdir_p=false 27909 fi 27910 27911 if test -x / >/dev/null 2>&1; then 27912 as_test_x='test -x' 27913 else 27914 if ls -dL / >/dev/null 2>&1; then 27915 as_ls_L_option=L 27916 else 27917 as_ls_L_option= 27918 fi 27919 as_test_x=' 27920 eval sh -c '\'' 27921 if test -d "$1"; then 27922 test -d "$1/."; 27923 else 27924 case $1 in 27925 -*)set "./$1";; 27926 esac; 27927 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 27928 ???[sx]*):;;*)false;;esac;fi 27929 '\'' sh 27930 ' 27931 fi 27932 as_executable_p=$as_test_x 27933 27934 # Sed expression to map a string onto a valid CPP name. 27935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27936 27937 # Sed expression to map a string onto a valid variable name. 27938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27939 27940 27941 exec 6>&1 27942 27943 # Save the log message, to keep $[0] and so on meaningful, and to 27944 # report actual input values of CONFIG_FILES etc. instead of their 27945 # values after options handling. 27946 ac_log=" 27947 This file was extended by netbsd-iscsi $as_me 20111006, which was 27948 generated by GNU Autoconf 2.63. Invocation command line was 27949 27950 CONFIG_FILES = $CONFIG_FILES 27951 CONFIG_HEADERS = $CONFIG_HEADERS 27952 CONFIG_LINKS = $CONFIG_LINKS 27953 CONFIG_COMMANDS = $CONFIG_COMMANDS 27954 $ $0 $@ 27955 27956 on `(hostname || uname -n) 2>/dev/null | sed 1q` 27957 " 27958 27959 _ACEOF 27960 27961 case $ac_config_files in *" 27962 "*) set x $ac_config_files; shift; ac_config_files=$*;; 27963 esac 27964 27965 case $ac_config_headers in *" 27966 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27967 esac 27968 27969 27970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27971 # Files that config.status was made for. 27972 config_files="$ac_config_files" 27973 config_headers="$ac_config_headers" 27974 config_commands="$ac_config_commands" 27975 27976 _ACEOF 27977 27978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27979 ac_cs_usage="\ 27980 \`$as_me' instantiates files from templates according to the 27981 current configuration. 27982 27983 Usage: $0 [OPTION]... [FILE]... 27984 27985 -h, --help print this help, then exit 27986 -V, --version print version number and configuration settings, then exit 27987 -q, --quiet, --silent 27988 do not print progress messages 27989 -d, --debug don't remove temporary files 27990 --recheck update $as_me by reconfiguring in the same conditions 27991 --file=FILE[:TEMPLATE] 27992 instantiate the configuration file FILE 27993 --header=FILE[:TEMPLATE] 27994 instantiate the configuration header FILE 27995 27996 Configuration files: 27997 $config_files 27998 27999 Configuration headers: 28000 $config_headers 28001 28002 Configuration commands: 28003 $config_commands 28004 28005 Report bugs to <bug-autoconf (at] gnu.org>." 28006 28007 _ACEOF 28008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28009 ac_cs_version="\\ 28010 netbsd-iscsi config.status 20111006 28011 configured by $0, generated by GNU Autoconf 2.63, 28012 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 28013 28014 Copyright (C) 2008 Free Software Foundation, Inc. 28015 This config.status script is free software; the Free Software Foundation 28016 gives unlimited permission to copy, distribute and modify it." 28017 28018 ac_pwd='$ac_pwd' 28019 srcdir='$srcdir' 28020 INSTALL='$INSTALL' 28021 MKDIR_P='$MKDIR_P' 28022 AWK='$AWK' 28023 test -n "\$AWK" || AWK=awk 28024 _ACEOF 28025 28026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28027 # The default lists apply if the user does not specify any file. 28028 ac_need_defaults=: 28029 while test $# != 0 28030 do 28031 case $1 in 28032 --*=*) 28033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 28035 ac_shift=: 28036 ;; 28037 *) 28038 ac_option=$1 28039 ac_optarg=$2 28040 ac_shift=shift 28041 ;; 28042 esac 28043 28044 case $ac_option in 28045 # Handling of the options. 28046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28047 ac_cs_recheck=: ;; 28048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 28049 $as_echo "$ac_cs_version"; exit ;; 28050 --debug | --debu | --deb | --de | --d | -d ) 28051 debug=: ;; 28052 --file | --fil | --fi | --f ) 28053 $ac_shift 28054 case $ac_optarg in 28055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28056 esac 28057 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 28058 ac_need_defaults=false;; 28059 --header | --heade | --head | --hea ) 28060 $ac_shift 28061 case $ac_optarg in 28062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28063 esac 28064 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 28065 ac_need_defaults=false;; 28066 --he | --h) 28067 # Conflict between --help and --header 28068 { $as_echo "$as_me: error: ambiguous option: $1 28069 Try \`$0 --help' for more information." >&2 28070 { (exit 1); exit 1; }; };; 28071 --help | --hel | -h ) 28072 $as_echo "$ac_cs_usage"; exit ;; 28073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28074 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28075 ac_cs_silent=: ;; 28076 28077 # This is an error. 28078 -*) { $as_echo "$as_me: error: unrecognized option: $1 28079 Try \`$0 --help' for more information." >&2 28080 { (exit 1); exit 1; }; } ;; 28081 28082 *) ac_config_targets="$ac_config_targets $1" 28083 ac_need_defaults=false ;; 28084 28085 esac 28086 shift 28087 done 28088 28089 ac_configure_extra_args= 28090 28091 if $ac_cs_silent; then 28092 exec 6>/dev/null 28093 ac_configure_extra_args="$ac_configure_extra_args --silent" 28094 fi 28095 28096 _ACEOF 28097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28098 if \$ac_cs_recheck; then 28099 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28100 shift 28101 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 28102 CONFIG_SHELL='$SHELL' 28103 export CONFIG_SHELL 28104 exec "\$@" 28105 fi 28106 28107 _ACEOF 28108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28109 exec 5>>config.log 28110 { 28111 echo 28112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28113 ## Running $as_me. ## 28114 _ASBOX 28115 $as_echo "$ac_log" 28116 } >&5 28117 28118 _ACEOF 28119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28120 # 28121 # INIT-COMMANDS 28122 # 28123 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28124 28125 _ACEOF 28126 28127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28128 28129 # Handling of arguments. 28130 for ac_config_target in $ac_config_targets 28131 do 28132 case $ac_config_target in 28133 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 28134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28135 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28136 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 28137 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 28138 "src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;; 28139 28140 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 28141 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28142 { (exit 1); exit 1; }; };; 28143 esac 28144 done 28145 28146 28147 # If the user did not use the arguments to specify the items to instantiate, 28148 # then the envvar interface is used. Set only those that are not. 28149 # We use the long form for the default assignment because of an extremely 28150 # bizarre bug on SunOS 4.1.3. 28151 if $ac_need_defaults; then 28152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28155 fi 28156 28157 # Have a temporary directory for convenience. Make it in the build tree 28158 # simply because there is no reason against having it here, and in addition, 28159 # creating and moving files from /tmp can sometimes cause problems. 28160 # Hook for its removal unless debugging. 28161 # Note that there is a small window in which the directory will not be cleaned: 28162 # after its creation but before its name has been assigned to `$tmp'. 28163 $debug || 28164 { 28165 tmp= 28166 trap 'exit_status=$? 28167 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 28168 ' 0 28169 trap '{ (exit 1); exit 1; }' 1 2 13 15 28170 } 28171 # Create a (secure) tmp directory for tmp files. 28172 28173 { 28174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28175 test -n "$tmp" && test -d "$tmp" 28176 } || 28177 { 28178 tmp=./conf$$-$RANDOM 28179 (umask 077 && mkdir "$tmp") 28180 } || 28181 { 28182 $as_echo "$as_me: cannot create a temporary directory in ." >&2 28183 { (exit 1); exit 1; } 28184 } 28185 28186 # Set up the scripts for CONFIG_FILES section. 28187 # No need to generate them if there are no CONFIG_FILES. 28188 # This happens for instance with `./config.status config.h'. 28189 if test -n "$CONFIG_FILES"; then 28190 28191 28192 ac_cr=' ' 28194 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28196 ac_cs_awk_cr='\\r' 28197 else 28198 ac_cs_awk_cr=$ac_cr 28199 fi 28200 28201 echo 'BEGIN {' >"$tmp/subs1.awk" && 28202 _ACEOF 28203 28204 28205 { 28206 echo "cat >conf$$subs.awk <<_ACEOF" && 28207 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28208 echo "_ACEOF" 28209 } >conf$$subs.sh || 28210 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28211 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28212 { (exit 1); exit 1; }; } 28213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 28214 ac_delim='%!_!# ' 28215 for ac_last_try in false false false false false :; do 28216 . ./conf$$subs.sh || 28217 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28218 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28219 { (exit 1); exit 1; }; } 28220 28221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28222 if test $ac_delim_n = $ac_delim_num; then 28223 break 28224 elif $ac_last_try; then 28225 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28226 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28227 { (exit 1); exit 1; }; } 28228 else 28229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28230 fi 28231 done 28232 rm -f conf$$subs.sh 28233 28234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28235 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 28236 _ACEOF 28237 sed -n ' 28238 h 28239 s/^/S["/; s/!.*/"]=/ 28240 p 28241 g 28242 s/^[^!]*!// 28243 :repl 28244 t repl 28245 s/'"$ac_delim"'$// 28246 t delim 28247 :nl 28248 h 28249 s/\(.\{148\}\).*/\1/ 28250 t more1 28251 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28252 p 28253 n 28254 b repl 28255 :more1 28256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28257 p 28258 g 28259 s/.\{148\}// 28260 t nl 28261 :delim 28262 h 28263 s/\(.\{148\}\).*/\1/ 28264 t more2 28265 s/["\\]/\\&/g; s/^/"/; s/$/"/ 28266 p 28267 b 28268 :more2 28269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28270 p 28271 g 28272 s/.\{148\}// 28273 t delim 28274 ' <conf$$subs.awk | sed ' 28275 /^[^""]/{ 28276 N 28277 s/\n// 28278 } 28279 ' >>$CONFIG_STATUS || ac_write_fail=1 28280 rm -f conf$$subs.awk 28281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28282 _ACAWK 28283 cat >>"\$tmp/subs1.awk" <<_ACAWK && 28284 for (key in S) S_is_set[key] = 1 28285 FS = "" 28286 28287 } 28288 { 28289 line = $ 0 28290 nfields = split(line, field, "@") 28291 substed = 0 28292 len = length(field[1]) 28293 for (i = 2; i < nfields; i++) { 28294 key = field[i] 28295 keylen = length(key) 28296 if (S_is_set[key]) { 28297 value = S[key] 28298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28299 len += length(value) + length(field[++i]) 28300 substed = 1 28301 } else 28302 len += 1 + keylen 28303 } 28304 28305 print line 28306 } 28307 28308 _ACAWK 28309 _ACEOF 28310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28311 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28312 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28313 else 28314 cat 28315 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 28316 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 28317 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 28318 { (exit 1); exit 1; }; } 28319 _ACEOF 28320 28321 # VPATH may cause trouble with some makes, so we remove $(srcdir), 28322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28323 # trailing colons and then remove the whole line if VPATH becomes empty 28324 # (actually we leave an empty line to preserve line numbers). 28325 if test "x$srcdir" = x.; then 28326 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28327 s/:*\$(srcdir):*/:/ 28328 s/:*\${srcdir}:*/:/ 28329 s/:*@srcdir@:*/:/ 28330 s/^\([^=]*=[ ]*\):*/\1/ 28331 s/:*$// 28332 s/^[^=]*=[ ]*$// 28333 }' 28334 fi 28335 28336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28337 fi # test -n "$CONFIG_FILES" 28338 28339 # Set up the scripts for CONFIG_HEADERS section. 28340 # No need to generate them if there are no CONFIG_HEADERS. 28341 # This happens for instance with `./config.status Makefile'. 28342 if test -n "$CONFIG_HEADERS"; then 28343 cat >"$tmp/defines.awk" <<\_ACAWK || 28344 BEGIN { 28345 _ACEOF 28346 28347 # Transform confdefs.h into an awk script `defines.awk', embedded as 28348 # here-document in config.status, that substitutes the proper values into 28349 # config.h.in to produce config.h. 28350 28351 # Create a delimiter string that does not exist in confdefs.h, to ease 28352 # handling of long lines. 28353 ac_delim='%!_!# ' 28354 for ac_last_try in false false :; do 28355 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 28356 if test -z "$ac_t"; then 28357 break 28358 elif $ac_last_try; then 28359 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 28360 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 28361 { (exit 1); exit 1; }; } 28362 else 28363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28364 fi 28365 done 28366 28367 # For the awk script, D is an array of macro values keyed by name, 28368 # likewise P contains macro parameters if any. Preserve backslash 28369 # newline sequences. 28370 28371 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28372 sed -n ' 28373 s/.\{148\}/&'"$ac_delim"'/g 28374 t rset 28375 :rset 28376 s/^[ ]*#[ ]*define[ ][ ]*/ / 28377 t def 28378 d 28379 :def 28380 s/\\$// 28381 t bsnl 28382 s/["\\]/\\&/g 28383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28384 D["\1"]=" \3"/p 28385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28386 d 28387 :bsnl 28388 s/["\\]/\\&/g 28389 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28390 D["\1"]=" \3\\\\\\n"\\/p 28391 t cont 28392 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28393 t cont 28394 d 28395 :cont 28396 n 28397 s/.\{148\}/&'"$ac_delim"'/g 28398 t clear 28399 :clear 28400 s/\\$// 28401 t bsnlc 28402 s/["\\]/\\&/g; s/^/"/; s/$/"/p 28403 d 28404 :bsnlc 28405 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28406 b cont 28407 ' <confdefs.h | sed ' 28408 s/'"$ac_delim"'/"\\\ 28409 "/g' >>$CONFIG_STATUS || ac_write_fail=1 28410 28411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28412 for (key in D) D_is_set[key] = 1 28413 FS = "" 28414 } 28415 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28416 line = \$ 0 28417 split(line, arg, " ") 28418 if (arg[1] == "#") { 28419 defundef = arg[2] 28420 mac1 = arg[3] 28421 } else { 28422 defundef = substr(arg[1], 2) 28423 mac1 = arg[2] 28424 } 28425 split(mac1, mac2, "(") #) 28426 macro = mac2[1] 28427 prefix = substr(line, 1, index(line, defundef) - 1) 28428 if (D_is_set[macro]) { 28429 # Preserve the white space surrounding the "#". 28430 print prefix "define", macro P[macro] D[macro] 28431 next 28432 } else { 28433 # Replace #undef with comments. This is necessary, for example, 28434 # in the case of _POSIX_SOURCE, which is predefined and required 28435 # on some systems where configure will not decide to define it. 28436 if (defundef == "undef") { 28437 print "/*", prefix defundef, macro, "*/" 28438 next 28439 } 28440 } 28441 } 28442 { print } 28443 _ACAWK 28444 _ACEOF 28445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28446 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 28447 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 28448 { (exit 1); exit 1; }; } 28449 fi # test -n "$CONFIG_HEADERS" 28450 28451 28452 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28453 shift 28454 for ac_tag 28455 do 28456 case $ac_tag in 28457 :[FHLC]) ac_mode=$ac_tag; continue;; 28458 esac 28459 case $ac_mode$ac_tag in 28460 :[FHL]*:*);; 28461 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 28462 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 28463 { (exit 1); exit 1; }; };; 28464 :[FH]-) ac_tag=-:-;; 28465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28466 esac 28467 ac_save_IFS=$IFS 28468 IFS=: 28469 set x $ac_tag 28470 IFS=$ac_save_IFS 28471 shift 28472 ac_file=$1 28473 shift 28474 28475 case $ac_mode in 28476 :L) ac_source=$1;; 28477 :[FH]) 28478 ac_file_inputs= 28479 for ac_f 28480 do 28481 case $ac_f in 28482 -) ac_f="$tmp/stdin";; 28483 *) # Look for the file first in the build tree, then in the source tree 28484 # (if the path is not absolute). The absolute path cannot be DOS-style, 28485 # because $ac_f cannot contain `:'. 28486 test -f "$ac_f" || 28487 case $ac_f in 28488 [\\/$]*) false;; 28489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28490 esac || 28491 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 28492 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 28493 { (exit 1); exit 1; }; };; 28494 esac 28495 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28496 ac_file_inputs="$ac_file_inputs '$ac_f'" 28497 done 28498 28499 # Let's still pretend it is `configure' which instantiates (i.e., don't 28500 # use $as_me), people would be surprised to read: 28501 # /* config.h. Generated by config.status. */ 28502 configure_input='Generated from '` 28503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28504 `' by configure.' 28505 if test x"$ac_file" != x-; then 28506 configure_input="$ac_file. $configure_input" 28507 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 28508 $as_echo "$as_me: creating $ac_file" >&6;} 28509 fi 28510 # Neutralize special characters interpreted by sed in replacement strings. 28511 case $configure_input in #( 28512 *\&* | *\|* | *\\* ) 28513 ac_sed_conf_input=`$as_echo "$configure_input" | 28514 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28515 *) ac_sed_conf_input=$configure_input;; 28516 esac 28517 28518 case $ac_tag in 28519 *:-:* | *:-) cat >"$tmp/stdin" \ 28520 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28521 $as_echo "$as_me: error: could not create $ac_file" >&2;} 28522 { (exit 1); exit 1; }; } ;; 28523 esac 28524 ;; 28525 esac 28526 28527 ac_dir=`$as_dirname -- "$ac_file" || 28528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28529 X"$ac_file" : 'X\(//\)[^/]' \| \ 28530 X"$ac_file" : 'X\(//\)$' \| \ 28531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28532 $as_echo X"$ac_file" | 28533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28534 s//\1/ 28535 q 28536 } 28537 /^X\(\/\/\)[^/].*/{ 28538 s//\1/ 28539 q 28540 } 28541 /^X\(\/\/\)$/{ 28542 s//\1/ 28543 q 28544 } 28545 /^X\(\/\).*/{ 28546 s//\1/ 28547 q 28548 } 28549 s/.*/./; q'` 28550 { as_dir="$ac_dir" 28551 case $as_dir in #( 28552 -*) as_dir=./$as_dir;; 28553 esac 28554 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28555 as_dirs= 28556 while :; do 28557 case $as_dir in #( 28558 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28559 *) as_qdir=$as_dir;; 28560 esac 28561 as_dirs="'$as_qdir' $as_dirs" 28562 as_dir=`$as_dirname -- "$as_dir" || 28563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28564 X"$as_dir" : 'X\(//\)[^/]' \| \ 28565 X"$as_dir" : 'X\(//\)$' \| \ 28566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28567 $as_echo X"$as_dir" | 28568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28569 s//\1/ 28570 q 28571 } 28572 /^X\(\/\/\)[^/].*/{ 28573 s//\1/ 28574 q 28575 } 28576 /^X\(\/\/\)$/{ 28577 s//\1/ 28578 q 28579 } 28580 /^X\(\/\).*/{ 28581 s//\1/ 28582 q 28583 } 28584 s/.*/./; q'` 28585 test -d "$as_dir" && break 28586 done 28587 test -z "$as_dirs" || eval "mkdir $as_dirs" 28588 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28589 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 28590 { (exit 1); exit 1; }; }; } 28591 ac_builddir=. 28592 28593 case "$ac_dir" in 28594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28595 *) 28596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28597 # A ".." for each directory in $ac_dir_suffix. 28598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28599 case $ac_top_builddir_sub in 28600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28602 esac ;; 28603 esac 28604 ac_abs_top_builddir=$ac_pwd 28605 ac_abs_builddir=$ac_pwd$ac_dir_suffix 28606 # for backward compatibility: 28607 ac_top_builddir=$ac_top_build_prefix 28608 28609 case $srcdir in 28610 .) # We are building in place. 28611 ac_srcdir=. 28612 ac_top_srcdir=$ac_top_builddir_sub 28613 ac_abs_top_srcdir=$ac_pwd ;; 28614 [\\/]* | ?:[\\/]* ) # Absolute name. 28615 ac_srcdir=$srcdir$ac_dir_suffix; 28616 ac_top_srcdir=$srcdir 28617 ac_abs_top_srcdir=$srcdir ;; 28618 *) # Relative name. 28619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28620 ac_top_srcdir=$ac_top_build_prefix$srcdir 28621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28622 esac 28623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28624 28625 28626 case $ac_mode in 28627 :F) 28628 # 28629 # CONFIG_FILE 28630 # 28631 28632 case $INSTALL in 28633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28634 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28635 esac 28636 ac_MKDIR_P=$MKDIR_P 28637 case $MKDIR_P in 28638 [\\/$]* | ?:[\\/]* ) ;; 28639 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28640 esac 28641 _ACEOF 28642 28643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28644 # If the template does not know about datarootdir, expand it. 28645 # FIXME: This hack should be removed a few years after 2.60. 28646 ac_datarootdir_hack=; ac_datarootdir_seen= 28647 28648 ac_sed_dataroot=' 28649 /datarootdir/ { 28650 p 28651 q 28652 } 28653 /@datadir@/p 28654 /@docdir@/p 28655 /@infodir@/p 28656 /@localedir@/p 28657 /@mandir@/p 28658 ' 28659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28660 *datarootdir*) ac_datarootdir_seen=yes;; 28661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28662 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28664 _ACEOF 28665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28666 ac_datarootdir_hack=' 28667 s&@datadir@&$datadir&g 28668 s&@docdir@&$docdir&g 28669 s&@infodir@&$infodir&g 28670 s&@localedir@&$localedir&g 28671 s&@mandir@&$mandir&g 28672 s&\\\${datarootdir}&$datarootdir&g' ;; 28673 esac 28674 _ACEOF 28675 28676 # Neutralize VPATH when `$srcdir' = `.'. 28677 # Shell code in configure.ac might set extrasub. 28678 # FIXME: do we really want to maintain this feature? 28679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28680 ac_sed_extra="$ac_vpsub 28681 $extrasub 28682 _ACEOF 28683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28684 :t 28685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28686 s|@configure_input@|$ac_sed_conf_input|;t t 28687 s&@top_builddir@&$ac_top_builddir_sub&;t t 28688 s&@top_build_prefix@&$ac_top_build_prefix&;t t 28689 s&@srcdir@&$ac_srcdir&;t t 28690 s&@abs_srcdir@&$ac_abs_srcdir&;t t 28691 s&@top_srcdir@&$ac_top_srcdir&;t t 28692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28693 s&@builddir@&$ac_builddir&;t t 28694 s&@abs_builddir@&$ac_abs_builddir&;t t 28695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28696 s&@INSTALL@&$ac_INSTALL&;t t 28697 s&@MKDIR_P@&$ac_MKDIR_P&;t t 28698 $ac_datarootdir_hack 28699 " 28700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 28701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28702 $as_echo "$as_me: error: could not create $ac_file" >&2;} 28703 { (exit 1); exit 1; }; } 28704 28705 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28706 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 28707 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 28708 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28709 which seems to be undefined. Please make sure it is defined." >&5 28710 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28711 which seems to be undefined. Please make sure it is defined." >&2;} 28712 28713 rm -f "$tmp/stdin" 28714 case $ac_file in 28715 -) cat "$tmp/out" && rm -f "$tmp/out";; 28716 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 28717 esac \ 28718 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28719 $as_echo "$as_me: error: could not create $ac_file" >&2;} 28720 { (exit 1); exit 1; }; } 28721 ;; 28722 :H) 28723 # 28724 # CONFIG_HEADER 28725 # 28726 if test x"$ac_file" != x-; then 28727 { 28728 $as_echo "/* $configure_input */" \ 28729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 28730 } >"$tmp/config.h" \ 28731 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28732 $as_echo "$as_me: error: could not create $ac_file" >&2;} 28733 { (exit 1); exit 1; }; } 28734 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 28735 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28736 $as_echo "$as_me: $ac_file is unchanged" >&6;} 28737 else 28738 rm -f "$ac_file" 28739 mv "$tmp/config.h" "$ac_file" \ 28740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28741 $as_echo "$as_me: error: could not create $ac_file" >&2;} 28742 { (exit 1); exit 1; }; } 28743 fi 28744 else 28745 $as_echo "/* $configure_input */" \ 28746 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 28747 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 28748 $as_echo "$as_me: error: could not create -" >&2;} 28749 { (exit 1); exit 1; }; } 28750 fi 28751 # Compute "$ac_file"'s index in $config_headers. 28752 _am_arg="$ac_file" 28753 _am_stamp_count=1 28754 for _am_header in $config_headers :; do 28755 case $_am_header in 28756 $_am_arg | $_am_arg:* ) 28757 break ;; 28758 * ) 28759 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28760 esac 28761 done 28762 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28763 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28764 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28765 X"$_am_arg" : 'X\(//\)$' \| \ 28766 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28767 $as_echo X"$_am_arg" | 28768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28769 s//\1/ 28770 q 28771 } 28772 /^X\(\/\/\)[^/].*/{ 28773 s//\1/ 28774 q 28775 } 28776 /^X\(\/\/\)$/{ 28777 s//\1/ 28778 q 28779 } 28780 /^X\(\/\).*/{ 28781 s//\1/ 28782 q 28783 } 28784 s/.*/./; q'`/stamp-h$_am_stamp_count 28785 ;; 28786 28787 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 28788 $as_echo "$as_me: executing $ac_file commands" >&6;} 28789 ;; 28790 esac 28791 28792 28793 case $ac_file$ac_mode in 28794 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28795 # Strip MF so we end up with the name of the file. 28796 mf=`echo "$mf" | sed -e 's/:.*$//'` 28797 # Check whether this is an Automake generated Makefile or not. 28798 # We used to match only the files named `Makefile.in', but 28799 # some people rename them; so instead we look at the file content. 28800 # Grep'ing the first line is not enough: some people post-process 28801 # each Makefile.in and add a new line on top of each file to say so. 28802 # Grep'ing the whole file is not good either: AIX grep has a line 28803 # limit of 2048, but all sed's we know have understand at least 4000. 28804 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28805 dirpart=`$as_dirname -- "$mf" || 28806 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28807 X"$mf" : 'X\(//\)[^/]' \| \ 28808 X"$mf" : 'X\(//\)$' \| \ 28809 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28810 $as_echo X"$mf" | 28811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28812 s//\1/ 28813 q 28814 } 28815 /^X\(\/\/\)[^/].*/{ 28816 s//\1/ 28817 q 28818 } 28819 /^X\(\/\/\)$/{ 28820 s//\1/ 28821 q 28822 } 28823 /^X\(\/\).*/{ 28824 s//\1/ 28825 q 28826 } 28827 s/.*/./; q'` 28828 else 28829 continue 28830 fi 28831 # Extract the definition of DEPDIR, am__include, and am__quote 28832 # from the Makefile without running `make'. 28833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28834 test -z "$DEPDIR" && continue 28835 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28836 test -z "am__include" && continue 28837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28838 # When using ansi2knr, U may be empty or an underscore; expand it 28839 U=`sed -n 's/^U = //p' < "$mf"` 28840 # Find all dependency output files, they are included files with 28841 # $(DEPDIR) in their names. We invoke sed twice because it is the 28842 # simplest approach to changing $(DEPDIR) to its actual value in the 28843 # expansion. 28844 for file in `sed -n " 28845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28847 # Make sure the directory exists. 28848 test -f "$dirpart/$file" && continue 28849 fdir=`$as_dirname -- "$file" || 28850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28851 X"$file" : 'X\(//\)[^/]' \| \ 28852 X"$file" : 'X\(//\)$' \| \ 28853 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28854 $as_echo X"$file" | 28855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28856 s//\1/ 28857 q 28858 } 28859 /^X\(\/\/\)[^/].*/{ 28860 s//\1/ 28861 q 28862 } 28863 /^X\(\/\/\)$/{ 28864 s//\1/ 28865 q 28866 } 28867 /^X\(\/\).*/{ 28868 s//\1/ 28869 q 28870 } 28871 s/.*/./; q'` 28872 { as_dir=$dirpart/$fdir 28873 case $as_dir in #( 28874 -*) as_dir=./$as_dir;; 28875 esac 28876 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28877 as_dirs= 28878 while :; do 28879 case $as_dir in #( 28880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28881 *) as_qdir=$as_dir;; 28882 esac 28883 as_dirs="'$as_qdir' $as_dirs" 28884 as_dir=`$as_dirname -- "$as_dir" || 28885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28886 X"$as_dir" : 'X\(//\)[^/]' \| \ 28887 X"$as_dir" : 'X\(//\)$' \| \ 28888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28889 $as_echo X"$as_dir" | 28890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28891 s//\1/ 28892 q 28893 } 28894 /^X\(\/\/\)[^/].*/{ 28895 s//\1/ 28896 q 28897 } 28898 /^X\(\/\/\)$/{ 28899 s//\1/ 28900 q 28901 } 28902 /^X\(\/\).*/{ 28903 s//\1/ 28904 q 28905 } 28906 s/.*/./; q'` 28907 test -d "$as_dir" && break 28908 done 28909 test -z "$as_dirs" || eval "mkdir $as_dirs" 28910 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28911 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 28912 { (exit 1); exit 1; }; }; } 28913 # echo "creating $dirpart/$file" 28914 echo '# dummy' > "$dirpart/$file" 28915 done 28916 done 28917 ;; 28918 28919 esac 28920 done # for ac_tag 28921 28922 28923 { (exit 0); exit 0; } 28924 _ACEOF 28925 chmod +x $CONFIG_STATUS 28926 ac_clean_files=$ac_clean_files_save 28927 28928 test $ac_write_fail = 0 || 28929 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 28930 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 28931 { (exit 1); exit 1; }; } 28932 28933 28934 # configure is writing to config.log, and then calls config.status. 28935 # config.status does its own redirection, appending to config.log. 28936 # Unfortunately, on DOS this fails, as config.log is still kept open 28937 # by configure, so config.status won't be able to write to it; its 28938 # output is simply discarded. So we exec the FD to /dev/null, 28939 # effectively closing config.log, so it can be properly (re)opened and 28940 # appended to by config.status. When coming back to configure, we 28941 # need to make the FD available again. 28942 if test "$no_create" != yes; then 28943 ac_cs_success=: 28944 ac_config_status_args= 28945 test "$silent" = yes && 28946 ac_config_status_args="$ac_config_status_args --quiet" 28947 exec 5>/dev/null 28948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28949 exec 5>>config.log 28950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28951 # would make configure fail if this is the last instruction. 28952 $ac_cs_success || { (exit 1); exit 1; } 28953 fi 28954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28955 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28957 fi 28958 28959 ac_config_files="$ac_config_files src/initiator/Makefile" 28960 28961 cat >confcache <<\_ACEOF 28962 # This file is a shell script that caches the results of configure 28963 # tests run on this system so they can be shared between configure 28964 # scripts and configure runs, see configure's option --config-cache. 28965 # It is not useful on other systems. If it contains results you don't 28966 # want to keep, you may remove or edit it. 28967 # 28968 # config.status only pays attention to the cache file if you give it 28969 # the --recheck option to rerun configure. 28970 # 28971 # `ac_cv_env_foo' variables (set or unset) will be overridden when 28972 # loading this file, other *unset* `ac_cv_foo' will be assigned the 28973 # following values. 28974 28975 _ACEOF 28976 28977 # The following way of writing the cache mishandles newlines in values, 28978 # but we know of no workaround that is simple, portable, and efficient. 28979 # So, we kill variables containing newlines. 28980 # Ultrix sh set writes to stderr and can't be redirected directly, 28981 # and sets the high bit in the cache file unless we assign to the vars. 28982 ( 28983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28984 eval ac_val=\$$ac_var 28985 case $ac_val in #( 28986 *${as_nl}*) 28987 case $ac_var in #( 28988 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 28989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28990 esac 28991 case $ac_var in #( 28992 _ | IFS | as_nl) ;; #( 28993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28994 *) $as_unset $ac_var ;; 28995 esac ;; 28996 esac 28997 done 28998 28999 (set) 2>&1 | 29000 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29001 *${as_nl}ac_space=\ *) 29002 # `set' does not quote correctly, so add quotes (double-quote 29003 # substitution turns \\\\ into \\, and sed turns \\ into \). 29004 sed -n \ 29005 "s/'/'\\\\''/g; 29006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29007 ;; #( 29008 *) 29009 # `set' quotes correctly as required by POSIX, so do not add quotes. 29010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29011 ;; 29012 esac | 29013 sort 29014 ) | 29015 sed ' 29016 /^ac_cv_env_/b end 29017 t clear 29018 :clear 29019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29020 t end 29021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29022 :end' >>confcache 29023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29024 if test -w "$cache_file"; then 29025 test "x$cache_file" != "x/dev/null" && 29026 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 29027 $as_echo "$as_me: updating cache $cache_file" >&6;} 29028 cat confcache >$cache_file 29029 else 29030 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 29031 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29032 fi 29033 fi 29034 rm -f confcache 29035 29036 test "x$prefix" = xNONE && prefix=$ac_default_prefix 29037 # Let make expand exec_prefix. 29038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29039 29040 DEFS=-DHAVE_CONFIG_H 29041 29042 ac_libobjs= 29043 ac_ltlibobjs= 29044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29045 # 1. Remove the extension, and $U if already installed. 29046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29049 # will be set to the directory where LIBOBJS objects are built. 29050 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29051 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 29052 done 29053 LIBOBJS=$ac_libobjs 29054 29055 LTLIBOBJS=$ac_ltlibobjs 29056 29057 29058 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29059 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 29060 Usually this means the macro was only invoked conditionally." >&5 29061 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 29062 Usually this means the macro was only invoked conditionally." >&2;} 29063 { (exit 1); exit 1; }; } 29064 fi 29065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29066 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 29067 Usually this means the macro was only invoked conditionally." >&5 29068 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 29069 Usually this means the macro was only invoked conditionally." >&2;} 29070 { (exit 1); exit 1; }; } 29071 fi 29072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29073 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 29074 Usually this means the macro was only invoked conditionally." >&5 29075 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 29076 Usually this means the macro was only invoked conditionally." >&2;} 29077 { (exit 1); exit 1; }; } 29078 fi 29079 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 29080 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 29081 Usually this means the macro was only invoked conditionally." >&5 29082 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 29083 Usually this means the macro was only invoked conditionally." >&2;} 29084 { (exit 1); exit 1; }; } 29085 fi 29086 29087 : ${CONFIG_STATUS=./config.status} 29088 ac_write_fail=0 29089 ac_clean_files_save=$ac_clean_files 29090 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29091 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 29092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29093 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29094 #! $SHELL 29095 # Generated by $as_me. 29096 # Run this file to recreate the current configuration. 29097 # Compiler output produced by configure, useful for debugging 29098 # configure, is in config.log if it exists. 29099 29100 debug=false 29101 ac_cs_recheck=false 29102 ac_cs_silent=false 29103 SHELL=\${CONFIG_SHELL-$SHELL} 29104 _ACEOF 29105 29106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29107 ## --------------------- ## 29108 ## M4sh Initialization. ## 29109 ## --------------------- ## 29110 29111 # Be more Bourne compatible 29112 DUALCASE=1; export DUALCASE # for MKS sh 29113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 29114 emulate sh 29115 NULLCMD=: 29116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29117 # is contrary to our usage. Disable this feature. 29118 alias -g '${1+"$@"}'='"$@"' 29119 setopt NO_GLOB_SUBST 29120 else 29121 case `(set -o) 2>/dev/null` in 29122 *posix*) set -o posix ;; 29123 esac 29124 29125 fi 29126 29127 29128 29129 29130 # PATH needs CR 29131 # Avoid depending upon Character Ranges. 29132 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29135 as_cr_digits='0123456789' 29136 as_cr_alnum=$as_cr_Letters$as_cr_digits 29137 29138 as_nl=' 29139 ' 29140 export as_nl 29141 # Printing a long string crashes Solaris 7 /usr/bin/printf. 29142 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29143 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29145 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29146 as_echo='printf %s\n' 29147 as_echo_n='printf %s' 29148 else 29149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29151 as_echo_n='/usr/ucb/echo -n' 29152 else 29153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29154 as_echo_n_body='eval 29155 arg=$1; 29156 case $arg in 29157 *"$as_nl"*) 29158 expr "X$arg" : "X\\(.*\\)$as_nl"; 29159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29160 esac; 29161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29162 ' 29163 export as_echo_n_body 29164 as_echo_n='sh -c $as_echo_n_body as_echo' 29165 fi 29166 export as_echo_body 29167 as_echo='sh -c $as_echo_body as_echo' 29168 fi 29169 29170 # The user is always right. 29171 if test "${PATH_SEPARATOR+set}" != set; then 29172 PATH_SEPARATOR=: 29173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29175 PATH_SEPARATOR=';' 29176 } 29177 fi 29178 29179 # Support unset when possible. 29180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29181 as_unset=unset 29182 else 29183 as_unset=false 29184 fi 29185 29186 29187 # IFS 29188 # We need space, tab and new line, in precisely that order. Quoting is 29189 # there to prevent editors from complaining about space-tab. 29190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 29191 # splitting by setting IFS to empty value.) 29192 IFS=" "" $as_nl" 29193 29194 # Find who we are. Look in the path if we contain no directory separator. 29195 case $0 in 29196 *[\\/]* ) as_myself=$0 ;; 29197 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29198 for as_dir in $PATH 29199 do 29200 IFS=$as_save_IFS 29201 test -z "$as_dir" && as_dir=. 29202 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29203 done 29204 IFS=$as_save_IFS 29205 29206 ;; 29207 esac 29208 # We did not find ourselves, most probably we were run as `sh COMMAND' 29209 # in which case we are not to be found in the path. 29210 if test "x$as_myself" = x; then 29211 as_myself=$0 29212 fi 29213 if test ! -f "$as_myself"; then 29214 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29215 { (exit 1); exit 1; } 29216 fi 29217 29218 # Work around bugs in pre-3.0 UWIN ksh. 29219 for as_var in ENV MAIL MAILPATH 29220 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 29221 done 29222 PS1='$ ' 29223 PS2='> ' 29224 PS4='+ ' 29225 29226 # NLS nuisances. 29227 LC_ALL=C 29228 export LC_ALL 29229 LANGUAGE=C 29230 export LANGUAGE 29231 29232 # Required to use basename. 29233 if expr a : '\(a\)' >/dev/null 2>&1 && 29234 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29235 as_expr=expr 29236 else 29237 as_expr=false 29238 fi 29239 29240 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29241 as_basename=basename 29242 else 29243 as_basename=false 29244 fi 29245 29246 29247 # Name of the executable. 29248 as_me=`$as_basename -- "$0" || 29249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29250 X"$0" : 'X\(//\)$' \| \ 29251 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29252 $as_echo X/"$0" | 29253 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29254 s//\1/ 29255 q 29256 } 29257 /^X\/\(\/\/\)$/{ 29258 s//\1/ 29259 q 29260 } 29261 /^X\/\(\/\).*/{ 29262 s//\1/ 29263 q 29264 } 29265 s/.*/./; q'` 29266 29267 # CDPATH. 29268 $as_unset CDPATH 29269 29270 29271 29272 as_lineno_1=$LINENO 29273 as_lineno_2=$LINENO 29274 test "x$as_lineno_1" != "x$as_lineno_2" && 29275 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 29276 29277 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 29278 # uniformly replaced by the line number. The first 'sed' inserts a 29279 # line-number line after each line using $LINENO; the second 'sed' 29280 # does the real work. The second script uses 'N' to pair each 29281 # line-number line with the line containing $LINENO, and appends 29282 # trailing '-' during substitution so that $LINENO is not a special 29283 # case at line end. 29284 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 29285 # scripts with optimization help from Paolo Bonzini. Blame Lee 29286 # E. McMahon (1931-1989) for sed's syntax. :-) 29287 sed -n ' 29288 p 29289 /[$]LINENO/= 29290 ' <$as_myself | 29291 sed ' 29292 s/[$]LINENO.*/&-/ 29293 t lineno 29294 b 29295 :lineno 29296 N 29297 :loop 29298 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 29299 t loop 29300 s/-\n.*// 29301 ' >$as_me.lineno && 29302 chmod +x "$as_me.lineno" || 29303 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 29304 { (exit 1); exit 1; }; } 29305 29306 # Don't try to exec as it changes $[0], causing all sort of problems 29307 # (the dirname of $[0] is not the place where we might find the 29308 # original and so on. Autoconf is especially sensitive to this). 29309 . "./$as_me.lineno" 29310 # Exit status is that of the last command. 29311 exit 29312 } 29313 29314 29315 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29316 as_dirname=dirname 29317 else 29318 as_dirname=false 29319 fi 29320 29321 ECHO_C= ECHO_N= ECHO_T= 29322 case `echo -n x` in 29323 -n*) 29324 case `echo 'x\c'` in 29325 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29326 *) ECHO_C='\c';; 29327 esac;; 29328 *) 29329 ECHO_N='-n';; 29330 esac 29331 if expr a : '\(a\)' >/dev/null 2>&1 && 29332 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29333 as_expr=expr 29334 else 29335 as_expr=false 29336 fi 29337 29338 rm -f conf$$ conf$$.exe conf$$.file 29339 if test -d conf$$.dir; then 29340 rm -f conf$$.dir/conf$$.file 29341 else 29342 rm -f conf$$.dir 29343 mkdir conf$$.dir 2>/dev/null 29344 fi 29345 if (echo >conf$$.file) 2>/dev/null; then 29346 if ln -s conf$$.file conf$$ 2>/dev/null; then 29347 as_ln_s='ln -s' 29348 # ... but there are two gotchas: 29349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29351 # In both cases, we have to default to `cp -p'. 29352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29353 as_ln_s='cp -p' 29354 elif ln conf$$.file conf$$ 2>/dev/null; then 29355 as_ln_s=ln 29356 else 29357 as_ln_s='cp -p' 29358 fi 29359 else 29360 as_ln_s='cp -p' 29361 fi 29362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29363 rmdir conf$$.dir 2>/dev/null 29364 29365 if mkdir -p . 2>/dev/null; then 29366 as_mkdir_p=: 29367 else 29368 test -d ./-p && rmdir ./-p 29369 as_mkdir_p=false 29370 fi 29371 29372 if test -x / >/dev/null 2>&1; then 29373 as_test_x='test -x' 29374 else 29375 if ls -dL / >/dev/null 2>&1; then 29376 as_ls_L_option=L 29377 else 29378 as_ls_L_option= 29379 fi 29380 as_test_x=' 29381 eval sh -c '\'' 29382 if test -d "$1"; then 29383 test -d "$1/."; 29384 else 29385 case $1 in 29386 -*)set "./$1";; 29387 esac; 29388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 29389 ???[sx]*):;;*)false;;esac;fi 29390 '\'' sh 29391 ' 29392 fi 29393 as_executable_p=$as_test_x 29394 29395 # Sed expression to map a string onto a valid CPP name. 29396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29397 29398 # Sed expression to map a string onto a valid variable name. 29399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29400 29401 29402 exec 6>&1 29403 29404 # Save the log message, to keep $[0] and so on meaningful, and to 29405 # report actual input values of CONFIG_FILES etc. instead of their 29406 # values after options handling. 29407 ac_log=" 29408 This file was extended by netbsd-iscsi $as_me 20111006, which was 29409 generated by GNU Autoconf 2.63. Invocation command line was 29410 29411 CONFIG_FILES = $CONFIG_FILES 29412 CONFIG_HEADERS = $CONFIG_HEADERS 29413 CONFIG_LINKS = $CONFIG_LINKS 29414 CONFIG_COMMANDS = $CONFIG_COMMANDS 29415 $ $0 $@ 29416 29417 on `(hostname || uname -n) 2>/dev/null | sed 1q` 29418 " 29419 29420 _ACEOF 29421 29422 case $ac_config_files in *" 29423 "*) set x $ac_config_files; shift; ac_config_files=$*;; 29424 esac 29425 29426 case $ac_config_headers in *" 29427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29428 esac 29429 29430 29431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29432 # Files that config.status was made for. 29433 config_files="$ac_config_files" 29434 config_headers="$ac_config_headers" 29435 config_commands="$ac_config_commands" 29436 29437 _ACEOF 29438 29439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29440 ac_cs_usage="\ 29441 \`$as_me' instantiates files from templates according to the 29442 current configuration. 29443 29444 Usage: $0 [OPTION]... [FILE]... 29445 29446 -h, --help print this help, then exit 29447 -V, --version print version number and configuration settings, then exit 29448 -q, --quiet, --silent 29449 do not print progress messages 29450 -d, --debug don't remove temporary files 29451 --recheck update $as_me by reconfiguring in the same conditions 29452 --file=FILE[:TEMPLATE] 29453 instantiate the configuration file FILE 29454 --header=FILE[:TEMPLATE] 29455 instantiate the configuration header FILE 29456 29457 Configuration files: 29458 $config_files 29459 29460 Configuration headers: 29461 $config_headers 29462 29463 Configuration commands: 29464 $config_commands 29465 29466 Report bugs to <bug-autoconf (at] gnu.org>." 29467 29468 _ACEOF 29469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29470 ac_cs_version="\\ 29471 netbsd-iscsi config.status 20111006 29472 configured by $0, generated by GNU Autoconf 2.63, 29473 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 29474 29475 Copyright (C) 2008 Free Software Foundation, Inc. 29476 This config.status script is free software; the Free Software Foundation 29477 gives unlimited permission to copy, distribute and modify it." 29478 29479 ac_pwd='$ac_pwd' 29480 srcdir='$srcdir' 29481 INSTALL='$INSTALL' 29482 MKDIR_P='$MKDIR_P' 29483 AWK='$AWK' 29484 test -n "\$AWK" || AWK=awk 29485 _ACEOF 29486 29487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29488 # The default lists apply if the user does not specify any file. 29489 ac_need_defaults=: 29490 while test $# != 0 29491 do 29492 case $1 in 29493 --*=*) 29494 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29496 ac_shift=: 29497 ;; 29498 *) 29499 ac_option=$1 29500 ac_optarg=$2 29501 ac_shift=shift 29502 ;; 29503 esac 29504 29505 case $ac_option in 29506 # Handling of the options. 29507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29508 ac_cs_recheck=: ;; 29509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29510 $as_echo "$ac_cs_version"; exit ;; 29511 --debug | --debu | --deb | --de | --d | -d ) 29512 debug=: ;; 29513 --file | --fil | --fi | --f ) 29514 $ac_shift 29515 case $ac_optarg in 29516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29517 esac 29518 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 29519 ac_need_defaults=false;; 29520 --header | --heade | --head | --hea ) 29521 $ac_shift 29522 case $ac_optarg in 29523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29524 esac 29525 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 29526 ac_need_defaults=false;; 29527 --he | --h) 29528 # Conflict between --help and --header 29529 { $as_echo "$as_me: error: ambiguous option: $1 29530 Try \`$0 --help' for more information." >&2 29531 { (exit 1); exit 1; }; };; 29532 --help | --hel | -h ) 29533 $as_echo "$ac_cs_usage"; exit ;; 29534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29535 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29536 ac_cs_silent=: ;; 29537 29538 # This is an error. 29539 -*) { $as_echo "$as_me: error: unrecognized option: $1 29540 Try \`$0 --help' for more information." >&2 29541 { (exit 1); exit 1; }; } ;; 29542 29543 *) ac_config_targets="$ac_config_targets $1" 29544 ac_need_defaults=false ;; 29545 29546 esac 29547 shift 29548 done 29549 29550 ac_configure_extra_args= 29551 29552 if $ac_cs_silent; then 29553 exec 6>/dev/null 29554 ac_configure_extra_args="$ac_configure_extra_args --silent" 29555 fi 29556 29557 _ACEOF 29558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29559 if \$ac_cs_recheck; then 29560 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29561 shift 29562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 29563 CONFIG_SHELL='$SHELL' 29564 export CONFIG_SHELL 29565 exec "\$@" 29566 fi 29567 29568 _ACEOF 29569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29570 exec 5>>config.log 29571 { 29572 echo 29573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29574 ## Running $as_me. ## 29575 _ASBOX 29576 $as_echo "$ac_log" 29577 } >&5 29578 29579 _ACEOF 29580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29581 # 29582 # INIT-COMMANDS 29583 # 29584 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 29585 29586 _ACEOF 29587 29588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29589 29590 # Handling of arguments. 29591 for ac_config_target in $ac_config_targets 29592 do 29593 case $ac_config_target in 29594 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 29595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 29596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29597 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 29598 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 29599 "src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;; 29600 "src/initiator/Makefile") CONFIG_FILES="$CONFIG_FILES src/initiator/Makefile" ;; 29601 29602 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 29603 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 29604 { (exit 1); exit 1; }; };; 29605 esac 29606 done 29607 29608 29609 # If the user did not use the arguments to specify the items to instantiate, 29610 # then the envvar interface is used. Set only those that are not. 29611 # We use the long form for the default assignment because of an extremely 29612 # bizarre bug on SunOS 4.1.3. 29613 if $ac_need_defaults; then 29614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 29617 fi 29618 29619 # Have a temporary directory for convenience. Make it in the build tree 29620 # simply because there is no reason against having it here, and in addition, 29621 # creating and moving files from /tmp can sometimes cause problems. 29622 # Hook for its removal unless debugging. 29623 # Note that there is a small window in which the directory will not be cleaned: 29624 # after its creation but before its name has been assigned to `$tmp'. 29625 $debug || 29626 { 29627 tmp= 29628 trap 'exit_status=$? 29629 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 29630 ' 0 29631 trap '{ (exit 1); exit 1; }' 1 2 13 15 29632 } 29633 # Create a (secure) tmp directory for tmp files. 29634 29635 { 29636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29637 test -n "$tmp" && test -d "$tmp" 29638 } || 29639 { 29640 tmp=./conf$$-$RANDOM 29641 (umask 077 && mkdir "$tmp") 29642 } || 29643 { 29644 $as_echo "$as_me: cannot create a temporary directory in ." >&2 29645 { (exit 1); exit 1; } 29646 } 29647 29648 # Set up the scripts for CONFIG_FILES section. 29649 # No need to generate them if there are no CONFIG_FILES. 29650 # This happens for instance with `./config.status config.h'. 29651 if test -n "$CONFIG_FILES"; then 29652 29653 29654 ac_cr=' ' 29656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29658 ac_cs_awk_cr='\\r' 29659 else 29660 ac_cs_awk_cr=$ac_cr 29661 fi 29662 29663 echo 'BEGIN {' >"$tmp/subs1.awk" && 29664 _ACEOF 29665 29666 29667 { 29668 echo "cat >conf$$subs.awk <<_ACEOF" && 29669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29670 echo "_ACEOF" 29671 } >conf$$subs.sh || 29672 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 29673 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 29674 { (exit 1); exit 1; }; } 29675 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 29676 ac_delim='%!_!# ' 29677 for ac_last_try in false false false false false :; do 29678 . ./conf$$subs.sh || 29679 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 29680 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 29681 { (exit 1); exit 1; }; } 29682 29683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29684 if test $ac_delim_n = $ac_delim_num; then 29685 break 29686 elif $ac_last_try; then 29687 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 29688 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 29689 { (exit 1); exit 1; }; } 29690 else 29691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29692 fi 29693 done 29694 rm -f conf$$subs.sh 29695 29696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29697 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 29698 _ACEOF 29699 sed -n ' 29700 h 29701 s/^/S["/; s/!.*/"]=/ 29702 p 29703 g 29704 s/^[^!]*!// 29705 :repl 29706 t repl 29707 s/'"$ac_delim"'$// 29708 t delim 29709 :nl 29710 h 29711 s/\(.\{148\}\).*/\1/ 29712 t more1 29713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29714 p 29715 n 29716 b repl 29717 :more1 29718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29719 p 29720 g 29721 s/.\{148\}// 29722 t nl 29723 :delim 29724 h 29725 s/\(.\{148\}\).*/\1/ 29726 t more2 29727 s/["\\]/\\&/g; s/^/"/; s/$/"/ 29728 p 29729 b 29730 :more2 29731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29732 p 29733 g 29734 s/.\{148\}// 29735 t delim 29736 ' <conf$$subs.awk | sed ' 29737 /^[^""]/{ 29738 N 29739 s/\n// 29740 } 29741 ' >>$CONFIG_STATUS || ac_write_fail=1 29742 rm -f conf$$subs.awk 29743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29744 _ACAWK 29745 cat >>"\$tmp/subs1.awk" <<_ACAWK && 29746 for (key in S) S_is_set[key] = 1 29747 FS = "" 29748 29749 } 29750 { 29751 line = $ 0 29752 nfields = split(line, field, "@") 29753 substed = 0 29754 len = length(field[1]) 29755 for (i = 2; i < nfields; i++) { 29756 key = field[i] 29757 keylen = length(key) 29758 if (S_is_set[key]) { 29759 value = S[key] 29760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29761 len += length(value) + length(field[++i]) 29762 substed = 1 29763 } else 29764 len += 1 + keylen 29765 } 29766 29767 print line 29768 } 29769 29770 _ACAWK 29771 _ACEOF 29772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29775 else 29776 cat 29777 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 29778 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 29779 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 29780 { (exit 1); exit 1; }; } 29781 _ACEOF 29782 29783 # VPATH may cause trouble with some makes, so we remove $(srcdir), 29784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 29785 # trailing colons and then remove the whole line if VPATH becomes empty 29786 # (actually we leave an empty line to preserve line numbers). 29787 if test "x$srcdir" = x.; then 29788 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 29789 s/:*\$(srcdir):*/:/ 29790 s/:*\${srcdir}:*/:/ 29791 s/:*@srcdir@:*/:/ 29792 s/^\([^=]*=[ ]*\):*/\1/ 29793 s/:*$// 29794 s/^[^=]*=[ ]*$// 29795 }' 29796 fi 29797 29798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29799 fi # test -n "$CONFIG_FILES" 29800 29801 # Set up the scripts for CONFIG_HEADERS section. 29802 # No need to generate them if there are no CONFIG_HEADERS. 29803 # This happens for instance with `./config.status Makefile'. 29804 if test -n "$CONFIG_HEADERS"; then 29805 cat >"$tmp/defines.awk" <<\_ACAWK || 29806 BEGIN { 29807 _ACEOF 29808 29809 # Transform confdefs.h into an awk script `defines.awk', embedded as 29810 # here-document in config.status, that substitutes the proper values into 29811 # config.h.in to produce config.h. 29812 29813 # Create a delimiter string that does not exist in confdefs.h, to ease 29814 # handling of long lines. 29815 ac_delim='%!_!# ' 29816 for ac_last_try in false false :; do 29817 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 29818 if test -z "$ac_t"; then 29819 break 29820 elif $ac_last_try; then 29821 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 29822 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 29823 { (exit 1); exit 1; }; } 29824 else 29825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29826 fi 29827 done 29828 29829 # For the awk script, D is an array of macro values keyed by name, 29830 # likewise P contains macro parameters if any. Preserve backslash 29831 # newline sequences. 29832 29833 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 29834 sed -n ' 29835 s/.\{148\}/&'"$ac_delim"'/g 29836 t rset 29837 :rset 29838 s/^[ ]*#[ ]*define[ ][ ]*/ / 29839 t def 29840 d 29841 :def 29842 s/\\$// 29843 t bsnl 29844 s/["\\]/\\&/g 29845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29846 D["\1"]=" \3"/p 29847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 29848 d 29849 :bsnl 29850 s/["\\]/\\&/g 29851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29852 D["\1"]=" \3\\\\\\n"\\/p 29853 t cont 29854 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 29855 t cont 29856 d 29857 :cont 29858 n 29859 s/.\{148\}/&'"$ac_delim"'/g 29860 t clear 29861 :clear 29862 s/\\$// 29863 t bsnlc 29864 s/["\\]/\\&/g; s/^/"/; s/$/"/p 29865 d 29866 :bsnlc 29867 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 29868 b cont 29869 ' <confdefs.h | sed ' 29870 s/'"$ac_delim"'/"\\\ 29871 "/g' >>$CONFIG_STATUS || ac_write_fail=1 29872 29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29874 for (key in D) D_is_set[key] = 1 29875 FS = "" 29876 } 29877 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 29878 line = \$ 0 29879 split(line, arg, " ") 29880 if (arg[1] == "#") { 29881 defundef = arg[2] 29882 mac1 = arg[3] 29883 } else { 29884 defundef = substr(arg[1], 2) 29885 mac1 = arg[2] 29886 } 29887 split(mac1, mac2, "(") #) 29888 macro = mac2[1] 29889 prefix = substr(line, 1, index(line, defundef) - 1) 29890 if (D_is_set[macro]) { 29891 # Preserve the white space surrounding the "#". 29892 print prefix "define", macro P[macro] D[macro] 29893 next 29894 } else { 29895 # Replace #undef with comments. This is necessary, for example, 29896 # in the case of _POSIX_SOURCE, which is predefined and required 29897 # on some systems where configure will not decide to define it. 29898 if (defundef == "undef") { 29899 print "/*", prefix defundef, macro, "*/" 29900 next 29901 } 29902 } 29903 } 29904 { print } 29905 _ACAWK 29906 _ACEOF 29907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29908 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 29909 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 29910 { (exit 1); exit 1; }; } 29911 fi # test -n "$CONFIG_HEADERS" 29912 29913 29914 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 29915 shift 29916 for ac_tag 29917 do 29918 case $ac_tag in 29919 :[FHLC]) ac_mode=$ac_tag; continue;; 29920 esac 29921 case $ac_mode$ac_tag in 29922 :[FHL]*:*);; 29923 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 29924 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 29925 { (exit 1); exit 1; }; };; 29926 :[FH]-) ac_tag=-:-;; 29927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 29928 esac 29929 ac_save_IFS=$IFS 29930 IFS=: 29931 set x $ac_tag 29932 IFS=$ac_save_IFS 29933 shift 29934 ac_file=$1 29935 shift 29936 29937 case $ac_mode in 29938 :L) ac_source=$1;; 29939 :[FH]) 29940 ac_file_inputs= 29941 for ac_f 29942 do 29943 case $ac_f in 29944 -) ac_f="$tmp/stdin";; 29945 *) # Look for the file first in the build tree, then in the source tree 29946 # (if the path is not absolute). The absolute path cannot be DOS-style, 29947 # because $ac_f cannot contain `:'. 29948 test -f "$ac_f" || 29949 case $ac_f in 29950 [\\/$]*) false;; 29951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 29952 esac || 29953 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 29954 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 29955 { (exit 1); exit 1; }; };; 29956 esac 29957 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 29958 ac_file_inputs="$ac_file_inputs '$ac_f'" 29959 done 29960 29961 # Let's still pretend it is `configure' which instantiates (i.e., don't 29962 # use $as_me), people would be surprised to read: 29963 # /* config.h. Generated by config.status. */ 29964 configure_input='Generated from '` 29965 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 29966 `' by configure.' 29967 if test x"$ac_file" != x-; then 29968 configure_input="$ac_file. $configure_input" 29969 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 29970 $as_echo "$as_me: creating $ac_file" >&6;} 29971 fi 29972 # Neutralize special characters interpreted by sed in replacement strings. 29973 case $configure_input in #( 29974 *\&* | *\|* | *\\* ) 29975 ac_sed_conf_input=`$as_echo "$configure_input" | 29976 sed 's/[\\\\&|]/\\\\&/g'`;; #( 29977 *) ac_sed_conf_input=$configure_input;; 29978 esac 29979 29980 case $ac_tag in 29981 *:-:* | *:-) cat >"$tmp/stdin" \ 29982 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 29983 $as_echo "$as_me: error: could not create $ac_file" >&2;} 29984 { (exit 1); exit 1; }; } ;; 29985 esac 29986 ;; 29987 esac 29988 29989 ac_dir=`$as_dirname -- "$ac_file" || 29990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29991 X"$ac_file" : 'X\(//\)[^/]' \| \ 29992 X"$ac_file" : 'X\(//\)$' \| \ 29993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 29994 $as_echo X"$ac_file" | 29995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29996 s//\1/ 29997 q 29998 } 29999 /^X\(\/\/\)[^/].*/{ 30000 s//\1/ 30001 q 30002 } 30003 /^X\(\/\/\)$/{ 30004 s//\1/ 30005 q 30006 } 30007 /^X\(\/\).*/{ 30008 s//\1/ 30009 q 30010 } 30011 s/.*/./; q'` 30012 { as_dir="$ac_dir" 30013 case $as_dir in #( 30014 -*) as_dir=./$as_dir;; 30015 esac 30016 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 30017 as_dirs= 30018 while :; do 30019 case $as_dir in #( 30020 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30021 *) as_qdir=$as_dir;; 30022 esac 30023 as_dirs="'$as_qdir' $as_dirs" 30024 as_dir=`$as_dirname -- "$as_dir" || 30025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30026 X"$as_dir" : 'X\(//\)[^/]' \| \ 30027 X"$as_dir" : 'X\(//\)$' \| \ 30028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30029 $as_echo X"$as_dir" | 30030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30031 s//\1/ 30032 q 30033 } 30034 /^X\(\/\/\)[^/].*/{ 30035 s//\1/ 30036 q 30037 } 30038 /^X\(\/\/\)$/{ 30039 s//\1/ 30040 q 30041 } 30042 /^X\(\/\).*/{ 30043 s//\1/ 30044 q 30045 } 30046 s/.*/./; q'` 30047 test -d "$as_dir" && break 30048 done 30049 test -z "$as_dirs" || eval "mkdir $as_dirs" 30050 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 30051 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 30052 { (exit 1); exit 1; }; }; } 30053 ac_builddir=. 30054 30055 case "$ac_dir" in 30056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30057 *) 30058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30059 # A ".." for each directory in $ac_dir_suffix. 30060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30061 case $ac_top_builddir_sub in 30062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30064 esac ;; 30065 esac 30066 ac_abs_top_builddir=$ac_pwd 30067 ac_abs_builddir=$ac_pwd$ac_dir_suffix 30068 # for backward compatibility: 30069 ac_top_builddir=$ac_top_build_prefix 30070 30071 case $srcdir in 30072 .) # We are building in place. 30073 ac_srcdir=. 30074 ac_top_srcdir=$ac_top_builddir_sub 30075 ac_abs_top_srcdir=$ac_pwd ;; 30076 [\\/]* | ?:[\\/]* ) # Absolute name. 30077 ac_srcdir=$srcdir$ac_dir_suffix; 30078 ac_top_srcdir=$srcdir 30079 ac_abs_top_srcdir=$srcdir ;; 30080 *) # Relative name. 30081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30082 ac_top_srcdir=$ac_top_build_prefix$srcdir 30083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30084 esac 30085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30086 30087 30088 case $ac_mode in 30089 :F) 30090 # 30091 # CONFIG_FILE 30092 # 30093 30094 case $INSTALL in 30095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30097 esac 30098 ac_MKDIR_P=$MKDIR_P 30099 case $MKDIR_P in 30100 [\\/$]* | ?:[\\/]* ) ;; 30101 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30102 esac 30103 _ACEOF 30104 30105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30106 # If the template does not know about datarootdir, expand it. 30107 # FIXME: This hack should be removed a few years after 2.60. 30108 ac_datarootdir_hack=; ac_datarootdir_seen= 30109 30110 ac_sed_dataroot=' 30111 /datarootdir/ { 30112 p 30113 q 30114 } 30115 /@datadir@/p 30116 /@docdir@/p 30117 /@infodir@/p 30118 /@localedir@/p 30119 /@mandir@/p 30120 ' 30121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30122 *datarootdir*) ac_datarootdir_seen=yes;; 30123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30124 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30126 _ACEOF 30127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30128 ac_datarootdir_hack=' 30129 s&@datadir@&$datadir&g 30130 s&@docdir@&$docdir&g 30131 s&@infodir@&$infodir&g 30132 s&@localedir@&$localedir&g 30133 s&@mandir@&$mandir&g 30134 s&\\\${datarootdir}&$datarootdir&g' ;; 30135 esac 30136 _ACEOF 30137 30138 # Neutralize VPATH when `$srcdir' = `.'. 30139 # Shell code in configure.ac might set extrasub. 30140 # FIXME: do we really want to maintain this feature? 30141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30142 ac_sed_extra="$ac_vpsub 30143 $extrasub 30144 _ACEOF 30145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30146 :t 30147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30148 s|@configure_input@|$ac_sed_conf_input|;t t 30149 s&@top_builddir@&$ac_top_builddir_sub&;t t 30150 s&@top_build_prefix@&$ac_top_build_prefix&;t t 30151 s&@srcdir@&$ac_srcdir&;t t 30152 s&@abs_srcdir@&$ac_abs_srcdir&;t t 30153 s&@top_srcdir@&$ac_top_srcdir&;t t 30154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30155 s&@builddir@&$ac_builddir&;t t 30156 s&@abs_builddir@&$ac_abs_builddir&;t t 30157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30158 s&@INSTALL@&$ac_INSTALL&;t t 30159 s&@MKDIR_P@&$ac_MKDIR_P&;t t 30160 $ac_datarootdir_hack 30161 " 30162 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 30163 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 30164 $as_echo "$as_me: error: could not create $ac_file" >&2;} 30165 { (exit 1); exit 1; }; } 30166 30167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 30169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 30170 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30171 which seems to be undefined. Please make sure it is defined." >&5 30172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30173 which seems to be undefined. Please make sure it is defined." >&2;} 30174 30175 rm -f "$tmp/stdin" 30176 case $ac_file in 30177 -) cat "$tmp/out" && rm -f "$tmp/out";; 30178 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 30179 esac \ 30180 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 30181 $as_echo "$as_me: error: could not create $ac_file" >&2;} 30182 { (exit 1); exit 1; }; } 30183 ;; 30184 :H) 30185 # 30186 # CONFIG_HEADER 30187 # 30188 if test x"$ac_file" != x-; then 30189 { 30190 $as_echo "/* $configure_input */" \ 30191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 30192 } >"$tmp/config.h" \ 30193 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 30194 $as_echo "$as_me: error: could not create $ac_file" >&2;} 30195 { (exit 1); exit 1; }; } 30196 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 30197 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 30198 $as_echo "$as_me: $ac_file is unchanged" >&6;} 30199 else 30200 rm -f "$ac_file" 30201 mv "$tmp/config.h" "$ac_file" \ 30202 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 30203 $as_echo "$as_me: error: could not create $ac_file" >&2;} 30204 { (exit 1); exit 1; }; } 30205 fi 30206 else 30207 $as_echo "/* $configure_input */" \ 30208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 30209 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 30210 $as_echo "$as_me: error: could not create -" >&2;} 30211 { (exit 1); exit 1; }; } 30212 fi 30213 # Compute "$ac_file"'s index in $config_headers. 30214 _am_arg="$ac_file" 30215 _am_stamp_count=1 30216 for _am_header in $config_headers :; do 30217 case $_am_header in 30218 $_am_arg | $_am_arg:* ) 30219 break ;; 30220 * ) 30221 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30222 esac 30223 done 30224 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 30225 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30226 X"$_am_arg" : 'X\(//\)[^/]' \| \ 30227 X"$_am_arg" : 'X\(//\)$' \| \ 30228 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 30229 $as_echo X"$_am_arg" | 30230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30231 s//\1/ 30232 q 30233 } 30234 /^X\(\/\/\)[^/].*/{ 30235 s//\1/ 30236 q 30237 } 30238 /^X\(\/\/\)$/{ 30239 s//\1/ 30240 q 30241 } 30242 /^X\(\/\).*/{ 30243 s//\1/ 30244 q 30245 } 30246 s/.*/./; q'`/stamp-h$_am_stamp_count 30247 ;; 30248 30249 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 30250 $as_echo "$as_me: executing $ac_file commands" >&6;} 30251 ;; 30252 esac 30253 30254 30255 case $ac_file$ac_mode in 30256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 30257 # Strip MF so we end up with the name of the file. 30258 mf=`echo "$mf" | sed -e 's/:.*$//'` 30259 # Check whether this is an Automake generated Makefile or not. 30260 # We used to match only the files named `Makefile.in', but 30261 # some people rename them; so instead we look at the file content. 30262 # Grep'ing the first line is not enough: some people post-process 30263 # each Makefile.in and add a new line on top of each file to say so. 30264 # Grep'ing the whole file is not good either: AIX grep has a line 30265 # limit of 2048, but all sed's we know have understand at least 4000. 30266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 30267 dirpart=`$as_dirname -- "$mf" || 30268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30269 X"$mf" : 'X\(//\)[^/]' \| \ 30270 X"$mf" : 'X\(//\)$' \| \ 30271 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 30272 $as_echo X"$mf" | 30273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30274 s//\1/ 30275 q 30276 } 30277 /^X\(\/\/\)[^/].*/{ 30278 s//\1/ 30279 q 30280 } 30281 /^X\(\/\/\)$/{ 30282 s//\1/ 30283 q 30284 } 30285 /^X\(\/\).*/{ 30286 s//\1/ 30287 q 30288 } 30289 s/.*/./; q'` 30290 else 30291 continue 30292 fi 30293 # Extract the definition of DEPDIR, am__include, and am__quote 30294 # from the Makefile without running `make'. 30295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 30296 test -z "$DEPDIR" && continue 30297 am__include=`sed -n 's/^am__include = //p' < "$mf"` 30298 test -z "am__include" && continue 30299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 30300 # When using ansi2knr, U may be empty or an underscore; expand it 30301 U=`sed -n 's/^U = //p' < "$mf"` 30302 # Find all dependency output files, they are included files with 30303 # $(DEPDIR) in their names. We invoke sed twice because it is the 30304 # simplest approach to changing $(DEPDIR) to its actual value in the 30305 # expansion. 30306 for file in `sed -n " 30307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 30308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 30309 # Make sure the directory exists. 30310 test -f "$dirpart/$file" && continue 30311 fdir=`$as_dirname -- "$file" || 30312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30313 X"$file" : 'X\(//\)[^/]' \| \ 30314 X"$file" : 'X\(//\)$' \| \ 30315 X"$file" : 'X\(/\)' \| . 2>/dev/null || 30316 $as_echo X"$file" | 30317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30318 s//\1/ 30319 q 30320 } 30321 /^X\(\/\/\)[^/].*/{ 30322 s//\1/ 30323 q 30324 } 30325 /^X\(\/\/\)$/{ 30326 s//\1/ 30327 q 30328 } 30329 /^X\(\/\).*/{ 30330 s//\1/ 30331 q 30332 } 30333 s/.*/./; q'` 30334 { as_dir=$dirpart/$fdir 30335 case $as_dir in #( 30336 -*) as_dir=./$as_dir;; 30337 esac 30338 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 30339 as_dirs= 30340 while :; do 30341 case $as_dir in #( 30342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30343 *) as_qdir=$as_dir;; 30344 esac 30345 as_dirs="'$as_qdir' $as_dirs" 30346 as_dir=`$as_dirname -- "$as_dir" || 30347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30348 X"$as_dir" : 'X\(//\)[^/]' \| \ 30349 X"$as_dir" : 'X\(//\)$' \| \ 30350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30351 $as_echo X"$as_dir" | 30352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30353 s//\1/ 30354 q 30355 } 30356 /^X\(\/\/\)[^/].*/{ 30357 s//\1/ 30358 q 30359 } 30360 /^X\(\/\/\)$/{ 30361 s//\1/ 30362 q 30363 } 30364 /^X\(\/\).*/{ 30365 s//\1/ 30366 q 30367 } 30368 s/.*/./; q'` 30369 test -d "$as_dir" && break 30370 done 30371 test -z "$as_dirs" || eval "mkdir $as_dirs" 30372 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 30373 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 30374 { (exit 1); exit 1; }; }; } 30375 # echo "creating $dirpart/$file" 30376 echo '# dummy' > "$dirpart/$file" 30377 done 30378 done 30379 ;; 30380 30381 esac 30382 done # for ac_tag 30383 30384 30385 { (exit 0); exit 0; } 30386 _ACEOF 30387 chmod +x $CONFIG_STATUS 30388 ac_clean_files=$ac_clean_files_save 30389 30390 test $ac_write_fail = 0 || 30391 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 30392 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 30393 { (exit 1); exit 1; }; } 30394 30395 30396 # configure is writing to config.log, and then calls config.status. 30397 # config.status does its own redirection, appending to config.log. 30398 # Unfortunately, on DOS this fails, as config.log is still kept open 30399 # by configure, so config.status won't be able to write to it; its 30400 # output is simply discarded. So we exec the FD to /dev/null, 30401 # effectively closing config.log, so it can be properly (re)opened and 30402 # appended to by config.status. When coming back to configure, we 30403 # need to make the FD available again. 30404 if test "$no_create" != yes; then 30405 ac_cs_success=: 30406 ac_config_status_args= 30407 test "$silent" = yes && 30408 ac_config_status_args="$ac_config_status_args --quiet" 30409 exec 5>/dev/null 30410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30411 exec 5>>config.log 30412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30413 # would make configure fail if this is the last instruction. 30414 $ac_cs_success || { (exit 1); exit 1; } 30415 fi 30416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30417 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30419 fi 30420 30421