1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for curlftpfs 0.9.2. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME='curlftpfs' 728PACKAGE_TARNAME='curlftpfs' 729PACKAGE_VERSION='0.9.2' 730PACKAGE_STRING='curlftpfs 0.9.2' 731PACKAGE_BUGREPORT='' 732 733# Factoring default headers for most tests. 734ac_includes_default="\ 735#include <stdio.h> 736#ifdef HAVE_SYS_TYPES_H 737# include <sys/types.h> 738#endif 739#ifdef HAVE_SYS_STAT_H 740# include <sys/stat.h> 741#endif 742#ifdef STDC_HEADERS 743# include <stdlib.h> 744# include <stddef.h> 745#else 746# ifdef HAVE_STDLIB_H 747# include <stdlib.h> 748# endif 749#endif 750#ifdef HAVE_STRING_H 751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 752# include <memory.h> 753# endif 754# include <string.h> 755#endif 756#ifdef HAVE_STRINGS_H 757# include <strings.h> 758#endif 759#ifdef HAVE_INTTYPES_H 760# include <inttypes.h> 761#endif 762#ifdef HAVE_STDINT_H 763# include <stdint.h> 764#endif 765#ifdef HAVE_UNISTD_H 766# include <unistd.h> 767#endif" 768 769ac_header_list= 770ac_func_list= 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845CPP 846LN_S 847build 848build_cpu 849build_vendor 850build_os 851host 852host_cpu 853host_vendor 854host_os 855SED 856GREP 857EGREP 858ECHO 859AR 860RANLIB 861CXX 862CXXFLAGS 863ac_ct_CXX 864CXXDEPMODE 865am__fastdepCXX_TRUE 866am__fastdepCXX_FALSE 867CXXCPP 868F77 869FFLAGS 870ac_ct_F77 871LIBTOOL 872PKG_CONFIG 873GLIB_CFLAGS 874GLIB_LIBS 875FUSE_CFLAGS 876FUSE_LIBS 877_libcurl_config 878LIBCURL_CPPFLAGS 879LIBCURL 880LIBOBJS 881LIBICONV 882FUSE_OPT_COMPAT_TRUE 883FUSE_OPT_COMPAT_FALSE 884LTLIBOBJS' 885ac_subst_files='' 886 ac_precious_vars='build_alias 887host_alias 888target_alias 889CC 890CFLAGS 891LDFLAGS 892LIBS 893CPPFLAGS 894CPP 895CXX 896CXXFLAGS 897CCC 898CXXCPP 899F77 900FFLAGS 901PKG_CONFIG 902GLIB_CFLAGS 903GLIB_LIBS 904FUSE_CFLAGS 905FUSE_LIBS' 906 907 908# Initialize some variables set by options. 909ac_init_help= 910ac_init_version=false 911# The variables have the same names as the options, with 912# dashes changed to underlines. 913cache_file=/dev/null 914exec_prefix=NONE 915no_create= 916no_recursion= 917prefix=NONE 918program_prefix=NONE 919program_suffix=NONE 920program_transform_name=s,x,x, 921silent= 922site= 923srcdir= 924verbose= 925x_includes=NONE 926x_libraries=NONE 927 928# Installation directory options. 929# These are left unexpanded so users can "make install exec_prefix=/foo" 930# and all the variables that are supposed to be based on exec_prefix 931# by default will actually change. 932# Use braces instead of parens because sh, perl, etc. also accept them. 933# (The list follows the same order as the GNU Coding Standards.) 934bindir='${exec_prefix}/bin' 935sbindir='${exec_prefix}/sbin' 936libexecdir='${exec_prefix}/libexec' 937datarootdir='${prefix}/share' 938datadir='${datarootdir}' 939sysconfdir='${prefix}/etc' 940sharedstatedir='${prefix}/com' 941localstatedir='${prefix}/var' 942includedir='${prefix}/include' 943oldincludedir='/usr/include' 944docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 945infodir='${datarootdir}/info' 946htmldir='${docdir}' 947dvidir='${docdir}' 948pdfdir='${docdir}' 949psdir='${docdir}' 950libdir='${exec_prefix}/lib' 951localedir='${datarootdir}/locale' 952mandir='${datarootdir}/man' 953 954ac_prev= 955ac_dashdash= 956for ac_option 957do 958 # If the previous option needs an argument, assign it. 959 if test -n "$ac_prev"; then 960 eval $ac_prev=\$ac_option 961 ac_prev= 962 continue 963 fi 964 965 case $ac_option in 966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 967 *) ac_optarg=yes ;; 968 esac 969 970 # Accept the important Cygnus configure options, so we can diagnose typos. 971 972 case $ac_dashdash$ac_option in 973 --) 974 ac_dashdash=yes ;; 975 976 -bindir | --bindir | --bindi | --bind | --bin | --bi) 977 ac_prev=bindir ;; 978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 979 bindir=$ac_optarg ;; 980 981 -build | --build | --buil | --bui | --bu) 982 ac_prev=build_alias ;; 983 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 984 build_alias=$ac_optarg ;; 985 986 -cache-file | --cache-file | --cache-fil | --cache-fi \ 987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 988 ac_prev=cache_file ;; 989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 991 cache_file=$ac_optarg ;; 992 993 --config-cache | -C) 994 cache_file=config.cache ;; 995 996 -datadir | --datadir | --datadi | --datad) 997 ac_prev=datadir ;; 998 -datadir=* | --datadir=* | --datadi=* | --datad=*) 999 datadir=$ac_optarg ;; 1000 1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1002 | --dataroo | --dataro | --datar) 1003 ac_prev=datarootdir ;; 1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1006 datarootdir=$ac_optarg ;; 1007 1008 -disable-* | --disable-*) 1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1010 # Reject names that are not valid shell variable names. 1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1013 { (exit 1); exit 1; }; } 1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1015 eval enable_$ac_feature=no ;; 1016 1017 -docdir | --docdir | --docdi | --doc | --do) 1018 ac_prev=docdir ;; 1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1020 docdir=$ac_optarg ;; 1021 1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1023 ac_prev=dvidir ;; 1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1025 dvidir=$ac_optarg ;; 1026 1027 -enable-* | --enable-*) 1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1032 { (exit 1); exit 1; }; } 1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1034 eval enable_$ac_feature=\$ac_optarg ;; 1035 1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1038 | --exec | --exe | --ex) 1039 ac_prev=exec_prefix ;; 1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1042 | --exec=* | --exe=* | --ex=*) 1043 exec_prefix=$ac_optarg ;; 1044 1045 -gas | --gas | --ga | --g) 1046 # Obsolete; use --with-gas. 1047 with_gas=yes ;; 1048 1049 -help | --help | --hel | --he | -h) 1050 ac_init_help=long ;; 1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1052 ac_init_help=recursive ;; 1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1054 ac_init_help=short ;; 1055 1056 -host | --host | --hos | --ho) 1057 ac_prev=host_alias ;; 1058 -host=* | --host=* | --hos=* | --ho=*) 1059 host_alias=$ac_optarg ;; 1060 1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1062 ac_prev=htmldir ;; 1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1064 | --ht=*) 1065 htmldir=$ac_optarg ;; 1066 1067 -includedir | --includedir | --includedi | --included | --include \ 1068 | --includ | --inclu | --incl | --inc) 1069 ac_prev=includedir ;; 1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1071 | --includ=* | --inclu=* | --incl=* | --inc=*) 1072 includedir=$ac_optarg ;; 1073 1074 -infodir | --infodir | --infodi | --infod | --info | --inf) 1075 ac_prev=infodir ;; 1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1077 infodir=$ac_optarg ;; 1078 1079 -libdir | --libdir | --libdi | --libd) 1080 ac_prev=libdir ;; 1081 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1082 libdir=$ac_optarg ;; 1083 1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1085 | --libexe | --libex | --libe) 1086 ac_prev=libexecdir ;; 1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1088 | --libexe=* | --libex=* | --libe=*) 1089 libexecdir=$ac_optarg ;; 1090 1091 -localedir | --localedir | --localedi | --localed | --locale) 1092 ac_prev=localedir ;; 1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1094 localedir=$ac_optarg ;; 1095 1096 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1097 | --localstate | --localstat | --localsta | --localst | --locals) 1098 ac_prev=localstatedir ;; 1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1101 localstatedir=$ac_optarg ;; 1102 1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1104 ac_prev=mandir ;; 1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1106 mandir=$ac_optarg ;; 1107 1108 -nfp | --nfp | --nf) 1109 # Obsolete; use --without-fp. 1110 with_fp=no ;; 1111 1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1113 | --no-cr | --no-c | -n) 1114 no_create=yes ;; 1115 1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1118 no_recursion=yes ;; 1119 1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1122 | --oldin | --oldi | --old | --ol | --o) 1123 ac_prev=oldincludedir ;; 1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1127 oldincludedir=$ac_optarg ;; 1128 1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1130 ac_prev=prefix ;; 1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1132 prefix=$ac_optarg ;; 1133 1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1135 | --program-pre | --program-pr | --program-p) 1136 ac_prev=program_prefix ;; 1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1139 program_prefix=$ac_optarg ;; 1140 1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1142 | --program-suf | --program-su | --program-s) 1143 ac_prev=program_suffix ;; 1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1146 program_suffix=$ac_optarg ;; 1147 1148 -program-transform-name | --program-transform-name \ 1149 | --program-transform-nam | --program-transform-na \ 1150 | --program-transform-n | --program-transform- \ 1151 | --program-transform | --program-transfor \ 1152 | --program-transfo | --program-transf \ 1153 | --program-trans | --program-tran \ 1154 | --progr-tra | --program-tr | --program-t) 1155 ac_prev=program_transform_name ;; 1156 -program-transform-name=* | --program-transform-name=* \ 1157 | --program-transform-nam=* | --program-transform-na=* \ 1158 | --program-transform-n=* | --program-transform-=* \ 1159 | --program-transform=* | --program-transfor=* \ 1160 | --program-transfo=* | --program-transf=* \ 1161 | --program-trans=* | --program-tran=* \ 1162 | --progr-tra=* | --program-tr=* | --program-t=*) 1163 program_transform_name=$ac_optarg ;; 1164 1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1166 ac_prev=pdfdir ;; 1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1168 pdfdir=$ac_optarg ;; 1169 1170 -psdir | --psdir | --psdi | --psd | --ps) 1171 ac_prev=psdir ;; 1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1173 psdir=$ac_optarg ;; 1174 1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1176 | -silent | --silent | --silen | --sile | --sil) 1177 silent=yes ;; 1178 1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1180 ac_prev=sbindir ;; 1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1182 | --sbi=* | --sb=*) 1183 sbindir=$ac_optarg ;; 1184 1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1187 | --sharedst | --shareds | --shared | --share | --shar \ 1188 | --sha | --sh) 1189 ac_prev=sharedstatedir ;; 1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1193 | --sha=* | --sh=*) 1194 sharedstatedir=$ac_optarg ;; 1195 1196 -site | --site | --sit) 1197 ac_prev=site ;; 1198 -site=* | --site=* | --sit=*) 1199 site=$ac_optarg ;; 1200 1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1202 ac_prev=srcdir ;; 1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1204 srcdir=$ac_optarg ;; 1205 1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1207 | --syscon | --sysco | --sysc | --sys | --sy) 1208 ac_prev=sysconfdir ;; 1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1211 sysconfdir=$ac_optarg ;; 1212 1213 -target | --target | --targe | --targ | --tar | --ta | --t) 1214 ac_prev=target_alias ;; 1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1216 target_alias=$ac_optarg ;; 1217 1218 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1219 verbose=yes ;; 1220 1221 -version | --version | --versio | --versi | --vers | -V) 1222 ac_init_version=: ;; 1223 1224 -with-* | --with-*) 1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 { echo "$as_me: error: invalid package name: $ac_package" >&2 1229 { (exit 1); exit 1; }; } 1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1231 eval with_$ac_package=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 { echo "$as_me: error: invalid package name: $ac_package" >&2 1238 { (exit 1); exit 1; }; } 1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1240 eval with_$ac_package=no ;; 1241 1242 --x) 1243 # Obsolete; use --with-x. 1244 with_x=yes ;; 1245 1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1247 | --x-incl | --x-inc | --x-in | --x-i) 1248 ac_prev=x_includes ;; 1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1251 x_includes=$ac_optarg ;; 1252 1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1255 ac_prev=x_libraries ;; 1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1258 x_libraries=$ac_optarg ;; 1259 1260 -*) { echo "$as_me: error: unrecognized option: $ac_option 1261Try \`$0 --help' for more information." >&2 1262 { (exit 1); exit 1; }; } 1263 ;; 1264 1265 *=*) 1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1270 { (exit 1); exit 1; }; } 1271 eval $ac_envvar=\$ac_optarg 1272 export $ac_envvar ;; 1273 1274 *) 1275 # FIXME: should be removed in autoconf 3.0. 1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1280 ;; 1281 1282 esac 1283done 1284 1285if test -n "$ac_prev"; then 1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1287 { echo "$as_me: error: missing argument to $ac_option" >&2 1288 { (exit 1); exit 1; }; } 1289fi 1290 1291# Be sure to have absolute directory names. 1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1293 datadir sysconfdir sharedstatedir localstatedir includedir \ 1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1295 libdir localedir mandir 1296do 1297 eval ac_val=\$$ac_var 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1303 { (exit 1); exit 1; }; } 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1318 If a cross compiler is detected then cross compile mode will be used." >&2 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322fi 1323 1324ac_tool_prefix= 1325test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327test "$silent" = yes && exec 6>/dev/null 1328 1329 1330ac_pwd=`pwd` && test -n "$ac_pwd" && 1331ac_ls_di=`ls -di .` && 1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 { echo "$as_me: error: Working directory cannot be determined" >&2 1334 { (exit 1); exit 1; }; } 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1336 { echo "$as_me: error: pwd does not report name of working directory" >&2 1337 { (exit 1); exit 1; }; } 1338 1339 1340# Find the source files, if location was not specified. 1341if test -z "$srcdir"; then 1342 ac_srcdir_defaulted=yes 1343 # Try the directory containing this script, then the parent directory. 1344 ac_confdir=`$as_dirname -- "$0" || 1345$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1346 X"$0" : 'X\(//\)[^/]' \| \ 1347 X"$0" : 'X\(//\)$' \| \ 1348 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1349echo X"$0" | 1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)[^/].*/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\).*/{ 1363 s//\1/ 1364 q 1365 } 1366 s/.*/./; q'` 1367 srcdir=$ac_confdir 1368 if test ! -r "$srcdir/$ac_unique_file"; then 1369 srcdir=.. 1370 fi 1371else 1372 ac_srcdir_defaulted=no 1373fi 1374if test ! -r "$srcdir/$ac_unique_file"; then 1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1377 { (exit 1); exit 1; }; } 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1382 { (exit 1); exit 1; }; } 1383 pwd)` 1384# When building in place, set srcdir=. 1385if test "$ac_abs_confdir" = "$ac_pwd"; then 1386 srcdir=. 1387fi 1388# Remove unnecessary trailing slashes from srcdir. 1389# Double slashes in file names in object file debugging info 1390# mess up M-x gdb in Emacs. 1391case $srcdir in 1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1393esac 1394for ac_var in $ac_precious_vars; do 1395 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_env_${ac_var}_value=\$${ac_var} 1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1399done 1400 1401# 1402# Report the --help message. 1403# 1404if test "$ac_init_help" = "long"; then 1405 # Omit some internal or obsolete options to make the list less imposing. 1406 # This message is too long to be a string in the A/UX 3.1 sh. 1407 cat <<_ACEOF 1408\`configure' configures curlftpfs 0.9.2 to adapt to many kinds of systems. 1409 1410Usage: $0 [OPTION]... [VAR=VALUE]... 1411 1412To assign environment variables (e.g., CC, CFLAGS...), specify them as 1413VAR=VALUE. See below for descriptions of some of the useful variables. 1414 1415Defaults for the options are specified in brackets. 1416 1417Configuration: 1418 -h, --help display this help and exit 1419 --help=short display options specific to this package 1420 --help=recursive display the short help of all the included packages 1421 -V, --version display version information and exit 1422 -q, --quiet, --silent do not print \`checking...' messages 1423 --cache-file=FILE cache test results in FILE [disabled] 1424 -C, --config-cache alias for \`--cache-file=config.cache' 1425 -n, --no-create do not create output files 1426 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1427 1428Installation directories: 1429 --prefix=PREFIX install architecture-independent files in PREFIX 1430 [$ac_default_prefix] 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1432 [PREFIX] 1433 1434By default, \`make install' will install all the files in 1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1436an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1437for instance \`--prefix=\$HOME'. 1438 1439For better control, use the options below. 1440 1441Fine tuning of the installation directories: 1442 --bindir=DIR user executables [EPREFIX/bin] 1443 --sbindir=DIR system admin executables [EPREFIX/sbin] 1444 --libexecdir=DIR program executables [EPREFIX/libexec] 1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/curlftpfs] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465Program names: 1466 --program-prefix=PREFIX prepend PREFIX to installed program names 1467 --program-suffix=SUFFIX append SUFFIX to installed program names 1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1469 1470System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473_ACEOF 1474fi 1475 1476if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of curlftpfs 0.9.2:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --disable-dependency-tracking speeds up one-time build 1486 --enable-dependency-tracking do not reject slow dependency extractors 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 1493Optional Packages: 1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1497 --with-pic try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-tags[=TAGS] include additional configurations [automatic] 1500 --with-libcurl=DIR look for the curl library in DIR 1501 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 1502 1503Some influential environment variables: 1504 CC C compiler command 1505 CFLAGS C compiler flags 1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1507 nonstandard directory <lib dir> 1508 LIBS libraries to pass to the linker, e.g. -l<library> 1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1510 you have headers in a nonstandard directory <include dir> 1511 CPP C preprocessor 1512 CXX C++ compiler command 1513 CXXFLAGS C++ compiler flags 1514 CXXCPP C++ preprocessor 1515 F77 Fortran 77 compiler command 1516 FFLAGS Fortran 77 compiler flags 1517 PKG_CONFIG path to pkg-config utility 1518 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1519 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1520 FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config 1521 FUSE_LIBS linker flags for FUSE, overriding pkg-config 1522 1523Use these variables to override the choices made by `configure' or to help 1524it to find libraries and programs with nonstandard names/locations. 1525 1526_ACEOF 1527ac_status=$? 1528fi 1529 1530if test "$ac_init_help" = "recursive"; then 1531 # If there are subdirs, report their specific --help. 1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1533 test -d "$ac_dir" || continue 1534 ac_builddir=. 1535 1536case "$ac_dir" in 1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538*) 1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1540 # A ".." for each directory in $ac_dir_suffix. 1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1542 case $ac_top_builddir_sub in 1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1545 esac ;; 1546esac 1547ac_abs_top_builddir=$ac_pwd 1548ac_abs_builddir=$ac_pwd$ac_dir_suffix 1549# for backward compatibility: 1550ac_top_builddir=$ac_top_build_prefix 1551 1552case $srcdir in 1553 .) # We are building in place. 1554 ac_srcdir=. 1555 ac_top_srcdir=$ac_top_builddir_sub 1556 ac_abs_top_srcdir=$ac_pwd ;; 1557 [\\/]* | ?:[\\/]* ) # Absolute name. 1558 ac_srcdir=$srcdir$ac_dir_suffix; 1559 ac_top_srcdir=$srcdir 1560 ac_abs_top_srcdir=$srcdir ;; 1561 *) # Relative name. 1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1563 ac_top_srcdir=$ac_top_build_prefix$srcdir 1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1565esac 1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1567 1568 cd "$ac_dir" || { ac_status=$?; continue; } 1569 # Check for guested configure. 1570 if test -f "$ac_srcdir/configure.gnu"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1573 elif test -f "$ac_srcdir/configure"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure" --help=recursive 1576 else 1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 fi || ac_status=$? 1579 cd "$ac_pwd" || { ac_status=$?; break; } 1580 done 1581fi 1582 1583test -n "$ac_init_help" && exit $ac_status 1584if $ac_init_version; then 1585 cat <<\_ACEOF 1586curlftpfs configure 0.9.2 1587generated by GNU Autoconf 2.61 1588 1589Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596cat >config.log <<_ACEOF 1597This file contains any messages produced by compilers while 1598running configure, to aid debugging if configure makes a mistake. 1599 1600It was created by curlftpfs $as_me 0.9.2, which was 1601generated by GNU Autoconf 2.61. Invocation command line was 1602 1603 $ $0 $@ 1604 1605_ACEOF 1606exec 5>>config.log 1607{ 1608cat <<_ASUNAME 1609## --------- ## 1610## Platform. ## 1611## --------- ## 1612 1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1614uname -m = `(uname -m) 2>/dev/null || echo unknown` 1615uname -r = `(uname -r) 2>/dev/null || echo unknown` 1616uname -s = `(uname -s) 2>/dev/null || echo unknown` 1617uname -v = `(uname -v) 2>/dev/null || echo unknown` 1618 1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1620/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1621 1622/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1623/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1625/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1626/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1627/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1628/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1629 1630_ASUNAME 1631 1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1633for as_dir in $PATH 1634do 1635 IFS=$as_save_IFS 1636 test -z "$as_dir" && as_dir=. 1637 echo "PATH: $as_dir" 1638done 1639IFS=$as_save_IFS 1640 1641} >&5 1642 1643cat >&5 <<_ACEOF 1644 1645 1646## ----------- ## 1647## Core tests. ## 1648## ----------- ## 1649 1650_ACEOF 1651 1652 1653# Keep a trace of the command line. 1654# Strip out --no-create and --no-recursion so they do not pile up. 1655# Strip out --silent because we don't want to record it for future runs. 1656# Also quote any args containing shell meta-characters. 1657# Make two passes to allow for proper duplicate-argument suppression. 1658ac_configure_args= 1659ac_configure_args0= 1660ac_configure_args1= 1661ac_must_keep_next=false 1662for ac_pass in 1 2 1663do 1664 for ac_arg 1665 do 1666 case $ac_arg in 1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1669 | -silent | --silent | --silen | --sile | --sil) 1670 continue ;; 1671 *\'*) 1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1673 esac 1674 case $ac_pass in 1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1676 2) 1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1678 if test $ac_must_keep_next = true; then 1679 ac_must_keep_next=false # Got value, back to normal. 1680 else 1681 case $ac_arg in 1682 *=* | --config-cache | -C | -disable-* | --disable-* \ 1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1685 | -with-* | --with-* | -without-* | --without-* | --x) 1686 case "$ac_configure_args0 " in 1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1688 esac 1689 ;; 1690 -* ) ac_must_keep_next=true ;; 1691 esac 1692 fi 1693 ac_configure_args="$ac_configure_args '$ac_arg'" 1694 ;; 1695 esac 1696 done 1697done 1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1700 1701# When interrupted or exit'd, cleanup temporary files, and complete 1702# config.log. We remove comments because anyway the quotes in there 1703# would cause problems or look ugly. 1704# WARNING: Use '\'' to represent an apostrophe within the trap. 1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1706trap 'exit_status=$? 1707 # Save into config.log some information that might help in debugging. 1708 { 1709 echo 1710 1711 cat <<\_ASBOX 1712## ---------------- ## 1713## Cache variables. ## 1714## ---------------- ## 1715_ASBOX 1716 echo 1717 # The following way of writing the cache mishandles newlines in values, 1718( 1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in #( 1722 *${as_nl}*) 1723 case $ac_var in #( 1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1726 esac 1727 case $ac_var in #( 1728 _ | IFS | as_nl) ;; #( 1729 *) $as_unset $ac_var ;; 1730 esac ;; 1731 esac 1732 done 1733 (set) 2>&1 | 1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1735 *${as_nl}ac_space=\ *) 1736 sed -n \ 1737 "s/'\''/'\''\\\\'\'''\''/g; 1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1739 ;; #( 1740 *) 1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1742 ;; 1743 esac | 1744 sort 1745) 1746 echo 1747 1748 cat <<\_ASBOX 1749## ----------------- ## 1750## Output variables. ## 1751## ----------------- ## 1752_ASBOX 1753 echo 1754 for ac_var in $ac_subst_vars 1755 do 1756 eval ac_val=\$$ac_var 1757 case $ac_val in 1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1759 esac 1760 echo "$ac_var='\''$ac_val'\''" 1761 done | sort 1762 echo 1763 1764 if test -n "$ac_subst_files"; then 1765 cat <<\_ASBOX 1766## ------------------- ## 1767## File substitutions. ## 1768## ------------------- ## 1769_ASBOX 1770 echo 1771 for ac_var in $ac_subst_files 1772 do 1773 eval ac_val=\$$ac_var 1774 case $ac_val in 1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1776 esac 1777 echo "$ac_var='\''$ac_val'\''" 1778 done | sort 1779 echo 1780 fi 1781 1782 if test -s confdefs.h; then 1783 cat <<\_ASBOX 1784## ----------- ## 1785## confdefs.h. ## 1786## ----------- ## 1787_ASBOX 1788 echo 1789 cat confdefs.h 1790 echo 1791 fi 1792 test "$ac_signal" != 0 && 1793 echo "$as_me: caught signal $ac_signal" 1794 echo "$as_me: exit $exit_status" 1795 } >&5 1796 rm -f core *.core core.conftest.* && 1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1798 exit $exit_status 1799' 0 1800for ac_signal in 1 2 13 15; do 1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1802done 1803ac_signal=0 1804 1805# confdefs.h avoids OS command line length limits that DEFS can exceed. 1806rm -f -r conftest* confdefs.h 1807 1808# Predefined preprocessor variables. 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE_NAME "$PACKAGE_NAME" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1817_ACEOF 1818 1819 1820cat >>confdefs.h <<_ACEOF 1821#define PACKAGE_VERSION "$PACKAGE_VERSION" 1822_ACEOF 1823 1824 1825cat >>confdefs.h <<_ACEOF 1826#define PACKAGE_STRING "$PACKAGE_STRING" 1827_ACEOF 1828 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1832_ACEOF 1833 1834 1835# Let the site file select an alternate cache file if it wants to. 1836# Prefer explicitly selected file to automatically selected ones. 1837if test -n "$CONFIG_SITE"; then 1838 set x "$CONFIG_SITE" 1839elif test "x$prefix" != xNONE; then 1840 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1841else 1842 set x "$ac_default_prefix/share/config.site" \ 1843 "$ac_default_prefix/etc/config.site" 1844fi 1845shift 1846for ac_site_file 1847do 1848 if test -r "$ac_site_file"; then 1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1850echo "$as_me: loading site script $ac_site_file" >&6;} 1851 sed 's/^/| /' "$ac_site_file" >&5 1852 . "$ac_site_file" 1853 fi 1854done 1855 1856if test -r "$cache_file"; then 1857 # Some versions of bash will fail to source /dev/null (special 1858 # files actually), so we avoid doing that. 1859 if test -f "$cache_file"; then 1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1861echo "$as_me: loading cache $cache_file" >&6;} 1862 case $cache_file in 1863 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1864 *) . "./$cache_file";; 1865 esac 1866 fi 1867else 1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1869echo "$as_me: creating cache $cache_file" >&6;} 1870 >$cache_file 1871fi 1872 1873ac_header_list="$ac_header_list sys/time.h" 1874ac_header_list="$ac_header_list unistd.h" 1875ac_func_list="$ac_func_list alarm" 1876ac_header_list="$ac_header_list utime.h" 1877# Check that the precious variables saved in the cache have kept the same 1878# value. 1879ac_cache_corrupted=false 1880for ac_var in $ac_precious_vars; do 1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1882 eval ac_new_set=\$ac_env_${ac_var}_set 1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1884 eval ac_new_val=\$ac_env_${ac_var}_value 1885 case $ac_old_set,$ac_new_set in 1886 set,) 1887 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1888echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1889 ac_cache_corrupted=: ;; 1890 ,set) 1891 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1892echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1893 ac_cache_corrupted=: ;; 1894 ,);; 1895 *) 1896 if test "x$ac_old_val" != "x$ac_new_val"; then 1897 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1898echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1899 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1900echo "$as_me: former value: $ac_old_val" >&2;} 1901 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1902echo "$as_me: current value: $ac_new_val" >&2;} 1903 ac_cache_corrupted=: 1904 fi;; 1905 esac 1906 # Pass precious variables to config.status. 1907 if test "$ac_new_set" = set; then 1908 case $ac_new_val in 1909 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1910 *) ac_arg=$ac_var=$ac_new_val ;; 1911 esac 1912 case " $ac_configure_args " in 1913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1914 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1915 esac 1916 fi 1917done 1918if $ac_cache_corrupted; then 1919 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1920echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1921 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1922echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1923 { (exit 1); exit 1; }; } 1924fi 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950ac_ext=c 1951ac_cpp='$CPP $CPPFLAGS' 1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1954ac_compiler_gnu=$ac_cv_c_compiler_gnu 1955 1956 1957am__api_version="1.9" 1958ac_aux_dir= 1959for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1960 if test -f "$ac_dir/install-sh"; then 1961 ac_aux_dir=$ac_dir 1962 ac_install_sh="$ac_aux_dir/install-sh -c" 1963 break 1964 elif test -f "$ac_dir/install.sh"; then 1965 ac_aux_dir=$ac_dir 1966 ac_install_sh="$ac_aux_dir/install.sh -c" 1967 break 1968 elif test -f "$ac_dir/shtool"; then 1969 ac_aux_dir=$ac_dir 1970 ac_install_sh="$ac_aux_dir/shtool install -c" 1971 break 1972 fi 1973done 1974if test -z "$ac_aux_dir"; then 1975 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1976echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1977 { (exit 1); exit 1; }; } 1978fi 1979 1980# These three variables are undocumented and unsupported, 1981# and are intended to be withdrawn in a future Autoconf release. 1982# They can cause serious problems if a builder's source tree is in a directory 1983# whose full name contains unusual characters. 1984ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1985ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1986ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1987 1988 1989# Find a good install program. We prefer a C program (faster), 1990# so one script is as good as another. But avoid the broken or 1991# incompatible versions: 1992# SysV /etc/install, /usr/sbin/install 1993# SunOS /usr/etc/install 1994# IRIX /sbin/install 1995# AIX /bin/install 1996# AmigaOS /C/install, which installs bootblocks on floppy discs 1997# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1998# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1999# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2000# OS/2's system install, which has a completely different semantic 2001# ./install, which can be erroneously created by make from ./install.sh. 2002{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2003echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2004if test -z "$INSTALL"; then 2005if test "${ac_cv_path_install+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2009for as_dir in $PATH 2010do 2011 IFS=$as_save_IFS 2012 test -z "$as_dir" && as_dir=. 2013 # Account for people who put trailing slashes in PATH elements. 2014case $as_dir/ in 2015 ./ | .// | /cC/* | \ 2016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2018 /usr/ucb/* ) ;; 2019 *) 2020 # OSF1 and SCO ODT 3.0 have their own names for install. 2021 # Don't use installbsd from OSF since it installs stuff as root 2022 # by default. 2023 for ac_prog in ginstall scoinst install; do 2024 for ac_exec_ext in '' $ac_executable_extensions; do 2025 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2026 if test $ac_prog = install && 2027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2028 # AIX install. It has an incompatible calling convention. 2029 : 2030 elif test $ac_prog = install && 2031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2032 # program-specific install script used by HP pwplus--don't use. 2033 : 2034 else 2035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2036 break 3 2037 fi 2038 fi 2039 done 2040 done 2041 ;; 2042esac 2043done 2044IFS=$as_save_IFS 2045 2046 2047fi 2048 if test "${ac_cv_path_install+set}" = set; then 2049 INSTALL=$ac_cv_path_install 2050 else 2051 # As a last resort, use the slow shell script. Don't cache a 2052 # value for INSTALL within a source directory, because that will 2053 # break other packages using the cache if that directory is 2054 # removed, or if the value is a relative name. 2055 INSTALL=$ac_install_sh 2056 fi 2057fi 2058{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2059echo "${ECHO_T}$INSTALL" >&6; } 2060 2061# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2062# It thinks the first close brace ends the variable substitution. 2063test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2064 2065test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2066 2067test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2068 2069{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2070echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2071# Just in case 2072sleep 1 2073echo timestamp > conftest.file 2074# Do `set' in a subshell so we don't clobber the current shell's 2075# arguments. Must try -L first in case configure is actually a 2076# symlink; some systems play weird games with the mod time of symlinks 2077# (eg FreeBSD returns the mod time of the symlink's containing 2078# directory). 2079if ( 2080 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2081 if test "$*" = "X"; then 2082 # -L didn't work. 2083 set X `ls -t $srcdir/configure conftest.file` 2084 fi 2085 rm -f conftest.file 2086 if test "$*" != "X $srcdir/configure conftest.file" \ 2087 && test "$*" != "X conftest.file $srcdir/configure"; then 2088 2089 # If neither matched, then we have a broken ls. This can happen 2090 # if, for instance, CONFIG_SHELL is bash and it inherits a 2091 # broken ls alias from the environment. This has actually 2092 # happened. Such a system could not be considered "sane". 2093 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2094alias in your environment" >&5 2095echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2096alias in your environment" >&2;} 2097 { (exit 1); exit 1; }; } 2098 fi 2099 2100 test "$2" = conftest.file 2101 ) 2102then 2103 # Ok. 2104 : 2105else 2106 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2107Check your system clock" >&5 2108echo "$as_me: error: newly created file is older than distributed files! 2109Check your system clock" >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112{ echo "$as_me:$LINENO: result: yes" >&5 2113echo "${ECHO_T}yes" >&6; } 2114test "$program_prefix" != NONE && 2115 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2116# Use a double $ so make ignores it. 2117test "$program_suffix" != NONE && 2118 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2119# Double any \ or $. echo might interpret backslashes. 2120# By default was `s,x,x', remove it if useless. 2121cat <<\_ACEOF >conftest.sed 2122s/[\\$]/&&/g;s/;s,x,x,$// 2123_ACEOF 2124program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2125rm -f conftest.sed 2126 2127# expand $ac_aux_dir to an absolute path 2128am_aux_dir=`cd $ac_aux_dir && pwd` 2129 2130test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2131# Use eval to expand $SHELL 2132if eval "$MISSING --run true"; then 2133 am_missing_run="$MISSING --run " 2134else 2135 am_missing_run= 2136 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2137echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2138fi 2139 2140if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2141 # We used to keeping the `.' as first argument, in order to 2142 # allow $(mkdir_p) to be used without argument. As in 2143 # $(mkdir_p) $(somedir) 2144 # where $(somedir) is conditionally defined. However this is wrong 2145 # for two reasons: 2146 # 1. if the package is installed by a user who cannot write `.' 2147 # make install will fail, 2148 # 2. the above comment should most certainly read 2149 # $(mkdir_p) $(DESTDIR)$(somedir) 2150 # so it does not work when $(somedir) is undefined and 2151 # $(DESTDIR) is not. 2152 # To support the latter case, we have to write 2153 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2154 # so the `.' trick is pointless. 2155 mkdir_p='mkdir -p --' 2156else 2157 # On NextStep and OpenStep, the `mkdir' command does not 2158 # recognize any option. It will interpret all options as 2159 # directories to create, and then abort because `.' already 2160 # exists. 2161 for d in ./-p ./--version; 2162 do 2163 test -d $d && rmdir $d 2164 done 2165 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2166 if test -f "$ac_aux_dir/mkinstalldirs"; then 2167 mkdir_p='$(mkinstalldirs)' 2168 else 2169 mkdir_p='$(install_sh) -d' 2170 fi 2171fi 2172 2173for ac_prog in gawk mawk nawk awk 2174do 2175 # Extract the first word of "$ac_prog", so it can be a program name with args. 2176set dummy $ac_prog; ac_word=$2 2177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2179if test "${ac_cv_prog_AWK+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$AWK"; then 2183 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_AWK="$ac_prog" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198IFS=$as_save_IFS 2199 2200fi 2201fi 2202AWK=$ac_cv_prog_AWK 2203if test -n "$AWK"; then 2204 { echo "$as_me:$LINENO: result: $AWK" >&5 2205echo "${ECHO_T}$AWK" >&6; } 2206else 2207 { echo "$as_me:$LINENO: result: no" >&5 2208echo "${ECHO_T}no" >&6; } 2209fi 2210 2211 2212 test -n "$AWK" && break 2213done 2214 2215{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2217set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2218if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 cat >conftest.make <<\_ACEOF 2222SHELL = /bin/sh 2223all: 2224 @echo '@@@%%%=$(MAKE)=@@@%%%' 2225_ACEOF 2226# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2227case `${MAKE-make} -f conftest.make 2>/dev/null` in 2228 *@@@%%%=?*=@@@%%%*) 2229 eval ac_cv_prog_make_${ac_make}_set=yes;; 2230 *) 2231 eval ac_cv_prog_make_${ac_make}_set=no;; 2232esac 2233rm -f conftest.make 2234fi 2235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2236 { echo "$as_me:$LINENO: result: yes" >&5 2237echo "${ECHO_T}yes" >&6; } 2238 SET_MAKE= 2239else 2240 { echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6; } 2242 SET_MAKE="MAKE=${MAKE-make}" 2243fi 2244 2245rm -rf .tst 2>/dev/null 2246mkdir .tst 2>/dev/null 2247if test -d .tst; then 2248 am__leading_dot=. 2249else 2250 am__leading_dot=_ 2251fi 2252rmdir .tst 2>/dev/null 2253 2254# test to see if srcdir already configured 2255if test "`cd $srcdir && pwd`" != "`pwd`" && 2256 test -f $srcdir/config.status; then 2257 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2258echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2259 { (exit 1); exit 1; }; } 2260fi 2261 2262# test whether we have cygpath 2263if test -z "$CYGPATH_W"; then 2264 if (cygpath --version) >/dev/null 2>/dev/null; then 2265 CYGPATH_W='cygpath -w' 2266 else 2267 CYGPATH_W=echo 2268 fi 2269fi 2270 2271 2272# Define the identity of the package. 2273 PACKAGE='curlftpfs' 2274 VERSION='0.9.2' 2275 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE "$PACKAGE" 2279_ACEOF 2280 2281 2282cat >>confdefs.h <<_ACEOF 2283#define VERSION "$VERSION" 2284_ACEOF 2285 2286# Some tools Automake needs. 2287 2288ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2289 2290 2291AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2292 2293 2294AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2295 2296 2297AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2298 2299 2300MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2301 2302install_sh=${install_sh-"$am_aux_dir/install-sh"} 2303 2304# Installed binaries are usually stripped using `strip' when the user 2305# run `make install-strip'. However `strip' might not be the right 2306# tool to use in cross-compilation environments, therefore Automake 2307# will honor the `STRIP' environment variable to overrule this program. 2308if test "$cross_compiling" != no; then 2309 if test -n "$ac_tool_prefix"; then 2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2311set dummy ${ac_tool_prefix}strip; ac_word=$2 2312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2314if test "${ac_cv_prog_STRIP+set}" = set; then 2315 echo $ECHO_N "(cached) $ECHO_C" >&6 2316else 2317 if test -n "$STRIP"; then 2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2327 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332done 2333IFS=$as_save_IFS 2334 2335fi 2336fi 2337STRIP=$ac_cv_prog_STRIP 2338if test -n "$STRIP"; then 2339 { echo "$as_me:$LINENO: result: $STRIP" >&5 2340echo "${ECHO_T}$STRIP" >&6; } 2341else 2342 { echo "$as_me:$LINENO: result: no" >&5 2343echo "${ECHO_T}no" >&6; } 2344fi 2345 2346 2347fi 2348if test -z "$ac_cv_prog_STRIP"; then 2349 ac_ct_STRIP=$STRIP 2350 # Extract the first word of "strip", so it can be a program name with args. 2351set dummy strip; ac_word=$2 2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2354if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 if test -n "$ac_ct_STRIP"; then 2358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2367 ac_cv_prog_ac_ct_STRIP="strip" 2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372done 2373IFS=$as_save_IFS 2374 2375fi 2376fi 2377ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2378if test -n "$ac_ct_STRIP"; then 2379 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2380echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2381else 2382 { echo "$as_me:$LINENO: result: no" >&5 2383echo "${ECHO_T}no" >&6; } 2384fi 2385 2386 if test "x$ac_ct_STRIP" = x; then 2387 STRIP=":" 2388 else 2389 case $cross_compiling:$ac_tool_warned in 2390yes:) 2391{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2392whose name does not start with the host triplet. If you think this 2393configuration is useful to you, please write to autoconf@gnu.org." >&5 2394echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2395whose name does not start with the host triplet. If you think this 2396configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2397ac_tool_warned=yes ;; 2398esac 2399 STRIP=$ac_ct_STRIP 2400 fi 2401else 2402 STRIP="$ac_cv_prog_STRIP" 2403fi 2404 2405fi 2406INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2407 2408# We need awk for the "check" target. The system "awk" is bad on 2409# some platforms. 2410# Always define AMTAR for backward compatibility. 2411 2412AMTAR=${AMTAR-"${am_missing_run}tar"} 2413 2414am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2415 2416 2417 2418 2419 2420ac_config_headers="$ac_config_headers config.h" 2421 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428if test -n "$ac_tool_prefix"; then 2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2430set dummy ${ac_tool_prefix}gcc; ac_word=$2 2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2433if test "${ac_cv_prog_CC+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435else 2436 if test -n "$CC"; then 2437 ac_cv_prog_CC="$CC" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2446 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451done 2452IFS=$as_save_IFS 2453 2454fi 2455fi 2456CC=$ac_cv_prog_CC 2457if test -n "$CC"; then 2458 { echo "$as_me:$LINENO: result: $CC" >&5 2459echo "${ECHO_T}$CC" >&6; } 2460else 2461 { echo "$as_me:$LINENO: result: no" >&5 2462echo "${ECHO_T}no" >&6; } 2463fi 2464 2465 2466fi 2467if test -z "$ac_cv_prog_CC"; then 2468 ac_ct_CC=$CC 2469 # Extract the first word of "gcc", so it can be a program name with args. 2470set dummy gcc; ac_word=$2 2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2474 echo $ECHO_N "(cached) $ECHO_C" >&6 2475else 2476 if test -n "$ac_ct_CC"; then 2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_ac_ct_CC="gcc" 2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496ac_ct_CC=$ac_cv_prog_ac_ct_CC 2497if test -n "$ac_ct_CC"; then 2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2499echo "${ECHO_T}$ac_ct_CC" >&6; } 2500else 2501 { echo "$as_me:$LINENO: result: no" >&5 2502echo "${ECHO_T}no" >&6; } 2503fi 2504 2505 if test "x$ac_ct_CC" = x; then 2506 CC="" 2507 else 2508 case $cross_compiling:$ac_tool_warned in 2509yes:) 2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2511whose name does not start with the host triplet. If you think this 2512configuration is useful to you, please write to autoconf@gnu.org." >&5 2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2514whose name does not start with the host triplet. If you think this 2515configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2516ac_tool_warned=yes ;; 2517esac 2518 CC=$ac_ct_CC 2519 fi 2520else 2521 CC="$ac_cv_prog_CC" 2522fi 2523 2524if test -z "$CC"; then 2525 if test -n "$ac_tool_prefix"; then 2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2527set dummy ${ac_tool_prefix}cc; ac_word=$2 2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2530if test "${ac_cv_prog_CC+set}" = set; then 2531 echo $ECHO_N "(cached) $ECHO_C" >&6 2532else 2533 if test -n "$CC"; then 2534 ac_cv_prog_CC="$CC" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_CC="${ac_tool_prefix}cc" 2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553CC=$ac_cv_prog_CC 2554if test -n "$CC"; then 2555 { echo "$as_me:$LINENO: result: $CC" >&5 2556echo "${ECHO_T}$CC" >&6; } 2557else 2558 { echo "$as_me:$LINENO: result: no" >&5 2559echo "${ECHO_T}no" >&6; } 2560fi 2561 2562 2563 fi 2564fi 2565if test -z "$CC"; then 2566 # Extract the first word of "cc", so it can be a program name with args. 2567set dummy cc; ac_word=$2 2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2570if test "${ac_cv_prog_CC+set}" = set; then 2571 echo $ECHO_N "(cached) $ECHO_C" >&6 2572else 2573 if test -n "$CC"; then 2574 ac_cv_prog_CC="$CC" # Let the user override the test. 2575else 2576 ac_prog_rejected=no 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2585 ac_prog_rejected=yes 2586 continue 2587 fi 2588 ac_cv_prog_CC="cc" 2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593done 2594IFS=$as_save_IFS 2595 2596if test $ac_prog_rejected = yes; then 2597 # We found a bogon in the path, so make sure we never use it. 2598 set dummy $ac_cv_prog_CC 2599 shift 2600 if test $# != 0; then 2601 # We chose a different compiler from the bogus one. 2602 # However, it has the same basename, so the bogon will be chosen 2603 # first if we set CC to just the basename; use the full file name. 2604 shift 2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2606 fi 2607fi 2608fi 2609fi 2610CC=$ac_cv_prog_CC 2611if test -n "$CC"; then 2612 { echo "$as_me:$LINENO: result: $CC" >&5 2613echo "${ECHO_T}$CC" >&6; } 2614else 2615 { echo "$as_me:$LINENO: result: no" >&5 2616echo "${ECHO_T}no" >&6; } 2617fi 2618 2619 2620fi 2621if test -z "$CC"; then 2622 if test -n "$ac_tool_prefix"; then 2623 for ac_prog in cl.exe 2624 do 2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652CC=$ac_cv_prog_CC 2653if test -n "$CC"; then 2654 { echo "$as_me:$LINENO: result: $CC" >&5 2655echo "${ECHO_T}$CC" >&6; } 2656else 2657 { echo "$as_me:$LINENO: result: no" >&5 2658echo "${ECHO_T}no" >&6; } 2659fi 2660 2661 2662 test -n "$CC" && break 2663 done 2664fi 2665if test -z "$CC"; then 2666 ac_ct_CC=$CC 2667 for ac_prog in cl.exe 2668do 2669 # Extract the first word of "$ac_prog", so it can be a program name with args. 2670set dummy $ac_prog; ac_word=$2 2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2674 echo $ECHO_N "(cached) $ECHO_C" >&6 2675else 2676 if test -n "$ac_ct_CC"; then 2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2686 ac_cv_prog_ac_ct_CC="$ac_prog" 2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696ac_ct_CC=$ac_cv_prog_ac_ct_CC 2697if test -n "$ac_ct_CC"; then 2698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2699echo "${ECHO_T}$ac_ct_CC" >&6; } 2700else 2701 { echo "$as_me:$LINENO: result: no" >&5 2702echo "${ECHO_T}no" >&6; } 2703fi 2704 2705 2706 test -n "$ac_ct_CC" && break 2707done 2708 2709 if test "x$ac_ct_CC" = x; then 2710 CC="" 2711 else 2712 case $cross_compiling:$ac_tool_warned in 2713yes:) 2714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2715whose name does not start with the host triplet. If you think this 2716configuration is useful to you, please write to autoconf@gnu.org." >&5 2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2718whose name does not start with the host triplet. If you think this 2719configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2720ac_tool_warned=yes ;; 2721esac 2722 CC=$ac_ct_CC 2723 fi 2724fi 2725 2726fi 2727 2728 2729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2730See \`config.log' for more details." >&5 2731echo "$as_me: error: no acceptable C compiler found in \$PATH 2732See \`config.log' for more details." >&2;} 2733 { (exit 1); exit 1; }; } 2734 2735# Provide some information about the compiler. 2736echo "$as_me:$LINENO: checking for C compiler version" >&5 2737ac_compiler=`set X $ac_compile; echo $2` 2738{ (ac_try="$ac_compiler --version >&5" 2739case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742esac 2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2744 (eval "$ac_compiler --version >&5") 2>&5 2745 ac_status=$? 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2747 (exit $ac_status); } 2748{ (ac_try="$ac_compiler -v >&5" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2754 (eval "$ac_compiler -v >&5") 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } 2758{ (ac_try="$ac_compiler -V >&5" 2759case "(($ac_try" in 2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2761 *) ac_try_echo=$ac_try;; 2762esac 2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2764 (eval "$ac_compiler -V >&5") 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); } 2768 2769cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775 2776int 2777main () 2778{ 2779 2780 ; 2781 return 0; 2782} 2783_ACEOF 2784ac_clean_files_save=$ac_clean_files 2785ac_clean_files="$ac_clean_files a.out a.exe b.out" 2786# Try to create an executable without -o first, disregard a.out. 2787# It will help us diagnose broken compilers, and finding out an intuition 2788# of exeext. 2789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2792# 2793# List of possible output files, starting from the most likely. 2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2795# only as a last resort. b.out is created by i960 compilers. 2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2797# 2798# The IRIX 6 linker writes into existing files which may not be 2799# executable, retaining their permissions. Remove them first so a 2800# subsequent execution test works. 2801ac_rmfiles= 2802for ac_file in $ac_files 2803do 2804 case $ac_file in 2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2807 esac 2808done 2809rm -f $ac_rmfiles 2810 2811if { (ac_try="$ac_link_default" 2812case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2817 (eval "$ac_link_default") 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; then 2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2823# in a Makefile. We should not override ac_cv_exeext if it was cached, 2824# so that the user can short-circuit this test for compilers unknown to 2825# Autoconf. 2826for ac_file in $ac_files '' 2827do 2828 test -f "$ac_file" || continue 2829 case $ac_file in 2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2831 ;; 2832 [ab].out ) 2833 # We found the default executable, but exeext='' is most 2834 # certainly right. 2835 break;; 2836 *.* ) 2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2838 then :; else 2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2840 fi 2841 # We set ac_cv_exeext here because the later test for it is not 2842 # safe: cross compilers may not add the suffix if given an `-o' 2843 # argument, so we may need to know it at that point already. 2844 # Even if this section looks crufty: it has the advantage of 2845 # actually working. 2846 break;; 2847 * ) 2848 break;; 2849 esac 2850done 2851test "$ac_cv_exeext" = no && ac_cv_exeext= 2852 2853else 2854 ac_file='' 2855fi 2856 2857{ echo "$as_me:$LINENO: result: $ac_file" >&5 2858echo "${ECHO_T}$ac_file" >&6; } 2859if test -z "$ac_file"; then 2860 echo "$as_me: failed program was:" >&5 2861sed 's/^/| /' conftest.$ac_ext >&5 2862 2863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2864See \`config.log' for more details." >&5 2865echo "$as_me: error: C compiler cannot create executables 2866See \`config.log' for more details." >&2;} 2867 { (exit 77); exit 77; }; } 2868fi 2869 2870ac_exeext=$ac_cv_exeext 2871 2872# Check that the compiler produces executables we can run. If not, either 2873# the compiler is broken, or we cross compile. 2874{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2877# If not cross compiling, check that we can run a simple program. 2878if test "$cross_compiling" != yes; then 2879 if { ac_try='./$ac_file' 2880 { (case "(($ac_try" in 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2882 *) ac_try_echo=$ac_try;; 2883esac 2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2885 (eval "$ac_try") 2>&5 2886 ac_status=$? 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2888 (exit $ac_status); }; }; then 2889 cross_compiling=no 2890 else 2891 if test "$cross_compiling" = maybe; then 2892 cross_compiling=yes 2893 else 2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2895If you meant to cross compile, use \`--host'. 2896See \`config.log' for more details." >&5 2897echo "$as_me: error: cannot run C compiled programs. 2898If you meant to cross compile, use \`--host'. 2899See \`config.log' for more details." >&2;} 2900 { (exit 1); exit 1; }; } 2901 fi 2902 fi 2903fi 2904{ echo "$as_me:$LINENO: result: yes" >&5 2905echo "${ECHO_T}yes" >&6; } 2906 2907rm -f a.out a.exe conftest$ac_cv_exeext b.out 2908ac_clean_files=$ac_clean_files_save 2909# Check that the compiler produces executables we can run. If not, either 2910# the compiler is broken, or we cross compile. 2911{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2913{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2914echo "${ECHO_T}$cross_compiling" >&6; } 2915 2916{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2918if { (ac_try="$ac_link" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_link") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); }; then 2928 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2930# work properly (i.e., refer to `conftest.exe'), while it won't with 2931# `rm'. 2932for ac_file in conftest.exe conftest conftest.*; do 2933 test -f "$ac_file" || continue 2934 case $ac_file in 2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2937 break;; 2938 * ) break;; 2939 esac 2940done 2941else 2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2943See \`config.log' for more details." >&5 2944echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2945See \`config.log' for more details." >&2;} 2946 { (exit 1); exit 1; }; } 2947fi 2948 2949rm -f conftest$ac_cv_exeext 2950{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2951echo "${ECHO_T}$ac_cv_exeext" >&6; } 2952 2953rm -f conftest.$ac_ext 2954EXEEXT=$ac_cv_exeext 2955ac_exeext=$EXEEXT 2956{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2958if test "${ac_cv_objext+set}" = set; then 2959 echo $ECHO_N "(cached) $ECHO_C" >&6 2960else 2961 cat >conftest.$ac_ext <<_ACEOF 2962/* confdefs.h. */ 2963_ACEOF 2964cat confdefs.h >>conftest.$ac_ext 2965cat >>conftest.$ac_ext <<_ACEOF 2966/* end confdefs.h. */ 2967 2968int 2969main () 2970{ 2971 2972 ; 2973 return 0; 2974} 2975_ACEOF 2976rm -f conftest.o conftest.obj 2977if { (ac_try="$ac_compile" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2983 (eval "$ac_compile") 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; then 2987 for ac_file in conftest.o conftest.obj conftest.*; do 2988 test -f "$ac_file" || continue; 2989 case $ac_file in 2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2992 break;; 2993 esac 2994done 2995else 2996 echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3000See \`config.log' for more details." >&5 3001echo "$as_me: error: cannot compute suffix of object files: cannot compile 3002See \`config.log' for more details." >&2;} 3003 { (exit 1); exit 1; }; } 3004fi 3005 3006rm -f conftest.$ac_cv_objext conftest.$ac_ext 3007fi 3008{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3009echo "${ECHO_T}$ac_cv_objext" >&6; } 3010OBJEXT=$ac_cv_objext 3011ac_objext=$OBJEXT 3012{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3014if test "${ac_cv_c_compiler_gnu+set}" = set; then 3015 echo $ECHO_N "(cached) $ECHO_C" >&6 3016else 3017 cat >conftest.$ac_ext <<_ACEOF 3018/* confdefs.h. */ 3019_ACEOF 3020cat confdefs.h >>conftest.$ac_ext 3021cat >>conftest.$ac_ext <<_ACEOF 3022/* end confdefs.h. */ 3023 3024int 3025main () 3026{ 3027#ifndef __GNUC__ 3028 choke me 3029#endif 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_compile") 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && { 3049 test -z "$ac_c_werror_flag" || 3050 test ! -s conftest.err 3051 } && test -s conftest.$ac_objext; then 3052 ac_compiler_gnu=yes 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057 ac_compiler_gnu=no 3058fi 3059 3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3061ac_cv_c_compiler_gnu=$ac_compiler_gnu 3062 3063fi 3064{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3066GCC=`test $ac_compiler_gnu = yes && echo yes` 3067ac_test_CFLAGS=${CFLAGS+set} 3068ac_save_CFLAGS=$CFLAGS 3069{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3071if test "${ac_cv_prog_cc_g+set}" = set; then 3072 echo $ECHO_N "(cached) $ECHO_C" >&6 3073else 3074 ac_save_c_werror_flag=$ac_c_werror_flag 3075 ac_c_werror_flag=yes 3076 ac_cv_prog_cc_g=no 3077 CFLAGS="-g" 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093rm -f conftest.$ac_objext 3094if { (ac_try="$ac_compile" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3100 (eval "$ac_compile") 2>conftest.er1 3101 ac_status=$? 3102 grep -v '^ *+' conftest.er1 >conftest.err 3103 rm -f conftest.er1 3104 cat conftest.err >&5 3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3106 (exit $ac_status); } && { 3107 test -z "$ac_c_werror_flag" || 3108 test ! -s conftest.err 3109 } && test -s conftest.$ac_objext; then 3110 ac_cv_prog_cc_g=yes 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115 CFLAGS="" 3116 cat >conftest.$ac_ext <<_ACEOF 3117/* confdefs.h. */ 3118_ACEOF 3119cat confdefs.h >>conftest.$ac_ext 3120cat >>conftest.$ac_ext <<_ACEOF 3121/* end confdefs.h. */ 3122 3123int 3124main () 3125{ 3126 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131rm -f conftest.$ac_objext 3132if { (ac_try="$ac_compile" 3133case "(($ac_try" in 3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3135 *) ac_try_echo=$ac_try;; 3136esac 3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3138 (eval "$ac_compile") 2>conftest.er1 3139 ac_status=$? 3140 grep -v '^ *+' conftest.er1 >conftest.err 3141 rm -f conftest.er1 3142 cat conftest.err >&5 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); } && { 3145 test -z "$ac_c_werror_flag" || 3146 test ! -s conftest.err 3147 } && test -s conftest.$ac_objext; then 3148 : 3149else 3150 echo "$as_me: failed program was:" >&5 3151sed 's/^/| /' conftest.$ac_ext >&5 3152 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154 CFLAGS="-g" 3155 cat >conftest.$ac_ext <<_ACEOF 3156/* confdefs.h. */ 3157_ACEOF 3158cat confdefs.h >>conftest.$ac_ext 3159cat >>conftest.$ac_ext <<_ACEOF 3160/* end confdefs.h. */ 3161 3162int 3163main () 3164{ 3165 3166 ; 3167 return 0; 3168} 3169_ACEOF 3170rm -f conftest.$ac_objext 3171if { (ac_try="$ac_compile" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3177 (eval "$ac_compile") 2>conftest.er1 3178 ac_status=$? 3179 grep -v '^ *+' conftest.er1 >conftest.err 3180 rm -f conftest.er1 3181 cat conftest.err >&5 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); } && { 3184 test -z "$ac_c_werror_flag" || 3185 test ! -s conftest.err 3186 } && test -s conftest.$ac_objext; then 3187 ac_cv_prog_cc_g=yes 3188else 3189 echo "$as_me: failed program was:" >&5 3190sed 's/^/| /' conftest.$ac_ext >&5 3191 3192 3193fi 3194 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196fi 3197 3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3199fi 3200 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202 ac_c_werror_flag=$ac_save_c_werror_flag 3203fi 3204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3206if test "$ac_test_CFLAGS" = set; then 3207 CFLAGS=$ac_save_CFLAGS 3208elif test $ac_cv_prog_cc_g = yes; then 3209 if test "$GCC" = yes; then 3210 CFLAGS="-g -O2" 3211 else 3212 CFLAGS="-g" 3213 fi 3214else 3215 if test "$GCC" = yes; then 3216 CFLAGS="-O2" 3217 else 3218 CFLAGS= 3219 fi 3220fi 3221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3223if test "${ac_cv_prog_cc_c89+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 ac_cv_prog_cc_c89=no 3227ac_save_CC=$CC 3228cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234#include <stdarg.h> 3235#include <stdio.h> 3236#include <sys/types.h> 3237#include <sys/stat.h> 3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3239struct buf { int x; }; 3240FILE * (*rcsopen) (struct buf *, struct stat *, int); 3241static char *e (p, i) 3242 char **p; 3243 int i; 3244{ 3245 return p[i]; 3246} 3247static char *f (char * (*g) (char **, int), char **p, ...) 3248{ 3249 char *s; 3250 va_list v; 3251 va_start (v,p); 3252 s = g (p, va_arg (v,int)); 3253 va_end (v); 3254 return s; 3255} 3256 3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3258 function prototypes and stuff, but not '\xHH' hex character constants. 3259 These don't provoke an error unfortunately, instead are silently treated 3260 as 'x'. The following induces an error, until -std is added to get 3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3262 array size at least. It's necessary to write '\x00'==0 to get something 3263 that's true only with -std. */ 3264int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3265 3266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3267 inside strings and character constants. */ 3268#define FOO(x) 'x' 3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3270 3271int test (int i, double x); 3272struct s1 {int (*f) (int a);}; 3273struct s2 {int (*f) (double a);}; 3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3275int argc; 3276char **argv; 3277int 3278main () 3279{ 3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3287do 3288 CC="$ac_save_CC $ac_arg" 3289 rm -f conftest.$ac_objext 3290if { (ac_try="$ac_compile" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3296 (eval "$ac_compile") 2>conftest.er1 3297 ac_status=$? 3298 grep -v '^ *+' conftest.er1 >conftest.err 3299 rm -f conftest.er1 3300 cat conftest.err >&5 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } && { 3303 test -z "$ac_c_werror_flag" || 3304 test ! -s conftest.err 3305 } && test -s conftest.$ac_objext; then 3306 ac_cv_prog_cc_c89=$ac_arg 3307else 3308 echo "$as_me: failed program was:" >&5 3309sed 's/^/| /' conftest.$ac_ext >&5 3310 3311 3312fi 3313 3314rm -f core conftest.err conftest.$ac_objext 3315 test "x$ac_cv_prog_cc_c89" != "xno" && break 3316done 3317rm -f conftest.$ac_ext 3318CC=$ac_save_CC 3319 3320fi 3321# AC_CACHE_VAL 3322case "x$ac_cv_prog_cc_c89" in 3323 x) 3324 { echo "$as_me:$LINENO: result: none needed" >&5 3325echo "${ECHO_T}none needed" >&6; } ;; 3326 xno) 3327 { echo "$as_me:$LINENO: result: unsupported" >&5 3328echo "${ECHO_T}unsupported" >&6; } ;; 3329 *) 3330 CC="$CC $ac_cv_prog_cc_c89" 3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3332echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3333esac 3334 3335 3336ac_ext=c 3337ac_cpp='$CPP $CPPFLAGS' 3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341DEPDIR="${am__leading_dot}deps" 3342 3343ac_config_commands="$ac_config_commands depfiles" 3344 3345 3346am_make=${MAKE-make} 3347cat > confinc << 'END' 3348am__doit: 3349 @echo done 3350.PHONY: am__doit 3351END 3352# If we don't find an include directive, just comment out the code. 3353{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3354echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3355am__include="#" 3356am__quote= 3357_am_result=none 3358# First try GNU make style include. 3359echo "include confinc" > confmf 3360# We grep out `Entering directory' and `Leaving directory' 3361# messages which can occur if `w' ends up in MAKEFLAGS. 3362# In particular we don't look at `^make:' because GNU make might 3363# be invoked under some other name (usually "gmake"), in which 3364# case it prints its new name instead of `make'. 3365if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3366 am__include=include 3367 am__quote= 3368 _am_result=GNU 3369fi 3370# Now try BSD make style include. 3371if test "$am__include" = "#"; then 3372 echo '.include "confinc"' > confmf 3373 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3374 am__include=.include 3375 am__quote="\"" 3376 _am_result=BSD 3377 fi 3378fi 3379 3380 3381{ echo "$as_me:$LINENO: result: $_am_result" >&5 3382echo "${ECHO_T}$_am_result" >&6; } 3383rm -f confinc confmf 3384 3385# Check whether --enable-dependency-tracking was given. 3386if test "${enable_dependency_tracking+set}" = set; then 3387 enableval=$enable_dependency_tracking; 3388fi 3389 3390if test "x$enable_dependency_tracking" != xno; then 3391 am_depcomp="$ac_aux_dir/depcomp" 3392 AMDEPBACKSLASH='\' 3393fi 3394 3395 3396if test "x$enable_dependency_tracking" != xno; then 3397 AMDEP_TRUE= 3398 AMDEP_FALSE='#' 3399else 3400 AMDEP_TRUE='#' 3401 AMDEP_FALSE= 3402fi 3403 3404 3405 3406 3407depcc="$CC" am_compiler_list= 3408 3409{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3410echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3412 echo $ECHO_N "(cached) $ECHO_C" >&6 3413else 3414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3415 # We make a subdir and do the tests there. Otherwise we can end up 3416 # making bogus files that we don't know about and never remove. For 3417 # instance it was reported that on HP-UX the gcc test will end up 3418 # making a dummy file named `D' -- because `-MD' means `put the output 3419 # in D'. 3420 mkdir conftest.dir 3421 # Copy depcomp to subdir because otherwise we won't find it if we're 3422 # using a relative directory. 3423 cp "$am_depcomp" conftest.dir 3424 cd conftest.dir 3425 # We will build objects and dependencies in a subdirectory because 3426 # it helps to detect inapplicable dependency modes. For instance 3427 # both Tru64's cc and ICC support -MD to output dependencies as a 3428 # side effect of compilation, but ICC will put the dependencies in 3429 # the current directory while Tru64 will put them in the object 3430 # directory. 3431 mkdir sub 3432 3433 am_cv_CC_dependencies_compiler_type=none 3434 if test "$am_compiler_list" = ""; then 3435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3436 fi 3437 for depmode in $am_compiler_list; do 3438 # Setup a source with many dependencies, because some compilers 3439 # like to wrap large dependency lists on column 80 (with \), and 3440 # we should not choose a depcomp mode which is confused by this. 3441 # 3442 # We need to recreate these files for each test, as the compiler may 3443 # overwrite some of them when testing with obscure command lines. 3444 # This happens at least with the AIX C compiler. 3445 : > sub/conftest.c 3446 for i in 1 2 3 4 5 6; do 3447 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3449 # Solaris 8's {/usr,}/bin/sh. 3450 touch sub/conftst$i.h 3451 done 3452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3453 3454 case $depmode in 3455 nosideeffect) 3456 # after this tag, mechanisms are not by side-effect, so they'll 3457 # only be used when explicitly requested 3458 if test "x$enable_dependency_tracking" = xyes; then 3459 continue 3460 else 3461 break 3462 fi 3463 ;; 3464 none) break ;; 3465 esac 3466 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3467 # mode. It turns out that the SunPro C++ compiler does not properly 3468 # handle `-M -o', and we need to detect this. 3469 if depmode=$depmode \ 3470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3473 >/dev/null 2>conftest.err && 3474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3475 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3477 # icc doesn't choke on unknown options, it will just issue warnings 3478 # or remarks (even with -Werror). So we grep stderr for any message 3479 # that says an option was ignored or not supported. 3480 # When given -MP, icc 7.0 and 7.1 complain thusly: 3481 # icc: Command line warning: ignoring option '-M'; no argument required 3482 # The diagnosis changed in icc 8.0: 3483 # icc: Command line remark: option '-MP' not supported 3484 if (grep 'ignoring option' conftest.err || 3485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3486 am_cv_CC_dependencies_compiler_type=$depmode 3487 break 3488 fi 3489 fi 3490 done 3491 3492 cd .. 3493 rm -rf conftest.dir 3494else 3495 am_cv_CC_dependencies_compiler_type=none 3496fi 3497 3498fi 3499{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3500echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3501CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3502 3503 3504 3505if 3506 test "x$enable_dependency_tracking" != xno \ 3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3508 am__fastdepCC_TRUE= 3509 am__fastdepCC_FALSE='#' 3510else 3511 am__fastdepCC_TRUE='#' 3512 am__fastdepCC_FALSE= 3513fi 3514 3515 3516ac_ext=c 3517ac_cpp='$CPP $CPPFLAGS' 3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3520ac_compiler_gnu=$ac_cv_c_compiler_gnu 3521{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3522echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3523# On Suns, sometimes $CPP names a directory. 3524if test -n "$CPP" && test -d "$CPP"; then 3525 CPP= 3526fi 3527if test -z "$CPP"; then 3528 if test "${ac_cv_prog_CPP+set}" = set; then 3529 echo $ECHO_N "(cached) $ECHO_C" >&6 3530else 3531 # Double quotes because CPP needs to be expanded 3532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3533 do 3534 ac_preproc_ok=false 3535for ac_c_preproc_warn_flag in '' yes 3536do 3537 # Use a header file that comes with gcc, so configuring glibc 3538 # with a fresh cross-compiler works. 3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3540 # <limits.h> exists even on freestanding compilers. 3541 # On the NeXT, cc -E runs the code through the compiler's parser, 3542 # not just through cpp. "Syntax error" is here to catch this case. 3543 cat >conftest.$ac_ext <<_ACEOF 3544/* confdefs.h. */ 3545_ACEOF 3546cat confdefs.h >>conftest.$ac_ext 3547cat >>conftest.$ac_ext <<_ACEOF 3548/* end confdefs.h. */ 3549#ifdef __STDC__ 3550# include <limits.h> 3551#else 3552# include <assert.h> 3553#endif 3554 Syntax error 3555_ACEOF 3556if { (ac_try="$ac_cpp conftest.$ac_ext" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3563 ac_status=$? 3564 grep -v '^ *+' conftest.er1 >conftest.err 3565 rm -f conftest.er1 3566 cat conftest.err >&5 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } >/dev/null && { 3569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3570 test ! -s conftest.err 3571 }; then 3572 : 3573else 3574 echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577 # Broken: fails on valid input. 3578continue 3579fi 3580 3581rm -f conftest.err conftest.$ac_ext 3582 3583 # OK, works on sane cases. Now check whether nonexistent headers 3584 # can be detected and how. 3585 cat >conftest.$ac_ext <<_ACEOF 3586/* confdefs.h. */ 3587_ACEOF 3588cat confdefs.h >>conftest.$ac_ext 3589cat >>conftest.$ac_ext <<_ACEOF 3590/* end confdefs.h. */ 3591#include <ac_nonexistent.h> 3592_ACEOF 3593if { (ac_try="$ac_cpp conftest.$ac_ext" 3594case "(($ac_try" in 3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3596 *) ac_try_echo=$ac_try;; 3597esac 3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3600 ac_status=$? 3601 grep -v '^ *+' conftest.er1 >conftest.err 3602 rm -f conftest.er1 3603 cat conftest.err >&5 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } >/dev/null && { 3606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3607 test ! -s conftest.err 3608 }; then 3609 # Broken: success on invalid input. 3610continue 3611else 3612 echo "$as_me: failed program was:" >&5 3613sed 's/^/| /' conftest.$ac_ext >&5 3614 3615 # Passes both tests. 3616ac_preproc_ok=: 3617break 3618fi 3619 3620rm -f conftest.err conftest.$ac_ext 3621 3622done 3623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3624rm -f conftest.err conftest.$ac_ext 3625if $ac_preproc_ok; then 3626 break 3627fi 3628 3629 done 3630 ac_cv_prog_CPP=$CPP 3631 3632fi 3633 CPP=$ac_cv_prog_CPP 3634else 3635 ac_cv_prog_CPP=$CPP 3636fi 3637{ echo "$as_me:$LINENO: result: $CPP" >&5 3638echo "${ECHO_T}$CPP" >&6; } 3639ac_preproc_ok=false 3640for ac_c_preproc_warn_flag in '' yes 3641do 3642 # Use a header file that comes with gcc, so configuring glibc 3643 # with a fresh cross-compiler works. 3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3645 # <limits.h> exists even on freestanding compilers. 3646 # On the NeXT, cc -E runs the code through the compiler's parser, 3647 # not just through cpp. "Syntax error" is here to catch this case. 3648 cat >conftest.$ac_ext <<_ACEOF 3649/* confdefs.h. */ 3650_ACEOF 3651cat confdefs.h >>conftest.$ac_ext 3652cat >>conftest.$ac_ext <<_ACEOF 3653/* end confdefs.h. */ 3654#ifdef __STDC__ 3655# include <limits.h> 3656#else 3657# include <assert.h> 3658#endif 3659 Syntax error 3660_ACEOF 3661if { (ac_try="$ac_cpp conftest.$ac_ext" 3662case "(($ac_try" in 3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3664 *) ac_try_echo=$ac_try;; 3665esac 3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3668 ac_status=$? 3669 grep -v '^ *+' conftest.er1 >conftest.err 3670 rm -f conftest.er1 3671 cat conftest.err >&5 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 (exit $ac_status); } >/dev/null && { 3674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3675 test ! -s conftest.err 3676 }; then 3677 : 3678else 3679 echo "$as_me: failed program was:" >&5 3680sed 's/^/| /' conftest.$ac_ext >&5 3681 3682 # Broken: fails on valid input. 3683continue 3684fi 3685 3686rm -f conftest.err conftest.$ac_ext 3687 3688 # OK, works on sane cases. Now check whether nonexistent headers 3689 # can be detected and how. 3690 cat >conftest.$ac_ext <<_ACEOF 3691/* confdefs.h. */ 3692_ACEOF 3693cat confdefs.h >>conftest.$ac_ext 3694cat >>conftest.$ac_ext <<_ACEOF 3695/* end confdefs.h. */ 3696#include <ac_nonexistent.h> 3697_ACEOF 3698if { (ac_try="$ac_cpp conftest.$ac_ext" 3699case "(($ac_try" in 3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3701 *) ac_try_echo=$ac_try;; 3702esac 3703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3705 ac_status=$? 3706 grep -v '^ *+' conftest.er1 >conftest.err 3707 rm -f conftest.er1 3708 cat conftest.err >&5 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3710 (exit $ac_status); } >/dev/null && { 3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3712 test ! -s conftest.err 3713 }; then 3714 # Broken: success on invalid input. 3715continue 3716else 3717 echo "$as_me: failed program was:" >&5 3718sed 's/^/| /' conftest.$ac_ext >&5 3719 3720 # Passes both tests. 3721ac_preproc_ok=: 3722break 3723fi 3724 3725rm -f conftest.err conftest.$ac_ext 3726 3727done 3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3729rm -f conftest.err conftest.$ac_ext 3730if $ac_preproc_ok; then 3731 : 3732else 3733 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3734See \`config.log' for more details." >&5 3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3736See \`config.log' for more details." >&2;} 3737 { (exit 1); exit 1; }; } 3738fi 3739 3740ac_ext=c 3741ac_cpp='$CPP $CPPFLAGS' 3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3744ac_compiler_gnu=$ac_cv_c_compiler_gnu 3745 3746# Find a good install program. We prefer a C program (faster), 3747# so one script is as good as another. But avoid the broken or 3748# incompatible versions: 3749# SysV /etc/install, /usr/sbin/install 3750# SunOS /usr/etc/install 3751# IRIX /sbin/install 3752# AIX /bin/install 3753# AmigaOS /C/install, which installs bootblocks on floppy discs 3754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3755# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3757# OS/2's system install, which has a completely different semantic 3758# ./install, which can be erroneously created by make from ./install.sh. 3759{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3760echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3761if test -z "$INSTALL"; then 3762if test "${ac_cv_path_install+set}" = set; then 3763 echo $ECHO_N "(cached) $ECHO_C" >&6 3764else 3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766for as_dir in $PATH 3767do 3768 IFS=$as_save_IFS 3769 test -z "$as_dir" && as_dir=. 3770 # Account for people who put trailing slashes in PATH elements. 3771case $as_dir/ in 3772 ./ | .// | /cC/* | \ 3773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3774 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3775 /usr/ucb/* ) ;; 3776 *) 3777 # OSF1 and SCO ODT 3.0 have their own names for install. 3778 # Don't use installbsd from OSF since it installs stuff as root 3779 # by default. 3780 for ac_prog in ginstall scoinst install; do 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3783 if test $ac_prog = install && 3784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3785 # AIX install. It has an incompatible calling convention. 3786 : 3787 elif test $ac_prog = install && 3788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3789 # program-specific install script used by HP pwplus--don't use. 3790 : 3791 else 3792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3793 break 3 3794 fi 3795 fi 3796 done 3797 done 3798 ;; 3799esac 3800done 3801IFS=$as_save_IFS 3802 3803 3804fi 3805 if test "${ac_cv_path_install+set}" = set; then 3806 INSTALL=$ac_cv_path_install 3807 else 3808 # As a last resort, use the slow shell script. Don't cache a 3809 # value for INSTALL within a source directory, because that will 3810 # break other packages using the cache if that directory is 3811 # removed, or if the value is a relative name. 3812 INSTALL=$ac_install_sh 3813 fi 3814fi 3815{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3816echo "${ECHO_T}$INSTALL" >&6; } 3817 3818# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3819# It thinks the first close brace ends the variable substitution. 3820test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3821 3822test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3823 3824test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3825 3826{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3827echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3828LN_S=$as_ln_s 3829if test "$LN_S" = "ln -s"; then 3830 { echo "$as_me:$LINENO: result: yes" >&5 3831echo "${ECHO_T}yes" >&6; } 3832else 3833 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3834echo "${ECHO_T}no, using $LN_S" >&6; } 3835fi 3836 3837{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3838echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3839set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3840if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3841 echo $ECHO_N "(cached) $ECHO_C" >&6 3842else 3843 cat >conftest.make <<\_ACEOF 3844SHELL = /bin/sh 3845all: 3846 @echo '@@@%%%=$(MAKE)=@@@%%%' 3847_ACEOF 3848# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3849case `${MAKE-make} -f conftest.make 2>/dev/null` in 3850 *@@@%%%=?*=@@@%%%*) 3851 eval ac_cv_prog_make_${ac_make}_set=yes;; 3852 *) 3853 eval ac_cv_prog_make_${ac_make}_set=no;; 3854esac 3855rm -f conftest.make 3856fi 3857if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3858 { echo "$as_me:$LINENO: result: yes" >&5 3859echo "${ECHO_T}yes" >&6; } 3860 SET_MAKE= 3861else 3862 { echo "$as_me:$LINENO: result: no" >&5 3863echo "${ECHO_T}no" >&6; } 3864 SET_MAKE="MAKE=${MAKE-make}" 3865fi 3866 3867# Check whether --enable-shared was given. 3868if test "${enable_shared+set}" = set; then 3869 enableval=$enable_shared; p=${PACKAGE-default} 3870 case $enableval in 3871 yes) enable_shared=yes ;; 3872 no) enable_shared=no ;; 3873 *) 3874 enable_shared=no 3875 # Look at the argument we got. We use all the common list separators. 3876 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3877 for pkg in $enableval; do 3878 IFS="$lt_save_ifs" 3879 if test "X$pkg" = "X$p"; then 3880 enable_shared=yes 3881 fi 3882 done 3883 IFS="$lt_save_ifs" 3884 ;; 3885 esac 3886else 3887 enable_shared=yes 3888fi 3889 3890 3891# Check whether --enable-static was given. 3892if test "${enable_static+set}" = set; then 3893 enableval=$enable_static; p=${PACKAGE-default} 3894 case $enableval in 3895 yes) enable_static=yes ;; 3896 no) enable_static=no ;; 3897 *) 3898 enable_static=no 3899 # Look at the argument we got. We use all the common list separators. 3900 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3901 for pkg in $enableval; do 3902 IFS="$lt_save_ifs" 3903 if test "X$pkg" = "X$p"; then 3904 enable_static=yes 3905 fi 3906 done 3907 IFS="$lt_save_ifs" 3908 ;; 3909 esac 3910else 3911 enable_static=yes 3912fi 3913 3914 3915# Check whether --enable-fast-install was given. 3916if test "${enable_fast_install+set}" = set; then 3917 enableval=$enable_fast_install; p=${PACKAGE-default} 3918 case $enableval in 3919 yes) enable_fast_install=yes ;; 3920 no) enable_fast_install=no ;; 3921 *) 3922 enable_fast_install=no 3923 # Look at the argument we got. We use all the common list separators. 3924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3925 for pkg in $enableval; do 3926 IFS="$lt_save_ifs" 3927 if test "X$pkg" = "X$p"; then 3928 enable_fast_install=yes 3929 fi 3930 done 3931 IFS="$lt_save_ifs" 3932 ;; 3933 esac 3934else 3935 enable_fast_install=yes 3936fi 3937 3938 3939# Make sure we can run config.sub. 3940$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3941 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3942echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3943 { (exit 1); exit 1; }; } 3944 3945{ echo "$as_me:$LINENO: checking build system type" >&5 3946echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3947if test "${ac_cv_build+set}" = set; then 3948 echo $ECHO_N "(cached) $ECHO_C" >&6 3949else 3950 ac_build_alias=$build_alias 3951test "x$ac_build_alias" = x && 3952 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3953test "x$ac_build_alias" = x && 3954 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3955echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3956 { (exit 1); exit 1; }; } 3957ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3958 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3959echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3960 { (exit 1); exit 1; }; } 3961 3962fi 3963{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3964echo "${ECHO_T}$ac_cv_build" >&6; } 3965case $ac_cv_build in 3966*-*-*) ;; 3967*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3968echo "$as_me: error: invalid value of canonical build" >&2;} 3969 { (exit 1); exit 1; }; };; 3970esac 3971build=$ac_cv_build 3972ac_save_IFS=$IFS; IFS='-' 3973set x $ac_cv_build 3974shift 3975build_cpu=$1 3976build_vendor=$2 3977shift; shift 3978# Remember, the first character of IFS is used to create $*, 3979# except with old shells: 3980build_os=$* 3981IFS=$ac_save_IFS 3982case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3983 3984 3985{ echo "$as_me:$LINENO: checking host system type" >&5 3986echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3987if test "${ac_cv_host+set}" = set; then 3988 echo $ECHO_N "(cached) $ECHO_C" >&6 3989else 3990 if test "x$host_alias" = x; then 3991 ac_cv_host=$ac_cv_build 3992else 3993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3994 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3995echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3996 { (exit 1); exit 1; }; } 3997fi 3998 3999fi 4000{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4001echo "${ECHO_T}$ac_cv_host" >&6; } 4002case $ac_cv_host in 4003*-*-*) ;; 4004*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4005echo "$as_me: error: invalid value of canonical host" >&2;} 4006 { (exit 1); exit 1; }; };; 4007esac 4008host=$ac_cv_host 4009ac_save_IFS=$IFS; IFS='-' 4010set x $ac_cv_host 4011shift 4012host_cpu=$1 4013host_vendor=$2 4014shift; shift 4015# Remember, the first character of IFS is used to create $*, 4016# except with old shells: 4017host_os=$* 4018IFS=$ac_save_IFS 4019case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4020 4021 4022{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4023echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4024if test "${lt_cv_path_SED+set}" = set; then 4025 echo $ECHO_N "(cached) $ECHO_C" >&6 4026else 4027 # Loop through the user's path and test for sed and gsed. 4028# Then use that list of sed's as ones to test for truncation. 4029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for lt_ac_prog in sed gsed; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4037 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4038 fi 4039 done 4040 done 4041done 4042IFS=$as_save_IFS 4043lt_ac_max=0 4044lt_ac_count=0 4045# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4046# along with /bin/sed that truncates output. 4047for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4048 test ! -f $lt_ac_sed && continue 4049 cat /dev/null > conftest.in 4050 lt_ac_count=0 4051 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4052 # Check for GNU sed and select it if it is found. 4053 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4054 lt_cv_path_SED=$lt_ac_sed 4055 break 4056 fi 4057 while true; do 4058 cat conftest.in conftest.in >conftest.tmp 4059 mv conftest.tmp conftest.in 4060 cp conftest.in conftest.nl 4061 echo >>conftest.nl 4062 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4063 cmp -s conftest.out conftest.nl || break 4064 # 10000 chars as input seems more than enough 4065 test $lt_ac_count -gt 10 && break 4066 lt_ac_count=`expr $lt_ac_count + 1` 4067 if test $lt_ac_count -gt $lt_ac_max; then 4068 lt_ac_max=$lt_ac_count 4069 lt_cv_path_SED=$lt_ac_sed 4070 fi 4071 done 4072done 4073 4074fi 4075 4076SED=$lt_cv_path_SED 4077 4078{ echo "$as_me:$LINENO: result: $SED" >&5 4079echo "${ECHO_T}$SED" >&6; } 4080 4081{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4082echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4083if test "${ac_cv_path_GREP+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 # Extract the first word of "grep ggrep" to use in msg output 4087if test -z "$GREP"; then 4088set dummy grep ggrep; ac_prog_name=$2 4089if test "${ac_cv_path_GREP+set}" = set; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 ac_path_GREP_found=false 4093# Loop through the user's path and test for each of PROGNAME-LIST 4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4096do 4097 IFS=$as_save_IFS 4098 test -z "$as_dir" && as_dir=. 4099 for ac_prog in grep ggrep; do 4100 for ac_exec_ext in '' $ac_executable_extensions; do 4101 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4102 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4103 # Check for GNU ac_path_GREP and select it if it is found. 4104 # Check for GNU $ac_path_GREP 4105case `"$ac_path_GREP" --version 2>&1` in 4106*GNU*) 4107 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4108*) 4109 ac_count=0 4110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4111 while : 4112 do 4113 cat "conftest.in" "conftest.in" >"conftest.tmp" 4114 mv "conftest.tmp" "conftest.in" 4115 cp "conftest.in" "conftest.nl" 4116 echo 'GREP' >> "conftest.nl" 4117 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4119 ac_count=`expr $ac_count + 1` 4120 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4121 # Best one so far, save it but keep looking for a better one 4122 ac_cv_path_GREP="$ac_path_GREP" 4123 ac_path_GREP_max=$ac_count 4124 fi 4125 # 10*(2^10) chars as input seems more than enough 4126 test $ac_count -gt 10 && break 4127 done 4128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4129esac 4130 4131 4132 $ac_path_GREP_found && break 3 4133 done 4134done 4135 4136done 4137IFS=$as_save_IFS 4138 4139 4140fi 4141 4142GREP="$ac_cv_path_GREP" 4143if test -z "$GREP"; then 4144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4145echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4146 { (exit 1); exit 1; }; } 4147fi 4148 4149else 4150 ac_cv_path_GREP=$GREP 4151fi 4152 4153 4154fi 4155{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4156echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4157 GREP="$ac_cv_path_GREP" 4158 4159 4160{ echo "$as_me:$LINENO: checking for egrep" >&5 4161echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4162if test "${ac_cv_path_EGREP+set}" = set; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4166 then ac_cv_path_EGREP="$GREP -E" 4167 else 4168 # Extract the first word of "egrep" to use in msg output 4169if test -z "$EGREP"; then 4170set dummy egrep; ac_prog_name=$2 4171if test "${ac_cv_path_EGREP+set}" = set; then 4172 echo $ECHO_N "(cached) $ECHO_C" >&6 4173else 4174 ac_path_EGREP_found=false 4175# Loop through the user's path and test for each of PROGNAME-LIST 4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_prog in egrep; do 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4185 # Check for GNU ac_path_EGREP and select it if it is found. 4186 # Check for GNU $ac_path_EGREP 4187case `"$ac_path_EGREP" --version 2>&1` in 4188*GNU*) 4189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4190*) 4191 ac_count=0 4192 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4193 while : 4194 do 4195 cat "conftest.in" "conftest.in" >"conftest.tmp" 4196 mv "conftest.tmp" "conftest.in" 4197 cp "conftest.in" "conftest.nl" 4198 echo 'EGREP' >> "conftest.nl" 4199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4201 ac_count=`expr $ac_count + 1` 4202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4203 # Best one so far, save it but keep looking for a better one 4204 ac_cv_path_EGREP="$ac_path_EGREP" 4205 ac_path_EGREP_max=$ac_count 4206 fi 4207 # 10*(2^10) chars as input seems more than enough 4208 test $ac_count -gt 10 && break 4209 done 4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4211esac 4212 4213 4214 $ac_path_EGREP_found && break 3 4215 done 4216done 4217 4218done 4219IFS=$as_save_IFS 4220 4221 4222fi 4223 4224EGREP="$ac_cv_path_EGREP" 4225if test -z "$EGREP"; then 4226 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4227echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4228 { (exit 1); exit 1; }; } 4229fi 4230 4231else 4232 ac_cv_path_EGREP=$EGREP 4233fi 4234 4235 4236 fi 4237fi 4238{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4239echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4240 EGREP="$ac_cv_path_EGREP" 4241 4242 4243 4244# Check whether --with-gnu-ld was given. 4245if test "${with_gnu_ld+set}" = set; then 4246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4247else 4248 with_gnu_ld=no 4249fi 4250 4251ac_prog=ld 4252if test "$GCC" = yes; then 4253 # Check if gcc -print-prog-name=ld gives a path. 4254 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4255echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4256 case $host in 4257 *-*-mingw*) 4258 # gcc leaves a trailing carriage return which upsets mingw 4259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4260 *) 4261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4262 esac 4263 case $ac_prog in 4264 # Accept absolute paths. 4265 [\\/]* | ?:[\\/]*) 4266 re_direlt='/[^/][^/]*/\.\./' 4267 # Canonicalize the pathname of ld 4268 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4269 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4270 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4271 done 4272 test -z "$LD" && LD="$ac_prog" 4273 ;; 4274 "") 4275 # If it fails, then pretend we aren't using GCC. 4276 ac_prog=ld 4277 ;; 4278 *) 4279 # If it is relative, then search for the first ld in PATH. 4280 with_gnu_ld=unknown 4281 ;; 4282 esac 4283elif test "$with_gnu_ld" = yes; then 4284 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4285echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4286else 4287 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4288echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4289fi 4290if test "${lt_cv_path_LD+set}" = set; then 4291 echo $ECHO_N "(cached) $ECHO_C" >&6 4292else 4293 if test -z "$LD"; then 4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4295 for ac_dir in $PATH; do 4296 IFS="$lt_save_ifs" 4297 test -z "$ac_dir" && ac_dir=. 4298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4299 lt_cv_path_LD="$ac_dir/$ac_prog" 4300 # Check to see if the program is GNU ld. I'd rather use --version, 4301 # but apparently some variants of GNU ld only accept -v. 4302 # Break only if it was the GNU/non-GNU ld that we prefer. 4303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4304 *GNU* | *'with BFD'*) 4305 test "$with_gnu_ld" != no && break 4306 ;; 4307 *) 4308 test "$with_gnu_ld" != yes && break 4309 ;; 4310 esac 4311 fi 4312 done 4313 IFS="$lt_save_ifs" 4314else 4315 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4316fi 4317fi 4318 4319LD="$lt_cv_path_LD" 4320if test -n "$LD"; then 4321 { echo "$as_me:$LINENO: result: $LD" >&5 4322echo "${ECHO_T}$LD" >&6; } 4323else 4324 { echo "$as_me:$LINENO: result: no" >&5 4325echo "${ECHO_T}no" >&6; } 4326fi 4327test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4328echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4329 { (exit 1); exit 1; }; } 4330{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4331echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4332if test "${lt_cv_prog_gnu_ld+set}" = set; then 4333 echo $ECHO_N "(cached) $ECHO_C" >&6 4334else 4335 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4336case `$LD -v 2>&1 </dev/null` in 4337*GNU* | *'with BFD'*) 4338 lt_cv_prog_gnu_ld=yes 4339 ;; 4340*) 4341 lt_cv_prog_gnu_ld=no 4342 ;; 4343esac 4344fi 4345{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4346echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4347with_gnu_ld=$lt_cv_prog_gnu_ld 4348 4349 4350{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4351echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4352if test "${lt_cv_ld_reload_flag+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 lt_cv_ld_reload_flag='-r' 4356fi 4357{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4358echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4359reload_flag=$lt_cv_ld_reload_flag 4360case $reload_flag in 4361"" | " "*) ;; 4362*) reload_flag=" $reload_flag" ;; 4363esac 4364reload_cmds='$LD$reload_flag -o $output$reload_objs' 4365case $host_os in 4366 darwin*) 4367 if test "$GCC" = yes; then 4368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4369 else 4370 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4371 fi 4372 ;; 4373esac 4374 4375{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4376echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4377if test "${lt_cv_path_NM+set}" = set; then 4378 echo $ECHO_N "(cached) $ECHO_C" >&6 4379else 4380 if test -n "$NM"; then 4381 # Let the user override the test. 4382 lt_cv_path_NM="$NM" 4383else 4384 lt_nm_to_check="${ac_tool_prefix}nm" 4385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4386 lt_nm_to_check="$lt_nm_to_check nm" 4387 fi 4388 for lt_tmp_nm in $lt_nm_to_check; do 4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4391 IFS="$lt_save_ifs" 4392 test -z "$ac_dir" && ac_dir=. 4393 tmp_nm="$ac_dir/$lt_tmp_nm" 4394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4395 # Check to see if the nm accepts a BSD-compat flag. 4396 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4397 # nm: unknown option "B" ignored 4398 # Tru64's nm complains that /dev/null is an invalid object file 4399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4400 */dev/null* | *'Invalid file or object type'*) 4401 lt_cv_path_NM="$tmp_nm -B" 4402 break 4403 ;; 4404 *) 4405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4406 */dev/null*) 4407 lt_cv_path_NM="$tmp_nm -p" 4408 break 4409 ;; 4410 *) 4411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4412 continue # so that we can try to find one that supports BSD flags 4413 ;; 4414 esac 4415 ;; 4416 esac 4417 fi 4418 done 4419 IFS="$lt_save_ifs" 4420 done 4421 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4422fi 4423fi 4424{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4425echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4426NM="$lt_cv_path_NM" 4427 4428{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4429echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4430if test "${lt_cv_deplibs_check_method+set}" = set; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432else 4433 lt_cv_file_magic_cmd='$MAGIC_CMD' 4434lt_cv_file_magic_test_file= 4435lt_cv_deplibs_check_method='unknown' 4436# Need to set the preceding variable on all platforms that support 4437# interlibrary dependencies. 4438# 'none' -- dependencies not supported. 4439# `unknown' -- same as none, but documents that we really don't know. 4440# 'pass_all' -- all dependencies passed with no checks. 4441# 'test_compile' -- check by making test program. 4442# 'file_magic [[regex]]' -- check by looking for files in library path 4443# which responds to the $file_magic_cmd with a given extended regex. 4444# If you have `file' or equivalent on your system and you're not sure 4445# whether `pass_all' will *always* work, you probably want this one. 4446 4447case $host_os in 4448aix4* | aix5*) 4449 lt_cv_deplibs_check_method=pass_all 4450 ;; 4451 4452beos*) 4453 lt_cv_deplibs_check_method=pass_all 4454 ;; 4455 4456bsdi[45]*) 4457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4458 lt_cv_file_magic_cmd='/usr/bin/file -L' 4459 lt_cv_file_magic_test_file=/shlib/libc.so 4460 ;; 4461 4462cygwin*) 4463 # func_win32_libid is a shell function defined in ltmain.sh 4464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4465 lt_cv_file_magic_cmd='func_win32_libid' 4466 ;; 4467 4468mingw* | pw32*) 4469 # Base MSYS/MinGW do not provide the 'file' command needed by 4470 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4471 # unless we find 'file', for example because we are cross-compiling. 4472 if ( file / ) >/dev/null 2>&1; then 4473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4474 lt_cv_file_magic_cmd='func_win32_libid' 4475 else 4476 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4477 lt_cv_file_magic_cmd='$OBJDUMP -f' 4478 fi 4479 ;; 4480 4481darwin* | rhapsody*) 4482 lt_cv_deplibs_check_method=pass_all 4483 ;; 4484 4485freebsd* | dragonfly*) 4486 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4487 case $host_cpu in 4488 i*86 ) 4489 # Not sure whether the presence of OpenBSD here was a mistake. 4490 # Let's accept both of them until this is cleared up. 4491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4492 lt_cv_file_magic_cmd=/usr/bin/file 4493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4494 ;; 4495 esac 4496 else 4497 lt_cv_deplibs_check_method=pass_all 4498 fi 4499 ;; 4500 4501gnu*) 4502 lt_cv_deplibs_check_method=pass_all 4503 ;; 4504 4505hpux10.20* | hpux11*) 4506 lt_cv_file_magic_cmd=/usr/bin/file 4507 case $host_cpu in 4508 ia64*) 4509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4511 ;; 4512 hppa*64*) 4513 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]' 4514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4515 ;; 4516 *) 4517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4518 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4519 ;; 4520 esac 4521 ;; 4522 4523interix[3-9]*) 4524 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4526 ;; 4527 4528irix5* | irix6* | nonstopux*) 4529 case $LD in 4530 *-32|*"-32 ") libmagic=32-bit;; 4531 *-n32|*"-n32 ") libmagic=N32;; 4532 *-64|*"-64 ") libmagic=64-bit;; 4533 *) libmagic=never-match;; 4534 esac 4535 lt_cv_deplibs_check_method=pass_all 4536 ;; 4537 4538# This must be Linux ELF. 4539linux* | k*bsd*-gnu) 4540 lt_cv_deplibs_check_method=pass_all 4541 ;; 4542 4543netbsd* | netbsdelf*-gnu) 4544 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4546 else 4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4548 fi 4549 ;; 4550 4551newos6*) 4552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4553 lt_cv_file_magic_cmd=/usr/bin/file 4554 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4555 ;; 4556 4557nto-qnx*) 4558 lt_cv_deplibs_check_method=unknown 4559 ;; 4560 4561openbsd*) 4562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4564 else 4565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4566 fi 4567 ;; 4568 4569osf3* | osf4* | osf5*) 4570 lt_cv_deplibs_check_method=pass_all 4571 ;; 4572 4573rdos*) 4574 lt_cv_deplibs_check_method=pass_all 4575 ;; 4576 4577solaris*) 4578 lt_cv_deplibs_check_method=pass_all 4579 ;; 4580 4581sysv4 | sysv4.3*) 4582 case $host_vendor in 4583 motorola) 4584 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]' 4585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4586 ;; 4587 ncr) 4588 lt_cv_deplibs_check_method=pass_all 4589 ;; 4590 sequent) 4591 lt_cv_file_magic_cmd='/bin/file' 4592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4593 ;; 4594 sni) 4595 lt_cv_file_magic_cmd='/bin/file' 4596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4597 lt_cv_file_magic_test_file=/lib/libc.so 4598 ;; 4599 siemens) 4600 lt_cv_deplibs_check_method=pass_all 4601 ;; 4602 pc) 4603 lt_cv_deplibs_check_method=pass_all 4604 ;; 4605 esac 4606 ;; 4607 4608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4609 lt_cv_deplibs_check_method=pass_all 4610 ;; 4611esac 4612 4613fi 4614{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4615echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4616file_magic_cmd=$lt_cv_file_magic_cmd 4617deplibs_check_method=$lt_cv_deplibs_check_method 4618test -z "$deplibs_check_method" && deplibs_check_method=unknown 4619 4620 4621 4622 4623# If no C compiler was specified, use CC. 4624LTCC=${LTCC-"$CC"} 4625 4626# If no C compiler flags were specified, use CFLAGS. 4627LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4628 4629# Allow CC to be a program name with arguments. 4630compiler=$CC 4631 4632 4633# Check whether --enable-libtool-lock was given. 4634if test "${enable_libtool_lock+set}" = set; then 4635 enableval=$enable_libtool_lock; 4636fi 4637 4638test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4639 4640# Some flags need to be propagated to the compiler or linker for good 4641# libtool support. 4642case $host in 4643ia64-*-hpux*) 4644 # Find out which ABI we are using. 4645 echo 'int i;' > conftest.$ac_ext 4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4647 (eval $ac_compile) 2>&5 4648 ac_status=$? 4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4650 (exit $ac_status); }; then 4651 case `/usr/bin/file conftest.$ac_objext` in 4652 *ELF-32*) 4653 HPUX_IA64_MODE="32" 4654 ;; 4655 *ELF-64*) 4656 HPUX_IA64_MODE="64" 4657 ;; 4658 esac 4659 fi 4660 rm -rf conftest* 4661 ;; 4662*-*-irix6*) 4663 # Find out which ABI we are using. 4664 echo '#line 4664 "configure"' > conftest.$ac_ext 4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4666 (eval $ac_compile) 2>&5 4667 ac_status=$? 4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4669 (exit $ac_status); }; then 4670 if test "$lt_cv_prog_gnu_ld" = yes; then 4671 case `/usr/bin/file conftest.$ac_objext` in 4672 *32-bit*) 4673 LD="${LD-ld} -melf32bsmip" 4674 ;; 4675 *N32*) 4676 LD="${LD-ld} -melf32bmipn32" 4677 ;; 4678 *64-bit*) 4679 LD="${LD-ld} -melf64bmip" 4680 ;; 4681 esac 4682 else 4683 case `/usr/bin/file conftest.$ac_objext` in 4684 *32-bit*) 4685 LD="${LD-ld} -32" 4686 ;; 4687 *N32*) 4688 LD="${LD-ld} -n32" 4689 ;; 4690 *64-bit*) 4691 LD="${LD-ld} -64" 4692 ;; 4693 esac 4694 fi 4695 fi 4696 rm -rf conftest* 4697 ;; 4698 4699x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4700s390*-*linux*|sparc*-*linux*) 4701 # Find out which ABI we are using. 4702 echo 'int i;' > conftest.$ac_ext 4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4704 (eval $ac_compile) 2>&5 4705 ac_status=$? 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); }; then 4708 case `/usr/bin/file conftest.o` in 4709 *32-bit*) 4710 case $host in 4711 x86_64-*kfreebsd*-gnu) 4712 LD="${LD-ld} -m elf_i386_fbsd" 4713 ;; 4714 x86_64-*linux*) 4715 LD="${LD-ld} -m elf_i386" 4716 ;; 4717 ppc64-*linux*|powerpc64-*linux*) 4718 LD="${LD-ld} -m elf32ppclinux" 4719 ;; 4720 s390x-*linux*) 4721 LD="${LD-ld} -m elf_s390" 4722 ;; 4723 sparc64-*linux*) 4724 LD="${LD-ld} -m elf32_sparc" 4725 ;; 4726 esac 4727 ;; 4728 *64-bit*) 4729 case $host in 4730 x86_64-*kfreebsd*-gnu) 4731 LD="${LD-ld} -m elf_x86_64_fbsd" 4732 ;; 4733 x86_64-*linux*) 4734 LD="${LD-ld} -m elf_x86_64" 4735 ;; 4736 ppc*-*linux*|powerpc*-*linux*) 4737 LD="${LD-ld} -m elf64ppc" 4738 ;; 4739 s390*-*linux*) 4740 LD="${LD-ld} -m elf64_s390" 4741 ;; 4742 sparc*-*linux*) 4743 LD="${LD-ld} -m elf64_sparc" 4744 ;; 4745 esac 4746 ;; 4747 esac 4748 fi 4749 rm -rf conftest* 4750 ;; 4751 4752*-*-sco3.2v5*) 4753 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4754 SAVE_CFLAGS="$CFLAGS" 4755 CFLAGS="$CFLAGS -belf" 4756 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4757echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4758if test "${lt_cv_cc_needs_belf+set}" = set; then 4759 echo $ECHO_N "(cached) $ECHO_C" >&6 4760else 4761 ac_ext=c 4762ac_cpp='$CPP $CPPFLAGS' 4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4765ac_compiler_gnu=$ac_cv_c_compiler_gnu 4766 4767 cat >conftest.$ac_ext <<_ACEOF 4768/* confdefs.h. */ 4769_ACEOF 4770cat confdefs.h >>conftest.$ac_ext 4771cat >>conftest.$ac_ext <<_ACEOF 4772/* end confdefs.h. */ 4773 4774int 4775main () 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782rm -f conftest.$ac_objext conftest$ac_exeext 4783if { (ac_try="$ac_link" 4784case "(($ac_try" in 4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4786 *) ac_try_echo=$ac_try;; 4787esac 4788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4789 (eval "$ac_link") 2>conftest.er1 4790 ac_status=$? 4791 grep -v '^ *+' conftest.er1 >conftest.err 4792 rm -f conftest.er1 4793 cat conftest.err >&5 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4795 (exit $ac_status); } && { 4796 test -z "$ac_c_werror_flag" || 4797 test ! -s conftest.err 4798 } && test -s conftest$ac_exeext && 4799 $as_test_x conftest$ac_exeext; then 4800 lt_cv_cc_needs_belf=yes 4801else 4802 echo "$as_me: failed program was:" >&5 4803sed 's/^/| /' conftest.$ac_ext >&5 4804 4805 lt_cv_cc_needs_belf=no 4806fi 4807 4808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4809 conftest$ac_exeext conftest.$ac_ext 4810 ac_ext=c 4811ac_cpp='$CPP $CPPFLAGS' 4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4814ac_compiler_gnu=$ac_cv_c_compiler_gnu 4815 4816fi 4817{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4818echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4819 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4821 CFLAGS="$SAVE_CFLAGS" 4822 fi 4823 ;; 4824sparc*-*solaris*) 4825 # Find out which ABI we are using. 4826 echo 'int i;' > conftest.$ac_ext 4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4828 (eval $ac_compile) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; then 4832 case `/usr/bin/file conftest.o` in 4833 *64-bit*) 4834 case $lt_cv_prog_gnu_ld in 4835 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4836 *) LD="${LD-ld} -64" ;; 4837 esac 4838 ;; 4839 esac 4840 fi 4841 rm -rf conftest* 4842 ;; 4843 4844 4845esac 4846 4847need_locks="$enable_libtool_lock" 4848 4849 4850 4851{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4852echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4853if test "${ac_cv_header_stdc+set}" = set; then 4854 echo $ECHO_N "(cached) $ECHO_C" >&6 4855else 4856 cat >conftest.$ac_ext <<_ACEOF 4857/* confdefs.h. */ 4858_ACEOF 4859cat confdefs.h >>conftest.$ac_ext 4860cat >>conftest.$ac_ext <<_ACEOF 4861/* end confdefs.h. */ 4862#include <stdlib.h> 4863#include <stdarg.h> 4864#include <string.h> 4865#include <float.h> 4866 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875rm -f conftest.$ac_objext 4876if { (ac_try="$ac_compile" 4877case "(($ac_try" in 4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4879 *) ac_try_echo=$ac_try;; 4880esac 4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4882 (eval "$ac_compile") 2>conftest.er1 4883 ac_status=$? 4884 grep -v '^ *+' conftest.er1 >conftest.err 4885 rm -f conftest.er1 4886 cat conftest.err >&5 4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4888 (exit $ac_status); } && { 4889 test -z "$ac_c_werror_flag" || 4890 test ! -s conftest.err 4891 } && test -s conftest.$ac_objext; then 4892 ac_cv_header_stdc=yes 4893else 4894 echo "$as_me: failed program was:" >&5 4895sed 's/^/| /' conftest.$ac_ext >&5 4896 4897 ac_cv_header_stdc=no 4898fi 4899 4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4901 4902if test $ac_cv_header_stdc = yes; then 4903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4904 cat >conftest.$ac_ext <<_ACEOF 4905/* confdefs.h. */ 4906_ACEOF 4907cat confdefs.h >>conftest.$ac_ext 4908cat >>conftest.$ac_ext <<_ACEOF 4909/* end confdefs.h. */ 4910#include <string.h> 4911 4912_ACEOF 4913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4914 $EGREP "memchr" >/dev/null 2>&1; then 4915 : 4916else 4917 ac_cv_header_stdc=no 4918fi 4919rm -f conftest* 4920 4921fi 4922 4923if test $ac_cv_header_stdc = yes; then 4924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4925 cat >conftest.$ac_ext <<_ACEOF 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931#include <stdlib.h> 4932 4933_ACEOF 4934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4935 $EGREP "free" >/dev/null 2>&1; then 4936 : 4937else 4938 ac_cv_header_stdc=no 4939fi 4940rm -f conftest* 4941 4942fi 4943 4944if test $ac_cv_header_stdc = yes; then 4945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4946 if test "$cross_compiling" = yes; then 4947 : 4948else 4949 cat >conftest.$ac_ext <<_ACEOF 4950/* confdefs.h. */ 4951_ACEOF 4952cat confdefs.h >>conftest.$ac_ext 4953cat >>conftest.$ac_ext <<_ACEOF 4954/* end confdefs.h. */ 4955#include <ctype.h> 4956#include <stdlib.h> 4957#if ((' ' & 0x0FF) == 0x020) 4958# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4959# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4960#else 4961# define ISLOWER(c) \ 4962 (('a' <= (c) && (c) <= 'i') \ 4963 || ('j' <= (c) && (c) <= 'r') \ 4964 || ('s' <= (c) && (c) <= 'z')) 4965# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4966#endif 4967 4968#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4969int 4970main () 4971{ 4972 int i; 4973 for (i = 0; i < 256; i++) 4974 if (XOR (islower (i), ISLOWER (i)) 4975 || toupper (i) != TOUPPER (i)) 4976 return 2; 4977 return 0; 4978} 4979_ACEOF 4980rm -f conftest$ac_exeext 4981if { (ac_try="$ac_link" 4982case "(($ac_try" in 4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4984 *) ac_try_echo=$ac_try;; 4985esac 4986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4987 (eval "$ac_link") 2>&5 4988 ac_status=$? 4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4991 { (case "(($ac_try" in 4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4993 *) ac_try_echo=$ac_try;; 4994esac 4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4996 (eval "$ac_try") 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; }; then 5000 : 5001else 5002 echo "$as_me: program exited with status $ac_status" >&5 5003echo "$as_me: failed program was:" >&5 5004sed 's/^/| /' conftest.$ac_ext >&5 5005 5006( exit $ac_status ) 5007ac_cv_header_stdc=no 5008fi 5009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5010fi 5011 5012 5013fi 5014fi 5015{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5016echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5017if test $ac_cv_header_stdc = yes; then 5018 5019cat >>confdefs.h <<\_ACEOF 5020#define STDC_HEADERS 1 5021_ACEOF 5022 5023fi 5024 5025# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5036 inttypes.h stdint.h unistd.h 5037do 5038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5039{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5042 echo $ECHO_N "(cached) $ECHO_C" >&6 5043else 5044 cat >conftest.$ac_ext <<_ACEOF 5045/* confdefs.h. */ 5046_ACEOF 5047cat confdefs.h >>conftest.$ac_ext 5048cat >>conftest.$ac_ext <<_ACEOF 5049/* end confdefs.h. */ 5050$ac_includes_default 5051 5052#include <$ac_header> 5053_ACEOF 5054rm -f conftest.$ac_objext 5055if { (ac_try="$ac_compile" 5056case "(($ac_try" in 5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5058 *) ac_try_echo=$ac_try;; 5059esac 5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5061 (eval "$ac_compile") 2>conftest.er1 5062 ac_status=$? 5063 grep -v '^ *+' conftest.er1 >conftest.err 5064 rm -f conftest.er1 5065 cat conftest.err >&5 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); } && { 5068 test -z "$ac_c_werror_flag" || 5069 test ! -s conftest.err 5070 } && test -s conftest.$ac_objext; then 5071 eval "$as_ac_Header=yes" 5072else 5073 echo "$as_me: failed program was:" >&5 5074sed 's/^/| /' conftest.$ac_ext >&5 5075 5076 eval "$as_ac_Header=no" 5077fi 5078 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080fi 5081ac_res=`eval echo '${'$as_ac_Header'}'` 5082 { echo "$as_me:$LINENO: result: $ac_res" >&5 5083echo "${ECHO_T}$ac_res" >&6; } 5084if test `eval echo '${'$as_ac_Header'}'` = yes; then 5085 cat >>confdefs.h <<_ACEOF 5086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5087_ACEOF 5088 5089fi 5090 5091done 5092 5093 5094 5095for ac_header in dlfcn.h 5096do 5097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5099 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5102 echo $ECHO_N "(cached) $ECHO_C" >&6 5103fi 5104ac_res=`eval echo '${'$as_ac_Header'}'` 5105 { echo "$as_me:$LINENO: result: $ac_res" >&5 5106echo "${ECHO_T}$ac_res" >&6; } 5107else 5108 # Is the header compilable? 5109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5111cat >conftest.$ac_ext <<_ACEOF 5112/* confdefs.h. */ 5113_ACEOF 5114cat confdefs.h >>conftest.$ac_ext 5115cat >>conftest.$ac_ext <<_ACEOF 5116/* end confdefs.h. */ 5117$ac_includes_default 5118#include <$ac_header> 5119_ACEOF 5120rm -f conftest.$ac_objext 5121if { (ac_try="$ac_compile" 5122case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5127 (eval "$ac_compile") 2>conftest.er1 5128 ac_status=$? 5129 grep -v '^ *+' conftest.er1 >conftest.err 5130 rm -f conftest.er1 5131 cat conftest.err >&5 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } && { 5134 test -z "$ac_c_werror_flag" || 5135 test ! -s conftest.err 5136 } && test -s conftest.$ac_objext; then 5137 ac_header_compiler=yes 5138else 5139 echo "$as_me: failed program was:" >&5 5140sed 's/^/| /' conftest.$ac_ext >&5 5141 5142 ac_header_compiler=no 5143fi 5144 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5147echo "${ECHO_T}$ac_header_compiler" >&6; } 5148 5149# Is the header present? 5150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5152cat >conftest.$ac_ext <<_ACEOF 5153/* confdefs.h. */ 5154_ACEOF 5155cat confdefs.h >>conftest.$ac_ext 5156cat >>conftest.$ac_ext <<_ACEOF 5157/* end confdefs.h. */ 5158#include <$ac_header> 5159_ACEOF 5160if { (ac_try="$ac_cpp conftest.$ac_ext" 5161case "(($ac_try" in 5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5163 *) ac_try_echo=$ac_try;; 5164esac 5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5167 ac_status=$? 5168 grep -v '^ *+' conftest.er1 >conftest.err 5169 rm -f conftest.er1 5170 cat conftest.err >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5172 (exit $ac_status); } >/dev/null && { 5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5174 test ! -s conftest.err 5175 }; then 5176 ac_header_preproc=yes 5177else 5178 echo "$as_me: failed program was:" >&5 5179sed 's/^/| /' conftest.$ac_ext >&5 5180 5181 ac_header_preproc=no 5182fi 5183 5184rm -f conftest.err conftest.$ac_ext 5185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5186echo "${ECHO_T}$ac_header_preproc" >&6; } 5187 5188# So? What about this header? 5189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5190 yes:no: ) 5191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5195 ac_header_preproc=yes 5196 ;; 5197 no:yes:* ) 5198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5210 5211 ;; 5212esac 5213{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 eval "$as_ac_Header=\$ac_header_preproc" 5219fi 5220ac_res=`eval echo '${'$as_ac_Header'}'` 5221 { echo "$as_me:$LINENO: result: $ac_res" >&5 5222echo "${ECHO_T}$ac_res" >&6; } 5223 5224fi 5225if test `eval echo '${'$as_ac_Header'}'` = yes; then 5226 cat >>confdefs.h <<_ACEOF 5227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5228_ACEOF 5229 5230fi 5231 5232done 5233 5234ac_ext=cpp 5235ac_cpp='$CXXCPP $CPPFLAGS' 5236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5239if test -z "$CXX"; then 5240 if test -n "$CCC"; then 5241 CXX=$CCC 5242 else 5243 if test -n "$ac_tool_prefix"; then 5244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5245 do 5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5248{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5250if test "${ac_cv_prog_CXX+set}" = set; then 5251 echo $ECHO_N "(cached) $ECHO_C" >&6 5252else 5253 if test -n "$CXX"; then 5254 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273CXX=$ac_cv_prog_CXX 5274if test -n "$CXX"; then 5275 { echo "$as_me:$LINENO: result: $CXX" >&5 5276echo "${ECHO_T}$CXX" >&6; } 5277else 5278 { echo "$as_me:$LINENO: result: no" >&5 5279echo "${ECHO_T}no" >&6; } 5280fi 5281 5282 5283 test -n "$CXX" && break 5284 done 5285fi 5286if test -z "$CXX"; then 5287 ac_ct_CXX=$CXX 5288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5289do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291set dummy $ac_prog; ac_word=$2 5292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5294if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5295 echo $ECHO_N "(cached) $ECHO_C" >&6 5296else 5297 if test -n "$ac_ct_CXX"; then 5298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5307 ac_cv_prog_ac_ct_CXX="$ac_prog" 5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312done 5313IFS=$as_save_IFS 5314 5315fi 5316fi 5317ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5318if test -n "$ac_ct_CXX"; then 5319 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5320echo "${ECHO_T}$ac_ct_CXX" >&6; } 5321else 5322 { echo "$as_me:$LINENO: result: no" >&5 5323echo "${ECHO_T}no" >&6; } 5324fi 5325 5326 5327 test -n "$ac_ct_CXX" && break 5328done 5329 5330 if test "x$ac_ct_CXX" = x; then 5331 CXX="g++" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334yes:) 5335{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5336whose name does not start with the host triplet. If you think this 5337configuration is useful to you, please write to autoconf@gnu.org." >&5 5338echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5339whose name does not start with the host triplet. If you think this 5340configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5341ac_tool_warned=yes ;; 5342esac 5343 CXX=$ac_ct_CXX 5344 fi 5345fi 5346 5347 fi 5348fi 5349# Provide some information about the compiler. 5350echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5351ac_compiler=`set X $ac_compile; echo $2` 5352{ (ac_try="$ac_compiler --version >&5" 5353case "(($ac_try" in 5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5355 *) ac_try_echo=$ac_try;; 5356esac 5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5358 (eval "$ac_compiler --version >&5") 2>&5 5359 ac_status=$? 5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5361 (exit $ac_status); } 5362{ (ac_try="$ac_compiler -v >&5" 5363case "(($ac_try" in 5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5365 *) ac_try_echo=$ac_try;; 5366esac 5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5368 (eval "$ac_compiler -v >&5") 2>&5 5369 ac_status=$? 5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); } 5372{ (ac_try="$ac_compiler -V >&5" 5373case "(($ac_try" in 5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5375 *) ac_try_echo=$ac_try;; 5376esac 5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5378 (eval "$ac_compiler -V >&5") 2>&5 5379 ac_status=$? 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } 5382 5383{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5384echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5385if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5386 echo $ECHO_N "(cached) $ECHO_C" >&6 5387else 5388 cat >conftest.$ac_ext <<_ACEOF 5389/* confdefs.h. */ 5390_ACEOF 5391cat confdefs.h >>conftest.$ac_ext 5392cat >>conftest.$ac_ext <<_ACEOF 5393/* end confdefs.h. */ 5394 5395int 5396main () 5397{ 5398#ifndef __GNUC__ 5399 choke me 5400#endif 5401 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406rm -f conftest.$ac_objext 5407if { (ac_try="$ac_compile" 5408case "(($ac_try" in 5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5410 *) ac_try_echo=$ac_try;; 5411esac 5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5413 (eval "$ac_compile") 2>conftest.er1 5414 ac_status=$? 5415 grep -v '^ *+' conftest.er1 >conftest.err 5416 rm -f conftest.er1 5417 cat conftest.err >&5 5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5419 (exit $ac_status); } && { 5420 test -z "$ac_cxx_werror_flag" || 5421 test ! -s conftest.err 5422 } && test -s conftest.$ac_objext; then 5423 ac_compiler_gnu=yes 5424else 5425 echo "$as_me: failed program was:" >&5 5426sed 's/^/| /' conftest.$ac_ext >&5 5427 5428 ac_compiler_gnu=no 5429fi 5430 5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5432ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5433 5434fi 5435{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5436echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5437GXX=`test $ac_compiler_gnu = yes && echo yes` 5438ac_test_CXXFLAGS=${CXXFLAGS+set} 5439ac_save_CXXFLAGS=$CXXFLAGS 5440{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5441echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5442if test "${ac_cv_prog_cxx_g+set}" = set; then 5443 echo $ECHO_N "(cached) $ECHO_C" >&6 5444else 5445 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5446 ac_cxx_werror_flag=yes 5447 ac_cv_prog_cxx_g=no 5448 CXXFLAGS="-g" 5449 cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455 5456int 5457main () 5458{ 5459 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464rm -f conftest.$ac_objext 5465if { (ac_try="$ac_compile" 5466case "(($ac_try" in 5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5468 *) ac_try_echo=$ac_try;; 5469esac 5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5471 (eval "$ac_compile") 2>conftest.er1 5472 ac_status=$? 5473 grep -v '^ *+' conftest.er1 >conftest.err 5474 rm -f conftest.er1 5475 cat conftest.err >&5 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); } && { 5478 test -z "$ac_cxx_werror_flag" || 5479 test ! -s conftest.err 5480 } && test -s conftest.$ac_objext; then 5481 ac_cv_prog_cxx_g=yes 5482else 5483 echo "$as_me: failed program was:" >&5 5484sed 's/^/| /' conftest.$ac_ext >&5 5485 5486 CXXFLAGS="" 5487 cat >conftest.$ac_ext <<_ACEOF 5488/* confdefs.h. */ 5489_ACEOF 5490cat confdefs.h >>conftest.$ac_ext 5491cat >>conftest.$ac_ext <<_ACEOF 5492/* end confdefs.h. */ 5493 5494int 5495main () 5496{ 5497 5498 ; 5499 return 0; 5500} 5501_ACEOF 5502rm -f conftest.$ac_objext 5503if { (ac_try="$ac_compile" 5504case "(($ac_try" in 5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5506 *) ac_try_echo=$ac_try;; 5507esac 5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5509 (eval "$ac_compile") 2>conftest.er1 5510 ac_status=$? 5511 grep -v '^ *+' conftest.er1 >conftest.err 5512 rm -f conftest.er1 5513 cat conftest.err >&5 5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5515 (exit $ac_status); } && { 5516 test -z "$ac_cxx_werror_flag" || 5517 test ! -s conftest.err 5518 } && test -s conftest.$ac_objext; then 5519 : 5520else 5521 echo "$as_me: failed program was:" >&5 5522sed 's/^/| /' conftest.$ac_ext >&5 5523 5524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5525 CXXFLAGS="-g" 5526 cat >conftest.$ac_ext <<_ACEOF 5527/* confdefs.h. */ 5528_ACEOF 5529cat confdefs.h >>conftest.$ac_ext 5530cat >>conftest.$ac_ext <<_ACEOF 5531/* end confdefs.h. */ 5532 5533int 5534main () 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541rm -f conftest.$ac_objext 5542if { (ac_try="$ac_compile" 5543case "(($ac_try" in 5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5545 *) ac_try_echo=$ac_try;; 5546esac 5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5548 (eval "$ac_compile") 2>conftest.er1 5549 ac_status=$? 5550 grep -v '^ *+' conftest.er1 >conftest.err 5551 rm -f conftest.er1 5552 cat conftest.err >&5 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); } && { 5555 test -z "$ac_cxx_werror_flag" || 5556 test ! -s conftest.err 5557 } && test -s conftest.$ac_objext; then 5558 ac_cv_prog_cxx_g=yes 5559else 5560 echo "$as_me: failed program was:" >&5 5561sed 's/^/| /' conftest.$ac_ext >&5 5562 5563 5564fi 5565 5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5567fi 5568 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570fi 5571 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5574fi 5575{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5576echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5577if test "$ac_test_CXXFLAGS" = set; then 5578 CXXFLAGS=$ac_save_CXXFLAGS 5579elif test $ac_cv_prog_cxx_g = yes; then 5580 if test "$GXX" = yes; then 5581 CXXFLAGS="-g -O2" 5582 else 5583 CXXFLAGS="-g" 5584 fi 5585else 5586 if test "$GXX" = yes; then 5587 CXXFLAGS="-O2" 5588 else 5589 CXXFLAGS= 5590 fi 5591fi 5592ac_ext=cpp 5593ac_cpp='$CXXCPP $CPPFLAGS' 5594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5597 5598depcc="$CXX" am_compiler_list= 5599 5600{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5601echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5602if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5603 echo $ECHO_N "(cached) $ECHO_C" >&6 5604else 5605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5606 # We make a subdir and do the tests there. Otherwise we can end up 5607 # making bogus files that we don't know about and never remove. For 5608 # instance it was reported that on HP-UX the gcc test will end up 5609 # making a dummy file named `D' -- because `-MD' means `put the output 5610 # in D'. 5611 mkdir conftest.dir 5612 # Copy depcomp to subdir because otherwise we won't find it if we're 5613 # using a relative directory. 5614 cp "$am_depcomp" conftest.dir 5615 cd conftest.dir 5616 # We will build objects and dependencies in a subdirectory because 5617 # it helps to detect inapplicable dependency modes. For instance 5618 # both Tru64's cc and ICC support -MD to output dependencies as a 5619 # side effect of compilation, but ICC will put the dependencies in 5620 # the current directory while Tru64 will put them in the object 5621 # directory. 5622 mkdir sub 5623 5624 am_cv_CXX_dependencies_compiler_type=none 5625 if test "$am_compiler_list" = ""; then 5626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5627 fi 5628 for depmode in $am_compiler_list; do 5629 # Setup a source with many dependencies, because some compilers 5630 # like to wrap large dependency lists on column 80 (with \), and 5631 # we should not choose a depcomp mode which is confused by this. 5632 # 5633 # We need to recreate these files for each test, as the compiler may 5634 # overwrite some of them when testing with obscure command lines. 5635 # This happens at least with the AIX C compiler. 5636 : > sub/conftest.c 5637 for i in 1 2 3 4 5 6; do 5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5640 # Solaris 8's {/usr,}/bin/sh. 5641 touch sub/conftst$i.h 5642 done 5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5644 5645 case $depmode in 5646 nosideeffect) 5647 # after this tag, mechanisms are not by side-effect, so they'll 5648 # only be used when explicitly requested 5649 if test "x$enable_dependency_tracking" = xyes; then 5650 continue 5651 else 5652 break 5653 fi 5654 ;; 5655 none) break ;; 5656 esac 5657 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5658 # mode. It turns out that the SunPro C++ compiler does not properly 5659 # handle `-M -o', and we need to detect this. 5660 if depmode=$depmode \ 5661 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5663 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5664 >/dev/null 2>conftest.err && 5665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5666 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5668 # icc doesn't choke on unknown options, it will just issue warnings 5669 # or remarks (even with -Werror). So we grep stderr for any message 5670 # that says an option was ignored or not supported. 5671 # When given -MP, icc 7.0 and 7.1 complain thusly: 5672 # icc: Command line warning: ignoring option '-M'; no argument required 5673 # The diagnosis changed in icc 8.0: 5674 # icc: Command line remark: option '-MP' not supported 5675 if (grep 'ignoring option' conftest.err || 5676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5677 am_cv_CXX_dependencies_compiler_type=$depmode 5678 break 5679 fi 5680 fi 5681 done 5682 5683 cd .. 5684 rm -rf conftest.dir 5685else 5686 am_cv_CXX_dependencies_compiler_type=none 5687fi 5688 5689fi 5690{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5691echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5692CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5693 5694 5695 5696if 5697 test "x$enable_dependency_tracking" != xno \ 5698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5699 am__fastdepCXX_TRUE= 5700 am__fastdepCXX_FALSE='#' 5701else 5702 am__fastdepCXX_TRUE='#' 5703 am__fastdepCXX_FALSE= 5704fi 5705 5706 5707 5708 5709if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5710 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5711 (test "X$CXX" != "Xg++"))) ; then 5712 ac_ext=cpp 5713ac_cpp='$CXXCPP $CPPFLAGS' 5714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5717{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5718echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5719if test -z "$CXXCPP"; then 5720 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5721 echo $ECHO_N "(cached) $ECHO_C" >&6 5722else 5723 # Double quotes because CXXCPP needs to be expanded 5724 for CXXCPP in "$CXX -E" "/lib/cpp" 5725 do 5726 ac_preproc_ok=false 5727for ac_cxx_preproc_warn_flag in '' yes 5728do 5729 # Use a header file that comes with gcc, so configuring glibc 5730 # with a fresh cross-compiler works. 5731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5732 # <limits.h> exists even on freestanding compilers. 5733 # On the NeXT, cc -E runs the code through the compiler's parser, 5734 # not just through cpp. "Syntax error" is here to catch this case. 5735 cat >conftest.$ac_ext <<_ACEOF 5736/* confdefs.h. */ 5737_ACEOF 5738cat confdefs.h >>conftest.$ac_ext 5739cat >>conftest.$ac_ext <<_ACEOF 5740/* end confdefs.h. */ 5741#ifdef __STDC__ 5742# include <limits.h> 5743#else 5744# include <assert.h> 5745#endif 5746 Syntax error 5747_ACEOF 5748if { (ac_try="$ac_cpp conftest.$ac_ext" 5749case "(($ac_try" in 5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5751 *) ac_try_echo=$ac_try;; 5752esac 5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5755 ac_status=$? 5756 grep -v '^ *+' conftest.er1 >conftest.err 5757 rm -f conftest.er1 5758 cat conftest.err >&5 5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); } >/dev/null && { 5761 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5762 test ! -s conftest.err 5763 }; then 5764 : 5765else 5766 echo "$as_me: failed program was:" >&5 5767sed 's/^/| /' conftest.$ac_ext >&5 5768 5769 # Broken: fails on valid input. 5770continue 5771fi 5772 5773rm -f conftest.err conftest.$ac_ext 5774 5775 # OK, works on sane cases. Now check whether nonexistent headers 5776 # can be detected and how. 5777 cat >conftest.$ac_ext <<_ACEOF 5778/* confdefs.h. */ 5779_ACEOF 5780cat confdefs.h >>conftest.$ac_ext 5781cat >>conftest.$ac_ext <<_ACEOF 5782/* end confdefs.h. */ 5783#include <ac_nonexistent.h> 5784_ACEOF 5785if { (ac_try="$ac_cpp conftest.$ac_ext" 5786case "(($ac_try" in 5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5788 *) ac_try_echo=$ac_try;; 5789esac 5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5792 ac_status=$? 5793 grep -v '^ *+' conftest.er1 >conftest.err 5794 rm -f conftest.er1 5795 cat conftest.err >&5 5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5797 (exit $ac_status); } >/dev/null && { 5798 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5799 test ! -s conftest.err 5800 }; then 5801 # Broken: success on invalid input. 5802continue 5803else 5804 echo "$as_me: failed program was:" >&5 5805sed 's/^/| /' conftest.$ac_ext >&5 5806 5807 # Passes both tests. 5808ac_preproc_ok=: 5809break 5810fi 5811 5812rm -f conftest.err conftest.$ac_ext 5813 5814done 5815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5816rm -f conftest.err conftest.$ac_ext 5817if $ac_preproc_ok; then 5818 break 5819fi 5820 5821 done 5822 ac_cv_prog_CXXCPP=$CXXCPP 5823 5824fi 5825 CXXCPP=$ac_cv_prog_CXXCPP 5826else 5827 ac_cv_prog_CXXCPP=$CXXCPP 5828fi 5829{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5830echo "${ECHO_T}$CXXCPP" >&6; } 5831ac_preproc_ok=false 5832for ac_cxx_preproc_warn_flag in '' yes 5833do 5834 # Use a header file that comes with gcc, so configuring glibc 5835 # with a fresh cross-compiler works. 5836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5837 # <limits.h> exists even on freestanding compilers. 5838 # On the NeXT, cc -E runs the code through the compiler's parser, 5839 # not just through cpp. "Syntax error" is here to catch this case. 5840 cat >conftest.$ac_ext <<_ACEOF 5841/* confdefs.h. */ 5842_ACEOF 5843cat confdefs.h >>conftest.$ac_ext 5844cat >>conftest.$ac_ext <<_ACEOF 5845/* end confdefs.h. */ 5846#ifdef __STDC__ 5847# include <limits.h> 5848#else 5849# include <assert.h> 5850#endif 5851 Syntax error 5852_ACEOF 5853if { (ac_try="$ac_cpp conftest.$ac_ext" 5854case "(($ac_try" in 5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5856 *) ac_try_echo=$ac_try;; 5857esac 5858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5860 ac_status=$? 5861 grep -v '^ *+' conftest.er1 >conftest.err 5862 rm -f conftest.er1 5863 cat conftest.err >&5 5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5865 (exit $ac_status); } >/dev/null && { 5866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5867 test ! -s conftest.err 5868 }; then 5869 : 5870else 5871 echo "$as_me: failed program was:" >&5 5872sed 's/^/| /' conftest.$ac_ext >&5 5873 5874 # Broken: fails on valid input. 5875continue 5876fi 5877 5878rm -f conftest.err conftest.$ac_ext 5879 5880 # OK, works on sane cases. Now check whether nonexistent headers 5881 # can be detected and how. 5882 cat >conftest.$ac_ext <<_ACEOF 5883/* confdefs.h. */ 5884_ACEOF 5885cat confdefs.h >>conftest.$ac_ext 5886cat >>conftest.$ac_ext <<_ACEOF 5887/* end confdefs.h. */ 5888#include <ac_nonexistent.h> 5889_ACEOF 5890if { (ac_try="$ac_cpp conftest.$ac_ext" 5891case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5897 ac_status=$? 5898 grep -v '^ *+' conftest.er1 >conftest.err 5899 rm -f conftest.er1 5900 cat conftest.err >&5 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); } >/dev/null && { 5903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5904 test ! -s conftest.err 5905 }; then 5906 # Broken: success on invalid input. 5907continue 5908else 5909 echo "$as_me: failed program was:" >&5 5910sed 's/^/| /' conftest.$ac_ext >&5 5911 5912 # Passes both tests. 5913ac_preproc_ok=: 5914break 5915fi 5916 5917rm -f conftest.err conftest.$ac_ext 5918 5919done 5920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5921rm -f conftest.err conftest.$ac_ext 5922if $ac_preproc_ok; then 5923 : 5924else 5925 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5926See \`config.log' for more details." >&5 5927echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5928See \`config.log' for more details." >&2;} 5929 { (exit 1); exit 1; }; } 5930fi 5931 5932ac_ext=cpp 5933ac_cpp='$CXXCPP $CPPFLAGS' 5934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5937 5938fi 5939 5940 5941ac_ext=f 5942ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5943ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5944ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5945if test -n "$ac_tool_prefix"; then 5946 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 5947 do 5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5949set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5950{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5952if test "${ac_cv_prog_F77+set}" = set; then 5953 echo $ECHO_N "(cached) $ECHO_C" >&6 5954else 5955 if test -n "$F77"; then 5956 ac_cv_prog_F77="$F77" # Let the user override the test. 5957else 5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959for as_dir in $PATH 5960do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5965 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969done 5970done 5971IFS=$as_save_IFS 5972 5973fi 5974fi 5975F77=$ac_cv_prog_F77 5976if test -n "$F77"; then 5977 { echo "$as_me:$LINENO: result: $F77" >&5 5978echo "${ECHO_T}$F77" >&6; } 5979else 5980 { echo "$as_me:$LINENO: result: no" >&5 5981echo "${ECHO_T}no" >&6; } 5982fi 5983 5984 5985 test -n "$F77" && break 5986 done 5987fi 5988if test -z "$F77"; then 5989 ac_ct_F77=$F77 5990 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 5991do 5992 # Extract the first word of "$ac_prog", so it can be a program name with args. 5993set dummy $ac_prog; ac_word=$2 5994{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5996if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5997 echo $ECHO_N "(cached) $ECHO_C" >&6 5998else 5999 if test -n "$ac_ct_F77"; then 6000 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6001else 6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6003for as_dir in $PATH 6004do 6005 IFS=$as_save_IFS 6006 test -z "$as_dir" && as_dir=. 6007 for ac_exec_ext in '' $ac_executable_extensions; do 6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6009 ac_cv_prog_ac_ct_F77="$ac_prog" 6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6011 break 2 6012 fi 6013done 6014done 6015IFS=$as_save_IFS 6016 6017fi 6018fi 6019ac_ct_F77=$ac_cv_prog_ac_ct_F77 6020if test -n "$ac_ct_F77"; then 6021 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6022echo "${ECHO_T}$ac_ct_F77" >&6; } 6023else 6024 { echo "$as_me:$LINENO: result: no" >&5 6025echo "${ECHO_T}no" >&6; } 6026fi 6027 6028 6029 test -n "$ac_ct_F77" && break 6030done 6031 6032 if test "x$ac_ct_F77" = x; then 6033 F77="" 6034 else 6035 case $cross_compiling:$ac_tool_warned in 6036yes:) 6037{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6038whose name does not start with the host triplet. If you think this 6039configuration is useful to you, please write to autoconf@gnu.org." >&5 6040echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6041whose name does not start with the host triplet. If you think this 6042configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6043ac_tool_warned=yes ;; 6044esac 6045 F77=$ac_ct_F77 6046 fi 6047fi 6048 6049 6050# Provide some information about the compiler. 6051echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6052ac_compiler=`set X $ac_compile; echo $2` 6053{ (ac_try="$ac_compiler --version >&5" 6054case "(($ac_try" in 6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6056 *) ac_try_echo=$ac_try;; 6057esac 6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6059 (eval "$ac_compiler --version >&5") 2>&5 6060 ac_status=$? 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } 6063{ (ac_try="$ac_compiler -v >&5" 6064case "(($ac_try" in 6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6066 *) ac_try_echo=$ac_try;; 6067esac 6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6069 (eval "$ac_compiler -v >&5") 2>&5 6070 ac_status=$? 6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6072 (exit $ac_status); } 6073{ (ac_try="$ac_compiler -V >&5" 6074case "(($ac_try" in 6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6076 *) ac_try_echo=$ac_try;; 6077esac 6078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6079 (eval "$ac_compiler -V >&5") 2>&5 6080 ac_status=$? 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } 6083rm -f a.out 6084 6085# If we don't use `.F' as extension, the preprocessor is not run on the 6086# input file. (Note that this only needs to work for GNU compilers.) 6087ac_save_ext=$ac_ext 6088ac_ext=F 6089{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6090echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6091if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 cat >conftest.$ac_ext <<_ACEOF 6095 program main 6096#ifndef __GNUC__ 6097 choke me 6098#endif 6099 6100 end 6101_ACEOF 6102rm -f conftest.$ac_objext 6103if { (ac_try="$ac_compile" 6104case "(($ac_try" in 6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6106 *) ac_try_echo=$ac_try;; 6107esac 6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6109 (eval "$ac_compile") 2>conftest.er1 6110 ac_status=$? 6111 grep -v '^ *+' conftest.er1 >conftest.err 6112 rm -f conftest.er1 6113 cat conftest.err >&5 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } && { 6116 test -z "$ac_f77_werror_flag" || 6117 test ! -s conftest.err 6118 } && test -s conftest.$ac_objext; then 6119 ac_compiler_gnu=yes 6120else 6121 echo "$as_me: failed program was:" >&5 6122sed 's/^/| /' conftest.$ac_ext >&5 6123 6124 ac_compiler_gnu=no 6125fi 6126 6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6128ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6129 6130fi 6131{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6132echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6133ac_ext=$ac_save_ext 6134ac_test_FFLAGS=${FFLAGS+set} 6135ac_save_FFLAGS=$FFLAGS 6136FFLAGS= 6137{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6138echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6139if test "${ac_cv_prog_f77_g+set}" = set; then 6140 echo $ECHO_N "(cached) $ECHO_C" >&6 6141else 6142 FFLAGS=-g 6143cat >conftest.$ac_ext <<_ACEOF 6144 program main 6145 6146 end 6147_ACEOF 6148rm -f conftest.$ac_objext 6149if { (ac_try="$ac_compile" 6150case "(($ac_try" in 6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6152 *) ac_try_echo=$ac_try;; 6153esac 6154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6155 (eval "$ac_compile") 2>conftest.er1 6156 ac_status=$? 6157 grep -v '^ *+' conftest.er1 >conftest.err 6158 rm -f conftest.er1 6159 cat conftest.err >&5 6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 (exit $ac_status); } && { 6162 test -z "$ac_f77_werror_flag" || 6163 test ! -s conftest.err 6164 } && test -s conftest.$ac_objext; then 6165 ac_cv_prog_f77_g=yes 6166else 6167 echo "$as_me: failed program was:" >&5 6168sed 's/^/| /' conftest.$ac_ext >&5 6169 6170 ac_cv_prog_f77_g=no 6171fi 6172 6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6174 6175fi 6176{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6177echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6178if test "$ac_test_FFLAGS" = set; then 6179 FFLAGS=$ac_save_FFLAGS 6180elif test $ac_cv_prog_f77_g = yes; then 6181 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6182 FFLAGS="-g -O2" 6183 else 6184 FFLAGS="-g" 6185 fi 6186else 6187 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6188 FFLAGS="-O2" 6189 else 6190 FFLAGS= 6191 fi 6192fi 6193 6194G77=`test $ac_compiler_gnu = yes && echo yes` 6195ac_ext=c 6196ac_cpp='$CPP $CPPFLAGS' 6197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6199ac_compiler_gnu=$ac_cv_c_compiler_gnu 6200 6201 6202 6203# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6204 6205# find the maximum length of command line arguments 6206{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6207echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6208if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6209 echo $ECHO_N "(cached) $ECHO_C" >&6 6210else 6211 i=0 6212 teststring="ABCD" 6213 6214 case $build_os in 6215 msdosdjgpp*) 6216 # On DJGPP, this test can blow up pretty badly due to problems in libc 6217 # (any single argument exceeding 2000 bytes causes a buffer overrun 6218 # during glob expansion). Even if it were fixed, the result of this 6219 # check would be larger than it should be. 6220 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6221 ;; 6222 6223 gnu*) 6224 # Under GNU Hurd, this test is not required because there is 6225 # no limit to the length of command line arguments. 6226 # Libtool will interpret -1 as no limit whatsoever 6227 lt_cv_sys_max_cmd_len=-1; 6228 ;; 6229 6230 cygwin* | mingw*) 6231 # On Win9x/ME, this test blows up -- it succeeds, but takes 6232 # about 5 minutes as the teststring grows exponentially. 6233 # Worse, since 9x/ME are not pre-emptively multitasking, 6234 # you end up with a "frozen" computer, even though with patience 6235 # the test eventually succeeds (with a max line length of 256k). 6236 # Instead, let's just punt: use the minimum linelength reported by 6237 # all of the supported platforms: 8192 (on NT/2K/XP). 6238 lt_cv_sys_max_cmd_len=8192; 6239 ;; 6240 6241 amigaos*) 6242 # On AmigaOS with pdksh, this test takes hours, literally. 6243 # So we just punt and use a minimum line length of 8192. 6244 lt_cv_sys_max_cmd_len=8192; 6245 ;; 6246 6247 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6248 # This has been around since 386BSD, at least. Likely further. 6249 if test -x /sbin/sysctl; then 6250 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6251 elif test -x /usr/sbin/sysctl; then 6252 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6253 else 6254 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6255 fi 6256 # And add a safety zone 6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6259 ;; 6260 6261 interix*) 6262 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6263 lt_cv_sys_max_cmd_len=196608 6264 ;; 6265 6266 osf*) 6267 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6268 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6269 # nice to cause kernel panics so lets avoid the loop below. 6270 # First set a reasonable default. 6271 lt_cv_sys_max_cmd_len=16384 6272 # 6273 if test -x /sbin/sysconfig; then 6274 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6275 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6276 esac 6277 fi 6278 ;; 6279 sco3.2v5*) 6280 lt_cv_sys_max_cmd_len=102400 6281 ;; 6282 sysv5* | sco5v6* | sysv4.2uw2*) 6283 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6284 if test -n "$kargmax"; then 6285 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6286 else 6287 lt_cv_sys_max_cmd_len=32768 6288 fi 6289 ;; 6290 *) 6291 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6292 if test -n "$lt_cv_sys_max_cmd_len"; then 6293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6295 else 6296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6297 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6298 = "XX$teststring") >/dev/null 2>&1 && 6299 new_result=`expr "X$teststring" : ".*" 2>&1` && 6300 lt_cv_sys_max_cmd_len=$new_result && 6301 test $i != 17 # 1/2 MB should be enough 6302 do 6303 i=`expr $i + 1` 6304 teststring=$teststring$teststring 6305 done 6306 teststring= 6307 # Add a significant safety factor because C++ compilers can tack on massive 6308 # amounts of additional arguments before passing them to the linker. 6309 # It appears as though 1/2 is a usable value. 6310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6311 fi 6312 ;; 6313 esac 6314 6315fi 6316 6317if test -n $lt_cv_sys_max_cmd_len ; then 6318 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6319echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6320else 6321 { echo "$as_me:$LINENO: result: none" >&5 6322echo "${ECHO_T}none" >&6; } 6323fi 6324 6325 6326 6327 6328 6329# Check for command to grab the raw symbol name followed by C symbol from nm. 6330{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6331echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6332if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6333 echo $ECHO_N "(cached) $ECHO_C" >&6 6334else 6335 6336# These are sane defaults that work on at least a few old systems. 6337# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6338 6339# Character class describing NM global symbol codes. 6340symcode='[BCDEGRST]' 6341 6342# Regexp to match symbols that can be accessed directly from C. 6343sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6344 6345# Transform an extracted symbol line into a proper C declaration 6346lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6347 6348# Transform an extracted symbol line into symbol name and symbol address 6349lt_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'" 6350 6351# Define system-specific variables. 6352case $host_os in 6353aix*) 6354 symcode='[BCDT]' 6355 ;; 6356cygwin* | mingw* | pw32*) 6357 symcode='[ABCDGISTW]' 6358 ;; 6359hpux*) # Its linker distinguishes data from code symbols 6360 if test "$host_cpu" = ia64; then 6361 symcode='[ABCDEGRST]' 6362 fi 6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6364 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'" 6365 ;; 6366linux* | k*bsd*-gnu) 6367 if test "$host_cpu" = ia64; then 6368 symcode='[ABCDGIRSTW]' 6369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6370 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'" 6371 fi 6372 ;; 6373irix* | nonstopux*) 6374 symcode='[BCDEGRST]' 6375 ;; 6376osf*) 6377 symcode='[BCDEGQRST]' 6378 ;; 6379solaris*) 6380 symcode='[BDRT]' 6381 ;; 6382sco3.2v5*) 6383 symcode='[DT]' 6384 ;; 6385sysv4.2uw2*) 6386 symcode='[DT]' 6387 ;; 6388sysv5* | sco5v6* | unixware* | OpenUNIX*) 6389 symcode='[ABDT]' 6390 ;; 6391sysv4) 6392 symcode='[DFNSTU]' 6393 ;; 6394esac 6395 6396# Handle CRLF in mingw tool chain 6397opt_cr= 6398case $build_os in 6399mingw*) 6400 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6401 ;; 6402esac 6403 6404# If we're using GNU nm, then use its standard symbol codes. 6405case `$NM -V 2>&1` in 6406*GNU* | *'with BFD'*) 6407 symcode='[ABCDGIRSTW]' ;; 6408esac 6409 6410# Try without a prefix undercore, then with it. 6411for ac_symprfx in "" "_"; do 6412 6413 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6414 symxfrm="\\1 $ac_symprfx\\2 \\2" 6415 6416 # Write the raw and C identifiers. 6417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6418 6419 # Check to see that the pipe works correctly. 6420 pipe_works=no 6421 6422 rm -f conftest* 6423 cat > conftest.$ac_ext <<EOF 6424#ifdef __cplusplus 6425extern "C" { 6426#endif 6427char nm_test_var; 6428void nm_test_func(){} 6429#ifdef __cplusplus 6430} 6431#endif 6432int main(){nm_test_var='a';nm_test_func();return(0);} 6433EOF 6434 6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6436 (eval $ac_compile) 2>&5 6437 ac_status=$? 6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6439 (exit $ac_status); }; then 6440 # Now try to grab the symbols. 6441 nlist=conftest.nm 6442 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6444 ac_status=$? 6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6446 (exit $ac_status); } && test -s "$nlist"; then 6447 # Try sorting and uniquifying the output. 6448 if sort "$nlist" | uniq > "$nlist"T; then 6449 mv -f "$nlist"T "$nlist" 6450 else 6451 rm -f "$nlist"T 6452 fi 6453 6454 # Make sure that we snagged all the symbols we need. 6455 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6456 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6457 cat <<EOF > conftest.$ac_ext 6458#ifdef __cplusplus 6459extern "C" { 6460#endif 6461 6462EOF 6463 # Now generate the symbol file. 6464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6465 6466 cat <<EOF >> conftest.$ac_ext 6467#if defined (__STDC__) && __STDC__ 6468# define lt_ptr_t void * 6469#else 6470# define lt_ptr_t char * 6471# define const 6472#endif 6473 6474/* The mapping between symbol names and symbols. */ 6475const struct { 6476 const char *name; 6477 lt_ptr_t address; 6478} 6479lt_preloaded_symbols[] = 6480{ 6481EOF 6482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6483 cat <<\EOF >> conftest.$ac_ext 6484 {0, (lt_ptr_t) 0} 6485}; 6486 6487#ifdef __cplusplus 6488} 6489#endif 6490EOF 6491 # Now try linking the two files. 6492 mv conftest.$ac_objext conftstm.$ac_objext 6493 lt_save_LIBS="$LIBS" 6494 lt_save_CFLAGS="$CFLAGS" 6495 LIBS="conftstm.$ac_objext" 6496 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6498 (eval $ac_link) 2>&5 6499 ac_status=$? 6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6502 pipe_works=yes 6503 fi 6504 LIBS="$lt_save_LIBS" 6505 CFLAGS="$lt_save_CFLAGS" 6506 else 6507 echo "cannot find nm_test_func in $nlist" >&5 6508 fi 6509 else 6510 echo "cannot find nm_test_var in $nlist" >&5 6511 fi 6512 else 6513 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6514 fi 6515 else 6516 echo "$progname: failed program was:" >&5 6517 cat conftest.$ac_ext >&5 6518 fi 6519 rm -f conftest* conftst* 6520 6521 # Do not use the global_symbol_pipe unless it works. 6522 if test "$pipe_works" = yes; then 6523 break 6524 else 6525 lt_cv_sys_global_symbol_pipe= 6526 fi 6527done 6528 6529fi 6530 6531if test -z "$lt_cv_sys_global_symbol_pipe"; then 6532 lt_cv_sys_global_symbol_to_cdecl= 6533fi 6534if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6535 { echo "$as_me:$LINENO: result: failed" >&5 6536echo "${ECHO_T}failed" >&6; } 6537else 6538 { echo "$as_me:$LINENO: result: ok" >&5 6539echo "${ECHO_T}ok" >&6; } 6540fi 6541 6542{ echo "$as_me:$LINENO: checking for objdir" >&5 6543echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6544if test "${lt_cv_objdir+set}" = set; then 6545 echo $ECHO_N "(cached) $ECHO_C" >&6 6546else 6547 rm -f .libs 2>/dev/null 6548mkdir .libs 2>/dev/null 6549if test -d .libs; then 6550 lt_cv_objdir=.libs 6551else 6552 # MS-DOS does not allow filenames that begin with a dot. 6553 lt_cv_objdir=_libs 6554fi 6555rmdir .libs 2>/dev/null 6556fi 6557{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6558echo "${ECHO_T}$lt_cv_objdir" >&6; } 6559objdir=$lt_cv_objdir 6560 6561 6562 6563 6564 6565case $host_os in 6566aix3*) 6567 # AIX sometimes has problems with the GCC collect2 program. For some 6568 # reason, if we set the COLLECT_NAMES environment variable, the problems 6569 # vanish in a puff of smoke. 6570 if test "X${COLLECT_NAMES+set}" != Xset; then 6571 COLLECT_NAMES= 6572 export COLLECT_NAMES 6573 fi 6574 ;; 6575esac 6576 6577# Sed substitution that helps us do robust quoting. It backslashifies 6578# metacharacters that are still active within double-quoted strings. 6579Xsed='sed -e 1s/^X//' 6580sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6581 6582# Same as above, but do not quote variable references. 6583double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6584 6585# Sed substitution to delay expansion of an escaped shell variable in a 6586# double_quote_subst'ed string. 6587delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6588 6589# Sed substitution to avoid accidental globbing in evaled expressions 6590no_glob_subst='s/\*/\\\*/g' 6591 6592# Constants: 6593rm="rm -f" 6594 6595# Global variables: 6596default_ofile=libtool 6597can_build_shared=yes 6598 6599# All known linkers require a `.a' archive for static linking (except MSVC, 6600# which needs '.lib'). 6601libext=a 6602ltmain="$ac_aux_dir/ltmain.sh" 6603ofile="$default_ofile" 6604with_gnu_ld="$lt_cv_prog_gnu_ld" 6605 6606if test -n "$ac_tool_prefix"; then 6607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6608set dummy ${ac_tool_prefix}ar; ac_word=$2 6609{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6611if test "${ac_cv_prog_AR+set}" = set; then 6612 echo $ECHO_N "(cached) $ECHO_C" >&6 6613else 6614 if test -n "$AR"; then 6615 ac_cv_prog_AR="$AR" # Let the user override the test. 6616else 6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6618for as_dir in $PATH 6619do 6620 IFS=$as_save_IFS 6621 test -z "$as_dir" && as_dir=. 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6624 ac_cv_prog_AR="${ac_tool_prefix}ar" 6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6626 break 2 6627 fi 6628done 6629done 6630IFS=$as_save_IFS 6631 6632fi 6633fi 6634AR=$ac_cv_prog_AR 6635if test -n "$AR"; then 6636 { echo "$as_me:$LINENO: result: $AR" >&5 6637echo "${ECHO_T}$AR" >&6; } 6638else 6639 { echo "$as_me:$LINENO: result: no" >&5 6640echo "${ECHO_T}no" >&6; } 6641fi 6642 6643 6644fi 6645if test -z "$ac_cv_prog_AR"; then 6646 ac_ct_AR=$AR 6647 # Extract the first word of "ar", so it can be a program name with args. 6648set dummy ar; ac_word=$2 6649{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653else 6654 if test -n "$ac_ct_AR"; then 6655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6656else 6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6664 ac_cv_prog_ac_ct_AR="ar" 6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668done 6669done 6670IFS=$as_save_IFS 6671 6672fi 6673fi 6674ac_ct_AR=$ac_cv_prog_ac_ct_AR 6675if test -n "$ac_ct_AR"; then 6676 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6677echo "${ECHO_T}$ac_ct_AR" >&6; } 6678else 6679 { echo "$as_me:$LINENO: result: no" >&5 6680echo "${ECHO_T}no" >&6; } 6681fi 6682 6683 if test "x$ac_ct_AR" = x; then 6684 AR="false" 6685 else 6686 case $cross_compiling:$ac_tool_warned in 6687yes:) 6688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6689whose name does not start with the host triplet. If you think this 6690configuration is useful to you, please write to autoconf@gnu.org." >&5 6691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6692whose name does not start with the host triplet. If you think this 6693configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6694ac_tool_warned=yes ;; 6695esac 6696 AR=$ac_ct_AR 6697 fi 6698else 6699 AR="$ac_cv_prog_AR" 6700fi 6701 6702if test -n "$ac_tool_prefix"; then 6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6704set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6705{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6707if test "${ac_cv_prog_RANLIB+set}" = set; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 if test -n "$RANLIB"; then 6711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6712else 6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6714for as_dir in $PATH 6715do 6716 IFS=$as_save_IFS 6717 test -z "$as_dir" && as_dir=. 6718 for ac_exec_ext in '' $ac_executable_extensions; do 6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6722 break 2 6723 fi 6724done 6725done 6726IFS=$as_save_IFS 6727 6728fi 6729fi 6730RANLIB=$ac_cv_prog_RANLIB 6731if test -n "$RANLIB"; then 6732 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6733echo "${ECHO_T}$RANLIB" >&6; } 6734else 6735 { echo "$as_me:$LINENO: result: no" >&5 6736echo "${ECHO_T}no" >&6; } 6737fi 6738 6739 6740fi 6741if test -z "$ac_cv_prog_RANLIB"; then 6742 ac_ct_RANLIB=$RANLIB 6743 # Extract the first word of "ranlib", so it can be a program name with args. 6744set dummy ranlib; ac_word=$2 6745{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6747if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6748 echo $ECHO_N "(cached) $ECHO_C" >&6 6749else 6750 if test -n "$ac_ct_RANLIB"; then 6751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6752else 6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6754for as_dir in $PATH 6755do 6756 IFS=$as_save_IFS 6757 test -z "$as_dir" && as_dir=. 6758 for ac_exec_ext in '' $ac_executable_extensions; do 6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6760 ac_cv_prog_ac_ct_RANLIB="ranlib" 6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6762 break 2 6763 fi 6764done 6765done 6766IFS=$as_save_IFS 6767 6768fi 6769fi 6770ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6771if test -n "$ac_ct_RANLIB"; then 6772 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6773echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6774else 6775 { echo "$as_me:$LINENO: result: no" >&5 6776echo "${ECHO_T}no" >&6; } 6777fi 6778 6779 if test "x$ac_ct_RANLIB" = x; then 6780 RANLIB=":" 6781 else 6782 case $cross_compiling:$ac_tool_warned in 6783yes:) 6784{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6785whose name does not start with the host triplet. If you think this 6786configuration is useful to you, please write to autoconf@gnu.org." >&5 6787echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6788whose name does not start with the host triplet. If you think this 6789configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6790ac_tool_warned=yes ;; 6791esac 6792 RANLIB=$ac_ct_RANLIB 6793 fi 6794else 6795 RANLIB="$ac_cv_prog_RANLIB" 6796fi 6797 6798if test -n "$ac_tool_prefix"; then 6799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6800set dummy ${ac_tool_prefix}strip; ac_word=$2 6801{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6803if test "${ac_cv_prog_STRIP+set}" = set; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 if test -n "$STRIP"; then 6807 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6816 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826STRIP=$ac_cv_prog_STRIP 6827if test -n "$STRIP"; then 6828 { echo "$as_me:$LINENO: result: $STRIP" >&5 6829echo "${ECHO_T}$STRIP" >&6; } 6830else 6831 { echo "$as_me:$LINENO: result: no" >&5 6832echo "${ECHO_T}no" >&6; } 6833fi 6834 6835 6836fi 6837if test -z "$ac_cv_prog_STRIP"; then 6838 ac_ct_STRIP=$STRIP 6839 # Extract the first word of "strip", so it can be a program name with args. 6840set dummy strip; ac_word=$2 6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6843if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6844 echo $ECHO_N "(cached) $ECHO_C" >&6 6845else 6846 if test -n "$ac_ct_STRIP"; then 6847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6848else 6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850for as_dir in $PATH 6851do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6856 ac_cv_prog_ac_ct_STRIP="strip" 6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860done 6861done 6862IFS=$as_save_IFS 6863 6864fi 6865fi 6866ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6867if test -n "$ac_ct_STRIP"; then 6868 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6869echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6870else 6871 { echo "$as_me:$LINENO: result: no" >&5 6872echo "${ECHO_T}no" >&6; } 6873fi 6874 6875 if test "x$ac_ct_STRIP" = x; then 6876 STRIP=":" 6877 else 6878 case $cross_compiling:$ac_tool_warned in 6879yes:) 6880{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6881whose name does not start with the host triplet. If you think this 6882configuration is useful to you, please write to autoconf@gnu.org." >&5 6883echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6884whose name does not start with the host triplet. If you think this 6885configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6886ac_tool_warned=yes ;; 6887esac 6888 STRIP=$ac_ct_STRIP 6889 fi 6890else 6891 STRIP="$ac_cv_prog_STRIP" 6892fi 6893 6894 6895old_CC="$CC" 6896old_CFLAGS="$CFLAGS" 6897 6898# Set sane defaults for various variables 6899test -z "$AR" && AR=ar 6900test -z "$AR_FLAGS" && AR_FLAGS=cru 6901test -z "$AS" && AS=as 6902test -z "$CC" && CC=cc 6903test -z "$LTCC" && LTCC=$CC 6904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6905test -z "$DLLTOOL" && DLLTOOL=dlltool 6906test -z "$LD" && LD=ld 6907test -z "$LN_S" && LN_S="ln -s" 6908test -z "$MAGIC_CMD" && MAGIC_CMD=file 6909test -z "$NM" && NM=nm 6910test -z "$SED" && SED=sed 6911test -z "$OBJDUMP" && OBJDUMP=objdump 6912test -z "$RANLIB" && RANLIB=: 6913test -z "$STRIP" && STRIP=: 6914test -z "$ac_objext" && ac_objext=o 6915 6916# Determine commands to create old-style static archives. 6917old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6918old_postinstall_cmds='chmod 644 $oldlib' 6919old_postuninstall_cmds= 6920 6921if test -n "$RANLIB"; then 6922 case $host_os in 6923 openbsd*) 6924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6925 ;; 6926 *) 6927 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6928 ;; 6929 esac 6930 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6931fi 6932 6933for cc_temp in $compiler""; do 6934 case $cc_temp in 6935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6937 \-*) ;; 6938 *) break;; 6939 esac 6940done 6941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6942 6943 6944# Only perform the check for file, if the check method requires it 6945case $deplibs_check_method in 6946file_magic*) 6947 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6948 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6949echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6950if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6 6952else 6953 case $MAGIC_CMD in 6954[\\/*] | ?:[\\/]*) 6955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6956 ;; 6957*) 6958 lt_save_MAGIC_CMD="$MAGIC_CMD" 6959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6961 for ac_dir in $ac_dummy; do 6962 IFS="$lt_save_ifs" 6963 test -z "$ac_dir" && ac_dir=. 6964 if test -f $ac_dir/${ac_tool_prefix}file; then 6965 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6966 if test -n "$file_magic_test_file"; then 6967 case $deplibs_check_method in 6968 "file_magic "*) 6969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6972 $EGREP "$file_magic_regex" > /dev/null; then 6973 : 6974 else 6975 cat <<EOF 1>&2 6976 6977*** Warning: the command libtool uses to detect shared libraries, 6978*** $file_magic_cmd, produces output that libtool cannot recognize. 6979*** The result is that libtool may fail to recognize shared libraries 6980*** as such. This will affect the creation of libtool libraries that 6981*** depend on shared libraries, but programs linked with such libtool 6982*** libraries will work regardless of this problem. Nevertheless, you 6983*** may want to report the problem to your system manager and/or to 6984*** bug-libtool@gnu.org 6985 6986EOF 6987 fi ;; 6988 esac 6989 fi 6990 break 6991 fi 6992 done 6993 IFS="$lt_save_ifs" 6994 MAGIC_CMD="$lt_save_MAGIC_CMD" 6995 ;; 6996esac 6997fi 6998 6999MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7000if test -n "$MAGIC_CMD"; then 7001 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7002echo "${ECHO_T}$MAGIC_CMD" >&6; } 7003else 7004 { echo "$as_me:$LINENO: result: no" >&5 7005echo "${ECHO_T}no" >&6; } 7006fi 7007 7008if test -z "$lt_cv_path_MAGIC_CMD"; then 7009 if test -n "$ac_tool_prefix"; then 7010 { echo "$as_me:$LINENO: checking for file" >&5 7011echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7012if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 case $MAGIC_CMD in 7016[\\/*] | ?:[\\/]*) 7017 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7018 ;; 7019*) 7020 lt_save_MAGIC_CMD="$MAGIC_CMD" 7021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7023 for ac_dir in $ac_dummy; do 7024 IFS="$lt_save_ifs" 7025 test -z "$ac_dir" && ac_dir=. 7026 if test -f $ac_dir/file; then 7027 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7028 if test -n "$file_magic_test_file"; then 7029 case $deplibs_check_method in 7030 "file_magic "*) 7031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7034 $EGREP "$file_magic_regex" > /dev/null; then 7035 : 7036 else 7037 cat <<EOF 1>&2 7038 7039*** Warning: the command libtool uses to detect shared libraries, 7040*** $file_magic_cmd, produces output that libtool cannot recognize. 7041*** The result is that libtool may fail to recognize shared libraries 7042*** as such. This will affect the creation of libtool libraries that 7043*** depend on shared libraries, but programs linked with such libtool 7044*** libraries will work regardless of this problem. Nevertheless, you 7045*** may want to report the problem to your system manager and/or to 7046*** bug-libtool@gnu.org 7047 7048EOF 7049 fi ;; 7050 esac 7051 fi 7052 break 7053 fi 7054 done 7055 IFS="$lt_save_ifs" 7056 MAGIC_CMD="$lt_save_MAGIC_CMD" 7057 ;; 7058esac 7059fi 7060 7061MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7062if test -n "$MAGIC_CMD"; then 7063 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7064echo "${ECHO_T}$MAGIC_CMD" >&6; } 7065else 7066 { echo "$as_me:$LINENO: result: no" >&5 7067echo "${ECHO_T}no" >&6; } 7068fi 7069 7070 else 7071 MAGIC_CMD=: 7072 fi 7073fi 7074 7075 fi 7076 ;; 7077esac 7078 7079enable_dlopen=no 7080enable_win32_dll=no 7081 7082# Check whether --enable-libtool-lock was given. 7083if test "${enable_libtool_lock+set}" = set; then 7084 enableval=$enable_libtool_lock; 7085fi 7086 7087test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7088 7089 7090# Check whether --with-pic was given. 7091if test "${with_pic+set}" = set; then 7092 withval=$with_pic; pic_mode="$withval" 7093else 7094 pic_mode=default 7095fi 7096 7097test -z "$pic_mode" && pic_mode=default 7098 7099# Use C for the default configuration in the libtool script 7100tagname= 7101lt_save_CC="$CC" 7102ac_ext=c 7103ac_cpp='$CPP $CPPFLAGS' 7104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7106ac_compiler_gnu=$ac_cv_c_compiler_gnu 7107 7108 7109# Source file extension for C test sources. 7110ac_ext=c 7111 7112# Object file extension for compiled C test sources. 7113objext=o 7114objext=$objext 7115 7116# Code to be used in simple compile tests 7117lt_simple_compile_test_code="int some_variable = 0;" 7118 7119# Code to be used in simple link tests 7120lt_simple_link_test_code='int main(){return(0);}' 7121 7122 7123# If no C compiler was specified, use CC. 7124LTCC=${LTCC-"$CC"} 7125 7126# If no C compiler flags were specified, use CFLAGS. 7127LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7128 7129# Allow CC to be a program name with arguments. 7130compiler=$CC 7131 7132 7133# save warnings/boilerplate of simple test code 7134ac_outfile=conftest.$ac_objext 7135echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7136eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7137_lt_compiler_boilerplate=`cat conftest.err` 7138$rm conftest* 7139 7140ac_outfile=conftest.$ac_objext 7141echo "$lt_simple_link_test_code" >conftest.$ac_ext 7142eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7143_lt_linker_boilerplate=`cat conftest.err` 7144$rm conftest* 7145 7146 7147 7148lt_prog_compiler_no_builtin_flag= 7149 7150if test "$GCC" = yes; then 7151 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7152 7153 7154{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7155echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7156if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7157 echo $ECHO_N "(cached) $ECHO_C" >&6 7158else 7159 lt_cv_prog_compiler_rtti_exceptions=no 7160 ac_outfile=conftest.$ac_objext 7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7162 lt_compiler_flag="-fno-rtti -fno-exceptions" 7163 # Insert the option either (1) after the last *FLAGS variable, or 7164 # (2) before a word containing "conftest.", or (3) at the end. 7165 # Note that $ac_compile itself does not contain backslashes and begins 7166 # with a dollar sign (not a hyphen), so the echo should work correctly. 7167 # The option is referenced via a variable to avoid confusing sed. 7168 lt_compile=`echo "$ac_compile" | $SED \ 7169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7171 -e 's:$: $lt_compiler_flag:'` 7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5) 7173 (eval "$lt_compile" 2>conftest.err) 7174 ac_status=$? 7175 cat conftest.err >&5 7176 echo "$as_me:7176: \$? = $ac_status" >&5 7177 if (exit $ac_status) && test -s "$ac_outfile"; then 7178 # The compiler can only warn and ignore the option if not recognized 7179 # So say no if there are warnings other than the usual output. 7180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7183 lt_cv_prog_compiler_rtti_exceptions=yes 7184 fi 7185 fi 7186 $rm conftest* 7187 7188fi 7189{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7190echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7191 7192if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7194else 7195 : 7196fi 7197 7198fi 7199 7200lt_prog_compiler_wl= 7201lt_prog_compiler_pic= 7202lt_prog_compiler_static= 7203 7204{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7205echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7206 7207 if test "$GCC" = yes; then 7208 lt_prog_compiler_wl='-Wl,' 7209 lt_prog_compiler_static='-static' 7210 7211 case $host_os in 7212 aix*) 7213 # All AIX code is PIC. 7214 if test "$host_cpu" = ia64; then 7215 # AIX 5 now supports IA64 processor 7216 lt_prog_compiler_static='-Bstatic' 7217 fi 7218 ;; 7219 7220 amigaos*) 7221 # FIXME: we need at least 68020 code to build shared libraries, but 7222 # adding the `-m68020' flag to GCC prevents building anything better, 7223 # like `-m68040'. 7224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7225 ;; 7226 7227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7228 # PIC is the default for these OSes. 7229 ;; 7230 7231 mingw* | cygwin* | pw32* | os2*) 7232 # This hack is so that the source file can tell whether it is being 7233 # built for inclusion in a dll (and should export symbols for example). 7234 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7235 # (--disable-auto-import) libraries 7236 lt_prog_compiler_pic='-DDLL_EXPORT' 7237 ;; 7238 7239 darwin* | rhapsody*) 7240 # PIC is the default on this platform 7241 # Common symbols not allowed in MH_DYLIB files 7242 lt_prog_compiler_pic='-fno-common' 7243 ;; 7244 7245 interix[3-9]*) 7246 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7247 # Instead, we relocate shared libraries at runtime. 7248 ;; 7249 7250 msdosdjgpp*) 7251 # Just because we use GCC doesn't mean we suddenly get shared libraries 7252 # on systems that don't support them. 7253 lt_prog_compiler_can_build_shared=no 7254 enable_shared=no 7255 ;; 7256 7257 sysv4*MP*) 7258 if test -d /usr/nec; then 7259 lt_prog_compiler_pic=-Kconform_pic 7260 fi 7261 ;; 7262 7263 hpux*) 7264 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7265 # not for PA HP-UX. 7266 case $host_cpu in 7267 hppa*64*|ia64*) 7268 # +Z the default 7269 ;; 7270 *) 7271 lt_prog_compiler_pic='-fPIC' 7272 ;; 7273 esac 7274 ;; 7275 7276 *) 7277 lt_prog_compiler_pic='-fPIC' 7278 ;; 7279 esac 7280 else 7281 # PORTME Check for flag to pass linker flags through the system compiler. 7282 case $host_os in 7283 aix*) 7284 lt_prog_compiler_wl='-Wl,' 7285 if test "$host_cpu" = ia64; then 7286 # AIX 5 now supports IA64 processor 7287 lt_prog_compiler_static='-Bstatic' 7288 else 7289 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7290 fi 7291 ;; 7292 darwin*) 7293 # PIC is the default on this platform 7294 # Common symbols not allowed in MH_DYLIB files 7295 case $cc_basename in 7296 xlc*) 7297 lt_prog_compiler_pic='-qnocommon' 7298 lt_prog_compiler_wl='-Wl,' 7299 ;; 7300 esac 7301 ;; 7302 7303 mingw* | cygwin* | pw32* | os2*) 7304 # This hack is so that the source file can tell whether it is being 7305 # built for inclusion in a dll (and should export symbols for example). 7306 lt_prog_compiler_pic='-DDLL_EXPORT' 7307 ;; 7308 7309 hpux9* | hpux10* | hpux11*) 7310 lt_prog_compiler_wl='-Wl,' 7311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7312 # not for PA HP-UX. 7313 case $host_cpu in 7314 hppa*64*|ia64*) 7315 # +Z the default 7316 ;; 7317 *) 7318 lt_prog_compiler_pic='+Z' 7319 ;; 7320 esac 7321 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7322 lt_prog_compiler_static='${wl}-a ${wl}archive' 7323 ;; 7324 7325 irix5* | irix6* | nonstopux*) 7326 lt_prog_compiler_wl='-Wl,' 7327 # PIC (with -KPIC) is the default. 7328 lt_prog_compiler_static='-non_shared' 7329 ;; 7330 7331 newsos6) 7332 lt_prog_compiler_pic='-KPIC' 7333 lt_prog_compiler_static='-Bstatic' 7334 ;; 7335 7336 linux* | k*bsd*-gnu) 7337 case $cc_basename in 7338 icc* | ecc*) 7339 lt_prog_compiler_wl='-Wl,' 7340 lt_prog_compiler_pic='-KPIC' 7341 lt_prog_compiler_static='-static' 7342 ;; 7343 pgcc* | pgf77* | pgf90* | pgf95*) 7344 # Portland Group compilers (*not* the Pentium gcc compiler, 7345 # which looks to be a dead project) 7346 lt_prog_compiler_wl='-Wl,' 7347 lt_prog_compiler_pic='-fpic' 7348 lt_prog_compiler_static='-Bstatic' 7349 ;; 7350 ccc*) 7351 lt_prog_compiler_wl='-Wl,' 7352 # All Alpha code is PIC. 7353 lt_prog_compiler_static='-non_shared' 7354 ;; 7355 *) 7356 case `$CC -V 2>&1 | sed 5q` in 7357 *Sun\ C*) 7358 # Sun C 5.9 7359 lt_prog_compiler_pic='-KPIC' 7360 lt_prog_compiler_static='-Bstatic' 7361 lt_prog_compiler_wl='-Wl,' 7362 ;; 7363 *Sun\ F*) 7364 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7365 lt_prog_compiler_pic='-KPIC' 7366 lt_prog_compiler_static='-Bstatic' 7367 lt_prog_compiler_wl='' 7368 ;; 7369 esac 7370 ;; 7371 esac 7372 ;; 7373 7374 osf3* | osf4* | osf5*) 7375 lt_prog_compiler_wl='-Wl,' 7376 # All OSF/1 code is PIC. 7377 lt_prog_compiler_static='-non_shared' 7378 ;; 7379 7380 rdos*) 7381 lt_prog_compiler_static='-non_shared' 7382 ;; 7383 7384 solaris*) 7385 lt_prog_compiler_pic='-KPIC' 7386 lt_prog_compiler_static='-Bstatic' 7387 case $cc_basename in 7388 f77* | f90* | f95*) 7389 lt_prog_compiler_wl='-Qoption ld ';; 7390 *) 7391 lt_prog_compiler_wl='-Wl,';; 7392 esac 7393 ;; 7394 7395 sunos4*) 7396 lt_prog_compiler_wl='-Qoption ld ' 7397 lt_prog_compiler_pic='-PIC' 7398 lt_prog_compiler_static='-Bstatic' 7399 ;; 7400 7401 sysv4 | sysv4.2uw2* | sysv4.3*) 7402 lt_prog_compiler_wl='-Wl,' 7403 lt_prog_compiler_pic='-KPIC' 7404 lt_prog_compiler_static='-Bstatic' 7405 ;; 7406 7407 sysv4*MP*) 7408 if test -d /usr/nec ;then 7409 lt_prog_compiler_pic='-Kconform_pic' 7410 lt_prog_compiler_static='-Bstatic' 7411 fi 7412 ;; 7413 7414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7415 lt_prog_compiler_wl='-Wl,' 7416 lt_prog_compiler_pic='-KPIC' 7417 lt_prog_compiler_static='-Bstatic' 7418 ;; 7419 7420 unicos*) 7421 lt_prog_compiler_wl='-Wl,' 7422 lt_prog_compiler_can_build_shared=no 7423 ;; 7424 7425 uts4*) 7426 lt_prog_compiler_pic='-pic' 7427 lt_prog_compiler_static='-Bstatic' 7428 ;; 7429 7430 *) 7431 lt_prog_compiler_can_build_shared=no 7432 ;; 7433 esac 7434 fi 7435 7436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7437echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7438 7439# 7440# Check to make sure the PIC flag actually works. 7441# 7442if test -n "$lt_prog_compiler_pic"; then 7443 7444{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7446if test "${lt_prog_compiler_pic_works+set}" = set; then 7447 echo $ECHO_N "(cached) $ECHO_C" >&6 7448else 7449 lt_prog_compiler_pic_works=no 7450 ac_outfile=conftest.$ac_objext 7451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7453 # Insert the option either (1) after the last *FLAGS variable, or 7454 # (2) before a word containing "conftest.", or (3) at the end. 7455 # Note that $ac_compile itself does not contain backslashes and begins 7456 # with a dollar sign (not a hyphen), so the echo should work correctly. 7457 # The option is referenced via a variable to avoid confusing sed. 7458 lt_compile=`echo "$ac_compile" | $SED \ 7459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7461 -e 's:$: $lt_compiler_flag:'` 7462 (eval echo "\"\$as_me:7462: $lt_compile\"" >&5) 7463 (eval "$lt_compile" 2>conftest.err) 7464 ac_status=$? 7465 cat conftest.err >&5 7466 echo "$as_me:7466: \$? = $ac_status" >&5 7467 if (exit $ac_status) && test -s "$ac_outfile"; then 7468 # The compiler can only warn and ignore the option if not recognized 7469 # So say no if there are warnings other than the usual output. 7470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7473 lt_prog_compiler_pic_works=yes 7474 fi 7475 fi 7476 $rm conftest* 7477 7478fi 7479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7480echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7481 7482if test x"$lt_prog_compiler_pic_works" = xyes; then 7483 case $lt_prog_compiler_pic in 7484 "" | " "*) ;; 7485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7486 esac 7487else 7488 lt_prog_compiler_pic= 7489 lt_prog_compiler_can_build_shared=no 7490fi 7491 7492fi 7493case $host_os in 7494 # For platforms which do not support PIC, -DPIC is meaningless: 7495 *djgpp*) 7496 lt_prog_compiler_pic= 7497 ;; 7498 *) 7499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7500 ;; 7501esac 7502 7503# 7504# Check to make sure the static flag actually works. 7505# 7506wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7507{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7508echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7509if test "${lt_prog_compiler_static_works+set}" = set; then 7510 echo $ECHO_N "(cached) $ECHO_C" >&6 7511else 7512 lt_prog_compiler_static_works=no 7513 save_LDFLAGS="$LDFLAGS" 7514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7515 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7517 # The linker can only warn and ignore the option if not recognized 7518 # So say no if there are warnings 7519 if test -s conftest.err; then 7520 # Append any errors to the config.log. 7521 cat conftest.err 1>&5 7522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7524 if diff conftest.exp conftest.er2 >/dev/null; then 7525 lt_prog_compiler_static_works=yes 7526 fi 7527 else 7528 lt_prog_compiler_static_works=yes 7529 fi 7530 fi 7531 $rm conftest* 7532 LDFLAGS="$save_LDFLAGS" 7533 7534fi 7535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7536echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7537 7538if test x"$lt_prog_compiler_static_works" = xyes; then 7539 : 7540else 7541 lt_prog_compiler_static= 7542fi 7543 7544 7545{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7547if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7548 echo $ECHO_N "(cached) $ECHO_C" >&6 7549else 7550 lt_cv_prog_compiler_c_o=no 7551 $rm -r conftest 2>/dev/null 7552 mkdir conftest 7553 cd conftest 7554 mkdir out 7555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7556 7557 lt_compiler_flag="-o out/conftest2.$ac_objext" 7558 # Insert the option either (1) after the last *FLAGS variable, or 7559 # (2) before a word containing "conftest.", or (3) at the end. 7560 # Note that $ac_compile itself does not contain backslashes and begins 7561 # with a dollar sign (not a hyphen), so the echo should work correctly. 7562 lt_compile=`echo "$ac_compile" | $SED \ 7563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7565 -e 's:$: $lt_compiler_flag:'` 7566 (eval echo "\"\$as_me:7566: $lt_compile\"" >&5) 7567 (eval "$lt_compile" 2>out/conftest.err) 7568 ac_status=$? 7569 cat out/conftest.err >&5 7570 echo "$as_me:7570: \$? = $ac_status" >&5 7571 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7572 then 7573 # The compiler can only warn and ignore the option if not recognized 7574 # So say no if there are warnings 7575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7578 lt_cv_prog_compiler_c_o=yes 7579 fi 7580 fi 7581 chmod u+w . 2>&5 7582 $rm conftest* 7583 # SGI C++ compiler will create directory out/ii_files/ for 7584 # template instantiation 7585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7586 $rm out/* && rmdir out 7587 cd .. 7588 rmdir conftest 7589 $rm conftest* 7590 7591fi 7592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7593echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7594 7595 7596hard_links="nottested" 7597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7598 # do not overwrite the value of need_locks provided by the user 7599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7600echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7601 hard_links=yes 7602 $rm conftest* 7603 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7604 touch conftest.a 7605 ln conftest.a conftest.b 2>&5 || hard_links=no 7606 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7607 { echo "$as_me:$LINENO: result: $hard_links" >&5 7608echo "${ECHO_T}$hard_links" >&6; } 7609 if test "$hard_links" = no; then 7610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7611echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7612 need_locks=warn 7613 fi 7614else 7615 need_locks=no 7616fi 7617 7618{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7619echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7620 7621 runpath_var= 7622 allow_undefined_flag= 7623 enable_shared_with_static_runtimes=no 7624 archive_cmds= 7625 archive_expsym_cmds= 7626 old_archive_From_new_cmds= 7627 old_archive_from_expsyms_cmds= 7628 export_dynamic_flag_spec= 7629 whole_archive_flag_spec= 7630 thread_safe_flag_spec= 7631 hardcode_libdir_flag_spec= 7632 hardcode_libdir_flag_spec_ld= 7633 hardcode_libdir_separator= 7634 hardcode_direct=no 7635 hardcode_minus_L=no 7636 hardcode_shlibpath_var=unsupported 7637 link_all_deplibs=unknown 7638 hardcode_automatic=no 7639 module_cmds= 7640 module_expsym_cmds= 7641 always_export_symbols=no 7642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7643 # include_expsyms should be a list of space-separated symbols to be *always* 7644 # included in the symbol list 7645 include_expsyms= 7646 # exclude_expsyms can be an extended regexp of symbols to exclude 7647 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7649 # as well as any symbol that contains `d'. 7650 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7652 # platforms (ab)use it in PIC code, but their linkers get confused if 7653 # the symbol is explicitly referenced. Since portable code cannot 7654 # rely on this symbol name, it's probably fine to never include it in 7655 # preloaded symbol tables. 7656 extract_expsyms_cmds= 7657 # Just being paranoid about ensuring that cc_basename is set. 7658 for cc_temp in $compiler""; do 7659 case $cc_temp in 7660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7662 \-*) ;; 7663 *) break;; 7664 esac 7665done 7666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7667 7668 case $host_os in 7669 cygwin* | mingw* | pw32*) 7670 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7671 # When not using gcc, we currently assume that we are using 7672 # Microsoft Visual C++. 7673 if test "$GCC" != yes; then 7674 with_gnu_ld=no 7675 fi 7676 ;; 7677 interix*) 7678 # we just hope/assume this is gcc and not c89 (= MSVC++) 7679 with_gnu_ld=yes 7680 ;; 7681 openbsd*) 7682 with_gnu_ld=no 7683 ;; 7684 esac 7685 7686 ld_shlibs=yes 7687 if test "$with_gnu_ld" = yes; then 7688 # If archive_cmds runs LD, not CC, wlarc should be empty 7689 wlarc='${wl}' 7690 7691 # Set some defaults for GNU ld with shared library support. These 7692 # are reset later if shared libraries are not supported. Putting them 7693 # here allows them to be overridden if necessary. 7694 runpath_var=LD_RUN_PATH 7695 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7696 export_dynamic_flag_spec='${wl}--export-dynamic' 7697 # ancient GNU ld didn't support --whole-archive et. al. 7698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7700 else 7701 whole_archive_flag_spec= 7702 fi 7703 supports_anon_versioning=no 7704 case `$LD -v 2>/dev/null` in 7705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7708 *\ 2.11.*) ;; # other 2.11 versions 7709 *) supports_anon_versioning=yes ;; 7710 esac 7711 7712 # See if GNU ld supports shared libraries. 7713 case $host_os in 7714 aix3* | aix4* | aix5*) 7715 # On AIX/PPC, the GNU linker is very broken 7716 if test "$host_cpu" != ia64; then 7717 ld_shlibs=no 7718 cat <<EOF 1>&2 7719 7720*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7721*** to be unable to reliably create shared libraries on AIX. 7722*** Therefore, libtool is disabling shared libraries support. If you 7723*** really care for shared libraries, you may want to modify your PATH 7724*** so that a non-GNU linker is found, and then restart. 7725 7726EOF 7727 fi 7728 ;; 7729 7730 amigaos*) 7731 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)' 7732 hardcode_libdir_flag_spec='-L$libdir' 7733 hardcode_minus_L=yes 7734 7735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7736 # that the semantics of dynamic libraries on AmigaOS, at least up 7737 # to version 4, is to share data among multiple programs linked 7738 # with the same dynamic library. Since this doesn't match the 7739 # behavior of shared libraries on other platforms, we can't use 7740 # them. 7741 ld_shlibs=no 7742 ;; 7743 7744 beos*) 7745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7746 allow_undefined_flag=unsupported 7747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7748 # support --undefined. This deserves some investigation. FIXME 7749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7750 else 7751 ld_shlibs=no 7752 fi 7753 ;; 7754 7755 cygwin* | mingw* | pw32*) 7756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7757 # as there is no search path for DLLs. 7758 hardcode_libdir_flag_spec='-L$libdir' 7759 allow_undefined_flag=unsupported 7760 always_export_symbols=no 7761 enable_shared_with_static_runtimes=yes 7762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7763 7764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7766 # If the export-symbols file already is a .def file (1st line 7767 # is EXPORTS), use it as is; otherwise, prepend... 7768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7769 cp $export_symbols $output_objdir/$soname.def; 7770 else 7771 echo EXPORTS > $output_objdir/$soname.def; 7772 cat $export_symbols >> $output_objdir/$soname.def; 7773 fi~ 7774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7775 else 7776 ld_shlibs=no 7777 fi 7778 ;; 7779 7780 interix[3-9]*) 7781 hardcode_direct=no 7782 hardcode_shlibpath_var=no 7783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7784 export_dynamic_flag_spec='${wl}-E' 7785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7786 # Instead, shared libraries are loaded at an image base (0x10000000 by 7787 # default) and relocated if they conflict, which is a slow very memory 7788 # consuming and fragmenting process. To avoid this, we pick a random, 7789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7790 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7792 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' 7793 ;; 7794 7795 gnu* | linux* | k*bsd*-gnu) 7796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7797 tmp_addflag= 7798 case $cc_basename,$host_cpu in 7799 pgcc*) # Portland Group C compiler 7800 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' 7801 tmp_addflag=' $pic_flag' 7802 ;; 7803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7804 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' 7805 tmp_addflag=' $pic_flag -Mnomain' ;; 7806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7807 tmp_addflag=' -i_dynamic' ;; 7808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7809 tmp_addflag=' -i_dynamic -nofor_main' ;; 7810 ifc* | ifort*) # Intel Fortran compiler 7811 tmp_addflag=' -nofor_main' ;; 7812 esac 7813 case `$CC -V 2>&1 | sed 5q` in 7814 *Sun\ C*) # Sun C 5.9 7815 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' 7816 tmp_sharedflag='-G' ;; 7817 *Sun\ F*) # Sun Fortran 8.3 7818 tmp_sharedflag='-G' ;; 7819 *) 7820 tmp_sharedflag='-shared' ;; 7821 esac 7822 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7823 7824 if test $supports_anon_versioning = yes; then 7825 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7826 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7827 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7828 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7829 fi 7830 link_all_deplibs=no 7831 else 7832 ld_shlibs=no 7833 fi 7834 ;; 7835 7836 netbsd* | netbsdelf*-gnu) 7837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7839 wlarc= 7840 else 7841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7843 fi 7844 ;; 7845 7846 solaris*) 7847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7848 ld_shlibs=no 7849 cat <<EOF 1>&2 7850 7851*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7852*** create shared libraries on Solaris systems. Therefore, libtool 7853*** is disabling shared libraries support. We urge you to upgrade GNU 7854*** binutils to release 2.9.1 or newer. Another option is to modify 7855*** your PATH or compiler configuration so that the native linker is 7856*** used, and then restart. 7857 7858EOF 7859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7862 else 7863 ld_shlibs=no 7864 fi 7865 ;; 7866 7867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7868 case `$LD -v 2>&1` in 7869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7870 ld_shlibs=no 7871 cat <<_LT_EOF 1>&2 7872 7873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7874*** reliably create shared libraries on SCO systems. Therefore, libtool 7875*** is disabling shared libraries support. We urge you to upgrade GNU 7876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7877*** your PATH or compiler configuration so that the native linker is 7878*** used, and then restart. 7879 7880_LT_EOF 7881 ;; 7882 *) 7883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7884 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7887 else 7888 ld_shlibs=no 7889 fi 7890 ;; 7891 esac 7892 ;; 7893 7894 sunos4*) 7895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7896 wlarc= 7897 hardcode_direct=yes 7898 hardcode_shlibpath_var=no 7899 ;; 7900 7901 *) 7902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7905 else 7906 ld_shlibs=no 7907 fi 7908 ;; 7909 esac 7910 7911 if test "$ld_shlibs" = no; then 7912 runpath_var= 7913 hardcode_libdir_flag_spec= 7914 export_dynamic_flag_spec= 7915 whole_archive_flag_spec= 7916 fi 7917 else 7918 # PORTME fill in a description of your system's linker (not GNU ld) 7919 case $host_os in 7920 aix3*) 7921 allow_undefined_flag=unsupported 7922 always_export_symbols=yes 7923 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' 7924 # Note: this linker hardcodes the directories in LIBPATH if there 7925 # are no directories specified by -L. 7926 hardcode_minus_L=yes 7927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7928 # Neither direct hardcoding nor static linking is supported with a 7929 # broken collect2. 7930 hardcode_direct=unsupported 7931 fi 7932 ;; 7933 7934 aix4* | aix5*) 7935 if test "$host_cpu" = ia64; then 7936 # On IA64, the linker does run time linking by default, so we don't 7937 # have to do anything special. 7938 aix_use_runtimelinking=no 7939 exp_sym_flag='-Bexport' 7940 no_entry_flag="" 7941 else 7942 # If we're using GNU nm, then we don't want the "-C" option. 7943 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7945 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' 7946 else 7947 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' 7948 fi 7949 aix_use_runtimelinking=no 7950 7951 # Test if we are trying to use run time linking or normal 7952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7953 # need to do runtime linking. 7954 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7955 for ld_flag in $LDFLAGS; do 7956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7957 aix_use_runtimelinking=yes 7958 break 7959 fi 7960 done 7961 ;; 7962 esac 7963 7964 exp_sym_flag='-bexport' 7965 no_entry_flag='-bnoentry' 7966 fi 7967 7968 # When large executables or shared objects are built, AIX ld can 7969 # have problems creating the table of contents. If linking a library 7970 # or program results in "error TOC overflow" add -mminimal-toc to 7971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7973 7974 archive_cmds='' 7975 hardcode_direct=yes 7976 hardcode_libdir_separator=':' 7977 link_all_deplibs=yes 7978 7979 if test "$GCC" = yes; then 7980 case $host_os in aix4.[012]|aix4.[012].*) 7981 # We only want to do this on AIX 4.2 and lower, the check 7982 # below for broken collect2 doesn't work under 4.3+ 7983 collect2name=`${CC} -print-prog-name=collect2` 7984 if test -f "$collect2name" && \ 7985 strings "$collect2name" | grep resolve_lib_name >/dev/null 7986 then 7987 # We have reworked collect2 7988 : 7989 else 7990 # We have old collect2 7991 hardcode_direct=unsupported 7992 # It fails to find uninstalled libraries when the uninstalled 7993 # path is not listed in the libpath. Setting hardcode_minus_L 7994 # to unsupported forces relinking 7995 hardcode_minus_L=yes 7996 hardcode_libdir_flag_spec='-L$libdir' 7997 hardcode_libdir_separator= 7998 fi 7999 ;; 8000 esac 8001 shared_flag='-shared' 8002 if test "$aix_use_runtimelinking" = yes; then 8003 shared_flag="$shared_flag "'${wl}-G' 8004 fi 8005 else 8006 # not using gcc 8007 if test "$host_cpu" = ia64; then 8008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8009 # chokes on -Wl,-G. The following line is correct: 8010 shared_flag='-G' 8011 else 8012 if test "$aix_use_runtimelinking" = yes; then 8013 shared_flag='${wl}-G' 8014 else 8015 shared_flag='${wl}-bM:SRE' 8016 fi 8017 fi 8018 fi 8019 8020 # It seems that -bexpall does not export symbols beginning with 8021 # underscore (_), so it is better to generate a list of symbols to export. 8022 always_export_symbols=yes 8023 if test "$aix_use_runtimelinking" = yes; then 8024 # Warning - without using the other runtime loading flags (-brtl), 8025 # -berok will link without error, but may produce a broken library. 8026 allow_undefined_flag='-berok' 8027 # Determine the default libpath from the value encoded in an empty executable. 8028 cat >conftest.$ac_ext <<_ACEOF 8029/* confdefs.h. */ 8030_ACEOF 8031cat confdefs.h >>conftest.$ac_ext 8032cat >>conftest.$ac_ext <<_ACEOF 8033/* end confdefs.h. */ 8034 8035int 8036main () 8037{ 8038 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043rm -f conftest.$ac_objext conftest$ac_exeext 8044if { (ac_try="$ac_link" 8045case "(($ac_try" in 8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8047 *) ac_try_echo=$ac_try;; 8048esac 8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8050 (eval "$ac_link") 2>conftest.er1 8051 ac_status=$? 8052 grep -v '^ *+' conftest.er1 >conftest.err 8053 rm -f conftest.er1 8054 cat conftest.err >&5 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8056 (exit $ac_status); } && { 8057 test -z "$ac_c_werror_flag" || 8058 test ! -s conftest.err 8059 } && test -s conftest$ac_exeext && 8060 $as_test_x conftest$ac_exeext; then 8061 8062lt_aix_libpath_sed=' 8063 /Import File Strings/,/^$/ { 8064 /^0/ { 8065 s/^0 *\(.*\)$/\1/ 8066 p 8067 } 8068 }' 8069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8070# Check for a 64-bit object if we didn't find anything. 8071if test -z "$aix_libpath"; then 8072 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8073fi 8074else 8075 echo "$as_me: failed program was:" >&5 8076sed 's/^/| /' conftest.$ac_ext >&5 8077 8078 8079fi 8080 8081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8082 conftest$ac_exeext conftest.$ac_ext 8083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8084 8085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8086 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" 8087 else 8088 if test "$host_cpu" = ia64; then 8089 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8090 allow_undefined_flag="-z nodefs" 8091 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" 8092 else 8093 # Determine the default libpath from the value encoded in an empty executable. 8094 cat >conftest.$ac_ext <<_ACEOF 8095/* confdefs.h. */ 8096_ACEOF 8097cat confdefs.h >>conftest.$ac_ext 8098cat >>conftest.$ac_ext <<_ACEOF 8099/* end confdefs.h. */ 8100 8101int 8102main () 8103{ 8104 8105 ; 8106 return 0; 8107} 8108_ACEOF 8109rm -f conftest.$ac_objext conftest$ac_exeext 8110if { (ac_try="$ac_link" 8111case "(($ac_try" in 8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8113 *) ac_try_echo=$ac_try;; 8114esac 8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8116 (eval "$ac_link") 2>conftest.er1 8117 ac_status=$? 8118 grep -v '^ *+' conftest.er1 >conftest.err 8119 rm -f conftest.er1 8120 cat conftest.err >&5 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8122 (exit $ac_status); } && { 8123 test -z "$ac_c_werror_flag" || 8124 test ! -s conftest.err 8125 } && test -s conftest$ac_exeext && 8126 $as_test_x conftest$ac_exeext; then 8127 8128lt_aix_libpath_sed=' 8129 /Import File Strings/,/^$/ { 8130 /^0/ { 8131 s/^0 *\(.*\)$/\1/ 8132 p 8133 } 8134 }' 8135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8136# Check for a 64-bit object if we didn't find anything. 8137if test -z "$aix_libpath"; then 8138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8139fi 8140else 8141 echo "$as_me: failed program was:" >&5 8142sed 's/^/| /' conftest.$ac_ext >&5 8143 8144 8145fi 8146 8147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8148 conftest$ac_exeext conftest.$ac_ext 8149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8150 8151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8152 # Warning - without using the other run time loading flags, 8153 # -berok will link without error, but may produce a broken library. 8154 no_undefined_flag=' ${wl}-bernotok' 8155 allow_undefined_flag=' ${wl}-berok' 8156 # Exported symbols can be pulled into shared objects from archives 8157 whole_archive_flag_spec='$convenience' 8158 archive_cmds_need_lc=yes 8159 # This is similar to how AIX traditionally builds its shared libraries. 8160 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' 8161 fi 8162 fi 8163 ;; 8164 8165 amigaos*) 8166 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)' 8167 hardcode_libdir_flag_spec='-L$libdir' 8168 hardcode_minus_L=yes 8169 # see comment about different semantics on the GNU ld section 8170 ld_shlibs=no 8171 ;; 8172 8173 bsdi[45]*) 8174 export_dynamic_flag_spec=-rdynamic 8175 ;; 8176 8177 cygwin* | mingw* | pw32*) 8178 # When not using gcc, we currently assume that we are using 8179 # Microsoft Visual C++. 8180 # hardcode_libdir_flag_spec is actually meaningless, as there is 8181 # no search path for DLLs. 8182 hardcode_libdir_flag_spec=' ' 8183 allow_undefined_flag=unsupported 8184 # Tell ltmain to make .lib files, not .a files. 8185 libext=lib 8186 # Tell ltmain to make .dll files, not .so files. 8187 shrext_cmds=".dll" 8188 # FIXME: Setting linknames here is a bad hack. 8189 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8190 # The linker will automatically build a .lib file if we build a DLL. 8191 old_archive_From_new_cmds='true' 8192 # FIXME: Should let the user specify the lib program. 8193 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8194 fix_srcfile_path='`cygpath -w "$srcfile"`' 8195 enable_shared_with_static_runtimes=yes 8196 ;; 8197 8198 darwin* | rhapsody*) 8199 case $host_os in 8200 rhapsody* | darwin1.[012]) 8201 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8202 ;; 8203 *) # Darwin 1.3 on 8204 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8205 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8206 else 8207 case ${MACOSX_DEPLOYMENT_TARGET} in 8208 10.[012]) 8209 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8210 ;; 8211 10.*) 8212 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8213 ;; 8214 esac 8215 fi 8216 ;; 8217 esac 8218 archive_cmds_need_lc=no 8219 hardcode_direct=no 8220 hardcode_automatic=yes 8221 hardcode_shlibpath_var=unsupported 8222 whole_archive_flag_spec='' 8223 link_all_deplibs=yes 8224 if test "$GCC" = yes ; then 8225 output_verbose_link_cmd='echo' 8226 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8227 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8229 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}' 8230 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}' 8231 else 8232 case $cc_basename in 8233 xlc*) 8234 output_verbose_link_cmd='echo' 8235 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8236 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8238 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}' 8239 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}' 8240 ;; 8241 *) 8242 ld_shlibs=no 8243 ;; 8244 esac 8245 fi 8246 ;; 8247 8248 dgux*) 8249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8250 hardcode_libdir_flag_spec='-L$libdir' 8251 hardcode_shlibpath_var=no 8252 ;; 8253 8254 freebsd1*) 8255 ld_shlibs=no 8256 ;; 8257 8258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8259 # support. Future versions do this automatically, but an explicit c++rt0.o 8260 # does not break anything, and helps significantly (at the cost of a little 8261 # extra space). 8262 freebsd2.2*) 8263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8264 hardcode_libdir_flag_spec='-R$libdir' 8265 hardcode_direct=yes 8266 hardcode_shlibpath_var=no 8267 ;; 8268 8269 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8270 freebsd2*) 8271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8272 hardcode_direct=yes 8273 hardcode_minus_L=yes 8274 hardcode_shlibpath_var=no 8275 ;; 8276 8277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8278 freebsd* | dragonfly*) 8279 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8280 hardcode_libdir_flag_spec='-R$libdir' 8281 hardcode_direct=yes 8282 hardcode_shlibpath_var=no 8283 ;; 8284 8285 hpux9*) 8286 if test "$GCC" = yes; then 8287 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' 8288 else 8289 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' 8290 fi 8291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8292 hardcode_libdir_separator=: 8293 hardcode_direct=yes 8294 8295 # hardcode_minus_L: Not really in the search PATH, 8296 # but as the default location of the library. 8297 hardcode_minus_L=yes 8298 export_dynamic_flag_spec='${wl}-E' 8299 ;; 8300 8301 hpux10*) 8302 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8303 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8304 else 8305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8306 fi 8307 if test "$with_gnu_ld" = no; then 8308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8309 hardcode_libdir_separator=: 8310 8311 hardcode_direct=yes 8312 export_dynamic_flag_spec='${wl}-E' 8313 8314 # hardcode_minus_L: Not really in the search PATH, 8315 # but as the default location of the library. 8316 hardcode_minus_L=yes 8317 fi 8318 ;; 8319 8320 hpux11*) 8321 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8322 case $host_cpu in 8323 hppa*64*) 8324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8325 ;; 8326 ia64*) 8327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8328 ;; 8329 *) 8330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8331 ;; 8332 esac 8333 else 8334 case $host_cpu in 8335 hppa*64*) 8336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8337 ;; 8338 ia64*) 8339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8340 ;; 8341 *) 8342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8343 ;; 8344 esac 8345 fi 8346 if test "$with_gnu_ld" = no; then 8347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8348 hardcode_libdir_separator=: 8349 8350 case $host_cpu in 8351 hppa*64*|ia64*) 8352 hardcode_libdir_flag_spec_ld='+b $libdir' 8353 hardcode_direct=no 8354 hardcode_shlibpath_var=no 8355 ;; 8356 *) 8357 hardcode_direct=yes 8358 export_dynamic_flag_spec='${wl}-E' 8359 8360 # hardcode_minus_L: Not really in the search PATH, 8361 # but as the default location of the library. 8362 hardcode_minus_L=yes 8363 ;; 8364 esac 8365 fi 8366 ;; 8367 8368 irix5* | irix6* | nonstopux*) 8369 if test "$GCC" = yes; then 8370 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' 8371 else 8372 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' 8373 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8374 fi 8375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8376 hardcode_libdir_separator=: 8377 link_all_deplibs=yes 8378 ;; 8379 8380 netbsd* | netbsdelf*-gnu) 8381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8383 else 8384 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8385 fi 8386 hardcode_libdir_flag_spec='-R$libdir' 8387 hardcode_direct=yes 8388 hardcode_shlibpath_var=no 8389 ;; 8390 8391 newsos6) 8392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8393 hardcode_direct=yes 8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8395 hardcode_libdir_separator=: 8396 hardcode_shlibpath_var=no 8397 ;; 8398 8399 openbsd*) 8400 if test -f /usr/libexec/ld.so; then 8401 hardcode_direct=yes 8402 hardcode_shlibpath_var=no 8403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8407 export_dynamic_flag_spec='${wl}-E' 8408 else 8409 case $host_os in 8410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8412 hardcode_libdir_flag_spec='-R$libdir' 8413 ;; 8414 *) 8415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8417 ;; 8418 esac 8419 fi 8420 else 8421 ld_shlibs=no 8422 fi 8423 ;; 8424 8425 os2*) 8426 hardcode_libdir_flag_spec='-L$libdir' 8427 hardcode_minus_L=yes 8428 allow_undefined_flag=unsupported 8429 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' 8430 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8431 ;; 8432 8433 osf3*) 8434 if test "$GCC" = yes; then 8435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8436 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' 8437 else 8438 allow_undefined_flag=' -expect_unresolved \*' 8439 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' 8440 fi 8441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8442 hardcode_libdir_separator=: 8443 ;; 8444 8445 osf4* | osf5*) # as osf3* with the addition of -msym flag 8446 if test "$GCC" = yes; then 8447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8448 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' 8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8450 else 8451 allow_undefined_flag=' -expect_unresolved \*' 8452 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' 8453 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8454 $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' 8455 8456 # Both c and cxx compiler support -rpath directly 8457 hardcode_libdir_flag_spec='-rpath $libdir' 8458 fi 8459 hardcode_libdir_separator=: 8460 ;; 8461 8462 solaris*) 8463 no_undefined_flag=' -z text' 8464 if test "$GCC" = yes; then 8465 wlarc='${wl}' 8466 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8467 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8468 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8469 else 8470 wlarc='' 8471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8472 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8474 fi 8475 hardcode_libdir_flag_spec='-R$libdir' 8476 hardcode_shlibpath_var=no 8477 case $host_os in 8478 solaris2.[0-5] | solaris2.[0-5].*) ;; 8479 *) 8480 # The compiler driver will combine and reorder linker options, 8481 # but understands `-z linker_flag'. GCC discards it without `$wl', 8482 # but is careful enough not to reorder. 8483 # Supported since Solaris 2.6 (maybe 2.5.1?) 8484 if test "$GCC" = yes; then 8485 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8486 else 8487 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8488 fi 8489 ;; 8490 esac 8491 link_all_deplibs=yes 8492 ;; 8493 8494 sunos4*) 8495 if test "x$host_vendor" = xsequent; then 8496 # Use $CC to link under sequent, because it throws in some extra .o 8497 # files that make .init and .fini sections work. 8498 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8499 else 8500 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8501 fi 8502 hardcode_libdir_flag_spec='-L$libdir' 8503 hardcode_direct=yes 8504 hardcode_minus_L=yes 8505 hardcode_shlibpath_var=no 8506 ;; 8507 8508 sysv4) 8509 case $host_vendor in 8510 sni) 8511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8512 hardcode_direct=yes # is this really true??? 8513 ;; 8514 siemens) 8515 ## LD is ld it makes a PLAMLIB 8516 ## CC just makes a GrossModule. 8517 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8518 reload_cmds='$CC -r -o $output$reload_objs' 8519 hardcode_direct=no 8520 ;; 8521 motorola) 8522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8523 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8524 ;; 8525 esac 8526 runpath_var='LD_RUN_PATH' 8527 hardcode_shlibpath_var=no 8528 ;; 8529 8530 sysv4.3*) 8531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8532 hardcode_shlibpath_var=no 8533 export_dynamic_flag_spec='-Bexport' 8534 ;; 8535 8536 sysv4*MP*) 8537 if test -d /usr/nec; then 8538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8539 hardcode_shlibpath_var=no 8540 runpath_var=LD_RUN_PATH 8541 hardcode_runpath_var=yes 8542 ld_shlibs=yes 8543 fi 8544 ;; 8545 8546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8547 no_undefined_flag='${wl}-z,text' 8548 archive_cmds_need_lc=no 8549 hardcode_shlibpath_var=no 8550 runpath_var='LD_RUN_PATH' 8551 8552 if test "$GCC" = yes; then 8553 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8555 else 8556 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8558 fi 8559 ;; 8560 8561 sysv5* | sco3.2v5* | sco5v6*) 8562 # Note: We can NOT use -z defs as we might desire, because we do not 8563 # link with -lc, and that would cause any symbols used from libc to 8564 # always be unresolved, which means just about no library would 8565 # ever link correctly. If we're not using GNU ld we use -z text 8566 # though, which does catch some bad symbols but isn't as heavy-handed 8567 # as -z defs. 8568 no_undefined_flag='${wl}-z,text' 8569 allow_undefined_flag='${wl}-z,nodefs' 8570 archive_cmds_need_lc=no 8571 hardcode_shlibpath_var=no 8572 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8573 hardcode_libdir_separator=':' 8574 link_all_deplibs=yes 8575 export_dynamic_flag_spec='${wl}-Bexport' 8576 runpath_var='LD_RUN_PATH' 8577 8578 if test "$GCC" = yes; then 8579 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8581 else 8582 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8584 fi 8585 ;; 8586 8587 uts4*) 8588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8589 hardcode_libdir_flag_spec='-L$libdir' 8590 hardcode_shlibpath_var=no 8591 ;; 8592 8593 *) 8594 ld_shlibs=no 8595 ;; 8596 esac 8597 fi 8598 8599{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8600echo "${ECHO_T}$ld_shlibs" >&6; } 8601test "$ld_shlibs" = no && can_build_shared=no 8602 8603# 8604# Do we need to explicitly link libc? 8605# 8606case "x$archive_cmds_need_lc" in 8607x|xyes) 8608 # Assume -lc should be added 8609 archive_cmds_need_lc=yes 8610 8611 if test "$enable_shared" = yes && test "$GCC" = yes; then 8612 case $archive_cmds in 8613 *'~'*) 8614 # FIXME: we may have to deal with multi-command sequences. 8615 ;; 8616 '$CC '*) 8617 # Test whether the compiler implicitly links with -lc since on some 8618 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8619 # to ld, don't add -lc before -lgcc. 8620 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8621echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8622 $rm conftest* 8623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8624 8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8626 (eval $ac_compile) 2>&5 8627 ac_status=$? 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 (exit $ac_status); } 2>conftest.err; then 8630 soname=conftest 8631 lib=conftest 8632 libobjs=conftest.$ac_objext 8633 deplibs= 8634 wl=$lt_prog_compiler_wl 8635 pic_flag=$lt_prog_compiler_pic 8636 compiler_flags=-v 8637 linker_flags=-v 8638 verstring= 8639 output_objdir=. 8640 libname=conftest 8641 lt_save_allow_undefined_flag=$allow_undefined_flag 8642 allow_undefined_flag= 8643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8644 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8645 ac_status=$? 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 (exit $ac_status); } 8648 then 8649 archive_cmds_need_lc=no 8650 else 8651 archive_cmds_need_lc=yes 8652 fi 8653 allow_undefined_flag=$lt_save_allow_undefined_flag 8654 else 8655 cat conftest.err 1>&5 8656 fi 8657 $rm conftest* 8658 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8659echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8660 ;; 8661 esac 8662 fi 8663 ;; 8664esac 8665 8666{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8667echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8668library_names_spec= 8669libname_spec='lib$name' 8670soname_spec= 8671shrext_cmds=".so" 8672postinstall_cmds= 8673postuninstall_cmds= 8674finish_cmds= 8675finish_eval= 8676shlibpath_var= 8677shlibpath_overrides_runpath=unknown 8678version_type=none 8679dynamic_linker="$host_os ld.so" 8680sys_lib_dlsearch_path_spec="/lib /usr/lib" 8681 8682if test "$GCC" = yes; then 8683 case $host_os in 8684 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8685 *) lt_awk_arg="/^libraries:/" ;; 8686 esac 8687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8688 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8689 # if the path contains ";" then we assume it to be the separator 8690 # otherwise default to the standard path separator (i.e. ":") - it is 8691 # assumed that no part of a normal pathname contains ";" but that should 8692 # okay in the real world where ";" in dirpaths is itself problematic. 8693 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8694 else 8695 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8696 fi 8697 # Ok, now we have the path, separated by spaces, we can step through it 8698 # and add multilib dir if necessary. 8699 lt_tmp_lt_search_path_spec= 8700 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8701 for lt_sys_path in $lt_search_path_spec; do 8702 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8704 else 8705 test -d "$lt_sys_path" && \ 8706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8707 fi 8708 done 8709 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8710BEGIN {RS=" "; FS="/|\n";} { 8711 lt_foo=""; 8712 lt_count=0; 8713 for (lt_i = NF; lt_i > 0; lt_i--) { 8714 if ($lt_i != "" && $lt_i != ".") { 8715 if ($lt_i == "..") { 8716 lt_count++; 8717 } else { 8718 if (lt_count == 0) { 8719 lt_foo="/" $lt_i lt_foo; 8720 } else { 8721 lt_count--; 8722 } 8723 } 8724 } 8725 } 8726 if (lt_foo != "") { lt_freq[lt_foo]++; } 8727 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8728}'` 8729 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8730else 8731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8732fi 8733need_lib_prefix=unknown 8734hardcode_into_libs=no 8735 8736# when you set need_version to no, make sure it does not cause -set_version 8737# flags to be left without arguments 8738need_version=unknown 8739 8740case $host_os in 8741aix3*) 8742 version_type=linux 8743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8744 shlibpath_var=LIBPATH 8745 8746 # AIX 3 has no versioning support, so we append a major version to the name. 8747 soname_spec='${libname}${release}${shared_ext}$major' 8748 ;; 8749 8750aix4* | aix5*) 8751 version_type=linux 8752 need_lib_prefix=no 8753 need_version=no 8754 hardcode_into_libs=yes 8755 if test "$host_cpu" = ia64; then 8756 # AIX 5 supports IA64 8757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8758 shlibpath_var=LD_LIBRARY_PATH 8759 else 8760 # With GCC up to 2.95.x, collect2 would create an import file 8761 # for dependence libraries. The import file would start with 8762 # the line `#! .'. This would cause the generated library to 8763 # depend on `.', always an invalid library. This was fixed in 8764 # development snapshots of GCC prior to 3.0. 8765 case $host_os in 8766 aix4 | aix4.[01] | aix4.[01].*) 8767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8768 echo ' yes ' 8769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8770 : 8771 else 8772 can_build_shared=no 8773 fi 8774 ;; 8775 esac 8776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8777 # soname into executable. Probably we can add versioning support to 8778 # collect2, so additional links can be useful in future. 8779 if test "$aix_use_runtimelinking" = yes; then 8780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8781 # instead of lib<name>.a to let people know that these are not 8782 # typical AIX shared libraries. 8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8784 else 8785 # We preserve .a as extension for shared libraries through AIX4.2 8786 # and later when we are not doing run time linking. 8787 library_names_spec='${libname}${release}.a $libname.a' 8788 soname_spec='${libname}${release}${shared_ext}$major' 8789 fi 8790 shlibpath_var=LIBPATH 8791 fi 8792 ;; 8793 8794amigaos*) 8795 library_names_spec='$libname.ixlibrary $libname.a' 8796 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8797 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' 8798 ;; 8799 8800beos*) 8801 library_names_spec='${libname}${shared_ext}' 8802 dynamic_linker="$host_os ld.so" 8803 shlibpath_var=LIBRARY_PATH 8804 ;; 8805 8806bsdi[45]*) 8807 version_type=linux 8808 need_version=no 8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8810 soname_spec='${libname}${release}${shared_ext}$major' 8811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8812 shlibpath_var=LD_LIBRARY_PATH 8813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8815 # the default ld.so.conf also contains /usr/contrib/lib and 8816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8817 # libtool to hard-code these into programs 8818 ;; 8819 8820cygwin* | mingw* | pw32*) 8821 version_type=windows 8822 shrext_cmds=".dll" 8823 need_version=no 8824 need_lib_prefix=no 8825 8826 case $GCC,$host_os in 8827 yes,cygwin* | yes,mingw* | yes,pw32*) 8828 library_names_spec='$libname.dll.a' 8829 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8830 postinstall_cmds='base_file=`basename \${file}`~ 8831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8832 dldir=$destdir/`dirname \$dlpath`~ 8833 test -d \$dldir || mkdir -p \$dldir~ 8834 $install_prog $dir/$dlname \$dldir/$dlname~ 8835 chmod a+x \$dldir/$dlname' 8836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8837 dlpath=$dir/\$dldll~ 8838 $rm \$dlpath' 8839 shlibpath_overrides_runpath=yes 8840 8841 case $host_os in 8842 cygwin*) 8843 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8844 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8845 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8846 ;; 8847 mingw*) 8848 # MinGW DLLs use traditional 'lib' prefix 8849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8851 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8852 # It is most probably a Windows format PATH printed by 8853 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8854 # path with ; separators, and with drive letters. We can handle the 8855 # drive letters (cygwin fileutils understands them), so leave them, 8856 # especially as we might pass files found there to a mingw objdump, 8857 # which wouldn't understand a cygwinified path. Ahh. 8858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8859 else 8860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8861 fi 8862 ;; 8863 pw32*) 8864 # pw32 DLLs use 'pw' prefix rather than 'lib' 8865 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8866 ;; 8867 esac 8868 ;; 8869 8870 *) 8871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8872 ;; 8873 esac 8874 dynamic_linker='Win32 ld.exe' 8875 # FIXME: first we should search . and the directory the executable is in 8876 shlibpath_var=PATH 8877 ;; 8878 8879darwin* | rhapsody*) 8880 dynamic_linker="$host_os dyld" 8881 version_type=darwin 8882 need_lib_prefix=no 8883 need_version=no 8884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8885 soname_spec='${libname}${release}${major}$shared_ext' 8886 shlibpath_overrides_runpath=yes 8887 shlibpath_var=DYLD_LIBRARY_PATH 8888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8889 8890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8892 ;; 8893 8894dgux*) 8895 version_type=linux 8896 need_lib_prefix=no 8897 need_version=no 8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8899 soname_spec='${libname}${release}${shared_ext}$major' 8900 shlibpath_var=LD_LIBRARY_PATH 8901 ;; 8902 8903freebsd1*) 8904 dynamic_linker=no 8905 ;; 8906 8907freebsd* | dragonfly*) 8908 # DragonFly does not have aout. When/if they implement a new 8909 # versioning mechanism, adjust this. 8910 if test -x /usr/bin/objformat; then 8911 objformat=`/usr/bin/objformat` 8912 else 8913 case $host_os in 8914 freebsd[123]*) objformat=aout ;; 8915 *) objformat=elf ;; 8916 esac 8917 fi 8918 version_type=freebsd-$objformat 8919 case $version_type in 8920 freebsd-elf*) 8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8922 need_version=no 8923 need_lib_prefix=no 8924 ;; 8925 freebsd-*) 8926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8927 need_version=yes 8928 ;; 8929 esac 8930 shlibpath_var=LD_LIBRARY_PATH 8931 case $host_os in 8932 freebsd2*) 8933 shlibpath_overrides_runpath=yes 8934 ;; 8935 freebsd3.[01]* | freebsdelf3.[01]*) 8936 shlibpath_overrides_runpath=yes 8937 hardcode_into_libs=yes 8938 ;; 8939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8941 shlibpath_overrides_runpath=no 8942 hardcode_into_libs=yes 8943 ;; 8944 *) # from 4.6 on, and DragonFly 8945 shlibpath_overrides_runpath=yes 8946 hardcode_into_libs=yes 8947 ;; 8948 esac 8949 ;; 8950 8951gnu*) 8952 version_type=linux 8953 need_lib_prefix=no 8954 need_version=no 8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8956 soname_spec='${libname}${release}${shared_ext}$major' 8957 shlibpath_var=LD_LIBRARY_PATH 8958 hardcode_into_libs=yes 8959 ;; 8960 8961hpux9* | hpux10* | hpux11*) 8962 # Give a soname corresponding to the major version so that dld.sl refuses to 8963 # link against other versions. 8964 version_type=sunos 8965 need_lib_prefix=no 8966 need_version=no 8967 case $host_cpu in 8968 ia64*) 8969 shrext_cmds='.so' 8970 hardcode_into_libs=yes 8971 dynamic_linker="$host_os dld.so" 8972 shlibpath_var=LD_LIBRARY_PATH 8973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8975 soname_spec='${libname}${release}${shared_ext}$major' 8976 if test "X$HPUX_IA64_MODE" = X32; then 8977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8978 else 8979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8980 fi 8981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8982 ;; 8983 hppa*64*) 8984 shrext_cmds='.sl' 8985 hardcode_into_libs=yes 8986 dynamic_linker="$host_os dld.sl" 8987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8990 soname_spec='${libname}${release}${shared_ext}$major' 8991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8993 ;; 8994 *) 8995 shrext_cmds='.sl' 8996 dynamic_linker="$host_os dld.sl" 8997 shlibpath_var=SHLIB_PATH 8998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9000 soname_spec='${libname}${release}${shared_ext}$major' 9001 ;; 9002 esac 9003 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9004 postinstall_cmds='chmod 555 $lib' 9005 ;; 9006 9007interix[3-9]*) 9008 version_type=linux 9009 need_lib_prefix=no 9010 need_version=no 9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9012 soname_spec='${libname}${release}${shared_ext}$major' 9013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9014 shlibpath_var=LD_LIBRARY_PATH 9015 shlibpath_overrides_runpath=no 9016 hardcode_into_libs=yes 9017 ;; 9018 9019irix5* | irix6* | nonstopux*) 9020 case $host_os in 9021 nonstopux*) version_type=nonstopux ;; 9022 *) 9023 if test "$lt_cv_prog_gnu_ld" = yes; then 9024 version_type=linux 9025 else 9026 version_type=irix 9027 fi ;; 9028 esac 9029 need_lib_prefix=no 9030 need_version=no 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9033 case $host_os in 9034 irix5* | nonstopux*) 9035 libsuff= shlibsuff= 9036 ;; 9037 *) 9038 case $LD in # libtool.m4 will add one of these switches to LD 9039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9040 libsuff= shlibsuff= libmagic=32-bit;; 9041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9042 libsuff=32 shlibsuff=N32 libmagic=N32;; 9043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9044 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9045 *) libsuff= shlibsuff= libmagic=never-match;; 9046 esac 9047 ;; 9048 esac 9049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9050 shlibpath_overrides_runpath=no 9051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9053 hardcode_into_libs=yes 9054 ;; 9055 9056# No shared lib support for Linux oldld, aout, or coff. 9057linux*oldld* | linux*aout* | linux*coff*) 9058 dynamic_linker=no 9059 ;; 9060 9061# This must be Linux ELF. 9062linux* | k*bsd*-gnu) 9063 version_type=linux 9064 need_lib_prefix=no 9065 need_version=no 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9067 soname_spec='${libname}${release}${shared_ext}$major' 9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9069 shlibpath_var=LD_LIBRARY_PATH 9070 shlibpath_overrides_runpath=no 9071 # This implies no fast_install, which is unacceptable. 9072 # Some rework will be needed to allow for fast_install 9073 # before this can be enabled. 9074 hardcode_into_libs=yes 9075 9076 # Append ld.so.conf contents to the search path 9077 if test -f /etc/ld.so.conf; then 9078 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' ' '` 9079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9080 fi 9081 9082 # We used to test for /lib/ld.so.1 and disable shared libraries on 9083 # powerpc, because MkLinux only supported shared libraries with the 9084 # GNU dynamic linker. Since this was broken with cross compilers, 9085 # most powerpc-linux boxes support dynamic linking these days and 9086 # people can always --disable-shared, the test was removed, and we 9087 # assume the GNU/Linux dynamic linker is in use. 9088 dynamic_linker='GNU/Linux ld.so' 9089 ;; 9090 9091netbsdelf*-gnu) 9092 version_type=linux 9093 need_lib_prefix=no 9094 need_version=no 9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9096 soname_spec='${libname}${release}${shared_ext}$major' 9097 shlibpath_var=LD_LIBRARY_PATH 9098 shlibpath_overrides_runpath=no 9099 hardcode_into_libs=yes 9100 dynamic_linker='NetBSD ld.elf_so' 9101 ;; 9102 9103netbsd*) 9104 version_type=sunos 9105 need_lib_prefix=no 9106 need_version=no 9107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9110 dynamic_linker='NetBSD (a.out) ld.so' 9111 else 9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9113 soname_spec='${libname}${release}${shared_ext}$major' 9114 dynamic_linker='NetBSD ld.elf_so' 9115 fi 9116 shlibpath_var=LD_LIBRARY_PATH 9117 shlibpath_overrides_runpath=yes 9118 hardcode_into_libs=yes 9119 ;; 9120 9121newsos6) 9122 version_type=linux 9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9124 shlibpath_var=LD_LIBRARY_PATH 9125 shlibpath_overrides_runpath=yes 9126 ;; 9127 9128nto-qnx*) 9129 version_type=linux 9130 need_lib_prefix=no 9131 need_version=no 9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9133 soname_spec='${libname}${release}${shared_ext}$major' 9134 shlibpath_var=LD_LIBRARY_PATH 9135 shlibpath_overrides_runpath=yes 9136 ;; 9137 9138openbsd*) 9139 version_type=sunos 9140 sys_lib_dlsearch_path_spec="/usr/lib" 9141 need_lib_prefix=no 9142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9143 case $host_os in 9144 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9145 *) need_version=no ;; 9146 esac 9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9149 shlibpath_var=LD_LIBRARY_PATH 9150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9151 case $host_os in 9152 openbsd2.[89] | openbsd2.[89].*) 9153 shlibpath_overrides_runpath=no 9154 ;; 9155 *) 9156 shlibpath_overrides_runpath=yes 9157 ;; 9158 esac 9159 else 9160 shlibpath_overrides_runpath=yes 9161 fi 9162 ;; 9163 9164os2*) 9165 libname_spec='$name' 9166 shrext_cmds=".dll" 9167 need_lib_prefix=no 9168 library_names_spec='$libname${shared_ext} $libname.a' 9169 dynamic_linker='OS/2 ld.exe' 9170 shlibpath_var=LIBPATH 9171 ;; 9172 9173osf3* | osf4* | osf5*) 9174 version_type=osf 9175 need_lib_prefix=no 9176 need_version=no 9177 soname_spec='${libname}${release}${shared_ext}$major' 9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9179 shlibpath_var=LD_LIBRARY_PATH 9180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9182 ;; 9183 9184rdos*) 9185 dynamic_linker=no 9186 ;; 9187 9188solaris*) 9189 version_type=linux 9190 need_lib_prefix=no 9191 need_version=no 9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9193 soname_spec='${libname}${release}${shared_ext}$major' 9194 shlibpath_var=LD_LIBRARY_PATH 9195 shlibpath_overrides_runpath=yes 9196 hardcode_into_libs=yes 9197 # ldd complains unless libraries are executable 9198 postinstall_cmds='chmod +x $lib' 9199 ;; 9200 9201sunos4*) 9202 version_type=sunos 9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9205 shlibpath_var=LD_LIBRARY_PATH 9206 shlibpath_overrides_runpath=yes 9207 if test "$with_gnu_ld" = yes; then 9208 need_lib_prefix=no 9209 fi 9210 need_version=yes 9211 ;; 9212 9213sysv4 | sysv4.3*) 9214 version_type=linux 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9216 soname_spec='${libname}${release}${shared_ext}$major' 9217 shlibpath_var=LD_LIBRARY_PATH 9218 case $host_vendor in 9219 sni) 9220 shlibpath_overrides_runpath=no 9221 need_lib_prefix=no 9222 export_dynamic_flag_spec='${wl}-Blargedynsym' 9223 runpath_var=LD_RUN_PATH 9224 ;; 9225 siemens) 9226 need_lib_prefix=no 9227 ;; 9228 motorola) 9229 need_lib_prefix=no 9230 need_version=no 9231 shlibpath_overrides_runpath=no 9232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9233 ;; 9234 esac 9235 ;; 9236 9237sysv4*MP*) 9238 if test -d /usr/nec ;then 9239 version_type=linux 9240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9241 soname_spec='$libname${shared_ext}.$major' 9242 shlibpath_var=LD_LIBRARY_PATH 9243 fi 9244 ;; 9245 9246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9247 version_type=freebsd-elf 9248 need_lib_prefix=no 9249 need_version=no 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9251 soname_spec='${libname}${release}${shared_ext}$major' 9252 shlibpath_var=LD_LIBRARY_PATH 9253 hardcode_into_libs=yes 9254 if test "$with_gnu_ld" = yes; then 9255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9256 shlibpath_overrides_runpath=no 9257 else 9258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9259 shlibpath_overrides_runpath=yes 9260 case $host_os in 9261 sco3.2v5*) 9262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9263 ;; 9264 esac 9265 fi 9266 sys_lib_dlsearch_path_spec='/usr/lib' 9267 ;; 9268 9269uts4*) 9270 version_type=linux 9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9272 soname_spec='${libname}${release}${shared_ext}$major' 9273 shlibpath_var=LD_LIBRARY_PATH 9274 ;; 9275 9276*) 9277 dynamic_linker=no 9278 ;; 9279esac 9280{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9281echo "${ECHO_T}$dynamic_linker" >&6; } 9282test "$dynamic_linker" = no && can_build_shared=no 9283 9284variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9285if test "$GCC" = yes; then 9286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9287fi 9288 9289{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9290echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9291hardcode_action= 9292if test -n "$hardcode_libdir_flag_spec" || \ 9293 test -n "$runpath_var" || \ 9294 test "X$hardcode_automatic" = "Xyes" ; then 9295 9296 # We can hardcode non-existant directories. 9297 if test "$hardcode_direct" != no && 9298 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9299 # have to relink, otherwise we might link with an installed library 9300 # when we should be linking with a yet-to-be-installed one 9301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9302 test "$hardcode_minus_L" != no; then 9303 # Linking always hardcodes the temporary library directory. 9304 hardcode_action=relink 9305 else 9306 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9307 hardcode_action=immediate 9308 fi 9309else 9310 # We cannot hardcode anything, or else we can only hardcode existing 9311 # directories. 9312 hardcode_action=unsupported 9313fi 9314{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9315echo "${ECHO_T}$hardcode_action" >&6; } 9316 9317if test "$hardcode_action" = relink; then 9318 # Fast installation is not supported 9319 enable_fast_install=no 9320elif test "$shlibpath_overrides_runpath" = yes || 9321 test "$enable_shared" = no; then 9322 # Fast installation is not necessary 9323 enable_fast_install=needless 9324fi 9325 9326striplib= 9327old_striplib= 9328{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9329echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9330if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9332 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9333 { echo "$as_me:$LINENO: result: yes" >&5 9334echo "${ECHO_T}yes" >&6; } 9335else 9336# FIXME - insert some real tests, host_os isn't really good enough 9337 case $host_os in 9338 darwin*) 9339 if test -n "$STRIP" ; then 9340 striplib="$STRIP -x" 9341 old_striplib="$STRIP -S" 9342 { echo "$as_me:$LINENO: result: yes" >&5 9343echo "${ECHO_T}yes" >&6; } 9344 else 9345 { echo "$as_me:$LINENO: result: no" >&5 9346echo "${ECHO_T}no" >&6; } 9347fi 9348 ;; 9349 *) 9350 { echo "$as_me:$LINENO: result: no" >&5 9351echo "${ECHO_T}no" >&6; } 9352 ;; 9353 esac 9354fi 9355 9356if test "x$enable_dlopen" != xyes; then 9357 enable_dlopen=unknown 9358 enable_dlopen_self=unknown 9359 enable_dlopen_self_static=unknown 9360else 9361 lt_cv_dlopen=no 9362 lt_cv_dlopen_libs= 9363 9364 case $host_os in 9365 beos*) 9366 lt_cv_dlopen="load_add_on" 9367 lt_cv_dlopen_libs= 9368 lt_cv_dlopen_self=yes 9369 ;; 9370 9371 mingw* | pw32*) 9372 lt_cv_dlopen="LoadLibrary" 9373 lt_cv_dlopen_libs= 9374 ;; 9375 9376 cygwin*) 9377 lt_cv_dlopen="dlopen" 9378 lt_cv_dlopen_libs= 9379 ;; 9380 9381 darwin*) 9382 # if libdl is installed we need to link against it 9383 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9384echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9385if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9386 echo $ECHO_N "(cached) $ECHO_C" >&6 9387else 9388 ac_check_lib_save_LIBS=$LIBS 9389LIBS="-ldl $LIBS" 9390cat >conftest.$ac_ext <<_ACEOF 9391/* confdefs.h. */ 9392_ACEOF 9393cat confdefs.h >>conftest.$ac_ext 9394cat >>conftest.$ac_ext <<_ACEOF 9395/* end confdefs.h. */ 9396 9397/* Override any GCC internal prototype to avoid an error. 9398 Use char because int might match the return type of a GCC 9399 builtin and then its argument prototype would still apply. */ 9400#ifdef __cplusplus 9401extern "C" 9402#endif 9403char dlopen (); 9404int 9405main () 9406{ 9407return dlopen (); 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412rm -f conftest.$ac_objext conftest$ac_exeext 9413if { (ac_try="$ac_link" 9414case "(($ac_try" in 9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9416 *) ac_try_echo=$ac_try;; 9417esac 9418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9419 (eval "$ac_link") 2>conftest.er1 9420 ac_status=$? 9421 grep -v '^ *+' conftest.er1 >conftest.err 9422 rm -f conftest.er1 9423 cat conftest.err >&5 9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9425 (exit $ac_status); } && { 9426 test -z "$ac_c_werror_flag" || 9427 test ! -s conftest.err 9428 } && test -s conftest$ac_exeext && 9429 $as_test_x conftest$ac_exeext; then 9430 ac_cv_lib_dl_dlopen=yes 9431else 9432 echo "$as_me: failed program was:" >&5 9433sed 's/^/| /' conftest.$ac_ext >&5 9434 9435 ac_cv_lib_dl_dlopen=no 9436fi 9437 9438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9439 conftest$ac_exeext conftest.$ac_ext 9440LIBS=$ac_check_lib_save_LIBS 9441fi 9442{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9443echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9444if test $ac_cv_lib_dl_dlopen = yes; then 9445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9446else 9447 9448 lt_cv_dlopen="dyld" 9449 lt_cv_dlopen_libs= 9450 lt_cv_dlopen_self=yes 9451 9452fi 9453 9454 ;; 9455 9456 *) 9457 { echo "$as_me:$LINENO: checking for shl_load" >&5 9458echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9459if test "${ac_cv_func_shl_load+set}" = set; then 9460 echo $ECHO_N "(cached) $ECHO_C" >&6 9461else 9462 cat >conftest.$ac_ext <<_ACEOF 9463/* confdefs.h. */ 9464_ACEOF 9465cat confdefs.h >>conftest.$ac_ext 9466cat >>conftest.$ac_ext <<_ACEOF 9467/* end confdefs.h. */ 9468/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9469 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9470#define shl_load innocuous_shl_load 9471 9472/* System header to define __stub macros and hopefully few prototypes, 9473 which can conflict with char shl_load (); below. 9474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9475 <limits.h> exists even on freestanding compilers. */ 9476 9477#ifdef __STDC__ 9478# include <limits.h> 9479#else 9480# include <assert.h> 9481#endif 9482 9483#undef shl_load 9484 9485/* Override any GCC internal prototype to avoid an error. 9486 Use char because int might match the return type of a GCC 9487 builtin and then its argument prototype would still apply. */ 9488#ifdef __cplusplus 9489extern "C" 9490#endif 9491char shl_load (); 9492/* The GNU C library defines this for functions which it implements 9493 to always fail with ENOSYS. Some functions are actually named 9494 something starting with __ and the normal name is an alias. */ 9495#if defined __stub_shl_load || defined __stub___shl_load 9496choke me 9497#endif 9498 9499int 9500main () 9501{ 9502return shl_load (); 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507rm -f conftest.$ac_objext conftest$ac_exeext 9508if { (ac_try="$ac_link" 9509case "(($ac_try" in 9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9511 *) ac_try_echo=$ac_try;; 9512esac 9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9514 (eval "$ac_link") 2>conftest.er1 9515 ac_status=$? 9516 grep -v '^ *+' conftest.er1 >conftest.err 9517 rm -f conftest.er1 9518 cat conftest.err >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9520 (exit $ac_status); } && { 9521 test -z "$ac_c_werror_flag" || 9522 test ! -s conftest.err 9523 } && test -s conftest$ac_exeext && 9524 $as_test_x conftest$ac_exeext; then 9525 ac_cv_func_shl_load=yes 9526else 9527 echo "$as_me: failed program was:" >&5 9528sed 's/^/| /' conftest.$ac_ext >&5 9529 9530 ac_cv_func_shl_load=no 9531fi 9532 9533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9534 conftest$ac_exeext conftest.$ac_ext 9535fi 9536{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9537echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9538if test $ac_cv_func_shl_load = yes; then 9539 lt_cv_dlopen="shl_load" 9540else 9541 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9542echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9543if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9544 echo $ECHO_N "(cached) $ECHO_C" >&6 9545else 9546 ac_check_lib_save_LIBS=$LIBS 9547LIBS="-ldld $LIBS" 9548cat >conftest.$ac_ext <<_ACEOF 9549/* confdefs.h. */ 9550_ACEOF 9551cat confdefs.h >>conftest.$ac_ext 9552cat >>conftest.$ac_ext <<_ACEOF 9553/* end confdefs.h. */ 9554 9555/* Override any GCC internal prototype to avoid an error. 9556 Use char because int might match the return type of a GCC 9557 builtin and then its argument prototype would still apply. */ 9558#ifdef __cplusplus 9559extern "C" 9560#endif 9561char shl_load (); 9562int 9563main () 9564{ 9565return shl_load (); 9566 ; 9567 return 0; 9568} 9569_ACEOF 9570rm -f conftest.$ac_objext conftest$ac_exeext 9571if { (ac_try="$ac_link" 9572case "(($ac_try" in 9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9574 *) ac_try_echo=$ac_try;; 9575esac 9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9577 (eval "$ac_link") 2>conftest.er1 9578 ac_status=$? 9579 grep -v '^ *+' conftest.er1 >conftest.err 9580 rm -f conftest.er1 9581 cat conftest.err >&5 9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); } && { 9584 test -z "$ac_c_werror_flag" || 9585 test ! -s conftest.err 9586 } && test -s conftest$ac_exeext && 9587 $as_test_x conftest$ac_exeext; then 9588 ac_cv_lib_dld_shl_load=yes 9589else 9590 echo "$as_me: failed program was:" >&5 9591sed 's/^/| /' conftest.$ac_ext >&5 9592 9593 ac_cv_lib_dld_shl_load=no 9594fi 9595 9596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9597 conftest$ac_exeext conftest.$ac_ext 9598LIBS=$ac_check_lib_save_LIBS 9599fi 9600{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9601echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9602if test $ac_cv_lib_dld_shl_load = yes; then 9603 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9604else 9605 { echo "$as_me:$LINENO: checking for dlopen" >&5 9606echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9607if test "${ac_cv_func_dlopen+set}" = set; then 9608 echo $ECHO_N "(cached) $ECHO_C" >&6 9609else 9610 cat >conftest.$ac_ext <<_ACEOF 9611/* confdefs.h. */ 9612_ACEOF 9613cat confdefs.h >>conftest.$ac_ext 9614cat >>conftest.$ac_ext <<_ACEOF 9615/* end confdefs.h. */ 9616/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9618#define dlopen innocuous_dlopen 9619 9620/* System header to define __stub macros and hopefully few prototypes, 9621 which can conflict with char dlopen (); below. 9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9623 <limits.h> exists even on freestanding compilers. */ 9624 9625#ifdef __STDC__ 9626# include <limits.h> 9627#else 9628# include <assert.h> 9629#endif 9630 9631#undef dlopen 9632 9633/* Override any GCC internal prototype to avoid an error. 9634 Use char because int might match the return type of a GCC 9635 builtin and then its argument prototype would still apply. */ 9636#ifdef __cplusplus 9637extern "C" 9638#endif 9639char dlopen (); 9640/* The GNU C library defines this for functions which it implements 9641 to always fail with ENOSYS. Some functions are actually named 9642 something starting with __ and the normal name is an alias. */ 9643#if defined __stub_dlopen || defined __stub___dlopen 9644choke me 9645#endif 9646 9647int 9648main () 9649{ 9650return dlopen (); 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655rm -f conftest.$ac_objext conftest$ac_exeext 9656if { (ac_try="$ac_link" 9657case "(($ac_try" in 9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9659 *) ac_try_echo=$ac_try;; 9660esac 9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9662 (eval "$ac_link") 2>conftest.er1 9663 ac_status=$? 9664 grep -v '^ *+' conftest.er1 >conftest.err 9665 rm -f conftest.er1 9666 cat conftest.err >&5 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); } && { 9669 test -z "$ac_c_werror_flag" || 9670 test ! -s conftest.err 9671 } && test -s conftest$ac_exeext && 9672 $as_test_x conftest$ac_exeext; then 9673 ac_cv_func_dlopen=yes 9674else 9675 echo "$as_me: failed program was:" >&5 9676sed 's/^/| /' conftest.$ac_ext >&5 9677 9678 ac_cv_func_dlopen=no 9679fi 9680 9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9682 conftest$ac_exeext conftest.$ac_ext 9683fi 9684{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9685echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9686if test $ac_cv_func_dlopen = yes; then 9687 lt_cv_dlopen="dlopen" 9688else 9689 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9690echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9691if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9692 echo $ECHO_N "(cached) $ECHO_C" >&6 9693else 9694 ac_check_lib_save_LIBS=$LIBS 9695LIBS="-ldl $LIBS" 9696cat >conftest.$ac_ext <<_ACEOF 9697/* confdefs.h. */ 9698_ACEOF 9699cat confdefs.h >>conftest.$ac_ext 9700cat >>conftest.$ac_ext <<_ACEOF 9701/* end confdefs.h. */ 9702 9703/* Override any GCC internal prototype to avoid an error. 9704 Use char because int might match the return type of a GCC 9705 builtin and then its argument prototype would still apply. */ 9706#ifdef __cplusplus 9707extern "C" 9708#endif 9709char dlopen (); 9710int 9711main () 9712{ 9713return dlopen (); 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718rm -f conftest.$ac_objext conftest$ac_exeext 9719if { (ac_try="$ac_link" 9720case "(($ac_try" in 9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9722 *) ac_try_echo=$ac_try;; 9723esac 9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9725 (eval "$ac_link") 2>conftest.er1 9726 ac_status=$? 9727 grep -v '^ *+' conftest.er1 >conftest.err 9728 rm -f conftest.er1 9729 cat conftest.err >&5 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 (exit $ac_status); } && { 9732 test -z "$ac_c_werror_flag" || 9733 test ! -s conftest.err 9734 } && test -s conftest$ac_exeext && 9735 $as_test_x conftest$ac_exeext; then 9736 ac_cv_lib_dl_dlopen=yes 9737else 9738 echo "$as_me: failed program was:" >&5 9739sed 's/^/| /' conftest.$ac_ext >&5 9740 9741 ac_cv_lib_dl_dlopen=no 9742fi 9743 9744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9745 conftest$ac_exeext conftest.$ac_ext 9746LIBS=$ac_check_lib_save_LIBS 9747fi 9748{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9750if test $ac_cv_lib_dl_dlopen = yes; then 9751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9752else 9753 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9754echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9755if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9756 echo $ECHO_N "(cached) $ECHO_C" >&6 9757else 9758 ac_check_lib_save_LIBS=$LIBS 9759LIBS="-lsvld $LIBS" 9760cat >conftest.$ac_ext <<_ACEOF 9761/* confdefs.h. */ 9762_ACEOF 9763cat confdefs.h >>conftest.$ac_ext 9764cat >>conftest.$ac_ext <<_ACEOF 9765/* end confdefs.h. */ 9766 9767/* Override any GCC internal prototype to avoid an error. 9768 Use char because int might match the return type of a GCC 9769 builtin and then its argument prototype would still apply. */ 9770#ifdef __cplusplus 9771extern "C" 9772#endif 9773char dlopen (); 9774int 9775main () 9776{ 9777return dlopen (); 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782rm -f conftest.$ac_objext conftest$ac_exeext 9783if { (ac_try="$ac_link" 9784case "(($ac_try" in 9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9786 *) ac_try_echo=$ac_try;; 9787esac 9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9789 (eval "$ac_link") 2>conftest.er1 9790 ac_status=$? 9791 grep -v '^ *+' conftest.er1 >conftest.err 9792 rm -f conftest.er1 9793 cat conftest.err >&5 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); } && { 9796 test -z "$ac_c_werror_flag" || 9797 test ! -s conftest.err 9798 } && test -s conftest$ac_exeext && 9799 $as_test_x conftest$ac_exeext; then 9800 ac_cv_lib_svld_dlopen=yes 9801else 9802 echo "$as_me: failed program was:" >&5 9803sed 's/^/| /' conftest.$ac_ext >&5 9804 9805 ac_cv_lib_svld_dlopen=no 9806fi 9807 9808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9809 conftest$ac_exeext conftest.$ac_ext 9810LIBS=$ac_check_lib_save_LIBS 9811fi 9812{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9813echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9814if test $ac_cv_lib_svld_dlopen = yes; then 9815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9816else 9817 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9818echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9819if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9820 echo $ECHO_N "(cached) $ECHO_C" >&6 9821else 9822 ac_check_lib_save_LIBS=$LIBS 9823LIBS="-ldld $LIBS" 9824cat >conftest.$ac_ext <<_ACEOF 9825/* confdefs.h. */ 9826_ACEOF 9827cat confdefs.h >>conftest.$ac_ext 9828cat >>conftest.$ac_ext <<_ACEOF 9829/* end confdefs.h. */ 9830 9831/* Override any GCC internal prototype to avoid an error. 9832 Use char because int might match the return type of a GCC 9833 builtin and then its argument prototype would still apply. */ 9834#ifdef __cplusplus 9835extern "C" 9836#endif 9837char dld_link (); 9838int 9839main () 9840{ 9841return dld_link (); 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext conftest$ac_exeext 9847if { (ac_try="$ac_link" 9848case "(($ac_try" in 9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9850 *) ac_try_echo=$ac_try;; 9851esac 9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9853 (eval "$ac_link") 2>conftest.er1 9854 ac_status=$? 9855 grep -v '^ *+' conftest.er1 >conftest.err 9856 rm -f conftest.er1 9857 cat conftest.err >&5 9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9859 (exit $ac_status); } && { 9860 test -z "$ac_c_werror_flag" || 9861 test ! -s conftest.err 9862 } && test -s conftest$ac_exeext && 9863 $as_test_x conftest$ac_exeext; then 9864 ac_cv_lib_dld_dld_link=yes 9865else 9866 echo "$as_me: failed program was:" >&5 9867sed 's/^/| /' conftest.$ac_ext >&5 9868 9869 ac_cv_lib_dld_dld_link=no 9870fi 9871 9872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9873 conftest$ac_exeext conftest.$ac_ext 9874LIBS=$ac_check_lib_save_LIBS 9875fi 9876{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9877echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9878if test $ac_cv_lib_dld_dld_link = yes; then 9879 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9880fi 9881 9882 9883fi 9884 9885 9886fi 9887 9888 9889fi 9890 9891 9892fi 9893 9894 9895fi 9896 9897 ;; 9898 esac 9899 9900 if test "x$lt_cv_dlopen" != xno; then 9901 enable_dlopen=yes 9902 else 9903 enable_dlopen=no 9904 fi 9905 9906 case $lt_cv_dlopen in 9907 dlopen) 9908 save_CPPFLAGS="$CPPFLAGS" 9909 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9910 9911 save_LDFLAGS="$LDFLAGS" 9912 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9913 9914 save_LIBS="$LIBS" 9915 LIBS="$lt_cv_dlopen_libs $LIBS" 9916 9917 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9918echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9919if test "${lt_cv_dlopen_self+set}" = set; then 9920 echo $ECHO_N "(cached) $ECHO_C" >&6 9921else 9922 if test "$cross_compiling" = yes; then : 9923 lt_cv_dlopen_self=cross 9924else 9925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9926 lt_status=$lt_dlunknown 9927 cat > conftest.$ac_ext <<EOF 9928#line 9928 "configure" 9929#include "confdefs.h" 9930 9931#if HAVE_DLFCN_H 9932#include <dlfcn.h> 9933#endif 9934 9935#include <stdio.h> 9936 9937#ifdef RTLD_GLOBAL 9938# define LT_DLGLOBAL RTLD_GLOBAL 9939#else 9940# ifdef DL_GLOBAL 9941# define LT_DLGLOBAL DL_GLOBAL 9942# else 9943# define LT_DLGLOBAL 0 9944# endif 9945#endif 9946 9947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9948 find out it does not work in some platform. */ 9949#ifndef LT_DLLAZY_OR_NOW 9950# ifdef RTLD_LAZY 9951# define LT_DLLAZY_OR_NOW RTLD_LAZY 9952# else 9953# ifdef DL_LAZY 9954# define LT_DLLAZY_OR_NOW DL_LAZY 9955# else 9956# ifdef RTLD_NOW 9957# define LT_DLLAZY_OR_NOW RTLD_NOW 9958# else 9959# ifdef DL_NOW 9960# define LT_DLLAZY_OR_NOW DL_NOW 9961# else 9962# define LT_DLLAZY_OR_NOW 0 9963# endif 9964# endif 9965# endif 9966# endif 9967#endif 9968 9969#ifdef __cplusplus 9970extern "C" void exit (int); 9971#endif 9972 9973void fnord() { int i=42;} 9974int main () 9975{ 9976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9977 int status = $lt_dlunknown; 9978 9979 if (self) 9980 { 9981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9983 /* dlclose (self); */ 9984 } 9985 else 9986 puts (dlerror ()); 9987 9988 exit (status); 9989} 9990EOF 9991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9992 (eval $ac_link) 2>&5 9993 ac_status=$? 9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9996 (./conftest; exit; ) >&5 2>/dev/null 9997 lt_status=$? 9998 case x$lt_status in 9999 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10000 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10001 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10002 esac 10003 else : 10004 # compilation failed 10005 lt_cv_dlopen_self=no 10006 fi 10007fi 10008rm -fr conftest* 10009 10010 10011fi 10012{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10013echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10014 10015 if test "x$lt_cv_dlopen_self" = xyes; then 10016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10017 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10018echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10019if test "${lt_cv_dlopen_self_static+set}" = set; then 10020 echo $ECHO_N "(cached) $ECHO_C" >&6 10021else 10022 if test "$cross_compiling" = yes; then : 10023 lt_cv_dlopen_self_static=cross 10024else 10025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10026 lt_status=$lt_dlunknown 10027 cat > conftest.$ac_ext <<EOF 10028#line 10028 "configure" 10029#include "confdefs.h" 10030 10031#if HAVE_DLFCN_H 10032#include <dlfcn.h> 10033#endif 10034 10035#include <stdio.h> 10036 10037#ifdef RTLD_GLOBAL 10038# define LT_DLGLOBAL RTLD_GLOBAL 10039#else 10040# ifdef DL_GLOBAL 10041# define LT_DLGLOBAL DL_GLOBAL 10042# else 10043# define LT_DLGLOBAL 0 10044# endif 10045#endif 10046 10047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10048 find out it does not work in some platform. */ 10049#ifndef LT_DLLAZY_OR_NOW 10050# ifdef RTLD_LAZY 10051# define LT_DLLAZY_OR_NOW RTLD_LAZY 10052# else 10053# ifdef DL_LAZY 10054# define LT_DLLAZY_OR_NOW DL_LAZY 10055# else 10056# ifdef RTLD_NOW 10057# define LT_DLLAZY_OR_NOW RTLD_NOW 10058# else 10059# ifdef DL_NOW 10060# define LT_DLLAZY_OR_NOW DL_NOW 10061# else 10062# define LT_DLLAZY_OR_NOW 0 10063# endif 10064# endif 10065# endif 10066# endif 10067#endif 10068 10069#ifdef __cplusplus 10070extern "C" void exit (int); 10071#endif 10072 10073void fnord() { int i=42;} 10074int main () 10075{ 10076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10077 int status = $lt_dlunknown; 10078 10079 if (self) 10080 { 10081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10083 /* dlclose (self); */ 10084 } 10085 else 10086 puts (dlerror ()); 10087 10088 exit (status); 10089} 10090EOF 10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10092 (eval $ac_link) 2>&5 10093 ac_status=$? 10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10096 (./conftest; exit; ) >&5 2>/dev/null 10097 lt_status=$? 10098 case x$lt_status in 10099 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10100 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10101 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10102 esac 10103 else : 10104 # compilation failed 10105 lt_cv_dlopen_self_static=no 10106 fi 10107fi 10108rm -fr conftest* 10109 10110 10111fi 10112{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10113echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10114 fi 10115 10116 CPPFLAGS="$save_CPPFLAGS" 10117 LDFLAGS="$save_LDFLAGS" 10118 LIBS="$save_LIBS" 10119 ;; 10120 esac 10121 10122 case $lt_cv_dlopen_self in 10123 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10124 *) enable_dlopen_self=unknown ;; 10125 esac 10126 10127 case $lt_cv_dlopen_self_static in 10128 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10129 *) enable_dlopen_self_static=unknown ;; 10130 esac 10131fi 10132 10133 10134# Report which library types will actually be built 10135{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10136echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10137{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10138echo "${ECHO_T}$can_build_shared" >&6; } 10139 10140{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10141echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10142test "$can_build_shared" = "no" && enable_shared=no 10143 10144# On AIX, shared libraries and static libraries use the same namespace, and 10145# are all built from PIC. 10146case $host_os in 10147aix3*) 10148 test "$enable_shared" = yes && enable_static=no 10149 if test -n "$RANLIB"; then 10150 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10151 postinstall_cmds='$RANLIB $lib' 10152 fi 10153 ;; 10154 10155aix4* | aix5*) 10156 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10157 test "$enable_shared" = yes && enable_static=no 10158 fi 10159 ;; 10160esac 10161{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10162echo "${ECHO_T}$enable_shared" >&6; } 10163 10164{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10165echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10166# Make sure either enable_shared or enable_static is yes. 10167test "$enable_shared" = yes || enable_static=yes 10168{ echo "$as_me:$LINENO: result: $enable_static" >&5 10169echo "${ECHO_T}$enable_static" >&6; } 10170 10171# The else clause should only fire when bootstrapping the 10172# libtool distribution, otherwise you forgot to ship ltmain.sh 10173# with your package, and you will get complaints that there are 10174# no rules to generate ltmain.sh. 10175if test -f "$ltmain"; then 10176 # See if we are running on zsh, and set the options which allow our commands through 10177 # without removal of \ escapes. 10178 if test -n "${ZSH_VERSION+set}" ; then 10179 setopt NO_GLOB_SUBST 10180 fi 10181 # Now quote all the things that may contain metacharacters while being 10182 # careful not to overquote the AC_SUBSTed values. We take copies of the 10183 # variables and quote the copies for generation of the libtool script. 10184 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10185 SED SHELL STRIP \ 10186 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10187 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10188 deplibs_check_method reload_flag reload_cmds need_locks \ 10189 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10190 lt_cv_sys_global_symbol_to_c_name_address \ 10191 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10192 old_postinstall_cmds old_postuninstall_cmds \ 10193 compiler \ 10194 CC \ 10195 LD \ 10196 lt_prog_compiler_wl \ 10197 lt_prog_compiler_pic \ 10198 lt_prog_compiler_static \ 10199 lt_prog_compiler_no_builtin_flag \ 10200 export_dynamic_flag_spec \ 10201 thread_safe_flag_spec \ 10202 whole_archive_flag_spec \ 10203 enable_shared_with_static_runtimes \ 10204 old_archive_cmds \ 10205 old_archive_from_new_cmds \ 10206 predep_objects \ 10207 postdep_objects \ 10208 predeps \ 10209 postdeps \ 10210 compiler_lib_search_path \ 10211 archive_cmds \ 10212 archive_expsym_cmds \ 10213 postinstall_cmds \ 10214 postuninstall_cmds \ 10215 old_archive_from_expsyms_cmds \ 10216 allow_undefined_flag \ 10217 no_undefined_flag \ 10218 export_symbols_cmds \ 10219 hardcode_libdir_flag_spec \ 10220 hardcode_libdir_flag_spec_ld \ 10221 hardcode_libdir_separator \ 10222 hardcode_automatic \ 10223 module_cmds \ 10224 module_expsym_cmds \ 10225 lt_cv_prog_compiler_c_o \ 10226 fix_srcfile_path \ 10227 exclude_expsyms \ 10228 include_expsyms; do 10229 10230 case $var in 10231 old_archive_cmds | \ 10232 old_archive_from_new_cmds | \ 10233 archive_cmds | \ 10234 archive_expsym_cmds | \ 10235 module_cmds | \ 10236 module_expsym_cmds | \ 10237 old_archive_from_expsyms_cmds | \ 10238 export_symbols_cmds | \ 10239 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10240 postinstall_cmds | postuninstall_cmds | \ 10241 old_postinstall_cmds | old_postuninstall_cmds | \ 10242 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10243 # Double-quote double-evaled strings. 10244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10245 ;; 10246 *) 10247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10248 ;; 10249 esac 10250 done 10251 10252 case $lt_echo in 10253 *'\$0 --fallback-echo"') 10254 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10255 ;; 10256 esac 10257 10258cfgfile="${ofile}T" 10259 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10260 $rm -f "$cfgfile" 10261 { echo "$as_me:$LINENO: creating $ofile" >&5 10262echo "$as_me: creating $ofile" >&6;} 10263 10264 cat <<__EOF__ >> "$cfgfile" 10265#! $SHELL 10266 10267# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10268# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10269# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10270# 10271# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10272# Free Software Foundation, Inc. 10273# 10274# This file is part of GNU Libtool: 10275# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10276# 10277# This program is free software; you can redistribute it and/or modify 10278# it under the terms of the GNU General Public License as published by 10279# the Free Software Foundation; either version 2 of the License, or 10280# (at your option) any later version. 10281# 10282# This program is distributed in the hope that it will be useful, but 10283# WITHOUT ANY WARRANTY; without even the implied warranty of 10284# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10285# General Public License for more details. 10286# 10287# You should have received a copy of the GNU General Public License 10288# along with this program; if not, write to the Free Software 10289# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10290# 10291# As a special exception to the GNU General Public License, if you 10292# distribute this file as part of a program that contains a 10293# configuration script generated by Autoconf, you may include it under 10294# the same distribution terms that you use for the rest of that program. 10295 10296# A sed program that does not truncate output. 10297SED=$lt_SED 10298 10299# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10300Xsed="$SED -e 1s/^X//" 10301 10302# The HP-UX ksh and POSIX shell print the target directory to stdout 10303# if CDPATH is set. 10304(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10305 10306# The names of the tagged configurations supported by this script. 10307available_tags= 10308 10309# ### BEGIN LIBTOOL CONFIG 10310 10311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10312 10313# Shell to use when invoking shell scripts. 10314SHELL=$lt_SHELL 10315 10316# Whether or not to build shared libraries. 10317build_libtool_libs=$enable_shared 10318 10319# Whether or not to build static libraries. 10320build_old_libs=$enable_static 10321 10322# Whether or not to add -lc for building shared libraries. 10323build_libtool_need_lc=$archive_cmds_need_lc 10324 10325# Whether or not to disallow shared libs when runtime libs are static 10326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10327 10328# Whether or not to optimize for fast installation. 10329fast_install=$enable_fast_install 10330 10331# The host system. 10332host_alias=$host_alias 10333host=$host 10334host_os=$host_os 10335 10336# The build system. 10337build_alias=$build_alias 10338build=$build 10339build_os=$build_os 10340 10341# An echo program that does not interpret backslashes. 10342echo=$lt_echo 10343 10344# The archiver. 10345AR=$lt_AR 10346AR_FLAGS=$lt_AR_FLAGS 10347 10348# A C compiler. 10349LTCC=$lt_LTCC 10350 10351# LTCC compiler flags. 10352LTCFLAGS=$lt_LTCFLAGS 10353 10354# A language-specific compiler. 10355CC=$lt_compiler 10356 10357# Is the compiler the GNU C compiler? 10358with_gcc=$GCC 10359 10360# An ERE matcher. 10361EGREP=$lt_EGREP 10362 10363# The linker used to build libraries. 10364LD=$lt_LD 10365 10366# Whether we need hard or soft links. 10367LN_S=$lt_LN_S 10368 10369# A BSD-compatible nm program. 10370NM=$lt_NM 10371 10372# A symbol stripping program 10373STRIP=$lt_STRIP 10374 10375# Used to examine libraries when file_magic_cmd begins "file" 10376MAGIC_CMD=$MAGIC_CMD 10377 10378# Used on cygwin: DLL creation program. 10379DLLTOOL="$DLLTOOL" 10380 10381# Used on cygwin: object dumper. 10382OBJDUMP="$OBJDUMP" 10383 10384# Used on cygwin: assembler. 10385AS="$AS" 10386 10387# The name of the directory that contains temporary libtool files. 10388objdir=$objdir 10389 10390# How to create reloadable object files. 10391reload_flag=$lt_reload_flag 10392reload_cmds=$lt_reload_cmds 10393 10394# How to pass a linker flag through the compiler. 10395wl=$lt_lt_prog_compiler_wl 10396 10397# Object file suffix (normally "o"). 10398objext="$ac_objext" 10399 10400# Old archive suffix (normally "a"). 10401libext="$libext" 10402 10403# Shared library suffix (normally ".so"). 10404shrext_cmds='$shrext_cmds' 10405 10406# Executable file suffix (normally ""). 10407exeext="$exeext" 10408 10409# Additional compiler flags for building library objects. 10410pic_flag=$lt_lt_prog_compiler_pic 10411pic_mode=$pic_mode 10412 10413# What is the maximum length of a command? 10414max_cmd_len=$lt_cv_sys_max_cmd_len 10415 10416# Does compiler simultaneously support -c and -o options? 10417compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10418 10419# Must we lock files when doing compilation? 10420need_locks=$lt_need_locks 10421 10422# Do we need the lib prefix for modules? 10423need_lib_prefix=$need_lib_prefix 10424 10425# Do we need a version for libraries? 10426need_version=$need_version 10427 10428# Whether dlopen is supported. 10429dlopen_support=$enable_dlopen 10430 10431# Whether dlopen of programs is supported. 10432dlopen_self=$enable_dlopen_self 10433 10434# Whether dlopen of statically linked programs is supported. 10435dlopen_self_static=$enable_dlopen_self_static 10436 10437# Compiler flag to prevent dynamic linking. 10438link_static_flag=$lt_lt_prog_compiler_static 10439 10440# Compiler flag to turn off builtin functions. 10441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10442 10443# Compiler flag to allow reflexive dlopens. 10444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10445 10446# Compiler flag to generate shared objects directly from archives. 10447whole_archive_flag_spec=$lt_whole_archive_flag_spec 10448 10449# Compiler flag to generate thread-safe objects. 10450thread_safe_flag_spec=$lt_thread_safe_flag_spec 10451 10452# Library versioning type. 10453version_type=$version_type 10454 10455# Format of library name prefix. 10456libname_spec=$lt_libname_spec 10457 10458# List of archive names. First name is the real one, the rest are links. 10459# The last name is the one that the linker finds with -lNAME. 10460library_names_spec=$lt_library_names_spec 10461 10462# The coded name of the library, if different from the real name. 10463soname_spec=$lt_soname_spec 10464 10465# Commands used to build and install an old-style archive. 10466RANLIB=$lt_RANLIB 10467old_archive_cmds=$lt_old_archive_cmds 10468old_postinstall_cmds=$lt_old_postinstall_cmds 10469old_postuninstall_cmds=$lt_old_postuninstall_cmds 10470 10471# Create an old-style archive from a shared archive. 10472old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10473 10474# Create a temporary old-style archive to link instead of a shared archive. 10475old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10476 10477# Commands used to build and install a shared archive. 10478archive_cmds=$lt_archive_cmds 10479archive_expsym_cmds=$lt_archive_expsym_cmds 10480postinstall_cmds=$lt_postinstall_cmds 10481postuninstall_cmds=$lt_postuninstall_cmds 10482 10483# Commands used to build a loadable module (assumed same as above if empty) 10484module_cmds=$lt_module_cmds 10485module_expsym_cmds=$lt_module_expsym_cmds 10486 10487# Commands to strip libraries. 10488old_striplib=$lt_old_striplib 10489striplib=$lt_striplib 10490 10491# Dependencies to place before the objects being linked to create a 10492# shared library. 10493predep_objects=$lt_predep_objects 10494 10495# Dependencies to place after the objects being linked to create a 10496# shared library. 10497postdep_objects=$lt_postdep_objects 10498 10499# Dependencies to place before the objects being linked to create a 10500# shared library. 10501predeps=$lt_predeps 10502 10503# Dependencies to place after the objects being linked to create a 10504# shared library. 10505postdeps=$lt_postdeps 10506 10507# The library search path used internally by the compiler when linking 10508# a shared library. 10509compiler_lib_search_path=$lt_compiler_lib_search_path 10510 10511# Method to check whether dependent libraries are shared objects. 10512deplibs_check_method=$lt_deplibs_check_method 10513 10514# Command to use when deplibs_check_method == file_magic. 10515file_magic_cmd=$lt_file_magic_cmd 10516 10517# Flag that allows shared libraries with undefined symbols to be built. 10518allow_undefined_flag=$lt_allow_undefined_flag 10519 10520# Flag that forces no undefined symbols. 10521no_undefined_flag=$lt_no_undefined_flag 10522 10523# Commands used to finish a libtool library installation in a directory. 10524finish_cmds=$lt_finish_cmds 10525 10526# Same as above, but a single script fragment to be evaled but not shown. 10527finish_eval=$lt_finish_eval 10528 10529# Take the output of nm and produce a listing of raw symbols and C names. 10530global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10531 10532# Transform the output of nm in a proper C declaration 10533global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10534 10535# Transform the output of nm in a C name address pair 10536global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10537 10538# This is the shared library runtime path variable. 10539runpath_var=$runpath_var 10540 10541# This is the shared library path variable. 10542shlibpath_var=$shlibpath_var 10543 10544# Is shlibpath searched before the hard-coded library search path? 10545shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10546 10547# How to hardcode a shared library path into an executable. 10548hardcode_action=$hardcode_action 10549 10550# Whether we should hardcode library paths into libraries. 10551hardcode_into_libs=$hardcode_into_libs 10552 10553# Flag to hardcode \$libdir into a binary during linking. 10554# This must work even if \$libdir does not exist. 10555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10556 10557# If ld is used when linking, flag to hardcode \$libdir into 10558# a binary during linking. This must work even if \$libdir does 10559# not exist. 10560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10561 10562# Whether we need a single -rpath flag with a separated argument. 10563hardcode_libdir_separator=$lt_hardcode_libdir_separator 10564 10565# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10566# resulting binary. 10567hardcode_direct=$hardcode_direct 10568 10569# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10570# resulting binary. 10571hardcode_minus_L=$hardcode_minus_L 10572 10573# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10574# the resulting binary. 10575hardcode_shlibpath_var=$hardcode_shlibpath_var 10576 10577# Set to yes if building a shared library automatically hardcodes DIR into the library 10578# and all subsequent libraries and executables linked against it. 10579hardcode_automatic=$hardcode_automatic 10580 10581# Variables whose values should be saved in libtool wrapper scripts and 10582# restored at relink time. 10583variables_saved_for_relink="$variables_saved_for_relink" 10584 10585# Whether libtool must link a program against all its dependency libraries. 10586link_all_deplibs=$link_all_deplibs 10587 10588# Compile-time system search path for libraries 10589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10590 10591# Run-time system search path for libraries 10592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10593 10594# Fix the shell variable \$srcfile for the compiler. 10595fix_srcfile_path=$lt_fix_srcfile_path 10596 10597# Set to yes if exported symbols are required. 10598always_export_symbols=$always_export_symbols 10599 10600# The commands to list exported symbols. 10601export_symbols_cmds=$lt_export_symbols_cmds 10602 10603# The commands to extract the exported symbol list from a shared archive. 10604extract_expsyms_cmds=$lt_extract_expsyms_cmds 10605 10606# Symbols that should not be listed in the preloaded symbols. 10607exclude_expsyms=$lt_exclude_expsyms 10608 10609# Symbols that must always be exported. 10610include_expsyms=$lt_include_expsyms 10611 10612# ### END LIBTOOL CONFIG 10613 10614__EOF__ 10615 10616 10617 case $host_os in 10618 aix3*) 10619 cat <<\EOF >> "$cfgfile" 10620 10621# AIX sometimes has problems with the GCC collect2 program. For some 10622# reason, if we set the COLLECT_NAMES environment variable, the problems 10623# vanish in a puff of smoke. 10624if test "X${COLLECT_NAMES+set}" != Xset; then 10625 COLLECT_NAMES= 10626 export COLLECT_NAMES 10627fi 10628EOF 10629 ;; 10630 esac 10631 10632 # We use sed instead of cat because bash on DJGPP gets confused if 10633 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10634 # text mode, it properly converts lines to CR/LF. This bash problem 10635 # is reportedly fixed, but why not run on old versions too? 10636 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10637 10638 mv -f "$cfgfile" "$ofile" || \ 10639 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10640 chmod +x "$ofile" 10641 10642else 10643 # If there is no Makefile yet, we rely on a make rule to execute 10644 # `config.status --recheck' to rerun these tests and create the 10645 # libtool script then. 10646 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10647 if test -f "$ltmain_in"; then 10648 test -f Makefile && make "$ltmain" 10649 fi 10650fi 10651 10652 10653ac_ext=c 10654ac_cpp='$CPP $CPPFLAGS' 10655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10657ac_compiler_gnu=$ac_cv_c_compiler_gnu 10658 10659CC="$lt_save_CC" 10660 10661 10662# Check whether --with-tags was given. 10663if test "${with_tags+set}" = set; then 10664 withval=$with_tags; tagnames="$withval" 10665fi 10666 10667 10668if test -f "$ltmain" && test -n "$tagnames"; then 10669 if test ! -f "${ofile}"; then 10670 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10671echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10672 fi 10673 10674 if test -z "$LTCC"; then 10675 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10676 if test -z "$LTCC"; then 10677 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10678echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10679 else 10680 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10681echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10682 fi 10683 fi 10684 if test -z "$LTCFLAGS"; then 10685 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10686 fi 10687 10688 # Extract list of available tagged configurations in $ofile. 10689 # Note that this assumes the entire list is on one line. 10690 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10691 10692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10693 for tagname in $tagnames; do 10694 IFS="$lt_save_ifs" 10695 # Check whether tagname contains only valid characters 10696 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10697 "") ;; 10698 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10699echo "$as_me: error: invalid tag name: $tagname" >&2;} 10700 { (exit 1); exit 1; }; } 10701 ;; 10702 esac 10703 10704 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10705 then 10706 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10707echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10708 { (exit 1); exit 1; }; } 10709 fi 10710 10711 # Update the list of available tags. 10712 if test -n "$tagname"; then 10713 echo appending configuration tag \"$tagname\" to $ofile 10714 10715 case $tagname in 10716 CXX) 10717 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10718 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10719 (test "X$CXX" != "Xg++"))) ; then 10720 ac_ext=cpp 10721ac_cpp='$CXXCPP $CPPFLAGS' 10722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10725 10726 10727 10728 10729archive_cmds_need_lc_CXX=no 10730allow_undefined_flag_CXX= 10731always_export_symbols_CXX=no 10732archive_expsym_cmds_CXX= 10733export_dynamic_flag_spec_CXX= 10734hardcode_direct_CXX=no 10735hardcode_libdir_flag_spec_CXX= 10736hardcode_libdir_flag_spec_ld_CXX= 10737hardcode_libdir_separator_CXX= 10738hardcode_minus_L_CXX=no 10739hardcode_shlibpath_var_CXX=unsupported 10740hardcode_automatic_CXX=no 10741module_cmds_CXX= 10742module_expsym_cmds_CXX= 10743link_all_deplibs_CXX=unknown 10744old_archive_cmds_CXX=$old_archive_cmds 10745no_undefined_flag_CXX= 10746whole_archive_flag_spec_CXX= 10747enable_shared_with_static_runtimes_CXX=no 10748 10749# Dependencies to place before and after the object being linked: 10750predep_objects_CXX= 10751postdep_objects_CXX= 10752predeps_CXX= 10753postdeps_CXX= 10754compiler_lib_search_path_CXX= 10755 10756# Source file extension for C++ test sources. 10757ac_ext=cpp 10758 10759# Object file extension for compiled C++ test sources. 10760objext=o 10761objext_CXX=$objext 10762 10763# Code to be used in simple compile tests 10764lt_simple_compile_test_code="int some_variable = 0;" 10765 10766# Code to be used in simple link tests 10767lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10768 10769# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10770 10771# If no C compiler was specified, use CC. 10772LTCC=${LTCC-"$CC"} 10773 10774# If no C compiler flags were specified, use CFLAGS. 10775LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10776 10777# Allow CC to be a program name with arguments. 10778compiler=$CC 10779 10780 10781# save warnings/boilerplate of simple test code 10782ac_outfile=conftest.$ac_objext 10783echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10785_lt_compiler_boilerplate=`cat conftest.err` 10786$rm conftest* 10787 10788ac_outfile=conftest.$ac_objext 10789echo "$lt_simple_link_test_code" >conftest.$ac_ext 10790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10791_lt_linker_boilerplate=`cat conftest.err` 10792$rm conftest* 10793 10794 10795# Allow CC to be a program name with arguments. 10796lt_save_CC=$CC 10797lt_save_LD=$LD 10798lt_save_GCC=$GCC 10799GCC=$GXX 10800lt_save_with_gnu_ld=$with_gnu_ld 10801lt_save_path_LD=$lt_cv_path_LD 10802if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10803 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10804else 10805 $as_unset lt_cv_prog_gnu_ld 10806fi 10807if test -n "${lt_cv_path_LDCXX+set}"; then 10808 lt_cv_path_LD=$lt_cv_path_LDCXX 10809else 10810 $as_unset lt_cv_path_LD 10811fi 10812test -z "${LDCXX+set}" || LD=$LDCXX 10813CC=${CXX-"c++"} 10814compiler=$CC 10815compiler_CXX=$CC 10816for cc_temp in $compiler""; do 10817 case $cc_temp in 10818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10820 \-*) ;; 10821 *) break;; 10822 esac 10823done 10824cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10825 10826 10827# We don't want -fno-exception wen compiling C++ code, so set the 10828# no_builtin_flag separately 10829if test "$GXX" = yes; then 10830 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10831else 10832 lt_prog_compiler_no_builtin_flag_CXX= 10833fi 10834 10835if test "$GXX" = yes; then 10836 # Set up default GNU C++ configuration 10837 10838 10839# Check whether --with-gnu-ld was given. 10840if test "${with_gnu_ld+set}" = set; then 10841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10842else 10843 with_gnu_ld=no 10844fi 10845 10846ac_prog=ld 10847if test "$GCC" = yes; then 10848 # Check if gcc -print-prog-name=ld gives a path. 10849 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10850echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10851 case $host in 10852 *-*-mingw*) 10853 # gcc leaves a trailing carriage return which upsets mingw 10854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10855 *) 10856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10857 esac 10858 case $ac_prog in 10859 # Accept absolute paths. 10860 [\\/]* | ?:[\\/]*) 10861 re_direlt='/[^/][^/]*/\.\./' 10862 # Canonicalize the pathname of ld 10863 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10864 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10865 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10866 done 10867 test -z "$LD" && LD="$ac_prog" 10868 ;; 10869 "") 10870 # If it fails, then pretend we aren't using GCC. 10871 ac_prog=ld 10872 ;; 10873 *) 10874 # If it is relative, then search for the first ld in PATH. 10875 with_gnu_ld=unknown 10876 ;; 10877 esac 10878elif test "$with_gnu_ld" = yes; then 10879 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10880echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10881else 10882 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10883echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10884fi 10885if test "${lt_cv_path_LD+set}" = set; then 10886 echo $ECHO_N "(cached) $ECHO_C" >&6 10887else 10888 if test -z "$LD"; then 10889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10890 for ac_dir in $PATH; do 10891 IFS="$lt_save_ifs" 10892 test -z "$ac_dir" && ac_dir=. 10893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10894 lt_cv_path_LD="$ac_dir/$ac_prog" 10895 # Check to see if the program is GNU ld. I'd rather use --version, 10896 # but apparently some variants of GNU ld only accept -v. 10897 # Break only if it was the GNU/non-GNU ld that we prefer. 10898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10899 *GNU* | *'with BFD'*) 10900 test "$with_gnu_ld" != no && break 10901 ;; 10902 *) 10903 test "$with_gnu_ld" != yes && break 10904 ;; 10905 esac 10906 fi 10907 done 10908 IFS="$lt_save_ifs" 10909else 10910 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10911fi 10912fi 10913 10914LD="$lt_cv_path_LD" 10915if test -n "$LD"; then 10916 { echo "$as_me:$LINENO: result: $LD" >&5 10917echo "${ECHO_T}$LD" >&6; } 10918else 10919 { echo "$as_me:$LINENO: result: no" >&5 10920echo "${ECHO_T}no" >&6; } 10921fi 10922test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10923echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10924 { (exit 1); exit 1; }; } 10925{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10926echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10927if test "${lt_cv_prog_gnu_ld+set}" = set; then 10928 echo $ECHO_N "(cached) $ECHO_C" >&6 10929else 10930 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10931case `$LD -v 2>&1 </dev/null` in 10932*GNU* | *'with BFD'*) 10933 lt_cv_prog_gnu_ld=yes 10934 ;; 10935*) 10936 lt_cv_prog_gnu_ld=no 10937 ;; 10938esac 10939fi 10940{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10941echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10942with_gnu_ld=$lt_cv_prog_gnu_ld 10943 10944 10945 10946 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10947 # archiving commands below assume that GNU ld is being used. 10948 if test "$with_gnu_ld" = yes; then 10949 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10950 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' 10951 10952 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10954 10955 # If archive_cmds runs LD, not CC, wlarc should be empty 10956 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10957 # investigate it a little bit more. (MM) 10958 wlarc='${wl}' 10959 10960 # ancient GNU ld didn't support --whole-archive et. al. 10961 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10962 grep 'no-whole-archive' > /dev/null; then 10963 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10964 else 10965 whole_archive_flag_spec_CXX= 10966 fi 10967 else 10968 with_gnu_ld=no 10969 wlarc= 10970 10971 # A generic and very simple default shared library creation 10972 # command for GNU C++ for the case where it uses the native 10973 # linker, instead of GNU ld. If possible, this setting should 10974 # overridden to take advantage of the native linker features on 10975 # the platform it is being used on. 10976 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10977 fi 10978 10979 # Commands to make compiler produce verbose output that lists 10980 # what "hidden" libraries, object files and flags are used when 10981 # linking a shared library. 10982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10983 10984else 10985 GXX=no 10986 with_gnu_ld=no 10987 wlarc= 10988fi 10989 10990# PORTME: fill in a description of your system's C++ link characteristics 10991{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10992echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10993ld_shlibs_CXX=yes 10994case $host_os in 10995 aix3*) 10996 # FIXME: insert proper C++ library support 10997 ld_shlibs_CXX=no 10998 ;; 10999 aix4* | aix5*) 11000 if test "$host_cpu" = ia64; then 11001 # On IA64, the linker does run time linking by default, so we don't 11002 # have to do anything special. 11003 aix_use_runtimelinking=no 11004 exp_sym_flag='-Bexport' 11005 no_entry_flag="" 11006 else 11007 aix_use_runtimelinking=no 11008 11009 # Test if we are trying to use run time linking or normal 11010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11011 # need to do runtime linking. 11012 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11013 for ld_flag in $LDFLAGS; do 11014 case $ld_flag in 11015 *-brtl*) 11016 aix_use_runtimelinking=yes 11017 break 11018 ;; 11019 esac 11020 done 11021 ;; 11022 esac 11023 11024 exp_sym_flag='-bexport' 11025 no_entry_flag='-bnoentry' 11026 fi 11027 11028 # When large executables or shared objects are built, AIX ld can 11029 # have problems creating the table of contents. If linking a library 11030 # or program results in "error TOC overflow" add -mminimal-toc to 11031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11033 11034 archive_cmds_CXX='' 11035 hardcode_direct_CXX=yes 11036 hardcode_libdir_separator_CXX=':' 11037 link_all_deplibs_CXX=yes 11038 11039 if test "$GXX" = yes; then 11040 case $host_os in aix4.[012]|aix4.[012].*) 11041 # We only want to do this on AIX 4.2 and lower, the check 11042 # below for broken collect2 doesn't work under 4.3+ 11043 collect2name=`${CC} -print-prog-name=collect2` 11044 if test -f "$collect2name" && \ 11045 strings "$collect2name" | grep resolve_lib_name >/dev/null 11046 then 11047 # We have reworked collect2 11048 : 11049 else 11050 # We have old collect2 11051 hardcode_direct_CXX=unsupported 11052 # It fails to find uninstalled libraries when the uninstalled 11053 # path is not listed in the libpath. Setting hardcode_minus_L 11054 # to unsupported forces relinking 11055 hardcode_minus_L_CXX=yes 11056 hardcode_libdir_flag_spec_CXX='-L$libdir' 11057 hardcode_libdir_separator_CXX= 11058 fi 11059 ;; 11060 esac 11061 shared_flag='-shared' 11062 if test "$aix_use_runtimelinking" = yes; then 11063 shared_flag="$shared_flag "'${wl}-G' 11064 fi 11065 else 11066 # not using gcc 11067 if test "$host_cpu" = ia64; then 11068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11069 # chokes on -Wl,-G. The following line is correct: 11070 shared_flag='-G' 11071 else 11072 if test "$aix_use_runtimelinking" = yes; then 11073 shared_flag='${wl}-G' 11074 else 11075 shared_flag='${wl}-bM:SRE' 11076 fi 11077 fi 11078 fi 11079 11080 # It seems that -bexpall does not export symbols beginning with 11081 # underscore (_), so it is better to generate a list of symbols to export. 11082 always_export_symbols_CXX=yes 11083 if test "$aix_use_runtimelinking" = yes; then 11084 # Warning - without using the other runtime loading flags (-brtl), 11085 # -berok will link without error, but may produce a broken library. 11086 allow_undefined_flag_CXX='-berok' 11087 # Determine the default libpath from the value encoded in an empty executable. 11088 cat >conftest.$ac_ext <<_ACEOF 11089/* confdefs.h. */ 11090_ACEOF 11091cat confdefs.h >>conftest.$ac_ext 11092cat >>conftest.$ac_ext <<_ACEOF 11093/* end confdefs.h. */ 11094 11095int 11096main () 11097{ 11098 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103rm -f conftest.$ac_objext conftest$ac_exeext 11104if { (ac_try="$ac_link" 11105case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11110 (eval "$ac_link") 2>conftest.er1 11111 ac_status=$? 11112 grep -v '^ *+' conftest.er1 >conftest.err 11113 rm -f conftest.er1 11114 cat conftest.err >&5 11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11116 (exit $ac_status); } && { 11117 test -z "$ac_cxx_werror_flag" || 11118 test ! -s conftest.err 11119 } && test -s conftest$ac_exeext && 11120 $as_test_x conftest$ac_exeext; then 11121 11122lt_aix_libpath_sed=' 11123 /Import File Strings/,/^$/ { 11124 /^0/ { 11125 s/^0 *\(.*\)$/\1/ 11126 p 11127 } 11128 }' 11129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11130# Check for a 64-bit object if we didn't find anything. 11131if test -z "$aix_libpath"; then 11132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11133fi 11134else 11135 echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 11139fi 11140 11141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11142 conftest$ac_exeext conftest.$ac_ext 11143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11144 11145 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11146 11147 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" 11148 else 11149 if test "$host_cpu" = ia64; then 11150 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11151 allow_undefined_flag_CXX="-z nodefs" 11152 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" 11153 else 11154 # Determine the default libpath from the value encoded in an empty executable. 11155 cat >conftest.$ac_ext <<_ACEOF 11156/* confdefs.h. */ 11157_ACEOF 11158cat confdefs.h >>conftest.$ac_ext 11159cat >>conftest.$ac_ext <<_ACEOF 11160/* end confdefs.h. */ 11161 11162int 11163main () 11164{ 11165 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170rm -f conftest.$ac_objext conftest$ac_exeext 11171if { (ac_try="$ac_link" 11172case "(($ac_try" in 11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11174 *) ac_try_echo=$ac_try;; 11175esac 11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11177 (eval "$ac_link") 2>conftest.er1 11178 ac_status=$? 11179 grep -v '^ *+' conftest.er1 >conftest.err 11180 rm -f conftest.er1 11181 cat conftest.err >&5 11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11183 (exit $ac_status); } && { 11184 test -z "$ac_cxx_werror_flag" || 11185 test ! -s conftest.err 11186 } && test -s conftest$ac_exeext && 11187 $as_test_x conftest$ac_exeext; then 11188 11189lt_aix_libpath_sed=' 11190 /Import File Strings/,/^$/ { 11191 /^0/ { 11192 s/^0 *\(.*\)$/\1/ 11193 p 11194 } 11195 }' 11196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11197# Check for a 64-bit object if we didn't find anything. 11198if test -z "$aix_libpath"; then 11199 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11200fi 11201else 11202 echo "$as_me: failed program was:" >&5 11203sed 's/^/| /' conftest.$ac_ext >&5 11204 11205 11206fi 11207 11208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11209 conftest$ac_exeext conftest.$ac_ext 11210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11211 11212 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11213 # Warning - without using the other run time loading flags, 11214 # -berok will link without error, but may produce a broken library. 11215 no_undefined_flag_CXX=' ${wl}-bernotok' 11216 allow_undefined_flag_CXX=' ${wl}-berok' 11217 # Exported symbols can be pulled into shared objects from archives 11218 whole_archive_flag_spec_CXX='$convenience' 11219 archive_cmds_need_lc_CXX=yes 11220 # This is similar to how AIX traditionally builds its shared libraries. 11221 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' 11222 fi 11223 fi 11224 ;; 11225 11226 beos*) 11227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11228 allow_undefined_flag_CXX=unsupported 11229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11230 # support --undefined. This deserves some investigation. FIXME 11231 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11232 else 11233 ld_shlibs_CXX=no 11234 fi 11235 ;; 11236 11237 chorus*) 11238 case $cc_basename in 11239 *) 11240 # FIXME: insert proper C++ library support 11241 ld_shlibs_CXX=no 11242 ;; 11243 esac 11244 ;; 11245 11246 cygwin* | mingw* | pw32*) 11247 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11248 # as there is no search path for DLLs. 11249 hardcode_libdir_flag_spec_CXX='-L$libdir' 11250 allow_undefined_flag_CXX=unsupported 11251 always_export_symbols_CXX=no 11252 enable_shared_with_static_runtimes_CXX=yes 11253 11254 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11255 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' 11256 # If the export-symbols file already is a .def file (1st line 11257 # is EXPORTS), use it as is; otherwise, prepend... 11258 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11259 cp $export_symbols $output_objdir/$soname.def; 11260 else 11261 echo EXPORTS > $output_objdir/$soname.def; 11262 cat $export_symbols >> $output_objdir/$soname.def; 11263 fi~ 11264 $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' 11265 else 11266 ld_shlibs_CXX=no 11267 fi 11268 ;; 11269 darwin* | rhapsody*) 11270 case $host_os in 11271 rhapsody* | darwin1.[012]) 11272 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11273 ;; 11274 *) # Darwin 1.3 on 11275 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11276 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11277 else 11278 case ${MACOSX_DEPLOYMENT_TARGET} in 11279 10.[012]) 11280 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11281 ;; 11282 10.*) 11283 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11284 ;; 11285 esac 11286 fi 11287 ;; 11288 esac 11289 archive_cmds_need_lc_CXX=no 11290 hardcode_direct_CXX=no 11291 hardcode_automatic_CXX=yes 11292 hardcode_shlibpath_var_CXX=unsupported 11293 whole_archive_flag_spec_CXX='' 11294 link_all_deplibs_CXX=yes 11295 11296 if test "$GXX" = yes ; then 11297 lt_int_apple_cc_single_mod=no 11298 output_verbose_link_cmd='echo' 11299 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11300 lt_int_apple_cc_single_mod=yes 11301 fi 11302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11303 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11304 else 11305 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' 11306 fi 11307 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11309 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11310 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}' 11311 else 11312 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}' 11313 fi 11314 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}' 11315 else 11316 case $cc_basename in 11317 xlc*) 11318 output_verbose_link_cmd='echo' 11319 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' 11320 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11321 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11322 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}' 11323 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}' 11324 ;; 11325 *) 11326 ld_shlibs_CXX=no 11327 ;; 11328 esac 11329 fi 11330 ;; 11331 11332 dgux*) 11333 case $cc_basename in 11334 ec++*) 11335 # FIXME: insert proper C++ library support 11336 ld_shlibs_CXX=no 11337 ;; 11338 ghcx*) 11339 # Green Hills C++ Compiler 11340 # FIXME: insert proper C++ library support 11341 ld_shlibs_CXX=no 11342 ;; 11343 *) 11344 # FIXME: insert proper C++ library support 11345 ld_shlibs_CXX=no 11346 ;; 11347 esac 11348 ;; 11349 freebsd[12]*) 11350 # C++ shared libraries reported to be fairly broken before switch to ELF 11351 ld_shlibs_CXX=no 11352 ;; 11353 freebsd-elf*) 11354 archive_cmds_need_lc_CXX=no 11355 ;; 11356 freebsd* | dragonfly*) 11357 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11358 # conventions 11359 ld_shlibs_CXX=yes 11360 ;; 11361 gnu*) 11362 ;; 11363 hpux9*) 11364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11365 hardcode_libdir_separator_CXX=: 11366 export_dynamic_flag_spec_CXX='${wl}-E' 11367 hardcode_direct_CXX=yes 11368 hardcode_minus_L_CXX=yes # Not in the search PATH, 11369 # but as the default 11370 # location of the library. 11371 11372 case $cc_basename in 11373 CC*) 11374 # FIXME: insert proper C++ library support 11375 ld_shlibs_CXX=no 11376 ;; 11377 aCC*) 11378 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' 11379 # Commands to make compiler produce verbose output that lists 11380 # what "hidden" libraries, object files and flags are used when 11381 # linking a shared library. 11382 # 11383 # There doesn't appear to be a way to prevent this compiler from 11384 # explicitly linking system object files so we need to strip them 11385 # from the output so that they don't get included in the library 11386 # dependencies. 11387 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' 11388 ;; 11389 *) 11390 if test "$GXX" = yes; then 11391 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' 11392 else 11393 # FIXME: insert proper C++ library support 11394 ld_shlibs_CXX=no 11395 fi 11396 ;; 11397 esac 11398 ;; 11399 hpux10*|hpux11*) 11400 if test $with_gnu_ld = no; then 11401 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11402 hardcode_libdir_separator_CXX=: 11403 11404 case $host_cpu in 11405 hppa*64*|ia64*) ;; 11406 *) 11407 export_dynamic_flag_spec_CXX='${wl}-E' 11408 ;; 11409 esac 11410 fi 11411 case $host_cpu in 11412 hppa*64*|ia64*) 11413 hardcode_direct_CXX=no 11414 hardcode_shlibpath_var_CXX=no 11415 ;; 11416 *) 11417 hardcode_direct_CXX=yes 11418 hardcode_minus_L_CXX=yes # Not in the search PATH, 11419 # but as the default 11420 # location of the library. 11421 ;; 11422 esac 11423 11424 case $cc_basename in 11425 CC*) 11426 # FIXME: insert proper C++ library support 11427 ld_shlibs_CXX=no 11428 ;; 11429 aCC*) 11430 case $host_cpu in 11431 hppa*64*) 11432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11433 ;; 11434 ia64*) 11435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11436 ;; 11437 *) 11438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11439 ;; 11440 esac 11441 # Commands to make compiler produce verbose output that lists 11442 # what "hidden" libraries, object files and flags are used when 11443 # linking a shared library. 11444 # 11445 # There doesn't appear to be a way to prevent this compiler from 11446 # explicitly linking system object files so we need to strip them 11447 # from the output so that they don't get included in the library 11448 # dependencies. 11449 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' 11450 ;; 11451 *) 11452 if test "$GXX" = yes; then 11453 if test $with_gnu_ld = no; then 11454 case $host_cpu in 11455 hppa*64*) 11456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11457 ;; 11458 ia64*) 11459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11460 ;; 11461 *) 11462 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' 11463 ;; 11464 esac 11465 fi 11466 else 11467 # FIXME: insert proper C++ library support 11468 ld_shlibs_CXX=no 11469 fi 11470 ;; 11471 esac 11472 ;; 11473 interix[3-9]*) 11474 hardcode_direct_CXX=no 11475 hardcode_shlibpath_var_CXX=no 11476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11477 export_dynamic_flag_spec_CXX='${wl}-E' 11478 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11479 # Instead, shared libraries are loaded at an image base (0x10000000 by 11480 # default) and relocated if they conflict, which is a slow very memory 11481 # consuming and fragmenting process. To avoid this, we pick a random, 11482 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11483 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11484 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' 11485 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' 11486 ;; 11487 irix5* | irix6*) 11488 case $cc_basename in 11489 CC*) 11490 # SGI C++ 11491 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' 11492 11493 # Archives containing C++ object files must be created using 11494 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11495 # necessary to make sure instantiated templates are included 11496 # in the archive. 11497 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11498 ;; 11499 *) 11500 if test "$GXX" = yes; then 11501 if test "$with_gnu_ld" = no; then 11502 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' 11503 else 11504 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' 11505 fi 11506 fi 11507 link_all_deplibs_CXX=yes 11508 ;; 11509 esac 11510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11511 hardcode_libdir_separator_CXX=: 11512 ;; 11513 linux* | k*bsd*-gnu) 11514 case $cc_basename in 11515 KCC*) 11516 # Kuck and Associates, Inc. (KAI) C++ Compiler 11517 11518 # KCC will only create a shared library if the output file 11519 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11520 # to its proper name (with version) after linking. 11521 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' 11522 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' 11523 # Commands to make compiler produce verbose output that lists 11524 # what "hidden" libraries, object files and flags are used when 11525 # linking a shared library. 11526 # 11527 # There doesn't appear to be a way to prevent this compiler from 11528 # explicitly linking system object files so we need to strip them 11529 # from the output so that they don't get included in the library 11530 # dependencies. 11531 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' 11532 11533 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11535 11536 # Archives containing C++ object files must be created using 11537 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11538 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11539 ;; 11540 icpc*) 11541 # Intel C++ 11542 with_gnu_ld=yes 11543 # version 8.0 and above of icpc choke on multiply defined symbols 11544 # if we add $predep_objects and $postdep_objects, however 7.1 and 11545 # earlier do not add the objects themselves. 11546 case `$CC -V 2>&1` in 11547 *"Version 7."*) 11548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11549 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' 11550 ;; 11551 *) # Version 8.0 or newer 11552 tmp_idyn= 11553 case $host_cpu in 11554 ia64*) tmp_idyn=' -i_dynamic';; 11555 esac 11556 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11557 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' 11558 ;; 11559 esac 11560 archive_cmds_need_lc_CXX=no 11561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11563 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11564 ;; 11565 pgCC*) 11566 # Portland Group C++ compiler 11567 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11568 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' 11569 11570 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11572 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' 11573 ;; 11574 cxx*) 11575 # Compaq C++ 11576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11577 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' 11578 11579 runpath_var=LD_RUN_PATH 11580 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11581 hardcode_libdir_separator_CXX=: 11582 11583 # Commands to make compiler produce verbose output that lists 11584 # what "hidden" libraries, object files and flags are used when 11585 # linking a shared library. 11586 # 11587 # There doesn't appear to be a way to prevent this compiler from 11588 # explicitly linking system object files so we need to strip them 11589 # from the output so that they don't get included in the library 11590 # dependencies. 11591 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' 11592 ;; 11593 *) 11594 case `$CC -V 2>&1 | sed 5q` in 11595 *Sun\ C*) 11596 # Sun C++ 5.9 11597 no_undefined_flag_CXX=' -zdefs' 11598 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11599 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' 11600 hardcode_libdir_flag_spec_CXX='-R$libdir' 11601 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' 11602 11603 # Not sure whether something based on 11604 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11605 # would be better. 11606 output_verbose_link_cmd='echo' 11607 11608 # Archives containing C++ object files must be created using 11609 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11610 # necessary to make sure instantiated templates are included 11611 # in the archive. 11612 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11613 ;; 11614 esac 11615 ;; 11616 esac 11617 ;; 11618 lynxos*) 11619 # FIXME: insert proper C++ library support 11620 ld_shlibs_CXX=no 11621 ;; 11622 m88k*) 11623 # FIXME: insert proper C++ library support 11624 ld_shlibs_CXX=no 11625 ;; 11626 mvs*) 11627 case $cc_basename in 11628 cxx*) 11629 # FIXME: insert proper C++ library support 11630 ld_shlibs_CXX=no 11631 ;; 11632 *) 11633 # FIXME: insert proper C++ library support 11634 ld_shlibs_CXX=no 11635 ;; 11636 esac 11637 ;; 11638 netbsd* | netbsdelf*-gnu) 11639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11640 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11641 wlarc= 11642 hardcode_libdir_flag_spec_CXX='-R$libdir' 11643 hardcode_direct_CXX=yes 11644 hardcode_shlibpath_var_CXX=no 11645 fi 11646 # Workaround some broken pre-1.5 toolchains 11647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11648 ;; 11649 openbsd2*) 11650 # C++ shared libraries are fairly broken 11651 ld_shlibs_CXX=no 11652 ;; 11653 openbsd*) 11654 if test -f /usr/libexec/ld.so; then 11655 hardcode_direct_CXX=yes 11656 hardcode_shlibpath_var_CXX=no 11657 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11660 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11661 export_dynamic_flag_spec_CXX='${wl}-E' 11662 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11663 fi 11664 output_verbose_link_cmd='echo' 11665 else 11666 ld_shlibs_CXX=no 11667 fi 11668 ;; 11669 osf3*) 11670 case $cc_basename in 11671 KCC*) 11672 # Kuck and Associates, Inc. (KAI) C++ Compiler 11673 11674 # KCC will only create a shared library if the output file 11675 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11676 # to its proper name (with version) after linking. 11677 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' 11678 11679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11680 hardcode_libdir_separator_CXX=: 11681 11682 # Archives containing C++ object files must be created using 11683 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11685 11686 ;; 11687 RCC*) 11688 # Rational C++ 2.4.1 11689 # FIXME: insert proper C++ library support 11690 ld_shlibs_CXX=no 11691 ;; 11692 cxx*) 11693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11694 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' 11695 11696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11697 hardcode_libdir_separator_CXX=: 11698 11699 # Commands to make compiler produce verbose output that lists 11700 # what "hidden" libraries, object files and flags are used when 11701 # linking a shared library. 11702 # 11703 # There doesn't appear to be a way to prevent this compiler from 11704 # explicitly linking system object files so we need to strip them 11705 # from the output so that they don't get included in the library 11706 # dependencies. 11707 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' 11708 ;; 11709 *) 11710 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11711 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11712 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' 11713 11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11715 hardcode_libdir_separator_CXX=: 11716 11717 # Commands to make compiler produce verbose output that lists 11718 # what "hidden" libraries, object files and flags are used when 11719 # linking a shared library. 11720 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11721 11722 else 11723 # FIXME: insert proper C++ library support 11724 ld_shlibs_CXX=no 11725 fi 11726 ;; 11727 esac 11728 ;; 11729 osf4* | osf5*) 11730 case $cc_basename in 11731 KCC*) 11732 # Kuck and Associates, Inc. (KAI) C++ Compiler 11733 11734 # KCC will only create a shared library if the output file 11735 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11736 # to its proper name (with version) after linking. 11737 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' 11738 11739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11740 hardcode_libdir_separator_CXX=: 11741 11742 # Archives containing C++ object files must be created using 11743 # the KAI C++ compiler. 11744 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11745 ;; 11746 RCC*) 11747 # Rational C++ 2.4.1 11748 # FIXME: insert proper C++ library support 11749 ld_shlibs_CXX=no 11750 ;; 11751 cxx*) 11752 allow_undefined_flag_CXX=' -expect_unresolved \*' 11753 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' 11754 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11755 echo "-hidden">> $lib.exp~ 11756 $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~ 11757 $rm $lib.exp' 11758 11759 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11760 hardcode_libdir_separator_CXX=: 11761 11762 # Commands to make compiler produce verbose output that lists 11763 # what "hidden" libraries, object files and flags are used when 11764 # linking a shared library. 11765 # 11766 # There doesn't appear to be a way to prevent this compiler from 11767 # explicitly linking system object files so we need to strip them 11768 # from the output so that they don't get included in the library 11769 # dependencies. 11770 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' 11771 ;; 11772 *) 11773 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11774 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11775 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' 11776 11777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11778 hardcode_libdir_separator_CXX=: 11779 11780 # Commands to make compiler produce verbose output that lists 11781 # what "hidden" libraries, object files and flags are used when 11782 # linking a shared library. 11783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11784 11785 else 11786 # FIXME: insert proper C++ library support 11787 ld_shlibs_CXX=no 11788 fi 11789 ;; 11790 esac 11791 ;; 11792 psos*) 11793 # FIXME: insert proper C++ library support 11794 ld_shlibs_CXX=no 11795 ;; 11796 sunos4*) 11797 case $cc_basename in 11798 CC*) 11799 # Sun C++ 4.x 11800 # FIXME: insert proper C++ library support 11801 ld_shlibs_CXX=no 11802 ;; 11803 lcc*) 11804 # Lucid 11805 # FIXME: insert proper C++ library support 11806 ld_shlibs_CXX=no 11807 ;; 11808 *) 11809 # FIXME: insert proper C++ library support 11810 ld_shlibs_CXX=no 11811 ;; 11812 esac 11813 ;; 11814 solaris*) 11815 case $cc_basename in 11816 CC*) 11817 # Sun C++ 4.2, 5.x and Centerline C++ 11818 archive_cmds_need_lc_CXX=yes 11819 no_undefined_flag_CXX=' -zdefs' 11820 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11822 $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' 11823 11824 hardcode_libdir_flag_spec_CXX='-R$libdir' 11825 hardcode_shlibpath_var_CXX=no 11826 case $host_os in 11827 solaris2.[0-5] | solaris2.[0-5].*) ;; 11828 *) 11829 # The compiler driver will combine and reorder linker options, 11830 # but understands `-z linker_flag'. 11831 # Supported since Solaris 2.6 (maybe 2.5.1?) 11832 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11833 ;; 11834 esac 11835 link_all_deplibs_CXX=yes 11836 11837 output_verbose_link_cmd='echo' 11838 11839 # Archives containing C++ object files must be created using 11840 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11841 # necessary to make sure instantiated templates are included 11842 # in the archive. 11843 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11844 ;; 11845 gcx*) 11846 # Green Hills C++ Compiler 11847 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11848 11849 # The C++ compiler must be used to create the archive. 11850 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11851 ;; 11852 *) 11853 # GNU C++ compiler with Solaris linker 11854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11855 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11856 if $CC --version | grep -v '^2\.7' > /dev/null; then 11857 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11858 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11859 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11860 11861 # Commands to make compiler produce verbose output that lists 11862 # what "hidden" libraries, object files and flags are used when 11863 # linking a shared library. 11864 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11865 else 11866 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11867 # platform. 11868 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11869 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11870 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11871 11872 # Commands to make compiler produce verbose output that lists 11873 # what "hidden" libraries, object files and flags are used when 11874 # linking a shared library. 11875 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11876 fi 11877 11878 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11879 case $host_os in 11880 solaris2.[0-5] | solaris2.[0-5].*) ;; 11881 *) 11882 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11883 ;; 11884 esac 11885 fi 11886 ;; 11887 esac 11888 ;; 11889 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11890 no_undefined_flag_CXX='${wl}-z,text' 11891 archive_cmds_need_lc_CXX=no 11892 hardcode_shlibpath_var_CXX=no 11893 runpath_var='LD_RUN_PATH' 11894 11895 case $cc_basename in 11896 CC*) 11897 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11899 ;; 11900 *) 11901 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11903 ;; 11904 esac 11905 ;; 11906 sysv5* | sco3.2v5* | sco5v6*) 11907 # Note: We can NOT use -z defs as we might desire, because we do not 11908 # link with -lc, and that would cause any symbols used from libc to 11909 # always be unresolved, which means just about no library would 11910 # ever link correctly. If we're not using GNU ld we use -z text 11911 # though, which does catch some bad symbols but isn't as heavy-handed 11912 # as -z defs. 11913 # For security reasons, it is highly recommended that you always 11914 # use absolute paths for naming shared libraries, and exclude the 11915 # DT_RUNPATH tag from executables and libraries. But doing so 11916 # requires that you compile everything twice, which is a pain. 11917 # So that behaviour is only enabled if SCOABSPATH is set to a 11918 # non-empty value in the environment. Most likely only useful for 11919 # creating official distributions of packages. 11920 # This is a hack until libtool officially supports absolute path 11921 # names for shared libraries. 11922 no_undefined_flag_CXX='${wl}-z,text' 11923 allow_undefined_flag_CXX='${wl}-z,nodefs' 11924 archive_cmds_need_lc_CXX=no 11925 hardcode_shlibpath_var_CXX=no 11926 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11927 hardcode_libdir_separator_CXX=':' 11928 link_all_deplibs_CXX=yes 11929 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11930 runpath_var='LD_RUN_PATH' 11931 11932 case $cc_basename in 11933 CC*) 11934 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11935 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11936 ;; 11937 *) 11938 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11939 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11940 ;; 11941 esac 11942 ;; 11943 tandem*) 11944 case $cc_basename in 11945 NCC*) 11946 # NonStop-UX NCC 3.20 11947 # FIXME: insert proper C++ library support 11948 ld_shlibs_CXX=no 11949 ;; 11950 *) 11951 # FIXME: insert proper C++ library support 11952 ld_shlibs_CXX=no 11953 ;; 11954 esac 11955 ;; 11956 vxworks*) 11957 # FIXME: insert proper C++ library support 11958 ld_shlibs_CXX=no 11959 ;; 11960 *) 11961 # FIXME: insert proper C++ library support 11962 ld_shlibs_CXX=no 11963 ;; 11964esac 11965{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11966echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11967test "$ld_shlibs_CXX" = no && can_build_shared=no 11968 11969GCC_CXX="$GXX" 11970LD_CXX="$LD" 11971 11972 11973cat > conftest.$ac_ext <<EOF 11974class Foo 11975{ 11976public: 11977 Foo (void) { a = 0; } 11978private: 11979 int a; 11980}; 11981EOF 11982 11983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11984 (eval $ac_compile) 2>&5 11985 ac_status=$? 11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11987 (exit $ac_status); }; then 11988 # Parse the compiler output and extract the necessary 11989 # objects, libraries and library flags. 11990 11991 # Sentinel used to keep track of whether or not we are before 11992 # the conftest object file. 11993 pre_test_object_deps_done=no 11994 11995 # The `*' in the case matches for architectures that use `case' in 11996 # $output_verbose_cmd can trigger glob expansion during the loop 11997 # eval without this substitution. 11998 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11999 12000 for p in `eval $output_verbose_link_cmd`; do 12001 case $p in 12002 12003 -L* | -R* | -l*) 12004 # Some compilers place space between "-{L,R}" and the path. 12005 # Remove the space. 12006 if test $p = "-L" \ 12007 || test $p = "-R"; then 12008 prev=$p 12009 continue 12010 else 12011 prev= 12012 fi 12013 12014 if test "$pre_test_object_deps_done" = no; then 12015 case $p in 12016 -L* | -R*) 12017 # Internal compiler library paths should come after those 12018 # provided the user. The postdeps already come after the 12019 # user supplied libs so there is no need to process them. 12020 if test -z "$compiler_lib_search_path_CXX"; then 12021 compiler_lib_search_path_CXX="${prev}${p}" 12022 else 12023 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12024 fi 12025 ;; 12026 # The "-l" case would never come before the object being 12027 # linked, so don't bother handling this case. 12028 esac 12029 else 12030 if test -z "$postdeps_CXX"; then 12031 postdeps_CXX="${prev}${p}" 12032 else 12033 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12034 fi 12035 fi 12036 ;; 12037 12038 *.$objext) 12039 # This assumes that the test object file only shows up 12040 # once in the compiler output. 12041 if test "$p" = "conftest.$objext"; then 12042 pre_test_object_deps_done=yes 12043 continue 12044 fi 12045 12046 if test "$pre_test_object_deps_done" = no; then 12047 if test -z "$predep_objects_CXX"; then 12048 predep_objects_CXX="$p" 12049 else 12050 predep_objects_CXX="$predep_objects_CXX $p" 12051 fi 12052 else 12053 if test -z "$postdep_objects_CXX"; then 12054 postdep_objects_CXX="$p" 12055 else 12056 postdep_objects_CXX="$postdep_objects_CXX $p" 12057 fi 12058 fi 12059 ;; 12060 12061 *) ;; # Ignore the rest. 12062 12063 esac 12064 done 12065 12066 # Clean up. 12067 rm -f a.out a.exe 12068else 12069 echo "libtool.m4: error: problem compiling CXX test program" 12070fi 12071 12072$rm -f confest.$objext 12073 12074# PORTME: override above test on systems where it is broken 12075case $host_os in 12076interix[3-9]*) 12077 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12078 # hack all around it, let's just trust "g++" to DTRT. 12079 predep_objects_CXX= 12080 postdep_objects_CXX= 12081 postdeps_CXX= 12082 ;; 12083 12084linux*) 12085 case `$CC -V 2>&1 | sed 5q` in 12086 *Sun\ C*) 12087 # Sun C++ 5.9 12088 # 12089 # The more standards-conforming stlport4 library is 12090 # incompatible with the Cstd library. Avoid specifying 12091 # it if it's in CXXFLAGS. Ignore libCrun as 12092 # -library=stlport4 depends on it. 12093 case " $CXX $CXXFLAGS " in 12094 *" -library=stlport4 "*) 12095 solaris_use_stlport4=yes 12096 ;; 12097 esac 12098 if test "$solaris_use_stlport4" != yes; then 12099 postdeps_CXX='-library=Cstd -library=Crun' 12100 fi 12101 ;; 12102 esac 12103 ;; 12104 12105solaris*) 12106 case $cc_basename in 12107 CC*) 12108 # The more standards-conforming stlport4 library is 12109 # incompatible with the Cstd library. Avoid specifying 12110 # it if it's in CXXFLAGS. Ignore libCrun as 12111 # -library=stlport4 depends on it. 12112 case " $CXX $CXXFLAGS " in 12113 *" -library=stlport4 "*) 12114 solaris_use_stlport4=yes 12115 ;; 12116 esac 12117 12118 # Adding this requires a known-good setup of shared libraries for 12119 # Sun compiler versions before 5.6, else PIC objects from an old 12120 # archive will be linked into the output, leading to subtle bugs. 12121 if test "$solaris_use_stlport4" != yes; then 12122 postdeps_CXX='-library=Cstd -library=Crun' 12123 fi 12124 ;; 12125 esac 12126 ;; 12127esac 12128 12129 12130case " $postdeps_CXX " in 12131*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12132esac 12133 12134lt_prog_compiler_wl_CXX= 12135lt_prog_compiler_pic_CXX= 12136lt_prog_compiler_static_CXX= 12137 12138{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12139echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12140 12141 # C++ specific cases for pic, static, wl, etc. 12142 if test "$GXX" = yes; then 12143 lt_prog_compiler_wl_CXX='-Wl,' 12144 lt_prog_compiler_static_CXX='-static' 12145 12146 case $host_os in 12147 aix*) 12148 # All AIX code is PIC. 12149 if test "$host_cpu" = ia64; then 12150 # AIX 5 now supports IA64 processor 12151 lt_prog_compiler_static_CXX='-Bstatic' 12152 fi 12153 ;; 12154 amigaos*) 12155 # FIXME: we need at least 68020 code to build shared libraries, but 12156 # adding the `-m68020' flag to GCC prevents building anything better, 12157 # like `-m68040'. 12158 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12159 ;; 12160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12161 # PIC is the default for these OSes. 12162 ;; 12163 mingw* | cygwin* | os2* | pw32*) 12164 # This hack is so that the source file can tell whether it is being 12165 # built for inclusion in a dll (and should export symbols for example). 12166 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12167 # (--disable-auto-import) libraries 12168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12169 ;; 12170 darwin* | rhapsody*) 12171 # PIC is the default on this platform 12172 # Common symbols not allowed in MH_DYLIB files 12173 lt_prog_compiler_pic_CXX='-fno-common' 12174 ;; 12175 *djgpp*) 12176 # DJGPP does not support shared libraries at all 12177 lt_prog_compiler_pic_CXX= 12178 ;; 12179 interix[3-9]*) 12180 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12181 # Instead, we relocate shared libraries at runtime. 12182 ;; 12183 sysv4*MP*) 12184 if test -d /usr/nec; then 12185 lt_prog_compiler_pic_CXX=-Kconform_pic 12186 fi 12187 ;; 12188 hpux*) 12189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12190 # not for PA HP-UX. 12191 case $host_cpu in 12192 hppa*64*|ia64*) 12193 ;; 12194 *) 12195 lt_prog_compiler_pic_CXX='-fPIC' 12196 ;; 12197 esac 12198 ;; 12199 *) 12200 lt_prog_compiler_pic_CXX='-fPIC' 12201 ;; 12202 esac 12203 else 12204 case $host_os in 12205 aix4* | aix5*) 12206 # All AIX code is PIC. 12207 if test "$host_cpu" = ia64; then 12208 # AIX 5 now supports IA64 processor 12209 lt_prog_compiler_static_CXX='-Bstatic' 12210 else 12211 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12212 fi 12213 ;; 12214 chorus*) 12215 case $cc_basename in 12216 cxch68*) 12217 # Green Hills C++ Compiler 12218 # _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" 12219 ;; 12220 esac 12221 ;; 12222 darwin*) 12223 # PIC is the default on this platform 12224 # Common symbols not allowed in MH_DYLIB files 12225 case $cc_basename in 12226 xlc*) 12227 lt_prog_compiler_pic_CXX='-qnocommon' 12228 lt_prog_compiler_wl_CXX='-Wl,' 12229 ;; 12230 esac 12231 ;; 12232 dgux*) 12233 case $cc_basename in 12234 ec++*) 12235 lt_prog_compiler_pic_CXX='-KPIC' 12236 ;; 12237 ghcx*) 12238 # Green Hills C++ Compiler 12239 lt_prog_compiler_pic_CXX='-pic' 12240 ;; 12241 *) 12242 ;; 12243 esac 12244 ;; 12245 freebsd* | dragonfly*) 12246 # FreeBSD uses GNU C++ 12247 ;; 12248 hpux9* | hpux10* | hpux11*) 12249 case $cc_basename in 12250 CC*) 12251 lt_prog_compiler_wl_CXX='-Wl,' 12252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12253 if test "$host_cpu" != ia64; then 12254 lt_prog_compiler_pic_CXX='+Z' 12255 fi 12256 ;; 12257 aCC*) 12258 lt_prog_compiler_wl_CXX='-Wl,' 12259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12260 case $host_cpu in 12261 hppa*64*|ia64*) 12262 # +Z the default 12263 ;; 12264 *) 12265 lt_prog_compiler_pic_CXX='+Z' 12266 ;; 12267 esac 12268 ;; 12269 *) 12270 ;; 12271 esac 12272 ;; 12273 interix*) 12274 # This is c89, which is MS Visual C++ (no shared libs) 12275 # Anyone wants to do a port? 12276 ;; 12277 irix5* | irix6* | nonstopux*) 12278 case $cc_basename in 12279 CC*) 12280 lt_prog_compiler_wl_CXX='-Wl,' 12281 lt_prog_compiler_static_CXX='-non_shared' 12282 # CC pic flag -KPIC is the default. 12283 ;; 12284 *) 12285 ;; 12286 esac 12287 ;; 12288 linux* | k*bsd*-gnu) 12289 case $cc_basename in 12290 KCC*) 12291 # KAI C++ Compiler 12292 lt_prog_compiler_wl_CXX='--backend -Wl,' 12293 lt_prog_compiler_pic_CXX='-fPIC' 12294 ;; 12295 icpc* | ecpc*) 12296 # Intel C++ 12297 lt_prog_compiler_wl_CXX='-Wl,' 12298 lt_prog_compiler_pic_CXX='-KPIC' 12299 lt_prog_compiler_static_CXX='-static' 12300 ;; 12301 pgCC*) 12302 # Portland Group C++ compiler. 12303 lt_prog_compiler_wl_CXX='-Wl,' 12304 lt_prog_compiler_pic_CXX='-fpic' 12305 lt_prog_compiler_static_CXX='-Bstatic' 12306 ;; 12307 cxx*) 12308 # Compaq C++ 12309 # Make sure the PIC flag is empty. It appears that all Alpha 12310 # Linux and Compaq Tru64 Unix objects are PIC. 12311 lt_prog_compiler_pic_CXX= 12312 lt_prog_compiler_static_CXX='-non_shared' 12313 ;; 12314 *) 12315 case `$CC -V 2>&1 | sed 5q` in 12316 *Sun\ C*) 12317 # Sun C++ 5.9 12318 lt_prog_compiler_pic_CXX='-KPIC' 12319 lt_prog_compiler_static_CXX='-Bstatic' 12320 lt_prog_compiler_wl_CXX='-Qoption ld ' 12321 ;; 12322 esac 12323 ;; 12324 esac 12325 ;; 12326 lynxos*) 12327 ;; 12328 m88k*) 12329 ;; 12330 mvs*) 12331 case $cc_basename in 12332 cxx*) 12333 lt_prog_compiler_pic_CXX='-W c,exportall' 12334 ;; 12335 *) 12336 ;; 12337 esac 12338 ;; 12339 netbsd* | netbsdelf*-gnu) 12340 ;; 12341 osf3* | osf4* | osf5*) 12342 case $cc_basename in 12343 KCC*) 12344 lt_prog_compiler_wl_CXX='--backend -Wl,' 12345 ;; 12346 RCC*) 12347 # Rational C++ 2.4.1 12348 lt_prog_compiler_pic_CXX='-pic' 12349 ;; 12350 cxx*) 12351 # Digital/Compaq C++ 12352 lt_prog_compiler_wl_CXX='-Wl,' 12353 # Make sure the PIC flag is empty. It appears that all Alpha 12354 # Linux and Compaq Tru64 Unix objects are PIC. 12355 lt_prog_compiler_pic_CXX= 12356 lt_prog_compiler_static_CXX='-non_shared' 12357 ;; 12358 *) 12359 ;; 12360 esac 12361 ;; 12362 psos*) 12363 ;; 12364 solaris*) 12365 case $cc_basename in 12366 CC*) 12367 # Sun C++ 4.2, 5.x and Centerline C++ 12368 lt_prog_compiler_pic_CXX='-KPIC' 12369 lt_prog_compiler_static_CXX='-Bstatic' 12370 lt_prog_compiler_wl_CXX='-Qoption ld ' 12371 ;; 12372 gcx*) 12373 # Green Hills C++ Compiler 12374 lt_prog_compiler_pic_CXX='-PIC' 12375 ;; 12376 *) 12377 ;; 12378 esac 12379 ;; 12380 sunos4*) 12381 case $cc_basename in 12382 CC*) 12383 # Sun C++ 4.x 12384 lt_prog_compiler_pic_CXX='-pic' 12385 lt_prog_compiler_static_CXX='-Bstatic' 12386 ;; 12387 lcc*) 12388 # Lucid 12389 lt_prog_compiler_pic_CXX='-pic' 12390 ;; 12391 *) 12392 ;; 12393 esac 12394 ;; 12395 tandem*) 12396 case $cc_basename in 12397 NCC*) 12398 # NonStop-UX NCC 3.20 12399 lt_prog_compiler_pic_CXX='-KPIC' 12400 ;; 12401 *) 12402 ;; 12403 esac 12404 ;; 12405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12406 case $cc_basename in 12407 CC*) 12408 lt_prog_compiler_wl_CXX='-Wl,' 12409 lt_prog_compiler_pic_CXX='-KPIC' 12410 lt_prog_compiler_static_CXX='-Bstatic' 12411 ;; 12412 esac 12413 ;; 12414 vxworks*) 12415 ;; 12416 *) 12417 lt_prog_compiler_can_build_shared_CXX=no 12418 ;; 12419 esac 12420 fi 12421 12422{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12423echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12424 12425# 12426# Check to make sure the PIC flag actually works. 12427# 12428if test -n "$lt_prog_compiler_pic_CXX"; then 12429 12430{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12431echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12432if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12433 echo $ECHO_N "(cached) $ECHO_C" >&6 12434else 12435 lt_prog_compiler_pic_works_CXX=no 12436 ac_outfile=conftest.$ac_objext 12437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12439 # Insert the option either (1) after the last *FLAGS variable, or 12440 # (2) before a word containing "conftest.", or (3) at the end. 12441 # Note that $ac_compile itself does not contain backslashes and begins 12442 # with a dollar sign (not a hyphen), so the echo should work correctly. 12443 # The option is referenced via a variable to avoid confusing sed. 12444 lt_compile=`echo "$ac_compile" | $SED \ 12445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12447 -e 's:$: $lt_compiler_flag:'` 12448 (eval echo "\"\$as_me:12448: $lt_compile\"" >&5) 12449 (eval "$lt_compile" 2>conftest.err) 12450 ac_status=$? 12451 cat conftest.err >&5 12452 echo "$as_me:12452: \$? = $ac_status" >&5 12453 if (exit $ac_status) && test -s "$ac_outfile"; then 12454 # The compiler can only warn and ignore the option if not recognized 12455 # So say no if there are warnings other than the usual output. 12456 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12459 lt_prog_compiler_pic_works_CXX=yes 12460 fi 12461 fi 12462 $rm conftest* 12463 12464fi 12465{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12466echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12467 12468if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12469 case $lt_prog_compiler_pic_CXX in 12470 "" | " "*) ;; 12471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12472 esac 12473else 12474 lt_prog_compiler_pic_CXX= 12475 lt_prog_compiler_can_build_shared_CXX=no 12476fi 12477 12478fi 12479case $host_os in 12480 # For platforms which do not support PIC, -DPIC is meaningless: 12481 *djgpp*) 12482 lt_prog_compiler_pic_CXX= 12483 ;; 12484 *) 12485 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12486 ;; 12487esac 12488 12489# 12490# Check to make sure the static flag actually works. 12491# 12492wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12493{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12494echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12495if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12496 echo $ECHO_N "(cached) $ECHO_C" >&6 12497else 12498 lt_prog_compiler_static_works_CXX=no 12499 save_LDFLAGS="$LDFLAGS" 12500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12501 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12503 # The linker can only warn and ignore the option if not recognized 12504 # So say no if there are warnings 12505 if test -s conftest.err; then 12506 # Append any errors to the config.log. 12507 cat conftest.err 1>&5 12508 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12510 if diff conftest.exp conftest.er2 >/dev/null; then 12511 lt_prog_compiler_static_works_CXX=yes 12512 fi 12513 else 12514 lt_prog_compiler_static_works_CXX=yes 12515 fi 12516 fi 12517 $rm conftest* 12518 LDFLAGS="$save_LDFLAGS" 12519 12520fi 12521{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12522echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12523 12524if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12525 : 12526else 12527 lt_prog_compiler_static_CXX= 12528fi 12529 12530 12531{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12532echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12533if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12534 echo $ECHO_N "(cached) $ECHO_C" >&6 12535else 12536 lt_cv_prog_compiler_c_o_CXX=no 12537 $rm -r conftest 2>/dev/null 12538 mkdir conftest 12539 cd conftest 12540 mkdir out 12541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12542 12543 lt_compiler_flag="-o out/conftest2.$ac_objext" 12544 # Insert the option either (1) after the last *FLAGS variable, or 12545 # (2) before a word containing "conftest.", or (3) at the end. 12546 # Note that $ac_compile itself does not contain backslashes and begins 12547 # with a dollar sign (not a hyphen), so the echo should work correctly. 12548 lt_compile=`echo "$ac_compile" | $SED \ 12549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12551 -e 's:$: $lt_compiler_flag:'` 12552 (eval echo "\"\$as_me:12552: $lt_compile\"" >&5) 12553 (eval "$lt_compile" 2>out/conftest.err) 12554 ac_status=$? 12555 cat out/conftest.err >&5 12556 echo "$as_me:12556: \$? = $ac_status" >&5 12557 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12558 then 12559 # The compiler can only warn and ignore the option if not recognized 12560 # So say no if there are warnings 12561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12564 lt_cv_prog_compiler_c_o_CXX=yes 12565 fi 12566 fi 12567 chmod u+w . 2>&5 12568 $rm conftest* 12569 # SGI C++ compiler will create directory out/ii_files/ for 12570 # template instantiation 12571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12572 $rm out/* && rmdir out 12573 cd .. 12574 rmdir conftest 12575 $rm conftest* 12576 12577fi 12578{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12579echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12580 12581 12582hard_links="nottested" 12583if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12584 # do not overwrite the value of need_locks provided by the user 12585 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12586echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12587 hard_links=yes 12588 $rm conftest* 12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12590 touch conftest.a 12591 ln conftest.a conftest.b 2>&5 || hard_links=no 12592 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12593 { echo "$as_me:$LINENO: result: $hard_links" >&5 12594echo "${ECHO_T}$hard_links" >&6; } 12595 if test "$hard_links" = no; then 12596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12597echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12598 need_locks=warn 12599 fi 12600else 12601 need_locks=no 12602fi 12603 12604{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12605echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12606 12607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12608 case $host_os in 12609 aix4* | aix5*) 12610 # If we're using GNU nm, then we don't want the "-C" option. 12611 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12613 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' 12614 else 12615 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' 12616 fi 12617 ;; 12618 pw32*) 12619 export_symbols_cmds_CXX="$ltdll_cmds" 12620 ;; 12621 cygwin* | mingw*) 12622 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' 12623 ;; 12624 linux* | k*bsd*-gnu) 12625 link_all_deplibs_CXX=no 12626 ;; 12627 *) 12628 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12629 ;; 12630 esac 12631 12632{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12633echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12634test "$ld_shlibs_CXX" = no && can_build_shared=no 12635 12636# 12637# Do we need to explicitly link libc? 12638# 12639case "x$archive_cmds_need_lc_CXX" in 12640x|xyes) 12641 # Assume -lc should be added 12642 archive_cmds_need_lc_CXX=yes 12643 12644 if test "$enable_shared" = yes && test "$GCC" = yes; then 12645 case $archive_cmds_CXX in 12646 *'~'*) 12647 # FIXME: we may have to deal with multi-command sequences. 12648 ;; 12649 '$CC '*) 12650 # Test whether the compiler implicitly links with -lc since on some 12651 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12652 # to ld, don't add -lc before -lgcc. 12653 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12654echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12655 $rm conftest* 12656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12657 12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12659 (eval $ac_compile) 2>&5 12660 ac_status=$? 12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12662 (exit $ac_status); } 2>conftest.err; then 12663 soname=conftest 12664 lib=conftest 12665 libobjs=conftest.$ac_objext 12666 deplibs= 12667 wl=$lt_prog_compiler_wl_CXX 12668 pic_flag=$lt_prog_compiler_pic_CXX 12669 compiler_flags=-v 12670 linker_flags=-v 12671 verstring= 12672 output_objdir=. 12673 libname=conftest 12674 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12675 allow_undefined_flag_CXX= 12676 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12677 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12678 ac_status=$? 12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); } 12681 then 12682 archive_cmds_need_lc_CXX=no 12683 else 12684 archive_cmds_need_lc_CXX=yes 12685 fi 12686 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12687 else 12688 cat conftest.err 1>&5 12689 fi 12690 $rm conftest* 12691 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12692echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12693 ;; 12694 esac 12695 fi 12696 ;; 12697esac 12698 12699{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12700echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12701library_names_spec= 12702libname_spec='lib$name' 12703soname_spec= 12704shrext_cmds=".so" 12705postinstall_cmds= 12706postuninstall_cmds= 12707finish_cmds= 12708finish_eval= 12709shlibpath_var= 12710shlibpath_overrides_runpath=unknown 12711version_type=none 12712dynamic_linker="$host_os ld.so" 12713sys_lib_dlsearch_path_spec="/lib /usr/lib" 12714 12715need_lib_prefix=unknown 12716hardcode_into_libs=no 12717 12718# when you set need_version to no, make sure it does not cause -set_version 12719# flags to be left without arguments 12720need_version=unknown 12721 12722case $host_os in 12723aix3*) 12724 version_type=linux 12725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12726 shlibpath_var=LIBPATH 12727 12728 # AIX 3 has no versioning support, so we append a major version to the name. 12729 soname_spec='${libname}${release}${shared_ext}$major' 12730 ;; 12731 12732aix4* | aix5*) 12733 version_type=linux 12734 need_lib_prefix=no 12735 need_version=no 12736 hardcode_into_libs=yes 12737 if test "$host_cpu" = ia64; then 12738 # AIX 5 supports IA64 12739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12740 shlibpath_var=LD_LIBRARY_PATH 12741 else 12742 # With GCC up to 2.95.x, collect2 would create an import file 12743 # for dependence libraries. The import file would start with 12744 # the line `#! .'. This would cause the generated library to 12745 # depend on `.', always an invalid library. This was fixed in 12746 # development snapshots of GCC prior to 3.0. 12747 case $host_os in 12748 aix4 | aix4.[01] | aix4.[01].*) 12749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12750 echo ' yes ' 12751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12752 : 12753 else 12754 can_build_shared=no 12755 fi 12756 ;; 12757 esac 12758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12759 # soname into executable. Probably we can add versioning support to 12760 # collect2, so additional links can be useful in future. 12761 if test "$aix_use_runtimelinking" = yes; then 12762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12763 # instead of lib<name>.a to let people know that these are not 12764 # typical AIX shared libraries. 12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12766 else 12767 # We preserve .a as extension for shared libraries through AIX4.2 12768 # and later when we are not doing run time linking. 12769 library_names_spec='${libname}${release}.a $libname.a' 12770 soname_spec='${libname}${release}${shared_ext}$major' 12771 fi 12772 shlibpath_var=LIBPATH 12773 fi 12774 ;; 12775 12776amigaos*) 12777 library_names_spec='$libname.ixlibrary $libname.a' 12778 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12779 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' 12780 ;; 12781 12782beos*) 12783 library_names_spec='${libname}${shared_ext}' 12784 dynamic_linker="$host_os ld.so" 12785 shlibpath_var=LIBRARY_PATH 12786 ;; 12787 12788bsdi[45]*) 12789 version_type=linux 12790 need_version=no 12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12792 soname_spec='${libname}${release}${shared_ext}$major' 12793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12794 shlibpath_var=LD_LIBRARY_PATH 12795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12797 # the default ld.so.conf also contains /usr/contrib/lib and 12798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12799 # libtool to hard-code these into programs 12800 ;; 12801 12802cygwin* | mingw* | pw32*) 12803 version_type=windows 12804 shrext_cmds=".dll" 12805 need_version=no 12806 need_lib_prefix=no 12807 12808 case $GCC,$host_os in 12809 yes,cygwin* | yes,mingw* | yes,pw32*) 12810 library_names_spec='$libname.dll.a' 12811 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12812 postinstall_cmds='base_file=`basename \${file}`~ 12813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12814 dldir=$destdir/`dirname \$dlpath`~ 12815 test -d \$dldir || mkdir -p \$dldir~ 12816 $install_prog $dir/$dlname \$dldir/$dlname~ 12817 chmod a+x \$dldir/$dlname' 12818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12819 dlpath=$dir/\$dldll~ 12820 $rm \$dlpath' 12821 shlibpath_overrides_runpath=yes 12822 12823 case $host_os in 12824 cygwin*) 12825 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12828 ;; 12829 mingw*) 12830 # MinGW DLLs use traditional 'lib' prefix 12831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12834 # It is most probably a Windows format PATH printed by 12835 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12836 # path with ; separators, and with drive letters. We can handle the 12837 # drive letters (cygwin fileutils understands them), so leave them, 12838 # especially as we might pass files found there to a mingw objdump, 12839 # which wouldn't understand a cygwinified path. Ahh. 12840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12841 else 12842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12843 fi 12844 ;; 12845 pw32*) 12846 # pw32 DLLs use 'pw' prefix rather than 'lib' 12847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12848 ;; 12849 esac 12850 ;; 12851 12852 *) 12853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12854 ;; 12855 esac 12856 dynamic_linker='Win32 ld.exe' 12857 # FIXME: first we should search . and the directory the executable is in 12858 shlibpath_var=PATH 12859 ;; 12860 12861darwin* | rhapsody*) 12862 dynamic_linker="$host_os dyld" 12863 version_type=darwin 12864 need_lib_prefix=no 12865 need_version=no 12866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12867 soname_spec='${libname}${release}${major}$shared_ext' 12868 shlibpath_overrides_runpath=yes 12869 shlibpath_var=DYLD_LIBRARY_PATH 12870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12871 12872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12873 ;; 12874 12875dgux*) 12876 version_type=linux 12877 need_lib_prefix=no 12878 need_version=no 12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12880 soname_spec='${libname}${release}${shared_ext}$major' 12881 shlibpath_var=LD_LIBRARY_PATH 12882 ;; 12883 12884freebsd1*) 12885 dynamic_linker=no 12886 ;; 12887 12888freebsd* | dragonfly*) 12889 # DragonFly does not have aout. When/if they implement a new 12890 # versioning mechanism, adjust this. 12891 if test -x /usr/bin/objformat; then 12892 objformat=`/usr/bin/objformat` 12893 else 12894 case $host_os in 12895 freebsd[123]*) objformat=aout ;; 12896 *) objformat=elf ;; 12897 esac 12898 fi 12899 version_type=freebsd-$objformat 12900 case $version_type in 12901 freebsd-elf*) 12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12903 need_version=no 12904 need_lib_prefix=no 12905 ;; 12906 freebsd-*) 12907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12908 need_version=yes 12909 ;; 12910 esac 12911 shlibpath_var=LD_LIBRARY_PATH 12912 case $host_os in 12913 freebsd2*) 12914 shlibpath_overrides_runpath=yes 12915 ;; 12916 freebsd3.[01]* | freebsdelf3.[01]*) 12917 shlibpath_overrides_runpath=yes 12918 hardcode_into_libs=yes 12919 ;; 12920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12922 shlibpath_overrides_runpath=no 12923 hardcode_into_libs=yes 12924 ;; 12925 *) # from 4.6 on, and DragonFly 12926 shlibpath_overrides_runpath=yes 12927 hardcode_into_libs=yes 12928 ;; 12929 esac 12930 ;; 12931 12932gnu*) 12933 version_type=linux 12934 need_lib_prefix=no 12935 need_version=no 12936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12937 soname_spec='${libname}${release}${shared_ext}$major' 12938 shlibpath_var=LD_LIBRARY_PATH 12939 hardcode_into_libs=yes 12940 ;; 12941 12942hpux9* | hpux10* | hpux11*) 12943 # Give a soname corresponding to the major version so that dld.sl refuses to 12944 # link against other versions. 12945 version_type=sunos 12946 need_lib_prefix=no 12947 need_version=no 12948 case $host_cpu in 12949 ia64*) 12950 shrext_cmds='.so' 12951 hardcode_into_libs=yes 12952 dynamic_linker="$host_os dld.so" 12953 shlibpath_var=LD_LIBRARY_PATH 12954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12956 soname_spec='${libname}${release}${shared_ext}$major' 12957 if test "X$HPUX_IA64_MODE" = X32; then 12958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12959 else 12960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12961 fi 12962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12963 ;; 12964 hppa*64*) 12965 shrext_cmds='.sl' 12966 hardcode_into_libs=yes 12967 dynamic_linker="$host_os dld.sl" 12968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12971 soname_spec='${libname}${release}${shared_ext}$major' 12972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12974 ;; 12975 *) 12976 shrext_cmds='.sl' 12977 dynamic_linker="$host_os dld.sl" 12978 shlibpath_var=SHLIB_PATH 12979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12981 soname_spec='${libname}${release}${shared_ext}$major' 12982 ;; 12983 esac 12984 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12985 postinstall_cmds='chmod 555 $lib' 12986 ;; 12987 12988interix[3-9]*) 12989 version_type=linux 12990 need_lib_prefix=no 12991 need_version=no 12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12993 soname_spec='${libname}${release}${shared_ext}$major' 12994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12995 shlibpath_var=LD_LIBRARY_PATH 12996 shlibpath_overrides_runpath=no 12997 hardcode_into_libs=yes 12998 ;; 12999 13000irix5* | irix6* | nonstopux*) 13001 case $host_os in 13002 nonstopux*) version_type=nonstopux ;; 13003 *) 13004 if test "$lt_cv_prog_gnu_ld" = yes; then 13005 version_type=linux 13006 else 13007 version_type=irix 13008 fi ;; 13009 esac 13010 need_lib_prefix=no 13011 need_version=no 13012 soname_spec='${libname}${release}${shared_ext}$major' 13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13014 case $host_os in 13015 irix5* | nonstopux*) 13016 libsuff= shlibsuff= 13017 ;; 13018 *) 13019 case $LD in # libtool.m4 will add one of these switches to LD 13020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13021 libsuff= shlibsuff= libmagic=32-bit;; 13022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13023 libsuff=32 shlibsuff=N32 libmagic=N32;; 13024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13025 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13026 *) libsuff= shlibsuff= libmagic=never-match;; 13027 esac 13028 ;; 13029 esac 13030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13031 shlibpath_overrides_runpath=no 13032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13034 hardcode_into_libs=yes 13035 ;; 13036 13037# No shared lib support for Linux oldld, aout, or coff. 13038linux*oldld* | linux*aout* | linux*coff*) 13039 dynamic_linker=no 13040 ;; 13041 13042# This must be Linux ELF. 13043linux* | k*bsd*-gnu) 13044 version_type=linux 13045 need_lib_prefix=no 13046 need_version=no 13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13048 soname_spec='${libname}${release}${shared_ext}$major' 13049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13050 shlibpath_var=LD_LIBRARY_PATH 13051 shlibpath_overrides_runpath=no 13052 # This implies no fast_install, which is unacceptable. 13053 # Some rework will be needed to allow for fast_install 13054 # before this can be enabled. 13055 hardcode_into_libs=yes 13056 13057 # Append ld.so.conf contents to the search path 13058 if test -f /etc/ld.so.conf; then 13059 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' ' '` 13060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13061 fi 13062 13063 # We used to test for /lib/ld.so.1 and disable shared libraries on 13064 # powerpc, because MkLinux only supported shared libraries with the 13065 # GNU dynamic linker. Since this was broken with cross compilers, 13066 # most powerpc-linux boxes support dynamic linking these days and 13067 # people can always --disable-shared, the test was removed, and we 13068 # assume the GNU/Linux dynamic linker is in use. 13069 dynamic_linker='GNU/Linux ld.so' 13070 ;; 13071 13072netbsdelf*-gnu) 13073 version_type=linux 13074 need_lib_prefix=no 13075 need_version=no 13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13077 soname_spec='${libname}${release}${shared_ext}$major' 13078 shlibpath_var=LD_LIBRARY_PATH 13079 shlibpath_overrides_runpath=no 13080 hardcode_into_libs=yes 13081 dynamic_linker='NetBSD ld.elf_so' 13082 ;; 13083 13084netbsd*) 13085 version_type=sunos 13086 need_lib_prefix=no 13087 need_version=no 13088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13091 dynamic_linker='NetBSD (a.out) ld.so' 13092 else 13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13094 soname_spec='${libname}${release}${shared_ext}$major' 13095 dynamic_linker='NetBSD ld.elf_so' 13096 fi 13097 shlibpath_var=LD_LIBRARY_PATH 13098 shlibpath_overrides_runpath=yes 13099 hardcode_into_libs=yes 13100 ;; 13101 13102newsos6) 13103 version_type=linux 13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13105 shlibpath_var=LD_LIBRARY_PATH 13106 shlibpath_overrides_runpath=yes 13107 ;; 13108 13109nto-qnx*) 13110 version_type=linux 13111 need_lib_prefix=no 13112 need_version=no 13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13114 soname_spec='${libname}${release}${shared_ext}$major' 13115 shlibpath_var=LD_LIBRARY_PATH 13116 shlibpath_overrides_runpath=yes 13117 ;; 13118 13119openbsd*) 13120 version_type=sunos 13121 sys_lib_dlsearch_path_spec="/usr/lib" 13122 need_lib_prefix=no 13123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13124 case $host_os in 13125 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13126 *) need_version=no ;; 13127 esac 13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13130 shlibpath_var=LD_LIBRARY_PATH 13131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13132 case $host_os in 13133 openbsd2.[89] | openbsd2.[89].*) 13134 shlibpath_overrides_runpath=no 13135 ;; 13136 *) 13137 shlibpath_overrides_runpath=yes 13138 ;; 13139 esac 13140 else 13141 shlibpath_overrides_runpath=yes 13142 fi 13143 ;; 13144 13145os2*) 13146 libname_spec='$name' 13147 shrext_cmds=".dll" 13148 need_lib_prefix=no 13149 library_names_spec='$libname${shared_ext} $libname.a' 13150 dynamic_linker='OS/2 ld.exe' 13151 shlibpath_var=LIBPATH 13152 ;; 13153 13154osf3* | osf4* | osf5*) 13155 version_type=osf 13156 need_lib_prefix=no 13157 need_version=no 13158 soname_spec='${libname}${release}${shared_ext}$major' 13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13160 shlibpath_var=LD_LIBRARY_PATH 13161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13163 ;; 13164 13165rdos*) 13166 dynamic_linker=no 13167 ;; 13168 13169solaris*) 13170 version_type=linux 13171 need_lib_prefix=no 13172 need_version=no 13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13174 soname_spec='${libname}${release}${shared_ext}$major' 13175 shlibpath_var=LD_LIBRARY_PATH 13176 shlibpath_overrides_runpath=yes 13177 hardcode_into_libs=yes 13178 # ldd complains unless libraries are executable 13179 postinstall_cmds='chmod +x $lib' 13180 ;; 13181 13182sunos4*) 13183 version_type=sunos 13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13186 shlibpath_var=LD_LIBRARY_PATH 13187 shlibpath_overrides_runpath=yes 13188 if test "$with_gnu_ld" = yes; then 13189 need_lib_prefix=no 13190 fi 13191 need_version=yes 13192 ;; 13193 13194sysv4 | sysv4.3*) 13195 version_type=linux 13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13197 soname_spec='${libname}${release}${shared_ext}$major' 13198 shlibpath_var=LD_LIBRARY_PATH 13199 case $host_vendor in 13200 sni) 13201 shlibpath_overrides_runpath=no 13202 need_lib_prefix=no 13203 export_dynamic_flag_spec='${wl}-Blargedynsym' 13204 runpath_var=LD_RUN_PATH 13205 ;; 13206 siemens) 13207 need_lib_prefix=no 13208 ;; 13209 motorola) 13210 need_lib_prefix=no 13211 need_version=no 13212 shlibpath_overrides_runpath=no 13213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13214 ;; 13215 esac 13216 ;; 13217 13218sysv4*MP*) 13219 if test -d /usr/nec ;then 13220 version_type=linux 13221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13222 soname_spec='$libname${shared_ext}.$major' 13223 shlibpath_var=LD_LIBRARY_PATH 13224 fi 13225 ;; 13226 13227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13228 version_type=freebsd-elf 13229 need_lib_prefix=no 13230 need_version=no 13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13232 soname_spec='${libname}${release}${shared_ext}$major' 13233 shlibpath_var=LD_LIBRARY_PATH 13234 hardcode_into_libs=yes 13235 if test "$with_gnu_ld" = yes; then 13236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13237 shlibpath_overrides_runpath=no 13238 else 13239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13240 shlibpath_overrides_runpath=yes 13241 case $host_os in 13242 sco3.2v5*) 13243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13244 ;; 13245 esac 13246 fi 13247 sys_lib_dlsearch_path_spec='/usr/lib' 13248 ;; 13249 13250uts4*) 13251 version_type=linux 13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13253 soname_spec='${libname}${release}${shared_ext}$major' 13254 shlibpath_var=LD_LIBRARY_PATH 13255 ;; 13256 13257*) 13258 dynamic_linker=no 13259 ;; 13260esac 13261{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13262echo "${ECHO_T}$dynamic_linker" >&6; } 13263test "$dynamic_linker" = no && can_build_shared=no 13264 13265variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13266if test "$GCC" = yes; then 13267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13268fi 13269 13270{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13272hardcode_action_CXX= 13273if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13274 test -n "$runpath_var_CXX" || \ 13275 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13276 13277 # We can hardcode non-existant directories. 13278 if test "$hardcode_direct_CXX" != no && 13279 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13280 # have to relink, otherwise we might link with an installed library 13281 # when we should be linking with a yet-to-be-installed one 13282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13283 test "$hardcode_minus_L_CXX" != no; then 13284 # Linking always hardcodes the temporary library directory. 13285 hardcode_action_CXX=relink 13286 else 13287 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13288 hardcode_action_CXX=immediate 13289 fi 13290else 13291 # We cannot hardcode anything, or else we can only hardcode existing 13292 # directories. 13293 hardcode_action_CXX=unsupported 13294fi 13295{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13296echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13297 13298if test "$hardcode_action_CXX" = relink; then 13299 # Fast installation is not supported 13300 enable_fast_install=no 13301elif test "$shlibpath_overrides_runpath" = yes || 13302 test "$enable_shared" = no; then 13303 # Fast installation is not necessary 13304 enable_fast_install=needless 13305fi 13306 13307 13308# The else clause should only fire when bootstrapping the 13309# libtool distribution, otherwise you forgot to ship ltmain.sh 13310# with your package, and you will get complaints that there are 13311# no rules to generate ltmain.sh. 13312if test -f "$ltmain"; then 13313 # See if we are running on zsh, and set the options which allow our commands through 13314 # without removal of \ escapes. 13315 if test -n "${ZSH_VERSION+set}" ; then 13316 setopt NO_GLOB_SUBST 13317 fi 13318 # Now quote all the things that may contain metacharacters while being 13319 # careful not to overquote the AC_SUBSTed values. We take copies of the 13320 # variables and quote the copies for generation of the libtool script. 13321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13322 SED SHELL STRIP \ 13323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13325 deplibs_check_method reload_flag reload_cmds need_locks \ 13326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13327 lt_cv_sys_global_symbol_to_c_name_address \ 13328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13329 old_postinstall_cmds old_postuninstall_cmds \ 13330 compiler_CXX \ 13331 CC_CXX \ 13332 LD_CXX \ 13333 lt_prog_compiler_wl_CXX \ 13334 lt_prog_compiler_pic_CXX \ 13335 lt_prog_compiler_static_CXX \ 13336 lt_prog_compiler_no_builtin_flag_CXX \ 13337 export_dynamic_flag_spec_CXX \ 13338 thread_safe_flag_spec_CXX \ 13339 whole_archive_flag_spec_CXX \ 13340 enable_shared_with_static_runtimes_CXX \ 13341 old_archive_cmds_CXX \ 13342 old_archive_from_new_cmds_CXX \ 13343 predep_objects_CXX \ 13344 postdep_objects_CXX \ 13345 predeps_CXX \ 13346 postdeps_CXX \ 13347 compiler_lib_search_path_CXX \ 13348 archive_cmds_CXX \ 13349 archive_expsym_cmds_CXX \ 13350 postinstall_cmds_CXX \ 13351 postuninstall_cmds_CXX \ 13352 old_archive_from_expsyms_cmds_CXX \ 13353 allow_undefined_flag_CXX \ 13354 no_undefined_flag_CXX \ 13355 export_symbols_cmds_CXX \ 13356 hardcode_libdir_flag_spec_CXX \ 13357 hardcode_libdir_flag_spec_ld_CXX \ 13358 hardcode_libdir_separator_CXX \ 13359 hardcode_automatic_CXX \ 13360 module_cmds_CXX \ 13361 module_expsym_cmds_CXX \ 13362 lt_cv_prog_compiler_c_o_CXX \ 13363 fix_srcfile_path_CXX \ 13364 exclude_expsyms_CXX \ 13365 include_expsyms_CXX; do 13366 13367 case $var in 13368 old_archive_cmds_CXX | \ 13369 old_archive_from_new_cmds_CXX | \ 13370 archive_cmds_CXX | \ 13371 archive_expsym_cmds_CXX | \ 13372 module_cmds_CXX | \ 13373 module_expsym_cmds_CXX | \ 13374 old_archive_from_expsyms_cmds_CXX | \ 13375 export_symbols_cmds_CXX | \ 13376 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13377 postinstall_cmds | postuninstall_cmds | \ 13378 old_postinstall_cmds | old_postuninstall_cmds | \ 13379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13380 # Double-quote double-evaled strings. 13381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13382 ;; 13383 *) 13384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13385 ;; 13386 esac 13387 done 13388 13389 case $lt_echo in 13390 *'\$0 --fallback-echo"') 13391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13392 ;; 13393 esac 13394 13395cfgfile="$ofile" 13396 13397 cat <<__EOF__ >> "$cfgfile" 13398# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13399 13400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13401 13402# Shell to use when invoking shell scripts. 13403SHELL=$lt_SHELL 13404 13405# Whether or not to build shared libraries. 13406build_libtool_libs=$enable_shared 13407 13408# Whether or not to build static libraries. 13409build_old_libs=$enable_static 13410 13411# Whether or not to add -lc for building shared libraries. 13412build_libtool_need_lc=$archive_cmds_need_lc_CXX 13413 13414# Whether or not to disallow shared libs when runtime libs are static 13415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13416 13417# Whether or not to optimize for fast installation. 13418fast_install=$enable_fast_install 13419 13420# The host system. 13421host_alias=$host_alias 13422host=$host 13423host_os=$host_os 13424 13425# The build system. 13426build_alias=$build_alias 13427build=$build 13428build_os=$build_os 13429 13430# An echo program that does not interpret backslashes. 13431echo=$lt_echo 13432 13433# The archiver. 13434AR=$lt_AR 13435AR_FLAGS=$lt_AR_FLAGS 13436 13437# A C compiler. 13438LTCC=$lt_LTCC 13439 13440# LTCC compiler flags. 13441LTCFLAGS=$lt_LTCFLAGS 13442 13443# A language-specific compiler. 13444CC=$lt_compiler_CXX 13445 13446# Is the compiler the GNU C compiler? 13447with_gcc=$GCC_CXX 13448 13449# An ERE matcher. 13450EGREP=$lt_EGREP 13451 13452# The linker used to build libraries. 13453LD=$lt_LD_CXX 13454 13455# Whether we need hard or soft links. 13456LN_S=$lt_LN_S 13457 13458# A BSD-compatible nm program. 13459NM=$lt_NM 13460 13461# A symbol stripping program 13462STRIP=$lt_STRIP 13463 13464# Used to examine libraries when file_magic_cmd begins "file" 13465MAGIC_CMD=$MAGIC_CMD 13466 13467# Used on cygwin: DLL creation program. 13468DLLTOOL="$DLLTOOL" 13469 13470# Used on cygwin: object dumper. 13471OBJDUMP="$OBJDUMP" 13472 13473# Used on cygwin: assembler. 13474AS="$AS" 13475 13476# The name of the directory that contains temporary libtool files. 13477objdir=$objdir 13478 13479# How to create reloadable object files. 13480reload_flag=$lt_reload_flag 13481reload_cmds=$lt_reload_cmds 13482 13483# How to pass a linker flag through the compiler. 13484wl=$lt_lt_prog_compiler_wl_CXX 13485 13486# Object file suffix (normally "o"). 13487objext="$ac_objext" 13488 13489# Old archive suffix (normally "a"). 13490libext="$libext" 13491 13492# Shared library suffix (normally ".so"). 13493shrext_cmds='$shrext_cmds' 13494 13495# Executable file suffix (normally ""). 13496exeext="$exeext" 13497 13498# Additional compiler flags for building library objects. 13499pic_flag=$lt_lt_prog_compiler_pic_CXX 13500pic_mode=$pic_mode 13501 13502# What is the maximum length of a command? 13503max_cmd_len=$lt_cv_sys_max_cmd_len 13504 13505# Does compiler simultaneously support -c and -o options? 13506compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13507 13508# Must we lock files when doing compilation? 13509need_locks=$lt_need_locks 13510 13511# Do we need the lib prefix for modules? 13512need_lib_prefix=$need_lib_prefix 13513 13514# Do we need a version for libraries? 13515need_version=$need_version 13516 13517# Whether dlopen is supported. 13518dlopen_support=$enable_dlopen 13519 13520# Whether dlopen of programs is supported. 13521dlopen_self=$enable_dlopen_self 13522 13523# Whether dlopen of statically linked programs is supported. 13524dlopen_self_static=$enable_dlopen_self_static 13525 13526# Compiler flag to prevent dynamic linking. 13527link_static_flag=$lt_lt_prog_compiler_static_CXX 13528 13529# Compiler flag to turn off builtin functions. 13530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13531 13532# Compiler flag to allow reflexive dlopens. 13533export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13534 13535# Compiler flag to generate shared objects directly from archives. 13536whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13537 13538# Compiler flag to generate thread-safe objects. 13539thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13540 13541# Library versioning type. 13542version_type=$version_type 13543 13544# Format of library name prefix. 13545libname_spec=$lt_libname_spec 13546 13547# List of archive names. First name is the real one, the rest are links. 13548# The last name is the one that the linker finds with -lNAME. 13549library_names_spec=$lt_library_names_spec 13550 13551# The coded name of the library, if different from the real name. 13552soname_spec=$lt_soname_spec 13553 13554# Commands used to build and install an old-style archive. 13555RANLIB=$lt_RANLIB 13556old_archive_cmds=$lt_old_archive_cmds_CXX 13557old_postinstall_cmds=$lt_old_postinstall_cmds 13558old_postuninstall_cmds=$lt_old_postuninstall_cmds 13559 13560# Create an old-style archive from a shared archive. 13561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13562 13563# Create a temporary old-style archive to link instead of a shared archive. 13564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13565 13566# Commands used to build and install a shared archive. 13567archive_cmds=$lt_archive_cmds_CXX 13568archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13569postinstall_cmds=$lt_postinstall_cmds 13570postuninstall_cmds=$lt_postuninstall_cmds 13571 13572# Commands used to build a loadable module (assumed same as above if empty) 13573module_cmds=$lt_module_cmds_CXX 13574module_expsym_cmds=$lt_module_expsym_cmds_CXX 13575 13576# Commands to strip libraries. 13577old_striplib=$lt_old_striplib 13578striplib=$lt_striplib 13579 13580# Dependencies to place before the objects being linked to create a 13581# shared library. 13582predep_objects=$lt_predep_objects_CXX 13583 13584# Dependencies to place after the objects being linked to create a 13585# shared library. 13586postdep_objects=$lt_postdep_objects_CXX 13587 13588# Dependencies to place before the objects being linked to create a 13589# shared library. 13590predeps=$lt_predeps_CXX 13591 13592# Dependencies to place after the objects being linked to create a 13593# shared library. 13594postdeps=$lt_postdeps_CXX 13595 13596# The library search path used internally by the compiler when linking 13597# a shared library. 13598compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13599 13600# Method to check whether dependent libraries are shared objects. 13601deplibs_check_method=$lt_deplibs_check_method 13602 13603# Command to use when deplibs_check_method == file_magic. 13604file_magic_cmd=$lt_file_magic_cmd 13605 13606# Flag that allows shared libraries with undefined symbols to be built. 13607allow_undefined_flag=$lt_allow_undefined_flag_CXX 13608 13609# Flag that forces no undefined symbols. 13610no_undefined_flag=$lt_no_undefined_flag_CXX 13611 13612# Commands used to finish a libtool library installation in a directory. 13613finish_cmds=$lt_finish_cmds 13614 13615# Same as above, but a single script fragment to be evaled but not shown. 13616finish_eval=$lt_finish_eval 13617 13618# Take the output of nm and produce a listing of raw symbols and C names. 13619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13620 13621# Transform the output of nm in a proper C declaration 13622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13623 13624# Transform the output of nm in a C name address pair 13625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13626 13627# This is the shared library runtime path variable. 13628runpath_var=$runpath_var 13629 13630# This is the shared library path variable. 13631shlibpath_var=$shlibpath_var 13632 13633# Is shlibpath searched before the hard-coded library search path? 13634shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13635 13636# How to hardcode a shared library path into an executable. 13637hardcode_action=$hardcode_action_CXX 13638 13639# Whether we should hardcode library paths into libraries. 13640hardcode_into_libs=$hardcode_into_libs 13641 13642# Flag to hardcode \$libdir into a binary during linking. 13643# This must work even if \$libdir does not exist. 13644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13645 13646# If ld is used when linking, flag to hardcode \$libdir into 13647# a binary during linking. This must work even if \$libdir does 13648# not exist. 13649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13650 13651# Whether we need a single -rpath flag with a separated argument. 13652hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13653 13654# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13655# resulting binary. 13656hardcode_direct=$hardcode_direct_CXX 13657 13658# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13659# resulting binary. 13660hardcode_minus_L=$hardcode_minus_L_CXX 13661 13662# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13663# the resulting binary. 13664hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13665 13666# Set to yes if building a shared library automatically hardcodes DIR into the library 13667# and all subsequent libraries and executables linked against it. 13668hardcode_automatic=$hardcode_automatic_CXX 13669 13670# Variables whose values should be saved in libtool wrapper scripts and 13671# restored at relink time. 13672variables_saved_for_relink="$variables_saved_for_relink" 13673 13674# Whether libtool must link a program against all its dependency libraries. 13675link_all_deplibs=$link_all_deplibs_CXX 13676 13677# Compile-time system search path for libraries 13678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13679 13680# Run-time system search path for libraries 13681sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13682 13683# Fix the shell variable \$srcfile for the compiler. 13684fix_srcfile_path=$lt_fix_srcfile_path 13685 13686# Set to yes if exported symbols are required. 13687always_export_symbols=$always_export_symbols_CXX 13688 13689# The commands to list exported symbols. 13690export_symbols_cmds=$lt_export_symbols_cmds_CXX 13691 13692# The commands to extract the exported symbol list from a shared archive. 13693extract_expsyms_cmds=$lt_extract_expsyms_cmds 13694 13695# Symbols that should not be listed in the preloaded symbols. 13696exclude_expsyms=$lt_exclude_expsyms_CXX 13697 13698# Symbols that must always be exported. 13699include_expsyms=$lt_include_expsyms_CXX 13700 13701# ### END LIBTOOL TAG CONFIG: $tagname 13702 13703__EOF__ 13704 13705 13706else 13707 # If there is no Makefile yet, we rely on a make rule to execute 13708 # `config.status --recheck' to rerun these tests and create the 13709 # libtool script then. 13710 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13711 if test -f "$ltmain_in"; then 13712 test -f Makefile && make "$ltmain" 13713 fi 13714fi 13715 13716 13717ac_ext=c 13718ac_cpp='$CPP $CPPFLAGS' 13719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13721ac_compiler_gnu=$ac_cv_c_compiler_gnu 13722 13723CC=$lt_save_CC 13724LDCXX=$LD 13725LD=$lt_save_LD 13726GCC=$lt_save_GCC 13727with_gnu_ldcxx=$with_gnu_ld 13728with_gnu_ld=$lt_save_with_gnu_ld 13729lt_cv_path_LDCXX=$lt_cv_path_LD 13730lt_cv_path_LD=$lt_save_path_LD 13731lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13732lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13733 13734 else 13735 tagname="" 13736 fi 13737 ;; 13738 13739 F77) 13740 if test -n "$F77" && test "X$F77" != "Xno"; then 13741 13742ac_ext=f 13743ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13744ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13745ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13746 13747 13748archive_cmds_need_lc_F77=no 13749allow_undefined_flag_F77= 13750always_export_symbols_F77=no 13751archive_expsym_cmds_F77= 13752export_dynamic_flag_spec_F77= 13753hardcode_direct_F77=no 13754hardcode_libdir_flag_spec_F77= 13755hardcode_libdir_flag_spec_ld_F77= 13756hardcode_libdir_separator_F77= 13757hardcode_minus_L_F77=no 13758hardcode_automatic_F77=no 13759module_cmds_F77= 13760module_expsym_cmds_F77= 13761link_all_deplibs_F77=unknown 13762old_archive_cmds_F77=$old_archive_cmds 13763no_undefined_flag_F77= 13764whole_archive_flag_spec_F77= 13765enable_shared_with_static_runtimes_F77=no 13766 13767# Source file extension for f77 test sources. 13768ac_ext=f 13769 13770# Object file extension for compiled f77 test sources. 13771objext=o 13772objext_F77=$objext 13773 13774# Code to be used in simple compile tests 13775lt_simple_compile_test_code="\ 13776 subroutine t 13777 return 13778 end 13779" 13780 13781# Code to be used in simple link tests 13782lt_simple_link_test_code="\ 13783 program t 13784 end 13785" 13786 13787# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13788 13789# If no C compiler was specified, use CC. 13790LTCC=${LTCC-"$CC"} 13791 13792# If no C compiler flags were specified, use CFLAGS. 13793LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13794 13795# Allow CC to be a program name with arguments. 13796compiler=$CC 13797 13798 13799# save warnings/boilerplate of simple test code 13800ac_outfile=conftest.$ac_objext 13801echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13802eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13803_lt_compiler_boilerplate=`cat conftest.err` 13804$rm conftest* 13805 13806ac_outfile=conftest.$ac_objext 13807echo "$lt_simple_link_test_code" >conftest.$ac_ext 13808eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13809_lt_linker_boilerplate=`cat conftest.err` 13810$rm conftest* 13811 13812 13813# Allow CC to be a program name with arguments. 13814lt_save_CC="$CC" 13815CC=${F77-"f77"} 13816compiler=$CC 13817compiler_F77=$CC 13818for cc_temp in $compiler""; do 13819 case $cc_temp in 13820 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13821 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13822 \-*) ;; 13823 *) break;; 13824 esac 13825done 13826cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13827 13828 13829{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13830echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13831{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13832echo "${ECHO_T}$can_build_shared" >&6; } 13833 13834{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13835echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13836test "$can_build_shared" = "no" && enable_shared=no 13837 13838# On AIX, shared libraries and static libraries use the same namespace, and 13839# are all built from PIC. 13840case $host_os in 13841aix3*) 13842 test "$enable_shared" = yes && enable_static=no 13843 if test -n "$RANLIB"; then 13844 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13845 postinstall_cmds='$RANLIB $lib' 13846 fi 13847 ;; 13848aix4* | aix5*) 13849 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13850 test "$enable_shared" = yes && enable_static=no 13851 fi 13852 ;; 13853esac 13854{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13855echo "${ECHO_T}$enable_shared" >&6; } 13856 13857{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13858echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13859# Make sure either enable_shared or enable_static is yes. 13860test "$enable_shared" = yes || enable_static=yes 13861{ echo "$as_me:$LINENO: result: $enable_static" >&5 13862echo "${ECHO_T}$enable_static" >&6; } 13863 13864GCC_F77="$G77" 13865LD_F77="$LD" 13866 13867lt_prog_compiler_wl_F77= 13868lt_prog_compiler_pic_F77= 13869lt_prog_compiler_static_F77= 13870 13871{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13872echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13873 13874 if test "$GCC" = yes; then 13875 lt_prog_compiler_wl_F77='-Wl,' 13876 lt_prog_compiler_static_F77='-static' 13877 13878 case $host_os in 13879 aix*) 13880 # All AIX code is PIC. 13881 if test "$host_cpu" = ia64; then 13882 # AIX 5 now supports IA64 processor 13883 lt_prog_compiler_static_F77='-Bstatic' 13884 fi 13885 ;; 13886 13887 amigaos*) 13888 # FIXME: we need at least 68020 code to build shared libraries, but 13889 # adding the `-m68020' flag to GCC prevents building anything better, 13890 # like `-m68040'. 13891 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13892 ;; 13893 13894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13895 # PIC is the default for these OSes. 13896 ;; 13897 13898 mingw* | cygwin* | pw32* | os2*) 13899 # This hack is so that the source file can tell whether it is being 13900 # built for inclusion in a dll (and should export symbols for example). 13901 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13902 # (--disable-auto-import) libraries 13903 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13904 ;; 13905 13906 darwin* | rhapsody*) 13907 # PIC is the default on this platform 13908 # Common symbols not allowed in MH_DYLIB files 13909 lt_prog_compiler_pic_F77='-fno-common' 13910 ;; 13911 13912 interix[3-9]*) 13913 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13914 # Instead, we relocate shared libraries at runtime. 13915 ;; 13916 13917 msdosdjgpp*) 13918 # Just because we use GCC doesn't mean we suddenly get shared libraries 13919 # on systems that don't support them. 13920 lt_prog_compiler_can_build_shared_F77=no 13921 enable_shared=no 13922 ;; 13923 13924 sysv4*MP*) 13925 if test -d /usr/nec; then 13926 lt_prog_compiler_pic_F77=-Kconform_pic 13927 fi 13928 ;; 13929 13930 hpux*) 13931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13932 # not for PA HP-UX. 13933 case $host_cpu in 13934 hppa*64*|ia64*) 13935 # +Z the default 13936 ;; 13937 *) 13938 lt_prog_compiler_pic_F77='-fPIC' 13939 ;; 13940 esac 13941 ;; 13942 13943 *) 13944 lt_prog_compiler_pic_F77='-fPIC' 13945 ;; 13946 esac 13947 else 13948 # PORTME Check for flag to pass linker flags through the system compiler. 13949 case $host_os in 13950 aix*) 13951 lt_prog_compiler_wl_F77='-Wl,' 13952 if test "$host_cpu" = ia64; then 13953 # AIX 5 now supports IA64 processor 13954 lt_prog_compiler_static_F77='-Bstatic' 13955 else 13956 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13957 fi 13958 ;; 13959 darwin*) 13960 # PIC is the default on this platform 13961 # Common symbols not allowed in MH_DYLIB files 13962 case $cc_basename in 13963 xlc*) 13964 lt_prog_compiler_pic_F77='-qnocommon' 13965 lt_prog_compiler_wl_F77='-Wl,' 13966 ;; 13967 esac 13968 ;; 13969 13970 mingw* | cygwin* | pw32* | os2*) 13971 # This hack is so that the source file can tell whether it is being 13972 # built for inclusion in a dll (and should export symbols for example). 13973 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13974 ;; 13975 13976 hpux9* | hpux10* | hpux11*) 13977 lt_prog_compiler_wl_F77='-Wl,' 13978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13979 # not for PA HP-UX. 13980 case $host_cpu in 13981 hppa*64*|ia64*) 13982 # +Z the default 13983 ;; 13984 *) 13985 lt_prog_compiler_pic_F77='+Z' 13986 ;; 13987 esac 13988 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13989 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13990 ;; 13991 13992 irix5* | irix6* | nonstopux*) 13993 lt_prog_compiler_wl_F77='-Wl,' 13994 # PIC (with -KPIC) is the default. 13995 lt_prog_compiler_static_F77='-non_shared' 13996 ;; 13997 13998 newsos6) 13999 lt_prog_compiler_pic_F77='-KPIC' 14000 lt_prog_compiler_static_F77='-Bstatic' 14001 ;; 14002 14003 linux* | k*bsd*-gnu) 14004 case $cc_basename in 14005 icc* | ecc*) 14006 lt_prog_compiler_wl_F77='-Wl,' 14007 lt_prog_compiler_pic_F77='-KPIC' 14008 lt_prog_compiler_static_F77='-static' 14009 ;; 14010 pgcc* | pgf77* | pgf90* | pgf95*) 14011 # Portland Group compilers (*not* the Pentium gcc compiler, 14012 # which looks to be a dead project) 14013 lt_prog_compiler_wl_F77='-Wl,' 14014 lt_prog_compiler_pic_F77='-fpic' 14015 lt_prog_compiler_static_F77='-Bstatic' 14016 ;; 14017 ccc*) 14018 lt_prog_compiler_wl_F77='-Wl,' 14019 # All Alpha code is PIC. 14020 lt_prog_compiler_static_F77='-non_shared' 14021 ;; 14022 *) 14023 case `$CC -V 2>&1 | sed 5q` in 14024 *Sun\ C*) 14025 # Sun C 5.9 14026 lt_prog_compiler_pic_F77='-KPIC' 14027 lt_prog_compiler_static_F77='-Bstatic' 14028 lt_prog_compiler_wl_F77='-Wl,' 14029 ;; 14030 *Sun\ F*) 14031 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14032 lt_prog_compiler_pic_F77='-KPIC' 14033 lt_prog_compiler_static_F77='-Bstatic' 14034 lt_prog_compiler_wl_F77='' 14035 ;; 14036 esac 14037 ;; 14038 esac 14039 ;; 14040 14041 osf3* | osf4* | osf5*) 14042 lt_prog_compiler_wl_F77='-Wl,' 14043 # All OSF/1 code is PIC. 14044 lt_prog_compiler_static_F77='-non_shared' 14045 ;; 14046 14047 rdos*) 14048 lt_prog_compiler_static_F77='-non_shared' 14049 ;; 14050 14051 solaris*) 14052 lt_prog_compiler_pic_F77='-KPIC' 14053 lt_prog_compiler_static_F77='-Bstatic' 14054 case $cc_basename in 14055 f77* | f90* | f95*) 14056 lt_prog_compiler_wl_F77='-Qoption ld ';; 14057 *) 14058 lt_prog_compiler_wl_F77='-Wl,';; 14059 esac 14060 ;; 14061 14062 sunos4*) 14063 lt_prog_compiler_wl_F77='-Qoption ld ' 14064 lt_prog_compiler_pic_F77='-PIC' 14065 lt_prog_compiler_static_F77='-Bstatic' 14066 ;; 14067 14068 sysv4 | sysv4.2uw2* | sysv4.3*) 14069 lt_prog_compiler_wl_F77='-Wl,' 14070 lt_prog_compiler_pic_F77='-KPIC' 14071 lt_prog_compiler_static_F77='-Bstatic' 14072 ;; 14073 14074 sysv4*MP*) 14075 if test -d /usr/nec ;then 14076 lt_prog_compiler_pic_F77='-Kconform_pic' 14077 lt_prog_compiler_static_F77='-Bstatic' 14078 fi 14079 ;; 14080 14081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14082 lt_prog_compiler_wl_F77='-Wl,' 14083 lt_prog_compiler_pic_F77='-KPIC' 14084 lt_prog_compiler_static_F77='-Bstatic' 14085 ;; 14086 14087 unicos*) 14088 lt_prog_compiler_wl_F77='-Wl,' 14089 lt_prog_compiler_can_build_shared_F77=no 14090 ;; 14091 14092 uts4*) 14093 lt_prog_compiler_pic_F77='-pic' 14094 lt_prog_compiler_static_F77='-Bstatic' 14095 ;; 14096 14097 *) 14098 lt_prog_compiler_can_build_shared_F77=no 14099 ;; 14100 esac 14101 fi 14102 14103{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14104echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14105 14106# 14107# Check to make sure the PIC flag actually works. 14108# 14109if test -n "$lt_prog_compiler_pic_F77"; then 14110 14111{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14113if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14114 echo $ECHO_N "(cached) $ECHO_C" >&6 14115else 14116 lt_prog_compiler_pic_works_F77=no 14117 ac_outfile=conftest.$ac_objext 14118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14119 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14120 # Insert the option either (1) after the last *FLAGS variable, or 14121 # (2) before a word containing "conftest.", or (3) at the end. 14122 # Note that $ac_compile itself does not contain backslashes and begins 14123 # with a dollar sign (not a hyphen), so the echo should work correctly. 14124 # The option is referenced via a variable to avoid confusing sed. 14125 lt_compile=`echo "$ac_compile" | $SED \ 14126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14128 -e 's:$: $lt_compiler_flag:'` 14129 (eval echo "\"\$as_me:14129: $lt_compile\"" >&5) 14130 (eval "$lt_compile" 2>conftest.err) 14131 ac_status=$? 14132 cat conftest.err >&5 14133 echo "$as_me:14133: \$? = $ac_status" >&5 14134 if (exit $ac_status) && test -s "$ac_outfile"; then 14135 # The compiler can only warn and ignore the option if not recognized 14136 # So say no if there are warnings other than the usual output. 14137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14140 lt_prog_compiler_pic_works_F77=yes 14141 fi 14142 fi 14143 $rm conftest* 14144 14145fi 14146{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14147echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14148 14149if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14150 case $lt_prog_compiler_pic_F77 in 14151 "" | " "*) ;; 14152 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14153 esac 14154else 14155 lt_prog_compiler_pic_F77= 14156 lt_prog_compiler_can_build_shared_F77=no 14157fi 14158 14159fi 14160case $host_os in 14161 # For platforms which do not support PIC, -DPIC is meaningless: 14162 *djgpp*) 14163 lt_prog_compiler_pic_F77= 14164 ;; 14165 *) 14166 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14167 ;; 14168esac 14169 14170# 14171# Check to make sure the static flag actually works. 14172# 14173wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14174{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14176if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14177 echo $ECHO_N "(cached) $ECHO_C" >&6 14178else 14179 lt_prog_compiler_static_works_F77=no 14180 save_LDFLAGS="$LDFLAGS" 14181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14182 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14184 # The linker can only warn and ignore the option if not recognized 14185 # So say no if there are warnings 14186 if test -s conftest.err; then 14187 # Append any errors to the config.log. 14188 cat conftest.err 1>&5 14189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14191 if diff conftest.exp conftest.er2 >/dev/null; then 14192 lt_prog_compiler_static_works_F77=yes 14193 fi 14194 else 14195 lt_prog_compiler_static_works_F77=yes 14196 fi 14197 fi 14198 $rm conftest* 14199 LDFLAGS="$save_LDFLAGS" 14200 14201fi 14202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14203echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14204 14205if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14206 : 14207else 14208 lt_prog_compiler_static_F77= 14209fi 14210 14211 14212{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14214if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14215 echo $ECHO_N "(cached) $ECHO_C" >&6 14216else 14217 lt_cv_prog_compiler_c_o_F77=no 14218 $rm -r conftest 2>/dev/null 14219 mkdir conftest 14220 cd conftest 14221 mkdir out 14222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14223 14224 lt_compiler_flag="-o out/conftest2.$ac_objext" 14225 # Insert the option either (1) after the last *FLAGS variable, or 14226 # (2) before a word containing "conftest.", or (3) at the end. 14227 # Note that $ac_compile itself does not contain backslashes and begins 14228 # with a dollar sign (not a hyphen), so the echo should work correctly. 14229 lt_compile=`echo "$ac_compile" | $SED \ 14230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14232 -e 's:$: $lt_compiler_flag:'` 14233 (eval echo "\"\$as_me:14233: $lt_compile\"" >&5) 14234 (eval "$lt_compile" 2>out/conftest.err) 14235 ac_status=$? 14236 cat out/conftest.err >&5 14237 echo "$as_me:14237: \$? = $ac_status" >&5 14238 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14239 then 14240 # The compiler can only warn and ignore the option if not recognized 14241 # So say no if there are warnings 14242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14245 lt_cv_prog_compiler_c_o_F77=yes 14246 fi 14247 fi 14248 chmod u+w . 2>&5 14249 $rm conftest* 14250 # SGI C++ compiler will create directory out/ii_files/ for 14251 # template instantiation 14252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14253 $rm out/* && rmdir out 14254 cd .. 14255 rmdir conftest 14256 $rm conftest* 14257 14258fi 14259{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14261 14262 14263hard_links="nottested" 14264if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14265 # do not overwrite the value of need_locks provided by the user 14266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14268 hard_links=yes 14269 $rm conftest* 14270 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14271 touch conftest.a 14272 ln conftest.a conftest.b 2>&5 || hard_links=no 14273 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14274 { echo "$as_me:$LINENO: result: $hard_links" >&5 14275echo "${ECHO_T}$hard_links" >&6; } 14276 if test "$hard_links" = no; then 14277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14279 need_locks=warn 14280 fi 14281else 14282 need_locks=no 14283fi 14284 14285{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14287 14288 runpath_var= 14289 allow_undefined_flag_F77= 14290 enable_shared_with_static_runtimes_F77=no 14291 archive_cmds_F77= 14292 archive_expsym_cmds_F77= 14293 old_archive_From_new_cmds_F77= 14294 old_archive_from_expsyms_cmds_F77= 14295 export_dynamic_flag_spec_F77= 14296 whole_archive_flag_spec_F77= 14297 thread_safe_flag_spec_F77= 14298 hardcode_libdir_flag_spec_F77= 14299 hardcode_libdir_flag_spec_ld_F77= 14300 hardcode_libdir_separator_F77= 14301 hardcode_direct_F77=no 14302 hardcode_minus_L_F77=no 14303 hardcode_shlibpath_var_F77=unsupported 14304 link_all_deplibs_F77=unknown 14305 hardcode_automatic_F77=no 14306 module_cmds_F77= 14307 module_expsym_cmds_F77= 14308 always_export_symbols_F77=no 14309 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14310 # include_expsyms should be a list of space-separated symbols to be *always* 14311 # included in the symbol list 14312 include_expsyms_F77= 14313 # exclude_expsyms can be an extended regexp of symbols to exclude 14314 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14316 # as well as any symbol that contains `d'. 14317 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14319 # platforms (ab)use it in PIC code, but their linkers get confused if 14320 # the symbol is explicitly referenced. Since portable code cannot 14321 # rely on this symbol name, it's probably fine to never include it in 14322 # preloaded symbol tables. 14323 extract_expsyms_cmds= 14324 # Just being paranoid about ensuring that cc_basename is set. 14325 for cc_temp in $compiler""; do 14326 case $cc_temp in 14327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14329 \-*) ;; 14330 *) break;; 14331 esac 14332done 14333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14334 14335 case $host_os in 14336 cygwin* | mingw* | pw32*) 14337 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14338 # When not using gcc, we currently assume that we are using 14339 # Microsoft Visual C++. 14340 if test "$GCC" != yes; then 14341 with_gnu_ld=no 14342 fi 14343 ;; 14344 interix*) 14345 # we just hope/assume this is gcc and not c89 (= MSVC++) 14346 with_gnu_ld=yes 14347 ;; 14348 openbsd*) 14349 with_gnu_ld=no 14350 ;; 14351 esac 14352 14353 ld_shlibs_F77=yes 14354 if test "$with_gnu_ld" = yes; then 14355 # If archive_cmds runs LD, not CC, wlarc should be empty 14356 wlarc='${wl}' 14357 14358 # Set some defaults for GNU ld with shared library support. These 14359 # are reset later if shared libraries are not supported. Putting them 14360 # here allows them to be overridden if necessary. 14361 runpath_var=LD_RUN_PATH 14362 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14363 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14364 # ancient GNU ld didn't support --whole-archive et. al. 14365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14366 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14367 else 14368 whole_archive_flag_spec_F77= 14369 fi 14370 supports_anon_versioning=no 14371 case `$LD -v 2>/dev/null` in 14372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14375 *\ 2.11.*) ;; # other 2.11 versions 14376 *) supports_anon_versioning=yes ;; 14377 esac 14378 14379 # See if GNU ld supports shared libraries. 14380 case $host_os in 14381 aix3* | aix4* | aix5*) 14382 # On AIX/PPC, the GNU linker is very broken 14383 if test "$host_cpu" != ia64; then 14384 ld_shlibs_F77=no 14385 cat <<EOF 1>&2 14386 14387*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14388*** to be unable to reliably create shared libraries on AIX. 14389*** Therefore, libtool is disabling shared libraries support. If you 14390*** really care for shared libraries, you may want to modify your PATH 14391*** so that a non-GNU linker is found, and then restart. 14392 14393EOF 14394 fi 14395 ;; 14396 14397 amigaos*) 14398 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)' 14399 hardcode_libdir_flag_spec_F77='-L$libdir' 14400 hardcode_minus_L_F77=yes 14401 14402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14403 # that the semantics of dynamic libraries on AmigaOS, at least up 14404 # to version 4, is to share data among multiple programs linked 14405 # with the same dynamic library. Since this doesn't match the 14406 # behavior of shared libraries on other platforms, we can't use 14407 # them. 14408 ld_shlibs_F77=no 14409 ;; 14410 14411 beos*) 14412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14413 allow_undefined_flag_F77=unsupported 14414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14415 # support --undefined. This deserves some investigation. FIXME 14416 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14417 else 14418 ld_shlibs_F77=no 14419 fi 14420 ;; 14421 14422 cygwin* | mingw* | pw32*) 14423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14424 # as there is no search path for DLLs. 14425 hardcode_libdir_flag_spec_F77='-L$libdir' 14426 allow_undefined_flag_F77=unsupported 14427 always_export_symbols_F77=no 14428 enable_shared_with_static_runtimes_F77=yes 14429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14430 14431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14433 # If the export-symbols file already is a .def file (1st line 14434 # is EXPORTS), use it as is; otherwise, prepend... 14435 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14436 cp $export_symbols $output_objdir/$soname.def; 14437 else 14438 echo EXPORTS > $output_objdir/$soname.def; 14439 cat $export_symbols >> $output_objdir/$soname.def; 14440 fi~ 14441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14442 else 14443 ld_shlibs_F77=no 14444 fi 14445 ;; 14446 14447 interix[3-9]*) 14448 hardcode_direct_F77=no 14449 hardcode_shlibpath_var_F77=no 14450 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14451 export_dynamic_flag_spec_F77='${wl}-E' 14452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14453 # Instead, shared libraries are loaded at an image base (0x10000000 by 14454 # default) and relocated if they conflict, which is a slow very memory 14455 # consuming and fragmenting process. To avoid this, we pick a random, 14456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14457 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14458 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' 14459 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' 14460 ;; 14461 14462 gnu* | linux* | k*bsd*-gnu) 14463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14464 tmp_addflag= 14465 case $cc_basename,$host_cpu in 14466 pgcc*) # Portland Group C compiler 14467 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' 14468 tmp_addflag=' $pic_flag' 14469 ;; 14470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14471 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' 14472 tmp_addflag=' $pic_flag -Mnomain' ;; 14473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14474 tmp_addflag=' -i_dynamic' ;; 14475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14476 tmp_addflag=' -i_dynamic -nofor_main' ;; 14477 ifc* | ifort*) # Intel Fortran compiler 14478 tmp_addflag=' -nofor_main' ;; 14479 esac 14480 case `$CC -V 2>&1 | sed 5q` in 14481 *Sun\ C*) # Sun C 5.9 14482 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' 14483 tmp_sharedflag='-G' ;; 14484 *Sun\ F*) # Sun Fortran 8.3 14485 tmp_sharedflag='-G' ;; 14486 *) 14487 tmp_sharedflag='-shared' ;; 14488 esac 14489 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14490 14491 if test $supports_anon_versioning = yes; then 14492 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14494 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14496 fi 14497 link_all_deplibs_F77=no 14498 else 14499 ld_shlibs_F77=no 14500 fi 14501 ;; 14502 14503 netbsd* | netbsdelf*-gnu) 14504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14505 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14506 wlarc= 14507 else 14508 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14509 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14510 fi 14511 ;; 14512 14513 solaris*) 14514 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14515 ld_shlibs_F77=no 14516 cat <<EOF 1>&2 14517 14518*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14519*** create shared libraries on Solaris systems. Therefore, libtool 14520*** is disabling shared libraries support. We urge you to upgrade GNU 14521*** binutils to release 2.9.1 or newer. Another option is to modify 14522*** your PATH or compiler configuration so that the native linker is 14523*** used, and then restart. 14524 14525EOF 14526 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14527 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14528 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14529 else 14530 ld_shlibs_F77=no 14531 fi 14532 ;; 14533 14534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14535 case `$LD -v 2>&1` in 14536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14537 ld_shlibs_F77=no 14538 cat <<_LT_EOF 1>&2 14539 14540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14541*** reliably create shared libraries on SCO systems. Therefore, libtool 14542*** is disabling shared libraries support. We urge you to upgrade GNU 14543*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14544*** your PATH or compiler configuration so that the native linker is 14545*** used, and then restart. 14546 14547_LT_EOF 14548 ;; 14549 *) 14550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14551 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14552 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14553 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14554 else 14555 ld_shlibs_F77=no 14556 fi 14557 ;; 14558 esac 14559 ;; 14560 14561 sunos4*) 14562 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14563 wlarc= 14564 hardcode_direct_F77=yes 14565 hardcode_shlibpath_var_F77=no 14566 ;; 14567 14568 *) 14569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14571 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14572 else 14573 ld_shlibs_F77=no 14574 fi 14575 ;; 14576 esac 14577 14578 if test "$ld_shlibs_F77" = no; then 14579 runpath_var= 14580 hardcode_libdir_flag_spec_F77= 14581 export_dynamic_flag_spec_F77= 14582 whole_archive_flag_spec_F77= 14583 fi 14584 else 14585 # PORTME fill in a description of your system's linker (not GNU ld) 14586 case $host_os in 14587 aix3*) 14588 allow_undefined_flag_F77=unsupported 14589 always_export_symbols_F77=yes 14590 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' 14591 # Note: this linker hardcodes the directories in LIBPATH if there 14592 # are no directories specified by -L. 14593 hardcode_minus_L_F77=yes 14594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14595 # Neither direct hardcoding nor static linking is supported with a 14596 # broken collect2. 14597 hardcode_direct_F77=unsupported 14598 fi 14599 ;; 14600 14601 aix4* | aix5*) 14602 if test "$host_cpu" = ia64; then 14603 # On IA64, the linker does run time linking by default, so we don't 14604 # have to do anything special. 14605 aix_use_runtimelinking=no 14606 exp_sym_flag='-Bexport' 14607 no_entry_flag="" 14608 else 14609 # If we're using GNU nm, then we don't want the "-C" option. 14610 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14611 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14612 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' 14613 else 14614 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' 14615 fi 14616 aix_use_runtimelinking=no 14617 14618 # Test if we are trying to use run time linking or normal 14619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14620 # need to do runtime linking. 14621 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14622 for ld_flag in $LDFLAGS; do 14623 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14624 aix_use_runtimelinking=yes 14625 break 14626 fi 14627 done 14628 ;; 14629 esac 14630 14631 exp_sym_flag='-bexport' 14632 no_entry_flag='-bnoentry' 14633 fi 14634 14635 # When large executables or shared objects are built, AIX ld can 14636 # have problems creating the table of contents. If linking a library 14637 # or program results in "error TOC overflow" add -mminimal-toc to 14638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14640 14641 archive_cmds_F77='' 14642 hardcode_direct_F77=yes 14643 hardcode_libdir_separator_F77=':' 14644 link_all_deplibs_F77=yes 14645 14646 if test "$GCC" = yes; then 14647 case $host_os in aix4.[012]|aix4.[012].*) 14648 # We only want to do this on AIX 4.2 and lower, the check 14649 # below for broken collect2 doesn't work under 4.3+ 14650 collect2name=`${CC} -print-prog-name=collect2` 14651 if test -f "$collect2name" && \ 14652 strings "$collect2name" | grep resolve_lib_name >/dev/null 14653 then 14654 # We have reworked collect2 14655 : 14656 else 14657 # We have old collect2 14658 hardcode_direct_F77=unsupported 14659 # It fails to find uninstalled libraries when the uninstalled 14660 # path is not listed in the libpath. Setting hardcode_minus_L 14661 # to unsupported forces relinking 14662 hardcode_minus_L_F77=yes 14663 hardcode_libdir_flag_spec_F77='-L$libdir' 14664 hardcode_libdir_separator_F77= 14665 fi 14666 ;; 14667 esac 14668 shared_flag='-shared' 14669 if test "$aix_use_runtimelinking" = yes; then 14670 shared_flag="$shared_flag "'${wl}-G' 14671 fi 14672 else 14673 # not using gcc 14674 if test "$host_cpu" = ia64; then 14675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14676 # chokes on -Wl,-G. The following line is correct: 14677 shared_flag='-G' 14678 else 14679 if test "$aix_use_runtimelinking" = yes; then 14680 shared_flag='${wl}-G' 14681 else 14682 shared_flag='${wl}-bM:SRE' 14683 fi 14684 fi 14685 fi 14686 14687 # It seems that -bexpall does not export symbols beginning with 14688 # underscore (_), so it is better to generate a list of symbols to export. 14689 always_export_symbols_F77=yes 14690 if test "$aix_use_runtimelinking" = yes; then 14691 # Warning - without using the other runtime loading flags (-brtl), 14692 # -berok will link without error, but may produce a broken library. 14693 allow_undefined_flag_F77='-berok' 14694 # Determine the default libpath from the value encoded in an empty executable. 14695 cat >conftest.$ac_ext <<_ACEOF 14696 program main 14697 14698 end 14699_ACEOF 14700rm -f conftest.$ac_objext conftest$ac_exeext 14701if { (ac_try="$ac_link" 14702case "(($ac_try" in 14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14704 *) ac_try_echo=$ac_try;; 14705esac 14706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14707 (eval "$ac_link") 2>conftest.er1 14708 ac_status=$? 14709 grep -v '^ *+' conftest.er1 >conftest.err 14710 rm -f conftest.er1 14711 cat conftest.err >&5 14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14713 (exit $ac_status); } && { 14714 test -z "$ac_f77_werror_flag" || 14715 test ! -s conftest.err 14716 } && test -s conftest$ac_exeext && 14717 $as_test_x conftest$ac_exeext; then 14718 14719lt_aix_libpath_sed=' 14720 /Import File Strings/,/^$/ { 14721 /^0/ { 14722 s/^0 *\(.*\)$/\1/ 14723 p 14724 } 14725 }' 14726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14727# Check for a 64-bit object if we didn't find anything. 14728if test -z "$aix_libpath"; then 14729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14730fi 14731else 14732 echo "$as_me: failed program was:" >&5 14733sed 's/^/| /' conftest.$ac_ext >&5 14734 14735 14736fi 14737 14738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14739 conftest$ac_exeext conftest.$ac_ext 14740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14741 14742 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14743 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" 14744 else 14745 if test "$host_cpu" = ia64; then 14746 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14747 allow_undefined_flag_F77="-z nodefs" 14748 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" 14749 else 14750 # Determine the default libpath from the value encoded in an empty executable. 14751 cat >conftest.$ac_ext <<_ACEOF 14752 program main 14753 14754 end 14755_ACEOF 14756rm -f conftest.$ac_objext conftest$ac_exeext 14757if { (ac_try="$ac_link" 14758case "(($ac_try" in 14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14760 *) ac_try_echo=$ac_try;; 14761esac 14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14763 (eval "$ac_link") 2>conftest.er1 14764 ac_status=$? 14765 grep -v '^ *+' conftest.er1 >conftest.err 14766 rm -f conftest.er1 14767 cat conftest.err >&5 14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14769 (exit $ac_status); } && { 14770 test -z "$ac_f77_werror_flag" || 14771 test ! -s conftest.err 14772 } && test -s conftest$ac_exeext && 14773 $as_test_x conftest$ac_exeext; then 14774 14775lt_aix_libpath_sed=' 14776 /Import File Strings/,/^$/ { 14777 /^0/ { 14778 s/^0 *\(.*\)$/\1/ 14779 p 14780 } 14781 }' 14782aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14783# Check for a 64-bit object if we didn't find anything. 14784if test -z "$aix_libpath"; then 14785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14786fi 14787else 14788 echo "$as_me: failed program was:" >&5 14789sed 's/^/| /' conftest.$ac_ext >&5 14790 14791 14792fi 14793 14794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14795 conftest$ac_exeext conftest.$ac_ext 14796if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14797 14798 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14799 # Warning - without using the other run time loading flags, 14800 # -berok will link without error, but may produce a broken library. 14801 no_undefined_flag_F77=' ${wl}-bernotok' 14802 allow_undefined_flag_F77=' ${wl}-berok' 14803 # Exported symbols can be pulled into shared objects from archives 14804 whole_archive_flag_spec_F77='$convenience' 14805 archive_cmds_need_lc_F77=yes 14806 # This is similar to how AIX traditionally builds its shared libraries. 14807 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' 14808 fi 14809 fi 14810 ;; 14811 14812 amigaos*) 14813 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)' 14814 hardcode_libdir_flag_spec_F77='-L$libdir' 14815 hardcode_minus_L_F77=yes 14816 # see comment about different semantics on the GNU ld section 14817 ld_shlibs_F77=no 14818 ;; 14819 14820 bsdi[45]*) 14821 export_dynamic_flag_spec_F77=-rdynamic 14822 ;; 14823 14824 cygwin* | mingw* | pw32*) 14825 # When not using gcc, we currently assume that we are using 14826 # Microsoft Visual C++. 14827 # hardcode_libdir_flag_spec is actually meaningless, as there is 14828 # no search path for DLLs. 14829 hardcode_libdir_flag_spec_F77=' ' 14830 allow_undefined_flag_F77=unsupported 14831 # Tell ltmain to make .lib files, not .a files. 14832 libext=lib 14833 # Tell ltmain to make .dll files, not .so files. 14834 shrext_cmds=".dll" 14835 # FIXME: Setting linknames here is a bad hack. 14836 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14837 # The linker will automatically build a .lib file if we build a DLL. 14838 old_archive_From_new_cmds_F77='true' 14839 # FIXME: Should let the user specify the lib program. 14840 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14841 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14842 enable_shared_with_static_runtimes_F77=yes 14843 ;; 14844 14845 darwin* | rhapsody*) 14846 case $host_os in 14847 rhapsody* | darwin1.[012]) 14848 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14849 ;; 14850 *) # Darwin 1.3 on 14851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14852 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14853 else 14854 case ${MACOSX_DEPLOYMENT_TARGET} in 14855 10.[012]) 14856 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14857 ;; 14858 10.*) 14859 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14860 ;; 14861 esac 14862 fi 14863 ;; 14864 esac 14865 archive_cmds_need_lc_F77=no 14866 hardcode_direct_F77=no 14867 hardcode_automatic_F77=yes 14868 hardcode_shlibpath_var_F77=unsupported 14869 whole_archive_flag_spec_F77='' 14870 link_all_deplibs_F77=yes 14871 if test "$GCC" = yes ; then 14872 output_verbose_link_cmd='echo' 14873 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14874 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14876 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}' 14877 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}' 14878 else 14879 case $cc_basename in 14880 xlc*) 14881 output_verbose_link_cmd='echo' 14882 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14883 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14885 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}' 14886 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}' 14887 ;; 14888 *) 14889 ld_shlibs_F77=no 14890 ;; 14891 esac 14892 fi 14893 ;; 14894 14895 dgux*) 14896 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14897 hardcode_libdir_flag_spec_F77='-L$libdir' 14898 hardcode_shlibpath_var_F77=no 14899 ;; 14900 14901 freebsd1*) 14902 ld_shlibs_F77=no 14903 ;; 14904 14905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14906 # support. Future versions do this automatically, but an explicit c++rt0.o 14907 # does not break anything, and helps significantly (at the cost of a little 14908 # extra space). 14909 freebsd2.2*) 14910 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14911 hardcode_libdir_flag_spec_F77='-R$libdir' 14912 hardcode_direct_F77=yes 14913 hardcode_shlibpath_var_F77=no 14914 ;; 14915 14916 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14917 freebsd2*) 14918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14919 hardcode_direct_F77=yes 14920 hardcode_minus_L_F77=yes 14921 hardcode_shlibpath_var_F77=no 14922 ;; 14923 14924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14925 freebsd* | dragonfly*) 14926 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14927 hardcode_libdir_flag_spec_F77='-R$libdir' 14928 hardcode_direct_F77=yes 14929 hardcode_shlibpath_var_F77=no 14930 ;; 14931 14932 hpux9*) 14933 if test "$GCC" = yes; then 14934 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' 14935 else 14936 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' 14937 fi 14938 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14939 hardcode_libdir_separator_F77=: 14940 hardcode_direct_F77=yes 14941 14942 # hardcode_minus_L: Not really in the search PATH, 14943 # but as the default location of the library. 14944 hardcode_minus_L_F77=yes 14945 export_dynamic_flag_spec_F77='${wl}-E' 14946 ;; 14947 14948 hpux10*) 14949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14950 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14951 else 14952 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14953 fi 14954 if test "$with_gnu_ld" = no; then 14955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14956 hardcode_libdir_separator_F77=: 14957 14958 hardcode_direct_F77=yes 14959 export_dynamic_flag_spec_F77='${wl}-E' 14960 14961 # hardcode_minus_L: Not really in the search PATH, 14962 # but as the default location of the library. 14963 hardcode_minus_L_F77=yes 14964 fi 14965 ;; 14966 14967 hpux11*) 14968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14969 case $host_cpu in 14970 hppa*64*) 14971 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14972 ;; 14973 ia64*) 14974 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14975 ;; 14976 *) 14977 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14978 ;; 14979 esac 14980 else 14981 case $host_cpu in 14982 hppa*64*) 14983 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14984 ;; 14985 ia64*) 14986 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14987 ;; 14988 *) 14989 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14990 ;; 14991 esac 14992 fi 14993 if test "$with_gnu_ld" = no; then 14994 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14995 hardcode_libdir_separator_F77=: 14996 14997 case $host_cpu in 14998 hppa*64*|ia64*) 14999 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15000 hardcode_direct_F77=no 15001 hardcode_shlibpath_var_F77=no 15002 ;; 15003 *) 15004 hardcode_direct_F77=yes 15005 export_dynamic_flag_spec_F77='${wl}-E' 15006 15007 # hardcode_minus_L: Not really in the search PATH, 15008 # but as the default location of the library. 15009 hardcode_minus_L_F77=yes 15010 ;; 15011 esac 15012 fi 15013 ;; 15014 15015 irix5* | irix6* | nonstopux*) 15016 if test "$GCC" = yes; then 15017 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' 15018 else 15019 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' 15020 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15021 fi 15022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15023 hardcode_libdir_separator_F77=: 15024 link_all_deplibs_F77=yes 15025 ;; 15026 15027 netbsd* | netbsdelf*-gnu) 15028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15029 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15030 else 15031 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15032 fi 15033 hardcode_libdir_flag_spec_F77='-R$libdir' 15034 hardcode_direct_F77=yes 15035 hardcode_shlibpath_var_F77=no 15036 ;; 15037 15038 newsos6) 15039 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15040 hardcode_direct_F77=yes 15041 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15042 hardcode_libdir_separator_F77=: 15043 hardcode_shlibpath_var_F77=no 15044 ;; 15045 15046 openbsd*) 15047 if test -f /usr/libexec/ld.so; then 15048 hardcode_direct_F77=yes 15049 hardcode_shlibpath_var_F77=no 15050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15051 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15052 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15054 export_dynamic_flag_spec_F77='${wl}-E' 15055 else 15056 case $host_os in 15057 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15058 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15059 hardcode_libdir_flag_spec_F77='-R$libdir' 15060 ;; 15061 *) 15062 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15063 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15064 ;; 15065 esac 15066 fi 15067 else 15068 ld_shlibs_F77=no 15069 fi 15070 ;; 15071 15072 os2*) 15073 hardcode_libdir_flag_spec_F77='-L$libdir' 15074 hardcode_minus_L_F77=yes 15075 allow_undefined_flag_F77=unsupported 15076 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' 15077 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15078 ;; 15079 15080 osf3*) 15081 if test "$GCC" = yes; then 15082 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15083 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' 15084 else 15085 allow_undefined_flag_F77=' -expect_unresolved \*' 15086 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' 15087 fi 15088 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15089 hardcode_libdir_separator_F77=: 15090 ;; 15091 15092 osf4* | osf5*) # as osf3* with the addition of -msym flag 15093 if test "$GCC" = yes; then 15094 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15095 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' 15096 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15097 else 15098 allow_undefined_flag_F77=' -expect_unresolved \*' 15099 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' 15100 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~ 15101 $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' 15102 15103 # Both c and cxx compiler support -rpath directly 15104 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15105 fi 15106 hardcode_libdir_separator_F77=: 15107 ;; 15108 15109 solaris*) 15110 no_undefined_flag_F77=' -z text' 15111 if test "$GCC" = yes; then 15112 wlarc='${wl}' 15113 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15114 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15115 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15116 else 15117 wlarc='' 15118 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15119 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15121 fi 15122 hardcode_libdir_flag_spec_F77='-R$libdir' 15123 hardcode_shlibpath_var_F77=no 15124 case $host_os in 15125 solaris2.[0-5] | solaris2.[0-5].*) ;; 15126 *) 15127 # The compiler driver will combine and reorder linker options, 15128 # but understands `-z linker_flag'. GCC discards it without `$wl', 15129 # but is careful enough not to reorder. 15130 # Supported since Solaris 2.6 (maybe 2.5.1?) 15131 if test "$GCC" = yes; then 15132 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15133 else 15134 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15135 fi 15136 ;; 15137 esac 15138 link_all_deplibs_F77=yes 15139 ;; 15140 15141 sunos4*) 15142 if test "x$host_vendor" = xsequent; then 15143 # Use $CC to link under sequent, because it throws in some extra .o 15144 # files that make .init and .fini sections work. 15145 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15146 else 15147 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15148 fi 15149 hardcode_libdir_flag_spec_F77='-L$libdir' 15150 hardcode_direct_F77=yes 15151 hardcode_minus_L_F77=yes 15152 hardcode_shlibpath_var_F77=no 15153 ;; 15154 15155 sysv4) 15156 case $host_vendor in 15157 sni) 15158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15159 hardcode_direct_F77=yes # is this really true??? 15160 ;; 15161 siemens) 15162 ## LD is ld it makes a PLAMLIB 15163 ## CC just makes a GrossModule. 15164 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15165 reload_cmds_F77='$CC -r -o $output$reload_objs' 15166 hardcode_direct_F77=no 15167 ;; 15168 motorola) 15169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15170 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15171 ;; 15172 esac 15173 runpath_var='LD_RUN_PATH' 15174 hardcode_shlibpath_var_F77=no 15175 ;; 15176 15177 sysv4.3*) 15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15179 hardcode_shlibpath_var_F77=no 15180 export_dynamic_flag_spec_F77='-Bexport' 15181 ;; 15182 15183 sysv4*MP*) 15184 if test -d /usr/nec; then 15185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15186 hardcode_shlibpath_var_F77=no 15187 runpath_var=LD_RUN_PATH 15188 hardcode_runpath_var=yes 15189 ld_shlibs_F77=yes 15190 fi 15191 ;; 15192 15193 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15194 no_undefined_flag_F77='${wl}-z,text' 15195 archive_cmds_need_lc_F77=no 15196 hardcode_shlibpath_var_F77=no 15197 runpath_var='LD_RUN_PATH' 15198 15199 if test "$GCC" = yes; then 15200 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15201 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15202 else 15203 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15204 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15205 fi 15206 ;; 15207 15208 sysv5* | sco3.2v5* | sco5v6*) 15209 # Note: We can NOT use -z defs as we might desire, because we do not 15210 # link with -lc, and that would cause any symbols used from libc to 15211 # always be unresolved, which means just about no library would 15212 # ever link correctly. If we're not using GNU ld we use -z text 15213 # though, which does catch some bad symbols but isn't as heavy-handed 15214 # as -z defs. 15215 no_undefined_flag_F77='${wl}-z,text' 15216 allow_undefined_flag_F77='${wl}-z,nodefs' 15217 archive_cmds_need_lc_F77=no 15218 hardcode_shlibpath_var_F77=no 15219 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15220 hardcode_libdir_separator_F77=':' 15221 link_all_deplibs_F77=yes 15222 export_dynamic_flag_spec_F77='${wl}-Bexport' 15223 runpath_var='LD_RUN_PATH' 15224 15225 if test "$GCC" = yes; then 15226 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15227 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15228 else 15229 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15230 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15231 fi 15232 ;; 15233 15234 uts4*) 15235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15236 hardcode_libdir_flag_spec_F77='-L$libdir' 15237 hardcode_shlibpath_var_F77=no 15238 ;; 15239 15240 *) 15241 ld_shlibs_F77=no 15242 ;; 15243 esac 15244 fi 15245 15246{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15247echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15248test "$ld_shlibs_F77" = no && can_build_shared=no 15249 15250# 15251# Do we need to explicitly link libc? 15252# 15253case "x$archive_cmds_need_lc_F77" in 15254x|xyes) 15255 # Assume -lc should be added 15256 archive_cmds_need_lc_F77=yes 15257 15258 if test "$enable_shared" = yes && test "$GCC" = yes; then 15259 case $archive_cmds_F77 in 15260 *'~'*) 15261 # FIXME: we may have to deal with multi-command sequences. 15262 ;; 15263 '$CC '*) 15264 # Test whether the compiler implicitly links with -lc since on some 15265 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15266 # to ld, don't add -lc before -lgcc. 15267 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15268echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15269 $rm conftest* 15270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15271 15272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15273 (eval $ac_compile) 2>&5 15274 ac_status=$? 15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15276 (exit $ac_status); } 2>conftest.err; then 15277 soname=conftest 15278 lib=conftest 15279 libobjs=conftest.$ac_objext 15280 deplibs= 15281 wl=$lt_prog_compiler_wl_F77 15282 pic_flag=$lt_prog_compiler_pic_F77 15283 compiler_flags=-v 15284 linker_flags=-v 15285 verstring= 15286 output_objdir=. 15287 libname=conftest 15288 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15289 allow_undefined_flag_F77= 15290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15291 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15292 ac_status=$? 15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15294 (exit $ac_status); } 15295 then 15296 archive_cmds_need_lc_F77=no 15297 else 15298 archive_cmds_need_lc_F77=yes 15299 fi 15300 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15301 else 15302 cat conftest.err 1>&5 15303 fi 15304 $rm conftest* 15305 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15306echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15307 ;; 15308 esac 15309 fi 15310 ;; 15311esac 15312 15313{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15314echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15315library_names_spec= 15316libname_spec='lib$name' 15317soname_spec= 15318shrext_cmds=".so" 15319postinstall_cmds= 15320postuninstall_cmds= 15321finish_cmds= 15322finish_eval= 15323shlibpath_var= 15324shlibpath_overrides_runpath=unknown 15325version_type=none 15326dynamic_linker="$host_os ld.so" 15327sys_lib_dlsearch_path_spec="/lib /usr/lib" 15328 15329need_lib_prefix=unknown 15330hardcode_into_libs=no 15331 15332# when you set need_version to no, make sure it does not cause -set_version 15333# flags to be left without arguments 15334need_version=unknown 15335 15336case $host_os in 15337aix3*) 15338 version_type=linux 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15340 shlibpath_var=LIBPATH 15341 15342 # AIX 3 has no versioning support, so we append a major version to the name. 15343 soname_spec='${libname}${release}${shared_ext}$major' 15344 ;; 15345 15346aix4* | aix5*) 15347 version_type=linux 15348 need_lib_prefix=no 15349 need_version=no 15350 hardcode_into_libs=yes 15351 if test "$host_cpu" = ia64; then 15352 # AIX 5 supports IA64 15353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15354 shlibpath_var=LD_LIBRARY_PATH 15355 else 15356 # With GCC up to 2.95.x, collect2 would create an import file 15357 # for dependence libraries. The import file would start with 15358 # the line `#! .'. This would cause the generated library to 15359 # depend on `.', always an invalid library. This was fixed in 15360 # development snapshots of GCC prior to 3.0. 15361 case $host_os in 15362 aix4 | aix4.[01] | aix4.[01].*) 15363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15364 echo ' yes ' 15365 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15366 : 15367 else 15368 can_build_shared=no 15369 fi 15370 ;; 15371 esac 15372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15373 # soname into executable. Probably we can add versioning support to 15374 # collect2, so additional links can be useful in future. 15375 if test "$aix_use_runtimelinking" = yes; then 15376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15377 # instead of lib<name>.a to let people know that these are not 15378 # typical AIX shared libraries. 15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15380 else 15381 # We preserve .a as extension for shared libraries through AIX4.2 15382 # and later when we are not doing run time linking. 15383 library_names_spec='${libname}${release}.a $libname.a' 15384 soname_spec='${libname}${release}${shared_ext}$major' 15385 fi 15386 shlibpath_var=LIBPATH 15387 fi 15388 ;; 15389 15390amigaos*) 15391 library_names_spec='$libname.ixlibrary $libname.a' 15392 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15393 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' 15394 ;; 15395 15396beos*) 15397 library_names_spec='${libname}${shared_ext}' 15398 dynamic_linker="$host_os ld.so" 15399 shlibpath_var=LIBRARY_PATH 15400 ;; 15401 15402bsdi[45]*) 15403 version_type=linux 15404 need_version=no 15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15406 soname_spec='${libname}${release}${shared_ext}$major' 15407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15408 shlibpath_var=LD_LIBRARY_PATH 15409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15411 # the default ld.so.conf also contains /usr/contrib/lib and 15412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15413 # libtool to hard-code these into programs 15414 ;; 15415 15416cygwin* | mingw* | pw32*) 15417 version_type=windows 15418 shrext_cmds=".dll" 15419 need_version=no 15420 need_lib_prefix=no 15421 15422 case $GCC,$host_os in 15423 yes,cygwin* | yes,mingw* | yes,pw32*) 15424 library_names_spec='$libname.dll.a' 15425 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15426 postinstall_cmds='base_file=`basename \${file}`~ 15427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15428 dldir=$destdir/`dirname \$dlpath`~ 15429 test -d \$dldir || mkdir -p \$dldir~ 15430 $install_prog $dir/$dlname \$dldir/$dlname~ 15431 chmod a+x \$dldir/$dlname' 15432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15433 dlpath=$dir/\$dldll~ 15434 $rm \$dlpath' 15435 shlibpath_overrides_runpath=yes 15436 15437 case $host_os in 15438 cygwin*) 15439 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15441 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15442 ;; 15443 mingw*) 15444 # MinGW DLLs use traditional 'lib' prefix 15445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15447 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15448 # It is most probably a Windows format PATH printed by 15449 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15450 # path with ; separators, and with drive letters. We can handle the 15451 # drive letters (cygwin fileutils understands them), so leave them, 15452 # especially as we might pass files found there to a mingw objdump, 15453 # which wouldn't understand a cygwinified path. Ahh. 15454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15455 else 15456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15457 fi 15458 ;; 15459 pw32*) 15460 # pw32 DLLs use 'pw' prefix rather than 'lib' 15461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15462 ;; 15463 esac 15464 ;; 15465 15466 *) 15467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15468 ;; 15469 esac 15470 dynamic_linker='Win32 ld.exe' 15471 # FIXME: first we should search . and the directory the executable is in 15472 shlibpath_var=PATH 15473 ;; 15474 15475darwin* | rhapsody*) 15476 dynamic_linker="$host_os dyld" 15477 version_type=darwin 15478 need_lib_prefix=no 15479 need_version=no 15480 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15481 soname_spec='${libname}${release}${major}$shared_ext' 15482 shlibpath_overrides_runpath=yes 15483 shlibpath_var=DYLD_LIBRARY_PATH 15484 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15485 15486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15487 ;; 15488 15489dgux*) 15490 version_type=linux 15491 need_lib_prefix=no 15492 need_version=no 15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15494 soname_spec='${libname}${release}${shared_ext}$major' 15495 shlibpath_var=LD_LIBRARY_PATH 15496 ;; 15497 15498freebsd1*) 15499 dynamic_linker=no 15500 ;; 15501 15502freebsd* | dragonfly*) 15503 # DragonFly does not have aout. When/if they implement a new 15504 # versioning mechanism, adjust this. 15505 if test -x /usr/bin/objformat; then 15506 objformat=`/usr/bin/objformat` 15507 else 15508 case $host_os in 15509 freebsd[123]*) objformat=aout ;; 15510 *) objformat=elf ;; 15511 esac 15512 fi 15513 version_type=freebsd-$objformat 15514 case $version_type in 15515 freebsd-elf*) 15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15517 need_version=no 15518 need_lib_prefix=no 15519 ;; 15520 freebsd-*) 15521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15522 need_version=yes 15523 ;; 15524 esac 15525 shlibpath_var=LD_LIBRARY_PATH 15526 case $host_os in 15527 freebsd2*) 15528 shlibpath_overrides_runpath=yes 15529 ;; 15530 freebsd3.[01]* | freebsdelf3.[01]*) 15531 shlibpath_overrides_runpath=yes 15532 hardcode_into_libs=yes 15533 ;; 15534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15536 shlibpath_overrides_runpath=no 15537 hardcode_into_libs=yes 15538 ;; 15539 *) # from 4.6 on, and DragonFly 15540 shlibpath_overrides_runpath=yes 15541 hardcode_into_libs=yes 15542 ;; 15543 esac 15544 ;; 15545 15546gnu*) 15547 version_type=linux 15548 need_lib_prefix=no 15549 need_version=no 15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15551 soname_spec='${libname}${release}${shared_ext}$major' 15552 shlibpath_var=LD_LIBRARY_PATH 15553 hardcode_into_libs=yes 15554 ;; 15555 15556hpux9* | hpux10* | hpux11*) 15557 # Give a soname corresponding to the major version so that dld.sl refuses to 15558 # link against other versions. 15559 version_type=sunos 15560 need_lib_prefix=no 15561 need_version=no 15562 case $host_cpu in 15563 ia64*) 15564 shrext_cmds='.so' 15565 hardcode_into_libs=yes 15566 dynamic_linker="$host_os dld.so" 15567 shlibpath_var=LD_LIBRARY_PATH 15568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15570 soname_spec='${libname}${release}${shared_ext}$major' 15571 if test "X$HPUX_IA64_MODE" = X32; then 15572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15573 else 15574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15575 fi 15576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15577 ;; 15578 hppa*64*) 15579 shrext_cmds='.sl' 15580 hardcode_into_libs=yes 15581 dynamic_linker="$host_os dld.sl" 15582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15585 soname_spec='${libname}${release}${shared_ext}$major' 15586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15588 ;; 15589 *) 15590 shrext_cmds='.sl' 15591 dynamic_linker="$host_os dld.sl" 15592 shlibpath_var=SHLIB_PATH 15593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15595 soname_spec='${libname}${release}${shared_ext}$major' 15596 ;; 15597 esac 15598 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15599 postinstall_cmds='chmod 555 $lib' 15600 ;; 15601 15602interix[3-9]*) 15603 version_type=linux 15604 need_lib_prefix=no 15605 need_version=no 15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15607 soname_spec='${libname}${release}${shared_ext}$major' 15608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15609 shlibpath_var=LD_LIBRARY_PATH 15610 shlibpath_overrides_runpath=no 15611 hardcode_into_libs=yes 15612 ;; 15613 15614irix5* | irix6* | nonstopux*) 15615 case $host_os in 15616 nonstopux*) version_type=nonstopux ;; 15617 *) 15618 if test "$lt_cv_prog_gnu_ld" = yes; then 15619 version_type=linux 15620 else 15621 version_type=irix 15622 fi ;; 15623 esac 15624 need_lib_prefix=no 15625 need_version=no 15626 soname_spec='${libname}${release}${shared_ext}$major' 15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15628 case $host_os in 15629 irix5* | nonstopux*) 15630 libsuff= shlibsuff= 15631 ;; 15632 *) 15633 case $LD in # libtool.m4 will add one of these switches to LD 15634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15635 libsuff= shlibsuff= libmagic=32-bit;; 15636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15637 libsuff=32 shlibsuff=N32 libmagic=N32;; 15638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15639 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15640 *) libsuff= shlibsuff= libmagic=never-match;; 15641 esac 15642 ;; 15643 esac 15644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15645 shlibpath_overrides_runpath=no 15646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15648 hardcode_into_libs=yes 15649 ;; 15650 15651# No shared lib support for Linux oldld, aout, or coff. 15652linux*oldld* | linux*aout* | linux*coff*) 15653 dynamic_linker=no 15654 ;; 15655 15656# This must be Linux ELF. 15657linux* | k*bsd*-gnu) 15658 version_type=linux 15659 need_lib_prefix=no 15660 need_version=no 15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15662 soname_spec='${libname}${release}${shared_ext}$major' 15663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15664 shlibpath_var=LD_LIBRARY_PATH 15665 shlibpath_overrides_runpath=no 15666 # This implies no fast_install, which is unacceptable. 15667 # Some rework will be needed to allow for fast_install 15668 # before this can be enabled. 15669 hardcode_into_libs=yes 15670 15671 # Append ld.so.conf contents to the search path 15672 if test -f /etc/ld.so.conf; then 15673 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' ' '` 15674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15675 fi 15676 15677 # We used to test for /lib/ld.so.1 and disable shared libraries on 15678 # powerpc, because MkLinux only supported shared libraries with the 15679 # GNU dynamic linker. Since this was broken with cross compilers, 15680 # most powerpc-linux boxes support dynamic linking these days and 15681 # people can always --disable-shared, the test was removed, and we 15682 # assume the GNU/Linux dynamic linker is in use. 15683 dynamic_linker='GNU/Linux ld.so' 15684 ;; 15685 15686netbsdelf*-gnu) 15687 version_type=linux 15688 need_lib_prefix=no 15689 need_version=no 15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15691 soname_spec='${libname}${release}${shared_ext}$major' 15692 shlibpath_var=LD_LIBRARY_PATH 15693 shlibpath_overrides_runpath=no 15694 hardcode_into_libs=yes 15695 dynamic_linker='NetBSD ld.elf_so' 15696 ;; 15697 15698netbsd*) 15699 version_type=sunos 15700 need_lib_prefix=no 15701 need_version=no 15702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15705 dynamic_linker='NetBSD (a.out) ld.so' 15706 else 15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15708 soname_spec='${libname}${release}${shared_ext}$major' 15709 dynamic_linker='NetBSD ld.elf_so' 15710 fi 15711 shlibpath_var=LD_LIBRARY_PATH 15712 shlibpath_overrides_runpath=yes 15713 hardcode_into_libs=yes 15714 ;; 15715 15716newsos6) 15717 version_type=linux 15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15719 shlibpath_var=LD_LIBRARY_PATH 15720 shlibpath_overrides_runpath=yes 15721 ;; 15722 15723nto-qnx*) 15724 version_type=linux 15725 need_lib_prefix=no 15726 need_version=no 15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15728 soname_spec='${libname}${release}${shared_ext}$major' 15729 shlibpath_var=LD_LIBRARY_PATH 15730 shlibpath_overrides_runpath=yes 15731 ;; 15732 15733openbsd*) 15734 version_type=sunos 15735 sys_lib_dlsearch_path_spec="/usr/lib" 15736 need_lib_prefix=no 15737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15738 case $host_os in 15739 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15740 *) need_version=no ;; 15741 esac 15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15744 shlibpath_var=LD_LIBRARY_PATH 15745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15746 case $host_os in 15747 openbsd2.[89] | openbsd2.[89].*) 15748 shlibpath_overrides_runpath=no 15749 ;; 15750 *) 15751 shlibpath_overrides_runpath=yes 15752 ;; 15753 esac 15754 else 15755 shlibpath_overrides_runpath=yes 15756 fi 15757 ;; 15758 15759os2*) 15760 libname_spec='$name' 15761 shrext_cmds=".dll" 15762 need_lib_prefix=no 15763 library_names_spec='$libname${shared_ext} $libname.a' 15764 dynamic_linker='OS/2 ld.exe' 15765 shlibpath_var=LIBPATH 15766 ;; 15767 15768osf3* | osf4* | osf5*) 15769 version_type=osf 15770 need_lib_prefix=no 15771 need_version=no 15772 soname_spec='${libname}${release}${shared_ext}$major' 15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15774 shlibpath_var=LD_LIBRARY_PATH 15775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15777 ;; 15778 15779rdos*) 15780 dynamic_linker=no 15781 ;; 15782 15783solaris*) 15784 version_type=linux 15785 need_lib_prefix=no 15786 need_version=no 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15788 soname_spec='${libname}${release}${shared_ext}$major' 15789 shlibpath_var=LD_LIBRARY_PATH 15790 shlibpath_overrides_runpath=yes 15791 hardcode_into_libs=yes 15792 # ldd complains unless libraries are executable 15793 postinstall_cmds='chmod +x $lib' 15794 ;; 15795 15796sunos4*) 15797 version_type=sunos 15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15800 shlibpath_var=LD_LIBRARY_PATH 15801 shlibpath_overrides_runpath=yes 15802 if test "$with_gnu_ld" = yes; then 15803 need_lib_prefix=no 15804 fi 15805 need_version=yes 15806 ;; 15807 15808sysv4 | sysv4.3*) 15809 version_type=linux 15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15811 soname_spec='${libname}${release}${shared_ext}$major' 15812 shlibpath_var=LD_LIBRARY_PATH 15813 case $host_vendor in 15814 sni) 15815 shlibpath_overrides_runpath=no 15816 need_lib_prefix=no 15817 export_dynamic_flag_spec='${wl}-Blargedynsym' 15818 runpath_var=LD_RUN_PATH 15819 ;; 15820 siemens) 15821 need_lib_prefix=no 15822 ;; 15823 motorola) 15824 need_lib_prefix=no 15825 need_version=no 15826 shlibpath_overrides_runpath=no 15827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15828 ;; 15829 esac 15830 ;; 15831 15832sysv4*MP*) 15833 if test -d /usr/nec ;then 15834 version_type=linux 15835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15836 soname_spec='$libname${shared_ext}.$major' 15837 shlibpath_var=LD_LIBRARY_PATH 15838 fi 15839 ;; 15840 15841sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15842 version_type=freebsd-elf 15843 need_lib_prefix=no 15844 need_version=no 15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15846 soname_spec='${libname}${release}${shared_ext}$major' 15847 shlibpath_var=LD_LIBRARY_PATH 15848 hardcode_into_libs=yes 15849 if test "$with_gnu_ld" = yes; then 15850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15851 shlibpath_overrides_runpath=no 15852 else 15853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15854 shlibpath_overrides_runpath=yes 15855 case $host_os in 15856 sco3.2v5*) 15857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15858 ;; 15859 esac 15860 fi 15861 sys_lib_dlsearch_path_spec='/usr/lib' 15862 ;; 15863 15864uts4*) 15865 version_type=linux 15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15867 soname_spec='${libname}${release}${shared_ext}$major' 15868 shlibpath_var=LD_LIBRARY_PATH 15869 ;; 15870 15871*) 15872 dynamic_linker=no 15873 ;; 15874esac 15875{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15876echo "${ECHO_T}$dynamic_linker" >&6; } 15877test "$dynamic_linker" = no && can_build_shared=no 15878 15879variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15880if test "$GCC" = yes; then 15881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15882fi 15883 15884{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15885echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15886hardcode_action_F77= 15887if test -n "$hardcode_libdir_flag_spec_F77" || \ 15888 test -n "$runpath_var_F77" || \ 15889 test "X$hardcode_automatic_F77" = "Xyes" ; then 15890 15891 # We can hardcode non-existant directories. 15892 if test "$hardcode_direct_F77" != no && 15893 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15894 # have to relink, otherwise we might link with an installed library 15895 # when we should be linking with a yet-to-be-installed one 15896 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15897 test "$hardcode_minus_L_F77" != no; then 15898 # Linking always hardcodes the temporary library directory. 15899 hardcode_action_F77=relink 15900 else 15901 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15902 hardcode_action_F77=immediate 15903 fi 15904else 15905 # We cannot hardcode anything, or else we can only hardcode existing 15906 # directories. 15907 hardcode_action_F77=unsupported 15908fi 15909{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15910echo "${ECHO_T}$hardcode_action_F77" >&6; } 15911 15912if test "$hardcode_action_F77" = relink; then 15913 # Fast installation is not supported 15914 enable_fast_install=no 15915elif test "$shlibpath_overrides_runpath" = yes || 15916 test "$enable_shared" = no; then 15917 # Fast installation is not necessary 15918 enable_fast_install=needless 15919fi 15920 15921 15922# The else clause should only fire when bootstrapping the 15923# libtool distribution, otherwise you forgot to ship ltmain.sh 15924# with your package, and you will get complaints that there are 15925# no rules to generate ltmain.sh. 15926if test -f "$ltmain"; then 15927 # See if we are running on zsh, and set the options which allow our commands through 15928 # without removal of \ escapes. 15929 if test -n "${ZSH_VERSION+set}" ; then 15930 setopt NO_GLOB_SUBST 15931 fi 15932 # Now quote all the things that may contain metacharacters while being 15933 # careful not to overquote the AC_SUBSTed values. We take copies of the 15934 # variables and quote the copies for generation of the libtool script. 15935 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15936 SED SHELL STRIP \ 15937 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15938 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15939 deplibs_check_method reload_flag reload_cmds need_locks \ 15940 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15941 lt_cv_sys_global_symbol_to_c_name_address \ 15942 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15943 old_postinstall_cmds old_postuninstall_cmds \ 15944 compiler_F77 \ 15945 CC_F77 \ 15946 LD_F77 \ 15947 lt_prog_compiler_wl_F77 \ 15948 lt_prog_compiler_pic_F77 \ 15949 lt_prog_compiler_static_F77 \ 15950 lt_prog_compiler_no_builtin_flag_F77 \ 15951 export_dynamic_flag_spec_F77 \ 15952 thread_safe_flag_spec_F77 \ 15953 whole_archive_flag_spec_F77 \ 15954 enable_shared_with_static_runtimes_F77 \ 15955 old_archive_cmds_F77 \ 15956 old_archive_from_new_cmds_F77 \ 15957 predep_objects_F77 \ 15958 postdep_objects_F77 \ 15959 predeps_F77 \ 15960 postdeps_F77 \ 15961 compiler_lib_search_path_F77 \ 15962 archive_cmds_F77 \ 15963 archive_expsym_cmds_F77 \ 15964 postinstall_cmds_F77 \ 15965 postuninstall_cmds_F77 \ 15966 old_archive_from_expsyms_cmds_F77 \ 15967 allow_undefined_flag_F77 \ 15968 no_undefined_flag_F77 \ 15969 export_symbols_cmds_F77 \ 15970 hardcode_libdir_flag_spec_F77 \ 15971 hardcode_libdir_flag_spec_ld_F77 \ 15972 hardcode_libdir_separator_F77 \ 15973 hardcode_automatic_F77 \ 15974 module_cmds_F77 \ 15975 module_expsym_cmds_F77 \ 15976 lt_cv_prog_compiler_c_o_F77 \ 15977 fix_srcfile_path_F77 \ 15978 exclude_expsyms_F77 \ 15979 include_expsyms_F77; do 15980 15981 case $var in 15982 old_archive_cmds_F77 | \ 15983 old_archive_from_new_cmds_F77 | \ 15984 archive_cmds_F77 | \ 15985 archive_expsym_cmds_F77 | \ 15986 module_cmds_F77 | \ 15987 module_expsym_cmds_F77 | \ 15988 old_archive_from_expsyms_cmds_F77 | \ 15989 export_symbols_cmds_F77 | \ 15990 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15991 postinstall_cmds | postuninstall_cmds | \ 15992 old_postinstall_cmds | old_postuninstall_cmds | \ 15993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15994 # Double-quote double-evaled strings. 15995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15996 ;; 15997 *) 15998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15999 ;; 16000 esac 16001 done 16002 16003 case $lt_echo in 16004 *'\$0 --fallback-echo"') 16005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16006 ;; 16007 esac 16008 16009cfgfile="$ofile" 16010 16011 cat <<__EOF__ >> "$cfgfile" 16012# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16013 16014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16015 16016# Shell to use when invoking shell scripts. 16017SHELL=$lt_SHELL 16018 16019# Whether or not to build shared libraries. 16020build_libtool_libs=$enable_shared 16021 16022# Whether or not to build static libraries. 16023build_old_libs=$enable_static 16024 16025# Whether or not to add -lc for building shared libraries. 16026build_libtool_need_lc=$archive_cmds_need_lc_F77 16027 16028# Whether or not to disallow shared libs when runtime libs are static 16029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16030 16031# Whether or not to optimize for fast installation. 16032fast_install=$enable_fast_install 16033 16034# The host system. 16035host_alias=$host_alias 16036host=$host 16037host_os=$host_os 16038 16039# The build system. 16040build_alias=$build_alias 16041build=$build 16042build_os=$build_os 16043 16044# An echo program that does not interpret backslashes. 16045echo=$lt_echo 16046 16047# The archiver. 16048AR=$lt_AR 16049AR_FLAGS=$lt_AR_FLAGS 16050 16051# A C compiler. 16052LTCC=$lt_LTCC 16053 16054# LTCC compiler flags. 16055LTCFLAGS=$lt_LTCFLAGS 16056 16057# A language-specific compiler. 16058CC=$lt_compiler_F77 16059 16060# Is the compiler the GNU C compiler? 16061with_gcc=$GCC_F77 16062 16063# An ERE matcher. 16064EGREP=$lt_EGREP 16065 16066# The linker used to build libraries. 16067LD=$lt_LD_F77 16068 16069# Whether we need hard or soft links. 16070LN_S=$lt_LN_S 16071 16072# A BSD-compatible nm program. 16073NM=$lt_NM 16074 16075# A symbol stripping program 16076STRIP=$lt_STRIP 16077 16078# Used to examine libraries when file_magic_cmd begins "file" 16079MAGIC_CMD=$MAGIC_CMD 16080 16081# Used on cygwin: DLL creation program. 16082DLLTOOL="$DLLTOOL" 16083 16084# Used on cygwin: object dumper. 16085OBJDUMP="$OBJDUMP" 16086 16087# Used on cygwin: assembler. 16088AS="$AS" 16089 16090# The name of the directory that contains temporary libtool files. 16091objdir=$objdir 16092 16093# How to create reloadable object files. 16094reload_flag=$lt_reload_flag 16095reload_cmds=$lt_reload_cmds 16096 16097# How to pass a linker flag through the compiler. 16098wl=$lt_lt_prog_compiler_wl_F77 16099 16100# Object file suffix (normally "o"). 16101objext="$ac_objext" 16102 16103# Old archive suffix (normally "a"). 16104libext="$libext" 16105 16106# Shared library suffix (normally ".so"). 16107shrext_cmds='$shrext_cmds' 16108 16109# Executable file suffix (normally ""). 16110exeext="$exeext" 16111 16112# Additional compiler flags for building library objects. 16113pic_flag=$lt_lt_prog_compiler_pic_F77 16114pic_mode=$pic_mode 16115 16116# What is the maximum length of a command? 16117max_cmd_len=$lt_cv_sys_max_cmd_len 16118 16119# Does compiler simultaneously support -c and -o options? 16120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16121 16122# Must we lock files when doing compilation? 16123need_locks=$lt_need_locks 16124 16125# Do we need the lib prefix for modules? 16126need_lib_prefix=$need_lib_prefix 16127 16128# Do we need a version for libraries? 16129need_version=$need_version 16130 16131# Whether dlopen is supported. 16132dlopen_support=$enable_dlopen 16133 16134# Whether dlopen of programs is supported. 16135dlopen_self=$enable_dlopen_self 16136 16137# Whether dlopen of statically linked programs is supported. 16138dlopen_self_static=$enable_dlopen_self_static 16139 16140# Compiler flag to prevent dynamic linking. 16141link_static_flag=$lt_lt_prog_compiler_static_F77 16142 16143# Compiler flag to turn off builtin functions. 16144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16145 16146# Compiler flag to allow reflexive dlopens. 16147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16148 16149# Compiler flag to generate shared objects directly from archives. 16150whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16151 16152# Compiler flag to generate thread-safe objects. 16153thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16154 16155# Library versioning type. 16156version_type=$version_type 16157 16158# Format of library name prefix. 16159libname_spec=$lt_libname_spec 16160 16161# List of archive names. First name is the real one, the rest are links. 16162# The last name is the one that the linker finds with -lNAME. 16163library_names_spec=$lt_library_names_spec 16164 16165# The coded name of the library, if different from the real name. 16166soname_spec=$lt_soname_spec 16167 16168# Commands used to build and install an old-style archive. 16169RANLIB=$lt_RANLIB 16170old_archive_cmds=$lt_old_archive_cmds_F77 16171old_postinstall_cmds=$lt_old_postinstall_cmds 16172old_postuninstall_cmds=$lt_old_postuninstall_cmds 16173 16174# Create an old-style archive from a shared archive. 16175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16176 16177# Create a temporary old-style archive to link instead of a shared archive. 16178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16179 16180# Commands used to build and install a shared archive. 16181archive_cmds=$lt_archive_cmds_F77 16182archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16183postinstall_cmds=$lt_postinstall_cmds 16184postuninstall_cmds=$lt_postuninstall_cmds 16185 16186# Commands used to build a loadable module (assumed same as above if empty) 16187module_cmds=$lt_module_cmds_F77 16188module_expsym_cmds=$lt_module_expsym_cmds_F77 16189 16190# Commands to strip libraries. 16191old_striplib=$lt_old_striplib 16192striplib=$lt_striplib 16193 16194# Dependencies to place before the objects being linked to create a 16195# shared library. 16196predep_objects=$lt_predep_objects_F77 16197 16198# Dependencies to place after the objects being linked to create a 16199# shared library. 16200postdep_objects=$lt_postdep_objects_F77 16201 16202# Dependencies to place before the objects being linked to create a 16203# shared library. 16204predeps=$lt_predeps_F77 16205 16206# Dependencies to place after the objects being linked to create a 16207# shared library. 16208postdeps=$lt_postdeps_F77 16209 16210# The library search path used internally by the compiler when linking 16211# a shared library. 16212compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16213 16214# Method to check whether dependent libraries are shared objects. 16215deplibs_check_method=$lt_deplibs_check_method 16216 16217# Command to use when deplibs_check_method == file_magic. 16218file_magic_cmd=$lt_file_magic_cmd 16219 16220# Flag that allows shared libraries with undefined symbols to be built. 16221allow_undefined_flag=$lt_allow_undefined_flag_F77 16222 16223# Flag that forces no undefined symbols. 16224no_undefined_flag=$lt_no_undefined_flag_F77 16225 16226# Commands used to finish a libtool library installation in a directory. 16227finish_cmds=$lt_finish_cmds 16228 16229# Same as above, but a single script fragment to be evaled but not shown. 16230finish_eval=$lt_finish_eval 16231 16232# Take the output of nm and produce a listing of raw symbols and C names. 16233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16234 16235# Transform the output of nm in a proper C declaration 16236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16237 16238# Transform the output of nm in a C name address pair 16239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16240 16241# This is the shared library runtime path variable. 16242runpath_var=$runpath_var 16243 16244# This is the shared library path variable. 16245shlibpath_var=$shlibpath_var 16246 16247# Is shlibpath searched before the hard-coded library search path? 16248shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16249 16250# How to hardcode a shared library path into an executable. 16251hardcode_action=$hardcode_action_F77 16252 16253# Whether we should hardcode library paths into libraries. 16254hardcode_into_libs=$hardcode_into_libs 16255 16256# Flag to hardcode \$libdir into a binary during linking. 16257# This must work even if \$libdir does not exist. 16258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16259 16260# If ld is used when linking, flag to hardcode \$libdir into 16261# a binary during linking. This must work even if \$libdir does 16262# not exist. 16263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16264 16265# Whether we need a single -rpath flag with a separated argument. 16266hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16267 16268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16269# resulting binary. 16270hardcode_direct=$hardcode_direct_F77 16271 16272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16273# resulting binary. 16274hardcode_minus_L=$hardcode_minus_L_F77 16275 16276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16277# the resulting binary. 16278hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16279 16280# Set to yes if building a shared library automatically hardcodes DIR into the library 16281# and all subsequent libraries and executables linked against it. 16282hardcode_automatic=$hardcode_automatic_F77 16283 16284# Variables whose values should be saved in libtool wrapper scripts and 16285# restored at relink time. 16286variables_saved_for_relink="$variables_saved_for_relink" 16287 16288# Whether libtool must link a program against all its dependency libraries. 16289link_all_deplibs=$link_all_deplibs_F77 16290 16291# Compile-time system search path for libraries 16292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16293 16294# Run-time system search path for libraries 16295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16296 16297# Fix the shell variable \$srcfile for the compiler. 16298fix_srcfile_path=$lt_fix_srcfile_path 16299 16300# Set to yes if exported symbols are required. 16301always_export_symbols=$always_export_symbols_F77 16302 16303# The commands to list exported symbols. 16304export_symbols_cmds=$lt_export_symbols_cmds_F77 16305 16306# The commands to extract the exported symbol list from a shared archive. 16307extract_expsyms_cmds=$lt_extract_expsyms_cmds 16308 16309# Symbols that should not be listed in the preloaded symbols. 16310exclude_expsyms=$lt_exclude_expsyms_F77 16311 16312# Symbols that must always be exported. 16313include_expsyms=$lt_include_expsyms_F77 16314 16315# ### END LIBTOOL TAG CONFIG: $tagname 16316 16317__EOF__ 16318 16319 16320else 16321 # If there is no Makefile yet, we rely on a make rule to execute 16322 # `config.status --recheck' to rerun these tests and create the 16323 # libtool script then. 16324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16325 if test -f "$ltmain_in"; then 16326 test -f Makefile && make "$ltmain" 16327 fi 16328fi 16329 16330 16331ac_ext=c 16332ac_cpp='$CPP $CPPFLAGS' 16333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16335ac_compiler_gnu=$ac_cv_c_compiler_gnu 16336 16337CC="$lt_save_CC" 16338 16339 else 16340 tagname="" 16341 fi 16342 ;; 16343 16344 GCJ) 16345 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16346 16347 16348# Source file extension for Java test sources. 16349ac_ext=java 16350 16351# Object file extension for compiled Java test sources. 16352objext=o 16353objext_GCJ=$objext 16354 16355# Code to be used in simple compile tests 16356lt_simple_compile_test_code="class foo {}" 16357 16358# Code to be used in simple link tests 16359lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16360 16361# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16362 16363# If no C compiler was specified, use CC. 16364LTCC=${LTCC-"$CC"} 16365 16366# If no C compiler flags were specified, use CFLAGS. 16367LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16368 16369# Allow CC to be a program name with arguments. 16370compiler=$CC 16371 16372 16373# save warnings/boilerplate of simple test code 16374ac_outfile=conftest.$ac_objext 16375echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16376eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16377_lt_compiler_boilerplate=`cat conftest.err` 16378$rm conftest* 16379 16380ac_outfile=conftest.$ac_objext 16381echo "$lt_simple_link_test_code" >conftest.$ac_ext 16382eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16383_lt_linker_boilerplate=`cat conftest.err` 16384$rm conftest* 16385 16386 16387# Allow CC to be a program name with arguments. 16388lt_save_CC="$CC" 16389CC=${GCJ-"gcj"} 16390compiler=$CC 16391compiler_GCJ=$CC 16392for cc_temp in $compiler""; do 16393 case $cc_temp in 16394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16396 \-*) ;; 16397 *) break;; 16398 esac 16399done 16400cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16401 16402 16403# GCJ did not exist at the time GCC didn't implicitly link libc in. 16404archive_cmds_need_lc_GCJ=no 16405 16406old_archive_cmds_GCJ=$old_archive_cmds 16407 16408 16409lt_prog_compiler_no_builtin_flag_GCJ= 16410 16411if test "$GCC" = yes; then 16412 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16413 16414 16415{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16416echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16417if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16418 echo $ECHO_N "(cached) $ECHO_C" >&6 16419else 16420 lt_cv_prog_compiler_rtti_exceptions=no 16421 ac_outfile=conftest.$ac_objext 16422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16423 lt_compiler_flag="-fno-rtti -fno-exceptions" 16424 # Insert the option either (1) after the last *FLAGS variable, or 16425 # (2) before a word containing "conftest.", or (3) at the end. 16426 # Note that $ac_compile itself does not contain backslashes and begins 16427 # with a dollar sign (not a hyphen), so the echo should work correctly. 16428 # The option is referenced via a variable to avoid confusing sed. 16429 lt_compile=`echo "$ac_compile" | $SED \ 16430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16432 -e 's:$: $lt_compiler_flag:'` 16433 (eval echo "\"\$as_me:16433: $lt_compile\"" >&5) 16434 (eval "$lt_compile" 2>conftest.err) 16435 ac_status=$? 16436 cat conftest.err >&5 16437 echo "$as_me:16437: \$? = $ac_status" >&5 16438 if (exit $ac_status) && test -s "$ac_outfile"; then 16439 # The compiler can only warn and ignore the option if not recognized 16440 # So say no if there are warnings other than the usual output. 16441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16444 lt_cv_prog_compiler_rtti_exceptions=yes 16445 fi 16446 fi 16447 $rm conftest* 16448 16449fi 16450{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16451echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16452 16453if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16454 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16455else 16456 : 16457fi 16458 16459fi 16460 16461lt_prog_compiler_wl_GCJ= 16462lt_prog_compiler_pic_GCJ= 16463lt_prog_compiler_static_GCJ= 16464 16465{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16466echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16467 16468 if test "$GCC" = yes; then 16469 lt_prog_compiler_wl_GCJ='-Wl,' 16470 lt_prog_compiler_static_GCJ='-static' 16471 16472 case $host_os in 16473 aix*) 16474 # All AIX code is PIC. 16475 if test "$host_cpu" = ia64; then 16476 # AIX 5 now supports IA64 processor 16477 lt_prog_compiler_static_GCJ='-Bstatic' 16478 fi 16479 ;; 16480 16481 amigaos*) 16482 # FIXME: we need at least 68020 code to build shared libraries, but 16483 # adding the `-m68020' flag to GCC prevents building anything better, 16484 # like `-m68040'. 16485 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16486 ;; 16487 16488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16489 # PIC is the default for these OSes. 16490 ;; 16491 16492 mingw* | cygwin* | pw32* | os2*) 16493 # This hack is so that the source file can tell whether it is being 16494 # built for inclusion in a dll (and should export symbols for example). 16495 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16496 # (--disable-auto-import) libraries 16497 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16498 ;; 16499 16500 darwin* | rhapsody*) 16501 # PIC is the default on this platform 16502 # Common symbols not allowed in MH_DYLIB files 16503 lt_prog_compiler_pic_GCJ='-fno-common' 16504 ;; 16505 16506 interix[3-9]*) 16507 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16508 # Instead, we relocate shared libraries at runtime. 16509 ;; 16510 16511 msdosdjgpp*) 16512 # Just because we use GCC doesn't mean we suddenly get shared libraries 16513 # on systems that don't support them. 16514 lt_prog_compiler_can_build_shared_GCJ=no 16515 enable_shared=no 16516 ;; 16517 16518 sysv4*MP*) 16519 if test -d /usr/nec; then 16520 lt_prog_compiler_pic_GCJ=-Kconform_pic 16521 fi 16522 ;; 16523 16524 hpux*) 16525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16526 # not for PA HP-UX. 16527 case $host_cpu in 16528 hppa*64*|ia64*) 16529 # +Z the default 16530 ;; 16531 *) 16532 lt_prog_compiler_pic_GCJ='-fPIC' 16533 ;; 16534 esac 16535 ;; 16536 16537 *) 16538 lt_prog_compiler_pic_GCJ='-fPIC' 16539 ;; 16540 esac 16541 else 16542 # PORTME Check for flag to pass linker flags through the system compiler. 16543 case $host_os in 16544 aix*) 16545 lt_prog_compiler_wl_GCJ='-Wl,' 16546 if test "$host_cpu" = ia64; then 16547 # AIX 5 now supports IA64 processor 16548 lt_prog_compiler_static_GCJ='-Bstatic' 16549 else 16550 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16551 fi 16552 ;; 16553 darwin*) 16554 # PIC is the default on this platform 16555 # Common symbols not allowed in MH_DYLIB files 16556 case $cc_basename in 16557 xlc*) 16558 lt_prog_compiler_pic_GCJ='-qnocommon' 16559 lt_prog_compiler_wl_GCJ='-Wl,' 16560 ;; 16561 esac 16562 ;; 16563 16564 mingw* | cygwin* | pw32* | os2*) 16565 # This hack is so that the source file can tell whether it is being 16566 # built for inclusion in a dll (and should export symbols for example). 16567 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16568 ;; 16569 16570 hpux9* | hpux10* | hpux11*) 16571 lt_prog_compiler_wl_GCJ='-Wl,' 16572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16573 # not for PA HP-UX. 16574 case $host_cpu in 16575 hppa*64*|ia64*) 16576 # +Z the default 16577 ;; 16578 *) 16579 lt_prog_compiler_pic_GCJ='+Z' 16580 ;; 16581 esac 16582 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16583 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16584 ;; 16585 16586 irix5* | irix6* | nonstopux*) 16587 lt_prog_compiler_wl_GCJ='-Wl,' 16588 # PIC (with -KPIC) is the default. 16589 lt_prog_compiler_static_GCJ='-non_shared' 16590 ;; 16591 16592 newsos6) 16593 lt_prog_compiler_pic_GCJ='-KPIC' 16594 lt_prog_compiler_static_GCJ='-Bstatic' 16595 ;; 16596 16597 linux* | k*bsd*-gnu) 16598 case $cc_basename in 16599 icc* | ecc*) 16600 lt_prog_compiler_wl_GCJ='-Wl,' 16601 lt_prog_compiler_pic_GCJ='-KPIC' 16602 lt_prog_compiler_static_GCJ='-static' 16603 ;; 16604 pgcc* | pgf77* | pgf90* | pgf95*) 16605 # Portland Group compilers (*not* the Pentium gcc compiler, 16606 # which looks to be a dead project) 16607 lt_prog_compiler_wl_GCJ='-Wl,' 16608 lt_prog_compiler_pic_GCJ='-fpic' 16609 lt_prog_compiler_static_GCJ='-Bstatic' 16610 ;; 16611 ccc*) 16612 lt_prog_compiler_wl_GCJ='-Wl,' 16613 # All Alpha code is PIC. 16614 lt_prog_compiler_static_GCJ='-non_shared' 16615 ;; 16616 *) 16617 case `$CC -V 2>&1 | sed 5q` in 16618 *Sun\ C*) 16619 # Sun C 5.9 16620 lt_prog_compiler_pic_GCJ='-KPIC' 16621 lt_prog_compiler_static_GCJ='-Bstatic' 16622 lt_prog_compiler_wl_GCJ='-Wl,' 16623 ;; 16624 *Sun\ F*) 16625 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16626 lt_prog_compiler_pic_GCJ='-KPIC' 16627 lt_prog_compiler_static_GCJ='-Bstatic' 16628 lt_prog_compiler_wl_GCJ='' 16629 ;; 16630 esac 16631 ;; 16632 esac 16633 ;; 16634 16635 osf3* | osf4* | osf5*) 16636 lt_prog_compiler_wl_GCJ='-Wl,' 16637 # All OSF/1 code is PIC. 16638 lt_prog_compiler_static_GCJ='-non_shared' 16639 ;; 16640 16641 rdos*) 16642 lt_prog_compiler_static_GCJ='-non_shared' 16643 ;; 16644 16645 solaris*) 16646 lt_prog_compiler_pic_GCJ='-KPIC' 16647 lt_prog_compiler_static_GCJ='-Bstatic' 16648 case $cc_basename in 16649 f77* | f90* | f95*) 16650 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16651 *) 16652 lt_prog_compiler_wl_GCJ='-Wl,';; 16653 esac 16654 ;; 16655 16656 sunos4*) 16657 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16658 lt_prog_compiler_pic_GCJ='-PIC' 16659 lt_prog_compiler_static_GCJ='-Bstatic' 16660 ;; 16661 16662 sysv4 | sysv4.2uw2* | sysv4.3*) 16663 lt_prog_compiler_wl_GCJ='-Wl,' 16664 lt_prog_compiler_pic_GCJ='-KPIC' 16665 lt_prog_compiler_static_GCJ='-Bstatic' 16666 ;; 16667 16668 sysv4*MP*) 16669 if test -d /usr/nec ;then 16670 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16671 lt_prog_compiler_static_GCJ='-Bstatic' 16672 fi 16673 ;; 16674 16675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16676 lt_prog_compiler_wl_GCJ='-Wl,' 16677 lt_prog_compiler_pic_GCJ='-KPIC' 16678 lt_prog_compiler_static_GCJ='-Bstatic' 16679 ;; 16680 16681 unicos*) 16682 lt_prog_compiler_wl_GCJ='-Wl,' 16683 lt_prog_compiler_can_build_shared_GCJ=no 16684 ;; 16685 16686 uts4*) 16687 lt_prog_compiler_pic_GCJ='-pic' 16688 lt_prog_compiler_static_GCJ='-Bstatic' 16689 ;; 16690 16691 *) 16692 lt_prog_compiler_can_build_shared_GCJ=no 16693 ;; 16694 esac 16695 fi 16696 16697{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16698echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16699 16700# 16701# Check to make sure the PIC flag actually works. 16702# 16703if test -n "$lt_prog_compiler_pic_GCJ"; then 16704 16705{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16707if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16708 echo $ECHO_N "(cached) $ECHO_C" >&6 16709else 16710 lt_prog_compiler_pic_works_GCJ=no 16711 ac_outfile=conftest.$ac_objext 16712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16713 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16714 # Insert the option either (1) after the last *FLAGS variable, or 16715 # (2) before a word containing "conftest.", or (3) at the end. 16716 # Note that $ac_compile itself does not contain backslashes and begins 16717 # with a dollar sign (not a hyphen), so the echo should work correctly. 16718 # The option is referenced via a variable to avoid confusing sed. 16719 lt_compile=`echo "$ac_compile" | $SED \ 16720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16722 -e 's:$: $lt_compiler_flag:'` 16723 (eval echo "\"\$as_me:16723: $lt_compile\"" >&5) 16724 (eval "$lt_compile" 2>conftest.err) 16725 ac_status=$? 16726 cat conftest.err >&5 16727 echo "$as_me:16727: \$? = $ac_status" >&5 16728 if (exit $ac_status) && test -s "$ac_outfile"; then 16729 # The compiler can only warn and ignore the option if not recognized 16730 # So say no if there are warnings other than the usual output. 16731 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16734 lt_prog_compiler_pic_works_GCJ=yes 16735 fi 16736 fi 16737 $rm conftest* 16738 16739fi 16740{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16741echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16742 16743if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16744 case $lt_prog_compiler_pic_GCJ in 16745 "" | " "*) ;; 16746 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16747 esac 16748else 16749 lt_prog_compiler_pic_GCJ= 16750 lt_prog_compiler_can_build_shared_GCJ=no 16751fi 16752 16753fi 16754case $host_os in 16755 # For platforms which do not support PIC, -DPIC is meaningless: 16756 *djgpp*) 16757 lt_prog_compiler_pic_GCJ= 16758 ;; 16759 *) 16760 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16761 ;; 16762esac 16763 16764# 16765# Check to make sure the static flag actually works. 16766# 16767wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16768{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16769echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16770if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16771 echo $ECHO_N "(cached) $ECHO_C" >&6 16772else 16773 lt_prog_compiler_static_works_GCJ=no 16774 save_LDFLAGS="$LDFLAGS" 16775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16776 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16778 # The linker can only warn and ignore the option if not recognized 16779 # So say no if there are warnings 16780 if test -s conftest.err; then 16781 # Append any errors to the config.log. 16782 cat conftest.err 1>&5 16783 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16785 if diff conftest.exp conftest.er2 >/dev/null; then 16786 lt_prog_compiler_static_works_GCJ=yes 16787 fi 16788 else 16789 lt_prog_compiler_static_works_GCJ=yes 16790 fi 16791 fi 16792 $rm conftest* 16793 LDFLAGS="$save_LDFLAGS" 16794 16795fi 16796{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16797echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16798 16799if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16800 : 16801else 16802 lt_prog_compiler_static_GCJ= 16803fi 16804 16805 16806{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16807echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16808if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16809 echo $ECHO_N "(cached) $ECHO_C" >&6 16810else 16811 lt_cv_prog_compiler_c_o_GCJ=no 16812 $rm -r conftest 2>/dev/null 16813 mkdir conftest 16814 cd conftest 16815 mkdir out 16816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16817 16818 lt_compiler_flag="-o out/conftest2.$ac_objext" 16819 # Insert the option either (1) after the last *FLAGS variable, or 16820 # (2) before a word containing "conftest.", or (3) at the end. 16821 # Note that $ac_compile itself does not contain backslashes and begins 16822 # with a dollar sign (not a hyphen), so the echo should work correctly. 16823 lt_compile=`echo "$ac_compile" | $SED \ 16824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16826 -e 's:$: $lt_compiler_flag:'` 16827 (eval echo "\"\$as_me:16827: $lt_compile\"" >&5) 16828 (eval "$lt_compile" 2>out/conftest.err) 16829 ac_status=$? 16830 cat out/conftest.err >&5 16831 echo "$as_me:16831: \$? = $ac_status" >&5 16832 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16833 then 16834 # The compiler can only warn and ignore the option if not recognized 16835 # So say no if there are warnings 16836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16839 lt_cv_prog_compiler_c_o_GCJ=yes 16840 fi 16841 fi 16842 chmod u+w . 2>&5 16843 $rm conftest* 16844 # SGI C++ compiler will create directory out/ii_files/ for 16845 # template instantiation 16846 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16847 $rm out/* && rmdir out 16848 cd .. 16849 rmdir conftest 16850 $rm conftest* 16851 16852fi 16853{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16855 16856 16857hard_links="nottested" 16858if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16859 # do not overwrite the value of need_locks provided by the user 16860 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16862 hard_links=yes 16863 $rm conftest* 16864 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16865 touch conftest.a 16866 ln conftest.a conftest.b 2>&5 || hard_links=no 16867 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16868 { echo "$as_me:$LINENO: result: $hard_links" >&5 16869echo "${ECHO_T}$hard_links" >&6; } 16870 if test "$hard_links" = no; then 16871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16873 need_locks=warn 16874 fi 16875else 16876 need_locks=no 16877fi 16878 16879{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16881 16882 runpath_var= 16883 allow_undefined_flag_GCJ= 16884 enable_shared_with_static_runtimes_GCJ=no 16885 archive_cmds_GCJ= 16886 archive_expsym_cmds_GCJ= 16887 old_archive_From_new_cmds_GCJ= 16888 old_archive_from_expsyms_cmds_GCJ= 16889 export_dynamic_flag_spec_GCJ= 16890 whole_archive_flag_spec_GCJ= 16891 thread_safe_flag_spec_GCJ= 16892 hardcode_libdir_flag_spec_GCJ= 16893 hardcode_libdir_flag_spec_ld_GCJ= 16894 hardcode_libdir_separator_GCJ= 16895 hardcode_direct_GCJ=no 16896 hardcode_minus_L_GCJ=no 16897 hardcode_shlibpath_var_GCJ=unsupported 16898 link_all_deplibs_GCJ=unknown 16899 hardcode_automatic_GCJ=no 16900 module_cmds_GCJ= 16901 module_expsym_cmds_GCJ= 16902 always_export_symbols_GCJ=no 16903 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16904 # include_expsyms should be a list of space-separated symbols to be *always* 16905 # included in the symbol list 16906 include_expsyms_GCJ= 16907 # exclude_expsyms can be an extended regexp of symbols to exclude 16908 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16910 # as well as any symbol that contains `d'. 16911 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16913 # platforms (ab)use it in PIC code, but their linkers get confused if 16914 # the symbol is explicitly referenced. Since portable code cannot 16915 # rely on this symbol name, it's probably fine to never include it in 16916 # preloaded symbol tables. 16917 extract_expsyms_cmds= 16918 # Just being paranoid about ensuring that cc_basename is set. 16919 for cc_temp in $compiler""; do 16920 case $cc_temp in 16921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16923 \-*) ;; 16924 *) break;; 16925 esac 16926done 16927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16928 16929 case $host_os in 16930 cygwin* | mingw* | pw32*) 16931 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16932 # When not using gcc, we currently assume that we are using 16933 # Microsoft Visual C++. 16934 if test "$GCC" != yes; then 16935 with_gnu_ld=no 16936 fi 16937 ;; 16938 interix*) 16939 # we just hope/assume this is gcc and not c89 (= MSVC++) 16940 with_gnu_ld=yes 16941 ;; 16942 openbsd*) 16943 with_gnu_ld=no 16944 ;; 16945 esac 16946 16947 ld_shlibs_GCJ=yes 16948 if test "$with_gnu_ld" = yes; then 16949 # If archive_cmds runs LD, not CC, wlarc should be empty 16950 wlarc='${wl}' 16951 16952 # Set some defaults for GNU ld with shared library support. These 16953 # are reset later if shared libraries are not supported. Putting them 16954 # here allows them to be overridden if necessary. 16955 runpath_var=LD_RUN_PATH 16956 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16957 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16958 # ancient GNU ld didn't support --whole-archive et. al. 16959 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16960 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16961 else 16962 whole_archive_flag_spec_GCJ= 16963 fi 16964 supports_anon_versioning=no 16965 case `$LD -v 2>/dev/null` in 16966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16969 *\ 2.11.*) ;; # other 2.11 versions 16970 *) supports_anon_versioning=yes ;; 16971 esac 16972 16973 # See if GNU ld supports shared libraries. 16974 case $host_os in 16975 aix3* | aix4* | aix5*) 16976 # On AIX/PPC, the GNU linker is very broken 16977 if test "$host_cpu" != ia64; then 16978 ld_shlibs_GCJ=no 16979 cat <<EOF 1>&2 16980 16981*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16982*** to be unable to reliably create shared libraries on AIX. 16983*** Therefore, libtool is disabling shared libraries support. If you 16984*** really care for shared libraries, you may want to modify your PATH 16985*** so that a non-GNU linker is found, and then restart. 16986 16987EOF 16988 fi 16989 ;; 16990 16991 amigaos*) 16992 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)' 16993 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16994 hardcode_minus_L_GCJ=yes 16995 16996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16997 # that the semantics of dynamic libraries on AmigaOS, at least up 16998 # to version 4, is to share data among multiple programs linked 16999 # with the same dynamic library. Since this doesn't match the 17000 # behavior of shared libraries on other platforms, we can't use 17001 # them. 17002 ld_shlibs_GCJ=no 17003 ;; 17004 17005 beos*) 17006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17007 allow_undefined_flag_GCJ=unsupported 17008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17009 # support --undefined. This deserves some investigation. FIXME 17010 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17011 else 17012 ld_shlibs_GCJ=no 17013 fi 17014 ;; 17015 17016 cygwin* | mingw* | pw32*) 17017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17018 # as there is no search path for DLLs. 17019 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17020 allow_undefined_flag_GCJ=unsupported 17021 always_export_symbols_GCJ=no 17022 enable_shared_with_static_runtimes_GCJ=yes 17023 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17024 17025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17027 # If the export-symbols file already is a .def file (1st line 17028 # is EXPORTS), use it as is; otherwise, prepend... 17029 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17030 cp $export_symbols $output_objdir/$soname.def; 17031 else 17032 echo EXPORTS > $output_objdir/$soname.def; 17033 cat $export_symbols >> $output_objdir/$soname.def; 17034 fi~ 17035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17036 else 17037 ld_shlibs_GCJ=no 17038 fi 17039 ;; 17040 17041 interix[3-9]*) 17042 hardcode_direct_GCJ=no 17043 hardcode_shlibpath_var_GCJ=no 17044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17045 export_dynamic_flag_spec_GCJ='${wl}-E' 17046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17047 # Instead, shared libraries are loaded at an image base (0x10000000 by 17048 # default) and relocated if they conflict, which is a slow very memory 17049 # consuming and fragmenting process. To avoid this, we pick a random, 17050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17051 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17052 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' 17053 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' 17054 ;; 17055 17056 gnu* | linux* | k*bsd*-gnu) 17057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17058 tmp_addflag= 17059 case $cc_basename,$host_cpu in 17060 pgcc*) # Portland Group C compiler 17061 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' 17062 tmp_addflag=' $pic_flag' 17063 ;; 17064 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17065 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' 17066 tmp_addflag=' $pic_flag -Mnomain' ;; 17067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17068 tmp_addflag=' -i_dynamic' ;; 17069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17070 tmp_addflag=' -i_dynamic -nofor_main' ;; 17071 ifc* | ifort*) # Intel Fortran compiler 17072 tmp_addflag=' -nofor_main' ;; 17073 esac 17074 case `$CC -V 2>&1 | sed 5q` in 17075 *Sun\ C*) # Sun C 5.9 17076 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' 17077 tmp_sharedflag='-G' ;; 17078 *Sun\ F*) # Sun Fortran 8.3 17079 tmp_sharedflag='-G' ;; 17080 *) 17081 tmp_sharedflag='-shared' ;; 17082 esac 17083 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17084 17085 if test $supports_anon_versioning = yes; then 17086 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17088 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17090 fi 17091 link_all_deplibs_GCJ=no 17092 else 17093 ld_shlibs_GCJ=no 17094 fi 17095 ;; 17096 17097 netbsd* | netbsdelf*-gnu) 17098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17099 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17100 wlarc= 17101 else 17102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17103 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17104 fi 17105 ;; 17106 17107 solaris*) 17108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17109 ld_shlibs_GCJ=no 17110 cat <<EOF 1>&2 17111 17112*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17113*** create shared libraries on Solaris systems. Therefore, libtool 17114*** is disabling shared libraries support. We urge you to upgrade GNU 17115*** binutils to release 2.9.1 or newer. Another option is to modify 17116*** your PATH or compiler configuration so that the native linker is 17117*** used, and then restart. 17118 17119EOF 17120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17122 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17123 else 17124 ld_shlibs_GCJ=no 17125 fi 17126 ;; 17127 17128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17129 case `$LD -v 2>&1` in 17130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17131 ld_shlibs_GCJ=no 17132 cat <<_LT_EOF 1>&2 17133 17134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17135*** reliably create shared libraries on SCO systems. Therefore, libtool 17136*** is disabling shared libraries support. We urge you to upgrade GNU 17137*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17138*** your PATH or compiler configuration so that the native linker is 17139*** used, and then restart. 17140 17141_LT_EOF 17142 ;; 17143 *) 17144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17145 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17148 else 17149 ld_shlibs_GCJ=no 17150 fi 17151 ;; 17152 esac 17153 ;; 17154 17155 sunos4*) 17156 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17157 wlarc= 17158 hardcode_direct_GCJ=yes 17159 hardcode_shlibpath_var_GCJ=no 17160 ;; 17161 17162 *) 17163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17165 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17166 else 17167 ld_shlibs_GCJ=no 17168 fi 17169 ;; 17170 esac 17171 17172 if test "$ld_shlibs_GCJ" = no; then 17173 runpath_var= 17174 hardcode_libdir_flag_spec_GCJ= 17175 export_dynamic_flag_spec_GCJ= 17176 whole_archive_flag_spec_GCJ= 17177 fi 17178 else 17179 # PORTME fill in a description of your system's linker (not GNU ld) 17180 case $host_os in 17181 aix3*) 17182 allow_undefined_flag_GCJ=unsupported 17183 always_export_symbols_GCJ=yes 17184 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' 17185 # Note: this linker hardcodes the directories in LIBPATH if there 17186 # are no directories specified by -L. 17187 hardcode_minus_L_GCJ=yes 17188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17189 # Neither direct hardcoding nor static linking is supported with a 17190 # broken collect2. 17191 hardcode_direct_GCJ=unsupported 17192 fi 17193 ;; 17194 17195 aix4* | aix5*) 17196 if test "$host_cpu" = ia64; then 17197 # On IA64, the linker does run time linking by default, so we don't 17198 # have to do anything special. 17199 aix_use_runtimelinking=no 17200 exp_sym_flag='-Bexport' 17201 no_entry_flag="" 17202 else 17203 # If we're using GNU nm, then we don't want the "-C" option. 17204 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17206 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' 17207 else 17208 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' 17209 fi 17210 aix_use_runtimelinking=no 17211 17212 # Test if we are trying to use run time linking or normal 17213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17214 # need to do runtime linking. 17215 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17216 for ld_flag in $LDFLAGS; do 17217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17218 aix_use_runtimelinking=yes 17219 break 17220 fi 17221 done 17222 ;; 17223 esac 17224 17225 exp_sym_flag='-bexport' 17226 no_entry_flag='-bnoentry' 17227 fi 17228 17229 # When large executables or shared objects are built, AIX ld can 17230 # have problems creating the table of contents. If linking a library 17231 # or program results in "error TOC overflow" add -mminimal-toc to 17232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17234 17235 archive_cmds_GCJ='' 17236 hardcode_direct_GCJ=yes 17237 hardcode_libdir_separator_GCJ=':' 17238 link_all_deplibs_GCJ=yes 17239 17240 if test "$GCC" = yes; then 17241 case $host_os in aix4.[012]|aix4.[012].*) 17242 # We only want to do this on AIX 4.2 and lower, the check 17243 # below for broken collect2 doesn't work under 4.3+ 17244 collect2name=`${CC} -print-prog-name=collect2` 17245 if test -f "$collect2name" && \ 17246 strings "$collect2name" | grep resolve_lib_name >/dev/null 17247 then 17248 # We have reworked collect2 17249 : 17250 else 17251 # We have old collect2 17252 hardcode_direct_GCJ=unsupported 17253 # It fails to find uninstalled libraries when the uninstalled 17254 # path is not listed in the libpath. Setting hardcode_minus_L 17255 # to unsupported forces relinking 17256 hardcode_minus_L_GCJ=yes 17257 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17258 hardcode_libdir_separator_GCJ= 17259 fi 17260 ;; 17261 esac 17262 shared_flag='-shared' 17263 if test "$aix_use_runtimelinking" = yes; then 17264 shared_flag="$shared_flag "'${wl}-G' 17265 fi 17266 else 17267 # not using gcc 17268 if test "$host_cpu" = ia64; then 17269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17270 # chokes on -Wl,-G. The following line is correct: 17271 shared_flag='-G' 17272 else 17273 if test "$aix_use_runtimelinking" = yes; then 17274 shared_flag='${wl}-G' 17275 else 17276 shared_flag='${wl}-bM:SRE' 17277 fi 17278 fi 17279 fi 17280 17281 # It seems that -bexpall does not export symbols beginning with 17282 # underscore (_), so it is better to generate a list of symbols to export. 17283 always_export_symbols_GCJ=yes 17284 if test "$aix_use_runtimelinking" = yes; then 17285 # Warning - without using the other runtime loading flags (-brtl), 17286 # -berok will link without error, but may produce a broken library. 17287 allow_undefined_flag_GCJ='-berok' 17288 # Determine the default libpath from the value encoded in an empty executable. 17289 cat >conftest.$ac_ext <<_ACEOF 17290/* confdefs.h. */ 17291_ACEOF 17292cat confdefs.h >>conftest.$ac_ext 17293cat >>conftest.$ac_ext <<_ACEOF 17294/* end confdefs.h. */ 17295 17296int 17297main () 17298{ 17299 17300 ; 17301 return 0; 17302} 17303_ACEOF 17304rm -f conftest.$ac_objext conftest$ac_exeext 17305if { (ac_try="$ac_link" 17306case "(($ac_try" in 17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17308 *) ac_try_echo=$ac_try;; 17309esac 17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17311 (eval "$ac_link") 2>conftest.er1 17312 ac_status=$? 17313 grep -v '^ *+' conftest.er1 >conftest.err 17314 rm -f conftest.er1 17315 cat conftest.err >&5 17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17317 (exit $ac_status); } && { 17318 test -z "$ac_c_werror_flag" || 17319 test ! -s conftest.err 17320 } && test -s conftest$ac_exeext && 17321 $as_test_x conftest$ac_exeext; then 17322 17323lt_aix_libpath_sed=' 17324 /Import File Strings/,/^$/ { 17325 /^0/ { 17326 s/^0 *\(.*\)$/\1/ 17327 p 17328 } 17329 }' 17330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17331# Check for a 64-bit object if we didn't find anything. 17332if test -z "$aix_libpath"; then 17333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17334fi 17335else 17336 echo "$as_me: failed program was:" >&5 17337sed 's/^/| /' conftest.$ac_ext >&5 17338 17339 17340fi 17341 17342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17343 conftest$ac_exeext conftest.$ac_ext 17344if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17345 17346 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17347 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" 17348 else 17349 if test "$host_cpu" = ia64; then 17350 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17351 allow_undefined_flag_GCJ="-z nodefs" 17352 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" 17353 else 17354 # Determine the default libpath from the value encoded in an empty executable. 17355 cat >conftest.$ac_ext <<_ACEOF 17356/* confdefs.h. */ 17357_ACEOF 17358cat confdefs.h >>conftest.$ac_ext 17359cat >>conftest.$ac_ext <<_ACEOF 17360/* end confdefs.h. */ 17361 17362int 17363main () 17364{ 17365 17366 ; 17367 return 0; 17368} 17369_ACEOF 17370rm -f conftest.$ac_objext conftest$ac_exeext 17371if { (ac_try="$ac_link" 17372case "(($ac_try" in 17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17374 *) ac_try_echo=$ac_try;; 17375esac 17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17377 (eval "$ac_link") 2>conftest.er1 17378 ac_status=$? 17379 grep -v '^ *+' conftest.er1 >conftest.err 17380 rm -f conftest.er1 17381 cat conftest.err >&5 17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17383 (exit $ac_status); } && { 17384 test -z "$ac_c_werror_flag" || 17385 test ! -s conftest.err 17386 } && test -s conftest$ac_exeext && 17387 $as_test_x conftest$ac_exeext; then 17388 17389lt_aix_libpath_sed=' 17390 /Import File Strings/,/^$/ { 17391 /^0/ { 17392 s/^0 *\(.*\)$/\1/ 17393 p 17394 } 17395 }' 17396aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17397# Check for a 64-bit object if we didn't find anything. 17398if test -z "$aix_libpath"; then 17399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17400fi 17401else 17402 echo "$as_me: failed program was:" >&5 17403sed 's/^/| /' conftest.$ac_ext >&5 17404 17405 17406fi 17407 17408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17409 conftest$ac_exeext conftest.$ac_ext 17410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17411 17412 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17413 # Warning - without using the other run time loading flags, 17414 # -berok will link without error, but may produce a broken library. 17415 no_undefined_flag_GCJ=' ${wl}-bernotok' 17416 allow_undefined_flag_GCJ=' ${wl}-berok' 17417 # Exported symbols can be pulled into shared objects from archives 17418 whole_archive_flag_spec_GCJ='$convenience' 17419 archive_cmds_need_lc_GCJ=yes 17420 # This is similar to how AIX traditionally builds its shared libraries. 17421 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' 17422 fi 17423 fi 17424 ;; 17425 17426 amigaos*) 17427 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)' 17428 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17429 hardcode_minus_L_GCJ=yes 17430 # see comment about different semantics on the GNU ld section 17431 ld_shlibs_GCJ=no 17432 ;; 17433 17434 bsdi[45]*) 17435 export_dynamic_flag_spec_GCJ=-rdynamic 17436 ;; 17437 17438 cygwin* | mingw* | pw32*) 17439 # When not using gcc, we currently assume that we are using 17440 # Microsoft Visual C++. 17441 # hardcode_libdir_flag_spec is actually meaningless, as there is 17442 # no search path for DLLs. 17443 hardcode_libdir_flag_spec_GCJ=' ' 17444 allow_undefined_flag_GCJ=unsupported 17445 # Tell ltmain to make .lib files, not .a files. 17446 libext=lib 17447 # Tell ltmain to make .dll files, not .so files. 17448 shrext_cmds=".dll" 17449 # FIXME: Setting linknames here is a bad hack. 17450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17451 # The linker will automatically build a .lib file if we build a DLL. 17452 old_archive_From_new_cmds_GCJ='true' 17453 # FIXME: Should let the user specify the lib program. 17454 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17455 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17456 enable_shared_with_static_runtimes_GCJ=yes 17457 ;; 17458 17459 darwin* | rhapsody*) 17460 case $host_os in 17461 rhapsody* | darwin1.[012]) 17462 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17463 ;; 17464 *) # Darwin 1.3 on 17465 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17466 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17467 else 17468 case ${MACOSX_DEPLOYMENT_TARGET} in 17469 10.[012]) 17470 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17471 ;; 17472 10.*) 17473 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17474 ;; 17475 esac 17476 fi 17477 ;; 17478 esac 17479 archive_cmds_need_lc_GCJ=no 17480 hardcode_direct_GCJ=no 17481 hardcode_automatic_GCJ=yes 17482 hardcode_shlibpath_var_GCJ=unsupported 17483 whole_archive_flag_spec_GCJ='' 17484 link_all_deplibs_GCJ=yes 17485 if test "$GCC" = yes ; then 17486 output_verbose_link_cmd='echo' 17487 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17488 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17490 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}' 17491 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}' 17492 else 17493 case $cc_basename in 17494 xlc*) 17495 output_verbose_link_cmd='echo' 17496 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17497 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17499 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}' 17500 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}' 17501 ;; 17502 *) 17503 ld_shlibs_GCJ=no 17504 ;; 17505 esac 17506 fi 17507 ;; 17508 17509 dgux*) 17510 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17511 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17512 hardcode_shlibpath_var_GCJ=no 17513 ;; 17514 17515 freebsd1*) 17516 ld_shlibs_GCJ=no 17517 ;; 17518 17519 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17520 # support. Future versions do this automatically, but an explicit c++rt0.o 17521 # does not break anything, and helps significantly (at the cost of a little 17522 # extra space). 17523 freebsd2.2*) 17524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17525 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17526 hardcode_direct_GCJ=yes 17527 hardcode_shlibpath_var_GCJ=no 17528 ;; 17529 17530 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17531 freebsd2*) 17532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17533 hardcode_direct_GCJ=yes 17534 hardcode_minus_L_GCJ=yes 17535 hardcode_shlibpath_var_GCJ=no 17536 ;; 17537 17538 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17539 freebsd* | dragonfly*) 17540 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17541 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17542 hardcode_direct_GCJ=yes 17543 hardcode_shlibpath_var_GCJ=no 17544 ;; 17545 17546 hpux9*) 17547 if test "$GCC" = yes; then 17548 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' 17549 else 17550 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' 17551 fi 17552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17553 hardcode_libdir_separator_GCJ=: 17554 hardcode_direct_GCJ=yes 17555 17556 # hardcode_minus_L: Not really in the search PATH, 17557 # but as the default location of the library. 17558 hardcode_minus_L_GCJ=yes 17559 export_dynamic_flag_spec_GCJ='${wl}-E' 17560 ;; 17561 17562 hpux10*) 17563 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17565 else 17566 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17567 fi 17568 if test "$with_gnu_ld" = no; then 17569 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17570 hardcode_libdir_separator_GCJ=: 17571 17572 hardcode_direct_GCJ=yes 17573 export_dynamic_flag_spec_GCJ='${wl}-E' 17574 17575 # hardcode_minus_L: Not really in the search PATH, 17576 # but as the default location of the library. 17577 hardcode_minus_L_GCJ=yes 17578 fi 17579 ;; 17580 17581 hpux11*) 17582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17583 case $host_cpu in 17584 hppa*64*) 17585 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17586 ;; 17587 ia64*) 17588 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17589 ;; 17590 *) 17591 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17592 ;; 17593 esac 17594 else 17595 case $host_cpu in 17596 hppa*64*) 17597 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17598 ;; 17599 ia64*) 17600 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17601 ;; 17602 *) 17603 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17604 ;; 17605 esac 17606 fi 17607 if test "$with_gnu_ld" = no; then 17608 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17609 hardcode_libdir_separator_GCJ=: 17610 17611 case $host_cpu in 17612 hppa*64*|ia64*) 17613 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17614 hardcode_direct_GCJ=no 17615 hardcode_shlibpath_var_GCJ=no 17616 ;; 17617 *) 17618 hardcode_direct_GCJ=yes 17619 export_dynamic_flag_spec_GCJ='${wl}-E' 17620 17621 # hardcode_minus_L: Not really in the search PATH, 17622 # but as the default location of the library. 17623 hardcode_minus_L_GCJ=yes 17624 ;; 17625 esac 17626 fi 17627 ;; 17628 17629 irix5* | irix6* | nonstopux*) 17630 if test "$GCC" = yes; then 17631 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' 17632 else 17633 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' 17634 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17635 fi 17636 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17637 hardcode_libdir_separator_GCJ=: 17638 link_all_deplibs_GCJ=yes 17639 ;; 17640 17641 netbsd* | netbsdelf*-gnu) 17642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17644 else 17645 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17646 fi 17647 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17648 hardcode_direct_GCJ=yes 17649 hardcode_shlibpath_var_GCJ=no 17650 ;; 17651 17652 newsos6) 17653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17654 hardcode_direct_GCJ=yes 17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17656 hardcode_libdir_separator_GCJ=: 17657 hardcode_shlibpath_var_GCJ=no 17658 ;; 17659 17660 openbsd*) 17661 if test -f /usr/libexec/ld.so; then 17662 hardcode_direct_GCJ=yes 17663 hardcode_shlibpath_var_GCJ=no 17664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17665 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17666 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17668 export_dynamic_flag_spec_GCJ='${wl}-E' 17669 else 17670 case $host_os in 17671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17672 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17673 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17674 ;; 17675 *) 17676 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17678 ;; 17679 esac 17680 fi 17681 else 17682 ld_shlibs_GCJ=no 17683 fi 17684 ;; 17685 17686 os2*) 17687 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17688 hardcode_minus_L_GCJ=yes 17689 allow_undefined_flag_GCJ=unsupported 17690 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' 17691 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17692 ;; 17693 17694 osf3*) 17695 if test "$GCC" = yes; then 17696 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17697 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' 17698 else 17699 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17700 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' 17701 fi 17702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17703 hardcode_libdir_separator_GCJ=: 17704 ;; 17705 17706 osf4* | osf5*) # as osf3* with the addition of -msym flag 17707 if test "$GCC" = yes; then 17708 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17709 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' 17710 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17711 else 17712 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17713 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' 17714 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~ 17715 $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' 17716 17717 # Both c and cxx compiler support -rpath directly 17718 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17719 fi 17720 hardcode_libdir_separator_GCJ=: 17721 ;; 17722 17723 solaris*) 17724 no_undefined_flag_GCJ=' -z text' 17725 if test "$GCC" = yes; then 17726 wlarc='${wl}' 17727 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17728 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17729 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17730 else 17731 wlarc='' 17732 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17733 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17735 fi 17736 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17737 hardcode_shlibpath_var_GCJ=no 17738 case $host_os in 17739 solaris2.[0-5] | solaris2.[0-5].*) ;; 17740 *) 17741 # The compiler driver will combine and reorder linker options, 17742 # but understands `-z linker_flag'. GCC discards it without `$wl', 17743 # but is careful enough not to reorder. 17744 # Supported since Solaris 2.6 (maybe 2.5.1?) 17745 if test "$GCC" = yes; then 17746 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17747 else 17748 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17749 fi 17750 ;; 17751 esac 17752 link_all_deplibs_GCJ=yes 17753 ;; 17754 17755 sunos4*) 17756 if test "x$host_vendor" = xsequent; then 17757 # Use $CC to link under sequent, because it throws in some extra .o 17758 # files that make .init and .fini sections work. 17759 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17760 else 17761 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17762 fi 17763 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17764 hardcode_direct_GCJ=yes 17765 hardcode_minus_L_GCJ=yes 17766 hardcode_shlibpath_var_GCJ=no 17767 ;; 17768 17769 sysv4) 17770 case $host_vendor in 17771 sni) 17772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17773 hardcode_direct_GCJ=yes # is this really true??? 17774 ;; 17775 siemens) 17776 ## LD is ld it makes a PLAMLIB 17777 ## CC just makes a GrossModule. 17778 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17779 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17780 hardcode_direct_GCJ=no 17781 ;; 17782 motorola) 17783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17784 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17785 ;; 17786 esac 17787 runpath_var='LD_RUN_PATH' 17788 hardcode_shlibpath_var_GCJ=no 17789 ;; 17790 17791 sysv4.3*) 17792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17793 hardcode_shlibpath_var_GCJ=no 17794 export_dynamic_flag_spec_GCJ='-Bexport' 17795 ;; 17796 17797 sysv4*MP*) 17798 if test -d /usr/nec; then 17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17800 hardcode_shlibpath_var_GCJ=no 17801 runpath_var=LD_RUN_PATH 17802 hardcode_runpath_var=yes 17803 ld_shlibs_GCJ=yes 17804 fi 17805 ;; 17806 17807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17808 no_undefined_flag_GCJ='${wl}-z,text' 17809 archive_cmds_need_lc_GCJ=no 17810 hardcode_shlibpath_var_GCJ=no 17811 runpath_var='LD_RUN_PATH' 17812 17813 if test "$GCC" = yes; then 17814 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17815 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17816 else 17817 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17818 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17819 fi 17820 ;; 17821 17822 sysv5* | sco3.2v5* | sco5v6*) 17823 # Note: We can NOT use -z defs as we might desire, because we do not 17824 # link with -lc, and that would cause any symbols used from libc to 17825 # always be unresolved, which means just about no library would 17826 # ever link correctly. If we're not using GNU ld we use -z text 17827 # though, which does catch some bad symbols but isn't as heavy-handed 17828 # as -z defs. 17829 no_undefined_flag_GCJ='${wl}-z,text' 17830 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17831 archive_cmds_need_lc_GCJ=no 17832 hardcode_shlibpath_var_GCJ=no 17833 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17834 hardcode_libdir_separator_GCJ=':' 17835 link_all_deplibs_GCJ=yes 17836 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17837 runpath_var='LD_RUN_PATH' 17838 17839 if test "$GCC" = yes; then 17840 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17841 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17842 else 17843 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17844 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17845 fi 17846 ;; 17847 17848 uts4*) 17849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17850 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17851 hardcode_shlibpath_var_GCJ=no 17852 ;; 17853 17854 *) 17855 ld_shlibs_GCJ=no 17856 ;; 17857 esac 17858 fi 17859 17860{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17861echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17862test "$ld_shlibs_GCJ" = no && can_build_shared=no 17863 17864# 17865# Do we need to explicitly link libc? 17866# 17867case "x$archive_cmds_need_lc_GCJ" in 17868x|xyes) 17869 # Assume -lc should be added 17870 archive_cmds_need_lc_GCJ=yes 17871 17872 if test "$enable_shared" = yes && test "$GCC" = yes; then 17873 case $archive_cmds_GCJ in 17874 *'~'*) 17875 # FIXME: we may have to deal with multi-command sequences. 17876 ;; 17877 '$CC '*) 17878 # Test whether the compiler implicitly links with -lc since on some 17879 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17880 # to ld, don't add -lc before -lgcc. 17881 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17883 $rm conftest* 17884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17885 17886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17887 (eval $ac_compile) 2>&5 17888 ac_status=$? 17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17890 (exit $ac_status); } 2>conftest.err; then 17891 soname=conftest 17892 lib=conftest 17893 libobjs=conftest.$ac_objext 17894 deplibs= 17895 wl=$lt_prog_compiler_wl_GCJ 17896 pic_flag=$lt_prog_compiler_pic_GCJ 17897 compiler_flags=-v 17898 linker_flags=-v 17899 verstring= 17900 output_objdir=. 17901 libname=conftest 17902 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17903 allow_undefined_flag_GCJ= 17904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17905 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17906 ac_status=$? 17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17908 (exit $ac_status); } 17909 then 17910 archive_cmds_need_lc_GCJ=no 17911 else 17912 archive_cmds_need_lc_GCJ=yes 17913 fi 17914 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17915 else 17916 cat conftest.err 1>&5 17917 fi 17918 $rm conftest* 17919 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17920echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17921 ;; 17922 esac 17923 fi 17924 ;; 17925esac 17926 17927{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17928echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17929library_names_spec= 17930libname_spec='lib$name' 17931soname_spec= 17932shrext_cmds=".so" 17933postinstall_cmds= 17934postuninstall_cmds= 17935finish_cmds= 17936finish_eval= 17937shlibpath_var= 17938shlibpath_overrides_runpath=unknown 17939version_type=none 17940dynamic_linker="$host_os ld.so" 17941sys_lib_dlsearch_path_spec="/lib /usr/lib" 17942 17943need_lib_prefix=unknown 17944hardcode_into_libs=no 17945 17946# when you set need_version to no, make sure it does not cause -set_version 17947# flags to be left without arguments 17948need_version=unknown 17949 17950case $host_os in 17951aix3*) 17952 version_type=linux 17953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17954 shlibpath_var=LIBPATH 17955 17956 # AIX 3 has no versioning support, so we append a major version to the name. 17957 soname_spec='${libname}${release}${shared_ext}$major' 17958 ;; 17959 17960aix4* | aix5*) 17961 version_type=linux 17962 need_lib_prefix=no 17963 need_version=no 17964 hardcode_into_libs=yes 17965 if test "$host_cpu" = ia64; then 17966 # AIX 5 supports IA64 17967 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17968 shlibpath_var=LD_LIBRARY_PATH 17969 else 17970 # With GCC up to 2.95.x, collect2 would create an import file 17971 # for dependence libraries. The import file would start with 17972 # the line `#! .'. This would cause the generated library to 17973 # depend on `.', always an invalid library. This was fixed in 17974 # development snapshots of GCC prior to 3.0. 17975 case $host_os in 17976 aix4 | aix4.[01] | aix4.[01].*) 17977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17978 echo ' yes ' 17979 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17980 : 17981 else 17982 can_build_shared=no 17983 fi 17984 ;; 17985 esac 17986 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17987 # soname into executable. Probably we can add versioning support to 17988 # collect2, so additional links can be useful in future. 17989 if test "$aix_use_runtimelinking" = yes; then 17990 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17991 # instead of lib<name>.a to let people know that these are not 17992 # typical AIX shared libraries. 17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17994 else 17995 # We preserve .a as extension for shared libraries through AIX4.2 17996 # and later when we are not doing run time linking. 17997 library_names_spec='${libname}${release}.a $libname.a' 17998 soname_spec='${libname}${release}${shared_ext}$major' 17999 fi 18000 shlibpath_var=LIBPATH 18001 fi 18002 ;; 18003 18004amigaos*) 18005 library_names_spec='$libname.ixlibrary $libname.a' 18006 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18007 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' 18008 ;; 18009 18010beos*) 18011 library_names_spec='${libname}${shared_ext}' 18012 dynamic_linker="$host_os ld.so" 18013 shlibpath_var=LIBRARY_PATH 18014 ;; 18015 18016bsdi[45]*) 18017 version_type=linux 18018 need_version=no 18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18020 soname_spec='${libname}${release}${shared_ext}$major' 18021 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18022 shlibpath_var=LD_LIBRARY_PATH 18023 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18024 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18025 # the default ld.so.conf also contains /usr/contrib/lib and 18026 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18027 # libtool to hard-code these into programs 18028 ;; 18029 18030cygwin* | mingw* | pw32*) 18031 version_type=windows 18032 shrext_cmds=".dll" 18033 need_version=no 18034 need_lib_prefix=no 18035 18036 case $GCC,$host_os in 18037 yes,cygwin* | yes,mingw* | yes,pw32*) 18038 library_names_spec='$libname.dll.a' 18039 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18040 postinstall_cmds='base_file=`basename \${file}`~ 18041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18042 dldir=$destdir/`dirname \$dlpath`~ 18043 test -d \$dldir || mkdir -p \$dldir~ 18044 $install_prog $dir/$dlname \$dldir/$dlname~ 18045 chmod a+x \$dldir/$dlname' 18046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18047 dlpath=$dir/\$dldll~ 18048 $rm \$dlpath' 18049 shlibpath_overrides_runpath=yes 18050 18051 case $host_os in 18052 cygwin*) 18053 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18054 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18055 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18056 ;; 18057 mingw*) 18058 # MinGW DLLs use traditional 'lib' prefix 18059 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18061 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18062 # It is most probably a Windows format PATH printed by 18063 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18064 # path with ; separators, and with drive letters. We can handle the 18065 # drive letters (cygwin fileutils understands them), so leave them, 18066 # especially as we might pass files found there to a mingw objdump, 18067 # which wouldn't understand a cygwinified path. Ahh. 18068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18069 else 18070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18071 fi 18072 ;; 18073 pw32*) 18074 # pw32 DLLs use 'pw' prefix rather than 'lib' 18075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18076 ;; 18077 esac 18078 ;; 18079 18080 *) 18081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18082 ;; 18083 esac 18084 dynamic_linker='Win32 ld.exe' 18085 # FIXME: first we should search . and the directory the executable is in 18086 shlibpath_var=PATH 18087 ;; 18088 18089darwin* | rhapsody*) 18090 dynamic_linker="$host_os dyld" 18091 version_type=darwin 18092 need_lib_prefix=no 18093 need_version=no 18094 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18095 soname_spec='${libname}${release}${major}$shared_ext' 18096 shlibpath_overrides_runpath=yes 18097 shlibpath_var=DYLD_LIBRARY_PATH 18098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18099 18100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18101 ;; 18102 18103dgux*) 18104 version_type=linux 18105 need_lib_prefix=no 18106 need_version=no 18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18108 soname_spec='${libname}${release}${shared_ext}$major' 18109 shlibpath_var=LD_LIBRARY_PATH 18110 ;; 18111 18112freebsd1*) 18113 dynamic_linker=no 18114 ;; 18115 18116freebsd* | dragonfly*) 18117 # DragonFly does not have aout. When/if they implement a new 18118 # versioning mechanism, adjust this. 18119 if test -x /usr/bin/objformat; then 18120 objformat=`/usr/bin/objformat` 18121 else 18122 case $host_os in 18123 freebsd[123]*) objformat=aout ;; 18124 *) objformat=elf ;; 18125 esac 18126 fi 18127 version_type=freebsd-$objformat 18128 case $version_type in 18129 freebsd-elf*) 18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18131 need_version=no 18132 need_lib_prefix=no 18133 ;; 18134 freebsd-*) 18135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18136 need_version=yes 18137 ;; 18138 esac 18139 shlibpath_var=LD_LIBRARY_PATH 18140 case $host_os in 18141 freebsd2*) 18142 shlibpath_overrides_runpath=yes 18143 ;; 18144 freebsd3.[01]* | freebsdelf3.[01]*) 18145 shlibpath_overrides_runpath=yes 18146 hardcode_into_libs=yes 18147 ;; 18148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18150 shlibpath_overrides_runpath=no 18151 hardcode_into_libs=yes 18152 ;; 18153 *) # from 4.6 on, and DragonFly 18154 shlibpath_overrides_runpath=yes 18155 hardcode_into_libs=yes 18156 ;; 18157 esac 18158 ;; 18159 18160gnu*) 18161 version_type=linux 18162 need_lib_prefix=no 18163 need_version=no 18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18165 soname_spec='${libname}${release}${shared_ext}$major' 18166 shlibpath_var=LD_LIBRARY_PATH 18167 hardcode_into_libs=yes 18168 ;; 18169 18170hpux9* | hpux10* | hpux11*) 18171 # Give a soname corresponding to the major version so that dld.sl refuses to 18172 # link against other versions. 18173 version_type=sunos 18174 need_lib_prefix=no 18175 need_version=no 18176 case $host_cpu in 18177 ia64*) 18178 shrext_cmds='.so' 18179 hardcode_into_libs=yes 18180 dynamic_linker="$host_os dld.so" 18181 shlibpath_var=LD_LIBRARY_PATH 18182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18184 soname_spec='${libname}${release}${shared_ext}$major' 18185 if test "X$HPUX_IA64_MODE" = X32; then 18186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18187 else 18188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18189 fi 18190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18191 ;; 18192 hppa*64*) 18193 shrext_cmds='.sl' 18194 hardcode_into_libs=yes 18195 dynamic_linker="$host_os dld.sl" 18196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18199 soname_spec='${libname}${release}${shared_ext}$major' 18200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18202 ;; 18203 *) 18204 shrext_cmds='.sl' 18205 dynamic_linker="$host_os dld.sl" 18206 shlibpath_var=SHLIB_PATH 18207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18209 soname_spec='${libname}${release}${shared_ext}$major' 18210 ;; 18211 esac 18212 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18213 postinstall_cmds='chmod 555 $lib' 18214 ;; 18215 18216interix[3-9]*) 18217 version_type=linux 18218 need_lib_prefix=no 18219 need_version=no 18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18221 soname_spec='${libname}${release}${shared_ext}$major' 18222 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18223 shlibpath_var=LD_LIBRARY_PATH 18224 shlibpath_overrides_runpath=no 18225 hardcode_into_libs=yes 18226 ;; 18227 18228irix5* | irix6* | nonstopux*) 18229 case $host_os in 18230 nonstopux*) version_type=nonstopux ;; 18231 *) 18232 if test "$lt_cv_prog_gnu_ld" = yes; then 18233 version_type=linux 18234 else 18235 version_type=irix 18236 fi ;; 18237 esac 18238 need_lib_prefix=no 18239 need_version=no 18240 soname_spec='${libname}${release}${shared_ext}$major' 18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18242 case $host_os in 18243 irix5* | nonstopux*) 18244 libsuff= shlibsuff= 18245 ;; 18246 *) 18247 case $LD in # libtool.m4 will add one of these switches to LD 18248 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18249 libsuff= shlibsuff= libmagic=32-bit;; 18250 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18251 libsuff=32 shlibsuff=N32 libmagic=N32;; 18252 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18253 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18254 *) libsuff= shlibsuff= libmagic=never-match;; 18255 esac 18256 ;; 18257 esac 18258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18259 shlibpath_overrides_runpath=no 18260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18262 hardcode_into_libs=yes 18263 ;; 18264 18265# No shared lib support for Linux oldld, aout, or coff. 18266linux*oldld* | linux*aout* | linux*coff*) 18267 dynamic_linker=no 18268 ;; 18269 18270# This must be Linux ELF. 18271linux* | k*bsd*-gnu) 18272 version_type=linux 18273 need_lib_prefix=no 18274 need_version=no 18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18276 soname_spec='${libname}${release}${shared_ext}$major' 18277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18278 shlibpath_var=LD_LIBRARY_PATH 18279 shlibpath_overrides_runpath=no 18280 # This implies no fast_install, which is unacceptable. 18281 # Some rework will be needed to allow for fast_install 18282 # before this can be enabled. 18283 hardcode_into_libs=yes 18284 18285 # Append ld.so.conf contents to the search path 18286 if test -f /etc/ld.so.conf; then 18287 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' ' '` 18288 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18289 fi 18290 18291 # We used to test for /lib/ld.so.1 and disable shared libraries on 18292 # powerpc, because MkLinux only supported shared libraries with the 18293 # GNU dynamic linker. Since this was broken with cross compilers, 18294 # most powerpc-linux boxes support dynamic linking these days and 18295 # people can always --disable-shared, the test was removed, and we 18296 # assume the GNU/Linux dynamic linker is in use. 18297 dynamic_linker='GNU/Linux ld.so' 18298 ;; 18299 18300netbsdelf*-gnu) 18301 version_type=linux 18302 need_lib_prefix=no 18303 need_version=no 18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18305 soname_spec='${libname}${release}${shared_ext}$major' 18306 shlibpath_var=LD_LIBRARY_PATH 18307 shlibpath_overrides_runpath=no 18308 hardcode_into_libs=yes 18309 dynamic_linker='NetBSD ld.elf_so' 18310 ;; 18311 18312netbsd*) 18313 version_type=sunos 18314 need_lib_prefix=no 18315 need_version=no 18316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18319 dynamic_linker='NetBSD (a.out) ld.so' 18320 else 18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18322 soname_spec='${libname}${release}${shared_ext}$major' 18323 dynamic_linker='NetBSD ld.elf_so' 18324 fi 18325 shlibpath_var=LD_LIBRARY_PATH 18326 shlibpath_overrides_runpath=yes 18327 hardcode_into_libs=yes 18328 ;; 18329 18330newsos6) 18331 version_type=linux 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18333 shlibpath_var=LD_LIBRARY_PATH 18334 shlibpath_overrides_runpath=yes 18335 ;; 18336 18337nto-qnx*) 18338 version_type=linux 18339 need_lib_prefix=no 18340 need_version=no 18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18342 soname_spec='${libname}${release}${shared_ext}$major' 18343 shlibpath_var=LD_LIBRARY_PATH 18344 shlibpath_overrides_runpath=yes 18345 ;; 18346 18347openbsd*) 18348 version_type=sunos 18349 sys_lib_dlsearch_path_spec="/usr/lib" 18350 need_lib_prefix=no 18351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18352 case $host_os in 18353 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18354 *) need_version=no ;; 18355 esac 18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18358 shlibpath_var=LD_LIBRARY_PATH 18359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18360 case $host_os in 18361 openbsd2.[89] | openbsd2.[89].*) 18362 shlibpath_overrides_runpath=no 18363 ;; 18364 *) 18365 shlibpath_overrides_runpath=yes 18366 ;; 18367 esac 18368 else 18369 shlibpath_overrides_runpath=yes 18370 fi 18371 ;; 18372 18373os2*) 18374 libname_spec='$name' 18375 shrext_cmds=".dll" 18376 need_lib_prefix=no 18377 library_names_spec='$libname${shared_ext} $libname.a' 18378 dynamic_linker='OS/2 ld.exe' 18379 shlibpath_var=LIBPATH 18380 ;; 18381 18382osf3* | osf4* | osf5*) 18383 version_type=osf 18384 need_lib_prefix=no 18385 need_version=no 18386 soname_spec='${libname}${release}${shared_ext}$major' 18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18391 ;; 18392 18393rdos*) 18394 dynamic_linker=no 18395 ;; 18396 18397solaris*) 18398 version_type=linux 18399 need_lib_prefix=no 18400 need_version=no 18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18402 soname_spec='${libname}${release}${shared_ext}$major' 18403 shlibpath_var=LD_LIBRARY_PATH 18404 shlibpath_overrides_runpath=yes 18405 hardcode_into_libs=yes 18406 # ldd complains unless libraries are executable 18407 postinstall_cmds='chmod +x $lib' 18408 ;; 18409 18410sunos4*) 18411 version_type=sunos 18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18414 shlibpath_var=LD_LIBRARY_PATH 18415 shlibpath_overrides_runpath=yes 18416 if test "$with_gnu_ld" = yes; then 18417 need_lib_prefix=no 18418 fi 18419 need_version=yes 18420 ;; 18421 18422sysv4 | sysv4.3*) 18423 version_type=linux 18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18425 soname_spec='${libname}${release}${shared_ext}$major' 18426 shlibpath_var=LD_LIBRARY_PATH 18427 case $host_vendor in 18428 sni) 18429 shlibpath_overrides_runpath=no 18430 need_lib_prefix=no 18431 export_dynamic_flag_spec='${wl}-Blargedynsym' 18432 runpath_var=LD_RUN_PATH 18433 ;; 18434 siemens) 18435 need_lib_prefix=no 18436 ;; 18437 motorola) 18438 need_lib_prefix=no 18439 need_version=no 18440 shlibpath_overrides_runpath=no 18441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18442 ;; 18443 esac 18444 ;; 18445 18446sysv4*MP*) 18447 if test -d /usr/nec ;then 18448 version_type=linux 18449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18450 soname_spec='$libname${shared_ext}.$major' 18451 shlibpath_var=LD_LIBRARY_PATH 18452 fi 18453 ;; 18454 18455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18456 version_type=freebsd-elf 18457 need_lib_prefix=no 18458 need_version=no 18459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18460 soname_spec='${libname}${release}${shared_ext}$major' 18461 shlibpath_var=LD_LIBRARY_PATH 18462 hardcode_into_libs=yes 18463 if test "$with_gnu_ld" = yes; then 18464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18465 shlibpath_overrides_runpath=no 18466 else 18467 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18468 shlibpath_overrides_runpath=yes 18469 case $host_os in 18470 sco3.2v5*) 18471 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18472 ;; 18473 esac 18474 fi 18475 sys_lib_dlsearch_path_spec='/usr/lib' 18476 ;; 18477 18478uts4*) 18479 version_type=linux 18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18481 soname_spec='${libname}${release}${shared_ext}$major' 18482 shlibpath_var=LD_LIBRARY_PATH 18483 ;; 18484 18485*) 18486 dynamic_linker=no 18487 ;; 18488esac 18489{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18490echo "${ECHO_T}$dynamic_linker" >&6; } 18491test "$dynamic_linker" = no && can_build_shared=no 18492 18493variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18494if test "$GCC" = yes; then 18495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18496fi 18497 18498{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18499echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18500hardcode_action_GCJ= 18501if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18502 test -n "$runpath_var_GCJ" || \ 18503 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18504 18505 # We can hardcode non-existant directories. 18506 if test "$hardcode_direct_GCJ" != no && 18507 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18508 # have to relink, otherwise we might link with an installed library 18509 # when we should be linking with a yet-to-be-installed one 18510 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18511 test "$hardcode_minus_L_GCJ" != no; then 18512 # Linking always hardcodes the temporary library directory. 18513 hardcode_action_GCJ=relink 18514 else 18515 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18516 hardcode_action_GCJ=immediate 18517 fi 18518else 18519 # We cannot hardcode anything, or else we can only hardcode existing 18520 # directories. 18521 hardcode_action_GCJ=unsupported 18522fi 18523{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18524echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18525 18526if test "$hardcode_action_GCJ" = relink; then 18527 # Fast installation is not supported 18528 enable_fast_install=no 18529elif test "$shlibpath_overrides_runpath" = yes || 18530 test "$enable_shared" = no; then 18531 # Fast installation is not necessary 18532 enable_fast_install=needless 18533fi 18534 18535 18536# The else clause should only fire when bootstrapping the 18537# libtool distribution, otherwise you forgot to ship ltmain.sh 18538# with your package, and you will get complaints that there are 18539# no rules to generate ltmain.sh. 18540if test -f "$ltmain"; then 18541 # See if we are running on zsh, and set the options which allow our commands through 18542 # without removal of \ escapes. 18543 if test -n "${ZSH_VERSION+set}" ; then 18544 setopt NO_GLOB_SUBST 18545 fi 18546 # Now quote all the things that may contain metacharacters while being 18547 # careful not to overquote the AC_SUBSTed values. We take copies of the 18548 # variables and quote the copies for generation of the libtool script. 18549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18550 SED SHELL STRIP \ 18551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18553 deplibs_check_method reload_flag reload_cmds need_locks \ 18554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18555 lt_cv_sys_global_symbol_to_c_name_address \ 18556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18557 old_postinstall_cmds old_postuninstall_cmds \ 18558 compiler_GCJ \ 18559 CC_GCJ \ 18560 LD_GCJ \ 18561 lt_prog_compiler_wl_GCJ \ 18562 lt_prog_compiler_pic_GCJ \ 18563 lt_prog_compiler_static_GCJ \ 18564 lt_prog_compiler_no_builtin_flag_GCJ \ 18565 export_dynamic_flag_spec_GCJ \ 18566 thread_safe_flag_spec_GCJ \ 18567 whole_archive_flag_spec_GCJ \ 18568 enable_shared_with_static_runtimes_GCJ \ 18569 old_archive_cmds_GCJ \ 18570 old_archive_from_new_cmds_GCJ \ 18571 predep_objects_GCJ \ 18572 postdep_objects_GCJ \ 18573 predeps_GCJ \ 18574 postdeps_GCJ \ 18575 compiler_lib_search_path_GCJ \ 18576 archive_cmds_GCJ \ 18577 archive_expsym_cmds_GCJ \ 18578 postinstall_cmds_GCJ \ 18579 postuninstall_cmds_GCJ \ 18580 old_archive_from_expsyms_cmds_GCJ \ 18581 allow_undefined_flag_GCJ \ 18582 no_undefined_flag_GCJ \ 18583 export_symbols_cmds_GCJ \ 18584 hardcode_libdir_flag_spec_GCJ \ 18585 hardcode_libdir_flag_spec_ld_GCJ \ 18586 hardcode_libdir_separator_GCJ \ 18587 hardcode_automatic_GCJ \ 18588 module_cmds_GCJ \ 18589 module_expsym_cmds_GCJ \ 18590 lt_cv_prog_compiler_c_o_GCJ \ 18591 fix_srcfile_path_GCJ \ 18592 exclude_expsyms_GCJ \ 18593 include_expsyms_GCJ; do 18594 18595 case $var in 18596 old_archive_cmds_GCJ | \ 18597 old_archive_from_new_cmds_GCJ | \ 18598 archive_cmds_GCJ | \ 18599 archive_expsym_cmds_GCJ | \ 18600 module_cmds_GCJ | \ 18601 module_expsym_cmds_GCJ | \ 18602 old_archive_from_expsyms_cmds_GCJ | \ 18603 export_symbols_cmds_GCJ | \ 18604 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18605 postinstall_cmds | postuninstall_cmds | \ 18606 old_postinstall_cmds | old_postuninstall_cmds | \ 18607 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18608 # Double-quote double-evaled strings. 18609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18610 ;; 18611 *) 18612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18613 ;; 18614 esac 18615 done 18616 18617 case $lt_echo in 18618 *'\$0 --fallback-echo"') 18619 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18620 ;; 18621 esac 18622 18623cfgfile="$ofile" 18624 18625 cat <<__EOF__ >> "$cfgfile" 18626# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18627 18628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18629 18630# Shell to use when invoking shell scripts. 18631SHELL=$lt_SHELL 18632 18633# Whether or not to build shared libraries. 18634build_libtool_libs=$enable_shared 18635 18636# Whether or not to build static libraries. 18637build_old_libs=$enable_static 18638 18639# Whether or not to add -lc for building shared libraries. 18640build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18641 18642# Whether or not to disallow shared libs when runtime libs are static 18643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18644 18645# Whether or not to optimize for fast installation. 18646fast_install=$enable_fast_install 18647 18648# The host system. 18649host_alias=$host_alias 18650host=$host 18651host_os=$host_os 18652 18653# The build system. 18654build_alias=$build_alias 18655build=$build 18656build_os=$build_os 18657 18658# An echo program that does not interpret backslashes. 18659echo=$lt_echo 18660 18661# The archiver. 18662AR=$lt_AR 18663AR_FLAGS=$lt_AR_FLAGS 18664 18665# A C compiler. 18666LTCC=$lt_LTCC 18667 18668# LTCC compiler flags. 18669LTCFLAGS=$lt_LTCFLAGS 18670 18671# A language-specific compiler. 18672CC=$lt_compiler_GCJ 18673 18674# Is the compiler the GNU C compiler? 18675with_gcc=$GCC_GCJ 18676 18677# An ERE matcher. 18678EGREP=$lt_EGREP 18679 18680# The linker used to build libraries. 18681LD=$lt_LD_GCJ 18682 18683# Whether we need hard or soft links. 18684LN_S=$lt_LN_S 18685 18686# A BSD-compatible nm program. 18687NM=$lt_NM 18688 18689# A symbol stripping program 18690STRIP=$lt_STRIP 18691 18692# Used to examine libraries when file_magic_cmd begins "file" 18693MAGIC_CMD=$MAGIC_CMD 18694 18695# Used on cygwin: DLL creation program. 18696DLLTOOL="$DLLTOOL" 18697 18698# Used on cygwin: object dumper. 18699OBJDUMP="$OBJDUMP" 18700 18701# Used on cygwin: assembler. 18702AS="$AS" 18703 18704# The name of the directory that contains temporary libtool files. 18705objdir=$objdir 18706 18707# How to create reloadable object files. 18708reload_flag=$lt_reload_flag 18709reload_cmds=$lt_reload_cmds 18710 18711# How to pass a linker flag through the compiler. 18712wl=$lt_lt_prog_compiler_wl_GCJ 18713 18714# Object file suffix (normally "o"). 18715objext="$ac_objext" 18716 18717# Old archive suffix (normally "a"). 18718libext="$libext" 18719 18720# Shared library suffix (normally ".so"). 18721shrext_cmds='$shrext_cmds' 18722 18723# Executable file suffix (normally ""). 18724exeext="$exeext" 18725 18726# Additional compiler flags for building library objects. 18727pic_flag=$lt_lt_prog_compiler_pic_GCJ 18728pic_mode=$pic_mode 18729 18730# What is the maximum length of a command? 18731max_cmd_len=$lt_cv_sys_max_cmd_len 18732 18733# Does compiler simultaneously support -c and -o options? 18734compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18735 18736# Must we lock files when doing compilation? 18737need_locks=$lt_need_locks 18738 18739# Do we need the lib prefix for modules? 18740need_lib_prefix=$need_lib_prefix 18741 18742# Do we need a version for libraries? 18743need_version=$need_version 18744 18745# Whether dlopen is supported. 18746dlopen_support=$enable_dlopen 18747 18748# Whether dlopen of programs is supported. 18749dlopen_self=$enable_dlopen_self 18750 18751# Whether dlopen of statically linked programs is supported. 18752dlopen_self_static=$enable_dlopen_self_static 18753 18754# Compiler flag to prevent dynamic linking. 18755link_static_flag=$lt_lt_prog_compiler_static_GCJ 18756 18757# Compiler flag to turn off builtin functions. 18758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18759 18760# Compiler flag to allow reflexive dlopens. 18761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18762 18763# Compiler flag to generate shared objects directly from archives. 18764whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18765 18766# Compiler flag to generate thread-safe objects. 18767thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18768 18769# Library versioning type. 18770version_type=$version_type 18771 18772# Format of library name prefix. 18773libname_spec=$lt_libname_spec 18774 18775# List of archive names. First name is the real one, the rest are links. 18776# The last name is the one that the linker finds with -lNAME. 18777library_names_spec=$lt_library_names_spec 18778 18779# The coded name of the library, if different from the real name. 18780soname_spec=$lt_soname_spec 18781 18782# Commands used to build and install an old-style archive. 18783RANLIB=$lt_RANLIB 18784old_archive_cmds=$lt_old_archive_cmds_GCJ 18785old_postinstall_cmds=$lt_old_postinstall_cmds 18786old_postuninstall_cmds=$lt_old_postuninstall_cmds 18787 18788# Create an old-style archive from a shared archive. 18789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18790 18791# Create a temporary old-style archive to link instead of a shared archive. 18792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18793 18794# Commands used to build and install a shared archive. 18795archive_cmds=$lt_archive_cmds_GCJ 18796archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18797postinstall_cmds=$lt_postinstall_cmds 18798postuninstall_cmds=$lt_postuninstall_cmds 18799 18800# Commands used to build a loadable module (assumed same as above if empty) 18801module_cmds=$lt_module_cmds_GCJ 18802module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18803 18804# Commands to strip libraries. 18805old_striplib=$lt_old_striplib 18806striplib=$lt_striplib 18807 18808# Dependencies to place before the objects being linked to create a 18809# shared library. 18810predep_objects=$lt_predep_objects_GCJ 18811 18812# Dependencies to place after the objects being linked to create a 18813# shared library. 18814postdep_objects=$lt_postdep_objects_GCJ 18815 18816# Dependencies to place before the objects being linked to create a 18817# shared library. 18818predeps=$lt_predeps_GCJ 18819 18820# Dependencies to place after the objects being linked to create a 18821# shared library. 18822postdeps=$lt_postdeps_GCJ 18823 18824# The library search path used internally by the compiler when linking 18825# a shared library. 18826compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18827 18828# Method to check whether dependent libraries are shared objects. 18829deplibs_check_method=$lt_deplibs_check_method 18830 18831# Command to use when deplibs_check_method == file_magic. 18832file_magic_cmd=$lt_file_magic_cmd 18833 18834# Flag that allows shared libraries with undefined symbols to be built. 18835allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18836 18837# Flag that forces no undefined symbols. 18838no_undefined_flag=$lt_no_undefined_flag_GCJ 18839 18840# Commands used to finish a libtool library installation in a directory. 18841finish_cmds=$lt_finish_cmds 18842 18843# Same as above, but a single script fragment to be evaled but not shown. 18844finish_eval=$lt_finish_eval 18845 18846# Take the output of nm and produce a listing of raw symbols and C names. 18847global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18848 18849# Transform the output of nm in a proper C declaration 18850global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18851 18852# Transform the output of nm in a C name address pair 18853global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18854 18855# This is the shared library runtime path variable. 18856runpath_var=$runpath_var 18857 18858# This is the shared library path variable. 18859shlibpath_var=$shlibpath_var 18860 18861# Is shlibpath searched before the hard-coded library search path? 18862shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18863 18864# How to hardcode a shared library path into an executable. 18865hardcode_action=$hardcode_action_GCJ 18866 18867# Whether we should hardcode library paths into libraries. 18868hardcode_into_libs=$hardcode_into_libs 18869 18870# Flag to hardcode \$libdir into a binary during linking. 18871# This must work even if \$libdir does not exist. 18872hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18873 18874# If ld is used when linking, flag to hardcode \$libdir into 18875# a binary during linking. This must work even if \$libdir does 18876# not exist. 18877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18878 18879# Whether we need a single -rpath flag with a separated argument. 18880hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18881 18882# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18883# resulting binary. 18884hardcode_direct=$hardcode_direct_GCJ 18885 18886# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18887# resulting binary. 18888hardcode_minus_L=$hardcode_minus_L_GCJ 18889 18890# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18891# the resulting binary. 18892hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18893 18894# Set to yes if building a shared library automatically hardcodes DIR into the library 18895# and all subsequent libraries and executables linked against it. 18896hardcode_automatic=$hardcode_automatic_GCJ 18897 18898# Variables whose values should be saved in libtool wrapper scripts and 18899# restored at relink time. 18900variables_saved_for_relink="$variables_saved_for_relink" 18901 18902# Whether libtool must link a program against all its dependency libraries. 18903link_all_deplibs=$link_all_deplibs_GCJ 18904 18905# Compile-time system search path for libraries 18906sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18907 18908# Run-time system search path for libraries 18909sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18910 18911# Fix the shell variable \$srcfile for the compiler. 18912fix_srcfile_path=$lt_fix_srcfile_path 18913 18914# Set to yes if exported symbols are required. 18915always_export_symbols=$always_export_symbols_GCJ 18916 18917# The commands to list exported symbols. 18918export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18919 18920# The commands to extract the exported symbol list from a shared archive. 18921extract_expsyms_cmds=$lt_extract_expsyms_cmds 18922 18923# Symbols that should not be listed in the preloaded symbols. 18924exclude_expsyms=$lt_exclude_expsyms_GCJ 18925 18926# Symbols that must always be exported. 18927include_expsyms=$lt_include_expsyms_GCJ 18928 18929# ### END LIBTOOL TAG CONFIG: $tagname 18930 18931__EOF__ 18932 18933 18934else 18935 # If there is no Makefile yet, we rely on a make rule to execute 18936 # `config.status --recheck' to rerun these tests and create the 18937 # libtool script then. 18938 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18939 if test -f "$ltmain_in"; then 18940 test -f Makefile && make "$ltmain" 18941 fi 18942fi 18943 18944 18945ac_ext=c 18946ac_cpp='$CPP $CPPFLAGS' 18947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18949ac_compiler_gnu=$ac_cv_c_compiler_gnu 18950 18951CC="$lt_save_CC" 18952 18953 else 18954 tagname="" 18955 fi 18956 ;; 18957 18958 RC) 18959 18960 18961# Source file extension for RC test sources. 18962ac_ext=rc 18963 18964# Object file extension for compiled RC test sources. 18965objext=o 18966objext_RC=$objext 18967 18968# Code to be used in simple compile tests 18969lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18970 18971# Code to be used in simple link tests 18972lt_simple_link_test_code="$lt_simple_compile_test_code" 18973 18974# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18975 18976# If no C compiler was specified, use CC. 18977LTCC=${LTCC-"$CC"} 18978 18979# If no C compiler flags were specified, use CFLAGS. 18980LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18981 18982# Allow CC to be a program name with arguments. 18983compiler=$CC 18984 18985 18986# save warnings/boilerplate of simple test code 18987ac_outfile=conftest.$ac_objext 18988echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18990_lt_compiler_boilerplate=`cat conftest.err` 18991$rm conftest* 18992 18993ac_outfile=conftest.$ac_objext 18994echo "$lt_simple_link_test_code" >conftest.$ac_ext 18995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18996_lt_linker_boilerplate=`cat conftest.err` 18997$rm conftest* 18998 18999 19000# Allow CC to be a program name with arguments. 19001lt_save_CC="$CC" 19002CC=${RC-"windres"} 19003compiler=$CC 19004compiler_RC=$CC 19005for cc_temp in $compiler""; do 19006 case $cc_temp in 19007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19009 \-*) ;; 19010 *) break;; 19011 esac 19012done 19013cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19014 19015lt_cv_prog_compiler_c_o_RC=yes 19016 19017# The else clause should only fire when bootstrapping the 19018# libtool distribution, otherwise you forgot to ship ltmain.sh 19019# with your package, and you will get complaints that there are 19020# no rules to generate ltmain.sh. 19021if test -f "$ltmain"; then 19022 # See if we are running on zsh, and set the options which allow our commands through 19023 # without removal of \ escapes. 19024 if test -n "${ZSH_VERSION+set}" ; then 19025 setopt NO_GLOB_SUBST 19026 fi 19027 # Now quote all the things that may contain metacharacters while being 19028 # careful not to overquote the AC_SUBSTed values. We take copies of the 19029 # variables and quote the copies for generation of the libtool script. 19030 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19031 SED SHELL STRIP \ 19032 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19033 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19034 deplibs_check_method reload_flag reload_cmds need_locks \ 19035 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19036 lt_cv_sys_global_symbol_to_c_name_address \ 19037 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19038 old_postinstall_cmds old_postuninstall_cmds \ 19039 compiler_RC \ 19040 CC_RC \ 19041 LD_RC \ 19042 lt_prog_compiler_wl_RC \ 19043 lt_prog_compiler_pic_RC \ 19044 lt_prog_compiler_static_RC \ 19045 lt_prog_compiler_no_builtin_flag_RC \ 19046 export_dynamic_flag_spec_RC \ 19047 thread_safe_flag_spec_RC \ 19048 whole_archive_flag_spec_RC \ 19049 enable_shared_with_static_runtimes_RC \ 19050 old_archive_cmds_RC \ 19051 old_archive_from_new_cmds_RC \ 19052 predep_objects_RC \ 19053 postdep_objects_RC \ 19054 predeps_RC \ 19055 postdeps_RC \ 19056 compiler_lib_search_path_RC \ 19057 archive_cmds_RC \ 19058 archive_expsym_cmds_RC \ 19059 postinstall_cmds_RC \ 19060 postuninstall_cmds_RC \ 19061 old_archive_from_expsyms_cmds_RC \ 19062 allow_undefined_flag_RC \ 19063 no_undefined_flag_RC \ 19064 export_symbols_cmds_RC \ 19065 hardcode_libdir_flag_spec_RC \ 19066 hardcode_libdir_flag_spec_ld_RC \ 19067 hardcode_libdir_separator_RC \ 19068 hardcode_automatic_RC \ 19069 module_cmds_RC \ 19070 module_expsym_cmds_RC \ 19071 lt_cv_prog_compiler_c_o_RC \ 19072 fix_srcfile_path_RC \ 19073 exclude_expsyms_RC \ 19074 include_expsyms_RC; do 19075 19076 case $var in 19077 old_archive_cmds_RC | \ 19078 old_archive_from_new_cmds_RC | \ 19079 archive_cmds_RC | \ 19080 archive_expsym_cmds_RC | \ 19081 module_cmds_RC | \ 19082 module_expsym_cmds_RC | \ 19083 old_archive_from_expsyms_cmds_RC | \ 19084 export_symbols_cmds_RC | \ 19085 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19086 postinstall_cmds | postuninstall_cmds | \ 19087 old_postinstall_cmds | old_postuninstall_cmds | \ 19088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19089 # Double-quote double-evaled strings. 19090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19091 ;; 19092 *) 19093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19094 ;; 19095 esac 19096 done 19097 19098 case $lt_echo in 19099 *'\$0 --fallback-echo"') 19100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19101 ;; 19102 esac 19103 19104cfgfile="$ofile" 19105 19106 cat <<__EOF__ >> "$cfgfile" 19107# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19108 19109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19110 19111# Shell to use when invoking shell scripts. 19112SHELL=$lt_SHELL 19113 19114# Whether or not to build shared libraries. 19115build_libtool_libs=$enable_shared 19116 19117# Whether or not to build static libraries. 19118build_old_libs=$enable_static 19119 19120# Whether or not to add -lc for building shared libraries. 19121build_libtool_need_lc=$archive_cmds_need_lc_RC 19122 19123# Whether or not to disallow shared libs when runtime libs are static 19124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19125 19126# Whether or not to optimize for fast installation. 19127fast_install=$enable_fast_install 19128 19129# The host system. 19130host_alias=$host_alias 19131host=$host 19132host_os=$host_os 19133 19134# The build system. 19135build_alias=$build_alias 19136build=$build 19137build_os=$build_os 19138 19139# An echo program that does not interpret backslashes. 19140echo=$lt_echo 19141 19142# The archiver. 19143AR=$lt_AR 19144AR_FLAGS=$lt_AR_FLAGS 19145 19146# A C compiler. 19147LTCC=$lt_LTCC 19148 19149# LTCC compiler flags. 19150LTCFLAGS=$lt_LTCFLAGS 19151 19152# A language-specific compiler. 19153CC=$lt_compiler_RC 19154 19155# Is the compiler the GNU C compiler? 19156with_gcc=$GCC_RC 19157 19158# An ERE matcher. 19159EGREP=$lt_EGREP 19160 19161# The linker used to build libraries. 19162LD=$lt_LD_RC 19163 19164# Whether we need hard or soft links. 19165LN_S=$lt_LN_S 19166 19167# A BSD-compatible nm program. 19168NM=$lt_NM 19169 19170# A symbol stripping program 19171STRIP=$lt_STRIP 19172 19173# Used to examine libraries when file_magic_cmd begins "file" 19174MAGIC_CMD=$MAGIC_CMD 19175 19176# Used on cygwin: DLL creation program. 19177DLLTOOL="$DLLTOOL" 19178 19179# Used on cygwin: object dumper. 19180OBJDUMP="$OBJDUMP" 19181 19182# Used on cygwin: assembler. 19183AS="$AS" 19184 19185# The name of the directory that contains temporary libtool files. 19186objdir=$objdir 19187 19188# How to create reloadable object files. 19189reload_flag=$lt_reload_flag 19190reload_cmds=$lt_reload_cmds 19191 19192# How to pass a linker flag through the compiler. 19193wl=$lt_lt_prog_compiler_wl_RC 19194 19195# Object file suffix (normally "o"). 19196objext="$ac_objext" 19197 19198# Old archive suffix (normally "a"). 19199libext="$libext" 19200 19201# Shared library suffix (normally ".so"). 19202shrext_cmds='$shrext_cmds' 19203 19204# Executable file suffix (normally ""). 19205exeext="$exeext" 19206 19207# Additional compiler flags for building library objects. 19208pic_flag=$lt_lt_prog_compiler_pic_RC 19209pic_mode=$pic_mode 19210 19211# What is the maximum length of a command? 19212max_cmd_len=$lt_cv_sys_max_cmd_len 19213 19214# Does compiler simultaneously support -c and -o options? 19215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19216 19217# Must we lock files when doing compilation? 19218need_locks=$lt_need_locks 19219 19220# Do we need the lib prefix for modules? 19221need_lib_prefix=$need_lib_prefix 19222 19223# Do we need a version for libraries? 19224need_version=$need_version 19225 19226# Whether dlopen is supported. 19227dlopen_support=$enable_dlopen 19228 19229# Whether dlopen of programs is supported. 19230dlopen_self=$enable_dlopen_self 19231 19232# Whether dlopen of statically linked programs is supported. 19233dlopen_self_static=$enable_dlopen_self_static 19234 19235# Compiler flag to prevent dynamic linking. 19236link_static_flag=$lt_lt_prog_compiler_static_RC 19237 19238# Compiler flag to turn off builtin functions. 19239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19240 19241# Compiler flag to allow reflexive dlopens. 19242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19243 19244# Compiler flag to generate shared objects directly from archives. 19245whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19246 19247# Compiler flag to generate thread-safe objects. 19248thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19249 19250# Library versioning type. 19251version_type=$version_type 19252 19253# Format of library name prefix. 19254libname_spec=$lt_libname_spec 19255 19256# List of archive names. First name is the real one, the rest are links. 19257# The last name is the one that the linker finds with -lNAME. 19258library_names_spec=$lt_library_names_spec 19259 19260# The coded name of the library, if different from the real name. 19261soname_spec=$lt_soname_spec 19262 19263# Commands used to build and install an old-style archive. 19264RANLIB=$lt_RANLIB 19265old_archive_cmds=$lt_old_archive_cmds_RC 19266old_postinstall_cmds=$lt_old_postinstall_cmds 19267old_postuninstall_cmds=$lt_old_postuninstall_cmds 19268 19269# Create an old-style archive from a shared archive. 19270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19271 19272# Create a temporary old-style archive to link instead of a shared archive. 19273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19274 19275# Commands used to build and install a shared archive. 19276archive_cmds=$lt_archive_cmds_RC 19277archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19278postinstall_cmds=$lt_postinstall_cmds 19279postuninstall_cmds=$lt_postuninstall_cmds 19280 19281# Commands used to build a loadable module (assumed same as above if empty) 19282module_cmds=$lt_module_cmds_RC 19283module_expsym_cmds=$lt_module_expsym_cmds_RC 19284 19285# Commands to strip libraries. 19286old_striplib=$lt_old_striplib 19287striplib=$lt_striplib 19288 19289# Dependencies to place before the objects being linked to create a 19290# shared library. 19291predep_objects=$lt_predep_objects_RC 19292 19293# Dependencies to place after the objects being linked to create a 19294# shared library. 19295postdep_objects=$lt_postdep_objects_RC 19296 19297# Dependencies to place before the objects being linked to create a 19298# shared library. 19299predeps=$lt_predeps_RC 19300 19301# Dependencies to place after the objects being linked to create a 19302# shared library. 19303postdeps=$lt_postdeps_RC 19304 19305# The library search path used internally by the compiler when linking 19306# a shared library. 19307compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19308 19309# Method to check whether dependent libraries are shared objects. 19310deplibs_check_method=$lt_deplibs_check_method 19311 19312# Command to use when deplibs_check_method == file_magic. 19313file_magic_cmd=$lt_file_magic_cmd 19314 19315# Flag that allows shared libraries with undefined symbols to be built. 19316allow_undefined_flag=$lt_allow_undefined_flag_RC 19317 19318# Flag that forces no undefined symbols. 19319no_undefined_flag=$lt_no_undefined_flag_RC 19320 19321# Commands used to finish a libtool library installation in a directory. 19322finish_cmds=$lt_finish_cmds 19323 19324# Same as above, but a single script fragment to be evaled but not shown. 19325finish_eval=$lt_finish_eval 19326 19327# Take the output of nm and produce a listing of raw symbols and C names. 19328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19329 19330# Transform the output of nm in a proper C declaration 19331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19332 19333# Transform the output of nm in a C name address pair 19334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19335 19336# This is the shared library runtime path variable. 19337runpath_var=$runpath_var 19338 19339# This is the shared library path variable. 19340shlibpath_var=$shlibpath_var 19341 19342# Is shlibpath searched before the hard-coded library search path? 19343shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19344 19345# How to hardcode a shared library path into an executable. 19346hardcode_action=$hardcode_action_RC 19347 19348# Whether we should hardcode library paths into libraries. 19349hardcode_into_libs=$hardcode_into_libs 19350 19351# Flag to hardcode \$libdir into a binary during linking. 19352# This must work even if \$libdir does not exist. 19353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19354 19355# If ld is used when linking, flag to hardcode \$libdir into 19356# a binary during linking. This must work even if \$libdir does 19357# not exist. 19358hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19359 19360# Whether we need a single -rpath flag with a separated argument. 19361hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19362 19363# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19364# resulting binary. 19365hardcode_direct=$hardcode_direct_RC 19366 19367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19368# resulting binary. 19369hardcode_minus_L=$hardcode_minus_L_RC 19370 19371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19372# the resulting binary. 19373hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19374 19375# Set to yes if building a shared library automatically hardcodes DIR into the library 19376# and all subsequent libraries and executables linked against it. 19377hardcode_automatic=$hardcode_automatic_RC 19378 19379# Variables whose values should be saved in libtool wrapper scripts and 19380# restored at relink time. 19381variables_saved_for_relink="$variables_saved_for_relink" 19382 19383# Whether libtool must link a program against all its dependency libraries. 19384link_all_deplibs=$link_all_deplibs_RC 19385 19386# Compile-time system search path for libraries 19387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19388 19389# Run-time system search path for libraries 19390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19391 19392# Fix the shell variable \$srcfile for the compiler. 19393fix_srcfile_path=$lt_fix_srcfile_path 19394 19395# Set to yes if exported symbols are required. 19396always_export_symbols=$always_export_symbols_RC 19397 19398# The commands to list exported symbols. 19399export_symbols_cmds=$lt_export_symbols_cmds_RC 19400 19401# The commands to extract the exported symbol list from a shared archive. 19402extract_expsyms_cmds=$lt_extract_expsyms_cmds 19403 19404# Symbols that should not be listed in the preloaded symbols. 19405exclude_expsyms=$lt_exclude_expsyms_RC 19406 19407# Symbols that must always be exported. 19408include_expsyms=$lt_include_expsyms_RC 19409 19410# ### END LIBTOOL TAG CONFIG: $tagname 19411 19412__EOF__ 19413 19414 19415else 19416 # If there is no Makefile yet, we rely on a make rule to execute 19417 # `config.status --recheck' to rerun these tests and create the 19418 # libtool script then. 19419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19420 if test -f "$ltmain_in"; then 19421 test -f Makefile && make "$ltmain" 19422 fi 19423fi 19424 19425 19426ac_ext=c 19427ac_cpp='$CPP $CPPFLAGS' 19428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19430ac_compiler_gnu=$ac_cv_c_compiler_gnu 19431 19432CC="$lt_save_CC" 19433 19434 ;; 19435 19436 *) 19437 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19438echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19439 { (exit 1); exit 1; }; } 19440 ;; 19441 esac 19442 19443 # Append the new tag name to the list of available tags. 19444 if test -n "$tagname" ; then 19445 available_tags="$available_tags $tagname" 19446 fi 19447 fi 19448 done 19449 IFS="$lt_save_ifs" 19450 19451 # Now substitute the updated list of available tags. 19452 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19453 mv "${ofile}T" "$ofile" 19454 chmod +x "$ofile" 19455 else 19456 rm -f "${ofile}T" 19457 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19458echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19459 { (exit 1); exit 1; }; } 19460 fi 19461fi 19462 19463 19464 19465# This can be used to rebuild libtool when needed 19466LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19467 19468# Always use our own libtool. 19469LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19470 19471# Prevent multiple expansion 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH 19493 19494 19495 19496if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19497 if test -n "$ac_tool_prefix"; then 19498 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19499set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19500{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19502if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19503 echo $ECHO_N "(cached) $ECHO_C" >&6 19504else 19505 case $PKG_CONFIG in 19506 [\\/]* | ?:[\\/]*) 19507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19508 ;; 19509 *) 19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19511for as_dir in $PATH 19512do 19513 IFS=$as_save_IFS 19514 test -z "$as_dir" && as_dir=. 19515 for ac_exec_ext in '' $ac_executable_extensions; do 19516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19519 break 2 19520 fi 19521done 19522done 19523IFS=$as_save_IFS 19524 19525 ;; 19526esac 19527fi 19528PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19529if test -n "$PKG_CONFIG"; then 19530 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19531echo "${ECHO_T}$PKG_CONFIG" >&6; } 19532else 19533 { echo "$as_me:$LINENO: result: no" >&5 19534echo "${ECHO_T}no" >&6; } 19535fi 19536 19537 19538fi 19539if test -z "$ac_cv_path_PKG_CONFIG"; then 19540 ac_pt_PKG_CONFIG=$PKG_CONFIG 19541 # Extract the first word of "pkg-config", so it can be a program name with args. 19542set dummy pkg-config; ac_word=$2 19543{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19545if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19546 echo $ECHO_N "(cached) $ECHO_C" >&6 19547else 19548 case $ac_pt_PKG_CONFIG in 19549 [\\/]* | ?:[\\/]*) 19550 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19551 ;; 19552 *) 19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19554for as_dir in $PATH 19555do 19556 IFS=$as_save_IFS 19557 test -z "$as_dir" && as_dir=. 19558 for ac_exec_ext in '' $ac_executable_extensions; do 19559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19560 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19562 break 2 19563 fi 19564done 19565done 19566IFS=$as_save_IFS 19567 19568 ;; 19569esac 19570fi 19571ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19572if test -n "$ac_pt_PKG_CONFIG"; then 19573 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19574echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19575else 19576 { echo "$as_me:$LINENO: result: no" >&5 19577echo "${ECHO_T}no" >&6; } 19578fi 19579 19580 if test "x$ac_pt_PKG_CONFIG" = x; then 19581 PKG_CONFIG="" 19582 else 19583 case $cross_compiling:$ac_tool_warned in 19584yes:) 19585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19586whose name does not start with the host triplet. If you think this 19587configuration is useful to you, please write to autoconf@gnu.org." >&5 19588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19589whose name does not start with the host triplet. If you think this 19590configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19591ac_tool_warned=yes ;; 19592esac 19593 PKG_CONFIG=$ac_pt_PKG_CONFIG 19594 fi 19595else 19596 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19597fi 19598 19599fi 19600if test -n "$PKG_CONFIG"; then 19601 _pkg_min_version=0.9.0 19602 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19603echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19604 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19605 { echo "$as_me:$LINENO: result: yes" >&5 19606echo "${ECHO_T}yes" >&6; } 19607 else 19608 { echo "$as_me:$LINENO: result: no" >&5 19609echo "${ECHO_T}no" >&6; } 19610 PKG_CONFIG="" 19611 fi 19612 19613fi 19614 19615pkg_failed=no 19616{ echo "$as_me:$LINENO: checking for GLIB" >&5 19617echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } 19618 19619if test -n "$PKG_CONFIG"; then 19620 if test -n "$GLIB_CFLAGS"; then 19621 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 19622 else 19623 if test -n "$PKG_CONFIG" && \ 19624 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5 19625 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 19626 ac_status=$? 19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19628 (exit $ac_status); }; then 19629 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` 19630else 19631 pkg_failed=yes 19632fi 19633 fi 19634else 19635 pkg_failed=untried 19636fi 19637if test -n "$PKG_CONFIG"; then 19638 if test -n "$GLIB_LIBS"; then 19639 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 19640 else 19641 if test -n "$PKG_CONFIG" && \ 19642 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5 19643 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 19644 ac_status=$? 19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19646 (exit $ac_status); }; then 19647 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` 19648else 19649 pkg_failed=yes 19650fi 19651 fi 19652else 19653 pkg_failed=untried 19654fi 19655 19656 19657 19658if test $pkg_failed = yes; then 19659 19660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19661 _pkg_short_errors_supported=yes 19662else 19663 _pkg_short_errors_supported=no 19664fi 19665 if test $_pkg_short_errors_supported = yes; then 19666 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"` 19667 else 19668 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"` 19669 fi 19670 # Put the nasty error message in config.log where it belongs 19671 echo "$GLIB_PKG_ERRORS" >&5 19672 19673 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met: 19674 19675$GLIB_PKG_ERRORS 19676 19677Consider adjusting the PKG_CONFIG_PATH environment variable if you 19678installed software in a non-standard prefix. 19679 19680Alternatively, you may set the environment variables GLIB_CFLAGS 19681and GLIB_LIBS to avoid the need to call pkg-config. 19682See the pkg-config man page for more details. 19683" >&5 19684echo "$as_me: error: Package requirements (glib-2.0) were not met: 19685 19686$GLIB_PKG_ERRORS 19687 19688Consider adjusting the PKG_CONFIG_PATH environment variable if you 19689installed software in a non-standard prefix. 19690 19691Alternatively, you may set the environment variables GLIB_CFLAGS 19692and GLIB_LIBS to avoid the need to call pkg-config. 19693See the pkg-config man page for more details. 19694" >&2;} 19695 { (exit 1); exit 1; }; } 19696elif test $pkg_failed = untried; then 19697 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19698is in your PATH or set the PKG_CONFIG environment variable to the full 19699path to pkg-config. 19700 19701Alternatively, you may set the environment variables GLIB_CFLAGS 19702and GLIB_LIBS to avoid the need to call pkg-config. 19703See the pkg-config man page for more details. 19704 19705To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19706See \`config.log' for more details." >&5 19707echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19708is in your PATH or set the PKG_CONFIG environment variable to the full 19709path to pkg-config. 19710 19711Alternatively, you may set the environment variables GLIB_CFLAGS 19712and GLIB_LIBS to avoid the need to call pkg-config. 19713See the pkg-config man page for more details. 19714 19715To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19716See \`config.log' for more details." >&2;} 19717 { (exit 1); exit 1; }; } 19718else 19719 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19720 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19721 { echo "$as_me:$LINENO: result: yes" >&5 19722echo "${ECHO_T}yes" >&6; } 19723 : 19724fi 19725 19726pkg_failed=no 19727{ echo "$as_me:$LINENO: checking for FUSE" >&5 19728echo $ECHO_N "checking for FUSE... $ECHO_C" >&6; } 19729 19730if test -n "$PKG_CONFIG"; then 19731 if test -n "$FUSE_CFLAGS"; then 19732 pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS" 19733 else 19734 if test -n "$PKG_CONFIG" && \ 19735 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.2\"") >&5 19736 ($PKG_CONFIG --exists --print-errors "fuse >= 2.2") 2>&5 19737 ac_status=$? 19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19739 (exit $ac_status); }; then 19740 pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.2" 2>/dev/null` 19741else 19742 pkg_failed=yes 19743fi 19744 fi 19745else 19746 pkg_failed=untried 19747fi 19748if test -n "$PKG_CONFIG"; then 19749 if test -n "$FUSE_LIBS"; then 19750 pkg_cv_FUSE_LIBS="$FUSE_LIBS" 19751 else 19752 if test -n "$PKG_CONFIG" && \ 19753 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.2\"") >&5 19754 ($PKG_CONFIG --exists --print-errors "fuse >= 2.2") 2>&5 19755 ac_status=$? 19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19757 (exit $ac_status); }; then 19758 pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.2" 2>/dev/null` 19759else 19760 pkg_failed=yes 19761fi 19762 fi 19763else 19764 pkg_failed=untried 19765fi 19766 19767 19768 19769if test $pkg_failed = yes; then 19770 19771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19772 _pkg_short_errors_supported=yes 19773else 19774 _pkg_short_errors_supported=no 19775fi 19776 if test $_pkg_short_errors_supported = yes; then 19777 FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fuse >= 2.2"` 19778 else 19779 FUSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fuse >= 2.2"` 19780 fi 19781 # Put the nasty error message in config.log where it belongs 19782 echo "$FUSE_PKG_ERRORS" >&5 19783 19784 { { echo "$as_me:$LINENO: error: Package requirements (fuse >= 2.2) were not met: 19785 19786$FUSE_PKG_ERRORS 19787 19788Consider adjusting the PKG_CONFIG_PATH environment variable if you 19789installed software in a non-standard prefix. 19790 19791Alternatively, you may set the environment variables FUSE_CFLAGS 19792and FUSE_LIBS to avoid the need to call pkg-config. 19793See the pkg-config man page for more details. 19794" >&5 19795echo "$as_me: error: Package requirements (fuse >= 2.2) were not met: 19796 19797$FUSE_PKG_ERRORS 19798 19799Consider adjusting the PKG_CONFIG_PATH environment variable if you 19800installed software in a non-standard prefix. 19801 19802Alternatively, you may set the environment variables FUSE_CFLAGS 19803and FUSE_LIBS to avoid the need to call pkg-config. 19804See the pkg-config man page for more details. 19805" >&2;} 19806 { (exit 1); exit 1; }; } 19807elif test $pkg_failed = untried; then 19808 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19809is in your PATH or set the PKG_CONFIG environment variable to the full 19810path to pkg-config. 19811 19812Alternatively, you may set the environment variables FUSE_CFLAGS 19813and FUSE_LIBS to avoid the need to call pkg-config. 19814See the pkg-config man page for more details. 19815 19816To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19817See \`config.log' for more details." >&5 19818echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19819is in your PATH or set the PKG_CONFIG environment variable to the full 19820path to pkg-config. 19821 19822Alternatively, you may set the environment variables FUSE_CFLAGS 19823and FUSE_LIBS to avoid the need to call pkg-config. 19824See the pkg-config man page for more details. 19825 19826To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19827See \`config.log' for more details." >&2;} 19828 { (exit 1); exit 1; }; } 19829else 19830 FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS 19831 FUSE_LIBS=$pkg_cv_FUSE_LIBS 19832 { echo "$as_me:$LINENO: result: yes" >&5 19833echo "${ECHO_T}yes" >&6; } 19834 : 19835fi 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869# Check whether --with-libcurl was given. 19870if test "${with_libcurl+set}" = set; then 19871 withval=$with_libcurl; _libcurl_with=$withval 19872else 19873 _libcurl_with=yes 19874fi 19875 19876 19877 if test "$_libcurl_with" != "no" ; then 19878 19879 for ac_prog in gawk mawk nawk awk 19880do 19881 # Extract the first word of "$ac_prog", so it can be a program name with args. 19882set dummy $ac_prog; ac_word=$2 19883{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19885if test "${ac_cv_prog_AWK+set}" = set; then 19886 echo $ECHO_N "(cached) $ECHO_C" >&6 19887else 19888 if test -n "$AWK"; then 19889 ac_cv_prog_AWK="$AWK" # Let the user override the test. 19890else 19891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19892for as_dir in $PATH 19893do 19894 IFS=$as_save_IFS 19895 test -z "$as_dir" && as_dir=. 19896 for ac_exec_ext in '' $ac_executable_extensions; do 19897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19898 ac_cv_prog_AWK="$ac_prog" 19899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19900 break 2 19901 fi 19902done 19903done 19904IFS=$as_save_IFS 19905 19906fi 19907fi 19908AWK=$ac_cv_prog_AWK 19909if test -n "$AWK"; then 19910 { echo "$as_me:$LINENO: result: $AWK" >&5 19911echo "${ECHO_T}$AWK" >&6; } 19912else 19913 { echo "$as_me:$LINENO: result: no" >&5 19914echo "${ECHO_T}no" >&6; } 19915fi 19916 19917 19918 test -n "$AWK" && break 19919done 19920 19921 19922 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" 19923 19924 _libcurl_try_link=yes 19925 19926 if test -d "$_libcurl_with" ; then 19927 CPPFLAGS="${CPPFLAGS} -I$withval/include" 19928 LDFLAGS="${LDFLAGS} -L$withval/lib" 19929 fi 19930 19931 # Extract the first word of "curl-config", so it can be a program name with args. 19932set dummy curl-config; ac_word=$2 19933{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19935if test "${ac_cv_path__libcurl_config+set}" = set; then 19936 echo $ECHO_N "(cached) $ECHO_C" >&6 19937else 19938 case $_libcurl_config in 19939 [\\/]* | ?:[\\/]*) 19940 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 19941 ;; 19942 *) 19943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19944for as_dir in $PATH 19945do 19946 IFS=$as_save_IFS 19947 test -z "$as_dir" && as_dir=. 19948 for ac_exec_ext in '' $ac_executable_extensions; do 19949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19950 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 19951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19952 break 2 19953 fi 19954done 19955done 19956IFS=$as_save_IFS 19957 19958 ;; 19959esac 19960fi 19961_libcurl_config=$ac_cv_path__libcurl_config 19962if test -n "$_libcurl_config"; then 19963 { echo "$as_me:$LINENO: result: $_libcurl_config" >&5 19964echo "${ECHO_T}$_libcurl_config" >&6; } 19965else 19966 { echo "$as_me:$LINENO: result: no" >&5 19967echo "${ECHO_T}no" >&6; } 19968fi 19969 19970 19971 19972 if test x$_libcurl_config != "x" ; then 19973 { echo "$as_me:$LINENO: checking for the version of libcurl" >&5 19974echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; } 19975if test "${libcurl_cv_lib_curl_version+set}" = set; then 19976 echo $ECHO_N "(cached) $ECHO_C" >&6 19977else 19978 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 19979fi 19980{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5 19981echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; } 19982 19983 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` 19984 _libcurl_wanted=`echo 7.17.0 | $_libcurl_version_parse` 19985 19986 if test $_libcurl_wanted -gt 0 ; then 19987 { echo "$as_me:$LINENO: checking for libcurl >= version 7.17.0" >&5 19988echo $ECHO_N "checking for libcurl >= version 7.17.0... $ECHO_C" >&6; } 19989if test "${libcurl_cv_lib_version_ok+set}" = set; then 19990 echo $ECHO_N "(cached) $ECHO_C" >&6 19991else 19992 19993 if test $_libcurl_version -ge $_libcurl_wanted ; then 19994 libcurl_cv_lib_version_ok=yes 19995 else 19996 libcurl_cv_lib_version_ok=no 19997 fi 19998 19999fi 20000{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5 20001echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; } 20002 fi 20003 20004 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then 20005 if test x"$LIBCURL_CPPFLAGS" = "x" ; then 20006 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` 20007 fi 20008 if test x"$LIBCURL" = "x" ; then 20009 LIBCURL=`$_libcurl_config --libs` 20010 20011 # This is so silly, but Apple actually has a bug in their 20012 # curl-config script. Fixed in Tiger, but there are still 20013 # lots of Panther installs around. 20014 case "${host}" in 20015 powerpc-apple-darwin7*) 20016 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` 20017 ;; 20018 esac 20019 fi 20020 20021 # All curl-config scripts support --feature 20022 _libcurl_features=`$_libcurl_config --feature` 20023 20024 # Is it modern enough to have --protocols? (7.12.4) 20025 if test $_libcurl_version -ge 461828 ; then 20026 _libcurl_protocols=`$_libcurl_config --protocols` 20027 fi 20028 else 20029 _libcurl_try_link=no 20030 fi 20031 20032 unset _libcurl_wanted 20033 fi 20034 20035 if test $_libcurl_try_link = yes ; then 20036 20037 # we didn't find curl-config, so let's see if the user-supplied 20038 # link line (or failing that, "-lcurl") is enough. 20039 LIBCURL=${LIBCURL-"-lcurl"} 20040 20041 { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5 20042echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; } 20043if test "${libcurl_cv_lib_curl_usable+set}" = set; then 20044 echo $ECHO_N "(cached) $ECHO_C" >&6 20045else 20046 20047 _libcurl_save_cppflags=$CPPFLAGS 20048 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 20049 _libcurl_save_libs=$LIBS 20050 LIBS="$LIBS $LIBCURL" 20051 20052 cat >conftest.$ac_ext <<_ACEOF 20053/* confdefs.h. */ 20054_ACEOF 20055cat confdefs.h >>conftest.$ac_ext 20056cat >>conftest.$ac_ext <<_ACEOF 20057/* end confdefs.h. */ 20058#include <curl/curl.h> 20059int 20060main () 20061{ 20062 20063/* Try and use a few common options to force a failure if we are 20064 missing symbols or can't link. */ 20065int x; 20066curl_easy_setopt(NULL,CURLOPT_URL,NULL); 20067x=CURL_ERROR_SIZE; 20068x=CURLOPT_WRITEFUNCTION; 20069x=CURLOPT_FILE; 20070x=CURLOPT_ERRORBUFFER; 20071x=CURLOPT_STDERR; 20072x=CURLOPT_VERBOSE; 20073 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078rm -f conftest.$ac_objext conftest$ac_exeext 20079if { (ac_try="$ac_link" 20080case "(($ac_try" in 20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20082 *) ac_try_echo=$ac_try;; 20083esac 20084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20085 (eval "$ac_link") 2>conftest.er1 20086 ac_status=$? 20087 grep -v '^ *+' conftest.er1 >conftest.err 20088 rm -f conftest.er1 20089 cat conftest.err >&5 20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20091 (exit $ac_status); } && { 20092 test -z "$ac_c_werror_flag" || 20093 test ! -s conftest.err 20094 } && test -s conftest$ac_exeext && 20095 $as_test_x conftest$ac_exeext; then 20096 libcurl_cv_lib_curl_usable=yes 20097else 20098 echo "$as_me: failed program was:" >&5 20099sed 's/^/| /' conftest.$ac_ext >&5 20100 20101 libcurl_cv_lib_curl_usable=no 20102fi 20103 20104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20105 conftest$ac_exeext conftest.$ac_ext 20106 20107 CPPFLAGS=$_libcurl_save_cppflags 20108 LIBS=$_libcurl_save_libs 20109 unset _libcurl_save_cppflags 20110 unset _libcurl_save_libs 20111 20112fi 20113{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5 20114echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; } 20115 20116 if test $libcurl_cv_lib_curl_usable = yes ; then 20117 20118 # Does curl_free() exist in this version of libcurl? 20119 # If not, fake it with free() 20120 20121 _libcurl_save_cppflags=$CPPFLAGS 20122 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 20123 _libcurl_save_libs=$LIBS 20124 LIBS="$LIBS $LIBCURL" 20125 20126 { echo "$as_me:$LINENO: checking for curl_free" >&5 20127echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; } 20128if test "${ac_cv_func_curl_free+set}" = set; then 20129 echo $ECHO_N "(cached) $ECHO_C" >&6 20130else 20131 cat >conftest.$ac_ext <<_ACEOF 20132/* confdefs.h. */ 20133_ACEOF 20134cat confdefs.h >>conftest.$ac_ext 20135cat >>conftest.$ac_ext <<_ACEOF 20136/* end confdefs.h. */ 20137/* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free. 20138 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20139#define curl_free innocuous_curl_free 20140 20141/* System header to define __stub macros and hopefully few prototypes, 20142 which can conflict with char curl_free (); below. 20143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20144 <limits.h> exists even on freestanding compilers. */ 20145 20146#ifdef __STDC__ 20147# include <limits.h> 20148#else 20149# include <assert.h> 20150#endif 20151 20152#undef curl_free 20153 20154/* Override any GCC internal prototype to avoid an error. 20155 Use char because int might match the return type of a GCC 20156 builtin and then its argument prototype would still apply. */ 20157#ifdef __cplusplus 20158extern "C" 20159#endif 20160char curl_free (); 20161/* The GNU C library defines this for functions which it implements 20162 to always fail with ENOSYS. Some functions are actually named 20163 something starting with __ and the normal name is an alias. */ 20164#if defined __stub_curl_free || defined __stub___curl_free 20165choke me 20166#endif 20167 20168int 20169main () 20170{ 20171return curl_free (); 20172 ; 20173 return 0; 20174} 20175_ACEOF 20176rm -f conftest.$ac_objext conftest$ac_exeext 20177if { (ac_try="$ac_link" 20178case "(($ac_try" in 20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20180 *) ac_try_echo=$ac_try;; 20181esac 20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20183 (eval "$ac_link") 2>conftest.er1 20184 ac_status=$? 20185 grep -v '^ *+' conftest.er1 >conftest.err 20186 rm -f conftest.er1 20187 cat conftest.err >&5 20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20189 (exit $ac_status); } && { 20190 test -z "$ac_c_werror_flag" || 20191 test ! -s conftest.err 20192 } && test -s conftest$ac_exeext && 20193 $as_test_x conftest$ac_exeext; then 20194 ac_cv_func_curl_free=yes 20195else 20196 echo "$as_me: failed program was:" >&5 20197sed 's/^/| /' conftest.$ac_ext >&5 20198 20199 ac_cv_func_curl_free=no 20200fi 20201 20202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20203 conftest$ac_exeext conftest.$ac_ext 20204fi 20205{ echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5 20206echo "${ECHO_T}$ac_cv_func_curl_free" >&6; } 20207if test $ac_cv_func_curl_free = yes; then 20208 : 20209else 20210 20211cat >>confdefs.h <<\_ACEOF 20212#define curl_free free 20213_ACEOF 20214 20215fi 20216 20217 20218 CPPFLAGS=$_libcurl_save_cppflags 20219 LIBS=$_libcurl_save_libs 20220 unset _libcurl_save_cppflags 20221 unset _libcurl_save_libs 20222 20223 20224cat >>confdefs.h <<\_ACEOF 20225#define HAVE_LIBCURL 1 20226_ACEOF 20227 20228 20229 20230 20231 for _libcurl_feature in $_libcurl_features ; do 20232 cat >>confdefs.h <<_ACEOF 20233#define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 20234_ACEOF 20235 20236 eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes 20237 done 20238 20239 if test "x$_libcurl_protocols" = "x" ; then 20240 20241 # We don't have --protocols, so just assume that all 20242 # protocols are available 20243 _libcurl_protocols="HTTP FTP GOPHER FILE TELNET LDAP DICT" 20244 20245 if test x$libcurl_feature_SSL = xyes ; then 20246 _libcurl_protocols="$_libcurl_protocols HTTPS" 20247 20248 # FTPS wasn't standards-compliant until version 20249 # 7.11.0 20250 if test $_libcurl_version -ge 461568; then 20251 _libcurl_protocols="$_libcurl_protocols FTPS" 20252 fi 20253 fi 20254 fi 20255 20256 for _libcurl_protocol in $_libcurl_protocols ; do 20257 cat >>confdefs.h <<_ACEOF 20258#define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 20259_ACEOF 20260 20261 eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes 20262 done 20263 fi 20264 fi 20265 20266 unset _libcurl_try_link 20267 unset _libcurl_version_parse 20268 unset _libcurl_config 20269 unset _libcurl_feature 20270 unset _libcurl_features 20271 unset _libcurl_protocol 20272 unset _libcurl_protocols 20273 unset _libcurl_version 20274 fi 20275 20276 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then 20277 # This is the IF-NO path 20278 { { echo "$as_me:$LINENO: error: \"libcurl not found\"" >&5 20279echo "$as_me: error: \"libcurl not found\"" >&2;} 20280 { (exit 1); exit 1; }; } 20281 else 20282 # This is the IF-YES path 20283 : 20284 fi 20285 20286 unset _libcurl_with 20287 20288if test "$libcurl_protocol_FTP" != yes; then 20289 { { echo "$as_me:$LINENO: error: \"We need libcurl with support for FTP protocol.\"" >&5 20290echo "$as_me: error: \"We need libcurl with support for FTP protocol.\"" >&2;} 20291 { (exit 1); exit 1; }; } 20292fi 20293 20294CFLAGS="$CFLAGS -Wall -W -Wno-sign-compare -D_REENTRANT $GLIB_CFLAGS $FUSE_CFLAGS $LIBCURL_CPPFLAGS" 20295LIBS="$GLIB_LIBS $FUSE_LIBS $LIBCURL" 20296 20297have_fuse_opt_parse=no 20298{ echo "$as_me:$LINENO: checking for fuse_opt_parse" >&5 20299echo $ECHO_N "checking for fuse_opt_parse... $ECHO_C" >&6; } 20300if test "${ac_cv_func_fuse_opt_parse+set}" = set; then 20301 echo $ECHO_N "(cached) $ECHO_C" >&6 20302else 20303 cat >conftest.$ac_ext <<_ACEOF 20304/* confdefs.h. */ 20305_ACEOF 20306cat confdefs.h >>conftest.$ac_ext 20307cat >>conftest.$ac_ext <<_ACEOF 20308/* end confdefs.h. */ 20309/* Define fuse_opt_parse to an innocuous variant, in case <limits.h> declares fuse_opt_parse. 20310 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20311#define fuse_opt_parse innocuous_fuse_opt_parse 20312 20313/* System header to define __stub macros and hopefully few prototypes, 20314 which can conflict with char fuse_opt_parse (); below. 20315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20316 <limits.h> exists even on freestanding compilers. */ 20317 20318#ifdef __STDC__ 20319# include <limits.h> 20320#else 20321# include <assert.h> 20322#endif 20323 20324#undef fuse_opt_parse 20325 20326/* Override any GCC internal prototype to avoid an error. 20327 Use char because int might match the return type of a GCC 20328 builtin and then its argument prototype would still apply. */ 20329#ifdef __cplusplus 20330extern "C" 20331#endif 20332char fuse_opt_parse (); 20333/* The GNU C library defines this for functions which it implements 20334 to always fail with ENOSYS. Some functions are actually named 20335 something starting with __ and the normal name is an alias. */ 20336#if defined __stub_fuse_opt_parse || defined __stub___fuse_opt_parse 20337choke me 20338#endif 20339 20340int 20341main () 20342{ 20343return fuse_opt_parse (); 20344 ; 20345 return 0; 20346} 20347_ACEOF 20348rm -f conftest.$ac_objext conftest$ac_exeext 20349if { (ac_try="$ac_link" 20350case "(($ac_try" in 20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20352 *) ac_try_echo=$ac_try;; 20353esac 20354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20355 (eval "$ac_link") 2>conftest.er1 20356 ac_status=$? 20357 grep -v '^ *+' conftest.er1 >conftest.err 20358 rm -f conftest.er1 20359 cat conftest.err >&5 20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20361 (exit $ac_status); } && { 20362 test -z "$ac_c_werror_flag" || 20363 test ! -s conftest.err 20364 } && test -s conftest$ac_exeext && 20365 $as_test_x conftest$ac_exeext; then 20366 ac_cv_func_fuse_opt_parse=yes 20367else 20368 echo "$as_me: failed program was:" >&5 20369sed 's/^/| /' conftest.$ac_ext >&5 20370 20371 ac_cv_func_fuse_opt_parse=no 20372fi 20373 20374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20375 conftest$ac_exeext conftest.$ac_ext 20376fi 20377{ echo "$as_me:$LINENO: result: $ac_cv_func_fuse_opt_parse" >&5 20378echo "${ECHO_T}$ac_cv_func_fuse_opt_parse" >&6; } 20379if test $ac_cv_func_fuse_opt_parse = yes; then 20380 have_fuse_opt_parse=yes 20381fi 20382 20383 20384# Checks for header files. 20385{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20387if test "${ac_cv_header_stdc+set}" = set; then 20388 echo $ECHO_N "(cached) $ECHO_C" >&6 20389else 20390 cat >conftest.$ac_ext <<_ACEOF 20391/* confdefs.h. */ 20392_ACEOF 20393cat confdefs.h >>conftest.$ac_ext 20394cat >>conftest.$ac_ext <<_ACEOF 20395/* end confdefs.h. */ 20396#include <stdlib.h> 20397#include <stdarg.h> 20398#include <string.h> 20399#include <float.h> 20400 20401int 20402main () 20403{ 20404 20405 ; 20406 return 0; 20407} 20408_ACEOF 20409rm -f conftest.$ac_objext 20410if { (ac_try="$ac_compile" 20411case "(($ac_try" in 20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20413 *) ac_try_echo=$ac_try;; 20414esac 20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20416 (eval "$ac_compile") 2>conftest.er1 20417 ac_status=$? 20418 grep -v '^ *+' conftest.er1 >conftest.err 20419 rm -f conftest.er1 20420 cat conftest.err >&5 20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20422 (exit $ac_status); } && { 20423 test -z "$ac_c_werror_flag" || 20424 test ! -s conftest.err 20425 } && test -s conftest.$ac_objext; then 20426 ac_cv_header_stdc=yes 20427else 20428 echo "$as_me: failed program was:" >&5 20429sed 's/^/| /' conftest.$ac_ext >&5 20430 20431 ac_cv_header_stdc=no 20432fi 20433 20434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20435 20436if test $ac_cv_header_stdc = yes; then 20437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20438 cat >conftest.$ac_ext <<_ACEOF 20439/* confdefs.h. */ 20440_ACEOF 20441cat confdefs.h >>conftest.$ac_ext 20442cat >>conftest.$ac_ext <<_ACEOF 20443/* end confdefs.h. */ 20444#include <string.h> 20445 20446_ACEOF 20447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20448 $EGREP "memchr" >/dev/null 2>&1; then 20449 : 20450else 20451 ac_cv_header_stdc=no 20452fi 20453rm -f conftest* 20454 20455fi 20456 20457if test $ac_cv_header_stdc = yes; then 20458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20459 cat >conftest.$ac_ext <<_ACEOF 20460/* confdefs.h. */ 20461_ACEOF 20462cat confdefs.h >>conftest.$ac_ext 20463cat >>conftest.$ac_ext <<_ACEOF 20464/* end confdefs.h. */ 20465#include <stdlib.h> 20466 20467_ACEOF 20468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20469 $EGREP "free" >/dev/null 2>&1; then 20470 : 20471else 20472 ac_cv_header_stdc=no 20473fi 20474rm -f conftest* 20475 20476fi 20477 20478if test $ac_cv_header_stdc = yes; then 20479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20480 if test "$cross_compiling" = yes; then 20481 : 20482else 20483 cat >conftest.$ac_ext <<_ACEOF 20484/* confdefs.h. */ 20485_ACEOF 20486cat confdefs.h >>conftest.$ac_ext 20487cat >>conftest.$ac_ext <<_ACEOF 20488/* end confdefs.h. */ 20489#include <ctype.h> 20490#include <stdlib.h> 20491#if ((' ' & 0x0FF) == 0x020) 20492# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20493# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20494#else 20495# define ISLOWER(c) \ 20496 (('a' <= (c) && (c) <= 'i') \ 20497 || ('j' <= (c) && (c) <= 'r') \ 20498 || ('s' <= (c) && (c) <= 'z')) 20499# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20500#endif 20501 20502#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20503int 20504main () 20505{ 20506 int i; 20507 for (i = 0; i < 256; i++) 20508 if (XOR (islower (i), ISLOWER (i)) 20509 || toupper (i) != TOUPPER (i)) 20510 return 2; 20511 return 0; 20512} 20513_ACEOF 20514rm -f conftest$ac_exeext 20515if { (ac_try="$ac_link" 20516case "(($ac_try" in 20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20518 *) ac_try_echo=$ac_try;; 20519esac 20520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20521 (eval "$ac_link") 2>&5 20522 ac_status=$? 20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20525 { (case "(($ac_try" in 20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20527 *) ac_try_echo=$ac_try;; 20528esac 20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20530 (eval "$ac_try") 2>&5 20531 ac_status=$? 20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20533 (exit $ac_status); }; }; then 20534 : 20535else 20536 echo "$as_me: program exited with status $ac_status" >&5 20537echo "$as_me: failed program was:" >&5 20538sed 's/^/| /' conftest.$ac_ext >&5 20539 20540( exit $ac_status ) 20541ac_cv_header_stdc=no 20542fi 20543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20544fi 20545 20546 20547fi 20548fi 20549{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20550echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20551if test $ac_cv_header_stdc = yes; then 20552 20553cat >>confdefs.h <<\_ACEOF 20554#define STDC_HEADERS 1 20555_ACEOF 20556 20557fi 20558 20559 20560 20561 20562 20563 20564 20565for ac_header in fcntl.h netinet/in.h stdint.h stdlib.h string.h unistd.h 20566do 20567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20569 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20572 echo $ECHO_N "(cached) $ECHO_C" >&6 20573fi 20574ac_res=`eval echo '${'$as_ac_Header'}'` 20575 { echo "$as_me:$LINENO: result: $ac_res" >&5 20576echo "${ECHO_T}$ac_res" >&6; } 20577else 20578 # Is the header compilable? 20579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20581cat >conftest.$ac_ext <<_ACEOF 20582/* confdefs.h. */ 20583_ACEOF 20584cat confdefs.h >>conftest.$ac_ext 20585cat >>conftest.$ac_ext <<_ACEOF 20586/* end confdefs.h. */ 20587$ac_includes_default 20588#include <$ac_header> 20589_ACEOF 20590rm -f conftest.$ac_objext 20591if { (ac_try="$ac_compile" 20592case "(($ac_try" in 20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20594 *) ac_try_echo=$ac_try;; 20595esac 20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20597 (eval "$ac_compile") 2>conftest.er1 20598 ac_status=$? 20599 grep -v '^ *+' conftest.er1 >conftest.err 20600 rm -f conftest.er1 20601 cat conftest.err >&5 20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20603 (exit $ac_status); } && { 20604 test -z "$ac_c_werror_flag" || 20605 test ! -s conftest.err 20606 } && test -s conftest.$ac_objext; then 20607 ac_header_compiler=yes 20608else 20609 echo "$as_me: failed program was:" >&5 20610sed 's/^/| /' conftest.$ac_ext >&5 20611 20612 ac_header_compiler=no 20613fi 20614 20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20617echo "${ECHO_T}$ac_header_compiler" >&6; } 20618 20619# Is the header present? 20620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20622cat >conftest.$ac_ext <<_ACEOF 20623/* confdefs.h. */ 20624_ACEOF 20625cat confdefs.h >>conftest.$ac_ext 20626cat >>conftest.$ac_ext <<_ACEOF 20627/* end confdefs.h. */ 20628#include <$ac_header> 20629_ACEOF 20630if { (ac_try="$ac_cpp conftest.$ac_ext" 20631case "(($ac_try" in 20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20633 *) ac_try_echo=$ac_try;; 20634esac 20635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20637 ac_status=$? 20638 grep -v '^ *+' conftest.er1 >conftest.err 20639 rm -f conftest.er1 20640 cat conftest.err >&5 20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20642 (exit $ac_status); } >/dev/null && { 20643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20644 test ! -s conftest.err 20645 }; then 20646 ac_header_preproc=yes 20647else 20648 echo "$as_me: failed program was:" >&5 20649sed 's/^/| /' conftest.$ac_ext >&5 20650 20651 ac_header_preproc=no 20652fi 20653 20654rm -f conftest.err conftest.$ac_ext 20655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20656echo "${ECHO_T}$ac_header_preproc" >&6; } 20657 20658# So? What about this header? 20659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20660 yes:no: ) 20661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20665 ac_header_preproc=yes 20666 ;; 20667 no:yes:* ) 20668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20680 20681 ;; 20682esac 20683{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20686 echo $ECHO_N "(cached) $ECHO_C" >&6 20687else 20688 eval "$as_ac_Header=\$ac_header_preproc" 20689fi 20690ac_res=`eval echo '${'$as_ac_Header'}'` 20691 { echo "$as_me:$LINENO: result: $ac_res" >&5 20692echo "${ECHO_T}$ac_res" >&6; } 20693 20694fi 20695if test `eval echo '${'$as_ac_Header'}'` = yes; then 20696 cat >>confdefs.h <<_ACEOF 20697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20698_ACEOF 20699 20700fi 20701 20702done 20703 20704 20705# Checks for typedefs, structures, and compiler characteristics. 20706{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20707echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20708if test "${ac_cv_c_const+set}" = set; then 20709 echo $ECHO_N "(cached) $ECHO_C" >&6 20710else 20711 cat >conftest.$ac_ext <<_ACEOF 20712/* confdefs.h. */ 20713_ACEOF 20714cat confdefs.h >>conftest.$ac_ext 20715cat >>conftest.$ac_ext <<_ACEOF 20716/* end confdefs.h. */ 20717 20718int 20719main () 20720{ 20721/* FIXME: Include the comments suggested by Paul. */ 20722#ifndef __cplusplus 20723 /* Ultrix mips cc rejects this. */ 20724 typedef int charset[2]; 20725 const charset cs; 20726 /* SunOS 4.1.1 cc rejects this. */ 20727 char const *const *pcpcc; 20728 char **ppc; 20729 /* NEC SVR4.0.2 mips cc rejects this. */ 20730 struct point {int x, y;}; 20731 static struct point const zero = {0,0}; 20732 /* AIX XL C 1.02.0.0 rejects this. 20733 It does not let you subtract one const X* pointer from another in 20734 an arm of an if-expression whose if-part is not a constant 20735 expression */ 20736 const char *g = "string"; 20737 pcpcc = &g + (g ? g-g : 0); 20738 /* HPUX 7.0 cc rejects these. */ 20739 ++pcpcc; 20740 ppc = (char**) pcpcc; 20741 pcpcc = (char const *const *) ppc; 20742 { /* SCO 3.2v4 cc rejects this. */ 20743 char *t; 20744 char const *s = 0 ? (char *) 0 : (char const *) 0; 20745 20746 *t++ = 0; 20747 if (s) return 0; 20748 } 20749 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20750 int x[] = {25, 17}; 20751 const int *foo = &x[0]; 20752 ++foo; 20753 } 20754 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20755 typedef const int *iptr; 20756 iptr p = 0; 20757 ++p; 20758 } 20759 { /* AIX XL C 1.02.0.0 rejects this saying 20760 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20761 struct s { int j; const int *ap[3]; }; 20762 struct s *b; b->j = 5; 20763 } 20764 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20765 const int foo = 10; 20766 if (!foo) return 0; 20767 } 20768 return !cs[0] && !zero.x; 20769#endif 20770 20771 ; 20772 return 0; 20773} 20774_ACEOF 20775rm -f conftest.$ac_objext 20776if { (ac_try="$ac_compile" 20777case "(($ac_try" in 20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20779 *) ac_try_echo=$ac_try;; 20780esac 20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20782 (eval "$ac_compile") 2>conftest.er1 20783 ac_status=$? 20784 grep -v '^ *+' conftest.er1 >conftest.err 20785 rm -f conftest.er1 20786 cat conftest.err >&5 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); } && { 20789 test -z "$ac_c_werror_flag" || 20790 test ! -s conftest.err 20791 } && test -s conftest.$ac_objext; then 20792 ac_cv_c_const=yes 20793else 20794 echo "$as_me: failed program was:" >&5 20795sed 's/^/| /' conftest.$ac_ext >&5 20796 20797 ac_cv_c_const=no 20798fi 20799 20800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20801fi 20802{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20803echo "${ECHO_T}$ac_cv_c_const" >&6; } 20804if test $ac_cv_c_const = no; then 20805 20806cat >>confdefs.h <<\_ACEOF 20807#define const 20808_ACEOF 20809 20810fi 20811 20812{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 20813echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } 20814if test "${ac_cv_type_uid_t+set}" = set; then 20815 echo $ECHO_N "(cached) $ECHO_C" >&6 20816else 20817 cat >conftest.$ac_ext <<_ACEOF 20818/* confdefs.h. */ 20819_ACEOF 20820cat confdefs.h >>conftest.$ac_ext 20821cat >>conftest.$ac_ext <<_ACEOF 20822/* end confdefs.h. */ 20823#include <sys/types.h> 20824 20825_ACEOF 20826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20827 $EGREP "uid_t" >/dev/null 2>&1; then 20828 ac_cv_type_uid_t=yes 20829else 20830 ac_cv_type_uid_t=no 20831fi 20832rm -f conftest* 20833 20834fi 20835{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 20836echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 20837if test $ac_cv_type_uid_t = no; then 20838 20839cat >>confdefs.h <<\_ACEOF 20840#define uid_t int 20841_ACEOF 20842 20843 20844cat >>confdefs.h <<\_ACEOF 20845#define gid_t int 20846_ACEOF 20847 20848fi 20849 20850{ echo "$as_me:$LINENO: checking for inline" >&5 20851echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 20852if test "${ac_cv_c_inline+set}" = set; then 20853 echo $ECHO_N "(cached) $ECHO_C" >&6 20854else 20855 ac_cv_c_inline=no 20856for ac_kw in inline __inline__ __inline; do 20857 cat >conftest.$ac_ext <<_ACEOF 20858/* confdefs.h. */ 20859_ACEOF 20860cat confdefs.h >>conftest.$ac_ext 20861cat >>conftest.$ac_ext <<_ACEOF 20862/* end confdefs.h. */ 20863#ifndef __cplusplus 20864typedef int foo_t; 20865static $ac_kw foo_t static_foo () {return 0; } 20866$ac_kw foo_t foo () {return 0; } 20867#endif 20868 20869_ACEOF 20870rm -f conftest.$ac_objext 20871if { (ac_try="$ac_compile" 20872case "(($ac_try" in 20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20874 *) ac_try_echo=$ac_try;; 20875esac 20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20877 (eval "$ac_compile") 2>conftest.er1 20878 ac_status=$? 20879 grep -v '^ *+' conftest.er1 >conftest.err 20880 rm -f conftest.er1 20881 cat conftest.err >&5 20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20883 (exit $ac_status); } && { 20884 test -z "$ac_c_werror_flag" || 20885 test ! -s conftest.err 20886 } && test -s conftest.$ac_objext; then 20887 ac_cv_c_inline=$ac_kw 20888else 20889 echo "$as_me: failed program was:" >&5 20890sed 's/^/| /' conftest.$ac_ext >&5 20891 20892 20893fi 20894 20895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20896 test "$ac_cv_c_inline" != no && break 20897done 20898 20899fi 20900{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 20901echo "${ECHO_T}$ac_cv_c_inline" >&6; } 20902 20903 20904case $ac_cv_c_inline in 20905 inline | yes) ;; 20906 *) 20907 case $ac_cv_c_inline in 20908 no) ac_val=;; 20909 *) ac_val=$ac_cv_c_inline;; 20910 esac 20911 cat >>confdefs.h <<_ACEOF 20912#ifndef __cplusplus 20913#define inline $ac_val 20914#endif 20915_ACEOF 20916 ;; 20917esac 20918 20919{ echo "$as_me:$LINENO: checking for mode_t" >&5 20920echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 20921if test "${ac_cv_type_mode_t+set}" = set; then 20922 echo $ECHO_N "(cached) $ECHO_C" >&6 20923else 20924 cat >conftest.$ac_ext <<_ACEOF 20925/* confdefs.h. */ 20926_ACEOF 20927cat confdefs.h >>conftest.$ac_ext 20928cat >>conftest.$ac_ext <<_ACEOF 20929/* end confdefs.h. */ 20930$ac_includes_default 20931typedef mode_t ac__type_new_; 20932int 20933main () 20934{ 20935if ((ac__type_new_ *) 0) 20936 return 0; 20937if (sizeof (ac__type_new_)) 20938 return 0; 20939 ; 20940 return 0; 20941} 20942_ACEOF 20943rm -f conftest.$ac_objext 20944if { (ac_try="$ac_compile" 20945case "(($ac_try" in 20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20947 *) ac_try_echo=$ac_try;; 20948esac 20949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20950 (eval "$ac_compile") 2>conftest.er1 20951 ac_status=$? 20952 grep -v '^ *+' conftest.er1 >conftest.err 20953 rm -f conftest.er1 20954 cat conftest.err >&5 20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20956 (exit $ac_status); } && { 20957 test -z "$ac_c_werror_flag" || 20958 test ! -s conftest.err 20959 } && test -s conftest.$ac_objext; then 20960 ac_cv_type_mode_t=yes 20961else 20962 echo "$as_me: failed program was:" >&5 20963sed 's/^/| /' conftest.$ac_ext >&5 20964 20965 ac_cv_type_mode_t=no 20966fi 20967 20968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20969fi 20970{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 20971echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } 20972if test $ac_cv_type_mode_t = yes; then 20973 : 20974else 20975 20976cat >>confdefs.h <<_ACEOF 20977#define mode_t int 20978_ACEOF 20979 20980fi 20981 20982{ echo "$as_me:$LINENO: checking for off_t" >&5 20983echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 20984if test "${ac_cv_type_off_t+set}" = set; then 20985 echo $ECHO_N "(cached) $ECHO_C" >&6 20986else 20987 cat >conftest.$ac_ext <<_ACEOF 20988/* confdefs.h. */ 20989_ACEOF 20990cat confdefs.h >>conftest.$ac_ext 20991cat >>conftest.$ac_ext <<_ACEOF 20992/* end confdefs.h. */ 20993$ac_includes_default 20994typedef off_t ac__type_new_; 20995int 20996main () 20997{ 20998if ((ac__type_new_ *) 0) 20999 return 0; 21000if (sizeof (ac__type_new_)) 21001 return 0; 21002 ; 21003 return 0; 21004} 21005_ACEOF 21006rm -f conftest.$ac_objext 21007if { (ac_try="$ac_compile" 21008case "(($ac_try" in 21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21010 *) ac_try_echo=$ac_try;; 21011esac 21012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21013 (eval "$ac_compile") 2>conftest.er1 21014 ac_status=$? 21015 grep -v '^ *+' conftest.er1 >conftest.err 21016 rm -f conftest.er1 21017 cat conftest.err >&5 21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21019 (exit $ac_status); } && { 21020 test -z "$ac_c_werror_flag" || 21021 test ! -s conftest.err 21022 } && test -s conftest.$ac_objext; then 21023 ac_cv_type_off_t=yes 21024else 21025 echo "$as_me: failed program was:" >&5 21026sed 's/^/| /' conftest.$ac_ext >&5 21027 21028 ac_cv_type_off_t=no 21029fi 21030 21031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21032fi 21033{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 21034echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 21035if test $ac_cv_type_off_t = yes; then 21036 : 21037else 21038 21039cat >>confdefs.h <<_ACEOF 21040#define off_t long int 21041_ACEOF 21042 21043fi 21044 21045{ echo "$as_me:$LINENO: checking for size_t" >&5 21046echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 21047if test "${ac_cv_type_size_t+set}" = set; then 21048 echo $ECHO_N "(cached) $ECHO_C" >&6 21049else 21050 cat >conftest.$ac_ext <<_ACEOF 21051/* confdefs.h. */ 21052_ACEOF 21053cat confdefs.h >>conftest.$ac_ext 21054cat >>conftest.$ac_ext <<_ACEOF 21055/* end confdefs.h. */ 21056$ac_includes_default 21057typedef size_t ac__type_new_; 21058int 21059main () 21060{ 21061if ((ac__type_new_ *) 0) 21062 return 0; 21063if (sizeof (ac__type_new_)) 21064 return 0; 21065 ; 21066 return 0; 21067} 21068_ACEOF 21069rm -f conftest.$ac_objext 21070if { (ac_try="$ac_compile" 21071case "(($ac_try" in 21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21073 *) ac_try_echo=$ac_try;; 21074esac 21075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21076 (eval "$ac_compile") 2>conftest.er1 21077 ac_status=$? 21078 grep -v '^ *+' conftest.er1 >conftest.err 21079 rm -f conftest.er1 21080 cat conftest.err >&5 21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21082 (exit $ac_status); } && { 21083 test -z "$ac_c_werror_flag" || 21084 test ! -s conftest.err 21085 } && test -s conftest.$ac_objext; then 21086 ac_cv_type_size_t=yes 21087else 21088 echo "$as_me: failed program was:" >&5 21089sed 's/^/| /' conftest.$ac_ext >&5 21090 21091 ac_cv_type_size_t=no 21092fi 21093 21094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21095fi 21096{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 21097echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 21098if test $ac_cv_type_size_t = yes; then 21099 : 21100else 21101 21102cat >>confdefs.h <<_ACEOF 21103#define size_t unsigned int 21104_ACEOF 21105 21106fi 21107 21108{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 21109echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } 21110if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then 21111 echo $ECHO_N "(cached) $ECHO_C" >&6 21112else 21113 cat >conftest.$ac_ext <<_ACEOF 21114/* confdefs.h. */ 21115_ACEOF 21116cat confdefs.h >>conftest.$ac_ext 21117cat >>conftest.$ac_ext <<_ACEOF 21118/* end confdefs.h. */ 21119$ac_includes_default 21120int 21121main () 21122{ 21123static struct stat ac_aggr; 21124if (ac_aggr.st_blksize) 21125return 0; 21126 ; 21127 return 0; 21128} 21129_ACEOF 21130rm -f conftest.$ac_objext 21131if { (ac_try="$ac_compile" 21132case "(($ac_try" in 21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21134 *) ac_try_echo=$ac_try;; 21135esac 21136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21137 (eval "$ac_compile") 2>conftest.er1 21138 ac_status=$? 21139 grep -v '^ *+' conftest.er1 >conftest.err 21140 rm -f conftest.er1 21141 cat conftest.err >&5 21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21143 (exit $ac_status); } && { 21144 test -z "$ac_c_werror_flag" || 21145 test ! -s conftest.err 21146 } && test -s conftest.$ac_objext; then 21147 ac_cv_member_struct_stat_st_blksize=yes 21148else 21149 echo "$as_me: failed program was:" >&5 21150sed 's/^/| /' conftest.$ac_ext >&5 21151 21152 cat >conftest.$ac_ext <<_ACEOF 21153/* confdefs.h. */ 21154_ACEOF 21155cat confdefs.h >>conftest.$ac_ext 21156cat >>conftest.$ac_ext <<_ACEOF 21157/* end confdefs.h. */ 21158$ac_includes_default 21159int 21160main () 21161{ 21162static struct stat ac_aggr; 21163if (sizeof ac_aggr.st_blksize) 21164return 0; 21165 ; 21166 return 0; 21167} 21168_ACEOF 21169rm -f conftest.$ac_objext 21170if { (ac_try="$ac_compile" 21171case "(($ac_try" in 21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21173 *) ac_try_echo=$ac_try;; 21174esac 21175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21176 (eval "$ac_compile") 2>conftest.er1 21177 ac_status=$? 21178 grep -v '^ *+' conftest.er1 >conftest.err 21179 rm -f conftest.er1 21180 cat conftest.err >&5 21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21182 (exit $ac_status); } && { 21183 test -z "$ac_c_werror_flag" || 21184 test ! -s conftest.err 21185 } && test -s conftest.$ac_objext; then 21186 ac_cv_member_struct_stat_st_blksize=yes 21187else 21188 echo "$as_me: failed program was:" >&5 21189sed 's/^/| /' conftest.$ac_ext >&5 21190 21191 ac_cv_member_struct_stat_st_blksize=no 21192fi 21193 21194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21195fi 21196 21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21198fi 21199{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 21200echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } 21201if test $ac_cv_member_struct_stat_st_blksize = yes; then 21202 21203cat >>confdefs.h <<_ACEOF 21204#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 21205_ACEOF 21206 21207 21208fi 21209 21210{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 21211echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } 21212if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then 21213 echo $ECHO_N "(cached) $ECHO_C" >&6 21214else 21215 cat >conftest.$ac_ext <<_ACEOF 21216/* confdefs.h. */ 21217_ACEOF 21218cat confdefs.h >>conftest.$ac_ext 21219cat >>conftest.$ac_ext <<_ACEOF 21220/* end confdefs.h. */ 21221$ac_includes_default 21222int 21223main () 21224{ 21225static struct stat ac_aggr; 21226if (ac_aggr.st_blocks) 21227return 0; 21228 ; 21229 return 0; 21230} 21231_ACEOF 21232rm -f conftest.$ac_objext 21233if { (ac_try="$ac_compile" 21234case "(($ac_try" in 21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21236 *) ac_try_echo=$ac_try;; 21237esac 21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21239 (eval "$ac_compile") 2>conftest.er1 21240 ac_status=$? 21241 grep -v '^ *+' conftest.er1 >conftest.err 21242 rm -f conftest.er1 21243 cat conftest.err >&5 21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21245 (exit $ac_status); } && { 21246 test -z "$ac_c_werror_flag" || 21247 test ! -s conftest.err 21248 } && test -s conftest.$ac_objext; then 21249 ac_cv_member_struct_stat_st_blocks=yes 21250else 21251 echo "$as_me: failed program was:" >&5 21252sed 's/^/| /' conftest.$ac_ext >&5 21253 21254 cat >conftest.$ac_ext <<_ACEOF 21255/* confdefs.h. */ 21256_ACEOF 21257cat confdefs.h >>conftest.$ac_ext 21258cat >>conftest.$ac_ext <<_ACEOF 21259/* end confdefs.h. */ 21260$ac_includes_default 21261int 21262main () 21263{ 21264static struct stat ac_aggr; 21265if (sizeof ac_aggr.st_blocks) 21266return 0; 21267 ; 21268 return 0; 21269} 21270_ACEOF 21271rm -f conftest.$ac_objext 21272if { (ac_try="$ac_compile" 21273case "(($ac_try" in 21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21275 *) ac_try_echo=$ac_try;; 21276esac 21277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21278 (eval "$ac_compile") 2>conftest.er1 21279 ac_status=$? 21280 grep -v '^ *+' conftest.er1 >conftest.err 21281 rm -f conftest.er1 21282 cat conftest.err >&5 21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21284 (exit $ac_status); } && { 21285 test -z "$ac_c_werror_flag" || 21286 test ! -s conftest.err 21287 } && test -s conftest.$ac_objext; then 21288 ac_cv_member_struct_stat_st_blocks=yes 21289else 21290 echo "$as_me: failed program was:" >&5 21291sed 's/^/| /' conftest.$ac_ext >&5 21292 21293 ac_cv_member_struct_stat_st_blocks=no 21294fi 21295 21296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21297fi 21298 21299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21300fi 21301{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 21302echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } 21303if test $ac_cv_member_struct_stat_st_blocks = yes; then 21304 21305cat >>confdefs.h <<_ACEOF 21306#define HAVE_STRUCT_STAT_ST_BLOCKS 1 21307_ACEOF 21308 21309 21310cat >>confdefs.h <<\_ACEOF 21311#define HAVE_ST_BLOCKS 1 21312_ACEOF 21313 21314else 21315 case " $LIBOBJS " in 21316 *" fileblocks.$ac_objext "* ) ;; 21317 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" 21318 ;; 21319esac 21320 21321fi 21322 21323 21324{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 21325echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } 21326if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then 21327 echo $ECHO_N "(cached) $ECHO_C" >&6 21328else 21329 cat >conftest.$ac_ext <<_ACEOF 21330/* confdefs.h. */ 21331_ACEOF 21332cat confdefs.h >>conftest.$ac_ext 21333cat >>conftest.$ac_ext <<_ACEOF 21334/* end confdefs.h. */ 21335$ac_includes_default 21336int 21337main () 21338{ 21339static struct stat ac_aggr; 21340if (ac_aggr.st_rdev) 21341return 0; 21342 ; 21343 return 0; 21344} 21345_ACEOF 21346rm -f conftest.$ac_objext 21347if { (ac_try="$ac_compile" 21348case "(($ac_try" in 21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21350 *) ac_try_echo=$ac_try;; 21351esac 21352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21353 (eval "$ac_compile") 2>conftest.er1 21354 ac_status=$? 21355 grep -v '^ *+' conftest.er1 >conftest.err 21356 rm -f conftest.er1 21357 cat conftest.err >&5 21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21359 (exit $ac_status); } && { 21360 test -z "$ac_c_werror_flag" || 21361 test ! -s conftest.err 21362 } && test -s conftest.$ac_objext; then 21363 ac_cv_member_struct_stat_st_rdev=yes 21364else 21365 echo "$as_me: failed program was:" >&5 21366sed 's/^/| /' conftest.$ac_ext >&5 21367 21368 cat >conftest.$ac_ext <<_ACEOF 21369/* confdefs.h. */ 21370_ACEOF 21371cat confdefs.h >>conftest.$ac_ext 21372cat >>conftest.$ac_ext <<_ACEOF 21373/* end confdefs.h. */ 21374$ac_includes_default 21375int 21376main () 21377{ 21378static struct stat ac_aggr; 21379if (sizeof ac_aggr.st_rdev) 21380return 0; 21381 ; 21382 return 0; 21383} 21384_ACEOF 21385rm -f conftest.$ac_objext 21386if { (ac_try="$ac_compile" 21387case "(($ac_try" in 21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21389 *) ac_try_echo=$ac_try;; 21390esac 21391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21392 (eval "$ac_compile") 2>conftest.er1 21393 ac_status=$? 21394 grep -v '^ *+' conftest.er1 >conftest.err 21395 rm -f conftest.er1 21396 cat conftest.err >&5 21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21398 (exit $ac_status); } && { 21399 test -z "$ac_c_werror_flag" || 21400 test ! -s conftest.err 21401 } && test -s conftest.$ac_objext; then 21402 ac_cv_member_struct_stat_st_rdev=yes 21403else 21404 echo "$as_me: failed program was:" >&5 21405sed 's/^/| /' conftest.$ac_ext >&5 21406 21407 ac_cv_member_struct_stat_st_rdev=no 21408fi 21409 21410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21411fi 21412 21413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21414fi 21415{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 21416echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } 21417if test $ac_cv_member_struct_stat_st_rdev = yes; then 21418 21419cat >>confdefs.h <<_ACEOF 21420#define HAVE_STRUCT_STAT_ST_RDEV 1 21421_ACEOF 21422 21423 21424fi 21425 21426{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21427echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 21428if test "${ac_cv_header_time+set}" = set; then 21429 echo $ECHO_N "(cached) $ECHO_C" >&6 21430else 21431 cat >conftest.$ac_ext <<_ACEOF 21432/* confdefs.h. */ 21433_ACEOF 21434cat confdefs.h >>conftest.$ac_ext 21435cat >>conftest.$ac_ext <<_ACEOF 21436/* end confdefs.h. */ 21437#include <sys/types.h> 21438#include <sys/time.h> 21439#include <time.h> 21440 21441int 21442main () 21443{ 21444if ((struct tm *) 0) 21445return 0; 21446 ; 21447 return 0; 21448} 21449_ACEOF 21450rm -f conftest.$ac_objext 21451if { (ac_try="$ac_compile" 21452case "(($ac_try" in 21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21454 *) ac_try_echo=$ac_try;; 21455esac 21456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21457 (eval "$ac_compile") 2>conftest.er1 21458 ac_status=$? 21459 grep -v '^ *+' conftest.er1 >conftest.err 21460 rm -f conftest.er1 21461 cat conftest.err >&5 21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21463 (exit $ac_status); } && { 21464 test -z "$ac_c_werror_flag" || 21465 test ! -s conftest.err 21466 } && test -s conftest.$ac_objext; then 21467 ac_cv_header_time=yes 21468else 21469 echo "$as_me: failed program was:" >&5 21470sed 's/^/| /' conftest.$ac_ext >&5 21471 21472 ac_cv_header_time=no 21473fi 21474 21475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21476fi 21477{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21478echo "${ECHO_T}$ac_cv_header_time" >&6; } 21479if test $ac_cv_header_time = yes; then 21480 21481cat >>confdefs.h <<\_ACEOF 21482#define TIME_WITH_SYS_TIME 1 21483_ACEOF 21484 21485fi 21486 21487{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 21488echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 21489if test "${ac_cv_struct_tm+set}" = set; then 21490 echo $ECHO_N "(cached) $ECHO_C" >&6 21491else 21492 cat >conftest.$ac_ext <<_ACEOF 21493/* confdefs.h. */ 21494_ACEOF 21495cat confdefs.h >>conftest.$ac_ext 21496cat >>conftest.$ac_ext <<_ACEOF 21497/* end confdefs.h. */ 21498#include <sys/types.h> 21499#include <time.h> 21500 21501int 21502main () 21503{ 21504struct tm tm; 21505 int *p = &tm.tm_sec; 21506 return !p; 21507 ; 21508 return 0; 21509} 21510_ACEOF 21511rm -f conftest.$ac_objext 21512if { (ac_try="$ac_compile" 21513case "(($ac_try" in 21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21515 *) ac_try_echo=$ac_try;; 21516esac 21517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21518 (eval "$ac_compile") 2>conftest.er1 21519 ac_status=$? 21520 grep -v '^ *+' conftest.er1 >conftest.err 21521 rm -f conftest.er1 21522 cat conftest.err >&5 21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21524 (exit $ac_status); } && { 21525 test -z "$ac_c_werror_flag" || 21526 test ! -s conftest.err 21527 } && test -s conftest.$ac_objext; then 21528 ac_cv_struct_tm=time.h 21529else 21530 echo "$as_me: failed program was:" >&5 21531sed 's/^/| /' conftest.$ac_ext >&5 21532 21533 ac_cv_struct_tm=sys/time.h 21534fi 21535 21536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21537fi 21538{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 21539echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 21540if test $ac_cv_struct_tm = sys/time.h; then 21541 21542cat >>confdefs.h <<\_ACEOF 21543#define TM_IN_SYS_TIME 1 21544_ACEOF 21545 21546fi 21547 21548#AC_TYPE_UINT32_T 21549#AC_TYPE_UINT64_T 21550#AC_TYPE_UINT8_T 21551 21552# Checks for library functions. 21553 21554for ac_header in unistd.h 21555do 21556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21558 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21561 echo $ECHO_N "(cached) $ECHO_C" >&6 21562fi 21563ac_res=`eval echo '${'$as_ac_Header'}'` 21564 { echo "$as_me:$LINENO: result: $ac_res" >&5 21565echo "${ECHO_T}$ac_res" >&6; } 21566else 21567 # Is the header compilable? 21568{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21570cat >conftest.$ac_ext <<_ACEOF 21571/* confdefs.h. */ 21572_ACEOF 21573cat confdefs.h >>conftest.$ac_ext 21574cat >>conftest.$ac_ext <<_ACEOF 21575/* end confdefs.h. */ 21576$ac_includes_default 21577#include <$ac_header> 21578_ACEOF 21579rm -f conftest.$ac_objext 21580if { (ac_try="$ac_compile" 21581case "(($ac_try" in 21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21583 *) ac_try_echo=$ac_try;; 21584esac 21585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21586 (eval "$ac_compile") 2>conftest.er1 21587 ac_status=$? 21588 grep -v '^ *+' conftest.er1 >conftest.err 21589 rm -f conftest.er1 21590 cat conftest.err >&5 21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21592 (exit $ac_status); } && { 21593 test -z "$ac_c_werror_flag" || 21594 test ! -s conftest.err 21595 } && test -s conftest.$ac_objext; then 21596 ac_header_compiler=yes 21597else 21598 echo "$as_me: failed program was:" >&5 21599sed 's/^/| /' conftest.$ac_ext >&5 21600 21601 ac_header_compiler=no 21602fi 21603 21604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21606echo "${ECHO_T}$ac_header_compiler" >&6; } 21607 21608# Is the header present? 21609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21611cat >conftest.$ac_ext <<_ACEOF 21612/* confdefs.h. */ 21613_ACEOF 21614cat confdefs.h >>conftest.$ac_ext 21615cat >>conftest.$ac_ext <<_ACEOF 21616/* end confdefs.h. */ 21617#include <$ac_header> 21618_ACEOF 21619if { (ac_try="$ac_cpp conftest.$ac_ext" 21620case "(($ac_try" in 21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21622 *) ac_try_echo=$ac_try;; 21623esac 21624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21626 ac_status=$? 21627 grep -v '^ *+' conftest.er1 >conftest.err 21628 rm -f conftest.er1 21629 cat conftest.err >&5 21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21631 (exit $ac_status); } >/dev/null && { 21632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21633 test ! -s conftest.err 21634 }; then 21635 ac_header_preproc=yes 21636else 21637 echo "$as_me: failed program was:" >&5 21638sed 's/^/| /' conftest.$ac_ext >&5 21639 21640 ac_header_preproc=no 21641fi 21642 21643rm -f conftest.err conftest.$ac_ext 21644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21645echo "${ECHO_T}$ac_header_preproc" >&6; } 21646 21647# So? What about this header? 21648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21649 yes:no: ) 21650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21654 ac_header_preproc=yes 21655 ;; 21656 no:yes:* ) 21657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21669 21670 ;; 21671esac 21672{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21675 echo $ECHO_N "(cached) $ECHO_C" >&6 21676else 21677 eval "$as_ac_Header=\$ac_header_preproc" 21678fi 21679ac_res=`eval echo '${'$as_ac_Header'}'` 21680 { echo "$as_me:$LINENO: result: $ac_res" >&5 21681echo "${ECHO_T}$ac_res" >&6; } 21682 21683fi 21684if test `eval echo '${'$as_ac_Header'}'` = yes; then 21685 cat >>confdefs.h <<_ACEOF 21686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21687_ACEOF 21688 21689fi 21690 21691done 21692 21693{ echo "$as_me:$LINENO: checking for working chown" >&5 21694echo $ECHO_N "checking for working chown... $ECHO_C" >&6; } 21695if test "${ac_cv_func_chown_works+set}" = set; then 21696 echo $ECHO_N "(cached) $ECHO_C" >&6 21697else 21698 if test "$cross_compiling" = yes; then 21699 ac_cv_func_chown_works=no 21700else 21701 cat >conftest.$ac_ext <<_ACEOF 21702/* confdefs.h. */ 21703_ACEOF 21704cat confdefs.h >>conftest.$ac_ext 21705cat >>conftest.$ac_ext <<_ACEOF 21706/* end confdefs.h. */ 21707$ac_includes_default 21708#include <fcntl.h> 21709 21710int 21711main () 21712{ 21713 char *f = "conftest.chown"; 21714 struct stat before, after; 21715 21716 if (creat (f, 0600) < 0) 21717 return 1; 21718 if (stat (f, &before) < 0) 21719 return 1; 21720 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 21721 return 1; 21722 if (stat (f, &after) < 0) 21723 return 1; 21724 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 21725 21726 ; 21727 return 0; 21728} 21729_ACEOF 21730rm -f conftest$ac_exeext 21731if { (ac_try="$ac_link" 21732case "(($ac_try" in 21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21734 *) ac_try_echo=$ac_try;; 21735esac 21736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21737 (eval "$ac_link") 2>&5 21738 ac_status=$? 21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21741 { (case "(($ac_try" in 21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21743 *) ac_try_echo=$ac_try;; 21744esac 21745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21746 (eval "$ac_try") 2>&5 21747 ac_status=$? 21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21749 (exit $ac_status); }; }; then 21750 ac_cv_func_chown_works=yes 21751else 21752 echo "$as_me: program exited with status $ac_status" >&5 21753echo "$as_me: failed program was:" >&5 21754sed 's/^/| /' conftest.$ac_ext >&5 21755 21756( exit $ac_status ) 21757ac_cv_func_chown_works=no 21758fi 21759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21760fi 21761 21762 21763rm -f conftest.chown 21764 21765fi 21766{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 21767echo "${ECHO_T}$ac_cv_func_chown_works" >&6; } 21768if test $ac_cv_func_chown_works = yes; then 21769 21770cat >>confdefs.h <<\_ACEOF 21771#define HAVE_CHOWN 1 21772_ACEOF 21773 21774fi 21775 21776 21777for ac_header in stdlib.h 21778do 21779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21781 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21784 echo $ECHO_N "(cached) $ECHO_C" >&6 21785fi 21786ac_res=`eval echo '${'$as_ac_Header'}'` 21787 { echo "$as_me:$LINENO: result: $ac_res" >&5 21788echo "${ECHO_T}$ac_res" >&6; } 21789else 21790 # Is the header compilable? 21791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21793cat >conftest.$ac_ext <<_ACEOF 21794/* confdefs.h. */ 21795_ACEOF 21796cat confdefs.h >>conftest.$ac_ext 21797cat >>conftest.$ac_ext <<_ACEOF 21798/* end confdefs.h. */ 21799$ac_includes_default 21800#include <$ac_header> 21801_ACEOF 21802rm -f conftest.$ac_objext 21803if { (ac_try="$ac_compile" 21804case "(($ac_try" in 21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21806 *) ac_try_echo=$ac_try;; 21807esac 21808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21809 (eval "$ac_compile") 2>conftest.er1 21810 ac_status=$? 21811 grep -v '^ *+' conftest.er1 >conftest.err 21812 rm -f conftest.er1 21813 cat conftest.err >&5 21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21815 (exit $ac_status); } && { 21816 test -z "$ac_c_werror_flag" || 21817 test ! -s conftest.err 21818 } && test -s conftest.$ac_objext; then 21819 ac_header_compiler=yes 21820else 21821 echo "$as_me: failed program was:" >&5 21822sed 's/^/| /' conftest.$ac_ext >&5 21823 21824 ac_header_compiler=no 21825fi 21826 21827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21829echo "${ECHO_T}$ac_header_compiler" >&6; } 21830 21831# Is the header present? 21832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21834cat >conftest.$ac_ext <<_ACEOF 21835/* confdefs.h. */ 21836_ACEOF 21837cat confdefs.h >>conftest.$ac_ext 21838cat >>conftest.$ac_ext <<_ACEOF 21839/* end confdefs.h. */ 21840#include <$ac_header> 21841_ACEOF 21842if { (ac_try="$ac_cpp conftest.$ac_ext" 21843case "(($ac_try" in 21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21845 *) ac_try_echo=$ac_try;; 21846esac 21847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21849 ac_status=$? 21850 grep -v '^ *+' conftest.er1 >conftest.err 21851 rm -f conftest.er1 21852 cat conftest.err >&5 21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21854 (exit $ac_status); } >/dev/null && { 21855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21856 test ! -s conftest.err 21857 }; then 21858 ac_header_preproc=yes 21859else 21860 echo "$as_me: failed program was:" >&5 21861sed 's/^/| /' conftest.$ac_ext >&5 21862 21863 ac_header_preproc=no 21864fi 21865 21866rm -f conftest.err conftest.$ac_ext 21867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21868echo "${ECHO_T}$ac_header_preproc" >&6; } 21869 21870# So? What about this header? 21871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21872 yes:no: ) 21873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21877 ac_header_preproc=yes 21878 ;; 21879 no:yes:* ) 21880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21892 21893 ;; 21894esac 21895{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21898 echo $ECHO_N "(cached) $ECHO_C" >&6 21899else 21900 eval "$as_ac_Header=\$ac_header_preproc" 21901fi 21902ac_res=`eval echo '${'$as_ac_Header'}'` 21903 { echo "$as_me:$LINENO: result: $ac_res" >&5 21904echo "${ECHO_T}$ac_res" >&6; } 21905 21906fi 21907if test `eval echo '${'$as_ac_Header'}'` = yes; then 21908 cat >>confdefs.h <<_ACEOF 21909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21910_ACEOF 21911 21912fi 21913 21914done 21915 21916{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 21917echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 21918if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 21919 echo $ECHO_N "(cached) $ECHO_C" >&6 21920else 21921 if test "$cross_compiling" = yes; then 21922 ac_cv_func_malloc_0_nonnull=no 21923else 21924 cat >conftest.$ac_ext <<_ACEOF 21925/* confdefs.h. */ 21926_ACEOF 21927cat confdefs.h >>conftest.$ac_ext 21928cat >>conftest.$ac_ext <<_ACEOF 21929/* end confdefs.h. */ 21930#if defined STDC_HEADERS || defined HAVE_STDLIB_H 21931# include <stdlib.h> 21932#else 21933char *malloc (); 21934#endif 21935 21936int 21937main () 21938{ 21939return ! malloc (0); 21940 ; 21941 return 0; 21942} 21943_ACEOF 21944rm -f conftest$ac_exeext 21945if { (ac_try="$ac_link" 21946case "(($ac_try" in 21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21948 *) ac_try_echo=$ac_try;; 21949esac 21950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21951 (eval "$ac_link") 2>&5 21952 ac_status=$? 21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21955 { (case "(($ac_try" in 21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21957 *) ac_try_echo=$ac_try;; 21958esac 21959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21960 (eval "$ac_try") 2>&5 21961 ac_status=$? 21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21963 (exit $ac_status); }; }; then 21964 ac_cv_func_malloc_0_nonnull=yes 21965else 21966 echo "$as_me: program exited with status $ac_status" >&5 21967echo "$as_me: failed program was:" >&5 21968sed 's/^/| /' conftest.$ac_ext >&5 21969 21970( exit $ac_status ) 21971ac_cv_func_malloc_0_nonnull=no 21972fi 21973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21974fi 21975 21976 21977fi 21978{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 21979echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 21980if test $ac_cv_func_malloc_0_nonnull = yes; then 21981 21982cat >>confdefs.h <<\_ACEOF 21983#define HAVE_MALLOC 1 21984_ACEOF 21985 21986else 21987 cat >>confdefs.h <<\_ACEOF 21988#define HAVE_MALLOC 0 21989_ACEOF 21990 21991 case " $LIBOBJS " in 21992 *" malloc.$ac_objext "* ) ;; 21993 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 21994 ;; 21995esac 21996 21997 21998cat >>confdefs.h <<\_ACEOF 21999#define malloc rpl_malloc 22000_ACEOF 22001 22002fi 22003 22004 22005 22006 22007 22008 22009 22010for ac_header in $ac_header_list 22011do 22012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22014 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22017 echo $ECHO_N "(cached) $ECHO_C" >&6 22018fi 22019ac_res=`eval echo '${'$as_ac_Header'}'` 22020 { echo "$as_me:$LINENO: result: $ac_res" >&5 22021echo "${ECHO_T}$ac_res" >&6; } 22022else 22023 # Is the header compilable? 22024{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22026cat >conftest.$ac_ext <<_ACEOF 22027/* confdefs.h. */ 22028_ACEOF 22029cat confdefs.h >>conftest.$ac_ext 22030cat >>conftest.$ac_ext <<_ACEOF 22031/* end confdefs.h. */ 22032$ac_includes_default 22033#include <$ac_header> 22034_ACEOF 22035rm -f conftest.$ac_objext 22036if { (ac_try="$ac_compile" 22037case "(($ac_try" in 22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22039 *) ac_try_echo=$ac_try;; 22040esac 22041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22042 (eval "$ac_compile") 2>conftest.er1 22043 ac_status=$? 22044 grep -v '^ *+' conftest.er1 >conftest.err 22045 rm -f conftest.er1 22046 cat conftest.err >&5 22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22048 (exit $ac_status); } && { 22049 test -z "$ac_c_werror_flag" || 22050 test ! -s conftest.err 22051 } && test -s conftest.$ac_objext; then 22052 ac_header_compiler=yes 22053else 22054 echo "$as_me: failed program was:" >&5 22055sed 's/^/| /' conftest.$ac_ext >&5 22056 22057 ac_header_compiler=no 22058fi 22059 22060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22062echo "${ECHO_T}$ac_header_compiler" >&6; } 22063 22064# Is the header present? 22065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22067cat >conftest.$ac_ext <<_ACEOF 22068/* confdefs.h. */ 22069_ACEOF 22070cat confdefs.h >>conftest.$ac_ext 22071cat >>conftest.$ac_ext <<_ACEOF 22072/* end confdefs.h. */ 22073#include <$ac_header> 22074_ACEOF 22075if { (ac_try="$ac_cpp conftest.$ac_ext" 22076case "(($ac_try" in 22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22078 *) ac_try_echo=$ac_try;; 22079esac 22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22082 ac_status=$? 22083 grep -v '^ *+' conftest.er1 >conftest.err 22084 rm -f conftest.er1 22085 cat conftest.err >&5 22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22087 (exit $ac_status); } >/dev/null && { 22088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22089 test ! -s conftest.err 22090 }; then 22091 ac_header_preproc=yes 22092else 22093 echo "$as_me: failed program was:" >&5 22094sed 's/^/| /' conftest.$ac_ext >&5 22095 22096 ac_header_preproc=no 22097fi 22098 22099rm -f conftest.err conftest.$ac_ext 22100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22101echo "${ECHO_T}$ac_header_preproc" >&6; } 22102 22103# So? What about this header? 22104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22105 yes:no: ) 22106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22110 ac_header_preproc=yes 22111 ;; 22112 no:yes:* ) 22113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22125 22126 ;; 22127esac 22128{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22131 echo $ECHO_N "(cached) $ECHO_C" >&6 22132else 22133 eval "$as_ac_Header=\$ac_header_preproc" 22134fi 22135ac_res=`eval echo '${'$as_ac_Header'}'` 22136 { echo "$as_me:$LINENO: result: $ac_res" >&5 22137echo "${ECHO_T}$ac_res" >&6; } 22138 22139fi 22140if test `eval echo '${'$as_ac_Header'}'` = yes; then 22141 cat >>confdefs.h <<_ACEOF 22142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22143_ACEOF 22144 22145fi 22146 22147done 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157for ac_func in $ac_func_list 22158do 22159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22160{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22163 echo $ECHO_N "(cached) $ECHO_C" >&6 22164else 22165 cat >conftest.$ac_ext <<_ACEOF 22166/* confdefs.h. */ 22167_ACEOF 22168cat confdefs.h >>conftest.$ac_ext 22169cat >>conftest.$ac_ext <<_ACEOF 22170/* end confdefs.h. */ 22171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22172 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22173#define $ac_func innocuous_$ac_func 22174 22175/* System header to define __stub macros and hopefully few prototypes, 22176 which can conflict with char $ac_func (); below. 22177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22178 <limits.h> exists even on freestanding compilers. */ 22179 22180#ifdef __STDC__ 22181# include <limits.h> 22182#else 22183# include <assert.h> 22184#endif 22185 22186#undef $ac_func 22187 22188/* Override any GCC internal prototype to avoid an error. 22189 Use char because int might match the return type of a GCC 22190 builtin and then its argument prototype would still apply. */ 22191#ifdef __cplusplus 22192extern "C" 22193#endif 22194char $ac_func (); 22195/* The GNU C library defines this for functions which it implements 22196 to always fail with ENOSYS. Some functions are actually named 22197 something starting with __ and the normal name is an alias. */ 22198#if defined __stub_$ac_func || defined __stub___$ac_func 22199choke me 22200#endif 22201 22202int 22203main () 22204{ 22205return $ac_func (); 22206 ; 22207 return 0; 22208} 22209_ACEOF 22210rm -f conftest.$ac_objext conftest$ac_exeext 22211if { (ac_try="$ac_link" 22212case "(($ac_try" in 22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22214 *) ac_try_echo=$ac_try;; 22215esac 22216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22217 (eval "$ac_link") 2>conftest.er1 22218 ac_status=$? 22219 grep -v '^ *+' conftest.er1 >conftest.err 22220 rm -f conftest.er1 22221 cat conftest.err >&5 22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22223 (exit $ac_status); } && { 22224 test -z "$ac_c_werror_flag" || 22225 test ! -s conftest.err 22226 } && test -s conftest$ac_exeext && 22227 $as_test_x conftest$ac_exeext; then 22228 eval "$as_ac_var=yes" 22229else 22230 echo "$as_me: failed program was:" >&5 22231sed 's/^/| /' conftest.$ac_ext >&5 22232 22233 eval "$as_ac_var=no" 22234fi 22235 22236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22237 conftest$ac_exeext conftest.$ac_ext 22238fi 22239ac_res=`eval echo '${'$as_ac_var'}'` 22240 { echo "$as_me:$LINENO: result: $ac_res" >&5 22241echo "${ECHO_T}$ac_res" >&6; } 22242if test `eval echo '${'$as_ac_var'}'` = yes; then 22243 cat >>confdefs.h <<_ACEOF 22244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22245_ACEOF 22246 22247fi 22248done 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266{ echo "$as_me:$LINENO: checking for working mktime" >&5 22267echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } 22268if test "${ac_cv_func_working_mktime+set}" = set; then 22269 echo $ECHO_N "(cached) $ECHO_C" >&6 22270else 22271 if test "$cross_compiling" = yes; then 22272 ac_cv_func_working_mktime=no 22273else 22274 cat >conftest.$ac_ext <<_ACEOF 22275/* confdefs.h. */ 22276_ACEOF 22277cat confdefs.h >>conftest.$ac_ext 22278cat >>conftest.$ac_ext <<_ACEOF 22279/* end confdefs.h. */ 22280/* Test program from Paul Eggert and Tony Leneis. */ 22281#ifdef TIME_WITH_SYS_TIME 22282# include <sys/time.h> 22283# include <time.h> 22284#else 22285# ifdef HAVE_SYS_TIME_H 22286# include <sys/time.h> 22287# else 22288# include <time.h> 22289# endif 22290#endif 22291 22292#include <stdlib.h> 22293 22294#ifdef HAVE_UNISTD_H 22295# include <unistd.h> 22296#endif 22297 22298#ifndef HAVE_ALARM 22299# define alarm(X) /* empty */ 22300#endif 22301 22302/* Work around redefinition to rpl_putenv by other config tests. */ 22303#undef putenv 22304 22305static time_t time_t_max; 22306static time_t time_t_min; 22307 22308/* Values we'll use to set the TZ environment variable. */ 22309static char *tz_strings[] = { 22310 (char *) 0, "TZ=GMT0", "TZ=JST-9", 22311 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 22312}; 22313#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 22314 22315/* Return 0 if mktime fails to convert a date in the spring-forward gap. 22316 Based on a problem report from Andreas Jaeger. */ 22317static int 22318spring_forward_gap () 22319{ 22320 /* glibc (up to about 1998-10-07) failed this test. */ 22321 struct tm tm; 22322 22323 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 22324 instead of "TZ=America/Vancouver" in order to detect the bug even 22325 on systems that don't support the Olson extension, or don't have the 22326 full zoneinfo tables installed. */ 22327 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 22328 22329 tm.tm_year = 98; 22330 tm.tm_mon = 3; 22331 tm.tm_mday = 5; 22332 tm.tm_hour = 2; 22333 tm.tm_min = 0; 22334 tm.tm_sec = 0; 22335 tm.tm_isdst = -1; 22336 return mktime (&tm) != (time_t) -1; 22337} 22338 22339static int 22340mktime_test1 (now) 22341 time_t now; 22342{ 22343 struct tm *lt; 22344 return ! (lt = localtime (&now)) || mktime (lt) == now; 22345} 22346 22347static int 22348mktime_test (now) 22349 time_t now; 22350{ 22351 return (mktime_test1 (now) 22352 && mktime_test1 ((time_t) (time_t_max - now)) 22353 && mktime_test1 ((time_t) (time_t_min + now))); 22354} 22355 22356static int 22357irix_6_4_bug () 22358{ 22359 /* Based on code from Ariel Faigon. */ 22360 struct tm tm; 22361 tm.tm_year = 96; 22362 tm.tm_mon = 3; 22363 tm.tm_mday = 0; 22364 tm.tm_hour = 0; 22365 tm.tm_min = 0; 22366 tm.tm_sec = 0; 22367 tm.tm_isdst = -1; 22368 mktime (&tm); 22369 return tm.tm_mon == 2 && tm.tm_mday == 31; 22370} 22371 22372static int 22373bigtime_test (j) 22374 int j; 22375{ 22376 struct tm tm; 22377 time_t now; 22378 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 22379 now = mktime (&tm); 22380 if (now != (time_t) -1) 22381 { 22382 struct tm *lt = localtime (&now); 22383 if (! (lt 22384 && lt->tm_year == tm.tm_year 22385 && lt->tm_mon == tm.tm_mon 22386 && lt->tm_mday == tm.tm_mday 22387 && lt->tm_hour == tm.tm_hour 22388 && lt->tm_min == tm.tm_min 22389 && lt->tm_sec == tm.tm_sec 22390 && lt->tm_yday == tm.tm_yday 22391 && lt->tm_wday == tm.tm_wday 22392 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 22393 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 22394 return 0; 22395 } 22396 return 1; 22397} 22398 22399static int 22400year_2050_test () 22401{ 22402 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 22403 ignoring leap seconds. */ 22404 unsigned long int answer = 2527315200UL; 22405 22406 struct tm tm; 22407 time_t t; 22408 tm.tm_year = 2050 - 1900; 22409 tm.tm_mon = 2 - 1; 22410 tm.tm_mday = 1; 22411 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 22412 tm.tm_isdst = -1; 22413 22414 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 22415 instead of "TZ=America/Vancouver" in order to detect the bug even 22416 on systems that don't support the Olson extension, or don't have the 22417 full zoneinfo tables installed. */ 22418 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 22419 22420 t = mktime (&tm); 22421 22422 /* Check that the result is either a failure, or close enough 22423 to the correct answer that we can assume the discrepancy is 22424 due to leap seconds. */ 22425 return (t == (time_t) -1 22426 || (0 < t && answer - 120 <= t && t <= answer + 120)); 22427} 22428 22429int 22430main () 22431{ 22432 time_t t, delta; 22433 int i, j; 22434 22435 /* This test makes some buggy mktime implementations loop. 22436 Give up after 60 seconds; a mktime slower than that 22437 isn't worth using anyway. */ 22438 alarm (60); 22439 22440 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 22441 continue; 22442 time_t_max--; 22443 if ((time_t) -1 < 0) 22444 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) 22445 continue; 22446 delta = time_t_max / 997; /* a suitable prime number */ 22447 for (i = 0; i < N_STRINGS; i++) 22448 { 22449 if (tz_strings[i]) 22450 putenv (tz_strings[i]); 22451 22452 for (t = 0; t <= time_t_max - delta; t += delta) 22453 if (! mktime_test (t)) 22454 return 1; 22455 if (! (mktime_test ((time_t) 1) 22456 && mktime_test ((time_t) (60 * 60)) 22457 && mktime_test ((time_t) (60 * 60 * 24)))) 22458 return 1; 22459 22460 for (j = 1; 0 < j; j *= 2) 22461 if (! bigtime_test (j)) 22462 return 1; 22463 if (! bigtime_test (j - 1)) 22464 return 1; 22465 } 22466 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 22467} 22468_ACEOF 22469rm -f conftest$ac_exeext 22470if { (ac_try="$ac_link" 22471case "(($ac_try" in 22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22473 *) ac_try_echo=$ac_try;; 22474esac 22475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22476 (eval "$ac_link") 2>&5 22477 ac_status=$? 22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22480 { (case "(($ac_try" in 22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22482 *) ac_try_echo=$ac_try;; 22483esac 22484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22485 (eval "$ac_try") 2>&5 22486 ac_status=$? 22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22488 (exit $ac_status); }; }; then 22489 ac_cv_func_working_mktime=yes 22490else 22491 echo "$as_me: program exited with status $ac_status" >&5 22492echo "$as_me: failed program was:" >&5 22493sed 's/^/| /' conftest.$ac_ext >&5 22494 22495( exit $ac_status ) 22496ac_cv_func_working_mktime=no 22497fi 22498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22499fi 22500 22501 22502fi 22503{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 22504echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } 22505if test $ac_cv_func_working_mktime = no; then 22506 case " $LIBOBJS " in 22507 *" mktime.$ac_objext "* ) ;; 22508 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 22509 ;; 22510esac 22511 22512fi 22513 22514 22515for ac_header in stdlib.h 22516do 22517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22519 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22522 echo $ECHO_N "(cached) $ECHO_C" >&6 22523fi 22524ac_res=`eval echo '${'$as_ac_Header'}'` 22525 { echo "$as_me:$LINENO: result: $ac_res" >&5 22526echo "${ECHO_T}$ac_res" >&6; } 22527else 22528 # Is the header compilable? 22529{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22531cat >conftest.$ac_ext <<_ACEOF 22532/* confdefs.h. */ 22533_ACEOF 22534cat confdefs.h >>conftest.$ac_ext 22535cat >>conftest.$ac_ext <<_ACEOF 22536/* end confdefs.h. */ 22537$ac_includes_default 22538#include <$ac_header> 22539_ACEOF 22540rm -f conftest.$ac_objext 22541if { (ac_try="$ac_compile" 22542case "(($ac_try" in 22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22544 *) ac_try_echo=$ac_try;; 22545esac 22546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22547 (eval "$ac_compile") 2>conftest.er1 22548 ac_status=$? 22549 grep -v '^ *+' conftest.er1 >conftest.err 22550 rm -f conftest.er1 22551 cat conftest.err >&5 22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22553 (exit $ac_status); } && { 22554 test -z "$ac_c_werror_flag" || 22555 test ! -s conftest.err 22556 } && test -s conftest.$ac_objext; then 22557 ac_header_compiler=yes 22558else 22559 echo "$as_me: failed program was:" >&5 22560sed 's/^/| /' conftest.$ac_ext >&5 22561 22562 ac_header_compiler=no 22563fi 22564 22565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22567echo "${ECHO_T}$ac_header_compiler" >&6; } 22568 22569# Is the header present? 22570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22572cat >conftest.$ac_ext <<_ACEOF 22573/* confdefs.h. */ 22574_ACEOF 22575cat confdefs.h >>conftest.$ac_ext 22576cat >>conftest.$ac_ext <<_ACEOF 22577/* end confdefs.h. */ 22578#include <$ac_header> 22579_ACEOF 22580if { (ac_try="$ac_cpp conftest.$ac_ext" 22581case "(($ac_try" in 22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22583 *) ac_try_echo=$ac_try;; 22584esac 22585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22587 ac_status=$? 22588 grep -v '^ *+' conftest.er1 >conftest.err 22589 rm -f conftest.er1 22590 cat conftest.err >&5 22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22592 (exit $ac_status); } >/dev/null && { 22593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22594 test ! -s conftest.err 22595 }; then 22596 ac_header_preproc=yes 22597else 22598 echo "$as_me: failed program was:" >&5 22599sed 's/^/| /' conftest.$ac_ext >&5 22600 22601 ac_header_preproc=no 22602fi 22603 22604rm -f conftest.err conftest.$ac_ext 22605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22606echo "${ECHO_T}$ac_header_preproc" >&6; } 22607 22608# So? What about this header? 22609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22610 yes:no: ) 22611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22615 ac_header_preproc=yes 22616 ;; 22617 no:yes:* ) 22618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22630 22631 ;; 22632esac 22633{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22636 echo $ECHO_N "(cached) $ECHO_C" >&6 22637else 22638 eval "$as_ac_Header=\$ac_header_preproc" 22639fi 22640ac_res=`eval echo '${'$as_ac_Header'}'` 22641 { echo "$as_me:$LINENO: result: $ac_res" >&5 22642echo "${ECHO_T}$ac_res" >&6; } 22643 22644fi 22645if test `eval echo '${'$as_ac_Header'}'` = yes; then 22646 cat >>confdefs.h <<_ACEOF 22647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22648_ACEOF 22649 22650fi 22651 22652done 22653 22654{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 22655echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } 22656if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 22657 echo $ECHO_N "(cached) $ECHO_C" >&6 22658else 22659 if test "$cross_compiling" = yes; then 22660 ac_cv_func_realloc_0_nonnull=no 22661else 22662 cat >conftest.$ac_ext <<_ACEOF 22663/* confdefs.h. */ 22664_ACEOF 22665cat confdefs.h >>conftest.$ac_ext 22666cat >>conftest.$ac_ext <<_ACEOF 22667/* end confdefs.h. */ 22668#if defined STDC_HEADERS || defined HAVE_STDLIB_H 22669# include <stdlib.h> 22670#else 22671char *realloc (); 22672#endif 22673 22674int 22675main () 22676{ 22677return ! realloc (0, 0); 22678 ; 22679 return 0; 22680} 22681_ACEOF 22682rm -f conftest$ac_exeext 22683if { (ac_try="$ac_link" 22684case "(($ac_try" in 22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22686 *) ac_try_echo=$ac_try;; 22687esac 22688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22689 (eval "$ac_link") 2>&5 22690 ac_status=$? 22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22693 { (case "(($ac_try" in 22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22695 *) ac_try_echo=$ac_try;; 22696esac 22697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22698 (eval "$ac_try") 2>&5 22699 ac_status=$? 22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22701 (exit $ac_status); }; }; then 22702 ac_cv_func_realloc_0_nonnull=yes 22703else 22704 echo "$as_me: program exited with status $ac_status" >&5 22705echo "$as_me: failed program was:" >&5 22706sed 's/^/| /' conftest.$ac_ext >&5 22707 22708( exit $ac_status ) 22709ac_cv_func_realloc_0_nonnull=no 22710fi 22711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22712fi 22713 22714 22715fi 22716{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 22717echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } 22718if test $ac_cv_func_realloc_0_nonnull = yes; then 22719 22720cat >>confdefs.h <<\_ACEOF 22721#define HAVE_REALLOC 1 22722_ACEOF 22723 22724else 22725 cat >>confdefs.h <<\_ACEOF 22726#define HAVE_REALLOC 0 22727_ACEOF 22728 22729 case " $LIBOBJS " in 22730 *" realloc.$ac_objext "* ) ;; 22731 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 22732 ;; 22733esac 22734 22735 22736cat >>confdefs.h <<\_ACEOF 22737#define realloc rpl_realloc 22738_ACEOF 22739 22740fi 22741 22742 22743 22744 22745 22746for ac_header in sys/select.h sys/socket.h 22747do 22748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22750 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22753 echo $ECHO_N "(cached) $ECHO_C" >&6 22754fi 22755ac_res=`eval echo '${'$as_ac_Header'}'` 22756 { echo "$as_me:$LINENO: result: $ac_res" >&5 22757echo "${ECHO_T}$ac_res" >&6; } 22758else 22759 # Is the header compilable? 22760{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22762cat >conftest.$ac_ext <<_ACEOF 22763/* confdefs.h. */ 22764_ACEOF 22765cat confdefs.h >>conftest.$ac_ext 22766cat >>conftest.$ac_ext <<_ACEOF 22767/* end confdefs.h. */ 22768$ac_includes_default 22769#include <$ac_header> 22770_ACEOF 22771rm -f conftest.$ac_objext 22772if { (ac_try="$ac_compile" 22773case "(($ac_try" in 22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22775 *) ac_try_echo=$ac_try;; 22776esac 22777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22778 (eval "$ac_compile") 2>conftest.er1 22779 ac_status=$? 22780 grep -v '^ *+' conftest.er1 >conftest.err 22781 rm -f conftest.er1 22782 cat conftest.err >&5 22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22784 (exit $ac_status); } && { 22785 test -z "$ac_c_werror_flag" || 22786 test ! -s conftest.err 22787 } && test -s conftest.$ac_objext; then 22788 ac_header_compiler=yes 22789else 22790 echo "$as_me: failed program was:" >&5 22791sed 's/^/| /' conftest.$ac_ext >&5 22792 22793 ac_header_compiler=no 22794fi 22795 22796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22798echo "${ECHO_T}$ac_header_compiler" >&6; } 22799 22800# Is the header present? 22801{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22803cat >conftest.$ac_ext <<_ACEOF 22804/* confdefs.h. */ 22805_ACEOF 22806cat confdefs.h >>conftest.$ac_ext 22807cat >>conftest.$ac_ext <<_ACEOF 22808/* end confdefs.h. */ 22809#include <$ac_header> 22810_ACEOF 22811if { (ac_try="$ac_cpp conftest.$ac_ext" 22812case "(($ac_try" in 22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22814 *) ac_try_echo=$ac_try;; 22815esac 22816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22818 ac_status=$? 22819 grep -v '^ *+' conftest.er1 >conftest.err 22820 rm -f conftest.er1 22821 cat conftest.err >&5 22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22823 (exit $ac_status); } >/dev/null && { 22824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22825 test ! -s conftest.err 22826 }; then 22827 ac_header_preproc=yes 22828else 22829 echo "$as_me: failed program was:" >&5 22830sed 's/^/| /' conftest.$ac_ext >&5 22831 22832 ac_header_preproc=no 22833fi 22834 22835rm -f conftest.err conftest.$ac_ext 22836{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22837echo "${ECHO_T}$ac_header_preproc" >&6; } 22838 22839# So? What about this header? 22840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22841 yes:no: ) 22842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22846 ac_header_preproc=yes 22847 ;; 22848 no:yes:* ) 22849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22861 22862 ;; 22863esac 22864{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22867 echo $ECHO_N "(cached) $ECHO_C" >&6 22868else 22869 eval "$as_ac_Header=\$ac_header_preproc" 22870fi 22871ac_res=`eval echo '${'$as_ac_Header'}'` 22872 { echo "$as_me:$LINENO: result: $ac_res" >&5 22873echo "${ECHO_T}$ac_res" >&6; } 22874 22875fi 22876if test `eval echo '${'$as_ac_Header'}'` = yes; then 22877 cat >>confdefs.h <<_ACEOF 22878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22879_ACEOF 22880 22881fi 22882 22883done 22884 22885{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 22886echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 22887if test "${ac_cv_func_select_args+set}" = set; then 22888 echo $ECHO_N "(cached) $ECHO_C" >&6 22889else 22890 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 22891 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 22892 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 22893 cat >conftest.$ac_ext <<_ACEOF 22894/* confdefs.h. */ 22895_ACEOF 22896cat confdefs.h >>conftest.$ac_ext 22897cat >>conftest.$ac_ext <<_ACEOF 22898/* end confdefs.h. */ 22899$ac_includes_default 22900#ifdef HAVE_SYS_SELECT_H 22901# include <sys/select.h> 22902#endif 22903#ifdef HAVE_SYS_SOCKET_H 22904# include <sys/socket.h> 22905#endif 22906 22907int 22908main () 22909{ 22910extern int select ($ac_arg1, 22911 $ac_arg234, $ac_arg234, $ac_arg234, 22912 $ac_arg5); 22913 ; 22914 return 0; 22915} 22916_ACEOF 22917rm -f conftest.$ac_objext 22918if { (ac_try="$ac_compile" 22919case "(($ac_try" in 22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22921 *) ac_try_echo=$ac_try;; 22922esac 22923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22924 (eval "$ac_compile") 2>conftest.er1 22925 ac_status=$? 22926 grep -v '^ *+' conftest.er1 >conftest.err 22927 rm -f conftest.er1 22928 cat conftest.err >&5 22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22930 (exit $ac_status); } && { 22931 test -z "$ac_c_werror_flag" || 22932 test ! -s conftest.err 22933 } && test -s conftest.$ac_objext; then 22934 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 22935else 22936 echo "$as_me: failed program was:" >&5 22937sed 's/^/| /' conftest.$ac_ext >&5 22938 22939 22940fi 22941 22942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22943 done 22944 done 22945done 22946# Provide a safe default value. 22947: ${ac_cv_func_select_args='int,int *,struct timeval *'} 22948 22949fi 22950{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 22951echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 22952ac_save_IFS=$IFS; IFS=',' 22953set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 22954IFS=$ac_save_IFS 22955shift 22956 22957cat >>confdefs.h <<_ACEOF 22958#define SELECT_TYPE_ARG1 $1 22959_ACEOF 22960 22961 22962cat >>confdefs.h <<_ACEOF 22963#define SELECT_TYPE_ARG234 ($2) 22964_ACEOF 22965 22966 22967cat >>confdefs.h <<_ACEOF 22968#define SELECT_TYPE_ARG5 ($3) 22969_ACEOF 22970 22971rm -f conftest* 22972 22973 22974for ac_func in strftime 22975do 22976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22977{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22980 echo $ECHO_N "(cached) $ECHO_C" >&6 22981else 22982 cat >conftest.$ac_ext <<_ACEOF 22983/* confdefs.h. */ 22984_ACEOF 22985cat confdefs.h >>conftest.$ac_ext 22986cat >>conftest.$ac_ext <<_ACEOF 22987/* end confdefs.h. */ 22988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22990#define $ac_func innocuous_$ac_func 22991 22992/* System header to define __stub macros and hopefully few prototypes, 22993 which can conflict with char $ac_func (); below. 22994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22995 <limits.h> exists even on freestanding compilers. */ 22996 22997#ifdef __STDC__ 22998# include <limits.h> 22999#else 23000# include <assert.h> 23001#endif 23002 23003#undef $ac_func 23004 23005/* Override any GCC internal prototype to avoid an error. 23006 Use char because int might match the return type of a GCC 23007 builtin and then its argument prototype would still apply. */ 23008#ifdef __cplusplus 23009extern "C" 23010#endif 23011char $ac_func (); 23012/* The GNU C library defines this for functions which it implements 23013 to always fail with ENOSYS. Some functions are actually named 23014 something starting with __ and the normal name is an alias. */ 23015#if defined __stub_$ac_func || defined __stub___$ac_func 23016choke me 23017#endif 23018 23019int 23020main () 23021{ 23022return $ac_func (); 23023 ; 23024 return 0; 23025} 23026_ACEOF 23027rm -f conftest.$ac_objext conftest$ac_exeext 23028if { (ac_try="$ac_link" 23029case "(($ac_try" in 23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23031 *) ac_try_echo=$ac_try;; 23032esac 23033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23034 (eval "$ac_link") 2>conftest.er1 23035 ac_status=$? 23036 grep -v '^ *+' conftest.er1 >conftest.err 23037 rm -f conftest.er1 23038 cat conftest.err >&5 23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23040 (exit $ac_status); } && { 23041 test -z "$ac_c_werror_flag" || 23042 test ! -s conftest.err 23043 } && test -s conftest$ac_exeext && 23044 $as_test_x conftest$ac_exeext; then 23045 eval "$as_ac_var=yes" 23046else 23047 echo "$as_me: failed program was:" >&5 23048sed 's/^/| /' conftest.$ac_ext >&5 23049 23050 eval "$as_ac_var=no" 23051fi 23052 23053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23054 conftest$ac_exeext conftest.$ac_ext 23055fi 23056ac_res=`eval echo '${'$as_ac_var'}'` 23057 { echo "$as_me:$LINENO: result: $ac_res" >&5 23058echo "${ECHO_T}$ac_res" >&6; } 23059if test `eval echo '${'$as_ac_var'}'` = yes; then 23060 cat >>confdefs.h <<_ACEOF 23061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23062_ACEOF 23063 23064else 23065 # strftime is in -lintl on SCO UNIX. 23066{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 23067echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 23068if test "${ac_cv_lib_intl_strftime+set}" = set; then 23069 echo $ECHO_N "(cached) $ECHO_C" >&6 23070else 23071 ac_check_lib_save_LIBS=$LIBS 23072LIBS="-lintl $LIBS" 23073cat >conftest.$ac_ext <<_ACEOF 23074/* confdefs.h. */ 23075_ACEOF 23076cat confdefs.h >>conftest.$ac_ext 23077cat >>conftest.$ac_ext <<_ACEOF 23078/* end confdefs.h. */ 23079 23080/* Override any GCC internal prototype to avoid an error. 23081 Use char because int might match the return type of a GCC 23082 builtin and then its argument prototype would still apply. */ 23083#ifdef __cplusplus 23084extern "C" 23085#endif 23086char strftime (); 23087int 23088main () 23089{ 23090return strftime (); 23091 ; 23092 return 0; 23093} 23094_ACEOF 23095rm -f conftest.$ac_objext conftest$ac_exeext 23096if { (ac_try="$ac_link" 23097case "(($ac_try" in 23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23099 *) ac_try_echo=$ac_try;; 23100esac 23101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23102 (eval "$ac_link") 2>conftest.er1 23103 ac_status=$? 23104 grep -v '^ *+' conftest.er1 >conftest.err 23105 rm -f conftest.er1 23106 cat conftest.err >&5 23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23108 (exit $ac_status); } && { 23109 test -z "$ac_c_werror_flag" || 23110 test ! -s conftest.err 23111 } && test -s conftest$ac_exeext && 23112 $as_test_x conftest$ac_exeext; then 23113 ac_cv_lib_intl_strftime=yes 23114else 23115 echo "$as_me: failed program was:" >&5 23116sed 's/^/| /' conftest.$ac_ext >&5 23117 23118 ac_cv_lib_intl_strftime=no 23119fi 23120 23121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23122 conftest$ac_exeext conftest.$ac_ext 23123LIBS=$ac_check_lib_save_LIBS 23124fi 23125{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 23126echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 23127if test $ac_cv_lib_intl_strftime = yes; then 23128 cat >>confdefs.h <<\_ACEOF 23129#define HAVE_STRFTIME 1 23130_ACEOF 23131 23132LIBS="-lintl $LIBS" 23133fi 23134 23135fi 23136done 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 23147echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; } 23148if test "${ac_cv_func_utime_null+set}" = set; then 23149 echo $ECHO_N "(cached) $ECHO_C" >&6 23150else 23151 rm -f conftest.data; >conftest.data 23152# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 23153if test "$cross_compiling" = yes; then 23154 ac_cv_func_utime_null=no 23155else 23156 cat >conftest.$ac_ext <<_ACEOF 23157/* confdefs.h. */ 23158_ACEOF 23159cat confdefs.h >>conftest.$ac_ext 23160cat >>conftest.$ac_ext <<_ACEOF 23161/* end confdefs.h. */ 23162$ac_includes_default 23163 #ifdef HAVE_UTIME_H 23164 # include <utime.h> 23165 #endif 23166int 23167main () 23168{ 23169struct stat s, t; 23170 return ! (stat ("conftest.data", &s) == 0 23171 && utime ("conftest.data", 0) == 0 23172 && stat ("conftest.data", &t) == 0 23173 && t.st_mtime >= s.st_mtime 23174 && t.st_mtime - s.st_mtime < 120); 23175 ; 23176 return 0; 23177} 23178_ACEOF 23179rm -f conftest$ac_exeext 23180if { (ac_try="$ac_link" 23181case "(($ac_try" in 23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23183 *) ac_try_echo=$ac_try;; 23184esac 23185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23186 (eval "$ac_link") 2>&5 23187 ac_status=$? 23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23190 { (case "(($ac_try" in 23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23192 *) ac_try_echo=$ac_try;; 23193esac 23194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23195 (eval "$ac_try") 2>&5 23196 ac_status=$? 23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23198 (exit $ac_status); }; }; then 23199 ac_cv_func_utime_null=yes 23200else 23201 echo "$as_me: program exited with status $ac_status" >&5 23202echo "$as_me: failed program was:" >&5 23203sed 's/^/| /' conftest.$ac_ext >&5 23204 23205( exit $ac_status ) 23206ac_cv_func_utime_null=no 23207fi 23208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23209fi 23210 23211 23212fi 23213{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 23214echo "${ECHO_T}$ac_cv_func_utime_null" >&6; } 23215if test $ac_cv_func_utime_null = yes; then 23216 23217cat >>confdefs.h <<\_ACEOF 23218#define HAVE_UTIME_NULL 1 23219_ACEOF 23220 23221fi 23222rm -f conftest.data 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238for ac_func in ftruncate getpass memmove memset mkdir realpath rmdir select strchr strdup strrchr strstr strtoull utime 23239do 23240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23241{ echo "$as_me:$LINENO: checking for $ac_func" >&5 23242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 23243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23244 echo $ECHO_N "(cached) $ECHO_C" >&6 23245else 23246 cat >conftest.$ac_ext <<_ACEOF 23247/* confdefs.h. */ 23248_ACEOF 23249cat confdefs.h >>conftest.$ac_ext 23250cat >>conftest.$ac_ext <<_ACEOF 23251/* end confdefs.h. */ 23252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23253 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23254#define $ac_func innocuous_$ac_func 23255 23256/* System header to define __stub macros and hopefully few prototypes, 23257 which can conflict with char $ac_func (); below. 23258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23259 <limits.h> exists even on freestanding compilers. */ 23260 23261#ifdef __STDC__ 23262# include <limits.h> 23263#else 23264# include <assert.h> 23265#endif 23266 23267#undef $ac_func 23268 23269/* Override any GCC internal prototype to avoid an error. 23270 Use char because int might match the return type of a GCC 23271 builtin and then its argument prototype would still apply. */ 23272#ifdef __cplusplus 23273extern "C" 23274#endif 23275char $ac_func (); 23276/* The GNU C library defines this for functions which it implements 23277 to always fail with ENOSYS. Some functions are actually named 23278 something starting with __ and the normal name is an alias. */ 23279#if defined __stub_$ac_func || defined __stub___$ac_func 23280choke me 23281#endif 23282 23283int 23284main () 23285{ 23286return $ac_func (); 23287 ; 23288 return 0; 23289} 23290_ACEOF 23291rm -f conftest.$ac_objext conftest$ac_exeext 23292if { (ac_try="$ac_link" 23293case "(($ac_try" in 23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23295 *) ac_try_echo=$ac_try;; 23296esac 23297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23298 (eval "$ac_link") 2>conftest.er1 23299 ac_status=$? 23300 grep -v '^ *+' conftest.er1 >conftest.err 23301 rm -f conftest.er1 23302 cat conftest.err >&5 23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23304 (exit $ac_status); } && { 23305 test -z "$ac_c_werror_flag" || 23306 test ! -s conftest.err 23307 } && test -s conftest$ac_exeext && 23308 $as_test_x conftest$ac_exeext; then 23309 eval "$as_ac_var=yes" 23310else 23311 echo "$as_me: failed program was:" >&5 23312sed 's/^/| /' conftest.$ac_ext >&5 23313 23314 eval "$as_ac_var=no" 23315fi 23316 23317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23318 conftest$ac_exeext conftest.$ac_ext 23319fi 23320ac_res=`eval echo '${'$as_ac_var'}'` 23321 { echo "$as_me:$LINENO: result: $ac_res" >&5 23322echo "${ECHO_T}$ac_res" >&6; } 23323if test `eval echo '${'$as_ac_var'}'` = yes; then 23324 cat >>confdefs.h <<_ACEOF 23325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23326_ACEOF 23327 23328fi 23329done 23330 23331 23332# Check for iconv 23333 23334 23335 23336# Check whether --with-libiconv-prefix was given. 23337if test "${with_libiconv_prefix+set}" = set; then 23338 withval=$with_libiconv_prefix; 23339 for dir in `echo "$withval" | tr : ' '`; do 23340 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi 23341 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi 23342 done 23343 23344fi 23345 23346 23347 { echo "$as_me:$LINENO: checking for iconv" >&5 23348echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 23349if test "${am_cv_func_iconv+set}" = set; then 23350 echo $ECHO_N "(cached) $ECHO_C" >&6 23351else 23352 23353 am_cv_func_iconv="no, consider installing GNU libiconv" 23354 am_cv_lib_iconv=no 23355 cat >conftest.$ac_ext <<_ACEOF 23356/* confdefs.h. */ 23357_ACEOF 23358cat confdefs.h >>conftest.$ac_ext 23359cat >>conftest.$ac_ext <<_ACEOF 23360/* end confdefs.h. */ 23361#include <stdlib.h> 23362#include <iconv.h> 23363int 23364main () 23365{ 23366iconv_t cd = iconv_open("",""); 23367 iconv(cd,NULL,NULL,NULL,NULL); 23368 iconv_close(cd); 23369 ; 23370 return 0; 23371} 23372_ACEOF 23373rm -f conftest.$ac_objext conftest$ac_exeext 23374if { (ac_try="$ac_link" 23375case "(($ac_try" in 23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23377 *) ac_try_echo=$ac_try;; 23378esac 23379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23380 (eval "$ac_link") 2>conftest.er1 23381 ac_status=$? 23382 grep -v '^ *+' conftest.er1 >conftest.err 23383 rm -f conftest.er1 23384 cat conftest.err >&5 23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23386 (exit $ac_status); } && { 23387 test -z "$ac_c_werror_flag" || 23388 test ! -s conftest.err 23389 } && test -s conftest$ac_exeext && 23390 $as_test_x conftest$ac_exeext; then 23391 am_cv_func_iconv=yes 23392else 23393 echo "$as_me: failed program was:" >&5 23394sed 's/^/| /' conftest.$ac_ext >&5 23395 23396 23397fi 23398 23399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23400 conftest$ac_exeext conftest.$ac_ext 23401 if test "$am_cv_func_iconv" != yes; then 23402 am_save_LIBS="$LIBS" 23403 LIBS="$LIBS -liconv" 23404 cat >conftest.$ac_ext <<_ACEOF 23405/* confdefs.h. */ 23406_ACEOF 23407cat confdefs.h >>conftest.$ac_ext 23408cat >>conftest.$ac_ext <<_ACEOF 23409/* end confdefs.h. */ 23410#include <stdlib.h> 23411#include <iconv.h> 23412int 23413main () 23414{ 23415iconv_t cd = iconv_open("",""); 23416 iconv(cd,NULL,NULL,NULL,NULL); 23417 iconv_close(cd); 23418 ; 23419 return 0; 23420} 23421_ACEOF 23422rm -f conftest.$ac_objext conftest$ac_exeext 23423if { (ac_try="$ac_link" 23424case "(($ac_try" in 23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23426 *) ac_try_echo=$ac_try;; 23427esac 23428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23429 (eval "$ac_link") 2>conftest.er1 23430 ac_status=$? 23431 grep -v '^ *+' conftest.er1 >conftest.err 23432 rm -f conftest.er1 23433 cat conftest.err >&5 23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23435 (exit $ac_status); } && { 23436 test -z "$ac_c_werror_flag" || 23437 test ! -s conftest.err 23438 } && test -s conftest$ac_exeext && 23439 $as_test_x conftest$ac_exeext; then 23440 am_cv_lib_iconv=yes 23441 am_cv_func_iconv=yes 23442else 23443 echo "$as_me: failed program was:" >&5 23444sed 's/^/| /' conftest.$ac_ext >&5 23445 23446 23447fi 23448 23449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23450 conftest$ac_exeext conftest.$ac_ext 23451 LIBS="$am_save_LIBS" 23452 fi 23453 23454fi 23455{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 23456echo "${ECHO_T}$am_cv_func_iconv" >&6; } 23457 if test "$am_cv_func_iconv" = yes; then 23458 23459cat >>confdefs.h <<\_ACEOF 23460#define HAVE_ICONV 1 23461_ACEOF 23462 23463 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 23464echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 23465 if test "${am_cv_proto_iconv+set}" = set; then 23466 echo $ECHO_N "(cached) $ECHO_C" >&6 23467else 23468 23469 cat >conftest.$ac_ext <<_ACEOF 23470/* confdefs.h. */ 23471_ACEOF 23472cat confdefs.h >>conftest.$ac_ext 23473cat >>conftest.$ac_ext <<_ACEOF 23474/* end confdefs.h. */ 23475 23476#include <stdlib.h> 23477#include <iconv.h> 23478extern 23479#ifdef __cplusplus 23480"C" 23481#endif 23482#if defined(__STDC__) || defined(__cplusplus) 23483size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 23484#else 23485size_t iconv(); 23486#endif 23487 23488int 23489main () 23490{ 23491 23492 ; 23493 return 0; 23494} 23495_ACEOF 23496rm -f conftest.$ac_objext 23497if { (ac_try="$ac_compile" 23498case "(($ac_try" in 23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23500 *) ac_try_echo=$ac_try;; 23501esac 23502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23503 (eval "$ac_compile") 2>conftest.er1 23504 ac_status=$? 23505 grep -v '^ *+' conftest.er1 >conftest.err 23506 rm -f conftest.er1 23507 cat conftest.err >&5 23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23509 (exit $ac_status); } && { 23510 test -z "$ac_c_werror_flag" || 23511 test ! -s conftest.err 23512 } && test -s conftest.$ac_objext; then 23513 am_cv_proto_iconv_arg1="" 23514else 23515 echo "$as_me: failed program was:" >&5 23516sed 's/^/| /' conftest.$ac_ext >&5 23517 23518 am_cv_proto_iconv_arg1="const" 23519fi 23520 23521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23522 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 23523fi 23524 23525 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 23526 { echo "$as_me:$LINENO: result: ${ac_t:- 23527 }$am_cv_proto_iconv" >&5 23528echo "${ECHO_T}${ac_t:- 23529 }$am_cv_proto_iconv" >&6; } 23530 23531cat >>confdefs.h <<_ACEOF 23532#define ICONV_CONST $am_cv_proto_iconv_arg1 23533_ACEOF 23534 23535 fi 23536 LIBICONV= 23537 if test "$am_cv_lib_iconv" = yes; then 23538 LIBICONV="-liconv" 23539 fi 23540 23541 23542 23543if test "$have_fuse_opt_parse" = no; then 23544 CFLAGS="$CFLAGS -Icompat -I../compat" 23545fi 23546 23547 23548if test "$have_fuse_opt_parse" = no; then 23549 FUSE_OPT_COMPAT_TRUE= 23550 FUSE_OPT_COMPAT_FALSE='#' 23551else 23552 FUSE_OPT_COMPAT_TRUE='#' 23553 FUSE_OPT_COMPAT_FALSE= 23554fi 23555 23556 23557ac_config_files="$ac_config_files Makefile compat/Makefile tests/Makefile doc/Makefile" 23558 23559cat >confcache <<\_ACEOF 23560# This file is a shell script that caches the results of configure 23561# tests run on this system so they can be shared between configure 23562# scripts and configure runs, see configure's option --config-cache. 23563# It is not useful on other systems. If it contains results you don't 23564# want to keep, you may remove or edit it. 23565# 23566# config.status only pays attention to the cache file if you give it 23567# the --recheck option to rerun configure. 23568# 23569# `ac_cv_env_foo' variables (set or unset) will be overridden when 23570# loading this file, other *unset* `ac_cv_foo' will be assigned the 23571# following values. 23572 23573_ACEOF 23574 23575# The following way of writing the cache mishandles newlines in values, 23576# but we know of no workaround that is simple, portable, and efficient. 23577# So, we kill variables containing newlines. 23578# Ultrix sh set writes to stderr and can't be redirected directly, 23579# and sets the high bit in the cache file unless we assign to the vars. 23580( 23581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23582 eval ac_val=\$$ac_var 23583 case $ac_val in #( 23584 *${as_nl}*) 23585 case $ac_var in #( 23586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23587echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23588 esac 23589 case $ac_var in #( 23590 _ | IFS | as_nl) ;; #( 23591 *) $as_unset $ac_var ;; 23592 esac ;; 23593 esac 23594 done 23595 23596 (set) 2>&1 | 23597 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23598 *${as_nl}ac_space=\ *) 23599 # `set' does not quote correctly, so add quotes (double-quote 23600 # substitution turns \\\\ into \\, and sed turns \\ into \). 23601 sed -n \ 23602 "s/'/'\\\\''/g; 23603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23604 ;; #( 23605 *) 23606 # `set' quotes correctly as required by POSIX, so do not add quotes. 23607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23608 ;; 23609 esac | 23610 sort 23611) | 23612 sed ' 23613 /^ac_cv_env_/b end 23614 t clear 23615 :clear 23616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23617 t end 23618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23619 :end' >>confcache 23620if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23621 if test -w "$cache_file"; then 23622 test "x$cache_file" != "x/dev/null" && 23623 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23624echo "$as_me: updating cache $cache_file" >&6;} 23625 cat confcache >$cache_file 23626 else 23627 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23628echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23629 fi 23630fi 23631rm -f confcache 23632 23633test "x$prefix" = xNONE && prefix=$ac_default_prefix 23634# Let make expand exec_prefix. 23635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23636 23637DEFS=-DHAVE_CONFIG_H 23638 23639ac_libobjs= 23640ac_ltlibobjs= 23641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23642 # 1. Remove the extension, and $U if already installed. 23643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23644 ac_i=`echo "$ac_i" | sed "$ac_script"` 23645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23646 # will be set to the directory where LIBOBJS objects are built. 23647 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23648 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23649done 23650LIBOBJS=$ac_libobjs 23651 23652LTLIBOBJS=$ac_ltlibobjs 23653 23654 23655if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23656 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23657Usually this means the macro was only invoked conditionally." >&5 23658echo "$as_me: error: conditional \"AMDEP\" was never defined. 23659Usually this means the macro was only invoked conditionally." >&2;} 23660 { (exit 1); exit 1; }; } 23661fi 23662if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23663 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23664Usually this means the macro was only invoked conditionally." >&5 23665echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23666Usually this means the macro was only invoked conditionally." >&2;} 23667 { (exit 1); exit 1; }; } 23668fi 23669if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23670 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23671Usually this means the macro was only invoked conditionally." >&5 23672echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23673Usually this means the macro was only invoked conditionally." >&2;} 23674 { (exit 1); exit 1; }; } 23675fi 23676if test -z "${FUSE_OPT_COMPAT_TRUE}" && test -z "${FUSE_OPT_COMPAT_FALSE}"; then 23677 { { echo "$as_me:$LINENO: error: conditional \"FUSE_OPT_COMPAT\" was never defined. 23678Usually this means the macro was only invoked conditionally." >&5 23679echo "$as_me: error: conditional \"FUSE_OPT_COMPAT\" was never defined. 23680Usually this means the macro was only invoked conditionally." >&2;} 23681 { (exit 1); exit 1; }; } 23682fi 23683 23684: ${CONFIG_STATUS=./config.status} 23685ac_clean_files_save=$ac_clean_files 23686ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23687{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23688echo "$as_me: creating $CONFIG_STATUS" >&6;} 23689cat >$CONFIG_STATUS <<_ACEOF 23690#! $SHELL 23691# Generated by $as_me. 23692# Run this file to recreate the current configuration. 23693# Compiler output produced by configure, useful for debugging 23694# configure, is in config.log if it exists. 23695 23696debug=false 23697ac_cs_recheck=false 23698ac_cs_silent=false 23699SHELL=\${CONFIG_SHELL-$SHELL} 23700_ACEOF 23701 23702cat >>$CONFIG_STATUS <<\_ACEOF 23703## --------------------- ## 23704## M4sh Initialization. ## 23705## --------------------- ## 23706 23707# Be more Bourne compatible 23708DUALCASE=1; export DUALCASE # for MKS sh 23709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23710 emulate sh 23711 NULLCMD=: 23712 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23713 # is contrary to our usage. Disable this feature. 23714 alias -g '${1+"$@"}'='"$@"' 23715 setopt NO_GLOB_SUBST 23716else 23717 case `(set -o) 2>/dev/null` in 23718 *posix*) set -o posix ;; 23719esac 23720 23721fi 23722 23723 23724 23725 23726# PATH needs CR 23727# Avoid depending upon Character Ranges. 23728as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23730as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23731as_cr_digits='0123456789' 23732as_cr_alnum=$as_cr_Letters$as_cr_digits 23733 23734# The user is always right. 23735if test "${PATH_SEPARATOR+set}" != set; then 23736 echo "#! /bin/sh" >conf$$.sh 23737 echo "exit 0" >>conf$$.sh 23738 chmod +x conf$$.sh 23739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23740 PATH_SEPARATOR=';' 23741 else 23742 PATH_SEPARATOR=: 23743 fi 23744 rm -f conf$$.sh 23745fi 23746 23747# Support unset when possible. 23748if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23749 as_unset=unset 23750else 23751 as_unset=false 23752fi 23753 23754 23755# IFS 23756# We need space, tab and new line, in precisely that order. Quoting is 23757# there to prevent editors from complaining about space-tab. 23758# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23759# splitting by setting IFS to empty value.) 23760as_nl=' 23761' 23762IFS=" "" $as_nl" 23763 23764# Find who we are. Look in the path if we contain no directory separator. 23765case $0 in 23766 *[\\/]* ) as_myself=$0 ;; 23767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23768for as_dir in $PATH 23769do 23770 IFS=$as_save_IFS 23771 test -z "$as_dir" && as_dir=. 23772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23773done 23774IFS=$as_save_IFS 23775 23776 ;; 23777esac 23778# We did not find ourselves, most probably we were run as `sh COMMAND' 23779# in which case we are not to be found in the path. 23780if test "x$as_myself" = x; then 23781 as_myself=$0 23782fi 23783if test ! -f "$as_myself"; then 23784 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23785 { (exit 1); exit 1; } 23786fi 23787 23788# Work around bugs in pre-3.0 UWIN ksh. 23789for as_var in ENV MAIL MAILPATH 23790do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23791done 23792PS1='$ ' 23793PS2='> ' 23794PS4='+ ' 23795 23796# NLS nuisances. 23797for as_var in \ 23798 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23799 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23800 LC_TELEPHONE LC_TIME 23801do 23802 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23803 eval $as_var=C; export $as_var 23804 else 23805 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23806 fi 23807done 23808 23809# Required to use basename. 23810if expr a : '\(a\)' >/dev/null 2>&1 && 23811 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23812 as_expr=expr 23813else 23814 as_expr=false 23815fi 23816 23817if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23818 as_basename=basename 23819else 23820 as_basename=false 23821fi 23822 23823 23824# Name of the executable. 23825as_me=`$as_basename -- "$0" || 23826$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23827 X"$0" : 'X\(//\)$' \| \ 23828 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23829echo X/"$0" | 23830 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23831 s//\1/ 23832 q 23833 } 23834 /^X\/\(\/\/\)$/{ 23835 s//\1/ 23836 q 23837 } 23838 /^X\/\(\/\).*/{ 23839 s//\1/ 23840 q 23841 } 23842 s/.*/./; q'` 23843 23844# CDPATH. 23845$as_unset CDPATH 23846 23847 23848 23849 as_lineno_1=$LINENO 23850 as_lineno_2=$LINENO 23851 test "x$as_lineno_1" != "x$as_lineno_2" && 23852 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23853 23854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23855 # uniformly replaced by the line number. The first 'sed' inserts a 23856 # line-number line after each line using $LINENO; the second 'sed' 23857 # does the real work. The second script uses 'N' to pair each 23858 # line-number line with the line containing $LINENO, and appends 23859 # trailing '-' during substitution so that $LINENO is not a special 23860 # case at line end. 23861 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23862 # scripts with optimization help from Paolo Bonzini. Blame Lee 23863 # E. McMahon (1931-1989) for sed's syntax. :-) 23864 sed -n ' 23865 p 23866 /[$]LINENO/= 23867 ' <$as_myself | 23868 sed ' 23869 s/[$]LINENO.*/&-/ 23870 t lineno 23871 b 23872 :lineno 23873 N 23874 :loop 23875 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23876 t loop 23877 s/-\n.*// 23878 ' >$as_me.lineno && 23879 chmod +x "$as_me.lineno" || 23880 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23881 { (exit 1); exit 1; }; } 23882 23883 # Don't try to exec as it changes $[0], causing all sort of problems 23884 # (the dirname of $[0] is not the place where we might find the 23885 # original and so on. Autoconf is especially sensitive to this). 23886 . "./$as_me.lineno" 23887 # Exit status is that of the last command. 23888 exit 23889} 23890 23891 23892if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23893 as_dirname=dirname 23894else 23895 as_dirname=false 23896fi 23897 23898ECHO_C= ECHO_N= ECHO_T= 23899case `echo -n x` in 23900-n*) 23901 case `echo 'x\c'` in 23902 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23903 *) ECHO_C='\c';; 23904 esac;; 23905*) 23906 ECHO_N='-n';; 23907esac 23908 23909if expr a : '\(a\)' >/dev/null 2>&1 && 23910 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23911 as_expr=expr 23912else 23913 as_expr=false 23914fi 23915 23916rm -f conf$$ conf$$.exe conf$$.file 23917if test -d conf$$.dir; then 23918 rm -f conf$$.dir/conf$$.file 23919else 23920 rm -f conf$$.dir 23921 mkdir conf$$.dir 23922fi 23923echo >conf$$.file 23924if ln -s conf$$.file conf$$ 2>/dev/null; then 23925 as_ln_s='ln -s' 23926 # ... but there are two gotchas: 23927 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23928 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23929 # In both cases, we have to default to `cp -p'. 23930 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23931 as_ln_s='cp -p' 23932elif ln conf$$.file conf$$ 2>/dev/null; then 23933 as_ln_s=ln 23934else 23935 as_ln_s='cp -p' 23936fi 23937rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23938rmdir conf$$.dir 2>/dev/null 23939 23940if mkdir -p . 2>/dev/null; then 23941 as_mkdir_p=: 23942else 23943 test -d ./-p && rmdir ./-p 23944 as_mkdir_p=false 23945fi 23946 23947if test -x / >/dev/null 2>&1; then 23948 as_test_x='test -x' 23949else 23950 if ls -dL / >/dev/null 2>&1; then 23951 as_ls_L_option=L 23952 else 23953 as_ls_L_option= 23954 fi 23955 as_test_x=' 23956 eval sh -c '\'' 23957 if test -d "$1"; then 23958 test -d "$1/."; 23959 else 23960 case $1 in 23961 -*)set "./$1";; 23962 esac; 23963 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23964 ???[sx]*):;;*)false;;esac;fi 23965 '\'' sh 23966 ' 23967fi 23968as_executable_p=$as_test_x 23969 23970# Sed expression to map a string onto a valid CPP name. 23971as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23972 23973# Sed expression to map a string onto a valid variable name. 23974as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23975 23976 23977exec 6>&1 23978 23979# Save the log message, to keep $[0] and so on meaningful, and to 23980# report actual input values of CONFIG_FILES etc. instead of their 23981# values after options handling. 23982ac_log=" 23983This file was extended by curlftpfs $as_me 0.9.2, which was 23984generated by GNU Autoconf 2.61. Invocation command line was 23985 23986 CONFIG_FILES = $CONFIG_FILES 23987 CONFIG_HEADERS = $CONFIG_HEADERS 23988 CONFIG_LINKS = $CONFIG_LINKS 23989 CONFIG_COMMANDS = $CONFIG_COMMANDS 23990 $ $0 $@ 23991 23992on `(hostname || uname -n) 2>/dev/null | sed 1q` 23993" 23994 23995_ACEOF 23996 23997cat >>$CONFIG_STATUS <<_ACEOF 23998# Files that config.status was made for. 23999config_files="$ac_config_files" 24000config_headers="$ac_config_headers" 24001config_commands="$ac_config_commands" 24002 24003_ACEOF 24004 24005cat >>$CONFIG_STATUS <<\_ACEOF 24006ac_cs_usage="\ 24007\`$as_me' instantiates files from templates according to the 24008current configuration. 24009 24010Usage: $0 [OPTIONS] [FILE]... 24011 24012 -h, --help print this help, then exit 24013 -V, --version print version number and configuration settings, then exit 24014 -q, --quiet do not print progress messages 24015 -d, --debug don't remove temporary files 24016 --recheck update $as_me by reconfiguring in the same conditions 24017 --file=FILE[:TEMPLATE] 24018 instantiate the configuration file FILE 24019 --header=FILE[:TEMPLATE] 24020 instantiate the configuration header FILE 24021 24022Configuration files: 24023$config_files 24024 24025Configuration headers: 24026$config_headers 24027 24028Configuration commands: 24029$config_commands 24030 24031Report bugs to <bug-autoconf@gnu.org>." 24032 24033_ACEOF 24034cat >>$CONFIG_STATUS <<_ACEOF 24035ac_cs_version="\\ 24036curlftpfs config.status 0.9.2 24037configured by $0, generated by GNU Autoconf 2.61, 24038 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24039 24040Copyright (C) 2006 Free Software Foundation, Inc. 24041This config.status script is free software; the Free Software Foundation 24042gives unlimited permission to copy, distribute and modify it." 24043 24044ac_pwd='$ac_pwd' 24045srcdir='$srcdir' 24046INSTALL='$INSTALL' 24047_ACEOF 24048 24049cat >>$CONFIG_STATUS <<\_ACEOF 24050# If no file are specified by the user, then we need to provide default 24051# value. By we need to know if files were specified by the user. 24052ac_need_defaults=: 24053while test $# != 0 24054do 24055 case $1 in 24056 --*=*) 24057 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24059 ac_shift=: 24060 ;; 24061 *) 24062 ac_option=$1 24063 ac_optarg=$2 24064 ac_shift=shift 24065 ;; 24066 esac 24067 24068 case $ac_option in 24069 # Handling of the options. 24070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24071 ac_cs_recheck=: ;; 24072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24073 echo "$ac_cs_version"; exit ;; 24074 --debug | --debu | --deb | --de | --d | -d ) 24075 debug=: ;; 24076 --file | --fil | --fi | --f ) 24077 $ac_shift 24078 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24079 ac_need_defaults=false;; 24080 --header | --heade | --head | --hea ) 24081 $ac_shift 24082 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24083 ac_need_defaults=false;; 24084 --he | --h) 24085 # Conflict between --help and --header 24086 { echo "$as_me: error: ambiguous option: $1 24087Try \`$0 --help' for more information." >&2 24088 { (exit 1); exit 1; }; };; 24089 --help | --hel | -h ) 24090 echo "$ac_cs_usage"; exit ;; 24091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24092 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24093 ac_cs_silent=: ;; 24094 24095 # This is an error. 24096 -*) { echo "$as_me: error: unrecognized option: $1 24097Try \`$0 --help' for more information." >&2 24098 { (exit 1); exit 1; }; } ;; 24099 24100 *) ac_config_targets="$ac_config_targets $1" 24101 ac_need_defaults=false ;; 24102 24103 esac 24104 shift 24105done 24106 24107ac_configure_extra_args= 24108 24109if $ac_cs_silent; then 24110 exec 6>/dev/null 24111 ac_configure_extra_args="$ac_configure_extra_args --silent" 24112fi 24113 24114_ACEOF 24115cat >>$CONFIG_STATUS <<_ACEOF 24116if \$ac_cs_recheck; then 24117 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24118 CONFIG_SHELL=$SHELL 24119 export CONFIG_SHELL 24120 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24121fi 24122 24123_ACEOF 24124cat >>$CONFIG_STATUS <<\_ACEOF 24125exec 5>>config.log 24126{ 24127 echo 24128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24129## Running $as_me. ## 24130_ASBOX 24131 echo "$ac_log" 24132} >&5 24133 24134_ACEOF 24135cat >>$CONFIG_STATUS <<_ACEOF 24136# 24137# INIT-COMMANDS 24138# 24139AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24140 24141_ACEOF 24142 24143cat >>$CONFIG_STATUS <<\_ACEOF 24144 24145# Handling of arguments. 24146for ac_config_target in $ac_config_targets 24147do 24148 case $ac_config_target in 24149 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24150 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24151 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24152 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 24153 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 24154 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 24155 24156 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24157echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24158 { (exit 1); exit 1; }; };; 24159 esac 24160done 24161 24162 24163# If the user did not use the arguments to specify the items to instantiate, 24164# then the envvar interface is used. Set only those that are not. 24165# We use the long form for the default assignment because of an extremely 24166# bizarre bug on SunOS 4.1.3. 24167if $ac_need_defaults; then 24168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24171fi 24172 24173# Have a temporary directory for convenience. Make it in the build tree 24174# simply because there is no reason against having it here, and in addition, 24175# creating and moving files from /tmp can sometimes cause problems. 24176# Hook for its removal unless debugging. 24177# Note that there is a small window in which the directory will not be cleaned: 24178# after its creation but before its name has been assigned to `$tmp'. 24179$debug || 24180{ 24181 tmp= 24182 trap 'exit_status=$? 24183 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24184' 0 24185 trap '{ (exit 1); exit 1; }' 1 2 13 15 24186} 24187# Create a (secure) tmp directory for tmp files. 24188 24189{ 24190 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24191 test -n "$tmp" && test -d "$tmp" 24192} || 24193{ 24194 tmp=./conf$$-$RANDOM 24195 (umask 077 && mkdir "$tmp") 24196} || 24197{ 24198 echo "$me: cannot create a temporary directory in ." >&2 24199 { (exit 1); exit 1; } 24200} 24201 24202# 24203# Set up the sed scripts for CONFIG_FILES section. 24204# 24205 24206# No need to generate the scripts if there are no CONFIG_FILES. 24207# This happens for instance when ./config.status config.h 24208if test -n "$CONFIG_FILES"; then 24209 24210_ACEOF 24211 24212 24213 24214ac_delim='%!_!# ' 24215for ac_last_try in false false false false false :; do 24216 cat >conf$$subs.sed <<_ACEOF 24217SHELL!$SHELL$ac_delim 24218PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 24219PACKAGE_NAME!$PACKAGE_NAME$ac_delim 24220PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 24221PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 24222PACKAGE_STRING!$PACKAGE_STRING$ac_delim 24223PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 24224exec_prefix!$exec_prefix$ac_delim 24225prefix!$prefix$ac_delim 24226program_transform_name!$program_transform_name$ac_delim 24227bindir!$bindir$ac_delim 24228sbindir!$sbindir$ac_delim 24229libexecdir!$libexecdir$ac_delim 24230datarootdir!$datarootdir$ac_delim 24231datadir!$datadir$ac_delim 24232sysconfdir!$sysconfdir$ac_delim 24233sharedstatedir!$sharedstatedir$ac_delim 24234localstatedir!$localstatedir$ac_delim 24235includedir!$includedir$ac_delim 24236oldincludedir!$oldincludedir$ac_delim 24237docdir!$docdir$ac_delim 24238infodir!$infodir$ac_delim 24239htmldir!$htmldir$ac_delim 24240dvidir!$dvidir$ac_delim 24241pdfdir!$pdfdir$ac_delim 24242psdir!$psdir$ac_delim 24243libdir!$libdir$ac_delim 24244localedir!$localedir$ac_delim 24245mandir!$mandir$ac_delim 24246DEFS!$DEFS$ac_delim 24247ECHO_C!$ECHO_C$ac_delim 24248ECHO_N!$ECHO_N$ac_delim 24249ECHO_T!$ECHO_T$ac_delim 24250LIBS!$LIBS$ac_delim 24251build_alias!$build_alias$ac_delim 24252host_alias!$host_alias$ac_delim 24253target_alias!$target_alias$ac_delim 24254INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 24255INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 24256INSTALL_DATA!$INSTALL_DATA$ac_delim 24257CYGPATH_W!$CYGPATH_W$ac_delim 24258PACKAGE!$PACKAGE$ac_delim 24259VERSION!$VERSION$ac_delim 24260ACLOCAL!$ACLOCAL$ac_delim 24261AUTOCONF!$AUTOCONF$ac_delim 24262AUTOMAKE!$AUTOMAKE$ac_delim 24263AUTOHEADER!$AUTOHEADER$ac_delim 24264MAKEINFO!$MAKEINFO$ac_delim 24265install_sh!$install_sh$ac_delim 24266STRIP!$STRIP$ac_delim 24267INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 24268mkdir_p!$mkdir_p$ac_delim 24269AWK!$AWK$ac_delim 24270SET_MAKE!$SET_MAKE$ac_delim 24271am__leading_dot!$am__leading_dot$ac_delim 24272AMTAR!$AMTAR$ac_delim 24273am__tar!$am__tar$ac_delim 24274am__untar!$am__untar$ac_delim 24275CC!$CC$ac_delim 24276CFLAGS!$CFLAGS$ac_delim 24277LDFLAGS!$LDFLAGS$ac_delim 24278CPPFLAGS!$CPPFLAGS$ac_delim 24279ac_ct_CC!$ac_ct_CC$ac_delim 24280EXEEXT!$EXEEXT$ac_delim 24281OBJEXT!$OBJEXT$ac_delim 24282DEPDIR!$DEPDIR$ac_delim 24283am__include!$am__include$ac_delim 24284am__quote!$am__quote$ac_delim 24285AMDEP_TRUE!$AMDEP_TRUE$ac_delim 24286AMDEP_FALSE!$AMDEP_FALSE$ac_delim 24287AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 24288CCDEPMODE!$CCDEPMODE$ac_delim 24289am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 24290am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 24291CPP!$CPP$ac_delim 24292LN_S!$LN_S$ac_delim 24293build!$build$ac_delim 24294build_cpu!$build_cpu$ac_delim 24295build_vendor!$build_vendor$ac_delim 24296build_os!$build_os$ac_delim 24297host!$host$ac_delim 24298host_cpu!$host_cpu$ac_delim 24299host_vendor!$host_vendor$ac_delim 24300host_os!$host_os$ac_delim 24301SED!$SED$ac_delim 24302GREP!$GREP$ac_delim 24303EGREP!$EGREP$ac_delim 24304ECHO!$ECHO$ac_delim 24305AR!$AR$ac_delim 24306RANLIB!$RANLIB$ac_delim 24307CXX!$CXX$ac_delim 24308CXXFLAGS!$CXXFLAGS$ac_delim 24309ac_ct_CXX!$ac_ct_CXX$ac_delim 24310CXXDEPMODE!$CXXDEPMODE$ac_delim 24311am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 24312am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 24313CXXCPP!$CXXCPP$ac_delim 24314_ACEOF 24315 24316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 24317 break 24318 elif $ac_last_try; then 24319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24320echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24321 { (exit 1); exit 1; }; } 24322 else 24323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24324 fi 24325done 24326 24327ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24328if test -n "$ac_eof"; then 24329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24330 ac_eof=`expr $ac_eof + 1` 24331fi 24332 24333cat >>$CONFIG_STATUS <<_ACEOF 24334cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 24335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24336_ACEOF 24337sed ' 24338s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24339s/^/s,@/; s/!/@,|#_!!_#|/ 24340:n 24341t n 24342s/'"$ac_delim"'$/,g/; t 24343s/$/\\/; p 24344N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24345' >>$CONFIG_STATUS <conf$$subs.sed 24346rm -f conf$$subs.sed 24347cat >>$CONFIG_STATUS <<_ACEOF 24348CEOF$ac_eof 24349_ACEOF 24350 24351 24352ac_delim='%!_!# ' 24353for ac_last_try in false false false false false :; do 24354 cat >conf$$subs.sed <<_ACEOF 24355F77!$F77$ac_delim 24356FFLAGS!$FFLAGS$ac_delim 24357ac_ct_F77!$ac_ct_F77$ac_delim 24358LIBTOOL!$LIBTOOL$ac_delim 24359PKG_CONFIG!$PKG_CONFIG$ac_delim 24360GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim 24361GLIB_LIBS!$GLIB_LIBS$ac_delim 24362FUSE_CFLAGS!$FUSE_CFLAGS$ac_delim 24363FUSE_LIBS!$FUSE_LIBS$ac_delim 24364_libcurl_config!$_libcurl_config$ac_delim 24365LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim 24366LIBCURL!$LIBCURL$ac_delim 24367LIBOBJS!$LIBOBJS$ac_delim 24368LIBICONV!$LIBICONV$ac_delim 24369FUSE_OPT_COMPAT_TRUE!$FUSE_OPT_COMPAT_TRUE$ac_delim 24370FUSE_OPT_COMPAT_FALSE!$FUSE_OPT_COMPAT_FALSE$ac_delim 24371LTLIBOBJS!$LTLIBOBJS$ac_delim 24372_ACEOF 24373 24374 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then 24375 break 24376 elif $ac_last_try; then 24377 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24378echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24379 { (exit 1); exit 1; }; } 24380 else 24381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24382 fi 24383done 24384 24385ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24386if test -n "$ac_eof"; then 24387 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24388 ac_eof=`expr $ac_eof + 1` 24389fi 24390 24391cat >>$CONFIG_STATUS <<_ACEOF 24392cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24394_ACEOF 24395sed ' 24396s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24397s/^/s,@/; s/!/@,|#_!!_#|/ 24398:n 24399t n 24400s/'"$ac_delim"'$/,g/; t 24401s/$/\\/; p 24402N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24403' >>$CONFIG_STATUS <conf$$subs.sed 24404rm -f conf$$subs.sed 24405cat >>$CONFIG_STATUS <<_ACEOF 24406:end 24407s/|#_!!_#|//g 24408CEOF$ac_eof 24409_ACEOF 24410 24411 24412# VPATH may cause trouble with some makes, so we remove $(srcdir), 24413# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24414# trailing colons and then remove the whole line if VPATH becomes empty 24415# (actually we leave an empty line to preserve line numbers). 24416if test "x$srcdir" = x.; then 24417 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24418s/:*\$(srcdir):*/:/ 24419s/:*\${srcdir}:*/:/ 24420s/:*@srcdir@:*/:/ 24421s/^\([^=]*=[ ]*\):*/\1/ 24422s/:*$// 24423s/^[^=]*=[ ]*$// 24424}' 24425fi 24426 24427cat >>$CONFIG_STATUS <<\_ACEOF 24428fi # test -n "$CONFIG_FILES" 24429 24430 24431for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24432do 24433 case $ac_tag in 24434 :[FHLC]) ac_mode=$ac_tag; continue;; 24435 esac 24436 case $ac_mode$ac_tag in 24437 :[FHL]*:*);; 24438 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24439echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24440 { (exit 1); exit 1; }; };; 24441 :[FH]-) ac_tag=-:-;; 24442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24443 esac 24444 ac_save_IFS=$IFS 24445 IFS=: 24446 set x $ac_tag 24447 IFS=$ac_save_IFS 24448 shift 24449 ac_file=$1 24450 shift 24451 24452 case $ac_mode in 24453 :L) ac_source=$1;; 24454 :[FH]) 24455 ac_file_inputs= 24456 for ac_f 24457 do 24458 case $ac_f in 24459 -) ac_f="$tmp/stdin";; 24460 *) # Look for the file first in the build tree, then in the source tree 24461 # (if the path is not absolute). The absolute path cannot be DOS-style, 24462 # because $ac_f cannot contain `:'. 24463 test -f "$ac_f" || 24464 case $ac_f in 24465 [\\/$]*) false;; 24466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24467 esac || 24468 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24469echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24470 { (exit 1); exit 1; }; };; 24471 esac 24472 ac_file_inputs="$ac_file_inputs $ac_f" 24473 done 24474 24475 # Let's still pretend it is `configure' which instantiates (i.e., don't 24476 # use $as_me), people would be surprised to read: 24477 # /* config.h. Generated by config.status. */ 24478 configure_input="Generated from "`IFS=: 24479 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24480 if test x"$ac_file" != x-; then 24481 configure_input="$ac_file. $configure_input" 24482 { echo "$as_me:$LINENO: creating $ac_file" >&5 24483echo "$as_me: creating $ac_file" >&6;} 24484 fi 24485 24486 case $ac_tag in 24487 *:-:* | *:-) cat >"$tmp/stdin";; 24488 esac 24489 ;; 24490 esac 24491 24492 ac_dir=`$as_dirname -- "$ac_file" || 24493$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24494 X"$ac_file" : 'X\(//\)[^/]' \| \ 24495 X"$ac_file" : 'X\(//\)$' \| \ 24496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24497echo X"$ac_file" | 24498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24499 s//\1/ 24500 q 24501 } 24502 /^X\(\/\/\)[^/].*/{ 24503 s//\1/ 24504 q 24505 } 24506 /^X\(\/\/\)$/{ 24507 s//\1/ 24508 q 24509 } 24510 /^X\(\/\).*/{ 24511 s//\1/ 24512 q 24513 } 24514 s/.*/./; q'` 24515 { as_dir="$ac_dir" 24516 case $as_dir in #( 24517 -*) as_dir=./$as_dir;; 24518 esac 24519 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24520 as_dirs= 24521 while :; do 24522 case $as_dir in #( 24523 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24524 *) as_qdir=$as_dir;; 24525 esac 24526 as_dirs="'$as_qdir' $as_dirs" 24527 as_dir=`$as_dirname -- "$as_dir" || 24528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24529 X"$as_dir" : 'X\(//\)[^/]' \| \ 24530 X"$as_dir" : 'X\(//\)$' \| \ 24531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24532echo X"$as_dir" | 24533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24534 s//\1/ 24535 q 24536 } 24537 /^X\(\/\/\)[^/].*/{ 24538 s//\1/ 24539 q 24540 } 24541 /^X\(\/\/\)$/{ 24542 s//\1/ 24543 q 24544 } 24545 /^X\(\/\).*/{ 24546 s//\1/ 24547 q 24548 } 24549 s/.*/./; q'` 24550 test -d "$as_dir" && break 24551 done 24552 test -z "$as_dirs" || eval "mkdir $as_dirs" 24553 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24554echo "$as_me: error: cannot create directory $as_dir" >&2;} 24555 { (exit 1); exit 1; }; }; } 24556 ac_builddir=. 24557 24558case "$ac_dir" in 24559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24560*) 24561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24562 # A ".." for each directory in $ac_dir_suffix. 24563 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24564 case $ac_top_builddir_sub in 24565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24567 esac ;; 24568esac 24569ac_abs_top_builddir=$ac_pwd 24570ac_abs_builddir=$ac_pwd$ac_dir_suffix 24571# for backward compatibility: 24572ac_top_builddir=$ac_top_build_prefix 24573 24574case $srcdir in 24575 .) # We are building in place. 24576 ac_srcdir=. 24577 ac_top_srcdir=$ac_top_builddir_sub 24578 ac_abs_top_srcdir=$ac_pwd ;; 24579 [\\/]* | ?:[\\/]* ) # Absolute name. 24580 ac_srcdir=$srcdir$ac_dir_suffix; 24581 ac_top_srcdir=$srcdir 24582 ac_abs_top_srcdir=$srcdir ;; 24583 *) # Relative name. 24584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24585 ac_top_srcdir=$ac_top_build_prefix$srcdir 24586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24587esac 24588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24589 24590 24591 case $ac_mode in 24592 :F) 24593 # 24594 # CONFIG_FILE 24595 # 24596 24597 case $INSTALL in 24598 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24599 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24600 esac 24601_ACEOF 24602 24603cat >>$CONFIG_STATUS <<\_ACEOF 24604# If the template does not know about datarootdir, expand it. 24605# FIXME: This hack should be removed a few years after 2.60. 24606ac_datarootdir_hack=; ac_datarootdir_seen= 24607 24608case `sed -n '/datarootdir/ { 24609 p 24610 q 24611} 24612/@datadir@/p 24613/@docdir@/p 24614/@infodir@/p 24615/@localedir@/p 24616/@mandir@/p 24617' $ac_file_inputs` in 24618*datarootdir*) ac_datarootdir_seen=yes;; 24619*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24620 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24621echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24622_ACEOF 24623cat >>$CONFIG_STATUS <<_ACEOF 24624 ac_datarootdir_hack=' 24625 s&@datadir@&$datadir&g 24626 s&@docdir@&$docdir&g 24627 s&@infodir@&$infodir&g 24628 s&@localedir@&$localedir&g 24629 s&@mandir@&$mandir&g 24630 s&\\\${datarootdir}&$datarootdir&g' ;; 24631esac 24632_ACEOF 24633 24634# Neutralize VPATH when `$srcdir' = `.'. 24635# Shell code in configure.ac might set extrasub. 24636# FIXME: do we really want to maintain this feature? 24637cat >>$CONFIG_STATUS <<_ACEOF 24638 sed "$ac_vpsub 24639$extrasub 24640_ACEOF 24641cat >>$CONFIG_STATUS <<\_ACEOF 24642:t 24643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24644s&@configure_input@&$configure_input&;t t 24645s&@top_builddir@&$ac_top_builddir_sub&;t t 24646s&@srcdir@&$ac_srcdir&;t t 24647s&@abs_srcdir@&$ac_abs_srcdir&;t t 24648s&@top_srcdir@&$ac_top_srcdir&;t t 24649s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24650s&@builddir@&$ac_builddir&;t t 24651s&@abs_builddir@&$ac_abs_builddir&;t t 24652s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24653s&@INSTALL@&$ac_INSTALL&;t t 24654$ac_datarootdir_hack 24655" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24656 24657test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24660 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24661which seems to be undefined. Please make sure it is defined." >&5 24662echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24663which seems to be undefined. Please make sure it is defined." >&2;} 24664 24665 rm -f "$tmp/stdin" 24666 case $ac_file in 24667 -) cat "$tmp/out"; rm -f "$tmp/out";; 24668 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24669 esac 24670 ;; 24671 :H) 24672 # 24673 # CONFIG_HEADER 24674 # 24675_ACEOF 24676 24677# Transform confdefs.h into a sed script `conftest.defines', that 24678# substitutes the proper values into config.h.in to produce config.h. 24679rm -f conftest.defines conftest.tail 24680# First, append a space to every undef/define line, to ease matching. 24681echo 's/$/ /' >conftest.defines 24682# Then, protect against being on the right side of a sed subst, or in 24683# an unquoted here document, in config.status. If some macros were 24684# called several times there might be several #defines for the same 24685# symbol, which is useless. But do not sort them, since the last 24686# AC_DEFINE must be honored. 24687ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24688# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24689# NAME is the cpp macro being defined, VALUE is the value it is being given. 24690# PARAMS is the parameter list in the macro definition--in most cases, it's 24691# just an empty string. 24692ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24693ac_dB='\\)[ (].*,\\1define\\2' 24694ac_dC=' ' 24695ac_dD=' ,' 24696 24697uniq confdefs.h | 24698 sed -n ' 24699 t rset 24700 :rset 24701 s/^[ ]*#[ ]*define[ ][ ]*// 24702 t ok 24703 d 24704 :ok 24705 s/[\\&,]/\\&/g 24706 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24707 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24708 ' >>conftest.defines 24709 24710# Remove the space that was appended to ease matching. 24711# Then replace #undef with comments. This is necessary, for 24712# example, in the case of _POSIX_SOURCE, which is predefined and required 24713# on some systems where configure will not decide to define it. 24714# (The regexp can be short, since the line contains either #define or #undef.) 24715echo 's/ $// 24716s,^[ #]*u.*,/* & */,' >>conftest.defines 24717 24718# Break up conftest.defines: 24719ac_max_sed_lines=50 24720 24721# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24722# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24723# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24724# et cetera. 24725ac_in='$ac_file_inputs' 24726ac_out='"$tmp/out1"' 24727ac_nxt='"$tmp/out2"' 24728 24729while : 24730do 24731 # Write a here document: 24732 cat >>$CONFIG_STATUS <<_ACEOF 24733 # First, check the format of the line: 24734 cat >"\$tmp/defines.sed" <<\\CEOF 24735/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24736/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24737b 24738:def 24739_ACEOF 24740 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24741 echo 'CEOF 24742 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24743 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24744 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24745 grep . conftest.tail >/dev/null || break 24746 rm -f conftest.defines 24747 mv conftest.tail conftest.defines 24748done 24749rm -f conftest.defines conftest.tail 24750 24751echo "ac_result=$ac_in" >>$CONFIG_STATUS 24752cat >>$CONFIG_STATUS <<\_ACEOF 24753 if test x"$ac_file" != x-; then 24754 echo "/* $configure_input */" >"$tmp/config.h" 24755 cat "$ac_result" >>"$tmp/config.h" 24756 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24758echo "$as_me: $ac_file is unchanged" >&6;} 24759 else 24760 rm -f $ac_file 24761 mv "$tmp/config.h" $ac_file 24762 fi 24763 else 24764 echo "/* $configure_input */" 24765 cat "$ac_result" 24766 fi 24767 rm -f "$tmp/out12" 24768# Compute $ac_file's index in $config_headers. 24769_am_stamp_count=1 24770for _am_header in $config_headers :; do 24771 case $_am_header in 24772 $ac_file | $ac_file:* ) 24773 break ;; 24774 * ) 24775 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24776 esac 24777done 24778echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24779$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24780 X$ac_file : 'X\(//\)[^/]' \| \ 24781 X$ac_file : 'X\(//\)$' \| \ 24782 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24783echo X$ac_file | 24784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24785 s//\1/ 24786 q 24787 } 24788 /^X\(\/\/\)[^/].*/{ 24789 s//\1/ 24790 q 24791 } 24792 /^X\(\/\/\)$/{ 24793 s//\1/ 24794 q 24795 } 24796 /^X\(\/\).*/{ 24797 s//\1/ 24798 q 24799 } 24800 s/.*/./; q'`/stamp-h$_am_stamp_count 24801 ;; 24802 24803 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24804echo "$as_me: executing $ac_file commands" >&6;} 24805 ;; 24806 esac 24807 24808 24809 case $ac_file$ac_mode in 24810 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24811 # Strip MF so we end up with the name of the file. 24812 mf=`echo "$mf" | sed -e 's/:.*$//'` 24813 # Check whether this is an Automake generated Makefile or not. 24814 # We used to match only the files named `Makefile.in', but 24815 # some people rename them; so instead we look at the file content. 24816 # Grep'ing the first line is not enough: some people post-process 24817 # each Makefile.in and add a new line on top of each file to say so. 24818 # So let's grep whole file. 24819 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24820 dirpart=`$as_dirname -- "$mf" || 24821$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24822 X"$mf" : 'X\(//\)[^/]' \| \ 24823 X"$mf" : 'X\(//\)$' \| \ 24824 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24825echo X"$mf" | 24826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24827 s//\1/ 24828 q 24829 } 24830 /^X\(\/\/\)[^/].*/{ 24831 s//\1/ 24832 q 24833 } 24834 /^X\(\/\/\)$/{ 24835 s//\1/ 24836 q 24837 } 24838 /^X\(\/\).*/{ 24839 s//\1/ 24840 q 24841 } 24842 s/.*/./; q'` 24843 else 24844 continue 24845 fi 24846 # Extract the definition of DEPDIR, am__include, and am__quote 24847 # from the Makefile without running `make'. 24848 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24849 test -z "$DEPDIR" && continue 24850 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24851 test -z "am__include" && continue 24852 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24853 # When using ansi2knr, U may be empty or an underscore; expand it 24854 U=`sed -n 's/^U = //p' < "$mf"` 24855 # Find all dependency output files, they are included files with 24856 # $(DEPDIR) in their names. We invoke sed twice because it is the 24857 # simplest approach to changing $(DEPDIR) to its actual value in the 24858 # expansion. 24859 for file in `sed -n " 24860 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24861 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24862 # Make sure the directory exists. 24863 test -f "$dirpart/$file" && continue 24864 fdir=`$as_dirname -- "$file" || 24865$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24866 X"$file" : 'X\(//\)[^/]' \| \ 24867 X"$file" : 'X\(//\)$' \| \ 24868 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24869echo X"$file" | 24870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24871 s//\1/ 24872 q 24873 } 24874 /^X\(\/\/\)[^/].*/{ 24875 s//\1/ 24876 q 24877 } 24878 /^X\(\/\/\)$/{ 24879 s//\1/ 24880 q 24881 } 24882 /^X\(\/\).*/{ 24883 s//\1/ 24884 q 24885 } 24886 s/.*/./; q'` 24887 { as_dir=$dirpart/$fdir 24888 case $as_dir in #( 24889 -*) as_dir=./$as_dir;; 24890 esac 24891 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24892 as_dirs= 24893 while :; do 24894 case $as_dir in #( 24895 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24896 *) as_qdir=$as_dir;; 24897 esac 24898 as_dirs="'$as_qdir' $as_dirs" 24899 as_dir=`$as_dirname -- "$as_dir" || 24900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24901 X"$as_dir" : 'X\(//\)[^/]' \| \ 24902 X"$as_dir" : 'X\(//\)$' \| \ 24903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24904echo X"$as_dir" | 24905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24906 s//\1/ 24907 q 24908 } 24909 /^X\(\/\/\)[^/].*/{ 24910 s//\1/ 24911 q 24912 } 24913 /^X\(\/\/\)$/{ 24914 s//\1/ 24915 q 24916 } 24917 /^X\(\/\).*/{ 24918 s//\1/ 24919 q 24920 } 24921 s/.*/./; q'` 24922 test -d "$as_dir" && break 24923 done 24924 test -z "$as_dirs" || eval "mkdir $as_dirs" 24925 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24926echo "$as_me: error: cannot create directory $as_dir" >&2;} 24927 { (exit 1); exit 1; }; }; } 24928 # echo "creating $dirpart/$file" 24929 echo '# dummy' > "$dirpart/$file" 24930 done 24931done 24932 ;; 24933 24934 esac 24935done # for ac_tag 24936 24937 24938{ (exit 0); exit 0; } 24939_ACEOF 24940chmod +x $CONFIG_STATUS 24941ac_clean_files=$ac_clean_files_save 24942 24943 24944# configure is writing to config.log, and then calls config.status. 24945# config.status does its own redirection, appending to config.log. 24946# Unfortunately, on DOS this fails, as config.log is still kept open 24947# by configure, so config.status won't be able to write to it; its 24948# output is simply discarded. So we exec the FD to /dev/null, 24949# effectively closing config.log, so it can be properly (re)opened and 24950# appended to by config.status. When coming back to configure, we 24951# need to make the FD available again. 24952if test "$no_create" != yes; then 24953 ac_cs_success=: 24954 ac_config_status_args= 24955 test "$silent" = yes && 24956 ac_config_status_args="$ac_config_status_args --quiet" 24957 exec 5>/dev/null 24958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24959 exec 5>>config.log 24960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24961 # would make configure fail if this is the last instruction. 24962 $ac_cs_success || { (exit 1); exit 1; } 24963fi 24964 24965