configure revision 1.29
1#! /bin/sh 2# From configure.ac Revision: 1.29 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.63 for netpgp 20100413. 5# 6# Report bugs to <Alistair Crooks <agc@netbsd.org> c0596823>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in 27 *posix*) set -o posix ;; 28esac 29 30fi 31 32 33 34 35# PATH needs CR 36# Avoid depending upon Character Ranges. 37as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS 40as_cr_digits='0123456789' 41as_cr_alnum=$as_cr_Letters$as_cr_digits 42 43as_nl=' 44' 45export as_nl 46# Printing a long string crashes Solaris 7 /usr/bin/printf. 47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84# Support unset when possible. 85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 86 as_unset=unset 87else 88 as_unset=false 89fi 90 91 92# IFS 93# We need space, tab and new line, in precisely that order. Quoting is 94# there to prevent editors from complaining about space-tab. 95# (If _AS_PATH_WALK were called with IFS unset, it would disable word 96# splitting by setting IFS to empty value.) 97IFS=" "" $as_nl" 98 99# Find who we are. Look in the path if we contain no directory separator. 100case $0 in 101 *[\\/]* ) as_myself=$0 ;; 102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 103for as_dir in $PATH 104do 105 IFS=$as_save_IFS 106 test -z "$as_dir" && as_dir=. 107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 108done 109IFS=$as_save_IFS 110 111 ;; 112esac 113# We did not find ourselves, most probably we were run as `sh COMMAND' 114# in which case we are not to be found in the path. 115if test "x$as_myself" = x; then 116 as_myself=$0 117fi 118if test ! -f "$as_myself"; then 119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 120 { (exit 1); exit 1; } 121fi 122 123# Work around bugs in pre-3.0 UWIN ksh. 124for as_var in ENV MAIL MAILPATH 125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 126done 127PS1='$ ' 128PS2='> ' 129PS4='+ ' 130 131# NLS nuisances. 132LC_ALL=C 133export LC_ALL 134LANGUAGE=C 135export LANGUAGE 136 137# Required to use basename. 138if expr a : '\(a\)' >/dev/null 2>&1 && 139 test "X`expr 00001 : '.*\(...\)'`" = X001; then 140 as_expr=expr 141else 142 as_expr=false 143fi 144 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 146 as_basename=basename 147else 148 as_basename=false 149fi 150 151 152# Name of the executable. 153as_me=`$as_basename -- "$0" || 154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 155 X"$0" : 'X\(//\)$' \| \ 156 X"$0" : 'X\(/\)' \| . 2>/dev/null || 157$as_echo X/"$0" | 158 sed '/^.*\/\([^/][^/]*\)\/*$/{ 159 s//\1/ 160 q 161 } 162 /^X\/\(\/\/\)$/{ 163 s//\1/ 164 q 165 } 166 /^X\/\(\/\).*/{ 167 s//\1/ 168 q 169 } 170 s/.*/./; q'` 171 172# CDPATH. 173$as_unset CDPATH 174 175 176if test "x$CONFIG_SHELL" = x; then 177 if (eval ":") 2>/dev/null; then 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 183 if test $as_have_required = yes && (eval ": 184(as_func_return () { 185 (exit \$1) 186} 187as_func_success () { 188 as_func_return 0 189} 190as_func_failure () { 191 as_func_return 1 192} 193as_func_ret_success () { 194 return 0 195} 196as_func_ret_failure () { 197 return 1 198} 199 200exitcode=0 201if as_func_success; then 202 : 203else 204 exitcode=1 205 echo as_func_success failed. 206fi 207 208if as_func_failure; then 209 exitcode=1 210 echo as_func_failure succeeded. 211fi 212 213if as_func_ret_success; then 214 : 215else 216 exitcode=1 217 echo as_func_ret_success failed. 218fi 219 220if as_func_ret_failure; then 221 exitcode=1 222 echo as_func_ret_failure succeeded. 223fi 224 225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 226 : 227else 228 exitcode=1 229 echo positional parameters were not saved. 230fi 231 232test \$exitcode = 0) || { (exit 1); exit 1; } 233 234( 235 as_lineno_1=\$LINENO 236 as_lineno_2=\$LINENO 237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 239") 2> /dev/null; then 240 : 241else 242 as_candidate_shells= 243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 245do 246 IFS=$as_save_IFS 247 test -z "$as_dir" && as_dir=. 248 case $as_dir in 249 /*) 250 for as_base in sh bash ksh sh5; do 251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 252 done;; 253 esac 254done 255IFS=$as_save_IFS 256 257 258 for as_shell in $as_candidate_shells $SHELL; do 259 # Try only shells that exist, to save several forks. 260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 261 { ("$as_shell") 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278_ASEOF 279}; then 280 CONFIG_SHELL=$as_shell 281 as_have_required=yes 282 if { "$as_shell" 2> /dev/null <<\_ASEOF 283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 284 emulate sh 285 NULLCMD=: 286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 287 # is contrary to our usage. Disable this feature. 288 alias -g '${1+"$@"}'='"$@"' 289 setopt NO_GLOB_SUBST 290else 291 case `(set -o) 2>/dev/null` in 292 *posix*) set -o posix ;; 293esac 294 295fi 296 297 298: 299(as_func_return () { 300 (exit $1) 301} 302as_func_success () { 303 as_func_return 0 304} 305as_func_failure () { 306 as_func_return 1 307} 308as_func_ret_success () { 309 return 0 310} 311as_func_ret_failure () { 312 return 1 313} 314 315exitcode=0 316if as_func_success; then 317 : 318else 319 exitcode=1 320 echo as_func_success failed. 321fi 322 323if as_func_failure; then 324 exitcode=1 325 echo as_func_failure succeeded. 326fi 327 328if as_func_ret_success; then 329 : 330else 331 exitcode=1 332 echo as_func_ret_success failed. 333fi 334 335if as_func_ret_failure; then 336 exitcode=1 337 echo as_func_ret_failure succeeded. 338fi 339 340if ( set x; as_func_ret_success y && test x = "$1" ); then 341 : 342else 343 exitcode=1 344 echo positional parameters were not saved. 345fi 346 347test $exitcode = 0) || { (exit 1); exit 1; } 348 349( 350 as_lineno_1=$LINENO 351 as_lineno_2=$LINENO 352 test "x$as_lineno_1" != "x$as_lineno_2" && 353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 354 355_ASEOF 356}; then 357 break 358fi 359 360fi 361 362 done 363 364 if test "x$CONFIG_SHELL" != x; then 365 for as_var in BASH_ENV ENV 366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 367 done 368 export CONFIG_SHELL 369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 370fi 371 372 373 if test $as_have_required = no; then 374 echo This script requires a shell more modern than all the 375 echo shells that I found on your system. Please install a 376 echo modern shell, or manually run the script under such a 377 echo shell if you do have one. 378 { (exit 1); exit 1; } 379fi 380 381 382fi 383 384fi 385 386 387 388(eval "as_func_return () { 389 (exit \$1) 390} 391as_func_success () { 392 as_func_return 0 393} 394as_func_failure () { 395 as_func_return 1 396} 397as_func_ret_success () { 398 return 0 399} 400as_func_ret_failure () { 401 return 1 402} 403 404exitcode=0 405if as_func_success; then 406 : 407else 408 exitcode=1 409 echo as_func_success failed. 410fi 411 412if as_func_failure; then 413 exitcode=1 414 echo as_func_failure succeeded. 415fi 416 417if as_func_ret_success; then 418 : 419else 420 exitcode=1 421 echo as_func_ret_success failed. 422fi 423 424if as_func_ret_failure; then 425 exitcode=1 426 echo as_func_ret_failure succeeded. 427fi 428 429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 430 : 431else 432 exitcode=1 433 echo positional parameters were not saved. 434fi 435 436test \$exitcode = 0") || { 437 echo No shell found that supports shell functions. 438 echo Please tell bug-autoconf@gnu.org about your system, 439 echo including any error possibly output before this message. 440 echo This can help us improve future autoconf versions. 441 echo Configuration will now proceed without shell functions. 442} 443 444 445 446 as_lineno_1=$LINENO 447 as_lineno_2=$LINENO 448 test "x$as_lineno_1" != "x$as_lineno_2" && 449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 450 451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 452 # uniformly replaced by the line number. The first 'sed' inserts a 453 # line-number line after each line using $LINENO; the second 'sed' 454 # does the real work. The second script uses 'N' to pair each 455 # line-number line with the line containing $LINENO, and appends 456 # trailing '-' during substitution so that $LINENO is not a special 457 # case at line end. 458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 459 # scripts with optimization help from Paolo Bonzini. Blame Lee 460 # E. McMahon (1931-1989) for sed's syntax. :-) 461 sed -n ' 462 p 463 /[$]LINENO/= 464 ' <$as_myself | 465 sed ' 466 s/[$]LINENO.*/&-/ 467 t lineno 468 b 469 :lineno 470 N 471 :loop 472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 473 t loop 474 s/-\n.*// 475 ' >$as_me.lineno && 476 chmod +x "$as_me.lineno" || 477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 478 { (exit 1); exit 1; }; } 479 480 # Don't try to exec as it changes $[0], causing all sort of problems 481 # (the dirname of $[0] is not the place where we might find the 482 # original and so on. Autoconf is especially sensitive to this). 483 . "./$as_me.lineno" 484 # Exit status is that of the last command. 485 exit 486} 487 488 489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 490 as_dirname=dirname 491else 492 as_dirname=false 493fi 494 495ECHO_C= ECHO_N= ECHO_T= 496case `echo -n x` in 497-n*) 498 case `echo 'x\c'` in 499 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 500 *) ECHO_C='\c';; 501 esac;; 502*) 503 ECHO_N='-n';; 504esac 505if expr a : '\(a\)' >/dev/null 2>&1 && 506 test "X`expr 00001 : '.*\(...\)'`" = X001; then 507 as_expr=expr 508else 509 as_expr=false 510fi 511 512rm -f conf$$ conf$$.exe conf$$.file 513if test -d conf$$.dir; then 514 rm -f conf$$.dir/conf$$.file 515else 516 rm -f conf$$.dir 517 mkdir conf$$.dir 2>/dev/null 518fi 519if (echo >conf$$.file) 2>/dev/null; then 520 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 as_ln_s='ln -s' 522 # ... but there are two gotchas: 523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # In both cases, we have to default to `cp -p'. 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 as_ln_s='cp -p' 528 elif ln conf$$.file conf$$ 2>/dev/null; then 529 as_ln_s=ln 530 else 531 as_ln_s='cp -p' 532 fi 533else 534 as_ln_s='cp -p' 535fi 536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rmdir conf$$.dir 2>/dev/null 538 539if mkdir -p . 2>/dev/null; then 540 as_mkdir_p=: 541else 542 test -d ./-p && rmdir ./-p 543 as_mkdir_p=false 544fi 545 546if test -x / >/dev/null 2>&1; then 547 as_test_x='test -x' 548else 549 if ls -dL / >/dev/null 2>&1; then 550 as_ls_L_option=L 551 else 552 as_ls_L_option= 553 fi 554 as_test_x=' 555 eval sh -c '\'' 556 if test -d "$1"; then 557 test -d "$1/."; 558 else 559 case $1 in 560 -*)set "./$1";; 561 esac; 562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 563 ???[sx]*):;;*)false;;esac;fi 564 '\'' sh 565 ' 566fi 567as_executable_p=$as_test_x 568 569# Sed expression to map a string onto a valid CPP name. 570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 571 572# Sed expression to map a string onto a valid variable name. 573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 574 575 576 577 578# Check that we are running under the correct shell. 579SHELL=${CONFIG_SHELL-/bin/sh} 580 581case X$ECHO in 582X*--fallback-echo) 583 # Remove one level of quotation (which was required for Make). 584 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 585 ;; 586esac 587 588echo=${ECHO-echo} 589if test "X$1" = X--no-reexec; then 590 # Discard the --no-reexec flag, and continue. 591 shift 592elif test "X$1" = X--fallback-echo; then 593 # Avoid inline document here, it may be left over 594 : 595elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 596 # Yippee, $echo works! 597 : 598else 599 # Restart under the correct shell. 600 exec $SHELL "$0" --no-reexec ${1+"$@"} 601fi 602 603if test "X$1" = X--fallback-echo; then 604 # used as fallback echo 605 shift 606 cat <<EOF 607$* 608EOF 609 exit 0 610fi 611 612# The HP-UX ksh and POSIX shell print the target directory to stdout 613# if CDPATH is set. 614(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 615 616if test -z "$ECHO"; then 617if test "X${echo_test_string+set}" != Xset; then 618# find a string as large as possible, as long as the shell can cope with it 619 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 620 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 621 if (echo_test_string=`eval $cmd`) 2>/dev/null && 622 echo_test_string=`eval $cmd` && 623 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 624 then 625 break 626 fi 627 done 628fi 629 630if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 631 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 : 634else 635 # The Solaris, AIX, and Digital Unix default echo programs unquote 636 # backslashes. This makes it impossible to quote backslashes using 637 # echo "$something" | sed 's/\\/\\\\/g' 638 # 639 # So, first we look for a working echo in the user's PATH. 640 641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 642 for dir in $PATH /usr/ucb; do 643 IFS="$lt_save_ifs" 644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 647 test "X$echo_testing_string" = "X$echo_test_string"; then 648 echo="$dir/echo" 649 break 650 fi 651 done 652 IFS="$lt_save_ifs" 653 654 if test "X$echo" = Xecho; then 655 # We didn't find a better echo, so look for alternatives. 656 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 657 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 658 test "X$echo_testing_string" = "X$echo_test_string"; then 659 # This shell has a builtin print -r that does the trick. 660 echo='print -r' 661 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 662 test "X$CONFIG_SHELL" != X/bin/ksh; then 663 # If we have ksh, try running configure again with it. 664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 665 export ORIGINAL_CONFIG_SHELL 666 CONFIG_SHELL=/bin/ksh 667 export CONFIG_SHELL 668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 669 else 670 # Try using printf. 671 echo='printf %s\n' 672 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 673 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 674 test "X$echo_testing_string" = "X$echo_test_string"; then 675 # Cool, printf works 676 : 677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 678 test "X$echo_testing_string" = 'X\t' && 679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 680 test "X$echo_testing_string" = "X$echo_test_string"; then 681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 682 export CONFIG_SHELL 683 SHELL="$CONFIG_SHELL" 684 export SHELL 685 echo="$CONFIG_SHELL $0 --fallback-echo" 686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 687 test "X$echo_testing_string" = 'X\t' && 688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 689 test "X$echo_testing_string" = "X$echo_test_string"; then 690 echo="$CONFIG_SHELL $0 --fallback-echo" 691 else 692 # maybe with a smaller string... 693 prev=: 694 695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 696 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 697 then 698 break 699 fi 700 prev="$cmd" 701 done 702 703 if test "$prev" != 'sed 50q "$0"'; then 704 echo_test_string=`eval $prev` 705 export echo_test_string 706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 707 else 708 # Oops. We lost completely, so just stick with echo. 709 echo=echo 710 fi 711 fi 712 fi 713 fi 714fi 715fi 716 717# Copy echo and quote the copy suitably for passing to libtool from 718# the Makefile, instead of quoting the original, which is used later. 719ECHO=$echo 720if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 721 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 722fi 723 724 725 726 727tagnames=${tagnames+${tagnames},}CXX 728 729tagnames=${tagnames+${tagnames},}F77 730 731exec 7<&0 </dev/null 6>&1 732 733# Name of the host. 734# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 735# so uname gets run too. 736ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 737 738# 739# Initializations. 740# 741ac_default_prefix=/usr/local 742ac_clean_files= 743ac_config_libobj_dir=. 744LIBOBJS= 745cross_compiling=no 746subdirs= 747MFLAGS= 748MAKEFLAGS= 749SHELL=${CONFIG_SHELL-/bin/sh} 750 751# Identity of this package. 752PACKAGE_NAME='netpgp' 753PACKAGE_TARNAME='netpgp' 754PACKAGE_VERSION='20100413' 755PACKAGE_STRING='netpgp 20100413' 756PACKAGE_BUGREPORT='Alistair Crooks <agc@netbsd.org> c0596823' 757 758ac_unique_file="src/netpgp/netpgp.c" 759# Factoring default headers for most tests. 760ac_includes_default="\ 761#include <stdio.h> 762#ifdef HAVE_SYS_TYPES_H 763# include <sys/types.h> 764#endif 765#ifdef HAVE_SYS_STAT_H 766# include <sys/stat.h> 767#endif 768#ifdef STDC_HEADERS 769# include <stdlib.h> 770# include <stddef.h> 771#else 772# ifdef HAVE_STDLIB_H 773# include <stdlib.h> 774# endif 775#endif 776#ifdef HAVE_STRING_H 777# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 778# include <memory.h> 779# endif 780# include <string.h> 781#endif 782#ifdef HAVE_STRINGS_H 783# include <strings.h> 784#endif 785#ifdef HAVE_INTTYPES_H 786# include <inttypes.h> 787#endif 788#ifdef HAVE_STDINT_H 789# include <stdint.h> 790#endif 791#ifdef HAVE_UNISTD_H 792# include <unistd.h> 793#endif" 794 795ac_subst_vars='LTLIBOBJS 796LIBOBJS 797AUTOM4TE 798WARNCFLAGS 799LIBTOOL 800ac_ct_F77 801FFLAGS 802F77 803CXXCPP 804am__fastdepCXX_FALSE 805am__fastdepCXX_TRUE 806CXXDEPMODE 807ac_ct_CXX 808CXXFLAGS 809CXX 810CPP 811RANLIB 812AR 813ECHO 814LN_S 815EGREP 816GREP 817SED 818am__fastdepCC_FALSE 819am__fastdepCC_TRUE 820CCDEPMODE 821AMDEPBACKSLASH 822AMDEP_FALSE 823AMDEP_TRUE 824am__quote 825am__include 826DEPDIR 827OBJEXT 828EXEEXT 829ac_ct_CC 830CPPFLAGS 831LDFLAGS 832CFLAGS 833CC 834CANONICAL_HOST 835host_os 836host_vendor 837host_cpu 838host 839build_os 840build_vendor 841build_cpu 842build 843MAINT 844MAINTAINER_MODE_FALSE 845MAINTAINER_MODE_TRUE 846am__untar 847am__tar 848AMTAR 849am__leading_dot 850SET_MAKE 851AWK 852mkdir_p 853MKDIR_P 854INSTALL_STRIP_PROGRAM 855STRIP 856install_sh 857MAKEINFO 858AUTOHEADER 859AUTOMAKE 860AUTOCONF 861ACLOCAL 862VERSION 863PACKAGE 864CYGPATH_W 865am__isrc 866INSTALL_DATA 867INSTALL_SCRIPT 868INSTALL_PROGRAM 869target_alias 870host_alias 871build_alias 872LIBS 873ECHO_T 874ECHO_N 875ECHO_C 876DEFS 877mandir 878localedir 879libdir 880psdir 881pdfdir 882dvidir 883htmldir 884infodir 885docdir 886oldincludedir 887includedir 888localstatedir 889sharedstatedir 890sysconfdir 891datadir 892datarootdir 893libexecdir 894sbindir 895bindir 896program_transform_name 897prefix 898exec_prefix 899PACKAGE_BUGREPORT 900PACKAGE_STRING 901PACKAGE_VERSION 902PACKAGE_TARNAME 903PACKAGE_NAME 904PATH_SEPARATOR 905SHELL' 906ac_subst_files='' 907ac_user_opts=' 908enable_option_checking 909enable_maintainer_mode 910enable_dependency_tracking 911enable_shared 912enable_static 913enable_fast_install 914with_gnu_ld 915enable_libtool_lock 916with_pic 917with_tags 918' 919 ac_precious_vars='build_alias 920host_alias 921target_alias 922CC 923CFLAGS 924LDFLAGS 925LIBS 926CPPFLAGS 927CPP 928CXX 929CXXFLAGS 930CCC 931CXXCPP 932F77 933FFLAGS' 934 935 936# Initialize some variables set by options. 937ac_init_help= 938ac_init_version=false 939ac_unrecognized_opts= 940ac_unrecognized_sep= 941# The variables have the same names as the options, with 942# dashes changed to underlines. 943cache_file=/dev/null 944exec_prefix=NONE 945no_create= 946no_recursion= 947prefix=NONE 948program_prefix=NONE 949program_suffix=NONE 950program_transform_name=s,x,x, 951silent= 952site= 953srcdir= 954verbose= 955x_includes=NONE 956x_libraries=NONE 957 958# Installation directory options. 959# These are left unexpanded so users can "make install exec_prefix=/foo" 960# and all the variables that are supposed to be based on exec_prefix 961# by default will actually change. 962# Use braces instead of parens because sh, perl, etc. also accept them. 963# (The list follows the same order as the GNU Coding Standards.) 964bindir='${exec_prefix}/bin' 965sbindir='${exec_prefix}/sbin' 966libexecdir='${exec_prefix}/libexec' 967datarootdir='${prefix}/share' 968datadir='${datarootdir}' 969sysconfdir='${prefix}/etc' 970sharedstatedir='${prefix}/com' 971localstatedir='${prefix}/var' 972includedir='${prefix}/include' 973oldincludedir='/usr/include' 974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 975infodir='${datarootdir}/info' 976htmldir='${docdir}' 977dvidir='${docdir}' 978pdfdir='${docdir}' 979psdir='${docdir}' 980libdir='${exec_prefix}/lib' 981localedir='${datarootdir}/locale' 982mandir='${datarootdir}/man' 983 984ac_prev= 985ac_dashdash= 986for ac_option 987do 988 # If the previous option needs an argument, assign it. 989 if test -n "$ac_prev"; then 990 eval $ac_prev=\$ac_option 991 ac_prev= 992 continue 993 fi 994 995 case $ac_option in 996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1043 { (exit 1); exit 1; }; } 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=no ;; 1054 1055 -docdir | --docdir | --docdi | --doc | --do) 1056 ac_prev=docdir ;; 1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1058 docdir=$ac_optarg ;; 1059 1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1061 ac_prev=dvidir ;; 1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1063 dvidir=$ac_optarg ;; 1064 1065 -enable-* | --enable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1226 ac_prev=sbindir ;; 1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1228 | --sbi=* | --sb=*) 1229 sbindir=$ac_optarg ;; 1230 1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1233 | --sharedst | --shareds | --shared | --share | --shar \ 1234 | --sha | --sh) 1235 ac_prev=sharedstatedir ;; 1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1239 | --sha=* | --sh=*) 1240 sharedstatedir=$ac_optarg ;; 1241 1242 -site | --site | --sit) 1243 ac_prev=site ;; 1244 -site=* | --site=* | --sit=*) 1245 site=$ac_optarg ;; 1246 1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1248 ac_prev=srcdir ;; 1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1250 srcdir=$ac_optarg ;; 1251 1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1253 | --syscon | --sysco | --sysc | --sys | --sy) 1254 ac_prev=sysconfdir ;; 1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1257 sysconfdir=$ac_optarg ;; 1258 1259 -target | --target | --targe | --targ | --tar | --ta | --t) 1260 ac_prev=target_alias ;; 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1262 target_alias=$ac_optarg ;; 1263 1264 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1265 verbose=yes ;; 1266 1267 -version | --version | --versio | --versi | --vers | -V) 1268 ac_init_version=: ;; 1269 1270 -with-* | --with-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1275 { (exit 1); exit 1; }; } 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280"with_$ac_useropt" 1281"*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1292 { (exit 1); exit 1; }; } 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=no ;; 1303 1304 --x) 1305 # Obsolete; use --with-x. 1306 with_x=yes ;; 1307 1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1309 | --x-incl | --x-inc | --x-in | --x-i) 1310 ac_prev=x_includes ;; 1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1313 x_includes=$ac_optarg ;; 1314 1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1317 ac_prev=x_libraries ;; 1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1320 x_libraries=$ac_optarg ;; 1321 1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1323Try \`$0 --help' for more information." >&2 1324 { (exit 1); exit 1; }; } 1325 ;; 1326 1327 *=*) 1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1332 { (exit 1); exit 1; }; } 1333 eval $ac_envvar=\$ac_optarg 1334 export $ac_envvar ;; 1335 1336 *) 1337 # FIXME: should be removed in autoconf 3.0. 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1342 ;; 1343 1344 esac 1345done 1346 1347if test -n "$ac_prev"; then 1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1350 { (exit 1); exit 1; }; } 1351fi 1352 1353if test -n "$ac_unrecognized_opts"; then 1354 case $enable_option_checking in 1355 no) ;; 1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1357 { (exit 1); exit 1; }; } ;; 1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360fi 1361 1362# Check all directory arguments for consistency. 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir 1367do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1381 { (exit 1); exit 1; }; } 1382done 1383 1384# There might be people who depend on the old broken behavior: `$host' 1385# used to hold the argument of --host etc. 1386# FIXME: To remove some day. 1387build=$build_alias 1388host=$host_alias 1389target=$target_alias 1390 1391# FIXME: To remove some day. 1392if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1396 If a cross compiler is detected then cross compile mode will be used." >&2 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400fi 1401 1402ac_tool_prefix= 1403test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405test "$silent" = yes && exec 6>/dev/null 1406 1407 1408ac_pwd=`pwd` && test -n "$ac_pwd" && 1409ac_ls_di=`ls -di .` && 1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1412 { (exit 1); exit 1; }; } 1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1415 { (exit 1); exit 1; }; } 1416 1417 1418# Find the source files, if location was not specified. 1419if test -z "$srcdir"; then 1420 ac_srcdir_defaulted=yes 1421 # Try the directory containing this script, then the parent directory. 1422 ac_confdir=`$as_dirname -- "$as_myself" || 1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1424 X"$as_myself" : 'X\(//\)[^/]' \| \ 1425 X"$as_myself" : 'X\(//\)$' \| \ 1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1427$as_echo X"$as_myself" | 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)[^/].*/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\).*/{ 1441 s//\1/ 1442 q 1443 } 1444 s/.*/./; q'` 1445 srcdir=$ac_confdir 1446 if test ! -r "$srcdir/$ac_unique_file"; then 1447 srcdir=.. 1448 fi 1449else 1450 ac_srcdir_defaulted=no 1451fi 1452if test ! -r "$srcdir/$ac_unique_file"; then 1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1455 { (exit 1); exit 1; }; } 1456fi 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1458ac_abs_confdir=`( 1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1460 { (exit 1); exit 1; }; } 1461 pwd)` 1462# When building in place, set srcdir=. 1463if test "$ac_abs_confdir" = "$ac_pwd"; then 1464 srcdir=. 1465fi 1466# Remove unnecessary trailing slashes from srcdir. 1467# Double slashes in file names in object file debugging info 1468# mess up M-x gdb in Emacs. 1469case $srcdir in 1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1471esac 1472for ac_var in $ac_precious_vars; do 1473 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_env_${ac_var}_value=\$${ac_var} 1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1477done 1478 1479# 1480# Report the --help message. 1481# 1482if test "$ac_init_help" = "long"; then 1483 # Omit some internal or obsolete options to make the list less imposing. 1484 # This message is too long to be a string in the A/UX 3.1 sh. 1485 cat <<_ACEOF 1486\`configure' configures netpgp 20100413 to adapt to many kinds of systems. 1487 1488Usage: $0 [OPTION]... [VAR=VALUE]... 1489 1490To assign environment variables (e.g., CC, CFLAGS...), specify them as 1491VAR=VALUE. See below for descriptions of some of the useful variables. 1492 1493Defaults for the options are specified in brackets. 1494 1495Configuration: 1496 -h, --help display this help and exit 1497 --help=short display options specific to this package 1498 --help=recursive display the short help of all the included packages 1499 -V, --version display version information and exit 1500 -q, --quiet, --silent do not print \`checking...' messages 1501 --cache-file=FILE cache test results in FILE [disabled] 1502 -C, --config-cache alias for \`--cache-file=config.cache' 1503 -n, --no-create do not create output files 1504 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1505 1506Installation directories: 1507 --prefix=PREFIX install architecture-independent files in PREFIX 1508 [$ac_default_prefix] 1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1510 [PREFIX] 1511 1512By default, \`make install' will install all the files in 1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1514an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1515for instance \`--prefix=\$HOME'. 1516 1517For better control, use the options below. 1518 1519Fine tuning of the installation directories: 1520 --bindir=DIR user executables [EPREFIX/bin] 1521 --sbindir=DIR system admin executables [EPREFIX/sbin] 1522 --libexecdir=DIR program executables [EPREFIX/libexec] 1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1526 --libdir=DIR object code libraries [EPREFIX/lib] 1527 --includedir=DIR C header files [PREFIX/include] 1528 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1531 --infodir=DIR info documentation [DATAROOTDIR/info] 1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1533 --mandir=DIR man documentation [DATAROOTDIR/man] 1534 --docdir=DIR documentation root [DATAROOTDIR/doc/netpgp] 1535 --htmldir=DIR html documentation [DOCDIR] 1536 --dvidir=DIR dvi documentation [DOCDIR] 1537 --pdfdir=DIR pdf documentation [DOCDIR] 1538 --psdir=DIR ps documentation [DOCDIR] 1539_ACEOF 1540 1541 cat <<\_ACEOF 1542 1543Program names: 1544 --program-prefix=PREFIX prepend PREFIX to installed program names 1545 --program-suffix=SUFFIX append SUFFIX to installed program names 1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1547 1548System types: 1549 --build=BUILD configure for building on BUILD [guessed] 1550 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1551_ACEOF 1552fi 1553 1554if test -n "$ac_init_help"; then 1555 case $ac_init_help in 1556 short | recursive ) echo "Configuration of netpgp 20100413:";; 1557 esac 1558 cat <<\_ACEOF 1559 1560Optional Features: 1561 --disable-option-checking ignore unrecognized --enable/--with options 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1564 --enable-maintainer-mode enable make rules and dependencies not useful 1565 (and sometimes confusing) to the casual installer 1566 --disable-dependency-tracking speeds up one-time build 1567 --enable-dependency-tracking do not reject slow dependency extractors 1568 --enable-shared[=PKGS] build shared libraries [default=yes] 1569 --enable-static[=PKGS] build static libraries [default=yes] 1570 --enable-fast-install[=PKGS] 1571 optimize for fast installation [default=yes] 1572 --disable-libtool-lock avoid locking (might break parallel builds) 1573 1574Optional Packages: 1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1578 --with-pic try to use only PIC/non-PIC objects [default=use 1579 both] 1580 --with-tags[=TAGS] include additional configurations [automatic] 1581 1582Some influential environment variables: 1583 CC C compiler command 1584 CFLAGS C compiler flags 1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1586 nonstandard directory <lib dir> 1587 LIBS libraries to pass to the linker, e.g. -l<library> 1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1589 you have headers in a nonstandard directory <include dir> 1590 CPP C preprocessor 1591 CXX C++ compiler command 1592 CXXFLAGS C++ compiler flags 1593 CXXCPP C++ preprocessor 1594 F77 Fortran 77 compiler command 1595 FFLAGS Fortran 77 compiler flags 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600Report bugs to <Alistair Crooks <agc@netbsd.org> c0596823>. 1601_ACEOF 1602ac_status=$? 1603fi 1604 1605if test "$ac_init_help" = "recursive"; then 1606 # If there are subdirs, report their specific --help. 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1608 test -d "$ac_dir" || 1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1610 continue 1611 ac_builddir=. 1612 1613case "$ac_dir" in 1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615*) 1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1617 # A ".." for each directory in $ac_dir_suffix. 1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1619 case $ac_top_builddir_sub in 1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1622 esac ;; 1623esac 1624ac_abs_top_builddir=$ac_pwd 1625ac_abs_builddir=$ac_pwd$ac_dir_suffix 1626# for backward compatibility: 1627ac_top_builddir=$ac_top_build_prefix 1628 1629case $srcdir in 1630 .) # We are building in place. 1631 ac_srcdir=. 1632 ac_top_srcdir=$ac_top_builddir_sub 1633 ac_abs_top_srcdir=$ac_pwd ;; 1634 [\\/]* | ?:[\\/]* ) # Absolute name. 1635 ac_srcdir=$srcdir$ac_dir_suffix; 1636 ac_top_srcdir=$srcdir 1637 ac_abs_top_srcdir=$srcdir ;; 1638 *) # Relative name. 1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1640 ac_top_srcdir=$ac_top_build_prefix$srcdir 1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1642esac 1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1644 1645 cd "$ac_dir" || { ac_status=$?; continue; } 1646 # Check for guested configure. 1647 if test -f "$ac_srcdir/configure.gnu"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1650 elif test -f "$ac_srcdir/configure"; then 1651 echo && 1652 $SHELL "$ac_srcdir/configure" --help=recursive 1653 else 1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1655 fi || ac_status=$? 1656 cd "$ac_pwd" || { ac_status=$?; break; } 1657 done 1658fi 1659 1660test -n "$ac_init_help" && exit $ac_status 1661if $ac_init_version; then 1662 cat <<\_ACEOF 1663netpgp configure 20100413 1664generated by GNU Autoconf 2.63 1665 1666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16672002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1668This configure script is free software; the Free Software Foundation 1669gives unlimited permission to copy, distribute and modify it. 1670_ACEOF 1671 exit 1672fi 1673cat >config.log <<_ACEOF 1674This file contains any messages produced by compilers while 1675running configure, to aid debugging if configure makes a mistake. 1676 1677It was created by netpgp $as_me 20100413, which was 1678generated by GNU Autoconf 2.63. Invocation command line was 1679 1680 $ $0 $@ 1681 1682_ACEOF 1683exec 5>>config.log 1684{ 1685cat <<_ASUNAME 1686## --------- ## 1687## Platform. ## 1688## --------- ## 1689 1690hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1691uname -m = `(uname -m) 2>/dev/null || echo unknown` 1692uname -r = `(uname -r) 2>/dev/null || echo unknown` 1693uname -s = `(uname -s) 2>/dev/null || echo unknown` 1694uname -v = `(uname -v) 2>/dev/null || echo unknown` 1695 1696/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1697/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1698 1699/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1700/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1701/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1702/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1703/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1704/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1705/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1706 1707_ASUNAME 1708 1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1710for as_dir in $PATH 1711do 1712 IFS=$as_save_IFS 1713 test -z "$as_dir" && as_dir=. 1714 $as_echo "PATH: $as_dir" 1715done 1716IFS=$as_save_IFS 1717 1718} >&5 1719 1720cat >&5 <<_ACEOF 1721 1722 1723## ----------- ## 1724## Core tests. ## 1725## ----------- ## 1726 1727_ACEOF 1728 1729 1730# Keep a trace of the command line. 1731# Strip out --no-create and --no-recursion so they do not pile up. 1732# Strip out --silent because we don't want to record it for future runs. 1733# Also quote any args containing shell meta-characters. 1734# Make two passes to allow for proper duplicate-argument suppression. 1735ac_configure_args= 1736ac_configure_args0= 1737ac_configure_args1= 1738ac_must_keep_next=false 1739for ac_pass in 1 2 1740do 1741 for ac_arg 1742 do 1743 case $ac_arg in 1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1746 | -silent | --silent | --silen | --sile | --sil) 1747 continue ;; 1748 *\'*) 1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1750 esac 1751 case $ac_pass in 1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1753 2) 1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1755 if test $ac_must_keep_next = true; then 1756 ac_must_keep_next=false # Got value, back to normal. 1757 else 1758 case $ac_arg in 1759 *=* | --config-cache | -C | -disable-* | --disable-* \ 1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1762 | -with-* | --with-* | -without-* | --without-* | --x) 1763 case "$ac_configure_args0 " in 1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1765 esac 1766 ;; 1767 -* ) ac_must_keep_next=true ;; 1768 esac 1769 fi 1770 ac_configure_args="$ac_configure_args '$ac_arg'" 1771 ;; 1772 esac 1773 done 1774done 1775$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1776$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1777 1778# When interrupted or exit'd, cleanup temporary files, and complete 1779# config.log. We remove comments because anyway the quotes in there 1780# would cause problems or look ugly. 1781# WARNING: Use '\'' to represent an apostrophe within the trap. 1782# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1783trap 'exit_status=$? 1784 # Save into config.log some information that might help in debugging. 1785 { 1786 echo 1787 1788 cat <<\_ASBOX 1789## ---------------- ## 1790## Cache variables. ## 1791## ---------------- ## 1792_ASBOX 1793 echo 1794 # The following way of writing the cache mishandles newlines in values, 1795( 1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1797 eval ac_val=\$$ac_var 1798 case $ac_val in #( 1799 *${as_nl}*) 1800 case $ac_var in #( 1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1802$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1803 esac 1804 case $ac_var in #( 1805 _ | IFS | as_nl) ;; #( 1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1807 *) $as_unset $ac_var ;; 1808 esac ;; 1809 esac 1810 done 1811 (set) 2>&1 | 1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1813 *${as_nl}ac_space=\ *) 1814 sed -n \ 1815 "s/'\''/'\''\\\\'\'''\''/g; 1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1817 ;; #( 1818 *) 1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1820 ;; 1821 esac | 1822 sort 1823) 1824 echo 1825 1826 cat <<\_ASBOX 1827## ----------------- ## 1828## Output variables. ## 1829## ----------------- ## 1830_ASBOX 1831 echo 1832 for ac_var in $ac_subst_vars 1833 do 1834 eval ac_val=\$$ac_var 1835 case $ac_val in 1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1837 esac 1838 $as_echo "$ac_var='\''$ac_val'\''" 1839 done | sort 1840 echo 1841 1842 if test -n "$ac_subst_files"; then 1843 cat <<\_ASBOX 1844## ------------------- ## 1845## File substitutions. ## 1846## ------------------- ## 1847_ASBOX 1848 echo 1849 for ac_var in $ac_subst_files 1850 do 1851 eval ac_val=\$$ac_var 1852 case $ac_val in 1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1854 esac 1855 $as_echo "$ac_var='\''$ac_val'\''" 1856 done | sort 1857 echo 1858 fi 1859 1860 if test -s confdefs.h; then 1861 cat <<\_ASBOX 1862## ----------- ## 1863## confdefs.h. ## 1864## ----------- ## 1865_ASBOX 1866 echo 1867 cat confdefs.h 1868 echo 1869 fi 1870 test "$ac_signal" != 0 && 1871 $as_echo "$as_me: caught signal $ac_signal" 1872 $as_echo "$as_me: exit $exit_status" 1873 } >&5 1874 rm -f core *.core core.conftest.* && 1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1876 exit $exit_status 1877' 0 1878for ac_signal in 1 2 13 15; do 1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1880done 1881ac_signal=0 1882 1883# confdefs.h avoids OS command line length limits that DEFS can exceed. 1884rm -f -r conftest* confdefs.h 1885 1886# Predefined preprocessor variables. 1887 1888cat >>confdefs.h <<_ACEOF 1889#define PACKAGE_NAME "$PACKAGE_NAME" 1890_ACEOF 1891 1892 1893cat >>confdefs.h <<_ACEOF 1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1895_ACEOF 1896 1897 1898cat >>confdefs.h <<_ACEOF 1899#define PACKAGE_VERSION "$PACKAGE_VERSION" 1900_ACEOF 1901 1902 1903cat >>confdefs.h <<_ACEOF 1904#define PACKAGE_STRING "$PACKAGE_STRING" 1905_ACEOF 1906 1907 1908cat >>confdefs.h <<_ACEOF 1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1910_ACEOF 1911 1912 1913# Let the site file select an alternate cache file if it wants to. 1914# Prefer an explicitly selected file to automatically selected ones. 1915ac_site_file1=NONE 1916ac_site_file2=NONE 1917if test -n "$CONFIG_SITE"; then 1918 ac_site_file1=$CONFIG_SITE 1919elif test "x$prefix" != xNONE; then 1920 ac_site_file1=$prefix/share/config.site 1921 ac_site_file2=$prefix/etc/config.site 1922else 1923 ac_site_file1=$ac_default_prefix/share/config.site 1924 ac_site_file2=$ac_default_prefix/etc/config.site 1925fi 1926for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1927do 1928 test "x$ac_site_file" = xNONE && continue 1929 if test -r "$ac_site_file"; then 1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1931$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1932 sed 's/^/| /' "$ac_site_file" >&5 1933 . "$ac_site_file" 1934 fi 1935done 1936 1937if test -r "$cache_file"; then 1938 # Some versions of bash will fail to source /dev/null (special 1939 # files actually), so we avoid doing that. 1940 if test -f "$cache_file"; then 1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1942$as_echo "$as_me: loading cache $cache_file" >&6;} 1943 case $cache_file in 1944 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1945 *) . "./$cache_file";; 1946 esac 1947 fi 1948else 1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1950$as_echo "$as_me: creating cache $cache_file" >&6;} 1951 >$cache_file 1952fi 1953 1954# Check that the precious variables saved in the cache have kept the same 1955# value. 1956ac_cache_corrupted=false 1957for ac_var in $ac_precious_vars; do 1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1959 eval ac_new_set=\$ac_env_${ac_var}_set 1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1961 eval ac_new_val=\$ac_env_${ac_var}_value 1962 case $ac_old_set,$ac_new_set in 1963 set,) 1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1965$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1966 ac_cache_corrupted=: ;; 1967 ,set) 1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1969$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1970 ac_cache_corrupted=: ;; 1971 ,);; 1972 *) 1973 if test "x$ac_old_val" != "x$ac_new_val"; then 1974 # differences in whitespace do not lead to failure. 1975 ac_old_val_w=`echo x $ac_old_val` 1976 ac_new_val_w=`echo x $ac_new_val` 1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1979$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1980 ac_cache_corrupted=: 1981 else 1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1983$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1984 eval $ac_var=\$ac_old_val 1985 fi 1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1987$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1989$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1990 fi;; 1991 esac 1992 # Pass precious variables to config.status. 1993 if test "$ac_new_set" = set; then 1994 case $ac_new_val in 1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1996 *) ac_arg=$ac_var=$ac_new_val ;; 1997 esac 1998 case " $ac_configure_args " in 1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2001 esac 2002 fi 2003done 2004if $ac_cache_corrupted; then 2005 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2007 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2008$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2009 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2010$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2011 { (exit 1); exit 1; }; } 2012fi 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038ac_ext=c 2039ac_cpp='$CPP $CPPFLAGS' 2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2042ac_compiler_gnu=$ac_cv_c_compiler_gnu 2043 2044 2045 2046 2047 2048## --------------------- ## 2049## M4sh Initialization. ## 2050## --------------------- ## 2051 2052# Be more Bourne compatible 2053DUALCASE=1; export DUALCASE # for MKS sh 2054if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2055 emulate sh 2056 NULLCMD=: 2057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2058 # is contrary to our usage. Disable this feature. 2059 alias -g '${1+"$@"}'='"$@"' 2060 setopt NO_GLOB_SUBST 2061else 2062 case `(set -o) 2>/dev/null` in 2063 *posix*) set -o posix ;; 2064esac 2065 2066fi 2067 2068 2069 2070 2071# PATH needs CR 2072# Avoid depending upon Character Ranges. 2073as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2075as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2076as_cr_digits='0123456789' 2077as_cr_alnum=$as_cr_Letters$as_cr_digits 2078 2079as_nl=' 2080' 2081export as_nl 2082# Printing a long string crashes Solaris 7 /usr/bin/printf. 2083as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2084as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 2085as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 2086if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 2087 as_echo='printf %s\n' 2088 as_echo_n='printf %s' 2089else 2090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 2091 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 2092 as_echo_n='/usr/ucb/echo -n' 2093 else 2094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 2095 as_echo_n_body='eval 2096 arg=$1; 2097 case $arg in 2098 *"$as_nl"*) 2099 expr "X$arg" : "X\\(.*\\)$as_nl"; 2100 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 2101 esac; 2102 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 2103 ' 2104 export as_echo_n_body 2105 as_echo_n='sh -c $as_echo_n_body as_echo' 2106 fi 2107 export as_echo_body 2108 as_echo='sh -c $as_echo_body as_echo' 2109fi 2110 2111# The user is always right. 2112if test "${PATH_SEPARATOR+set}" != set; then 2113 PATH_SEPARATOR=: 2114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 2115 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 2116 PATH_SEPARATOR=';' 2117 } 2118fi 2119 2120# Support unset when possible. 2121if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2122 as_unset=unset 2123else 2124 as_unset=false 2125fi 2126 2127 2128# IFS 2129# We need space, tab and new line, in precisely that order. Quoting is 2130# there to prevent editors from complaining about space-tab. 2131# (If _AS_PATH_WALK were called with IFS unset, it would disable word 2132# splitting by setting IFS to empty value.) 2133IFS=" "" $as_nl" 2134 2135# Find who we are. Look in the path if we contain no directory separator. 2136case $0 in 2137 *[\\/]* ) as_myself=$0 ;; 2138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2139for as_dir in $PATH 2140do 2141 IFS=$as_save_IFS 2142 test -z "$as_dir" && as_dir=. 2143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2144done 2145IFS=$as_save_IFS 2146 2147 ;; 2148esac 2149# We did not find ourselves, most probably we were run as `sh COMMAND' 2150# in which case we are not to be found in the path. 2151if test "x$as_myself" = x; then 2152 as_myself=$0 2153fi 2154if test ! -f "$as_myself"; then 2155 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2156 { (exit 1); exit 1; } 2157fi 2158 2159# Work around bugs in pre-3.0 UWIN ksh. 2160for as_var in ENV MAIL MAILPATH 2161do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2162done 2163PS1='$ ' 2164PS2='> ' 2165PS4='+ ' 2166 2167# NLS nuisances. 2168LC_ALL=C 2169export LC_ALL 2170LANGUAGE=C 2171export LANGUAGE 2172 2173# Required to use basename. 2174if expr a : '\(a\)' >/dev/null 2>&1 && 2175 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2176 as_expr=expr 2177else 2178 as_expr=false 2179fi 2180 2181if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2182 as_basename=basename 2183else 2184 as_basename=false 2185fi 2186 2187 2188# Name of the executable. 2189as_me=`$as_basename -- "$0" || 2190$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2191 X"$0" : 'X\(//\)$' \| \ 2192 X"$0" : 'X\(/\)' \| . 2>/dev/null || 2193$as_echo X/"$0" | 2194 sed '/^.*\/\([^/][^/]*\)\/*$/{ 2195 s//\1/ 2196 q 2197 } 2198 /^X\/\(\/\/\)$/{ 2199 s//\1/ 2200 q 2201 } 2202 /^X\/\(\/\).*/{ 2203 s//\1/ 2204 q 2205 } 2206 s/.*/./; q'` 2207 2208# CDPATH. 2209$as_unset CDPATH 2210 2211 2212 2213ac_aux_dir= 2214for ac_dir in buildaux "$srcdir"/buildaux; do 2215 if test -f "$ac_dir/install-sh"; then 2216 ac_aux_dir=$ac_dir 2217 ac_install_sh="$ac_aux_dir/install-sh -c" 2218 break 2219 elif test -f "$ac_dir/install.sh"; then 2220 ac_aux_dir=$ac_dir 2221 ac_install_sh="$ac_aux_dir/install.sh -c" 2222 break 2223 elif test -f "$ac_dir/shtool"; then 2224 ac_aux_dir=$ac_dir 2225 ac_install_sh="$ac_aux_dir/shtool install -c" 2226 break 2227 fi 2228done 2229if test -z "$ac_aux_dir"; then 2230 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&5 2231$as_echo "$as_me: error: cannot find install-sh or install.sh in buildaux \"$srcdir\"/buildaux" >&2;} 2232 { (exit 1); exit 1; }; } 2233fi 2234 2235# These three variables are undocumented and unsupported, 2236# and are intended to be withdrawn in a future Autoconf release. 2237# They can cause serious problems if a builder's source tree is in a directory 2238# whose full name contains unusual characters. 2239ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2240ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2241ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2242 2243 2244ac_config_headers="$ac_config_headers src/lib/config.h" 2245 2246 2247am__api_version='1.10' 2248 2249# Find a good install program. We prefer a C program (faster), 2250# so one script is as good as another. But avoid the broken or 2251# incompatible versions: 2252# SysV /etc/install, /usr/sbin/install 2253# SunOS /usr/etc/install 2254# IRIX /sbin/install 2255# AIX /bin/install 2256# AmigaOS /C/install, which installs bootblocks on floppy discs 2257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2258# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2260# OS/2's system install, which has a completely different semantic 2261# ./install, which can be erroneously created by make from ./install.sh. 2262# Reject install programs that cannot install multiple files. 2263{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2264$as_echo_n "checking for a BSD-compatible install... " >&6; } 2265if test -z "$INSTALL"; then 2266if test "${ac_cv_path_install+set}" = set; then 2267 $as_echo_n "(cached) " >&6 2268else 2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2270for as_dir in $PATH 2271do 2272 IFS=$as_save_IFS 2273 test -z "$as_dir" && as_dir=. 2274 # Account for people who put trailing slashes in PATH elements. 2275case $as_dir/ in 2276 ./ | .// | /cC/* | \ 2277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2279 /usr/ucb/* ) ;; 2280 *) 2281 # OSF1 and SCO ODT 3.0 have their own names for install. 2282 # Don't use installbsd from OSF since it installs stuff as root 2283 # by default. 2284 for ac_prog in ginstall scoinst install; do 2285 for ac_exec_ext in '' $ac_executable_extensions; do 2286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2287 if test $ac_prog = install && 2288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2289 # AIX install. It has an incompatible calling convention. 2290 : 2291 elif test $ac_prog = install && 2292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2293 # program-specific install script used by HP pwplus--don't use. 2294 : 2295 else 2296 rm -rf conftest.one conftest.two conftest.dir 2297 echo one > conftest.one 2298 echo two > conftest.two 2299 mkdir conftest.dir 2300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2301 test -s conftest.one && test -s conftest.two && 2302 test -s conftest.dir/conftest.one && 2303 test -s conftest.dir/conftest.two 2304 then 2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2306 break 3 2307 fi 2308 fi 2309 fi 2310 done 2311 done 2312 ;; 2313esac 2314 2315done 2316IFS=$as_save_IFS 2317 2318rm -rf conftest.one conftest.two conftest.dir 2319 2320fi 2321 if test "${ac_cv_path_install+set}" = set; then 2322 INSTALL=$ac_cv_path_install 2323 else 2324 # As a last resort, use the slow shell script. Don't cache a 2325 # value for INSTALL within a source directory, because that will 2326 # break other packages using the cache if that directory is 2327 # removed, or if the value is a relative name. 2328 INSTALL=$ac_install_sh 2329 fi 2330fi 2331{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2332$as_echo "$INSTALL" >&6; } 2333 2334# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2335# It thinks the first close brace ends the variable substitution. 2336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2337 2338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2339 2340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2341 2342{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2343$as_echo_n "checking whether build environment is sane... " >&6; } 2344# Just in case 2345sleep 1 2346echo timestamp > conftest.file 2347# Do `set' in a subshell so we don't clobber the current shell's 2348# arguments. Must try -L first in case configure is actually a 2349# symlink; some systems play weird games with the mod time of symlinks 2350# (eg FreeBSD returns the mod time of the symlink's containing 2351# directory). 2352if ( 2353 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2354 if test "$*" = "X"; then 2355 # -L didn't work. 2356 set X `ls -t $srcdir/configure conftest.file` 2357 fi 2358 rm -f conftest.file 2359 if test "$*" != "X $srcdir/configure conftest.file" \ 2360 && test "$*" != "X conftest.file $srcdir/configure"; then 2361 2362 # If neither matched, then we have a broken ls. This can happen 2363 # if, for instance, CONFIG_SHELL is bash and it inherits a 2364 # broken ls alias from the environment. This has actually 2365 # happened. Such a system could not be considered "sane". 2366 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2367alias in your environment" >&5 2368$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2369alias in your environment" >&2;} 2370 { (exit 1); exit 1; }; } 2371 fi 2372 2373 test "$2" = conftest.file 2374 ) 2375then 2376 # Ok. 2377 : 2378else 2379 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2380Check your system clock" >&5 2381$as_echo "$as_me: error: newly created file is older than distributed files! 2382Check your system clock" >&2;} 2383 { (exit 1); exit 1; }; } 2384fi 2385{ $as_echo "$as_me:$LINENO: result: yes" >&5 2386$as_echo "yes" >&6; } 2387test "$program_prefix" != NONE && 2388 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2389# Use a double $ so make ignores it. 2390test "$program_suffix" != NONE && 2391 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2392# Double any \ or $. 2393# By default was `s,x,x', remove it if useless. 2394ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2395program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2396 2397# expand $ac_aux_dir to an absolute path 2398am_aux_dir=`cd $ac_aux_dir && pwd` 2399 2400test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2401# Use eval to expand $SHELL 2402if eval "$MISSING --run true"; then 2403 am_missing_run="$MISSING --run " 2404else 2405 am_missing_run= 2406 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2407$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2408fi 2409 2410{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2411$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2412if test -z "$MKDIR_P"; then 2413 if test "${ac_cv_path_mkdir+set}" = set; then 2414 $as_echo_n "(cached) " >&6 2415else 2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_prog in mkdir gmkdir; do 2422 for ac_exec_ext in '' $ac_executable_extensions; do 2423 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2424 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2425 'mkdir (GNU coreutils) '* | \ 2426 'mkdir (coreutils) '* | \ 2427 'mkdir (fileutils) '4.1*) 2428 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2429 break 3;; 2430 esac 2431 done 2432 done 2433done 2434IFS=$as_save_IFS 2435 2436fi 2437 2438 if test "${ac_cv_path_mkdir+set}" = set; then 2439 MKDIR_P="$ac_cv_path_mkdir -p" 2440 else 2441 # As a last resort, use the slow shell script. Don't cache a 2442 # value for MKDIR_P within a source directory, because that will 2443 # break other packages using the cache if that directory is 2444 # removed, or if the value is a relative name. 2445 test -d ./--version && rmdir ./--version 2446 MKDIR_P="$ac_install_sh -d" 2447 fi 2448fi 2449{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2450$as_echo "$MKDIR_P" >&6; } 2451 2452mkdir_p="$MKDIR_P" 2453case $mkdir_p in 2454 [\\/$]* | ?:[\\/]*) ;; 2455 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2456esac 2457 2458for ac_prog in gawk mawk nawk awk 2459do 2460 # Extract the first word of "$ac_prog", so it can be a program name with args. 2461set dummy $ac_prog; ac_word=$2 2462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if test "${ac_cv_prog_AWK+set}" = set; then 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$AWK"; then 2468 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2477 ac_cv_prog_AWK="$ac_prog" 2478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487AWK=$ac_cv_prog_AWK 2488if test -n "$AWK"; then 2489 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2490$as_echo "$AWK" >&6; } 2491else 2492 { $as_echo "$as_me:$LINENO: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497 test -n "$AWK" && break 2498done 2499 2500{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2501$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2502set x ${MAKE-make} 2503ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2504if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2505 $as_echo_n "(cached) " >&6 2506else 2507 cat >conftest.make <<\_ACEOF 2508SHELL = /bin/sh 2509all: 2510 @echo '@@@%%%=$(MAKE)=@@@%%%' 2511_ACEOF 2512# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2513case `${MAKE-make} -f conftest.make 2>/dev/null` in 2514 *@@@%%%=?*=@@@%%%*) 2515 eval ac_cv_prog_make_${ac_make}_set=yes;; 2516 *) 2517 eval ac_cv_prog_make_${ac_make}_set=no;; 2518esac 2519rm -f conftest.make 2520fi 2521if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2522 { $as_echo "$as_me:$LINENO: result: yes" >&5 2523$as_echo "yes" >&6; } 2524 SET_MAKE= 2525else 2526 { $as_echo "$as_me:$LINENO: result: no" >&5 2527$as_echo "no" >&6; } 2528 SET_MAKE="MAKE=${MAKE-make}" 2529fi 2530 2531rm -rf .tst 2>/dev/null 2532mkdir .tst 2>/dev/null 2533if test -d .tst; then 2534 am__leading_dot=. 2535else 2536 am__leading_dot=_ 2537fi 2538rmdir .tst 2>/dev/null 2539 2540if test "`cd $srcdir && pwd`" != "`pwd`"; then 2541 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2542 # is not polluted with repeated "-I." 2543 am__isrc=' -I$(srcdir)' 2544 # test to see if srcdir already configured 2545 if test -f $srcdir/config.status; then 2546 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2547$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2548 { (exit 1); exit 1; }; } 2549 fi 2550fi 2551 2552# test whether we have cygpath 2553if test -z "$CYGPATH_W"; then 2554 if (cygpath --version) >/dev/null 2>/dev/null; then 2555 CYGPATH_W='cygpath -w' 2556 else 2557 CYGPATH_W=echo 2558 fi 2559fi 2560 2561 2562# Define the identity of the package. 2563 PACKAGE='netpgp' 2564 VERSION='20100413' 2565 2566 2567cat >>confdefs.h <<_ACEOF 2568#define PACKAGE "$PACKAGE" 2569_ACEOF 2570 2571 2572cat >>confdefs.h <<_ACEOF 2573#define VERSION "$VERSION" 2574_ACEOF 2575 2576# Some tools Automake needs. 2577 2578ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2579 2580 2581AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2582 2583 2584AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2585 2586 2587AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2588 2589 2590MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2591 2592install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2593 2594# Installed binaries are usually stripped using `strip' when the user 2595# run `make install-strip'. However `strip' might not be the right 2596# tool to use in cross-compilation environments, therefore Automake 2597# will honor the `STRIP' environment variable to overrule this program. 2598if test "$cross_compiling" != no; then 2599 if test -n "$ac_tool_prefix"; then 2600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2601set dummy ${ac_tool_prefix}strip; ac_word=$2 2602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if test "${ac_cv_prog_STRIP+set}" = set; then 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$STRIP"; then 2608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2617 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627STRIP=$ac_cv_prog_STRIP 2628if test -n "$STRIP"; then 2629 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2630$as_echo "$STRIP" >&6; } 2631else 2632 { $as_echo "$as_me:$LINENO: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 2637fi 2638if test -z "$ac_cv_prog_STRIP"; then 2639 ac_ct_STRIP=$STRIP 2640 # Extract the first word of "strip", so it can be a program name with args. 2641set dummy strip; ac_word=$2 2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2643$as_echo_n "checking for $ac_word... " >&6; } 2644if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2645 $as_echo_n "(cached) " >&6 2646else 2647 if test -n "$ac_ct_STRIP"; then 2648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2649else 2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 test -z "$as_dir" && as_dir=. 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2657 ac_cv_prog_ac_ct_STRIP="strip" 2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2659 break 2 2660 fi 2661done 2662done 2663IFS=$as_save_IFS 2664 2665fi 2666fi 2667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2668if test -n "$ac_ct_STRIP"; then 2669 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2670$as_echo "$ac_ct_STRIP" >&6; } 2671else 2672 { $as_echo "$as_me:$LINENO: result: no" >&5 2673$as_echo "no" >&6; } 2674fi 2675 2676 if test "x$ac_ct_STRIP" = x; then 2677 STRIP=":" 2678 else 2679 case $cross_compiling:$ac_tool_warned in 2680yes:) 2681{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2683ac_tool_warned=yes ;; 2684esac 2685 STRIP=$ac_ct_STRIP 2686 fi 2687else 2688 STRIP="$ac_cv_prog_STRIP" 2689fi 2690 2691fi 2692INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2693 2694# We need awk for the "check" target. The system "awk" is bad on 2695# some platforms. 2696# Always define AMTAR for backward compatibility. 2697 2698AMTAR=${AMTAR-"${am_missing_run}tar"} 2699 2700am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2701 2702 2703 2704 2705 2706{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2707$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2708 # Check whether --enable-maintainer-mode was given. 2709if test "${enable_maintainer_mode+set}" = set; then 2710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2711else 2712 USE_MAINTAINER_MODE=no 2713fi 2714 2715 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2716$as_echo "$USE_MAINTAINER_MODE" >&6; } 2717 if test $USE_MAINTAINER_MODE = yes; then 2718 MAINTAINER_MODE_TRUE= 2719 MAINTAINER_MODE_FALSE='#' 2720else 2721 MAINTAINER_MODE_TRUE='#' 2722 MAINTAINER_MODE_FALSE= 2723fi 2724 2725 MAINT=$MAINTAINER_MODE_TRUE 2726 2727 2728 2729# Make sure we can run config.sub. 2730$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2731 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2732$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2733 { (exit 1); exit 1; }; } 2734 2735{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2736$as_echo_n "checking build system type... " >&6; } 2737if test "${ac_cv_build+set}" = set; then 2738 $as_echo_n "(cached) " >&6 2739else 2740 ac_build_alias=$build_alias 2741test "x$ac_build_alias" = x && 2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2743test "x$ac_build_alias" = x && 2744 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2745$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2746 { (exit 1); exit 1; }; } 2747ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2748 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2749$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2750 { (exit 1); exit 1; }; } 2751 2752fi 2753{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2754$as_echo "$ac_cv_build" >&6; } 2755case $ac_cv_build in 2756*-*-*) ;; 2757*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2758$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2759 { (exit 1); exit 1; }; };; 2760esac 2761build=$ac_cv_build 2762ac_save_IFS=$IFS; IFS='-' 2763set x $ac_cv_build 2764shift 2765build_cpu=$1 2766build_vendor=$2 2767shift; shift 2768# Remember, the first character of IFS is used to create $*, 2769# except with old shells: 2770build_os=$* 2771IFS=$ac_save_IFS 2772case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2773 2774 2775{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2776$as_echo_n "checking host system type... " >&6; } 2777if test "${ac_cv_host+set}" = set; then 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test "x$host_alias" = x; then 2781 ac_cv_host=$ac_cv_build 2782else 2783 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2784 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2785$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2786 { (exit 1); exit 1; }; } 2787fi 2788 2789fi 2790{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2791$as_echo "$ac_cv_host" >&6; } 2792case $ac_cv_host in 2793*-*-*) ;; 2794*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2795$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2796 { (exit 1); exit 1; }; };; 2797esac 2798host=$ac_cv_host 2799ac_save_IFS=$IFS; IFS='-' 2800set x $ac_cv_host 2801shift 2802host_cpu=$1 2803host_vendor=$2 2804shift; shift 2805# Remember, the first character of IFS is used to create $*, 2806# except with old shells: 2807host_os=$* 2808IFS=$ac_save_IFS 2809case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2810 2811 2812CANONICAL_HOST=$host 2813 2814 2815# Checks for programs. 2816# 2817{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2819set x ${MAKE-make} 2820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2821if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2822 $as_echo_n "(cached) " >&6 2823else 2824 cat >conftest.make <<\_ACEOF 2825SHELL = /bin/sh 2826all: 2827 @echo '@@@%%%=$(MAKE)=@@@%%%' 2828_ACEOF 2829# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2830case `${MAKE-make} -f conftest.make 2>/dev/null` in 2831 *@@@%%%=?*=@@@%%%*) 2832 eval ac_cv_prog_make_${ac_make}_set=yes;; 2833 *) 2834 eval ac_cv_prog_make_${ac_make}_set=no;; 2835esac 2836rm -f conftest.make 2837fi 2838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2839 { $as_echo "$as_me:$LINENO: result: yes" >&5 2840$as_echo "yes" >&6; } 2841 SET_MAKE= 2842else 2843 { $as_echo "$as_me:$LINENO: result: no" >&5 2844$as_echo "no" >&6; } 2845 SET_MAKE="MAKE=${MAKE-make}" 2846fi 2847 2848for ac_prog in gawk mawk nawk awk 2849do 2850 # Extract the first word of "$ac_prog", so it can be a program name with args. 2851set dummy $ac_prog; ac_word=$2 2852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2853$as_echo_n "checking for $ac_word... " >&6; } 2854if test "${ac_cv_prog_AWK+set}" = set; then 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test -n "$AWK"; then 2858 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2859else 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2867 ac_cv_prog_AWK="$ac_prog" 2868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872done 2873IFS=$as_save_IFS 2874 2875fi 2876fi 2877AWK=$ac_cv_prog_AWK 2878if test -n "$AWK"; then 2879 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2880$as_echo "$AWK" >&6; } 2881else 2882 { $as_echo "$as_me:$LINENO: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 2887 test -n "$AWK" && break 2888done 2889 2890ac_ext=c 2891ac_cpp='$CPP $CPPFLAGS' 2892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2894ac_compiler_gnu=$ac_cv_c_compiler_gnu 2895if test -n "$ac_tool_prefix"; then 2896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2897set dummy ${ac_tool_prefix}gcc; ac_word=$2 2898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2899$as_echo_n "checking for $ac_word... " >&6; } 2900if test "${ac_cv_prog_CC+set}" = set; then 2901 $as_echo_n "(cached) " >&6 2902else 2903 if test -n "$CC"; then 2904 ac_cv_prog_CC="$CC" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2913 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918done 2919IFS=$as_save_IFS 2920 2921fi 2922fi 2923CC=$ac_cv_prog_CC 2924if test -n "$CC"; then 2925 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2926$as_echo "$CC" >&6; } 2927else 2928 { $as_echo "$as_me:$LINENO: result: no" >&5 2929$as_echo "no" >&6; } 2930fi 2931 2932 2933fi 2934if test -z "$ac_cv_prog_CC"; then 2935 ac_ct_CC=$CC 2936 # Extract the first word of "gcc", so it can be a program name with args. 2937set dummy gcc; ac_word=$2 2938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$ac_ct_CC"; then 2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_ac_ct_CC="gcc" 2954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963ac_ct_CC=$ac_cv_prog_ac_ct_CC 2964if test -n "$ac_ct_CC"; then 2965 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2966$as_echo "$ac_ct_CC" >&6; } 2967else 2968 { $as_echo "$as_me:$LINENO: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 if test "x$ac_ct_CC" = x; then 2973 CC="" 2974 else 2975 case $cross_compiling:$ac_tool_warned in 2976yes:) 2977{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2979ac_tool_warned=yes ;; 2980esac 2981 CC=$ac_ct_CC 2982 fi 2983else 2984 CC="$ac_cv_prog_CC" 2985fi 2986 2987if test -z "$CC"; then 2988 if test -n "$ac_tool_prefix"; then 2989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2990set dummy ${ac_tool_prefix}cc; ac_word=$2 2991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if test "${ac_cv_prog_CC+set}" = set; then 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_CC="${ac_tool_prefix}cc" 3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3019$as_echo "$CC" >&6; } 3020else 3021 { $as_echo "$as_me:$LINENO: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026 fi 3027fi 3028if test -z "$CC"; then 3029 # Extract the first word of "cc", so it can be a program name with args. 3030set dummy cc; ac_word=$2 3031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if test "${ac_cv_prog_CC+set}" = set; then 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$CC"; then 3037 ac_cv_prog_CC="$CC" # Let the user override the test. 3038else 3039 ac_prog_rejected=no 3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3048 ac_prog_rejected=yes 3049 continue 3050 fi 3051 ac_cv_prog_CC="cc" 3052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 break 2 3054 fi 3055done 3056done 3057IFS=$as_save_IFS 3058 3059if test $ac_prog_rejected = yes; then 3060 # We found a bogon in the path, so make sure we never use it. 3061 set dummy $ac_cv_prog_CC 3062 shift 3063 if test $# != 0; then 3064 # We chose a different compiler from the bogus one. 3065 # However, it has the same basename, so the bogon will be chosen 3066 # first if we set CC to just the basename; use the full file name. 3067 shift 3068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3069 fi 3070fi 3071fi 3072fi 3073CC=$ac_cv_prog_CC 3074if test -n "$CC"; then 3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3076$as_echo "$CC" >&6; } 3077else 3078 { $as_echo "$as_me:$LINENO: result: no" >&5 3079$as_echo "no" >&6; } 3080fi 3081 3082 3083fi 3084if test -z "$CC"; then 3085 if test -n "$ac_tool_prefix"; then 3086 for ac_prog in cl.exe 3087 do 3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3089set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if test "${ac_cv_prog_CC+set}" = set; then 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$CC"; then 3096 ac_cv_prog_CC="$CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115CC=$ac_cv_prog_CC 3116if test -n "$CC"; then 3117 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3118$as_echo "$CC" >&6; } 3119else 3120 { $as_echo "$as_me:$LINENO: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 3125 test -n "$CC" && break 3126 done 3127fi 3128if test -z "$CC"; then 3129 ac_ct_CC=$CC 3130 for ac_prog in cl.exe 3131do 3132 # Extract the first word of "$ac_prog", so it can be a program name with args. 3133set dummy $ac_prog; ac_word=$2 3134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$ac_ct_CC"; then 3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3149 ac_cv_prog_ac_ct_CC="$ac_prog" 3150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159ac_ct_CC=$ac_cv_prog_ac_ct_CC 3160if test -n "$ac_ct_CC"; then 3161 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3162$as_echo "$ac_ct_CC" >&6; } 3163else 3164 { $as_echo "$as_me:$LINENO: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169 test -n "$ac_ct_CC" && break 3170done 3171 3172 if test "x$ac_ct_CC" = x; then 3173 CC="" 3174 else 3175 case $cross_compiling:$ac_tool_warned in 3176yes:) 3177{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3179ac_tool_warned=yes ;; 3180esac 3181 CC=$ac_ct_CC 3182 fi 3183fi 3184 3185fi 3186 3187 3188test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3190{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3191See \`config.log' for more details." >&5 3192$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3193See \`config.log' for more details." >&2;} 3194 { (exit 1); exit 1; }; }; } 3195 3196# Provide some information about the compiler. 3197$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3198set X $ac_compile 3199ac_compiler=$2 3200{ (ac_try="$ac_compiler --version >&5" 3201case "(($ac_try" in 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203 *) ac_try_echo=$ac_try;; 3204esac 3205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3206$as_echo "$ac_try_echo") >&5 3207 (eval "$ac_compiler --version >&5") 2>&5 3208 ac_status=$? 3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); } 3211{ (ac_try="$ac_compiler -v >&5" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3217$as_echo "$ac_try_echo") >&5 3218 (eval "$ac_compiler -v >&5") 2>&5 3219 ac_status=$? 3220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 (exit $ac_status); } 3222{ (ac_try="$ac_compiler -V >&5" 3223case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226esac 3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3228$as_echo "$ac_try_echo") >&5 3229 (eval "$ac_compiler -V >&5") 2>&5 3230 ac_status=$? 3231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); } 3233 3234cat >conftest.$ac_ext <<_ACEOF 3235/* confdefs.h. */ 3236_ACEOF 3237cat confdefs.h >>conftest.$ac_ext 3238cat >>conftest.$ac_ext <<_ACEOF 3239/* end confdefs.h. */ 3240 3241int 3242main () 3243{ 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249ac_clean_files_save=$ac_clean_files 3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3251# Try to create an executable without -o first, disregard a.out. 3252# It will help us diagnose broken compilers, and finding out an intuition 3253# of exeext. 3254{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3255$as_echo_n "checking for C compiler default output file name... " >&6; } 3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3257 3258# The possible output files: 3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3260 3261ac_rmfiles= 3262for ac_file in $ac_files 3263do 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3267 esac 3268done 3269rm -f $ac_rmfiles 3270 3271if { (ac_try="$ac_link_default" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3277$as_echo "$ac_try_echo") >&5 3278 (eval "$ac_link_default") 2>&5 3279 ac_status=$? 3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 (exit $ac_status); }; then 3282 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3284# in a Makefile. We should not override ac_cv_exeext if it was cached, 3285# so that the user can short-circuit this test for compilers unknown to 3286# Autoconf. 3287for ac_file in $ac_files '' 3288do 3289 test -f "$ac_file" || continue 3290 case $ac_file in 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3292 ;; 3293 [ab].out ) 3294 # We found the default executable, but exeext='' is most 3295 # certainly right. 3296 break;; 3297 *.* ) 3298 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3299 then :; else 3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3301 fi 3302 # We set ac_cv_exeext here because the later test for it is not 3303 # safe: cross compilers may not add the suffix if given an `-o' 3304 # argument, so we may need to know it at that point already. 3305 # Even if this section looks crufty: it has the advantage of 3306 # actually working. 3307 break;; 3308 * ) 3309 break;; 3310 esac 3311done 3312test "$ac_cv_exeext" = no && ac_cv_exeext= 3313 3314else 3315 ac_file='' 3316fi 3317 3318{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3319$as_echo "$ac_file" >&6; } 3320if test -z "$ac_file"; then 3321 $as_echo "$as_me: failed program was:" >&5 3322sed 's/^/| /' conftest.$ac_ext >&5 3323 3324{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3326{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3327See \`config.log' for more details." >&5 3328$as_echo "$as_me: error: C compiler cannot create executables 3329See \`config.log' for more details." >&2;} 3330 { (exit 77); exit 77; }; }; } 3331fi 3332 3333ac_exeext=$ac_cv_exeext 3334 3335# Check that the compiler produces executables we can run. If not, either 3336# the compiler is broken, or we cross compile. 3337{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3338$as_echo_n "checking whether the C compiler works... " >&6; } 3339# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3340# If not cross compiling, check that we can run a simple program. 3341if test "$cross_compiling" != yes; then 3342 if { ac_try='./$ac_file' 3343 { (case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3348$as_echo "$ac_try_echo") >&5 3349 (eval "$ac_try") 2>&5 3350 ac_status=$? 3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); }; }; then 3353 cross_compiling=no 3354 else 3355 if test "$cross_compiling" = maybe; then 3356 cross_compiling=yes 3357 else 3358 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3360{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3361If you meant to cross compile, use \`--host'. 3362See \`config.log' for more details." >&5 3363$as_echo "$as_me: error: cannot run C compiled programs. 3364If you meant to cross compile, use \`--host'. 3365See \`config.log' for more details." >&2;} 3366 { (exit 1); exit 1; }; }; } 3367 fi 3368 fi 3369fi 3370{ $as_echo "$as_me:$LINENO: result: yes" >&5 3371$as_echo "yes" >&6; } 3372 3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3374ac_clean_files=$ac_clean_files_save 3375# Check that the compiler produces executables we can run. If not, either 3376# the compiler is broken, or we cross compile. 3377{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3378$as_echo_n "checking whether we are cross compiling... " >&6; } 3379{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3380$as_echo "$cross_compiling" >&6; } 3381 3382{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3383$as_echo_n "checking for suffix of executables... " >&6; } 3384if { (ac_try="$ac_link" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3390$as_echo "$ac_try_echo") >&5 3391 (eval "$ac_link") 2>&5 3392 ac_status=$? 3393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); }; then 3395 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3396# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3397# work properly (i.e., refer to `conftest.exe'), while it won't with 3398# `rm'. 3399for ac_file in conftest.exe conftest conftest.*; do 3400 test -f "$ac_file" || continue 3401 case $ac_file in 3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3404 break;; 3405 * ) break;; 3406 esac 3407done 3408else 3409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3411{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3412See \`config.log' for more details." >&5 3413$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3414See \`config.log' for more details." >&2;} 3415 { (exit 1); exit 1; }; }; } 3416fi 3417 3418rm -f conftest$ac_cv_exeext 3419{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3420$as_echo "$ac_cv_exeext" >&6; } 3421 3422rm -f conftest.$ac_ext 3423EXEEXT=$ac_cv_exeext 3424ac_exeext=$EXEEXT 3425{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3426$as_echo_n "checking for suffix of object files... " >&6; } 3427if test "${ac_cv_objext+set}" = set; then 3428 $as_echo_n "(cached) " >&6 3429else 3430 cat >conftest.$ac_ext <<_ACEOF 3431/* confdefs.h. */ 3432_ACEOF 3433cat confdefs.h >>conftest.$ac_ext 3434cat >>conftest.$ac_ext <<_ACEOF 3435/* end confdefs.h. */ 3436 3437int 3438main () 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445rm -f conftest.o conftest.obj 3446if { (ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3452$as_echo "$ac_try_echo") >&5 3453 (eval "$ac_compile") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); }; then 3457 for ac_file in conftest.o conftest.obj conftest.*; do 3458 test -f "$ac_file" || continue; 3459 case $ac_file in 3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3462 break;; 3463 esac 3464done 3465else 3466 $as_echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3472See \`config.log' for more details." >&5 3473$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3474See \`config.log' for more details." >&2;} 3475 { (exit 1); exit 1; }; }; } 3476fi 3477 3478rm -f conftest.$ac_cv_objext conftest.$ac_ext 3479fi 3480{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3481$as_echo "$ac_cv_objext" >&6; } 3482OBJEXT=$ac_cv_objext 3483ac_objext=$OBJEXT 3484{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3485$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3486if test "${ac_cv_c_compiler_gnu+set}" = set; then 3487 $as_echo_n "(cached) " >&6 3488else 3489 cat >conftest.$ac_ext <<_ACEOF 3490/* confdefs.h. */ 3491_ACEOF 3492cat confdefs.h >>conftest.$ac_ext 3493cat >>conftest.$ac_ext <<_ACEOF 3494/* end confdefs.h. */ 3495 3496int 3497main () 3498{ 3499#ifndef __GNUC__ 3500 choke me 3501#endif 3502 3503 ; 3504 return 0; 3505} 3506_ACEOF 3507rm -f conftest.$ac_objext 3508if { (ac_try="$ac_compile" 3509case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3514$as_echo "$ac_try_echo") >&5 3515 (eval "$ac_compile") 2>conftest.er1 3516 ac_status=$? 3517 grep -v '^ *+' conftest.er1 >conftest.err 3518 rm -f conftest.er1 3519 cat conftest.err >&5 3520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); } && { 3522 test -z "$ac_c_werror_flag" || 3523 test ! -s conftest.err 3524 } && test -s conftest.$ac_objext; then 3525 ac_compiler_gnu=yes 3526else 3527 $as_echo "$as_me: failed program was:" >&5 3528sed 's/^/| /' conftest.$ac_ext >&5 3529 3530 ac_compiler_gnu=no 3531fi 3532 3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3534ac_cv_c_compiler_gnu=$ac_compiler_gnu 3535 3536fi 3537{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3538$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3539if test $ac_compiler_gnu = yes; then 3540 GCC=yes 3541else 3542 GCC= 3543fi 3544ac_test_CFLAGS=${CFLAGS+set} 3545ac_save_CFLAGS=$CFLAGS 3546{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3547$as_echo_n "checking whether $CC accepts -g... " >&6; } 3548if test "${ac_cv_prog_cc_g+set}" = set; then 3549 $as_echo_n "(cached) " >&6 3550else 3551 ac_save_c_werror_flag=$ac_c_werror_flag 3552 ac_c_werror_flag=yes 3553 ac_cv_prog_cc_g=no 3554 CFLAGS="-g" 3555 cat >conftest.$ac_ext <<_ACEOF 3556/* confdefs.h. */ 3557_ACEOF 3558cat confdefs.h >>conftest.$ac_ext 3559cat >>conftest.$ac_ext <<_ACEOF 3560/* end confdefs.h. */ 3561 3562int 3563main () 3564{ 3565 3566 ; 3567 return 0; 3568} 3569_ACEOF 3570rm -f conftest.$ac_objext 3571if { (ac_try="$ac_compile" 3572case "(($ac_try" in 3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *) ac_try_echo=$ac_try;; 3575esac 3576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3577$as_echo "$ac_try_echo") >&5 3578 (eval "$ac_compile") 2>conftest.er1 3579 ac_status=$? 3580 grep -v '^ *+' conftest.er1 >conftest.err 3581 rm -f conftest.er1 3582 cat conftest.err >&5 3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3584 (exit $ac_status); } && { 3585 test -z "$ac_c_werror_flag" || 3586 test ! -s conftest.err 3587 } && test -s conftest.$ac_objext; then 3588 ac_cv_prog_cc_g=yes 3589else 3590 $as_echo "$as_me: failed program was:" >&5 3591sed 's/^/| /' conftest.$ac_ext >&5 3592 3593 CFLAGS="" 3594 cat >conftest.$ac_ext <<_ACEOF 3595/* confdefs.h. */ 3596_ACEOF 3597cat confdefs.h >>conftest.$ac_ext 3598cat >>conftest.$ac_ext <<_ACEOF 3599/* end confdefs.h. */ 3600 3601int 3602main () 3603{ 3604 3605 ; 3606 return 0; 3607} 3608_ACEOF 3609rm -f conftest.$ac_objext 3610if { (ac_try="$ac_compile" 3611case "(($ac_try" in 3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3613 *) ac_try_echo=$ac_try;; 3614esac 3615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3616$as_echo "$ac_try_echo") >&5 3617 (eval "$ac_compile") 2>conftest.er1 3618 ac_status=$? 3619 grep -v '^ *+' conftest.er1 >conftest.err 3620 rm -f conftest.er1 3621 cat conftest.err >&5 3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); } && { 3624 test -z "$ac_c_werror_flag" || 3625 test ! -s conftest.err 3626 } && test -s conftest.$ac_objext; then 3627 : 3628else 3629 $as_echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632 ac_c_werror_flag=$ac_save_c_werror_flag 3633 CFLAGS="-g" 3634 cat >conftest.$ac_ext <<_ACEOF 3635/* confdefs.h. */ 3636_ACEOF 3637cat confdefs.h >>conftest.$ac_ext 3638cat >>conftest.$ac_ext <<_ACEOF 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649rm -f conftest.$ac_objext 3650if { (ac_try="$ac_compile" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3656$as_echo "$ac_try_echo") >&5 3657 (eval "$ac_compile") 2>conftest.er1 3658 ac_status=$? 3659 grep -v '^ *+' conftest.er1 >conftest.err 3660 rm -f conftest.er1 3661 cat conftest.err >&5 3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3663 (exit $ac_status); } && { 3664 test -z "$ac_c_werror_flag" || 3665 test ! -s conftest.err 3666 } && test -s conftest.$ac_objext; then 3667 ac_cv_prog_cc_g=yes 3668else 3669 $as_echo "$as_me: failed program was:" >&5 3670sed 's/^/| /' conftest.$ac_ext >&5 3671 3672 3673fi 3674 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676fi 3677 3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3679fi 3680 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682 ac_c_werror_flag=$ac_save_c_werror_flag 3683fi 3684{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3685$as_echo "$ac_cv_prog_cc_g" >&6; } 3686if test "$ac_test_CFLAGS" = set; then 3687 CFLAGS=$ac_save_CFLAGS 3688elif test $ac_cv_prog_cc_g = yes; then 3689 if test "$GCC" = yes; then 3690 CFLAGS="-g -O2" 3691 else 3692 CFLAGS="-g" 3693 fi 3694else 3695 if test "$GCC" = yes; then 3696 CFLAGS="-O2" 3697 else 3698 CFLAGS= 3699 fi 3700fi 3701{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3702$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3703if test "${ac_cv_prog_cc_c89+set}" = set; then 3704 $as_echo_n "(cached) " >&6 3705else 3706 ac_cv_prog_cc_c89=no 3707ac_save_CC=$CC 3708cat >conftest.$ac_ext <<_ACEOF 3709/* confdefs.h. */ 3710_ACEOF 3711cat confdefs.h >>conftest.$ac_ext 3712cat >>conftest.$ac_ext <<_ACEOF 3713/* end confdefs.h. */ 3714#include <stdarg.h> 3715#include <stdio.h> 3716#include <sys/types.h> 3717#include <sys/stat.h> 3718/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3719struct buf { int x; }; 3720FILE * (*rcsopen) (struct buf *, struct stat *, int); 3721static char *e (p, i) 3722 char **p; 3723 int i; 3724{ 3725 return p[i]; 3726} 3727static char *f (char * (*g) (char **, int), char **p, ...) 3728{ 3729 char *s; 3730 va_list v; 3731 va_start (v,p); 3732 s = g (p, va_arg (v,int)); 3733 va_end (v); 3734 return s; 3735} 3736 3737/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3738 function prototypes and stuff, but not '\xHH' hex character constants. 3739 These don't provoke an error unfortunately, instead are silently treated 3740 as 'x'. The following induces an error, until -std is added to get 3741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3742 array size at least. It's necessary to write '\x00'==0 to get something 3743 that's true only with -std. */ 3744int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3745 3746/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3747 inside strings and character constants. */ 3748#define FOO(x) 'x' 3749int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3750 3751int test (int i, double x); 3752struct s1 {int (*f) (int a);}; 3753struct s2 {int (*f) (double a);}; 3754int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3755int argc; 3756char **argv; 3757int 3758main () 3759{ 3760return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3767do 3768 CC="$ac_save_CC $ac_arg" 3769 rm -f conftest.$ac_objext 3770if { (ac_try="$ac_compile" 3771case "(($ac_try" in 3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *) ac_try_echo=$ac_try;; 3774esac 3775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3776$as_echo "$ac_try_echo") >&5 3777 (eval "$ac_compile") 2>conftest.er1 3778 ac_status=$? 3779 grep -v '^ *+' conftest.er1 >conftest.err 3780 rm -f conftest.er1 3781 cat conftest.err >&5 3782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); } && { 3784 test -z "$ac_c_werror_flag" || 3785 test ! -s conftest.err 3786 } && test -s conftest.$ac_objext; then 3787 ac_cv_prog_cc_c89=$ac_arg 3788else 3789 $as_echo "$as_me: failed program was:" >&5 3790sed 's/^/| /' conftest.$ac_ext >&5 3791 3792 3793fi 3794 3795rm -f core conftest.err conftest.$ac_objext 3796 test "x$ac_cv_prog_cc_c89" != "xno" && break 3797done 3798rm -f conftest.$ac_ext 3799CC=$ac_save_CC 3800 3801fi 3802# AC_CACHE_VAL 3803case "x$ac_cv_prog_cc_c89" in 3804 x) 3805 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3806$as_echo "none needed" >&6; } ;; 3807 xno) 3808 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3809$as_echo "unsupported" >&6; } ;; 3810 *) 3811 CC="$CC $ac_cv_prog_cc_c89" 3812 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3814esac 3815 3816 3817ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822DEPDIR="${am__leading_dot}deps" 3823 3824ac_config_commands="$ac_config_commands depfiles" 3825 3826 3827am_make=${MAKE-make} 3828cat > confinc << 'END' 3829am__doit: 3830 @echo done 3831.PHONY: am__doit 3832END 3833# If we don't find an include directive, just comment out the code. 3834{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3835$as_echo_n "checking for style of include used by $am_make... " >&6; } 3836am__include="#" 3837am__quote= 3838_am_result=none 3839# First try GNU make style include. 3840echo "include confinc" > confmf 3841# We grep out `Entering directory' and `Leaving directory' 3842# messages which can occur if `w' ends up in MAKEFLAGS. 3843# In particular we don't look at `^make:' because GNU make might 3844# be invoked under some other name (usually "gmake"), in which 3845# case it prints its new name instead of `make'. 3846if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3847 am__include=include 3848 am__quote= 3849 _am_result=GNU 3850fi 3851# Now try BSD make style include. 3852if test "$am__include" = "#"; then 3853 echo '.include "confinc"' > confmf 3854 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3855 am__include=.include 3856 am__quote="\"" 3857 _am_result=BSD 3858 fi 3859fi 3860 3861 3862{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3863$as_echo "$_am_result" >&6; } 3864rm -f confinc confmf 3865 3866# Check whether --enable-dependency-tracking was given. 3867if test "${enable_dependency_tracking+set}" = set; then 3868 enableval=$enable_dependency_tracking; 3869fi 3870 3871if test "x$enable_dependency_tracking" != xno; then 3872 am_depcomp="$ac_aux_dir/depcomp" 3873 AMDEPBACKSLASH='\' 3874fi 3875 if test "x$enable_dependency_tracking" != xno; then 3876 AMDEP_TRUE= 3877 AMDEP_FALSE='#' 3878else 3879 AMDEP_TRUE='#' 3880 AMDEP_FALSE= 3881fi 3882 3883 3884 3885depcc="$CC" am_compiler_list= 3886 3887{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3888$as_echo_n "checking dependency style of $depcc... " >&6; } 3889if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3893 # We make a subdir and do the tests there. Otherwise we can end up 3894 # making bogus files that we don't know about and never remove. For 3895 # instance it was reported that on HP-UX the gcc test will end up 3896 # making a dummy file named `D' -- because `-MD' means `put the output 3897 # in D'. 3898 mkdir conftest.dir 3899 # Copy depcomp to subdir because otherwise we won't find it if we're 3900 # using a relative directory. 3901 cp "$am_depcomp" conftest.dir 3902 cd conftest.dir 3903 # We will build objects and dependencies in a subdirectory because 3904 # it helps to detect inapplicable dependency modes. For instance 3905 # both Tru64's cc and ICC support -MD to output dependencies as a 3906 # side effect of compilation, but ICC will put the dependencies in 3907 # the current directory while Tru64 will put them in the object 3908 # directory. 3909 mkdir sub 3910 3911 am_cv_CC_dependencies_compiler_type=none 3912 if test "$am_compiler_list" = ""; then 3913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3914 fi 3915 for depmode in $am_compiler_list; do 3916 # Setup a source with many dependencies, because some compilers 3917 # like to wrap large dependency lists on column 80 (with \), and 3918 # we should not choose a depcomp mode which is confused by this. 3919 # 3920 # We need to recreate these files for each test, as the compiler may 3921 # overwrite some of them when testing with obscure command lines. 3922 # This happens at least with the AIX C compiler. 3923 : > sub/conftest.c 3924 for i in 1 2 3 4 5 6; do 3925 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3926 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3927 # Solaris 8's {/usr,}/bin/sh. 3928 touch sub/conftst$i.h 3929 done 3930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3931 3932 case $depmode in 3933 nosideeffect) 3934 # after this tag, mechanisms are not by side-effect, so they'll 3935 # only be used when explicitly requested 3936 if test "x$enable_dependency_tracking" = xyes; then 3937 continue 3938 else 3939 break 3940 fi 3941 ;; 3942 none) break ;; 3943 esac 3944 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3945 # mode. It turns out that the SunPro C++ compiler does not properly 3946 # handle `-M -o', and we need to detect this. 3947 if depmode=$depmode \ 3948 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3950 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3951 >/dev/null 2>conftest.err && 3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3954 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3956 # icc doesn't choke on unknown options, it will just issue warnings 3957 # or remarks (even with -Werror). So we grep stderr for any message 3958 # that says an option was ignored or not supported. 3959 # When given -MP, icc 7.0 and 7.1 complain thusly: 3960 # icc: Command line warning: ignoring option '-M'; no argument required 3961 # The diagnosis changed in icc 8.0: 3962 # icc: Command line remark: option '-MP' not supported 3963 if (grep 'ignoring option' conftest.err || 3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3965 am_cv_CC_dependencies_compiler_type=$depmode 3966 break 3967 fi 3968 fi 3969 done 3970 3971 cd .. 3972 rm -rf conftest.dir 3973else 3974 am_cv_CC_dependencies_compiler_type=none 3975fi 3976 3977fi 3978{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3979$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3981 3982 if 3983 test "x$enable_dependency_tracking" != xno \ 3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3985 am__fastdepCC_TRUE= 3986 am__fastdepCC_FALSE='#' 3987else 3988 am__fastdepCC_TRUE='#' 3989 am__fastdepCC_FALSE= 3990fi 3991 3992 3993# Find a good install program. We prefer a C program (faster), 3994# so one script is as good as another. But avoid the broken or 3995# incompatible versions: 3996# SysV /etc/install, /usr/sbin/install 3997# SunOS /usr/etc/install 3998# IRIX /sbin/install 3999# AIX /bin/install 4000# AmigaOS /C/install, which installs bootblocks on floppy discs 4001# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4002# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4003# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4004# OS/2's system install, which has a completely different semantic 4005# ./install, which can be erroneously created by make from ./install.sh. 4006# Reject install programs that cannot install multiple files. 4007{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4008$as_echo_n "checking for a BSD-compatible install... " >&6; } 4009if test -z "$INSTALL"; then 4010if test "${ac_cv_path_install+set}" = set; then 4011 $as_echo_n "(cached) " >&6 4012else 4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 # Account for people who put trailing slashes in PATH elements. 4019case $as_dir/ in 4020 ./ | .// | /cC/* | \ 4021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4022 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4023 /usr/ucb/* ) ;; 4024 *) 4025 # OSF1 and SCO ODT 3.0 have their own names for install. 4026 # Don't use installbsd from OSF since it installs stuff as root 4027 # by default. 4028 for ac_prog in ginstall scoinst install; do 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4031 if test $ac_prog = install && 4032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4033 # AIX install. It has an incompatible calling convention. 4034 : 4035 elif test $ac_prog = install && 4036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4037 # program-specific install script used by HP pwplus--don't use. 4038 : 4039 else 4040 rm -rf conftest.one conftest.two conftest.dir 4041 echo one > conftest.one 4042 echo two > conftest.two 4043 mkdir conftest.dir 4044 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4045 test -s conftest.one && test -s conftest.two && 4046 test -s conftest.dir/conftest.one && 4047 test -s conftest.dir/conftest.two 4048 then 4049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4050 break 3 4051 fi 4052 fi 4053 fi 4054 done 4055 done 4056 ;; 4057esac 4058 4059done 4060IFS=$as_save_IFS 4061 4062rm -rf conftest.one conftest.two conftest.dir 4063 4064fi 4065 if test "${ac_cv_path_install+set}" = set; then 4066 INSTALL=$ac_cv_path_install 4067 else 4068 # As a last resort, use the slow shell script. Don't cache a 4069 # value for INSTALL within a source directory, because that will 4070 # break other packages using the cache if that directory is 4071 # removed, or if the value is a relative name. 4072 INSTALL=$ac_install_sh 4073 fi 4074fi 4075{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4076$as_echo "$INSTALL" >&6; } 4077 4078# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4079# It thinks the first close brace ends the variable substitution. 4080test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4081 4082test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4083 4084test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4085 4086# Check whether --enable-shared was given. 4087if test "${enable_shared+set}" = set; then 4088 enableval=$enable_shared; p=${PACKAGE-default} 4089 case $enableval in 4090 yes) enable_shared=yes ;; 4091 no) enable_shared=no ;; 4092 *) 4093 enable_shared=no 4094 # Look at the argument we got. We use all the common list separators. 4095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4096 for pkg in $enableval; do 4097 IFS="$lt_save_ifs" 4098 if test "X$pkg" = "X$p"; then 4099 enable_shared=yes 4100 fi 4101 done 4102 IFS="$lt_save_ifs" 4103 ;; 4104 esac 4105else 4106 enable_shared=yes 4107fi 4108 4109 4110# Check whether --enable-static was given. 4111if test "${enable_static+set}" = set; then 4112 enableval=$enable_static; p=${PACKAGE-default} 4113 case $enableval in 4114 yes) enable_static=yes ;; 4115 no) enable_static=no ;; 4116 *) 4117 enable_static=no 4118 # Look at the argument we got. We use all the common list separators. 4119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4120 for pkg in $enableval; do 4121 IFS="$lt_save_ifs" 4122 if test "X$pkg" = "X$p"; then 4123 enable_static=yes 4124 fi 4125 done 4126 IFS="$lt_save_ifs" 4127 ;; 4128 esac 4129else 4130 enable_static=yes 4131fi 4132 4133 4134# Check whether --enable-fast-install was given. 4135if test "${enable_fast_install+set}" = set; then 4136 enableval=$enable_fast_install; p=${PACKAGE-default} 4137 case $enableval in 4138 yes) enable_fast_install=yes ;; 4139 no) enable_fast_install=no ;; 4140 *) 4141 enable_fast_install=no 4142 # Look at the argument we got. We use all the common list separators. 4143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4144 for pkg in $enableval; do 4145 IFS="$lt_save_ifs" 4146 if test "X$pkg" = "X$p"; then 4147 enable_fast_install=yes 4148 fi 4149 done 4150 IFS="$lt_save_ifs" 4151 ;; 4152 esac 4153else 4154 enable_fast_install=yes 4155fi 4156 4157 4158{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4159$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4160if test "${lt_cv_path_SED+set}" = set; then 4161 $as_echo_n "(cached) " >&6 4162else 4163 # Loop through the user's path and test for sed and gsed. 4164# Then use that list of sed's as ones to test for truncation. 4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166for as_dir in $PATH 4167do 4168 IFS=$as_save_IFS 4169 test -z "$as_dir" && as_dir=. 4170 for lt_ac_prog in sed gsed; do 4171 for ac_exec_ext in '' $ac_executable_extensions; do 4172 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4173 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4174 fi 4175 done 4176 done 4177done 4178IFS=$as_save_IFS 4179lt_ac_max=0 4180lt_ac_count=0 4181# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4182# along with /bin/sed that truncates output. 4183for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4184 test ! -f $lt_ac_sed && continue 4185 cat /dev/null > conftest.in 4186 lt_ac_count=0 4187 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4188 # Check for GNU sed and select it if it is found. 4189 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4190 lt_cv_path_SED=$lt_ac_sed 4191 break 4192 fi 4193 while true; do 4194 cat conftest.in conftest.in >conftest.tmp 4195 mv conftest.tmp conftest.in 4196 cp conftest.in conftest.nl 4197 echo >>conftest.nl 4198 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4199 cmp -s conftest.out conftest.nl || break 4200 # 10000 chars as input seems more than enough 4201 test $lt_ac_count -gt 10 && break 4202 lt_ac_count=`expr $lt_ac_count + 1` 4203 if test $lt_ac_count -gt $lt_ac_max; then 4204 lt_ac_max=$lt_ac_count 4205 lt_cv_path_SED=$lt_ac_sed 4206 fi 4207 done 4208done 4209 4210fi 4211 4212SED=$lt_cv_path_SED 4213 4214{ $as_echo "$as_me:$LINENO: result: $SED" >&5 4215$as_echo "$SED" >&6; } 4216 4217{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4218$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4219if test "${ac_cv_path_GREP+set}" = set; then 4220 $as_echo_n "(cached) " >&6 4221else 4222 if test -z "$GREP"; then 4223 ac_path_GREP_found=false 4224 # Loop through the user's path and test for each of PROGNAME-LIST 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_prog in grep ggrep; do 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4234# Check for GNU ac_path_GREP and select it if it is found. 4235 # Check for GNU $ac_path_GREP 4236case `"$ac_path_GREP" --version 2>&1` in 4237*GNU*) 4238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4239*) 4240 ac_count=0 4241 $as_echo_n 0123456789 >"conftest.in" 4242 while : 4243 do 4244 cat "conftest.in" "conftest.in" >"conftest.tmp" 4245 mv "conftest.tmp" "conftest.in" 4246 cp "conftest.in" "conftest.nl" 4247 $as_echo 'GREP' >> "conftest.nl" 4248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4250 ac_count=`expr $ac_count + 1` 4251 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4252 # Best one so far, save it but keep looking for a better one 4253 ac_cv_path_GREP="$ac_path_GREP" 4254 ac_path_GREP_max=$ac_count 4255 fi 4256 # 10*(2^10) chars as input seems more than enough 4257 test $ac_count -gt 10 && break 4258 done 4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4260esac 4261 4262 $ac_path_GREP_found && break 3 4263 done 4264 done 4265done 4266IFS=$as_save_IFS 4267 if test -z "$ac_cv_path_GREP"; then 4268 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4269$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4270 { (exit 1); exit 1; }; } 4271 fi 4272else 4273 ac_cv_path_GREP=$GREP 4274fi 4275 4276fi 4277{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4278$as_echo "$ac_cv_path_GREP" >&6; } 4279 GREP="$ac_cv_path_GREP" 4280 4281 4282{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4283$as_echo_n "checking for egrep... " >&6; } 4284if test "${ac_cv_path_EGREP+set}" = set; then 4285 $as_echo_n "(cached) " >&6 4286else 4287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4288 then ac_cv_path_EGREP="$GREP -E" 4289 else 4290 if test -z "$EGREP"; then 4291 ac_path_EGREP_found=false 4292 # Loop through the user's path and test for each of PROGNAME-LIST 4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4295do 4296 IFS=$as_save_IFS 4297 test -z "$as_dir" && as_dir=. 4298 for ac_prog in egrep; do 4299 for ac_exec_ext in '' $ac_executable_extensions; do 4300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4302# Check for GNU ac_path_EGREP and select it if it is found. 4303 # Check for GNU $ac_path_EGREP 4304case `"$ac_path_EGREP" --version 2>&1` in 4305*GNU*) 4306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4307*) 4308 ac_count=0 4309 $as_echo_n 0123456789 >"conftest.in" 4310 while : 4311 do 4312 cat "conftest.in" "conftest.in" >"conftest.tmp" 4313 mv "conftest.tmp" "conftest.in" 4314 cp "conftest.in" "conftest.nl" 4315 $as_echo 'EGREP' >> "conftest.nl" 4316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4318 ac_count=`expr $ac_count + 1` 4319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4320 # Best one so far, save it but keep looking for a better one 4321 ac_cv_path_EGREP="$ac_path_EGREP" 4322 ac_path_EGREP_max=$ac_count 4323 fi 4324 # 10*(2^10) chars as input seems more than enough 4325 test $ac_count -gt 10 && break 4326 done 4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4328esac 4329 4330 $ac_path_EGREP_found && break 3 4331 done 4332 done 4333done 4334IFS=$as_save_IFS 4335 if test -z "$ac_cv_path_EGREP"; then 4336 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4337$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4338 { (exit 1); exit 1; }; } 4339 fi 4340else 4341 ac_cv_path_EGREP=$EGREP 4342fi 4343 4344 fi 4345fi 4346{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4347$as_echo "$ac_cv_path_EGREP" >&6; } 4348 EGREP="$ac_cv_path_EGREP" 4349 4350 4351 4352# Check whether --with-gnu-ld was given. 4353if test "${with_gnu_ld+set}" = set; then 4354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4355else 4356 with_gnu_ld=no 4357fi 4358 4359ac_prog=ld 4360if test "$GCC" = yes; then 4361 # Check if gcc -print-prog-name=ld gives a path. 4362 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4363$as_echo_n "checking for ld used by $CC... " >&6; } 4364 case $host in 4365 *-*-mingw*) 4366 # gcc leaves a trailing carriage return which upsets mingw 4367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4368 *) 4369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4370 esac 4371 case $ac_prog in 4372 # Accept absolute paths. 4373 [\\/]* | ?:[\\/]*) 4374 re_direlt='/[^/][^/]*/\.\./' 4375 # Canonicalize the pathname of ld 4376 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4377 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4378 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4379 done 4380 test -z "$LD" && LD="$ac_prog" 4381 ;; 4382 "") 4383 # If it fails, then pretend we aren't using GCC. 4384 ac_prog=ld 4385 ;; 4386 *) 4387 # If it is relative, then search for the first ld in PATH. 4388 with_gnu_ld=unknown 4389 ;; 4390 esac 4391elif test "$with_gnu_ld" = yes; then 4392 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4393$as_echo_n "checking for GNU ld... " >&6; } 4394else 4395 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4396$as_echo_n "checking for non-GNU ld... " >&6; } 4397fi 4398if test "${lt_cv_path_LD+set}" = set; then 4399 $as_echo_n "(cached) " >&6 4400else 4401 if test -z "$LD"; then 4402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4403 for ac_dir in $PATH; do 4404 IFS="$lt_save_ifs" 4405 test -z "$ac_dir" && ac_dir=. 4406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4407 lt_cv_path_LD="$ac_dir/$ac_prog" 4408 # Check to see if the program is GNU ld. I'd rather use --version, 4409 # but apparently some variants of GNU ld only accept -v. 4410 # Break only if it was the GNU/non-GNU ld that we prefer. 4411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4412 *GNU* | *'with BFD'*) 4413 test "$with_gnu_ld" != no && break 4414 ;; 4415 *) 4416 test "$with_gnu_ld" != yes && break 4417 ;; 4418 esac 4419 fi 4420 done 4421 IFS="$lt_save_ifs" 4422else 4423 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4424fi 4425fi 4426 4427LD="$lt_cv_path_LD" 4428if test -n "$LD"; then 4429 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4430$as_echo "$LD" >&6; } 4431else 4432 { $as_echo "$as_me:$LINENO: result: no" >&5 4433$as_echo "no" >&6; } 4434fi 4435test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4436$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4437 { (exit 1); exit 1; }; } 4438{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4439$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4440if test "${lt_cv_prog_gnu_ld+set}" = set; then 4441 $as_echo_n "(cached) " >&6 4442else 4443 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4444case `$LD -v 2>&1 </dev/null` in 4445*GNU* | *'with BFD'*) 4446 lt_cv_prog_gnu_ld=yes 4447 ;; 4448*) 4449 lt_cv_prog_gnu_ld=no 4450 ;; 4451esac 4452fi 4453{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4454$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4455with_gnu_ld=$lt_cv_prog_gnu_ld 4456 4457 4458{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4459$as_echo_n "checking for $LD option to reload object files... " >&6; } 4460if test "${lt_cv_ld_reload_flag+set}" = set; then 4461 $as_echo_n "(cached) " >&6 4462else 4463 lt_cv_ld_reload_flag='-r' 4464fi 4465{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4466$as_echo "$lt_cv_ld_reload_flag" >&6; } 4467reload_flag=$lt_cv_ld_reload_flag 4468case $reload_flag in 4469"" | " "*) ;; 4470*) reload_flag=" $reload_flag" ;; 4471esac 4472reload_cmds='$LD$reload_flag -o $output$reload_objs' 4473case $host_os in 4474 darwin*) 4475 if test "$GCC" = yes; then 4476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4477 else 4478 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4479 fi 4480 ;; 4481esac 4482 4483{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4484$as_echo_n "checking for BSD-compatible nm... " >&6; } 4485if test "${lt_cv_path_NM+set}" = set; then 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$NM"; then 4489 # Let the user override the test. 4490 lt_cv_path_NM="$NM" 4491else 4492 lt_nm_to_check="${ac_tool_prefix}nm" 4493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4494 lt_nm_to_check="$lt_nm_to_check nm" 4495 fi 4496 for lt_tmp_nm in $lt_nm_to_check; do 4497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4499 IFS="$lt_save_ifs" 4500 test -z "$ac_dir" && ac_dir=. 4501 tmp_nm="$ac_dir/$lt_tmp_nm" 4502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4503 # Check to see if the nm accepts a BSD-compat flag. 4504 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4505 # nm: unknown option "B" ignored 4506 # Tru64's nm complains that /dev/null is an invalid object file 4507 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4508 */dev/null* | *'Invalid file or object type'*) 4509 lt_cv_path_NM="$tmp_nm -B" 4510 break 4511 ;; 4512 *) 4513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4514 */dev/null*) 4515 lt_cv_path_NM="$tmp_nm -p" 4516 break 4517 ;; 4518 *) 4519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4520 continue # so that we can try to find one that supports BSD flags 4521 ;; 4522 esac 4523 ;; 4524 esac 4525 fi 4526 done 4527 IFS="$lt_save_ifs" 4528 done 4529 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4530fi 4531fi 4532{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4533$as_echo "$lt_cv_path_NM" >&6; } 4534NM="$lt_cv_path_NM" 4535 4536{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4537$as_echo_n "checking whether ln -s works... " >&6; } 4538LN_S=$as_ln_s 4539if test "$LN_S" = "ln -s"; then 4540 { $as_echo "$as_me:$LINENO: result: yes" >&5 4541$as_echo "yes" >&6; } 4542else 4543 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4544$as_echo "no, using $LN_S" >&6; } 4545fi 4546 4547{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4548$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4549if test "${lt_cv_deplibs_check_method+set}" = set; then 4550 $as_echo_n "(cached) " >&6 4551else 4552 lt_cv_file_magic_cmd='$MAGIC_CMD' 4553lt_cv_file_magic_test_file= 4554lt_cv_deplibs_check_method='unknown' 4555# Need to set the preceding variable on all platforms that support 4556# interlibrary dependencies. 4557# 'none' -- dependencies not supported. 4558# `unknown' -- same as none, but documents that we really don't know. 4559# 'pass_all' -- all dependencies passed with no checks. 4560# 'test_compile' -- check by making test program. 4561# 'file_magic [[regex]]' -- check by looking for files in library path 4562# which responds to the $file_magic_cmd with a given extended regex. 4563# If you have `file' or equivalent on your system and you're not sure 4564# whether `pass_all' will *always* work, you probably want this one. 4565 4566case $host_os in 4567aix4* | aix5*) 4568 lt_cv_deplibs_check_method=pass_all 4569 ;; 4570 4571beos*) 4572 lt_cv_deplibs_check_method=pass_all 4573 ;; 4574 4575bsdi[45]*) 4576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4577 lt_cv_file_magic_cmd='/usr/bin/file -L' 4578 lt_cv_file_magic_test_file=/shlib/libc.so 4579 ;; 4580 4581cygwin*) 4582 # func_win32_libid is a shell function defined in ltmain.sh 4583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4584 lt_cv_file_magic_cmd='func_win32_libid' 4585 ;; 4586 4587mingw* | pw32*) 4588 # Base MSYS/MinGW do not provide the 'file' command needed by 4589 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4590 # unless we find 'file', for example because we are cross-compiling. 4591 if ( file / ) >/dev/null 2>&1; then 4592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4593 lt_cv_file_magic_cmd='func_win32_libid' 4594 else 4595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4596 lt_cv_file_magic_cmd='$OBJDUMP -f' 4597 fi 4598 ;; 4599 4600darwin* | rhapsody*) 4601 lt_cv_deplibs_check_method=pass_all 4602 ;; 4603 4604freebsd* | dragonfly*) 4605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4606 case $host_cpu in 4607 i*86 ) 4608 # Not sure whether the presence of OpenBSD here was a mistake. 4609 # Let's accept both of them until this is cleared up. 4610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4611 lt_cv_file_magic_cmd=/usr/bin/file 4612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4613 ;; 4614 esac 4615 else 4616 lt_cv_deplibs_check_method=pass_all 4617 fi 4618 ;; 4619 4620gnu*) 4621 lt_cv_deplibs_check_method=pass_all 4622 ;; 4623 4624hpux10.20* | hpux11*) 4625 lt_cv_file_magic_cmd=/usr/bin/file 4626 case $host_cpu in 4627 ia64*) 4628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4630 ;; 4631 hppa*64*) 4632 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]' 4633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4634 ;; 4635 *) 4636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4637 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4638 ;; 4639 esac 4640 ;; 4641 4642interix[3-9]*) 4643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4645 ;; 4646 4647irix5* | irix6* | nonstopux*) 4648 case $LD in 4649 *-32|*"-32 ") libmagic=32-bit;; 4650 *-n32|*"-n32 ") libmagic=N32;; 4651 *-64|*"-64 ") libmagic=64-bit;; 4652 *) libmagic=never-match;; 4653 esac 4654 lt_cv_deplibs_check_method=pass_all 4655 ;; 4656 4657# This must be Linux ELF. 4658linux* | k*bsd*-gnu) 4659 lt_cv_deplibs_check_method=pass_all 4660 ;; 4661 4662netbsd*) 4663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4665 else 4666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4667 fi 4668 ;; 4669 4670newos6*) 4671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4672 lt_cv_file_magic_cmd=/usr/bin/file 4673 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4674 ;; 4675 4676nto-qnx*) 4677 lt_cv_deplibs_check_method=unknown 4678 ;; 4679 4680openbsd*) 4681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4683 else 4684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4685 fi 4686 ;; 4687 4688osf3* | osf4* | osf5*) 4689 lt_cv_deplibs_check_method=pass_all 4690 ;; 4691 4692rdos*) 4693 lt_cv_deplibs_check_method=pass_all 4694 ;; 4695 4696solaris*) 4697 lt_cv_deplibs_check_method=pass_all 4698 ;; 4699 4700sysv4 | sysv4.3*) 4701 case $host_vendor in 4702 motorola) 4703 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]' 4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4705 ;; 4706 ncr) 4707 lt_cv_deplibs_check_method=pass_all 4708 ;; 4709 sequent) 4710 lt_cv_file_magic_cmd='/bin/file' 4711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4712 ;; 4713 sni) 4714 lt_cv_file_magic_cmd='/bin/file' 4715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4716 lt_cv_file_magic_test_file=/lib/libc.so 4717 ;; 4718 siemens) 4719 lt_cv_deplibs_check_method=pass_all 4720 ;; 4721 pc) 4722 lt_cv_deplibs_check_method=pass_all 4723 ;; 4724 esac 4725 ;; 4726 4727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4728 lt_cv_deplibs_check_method=pass_all 4729 ;; 4730esac 4731 4732fi 4733{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4734$as_echo "$lt_cv_deplibs_check_method" >&6; } 4735file_magic_cmd=$lt_cv_file_magic_cmd 4736deplibs_check_method=$lt_cv_deplibs_check_method 4737test -z "$deplibs_check_method" && deplibs_check_method=unknown 4738 4739 4740 4741 4742# If no C compiler was specified, use CC. 4743LTCC=${LTCC-"$CC"} 4744 4745# If no C compiler flags were specified, use CFLAGS. 4746LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4747 4748# Allow CC to be a program name with arguments. 4749compiler=$CC 4750 4751 4752# Check whether --enable-libtool-lock was given. 4753if test "${enable_libtool_lock+set}" = set; then 4754 enableval=$enable_libtool_lock; 4755fi 4756 4757test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4758 4759# Some flags need to be propagated to the compiler or linker for good 4760# libtool support. 4761case $host in 4762ia64-*-hpux*) 4763 # Find out which ABI we are using. 4764 echo 'int i;' > conftest.$ac_ext 4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4766 (eval $ac_compile) 2>&5 4767 ac_status=$? 4768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4769 (exit $ac_status); }; then 4770 case `/usr/bin/file conftest.$ac_objext` in 4771 *ELF-32*) 4772 HPUX_IA64_MODE="32" 4773 ;; 4774 *ELF-64*) 4775 HPUX_IA64_MODE="64" 4776 ;; 4777 esac 4778 fi 4779 rm -rf conftest* 4780 ;; 4781*-*-irix6*) 4782 # Find out which ABI we are using. 4783 echo '#line 4783 "configure"' > conftest.$ac_ext 4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4785 (eval $ac_compile) 2>&5 4786 ac_status=$? 4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); }; then 4789 if test "$lt_cv_prog_gnu_ld" = yes; then 4790 case `/usr/bin/file conftest.$ac_objext` in 4791 *32-bit*) 4792 LD="${LD-ld} -melf32bsmip" 4793 ;; 4794 *N32*) 4795 LD="${LD-ld} -melf32bmipn32" 4796 ;; 4797 *64-bit*) 4798 LD="${LD-ld} -melf64bmip" 4799 ;; 4800 esac 4801 else 4802 case `/usr/bin/file conftest.$ac_objext` in 4803 *32-bit*) 4804 LD="${LD-ld} -32" 4805 ;; 4806 *N32*) 4807 LD="${LD-ld} -n32" 4808 ;; 4809 *64-bit*) 4810 LD="${LD-ld} -64" 4811 ;; 4812 esac 4813 fi 4814 fi 4815 rm -rf conftest* 4816 ;; 4817 4818x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4819s390*-*linux*|sparc*-*linux*) 4820 # Find out which ABI we are using. 4821 echo 'int i;' > conftest.$ac_ext 4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4823 (eval $ac_compile) 2>&5 4824 ac_status=$? 4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); }; then 4827 case `/usr/bin/file conftest.o` in 4828 *32-bit*) 4829 case $host in 4830 x86_64-*kfreebsd*-gnu) 4831 LD="${LD-ld} -m elf_i386_fbsd" 4832 ;; 4833 x86_64-*linux*) 4834 LD="${LD-ld} -m elf_i386" 4835 ;; 4836 ppc64-*linux*|powerpc64-*linux*) 4837 LD="${LD-ld} -m elf32ppclinux" 4838 ;; 4839 s390x-*linux*) 4840 LD="${LD-ld} -m elf_s390" 4841 ;; 4842 sparc64-*linux*) 4843 LD="${LD-ld} -m elf32_sparc" 4844 ;; 4845 esac 4846 ;; 4847 *64-bit*) 4848 case $host in 4849 x86_64-*kfreebsd*-gnu) 4850 LD="${LD-ld} -m elf_x86_64_fbsd" 4851 ;; 4852 x86_64-*linux*) 4853 LD="${LD-ld} -m elf_x86_64" 4854 ;; 4855 ppc*-*linux*|powerpc*-*linux*) 4856 LD="${LD-ld} -m elf64ppc" 4857 ;; 4858 s390*-*linux*) 4859 LD="${LD-ld} -m elf64_s390" 4860 ;; 4861 sparc*-*linux*) 4862 LD="${LD-ld} -m elf64_sparc" 4863 ;; 4864 esac 4865 ;; 4866 esac 4867 fi 4868 rm -rf conftest* 4869 ;; 4870 4871*-*-sco3.2v5*) 4872 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4873 SAVE_CFLAGS="$CFLAGS" 4874 CFLAGS="$CFLAGS -belf" 4875 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4876$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4877if test "${lt_cv_cc_needs_belf+set}" = set; then 4878 $as_echo_n "(cached) " >&6 4879else 4880 ac_ext=c 4881ac_cpp='$CPP $CPPFLAGS' 4882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4884ac_compiler_gnu=$ac_cv_c_compiler_gnu 4885 4886 cat >conftest.$ac_ext <<_ACEOF 4887/* confdefs.h. */ 4888_ACEOF 4889cat confdefs.h >>conftest.$ac_ext 4890cat >>conftest.$ac_ext <<_ACEOF 4891/* end confdefs.h. */ 4892 4893int 4894main () 4895{ 4896 4897 ; 4898 return 0; 4899} 4900_ACEOF 4901rm -f conftest.$ac_objext conftest$ac_exeext 4902if { (ac_try="$ac_link" 4903case "(($ac_try" in 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4905 *) ac_try_echo=$ac_try;; 4906esac 4907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4908$as_echo "$ac_try_echo") >&5 4909 (eval "$ac_link") 2>conftest.er1 4910 ac_status=$? 4911 grep -v '^ *+' conftest.er1 >conftest.err 4912 rm -f conftest.er1 4913 cat conftest.err >&5 4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4915 (exit $ac_status); } && { 4916 test -z "$ac_c_werror_flag" || 4917 test ! -s conftest.err 4918 } && test -s conftest$ac_exeext && { 4919 test "$cross_compiling" = yes || 4920 $as_test_x conftest$ac_exeext 4921 }; then 4922 lt_cv_cc_needs_belf=yes 4923else 4924 $as_echo "$as_me: failed program was:" >&5 4925sed 's/^/| /' conftest.$ac_ext >&5 4926 4927 lt_cv_cc_needs_belf=no 4928fi 4929 4930rm -rf conftest.dSYM 4931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4932 conftest$ac_exeext conftest.$ac_ext 4933 ac_ext=c 4934ac_cpp='$CPP $CPPFLAGS' 4935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4937ac_compiler_gnu=$ac_cv_c_compiler_gnu 4938 4939fi 4940{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4941$as_echo "$lt_cv_cc_needs_belf" >&6; } 4942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4944 CFLAGS="$SAVE_CFLAGS" 4945 fi 4946 ;; 4947sparc*-*solaris*) 4948 # Find out which ABI we are using. 4949 echo 'int i;' > conftest.$ac_ext 4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4951 (eval $ac_compile) 2>&5 4952 ac_status=$? 4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4954 (exit $ac_status); }; then 4955 case `/usr/bin/file conftest.o` in 4956 *64-bit*) 4957 case $lt_cv_prog_gnu_ld in 4958 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4959 *) LD="${LD-ld} -64" ;; 4960 esac 4961 ;; 4962 esac 4963 fi 4964 rm -rf conftest* 4965 ;; 4966 4967 4968esac 4969 4970need_locks="$enable_libtool_lock" 4971 4972 4973ac_ext=c 4974ac_cpp='$CPP $CPPFLAGS' 4975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4977ac_compiler_gnu=$ac_cv_c_compiler_gnu 4978{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4979$as_echo_n "checking how to run the C preprocessor... " >&6; } 4980# On Suns, sometimes $CPP names a directory. 4981if test -n "$CPP" && test -d "$CPP"; then 4982 CPP= 4983fi 4984if test -z "$CPP"; then 4985 if test "${ac_cv_prog_CPP+set}" = set; then 4986 $as_echo_n "(cached) " >&6 4987else 4988 # Double quotes because CPP needs to be expanded 4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4990 do 4991 ac_preproc_ok=false 4992for ac_c_preproc_warn_flag in '' yes 4993do 4994 # Use a header file that comes with gcc, so configuring glibc 4995 # with a fresh cross-compiler works. 4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4997 # <limits.h> exists even on freestanding compilers. 4998 # On the NeXT, cc -E runs the code through the compiler's parser, 4999 # not just through cpp. "Syntax error" is here to catch this case. 5000 cat >conftest.$ac_ext <<_ACEOF 5001/* confdefs.h. */ 5002_ACEOF 5003cat confdefs.h >>conftest.$ac_ext 5004cat >>conftest.$ac_ext <<_ACEOF 5005/* end confdefs.h. */ 5006#ifdef __STDC__ 5007# include <limits.h> 5008#else 5009# include <assert.h> 5010#endif 5011 Syntax error 5012_ACEOF 5013if { (ac_try="$ac_cpp conftest.$ac_ext" 5014case "(($ac_try" in 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016 *) ac_try_echo=$ac_try;; 5017esac 5018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5019$as_echo "$ac_try_echo") >&5 5020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5021 ac_status=$? 5022 grep -v '^ *+' conftest.er1 >conftest.err 5023 rm -f conftest.er1 5024 cat conftest.err >&5 5025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5026 (exit $ac_status); } >/dev/null && { 5027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5028 test ! -s conftest.err 5029 }; then 5030 : 5031else 5032 $as_echo "$as_me: failed program was:" >&5 5033sed 's/^/| /' conftest.$ac_ext >&5 5034 5035 # Broken: fails on valid input. 5036continue 5037fi 5038 5039rm -f conftest.err conftest.$ac_ext 5040 5041 # OK, works on sane cases. Now check whether nonexistent headers 5042 # can be detected and how. 5043 cat >conftest.$ac_ext <<_ACEOF 5044/* confdefs.h. */ 5045_ACEOF 5046cat confdefs.h >>conftest.$ac_ext 5047cat >>conftest.$ac_ext <<_ACEOF 5048/* end confdefs.h. */ 5049#include <ac_nonexistent.h> 5050_ACEOF 5051if { (ac_try="$ac_cpp conftest.$ac_ext" 5052case "(($ac_try" in 5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5054 *) ac_try_echo=$ac_try;; 5055esac 5056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5057$as_echo "$ac_try_echo") >&5 5058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5059 ac_status=$? 5060 grep -v '^ *+' conftest.er1 >conftest.err 5061 rm -f conftest.er1 5062 cat conftest.err >&5 5063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); } >/dev/null && { 5065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5066 test ! -s conftest.err 5067 }; then 5068 # Broken: success on invalid input. 5069continue 5070else 5071 $as_echo "$as_me: failed program was:" >&5 5072sed 's/^/| /' conftest.$ac_ext >&5 5073 5074 # Passes both tests. 5075ac_preproc_ok=: 5076break 5077fi 5078 5079rm -f conftest.err conftest.$ac_ext 5080 5081done 5082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5083rm -f conftest.err conftest.$ac_ext 5084if $ac_preproc_ok; then 5085 break 5086fi 5087 5088 done 5089 ac_cv_prog_CPP=$CPP 5090 5091fi 5092 CPP=$ac_cv_prog_CPP 5093else 5094 ac_cv_prog_CPP=$CPP 5095fi 5096{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 5097$as_echo "$CPP" >&6; } 5098ac_preproc_ok=false 5099for ac_c_preproc_warn_flag in '' yes 5100do 5101 # Use a header file that comes with gcc, so configuring glibc 5102 # with a fresh cross-compiler works. 5103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5104 # <limits.h> exists even on freestanding compilers. 5105 # On the NeXT, cc -E runs the code through the compiler's parser, 5106 # not just through cpp. "Syntax error" is here to catch this case. 5107 cat >conftest.$ac_ext <<_ACEOF 5108/* confdefs.h. */ 5109_ACEOF 5110cat confdefs.h >>conftest.$ac_ext 5111cat >>conftest.$ac_ext <<_ACEOF 5112/* end confdefs.h. */ 5113#ifdef __STDC__ 5114# include <limits.h> 5115#else 5116# include <assert.h> 5117#endif 5118 Syntax error 5119_ACEOF 5120if { (ac_try="$ac_cpp conftest.$ac_ext" 5121case "(($ac_try" in 5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5123 *) ac_try_echo=$ac_try;; 5124esac 5125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5126$as_echo "$ac_try_echo") >&5 5127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5128 ac_status=$? 5129 grep -v '^ *+' conftest.er1 >conftest.err 5130 rm -f conftest.er1 5131 cat conftest.err >&5 5132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } >/dev/null && { 5134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5135 test ! -s conftest.err 5136 }; then 5137 : 5138else 5139 $as_echo "$as_me: failed program was:" >&5 5140sed 's/^/| /' conftest.$ac_ext >&5 5141 5142 # Broken: fails on valid input. 5143continue 5144fi 5145 5146rm -f conftest.err conftest.$ac_ext 5147 5148 # OK, works on sane cases. Now check whether nonexistent headers 5149 # can be detected and how. 5150 cat >conftest.$ac_ext <<_ACEOF 5151/* confdefs.h. */ 5152_ACEOF 5153cat confdefs.h >>conftest.$ac_ext 5154cat >>conftest.$ac_ext <<_ACEOF 5155/* end confdefs.h. */ 5156#include <ac_nonexistent.h> 5157_ACEOF 5158if { (ac_try="$ac_cpp conftest.$ac_ext" 5159case "(($ac_try" in 5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5161 *) ac_try_echo=$ac_try;; 5162esac 5163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5164$as_echo "$ac_try_echo") >&5 5165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5166 ac_status=$? 5167 grep -v '^ *+' conftest.er1 >conftest.err 5168 rm -f conftest.er1 5169 cat conftest.err >&5 5170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 (exit $ac_status); } >/dev/null && { 5172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5173 test ! -s conftest.err 5174 }; then 5175 # Broken: success on invalid input. 5176continue 5177else 5178 $as_echo "$as_me: failed program was:" >&5 5179sed 's/^/| /' conftest.$ac_ext >&5 5180 5181 # Passes both tests. 5182ac_preproc_ok=: 5183break 5184fi 5185 5186rm -f conftest.err conftest.$ac_ext 5187 5188done 5189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5190rm -f conftest.err conftest.$ac_ext 5191if $ac_preproc_ok; then 5192 : 5193else 5194 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5196{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5197See \`config.log' for more details." >&5 5198$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5199See \`config.log' for more details." >&2;} 5200 { (exit 1); exit 1; }; }; } 5201fi 5202 5203ac_ext=c 5204ac_cpp='$CPP $CPPFLAGS' 5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5207ac_compiler_gnu=$ac_cv_c_compiler_gnu 5208 5209 5210{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5211$as_echo_n "checking for ANSI C header files... " >&6; } 5212if test "${ac_cv_header_stdc+set}" = set; then 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat >conftest.$ac_ext <<_ACEOF 5216/* confdefs.h. */ 5217_ACEOF 5218cat confdefs.h >>conftest.$ac_ext 5219cat >>conftest.$ac_ext <<_ACEOF 5220/* end confdefs.h. */ 5221#include <stdlib.h> 5222#include <stdarg.h> 5223#include <string.h> 5224#include <float.h> 5225 5226int 5227main () 5228{ 5229 5230 ; 5231 return 0; 5232} 5233_ACEOF 5234rm -f conftest.$ac_objext 5235if { (ac_try="$ac_compile" 5236case "(($ac_try" in 5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5238 *) ac_try_echo=$ac_try;; 5239esac 5240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5241$as_echo "$ac_try_echo") >&5 5242 (eval "$ac_compile") 2>conftest.er1 5243 ac_status=$? 5244 grep -v '^ *+' conftest.er1 >conftest.err 5245 rm -f conftest.er1 5246 cat conftest.err >&5 5247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5248 (exit $ac_status); } && { 5249 test -z "$ac_c_werror_flag" || 5250 test ! -s conftest.err 5251 } && test -s conftest.$ac_objext; then 5252 ac_cv_header_stdc=yes 5253else 5254 $as_echo "$as_me: failed program was:" >&5 5255sed 's/^/| /' conftest.$ac_ext >&5 5256 5257 ac_cv_header_stdc=no 5258fi 5259 5260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5261 5262if test $ac_cv_header_stdc = yes; then 5263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5264 cat >conftest.$ac_ext <<_ACEOF 5265/* confdefs.h. */ 5266_ACEOF 5267cat confdefs.h >>conftest.$ac_ext 5268cat >>conftest.$ac_ext <<_ACEOF 5269/* end confdefs.h. */ 5270#include <string.h> 5271 5272_ACEOF 5273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5274 $EGREP "memchr" >/dev/null 2>&1; then 5275 : 5276else 5277 ac_cv_header_stdc=no 5278fi 5279rm -f conftest* 5280 5281fi 5282 5283if test $ac_cv_header_stdc = yes; then 5284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5285 cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291#include <stdlib.h> 5292 5293_ACEOF 5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5295 $EGREP "free" >/dev/null 2>&1; then 5296 : 5297else 5298 ac_cv_header_stdc=no 5299fi 5300rm -f conftest* 5301 5302fi 5303 5304if test $ac_cv_header_stdc = yes; then 5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5306 if test "$cross_compiling" = yes; then 5307 : 5308else 5309 cat >conftest.$ac_ext <<_ACEOF 5310/* confdefs.h. */ 5311_ACEOF 5312cat confdefs.h >>conftest.$ac_ext 5313cat >>conftest.$ac_ext <<_ACEOF 5314/* end confdefs.h. */ 5315#include <ctype.h> 5316#include <stdlib.h> 5317#if ((' ' & 0x0FF) == 0x020) 5318# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5319# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5320#else 5321# define ISLOWER(c) \ 5322 (('a' <= (c) && (c) <= 'i') \ 5323 || ('j' <= (c) && (c) <= 'r') \ 5324 || ('s' <= (c) && (c) <= 'z')) 5325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5326#endif 5327 5328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5329int 5330main () 5331{ 5332 int i; 5333 for (i = 0; i < 256; i++) 5334 if (XOR (islower (i), ISLOWER (i)) 5335 || toupper (i) != TOUPPER (i)) 5336 return 2; 5337 return 0; 5338} 5339_ACEOF 5340rm -f conftest$ac_exeext 5341if { (ac_try="$ac_link" 5342case "(($ac_try" in 5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5344 *) ac_try_echo=$ac_try;; 5345esac 5346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5347$as_echo "$ac_try_echo") >&5 5348 (eval "$ac_link") 2>&5 5349 ac_status=$? 5350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5352 { (case "(($ac_try" in 5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5354 *) ac_try_echo=$ac_try;; 5355esac 5356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5357$as_echo "$ac_try_echo") >&5 5358 (eval "$ac_try") 2>&5 5359 ac_status=$? 5360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5361 (exit $ac_status); }; }; then 5362 : 5363else 5364 $as_echo "$as_me: program exited with status $ac_status" >&5 5365$as_echo "$as_me: failed program was:" >&5 5366sed 's/^/| /' conftest.$ac_ext >&5 5367 5368( exit $ac_status ) 5369ac_cv_header_stdc=no 5370fi 5371rm -rf conftest.dSYM 5372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5373fi 5374 5375 5376fi 5377fi 5378{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5379$as_echo "$ac_cv_header_stdc" >&6; } 5380if test $ac_cv_header_stdc = yes; then 5381 5382cat >>confdefs.h <<\_ACEOF 5383#define STDC_HEADERS 1 5384_ACEOF 5385 5386fi 5387 5388# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5399 inttypes.h stdint.h unistd.h 5400do 5401as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5402{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5403$as_echo_n "checking for $ac_header... " >&6; } 5404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5405 $as_echo_n "(cached) " >&6 5406else 5407 cat >conftest.$ac_ext <<_ACEOF 5408/* confdefs.h. */ 5409_ACEOF 5410cat confdefs.h >>conftest.$ac_ext 5411cat >>conftest.$ac_ext <<_ACEOF 5412/* end confdefs.h. */ 5413$ac_includes_default 5414 5415#include <$ac_header> 5416_ACEOF 5417rm -f conftest.$ac_objext 5418if { (ac_try="$ac_compile" 5419case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422esac 5423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5424$as_echo "$ac_try_echo") >&5 5425 (eval "$ac_compile") 2>conftest.er1 5426 ac_status=$? 5427 grep -v '^ *+' conftest.er1 >conftest.err 5428 rm -f conftest.er1 5429 cat conftest.err >&5 5430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5431 (exit $ac_status); } && { 5432 test -z "$ac_c_werror_flag" || 5433 test ! -s conftest.err 5434 } && test -s conftest.$ac_objext; then 5435 eval "$as_ac_Header=yes" 5436else 5437 $as_echo "$as_me: failed program was:" >&5 5438sed 's/^/| /' conftest.$ac_ext >&5 5439 5440 eval "$as_ac_Header=no" 5441fi 5442 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444fi 5445ac_res=`eval 'as_val=${'$as_ac_Header'} 5446 $as_echo "$as_val"'` 5447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5448$as_echo "$ac_res" >&6; } 5449as_val=`eval 'as_val=${'$as_ac_Header'} 5450 $as_echo "$as_val"'` 5451 if test "x$as_val" = x""yes; then 5452 cat >>confdefs.h <<_ACEOF 5453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5454_ACEOF 5455 5456fi 5457 5458done 5459 5460 5461 5462for ac_header in dlfcn.h 5463do 5464as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5467$as_echo_n "checking for $ac_header... " >&6; } 5468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5469 $as_echo_n "(cached) " >&6 5470fi 5471ac_res=`eval 'as_val=${'$as_ac_Header'} 5472 $as_echo "$as_val"'` 5473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5474$as_echo "$ac_res" >&6; } 5475else 5476 # Is the header compilable? 5477{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5478$as_echo_n "checking $ac_header usability... " >&6; } 5479cat >conftest.$ac_ext <<_ACEOF 5480/* confdefs.h. */ 5481_ACEOF 5482cat confdefs.h >>conftest.$ac_ext 5483cat >>conftest.$ac_ext <<_ACEOF 5484/* end confdefs.h. */ 5485$ac_includes_default 5486#include <$ac_header> 5487_ACEOF 5488rm -f conftest.$ac_objext 5489if { (ac_try="$ac_compile" 5490case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493esac 5494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5495$as_echo "$ac_try_echo") >&5 5496 (eval "$ac_compile") 2>conftest.er1 5497 ac_status=$? 5498 grep -v '^ *+' conftest.er1 >conftest.err 5499 rm -f conftest.er1 5500 cat conftest.err >&5 5501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); } && { 5503 test -z "$ac_c_werror_flag" || 5504 test ! -s conftest.err 5505 } && test -s conftest.$ac_objext; then 5506 ac_header_compiler=yes 5507else 5508 $as_echo "$as_me: failed program was:" >&5 5509sed 's/^/| /' conftest.$ac_ext >&5 5510 5511 ac_header_compiler=no 5512fi 5513 5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5515{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5516$as_echo "$ac_header_compiler" >&6; } 5517 5518# Is the header present? 5519{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5520$as_echo_n "checking $ac_header presence... " >&6; } 5521cat >conftest.$ac_ext <<_ACEOF 5522/* confdefs.h. */ 5523_ACEOF 5524cat confdefs.h >>conftest.$ac_ext 5525cat >>conftest.$ac_ext <<_ACEOF 5526/* end confdefs.h. */ 5527#include <$ac_header> 5528_ACEOF 5529if { (ac_try="$ac_cpp conftest.$ac_ext" 5530case "(($ac_try" in 5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5532 *) ac_try_echo=$ac_try;; 5533esac 5534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5535$as_echo "$ac_try_echo") >&5 5536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5537 ac_status=$? 5538 grep -v '^ *+' conftest.er1 >conftest.err 5539 rm -f conftest.er1 5540 cat conftest.err >&5 5541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5542 (exit $ac_status); } >/dev/null && { 5543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5544 test ! -s conftest.err 5545 }; then 5546 ac_header_preproc=yes 5547else 5548 $as_echo "$as_me: failed program was:" >&5 5549sed 's/^/| /' conftest.$ac_ext >&5 5550 5551 ac_header_preproc=no 5552fi 5553 5554rm -f conftest.err conftest.$ac_ext 5555{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5556$as_echo "$ac_header_preproc" >&6; } 5557 5558# So? What about this header? 5559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5560 yes:no: ) 5561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5562$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5564$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5565 ac_header_preproc=yes 5566 ;; 5567 no:yes:* ) 5568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5569$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5571$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5573$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5575$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5577$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5579$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5580 ( cat <<\_ASBOX 5581## -------------------------------------------------------- ## 5582## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 5583## -------------------------------------------------------- ## 5584_ASBOX 5585 ) | sed "s/^/$as_me: WARNING: /" >&2 5586 ;; 5587esac 5588{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5589$as_echo_n "checking for $ac_header... " >&6; } 5590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5591 $as_echo_n "(cached) " >&6 5592else 5593 eval "$as_ac_Header=\$ac_header_preproc" 5594fi 5595ac_res=`eval 'as_val=${'$as_ac_Header'} 5596 $as_echo "$as_val"'` 5597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5598$as_echo "$ac_res" >&6; } 5599 5600fi 5601as_val=`eval 'as_val=${'$as_ac_Header'} 5602 $as_echo "$as_val"'` 5603 if test "x$as_val" = x""yes; then 5604 cat >>confdefs.h <<_ACEOF 5605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5606_ACEOF 5607 5608fi 5609 5610done 5611 5612ac_ext=cpp 5613ac_cpp='$CXXCPP $CPPFLAGS' 5614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5617if test -z "$CXX"; then 5618 if test -n "$CCC"; then 5619 CXX=$CCC 5620 else 5621 if test -n "$ac_tool_prefix"; then 5622 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5623 do 5624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5625set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5626{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5627$as_echo_n "checking for $ac_word... " >&6; } 5628if test "${ac_cv_prog_CXX+set}" = set; then 5629 $as_echo_n "(cached) " >&6 5630else 5631 if test -n "$CXX"; then 5632 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5633else 5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5635for as_dir in $PATH 5636do 5637 IFS=$as_save_IFS 5638 test -z "$as_dir" && as_dir=. 5639 for ac_exec_ext in '' $ac_executable_extensions; do 5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5641 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5643 break 2 5644 fi 5645done 5646done 5647IFS=$as_save_IFS 5648 5649fi 5650fi 5651CXX=$ac_cv_prog_CXX 5652if test -n "$CXX"; then 5653 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5654$as_echo "$CXX" >&6; } 5655else 5656 { $as_echo "$as_me:$LINENO: result: no" >&5 5657$as_echo "no" >&6; } 5658fi 5659 5660 5661 test -n "$CXX" && break 5662 done 5663fi 5664if test -z "$CXX"; then 5665 ac_ct_CXX=$CXX 5666 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5667do 5668 # Extract the first word of "$ac_prog", so it can be a program name with args. 5669set dummy $ac_prog; ac_word=$2 5670{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5671$as_echo_n "checking for $ac_word... " >&6; } 5672if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5673 $as_echo_n "(cached) " >&6 5674else 5675 if test -n "$ac_ct_CXX"; then 5676 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5677else 5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5679for as_dir in $PATH 5680do 5681 IFS=$as_save_IFS 5682 test -z "$as_dir" && as_dir=. 5683 for ac_exec_ext in '' $ac_executable_extensions; do 5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5685 ac_cv_prog_ac_ct_CXX="$ac_prog" 5686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5687 break 2 5688 fi 5689done 5690done 5691IFS=$as_save_IFS 5692 5693fi 5694fi 5695ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5696if test -n "$ac_ct_CXX"; then 5697 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5698$as_echo "$ac_ct_CXX" >&6; } 5699else 5700 { $as_echo "$as_me:$LINENO: result: no" >&5 5701$as_echo "no" >&6; } 5702fi 5703 5704 5705 test -n "$ac_ct_CXX" && break 5706done 5707 5708 if test "x$ac_ct_CXX" = x; then 5709 CXX="g++" 5710 else 5711 case $cross_compiling:$ac_tool_warned in 5712yes:) 5713{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5715ac_tool_warned=yes ;; 5716esac 5717 CXX=$ac_ct_CXX 5718 fi 5719fi 5720 5721 fi 5722fi 5723# Provide some information about the compiler. 5724$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5725set X $ac_compile 5726ac_compiler=$2 5727{ (ac_try="$ac_compiler --version >&5" 5728case "(($ac_try" in 5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5730 *) ac_try_echo=$ac_try;; 5731esac 5732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5733$as_echo "$ac_try_echo") >&5 5734 (eval "$ac_compiler --version >&5") 2>&5 5735 ac_status=$? 5736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); } 5738{ (ac_try="$ac_compiler -v >&5" 5739case "(($ac_try" in 5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5741 *) ac_try_echo=$ac_try;; 5742esac 5743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5744$as_echo "$ac_try_echo") >&5 5745 (eval "$ac_compiler -v >&5") 2>&5 5746 ac_status=$? 5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } 5749{ (ac_try="$ac_compiler -V >&5" 5750case "(($ac_try" in 5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5752 *) ac_try_echo=$ac_try;; 5753esac 5754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5755$as_echo "$ac_try_echo") >&5 5756 (eval "$ac_compiler -V >&5") 2>&5 5757 ac_status=$? 5758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); } 5760 5761{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5762$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5763if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5764 $as_echo_n "(cached) " >&6 5765else 5766 cat >conftest.$ac_ext <<_ACEOF 5767/* confdefs.h. */ 5768_ACEOF 5769cat confdefs.h >>conftest.$ac_ext 5770cat >>conftest.$ac_ext <<_ACEOF 5771/* end confdefs.h. */ 5772 5773int 5774main () 5775{ 5776#ifndef __GNUC__ 5777 choke me 5778#endif 5779 5780 ; 5781 return 0; 5782} 5783_ACEOF 5784rm -f conftest.$ac_objext 5785if { (ac_try="$ac_compile" 5786case "(($ac_try" in 5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5788 *) ac_try_echo=$ac_try;; 5789esac 5790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5791$as_echo "$ac_try_echo") >&5 5792 (eval "$ac_compile") 2>conftest.er1 5793 ac_status=$? 5794 grep -v '^ *+' conftest.er1 >conftest.err 5795 rm -f conftest.er1 5796 cat conftest.err >&5 5797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5798 (exit $ac_status); } && { 5799 test -z "$ac_cxx_werror_flag" || 5800 test ! -s conftest.err 5801 } && test -s conftest.$ac_objext; then 5802 ac_compiler_gnu=yes 5803else 5804 $as_echo "$as_me: failed program was:" >&5 5805sed 's/^/| /' conftest.$ac_ext >&5 5806 5807 ac_compiler_gnu=no 5808fi 5809 5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5811ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5812 5813fi 5814{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5815$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5816if test $ac_compiler_gnu = yes; then 5817 GXX=yes 5818else 5819 GXX= 5820fi 5821ac_test_CXXFLAGS=${CXXFLAGS+set} 5822ac_save_CXXFLAGS=$CXXFLAGS 5823{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5824$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5825if test "${ac_cv_prog_cxx_g+set}" = set; then 5826 $as_echo_n "(cached) " >&6 5827else 5828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5829 ac_cxx_werror_flag=yes 5830 ac_cv_prog_cxx_g=no 5831 CXXFLAGS="-g" 5832 cat >conftest.$ac_ext <<_ACEOF 5833/* confdefs.h. */ 5834_ACEOF 5835cat confdefs.h >>conftest.$ac_ext 5836cat >>conftest.$ac_ext <<_ACEOF 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847rm -f conftest.$ac_objext 5848if { (ac_try="$ac_compile" 5849case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5854$as_echo "$ac_try_echo") >&5 5855 (eval "$ac_compile") 2>conftest.er1 5856 ac_status=$? 5857 grep -v '^ *+' conftest.er1 >conftest.err 5858 rm -f conftest.er1 5859 cat conftest.err >&5 5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); } && { 5862 test -z "$ac_cxx_werror_flag" || 5863 test ! -s conftest.err 5864 } && test -s conftest.$ac_objext; then 5865 ac_cv_prog_cxx_g=yes 5866else 5867 $as_echo "$as_me: failed program was:" >&5 5868sed 's/^/| /' conftest.$ac_ext >&5 5869 5870 CXXFLAGS="" 5871 cat >conftest.$ac_ext <<_ACEOF 5872/* confdefs.h. */ 5873_ACEOF 5874cat confdefs.h >>conftest.$ac_ext 5875cat >>conftest.$ac_ext <<_ACEOF 5876/* end confdefs.h. */ 5877 5878int 5879main () 5880{ 5881 5882 ; 5883 return 0; 5884} 5885_ACEOF 5886rm -f conftest.$ac_objext 5887if { (ac_try="$ac_compile" 5888case "(($ac_try" in 5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5890 *) ac_try_echo=$ac_try;; 5891esac 5892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5893$as_echo "$ac_try_echo") >&5 5894 (eval "$ac_compile") 2>conftest.er1 5895 ac_status=$? 5896 grep -v '^ *+' conftest.er1 >conftest.err 5897 rm -f conftest.er1 5898 cat conftest.err >&5 5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); } && { 5901 test -z "$ac_cxx_werror_flag" || 5902 test ! -s conftest.err 5903 } && test -s conftest.$ac_objext; then 5904 : 5905else 5906 $as_echo "$as_me: failed program was:" >&5 5907sed 's/^/| /' conftest.$ac_ext >&5 5908 5909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5910 CXXFLAGS="-g" 5911 cat >conftest.$ac_ext <<_ACEOF 5912/* confdefs.h. */ 5913_ACEOF 5914cat confdefs.h >>conftest.$ac_ext 5915cat >>conftest.$ac_ext <<_ACEOF 5916/* end confdefs.h. */ 5917 5918int 5919main () 5920{ 5921 5922 ; 5923 return 0; 5924} 5925_ACEOF 5926rm -f conftest.$ac_objext 5927if { (ac_try="$ac_compile" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5933$as_echo "$ac_try_echo") >&5 5934 (eval "$ac_compile") 2>conftest.er1 5935 ac_status=$? 5936 grep -v '^ *+' conftest.er1 >conftest.err 5937 rm -f conftest.er1 5938 cat conftest.err >&5 5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } && { 5941 test -z "$ac_cxx_werror_flag" || 5942 test ! -s conftest.err 5943 } && test -s conftest.$ac_objext; then 5944 ac_cv_prog_cxx_g=yes 5945else 5946 $as_echo "$as_me: failed program was:" >&5 5947sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 5950fi 5951 5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5953fi 5954 5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5956fi 5957 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5960fi 5961{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5962$as_echo "$ac_cv_prog_cxx_g" >&6; } 5963if test "$ac_test_CXXFLAGS" = set; then 5964 CXXFLAGS=$ac_save_CXXFLAGS 5965elif test $ac_cv_prog_cxx_g = yes; then 5966 if test "$GXX" = yes; then 5967 CXXFLAGS="-g -O2" 5968 else 5969 CXXFLAGS="-g" 5970 fi 5971else 5972 if test "$GXX" = yes; then 5973 CXXFLAGS="-O2" 5974 else 5975 CXXFLAGS= 5976 fi 5977fi 5978ac_ext=cpp 5979ac_cpp='$CXXCPP $CPPFLAGS' 5980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5983 5984depcc="$CXX" am_compiler_list= 5985 5986{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5987$as_echo_n "checking dependency style of $depcc... " >&6; } 5988if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5989 $as_echo_n "(cached) " >&6 5990else 5991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5992 # We make a subdir and do the tests there. Otherwise we can end up 5993 # making bogus files that we don't know about and never remove. For 5994 # instance it was reported that on HP-UX the gcc test will end up 5995 # making a dummy file named `D' -- because `-MD' means `put the output 5996 # in D'. 5997 mkdir conftest.dir 5998 # Copy depcomp to subdir because otherwise we won't find it if we're 5999 # using a relative directory. 6000 cp "$am_depcomp" conftest.dir 6001 cd conftest.dir 6002 # We will build objects and dependencies in a subdirectory because 6003 # it helps to detect inapplicable dependency modes. For instance 6004 # both Tru64's cc and ICC support -MD to output dependencies as a 6005 # side effect of compilation, but ICC will put the dependencies in 6006 # the current directory while Tru64 will put them in the object 6007 # directory. 6008 mkdir sub 6009 6010 am_cv_CXX_dependencies_compiler_type=none 6011 if test "$am_compiler_list" = ""; then 6012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6013 fi 6014 for depmode in $am_compiler_list; do 6015 # Setup a source with many dependencies, because some compilers 6016 # like to wrap large dependency lists on column 80 (with \), and 6017 # we should not choose a depcomp mode which is confused by this. 6018 # 6019 # We need to recreate these files for each test, as the compiler may 6020 # overwrite some of them when testing with obscure command lines. 6021 # This happens at least with the AIX C compiler. 6022 : > sub/conftest.c 6023 for i in 1 2 3 4 5 6; do 6024 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6026 # Solaris 8's {/usr,}/bin/sh. 6027 touch sub/conftst$i.h 6028 done 6029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6030 6031 case $depmode in 6032 nosideeffect) 6033 # after this tag, mechanisms are not by side-effect, so they'll 6034 # only be used when explicitly requested 6035 if test "x$enable_dependency_tracking" = xyes; then 6036 continue 6037 else 6038 break 6039 fi 6040 ;; 6041 none) break ;; 6042 esac 6043 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6044 # mode. It turns out that the SunPro C++ compiler does not properly 6045 # handle `-M -o', and we need to detect this. 6046 if depmode=$depmode \ 6047 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6049 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6050 >/dev/null 2>conftest.err && 6051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6053 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6055 # icc doesn't choke on unknown options, it will just issue warnings 6056 # or remarks (even with -Werror). So we grep stderr for any message 6057 # that says an option was ignored or not supported. 6058 # When given -MP, icc 7.0 and 7.1 complain thusly: 6059 # icc: Command line warning: ignoring option '-M'; no argument required 6060 # The diagnosis changed in icc 8.0: 6061 # icc: Command line remark: option '-MP' not supported 6062 if (grep 'ignoring option' conftest.err || 6063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6064 am_cv_CXX_dependencies_compiler_type=$depmode 6065 break 6066 fi 6067 fi 6068 done 6069 6070 cd .. 6071 rm -rf conftest.dir 6072else 6073 am_cv_CXX_dependencies_compiler_type=none 6074fi 6075 6076fi 6077{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6078$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6079CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6080 6081 if 6082 test "x$enable_dependency_tracking" != xno \ 6083 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6084 am__fastdepCXX_TRUE= 6085 am__fastdepCXX_FALSE='#' 6086else 6087 am__fastdepCXX_TRUE='#' 6088 am__fastdepCXX_FALSE= 6089fi 6090 6091 6092 6093 6094if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6095 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6096 (test "X$CXX" != "Xg++"))) ; then 6097 ac_ext=cpp 6098ac_cpp='$CXXCPP $CPPFLAGS' 6099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6102{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6103$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6104if test -z "$CXXCPP"; then 6105 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6106 $as_echo_n "(cached) " >&6 6107else 6108 # Double quotes because CXXCPP needs to be expanded 6109 for CXXCPP in "$CXX -E" "/lib/cpp" 6110 do 6111 ac_preproc_ok=false 6112for ac_cxx_preproc_warn_flag in '' yes 6113do 6114 # Use a header file that comes with gcc, so configuring glibc 6115 # with a fresh cross-compiler works. 6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6117 # <limits.h> exists even on freestanding compilers. 6118 # On the NeXT, cc -E runs the code through the compiler's parser, 6119 # not just through cpp. "Syntax error" is here to catch this case. 6120 cat >conftest.$ac_ext <<_ACEOF 6121/* confdefs.h. */ 6122_ACEOF 6123cat confdefs.h >>conftest.$ac_ext 6124cat >>conftest.$ac_ext <<_ACEOF 6125/* end confdefs.h. */ 6126#ifdef __STDC__ 6127# include <limits.h> 6128#else 6129# include <assert.h> 6130#endif 6131 Syntax error 6132_ACEOF 6133if { (ac_try="$ac_cpp conftest.$ac_ext" 6134case "(($ac_try" in 6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6136 *) ac_try_echo=$ac_try;; 6137esac 6138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6139$as_echo "$ac_try_echo") >&5 6140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6141 ac_status=$? 6142 grep -v '^ *+' conftest.er1 >conftest.err 6143 rm -f conftest.er1 6144 cat conftest.err >&5 6145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6146 (exit $ac_status); } >/dev/null && { 6147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6148 test ! -s conftest.err 6149 }; then 6150 : 6151else 6152 $as_echo "$as_me: failed program was:" >&5 6153sed 's/^/| /' conftest.$ac_ext >&5 6154 6155 # Broken: fails on valid input. 6156continue 6157fi 6158 6159rm -f conftest.err conftest.$ac_ext 6160 6161 # OK, works on sane cases. Now check whether nonexistent headers 6162 # can be detected and how. 6163 cat >conftest.$ac_ext <<_ACEOF 6164/* confdefs.h. */ 6165_ACEOF 6166cat confdefs.h >>conftest.$ac_ext 6167cat >>conftest.$ac_ext <<_ACEOF 6168/* end confdefs.h. */ 6169#include <ac_nonexistent.h> 6170_ACEOF 6171if { (ac_try="$ac_cpp conftest.$ac_ext" 6172case "(($ac_try" in 6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6174 *) ac_try_echo=$ac_try;; 6175esac 6176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6177$as_echo "$ac_try_echo") >&5 6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6179 ac_status=$? 6180 grep -v '^ *+' conftest.er1 >conftest.err 6181 rm -f conftest.er1 6182 cat conftest.err >&5 6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); } >/dev/null && { 6185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6186 test ! -s conftest.err 6187 }; then 6188 # Broken: success on invalid input. 6189continue 6190else 6191 $as_echo "$as_me: failed program was:" >&5 6192sed 's/^/| /' conftest.$ac_ext >&5 6193 6194 # Passes both tests. 6195ac_preproc_ok=: 6196break 6197fi 6198 6199rm -f conftest.err conftest.$ac_ext 6200 6201done 6202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6203rm -f conftest.err conftest.$ac_ext 6204if $ac_preproc_ok; then 6205 break 6206fi 6207 6208 done 6209 ac_cv_prog_CXXCPP=$CXXCPP 6210 6211fi 6212 CXXCPP=$ac_cv_prog_CXXCPP 6213else 6214 ac_cv_prog_CXXCPP=$CXXCPP 6215fi 6216{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6217$as_echo "$CXXCPP" >&6; } 6218ac_preproc_ok=false 6219for ac_cxx_preproc_warn_flag in '' yes 6220do 6221 # Use a header file that comes with gcc, so configuring glibc 6222 # with a fresh cross-compiler works. 6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6224 # <limits.h> exists even on freestanding compilers. 6225 # On the NeXT, cc -E runs the code through the compiler's parser, 6226 # not just through cpp. "Syntax error" is here to catch this case. 6227 cat >conftest.$ac_ext <<_ACEOF 6228/* confdefs.h. */ 6229_ACEOF 6230cat confdefs.h >>conftest.$ac_ext 6231cat >>conftest.$ac_ext <<_ACEOF 6232/* end confdefs.h. */ 6233#ifdef __STDC__ 6234# include <limits.h> 6235#else 6236# include <assert.h> 6237#endif 6238 Syntax error 6239_ACEOF 6240if { (ac_try="$ac_cpp conftest.$ac_ext" 6241case "(($ac_try" in 6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6243 *) ac_try_echo=$ac_try;; 6244esac 6245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6246$as_echo "$ac_try_echo") >&5 6247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } >/dev/null && { 6254 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6255 test ! -s conftest.err 6256 }; then 6257 : 6258else 6259 $as_echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 # Broken: fails on valid input. 6263continue 6264fi 6265 6266rm -f conftest.err conftest.$ac_ext 6267 6268 # OK, works on sane cases. Now check whether nonexistent headers 6269 # can be detected and how. 6270 cat >conftest.$ac_ext <<_ACEOF 6271/* confdefs.h. */ 6272_ACEOF 6273cat confdefs.h >>conftest.$ac_ext 6274cat >>conftest.$ac_ext <<_ACEOF 6275/* end confdefs.h. */ 6276#include <ac_nonexistent.h> 6277_ACEOF 6278if { (ac_try="$ac_cpp conftest.$ac_ext" 6279case "(($ac_try" in 6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6281 *) ac_try_echo=$ac_try;; 6282esac 6283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6284$as_echo "$ac_try_echo") >&5 6285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6286 ac_status=$? 6287 grep -v '^ *+' conftest.er1 >conftest.err 6288 rm -f conftest.er1 6289 cat conftest.err >&5 6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6291 (exit $ac_status); } >/dev/null && { 6292 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6293 test ! -s conftest.err 6294 }; then 6295 # Broken: success on invalid input. 6296continue 6297else 6298 $as_echo "$as_me: failed program was:" >&5 6299sed 's/^/| /' conftest.$ac_ext >&5 6300 6301 # Passes both tests. 6302ac_preproc_ok=: 6303break 6304fi 6305 6306rm -f conftest.err conftest.$ac_ext 6307 6308done 6309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6310rm -f conftest.err conftest.$ac_ext 6311if $ac_preproc_ok; then 6312 : 6313else 6314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6316{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6317See \`config.log' for more details." >&5 6318$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6319See \`config.log' for more details." >&2;} 6320 { (exit 1); exit 1; }; }; } 6321fi 6322 6323ac_ext=cpp 6324ac_cpp='$CXXCPP $CPPFLAGS' 6325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6328 6329fi 6330 6331 6332ac_ext=f 6333ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6334ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6335ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6336if test -n "$ac_tool_prefix"; then 6337 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 6338 do 6339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6340set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6342$as_echo_n "checking for $ac_word... " >&6; } 6343if test "${ac_cv_prog_F77+set}" = set; then 6344 $as_echo_n "(cached) " >&6 6345else 6346 if test -n "$F77"; then 6347 ac_cv_prog_F77="$F77" # Let the user override the test. 6348else 6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6350for as_dir in $PATH 6351do 6352 IFS=$as_save_IFS 6353 test -z "$as_dir" && as_dir=. 6354 for ac_exec_ext in '' $ac_executable_extensions; do 6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6356 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6358 break 2 6359 fi 6360done 6361done 6362IFS=$as_save_IFS 6363 6364fi 6365fi 6366F77=$ac_cv_prog_F77 6367if test -n "$F77"; then 6368 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6369$as_echo "$F77" >&6; } 6370else 6371 { $as_echo "$as_me:$LINENO: result: no" >&5 6372$as_echo "no" >&6; } 6373fi 6374 6375 6376 test -n "$F77" && break 6377 done 6378fi 6379if test -z "$F77"; then 6380 ac_ct_F77=$F77 6381 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 6382do 6383 # Extract the first word of "$ac_prog", so it can be a program name with args. 6384set dummy $ac_prog; ac_word=$2 6385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6386$as_echo_n "checking for $ac_word... " >&6; } 6387if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6388 $as_echo_n "(cached) " >&6 6389else 6390 if test -n "$ac_ct_F77"; then 6391 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6392else 6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6394for as_dir in $PATH 6395do 6396 IFS=$as_save_IFS 6397 test -z "$as_dir" && as_dir=. 6398 for ac_exec_ext in '' $ac_executable_extensions; do 6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6400 ac_cv_prog_ac_ct_F77="$ac_prog" 6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6402 break 2 6403 fi 6404done 6405done 6406IFS=$as_save_IFS 6407 6408fi 6409fi 6410ac_ct_F77=$ac_cv_prog_ac_ct_F77 6411if test -n "$ac_ct_F77"; then 6412 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6413$as_echo "$ac_ct_F77" >&6; } 6414else 6415 { $as_echo "$as_me:$LINENO: result: no" >&5 6416$as_echo "no" >&6; } 6417fi 6418 6419 6420 test -n "$ac_ct_F77" && break 6421done 6422 6423 if test "x$ac_ct_F77" = x; then 6424 F77="" 6425 else 6426 case $cross_compiling:$ac_tool_warned in 6427yes:) 6428{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6430ac_tool_warned=yes ;; 6431esac 6432 F77=$ac_ct_F77 6433 fi 6434fi 6435 6436 6437# Provide some information about the compiler. 6438$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6439set X $ac_compile 6440ac_compiler=$2 6441{ (ac_try="$ac_compiler --version >&5" 6442case "(($ac_try" in 6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6444 *) ac_try_echo=$ac_try;; 6445esac 6446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6447$as_echo "$ac_try_echo") >&5 6448 (eval "$ac_compiler --version >&5") 2>&5 6449 ac_status=$? 6450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6451 (exit $ac_status); } 6452{ (ac_try="$ac_compiler -v >&5" 6453case "(($ac_try" in 6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6455 *) ac_try_echo=$ac_try;; 6456esac 6457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6458$as_echo "$ac_try_echo") >&5 6459 (eval "$ac_compiler -v >&5") 2>&5 6460 ac_status=$? 6461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); } 6463{ (ac_try="$ac_compiler -V >&5" 6464case "(($ac_try" in 6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6466 *) ac_try_echo=$ac_try;; 6467esac 6468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6469$as_echo "$ac_try_echo") >&5 6470 (eval "$ac_compiler -V >&5") 2>&5 6471 ac_status=$? 6472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); } 6474rm -f a.out 6475 6476# If we don't use `.F' as extension, the preprocessor is not run on the 6477# input file. (Note that this only needs to work for GNU compilers.) 6478ac_save_ext=$ac_ext 6479ac_ext=F 6480{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6481$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6482if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6483 $as_echo_n "(cached) " >&6 6484else 6485 cat >conftest.$ac_ext <<_ACEOF 6486 program main 6487#ifndef __GNUC__ 6488 choke me 6489#endif 6490 6491 end 6492_ACEOF 6493rm -f conftest.$ac_objext 6494if { (ac_try="$ac_compile" 6495case "(($ac_try" in 6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6497 *) ac_try_echo=$ac_try;; 6498esac 6499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6500$as_echo "$ac_try_echo") >&5 6501 (eval "$ac_compile") 2>conftest.er1 6502 ac_status=$? 6503 grep -v '^ *+' conftest.er1 >conftest.err 6504 rm -f conftest.er1 6505 cat conftest.err >&5 6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6507 (exit $ac_status); } && { 6508 test -z "$ac_f77_werror_flag" || 6509 test ! -s conftest.err 6510 } && test -s conftest.$ac_objext; then 6511 ac_compiler_gnu=yes 6512else 6513 $as_echo "$as_me: failed program was:" >&5 6514sed 's/^/| /' conftest.$ac_ext >&5 6515 6516 ac_compiler_gnu=no 6517fi 6518 6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6520ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6521 6522fi 6523{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6524$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6525ac_ext=$ac_save_ext 6526ac_test_FFLAGS=${FFLAGS+set} 6527ac_save_FFLAGS=$FFLAGS 6528FFLAGS= 6529{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6530$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6531if test "${ac_cv_prog_f77_g+set}" = set; then 6532 $as_echo_n "(cached) " >&6 6533else 6534 FFLAGS=-g 6535cat >conftest.$ac_ext <<_ACEOF 6536 program main 6537 6538 end 6539_ACEOF 6540rm -f conftest.$ac_objext 6541if { (ac_try="$ac_compile" 6542case "(($ac_try" in 6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6544 *) ac_try_echo=$ac_try;; 6545esac 6546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6547$as_echo "$ac_try_echo") >&5 6548 (eval "$ac_compile") 2>conftest.er1 6549 ac_status=$? 6550 grep -v '^ *+' conftest.er1 >conftest.err 6551 rm -f conftest.er1 6552 cat conftest.err >&5 6553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6554 (exit $ac_status); } && { 6555 test -z "$ac_f77_werror_flag" || 6556 test ! -s conftest.err 6557 } && test -s conftest.$ac_objext; then 6558 ac_cv_prog_f77_g=yes 6559else 6560 $as_echo "$as_me: failed program was:" >&5 6561sed 's/^/| /' conftest.$ac_ext >&5 6562 6563 ac_cv_prog_f77_g=no 6564fi 6565 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567 6568fi 6569{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6570$as_echo "$ac_cv_prog_f77_g" >&6; } 6571if test "$ac_test_FFLAGS" = set; then 6572 FFLAGS=$ac_save_FFLAGS 6573elif test $ac_cv_prog_f77_g = yes; then 6574 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6575 FFLAGS="-g -O2" 6576 else 6577 FFLAGS="-g" 6578 fi 6579else 6580 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6581 FFLAGS="-O2" 6582 else 6583 FFLAGS= 6584 fi 6585fi 6586 6587if test $ac_compiler_gnu = yes; then 6588 G77=yes 6589else 6590 G77= 6591fi 6592ac_ext=c 6593ac_cpp='$CPP $CPPFLAGS' 6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6596ac_compiler_gnu=$ac_cv_c_compiler_gnu 6597 6598 6599 6600# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6601 6602# find the maximum length of command line arguments 6603{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6604$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6605if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6606 $as_echo_n "(cached) " >&6 6607else 6608 i=0 6609 teststring="ABCD" 6610 6611 case $build_os in 6612 msdosdjgpp*) 6613 # On DJGPP, this test can blow up pretty badly due to problems in libc 6614 # (any single argument exceeding 2000 bytes causes a buffer overrun 6615 # during glob expansion). Even if it were fixed, the result of this 6616 # check would be larger than it should be. 6617 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6618 ;; 6619 6620 gnu*) 6621 # Under GNU Hurd, this test is not required because there is 6622 # no limit to the length of command line arguments. 6623 # Libtool will interpret -1 as no limit whatsoever 6624 lt_cv_sys_max_cmd_len=-1; 6625 ;; 6626 6627 cygwin* | mingw*) 6628 # On Win9x/ME, this test blows up -- it succeeds, but takes 6629 # about 5 minutes as the teststring grows exponentially. 6630 # Worse, since 9x/ME are not pre-emptively multitasking, 6631 # you end up with a "frozen" computer, even though with patience 6632 # the test eventually succeeds (with a max line length of 256k). 6633 # Instead, let's just punt: use the minimum linelength reported by 6634 # all of the supported platforms: 8192 (on NT/2K/XP). 6635 lt_cv_sys_max_cmd_len=8192; 6636 ;; 6637 6638 amigaos*) 6639 # On AmigaOS with pdksh, this test takes hours, literally. 6640 # So we just punt and use a minimum line length of 8192. 6641 lt_cv_sys_max_cmd_len=8192; 6642 ;; 6643 6644 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6645 # This has been around since 386BSD, at least. Likely further. 6646 if test -x /sbin/sysctl; then 6647 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6648 elif test -x /usr/sbin/sysctl; then 6649 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6650 else 6651 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6652 fi 6653 # And add a safety zone 6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6656 ;; 6657 6658 interix*) 6659 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6660 lt_cv_sys_max_cmd_len=196608 6661 ;; 6662 6663 osf*) 6664 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6665 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6666 # nice to cause kernel panics so lets avoid the loop below. 6667 # First set a reasonable default. 6668 lt_cv_sys_max_cmd_len=16384 6669 # 6670 if test -x /sbin/sysconfig; then 6671 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6672 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6673 esac 6674 fi 6675 ;; 6676 sco3.2v5*) 6677 lt_cv_sys_max_cmd_len=102400 6678 ;; 6679 sysv5* | sco5v6* | sysv4.2uw2*) 6680 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6681 if test -n "$kargmax"; then 6682 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6683 else 6684 lt_cv_sys_max_cmd_len=32768 6685 fi 6686 ;; 6687 *) 6688 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6689 if test -n "$lt_cv_sys_max_cmd_len"; then 6690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6692 else 6693 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6694 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6695 = "XX$teststring") >/dev/null 2>&1 && 6696 new_result=`expr "X$teststring" : ".*" 2>&1` && 6697 lt_cv_sys_max_cmd_len=$new_result && 6698 test $i != 17 # 1/2 MB should be enough 6699 do 6700 i=`expr $i + 1` 6701 teststring=$teststring$teststring 6702 done 6703 teststring= 6704 # Add a significant safety factor because C++ compilers can tack on massive 6705 # amounts of additional arguments before passing them to the linker. 6706 # It appears as though 1/2 is a usable value. 6707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6708 fi 6709 ;; 6710 esac 6711 6712fi 6713 6714if test -n $lt_cv_sys_max_cmd_len ; then 6715 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6716$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6717else 6718 { $as_echo "$as_me:$LINENO: result: none" >&5 6719$as_echo "none" >&6; } 6720fi 6721 6722 6723 6724 6725 6726# Check for command to grab the raw symbol name followed by C symbol from nm. 6727{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6728$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6729if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6730 $as_echo_n "(cached) " >&6 6731else 6732 6733# These are sane defaults that work on at least a few old systems. 6734# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6735 6736# Character class describing NM global symbol codes. 6737symcode='[BCDEGRST]' 6738 6739# Regexp to match symbols that can be accessed directly from C. 6740sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6741 6742# Transform an extracted symbol line into a proper C declaration 6743lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6744 6745# Transform an extracted symbol line into symbol name and symbol address 6746lt_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'" 6747 6748# Define system-specific variables. 6749case $host_os in 6750aix*) 6751 symcode='[BCDT]' 6752 ;; 6753cygwin* | mingw* | pw32*) 6754 symcode='[ABCDGISTW]' 6755 ;; 6756hpux*) # Its linker distinguishes data from code symbols 6757 if test "$host_cpu" = ia64; then 6758 symcode='[ABCDEGRST]' 6759 fi 6760 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6761 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'" 6762 ;; 6763linux* | k*bsd*-gnu) 6764 if test "$host_cpu" = ia64; then 6765 symcode='[ABCDGIRSTW]' 6766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6767 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'" 6768 fi 6769 ;; 6770irix* | nonstopux*) 6771 symcode='[BCDEGRST]' 6772 ;; 6773osf*) 6774 symcode='[BCDEGQRST]' 6775 ;; 6776solaris*) 6777 symcode='[BDRT]' 6778 ;; 6779sco3.2v5*) 6780 symcode='[DT]' 6781 ;; 6782sysv4.2uw2*) 6783 symcode='[DT]' 6784 ;; 6785sysv5* | sco5v6* | unixware* | OpenUNIX*) 6786 symcode='[ABDT]' 6787 ;; 6788sysv4) 6789 symcode='[DFNSTU]' 6790 ;; 6791esac 6792 6793# Handle CRLF in mingw tool chain 6794opt_cr= 6795case $build_os in 6796mingw*) 6797 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6798 ;; 6799esac 6800 6801# If we're using GNU nm, then use its standard symbol codes. 6802case `$NM -V 2>&1` in 6803*GNU* | *'with BFD'*) 6804 symcode='[ABCDGIRSTW]' ;; 6805esac 6806 6807# Try without a prefix undercore, then with it. 6808for ac_symprfx in "" "_"; do 6809 6810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6811 symxfrm="\\1 $ac_symprfx\\2 \\2" 6812 6813 # Write the raw and C identifiers. 6814 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6815 6816 # Check to see that the pipe works correctly. 6817 pipe_works=no 6818 6819 rm -f conftest* 6820 cat > conftest.$ac_ext <<EOF 6821#ifdef __cplusplus 6822extern "C" { 6823#endif 6824char nm_test_var; 6825void nm_test_func(){} 6826#ifdef __cplusplus 6827} 6828#endif 6829int main(){nm_test_var='a';nm_test_func();return(0);} 6830EOF 6831 6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6833 (eval $ac_compile) 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); }; then 6837 # Now try to grab the symbols. 6838 nlist=conftest.nm 6839 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6840 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6841 ac_status=$? 6842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6843 (exit $ac_status); } && test -s "$nlist"; then 6844 # Try sorting and uniquifying the output. 6845 if sort "$nlist" | uniq > "$nlist"T; then 6846 mv -f "$nlist"T "$nlist" 6847 else 6848 rm -f "$nlist"T 6849 fi 6850 6851 # Make sure that we snagged all the symbols we need. 6852 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6853 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6854 cat <<EOF > conftest.$ac_ext 6855#ifdef __cplusplus 6856extern "C" { 6857#endif 6858 6859EOF 6860 # Now generate the symbol file. 6861 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6862 6863 cat <<EOF >> conftest.$ac_ext 6864#if defined (__STDC__) && __STDC__ 6865# define lt_ptr_t void * 6866#else 6867# define lt_ptr_t char * 6868# define const 6869#endif 6870 6871/* The mapping between symbol names and symbols. */ 6872const struct { 6873 const char *name; 6874 lt_ptr_t address; 6875} 6876lt_preloaded_symbols[] = 6877{ 6878EOF 6879 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6880 cat <<\EOF >> conftest.$ac_ext 6881 {0, (lt_ptr_t) 0} 6882}; 6883 6884#ifdef __cplusplus 6885} 6886#endif 6887EOF 6888 # Now try linking the two files. 6889 mv conftest.$ac_objext conftstm.$ac_objext 6890 lt_save_LIBS="$LIBS" 6891 lt_save_CFLAGS="$CFLAGS" 6892 LIBS="conftstm.$ac_objext" 6893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6895 (eval $ac_link) 2>&5 6896 ac_status=$? 6897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6898 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6899 pipe_works=yes 6900 fi 6901 LIBS="$lt_save_LIBS" 6902 CFLAGS="$lt_save_CFLAGS" 6903 else 6904 echo "cannot find nm_test_func in $nlist" >&5 6905 fi 6906 else 6907 echo "cannot find nm_test_var in $nlist" >&5 6908 fi 6909 else 6910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6911 fi 6912 else 6913 echo "$progname: failed program was:" >&5 6914 cat conftest.$ac_ext >&5 6915 fi 6916 rm -f conftest* conftst* 6917 6918 # Do not use the global_symbol_pipe unless it works. 6919 if test "$pipe_works" = yes; then 6920 break 6921 else 6922 lt_cv_sys_global_symbol_pipe= 6923 fi 6924done 6925 6926fi 6927 6928if test -z "$lt_cv_sys_global_symbol_pipe"; then 6929 lt_cv_sys_global_symbol_to_cdecl= 6930fi 6931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6932 { $as_echo "$as_me:$LINENO: result: failed" >&5 6933$as_echo "failed" >&6; } 6934else 6935 { $as_echo "$as_me:$LINENO: result: ok" >&5 6936$as_echo "ok" >&6; } 6937fi 6938 6939{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6940$as_echo_n "checking for objdir... " >&6; } 6941if test "${lt_cv_objdir+set}" = set; then 6942 $as_echo_n "(cached) " >&6 6943else 6944 rm -f .libs 2>/dev/null 6945mkdir .libs 2>/dev/null 6946if test -d .libs; then 6947 lt_cv_objdir=.libs 6948else 6949 # MS-DOS does not allow filenames that begin with a dot. 6950 lt_cv_objdir=_libs 6951fi 6952rmdir .libs 2>/dev/null 6953fi 6954{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6955$as_echo "$lt_cv_objdir" >&6; } 6956objdir=$lt_cv_objdir 6957 6958 6959 6960 6961 6962case $host_os in 6963aix3*) 6964 # AIX sometimes has problems with the GCC collect2 program. For some 6965 # reason, if we set the COLLECT_NAMES environment variable, the problems 6966 # vanish in a puff of smoke. 6967 if test "X${COLLECT_NAMES+set}" != Xset; then 6968 COLLECT_NAMES= 6969 export COLLECT_NAMES 6970 fi 6971 ;; 6972esac 6973 6974# Sed substitution that helps us do robust quoting. It backslashifies 6975# metacharacters that are still active within double-quoted strings. 6976Xsed='sed -e 1s/^X//' 6977sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6978 6979# Same as above, but do not quote variable references. 6980double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6981 6982# Sed substitution to delay expansion of an escaped shell variable in a 6983# double_quote_subst'ed string. 6984delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6985 6986# Sed substitution to avoid accidental globbing in evaled expressions 6987no_glob_subst='s/\*/\\\*/g' 6988 6989# Constants: 6990rm="rm -f" 6991 6992# Global variables: 6993default_ofile=libtool 6994can_build_shared=yes 6995 6996# All known linkers require a `.a' archive for static linking (except MSVC, 6997# which needs '.lib'). 6998libext=a 6999ltmain="$ac_aux_dir/ltmain.sh" 7000ofile="$default_ofile" 7001with_gnu_ld="$lt_cv_prog_gnu_ld" 7002 7003if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}ar; ac_word=$2 7006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7007$as_echo_n "checking for $ac_word... " >&6; } 7008if test "${ac_cv_prog_AR+set}" = set; then 7009 $as_echo_n "(cached) " >&6 7010else 7011 if test -n "$AR"; then 7012 ac_cv_prog_AR="$AR" # Let the user override the test. 7013else 7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7021 ac_cv_prog_AR="${ac_tool_prefix}ar" 7022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031AR=$ac_cv_prog_AR 7032if test -n "$AR"; then 7033 { $as_echo "$as_me:$LINENO: result: $AR" >&5 7034$as_echo "$AR" >&6; } 7035else 7036 { $as_echo "$as_me:$LINENO: result: no" >&5 7037$as_echo "no" >&6; } 7038fi 7039 7040 7041fi 7042if test -z "$ac_cv_prog_AR"; then 7043 ac_ct_AR=$AR 7044 # Extract the first word of "ar", so it can be a program name with args. 7045set dummy ar; ac_word=$2 7046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7047$as_echo_n "checking for $ac_word... " >&6; } 7048if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test -n "$ac_ct_AR"; then 7052 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7061 ac_cv_prog_ac_ct_AR="ar" 7062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071ac_ct_AR=$ac_cv_prog_ac_ct_AR 7072if test -n "$ac_ct_AR"; then 7073 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7074$as_echo "$ac_ct_AR" >&6; } 7075else 7076 { $as_echo "$as_me:$LINENO: result: no" >&5 7077$as_echo "no" >&6; } 7078fi 7079 7080 if test "x$ac_ct_AR" = x; then 7081 AR="false" 7082 else 7083 case $cross_compiling:$ac_tool_warned in 7084yes:) 7085{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7087ac_tool_warned=yes ;; 7088esac 7089 AR=$ac_ct_AR 7090 fi 7091else 7092 AR="$ac_cv_prog_AR" 7093fi 7094 7095if test -n "$ac_tool_prefix"; then 7096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7097set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7098{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7099$as_echo_n "checking for $ac_word... " >&6; } 7100if test "${ac_cv_prog_RANLIB+set}" = set; then 7101 $as_echo_n "(cached) " >&6 7102else 7103 if test -n "$RANLIB"; then 7104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7105else 7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7107for as_dir in $PATH 7108do 7109 IFS=$as_save_IFS 7110 test -z "$as_dir" && as_dir=. 7111 for ac_exec_ext in '' $ac_executable_extensions; do 7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7115 break 2 7116 fi 7117done 7118done 7119IFS=$as_save_IFS 7120 7121fi 7122fi 7123RANLIB=$ac_cv_prog_RANLIB 7124if test -n "$RANLIB"; then 7125 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 7126$as_echo "$RANLIB" >&6; } 7127else 7128 { $as_echo "$as_me:$LINENO: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132 7133fi 7134if test -z "$ac_cv_prog_RANLIB"; then 7135 ac_ct_RANLIB=$RANLIB 7136 # Extract the first word of "ranlib", so it can be a program name with args. 7137set dummy ranlib; ac_word=$2 7138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7139$as_echo_n "checking for $ac_word... " >&6; } 7140if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7141 $as_echo_n "(cached) " >&6 7142else 7143 if test -n "$ac_ct_RANLIB"; then 7144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7145else 7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147for as_dir in $PATH 7148do 7149 IFS=$as_save_IFS 7150 test -z "$as_dir" && as_dir=. 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7153 ac_cv_prog_ac_ct_RANLIB="ranlib" 7154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157done 7158done 7159IFS=$as_save_IFS 7160 7161fi 7162fi 7163ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7164if test -n "$ac_ct_RANLIB"; then 7165 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7166$as_echo "$ac_ct_RANLIB" >&6; } 7167else 7168 { $as_echo "$as_me:$LINENO: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172 if test "x$ac_ct_RANLIB" = x; then 7173 RANLIB=":" 7174 else 7175 case $cross_compiling:$ac_tool_warned in 7176yes:) 7177{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7179ac_tool_warned=yes ;; 7180esac 7181 RANLIB=$ac_ct_RANLIB 7182 fi 7183else 7184 RANLIB="$ac_cv_prog_RANLIB" 7185fi 7186 7187if test -n "$ac_tool_prefix"; then 7188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7189set dummy ${ac_tool_prefix}strip; ac_word=$2 7190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7191$as_echo_n "checking for $ac_word... " >&6; } 7192if test "${ac_cv_prog_STRIP+set}" = set; then 7193 $as_echo_n "(cached) " >&6 7194else 7195 if test -n "$STRIP"; then 7196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7197else 7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7199for as_dir in $PATH 7200do 7201 IFS=$as_save_IFS 7202 test -z "$as_dir" && as_dir=. 7203 for ac_exec_ext in '' $ac_executable_extensions; do 7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7205 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7207 break 2 7208 fi 7209done 7210done 7211IFS=$as_save_IFS 7212 7213fi 7214fi 7215STRIP=$ac_cv_prog_STRIP 7216if test -n "$STRIP"; then 7217 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7218$as_echo "$STRIP" >&6; } 7219else 7220 { $as_echo "$as_me:$LINENO: result: no" >&5 7221$as_echo "no" >&6; } 7222fi 7223 7224 7225fi 7226if test -z "$ac_cv_prog_STRIP"; then 7227 ac_ct_STRIP=$STRIP 7228 # Extract the first word of "strip", so it can be a program name with args. 7229set dummy strip; ac_word=$2 7230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$ac_ct_STRIP"; then 7236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7245 ac_cv_prog_ac_ct_STRIP="strip" 7246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7256if test -n "$ac_ct_STRIP"; then 7257 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7258$as_echo "$ac_ct_STRIP" >&6; } 7259else 7260 { $as_echo "$as_me:$LINENO: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 if test "x$ac_ct_STRIP" = x; then 7265 STRIP=":" 7266 else 7267 case $cross_compiling:$ac_tool_warned in 7268yes:) 7269{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7271ac_tool_warned=yes ;; 7272esac 7273 STRIP=$ac_ct_STRIP 7274 fi 7275else 7276 STRIP="$ac_cv_prog_STRIP" 7277fi 7278 7279 7280old_CC="$CC" 7281old_CFLAGS="$CFLAGS" 7282 7283# Set sane defaults for various variables 7284test -z "$AR" && AR=ar 7285test -z "$AR_FLAGS" && AR_FLAGS=cru 7286test -z "$AS" && AS=as 7287test -z "$CC" && CC=cc 7288test -z "$LTCC" && LTCC=$CC 7289test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7290test -z "$DLLTOOL" && DLLTOOL=dlltool 7291test -z "$LD" && LD=ld 7292test -z "$LN_S" && LN_S="ln -s" 7293test -z "$MAGIC_CMD" && MAGIC_CMD=file 7294test -z "$NM" && NM=nm 7295test -z "$SED" && SED=sed 7296test -z "$OBJDUMP" && OBJDUMP=objdump 7297test -z "$RANLIB" && RANLIB=: 7298test -z "$STRIP" && STRIP=: 7299test -z "$ac_objext" && ac_objext=o 7300 7301# Determine commands to create old-style static archives. 7302old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7303old_postinstall_cmds='chmod 644 $oldlib' 7304old_postuninstall_cmds= 7305 7306if test -n "$RANLIB"; then 7307 case $host_os in 7308 openbsd*) 7309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7310 ;; 7311 *) 7312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7313 ;; 7314 esac 7315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7316fi 7317 7318for cc_temp in $compiler""; do 7319 case $cc_temp in 7320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7322 \-*) ;; 7323 *) break;; 7324 esac 7325done 7326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7327 7328 7329# Only perform the check for file, if the check method requires it 7330case $deplibs_check_method in 7331file_magic*) 7332 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7333 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7334$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7335if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7336 $as_echo_n "(cached) " >&6 7337else 7338 case $MAGIC_CMD in 7339[\\/*] | ?:[\\/]*) 7340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7341 ;; 7342*) 7343 lt_save_MAGIC_CMD="$MAGIC_CMD" 7344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7346 for ac_dir in $ac_dummy; do 7347 IFS="$lt_save_ifs" 7348 test -z "$ac_dir" && ac_dir=. 7349 if test -f $ac_dir/${ac_tool_prefix}file; then 7350 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7351 if test -n "$file_magic_test_file"; then 7352 case $deplibs_check_method in 7353 "file_magic "*) 7354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7357 $EGREP "$file_magic_regex" > /dev/null; then 7358 : 7359 else 7360 cat <<EOF 1>&2 7361 7362*** Warning: the command libtool uses to detect shared libraries, 7363*** $file_magic_cmd, produces output that libtool cannot recognize. 7364*** The result is that libtool may fail to recognize shared libraries 7365*** as such. This will affect the creation of libtool libraries that 7366*** depend on shared libraries, but programs linked with such libtool 7367*** libraries will work regardless of this problem. Nevertheless, you 7368*** may want to report the problem to your system manager and/or to 7369*** bug-libtool@gnu.org 7370 7371EOF 7372 fi ;; 7373 esac 7374 fi 7375 break 7376 fi 7377 done 7378 IFS="$lt_save_ifs" 7379 MAGIC_CMD="$lt_save_MAGIC_CMD" 7380 ;; 7381esac 7382fi 7383 7384MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7385if test -n "$MAGIC_CMD"; then 7386 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7387$as_echo "$MAGIC_CMD" >&6; } 7388else 7389 { $as_echo "$as_me:$LINENO: result: no" >&5 7390$as_echo "no" >&6; } 7391fi 7392 7393if test -z "$lt_cv_path_MAGIC_CMD"; then 7394 if test -n "$ac_tool_prefix"; then 7395 { $as_echo "$as_me:$LINENO: checking for file" >&5 7396$as_echo_n "checking for file... " >&6; } 7397if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7398 $as_echo_n "(cached) " >&6 7399else 7400 case $MAGIC_CMD in 7401[\\/*] | ?:[\\/]*) 7402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7403 ;; 7404*) 7405 lt_save_MAGIC_CMD="$MAGIC_CMD" 7406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7408 for ac_dir in $ac_dummy; do 7409 IFS="$lt_save_ifs" 7410 test -z "$ac_dir" && ac_dir=. 7411 if test -f $ac_dir/file; then 7412 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7413 if test -n "$file_magic_test_file"; then 7414 case $deplibs_check_method in 7415 "file_magic "*) 7416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7419 $EGREP "$file_magic_regex" > /dev/null; then 7420 : 7421 else 7422 cat <<EOF 1>&2 7423 7424*** Warning: the command libtool uses to detect shared libraries, 7425*** $file_magic_cmd, produces output that libtool cannot recognize. 7426*** The result is that libtool may fail to recognize shared libraries 7427*** as such. This will affect the creation of libtool libraries that 7428*** depend on shared libraries, but programs linked with such libtool 7429*** libraries will work regardless of this problem. Nevertheless, you 7430*** may want to report the problem to your system manager and/or to 7431*** bug-libtool@gnu.org 7432 7433EOF 7434 fi ;; 7435 esac 7436 fi 7437 break 7438 fi 7439 done 7440 IFS="$lt_save_ifs" 7441 MAGIC_CMD="$lt_save_MAGIC_CMD" 7442 ;; 7443esac 7444fi 7445 7446MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7447if test -n "$MAGIC_CMD"; then 7448 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7449$as_echo "$MAGIC_CMD" >&6; } 7450else 7451 { $as_echo "$as_me:$LINENO: result: no" >&5 7452$as_echo "no" >&6; } 7453fi 7454 7455 else 7456 MAGIC_CMD=: 7457 fi 7458fi 7459 7460 fi 7461 ;; 7462esac 7463 7464enable_dlopen=no 7465enable_win32_dll=no 7466 7467# Check whether --enable-libtool-lock was given. 7468if test "${enable_libtool_lock+set}" = set; then 7469 enableval=$enable_libtool_lock; 7470fi 7471 7472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7473 7474 7475# Check whether --with-pic was given. 7476if test "${with_pic+set}" = set; then 7477 withval=$with_pic; pic_mode="$withval" 7478else 7479 pic_mode=default 7480fi 7481 7482test -z "$pic_mode" && pic_mode=default 7483 7484# Use C for the default configuration in the libtool script 7485tagname= 7486lt_save_CC="$CC" 7487ac_ext=c 7488ac_cpp='$CPP $CPPFLAGS' 7489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7491ac_compiler_gnu=$ac_cv_c_compiler_gnu 7492 7493 7494# Source file extension for C test sources. 7495ac_ext=c 7496 7497# Object file extension for compiled C test sources. 7498objext=o 7499objext=$objext 7500 7501# Code to be used in simple compile tests 7502lt_simple_compile_test_code="int some_variable = 0;" 7503 7504# Code to be used in simple link tests 7505lt_simple_link_test_code='int main(){return(0);}' 7506 7507 7508# If no C compiler was specified, use CC. 7509LTCC=${LTCC-"$CC"} 7510 7511# If no C compiler flags were specified, use CFLAGS. 7512LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7513 7514# Allow CC to be a program name with arguments. 7515compiler=$CC 7516 7517 7518# save warnings/boilerplate of simple test code 7519ac_outfile=conftest.$ac_objext 7520echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7521eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7522_lt_compiler_boilerplate=`cat conftest.err` 7523$rm conftest* 7524 7525ac_outfile=conftest.$ac_objext 7526echo "$lt_simple_link_test_code" >conftest.$ac_ext 7527eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7528_lt_linker_boilerplate=`cat conftest.err` 7529$rm conftest* 7530 7531 7532 7533lt_prog_compiler_no_builtin_flag= 7534 7535if test "$GCC" = yes; then 7536 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7537 7538 7539{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7540$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7541if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7542 $as_echo_n "(cached) " >&6 7543else 7544 lt_cv_prog_compiler_rtti_exceptions=no 7545 ac_outfile=conftest.$ac_objext 7546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7547 lt_compiler_flag="-fno-rtti -fno-exceptions" 7548 # Insert the option either (1) after the last *FLAGS variable, or 7549 # (2) before a word containing "conftest.", or (3) at the end. 7550 # Note that $ac_compile itself does not contain backslashes and begins 7551 # with a dollar sign (not a hyphen), so the echo should work correctly. 7552 # The option is referenced via a variable to avoid confusing sed. 7553 lt_compile=`echo "$ac_compile" | $SED \ 7554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7556 -e 's:$: $lt_compiler_flag:'` 7557 (eval echo "\"\$as_me:7557: $lt_compile\"" >&5) 7558 (eval "$lt_compile" 2>conftest.err) 7559 ac_status=$? 7560 cat conftest.err >&5 7561 echo "$as_me:7561: \$? = $ac_status" >&5 7562 if (exit $ac_status) && test -s "$ac_outfile"; then 7563 # The compiler can only warn and ignore the option if not recognized 7564 # So say no if there are warnings other than the usual output. 7565 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7568 lt_cv_prog_compiler_rtti_exceptions=yes 7569 fi 7570 fi 7571 $rm conftest* 7572 7573fi 7574{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7575$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7576 7577if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7579else 7580 : 7581fi 7582 7583fi 7584 7585lt_prog_compiler_wl= 7586lt_prog_compiler_pic= 7587lt_prog_compiler_static= 7588 7589{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7590$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7591 7592 if test "$GCC" = yes; then 7593 lt_prog_compiler_wl='-Wl,' 7594 lt_prog_compiler_static='-static' 7595 7596 case $host_os in 7597 aix*) 7598 # All AIX code is PIC. 7599 if test "$host_cpu" = ia64; then 7600 # AIX 5 now supports IA64 processor 7601 lt_prog_compiler_static='-Bstatic' 7602 fi 7603 ;; 7604 7605 amigaos*) 7606 # FIXME: we need at least 68020 code to build shared libraries, but 7607 # adding the `-m68020' flag to GCC prevents building anything better, 7608 # like `-m68040'. 7609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7610 ;; 7611 7612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7613 # PIC is the default for these OSes. 7614 ;; 7615 7616 mingw* | cygwin* | pw32* | os2*) 7617 # This hack is so that the source file can tell whether it is being 7618 # built for inclusion in a dll (and should export symbols for example). 7619 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7620 # (--disable-auto-import) libraries 7621 lt_prog_compiler_pic='-DDLL_EXPORT' 7622 ;; 7623 7624 darwin* | rhapsody*) 7625 # PIC is the default on this platform 7626 # Common symbols not allowed in MH_DYLIB files 7627 lt_prog_compiler_pic='-fno-common' 7628 ;; 7629 7630 interix[3-9]*) 7631 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7632 # Instead, we relocate shared libraries at runtime. 7633 ;; 7634 7635 msdosdjgpp*) 7636 # Just because we use GCC doesn't mean we suddenly get shared libraries 7637 # on systems that don't support them. 7638 lt_prog_compiler_can_build_shared=no 7639 enable_shared=no 7640 ;; 7641 7642 sysv4*MP*) 7643 if test -d /usr/nec; then 7644 lt_prog_compiler_pic=-Kconform_pic 7645 fi 7646 ;; 7647 7648 hpux*) 7649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7650 # not for PA HP-UX. 7651 case $host_cpu in 7652 hppa*64*|ia64*) 7653 # +Z the default 7654 ;; 7655 *) 7656 lt_prog_compiler_pic='-fPIC' 7657 ;; 7658 esac 7659 ;; 7660 7661 *) 7662 lt_prog_compiler_pic='-fPIC' 7663 ;; 7664 esac 7665 else 7666 # PORTME Check for flag to pass linker flags through the system compiler. 7667 case $host_os in 7668 aix*) 7669 lt_prog_compiler_wl='-Wl,' 7670 if test "$host_cpu" = ia64; then 7671 # AIX 5 now supports IA64 processor 7672 lt_prog_compiler_static='-Bstatic' 7673 else 7674 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7675 fi 7676 ;; 7677 darwin*) 7678 # PIC is the default on this platform 7679 # Common symbols not allowed in MH_DYLIB files 7680 case $cc_basename in 7681 xlc*) 7682 lt_prog_compiler_pic='-qnocommon' 7683 lt_prog_compiler_wl='-Wl,' 7684 ;; 7685 esac 7686 ;; 7687 7688 mingw* | cygwin* | pw32* | os2*) 7689 # This hack is so that the source file can tell whether it is being 7690 # built for inclusion in a dll (and should export symbols for example). 7691 lt_prog_compiler_pic='-DDLL_EXPORT' 7692 ;; 7693 7694 hpux9* | hpux10* | hpux11*) 7695 lt_prog_compiler_wl='-Wl,' 7696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7697 # not for PA HP-UX. 7698 case $host_cpu in 7699 hppa*64*|ia64*) 7700 # +Z the default 7701 ;; 7702 *) 7703 lt_prog_compiler_pic='+Z' 7704 ;; 7705 esac 7706 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7707 lt_prog_compiler_static='${wl}-a ${wl}archive' 7708 ;; 7709 7710 irix5* | irix6* | nonstopux*) 7711 lt_prog_compiler_wl='-Wl,' 7712 # PIC (with -KPIC) is the default. 7713 lt_prog_compiler_static='-non_shared' 7714 ;; 7715 7716 newsos6) 7717 lt_prog_compiler_pic='-KPIC' 7718 lt_prog_compiler_static='-Bstatic' 7719 ;; 7720 7721 linux* | k*bsd*-gnu) 7722 case $cc_basename in 7723 icc* | ecc*) 7724 lt_prog_compiler_wl='-Wl,' 7725 lt_prog_compiler_pic='-KPIC' 7726 lt_prog_compiler_static='-static' 7727 ;; 7728 pgcc* | pgf77* | pgf90* | pgf95*) 7729 # Portland Group compilers (*not* the Pentium gcc compiler, 7730 # which looks to be a dead project) 7731 lt_prog_compiler_wl='-Wl,' 7732 lt_prog_compiler_pic='-fpic' 7733 lt_prog_compiler_static='-Bstatic' 7734 ;; 7735 ccc*) 7736 lt_prog_compiler_wl='-Wl,' 7737 # All Alpha code is PIC. 7738 lt_prog_compiler_static='-non_shared' 7739 ;; 7740 *) 7741 case `$CC -V 2>&1 | sed 5q` in 7742 *Sun\ C*) 7743 # Sun C 5.9 7744 lt_prog_compiler_pic='-KPIC' 7745 lt_prog_compiler_static='-Bstatic' 7746 lt_prog_compiler_wl='-Wl,' 7747 ;; 7748 *Sun\ F*) 7749 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7750 lt_prog_compiler_pic='-KPIC' 7751 lt_prog_compiler_static='-Bstatic' 7752 lt_prog_compiler_wl='' 7753 ;; 7754 esac 7755 ;; 7756 esac 7757 ;; 7758 7759 osf3* | osf4* | osf5*) 7760 lt_prog_compiler_wl='-Wl,' 7761 # All OSF/1 code is PIC. 7762 lt_prog_compiler_static='-non_shared' 7763 ;; 7764 7765 rdos*) 7766 lt_prog_compiler_static='-non_shared' 7767 ;; 7768 7769 solaris*) 7770 lt_prog_compiler_pic='-KPIC' 7771 lt_prog_compiler_static='-Bstatic' 7772 case $cc_basename in 7773 f77* | f90* | f95*) 7774 lt_prog_compiler_wl='-Qoption ld ';; 7775 *) 7776 lt_prog_compiler_wl='-Wl,';; 7777 esac 7778 ;; 7779 7780 sunos4*) 7781 lt_prog_compiler_wl='-Qoption ld ' 7782 lt_prog_compiler_pic='-PIC' 7783 lt_prog_compiler_static='-Bstatic' 7784 ;; 7785 7786 sysv4 | sysv4.2uw2* | sysv4.3*) 7787 lt_prog_compiler_wl='-Wl,' 7788 lt_prog_compiler_pic='-KPIC' 7789 lt_prog_compiler_static='-Bstatic' 7790 ;; 7791 7792 sysv4*MP*) 7793 if test -d /usr/nec ;then 7794 lt_prog_compiler_pic='-Kconform_pic' 7795 lt_prog_compiler_static='-Bstatic' 7796 fi 7797 ;; 7798 7799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7800 lt_prog_compiler_wl='-Wl,' 7801 lt_prog_compiler_pic='-KPIC' 7802 lt_prog_compiler_static='-Bstatic' 7803 ;; 7804 7805 unicos*) 7806 lt_prog_compiler_wl='-Wl,' 7807 lt_prog_compiler_can_build_shared=no 7808 ;; 7809 7810 uts4*) 7811 lt_prog_compiler_pic='-pic' 7812 lt_prog_compiler_static='-Bstatic' 7813 ;; 7814 7815 *) 7816 lt_prog_compiler_can_build_shared=no 7817 ;; 7818 esac 7819 fi 7820 7821{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7822$as_echo "$lt_prog_compiler_pic" >&6; } 7823 7824# 7825# Check to make sure the PIC flag actually works. 7826# 7827if test -n "$lt_prog_compiler_pic"; then 7828 7829{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7830$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7831if test "${lt_prog_compiler_pic_works+set}" = set; then 7832 $as_echo_n "(cached) " >&6 7833else 7834 lt_prog_compiler_pic_works=no 7835 ac_outfile=conftest.$ac_objext 7836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7838 # Insert the option either (1) after the last *FLAGS variable, or 7839 # (2) before a word containing "conftest.", or (3) at the end. 7840 # Note that $ac_compile itself does not contain backslashes and begins 7841 # with a dollar sign (not a hyphen), so the echo should work correctly. 7842 # The option is referenced via a variable to avoid confusing sed. 7843 lt_compile=`echo "$ac_compile" | $SED \ 7844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7846 -e 's:$: $lt_compiler_flag:'` 7847 (eval echo "\"\$as_me:7847: $lt_compile\"" >&5) 7848 (eval "$lt_compile" 2>conftest.err) 7849 ac_status=$? 7850 cat conftest.err >&5 7851 echo "$as_me:7851: \$? = $ac_status" >&5 7852 if (exit $ac_status) && test -s "$ac_outfile"; then 7853 # The compiler can only warn and ignore the option if not recognized 7854 # So say no if there are warnings other than the usual output. 7855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7858 lt_prog_compiler_pic_works=yes 7859 fi 7860 fi 7861 $rm conftest* 7862 7863fi 7864{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7865$as_echo "$lt_prog_compiler_pic_works" >&6; } 7866 7867if test x"$lt_prog_compiler_pic_works" = xyes; then 7868 case $lt_prog_compiler_pic in 7869 "" | " "*) ;; 7870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7871 esac 7872else 7873 lt_prog_compiler_pic= 7874 lt_prog_compiler_can_build_shared=no 7875fi 7876 7877fi 7878case $host_os in 7879 # For platforms which do not support PIC, -DPIC is meaningless: 7880 *djgpp*) 7881 lt_prog_compiler_pic= 7882 ;; 7883 *) 7884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7885 ;; 7886esac 7887 7888# 7889# Check to make sure the static flag actually works. 7890# 7891wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7892{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7893$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7894if test "${lt_prog_compiler_static_works+set}" = set; then 7895 $as_echo_n "(cached) " >&6 7896else 7897 lt_prog_compiler_static_works=no 7898 save_LDFLAGS="$LDFLAGS" 7899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7900 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7902 # The linker can only warn and ignore the option if not recognized 7903 # So say no if there are warnings 7904 if test -s conftest.err; then 7905 # Append any errors to the config.log. 7906 cat conftest.err 1>&5 7907 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7909 if diff conftest.exp conftest.er2 >/dev/null; then 7910 lt_prog_compiler_static_works=yes 7911 fi 7912 else 7913 lt_prog_compiler_static_works=yes 7914 fi 7915 fi 7916 $rm conftest* 7917 LDFLAGS="$save_LDFLAGS" 7918 7919fi 7920{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7921$as_echo "$lt_prog_compiler_static_works" >&6; } 7922 7923if test x"$lt_prog_compiler_static_works" = xyes; then 7924 : 7925else 7926 lt_prog_compiler_static= 7927fi 7928 7929 7930{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7931$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7932if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7933 $as_echo_n "(cached) " >&6 7934else 7935 lt_cv_prog_compiler_c_o=no 7936 $rm -r conftest 2>/dev/null 7937 mkdir conftest 7938 cd conftest 7939 mkdir out 7940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7941 7942 lt_compiler_flag="-o out/conftest2.$ac_objext" 7943 # Insert the option either (1) after the last *FLAGS variable, or 7944 # (2) before a word containing "conftest.", or (3) at the end. 7945 # Note that $ac_compile itself does not contain backslashes and begins 7946 # with a dollar sign (not a hyphen), so the echo should work correctly. 7947 lt_compile=`echo "$ac_compile" | $SED \ 7948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7950 -e 's:$: $lt_compiler_flag:'` 7951 (eval echo "\"\$as_me:7951: $lt_compile\"" >&5) 7952 (eval "$lt_compile" 2>out/conftest.err) 7953 ac_status=$? 7954 cat out/conftest.err >&5 7955 echo "$as_me:7955: \$? = $ac_status" >&5 7956 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7957 then 7958 # The compiler can only warn and ignore the option if not recognized 7959 # So say no if there are warnings 7960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7963 lt_cv_prog_compiler_c_o=yes 7964 fi 7965 fi 7966 chmod u+w . 2>&5 7967 $rm conftest* 7968 # SGI C++ compiler will create directory out/ii_files/ for 7969 # template instantiation 7970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7971 $rm out/* && rmdir out 7972 cd .. 7973 rmdir conftest 7974 $rm conftest* 7975 7976fi 7977{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7978$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7979 7980 7981hard_links="nottested" 7982if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7983 # do not overwrite the value of need_locks provided by the user 7984 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7985$as_echo_n "checking if we can lock with hard links... " >&6; } 7986 hard_links=yes 7987 $rm conftest* 7988 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7989 touch conftest.a 7990 ln conftest.a conftest.b 2>&5 || hard_links=no 7991 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7992 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7993$as_echo "$hard_links" >&6; } 7994 if test "$hard_links" = no; then 7995 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7996$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7997 need_locks=warn 7998 fi 7999else 8000 need_locks=no 8001fi 8002 8003{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8004$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8005 8006 runpath_var= 8007 allow_undefined_flag= 8008 enable_shared_with_static_runtimes=no 8009 archive_cmds= 8010 archive_expsym_cmds= 8011 old_archive_From_new_cmds= 8012 old_archive_from_expsyms_cmds= 8013 export_dynamic_flag_spec= 8014 whole_archive_flag_spec= 8015 thread_safe_flag_spec= 8016 hardcode_libdir_flag_spec= 8017 hardcode_libdir_flag_spec_ld= 8018 hardcode_libdir_separator= 8019 hardcode_direct=no 8020 hardcode_minus_L=no 8021 hardcode_shlibpath_var=unsupported 8022 link_all_deplibs=unknown 8023 hardcode_automatic=no 8024 module_cmds= 8025 module_expsym_cmds= 8026 always_export_symbols=no 8027 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8028 # include_expsyms should be a list of space-separated symbols to be *always* 8029 # included in the symbol list 8030 include_expsyms= 8031 # exclude_expsyms can be an extended regexp of symbols to exclude 8032 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8034 # as well as any symbol that contains `d'. 8035 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8037 # platforms (ab)use it in PIC code, but their linkers get confused if 8038 # the symbol is explicitly referenced. Since portable code cannot 8039 # rely on this symbol name, it's probably fine to never include it in 8040 # preloaded symbol tables. 8041 extract_expsyms_cmds= 8042 # Just being paranoid about ensuring that cc_basename is set. 8043 for cc_temp in $compiler""; do 8044 case $cc_temp in 8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8047 \-*) ;; 8048 *) break;; 8049 esac 8050done 8051cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8052 8053 case $host_os in 8054 cygwin* | mingw* | pw32*) 8055 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8056 # When not using gcc, we currently assume that we are using 8057 # Microsoft Visual C++. 8058 if test "$GCC" != yes; then 8059 with_gnu_ld=no 8060 fi 8061 ;; 8062 interix*) 8063 # we just hope/assume this is gcc and not c89 (= MSVC++) 8064 with_gnu_ld=yes 8065 ;; 8066 openbsd*) 8067 with_gnu_ld=no 8068 ;; 8069 esac 8070 8071 ld_shlibs=yes 8072 if test "$with_gnu_ld" = yes; then 8073 # If archive_cmds runs LD, not CC, wlarc should be empty 8074 wlarc='${wl}' 8075 8076 # Set some defaults for GNU ld with shared library support. These 8077 # are reset later if shared libraries are not supported. Putting them 8078 # here allows them to be overridden if necessary. 8079 runpath_var=LD_RUN_PATH 8080 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8081 export_dynamic_flag_spec='${wl}--export-dynamic' 8082 # ancient GNU ld didn't support --whole-archive et. al. 8083 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8085 else 8086 whole_archive_flag_spec= 8087 fi 8088 supports_anon_versioning=no 8089 case `$LD -v 2>/dev/null` in 8090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8093 *\ 2.11.*) ;; # other 2.11 versions 8094 *) supports_anon_versioning=yes ;; 8095 esac 8096 8097 # See if GNU ld supports shared libraries. 8098 case $host_os in 8099 aix3* | aix4* | aix5*) 8100 # On AIX/PPC, the GNU linker is very broken 8101 if test "$host_cpu" != ia64; then 8102 ld_shlibs=no 8103 cat <<EOF 1>&2 8104 8105*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8106*** to be unable to reliably create shared libraries on AIX. 8107*** Therefore, libtool is disabling shared libraries support. If you 8108*** really care for shared libraries, you may want to modify your PATH 8109*** so that a non-GNU linker is found, and then restart. 8110 8111EOF 8112 fi 8113 ;; 8114 8115 amigaos*) 8116 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)' 8117 hardcode_libdir_flag_spec='-L$libdir' 8118 hardcode_minus_L=yes 8119 8120 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8121 # that the semantics of dynamic libraries on AmigaOS, at least up 8122 # to version 4, is to share data among multiple programs linked 8123 # with the same dynamic library. Since this doesn't match the 8124 # behavior of shared libraries on other platforms, we can't use 8125 # them. 8126 ld_shlibs=no 8127 ;; 8128 8129 beos*) 8130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8131 allow_undefined_flag=unsupported 8132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8133 # support --undefined. This deserves some investigation. FIXME 8134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8135 else 8136 ld_shlibs=no 8137 fi 8138 ;; 8139 8140 cygwin* | mingw* | pw32*) 8141 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8142 # as there is no search path for DLLs. 8143 hardcode_libdir_flag_spec='-L$libdir' 8144 allow_undefined_flag=unsupported 8145 always_export_symbols=no 8146 enable_shared_with_static_runtimes=yes 8147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8148 8149 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8151 # If the export-symbols file already is a .def file (1st line 8152 # is EXPORTS), use it as is; otherwise, prepend... 8153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8154 cp $export_symbols $output_objdir/$soname.def; 8155 else 8156 echo EXPORTS > $output_objdir/$soname.def; 8157 cat $export_symbols >> $output_objdir/$soname.def; 8158 fi~ 8159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8160 else 8161 ld_shlibs=no 8162 fi 8163 ;; 8164 8165 interix[3-9]*) 8166 hardcode_direct=no 8167 hardcode_shlibpath_var=no 8168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8169 export_dynamic_flag_spec='${wl}-E' 8170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8171 # Instead, shared libraries are loaded at an image base (0x10000000 by 8172 # default) and relocated if they conflict, which is a slow very memory 8173 # consuming and fragmenting process. To avoid this, we pick a random, 8174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8175 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8177 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' 8178 ;; 8179 8180 gnu* | linux* | k*bsd*-gnu) 8181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8182 tmp_addflag= 8183 case $cc_basename,$host_cpu in 8184 pgcc*) # Portland Group C compiler 8185 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' 8186 tmp_addflag=' $pic_flag' 8187 ;; 8188 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8189 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' 8190 tmp_addflag=' $pic_flag -Mnomain' ;; 8191 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8192 tmp_addflag=' -i_dynamic' ;; 8193 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8194 tmp_addflag=' -i_dynamic -nofor_main' ;; 8195 ifc* | ifort*) # Intel Fortran compiler 8196 tmp_addflag=' -nofor_main' ;; 8197 esac 8198 case `$CC -V 2>&1 | sed 5q` in 8199 *Sun\ C*) # Sun C 5.9 8200 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' 8201 tmp_sharedflag='-G' ;; 8202 *Sun\ F*) # Sun Fortran 8.3 8203 tmp_sharedflag='-G' ;; 8204 *) 8205 tmp_sharedflag='-shared' ;; 8206 esac 8207 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8208 8209 if test $supports_anon_versioning = yes; then 8210 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8212 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8213 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8214 fi 8215 else 8216 ld_shlibs=no 8217 fi 8218 ;; 8219 8220 netbsd*) 8221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8222 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8223 wlarc= 8224 else 8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8227 fi 8228 ;; 8229 8230 solaris*) 8231 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8232 ld_shlibs=no 8233 cat <<EOF 1>&2 8234 8235*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8236*** create shared libraries on Solaris systems. Therefore, libtool 8237*** is disabling shared libraries support. We urge you to upgrade GNU 8238*** binutils to release 2.9.1 or newer. Another option is to modify 8239*** your PATH or compiler configuration so that the native linker is 8240*** used, and then restart. 8241 8242EOF 8243 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8246 else 8247 ld_shlibs=no 8248 fi 8249 ;; 8250 8251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8252 case `$LD -v 2>&1` in 8253 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8254 ld_shlibs=no 8255 cat <<_LT_EOF 1>&2 8256 8257*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8258*** reliably create shared libraries on SCO systems. Therefore, libtool 8259*** is disabling shared libraries support. We urge you to upgrade GNU 8260*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8261*** your PATH or compiler configuration so that the native linker is 8262*** used, and then restart. 8263 8264_LT_EOF 8265 ;; 8266 *) 8267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8268 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8271 else 8272 ld_shlibs=no 8273 fi 8274 ;; 8275 esac 8276 ;; 8277 8278 sunos4*) 8279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8280 wlarc= 8281 hardcode_direct=yes 8282 hardcode_shlibpath_var=no 8283 ;; 8284 8285 *) 8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8289 else 8290 ld_shlibs=no 8291 fi 8292 ;; 8293 esac 8294 8295 if test "$ld_shlibs" = no; then 8296 runpath_var= 8297 hardcode_libdir_flag_spec= 8298 export_dynamic_flag_spec= 8299 whole_archive_flag_spec= 8300 fi 8301 else 8302 # PORTME fill in a description of your system's linker (not GNU ld) 8303 case $host_os in 8304 aix3*) 8305 allow_undefined_flag=unsupported 8306 always_export_symbols=yes 8307 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' 8308 # Note: this linker hardcodes the directories in LIBPATH if there 8309 # are no directories specified by -L. 8310 hardcode_minus_L=yes 8311 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8312 # Neither direct hardcoding nor static linking is supported with a 8313 # broken collect2. 8314 hardcode_direct=unsupported 8315 fi 8316 ;; 8317 8318 aix4* | aix5*) 8319 if test "$host_cpu" = ia64; then 8320 # On IA64, the linker does run time linking by default, so we don't 8321 # have to do anything special. 8322 aix_use_runtimelinking=no 8323 exp_sym_flag='-Bexport' 8324 no_entry_flag="" 8325 else 8326 # If we're using GNU nm, then we don't want the "-C" option. 8327 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8329 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' 8330 else 8331 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' 8332 fi 8333 aix_use_runtimelinking=no 8334 8335 # Test if we are trying to use run time linking or normal 8336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8337 # need to do runtime linking. 8338 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8339 for ld_flag in $LDFLAGS; do 8340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8341 aix_use_runtimelinking=yes 8342 break 8343 fi 8344 done 8345 ;; 8346 esac 8347 8348 exp_sym_flag='-bexport' 8349 no_entry_flag='-bnoentry' 8350 fi 8351 8352 # When large executables or shared objects are built, AIX ld can 8353 # have problems creating the table of contents. If linking a library 8354 # or program results in "error TOC overflow" add -mminimal-toc to 8355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8357 8358 archive_cmds='' 8359 hardcode_direct=yes 8360 hardcode_libdir_separator=':' 8361 link_all_deplibs=yes 8362 8363 if test "$GCC" = yes; then 8364 case $host_os in aix4.[012]|aix4.[012].*) 8365 # We only want to do this on AIX 4.2 and lower, the check 8366 # below for broken collect2 doesn't work under 4.3+ 8367 collect2name=`${CC} -print-prog-name=collect2` 8368 if test -f "$collect2name" && \ 8369 strings "$collect2name" | grep resolve_lib_name >/dev/null 8370 then 8371 # We have reworked collect2 8372 : 8373 else 8374 # We have old collect2 8375 hardcode_direct=unsupported 8376 # It fails to find uninstalled libraries when the uninstalled 8377 # path is not listed in the libpath. Setting hardcode_minus_L 8378 # to unsupported forces relinking 8379 hardcode_minus_L=yes 8380 hardcode_libdir_flag_spec='-L$libdir' 8381 hardcode_libdir_separator= 8382 fi 8383 ;; 8384 esac 8385 shared_flag='-shared' 8386 if test "$aix_use_runtimelinking" = yes; then 8387 shared_flag="$shared_flag "'${wl}-G' 8388 fi 8389 else 8390 # not using gcc 8391 if test "$host_cpu" = ia64; then 8392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8393 # chokes on -Wl,-G. The following line is correct: 8394 shared_flag='-G' 8395 else 8396 if test "$aix_use_runtimelinking" = yes; then 8397 shared_flag='${wl}-G' 8398 else 8399 shared_flag='${wl}-bM:SRE' 8400 fi 8401 fi 8402 fi 8403 8404 # It seems that -bexpall does not export symbols beginning with 8405 # underscore (_), so it is better to generate a list of symbols to export. 8406 always_export_symbols=yes 8407 if test "$aix_use_runtimelinking" = yes; then 8408 # Warning - without using the other runtime loading flags (-brtl), 8409 # -berok will link without error, but may produce a broken library. 8410 allow_undefined_flag='-berok' 8411 # Determine the default libpath from the value encoded in an empty executable. 8412 cat >conftest.$ac_ext <<_ACEOF 8413/* confdefs.h. */ 8414_ACEOF 8415cat confdefs.h >>conftest.$ac_ext 8416cat >>conftest.$ac_ext <<_ACEOF 8417/* end confdefs.h. */ 8418 8419int 8420main () 8421{ 8422 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427rm -f conftest.$ac_objext conftest$ac_exeext 8428if { (ac_try="$ac_link" 8429case "(($ac_try" in 8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8431 *) ac_try_echo=$ac_try;; 8432esac 8433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8434$as_echo "$ac_try_echo") >&5 8435 (eval "$ac_link") 2>conftest.er1 8436 ac_status=$? 8437 grep -v '^ *+' conftest.er1 >conftest.err 8438 rm -f conftest.er1 8439 cat conftest.err >&5 8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 (exit $ac_status); } && { 8442 test -z "$ac_c_werror_flag" || 8443 test ! -s conftest.err 8444 } && test -s conftest$ac_exeext && { 8445 test "$cross_compiling" = yes || 8446 $as_test_x conftest$ac_exeext 8447 }; then 8448 8449lt_aix_libpath_sed=' 8450 /Import File Strings/,/^$/ { 8451 /^0/ { 8452 s/^0 *\(.*\)$/\1/ 8453 p 8454 } 8455 }' 8456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8457# Check for a 64-bit object if we didn't find anything. 8458if test -z "$aix_libpath"; then 8459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8460fi 8461else 8462 $as_echo "$as_me: failed program was:" >&5 8463sed 's/^/| /' conftest.$ac_ext >&5 8464 8465 8466fi 8467 8468rm -rf conftest.dSYM 8469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8470 conftest$ac_exeext conftest.$ac_ext 8471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8472 8473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8474 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" 8475 else 8476 if test "$host_cpu" = ia64; then 8477 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8478 allow_undefined_flag="-z nodefs" 8479 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" 8480 else 8481 # Determine the default libpath from the value encoded in an empty executable. 8482 cat >conftest.$ac_ext <<_ACEOF 8483/* confdefs.h. */ 8484_ACEOF 8485cat confdefs.h >>conftest.$ac_ext 8486cat >>conftest.$ac_ext <<_ACEOF 8487/* end confdefs.h. */ 8488 8489int 8490main () 8491{ 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497rm -f conftest.$ac_objext conftest$ac_exeext 8498if { (ac_try="$ac_link" 8499case "(($ac_try" in 8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8501 *) ac_try_echo=$ac_try;; 8502esac 8503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8504$as_echo "$ac_try_echo") >&5 8505 (eval "$ac_link") 2>conftest.er1 8506 ac_status=$? 8507 grep -v '^ *+' conftest.er1 >conftest.err 8508 rm -f conftest.er1 8509 cat conftest.err >&5 8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8511 (exit $ac_status); } && { 8512 test -z "$ac_c_werror_flag" || 8513 test ! -s conftest.err 8514 } && test -s conftest$ac_exeext && { 8515 test "$cross_compiling" = yes || 8516 $as_test_x conftest$ac_exeext 8517 }; then 8518 8519lt_aix_libpath_sed=' 8520 /Import File Strings/,/^$/ { 8521 /^0/ { 8522 s/^0 *\(.*\)$/\1/ 8523 p 8524 } 8525 }' 8526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8527# Check for a 64-bit object if we didn't find anything. 8528if test -z "$aix_libpath"; then 8529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8530fi 8531else 8532 $as_echo "$as_me: failed program was:" >&5 8533sed 's/^/| /' conftest.$ac_ext >&5 8534 8535 8536fi 8537 8538rm -rf conftest.dSYM 8539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8540 conftest$ac_exeext conftest.$ac_ext 8541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8542 8543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8544 # Warning - without using the other run time loading flags, 8545 # -berok will link without error, but may produce a broken library. 8546 no_undefined_flag=' ${wl}-bernotok' 8547 allow_undefined_flag=' ${wl}-berok' 8548 # Exported symbols can be pulled into shared objects from archives 8549 whole_archive_flag_spec='$convenience' 8550 archive_cmds_need_lc=yes 8551 # This is similar to how AIX traditionally builds its shared libraries. 8552 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' 8553 fi 8554 fi 8555 ;; 8556 8557 amigaos*) 8558 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)' 8559 hardcode_libdir_flag_spec='-L$libdir' 8560 hardcode_minus_L=yes 8561 # see comment about different semantics on the GNU ld section 8562 ld_shlibs=no 8563 ;; 8564 8565 bsdi[45]*) 8566 export_dynamic_flag_spec=-rdynamic 8567 ;; 8568 8569 cygwin* | mingw* | pw32*) 8570 # When not using gcc, we currently assume that we are using 8571 # Microsoft Visual C++. 8572 # hardcode_libdir_flag_spec is actually meaningless, as there is 8573 # no search path for DLLs. 8574 hardcode_libdir_flag_spec=' ' 8575 allow_undefined_flag=unsupported 8576 # Tell ltmain to make .lib files, not .a files. 8577 libext=lib 8578 # Tell ltmain to make .dll files, not .so files. 8579 shrext_cmds=".dll" 8580 # FIXME: Setting linknames here is a bad hack. 8581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8582 # The linker will automatically build a .lib file if we build a DLL. 8583 old_archive_From_new_cmds='true' 8584 # FIXME: Should let the user specify the lib program. 8585 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8586 fix_srcfile_path='`cygpath -w "$srcfile"`' 8587 enable_shared_with_static_runtimes=yes 8588 ;; 8589 8590 darwin* | rhapsody*) 8591 case $host_os in 8592 rhapsody* | darwin1.[012]) 8593 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8594 ;; 8595 *) # Darwin 1.3 on 8596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8598 else 8599 case ${MACOSX_DEPLOYMENT_TARGET} in 8600 10.[012]) 8601 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8602 ;; 8603 10.*) 8604 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8605 ;; 8606 esac 8607 fi 8608 ;; 8609 esac 8610 archive_cmds_need_lc=no 8611 hardcode_direct=no 8612 hardcode_automatic=yes 8613 hardcode_shlibpath_var=unsupported 8614 whole_archive_flag_spec='' 8615 link_all_deplibs=yes 8616 if test "$GCC" = yes ; then 8617 output_verbose_link_cmd='echo' 8618 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8619 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8621 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}' 8622 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}' 8623 else 8624 case $cc_basename in 8625 xlc*) 8626 output_verbose_link_cmd='echo' 8627 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8628 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8630 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}' 8631 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}' 8632 ;; 8633 *) 8634 ld_shlibs=no 8635 ;; 8636 esac 8637 fi 8638 ;; 8639 8640 dgux*) 8641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8642 hardcode_libdir_flag_spec='-L$libdir' 8643 hardcode_shlibpath_var=no 8644 ;; 8645 8646 freebsd1*) 8647 ld_shlibs=no 8648 ;; 8649 8650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8651 # support. Future versions do this automatically, but an explicit c++rt0.o 8652 # does not break anything, and helps significantly (at the cost of a little 8653 # extra space). 8654 freebsd2.2*) 8655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8656 hardcode_libdir_flag_spec='-R$libdir' 8657 hardcode_direct=yes 8658 hardcode_shlibpath_var=no 8659 ;; 8660 8661 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8662 freebsd2*) 8663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8664 hardcode_direct=yes 8665 hardcode_minus_L=yes 8666 hardcode_shlibpath_var=no 8667 ;; 8668 8669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8670 freebsd* | dragonfly*) 8671 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8672 hardcode_libdir_flag_spec='-R$libdir' 8673 hardcode_direct=yes 8674 hardcode_shlibpath_var=no 8675 ;; 8676 8677 hpux9*) 8678 if test "$GCC" = yes; then 8679 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' 8680 else 8681 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' 8682 fi 8683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8684 hardcode_libdir_separator=: 8685 hardcode_direct=yes 8686 8687 # hardcode_minus_L: Not really in the search PATH, 8688 # but as the default location of the library. 8689 hardcode_minus_L=yes 8690 export_dynamic_flag_spec='${wl}-E' 8691 ;; 8692 8693 hpux10*) 8694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8696 else 8697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8698 fi 8699 if test "$with_gnu_ld" = no; then 8700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8701 hardcode_libdir_separator=: 8702 8703 hardcode_direct=yes 8704 export_dynamic_flag_spec='${wl}-E' 8705 8706 # hardcode_minus_L: Not really in the search PATH, 8707 # but as the default location of the library. 8708 hardcode_minus_L=yes 8709 fi 8710 ;; 8711 8712 hpux11*) 8713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8714 case $host_cpu in 8715 hppa*64*) 8716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8717 ;; 8718 ia64*) 8719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8720 ;; 8721 *) 8722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8723 ;; 8724 esac 8725 else 8726 case $host_cpu in 8727 hppa*64*) 8728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8729 ;; 8730 ia64*) 8731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8732 ;; 8733 *) 8734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8735 ;; 8736 esac 8737 fi 8738 if test "$with_gnu_ld" = no; then 8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8740 hardcode_libdir_separator=: 8741 8742 case $host_cpu in 8743 hppa*64*|ia64*) 8744 hardcode_libdir_flag_spec_ld='+b $libdir' 8745 hardcode_direct=no 8746 hardcode_shlibpath_var=no 8747 ;; 8748 *) 8749 hardcode_direct=yes 8750 export_dynamic_flag_spec='${wl}-E' 8751 8752 # hardcode_minus_L: Not really in the search PATH, 8753 # but as the default location of the library. 8754 hardcode_minus_L=yes 8755 ;; 8756 esac 8757 fi 8758 ;; 8759 8760 irix5* | irix6* | nonstopux*) 8761 if test "$GCC" = yes; then 8762 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' 8763 else 8764 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' 8765 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8766 fi 8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8768 hardcode_libdir_separator=: 8769 link_all_deplibs=yes 8770 ;; 8771 8772 netbsd*) 8773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8775 else 8776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8777 fi 8778 hardcode_libdir_flag_spec='-R$libdir' 8779 hardcode_direct=yes 8780 hardcode_shlibpath_var=no 8781 ;; 8782 8783 newsos6) 8784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8785 hardcode_direct=yes 8786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8787 hardcode_libdir_separator=: 8788 hardcode_shlibpath_var=no 8789 ;; 8790 8791 openbsd*) 8792 if test -f /usr/libexec/ld.so; then 8793 hardcode_direct=yes 8794 hardcode_shlibpath_var=no 8795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8796 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8797 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8799 export_dynamic_flag_spec='${wl}-E' 8800 else 8801 case $host_os in 8802 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8804 hardcode_libdir_flag_spec='-R$libdir' 8805 ;; 8806 *) 8807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8809 ;; 8810 esac 8811 fi 8812 else 8813 ld_shlibs=no 8814 fi 8815 ;; 8816 8817 os2*) 8818 hardcode_libdir_flag_spec='-L$libdir' 8819 hardcode_minus_L=yes 8820 allow_undefined_flag=unsupported 8821 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' 8822 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8823 ;; 8824 8825 osf3*) 8826 if test "$GCC" = yes; then 8827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8828 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' 8829 else 8830 allow_undefined_flag=' -expect_unresolved \*' 8831 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' 8832 fi 8833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8834 hardcode_libdir_separator=: 8835 ;; 8836 8837 osf4* | osf5*) # as osf3* with the addition of -msym flag 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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8842 else 8843 allow_undefined_flag=' -expect_unresolved \*' 8844 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' 8845 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8846 $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' 8847 8848 # Both c and cxx compiler support -rpath directly 8849 hardcode_libdir_flag_spec='-rpath $libdir' 8850 fi 8851 hardcode_libdir_separator=: 8852 ;; 8853 8854 solaris*) 8855 no_undefined_flag=' -z text' 8856 if test "$GCC" = yes; then 8857 wlarc='${wl}' 8858 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8859 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8860 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8861 else 8862 wlarc='' 8863 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8864 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8865 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8866 fi 8867 hardcode_libdir_flag_spec='-R$libdir' 8868 hardcode_shlibpath_var=no 8869 case $host_os in 8870 solaris2.[0-5] | solaris2.[0-5].*) ;; 8871 *) 8872 # The compiler driver will combine and reorder linker options, 8873 # but understands `-z linker_flag'. GCC discards it without `$wl', 8874 # but is careful enough not to reorder. 8875 # Supported since Solaris 2.6 (maybe 2.5.1?) 8876 if test "$GCC" = yes; then 8877 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8878 else 8879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8880 fi 8881 ;; 8882 esac 8883 link_all_deplibs=yes 8884 ;; 8885 8886 sunos4*) 8887 if test "x$host_vendor" = xsequent; then 8888 # Use $CC to link under sequent, because it throws in some extra .o 8889 # files that make .init and .fini sections work. 8890 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8891 else 8892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8893 fi 8894 hardcode_libdir_flag_spec='-L$libdir' 8895 hardcode_direct=yes 8896 hardcode_minus_L=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 sysv4) 8901 case $host_vendor in 8902 sni) 8903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8904 hardcode_direct=yes # is this really true??? 8905 ;; 8906 siemens) 8907 ## LD is ld it makes a PLAMLIB 8908 ## CC just makes a GrossModule. 8909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8910 reload_cmds='$CC -r -o $output$reload_objs' 8911 hardcode_direct=no 8912 ;; 8913 motorola) 8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8916 ;; 8917 esac 8918 runpath_var='LD_RUN_PATH' 8919 hardcode_shlibpath_var=no 8920 ;; 8921 8922 sysv4.3*) 8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8924 hardcode_shlibpath_var=no 8925 export_dynamic_flag_spec='-Bexport' 8926 ;; 8927 8928 sysv4*MP*) 8929 if test -d /usr/nec; then 8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8931 hardcode_shlibpath_var=no 8932 runpath_var=LD_RUN_PATH 8933 hardcode_runpath_var=yes 8934 ld_shlibs=yes 8935 fi 8936 ;; 8937 8938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8939 no_undefined_flag='${wl}-z,text' 8940 archive_cmds_need_lc=no 8941 hardcode_shlibpath_var=no 8942 runpath_var='LD_RUN_PATH' 8943 8944 if test "$GCC" = yes; then 8945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8947 else 8948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8950 fi 8951 ;; 8952 8953 sysv5* | sco3.2v5* | sco5v6*) 8954 # Note: We can NOT use -z defs as we might desire, because we do not 8955 # link with -lc, and that would cause any symbols used from libc to 8956 # always be unresolved, which means just about no library would 8957 # ever link correctly. If we're not using GNU ld we use -z text 8958 # though, which does catch some bad symbols but isn't as heavy-handed 8959 # as -z defs. 8960 no_undefined_flag='${wl}-z,text' 8961 allow_undefined_flag='${wl}-z,nodefs' 8962 archive_cmds_need_lc=no 8963 hardcode_shlibpath_var=no 8964 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8965 hardcode_libdir_separator=':' 8966 link_all_deplibs=yes 8967 export_dynamic_flag_spec='${wl}-Bexport' 8968 runpath_var='LD_RUN_PATH' 8969 8970 if test "$GCC" = yes; then 8971 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8973 else 8974 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8976 fi 8977 ;; 8978 8979 uts4*) 8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8981 hardcode_libdir_flag_spec='-L$libdir' 8982 hardcode_shlibpath_var=no 8983 ;; 8984 8985 *) 8986 ld_shlibs=no 8987 ;; 8988 esac 8989 fi 8990 8991{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8992$as_echo "$ld_shlibs" >&6; } 8993test "$ld_shlibs" = no && can_build_shared=no 8994 8995# 8996# Do we need to explicitly link libc? 8997# 8998case "x$archive_cmds_need_lc" in 8999x|xyes) 9000 # Assume -lc should be added 9001 archive_cmds_need_lc=yes 9002 9003 if test "$enable_shared" = yes && test "$GCC" = yes; then 9004 case $archive_cmds in 9005 *'~'*) 9006 # FIXME: we may have to deal with multi-command sequences. 9007 ;; 9008 '$CC '*) 9009 # Test whether the compiler implicitly links with -lc since on some 9010 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9011 # to ld, don't add -lc before -lgcc. 9012 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9014 $rm conftest* 9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9016 9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9018 (eval $ac_compile) 2>&5 9019 ac_status=$? 9020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9021 (exit $ac_status); } 2>conftest.err; then 9022 soname=conftest 9023 lib=conftest 9024 libobjs=conftest.$ac_objext 9025 deplibs= 9026 wl=$lt_prog_compiler_wl 9027 pic_flag=$lt_prog_compiler_pic 9028 compiler_flags=-v 9029 linker_flags=-v 9030 verstring= 9031 output_objdir=. 9032 libname=conftest 9033 lt_save_allow_undefined_flag=$allow_undefined_flag 9034 allow_undefined_flag= 9035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9036 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9037 ac_status=$? 9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); } 9040 then 9041 archive_cmds_need_lc=no 9042 else 9043 archive_cmds_need_lc=yes 9044 fi 9045 allow_undefined_flag=$lt_save_allow_undefined_flag 9046 else 9047 cat conftest.err 1>&5 9048 fi 9049 $rm conftest* 9050 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9051$as_echo "$archive_cmds_need_lc" >&6; } 9052 ;; 9053 esac 9054 fi 9055 ;; 9056esac 9057 9058{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9059$as_echo_n "checking dynamic linker characteristics... " >&6; } 9060library_names_spec= 9061libname_spec='lib$name' 9062soname_spec= 9063shrext_cmds=".so" 9064postinstall_cmds= 9065postuninstall_cmds= 9066finish_cmds= 9067finish_eval= 9068shlibpath_var= 9069shlibpath_overrides_runpath=unknown 9070version_type=none 9071dynamic_linker="$host_os ld.so" 9072sys_lib_dlsearch_path_spec="/lib /usr/lib" 9073 9074if test "$GCC" = yes; then 9075 case $host_os in 9076 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9077 *) lt_awk_arg="/^libraries:/" ;; 9078 esac 9079 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9080 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9081 # if the path contains ";" then we assume it to be the separator 9082 # otherwise default to the standard path separator (i.e. ":") - it is 9083 # assumed that no part of a normal pathname contains ";" but that should 9084 # okay in the real world where ";" in dirpaths is itself problematic. 9085 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9086 else 9087 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9088 fi 9089 # Ok, now we have the path, separated by spaces, we can step through it 9090 # and add multilib dir if necessary. 9091 lt_tmp_lt_search_path_spec= 9092 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9093 for lt_sys_path in $lt_search_path_spec; do 9094 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9095 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9096 else 9097 test -d "$lt_sys_path" && \ 9098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9099 fi 9100 done 9101 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9102BEGIN {RS=" "; FS="/|\n";} { 9103 lt_foo=""; 9104 lt_count=0; 9105 for (lt_i = NF; lt_i > 0; lt_i--) { 9106 if ($lt_i != "" && $lt_i != ".") { 9107 if ($lt_i == "..") { 9108 lt_count++; 9109 } else { 9110 if (lt_count == 0) { 9111 lt_foo="/" $lt_i lt_foo; 9112 } else { 9113 lt_count--; 9114 } 9115 } 9116 } 9117 } 9118 if (lt_foo != "") { lt_freq[lt_foo]++; } 9119 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9120}'` 9121 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9122else 9123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9124fi 9125need_lib_prefix=unknown 9126hardcode_into_libs=no 9127 9128# when you set need_version to no, make sure it does not cause -set_version 9129# flags to be left without arguments 9130need_version=unknown 9131 9132case $host_os in 9133aix3*) 9134 version_type=linux 9135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9136 shlibpath_var=LIBPATH 9137 9138 # AIX 3 has no versioning support, so we append a major version to the name. 9139 soname_spec='${libname}${release}${shared_ext}$major' 9140 ;; 9141 9142aix4* | aix5*) 9143 version_type=linux 9144 need_lib_prefix=no 9145 need_version=no 9146 hardcode_into_libs=yes 9147 if test "$host_cpu" = ia64; then 9148 # AIX 5 supports IA64 9149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9150 shlibpath_var=LD_LIBRARY_PATH 9151 else 9152 # With GCC up to 2.95.x, collect2 would create an import file 9153 # for dependence libraries. The import file would start with 9154 # the line `#! .'. This would cause the generated library to 9155 # depend on `.', always an invalid library. This was fixed in 9156 # development snapshots of GCC prior to 3.0. 9157 case $host_os in 9158 aix4 | aix4.[01] | aix4.[01].*) 9159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9160 echo ' yes ' 9161 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9162 : 9163 else 9164 can_build_shared=no 9165 fi 9166 ;; 9167 esac 9168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9169 # soname into executable. Probably we can add versioning support to 9170 # collect2, so additional links can be useful in future. 9171 if test "$aix_use_runtimelinking" = yes; then 9172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9173 # instead of lib<name>.a to let people know that these are not 9174 # typical AIX shared libraries. 9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9176 else 9177 # We preserve .a as extension for shared libraries through AIX4.2 9178 # and later when we are not doing run time linking. 9179 library_names_spec='${libname}${release}.a $libname.a' 9180 soname_spec='${libname}${release}${shared_ext}$major' 9181 fi 9182 shlibpath_var=LIBPATH 9183 fi 9184 ;; 9185 9186amigaos*) 9187 library_names_spec='$libname.ixlibrary $libname.a' 9188 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9189 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' 9190 ;; 9191 9192beos*) 9193 library_names_spec='${libname}${shared_ext}' 9194 dynamic_linker="$host_os ld.so" 9195 shlibpath_var=LIBRARY_PATH 9196 ;; 9197 9198bsdi[45]*) 9199 version_type=linux 9200 need_version=no 9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9202 soname_spec='${libname}${release}${shared_ext}$major' 9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9204 shlibpath_var=LD_LIBRARY_PATH 9205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9207 # the default ld.so.conf also contains /usr/contrib/lib and 9208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9209 # libtool to hard-code these into programs 9210 ;; 9211 9212cygwin* | mingw* | pw32*) 9213 version_type=windows 9214 shrext_cmds=".dll" 9215 need_version=no 9216 need_lib_prefix=no 9217 9218 case $GCC,$host_os in 9219 yes,cygwin* | yes,mingw* | yes,pw32*) 9220 library_names_spec='$libname.dll.a' 9221 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9222 postinstall_cmds='base_file=`basename \${file}`~ 9223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9224 dldir=$destdir/`dirname \$dlpath`~ 9225 test -d \$dldir || mkdir -p \$dldir~ 9226 $install_prog $dir/$dlname \$dldir/$dlname~ 9227 chmod a+x \$dldir/$dlname' 9228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9229 dlpath=$dir/\$dldll~ 9230 $rm \$dlpath' 9231 shlibpath_overrides_runpath=yes 9232 9233 case $host_os in 9234 cygwin*) 9235 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9238 ;; 9239 mingw*) 9240 # MinGW DLLs use traditional 'lib' prefix 9241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9244 # It is most probably a Windows format PATH printed by 9245 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9246 # path with ; separators, and with drive letters. We can handle the 9247 # drive letters (cygwin fileutils understands them), so leave them, 9248 # especially as we might pass files found there to a mingw objdump, 9249 # which wouldn't understand a cygwinified path. Ahh. 9250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9251 else 9252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9253 fi 9254 ;; 9255 pw32*) 9256 # pw32 DLLs use 'pw' prefix rather than 'lib' 9257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9258 ;; 9259 esac 9260 ;; 9261 9262 *) 9263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9264 ;; 9265 esac 9266 dynamic_linker='Win32 ld.exe' 9267 # FIXME: first we should search . and the directory the executable is in 9268 shlibpath_var=PATH 9269 ;; 9270 9271darwin* | rhapsody*) 9272 dynamic_linker="$host_os dyld" 9273 version_type=darwin 9274 need_lib_prefix=no 9275 need_version=no 9276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9277 soname_spec='${libname}${release}${major}$shared_ext' 9278 shlibpath_overrides_runpath=yes 9279 shlibpath_var=DYLD_LIBRARY_PATH 9280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9281 9282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9284 ;; 9285 9286dgux*) 9287 version_type=linux 9288 need_lib_prefix=no 9289 need_version=no 9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9291 soname_spec='${libname}${release}${shared_ext}$major' 9292 shlibpath_var=LD_LIBRARY_PATH 9293 ;; 9294 9295freebsd1*) 9296 dynamic_linker=no 9297 ;; 9298 9299freebsd* | dragonfly*) 9300 # DragonFly does not have aout. When/if they implement a new 9301 # versioning mechanism, adjust this. 9302 if test -x /usr/bin/objformat; then 9303 objformat=`/usr/bin/objformat` 9304 else 9305 case $host_os in 9306 freebsd[123]*) objformat=aout ;; 9307 *) objformat=elf ;; 9308 esac 9309 fi 9310 version_type=freebsd-$objformat 9311 case $version_type in 9312 freebsd-elf*) 9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9314 need_version=no 9315 need_lib_prefix=no 9316 ;; 9317 freebsd-*) 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9319 need_version=yes 9320 ;; 9321 esac 9322 shlibpath_var=LD_LIBRARY_PATH 9323 case $host_os in 9324 freebsd2*) 9325 shlibpath_overrides_runpath=yes 9326 ;; 9327 freebsd3.[01]* | freebsdelf3.[01]*) 9328 shlibpath_overrides_runpath=yes 9329 hardcode_into_libs=yes 9330 ;; 9331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9333 shlibpath_overrides_runpath=no 9334 hardcode_into_libs=yes 9335 ;; 9336 *) # from 4.6 on, and DragonFly 9337 shlibpath_overrides_runpath=yes 9338 hardcode_into_libs=yes 9339 ;; 9340 esac 9341 ;; 9342 9343gnu*) 9344 version_type=linux 9345 need_lib_prefix=no 9346 need_version=no 9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9348 soname_spec='${libname}${release}${shared_ext}$major' 9349 shlibpath_var=LD_LIBRARY_PATH 9350 hardcode_into_libs=yes 9351 ;; 9352 9353hpux9* | hpux10* | hpux11*) 9354 # Give a soname corresponding to the major version so that dld.sl refuses to 9355 # link against other versions. 9356 version_type=sunos 9357 need_lib_prefix=no 9358 need_version=no 9359 case $host_cpu in 9360 ia64*) 9361 shrext_cmds='.so' 9362 hardcode_into_libs=yes 9363 dynamic_linker="$host_os dld.so" 9364 shlibpath_var=LD_LIBRARY_PATH 9365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9367 soname_spec='${libname}${release}${shared_ext}$major' 9368 if test "X$HPUX_IA64_MODE" = X32; then 9369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9370 else 9371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9372 fi 9373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9374 ;; 9375 hppa*64*) 9376 shrext_cmds='.sl' 9377 hardcode_into_libs=yes 9378 dynamic_linker="$host_os dld.sl" 9379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9382 soname_spec='${libname}${release}${shared_ext}$major' 9383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9385 ;; 9386 *) 9387 shrext_cmds='.sl' 9388 dynamic_linker="$host_os dld.sl" 9389 shlibpath_var=SHLIB_PATH 9390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 ;; 9394 esac 9395 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9396 postinstall_cmds='chmod 555 $lib' 9397 ;; 9398 9399interix[3-9]*) 9400 version_type=linux 9401 need_lib_prefix=no 9402 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9406 shlibpath_var=LD_LIBRARY_PATH 9407 shlibpath_overrides_runpath=no 9408 hardcode_into_libs=yes 9409 ;; 9410 9411irix5* | irix6* | nonstopux*) 9412 case $host_os in 9413 nonstopux*) version_type=nonstopux ;; 9414 *) 9415 if test "$lt_cv_prog_gnu_ld" = yes; then 9416 version_type=linux 9417 else 9418 version_type=irix 9419 fi ;; 9420 esac 9421 need_lib_prefix=no 9422 need_version=no 9423 soname_spec='${libname}${release}${shared_ext}$major' 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9425 case $host_os in 9426 irix5* | nonstopux*) 9427 libsuff= shlibsuff= 9428 ;; 9429 *) 9430 case $LD in # libtool.m4 will add one of these switches to LD 9431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9432 libsuff= shlibsuff= libmagic=32-bit;; 9433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9434 libsuff=32 shlibsuff=N32 libmagic=N32;; 9435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9436 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9437 *) libsuff= shlibsuff= libmagic=never-match;; 9438 esac 9439 ;; 9440 esac 9441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9442 shlibpath_overrides_runpath=no 9443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9445 hardcode_into_libs=yes 9446 ;; 9447 9448# No shared lib support for Linux oldld, aout, or coff. 9449linux*oldld* | linux*aout* | linux*coff*) 9450 dynamic_linker=no 9451 ;; 9452 9453# This must be Linux ELF. 9454linux* | k*bsd*-gnu) 9455 version_type=linux 9456 need_lib_prefix=no 9457 need_version=no 9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9459 soname_spec='${libname}${release}${shared_ext}$major' 9460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9461 shlibpath_var=LD_LIBRARY_PATH 9462 shlibpath_overrides_runpath=no 9463 # This implies no fast_install, which is unacceptable. 9464 # Some rework will be needed to allow for fast_install 9465 # before this can be enabled. 9466 hardcode_into_libs=yes 9467 9468 # Append ld.so.conf contents to the search path 9469 if test -f /etc/ld.so.conf; then 9470 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' ' '` 9471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9472 fi 9473 9474 # We used to test for /lib/ld.so.1 and disable shared libraries on 9475 # powerpc, because MkLinux only supported shared libraries with the 9476 # GNU dynamic linker. Since this was broken with cross compilers, 9477 # most powerpc-linux boxes support dynamic linking these days and 9478 # people can always --disable-shared, the test was removed, and we 9479 # assume the GNU/Linux dynamic linker is in use. 9480 dynamic_linker='GNU/Linux ld.so' 9481 ;; 9482 9483netbsd*) 9484 version_type=sunos 9485 need_lib_prefix=no 9486 need_version=no 9487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9490 dynamic_linker='NetBSD (a.out) ld.so' 9491 else 9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9493 soname_spec='${libname}${release}${shared_ext}$major' 9494 dynamic_linker='NetBSD ld.elf_so' 9495 fi 9496 shlibpath_var=LD_LIBRARY_PATH 9497 shlibpath_overrides_runpath=yes 9498 hardcode_into_libs=yes 9499 ;; 9500 9501newsos6) 9502 version_type=linux 9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9504 shlibpath_var=LD_LIBRARY_PATH 9505 shlibpath_overrides_runpath=yes 9506 ;; 9507 9508nto-qnx*) 9509 version_type=linux 9510 need_lib_prefix=no 9511 need_version=no 9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9513 soname_spec='${libname}${release}${shared_ext}$major' 9514 shlibpath_var=LD_LIBRARY_PATH 9515 shlibpath_overrides_runpath=yes 9516 ;; 9517 9518openbsd*) 9519 version_type=sunos 9520 sys_lib_dlsearch_path_spec="/usr/lib" 9521 need_lib_prefix=no 9522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9523 case $host_os in 9524 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9525 *) need_version=no ;; 9526 esac 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9529 shlibpath_var=LD_LIBRARY_PATH 9530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9531 case $host_os in 9532 openbsd2.[89] | openbsd2.[89].*) 9533 shlibpath_overrides_runpath=no 9534 ;; 9535 *) 9536 shlibpath_overrides_runpath=yes 9537 ;; 9538 esac 9539 else 9540 shlibpath_overrides_runpath=yes 9541 fi 9542 ;; 9543 9544os2*) 9545 libname_spec='$name' 9546 shrext_cmds=".dll" 9547 need_lib_prefix=no 9548 library_names_spec='$libname${shared_ext} $libname.a' 9549 dynamic_linker='OS/2 ld.exe' 9550 shlibpath_var=LIBPATH 9551 ;; 9552 9553osf3* | osf4* | osf5*) 9554 version_type=osf 9555 need_lib_prefix=no 9556 need_version=no 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9559 shlibpath_var=LD_LIBRARY_PATH 9560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9562 ;; 9563 9564rdos*) 9565 dynamic_linker=no 9566 ;; 9567 9568solaris*) 9569 version_type=linux 9570 need_lib_prefix=no 9571 need_version=no 9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9573 soname_spec='${libname}${release}${shared_ext}$major' 9574 shlibpath_var=LD_LIBRARY_PATH 9575 shlibpath_overrides_runpath=yes 9576 hardcode_into_libs=yes 9577 # ldd complains unless libraries are executable 9578 postinstall_cmds='chmod +x $lib' 9579 ;; 9580 9581sunos4*) 9582 version_type=sunos 9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9585 shlibpath_var=LD_LIBRARY_PATH 9586 shlibpath_overrides_runpath=yes 9587 if test "$with_gnu_ld" = yes; then 9588 need_lib_prefix=no 9589 fi 9590 need_version=yes 9591 ;; 9592 9593sysv4 | sysv4.3*) 9594 version_type=linux 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9596 soname_spec='${libname}${release}${shared_ext}$major' 9597 shlibpath_var=LD_LIBRARY_PATH 9598 case $host_vendor in 9599 sni) 9600 shlibpath_overrides_runpath=no 9601 need_lib_prefix=no 9602 export_dynamic_flag_spec='${wl}-Blargedynsym' 9603 runpath_var=LD_RUN_PATH 9604 ;; 9605 siemens) 9606 need_lib_prefix=no 9607 ;; 9608 motorola) 9609 need_lib_prefix=no 9610 need_version=no 9611 shlibpath_overrides_runpath=no 9612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9613 ;; 9614 esac 9615 ;; 9616 9617sysv4*MP*) 9618 if test -d /usr/nec ;then 9619 version_type=linux 9620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9621 soname_spec='$libname${shared_ext}.$major' 9622 shlibpath_var=LD_LIBRARY_PATH 9623 fi 9624 ;; 9625 9626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9627 version_type=freebsd-elf 9628 need_lib_prefix=no 9629 need_version=no 9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9631 soname_spec='${libname}${release}${shared_ext}$major' 9632 shlibpath_var=LD_LIBRARY_PATH 9633 hardcode_into_libs=yes 9634 if test "$with_gnu_ld" = yes; then 9635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9636 shlibpath_overrides_runpath=no 9637 else 9638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9639 shlibpath_overrides_runpath=yes 9640 case $host_os in 9641 sco3.2v5*) 9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9643 ;; 9644 esac 9645 fi 9646 sys_lib_dlsearch_path_spec='/usr/lib' 9647 ;; 9648 9649uts4*) 9650 version_type=linux 9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9652 soname_spec='${libname}${release}${shared_ext}$major' 9653 shlibpath_var=LD_LIBRARY_PATH 9654 ;; 9655 9656*) 9657 dynamic_linker=no 9658 ;; 9659esac 9660{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9661$as_echo "$dynamic_linker" >&6; } 9662test "$dynamic_linker" = no && can_build_shared=no 9663 9664variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9665if test "$GCC" = yes; then 9666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9667fi 9668 9669{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9670$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9671hardcode_action= 9672if test -n "$hardcode_libdir_flag_spec" || \ 9673 test -n "$runpath_var" || \ 9674 test "X$hardcode_automatic" = "Xyes" ; then 9675 9676 # We can hardcode non-existant directories. 9677 if test "$hardcode_direct" != no && 9678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9679 # have to relink, otherwise we might link with an installed library 9680 # when we should be linking with a yet-to-be-installed one 9681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9682 test "$hardcode_minus_L" != no; then 9683 # Linking always hardcodes the temporary library directory. 9684 hardcode_action=relink 9685 else 9686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9687 hardcode_action=immediate 9688 fi 9689else 9690 # We cannot hardcode anything, or else we can only hardcode existing 9691 # directories. 9692 hardcode_action=unsupported 9693fi 9694{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9695$as_echo "$hardcode_action" >&6; } 9696 9697if test "$hardcode_action" = relink; then 9698 # Fast installation is not supported 9699 enable_fast_install=no 9700elif test "$shlibpath_overrides_runpath" = yes || 9701 test "$enable_shared" = no; then 9702 # Fast installation is not necessary 9703 enable_fast_install=needless 9704fi 9705 9706striplib= 9707old_striplib= 9708{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9709$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9710if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9711 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9712 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9713 { $as_echo "$as_me:$LINENO: result: yes" >&5 9714$as_echo "yes" >&6; } 9715else 9716# FIXME - insert some real tests, host_os isn't really good enough 9717 case $host_os in 9718 darwin*) 9719 if test -n "$STRIP" ; then 9720 striplib="$STRIP -x" 9721 old_striplib="$STRIP -S" 9722 { $as_echo "$as_me:$LINENO: result: yes" >&5 9723$as_echo "yes" >&6; } 9724 else 9725 { $as_echo "$as_me:$LINENO: result: no" >&5 9726$as_echo "no" >&6; } 9727fi 9728 ;; 9729 *) 9730 { $as_echo "$as_me:$LINENO: result: no" >&5 9731$as_echo "no" >&6; } 9732 ;; 9733 esac 9734fi 9735 9736if test "x$enable_dlopen" != xyes; then 9737 enable_dlopen=unknown 9738 enable_dlopen_self=unknown 9739 enable_dlopen_self_static=unknown 9740else 9741 lt_cv_dlopen=no 9742 lt_cv_dlopen_libs= 9743 9744 case $host_os in 9745 beos*) 9746 lt_cv_dlopen="load_add_on" 9747 lt_cv_dlopen_libs= 9748 lt_cv_dlopen_self=yes 9749 ;; 9750 9751 mingw* | pw32*) 9752 lt_cv_dlopen="LoadLibrary" 9753 lt_cv_dlopen_libs= 9754 ;; 9755 9756 cygwin*) 9757 lt_cv_dlopen="dlopen" 9758 lt_cv_dlopen_libs= 9759 ;; 9760 9761 darwin*) 9762 # if libdl is installed we need to link against it 9763 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9764$as_echo_n "checking for dlopen in -ldl... " >&6; } 9765if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9766 $as_echo_n "(cached) " >&6 9767else 9768 ac_check_lib_save_LIBS=$LIBS 9769LIBS="-ldl $LIBS" 9770cat >conftest.$ac_ext <<_ACEOF 9771/* confdefs.h. */ 9772_ACEOF 9773cat confdefs.h >>conftest.$ac_ext 9774cat >>conftest.$ac_ext <<_ACEOF 9775/* end confdefs.h. */ 9776 9777/* Override any GCC internal prototype to avoid an error. 9778 Use char because int might match the return type of a GCC 9779 builtin and then its argument prototype would still apply. */ 9780#ifdef __cplusplus 9781extern "C" 9782#endif 9783char dlopen (); 9784int 9785main () 9786{ 9787return dlopen (); 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792rm -f conftest.$ac_objext conftest$ac_exeext 9793if { (ac_try="$ac_link" 9794case "(($ac_try" in 9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9796 *) ac_try_echo=$ac_try;; 9797esac 9798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9799$as_echo "$ac_try_echo") >&5 9800 (eval "$ac_link") 2>conftest.er1 9801 ac_status=$? 9802 grep -v '^ *+' conftest.er1 >conftest.err 9803 rm -f conftest.er1 9804 cat conftest.err >&5 9805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); } && { 9807 test -z "$ac_c_werror_flag" || 9808 test ! -s conftest.err 9809 } && test -s conftest$ac_exeext && { 9810 test "$cross_compiling" = yes || 9811 $as_test_x conftest$ac_exeext 9812 }; then 9813 ac_cv_lib_dl_dlopen=yes 9814else 9815 $as_echo "$as_me: failed program was:" >&5 9816sed 's/^/| /' conftest.$ac_ext >&5 9817 9818 ac_cv_lib_dl_dlopen=no 9819fi 9820 9821rm -rf conftest.dSYM 9822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9823 conftest$ac_exeext conftest.$ac_ext 9824LIBS=$ac_check_lib_save_LIBS 9825fi 9826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9827$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9828if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9830else 9831 9832 lt_cv_dlopen="dyld" 9833 lt_cv_dlopen_libs= 9834 lt_cv_dlopen_self=yes 9835 9836fi 9837 9838 ;; 9839 9840 *) 9841 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9842$as_echo_n "checking for shl_load... " >&6; } 9843if test "${ac_cv_func_shl_load+set}" = set; then 9844 $as_echo_n "(cached) " >&6 9845else 9846 cat >conftest.$ac_ext <<_ACEOF 9847/* confdefs.h. */ 9848_ACEOF 9849cat confdefs.h >>conftest.$ac_ext 9850cat >>conftest.$ac_ext <<_ACEOF 9851/* end confdefs.h. */ 9852/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9853 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9854#define shl_load innocuous_shl_load 9855 9856/* System header to define __stub macros and hopefully few prototypes, 9857 which can conflict with char shl_load (); below. 9858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9859 <limits.h> exists even on freestanding compilers. */ 9860 9861#ifdef __STDC__ 9862# include <limits.h> 9863#else 9864# include <assert.h> 9865#endif 9866 9867#undef shl_load 9868 9869/* Override any GCC internal prototype to avoid an error. 9870 Use char because int might match the return type of a GCC 9871 builtin and then its argument prototype would still apply. */ 9872#ifdef __cplusplus 9873extern "C" 9874#endif 9875char shl_load (); 9876/* The GNU C library defines this for functions which it implements 9877 to always fail with ENOSYS. Some functions are actually named 9878 something starting with __ and the normal name is an alias. */ 9879#if defined __stub_shl_load || defined __stub___shl_load 9880choke me 9881#endif 9882 9883int 9884main () 9885{ 9886return shl_load (); 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891rm -f conftest.$ac_objext conftest$ac_exeext 9892if { (ac_try="$ac_link" 9893case "(($ac_try" in 9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9895 *) ac_try_echo=$ac_try;; 9896esac 9897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9898$as_echo "$ac_try_echo") >&5 9899 (eval "$ac_link") 2>conftest.er1 9900 ac_status=$? 9901 grep -v '^ *+' conftest.er1 >conftest.err 9902 rm -f conftest.er1 9903 cat conftest.err >&5 9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9905 (exit $ac_status); } && { 9906 test -z "$ac_c_werror_flag" || 9907 test ! -s conftest.err 9908 } && test -s conftest$ac_exeext && { 9909 test "$cross_compiling" = yes || 9910 $as_test_x conftest$ac_exeext 9911 }; then 9912 ac_cv_func_shl_load=yes 9913else 9914 $as_echo "$as_me: failed program was:" >&5 9915sed 's/^/| /' conftest.$ac_ext >&5 9916 9917 ac_cv_func_shl_load=no 9918fi 9919 9920rm -rf conftest.dSYM 9921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9922 conftest$ac_exeext conftest.$ac_ext 9923fi 9924{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9925$as_echo "$ac_cv_func_shl_load" >&6; } 9926if test "x$ac_cv_func_shl_load" = x""yes; then 9927 lt_cv_dlopen="shl_load" 9928else 9929 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9930$as_echo_n "checking for shl_load in -ldld... " >&6; } 9931if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9932 $as_echo_n "(cached) " >&6 9933else 9934 ac_check_lib_save_LIBS=$LIBS 9935LIBS="-ldld $LIBS" 9936cat >conftest.$ac_ext <<_ACEOF 9937/* confdefs.h. */ 9938_ACEOF 9939cat confdefs.h >>conftest.$ac_ext 9940cat >>conftest.$ac_ext <<_ACEOF 9941/* end confdefs.h. */ 9942 9943/* Override any GCC internal prototype to avoid an error. 9944 Use char because int might match the return type of a GCC 9945 builtin and then its argument prototype would still apply. */ 9946#ifdef __cplusplus 9947extern "C" 9948#endif 9949char shl_load (); 9950int 9951main () 9952{ 9953return shl_load (); 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958rm -f conftest.$ac_objext conftest$ac_exeext 9959if { (ac_try="$ac_link" 9960case "(($ac_try" in 9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9962 *) ac_try_echo=$ac_try;; 9963esac 9964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9965$as_echo "$ac_try_echo") >&5 9966 (eval "$ac_link") 2>conftest.er1 9967 ac_status=$? 9968 grep -v '^ *+' conftest.er1 >conftest.err 9969 rm -f conftest.er1 9970 cat conftest.err >&5 9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9972 (exit $ac_status); } && { 9973 test -z "$ac_c_werror_flag" || 9974 test ! -s conftest.err 9975 } && test -s conftest$ac_exeext && { 9976 test "$cross_compiling" = yes || 9977 $as_test_x conftest$ac_exeext 9978 }; then 9979 ac_cv_lib_dld_shl_load=yes 9980else 9981 $as_echo "$as_me: failed program was:" >&5 9982sed 's/^/| /' conftest.$ac_ext >&5 9983 9984 ac_cv_lib_dld_shl_load=no 9985fi 9986 9987rm -rf conftest.dSYM 9988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9989 conftest$ac_exeext conftest.$ac_ext 9990LIBS=$ac_check_lib_save_LIBS 9991fi 9992{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9993$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9994if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 9995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9996else 9997 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9998$as_echo_n "checking for dlopen... " >&6; } 9999if test "${ac_cv_func_dlopen+set}" = set; then 10000 $as_echo_n "(cached) " >&6 10001else 10002 cat >conftest.$ac_ext <<_ACEOF 10003/* confdefs.h. */ 10004_ACEOF 10005cat confdefs.h >>conftest.$ac_ext 10006cat >>conftest.$ac_ext <<_ACEOF 10007/* end confdefs.h. */ 10008/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10009 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10010#define dlopen innocuous_dlopen 10011 10012/* System header to define __stub macros and hopefully few prototypes, 10013 which can conflict with char dlopen (); below. 10014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10015 <limits.h> exists even on freestanding compilers. */ 10016 10017#ifdef __STDC__ 10018# include <limits.h> 10019#else 10020# include <assert.h> 10021#endif 10022 10023#undef dlopen 10024 10025/* Override any GCC internal prototype to avoid an error. 10026 Use char because int might match the return type of a GCC 10027 builtin and then its argument prototype would still apply. */ 10028#ifdef __cplusplus 10029extern "C" 10030#endif 10031char dlopen (); 10032/* The GNU C library defines this for functions which it implements 10033 to always fail with ENOSYS. Some functions are actually named 10034 something starting with __ and the normal name is an alias. */ 10035#if defined __stub_dlopen || defined __stub___dlopen 10036choke me 10037#endif 10038 10039int 10040main () 10041{ 10042return dlopen (); 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047rm -f conftest.$ac_objext conftest$ac_exeext 10048if { (ac_try="$ac_link" 10049case "(($ac_try" in 10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10051 *) ac_try_echo=$ac_try;; 10052esac 10053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10054$as_echo "$ac_try_echo") >&5 10055 (eval "$ac_link") 2>conftest.er1 10056 ac_status=$? 10057 grep -v '^ *+' conftest.er1 >conftest.err 10058 rm -f conftest.er1 10059 cat conftest.err >&5 10060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); } && { 10062 test -z "$ac_c_werror_flag" || 10063 test ! -s conftest.err 10064 } && test -s conftest$ac_exeext && { 10065 test "$cross_compiling" = yes || 10066 $as_test_x conftest$ac_exeext 10067 }; then 10068 ac_cv_func_dlopen=yes 10069else 10070 $as_echo "$as_me: failed program was:" >&5 10071sed 's/^/| /' conftest.$ac_ext >&5 10072 10073 ac_cv_func_dlopen=no 10074fi 10075 10076rm -rf conftest.dSYM 10077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10078 conftest$ac_exeext conftest.$ac_ext 10079fi 10080{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10081$as_echo "$ac_cv_func_dlopen" >&6; } 10082if test "x$ac_cv_func_dlopen" = x""yes; then 10083 lt_cv_dlopen="dlopen" 10084else 10085 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10086$as_echo_n "checking for dlopen in -ldl... " >&6; } 10087if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10088 $as_echo_n "(cached) " >&6 10089else 10090 ac_check_lib_save_LIBS=$LIBS 10091LIBS="-ldl $LIBS" 10092cat >conftest.$ac_ext <<_ACEOF 10093/* confdefs.h. */ 10094_ACEOF 10095cat confdefs.h >>conftest.$ac_ext 10096cat >>conftest.$ac_ext <<_ACEOF 10097/* end confdefs.h. */ 10098 10099/* Override any GCC internal prototype to avoid an error. 10100 Use char because int might match the return type of a GCC 10101 builtin and then its argument prototype would still apply. */ 10102#ifdef __cplusplus 10103extern "C" 10104#endif 10105char dlopen (); 10106int 10107main () 10108{ 10109return dlopen (); 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114rm -f conftest.$ac_objext conftest$ac_exeext 10115if { (ac_try="$ac_link" 10116case "(($ac_try" in 10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10118 *) ac_try_echo=$ac_try;; 10119esac 10120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10121$as_echo "$ac_try_echo") >&5 10122 (eval "$ac_link") 2>conftest.er1 10123 ac_status=$? 10124 grep -v '^ *+' conftest.er1 >conftest.err 10125 rm -f conftest.er1 10126 cat conftest.err >&5 10127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 (exit $ac_status); } && { 10129 test -z "$ac_c_werror_flag" || 10130 test ! -s conftest.err 10131 } && test -s conftest$ac_exeext && { 10132 test "$cross_compiling" = yes || 10133 $as_test_x conftest$ac_exeext 10134 }; then 10135 ac_cv_lib_dl_dlopen=yes 10136else 10137 $as_echo "$as_me: failed program was:" >&5 10138sed 's/^/| /' conftest.$ac_ext >&5 10139 10140 ac_cv_lib_dl_dlopen=no 10141fi 10142 10143rm -rf conftest.dSYM 10144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10145 conftest$ac_exeext conftest.$ac_ext 10146LIBS=$ac_check_lib_save_LIBS 10147fi 10148{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10149$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10150if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10152else 10153 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10154$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10155if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10156 $as_echo_n "(cached) " >&6 10157else 10158 ac_check_lib_save_LIBS=$LIBS 10159LIBS="-lsvld $LIBS" 10160cat >conftest.$ac_ext <<_ACEOF 10161/* confdefs.h. */ 10162_ACEOF 10163cat confdefs.h >>conftest.$ac_ext 10164cat >>conftest.$ac_ext <<_ACEOF 10165/* end confdefs.h. */ 10166 10167/* Override any GCC internal prototype to avoid an error. 10168 Use char because int might match the return type of a GCC 10169 builtin and then its argument prototype would still apply. */ 10170#ifdef __cplusplus 10171extern "C" 10172#endif 10173char dlopen (); 10174int 10175main () 10176{ 10177return dlopen (); 10178 ; 10179 return 0; 10180} 10181_ACEOF 10182rm -f conftest.$ac_objext conftest$ac_exeext 10183if { (ac_try="$ac_link" 10184case "(($ac_try" in 10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10186 *) ac_try_echo=$ac_try;; 10187esac 10188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10189$as_echo "$ac_try_echo") >&5 10190 (eval "$ac_link") 2>conftest.er1 10191 ac_status=$? 10192 grep -v '^ *+' conftest.er1 >conftest.err 10193 rm -f conftest.er1 10194 cat conftest.err >&5 10195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 (exit $ac_status); } && { 10197 test -z "$ac_c_werror_flag" || 10198 test ! -s conftest.err 10199 } && test -s conftest$ac_exeext && { 10200 test "$cross_compiling" = yes || 10201 $as_test_x conftest$ac_exeext 10202 }; then 10203 ac_cv_lib_svld_dlopen=yes 10204else 10205 $as_echo "$as_me: failed program was:" >&5 10206sed 's/^/| /' conftest.$ac_ext >&5 10207 10208 ac_cv_lib_svld_dlopen=no 10209fi 10210 10211rm -rf conftest.dSYM 10212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10213 conftest$ac_exeext conftest.$ac_ext 10214LIBS=$ac_check_lib_save_LIBS 10215fi 10216{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10217$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10218if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10220else 10221 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10222$as_echo_n "checking for dld_link in -ldld... " >&6; } 10223if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10224 $as_echo_n "(cached) " >&6 10225else 10226 ac_check_lib_save_LIBS=$LIBS 10227LIBS="-ldld $LIBS" 10228cat >conftest.$ac_ext <<_ACEOF 10229/* confdefs.h. */ 10230_ACEOF 10231cat confdefs.h >>conftest.$ac_ext 10232cat >>conftest.$ac_ext <<_ACEOF 10233/* end confdefs.h. */ 10234 10235/* Override any GCC internal prototype to avoid an error. 10236 Use char because int might match the return type of a GCC 10237 builtin and then its argument prototype would still apply. */ 10238#ifdef __cplusplus 10239extern "C" 10240#endif 10241char dld_link (); 10242int 10243main () 10244{ 10245return dld_link (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250rm -f conftest.$ac_objext conftest$ac_exeext 10251if { (ac_try="$ac_link" 10252case "(($ac_try" in 10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10254 *) ac_try_echo=$ac_try;; 10255esac 10256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10257$as_echo "$ac_try_echo") >&5 10258 (eval "$ac_link") 2>conftest.er1 10259 ac_status=$? 10260 grep -v '^ *+' conftest.er1 >conftest.err 10261 rm -f conftest.er1 10262 cat conftest.err >&5 10263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10264 (exit $ac_status); } && { 10265 test -z "$ac_c_werror_flag" || 10266 test ! -s conftest.err 10267 } && test -s conftest$ac_exeext && { 10268 test "$cross_compiling" = yes || 10269 $as_test_x conftest$ac_exeext 10270 }; then 10271 ac_cv_lib_dld_dld_link=yes 10272else 10273 $as_echo "$as_me: failed program was:" >&5 10274sed 's/^/| /' conftest.$ac_ext >&5 10275 10276 ac_cv_lib_dld_dld_link=no 10277fi 10278 10279rm -rf conftest.dSYM 10280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10281 conftest$ac_exeext conftest.$ac_ext 10282LIBS=$ac_check_lib_save_LIBS 10283fi 10284{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10285$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10286if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10288fi 10289 10290 10291fi 10292 10293 10294fi 10295 10296 10297fi 10298 10299 10300fi 10301 10302 10303fi 10304 10305 ;; 10306 esac 10307 10308 if test "x$lt_cv_dlopen" != xno; then 10309 enable_dlopen=yes 10310 else 10311 enable_dlopen=no 10312 fi 10313 10314 case $lt_cv_dlopen in 10315 dlopen) 10316 save_CPPFLAGS="$CPPFLAGS" 10317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10318 10319 save_LDFLAGS="$LDFLAGS" 10320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10321 10322 save_LIBS="$LIBS" 10323 LIBS="$lt_cv_dlopen_libs $LIBS" 10324 10325 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10326$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10327if test "${lt_cv_dlopen_self+set}" = set; then 10328 $as_echo_n "(cached) " >&6 10329else 10330 if test "$cross_compiling" = yes; then : 10331 lt_cv_dlopen_self=cross 10332else 10333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10334 lt_status=$lt_dlunknown 10335 cat > conftest.$ac_ext <<EOF 10336#line 10336 "configure" 10337#include "confdefs.h" 10338 10339#if HAVE_DLFCN_H 10340#include <dlfcn.h> 10341#endif 10342 10343#include <stdio.h> 10344 10345#ifdef RTLD_GLOBAL 10346# define LT_DLGLOBAL RTLD_GLOBAL 10347#else 10348# ifdef DL_GLOBAL 10349# define LT_DLGLOBAL DL_GLOBAL 10350# else 10351# define LT_DLGLOBAL 0 10352# endif 10353#endif 10354 10355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10356 find out it does not work in some platform. */ 10357#ifndef LT_DLLAZY_OR_NOW 10358# ifdef RTLD_LAZY 10359# define LT_DLLAZY_OR_NOW RTLD_LAZY 10360# else 10361# ifdef DL_LAZY 10362# define LT_DLLAZY_OR_NOW DL_LAZY 10363# else 10364# ifdef RTLD_NOW 10365# define LT_DLLAZY_OR_NOW RTLD_NOW 10366# else 10367# ifdef DL_NOW 10368# define LT_DLLAZY_OR_NOW DL_NOW 10369# else 10370# define LT_DLLAZY_OR_NOW 0 10371# endif 10372# endif 10373# endif 10374# endif 10375#endif 10376 10377#ifdef __cplusplus 10378extern "C" void exit (int); 10379#endif 10380 10381void fnord() { int i=42;} 10382int main () 10383{ 10384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10385 int status = $lt_dlunknown; 10386 10387 if (self) 10388 { 10389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10391 /* dlclose (self); */ 10392 } 10393 else 10394 puts (dlerror ()); 10395 10396 exit (status); 10397} 10398EOF 10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10400 (eval $ac_link) 2>&5 10401 ac_status=$? 10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10404 (./conftest; exit; ) >&5 2>/dev/null 10405 lt_status=$? 10406 case x$lt_status in 10407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10410 esac 10411 else : 10412 # compilation failed 10413 lt_cv_dlopen_self=no 10414 fi 10415fi 10416rm -fr conftest* 10417 10418 10419fi 10420{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10421$as_echo "$lt_cv_dlopen_self" >&6; } 10422 10423 if test "x$lt_cv_dlopen_self" = xyes; then 10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10425 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10426$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10427if test "${lt_cv_dlopen_self_static+set}" = set; then 10428 $as_echo_n "(cached) " >&6 10429else 10430 if test "$cross_compiling" = yes; then : 10431 lt_cv_dlopen_self_static=cross 10432else 10433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10434 lt_status=$lt_dlunknown 10435 cat > conftest.$ac_ext <<EOF 10436#line 10436 "configure" 10437#include "confdefs.h" 10438 10439#if HAVE_DLFCN_H 10440#include <dlfcn.h> 10441#endif 10442 10443#include <stdio.h> 10444 10445#ifdef RTLD_GLOBAL 10446# define LT_DLGLOBAL RTLD_GLOBAL 10447#else 10448# ifdef DL_GLOBAL 10449# define LT_DLGLOBAL DL_GLOBAL 10450# else 10451# define LT_DLGLOBAL 0 10452# endif 10453#endif 10454 10455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10456 find out it does not work in some platform. */ 10457#ifndef LT_DLLAZY_OR_NOW 10458# ifdef RTLD_LAZY 10459# define LT_DLLAZY_OR_NOW RTLD_LAZY 10460# else 10461# ifdef DL_LAZY 10462# define LT_DLLAZY_OR_NOW DL_LAZY 10463# else 10464# ifdef RTLD_NOW 10465# define LT_DLLAZY_OR_NOW RTLD_NOW 10466# else 10467# ifdef DL_NOW 10468# define LT_DLLAZY_OR_NOW DL_NOW 10469# else 10470# define LT_DLLAZY_OR_NOW 0 10471# endif 10472# endif 10473# endif 10474# endif 10475#endif 10476 10477#ifdef __cplusplus 10478extern "C" void exit (int); 10479#endif 10480 10481void fnord() { int i=42;} 10482int main () 10483{ 10484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10485 int status = $lt_dlunknown; 10486 10487 if (self) 10488 { 10489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10491 /* dlclose (self); */ 10492 } 10493 else 10494 puts (dlerror ()); 10495 10496 exit (status); 10497} 10498EOF 10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10500 (eval $ac_link) 2>&5 10501 ac_status=$? 10502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10504 (./conftest; exit; ) >&5 2>/dev/null 10505 lt_status=$? 10506 case x$lt_status in 10507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10510 esac 10511 else : 10512 # compilation failed 10513 lt_cv_dlopen_self_static=no 10514 fi 10515fi 10516rm -fr conftest* 10517 10518 10519fi 10520{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10521$as_echo "$lt_cv_dlopen_self_static" >&6; } 10522 fi 10523 10524 CPPFLAGS="$save_CPPFLAGS" 10525 LDFLAGS="$save_LDFLAGS" 10526 LIBS="$save_LIBS" 10527 ;; 10528 esac 10529 10530 case $lt_cv_dlopen_self in 10531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10532 *) enable_dlopen_self=unknown ;; 10533 esac 10534 10535 case $lt_cv_dlopen_self_static in 10536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10537 *) enable_dlopen_self_static=unknown ;; 10538 esac 10539fi 10540 10541 10542# Report which library types will actually be built 10543{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10544$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10545{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10546$as_echo "$can_build_shared" >&6; } 10547 10548{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10549$as_echo_n "checking whether to build shared libraries... " >&6; } 10550test "$can_build_shared" = "no" && enable_shared=no 10551 10552# On AIX, shared libraries and static libraries use the same namespace, and 10553# are all built from PIC. 10554case $host_os in 10555aix3*) 10556 test "$enable_shared" = yes && enable_static=no 10557 if test -n "$RANLIB"; then 10558 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10559 postinstall_cmds='$RANLIB $lib' 10560 fi 10561 ;; 10562 10563aix4* | aix5*) 10564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10565 test "$enable_shared" = yes && enable_static=no 10566 fi 10567 ;; 10568esac 10569{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10570$as_echo "$enable_shared" >&6; } 10571 10572{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10573$as_echo_n "checking whether to build static libraries... " >&6; } 10574# Make sure either enable_shared or enable_static is yes. 10575test "$enable_shared" = yes || enable_static=yes 10576{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10577$as_echo "$enable_static" >&6; } 10578 10579# The else clause should only fire when bootstrapping the 10580# libtool distribution, otherwise you forgot to ship ltmain.sh 10581# with your package, and you will get complaints that there are 10582# no rules to generate ltmain.sh. 10583if test -f "$ltmain"; then 10584 # See if we are running on zsh, and set the options which allow our commands through 10585 # without removal of \ escapes. 10586 if test -n "${ZSH_VERSION+set}" ; then 10587 setopt NO_GLOB_SUBST 10588 fi 10589 # Now quote all the things that may contain metacharacters while being 10590 # careful not to overquote the AC_SUBSTed values. We take copies of the 10591 # variables and quote the copies for generation of the libtool script. 10592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10593 SED SHELL STRIP \ 10594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10596 deplibs_check_method reload_flag reload_cmds need_locks \ 10597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10598 lt_cv_sys_global_symbol_to_c_name_address \ 10599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10600 old_postinstall_cmds old_postuninstall_cmds \ 10601 compiler \ 10602 CC \ 10603 LD \ 10604 lt_prog_compiler_wl \ 10605 lt_prog_compiler_pic \ 10606 lt_prog_compiler_static \ 10607 lt_prog_compiler_no_builtin_flag \ 10608 export_dynamic_flag_spec \ 10609 thread_safe_flag_spec \ 10610 whole_archive_flag_spec \ 10611 enable_shared_with_static_runtimes \ 10612 old_archive_cmds \ 10613 old_archive_from_new_cmds \ 10614 predep_objects \ 10615 postdep_objects \ 10616 predeps \ 10617 postdeps \ 10618 compiler_lib_search_path \ 10619 archive_cmds \ 10620 archive_expsym_cmds \ 10621 postinstall_cmds \ 10622 postuninstall_cmds \ 10623 old_archive_from_expsyms_cmds \ 10624 allow_undefined_flag \ 10625 no_undefined_flag \ 10626 export_symbols_cmds \ 10627 hardcode_libdir_flag_spec \ 10628 hardcode_libdir_flag_spec_ld \ 10629 hardcode_libdir_separator \ 10630 hardcode_automatic \ 10631 module_cmds \ 10632 module_expsym_cmds \ 10633 lt_cv_prog_compiler_c_o \ 10634 fix_srcfile_path \ 10635 exclude_expsyms \ 10636 include_expsyms; do 10637 10638 case $var in 10639 old_archive_cmds | \ 10640 old_archive_from_new_cmds | \ 10641 archive_cmds | \ 10642 archive_expsym_cmds | \ 10643 module_cmds | \ 10644 module_expsym_cmds | \ 10645 old_archive_from_expsyms_cmds | \ 10646 export_symbols_cmds | \ 10647 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10648 postinstall_cmds | postuninstall_cmds | \ 10649 old_postinstall_cmds | old_postuninstall_cmds | \ 10650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10651 # Double-quote double-evaled strings. 10652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10653 ;; 10654 *) 10655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10656 ;; 10657 esac 10658 done 10659 10660 case $lt_echo in 10661 *'\$0 --fallback-echo"') 10662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10663 ;; 10664 esac 10665 10666cfgfile="${ofile}T" 10667 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10668 $rm -f "$cfgfile" 10669 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10670$as_echo "$as_me: creating $ofile" >&6;} 10671 10672 cat <<__EOF__ >> "$cfgfile" 10673#! $SHELL 10674 10675# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10676# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10677# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10678# 10679# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10680# Free Software Foundation, Inc. 10681# 10682# This file is part of GNU Libtool: 10683# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10684# 10685# This program is free software; you can redistribute it and/or modify 10686# it under the terms of the GNU General Public License as published by 10687# the Free Software Foundation; either version 2 of the License, or 10688# (at your option) any later version. 10689# 10690# This program is distributed in the hope that it will be useful, but 10691# WITHOUT ANY WARRANTY; without even the implied warranty of 10692# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10693# General Public License for more details. 10694# 10695# You should have received a copy of the GNU General Public License 10696# along with this program; if not, write to the Free Software 10697# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10698# 10699# As a special exception to the GNU General Public License, if you 10700# distribute this file as part of a program that contains a 10701# configuration script generated by Autoconf, you may include it under 10702# the same distribution terms that you use for the rest of that program. 10703 10704# A sed program that does not truncate output. 10705SED=$lt_SED 10706 10707# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10708Xsed="$SED -e 1s/^X//" 10709 10710# The HP-UX ksh and POSIX shell print the target directory to stdout 10711# if CDPATH is set. 10712(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10713 10714# The names of the tagged configurations supported by this script. 10715available_tags= 10716 10717# ### BEGIN LIBTOOL CONFIG 10718 10719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10720 10721# Shell to use when invoking shell scripts. 10722SHELL=$lt_SHELL 10723 10724# Whether or not to build shared libraries. 10725build_libtool_libs=$enable_shared 10726 10727# Whether or not to build static libraries. 10728build_old_libs=$enable_static 10729 10730# Whether or not to add -lc for building shared libraries. 10731build_libtool_need_lc=$archive_cmds_need_lc 10732 10733# Whether or not to disallow shared libs when runtime libs are static 10734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10735 10736# Whether or not to optimize for fast installation. 10737fast_install=$enable_fast_install 10738 10739# The host system. 10740host_alias=$host_alias 10741host=$host 10742host_os=$host_os 10743 10744# The build system. 10745build_alias=$build_alias 10746build=$build 10747build_os=$build_os 10748 10749# An echo program that does not interpret backslashes. 10750echo=$lt_echo 10751 10752# The archiver. 10753AR=$lt_AR 10754AR_FLAGS=$lt_AR_FLAGS 10755 10756# A C compiler. 10757LTCC=$lt_LTCC 10758 10759# LTCC compiler flags. 10760LTCFLAGS=$lt_LTCFLAGS 10761 10762# A language-specific compiler. 10763CC=$lt_compiler 10764 10765# Is the compiler the GNU C compiler? 10766with_gcc=$GCC 10767 10768# An ERE matcher. 10769EGREP=$lt_EGREP 10770 10771# The linker used to build libraries. 10772LD=$lt_LD 10773 10774# Whether we need hard or soft links. 10775LN_S=$lt_LN_S 10776 10777# A BSD-compatible nm program. 10778NM=$lt_NM 10779 10780# A symbol stripping program 10781STRIP=$lt_STRIP 10782 10783# Used to examine libraries when file_magic_cmd begins "file" 10784MAGIC_CMD=$MAGIC_CMD 10785 10786# Used on cygwin: DLL creation program. 10787DLLTOOL="$DLLTOOL" 10788 10789# Used on cygwin: object dumper. 10790OBJDUMP="$OBJDUMP" 10791 10792# Used on cygwin: assembler. 10793AS="$AS" 10794 10795# The name of the directory that contains temporary libtool files. 10796objdir=$objdir 10797 10798# How to create reloadable object files. 10799reload_flag=$lt_reload_flag 10800reload_cmds=$lt_reload_cmds 10801 10802# How to pass a linker flag through the compiler. 10803wl=$lt_lt_prog_compiler_wl 10804 10805# Object file suffix (normally "o"). 10806objext="$ac_objext" 10807 10808# Old archive suffix (normally "a"). 10809libext="$libext" 10810 10811# Shared library suffix (normally ".so"). 10812shrext_cmds='$shrext_cmds' 10813 10814# Executable file suffix (normally ""). 10815exeext="$exeext" 10816 10817# Additional compiler flags for building library objects. 10818pic_flag=$lt_lt_prog_compiler_pic 10819pic_mode=$pic_mode 10820 10821# What is the maximum length of a command? 10822max_cmd_len=$lt_cv_sys_max_cmd_len 10823 10824# Does compiler simultaneously support -c and -o options? 10825compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10826 10827# Must we lock files when doing compilation? 10828need_locks=$lt_need_locks 10829 10830# Do we need the lib prefix for modules? 10831need_lib_prefix=$need_lib_prefix 10832 10833# Do we need a version for libraries? 10834need_version=$need_version 10835 10836# Whether dlopen is supported. 10837dlopen_support=$enable_dlopen 10838 10839# Whether dlopen of programs is supported. 10840dlopen_self=$enable_dlopen_self 10841 10842# Whether dlopen of statically linked programs is supported. 10843dlopen_self_static=$enable_dlopen_self_static 10844 10845# Compiler flag to prevent dynamic linking. 10846link_static_flag=$lt_lt_prog_compiler_static 10847 10848# Compiler flag to turn off builtin functions. 10849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10850 10851# Compiler flag to allow reflexive dlopens. 10852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10853 10854# Compiler flag to generate shared objects directly from archives. 10855whole_archive_flag_spec=$lt_whole_archive_flag_spec 10856 10857# Compiler flag to generate thread-safe objects. 10858thread_safe_flag_spec=$lt_thread_safe_flag_spec 10859 10860# Library versioning type. 10861version_type=$version_type 10862 10863# Format of library name prefix. 10864libname_spec=$lt_libname_spec 10865 10866# List of archive names. First name is the real one, the rest are links. 10867# The last name is the one that the linker finds with -lNAME. 10868library_names_spec=$lt_library_names_spec 10869 10870# The coded name of the library, if different from the real name. 10871soname_spec=$lt_soname_spec 10872 10873# Commands used to build and install an old-style archive. 10874RANLIB=$lt_RANLIB 10875old_archive_cmds=$lt_old_archive_cmds 10876old_postinstall_cmds=$lt_old_postinstall_cmds 10877old_postuninstall_cmds=$lt_old_postuninstall_cmds 10878 10879# Create an old-style archive from a shared archive. 10880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10881 10882# Create a temporary old-style archive to link instead of a shared archive. 10883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10884 10885# Commands used to build and install a shared archive. 10886archive_cmds=$lt_archive_cmds 10887archive_expsym_cmds=$lt_archive_expsym_cmds 10888postinstall_cmds=$lt_postinstall_cmds 10889postuninstall_cmds=$lt_postuninstall_cmds 10890 10891# Commands used to build a loadable module (assumed same as above if empty) 10892module_cmds=$lt_module_cmds 10893module_expsym_cmds=$lt_module_expsym_cmds 10894 10895# Commands to strip libraries. 10896old_striplib=$lt_old_striplib 10897striplib=$lt_striplib 10898 10899# Dependencies to place before the objects being linked to create a 10900# shared library. 10901predep_objects=$lt_predep_objects 10902 10903# Dependencies to place after the objects being linked to create a 10904# shared library. 10905postdep_objects=$lt_postdep_objects 10906 10907# Dependencies to place before the objects being linked to create a 10908# shared library. 10909predeps=$lt_predeps 10910 10911# Dependencies to place after the objects being linked to create a 10912# shared library. 10913postdeps=$lt_postdeps 10914 10915# The library search path used internally by the compiler when linking 10916# a shared library. 10917compiler_lib_search_path=$lt_compiler_lib_search_path 10918 10919# Method to check whether dependent libraries are shared objects. 10920deplibs_check_method=$lt_deplibs_check_method 10921 10922# Command to use when deplibs_check_method == file_magic. 10923file_magic_cmd=$lt_file_magic_cmd 10924 10925# Flag that allows shared libraries with undefined symbols to be built. 10926allow_undefined_flag=$lt_allow_undefined_flag 10927 10928# Flag that forces no undefined symbols. 10929no_undefined_flag=$lt_no_undefined_flag 10930 10931# Commands used to finish a libtool library installation in a directory. 10932finish_cmds=$lt_finish_cmds 10933 10934# Same as above, but a single script fragment to be evaled but not shown. 10935finish_eval=$lt_finish_eval 10936 10937# Take the output of nm and produce a listing of raw symbols and C names. 10938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10939 10940# Transform the output of nm in a proper C declaration 10941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10942 10943# Transform the output of nm in a C name address pair 10944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10945 10946# This is the shared library runtime path variable. 10947runpath_var=$runpath_var 10948 10949# This is the shared library path variable. 10950shlibpath_var=$shlibpath_var 10951 10952# Is shlibpath searched before the hard-coded library search path? 10953shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10954 10955# How to hardcode a shared library path into an executable. 10956hardcode_action=$hardcode_action 10957 10958# Whether we should hardcode library paths into libraries. 10959hardcode_into_libs=$hardcode_into_libs 10960 10961# Flag to hardcode \$libdir into a binary during linking. 10962# This must work even if \$libdir does not exist. 10963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10964 10965# If ld is used when linking, flag to hardcode \$libdir into 10966# a binary during linking. This must work even if \$libdir does 10967# not exist. 10968hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10969 10970# Whether we need a single -rpath flag with a separated argument. 10971hardcode_libdir_separator=$lt_hardcode_libdir_separator 10972 10973# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10974# resulting binary. 10975hardcode_direct=$hardcode_direct 10976 10977# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10978# resulting binary. 10979hardcode_minus_L=$hardcode_minus_L 10980 10981# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10982# the resulting binary. 10983hardcode_shlibpath_var=$hardcode_shlibpath_var 10984 10985# Set to yes if building a shared library automatically hardcodes DIR into the library 10986# and all subsequent libraries and executables linked against it. 10987hardcode_automatic=$hardcode_automatic 10988 10989# Variables whose values should be saved in libtool wrapper scripts and 10990# restored at relink time. 10991variables_saved_for_relink="$variables_saved_for_relink" 10992 10993# Whether libtool must link a program against all its dependency libraries. 10994link_all_deplibs=$link_all_deplibs 10995 10996# Compile-time system search path for libraries 10997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10998 10999# Run-time system search path for libraries 11000sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11001 11002# Fix the shell variable \$srcfile for the compiler. 11003fix_srcfile_path=$lt_fix_srcfile_path 11004 11005# Set to yes if exported symbols are required. 11006always_export_symbols=$always_export_symbols 11007 11008# The commands to list exported symbols. 11009export_symbols_cmds=$lt_export_symbols_cmds 11010 11011# The commands to extract the exported symbol list from a shared archive. 11012extract_expsyms_cmds=$lt_extract_expsyms_cmds 11013 11014# Symbols that should not be listed in the preloaded symbols. 11015exclude_expsyms=$lt_exclude_expsyms 11016 11017# Symbols that must always be exported. 11018include_expsyms=$lt_include_expsyms 11019 11020# ### END LIBTOOL CONFIG 11021 11022__EOF__ 11023 11024 11025 case $host_os in 11026 aix3*) 11027 cat <<\EOF >> "$cfgfile" 11028 11029# AIX sometimes has problems with the GCC collect2 program. For some 11030# reason, if we set the COLLECT_NAMES environment variable, the problems 11031# vanish in a puff of smoke. 11032if test "X${COLLECT_NAMES+set}" != Xset; then 11033 COLLECT_NAMES= 11034 export COLLECT_NAMES 11035fi 11036EOF 11037 ;; 11038 esac 11039 11040 # We use sed instead of cat because bash on DJGPP gets confused if 11041 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11042 # text mode, it properly converts lines to CR/LF. This bash problem 11043 # is reportedly fixed, but why not run on old versions too? 11044 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11045 11046 mv -f "$cfgfile" "$ofile" || \ 11047 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11048 chmod +x "$ofile" 11049 11050else 11051 # If there is no Makefile yet, we rely on a make rule to execute 11052 # `config.status --recheck' to rerun these tests and create the 11053 # libtool script then. 11054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11055 if test -f "$ltmain_in"; then 11056 test -f Makefile && make "$ltmain" 11057 fi 11058fi 11059 11060 11061ac_ext=c 11062ac_cpp='$CPP $CPPFLAGS' 11063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11065ac_compiler_gnu=$ac_cv_c_compiler_gnu 11066 11067CC="$lt_save_CC" 11068 11069 11070# Check whether --with-tags was given. 11071if test "${with_tags+set}" = set; then 11072 withval=$with_tags; tagnames="$withval" 11073fi 11074 11075 11076if test -f "$ltmain" && test -n "$tagnames"; then 11077 if test ! -f "${ofile}"; then 11078 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11079$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11080 fi 11081 11082 if test -z "$LTCC"; then 11083 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11084 if test -z "$LTCC"; then 11085 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11086$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11087 else 11088 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11089$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11090 fi 11091 fi 11092 if test -z "$LTCFLAGS"; then 11093 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11094 fi 11095 11096 # Extract list of available tagged configurations in $ofile. 11097 # Note that this assumes the entire list is on one line. 11098 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11099 11100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11101 for tagname in $tagnames; do 11102 IFS="$lt_save_ifs" 11103 # Check whether tagname contains only valid characters 11104 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11105 "") ;; 11106 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11107$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11108 { (exit 1); exit 1; }; } 11109 ;; 11110 esac 11111 11112 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11113 then 11114 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11115$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11116 { (exit 1); exit 1; }; } 11117 fi 11118 11119 # Update the list of available tags. 11120 if test -n "$tagname"; then 11121 echo appending configuration tag \"$tagname\" to $ofile 11122 11123 case $tagname in 11124 CXX) 11125 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11126 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11127 (test "X$CXX" != "Xg++"))) ; then 11128 ac_ext=cpp 11129ac_cpp='$CXXCPP $CPPFLAGS' 11130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11133 11134 11135 11136 11137archive_cmds_need_lc_CXX=no 11138allow_undefined_flag_CXX= 11139always_export_symbols_CXX=no 11140archive_expsym_cmds_CXX= 11141export_dynamic_flag_spec_CXX= 11142hardcode_direct_CXX=no 11143hardcode_libdir_flag_spec_CXX= 11144hardcode_libdir_flag_spec_ld_CXX= 11145hardcode_libdir_separator_CXX= 11146hardcode_minus_L_CXX=no 11147hardcode_shlibpath_var_CXX=unsupported 11148hardcode_automatic_CXX=no 11149module_cmds_CXX= 11150module_expsym_cmds_CXX= 11151link_all_deplibs_CXX=unknown 11152old_archive_cmds_CXX=$old_archive_cmds 11153no_undefined_flag_CXX= 11154whole_archive_flag_spec_CXX= 11155enable_shared_with_static_runtimes_CXX=no 11156 11157# Dependencies to place before and after the object being linked: 11158predep_objects_CXX= 11159postdep_objects_CXX= 11160predeps_CXX= 11161postdeps_CXX= 11162compiler_lib_search_path_CXX= 11163 11164# Source file extension for C++ test sources. 11165ac_ext=cpp 11166 11167# Object file extension for compiled C++ test sources. 11168objext=o 11169objext_CXX=$objext 11170 11171# Code to be used in simple compile tests 11172lt_simple_compile_test_code="int some_variable = 0;" 11173 11174# Code to be used in simple link tests 11175lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11176 11177# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11178 11179# If no C compiler was specified, use CC. 11180LTCC=${LTCC-"$CC"} 11181 11182# If no C compiler flags were specified, use CFLAGS. 11183LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11184 11185# Allow CC to be a program name with arguments. 11186compiler=$CC 11187 11188 11189# save warnings/boilerplate of simple test code 11190ac_outfile=conftest.$ac_objext 11191echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11193_lt_compiler_boilerplate=`cat conftest.err` 11194$rm conftest* 11195 11196ac_outfile=conftest.$ac_objext 11197echo "$lt_simple_link_test_code" >conftest.$ac_ext 11198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11199_lt_linker_boilerplate=`cat conftest.err` 11200$rm conftest* 11201 11202 11203# Allow CC to be a program name with arguments. 11204lt_save_CC=$CC 11205lt_save_LD=$LD 11206lt_save_GCC=$GCC 11207GCC=$GXX 11208lt_save_with_gnu_ld=$with_gnu_ld 11209lt_save_path_LD=$lt_cv_path_LD 11210if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11211 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11212else 11213 $as_unset lt_cv_prog_gnu_ld 11214fi 11215if test -n "${lt_cv_path_LDCXX+set}"; then 11216 lt_cv_path_LD=$lt_cv_path_LDCXX 11217else 11218 $as_unset lt_cv_path_LD 11219fi 11220test -z "${LDCXX+set}" || LD=$LDCXX 11221CC=${CXX-"c++"} 11222compiler=$CC 11223compiler_CXX=$CC 11224for cc_temp in $compiler""; do 11225 case $cc_temp in 11226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11228 \-*) ;; 11229 *) break;; 11230 esac 11231done 11232cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11233 11234 11235# We don't want -fno-exception wen compiling C++ code, so set the 11236# no_builtin_flag separately 11237if test "$GXX" = yes; then 11238 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11239else 11240 lt_prog_compiler_no_builtin_flag_CXX= 11241fi 11242 11243if test "$GXX" = yes; then 11244 # Set up default GNU C++ configuration 11245 11246 11247# Check whether --with-gnu-ld was given. 11248if test "${with_gnu_ld+set}" = set; then 11249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11250else 11251 with_gnu_ld=no 11252fi 11253 11254ac_prog=ld 11255if test "$GCC" = yes; then 11256 # Check if gcc -print-prog-name=ld gives a path. 11257 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11258$as_echo_n "checking for ld used by $CC... " >&6; } 11259 case $host in 11260 *-*-mingw*) 11261 # gcc leaves a trailing carriage return which upsets mingw 11262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11263 *) 11264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11265 esac 11266 case $ac_prog in 11267 # Accept absolute paths. 11268 [\\/]* | ?:[\\/]*) 11269 re_direlt='/[^/][^/]*/\.\./' 11270 # Canonicalize the pathname of ld 11271 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11273 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11274 done 11275 test -z "$LD" && LD="$ac_prog" 11276 ;; 11277 "") 11278 # If it fails, then pretend we aren't using GCC. 11279 ac_prog=ld 11280 ;; 11281 *) 11282 # If it is relative, then search for the first ld in PATH. 11283 with_gnu_ld=unknown 11284 ;; 11285 esac 11286elif test "$with_gnu_ld" = yes; then 11287 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11288$as_echo_n "checking for GNU ld... " >&6; } 11289else 11290 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11291$as_echo_n "checking for non-GNU ld... " >&6; } 11292fi 11293if test "${lt_cv_path_LD+set}" = set; then 11294 $as_echo_n "(cached) " >&6 11295else 11296 if test -z "$LD"; then 11297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11298 for ac_dir in $PATH; do 11299 IFS="$lt_save_ifs" 11300 test -z "$ac_dir" && ac_dir=. 11301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11302 lt_cv_path_LD="$ac_dir/$ac_prog" 11303 # Check to see if the program is GNU ld. I'd rather use --version, 11304 # but apparently some variants of GNU ld only accept -v. 11305 # Break only if it was the GNU/non-GNU ld that we prefer. 11306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11307 *GNU* | *'with BFD'*) 11308 test "$with_gnu_ld" != no && break 11309 ;; 11310 *) 11311 test "$with_gnu_ld" != yes && break 11312 ;; 11313 esac 11314 fi 11315 done 11316 IFS="$lt_save_ifs" 11317else 11318 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11319fi 11320fi 11321 11322LD="$lt_cv_path_LD" 11323if test -n "$LD"; then 11324 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11325$as_echo "$LD" >&6; } 11326else 11327 { $as_echo "$as_me:$LINENO: result: no" >&5 11328$as_echo "no" >&6; } 11329fi 11330test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11331$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11332 { (exit 1); exit 1; }; } 11333{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11334$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11335if test "${lt_cv_prog_gnu_ld+set}" = set; then 11336 $as_echo_n "(cached) " >&6 11337else 11338 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11339case `$LD -v 2>&1 </dev/null` in 11340*GNU* | *'with BFD'*) 11341 lt_cv_prog_gnu_ld=yes 11342 ;; 11343*) 11344 lt_cv_prog_gnu_ld=no 11345 ;; 11346esac 11347fi 11348{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11349$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11350with_gnu_ld=$lt_cv_prog_gnu_ld 11351 11352 11353 11354 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11355 # archiving commands below assume that GNU ld is being used. 11356 if test "$with_gnu_ld" = yes; then 11357 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11358 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' 11359 11360 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11362 11363 # If archive_cmds runs LD, not CC, wlarc should be empty 11364 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11365 # investigate it a little bit more. (MM) 11366 wlarc='${wl}' 11367 11368 # ancient GNU ld didn't support --whole-archive et. al. 11369 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11370 grep 'no-whole-archive' > /dev/null; then 11371 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11372 else 11373 whole_archive_flag_spec_CXX= 11374 fi 11375 else 11376 with_gnu_ld=no 11377 wlarc= 11378 11379 # A generic and very simple default shared library creation 11380 # command for GNU C++ for the case where it uses the native 11381 # linker, instead of GNU ld. If possible, this setting should 11382 # overridden to take advantage of the native linker features on 11383 # the platform it is being used on. 11384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11385 fi 11386 11387 # Commands to make compiler produce verbose output that lists 11388 # what "hidden" libraries, object files and flags are used when 11389 # linking a shared library. 11390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11391 11392else 11393 GXX=no 11394 with_gnu_ld=no 11395 wlarc= 11396fi 11397 11398# PORTME: fill in a description of your system's C++ link characteristics 11399{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11400$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11401ld_shlibs_CXX=yes 11402case $host_os in 11403 aix3*) 11404 # FIXME: insert proper C++ library support 11405 ld_shlibs_CXX=no 11406 ;; 11407 aix4* | aix5*) 11408 if test "$host_cpu" = ia64; then 11409 # On IA64, the linker does run time linking by default, so we don't 11410 # have to do anything special. 11411 aix_use_runtimelinking=no 11412 exp_sym_flag='-Bexport' 11413 no_entry_flag="" 11414 else 11415 aix_use_runtimelinking=no 11416 11417 # Test if we are trying to use run time linking or normal 11418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11419 # need to do runtime linking. 11420 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11421 for ld_flag in $LDFLAGS; do 11422 case $ld_flag in 11423 *-brtl*) 11424 aix_use_runtimelinking=yes 11425 break 11426 ;; 11427 esac 11428 done 11429 ;; 11430 esac 11431 11432 exp_sym_flag='-bexport' 11433 no_entry_flag='-bnoentry' 11434 fi 11435 11436 # When large executables or shared objects are built, AIX ld can 11437 # have problems creating the table of contents. If linking a library 11438 # or program results in "error TOC overflow" add -mminimal-toc to 11439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11441 11442 archive_cmds_CXX='' 11443 hardcode_direct_CXX=yes 11444 hardcode_libdir_separator_CXX=':' 11445 link_all_deplibs_CXX=yes 11446 11447 if test "$GXX" = yes; then 11448 case $host_os in aix4.[012]|aix4.[012].*) 11449 # We only want to do this on AIX 4.2 and lower, the check 11450 # below for broken collect2 doesn't work under 4.3+ 11451 collect2name=`${CC} -print-prog-name=collect2` 11452 if test -f "$collect2name" && \ 11453 strings "$collect2name" | grep resolve_lib_name >/dev/null 11454 then 11455 # We have reworked collect2 11456 : 11457 else 11458 # We have old collect2 11459 hardcode_direct_CXX=unsupported 11460 # It fails to find uninstalled libraries when the uninstalled 11461 # path is not listed in the libpath. Setting hardcode_minus_L 11462 # to unsupported forces relinking 11463 hardcode_minus_L_CXX=yes 11464 hardcode_libdir_flag_spec_CXX='-L$libdir' 11465 hardcode_libdir_separator_CXX= 11466 fi 11467 ;; 11468 esac 11469 shared_flag='-shared' 11470 if test "$aix_use_runtimelinking" = yes; then 11471 shared_flag="$shared_flag "'${wl}-G' 11472 fi 11473 else 11474 # not using gcc 11475 if test "$host_cpu" = ia64; then 11476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11477 # chokes on -Wl,-G. The following line is correct: 11478 shared_flag='-G' 11479 else 11480 if test "$aix_use_runtimelinking" = yes; then 11481 shared_flag='${wl}-G' 11482 else 11483 shared_flag='${wl}-bM:SRE' 11484 fi 11485 fi 11486 fi 11487 11488 # It seems that -bexpall does not export symbols beginning with 11489 # underscore (_), so it is better to generate a list of symbols to export. 11490 always_export_symbols_CXX=yes 11491 if test "$aix_use_runtimelinking" = yes; then 11492 # Warning - without using the other runtime loading flags (-brtl), 11493 # -berok will link without error, but may produce a broken library. 11494 allow_undefined_flag_CXX='-berok' 11495 # Determine the default libpath from the value encoded in an empty executable. 11496 cat >conftest.$ac_ext <<_ACEOF 11497/* confdefs.h. */ 11498_ACEOF 11499cat confdefs.h >>conftest.$ac_ext 11500cat >>conftest.$ac_ext <<_ACEOF 11501/* end confdefs.h. */ 11502 11503int 11504main () 11505{ 11506 11507 ; 11508 return 0; 11509} 11510_ACEOF 11511rm -f conftest.$ac_objext conftest$ac_exeext 11512if { (ac_try="$ac_link" 11513case "(($ac_try" in 11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11515 *) ac_try_echo=$ac_try;; 11516esac 11517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11518$as_echo "$ac_try_echo") >&5 11519 (eval "$ac_link") 2>conftest.er1 11520 ac_status=$? 11521 grep -v '^ *+' conftest.er1 >conftest.err 11522 rm -f conftest.er1 11523 cat conftest.err >&5 11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11525 (exit $ac_status); } && { 11526 test -z "$ac_cxx_werror_flag" || 11527 test ! -s conftest.err 11528 } && test -s conftest$ac_exeext && { 11529 test "$cross_compiling" = yes || 11530 $as_test_x conftest$ac_exeext 11531 }; then 11532 11533lt_aix_libpath_sed=' 11534 /Import File Strings/,/^$/ { 11535 /^0/ { 11536 s/^0 *\(.*\)$/\1/ 11537 p 11538 } 11539 }' 11540aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11541# Check for a 64-bit object if we didn't find anything. 11542if test -z "$aix_libpath"; then 11543 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11544fi 11545else 11546 $as_echo "$as_me: failed program was:" >&5 11547sed 's/^/| /' conftest.$ac_ext >&5 11548 11549 11550fi 11551 11552rm -rf conftest.dSYM 11553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11554 conftest$ac_exeext conftest.$ac_ext 11555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11556 11557 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11558 11559 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" 11560 else 11561 if test "$host_cpu" = ia64; then 11562 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11563 allow_undefined_flag_CXX="-z nodefs" 11564 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" 11565 else 11566 # Determine the default libpath from the value encoded in an empty executable. 11567 cat >conftest.$ac_ext <<_ACEOF 11568/* confdefs.h. */ 11569_ACEOF 11570cat confdefs.h >>conftest.$ac_ext 11571cat >>conftest.$ac_ext <<_ACEOF 11572/* end confdefs.h. */ 11573 11574int 11575main () 11576{ 11577 11578 ; 11579 return 0; 11580} 11581_ACEOF 11582rm -f conftest.$ac_objext conftest$ac_exeext 11583if { (ac_try="$ac_link" 11584case "(($ac_try" in 11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11586 *) ac_try_echo=$ac_try;; 11587esac 11588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11589$as_echo "$ac_try_echo") >&5 11590 (eval "$ac_link") 2>conftest.er1 11591 ac_status=$? 11592 grep -v '^ *+' conftest.er1 >conftest.err 11593 rm -f conftest.er1 11594 cat conftest.err >&5 11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11596 (exit $ac_status); } && { 11597 test -z "$ac_cxx_werror_flag" || 11598 test ! -s conftest.err 11599 } && test -s conftest$ac_exeext && { 11600 test "$cross_compiling" = yes || 11601 $as_test_x conftest$ac_exeext 11602 }; then 11603 11604lt_aix_libpath_sed=' 11605 /Import File Strings/,/^$/ { 11606 /^0/ { 11607 s/^0 *\(.*\)$/\1/ 11608 p 11609 } 11610 }' 11611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11612# Check for a 64-bit object if we didn't find anything. 11613if test -z "$aix_libpath"; then 11614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11615fi 11616else 11617 $as_echo "$as_me: failed program was:" >&5 11618sed 's/^/| /' conftest.$ac_ext >&5 11619 11620 11621fi 11622 11623rm -rf conftest.dSYM 11624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11625 conftest$ac_exeext conftest.$ac_ext 11626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11627 11628 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11629 # Warning - without using the other run time loading flags, 11630 # -berok will link without error, but may produce a broken library. 11631 no_undefined_flag_CXX=' ${wl}-bernotok' 11632 allow_undefined_flag_CXX=' ${wl}-berok' 11633 # Exported symbols can be pulled into shared objects from archives 11634 whole_archive_flag_spec_CXX='$convenience' 11635 archive_cmds_need_lc_CXX=yes 11636 # This is similar to how AIX traditionally builds its shared libraries. 11637 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' 11638 fi 11639 fi 11640 ;; 11641 11642 beos*) 11643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11644 allow_undefined_flag_CXX=unsupported 11645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11646 # support --undefined. This deserves some investigation. FIXME 11647 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11648 else 11649 ld_shlibs_CXX=no 11650 fi 11651 ;; 11652 11653 chorus*) 11654 case $cc_basename in 11655 *) 11656 # FIXME: insert proper C++ library support 11657 ld_shlibs_CXX=no 11658 ;; 11659 esac 11660 ;; 11661 11662 cygwin* | mingw* | pw32*) 11663 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11664 # as there is no search path for DLLs. 11665 hardcode_libdir_flag_spec_CXX='-L$libdir' 11666 allow_undefined_flag_CXX=unsupported 11667 always_export_symbols_CXX=no 11668 enable_shared_with_static_runtimes_CXX=yes 11669 11670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11671 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' 11672 # If the export-symbols file already is a .def file (1st line 11673 # is EXPORTS), use it as is; otherwise, prepend... 11674 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11675 cp $export_symbols $output_objdir/$soname.def; 11676 else 11677 echo EXPORTS > $output_objdir/$soname.def; 11678 cat $export_symbols >> $output_objdir/$soname.def; 11679 fi~ 11680 $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' 11681 else 11682 ld_shlibs_CXX=no 11683 fi 11684 ;; 11685 darwin* | rhapsody*) 11686 case $host_os in 11687 rhapsody* | darwin1.[012]) 11688 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11689 ;; 11690 *) # Darwin 1.3 on 11691 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11692 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11693 else 11694 case ${MACOSX_DEPLOYMENT_TARGET} in 11695 10.[012]) 11696 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11697 ;; 11698 10.*) 11699 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11700 ;; 11701 esac 11702 fi 11703 ;; 11704 esac 11705 archive_cmds_need_lc_CXX=no 11706 hardcode_direct_CXX=no 11707 hardcode_automatic_CXX=yes 11708 hardcode_shlibpath_var_CXX=unsupported 11709 whole_archive_flag_spec_CXX='' 11710 link_all_deplibs_CXX=yes 11711 11712 if test "$GXX" = yes ; then 11713 lt_int_apple_cc_single_mod=no 11714 output_verbose_link_cmd='echo' 11715 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11716 lt_int_apple_cc_single_mod=yes 11717 fi 11718 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11719 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11720 else 11721 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' 11722 fi 11723 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11724 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11725 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11726 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}' 11727 else 11728 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}' 11729 fi 11730 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}' 11731 else 11732 case $cc_basename in 11733 xlc*) 11734 output_verbose_link_cmd='echo' 11735 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' 11736 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11738 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}' 11739 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}' 11740 ;; 11741 *) 11742 ld_shlibs_CXX=no 11743 ;; 11744 esac 11745 fi 11746 ;; 11747 11748 dgux*) 11749 case $cc_basename in 11750 ec++*) 11751 # FIXME: insert proper C++ library support 11752 ld_shlibs_CXX=no 11753 ;; 11754 ghcx*) 11755 # Green Hills C++ Compiler 11756 # FIXME: insert proper C++ library support 11757 ld_shlibs_CXX=no 11758 ;; 11759 *) 11760 # FIXME: insert proper C++ library support 11761 ld_shlibs_CXX=no 11762 ;; 11763 esac 11764 ;; 11765 freebsd[12]*) 11766 # C++ shared libraries reported to be fairly broken before switch to ELF 11767 ld_shlibs_CXX=no 11768 ;; 11769 freebsd-elf*) 11770 archive_cmds_need_lc_CXX=no 11771 ;; 11772 freebsd* | dragonfly*) 11773 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11774 # conventions 11775 ld_shlibs_CXX=yes 11776 ;; 11777 gnu*) 11778 ;; 11779 hpux9*) 11780 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11781 hardcode_libdir_separator_CXX=: 11782 export_dynamic_flag_spec_CXX='${wl}-E' 11783 hardcode_direct_CXX=yes 11784 hardcode_minus_L_CXX=yes # Not in the search PATH, 11785 # but as the default 11786 # location of the library. 11787 11788 case $cc_basename in 11789 CC*) 11790 # FIXME: insert proper C++ library support 11791 ld_shlibs_CXX=no 11792 ;; 11793 aCC*) 11794 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' 11795 # Commands to make compiler produce verbose output that lists 11796 # what "hidden" libraries, object files and flags are used when 11797 # linking a shared library. 11798 # 11799 # There doesn't appear to be a way to prevent this compiler from 11800 # explicitly linking system object files so we need to strip them 11801 # from the output so that they don't get included in the library 11802 # dependencies. 11803 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' 11804 ;; 11805 *) 11806 if test "$GXX" = yes; then 11807 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' 11808 else 11809 # FIXME: insert proper C++ library support 11810 ld_shlibs_CXX=no 11811 fi 11812 ;; 11813 esac 11814 ;; 11815 hpux10*|hpux11*) 11816 if test $with_gnu_ld = no; then 11817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11818 hardcode_libdir_separator_CXX=: 11819 11820 case $host_cpu in 11821 hppa*64*|ia64*) ;; 11822 *) 11823 export_dynamic_flag_spec_CXX='${wl}-E' 11824 ;; 11825 esac 11826 fi 11827 case $host_cpu in 11828 hppa*64*|ia64*) 11829 hardcode_direct_CXX=no 11830 hardcode_shlibpath_var_CXX=no 11831 ;; 11832 *) 11833 hardcode_direct_CXX=yes 11834 hardcode_minus_L_CXX=yes # Not in the search PATH, 11835 # but as the default 11836 # location of the library. 11837 ;; 11838 esac 11839 11840 case $cc_basename in 11841 CC*) 11842 # FIXME: insert proper C++ library support 11843 ld_shlibs_CXX=no 11844 ;; 11845 aCC*) 11846 case $host_cpu in 11847 hppa*64*) 11848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11849 ;; 11850 ia64*) 11851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11852 ;; 11853 *) 11854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11855 ;; 11856 esac 11857 # Commands to make compiler produce verbose output that lists 11858 # what "hidden" libraries, object files and flags are used when 11859 # linking a shared library. 11860 # 11861 # There doesn't appear to be a way to prevent this compiler from 11862 # explicitly linking system object files so we need to strip them 11863 # from the output so that they don't get included in the library 11864 # dependencies. 11865 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' 11866 ;; 11867 *) 11868 if test "$GXX" = yes; then 11869 if test $with_gnu_ld = no; then 11870 case $host_cpu in 11871 hppa*64*) 11872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11873 ;; 11874 ia64*) 11875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11876 ;; 11877 *) 11878 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' 11879 ;; 11880 esac 11881 fi 11882 else 11883 # FIXME: insert proper C++ library support 11884 ld_shlibs_CXX=no 11885 fi 11886 ;; 11887 esac 11888 ;; 11889 interix[3-9]*) 11890 hardcode_direct_CXX=no 11891 hardcode_shlibpath_var_CXX=no 11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11893 export_dynamic_flag_spec_CXX='${wl}-E' 11894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11895 # Instead, shared libraries are loaded at an image base (0x10000000 by 11896 # default) and relocated if they conflict, which is a slow very memory 11897 # consuming and fragmenting process. To avoid this, we pick a random, 11898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11899 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11900 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' 11901 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' 11902 ;; 11903 irix5* | irix6*) 11904 case $cc_basename in 11905 CC*) 11906 # SGI C++ 11907 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' 11908 11909 # Archives containing C++ object files must be created using 11910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11911 # necessary to make sure instantiated templates are included 11912 # in the archive. 11913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11914 ;; 11915 *) 11916 if test "$GXX" = yes; then 11917 if test "$with_gnu_ld" = no; then 11918 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' 11919 else 11920 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' 11921 fi 11922 fi 11923 link_all_deplibs_CXX=yes 11924 ;; 11925 esac 11926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11927 hardcode_libdir_separator_CXX=: 11928 ;; 11929 linux* | k*bsd*-gnu) 11930 case $cc_basename in 11931 KCC*) 11932 # Kuck and Associates, Inc. (KAI) C++ Compiler 11933 11934 # KCC will only create a shared library if the output file 11935 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11936 # to its proper name (with version) after linking. 11937 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' 11938 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' 11939 # Commands to make compiler produce verbose output that lists 11940 # what "hidden" libraries, object files and flags are used when 11941 # linking a shared library. 11942 # 11943 # There doesn't appear to be a way to prevent this compiler from 11944 # explicitly linking system object files so we need to strip them 11945 # from the output so that they don't get included in the library 11946 # dependencies. 11947 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' 11948 11949 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11951 11952 # Archives containing C++ object files must be created using 11953 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11954 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11955 ;; 11956 icpc*) 11957 # Intel C++ 11958 with_gnu_ld=yes 11959 # version 8.0 and above of icpc choke on multiply defined symbols 11960 # if we add $predep_objects and $postdep_objects, however 7.1 and 11961 # earlier do not add the objects themselves. 11962 case `$CC -V 2>&1` in 11963 *"Version 7."*) 11964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11965 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' 11966 ;; 11967 *) # Version 8.0 or newer 11968 tmp_idyn= 11969 case $host_cpu in 11970 ia64*) tmp_idyn=' -i_dynamic';; 11971 esac 11972 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11973 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' 11974 ;; 11975 esac 11976 archive_cmds_need_lc_CXX=no 11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11979 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11980 ;; 11981 pgCC*) 11982 # Portland Group C++ compiler 11983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11984 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' 11985 11986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11988 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' 11989 ;; 11990 cxx*) 11991 # Compaq C++ 11992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11993 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' 11994 11995 runpath_var=LD_RUN_PATH 11996 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11997 hardcode_libdir_separator_CXX=: 11998 11999 # Commands to make compiler produce verbose output that lists 12000 # what "hidden" libraries, object files and flags are used when 12001 # linking a shared library. 12002 # 12003 # There doesn't appear to be a way to prevent this compiler from 12004 # explicitly linking system object files so we need to strip them 12005 # from the output so that they don't get included in the library 12006 # dependencies. 12007 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' 12008 ;; 12009 *) 12010 case `$CC -V 2>&1 | sed 5q` in 12011 *Sun\ C*) 12012 # Sun C++ 5.9 12013 no_undefined_flag_CXX=' -zdefs' 12014 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12015 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' 12016 hardcode_libdir_flag_spec_CXX='-R$libdir' 12017 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' 12018 12019 # Not sure whether something based on 12020 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12021 # would be better. 12022 output_verbose_link_cmd='echo' 12023 12024 # Archives containing C++ object files must be created using 12025 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12026 # necessary to make sure instantiated templates are included 12027 # in the archive. 12028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12029 ;; 12030 esac 12031 ;; 12032 esac 12033 ;; 12034 lynxos*) 12035 # FIXME: insert proper C++ library support 12036 ld_shlibs_CXX=no 12037 ;; 12038 m88k*) 12039 # FIXME: insert proper C++ library support 12040 ld_shlibs_CXX=no 12041 ;; 12042 mvs*) 12043 case $cc_basename in 12044 cxx*) 12045 # FIXME: insert proper C++ library support 12046 ld_shlibs_CXX=no 12047 ;; 12048 *) 12049 # FIXME: insert proper C++ library support 12050 ld_shlibs_CXX=no 12051 ;; 12052 esac 12053 ;; 12054 netbsd*) 12055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12056 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12057 wlarc= 12058 hardcode_libdir_flag_spec_CXX='-R$libdir' 12059 hardcode_direct_CXX=yes 12060 hardcode_shlibpath_var_CXX=no 12061 fi 12062 # Workaround some broken pre-1.5 toolchains 12063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12064 ;; 12065 openbsd2*) 12066 # C++ shared libraries are fairly broken 12067 ld_shlibs_CXX=no 12068 ;; 12069 openbsd*) 12070 if test -f /usr/libexec/ld.so; then 12071 hardcode_direct_CXX=yes 12072 hardcode_shlibpath_var_CXX=no 12073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12076 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12077 export_dynamic_flag_spec_CXX='${wl}-E' 12078 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12079 fi 12080 output_verbose_link_cmd='echo' 12081 else 12082 ld_shlibs_CXX=no 12083 fi 12084 ;; 12085 osf3*) 12086 case $cc_basename in 12087 KCC*) 12088 # Kuck and Associates, Inc. (KAI) C++ Compiler 12089 12090 # KCC will only create a shared library if the output file 12091 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12092 # to its proper name (with version) after linking. 12093 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' 12094 12095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12096 hardcode_libdir_separator_CXX=: 12097 12098 # Archives containing C++ object files must be created using 12099 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12100 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12101 12102 ;; 12103 RCC*) 12104 # Rational C++ 2.4.1 12105 # FIXME: insert proper C++ library support 12106 ld_shlibs_CXX=no 12107 ;; 12108 cxx*) 12109 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12110 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' 12111 12112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12113 hardcode_libdir_separator_CXX=: 12114 12115 # Commands to make compiler produce verbose output that lists 12116 # what "hidden" libraries, object files and flags are used when 12117 # linking a shared library. 12118 # 12119 # There doesn't appear to be a way to prevent this compiler from 12120 # explicitly linking system object files so we need to strip them 12121 # from the output so that they don't get included in the library 12122 # dependencies. 12123 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' 12124 ;; 12125 *) 12126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12127 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12128 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' 12129 12130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12131 hardcode_libdir_separator_CXX=: 12132 12133 # Commands to make compiler produce verbose output that lists 12134 # what "hidden" libraries, object files and flags are used when 12135 # linking a shared library. 12136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12137 12138 else 12139 # FIXME: insert proper C++ library support 12140 ld_shlibs_CXX=no 12141 fi 12142 ;; 12143 esac 12144 ;; 12145 osf4* | osf5*) 12146 case $cc_basename in 12147 KCC*) 12148 # Kuck and Associates, Inc. (KAI) C++ Compiler 12149 12150 # KCC will only create a shared library if the output file 12151 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12152 # to its proper name (with version) after linking. 12153 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' 12154 12155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12156 hardcode_libdir_separator_CXX=: 12157 12158 # Archives containing C++ object files must be created using 12159 # the KAI C++ compiler. 12160 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12161 ;; 12162 RCC*) 12163 # Rational C++ 2.4.1 12164 # FIXME: insert proper C++ library support 12165 ld_shlibs_CXX=no 12166 ;; 12167 cxx*) 12168 allow_undefined_flag_CXX=' -expect_unresolved \*' 12169 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' 12170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12171 echo "-hidden">> $lib.exp~ 12172 $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~ 12173 $rm $lib.exp' 12174 12175 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12176 hardcode_libdir_separator_CXX=: 12177 12178 # Commands to make compiler produce verbose output that lists 12179 # what "hidden" libraries, object files and flags are used when 12180 # linking a shared library. 12181 # 12182 # There doesn't appear to be a way to prevent this compiler from 12183 # explicitly linking system object files so we need to strip them 12184 # from the output so that they don't get included in the library 12185 # dependencies. 12186 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' 12187 ;; 12188 *) 12189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12191 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' 12192 12193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12194 hardcode_libdir_separator_CXX=: 12195 12196 # Commands to make compiler produce verbose output that lists 12197 # what "hidden" libraries, object files and flags are used when 12198 # linking a shared library. 12199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12200 12201 else 12202 # FIXME: insert proper C++ library support 12203 ld_shlibs_CXX=no 12204 fi 12205 ;; 12206 esac 12207 ;; 12208 psos*) 12209 # FIXME: insert proper C++ library support 12210 ld_shlibs_CXX=no 12211 ;; 12212 sunos4*) 12213 case $cc_basename in 12214 CC*) 12215 # Sun C++ 4.x 12216 # FIXME: insert proper C++ library support 12217 ld_shlibs_CXX=no 12218 ;; 12219 lcc*) 12220 # Lucid 12221 # FIXME: insert proper C++ library support 12222 ld_shlibs_CXX=no 12223 ;; 12224 *) 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 esac 12229 ;; 12230 solaris*) 12231 case $cc_basename in 12232 CC*) 12233 # Sun C++ 4.2, 5.x and Centerline C++ 12234 archive_cmds_need_lc_CXX=yes 12235 no_undefined_flag_CXX=' -zdefs' 12236 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12237 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12238 $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' 12239 12240 hardcode_libdir_flag_spec_CXX='-R$libdir' 12241 hardcode_shlibpath_var_CXX=no 12242 case $host_os in 12243 solaris2.[0-5] | solaris2.[0-5].*) ;; 12244 *) 12245 # The compiler driver will combine and reorder linker options, 12246 # but understands `-z linker_flag'. 12247 # Supported since Solaris 2.6 (maybe 2.5.1?) 12248 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12249 ;; 12250 esac 12251 link_all_deplibs_CXX=yes 12252 12253 output_verbose_link_cmd='echo' 12254 12255 # Archives containing C++ object files must be created using 12256 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12257 # necessary to make sure instantiated templates are included 12258 # in the archive. 12259 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12260 ;; 12261 gcx*) 12262 # Green Hills C++ Compiler 12263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12264 12265 # The C++ compiler must be used to create the archive. 12266 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12267 ;; 12268 *) 12269 # GNU C++ compiler with Solaris linker 12270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12271 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12272 if $CC --version | grep -v '^2\.7' > /dev/null; then 12273 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12274 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12275 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12276 12277 # Commands to make compiler produce verbose output that lists 12278 # what "hidden" libraries, object files and flags are used when 12279 # linking a shared library. 12280 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12281 else 12282 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12283 # platform. 12284 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12285 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12286 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12287 12288 # Commands to make compiler produce verbose output that lists 12289 # what "hidden" libraries, object files and flags are used when 12290 # linking a shared library. 12291 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12292 fi 12293 12294 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12295 case $host_os in 12296 solaris2.[0-5] | solaris2.[0-5].*) ;; 12297 *) 12298 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12299 ;; 12300 esac 12301 fi 12302 ;; 12303 esac 12304 ;; 12305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12306 no_undefined_flag_CXX='${wl}-z,text' 12307 archive_cmds_need_lc_CXX=no 12308 hardcode_shlibpath_var_CXX=no 12309 runpath_var='LD_RUN_PATH' 12310 12311 case $cc_basename in 12312 CC*) 12313 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12314 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12315 ;; 12316 *) 12317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12319 ;; 12320 esac 12321 ;; 12322 sysv5* | sco3.2v5* | sco5v6*) 12323 # Note: We can NOT use -z defs as we might desire, because we do not 12324 # link with -lc, and that would cause any symbols used from libc to 12325 # always be unresolved, which means just about no library would 12326 # ever link correctly. If we're not using GNU ld we use -z text 12327 # though, which does catch some bad symbols but isn't as heavy-handed 12328 # as -z defs. 12329 # For security reasons, it is highly recommended that you always 12330 # use absolute paths for naming shared libraries, and exclude the 12331 # DT_RUNPATH tag from executables and libraries. But doing so 12332 # requires that you compile everything twice, which is a pain. 12333 # So that behaviour is only enabled if SCOABSPATH is set to a 12334 # non-empty value in the environment. Most likely only useful for 12335 # creating official distributions of packages. 12336 # This is a hack until libtool officially supports absolute path 12337 # names for shared libraries. 12338 no_undefined_flag_CXX='${wl}-z,text' 12339 allow_undefined_flag_CXX='${wl}-z,nodefs' 12340 archive_cmds_need_lc_CXX=no 12341 hardcode_shlibpath_var_CXX=no 12342 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12343 hardcode_libdir_separator_CXX=':' 12344 link_all_deplibs_CXX=yes 12345 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12346 runpath_var='LD_RUN_PATH' 12347 12348 case $cc_basename in 12349 CC*) 12350 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12351 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12352 ;; 12353 *) 12354 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12355 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12356 ;; 12357 esac 12358 ;; 12359 tandem*) 12360 case $cc_basename in 12361 NCC*) 12362 # NonStop-UX NCC 3.20 12363 # FIXME: insert proper C++ library support 12364 ld_shlibs_CXX=no 12365 ;; 12366 *) 12367 # FIXME: insert proper C++ library support 12368 ld_shlibs_CXX=no 12369 ;; 12370 esac 12371 ;; 12372 vxworks*) 12373 # FIXME: insert proper C++ library support 12374 ld_shlibs_CXX=no 12375 ;; 12376 *) 12377 # FIXME: insert proper C++ library support 12378 ld_shlibs_CXX=no 12379 ;; 12380esac 12381{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12382$as_echo "$ld_shlibs_CXX" >&6; } 12383test "$ld_shlibs_CXX" = no && can_build_shared=no 12384 12385GCC_CXX="$GXX" 12386LD_CXX="$LD" 12387 12388 12389cat > conftest.$ac_ext <<EOF 12390class Foo 12391{ 12392public: 12393 Foo (void) { a = 0; } 12394private: 12395 int a; 12396}; 12397EOF 12398 12399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12400 (eval $ac_compile) 2>&5 12401 ac_status=$? 12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12403 (exit $ac_status); }; then 12404 # Parse the compiler output and extract the necessary 12405 # objects, libraries and library flags. 12406 12407 # Sentinel used to keep track of whether or not we are before 12408 # the conftest object file. 12409 pre_test_object_deps_done=no 12410 12411 # The `*' in the case matches for architectures that use `case' in 12412 # $output_verbose_cmd can trigger glob expansion during the loop 12413 # eval without this substitution. 12414 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12415 12416 for p in `eval $output_verbose_link_cmd`; do 12417 case $p in 12418 12419 -L* | -R* | -l*) 12420 # Some compilers place space between "-{L,R}" and the path. 12421 # Remove the space. 12422 if test $p = "-L" \ 12423 || test $p = "-R"; then 12424 prev=$p 12425 continue 12426 else 12427 prev= 12428 fi 12429 12430 if test "$pre_test_object_deps_done" = no; then 12431 case $p in 12432 -L* | -R*) 12433 # Internal compiler library paths should come after those 12434 # provided the user. The postdeps already come after the 12435 # user supplied libs so there is no need to process them. 12436 if test -z "$compiler_lib_search_path_CXX"; then 12437 compiler_lib_search_path_CXX="${prev}${p}" 12438 else 12439 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12440 fi 12441 ;; 12442 # The "-l" case would never come before the object being 12443 # linked, so don't bother handling this case. 12444 esac 12445 else 12446 if test -z "$postdeps_CXX"; then 12447 postdeps_CXX="${prev}${p}" 12448 else 12449 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12450 fi 12451 fi 12452 ;; 12453 12454 *.$objext) 12455 # This assumes that the test object file only shows up 12456 # once in the compiler output. 12457 if test "$p" = "conftest.$objext"; then 12458 pre_test_object_deps_done=yes 12459 continue 12460 fi 12461 12462 if test "$pre_test_object_deps_done" = no; then 12463 if test -z "$predep_objects_CXX"; then 12464 predep_objects_CXX="$p" 12465 else 12466 predep_objects_CXX="$predep_objects_CXX $p" 12467 fi 12468 else 12469 if test -z "$postdep_objects_CXX"; then 12470 postdep_objects_CXX="$p" 12471 else 12472 postdep_objects_CXX="$postdep_objects_CXX $p" 12473 fi 12474 fi 12475 ;; 12476 12477 *) ;; # Ignore the rest. 12478 12479 esac 12480 done 12481 12482 # Clean up. 12483 rm -f a.out a.exe 12484else 12485 echo "libtool.m4: error: problem compiling CXX test program" 12486fi 12487 12488$rm -f confest.$objext 12489 12490# PORTME: override above test on systems where it is broken 12491case $host_os in 12492interix[3-9]*) 12493 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12494 # hack all around it, let's just trust "g++" to DTRT. 12495 predep_objects_CXX= 12496 postdep_objects_CXX= 12497 postdeps_CXX= 12498 ;; 12499 12500linux*) 12501 case `$CC -V 2>&1 | sed 5q` in 12502 *Sun\ C*) 12503 # Sun C++ 5.9 12504 # 12505 # The more standards-conforming stlport4 library is 12506 # incompatible with the Cstd library. Avoid specifying 12507 # it if it's in CXXFLAGS. Ignore libCrun as 12508 # -library=stlport4 depends on it. 12509 case " $CXX $CXXFLAGS " in 12510 *" -library=stlport4 "*) 12511 solaris_use_stlport4=yes 12512 ;; 12513 esac 12514 if test "$solaris_use_stlport4" != yes; then 12515 postdeps_CXX='-library=Cstd -library=Crun' 12516 fi 12517 ;; 12518 esac 12519 ;; 12520 12521solaris*) 12522 case $cc_basename in 12523 CC*) 12524 # The more standards-conforming stlport4 library is 12525 # incompatible with the Cstd library. Avoid specifying 12526 # it if it's in CXXFLAGS. Ignore libCrun as 12527 # -library=stlport4 depends on it. 12528 case " $CXX $CXXFLAGS " in 12529 *" -library=stlport4 "*) 12530 solaris_use_stlport4=yes 12531 ;; 12532 esac 12533 12534 # Adding this requires a known-good setup of shared libraries for 12535 # Sun compiler versions before 5.6, else PIC objects from an old 12536 # archive will be linked into the output, leading to subtle bugs. 12537 if test "$solaris_use_stlport4" != yes; then 12538 postdeps_CXX='-library=Cstd -library=Crun' 12539 fi 12540 ;; 12541 esac 12542 ;; 12543esac 12544 12545 12546case " $postdeps_CXX " in 12547*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12548esac 12549 12550lt_prog_compiler_wl_CXX= 12551lt_prog_compiler_pic_CXX= 12552lt_prog_compiler_static_CXX= 12553 12554{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12555$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12556 12557 # C++ specific cases for pic, static, wl, etc. 12558 if test "$GXX" = yes; then 12559 lt_prog_compiler_wl_CXX='-Wl,' 12560 lt_prog_compiler_static_CXX='-static' 12561 12562 case $host_os in 12563 aix*) 12564 # All AIX code is PIC. 12565 if test "$host_cpu" = ia64; then 12566 # AIX 5 now supports IA64 processor 12567 lt_prog_compiler_static_CXX='-Bstatic' 12568 fi 12569 ;; 12570 amigaos*) 12571 # FIXME: we need at least 68020 code to build shared libraries, but 12572 # adding the `-m68020' flag to GCC prevents building anything better, 12573 # like `-m68040'. 12574 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12575 ;; 12576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12577 # PIC is the default for these OSes. 12578 ;; 12579 mingw* | cygwin* | os2* | pw32*) 12580 # This hack is so that the source file can tell whether it is being 12581 # built for inclusion in a dll (and should export symbols for example). 12582 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12583 # (--disable-auto-import) libraries 12584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12585 ;; 12586 darwin* | rhapsody*) 12587 # PIC is the default on this platform 12588 # Common symbols not allowed in MH_DYLIB files 12589 lt_prog_compiler_pic_CXX='-fno-common' 12590 ;; 12591 *djgpp*) 12592 # DJGPP does not support shared libraries at all 12593 lt_prog_compiler_pic_CXX= 12594 ;; 12595 interix[3-9]*) 12596 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12597 # Instead, we relocate shared libraries at runtime. 12598 ;; 12599 sysv4*MP*) 12600 if test -d /usr/nec; then 12601 lt_prog_compiler_pic_CXX=-Kconform_pic 12602 fi 12603 ;; 12604 hpux*) 12605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12606 # not for PA HP-UX. 12607 case $host_cpu in 12608 hppa*64*|ia64*) 12609 ;; 12610 *) 12611 lt_prog_compiler_pic_CXX='-fPIC' 12612 ;; 12613 esac 12614 ;; 12615 *) 12616 lt_prog_compiler_pic_CXX='-fPIC' 12617 ;; 12618 esac 12619 else 12620 case $host_os in 12621 aix4* | aix5*) 12622 # All AIX code is PIC. 12623 if test "$host_cpu" = ia64; then 12624 # AIX 5 now supports IA64 processor 12625 lt_prog_compiler_static_CXX='-Bstatic' 12626 else 12627 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12628 fi 12629 ;; 12630 chorus*) 12631 case $cc_basename in 12632 cxch68*) 12633 # Green Hills C++ Compiler 12634 # _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" 12635 ;; 12636 esac 12637 ;; 12638 darwin*) 12639 # PIC is the default on this platform 12640 # Common symbols not allowed in MH_DYLIB files 12641 case $cc_basename in 12642 xlc*) 12643 lt_prog_compiler_pic_CXX='-qnocommon' 12644 lt_prog_compiler_wl_CXX='-Wl,' 12645 ;; 12646 esac 12647 ;; 12648 dgux*) 12649 case $cc_basename in 12650 ec++*) 12651 lt_prog_compiler_pic_CXX='-KPIC' 12652 ;; 12653 ghcx*) 12654 # Green Hills C++ Compiler 12655 lt_prog_compiler_pic_CXX='-pic' 12656 ;; 12657 *) 12658 ;; 12659 esac 12660 ;; 12661 freebsd* | dragonfly*) 12662 # FreeBSD uses GNU C++ 12663 ;; 12664 hpux9* | hpux10* | hpux11*) 12665 case $cc_basename in 12666 CC*) 12667 lt_prog_compiler_wl_CXX='-Wl,' 12668 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12669 if test "$host_cpu" != ia64; then 12670 lt_prog_compiler_pic_CXX='+Z' 12671 fi 12672 ;; 12673 aCC*) 12674 lt_prog_compiler_wl_CXX='-Wl,' 12675 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12676 case $host_cpu in 12677 hppa*64*|ia64*) 12678 # +Z the default 12679 ;; 12680 *) 12681 lt_prog_compiler_pic_CXX='+Z' 12682 ;; 12683 esac 12684 ;; 12685 *) 12686 ;; 12687 esac 12688 ;; 12689 interix*) 12690 # This is c89, which is MS Visual C++ (no shared libs) 12691 # Anyone wants to do a port? 12692 ;; 12693 irix5* | irix6* | nonstopux*) 12694 case $cc_basename in 12695 CC*) 12696 lt_prog_compiler_wl_CXX='-Wl,' 12697 lt_prog_compiler_static_CXX='-non_shared' 12698 # CC pic flag -KPIC is the default. 12699 ;; 12700 *) 12701 ;; 12702 esac 12703 ;; 12704 linux* | k*bsd*-gnu) 12705 case $cc_basename in 12706 KCC*) 12707 # KAI C++ Compiler 12708 lt_prog_compiler_wl_CXX='--backend -Wl,' 12709 lt_prog_compiler_pic_CXX='-fPIC' 12710 ;; 12711 icpc* | ecpc*) 12712 # Intel C++ 12713 lt_prog_compiler_wl_CXX='-Wl,' 12714 lt_prog_compiler_pic_CXX='-KPIC' 12715 lt_prog_compiler_static_CXX='-static' 12716 ;; 12717 pgCC*) 12718 # Portland Group C++ compiler. 12719 lt_prog_compiler_wl_CXX='-Wl,' 12720 lt_prog_compiler_pic_CXX='-fpic' 12721 lt_prog_compiler_static_CXX='-Bstatic' 12722 ;; 12723 cxx*) 12724 # Compaq C++ 12725 # Make sure the PIC flag is empty. It appears that all Alpha 12726 # Linux and Compaq Tru64 Unix objects are PIC. 12727 lt_prog_compiler_pic_CXX= 12728 lt_prog_compiler_static_CXX='-non_shared' 12729 ;; 12730 *) 12731 case `$CC -V 2>&1 | sed 5q` in 12732 *Sun\ C*) 12733 # Sun C++ 5.9 12734 lt_prog_compiler_pic_CXX='-KPIC' 12735 lt_prog_compiler_static_CXX='-Bstatic' 12736 lt_prog_compiler_wl_CXX='-Qoption ld ' 12737 ;; 12738 esac 12739 ;; 12740 esac 12741 ;; 12742 lynxos*) 12743 ;; 12744 m88k*) 12745 ;; 12746 mvs*) 12747 case $cc_basename in 12748 cxx*) 12749 lt_prog_compiler_pic_CXX='-W c,exportall' 12750 ;; 12751 *) 12752 ;; 12753 esac 12754 ;; 12755 netbsd*) 12756 ;; 12757 osf3* | osf4* | osf5*) 12758 case $cc_basename in 12759 KCC*) 12760 lt_prog_compiler_wl_CXX='--backend -Wl,' 12761 ;; 12762 RCC*) 12763 # Rational C++ 2.4.1 12764 lt_prog_compiler_pic_CXX='-pic' 12765 ;; 12766 cxx*) 12767 # Digital/Compaq C++ 12768 lt_prog_compiler_wl_CXX='-Wl,' 12769 # Make sure the PIC flag is empty. It appears that all Alpha 12770 # Linux and Compaq Tru64 Unix objects are PIC. 12771 lt_prog_compiler_pic_CXX= 12772 lt_prog_compiler_static_CXX='-non_shared' 12773 ;; 12774 *) 12775 ;; 12776 esac 12777 ;; 12778 psos*) 12779 ;; 12780 solaris*) 12781 case $cc_basename in 12782 CC*) 12783 # Sun C++ 4.2, 5.x and Centerline C++ 12784 lt_prog_compiler_pic_CXX='-KPIC' 12785 lt_prog_compiler_static_CXX='-Bstatic' 12786 lt_prog_compiler_wl_CXX='-Qoption ld ' 12787 ;; 12788 gcx*) 12789 # Green Hills C++ Compiler 12790 lt_prog_compiler_pic_CXX='-PIC' 12791 ;; 12792 *) 12793 ;; 12794 esac 12795 ;; 12796 sunos4*) 12797 case $cc_basename in 12798 CC*) 12799 # Sun C++ 4.x 12800 lt_prog_compiler_pic_CXX='-pic' 12801 lt_prog_compiler_static_CXX='-Bstatic' 12802 ;; 12803 lcc*) 12804 # Lucid 12805 lt_prog_compiler_pic_CXX='-pic' 12806 ;; 12807 *) 12808 ;; 12809 esac 12810 ;; 12811 tandem*) 12812 case $cc_basename in 12813 NCC*) 12814 # NonStop-UX NCC 3.20 12815 lt_prog_compiler_pic_CXX='-KPIC' 12816 ;; 12817 *) 12818 ;; 12819 esac 12820 ;; 12821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12822 case $cc_basename in 12823 CC*) 12824 lt_prog_compiler_wl_CXX='-Wl,' 12825 lt_prog_compiler_pic_CXX='-KPIC' 12826 lt_prog_compiler_static_CXX='-Bstatic' 12827 ;; 12828 esac 12829 ;; 12830 vxworks*) 12831 ;; 12832 *) 12833 lt_prog_compiler_can_build_shared_CXX=no 12834 ;; 12835 esac 12836 fi 12837 12838{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12839$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12840 12841# 12842# Check to make sure the PIC flag actually works. 12843# 12844if test -n "$lt_prog_compiler_pic_CXX"; then 12845 12846{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12848if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12849 $as_echo_n "(cached) " >&6 12850else 12851 lt_prog_compiler_pic_works_CXX=no 12852 ac_outfile=conftest.$ac_objext 12853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12854 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12855 # Insert the option either (1) after the last *FLAGS variable, or 12856 # (2) before a word containing "conftest.", or (3) at the end. 12857 # Note that $ac_compile itself does not contain backslashes and begins 12858 # with a dollar sign (not a hyphen), so the echo should work correctly. 12859 # The option is referenced via a variable to avoid confusing sed. 12860 lt_compile=`echo "$ac_compile" | $SED \ 12861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12863 -e 's:$: $lt_compiler_flag:'` 12864 (eval echo "\"\$as_me:12864: $lt_compile\"" >&5) 12865 (eval "$lt_compile" 2>conftest.err) 12866 ac_status=$? 12867 cat conftest.err >&5 12868 echo "$as_me:12868: \$? = $ac_status" >&5 12869 if (exit $ac_status) && test -s "$ac_outfile"; then 12870 # The compiler can only warn and ignore the option if not recognized 12871 # So say no if there are warnings other than the usual output. 12872 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12875 lt_prog_compiler_pic_works_CXX=yes 12876 fi 12877 fi 12878 $rm conftest* 12879 12880fi 12881{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12882$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; } 12883 12884if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12885 case $lt_prog_compiler_pic_CXX in 12886 "" | " "*) ;; 12887 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12888 esac 12889else 12890 lt_prog_compiler_pic_CXX= 12891 lt_prog_compiler_can_build_shared_CXX=no 12892fi 12893 12894fi 12895case $host_os in 12896 # For platforms which do not support PIC, -DPIC is meaningless: 12897 *djgpp*) 12898 lt_prog_compiler_pic_CXX= 12899 ;; 12900 *) 12901 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12902 ;; 12903esac 12904 12905# 12906# Check to make sure the static flag actually works. 12907# 12908wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12909{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12910$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12911if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12912 $as_echo_n "(cached) " >&6 12913else 12914 lt_prog_compiler_static_works_CXX=no 12915 save_LDFLAGS="$LDFLAGS" 12916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12917 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12919 # The linker can only warn and ignore the option if not recognized 12920 # So say no if there are warnings 12921 if test -s conftest.err; then 12922 # Append any errors to the config.log. 12923 cat conftest.err 1>&5 12924 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12926 if diff conftest.exp conftest.er2 >/dev/null; then 12927 lt_prog_compiler_static_works_CXX=yes 12928 fi 12929 else 12930 lt_prog_compiler_static_works_CXX=yes 12931 fi 12932 fi 12933 $rm conftest* 12934 LDFLAGS="$save_LDFLAGS" 12935 12936fi 12937{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12938$as_echo "$lt_prog_compiler_static_works_CXX" >&6; } 12939 12940if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12941 : 12942else 12943 lt_prog_compiler_static_CXX= 12944fi 12945 12946 12947{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12948$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12949if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12950 $as_echo_n "(cached) " >&6 12951else 12952 lt_cv_prog_compiler_c_o_CXX=no 12953 $rm -r conftest 2>/dev/null 12954 mkdir conftest 12955 cd conftest 12956 mkdir out 12957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12958 12959 lt_compiler_flag="-o out/conftest2.$ac_objext" 12960 # Insert the option either (1) after the last *FLAGS variable, or 12961 # (2) before a word containing "conftest.", or (3) at the end. 12962 # Note that $ac_compile itself does not contain backslashes and begins 12963 # with a dollar sign (not a hyphen), so the echo should work correctly. 12964 lt_compile=`echo "$ac_compile" | $SED \ 12965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12967 -e 's:$: $lt_compiler_flag:'` 12968 (eval echo "\"\$as_me:12968: $lt_compile\"" >&5) 12969 (eval "$lt_compile" 2>out/conftest.err) 12970 ac_status=$? 12971 cat out/conftest.err >&5 12972 echo "$as_me:12972: \$? = $ac_status" >&5 12973 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12974 then 12975 # The compiler can only warn and ignore the option if not recognized 12976 # So say no if there are warnings 12977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12980 lt_cv_prog_compiler_c_o_CXX=yes 12981 fi 12982 fi 12983 chmod u+w . 2>&5 12984 $rm conftest* 12985 # SGI C++ compiler will create directory out/ii_files/ for 12986 # template instantiation 12987 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12988 $rm out/* && rmdir out 12989 cd .. 12990 rmdir conftest 12991 $rm conftest* 12992 12993fi 12994{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12995$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12996 12997 12998hard_links="nottested" 12999if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13000 # do not overwrite the value of need_locks provided by the user 13001 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13002$as_echo_n "checking if we can lock with hard links... " >&6; } 13003 hard_links=yes 13004 $rm conftest* 13005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13006 touch conftest.a 13007 ln conftest.a conftest.b 2>&5 || hard_links=no 13008 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13009 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13010$as_echo "$hard_links" >&6; } 13011 if test "$hard_links" = no; then 13012 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13013$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13014 need_locks=warn 13015 fi 13016else 13017 need_locks=no 13018fi 13019 13020{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13022 13023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13024 case $host_os in 13025 aix4* | aix5*) 13026 # If we're using GNU nm, then we don't want the "-C" option. 13027 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13028 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13029 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' 13030 else 13031 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' 13032 fi 13033 ;; 13034 pw32*) 13035 export_symbols_cmds_CXX="$ltdll_cmds" 13036 ;; 13037 cygwin* | mingw*) 13038 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' 13039 ;; 13040 *) 13041 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13042 ;; 13043 esac 13044 13045{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13046$as_echo "$ld_shlibs_CXX" >&6; } 13047test "$ld_shlibs_CXX" = no && can_build_shared=no 13048 13049# 13050# Do we need to explicitly link libc? 13051# 13052case "x$archive_cmds_need_lc_CXX" in 13053x|xyes) 13054 # Assume -lc should be added 13055 archive_cmds_need_lc_CXX=yes 13056 13057 if test "$enable_shared" = yes && test "$GCC" = yes; then 13058 case $archive_cmds_CXX in 13059 *'~'*) 13060 # FIXME: we may have to deal with multi-command sequences. 13061 ;; 13062 '$CC '*) 13063 # Test whether the compiler implicitly links with -lc since on some 13064 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13065 # to ld, don't add -lc before -lgcc. 13066 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13067$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13068 $rm conftest* 13069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13070 13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13072 (eval $ac_compile) 2>&5 13073 ac_status=$? 13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 (exit $ac_status); } 2>conftest.err; then 13076 soname=conftest 13077 lib=conftest 13078 libobjs=conftest.$ac_objext 13079 deplibs= 13080 wl=$lt_prog_compiler_wl_CXX 13081 pic_flag=$lt_prog_compiler_pic_CXX 13082 compiler_flags=-v 13083 linker_flags=-v 13084 verstring= 13085 output_objdir=. 13086 libname=conftest 13087 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13088 allow_undefined_flag_CXX= 13089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13090 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13091 ac_status=$? 13092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13093 (exit $ac_status); } 13094 then 13095 archive_cmds_need_lc_CXX=no 13096 else 13097 archive_cmds_need_lc_CXX=yes 13098 fi 13099 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13100 else 13101 cat conftest.err 1>&5 13102 fi 13103 $rm conftest* 13104 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13105$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13106 ;; 13107 esac 13108 fi 13109 ;; 13110esac 13111 13112{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13113$as_echo_n "checking dynamic linker characteristics... " >&6; } 13114library_names_spec= 13115libname_spec='lib$name' 13116soname_spec= 13117shrext_cmds=".so" 13118postinstall_cmds= 13119postuninstall_cmds= 13120finish_cmds= 13121finish_eval= 13122shlibpath_var= 13123shlibpath_overrides_runpath=unknown 13124version_type=none 13125dynamic_linker="$host_os ld.so" 13126sys_lib_dlsearch_path_spec="/lib /usr/lib" 13127 13128need_lib_prefix=unknown 13129hardcode_into_libs=no 13130 13131# when you set need_version to no, make sure it does not cause -set_version 13132# flags to be left without arguments 13133need_version=unknown 13134 13135case $host_os in 13136aix3*) 13137 version_type=linux 13138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13139 shlibpath_var=LIBPATH 13140 13141 # AIX 3 has no versioning support, so we append a major version to the name. 13142 soname_spec='${libname}${release}${shared_ext}$major' 13143 ;; 13144 13145aix4* | aix5*) 13146 version_type=linux 13147 need_lib_prefix=no 13148 need_version=no 13149 hardcode_into_libs=yes 13150 if test "$host_cpu" = ia64; then 13151 # AIX 5 supports IA64 13152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13153 shlibpath_var=LD_LIBRARY_PATH 13154 else 13155 # With GCC up to 2.95.x, collect2 would create an import file 13156 # for dependence libraries. The import file would start with 13157 # the line `#! .'. This would cause the generated library to 13158 # depend on `.', always an invalid library. This was fixed in 13159 # development snapshots of GCC prior to 3.0. 13160 case $host_os in 13161 aix4 | aix4.[01] | aix4.[01].*) 13162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13163 echo ' yes ' 13164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13165 : 13166 else 13167 can_build_shared=no 13168 fi 13169 ;; 13170 esac 13171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13172 # soname into executable. Probably we can add versioning support to 13173 # collect2, so additional links can be useful in future. 13174 if test "$aix_use_runtimelinking" = yes; then 13175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13176 # instead of lib<name>.a to let people know that these are not 13177 # typical AIX shared libraries. 13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13179 else 13180 # We preserve .a as extension for shared libraries through AIX4.2 13181 # and later when we are not doing run time linking. 13182 library_names_spec='${libname}${release}.a $libname.a' 13183 soname_spec='${libname}${release}${shared_ext}$major' 13184 fi 13185 shlibpath_var=LIBPATH 13186 fi 13187 ;; 13188 13189amigaos*) 13190 library_names_spec='$libname.ixlibrary $libname.a' 13191 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13192 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' 13193 ;; 13194 13195beos*) 13196 library_names_spec='${libname}${shared_ext}' 13197 dynamic_linker="$host_os ld.so" 13198 shlibpath_var=LIBRARY_PATH 13199 ;; 13200 13201bsdi[45]*) 13202 version_type=linux 13203 need_version=no 13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13205 soname_spec='${libname}${release}${shared_ext}$major' 13206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13207 shlibpath_var=LD_LIBRARY_PATH 13208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13210 # the default ld.so.conf also contains /usr/contrib/lib and 13211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13212 # libtool to hard-code these into programs 13213 ;; 13214 13215cygwin* | mingw* | pw32*) 13216 version_type=windows 13217 shrext_cmds=".dll" 13218 need_version=no 13219 need_lib_prefix=no 13220 13221 case $GCC,$host_os in 13222 yes,cygwin* | yes,mingw* | yes,pw32*) 13223 library_names_spec='$libname.dll.a' 13224 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13225 postinstall_cmds='base_file=`basename \${file}`~ 13226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13227 dldir=$destdir/`dirname \$dlpath`~ 13228 test -d \$dldir || mkdir -p \$dldir~ 13229 $install_prog $dir/$dlname \$dldir/$dlname~ 13230 chmod a+x \$dldir/$dlname' 13231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13232 dlpath=$dir/\$dldll~ 13233 $rm \$dlpath' 13234 shlibpath_overrides_runpath=yes 13235 13236 case $host_os in 13237 cygwin*) 13238 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13241 ;; 13242 mingw*) 13243 # MinGW DLLs use traditional 'lib' prefix 13244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13246 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13247 # It is most probably a Windows format PATH printed by 13248 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13249 # path with ; separators, and with drive letters. We can handle the 13250 # drive letters (cygwin fileutils understands them), so leave them, 13251 # especially as we might pass files found there to a mingw objdump, 13252 # which wouldn't understand a cygwinified path. Ahh. 13253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13254 else 13255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13256 fi 13257 ;; 13258 pw32*) 13259 # pw32 DLLs use 'pw' prefix rather than 'lib' 13260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13261 ;; 13262 esac 13263 ;; 13264 13265 *) 13266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13267 ;; 13268 esac 13269 dynamic_linker='Win32 ld.exe' 13270 # FIXME: first we should search . and the directory the executable is in 13271 shlibpath_var=PATH 13272 ;; 13273 13274darwin* | rhapsody*) 13275 dynamic_linker="$host_os dyld" 13276 version_type=darwin 13277 need_lib_prefix=no 13278 need_version=no 13279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13280 soname_spec='${libname}${release}${major}$shared_ext' 13281 shlibpath_overrides_runpath=yes 13282 shlibpath_var=DYLD_LIBRARY_PATH 13283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13284 13285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13286 ;; 13287 13288dgux*) 13289 version_type=linux 13290 need_lib_prefix=no 13291 need_version=no 13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13293 soname_spec='${libname}${release}${shared_ext}$major' 13294 shlibpath_var=LD_LIBRARY_PATH 13295 ;; 13296 13297freebsd1*) 13298 dynamic_linker=no 13299 ;; 13300 13301freebsd* | dragonfly*) 13302 # DragonFly does not have aout. When/if they implement a new 13303 # versioning mechanism, adjust this. 13304 if test -x /usr/bin/objformat; then 13305 objformat=`/usr/bin/objformat` 13306 else 13307 case $host_os in 13308 freebsd[123]*) objformat=aout ;; 13309 *) objformat=elf ;; 13310 esac 13311 fi 13312 version_type=freebsd-$objformat 13313 case $version_type in 13314 freebsd-elf*) 13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13316 need_version=no 13317 need_lib_prefix=no 13318 ;; 13319 freebsd-*) 13320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13321 need_version=yes 13322 ;; 13323 esac 13324 shlibpath_var=LD_LIBRARY_PATH 13325 case $host_os in 13326 freebsd2*) 13327 shlibpath_overrides_runpath=yes 13328 ;; 13329 freebsd3.[01]* | freebsdelf3.[01]*) 13330 shlibpath_overrides_runpath=yes 13331 hardcode_into_libs=yes 13332 ;; 13333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13335 shlibpath_overrides_runpath=no 13336 hardcode_into_libs=yes 13337 ;; 13338 *) # from 4.6 on, and DragonFly 13339 shlibpath_overrides_runpath=yes 13340 hardcode_into_libs=yes 13341 ;; 13342 esac 13343 ;; 13344 13345gnu*) 13346 version_type=linux 13347 need_lib_prefix=no 13348 need_version=no 13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13350 soname_spec='${libname}${release}${shared_ext}$major' 13351 shlibpath_var=LD_LIBRARY_PATH 13352 hardcode_into_libs=yes 13353 ;; 13354 13355hpux9* | hpux10* | hpux11*) 13356 # Give a soname corresponding to the major version so that dld.sl refuses to 13357 # link against other versions. 13358 version_type=sunos 13359 need_lib_prefix=no 13360 need_version=no 13361 case $host_cpu in 13362 ia64*) 13363 shrext_cmds='.so' 13364 hardcode_into_libs=yes 13365 dynamic_linker="$host_os dld.so" 13366 shlibpath_var=LD_LIBRARY_PATH 13367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13369 soname_spec='${libname}${release}${shared_ext}$major' 13370 if test "X$HPUX_IA64_MODE" = X32; then 13371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13372 else 13373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13374 fi 13375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13376 ;; 13377 hppa*64*) 13378 shrext_cmds='.sl' 13379 hardcode_into_libs=yes 13380 dynamic_linker="$host_os dld.sl" 13381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13384 soname_spec='${libname}${release}${shared_ext}$major' 13385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13387 ;; 13388 *) 13389 shrext_cmds='.sl' 13390 dynamic_linker="$host_os dld.sl" 13391 shlibpath_var=SHLIB_PATH 13392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13394 soname_spec='${libname}${release}${shared_ext}$major' 13395 ;; 13396 esac 13397 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13398 postinstall_cmds='chmod 555 $lib' 13399 ;; 13400 13401interix[3-9]*) 13402 version_type=linux 13403 need_lib_prefix=no 13404 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13408 shlibpath_var=LD_LIBRARY_PATH 13409 shlibpath_overrides_runpath=no 13410 hardcode_into_libs=yes 13411 ;; 13412 13413irix5* | irix6* | nonstopux*) 13414 case $host_os in 13415 nonstopux*) version_type=nonstopux ;; 13416 *) 13417 if test "$lt_cv_prog_gnu_ld" = yes; then 13418 version_type=linux 13419 else 13420 version_type=irix 13421 fi ;; 13422 esac 13423 need_lib_prefix=no 13424 need_version=no 13425 soname_spec='${libname}${release}${shared_ext}$major' 13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13427 case $host_os in 13428 irix5* | nonstopux*) 13429 libsuff= shlibsuff= 13430 ;; 13431 *) 13432 case $LD in # libtool.m4 will add one of these switches to LD 13433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13434 libsuff= shlibsuff= libmagic=32-bit;; 13435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13436 libsuff=32 shlibsuff=N32 libmagic=N32;; 13437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13438 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13439 *) libsuff= shlibsuff= libmagic=never-match;; 13440 esac 13441 ;; 13442 esac 13443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13444 shlibpath_overrides_runpath=no 13445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13447 hardcode_into_libs=yes 13448 ;; 13449 13450# No shared lib support for Linux oldld, aout, or coff. 13451linux*oldld* | linux*aout* | linux*coff*) 13452 dynamic_linker=no 13453 ;; 13454 13455# This must be Linux ELF. 13456linux* | k*bsd*-gnu) 13457 version_type=linux 13458 need_lib_prefix=no 13459 need_version=no 13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13461 soname_spec='${libname}${release}${shared_ext}$major' 13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13463 shlibpath_var=LD_LIBRARY_PATH 13464 shlibpath_overrides_runpath=no 13465 # This implies no fast_install, which is unacceptable. 13466 # Some rework will be needed to allow for fast_install 13467 # before this can be enabled. 13468 hardcode_into_libs=yes 13469 13470 # Append ld.so.conf contents to the search path 13471 if test -f /etc/ld.so.conf; then 13472 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' ' '` 13473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13474 fi 13475 13476 # We used to test for /lib/ld.so.1 and disable shared libraries on 13477 # powerpc, because MkLinux only supported shared libraries with the 13478 # GNU dynamic linker. Since this was broken with cross compilers, 13479 # most powerpc-linux boxes support dynamic linking these days and 13480 # people can always --disable-shared, the test was removed, and we 13481 # assume the GNU/Linux dynamic linker is in use. 13482 dynamic_linker='GNU/Linux ld.so' 13483 ;; 13484 13485netbsd*) 13486 version_type=sunos 13487 need_lib_prefix=no 13488 need_version=no 13489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13492 dynamic_linker='NetBSD (a.out) ld.so' 13493 else 13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13495 soname_spec='${libname}${release}${shared_ext}$major' 13496 dynamic_linker='NetBSD ld.elf_so' 13497 fi 13498 shlibpath_var=LD_LIBRARY_PATH 13499 shlibpath_overrides_runpath=yes 13500 hardcode_into_libs=yes 13501 ;; 13502 13503newsos6) 13504 version_type=linux 13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13506 shlibpath_var=LD_LIBRARY_PATH 13507 shlibpath_overrides_runpath=yes 13508 ;; 13509 13510nto-qnx*) 13511 version_type=linux 13512 need_lib_prefix=no 13513 need_version=no 13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13515 soname_spec='${libname}${release}${shared_ext}$major' 13516 shlibpath_var=LD_LIBRARY_PATH 13517 shlibpath_overrides_runpath=yes 13518 ;; 13519 13520openbsd*) 13521 version_type=sunos 13522 sys_lib_dlsearch_path_spec="/usr/lib" 13523 need_lib_prefix=no 13524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13525 case $host_os in 13526 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13527 *) need_version=no ;; 13528 esac 13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13531 shlibpath_var=LD_LIBRARY_PATH 13532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13533 case $host_os in 13534 openbsd2.[89] | openbsd2.[89].*) 13535 shlibpath_overrides_runpath=no 13536 ;; 13537 *) 13538 shlibpath_overrides_runpath=yes 13539 ;; 13540 esac 13541 else 13542 shlibpath_overrides_runpath=yes 13543 fi 13544 ;; 13545 13546os2*) 13547 libname_spec='$name' 13548 shrext_cmds=".dll" 13549 need_lib_prefix=no 13550 library_names_spec='$libname${shared_ext} $libname.a' 13551 dynamic_linker='OS/2 ld.exe' 13552 shlibpath_var=LIBPATH 13553 ;; 13554 13555osf3* | osf4* | osf5*) 13556 version_type=osf 13557 need_lib_prefix=no 13558 need_version=no 13559 soname_spec='${libname}${release}${shared_ext}$major' 13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13561 shlibpath_var=LD_LIBRARY_PATH 13562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13564 ;; 13565 13566rdos*) 13567 dynamic_linker=no 13568 ;; 13569 13570solaris*) 13571 version_type=linux 13572 need_lib_prefix=no 13573 need_version=no 13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13575 soname_spec='${libname}${release}${shared_ext}$major' 13576 shlibpath_var=LD_LIBRARY_PATH 13577 shlibpath_overrides_runpath=yes 13578 hardcode_into_libs=yes 13579 # ldd complains unless libraries are executable 13580 postinstall_cmds='chmod +x $lib' 13581 ;; 13582 13583sunos4*) 13584 version_type=sunos 13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13587 shlibpath_var=LD_LIBRARY_PATH 13588 shlibpath_overrides_runpath=yes 13589 if test "$with_gnu_ld" = yes; then 13590 need_lib_prefix=no 13591 fi 13592 need_version=yes 13593 ;; 13594 13595sysv4 | sysv4.3*) 13596 version_type=linux 13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13598 soname_spec='${libname}${release}${shared_ext}$major' 13599 shlibpath_var=LD_LIBRARY_PATH 13600 case $host_vendor in 13601 sni) 13602 shlibpath_overrides_runpath=no 13603 need_lib_prefix=no 13604 export_dynamic_flag_spec='${wl}-Blargedynsym' 13605 runpath_var=LD_RUN_PATH 13606 ;; 13607 siemens) 13608 need_lib_prefix=no 13609 ;; 13610 motorola) 13611 need_lib_prefix=no 13612 need_version=no 13613 shlibpath_overrides_runpath=no 13614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13615 ;; 13616 esac 13617 ;; 13618 13619sysv4*MP*) 13620 if test -d /usr/nec ;then 13621 version_type=linux 13622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13623 soname_spec='$libname${shared_ext}.$major' 13624 shlibpath_var=LD_LIBRARY_PATH 13625 fi 13626 ;; 13627 13628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13629 version_type=freebsd-elf 13630 need_lib_prefix=no 13631 need_version=no 13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13633 soname_spec='${libname}${release}${shared_ext}$major' 13634 shlibpath_var=LD_LIBRARY_PATH 13635 hardcode_into_libs=yes 13636 if test "$with_gnu_ld" = yes; then 13637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13638 shlibpath_overrides_runpath=no 13639 else 13640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13641 shlibpath_overrides_runpath=yes 13642 case $host_os in 13643 sco3.2v5*) 13644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13645 ;; 13646 esac 13647 fi 13648 sys_lib_dlsearch_path_spec='/usr/lib' 13649 ;; 13650 13651uts4*) 13652 version_type=linux 13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13654 soname_spec='${libname}${release}${shared_ext}$major' 13655 shlibpath_var=LD_LIBRARY_PATH 13656 ;; 13657 13658*) 13659 dynamic_linker=no 13660 ;; 13661esac 13662{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13663$as_echo "$dynamic_linker" >&6; } 13664test "$dynamic_linker" = no && can_build_shared=no 13665 13666variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13667if test "$GCC" = yes; then 13668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13669fi 13670 13671{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13672$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13673hardcode_action_CXX= 13674if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13675 test -n "$runpath_var_CXX" || \ 13676 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13677 13678 # We can hardcode non-existant directories. 13679 if test "$hardcode_direct_CXX" != no && 13680 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13681 # have to relink, otherwise we might link with an installed library 13682 # when we should be linking with a yet-to-be-installed one 13683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13684 test "$hardcode_minus_L_CXX" != no; then 13685 # Linking always hardcodes the temporary library directory. 13686 hardcode_action_CXX=relink 13687 else 13688 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13689 hardcode_action_CXX=immediate 13690 fi 13691else 13692 # We cannot hardcode anything, or else we can only hardcode existing 13693 # directories. 13694 hardcode_action_CXX=unsupported 13695fi 13696{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13697$as_echo "$hardcode_action_CXX" >&6; } 13698 13699if test "$hardcode_action_CXX" = relink; then 13700 # Fast installation is not supported 13701 enable_fast_install=no 13702elif test "$shlibpath_overrides_runpath" = yes || 13703 test "$enable_shared" = no; then 13704 # Fast installation is not necessary 13705 enable_fast_install=needless 13706fi 13707 13708 13709# The else clause should only fire when bootstrapping the 13710# libtool distribution, otherwise you forgot to ship ltmain.sh 13711# with your package, and you will get complaints that there are 13712# no rules to generate ltmain.sh. 13713if test -f "$ltmain"; then 13714 # See if we are running on zsh, and set the options which allow our commands through 13715 # without removal of \ escapes. 13716 if test -n "${ZSH_VERSION+set}" ; then 13717 setopt NO_GLOB_SUBST 13718 fi 13719 # Now quote all the things that may contain metacharacters while being 13720 # careful not to overquote the AC_SUBSTed values. We take copies of the 13721 # variables and quote the copies for generation of the libtool script. 13722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13723 SED SHELL STRIP \ 13724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13726 deplibs_check_method reload_flag reload_cmds need_locks \ 13727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13728 lt_cv_sys_global_symbol_to_c_name_address \ 13729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13730 old_postinstall_cmds old_postuninstall_cmds \ 13731 compiler_CXX \ 13732 CC_CXX \ 13733 LD_CXX \ 13734 lt_prog_compiler_wl_CXX \ 13735 lt_prog_compiler_pic_CXX \ 13736 lt_prog_compiler_static_CXX \ 13737 lt_prog_compiler_no_builtin_flag_CXX \ 13738 export_dynamic_flag_spec_CXX \ 13739 thread_safe_flag_spec_CXX \ 13740 whole_archive_flag_spec_CXX \ 13741 enable_shared_with_static_runtimes_CXX \ 13742 old_archive_cmds_CXX \ 13743 old_archive_from_new_cmds_CXX \ 13744 predep_objects_CXX \ 13745 postdep_objects_CXX \ 13746 predeps_CXX \ 13747 postdeps_CXX \ 13748 compiler_lib_search_path_CXX \ 13749 archive_cmds_CXX \ 13750 archive_expsym_cmds_CXX \ 13751 postinstall_cmds_CXX \ 13752 postuninstall_cmds_CXX \ 13753 old_archive_from_expsyms_cmds_CXX \ 13754 allow_undefined_flag_CXX \ 13755 no_undefined_flag_CXX \ 13756 export_symbols_cmds_CXX \ 13757 hardcode_libdir_flag_spec_CXX \ 13758 hardcode_libdir_flag_spec_ld_CXX \ 13759 hardcode_libdir_separator_CXX \ 13760 hardcode_automatic_CXX \ 13761 module_cmds_CXX \ 13762 module_expsym_cmds_CXX \ 13763 lt_cv_prog_compiler_c_o_CXX \ 13764 fix_srcfile_path_CXX \ 13765 exclude_expsyms_CXX \ 13766 include_expsyms_CXX; do 13767 13768 case $var in 13769 old_archive_cmds_CXX | \ 13770 old_archive_from_new_cmds_CXX | \ 13771 archive_cmds_CXX | \ 13772 archive_expsym_cmds_CXX | \ 13773 module_cmds_CXX | \ 13774 module_expsym_cmds_CXX | \ 13775 old_archive_from_expsyms_cmds_CXX | \ 13776 export_symbols_cmds_CXX | \ 13777 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13778 postinstall_cmds | postuninstall_cmds | \ 13779 old_postinstall_cmds | old_postuninstall_cmds | \ 13780 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13781 # Double-quote double-evaled strings. 13782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13783 ;; 13784 *) 13785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13786 ;; 13787 esac 13788 done 13789 13790 case $lt_echo in 13791 *'\$0 --fallback-echo"') 13792 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13793 ;; 13794 esac 13795 13796cfgfile="$ofile" 13797 13798 cat <<__EOF__ >> "$cfgfile" 13799# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13800 13801# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13802 13803# Shell to use when invoking shell scripts. 13804SHELL=$lt_SHELL 13805 13806# Whether or not to build shared libraries. 13807build_libtool_libs=$enable_shared 13808 13809# Whether or not to build static libraries. 13810build_old_libs=$enable_static 13811 13812# Whether or not to add -lc for building shared libraries. 13813build_libtool_need_lc=$archive_cmds_need_lc_CXX 13814 13815# Whether or not to disallow shared libs when runtime libs are static 13816allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13817 13818# Whether or not to optimize for fast installation. 13819fast_install=$enable_fast_install 13820 13821# The host system. 13822host_alias=$host_alias 13823host=$host 13824host_os=$host_os 13825 13826# The build system. 13827build_alias=$build_alias 13828build=$build 13829build_os=$build_os 13830 13831# An echo program that does not interpret backslashes. 13832echo=$lt_echo 13833 13834# The archiver. 13835AR=$lt_AR 13836AR_FLAGS=$lt_AR_FLAGS 13837 13838# A C compiler. 13839LTCC=$lt_LTCC 13840 13841# LTCC compiler flags. 13842LTCFLAGS=$lt_LTCFLAGS 13843 13844# A language-specific compiler. 13845CC=$lt_compiler_CXX 13846 13847# Is the compiler the GNU C compiler? 13848with_gcc=$GCC_CXX 13849 13850# An ERE matcher. 13851EGREP=$lt_EGREP 13852 13853# The linker used to build libraries. 13854LD=$lt_LD_CXX 13855 13856# Whether we need hard or soft links. 13857LN_S=$lt_LN_S 13858 13859# A BSD-compatible nm program. 13860NM=$lt_NM 13861 13862# A symbol stripping program 13863STRIP=$lt_STRIP 13864 13865# Used to examine libraries when file_magic_cmd begins "file" 13866MAGIC_CMD=$MAGIC_CMD 13867 13868# Used on cygwin: DLL creation program. 13869DLLTOOL="$DLLTOOL" 13870 13871# Used on cygwin: object dumper. 13872OBJDUMP="$OBJDUMP" 13873 13874# Used on cygwin: assembler. 13875AS="$AS" 13876 13877# The name of the directory that contains temporary libtool files. 13878objdir=$objdir 13879 13880# How to create reloadable object files. 13881reload_flag=$lt_reload_flag 13882reload_cmds=$lt_reload_cmds 13883 13884# How to pass a linker flag through the compiler. 13885wl=$lt_lt_prog_compiler_wl_CXX 13886 13887# Object file suffix (normally "o"). 13888objext="$ac_objext" 13889 13890# Old archive suffix (normally "a"). 13891libext="$libext" 13892 13893# Shared library suffix (normally ".so"). 13894shrext_cmds='$shrext_cmds' 13895 13896# Executable file suffix (normally ""). 13897exeext="$exeext" 13898 13899# Additional compiler flags for building library objects. 13900pic_flag=$lt_lt_prog_compiler_pic_CXX 13901pic_mode=$pic_mode 13902 13903# What is the maximum length of a command? 13904max_cmd_len=$lt_cv_sys_max_cmd_len 13905 13906# Does compiler simultaneously support -c and -o options? 13907compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13908 13909# Must we lock files when doing compilation? 13910need_locks=$lt_need_locks 13911 13912# Do we need the lib prefix for modules? 13913need_lib_prefix=$need_lib_prefix 13914 13915# Do we need a version for libraries? 13916need_version=$need_version 13917 13918# Whether dlopen is supported. 13919dlopen_support=$enable_dlopen 13920 13921# Whether dlopen of programs is supported. 13922dlopen_self=$enable_dlopen_self 13923 13924# Whether dlopen of statically linked programs is supported. 13925dlopen_self_static=$enable_dlopen_self_static 13926 13927# Compiler flag to prevent dynamic linking. 13928link_static_flag=$lt_lt_prog_compiler_static_CXX 13929 13930# Compiler flag to turn off builtin functions. 13931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13932 13933# Compiler flag to allow reflexive dlopens. 13934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13935 13936# Compiler flag to generate shared objects directly from archives. 13937whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13938 13939# Compiler flag to generate thread-safe objects. 13940thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13941 13942# Library versioning type. 13943version_type=$version_type 13944 13945# Format of library name prefix. 13946libname_spec=$lt_libname_spec 13947 13948# List of archive names. First name is the real one, the rest are links. 13949# The last name is the one that the linker finds with -lNAME. 13950library_names_spec=$lt_library_names_spec 13951 13952# The coded name of the library, if different from the real name. 13953soname_spec=$lt_soname_spec 13954 13955# Commands used to build and install an old-style archive. 13956RANLIB=$lt_RANLIB 13957old_archive_cmds=$lt_old_archive_cmds_CXX 13958old_postinstall_cmds=$lt_old_postinstall_cmds 13959old_postuninstall_cmds=$lt_old_postuninstall_cmds 13960 13961# Create an old-style archive from a shared archive. 13962old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13963 13964# Create a temporary old-style archive to link instead of a shared archive. 13965old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13966 13967# Commands used to build and install a shared archive. 13968archive_cmds=$lt_archive_cmds_CXX 13969archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13970postinstall_cmds=$lt_postinstall_cmds 13971postuninstall_cmds=$lt_postuninstall_cmds 13972 13973# Commands used to build a loadable module (assumed same as above if empty) 13974module_cmds=$lt_module_cmds_CXX 13975module_expsym_cmds=$lt_module_expsym_cmds_CXX 13976 13977# Commands to strip libraries. 13978old_striplib=$lt_old_striplib 13979striplib=$lt_striplib 13980 13981# Dependencies to place before the objects being linked to create a 13982# shared library. 13983predep_objects=$lt_predep_objects_CXX 13984 13985# Dependencies to place after the objects being linked to create a 13986# shared library. 13987postdep_objects=$lt_postdep_objects_CXX 13988 13989# Dependencies to place before the objects being linked to create a 13990# shared library. 13991predeps=$lt_predeps_CXX 13992 13993# Dependencies to place after the objects being linked to create a 13994# shared library. 13995postdeps=$lt_postdeps_CXX 13996 13997# The library search path used internally by the compiler when linking 13998# a shared library. 13999compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14000 14001# Method to check whether dependent libraries are shared objects. 14002deplibs_check_method=$lt_deplibs_check_method 14003 14004# Command to use when deplibs_check_method == file_magic. 14005file_magic_cmd=$lt_file_magic_cmd 14006 14007# Flag that allows shared libraries with undefined symbols to be built. 14008allow_undefined_flag=$lt_allow_undefined_flag_CXX 14009 14010# Flag that forces no undefined symbols. 14011no_undefined_flag=$lt_no_undefined_flag_CXX 14012 14013# Commands used to finish a libtool library installation in a directory. 14014finish_cmds=$lt_finish_cmds 14015 14016# Same as above, but a single script fragment to be evaled but not shown. 14017finish_eval=$lt_finish_eval 14018 14019# Take the output of nm and produce a listing of raw symbols and C names. 14020global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14021 14022# Transform the output of nm in a proper C declaration 14023global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14024 14025# Transform the output of nm in a C name address pair 14026global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14027 14028# This is the shared library runtime path variable. 14029runpath_var=$runpath_var 14030 14031# This is the shared library path variable. 14032shlibpath_var=$shlibpath_var 14033 14034# Is shlibpath searched before the hard-coded library search path? 14035shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14036 14037# How to hardcode a shared library path into an executable. 14038hardcode_action=$hardcode_action_CXX 14039 14040# Whether we should hardcode library paths into libraries. 14041hardcode_into_libs=$hardcode_into_libs 14042 14043# Flag to hardcode \$libdir into a binary during linking. 14044# This must work even if \$libdir does not exist. 14045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14046 14047# If ld is used when linking, flag to hardcode \$libdir into 14048# a binary during linking. This must work even if \$libdir does 14049# not exist. 14050hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14051 14052# Whether we need a single -rpath flag with a separated argument. 14053hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14054 14055# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14056# resulting binary. 14057hardcode_direct=$hardcode_direct_CXX 14058 14059# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14060# resulting binary. 14061hardcode_minus_L=$hardcode_minus_L_CXX 14062 14063# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14064# the resulting binary. 14065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14066 14067# Set to yes if building a shared library automatically hardcodes DIR into the library 14068# and all subsequent libraries and executables linked against it. 14069hardcode_automatic=$hardcode_automatic_CXX 14070 14071# Variables whose values should be saved in libtool wrapper scripts and 14072# restored at relink time. 14073variables_saved_for_relink="$variables_saved_for_relink" 14074 14075# Whether libtool must link a program against all its dependency libraries. 14076link_all_deplibs=$link_all_deplibs_CXX 14077 14078# Compile-time system search path for libraries 14079sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14080 14081# Run-time system search path for libraries 14082sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14083 14084# Fix the shell variable \$srcfile for the compiler. 14085fix_srcfile_path=$lt_fix_srcfile_path 14086 14087# Set to yes if exported symbols are required. 14088always_export_symbols=$always_export_symbols_CXX 14089 14090# The commands to list exported symbols. 14091export_symbols_cmds=$lt_export_symbols_cmds_CXX 14092 14093# The commands to extract the exported symbol list from a shared archive. 14094extract_expsyms_cmds=$lt_extract_expsyms_cmds 14095 14096# Symbols that should not be listed in the preloaded symbols. 14097exclude_expsyms=$lt_exclude_expsyms_CXX 14098 14099# Symbols that must always be exported. 14100include_expsyms=$lt_include_expsyms_CXX 14101 14102# ### END LIBTOOL TAG CONFIG: $tagname 14103 14104__EOF__ 14105 14106 14107else 14108 # If there is no Makefile yet, we rely on a make rule to execute 14109 # `config.status --recheck' to rerun these tests and create the 14110 # libtool script then. 14111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14112 if test -f "$ltmain_in"; then 14113 test -f Makefile && make "$ltmain" 14114 fi 14115fi 14116 14117 14118ac_ext=c 14119ac_cpp='$CPP $CPPFLAGS' 14120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14122ac_compiler_gnu=$ac_cv_c_compiler_gnu 14123 14124CC=$lt_save_CC 14125LDCXX=$LD 14126LD=$lt_save_LD 14127GCC=$lt_save_GCC 14128with_gnu_ldcxx=$with_gnu_ld 14129with_gnu_ld=$lt_save_with_gnu_ld 14130lt_cv_path_LDCXX=$lt_cv_path_LD 14131lt_cv_path_LD=$lt_save_path_LD 14132lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14133lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14134 14135 else 14136 tagname="" 14137 fi 14138 ;; 14139 14140 F77) 14141 if test -n "$F77" && test "X$F77" != "Xno"; then 14142 14143ac_ext=f 14144ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14145ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14146ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14147 14148 14149archive_cmds_need_lc_F77=no 14150allow_undefined_flag_F77= 14151always_export_symbols_F77=no 14152archive_expsym_cmds_F77= 14153export_dynamic_flag_spec_F77= 14154hardcode_direct_F77=no 14155hardcode_libdir_flag_spec_F77= 14156hardcode_libdir_flag_spec_ld_F77= 14157hardcode_libdir_separator_F77= 14158hardcode_minus_L_F77=no 14159hardcode_automatic_F77=no 14160module_cmds_F77= 14161module_expsym_cmds_F77= 14162link_all_deplibs_F77=unknown 14163old_archive_cmds_F77=$old_archive_cmds 14164no_undefined_flag_F77= 14165whole_archive_flag_spec_F77= 14166enable_shared_with_static_runtimes_F77=no 14167 14168# Source file extension for f77 test sources. 14169ac_ext=f 14170 14171# Object file extension for compiled f77 test sources. 14172objext=o 14173objext_F77=$objext 14174 14175# Code to be used in simple compile tests 14176lt_simple_compile_test_code="\ 14177 subroutine t 14178 return 14179 end 14180" 14181 14182# Code to be used in simple link tests 14183lt_simple_link_test_code="\ 14184 program t 14185 end 14186" 14187 14188# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14189 14190# If no C compiler was specified, use CC. 14191LTCC=${LTCC-"$CC"} 14192 14193# If no C compiler flags were specified, use CFLAGS. 14194LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14195 14196# Allow CC to be a program name with arguments. 14197compiler=$CC 14198 14199 14200# save warnings/boilerplate of simple test code 14201ac_outfile=conftest.$ac_objext 14202echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14204_lt_compiler_boilerplate=`cat conftest.err` 14205$rm conftest* 14206 14207ac_outfile=conftest.$ac_objext 14208echo "$lt_simple_link_test_code" >conftest.$ac_ext 14209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14210_lt_linker_boilerplate=`cat conftest.err` 14211$rm conftest* 14212 14213 14214# Allow CC to be a program name with arguments. 14215lt_save_CC="$CC" 14216CC=${F77-"f77"} 14217compiler=$CC 14218compiler_F77=$CC 14219for cc_temp in $compiler""; do 14220 case $cc_temp in 14221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14223 \-*) ;; 14224 *) break;; 14225 esac 14226done 14227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14228 14229 14230{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14231$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14232{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14233$as_echo "$can_build_shared" >&6; } 14234 14235{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14236$as_echo_n "checking whether to build shared libraries... " >&6; } 14237test "$can_build_shared" = "no" && enable_shared=no 14238 14239# On AIX, shared libraries and static libraries use the same namespace, and 14240# are all built from PIC. 14241case $host_os in 14242aix3*) 14243 test "$enable_shared" = yes && enable_static=no 14244 if test -n "$RANLIB"; then 14245 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14246 postinstall_cmds='$RANLIB $lib' 14247 fi 14248 ;; 14249aix4* | aix5*) 14250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14251 test "$enable_shared" = yes && enable_static=no 14252 fi 14253 ;; 14254esac 14255{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14256$as_echo "$enable_shared" >&6; } 14257 14258{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14259$as_echo_n "checking whether to build static libraries... " >&6; } 14260# Make sure either enable_shared or enable_static is yes. 14261test "$enable_shared" = yes || enable_static=yes 14262{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14263$as_echo "$enable_static" >&6; } 14264 14265GCC_F77="$G77" 14266LD_F77="$LD" 14267 14268lt_prog_compiler_wl_F77= 14269lt_prog_compiler_pic_F77= 14270lt_prog_compiler_static_F77= 14271 14272{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14273$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14274 14275 if test "$GCC" = yes; then 14276 lt_prog_compiler_wl_F77='-Wl,' 14277 lt_prog_compiler_static_F77='-static' 14278 14279 case $host_os in 14280 aix*) 14281 # All AIX code is PIC. 14282 if test "$host_cpu" = ia64; then 14283 # AIX 5 now supports IA64 processor 14284 lt_prog_compiler_static_F77='-Bstatic' 14285 fi 14286 ;; 14287 14288 amigaos*) 14289 # FIXME: we need at least 68020 code to build shared libraries, but 14290 # adding the `-m68020' flag to GCC prevents building anything better, 14291 # like `-m68040'. 14292 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14293 ;; 14294 14295 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14296 # PIC is the default for these OSes. 14297 ;; 14298 14299 mingw* | cygwin* | pw32* | os2*) 14300 # This hack is so that the source file can tell whether it is being 14301 # built for inclusion in a dll (and should export symbols for example). 14302 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14303 # (--disable-auto-import) libraries 14304 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14305 ;; 14306 14307 darwin* | rhapsody*) 14308 # PIC is the default on this platform 14309 # Common symbols not allowed in MH_DYLIB files 14310 lt_prog_compiler_pic_F77='-fno-common' 14311 ;; 14312 14313 interix[3-9]*) 14314 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14315 # Instead, we relocate shared libraries at runtime. 14316 ;; 14317 14318 msdosdjgpp*) 14319 # Just because we use GCC doesn't mean we suddenly get shared libraries 14320 # on systems that don't support them. 14321 lt_prog_compiler_can_build_shared_F77=no 14322 enable_shared=no 14323 ;; 14324 14325 sysv4*MP*) 14326 if test -d /usr/nec; then 14327 lt_prog_compiler_pic_F77=-Kconform_pic 14328 fi 14329 ;; 14330 14331 hpux*) 14332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14333 # not for PA HP-UX. 14334 case $host_cpu in 14335 hppa*64*|ia64*) 14336 # +Z the default 14337 ;; 14338 *) 14339 lt_prog_compiler_pic_F77='-fPIC' 14340 ;; 14341 esac 14342 ;; 14343 14344 *) 14345 lt_prog_compiler_pic_F77='-fPIC' 14346 ;; 14347 esac 14348 else 14349 # PORTME Check for flag to pass linker flags through the system compiler. 14350 case $host_os in 14351 aix*) 14352 lt_prog_compiler_wl_F77='-Wl,' 14353 if test "$host_cpu" = ia64; then 14354 # AIX 5 now supports IA64 processor 14355 lt_prog_compiler_static_F77='-Bstatic' 14356 else 14357 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14358 fi 14359 ;; 14360 darwin*) 14361 # PIC is the default on this platform 14362 # Common symbols not allowed in MH_DYLIB files 14363 case $cc_basename in 14364 xlc*) 14365 lt_prog_compiler_pic_F77='-qnocommon' 14366 lt_prog_compiler_wl_F77='-Wl,' 14367 ;; 14368 esac 14369 ;; 14370 14371 mingw* | cygwin* | pw32* | os2*) 14372 # This hack is so that the source file can tell whether it is being 14373 # built for inclusion in a dll (and should export symbols for example). 14374 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14375 ;; 14376 14377 hpux9* | hpux10* | hpux11*) 14378 lt_prog_compiler_wl_F77='-Wl,' 14379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14380 # not for PA HP-UX. 14381 case $host_cpu in 14382 hppa*64*|ia64*) 14383 # +Z the default 14384 ;; 14385 *) 14386 lt_prog_compiler_pic_F77='+Z' 14387 ;; 14388 esac 14389 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14390 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14391 ;; 14392 14393 irix5* | irix6* | nonstopux*) 14394 lt_prog_compiler_wl_F77='-Wl,' 14395 # PIC (with -KPIC) is the default. 14396 lt_prog_compiler_static_F77='-non_shared' 14397 ;; 14398 14399 newsos6) 14400 lt_prog_compiler_pic_F77='-KPIC' 14401 lt_prog_compiler_static_F77='-Bstatic' 14402 ;; 14403 14404 linux* | k*bsd*-gnu) 14405 case $cc_basename in 14406 icc* | ecc*) 14407 lt_prog_compiler_wl_F77='-Wl,' 14408 lt_prog_compiler_pic_F77='-KPIC' 14409 lt_prog_compiler_static_F77='-static' 14410 ;; 14411 pgcc* | pgf77* | pgf90* | pgf95*) 14412 # Portland Group compilers (*not* the Pentium gcc compiler, 14413 # which looks to be a dead project) 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 lt_prog_compiler_pic_F77='-fpic' 14416 lt_prog_compiler_static_F77='-Bstatic' 14417 ;; 14418 ccc*) 14419 lt_prog_compiler_wl_F77='-Wl,' 14420 # All Alpha code is PIC. 14421 lt_prog_compiler_static_F77='-non_shared' 14422 ;; 14423 *) 14424 case `$CC -V 2>&1 | sed 5q` in 14425 *Sun\ C*) 14426 # Sun C 5.9 14427 lt_prog_compiler_pic_F77='-KPIC' 14428 lt_prog_compiler_static_F77='-Bstatic' 14429 lt_prog_compiler_wl_F77='-Wl,' 14430 ;; 14431 *Sun\ F*) 14432 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14433 lt_prog_compiler_pic_F77='-KPIC' 14434 lt_prog_compiler_static_F77='-Bstatic' 14435 lt_prog_compiler_wl_F77='' 14436 ;; 14437 esac 14438 ;; 14439 esac 14440 ;; 14441 14442 osf3* | osf4* | osf5*) 14443 lt_prog_compiler_wl_F77='-Wl,' 14444 # All OSF/1 code is PIC. 14445 lt_prog_compiler_static_F77='-non_shared' 14446 ;; 14447 14448 rdos*) 14449 lt_prog_compiler_static_F77='-non_shared' 14450 ;; 14451 14452 solaris*) 14453 lt_prog_compiler_pic_F77='-KPIC' 14454 lt_prog_compiler_static_F77='-Bstatic' 14455 case $cc_basename in 14456 f77* | f90* | f95*) 14457 lt_prog_compiler_wl_F77='-Qoption ld ';; 14458 *) 14459 lt_prog_compiler_wl_F77='-Wl,';; 14460 esac 14461 ;; 14462 14463 sunos4*) 14464 lt_prog_compiler_wl_F77='-Qoption ld ' 14465 lt_prog_compiler_pic_F77='-PIC' 14466 lt_prog_compiler_static_F77='-Bstatic' 14467 ;; 14468 14469 sysv4 | sysv4.2uw2* | sysv4.3*) 14470 lt_prog_compiler_wl_F77='-Wl,' 14471 lt_prog_compiler_pic_F77='-KPIC' 14472 lt_prog_compiler_static_F77='-Bstatic' 14473 ;; 14474 14475 sysv4*MP*) 14476 if test -d /usr/nec ;then 14477 lt_prog_compiler_pic_F77='-Kconform_pic' 14478 lt_prog_compiler_static_F77='-Bstatic' 14479 fi 14480 ;; 14481 14482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14483 lt_prog_compiler_wl_F77='-Wl,' 14484 lt_prog_compiler_pic_F77='-KPIC' 14485 lt_prog_compiler_static_F77='-Bstatic' 14486 ;; 14487 14488 unicos*) 14489 lt_prog_compiler_wl_F77='-Wl,' 14490 lt_prog_compiler_can_build_shared_F77=no 14491 ;; 14492 14493 uts4*) 14494 lt_prog_compiler_pic_F77='-pic' 14495 lt_prog_compiler_static_F77='-Bstatic' 14496 ;; 14497 14498 *) 14499 lt_prog_compiler_can_build_shared_F77=no 14500 ;; 14501 esac 14502 fi 14503 14504{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14505$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14506 14507# 14508# Check to make sure the PIC flag actually works. 14509# 14510if test -n "$lt_prog_compiler_pic_F77"; then 14511 14512{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14514if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14515 $as_echo_n "(cached) " >&6 14516else 14517 lt_prog_compiler_pic_works_F77=no 14518 ac_outfile=conftest.$ac_objext 14519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14520 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14521 # Insert the option either (1) after the last *FLAGS variable, or 14522 # (2) before a word containing "conftest.", or (3) at the end. 14523 # Note that $ac_compile itself does not contain backslashes and begins 14524 # with a dollar sign (not a hyphen), so the echo should work correctly. 14525 # The option is referenced via a variable to avoid confusing sed. 14526 lt_compile=`echo "$ac_compile" | $SED \ 14527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14529 -e 's:$: $lt_compiler_flag:'` 14530 (eval echo "\"\$as_me:14530: $lt_compile\"" >&5) 14531 (eval "$lt_compile" 2>conftest.err) 14532 ac_status=$? 14533 cat conftest.err >&5 14534 echo "$as_me:14534: \$? = $ac_status" >&5 14535 if (exit $ac_status) && test -s "$ac_outfile"; then 14536 # The compiler can only warn and ignore the option if not recognized 14537 # So say no if there are warnings other than the usual output. 14538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14541 lt_prog_compiler_pic_works_F77=yes 14542 fi 14543 fi 14544 $rm conftest* 14545 14546fi 14547{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14548$as_echo "$lt_prog_compiler_pic_works_F77" >&6; } 14549 14550if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14551 case $lt_prog_compiler_pic_F77 in 14552 "" | " "*) ;; 14553 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14554 esac 14555else 14556 lt_prog_compiler_pic_F77= 14557 lt_prog_compiler_can_build_shared_F77=no 14558fi 14559 14560fi 14561case $host_os in 14562 # For platforms which do not support PIC, -DPIC is meaningless: 14563 *djgpp*) 14564 lt_prog_compiler_pic_F77= 14565 ;; 14566 *) 14567 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14568 ;; 14569esac 14570 14571# 14572# Check to make sure the static flag actually works. 14573# 14574wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14575{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14576$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14577if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14578 $as_echo_n "(cached) " >&6 14579else 14580 lt_prog_compiler_static_works_F77=no 14581 save_LDFLAGS="$LDFLAGS" 14582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14583 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14585 # The linker can only warn and ignore the option if not recognized 14586 # So say no if there are warnings 14587 if test -s conftest.err; then 14588 # Append any errors to the config.log. 14589 cat conftest.err 1>&5 14590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14592 if diff conftest.exp conftest.er2 >/dev/null; then 14593 lt_prog_compiler_static_works_F77=yes 14594 fi 14595 else 14596 lt_prog_compiler_static_works_F77=yes 14597 fi 14598 fi 14599 $rm conftest* 14600 LDFLAGS="$save_LDFLAGS" 14601 14602fi 14603{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14604$as_echo "$lt_prog_compiler_static_works_F77" >&6; } 14605 14606if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14607 : 14608else 14609 lt_prog_compiler_static_F77= 14610fi 14611 14612 14613{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14615if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14616 $as_echo_n "(cached) " >&6 14617else 14618 lt_cv_prog_compiler_c_o_F77=no 14619 $rm -r conftest 2>/dev/null 14620 mkdir conftest 14621 cd conftest 14622 mkdir out 14623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14624 14625 lt_compiler_flag="-o out/conftest2.$ac_objext" 14626 # Insert the option either (1) after the last *FLAGS variable, or 14627 # (2) before a word containing "conftest.", or (3) at the end. 14628 # Note that $ac_compile itself does not contain backslashes and begins 14629 # with a dollar sign (not a hyphen), so the echo should work correctly. 14630 lt_compile=`echo "$ac_compile" | $SED \ 14631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14633 -e 's:$: $lt_compiler_flag:'` 14634 (eval echo "\"\$as_me:14634: $lt_compile\"" >&5) 14635 (eval "$lt_compile" 2>out/conftest.err) 14636 ac_status=$? 14637 cat out/conftest.err >&5 14638 echo "$as_me:14638: \$? = $ac_status" >&5 14639 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14640 then 14641 # The compiler can only warn and ignore the option if not recognized 14642 # So say no if there are warnings 14643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14646 lt_cv_prog_compiler_c_o_F77=yes 14647 fi 14648 fi 14649 chmod u+w . 2>&5 14650 $rm conftest* 14651 # SGI C++ compiler will create directory out/ii_files/ for 14652 # template instantiation 14653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14654 $rm out/* && rmdir out 14655 cd .. 14656 rmdir conftest 14657 $rm conftest* 14658 14659fi 14660{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14661$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14662 14663 14664hard_links="nottested" 14665if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14666 # do not overwrite the value of need_locks provided by the user 14667 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14668$as_echo_n "checking if we can lock with hard links... " >&6; } 14669 hard_links=yes 14670 $rm conftest* 14671 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14672 touch conftest.a 14673 ln conftest.a conftest.b 2>&5 || hard_links=no 14674 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14675 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14676$as_echo "$hard_links" >&6; } 14677 if test "$hard_links" = no; then 14678 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14679$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14680 need_locks=warn 14681 fi 14682else 14683 need_locks=no 14684fi 14685 14686{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14687$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14688 14689 runpath_var= 14690 allow_undefined_flag_F77= 14691 enable_shared_with_static_runtimes_F77=no 14692 archive_cmds_F77= 14693 archive_expsym_cmds_F77= 14694 old_archive_From_new_cmds_F77= 14695 old_archive_from_expsyms_cmds_F77= 14696 export_dynamic_flag_spec_F77= 14697 whole_archive_flag_spec_F77= 14698 thread_safe_flag_spec_F77= 14699 hardcode_libdir_flag_spec_F77= 14700 hardcode_libdir_flag_spec_ld_F77= 14701 hardcode_libdir_separator_F77= 14702 hardcode_direct_F77=no 14703 hardcode_minus_L_F77=no 14704 hardcode_shlibpath_var_F77=unsupported 14705 link_all_deplibs_F77=unknown 14706 hardcode_automatic_F77=no 14707 module_cmds_F77= 14708 module_expsym_cmds_F77= 14709 always_export_symbols_F77=no 14710 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14711 # include_expsyms should be a list of space-separated symbols to be *always* 14712 # included in the symbol list 14713 include_expsyms_F77= 14714 # exclude_expsyms can be an extended regexp of symbols to exclude 14715 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14717 # as well as any symbol that contains `d'. 14718 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14720 # platforms (ab)use it in PIC code, but their linkers get confused if 14721 # the symbol is explicitly referenced. Since portable code cannot 14722 # rely on this symbol name, it's probably fine to never include it in 14723 # preloaded symbol tables. 14724 extract_expsyms_cmds= 14725 # Just being paranoid about ensuring that cc_basename is set. 14726 for cc_temp in $compiler""; do 14727 case $cc_temp in 14728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14730 \-*) ;; 14731 *) break;; 14732 esac 14733done 14734cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14735 14736 case $host_os in 14737 cygwin* | mingw* | pw32*) 14738 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14739 # When not using gcc, we currently assume that we are using 14740 # Microsoft Visual C++. 14741 if test "$GCC" != yes; then 14742 with_gnu_ld=no 14743 fi 14744 ;; 14745 interix*) 14746 # we just hope/assume this is gcc and not c89 (= MSVC++) 14747 with_gnu_ld=yes 14748 ;; 14749 openbsd*) 14750 with_gnu_ld=no 14751 ;; 14752 esac 14753 14754 ld_shlibs_F77=yes 14755 if test "$with_gnu_ld" = yes; then 14756 # If archive_cmds runs LD, not CC, wlarc should be empty 14757 wlarc='${wl}' 14758 14759 # Set some defaults for GNU ld with shared library support. These 14760 # are reset later if shared libraries are not supported. Putting them 14761 # here allows them to be overridden if necessary. 14762 runpath_var=LD_RUN_PATH 14763 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14764 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14765 # ancient GNU ld didn't support --whole-archive et. al. 14766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14767 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14768 else 14769 whole_archive_flag_spec_F77= 14770 fi 14771 supports_anon_versioning=no 14772 case `$LD -v 2>/dev/null` in 14773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14776 *\ 2.11.*) ;; # other 2.11 versions 14777 *) supports_anon_versioning=yes ;; 14778 esac 14779 14780 # See if GNU ld supports shared libraries. 14781 case $host_os in 14782 aix3* | aix4* | aix5*) 14783 # On AIX/PPC, the GNU linker is very broken 14784 if test "$host_cpu" != ia64; then 14785 ld_shlibs_F77=no 14786 cat <<EOF 1>&2 14787 14788*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14789*** to be unable to reliably create shared libraries on AIX. 14790*** Therefore, libtool is disabling shared libraries support. If you 14791*** really care for shared libraries, you may want to modify your PATH 14792*** so that a non-GNU linker is found, and then restart. 14793 14794EOF 14795 fi 14796 ;; 14797 14798 amigaos*) 14799 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)' 14800 hardcode_libdir_flag_spec_F77='-L$libdir' 14801 hardcode_minus_L_F77=yes 14802 14803 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14804 # that the semantics of dynamic libraries on AmigaOS, at least up 14805 # to version 4, is to share data among multiple programs linked 14806 # with the same dynamic library. Since this doesn't match the 14807 # behavior of shared libraries on other platforms, we can't use 14808 # them. 14809 ld_shlibs_F77=no 14810 ;; 14811 14812 beos*) 14813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14814 allow_undefined_flag_F77=unsupported 14815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14816 # support --undefined. This deserves some investigation. FIXME 14817 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14818 else 14819 ld_shlibs_F77=no 14820 fi 14821 ;; 14822 14823 cygwin* | mingw* | pw32*) 14824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14825 # as there is no search path for DLLs. 14826 hardcode_libdir_flag_spec_F77='-L$libdir' 14827 allow_undefined_flag_F77=unsupported 14828 always_export_symbols_F77=no 14829 enable_shared_with_static_runtimes_F77=yes 14830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14831 14832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14834 # If the export-symbols file already is a .def file (1st line 14835 # is EXPORTS), use it as is; otherwise, prepend... 14836 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14837 cp $export_symbols $output_objdir/$soname.def; 14838 else 14839 echo EXPORTS > $output_objdir/$soname.def; 14840 cat $export_symbols >> $output_objdir/$soname.def; 14841 fi~ 14842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14843 else 14844 ld_shlibs_F77=no 14845 fi 14846 ;; 14847 14848 interix[3-9]*) 14849 hardcode_direct_F77=no 14850 hardcode_shlibpath_var_F77=no 14851 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14852 export_dynamic_flag_spec_F77='${wl}-E' 14853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14854 # Instead, shared libraries are loaded at an image base (0x10000000 by 14855 # default) and relocated if they conflict, which is a slow very memory 14856 # consuming and fragmenting process. To avoid this, we pick a random, 14857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14858 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14859 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' 14860 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' 14861 ;; 14862 14863 gnu* | linux* | k*bsd*-gnu) 14864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14865 tmp_addflag= 14866 case $cc_basename,$host_cpu in 14867 pgcc*) # Portland Group C compiler 14868 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' 14869 tmp_addflag=' $pic_flag' 14870 ;; 14871 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14872 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' 14873 tmp_addflag=' $pic_flag -Mnomain' ;; 14874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14875 tmp_addflag=' -i_dynamic' ;; 14876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14877 tmp_addflag=' -i_dynamic -nofor_main' ;; 14878 ifc* | ifort*) # Intel Fortran compiler 14879 tmp_addflag=' -nofor_main' ;; 14880 esac 14881 case `$CC -V 2>&1 | sed 5q` in 14882 *Sun\ C*) # Sun C 5.9 14883 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' 14884 tmp_sharedflag='-G' ;; 14885 *Sun\ F*) # Sun Fortran 8.3 14886 tmp_sharedflag='-G' ;; 14887 *) 14888 tmp_sharedflag='-shared' ;; 14889 esac 14890 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14891 14892 if test $supports_anon_versioning = yes; then 14893 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14895 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14896 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14897 fi 14898 else 14899 ld_shlibs_F77=no 14900 fi 14901 ;; 14902 14903 netbsd*) 14904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14905 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14906 wlarc= 14907 else 14908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14910 fi 14911 ;; 14912 14913 solaris*) 14914 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14915 ld_shlibs_F77=no 14916 cat <<EOF 1>&2 14917 14918*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14919*** create shared libraries on Solaris systems. Therefore, libtool 14920*** is disabling shared libraries support. We urge you to upgrade GNU 14921*** binutils to release 2.9.1 or newer. Another option is to modify 14922*** your PATH or compiler configuration so that the native linker is 14923*** used, and then restart. 14924 14925EOF 14926 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14927 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14928 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14929 else 14930 ld_shlibs_F77=no 14931 fi 14932 ;; 14933 14934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14935 case `$LD -v 2>&1` in 14936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14937 ld_shlibs_F77=no 14938 cat <<_LT_EOF 1>&2 14939 14940*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14941*** reliably create shared libraries on SCO systems. Therefore, libtool 14942*** is disabling shared libraries support. We urge you to upgrade GNU 14943*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14944*** your PATH or compiler configuration so that the native linker is 14945*** used, and then restart. 14946 14947_LT_EOF 14948 ;; 14949 *) 14950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14951 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14952 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14953 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14954 else 14955 ld_shlibs_F77=no 14956 fi 14957 ;; 14958 esac 14959 ;; 14960 14961 sunos4*) 14962 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14963 wlarc= 14964 hardcode_direct_F77=yes 14965 hardcode_shlibpath_var_F77=no 14966 ;; 14967 14968 *) 14969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14970 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14971 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14972 else 14973 ld_shlibs_F77=no 14974 fi 14975 ;; 14976 esac 14977 14978 if test "$ld_shlibs_F77" = no; then 14979 runpath_var= 14980 hardcode_libdir_flag_spec_F77= 14981 export_dynamic_flag_spec_F77= 14982 whole_archive_flag_spec_F77= 14983 fi 14984 else 14985 # PORTME fill in a description of your system's linker (not GNU ld) 14986 case $host_os in 14987 aix3*) 14988 allow_undefined_flag_F77=unsupported 14989 always_export_symbols_F77=yes 14990 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' 14991 # Note: this linker hardcodes the directories in LIBPATH if there 14992 # are no directories specified by -L. 14993 hardcode_minus_L_F77=yes 14994 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14995 # Neither direct hardcoding nor static linking is supported with a 14996 # broken collect2. 14997 hardcode_direct_F77=unsupported 14998 fi 14999 ;; 15000 15001 aix4* | aix5*) 15002 if test "$host_cpu" = ia64; then 15003 # On IA64, the linker does run time linking by default, so we don't 15004 # have to do anything special. 15005 aix_use_runtimelinking=no 15006 exp_sym_flag='-Bexport' 15007 no_entry_flag="" 15008 else 15009 # If we're using GNU nm, then we don't want the "-C" option. 15010 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15012 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' 15013 else 15014 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' 15015 fi 15016 aix_use_runtimelinking=no 15017 15018 # Test if we are trying to use run time linking or normal 15019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15020 # need to do runtime linking. 15021 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15022 for ld_flag in $LDFLAGS; do 15023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15024 aix_use_runtimelinking=yes 15025 break 15026 fi 15027 done 15028 ;; 15029 esac 15030 15031 exp_sym_flag='-bexport' 15032 no_entry_flag='-bnoentry' 15033 fi 15034 15035 # When large executables or shared objects are built, AIX ld can 15036 # have problems creating the table of contents. If linking a library 15037 # or program results in "error TOC overflow" add -mminimal-toc to 15038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15040 15041 archive_cmds_F77='' 15042 hardcode_direct_F77=yes 15043 hardcode_libdir_separator_F77=':' 15044 link_all_deplibs_F77=yes 15045 15046 if test "$GCC" = yes; then 15047 case $host_os in aix4.[012]|aix4.[012].*) 15048 # We only want to do this on AIX 4.2 and lower, the check 15049 # below for broken collect2 doesn't work under 4.3+ 15050 collect2name=`${CC} -print-prog-name=collect2` 15051 if test -f "$collect2name" && \ 15052 strings "$collect2name" | grep resolve_lib_name >/dev/null 15053 then 15054 # We have reworked collect2 15055 : 15056 else 15057 # We have old collect2 15058 hardcode_direct_F77=unsupported 15059 # It fails to find uninstalled libraries when the uninstalled 15060 # path is not listed in the libpath. Setting hardcode_minus_L 15061 # to unsupported forces relinking 15062 hardcode_minus_L_F77=yes 15063 hardcode_libdir_flag_spec_F77='-L$libdir' 15064 hardcode_libdir_separator_F77= 15065 fi 15066 ;; 15067 esac 15068 shared_flag='-shared' 15069 if test "$aix_use_runtimelinking" = yes; then 15070 shared_flag="$shared_flag "'${wl}-G' 15071 fi 15072 else 15073 # not using gcc 15074 if test "$host_cpu" = ia64; then 15075 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15076 # chokes on -Wl,-G. The following line is correct: 15077 shared_flag='-G' 15078 else 15079 if test "$aix_use_runtimelinking" = yes; then 15080 shared_flag='${wl}-G' 15081 else 15082 shared_flag='${wl}-bM:SRE' 15083 fi 15084 fi 15085 fi 15086 15087 # It seems that -bexpall does not export symbols beginning with 15088 # underscore (_), so it is better to generate a list of symbols to export. 15089 always_export_symbols_F77=yes 15090 if test "$aix_use_runtimelinking" = yes; then 15091 # Warning - without using the other runtime loading flags (-brtl), 15092 # -berok will link without error, but may produce a broken library. 15093 allow_undefined_flag_F77='-berok' 15094 # Determine the default libpath from the value encoded in an empty executable. 15095 cat >conftest.$ac_ext <<_ACEOF 15096 program main 15097 15098 end 15099_ACEOF 15100rm -f conftest.$ac_objext conftest$ac_exeext 15101if { (ac_try="$ac_link" 15102case "(($ac_try" in 15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15104 *) ac_try_echo=$ac_try;; 15105esac 15106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15107$as_echo "$ac_try_echo") >&5 15108 (eval "$ac_link") 2>conftest.er1 15109 ac_status=$? 15110 grep -v '^ *+' conftest.er1 >conftest.err 15111 rm -f conftest.er1 15112 cat conftest.err >&5 15113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15114 (exit $ac_status); } && { 15115 test -z "$ac_f77_werror_flag" || 15116 test ! -s conftest.err 15117 } && test -s conftest$ac_exeext && { 15118 test "$cross_compiling" = yes || 15119 $as_test_x conftest$ac_exeext 15120 }; then 15121 15122lt_aix_libpath_sed=' 15123 /Import File Strings/,/^$/ { 15124 /^0/ { 15125 s/^0 *\(.*\)$/\1/ 15126 p 15127 } 15128 }' 15129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15130# Check for a 64-bit object if we didn't find anything. 15131if test -z "$aix_libpath"; then 15132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15133fi 15134else 15135 $as_echo "$as_me: failed program was:" >&5 15136sed 's/^/| /' conftest.$ac_ext >&5 15137 15138 15139fi 15140 15141rm -rf conftest.dSYM 15142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15143 conftest$ac_exeext conftest.$ac_ext 15144if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15145 15146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15147 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" 15148 else 15149 if test "$host_cpu" = ia64; then 15150 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15151 allow_undefined_flag_F77="-z nodefs" 15152 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" 15153 else 15154 # Determine the default libpath from the value encoded in an empty executable. 15155 cat >conftest.$ac_ext <<_ACEOF 15156 program main 15157 15158 end 15159_ACEOF 15160rm -f conftest.$ac_objext conftest$ac_exeext 15161if { (ac_try="$ac_link" 15162case "(($ac_try" in 15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15164 *) ac_try_echo=$ac_try;; 15165esac 15166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15167$as_echo "$ac_try_echo") >&5 15168 (eval "$ac_link") 2>conftest.er1 15169 ac_status=$? 15170 grep -v '^ *+' conftest.er1 >conftest.err 15171 rm -f conftest.er1 15172 cat conftest.err >&5 15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15174 (exit $ac_status); } && { 15175 test -z "$ac_f77_werror_flag" || 15176 test ! -s conftest.err 15177 } && test -s conftest$ac_exeext && { 15178 test "$cross_compiling" = yes || 15179 $as_test_x conftest$ac_exeext 15180 }; then 15181 15182lt_aix_libpath_sed=' 15183 /Import File Strings/,/^$/ { 15184 /^0/ { 15185 s/^0 *\(.*\)$/\1/ 15186 p 15187 } 15188 }' 15189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15190# Check for a 64-bit object if we didn't find anything. 15191if test -z "$aix_libpath"; then 15192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15193fi 15194else 15195 $as_echo "$as_me: failed program was:" >&5 15196sed 's/^/| /' conftest.$ac_ext >&5 15197 15198 15199fi 15200 15201rm -rf conftest.dSYM 15202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15203 conftest$ac_exeext conftest.$ac_ext 15204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15205 15206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15207 # Warning - without using the other run time loading flags, 15208 # -berok will link without error, but may produce a broken library. 15209 no_undefined_flag_F77=' ${wl}-bernotok' 15210 allow_undefined_flag_F77=' ${wl}-berok' 15211 # Exported symbols can be pulled into shared objects from archives 15212 whole_archive_flag_spec_F77='$convenience' 15213 archive_cmds_need_lc_F77=yes 15214 # This is similar to how AIX traditionally builds its shared libraries. 15215 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' 15216 fi 15217 fi 15218 ;; 15219 15220 amigaos*) 15221 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)' 15222 hardcode_libdir_flag_spec_F77='-L$libdir' 15223 hardcode_minus_L_F77=yes 15224 # see comment about different semantics on the GNU ld section 15225 ld_shlibs_F77=no 15226 ;; 15227 15228 bsdi[45]*) 15229 export_dynamic_flag_spec_F77=-rdynamic 15230 ;; 15231 15232 cygwin* | mingw* | pw32*) 15233 # When not using gcc, we currently assume that we are using 15234 # Microsoft Visual C++. 15235 # hardcode_libdir_flag_spec is actually meaningless, as there is 15236 # no search path for DLLs. 15237 hardcode_libdir_flag_spec_F77=' ' 15238 allow_undefined_flag_F77=unsupported 15239 # Tell ltmain to make .lib files, not .a files. 15240 libext=lib 15241 # Tell ltmain to make .dll files, not .so files. 15242 shrext_cmds=".dll" 15243 # FIXME: Setting linknames here is a bad hack. 15244 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15245 # The linker will automatically build a .lib file if we build a DLL. 15246 old_archive_From_new_cmds_F77='true' 15247 # FIXME: Should let the user specify the lib program. 15248 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15249 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15250 enable_shared_with_static_runtimes_F77=yes 15251 ;; 15252 15253 darwin* | rhapsody*) 15254 case $host_os in 15255 rhapsody* | darwin1.[012]) 15256 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15257 ;; 15258 *) # Darwin 1.3 on 15259 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15260 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15261 else 15262 case ${MACOSX_DEPLOYMENT_TARGET} in 15263 10.[012]) 15264 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15265 ;; 15266 10.*) 15267 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15268 ;; 15269 esac 15270 fi 15271 ;; 15272 esac 15273 archive_cmds_need_lc_F77=no 15274 hardcode_direct_F77=no 15275 hardcode_automatic_F77=yes 15276 hardcode_shlibpath_var_F77=unsupported 15277 whole_archive_flag_spec_F77='' 15278 link_all_deplibs_F77=yes 15279 if test "$GCC" = yes ; then 15280 output_verbose_link_cmd='echo' 15281 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15282 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15283 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15284 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}' 15285 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}' 15286 else 15287 case $cc_basename in 15288 xlc*) 15289 output_verbose_link_cmd='echo' 15290 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15291 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15292 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15293 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}' 15294 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}' 15295 ;; 15296 *) 15297 ld_shlibs_F77=no 15298 ;; 15299 esac 15300 fi 15301 ;; 15302 15303 dgux*) 15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15305 hardcode_libdir_flag_spec_F77='-L$libdir' 15306 hardcode_shlibpath_var_F77=no 15307 ;; 15308 15309 freebsd1*) 15310 ld_shlibs_F77=no 15311 ;; 15312 15313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15314 # support. Future versions do this automatically, but an explicit c++rt0.o 15315 # does not break anything, and helps significantly (at the cost of a little 15316 # extra space). 15317 freebsd2.2*) 15318 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15319 hardcode_libdir_flag_spec_F77='-R$libdir' 15320 hardcode_direct_F77=yes 15321 hardcode_shlibpath_var_F77=no 15322 ;; 15323 15324 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15325 freebsd2*) 15326 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15327 hardcode_direct_F77=yes 15328 hardcode_minus_L_F77=yes 15329 hardcode_shlibpath_var_F77=no 15330 ;; 15331 15332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15333 freebsd* | dragonfly*) 15334 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15335 hardcode_libdir_flag_spec_F77='-R$libdir' 15336 hardcode_direct_F77=yes 15337 hardcode_shlibpath_var_F77=no 15338 ;; 15339 15340 hpux9*) 15341 if test "$GCC" = yes; then 15342 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' 15343 else 15344 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' 15345 fi 15346 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15347 hardcode_libdir_separator_F77=: 15348 hardcode_direct_F77=yes 15349 15350 # hardcode_minus_L: Not really in the search PATH, 15351 # but as the default location of the library. 15352 hardcode_minus_L_F77=yes 15353 export_dynamic_flag_spec_F77='${wl}-E' 15354 ;; 15355 15356 hpux10*) 15357 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15359 else 15360 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15361 fi 15362 if test "$with_gnu_ld" = no; then 15363 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15364 hardcode_libdir_separator_F77=: 15365 15366 hardcode_direct_F77=yes 15367 export_dynamic_flag_spec_F77='${wl}-E' 15368 15369 # hardcode_minus_L: Not really in the search PATH, 15370 # but as the default location of the library. 15371 hardcode_minus_L_F77=yes 15372 fi 15373 ;; 15374 15375 hpux11*) 15376 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15377 case $host_cpu in 15378 hppa*64*) 15379 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15380 ;; 15381 ia64*) 15382 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15383 ;; 15384 *) 15385 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15386 ;; 15387 esac 15388 else 15389 case $host_cpu in 15390 hppa*64*) 15391 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15392 ;; 15393 ia64*) 15394 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15395 ;; 15396 *) 15397 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15398 ;; 15399 esac 15400 fi 15401 if test "$with_gnu_ld" = no; then 15402 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15403 hardcode_libdir_separator_F77=: 15404 15405 case $host_cpu in 15406 hppa*64*|ia64*) 15407 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15408 hardcode_direct_F77=no 15409 hardcode_shlibpath_var_F77=no 15410 ;; 15411 *) 15412 hardcode_direct_F77=yes 15413 export_dynamic_flag_spec_F77='${wl}-E' 15414 15415 # hardcode_minus_L: Not really in the search PATH, 15416 # but as the default location of the library. 15417 hardcode_minus_L_F77=yes 15418 ;; 15419 esac 15420 fi 15421 ;; 15422 15423 irix5* | irix6* | nonstopux*) 15424 if test "$GCC" = yes; then 15425 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' 15426 else 15427 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' 15428 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15429 fi 15430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15431 hardcode_libdir_separator_F77=: 15432 link_all_deplibs_F77=yes 15433 ;; 15434 15435 netbsd*) 15436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15437 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15438 else 15439 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15440 fi 15441 hardcode_libdir_flag_spec_F77='-R$libdir' 15442 hardcode_direct_F77=yes 15443 hardcode_shlibpath_var_F77=no 15444 ;; 15445 15446 newsos6) 15447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15448 hardcode_direct_F77=yes 15449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15450 hardcode_libdir_separator_F77=: 15451 hardcode_shlibpath_var_F77=no 15452 ;; 15453 15454 openbsd*) 15455 if test -f /usr/libexec/ld.so; then 15456 hardcode_direct_F77=yes 15457 hardcode_shlibpath_var_F77=no 15458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15459 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15460 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15461 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15462 export_dynamic_flag_spec_F77='${wl}-E' 15463 else 15464 case $host_os in 15465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15466 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15467 hardcode_libdir_flag_spec_F77='-R$libdir' 15468 ;; 15469 *) 15470 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15471 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15472 ;; 15473 esac 15474 fi 15475 else 15476 ld_shlibs_F77=no 15477 fi 15478 ;; 15479 15480 os2*) 15481 hardcode_libdir_flag_spec_F77='-L$libdir' 15482 hardcode_minus_L_F77=yes 15483 allow_undefined_flag_F77=unsupported 15484 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' 15485 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15486 ;; 15487 15488 osf3*) 15489 if test "$GCC" = yes; then 15490 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15491 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' 15492 else 15493 allow_undefined_flag_F77=' -expect_unresolved \*' 15494 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' 15495 fi 15496 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15497 hardcode_libdir_separator_F77=: 15498 ;; 15499 15500 osf4* | osf5*) # as osf3* with the addition of -msym flag 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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15504 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15505 else 15506 allow_undefined_flag_F77=' -expect_unresolved \*' 15507 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' 15508 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~ 15509 $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' 15510 15511 # Both c and cxx compiler support -rpath directly 15512 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15513 fi 15514 hardcode_libdir_separator_F77=: 15515 ;; 15516 15517 solaris*) 15518 no_undefined_flag_F77=' -z text' 15519 if test "$GCC" = yes; then 15520 wlarc='${wl}' 15521 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15522 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15523 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15524 else 15525 wlarc='' 15526 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15527 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15529 fi 15530 hardcode_libdir_flag_spec_F77='-R$libdir' 15531 hardcode_shlibpath_var_F77=no 15532 case $host_os in 15533 solaris2.[0-5] | solaris2.[0-5].*) ;; 15534 *) 15535 # The compiler driver will combine and reorder linker options, 15536 # but understands `-z linker_flag'. GCC discards it without `$wl', 15537 # but is careful enough not to reorder. 15538 # Supported since Solaris 2.6 (maybe 2.5.1?) 15539 if test "$GCC" = yes; then 15540 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15541 else 15542 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15543 fi 15544 ;; 15545 esac 15546 link_all_deplibs_F77=yes 15547 ;; 15548 15549 sunos4*) 15550 if test "x$host_vendor" = xsequent; then 15551 # Use $CC to link under sequent, because it throws in some extra .o 15552 # files that make .init and .fini sections work. 15553 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15554 else 15555 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15556 fi 15557 hardcode_libdir_flag_spec_F77='-L$libdir' 15558 hardcode_direct_F77=yes 15559 hardcode_minus_L_F77=yes 15560 hardcode_shlibpath_var_F77=no 15561 ;; 15562 15563 sysv4) 15564 case $host_vendor in 15565 sni) 15566 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15567 hardcode_direct_F77=yes # is this really true??? 15568 ;; 15569 siemens) 15570 ## LD is ld it makes a PLAMLIB 15571 ## CC just makes a GrossModule. 15572 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15573 reload_cmds_F77='$CC -r -o $output$reload_objs' 15574 hardcode_direct_F77=no 15575 ;; 15576 motorola) 15577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15578 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15579 ;; 15580 esac 15581 runpath_var='LD_RUN_PATH' 15582 hardcode_shlibpath_var_F77=no 15583 ;; 15584 15585 sysv4.3*) 15586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15587 hardcode_shlibpath_var_F77=no 15588 export_dynamic_flag_spec_F77='-Bexport' 15589 ;; 15590 15591 sysv4*MP*) 15592 if test -d /usr/nec; then 15593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15594 hardcode_shlibpath_var_F77=no 15595 runpath_var=LD_RUN_PATH 15596 hardcode_runpath_var=yes 15597 ld_shlibs_F77=yes 15598 fi 15599 ;; 15600 15601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15602 no_undefined_flag_F77='${wl}-z,text' 15603 archive_cmds_need_lc_F77=no 15604 hardcode_shlibpath_var_F77=no 15605 runpath_var='LD_RUN_PATH' 15606 15607 if test "$GCC" = yes; then 15608 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15609 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15610 else 15611 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15612 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15613 fi 15614 ;; 15615 15616 sysv5* | sco3.2v5* | sco5v6*) 15617 # Note: We can NOT use -z defs as we might desire, because we do not 15618 # link with -lc, and that would cause any symbols used from libc to 15619 # always be unresolved, which means just about no library would 15620 # ever link correctly. If we're not using GNU ld we use -z text 15621 # though, which does catch some bad symbols but isn't as heavy-handed 15622 # as -z defs. 15623 no_undefined_flag_F77='${wl}-z,text' 15624 allow_undefined_flag_F77='${wl}-z,nodefs' 15625 archive_cmds_need_lc_F77=no 15626 hardcode_shlibpath_var_F77=no 15627 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15628 hardcode_libdir_separator_F77=':' 15629 link_all_deplibs_F77=yes 15630 export_dynamic_flag_spec_F77='${wl}-Bexport' 15631 runpath_var='LD_RUN_PATH' 15632 15633 if test "$GCC" = yes; then 15634 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15635 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15636 else 15637 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15638 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15639 fi 15640 ;; 15641 15642 uts4*) 15643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15644 hardcode_libdir_flag_spec_F77='-L$libdir' 15645 hardcode_shlibpath_var_F77=no 15646 ;; 15647 15648 *) 15649 ld_shlibs_F77=no 15650 ;; 15651 esac 15652 fi 15653 15654{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15655$as_echo "$ld_shlibs_F77" >&6; } 15656test "$ld_shlibs_F77" = no && can_build_shared=no 15657 15658# 15659# Do we need to explicitly link libc? 15660# 15661case "x$archive_cmds_need_lc_F77" in 15662x|xyes) 15663 # Assume -lc should be added 15664 archive_cmds_need_lc_F77=yes 15665 15666 if test "$enable_shared" = yes && test "$GCC" = yes; then 15667 case $archive_cmds_F77 in 15668 *'~'*) 15669 # FIXME: we may have to deal with multi-command sequences. 15670 ;; 15671 '$CC '*) 15672 # Test whether the compiler implicitly links with -lc since on some 15673 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15674 # to ld, don't add -lc before -lgcc. 15675 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15677 $rm conftest* 15678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15679 15680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15681 (eval $ac_compile) 2>&5 15682 ac_status=$? 15683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15684 (exit $ac_status); } 2>conftest.err; then 15685 soname=conftest 15686 lib=conftest 15687 libobjs=conftest.$ac_objext 15688 deplibs= 15689 wl=$lt_prog_compiler_wl_F77 15690 pic_flag=$lt_prog_compiler_pic_F77 15691 compiler_flags=-v 15692 linker_flags=-v 15693 verstring= 15694 output_objdir=. 15695 libname=conftest 15696 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15697 allow_undefined_flag_F77= 15698 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15699 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15700 ac_status=$? 15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15702 (exit $ac_status); } 15703 then 15704 archive_cmds_need_lc_F77=no 15705 else 15706 archive_cmds_need_lc_F77=yes 15707 fi 15708 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15709 else 15710 cat conftest.err 1>&5 15711 fi 15712 $rm conftest* 15713 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15714$as_echo "$archive_cmds_need_lc_F77" >&6; } 15715 ;; 15716 esac 15717 fi 15718 ;; 15719esac 15720 15721{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15722$as_echo_n "checking dynamic linker characteristics... " >&6; } 15723library_names_spec= 15724libname_spec='lib$name' 15725soname_spec= 15726shrext_cmds=".so" 15727postinstall_cmds= 15728postuninstall_cmds= 15729finish_cmds= 15730finish_eval= 15731shlibpath_var= 15732shlibpath_overrides_runpath=unknown 15733version_type=none 15734dynamic_linker="$host_os ld.so" 15735sys_lib_dlsearch_path_spec="/lib /usr/lib" 15736 15737need_lib_prefix=unknown 15738hardcode_into_libs=no 15739 15740# when you set need_version to no, make sure it does not cause -set_version 15741# flags to be left without arguments 15742need_version=unknown 15743 15744case $host_os in 15745aix3*) 15746 version_type=linux 15747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15748 shlibpath_var=LIBPATH 15749 15750 # AIX 3 has no versioning support, so we append a major version to the name. 15751 soname_spec='${libname}${release}${shared_ext}$major' 15752 ;; 15753 15754aix4* | aix5*) 15755 version_type=linux 15756 need_lib_prefix=no 15757 need_version=no 15758 hardcode_into_libs=yes 15759 if test "$host_cpu" = ia64; then 15760 # AIX 5 supports IA64 15761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15762 shlibpath_var=LD_LIBRARY_PATH 15763 else 15764 # With GCC up to 2.95.x, collect2 would create an import file 15765 # for dependence libraries. The import file would start with 15766 # the line `#! .'. This would cause the generated library to 15767 # depend on `.', always an invalid library. This was fixed in 15768 # development snapshots of GCC prior to 3.0. 15769 case $host_os in 15770 aix4 | aix4.[01] | aix4.[01].*) 15771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15772 echo ' yes ' 15773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15774 : 15775 else 15776 can_build_shared=no 15777 fi 15778 ;; 15779 esac 15780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15781 # soname into executable. Probably we can add versioning support to 15782 # collect2, so additional links can be useful in future. 15783 if test "$aix_use_runtimelinking" = yes; then 15784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15785 # instead of lib<name>.a to let people know that these are not 15786 # typical AIX shared libraries. 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15788 else 15789 # We preserve .a as extension for shared libraries through AIX4.2 15790 # and later when we are not doing run time linking. 15791 library_names_spec='${libname}${release}.a $libname.a' 15792 soname_spec='${libname}${release}${shared_ext}$major' 15793 fi 15794 shlibpath_var=LIBPATH 15795 fi 15796 ;; 15797 15798amigaos*) 15799 library_names_spec='$libname.ixlibrary $libname.a' 15800 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15801 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' 15802 ;; 15803 15804beos*) 15805 library_names_spec='${libname}${shared_ext}' 15806 dynamic_linker="$host_os ld.so" 15807 shlibpath_var=LIBRARY_PATH 15808 ;; 15809 15810bsdi[45]*) 15811 version_type=linux 15812 need_version=no 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15814 soname_spec='${libname}${release}${shared_ext}$major' 15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15816 shlibpath_var=LD_LIBRARY_PATH 15817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15819 # the default ld.so.conf also contains /usr/contrib/lib and 15820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15821 # libtool to hard-code these into programs 15822 ;; 15823 15824cygwin* | mingw* | pw32*) 15825 version_type=windows 15826 shrext_cmds=".dll" 15827 need_version=no 15828 need_lib_prefix=no 15829 15830 case $GCC,$host_os in 15831 yes,cygwin* | yes,mingw* | yes,pw32*) 15832 library_names_spec='$libname.dll.a' 15833 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15834 postinstall_cmds='base_file=`basename \${file}`~ 15835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15836 dldir=$destdir/`dirname \$dlpath`~ 15837 test -d \$dldir || mkdir -p \$dldir~ 15838 $install_prog $dir/$dlname \$dldir/$dlname~ 15839 chmod a+x \$dldir/$dlname' 15840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15841 dlpath=$dir/\$dldll~ 15842 $rm \$dlpath' 15843 shlibpath_overrides_runpath=yes 15844 15845 case $host_os in 15846 cygwin*) 15847 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15850 ;; 15851 mingw*) 15852 # MinGW DLLs use traditional 'lib' prefix 15853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15856 # It is most probably a Windows format PATH printed by 15857 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15858 # path with ; separators, and with drive letters. We can handle the 15859 # drive letters (cygwin fileutils understands them), so leave them, 15860 # especially as we might pass files found there to a mingw objdump, 15861 # which wouldn't understand a cygwinified path. Ahh. 15862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15863 else 15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15865 fi 15866 ;; 15867 pw32*) 15868 # pw32 DLLs use 'pw' prefix rather than 'lib' 15869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15870 ;; 15871 esac 15872 ;; 15873 15874 *) 15875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15876 ;; 15877 esac 15878 dynamic_linker='Win32 ld.exe' 15879 # FIXME: first we should search . and the directory the executable is in 15880 shlibpath_var=PATH 15881 ;; 15882 15883darwin* | rhapsody*) 15884 dynamic_linker="$host_os dyld" 15885 version_type=darwin 15886 need_lib_prefix=no 15887 need_version=no 15888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15889 soname_spec='${libname}${release}${major}$shared_ext' 15890 shlibpath_overrides_runpath=yes 15891 shlibpath_var=DYLD_LIBRARY_PATH 15892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15893 15894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15895 ;; 15896 15897dgux*) 15898 version_type=linux 15899 need_lib_prefix=no 15900 need_version=no 15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15902 soname_spec='${libname}${release}${shared_ext}$major' 15903 shlibpath_var=LD_LIBRARY_PATH 15904 ;; 15905 15906freebsd1*) 15907 dynamic_linker=no 15908 ;; 15909 15910freebsd* | dragonfly*) 15911 # DragonFly does not have aout. When/if they implement a new 15912 # versioning mechanism, adjust this. 15913 if test -x /usr/bin/objformat; then 15914 objformat=`/usr/bin/objformat` 15915 else 15916 case $host_os in 15917 freebsd[123]*) objformat=aout ;; 15918 *) objformat=elf ;; 15919 esac 15920 fi 15921 version_type=freebsd-$objformat 15922 case $version_type in 15923 freebsd-elf*) 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15925 need_version=no 15926 need_lib_prefix=no 15927 ;; 15928 freebsd-*) 15929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15930 need_version=yes 15931 ;; 15932 esac 15933 shlibpath_var=LD_LIBRARY_PATH 15934 case $host_os in 15935 freebsd2*) 15936 shlibpath_overrides_runpath=yes 15937 ;; 15938 freebsd3.[01]* | freebsdelf3.[01]*) 15939 shlibpath_overrides_runpath=yes 15940 hardcode_into_libs=yes 15941 ;; 15942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15944 shlibpath_overrides_runpath=no 15945 hardcode_into_libs=yes 15946 ;; 15947 *) # from 4.6 on, and DragonFly 15948 shlibpath_overrides_runpath=yes 15949 hardcode_into_libs=yes 15950 ;; 15951 esac 15952 ;; 15953 15954gnu*) 15955 version_type=linux 15956 need_lib_prefix=no 15957 need_version=no 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15959 soname_spec='${libname}${release}${shared_ext}$major' 15960 shlibpath_var=LD_LIBRARY_PATH 15961 hardcode_into_libs=yes 15962 ;; 15963 15964hpux9* | hpux10* | hpux11*) 15965 # Give a soname corresponding to the major version so that dld.sl refuses to 15966 # link against other versions. 15967 version_type=sunos 15968 need_lib_prefix=no 15969 need_version=no 15970 case $host_cpu in 15971 ia64*) 15972 shrext_cmds='.so' 15973 hardcode_into_libs=yes 15974 dynamic_linker="$host_os dld.so" 15975 shlibpath_var=LD_LIBRARY_PATH 15976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15978 soname_spec='${libname}${release}${shared_ext}$major' 15979 if test "X$HPUX_IA64_MODE" = X32; then 15980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15981 else 15982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15983 fi 15984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15985 ;; 15986 hppa*64*) 15987 shrext_cmds='.sl' 15988 hardcode_into_libs=yes 15989 dynamic_linker="$host_os dld.sl" 15990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15993 soname_spec='${libname}${release}${shared_ext}$major' 15994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15996 ;; 15997 *) 15998 shrext_cmds='.sl' 15999 dynamic_linker="$host_os dld.sl" 16000 shlibpath_var=SHLIB_PATH 16001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16003 soname_spec='${libname}${release}${shared_ext}$major' 16004 ;; 16005 esac 16006 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16007 postinstall_cmds='chmod 555 $lib' 16008 ;; 16009 16010interix[3-9]*) 16011 version_type=linux 16012 need_lib_prefix=no 16013 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16017 shlibpath_var=LD_LIBRARY_PATH 16018 shlibpath_overrides_runpath=no 16019 hardcode_into_libs=yes 16020 ;; 16021 16022irix5* | irix6* | nonstopux*) 16023 case $host_os in 16024 nonstopux*) version_type=nonstopux ;; 16025 *) 16026 if test "$lt_cv_prog_gnu_ld" = yes; then 16027 version_type=linux 16028 else 16029 version_type=irix 16030 fi ;; 16031 esac 16032 need_lib_prefix=no 16033 need_version=no 16034 soname_spec='${libname}${release}${shared_ext}$major' 16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16036 case $host_os in 16037 irix5* | nonstopux*) 16038 libsuff= shlibsuff= 16039 ;; 16040 *) 16041 case $LD in # libtool.m4 will add one of these switches to LD 16042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16043 libsuff= shlibsuff= libmagic=32-bit;; 16044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16045 libsuff=32 shlibsuff=N32 libmagic=N32;; 16046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16047 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16048 *) libsuff= shlibsuff= libmagic=never-match;; 16049 esac 16050 ;; 16051 esac 16052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16053 shlibpath_overrides_runpath=no 16054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16056 hardcode_into_libs=yes 16057 ;; 16058 16059# No shared lib support for Linux oldld, aout, or coff. 16060linux*oldld* | linux*aout* | linux*coff*) 16061 dynamic_linker=no 16062 ;; 16063 16064# This must be Linux ELF. 16065linux* | k*bsd*-gnu) 16066 version_type=linux 16067 need_lib_prefix=no 16068 need_version=no 16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16070 soname_spec='${libname}${release}${shared_ext}$major' 16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16072 shlibpath_var=LD_LIBRARY_PATH 16073 shlibpath_overrides_runpath=no 16074 # This implies no fast_install, which is unacceptable. 16075 # Some rework will be needed to allow for fast_install 16076 # before this can be enabled. 16077 hardcode_into_libs=yes 16078 16079 # Append ld.so.conf contents to the search path 16080 if test -f /etc/ld.so.conf; then 16081 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' ' '` 16082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16083 fi 16084 16085 # We used to test for /lib/ld.so.1 and disable shared libraries on 16086 # powerpc, because MkLinux only supported shared libraries with the 16087 # GNU dynamic linker. Since this was broken with cross compilers, 16088 # most powerpc-linux boxes support dynamic linking these days and 16089 # people can always --disable-shared, the test was removed, and we 16090 # assume the GNU/Linux dynamic linker is in use. 16091 dynamic_linker='GNU/Linux ld.so' 16092 ;; 16093 16094netbsd*) 16095 version_type=sunos 16096 need_lib_prefix=no 16097 need_version=no 16098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16101 dynamic_linker='NetBSD (a.out) ld.so' 16102 else 16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16104 soname_spec='${libname}${release}${shared_ext}$major' 16105 dynamic_linker='NetBSD ld.elf_so' 16106 fi 16107 shlibpath_var=LD_LIBRARY_PATH 16108 shlibpath_overrides_runpath=yes 16109 hardcode_into_libs=yes 16110 ;; 16111 16112newsos6) 16113 version_type=linux 16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16115 shlibpath_var=LD_LIBRARY_PATH 16116 shlibpath_overrides_runpath=yes 16117 ;; 16118 16119nto-qnx*) 16120 version_type=linux 16121 need_lib_prefix=no 16122 need_version=no 16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16124 soname_spec='${libname}${release}${shared_ext}$major' 16125 shlibpath_var=LD_LIBRARY_PATH 16126 shlibpath_overrides_runpath=yes 16127 ;; 16128 16129openbsd*) 16130 version_type=sunos 16131 sys_lib_dlsearch_path_spec="/usr/lib" 16132 need_lib_prefix=no 16133 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16134 case $host_os in 16135 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16136 *) need_version=no ;; 16137 esac 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16140 shlibpath_var=LD_LIBRARY_PATH 16141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16142 case $host_os in 16143 openbsd2.[89] | openbsd2.[89].*) 16144 shlibpath_overrides_runpath=no 16145 ;; 16146 *) 16147 shlibpath_overrides_runpath=yes 16148 ;; 16149 esac 16150 else 16151 shlibpath_overrides_runpath=yes 16152 fi 16153 ;; 16154 16155os2*) 16156 libname_spec='$name' 16157 shrext_cmds=".dll" 16158 need_lib_prefix=no 16159 library_names_spec='$libname${shared_ext} $libname.a' 16160 dynamic_linker='OS/2 ld.exe' 16161 shlibpath_var=LIBPATH 16162 ;; 16163 16164osf3* | osf4* | osf5*) 16165 version_type=osf 16166 need_lib_prefix=no 16167 need_version=no 16168 soname_spec='${libname}${release}${shared_ext}$major' 16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16170 shlibpath_var=LD_LIBRARY_PATH 16171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16173 ;; 16174 16175rdos*) 16176 dynamic_linker=no 16177 ;; 16178 16179solaris*) 16180 version_type=linux 16181 need_lib_prefix=no 16182 need_version=no 16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16184 soname_spec='${libname}${release}${shared_ext}$major' 16185 shlibpath_var=LD_LIBRARY_PATH 16186 shlibpath_overrides_runpath=yes 16187 hardcode_into_libs=yes 16188 # ldd complains unless libraries are executable 16189 postinstall_cmds='chmod +x $lib' 16190 ;; 16191 16192sunos4*) 16193 version_type=sunos 16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16196 shlibpath_var=LD_LIBRARY_PATH 16197 shlibpath_overrides_runpath=yes 16198 if test "$with_gnu_ld" = yes; then 16199 need_lib_prefix=no 16200 fi 16201 need_version=yes 16202 ;; 16203 16204sysv4 | sysv4.3*) 16205 version_type=linux 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16207 soname_spec='${libname}${release}${shared_ext}$major' 16208 shlibpath_var=LD_LIBRARY_PATH 16209 case $host_vendor in 16210 sni) 16211 shlibpath_overrides_runpath=no 16212 need_lib_prefix=no 16213 export_dynamic_flag_spec='${wl}-Blargedynsym' 16214 runpath_var=LD_RUN_PATH 16215 ;; 16216 siemens) 16217 need_lib_prefix=no 16218 ;; 16219 motorola) 16220 need_lib_prefix=no 16221 need_version=no 16222 shlibpath_overrides_runpath=no 16223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16224 ;; 16225 esac 16226 ;; 16227 16228sysv4*MP*) 16229 if test -d /usr/nec ;then 16230 version_type=linux 16231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16232 soname_spec='$libname${shared_ext}.$major' 16233 shlibpath_var=LD_LIBRARY_PATH 16234 fi 16235 ;; 16236 16237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16238 version_type=freebsd-elf 16239 need_lib_prefix=no 16240 need_version=no 16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16242 soname_spec='${libname}${release}${shared_ext}$major' 16243 shlibpath_var=LD_LIBRARY_PATH 16244 hardcode_into_libs=yes 16245 if test "$with_gnu_ld" = yes; then 16246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16247 shlibpath_overrides_runpath=no 16248 else 16249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16250 shlibpath_overrides_runpath=yes 16251 case $host_os in 16252 sco3.2v5*) 16253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16254 ;; 16255 esac 16256 fi 16257 sys_lib_dlsearch_path_spec='/usr/lib' 16258 ;; 16259 16260uts4*) 16261 version_type=linux 16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16263 soname_spec='${libname}${release}${shared_ext}$major' 16264 shlibpath_var=LD_LIBRARY_PATH 16265 ;; 16266 16267*) 16268 dynamic_linker=no 16269 ;; 16270esac 16271{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16272$as_echo "$dynamic_linker" >&6; } 16273test "$dynamic_linker" = no && can_build_shared=no 16274 16275variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16276if test "$GCC" = yes; then 16277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16278fi 16279 16280{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16281$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16282hardcode_action_F77= 16283if test -n "$hardcode_libdir_flag_spec_F77" || \ 16284 test -n "$runpath_var_F77" || \ 16285 test "X$hardcode_automatic_F77" = "Xyes" ; then 16286 16287 # We can hardcode non-existant directories. 16288 if test "$hardcode_direct_F77" != no && 16289 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16290 # have to relink, otherwise we might link with an installed library 16291 # when we should be linking with a yet-to-be-installed one 16292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16293 test "$hardcode_minus_L_F77" != no; then 16294 # Linking always hardcodes the temporary library directory. 16295 hardcode_action_F77=relink 16296 else 16297 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16298 hardcode_action_F77=immediate 16299 fi 16300else 16301 # We cannot hardcode anything, or else we can only hardcode existing 16302 # directories. 16303 hardcode_action_F77=unsupported 16304fi 16305{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16306$as_echo "$hardcode_action_F77" >&6; } 16307 16308if test "$hardcode_action_F77" = relink; then 16309 # Fast installation is not supported 16310 enable_fast_install=no 16311elif test "$shlibpath_overrides_runpath" = yes || 16312 test "$enable_shared" = no; then 16313 # Fast installation is not necessary 16314 enable_fast_install=needless 16315fi 16316 16317 16318# The else clause should only fire when bootstrapping the 16319# libtool distribution, otherwise you forgot to ship ltmain.sh 16320# with your package, and you will get complaints that there are 16321# no rules to generate ltmain.sh. 16322if test -f "$ltmain"; then 16323 # See if we are running on zsh, and set the options which allow our commands through 16324 # without removal of \ escapes. 16325 if test -n "${ZSH_VERSION+set}" ; then 16326 setopt NO_GLOB_SUBST 16327 fi 16328 # Now quote all the things that may contain metacharacters while being 16329 # careful not to overquote the AC_SUBSTed values. We take copies of the 16330 # variables and quote the copies for generation of the libtool script. 16331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16332 SED SHELL STRIP \ 16333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16335 deplibs_check_method reload_flag reload_cmds need_locks \ 16336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16337 lt_cv_sys_global_symbol_to_c_name_address \ 16338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16339 old_postinstall_cmds old_postuninstall_cmds \ 16340 compiler_F77 \ 16341 CC_F77 \ 16342 LD_F77 \ 16343 lt_prog_compiler_wl_F77 \ 16344 lt_prog_compiler_pic_F77 \ 16345 lt_prog_compiler_static_F77 \ 16346 lt_prog_compiler_no_builtin_flag_F77 \ 16347 export_dynamic_flag_spec_F77 \ 16348 thread_safe_flag_spec_F77 \ 16349 whole_archive_flag_spec_F77 \ 16350 enable_shared_with_static_runtimes_F77 \ 16351 old_archive_cmds_F77 \ 16352 old_archive_from_new_cmds_F77 \ 16353 predep_objects_F77 \ 16354 postdep_objects_F77 \ 16355 predeps_F77 \ 16356 postdeps_F77 \ 16357 compiler_lib_search_path_F77 \ 16358 archive_cmds_F77 \ 16359 archive_expsym_cmds_F77 \ 16360 postinstall_cmds_F77 \ 16361 postuninstall_cmds_F77 \ 16362 old_archive_from_expsyms_cmds_F77 \ 16363 allow_undefined_flag_F77 \ 16364 no_undefined_flag_F77 \ 16365 export_symbols_cmds_F77 \ 16366 hardcode_libdir_flag_spec_F77 \ 16367 hardcode_libdir_flag_spec_ld_F77 \ 16368 hardcode_libdir_separator_F77 \ 16369 hardcode_automatic_F77 \ 16370 module_cmds_F77 \ 16371 module_expsym_cmds_F77 \ 16372 lt_cv_prog_compiler_c_o_F77 \ 16373 fix_srcfile_path_F77 \ 16374 exclude_expsyms_F77 \ 16375 include_expsyms_F77; do 16376 16377 case $var in 16378 old_archive_cmds_F77 | \ 16379 old_archive_from_new_cmds_F77 | \ 16380 archive_cmds_F77 | \ 16381 archive_expsym_cmds_F77 | \ 16382 module_cmds_F77 | \ 16383 module_expsym_cmds_F77 | \ 16384 old_archive_from_expsyms_cmds_F77 | \ 16385 export_symbols_cmds_F77 | \ 16386 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16387 postinstall_cmds | postuninstall_cmds | \ 16388 old_postinstall_cmds | old_postuninstall_cmds | \ 16389 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16390 # Double-quote double-evaled strings. 16391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16392 ;; 16393 *) 16394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16395 ;; 16396 esac 16397 done 16398 16399 case $lt_echo in 16400 *'\$0 --fallback-echo"') 16401 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16402 ;; 16403 esac 16404 16405cfgfile="$ofile" 16406 16407 cat <<__EOF__ >> "$cfgfile" 16408# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16409 16410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16411 16412# Shell to use when invoking shell scripts. 16413SHELL=$lt_SHELL 16414 16415# Whether or not to build shared libraries. 16416build_libtool_libs=$enable_shared 16417 16418# Whether or not to build static libraries. 16419build_old_libs=$enable_static 16420 16421# Whether or not to add -lc for building shared libraries. 16422build_libtool_need_lc=$archive_cmds_need_lc_F77 16423 16424# Whether or not to disallow shared libs when runtime libs are static 16425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16426 16427# Whether or not to optimize for fast installation. 16428fast_install=$enable_fast_install 16429 16430# The host system. 16431host_alias=$host_alias 16432host=$host 16433host_os=$host_os 16434 16435# The build system. 16436build_alias=$build_alias 16437build=$build 16438build_os=$build_os 16439 16440# An echo program that does not interpret backslashes. 16441echo=$lt_echo 16442 16443# The archiver. 16444AR=$lt_AR 16445AR_FLAGS=$lt_AR_FLAGS 16446 16447# A C compiler. 16448LTCC=$lt_LTCC 16449 16450# LTCC compiler flags. 16451LTCFLAGS=$lt_LTCFLAGS 16452 16453# A language-specific compiler. 16454CC=$lt_compiler_F77 16455 16456# Is the compiler the GNU C compiler? 16457with_gcc=$GCC_F77 16458 16459# An ERE matcher. 16460EGREP=$lt_EGREP 16461 16462# The linker used to build libraries. 16463LD=$lt_LD_F77 16464 16465# Whether we need hard or soft links. 16466LN_S=$lt_LN_S 16467 16468# A BSD-compatible nm program. 16469NM=$lt_NM 16470 16471# A symbol stripping program 16472STRIP=$lt_STRIP 16473 16474# Used to examine libraries when file_magic_cmd begins "file" 16475MAGIC_CMD=$MAGIC_CMD 16476 16477# Used on cygwin: DLL creation program. 16478DLLTOOL="$DLLTOOL" 16479 16480# Used on cygwin: object dumper. 16481OBJDUMP="$OBJDUMP" 16482 16483# Used on cygwin: assembler. 16484AS="$AS" 16485 16486# The name of the directory that contains temporary libtool files. 16487objdir=$objdir 16488 16489# How to create reloadable object files. 16490reload_flag=$lt_reload_flag 16491reload_cmds=$lt_reload_cmds 16492 16493# How to pass a linker flag through the compiler. 16494wl=$lt_lt_prog_compiler_wl_F77 16495 16496# Object file suffix (normally "o"). 16497objext="$ac_objext" 16498 16499# Old archive suffix (normally "a"). 16500libext="$libext" 16501 16502# Shared library suffix (normally ".so"). 16503shrext_cmds='$shrext_cmds' 16504 16505# Executable file suffix (normally ""). 16506exeext="$exeext" 16507 16508# Additional compiler flags for building library objects. 16509pic_flag=$lt_lt_prog_compiler_pic_F77 16510pic_mode=$pic_mode 16511 16512# What is the maximum length of a command? 16513max_cmd_len=$lt_cv_sys_max_cmd_len 16514 16515# Does compiler simultaneously support -c and -o options? 16516compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16517 16518# Must we lock files when doing compilation? 16519need_locks=$lt_need_locks 16520 16521# Do we need the lib prefix for modules? 16522need_lib_prefix=$need_lib_prefix 16523 16524# Do we need a version for libraries? 16525need_version=$need_version 16526 16527# Whether dlopen is supported. 16528dlopen_support=$enable_dlopen 16529 16530# Whether dlopen of programs is supported. 16531dlopen_self=$enable_dlopen_self 16532 16533# Whether dlopen of statically linked programs is supported. 16534dlopen_self_static=$enable_dlopen_self_static 16535 16536# Compiler flag to prevent dynamic linking. 16537link_static_flag=$lt_lt_prog_compiler_static_F77 16538 16539# Compiler flag to turn off builtin functions. 16540no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16541 16542# Compiler flag to allow reflexive dlopens. 16543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16544 16545# Compiler flag to generate shared objects directly from archives. 16546whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16547 16548# Compiler flag to generate thread-safe objects. 16549thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16550 16551# Library versioning type. 16552version_type=$version_type 16553 16554# Format of library name prefix. 16555libname_spec=$lt_libname_spec 16556 16557# List of archive names. First name is the real one, the rest are links. 16558# The last name is the one that the linker finds with -lNAME. 16559library_names_spec=$lt_library_names_spec 16560 16561# The coded name of the library, if different from the real name. 16562soname_spec=$lt_soname_spec 16563 16564# Commands used to build and install an old-style archive. 16565RANLIB=$lt_RANLIB 16566old_archive_cmds=$lt_old_archive_cmds_F77 16567old_postinstall_cmds=$lt_old_postinstall_cmds 16568old_postuninstall_cmds=$lt_old_postuninstall_cmds 16569 16570# Create an old-style archive from a shared archive. 16571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16572 16573# Create a temporary old-style archive to link instead of a shared archive. 16574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16575 16576# Commands used to build and install a shared archive. 16577archive_cmds=$lt_archive_cmds_F77 16578archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16579postinstall_cmds=$lt_postinstall_cmds 16580postuninstall_cmds=$lt_postuninstall_cmds 16581 16582# Commands used to build a loadable module (assumed same as above if empty) 16583module_cmds=$lt_module_cmds_F77 16584module_expsym_cmds=$lt_module_expsym_cmds_F77 16585 16586# Commands to strip libraries. 16587old_striplib=$lt_old_striplib 16588striplib=$lt_striplib 16589 16590# Dependencies to place before the objects being linked to create a 16591# shared library. 16592predep_objects=$lt_predep_objects_F77 16593 16594# Dependencies to place after the objects being linked to create a 16595# shared library. 16596postdep_objects=$lt_postdep_objects_F77 16597 16598# Dependencies to place before the objects being linked to create a 16599# shared library. 16600predeps=$lt_predeps_F77 16601 16602# Dependencies to place after the objects being linked to create a 16603# shared library. 16604postdeps=$lt_postdeps_F77 16605 16606# The library search path used internally by the compiler when linking 16607# a shared library. 16608compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16609 16610# Method to check whether dependent libraries are shared objects. 16611deplibs_check_method=$lt_deplibs_check_method 16612 16613# Command to use when deplibs_check_method == file_magic. 16614file_magic_cmd=$lt_file_magic_cmd 16615 16616# Flag that allows shared libraries with undefined symbols to be built. 16617allow_undefined_flag=$lt_allow_undefined_flag_F77 16618 16619# Flag that forces no undefined symbols. 16620no_undefined_flag=$lt_no_undefined_flag_F77 16621 16622# Commands used to finish a libtool library installation in a directory. 16623finish_cmds=$lt_finish_cmds 16624 16625# Same as above, but a single script fragment to be evaled but not shown. 16626finish_eval=$lt_finish_eval 16627 16628# Take the output of nm and produce a listing of raw symbols and C names. 16629global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16630 16631# Transform the output of nm in a proper C declaration 16632global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16633 16634# Transform the output of nm in a C name address pair 16635global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16636 16637# This is the shared library runtime path variable. 16638runpath_var=$runpath_var 16639 16640# This is the shared library path variable. 16641shlibpath_var=$shlibpath_var 16642 16643# Is shlibpath searched before the hard-coded library search path? 16644shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16645 16646# How to hardcode a shared library path into an executable. 16647hardcode_action=$hardcode_action_F77 16648 16649# Whether we should hardcode library paths into libraries. 16650hardcode_into_libs=$hardcode_into_libs 16651 16652# Flag to hardcode \$libdir into a binary during linking. 16653# This must work even if \$libdir does not exist. 16654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16655 16656# If ld is used when linking, flag to hardcode \$libdir into 16657# a binary during linking. This must work even if \$libdir does 16658# not exist. 16659hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16660 16661# Whether we need a single -rpath flag with a separated argument. 16662hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16663 16664# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16665# resulting binary. 16666hardcode_direct=$hardcode_direct_F77 16667 16668# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16669# resulting binary. 16670hardcode_minus_L=$hardcode_minus_L_F77 16671 16672# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16673# the resulting binary. 16674hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16675 16676# Set to yes if building a shared library automatically hardcodes DIR into the library 16677# and all subsequent libraries and executables linked against it. 16678hardcode_automatic=$hardcode_automatic_F77 16679 16680# Variables whose values should be saved in libtool wrapper scripts and 16681# restored at relink time. 16682variables_saved_for_relink="$variables_saved_for_relink" 16683 16684# Whether libtool must link a program against all its dependency libraries. 16685link_all_deplibs=$link_all_deplibs_F77 16686 16687# Compile-time system search path for libraries 16688sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16689 16690# Run-time system search path for libraries 16691sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16692 16693# Fix the shell variable \$srcfile for the compiler. 16694fix_srcfile_path=$lt_fix_srcfile_path 16695 16696# Set to yes if exported symbols are required. 16697always_export_symbols=$always_export_symbols_F77 16698 16699# The commands to list exported symbols. 16700export_symbols_cmds=$lt_export_symbols_cmds_F77 16701 16702# The commands to extract the exported symbol list from a shared archive. 16703extract_expsyms_cmds=$lt_extract_expsyms_cmds 16704 16705# Symbols that should not be listed in the preloaded symbols. 16706exclude_expsyms=$lt_exclude_expsyms_F77 16707 16708# Symbols that must always be exported. 16709include_expsyms=$lt_include_expsyms_F77 16710 16711# ### END LIBTOOL TAG CONFIG: $tagname 16712 16713__EOF__ 16714 16715 16716else 16717 # If there is no Makefile yet, we rely on a make rule to execute 16718 # `config.status --recheck' to rerun these tests and create the 16719 # libtool script then. 16720 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16721 if test -f "$ltmain_in"; then 16722 test -f Makefile && make "$ltmain" 16723 fi 16724fi 16725 16726 16727ac_ext=c 16728ac_cpp='$CPP $CPPFLAGS' 16729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16731ac_compiler_gnu=$ac_cv_c_compiler_gnu 16732 16733CC="$lt_save_CC" 16734 16735 else 16736 tagname="" 16737 fi 16738 ;; 16739 16740 GCJ) 16741 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16742 16743 16744# Source file extension for Java test sources. 16745ac_ext=java 16746 16747# Object file extension for compiled Java test sources. 16748objext=o 16749objext_GCJ=$objext 16750 16751# Code to be used in simple compile tests 16752lt_simple_compile_test_code="class foo {}" 16753 16754# Code to be used in simple link tests 16755lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16756 16757# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16758 16759# If no C compiler was specified, use CC. 16760LTCC=${LTCC-"$CC"} 16761 16762# If no C compiler flags were specified, use CFLAGS. 16763LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16764 16765# Allow CC to be a program name with arguments. 16766compiler=$CC 16767 16768 16769# save warnings/boilerplate of simple test code 16770ac_outfile=conftest.$ac_objext 16771echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16772eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16773_lt_compiler_boilerplate=`cat conftest.err` 16774$rm conftest* 16775 16776ac_outfile=conftest.$ac_objext 16777echo "$lt_simple_link_test_code" >conftest.$ac_ext 16778eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16779_lt_linker_boilerplate=`cat conftest.err` 16780$rm conftest* 16781 16782 16783# Allow CC to be a program name with arguments. 16784lt_save_CC="$CC" 16785CC=${GCJ-"gcj"} 16786compiler=$CC 16787compiler_GCJ=$CC 16788for cc_temp in $compiler""; do 16789 case $cc_temp in 16790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16792 \-*) ;; 16793 *) break;; 16794 esac 16795done 16796cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16797 16798 16799# GCJ did not exist at the time GCC didn't implicitly link libc in. 16800archive_cmds_need_lc_GCJ=no 16801 16802old_archive_cmds_GCJ=$old_archive_cmds 16803 16804 16805lt_prog_compiler_no_builtin_flag_GCJ= 16806 16807if test "$GCC" = yes; then 16808 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16809 16810 16811{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16812$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16813if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16814 $as_echo_n "(cached) " >&6 16815else 16816 lt_cv_prog_compiler_rtti_exceptions=no 16817 ac_outfile=conftest.$ac_objext 16818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16819 lt_compiler_flag="-fno-rtti -fno-exceptions" 16820 # Insert the option either (1) after the last *FLAGS variable, or 16821 # (2) before a word containing "conftest.", or (3) at the end. 16822 # Note that $ac_compile itself does not contain backslashes and begins 16823 # with a dollar sign (not a hyphen), so the echo should work correctly. 16824 # The option is referenced via a variable to avoid confusing sed. 16825 lt_compile=`echo "$ac_compile" | $SED \ 16826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16828 -e 's:$: $lt_compiler_flag:'` 16829 (eval echo "\"\$as_me:16829: $lt_compile\"" >&5) 16830 (eval "$lt_compile" 2>conftest.err) 16831 ac_status=$? 16832 cat conftest.err >&5 16833 echo "$as_me:16833: \$? = $ac_status" >&5 16834 if (exit $ac_status) && test -s "$ac_outfile"; then 16835 # The compiler can only warn and ignore the option if not recognized 16836 # So say no if there are warnings other than the usual output. 16837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16840 lt_cv_prog_compiler_rtti_exceptions=yes 16841 fi 16842 fi 16843 $rm conftest* 16844 16845fi 16846{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16847$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16848 16849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16850 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16851else 16852 : 16853fi 16854 16855fi 16856 16857lt_prog_compiler_wl_GCJ= 16858lt_prog_compiler_pic_GCJ= 16859lt_prog_compiler_static_GCJ= 16860 16861{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16862$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16863 16864 if test "$GCC" = yes; then 16865 lt_prog_compiler_wl_GCJ='-Wl,' 16866 lt_prog_compiler_static_GCJ='-static' 16867 16868 case $host_os in 16869 aix*) 16870 # All AIX code is PIC. 16871 if test "$host_cpu" = ia64; then 16872 # AIX 5 now supports IA64 processor 16873 lt_prog_compiler_static_GCJ='-Bstatic' 16874 fi 16875 ;; 16876 16877 amigaos*) 16878 # FIXME: we need at least 68020 code to build shared libraries, but 16879 # adding the `-m68020' flag to GCC prevents building anything better, 16880 # like `-m68040'. 16881 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16882 ;; 16883 16884 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16885 # PIC is the default for these OSes. 16886 ;; 16887 16888 mingw* | cygwin* | pw32* | os2*) 16889 # This hack is so that the source file can tell whether it is being 16890 # built for inclusion in a dll (and should export symbols for example). 16891 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16892 # (--disable-auto-import) libraries 16893 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16894 ;; 16895 16896 darwin* | rhapsody*) 16897 # PIC is the default on this platform 16898 # Common symbols not allowed in MH_DYLIB files 16899 lt_prog_compiler_pic_GCJ='-fno-common' 16900 ;; 16901 16902 interix[3-9]*) 16903 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16904 # Instead, we relocate shared libraries at runtime. 16905 ;; 16906 16907 msdosdjgpp*) 16908 # Just because we use GCC doesn't mean we suddenly get shared libraries 16909 # on systems that don't support them. 16910 lt_prog_compiler_can_build_shared_GCJ=no 16911 enable_shared=no 16912 ;; 16913 16914 sysv4*MP*) 16915 if test -d /usr/nec; then 16916 lt_prog_compiler_pic_GCJ=-Kconform_pic 16917 fi 16918 ;; 16919 16920 hpux*) 16921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16922 # not for PA HP-UX. 16923 case $host_cpu in 16924 hppa*64*|ia64*) 16925 # +Z the default 16926 ;; 16927 *) 16928 lt_prog_compiler_pic_GCJ='-fPIC' 16929 ;; 16930 esac 16931 ;; 16932 16933 *) 16934 lt_prog_compiler_pic_GCJ='-fPIC' 16935 ;; 16936 esac 16937 else 16938 # PORTME Check for flag to pass linker flags through the system compiler. 16939 case $host_os in 16940 aix*) 16941 lt_prog_compiler_wl_GCJ='-Wl,' 16942 if test "$host_cpu" = ia64; then 16943 # AIX 5 now supports IA64 processor 16944 lt_prog_compiler_static_GCJ='-Bstatic' 16945 else 16946 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16947 fi 16948 ;; 16949 darwin*) 16950 # PIC is the default on this platform 16951 # Common symbols not allowed in MH_DYLIB files 16952 case $cc_basename in 16953 xlc*) 16954 lt_prog_compiler_pic_GCJ='-qnocommon' 16955 lt_prog_compiler_wl_GCJ='-Wl,' 16956 ;; 16957 esac 16958 ;; 16959 16960 mingw* | cygwin* | pw32* | os2*) 16961 # This hack is so that the source file can tell whether it is being 16962 # built for inclusion in a dll (and should export symbols for example). 16963 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16964 ;; 16965 16966 hpux9* | hpux10* | hpux11*) 16967 lt_prog_compiler_wl_GCJ='-Wl,' 16968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16969 # not for PA HP-UX. 16970 case $host_cpu in 16971 hppa*64*|ia64*) 16972 # +Z the default 16973 ;; 16974 *) 16975 lt_prog_compiler_pic_GCJ='+Z' 16976 ;; 16977 esac 16978 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16979 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16980 ;; 16981 16982 irix5* | irix6* | nonstopux*) 16983 lt_prog_compiler_wl_GCJ='-Wl,' 16984 # PIC (with -KPIC) is the default. 16985 lt_prog_compiler_static_GCJ='-non_shared' 16986 ;; 16987 16988 newsos6) 16989 lt_prog_compiler_pic_GCJ='-KPIC' 16990 lt_prog_compiler_static_GCJ='-Bstatic' 16991 ;; 16992 16993 linux* | k*bsd*-gnu) 16994 case $cc_basename in 16995 icc* | ecc*) 16996 lt_prog_compiler_wl_GCJ='-Wl,' 16997 lt_prog_compiler_pic_GCJ='-KPIC' 16998 lt_prog_compiler_static_GCJ='-static' 16999 ;; 17000 pgcc* | pgf77* | pgf90* | pgf95*) 17001 # Portland Group compilers (*not* the Pentium gcc compiler, 17002 # which looks to be a dead project) 17003 lt_prog_compiler_wl_GCJ='-Wl,' 17004 lt_prog_compiler_pic_GCJ='-fpic' 17005 lt_prog_compiler_static_GCJ='-Bstatic' 17006 ;; 17007 ccc*) 17008 lt_prog_compiler_wl_GCJ='-Wl,' 17009 # All Alpha code is PIC. 17010 lt_prog_compiler_static_GCJ='-non_shared' 17011 ;; 17012 *) 17013 case `$CC -V 2>&1 | sed 5q` in 17014 *Sun\ C*) 17015 # Sun C 5.9 17016 lt_prog_compiler_pic_GCJ='-KPIC' 17017 lt_prog_compiler_static_GCJ='-Bstatic' 17018 lt_prog_compiler_wl_GCJ='-Wl,' 17019 ;; 17020 *Sun\ F*) 17021 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17022 lt_prog_compiler_pic_GCJ='-KPIC' 17023 lt_prog_compiler_static_GCJ='-Bstatic' 17024 lt_prog_compiler_wl_GCJ='' 17025 ;; 17026 esac 17027 ;; 17028 esac 17029 ;; 17030 17031 osf3* | osf4* | osf5*) 17032 lt_prog_compiler_wl_GCJ='-Wl,' 17033 # All OSF/1 code is PIC. 17034 lt_prog_compiler_static_GCJ='-non_shared' 17035 ;; 17036 17037 rdos*) 17038 lt_prog_compiler_static_GCJ='-non_shared' 17039 ;; 17040 17041 solaris*) 17042 lt_prog_compiler_pic_GCJ='-KPIC' 17043 lt_prog_compiler_static_GCJ='-Bstatic' 17044 case $cc_basename in 17045 f77* | f90* | f95*) 17046 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17047 *) 17048 lt_prog_compiler_wl_GCJ='-Wl,';; 17049 esac 17050 ;; 17051 17052 sunos4*) 17053 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17054 lt_prog_compiler_pic_GCJ='-PIC' 17055 lt_prog_compiler_static_GCJ='-Bstatic' 17056 ;; 17057 17058 sysv4 | sysv4.2uw2* | sysv4.3*) 17059 lt_prog_compiler_wl_GCJ='-Wl,' 17060 lt_prog_compiler_pic_GCJ='-KPIC' 17061 lt_prog_compiler_static_GCJ='-Bstatic' 17062 ;; 17063 17064 sysv4*MP*) 17065 if test -d /usr/nec ;then 17066 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17067 lt_prog_compiler_static_GCJ='-Bstatic' 17068 fi 17069 ;; 17070 17071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17072 lt_prog_compiler_wl_GCJ='-Wl,' 17073 lt_prog_compiler_pic_GCJ='-KPIC' 17074 lt_prog_compiler_static_GCJ='-Bstatic' 17075 ;; 17076 17077 unicos*) 17078 lt_prog_compiler_wl_GCJ='-Wl,' 17079 lt_prog_compiler_can_build_shared_GCJ=no 17080 ;; 17081 17082 uts4*) 17083 lt_prog_compiler_pic_GCJ='-pic' 17084 lt_prog_compiler_static_GCJ='-Bstatic' 17085 ;; 17086 17087 *) 17088 lt_prog_compiler_can_build_shared_GCJ=no 17089 ;; 17090 esac 17091 fi 17092 17093{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17094$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17095 17096# 17097# Check to make sure the PIC flag actually works. 17098# 17099if test -n "$lt_prog_compiler_pic_GCJ"; then 17100 17101{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17102$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17103if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17104 $as_echo_n "(cached) " >&6 17105else 17106 lt_prog_compiler_pic_works_GCJ=no 17107 ac_outfile=conftest.$ac_objext 17108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17109 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17110 # Insert the option either (1) after the last *FLAGS variable, or 17111 # (2) before a word containing "conftest.", or (3) at the end. 17112 # Note that $ac_compile itself does not contain backslashes and begins 17113 # with a dollar sign (not a hyphen), so the echo should work correctly. 17114 # The option is referenced via a variable to avoid confusing sed. 17115 lt_compile=`echo "$ac_compile" | $SED \ 17116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17118 -e 's:$: $lt_compiler_flag:'` 17119 (eval echo "\"\$as_me:17119: $lt_compile\"" >&5) 17120 (eval "$lt_compile" 2>conftest.err) 17121 ac_status=$? 17122 cat conftest.err >&5 17123 echo "$as_me:17123: \$? = $ac_status" >&5 17124 if (exit $ac_status) && test -s "$ac_outfile"; then 17125 # The compiler can only warn and ignore the option if not recognized 17126 # So say no if there are warnings other than the usual output. 17127 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17130 lt_prog_compiler_pic_works_GCJ=yes 17131 fi 17132 fi 17133 $rm conftest* 17134 17135fi 17136{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17137$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 17138 17139if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17140 case $lt_prog_compiler_pic_GCJ in 17141 "" | " "*) ;; 17142 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17143 esac 17144else 17145 lt_prog_compiler_pic_GCJ= 17146 lt_prog_compiler_can_build_shared_GCJ=no 17147fi 17148 17149fi 17150case $host_os in 17151 # For platforms which do not support PIC, -DPIC is meaningless: 17152 *djgpp*) 17153 lt_prog_compiler_pic_GCJ= 17154 ;; 17155 *) 17156 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17157 ;; 17158esac 17159 17160# 17161# Check to make sure the static flag actually works. 17162# 17163wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17164{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17165$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17166if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17167 $as_echo_n "(cached) " >&6 17168else 17169 lt_prog_compiler_static_works_GCJ=no 17170 save_LDFLAGS="$LDFLAGS" 17171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17172 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17174 # The linker can only warn and ignore the option if not recognized 17175 # So say no if there are warnings 17176 if test -s conftest.err; then 17177 # Append any errors to the config.log. 17178 cat conftest.err 1>&5 17179 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17181 if diff conftest.exp conftest.er2 >/dev/null; then 17182 lt_prog_compiler_static_works_GCJ=yes 17183 fi 17184 else 17185 lt_prog_compiler_static_works_GCJ=yes 17186 fi 17187 fi 17188 $rm conftest* 17189 LDFLAGS="$save_LDFLAGS" 17190 17191fi 17192{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17193$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; } 17194 17195if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17196 : 17197else 17198 lt_prog_compiler_static_GCJ= 17199fi 17200 17201 17202{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17204if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17205 $as_echo_n "(cached) " >&6 17206else 17207 lt_cv_prog_compiler_c_o_GCJ=no 17208 $rm -r conftest 2>/dev/null 17209 mkdir conftest 17210 cd conftest 17211 mkdir out 17212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17213 17214 lt_compiler_flag="-o out/conftest2.$ac_objext" 17215 # Insert the option either (1) after the last *FLAGS variable, or 17216 # (2) before a word containing "conftest.", or (3) at the end. 17217 # Note that $ac_compile itself does not contain backslashes and begins 17218 # with a dollar sign (not a hyphen), so the echo should work correctly. 17219 lt_compile=`echo "$ac_compile" | $SED \ 17220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17222 -e 's:$: $lt_compiler_flag:'` 17223 (eval echo "\"\$as_me:17223: $lt_compile\"" >&5) 17224 (eval "$lt_compile" 2>out/conftest.err) 17225 ac_status=$? 17226 cat out/conftest.err >&5 17227 echo "$as_me:17227: \$? = $ac_status" >&5 17228 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17229 then 17230 # The compiler can only warn and ignore the option if not recognized 17231 # So say no if there are warnings 17232 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17235 lt_cv_prog_compiler_c_o_GCJ=yes 17236 fi 17237 fi 17238 chmod u+w . 2>&5 17239 $rm conftest* 17240 # SGI C++ compiler will create directory out/ii_files/ for 17241 # template instantiation 17242 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17243 $rm out/* && rmdir out 17244 cd .. 17245 rmdir conftest 17246 $rm conftest* 17247 17248fi 17249{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17250$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17251 17252 17253hard_links="nottested" 17254if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17255 # do not overwrite the value of need_locks provided by the user 17256 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17257$as_echo_n "checking if we can lock with hard links... " >&6; } 17258 hard_links=yes 17259 $rm conftest* 17260 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17261 touch conftest.a 17262 ln conftest.a conftest.b 2>&5 || hard_links=no 17263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17264 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17265$as_echo "$hard_links" >&6; } 17266 if test "$hard_links" = no; then 17267 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17268$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17269 need_locks=warn 17270 fi 17271else 17272 need_locks=no 17273fi 17274 17275{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17276$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17277 17278 runpath_var= 17279 allow_undefined_flag_GCJ= 17280 enable_shared_with_static_runtimes_GCJ=no 17281 archive_cmds_GCJ= 17282 archive_expsym_cmds_GCJ= 17283 old_archive_From_new_cmds_GCJ= 17284 old_archive_from_expsyms_cmds_GCJ= 17285 export_dynamic_flag_spec_GCJ= 17286 whole_archive_flag_spec_GCJ= 17287 thread_safe_flag_spec_GCJ= 17288 hardcode_libdir_flag_spec_GCJ= 17289 hardcode_libdir_flag_spec_ld_GCJ= 17290 hardcode_libdir_separator_GCJ= 17291 hardcode_direct_GCJ=no 17292 hardcode_minus_L_GCJ=no 17293 hardcode_shlibpath_var_GCJ=unsupported 17294 link_all_deplibs_GCJ=unknown 17295 hardcode_automatic_GCJ=no 17296 module_cmds_GCJ= 17297 module_expsym_cmds_GCJ= 17298 always_export_symbols_GCJ=no 17299 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17300 # include_expsyms should be a list of space-separated symbols to be *always* 17301 # included in the symbol list 17302 include_expsyms_GCJ= 17303 # exclude_expsyms can be an extended regexp of symbols to exclude 17304 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17306 # as well as any symbol that contains `d'. 17307 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17309 # platforms (ab)use it in PIC code, but their linkers get confused if 17310 # the symbol is explicitly referenced. Since portable code cannot 17311 # rely on this symbol name, it's probably fine to never include it in 17312 # preloaded symbol tables. 17313 extract_expsyms_cmds= 17314 # Just being paranoid about ensuring that cc_basename is set. 17315 for cc_temp in $compiler""; do 17316 case $cc_temp in 17317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17319 \-*) ;; 17320 *) break;; 17321 esac 17322done 17323cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17324 17325 case $host_os in 17326 cygwin* | mingw* | pw32*) 17327 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17328 # When not using gcc, we currently assume that we are using 17329 # Microsoft Visual C++. 17330 if test "$GCC" != yes; then 17331 with_gnu_ld=no 17332 fi 17333 ;; 17334 interix*) 17335 # we just hope/assume this is gcc and not c89 (= MSVC++) 17336 with_gnu_ld=yes 17337 ;; 17338 openbsd*) 17339 with_gnu_ld=no 17340 ;; 17341 esac 17342 17343 ld_shlibs_GCJ=yes 17344 if test "$with_gnu_ld" = yes; then 17345 # If archive_cmds runs LD, not CC, wlarc should be empty 17346 wlarc='${wl}' 17347 17348 # Set some defaults for GNU ld with shared library support. These 17349 # are reset later if shared libraries are not supported. Putting them 17350 # here allows them to be overridden if necessary. 17351 runpath_var=LD_RUN_PATH 17352 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17353 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17354 # ancient GNU ld didn't support --whole-archive et. al. 17355 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17356 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17357 else 17358 whole_archive_flag_spec_GCJ= 17359 fi 17360 supports_anon_versioning=no 17361 case `$LD -v 2>/dev/null` in 17362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17365 *\ 2.11.*) ;; # other 2.11 versions 17366 *) supports_anon_versioning=yes ;; 17367 esac 17368 17369 # See if GNU ld supports shared libraries. 17370 case $host_os in 17371 aix3* | aix4* | aix5*) 17372 # On AIX/PPC, the GNU linker is very broken 17373 if test "$host_cpu" != ia64; then 17374 ld_shlibs_GCJ=no 17375 cat <<EOF 1>&2 17376 17377*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17378*** to be unable to reliably create shared libraries on AIX. 17379*** Therefore, libtool is disabling shared libraries support. If you 17380*** really care for shared libraries, you may want to modify your PATH 17381*** so that a non-GNU linker is found, and then restart. 17382 17383EOF 17384 fi 17385 ;; 17386 17387 amigaos*) 17388 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)' 17389 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17390 hardcode_minus_L_GCJ=yes 17391 17392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17393 # that the semantics of dynamic libraries on AmigaOS, at least up 17394 # to version 4, is to share data among multiple programs linked 17395 # with the same dynamic library. Since this doesn't match the 17396 # behavior of shared libraries on other platforms, we can't use 17397 # them. 17398 ld_shlibs_GCJ=no 17399 ;; 17400 17401 beos*) 17402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17403 allow_undefined_flag_GCJ=unsupported 17404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17405 # support --undefined. This deserves some investigation. FIXME 17406 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17407 else 17408 ld_shlibs_GCJ=no 17409 fi 17410 ;; 17411 17412 cygwin* | mingw* | pw32*) 17413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17414 # as there is no search path for DLLs. 17415 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17416 allow_undefined_flag_GCJ=unsupported 17417 always_export_symbols_GCJ=no 17418 enable_shared_with_static_runtimes_GCJ=yes 17419 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17420 17421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17423 # If the export-symbols file already is a .def file (1st line 17424 # is EXPORTS), use it as is; otherwise, prepend... 17425 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17426 cp $export_symbols $output_objdir/$soname.def; 17427 else 17428 echo EXPORTS > $output_objdir/$soname.def; 17429 cat $export_symbols >> $output_objdir/$soname.def; 17430 fi~ 17431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17432 else 17433 ld_shlibs_GCJ=no 17434 fi 17435 ;; 17436 17437 interix[3-9]*) 17438 hardcode_direct_GCJ=no 17439 hardcode_shlibpath_var_GCJ=no 17440 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17441 export_dynamic_flag_spec_GCJ='${wl}-E' 17442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17443 # Instead, shared libraries are loaded at an image base (0x10000000 by 17444 # default) and relocated if they conflict, which is a slow very memory 17445 # consuming and fragmenting process. To avoid this, we pick a random, 17446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17447 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17448 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' 17449 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' 17450 ;; 17451 17452 gnu* | linux* | k*bsd*-gnu) 17453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17454 tmp_addflag= 17455 case $cc_basename,$host_cpu in 17456 pgcc*) # Portland Group C compiler 17457 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' 17458 tmp_addflag=' $pic_flag' 17459 ;; 17460 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17461 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' 17462 tmp_addflag=' $pic_flag -Mnomain' ;; 17463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17464 tmp_addflag=' -i_dynamic' ;; 17465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17466 tmp_addflag=' -i_dynamic -nofor_main' ;; 17467 ifc* | ifort*) # Intel Fortran compiler 17468 tmp_addflag=' -nofor_main' ;; 17469 esac 17470 case `$CC -V 2>&1 | sed 5q` in 17471 *Sun\ C*) # Sun C 5.9 17472 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' 17473 tmp_sharedflag='-G' ;; 17474 *Sun\ F*) # Sun Fortran 8.3 17475 tmp_sharedflag='-G' ;; 17476 *) 17477 tmp_sharedflag='-shared' ;; 17478 esac 17479 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17480 17481 if test $supports_anon_versioning = yes; then 17482 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17484 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17486 fi 17487 else 17488 ld_shlibs_GCJ=no 17489 fi 17490 ;; 17491 17492 netbsd*) 17493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17494 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17495 wlarc= 17496 else 17497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17499 fi 17500 ;; 17501 17502 solaris*) 17503 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17504 ld_shlibs_GCJ=no 17505 cat <<EOF 1>&2 17506 17507*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17508*** create shared libraries on Solaris systems. Therefore, libtool 17509*** is disabling shared libraries support. We urge you to upgrade GNU 17510*** binutils to release 2.9.1 or newer. Another option is to modify 17511*** your PATH or compiler configuration so that the native linker is 17512*** used, and then restart. 17513 17514EOF 17515 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17518 else 17519 ld_shlibs_GCJ=no 17520 fi 17521 ;; 17522 17523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17524 case `$LD -v 2>&1` in 17525 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17526 ld_shlibs_GCJ=no 17527 cat <<_LT_EOF 1>&2 17528 17529*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17530*** reliably create shared libraries on SCO systems. Therefore, libtool 17531*** is disabling shared libraries support. We urge you to upgrade GNU 17532*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17533*** your PATH or compiler configuration so that the native linker is 17534*** used, and then restart. 17535 17536_LT_EOF 17537 ;; 17538 *) 17539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17540 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17542 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17543 else 17544 ld_shlibs_GCJ=no 17545 fi 17546 ;; 17547 esac 17548 ;; 17549 17550 sunos4*) 17551 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17552 wlarc= 17553 hardcode_direct_GCJ=yes 17554 hardcode_shlibpath_var_GCJ=no 17555 ;; 17556 17557 *) 17558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17561 else 17562 ld_shlibs_GCJ=no 17563 fi 17564 ;; 17565 esac 17566 17567 if test "$ld_shlibs_GCJ" = no; then 17568 runpath_var= 17569 hardcode_libdir_flag_spec_GCJ= 17570 export_dynamic_flag_spec_GCJ= 17571 whole_archive_flag_spec_GCJ= 17572 fi 17573 else 17574 # PORTME fill in a description of your system's linker (not GNU ld) 17575 case $host_os in 17576 aix3*) 17577 allow_undefined_flag_GCJ=unsupported 17578 always_export_symbols_GCJ=yes 17579 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' 17580 # Note: this linker hardcodes the directories in LIBPATH if there 17581 # are no directories specified by -L. 17582 hardcode_minus_L_GCJ=yes 17583 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17584 # Neither direct hardcoding nor static linking is supported with a 17585 # broken collect2. 17586 hardcode_direct_GCJ=unsupported 17587 fi 17588 ;; 17589 17590 aix4* | aix5*) 17591 if test "$host_cpu" = ia64; then 17592 # On IA64, the linker does run time linking by default, so we don't 17593 # have to do anything special. 17594 aix_use_runtimelinking=no 17595 exp_sym_flag='-Bexport' 17596 no_entry_flag="" 17597 else 17598 # If we're using GNU nm, then we don't want the "-C" option. 17599 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17600 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17601 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' 17602 else 17603 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' 17604 fi 17605 aix_use_runtimelinking=no 17606 17607 # Test if we are trying to use run time linking or normal 17608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17609 # need to do runtime linking. 17610 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17611 for ld_flag in $LDFLAGS; do 17612 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17613 aix_use_runtimelinking=yes 17614 break 17615 fi 17616 done 17617 ;; 17618 esac 17619 17620 exp_sym_flag='-bexport' 17621 no_entry_flag='-bnoentry' 17622 fi 17623 17624 # When large executables or shared objects are built, AIX ld can 17625 # have problems creating the table of contents. If linking a library 17626 # or program results in "error TOC overflow" add -mminimal-toc to 17627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17629 17630 archive_cmds_GCJ='' 17631 hardcode_direct_GCJ=yes 17632 hardcode_libdir_separator_GCJ=':' 17633 link_all_deplibs_GCJ=yes 17634 17635 if test "$GCC" = yes; then 17636 case $host_os in aix4.[012]|aix4.[012].*) 17637 # We only want to do this on AIX 4.2 and lower, the check 17638 # below for broken collect2 doesn't work under 4.3+ 17639 collect2name=`${CC} -print-prog-name=collect2` 17640 if test -f "$collect2name" && \ 17641 strings "$collect2name" | grep resolve_lib_name >/dev/null 17642 then 17643 # We have reworked collect2 17644 : 17645 else 17646 # We have old collect2 17647 hardcode_direct_GCJ=unsupported 17648 # It fails to find uninstalled libraries when the uninstalled 17649 # path is not listed in the libpath. Setting hardcode_minus_L 17650 # to unsupported forces relinking 17651 hardcode_minus_L_GCJ=yes 17652 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17653 hardcode_libdir_separator_GCJ= 17654 fi 17655 ;; 17656 esac 17657 shared_flag='-shared' 17658 if test "$aix_use_runtimelinking" = yes; then 17659 shared_flag="$shared_flag "'${wl}-G' 17660 fi 17661 else 17662 # not using gcc 17663 if test "$host_cpu" = ia64; then 17664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17665 # chokes on -Wl,-G. The following line is correct: 17666 shared_flag='-G' 17667 else 17668 if test "$aix_use_runtimelinking" = yes; then 17669 shared_flag='${wl}-G' 17670 else 17671 shared_flag='${wl}-bM:SRE' 17672 fi 17673 fi 17674 fi 17675 17676 # It seems that -bexpall does not export symbols beginning with 17677 # underscore (_), so it is better to generate a list of symbols to export. 17678 always_export_symbols_GCJ=yes 17679 if test "$aix_use_runtimelinking" = yes; then 17680 # Warning - without using the other runtime loading flags (-brtl), 17681 # -berok will link without error, but may produce a broken library. 17682 allow_undefined_flag_GCJ='-berok' 17683 # Determine the default libpath from the value encoded in an empty executable. 17684 cat >conftest.$ac_ext <<_ACEOF 17685/* confdefs.h. */ 17686_ACEOF 17687cat confdefs.h >>conftest.$ac_ext 17688cat >>conftest.$ac_ext <<_ACEOF 17689/* end confdefs.h. */ 17690 17691int 17692main () 17693{ 17694 17695 ; 17696 return 0; 17697} 17698_ACEOF 17699rm -f conftest.$ac_objext conftest$ac_exeext 17700if { (ac_try="$ac_link" 17701case "(($ac_try" in 17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17703 *) ac_try_echo=$ac_try;; 17704esac 17705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17706$as_echo "$ac_try_echo") >&5 17707 (eval "$ac_link") 2>conftest.er1 17708 ac_status=$? 17709 grep -v '^ *+' conftest.er1 >conftest.err 17710 rm -f conftest.er1 17711 cat conftest.err >&5 17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17713 (exit $ac_status); } && { 17714 test -z "$ac_c_werror_flag" || 17715 test ! -s conftest.err 17716 } && test -s conftest$ac_exeext && { 17717 test "$cross_compiling" = yes || 17718 $as_test_x conftest$ac_exeext 17719 }; then 17720 17721lt_aix_libpath_sed=' 17722 /Import File Strings/,/^$/ { 17723 /^0/ { 17724 s/^0 *\(.*\)$/\1/ 17725 p 17726 } 17727 }' 17728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17729# Check for a 64-bit object if we didn't find anything. 17730if test -z "$aix_libpath"; then 17731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17732fi 17733else 17734 $as_echo "$as_me: failed program was:" >&5 17735sed 's/^/| /' conftest.$ac_ext >&5 17736 17737 17738fi 17739 17740rm -rf conftest.dSYM 17741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17742 conftest$ac_exeext conftest.$ac_ext 17743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17744 17745 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17746 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" 17747 else 17748 if test "$host_cpu" = ia64; then 17749 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17750 allow_undefined_flag_GCJ="-z nodefs" 17751 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" 17752 else 17753 # Determine the default libpath from the value encoded in an empty executable. 17754 cat >conftest.$ac_ext <<_ACEOF 17755/* confdefs.h. */ 17756_ACEOF 17757cat confdefs.h >>conftest.$ac_ext 17758cat >>conftest.$ac_ext <<_ACEOF 17759/* end confdefs.h. */ 17760 17761int 17762main () 17763{ 17764 17765 ; 17766 return 0; 17767} 17768_ACEOF 17769rm -f conftest.$ac_objext conftest$ac_exeext 17770if { (ac_try="$ac_link" 17771case "(($ac_try" in 17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17773 *) ac_try_echo=$ac_try;; 17774esac 17775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17776$as_echo "$ac_try_echo") >&5 17777 (eval "$ac_link") 2>conftest.er1 17778 ac_status=$? 17779 grep -v '^ *+' conftest.er1 >conftest.err 17780 rm -f conftest.er1 17781 cat conftest.err >&5 17782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17783 (exit $ac_status); } && { 17784 test -z "$ac_c_werror_flag" || 17785 test ! -s conftest.err 17786 } && test -s conftest$ac_exeext && { 17787 test "$cross_compiling" = yes || 17788 $as_test_x conftest$ac_exeext 17789 }; then 17790 17791lt_aix_libpath_sed=' 17792 /Import File Strings/,/^$/ { 17793 /^0/ { 17794 s/^0 *\(.*\)$/\1/ 17795 p 17796 } 17797 }' 17798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17799# Check for a 64-bit object if we didn't find anything. 17800if test -z "$aix_libpath"; then 17801 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17802fi 17803else 17804 $as_echo "$as_me: failed program was:" >&5 17805sed 's/^/| /' conftest.$ac_ext >&5 17806 17807 17808fi 17809 17810rm -rf conftest.dSYM 17811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17812 conftest$ac_exeext conftest.$ac_ext 17813if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17814 17815 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17816 # Warning - without using the other run time loading flags, 17817 # -berok will link without error, but may produce a broken library. 17818 no_undefined_flag_GCJ=' ${wl}-bernotok' 17819 allow_undefined_flag_GCJ=' ${wl}-berok' 17820 # Exported symbols can be pulled into shared objects from archives 17821 whole_archive_flag_spec_GCJ='$convenience' 17822 archive_cmds_need_lc_GCJ=yes 17823 # This is similar to how AIX traditionally builds its shared libraries. 17824 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' 17825 fi 17826 fi 17827 ;; 17828 17829 amigaos*) 17830 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)' 17831 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17832 hardcode_minus_L_GCJ=yes 17833 # see comment about different semantics on the GNU ld section 17834 ld_shlibs_GCJ=no 17835 ;; 17836 17837 bsdi[45]*) 17838 export_dynamic_flag_spec_GCJ=-rdynamic 17839 ;; 17840 17841 cygwin* | mingw* | pw32*) 17842 # When not using gcc, we currently assume that we are using 17843 # Microsoft Visual C++. 17844 # hardcode_libdir_flag_spec is actually meaningless, as there is 17845 # no search path for DLLs. 17846 hardcode_libdir_flag_spec_GCJ=' ' 17847 allow_undefined_flag_GCJ=unsupported 17848 # Tell ltmain to make .lib files, not .a files. 17849 libext=lib 17850 # Tell ltmain to make .dll files, not .so files. 17851 shrext_cmds=".dll" 17852 # FIXME: Setting linknames here is a bad hack. 17853 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17854 # The linker will automatically build a .lib file if we build a DLL. 17855 old_archive_From_new_cmds_GCJ='true' 17856 # FIXME: Should let the user specify the lib program. 17857 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17858 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17859 enable_shared_with_static_runtimes_GCJ=yes 17860 ;; 17861 17862 darwin* | rhapsody*) 17863 case $host_os in 17864 rhapsody* | darwin1.[012]) 17865 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17866 ;; 17867 *) # Darwin 1.3 on 17868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17869 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17870 else 17871 case ${MACOSX_DEPLOYMENT_TARGET} in 17872 10.[012]) 17873 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17874 ;; 17875 10.*) 17876 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17877 ;; 17878 esac 17879 fi 17880 ;; 17881 esac 17882 archive_cmds_need_lc_GCJ=no 17883 hardcode_direct_GCJ=no 17884 hardcode_automatic_GCJ=yes 17885 hardcode_shlibpath_var_GCJ=unsupported 17886 whole_archive_flag_spec_GCJ='' 17887 link_all_deplibs_GCJ=yes 17888 if test "$GCC" = yes ; then 17889 output_verbose_link_cmd='echo' 17890 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17891 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17893 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}' 17894 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}' 17895 else 17896 case $cc_basename in 17897 xlc*) 17898 output_verbose_link_cmd='echo' 17899 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17900 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17902 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}' 17903 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}' 17904 ;; 17905 *) 17906 ld_shlibs_GCJ=no 17907 ;; 17908 esac 17909 fi 17910 ;; 17911 17912 dgux*) 17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17914 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17915 hardcode_shlibpath_var_GCJ=no 17916 ;; 17917 17918 freebsd1*) 17919 ld_shlibs_GCJ=no 17920 ;; 17921 17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17923 # support. Future versions do this automatically, but an explicit c++rt0.o 17924 # does not break anything, and helps significantly (at the cost of a little 17925 # extra space). 17926 freebsd2.2*) 17927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17928 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17929 hardcode_direct_GCJ=yes 17930 hardcode_shlibpath_var_GCJ=no 17931 ;; 17932 17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17934 freebsd2*) 17935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17936 hardcode_direct_GCJ=yes 17937 hardcode_minus_L_GCJ=yes 17938 hardcode_shlibpath_var_GCJ=no 17939 ;; 17940 17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17942 freebsd* | dragonfly*) 17943 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17944 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17945 hardcode_direct_GCJ=yes 17946 hardcode_shlibpath_var_GCJ=no 17947 ;; 17948 17949 hpux9*) 17950 if test "$GCC" = yes; then 17951 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' 17952 else 17953 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' 17954 fi 17955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17956 hardcode_libdir_separator_GCJ=: 17957 hardcode_direct_GCJ=yes 17958 17959 # hardcode_minus_L: Not really in the search PATH, 17960 # but as the default location of the library. 17961 hardcode_minus_L_GCJ=yes 17962 export_dynamic_flag_spec_GCJ='${wl}-E' 17963 ;; 17964 17965 hpux10*) 17966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17967 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17968 else 17969 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17970 fi 17971 if test "$with_gnu_ld" = no; then 17972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17973 hardcode_libdir_separator_GCJ=: 17974 17975 hardcode_direct_GCJ=yes 17976 export_dynamic_flag_spec_GCJ='${wl}-E' 17977 17978 # hardcode_minus_L: Not really in the search PATH, 17979 # but as the default location of the library. 17980 hardcode_minus_L_GCJ=yes 17981 fi 17982 ;; 17983 17984 hpux11*) 17985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17986 case $host_cpu in 17987 hppa*64*) 17988 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17989 ;; 17990 ia64*) 17991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17992 ;; 17993 *) 17994 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17995 ;; 17996 esac 17997 else 17998 case $host_cpu in 17999 hppa*64*) 18000 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18001 ;; 18002 ia64*) 18003 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18004 ;; 18005 *) 18006 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18007 ;; 18008 esac 18009 fi 18010 if test "$with_gnu_ld" = no; then 18011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18012 hardcode_libdir_separator_GCJ=: 18013 18014 case $host_cpu in 18015 hppa*64*|ia64*) 18016 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18017 hardcode_direct_GCJ=no 18018 hardcode_shlibpath_var_GCJ=no 18019 ;; 18020 *) 18021 hardcode_direct_GCJ=yes 18022 export_dynamic_flag_spec_GCJ='${wl}-E' 18023 18024 # hardcode_minus_L: Not really in the search PATH, 18025 # but as the default location of the library. 18026 hardcode_minus_L_GCJ=yes 18027 ;; 18028 esac 18029 fi 18030 ;; 18031 18032 irix5* | irix6* | nonstopux*) 18033 if test "$GCC" = yes; then 18034 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' 18035 else 18036 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' 18037 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18038 fi 18039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18040 hardcode_libdir_separator_GCJ=: 18041 link_all_deplibs_GCJ=yes 18042 ;; 18043 18044 netbsd*) 18045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18046 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18047 else 18048 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18049 fi 18050 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18051 hardcode_direct_GCJ=yes 18052 hardcode_shlibpath_var_GCJ=no 18053 ;; 18054 18055 newsos6) 18056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18057 hardcode_direct_GCJ=yes 18058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18059 hardcode_libdir_separator_GCJ=: 18060 hardcode_shlibpath_var_GCJ=no 18061 ;; 18062 18063 openbsd*) 18064 if test -f /usr/libexec/ld.so; then 18065 hardcode_direct_GCJ=yes 18066 hardcode_shlibpath_var_GCJ=no 18067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18069 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18071 export_dynamic_flag_spec_GCJ='${wl}-E' 18072 else 18073 case $host_os in 18074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18076 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18077 ;; 18078 *) 18079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18081 ;; 18082 esac 18083 fi 18084 else 18085 ld_shlibs_GCJ=no 18086 fi 18087 ;; 18088 18089 os2*) 18090 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18091 hardcode_minus_L_GCJ=yes 18092 allow_undefined_flag_GCJ=unsupported 18093 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' 18094 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18095 ;; 18096 18097 osf3*) 18098 if test "$GCC" = yes; then 18099 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18100 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' 18101 else 18102 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18103 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' 18104 fi 18105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18106 hardcode_libdir_separator_GCJ=: 18107 ;; 18108 18109 osf4* | osf5*) # as osf3* with the addition of -msym flag 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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18114 else 18115 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18116 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' 18117 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~ 18118 $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' 18119 18120 # Both c and cxx compiler support -rpath directly 18121 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18122 fi 18123 hardcode_libdir_separator_GCJ=: 18124 ;; 18125 18126 solaris*) 18127 no_undefined_flag_GCJ=' -z text' 18128 if test "$GCC" = yes; then 18129 wlarc='${wl}' 18130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18133 else 18134 wlarc='' 18135 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18136 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18138 fi 18139 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18140 hardcode_shlibpath_var_GCJ=no 18141 case $host_os in 18142 solaris2.[0-5] | solaris2.[0-5].*) ;; 18143 *) 18144 # The compiler driver will combine and reorder linker options, 18145 # but understands `-z linker_flag'. GCC discards it without `$wl', 18146 # but is careful enough not to reorder. 18147 # Supported since Solaris 2.6 (maybe 2.5.1?) 18148 if test "$GCC" = yes; then 18149 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18150 else 18151 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18152 fi 18153 ;; 18154 esac 18155 link_all_deplibs_GCJ=yes 18156 ;; 18157 18158 sunos4*) 18159 if test "x$host_vendor" = xsequent; then 18160 # Use $CC to link under sequent, because it throws in some extra .o 18161 # files that make .init and .fini sections work. 18162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18163 else 18164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18165 fi 18166 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18167 hardcode_direct_GCJ=yes 18168 hardcode_minus_L_GCJ=yes 18169 hardcode_shlibpath_var_GCJ=no 18170 ;; 18171 18172 sysv4) 18173 case $host_vendor in 18174 sni) 18175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18176 hardcode_direct_GCJ=yes # is this really true??? 18177 ;; 18178 siemens) 18179 ## LD is ld it makes a PLAMLIB 18180 ## CC just makes a GrossModule. 18181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18182 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18183 hardcode_direct_GCJ=no 18184 ;; 18185 motorola) 18186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18188 ;; 18189 esac 18190 runpath_var='LD_RUN_PATH' 18191 hardcode_shlibpath_var_GCJ=no 18192 ;; 18193 18194 sysv4.3*) 18195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18196 hardcode_shlibpath_var_GCJ=no 18197 export_dynamic_flag_spec_GCJ='-Bexport' 18198 ;; 18199 18200 sysv4*MP*) 18201 if test -d /usr/nec; then 18202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18203 hardcode_shlibpath_var_GCJ=no 18204 runpath_var=LD_RUN_PATH 18205 hardcode_runpath_var=yes 18206 ld_shlibs_GCJ=yes 18207 fi 18208 ;; 18209 18210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18211 no_undefined_flag_GCJ='${wl}-z,text' 18212 archive_cmds_need_lc_GCJ=no 18213 hardcode_shlibpath_var_GCJ=no 18214 runpath_var='LD_RUN_PATH' 18215 18216 if test "$GCC" = yes; then 18217 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18218 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18219 else 18220 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18221 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18222 fi 18223 ;; 18224 18225 sysv5* | sco3.2v5* | sco5v6*) 18226 # Note: We can NOT use -z defs as we might desire, because we do not 18227 # link with -lc, and that would cause any symbols used from libc to 18228 # always be unresolved, which means just about no library would 18229 # ever link correctly. If we're not using GNU ld we use -z text 18230 # though, which does catch some bad symbols but isn't as heavy-handed 18231 # as -z defs. 18232 no_undefined_flag_GCJ='${wl}-z,text' 18233 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18234 archive_cmds_need_lc_GCJ=no 18235 hardcode_shlibpath_var_GCJ=no 18236 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18237 hardcode_libdir_separator_GCJ=':' 18238 link_all_deplibs_GCJ=yes 18239 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18240 runpath_var='LD_RUN_PATH' 18241 18242 if test "$GCC" = yes; then 18243 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18244 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18245 else 18246 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18247 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18248 fi 18249 ;; 18250 18251 uts4*) 18252 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18253 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18254 hardcode_shlibpath_var_GCJ=no 18255 ;; 18256 18257 *) 18258 ld_shlibs_GCJ=no 18259 ;; 18260 esac 18261 fi 18262 18263{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18264$as_echo "$ld_shlibs_GCJ" >&6; } 18265test "$ld_shlibs_GCJ" = no && can_build_shared=no 18266 18267# 18268# Do we need to explicitly link libc? 18269# 18270case "x$archive_cmds_need_lc_GCJ" in 18271x|xyes) 18272 # Assume -lc should be added 18273 archive_cmds_need_lc_GCJ=yes 18274 18275 if test "$enable_shared" = yes && test "$GCC" = yes; then 18276 case $archive_cmds_GCJ in 18277 *'~'*) 18278 # FIXME: we may have to deal with multi-command sequences. 18279 ;; 18280 '$CC '*) 18281 # Test whether the compiler implicitly links with -lc since on some 18282 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18283 # to ld, don't add -lc before -lgcc. 18284 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18285$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18286 $rm conftest* 18287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18288 18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18290 (eval $ac_compile) 2>&5 18291 ac_status=$? 18292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18293 (exit $ac_status); } 2>conftest.err; then 18294 soname=conftest 18295 lib=conftest 18296 libobjs=conftest.$ac_objext 18297 deplibs= 18298 wl=$lt_prog_compiler_wl_GCJ 18299 pic_flag=$lt_prog_compiler_pic_GCJ 18300 compiler_flags=-v 18301 linker_flags=-v 18302 verstring= 18303 output_objdir=. 18304 libname=conftest 18305 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18306 allow_undefined_flag_GCJ= 18307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18308 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18309 ac_status=$? 18310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18311 (exit $ac_status); } 18312 then 18313 archive_cmds_need_lc_GCJ=no 18314 else 18315 archive_cmds_need_lc_GCJ=yes 18316 fi 18317 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18318 else 18319 cat conftest.err 1>&5 18320 fi 18321 $rm conftest* 18322 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18323$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18324 ;; 18325 esac 18326 fi 18327 ;; 18328esac 18329 18330{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18331$as_echo_n "checking dynamic linker characteristics... " >&6; } 18332library_names_spec= 18333libname_spec='lib$name' 18334soname_spec= 18335shrext_cmds=".so" 18336postinstall_cmds= 18337postuninstall_cmds= 18338finish_cmds= 18339finish_eval= 18340shlibpath_var= 18341shlibpath_overrides_runpath=unknown 18342version_type=none 18343dynamic_linker="$host_os ld.so" 18344sys_lib_dlsearch_path_spec="/lib /usr/lib" 18345 18346need_lib_prefix=unknown 18347hardcode_into_libs=no 18348 18349# when you set need_version to no, make sure it does not cause -set_version 18350# flags to be left without arguments 18351need_version=unknown 18352 18353case $host_os in 18354aix3*) 18355 version_type=linux 18356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18357 shlibpath_var=LIBPATH 18358 18359 # AIX 3 has no versioning support, so we append a major version to the name. 18360 soname_spec='${libname}${release}${shared_ext}$major' 18361 ;; 18362 18363aix4* | aix5*) 18364 version_type=linux 18365 need_lib_prefix=no 18366 need_version=no 18367 hardcode_into_libs=yes 18368 if test "$host_cpu" = ia64; then 18369 # AIX 5 supports IA64 18370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18371 shlibpath_var=LD_LIBRARY_PATH 18372 else 18373 # With GCC up to 2.95.x, collect2 would create an import file 18374 # for dependence libraries. The import file would start with 18375 # the line `#! .'. This would cause the generated library to 18376 # depend on `.', always an invalid library. This was fixed in 18377 # development snapshots of GCC prior to 3.0. 18378 case $host_os in 18379 aix4 | aix4.[01] | aix4.[01].*) 18380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18381 echo ' yes ' 18382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18383 : 18384 else 18385 can_build_shared=no 18386 fi 18387 ;; 18388 esac 18389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18390 # soname into executable. Probably we can add versioning support to 18391 # collect2, so additional links can be useful in future. 18392 if test "$aix_use_runtimelinking" = yes; then 18393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18394 # instead of lib<name>.a to let people know that these are not 18395 # typical AIX shared libraries. 18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18397 else 18398 # We preserve .a as extension for shared libraries through AIX4.2 18399 # and later when we are not doing run time linking. 18400 library_names_spec='${libname}${release}.a $libname.a' 18401 soname_spec='${libname}${release}${shared_ext}$major' 18402 fi 18403 shlibpath_var=LIBPATH 18404 fi 18405 ;; 18406 18407amigaos*) 18408 library_names_spec='$libname.ixlibrary $libname.a' 18409 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18410 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' 18411 ;; 18412 18413beos*) 18414 library_names_spec='${libname}${shared_ext}' 18415 dynamic_linker="$host_os ld.so" 18416 shlibpath_var=LIBRARY_PATH 18417 ;; 18418 18419bsdi[45]*) 18420 version_type=linux 18421 need_version=no 18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18423 soname_spec='${libname}${release}${shared_ext}$major' 18424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18425 shlibpath_var=LD_LIBRARY_PATH 18426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18428 # the default ld.so.conf also contains /usr/contrib/lib and 18429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18430 # libtool to hard-code these into programs 18431 ;; 18432 18433cygwin* | mingw* | pw32*) 18434 version_type=windows 18435 shrext_cmds=".dll" 18436 need_version=no 18437 need_lib_prefix=no 18438 18439 case $GCC,$host_os in 18440 yes,cygwin* | yes,mingw* | yes,pw32*) 18441 library_names_spec='$libname.dll.a' 18442 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18443 postinstall_cmds='base_file=`basename \${file}`~ 18444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18445 dldir=$destdir/`dirname \$dlpath`~ 18446 test -d \$dldir || mkdir -p \$dldir~ 18447 $install_prog $dir/$dlname \$dldir/$dlname~ 18448 chmod a+x \$dldir/$dlname' 18449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18450 dlpath=$dir/\$dldll~ 18451 $rm \$dlpath' 18452 shlibpath_overrides_runpath=yes 18453 18454 case $host_os in 18455 cygwin*) 18456 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18458 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18459 ;; 18460 mingw*) 18461 # MinGW DLLs use traditional 'lib' prefix 18462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18464 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18465 # It is most probably a Windows format PATH printed by 18466 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18467 # path with ; separators, and with drive letters. We can handle the 18468 # drive letters (cygwin fileutils understands them), so leave them, 18469 # especially as we might pass files found there to a mingw objdump, 18470 # which wouldn't understand a cygwinified path. Ahh. 18471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18472 else 18473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18474 fi 18475 ;; 18476 pw32*) 18477 # pw32 DLLs use 'pw' prefix rather than 'lib' 18478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18479 ;; 18480 esac 18481 ;; 18482 18483 *) 18484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18485 ;; 18486 esac 18487 dynamic_linker='Win32 ld.exe' 18488 # FIXME: first we should search . and the directory the executable is in 18489 shlibpath_var=PATH 18490 ;; 18491 18492darwin* | rhapsody*) 18493 dynamic_linker="$host_os dyld" 18494 version_type=darwin 18495 need_lib_prefix=no 18496 need_version=no 18497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18498 soname_spec='${libname}${release}${major}$shared_ext' 18499 shlibpath_overrides_runpath=yes 18500 shlibpath_var=DYLD_LIBRARY_PATH 18501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18502 18503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18504 ;; 18505 18506dgux*) 18507 version_type=linux 18508 need_lib_prefix=no 18509 need_version=no 18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18511 soname_spec='${libname}${release}${shared_ext}$major' 18512 shlibpath_var=LD_LIBRARY_PATH 18513 ;; 18514 18515freebsd1*) 18516 dynamic_linker=no 18517 ;; 18518 18519freebsd* | dragonfly*) 18520 # DragonFly does not have aout. When/if they implement a new 18521 # versioning mechanism, adjust this. 18522 if test -x /usr/bin/objformat; then 18523 objformat=`/usr/bin/objformat` 18524 else 18525 case $host_os in 18526 freebsd[123]*) objformat=aout ;; 18527 *) objformat=elf ;; 18528 esac 18529 fi 18530 version_type=freebsd-$objformat 18531 case $version_type in 18532 freebsd-elf*) 18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18534 need_version=no 18535 need_lib_prefix=no 18536 ;; 18537 freebsd-*) 18538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18539 need_version=yes 18540 ;; 18541 esac 18542 shlibpath_var=LD_LIBRARY_PATH 18543 case $host_os in 18544 freebsd2*) 18545 shlibpath_overrides_runpath=yes 18546 ;; 18547 freebsd3.[01]* | freebsdelf3.[01]*) 18548 shlibpath_overrides_runpath=yes 18549 hardcode_into_libs=yes 18550 ;; 18551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18553 shlibpath_overrides_runpath=no 18554 hardcode_into_libs=yes 18555 ;; 18556 *) # from 4.6 on, and DragonFly 18557 shlibpath_overrides_runpath=yes 18558 hardcode_into_libs=yes 18559 ;; 18560 esac 18561 ;; 18562 18563gnu*) 18564 version_type=linux 18565 need_lib_prefix=no 18566 need_version=no 18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18568 soname_spec='${libname}${release}${shared_ext}$major' 18569 shlibpath_var=LD_LIBRARY_PATH 18570 hardcode_into_libs=yes 18571 ;; 18572 18573hpux9* | hpux10* | hpux11*) 18574 # Give a soname corresponding to the major version so that dld.sl refuses to 18575 # link against other versions. 18576 version_type=sunos 18577 need_lib_prefix=no 18578 need_version=no 18579 case $host_cpu in 18580 ia64*) 18581 shrext_cmds='.so' 18582 hardcode_into_libs=yes 18583 dynamic_linker="$host_os dld.so" 18584 shlibpath_var=LD_LIBRARY_PATH 18585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18587 soname_spec='${libname}${release}${shared_ext}$major' 18588 if test "X$HPUX_IA64_MODE" = X32; then 18589 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18590 else 18591 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18592 fi 18593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18594 ;; 18595 hppa*64*) 18596 shrext_cmds='.sl' 18597 hardcode_into_libs=yes 18598 dynamic_linker="$host_os dld.sl" 18599 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18602 soname_spec='${libname}${release}${shared_ext}$major' 18603 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18605 ;; 18606 *) 18607 shrext_cmds='.sl' 18608 dynamic_linker="$host_os dld.sl" 18609 shlibpath_var=SHLIB_PATH 18610 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18612 soname_spec='${libname}${release}${shared_ext}$major' 18613 ;; 18614 esac 18615 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18616 postinstall_cmds='chmod 555 $lib' 18617 ;; 18618 18619interix[3-9]*) 18620 version_type=linux 18621 need_lib_prefix=no 18622 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18626 shlibpath_var=LD_LIBRARY_PATH 18627 shlibpath_overrides_runpath=no 18628 hardcode_into_libs=yes 18629 ;; 18630 18631irix5* | irix6* | nonstopux*) 18632 case $host_os in 18633 nonstopux*) version_type=nonstopux ;; 18634 *) 18635 if test "$lt_cv_prog_gnu_ld" = yes; then 18636 version_type=linux 18637 else 18638 version_type=irix 18639 fi ;; 18640 esac 18641 need_lib_prefix=no 18642 need_version=no 18643 soname_spec='${libname}${release}${shared_ext}$major' 18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18645 case $host_os in 18646 irix5* | nonstopux*) 18647 libsuff= shlibsuff= 18648 ;; 18649 *) 18650 case $LD in # libtool.m4 will add one of these switches to LD 18651 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18652 libsuff= shlibsuff= libmagic=32-bit;; 18653 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18654 libsuff=32 shlibsuff=N32 libmagic=N32;; 18655 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18656 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18657 *) libsuff= shlibsuff= libmagic=never-match;; 18658 esac 18659 ;; 18660 esac 18661 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18662 shlibpath_overrides_runpath=no 18663 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18664 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18665 hardcode_into_libs=yes 18666 ;; 18667 18668# No shared lib support for Linux oldld, aout, or coff. 18669linux*oldld* | linux*aout* | linux*coff*) 18670 dynamic_linker=no 18671 ;; 18672 18673# This must be Linux ELF. 18674linux* | k*bsd*-gnu) 18675 version_type=linux 18676 need_lib_prefix=no 18677 need_version=no 18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18679 soname_spec='${libname}${release}${shared_ext}$major' 18680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18681 shlibpath_var=LD_LIBRARY_PATH 18682 shlibpath_overrides_runpath=no 18683 # This implies no fast_install, which is unacceptable. 18684 # Some rework will be needed to allow for fast_install 18685 # before this can be enabled. 18686 hardcode_into_libs=yes 18687 18688 # Append ld.so.conf contents to the search path 18689 if test -f /etc/ld.so.conf; then 18690 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' ' '` 18691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18692 fi 18693 18694 # We used to test for /lib/ld.so.1 and disable shared libraries on 18695 # powerpc, because MkLinux only supported shared libraries with the 18696 # GNU dynamic linker. Since this was broken with cross compilers, 18697 # most powerpc-linux boxes support dynamic linking these days and 18698 # people can always --disable-shared, the test was removed, and we 18699 # assume the GNU/Linux dynamic linker is in use. 18700 dynamic_linker='GNU/Linux ld.so' 18701 ;; 18702 18703netbsd*) 18704 version_type=sunos 18705 need_lib_prefix=no 18706 need_version=no 18707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18710 dynamic_linker='NetBSD (a.out) ld.so' 18711 else 18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18713 soname_spec='${libname}${release}${shared_ext}$major' 18714 dynamic_linker='NetBSD ld.elf_so' 18715 fi 18716 shlibpath_var=LD_LIBRARY_PATH 18717 shlibpath_overrides_runpath=yes 18718 hardcode_into_libs=yes 18719 ;; 18720 18721newsos6) 18722 version_type=linux 18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18724 shlibpath_var=LD_LIBRARY_PATH 18725 shlibpath_overrides_runpath=yes 18726 ;; 18727 18728nto-qnx*) 18729 version_type=linux 18730 need_lib_prefix=no 18731 need_version=no 18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18733 soname_spec='${libname}${release}${shared_ext}$major' 18734 shlibpath_var=LD_LIBRARY_PATH 18735 shlibpath_overrides_runpath=yes 18736 ;; 18737 18738openbsd*) 18739 version_type=sunos 18740 sys_lib_dlsearch_path_spec="/usr/lib" 18741 need_lib_prefix=no 18742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18743 case $host_os in 18744 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18745 *) need_version=no ;; 18746 esac 18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18749 shlibpath_var=LD_LIBRARY_PATH 18750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18751 case $host_os in 18752 openbsd2.[89] | openbsd2.[89].*) 18753 shlibpath_overrides_runpath=no 18754 ;; 18755 *) 18756 shlibpath_overrides_runpath=yes 18757 ;; 18758 esac 18759 else 18760 shlibpath_overrides_runpath=yes 18761 fi 18762 ;; 18763 18764os2*) 18765 libname_spec='$name' 18766 shrext_cmds=".dll" 18767 need_lib_prefix=no 18768 library_names_spec='$libname${shared_ext} $libname.a' 18769 dynamic_linker='OS/2 ld.exe' 18770 shlibpath_var=LIBPATH 18771 ;; 18772 18773osf3* | osf4* | osf5*) 18774 version_type=osf 18775 need_lib_prefix=no 18776 need_version=no 18777 soname_spec='${libname}${release}${shared_ext}$major' 18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18779 shlibpath_var=LD_LIBRARY_PATH 18780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18782 ;; 18783 18784rdos*) 18785 dynamic_linker=no 18786 ;; 18787 18788solaris*) 18789 version_type=linux 18790 need_lib_prefix=no 18791 need_version=no 18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18793 soname_spec='${libname}${release}${shared_ext}$major' 18794 shlibpath_var=LD_LIBRARY_PATH 18795 shlibpath_overrides_runpath=yes 18796 hardcode_into_libs=yes 18797 # ldd complains unless libraries are executable 18798 postinstall_cmds='chmod +x $lib' 18799 ;; 18800 18801sunos4*) 18802 version_type=sunos 18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18805 shlibpath_var=LD_LIBRARY_PATH 18806 shlibpath_overrides_runpath=yes 18807 if test "$with_gnu_ld" = yes; then 18808 need_lib_prefix=no 18809 fi 18810 need_version=yes 18811 ;; 18812 18813sysv4 | sysv4.3*) 18814 version_type=linux 18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18816 soname_spec='${libname}${release}${shared_ext}$major' 18817 shlibpath_var=LD_LIBRARY_PATH 18818 case $host_vendor in 18819 sni) 18820 shlibpath_overrides_runpath=no 18821 need_lib_prefix=no 18822 export_dynamic_flag_spec='${wl}-Blargedynsym' 18823 runpath_var=LD_RUN_PATH 18824 ;; 18825 siemens) 18826 need_lib_prefix=no 18827 ;; 18828 motorola) 18829 need_lib_prefix=no 18830 need_version=no 18831 shlibpath_overrides_runpath=no 18832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18833 ;; 18834 esac 18835 ;; 18836 18837sysv4*MP*) 18838 if test -d /usr/nec ;then 18839 version_type=linux 18840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18841 soname_spec='$libname${shared_ext}.$major' 18842 shlibpath_var=LD_LIBRARY_PATH 18843 fi 18844 ;; 18845 18846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18847 version_type=freebsd-elf 18848 need_lib_prefix=no 18849 need_version=no 18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18851 soname_spec='${libname}${release}${shared_ext}$major' 18852 shlibpath_var=LD_LIBRARY_PATH 18853 hardcode_into_libs=yes 18854 if test "$with_gnu_ld" = yes; then 18855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18856 shlibpath_overrides_runpath=no 18857 else 18858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18859 shlibpath_overrides_runpath=yes 18860 case $host_os in 18861 sco3.2v5*) 18862 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18863 ;; 18864 esac 18865 fi 18866 sys_lib_dlsearch_path_spec='/usr/lib' 18867 ;; 18868 18869uts4*) 18870 version_type=linux 18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18872 soname_spec='${libname}${release}${shared_ext}$major' 18873 shlibpath_var=LD_LIBRARY_PATH 18874 ;; 18875 18876*) 18877 dynamic_linker=no 18878 ;; 18879esac 18880{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18881$as_echo "$dynamic_linker" >&6; } 18882test "$dynamic_linker" = no && can_build_shared=no 18883 18884variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18885if test "$GCC" = yes; then 18886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18887fi 18888 18889{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18890$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18891hardcode_action_GCJ= 18892if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18893 test -n "$runpath_var_GCJ" || \ 18894 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18895 18896 # We can hardcode non-existant directories. 18897 if test "$hardcode_direct_GCJ" != no && 18898 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18899 # have to relink, otherwise we might link with an installed library 18900 # when we should be linking with a yet-to-be-installed one 18901 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18902 test "$hardcode_minus_L_GCJ" != no; then 18903 # Linking always hardcodes the temporary library directory. 18904 hardcode_action_GCJ=relink 18905 else 18906 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18907 hardcode_action_GCJ=immediate 18908 fi 18909else 18910 # We cannot hardcode anything, or else we can only hardcode existing 18911 # directories. 18912 hardcode_action_GCJ=unsupported 18913fi 18914{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18915$as_echo "$hardcode_action_GCJ" >&6; } 18916 18917if test "$hardcode_action_GCJ" = relink; then 18918 # Fast installation is not supported 18919 enable_fast_install=no 18920elif test "$shlibpath_overrides_runpath" = yes || 18921 test "$enable_shared" = no; then 18922 # Fast installation is not necessary 18923 enable_fast_install=needless 18924fi 18925 18926 18927# The else clause should only fire when bootstrapping the 18928# libtool distribution, otherwise you forgot to ship ltmain.sh 18929# with your package, and you will get complaints that there are 18930# no rules to generate ltmain.sh. 18931if test -f "$ltmain"; then 18932 # See if we are running on zsh, and set the options which allow our commands through 18933 # without removal of \ escapes. 18934 if test -n "${ZSH_VERSION+set}" ; then 18935 setopt NO_GLOB_SUBST 18936 fi 18937 # Now quote all the things that may contain metacharacters while being 18938 # careful not to overquote the AC_SUBSTed values. We take copies of the 18939 # variables and quote the copies for generation of the libtool script. 18940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18941 SED SHELL STRIP \ 18942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18944 deplibs_check_method reload_flag reload_cmds need_locks \ 18945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18946 lt_cv_sys_global_symbol_to_c_name_address \ 18947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18948 old_postinstall_cmds old_postuninstall_cmds \ 18949 compiler_GCJ \ 18950 CC_GCJ \ 18951 LD_GCJ \ 18952 lt_prog_compiler_wl_GCJ \ 18953 lt_prog_compiler_pic_GCJ \ 18954 lt_prog_compiler_static_GCJ \ 18955 lt_prog_compiler_no_builtin_flag_GCJ \ 18956 export_dynamic_flag_spec_GCJ \ 18957 thread_safe_flag_spec_GCJ \ 18958 whole_archive_flag_spec_GCJ \ 18959 enable_shared_with_static_runtimes_GCJ \ 18960 old_archive_cmds_GCJ \ 18961 old_archive_from_new_cmds_GCJ \ 18962 predep_objects_GCJ \ 18963 postdep_objects_GCJ \ 18964 predeps_GCJ \ 18965 postdeps_GCJ \ 18966 compiler_lib_search_path_GCJ \ 18967 archive_cmds_GCJ \ 18968 archive_expsym_cmds_GCJ \ 18969 postinstall_cmds_GCJ \ 18970 postuninstall_cmds_GCJ \ 18971 old_archive_from_expsyms_cmds_GCJ \ 18972 allow_undefined_flag_GCJ \ 18973 no_undefined_flag_GCJ \ 18974 export_symbols_cmds_GCJ \ 18975 hardcode_libdir_flag_spec_GCJ \ 18976 hardcode_libdir_flag_spec_ld_GCJ \ 18977 hardcode_libdir_separator_GCJ \ 18978 hardcode_automatic_GCJ \ 18979 module_cmds_GCJ \ 18980 module_expsym_cmds_GCJ \ 18981 lt_cv_prog_compiler_c_o_GCJ \ 18982 fix_srcfile_path_GCJ \ 18983 exclude_expsyms_GCJ \ 18984 include_expsyms_GCJ; do 18985 18986 case $var in 18987 old_archive_cmds_GCJ | \ 18988 old_archive_from_new_cmds_GCJ | \ 18989 archive_cmds_GCJ | \ 18990 archive_expsym_cmds_GCJ | \ 18991 module_cmds_GCJ | \ 18992 module_expsym_cmds_GCJ | \ 18993 old_archive_from_expsyms_cmds_GCJ | \ 18994 export_symbols_cmds_GCJ | \ 18995 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18996 postinstall_cmds | postuninstall_cmds | \ 18997 old_postinstall_cmds | old_postuninstall_cmds | \ 18998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18999 # Double-quote double-evaled strings. 19000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19001 ;; 19002 *) 19003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19004 ;; 19005 esac 19006 done 19007 19008 case $lt_echo in 19009 *'\$0 --fallback-echo"') 19010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19011 ;; 19012 esac 19013 19014cfgfile="$ofile" 19015 19016 cat <<__EOF__ >> "$cfgfile" 19017# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19018 19019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19020 19021# Shell to use when invoking shell scripts. 19022SHELL=$lt_SHELL 19023 19024# Whether or not to build shared libraries. 19025build_libtool_libs=$enable_shared 19026 19027# Whether or not to build static libraries. 19028build_old_libs=$enable_static 19029 19030# Whether or not to add -lc for building shared libraries. 19031build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19032 19033# Whether or not to disallow shared libs when runtime libs are static 19034allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19035 19036# Whether or not to optimize for fast installation. 19037fast_install=$enable_fast_install 19038 19039# The host system. 19040host_alias=$host_alias 19041host=$host 19042host_os=$host_os 19043 19044# The build system. 19045build_alias=$build_alias 19046build=$build 19047build_os=$build_os 19048 19049# An echo program that does not interpret backslashes. 19050echo=$lt_echo 19051 19052# The archiver. 19053AR=$lt_AR 19054AR_FLAGS=$lt_AR_FLAGS 19055 19056# A C compiler. 19057LTCC=$lt_LTCC 19058 19059# LTCC compiler flags. 19060LTCFLAGS=$lt_LTCFLAGS 19061 19062# A language-specific compiler. 19063CC=$lt_compiler_GCJ 19064 19065# Is the compiler the GNU C compiler? 19066with_gcc=$GCC_GCJ 19067 19068# An ERE matcher. 19069EGREP=$lt_EGREP 19070 19071# The linker used to build libraries. 19072LD=$lt_LD_GCJ 19073 19074# Whether we need hard or soft links. 19075LN_S=$lt_LN_S 19076 19077# A BSD-compatible nm program. 19078NM=$lt_NM 19079 19080# A symbol stripping program 19081STRIP=$lt_STRIP 19082 19083# Used to examine libraries when file_magic_cmd begins "file" 19084MAGIC_CMD=$MAGIC_CMD 19085 19086# Used on cygwin: DLL creation program. 19087DLLTOOL="$DLLTOOL" 19088 19089# Used on cygwin: object dumper. 19090OBJDUMP="$OBJDUMP" 19091 19092# Used on cygwin: assembler. 19093AS="$AS" 19094 19095# The name of the directory that contains temporary libtool files. 19096objdir=$objdir 19097 19098# How to create reloadable object files. 19099reload_flag=$lt_reload_flag 19100reload_cmds=$lt_reload_cmds 19101 19102# How to pass a linker flag through the compiler. 19103wl=$lt_lt_prog_compiler_wl_GCJ 19104 19105# Object file suffix (normally "o"). 19106objext="$ac_objext" 19107 19108# Old archive suffix (normally "a"). 19109libext="$libext" 19110 19111# Shared library suffix (normally ".so"). 19112shrext_cmds='$shrext_cmds' 19113 19114# Executable file suffix (normally ""). 19115exeext="$exeext" 19116 19117# Additional compiler flags for building library objects. 19118pic_flag=$lt_lt_prog_compiler_pic_GCJ 19119pic_mode=$pic_mode 19120 19121# What is the maximum length of a command? 19122max_cmd_len=$lt_cv_sys_max_cmd_len 19123 19124# Does compiler simultaneously support -c and -o options? 19125compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19126 19127# Must we lock files when doing compilation? 19128need_locks=$lt_need_locks 19129 19130# Do we need the lib prefix for modules? 19131need_lib_prefix=$need_lib_prefix 19132 19133# Do we need a version for libraries? 19134need_version=$need_version 19135 19136# Whether dlopen is supported. 19137dlopen_support=$enable_dlopen 19138 19139# Whether dlopen of programs is supported. 19140dlopen_self=$enable_dlopen_self 19141 19142# Whether dlopen of statically linked programs is supported. 19143dlopen_self_static=$enable_dlopen_self_static 19144 19145# Compiler flag to prevent dynamic linking. 19146link_static_flag=$lt_lt_prog_compiler_static_GCJ 19147 19148# Compiler flag to turn off builtin functions. 19149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19150 19151# Compiler flag to allow reflexive dlopens. 19152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19153 19154# Compiler flag to generate shared objects directly from archives. 19155whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19156 19157# Compiler flag to generate thread-safe objects. 19158thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19159 19160# Library versioning type. 19161version_type=$version_type 19162 19163# Format of library name prefix. 19164libname_spec=$lt_libname_spec 19165 19166# List of archive names. First name is the real one, the rest are links. 19167# The last name is the one that the linker finds with -lNAME. 19168library_names_spec=$lt_library_names_spec 19169 19170# The coded name of the library, if different from the real name. 19171soname_spec=$lt_soname_spec 19172 19173# Commands used to build and install an old-style archive. 19174RANLIB=$lt_RANLIB 19175old_archive_cmds=$lt_old_archive_cmds_GCJ 19176old_postinstall_cmds=$lt_old_postinstall_cmds 19177old_postuninstall_cmds=$lt_old_postuninstall_cmds 19178 19179# Create an old-style archive from a shared archive. 19180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19181 19182# Create a temporary old-style archive to link instead of a shared archive. 19183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19184 19185# Commands used to build and install a shared archive. 19186archive_cmds=$lt_archive_cmds_GCJ 19187archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19188postinstall_cmds=$lt_postinstall_cmds 19189postuninstall_cmds=$lt_postuninstall_cmds 19190 19191# Commands used to build a loadable module (assumed same as above if empty) 19192module_cmds=$lt_module_cmds_GCJ 19193module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19194 19195# Commands to strip libraries. 19196old_striplib=$lt_old_striplib 19197striplib=$lt_striplib 19198 19199# Dependencies to place before the objects being linked to create a 19200# shared library. 19201predep_objects=$lt_predep_objects_GCJ 19202 19203# Dependencies to place after the objects being linked to create a 19204# shared library. 19205postdep_objects=$lt_postdep_objects_GCJ 19206 19207# Dependencies to place before the objects being linked to create a 19208# shared library. 19209predeps=$lt_predeps_GCJ 19210 19211# Dependencies to place after the objects being linked to create a 19212# shared library. 19213postdeps=$lt_postdeps_GCJ 19214 19215# The library search path used internally by the compiler when linking 19216# a shared library. 19217compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19218 19219# Method to check whether dependent libraries are shared objects. 19220deplibs_check_method=$lt_deplibs_check_method 19221 19222# Command to use when deplibs_check_method == file_magic. 19223file_magic_cmd=$lt_file_magic_cmd 19224 19225# Flag that allows shared libraries with undefined symbols to be built. 19226allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19227 19228# Flag that forces no undefined symbols. 19229no_undefined_flag=$lt_no_undefined_flag_GCJ 19230 19231# Commands used to finish a libtool library installation in a directory. 19232finish_cmds=$lt_finish_cmds 19233 19234# Same as above, but a single script fragment to be evaled but not shown. 19235finish_eval=$lt_finish_eval 19236 19237# Take the output of nm and produce a listing of raw symbols and C names. 19238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19239 19240# Transform the output of nm in a proper C declaration 19241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19242 19243# Transform the output of nm in a C name address pair 19244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19245 19246# This is the shared library runtime path variable. 19247runpath_var=$runpath_var 19248 19249# This is the shared library path variable. 19250shlibpath_var=$shlibpath_var 19251 19252# Is shlibpath searched before the hard-coded library search path? 19253shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19254 19255# How to hardcode a shared library path into an executable. 19256hardcode_action=$hardcode_action_GCJ 19257 19258# Whether we should hardcode library paths into libraries. 19259hardcode_into_libs=$hardcode_into_libs 19260 19261# Flag to hardcode \$libdir into a binary during linking. 19262# This must work even if \$libdir does not exist. 19263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19264 19265# If ld is used when linking, flag to hardcode \$libdir into 19266# a binary during linking. This must work even if \$libdir does 19267# not exist. 19268hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19269 19270# Whether we need a single -rpath flag with a separated argument. 19271hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19272 19273# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19274# resulting binary. 19275hardcode_direct=$hardcode_direct_GCJ 19276 19277# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19278# resulting binary. 19279hardcode_minus_L=$hardcode_minus_L_GCJ 19280 19281# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19282# the resulting binary. 19283hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19284 19285# Set to yes if building a shared library automatically hardcodes DIR into the library 19286# and all subsequent libraries and executables linked against it. 19287hardcode_automatic=$hardcode_automatic_GCJ 19288 19289# Variables whose values should be saved in libtool wrapper scripts and 19290# restored at relink time. 19291variables_saved_for_relink="$variables_saved_for_relink" 19292 19293# Whether libtool must link a program against all its dependency libraries. 19294link_all_deplibs=$link_all_deplibs_GCJ 19295 19296# Compile-time system search path for libraries 19297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19298 19299# Run-time system search path for libraries 19300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19301 19302# Fix the shell variable \$srcfile for the compiler. 19303fix_srcfile_path=$lt_fix_srcfile_path 19304 19305# Set to yes if exported symbols are required. 19306always_export_symbols=$always_export_symbols_GCJ 19307 19308# The commands to list exported symbols. 19309export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19310 19311# The commands to extract the exported symbol list from a shared archive. 19312extract_expsyms_cmds=$lt_extract_expsyms_cmds 19313 19314# Symbols that should not be listed in the preloaded symbols. 19315exclude_expsyms=$lt_exclude_expsyms_GCJ 19316 19317# Symbols that must always be exported. 19318include_expsyms=$lt_include_expsyms_GCJ 19319 19320# ### END LIBTOOL TAG CONFIG: $tagname 19321 19322__EOF__ 19323 19324 19325else 19326 # If there is no Makefile yet, we rely on a make rule to execute 19327 # `config.status --recheck' to rerun these tests and create the 19328 # libtool script then. 19329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19330 if test -f "$ltmain_in"; then 19331 test -f Makefile && make "$ltmain" 19332 fi 19333fi 19334 19335 19336ac_ext=c 19337ac_cpp='$CPP $CPPFLAGS' 19338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19340ac_compiler_gnu=$ac_cv_c_compiler_gnu 19341 19342CC="$lt_save_CC" 19343 19344 else 19345 tagname="" 19346 fi 19347 ;; 19348 19349 RC) 19350 19351 19352# Source file extension for RC test sources. 19353ac_ext=rc 19354 19355# Object file extension for compiled RC test sources. 19356objext=o 19357objext_RC=$objext 19358 19359# Code to be used in simple compile tests 19360lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19361 19362# Code to be used in simple link tests 19363lt_simple_link_test_code="$lt_simple_compile_test_code" 19364 19365# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19366 19367# If no C compiler was specified, use CC. 19368LTCC=${LTCC-"$CC"} 19369 19370# If no C compiler flags were specified, use CFLAGS. 19371LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19372 19373# Allow CC to be a program name with arguments. 19374compiler=$CC 19375 19376 19377# save warnings/boilerplate of simple test code 19378ac_outfile=conftest.$ac_objext 19379echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19381_lt_compiler_boilerplate=`cat conftest.err` 19382$rm conftest* 19383 19384ac_outfile=conftest.$ac_objext 19385echo "$lt_simple_link_test_code" >conftest.$ac_ext 19386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19387_lt_linker_boilerplate=`cat conftest.err` 19388$rm conftest* 19389 19390 19391# Allow CC to be a program name with arguments. 19392lt_save_CC="$CC" 19393CC=${RC-"windres"} 19394compiler=$CC 19395compiler_RC=$CC 19396for cc_temp in $compiler""; do 19397 case $cc_temp in 19398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19400 \-*) ;; 19401 *) break;; 19402 esac 19403done 19404cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19405 19406lt_cv_prog_compiler_c_o_RC=yes 19407 19408# The else clause should only fire when bootstrapping the 19409# libtool distribution, otherwise you forgot to ship ltmain.sh 19410# with your package, and you will get complaints that there are 19411# no rules to generate ltmain.sh. 19412if test -f "$ltmain"; then 19413 # See if we are running on zsh, and set the options which allow our commands through 19414 # without removal of \ escapes. 19415 if test -n "${ZSH_VERSION+set}" ; then 19416 setopt NO_GLOB_SUBST 19417 fi 19418 # Now quote all the things that may contain metacharacters while being 19419 # careful not to overquote the AC_SUBSTed values. We take copies of the 19420 # variables and quote the copies for generation of the libtool script. 19421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19422 SED SHELL STRIP \ 19423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19425 deplibs_check_method reload_flag reload_cmds need_locks \ 19426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19427 lt_cv_sys_global_symbol_to_c_name_address \ 19428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19429 old_postinstall_cmds old_postuninstall_cmds \ 19430 compiler_RC \ 19431 CC_RC \ 19432 LD_RC \ 19433 lt_prog_compiler_wl_RC \ 19434 lt_prog_compiler_pic_RC \ 19435 lt_prog_compiler_static_RC \ 19436 lt_prog_compiler_no_builtin_flag_RC \ 19437 export_dynamic_flag_spec_RC \ 19438 thread_safe_flag_spec_RC \ 19439 whole_archive_flag_spec_RC \ 19440 enable_shared_with_static_runtimes_RC \ 19441 old_archive_cmds_RC \ 19442 old_archive_from_new_cmds_RC \ 19443 predep_objects_RC \ 19444 postdep_objects_RC \ 19445 predeps_RC \ 19446 postdeps_RC \ 19447 compiler_lib_search_path_RC \ 19448 archive_cmds_RC \ 19449 archive_expsym_cmds_RC \ 19450 postinstall_cmds_RC \ 19451 postuninstall_cmds_RC \ 19452 old_archive_from_expsyms_cmds_RC \ 19453 allow_undefined_flag_RC \ 19454 no_undefined_flag_RC \ 19455 export_symbols_cmds_RC \ 19456 hardcode_libdir_flag_spec_RC \ 19457 hardcode_libdir_flag_spec_ld_RC \ 19458 hardcode_libdir_separator_RC \ 19459 hardcode_automatic_RC \ 19460 module_cmds_RC \ 19461 module_expsym_cmds_RC \ 19462 lt_cv_prog_compiler_c_o_RC \ 19463 fix_srcfile_path_RC \ 19464 exclude_expsyms_RC \ 19465 include_expsyms_RC; do 19466 19467 case $var in 19468 old_archive_cmds_RC | \ 19469 old_archive_from_new_cmds_RC | \ 19470 archive_cmds_RC | \ 19471 archive_expsym_cmds_RC | \ 19472 module_cmds_RC | \ 19473 module_expsym_cmds_RC | \ 19474 old_archive_from_expsyms_cmds_RC | \ 19475 export_symbols_cmds_RC | \ 19476 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19477 postinstall_cmds | postuninstall_cmds | \ 19478 old_postinstall_cmds | old_postuninstall_cmds | \ 19479 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19480 # Double-quote double-evaled strings. 19481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19482 ;; 19483 *) 19484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19485 ;; 19486 esac 19487 done 19488 19489 case $lt_echo in 19490 *'\$0 --fallback-echo"') 19491 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19492 ;; 19493 esac 19494 19495cfgfile="$ofile" 19496 19497 cat <<__EOF__ >> "$cfgfile" 19498# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19499 19500# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19501 19502# Shell to use when invoking shell scripts. 19503SHELL=$lt_SHELL 19504 19505# Whether or not to build shared libraries. 19506build_libtool_libs=$enable_shared 19507 19508# Whether or not to build static libraries. 19509build_old_libs=$enable_static 19510 19511# Whether or not to add -lc for building shared libraries. 19512build_libtool_need_lc=$archive_cmds_need_lc_RC 19513 19514# Whether or not to disallow shared libs when runtime libs are static 19515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19516 19517# Whether or not to optimize for fast installation. 19518fast_install=$enable_fast_install 19519 19520# The host system. 19521host_alias=$host_alias 19522host=$host 19523host_os=$host_os 19524 19525# The build system. 19526build_alias=$build_alias 19527build=$build 19528build_os=$build_os 19529 19530# An echo program that does not interpret backslashes. 19531echo=$lt_echo 19532 19533# The archiver. 19534AR=$lt_AR 19535AR_FLAGS=$lt_AR_FLAGS 19536 19537# A C compiler. 19538LTCC=$lt_LTCC 19539 19540# LTCC compiler flags. 19541LTCFLAGS=$lt_LTCFLAGS 19542 19543# A language-specific compiler. 19544CC=$lt_compiler_RC 19545 19546# Is the compiler the GNU C compiler? 19547with_gcc=$GCC_RC 19548 19549# An ERE matcher. 19550EGREP=$lt_EGREP 19551 19552# The linker used to build libraries. 19553LD=$lt_LD_RC 19554 19555# Whether we need hard or soft links. 19556LN_S=$lt_LN_S 19557 19558# A BSD-compatible nm program. 19559NM=$lt_NM 19560 19561# A symbol stripping program 19562STRIP=$lt_STRIP 19563 19564# Used to examine libraries when file_magic_cmd begins "file" 19565MAGIC_CMD=$MAGIC_CMD 19566 19567# Used on cygwin: DLL creation program. 19568DLLTOOL="$DLLTOOL" 19569 19570# Used on cygwin: object dumper. 19571OBJDUMP="$OBJDUMP" 19572 19573# Used on cygwin: assembler. 19574AS="$AS" 19575 19576# The name of the directory that contains temporary libtool files. 19577objdir=$objdir 19578 19579# How to create reloadable object files. 19580reload_flag=$lt_reload_flag 19581reload_cmds=$lt_reload_cmds 19582 19583# How to pass a linker flag through the compiler. 19584wl=$lt_lt_prog_compiler_wl_RC 19585 19586# Object file suffix (normally "o"). 19587objext="$ac_objext" 19588 19589# Old archive suffix (normally "a"). 19590libext="$libext" 19591 19592# Shared library suffix (normally ".so"). 19593shrext_cmds='$shrext_cmds' 19594 19595# Executable file suffix (normally ""). 19596exeext="$exeext" 19597 19598# Additional compiler flags for building library objects. 19599pic_flag=$lt_lt_prog_compiler_pic_RC 19600pic_mode=$pic_mode 19601 19602# What is the maximum length of a command? 19603max_cmd_len=$lt_cv_sys_max_cmd_len 19604 19605# Does compiler simultaneously support -c and -o options? 19606compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19607 19608# Must we lock files when doing compilation? 19609need_locks=$lt_need_locks 19610 19611# Do we need the lib prefix for modules? 19612need_lib_prefix=$need_lib_prefix 19613 19614# Do we need a version for libraries? 19615need_version=$need_version 19616 19617# Whether dlopen is supported. 19618dlopen_support=$enable_dlopen 19619 19620# Whether dlopen of programs is supported. 19621dlopen_self=$enable_dlopen_self 19622 19623# Whether dlopen of statically linked programs is supported. 19624dlopen_self_static=$enable_dlopen_self_static 19625 19626# Compiler flag to prevent dynamic linking. 19627link_static_flag=$lt_lt_prog_compiler_static_RC 19628 19629# Compiler flag to turn off builtin functions. 19630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19631 19632# Compiler flag to allow reflexive dlopens. 19633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19634 19635# Compiler flag to generate shared objects directly from archives. 19636whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19637 19638# Compiler flag to generate thread-safe objects. 19639thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19640 19641# Library versioning type. 19642version_type=$version_type 19643 19644# Format of library name prefix. 19645libname_spec=$lt_libname_spec 19646 19647# List of archive names. First name is the real one, the rest are links. 19648# The last name is the one that the linker finds with -lNAME. 19649library_names_spec=$lt_library_names_spec 19650 19651# The coded name of the library, if different from the real name. 19652soname_spec=$lt_soname_spec 19653 19654# Commands used to build and install an old-style archive. 19655RANLIB=$lt_RANLIB 19656old_archive_cmds=$lt_old_archive_cmds_RC 19657old_postinstall_cmds=$lt_old_postinstall_cmds 19658old_postuninstall_cmds=$lt_old_postuninstall_cmds 19659 19660# Create an old-style archive from a shared archive. 19661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19662 19663# Create a temporary old-style archive to link instead of a shared archive. 19664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19665 19666# Commands used to build and install a shared archive. 19667archive_cmds=$lt_archive_cmds_RC 19668archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19669postinstall_cmds=$lt_postinstall_cmds 19670postuninstall_cmds=$lt_postuninstall_cmds 19671 19672# Commands used to build a loadable module (assumed same as above if empty) 19673module_cmds=$lt_module_cmds_RC 19674module_expsym_cmds=$lt_module_expsym_cmds_RC 19675 19676# Commands to strip libraries. 19677old_striplib=$lt_old_striplib 19678striplib=$lt_striplib 19679 19680# Dependencies to place before the objects being linked to create a 19681# shared library. 19682predep_objects=$lt_predep_objects_RC 19683 19684# Dependencies to place after the objects being linked to create a 19685# shared library. 19686postdep_objects=$lt_postdep_objects_RC 19687 19688# Dependencies to place before the objects being linked to create a 19689# shared library. 19690predeps=$lt_predeps_RC 19691 19692# Dependencies to place after the objects being linked to create a 19693# shared library. 19694postdeps=$lt_postdeps_RC 19695 19696# The library search path used internally by the compiler when linking 19697# a shared library. 19698compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19699 19700# Method to check whether dependent libraries are shared objects. 19701deplibs_check_method=$lt_deplibs_check_method 19702 19703# Command to use when deplibs_check_method == file_magic. 19704file_magic_cmd=$lt_file_magic_cmd 19705 19706# Flag that allows shared libraries with undefined symbols to be built. 19707allow_undefined_flag=$lt_allow_undefined_flag_RC 19708 19709# Flag that forces no undefined symbols. 19710no_undefined_flag=$lt_no_undefined_flag_RC 19711 19712# Commands used to finish a libtool library installation in a directory. 19713finish_cmds=$lt_finish_cmds 19714 19715# Same as above, but a single script fragment to be evaled but not shown. 19716finish_eval=$lt_finish_eval 19717 19718# Take the output of nm and produce a listing of raw symbols and C names. 19719global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19720 19721# Transform the output of nm in a proper C declaration 19722global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19723 19724# Transform the output of nm in a C name address pair 19725global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19726 19727# This is the shared library runtime path variable. 19728runpath_var=$runpath_var 19729 19730# This is the shared library path variable. 19731shlibpath_var=$shlibpath_var 19732 19733# Is shlibpath searched before the hard-coded library search path? 19734shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19735 19736# How to hardcode a shared library path into an executable. 19737hardcode_action=$hardcode_action_RC 19738 19739# Whether we should hardcode library paths into libraries. 19740hardcode_into_libs=$hardcode_into_libs 19741 19742# Flag to hardcode \$libdir into a binary during linking. 19743# This must work even if \$libdir does not exist. 19744hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19745 19746# If ld is used when linking, flag to hardcode \$libdir into 19747# a binary during linking. This must work even if \$libdir does 19748# not exist. 19749hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19750 19751# Whether we need a single -rpath flag with a separated argument. 19752hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19753 19754# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19755# resulting binary. 19756hardcode_direct=$hardcode_direct_RC 19757 19758# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19759# resulting binary. 19760hardcode_minus_L=$hardcode_minus_L_RC 19761 19762# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19763# the resulting binary. 19764hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19765 19766# Set to yes if building a shared library automatically hardcodes DIR into the library 19767# and all subsequent libraries and executables linked against it. 19768hardcode_automatic=$hardcode_automatic_RC 19769 19770# Variables whose values should be saved in libtool wrapper scripts and 19771# restored at relink time. 19772variables_saved_for_relink="$variables_saved_for_relink" 19773 19774# Whether libtool must link a program against all its dependency libraries. 19775link_all_deplibs=$link_all_deplibs_RC 19776 19777# Compile-time system search path for libraries 19778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19779 19780# Run-time system search path for libraries 19781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19782 19783# Fix the shell variable \$srcfile for the compiler. 19784fix_srcfile_path=$lt_fix_srcfile_path 19785 19786# Set to yes if exported symbols are required. 19787always_export_symbols=$always_export_symbols_RC 19788 19789# The commands to list exported symbols. 19790export_symbols_cmds=$lt_export_symbols_cmds_RC 19791 19792# The commands to extract the exported symbol list from a shared archive. 19793extract_expsyms_cmds=$lt_extract_expsyms_cmds 19794 19795# Symbols that should not be listed in the preloaded symbols. 19796exclude_expsyms=$lt_exclude_expsyms_RC 19797 19798# Symbols that must always be exported. 19799include_expsyms=$lt_include_expsyms_RC 19800 19801# ### END LIBTOOL TAG CONFIG: $tagname 19802 19803__EOF__ 19804 19805 19806else 19807 # If there is no Makefile yet, we rely on a make rule to execute 19808 # `config.status --recheck' to rerun these tests and create the 19809 # libtool script then. 19810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19811 if test -f "$ltmain_in"; then 19812 test -f Makefile && make "$ltmain" 19813 fi 19814fi 19815 19816 19817ac_ext=c 19818ac_cpp='$CPP $CPPFLAGS' 19819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19821ac_compiler_gnu=$ac_cv_c_compiler_gnu 19822 19823CC="$lt_save_CC" 19824 19825 ;; 19826 19827 *) 19828 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19829$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19830 { (exit 1); exit 1; }; } 19831 ;; 19832 esac 19833 19834 # Append the new tag name to the list of available tags. 19835 if test -n "$tagname" ; then 19836 available_tags="$available_tags $tagname" 19837 fi 19838 fi 19839 done 19840 IFS="$lt_save_ifs" 19841 19842 # Now substitute the updated list of available tags. 19843 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19844 mv "${ofile}T" "$ofile" 19845 chmod +x "$ofile" 19846 else 19847 rm -f "${ofile}T" 19848 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19849$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19850 { (exit 1); exit 1; }; } 19851 fi 19852fi 19853 19854 19855 19856# This can be used to rebuild libtool when needed 19857LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19858 19859# Always use our own libtool. 19860LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19861 19862# Prevent multiple expansion 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 19884$as_echo_n "checking whether ln -s works... " >&6; } 19885LN_S=$as_ln_s 19886if test "$LN_S" = "ln -s"; then 19887 { $as_echo "$as_me:$LINENO: result: yes" >&5 19888$as_echo "yes" >&6; } 19889else 19890 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 19891$as_echo "no, using $LN_S" >&6; } 19892fi 19893 19894 19895# Compiler characteristics 19896# 19897{ $as_echo "$as_me:$LINENO: checking if using gcc" >&5 19898$as_echo_n "checking if using gcc... " >&6; } 19899if test "$GCC" = "yes"; then 19900 WARNCFLAGS="-Werror -Wall -Wpointer-arith" 19901 { $as_echo "$as_me:$LINENO: result: yes; adding to CFLAGS: \"$WARNCFLAGS\"" >&5 19902$as_echo "yes; adding to CFLAGS: \"$WARNCFLAGS\"" >&6; } 19903else 19904 WARNCFLAGS="" 19905 { $as_echo "$as_me:$LINENO: result: no" >&5 19906$as_echo "no" >&6; } 19907fi 19908 19909 19910 19911# Checks for header files. 19912# 19913{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19914$as_echo_n "checking for ANSI C header files... " >&6; } 19915if test "${ac_cv_header_stdc+set}" = set; then 19916 $as_echo_n "(cached) " >&6 19917else 19918 cat >conftest.$ac_ext <<_ACEOF 19919/* confdefs.h. */ 19920_ACEOF 19921cat confdefs.h >>conftest.$ac_ext 19922cat >>conftest.$ac_ext <<_ACEOF 19923/* end confdefs.h. */ 19924#include <stdlib.h> 19925#include <stdarg.h> 19926#include <string.h> 19927#include <float.h> 19928 19929int 19930main () 19931{ 19932 19933 ; 19934 return 0; 19935} 19936_ACEOF 19937rm -f conftest.$ac_objext 19938if { (ac_try="$ac_compile" 19939case "(($ac_try" in 19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19941 *) ac_try_echo=$ac_try;; 19942esac 19943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19944$as_echo "$ac_try_echo") >&5 19945 (eval "$ac_compile") 2>conftest.er1 19946 ac_status=$? 19947 grep -v '^ *+' conftest.er1 >conftest.err 19948 rm -f conftest.er1 19949 cat conftest.err >&5 19950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); } && { 19952 test -z "$ac_c_werror_flag" || 19953 test ! -s conftest.err 19954 } && test -s conftest.$ac_objext; then 19955 ac_cv_header_stdc=yes 19956else 19957 $as_echo "$as_me: failed program was:" >&5 19958sed 's/^/| /' conftest.$ac_ext >&5 19959 19960 ac_cv_header_stdc=no 19961fi 19962 19963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19964 19965if test $ac_cv_header_stdc = yes; then 19966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19967 cat >conftest.$ac_ext <<_ACEOF 19968/* confdefs.h. */ 19969_ACEOF 19970cat confdefs.h >>conftest.$ac_ext 19971cat >>conftest.$ac_ext <<_ACEOF 19972/* end confdefs.h. */ 19973#include <string.h> 19974 19975_ACEOF 19976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19977 $EGREP "memchr" >/dev/null 2>&1; then 19978 : 19979else 19980 ac_cv_header_stdc=no 19981fi 19982rm -f conftest* 19983 19984fi 19985 19986if test $ac_cv_header_stdc = yes; then 19987 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19988 cat >conftest.$ac_ext <<_ACEOF 19989/* confdefs.h. */ 19990_ACEOF 19991cat confdefs.h >>conftest.$ac_ext 19992cat >>conftest.$ac_ext <<_ACEOF 19993/* end confdefs.h. */ 19994#include <stdlib.h> 19995 19996_ACEOF 19997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19998 $EGREP "free" >/dev/null 2>&1; then 19999 : 20000else 20001 ac_cv_header_stdc=no 20002fi 20003rm -f conftest* 20004 20005fi 20006 20007if test $ac_cv_header_stdc = yes; then 20008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20009 if test "$cross_compiling" = yes; then 20010 : 20011else 20012 cat >conftest.$ac_ext <<_ACEOF 20013/* confdefs.h. */ 20014_ACEOF 20015cat confdefs.h >>conftest.$ac_ext 20016cat >>conftest.$ac_ext <<_ACEOF 20017/* end confdefs.h. */ 20018#include <ctype.h> 20019#include <stdlib.h> 20020#if ((' ' & 0x0FF) == 0x020) 20021# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20022# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20023#else 20024# define ISLOWER(c) \ 20025 (('a' <= (c) && (c) <= 'i') \ 20026 || ('j' <= (c) && (c) <= 'r') \ 20027 || ('s' <= (c) && (c) <= 'z')) 20028# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20029#endif 20030 20031#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20032int 20033main () 20034{ 20035 int i; 20036 for (i = 0; i < 256; i++) 20037 if (XOR (islower (i), ISLOWER (i)) 20038 || toupper (i) != TOUPPER (i)) 20039 return 2; 20040 return 0; 20041} 20042_ACEOF 20043rm -f conftest$ac_exeext 20044if { (ac_try="$ac_link" 20045case "(($ac_try" in 20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20047 *) ac_try_echo=$ac_try;; 20048esac 20049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20050$as_echo "$ac_try_echo") >&5 20051 (eval "$ac_link") 2>&5 20052 ac_status=$? 20053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20055 { (case "(($ac_try" in 20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20057 *) ac_try_echo=$ac_try;; 20058esac 20059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20060$as_echo "$ac_try_echo") >&5 20061 (eval "$ac_try") 2>&5 20062 ac_status=$? 20063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20064 (exit $ac_status); }; }; then 20065 : 20066else 20067 $as_echo "$as_me: program exited with status $ac_status" >&5 20068$as_echo "$as_me: failed program was:" >&5 20069sed 's/^/| /' conftest.$ac_ext >&5 20070 20071( exit $ac_status ) 20072ac_cv_header_stdc=no 20073fi 20074rm -rf conftest.dSYM 20075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20076fi 20077 20078 20079fi 20080fi 20081{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20082$as_echo "$ac_cv_header_stdc" >&6; } 20083if test $ac_cv_header_stdc = yes; then 20084 20085cat >>confdefs.h <<\_ACEOF 20086#define STDC_HEADERS 1 20087_ACEOF 20088 20089fi 20090 20091 20092for ac_header in CommonCrypto/CommonDigest.h 20093do 20094as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20097$as_echo_n "checking for $ac_header... " >&6; } 20098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20099 $as_echo_n "(cached) " >&6 20100fi 20101ac_res=`eval 'as_val=${'$as_ac_Header'} 20102 $as_echo "$as_val"'` 20103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20104$as_echo "$ac_res" >&6; } 20105else 20106 # Is the header compilable? 20107{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20108$as_echo_n "checking $ac_header usability... " >&6; } 20109cat >conftest.$ac_ext <<_ACEOF 20110/* confdefs.h. */ 20111_ACEOF 20112cat confdefs.h >>conftest.$ac_ext 20113cat >>conftest.$ac_ext <<_ACEOF 20114/* end confdefs.h. */ 20115$ac_includes_default 20116#include <$ac_header> 20117_ACEOF 20118rm -f conftest.$ac_objext 20119if { (ac_try="$ac_compile" 20120case "(($ac_try" in 20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20122 *) ac_try_echo=$ac_try;; 20123esac 20124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20125$as_echo "$ac_try_echo") >&5 20126 (eval "$ac_compile") 2>conftest.er1 20127 ac_status=$? 20128 grep -v '^ *+' conftest.er1 >conftest.err 20129 rm -f conftest.er1 20130 cat conftest.err >&5 20131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20132 (exit $ac_status); } && { 20133 test -z "$ac_c_werror_flag" || 20134 test ! -s conftest.err 20135 } && test -s conftest.$ac_objext; then 20136 ac_header_compiler=yes 20137else 20138 $as_echo "$as_me: failed program was:" >&5 20139sed 's/^/| /' conftest.$ac_ext >&5 20140 20141 ac_header_compiler=no 20142fi 20143 20144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20145{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20146$as_echo "$ac_header_compiler" >&6; } 20147 20148# Is the header present? 20149{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20150$as_echo_n "checking $ac_header presence... " >&6; } 20151cat >conftest.$ac_ext <<_ACEOF 20152/* confdefs.h. */ 20153_ACEOF 20154cat confdefs.h >>conftest.$ac_ext 20155cat >>conftest.$ac_ext <<_ACEOF 20156/* end confdefs.h. */ 20157#include <$ac_header> 20158_ACEOF 20159if { (ac_try="$ac_cpp conftest.$ac_ext" 20160case "(($ac_try" in 20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20162 *) ac_try_echo=$ac_try;; 20163esac 20164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20165$as_echo "$ac_try_echo") >&5 20166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } >/dev/null && { 20173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20174 test ! -s conftest.err 20175 }; then 20176 ac_header_preproc=yes 20177else 20178 $as_echo "$as_me: failed program was:" >&5 20179sed 's/^/| /' conftest.$ac_ext >&5 20180 20181 ac_header_preproc=no 20182fi 20183 20184rm -f conftest.err conftest.$ac_ext 20185{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20186$as_echo "$ac_header_preproc" >&6; } 20187 20188# So? What about this header? 20189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20190 yes:no: ) 20191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20192$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20194$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20195 ac_header_preproc=yes 20196 ;; 20197 no:yes:* ) 20198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20199$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20201$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20203$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20205$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20207$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20209$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20210 ( cat <<\_ASBOX 20211## -------------------------------------------------------- ## 20212## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 20213## -------------------------------------------------------- ## 20214_ASBOX 20215 ) | sed "s/^/$as_me: WARNING: /" >&2 20216 ;; 20217esac 20218{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20219$as_echo_n "checking for $ac_header... " >&6; } 20220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20221 $as_echo_n "(cached) " >&6 20222else 20223 eval "$as_ac_Header=\$ac_header_preproc" 20224fi 20225ac_res=`eval 'as_val=${'$as_ac_Header'} 20226 $as_echo "$as_val"'` 20227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20228$as_echo "$ac_res" >&6; } 20229 20230fi 20231as_val=`eval 'as_val=${'$as_ac_Header'} 20232 $as_echo "$as_val"'` 20233 if test "x$as_val" = x""yes; then 20234 cat >>confdefs.h <<_ACEOF 20235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20236_ACEOF 20237 20238fi 20239 20240done 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250for ac_header in dmalloc.h direct.h errno.h fcntl.h \ 20251 inttypes.h limits.h malloc.h zlib.h 20252do 20253as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20256$as_echo_n "checking for $ac_header... " >&6; } 20257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20258 $as_echo_n "(cached) " >&6 20259fi 20260ac_res=`eval 'as_val=${'$as_ac_Header'} 20261 $as_echo "$as_val"'` 20262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20263$as_echo "$ac_res" >&6; } 20264else 20265 # Is the header compilable? 20266{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20267$as_echo_n "checking $ac_header usability... " >&6; } 20268cat >conftest.$ac_ext <<_ACEOF 20269/* confdefs.h. */ 20270_ACEOF 20271cat confdefs.h >>conftest.$ac_ext 20272cat >>conftest.$ac_ext <<_ACEOF 20273/* end confdefs.h. */ 20274$ac_includes_default 20275#include <$ac_header> 20276_ACEOF 20277rm -f conftest.$ac_objext 20278if { (ac_try="$ac_compile" 20279case "(($ac_try" in 20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20281 *) ac_try_echo=$ac_try;; 20282esac 20283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20284$as_echo "$ac_try_echo") >&5 20285 (eval "$ac_compile") 2>conftest.er1 20286 ac_status=$? 20287 grep -v '^ *+' conftest.er1 >conftest.err 20288 rm -f conftest.er1 20289 cat conftest.err >&5 20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20291 (exit $ac_status); } && { 20292 test -z "$ac_c_werror_flag" || 20293 test ! -s conftest.err 20294 } && test -s conftest.$ac_objext; then 20295 ac_header_compiler=yes 20296else 20297 $as_echo "$as_me: failed program was:" >&5 20298sed 's/^/| /' conftest.$ac_ext >&5 20299 20300 ac_header_compiler=no 20301fi 20302 20303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20304{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20305$as_echo "$ac_header_compiler" >&6; } 20306 20307# Is the header present? 20308{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20309$as_echo_n "checking $ac_header presence... " >&6; } 20310cat >conftest.$ac_ext <<_ACEOF 20311/* confdefs.h. */ 20312_ACEOF 20313cat confdefs.h >>conftest.$ac_ext 20314cat >>conftest.$ac_ext <<_ACEOF 20315/* end confdefs.h. */ 20316#include <$ac_header> 20317_ACEOF 20318if { (ac_try="$ac_cpp conftest.$ac_ext" 20319case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322esac 20323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20324$as_echo "$ac_try_echo") >&5 20325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20326 ac_status=$? 20327 grep -v '^ *+' conftest.er1 >conftest.err 20328 rm -f conftest.er1 20329 cat conftest.err >&5 20330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20331 (exit $ac_status); } >/dev/null && { 20332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20333 test ! -s conftest.err 20334 }; then 20335 ac_header_preproc=yes 20336else 20337 $as_echo "$as_me: failed program was:" >&5 20338sed 's/^/| /' conftest.$ac_ext >&5 20339 20340 ac_header_preproc=no 20341fi 20342 20343rm -f conftest.err conftest.$ac_ext 20344{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20345$as_echo "$ac_header_preproc" >&6; } 20346 20347# So? What about this header? 20348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20349 yes:no: ) 20350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20351$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20353$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20354 ac_header_preproc=yes 20355 ;; 20356 no:yes:* ) 20357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20358$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20360$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20362$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20364$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20366$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20368$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20369 ( cat <<\_ASBOX 20370## -------------------------------------------------------- ## 20371## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 20372## -------------------------------------------------------- ## 20373_ASBOX 20374 ) | sed "s/^/$as_me: WARNING: /" >&2 20375 ;; 20376esac 20377{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20378$as_echo_n "checking for $ac_header... " >&6; } 20379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20380 $as_echo_n "(cached) " >&6 20381else 20382 eval "$as_ac_Header=\$ac_header_preproc" 20383fi 20384ac_res=`eval 'as_val=${'$as_ac_Header'} 20385 $as_echo "$as_val"'` 20386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20387$as_echo "$ac_res" >&6; } 20388 20389fi 20390as_val=`eval 'as_val=${'$as_ac_Header'} 20391 $as_echo "$as_val"'` 20392 if test "x$as_val" = x""yes; then 20393 cat >>confdefs.h <<_ACEOF 20394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20395_ACEOF 20396 20397fi 20398 20399done 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414for ac_header in openssl/aes.h openssl/bn.h openssl/cast.h openssl/des.h \ 20415 openssl/dsa.h openssl/err.h openssl/idea.h openssl/md5.h \ 20416 openssl/rand.h openssl/rsa.h openssl/sha.h openssl/err.h \ 20417 openssl/sha.h 20418do 20419as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20422$as_echo_n "checking for $ac_header... " >&6; } 20423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20424 $as_echo_n "(cached) " >&6 20425fi 20426ac_res=`eval 'as_val=${'$as_ac_Header'} 20427 $as_echo "$as_val"'` 20428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20429$as_echo "$ac_res" >&6; } 20430else 20431 # Is the header compilable? 20432{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20433$as_echo_n "checking $ac_header usability... " >&6; } 20434cat >conftest.$ac_ext <<_ACEOF 20435/* confdefs.h. */ 20436_ACEOF 20437cat confdefs.h >>conftest.$ac_ext 20438cat >>conftest.$ac_ext <<_ACEOF 20439/* end confdefs.h. */ 20440$ac_includes_default 20441#include <$ac_header> 20442_ACEOF 20443rm -f conftest.$ac_objext 20444if { (ac_try="$ac_compile" 20445case "(($ac_try" in 20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20447 *) ac_try_echo=$ac_try;; 20448esac 20449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20450$as_echo "$ac_try_echo") >&5 20451 (eval "$ac_compile") 2>conftest.er1 20452 ac_status=$? 20453 grep -v '^ *+' conftest.er1 >conftest.err 20454 rm -f conftest.er1 20455 cat conftest.err >&5 20456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20457 (exit $ac_status); } && { 20458 test -z "$ac_c_werror_flag" || 20459 test ! -s conftest.err 20460 } && test -s conftest.$ac_objext; then 20461 ac_header_compiler=yes 20462else 20463 $as_echo "$as_me: failed program was:" >&5 20464sed 's/^/| /' conftest.$ac_ext >&5 20465 20466 ac_header_compiler=no 20467fi 20468 20469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20470{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20471$as_echo "$ac_header_compiler" >&6; } 20472 20473# Is the header present? 20474{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20475$as_echo_n "checking $ac_header presence... " >&6; } 20476cat >conftest.$ac_ext <<_ACEOF 20477/* confdefs.h. */ 20478_ACEOF 20479cat confdefs.h >>conftest.$ac_ext 20480cat >>conftest.$ac_ext <<_ACEOF 20481/* end confdefs.h. */ 20482#include <$ac_header> 20483_ACEOF 20484if { (ac_try="$ac_cpp conftest.$ac_ext" 20485case "(($ac_try" in 20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20487 *) ac_try_echo=$ac_try;; 20488esac 20489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20490$as_echo "$ac_try_echo") >&5 20491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20492 ac_status=$? 20493 grep -v '^ *+' conftest.er1 >conftest.err 20494 rm -f conftest.er1 20495 cat conftest.err >&5 20496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20497 (exit $ac_status); } >/dev/null && { 20498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20499 test ! -s conftest.err 20500 }; then 20501 ac_header_preproc=yes 20502else 20503 $as_echo "$as_me: failed program was:" >&5 20504sed 's/^/| /' conftest.$ac_ext >&5 20505 20506 ac_header_preproc=no 20507fi 20508 20509rm -f conftest.err conftest.$ac_ext 20510{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20511$as_echo "$ac_header_preproc" >&6; } 20512 20513# So? What about this header? 20514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20515 yes:no: ) 20516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20517$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20519$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20520 ac_header_preproc=yes 20521 ;; 20522 no:yes:* ) 20523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20524$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20526$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20528$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20530$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20532$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20534$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20535 ( cat <<\_ASBOX 20536## -------------------------------------------------------- ## 20537## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 20538## -------------------------------------------------------- ## 20539_ASBOX 20540 ) | sed "s/^/$as_me: WARNING: /" >&2 20541 ;; 20542esac 20543{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20544$as_echo_n "checking for $ac_header... " >&6; } 20545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20546 $as_echo_n "(cached) " >&6 20547else 20548 eval "$as_ac_Header=\$ac_header_preproc" 20549fi 20550ac_res=`eval 'as_val=${'$as_ac_Header'} 20551 $as_echo "$as_val"'` 20552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20553$as_echo "$ac_res" >&6; } 20554 20555fi 20556as_val=`eval 'as_val=${'$as_ac_Header'} 20557 $as_echo "$as_val"'` 20558 if test "x$as_val" = x""yes; then 20559 cat >>confdefs.h <<_ACEOF 20560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20561_ACEOF 20562 20563fi 20564 20565done 20566 20567 20568 20569 20570 20571 20572 20573for ac_header in sys/cdefs.h sys/file.h sys/mman.h sys/param.h \ 20574 sys/resource.h sys/uio.h 20575do 20576as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20579$as_echo_n "checking for $ac_header... " >&6; } 20580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20581 $as_echo_n "(cached) " >&6 20582fi 20583ac_res=`eval 'as_val=${'$as_ac_Header'} 20584 $as_echo "$as_val"'` 20585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20586$as_echo "$ac_res" >&6; } 20587else 20588 # Is the header compilable? 20589{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20590$as_echo_n "checking $ac_header usability... " >&6; } 20591cat >conftest.$ac_ext <<_ACEOF 20592/* confdefs.h. */ 20593_ACEOF 20594cat confdefs.h >>conftest.$ac_ext 20595cat >>conftest.$ac_ext <<_ACEOF 20596/* end confdefs.h. */ 20597$ac_includes_default 20598#include <$ac_header> 20599_ACEOF 20600rm -f conftest.$ac_objext 20601if { (ac_try="$ac_compile" 20602case "(($ac_try" in 20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20604 *) ac_try_echo=$ac_try;; 20605esac 20606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20607$as_echo "$ac_try_echo") >&5 20608 (eval "$ac_compile") 2>conftest.er1 20609 ac_status=$? 20610 grep -v '^ *+' conftest.er1 >conftest.err 20611 rm -f conftest.er1 20612 cat conftest.err >&5 20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20614 (exit $ac_status); } && { 20615 test -z "$ac_c_werror_flag" || 20616 test ! -s conftest.err 20617 } && test -s conftest.$ac_objext; then 20618 ac_header_compiler=yes 20619else 20620 $as_echo "$as_me: failed program was:" >&5 20621sed 's/^/| /' conftest.$ac_ext >&5 20622 20623 ac_header_compiler=no 20624fi 20625 20626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20627{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20628$as_echo "$ac_header_compiler" >&6; } 20629 20630# Is the header present? 20631{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20632$as_echo_n "checking $ac_header presence... " >&6; } 20633cat >conftest.$ac_ext <<_ACEOF 20634/* confdefs.h. */ 20635_ACEOF 20636cat confdefs.h >>conftest.$ac_ext 20637cat >>conftest.$ac_ext <<_ACEOF 20638/* end confdefs.h. */ 20639#include <$ac_header> 20640_ACEOF 20641if { (ac_try="$ac_cpp conftest.$ac_ext" 20642case "(($ac_try" in 20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20644 *) ac_try_echo=$ac_try;; 20645esac 20646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20647$as_echo "$ac_try_echo") >&5 20648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20649 ac_status=$? 20650 grep -v '^ *+' conftest.er1 >conftest.err 20651 rm -f conftest.er1 20652 cat conftest.err >&5 20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20654 (exit $ac_status); } >/dev/null && { 20655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20656 test ! -s conftest.err 20657 }; then 20658 ac_header_preproc=yes 20659else 20660 $as_echo "$as_me: failed program was:" >&5 20661sed 's/^/| /' conftest.$ac_ext >&5 20662 20663 ac_header_preproc=no 20664fi 20665 20666rm -f conftest.err conftest.$ac_ext 20667{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20668$as_echo "$ac_header_preproc" >&6; } 20669 20670# So? What about this header? 20671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20672 yes:no: ) 20673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20674$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20676$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20677 ac_header_preproc=yes 20678 ;; 20679 no:yes:* ) 20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20681$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20683$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20685$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20687$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20689$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20691$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20692 ( cat <<\_ASBOX 20693## -------------------------------------------------------- ## 20694## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 20695## -------------------------------------------------------- ## 20696_ASBOX 20697 ) | sed "s/^/$as_me: WARNING: /" >&2 20698 ;; 20699esac 20700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20701$as_echo_n "checking for $ac_header... " >&6; } 20702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20703 $as_echo_n "(cached) " >&6 20704else 20705 eval "$as_ac_Header=\$ac_header_preproc" 20706fi 20707ac_res=`eval 'as_val=${'$as_ac_Header'} 20708 $as_echo "$as_val"'` 20709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20710$as_echo "$ac_res" >&6; } 20711 20712fi 20713as_val=`eval 'as_val=${'$as_ac_Header'} 20714 $as_echo "$as_val"'` 20715 if test "x$as_val" = x""yes; then 20716 cat >>confdefs.h <<_ACEOF 20717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20718_ACEOF 20719 20720fi 20721 20722done 20723 20724 20725 20726for ac_header in bzlib.h 20727do 20728as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20731$as_echo_n "checking for $ac_header... " >&6; } 20732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20733 $as_echo_n "(cached) " >&6 20734fi 20735ac_res=`eval 'as_val=${'$as_ac_Header'} 20736 $as_echo "$as_val"'` 20737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20738$as_echo "$ac_res" >&6; } 20739else 20740 # Is the header compilable? 20741{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20742$as_echo_n "checking $ac_header usability... " >&6; } 20743cat >conftest.$ac_ext <<_ACEOF 20744/* confdefs.h. */ 20745_ACEOF 20746cat confdefs.h >>conftest.$ac_ext 20747cat >>conftest.$ac_ext <<_ACEOF 20748/* end confdefs.h. */ 20749$ac_includes_default 20750#include <$ac_header> 20751_ACEOF 20752rm -f conftest.$ac_objext 20753if { (ac_try="$ac_compile" 20754case "(($ac_try" in 20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20756 *) ac_try_echo=$ac_try;; 20757esac 20758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20759$as_echo "$ac_try_echo") >&5 20760 (eval "$ac_compile") 2>conftest.er1 20761 ac_status=$? 20762 grep -v '^ *+' conftest.er1 >conftest.err 20763 rm -f conftest.er1 20764 cat conftest.err >&5 20765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20766 (exit $ac_status); } && { 20767 test -z "$ac_c_werror_flag" || 20768 test ! -s conftest.err 20769 } && test -s conftest.$ac_objext; then 20770 ac_header_compiler=yes 20771else 20772 $as_echo "$as_me: failed program was:" >&5 20773sed 's/^/| /' conftest.$ac_ext >&5 20774 20775 ac_header_compiler=no 20776fi 20777 20778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20779{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20780$as_echo "$ac_header_compiler" >&6; } 20781 20782# Is the header present? 20783{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20784$as_echo_n "checking $ac_header presence... " >&6; } 20785cat >conftest.$ac_ext <<_ACEOF 20786/* confdefs.h. */ 20787_ACEOF 20788cat confdefs.h >>conftest.$ac_ext 20789cat >>conftest.$ac_ext <<_ACEOF 20790/* end confdefs.h. */ 20791#include <$ac_header> 20792_ACEOF 20793if { (ac_try="$ac_cpp conftest.$ac_ext" 20794case "(($ac_try" in 20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20796 *) ac_try_echo=$ac_try;; 20797esac 20798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20799$as_echo "$ac_try_echo") >&5 20800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20801 ac_status=$? 20802 grep -v '^ *+' conftest.er1 >conftest.err 20803 rm -f conftest.er1 20804 cat conftest.err >&5 20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20806 (exit $ac_status); } >/dev/null && { 20807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20808 test ! -s conftest.err 20809 }; then 20810 ac_header_preproc=yes 20811else 20812 $as_echo "$as_me: failed program was:" >&5 20813sed 's/^/| /' conftest.$ac_ext >&5 20814 20815 ac_header_preproc=no 20816fi 20817 20818rm -f conftest.err conftest.$ac_ext 20819{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20820$as_echo "$ac_header_preproc" >&6; } 20821 20822# So? What about this header? 20823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20824 yes:no: ) 20825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20826$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20828$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20829 ac_header_preproc=yes 20830 ;; 20831 no:yes:* ) 20832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20833$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20835$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20837$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20839$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20841$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20843$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20844 ( cat <<\_ASBOX 20845## -------------------------------------------------------- ## 20846## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ## 20847## -------------------------------------------------------- ## 20848_ASBOX 20849 ) | sed "s/^/$as_me: WARNING: /" >&2 20850 ;; 20851esac 20852{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20853$as_echo_n "checking for $ac_header... " >&6; } 20854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20855 $as_echo_n "(cached) " >&6 20856else 20857 eval "$as_ac_Header=\$ac_header_preproc" 20858fi 20859ac_res=`eval 'as_val=${'$as_ac_Header'} 20860 $as_echo "$as_val"'` 20861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20862$as_echo "$ac_res" >&6; } 20863 20864fi 20865as_val=`eval 'as_val=${'$as_ac_Header'} 20866 $as_echo "$as_val"'` 20867 if test "x$as_val" = x""yes; then 20868 cat >>confdefs.h <<_ACEOF 20869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20870_ACEOF 20871 20872else 20873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20875{ { $as_echo "$as_me:$LINENO: error: missing <bzlib.h>; is bzip2 installed? 20876See \`config.log' for more details." >&5 20877$as_echo "$as_me: error: missing <bzlib.h>; is bzip2 installed? 20878See \`config.log' for more details." >&2;} 20879 { (exit 1); exit 1; }; }; } 20880fi 20881 20882done 20883 20884 20885# Checks for typedefs, structures, and compiler characteristics. 20886# 20887 20888 { $as_echo "$as_me:$LINENO: checking for long long int" >&5 20889$as_echo_n "checking for long long int... " >&6; } 20890if test "${ac_cv_type_long_long_int+set}" = set; then 20891 $as_echo_n "(cached) " >&6 20892else 20893 cat >conftest.$ac_ext <<_ACEOF 20894 20895 /* confdefs.h. */ 20896_ACEOF 20897cat confdefs.h >>conftest.$ac_ext 20898cat >>conftest.$ac_ext <<_ACEOF 20899/* end confdefs.h. */ 20900/* For now, do not test the preprocessor; as of 2007 there are too many 20901 implementations with broken preprocessors. Perhaps this can 20902 be revisited in 2012. In the meantime, code should not expect 20903 #if to work with literals wider than 32 bits. */ 20904 /* Test literals. */ 20905 long long int ll = 9223372036854775807ll; 20906 long long int nll = -9223372036854775807LL; 20907 unsigned long long int ull = 18446744073709551615ULL; 20908 /* Test constant expressions. */ 20909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20910 ? 1 : -1)]; 20911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20912 ? 1 : -1)]; 20913 int i = 63; 20914int 20915main () 20916{ 20917/* Test availability of runtime routines for shift and division. */ 20918 long long int llmax = 9223372036854775807ll; 20919 unsigned long long int ullmax = 18446744073709551615ull; 20920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20921 | (llmax / ll) | (llmax % ll) 20922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20923 | (ullmax / ull) | (ullmax % ull)); 20924 ; 20925 return 0; 20926} 20927 20928_ACEOF 20929rm -f conftest.$ac_objext conftest$ac_exeext 20930if { (ac_try="$ac_link" 20931case "(($ac_try" in 20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20933 *) ac_try_echo=$ac_try;; 20934esac 20935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20936$as_echo "$ac_try_echo") >&5 20937 (eval "$ac_link") 2>conftest.er1 20938 ac_status=$? 20939 grep -v '^ *+' conftest.er1 >conftest.err 20940 rm -f conftest.er1 20941 cat conftest.err >&5 20942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20943 (exit $ac_status); } && { 20944 test -z "$ac_c_werror_flag" || 20945 test ! -s conftest.err 20946 } && test -s conftest$ac_exeext && { 20947 test "$cross_compiling" = yes || 20948 $as_test_x conftest$ac_exeext 20949 }; then 20950 if test "$cross_compiling" = yes; then 20951 ac_cv_type_long_long_int=yes 20952else 20953 cat >conftest.$ac_ext <<_ACEOF 20954/* confdefs.h. */ 20955_ACEOF 20956cat confdefs.h >>conftest.$ac_ext 20957cat >>conftest.$ac_ext <<_ACEOF 20958/* end confdefs.h. */ 20959#include <limits.h> 20960 #ifndef LLONG_MAX 20961 # define HALF \ 20962 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 20963 # define LLONG_MAX (HALF - 1 + HALF) 20964 #endif 20965int 20966main () 20967{ 20968long long int n = 1; 20969 int i; 20970 for (i = 0; ; i++) 20971 { 20972 long long int m = n << i; 20973 if (m >> i != n) 20974 return 1; 20975 if (LLONG_MAX / 2 < m) 20976 break; 20977 } 20978 return 0; 20979 ; 20980 return 0; 20981} 20982_ACEOF 20983rm -f conftest$ac_exeext 20984if { (ac_try="$ac_link" 20985case "(($ac_try" in 20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20987 *) ac_try_echo=$ac_try;; 20988esac 20989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20990$as_echo "$ac_try_echo") >&5 20991 (eval "$ac_link") 2>&5 20992 ac_status=$? 20993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20995 { (case "(($ac_try" in 20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20997 *) ac_try_echo=$ac_try;; 20998esac 20999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21000$as_echo "$ac_try_echo") >&5 21001 (eval "$ac_try") 2>&5 21002 ac_status=$? 21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21004 (exit $ac_status); }; }; then 21005 ac_cv_type_long_long_int=yes 21006else 21007 $as_echo "$as_me: program exited with status $ac_status" >&5 21008$as_echo "$as_me: failed program was:" >&5 21009sed 's/^/| /' conftest.$ac_ext >&5 21010 21011( exit $ac_status ) 21012ac_cv_type_long_long_int=no 21013fi 21014rm -rf conftest.dSYM 21015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21016fi 21017 21018 21019else 21020 $as_echo "$as_me: failed program was:" >&5 21021sed 's/^/| /' conftest.$ac_ext >&5 21022 21023 ac_cv_type_long_long_int=no 21024fi 21025 21026rm -rf conftest.dSYM 21027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21028 conftest$ac_exeext conftest.$ac_ext 21029fi 21030{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 21031$as_echo "$ac_cv_type_long_long_int" >&6; } 21032 if test $ac_cv_type_long_long_int = yes; then 21033 21034cat >>confdefs.h <<\_ACEOF 21035#define HAVE_LONG_LONG_INT 1 21036_ACEOF 21037 21038 fi 21039 21040{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 21041$as_echo_n "checking for size_t... " >&6; } 21042if test "${ac_cv_type_size_t+set}" = set; then 21043 $as_echo_n "(cached) " >&6 21044else 21045 ac_cv_type_size_t=no 21046cat >conftest.$ac_ext <<_ACEOF 21047/* confdefs.h. */ 21048_ACEOF 21049cat confdefs.h >>conftest.$ac_ext 21050cat >>conftest.$ac_ext <<_ACEOF 21051/* end confdefs.h. */ 21052$ac_includes_default 21053int 21054main () 21055{ 21056if (sizeof (size_t)) 21057 return 0; 21058 ; 21059 return 0; 21060} 21061_ACEOF 21062rm -f conftest.$ac_objext 21063if { (ac_try="$ac_compile" 21064case "(($ac_try" in 21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21066 *) ac_try_echo=$ac_try;; 21067esac 21068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21069$as_echo "$ac_try_echo") >&5 21070 (eval "$ac_compile") 2>conftest.er1 21071 ac_status=$? 21072 grep -v '^ *+' conftest.er1 >conftest.err 21073 rm -f conftest.er1 21074 cat conftest.err >&5 21075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21076 (exit $ac_status); } && { 21077 test -z "$ac_c_werror_flag" || 21078 test ! -s conftest.err 21079 } && test -s conftest.$ac_objext; then 21080 cat >conftest.$ac_ext <<_ACEOF 21081/* confdefs.h. */ 21082_ACEOF 21083cat confdefs.h >>conftest.$ac_ext 21084cat >>conftest.$ac_ext <<_ACEOF 21085/* end confdefs.h. */ 21086$ac_includes_default 21087int 21088main () 21089{ 21090if (sizeof ((size_t))) 21091 return 0; 21092 ; 21093 return 0; 21094} 21095_ACEOF 21096rm -f conftest.$ac_objext 21097if { (ac_try="$ac_compile" 21098case "(($ac_try" in 21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21100 *) ac_try_echo=$ac_try;; 21101esac 21102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21103$as_echo "$ac_try_echo") >&5 21104 (eval "$ac_compile") 2>conftest.er1 21105 ac_status=$? 21106 grep -v '^ *+' conftest.er1 >conftest.err 21107 rm -f conftest.er1 21108 cat conftest.err >&5 21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21110 (exit $ac_status); } && { 21111 test -z "$ac_c_werror_flag" || 21112 test ! -s conftest.err 21113 } && test -s conftest.$ac_objext; then 21114 : 21115else 21116 $as_echo "$as_me: failed program was:" >&5 21117sed 's/^/| /' conftest.$ac_ext >&5 21118 21119 ac_cv_type_size_t=yes 21120fi 21121 21122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21123else 21124 $as_echo "$as_me: failed program was:" >&5 21125sed 's/^/| /' conftest.$ac_ext >&5 21126 21127 21128fi 21129 21130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21131fi 21132{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 21133$as_echo "$ac_cv_type_size_t" >&6; } 21134if test "x$ac_cv_type_size_t" = x""yes; then 21135 : 21136else 21137 21138cat >>confdefs.h <<_ACEOF 21139#define size_t unsigned int 21140_ACEOF 21141 21142fi 21143 21144 21145 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 21146$as_echo_n "checking for uint16_t... " >&6; } 21147if test "${ac_cv_c_uint16_t+set}" = set; then 21148 $as_echo_n "(cached) " >&6 21149else 21150 ac_cv_c_uint16_t=no 21151 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ 21152 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 21153 cat >conftest.$ac_ext <<_ACEOF 21154/* confdefs.h. */ 21155_ACEOF 21156cat confdefs.h >>conftest.$ac_ext 21157cat >>conftest.$ac_ext <<_ACEOF 21158/* end confdefs.h. */ 21159$ac_includes_default 21160int 21161main () 21162{ 21163static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; 21164test_array [0] = 0 21165 21166 ; 21167 return 0; 21168} 21169_ACEOF 21170rm -f conftest.$ac_objext 21171if { (ac_try="$ac_compile" 21172case "(($ac_try" in 21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21174 *) ac_try_echo=$ac_try;; 21175esac 21176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21177$as_echo "$ac_try_echo") >&5 21178 (eval "$ac_compile") 2>conftest.er1 21179 ac_status=$? 21180 grep -v '^ *+' conftest.er1 >conftest.err 21181 rm -f conftest.er1 21182 cat conftest.err >&5 21183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21184 (exit $ac_status); } && { 21185 test -z "$ac_c_werror_flag" || 21186 test ! -s conftest.err 21187 } && test -s conftest.$ac_objext; then 21188 case $ac_type in 21189 uint16_t) ac_cv_c_uint16_t=yes ;; 21190 *) ac_cv_c_uint16_t=$ac_type ;; 21191esac 21192 21193else 21194 $as_echo "$as_me: failed program was:" >&5 21195sed 's/^/| /' conftest.$ac_ext >&5 21196 21197 21198fi 21199 21200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21201 test "$ac_cv_c_uint16_t" != no && break 21202 done 21203fi 21204{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 21205$as_echo "$ac_cv_c_uint16_t" >&6; } 21206 case $ac_cv_c_uint16_t in #( 21207 no|yes) ;; #( 21208 *) 21209 21210 21211cat >>confdefs.h <<_ACEOF 21212#define uint16_t $ac_cv_c_uint16_t 21213_ACEOF 21214;; 21215 esac 21216 21217 21218 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 21219$as_echo_n "checking for uint32_t... " >&6; } 21220if test "${ac_cv_c_uint32_t+set}" = set; then 21221 $as_echo_n "(cached) " >&6 21222else 21223 ac_cv_c_uint32_t=no 21224 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 21225 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 21226 cat >conftest.$ac_ext <<_ACEOF 21227/* confdefs.h. */ 21228_ACEOF 21229cat confdefs.h >>conftest.$ac_ext 21230cat >>conftest.$ac_ext <<_ACEOF 21231/* end confdefs.h. */ 21232$ac_includes_default 21233int 21234main () 21235{ 21236static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 21237test_array [0] = 0 21238 21239 ; 21240 return 0; 21241} 21242_ACEOF 21243rm -f conftest.$ac_objext 21244if { (ac_try="$ac_compile" 21245case "(($ac_try" in 21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21247 *) ac_try_echo=$ac_try;; 21248esac 21249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21250$as_echo "$ac_try_echo") >&5 21251 (eval "$ac_compile") 2>conftest.er1 21252 ac_status=$? 21253 grep -v '^ *+' conftest.er1 >conftest.err 21254 rm -f conftest.er1 21255 cat conftest.err >&5 21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21257 (exit $ac_status); } && { 21258 test -z "$ac_c_werror_flag" || 21259 test ! -s conftest.err 21260 } && test -s conftest.$ac_objext; then 21261 case $ac_type in 21262 uint32_t) ac_cv_c_uint32_t=yes ;; 21263 *) ac_cv_c_uint32_t=$ac_type ;; 21264esac 21265 21266else 21267 $as_echo "$as_me: failed program was:" >&5 21268sed 's/^/| /' conftest.$ac_ext >&5 21269 21270 21271fi 21272 21273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21274 test "$ac_cv_c_uint32_t" != no && break 21275 done 21276fi 21277{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 21278$as_echo "$ac_cv_c_uint32_t" >&6; } 21279 case $ac_cv_c_uint32_t in #( 21280 no|yes) ;; #( 21281 *) 21282 21283cat >>confdefs.h <<\_ACEOF 21284#define _UINT32_T 1 21285_ACEOF 21286 21287 21288cat >>confdefs.h <<_ACEOF 21289#define uint32_t $ac_cv_c_uint32_t 21290_ACEOF 21291;; 21292 esac 21293 21294 21295 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 21296$as_echo_n "checking for uint64_t... " >&6; } 21297if test "${ac_cv_c_uint64_t+set}" = set; then 21298 $as_echo_n "(cached) " >&6 21299else 21300 ac_cv_c_uint64_t=no 21301 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ 21302 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 21303 cat >conftest.$ac_ext <<_ACEOF 21304/* confdefs.h. */ 21305_ACEOF 21306cat confdefs.h >>conftest.$ac_ext 21307cat >>conftest.$ac_ext <<_ACEOF 21308/* end confdefs.h. */ 21309$ac_includes_default 21310int 21311main () 21312{ 21313static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; 21314test_array [0] = 0 21315 21316 ; 21317 return 0; 21318} 21319_ACEOF 21320rm -f conftest.$ac_objext 21321if { (ac_try="$ac_compile" 21322case "(($ac_try" in 21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21324 *) ac_try_echo=$ac_try;; 21325esac 21326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21327$as_echo "$ac_try_echo") >&5 21328 (eval "$ac_compile") 2>conftest.er1 21329 ac_status=$? 21330 grep -v '^ *+' conftest.er1 >conftest.err 21331 rm -f conftest.er1 21332 cat conftest.err >&5 21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21334 (exit $ac_status); } && { 21335 test -z "$ac_c_werror_flag" || 21336 test ! -s conftest.err 21337 } && test -s conftest.$ac_objext; then 21338 case $ac_type in 21339 uint64_t) ac_cv_c_uint64_t=yes ;; 21340 *) ac_cv_c_uint64_t=$ac_type ;; 21341esac 21342 21343else 21344 $as_echo "$as_me: failed program was:" >&5 21345sed 's/^/| /' conftest.$ac_ext >&5 21346 21347 21348fi 21349 21350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21351 test "$ac_cv_c_uint64_t" != no && break 21352 done 21353fi 21354{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 21355$as_echo "$ac_cv_c_uint64_t" >&6; } 21356 case $ac_cv_c_uint64_t in #( 21357 no|yes) ;; #( 21358 *) 21359 21360cat >>confdefs.h <<\_ACEOF 21361#define _UINT64_T 1 21362_ACEOF 21363 21364 21365cat >>confdefs.h <<_ACEOF 21366#define uint64_t $ac_cv_c_uint64_t 21367_ACEOF 21368;; 21369 esac 21370 21371 21372 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 21373$as_echo_n "checking for uint8_t... " >&6; } 21374if test "${ac_cv_c_uint8_t+set}" = set; then 21375 $as_echo_n "(cached) " >&6 21376else 21377 ac_cv_c_uint8_t=no 21378 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ 21379 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 21380 cat >conftest.$ac_ext <<_ACEOF 21381/* confdefs.h. */ 21382_ACEOF 21383cat confdefs.h >>conftest.$ac_ext 21384cat >>conftest.$ac_ext <<_ACEOF 21385/* end confdefs.h. */ 21386$ac_includes_default 21387int 21388main () 21389{ 21390static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; 21391test_array [0] = 0 21392 21393 ; 21394 return 0; 21395} 21396_ACEOF 21397rm -f conftest.$ac_objext 21398if { (ac_try="$ac_compile" 21399case "(($ac_try" in 21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21401 *) ac_try_echo=$ac_try;; 21402esac 21403eval 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 case $ac_type in 21416 uint8_t) ac_cv_c_uint8_t=yes ;; 21417 *) ac_cv_c_uint8_t=$ac_type ;; 21418esac 21419 21420else 21421 $as_echo "$as_me: failed program was:" >&5 21422sed 's/^/| /' conftest.$ac_ext >&5 21423 21424 21425fi 21426 21427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21428 test "$ac_cv_c_uint8_t" != no && break 21429 done 21430fi 21431{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 21432$as_echo "$ac_cv_c_uint8_t" >&6; } 21433 case $ac_cv_c_uint8_t in #( 21434 no|yes) ;; #( 21435 *) 21436 21437cat >>confdefs.h <<\_ACEOF 21438#define _UINT8_T 1 21439_ACEOF 21440 21441 21442cat >>confdefs.h <<_ACEOF 21443#define uint8_t $ac_cv_c_uint8_t 21444_ACEOF 21445;; 21446 esac 21447 21448 21449{ $as_echo "$as_me:$LINENO: checking for SHA256_CTX" >&5 21450$as_echo_n "checking for SHA256_CTX... " >&6; } 21451if test "${ac_cv_type_SHA256_CTX+set}" = set; then 21452 $as_echo_n "(cached) " >&6 21453else 21454 ac_cv_type_SHA256_CTX=no 21455cat >conftest.$ac_ext <<_ACEOF 21456/* confdefs.h. */ 21457_ACEOF 21458cat confdefs.h >>conftest.$ac_ext 21459cat >>conftest.$ac_ext <<_ACEOF 21460/* end confdefs.h. */ 21461 21462#if defined(HAVE_SYS_TYPES_H) 21463#include <sys/types.h> 21464#endif 21465#if defined(HAVE_OPENSSL_SHA_H) 21466#include <openssl/sha.h> 21467#endif 21468#if defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H) 21469#define COMMON_DIGEST_FOR_OPENSSL 1 21470#include <CommonCrypto/CommonDigest.h> 21471#endif 21472 21473 21474int 21475main () 21476{ 21477if (sizeof (SHA256_CTX)) 21478 return 0; 21479 ; 21480 return 0; 21481} 21482_ACEOF 21483rm -f conftest.$ac_objext 21484if { (ac_try="$ac_compile" 21485case "(($ac_try" in 21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21487 *) ac_try_echo=$ac_try;; 21488esac 21489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21490$as_echo "$ac_try_echo") >&5 21491 (eval "$ac_compile") 2>conftest.er1 21492 ac_status=$? 21493 grep -v '^ *+' conftest.er1 >conftest.err 21494 rm -f conftest.er1 21495 cat conftest.err >&5 21496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21497 (exit $ac_status); } && { 21498 test -z "$ac_c_werror_flag" || 21499 test ! -s conftest.err 21500 } && test -s conftest.$ac_objext; then 21501 cat >conftest.$ac_ext <<_ACEOF 21502/* confdefs.h. */ 21503_ACEOF 21504cat confdefs.h >>conftest.$ac_ext 21505cat >>conftest.$ac_ext <<_ACEOF 21506/* end confdefs.h. */ 21507 21508#if defined(HAVE_SYS_TYPES_H) 21509#include <sys/types.h> 21510#endif 21511#if defined(HAVE_OPENSSL_SHA_H) 21512#include <openssl/sha.h> 21513#endif 21514#if defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H) 21515#define COMMON_DIGEST_FOR_OPENSSL 1 21516#include <CommonCrypto/CommonDigest.h> 21517#endif 21518 21519 21520int 21521main () 21522{ 21523if (sizeof ((SHA256_CTX))) 21524 return 0; 21525 ; 21526 return 0; 21527} 21528_ACEOF 21529rm -f conftest.$ac_objext 21530if { (ac_try="$ac_compile" 21531case "(($ac_try" in 21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21533 *) ac_try_echo=$ac_try;; 21534esac 21535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21536$as_echo "$ac_try_echo") >&5 21537 (eval "$ac_compile") 2>conftest.er1 21538 ac_status=$? 21539 grep -v '^ *+' conftest.er1 >conftest.err 21540 rm -f conftest.er1 21541 cat conftest.err >&5 21542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21543 (exit $ac_status); } && { 21544 test -z "$ac_c_werror_flag" || 21545 test ! -s conftest.err 21546 } && test -s conftest.$ac_objext; then 21547 : 21548else 21549 $as_echo "$as_me: failed program was:" >&5 21550sed 's/^/| /' conftest.$ac_ext >&5 21551 21552 ac_cv_type_SHA256_CTX=yes 21553fi 21554 21555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21556else 21557 $as_echo "$as_me: failed program was:" >&5 21558sed 's/^/| /' conftest.$ac_ext >&5 21559 21560 21561fi 21562 21563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21564fi 21565{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_SHA256_CTX" >&5 21566$as_echo "$ac_cv_type_SHA256_CTX" >&6; } 21567if test "x$ac_cv_type_SHA256_CTX" = x""yes; then 21568 21569cat >>confdefs.h <<_ACEOF 21570#define HAVE_SHA256_CTX 1 21571_ACEOF 21572 21573 21574else 21575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21577{ { $as_echo "$as_me:$LINENO: error: missing SHA256_CTX; is openssl 0.9.8 or newer installed? 21578See \`config.log' for more details." >&5 21579$as_echo "$as_me: error: missing SHA256_CTX; is openssl 0.9.8 or newer installed? 21580See \`config.log' for more details." >&2;} 21581 { (exit 1); exit 1; }; }; } 21582fi 21583 21584 21585# Checks for library functions. 21586# 21587{ $as_echo "$as_me:$LINENO: checking for library containing gzopen" >&5 21588$as_echo_n "checking for library containing gzopen... " >&6; } 21589if test "${ac_cv_search_gzopen+set}" = set; then 21590 $as_echo_n "(cached) " >&6 21591else 21592 ac_func_search_save_LIBS=$LIBS 21593cat >conftest.$ac_ext <<_ACEOF 21594/* confdefs.h. */ 21595_ACEOF 21596cat confdefs.h >>conftest.$ac_ext 21597cat >>conftest.$ac_ext <<_ACEOF 21598/* end confdefs.h. */ 21599 21600/* Override any GCC internal prototype to avoid an error. 21601 Use char because int might match the return type of a GCC 21602 builtin and then its argument prototype would still apply. */ 21603#ifdef __cplusplus 21604extern "C" 21605#endif 21606char gzopen (); 21607int 21608main () 21609{ 21610return gzopen (); 21611 ; 21612 return 0; 21613} 21614_ACEOF 21615for ac_lib in '' z; do 21616 if test -z "$ac_lib"; then 21617 ac_res="none required" 21618 else 21619 ac_res=-l$ac_lib 21620 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21621 fi 21622 rm -f conftest.$ac_objext conftest$ac_exeext 21623if { (ac_try="$ac_link" 21624case "(($ac_try" in 21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21626 *) ac_try_echo=$ac_try;; 21627esac 21628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21629$as_echo "$ac_try_echo") >&5 21630 (eval "$ac_link") 2>conftest.er1 21631 ac_status=$? 21632 grep -v '^ *+' conftest.er1 >conftest.err 21633 rm -f conftest.er1 21634 cat conftest.err >&5 21635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21636 (exit $ac_status); } && { 21637 test -z "$ac_c_werror_flag" || 21638 test ! -s conftest.err 21639 } && test -s conftest$ac_exeext && { 21640 test "$cross_compiling" = yes || 21641 $as_test_x conftest$ac_exeext 21642 }; then 21643 ac_cv_search_gzopen=$ac_res 21644else 21645 $as_echo "$as_me: failed program was:" >&5 21646sed 's/^/| /' conftest.$ac_ext >&5 21647 21648 21649fi 21650 21651rm -rf conftest.dSYM 21652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21653 conftest$ac_exeext 21654 if test "${ac_cv_search_gzopen+set}" = set; then 21655 break 21656fi 21657done 21658if test "${ac_cv_search_gzopen+set}" = set; then 21659 : 21660else 21661 ac_cv_search_gzopen=no 21662fi 21663rm conftest.$ac_ext 21664LIBS=$ac_func_search_save_LIBS 21665fi 21666{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gzopen" >&5 21667$as_echo "$ac_cv_search_gzopen" >&6; } 21668ac_res=$ac_cv_search_gzopen 21669if test "$ac_res" != no; then 21670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21671 21672fi 21673 21674{ $as_echo "$as_me:$LINENO: checking for library containing BZ2_bzDecompress" >&5 21675$as_echo_n "checking for library containing BZ2_bzDecompress... " >&6; } 21676if test "${ac_cv_search_BZ2_bzDecompress+set}" = set; then 21677 $as_echo_n "(cached) " >&6 21678else 21679 ac_func_search_save_LIBS=$LIBS 21680cat >conftest.$ac_ext <<_ACEOF 21681/* confdefs.h. */ 21682_ACEOF 21683cat confdefs.h >>conftest.$ac_ext 21684cat >>conftest.$ac_ext <<_ACEOF 21685/* end confdefs.h. */ 21686 21687/* Override any GCC internal prototype to avoid an error. 21688 Use char because int might match the return type of a GCC 21689 builtin and then its argument prototype would still apply. */ 21690#ifdef __cplusplus 21691extern "C" 21692#endif 21693char BZ2_bzDecompress (); 21694int 21695main () 21696{ 21697return BZ2_bzDecompress (); 21698 ; 21699 return 0; 21700} 21701_ACEOF 21702for ac_lib in '' bz2; do 21703 if test -z "$ac_lib"; then 21704 ac_res="none required" 21705 else 21706 ac_res=-l$ac_lib 21707 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21708 fi 21709 rm -f conftest.$ac_objext conftest$ac_exeext 21710if { (ac_try="$ac_link" 21711case "(($ac_try" in 21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21713 *) ac_try_echo=$ac_try;; 21714esac 21715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21716$as_echo "$ac_try_echo") >&5 21717 (eval "$ac_link") 2>conftest.er1 21718 ac_status=$? 21719 grep -v '^ *+' conftest.er1 >conftest.err 21720 rm -f conftest.er1 21721 cat conftest.err >&5 21722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21723 (exit $ac_status); } && { 21724 test -z "$ac_c_werror_flag" || 21725 test ! -s conftest.err 21726 } && test -s conftest$ac_exeext && { 21727 test "$cross_compiling" = yes || 21728 $as_test_x conftest$ac_exeext 21729 }; then 21730 ac_cv_search_BZ2_bzDecompress=$ac_res 21731else 21732 $as_echo "$as_me: failed program was:" >&5 21733sed 's/^/| /' conftest.$ac_ext >&5 21734 21735 21736fi 21737 21738rm -rf conftest.dSYM 21739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21740 conftest$ac_exeext 21741 if test "${ac_cv_search_BZ2_bzDecompress+set}" = set; then 21742 break 21743fi 21744done 21745if test "${ac_cv_search_BZ2_bzDecompress+set}" = set; then 21746 : 21747else 21748 ac_cv_search_BZ2_bzDecompress=no 21749fi 21750rm conftest.$ac_ext 21751LIBS=$ac_func_search_save_LIBS 21752fi 21753{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_BZ2_bzDecompress" >&5 21754$as_echo "$ac_cv_search_BZ2_bzDecompress" >&6; } 21755ac_res=$ac_cv_search_BZ2_bzDecompress 21756if test "$ac_res" != no; then 21757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21758 21759fi 21760 21761{ $as_echo "$as_me:$LINENO: checking for library containing RSA_public_encrypt" >&5 21762$as_echo_n "checking for library containing RSA_public_encrypt... " >&6; } 21763if test "${ac_cv_search_RSA_public_encrypt+set}" = set; then 21764 $as_echo_n "(cached) " >&6 21765else 21766 ac_func_search_save_LIBS=$LIBS 21767cat >conftest.$ac_ext <<_ACEOF 21768/* confdefs.h. */ 21769_ACEOF 21770cat confdefs.h >>conftest.$ac_ext 21771cat >>conftest.$ac_ext <<_ACEOF 21772/* end confdefs.h. */ 21773 21774/* Override any GCC internal prototype to avoid an error. 21775 Use char because int might match the return type of a GCC 21776 builtin and then its argument prototype would still apply. */ 21777#ifdef __cplusplus 21778extern "C" 21779#endif 21780char RSA_public_encrypt (); 21781int 21782main () 21783{ 21784return RSA_public_encrypt (); 21785 ; 21786 return 0; 21787} 21788_ACEOF 21789for ac_lib in '' crypto; do 21790 if test -z "$ac_lib"; then 21791 ac_res="none required" 21792 else 21793 ac_res=-l$ac_lib 21794 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21795 fi 21796 rm -f conftest.$ac_objext conftest$ac_exeext 21797if { (ac_try="$ac_link" 21798case "(($ac_try" in 21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21800 *) ac_try_echo=$ac_try;; 21801esac 21802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21803$as_echo "$ac_try_echo") >&5 21804 (eval "$ac_link") 2>conftest.er1 21805 ac_status=$? 21806 grep -v '^ *+' conftest.er1 >conftest.err 21807 rm -f conftest.er1 21808 cat conftest.err >&5 21809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21810 (exit $ac_status); } && { 21811 test -z "$ac_c_werror_flag" || 21812 test ! -s conftest.err 21813 } && test -s conftest$ac_exeext && { 21814 test "$cross_compiling" = yes || 21815 $as_test_x conftest$ac_exeext 21816 }; then 21817 ac_cv_search_RSA_public_encrypt=$ac_res 21818else 21819 $as_echo "$as_me: failed program was:" >&5 21820sed 's/^/| /' conftest.$ac_ext >&5 21821 21822 21823fi 21824 21825rm -rf conftest.dSYM 21826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21827 conftest$ac_exeext 21828 if test "${ac_cv_search_RSA_public_encrypt+set}" = set; then 21829 break 21830fi 21831done 21832if test "${ac_cv_search_RSA_public_encrypt+set}" = set; then 21833 : 21834else 21835 ac_cv_search_RSA_public_encrypt=no 21836fi 21837rm conftest.$ac_ext 21838LIBS=$ac_func_search_save_LIBS 21839fi 21840{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_RSA_public_encrypt" >&5 21841$as_echo "$ac_cv_search_RSA_public_encrypt" >&6; } 21842ac_res=$ac_cv_search_RSA_public_encrypt 21843if test "$ac_res" != no; then 21844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21845 21846fi 21847 21848 21849# Initialize the testsuite 21850# 21851ac_config_commands="$ac_config_commands tests/atconfig" 21852 21853 21854 21855AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"} 21856 21857 21858# Generate the Makefiles 21859# 21860ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/netpgp/Makefile src/netpgpkeys/Makefile src/netpgpverify/Makefile tests/Makefile tests/atlocal" 21861 21862cat >confcache <<\_ACEOF 21863# This file is a shell script that caches the results of configure 21864# tests run on this system so they can be shared between configure 21865# scripts and configure runs, see configure's option --config-cache. 21866# It is not useful on other systems. If it contains results you don't 21867# want to keep, you may remove or edit it. 21868# 21869# config.status only pays attention to the cache file if you give it 21870# the --recheck option to rerun configure. 21871# 21872# `ac_cv_env_foo' variables (set or unset) will be overridden when 21873# loading this file, other *unset* `ac_cv_foo' will be assigned the 21874# following values. 21875 21876_ACEOF 21877 21878# The following way of writing the cache mishandles newlines in values, 21879# but we know of no workaround that is simple, portable, and efficient. 21880# So, we kill variables containing newlines. 21881# Ultrix sh set writes to stderr and can't be redirected directly, 21882# and sets the high bit in the cache file unless we assign to the vars. 21883( 21884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21885 eval ac_val=\$$ac_var 21886 case $ac_val in #( 21887 *${as_nl}*) 21888 case $ac_var in #( 21889 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21891 esac 21892 case $ac_var in #( 21893 _ | IFS | as_nl) ;; #( 21894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21895 *) $as_unset $ac_var ;; 21896 esac ;; 21897 esac 21898 done 21899 21900 (set) 2>&1 | 21901 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21902 *${as_nl}ac_space=\ *) 21903 # `set' does not quote correctly, so add quotes (double-quote 21904 # substitution turns \\\\ into \\, and sed turns \\ into \). 21905 sed -n \ 21906 "s/'/'\\\\''/g; 21907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21908 ;; #( 21909 *) 21910 # `set' quotes correctly as required by POSIX, so do not add quotes. 21911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21912 ;; 21913 esac | 21914 sort 21915) | 21916 sed ' 21917 /^ac_cv_env_/b end 21918 t clear 21919 :clear 21920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21921 t end 21922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21923 :end' >>confcache 21924if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21925 if test -w "$cache_file"; then 21926 test "x$cache_file" != "x/dev/null" && 21927 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21928$as_echo "$as_me: updating cache $cache_file" >&6;} 21929 cat confcache >$cache_file 21930 else 21931 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21932$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21933 fi 21934fi 21935rm -f confcache 21936 21937test "x$prefix" = xNONE && prefix=$ac_default_prefix 21938# Let make expand exec_prefix. 21939test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21940 21941DEFS=-DHAVE_CONFIG_H 21942 21943ac_libobjs= 21944ac_ltlibobjs= 21945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21946 # 1. Remove the extension, and $U if already installed. 21947 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21948 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21949 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21950 # will be set to the directory where LIBOBJS objects are built. 21951 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21952 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21953done 21954LIBOBJS=$ac_libobjs 21955 21956LTLIBOBJS=$ac_ltlibobjs 21957 21958 21959if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21960 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21961Usually this means the macro was only invoked conditionally." >&5 21962$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21963Usually this means the macro was only invoked conditionally." >&2;} 21964 { (exit 1); exit 1; }; } 21965fi 21966if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21967 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21968Usually this means the macro was only invoked conditionally." >&5 21969$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21970Usually this means the macro was only invoked conditionally." >&2;} 21971 { (exit 1); exit 1; }; } 21972fi 21973if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21974 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21975Usually this means the macro was only invoked conditionally." >&5 21976$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21977Usually this means the macro was only invoked conditionally." >&2;} 21978 { (exit 1); exit 1; }; } 21979fi 21980if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21981 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21982Usually this means the macro was only invoked conditionally." >&5 21983$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21984Usually this means the macro was only invoked conditionally." >&2;} 21985 { (exit 1); exit 1; }; } 21986fi 21987 21988: ${CONFIG_STATUS=./config.status} 21989ac_write_fail=0 21990ac_clean_files_save=$ac_clean_files 21991ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21992{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21993$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21994cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21995#! $SHELL 21996# Generated by $as_me. 21997# Run this file to recreate the current configuration. 21998# Compiler output produced by configure, useful for debugging 21999# configure, is in config.log if it exists. 22000 22001debug=false 22002ac_cs_recheck=false 22003ac_cs_silent=false 22004SHELL=\${CONFIG_SHELL-$SHELL} 22005_ACEOF 22006 22007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22008## --------------------- ## 22009## M4sh Initialization. ## 22010## --------------------- ## 22011 22012# Be more Bourne compatible 22013DUALCASE=1; export DUALCASE # for MKS sh 22014if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22015 emulate sh 22016 NULLCMD=: 22017 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22018 # is contrary to our usage. Disable this feature. 22019 alias -g '${1+"$@"}'='"$@"' 22020 setopt NO_GLOB_SUBST 22021else 22022 case `(set -o) 2>/dev/null` in 22023 *posix*) set -o posix ;; 22024esac 22025 22026fi 22027 22028 22029 22030 22031# PATH needs CR 22032# Avoid depending upon Character Ranges. 22033as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22034as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22035as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22036as_cr_digits='0123456789' 22037as_cr_alnum=$as_cr_Letters$as_cr_digits 22038 22039as_nl=' 22040' 22041export as_nl 22042# Printing a long string crashes Solaris 7 /usr/bin/printf. 22043as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22044as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22045as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22046if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22047 as_echo='printf %s\n' 22048 as_echo_n='printf %s' 22049else 22050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22052 as_echo_n='/usr/ucb/echo -n' 22053 else 22054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22055 as_echo_n_body='eval 22056 arg=$1; 22057 case $arg in 22058 *"$as_nl"*) 22059 expr "X$arg" : "X\\(.*\\)$as_nl"; 22060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22061 esac; 22062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22063 ' 22064 export as_echo_n_body 22065 as_echo_n='sh -c $as_echo_n_body as_echo' 22066 fi 22067 export as_echo_body 22068 as_echo='sh -c $as_echo_body as_echo' 22069fi 22070 22071# The user is always right. 22072if test "${PATH_SEPARATOR+set}" != set; then 22073 PATH_SEPARATOR=: 22074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22076 PATH_SEPARATOR=';' 22077 } 22078fi 22079 22080# Support unset when possible. 22081if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22082 as_unset=unset 22083else 22084 as_unset=false 22085fi 22086 22087 22088# IFS 22089# We need space, tab and new line, in precisely that order. Quoting is 22090# there to prevent editors from complaining about space-tab. 22091# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22092# splitting by setting IFS to empty value.) 22093IFS=" "" $as_nl" 22094 22095# Find who we are. Look in the path if we contain no directory separator. 22096case $0 in 22097 *[\\/]* ) as_myself=$0 ;; 22098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22099for as_dir in $PATH 22100do 22101 IFS=$as_save_IFS 22102 test -z "$as_dir" && as_dir=. 22103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22104done 22105IFS=$as_save_IFS 22106 22107 ;; 22108esac 22109# We did not find ourselves, most probably we were run as `sh COMMAND' 22110# in which case we are not to be found in the path. 22111if test "x$as_myself" = x; then 22112 as_myself=$0 22113fi 22114if test ! -f "$as_myself"; then 22115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22116 { (exit 1); exit 1; } 22117fi 22118 22119# Work around bugs in pre-3.0 UWIN ksh. 22120for as_var in ENV MAIL MAILPATH 22121do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22122done 22123PS1='$ ' 22124PS2='> ' 22125PS4='+ ' 22126 22127# NLS nuisances. 22128LC_ALL=C 22129export LC_ALL 22130LANGUAGE=C 22131export LANGUAGE 22132 22133# Required to use basename. 22134if expr a : '\(a\)' >/dev/null 2>&1 && 22135 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22136 as_expr=expr 22137else 22138 as_expr=false 22139fi 22140 22141if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22142 as_basename=basename 22143else 22144 as_basename=false 22145fi 22146 22147 22148# Name of the executable. 22149as_me=`$as_basename -- "$0" || 22150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22151 X"$0" : 'X\(//\)$' \| \ 22152 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22153$as_echo X/"$0" | 22154 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22155 s//\1/ 22156 q 22157 } 22158 /^X\/\(\/\/\)$/{ 22159 s//\1/ 22160 q 22161 } 22162 /^X\/\(\/\).*/{ 22163 s//\1/ 22164 q 22165 } 22166 s/.*/./; q'` 22167 22168# CDPATH. 22169$as_unset CDPATH 22170 22171 22172 22173 as_lineno_1=$LINENO 22174 as_lineno_2=$LINENO 22175 test "x$as_lineno_1" != "x$as_lineno_2" && 22176 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22177 22178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22179 # uniformly replaced by the line number. The first 'sed' inserts a 22180 # line-number line after each line using $LINENO; the second 'sed' 22181 # does the real work. The second script uses 'N' to pair each 22182 # line-number line with the line containing $LINENO, and appends 22183 # trailing '-' during substitution so that $LINENO is not a special 22184 # case at line end. 22185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22186 # scripts with optimization help from Paolo Bonzini. Blame Lee 22187 # E. McMahon (1931-1989) for sed's syntax. :-) 22188 sed -n ' 22189 p 22190 /[$]LINENO/= 22191 ' <$as_myself | 22192 sed ' 22193 s/[$]LINENO.*/&-/ 22194 t lineno 22195 b 22196 :lineno 22197 N 22198 :loop 22199 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22200 t loop 22201 s/-\n.*// 22202 ' >$as_me.lineno && 22203 chmod +x "$as_me.lineno" || 22204 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22205 { (exit 1); exit 1; }; } 22206 22207 # Don't try to exec as it changes $[0], causing all sort of problems 22208 # (the dirname of $[0] is not the place where we might find the 22209 # original and so on. Autoconf is especially sensitive to this). 22210 . "./$as_me.lineno" 22211 # Exit status is that of the last command. 22212 exit 22213} 22214 22215 22216if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22217 as_dirname=dirname 22218else 22219 as_dirname=false 22220fi 22221 22222ECHO_C= ECHO_N= ECHO_T= 22223case `echo -n x` in 22224-n*) 22225 case `echo 'x\c'` in 22226 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22227 *) ECHO_C='\c';; 22228 esac;; 22229*) 22230 ECHO_N='-n';; 22231esac 22232if expr a : '\(a\)' >/dev/null 2>&1 && 22233 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22234 as_expr=expr 22235else 22236 as_expr=false 22237fi 22238 22239rm -f conf$$ conf$$.exe conf$$.file 22240if test -d conf$$.dir; then 22241 rm -f conf$$.dir/conf$$.file 22242else 22243 rm -f conf$$.dir 22244 mkdir conf$$.dir 2>/dev/null 22245fi 22246if (echo >conf$$.file) 2>/dev/null; then 22247 if ln -s conf$$.file conf$$ 2>/dev/null; then 22248 as_ln_s='ln -s' 22249 # ... but there are two gotchas: 22250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22252 # In both cases, we have to default to `cp -p'. 22253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22254 as_ln_s='cp -p' 22255 elif ln conf$$.file conf$$ 2>/dev/null; then 22256 as_ln_s=ln 22257 else 22258 as_ln_s='cp -p' 22259 fi 22260else 22261 as_ln_s='cp -p' 22262fi 22263rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22264rmdir conf$$.dir 2>/dev/null 22265 22266if mkdir -p . 2>/dev/null; then 22267 as_mkdir_p=: 22268else 22269 test -d ./-p && rmdir ./-p 22270 as_mkdir_p=false 22271fi 22272 22273if test -x / >/dev/null 2>&1; then 22274 as_test_x='test -x' 22275else 22276 if ls -dL / >/dev/null 2>&1; then 22277 as_ls_L_option=L 22278 else 22279 as_ls_L_option= 22280 fi 22281 as_test_x=' 22282 eval sh -c '\'' 22283 if test -d "$1"; then 22284 test -d "$1/."; 22285 else 22286 case $1 in 22287 -*)set "./$1";; 22288 esac; 22289 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22290 ???[sx]*):;;*)false;;esac;fi 22291 '\'' sh 22292 ' 22293fi 22294as_executable_p=$as_test_x 22295 22296# Sed expression to map a string onto a valid CPP name. 22297as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22298 22299# Sed expression to map a string onto a valid variable name. 22300as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22301 22302 22303exec 6>&1 22304 22305# Save the log message, to keep $[0] and so on meaningful, and to 22306# report actual input values of CONFIG_FILES etc. instead of their 22307# values after options handling. 22308ac_log=" 22309This file was extended by netpgp $as_me 20100413, which was 22310generated by GNU Autoconf 2.63. Invocation command line was 22311 22312 CONFIG_FILES = $CONFIG_FILES 22313 CONFIG_HEADERS = $CONFIG_HEADERS 22314 CONFIG_LINKS = $CONFIG_LINKS 22315 CONFIG_COMMANDS = $CONFIG_COMMANDS 22316 $ $0 $@ 22317 22318on `(hostname || uname -n) 2>/dev/null | sed 1q` 22319" 22320 22321_ACEOF 22322 22323case $ac_config_files in *" 22324"*) set x $ac_config_files; shift; ac_config_files=$*;; 22325esac 22326 22327case $ac_config_headers in *" 22328"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22329esac 22330 22331 22332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22333# Files that config.status was made for. 22334config_files="$ac_config_files" 22335config_headers="$ac_config_headers" 22336config_commands="$ac_config_commands" 22337 22338_ACEOF 22339 22340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22341ac_cs_usage="\ 22342\`$as_me' instantiates files from templates according to the 22343current configuration. 22344 22345Usage: $0 [OPTION]... [FILE]... 22346 22347 -h, --help print this help, then exit 22348 -V, --version print version number and configuration settings, then exit 22349 -q, --quiet, --silent 22350 do not print progress messages 22351 -d, --debug don't remove temporary files 22352 --recheck update $as_me by reconfiguring in the same conditions 22353 --file=FILE[:TEMPLATE] 22354 instantiate the configuration file FILE 22355 --header=FILE[:TEMPLATE] 22356 instantiate the configuration header FILE 22357 22358Configuration files: 22359$config_files 22360 22361Configuration headers: 22362$config_headers 22363 22364Configuration commands: 22365$config_commands 22366 22367Report bugs to <bug-autoconf@gnu.org>." 22368 22369_ACEOF 22370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22371ac_cs_version="\\ 22372netpgp config.status 20100413 22373configured by $0, generated by GNU Autoconf 2.63, 22374 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22375 22376Copyright (C) 2008 Free Software Foundation, Inc. 22377This config.status script is free software; the Free Software Foundation 22378gives unlimited permission to copy, distribute and modify it." 22379 22380ac_pwd='$ac_pwd' 22381srcdir='$srcdir' 22382INSTALL='$INSTALL' 22383MKDIR_P='$MKDIR_P' 22384AWK='$AWK' 22385test -n "\$AWK" || AWK=awk 22386_ACEOF 22387 22388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22389# The default lists apply if the user does not specify any file. 22390ac_need_defaults=: 22391while test $# != 0 22392do 22393 case $1 in 22394 --*=*) 22395 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22397 ac_shift=: 22398 ;; 22399 *) 22400 ac_option=$1 22401 ac_optarg=$2 22402 ac_shift=shift 22403 ;; 22404 esac 22405 22406 case $ac_option in 22407 # Handling of the options. 22408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22409 ac_cs_recheck=: ;; 22410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22411 $as_echo "$ac_cs_version"; exit ;; 22412 --debug | --debu | --deb | --de | --d | -d ) 22413 debug=: ;; 22414 --file | --fil | --fi | --f ) 22415 $ac_shift 22416 case $ac_optarg in 22417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22418 esac 22419 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22420 ac_need_defaults=false;; 22421 --header | --heade | --head | --hea ) 22422 $ac_shift 22423 case $ac_optarg in 22424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22425 esac 22426 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22427 ac_need_defaults=false;; 22428 --he | --h) 22429 # Conflict between --help and --header 22430 { $as_echo "$as_me: error: ambiguous option: $1 22431Try \`$0 --help' for more information." >&2 22432 { (exit 1); exit 1; }; };; 22433 --help | --hel | -h ) 22434 $as_echo "$ac_cs_usage"; exit ;; 22435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22436 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22437 ac_cs_silent=: ;; 22438 22439 # This is an error. 22440 -*) { $as_echo "$as_me: error: unrecognized option: $1 22441Try \`$0 --help' for more information." >&2 22442 { (exit 1); exit 1; }; } ;; 22443 22444 *) ac_config_targets="$ac_config_targets $1" 22445 ac_need_defaults=false ;; 22446 22447 esac 22448 shift 22449done 22450 22451ac_configure_extra_args= 22452 22453if $ac_cs_silent; then 22454 exec 6>/dev/null 22455 ac_configure_extra_args="$ac_configure_extra_args --silent" 22456fi 22457 22458_ACEOF 22459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22460if \$ac_cs_recheck; then 22461 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22462 shift 22463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22464 CONFIG_SHELL='$SHELL' 22465 export CONFIG_SHELL 22466 exec "\$@" 22467fi 22468 22469_ACEOF 22470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22471exec 5>>config.log 22472{ 22473 echo 22474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22475## Running $as_me. ## 22476_ASBOX 22477 $as_echo "$ac_log" 22478} >&5 22479 22480_ACEOF 22481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22482# 22483# INIT-COMMANDS 22484# 22485AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22486 22487_ACEOF 22488 22489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22490 22491# Handling of arguments. 22492for ac_config_target in $ac_config_targets 22493do 22494 case $ac_config_target in 22495 "src/lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/config.h" ;; 22496 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22497 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;; 22498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22499 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22500 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22501 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 22502 "src/netpgp/Makefile") CONFIG_FILES="$CONFIG_FILES src/netpgp/Makefile" ;; 22503 "src/netpgpkeys/Makefile") CONFIG_FILES="$CONFIG_FILES src/netpgpkeys/Makefile" ;; 22504 "src/netpgpverify/Makefile") CONFIG_FILES="$CONFIG_FILES src/netpgpverify/Makefile" ;; 22505 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22506 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;; 22507 22508 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22509$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22510 { (exit 1); exit 1; }; };; 22511 esac 22512done 22513 22514 22515# If the user did not use the arguments to specify the items to instantiate, 22516# then the envvar interface is used. Set only those that are not. 22517# We use the long form for the default assignment because of an extremely 22518# bizarre bug on SunOS 4.1.3. 22519if $ac_need_defaults; then 22520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22523fi 22524 22525# Have a temporary directory for convenience. Make it in the build tree 22526# simply because there is no reason against having it here, and in addition, 22527# creating and moving files from /tmp can sometimes cause problems. 22528# Hook for its removal unless debugging. 22529# Note that there is a small window in which the directory will not be cleaned: 22530# after its creation but before its name has been assigned to `$tmp'. 22531$debug || 22532{ 22533 tmp= 22534 trap 'exit_status=$? 22535 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22536' 0 22537 trap '{ (exit 1); exit 1; }' 1 2 13 15 22538} 22539# Create a (secure) tmp directory for tmp files. 22540 22541{ 22542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22543 test -n "$tmp" && test -d "$tmp" 22544} || 22545{ 22546 tmp=./conf$$-$RANDOM 22547 (umask 077 && mkdir "$tmp") 22548} || 22549{ 22550 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22551 { (exit 1); exit 1; } 22552} 22553 22554# Set up the scripts for CONFIG_FILES section. 22555# No need to generate them if there are no CONFIG_FILES. 22556# This happens for instance with `./config.status config.h'. 22557if test -n "$CONFIG_FILES"; then 22558 22559 22560ac_cr=' 22561' 22562ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22563if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22564 ac_cs_awk_cr='\\r' 22565else 22566 ac_cs_awk_cr=$ac_cr 22567fi 22568 22569echo 'BEGIN {' >"$tmp/subs1.awk" && 22570_ACEOF 22571 22572 22573{ 22574 echo "cat >conf$$subs.awk <<_ACEOF" && 22575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22576 echo "_ACEOF" 22577} >conf$$subs.sh || 22578 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22579$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22580 { (exit 1); exit 1; }; } 22581ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22582ac_delim='%!_!# ' 22583for ac_last_try in false false false false false :; do 22584 . ./conf$$subs.sh || 22585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22586$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22587 { (exit 1); exit 1; }; } 22588 22589 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22590 if test $ac_delim_n = $ac_delim_num; then 22591 break 22592 elif $ac_last_try; then 22593 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22594$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22595 { (exit 1); exit 1; }; } 22596 else 22597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22598 fi 22599done 22600rm -f conf$$subs.sh 22601 22602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22603cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22604_ACEOF 22605sed -n ' 22606h 22607s/^/S["/; s/!.*/"]=/ 22608p 22609g 22610s/^[^!]*!// 22611:repl 22612t repl 22613s/'"$ac_delim"'$// 22614t delim 22615:nl 22616h 22617s/\(.\{148\}\).*/\1/ 22618t more1 22619s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22620p 22621n 22622b repl 22623:more1 22624s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22625p 22626g 22627s/.\{148\}// 22628t nl 22629:delim 22630h 22631s/\(.\{148\}\).*/\1/ 22632t more2 22633s/["\\]/\\&/g; s/^/"/; s/$/"/ 22634p 22635b 22636:more2 22637s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22638p 22639g 22640s/.\{148\}// 22641t delim 22642' <conf$$subs.awk | sed ' 22643/^[^""]/{ 22644 N 22645 s/\n// 22646} 22647' >>$CONFIG_STATUS || ac_write_fail=1 22648rm -f conf$$subs.awk 22649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22650_ACAWK 22651cat >>"\$tmp/subs1.awk" <<_ACAWK && 22652 for (key in S) S_is_set[key] = 1 22653 FS = "" 22654 22655} 22656{ 22657 line = $ 0 22658 nfields = split(line, field, "@") 22659 substed = 0 22660 len = length(field[1]) 22661 for (i = 2; i < nfields; i++) { 22662 key = field[i] 22663 keylen = length(key) 22664 if (S_is_set[key]) { 22665 value = S[key] 22666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22667 len += length(value) + length(field[++i]) 22668 substed = 1 22669 } else 22670 len += 1 + keylen 22671 } 22672 22673 print line 22674} 22675 22676_ACAWK 22677_ACEOF 22678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22679if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22681else 22682 cat 22683fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22684 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22685$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22686 { (exit 1); exit 1; }; } 22687_ACEOF 22688 22689# VPATH may cause trouble with some makes, so we remove $(srcdir), 22690# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22691# trailing colons and then remove the whole line if VPATH becomes empty 22692# (actually we leave an empty line to preserve line numbers). 22693if test "x$srcdir" = x.; then 22694 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22695s/:*\$(srcdir):*/:/ 22696s/:*\${srcdir}:*/:/ 22697s/:*@srcdir@:*/:/ 22698s/^\([^=]*=[ ]*\):*/\1/ 22699s/:*$// 22700s/^[^=]*=[ ]*$// 22701}' 22702fi 22703 22704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22705fi # test -n "$CONFIG_FILES" 22706 22707# Set up the scripts for CONFIG_HEADERS section. 22708# No need to generate them if there are no CONFIG_HEADERS. 22709# This happens for instance with `./config.status Makefile'. 22710if test -n "$CONFIG_HEADERS"; then 22711cat >"$tmp/defines.awk" <<\_ACAWK || 22712BEGIN { 22713_ACEOF 22714 22715# Transform confdefs.h into an awk script `defines.awk', embedded as 22716# here-document in config.status, that substitutes the proper values into 22717# config.h.in to produce config.h. 22718 22719# Create a delimiter string that does not exist in confdefs.h, to ease 22720# handling of long lines. 22721ac_delim='%!_!# ' 22722for ac_last_try in false false :; do 22723 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22724 if test -z "$ac_t"; then 22725 break 22726 elif $ac_last_try; then 22727 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22728$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22729 { (exit 1); exit 1; }; } 22730 else 22731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22732 fi 22733done 22734 22735# For the awk script, D is an array of macro values keyed by name, 22736# likewise P contains macro parameters if any. Preserve backslash 22737# newline sequences. 22738 22739ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22740sed -n ' 22741s/.\{148\}/&'"$ac_delim"'/g 22742t rset 22743:rset 22744s/^[ ]*#[ ]*define[ ][ ]*/ / 22745t def 22746d 22747:def 22748s/\\$// 22749t bsnl 22750s/["\\]/\\&/g 22751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22752D["\1"]=" \3"/p 22753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22754d 22755:bsnl 22756s/["\\]/\\&/g 22757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22758D["\1"]=" \3\\\\\\n"\\/p 22759t cont 22760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22761t cont 22762d 22763:cont 22764n 22765s/.\{148\}/&'"$ac_delim"'/g 22766t clear 22767:clear 22768s/\\$// 22769t bsnlc 22770s/["\\]/\\&/g; s/^/"/; s/$/"/p 22771d 22772:bsnlc 22773s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22774b cont 22775' <confdefs.h | sed ' 22776s/'"$ac_delim"'/"\\\ 22777"/g' >>$CONFIG_STATUS || ac_write_fail=1 22778 22779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22780 for (key in D) D_is_set[key] = 1 22781 FS = "" 22782} 22783/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22784 line = \$ 0 22785 split(line, arg, " ") 22786 if (arg[1] == "#") { 22787 defundef = arg[2] 22788 mac1 = arg[3] 22789 } else { 22790 defundef = substr(arg[1], 2) 22791 mac1 = arg[2] 22792 } 22793 split(mac1, mac2, "(") #) 22794 macro = mac2[1] 22795 prefix = substr(line, 1, index(line, defundef) - 1) 22796 if (D_is_set[macro]) { 22797 # Preserve the white space surrounding the "#". 22798 print prefix "define", macro P[macro] D[macro] 22799 next 22800 } else { 22801 # Replace #undef with comments. This is necessary, for example, 22802 # in the case of _POSIX_SOURCE, which is predefined and required 22803 # on some systems where configure will not decide to define it. 22804 if (defundef == "undef") { 22805 print "/*", prefix defundef, macro, "*/" 22806 next 22807 } 22808 } 22809} 22810{ print } 22811_ACAWK 22812_ACEOF 22813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22814 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22815$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22816 { (exit 1); exit 1; }; } 22817fi # test -n "$CONFIG_HEADERS" 22818 22819 22820eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22821shift 22822for ac_tag 22823do 22824 case $ac_tag in 22825 :[FHLC]) ac_mode=$ac_tag; continue;; 22826 esac 22827 case $ac_mode$ac_tag in 22828 :[FHL]*:*);; 22829 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22830$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22831 { (exit 1); exit 1; }; };; 22832 :[FH]-) ac_tag=-:-;; 22833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22834 esac 22835 ac_save_IFS=$IFS 22836 IFS=: 22837 set x $ac_tag 22838 IFS=$ac_save_IFS 22839 shift 22840 ac_file=$1 22841 shift 22842 22843 case $ac_mode in 22844 :L) ac_source=$1;; 22845 :[FH]) 22846 ac_file_inputs= 22847 for ac_f 22848 do 22849 case $ac_f in 22850 -) ac_f="$tmp/stdin";; 22851 *) # Look for the file first in the build tree, then in the source tree 22852 # (if the path is not absolute). The absolute path cannot be DOS-style, 22853 # because $ac_f cannot contain `:'. 22854 test -f "$ac_f" || 22855 case $ac_f in 22856 [\\/$]*) false;; 22857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22858 esac || 22859 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22860$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22861 { (exit 1); exit 1; }; };; 22862 esac 22863 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22864 ac_file_inputs="$ac_file_inputs '$ac_f'" 22865 done 22866 22867 # Let's still pretend it is `configure' which instantiates (i.e., don't 22868 # use $as_me), people would be surprised to read: 22869 # /* config.h. Generated by config.status. */ 22870 configure_input='Generated from '` 22871 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22872 `' by configure.' 22873 if test x"$ac_file" != x-; then 22874 configure_input="$ac_file. $configure_input" 22875 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22876$as_echo "$as_me: creating $ac_file" >&6;} 22877 fi 22878 # Neutralize special characters interpreted by sed in replacement strings. 22879 case $configure_input in #( 22880 *\&* | *\|* | *\\* ) 22881 ac_sed_conf_input=`$as_echo "$configure_input" | 22882 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22883 *) ac_sed_conf_input=$configure_input;; 22884 esac 22885 22886 case $ac_tag in 22887 *:-:* | *:-) cat >"$tmp/stdin" \ 22888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22889$as_echo "$as_me: error: could not create $ac_file" >&2;} 22890 { (exit 1); exit 1; }; } ;; 22891 esac 22892 ;; 22893 esac 22894 22895 ac_dir=`$as_dirname -- "$ac_file" || 22896$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22897 X"$ac_file" : 'X\(//\)[^/]' \| \ 22898 X"$ac_file" : 'X\(//\)$' \| \ 22899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22900$as_echo X"$ac_file" | 22901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22902 s//\1/ 22903 q 22904 } 22905 /^X\(\/\/\)[^/].*/{ 22906 s//\1/ 22907 q 22908 } 22909 /^X\(\/\/\)$/{ 22910 s//\1/ 22911 q 22912 } 22913 /^X\(\/\).*/{ 22914 s//\1/ 22915 q 22916 } 22917 s/.*/./; q'` 22918 { as_dir="$ac_dir" 22919 case $as_dir in #( 22920 -*) as_dir=./$as_dir;; 22921 esac 22922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22923 as_dirs= 22924 while :; do 22925 case $as_dir in #( 22926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22927 *) as_qdir=$as_dir;; 22928 esac 22929 as_dirs="'$as_qdir' $as_dirs" 22930 as_dir=`$as_dirname -- "$as_dir" || 22931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22932 X"$as_dir" : 'X\(//\)[^/]' \| \ 22933 X"$as_dir" : 'X\(//\)$' \| \ 22934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22935$as_echo X"$as_dir" | 22936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22937 s//\1/ 22938 q 22939 } 22940 /^X\(\/\/\)[^/].*/{ 22941 s//\1/ 22942 q 22943 } 22944 /^X\(\/\/\)$/{ 22945 s//\1/ 22946 q 22947 } 22948 /^X\(\/\).*/{ 22949 s//\1/ 22950 q 22951 } 22952 s/.*/./; q'` 22953 test -d "$as_dir" && break 22954 done 22955 test -z "$as_dirs" || eval "mkdir $as_dirs" 22956 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22957$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22958 { (exit 1); exit 1; }; }; } 22959 ac_builddir=. 22960 22961case "$ac_dir" in 22962.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22963*) 22964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22965 # A ".." for each directory in $ac_dir_suffix. 22966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22967 case $ac_top_builddir_sub in 22968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22970 esac ;; 22971esac 22972ac_abs_top_builddir=$ac_pwd 22973ac_abs_builddir=$ac_pwd$ac_dir_suffix 22974# for backward compatibility: 22975ac_top_builddir=$ac_top_build_prefix 22976 22977case $srcdir in 22978 .) # We are building in place. 22979 ac_srcdir=. 22980 ac_top_srcdir=$ac_top_builddir_sub 22981 ac_abs_top_srcdir=$ac_pwd ;; 22982 [\\/]* | ?:[\\/]* ) # Absolute name. 22983 ac_srcdir=$srcdir$ac_dir_suffix; 22984 ac_top_srcdir=$srcdir 22985 ac_abs_top_srcdir=$srcdir ;; 22986 *) # Relative name. 22987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22988 ac_top_srcdir=$ac_top_build_prefix$srcdir 22989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22990esac 22991ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22992 22993 22994 case $ac_mode in 22995 :F) 22996 # 22997 # CONFIG_FILE 22998 # 22999 23000 case $INSTALL in 23001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23003 esac 23004 ac_MKDIR_P=$MKDIR_P 23005 case $MKDIR_P in 23006 [\\/$]* | ?:[\\/]* ) ;; 23007 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23008 esac 23009_ACEOF 23010 23011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23012# If the template does not know about datarootdir, expand it. 23013# FIXME: This hack should be removed a few years after 2.60. 23014ac_datarootdir_hack=; ac_datarootdir_seen= 23015 23016ac_sed_dataroot=' 23017/datarootdir/ { 23018 p 23019 q 23020} 23021/@datadir@/p 23022/@docdir@/p 23023/@infodir@/p 23024/@localedir@/p 23025/@mandir@/p 23026' 23027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23028*datarootdir*) ac_datarootdir_seen=yes;; 23029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23030 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23032_ACEOF 23033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23034 ac_datarootdir_hack=' 23035 s&@datadir@&$datadir&g 23036 s&@docdir@&$docdir&g 23037 s&@infodir@&$infodir&g 23038 s&@localedir@&$localedir&g 23039 s&@mandir@&$mandir&g 23040 s&\\\${datarootdir}&$datarootdir&g' ;; 23041esac 23042_ACEOF 23043 23044# Neutralize VPATH when `$srcdir' = `.'. 23045# Shell code in configure.ac might set extrasub. 23046# FIXME: do we really want to maintain this feature? 23047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23048ac_sed_extra="$ac_vpsub 23049$extrasub 23050_ACEOF 23051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23052:t 23053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23054s|@configure_input@|$ac_sed_conf_input|;t t 23055s&@top_builddir@&$ac_top_builddir_sub&;t t 23056s&@top_build_prefix@&$ac_top_build_prefix&;t t 23057s&@srcdir@&$ac_srcdir&;t t 23058s&@abs_srcdir@&$ac_abs_srcdir&;t t 23059s&@top_srcdir@&$ac_top_srcdir&;t t 23060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23061s&@builddir@&$ac_builddir&;t t 23062s&@abs_builddir@&$ac_abs_builddir&;t t 23063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23064s&@INSTALL@&$ac_INSTALL&;t t 23065s&@MKDIR_P@&$ac_MKDIR_P&;t t 23066$ac_datarootdir_hack 23067" 23068eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23069 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23070$as_echo "$as_me: error: could not create $ac_file" >&2;} 23071 { (exit 1); exit 1; }; } 23072 23073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23076 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23077which seems to be undefined. Please make sure it is defined." >&5 23078$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23079which seems to be undefined. Please make sure it is defined." >&2;} 23080 23081 rm -f "$tmp/stdin" 23082 case $ac_file in 23083 -) cat "$tmp/out" && rm -f "$tmp/out";; 23084 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23085 esac \ 23086 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23087$as_echo "$as_me: error: could not create $ac_file" >&2;} 23088 { (exit 1); exit 1; }; } 23089 ;; 23090 :H) 23091 # 23092 # CONFIG_HEADER 23093 # 23094 if test x"$ac_file" != x-; then 23095 { 23096 $as_echo "/* $configure_input */" \ 23097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23098 } >"$tmp/config.h" \ 23099 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23100$as_echo "$as_me: error: could not create $ac_file" >&2;} 23101 { (exit 1); exit 1; }; } 23102 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23103 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23104$as_echo "$as_me: $ac_file is unchanged" >&6;} 23105 else 23106 rm -f "$ac_file" 23107 mv "$tmp/config.h" "$ac_file" \ 23108 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23109$as_echo "$as_me: error: could not create $ac_file" >&2;} 23110 { (exit 1); exit 1; }; } 23111 fi 23112 else 23113 $as_echo "/* $configure_input */" \ 23114 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23115 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23116$as_echo "$as_me: error: could not create -" >&2;} 23117 { (exit 1); exit 1; }; } 23118 fi 23119# Compute "$ac_file"'s index in $config_headers. 23120_am_arg="$ac_file" 23121_am_stamp_count=1 23122for _am_header in $config_headers :; do 23123 case $_am_header in 23124 $_am_arg | $_am_arg:* ) 23125 break ;; 23126 * ) 23127 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23128 esac 23129done 23130echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23131$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23132 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23133 X"$_am_arg" : 'X\(//\)$' \| \ 23134 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23135$as_echo X"$_am_arg" | 23136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23137 s//\1/ 23138 q 23139 } 23140 /^X\(\/\/\)[^/].*/{ 23141 s//\1/ 23142 q 23143 } 23144 /^X\(\/\/\)$/{ 23145 s//\1/ 23146 q 23147 } 23148 /^X\(\/\).*/{ 23149 s//\1/ 23150 q 23151 } 23152 s/.*/./; q'`/stamp-h$_am_stamp_count 23153 ;; 23154 23155 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23156$as_echo "$as_me: executing $ac_file commands" >&6;} 23157 ;; 23158 esac 23159 23160 23161 case $ac_file$ac_mode in 23162 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23163 # Strip MF so we end up with the name of the file. 23164 mf=`echo "$mf" | sed -e 's/:.*$//'` 23165 # Check whether this is an Automake generated Makefile or not. 23166 # We used to match only the files named `Makefile.in', but 23167 # some people rename them; so instead we look at the file content. 23168 # Grep'ing the first line is not enough: some people post-process 23169 # each Makefile.in and add a new line on top of each file to say so. 23170 # Grep'ing the whole file is not good either: AIX grep has a line 23171 # limit of 2048, but all sed's we know have understand at least 4000. 23172 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23173 dirpart=`$as_dirname -- "$mf" || 23174$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23175 X"$mf" : 'X\(//\)[^/]' \| \ 23176 X"$mf" : 'X\(//\)$' \| \ 23177 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23178$as_echo X"$mf" | 23179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23180 s//\1/ 23181 q 23182 } 23183 /^X\(\/\/\)[^/].*/{ 23184 s//\1/ 23185 q 23186 } 23187 /^X\(\/\/\)$/{ 23188 s//\1/ 23189 q 23190 } 23191 /^X\(\/\).*/{ 23192 s//\1/ 23193 q 23194 } 23195 s/.*/./; q'` 23196 else 23197 continue 23198 fi 23199 # Extract the definition of DEPDIR, am__include, and am__quote 23200 # from the Makefile without running `make'. 23201 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23202 test -z "$DEPDIR" && continue 23203 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23204 test -z "am__include" && continue 23205 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23206 # When using ansi2knr, U may be empty or an underscore; expand it 23207 U=`sed -n 's/^U = //p' < "$mf"` 23208 # Find all dependency output files, they are included files with 23209 # $(DEPDIR) in their names. We invoke sed twice because it is the 23210 # simplest approach to changing $(DEPDIR) to its actual value in the 23211 # expansion. 23212 for file in `sed -n " 23213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23215 # Make sure the directory exists. 23216 test -f "$dirpart/$file" && continue 23217 fdir=`$as_dirname -- "$file" || 23218$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23219 X"$file" : 'X\(//\)[^/]' \| \ 23220 X"$file" : 'X\(//\)$' \| \ 23221 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23222$as_echo X"$file" | 23223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23224 s//\1/ 23225 q 23226 } 23227 /^X\(\/\/\)[^/].*/{ 23228 s//\1/ 23229 q 23230 } 23231 /^X\(\/\/\)$/{ 23232 s//\1/ 23233 q 23234 } 23235 /^X\(\/\).*/{ 23236 s//\1/ 23237 q 23238 } 23239 s/.*/./; q'` 23240 { as_dir=$dirpart/$fdir 23241 case $as_dir in #( 23242 -*) as_dir=./$as_dir;; 23243 esac 23244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23245 as_dirs= 23246 while :; do 23247 case $as_dir in #( 23248 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23249 *) as_qdir=$as_dir;; 23250 esac 23251 as_dirs="'$as_qdir' $as_dirs" 23252 as_dir=`$as_dirname -- "$as_dir" || 23253$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23254 X"$as_dir" : 'X\(//\)[^/]' \| \ 23255 X"$as_dir" : 'X\(//\)$' \| \ 23256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23257$as_echo X"$as_dir" | 23258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23259 s//\1/ 23260 q 23261 } 23262 /^X\(\/\/\)[^/].*/{ 23263 s//\1/ 23264 q 23265 } 23266 /^X\(\/\/\)$/{ 23267 s//\1/ 23268 q 23269 } 23270 /^X\(\/\).*/{ 23271 s//\1/ 23272 q 23273 } 23274 s/.*/./; q'` 23275 test -d "$as_dir" && break 23276 done 23277 test -z "$as_dirs" || eval "mkdir $as_dirs" 23278 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23279$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23280 { (exit 1); exit 1; }; }; } 23281 # echo "creating $dirpart/$file" 23282 echo '# dummy' > "$dirpart/$file" 23283 done 23284done 23285 ;; 23286 "tests/atconfig":C) cat >tests/atconfig <<ATEOF 23287# Configurable variable values for building test suites. 23288# Generated by $0. 23289# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc. 23290 23291# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 23292at_testdir='tests' 23293abs_builddir='$ac_abs_builddir' 23294at_srcdir='$ac_srcdir' 23295abs_srcdir='$ac_abs_srcdir' 23296at_top_srcdir='$ac_top_srcdir' 23297abs_top_srcdir='$ac_abs_top_srcdir' 23298at_top_build_prefix='$ac_top_build_prefix' 23299abs_top_builddir='$ac_abs_top_builddir' 23300 23301# Backward compatibility with Autotest <= 2.59b: 23302at_top_builddir=\$at_top_build_prefix 23303 23304AUTOTEST_PATH='tests' 23305 23306SHELL=\${CONFIG_SHELL-'$SHELL'} 23307ATEOF 23308 ;; 23309 23310 esac 23311done # for ac_tag 23312 23313 23314{ (exit 0); exit 0; } 23315_ACEOF 23316chmod +x $CONFIG_STATUS 23317ac_clean_files=$ac_clean_files_save 23318 23319test $ac_write_fail = 0 || 23320 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23321$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23322 { (exit 1); exit 1; }; } 23323 23324 23325# configure is writing to config.log, and then calls config.status. 23326# config.status does its own redirection, appending to config.log. 23327# Unfortunately, on DOS this fails, as config.log is still kept open 23328# by configure, so config.status won't be able to write to it; its 23329# output is simply discarded. So we exec the FD to /dev/null, 23330# effectively closing config.log, so it can be properly (re)opened and 23331# appended to by config.status. When coming back to configure, we 23332# need to make the FD available again. 23333if test "$no_create" != yes; then 23334 ac_cs_success=: 23335 ac_config_status_args= 23336 test "$silent" = yes && 23337 ac_config_status_args="$ac_config_status_args --quiet" 23338 exec 5>/dev/null 23339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23340 exec 5>>config.log 23341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23342 # would make configure fail if this is the last instruction. 23343 $ac_cs_success || { (exit 1); exit 1; } 23344fi 23345if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23346 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23347$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23348fi 23349 23350 23351# Display feature results 23352# 23353{ $as_echo "$as_me:$LINENO: === Configuration results ===" >&5 23354$as_echo "$as_me: === Configuration results ===" >&6;} 23355{ $as_echo "$as_me:$LINENO: Version: $PACKAGE_VERSION" >&5 23356$as_echo "$as_me: Version: $PACKAGE_VERSION" >&6;} 23357{ $as_echo "$as_me:$LINENO: C compiler: $CC" >&5 23358$as_echo "$as_me: C compiler: $CC" >&6;} 23359{ $as_echo "$as_me:$LINENO: Warning CFLAGS: $WARNCFLAGS" >&5 23360$as_echo "$as_me: Warning CFLAGS: $WARNCFLAGS" >&6;} 23361{ $as_echo "$as_me:$LINENO: =============================" >&5 23362$as_echo "$as_me: =============================" >&6;} 23363