1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.59e for csoap 1.1.0. 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 Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# IFS 58# We need space, tab and new line, in precisely that order. Quoting is 59# there to prevent editors from complaining about space-tab. 60# (If _AS_PATH_WALK were called with IFS unset, it would disable word 61# splitting by setting IFS to empty value.) 62as_nl=' 63' 64IFS=" "" $as_nl" 65 66# Find who we are. Look in the path if we contain no directory separator. 67case $0 in 68 *[\\/]* ) as_myself=$0 ;; 69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70for as_dir in $PATH 71do 72 IFS=$as_save_IFS 73 test -z "$as_dir" && as_dir=. 74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 75done 76IFS=$as_save_IFS 77 78 ;; 79esac 80# We did not find ourselves, most probably we were run as `sh COMMAND' 81# in which case we are not to be found in the path. 82if test "x$as_myself" = x; then 83 as_myself=$0 84fi 85if test ! -f "$as_myself"; then 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 87 { (exit 1); exit 1; } 88fi 89 90# Work around bugs in pre-3.0 UWIN ksh. 91for as_var in ENV MAIL MAILPATH 92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 93done 94PS1='$ ' 95PS2='> ' 96PS4='+ ' 97 98# NLS nuisances. 99for as_var in \ 100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 102 LC_TELEPHONE LC_TIME 103do 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 105 eval $as_var=C; export $as_var 106 else 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 108 fi 109done 110 111# Required to use basename. 112if expr a : '\(a\)' >/dev/null 2>&1 && 113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 114 as_expr=expr 115else 116 as_expr=false 117fi 118 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120 as_basename=basename 121else 122 as_basename=false 123fi 124 125 126# Name of the executable. 127as_me=`$as_basename -- "$0" || 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 129 X"$0" : 'X\(//\)$' \| \ 130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 131echo X/"$0" | 132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 133 s//\1/ 134 q 135 } 136 /^X\/\(\/\/\)$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\).*/{ 141 s//\1/ 142 q 143 } 144 s/.*/./; q'` 145 146# CDPATH. 147$as_unset CDPATH 148 149 150if test "x$CONFIG_SHELL" = x; then 151 if (eval ":") 2>/dev/null; then 152 as_have_required=yes 153else 154 as_have_required=no 155fi 156 157 if test $as_have_required = yes && (eval ": 158(as_func_return () { 159 (exit \$1) 160} 161as_func_success () { 162 as_func_return 0 163} 164as_func_failure () { 165 as_func_return 1 166} 167as_func_ret_success () { 168 return 0 169} 170as_func_ret_failure () { 171 return 1 172} 173 174exitcode=0 175if as_func_success; then 176 : 177else 178 exitcode=1 179 echo as_func_success failed. 180fi 181 182if as_func_failure; then 183 exitcode=1 184 echo as_func_failure succeeded. 185fi 186 187if as_func_ret_success; then 188 : 189else 190 exitcode=1 191 echo as_func_ret_success failed. 192fi 193 194if as_func_ret_failure; then 195 exitcode=1 196 echo as_func_ret_failure succeeded. 197fi 198 199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 200 : 201else 202 exitcode=1 203 echo positional parameters were not saved. 204fi 205 206test \$exitcode = 0) || { (exit 1); exit 1; } 207 208( 209 as_lineno_1=\$LINENO 210 as_lineno_2=\$LINENO 211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 213") 2> /dev/null; then 214 : 215else 216 as_candidate_shells= 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 case $as_dir in 223 /*) 224 for as_base in sh bash ksh sh5; do 225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 226 done;; 227 esac 228done 229IFS=$as_save_IFS 230 231 232 for as_shell in $as_candidate_shells $SHELL; do 233 # Try only shells which exist, to save several forks. 234 if test -f "$as_shell" && 235 { ("$as_shell") 2> /dev/null <<\_ASEOF 236# Be Bourne compatible 237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 emulate sh 239 NULLCMD=: 240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 241 # is contrary to our usage. Disable this feature. 242 alias -g '${1+"$@"}'='"$@"' 243 setopt NO_GLOB_SUBST 244else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246fi 247BIN_SH=xpg4; export BIN_SH # for Tru64 248DUALCASE=1; export DUALCASE # for MKS sh 249 250: 251_ASEOF 252}; then 253 CONFIG_SHELL=$as_shell 254 as_have_required=yes 255 if { "$as_shell" 2> /dev/null <<\_ASEOF 256# Be Bourne compatible 257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 emulate sh 259 NULLCMD=: 260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 261 # is contrary to our usage. Disable this feature. 262 alias -g '${1+"$@"}'='"$@"' 263 setopt NO_GLOB_SUBST 264else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266fi 267BIN_SH=xpg4; export BIN_SH # for Tru64 268DUALCASE=1; export DUALCASE # for MKS sh 269 270: 271(as_func_return () { 272 (exit $1) 273} 274as_func_success () { 275 as_func_return 0 276} 277as_func_failure () { 278 as_func_return 1 279} 280as_func_ret_success () { 281 return 0 282} 283as_func_ret_failure () { 284 return 1 285} 286 287exitcode=0 288if as_func_success; then 289 : 290else 291 exitcode=1 292 echo as_func_success failed. 293fi 294 295if as_func_failure; then 296 exitcode=1 297 echo as_func_failure succeeded. 298fi 299 300if as_func_ret_success; then 301 : 302else 303 exitcode=1 304 echo as_func_ret_success failed. 305fi 306 307if as_func_ret_failure; then 308 exitcode=1 309 echo as_func_ret_failure succeeded. 310fi 311 312if ( set x; as_func_ret_success y && test x = "$1" ); then 313 : 314else 315 exitcode=1 316 echo positional parameters were not saved. 317fi 318 319test $exitcode = 0) || { (exit 1); exit 1; } 320 321( 322 as_lineno_1=$LINENO 323 as_lineno_2=$LINENO 324 test "x$as_lineno_1" != "x$as_lineno_2" && 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 326 327_ASEOF 328}; then 329 break 330fi 331 332fi 333 334 done 335 336 if test "x$CONFIG_SHELL" != x; then 337 for as_var in BASH_ENV ENV 338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 339 done 340 export CONFIG_SHELL 341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 342fi 343 344 345 if test $as_have_required = no; then 346 echo This script requires a shell more modern than all the 347 echo shells that I found on your system. Please install a 348 echo modern shell, or manually run the script under such a 349 echo shell if you do have one. 350 { (exit 1); exit 1; } 351fi 352 353 354fi 355 356fi 357 358 359 360(eval "as_func_return () { 361 (exit \$1) 362} 363as_func_success () { 364 as_func_return 0 365} 366as_func_failure () { 367 as_func_return 1 368} 369as_func_ret_success () { 370 return 0 371} 372as_func_ret_failure () { 373 return 1 374} 375 376exitcode=0 377if as_func_success; then 378 : 379else 380 exitcode=1 381 echo as_func_success failed. 382fi 383 384if as_func_failure; then 385 exitcode=1 386 echo as_func_failure succeeded. 387fi 388 389if as_func_ret_success; then 390 : 391else 392 exitcode=1 393 echo as_func_ret_success failed. 394fi 395 396if as_func_ret_failure; then 397 exitcode=1 398 echo as_func_ret_failure succeeded. 399fi 400 401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 402 : 403else 404 exitcode=1 405 echo positional parameters were not saved. 406fi 407 408test \$exitcode = 0") || { 409 echo No shell found that supports shell functions. 410 echo Please tell autoconf@gnu.org about your system, 411 echo including any error possibly output before this 412 echo message 413} 414 415 416 417 as_lineno_1=$LINENO 418 as_lineno_2=$LINENO 419 test "x$as_lineno_1" != "x$as_lineno_2" && 420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 421 422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 423 # uniformly replaced by the line number. The first 'sed' inserts a 424 # line-number line after each line using $LINENO; the second 'sed' 425 # does the real work. The second script uses 'N' to pair each 426 # line-number line with the line containing $LINENO, and appends 427 # trailing '-' during substitution so that $LINENO is not a special 428 # case at line end. 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 430 # scripts with optimization help from Paolo Bonzini. Blame Lee 431 # E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 449 { (exit 1); exit 1; }; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466ECHO_C= ECHO_N= ECHO_T= 467case `echo -n x` in 468-n*) 469 case `echo 'x\c'` in 470 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 471 *) ECHO_C='\c';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477if expr a : '\(a\)' >/dev/null 2>&1 && 478 test "X`expr 00001 : '.*\(...\)'`" = X001; then 479 as_expr=expr 480else 481 as_expr=false 482fi 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 490fi 491echo >conf$$.file 492if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p=: 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as 516# systems may use methods other than mode bits to determine executability. 517cat >conf$$.file <<_ASEOF 518#! /bin/sh 519exit 0 520_ASEOF 521chmod +x conf$$.file 522if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524else 525 as_executable_p=: 526fi 527rm -f conf$$.file 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535 536 537 538# Check that we are running under the correct shell. 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541case X$ECHO in 542X*--fallback-echo) 543 # Remove one level of quotation (which was required for Make). 544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 545 ;; 546esac 547 548echo=${ECHO-echo} 549if test "X$1" = X--no-reexec; then 550 # Discard the --no-reexec flag, and continue. 551 shift 552elif test "X$1" = X--fallback-echo; then 553 # Avoid inline document here, it may be left over 554 : 555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 556 # Yippee, $echo works! 557 : 558else 559 # Restart under the correct shell. 560 exec $SHELL "$0" --no-reexec ${1+"$@"} 561fi 562 563if test "X$1" = X--fallback-echo; then 564 # used as fallback echo 565 shift 566 cat <<EOF 567$* 568EOF 569 exit 0 570fi 571 572# The HP-UX ksh and POSIX shell print the target directory to stdout 573# if CDPATH is set. 574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 575 576if test -z "$ECHO"; then 577if test "X${echo_test_string+set}" != Xset; then 578# find a string as large as possible, as long as the shell can cope with it 579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 581 if (echo_test_string=`eval $cmd`) 2>/dev/null && 582 echo_test_string=`eval $cmd` && 583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 584 then 585 break 586 fi 587 done 588fi 589 590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 592 test "X$echo_testing_string" = "X$echo_test_string"; then 593 : 594else 595 # The Solaris, AIX, and Digital Unix default echo programs unquote 596 # backslashes. This makes it impossible to quote backslashes using 597 # echo "$something" | sed 's/\\/\\\\/g' 598 # 599 # So, first we look for a working echo in the user's PATH. 600 601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 602 for dir in $PATH /usr/ucb; do 603 IFS="$lt_save_ifs" 604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 echo="$dir/echo" 609 break 610 fi 611 done 612 IFS="$lt_save_ifs" 613 614 if test "X$echo" = Xecho; then 615 # We didn't find a better echo, so look for alternatives. 616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 618 test "X$echo_testing_string" = "X$echo_test_string"; then 619 # This shell has a builtin print -r that does the trick. 620 echo='print -r' 621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 622 test "X$CONFIG_SHELL" != X/bin/ksh; then 623 # If we have ksh, try running configure again with it. 624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 625 export ORIGINAL_CONFIG_SHELL 626 CONFIG_SHELL=/bin/ksh 627 export CONFIG_SHELL 628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 629 else 630 # Try using printf. 631 echo='printf %s\n' 632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # Cool, printf works 636 : 637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 642 export CONFIG_SHELL 643 SHELL="$CONFIG_SHELL" 644 export SHELL 645 echo="$CONFIG_SHELL $0 --fallback-echo" 646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 647 test "X$echo_testing_string" = 'X\t' && 648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 echo="$CONFIG_SHELL $0 --fallback-echo" 651 else 652 # maybe with a smaller string... 653 prev=: 654 655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 657 then 658 break 659 fi 660 prev="$cmd" 661 done 662 663 if test "$prev" != 'sed 50q "$0"'; then 664 echo_test_string=`eval $prev` 665 export echo_test_string 666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 667 else 668 # Oops. We lost completely, so just stick with echo. 669 echo=echo 670 fi 671 fi 672 fi 673 fi 674fi 675fi 676 677# Copy echo and quote the copy suitably for passing to libtool from 678# the Makefile, instead of quoting the original, which is used later. 679ECHO=$echo 680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 682fi 683 684 685 686 687tagnames=${tagnames+${tagnames},}CXX 688 689tagnames=${tagnames+${tagnames},}F77 690 691exec 7<&0 </dev/null 6>&1 692 693# Name of the host. 694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 695# so uname gets run too. 696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 697 698# 699# Initializations. 700# 701ac_default_prefix=/usr/local 702ac_clean_files= 703ac_config_libobj_dir=. 704LIB@&t@OBJS= 705cross_compiling=no 706subdirs= 707MFLAGS= 708MAKEFLAGS= 709SHELL=${CONFIG_SHELL-/bin/sh} 710 711# Identity of this package. 712PACKAGE_NAME='csoap' 713PACKAGE_TARNAME='csoap' 714PACKAGE_VERSION='1.1.0' 715PACKAGE_STRING='csoap 1.1.0' 716PACKAGE_BUGREPORT='' 717 718ac_unique_file="nanohttp/nanohttp-server.c" 719ac_unique_file="libcsoap/soap-server.c" 720# Factoring default headers for most tests. 721ac_includes_default="\ 722#include <stdio.h> 723#if HAVE_SYS_TYPES_H 724# include <sys/types.h> 725#endif 726#if HAVE_SYS_STAT_H 727# include <sys/stat.h> 728#endif 729#if STDC_HEADERS 730# include <stdlib.h> 731# include <stddef.h> 732#else 733# if HAVE_STDLIB_H 734# include <stdlib.h> 735# endif 736#endif 737#if HAVE_STRING_H 738# if !STDC_HEADERS && HAVE_MEMORY_H 739# include <memory.h> 740# endif 741# include <string.h> 742#endif 743#if HAVE_STRINGS_H 744# include <strings.h> 745#endif 746#if HAVE_INTTYPES_H 747# include <inttypes.h> 748#endif 749#if HAVE_STDINT_H 750# include <stdint.h> 751#endif 752#if HAVE_UNISTD_H 753# include <unistd.h> 754#endif" 755 756ac_subst_vars='SHELL 757PATH_SEPARATOR 758PACKAGE_NAME 759PACKAGE_TARNAME 760PACKAGE_VERSION 761PACKAGE_STRING 762PACKAGE_BUGREPORT 763exec_prefix 764prefix 765program_transform_name 766bindir 767sbindir 768libexecdir 769datarootdir 770datadir 771sysconfdir 772sharedstatedir 773localstatedir 774includedir 775oldincludedir 776docdir 777infodir 778htmldir 779dvidir 780pdfdir 781psdir 782libdir 783localedir 784mandir 785DEFS 786ECHO_C 787ECHO_N 788ECHO_T 789LIBS 790build_alias 791host_alias 792target_alias 793INSTALL_PROGRAM 794INSTALL_SCRIPT 795INSTALL_DATA 796CYGPATH_W 797PACKAGE 798VERSION 799ACLOCAL 800AUTOCONF 801AUTOMAKE 802AUTOHEADER 803MAKEINFO 804install_sh 805STRIP 806INSTALL_STRIP_PROGRAM 807mkdir_p 808AWK 809SET_MAKE 810am__leading_dot 811AMTAR 812am__tar 813am__untar 814CC 815CFLAGS 816LDFLAGS 817CPPFLAGS 818ac_ct_CC 819EXEEXT 820OBJEXT 821DEPDIR 822am__include 823am__quote 824AMDEP_TRUE 825AMDEP_FALSE 826AMDEPBACKSLASH 827CCDEPMODE 828am__fastdepCC_TRUE 829am__fastdepCC_FALSE 830build 831build_cpu 832build_vendor 833build_os 834host 835host_cpu 836host_vendor 837host_os 838GREP 839EGREP 840LN_S 841ECHO 842AR 843RANLIB 844CPP 845CXX 846CXXFLAGS 847ac_ct_CXX 848CXXDEPMODE 849am__fastdepCXX_TRUE 850am__fastdepCXX_FALSE 851CXXCPP 852F77 853FFLAGS 854ac_ct_F77 855LIBTOOL 856csoap_major 857csoap_minor 858csoap_patch 859csoap_release 860csoap_version 861nanohttp_release 862nanohttp_version 863LIB@&t@OBJS 864acx_pthread_config 865PTHREAD_CC 866PTHREAD_LIBS 867PTHREAD_CFLAGS 868LIBSOCKET 869LIBNSL 870XML2_CONFIG 871XML_CPPFLAGS 872XML_LIBS 873LTLIBOBJS' 874ac_subst_files='' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881CPPFLAGS 882CPP 883CXX 884CXXFLAGS 885CCC 886CXXCPP 887F77 888FFLAGS' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 # Accept the important Cygnus configure options, so we can diagnose typos. 954 955 case $ac_dashdash$ac_option in 956 --) 957 ac_dashdash=yes ;; 958 959 -bindir | --bindir | --bindi | --bind | --bin | --bi) 960 ac_prev=bindir ;; 961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 962 bindir=$ac_optarg ;; 963 964 -build | --build | --buil | --bui | --bu) 965 ac_prev=build_alias ;; 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 967 build_alias=$ac_optarg ;; 968 969 -cache-file | --cache-file | --cache-fil | --cache-fi \ 970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 971 ac_prev=cache_file ;; 972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 974 cache_file=$ac_optarg ;; 975 976 --config-cache | -C) 977 cache_file=config.cache ;; 978 979 -datadir | --datadir | --datadi | --datad) 980 ac_prev=datadir ;; 981 -datadir=* | --datadir=* | --datadi=* | --datad=*) 982 datadir=$ac_optarg ;; 983 984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 985 | --dataroo | --dataro | --datar) 986 ac_prev=datarootdir ;; 987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 989 datarootdir=$ac_optarg ;; 990 991 -disable-* | --disable-*) 992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 996 { (exit 1); exit 1; }; } 997 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 998 eval enable_$ac_feature=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1015 { (exit 1); exit 1; }; } 1016 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1017 eval enable_$ac_feature=\$ac_optarg ;; 1018 1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1021 | --exec | --exe | --ex) 1022 ac_prev=exec_prefix ;; 1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1025 | --exec=* | --exe=* | --ex=*) 1026 exec_prefix=$ac_optarg ;; 1027 1028 -gas | --gas | --ga | --g) 1029 # Obsolete; use --with-gas. 1030 with_gas=yes ;; 1031 1032 -help | --help | --hel | --he | -h) 1033 ac_init_help=long ;; 1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1035 ac_init_help=recursive ;; 1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1037 ac_init_help=short ;; 1038 1039 -host | --host | --hos | --ho) 1040 ac_prev=host_alias ;; 1041 -host=* | --host=* | --hos=* | --ho=*) 1042 host_alias=$ac_optarg ;; 1043 1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1045 ac_prev=htmldir ;; 1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1047 | --ht=*) 1048 htmldir=$ac_optarg ;; 1049 1050 -includedir | --includedir | --includedi | --included | --include \ 1051 | --includ | --inclu | --incl | --inc) 1052 ac_prev=includedir ;; 1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1054 | --includ=* | --inclu=* | --incl=* | --inc=*) 1055 includedir=$ac_optarg ;; 1056 1057 -infodir | --infodir | --infodi | --infod | --info | --inf) 1058 ac_prev=infodir ;; 1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1060 infodir=$ac_optarg ;; 1061 1062 -libdir | --libdir | --libdi | --libd) 1063 ac_prev=libdir ;; 1064 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1065 libdir=$ac_optarg ;; 1066 1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1068 | --libexe | --libex | --libe) 1069 ac_prev=libexecdir ;; 1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1071 | --libexe=* | --libex=* | --libe=*) 1072 libexecdir=$ac_optarg ;; 1073 1074 -localedir | --localedir | --localedi | --localed | --locale) 1075 ac_prev=localedir ;; 1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1077 localedir=$ac_optarg ;; 1078 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1080 | --localstate | --localstat | --localsta | --localst | --locals) 1081 ac_prev=localstatedir ;; 1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1084 localstatedir=$ac_optarg ;; 1085 1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1087 ac_prev=mandir ;; 1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1089 mandir=$ac_optarg ;; 1090 1091 -nfp | --nfp | --nf) 1092 # Obsolete; use --without-fp. 1093 with_fp=no ;; 1094 1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1096 | --no-cr | --no-c | -n) 1097 no_create=yes ;; 1098 1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1101 no_recursion=yes ;; 1102 1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1105 | --oldin | --oldi | --old | --ol | --o) 1106 ac_prev=oldincludedir ;; 1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1110 oldincludedir=$ac_optarg ;; 1111 1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1113 ac_prev=prefix ;; 1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1115 prefix=$ac_optarg ;; 1116 1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1118 | --program-pre | --program-pr | --program-p) 1119 ac_prev=program_prefix ;; 1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1122 program_prefix=$ac_optarg ;; 1123 1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1125 | --program-suf | --program-su | --program-s) 1126 ac_prev=program_suffix ;; 1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1129 program_suffix=$ac_optarg ;; 1130 1131 -program-transform-name | --program-transform-name \ 1132 | --program-transform-nam | --program-transform-na \ 1133 | --program-transform-n | --program-transform- \ 1134 | --program-transform | --program-transfor \ 1135 | --program-transfo | --program-transf \ 1136 | --program-trans | --program-tran \ 1137 | --progr-tra | --program-tr | --program-t) 1138 ac_prev=program_transform_name ;; 1139 -program-transform-name=* | --program-transform-name=* \ 1140 | --program-transform-nam=* | --program-transform-na=* \ 1141 | --program-transform-n=* | --program-transform-=* \ 1142 | --program-transform=* | --program-transfor=* \ 1143 | --program-transfo=* | --program-transf=* \ 1144 | --program-trans=* | --program-tran=* \ 1145 | --progr-tra=* | --program-tr=* | --program-t=*) 1146 program_transform_name=$ac_optarg ;; 1147 1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1149 ac_prev=pdfdir ;; 1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1151 pdfdir=$ac_optarg ;; 1152 1153 -psdir | --psdir | --psdi | --psd | --ps) 1154 ac_prev=psdir ;; 1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1156 psdir=$ac_optarg ;; 1157 1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1159 | -silent | --silent | --silen | --sile | --sil) 1160 silent=yes ;; 1161 1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1163 ac_prev=sbindir ;; 1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1165 | --sbi=* | --sb=*) 1166 sbindir=$ac_optarg ;; 1167 1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1170 | --sharedst | --shareds | --shared | --share | --shar \ 1171 | --sha | --sh) 1172 ac_prev=sharedstatedir ;; 1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1176 | --sha=* | --sh=*) 1177 sharedstatedir=$ac_optarg ;; 1178 1179 -site | --site | --sit) 1180 ac_prev=site ;; 1181 -site=* | --site=* | --sit=*) 1182 site=$ac_optarg ;; 1183 1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1185 ac_prev=srcdir ;; 1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1187 srcdir=$ac_optarg ;; 1188 1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1190 | --syscon | --sysco | --sysc | --sys | --sy) 1191 ac_prev=sysconfdir ;; 1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1194 sysconfdir=$ac_optarg ;; 1195 1196 -target | --target | --targe | --targ | --tar | --ta | --t) 1197 ac_prev=target_alias ;; 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1199 target_alias=$ac_optarg ;; 1200 1201 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1202 verbose=yes ;; 1203 1204 -version | --version | --versio | --versi | --vers | -V) 1205 ac_init_version=: ;; 1206 1207 -with-* | --with-*) 1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1211 { echo "$as_me: error: invalid package name: $ac_package" >&2 1212 { (exit 1); exit 1; }; } 1213 ac_package=`echo $ac_package| sed 's/-/_/g'` 1214 eval with_$ac_package=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/-/_/g'` 1223 eval with_$ac_package=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) { echo "$as_me: error: unrecognized option: $ac_option 1244Try \`$0 --help' for more information." >&2 1245 { (exit 1); exit 1; }; } 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1253 { (exit 1); exit 1; }; } 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 { echo "$as_me: error: missing argument to $ac_option" >&2 1271 { (exit 1); exit 1; }; } 1272fi 1273 1274# Be sure to have absolute directory names. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1286 { (exit 1); exit 1; }; } 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1301 If a cross compiler is detected then cross compile mode will be used." >&2 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 { echo "$as_me: error: Working directory cannot be determined" >&2 1317 { (exit 1); exit 1; }; } 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 { echo "$as_me: error: pwd does not report name of working directory" >&2 1320 { (exit 1); exit 1; }; } 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$0" || 1328$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$0" : 'X\(//\)[^/]' \| \ 1330 X"$0" : 'X\(//\)$' \| \ 1331 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1332echo X"$0" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1360 { (exit 1); exit 1; }; } 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1365 { (exit 1); exit 1; }; } 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures csoap 1.1.0 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/csoap@:>@ 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of csoap 1.1.0:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --disable-dependency-tracking speeds up one-time build 1469 --enable-dependency-tracking do not reject slow dependency extractors 1470 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1471 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1472 --enable-fast-install@<:@=PKGS@:>@ 1473 optimize for fast installation @<:@default=yes@:>@ 1474 --disable-libtool-lock avoid locking (might break parallel builds) 1475 --disable-xmltest Do not try to compile and run a test LIBXML program 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1481 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1482 both@:>@ 1483 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@ 1484 --with-xml-prefix=PFX Prefix where libxml is installed (optional) 1485 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional) 1486 --with-ssl=PFX will check PFX for ssl library 1487 --with-ssl will check /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr for ssl library 1488 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 CXX C++ compiler command 1499 CXXFLAGS C++ compiler flags 1500 CXXCPP C++ preprocessor 1501 F77 Fortran 77 compiler command 1502 FFLAGS Fortran 77 compiler flags 1503 1504Use these variables to override the choices made by `configure' or to help 1505it to find libraries and programs with nonstandard names/locations. 1506 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567csoap configure 1.1.0 1568generated by GNU Autoconf 2.59e 1569 1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577cat >config.log <<_ACEOF 1578This file contains any messages produced by compilers while 1579running configure, to aid debugging if configure makes a mistake. 1580 1581It was created by csoap $as_me 1.1.0, which was 1582generated by GNU Autoconf 2.59e. Invocation command line was 1583 1584 $ $0 $@ 1585 1586_ACEOF 1587exec 5>>config.log 1588{ 1589cat <<_ASUNAME 1590@%:@@%:@ --------- @%:@@%:@ 1591@%:@@%:@ Platform. @%:@@%:@ 1592@%:@@%:@ --------- @%:@@%:@ 1593 1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1595uname -m = `(uname -m) 2>/dev/null || echo unknown` 1596uname -r = `(uname -r) 2>/dev/null || echo unknown` 1597uname -s = `(uname -s) 2>/dev/null || echo unknown` 1598uname -v = `(uname -v) 2>/dev/null || echo unknown` 1599 1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1601/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1602 1603/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1604/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1606/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1607/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1608/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1609/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1610 1611_ASUNAME 1612 1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1614for as_dir in $PATH 1615do 1616 IFS=$as_save_IFS 1617 test -z "$as_dir" && as_dir=. 1618 echo "PATH: $as_dir" 1619done 1620IFS=$as_save_IFS 1621 1622} >&5 1623 1624cat >&5 <<_ACEOF 1625 1626 1627@%:@@%:@ ----------- @%:@@%:@ 1628@%:@@%:@ Core tests. @%:@@%:@ 1629@%:@@%:@ ----------- @%:@@%:@ 1630 1631_ACEOF 1632 1633 1634# Keep a trace of the command line. 1635# Strip out --no-create and --no-recursion so they do not pile up. 1636# Strip out --silent because we don't want to record it for future runs. 1637# Also quote any args containing shell meta-characters. 1638# Make two passes to allow for proper duplicate-argument suppression. 1639ac_configure_args= 1640ac_configure_args0= 1641ac_configure_args1= 1642ac_must_keep_next=false 1643for ac_pass in 1 2 1644do 1645 for ac_arg 1646 do 1647 case $ac_arg in 1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1650 | -silent | --silent | --silen | --sile | --sil) 1651 continue ;; 1652 *\'*) 1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 esac 1655 case $ac_pass in 1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1657 2) 1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1659 if test $ac_must_keep_next = true; then 1660 ac_must_keep_next=false # Got value, back to normal. 1661 else 1662 case $ac_arg in 1663 *=* | --config-cache | -C | -disable-* | --disable-* \ 1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1666 | -with-* | --with-* | -without-* | --without-* | --x) 1667 case "$ac_configure_args0 " in 1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1669 esac 1670 ;; 1671 -* ) ac_must_keep_next=true ;; 1672 esac 1673 fi 1674 ac_configure_args="$ac_configure_args '$ac_arg'" 1675 ;; 1676 esac 1677 done 1678done 1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1681 1682# When interrupted or exit'd, cleanup temporary files, and complete 1683# config.log. We remove comments because anyway the quotes in there 1684# would cause problems or look ugly. 1685# WARNING: Use '\'' to represent an apostrophe within the trap. 1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1687trap 'exit_status=$? 1688 # Save into config.log some information that might help in debugging. 1689 { 1690 echo 1691 1692 cat <<\_ASBOX 1693@%:@@%:@ ---------------- @%:@@%:@ 1694@%:@@%:@ Cache variables. @%:@@%:@ 1695@%:@@%:@ ---------------- @%:@@%:@ 1696_ASBOX 1697 echo 1698 # The following way of writing the cache mishandles newlines in values, 1699( 1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1701 eval ac_val=\$$ac_var 1702 case $ac_val in #( 1703 *${as_nl}*) 1704 case $ac_var in #( 1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1707 esac 1708 case $ac_var in #( 1709 _ | IFS | as_nl) ;; #( 1710 *) $as_unset $ac_var ;; 1711 esac ;; 1712 esac 1713 done 1714 (set) 2>&1 | 1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1716 *${as_nl}ac_space=\ *) 1717 sed -n \ 1718 "s/'\''/'\''\\\\'\'''\''/g; 1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1720 ;; #( 1721 *) 1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1723 ;; 1724 esac | 1725 sort 1726) 1727 echo 1728 1729 cat <<\_ASBOX 1730@%:@@%:@ ----------------- @%:@@%:@ 1731@%:@@%:@ Output variables. @%:@@%:@ 1732@%:@@%:@ ----------------- @%:@@%:@ 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_vars 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 1745 if test -n "$ac_subst_files"; then 1746 cat <<\_ASBOX 1747@%:@@%:@ ------------------- @%:@@%:@ 1748@%:@@%:@ File substitutions. @%:@@%:@ 1749@%:@@%:@ ------------------- @%:@@%:@ 1750_ASBOX 1751 echo 1752 for ac_var in $ac_subst_files 1753 do 1754 eval ac_val=\$$ac_var 1755 case $ac_val in 1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1757 esac 1758 echo "$ac_var='\''$ac_val'\''" 1759 done | sort 1760 echo 1761 fi 1762 1763 if test -s confdefs.h; then 1764 cat <<\_ASBOX 1765@%:@@%:@ ----------- @%:@@%:@ 1766@%:@@%:@ confdefs.h. @%:@@%:@ 1767@%:@@%:@ ----------- @%:@@%:@ 1768_ASBOX 1769 echo 1770 cat confdefs.h 1771 echo 1772 fi 1773 test "$ac_signal" != 0 && 1774 echo "$as_me: caught signal $ac_signal" 1775 echo "$as_me: exit $exit_status" 1776 } >&5 1777 rm -f core *.core core.conftest.* && 1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1779 exit $exit_status 1780' 0 1781for ac_signal in 1 2 13 15; do 1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1783done 1784ac_signal=0 1785 1786# confdefs.h avoids OS command line length limits that DEFS can exceed. 1787rm -f -r conftest* confdefs.h 1788 1789# Predefined preprocessor variables. 1790 1791cat >>confdefs.h <<_ACEOF 1792@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1813_ACEOF 1814 1815 1816# Let the site file select an alternate cache file if it wants to. 1817# Prefer explicitly selected file to automatically selected ones. 1818if test -n "$CONFIG_SITE"; then 1819 set x "$CONFIG_SITE" 1820elif test "x$prefix" != xNONE; then 1821 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1822else 1823 set x "$ac_default_prefix/share/config.site" \ 1824 "$ac_default_prefix/etc/config.site" 1825fi 1826shift 1827for ac_site_file 1828do 1829 if test -r "$ac_site_file"; then 1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1831echo "$as_me: loading site script $ac_site_file" >&6;} 1832 sed 's/^/| /' "$ac_site_file" >&5 1833 . "$ac_site_file" 1834 fi 1835done 1836 1837if test -r "$cache_file"; then 1838 # Some versions of bash will fail to source /dev/null (special 1839 # files actually), so we avoid doing that. 1840 if test -f "$cache_file"; then 1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1842echo "$as_me: loading cache $cache_file" >&6;} 1843 case $cache_file in 1844 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1845 *) . "./$cache_file";; 1846 esac 1847 fi 1848else 1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1850echo "$as_me: creating cache $cache_file" >&6;} 1851 >$cache_file 1852fi 1853 1854# Check that the precious variables saved in the cache have kept the same 1855# value. 1856ac_cache_corrupted=false 1857for ac_var in $ac_precious_vars; do 1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1859 eval ac_new_set=\$ac_env_${ac_var}_set 1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1861 eval ac_new_val=\$ac_env_${ac_var}_value 1862 case $ac_old_set,$ac_new_set in 1863 set,) 1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,set) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,);; 1872 *) 1873 if test "x$ac_old_val" != "x$ac_new_val"; then 1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1877echo "$as_me: former value: $ac_old_val" >&2;} 1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1879echo "$as_me: current value: $ac_new_val" >&2;} 1880 ac_cache_corrupted=: 1881 fi;; 1882 esac 1883 # Pass precious variables to config.status. 1884 if test "$ac_new_set" = set; then 1885 case $ac_new_val in 1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1887 *) ac_arg=$ac_var=$ac_new_val ;; 1888 esac 1889 case " $ac_configure_args " in 1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1892 esac 1893 fi 1894done 1895if $ac_cache_corrupted; then 1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1897echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927ac_ext=c 1928ac_cpp='$CPP $CPPFLAGS' 1929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1931ac_compiler_gnu=$ac_cv_c_compiler_gnu 1932 1933 1934 1935 1936 1937am__api_version="1.9" 1938ac_aux_dir= 1939for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1940 if test -f "$ac_dir/install-sh"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/install-sh -c" 1943 break 1944 elif test -f "$ac_dir/install.sh"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/install.sh -c" 1947 break 1948 elif test -f "$ac_dir/shtool"; then 1949 ac_aux_dir=$ac_dir 1950 ac_install_sh="$ac_aux_dir/shtool install -c" 1951 break 1952 fi 1953done 1954if test -z "$ac_aux_dir"; then 1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1956echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1957 { (exit 1); exit 1; }; } 1958fi 1959 1960# These three variables are undocumented and unsupported, 1961# and are intended to be withdrawn in a future Autoconf release. 1962# They can cause serious problems if a builder's source tree is in a directory 1963# whose full name contains unusual characters. 1964ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1965ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1966ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1967 1968 1969# Find a good install program. We prefer a C program (faster), 1970# so one script is as good as another. But avoid the broken or 1971# incompatible versions: 1972# SysV /etc/install, /usr/sbin/install 1973# SunOS /usr/etc/install 1974# IRIX /sbin/install 1975# AIX /bin/install 1976# AmigaOS /C/install, which installs bootblocks on floppy discs 1977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1978# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1980# OS/2's system install, which has a completely different semantic 1981# ./install, which can be erroneously created by make from ./install.sh. 1982{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1984if test -z "$INSTALL"; then 1985if test "${ac_cv_path_install+set}" = set; then 1986 echo $ECHO_N "(cached) $ECHO_C" >&6 1987else 1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989for as_dir in $PATH 1990do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 # Account for people who put trailing slashes in PATH elements. 1994case $as_dir/ in 1995 ./ | .// | /cC/* | \ 1996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1998 /usr/ucb/* ) ;; 1999 *) 2000 # OSF1 and SCO ODT 3.0 have their own names for install. 2001 # Don't use installbsd from OSF since it installs stuff as root 2002 # by default. 2003 for ac_prog in ginstall scoinst install; do 2004 for ac_exec_ext in '' $ac_executable_extensions; do 2005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2006 if test $ac_prog = install && 2007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2008 # AIX install. It has an incompatible calling convention. 2009 : 2010 elif test $ac_prog = install && 2011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2012 # program-specific install script used by HP pwplus--don't use. 2013 : 2014 else 2015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2016 break 3 2017 fi 2018 fi 2019 done 2020 done 2021 ;; 2022esac 2023done 2024IFS=$as_save_IFS 2025 2026 2027fi 2028 if test "${ac_cv_path_install+set}" = set; then 2029 INSTALL=$ac_cv_path_install 2030 else 2031 # As a last resort, use the slow shell script. Don't cache a 2032 # value for INSTALL within a source directory, because that will 2033 # break other packages using the cache if that directory is 2034 # removed, or if the value is a relative name. 2035 INSTALL=$ac_install_sh 2036 fi 2037fi 2038{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2039echo "${ECHO_T}$INSTALL" >&6; } 2040 2041# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2042# It thinks the first close brace ends the variable substitution. 2043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2044 2045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2046 2047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2048 2049{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2050echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2051# Just in case 2052sleep 1 2053echo timestamp > conftest.file 2054# Do `set' in a subshell so we don't clobber the current shell's 2055# arguments. Must try -L first in case configure is actually a 2056# symlink; some systems play weird games with the mod time of symlinks 2057# (eg FreeBSD returns the mod time of the symlink's containing 2058# directory). 2059if ( 2060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2061 if test "$*" = "X"; then 2062 # -L didn't work. 2063 set X `ls -t $srcdir/configure conftest.file` 2064 fi 2065 rm -f conftest.file 2066 if test "$*" != "X $srcdir/configure conftest.file" \ 2067 && test "$*" != "X conftest.file $srcdir/configure"; then 2068 2069 # If neither matched, then we have a broken ls. This can happen 2070 # if, for instance, CONFIG_SHELL is bash and it inherits a 2071 # broken ls alias from the environment. This has actually 2072 # happened. Such a system could not be considered "sane". 2073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2074alias in your environment" >&5 2075echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2076alias in your environment" >&2;} 2077 { (exit 1); exit 1; }; } 2078 fi 2079 2080 test "$2" = conftest.file 2081 ) 2082then 2083 # Ok. 2084 : 2085else 2086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2087Check your system clock" >&5 2088echo "$as_me: error: newly created file is older than distributed files! 2089Check your system clock" >&2;} 2090 { (exit 1); exit 1; }; } 2091fi 2092{ echo "$as_me:$LINENO: result: yes" >&5 2093echo "${ECHO_T}yes" >&6; } 2094test "$program_prefix" != NONE && 2095 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2096# Use a double $ so make ignores it. 2097test "$program_suffix" != NONE && 2098 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2099# Double any \ or $. echo might interpret backslashes. 2100# By default was `s,x,x', remove it if useless. 2101cat <<\_ACEOF >conftest.sed 2102s/[\\$]/&&/g;s/;s,x,x,$// 2103_ACEOF 2104program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2105rm -f conftest.sed 2106 2107# expand $ac_aux_dir to an absolute path 2108am_aux_dir=`cd $ac_aux_dir && pwd` 2109 2110test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2111# Use eval to expand $SHELL 2112if eval "$MISSING --run true"; then 2113 am_missing_run="$MISSING --run " 2114else 2115 am_missing_run= 2116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2117echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2118fi 2119 2120if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2121 # We used to keeping the `.' as first argument, in order to 2122 # allow $(mkdir_p) to be used without argument. As in 2123 # $(mkdir_p) $(somedir) 2124 # where $(somedir) is conditionally defined. However this is wrong 2125 # for two reasons: 2126 # 1. if the package is installed by a user who cannot write `.' 2127 # make install will fail, 2128 # 2. the above comment should most certainly read 2129 # $(mkdir_p) $(DESTDIR)$(somedir) 2130 # so it does not work when $(somedir) is undefined and 2131 # $(DESTDIR) is not. 2132 # To support the latter case, we have to write 2133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2134 # so the `.' trick is pointless. 2135 mkdir_p='mkdir -p --' 2136else 2137 # On NextStep and OpenStep, the `mkdir' command does not 2138 # recognize any option. It will interpret all options as 2139 # directories to create, and then abort because `.' already 2140 # exists. 2141 for d in ./-p ./--version; 2142 do 2143 test -d $d && rmdir $d 2144 done 2145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2146 if test -f "$ac_aux_dir/mkinstalldirs"; then 2147 mkdir_p='$(mkinstalldirs)' 2148 else 2149 mkdir_p='$(install_sh) -d' 2150 fi 2151fi 2152 2153for ac_prog in gawk mawk nawk awk 2154do 2155 # Extract the first word of "$ac_prog", so it can be a program name with args. 2156set dummy $ac_prog; ac_word=$2 2157{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2159if test "${ac_cv_prog_AWK+set}" = set; then 2160 echo $ECHO_N "(cached) $ECHO_C" >&6 2161else 2162 if test -n "$AWK"; then 2163 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2164else 2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2166for as_dir in $PATH 2167do 2168 IFS=$as_save_IFS 2169 test -z "$as_dir" && as_dir=. 2170 for ac_exec_ext in '' $ac_executable_extensions; do 2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2172 ac_cv_prog_AWK="$ac_prog" 2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2174 break 2 2175 fi 2176done 2177done 2178IFS=$as_save_IFS 2179 2180fi 2181fi 2182AWK=$ac_cv_prog_AWK 2183if test -n "$AWK"; then 2184 { echo "$as_me:$LINENO: result: $AWK" >&5 2185echo "${ECHO_T}$AWK" >&6; } 2186else 2187 { echo "$as_me:$LINENO: result: no" >&5 2188echo "${ECHO_T}no" >&6; } 2189fi 2190 2191 2192 test -n "$AWK" && break 2193done 2194 2195{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2196echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2197set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'` 2198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2199 echo $ECHO_N "(cached) $ECHO_C" >&6 2200else 2201 cat >conftest.make <<\_ACEOF 2202SHELL = /bin/sh 2203all: 2204 @echo '@@@%%%=$(MAKE)=@@@%%%' 2205_ACEOF 2206# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2207case `${MAKE-make} -f conftest.make 2>/dev/null` in 2208 *@@@%%%=?*=@@@%%%*) 2209 eval ac_cv_prog_make_${ac_make}_set=yes;; 2210 *) 2211 eval ac_cv_prog_make_${ac_make}_set=no;; 2212esac 2213rm -f conftest.make 2214fi 2215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2216 { echo "$as_me:$LINENO: result: yes" >&5 2217echo "${ECHO_T}yes" >&6; } 2218 SET_MAKE= 2219else 2220 { echo "$as_me:$LINENO: result: no" >&5 2221echo "${ECHO_T}no" >&6; } 2222 SET_MAKE="MAKE=${MAKE-make}" 2223fi 2224 2225rm -rf .tst 2>/dev/null 2226mkdir .tst 2>/dev/null 2227if test -d .tst; then 2228 am__leading_dot=. 2229else 2230 am__leading_dot=_ 2231fi 2232rmdir .tst 2>/dev/null 2233 2234# test to see if srcdir already configured 2235if test "`cd $srcdir && pwd`" != "`pwd`" && 2236 test -f $srcdir/config.status; then 2237 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2238echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2239 { (exit 1); exit 1; }; } 2240fi 2241 2242# test whether we have cygpath 2243if test -z "$CYGPATH_W"; then 2244 if (cygpath --version) >/dev/null 2>/dev/null; then 2245 CYGPATH_W='cygpath -w' 2246 else 2247 CYGPATH_W=echo 2248 fi 2249fi 2250 2251 2252# Define the identity of the package. 2253 PACKAGE='csoap' 2254 VERSION='1.1.0' 2255 2256 2257cat >>confdefs.h <<_ACEOF 2258@%:@define PACKAGE "$PACKAGE" 2259_ACEOF 2260 2261 2262cat >>confdefs.h <<_ACEOF 2263@%:@define VERSION "$VERSION" 2264_ACEOF 2265 2266# Some tools Automake needs. 2267 2268ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2269 2270 2271AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2272 2273 2274AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2275 2276 2277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2278 2279 2280MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2281 2282install_sh=${install_sh-"$am_aux_dir/install-sh"} 2283 2284# Installed binaries are usually stripped using `strip' when the user 2285# run `make install-strip'. However `strip' might not be the right 2286# tool to use in cross-compilation environments, therefore Automake 2287# will honor the `STRIP' environment variable to overrule this program. 2288if test "$cross_compiling" != no; then 2289 if test -n "$ac_tool_prefix"; then 2290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2291set dummy ${ac_tool_prefix}strip; ac_word=$2 2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2294if test "${ac_cv_prog_STRIP+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 if test -n "$STRIP"; then 2298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2299else 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2307 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2309 break 2 2310 fi 2311done 2312done 2313IFS=$as_save_IFS 2314 2315fi 2316fi 2317STRIP=$ac_cv_prog_STRIP 2318if test -n "$STRIP"; then 2319 { echo "$as_me:$LINENO: result: $STRIP" >&5 2320echo "${ECHO_T}$STRIP" >&6; } 2321else 2322 { echo "$as_me:$LINENO: result: no" >&5 2323echo "${ECHO_T}no" >&6; } 2324fi 2325 2326 2327fi 2328if test -z "$ac_cv_prog_STRIP"; then 2329 ac_ct_STRIP=$STRIP 2330 # Extract the first word of "strip", so it can be a program name with args. 2331set dummy strip; ac_word=$2 2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2334if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 if test -n "$ac_ct_STRIP"; then 2338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2339else 2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341for as_dir in $PATH 2342do 2343 IFS=$as_save_IFS 2344 test -z "$as_dir" && as_dir=. 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2347 ac_cv_prog_ac_ct_STRIP="strip" 2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2349 break 2 2350 fi 2351done 2352done 2353IFS=$as_save_IFS 2354 2355fi 2356fi 2357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2358if test -n "$ac_ct_STRIP"; then 2359 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2360echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2361else 2362 { echo "$as_me:$LINENO: result: no" >&5 2363echo "${ECHO_T}no" >&6; } 2364fi 2365 2366 if test "x$ac_ct_STRIP" = x; then 2367 STRIP=":" 2368 else 2369 case $cross_compiling:$ac_tool_warned in 2370yes:) 2371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2372whose name does not start with the host triplet. If you think this 2373configuration is useful to you, please write to autoconf@gnu.org." >&5 2374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2375whose name does not start with the host triplet. If you think this 2376configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2377ac_tool_warned=yes ;; 2378esac 2379 STRIP=$ac_ct_STRIP 2380 fi 2381else 2382 STRIP="$ac_cv_prog_STRIP" 2383fi 2384 2385fi 2386INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2387 2388# We need awk for the "check" target. The system "awk" is bad on 2389# some platforms. 2390# Always define AMTAR for backward compatibility. 2391 2392AMTAR=${AMTAR-"${am_missing_run}tar"} 2393 2394am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2395 2396 2397 2398 2399 2400 2401ac_config_headers="$ac_config_headers config.h" 2402 2403 2404ac_ext=c 2405ac_cpp='$CPP $CPPFLAGS' 2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2408ac_compiler_gnu=$ac_cv_c_compiler_gnu 2409 2410ac_ext=c 2411ac_cpp='$CPP $CPPFLAGS' 2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2414ac_compiler_gnu=$ac_cv_c_compiler_gnu 2415if test -n "$ac_tool_prefix"; then 2416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2417set dummy ${ac_tool_prefix}gcc; ac_word=$2 2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2420if test "${ac_cv_prog_CC+set}" = set; then 2421 echo $ECHO_N "(cached) $ECHO_C" >&6 2422else 2423 if test -n "$CC"; then 2424 ac_cv_prog_CC="$CC" # Let the user override the test. 2425else 2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427for as_dir in $PATH 2428do 2429 IFS=$as_save_IFS 2430 test -z "$as_dir" && as_dir=. 2431 for ac_exec_ext in '' $ac_executable_extensions; do 2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2435 break 2 2436 fi 2437done 2438done 2439IFS=$as_save_IFS 2440 2441fi 2442fi 2443CC=$ac_cv_prog_CC 2444if test -n "$CC"; then 2445 { echo "$as_me:$LINENO: result: $CC" >&5 2446echo "${ECHO_T}$CC" >&6; } 2447else 2448 { echo "$as_me:$LINENO: result: no" >&5 2449echo "${ECHO_T}no" >&6; } 2450fi 2451 2452 2453fi 2454if test -z "$ac_cv_prog_CC"; then 2455 ac_ct_CC=$CC 2456 # Extract the first word of "gcc", so it can be a program name with args. 2457set dummy gcc; ac_word=$2 2458{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2461 echo $ECHO_N "(cached) $ECHO_C" >&6 2462else 2463 if test -n "$ac_ct_CC"; then 2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2465else 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 ac_cv_prog_ac_ct_CC="gcc" 2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483ac_ct_CC=$ac_cv_prog_ac_ct_CC 2484if test -n "$ac_ct_CC"; then 2485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2486echo "${ECHO_T}$ac_ct_CC" >&6; } 2487else 2488 { echo "$as_me:$LINENO: result: no" >&5 2489echo "${ECHO_T}no" >&6; } 2490fi 2491 2492 if test "x$ac_ct_CC" = x; then 2493 CC="" 2494 else 2495 case $cross_compiling:$ac_tool_warned in 2496yes:) 2497{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2498whose name does not start with the host triplet. If you think this 2499configuration is useful to you, please write to autoconf@gnu.org." >&5 2500echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2501whose name does not start with the host triplet. If you think this 2502configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2503ac_tool_warned=yes ;; 2504esac 2505 CC=$ac_ct_CC 2506 fi 2507else 2508 CC="$ac_cv_prog_CC" 2509fi 2510 2511if test -z "$CC"; then 2512 if test -n "$ac_tool_prefix"; then 2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2514set dummy ${ac_tool_prefix}cc; ac_word=$2 2515{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2517if test "${ac_cv_prog_CC+set}" = set; then 2518 echo $ECHO_N "(cached) $ECHO_C" >&6 2519else 2520 if test -n "$CC"; then 2521 ac_cv_prog_CC="$CC" # Let the user override the test. 2522else 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2530 ac_cv_prog_CC="${ac_tool_prefix}cc" 2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535done 2536IFS=$as_save_IFS 2537 2538fi 2539fi 2540CC=$ac_cv_prog_CC 2541if test -n "$CC"; then 2542 { echo "$as_me:$LINENO: result: $CC" >&5 2543echo "${ECHO_T}$CC" >&6; } 2544else 2545 { echo "$as_me:$LINENO: result: no" >&5 2546echo "${ECHO_T}no" >&6; } 2547fi 2548 2549 2550 fi 2551fi 2552if test -z "$CC"; then 2553 # Extract the first word of "cc", so it can be a program name with args. 2554set dummy cc; ac_word=$2 2555{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2557if test "${ac_cv_prog_CC+set}" = set; then 2558 echo $ECHO_N "(cached) $ECHO_C" >&6 2559else 2560 if test -n "$CC"; then 2561 ac_cv_prog_CC="$CC" # Let the user override the test. 2562else 2563 ac_prog_rejected=no 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2572 ac_prog_rejected=yes 2573 continue 2574 fi 2575 ac_cv_prog_CC="cc" 2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2577 break 2 2578 fi 2579done 2580done 2581IFS=$as_save_IFS 2582 2583if test $ac_prog_rejected = yes; then 2584 # We found a bogon in the path, so make sure we never use it. 2585 set dummy $ac_cv_prog_CC 2586 shift 2587 if test $@%:@ != 0; then 2588 # We chose a different compiler from the bogus one. 2589 # However, it has the same basename, so the bogon will be chosen 2590 # first if we set CC to just the basename; use the full file name. 2591 shift 2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2593 fi 2594fi 2595fi 2596fi 2597CC=$ac_cv_prog_CC 2598if test -n "$CC"; then 2599 { echo "$as_me:$LINENO: result: $CC" >&5 2600echo "${ECHO_T}$CC" >&6; } 2601else 2602 { echo "$as_me:$LINENO: result: no" >&5 2603echo "${ECHO_T}no" >&6; } 2604fi 2605 2606 2607fi 2608if test -z "$CC"; then 2609 if test -n "$ac_tool_prefix"; then 2610 for ac_prog in cl.exe 2611 do 2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2614{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2616if test "${ac_cv_prog_CC+set}" = set; then 2617 echo $ECHO_N "(cached) $ECHO_C" >&6 2618else 2619 if test -n "$CC"; then 2620 ac_cv_prog_CC="$CC" # Let the user override the test. 2621else 2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2623for as_dir in $PATH 2624do 2625 IFS=$as_save_IFS 2626 test -z "$as_dir" && as_dir=. 2627 for ac_exec_ext in '' $ac_executable_extensions; do 2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2631 break 2 2632 fi 2633done 2634done 2635IFS=$as_save_IFS 2636 2637fi 2638fi 2639CC=$ac_cv_prog_CC 2640if test -n "$CC"; then 2641 { echo "$as_me:$LINENO: result: $CC" >&5 2642echo "${ECHO_T}$CC" >&6; } 2643else 2644 { echo "$as_me:$LINENO: result: no" >&5 2645echo "${ECHO_T}no" >&6; } 2646fi 2647 2648 2649 test -n "$CC" && break 2650 done 2651fi 2652if test -z "$CC"; then 2653 ac_ct_CC=$CC 2654 for ac_prog in cl.exe 2655do 2656 # Extract the first word of "$ac_prog", so it can be a program name with args. 2657set dummy $ac_prog; ac_word=$2 2658{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2661 echo $ECHO_N "(cached) $ECHO_C" >&6 2662else 2663 if test -n "$ac_ct_CC"; then 2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2673 ac_cv_prog_ac_ct_CC="$ac_prog" 2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683ac_ct_CC=$ac_cv_prog_ac_ct_CC 2684if test -n "$ac_ct_CC"; then 2685 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2686echo "${ECHO_T}$ac_ct_CC" >&6; } 2687else 2688 { echo "$as_me:$LINENO: result: no" >&5 2689echo "${ECHO_T}no" >&6; } 2690fi 2691 2692 2693 test -n "$ac_ct_CC" && break 2694done 2695 2696 if test "x$ac_ct_CC" = x; then 2697 CC="" 2698 else 2699 case $cross_compiling:$ac_tool_warned in 2700yes:) 2701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2702whose name does not start with the host triplet. If you think this 2703configuration is useful to you, please write to autoconf@gnu.org." >&5 2704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2705whose name does not start with the host triplet. If you think this 2706configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2707ac_tool_warned=yes ;; 2708esac 2709 CC=$ac_ct_CC 2710 fi 2711fi 2712 2713fi 2714 2715 2716test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2717See \`config.log' for more details." >&5 2718echo "$as_me: error: no acceptable C compiler found in \$PATH 2719See \`config.log' for more details." >&2;} 2720 { (exit 1); exit 1; }; } 2721 2722# Provide some information about the compiler. 2723echo "$as_me:$LINENO: checking for C compiler version" >&5 2724ac_compiler=`set X $ac_compile; echo $2` 2725{ (ac_try="$ac_compiler --version >&5" 2726case "(($ac_try" in 2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2728 *) ac_try_echo=$ac_try;; 2729esac 2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2731 (eval "$ac_compiler --version >&5") 2>&5 2732 ac_status=$? 2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); } 2735{ (ac_try="$ac_compiler -v >&5" 2736case "(($ac_try" in 2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2738 *) ac_try_echo=$ac_try;; 2739esac 2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2741 (eval "$ac_compiler -v >&5") 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); } 2745{ (ac_try="$ac_compiler -V >&5" 2746case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749esac 2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2751 (eval "$ac_compiler -V >&5") 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); } 2755 2756cat >conftest.$ac_ext <<_ACEOF 2757/* confdefs.h. */ 2758_ACEOF 2759cat confdefs.h >>conftest.$ac_ext 2760cat >>conftest.$ac_ext <<_ACEOF 2761/* end confdefs.h. */ 2762 2763int 2764main () 2765{ 2766 2767 ; 2768 return 0; 2769} 2770_ACEOF 2771ac_clean_files_save=$ac_clean_files 2772ac_clean_files="$ac_clean_files a.out a.exe b.out" 2773# Try to create an executable without -o first, disregard a.out. 2774# It will help us diagnose broken compilers, and finding out an intuition 2775# of exeext. 2776{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2777echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2778ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2779# 2780# List of possible output files, starting from the most likely. 2781# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2782# only as a last resort. b.out is created by i960 compilers. 2783ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2784# 2785# The IRIX 6 linker writes into existing files which may not be 2786# executable, retaining their permissions. Remove them first so a 2787# subsequent execution test works. 2788ac_rmfiles= 2789for ac_file in $ac_files 2790do 2791 case $ac_file in 2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2793 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2794 esac 2795done 2796rm -f $ac_rmfiles 2797 2798if { (ac_try="$ac_link_default" 2799case "(($ac_try" in 2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2801 *) ac_try_echo=$ac_try;; 2802esac 2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2804 (eval "$ac_link_default") 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; then 2808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2809# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2810# in a Makefile. We should not override ac_cv_exeext if it was cached, 2811# so that the user can short-circuit this test for compilers unknown to 2812# Autoconf. 2813for ac_file in $ac_files 2814do 2815 test -f "$ac_file" || continue 2816 case $ac_file in 2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2818 ;; 2819 [ab].out ) 2820 # We found the default executable, but exeext='' is most 2821 # certainly right. 2822 break;; 2823 *.* ) 2824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2825 then :; else 2826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2827 fi 2828 # We set ac_cv_exeext here because the later test for it is not 2829 # safe: cross compilers may not add the suffix if given an `-o' 2830 # argument, so we may need to know it at that point already. 2831 # Even if this section looks crufty: it has the advantage of 2832 # actually working. 2833 break;; 2834 * ) 2835 break;; 2836 esac 2837done 2838test "$ac_cv_exeext" = no && ac_cv_exeext= 2839 2840else 2841 echo "$as_me: failed program was:" >&5 2842sed 's/^/| /' conftest.$ac_ext >&5 2843 2844{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2845See \`config.log' for more details." >&5 2846echo "$as_me: error: C compiler cannot create executables 2847See \`config.log' for more details." >&2;} 2848 { (exit 77); exit 77; }; } 2849fi 2850 2851ac_exeext=$ac_cv_exeext 2852{ echo "$as_me:$LINENO: result: $ac_file" >&5 2853echo "${ECHO_T}$ac_file" >&6; } 2854 2855# Check that the compiler produces executables we can run. If not, either 2856# the compiler is broken, or we cross compile. 2857{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2858echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2859# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2860# If not cross compiling, check that we can run a simple program. 2861if test "$cross_compiling" != yes; then 2862 if { ac_try='./$ac_file' 2863 { (case "(($ac_try" in 2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2865 *) ac_try_echo=$ac_try;; 2866esac 2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2868 (eval "$ac_try") 2>&5 2869 ac_status=$? 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2871 (exit $ac_status); }; }; then 2872 cross_compiling=no 2873 else 2874 if test "$cross_compiling" = maybe; then 2875 cross_compiling=yes 2876 else 2877 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2878If you meant to cross compile, use \`--host'. 2879See \`config.log' for more details." >&5 2880echo "$as_me: error: cannot run C compiled programs. 2881If you meant to cross compile, use \`--host'. 2882See \`config.log' for more details." >&2;} 2883 { (exit 1); exit 1; }; } 2884 fi 2885 fi 2886fi 2887{ echo "$as_me:$LINENO: result: yes" >&5 2888echo "${ECHO_T}yes" >&6; } 2889 2890rm -f a.out a.exe conftest$ac_cv_exeext b.out 2891ac_clean_files=$ac_clean_files_save 2892# Check that the compiler produces executables we can run. If not, either 2893# the compiler is broken, or we cross compile. 2894{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2895echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2896{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2897echo "${ECHO_T}$cross_compiling" >&6; } 2898 2899{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2900echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2901if { (ac_try="$ac_link" 2902case "(($ac_try" in 2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2904 *) ac_try_echo=$ac_try;; 2905esac 2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2907 (eval "$ac_link") 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); }; then 2911 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2913# work properly (i.e., refer to `conftest.exe'), while it won't with 2914# `rm'. 2915for ac_file in conftest.exe conftest conftest.*; do 2916 test -f "$ac_file" || continue 2917 case $ac_file in 2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2920 break;; 2921 * ) break;; 2922 esac 2923done 2924else 2925 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2926See \`config.log' for more details." >&5 2927echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2928See \`config.log' for more details." >&2;} 2929 { (exit 1); exit 1; }; } 2930fi 2931 2932rm -f conftest$ac_cv_exeext 2933{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2934echo "${ECHO_T}$ac_cv_exeext" >&6; } 2935 2936rm -f conftest.$ac_ext 2937EXEEXT=$ac_cv_exeext 2938ac_exeext=$EXEEXT 2939{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2940echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2941if test "${ac_cv_objext+set}" = set; then 2942 echo $ECHO_N "(cached) $ECHO_C" >&6 2943else 2944 cat >conftest.$ac_ext <<_ACEOF 2945/* confdefs.h. */ 2946_ACEOF 2947cat confdefs.h >>conftest.$ac_ext 2948cat >>conftest.$ac_ext <<_ACEOF 2949/* end confdefs.h. */ 2950 2951int 2952main () 2953{ 2954 2955 ; 2956 return 0; 2957} 2958_ACEOF 2959rm -f conftest.o conftest.obj 2960if { (ac_try="$ac_compile" 2961case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964esac 2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2966 (eval "$ac_compile") 2>&5 2967 ac_status=$? 2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); }; then 2970 for ac_file in conftest.o conftest.obj conftest.*; do 2971 test -f "$ac_file" || continue; 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2975 break;; 2976 esac 2977done 2978else 2979 echo "$as_me: failed program was:" >&5 2980sed 's/^/| /' conftest.$ac_ext >&5 2981 2982{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2983See \`config.log' for more details." >&5 2984echo "$as_me: error: cannot compute suffix of object files: cannot compile 2985See \`config.log' for more details." >&2;} 2986 { (exit 1); exit 1; }; } 2987fi 2988 2989rm -f conftest.$ac_cv_objext conftest.$ac_ext 2990fi 2991{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2992echo "${ECHO_T}$ac_cv_objext" >&6; } 2993OBJEXT=$ac_cv_objext 2994ac_objext=$OBJEXT 2995{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2996echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2997if test "${ac_cv_c_compiler_gnu+set}" = set; then 2998 echo $ECHO_N "(cached) $ECHO_C" >&6 2999else 3000 cat >conftest.$ac_ext <<_ACEOF 3001/* confdefs.h. */ 3002_ACEOF 3003cat confdefs.h >>conftest.$ac_ext 3004cat >>conftest.$ac_ext <<_ACEOF 3005/* end confdefs.h. */ 3006 3007int 3008main () 3009{ 3010#ifndef __GNUC__ 3011 choke me 3012#endif 3013 3014 ; 3015 return 0; 3016} 3017_ACEOF 3018rm -f conftest.$ac_objext 3019if { (ac_try="$ac_compile" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3025 (eval "$ac_compile") 2>conftest.er1 3026 ac_status=$? 3027 grep -v '^ *+' conftest.er1 >conftest.err 3028 rm -f conftest.er1 3029 cat conftest.err >&5 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); } && 3032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3033 { (case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3038 (eval "$ac_try") 2>&5 3039 ac_status=$? 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; } && 3042 { ac_try='test -s conftest.$ac_objext' 3043 { (case "(($ac_try" in 3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3045 *) ac_try_echo=$ac_try;; 3046esac 3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3048 (eval "$ac_try") 2>&5 3049 ac_status=$? 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); }; }; 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 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3108 { (case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111esac 3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113 (eval "$ac_try") 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); }; } && 3117 { ac_try='test -s conftest.$ac_objext' 3118 { (case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3123 (eval "$ac_try") 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; }; then 3127 ac_cv_prog_cc_g=yes 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 CFLAGS="" 3133 cat >conftest.$ac_ext <<_ACEOF 3134/* confdefs.h. */ 3135_ACEOF 3136cat confdefs.h >>conftest.$ac_ext 3137cat >>conftest.$ac_ext <<_ACEOF 3138/* end confdefs.h. */ 3139 3140int 3141main () 3142{ 3143 3144 ; 3145 return 0; 3146} 3147_ACEOF 3148rm -f conftest.$ac_objext 3149if { (ac_try="$ac_compile" 3150case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153esac 3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3155 (eval "$ac_compile") 2>conftest.er1 3156 ac_status=$? 3157 grep -v '^ *+' conftest.er1 >conftest.err 3158 rm -f conftest.er1 3159 cat conftest.err >&5 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); } && 3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3163 { (case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_try") 2>&5 3169 ac_status=$? 3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); }; } && 3172 { ac_try='test -s conftest.$ac_objext' 3173 { (case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_try") 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); }; }; then 3182 : 3183else 3184 echo "$as_me: failed program was:" >&5 3185sed 's/^/| /' conftest.$ac_ext >&5 3186 3187 ac_c_werror_flag=$ac_save_c_werror_flag 3188 CFLAGS="-g" 3189 cat >conftest.$ac_ext <<_ACEOF 3190/* confdefs.h. */ 3191_ACEOF 3192cat confdefs.h >>conftest.$ac_ext 3193cat >>conftest.$ac_ext <<_ACEOF 3194/* end confdefs.h. */ 3195 3196int 3197main () 3198{ 3199 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204rm -f conftest.$ac_objext 3205if { (ac_try="$ac_compile" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3211 (eval "$ac_compile") 2>conftest.er1 3212 ac_status=$? 3213 grep -v '^ *+' conftest.er1 >conftest.err 3214 rm -f conftest.er1 3215 cat conftest.err >&5 3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3217 (exit $ac_status); } && 3218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3219 { (case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3224 (eval "$ac_try") 2>&5 3225 ac_status=$? 3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 (exit $ac_status); }; } && 3228 { ac_try='test -s conftest.$ac_objext' 3229 { (case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232esac 3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3234 (eval "$ac_try") 2>&5 3235 ac_status=$? 3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3237 (exit $ac_status); }; }; then 3238 ac_cv_prog_cc_g=yes 3239else 3240 echo "$as_me: failed program was:" >&5 3241sed 's/^/| /' conftest.$ac_ext >&5 3242 3243 3244fi 3245 3246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3247fi 3248 3249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3250fi 3251 3252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3253 ac_c_werror_flag=$ac_save_c_werror_flag 3254fi 3255{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3257if test "$ac_test_CFLAGS" = set; then 3258 CFLAGS=$ac_save_CFLAGS 3259elif test $ac_cv_prog_cc_g = yes; then 3260 if test "$GCC" = yes; then 3261 CFLAGS="-g -O2" 3262 else 3263 CFLAGS="-g" 3264 fi 3265else 3266 if test "$GCC" = yes; then 3267 CFLAGS="-O2" 3268 else 3269 CFLAGS= 3270 fi 3271fi 3272{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3273echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3274if test "${ac_cv_prog_cc_c89+set}" = set; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 ac_cv_prog_cc_c89=no 3278ac_save_CC=$CC 3279cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285#include <stdarg.h> 3286#include <stdio.h> 3287#include <sys/types.h> 3288#include <sys/stat.h> 3289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3290struct buf { int x; }; 3291FILE * (*rcsopen) (struct buf *, struct stat *, int); 3292static char *e (p, i) 3293 char **p; 3294 int i; 3295{ 3296 return p[i]; 3297} 3298static char *f (char * (*g) (char **, int), char **p, ...) 3299{ 3300 char *s; 3301 va_list v; 3302 va_start (v,p); 3303 s = g (p, va_arg (v,int)); 3304 va_end (v); 3305 return s; 3306} 3307 3308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3309 function prototypes and stuff, but not '\xHH' hex character constants. 3310 These don't provoke an error unfortunately, instead are silently treated 3311 as 'x'. The following induces an error, until -std is added to get 3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3313 array size at least. It's necessary to write '\x00'==0 to get something 3314 that's true only with -std. */ 3315int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3316 3317int test (int i, double x); 3318struct s1 {int (*f) (int a);}; 3319struct s2 {int (*f) (double a);}; 3320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3321int argc; 3322char **argv; 3323int 3324main () 3325{ 3326return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3333do 3334 CC="$ac_save_CC $ac_arg" 3335 rm -f conftest.$ac_objext 3336if { (ac_try="$ac_compile" 3337case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3342 (eval "$ac_compile") 2>conftest.er1 3343 ac_status=$? 3344 grep -v '^ *+' conftest.er1 >conftest.err 3345 rm -f conftest.er1 3346 cat conftest.err >&5 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); } && 3349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3350 { (case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3355 (eval "$ac_try") 2>&5 3356 ac_status=$? 3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 (exit $ac_status); }; } && 3359 { ac_try='test -s conftest.$ac_objext' 3360 { (case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3365 (eval "$ac_try") 2>&5 3366 ac_status=$? 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); }; }; then 3369 ac_cv_prog_cc_c89=$ac_arg 3370else 3371 echo "$as_me: failed program was:" >&5 3372sed 's/^/| /' conftest.$ac_ext >&5 3373 3374 3375fi 3376 3377rm -f conftest.err conftest.$ac_objext 3378 test "x$ac_cv_prog_cc_c89" != "xno" && break 3379done 3380rm -f conftest.$ac_ext 3381CC=$ac_save_CC 3382 3383fi 3384# AC_CACHE_VAL 3385case "x$ac_cv_prog_cc_c89" in 3386 x) 3387 { echo "$as_me:$LINENO: result: none needed" >&5 3388echo "${ECHO_T}none needed" >&6; } ;; 3389 xno) 3390 { echo "$as_me:$LINENO: result: unsupported" >&5 3391echo "${ECHO_T}unsupported" >&6; } ;; 3392 *) 3393 CC="$CC $ac_cv_prog_cc_c89" 3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3395echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3396esac 3397 3398 3399ac_ext=c 3400ac_cpp='$CPP $CPPFLAGS' 3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3403ac_compiler_gnu=$ac_cv_c_compiler_gnu 3404DEPDIR="${am__leading_dot}deps" 3405 3406ac_config_commands="$ac_config_commands depfiles" 3407 3408 3409am_make=${MAKE-make} 3410cat > confinc << 'END' 3411am__doit: 3412 @echo done 3413.PHONY: am__doit 3414END 3415# If we don't find an include directive, just comment out the code. 3416{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3417echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3418am__include="#" 3419am__quote= 3420_am_result=none 3421# First try GNU make style include. 3422echo "include confinc" > confmf 3423# We grep out `Entering directory' and `Leaving directory' 3424# messages which can occur if `w' ends up in MAKEFLAGS. 3425# In particular we don't look at `^make:' because GNU make might 3426# be invoked under some other name (usually "gmake"), in which 3427# case it prints its new name instead of `make'. 3428if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3429 am__include=include 3430 am__quote= 3431 _am_result=GNU 3432fi 3433# Now try BSD make style include. 3434if test "$am__include" = "#"; then 3435 echo '.include "confinc"' > confmf 3436 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3437 am__include=.include 3438 am__quote="\"" 3439 _am_result=BSD 3440 fi 3441fi 3442 3443 3444{ echo "$as_me:$LINENO: result: $_am_result" >&5 3445echo "${ECHO_T}$_am_result" >&6; } 3446rm -f confinc confmf 3447 3448# Check whether --enable-dependency-tracking was given. 3449if test "${enable_dependency_tracking+set}" = set; then 3450 enableval=$enable_dependency_tracking; 3451fi 3452 3453if test "x$enable_dependency_tracking" != xno; then 3454 am_depcomp="$ac_aux_dir/depcomp" 3455 AMDEPBACKSLASH='\' 3456fi 3457 3458 3459if test "x$enable_dependency_tracking" != xno; then 3460 AMDEP_TRUE= 3461 AMDEP_FALSE='#' 3462else 3463 AMDEP_TRUE='#' 3464 AMDEP_FALSE= 3465fi 3466 3467 3468 3469 3470depcc="$CC" am_compiler_list= 3471 3472{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3473echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3474if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3475 echo $ECHO_N "(cached) $ECHO_C" >&6 3476else 3477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3478 # We make a subdir and do the tests there. Otherwise we can end up 3479 # making bogus files that we don't know about and never remove. For 3480 # instance it was reported that on HP-UX the gcc test will end up 3481 # making a dummy file named `D' -- because `-MD' means `put the output 3482 # in D'. 3483 mkdir conftest.dir 3484 # Copy depcomp to subdir because otherwise we won't find it if we're 3485 # using a relative directory. 3486 cp "$am_depcomp" conftest.dir 3487 cd conftest.dir 3488 # We will build objects and dependencies in a subdirectory because 3489 # it helps to detect inapplicable dependency modes. For instance 3490 # both Tru64's cc and ICC support -MD to output dependencies as a 3491 # side effect of compilation, but ICC will put the dependencies in 3492 # the current directory while Tru64 will put them in the object 3493 # directory. 3494 mkdir sub 3495 3496 am_cv_CC_dependencies_compiler_type=none 3497 if test "$am_compiler_list" = ""; then 3498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3499 fi 3500 for depmode in $am_compiler_list; do 3501 # Setup a source with many dependencies, because some compilers 3502 # like to wrap large dependency lists on column 80 (with \), and 3503 # we should not choose a depcomp mode which is confused by this. 3504 # 3505 # We need to recreate these files for each test, as the compiler may 3506 # overwrite some of them when testing with obscure command lines. 3507 # This happens at least with the AIX C compiler. 3508 : > sub/conftest.c 3509 for i in 1 2 3 4 5 6; do 3510 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3512 # Solaris 8's {/usr,}/bin/sh. 3513 touch sub/conftst$i.h 3514 done 3515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3516 3517 case $depmode in 3518 nosideeffect) 3519 # after this tag, mechanisms are not by side-effect, so they'll 3520 # only be used when explicitly requested 3521 if test "x$enable_dependency_tracking" = xyes; then 3522 continue 3523 else 3524 break 3525 fi 3526 ;; 3527 none) break ;; 3528 esac 3529 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3530 # mode. It turns out that the SunPro C++ compiler does not properly 3531 # handle `-M -o', and we need to detect this. 3532 if depmode=$depmode \ 3533 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3535 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3536 >/dev/null 2>conftest.err && 3537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3538 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3540 # icc doesn't choke on unknown options, it will just issue warnings 3541 # or remarks (even with -Werror). So we grep stderr for any message 3542 # that says an option was ignored or not supported. 3543 # When given -MP, icc 7.0 and 7.1 complain thusly: 3544 # icc: Command line warning: ignoring option '-M'; no argument required 3545 # The diagnosis changed in icc 8.0: 3546 # icc: Command line remark: option '-MP' not supported 3547 if (grep 'ignoring option' conftest.err || 3548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3549 am_cv_CC_dependencies_compiler_type=$depmode 3550 break 3551 fi 3552 fi 3553 done 3554 3555 cd .. 3556 rm -rf conftest.dir 3557else 3558 am_cv_CC_dependencies_compiler_type=none 3559fi 3560 3561fi 3562{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3563echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3564CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3565 3566 3567 3568if 3569 test "x$enable_dependency_tracking" != xno \ 3570 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3571 am__fastdepCC_TRUE= 3572 am__fastdepCC_FALSE='#' 3573else 3574 am__fastdepCC_TRUE='#' 3575 am__fastdepCC_FALSE= 3576fi 3577 3578 3579for ac_prog in gawk mawk nawk awk 3580do 3581 # Extract the first word of "$ac_prog", so it can be a program name with args. 3582set dummy $ac_prog; ac_word=$2 3583{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3585if test "${ac_cv_prog_AWK+set}" = set; then 3586 echo $ECHO_N "(cached) $ECHO_C" >&6 3587else 3588 if test -n "$AWK"; then 3589 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3590else 3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3592for as_dir in $PATH 3593do 3594 IFS=$as_save_IFS 3595 test -z "$as_dir" && as_dir=. 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3598 ac_cv_prog_AWK="$ac_prog" 3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602done 3603done 3604IFS=$as_save_IFS 3605 3606fi 3607fi 3608AWK=$ac_cv_prog_AWK 3609if test -n "$AWK"; then 3610 { echo "$as_me:$LINENO: result: $AWK" >&5 3611echo "${ECHO_T}$AWK" >&6; } 3612else 3613 { echo "$as_me:$LINENO: result: no" >&5 3614echo "${ECHO_T}no" >&6; } 3615fi 3616 3617 3618 test -n "$AWK" && break 3619done 3620 3621# Find a good install program. We prefer a C program (faster), 3622# so one script is as good as another. But avoid the broken or 3623# incompatible versions: 3624# SysV /etc/install, /usr/sbin/install 3625# SunOS /usr/etc/install 3626# IRIX /sbin/install 3627# AIX /bin/install 3628# AmigaOS /C/install, which installs bootblocks on floppy discs 3629# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3630# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3631# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3632# OS/2's system install, which has a completely different semantic 3633# ./install, which can be erroneously created by make from ./install.sh. 3634{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3635echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3636if test -z "$INSTALL"; then 3637if test "${ac_cv_path_install+set}" = set; then 3638 echo $ECHO_N "(cached) $ECHO_C" >&6 3639else 3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 # Account for people who put trailing slashes in PATH elements. 3646case $as_dir/ in 3647 ./ | .// | /cC/* | \ 3648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3650 /usr/ucb/* ) ;; 3651 *) 3652 # OSF1 and SCO ODT 3.0 have their own names for install. 3653 # Don't use installbsd from OSF since it installs stuff as root 3654 # by default. 3655 for ac_prog in ginstall scoinst install; do 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 3658 if test $ac_prog = install && 3659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3660 # AIX install. It has an incompatible calling convention. 3661 : 3662 elif test $ac_prog = install && 3663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3664 # program-specific install script used by HP pwplus--don't use. 3665 : 3666 else 3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3668 break 3 3669 fi 3670 fi 3671 done 3672 done 3673 ;; 3674esac 3675done 3676IFS=$as_save_IFS 3677 3678 3679fi 3680 if test "${ac_cv_path_install+set}" = set; then 3681 INSTALL=$ac_cv_path_install 3682 else 3683 # As a last resort, use the slow shell script. Don't cache a 3684 # value for INSTALL within a source directory, because that will 3685 # break other packages using the cache if that directory is 3686 # removed, or if the value is a relative name. 3687 INSTALL=$ac_install_sh 3688 fi 3689fi 3690{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3691echo "${ECHO_T}$INSTALL" >&6; } 3692 3693# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3694# It thinks the first close brace ends the variable substitution. 3695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3696 3697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3698 3699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3700 3701# Check whether --enable-shared was given. 3702if test "${enable_shared+set}" = set; then 3703 enableval=$enable_shared; p=${PACKAGE-default} 3704 case $enableval in 3705 yes) enable_shared=yes ;; 3706 no) enable_shared=no ;; 3707 *) 3708 enable_shared=no 3709 # Look at the argument we got. We use all the common list separators. 3710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3711 for pkg in $enableval; do 3712 IFS="$lt_save_ifs" 3713 if test "X$pkg" = "X$p"; then 3714 enable_shared=yes 3715 fi 3716 done 3717 IFS="$lt_save_ifs" 3718 ;; 3719 esac 3720else 3721 enable_shared=yes 3722fi 3723 3724 3725# Check whether --enable-static was given. 3726if test "${enable_static+set}" = set; then 3727 enableval=$enable_static; p=${PACKAGE-default} 3728 case $enableval in 3729 yes) enable_static=yes ;; 3730 no) enable_static=no ;; 3731 *) 3732 enable_static=no 3733 # Look at the argument we got. We use all the common list separators. 3734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3735 for pkg in $enableval; do 3736 IFS="$lt_save_ifs" 3737 if test "X$pkg" = "X$p"; then 3738 enable_static=yes 3739 fi 3740 done 3741 IFS="$lt_save_ifs" 3742 ;; 3743 esac 3744else 3745 enable_static=yes 3746fi 3747 3748 3749# Check whether --enable-fast-install was given. 3750if test "${enable_fast_install+set}" = set; then 3751 enableval=$enable_fast_install; p=${PACKAGE-default} 3752 case $enableval in 3753 yes) enable_fast_install=yes ;; 3754 no) enable_fast_install=no ;; 3755 *) 3756 enable_fast_install=no 3757 # Look at the argument we got. We use all the common list separators. 3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3759 for pkg in $enableval; do 3760 IFS="$lt_save_ifs" 3761 if test "X$pkg" = "X$p"; then 3762 enable_fast_install=yes 3763 fi 3764 done 3765 IFS="$lt_save_ifs" 3766 ;; 3767 esac 3768else 3769 enable_fast_install=yes 3770fi 3771 3772 3773# Make sure we can run config.sub. 3774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3775 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3776echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3777 { (exit 1); exit 1; }; } 3778 3779{ echo "$as_me:$LINENO: checking build system type" >&5 3780echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3781if test "${ac_cv_build+set}" = set; then 3782 echo $ECHO_N "(cached) $ECHO_C" >&6 3783else 3784 ac_build_alias=$build_alias 3785test "x$ac_build_alias" = x && 3786 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3787test "x$ac_build_alias" = x && 3788 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3789echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3790 { (exit 1); exit 1; }; } 3791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3792 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3793echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3794 { (exit 1); exit 1; }; } 3795 3796fi 3797{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3798echo "${ECHO_T}$ac_cv_build" >&6; } 3799case $ac_cv_build in 3800*-*-*) ;; 3801*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3802echo "$as_me: error: invalid value of canonical build" >&2;} 3803 { (exit 1); exit 1; }; };; 3804esac 3805build=$ac_cv_build 3806ac_save_IFS=$IFS; IFS='-' 3807set x $ac_cv_build 3808shift 3809build_cpu=$1 3810build_vendor=$2 3811shift; shift 3812# Remember, the first character of IFS is used to create $*, 3813# except with old shells: 3814build_os=$* 3815IFS=$ac_save_IFS 3816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3817 3818 3819{ echo "$as_me:$LINENO: checking host system type" >&5 3820echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3821if test "${ac_cv_host+set}" = set; then 3822 echo $ECHO_N "(cached) $ECHO_C" >&6 3823else 3824 if test "x$host_alias" = x; then 3825 ac_cv_host=$ac_cv_build 3826else 3827 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3828 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3829echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3830 { (exit 1); exit 1; }; } 3831fi 3832 3833fi 3834{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3835echo "${ECHO_T}$ac_cv_host" >&6; } 3836case $ac_cv_host in 3837*-*-*) ;; 3838*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3839echo "$as_me: error: invalid value of canonical host" >&2;} 3840 { (exit 1); exit 1; }; };; 3841esac 3842host=$ac_cv_host 3843ac_save_IFS=$IFS; IFS='-' 3844set x $ac_cv_host 3845shift 3846host_cpu=$1 3847host_vendor=$2 3848shift; shift 3849# Remember, the first character of IFS is used to create $*, 3850# except with old shells: 3851host_os=$* 3852IFS=$ac_save_IFS 3853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3854 3855 3856{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3857echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3858if test "${lt_cv_path_SED+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860else 3861 # Loop through the user's path and test for sed and gsed. 3862# Then use that list of sed's as ones to test for truncation. 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 test -z "$as_dir" && as_dir=. 3868 for lt_ac_prog in sed gsed; do 3869 for ac_exec_ext in '' $ac_executable_extensions; do 3870 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3871 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3872 fi 3873 done 3874 done 3875done 3876lt_ac_max=0 3877lt_ac_count=0 3878# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3879# along with /bin/sed that truncates output. 3880for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3881 test ! -f $lt_ac_sed && continue 3882 cat /dev/null > conftest.in 3883 lt_ac_count=0 3884 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3885 # Check for GNU sed and select it if it is found. 3886 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3887 lt_cv_path_SED=$lt_ac_sed 3888 break 3889 fi 3890 while true; do 3891 cat conftest.in conftest.in >conftest.tmp 3892 mv conftest.tmp conftest.in 3893 cp conftest.in conftest.nl 3894 echo >>conftest.nl 3895 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3896 cmp -s conftest.out conftest.nl || break 3897 # 10000 chars as input seems more than enough 3898 test $lt_ac_count -gt 10 && break 3899 lt_ac_count=`expr $lt_ac_count + 1` 3900 if test $lt_ac_count -gt $lt_ac_max; then 3901 lt_ac_max=$lt_ac_count 3902 lt_cv_path_SED=$lt_ac_sed 3903 fi 3904 done 3905done 3906 3907fi 3908 3909SED=$lt_cv_path_SED 3910{ echo "$as_me:$LINENO: result: $SED" >&5 3911echo "${ECHO_T}$SED" >&6; } 3912 3913{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3914echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3915if test "${ac_cv_path_GREP+set}" = set; then 3916 echo $ECHO_N "(cached) $ECHO_C" >&6 3917else 3918 # Extract the first word of "grep ggrep" to use in msg output 3919if test -z "$GREP"; then 3920set dummy grep ggrep; ac_prog_name=$2 3921if test "${ac_cv_path_GREP+set}" = set; then 3922 echo $ECHO_N "(cached) $ECHO_C" >&6 3923else 3924 ac_path_GREP_found=false 3925# Loop through the user's path and test for each of PROGNAME-LIST 3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3928do 3929 IFS=$as_save_IFS 3930 test -z "$as_dir" && as_dir=. 3931 for ac_prog in grep ggrep; do 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3934 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3935 # Check for GNU ac_path_GREP and select it if it is found. 3936 # Check for GNU $ac_path_GREP 3937case `"$ac_path_GREP" --version 2>&1` in 3938*GNU*) 3939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3940*) 3941 ac_count=0 3942 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3943 while : 3944 do 3945 cat "conftest.in" "conftest.in" >"conftest.tmp" 3946 mv "conftest.tmp" "conftest.in" 3947 cp "conftest.in" "conftest.nl" 3948 echo 'GREP' >> "conftest.nl" 3949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3951 ac_count=`expr $ac_count + 1` 3952 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3953 # Best one so far, save it but keep looking for a better one 3954 ac_cv_path_GREP="$ac_path_GREP" 3955 ac_path_GREP_max=$ac_count 3956 fi 3957 # 10*(2^10) chars as input seems more than enough 3958 test $ac_count -gt 10 && break 3959 done 3960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3961esac 3962 3963 3964 $ac_path_GREP_found && break 3 3965 done 3966done 3967 3968done 3969IFS=$as_save_IFS 3970 3971 3972fi 3973 3974GREP="$ac_cv_path_GREP" 3975if test -z "$GREP"; then 3976 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3977echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3978 { (exit 1); exit 1; }; } 3979fi 3980 3981else 3982 ac_cv_path_GREP=$GREP 3983fi 3984 3985 3986fi 3987{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3988echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3989 GREP="$ac_cv_path_GREP" 3990 3991 3992{ echo "$as_me:$LINENO: checking for egrep" >&5 3993echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3994if test "${ac_cv_path_EGREP+set}" = set; then 3995 echo $ECHO_N "(cached) $ECHO_C" >&6 3996else 3997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3998 then ac_cv_path_EGREP="$GREP -E" 3999 else 4000 # Extract the first word of "egrep" to use in msg output 4001if test -z "$EGREP"; then 4002set dummy egrep; ac_prog_name=$2 4003if test "${ac_cv_path_EGREP+set}" = set; then 4004 echo $ECHO_N "(cached) $ECHO_C" >&6 4005else 4006 ac_path_EGREP_found=false 4007# Loop through the user's path and test for each of PROGNAME-LIST 4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_prog in egrep; do 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4016 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4017 # Check for GNU ac_path_EGREP and select it if it is found. 4018 # Check for GNU $ac_path_EGREP 4019case `"$ac_path_EGREP" --version 2>&1` in 4020*GNU*) 4021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4022*) 4023 ac_count=0 4024 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4025 while : 4026 do 4027 cat "conftest.in" "conftest.in" >"conftest.tmp" 4028 mv "conftest.tmp" "conftest.in" 4029 cp "conftest.in" "conftest.nl" 4030 echo 'EGREP' >> "conftest.nl" 4031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4033 ac_count=`expr $ac_count + 1` 4034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4035 # Best one so far, save it but keep looking for a better one 4036 ac_cv_path_EGREP="$ac_path_EGREP" 4037 ac_path_EGREP_max=$ac_count 4038 fi 4039 # 10*(2^10) chars as input seems more than enough 4040 test $ac_count -gt 10 && break 4041 done 4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4043esac 4044 4045 4046 $ac_path_EGREP_found && break 3 4047 done 4048done 4049 4050done 4051IFS=$as_save_IFS 4052 4053 4054fi 4055 4056EGREP="$ac_cv_path_EGREP" 4057if test -z "$EGREP"; then 4058 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4059echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4060 { (exit 1); exit 1; }; } 4061fi 4062 4063else 4064 ac_cv_path_EGREP=$EGREP 4065fi 4066 4067 4068 fi 4069fi 4070{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4071echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4072 EGREP="$ac_cv_path_EGREP" 4073 4074 4075 4076# Check whether --with-gnu-ld was given. 4077if test "${with_gnu_ld+set}" = set; then 4078 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4079else 4080 with_gnu_ld=no 4081fi 4082 4083ac_prog=ld 4084if test "$GCC" = yes; then 4085 # Check if gcc -print-prog-name=ld gives a path. 4086 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4087echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4088 case $host in 4089 *-*-mingw*) 4090 # gcc leaves a trailing carriage return which upsets mingw 4091 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4092 *) 4093 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4094 esac 4095 case $ac_prog in 4096 # Accept absolute paths. 4097 [\\/]* | ?:[\\/]*) 4098 re_direlt='/[^/][^/]*/\.\./' 4099 # Canonicalize the pathname of ld 4100 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4101 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4102 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4103 done 4104 test -z "$LD" && LD="$ac_prog" 4105 ;; 4106 "") 4107 # If it fails, then pretend we aren't using GCC. 4108 ac_prog=ld 4109 ;; 4110 *) 4111 # If it is relative, then search for the first ld in PATH. 4112 with_gnu_ld=unknown 4113 ;; 4114 esac 4115elif test "$with_gnu_ld" = yes; then 4116 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4117echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4118else 4119 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4120echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4121fi 4122if test "${lt_cv_path_LD+set}" = set; then 4123 echo $ECHO_N "(cached) $ECHO_C" >&6 4124else 4125 if test -z "$LD"; then 4126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4127 for ac_dir in $PATH; do 4128 IFS="$lt_save_ifs" 4129 test -z "$ac_dir" && ac_dir=. 4130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4131 lt_cv_path_LD="$ac_dir/$ac_prog" 4132 # Check to see if the program is GNU ld. I'd rather use --version, 4133 # but apparently some variants of GNU ld only accept -v. 4134 # Break only if it was the GNU/non-GNU ld that we prefer. 4135 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4136 *GNU* | *'with BFD'*) 4137 test "$with_gnu_ld" != no && break 4138 ;; 4139 *) 4140 test "$with_gnu_ld" != yes && break 4141 ;; 4142 esac 4143 fi 4144 done 4145 IFS="$lt_save_ifs" 4146else 4147 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4148fi 4149fi 4150 4151LD="$lt_cv_path_LD" 4152if test -n "$LD"; then 4153 { echo "$as_me:$LINENO: result: $LD" >&5 4154echo "${ECHO_T}$LD" >&6; } 4155else 4156 { echo "$as_me:$LINENO: result: no" >&5 4157echo "${ECHO_T}no" >&6; } 4158fi 4159test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4160echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4161 { (exit 1); exit 1; }; } 4162{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4163echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4164if test "${lt_cv_prog_gnu_ld+set}" = set; then 4165 echo $ECHO_N "(cached) $ECHO_C" >&6 4166else 4167 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4168case `$LD -v 2>&1 </dev/null` in 4169*GNU* | *'with BFD'*) 4170 lt_cv_prog_gnu_ld=yes 4171 ;; 4172*) 4173 lt_cv_prog_gnu_ld=no 4174 ;; 4175esac 4176fi 4177{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4178echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4179with_gnu_ld=$lt_cv_prog_gnu_ld 4180 4181 4182{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4183echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4184if test "${lt_cv_ld_reload_flag+set}" = set; then 4185 echo $ECHO_N "(cached) $ECHO_C" >&6 4186else 4187 lt_cv_ld_reload_flag='-r' 4188fi 4189{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4190echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4191reload_flag=$lt_cv_ld_reload_flag 4192case $reload_flag in 4193"" | " "*) ;; 4194*) reload_flag=" $reload_flag" ;; 4195esac 4196reload_cmds='$LD$reload_flag -o $output$reload_objs' 4197case $host_os in 4198 darwin*) 4199 if test "$GCC" = yes; then 4200 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4201 else 4202 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4203 fi 4204 ;; 4205esac 4206 4207{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4208echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4209if test "${lt_cv_path_NM+set}" = set; then 4210 echo $ECHO_N "(cached) $ECHO_C" >&6 4211else 4212 if test -n "$NM"; then 4213 # Let the user override the test. 4214 lt_cv_path_NM="$NM" 4215else 4216 lt_nm_to_check="${ac_tool_prefix}nm" 4217 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4218 lt_nm_to_check="$lt_nm_to_check nm" 4219 fi 4220 for lt_tmp_nm in $lt_nm_to_check; do 4221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4222 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4223 IFS="$lt_save_ifs" 4224 test -z "$ac_dir" && ac_dir=. 4225 tmp_nm="$ac_dir/$lt_tmp_nm" 4226 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4227 # Check to see if the nm accepts a BSD-compat flag. 4228 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4229 # nm: unknown option "B" ignored 4230 # Tru64's nm complains that /dev/null is an invalid object file 4231 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4232 */dev/null* | *'Invalid file or object type'*) 4233 lt_cv_path_NM="$tmp_nm -B" 4234 break 4235 ;; 4236 *) 4237 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4238 */dev/null*) 4239 lt_cv_path_NM="$tmp_nm -p" 4240 break 4241 ;; 4242 *) 4243 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4244 continue # so that we can try to find one that supports BSD flags 4245 ;; 4246 esac 4247 ;; 4248 esac 4249 fi 4250 done 4251 IFS="$lt_save_ifs" 4252 done 4253 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4254fi 4255fi 4256{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4257echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4258NM="$lt_cv_path_NM" 4259 4260{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4261echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4262LN_S=$as_ln_s 4263if test "$LN_S" = "ln -s"; then 4264 { echo "$as_me:$LINENO: result: yes" >&5 4265echo "${ECHO_T}yes" >&6; } 4266else 4267 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4268echo "${ECHO_T}no, using $LN_S" >&6; } 4269fi 4270 4271{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4272echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4273if test "${lt_cv_deplibs_check_method+set}" = set; then 4274 echo $ECHO_N "(cached) $ECHO_C" >&6 4275else 4276 lt_cv_file_magic_cmd='$MAGIC_CMD' 4277lt_cv_file_magic_test_file= 4278lt_cv_deplibs_check_method='unknown' 4279# Need to set the preceding variable on all platforms that support 4280# interlibrary dependencies. 4281# 'none' -- dependencies not supported. 4282# `unknown' -- same as none, but documents that we really don't know. 4283# 'pass_all' -- all dependencies passed with no checks. 4284# 'test_compile' -- check by making test program. 4285# 'file_magic [[regex]]' -- check by looking for files in library path 4286# which responds to the $file_magic_cmd with a given extended regex. 4287# If you have `file' or equivalent on your system and you're not sure 4288# whether `pass_all' will *always* work, you probably want this one. 4289 4290case $host_os in 4291aix4* | aix5*) 4292 lt_cv_deplibs_check_method=pass_all 4293 ;; 4294 4295beos*) 4296 lt_cv_deplibs_check_method=pass_all 4297 ;; 4298 4299bsdi[45]*) 4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4301 lt_cv_file_magic_cmd='/usr/bin/file -L' 4302 lt_cv_file_magic_test_file=/shlib/libc.so 4303 ;; 4304 4305cygwin*) 4306 # func_win32_libid is a shell function defined in ltmain.sh 4307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4308 lt_cv_file_magic_cmd='func_win32_libid' 4309 ;; 4310 4311mingw* | pw32*) 4312 # Base MSYS/MinGW do not provide the 'file' command needed by 4313 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4314 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4315 lt_cv_file_magic_cmd='$OBJDUMP -f' 4316 ;; 4317 4318darwin* | rhapsody*) 4319 lt_cv_deplibs_check_method=pass_all 4320 ;; 4321 4322freebsd* | dragonfly*) 4323 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4324 case $host_cpu in 4325 i*86 ) 4326 # Not sure whether the presence of OpenBSD here was a mistake. 4327 # Let's accept both of them until this is cleared up. 4328 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4329 lt_cv_file_magic_cmd=/usr/bin/file 4330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4331 ;; 4332 esac 4333 else 4334 lt_cv_deplibs_check_method=pass_all 4335 fi 4336 ;; 4337 4338gnu*) 4339 lt_cv_deplibs_check_method=pass_all 4340 ;; 4341 4342hpux10.20* | hpux11*) 4343 lt_cv_file_magic_cmd=/usr/bin/file 4344 case $host_cpu in 4345 ia64*) 4346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4347 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4348 ;; 4349 hppa*64*) 4350 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]' 4351 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4352 ;; 4353 *) 4354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4355 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4356 ;; 4357 esac 4358 ;; 4359 4360interix3*) 4361 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4363 ;; 4364 4365irix5* | irix6* | nonstopux*) 4366 case $LD in 4367 *-32|*"-32 ") libmagic=32-bit;; 4368 *-n32|*"-n32 ") libmagic=N32;; 4369 *-64|*"-64 ") libmagic=64-bit;; 4370 *) libmagic=never-match;; 4371 esac 4372 lt_cv_deplibs_check_method=pass_all 4373 ;; 4374 4375# This must be Linux ELF. 4376linux* | k*bsd*-gnu) 4377 lt_cv_deplibs_check_method=pass_all 4378 ;; 4379 4380netbsd* | netbsdelf*-gnu) 4381 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4383 else 4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4385 fi 4386 ;; 4387 4388newos6*) 4389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4390 lt_cv_file_magic_cmd=/usr/bin/file 4391 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4392 ;; 4393 4394nto-qnx*) 4395 lt_cv_deplibs_check_method=unknown 4396 ;; 4397 4398openbsd*) 4399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4401 else 4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4403 fi 4404 ;; 4405 4406osf3* | osf4* | osf5*) 4407 lt_cv_deplibs_check_method=pass_all 4408 ;; 4409 4410solaris*) 4411 lt_cv_deplibs_check_method=pass_all 4412 ;; 4413 4414sysv4 | sysv4.3*) 4415 case $host_vendor in 4416 motorola) 4417 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]' 4418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4419 ;; 4420 ncr) 4421 lt_cv_deplibs_check_method=pass_all 4422 ;; 4423 sequent) 4424 lt_cv_file_magic_cmd='/bin/file' 4425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4426 ;; 4427 sni) 4428 lt_cv_file_magic_cmd='/bin/file' 4429 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4430 lt_cv_file_magic_test_file=/lib/libc.so 4431 ;; 4432 siemens) 4433 lt_cv_deplibs_check_method=pass_all 4434 ;; 4435 pc) 4436 lt_cv_deplibs_check_method=pass_all 4437 ;; 4438 esac 4439 ;; 4440 4441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4442 lt_cv_deplibs_check_method=pass_all 4443 ;; 4444esac 4445 4446fi 4447{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4448echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4449file_magic_cmd=$lt_cv_file_magic_cmd 4450deplibs_check_method=$lt_cv_deplibs_check_method 4451test -z "$deplibs_check_method" && deplibs_check_method=unknown 4452 4453 4454 4455 4456# If no C compiler was specified, use CC. 4457LTCC=${LTCC-"$CC"} 4458 4459# If no C compiler flags were specified, use CFLAGS. 4460LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4461 4462# Allow CC to be a program name with arguments. 4463compiler=$CC 4464 4465 4466# Check whether --enable-libtool-lock was given. 4467if test "${enable_libtool_lock+set}" = set; then 4468 enableval=$enable_libtool_lock; 4469fi 4470 4471test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4472 4473# Some flags need to be propagated to the compiler or linker for good 4474# libtool support. 4475case $host in 4476ia64-*-hpux*) 4477 # Find out which ABI we are using. 4478 echo 'int i;' > conftest.$ac_ext 4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4480 (eval $ac_compile) 2>&5 4481 ac_status=$? 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; then 4484 case `/usr/bin/file conftest.$ac_objext` in 4485 *ELF-32*) 4486 HPUX_IA64_MODE="32" 4487 ;; 4488 *ELF-64*) 4489 HPUX_IA64_MODE="64" 4490 ;; 4491 esac 4492 fi 4493 rm -rf conftest* 4494 ;; 4495*-*-irix6*) 4496 # Find out which ABI we are using. 4497 echo '#line __oline__ "configure"' > conftest.$ac_ext 4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4499 (eval $ac_compile) 2>&5 4500 ac_status=$? 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; then 4503 if test "$lt_cv_prog_gnu_ld" = yes; then 4504 case `/usr/bin/file conftest.$ac_objext` in 4505 *32-bit*) 4506 LD="${LD-ld} -melf32bsmip" 4507 ;; 4508 *N32*) 4509 LD="${LD-ld} -melf32bmipn32" 4510 ;; 4511 *64-bit*) 4512 LD="${LD-ld} -melf64bmip" 4513 ;; 4514 esac 4515 else 4516 case `/usr/bin/file conftest.$ac_objext` in 4517 *32-bit*) 4518 LD="${LD-ld} -32" 4519 ;; 4520 *N32*) 4521 LD="${LD-ld} -n32" 4522 ;; 4523 *64-bit*) 4524 LD="${LD-ld} -64" 4525 ;; 4526 esac 4527 fi 4528 fi 4529 rm -rf conftest* 4530 ;; 4531 4532x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4533 # Find out which ABI we are using. 4534 echo 'int i;' > conftest.$ac_ext 4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4536 (eval $ac_compile) 2>&5 4537 ac_status=$? 4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4539 (exit $ac_status); }; then 4540 case `/usr/bin/file conftest.o` in 4541 *32-bit*) 4542 case $host in 4543 x86_64-*linux*) 4544 LD="${LD-ld} -m elf_i386" 4545 ;; 4546 ppc64-*linux*|powerpc64-*linux*) 4547 LD="${LD-ld} -m elf32ppclinux" 4548 ;; 4549 s390x-*linux*) 4550 LD="${LD-ld} -m elf_s390" 4551 ;; 4552 sparc64-*linux*) 4553 LD="${LD-ld} -m elf32_sparc" 4554 ;; 4555 esac 4556 ;; 4557 *64-bit*) 4558 case $host in 4559 x86_64-*linux*) 4560 LD="${LD-ld} -m elf_x86_64" 4561 ;; 4562 ppc*-*linux*|powerpc*-*linux*) 4563 LD="${LD-ld} -m elf64ppc" 4564 ;; 4565 s390*-*linux*) 4566 LD="${LD-ld} -m elf64_s390" 4567 ;; 4568 sparc*-*linux*) 4569 LD="${LD-ld} -m elf64_sparc" 4570 ;; 4571 esac 4572 ;; 4573 esac 4574 fi 4575 rm -rf conftest* 4576 ;; 4577 4578*-*-sco3.2v5*) 4579 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4580 SAVE_CFLAGS="$CFLAGS" 4581 CFLAGS="$CFLAGS -belf" 4582 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4583echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4584if test "${lt_cv_cc_needs_belf+set}" = set; then 4585 echo $ECHO_N "(cached) $ECHO_C" >&6 4586else 4587 ac_ext=c 4588ac_cpp='$CPP $CPPFLAGS' 4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4591ac_compiler_gnu=$ac_cv_c_compiler_gnu 4592 4593 cat >conftest.$ac_ext <<_ACEOF 4594/* confdefs.h. */ 4595_ACEOF 4596cat confdefs.h >>conftest.$ac_ext 4597cat >>conftest.$ac_ext <<_ACEOF 4598/* end confdefs.h. */ 4599 4600int 4601main () 4602{ 4603 4604 ; 4605 return 0; 4606} 4607_ACEOF 4608rm -f conftest.$ac_objext conftest$ac_exeext 4609if { (ac_try="$ac_link" 4610case "(($ac_try" in 4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4612 *) ac_try_echo=$ac_try;; 4613esac 4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4615 (eval "$ac_link") 2>conftest.er1 4616 ac_status=$? 4617 grep -v '^ *+' conftest.er1 >conftest.err 4618 rm -f conftest.er1 4619 cat conftest.err >&5 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); } && 4622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4623 { (case "(($ac_try" in 4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4625 *) ac_try_echo=$ac_try;; 4626esac 4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4628 (eval "$ac_try") 2>&5 4629 ac_status=$? 4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4631 (exit $ac_status); }; } && 4632 { ac_try='test -s conftest$ac_exeext' 4633 { (case "(($ac_try" in 4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4635 *) ac_try_echo=$ac_try;; 4636esac 4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4638 (eval "$ac_try") 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); }; }; then 4642 lt_cv_cc_needs_belf=yes 4643else 4644 echo "$as_me: failed program was:" >&5 4645sed 's/^/| /' conftest.$ac_ext >&5 4646 4647 lt_cv_cc_needs_belf=no 4648fi 4649 4650rm -f conftest.err conftest.$ac_objext \ 4651 conftest$ac_exeext conftest.$ac_ext 4652 ac_ext=c 4653ac_cpp='$CPP $CPPFLAGS' 4654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4656ac_compiler_gnu=$ac_cv_c_compiler_gnu 4657 4658fi 4659{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4660echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4661 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4662 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4663 CFLAGS="$SAVE_CFLAGS" 4664 fi 4665 ;; 4666sparc*-*solaris*) 4667 # Find out which ABI we are using. 4668 echo 'int i;' > conftest.$ac_ext 4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4670 (eval $ac_compile) 2>&5 4671 ac_status=$? 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); }; then 4674 case `/usr/bin/file conftest.o` in 4675 *64-bit*) 4676 case $lt_cv_prog_gnu_ld in 4677 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4678 *) LD="${LD-ld} -64" ;; 4679 esac 4680 ;; 4681 esac 4682 fi 4683 rm -rf conftest* 4684 ;; 4685 4686 4687esac 4688 4689need_locks="$enable_libtool_lock" 4690 4691 4692ac_ext=c 4693ac_cpp='$CPP $CPPFLAGS' 4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4696ac_compiler_gnu=$ac_cv_c_compiler_gnu 4697{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4698echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4699# On Suns, sometimes $CPP names a directory. 4700if test -n "$CPP" && test -d "$CPP"; then 4701 CPP= 4702fi 4703if test -z "$CPP"; then 4704 if test "${ac_cv_prog_CPP+set}" = set; then 4705 echo $ECHO_N "(cached) $ECHO_C" >&6 4706else 4707 # Double quotes because CPP needs to be expanded 4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4709 do 4710 ac_preproc_ok=false 4711for ac_c_preproc_warn_flag in '' yes 4712do 4713 # Use a header file that comes with gcc, so configuring glibc 4714 # with a fresh cross-compiler works. 4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4716 # <limits.h> exists even on freestanding compilers. 4717 # On the NeXT, cc -E runs the code through the compiler's parser, 4718 # not just through cpp. "Syntax error" is here to catch this case. 4719 cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725@%:@ifdef __STDC__ 4726@%:@ include <limits.h> 4727@%:@else 4728@%:@ include <assert.h> 4729@%:@endif 4730 Syntax error 4731_ACEOF 4732if { (ac_try="$ac_cpp conftest.$ac_ext" 4733case "(($ac_try" in 4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4735 *) ac_try_echo=$ac_try;; 4736esac 4737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4739 ac_status=$? 4740 grep -v '^ *+' conftest.er1 >conftest.err 4741 rm -f conftest.er1 4742 cat conftest.err >&5 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); } >/dev/null; then 4745 if test -s conftest.err; then 4746 ac_cpp_err=$ac_c_preproc_warn_flag 4747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4748 else 4749 ac_cpp_err= 4750 fi 4751else 4752 ac_cpp_err=yes 4753fi 4754if test -z "$ac_cpp_err"; then 4755 : 4756else 4757 echo "$as_me: failed program was:" >&5 4758sed 's/^/| /' conftest.$ac_ext >&5 4759 4760 # Broken: fails on valid input. 4761continue 4762fi 4763 4764rm -f conftest.err conftest.$ac_ext 4765 4766 # OK, works on sane cases. Now check whether nonexistent headers 4767 # can be detected and how. 4768 cat >conftest.$ac_ext <<_ACEOF 4769/* confdefs.h. */ 4770_ACEOF 4771cat confdefs.h >>conftest.$ac_ext 4772cat >>conftest.$ac_ext <<_ACEOF 4773/* end confdefs.h. */ 4774@%:@include <ac_nonexistent.h> 4775_ACEOF 4776if { (ac_try="$ac_cpp conftest.$ac_ext" 4777case "(($ac_try" in 4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4779 *) ac_try_echo=$ac_try;; 4780esac 4781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4783 ac_status=$? 4784 grep -v '^ *+' conftest.er1 >conftest.err 4785 rm -f conftest.er1 4786 cat conftest.err >&5 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } >/dev/null; then 4789 if test -s conftest.err; then 4790 ac_cpp_err=$ac_c_preproc_warn_flag 4791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4792 else 4793 ac_cpp_err= 4794 fi 4795else 4796 ac_cpp_err=yes 4797fi 4798if test -z "$ac_cpp_err"; then 4799 # Broken: success on invalid input. 4800continue 4801else 4802 echo "$as_me: failed program was:" >&5 4803sed 's/^/| /' conftest.$ac_ext >&5 4804 4805 # Passes both tests. 4806ac_preproc_ok=: 4807break 4808fi 4809 4810rm -f conftest.err conftest.$ac_ext 4811 4812done 4813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4814rm -f conftest.err conftest.$ac_ext 4815if $ac_preproc_ok; then 4816 break 4817fi 4818 4819 done 4820 ac_cv_prog_CPP=$CPP 4821 4822fi 4823 CPP=$ac_cv_prog_CPP 4824else 4825 ac_cv_prog_CPP=$CPP 4826fi 4827{ echo "$as_me:$LINENO: result: $CPP" >&5 4828echo "${ECHO_T}$CPP" >&6; } 4829ac_preproc_ok=false 4830for ac_c_preproc_warn_flag in '' yes 4831do 4832 # Use a header file that comes with gcc, so configuring glibc 4833 # with a fresh cross-compiler works. 4834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4835 # <limits.h> exists even on freestanding compilers. 4836 # On the NeXT, cc -E runs the code through the compiler's parser, 4837 # not just through cpp. "Syntax error" is here to catch this case. 4838 cat >conftest.$ac_ext <<_ACEOF 4839/* confdefs.h. */ 4840_ACEOF 4841cat confdefs.h >>conftest.$ac_ext 4842cat >>conftest.$ac_ext <<_ACEOF 4843/* end confdefs.h. */ 4844@%:@ifdef __STDC__ 4845@%:@ include <limits.h> 4846@%:@else 4847@%:@ include <assert.h> 4848@%:@endif 4849 Syntax error 4850_ACEOF 4851if { (ac_try="$ac_cpp conftest.$ac_ext" 4852case "(($ac_try" in 4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4854 *) ac_try_echo=$ac_try;; 4855esac 4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4858 ac_status=$? 4859 grep -v '^ *+' conftest.er1 >conftest.err 4860 rm -f conftest.er1 4861 cat conftest.err >&5 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); } >/dev/null; then 4864 if test -s conftest.err; then 4865 ac_cpp_err=$ac_c_preproc_warn_flag 4866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4867 else 4868 ac_cpp_err= 4869 fi 4870else 4871 ac_cpp_err=yes 4872fi 4873if test -z "$ac_cpp_err"; then 4874 : 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 # Broken: fails on valid input. 4880continue 4881fi 4882 4883rm -f conftest.err conftest.$ac_ext 4884 4885 # OK, works on sane cases. Now check whether nonexistent headers 4886 # can be detected and how. 4887 cat >conftest.$ac_ext <<_ACEOF 4888/* confdefs.h. */ 4889_ACEOF 4890cat confdefs.h >>conftest.$ac_ext 4891cat >>conftest.$ac_ext <<_ACEOF 4892/* end confdefs.h. */ 4893@%:@include <ac_nonexistent.h> 4894_ACEOF 4895if { (ac_try="$ac_cpp conftest.$ac_ext" 4896case "(($ac_try" in 4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4898 *) ac_try_echo=$ac_try;; 4899esac 4900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4902 ac_status=$? 4903 grep -v '^ *+' conftest.er1 >conftest.err 4904 rm -f conftest.er1 4905 cat conftest.err >&5 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); } >/dev/null; then 4908 if test -s conftest.err; then 4909 ac_cpp_err=$ac_c_preproc_warn_flag 4910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4911 else 4912 ac_cpp_err= 4913 fi 4914else 4915 ac_cpp_err=yes 4916fi 4917if test -z "$ac_cpp_err"; then 4918 # Broken: success on invalid input. 4919continue 4920else 4921 echo "$as_me: failed program was:" >&5 4922sed 's/^/| /' conftest.$ac_ext >&5 4923 4924 # Passes both tests. 4925ac_preproc_ok=: 4926break 4927fi 4928 4929rm -f conftest.err conftest.$ac_ext 4930 4931done 4932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4933rm -f conftest.err conftest.$ac_ext 4934if $ac_preproc_ok; then 4935 : 4936else 4937 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4938See \`config.log' for more details." >&5 4939echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4940See \`config.log' for more details." >&2;} 4941 { (exit 1); exit 1; }; } 4942fi 4943 4944ac_ext=c 4945ac_cpp='$CPP $CPPFLAGS' 4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948ac_compiler_gnu=$ac_cv_c_compiler_gnu 4949 4950 4951{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4952echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4953if test "${ac_cv_header_stdc+set}" = set; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955else 4956 cat >conftest.$ac_ext <<_ACEOF 4957/* confdefs.h. */ 4958_ACEOF 4959cat confdefs.h >>conftest.$ac_ext 4960cat >>conftest.$ac_ext <<_ACEOF 4961/* end confdefs.h. */ 4962#include <stdlib.h> 4963#include <stdarg.h> 4964#include <string.h> 4965#include <float.h> 4966 4967int 4968main () 4969{ 4970 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975rm -f conftest.$ac_objext 4976if { (ac_try="$ac_compile" 4977case "(($ac_try" in 4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4979 *) ac_try_echo=$ac_try;; 4980esac 4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4982 (eval "$ac_compile") 2>conftest.er1 4983 ac_status=$? 4984 grep -v '^ *+' conftest.er1 >conftest.err 4985 rm -f conftest.er1 4986 cat conftest.err >&5 4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4988 (exit $ac_status); } && 4989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4990 { (case "(($ac_try" in 4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4992 *) ac_try_echo=$ac_try;; 4993esac 4994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4995 (eval "$ac_try") 2>&5 4996 ac_status=$? 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); }; } && 4999 { ac_try='test -s conftest.$ac_objext' 5000 { (case "(($ac_try" in 5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5002 *) ac_try_echo=$ac_try;; 5003esac 5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5005 (eval "$ac_try") 2>&5 5006 ac_status=$? 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); }; }; then 5009 ac_cv_header_stdc=yes 5010else 5011 echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014 ac_cv_header_stdc=no 5015fi 5016 5017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5018 5019if test $ac_cv_header_stdc = yes; then 5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5021 cat >conftest.$ac_ext <<_ACEOF 5022/* confdefs.h. */ 5023_ACEOF 5024cat confdefs.h >>conftest.$ac_ext 5025cat >>conftest.$ac_ext <<_ACEOF 5026/* end confdefs.h. */ 5027#include <string.h> 5028 5029_ACEOF 5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5031 $EGREP "memchr" >/dev/null 2>&1; then 5032 : 5033else 5034 ac_cv_header_stdc=no 5035fi 5036rm -f conftest* 5037 5038fi 5039 5040if test $ac_cv_header_stdc = yes; then 5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5042 cat >conftest.$ac_ext <<_ACEOF 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048#include <stdlib.h> 5049 5050_ACEOF 5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5052 $EGREP "free" >/dev/null 2>&1; then 5053 : 5054else 5055 ac_cv_header_stdc=no 5056fi 5057rm -f conftest* 5058 5059fi 5060 5061if test $ac_cv_header_stdc = yes; then 5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5063 if test "$cross_compiling" = yes; then 5064 : 5065else 5066 cat >conftest.$ac_ext <<_ACEOF 5067/* confdefs.h. */ 5068_ACEOF 5069cat confdefs.h >>conftest.$ac_ext 5070cat >>conftest.$ac_ext <<_ACEOF 5071/* end confdefs.h. */ 5072#include <ctype.h> 5073#include <stdlib.h> 5074#if ((' ' & 0x0FF) == 0x020) 5075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5077#else 5078# define ISLOWER(c) \ 5079 (('a' <= (c) && (c) <= 'i') \ 5080 || ('j' <= (c) && (c) <= 'r') \ 5081 || ('s' <= (c) && (c) <= 'z')) 5082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5083#endif 5084 5085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5086int 5087main () 5088{ 5089 int i; 5090 for (i = 0; i < 256; i++) 5091 if (XOR (islower (i), ISLOWER (i)) 5092 || toupper (i) != TOUPPER (i)) 5093 return 2; 5094 return 0; 5095} 5096_ACEOF 5097rm -f conftest$ac_exeext 5098if { (ac_try="$ac_link" 5099case "(($ac_try" in 5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5101 *) ac_try_echo=$ac_try;; 5102esac 5103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5104 (eval "$ac_link") 2>&5 5105 ac_status=$? 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5108 { (case "(($ac_try" in 5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5110 *) ac_try_echo=$ac_try;; 5111esac 5112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5113 (eval "$ac_try") 2>&5 5114 ac_status=$? 5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5116 (exit $ac_status); }; }; then 5117 : 5118else 5119 echo "$as_me: program exited with status $ac_status" >&5 5120echo "$as_me: failed program was:" >&5 5121sed 's/^/| /' conftest.$ac_ext >&5 5122 5123( exit $ac_status ) 5124ac_cv_header_stdc=no 5125fi 5126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5127fi 5128 5129 5130fi 5131fi 5132{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5133echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5134if test $ac_cv_header_stdc = yes; then 5135 5136cat >>confdefs.h <<\_ACEOF 5137@%:@define STDC_HEADERS 1 5138_ACEOF 5139 5140fi 5141 5142# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5153 inttypes.h stdint.h unistd.h 5154do 5155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5156{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5159 echo $ECHO_N "(cached) $ECHO_C" >&6 5160else 5161 cat >conftest.$ac_ext <<_ACEOF 5162/* confdefs.h. */ 5163_ACEOF 5164cat confdefs.h >>conftest.$ac_ext 5165cat >>conftest.$ac_ext <<_ACEOF 5166/* end confdefs.h. */ 5167$ac_includes_default 5168 5169@%:@include <$ac_header> 5170_ACEOF 5171rm -f conftest.$ac_objext 5172if { (ac_try="$ac_compile" 5173case "(($ac_try" in 5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5175 *) ac_try_echo=$ac_try;; 5176esac 5177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5178 (eval "$ac_compile") 2>conftest.er1 5179 ac_status=$? 5180 grep -v '^ *+' conftest.er1 >conftest.err 5181 rm -f conftest.er1 5182 cat conftest.err >&5 5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5184 (exit $ac_status); } && 5185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5186 { (case "(($ac_try" in 5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5188 *) ac_try_echo=$ac_try;; 5189esac 5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5191 (eval "$ac_try") 2>&5 5192 ac_status=$? 5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194 (exit $ac_status); }; } && 5195 { ac_try='test -s conftest.$ac_objext' 5196 { (case "(($ac_try" in 5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5198 *) ac_try_echo=$ac_try;; 5199esac 5200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5201 (eval "$ac_try") 2>&5 5202 ac_status=$? 5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5204 (exit $ac_status); }; }; then 5205 eval "$as_ac_Header=yes" 5206else 5207 echo "$as_me: failed program was:" >&5 5208sed 's/^/| /' conftest.$ac_ext >&5 5209 5210 eval "$as_ac_Header=no" 5211fi 5212 5213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5214fi 5215ac_res=`eval echo '${'$as_ac_Header'}'` 5216 { echo "$as_me:$LINENO: result: $ac_res" >&5 5217echo "${ECHO_T}$ac_res" >&6; } 5218if test `eval echo '${'$as_ac_Header'}'` = yes; then 5219 cat >>confdefs.h <<_ACEOF 5220@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5221_ACEOF 5222 5223fi 5224 5225done 5226 5227 5228 5229for ac_header in dlfcn.h 5230do 5231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5233 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5236 echo $ECHO_N "(cached) $ECHO_C" >&6 5237fi 5238ac_res=`eval echo '${'$as_ac_Header'}'` 5239 { echo "$as_me:$LINENO: result: $ac_res" >&5 5240echo "${ECHO_T}$ac_res" >&6; } 5241else 5242 # Is the header compilable? 5243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5245cat >conftest.$ac_ext <<_ACEOF 5246/* confdefs.h. */ 5247_ACEOF 5248cat confdefs.h >>conftest.$ac_ext 5249cat >>conftest.$ac_ext <<_ACEOF 5250/* end confdefs.h. */ 5251$ac_includes_default 5252@%:@include <$ac_header> 5253_ACEOF 5254rm -f conftest.$ac_objext 5255if { (ac_try="$ac_compile" 5256case "(($ac_try" in 5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5258 *) ac_try_echo=$ac_try;; 5259esac 5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5261 (eval "$ac_compile") 2>conftest.er1 5262 ac_status=$? 5263 grep -v '^ *+' conftest.er1 >conftest.err 5264 rm -f conftest.er1 5265 cat conftest.err >&5 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5267 (exit $ac_status); } && 5268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5269 { (case "(($ac_try" in 5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5271 *) ac_try_echo=$ac_try;; 5272esac 5273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5274 (eval "$ac_try") 2>&5 5275 ac_status=$? 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); }; } && 5278 { ac_try='test -s conftest.$ac_objext' 5279 { (case "(($ac_try" in 5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5281 *) ac_try_echo=$ac_try;; 5282esac 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5284 (eval "$ac_try") 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; }; then 5288 ac_header_compiler=yes 5289else 5290 echo "$as_me: failed program was:" >&5 5291sed 's/^/| /' conftest.$ac_ext >&5 5292 5293 ac_header_compiler=no 5294fi 5295 5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5298echo "${ECHO_T}$ac_header_compiler" >&6; } 5299 5300# Is the header present? 5301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5303cat >conftest.$ac_ext <<_ACEOF 5304/* confdefs.h. */ 5305_ACEOF 5306cat confdefs.h >>conftest.$ac_ext 5307cat >>conftest.$ac_ext <<_ACEOF 5308/* end confdefs.h. */ 5309@%:@include <$ac_header> 5310_ACEOF 5311if { (ac_try="$ac_cpp conftest.$ac_ext" 5312case "(($ac_try" in 5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5314 *) ac_try_echo=$ac_try;; 5315esac 5316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5318 ac_status=$? 5319 grep -v '^ *+' conftest.er1 >conftest.err 5320 rm -f conftest.er1 5321 cat conftest.err >&5 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); } >/dev/null; then 5324 if test -s conftest.err; then 5325 ac_cpp_err=$ac_c_preproc_warn_flag 5326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5327 else 5328 ac_cpp_err= 5329 fi 5330else 5331 ac_cpp_err=yes 5332fi 5333if test -z "$ac_cpp_err"; then 5334 ac_header_preproc=yes 5335else 5336 echo "$as_me: failed program was:" >&5 5337sed 's/^/| /' conftest.$ac_ext >&5 5338 5339 ac_header_preproc=no 5340fi 5341 5342rm -f conftest.err conftest.$ac_ext 5343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5344echo "${ECHO_T}$ac_header_preproc" >&6; } 5345 5346# So? What about this header? 5347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5348 yes:no: ) 5349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5353 ac_header_preproc=yes 5354 ;; 5355 no:yes:* ) 5356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5368 5369 ;; 5370esac 5371{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5374 echo $ECHO_N "(cached) $ECHO_C" >&6 5375else 5376 eval "$as_ac_Header=\$ac_header_preproc" 5377fi 5378ac_res=`eval echo '${'$as_ac_Header'}'` 5379 { echo "$as_me:$LINENO: result: $ac_res" >&5 5380echo "${ECHO_T}$ac_res" >&6; } 5381 5382fi 5383if test `eval echo '${'$as_ac_Header'}'` = yes; then 5384 cat >>confdefs.h <<_ACEOF 5385@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5386_ACEOF 5387 5388fi 5389 5390done 5391 5392ac_ext=cpp 5393ac_cpp='$CXXCPP $CPPFLAGS' 5394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5397if test -z "$CXX"; then 5398 if test -n "$CCC"; then 5399 CXX=$CCC 5400 else 5401 if test -n "$ac_tool_prefix"; then 5402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5403 do 5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5406{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5408if test "${ac_cv_prog_CXX+set}" = set; then 5409 echo $ECHO_N "(cached) $ECHO_C" >&6 5410else 5411 if test -n "$CXX"; then 5412 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5413else 5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5415for as_dir in $PATH 5416do 5417 IFS=$as_save_IFS 5418 test -z "$as_dir" && as_dir=. 5419 for ac_exec_ext in '' $ac_executable_extensions; do 5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5423 break 2 5424 fi 5425done 5426done 5427IFS=$as_save_IFS 5428 5429fi 5430fi 5431CXX=$ac_cv_prog_CXX 5432if test -n "$CXX"; then 5433 { echo "$as_me:$LINENO: result: $CXX" >&5 5434echo "${ECHO_T}$CXX" >&6; } 5435else 5436 { echo "$as_me:$LINENO: result: no" >&5 5437echo "${ECHO_T}no" >&6; } 5438fi 5439 5440 5441 test -n "$CXX" && break 5442 done 5443fi 5444if test -z "$CXX"; then 5445 ac_ct_CXX=$CXX 5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5447do 5448 # Extract the first word of "$ac_prog", so it can be a program name with args. 5449set dummy $ac_prog; ac_word=$2 5450{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5452if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5453 echo $ECHO_N "(cached) $ECHO_C" >&6 5454else 5455 if test -n "$ac_ct_CXX"; then 5456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 5461 IFS=$as_save_IFS 5462 test -z "$as_dir" && as_dir=. 5463 for ac_exec_ext in '' $ac_executable_extensions; do 5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5465 ac_cv_prog_ac_ct_CXX="$ac_prog" 5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5467 break 2 5468 fi 5469done 5470done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5476if test -n "$ac_ct_CXX"; then 5477 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5478echo "${ECHO_T}$ac_ct_CXX" >&6; } 5479else 5480 { echo "$as_me:$LINENO: result: no" >&5 5481echo "${ECHO_T}no" >&6; } 5482fi 5483 5484 5485 test -n "$ac_ct_CXX" && break 5486done 5487 5488 if test "x$ac_ct_CXX" = x; then 5489 CXX="g++" 5490 else 5491 case $cross_compiling:$ac_tool_warned in 5492yes:) 5493{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5494whose name does not start with the host triplet. If you think this 5495configuration is useful to you, please write to autoconf@gnu.org." >&5 5496echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5497whose name does not start with the host triplet. If you think this 5498configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5499ac_tool_warned=yes ;; 5500esac 5501 CXX=$ac_ct_CXX 5502 fi 5503fi 5504 5505 fi 5506fi 5507# Provide some information about the compiler. 5508echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5509ac_compiler=`set X $ac_compile; echo $2` 5510{ (ac_try="$ac_compiler --version >&5" 5511case "(($ac_try" in 5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5513 *) ac_try_echo=$ac_try;; 5514esac 5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5516 (eval "$ac_compiler --version >&5") 2>&5 5517 ac_status=$? 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); } 5520{ (ac_try="$ac_compiler -v >&5" 5521case "(($ac_try" in 5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5523 *) ac_try_echo=$ac_try;; 5524esac 5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5526 (eval "$ac_compiler -v >&5") 2>&5 5527 ac_status=$? 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); } 5530{ (ac_try="$ac_compiler -V >&5" 5531case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5536 (eval "$ac_compiler -V >&5") 2>&5 5537 ac_status=$? 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } 5540 5541{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5542echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5543if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5544 echo $ECHO_N "(cached) $ECHO_C" >&6 5545else 5546 cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552 5553int 5554main () 5555{ 5556#ifndef __GNUC__ 5557 choke me 5558#endif 5559 5560 ; 5561 return 0; 5562} 5563_ACEOF 5564rm -f conftest.$ac_objext 5565if { (ac_try="$ac_compile" 5566case "(($ac_try" in 5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5568 *) ac_try_echo=$ac_try;; 5569esac 5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5571 (eval "$ac_compile") 2>conftest.er1 5572 ac_status=$? 5573 grep -v '^ *+' conftest.er1 >conftest.err 5574 rm -f conftest.er1 5575 cat conftest.err >&5 5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); } && 5578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5579 { (case "(($ac_try" in 5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5581 *) ac_try_echo=$ac_try;; 5582esac 5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5584 (eval "$ac_try") 2>&5 5585 ac_status=$? 5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); }; } && 5588 { ac_try='test -s conftest.$ac_objext' 5589 { (case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592esac 5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5594 (eval "$ac_try") 2>&5 5595 ac_status=$? 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5597 (exit $ac_status); }; }; then 5598 ac_compiler_gnu=yes 5599else 5600 echo "$as_me: failed program was:" >&5 5601sed 's/^/| /' conftest.$ac_ext >&5 5602 5603 ac_compiler_gnu=no 5604fi 5605 5606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5607ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5608 5609fi 5610{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5611echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5612GXX=`test $ac_compiler_gnu = yes && echo yes` 5613ac_test_CXXFLAGS=${CXXFLAGS+set} 5614ac_save_CXXFLAGS=$CXXFLAGS 5615{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5616echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5617if test "${ac_cv_prog_cxx_g+set}" = set; then 5618 echo $ECHO_N "(cached) $ECHO_C" >&6 5619else 5620 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5621 ac_cxx_werror_flag=yes 5622 ac_cv_prog_cxx_g=no 5623 CXXFLAGS="-g" 5624 cat >conftest.$ac_ext <<_ACEOF 5625/* confdefs.h. */ 5626_ACEOF 5627cat confdefs.h >>conftest.$ac_ext 5628cat >>conftest.$ac_ext <<_ACEOF 5629/* end confdefs.h. */ 5630 5631int 5632main () 5633{ 5634 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639rm -f conftest.$ac_objext 5640if { (ac_try="$ac_compile" 5641case "(($ac_try" in 5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5643 *) ac_try_echo=$ac_try;; 5644esac 5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5646 (eval "$ac_compile") 2>conftest.er1 5647 ac_status=$? 5648 grep -v '^ *+' conftest.er1 >conftest.err 5649 rm -f conftest.er1 5650 cat conftest.err >&5 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && 5653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5654 { (case "(($ac_try" in 5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5656 *) ac_try_echo=$ac_try;; 5657esac 5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5659 (eval "$ac_try") 2>&5 5660 ac_status=$? 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5662 (exit $ac_status); }; } && 5663 { ac_try='test -s conftest.$ac_objext' 5664 { (case "(($ac_try" in 5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5666 *) ac_try_echo=$ac_try;; 5667esac 5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5669 (eval "$ac_try") 2>&5 5670 ac_status=$? 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); }; }; then 5673 ac_cv_prog_cxx_g=yes 5674else 5675 echo "$as_me: failed program was:" >&5 5676sed 's/^/| /' conftest.$ac_ext >&5 5677 5678 CXXFLAGS="" 5679 cat >conftest.$ac_ext <<_ACEOF 5680/* confdefs.h. */ 5681_ACEOF 5682cat confdefs.h >>conftest.$ac_ext 5683cat >>conftest.$ac_ext <<_ACEOF 5684/* end confdefs.h. */ 5685 5686int 5687main () 5688{ 5689 5690 ; 5691 return 0; 5692} 5693_ACEOF 5694rm -f conftest.$ac_objext 5695if { (ac_try="$ac_compile" 5696case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5701 (eval "$ac_compile") 2>conftest.er1 5702 ac_status=$? 5703 grep -v '^ *+' conftest.er1 >conftest.err 5704 rm -f conftest.er1 5705 cat conftest.err >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } && 5708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5709 { (case "(($ac_try" in 5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5711 *) ac_try_echo=$ac_try;; 5712esac 5713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5714 (eval "$ac_try") 2>&5 5715 ac_status=$? 5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5717 (exit $ac_status); }; } && 5718 { ac_try='test -s conftest.$ac_objext' 5719 { (case "(($ac_try" in 5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5721 *) ac_try_echo=$ac_try;; 5722esac 5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5724 (eval "$ac_try") 2>&5 5725 ac_status=$? 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); }; }; then 5728 : 5729else 5730 echo "$as_me: failed program was:" >&5 5731sed 's/^/| /' conftest.$ac_ext >&5 5732 5733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5734 CXXFLAGS="-g" 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 5742int 5743main () 5744{ 5745 5746 ; 5747 return 0; 5748} 5749_ACEOF 5750rm -f conftest.$ac_objext 5751if { (ac_try="$ac_compile" 5752case "(($ac_try" in 5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5754 *) ac_try_echo=$ac_try;; 5755esac 5756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5757 (eval "$ac_compile") 2>conftest.er1 5758 ac_status=$? 5759 grep -v '^ *+' conftest.er1 >conftest.err 5760 rm -f conftest.er1 5761 cat conftest.err >&5 5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5763 (exit $ac_status); } && 5764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5765 { (case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768esac 5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5770 (eval "$ac_try") 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); }; } && 5774 { ac_try='test -s conftest.$ac_objext' 5775 { (case "(($ac_try" in 5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5777 *) ac_try_echo=$ac_try;; 5778esac 5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5780 (eval "$ac_try") 2>&5 5781 ac_status=$? 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); }; }; then 5784 ac_cv_prog_cxx_g=yes 5785else 5786 echo "$as_me: failed program was:" >&5 5787sed 's/^/| /' conftest.$ac_ext >&5 5788 5789 5790fi 5791 5792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5793fi 5794 5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5796fi 5797 5798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5799 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5800fi 5801{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5803if test "$ac_test_CXXFLAGS" = set; then 5804 CXXFLAGS=$ac_save_CXXFLAGS 5805elif test $ac_cv_prog_cxx_g = yes; then 5806 if test "$GXX" = yes; then 5807 CXXFLAGS="-g -O2" 5808 else 5809 CXXFLAGS="-g" 5810 fi 5811else 5812 if test "$GXX" = yes; then 5813 CXXFLAGS="-O2" 5814 else 5815 CXXFLAGS= 5816 fi 5817fi 5818ac_ext=cpp 5819ac_cpp='$CXXCPP $CPPFLAGS' 5820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5823 5824depcc="$CXX" am_compiler_list= 5825 5826{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5829 echo $ECHO_N "(cached) $ECHO_C" >&6 5830else 5831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5832 # We make a subdir and do the tests there. Otherwise we can end up 5833 # making bogus files that we don't know about and never remove. For 5834 # instance it was reported that on HP-UX the gcc test will end up 5835 # making a dummy file named `D' -- because `-MD' means `put the output 5836 # in D'. 5837 mkdir conftest.dir 5838 # Copy depcomp to subdir because otherwise we won't find it if we're 5839 # using a relative directory. 5840 cp "$am_depcomp" conftest.dir 5841 cd conftest.dir 5842 # We will build objects and dependencies in a subdirectory because 5843 # it helps to detect inapplicable dependency modes. For instance 5844 # both Tru64's cc and ICC support -MD to output dependencies as a 5845 # side effect of compilation, but ICC will put the dependencies in 5846 # the current directory while Tru64 will put them in the object 5847 # directory. 5848 mkdir sub 5849 5850 am_cv_CXX_dependencies_compiler_type=none 5851 if test "$am_compiler_list" = ""; then 5852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5853 fi 5854 for depmode in $am_compiler_list; do 5855 # Setup a source with many dependencies, because some compilers 5856 # like to wrap large dependency lists on column 80 (with \), and 5857 # we should not choose a depcomp mode which is confused by this. 5858 # 5859 # We need to recreate these files for each test, as the compiler may 5860 # overwrite some of them when testing with obscure command lines. 5861 # This happens at least with the AIX C compiler. 5862 : > sub/conftest.c 5863 for i in 1 2 3 4 5 6; do 5864 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5866 # Solaris 8's {/usr,}/bin/sh. 5867 touch sub/conftst$i.h 5868 done 5869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5870 5871 case $depmode in 5872 nosideeffect) 5873 # after this tag, mechanisms are not by side-effect, so they'll 5874 # only be used when explicitly requested 5875 if test "x$enable_dependency_tracking" = xyes; then 5876 continue 5877 else 5878 break 5879 fi 5880 ;; 5881 none) break ;; 5882 esac 5883 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5884 # mode. It turns out that the SunPro C++ compiler does not properly 5885 # handle `-M -o', and we need to detect this. 5886 if depmode=$depmode \ 5887 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5889 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5890 >/dev/null 2>conftest.err && 5891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5892 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5894 # icc doesn't choke on unknown options, it will just issue warnings 5895 # or remarks (even with -Werror). So we grep stderr for any message 5896 # that says an option was ignored or not supported. 5897 # When given -MP, icc 7.0 and 7.1 complain thusly: 5898 # icc: Command line warning: ignoring option '-M'; no argument required 5899 # The diagnosis changed in icc 8.0: 5900 # icc: Command line remark: option '-MP' not supported 5901 if (grep 'ignoring option' conftest.err || 5902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5903 am_cv_CXX_dependencies_compiler_type=$depmode 5904 break 5905 fi 5906 fi 5907 done 5908 5909 cd .. 5910 rm -rf conftest.dir 5911else 5912 am_cv_CXX_dependencies_compiler_type=none 5913fi 5914 5915fi 5916{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5917echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5918CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5919 5920 5921 5922if 5923 test "x$enable_dependency_tracking" != xno \ 5924 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5925 am__fastdepCXX_TRUE= 5926 am__fastdepCXX_FALSE='#' 5927else 5928 am__fastdepCXX_TRUE='#' 5929 am__fastdepCXX_FALSE= 5930fi 5931 5932 5933 5934 5935if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5936 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5937 (test "X$CXX" != "Xg++"))) ; then 5938 ac_ext=cpp 5939ac_cpp='$CXXCPP $CPPFLAGS' 5940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5943{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5944echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5945if test -z "$CXXCPP"; then 5946 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948else 5949 # Double quotes because CXXCPP needs to be expanded 5950 for CXXCPP in "$CXX -E" "/lib/cpp" 5951 do 5952 ac_preproc_ok=false 5953for ac_cxx_preproc_warn_flag in '' yes 5954do 5955 # Use a header file that comes with gcc, so configuring glibc 5956 # with a fresh cross-compiler works. 5957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5958 # <limits.h> exists even on freestanding compilers. 5959 # On the NeXT, cc -E runs the code through the compiler's parser, 5960 # not just through cpp. "Syntax error" is here to catch this case. 5961 cat >conftest.$ac_ext <<_ACEOF 5962/* confdefs.h. */ 5963_ACEOF 5964cat confdefs.h >>conftest.$ac_ext 5965cat >>conftest.$ac_ext <<_ACEOF 5966/* end confdefs.h. */ 5967@%:@ifdef __STDC__ 5968@%:@ include <limits.h> 5969@%:@else 5970@%:@ include <assert.h> 5971@%:@endif 5972 Syntax error 5973_ACEOF 5974if { (ac_try="$ac_cpp conftest.$ac_ext" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } >/dev/null; then 5987 if test -s conftest.err; then 5988 ac_cpp_err=$ac_cxx_preproc_warn_flag 5989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5990 else 5991 ac_cpp_err= 5992 fi 5993else 5994 ac_cpp_err=yes 5995fi 5996if test -z "$ac_cpp_err"; then 5997 : 5998else 5999 echo "$as_me: failed program was:" >&5 6000sed 's/^/| /' conftest.$ac_ext >&5 6001 6002 # Broken: fails on valid input. 6003continue 6004fi 6005 6006rm -f conftest.err conftest.$ac_ext 6007 6008 # OK, works on sane cases. Now check whether nonexistent headers 6009 # can be detected and how. 6010 cat >conftest.$ac_ext <<_ACEOF 6011/* confdefs.h. */ 6012_ACEOF 6013cat confdefs.h >>conftest.$ac_ext 6014cat >>conftest.$ac_ext <<_ACEOF 6015/* end confdefs.h. */ 6016@%:@include <ac_nonexistent.h> 6017_ACEOF 6018if { (ac_try="$ac_cpp conftest.$ac_ext" 6019case "(($ac_try" in 6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6021 *) ac_try_echo=$ac_try;; 6022esac 6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6025 ac_status=$? 6026 grep -v '^ *+' conftest.er1 >conftest.err 6027 rm -f conftest.er1 6028 cat conftest.err >&5 6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030 (exit $ac_status); } >/dev/null; then 6031 if test -s conftest.err; then 6032 ac_cpp_err=$ac_cxx_preproc_warn_flag 6033 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6034 else 6035 ac_cpp_err= 6036 fi 6037else 6038 ac_cpp_err=yes 6039fi 6040if test -z "$ac_cpp_err"; then 6041 # Broken: success on invalid input. 6042continue 6043else 6044 echo "$as_me: failed program was:" >&5 6045sed 's/^/| /' conftest.$ac_ext >&5 6046 6047 # Passes both tests. 6048ac_preproc_ok=: 6049break 6050fi 6051 6052rm -f conftest.err conftest.$ac_ext 6053 6054done 6055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6056rm -f conftest.err conftest.$ac_ext 6057if $ac_preproc_ok; then 6058 break 6059fi 6060 6061 done 6062 ac_cv_prog_CXXCPP=$CXXCPP 6063 6064fi 6065 CXXCPP=$ac_cv_prog_CXXCPP 6066else 6067 ac_cv_prog_CXXCPP=$CXXCPP 6068fi 6069{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6070echo "${ECHO_T}$CXXCPP" >&6; } 6071ac_preproc_ok=false 6072for ac_cxx_preproc_warn_flag in '' yes 6073do 6074 # Use a header file that comes with gcc, so configuring glibc 6075 # with a fresh cross-compiler works. 6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6077 # <limits.h> exists even on freestanding compilers. 6078 # On the NeXT, cc -E runs the code through the compiler's parser, 6079 # not just through cpp. "Syntax error" is here to catch this case. 6080 cat >conftest.$ac_ext <<_ACEOF 6081/* confdefs.h. */ 6082_ACEOF 6083cat confdefs.h >>conftest.$ac_ext 6084cat >>conftest.$ac_ext <<_ACEOF 6085/* end confdefs.h. */ 6086@%:@ifdef __STDC__ 6087@%:@ include <limits.h> 6088@%:@else 6089@%:@ include <assert.h> 6090@%:@endif 6091 Syntax error 6092_ACEOF 6093if { (ac_try="$ac_cpp conftest.$ac_ext" 6094case "(($ac_try" in 6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6096 *) ac_try_echo=$ac_try;; 6097esac 6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6100 ac_status=$? 6101 grep -v '^ *+' conftest.er1 >conftest.err 6102 rm -f conftest.er1 6103 cat conftest.err >&5 6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6105 (exit $ac_status); } >/dev/null; then 6106 if test -s conftest.err; then 6107 ac_cpp_err=$ac_cxx_preproc_warn_flag 6108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6109 else 6110 ac_cpp_err= 6111 fi 6112else 6113 ac_cpp_err=yes 6114fi 6115if test -z "$ac_cpp_err"; then 6116 : 6117else 6118 echo "$as_me: failed program was:" >&5 6119sed 's/^/| /' conftest.$ac_ext >&5 6120 6121 # Broken: fails on valid input. 6122continue 6123fi 6124 6125rm -f conftest.err conftest.$ac_ext 6126 6127 # OK, works on sane cases. Now check whether nonexistent headers 6128 # can be detected and how. 6129 cat >conftest.$ac_ext <<_ACEOF 6130/* confdefs.h. */ 6131_ACEOF 6132cat confdefs.h >>conftest.$ac_ext 6133cat >>conftest.$ac_ext <<_ACEOF 6134/* end confdefs.h. */ 6135@%:@include <ac_nonexistent.h> 6136_ACEOF 6137if { (ac_try="$ac_cpp conftest.$ac_ext" 6138case "(($ac_try" in 6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6140 *) ac_try_echo=$ac_try;; 6141esac 6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6144 ac_status=$? 6145 grep -v '^ *+' conftest.er1 >conftest.err 6146 rm -f conftest.er1 6147 cat conftest.err >&5 6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149 (exit $ac_status); } >/dev/null; then 6150 if test -s conftest.err; then 6151 ac_cpp_err=$ac_cxx_preproc_warn_flag 6152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6153 else 6154 ac_cpp_err= 6155 fi 6156else 6157 ac_cpp_err=yes 6158fi 6159if test -z "$ac_cpp_err"; then 6160 # Broken: success on invalid input. 6161continue 6162else 6163 echo "$as_me: failed program was:" >&5 6164sed 's/^/| /' conftest.$ac_ext >&5 6165 6166 # Passes both tests. 6167ac_preproc_ok=: 6168break 6169fi 6170 6171rm -f conftest.err conftest.$ac_ext 6172 6173done 6174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6175rm -f conftest.err conftest.$ac_ext 6176if $ac_preproc_ok; then 6177 : 6178else 6179 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6180See \`config.log' for more details." >&5 6181echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6182See \`config.log' for more details." >&2;} 6183 { (exit 1); exit 1; }; } 6184fi 6185 6186ac_ext=cpp 6187ac_cpp='$CXXCPP $CPPFLAGS' 6188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6191 6192fi 6193 6194 6195ac_ext=f 6196ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6197ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6198ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6199if test -n "$ac_tool_prefix"; then 6200 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6201 do 6202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6203set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6204{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6206if test "${ac_cv_prog_F77+set}" = set; then 6207 echo $ECHO_N "(cached) $ECHO_C" >&6 6208else 6209 if test -n "$F77"; then 6210 ac_cv_prog_F77="$F77" # Let the user override the test. 6211else 6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6213for as_dir in $PATH 6214do 6215 IFS=$as_save_IFS 6216 test -z "$as_dir" && as_dir=. 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6219 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224done 6225IFS=$as_save_IFS 6226 6227fi 6228fi 6229F77=$ac_cv_prog_F77 6230if test -n "$F77"; then 6231 { echo "$as_me:$LINENO: result: $F77" >&5 6232echo "${ECHO_T}$F77" >&6; } 6233else 6234 { echo "$as_me:$LINENO: result: no" >&5 6235echo "${ECHO_T}no" >&6; } 6236fi 6237 6238 6239 test -n "$F77" && break 6240 done 6241fi 6242if test -z "$F77"; then 6243 ac_ct_F77=$F77 6244 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6245do 6246 # Extract the first word of "$ac_prog", so it can be a program name with args. 6247set dummy $ac_prog; ac_word=$2 6248{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6250if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6251 echo $ECHO_N "(cached) $ECHO_C" >&6 6252else 6253 if test -n "$ac_ct_F77"; then 6254 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6255else 6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6263 ac_cv_prog_ac_ct_F77="$ac_prog" 6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273ac_ct_F77=$ac_cv_prog_ac_ct_F77 6274if test -n "$ac_ct_F77"; then 6275 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6276echo "${ECHO_T}$ac_ct_F77" >&6; } 6277else 6278 { echo "$as_me:$LINENO: result: no" >&5 6279echo "${ECHO_T}no" >&6; } 6280fi 6281 6282 6283 test -n "$ac_ct_F77" && break 6284done 6285 6286 if test "x$ac_ct_F77" = x; then 6287 F77="" 6288 else 6289 case $cross_compiling:$ac_tool_warned in 6290yes:) 6291{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6292whose name does not start with the host triplet. If you think this 6293configuration is useful to you, please write to autoconf@gnu.org." >&5 6294echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6295whose name does not start with the host triplet. If you think this 6296configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6297ac_tool_warned=yes ;; 6298esac 6299 F77=$ac_ct_F77 6300 fi 6301fi 6302 6303 6304# Provide some information about the compiler. 6305echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6306ac_compiler=`set X $ac_compile; echo $2` 6307{ (ac_try="$ac_compiler --version >&5" 6308case "(($ac_try" in 6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6310 *) ac_try_echo=$ac_try;; 6311esac 6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6313 (eval "$ac_compiler --version >&5") 2>&5 6314 ac_status=$? 6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6316 (exit $ac_status); } 6317{ (ac_try="$ac_compiler -v >&5" 6318case "(($ac_try" in 6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6320 *) ac_try_echo=$ac_try;; 6321esac 6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6323 (eval "$ac_compiler -v >&5") 2>&5 6324 ac_status=$? 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6326 (exit $ac_status); } 6327{ (ac_try="$ac_compiler -V >&5" 6328case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331esac 6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_compiler -V >&5") 2>&5 6334 ac_status=$? 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); } 6337rm -f a.out 6338 6339# If we don't use `.F' as extension, the preprocessor is not run on the 6340# input file. (Note that this only needs to work for GNU compilers.) 6341ac_save_ext=$ac_ext 6342ac_ext=F 6343{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6344echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6345if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6346 echo $ECHO_N "(cached) $ECHO_C" >&6 6347else 6348 cat >conftest.$ac_ext <<_ACEOF 6349 program main 6350#ifndef __GNUC__ 6351 choke me 6352#endif 6353 6354 end 6355_ACEOF 6356rm -f conftest.$ac_objext 6357if { (ac_try="$ac_compile" 6358case "(($ac_try" in 6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6360 *) ac_try_echo=$ac_try;; 6361esac 6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6363 (eval "$ac_compile") 2>conftest.er1 6364 ac_status=$? 6365 grep -v '^ *+' conftest.er1 >conftest.err 6366 rm -f conftest.er1 6367 cat conftest.err >&5 6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6369 (exit $ac_status); } && 6370 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6371 { (case "(($ac_try" in 6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6373 *) ac_try_echo=$ac_try;; 6374esac 6375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6376 (eval "$ac_try") 2>&5 6377 ac_status=$? 6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6379 (exit $ac_status); }; } && 6380 { ac_try='test -s conftest.$ac_objext' 6381 { (case "(($ac_try" in 6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6383 *) ac_try_echo=$ac_try;; 6384esac 6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6386 (eval "$ac_try") 2>&5 6387 ac_status=$? 6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6389 (exit $ac_status); }; }; then 6390 ac_compiler_gnu=yes 6391else 6392 echo "$as_me: failed program was:" >&5 6393sed 's/^/| /' conftest.$ac_ext >&5 6394 6395 ac_compiler_gnu=no 6396fi 6397 6398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6399ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6400 6401fi 6402{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6403echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6404ac_ext=$ac_save_ext 6405ac_test_FFLAGS=${FFLAGS+set} 6406ac_save_FFLAGS=$FFLAGS 6407FFLAGS= 6408{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6409echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6410if test "${ac_cv_prog_f77_g+set}" = set; then 6411 echo $ECHO_N "(cached) $ECHO_C" >&6 6412else 6413 FFLAGS=-g 6414cat >conftest.$ac_ext <<_ACEOF 6415 program main 6416 6417 end 6418_ACEOF 6419rm -f conftest.$ac_objext 6420if { (ac_try="$ac_compile" 6421case "(($ac_try" in 6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6423 *) ac_try_echo=$ac_try;; 6424esac 6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6426 (eval "$ac_compile") 2>conftest.er1 6427 ac_status=$? 6428 grep -v '^ *+' conftest.er1 >conftest.err 6429 rm -f conftest.er1 6430 cat conftest.err >&5 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); } && 6433 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6434 { (case "(($ac_try" in 6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6436 *) ac_try_echo=$ac_try;; 6437esac 6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6439 (eval "$ac_try") 2>&5 6440 ac_status=$? 6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6442 (exit $ac_status); }; } && 6443 { ac_try='test -s conftest.$ac_objext' 6444 { (case "(($ac_try" in 6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6446 *) ac_try_echo=$ac_try;; 6447esac 6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6449 (eval "$ac_try") 2>&5 6450 ac_status=$? 6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6452 (exit $ac_status); }; }; then 6453 ac_cv_prog_f77_g=yes 6454else 6455 echo "$as_me: failed program was:" >&5 6456sed 's/^/| /' conftest.$ac_ext >&5 6457 6458 ac_cv_prog_f77_g=no 6459fi 6460 6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6462 6463fi 6464{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6465echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6466if test "$ac_test_FFLAGS" = set; then 6467 FFLAGS=$ac_save_FFLAGS 6468elif test $ac_cv_prog_f77_g = yes; then 6469 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6470 FFLAGS="-g -O2" 6471 else 6472 FFLAGS="-g" 6473 fi 6474else 6475 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6476 FFLAGS="-O2" 6477 else 6478 FFLAGS= 6479 fi 6480fi 6481 6482G77=`test $ac_compiler_gnu = yes && echo yes` 6483ac_ext=c 6484ac_cpp='$CPP $CPPFLAGS' 6485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6487ac_compiler_gnu=$ac_cv_c_compiler_gnu 6488 6489 6490 6491# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6492 6493# find the maximum length of command line arguments 6494{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6495echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6496if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6497 echo $ECHO_N "(cached) $ECHO_C" >&6 6498else 6499 i=0 6500 teststring="ABCD" 6501 6502 case $build_os in 6503 msdosdjgpp*) 6504 # On DJGPP, this test can blow up pretty badly due to problems in libc 6505 # (any single argument exceeding 2000 bytes causes a buffer overrun 6506 # during glob expansion). Even if it were fixed, the result of this 6507 # check would be larger than it should be. 6508 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6509 ;; 6510 6511 gnu*) 6512 # Under GNU Hurd, this test is not required because there is 6513 # no limit to the length of command line arguments. 6514 # Libtool will interpret -1 as no limit whatsoever 6515 lt_cv_sys_max_cmd_len=-1; 6516 ;; 6517 6518 cygwin* | mingw*) 6519 # On Win9x/ME, this test blows up -- it succeeds, but takes 6520 # about 5 minutes as the teststring grows exponentially. 6521 # Worse, since 9x/ME are not pre-emptively multitasking, 6522 # you end up with a "frozen" computer, even though with patience 6523 # the test eventually succeeds (with a max line length of 256k). 6524 # Instead, let's just punt: use the minimum linelength reported by 6525 # all of the supported platforms: 8192 (on NT/2K/XP). 6526 lt_cv_sys_max_cmd_len=8192; 6527 ;; 6528 6529 amigaos*) 6530 # On AmigaOS with pdksh, this test takes hours, literally. 6531 # So we just punt and use a minimum line length of 8192. 6532 lt_cv_sys_max_cmd_len=8192; 6533 ;; 6534 6535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6536 # This has been around since 386BSD, at least. Likely further. 6537 if test -x /sbin/sysctl; then 6538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6539 elif test -x /usr/sbin/sysctl; then 6540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6541 else 6542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6543 fi 6544 # And add a safety zone 6545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6547 ;; 6548 6549 interix*) 6550 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6551 lt_cv_sys_max_cmd_len=196608 6552 ;; 6553 6554 osf*) 6555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6557 # nice to cause kernel panics so lets avoid the loop below. 6558 # First set a reasonable default. 6559 lt_cv_sys_max_cmd_len=16384 6560 # 6561 if test -x /sbin/sysconfig; then 6562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6563 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6564 esac 6565 fi 6566 ;; 6567 sco3.2v5*) 6568 lt_cv_sys_max_cmd_len=102400 6569 ;; 6570 sysv5* | sco5v6* | sysv4.2uw2*) 6571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6572 if test -n "$kargmax"; then 6573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6574 else 6575 lt_cv_sys_max_cmd_len=32768 6576 fi 6577 ;; 6578 *) 6579 # If test is not a shell built-in, we'll probably end up computing a 6580 # maximum length that is only half of the actual maximum length, but 6581 # we can't tell. 6582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6583 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6584 = "XX$teststring") >/dev/null 2>&1 && 6585 new_result=`expr "X$teststring" : ".*" 2>&1` && 6586 lt_cv_sys_max_cmd_len=$new_result && 6587 test $i != 17 # 1/2 MB should be enough 6588 do 6589 i=`expr $i + 1` 6590 teststring=$teststring$teststring 6591 done 6592 teststring= 6593 # Add a significant safety factor because C++ compilers can tack on massive 6594 # amounts of additional arguments before passing them to the linker. 6595 # It appears as though 1/2 is a usable value. 6596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6597 ;; 6598 esac 6599 6600fi 6601 6602if test -n $lt_cv_sys_max_cmd_len ; then 6603 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6604echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6605else 6606 { echo "$as_me:$LINENO: result: none" >&5 6607echo "${ECHO_T}none" >&6; } 6608fi 6609 6610 6611 6612 6613# Check for command to grab the raw symbol name followed by C symbol from nm. 6614{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6615echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6616if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6617 echo $ECHO_N "(cached) $ECHO_C" >&6 6618else 6619 6620# These are sane defaults that work on at least a few old systems. 6621# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6622 6623# Character class describing NM global symbol codes. 6624symcode='[BCDEGRST]' 6625 6626# Regexp to match symbols that can be accessed directly from C. 6627sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6628 6629# Transform an extracted symbol line into a proper C declaration 6630lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6631 6632# Transform an extracted symbol line into symbol name and symbol address 6633lt_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'" 6634 6635# Define system-specific variables. 6636case $host_os in 6637aix*) 6638 symcode='[BCDT]' 6639 ;; 6640cygwin* | mingw* | pw32*) 6641 symcode='[ABCDGISTW]' 6642 ;; 6643hpux*) # Its linker distinguishes data from code symbols 6644 if test "$host_cpu" = ia64; then 6645 symcode='[ABCDEGRST]' 6646 fi 6647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6648 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'" 6649 ;; 6650linux* | k*bsd*-gnu) 6651 if test "$host_cpu" = ia64; then 6652 symcode='[ABCDGIRSTW]' 6653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6654 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'" 6655 fi 6656 ;; 6657irix* | nonstopux*) 6658 symcode='[BCDEGRST]' 6659 ;; 6660osf*) 6661 symcode='[BCDEGQRST]' 6662 ;; 6663solaris*) 6664 symcode='[BDRT]' 6665 ;; 6666sco3.2v5*) 6667 symcode='[DT]' 6668 ;; 6669sysv4.2uw2*) 6670 symcode='[DT]' 6671 ;; 6672sysv5* | sco5v6* | unixware* | OpenUNIX*) 6673 symcode='[ABDT]' 6674 ;; 6675sysv4) 6676 symcode='[DFNSTU]' 6677 ;; 6678esac 6679 6680# Handle CRLF in mingw tool chain 6681opt_cr= 6682case $build_os in 6683mingw*) 6684 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6685 ;; 6686esac 6687 6688# If we're using GNU nm, then use its standard symbol codes. 6689case `$NM -V 2>&1` in 6690*GNU* | *'with BFD'*) 6691 symcode='[ABCDGIRSTW]' ;; 6692esac 6693 6694# Try without a prefix undercore, then with it. 6695for ac_symprfx in "" "_"; do 6696 6697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6698 symxfrm="\\1 $ac_symprfx\\2 \\2" 6699 6700 # Write the raw and C identifiers. 6701 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6702 6703 # Check to see that the pipe works correctly. 6704 pipe_works=no 6705 6706 rm -f conftest* 6707 cat > conftest.$ac_ext <<EOF 6708#ifdef __cplusplus 6709extern "C" { 6710#endif 6711char nm_test_var; 6712void nm_test_func(){} 6713#ifdef __cplusplus 6714} 6715#endif 6716int main(){nm_test_var='a';nm_test_func();return(0);} 6717EOF 6718 6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6720 (eval $ac_compile) 2>&5 6721 ac_status=$? 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); }; then 6724 # Now try to grab the symbols. 6725 nlist=conftest.nm 6726 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6727 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6728 ac_status=$? 6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6730 (exit $ac_status); } && test -s "$nlist"; then 6731 # Try sorting and uniquifying the output. 6732 if sort "$nlist" | uniq > "$nlist"T; then 6733 mv -f "$nlist"T "$nlist" 6734 else 6735 rm -f "$nlist"T 6736 fi 6737 6738 # Make sure that we snagged all the symbols we need. 6739 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6740 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6741 cat <<EOF > conftest.$ac_ext 6742#ifdef __cplusplus 6743extern "C" { 6744#endif 6745 6746EOF 6747 # Now generate the symbol file. 6748 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6749 6750 cat <<EOF >> conftest.$ac_ext 6751#if defined (__STDC__) && __STDC__ 6752# define lt_ptr_t void * 6753#else 6754# define lt_ptr_t char * 6755# define const 6756#endif 6757 6758/* The mapping between symbol names and symbols. */ 6759const struct { 6760 const char *name; 6761 lt_ptr_t address; 6762} 6763lt_preloaded_symbols[] = 6764{ 6765EOF 6766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6767 cat <<\EOF >> conftest.$ac_ext 6768 {0, (lt_ptr_t) 0} 6769}; 6770 6771#ifdef __cplusplus 6772} 6773#endif 6774EOF 6775 # Now try linking the two files. 6776 mv conftest.$ac_objext conftstm.$ac_objext 6777 lt_save_LIBS="$LIBS" 6778 lt_save_CFLAGS="$CFLAGS" 6779 LIBS="conftstm.$ac_objext" 6780 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6782 (eval $ac_link) 2>&5 6783 ac_status=$? 6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6785 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6786 pipe_works=yes 6787 fi 6788 LIBS="$lt_save_LIBS" 6789 CFLAGS="$lt_save_CFLAGS" 6790 else 6791 echo "cannot find nm_test_func in $nlist" >&5 6792 fi 6793 else 6794 echo "cannot find nm_test_var in $nlist" >&5 6795 fi 6796 else 6797 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6798 fi 6799 else 6800 echo "$progname: failed program was:" >&5 6801 cat conftest.$ac_ext >&5 6802 fi 6803 rm -f conftest* conftst* 6804 6805 # Do not use the global_symbol_pipe unless it works. 6806 if test "$pipe_works" = yes; then 6807 break 6808 else 6809 lt_cv_sys_global_symbol_pipe= 6810 fi 6811done 6812 6813fi 6814 6815if test -z "$lt_cv_sys_global_symbol_pipe"; then 6816 lt_cv_sys_global_symbol_to_cdecl= 6817fi 6818if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6819 { echo "$as_me:$LINENO: result: failed" >&5 6820echo "${ECHO_T}failed" >&6; } 6821else 6822 { echo "$as_me:$LINENO: result: ok" >&5 6823echo "${ECHO_T}ok" >&6; } 6824fi 6825 6826{ echo "$as_me:$LINENO: checking for objdir" >&5 6827echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6828if test "${lt_cv_objdir+set}" = set; then 6829 echo $ECHO_N "(cached) $ECHO_C" >&6 6830else 6831 rm -f .libs 2>/dev/null 6832mkdir .libs 2>/dev/null 6833if test -d .libs; then 6834 lt_cv_objdir=.libs 6835else 6836 # MS-DOS does not allow filenames that begin with a dot. 6837 lt_cv_objdir=_libs 6838fi 6839rmdir .libs 2>/dev/null 6840fi 6841{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6842echo "${ECHO_T}$lt_cv_objdir" >&6; } 6843objdir=$lt_cv_objdir 6844 6845 6846 6847 6848 6849case $host_os in 6850aix3*) 6851 # AIX sometimes has problems with the GCC collect2 program. For some 6852 # reason, if we set the COLLECT_NAMES environment variable, the problems 6853 # vanish in a puff of smoke. 6854 if test "X${COLLECT_NAMES+set}" != Xset; then 6855 COLLECT_NAMES= 6856 export COLLECT_NAMES 6857 fi 6858 ;; 6859esac 6860 6861# Sed substitution that helps us do robust quoting. It backslashifies 6862# metacharacters that are still active within double-quoted strings. 6863Xsed='sed -e 1s/^X//' 6864sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6865 6866# Same as above, but do not quote variable references. 6867double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6868 6869# Sed substitution to delay expansion of an escaped shell variable in a 6870# double_quote_subst'ed string. 6871delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6872 6873# Sed substitution to avoid accidental globbing in evaled expressions 6874no_glob_subst='s/\*/\\\*/g' 6875 6876# Constants: 6877rm="rm -f" 6878 6879# Global variables: 6880default_ofile=libtool 6881can_build_shared=yes 6882 6883# All known linkers require a `.a' archive for static linking (except MSVC, 6884# which needs '.lib'). 6885libext=a 6886ltmain="$ac_aux_dir/ltmain.sh" 6887ofile="$default_ofile" 6888with_gnu_ld="$lt_cv_prog_gnu_ld" 6889 6890if test -n "$ac_tool_prefix"; then 6891 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6892set dummy ${ac_tool_prefix}ar; ac_word=$2 6893{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6895if test "${ac_cv_prog_AR+set}" = set; then 6896 echo $ECHO_N "(cached) $ECHO_C" >&6 6897else 6898 if test -n "$AR"; then 6899 ac_cv_prog_AR="$AR" # Let the user override the test. 6900else 6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6908 ac_cv_prog_AR="${ac_tool_prefix}ar" 6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913done 6914IFS=$as_save_IFS 6915 6916fi 6917fi 6918AR=$ac_cv_prog_AR 6919if test -n "$AR"; then 6920 { echo "$as_me:$LINENO: result: $AR" >&5 6921echo "${ECHO_T}$AR" >&6; } 6922else 6923 { echo "$as_me:$LINENO: result: no" >&5 6924echo "${ECHO_T}no" >&6; } 6925fi 6926 6927 6928fi 6929if test -z "$ac_cv_prog_AR"; then 6930 ac_ct_AR=$AR 6931 # Extract the first word of "ar", so it can be a program name with args. 6932set dummy ar; ac_word=$2 6933{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6935if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6936 echo $ECHO_N "(cached) $ECHO_C" >&6 6937else 6938 if test -n "$ac_ct_AR"; then 6939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6940else 6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6942for as_dir in $PATH 6943do 6944 IFS=$as_save_IFS 6945 test -z "$as_dir" && as_dir=. 6946 for ac_exec_ext in '' $ac_executable_extensions; do 6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6948 ac_cv_prog_ac_ct_AR="ar" 6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6950 break 2 6951 fi 6952done 6953done 6954IFS=$as_save_IFS 6955 6956fi 6957fi 6958ac_ct_AR=$ac_cv_prog_ac_ct_AR 6959if test -n "$ac_ct_AR"; then 6960 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6961echo "${ECHO_T}$ac_ct_AR" >&6; } 6962else 6963 { echo "$as_me:$LINENO: result: no" >&5 6964echo "${ECHO_T}no" >&6; } 6965fi 6966 6967 if test "x$ac_ct_AR" = x; then 6968 AR="false" 6969 else 6970 case $cross_compiling:$ac_tool_warned in 6971yes:) 6972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6973whose name does not start with the host triplet. If you think this 6974configuration is useful to you, please write to autoconf@gnu.org." >&5 6975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6976whose name does not start with the host triplet. If you think this 6977configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6978ac_tool_warned=yes ;; 6979esac 6980 AR=$ac_ct_AR 6981 fi 6982else 6983 AR="$ac_cv_prog_AR" 6984fi 6985 6986if test -n "$ac_tool_prefix"; then 6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6988set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6991if test "${ac_cv_prog_RANLIB+set}" = set; then 6992 echo $ECHO_N "(cached) $ECHO_C" >&6 6993else 6994 if test -n "$RANLIB"; then 6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014RANLIB=$ac_cv_prog_RANLIB 7015if test -n "$RANLIB"; then 7016 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7017echo "${ECHO_T}$RANLIB" >&6; } 7018else 7019 { echo "$as_me:$LINENO: result: no" >&5 7020echo "${ECHO_T}no" >&6; } 7021fi 7022 7023 7024fi 7025if test -z "$ac_cv_prog_RANLIB"; then 7026 ac_ct_RANLIB=$RANLIB 7027 # Extract the first word of "ranlib", so it can be a program name with args. 7028set dummy ranlib; ac_word=$2 7029{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7031if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7032 echo $ECHO_N "(cached) $ECHO_C" >&6 7033else 7034 if test -n "$ac_ct_RANLIB"; then 7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7044 ac_cv_prog_ac_ct_RANLIB="ranlib" 7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7055if test -n "$ac_ct_RANLIB"; then 7056 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7057echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7058else 7059 { echo "$as_me:$LINENO: result: no" >&5 7060echo "${ECHO_T}no" >&6; } 7061fi 7062 7063 if test "x$ac_ct_RANLIB" = x; then 7064 RANLIB=":" 7065 else 7066 case $cross_compiling:$ac_tool_warned in 7067yes:) 7068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7069whose name does not start with the host triplet. If you think this 7070configuration is useful to you, please write to autoconf@gnu.org." >&5 7071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7072whose name does not start with the host triplet. If you think this 7073configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7074ac_tool_warned=yes ;; 7075esac 7076 RANLIB=$ac_ct_RANLIB 7077 fi 7078else 7079 RANLIB="$ac_cv_prog_RANLIB" 7080fi 7081 7082if test -n "$ac_tool_prefix"; then 7083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7084set dummy ${ac_tool_prefix}strip; ac_word=$2 7085{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7087if test "${ac_cv_prog_STRIP+set}" = set; then 7088 echo $ECHO_N "(cached) $ECHO_C" >&6 7089else 7090 if test -n "$STRIP"; then 7091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7092else 7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094for as_dir in $PATH 7095do 7096 IFS=$as_save_IFS 7097 test -z "$as_dir" && as_dir=. 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7100 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7102 break 2 7103 fi 7104done 7105done 7106IFS=$as_save_IFS 7107 7108fi 7109fi 7110STRIP=$ac_cv_prog_STRIP 7111if test -n "$STRIP"; then 7112 { echo "$as_me:$LINENO: result: $STRIP" >&5 7113echo "${ECHO_T}$STRIP" >&6; } 7114else 7115 { echo "$as_me:$LINENO: result: no" >&5 7116echo "${ECHO_T}no" >&6; } 7117fi 7118 7119 7120fi 7121if test -z "$ac_cv_prog_STRIP"; then 7122 ac_ct_STRIP=$STRIP 7123 # Extract the first word of "strip", so it can be a program name with args. 7124set dummy strip; ac_word=$2 7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7127if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7128 echo $ECHO_N "(cached) $ECHO_C" >&6 7129else 7130 if test -n "$ac_ct_STRIP"; then 7131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7132else 7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134for as_dir in $PATH 7135do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7140 ac_cv_prog_ac_ct_STRIP="strip" 7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144done 7145done 7146IFS=$as_save_IFS 7147 7148fi 7149fi 7150ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7151if test -n "$ac_ct_STRIP"; then 7152 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7153echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7154else 7155 { echo "$as_me:$LINENO: result: no" >&5 7156echo "${ECHO_T}no" >&6; } 7157fi 7158 7159 if test "x$ac_ct_STRIP" = x; then 7160 STRIP=":" 7161 else 7162 case $cross_compiling:$ac_tool_warned in 7163yes:) 7164{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7165whose name does not start with the host triplet. If you think this 7166configuration is useful to you, please write to autoconf@gnu.org." >&5 7167echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7168whose name does not start with the host triplet. If you think this 7169configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7170ac_tool_warned=yes ;; 7171esac 7172 STRIP=$ac_ct_STRIP 7173 fi 7174else 7175 STRIP="$ac_cv_prog_STRIP" 7176fi 7177 7178 7179old_CC="$CC" 7180old_CFLAGS="$CFLAGS" 7181 7182# Set sane defaults for various variables 7183test -z "$AR" && AR=ar 7184test -z "$AR_FLAGS" && AR_FLAGS=cru 7185test -z "$AS" && AS=as 7186test -z "$CC" && CC=cc 7187test -z "$LTCC" && LTCC=$CC 7188test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7189test -z "$DLLTOOL" && DLLTOOL=dlltool 7190test -z "$LD" && LD=ld 7191test -z "$LN_S" && LN_S="ln -s" 7192test -z "$MAGIC_CMD" && MAGIC_CMD=file 7193test -z "$NM" && NM=nm 7194test -z "$SED" && SED=sed 7195test -z "$OBJDUMP" && OBJDUMP=objdump 7196test -z "$RANLIB" && RANLIB=: 7197test -z "$STRIP" && STRIP=: 7198test -z "$ac_objext" && ac_objext=o 7199 7200# Determine commands to create old-style static archives. 7201old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7202old_postinstall_cmds='chmod 644 $oldlib' 7203old_postuninstall_cmds= 7204 7205if test -n "$RANLIB"; then 7206 case $host_os in 7207 openbsd*) 7208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7209 ;; 7210 *) 7211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7212 ;; 7213 esac 7214 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7215fi 7216 7217for cc_temp in $compiler""; do 7218 case $cc_temp in 7219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7221 \-*) ;; 7222 *) break;; 7223 esac 7224done 7225cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7226 7227 7228# Only perform the check for file, if the check method requires it 7229case $deplibs_check_method in 7230file_magic*) 7231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7232 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7233echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7234if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7235 echo $ECHO_N "(cached) $ECHO_C" >&6 7236else 7237 case $MAGIC_CMD in 7238[\\/*] | ?:[\\/]*) 7239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7240 ;; 7241*) 7242 lt_save_MAGIC_CMD="$MAGIC_CMD" 7243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7245 for ac_dir in $ac_dummy; do 7246 IFS="$lt_save_ifs" 7247 test -z "$ac_dir" && ac_dir=. 7248 if test -f $ac_dir/${ac_tool_prefix}file; then 7249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7250 if test -n "$file_magic_test_file"; then 7251 case $deplibs_check_method in 7252 "file_magic "*) 7253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7256 $EGREP "$file_magic_regex" > /dev/null; then 7257 : 7258 else 7259 cat <<EOF 1>&2 7260 7261*** Warning: the command libtool uses to detect shared libraries, 7262*** $file_magic_cmd, produces output that libtool cannot recognize. 7263*** The result is that libtool may fail to recognize shared libraries 7264*** as such. This will affect the creation of libtool libraries that 7265*** depend on shared libraries, but programs linked with such libtool 7266*** libraries will work regardless of this problem. Nevertheless, you 7267*** may want to report the problem to your system manager and/or to 7268*** bug-libtool@gnu.org 7269 7270EOF 7271 fi ;; 7272 esac 7273 fi 7274 break 7275 fi 7276 done 7277 IFS="$lt_save_ifs" 7278 MAGIC_CMD="$lt_save_MAGIC_CMD" 7279 ;; 7280esac 7281fi 7282 7283MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7284if test -n "$MAGIC_CMD"; then 7285 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7286echo "${ECHO_T}$MAGIC_CMD" >&6; } 7287else 7288 { echo "$as_me:$LINENO: result: no" >&5 7289echo "${ECHO_T}no" >&6; } 7290fi 7291 7292if test -z "$lt_cv_path_MAGIC_CMD"; then 7293 if test -n "$ac_tool_prefix"; then 7294 { echo "$as_me:$LINENO: checking for file" >&5 7295echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7296if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298else 7299 case $MAGIC_CMD in 7300[\\/*] | ?:[\\/]*) 7301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7302 ;; 7303*) 7304 lt_save_MAGIC_CMD="$MAGIC_CMD" 7305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7307 for ac_dir in $ac_dummy; do 7308 IFS="$lt_save_ifs" 7309 test -z "$ac_dir" && ac_dir=. 7310 if test -f $ac_dir/file; then 7311 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7312 if test -n "$file_magic_test_file"; then 7313 case $deplibs_check_method in 7314 "file_magic "*) 7315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7318 $EGREP "$file_magic_regex" > /dev/null; then 7319 : 7320 else 7321 cat <<EOF 1>&2 7322 7323*** Warning: the command libtool uses to detect shared libraries, 7324*** $file_magic_cmd, produces output that libtool cannot recognize. 7325*** The result is that libtool may fail to recognize shared libraries 7326*** as such. This will affect the creation of libtool libraries that 7327*** depend on shared libraries, but programs linked with such libtool 7328*** libraries will work regardless of this problem. Nevertheless, you 7329*** may want to report the problem to your system manager and/or to 7330*** bug-libtool@gnu.org 7331 7332EOF 7333 fi ;; 7334 esac 7335 fi 7336 break 7337 fi 7338 done 7339 IFS="$lt_save_ifs" 7340 MAGIC_CMD="$lt_save_MAGIC_CMD" 7341 ;; 7342esac 7343fi 7344 7345MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7346if test -n "$MAGIC_CMD"; then 7347 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7348echo "${ECHO_T}$MAGIC_CMD" >&6; } 7349else 7350 { echo "$as_me:$LINENO: result: no" >&5 7351echo "${ECHO_T}no" >&6; } 7352fi 7353 7354 else 7355 MAGIC_CMD=: 7356 fi 7357fi 7358 7359 fi 7360 ;; 7361esac 7362 7363enable_dlopen=no 7364enable_win32_dll=no 7365 7366# Check whether --enable-libtool-lock was given. 7367if test "${enable_libtool_lock+set}" = set; then 7368 enableval=$enable_libtool_lock; 7369fi 7370 7371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7372 7373 7374# Check whether --with-pic was given. 7375if test "${with_pic+set}" = set; then 7376 withval=$with_pic; pic_mode="$withval" 7377else 7378 pic_mode=default 7379fi 7380 7381test -z "$pic_mode" && pic_mode=default 7382 7383# Use C for the default configuration in the libtool script 7384tagname= 7385lt_save_CC="$CC" 7386ac_ext=c 7387ac_cpp='$CPP $CPPFLAGS' 7388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7390ac_compiler_gnu=$ac_cv_c_compiler_gnu 7391 7392 7393# Source file extension for C test sources. 7394ac_ext=c 7395 7396# Object file extension for compiled C test sources. 7397objext=o 7398objext=$objext 7399 7400# Code to be used in simple compile tests 7401lt_simple_compile_test_code="int some_variable = 0;\n" 7402 7403# Code to be used in simple link tests 7404lt_simple_link_test_code='int main(){return(0);}\n' 7405 7406 7407# If no C compiler was specified, use CC. 7408LTCC=${LTCC-"$CC"} 7409 7410# If no C compiler flags were specified, use CFLAGS. 7411LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7412 7413# Allow CC to be a program name with arguments. 7414compiler=$CC 7415 7416 7417# save warnings/boilerplate of simple test code 7418ac_outfile=conftest.$ac_objext 7419printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7421_lt_compiler_boilerplate=`cat conftest.err` 7422$rm conftest* 7423 7424ac_outfile=conftest.$ac_objext 7425printf "$lt_simple_link_test_code" >conftest.$ac_ext 7426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7427_lt_linker_boilerplate=`cat conftest.err` 7428$rm conftest* 7429 7430 7431## CAVEAT EMPTOR: 7432## There is no encapsulation within the following macros, do not change 7433## the running order or otherwise move them around unless you know exactly 7434## what you are doing... 7435 7436lt_prog_compiler_no_builtin_flag= 7437 7438if test "$GCC" = yes; then 7439 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7440 7441 7442{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7443echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7444if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7445 echo $ECHO_N "(cached) $ECHO_C" >&6 7446else 7447 lt_cv_prog_compiler_rtti_exceptions=no 7448 ac_outfile=conftest.$ac_objext 7449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7450 lt_compiler_flag="-fno-rtti -fno-exceptions" 7451 # Insert the option either (1) after the last *FLAGS variable, or 7452 # (2) before a word containing "conftest.", or (3) at the end. 7453 # Note that $ac_compile itself does not contain backslashes and begins 7454 # with a dollar sign (not a hyphen), so the echo should work correctly. 7455 # The option is referenced via a variable to avoid confusing sed. 7456 lt_compile=`echo "$ac_compile" | $SED \ 7457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7459 -e 's:$: $lt_compiler_flag:'` 7460 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7461 (eval "$lt_compile" 2>conftest.err) 7462 ac_status=$? 7463 cat conftest.err >&5 7464 echo "$as_me:__oline__: \$? = $ac_status" >&5 7465 if (exit $ac_status) && test -s "$ac_outfile"; then 7466 # The compiler can only warn and ignore the option if not recognized 7467 # So say no if there are warnings other than the usual output. 7468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7471 lt_cv_prog_compiler_rtti_exceptions=yes 7472 fi 7473 fi 7474 $rm conftest* 7475 7476fi 7477{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7478echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7479 7480if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7481 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7482else 7483 : 7484fi 7485 7486fi 7487 7488lt_prog_compiler_wl= 7489lt_prog_compiler_pic= 7490lt_prog_compiler_static= 7491 7492{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7493echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7494 7495 if test "$GCC" = yes; then 7496 lt_prog_compiler_wl='-Wl,' 7497 lt_prog_compiler_static='-static' 7498 7499 case $host_os in 7500 aix*) 7501 # All AIX code is PIC. 7502 if test "$host_cpu" = ia64; then 7503 # AIX 5 now supports IA64 processor 7504 lt_prog_compiler_static='-Bstatic' 7505 fi 7506 ;; 7507 7508 amigaos*) 7509 # FIXME: we need at least 68020 code to build shared libraries, but 7510 # adding the `-m68020' flag to GCC prevents building anything better, 7511 # like `-m68040'. 7512 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7513 ;; 7514 7515 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7516 # PIC is the default for these OSes. 7517 ;; 7518 7519 mingw* | pw32* | os2*) 7520 # This hack is so that the source file can tell whether it is being 7521 # built for inclusion in a dll (and should export symbols for example). 7522 lt_prog_compiler_pic='-DDLL_EXPORT' 7523 ;; 7524 7525 darwin* | rhapsody*) 7526 # PIC is the default on this platform 7527 # Common symbols not allowed in MH_DYLIB files 7528 lt_prog_compiler_pic='-fno-common' 7529 ;; 7530 7531 interix3*) 7532 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7533 # Instead, we relocate shared libraries at runtime. 7534 ;; 7535 7536 msdosdjgpp*) 7537 # Just because we use GCC doesn't mean we suddenly get shared libraries 7538 # on systems that don't support them. 7539 lt_prog_compiler_can_build_shared=no 7540 enable_shared=no 7541 ;; 7542 7543 sysv4*MP*) 7544 if test -d /usr/nec; then 7545 lt_prog_compiler_pic=-Kconform_pic 7546 fi 7547 ;; 7548 7549 hpux*) 7550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7551 # not for PA HP-UX. 7552 case $host_cpu in 7553 hppa*64*|ia64*) 7554 # +Z the default 7555 ;; 7556 *) 7557 lt_prog_compiler_pic='-fPIC' 7558 ;; 7559 esac 7560 ;; 7561 7562 *) 7563 lt_prog_compiler_pic='-fPIC' 7564 ;; 7565 esac 7566 else 7567 # PORTME Check for flag to pass linker flags through the system compiler. 7568 case $host_os in 7569 aix*) 7570 lt_prog_compiler_wl='-Wl,' 7571 if test "$host_cpu" = ia64; then 7572 # AIX 5 now supports IA64 processor 7573 lt_prog_compiler_static='-Bstatic' 7574 else 7575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7576 fi 7577 ;; 7578 darwin*) 7579 # PIC is the default on this platform 7580 # Common symbols not allowed in MH_DYLIB files 7581 case $cc_basename in 7582 xlc*) 7583 lt_prog_compiler_pic='-qnocommon' 7584 lt_prog_compiler_wl='-Wl,' 7585 ;; 7586 esac 7587 ;; 7588 7589 mingw* | pw32* | os2*) 7590 # This hack is so that the source file can tell whether it is being 7591 # built for inclusion in a dll (and should export symbols for example). 7592 lt_prog_compiler_pic='-DDLL_EXPORT' 7593 ;; 7594 7595 hpux9* | hpux10* | hpux11*) 7596 lt_prog_compiler_wl='-Wl,' 7597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7598 # not for PA HP-UX. 7599 case $host_cpu in 7600 hppa*64*|ia64*) 7601 # +Z the default 7602 ;; 7603 *) 7604 lt_prog_compiler_pic='+Z' 7605 ;; 7606 esac 7607 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7608 lt_prog_compiler_static='${wl}-a ${wl}archive' 7609 ;; 7610 7611 irix5* | irix6* | nonstopux*) 7612 lt_prog_compiler_wl='-Wl,' 7613 # PIC (with -KPIC) is the default. 7614 lt_prog_compiler_static='-non_shared' 7615 ;; 7616 7617 newsos6) 7618 lt_prog_compiler_pic='-KPIC' 7619 lt_prog_compiler_static='-Bstatic' 7620 ;; 7621 7622 linux* | k*bsd*-gnu) 7623 case $cc_basename in 7624 icc* | ecc*) 7625 lt_prog_compiler_wl='-Wl,' 7626 lt_prog_compiler_pic='-KPIC' 7627 lt_prog_compiler_static='-static' 7628 ;; 7629 pgcc* | pgf77* | pgf90* | pgf95*) 7630 # Portland Group compilers (*not* the Pentium gcc compiler, 7631 # which looks to be a dead project) 7632 lt_prog_compiler_wl='-Wl,' 7633 lt_prog_compiler_pic='-fpic' 7634 lt_prog_compiler_static='-Bstatic' 7635 ;; 7636 ccc*) 7637 lt_prog_compiler_wl='-Wl,' 7638 # All Alpha code is PIC. 7639 lt_prog_compiler_static='-non_shared' 7640 ;; 7641 esac 7642 ;; 7643 7644 osf3* | osf4* | osf5*) 7645 lt_prog_compiler_wl='-Wl,' 7646 # All OSF/1 code is PIC. 7647 lt_prog_compiler_static='-non_shared' 7648 ;; 7649 7650 solaris*) 7651 lt_prog_compiler_pic='-KPIC' 7652 lt_prog_compiler_static='-Bstatic' 7653 case $cc_basename in 7654 f77* | f90* | f95*) 7655 lt_prog_compiler_wl='-Qoption ld ';; 7656 *) 7657 lt_prog_compiler_wl='-Wl,';; 7658 esac 7659 ;; 7660 7661 sunos4*) 7662 lt_prog_compiler_wl='-Qoption ld ' 7663 lt_prog_compiler_pic='-PIC' 7664 lt_prog_compiler_static='-Bstatic' 7665 ;; 7666 7667 sysv4 | sysv4.2uw2* | sysv4.3*) 7668 lt_prog_compiler_wl='-Wl,' 7669 lt_prog_compiler_pic='-KPIC' 7670 lt_prog_compiler_static='-Bstatic' 7671 ;; 7672 7673 sysv4*MP*) 7674 if test -d /usr/nec ;then 7675 lt_prog_compiler_pic='-Kconform_pic' 7676 lt_prog_compiler_static='-Bstatic' 7677 fi 7678 ;; 7679 7680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7681 lt_prog_compiler_wl='-Wl,' 7682 lt_prog_compiler_pic='-KPIC' 7683 lt_prog_compiler_static='-Bstatic' 7684 ;; 7685 7686 unicos*) 7687 lt_prog_compiler_wl='-Wl,' 7688 lt_prog_compiler_can_build_shared=no 7689 ;; 7690 7691 uts4*) 7692 lt_prog_compiler_pic='-pic' 7693 lt_prog_compiler_static='-Bstatic' 7694 ;; 7695 7696 *) 7697 lt_prog_compiler_can_build_shared=no 7698 ;; 7699 esac 7700 fi 7701 7702{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7703echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7704 7705# 7706# Check to make sure the PIC flag actually works. 7707# 7708if test -n "$lt_prog_compiler_pic"; then 7709 7710{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7711echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7712if test "${lt_prog_compiler_pic_works+set}" = set; then 7713 echo $ECHO_N "(cached) $ECHO_C" >&6 7714else 7715 lt_prog_compiler_pic_works=no 7716 ac_outfile=conftest.$ac_objext 7717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7718 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7719 # Insert the option either (1) after the last *FLAGS variable, or 7720 # (2) before a word containing "conftest.", or (3) at the end. 7721 # Note that $ac_compile itself does not contain backslashes and begins 7722 # with a dollar sign (not a hyphen), so the echo should work correctly. 7723 # The option is referenced via a variable to avoid confusing sed. 7724 lt_compile=`echo "$ac_compile" | $SED \ 7725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7727 -e 's:$: $lt_compiler_flag:'` 7728 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7729 (eval "$lt_compile" 2>conftest.err) 7730 ac_status=$? 7731 cat conftest.err >&5 7732 echo "$as_me:__oline__: \$? = $ac_status" >&5 7733 if (exit $ac_status) && test -s "$ac_outfile"; then 7734 # The compiler can only warn and ignore the option if not recognized 7735 # So say no if there are warnings other than the usual output. 7736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7739 lt_prog_compiler_pic_works=yes 7740 fi 7741 fi 7742 $rm conftest* 7743 7744fi 7745{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7746echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7747 7748if test x"$lt_prog_compiler_pic_works" = xyes; then 7749 case $lt_prog_compiler_pic in 7750 "" | " "*) ;; 7751 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7752 esac 7753else 7754 lt_prog_compiler_pic= 7755 lt_prog_compiler_can_build_shared=no 7756fi 7757 7758fi 7759case $host_os in 7760 # For platforms which do not support PIC, -DPIC is meaningless: 7761 *djgpp*) 7762 lt_prog_compiler_pic= 7763 ;; 7764 *) 7765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7766 ;; 7767esac 7768 7769# 7770# Check to make sure the static flag actually works. 7771# 7772wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7773{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7774echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7775if test "${lt_prog_compiler_static_works+set}" = set; then 7776 echo $ECHO_N "(cached) $ECHO_C" >&6 7777else 7778 lt_prog_compiler_static_works=no 7779 save_LDFLAGS="$LDFLAGS" 7780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7781 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7783 # The linker can only warn and ignore the option if not recognized 7784 # So say no if there are warnings 7785 if test -s conftest.err; then 7786 # Append any errors to the config.log. 7787 cat conftest.err 1>&5 7788 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7790 if diff conftest.exp conftest.er2 >/dev/null; then 7791 lt_prog_compiler_static_works=yes 7792 fi 7793 else 7794 lt_prog_compiler_static_works=yes 7795 fi 7796 fi 7797 $rm conftest* 7798 LDFLAGS="$save_LDFLAGS" 7799 7800fi 7801{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7802echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7803 7804if test x"$lt_prog_compiler_static_works" = xyes; then 7805 : 7806else 7807 lt_prog_compiler_static= 7808fi 7809 7810 7811{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7812echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7813if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7814 echo $ECHO_N "(cached) $ECHO_C" >&6 7815else 7816 lt_cv_prog_compiler_c_o=no 7817 $rm -r conftest 2>/dev/null 7818 mkdir conftest 7819 cd conftest 7820 mkdir out 7821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7822 7823 lt_compiler_flag="-o out/conftest2.$ac_objext" 7824 # Insert the option either (1) after the last *FLAGS variable, or 7825 # (2) before a word containing "conftest.", or (3) at the end. 7826 # Note that $ac_compile itself does not contain backslashes and begins 7827 # with a dollar sign (not a hyphen), so the echo should work correctly. 7828 lt_compile=`echo "$ac_compile" | $SED \ 7829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7831 -e 's:$: $lt_compiler_flag:'` 7832 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7833 (eval "$lt_compile" 2>out/conftest.err) 7834 ac_status=$? 7835 cat out/conftest.err >&5 7836 echo "$as_me:__oline__: \$? = $ac_status" >&5 7837 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7838 then 7839 # The compiler can only warn and ignore the option if not recognized 7840 # So say no if there are warnings 7841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7844 lt_cv_prog_compiler_c_o=yes 7845 fi 7846 fi 7847 chmod u+w . 2>&5 7848 $rm conftest* 7849 # SGI C++ compiler will create directory out/ii_files/ for 7850 # template instantiation 7851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7852 $rm out/* && rmdir out 7853 cd .. 7854 rmdir conftest 7855 $rm conftest* 7856 7857fi 7858{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7859echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7860 7861 7862hard_links="nottested" 7863if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7864 # do not overwrite the value of need_locks provided by the user 7865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7866echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7867 hard_links=yes 7868 $rm conftest* 7869 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7870 touch conftest.a 7871 ln conftest.a conftest.b 2>&5 || hard_links=no 7872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7873 { echo "$as_me:$LINENO: result: $hard_links" >&5 7874echo "${ECHO_T}$hard_links" >&6; } 7875 if test "$hard_links" = no; then 7876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7877echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7878 need_locks=warn 7879 fi 7880else 7881 need_locks=no 7882fi 7883 7884{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7885echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7886 7887 runpath_var= 7888 allow_undefined_flag= 7889 enable_shared_with_static_runtimes=no 7890 archive_cmds= 7891 archive_expsym_cmds= 7892 old_archive_From_new_cmds= 7893 old_archive_from_expsyms_cmds= 7894 export_dynamic_flag_spec= 7895 whole_archive_flag_spec= 7896 thread_safe_flag_spec= 7897 hardcode_libdir_flag_spec= 7898 hardcode_libdir_flag_spec_ld= 7899 hardcode_libdir_separator= 7900 hardcode_direct=no 7901 hardcode_minus_L=no 7902 hardcode_shlibpath_var=unsupported 7903 link_all_deplibs=unknown 7904 hardcode_automatic=no 7905 module_cmds= 7906 module_expsym_cmds= 7907 always_export_symbols=no 7908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7909 # include_expsyms should be a list of space-separated symbols to be *always* 7910 # included in the symbol list 7911 include_expsyms= 7912 # exclude_expsyms can be an extended regexp of symbols to exclude 7913 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7915 # as well as any symbol that contains `d'. 7916 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7918 # platforms (ab)use it in PIC code, but their linkers get confused if 7919 # the symbol is explicitly referenced. Since portable code cannot 7920 # rely on this symbol name, it's probably fine to never include it in 7921 # preloaded symbol tables. 7922 extract_expsyms_cmds= 7923 # Just being paranoid about ensuring that cc_basename is set. 7924 for cc_temp in $compiler""; do 7925 case $cc_temp in 7926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7928 \-*) ;; 7929 *) break;; 7930 esac 7931done 7932cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7933 7934 case $host_os in 7935 cygwin* | mingw* | pw32*) 7936 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7937 # When not using gcc, we currently assume that we are using 7938 # Microsoft Visual C++. 7939 if test "$GCC" != yes; then 7940 with_gnu_ld=no 7941 fi 7942 ;; 7943 interix*) 7944 # we just hope/assume this is gcc and not c89 (= MSVC++) 7945 with_gnu_ld=yes 7946 ;; 7947 openbsd*) 7948 with_gnu_ld=no 7949 ;; 7950 esac 7951 7952 ld_shlibs=yes 7953 if test "$with_gnu_ld" = yes; then 7954 # If archive_cmds runs LD, not CC, wlarc should be empty 7955 wlarc='${wl}' 7956 7957 # Set some defaults for GNU ld with shared library support. These 7958 # are reset later if shared libraries are not supported. Putting them 7959 # here allows them to be overridden if necessary. 7960 runpath_var=LD_RUN_PATH 7961 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7962 export_dynamic_flag_spec='${wl}--export-dynamic' 7963 # ancient GNU ld didn't support --whole-archive et. al. 7964 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7965 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7966 else 7967 whole_archive_flag_spec= 7968 fi 7969 supports_anon_versioning=no 7970 case `$LD -v 2>/dev/null` in 7971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7974 *\ 2.11.*) ;; # other 2.11 versions 7975 *) supports_anon_versioning=yes ;; 7976 esac 7977 7978 # See if GNU ld supports shared libraries. 7979 case $host_os in 7980 aix3* | aix4* | aix5*) 7981 # On AIX/PPC, the GNU linker is very broken 7982 if test "$host_cpu" != ia64; then 7983 ld_shlibs=no 7984 cat <<EOF 1>&2 7985 7986*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7987*** to be unable to reliably create shared libraries on AIX. 7988*** Therefore, libtool is disabling shared libraries support. If you 7989*** really care for shared libraries, you may want to modify your PATH 7990*** so that a non-GNU linker is found, and then restart. 7991 7992EOF 7993 fi 7994 ;; 7995 7996 amigaos*) 7997 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)' 7998 hardcode_libdir_flag_spec='-L$libdir' 7999 hardcode_minus_L=yes 8000 8001 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8002 # that the semantics of dynamic libraries on AmigaOS, at least up 8003 # to version 4, is to share data among multiple programs linked 8004 # with the same dynamic library. Since this doesn't match the 8005 # behavior of shared libraries on other platforms, we can't use 8006 # them. 8007 ld_shlibs=no 8008 ;; 8009 8010 beos*) 8011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8012 allow_undefined_flag=unsupported 8013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8014 # support --undefined. This deserves some investigation. FIXME 8015 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8016 else 8017 ld_shlibs=no 8018 fi 8019 ;; 8020 8021 cygwin* | mingw* | pw32*) 8022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8023 # as there is no search path for DLLs. 8024 hardcode_libdir_flag_spec='-L$libdir' 8025 allow_undefined_flag=unsupported 8026 always_export_symbols=no 8027 enable_shared_with_static_runtimes=yes 8028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8029 8030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8032 # If the export-symbols file already is a .def file (1st line 8033 # is EXPORTS), use it as is; otherwise, prepend... 8034 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8035 cp $export_symbols $output_objdir/$soname.def; 8036 else 8037 echo EXPORTS > $output_objdir/$soname.def; 8038 cat $export_symbols >> $output_objdir/$soname.def; 8039 fi~ 8040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8041 else 8042 ld_shlibs=no 8043 fi 8044 ;; 8045 8046 interix3*) 8047 hardcode_direct=no 8048 hardcode_shlibpath_var=no 8049 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8050 export_dynamic_flag_spec='${wl}-E' 8051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8052 # Instead, shared libraries are loaded at an image base (0x10000000 by 8053 # default) and relocated if they conflict, which is a slow very memory 8054 # consuming and fragmenting process. To avoid this, we pick a random, 8055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8056 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8058 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' 8059 ;; 8060 8061 linux* | k*bsd*-gnu) 8062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8063 tmp_addflag= 8064 case $cc_basename,$host_cpu in 8065 pgcc*) # Portland Group C compiler 8066 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' 8067 tmp_addflag=' $pic_flag' 8068 ;; 8069 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8070 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' 8071 tmp_addflag=' $pic_flag -Mnomain' ;; 8072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8073 tmp_addflag=' -i_dynamic' ;; 8074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8075 tmp_addflag=' -i_dynamic -nofor_main' ;; 8076 ifc* | ifort*) # Intel Fortran compiler 8077 tmp_addflag=' -nofor_main' ;; 8078 esac 8079 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8080 8081 if test $supports_anon_versioning = yes; then 8082 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8084 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8086 fi 8087 link_all_deplibs=no 8088 else 8089 ld_shlibs=no 8090 fi 8091 ;; 8092 8093 netbsd* | netbsdelf*-gnu) 8094 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8095 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8096 wlarc= 8097 else 8098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8100 fi 8101 ;; 8102 8103 solaris*) 8104 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8105 ld_shlibs=no 8106 cat <<EOF 1>&2 8107 8108*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8109*** create shared libraries on Solaris systems. Therefore, libtool 8110*** is disabling shared libraries support. We urge you to upgrade GNU 8111*** binutils to release 2.9.1 or newer. Another option is to modify 8112*** your PATH or compiler configuration so that the native linker is 8113*** used, and then restart. 8114 8115EOF 8116 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8119 else 8120 ld_shlibs=no 8121 fi 8122 ;; 8123 8124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8125 case `$LD -v 2>&1` in 8126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8127 ld_shlibs=no 8128 cat <<_LT_EOF 1>&2 8129 8130*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8131*** reliably create shared libraries on SCO systems. Therefore, libtool 8132*** is disabling shared libraries support. We urge you to upgrade GNU 8133*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8134*** your PATH or compiler configuration so that the native linker is 8135*** used, and then restart. 8136 8137_LT_EOF 8138 ;; 8139 *) 8140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8141 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8144 else 8145 ld_shlibs=no 8146 fi 8147 ;; 8148 esac 8149 ;; 8150 8151 sunos4*) 8152 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8153 wlarc= 8154 hardcode_direct=yes 8155 hardcode_shlibpath_var=no 8156 ;; 8157 8158 *) 8159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8162 else 8163 ld_shlibs=no 8164 fi 8165 ;; 8166 esac 8167 8168 if test "$ld_shlibs" = no; then 8169 runpath_var= 8170 hardcode_libdir_flag_spec= 8171 export_dynamic_flag_spec= 8172 whole_archive_flag_spec= 8173 fi 8174 else 8175 # PORTME fill in a description of your system's linker (not GNU ld) 8176 case $host_os in 8177 aix3*) 8178 allow_undefined_flag=unsupported 8179 always_export_symbols=yes 8180 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' 8181 # Note: this linker hardcodes the directories in LIBPATH if there 8182 # are no directories specified by -L. 8183 hardcode_minus_L=yes 8184 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8185 # Neither direct hardcoding nor static linking is supported with a 8186 # broken collect2. 8187 hardcode_direct=unsupported 8188 fi 8189 ;; 8190 8191 aix4* | aix5*) 8192 if test "$host_cpu" = ia64; then 8193 # On IA64, the linker does run time linking by default, so we don't 8194 # have to do anything special. 8195 aix_use_runtimelinking=no 8196 exp_sym_flag='-Bexport' 8197 no_entry_flag="" 8198 else 8199 # If we're using GNU nm, then we don't want the "-C" option. 8200 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8201 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8202 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' 8203 else 8204 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' 8205 fi 8206 aix_use_runtimelinking=no 8207 8208 # Test if we are trying to use run time linking or normal 8209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8210 # need to do runtime linking. 8211 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8212 for ld_flag in $LDFLAGS; do 8213 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8214 aix_use_runtimelinking=yes 8215 break 8216 fi 8217 done 8218 ;; 8219 esac 8220 8221 exp_sym_flag='-bexport' 8222 no_entry_flag='-bnoentry' 8223 fi 8224 8225 # When large executables or shared objects are built, AIX ld can 8226 # have problems creating the table of contents. If linking a library 8227 # or program results in "error TOC overflow" add -mminimal-toc to 8228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8230 8231 archive_cmds='' 8232 hardcode_direct=yes 8233 hardcode_libdir_separator=':' 8234 link_all_deplibs=yes 8235 8236 if test "$GCC" = yes; then 8237 case $host_os in aix4.[012]|aix4.[012].*) 8238 # We only want to do this on AIX 4.2 and lower, the check 8239 # below for broken collect2 doesn't work under 4.3+ 8240 collect2name=`${CC} -print-prog-name=collect2` 8241 if test -f "$collect2name" && \ 8242 strings "$collect2name" | grep resolve_lib_name >/dev/null 8243 then 8244 # We have reworked collect2 8245 hardcode_direct=yes 8246 else 8247 # We have old collect2 8248 hardcode_direct=unsupported 8249 # It fails to find uninstalled libraries when the uninstalled 8250 # path is not listed in the libpath. Setting hardcode_minus_L 8251 # to unsupported forces relinking 8252 hardcode_minus_L=yes 8253 hardcode_libdir_flag_spec='-L$libdir' 8254 hardcode_libdir_separator= 8255 fi 8256 ;; 8257 esac 8258 shared_flag='-shared' 8259 if test "$aix_use_runtimelinking" = yes; then 8260 shared_flag="$shared_flag "'${wl}-G' 8261 fi 8262 else 8263 # not using gcc 8264 if test "$host_cpu" = ia64; then 8265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8266 # chokes on -Wl,-G. The following line is correct: 8267 shared_flag='-G' 8268 else 8269 if test "$aix_use_runtimelinking" = yes; then 8270 shared_flag='${wl}-G' 8271 else 8272 shared_flag='${wl}-bM:SRE' 8273 fi 8274 fi 8275 fi 8276 8277 # It seems that -bexpall does not export symbols beginning with 8278 # underscore (_), so it is better to generate a list of symbols to export. 8279 always_export_symbols=yes 8280 if test "$aix_use_runtimelinking" = yes; then 8281 # Warning - without using the other runtime loading flags (-brtl), 8282 # -berok will link without error, but may produce a broken library. 8283 allow_undefined_flag='-berok' 8284 # Determine the default libpath from the value encoded in an empty executable. 8285 cat >conftest.$ac_ext <<_ACEOF 8286/* confdefs.h. */ 8287_ACEOF 8288cat confdefs.h >>conftest.$ac_ext 8289cat >>conftest.$ac_ext <<_ACEOF 8290/* end confdefs.h. */ 8291 8292int 8293main () 8294{ 8295 8296 ; 8297 return 0; 8298} 8299_ACEOF 8300rm -f conftest.$ac_objext conftest$ac_exeext 8301if { (ac_try="$ac_link" 8302case "(($ac_try" in 8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8304 *) ac_try_echo=$ac_try;; 8305esac 8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8307 (eval "$ac_link") 2>conftest.er1 8308 ac_status=$? 8309 grep -v '^ *+' conftest.er1 >conftest.err 8310 rm -f conftest.er1 8311 cat conftest.err >&5 8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8313 (exit $ac_status); } && 8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8315 { (case "(($ac_try" in 8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8317 *) ac_try_echo=$ac_try;; 8318esac 8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8320 (eval "$ac_try") 2>&5 8321 ac_status=$? 8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8323 (exit $ac_status); }; } && 8324 { ac_try='test -s conftest$ac_exeext' 8325 { (case "(($ac_try" in 8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8327 *) ac_try_echo=$ac_try;; 8328esac 8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8330 (eval "$ac_try") 2>&5 8331 ac_status=$? 8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 (exit $ac_status); }; }; then 8334 8335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8336}'` 8337# Check for a 64-bit object if we didn't find anything. 8338if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8339}'`; fi 8340else 8341 echo "$as_me: failed program was:" >&5 8342sed 's/^/| /' conftest.$ac_ext >&5 8343 8344 8345fi 8346 8347rm -f conftest.err conftest.$ac_objext \ 8348 conftest$ac_exeext conftest.$ac_ext 8349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8350 8351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8352 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" 8353 else 8354 if test "$host_cpu" = ia64; then 8355 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8356 allow_undefined_flag="-z nodefs" 8357 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" 8358 else 8359 # Determine the default libpath from the value encoded in an empty executable. 8360 cat >conftest.$ac_ext <<_ACEOF 8361/* confdefs.h. */ 8362_ACEOF 8363cat confdefs.h >>conftest.$ac_ext 8364cat >>conftest.$ac_ext <<_ACEOF 8365/* end confdefs.h. */ 8366 8367int 8368main () 8369{ 8370 8371 ; 8372 return 0; 8373} 8374_ACEOF 8375rm -f conftest.$ac_objext conftest$ac_exeext 8376if { (ac_try="$ac_link" 8377case "(($ac_try" in 8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8379 *) ac_try_echo=$ac_try;; 8380esac 8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8382 (eval "$ac_link") 2>conftest.er1 8383 ac_status=$? 8384 grep -v '^ *+' conftest.er1 >conftest.err 8385 rm -f conftest.er1 8386 cat conftest.err >&5 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 (exit $ac_status); } && 8389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8390 { (case "(($ac_try" in 8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8392 *) ac_try_echo=$ac_try;; 8393esac 8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8395 (eval "$ac_try") 2>&5 8396 ac_status=$? 8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 (exit $ac_status); }; } && 8399 { ac_try='test -s conftest$ac_exeext' 8400 { (case "(($ac_try" in 8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8402 *) ac_try_echo=$ac_try;; 8403esac 8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8405 (eval "$ac_try") 2>&5 8406 ac_status=$? 8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8408 (exit $ac_status); }; }; then 8409 8410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8411}'` 8412# Check for a 64-bit object if we didn't find anything. 8413if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8414}'`; fi 8415else 8416 echo "$as_me: failed program was:" >&5 8417sed 's/^/| /' conftest.$ac_ext >&5 8418 8419 8420fi 8421 8422rm -f conftest.err conftest.$ac_objext \ 8423 conftest$ac_exeext conftest.$ac_ext 8424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8425 8426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8427 # Warning - without using the other run time loading flags, 8428 # -berok will link without error, but may produce a broken library. 8429 no_undefined_flag=' ${wl}-bernotok' 8430 allow_undefined_flag=' ${wl}-berok' 8431 # Exported symbols can be pulled into shared objects from archives 8432 whole_archive_flag_spec='$convenience' 8433 archive_cmds_need_lc=yes 8434 # This is similar to how AIX traditionally builds its shared libraries. 8435 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' 8436 fi 8437 fi 8438 ;; 8439 8440 amigaos*) 8441 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)' 8442 hardcode_libdir_flag_spec='-L$libdir' 8443 hardcode_minus_L=yes 8444 # see comment about different semantics on the GNU ld section 8445 ld_shlibs=no 8446 ;; 8447 8448 bsdi[45]*) 8449 export_dynamic_flag_spec=-rdynamic 8450 ;; 8451 8452 cygwin* | mingw* | pw32*) 8453 # When not using gcc, we currently assume that we are using 8454 # Microsoft Visual C++. 8455 # hardcode_libdir_flag_spec is actually meaningless, as there is 8456 # no search path for DLLs. 8457 hardcode_libdir_flag_spec=' ' 8458 allow_undefined_flag=unsupported 8459 # Tell ltmain to make .lib files, not .a files. 8460 libext=lib 8461 # Tell ltmain to make .dll files, not .so files. 8462 shrext_cmds=".dll" 8463 # FIXME: Setting linknames here is a bad hack. 8464 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8465 # The linker will automatically build a .lib file if we build a DLL. 8466 old_archive_From_new_cmds='true' 8467 # FIXME: Should let the user specify the lib program. 8468 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8469 fix_srcfile_path='`cygpath -w "$srcfile"`' 8470 enable_shared_with_static_runtimes=yes 8471 ;; 8472 8473 darwin* | rhapsody*) 8474 case $host_os in 8475 rhapsody* | darwin1.[012]) 8476 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8477 ;; 8478 *) # Darwin 1.3 on 8479 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8480 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8481 else 8482 case ${MACOSX_DEPLOYMENT_TARGET} in 8483 10.[012]) 8484 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8485 ;; 8486 10.*) 8487 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8488 ;; 8489 esac 8490 fi 8491 ;; 8492 esac 8493 archive_cmds_need_lc=no 8494 hardcode_direct=no 8495 hardcode_automatic=yes 8496 hardcode_shlibpath_var=unsupported 8497 whole_archive_flag_spec='' 8498 link_all_deplibs=yes 8499 if test "$GCC" = yes ; then 8500 output_verbose_link_cmd='echo' 8501 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8502 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8504 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}' 8505 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}' 8506 else 8507 case $cc_basename in 8508 xlc*) 8509 output_verbose_link_cmd='echo' 8510 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8511 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8513 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8514 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}' 8515 ;; 8516 *) 8517 ld_shlibs=no 8518 ;; 8519 esac 8520 fi 8521 ;; 8522 8523 dgux*) 8524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8525 hardcode_libdir_flag_spec='-L$libdir' 8526 hardcode_shlibpath_var=no 8527 ;; 8528 8529 freebsd1*) 8530 ld_shlibs=no 8531 ;; 8532 8533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8534 # support. Future versions do this automatically, but an explicit c++rt0.o 8535 # does not break anything, and helps significantly (at the cost of a little 8536 # extra space). 8537 freebsd2.2*) 8538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8539 hardcode_libdir_flag_spec='-R$libdir' 8540 hardcode_direct=yes 8541 hardcode_shlibpath_var=no 8542 ;; 8543 8544 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8545 freebsd2*) 8546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8547 hardcode_direct=yes 8548 hardcode_minus_L=yes 8549 hardcode_shlibpath_var=no 8550 ;; 8551 8552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8553 freebsd* | dragonfly*) 8554 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8555 hardcode_libdir_flag_spec='-R$libdir' 8556 hardcode_direct=yes 8557 hardcode_shlibpath_var=no 8558 ;; 8559 8560 hpux9*) 8561 if test "$GCC" = yes; then 8562 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' 8563 else 8564 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' 8565 fi 8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8567 hardcode_libdir_separator=: 8568 hardcode_direct=yes 8569 8570 # hardcode_minus_L: Not really in the search PATH, 8571 # but as the default location of the library. 8572 hardcode_minus_L=yes 8573 export_dynamic_flag_spec='${wl}-E' 8574 ;; 8575 8576 hpux10*) 8577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8579 else 8580 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8581 fi 8582 if test "$with_gnu_ld" = no; then 8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8584 hardcode_libdir_separator=: 8585 8586 hardcode_direct=yes 8587 export_dynamic_flag_spec='${wl}-E' 8588 8589 # hardcode_minus_L: Not really in the search PATH, 8590 # but as the default location of the library. 8591 hardcode_minus_L=yes 8592 fi 8593 ;; 8594 8595 hpux11*) 8596 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8597 case $host_cpu in 8598 hppa*64*) 8599 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8600 ;; 8601 ia64*) 8602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8603 ;; 8604 *) 8605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8606 ;; 8607 esac 8608 else 8609 case $host_cpu in 8610 hppa*64*) 8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8612 ;; 8613 ia64*) 8614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8615 ;; 8616 *) 8617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8618 ;; 8619 esac 8620 fi 8621 if test "$with_gnu_ld" = no; then 8622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8623 hardcode_libdir_separator=: 8624 8625 case $host_cpu in 8626 hppa*64*|ia64*) 8627 hardcode_libdir_flag_spec_ld='+b $libdir' 8628 hardcode_direct=no 8629 hardcode_shlibpath_var=no 8630 ;; 8631 *) 8632 hardcode_direct=yes 8633 export_dynamic_flag_spec='${wl}-E' 8634 8635 # hardcode_minus_L: Not really in the search PATH, 8636 # but as the default location of the library. 8637 hardcode_minus_L=yes 8638 ;; 8639 esac 8640 fi 8641 ;; 8642 8643 irix5* | irix6* | nonstopux*) 8644 if test "$GCC" = yes; then 8645 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' 8646 else 8647 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' 8648 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8649 fi 8650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8651 hardcode_libdir_separator=: 8652 link_all_deplibs=yes 8653 ;; 8654 8655 netbsd* | netbsdelf*-gnu) 8656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8658 else 8659 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8660 fi 8661 hardcode_libdir_flag_spec='-R$libdir' 8662 hardcode_direct=yes 8663 hardcode_shlibpath_var=no 8664 ;; 8665 8666 newsos6) 8667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8668 hardcode_direct=yes 8669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8670 hardcode_libdir_separator=: 8671 hardcode_shlibpath_var=no 8672 ;; 8673 8674 openbsd*) 8675 hardcode_direct=yes 8676 hardcode_shlibpath_var=no 8677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8681 export_dynamic_flag_spec='${wl}-E' 8682 else 8683 case $host_os in 8684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8686 hardcode_libdir_flag_spec='-R$libdir' 8687 ;; 8688 *) 8689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8691 ;; 8692 esac 8693 fi 8694 ;; 8695 8696 os2*) 8697 hardcode_libdir_flag_spec='-L$libdir' 8698 hardcode_minus_L=yes 8699 allow_undefined_flag=unsupported 8700 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' 8701 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8702 ;; 8703 8704 osf3*) 8705 if test "$GCC" = yes; then 8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8707 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' 8708 else 8709 allow_undefined_flag=' -expect_unresolved \*' 8710 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' 8711 fi 8712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8713 hardcode_libdir_separator=: 8714 ;; 8715 8716 osf4* | osf5*) # as osf3* with the addition of -msym flag 8717 if test "$GCC" = yes; then 8718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8719 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' 8720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8721 else 8722 allow_undefined_flag=' -expect_unresolved \*' 8723 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' 8724 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8725 $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' 8726 8727 # Both c and cxx compiler support -rpath directly 8728 hardcode_libdir_flag_spec='-rpath $libdir' 8729 fi 8730 hardcode_libdir_separator=: 8731 ;; 8732 8733 solaris*) 8734 no_undefined_flag=' -z text' 8735 if test "$GCC" = yes; then 8736 wlarc='${wl}' 8737 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8738 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8740 else 8741 wlarc='' 8742 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8743 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8745 fi 8746 hardcode_libdir_flag_spec='-R$libdir' 8747 hardcode_shlibpath_var=no 8748 case $host_os in 8749 solaris2.[0-5] | solaris2.[0-5].*) ;; 8750 *) 8751 # The compiler driver will combine linker options so we 8752 # cannot just pass the convience library names through 8753 # without $wl, iff we do not link with $LD. 8754 # Luckily, gcc supports the same syntax we need for Sun Studio. 8755 # Supported since Solaris 2.6 (maybe 2.5.1?) 8756 case $wlarc in 8757 '') 8758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8759 *) 8760 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8761 esac ;; 8762 esac 8763 link_all_deplibs=yes 8764 ;; 8765 8766 sunos4*) 8767 if test "x$host_vendor" = xsequent; then 8768 # Use $CC to link under sequent, because it throws in some extra .o 8769 # files that make .init and .fini sections work. 8770 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8771 else 8772 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8773 fi 8774 hardcode_libdir_flag_spec='-L$libdir' 8775 hardcode_direct=yes 8776 hardcode_minus_L=yes 8777 hardcode_shlibpath_var=no 8778 ;; 8779 8780 sysv4) 8781 case $host_vendor in 8782 sni) 8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8784 hardcode_direct=yes # is this really true??? 8785 ;; 8786 siemens) 8787 ## LD is ld it makes a PLAMLIB 8788 ## CC just makes a GrossModule. 8789 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8790 reload_cmds='$CC -r -o $output$reload_objs' 8791 hardcode_direct=no 8792 ;; 8793 motorola) 8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8795 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8796 ;; 8797 esac 8798 runpath_var='LD_RUN_PATH' 8799 hardcode_shlibpath_var=no 8800 ;; 8801 8802 sysv4.3*) 8803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8804 hardcode_shlibpath_var=no 8805 export_dynamic_flag_spec='-Bexport' 8806 ;; 8807 8808 sysv4*MP*) 8809 if test -d /usr/nec; then 8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8811 hardcode_shlibpath_var=no 8812 runpath_var=LD_RUN_PATH 8813 hardcode_runpath_var=yes 8814 ld_shlibs=yes 8815 fi 8816 ;; 8817 8818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8819 no_undefined_flag='${wl}-z,text' 8820 archive_cmds_need_lc=no 8821 hardcode_shlibpath_var=no 8822 runpath_var='LD_RUN_PATH' 8823 8824 if test "$GCC" = yes; then 8825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8827 else 8828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8830 fi 8831 ;; 8832 8833 sysv5* | sco3.2v5* | sco5v6*) 8834 # Note: We can NOT use -z defs as we might desire, because we do not 8835 # link with -lc, and that would cause any symbols used from libc to 8836 # always be unresolved, which means just about no library would 8837 # ever link correctly. If we're not using GNU ld we use -z text 8838 # though, which does catch some bad symbols but isn't as heavy-handed 8839 # as -z defs. 8840 no_undefined_flag='${wl}-z,text' 8841 allow_undefined_flag='${wl}-z,nodefs' 8842 archive_cmds_need_lc=no 8843 hardcode_shlibpath_var=no 8844 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8845 hardcode_libdir_separator=':' 8846 link_all_deplibs=yes 8847 export_dynamic_flag_spec='${wl}-Bexport' 8848 runpath_var='LD_RUN_PATH' 8849 8850 if test "$GCC" = yes; then 8851 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8853 else 8854 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8856 fi 8857 ;; 8858 8859 uts4*) 8860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8861 hardcode_libdir_flag_spec='-L$libdir' 8862 hardcode_shlibpath_var=no 8863 ;; 8864 8865 *) 8866 ld_shlibs=no 8867 ;; 8868 esac 8869 fi 8870 8871{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8872echo "${ECHO_T}$ld_shlibs" >&6; } 8873test "$ld_shlibs" = no && can_build_shared=no 8874 8875# 8876# Do we need to explicitly link libc? 8877# 8878case "x$archive_cmds_need_lc" in 8879x|xyes) 8880 # Assume -lc should be added 8881 archive_cmds_need_lc=yes 8882 8883 if test "$enable_shared" = yes && test "$GCC" = yes; then 8884 case $archive_cmds in 8885 *'~'*) 8886 # FIXME: we may have to deal with multi-command sequences. 8887 ;; 8888 '$CC '*) 8889 # Test whether the compiler implicitly links with -lc since on some 8890 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8891 # to ld, don't add -lc before -lgcc. 8892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8893echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8894 $rm conftest* 8895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8896 8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8898 (eval $ac_compile) 2>&5 8899 ac_status=$? 8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8901 (exit $ac_status); } 2>conftest.err; then 8902 soname=conftest 8903 lib=conftest 8904 libobjs=conftest.$ac_objext 8905 deplibs= 8906 wl=$lt_prog_compiler_wl 8907 pic_flag=$lt_prog_compiler_pic 8908 compiler_flags=-v 8909 linker_flags=-v 8910 verstring= 8911 output_objdir=. 8912 libname=conftest 8913 lt_save_allow_undefined_flag=$allow_undefined_flag 8914 allow_undefined_flag= 8915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8916 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8917 ac_status=$? 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); } 8920 then 8921 archive_cmds_need_lc=no 8922 else 8923 archive_cmds_need_lc=yes 8924 fi 8925 allow_undefined_flag=$lt_save_allow_undefined_flag 8926 else 8927 cat conftest.err 1>&5 8928 fi 8929 $rm conftest* 8930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8931echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8932 ;; 8933 esac 8934 fi 8935 ;; 8936esac 8937 8938{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8939echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8940library_names_spec= 8941libname_spec='lib$name' 8942soname_spec= 8943shrext_cmds=".so" 8944postinstall_cmds= 8945postuninstall_cmds= 8946finish_cmds= 8947finish_eval= 8948shlibpath_var= 8949shlibpath_overrides_runpath=unknown 8950version_type=none 8951dynamic_linker="$host_os ld.so" 8952sys_lib_dlsearch_path_spec="/lib /usr/lib" 8953if test "$GCC" = yes; then 8954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8955 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8956 # if the path contains ";" then we assume it to be the separator 8957 # otherwise default to the standard path separator (i.e. ":") - it is 8958 # assumed that no part of a normal pathname contains ";" but that should 8959 # okay in the real world where ";" in dirpaths is itself problematic. 8960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8961 else 8962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8963 fi 8964else 8965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8966fi 8967need_lib_prefix=unknown 8968hardcode_into_libs=no 8969 8970# when you set need_version to no, make sure it does not cause -set_version 8971# flags to be left without arguments 8972need_version=unknown 8973 8974case $host_os in 8975aix3*) 8976 version_type=linux 8977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8978 shlibpath_var=LIBPATH 8979 8980 # AIX 3 has no versioning support, so we append a major version to the name. 8981 soname_spec='${libname}${release}${shared_ext}$major' 8982 ;; 8983 8984aix4* | aix5*) 8985 version_type=linux 8986 need_lib_prefix=no 8987 need_version=no 8988 hardcode_into_libs=yes 8989 if test "$host_cpu" = ia64; then 8990 # AIX 5 supports IA64 8991 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8992 shlibpath_var=LD_LIBRARY_PATH 8993 else 8994 # With GCC up to 2.95.x, collect2 would create an import file 8995 # for dependence libraries. The import file would start with 8996 # the line `#! .'. This would cause the generated library to 8997 # depend on `.', always an invalid library. This was fixed in 8998 # development snapshots of GCC prior to 3.0. 8999 case $host_os in 9000 aix4 | aix4.[01] | aix4.[01].*) 9001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9002 echo ' yes ' 9003 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9004 : 9005 else 9006 can_build_shared=no 9007 fi 9008 ;; 9009 esac 9010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9011 # soname into executable. Probably we can add versioning support to 9012 # collect2, so additional links can be useful in future. 9013 if test "$aix_use_runtimelinking" = yes; then 9014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9015 # instead of lib<name>.a to let people know that these are not 9016 # typical AIX shared libraries. 9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9018 else 9019 # We preserve .a as extension for shared libraries through AIX4.2 9020 # and later when we are not doing run time linking. 9021 library_names_spec='${libname}${release}.a $libname.a' 9022 soname_spec='${libname}${release}${shared_ext}$major' 9023 fi 9024 shlibpath_var=LIBPATH 9025 fi 9026 ;; 9027 9028amigaos*) 9029 library_names_spec='$libname.ixlibrary $libname.a' 9030 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9031 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' 9032 ;; 9033 9034beos*) 9035 library_names_spec='${libname}${shared_ext}' 9036 dynamic_linker="$host_os ld.so" 9037 shlibpath_var=LIBRARY_PATH 9038 ;; 9039 9040bsdi[45]*) 9041 version_type=linux 9042 need_version=no 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 soname_spec='${libname}${release}${shared_ext}$major' 9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9046 shlibpath_var=LD_LIBRARY_PATH 9047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9049 # the default ld.so.conf also contains /usr/contrib/lib and 9050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9051 # libtool to hard-code these into programs 9052 ;; 9053 9054cygwin* | mingw* | pw32*) 9055 version_type=windows 9056 shrext_cmds=".dll" 9057 need_version=no 9058 need_lib_prefix=no 9059 9060 case $GCC,$host_os in 9061 yes,cygwin* | yes,mingw* | yes,pw32*) 9062 library_names_spec='$libname.dll.a' 9063 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9064 postinstall_cmds='base_file=`basename \${file}`~ 9065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9066 dldir=$destdir/`dirname \$dlpath`~ 9067 test -d \$dldir || mkdir -p \$dldir~ 9068 $install_prog $dir/$dlname \$dldir/$dlname~ 9069 chmod a+x \$dldir/$dlname' 9070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9071 dlpath=$dir/\$dldll~ 9072 $rm \$dlpath' 9073 shlibpath_overrides_runpath=yes 9074 9075 case $host_os in 9076 cygwin*) 9077 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9079 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9080 ;; 9081 mingw*) 9082 # MinGW DLLs use traditional 'lib' prefix 9083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9085 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9086 # It is most probably a Windows format PATH printed by 9087 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9088 # path with ; separators, and with drive letters. We can handle the 9089 # drive letters (cygwin fileutils understands them), so leave them, 9090 # especially as we might pass files found there to a mingw objdump, 9091 # which wouldn't understand a cygwinified path. Ahh. 9092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9093 else 9094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9095 fi 9096 ;; 9097 pw32*) 9098 # pw32 DLLs use 'pw' prefix rather than 'lib' 9099 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9100 ;; 9101 esac 9102 ;; 9103 9104 *) 9105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9106 ;; 9107 esac 9108 dynamic_linker='Win32 ld.exe' 9109 # FIXME: first we should search . and the directory the executable is in 9110 shlibpath_var=PATH 9111 ;; 9112 9113darwin* | rhapsody*) 9114 dynamic_linker="$host_os dyld" 9115 version_type=darwin 9116 need_lib_prefix=no 9117 need_version=no 9118 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9119 soname_spec='${libname}${release}${major}$shared_ext' 9120 shlibpath_overrides_runpath=yes 9121 shlibpath_var=DYLD_LIBRARY_PATH 9122 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9123 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9124 if test "$GCC" = yes; then 9125 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9126 else 9127 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9128 fi 9129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9130 ;; 9131 9132dgux*) 9133 version_type=linux 9134 need_lib_prefix=no 9135 need_version=no 9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9137 soname_spec='${libname}${release}${shared_ext}$major' 9138 shlibpath_var=LD_LIBRARY_PATH 9139 ;; 9140 9141freebsd1*) 9142 dynamic_linker=no 9143 ;; 9144 9145freebsd* | dragonfly*) 9146 # DragonFly does not have aout. When/if they implement a new 9147 # versioning mechanism, adjust this. 9148 if test -x /usr/bin/objformat; then 9149 objformat=`/usr/bin/objformat` 9150 else 9151 case $host_os in 9152 freebsd[123]*) objformat=aout ;; 9153 *) objformat=elf ;; 9154 esac 9155 fi 9156 version_type=freebsd-$objformat 9157 case $version_type in 9158 freebsd-elf*) 9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9160 need_version=no 9161 need_lib_prefix=no 9162 ;; 9163 freebsd-*) 9164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9165 need_version=yes 9166 ;; 9167 esac 9168 shlibpath_var=LD_LIBRARY_PATH 9169 case $host_os in 9170 freebsd2*) 9171 shlibpath_overrides_runpath=yes 9172 ;; 9173 freebsd3.[01]* | freebsdelf3.[01]*) 9174 shlibpath_overrides_runpath=yes 9175 hardcode_into_libs=yes 9176 ;; 9177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9179 shlibpath_overrides_runpath=no 9180 hardcode_into_libs=yes 9181 ;; 9182 freebsd*) # from 4.6 on 9183 shlibpath_overrides_runpath=yes 9184 hardcode_into_libs=yes 9185 ;; 9186 esac 9187 ;; 9188 9189gnu*) 9190 version_type=linux 9191 need_lib_prefix=no 9192 need_version=no 9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9194 soname_spec='${libname}${release}${shared_ext}$major' 9195 shlibpath_var=LD_LIBRARY_PATH 9196 hardcode_into_libs=yes 9197 ;; 9198 9199hpux9* | hpux10* | hpux11*) 9200 # Give a soname corresponding to the major version so that dld.sl refuses to 9201 # link against other versions. 9202 version_type=sunos 9203 need_lib_prefix=no 9204 need_version=no 9205 case $host_cpu in 9206 ia64*) 9207 shrext_cmds='.so' 9208 hardcode_into_libs=yes 9209 dynamic_linker="$host_os dld.so" 9210 shlibpath_var=LD_LIBRARY_PATH 9211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9213 soname_spec='${libname}${release}${shared_ext}$major' 9214 if test "X$HPUX_IA64_MODE" = X32; then 9215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9216 else 9217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9218 fi 9219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9220 ;; 9221 hppa*64*) 9222 shrext_cmds='.sl' 9223 hardcode_into_libs=yes 9224 dynamic_linker="$host_os dld.sl" 9225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9228 soname_spec='${libname}${release}${shared_ext}$major' 9229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9231 ;; 9232 *) 9233 shrext_cmds='.sl' 9234 dynamic_linker="$host_os dld.sl" 9235 shlibpath_var=SHLIB_PATH 9236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9238 soname_spec='${libname}${release}${shared_ext}$major' 9239 ;; 9240 esac 9241 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9242 postinstall_cmds='chmod 555 $lib' 9243 ;; 9244 9245interix3*) 9246 version_type=linux 9247 need_lib_prefix=no 9248 need_version=no 9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9250 soname_spec='${libname}${release}${shared_ext}$major' 9251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9252 shlibpath_var=LD_LIBRARY_PATH 9253 shlibpath_overrides_runpath=no 9254 hardcode_into_libs=yes 9255 ;; 9256 9257irix5* | irix6* | nonstopux*) 9258 case $host_os in 9259 nonstopux*) version_type=nonstopux ;; 9260 *) 9261 if test "$lt_cv_prog_gnu_ld" = yes; then 9262 version_type=linux 9263 else 9264 version_type=irix 9265 fi ;; 9266 esac 9267 need_lib_prefix=no 9268 need_version=no 9269 soname_spec='${libname}${release}${shared_ext}$major' 9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9271 case $host_os in 9272 irix5* | nonstopux*) 9273 libsuff= shlibsuff= 9274 ;; 9275 *) 9276 case $LD in # libtool.m4 will add one of these switches to LD 9277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9278 libsuff= shlibsuff= libmagic=32-bit;; 9279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9280 libsuff=32 shlibsuff=N32 libmagic=N32;; 9281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9282 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9283 *) libsuff= shlibsuff= libmagic=never-match;; 9284 esac 9285 ;; 9286 esac 9287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9288 shlibpath_overrides_runpath=no 9289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9291 hardcode_into_libs=yes 9292 ;; 9293 9294# No shared lib support for Linux oldld, aout, or coff. 9295linux*oldld* | linux*aout* | linux*coff*) 9296 dynamic_linker=no 9297 ;; 9298 9299# This must be Linux ELF. 9300linux* | k*bsd*-gnu) 9301 version_type=linux 9302 need_lib_prefix=no 9303 need_version=no 9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9305 soname_spec='${libname}${release}${shared_ext}$major' 9306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9307 shlibpath_var=LD_LIBRARY_PATH 9308 shlibpath_overrides_runpath=no 9309 # This implies no fast_install, which is unacceptable. 9310 # Some rework will be needed to allow for fast_install 9311 # before this can be enabled. 9312 hardcode_into_libs=yes 9313 9314 # Append ld.so.conf contents to the search path 9315 if test -f /etc/ld.so.conf; then 9316 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9318 fi 9319 9320 # We used to test for /lib/ld.so.1 and disable shared libraries on 9321 # powerpc, because MkLinux only supported shared libraries with the 9322 # GNU dynamic linker. Since this was broken with cross compilers, 9323 # most powerpc-linux boxes support dynamic linking these days and 9324 # people can always --disable-shared, the test was removed, and we 9325 # assume the GNU/Linux dynamic linker is in use. 9326 dynamic_linker='GNU/Linux ld.so' 9327 ;; 9328 9329netbsdelf*-gnu) 9330 version_type=linux 9331 need_lib_prefix=no 9332 need_version=no 9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9334 soname_spec='${libname}${release}${shared_ext}$major' 9335 shlibpath_var=LD_LIBRARY_PATH 9336 shlibpath_overrides_runpath=no 9337 hardcode_into_libs=yes 9338 dynamic_linker='NetBSD ld.elf_so' 9339 ;; 9340 9341netbsd*) 9342 version_type=sunos 9343 need_lib_prefix=no 9344 need_version=no 9345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9348 dynamic_linker='NetBSD (a.out) ld.so' 9349 else 9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9351 soname_spec='${libname}${release}${shared_ext}$major' 9352 dynamic_linker='NetBSD ld.elf_so' 9353 fi 9354 shlibpath_var=LD_LIBRARY_PATH 9355 shlibpath_overrides_runpath=yes 9356 hardcode_into_libs=yes 9357 ;; 9358 9359newsos6) 9360 version_type=linux 9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9362 shlibpath_var=LD_LIBRARY_PATH 9363 shlibpath_overrides_runpath=yes 9364 ;; 9365 9366nto-qnx*) 9367 version_type=linux 9368 need_lib_prefix=no 9369 need_version=no 9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9371 soname_spec='${libname}${release}${shared_ext}$major' 9372 shlibpath_var=LD_LIBRARY_PATH 9373 shlibpath_overrides_runpath=yes 9374 ;; 9375 9376openbsd*) 9377 version_type=sunos 9378 sys_lib_dlsearch_path_spec="/usr/lib" 9379 need_lib_prefix=no 9380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9381 case $host_os in 9382 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9383 *) need_version=no ;; 9384 esac 9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9387 shlibpath_var=LD_LIBRARY_PATH 9388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9389 case $host_os in 9390 openbsd2.[89] | openbsd2.[89].*) 9391 shlibpath_overrides_runpath=no 9392 ;; 9393 *) 9394 shlibpath_overrides_runpath=yes 9395 ;; 9396 esac 9397 else 9398 shlibpath_overrides_runpath=yes 9399 fi 9400 ;; 9401 9402os2*) 9403 libname_spec='$name' 9404 shrext_cmds=".dll" 9405 need_lib_prefix=no 9406 library_names_spec='$libname${shared_ext} $libname.a' 9407 dynamic_linker='OS/2 ld.exe' 9408 shlibpath_var=LIBPATH 9409 ;; 9410 9411osf3* | osf4* | osf5*) 9412 version_type=osf 9413 need_lib_prefix=no 9414 need_version=no 9415 soname_spec='${libname}${release}${shared_ext}$major' 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9417 shlibpath_var=LD_LIBRARY_PATH 9418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9420 ;; 9421 9422solaris*) 9423 version_type=linux 9424 need_lib_prefix=no 9425 need_version=no 9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9427 soname_spec='${libname}${release}${shared_ext}$major' 9428 shlibpath_var=LD_LIBRARY_PATH 9429 shlibpath_overrides_runpath=yes 9430 hardcode_into_libs=yes 9431 # ldd complains unless libraries are executable 9432 postinstall_cmds='chmod +x $lib' 9433 ;; 9434 9435sunos4*) 9436 version_type=sunos 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9439 shlibpath_var=LD_LIBRARY_PATH 9440 shlibpath_overrides_runpath=yes 9441 if test "$with_gnu_ld" = yes; then 9442 need_lib_prefix=no 9443 fi 9444 need_version=yes 9445 ;; 9446 9447sysv4 | sysv4.3*) 9448 version_type=linux 9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9450 soname_spec='${libname}${release}${shared_ext}$major' 9451 shlibpath_var=LD_LIBRARY_PATH 9452 case $host_vendor in 9453 sni) 9454 shlibpath_overrides_runpath=no 9455 need_lib_prefix=no 9456 export_dynamic_flag_spec='${wl}-Blargedynsym' 9457 runpath_var=LD_RUN_PATH 9458 ;; 9459 siemens) 9460 need_lib_prefix=no 9461 ;; 9462 motorola) 9463 need_lib_prefix=no 9464 need_version=no 9465 shlibpath_overrides_runpath=no 9466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9467 ;; 9468 esac 9469 ;; 9470 9471sysv4*MP*) 9472 if test -d /usr/nec ;then 9473 version_type=linux 9474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9475 soname_spec='$libname${shared_ext}.$major' 9476 shlibpath_var=LD_LIBRARY_PATH 9477 fi 9478 ;; 9479 9480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9481 version_type=freebsd-elf 9482 need_lib_prefix=no 9483 need_version=no 9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9485 soname_spec='${libname}${release}${shared_ext}$major' 9486 shlibpath_var=LD_LIBRARY_PATH 9487 hardcode_into_libs=yes 9488 if test "$with_gnu_ld" = yes; then 9489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9490 shlibpath_overrides_runpath=no 9491 else 9492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9493 shlibpath_overrides_runpath=yes 9494 case $host_os in 9495 sco3.2v5*) 9496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9497 ;; 9498 esac 9499 fi 9500 sys_lib_dlsearch_path_spec='/usr/lib' 9501 ;; 9502 9503uts4*) 9504 version_type=linux 9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9506 soname_spec='${libname}${release}${shared_ext}$major' 9507 shlibpath_var=LD_LIBRARY_PATH 9508 ;; 9509 9510*) 9511 dynamic_linker=no 9512 ;; 9513esac 9514{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9515echo "${ECHO_T}$dynamic_linker" >&6; } 9516test "$dynamic_linker" = no && can_build_shared=no 9517 9518variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9519if test "$GCC" = yes; then 9520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9521fi 9522 9523{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9524echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9525hardcode_action= 9526if test -n "$hardcode_libdir_flag_spec" || \ 9527 test -n "$runpath_var" || \ 9528 test "X$hardcode_automatic" = "Xyes" ; then 9529 9530 # We can hardcode non-existant directories. 9531 if test "$hardcode_direct" != no && 9532 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9533 # have to relink, otherwise we might link with an installed library 9534 # when we should be linking with a yet-to-be-installed one 9535 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9536 test "$hardcode_minus_L" != no; then 9537 # Linking always hardcodes the temporary library directory. 9538 hardcode_action=relink 9539 else 9540 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9541 hardcode_action=immediate 9542 fi 9543else 9544 # We cannot hardcode anything, or else we can only hardcode existing 9545 # directories. 9546 hardcode_action=unsupported 9547fi 9548{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9549echo "${ECHO_T}$hardcode_action" >&6; } 9550 9551if test "$hardcode_action" = relink; then 9552 # Fast installation is not supported 9553 enable_fast_install=no 9554elif test "$shlibpath_overrides_runpath" = yes || 9555 test "$enable_shared" = no; then 9556 # Fast installation is not necessary 9557 enable_fast_install=needless 9558fi 9559 9560striplib= 9561old_striplib= 9562{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9563echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9564if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9566 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9567 { echo "$as_me:$LINENO: result: yes" >&5 9568echo "${ECHO_T}yes" >&6; } 9569else 9570# FIXME - insert some real tests, host_os isn't really good enough 9571 case $host_os in 9572 darwin*) 9573 if test -n "$STRIP" ; then 9574 striplib="$STRIP -x" 9575 { echo "$as_me:$LINENO: result: yes" >&5 9576echo "${ECHO_T}yes" >&6; } 9577 else 9578 { echo "$as_me:$LINENO: result: no" >&5 9579echo "${ECHO_T}no" >&6; } 9580fi 9581 ;; 9582 *) 9583 { echo "$as_me:$LINENO: result: no" >&5 9584echo "${ECHO_T}no" >&6; } 9585 ;; 9586 esac 9587fi 9588 9589if test "x$enable_dlopen" != xyes; then 9590 enable_dlopen=unknown 9591 enable_dlopen_self=unknown 9592 enable_dlopen_self_static=unknown 9593else 9594 lt_cv_dlopen=no 9595 lt_cv_dlopen_libs= 9596 9597 case $host_os in 9598 beos*) 9599 lt_cv_dlopen="load_add_on" 9600 lt_cv_dlopen_libs= 9601 lt_cv_dlopen_self=yes 9602 ;; 9603 9604 mingw* | pw32*) 9605 lt_cv_dlopen="LoadLibrary" 9606 lt_cv_dlopen_libs= 9607 ;; 9608 9609 cygwin*) 9610 lt_cv_dlopen="dlopen" 9611 lt_cv_dlopen_libs= 9612 ;; 9613 9614 darwin*) 9615 # if libdl is installed we need to link against it 9616 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9618if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9619 echo $ECHO_N "(cached) $ECHO_C" >&6 9620else 9621 ac_check_lib_save_LIBS=$LIBS 9622LIBS="-ldl $LIBS" 9623cat >conftest.$ac_ext <<_ACEOF 9624/* confdefs.h. */ 9625_ACEOF 9626cat confdefs.h >>conftest.$ac_ext 9627cat >>conftest.$ac_ext <<_ACEOF 9628/* end confdefs.h. */ 9629 9630/* Override any GCC internal prototype to avoid an error. 9631 Use char because int might match the return type of a GCC 9632 builtin and then its argument prototype would still apply. */ 9633#ifdef __cplusplus 9634extern "C" 9635#endif 9636char dlopen (); 9637int 9638main () 9639{ 9640return dlopen (); 9641 ; 9642 return 0; 9643} 9644_ACEOF 9645rm -f conftest.$ac_objext conftest$ac_exeext 9646if { (ac_try="$ac_link" 9647case "(($ac_try" in 9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9649 *) ac_try_echo=$ac_try;; 9650esac 9651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9652 (eval "$ac_link") 2>conftest.er1 9653 ac_status=$? 9654 grep -v '^ *+' conftest.er1 >conftest.err 9655 rm -f conftest.er1 9656 cat conftest.err >&5 9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9658 (exit $ac_status); } && 9659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9660 { (case "(($ac_try" in 9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9662 *) ac_try_echo=$ac_try;; 9663esac 9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9665 (eval "$ac_try") 2>&5 9666 ac_status=$? 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); }; } && 9669 { ac_try='test -s conftest$ac_exeext' 9670 { (case "(($ac_try" in 9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9672 *) ac_try_echo=$ac_try;; 9673esac 9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9675 (eval "$ac_try") 2>&5 9676 ac_status=$? 9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9678 (exit $ac_status); }; }; then 9679 ac_cv_lib_dl_dlopen=yes 9680else 9681 echo "$as_me: failed program was:" >&5 9682sed 's/^/| /' conftest.$ac_ext >&5 9683 9684 ac_cv_lib_dl_dlopen=no 9685fi 9686 9687rm -f conftest.err conftest.$ac_objext \ 9688 conftest$ac_exeext conftest.$ac_ext 9689LIBS=$ac_check_lib_save_LIBS 9690fi 9691{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9693if test $ac_cv_lib_dl_dlopen = yes; then 9694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9695else 9696 9697 lt_cv_dlopen="dyld" 9698 lt_cv_dlopen_libs= 9699 lt_cv_dlopen_self=yes 9700 9701fi 9702 9703 ;; 9704 9705 *) 9706 { echo "$as_me:$LINENO: checking for shl_load" >&5 9707echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9708if test "${ac_cv_func_shl_load+set}" = set; then 9709 echo $ECHO_N "(cached) $ECHO_C" >&6 9710else 9711 cat >conftest.$ac_ext <<_ACEOF 9712/* confdefs.h. */ 9713_ACEOF 9714cat confdefs.h >>conftest.$ac_ext 9715cat >>conftest.$ac_ext <<_ACEOF 9716/* end confdefs.h. */ 9717/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9718 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9719#define shl_load innocuous_shl_load 9720 9721/* System header to define __stub macros and hopefully few prototypes, 9722 which can conflict with char shl_load (); below. 9723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9724 <limits.h> exists even on freestanding compilers. */ 9725 9726#ifdef __STDC__ 9727# include <limits.h> 9728#else 9729# include <assert.h> 9730#endif 9731 9732#undef shl_load 9733 9734/* Override any GCC internal prototype to avoid an error. 9735 Use char because int might match the return type of a GCC 9736 builtin and then its argument prototype would still apply. */ 9737#ifdef __cplusplus 9738extern "C" 9739#endif 9740char shl_load (); 9741/* The GNU C library defines this for functions which it implements 9742 to always fail with ENOSYS. Some functions are actually named 9743 something starting with __ and the normal name is an alias. */ 9744#if defined __stub_shl_load || defined __stub___shl_load 9745choke me 9746#endif 9747 9748int 9749main () 9750{ 9751return shl_load (); 9752 ; 9753 return 0; 9754} 9755_ACEOF 9756rm -f conftest.$ac_objext conftest$ac_exeext 9757if { (ac_try="$ac_link" 9758case "(($ac_try" in 9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9760 *) ac_try_echo=$ac_try;; 9761esac 9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9763 (eval "$ac_link") 2>conftest.er1 9764 ac_status=$? 9765 grep -v '^ *+' conftest.er1 >conftest.err 9766 rm -f conftest.er1 9767 cat conftest.err >&5 9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9769 (exit $ac_status); } && 9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9771 { (case "(($ac_try" in 9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9773 *) ac_try_echo=$ac_try;; 9774esac 9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9776 (eval "$ac_try") 2>&5 9777 ac_status=$? 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); }; } && 9780 { ac_try='test -s conftest$ac_exeext' 9781 { (case "(($ac_try" in 9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9783 *) ac_try_echo=$ac_try;; 9784esac 9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9786 (eval "$ac_try") 2>&5 9787 ac_status=$? 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; }; then 9790 ac_cv_func_shl_load=yes 9791else 9792 echo "$as_me: failed program was:" >&5 9793sed 's/^/| /' conftest.$ac_ext >&5 9794 9795 ac_cv_func_shl_load=no 9796fi 9797 9798rm -f conftest.err conftest.$ac_objext \ 9799 conftest$ac_exeext conftest.$ac_ext 9800fi 9801{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9802echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9803if test $ac_cv_func_shl_load = yes; then 9804 lt_cv_dlopen="shl_load" 9805else 9806 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9807echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9808if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9809 echo $ECHO_N "(cached) $ECHO_C" >&6 9810else 9811 ac_check_lib_save_LIBS=$LIBS 9812LIBS="-ldld $LIBS" 9813cat >conftest.$ac_ext <<_ACEOF 9814/* confdefs.h. */ 9815_ACEOF 9816cat confdefs.h >>conftest.$ac_ext 9817cat >>conftest.$ac_ext <<_ACEOF 9818/* end confdefs.h. */ 9819 9820/* Override any GCC internal prototype to avoid an error. 9821 Use char because int might match the return type of a GCC 9822 builtin and then its argument prototype would still apply. */ 9823#ifdef __cplusplus 9824extern "C" 9825#endif 9826char shl_load (); 9827int 9828main () 9829{ 9830return shl_load (); 9831 ; 9832 return 0; 9833} 9834_ACEOF 9835rm -f conftest.$ac_objext conftest$ac_exeext 9836if { (ac_try="$ac_link" 9837case "(($ac_try" in 9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9839 *) ac_try_echo=$ac_try;; 9840esac 9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9842 (eval "$ac_link") 2>conftest.er1 9843 ac_status=$? 9844 grep -v '^ *+' conftest.er1 >conftest.err 9845 rm -f conftest.er1 9846 cat conftest.err >&5 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); } && 9849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9850 { (case "(($ac_try" in 9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9852 *) ac_try_echo=$ac_try;; 9853esac 9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9855 (eval "$ac_try") 2>&5 9856 ac_status=$? 9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9858 (exit $ac_status); }; } && 9859 { ac_try='test -s conftest$ac_exeext' 9860 { (case "(($ac_try" in 9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9862 *) ac_try_echo=$ac_try;; 9863esac 9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9865 (eval "$ac_try") 2>&5 9866 ac_status=$? 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9868 (exit $ac_status); }; }; then 9869 ac_cv_lib_dld_shl_load=yes 9870else 9871 echo "$as_me: failed program was:" >&5 9872sed 's/^/| /' conftest.$ac_ext >&5 9873 9874 ac_cv_lib_dld_shl_load=no 9875fi 9876 9877rm -f conftest.err conftest.$ac_objext \ 9878 conftest$ac_exeext conftest.$ac_ext 9879LIBS=$ac_check_lib_save_LIBS 9880fi 9881{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9883if test $ac_cv_lib_dld_shl_load = yes; then 9884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9885else 9886 { echo "$as_me:$LINENO: checking for dlopen" >&5 9887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9888if test "${ac_cv_func_dlopen+set}" = set; then 9889 echo $ECHO_N "(cached) $ECHO_C" >&6 9890else 9891 cat >conftest.$ac_ext <<_ACEOF 9892/* confdefs.h. */ 9893_ACEOF 9894cat confdefs.h >>conftest.$ac_ext 9895cat >>conftest.$ac_ext <<_ACEOF 9896/* end confdefs.h. */ 9897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9899#define dlopen innocuous_dlopen 9900 9901/* System header to define __stub macros and hopefully few prototypes, 9902 which can conflict with char dlopen (); below. 9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9904 <limits.h> exists even on freestanding compilers. */ 9905 9906#ifdef __STDC__ 9907# include <limits.h> 9908#else 9909# include <assert.h> 9910#endif 9911 9912#undef dlopen 9913 9914/* Override any GCC internal prototype to avoid an error. 9915 Use char because int might match the return type of a GCC 9916 builtin and then its argument prototype would still apply. */ 9917#ifdef __cplusplus 9918extern "C" 9919#endif 9920char dlopen (); 9921/* The GNU C library defines this for functions which it implements 9922 to always fail with ENOSYS. Some functions are actually named 9923 something starting with __ and the normal name is an alias. */ 9924#if defined __stub_dlopen || defined __stub___dlopen 9925choke me 9926#endif 9927 9928int 9929main () 9930{ 9931return dlopen (); 9932 ; 9933 return 0; 9934} 9935_ACEOF 9936rm -f conftest.$ac_objext conftest$ac_exeext 9937if { (ac_try="$ac_link" 9938case "(($ac_try" in 9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9940 *) ac_try_echo=$ac_try;; 9941esac 9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9943 (eval "$ac_link") 2>conftest.er1 9944 ac_status=$? 9945 grep -v '^ *+' conftest.er1 >conftest.err 9946 rm -f conftest.er1 9947 cat conftest.err >&5 9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9949 (exit $ac_status); } && 9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9951 { (case "(($ac_try" in 9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9953 *) ac_try_echo=$ac_try;; 9954esac 9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9956 (eval "$ac_try") 2>&5 9957 ac_status=$? 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9959 (exit $ac_status); }; } && 9960 { ac_try='test -s conftest$ac_exeext' 9961 { (case "(($ac_try" in 9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9963 *) ac_try_echo=$ac_try;; 9964esac 9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9966 (eval "$ac_try") 2>&5 9967 ac_status=$? 9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); }; }; then 9970 ac_cv_func_dlopen=yes 9971else 9972 echo "$as_me: failed program was:" >&5 9973sed 's/^/| /' conftest.$ac_ext >&5 9974 9975 ac_cv_func_dlopen=no 9976fi 9977 9978rm -f conftest.err conftest.$ac_objext \ 9979 conftest$ac_exeext conftest.$ac_ext 9980fi 9981{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9982echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9983if test $ac_cv_func_dlopen = yes; then 9984 lt_cv_dlopen="dlopen" 9985else 9986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9987echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9988if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9989 echo $ECHO_N "(cached) $ECHO_C" >&6 9990else 9991 ac_check_lib_save_LIBS=$LIBS 9992LIBS="-ldl $LIBS" 9993cat >conftest.$ac_ext <<_ACEOF 9994/* confdefs.h. */ 9995_ACEOF 9996cat confdefs.h >>conftest.$ac_ext 9997cat >>conftest.$ac_ext <<_ACEOF 9998/* end confdefs.h. */ 9999 10000/* Override any GCC internal prototype to avoid an error. 10001 Use char because int might match the return type of a GCC 10002 builtin and then its argument prototype would still apply. */ 10003#ifdef __cplusplus 10004extern "C" 10005#endif 10006char dlopen (); 10007int 10008main () 10009{ 10010return dlopen (); 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015rm -f conftest.$ac_objext conftest$ac_exeext 10016if { (ac_try="$ac_link" 10017case "(($ac_try" in 10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10019 *) ac_try_echo=$ac_try;; 10020esac 10021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10022 (eval "$ac_link") 2>conftest.er1 10023 ac_status=$? 10024 grep -v '^ *+' conftest.er1 >conftest.err 10025 rm -f conftest.er1 10026 cat conftest.err >&5 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); } && 10029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10030 { (case "(($ac_try" in 10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10032 *) ac_try_echo=$ac_try;; 10033esac 10034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10035 (eval "$ac_try") 2>&5 10036 ac_status=$? 10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10038 (exit $ac_status); }; } && 10039 { ac_try='test -s conftest$ac_exeext' 10040 { (case "(($ac_try" in 10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10042 *) ac_try_echo=$ac_try;; 10043esac 10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10045 (eval "$ac_try") 2>&5 10046 ac_status=$? 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); }; }; then 10049 ac_cv_lib_dl_dlopen=yes 10050else 10051 echo "$as_me: failed program was:" >&5 10052sed 's/^/| /' conftest.$ac_ext >&5 10053 10054 ac_cv_lib_dl_dlopen=no 10055fi 10056 10057rm -f conftest.err conftest.$ac_objext \ 10058 conftest$ac_exeext conftest.$ac_ext 10059LIBS=$ac_check_lib_save_LIBS 10060fi 10061{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10063if test $ac_cv_lib_dl_dlopen = yes; then 10064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10065else 10066 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10067echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10068if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10069 echo $ECHO_N "(cached) $ECHO_C" >&6 10070else 10071 ac_check_lib_save_LIBS=$LIBS 10072LIBS="-lsvld $LIBS" 10073cat >conftest.$ac_ext <<_ACEOF 10074/* confdefs.h. */ 10075_ACEOF 10076cat confdefs.h >>conftest.$ac_ext 10077cat >>conftest.$ac_ext <<_ACEOF 10078/* end confdefs.h. */ 10079 10080/* Override any GCC internal prototype to avoid an error. 10081 Use char because int might match the return type of a GCC 10082 builtin and then its argument prototype would still apply. */ 10083#ifdef __cplusplus 10084extern "C" 10085#endif 10086char dlopen (); 10087int 10088main () 10089{ 10090return dlopen (); 10091 ; 10092 return 0; 10093} 10094_ACEOF 10095rm -f conftest.$ac_objext conftest$ac_exeext 10096if { (ac_try="$ac_link" 10097case "(($ac_try" in 10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10099 *) ac_try_echo=$ac_try;; 10100esac 10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10102 (eval "$ac_link") 2>conftest.er1 10103 ac_status=$? 10104 grep -v '^ *+' conftest.er1 >conftest.err 10105 rm -f conftest.er1 10106 cat conftest.err >&5 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); } && 10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10110 { (case "(($ac_try" in 10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10112 *) ac_try_echo=$ac_try;; 10113esac 10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10115 (eval "$ac_try") 2>&5 10116 ac_status=$? 10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10118 (exit $ac_status); }; } && 10119 { ac_try='test -s conftest$ac_exeext' 10120 { (case "(($ac_try" in 10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10122 *) ac_try_echo=$ac_try;; 10123esac 10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10125 (eval "$ac_try") 2>&5 10126 ac_status=$? 10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 (exit $ac_status); }; }; then 10129 ac_cv_lib_svld_dlopen=yes 10130else 10131 echo "$as_me: failed program was:" >&5 10132sed 's/^/| /' conftest.$ac_ext >&5 10133 10134 ac_cv_lib_svld_dlopen=no 10135fi 10136 10137rm -f conftest.err conftest.$ac_objext \ 10138 conftest$ac_exeext conftest.$ac_ext 10139LIBS=$ac_check_lib_save_LIBS 10140fi 10141{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10142echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10143if test $ac_cv_lib_svld_dlopen = yes; then 10144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10145else 10146 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10147echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10148if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10149 echo $ECHO_N "(cached) $ECHO_C" >&6 10150else 10151 ac_check_lib_save_LIBS=$LIBS 10152LIBS="-ldld $LIBS" 10153cat >conftest.$ac_ext <<_ACEOF 10154/* confdefs.h. */ 10155_ACEOF 10156cat confdefs.h >>conftest.$ac_ext 10157cat >>conftest.$ac_ext <<_ACEOF 10158/* end confdefs.h. */ 10159 10160/* Override any GCC internal prototype to avoid an error. 10161 Use char because int might match the return type of a GCC 10162 builtin and then its argument prototype would still apply. */ 10163#ifdef __cplusplus 10164extern "C" 10165#endif 10166char dld_link (); 10167int 10168main () 10169{ 10170return dld_link (); 10171 ; 10172 return 0; 10173} 10174_ACEOF 10175rm -f conftest.$ac_objext conftest$ac_exeext 10176if { (ac_try="$ac_link" 10177case "(($ac_try" in 10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10179 *) ac_try_echo=$ac_try;; 10180esac 10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10182 (eval "$ac_link") 2>conftest.er1 10183 ac_status=$? 10184 grep -v '^ *+' conftest.er1 >conftest.err 10185 rm -f conftest.er1 10186 cat conftest.err >&5 10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10188 (exit $ac_status); } && 10189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10190 { (case "(($ac_try" in 10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10192 *) ac_try_echo=$ac_try;; 10193esac 10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10195 (eval "$ac_try") 2>&5 10196 ac_status=$? 10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10198 (exit $ac_status); }; } && 10199 { ac_try='test -s conftest$ac_exeext' 10200 { (case "(($ac_try" in 10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10202 *) ac_try_echo=$ac_try;; 10203esac 10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10205 (eval "$ac_try") 2>&5 10206 ac_status=$? 10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); }; }; then 10209 ac_cv_lib_dld_dld_link=yes 10210else 10211 echo "$as_me: failed program was:" >&5 10212sed 's/^/| /' conftest.$ac_ext >&5 10213 10214 ac_cv_lib_dld_dld_link=no 10215fi 10216 10217rm -f conftest.err conftest.$ac_objext \ 10218 conftest$ac_exeext conftest.$ac_ext 10219LIBS=$ac_check_lib_save_LIBS 10220fi 10221{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10222echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10223if test $ac_cv_lib_dld_dld_link = yes; then 10224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10225fi 10226 10227 10228fi 10229 10230 10231fi 10232 10233 10234fi 10235 10236 10237fi 10238 10239 10240fi 10241 10242 ;; 10243 esac 10244 10245 if test "x$lt_cv_dlopen" != xno; then 10246 enable_dlopen=yes 10247 else 10248 enable_dlopen=no 10249 fi 10250 10251 case $lt_cv_dlopen in 10252 dlopen) 10253 save_CPPFLAGS="$CPPFLAGS" 10254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10255 10256 save_LDFLAGS="$LDFLAGS" 10257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10258 10259 save_LIBS="$LIBS" 10260 LIBS="$lt_cv_dlopen_libs $LIBS" 10261 10262 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10263echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10264if test "${lt_cv_dlopen_self+set}" = set; then 10265 echo $ECHO_N "(cached) $ECHO_C" >&6 10266else 10267 if test "$cross_compiling" = yes; then : 10268 lt_cv_dlopen_self=cross 10269else 10270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10271 lt_status=$lt_dlunknown 10272 cat > conftest.$ac_ext <<EOF 10273#line __oline__ "configure" 10274#include "confdefs.h" 10275 10276#if HAVE_DLFCN_H 10277#include <dlfcn.h> 10278#endif 10279 10280#include <stdio.h> 10281 10282#ifdef RTLD_GLOBAL 10283# define LT_DLGLOBAL RTLD_GLOBAL 10284#else 10285# ifdef DL_GLOBAL 10286# define LT_DLGLOBAL DL_GLOBAL 10287# else 10288# define LT_DLGLOBAL 0 10289# endif 10290#endif 10291 10292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10293 find out it does not work in some platform. */ 10294#ifndef LT_DLLAZY_OR_NOW 10295# ifdef RTLD_LAZY 10296# define LT_DLLAZY_OR_NOW RTLD_LAZY 10297# else 10298# ifdef DL_LAZY 10299# define LT_DLLAZY_OR_NOW DL_LAZY 10300# else 10301# ifdef RTLD_NOW 10302# define LT_DLLAZY_OR_NOW RTLD_NOW 10303# else 10304# ifdef DL_NOW 10305# define LT_DLLAZY_OR_NOW DL_NOW 10306# else 10307# define LT_DLLAZY_OR_NOW 0 10308# endif 10309# endif 10310# endif 10311# endif 10312#endif 10313 10314#ifdef __cplusplus 10315extern "C" void exit (int); 10316#endif 10317 10318void fnord() { int i=42;} 10319int main () 10320{ 10321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10322 int status = $lt_dlunknown; 10323 10324 if (self) 10325 { 10326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10328 /* dlclose (self); */ 10329 } 10330 else 10331 puts (dlerror ()); 10332 10333 exit (status); 10334} 10335EOF 10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10337 (eval $ac_link) 2>&5 10338 ac_status=$? 10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10341 (./conftest; exit; ) >&5 2>/dev/null 10342 lt_status=$? 10343 case x$lt_status in 10344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10347 esac 10348 else : 10349 # compilation failed 10350 lt_cv_dlopen_self=no 10351 fi 10352fi 10353rm -fr conftest* 10354 10355 10356fi 10357{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10358echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10359 10360 if test "x$lt_cv_dlopen_self" = xyes; then 10361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10363echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10364if test "${lt_cv_dlopen_self_static+set}" = set; then 10365 echo $ECHO_N "(cached) $ECHO_C" >&6 10366else 10367 if test "$cross_compiling" = yes; then : 10368 lt_cv_dlopen_self_static=cross 10369else 10370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10371 lt_status=$lt_dlunknown 10372 cat > conftest.$ac_ext <<EOF 10373#line __oline__ "configure" 10374#include "confdefs.h" 10375 10376#if HAVE_DLFCN_H 10377#include <dlfcn.h> 10378#endif 10379 10380#include <stdio.h> 10381 10382#ifdef RTLD_GLOBAL 10383# define LT_DLGLOBAL RTLD_GLOBAL 10384#else 10385# ifdef DL_GLOBAL 10386# define LT_DLGLOBAL DL_GLOBAL 10387# else 10388# define LT_DLGLOBAL 0 10389# endif 10390#endif 10391 10392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10393 find out it does not work in some platform. */ 10394#ifndef LT_DLLAZY_OR_NOW 10395# ifdef RTLD_LAZY 10396# define LT_DLLAZY_OR_NOW RTLD_LAZY 10397# else 10398# ifdef DL_LAZY 10399# define LT_DLLAZY_OR_NOW DL_LAZY 10400# else 10401# ifdef RTLD_NOW 10402# define LT_DLLAZY_OR_NOW RTLD_NOW 10403# else 10404# ifdef DL_NOW 10405# define LT_DLLAZY_OR_NOW DL_NOW 10406# else 10407# define LT_DLLAZY_OR_NOW 0 10408# endif 10409# endif 10410# endif 10411# endif 10412#endif 10413 10414#ifdef __cplusplus 10415extern "C" void exit (int); 10416#endif 10417 10418void fnord() { int i=42;} 10419int main () 10420{ 10421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10422 int status = $lt_dlunknown; 10423 10424 if (self) 10425 { 10426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10428 /* dlclose (self); */ 10429 } 10430 else 10431 puts (dlerror ()); 10432 10433 exit (status); 10434} 10435EOF 10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10437 (eval $ac_link) 2>&5 10438 ac_status=$? 10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10440 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10441 (./conftest; exit; ) >&5 2>/dev/null 10442 lt_status=$? 10443 case x$lt_status in 10444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10447 esac 10448 else : 10449 # compilation failed 10450 lt_cv_dlopen_self_static=no 10451 fi 10452fi 10453rm -fr conftest* 10454 10455 10456fi 10457{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10458echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10459 fi 10460 10461 CPPFLAGS="$save_CPPFLAGS" 10462 LDFLAGS="$save_LDFLAGS" 10463 LIBS="$save_LIBS" 10464 ;; 10465 esac 10466 10467 case $lt_cv_dlopen_self in 10468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10469 *) enable_dlopen_self=unknown ;; 10470 esac 10471 10472 case $lt_cv_dlopen_self_static in 10473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10474 *) enable_dlopen_self_static=unknown ;; 10475 esac 10476fi 10477 10478 10479# Report which library types will actually be built 10480{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10481echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10482{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10483echo "${ECHO_T}$can_build_shared" >&6; } 10484 10485{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10486echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10487test "$can_build_shared" = "no" && enable_shared=no 10488 10489# On AIX, shared libraries and static libraries use the same namespace, and 10490# are all built from PIC. 10491case $host_os in 10492aix3*) 10493 test "$enable_shared" = yes && enable_static=no 10494 if test -n "$RANLIB"; then 10495 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10496 postinstall_cmds='$RANLIB $lib' 10497 fi 10498 ;; 10499 10500aix4* | aix5*) 10501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10502 test "$enable_shared" = yes && enable_static=no 10503 fi 10504 ;; 10505esac 10506{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10507echo "${ECHO_T}$enable_shared" >&6; } 10508 10509{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10510echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10511# Make sure either enable_shared or enable_static is yes. 10512test "$enable_shared" = yes || enable_static=yes 10513{ echo "$as_me:$LINENO: result: $enable_static" >&5 10514echo "${ECHO_T}$enable_static" >&6; } 10515 10516# The else clause should only fire when bootstrapping the 10517# libtool distribution, otherwise you forgot to ship ltmain.sh 10518# with your package, and you will get complaints that there are 10519# no rules to generate ltmain.sh. 10520if test -f "$ltmain"; then 10521 # See if we are running on zsh, and set the options which allow our commands through 10522 # without removal of \ escapes. 10523 if test -n "${ZSH_VERSION+set}" ; then 10524 setopt NO_GLOB_SUBST 10525 fi 10526 # Now quote all the things that may contain metacharacters while being 10527 # careful not to overquote the AC_SUBSTed values. We take copies of the 10528 # variables and quote the copies for generation of the libtool script. 10529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10530 SED SHELL STRIP \ 10531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10533 deplibs_check_method reload_flag reload_cmds need_locks \ 10534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10535 lt_cv_sys_global_symbol_to_c_name_address \ 10536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10537 old_postinstall_cmds old_postuninstall_cmds \ 10538 compiler \ 10539 CC \ 10540 LD \ 10541 lt_prog_compiler_wl \ 10542 lt_prog_compiler_pic \ 10543 lt_prog_compiler_static \ 10544 lt_prog_compiler_no_builtin_flag \ 10545 export_dynamic_flag_spec \ 10546 thread_safe_flag_spec \ 10547 whole_archive_flag_spec \ 10548 enable_shared_with_static_runtimes \ 10549 old_archive_cmds \ 10550 old_archive_from_new_cmds \ 10551 predep_objects \ 10552 postdep_objects \ 10553 predeps \ 10554 postdeps \ 10555 compiler_lib_search_path \ 10556 archive_cmds \ 10557 archive_expsym_cmds \ 10558 postinstall_cmds \ 10559 postuninstall_cmds \ 10560 old_archive_from_expsyms_cmds \ 10561 allow_undefined_flag \ 10562 no_undefined_flag \ 10563 export_symbols_cmds \ 10564 hardcode_libdir_flag_spec \ 10565 hardcode_libdir_flag_spec_ld \ 10566 hardcode_libdir_separator \ 10567 hardcode_automatic \ 10568 module_cmds \ 10569 module_expsym_cmds \ 10570 lt_cv_prog_compiler_c_o \ 10571 exclude_expsyms \ 10572 include_expsyms; do 10573 10574 case $var in 10575 old_archive_cmds | \ 10576 old_archive_from_new_cmds | \ 10577 archive_cmds | \ 10578 archive_expsym_cmds | \ 10579 module_cmds | \ 10580 module_expsym_cmds | \ 10581 old_archive_from_expsyms_cmds | \ 10582 export_symbols_cmds | \ 10583 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10584 postinstall_cmds | postuninstall_cmds | \ 10585 old_postinstall_cmds | old_postuninstall_cmds | \ 10586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10587 # Double-quote double-evaled strings. 10588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10589 ;; 10590 *) 10591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10592 ;; 10593 esac 10594 done 10595 10596 case $lt_echo in 10597 *'\$0 --fallback-echo"') 10598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10599 ;; 10600 esac 10601 10602cfgfile="${ofile}T" 10603 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10604 $rm -f "$cfgfile" 10605 { echo "$as_me:$LINENO: creating $ofile" >&5 10606echo "$as_me: creating $ofile" >&6;} 10607 10608 cat <<__EOF__ >> "$cfgfile" 10609#! $SHELL 10610 10611# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10612# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10613# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10614# 10615# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10616# Free Software Foundation, Inc. 10617# 10618# This file is part of GNU Libtool: 10619# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10620# 10621# This program is free software; you can redistribute it and/or modify 10622# it under the terms of the GNU General Public License as published by 10623# the Free Software Foundation; either version 2 of the License, or 10624# (at your option) any later version. 10625# 10626# This program is distributed in the hope that it will be useful, but 10627# WITHOUT ANY WARRANTY; without even the implied warranty of 10628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10629# General Public License for more details. 10630# 10631# You should have received a copy of the GNU General Public License 10632# along with this program; if not, write to the Free Software 10633# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10634# 10635# As a special exception to the GNU General Public License, if you 10636# distribute this file as part of a program that contains a 10637# configuration script generated by Autoconf, you may include it under 10638# the same distribution terms that you use for the rest of that program. 10639 10640# A sed program that does not truncate output. 10641SED=$lt_SED 10642 10643# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10644Xsed="$SED -e 1s/^X//" 10645 10646# The HP-UX ksh and POSIX shell print the target directory to stdout 10647# if CDPATH is set. 10648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10649 10650# The names of the tagged configurations supported by this script. 10651available_tags= 10652 10653# ### BEGIN LIBTOOL CONFIG 10654 10655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10656 10657# Shell to use when invoking shell scripts. 10658SHELL=$lt_SHELL 10659 10660# Whether or not to build shared libraries. 10661build_libtool_libs=$enable_shared 10662 10663# Whether or not to build static libraries. 10664build_old_libs=$enable_static 10665 10666# Whether or not to add -lc for building shared libraries. 10667build_libtool_need_lc=$archive_cmds_need_lc 10668 10669# Whether or not to disallow shared libs when runtime libs are static 10670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10671 10672# Whether or not to optimize for fast installation. 10673fast_install=$enable_fast_install 10674 10675# The host system. 10676host_alias=$host_alias 10677host=$host 10678host_os=$host_os 10679 10680# The build system. 10681build_alias=$build_alias 10682build=$build 10683build_os=$build_os 10684 10685# An echo program that does not interpret backslashes. 10686echo=$lt_echo 10687 10688# The archiver. 10689AR=$lt_AR 10690AR_FLAGS=$lt_AR_FLAGS 10691 10692# A C compiler. 10693LTCC=$lt_LTCC 10694 10695# LTCC compiler flags. 10696LTCFLAGS=$lt_LTCFLAGS 10697 10698# A language-specific compiler. 10699CC=$lt_compiler 10700 10701# Is the compiler the GNU C compiler? 10702with_gcc=$GCC 10703 10704# An ERE matcher. 10705EGREP=$lt_EGREP 10706 10707# The linker used to build libraries. 10708LD=$lt_LD 10709 10710# Whether we need hard or soft links. 10711LN_S=$lt_LN_S 10712 10713# A BSD-compatible nm program. 10714NM=$lt_NM 10715 10716# A symbol stripping program 10717STRIP=$lt_STRIP 10718 10719# Used to examine libraries when file_magic_cmd begins "file" 10720MAGIC_CMD=$MAGIC_CMD 10721 10722# Used on cygwin: DLL creation program. 10723DLLTOOL="$DLLTOOL" 10724 10725# Used on cygwin: object dumper. 10726OBJDUMP="$OBJDUMP" 10727 10728# Used on cygwin: assembler. 10729AS="$AS" 10730 10731# The name of the directory that contains temporary libtool files. 10732objdir=$objdir 10733 10734# How to create reloadable object files. 10735reload_flag=$lt_reload_flag 10736reload_cmds=$lt_reload_cmds 10737 10738# How to pass a linker flag through the compiler. 10739wl=$lt_lt_prog_compiler_wl 10740 10741# Object file suffix (normally "o"). 10742objext="$ac_objext" 10743 10744# Old archive suffix (normally "a"). 10745libext="$libext" 10746 10747# Shared library suffix (normally ".so"). 10748shrext_cmds='$shrext_cmds' 10749 10750# Executable file suffix (normally ""). 10751exeext="$exeext" 10752 10753# Additional compiler flags for building library objects. 10754pic_flag=$lt_lt_prog_compiler_pic 10755pic_mode=$pic_mode 10756 10757# What is the maximum length of a command? 10758max_cmd_len=$lt_cv_sys_max_cmd_len 10759 10760# Does compiler simultaneously support -c and -o options? 10761compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10762 10763# Must we lock files when doing compilation? 10764need_locks=$lt_need_locks 10765 10766# Do we need the lib prefix for modules? 10767need_lib_prefix=$need_lib_prefix 10768 10769# Do we need a version for libraries? 10770need_version=$need_version 10771 10772# Whether dlopen is supported. 10773dlopen_support=$enable_dlopen 10774 10775# Whether dlopen of programs is supported. 10776dlopen_self=$enable_dlopen_self 10777 10778# Whether dlopen of statically linked programs is supported. 10779dlopen_self_static=$enable_dlopen_self_static 10780 10781# Compiler flag to prevent dynamic linking. 10782link_static_flag=$lt_lt_prog_compiler_static 10783 10784# Compiler flag to turn off builtin functions. 10785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10786 10787# Compiler flag to allow reflexive dlopens. 10788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10789 10790# Compiler flag to generate shared objects directly from archives. 10791whole_archive_flag_spec=$lt_whole_archive_flag_spec 10792 10793# Compiler flag to generate thread-safe objects. 10794thread_safe_flag_spec=$lt_thread_safe_flag_spec 10795 10796# Library versioning type. 10797version_type=$version_type 10798 10799# Format of library name prefix. 10800libname_spec=$lt_libname_spec 10801 10802# List of archive names. First name is the real one, the rest are links. 10803# The last name is the one that the linker finds with -lNAME. 10804library_names_spec=$lt_library_names_spec 10805 10806# The coded name of the library, if different from the real name. 10807soname_spec=$lt_soname_spec 10808 10809# Commands used to build and install an old-style archive. 10810RANLIB=$lt_RANLIB 10811old_archive_cmds=$lt_old_archive_cmds 10812old_postinstall_cmds=$lt_old_postinstall_cmds 10813old_postuninstall_cmds=$lt_old_postuninstall_cmds 10814 10815# Create an old-style archive from a shared archive. 10816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10817 10818# Create a temporary old-style archive to link instead of a shared archive. 10819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10820 10821# Commands used to build and install a shared archive. 10822archive_cmds=$lt_archive_cmds 10823archive_expsym_cmds=$lt_archive_expsym_cmds 10824postinstall_cmds=$lt_postinstall_cmds 10825postuninstall_cmds=$lt_postuninstall_cmds 10826 10827# Commands used to build a loadable module (assumed same as above if empty) 10828module_cmds=$lt_module_cmds 10829module_expsym_cmds=$lt_module_expsym_cmds 10830 10831# Commands to strip libraries. 10832old_striplib=$lt_old_striplib 10833striplib=$lt_striplib 10834 10835# Dependencies to place before the objects being linked to create a 10836# shared library. 10837predep_objects=$lt_predep_objects 10838 10839# Dependencies to place after the objects being linked to create a 10840# shared library. 10841postdep_objects=$lt_postdep_objects 10842 10843# Dependencies to place before the objects being linked to create a 10844# shared library. 10845predeps=$lt_predeps 10846 10847# Dependencies to place after the objects being linked to create a 10848# shared library. 10849postdeps=$lt_postdeps 10850 10851# The library search path used internally by the compiler when linking 10852# a shared library. 10853compiler_lib_search_path=$lt_compiler_lib_search_path 10854 10855# Method to check whether dependent libraries are shared objects. 10856deplibs_check_method=$lt_deplibs_check_method 10857 10858# Command to use when deplibs_check_method == file_magic. 10859file_magic_cmd=$lt_file_magic_cmd 10860 10861# Flag that allows shared libraries with undefined symbols to be built. 10862allow_undefined_flag=$lt_allow_undefined_flag 10863 10864# Flag that forces no undefined symbols. 10865no_undefined_flag=$lt_no_undefined_flag 10866 10867# Commands used to finish a libtool library installation in a directory. 10868finish_cmds=$lt_finish_cmds 10869 10870# Same as above, but a single script fragment to be evaled but not shown. 10871finish_eval=$lt_finish_eval 10872 10873# Take the output of nm and produce a listing of raw symbols and C names. 10874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10875 10876# Transform the output of nm in a proper C declaration 10877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10878 10879# Transform the output of nm in a C name address pair 10880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10881 10882# This is the shared library runtime path variable. 10883runpath_var=$runpath_var 10884 10885# This is the shared library path variable. 10886shlibpath_var=$shlibpath_var 10887 10888# Is shlibpath searched before the hard-coded library search path? 10889shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10890 10891# How to hardcode a shared library path into an executable. 10892hardcode_action=$hardcode_action 10893 10894# Whether we should hardcode library paths into libraries. 10895hardcode_into_libs=$hardcode_into_libs 10896 10897# Flag to hardcode \$libdir into a binary during linking. 10898# This must work even if \$libdir does not exist. 10899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10900 10901# If ld is used when linking, flag to hardcode \$libdir into 10902# a binary during linking. This must work even if \$libdir does 10903# not exist. 10904hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10905 10906# Whether we need a single -rpath flag with a separated argument. 10907hardcode_libdir_separator=$lt_hardcode_libdir_separator 10908 10909# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10910# resulting binary. 10911hardcode_direct=$hardcode_direct 10912 10913# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10914# resulting binary. 10915hardcode_minus_L=$hardcode_minus_L 10916 10917# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10918# the resulting binary. 10919hardcode_shlibpath_var=$hardcode_shlibpath_var 10920 10921# Set to yes if building a shared library automatically hardcodes DIR into the library 10922# and all subsequent libraries and executables linked against it. 10923hardcode_automatic=$hardcode_automatic 10924 10925# Variables whose values should be saved in libtool wrapper scripts and 10926# restored at relink time. 10927variables_saved_for_relink="$variables_saved_for_relink" 10928 10929# Whether libtool must link a program against all its dependency libraries. 10930link_all_deplibs=$link_all_deplibs 10931 10932# Compile-time system search path for libraries 10933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10934 10935# Run-time system search path for libraries 10936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10937 10938# Fix the shell variable \$srcfile for the compiler. 10939fix_srcfile_path="$fix_srcfile_path" 10940 10941# Set to yes if exported symbols are required. 10942always_export_symbols=$always_export_symbols 10943 10944# The commands to list exported symbols. 10945export_symbols_cmds=$lt_export_symbols_cmds 10946 10947# The commands to extract the exported symbol list from a shared archive. 10948extract_expsyms_cmds=$lt_extract_expsyms_cmds 10949 10950# Symbols that should not be listed in the preloaded symbols. 10951exclude_expsyms=$lt_exclude_expsyms 10952 10953# Symbols that must always be exported. 10954include_expsyms=$lt_include_expsyms 10955 10956# ### END LIBTOOL CONFIG 10957 10958__EOF__ 10959 10960 10961 case $host_os in 10962 aix3*) 10963 cat <<\EOF >> "$cfgfile" 10964 10965# AIX sometimes has problems with the GCC collect2 program. For some 10966# reason, if we set the COLLECT_NAMES environment variable, the problems 10967# vanish in a puff of smoke. 10968if test "X${COLLECT_NAMES+set}" != Xset; then 10969 COLLECT_NAMES= 10970 export COLLECT_NAMES 10971fi 10972EOF 10973 ;; 10974 esac 10975 10976 # We use sed instead of cat because bash on DJGPP gets confused if 10977 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10978 # text mode, it properly converts lines to CR/LF. This bash problem 10979 # is reportedly fixed, but why not run on old versions too? 10980 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10981 10982 mv -f "$cfgfile" "$ofile" || \ 10983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10984 chmod +x "$ofile" 10985 10986else 10987 # If there is no Makefile yet, we rely on a make rule to execute 10988 # `config.status --recheck' to rerun these tests and create the 10989 # libtool script then. 10990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10991 if test -f "$ltmain_in"; then 10992 test -f Makefile && make "$ltmain" 10993 fi 10994fi 10995 10996 10997ac_ext=c 10998ac_cpp='$CPP $CPPFLAGS' 10999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11001ac_compiler_gnu=$ac_cv_c_compiler_gnu 11002 11003CC="$lt_save_CC" 11004 11005 11006# Check whether --with-tags was given. 11007if test "${with_tags+set}" = set; then 11008 withval=$with_tags; tagnames="$withval" 11009fi 11010 11011 11012if test -f "$ltmain" && test -n "$tagnames"; then 11013 if test ! -f "${ofile}"; then 11014 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11015echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11016 fi 11017 11018 if test -z "$LTCC"; then 11019 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11020 if test -z "$LTCC"; then 11021 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11022echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11023 else 11024 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11025echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11026 fi 11027 fi 11028 if test -z "$LTCFLAGS"; then 11029 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11030 fi 11031 11032 # Extract list of available tagged configurations in $ofile. 11033 # Note that this assumes the entire list is on one line. 11034 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11035 11036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11037 for tagname in $tagnames; do 11038 IFS="$lt_save_ifs" 11039 # Check whether tagname contains only valid characters 11040 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11041 "") ;; 11042 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11043echo "$as_me: error: invalid tag name: $tagname" >&2;} 11044 { (exit 1); exit 1; }; } 11045 ;; 11046 esac 11047 11048 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11049 then 11050 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11051echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11052 { (exit 1); exit 1; }; } 11053 fi 11054 11055 # Update the list of available tags. 11056 if test -n "$tagname"; then 11057 echo appending configuration tag \"$tagname\" to $ofile 11058 11059 case $tagname in 11060 CXX) 11061 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11062 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11063 (test "X$CXX" != "Xg++"))) ; then 11064 ac_ext=cpp 11065ac_cpp='$CXXCPP $CPPFLAGS' 11066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11069 11070 11071 11072 11073archive_cmds_need_lc_CXX=no 11074allow_undefined_flag_CXX= 11075always_export_symbols_CXX=no 11076archive_expsym_cmds_CXX= 11077export_dynamic_flag_spec_CXX= 11078hardcode_direct_CXX=no 11079hardcode_libdir_flag_spec_CXX= 11080hardcode_libdir_flag_spec_ld_CXX= 11081hardcode_libdir_separator_CXX= 11082hardcode_minus_L_CXX=no 11083hardcode_shlibpath_var_CXX=unsupported 11084hardcode_automatic_CXX=no 11085module_cmds_CXX= 11086module_expsym_cmds_CXX= 11087link_all_deplibs_CXX=unknown 11088old_archive_cmds_CXX=$old_archive_cmds 11089no_undefined_flag_CXX= 11090whole_archive_flag_spec_CXX= 11091enable_shared_with_static_runtimes_CXX=no 11092 11093# Dependencies to place before and after the object being linked: 11094predep_objects_CXX= 11095postdep_objects_CXX= 11096predeps_CXX= 11097postdeps_CXX= 11098compiler_lib_search_path_CXX= 11099 11100# Source file extension for C++ test sources. 11101ac_ext=cpp 11102 11103# Object file extension for compiled C++ test sources. 11104objext=o 11105objext_CXX=$objext 11106 11107# Code to be used in simple compile tests 11108lt_simple_compile_test_code="int some_variable = 0;\n" 11109 11110# Code to be used in simple link tests 11111lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11112 11113# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11114 11115# If no C compiler was specified, use CC. 11116LTCC=${LTCC-"$CC"} 11117 11118# If no C compiler flags were specified, use CFLAGS. 11119LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11120 11121# Allow CC to be a program name with arguments. 11122compiler=$CC 11123 11124 11125# save warnings/boilerplate of simple test code 11126ac_outfile=conftest.$ac_objext 11127printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11129_lt_compiler_boilerplate=`cat conftest.err` 11130$rm conftest* 11131 11132ac_outfile=conftest.$ac_objext 11133printf "$lt_simple_link_test_code" >conftest.$ac_ext 11134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11135_lt_linker_boilerplate=`cat conftest.err` 11136$rm conftest* 11137 11138 11139# Allow CC to be a program name with arguments. 11140lt_save_CC=$CC 11141lt_save_LD=$LD 11142lt_save_GCC=$GCC 11143GCC=$GXX 11144lt_save_with_gnu_ld=$with_gnu_ld 11145lt_save_path_LD=$lt_cv_path_LD 11146if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11147 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11148else 11149 $as_unset lt_cv_prog_gnu_ld 11150fi 11151if test -n "${lt_cv_path_LDCXX+set}"; then 11152 lt_cv_path_LD=$lt_cv_path_LDCXX 11153else 11154 $as_unset lt_cv_path_LD 11155fi 11156test -z "${LDCXX+set}" || LD=$LDCXX 11157CC=${CXX-"c++"} 11158compiler=$CC 11159compiler_CXX=$CC 11160for cc_temp in $compiler""; do 11161 case $cc_temp in 11162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11164 \-*) ;; 11165 *) break;; 11166 esac 11167done 11168cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11169 11170 11171# We don't want -fno-exception wen compiling C++ code, so set the 11172# no_builtin_flag separately 11173if test "$GXX" = yes; then 11174 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11175else 11176 lt_prog_compiler_no_builtin_flag_CXX= 11177fi 11178 11179if test "$GXX" = yes; then 11180 # Set up default GNU C++ configuration 11181 11182 11183# Check whether --with-gnu-ld was given. 11184if test "${with_gnu_ld+set}" = set; then 11185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11186else 11187 with_gnu_ld=no 11188fi 11189 11190ac_prog=ld 11191if test "$GCC" = yes; then 11192 # Check if gcc -print-prog-name=ld gives a path. 11193 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11194echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11195 case $host in 11196 *-*-mingw*) 11197 # gcc leaves a trailing carriage return which upsets mingw 11198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11199 *) 11200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11201 esac 11202 case $ac_prog in 11203 # Accept absolute paths. 11204 [\\/]* | ?:[\\/]*) 11205 re_direlt='/[^/][^/]*/\.\./' 11206 # Canonicalize the pathname of ld 11207 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11209 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11210 done 11211 test -z "$LD" && LD="$ac_prog" 11212 ;; 11213 "") 11214 # If it fails, then pretend we aren't using GCC. 11215 ac_prog=ld 11216 ;; 11217 *) 11218 # If it is relative, then search for the first ld in PATH. 11219 with_gnu_ld=unknown 11220 ;; 11221 esac 11222elif test "$with_gnu_ld" = yes; then 11223 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11224echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11225else 11226 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11227echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11228fi 11229if test "${lt_cv_path_LD+set}" = set; then 11230 echo $ECHO_N "(cached) $ECHO_C" >&6 11231else 11232 if test -z "$LD"; then 11233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11234 for ac_dir in $PATH; do 11235 IFS="$lt_save_ifs" 11236 test -z "$ac_dir" && ac_dir=. 11237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11238 lt_cv_path_LD="$ac_dir/$ac_prog" 11239 # Check to see if the program is GNU ld. I'd rather use --version, 11240 # but apparently some variants of GNU ld only accept -v. 11241 # Break only if it was the GNU/non-GNU ld that we prefer. 11242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11243 *GNU* | *'with BFD'*) 11244 test "$with_gnu_ld" != no && break 11245 ;; 11246 *) 11247 test "$with_gnu_ld" != yes && break 11248 ;; 11249 esac 11250 fi 11251 done 11252 IFS="$lt_save_ifs" 11253else 11254 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11255fi 11256fi 11257 11258LD="$lt_cv_path_LD" 11259if test -n "$LD"; then 11260 { echo "$as_me:$LINENO: result: $LD" >&5 11261echo "${ECHO_T}$LD" >&6; } 11262else 11263 { echo "$as_me:$LINENO: result: no" >&5 11264echo "${ECHO_T}no" >&6; } 11265fi 11266test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11267echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11268 { (exit 1); exit 1; }; } 11269{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11270echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11271if test "${lt_cv_prog_gnu_ld+set}" = set; then 11272 echo $ECHO_N "(cached) $ECHO_C" >&6 11273else 11274 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11275case `$LD -v 2>&1 </dev/null` in 11276*GNU* | *'with BFD'*) 11277 lt_cv_prog_gnu_ld=yes 11278 ;; 11279*) 11280 lt_cv_prog_gnu_ld=no 11281 ;; 11282esac 11283fi 11284{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11285echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11286with_gnu_ld=$lt_cv_prog_gnu_ld 11287 11288 11289 11290 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11291 # archiving commands below assume that GNU ld is being used. 11292 if test "$with_gnu_ld" = yes; then 11293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11294 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' 11295 11296 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11298 11299 # If archive_cmds runs LD, not CC, wlarc should be empty 11300 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11301 # investigate it a little bit more. (MM) 11302 wlarc='${wl}' 11303 11304 # ancient GNU ld didn't support --whole-archive et. al. 11305 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11306 grep 'no-whole-archive' > /dev/null; then 11307 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11308 else 11309 whole_archive_flag_spec_CXX= 11310 fi 11311 else 11312 with_gnu_ld=no 11313 wlarc= 11314 11315 # A generic and very simple default shared library creation 11316 # command for GNU C++ for the case where it uses the native 11317 # linker, instead of GNU ld. If possible, this setting should 11318 # overridden to take advantage of the native linker features on 11319 # the platform it is being used on. 11320 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11321 fi 11322 11323 # Commands to make compiler produce verbose output that lists 11324 # what "hidden" libraries, object files and flags are used when 11325 # linking a shared library. 11326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11327 11328else 11329 GXX=no 11330 with_gnu_ld=no 11331 wlarc= 11332fi 11333 11334# PORTME: fill in a description of your system's C++ link characteristics 11335{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11336echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11337ld_shlibs_CXX=yes 11338case $host_os in 11339 aix3*) 11340 # FIXME: insert proper C++ library support 11341 ld_shlibs_CXX=no 11342 ;; 11343 aix4* | aix5*) 11344 if test "$host_cpu" = ia64; then 11345 # On IA64, the linker does run time linking by default, so we don't 11346 # have to do anything special. 11347 aix_use_runtimelinking=no 11348 exp_sym_flag='-Bexport' 11349 no_entry_flag="" 11350 else 11351 aix_use_runtimelinking=no 11352 11353 # Test if we are trying to use run time linking or normal 11354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11355 # need to do runtime linking. 11356 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11357 for ld_flag in $LDFLAGS; do 11358 case $ld_flag in 11359 *-brtl*) 11360 aix_use_runtimelinking=yes 11361 break 11362 ;; 11363 esac 11364 done 11365 ;; 11366 esac 11367 11368 exp_sym_flag='-bexport' 11369 no_entry_flag='-bnoentry' 11370 fi 11371 11372 # When large executables or shared objects are built, AIX ld can 11373 # have problems creating the table of contents. If linking a library 11374 # or program results in "error TOC overflow" add -mminimal-toc to 11375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11377 11378 archive_cmds_CXX='' 11379 hardcode_direct_CXX=yes 11380 hardcode_libdir_separator_CXX=':' 11381 link_all_deplibs_CXX=yes 11382 11383 if test "$GXX" = yes; then 11384 case $host_os in aix4.[012]|aix4.[012].*) 11385 # We only want to do this on AIX 4.2 and lower, the check 11386 # below for broken collect2 doesn't work under 4.3+ 11387 collect2name=`${CC} -print-prog-name=collect2` 11388 if test -f "$collect2name" && \ 11389 strings "$collect2name" | grep resolve_lib_name >/dev/null 11390 then 11391 # We have reworked collect2 11392 hardcode_direct_CXX=yes 11393 else 11394 # We have old collect2 11395 hardcode_direct_CXX=unsupported 11396 # It fails to find uninstalled libraries when the uninstalled 11397 # path is not listed in the libpath. Setting hardcode_minus_L 11398 # to unsupported forces relinking 11399 hardcode_minus_L_CXX=yes 11400 hardcode_libdir_flag_spec_CXX='-L$libdir' 11401 hardcode_libdir_separator_CXX= 11402 fi 11403 ;; 11404 esac 11405 shared_flag='-shared' 11406 if test "$aix_use_runtimelinking" = yes; then 11407 shared_flag="$shared_flag "'${wl}-G' 11408 fi 11409 else 11410 # not using gcc 11411 if test "$host_cpu" = ia64; then 11412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11413 # chokes on -Wl,-G. The following line is correct: 11414 shared_flag='-G' 11415 else 11416 if test "$aix_use_runtimelinking" = yes; then 11417 shared_flag='${wl}-G' 11418 else 11419 shared_flag='${wl}-bM:SRE' 11420 fi 11421 fi 11422 fi 11423 11424 # It seems that -bexpall does not export symbols beginning with 11425 # underscore (_), so it is better to generate a list of symbols to export. 11426 always_export_symbols_CXX=yes 11427 if test "$aix_use_runtimelinking" = yes; then 11428 # Warning - without using the other runtime loading flags (-brtl), 11429 # -berok will link without error, but may produce a broken library. 11430 allow_undefined_flag_CXX='-berok' 11431 # Determine the default libpath from the value encoded in an empty executable. 11432 cat >conftest.$ac_ext <<_ACEOF 11433/* confdefs.h. */ 11434_ACEOF 11435cat confdefs.h >>conftest.$ac_ext 11436cat >>conftest.$ac_ext <<_ACEOF 11437/* end confdefs.h. */ 11438 11439int 11440main () 11441{ 11442 11443 ; 11444 return 0; 11445} 11446_ACEOF 11447rm -f conftest.$ac_objext conftest$ac_exeext 11448if { (ac_try="$ac_link" 11449case "(($ac_try" in 11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11451 *) ac_try_echo=$ac_try;; 11452esac 11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11454 (eval "$ac_link") 2>conftest.er1 11455 ac_status=$? 11456 grep -v '^ *+' conftest.er1 >conftest.err 11457 rm -f conftest.er1 11458 cat conftest.err >&5 11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11460 (exit $ac_status); } && 11461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11462 { (case "(($ac_try" in 11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11464 *) ac_try_echo=$ac_try;; 11465esac 11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11467 (eval "$ac_try") 2>&5 11468 ac_status=$? 11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11470 (exit $ac_status); }; } && 11471 { ac_try='test -s conftest$ac_exeext' 11472 { (case "(($ac_try" in 11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11474 *) ac_try_echo=$ac_try;; 11475esac 11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11477 (eval "$ac_try") 2>&5 11478 ac_status=$? 11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11480 (exit $ac_status); }; }; then 11481 11482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11483}'` 11484# Check for a 64-bit object if we didn't find anything. 11485if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11486}'`; fi 11487else 11488 echo "$as_me: failed program was:" >&5 11489sed 's/^/| /' conftest.$ac_ext >&5 11490 11491 11492fi 11493 11494rm -f conftest.err conftest.$ac_objext \ 11495 conftest$ac_exeext conftest.$ac_ext 11496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11497 11498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11499 11500 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" 11501 else 11502 if test "$host_cpu" = ia64; then 11503 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11504 allow_undefined_flag_CXX="-z nodefs" 11505 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" 11506 else 11507 # Determine the default libpath from the value encoded in an empty executable. 11508 cat >conftest.$ac_ext <<_ACEOF 11509/* confdefs.h. */ 11510_ACEOF 11511cat confdefs.h >>conftest.$ac_ext 11512cat >>conftest.$ac_ext <<_ACEOF 11513/* end confdefs.h. */ 11514 11515int 11516main () 11517{ 11518 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523rm -f conftest.$ac_objext conftest$ac_exeext 11524if { (ac_try="$ac_link" 11525case "(($ac_try" in 11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11527 *) ac_try_echo=$ac_try;; 11528esac 11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11530 (eval "$ac_link") 2>conftest.er1 11531 ac_status=$? 11532 grep -v '^ *+' conftest.er1 >conftest.err 11533 rm -f conftest.er1 11534 cat conftest.err >&5 11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11536 (exit $ac_status); } && 11537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11538 { (case "(($ac_try" in 11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11540 *) ac_try_echo=$ac_try;; 11541esac 11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11543 (eval "$ac_try") 2>&5 11544 ac_status=$? 11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11546 (exit $ac_status); }; } && 11547 { ac_try='test -s conftest$ac_exeext' 11548 { (case "(($ac_try" in 11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11550 *) ac_try_echo=$ac_try;; 11551esac 11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11553 (eval "$ac_try") 2>&5 11554 ac_status=$? 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11556 (exit $ac_status); }; }; then 11557 11558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11559}'` 11560# Check for a 64-bit object if we didn't find anything. 11561if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11562}'`; fi 11563else 11564 echo "$as_me: failed program was:" >&5 11565sed 's/^/| /' conftest.$ac_ext >&5 11566 11567 11568fi 11569 11570rm -f conftest.err conftest.$ac_objext \ 11571 conftest$ac_exeext conftest.$ac_ext 11572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11573 11574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11575 # Warning - without using the other run time loading flags, 11576 # -berok will link without error, but may produce a broken library. 11577 no_undefined_flag_CXX=' ${wl}-bernotok' 11578 allow_undefined_flag_CXX=' ${wl}-berok' 11579 # Exported symbols can be pulled into shared objects from archives 11580 whole_archive_flag_spec_CXX='$convenience' 11581 archive_cmds_need_lc_CXX=yes 11582 # This is similar to how AIX traditionally builds its shared libraries. 11583 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' 11584 fi 11585 fi 11586 ;; 11587 11588 beos*) 11589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11590 allow_undefined_flag_CXX=unsupported 11591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11592 # support --undefined. This deserves some investigation. FIXME 11593 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11594 else 11595 ld_shlibs_CXX=no 11596 fi 11597 ;; 11598 11599 chorus*) 11600 case $cc_basename in 11601 *) 11602 # FIXME: insert proper C++ library support 11603 ld_shlibs_CXX=no 11604 ;; 11605 esac 11606 ;; 11607 11608 cygwin* | mingw* | pw32*) 11609 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11610 # as there is no search path for DLLs. 11611 hardcode_libdir_flag_spec_CXX='-L$libdir' 11612 allow_undefined_flag_CXX=unsupported 11613 always_export_symbols_CXX=no 11614 enable_shared_with_static_runtimes_CXX=yes 11615 11616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11617 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' 11618 # If the export-symbols file already is a .def file (1st line 11619 # is EXPORTS), use it as is; otherwise, prepend... 11620 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11621 cp $export_symbols $output_objdir/$soname.def; 11622 else 11623 echo EXPORTS > $output_objdir/$soname.def; 11624 cat $export_symbols >> $output_objdir/$soname.def; 11625 fi~ 11626 $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' 11627 else 11628 ld_shlibs_CXX=no 11629 fi 11630 ;; 11631 darwin* | rhapsody*) 11632 case $host_os in 11633 rhapsody* | darwin1.[012]) 11634 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11635 ;; 11636 *) # Darwin 1.3 on 11637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11639 else 11640 case ${MACOSX_DEPLOYMENT_TARGET} in 11641 10.[012]) 11642 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11643 ;; 11644 10.*) 11645 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11646 ;; 11647 esac 11648 fi 11649 ;; 11650 esac 11651 archive_cmds_need_lc_CXX=no 11652 hardcode_direct_CXX=no 11653 hardcode_automatic_CXX=yes 11654 hardcode_shlibpath_var_CXX=unsupported 11655 whole_archive_flag_spec_CXX='' 11656 link_all_deplibs_CXX=yes 11657 11658 if test "$GXX" = yes ; then 11659 lt_int_apple_cc_single_mod=no 11660 output_verbose_link_cmd='echo' 11661 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11662 lt_int_apple_cc_single_mod=yes 11663 fi 11664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11665 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11666 else 11667 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' 11668 fi 11669 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11671 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11672 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}' 11673 else 11674 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}' 11675 fi 11676 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}' 11677 else 11678 case $cc_basename in 11679 xlc*) 11680 output_verbose_link_cmd='echo' 11681 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11682 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11684 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11685 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}' 11686 ;; 11687 *) 11688 ld_shlibs_CXX=no 11689 ;; 11690 esac 11691 fi 11692 ;; 11693 11694 dgux*) 11695 case $cc_basename in 11696 ec++*) 11697 # FIXME: insert proper C++ library support 11698 ld_shlibs_CXX=no 11699 ;; 11700 ghcx*) 11701 # Green Hills C++ Compiler 11702 # FIXME: insert proper C++ library support 11703 ld_shlibs_CXX=no 11704 ;; 11705 *) 11706 # FIXME: insert proper C++ library support 11707 ld_shlibs_CXX=no 11708 ;; 11709 esac 11710 ;; 11711 freebsd[12]*) 11712 # C++ shared libraries reported to be fairly broken before switch to ELF 11713 ld_shlibs_CXX=no 11714 ;; 11715 freebsd-elf*) 11716 archive_cmds_need_lc_CXX=no 11717 ;; 11718 freebsd* | dragonfly*) 11719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11720 # conventions 11721 ld_shlibs_CXX=yes 11722 ;; 11723 gnu*) 11724 ;; 11725 hpux9*) 11726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11727 hardcode_libdir_separator_CXX=: 11728 export_dynamic_flag_spec_CXX='${wl}-E' 11729 hardcode_direct_CXX=yes 11730 hardcode_minus_L_CXX=yes # Not in the search PATH, 11731 # but as the default 11732 # location of the library. 11733 11734 case $cc_basename in 11735 CC*) 11736 # FIXME: insert proper C++ library support 11737 ld_shlibs_CXX=no 11738 ;; 11739 aCC*) 11740 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' 11741 # Commands to make compiler produce verbose output that lists 11742 # what "hidden" libraries, object files and flags are used when 11743 # linking a shared library. 11744 # 11745 # There doesn't appear to be a way to prevent this compiler from 11746 # explicitly linking system object files so we need to strip them 11747 # from the output so that they don't get included in the library 11748 # dependencies. 11749 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' 11750 ;; 11751 *) 11752 if test "$GXX" = yes; then 11753 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' 11754 else 11755 # FIXME: insert proper C++ library support 11756 ld_shlibs_CXX=no 11757 fi 11758 ;; 11759 esac 11760 ;; 11761 hpux10*|hpux11*) 11762 if test $with_gnu_ld = no; then 11763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11764 hardcode_libdir_separator_CXX=: 11765 11766 case $host_cpu in 11767 hppa*64*|ia64*) 11768 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11769 ;; 11770 *) 11771 export_dynamic_flag_spec_CXX='${wl}-E' 11772 ;; 11773 esac 11774 fi 11775 case $host_cpu in 11776 hppa*64*|ia64*) 11777 hardcode_direct_CXX=no 11778 hardcode_shlibpath_var_CXX=no 11779 ;; 11780 *) 11781 hardcode_direct_CXX=yes 11782 hardcode_minus_L_CXX=yes # Not in the search PATH, 11783 # but as the default 11784 # location of the library. 11785 ;; 11786 esac 11787 11788 case $cc_basename in 11789 CC*) 11790 # FIXME: insert proper C++ library support 11791 ld_shlibs_CXX=no 11792 ;; 11793 aCC*) 11794 case $host_cpu in 11795 hppa*64*) 11796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11797 ;; 11798 ia64*) 11799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11800 ;; 11801 *) 11802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11803 ;; 11804 esac 11805 # Commands to make compiler produce verbose output that lists 11806 # what "hidden" libraries, object files and flags are used when 11807 # linking a shared library. 11808 # 11809 # There doesn't appear to be a way to prevent this compiler from 11810 # explicitly linking system object files so we need to strip them 11811 # from the output so that they don't get included in the library 11812 # dependencies. 11813 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' 11814 ;; 11815 *) 11816 if test "$GXX" = yes; then 11817 if test $with_gnu_ld = no; then 11818 case $host_cpu in 11819 hppa*64*) 11820 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11821 ;; 11822 ia64*) 11823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11824 ;; 11825 *) 11826 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' 11827 ;; 11828 esac 11829 fi 11830 else 11831 # FIXME: insert proper C++ library support 11832 ld_shlibs_CXX=no 11833 fi 11834 ;; 11835 esac 11836 ;; 11837 interix3*) 11838 hardcode_direct_CXX=no 11839 hardcode_shlibpath_var_CXX=no 11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11841 export_dynamic_flag_spec_CXX='${wl}-E' 11842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11843 # Instead, shared libraries are loaded at an image base (0x10000000 by 11844 # default) and relocated if they conflict, which is a slow very memory 11845 # consuming and fragmenting process. To avoid this, we pick a random, 11846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11847 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11848 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' 11849 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' 11850 ;; 11851 irix5* | irix6*) 11852 case $cc_basename in 11853 CC*) 11854 # SGI C++ 11855 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' 11856 11857 # Archives containing C++ object files must be created using 11858 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11859 # necessary to make sure instantiated templates are included 11860 # in the archive. 11861 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11862 ;; 11863 *) 11864 if test "$GXX" = yes; then 11865 if test "$with_gnu_ld" = no; then 11866 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' 11867 else 11868 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' 11869 fi 11870 fi 11871 link_all_deplibs_CXX=yes 11872 ;; 11873 esac 11874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11875 hardcode_libdir_separator_CXX=: 11876 ;; 11877 linux* | k*bsd*-gnu) 11878 case $cc_basename in 11879 KCC*) 11880 # Kuck and Associates, Inc. (KAI) C++ Compiler 11881 11882 # KCC will only create a shared library if the output file 11883 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11884 # to its proper name (with version) after linking. 11885 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' 11886 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' 11887 # Commands to make compiler produce verbose output that lists 11888 # what "hidden" libraries, object files and flags are used when 11889 # linking a shared library. 11890 # 11891 # There doesn't appear to be a way to prevent this compiler from 11892 # explicitly linking system object files so we need to strip them 11893 # from the output so that they don't get included in the library 11894 # dependencies. 11895 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' 11896 11897 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11899 11900 # Archives containing C++ object files must be created using 11901 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11902 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11903 ;; 11904 icpc*) 11905 # Intel C++ 11906 with_gnu_ld=yes 11907 # version 8.0 and above of icpc choke on multiply defined symbols 11908 # if we add $predep_objects and $postdep_objects, however 7.1 and 11909 # earlier do not add the objects themselves. 11910 case `$CC -V 2>&1` in 11911 *"Version 7."*) 11912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11913 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' 11914 ;; 11915 *) # Version 8.0 or newer 11916 tmp_idyn= 11917 case $host_cpu in 11918 ia64*) tmp_idyn=' -i_dynamic';; 11919 esac 11920 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11921 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' 11922 ;; 11923 esac 11924 archive_cmds_need_lc_CXX=no 11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11927 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11928 ;; 11929 pgCC*) 11930 # Portland Group C++ compiler 11931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11932 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' 11933 11934 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11936 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' 11937 ;; 11938 cxx*) 11939 # Compaq C++ 11940 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11941 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' 11942 11943 runpath_var=LD_RUN_PATH 11944 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11945 hardcode_libdir_separator_CXX=: 11946 11947 # Commands to make compiler produce verbose output that lists 11948 # what "hidden" libraries, object files and flags are used when 11949 # linking a shared library. 11950 # 11951 # There doesn't appear to be a way to prevent this compiler from 11952 # explicitly linking system object files so we need to strip them 11953 # from the output so that they don't get included in the library 11954 # dependencies. 11955 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' 11956 ;; 11957 esac 11958 ;; 11959 lynxos*) 11960 # FIXME: insert proper C++ library support 11961 ld_shlibs_CXX=no 11962 ;; 11963 m88k*) 11964 # FIXME: insert proper C++ library support 11965 ld_shlibs_CXX=no 11966 ;; 11967 mvs*) 11968 case $cc_basename in 11969 cxx*) 11970 # FIXME: insert proper C++ library support 11971 ld_shlibs_CXX=no 11972 ;; 11973 *) 11974 # FIXME: insert proper C++ library support 11975 ld_shlibs_CXX=no 11976 ;; 11977 esac 11978 ;; 11979 netbsd* | netbsdelf*-gnu) 11980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11982 wlarc= 11983 hardcode_libdir_flag_spec_CXX='-R$libdir' 11984 hardcode_direct_CXX=yes 11985 hardcode_shlibpath_var_CXX=no 11986 fi 11987 # Workaround some broken pre-1.5 toolchains 11988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11989 ;; 11990 openbsd2*) 11991 # C++ shared libraries are fairly broken 11992 ld_shlibs_CXX=no 11993 ;; 11994 openbsd*) 11995 hardcode_direct_CXX=yes 11996 hardcode_shlibpath_var_CXX=no 11997 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12000 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12001 export_dynamic_flag_spec_CXX='${wl}-E' 12002 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12003 fi 12004 output_verbose_link_cmd='echo' 12005 ;; 12006 osf3*) 12007 case $cc_basename in 12008 KCC*) 12009 # Kuck and Associates, Inc. (KAI) C++ Compiler 12010 12011 # KCC will only create a shared library if the output file 12012 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12013 # to its proper name (with version) after linking. 12014 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' 12015 12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12017 hardcode_libdir_separator_CXX=: 12018 12019 # Archives containing C++ object files must be created using 12020 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12022 12023 ;; 12024 RCC*) 12025 # Rational C++ 2.4.1 12026 # FIXME: insert proper C++ library support 12027 ld_shlibs_CXX=no 12028 ;; 12029 cxx*) 12030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12031 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' 12032 12033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12034 hardcode_libdir_separator_CXX=: 12035 12036 # Commands to make compiler produce verbose output that lists 12037 # what "hidden" libraries, object files and flags are used when 12038 # linking a shared library. 12039 # 12040 # There doesn't appear to be a way to prevent this compiler from 12041 # explicitly linking system object files so we need to strip them 12042 # from the output so that they don't get included in the library 12043 # dependencies. 12044 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' 12045 ;; 12046 *) 12047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12049 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' 12050 12051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12052 hardcode_libdir_separator_CXX=: 12053 12054 # Commands to make compiler produce verbose output that lists 12055 # what "hidden" libraries, object files and flags are used when 12056 # linking a shared library. 12057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12058 12059 else 12060 # FIXME: insert proper C++ library support 12061 ld_shlibs_CXX=no 12062 fi 12063 ;; 12064 esac 12065 ;; 12066 osf4* | osf5*) 12067 case $cc_basename in 12068 KCC*) 12069 # Kuck and Associates, Inc. (KAI) C++ Compiler 12070 12071 # KCC will only create a shared library if the output file 12072 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12073 # to its proper name (with version) after linking. 12074 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' 12075 12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12077 hardcode_libdir_separator_CXX=: 12078 12079 # Archives containing C++ object files must be created using 12080 # the KAI C++ compiler. 12081 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12082 ;; 12083 RCC*) 12084 # Rational C++ 2.4.1 12085 # FIXME: insert proper C++ library support 12086 ld_shlibs_CXX=no 12087 ;; 12088 cxx*) 12089 allow_undefined_flag_CXX=' -expect_unresolved \*' 12090 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' 12091 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12092 echo "-hidden">> $lib.exp~ 12093 $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~ 12094 $rm $lib.exp' 12095 12096 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12097 hardcode_libdir_separator_CXX=: 12098 12099 # Commands to make compiler produce verbose output that lists 12100 # what "hidden" libraries, object files and flags are used when 12101 # linking a shared library. 12102 # 12103 # There doesn't appear to be a way to prevent this compiler from 12104 # explicitly linking system object files so we need to strip them 12105 # from the output so that they don't get included in the library 12106 # dependencies. 12107 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' 12108 ;; 12109 *) 12110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12112 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' 12113 12114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12115 hardcode_libdir_separator_CXX=: 12116 12117 # Commands to make compiler produce verbose output that lists 12118 # what "hidden" libraries, object files and flags are used when 12119 # linking a shared library. 12120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12121 12122 else 12123 # FIXME: insert proper C++ library support 12124 ld_shlibs_CXX=no 12125 fi 12126 ;; 12127 esac 12128 ;; 12129 psos*) 12130 # FIXME: insert proper C++ library support 12131 ld_shlibs_CXX=no 12132 ;; 12133 sunos4*) 12134 case $cc_basename in 12135 CC*) 12136 # Sun C++ 4.x 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 ;; 12140 lcc*) 12141 # Lucid 12142 # FIXME: insert proper C++ library support 12143 ld_shlibs_CXX=no 12144 ;; 12145 *) 12146 # FIXME: insert proper C++ library support 12147 ld_shlibs_CXX=no 12148 ;; 12149 esac 12150 ;; 12151 solaris*) 12152 case $cc_basename in 12153 CC*) 12154 # Sun C++ 4.2, 5.x and Centerline C++ 12155 archive_cmds_need_lc_CXX=yes 12156 no_undefined_flag_CXX=' -zdefs' 12157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12159 $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' 12160 12161 hardcode_libdir_flag_spec_CXX='-R$libdir' 12162 hardcode_shlibpath_var_CXX=no 12163 case $host_os in 12164 solaris2.[0-5] | solaris2.[0-5].*) ;; 12165 *) 12166 # The C++ compiler is used as linker so we must use $wl 12167 # flag to pass the commands to the underlying system 12168 # linker. We must also pass each convience library through 12169 # to the system linker between allextract/defaultextract. 12170 # The C++ compiler will combine linker options so we 12171 # cannot just pass the convience library names through 12172 # without $wl. 12173 # Supported since Solaris 2.6 (maybe 2.5.1?) 12174 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12175 ;; 12176 esac 12177 link_all_deplibs_CXX=yes 12178 12179 output_verbose_link_cmd='echo' 12180 12181 # Archives containing C++ object files must be created using 12182 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12183 # necessary to make sure instantiated templates are included 12184 # in the archive. 12185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12186 ;; 12187 gcx*) 12188 # Green Hills C++ Compiler 12189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12190 12191 # The C++ compiler must be used to create the archive. 12192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12193 ;; 12194 *) 12195 # GNU C++ compiler with Solaris linker 12196 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12197 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12198 if $CC --version | grep -v '^2\.7' > /dev/null; then 12199 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12200 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12201 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12202 12203 # Commands to make compiler produce verbose output that lists 12204 # what "hidden" libraries, object files and flags are used when 12205 # linking a shared library. 12206 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12207 else 12208 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12209 # platform. 12210 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12211 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12212 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12213 12214 # Commands to make compiler produce verbose output that lists 12215 # what "hidden" libraries, object files and flags are used when 12216 # linking a shared library. 12217 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12218 fi 12219 12220 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12221 fi 12222 ;; 12223 esac 12224 ;; 12225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12226 no_undefined_flag_CXX='${wl}-z,text' 12227 archive_cmds_need_lc_CXX=no 12228 hardcode_shlibpath_var_CXX=no 12229 runpath_var='LD_RUN_PATH' 12230 12231 case $cc_basename in 12232 CC*) 12233 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12235 ;; 12236 *) 12237 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12239 ;; 12240 esac 12241 ;; 12242 sysv5* | sco3.2v5* | sco5v6*) 12243 # Note: We can NOT use -z defs as we might desire, because we do not 12244 # link with -lc, and that would cause any symbols used from libc to 12245 # always be unresolved, which means just about no library would 12246 # ever link correctly. If we're not using GNU ld we use -z text 12247 # though, which does catch some bad symbols but isn't as heavy-handed 12248 # as -z defs. 12249 # For security reasons, it is highly recommended that you always 12250 # use absolute paths for naming shared libraries, and exclude the 12251 # DT_RUNPATH tag from executables and libraries. But doing so 12252 # requires that you compile everything twice, which is a pain. 12253 # So that behaviour is only enabled if SCOABSPATH is set to a 12254 # non-empty value in the environment. Most likely only useful for 12255 # creating official distributions of packages. 12256 # This is a hack until libtool officially supports absolute path 12257 # names for shared libraries. 12258 no_undefined_flag_CXX='${wl}-z,text' 12259 allow_undefined_flag_CXX='${wl}-z,nodefs' 12260 archive_cmds_need_lc_CXX=no 12261 hardcode_shlibpath_var_CXX=no 12262 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12263 hardcode_libdir_separator_CXX=':' 12264 link_all_deplibs_CXX=yes 12265 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12266 runpath_var='LD_RUN_PATH' 12267 12268 case $cc_basename in 12269 CC*) 12270 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12271 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12272 ;; 12273 *) 12274 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12276 ;; 12277 esac 12278 ;; 12279 tandem*) 12280 case $cc_basename in 12281 NCC*) 12282 # NonStop-UX NCC 3.20 12283 # FIXME: insert proper C++ library support 12284 ld_shlibs_CXX=no 12285 ;; 12286 *) 12287 # FIXME: insert proper C++ library support 12288 ld_shlibs_CXX=no 12289 ;; 12290 esac 12291 ;; 12292 vxworks*) 12293 # FIXME: insert proper C++ library support 12294 ld_shlibs_CXX=no 12295 ;; 12296 *) 12297 # FIXME: insert proper C++ library support 12298 ld_shlibs_CXX=no 12299 ;; 12300esac 12301{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12302echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12303test "$ld_shlibs_CXX" = no && can_build_shared=no 12304 12305GCC_CXX="$GXX" 12306LD_CXX="$LD" 12307 12308## CAVEAT EMPTOR: 12309## There is no encapsulation within the following macros, do not change 12310## the running order or otherwise move them around unless you know exactly 12311## what you are doing... 12312 12313cat > conftest.$ac_ext <<EOF 12314class Foo 12315{ 12316public: 12317 Foo (void) { a = 0; } 12318private: 12319 int a; 12320}; 12321EOF 12322 12323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12324 (eval $ac_compile) 2>&5 12325 ac_status=$? 12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12327 (exit $ac_status); }; then 12328 # Parse the compiler output and extract the necessary 12329 # objects, libraries and library flags. 12330 12331 # Sentinel used to keep track of whether or not we are before 12332 # the conftest object file. 12333 pre_test_object_deps_done=no 12334 12335 # The `*' in the case matches for architectures that use `case' in 12336 # $output_verbose_cmd can trigger glob expansion during the loop 12337 # eval without this substitution. 12338 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12339 12340 for p in `eval $output_verbose_link_cmd`; do 12341 case $p in 12342 12343 -L* | -R* | -l*) 12344 # Some compilers place space between "-{L,R}" and the path. 12345 # Remove the space. 12346 if test $p = "-L" \ 12347 || test $p = "-R"; then 12348 prev=$p 12349 continue 12350 else 12351 prev= 12352 fi 12353 12354 if test "$pre_test_object_deps_done" = no; then 12355 case $p in 12356 -L* | -R*) 12357 # Internal compiler library paths should come after those 12358 # provided the user. The postdeps already come after the 12359 # user supplied libs so there is no need to process them. 12360 if test -z "$compiler_lib_search_path_CXX"; then 12361 compiler_lib_search_path_CXX="${prev}${p}" 12362 else 12363 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12364 fi 12365 ;; 12366 # The "-l" case would never come before the object being 12367 # linked, so don't bother handling this case. 12368 esac 12369 else 12370 if test -z "$postdeps_CXX"; then 12371 postdeps_CXX="${prev}${p}" 12372 else 12373 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12374 fi 12375 fi 12376 ;; 12377 12378 *.$objext) 12379 # This assumes that the test object file only shows up 12380 # once in the compiler output. 12381 if test "$p" = "conftest.$objext"; then 12382 pre_test_object_deps_done=yes 12383 continue 12384 fi 12385 12386 if test "$pre_test_object_deps_done" = no; then 12387 if test -z "$predep_objects_CXX"; then 12388 predep_objects_CXX="$p" 12389 else 12390 predep_objects_CXX="$predep_objects_CXX $p" 12391 fi 12392 else 12393 if test -z "$postdep_objects_CXX"; then 12394 postdep_objects_CXX="$p" 12395 else 12396 postdep_objects_CXX="$postdep_objects_CXX $p" 12397 fi 12398 fi 12399 ;; 12400 12401 *) ;; # Ignore the rest. 12402 12403 esac 12404 done 12405 12406 # Clean up. 12407 rm -f a.out a.exe 12408else 12409 echo "libtool.m4: error: problem compiling CXX test program" 12410fi 12411 12412$rm -f confest.$objext 12413 12414# PORTME: override above test on systems where it is broken 12415case $host_os in 12416interix3*) 12417 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12418 # hack all around it, let's just trust "g++" to DTRT. 12419 predep_objects_CXX= 12420 postdep_objects_CXX= 12421 postdeps_CXX= 12422 ;; 12423 12424solaris*) 12425 case $cc_basename in 12426 CC*) 12427 # Adding this requires a known-good setup of shared libraries for 12428 # Sun compiler versions before 5.6, else PIC objects from an old 12429 # archive will be linked into the output, leading to subtle bugs. 12430 postdeps_CXX='-lCstd -lCrun' 12431 ;; 12432 esac 12433 ;; 12434esac 12435 12436 12437case " $postdeps_CXX " in 12438*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12439esac 12440 12441lt_prog_compiler_wl_CXX= 12442lt_prog_compiler_pic_CXX= 12443lt_prog_compiler_static_CXX= 12444 12445{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12446echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12447 12448 # C++ specific cases for pic, static, wl, etc. 12449 if test "$GXX" = yes; then 12450 lt_prog_compiler_wl_CXX='-Wl,' 12451 lt_prog_compiler_static_CXX='-static' 12452 12453 case $host_os in 12454 aix*) 12455 # All AIX code is PIC. 12456 if test "$host_cpu" = ia64; then 12457 # AIX 5 now supports IA64 processor 12458 lt_prog_compiler_static_CXX='-Bstatic' 12459 fi 12460 ;; 12461 amigaos*) 12462 # FIXME: we need at least 68020 code to build shared libraries, but 12463 # adding the `-m68020' flag to GCC prevents building anything better, 12464 # like `-m68040'. 12465 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12466 ;; 12467 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12468 # PIC is the default for these OSes. 12469 ;; 12470 mingw* | os2* | pw32*) 12471 # This hack is so that the source file can tell whether it is being 12472 # built for inclusion in a dll (and should export symbols for example). 12473 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12474 ;; 12475 darwin* | rhapsody*) 12476 # PIC is the default on this platform 12477 # Common symbols not allowed in MH_DYLIB files 12478 lt_prog_compiler_pic_CXX='-fno-common' 12479 ;; 12480 *djgpp*) 12481 # DJGPP does not support shared libraries at all 12482 lt_prog_compiler_pic_CXX= 12483 ;; 12484 interix3*) 12485 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12486 # Instead, we relocate shared libraries at runtime. 12487 ;; 12488 sysv4*MP*) 12489 if test -d /usr/nec; then 12490 lt_prog_compiler_pic_CXX=-Kconform_pic 12491 fi 12492 ;; 12493 hpux*) 12494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12495 # not for PA HP-UX. 12496 case $host_cpu in 12497 hppa*64*|ia64*) 12498 ;; 12499 *) 12500 lt_prog_compiler_pic_CXX='-fPIC' 12501 ;; 12502 esac 12503 ;; 12504 *) 12505 lt_prog_compiler_pic_CXX='-fPIC' 12506 ;; 12507 esac 12508 else 12509 case $host_os in 12510 aix4* | aix5*) 12511 # All AIX code is PIC. 12512 if test "$host_cpu" = ia64; then 12513 # AIX 5 now supports IA64 processor 12514 lt_prog_compiler_static_CXX='-Bstatic' 12515 else 12516 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12517 fi 12518 ;; 12519 chorus*) 12520 case $cc_basename in 12521 cxch68*) 12522 # Green Hills C++ Compiler 12523 # _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" 12524 ;; 12525 esac 12526 ;; 12527 darwin*) 12528 # PIC is the default on this platform 12529 # Common symbols not allowed in MH_DYLIB files 12530 case $cc_basename in 12531 xlc*) 12532 lt_prog_compiler_pic_CXX='-qnocommon' 12533 lt_prog_compiler_wl_CXX='-Wl,' 12534 ;; 12535 esac 12536 ;; 12537 dgux*) 12538 case $cc_basename in 12539 ec++*) 12540 lt_prog_compiler_pic_CXX='-KPIC' 12541 ;; 12542 ghcx*) 12543 # Green Hills C++ Compiler 12544 lt_prog_compiler_pic_CXX='-pic' 12545 ;; 12546 *) 12547 ;; 12548 esac 12549 ;; 12550 freebsd* | dragonfly*) 12551 # FreeBSD uses GNU C++ 12552 ;; 12553 hpux9* | hpux10* | hpux11*) 12554 case $cc_basename in 12555 CC*) 12556 lt_prog_compiler_wl_CXX='-Wl,' 12557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12558 if test "$host_cpu" != ia64; then 12559 lt_prog_compiler_pic_CXX='+Z' 12560 fi 12561 ;; 12562 aCC*) 12563 lt_prog_compiler_wl_CXX='-Wl,' 12564 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12565 case $host_cpu in 12566 hppa*64*|ia64*) 12567 # +Z the default 12568 ;; 12569 *) 12570 lt_prog_compiler_pic_CXX='+Z' 12571 ;; 12572 esac 12573 ;; 12574 *) 12575 ;; 12576 esac 12577 ;; 12578 interix*) 12579 # This is c89, which is MS Visual C++ (no shared libs) 12580 # Anyone wants to do a port? 12581 ;; 12582 irix5* | irix6* | nonstopux*) 12583 case $cc_basename in 12584 CC*) 12585 lt_prog_compiler_wl_CXX='-Wl,' 12586 lt_prog_compiler_static_CXX='-non_shared' 12587 # CC pic flag -KPIC is the default. 12588 ;; 12589 *) 12590 ;; 12591 esac 12592 ;; 12593 linux* | k*bsd*-gnu) 12594 case $cc_basename in 12595 KCC*) 12596 # KAI C++ Compiler 12597 lt_prog_compiler_wl_CXX='--backend -Wl,' 12598 lt_prog_compiler_pic_CXX='-fPIC' 12599 ;; 12600 icpc* | ecpc*) 12601 # Intel C++ 12602 lt_prog_compiler_wl_CXX='-Wl,' 12603 lt_prog_compiler_pic_CXX='-KPIC' 12604 lt_prog_compiler_static_CXX='-static' 12605 ;; 12606 pgCC*) 12607 # Portland Group C++ compiler. 12608 lt_prog_compiler_wl_CXX='-Wl,' 12609 lt_prog_compiler_pic_CXX='-fpic' 12610 lt_prog_compiler_static_CXX='-Bstatic' 12611 ;; 12612 cxx*) 12613 # Compaq C++ 12614 # Make sure the PIC flag is empty. It appears that all Alpha 12615 # Linux and Compaq Tru64 Unix objects are PIC. 12616 lt_prog_compiler_pic_CXX= 12617 lt_prog_compiler_static_CXX='-non_shared' 12618 ;; 12619 *) 12620 ;; 12621 esac 12622 ;; 12623 lynxos*) 12624 ;; 12625 m88k*) 12626 ;; 12627 mvs*) 12628 case $cc_basename in 12629 cxx*) 12630 lt_prog_compiler_pic_CXX='-W c,exportall' 12631 ;; 12632 *) 12633 ;; 12634 esac 12635 ;; 12636 netbsd* | netbsdelf*-gnu) 12637 ;; 12638 osf3* | osf4* | osf5*) 12639 case $cc_basename in 12640 KCC*) 12641 lt_prog_compiler_wl_CXX='--backend -Wl,' 12642 ;; 12643 RCC*) 12644 # Rational C++ 2.4.1 12645 lt_prog_compiler_pic_CXX='-pic' 12646 ;; 12647 cxx*) 12648 # Digital/Compaq C++ 12649 lt_prog_compiler_wl_CXX='-Wl,' 12650 # Make sure the PIC flag is empty. It appears that all Alpha 12651 # Linux and Compaq Tru64 Unix objects are PIC. 12652 lt_prog_compiler_pic_CXX= 12653 lt_prog_compiler_static_CXX='-non_shared' 12654 ;; 12655 *) 12656 ;; 12657 esac 12658 ;; 12659 psos*) 12660 ;; 12661 solaris*) 12662 case $cc_basename in 12663 CC*) 12664 # Sun C++ 4.2, 5.x and Centerline C++ 12665 lt_prog_compiler_pic_CXX='-KPIC' 12666 lt_prog_compiler_static_CXX='-Bstatic' 12667 lt_prog_compiler_wl_CXX='-Qoption ld ' 12668 ;; 12669 gcx*) 12670 # Green Hills C++ Compiler 12671 lt_prog_compiler_pic_CXX='-PIC' 12672 ;; 12673 *) 12674 ;; 12675 esac 12676 ;; 12677 sunos4*) 12678 case $cc_basename in 12679 CC*) 12680 # Sun C++ 4.x 12681 lt_prog_compiler_pic_CXX='-pic' 12682 lt_prog_compiler_static_CXX='-Bstatic' 12683 ;; 12684 lcc*) 12685 # Lucid 12686 lt_prog_compiler_pic_CXX='-pic' 12687 ;; 12688 *) 12689 ;; 12690 esac 12691 ;; 12692 tandem*) 12693 case $cc_basename in 12694 NCC*) 12695 # NonStop-UX NCC 3.20 12696 lt_prog_compiler_pic_CXX='-KPIC' 12697 ;; 12698 *) 12699 ;; 12700 esac 12701 ;; 12702 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12703 case $cc_basename in 12704 CC*) 12705 lt_prog_compiler_wl_CXX='-Wl,' 12706 lt_prog_compiler_pic_CXX='-KPIC' 12707 lt_prog_compiler_static_CXX='-Bstatic' 12708 ;; 12709 esac 12710 ;; 12711 vxworks*) 12712 ;; 12713 *) 12714 lt_prog_compiler_can_build_shared_CXX=no 12715 ;; 12716 esac 12717 fi 12718 12719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12720echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12721 12722# 12723# Check to make sure the PIC flag actually works. 12724# 12725if test -n "$lt_prog_compiler_pic_CXX"; then 12726 12727{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12728echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12729if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12730 echo $ECHO_N "(cached) $ECHO_C" >&6 12731else 12732 lt_prog_compiler_pic_works_CXX=no 12733 ac_outfile=conftest.$ac_objext 12734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12735 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12736 # Insert the option either (1) after the last *FLAGS variable, or 12737 # (2) before a word containing "conftest.", or (3) at the end. 12738 # Note that $ac_compile itself does not contain backslashes and begins 12739 # with a dollar sign (not a hyphen), so the echo should work correctly. 12740 # The option is referenced via a variable to avoid confusing sed. 12741 lt_compile=`echo "$ac_compile" | $SED \ 12742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12744 -e 's:$: $lt_compiler_flag:'` 12745 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12746 (eval "$lt_compile" 2>conftest.err) 12747 ac_status=$? 12748 cat conftest.err >&5 12749 echo "$as_me:__oline__: \$? = $ac_status" >&5 12750 if (exit $ac_status) && test -s "$ac_outfile"; then 12751 # The compiler can only warn and ignore the option if not recognized 12752 # So say no if there are warnings other than the usual output. 12753 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12756 lt_prog_compiler_pic_works_CXX=yes 12757 fi 12758 fi 12759 $rm conftest* 12760 12761fi 12762{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12763echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12764 12765if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12766 case $lt_prog_compiler_pic_CXX in 12767 "" | " "*) ;; 12768 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12769 esac 12770else 12771 lt_prog_compiler_pic_CXX= 12772 lt_prog_compiler_can_build_shared_CXX=no 12773fi 12774 12775fi 12776case $host_os in 12777 # For platforms which do not support PIC, -DPIC is meaningless: 12778 *djgpp*) 12779 lt_prog_compiler_pic_CXX= 12780 ;; 12781 *) 12782 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12783 ;; 12784esac 12785 12786# 12787# Check to make sure the static flag actually works. 12788# 12789wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12790{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12791echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12792if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12793 echo $ECHO_N "(cached) $ECHO_C" >&6 12794else 12795 lt_prog_compiler_static_works_CXX=no 12796 save_LDFLAGS="$LDFLAGS" 12797 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12798 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12799 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12800 # The linker can only warn and ignore the option if not recognized 12801 # So say no if there are warnings 12802 if test -s conftest.err; then 12803 # Append any errors to the config.log. 12804 cat conftest.err 1>&5 12805 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12807 if diff conftest.exp conftest.er2 >/dev/null; then 12808 lt_prog_compiler_static_works_CXX=yes 12809 fi 12810 else 12811 lt_prog_compiler_static_works_CXX=yes 12812 fi 12813 fi 12814 $rm conftest* 12815 LDFLAGS="$save_LDFLAGS" 12816 12817fi 12818{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12819echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12820 12821if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12822 : 12823else 12824 lt_prog_compiler_static_CXX= 12825fi 12826 12827 12828{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12830if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12831 echo $ECHO_N "(cached) $ECHO_C" >&6 12832else 12833 lt_cv_prog_compiler_c_o_CXX=no 12834 $rm -r conftest 2>/dev/null 12835 mkdir conftest 12836 cd conftest 12837 mkdir out 12838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12839 12840 lt_compiler_flag="-o out/conftest2.$ac_objext" 12841 # Insert the option either (1) after the last *FLAGS variable, or 12842 # (2) before a word containing "conftest.", or (3) at the end. 12843 # Note that $ac_compile itself does not contain backslashes and begins 12844 # with a dollar sign (not a hyphen), so the echo should work correctly. 12845 lt_compile=`echo "$ac_compile" | $SED \ 12846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12848 -e 's:$: $lt_compiler_flag:'` 12849 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12850 (eval "$lt_compile" 2>out/conftest.err) 12851 ac_status=$? 12852 cat out/conftest.err >&5 12853 echo "$as_me:__oline__: \$? = $ac_status" >&5 12854 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12855 then 12856 # The compiler can only warn and ignore the option if not recognized 12857 # So say no if there are warnings 12858 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12861 lt_cv_prog_compiler_c_o_CXX=yes 12862 fi 12863 fi 12864 chmod u+w . 2>&5 12865 $rm conftest* 12866 # SGI C++ compiler will create directory out/ii_files/ for 12867 # template instantiation 12868 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12869 $rm out/* && rmdir out 12870 cd .. 12871 rmdir conftest 12872 $rm conftest* 12873 12874fi 12875{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12876echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12877 12878 12879hard_links="nottested" 12880if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12881 # do not overwrite the value of need_locks provided by the user 12882 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12883echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12884 hard_links=yes 12885 $rm conftest* 12886 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12887 touch conftest.a 12888 ln conftest.a conftest.b 2>&5 || hard_links=no 12889 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12890 { echo "$as_me:$LINENO: result: $hard_links" >&5 12891echo "${ECHO_T}$hard_links" >&6; } 12892 if test "$hard_links" = no; then 12893 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12894echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12895 need_locks=warn 12896 fi 12897else 12898 need_locks=no 12899fi 12900 12901{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12903 12904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12905 case $host_os in 12906 aix4* | aix5*) 12907 # If we're using GNU nm, then we don't want the "-C" option. 12908 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12909 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12910 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' 12911 else 12912 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' 12913 fi 12914 ;; 12915 pw32*) 12916 export_symbols_cmds_CXX="$ltdll_cmds" 12917 ;; 12918 cygwin* | mingw*) 12919 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' 12920 ;; 12921 linux* | k*bsd*-gnu) 12922 link_all_deplibs_CXX=no 12923 ;; 12924 *) 12925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12926 ;; 12927 esac 12928 12929{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12930echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12931test "$ld_shlibs_CXX" = no && can_build_shared=no 12932 12933# 12934# Do we need to explicitly link libc? 12935# 12936case "x$archive_cmds_need_lc_CXX" in 12937x|xyes) 12938 # Assume -lc should be added 12939 archive_cmds_need_lc_CXX=yes 12940 12941 if test "$enable_shared" = yes && test "$GCC" = yes; then 12942 case $archive_cmds_CXX in 12943 *'~'*) 12944 # FIXME: we may have to deal with multi-command sequences. 12945 ;; 12946 '$CC '*) 12947 # Test whether the compiler implicitly links with -lc since on some 12948 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12949 # to ld, don't add -lc before -lgcc. 12950 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12952 $rm conftest* 12953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12954 12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12956 (eval $ac_compile) 2>&5 12957 ac_status=$? 12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12959 (exit $ac_status); } 2>conftest.err; then 12960 soname=conftest 12961 lib=conftest 12962 libobjs=conftest.$ac_objext 12963 deplibs= 12964 wl=$lt_prog_compiler_wl_CXX 12965 pic_flag=$lt_prog_compiler_pic_CXX 12966 compiler_flags=-v 12967 linker_flags=-v 12968 verstring= 12969 output_objdir=. 12970 libname=conftest 12971 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12972 allow_undefined_flag_CXX= 12973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12974 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12975 ac_status=$? 12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12977 (exit $ac_status); } 12978 then 12979 archive_cmds_need_lc_CXX=no 12980 else 12981 archive_cmds_need_lc_CXX=yes 12982 fi 12983 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12984 else 12985 cat conftest.err 1>&5 12986 fi 12987 $rm conftest* 12988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12989echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12990 ;; 12991 esac 12992 fi 12993 ;; 12994esac 12995 12996{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12997echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12998library_names_spec= 12999libname_spec='lib$name' 13000soname_spec= 13001shrext_cmds=".so" 13002postinstall_cmds= 13003postuninstall_cmds= 13004finish_cmds= 13005finish_eval= 13006shlibpath_var= 13007shlibpath_overrides_runpath=unknown 13008version_type=none 13009dynamic_linker="$host_os ld.so" 13010sys_lib_dlsearch_path_spec="/lib /usr/lib" 13011if test "$GCC" = yes; then 13012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13014 # if the path contains ";" then we assume it to be the separator 13015 # otherwise default to the standard path separator (i.e. ":") - it is 13016 # assumed that no part of a normal pathname contains ";" but that should 13017 # okay in the real world where ";" in dirpaths is itself problematic. 13018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13019 else 13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13021 fi 13022else 13023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13024fi 13025need_lib_prefix=unknown 13026hardcode_into_libs=no 13027 13028# when you set need_version to no, make sure it does not cause -set_version 13029# flags to be left without arguments 13030need_version=unknown 13031 13032case $host_os in 13033aix3*) 13034 version_type=linux 13035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13036 shlibpath_var=LIBPATH 13037 13038 # AIX 3 has no versioning support, so we append a major version to the name. 13039 soname_spec='${libname}${release}${shared_ext}$major' 13040 ;; 13041 13042aix4* | aix5*) 13043 version_type=linux 13044 need_lib_prefix=no 13045 need_version=no 13046 hardcode_into_libs=yes 13047 if test "$host_cpu" = ia64; then 13048 # AIX 5 supports IA64 13049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13050 shlibpath_var=LD_LIBRARY_PATH 13051 else 13052 # With GCC up to 2.95.x, collect2 would create an import file 13053 # for dependence libraries. The import file would start with 13054 # the line `#! .'. This would cause the generated library to 13055 # depend on `.', always an invalid library. This was fixed in 13056 # development snapshots of GCC prior to 3.0. 13057 case $host_os in 13058 aix4 | aix4.[01] | aix4.[01].*) 13059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13060 echo ' yes ' 13061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13062 : 13063 else 13064 can_build_shared=no 13065 fi 13066 ;; 13067 esac 13068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13069 # soname into executable. Probably we can add versioning support to 13070 # collect2, so additional links can be useful in future. 13071 if test "$aix_use_runtimelinking" = yes; then 13072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13073 # instead of lib<name>.a to let people know that these are not 13074 # typical AIX shared libraries. 13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13076 else 13077 # We preserve .a as extension for shared libraries through AIX4.2 13078 # and later when we are not doing run time linking. 13079 library_names_spec='${libname}${release}.a $libname.a' 13080 soname_spec='${libname}${release}${shared_ext}$major' 13081 fi 13082 shlibpath_var=LIBPATH 13083 fi 13084 ;; 13085 13086amigaos*) 13087 library_names_spec='$libname.ixlibrary $libname.a' 13088 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13089 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' 13090 ;; 13091 13092beos*) 13093 library_names_spec='${libname}${shared_ext}' 13094 dynamic_linker="$host_os ld.so" 13095 shlibpath_var=LIBRARY_PATH 13096 ;; 13097 13098bsdi[45]*) 13099 version_type=linux 13100 need_version=no 13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13102 soname_spec='${libname}${release}${shared_ext}$major' 13103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13104 shlibpath_var=LD_LIBRARY_PATH 13105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13107 # the default ld.so.conf also contains /usr/contrib/lib and 13108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13109 # libtool to hard-code these into programs 13110 ;; 13111 13112cygwin* | mingw* | pw32*) 13113 version_type=windows 13114 shrext_cmds=".dll" 13115 need_version=no 13116 need_lib_prefix=no 13117 13118 case $GCC,$host_os in 13119 yes,cygwin* | yes,mingw* | yes,pw32*) 13120 library_names_spec='$libname.dll.a' 13121 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13122 postinstall_cmds='base_file=`basename \${file}`~ 13123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13124 dldir=$destdir/`dirname \$dlpath`~ 13125 test -d \$dldir || mkdir -p \$dldir~ 13126 $install_prog $dir/$dlname \$dldir/$dlname~ 13127 chmod a+x \$dldir/$dlname' 13128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13129 dlpath=$dir/\$dldll~ 13130 $rm \$dlpath' 13131 shlibpath_overrides_runpath=yes 13132 13133 case $host_os in 13134 cygwin*) 13135 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13136 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13137 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13138 ;; 13139 mingw*) 13140 # MinGW DLLs use traditional 'lib' prefix 13141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13143 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13144 # It is most probably a Windows format PATH printed by 13145 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13146 # path with ; separators, and with drive letters. We can handle the 13147 # drive letters (cygwin fileutils understands them), so leave them, 13148 # especially as we might pass files found there to a mingw objdump, 13149 # which wouldn't understand a cygwinified path. Ahh. 13150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13151 else 13152 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13153 fi 13154 ;; 13155 pw32*) 13156 # pw32 DLLs use 'pw' prefix rather than 'lib' 13157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13158 ;; 13159 esac 13160 ;; 13161 13162 *) 13163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13164 ;; 13165 esac 13166 dynamic_linker='Win32 ld.exe' 13167 # FIXME: first we should search . and the directory the executable is in 13168 shlibpath_var=PATH 13169 ;; 13170 13171darwin* | rhapsody*) 13172 dynamic_linker="$host_os dyld" 13173 version_type=darwin 13174 need_lib_prefix=no 13175 need_version=no 13176 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13177 soname_spec='${libname}${release}${major}$shared_ext' 13178 shlibpath_overrides_runpath=yes 13179 shlibpath_var=DYLD_LIBRARY_PATH 13180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13181 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13182 if test "$GCC" = yes; then 13183 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13184 else 13185 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13186 fi 13187 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13188 ;; 13189 13190dgux*) 13191 version_type=linux 13192 need_lib_prefix=no 13193 need_version=no 13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13195 soname_spec='${libname}${release}${shared_ext}$major' 13196 shlibpath_var=LD_LIBRARY_PATH 13197 ;; 13198 13199freebsd1*) 13200 dynamic_linker=no 13201 ;; 13202 13203freebsd* | dragonfly*) 13204 # DragonFly does not have aout. When/if they implement a new 13205 # versioning mechanism, adjust this. 13206 if test -x /usr/bin/objformat; then 13207 objformat=`/usr/bin/objformat` 13208 else 13209 case $host_os in 13210 freebsd[123]*) objformat=aout ;; 13211 *) objformat=elf ;; 13212 esac 13213 fi 13214 version_type=freebsd-$objformat 13215 case $version_type in 13216 freebsd-elf*) 13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13218 need_version=no 13219 need_lib_prefix=no 13220 ;; 13221 freebsd-*) 13222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13223 need_version=yes 13224 ;; 13225 esac 13226 shlibpath_var=LD_LIBRARY_PATH 13227 case $host_os in 13228 freebsd2*) 13229 shlibpath_overrides_runpath=yes 13230 ;; 13231 freebsd3.[01]* | freebsdelf3.[01]*) 13232 shlibpath_overrides_runpath=yes 13233 hardcode_into_libs=yes 13234 ;; 13235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13237 shlibpath_overrides_runpath=no 13238 hardcode_into_libs=yes 13239 ;; 13240 freebsd*) # from 4.6 on 13241 shlibpath_overrides_runpath=yes 13242 hardcode_into_libs=yes 13243 ;; 13244 esac 13245 ;; 13246 13247gnu*) 13248 version_type=linux 13249 need_lib_prefix=no 13250 need_version=no 13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13252 soname_spec='${libname}${release}${shared_ext}$major' 13253 shlibpath_var=LD_LIBRARY_PATH 13254 hardcode_into_libs=yes 13255 ;; 13256 13257hpux9* | hpux10* | hpux11*) 13258 # Give a soname corresponding to the major version so that dld.sl refuses to 13259 # link against other versions. 13260 version_type=sunos 13261 need_lib_prefix=no 13262 need_version=no 13263 case $host_cpu in 13264 ia64*) 13265 shrext_cmds='.so' 13266 hardcode_into_libs=yes 13267 dynamic_linker="$host_os dld.so" 13268 shlibpath_var=LD_LIBRARY_PATH 13269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13271 soname_spec='${libname}${release}${shared_ext}$major' 13272 if test "X$HPUX_IA64_MODE" = X32; then 13273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13274 else 13275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13276 fi 13277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13278 ;; 13279 hppa*64*) 13280 shrext_cmds='.sl' 13281 hardcode_into_libs=yes 13282 dynamic_linker="$host_os dld.sl" 13283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13286 soname_spec='${libname}${release}${shared_ext}$major' 13287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13289 ;; 13290 *) 13291 shrext_cmds='.sl' 13292 dynamic_linker="$host_os dld.sl" 13293 shlibpath_var=SHLIB_PATH 13294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13296 soname_spec='${libname}${release}${shared_ext}$major' 13297 ;; 13298 esac 13299 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13300 postinstall_cmds='chmod 555 $lib' 13301 ;; 13302 13303interix3*) 13304 version_type=linux 13305 need_lib_prefix=no 13306 need_version=no 13307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13308 soname_spec='${libname}${release}${shared_ext}$major' 13309 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13310 shlibpath_var=LD_LIBRARY_PATH 13311 shlibpath_overrides_runpath=no 13312 hardcode_into_libs=yes 13313 ;; 13314 13315irix5* | irix6* | nonstopux*) 13316 case $host_os in 13317 nonstopux*) version_type=nonstopux ;; 13318 *) 13319 if test "$lt_cv_prog_gnu_ld" = yes; then 13320 version_type=linux 13321 else 13322 version_type=irix 13323 fi ;; 13324 esac 13325 need_lib_prefix=no 13326 need_version=no 13327 soname_spec='${libname}${release}${shared_ext}$major' 13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13329 case $host_os in 13330 irix5* | nonstopux*) 13331 libsuff= shlibsuff= 13332 ;; 13333 *) 13334 case $LD in # libtool.m4 will add one of these switches to LD 13335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13336 libsuff= shlibsuff= libmagic=32-bit;; 13337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13338 libsuff=32 shlibsuff=N32 libmagic=N32;; 13339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13340 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13341 *) libsuff= shlibsuff= libmagic=never-match;; 13342 esac 13343 ;; 13344 esac 13345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13346 shlibpath_overrides_runpath=no 13347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13349 hardcode_into_libs=yes 13350 ;; 13351 13352# No shared lib support for Linux oldld, aout, or coff. 13353linux*oldld* | linux*aout* | linux*coff*) 13354 dynamic_linker=no 13355 ;; 13356 13357# This must be Linux ELF. 13358linux* | k*bsd*-gnu) 13359 version_type=linux 13360 need_lib_prefix=no 13361 need_version=no 13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13363 soname_spec='${libname}${release}${shared_ext}$major' 13364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13365 shlibpath_var=LD_LIBRARY_PATH 13366 shlibpath_overrides_runpath=no 13367 # This implies no fast_install, which is unacceptable. 13368 # Some rework will be needed to allow for fast_install 13369 # before this can be enabled. 13370 hardcode_into_libs=yes 13371 13372 # Append ld.so.conf contents to the search path 13373 if test -f /etc/ld.so.conf; then 13374 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13375 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13376 fi 13377 13378 # We used to test for /lib/ld.so.1 and disable shared libraries on 13379 # powerpc, because MkLinux only supported shared libraries with the 13380 # GNU dynamic linker. Since this was broken with cross compilers, 13381 # most powerpc-linux boxes support dynamic linking these days and 13382 # people can always --disable-shared, the test was removed, and we 13383 # assume the GNU/Linux dynamic linker is in use. 13384 dynamic_linker='GNU/Linux ld.so' 13385 ;; 13386 13387netbsdelf*-gnu) 13388 version_type=linux 13389 need_lib_prefix=no 13390 need_version=no 13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13392 soname_spec='${libname}${release}${shared_ext}$major' 13393 shlibpath_var=LD_LIBRARY_PATH 13394 shlibpath_overrides_runpath=no 13395 hardcode_into_libs=yes 13396 dynamic_linker='NetBSD ld.elf_so' 13397 ;; 13398 13399netbsd*) 13400 version_type=sunos 13401 need_lib_prefix=no 13402 need_version=no 13403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13406 dynamic_linker='NetBSD (a.out) ld.so' 13407 else 13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13409 soname_spec='${libname}${release}${shared_ext}$major' 13410 dynamic_linker='NetBSD ld.elf_so' 13411 fi 13412 shlibpath_var=LD_LIBRARY_PATH 13413 shlibpath_overrides_runpath=yes 13414 hardcode_into_libs=yes 13415 ;; 13416 13417newsos6) 13418 version_type=linux 13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13420 shlibpath_var=LD_LIBRARY_PATH 13421 shlibpath_overrides_runpath=yes 13422 ;; 13423 13424nto-qnx*) 13425 version_type=linux 13426 need_lib_prefix=no 13427 need_version=no 13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13429 soname_spec='${libname}${release}${shared_ext}$major' 13430 shlibpath_var=LD_LIBRARY_PATH 13431 shlibpath_overrides_runpath=yes 13432 ;; 13433 13434openbsd*) 13435 version_type=sunos 13436 sys_lib_dlsearch_path_spec="/usr/lib" 13437 need_lib_prefix=no 13438 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13439 case $host_os in 13440 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13441 *) need_version=no ;; 13442 esac 13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13445 shlibpath_var=LD_LIBRARY_PATH 13446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13447 case $host_os in 13448 openbsd2.[89] | openbsd2.[89].*) 13449 shlibpath_overrides_runpath=no 13450 ;; 13451 *) 13452 shlibpath_overrides_runpath=yes 13453 ;; 13454 esac 13455 else 13456 shlibpath_overrides_runpath=yes 13457 fi 13458 ;; 13459 13460os2*) 13461 libname_spec='$name' 13462 shrext_cmds=".dll" 13463 need_lib_prefix=no 13464 library_names_spec='$libname${shared_ext} $libname.a' 13465 dynamic_linker='OS/2 ld.exe' 13466 shlibpath_var=LIBPATH 13467 ;; 13468 13469osf3* | osf4* | osf5*) 13470 version_type=osf 13471 need_lib_prefix=no 13472 need_version=no 13473 soname_spec='${libname}${release}${shared_ext}$major' 13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13475 shlibpath_var=LD_LIBRARY_PATH 13476 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13477 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13478 ;; 13479 13480solaris*) 13481 version_type=linux 13482 need_lib_prefix=no 13483 need_version=no 13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13485 soname_spec='${libname}${release}${shared_ext}$major' 13486 shlibpath_var=LD_LIBRARY_PATH 13487 shlibpath_overrides_runpath=yes 13488 hardcode_into_libs=yes 13489 # ldd complains unless libraries are executable 13490 postinstall_cmds='chmod +x $lib' 13491 ;; 13492 13493sunos4*) 13494 version_type=sunos 13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13496 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13497 shlibpath_var=LD_LIBRARY_PATH 13498 shlibpath_overrides_runpath=yes 13499 if test "$with_gnu_ld" = yes; then 13500 need_lib_prefix=no 13501 fi 13502 need_version=yes 13503 ;; 13504 13505sysv4 | sysv4.3*) 13506 version_type=linux 13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13508 soname_spec='${libname}${release}${shared_ext}$major' 13509 shlibpath_var=LD_LIBRARY_PATH 13510 case $host_vendor in 13511 sni) 13512 shlibpath_overrides_runpath=no 13513 need_lib_prefix=no 13514 export_dynamic_flag_spec='${wl}-Blargedynsym' 13515 runpath_var=LD_RUN_PATH 13516 ;; 13517 siemens) 13518 need_lib_prefix=no 13519 ;; 13520 motorola) 13521 need_lib_prefix=no 13522 need_version=no 13523 shlibpath_overrides_runpath=no 13524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13525 ;; 13526 esac 13527 ;; 13528 13529sysv4*MP*) 13530 if test -d /usr/nec ;then 13531 version_type=linux 13532 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13533 soname_spec='$libname${shared_ext}.$major' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 fi 13536 ;; 13537 13538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13539 version_type=freebsd-elf 13540 need_lib_prefix=no 13541 need_version=no 13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13543 soname_spec='${libname}${release}${shared_ext}$major' 13544 shlibpath_var=LD_LIBRARY_PATH 13545 hardcode_into_libs=yes 13546 if test "$with_gnu_ld" = yes; then 13547 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13548 shlibpath_overrides_runpath=no 13549 else 13550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13551 shlibpath_overrides_runpath=yes 13552 case $host_os in 13553 sco3.2v5*) 13554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13555 ;; 13556 esac 13557 fi 13558 sys_lib_dlsearch_path_spec='/usr/lib' 13559 ;; 13560 13561uts4*) 13562 version_type=linux 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13564 soname_spec='${libname}${release}${shared_ext}$major' 13565 shlibpath_var=LD_LIBRARY_PATH 13566 ;; 13567 13568*) 13569 dynamic_linker=no 13570 ;; 13571esac 13572{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13573echo "${ECHO_T}$dynamic_linker" >&6; } 13574test "$dynamic_linker" = no && can_build_shared=no 13575 13576variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13577if test "$GCC" = yes; then 13578 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13579fi 13580 13581{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13582echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13583hardcode_action_CXX= 13584if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13585 test -n "$runpath_var_CXX" || \ 13586 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13587 13588 # We can hardcode non-existant directories. 13589 if test "$hardcode_direct_CXX" != no && 13590 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13591 # have to relink, otherwise we might link with an installed library 13592 # when we should be linking with a yet-to-be-installed one 13593 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13594 test "$hardcode_minus_L_CXX" != no; then 13595 # Linking always hardcodes the temporary library directory. 13596 hardcode_action_CXX=relink 13597 else 13598 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13599 hardcode_action_CXX=immediate 13600 fi 13601else 13602 # We cannot hardcode anything, or else we can only hardcode existing 13603 # directories. 13604 hardcode_action_CXX=unsupported 13605fi 13606{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13607echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13608 13609if test "$hardcode_action_CXX" = relink; then 13610 # Fast installation is not supported 13611 enable_fast_install=no 13612elif test "$shlibpath_overrides_runpath" = yes || 13613 test "$enable_shared" = no; then 13614 # Fast installation is not necessary 13615 enable_fast_install=needless 13616fi 13617 13618 13619# The else clause should only fire when bootstrapping the 13620# libtool distribution, otherwise you forgot to ship ltmain.sh 13621# with your package, and you will get complaints that there are 13622# no rules to generate ltmain.sh. 13623if test -f "$ltmain"; then 13624 # See if we are running on zsh, and set the options which allow our commands through 13625 # without removal of \ escapes. 13626 if test -n "${ZSH_VERSION+set}" ; then 13627 setopt NO_GLOB_SUBST 13628 fi 13629 # Now quote all the things that may contain metacharacters while being 13630 # careful not to overquote the AC_SUBSTed values. We take copies of the 13631 # variables and quote the copies for generation of the libtool script. 13632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13633 SED SHELL STRIP \ 13634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13636 deplibs_check_method reload_flag reload_cmds need_locks \ 13637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13638 lt_cv_sys_global_symbol_to_c_name_address \ 13639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13640 old_postinstall_cmds old_postuninstall_cmds \ 13641 compiler_CXX \ 13642 CC_CXX \ 13643 LD_CXX \ 13644 lt_prog_compiler_wl_CXX \ 13645 lt_prog_compiler_pic_CXX \ 13646 lt_prog_compiler_static_CXX \ 13647 lt_prog_compiler_no_builtin_flag_CXX \ 13648 export_dynamic_flag_spec_CXX \ 13649 thread_safe_flag_spec_CXX \ 13650 whole_archive_flag_spec_CXX \ 13651 enable_shared_with_static_runtimes_CXX \ 13652 old_archive_cmds_CXX \ 13653 old_archive_from_new_cmds_CXX \ 13654 predep_objects_CXX \ 13655 postdep_objects_CXX \ 13656 predeps_CXX \ 13657 postdeps_CXX \ 13658 compiler_lib_search_path_CXX \ 13659 archive_cmds_CXX \ 13660 archive_expsym_cmds_CXX \ 13661 postinstall_cmds_CXX \ 13662 postuninstall_cmds_CXX \ 13663 old_archive_from_expsyms_cmds_CXX \ 13664 allow_undefined_flag_CXX \ 13665 no_undefined_flag_CXX \ 13666 export_symbols_cmds_CXX \ 13667 hardcode_libdir_flag_spec_CXX \ 13668 hardcode_libdir_flag_spec_ld_CXX \ 13669 hardcode_libdir_separator_CXX \ 13670 hardcode_automatic_CXX \ 13671 module_cmds_CXX \ 13672 module_expsym_cmds_CXX \ 13673 lt_cv_prog_compiler_c_o_CXX \ 13674 exclude_expsyms_CXX \ 13675 include_expsyms_CXX; do 13676 13677 case $var in 13678 old_archive_cmds_CXX | \ 13679 old_archive_from_new_cmds_CXX | \ 13680 archive_cmds_CXX | \ 13681 archive_expsym_cmds_CXX | \ 13682 module_cmds_CXX | \ 13683 module_expsym_cmds_CXX | \ 13684 old_archive_from_expsyms_cmds_CXX | \ 13685 export_symbols_cmds_CXX | \ 13686 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13687 postinstall_cmds | postuninstall_cmds | \ 13688 old_postinstall_cmds | old_postuninstall_cmds | \ 13689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13690 # Double-quote double-evaled strings. 13691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13692 ;; 13693 *) 13694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13695 ;; 13696 esac 13697 done 13698 13699 case $lt_echo in 13700 *'\$0 --fallback-echo"') 13701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13702 ;; 13703 esac 13704 13705cfgfile="$ofile" 13706 13707 cat <<__EOF__ >> "$cfgfile" 13708# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13709 13710# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13711 13712# Shell to use when invoking shell scripts. 13713SHELL=$lt_SHELL 13714 13715# Whether or not to build shared libraries. 13716build_libtool_libs=$enable_shared 13717 13718# Whether or not to build static libraries. 13719build_old_libs=$enable_static 13720 13721# Whether or not to add -lc for building shared libraries. 13722build_libtool_need_lc=$archive_cmds_need_lc_CXX 13723 13724# Whether or not to disallow shared libs when runtime libs are static 13725allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13726 13727# Whether or not to optimize for fast installation. 13728fast_install=$enable_fast_install 13729 13730# The host system. 13731host_alias=$host_alias 13732host=$host 13733host_os=$host_os 13734 13735# The build system. 13736build_alias=$build_alias 13737build=$build 13738build_os=$build_os 13739 13740# An echo program that does not interpret backslashes. 13741echo=$lt_echo 13742 13743# The archiver. 13744AR=$lt_AR 13745AR_FLAGS=$lt_AR_FLAGS 13746 13747# A C compiler. 13748LTCC=$lt_LTCC 13749 13750# LTCC compiler flags. 13751LTCFLAGS=$lt_LTCFLAGS 13752 13753# A language-specific compiler. 13754CC=$lt_compiler_CXX 13755 13756# Is the compiler the GNU C compiler? 13757with_gcc=$GCC_CXX 13758 13759# An ERE matcher. 13760EGREP=$lt_EGREP 13761 13762# The linker used to build libraries. 13763LD=$lt_LD_CXX 13764 13765# Whether we need hard or soft links. 13766LN_S=$lt_LN_S 13767 13768# A BSD-compatible nm program. 13769NM=$lt_NM 13770 13771# A symbol stripping program 13772STRIP=$lt_STRIP 13773 13774# Used to examine libraries when file_magic_cmd begins "file" 13775MAGIC_CMD=$MAGIC_CMD 13776 13777# Used on cygwin: DLL creation program. 13778DLLTOOL="$DLLTOOL" 13779 13780# Used on cygwin: object dumper. 13781OBJDUMP="$OBJDUMP" 13782 13783# Used on cygwin: assembler. 13784AS="$AS" 13785 13786# The name of the directory that contains temporary libtool files. 13787objdir=$objdir 13788 13789# How to create reloadable object files. 13790reload_flag=$lt_reload_flag 13791reload_cmds=$lt_reload_cmds 13792 13793# How to pass a linker flag through the compiler. 13794wl=$lt_lt_prog_compiler_wl_CXX 13795 13796# Object file suffix (normally "o"). 13797objext="$ac_objext" 13798 13799# Old archive suffix (normally "a"). 13800libext="$libext" 13801 13802# Shared library suffix (normally ".so"). 13803shrext_cmds='$shrext_cmds' 13804 13805# Executable file suffix (normally ""). 13806exeext="$exeext" 13807 13808# Additional compiler flags for building library objects. 13809pic_flag=$lt_lt_prog_compiler_pic_CXX 13810pic_mode=$pic_mode 13811 13812# What is the maximum length of a command? 13813max_cmd_len=$lt_cv_sys_max_cmd_len 13814 13815# Does compiler simultaneously support -c and -o options? 13816compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13817 13818# Must we lock files when doing compilation? 13819need_locks=$lt_need_locks 13820 13821# Do we need the lib prefix for modules? 13822need_lib_prefix=$need_lib_prefix 13823 13824# Do we need a version for libraries? 13825need_version=$need_version 13826 13827# Whether dlopen is supported. 13828dlopen_support=$enable_dlopen 13829 13830# Whether dlopen of programs is supported. 13831dlopen_self=$enable_dlopen_self 13832 13833# Whether dlopen of statically linked programs is supported. 13834dlopen_self_static=$enable_dlopen_self_static 13835 13836# Compiler flag to prevent dynamic linking. 13837link_static_flag=$lt_lt_prog_compiler_static_CXX 13838 13839# Compiler flag to turn off builtin functions. 13840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13841 13842# Compiler flag to allow reflexive dlopens. 13843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13844 13845# Compiler flag to generate shared objects directly from archives. 13846whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13847 13848# Compiler flag to generate thread-safe objects. 13849thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13850 13851# Library versioning type. 13852version_type=$version_type 13853 13854# Format of library name prefix. 13855libname_spec=$lt_libname_spec 13856 13857# List of archive names. First name is the real one, the rest are links. 13858# The last name is the one that the linker finds with -lNAME. 13859library_names_spec=$lt_library_names_spec 13860 13861# The coded name of the library, if different from the real name. 13862soname_spec=$lt_soname_spec 13863 13864# Commands used to build and install an old-style archive. 13865RANLIB=$lt_RANLIB 13866old_archive_cmds=$lt_old_archive_cmds_CXX 13867old_postinstall_cmds=$lt_old_postinstall_cmds 13868old_postuninstall_cmds=$lt_old_postuninstall_cmds 13869 13870# Create an old-style archive from a shared archive. 13871old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13872 13873# Create a temporary old-style archive to link instead of a shared archive. 13874old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13875 13876# Commands used to build and install a shared archive. 13877archive_cmds=$lt_archive_cmds_CXX 13878archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13879postinstall_cmds=$lt_postinstall_cmds 13880postuninstall_cmds=$lt_postuninstall_cmds 13881 13882# Commands used to build a loadable module (assumed same as above if empty) 13883module_cmds=$lt_module_cmds_CXX 13884module_expsym_cmds=$lt_module_expsym_cmds_CXX 13885 13886# Commands to strip libraries. 13887old_striplib=$lt_old_striplib 13888striplib=$lt_striplib 13889 13890# Dependencies to place before the objects being linked to create a 13891# shared library. 13892predep_objects=$lt_predep_objects_CXX 13893 13894# Dependencies to place after the objects being linked to create a 13895# shared library. 13896postdep_objects=$lt_postdep_objects_CXX 13897 13898# Dependencies to place before the objects being linked to create a 13899# shared library. 13900predeps=$lt_predeps_CXX 13901 13902# Dependencies to place after the objects being linked to create a 13903# shared library. 13904postdeps=$lt_postdeps_CXX 13905 13906# The library search path used internally by the compiler when linking 13907# a shared library. 13908compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13909 13910# Method to check whether dependent libraries are shared objects. 13911deplibs_check_method=$lt_deplibs_check_method 13912 13913# Command to use when deplibs_check_method == file_magic. 13914file_magic_cmd=$lt_file_magic_cmd 13915 13916# Flag that allows shared libraries with undefined symbols to be built. 13917allow_undefined_flag=$lt_allow_undefined_flag_CXX 13918 13919# Flag that forces no undefined symbols. 13920no_undefined_flag=$lt_no_undefined_flag_CXX 13921 13922# Commands used to finish a libtool library installation in a directory. 13923finish_cmds=$lt_finish_cmds 13924 13925# Same as above, but a single script fragment to be evaled but not shown. 13926finish_eval=$lt_finish_eval 13927 13928# Take the output of nm and produce a listing of raw symbols and C names. 13929global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13930 13931# Transform the output of nm in a proper C declaration 13932global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13933 13934# Transform the output of nm in a C name address pair 13935global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13936 13937# This is the shared library runtime path variable. 13938runpath_var=$runpath_var 13939 13940# This is the shared library path variable. 13941shlibpath_var=$shlibpath_var 13942 13943# Is shlibpath searched before the hard-coded library search path? 13944shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13945 13946# How to hardcode a shared library path into an executable. 13947hardcode_action=$hardcode_action_CXX 13948 13949# Whether we should hardcode library paths into libraries. 13950hardcode_into_libs=$hardcode_into_libs 13951 13952# Flag to hardcode \$libdir into a binary during linking. 13953# This must work even if \$libdir does not exist. 13954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13955 13956# If ld is used when linking, flag to hardcode \$libdir into 13957# a binary during linking. This must work even if \$libdir does 13958# not exist. 13959hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13960 13961# Whether we need a single -rpath flag with a separated argument. 13962hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13963 13964# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13965# resulting binary. 13966hardcode_direct=$hardcode_direct_CXX 13967 13968# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13969# resulting binary. 13970hardcode_minus_L=$hardcode_minus_L_CXX 13971 13972# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13973# the resulting binary. 13974hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13975 13976# Set to yes if building a shared library automatically hardcodes DIR into the library 13977# and all subsequent libraries and executables linked against it. 13978hardcode_automatic=$hardcode_automatic_CXX 13979 13980# Variables whose values should be saved in libtool wrapper scripts and 13981# restored at relink time. 13982variables_saved_for_relink="$variables_saved_for_relink" 13983 13984# Whether libtool must link a program against all its dependency libraries. 13985link_all_deplibs=$link_all_deplibs_CXX 13986 13987# Compile-time system search path for libraries 13988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13989 13990# Run-time system search path for libraries 13991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13992 13993# Fix the shell variable \$srcfile for the compiler. 13994fix_srcfile_path="$fix_srcfile_path_CXX" 13995 13996# Set to yes if exported symbols are required. 13997always_export_symbols=$always_export_symbols_CXX 13998 13999# The commands to list exported symbols. 14000export_symbols_cmds=$lt_export_symbols_cmds_CXX 14001 14002# The commands to extract the exported symbol list from a shared archive. 14003extract_expsyms_cmds=$lt_extract_expsyms_cmds 14004 14005# Symbols that should not be listed in the preloaded symbols. 14006exclude_expsyms=$lt_exclude_expsyms_CXX 14007 14008# Symbols that must always be exported. 14009include_expsyms=$lt_include_expsyms_CXX 14010 14011# ### END LIBTOOL TAG CONFIG: $tagname 14012 14013__EOF__ 14014 14015 14016else 14017 # If there is no Makefile yet, we rely on a make rule to execute 14018 # `config.status --recheck' to rerun these tests and create the 14019 # libtool script then. 14020 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14021 if test -f "$ltmain_in"; then 14022 test -f Makefile && make "$ltmain" 14023 fi 14024fi 14025 14026 14027ac_ext=c 14028ac_cpp='$CPP $CPPFLAGS' 14029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14031ac_compiler_gnu=$ac_cv_c_compiler_gnu 14032 14033CC=$lt_save_CC 14034LDCXX=$LD 14035LD=$lt_save_LD 14036GCC=$lt_save_GCC 14037with_gnu_ldcxx=$with_gnu_ld 14038with_gnu_ld=$lt_save_with_gnu_ld 14039lt_cv_path_LDCXX=$lt_cv_path_LD 14040lt_cv_path_LD=$lt_save_path_LD 14041lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14042lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14043 14044 else 14045 tagname="" 14046 fi 14047 ;; 14048 14049 F77) 14050 if test -n "$F77" && test "X$F77" != "Xno"; then 14051 14052ac_ext=f 14053ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14054ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14055ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14056 14057 14058archive_cmds_need_lc_F77=no 14059allow_undefined_flag_F77= 14060always_export_symbols_F77=no 14061archive_expsym_cmds_F77= 14062export_dynamic_flag_spec_F77= 14063hardcode_direct_F77=no 14064hardcode_libdir_flag_spec_F77= 14065hardcode_libdir_flag_spec_ld_F77= 14066hardcode_libdir_separator_F77= 14067hardcode_minus_L_F77=no 14068hardcode_automatic_F77=no 14069module_cmds_F77= 14070module_expsym_cmds_F77= 14071link_all_deplibs_F77=unknown 14072old_archive_cmds_F77=$old_archive_cmds 14073no_undefined_flag_F77= 14074whole_archive_flag_spec_F77= 14075enable_shared_with_static_runtimes_F77=no 14076 14077# Source file extension for f77 test sources. 14078ac_ext=f 14079 14080# Object file extension for compiled f77 test sources. 14081objext=o 14082objext_F77=$objext 14083 14084# Code to be used in simple compile tests 14085lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14086 14087# Code to be used in simple link tests 14088lt_simple_link_test_code=" program t\n end\n" 14089 14090# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14091 14092# If no C compiler was specified, use CC. 14093LTCC=${LTCC-"$CC"} 14094 14095# If no C compiler flags were specified, use CFLAGS. 14096LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14097 14098# Allow CC to be a program name with arguments. 14099compiler=$CC 14100 14101 14102# save warnings/boilerplate of simple test code 14103ac_outfile=conftest.$ac_objext 14104printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14106_lt_compiler_boilerplate=`cat conftest.err` 14107$rm conftest* 14108 14109ac_outfile=conftest.$ac_objext 14110printf "$lt_simple_link_test_code" >conftest.$ac_ext 14111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14112_lt_linker_boilerplate=`cat conftest.err` 14113$rm conftest* 14114 14115 14116# Allow CC to be a program name with arguments. 14117lt_save_CC="$CC" 14118CC=${F77-"f77"} 14119compiler=$CC 14120compiler_F77=$CC 14121for cc_temp in $compiler""; do 14122 case $cc_temp in 14123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14125 \-*) ;; 14126 *) break;; 14127 esac 14128done 14129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14130 14131 14132{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14133echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14134{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14135echo "${ECHO_T}$can_build_shared" >&6; } 14136 14137{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14138echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14139test "$can_build_shared" = "no" && enable_shared=no 14140 14141# On AIX, shared libraries and static libraries use the same namespace, and 14142# are all built from PIC. 14143case $host_os in 14144aix3*) 14145 test "$enable_shared" = yes && enable_static=no 14146 if test -n "$RANLIB"; then 14147 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14148 postinstall_cmds='$RANLIB $lib' 14149 fi 14150 ;; 14151aix4* | aix5*) 14152 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14153 test "$enable_shared" = yes && enable_static=no 14154 fi 14155 ;; 14156esac 14157{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14158echo "${ECHO_T}$enable_shared" >&6; } 14159 14160{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14161echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14162# Make sure either enable_shared or enable_static is yes. 14163test "$enable_shared" = yes || enable_static=yes 14164{ echo "$as_me:$LINENO: result: $enable_static" >&5 14165echo "${ECHO_T}$enable_static" >&6; } 14166 14167GCC_F77="$G77" 14168LD_F77="$LD" 14169 14170lt_prog_compiler_wl_F77= 14171lt_prog_compiler_pic_F77= 14172lt_prog_compiler_static_F77= 14173 14174{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14175echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14176 14177 if test "$GCC" = yes; then 14178 lt_prog_compiler_wl_F77='-Wl,' 14179 lt_prog_compiler_static_F77='-static' 14180 14181 case $host_os in 14182 aix*) 14183 # All AIX code is PIC. 14184 if test "$host_cpu" = ia64; then 14185 # AIX 5 now supports IA64 processor 14186 lt_prog_compiler_static_F77='-Bstatic' 14187 fi 14188 ;; 14189 14190 amigaos*) 14191 # FIXME: we need at least 68020 code to build shared libraries, but 14192 # adding the `-m68020' flag to GCC prevents building anything better, 14193 # like `-m68040'. 14194 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14195 ;; 14196 14197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14198 # PIC is the default for these OSes. 14199 ;; 14200 14201 mingw* | pw32* | os2*) 14202 # This hack is so that the source file can tell whether it is being 14203 # built for inclusion in a dll (and should export symbols for example). 14204 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14205 ;; 14206 14207 darwin* | rhapsody*) 14208 # PIC is the default on this platform 14209 # Common symbols not allowed in MH_DYLIB files 14210 lt_prog_compiler_pic_F77='-fno-common' 14211 ;; 14212 14213 interix3*) 14214 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14215 # Instead, we relocate shared libraries at runtime. 14216 ;; 14217 14218 msdosdjgpp*) 14219 # Just because we use GCC doesn't mean we suddenly get shared libraries 14220 # on systems that don't support them. 14221 lt_prog_compiler_can_build_shared_F77=no 14222 enable_shared=no 14223 ;; 14224 14225 sysv4*MP*) 14226 if test -d /usr/nec; then 14227 lt_prog_compiler_pic_F77=-Kconform_pic 14228 fi 14229 ;; 14230 14231 hpux*) 14232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14233 # not for PA HP-UX. 14234 case $host_cpu in 14235 hppa*64*|ia64*) 14236 # +Z the default 14237 ;; 14238 *) 14239 lt_prog_compiler_pic_F77='-fPIC' 14240 ;; 14241 esac 14242 ;; 14243 14244 *) 14245 lt_prog_compiler_pic_F77='-fPIC' 14246 ;; 14247 esac 14248 else 14249 # PORTME Check for flag to pass linker flags through the system compiler. 14250 case $host_os in 14251 aix*) 14252 lt_prog_compiler_wl_F77='-Wl,' 14253 if test "$host_cpu" = ia64; then 14254 # AIX 5 now supports IA64 processor 14255 lt_prog_compiler_static_F77='-Bstatic' 14256 else 14257 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14258 fi 14259 ;; 14260 darwin*) 14261 # PIC is the default on this platform 14262 # Common symbols not allowed in MH_DYLIB files 14263 case $cc_basename in 14264 xlc*) 14265 lt_prog_compiler_pic_F77='-qnocommon' 14266 lt_prog_compiler_wl_F77='-Wl,' 14267 ;; 14268 esac 14269 ;; 14270 14271 mingw* | pw32* | os2*) 14272 # This hack is so that the source file can tell whether it is being 14273 # built for inclusion in a dll (and should export symbols for example). 14274 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14275 ;; 14276 14277 hpux9* | hpux10* | hpux11*) 14278 lt_prog_compiler_wl_F77='-Wl,' 14279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14280 # not for PA HP-UX. 14281 case $host_cpu in 14282 hppa*64*|ia64*) 14283 # +Z the default 14284 ;; 14285 *) 14286 lt_prog_compiler_pic_F77='+Z' 14287 ;; 14288 esac 14289 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14290 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14291 ;; 14292 14293 irix5* | irix6* | nonstopux*) 14294 lt_prog_compiler_wl_F77='-Wl,' 14295 # PIC (with -KPIC) is the default. 14296 lt_prog_compiler_static_F77='-non_shared' 14297 ;; 14298 14299 newsos6) 14300 lt_prog_compiler_pic_F77='-KPIC' 14301 lt_prog_compiler_static_F77='-Bstatic' 14302 ;; 14303 14304 linux* | k*bsd*-gnu) 14305 case $cc_basename in 14306 icc* | ecc*) 14307 lt_prog_compiler_wl_F77='-Wl,' 14308 lt_prog_compiler_pic_F77='-KPIC' 14309 lt_prog_compiler_static_F77='-static' 14310 ;; 14311 pgcc* | pgf77* | pgf90* | pgf95*) 14312 # Portland Group compilers (*not* the Pentium gcc compiler, 14313 # which looks to be a dead project) 14314 lt_prog_compiler_wl_F77='-Wl,' 14315 lt_prog_compiler_pic_F77='-fpic' 14316 lt_prog_compiler_static_F77='-Bstatic' 14317 ;; 14318 ccc*) 14319 lt_prog_compiler_wl_F77='-Wl,' 14320 # All Alpha code is PIC. 14321 lt_prog_compiler_static_F77='-non_shared' 14322 ;; 14323 esac 14324 ;; 14325 14326 osf3* | osf4* | osf5*) 14327 lt_prog_compiler_wl_F77='-Wl,' 14328 # All OSF/1 code is PIC. 14329 lt_prog_compiler_static_F77='-non_shared' 14330 ;; 14331 14332 solaris*) 14333 lt_prog_compiler_pic_F77='-KPIC' 14334 lt_prog_compiler_static_F77='-Bstatic' 14335 case $cc_basename in 14336 f77* | f90* | f95*) 14337 lt_prog_compiler_wl_F77='-Qoption ld ';; 14338 *) 14339 lt_prog_compiler_wl_F77='-Wl,';; 14340 esac 14341 ;; 14342 14343 sunos4*) 14344 lt_prog_compiler_wl_F77='-Qoption ld ' 14345 lt_prog_compiler_pic_F77='-PIC' 14346 lt_prog_compiler_static_F77='-Bstatic' 14347 ;; 14348 14349 sysv4 | sysv4.2uw2* | sysv4.3*) 14350 lt_prog_compiler_wl_F77='-Wl,' 14351 lt_prog_compiler_pic_F77='-KPIC' 14352 lt_prog_compiler_static_F77='-Bstatic' 14353 ;; 14354 14355 sysv4*MP*) 14356 if test -d /usr/nec ;then 14357 lt_prog_compiler_pic_F77='-Kconform_pic' 14358 lt_prog_compiler_static_F77='-Bstatic' 14359 fi 14360 ;; 14361 14362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14363 lt_prog_compiler_wl_F77='-Wl,' 14364 lt_prog_compiler_pic_F77='-KPIC' 14365 lt_prog_compiler_static_F77='-Bstatic' 14366 ;; 14367 14368 unicos*) 14369 lt_prog_compiler_wl_F77='-Wl,' 14370 lt_prog_compiler_can_build_shared_F77=no 14371 ;; 14372 14373 uts4*) 14374 lt_prog_compiler_pic_F77='-pic' 14375 lt_prog_compiler_static_F77='-Bstatic' 14376 ;; 14377 14378 *) 14379 lt_prog_compiler_can_build_shared_F77=no 14380 ;; 14381 esac 14382 fi 14383 14384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14385echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14386 14387# 14388# Check to make sure the PIC flag actually works. 14389# 14390if test -n "$lt_prog_compiler_pic_F77"; then 14391 14392{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14393echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14394if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14395 echo $ECHO_N "(cached) $ECHO_C" >&6 14396else 14397 lt_prog_compiler_pic_works_F77=no 14398 ac_outfile=conftest.$ac_objext 14399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14400 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14401 # Insert the option either (1) after the last *FLAGS variable, or 14402 # (2) before a word containing "conftest.", or (3) at the end. 14403 # Note that $ac_compile itself does not contain backslashes and begins 14404 # with a dollar sign (not a hyphen), so the echo should work correctly. 14405 # The option is referenced via a variable to avoid confusing sed. 14406 lt_compile=`echo "$ac_compile" | $SED \ 14407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14409 -e 's:$: $lt_compiler_flag:'` 14410 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14411 (eval "$lt_compile" 2>conftest.err) 14412 ac_status=$? 14413 cat conftest.err >&5 14414 echo "$as_me:__oline__: \$? = $ac_status" >&5 14415 if (exit $ac_status) && test -s "$ac_outfile"; then 14416 # The compiler can only warn and ignore the option if not recognized 14417 # So say no if there are warnings other than the usual output. 14418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14421 lt_prog_compiler_pic_works_F77=yes 14422 fi 14423 fi 14424 $rm conftest* 14425 14426fi 14427{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14428echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14429 14430if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14431 case $lt_prog_compiler_pic_F77 in 14432 "" | " "*) ;; 14433 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14434 esac 14435else 14436 lt_prog_compiler_pic_F77= 14437 lt_prog_compiler_can_build_shared_F77=no 14438fi 14439 14440fi 14441case $host_os in 14442 # For platforms which do not support PIC, -DPIC is meaningless: 14443 *djgpp*) 14444 lt_prog_compiler_pic_F77= 14445 ;; 14446 *) 14447 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14448 ;; 14449esac 14450 14451# 14452# Check to make sure the static flag actually works. 14453# 14454wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14455{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14456echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14457if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14458 echo $ECHO_N "(cached) $ECHO_C" >&6 14459else 14460 lt_prog_compiler_static_works_F77=no 14461 save_LDFLAGS="$LDFLAGS" 14462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14463 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14465 # The linker can only warn and ignore the option if not recognized 14466 # So say no if there are warnings 14467 if test -s conftest.err; then 14468 # Append any errors to the config.log. 14469 cat conftest.err 1>&5 14470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14472 if diff conftest.exp conftest.er2 >/dev/null; then 14473 lt_prog_compiler_static_works_F77=yes 14474 fi 14475 else 14476 lt_prog_compiler_static_works_F77=yes 14477 fi 14478 fi 14479 $rm conftest* 14480 LDFLAGS="$save_LDFLAGS" 14481 14482fi 14483{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14484echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14485 14486if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14487 : 14488else 14489 lt_prog_compiler_static_F77= 14490fi 14491 14492 14493{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14494echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14495if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14496 echo $ECHO_N "(cached) $ECHO_C" >&6 14497else 14498 lt_cv_prog_compiler_c_o_F77=no 14499 $rm -r conftest 2>/dev/null 14500 mkdir conftest 14501 cd conftest 14502 mkdir out 14503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14504 14505 lt_compiler_flag="-o out/conftest2.$ac_objext" 14506 # Insert the option either (1) after the last *FLAGS variable, or 14507 # (2) before a word containing "conftest.", or (3) at the end. 14508 # Note that $ac_compile itself does not contain backslashes and begins 14509 # with a dollar sign (not a hyphen), so the echo should work correctly. 14510 lt_compile=`echo "$ac_compile" | $SED \ 14511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14513 -e 's:$: $lt_compiler_flag:'` 14514 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14515 (eval "$lt_compile" 2>out/conftest.err) 14516 ac_status=$? 14517 cat out/conftest.err >&5 14518 echo "$as_me:__oline__: \$? = $ac_status" >&5 14519 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14520 then 14521 # The compiler can only warn and ignore the option if not recognized 14522 # So say no if there are warnings 14523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14526 lt_cv_prog_compiler_c_o_F77=yes 14527 fi 14528 fi 14529 chmod u+w . 2>&5 14530 $rm conftest* 14531 # SGI C++ compiler will create directory out/ii_files/ for 14532 # template instantiation 14533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14534 $rm out/* && rmdir out 14535 cd .. 14536 rmdir conftest 14537 $rm conftest* 14538 14539fi 14540{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14541echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14542 14543 14544hard_links="nottested" 14545if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14546 # do not overwrite the value of need_locks provided by the user 14547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14548echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14549 hard_links=yes 14550 $rm conftest* 14551 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14552 touch conftest.a 14553 ln conftest.a conftest.b 2>&5 || hard_links=no 14554 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14555 { echo "$as_me:$LINENO: result: $hard_links" >&5 14556echo "${ECHO_T}$hard_links" >&6; } 14557 if test "$hard_links" = no; then 14558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14559echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14560 need_locks=warn 14561 fi 14562else 14563 need_locks=no 14564fi 14565 14566{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14567echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14568 14569 runpath_var= 14570 allow_undefined_flag_F77= 14571 enable_shared_with_static_runtimes_F77=no 14572 archive_cmds_F77= 14573 archive_expsym_cmds_F77= 14574 old_archive_From_new_cmds_F77= 14575 old_archive_from_expsyms_cmds_F77= 14576 export_dynamic_flag_spec_F77= 14577 whole_archive_flag_spec_F77= 14578 thread_safe_flag_spec_F77= 14579 hardcode_libdir_flag_spec_F77= 14580 hardcode_libdir_flag_spec_ld_F77= 14581 hardcode_libdir_separator_F77= 14582 hardcode_direct_F77=no 14583 hardcode_minus_L_F77=no 14584 hardcode_shlibpath_var_F77=unsupported 14585 link_all_deplibs_F77=unknown 14586 hardcode_automatic_F77=no 14587 module_cmds_F77= 14588 module_expsym_cmds_F77= 14589 always_export_symbols_F77=no 14590 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14591 # include_expsyms should be a list of space-separated symbols to be *always* 14592 # included in the symbol list 14593 include_expsyms_F77= 14594 # exclude_expsyms can be an extended regexp of symbols to exclude 14595 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14597 # as well as any symbol that contains `d'. 14598 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14600 # platforms (ab)use it in PIC code, but their linkers get confused if 14601 # the symbol is explicitly referenced. Since portable code cannot 14602 # rely on this symbol name, it's probably fine to never include it in 14603 # preloaded symbol tables. 14604 extract_expsyms_cmds= 14605 # Just being paranoid about ensuring that cc_basename is set. 14606 for cc_temp in $compiler""; do 14607 case $cc_temp in 14608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14610 \-*) ;; 14611 *) break;; 14612 esac 14613done 14614cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14615 14616 case $host_os in 14617 cygwin* | mingw* | pw32*) 14618 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14619 # When not using gcc, we currently assume that we are using 14620 # Microsoft Visual C++. 14621 if test "$GCC" != yes; then 14622 with_gnu_ld=no 14623 fi 14624 ;; 14625 interix*) 14626 # we just hope/assume this is gcc and not c89 (= MSVC++) 14627 with_gnu_ld=yes 14628 ;; 14629 openbsd*) 14630 with_gnu_ld=no 14631 ;; 14632 esac 14633 14634 ld_shlibs_F77=yes 14635 if test "$with_gnu_ld" = yes; then 14636 # If archive_cmds runs LD, not CC, wlarc should be empty 14637 wlarc='${wl}' 14638 14639 # Set some defaults for GNU ld with shared library support. These 14640 # are reset later if shared libraries are not supported. Putting them 14641 # here allows them to be overridden if necessary. 14642 runpath_var=LD_RUN_PATH 14643 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14644 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14645 # ancient GNU ld didn't support --whole-archive et. al. 14646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14647 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14648 else 14649 whole_archive_flag_spec_F77= 14650 fi 14651 supports_anon_versioning=no 14652 case `$LD -v 2>/dev/null` in 14653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14656 *\ 2.11.*) ;; # other 2.11 versions 14657 *) supports_anon_versioning=yes ;; 14658 esac 14659 14660 # See if GNU ld supports shared libraries. 14661 case $host_os in 14662 aix3* | aix4* | aix5*) 14663 # On AIX/PPC, the GNU linker is very broken 14664 if test "$host_cpu" != ia64; then 14665 ld_shlibs_F77=no 14666 cat <<EOF 1>&2 14667 14668*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14669*** to be unable to reliably create shared libraries on AIX. 14670*** Therefore, libtool is disabling shared libraries support. If you 14671*** really care for shared libraries, you may want to modify your PATH 14672*** so that a non-GNU linker is found, and then restart. 14673 14674EOF 14675 fi 14676 ;; 14677 14678 amigaos*) 14679 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)' 14680 hardcode_libdir_flag_spec_F77='-L$libdir' 14681 hardcode_minus_L_F77=yes 14682 14683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14684 # that the semantics of dynamic libraries on AmigaOS, at least up 14685 # to version 4, is to share data among multiple programs linked 14686 # with the same dynamic library. Since this doesn't match the 14687 # behavior of shared libraries on other platforms, we can't use 14688 # them. 14689 ld_shlibs_F77=no 14690 ;; 14691 14692 beos*) 14693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14694 allow_undefined_flag_F77=unsupported 14695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14696 # support --undefined. This deserves some investigation. FIXME 14697 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14698 else 14699 ld_shlibs_F77=no 14700 fi 14701 ;; 14702 14703 cygwin* | mingw* | pw32*) 14704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14705 # as there is no search path for DLLs. 14706 hardcode_libdir_flag_spec_F77='-L$libdir' 14707 allow_undefined_flag_F77=unsupported 14708 always_export_symbols_F77=no 14709 enable_shared_with_static_runtimes_F77=yes 14710 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14711 14712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14713 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14714 # If the export-symbols file already is a .def file (1st line 14715 # is EXPORTS), use it as is; otherwise, prepend... 14716 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14717 cp $export_symbols $output_objdir/$soname.def; 14718 else 14719 echo EXPORTS > $output_objdir/$soname.def; 14720 cat $export_symbols >> $output_objdir/$soname.def; 14721 fi~ 14722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14723 else 14724 ld_shlibs_F77=no 14725 fi 14726 ;; 14727 14728 interix3*) 14729 hardcode_direct_F77=no 14730 hardcode_shlibpath_var_F77=no 14731 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14732 export_dynamic_flag_spec_F77='${wl}-E' 14733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14734 # Instead, shared libraries are loaded at an image base (0x10000000 by 14735 # default) and relocated if they conflict, which is a slow very memory 14736 # consuming and fragmenting process. To avoid this, we pick a random, 14737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14738 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14739 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' 14740 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' 14741 ;; 14742 14743 linux* | k*bsd*-gnu) 14744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14745 tmp_addflag= 14746 case $cc_basename,$host_cpu in 14747 pgcc*) # Portland Group C compiler 14748 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' 14749 tmp_addflag=' $pic_flag' 14750 ;; 14751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14752 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' 14753 tmp_addflag=' $pic_flag -Mnomain' ;; 14754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14755 tmp_addflag=' -i_dynamic' ;; 14756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14757 tmp_addflag=' -i_dynamic -nofor_main' ;; 14758 ifc* | ifort*) # Intel Fortran compiler 14759 tmp_addflag=' -nofor_main' ;; 14760 esac 14761 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14762 14763 if test $supports_anon_versioning = yes; then 14764 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14766 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14768 fi 14769 link_all_deplibs_F77=no 14770 else 14771 ld_shlibs_F77=no 14772 fi 14773 ;; 14774 14775 netbsd* | netbsdelf*-gnu) 14776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14777 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14778 wlarc= 14779 else 14780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14782 fi 14783 ;; 14784 14785 solaris*) 14786 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14787 ld_shlibs_F77=no 14788 cat <<EOF 1>&2 14789 14790*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14791*** create shared libraries on Solaris systems. Therefore, libtool 14792*** is disabling shared libraries support. We urge you to upgrade GNU 14793*** binutils to release 2.9.1 or newer. Another option is to modify 14794*** your PATH or compiler configuration so that the native linker is 14795*** used, and then restart. 14796 14797EOF 14798 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14799 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14800 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14801 else 14802 ld_shlibs_F77=no 14803 fi 14804 ;; 14805 14806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14807 case `$LD -v 2>&1` in 14808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14809 ld_shlibs_F77=no 14810 cat <<_LT_EOF 1>&2 14811 14812*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14813*** reliably create shared libraries on SCO systems. Therefore, libtool 14814*** is disabling shared libraries support. We urge you to upgrade GNU 14815*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14816*** your PATH or compiler configuration so that the native linker is 14817*** used, and then restart. 14818 14819_LT_EOF 14820 ;; 14821 *) 14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14823 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14824 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14825 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14826 else 14827 ld_shlibs_F77=no 14828 fi 14829 ;; 14830 esac 14831 ;; 14832 14833 sunos4*) 14834 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14835 wlarc= 14836 hardcode_direct_F77=yes 14837 hardcode_shlibpath_var_F77=no 14838 ;; 14839 14840 *) 14841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14843 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14844 else 14845 ld_shlibs_F77=no 14846 fi 14847 ;; 14848 esac 14849 14850 if test "$ld_shlibs_F77" = no; then 14851 runpath_var= 14852 hardcode_libdir_flag_spec_F77= 14853 export_dynamic_flag_spec_F77= 14854 whole_archive_flag_spec_F77= 14855 fi 14856 else 14857 # PORTME fill in a description of your system's linker (not GNU ld) 14858 case $host_os in 14859 aix3*) 14860 allow_undefined_flag_F77=unsupported 14861 always_export_symbols_F77=yes 14862 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' 14863 # Note: this linker hardcodes the directories in LIBPATH if there 14864 # are no directories specified by -L. 14865 hardcode_minus_L_F77=yes 14866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14867 # Neither direct hardcoding nor static linking is supported with a 14868 # broken collect2. 14869 hardcode_direct_F77=unsupported 14870 fi 14871 ;; 14872 14873 aix4* | aix5*) 14874 if test "$host_cpu" = ia64; then 14875 # On IA64, the linker does run time linking by default, so we don't 14876 # have to do anything special. 14877 aix_use_runtimelinking=no 14878 exp_sym_flag='-Bexport' 14879 no_entry_flag="" 14880 else 14881 # If we're using GNU nm, then we don't want the "-C" option. 14882 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14884 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' 14885 else 14886 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' 14887 fi 14888 aix_use_runtimelinking=no 14889 14890 # Test if we are trying to use run time linking or normal 14891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14892 # need to do runtime linking. 14893 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14894 for ld_flag in $LDFLAGS; do 14895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14896 aix_use_runtimelinking=yes 14897 break 14898 fi 14899 done 14900 ;; 14901 esac 14902 14903 exp_sym_flag='-bexport' 14904 no_entry_flag='-bnoentry' 14905 fi 14906 14907 # When large executables or shared objects are built, AIX ld can 14908 # have problems creating the table of contents. If linking a library 14909 # or program results in "error TOC overflow" add -mminimal-toc to 14910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14912 14913 archive_cmds_F77='' 14914 hardcode_direct_F77=yes 14915 hardcode_libdir_separator_F77=':' 14916 link_all_deplibs_F77=yes 14917 14918 if test "$GCC" = yes; then 14919 case $host_os in aix4.[012]|aix4.[012].*) 14920 # We only want to do this on AIX 4.2 and lower, the check 14921 # below for broken collect2 doesn't work under 4.3+ 14922 collect2name=`${CC} -print-prog-name=collect2` 14923 if test -f "$collect2name" && \ 14924 strings "$collect2name" | grep resolve_lib_name >/dev/null 14925 then 14926 # We have reworked collect2 14927 hardcode_direct_F77=yes 14928 else 14929 # We have old collect2 14930 hardcode_direct_F77=unsupported 14931 # It fails to find uninstalled libraries when the uninstalled 14932 # path is not listed in the libpath. Setting hardcode_minus_L 14933 # to unsupported forces relinking 14934 hardcode_minus_L_F77=yes 14935 hardcode_libdir_flag_spec_F77='-L$libdir' 14936 hardcode_libdir_separator_F77= 14937 fi 14938 ;; 14939 esac 14940 shared_flag='-shared' 14941 if test "$aix_use_runtimelinking" = yes; then 14942 shared_flag="$shared_flag "'${wl}-G' 14943 fi 14944 else 14945 # not using gcc 14946 if test "$host_cpu" = ia64; then 14947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14948 # chokes on -Wl,-G. The following line is correct: 14949 shared_flag='-G' 14950 else 14951 if test "$aix_use_runtimelinking" = yes; then 14952 shared_flag='${wl}-G' 14953 else 14954 shared_flag='${wl}-bM:SRE' 14955 fi 14956 fi 14957 fi 14958 14959 # It seems that -bexpall does not export symbols beginning with 14960 # underscore (_), so it is better to generate a list of symbols to export. 14961 always_export_symbols_F77=yes 14962 if test "$aix_use_runtimelinking" = yes; then 14963 # Warning - without using the other runtime loading flags (-brtl), 14964 # -berok will link without error, but may produce a broken library. 14965 allow_undefined_flag_F77='-berok' 14966 # Determine the default libpath from the value encoded in an empty executable. 14967 cat >conftest.$ac_ext <<_ACEOF 14968 program main 14969 14970 end 14971_ACEOF 14972rm -f conftest.$ac_objext conftest$ac_exeext 14973if { (ac_try="$ac_link" 14974case "(($ac_try" in 14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14976 *) ac_try_echo=$ac_try;; 14977esac 14978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14979 (eval "$ac_link") 2>conftest.er1 14980 ac_status=$? 14981 grep -v '^ *+' conftest.er1 >conftest.err 14982 rm -f conftest.er1 14983 cat conftest.err >&5 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); } && 14986 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14987 { (case "(($ac_try" in 14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14989 *) ac_try_echo=$ac_try;; 14990esac 14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14992 (eval "$ac_try") 2>&5 14993 ac_status=$? 14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14995 (exit $ac_status); }; } && 14996 { ac_try='test -s conftest$ac_exeext' 14997 { (case "(($ac_try" in 14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14999 *) ac_try_echo=$ac_try;; 15000esac 15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15002 (eval "$ac_try") 2>&5 15003 ac_status=$? 15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15005 (exit $ac_status); }; }; then 15006 15007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15008}'` 15009# Check for a 64-bit object if we didn't find anything. 15010if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15011}'`; fi 15012else 15013 echo "$as_me: failed program was:" >&5 15014sed 's/^/| /' conftest.$ac_ext >&5 15015 15016 15017fi 15018 15019rm -f conftest.err conftest.$ac_objext \ 15020 conftest$ac_exeext conftest.$ac_ext 15021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15022 15023 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15024 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" 15025 else 15026 if test "$host_cpu" = ia64; then 15027 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15028 allow_undefined_flag_F77="-z nodefs" 15029 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" 15030 else 15031 # Determine the default libpath from the value encoded in an empty executable. 15032 cat >conftest.$ac_ext <<_ACEOF 15033 program main 15034 15035 end 15036_ACEOF 15037rm -f conftest.$ac_objext conftest$ac_exeext 15038if { (ac_try="$ac_link" 15039case "(($ac_try" in 15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15041 *) ac_try_echo=$ac_try;; 15042esac 15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15044 (eval "$ac_link") 2>conftest.er1 15045 ac_status=$? 15046 grep -v '^ *+' conftest.er1 >conftest.err 15047 rm -f conftest.er1 15048 cat conftest.err >&5 15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15050 (exit $ac_status); } && 15051 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15052 { (case "(($ac_try" in 15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15054 *) ac_try_echo=$ac_try;; 15055esac 15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15057 (eval "$ac_try") 2>&5 15058 ac_status=$? 15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15060 (exit $ac_status); }; } && 15061 { ac_try='test -s conftest$ac_exeext' 15062 { (case "(($ac_try" in 15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15064 *) ac_try_echo=$ac_try;; 15065esac 15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15067 (eval "$ac_try") 2>&5 15068 ac_status=$? 15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15070 (exit $ac_status); }; }; then 15071 15072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15073}'` 15074# Check for a 64-bit object if we didn't find anything. 15075if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15076}'`; fi 15077else 15078 echo "$as_me: failed program was:" >&5 15079sed 's/^/| /' conftest.$ac_ext >&5 15080 15081 15082fi 15083 15084rm -f conftest.err conftest.$ac_objext \ 15085 conftest$ac_exeext conftest.$ac_ext 15086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15087 15088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15089 # Warning - without using the other run time loading flags, 15090 # -berok will link without error, but may produce a broken library. 15091 no_undefined_flag_F77=' ${wl}-bernotok' 15092 allow_undefined_flag_F77=' ${wl}-berok' 15093 # Exported symbols can be pulled into shared objects from archives 15094 whole_archive_flag_spec_F77='$convenience' 15095 archive_cmds_need_lc_F77=yes 15096 # This is similar to how AIX traditionally builds its shared libraries. 15097 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' 15098 fi 15099 fi 15100 ;; 15101 15102 amigaos*) 15103 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)' 15104 hardcode_libdir_flag_spec_F77='-L$libdir' 15105 hardcode_minus_L_F77=yes 15106 # see comment about different semantics on the GNU ld section 15107 ld_shlibs_F77=no 15108 ;; 15109 15110 bsdi[45]*) 15111 export_dynamic_flag_spec_F77=-rdynamic 15112 ;; 15113 15114 cygwin* | mingw* | pw32*) 15115 # When not using gcc, we currently assume that we are using 15116 # Microsoft Visual C++. 15117 # hardcode_libdir_flag_spec is actually meaningless, as there is 15118 # no search path for DLLs. 15119 hardcode_libdir_flag_spec_F77=' ' 15120 allow_undefined_flag_F77=unsupported 15121 # Tell ltmain to make .lib files, not .a files. 15122 libext=lib 15123 # Tell ltmain to make .dll files, not .so files. 15124 shrext_cmds=".dll" 15125 # FIXME: Setting linknames here is a bad hack. 15126 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15127 # The linker will automatically build a .lib file if we build a DLL. 15128 old_archive_From_new_cmds_F77='true' 15129 # FIXME: Should let the user specify the lib program. 15130 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15131 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15132 enable_shared_with_static_runtimes_F77=yes 15133 ;; 15134 15135 darwin* | rhapsody*) 15136 case $host_os in 15137 rhapsody* | darwin1.[012]) 15138 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15139 ;; 15140 *) # Darwin 1.3 on 15141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15142 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15143 else 15144 case ${MACOSX_DEPLOYMENT_TARGET} in 15145 10.[012]) 15146 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15147 ;; 15148 10.*) 15149 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15150 ;; 15151 esac 15152 fi 15153 ;; 15154 esac 15155 archive_cmds_need_lc_F77=no 15156 hardcode_direct_F77=no 15157 hardcode_automatic_F77=yes 15158 hardcode_shlibpath_var_F77=unsupported 15159 whole_archive_flag_spec_F77='' 15160 link_all_deplibs_F77=yes 15161 if test "$GCC" = yes ; then 15162 output_verbose_link_cmd='echo' 15163 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15164 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15165 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15166 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}' 15167 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}' 15168 else 15169 case $cc_basename in 15170 xlc*) 15171 output_verbose_link_cmd='echo' 15172 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15173 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15175 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15176 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}' 15177 ;; 15178 *) 15179 ld_shlibs_F77=no 15180 ;; 15181 esac 15182 fi 15183 ;; 15184 15185 dgux*) 15186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15187 hardcode_libdir_flag_spec_F77='-L$libdir' 15188 hardcode_shlibpath_var_F77=no 15189 ;; 15190 15191 freebsd1*) 15192 ld_shlibs_F77=no 15193 ;; 15194 15195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15196 # support. Future versions do this automatically, but an explicit c++rt0.o 15197 # does not break anything, and helps significantly (at the cost of a little 15198 # extra space). 15199 freebsd2.2*) 15200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15201 hardcode_libdir_flag_spec_F77='-R$libdir' 15202 hardcode_direct_F77=yes 15203 hardcode_shlibpath_var_F77=no 15204 ;; 15205 15206 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15207 freebsd2*) 15208 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15209 hardcode_direct_F77=yes 15210 hardcode_minus_L_F77=yes 15211 hardcode_shlibpath_var_F77=no 15212 ;; 15213 15214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15215 freebsd* | dragonfly*) 15216 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15217 hardcode_libdir_flag_spec_F77='-R$libdir' 15218 hardcode_direct_F77=yes 15219 hardcode_shlibpath_var_F77=no 15220 ;; 15221 15222 hpux9*) 15223 if test "$GCC" = yes; then 15224 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' 15225 else 15226 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' 15227 fi 15228 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15229 hardcode_libdir_separator_F77=: 15230 hardcode_direct_F77=yes 15231 15232 # hardcode_minus_L: Not really in the search PATH, 15233 # but as the default location of the library. 15234 hardcode_minus_L_F77=yes 15235 export_dynamic_flag_spec_F77='${wl}-E' 15236 ;; 15237 15238 hpux10*) 15239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15240 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15241 else 15242 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15243 fi 15244 if test "$with_gnu_ld" = no; then 15245 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15246 hardcode_libdir_separator_F77=: 15247 15248 hardcode_direct_F77=yes 15249 export_dynamic_flag_spec_F77='${wl}-E' 15250 15251 # hardcode_minus_L: Not really in the search PATH, 15252 # but as the default location of the library. 15253 hardcode_minus_L_F77=yes 15254 fi 15255 ;; 15256 15257 hpux11*) 15258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15259 case $host_cpu in 15260 hppa*64*) 15261 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15262 ;; 15263 ia64*) 15264 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15265 ;; 15266 *) 15267 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15268 ;; 15269 esac 15270 else 15271 case $host_cpu in 15272 hppa*64*) 15273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15274 ;; 15275 ia64*) 15276 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15277 ;; 15278 *) 15279 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15280 ;; 15281 esac 15282 fi 15283 if test "$with_gnu_ld" = no; then 15284 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15285 hardcode_libdir_separator_F77=: 15286 15287 case $host_cpu in 15288 hppa*64*|ia64*) 15289 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15290 hardcode_direct_F77=no 15291 hardcode_shlibpath_var_F77=no 15292 ;; 15293 *) 15294 hardcode_direct_F77=yes 15295 export_dynamic_flag_spec_F77='${wl}-E' 15296 15297 # hardcode_minus_L: Not really in the search PATH, 15298 # but as the default location of the library. 15299 hardcode_minus_L_F77=yes 15300 ;; 15301 esac 15302 fi 15303 ;; 15304 15305 irix5* | irix6* | nonstopux*) 15306 if test "$GCC" = yes; then 15307 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' 15308 else 15309 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' 15310 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15311 fi 15312 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15313 hardcode_libdir_separator_F77=: 15314 link_all_deplibs_F77=yes 15315 ;; 15316 15317 netbsd* | netbsdelf*-gnu) 15318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15319 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15320 else 15321 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15322 fi 15323 hardcode_libdir_flag_spec_F77='-R$libdir' 15324 hardcode_direct_F77=yes 15325 hardcode_shlibpath_var_F77=no 15326 ;; 15327 15328 newsos6) 15329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15330 hardcode_direct_F77=yes 15331 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15332 hardcode_libdir_separator_F77=: 15333 hardcode_shlibpath_var_F77=no 15334 ;; 15335 15336 openbsd*) 15337 hardcode_direct_F77=yes 15338 hardcode_shlibpath_var_F77=no 15339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15340 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15341 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15343 export_dynamic_flag_spec_F77='${wl}-E' 15344 else 15345 case $host_os in 15346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15347 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15348 hardcode_libdir_flag_spec_F77='-R$libdir' 15349 ;; 15350 *) 15351 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15352 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15353 ;; 15354 esac 15355 fi 15356 ;; 15357 15358 os2*) 15359 hardcode_libdir_flag_spec_F77='-L$libdir' 15360 hardcode_minus_L_F77=yes 15361 allow_undefined_flag_F77=unsupported 15362 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' 15363 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15364 ;; 15365 15366 osf3*) 15367 if test "$GCC" = yes; then 15368 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15369 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' 15370 else 15371 allow_undefined_flag_F77=' -expect_unresolved \*' 15372 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' 15373 fi 15374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15375 hardcode_libdir_separator_F77=: 15376 ;; 15377 15378 osf4* | osf5*) # as osf3* with the addition of -msym flag 15379 if test "$GCC" = yes; then 15380 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15381 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' 15382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15383 else 15384 allow_undefined_flag_F77=' -expect_unresolved \*' 15385 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' 15386 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~ 15387 $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' 15388 15389 # Both c and cxx compiler support -rpath directly 15390 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15391 fi 15392 hardcode_libdir_separator_F77=: 15393 ;; 15394 15395 solaris*) 15396 no_undefined_flag_F77=' -z text' 15397 if test "$GCC" = yes; then 15398 wlarc='${wl}' 15399 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15400 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15402 else 15403 wlarc='' 15404 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15405 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15407 fi 15408 hardcode_libdir_flag_spec_F77='-R$libdir' 15409 hardcode_shlibpath_var_F77=no 15410 case $host_os in 15411 solaris2.[0-5] | solaris2.[0-5].*) ;; 15412 *) 15413 # The compiler driver will combine linker options so we 15414 # cannot just pass the convience library names through 15415 # without $wl, iff we do not link with $LD. 15416 # Luckily, gcc supports the same syntax we need for Sun Studio. 15417 # Supported since Solaris 2.6 (maybe 2.5.1?) 15418 case $wlarc in 15419 '') 15420 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15421 *) 15422 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15423 esac ;; 15424 esac 15425 link_all_deplibs_F77=yes 15426 ;; 15427 15428 sunos4*) 15429 if test "x$host_vendor" = xsequent; then 15430 # Use $CC to link under sequent, because it throws in some extra .o 15431 # files that make .init and .fini sections work. 15432 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15433 else 15434 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15435 fi 15436 hardcode_libdir_flag_spec_F77='-L$libdir' 15437 hardcode_direct_F77=yes 15438 hardcode_minus_L_F77=yes 15439 hardcode_shlibpath_var_F77=no 15440 ;; 15441 15442 sysv4) 15443 case $host_vendor in 15444 sni) 15445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15446 hardcode_direct_F77=yes # is this really true??? 15447 ;; 15448 siemens) 15449 ## LD is ld it makes a PLAMLIB 15450 ## CC just makes a GrossModule. 15451 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15452 reload_cmds_F77='$CC -r -o $output$reload_objs' 15453 hardcode_direct_F77=no 15454 ;; 15455 motorola) 15456 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15457 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15458 ;; 15459 esac 15460 runpath_var='LD_RUN_PATH' 15461 hardcode_shlibpath_var_F77=no 15462 ;; 15463 15464 sysv4.3*) 15465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15466 hardcode_shlibpath_var_F77=no 15467 export_dynamic_flag_spec_F77='-Bexport' 15468 ;; 15469 15470 sysv4*MP*) 15471 if test -d /usr/nec; then 15472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15473 hardcode_shlibpath_var_F77=no 15474 runpath_var=LD_RUN_PATH 15475 hardcode_runpath_var=yes 15476 ld_shlibs_F77=yes 15477 fi 15478 ;; 15479 15480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15481 no_undefined_flag_F77='${wl}-z,text' 15482 archive_cmds_need_lc_F77=no 15483 hardcode_shlibpath_var_F77=no 15484 runpath_var='LD_RUN_PATH' 15485 15486 if test "$GCC" = yes; then 15487 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15488 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15489 else 15490 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15491 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15492 fi 15493 ;; 15494 15495 sysv5* | sco3.2v5* | sco5v6*) 15496 # Note: We can NOT use -z defs as we might desire, because we do not 15497 # link with -lc, and that would cause any symbols used from libc to 15498 # always be unresolved, which means just about no library would 15499 # ever link correctly. If we're not using GNU ld we use -z text 15500 # though, which does catch some bad symbols but isn't as heavy-handed 15501 # as -z defs. 15502 no_undefined_flag_F77='${wl}-z,text' 15503 allow_undefined_flag_F77='${wl}-z,nodefs' 15504 archive_cmds_need_lc_F77=no 15505 hardcode_shlibpath_var_F77=no 15506 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15507 hardcode_libdir_separator_F77=':' 15508 link_all_deplibs_F77=yes 15509 export_dynamic_flag_spec_F77='${wl}-Bexport' 15510 runpath_var='LD_RUN_PATH' 15511 15512 if test "$GCC" = yes; then 15513 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15514 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15515 else 15516 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15517 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15518 fi 15519 ;; 15520 15521 uts4*) 15522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15523 hardcode_libdir_flag_spec_F77='-L$libdir' 15524 hardcode_shlibpath_var_F77=no 15525 ;; 15526 15527 *) 15528 ld_shlibs_F77=no 15529 ;; 15530 esac 15531 fi 15532 15533{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15534echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15535test "$ld_shlibs_F77" = no && can_build_shared=no 15536 15537# 15538# Do we need to explicitly link libc? 15539# 15540case "x$archive_cmds_need_lc_F77" in 15541x|xyes) 15542 # Assume -lc should be added 15543 archive_cmds_need_lc_F77=yes 15544 15545 if test "$enable_shared" = yes && test "$GCC" = yes; then 15546 case $archive_cmds_F77 in 15547 *'~'*) 15548 # FIXME: we may have to deal with multi-command sequences. 15549 ;; 15550 '$CC '*) 15551 # Test whether the compiler implicitly links with -lc since on some 15552 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15553 # to ld, don't add -lc before -lgcc. 15554 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15555echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15556 $rm conftest* 15557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15558 15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15560 (eval $ac_compile) 2>&5 15561 ac_status=$? 15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15563 (exit $ac_status); } 2>conftest.err; then 15564 soname=conftest 15565 lib=conftest 15566 libobjs=conftest.$ac_objext 15567 deplibs= 15568 wl=$lt_prog_compiler_wl_F77 15569 pic_flag=$lt_prog_compiler_pic_F77 15570 compiler_flags=-v 15571 linker_flags=-v 15572 verstring= 15573 output_objdir=. 15574 libname=conftest 15575 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15576 allow_undefined_flag_F77= 15577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15578 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15579 ac_status=$? 15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15581 (exit $ac_status); } 15582 then 15583 archive_cmds_need_lc_F77=no 15584 else 15585 archive_cmds_need_lc_F77=yes 15586 fi 15587 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15588 else 15589 cat conftest.err 1>&5 15590 fi 15591 $rm conftest* 15592 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15593echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15594 ;; 15595 esac 15596 fi 15597 ;; 15598esac 15599 15600{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15601echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15602library_names_spec= 15603libname_spec='lib$name' 15604soname_spec= 15605shrext_cmds=".so" 15606postinstall_cmds= 15607postuninstall_cmds= 15608finish_cmds= 15609finish_eval= 15610shlibpath_var= 15611shlibpath_overrides_runpath=unknown 15612version_type=none 15613dynamic_linker="$host_os ld.so" 15614sys_lib_dlsearch_path_spec="/lib /usr/lib" 15615if test "$GCC" = yes; then 15616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15618 # if the path contains ";" then we assume it to be the separator 15619 # otherwise default to the standard path separator (i.e. ":") - it is 15620 # assumed that no part of a normal pathname contains ";" but that should 15621 # okay in the real world where ";" in dirpaths is itself problematic. 15622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15623 else 15624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15625 fi 15626else 15627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15628fi 15629need_lib_prefix=unknown 15630hardcode_into_libs=no 15631 15632# when you set need_version to no, make sure it does not cause -set_version 15633# flags to be left without arguments 15634need_version=unknown 15635 15636case $host_os in 15637aix3*) 15638 version_type=linux 15639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15640 shlibpath_var=LIBPATH 15641 15642 # AIX 3 has no versioning support, so we append a major version to the name. 15643 soname_spec='${libname}${release}${shared_ext}$major' 15644 ;; 15645 15646aix4* | aix5*) 15647 version_type=linux 15648 need_lib_prefix=no 15649 need_version=no 15650 hardcode_into_libs=yes 15651 if test "$host_cpu" = ia64; then 15652 # AIX 5 supports IA64 15653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15654 shlibpath_var=LD_LIBRARY_PATH 15655 else 15656 # With GCC up to 2.95.x, collect2 would create an import file 15657 # for dependence libraries. The import file would start with 15658 # the line `#! .'. This would cause the generated library to 15659 # depend on `.', always an invalid library. This was fixed in 15660 # development snapshots of GCC prior to 3.0. 15661 case $host_os in 15662 aix4 | aix4.[01] | aix4.[01].*) 15663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15664 echo ' yes ' 15665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15666 : 15667 else 15668 can_build_shared=no 15669 fi 15670 ;; 15671 esac 15672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15673 # soname into executable. Probably we can add versioning support to 15674 # collect2, so additional links can be useful in future. 15675 if test "$aix_use_runtimelinking" = yes; then 15676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15677 # instead of lib<name>.a to let people know that these are not 15678 # typical AIX shared libraries. 15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15680 else 15681 # We preserve .a as extension for shared libraries through AIX4.2 15682 # and later when we are not doing run time linking. 15683 library_names_spec='${libname}${release}.a $libname.a' 15684 soname_spec='${libname}${release}${shared_ext}$major' 15685 fi 15686 shlibpath_var=LIBPATH 15687 fi 15688 ;; 15689 15690amigaos*) 15691 library_names_spec='$libname.ixlibrary $libname.a' 15692 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15693 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' 15694 ;; 15695 15696beos*) 15697 library_names_spec='${libname}${shared_ext}' 15698 dynamic_linker="$host_os ld.so" 15699 shlibpath_var=LIBRARY_PATH 15700 ;; 15701 15702bsdi[45]*) 15703 version_type=linux 15704 need_version=no 15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15706 soname_spec='${libname}${release}${shared_ext}$major' 15707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15708 shlibpath_var=LD_LIBRARY_PATH 15709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15711 # the default ld.so.conf also contains /usr/contrib/lib and 15712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15713 # libtool to hard-code these into programs 15714 ;; 15715 15716cygwin* | mingw* | pw32*) 15717 version_type=windows 15718 shrext_cmds=".dll" 15719 need_version=no 15720 need_lib_prefix=no 15721 15722 case $GCC,$host_os in 15723 yes,cygwin* | yes,mingw* | yes,pw32*) 15724 library_names_spec='$libname.dll.a' 15725 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15726 postinstall_cmds='base_file=`basename \${file}`~ 15727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15728 dldir=$destdir/`dirname \$dlpath`~ 15729 test -d \$dldir || mkdir -p \$dldir~ 15730 $install_prog $dir/$dlname \$dldir/$dlname~ 15731 chmod a+x \$dldir/$dlname' 15732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15733 dlpath=$dir/\$dldll~ 15734 $rm \$dlpath' 15735 shlibpath_overrides_runpath=yes 15736 15737 case $host_os in 15738 cygwin*) 15739 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15742 ;; 15743 mingw*) 15744 # MinGW DLLs use traditional 'lib' prefix 15745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15748 # It is most probably a Windows format PATH printed by 15749 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15750 # path with ; separators, and with drive letters. We can handle the 15751 # drive letters (cygwin fileutils understands them), so leave them, 15752 # especially as we might pass files found there to a mingw objdump, 15753 # which wouldn't understand a cygwinified path. Ahh. 15754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15755 else 15756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15757 fi 15758 ;; 15759 pw32*) 15760 # pw32 DLLs use 'pw' prefix rather than 'lib' 15761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15762 ;; 15763 esac 15764 ;; 15765 15766 *) 15767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15768 ;; 15769 esac 15770 dynamic_linker='Win32 ld.exe' 15771 # FIXME: first we should search . and the directory the executable is in 15772 shlibpath_var=PATH 15773 ;; 15774 15775darwin* | rhapsody*) 15776 dynamic_linker="$host_os dyld" 15777 version_type=darwin 15778 need_lib_prefix=no 15779 need_version=no 15780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15781 soname_spec='${libname}${release}${major}$shared_ext' 15782 shlibpath_overrides_runpath=yes 15783 shlibpath_var=DYLD_LIBRARY_PATH 15784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15785 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15786 if test "$GCC" = yes; then 15787 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15788 else 15789 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15790 fi 15791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15792 ;; 15793 15794dgux*) 15795 version_type=linux 15796 need_lib_prefix=no 15797 need_version=no 15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15799 soname_spec='${libname}${release}${shared_ext}$major' 15800 shlibpath_var=LD_LIBRARY_PATH 15801 ;; 15802 15803freebsd1*) 15804 dynamic_linker=no 15805 ;; 15806 15807freebsd* | dragonfly*) 15808 # DragonFly does not have aout. When/if they implement a new 15809 # versioning mechanism, adjust this. 15810 if test -x /usr/bin/objformat; then 15811 objformat=`/usr/bin/objformat` 15812 else 15813 case $host_os in 15814 freebsd[123]*) objformat=aout ;; 15815 *) objformat=elf ;; 15816 esac 15817 fi 15818 version_type=freebsd-$objformat 15819 case $version_type in 15820 freebsd-elf*) 15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15822 need_version=no 15823 need_lib_prefix=no 15824 ;; 15825 freebsd-*) 15826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15827 need_version=yes 15828 ;; 15829 esac 15830 shlibpath_var=LD_LIBRARY_PATH 15831 case $host_os in 15832 freebsd2*) 15833 shlibpath_overrides_runpath=yes 15834 ;; 15835 freebsd3.[01]* | freebsdelf3.[01]*) 15836 shlibpath_overrides_runpath=yes 15837 hardcode_into_libs=yes 15838 ;; 15839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15841 shlibpath_overrides_runpath=no 15842 hardcode_into_libs=yes 15843 ;; 15844 freebsd*) # from 4.6 on 15845 shlibpath_overrides_runpath=yes 15846 hardcode_into_libs=yes 15847 ;; 15848 esac 15849 ;; 15850 15851gnu*) 15852 version_type=linux 15853 need_lib_prefix=no 15854 need_version=no 15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15856 soname_spec='${libname}${release}${shared_ext}$major' 15857 shlibpath_var=LD_LIBRARY_PATH 15858 hardcode_into_libs=yes 15859 ;; 15860 15861hpux9* | hpux10* | hpux11*) 15862 # Give a soname corresponding to the major version so that dld.sl refuses to 15863 # link against other versions. 15864 version_type=sunos 15865 need_lib_prefix=no 15866 need_version=no 15867 case $host_cpu in 15868 ia64*) 15869 shrext_cmds='.so' 15870 hardcode_into_libs=yes 15871 dynamic_linker="$host_os dld.so" 15872 shlibpath_var=LD_LIBRARY_PATH 15873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15875 soname_spec='${libname}${release}${shared_ext}$major' 15876 if test "X$HPUX_IA64_MODE" = X32; then 15877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15878 else 15879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15880 fi 15881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15882 ;; 15883 hppa*64*) 15884 shrext_cmds='.sl' 15885 hardcode_into_libs=yes 15886 dynamic_linker="$host_os dld.sl" 15887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15890 soname_spec='${libname}${release}${shared_ext}$major' 15891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15893 ;; 15894 *) 15895 shrext_cmds='.sl' 15896 dynamic_linker="$host_os dld.sl" 15897 shlibpath_var=SHLIB_PATH 15898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15900 soname_spec='${libname}${release}${shared_ext}$major' 15901 ;; 15902 esac 15903 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15904 postinstall_cmds='chmod 555 $lib' 15905 ;; 15906 15907interix3*) 15908 version_type=linux 15909 need_lib_prefix=no 15910 need_version=no 15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15912 soname_spec='${libname}${release}${shared_ext}$major' 15913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15914 shlibpath_var=LD_LIBRARY_PATH 15915 shlibpath_overrides_runpath=no 15916 hardcode_into_libs=yes 15917 ;; 15918 15919irix5* | irix6* | nonstopux*) 15920 case $host_os in 15921 nonstopux*) version_type=nonstopux ;; 15922 *) 15923 if test "$lt_cv_prog_gnu_ld" = yes; then 15924 version_type=linux 15925 else 15926 version_type=irix 15927 fi ;; 15928 esac 15929 need_lib_prefix=no 15930 need_version=no 15931 soname_spec='${libname}${release}${shared_ext}$major' 15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15933 case $host_os in 15934 irix5* | nonstopux*) 15935 libsuff= shlibsuff= 15936 ;; 15937 *) 15938 case $LD in # libtool.m4 will add one of these switches to LD 15939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15940 libsuff= shlibsuff= libmagic=32-bit;; 15941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15942 libsuff=32 shlibsuff=N32 libmagic=N32;; 15943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15944 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15945 *) libsuff= shlibsuff= libmagic=never-match;; 15946 esac 15947 ;; 15948 esac 15949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15950 shlibpath_overrides_runpath=no 15951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15953 hardcode_into_libs=yes 15954 ;; 15955 15956# No shared lib support for Linux oldld, aout, or coff. 15957linux*oldld* | linux*aout* | linux*coff*) 15958 dynamic_linker=no 15959 ;; 15960 15961# This must be Linux ELF. 15962linux* | k*bsd*-gnu) 15963 version_type=linux 15964 need_lib_prefix=no 15965 need_version=no 15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15967 soname_spec='${libname}${release}${shared_ext}$major' 15968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15969 shlibpath_var=LD_LIBRARY_PATH 15970 shlibpath_overrides_runpath=no 15971 # This implies no fast_install, which is unacceptable. 15972 # Some rework will be needed to allow for fast_install 15973 # before this can be enabled. 15974 hardcode_into_libs=yes 15975 15976 # Append ld.so.conf contents to the search path 15977 if test -f /etc/ld.so.conf; then 15978 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15980 fi 15981 15982 # We used to test for /lib/ld.so.1 and disable shared libraries on 15983 # powerpc, because MkLinux only supported shared libraries with the 15984 # GNU dynamic linker. Since this was broken with cross compilers, 15985 # most powerpc-linux boxes support dynamic linking these days and 15986 # people can always --disable-shared, the test was removed, and we 15987 # assume the GNU/Linux dynamic linker is in use. 15988 dynamic_linker='GNU/Linux ld.so' 15989 ;; 15990 15991netbsdelf*-gnu) 15992 version_type=linux 15993 need_lib_prefix=no 15994 need_version=no 15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15996 soname_spec='${libname}${release}${shared_ext}$major' 15997 shlibpath_var=LD_LIBRARY_PATH 15998 shlibpath_overrides_runpath=no 15999 hardcode_into_libs=yes 16000 dynamic_linker='NetBSD ld.elf_so' 16001 ;; 16002 16003netbsd*) 16004 version_type=sunos 16005 need_lib_prefix=no 16006 need_version=no 16007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16010 dynamic_linker='NetBSD (a.out) ld.so' 16011 else 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16013 soname_spec='${libname}${release}${shared_ext}$major' 16014 dynamic_linker='NetBSD ld.elf_so' 16015 fi 16016 shlibpath_var=LD_LIBRARY_PATH 16017 shlibpath_overrides_runpath=yes 16018 hardcode_into_libs=yes 16019 ;; 16020 16021newsos6) 16022 version_type=linux 16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16024 shlibpath_var=LD_LIBRARY_PATH 16025 shlibpath_overrides_runpath=yes 16026 ;; 16027 16028nto-qnx*) 16029 version_type=linux 16030 need_lib_prefix=no 16031 need_version=no 16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16033 soname_spec='${libname}${release}${shared_ext}$major' 16034 shlibpath_var=LD_LIBRARY_PATH 16035 shlibpath_overrides_runpath=yes 16036 ;; 16037 16038openbsd*) 16039 version_type=sunos 16040 sys_lib_dlsearch_path_spec="/usr/lib" 16041 need_lib_prefix=no 16042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16043 case $host_os in 16044 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16045 *) need_version=no ;; 16046 esac 16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16049 shlibpath_var=LD_LIBRARY_PATH 16050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16051 case $host_os in 16052 openbsd2.[89] | openbsd2.[89].*) 16053 shlibpath_overrides_runpath=no 16054 ;; 16055 *) 16056 shlibpath_overrides_runpath=yes 16057 ;; 16058 esac 16059 else 16060 shlibpath_overrides_runpath=yes 16061 fi 16062 ;; 16063 16064os2*) 16065 libname_spec='$name' 16066 shrext_cmds=".dll" 16067 need_lib_prefix=no 16068 library_names_spec='$libname${shared_ext} $libname.a' 16069 dynamic_linker='OS/2 ld.exe' 16070 shlibpath_var=LIBPATH 16071 ;; 16072 16073osf3* | osf4* | osf5*) 16074 version_type=osf 16075 need_lib_prefix=no 16076 need_version=no 16077 soname_spec='${libname}${release}${shared_ext}$major' 16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16079 shlibpath_var=LD_LIBRARY_PATH 16080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16082 ;; 16083 16084solaris*) 16085 version_type=linux 16086 need_lib_prefix=no 16087 need_version=no 16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16089 soname_spec='${libname}${release}${shared_ext}$major' 16090 shlibpath_var=LD_LIBRARY_PATH 16091 shlibpath_overrides_runpath=yes 16092 hardcode_into_libs=yes 16093 # ldd complains unless libraries are executable 16094 postinstall_cmds='chmod +x $lib' 16095 ;; 16096 16097sunos4*) 16098 version_type=sunos 16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16101 shlibpath_var=LD_LIBRARY_PATH 16102 shlibpath_overrides_runpath=yes 16103 if test "$with_gnu_ld" = yes; then 16104 need_lib_prefix=no 16105 fi 16106 need_version=yes 16107 ;; 16108 16109sysv4 | sysv4.3*) 16110 version_type=linux 16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16112 soname_spec='${libname}${release}${shared_ext}$major' 16113 shlibpath_var=LD_LIBRARY_PATH 16114 case $host_vendor in 16115 sni) 16116 shlibpath_overrides_runpath=no 16117 need_lib_prefix=no 16118 export_dynamic_flag_spec='${wl}-Blargedynsym' 16119 runpath_var=LD_RUN_PATH 16120 ;; 16121 siemens) 16122 need_lib_prefix=no 16123 ;; 16124 motorola) 16125 need_lib_prefix=no 16126 need_version=no 16127 shlibpath_overrides_runpath=no 16128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16129 ;; 16130 esac 16131 ;; 16132 16133sysv4*MP*) 16134 if test -d /usr/nec ;then 16135 version_type=linux 16136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16137 soname_spec='$libname${shared_ext}.$major' 16138 shlibpath_var=LD_LIBRARY_PATH 16139 fi 16140 ;; 16141 16142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16143 version_type=freebsd-elf 16144 need_lib_prefix=no 16145 need_version=no 16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16147 soname_spec='${libname}${release}${shared_ext}$major' 16148 shlibpath_var=LD_LIBRARY_PATH 16149 hardcode_into_libs=yes 16150 if test "$with_gnu_ld" = yes; then 16151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16152 shlibpath_overrides_runpath=no 16153 else 16154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16155 shlibpath_overrides_runpath=yes 16156 case $host_os in 16157 sco3.2v5*) 16158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16159 ;; 16160 esac 16161 fi 16162 sys_lib_dlsearch_path_spec='/usr/lib' 16163 ;; 16164 16165uts4*) 16166 version_type=linux 16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16168 soname_spec='${libname}${release}${shared_ext}$major' 16169 shlibpath_var=LD_LIBRARY_PATH 16170 ;; 16171 16172*) 16173 dynamic_linker=no 16174 ;; 16175esac 16176{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16177echo "${ECHO_T}$dynamic_linker" >&6; } 16178test "$dynamic_linker" = no && can_build_shared=no 16179 16180variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16181if test "$GCC" = yes; then 16182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16183fi 16184 16185{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16186echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16187hardcode_action_F77= 16188if test -n "$hardcode_libdir_flag_spec_F77" || \ 16189 test -n "$runpath_var_F77" || \ 16190 test "X$hardcode_automatic_F77" = "Xyes" ; then 16191 16192 # We can hardcode non-existant directories. 16193 if test "$hardcode_direct_F77" != no && 16194 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16195 # have to relink, otherwise we might link with an installed library 16196 # when we should be linking with a yet-to-be-installed one 16197 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16198 test "$hardcode_minus_L_F77" != no; then 16199 # Linking always hardcodes the temporary library directory. 16200 hardcode_action_F77=relink 16201 else 16202 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16203 hardcode_action_F77=immediate 16204 fi 16205else 16206 # We cannot hardcode anything, or else we can only hardcode existing 16207 # directories. 16208 hardcode_action_F77=unsupported 16209fi 16210{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16211echo "${ECHO_T}$hardcode_action_F77" >&6; } 16212 16213if test "$hardcode_action_F77" = relink; then 16214 # Fast installation is not supported 16215 enable_fast_install=no 16216elif test "$shlibpath_overrides_runpath" = yes || 16217 test "$enable_shared" = no; then 16218 # Fast installation is not necessary 16219 enable_fast_install=needless 16220fi 16221 16222 16223# The else clause should only fire when bootstrapping the 16224# libtool distribution, otherwise you forgot to ship ltmain.sh 16225# with your package, and you will get complaints that there are 16226# no rules to generate ltmain.sh. 16227if test -f "$ltmain"; then 16228 # See if we are running on zsh, and set the options which allow our commands through 16229 # without removal of \ escapes. 16230 if test -n "${ZSH_VERSION+set}" ; then 16231 setopt NO_GLOB_SUBST 16232 fi 16233 # Now quote all the things that may contain metacharacters while being 16234 # careful not to overquote the AC_SUBSTed values. We take copies of the 16235 # variables and quote the copies for generation of the libtool script. 16236 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16237 SED SHELL STRIP \ 16238 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16239 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16240 deplibs_check_method reload_flag reload_cmds need_locks \ 16241 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16242 lt_cv_sys_global_symbol_to_c_name_address \ 16243 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16244 old_postinstall_cmds old_postuninstall_cmds \ 16245 compiler_F77 \ 16246 CC_F77 \ 16247 LD_F77 \ 16248 lt_prog_compiler_wl_F77 \ 16249 lt_prog_compiler_pic_F77 \ 16250 lt_prog_compiler_static_F77 \ 16251 lt_prog_compiler_no_builtin_flag_F77 \ 16252 export_dynamic_flag_spec_F77 \ 16253 thread_safe_flag_spec_F77 \ 16254 whole_archive_flag_spec_F77 \ 16255 enable_shared_with_static_runtimes_F77 \ 16256 old_archive_cmds_F77 \ 16257 old_archive_from_new_cmds_F77 \ 16258 predep_objects_F77 \ 16259 postdep_objects_F77 \ 16260 predeps_F77 \ 16261 postdeps_F77 \ 16262 compiler_lib_search_path_F77 \ 16263 archive_cmds_F77 \ 16264 archive_expsym_cmds_F77 \ 16265 postinstall_cmds_F77 \ 16266 postuninstall_cmds_F77 \ 16267 old_archive_from_expsyms_cmds_F77 \ 16268 allow_undefined_flag_F77 \ 16269 no_undefined_flag_F77 \ 16270 export_symbols_cmds_F77 \ 16271 hardcode_libdir_flag_spec_F77 \ 16272 hardcode_libdir_flag_spec_ld_F77 \ 16273 hardcode_libdir_separator_F77 \ 16274 hardcode_automatic_F77 \ 16275 module_cmds_F77 \ 16276 module_expsym_cmds_F77 \ 16277 lt_cv_prog_compiler_c_o_F77 \ 16278 exclude_expsyms_F77 \ 16279 include_expsyms_F77; do 16280 16281 case $var in 16282 old_archive_cmds_F77 | \ 16283 old_archive_from_new_cmds_F77 | \ 16284 archive_cmds_F77 | \ 16285 archive_expsym_cmds_F77 | \ 16286 module_cmds_F77 | \ 16287 module_expsym_cmds_F77 | \ 16288 old_archive_from_expsyms_cmds_F77 | \ 16289 export_symbols_cmds_F77 | \ 16290 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16291 postinstall_cmds | postuninstall_cmds | \ 16292 old_postinstall_cmds | old_postuninstall_cmds | \ 16293 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16294 # Double-quote double-evaled strings. 16295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16296 ;; 16297 *) 16298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16299 ;; 16300 esac 16301 done 16302 16303 case $lt_echo in 16304 *'\$0 --fallback-echo"') 16305 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16306 ;; 16307 esac 16308 16309cfgfile="$ofile" 16310 16311 cat <<__EOF__ >> "$cfgfile" 16312# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16313 16314# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16315 16316# Shell to use when invoking shell scripts. 16317SHELL=$lt_SHELL 16318 16319# Whether or not to build shared libraries. 16320build_libtool_libs=$enable_shared 16321 16322# Whether or not to build static libraries. 16323build_old_libs=$enable_static 16324 16325# Whether or not to add -lc for building shared libraries. 16326build_libtool_need_lc=$archive_cmds_need_lc_F77 16327 16328# Whether or not to disallow shared libs when runtime libs are static 16329allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16330 16331# Whether or not to optimize for fast installation. 16332fast_install=$enable_fast_install 16333 16334# The host system. 16335host_alias=$host_alias 16336host=$host 16337host_os=$host_os 16338 16339# The build system. 16340build_alias=$build_alias 16341build=$build 16342build_os=$build_os 16343 16344# An echo program that does not interpret backslashes. 16345echo=$lt_echo 16346 16347# The archiver. 16348AR=$lt_AR 16349AR_FLAGS=$lt_AR_FLAGS 16350 16351# A C compiler. 16352LTCC=$lt_LTCC 16353 16354# LTCC compiler flags. 16355LTCFLAGS=$lt_LTCFLAGS 16356 16357# A language-specific compiler. 16358CC=$lt_compiler_F77 16359 16360# Is the compiler the GNU C compiler? 16361with_gcc=$GCC_F77 16362 16363# An ERE matcher. 16364EGREP=$lt_EGREP 16365 16366# The linker used to build libraries. 16367LD=$lt_LD_F77 16368 16369# Whether we need hard or soft links. 16370LN_S=$lt_LN_S 16371 16372# A BSD-compatible nm program. 16373NM=$lt_NM 16374 16375# A symbol stripping program 16376STRIP=$lt_STRIP 16377 16378# Used to examine libraries when file_magic_cmd begins "file" 16379MAGIC_CMD=$MAGIC_CMD 16380 16381# Used on cygwin: DLL creation program. 16382DLLTOOL="$DLLTOOL" 16383 16384# Used on cygwin: object dumper. 16385OBJDUMP="$OBJDUMP" 16386 16387# Used on cygwin: assembler. 16388AS="$AS" 16389 16390# The name of the directory that contains temporary libtool files. 16391objdir=$objdir 16392 16393# How to create reloadable object files. 16394reload_flag=$lt_reload_flag 16395reload_cmds=$lt_reload_cmds 16396 16397# How to pass a linker flag through the compiler. 16398wl=$lt_lt_prog_compiler_wl_F77 16399 16400# Object file suffix (normally "o"). 16401objext="$ac_objext" 16402 16403# Old archive suffix (normally "a"). 16404libext="$libext" 16405 16406# Shared library suffix (normally ".so"). 16407shrext_cmds='$shrext_cmds' 16408 16409# Executable file suffix (normally ""). 16410exeext="$exeext" 16411 16412# Additional compiler flags for building library objects. 16413pic_flag=$lt_lt_prog_compiler_pic_F77 16414pic_mode=$pic_mode 16415 16416# What is the maximum length of a command? 16417max_cmd_len=$lt_cv_sys_max_cmd_len 16418 16419# Does compiler simultaneously support -c and -o options? 16420compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16421 16422# Must we lock files when doing compilation? 16423need_locks=$lt_need_locks 16424 16425# Do we need the lib prefix for modules? 16426need_lib_prefix=$need_lib_prefix 16427 16428# Do we need a version for libraries? 16429need_version=$need_version 16430 16431# Whether dlopen is supported. 16432dlopen_support=$enable_dlopen 16433 16434# Whether dlopen of programs is supported. 16435dlopen_self=$enable_dlopen_self 16436 16437# Whether dlopen of statically linked programs is supported. 16438dlopen_self_static=$enable_dlopen_self_static 16439 16440# Compiler flag to prevent dynamic linking. 16441link_static_flag=$lt_lt_prog_compiler_static_F77 16442 16443# Compiler flag to turn off builtin functions. 16444no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16445 16446# Compiler flag to allow reflexive dlopens. 16447export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16448 16449# Compiler flag to generate shared objects directly from archives. 16450whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16451 16452# Compiler flag to generate thread-safe objects. 16453thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16454 16455# Library versioning type. 16456version_type=$version_type 16457 16458# Format of library name prefix. 16459libname_spec=$lt_libname_spec 16460 16461# List of archive names. First name is the real one, the rest are links. 16462# The last name is the one that the linker finds with -lNAME. 16463library_names_spec=$lt_library_names_spec 16464 16465# The coded name of the library, if different from the real name. 16466soname_spec=$lt_soname_spec 16467 16468# Commands used to build and install an old-style archive. 16469RANLIB=$lt_RANLIB 16470old_archive_cmds=$lt_old_archive_cmds_F77 16471old_postinstall_cmds=$lt_old_postinstall_cmds 16472old_postuninstall_cmds=$lt_old_postuninstall_cmds 16473 16474# Create an old-style archive from a shared archive. 16475old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16476 16477# Create a temporary old-style archive to link instead of a shared archive. 16478old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16479 16480# Commands used to build and install a shared archive. 16481archive_cmds=$lt_archive_cmds_F77 16482archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16483postinstall_cmds=$lt_postinstall_cmds 16484postuninstall_cmds=$lt_postuninstall_cmds 16485 16486# Commands used to build a loadable module (assumed same as above if empty) 16487module_cmds=$lt_module_cmds_F77 16488module_expsym_cmds=$lt_module_expsym_cmds_F77 16489 16490# Commands to strip libraries. 16491old_striplib=$lt_old_striplib 16492striplib=$lt_striplib 16493 16494# Dependencies to place before the objects being linked to create a 16495# shared library. 16496predep_objects=$lt_predep_objects_F77 16497 16498# Dependencies to place after the objects being linked to create a 16499# shared library. 16500postdep_objects=$lt_postdep_objects_F77 16501 16502# Dependencies to place before the objects being linked to create a 16503# shared library. 16504predeps=$lt_predeps_F77 16505 16506# Dependencies to place after the objects being linked to create a 16507# shared library. 16508postdeps=$lt_postdeps_F77 16509 16510# The library search path used internally by the compiler when linking 16511# a shared library. 16512compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16513 16514# Method to check whether dependent libraries are shared objects. 16515deplibs_check_method=$lt_deplibs_check_method 16516 16517# Command to use when deplibs_check_method == file_magic. 16518file_magic_cmd=$lt_file_magic_cmd 16519 16520# Flag that allows shared libraries with undefined symbols to be built. 16521allow_undefined_flag=$lt_allow_undefined_flag_F77 16522 16523# Flag that forces no undefined symbols. 16524no_undefined_flag=$lt_no_undefined_flag_F77 16525 16526# Commands used to finish a libtool library installation in a directory. 16527finish_cmds=$lt_finish_cmds 16528 16529# Same as above, but a single script fragment to be evaled but not shown. 16530finish_eval=$lt_finish_eval 16531 16532# Take the output of nm and produce a listing of raw symbols and C names. 16533global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16534 16535# Transform the output of nm in a proper C declaration 16536global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16537 16538# Transform the output of nm in a C name address pair 16539global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16540 16541# This is the shared library runtime path variable. 16542runpath_var=$runpath_var 16543 16544# This is the shared library path variable. 16545shlibpath_var=$shlibpath_var 16546 16547# Is shlibpath searched before the hard-coded library search path? 16548shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16549 16550# How to hardcode a shared library path into an executable. 16551hardcode_action=$hardcode_action_F77 16552 16553# Whether we should hardcode library paths into libraries. 16554hardcode_into_libs=$hardcode_into_libs 16555 16556# Flag to hardcode \$libdir into a binary during linking. 16557# This must work even if \$libdir does not exist. 16558hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16559 16560# If ld is used when linking, flag to hardcode \$libdir into 16561# a binary during linking. This must work even if \$libdir does 16562# not exist. 16563hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16564 16565# Whether we need a single -rpath flag with a separated argument. 16566hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16567 16568# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16569# resulting binary. 16570hardcode_direct=$hardcode_direct_F77 16571 16572# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16573# resulting binary. 16574hardcode_minus_L=$hardcode_minus_L_F77 16575 16576# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16577# the resulting binary. 16578hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16579 16580# Set to yes if building a shared library automatically hardcodes DIR into the library 16581# and all subsequent libraries and executables linked against it. 16582hardcode_automatic=$hardcode_automatic_F77 16583 16584# Variables whose values should be saved in libtool wrapper scripts and 16585# restored at relink time. 16586variables_saved_for_relink="$variables_saved_for_relink" 16587 16588# Whether libtool must link a program against all its dependency libraries. 16589link_all_deplibs=$link_all_deplibs_F77 16590 16591# Compile-time system search path for libraries 16592sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16593 16594# Run-time system search path for libraries 16595sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16596 16597# Fix the shell variable \$srcfile for the compiler. 16598fix_srcfile_path="$fix_srcfile_path_F77" 16599 16600# Set to yes if exported symbols are required. 16601always_export_symbols=$always_export_symbols_F77 16602 16603# The commands to list exported symbols. 16604export_symbols_cmds=$lt_export_symbols_cmds_F77 16605 16606# The commands to extract the exported symbol list from a shared archive. 16607extract_expsyms_cmds=$lt_extract_expsyms_cmds 16608 16609# Symbols that should not be listed in the preloaded symbols. 16610exclude_expsyms=$lt_exclude_expsyms_F77 16611 16612# Symbols that must always be exported. 16613include_expsyms=$lt_include_expsyms_F77 16614 16615# ### END LIBTOOL TAG CONFIG: $tagname 16616 16617__EOF__ 16618 16619 16620else 16621 # If there is no Makefile yet, we rely on a make rule to execute 16622 # `config.status --recheck' to rerun these tests and create the 16623 # libtool script then. 16624 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16625 if test -f "$ltmain_in"; then 16626 test -f Makefile && make "$ltmain" 16627 fi 16628fi 16629 16630 16631ac_ext=c 16632ac_cpp='$CPP $CPPFLAGS' 16633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16635ac_compiler_gnu=$ac_cv_c_compiler_gnu 16636 16637CC="$lt_save_CC" 16638 16639 else 16640 tagname="" 16641 fi 16642 ;; 16643 16644 GCJ) 16645 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16646 16647 16648# Source file extension for Java test sources. 16649ac_ext=java 16650 16651# Object file extension for compiled Java test sources. 16652objext=o 16653objext_GCJ=$objext 16654 16655# Code to be used in simple compile tests 16656lt_simple_compile_test_code="class foo {}\n" 16657 16658# Code to be used in simple link tests 16659lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16660 16661# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16662 16663# If no C compiler was specified, use CC. 16664LTCC=${LTCC-"$CC"} 16665 16666# If no C compiler flags were specified, use CFLAGS. 16667LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16668 16669# Allow CC to be a program name with arguments. 16670compiler=$CC 16671 16672 16673# save warnings/boilerplate of simple test code 16674ac_outfile=conftest.$ac_objext 16675printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16676eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16677_lt_compiler_boilerplate=`cat conftest.err` 16678$rm conftest* 16679 16680ac_outfile=conftest.$ac_objext 16681printf "$lt_simple_link_test_code" >conftest.$ac_ext 16682eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16683_lt_linker_boilerplate=`cat conftest.err` 16684$rm conftest* 16685 16686 16687# Allow CC to be a program name with arguments. 16688lt_save_CC="$CC" 16689CC=${GCJ-"gcj"} 16690compiler=$CC 16691compiler_GCJ=$CC 16692for cc_temp in $compiler""; do 16693 case $cc_temp in 16694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16696 \-*) ;; 16697 *) break;; 16698 esac 16699done 16700cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16701 16702 16703# GCJ did not exist at the time GCC didn't implicitly link libc in. 16704archive_cmds_need_lc_GCJ=no 16705 16706old_archive_cmds_GCJ=$old_archive_cmds 16707 16708## CAVEAT EMPTOR: 16709## There is no encapsulation within the following macros, do not change 16710## the running order or otherwise move them around unless you know exactly 16711## what you are doing... 16712 16713lt_prog_compiler_no_builtin_flag_GCJ= 16714 16715if test "$GCC" = yes; then 16716 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16717 16718 16719{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16720echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16721if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16722 echo $ECHO_N "(cached) $ECHO_C" >&6 16723else 16724 lt_cv_prog_compiler_rtti_exceptions=no 16725 ac_outfile=conftest.$ac_objext 16726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16727 lt_compiler_flag="-fno-rtti -fno-exceptions" 16728 # Insert the option either (1) after the last *FLAGS variable, or 16729 # (2) before a word containing "conftest.", or (3) at the end. 16730 # Note that $ac_compile itself does not contain backslashes and begins 16731 # with a dollar sign (not a hyphen), so the echo should work correctly. 16732 # The option is referenced via a variable to avoid confusing sed. 16733 lt_compile=`echo "$ac_compile" | $SED \ 16734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16736 -e 's:$: $lt_compiler_flag:'` 16737 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16738 (eval "$lt_compile" 2>conftest.err) 16739 ac_status=$? 16740 cat conftest.err >&5 16741 echo "$as_me:__oline__: \$? = $ac_status" >&5 16742 if (exit $ac_status) && test -s "$ac_outfile"; then 16743 # The compiler can only warn and ignore the option if not recognized 16744 # So say no if there are warnings other than the usual output. 16745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16748 lt_cv_prog_compiler_rtti_exceptions=yes 16749 fi 16750 fi 16751 $rm conftest* 16752 16753fi 16754{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16755echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16756 16757if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16758 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16759else 16760 : 16761fi 16762 16763fi 16764 16765lt_prog_compiler_wl_GCJ= 16766lt_prog_compiler_pic_GCJ= 16767lt_prog_compiler_static_GCJ= 16768 16769{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16770echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16771 16772 if test "$GCC" = yes; then 16773 lt_prog_compiler_wl_GCJ='-Wl,' 16774 lt_prog_compiler_static_GCJ='-static' 16775 16776 case $host_os in 16777 aix*) 16778 # All AIX code is PIC. 16779 if test "$host_cpu" = ia64; then 16780 # AIX 5 now supports IA64 processor 16781 lt_prog_compiler_static_GCJ='-Bstatic' 16782 fi 16783 ;; 16784 16785 amigaos*) 16786 # FIXME: we need at least 68020 code to build shared libraries, but 16787 # adding the `-m68020' flag to GCC prevents building anything better, 16788 # like `-m68040'. 16789 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16790 ;; 16791 16792 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16793 # PIC is the default for these OSes. 16794 ;; 16795 16796 mingw* | pw32* | os2*) 16797 # This hack is so that the source file can tell whether it is being 16798 # built for inclusion in a dll (and should export symbols for example). 16799 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16800 ;; 16801 16802 darwin* | rhapsody*) 16803 # PIC is the default on this platform 16804 # Common symbols not allowed in MH_DYLIB files 16805 lt_prog_compiler_pic_GCJ='-fno-common' 16806 ;; 16807 16808 interix3*) 16809 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16810 # Instead, we relocate shared libraries at runtime. 16811 ;; 16812 16813 msdosdjgpp*) 16814 # Just because we use GCC doesn't mean we suddenly get shared libraries 16815 # on systems that don't support them. 16816 lt_prog_compiler_can_build_shared_GCJ=no 16817 enable_shared=no 16818 ;; 16819 16820 sysv4*MP*) 16821 if test -d /usr/nec; then 16822 lt_prog_compiler_pic_GCJ=-Kconform_pic 16823 fi 16824 ;; 16825 16826 hpux*) 16827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16828 # not for PA HP-UX. 16829 case $host_cpu in 16830 hppa*64*|ia64*) 16831 # +Z the default 16832 ;; 16833 *) 16834 lt_prog_compiler_pic_GCJ='-fPIC' 16835 ;; 16836 esac 16837 ;; 16838 16839 *) 16840 lt_prog_compiler_pic_GCJ='-fPIC' 16841 ;; 16842 esac 16843 else 16844 # PORTME Check for flag to pass linker flags through the system compiler. 16845 case $host_os in 16846 aix*) 16847 lt_prog_compiler_wl_GCJ='-Wl,' 16848 if test "$host_cpu" = ia64; then 16849 # AIX 5 now supports IA64 processor 16850 lt_prog_compiler_static_GCJ='-Bstatic' 16851 else 16852 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16853 fi 16854 ;; 16855 darwin*) 16856 # PIC is the default on this platform 16857 # Common symbols not allowed in MH_DYLIB files 16858 case $cc_basename in 16859 xlc*) 16860 lt_prog_compiler_pic_GCJ='-qnocommon' 16861 lt_prog_compiler_wl_GCJ='-Wl,' 16862 ;; 16863 esac 16864 ;; 16865 16866 mingw* | pw32* | os2*) 16867 # This hack is so that the source file can tell whether it is being 16868 # built for inclusion in a dll (and should export symbols for example). 16869 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16870 ;; 16871 16872 hpux9* | hpux10* | hpux11*) 16873 lt_prog_compiler_wl_GCJ='-Wl,' 16874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16875 # not for PA HP-UX. 16876 case $host_cpu in 16877 hppa*64*|ia64*) 16878 # +Z the default 16879 ;; 16880 *) 16881 lt_prog_compiler_pic_GCJ='+Z' 16882 ;; 16883 esac 16884 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16885 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16886 ;; 16887 16888 irix5* | irix6* | nonstopux*) 16889 lt_prog_compiler_wl_GCJ='-Wl,' 16890 # PIC (with -KPIC) is the default. 16891 lt_prog_compiler_static_GCJ='-non_shared' 16892 ;; 16893 16894 newsos6) 16895 lt_prog_compiler_pic_GCJ='-KPIC' 16896 lt_prog_compiler_static_GCJ='-Bstatic' 16897 ;; 16898 16899 linux* | k*bsd*-gnu) 16900 case $cc_basename in 16901 icc* | ecc*) 16902 lt_prog_compiler_wl_GCJ='-Wl,' 16903 lt_prog_compiler_pic_GCJ='-KPIC' 16904 lt_prog_compiler_static_GCJ='-static' 16905 ;; 16906 pgcc* | pgf77* | pgf90* | pgf95*) 16907 # Portland Group compilers (*not* the Pentium gcc compiler, 16908 # which looks to be a dead project) 16909 lt_prog_compiler_wl_GCJ='-Wl,' 16910 lt_prog_compiler_pic_GCJ='-fpic' 16911 lt_prog_compiler_static_GCJ='-Bstatic' 16912 ;; 16913 ccc*) 16914 lt_prog_compiler_wl_GCJ='-Wl,' 16915 # All Alpha code is PIC. 16916 lt_prog_compiler_static_GCJ='-non_shared' 16917 ;; 16918 esac 16919 ;; 16920 16921 osf3* | osf4* | osf5*) 16922 lt_prog_compiler_wl_GCJ='-Wl,' 16923 # All OSF/1 code is PIC. 16924 lt_prog_compiler_static_GCJ='-non_shared' 16925 ;; 16926 16927 solaris*) 16928 lt_prog_compiler_pic_GCJ='-KPIC' 16929 lt_prog_compiler_static_GCJ='-Bstatic' 16930 case $cc_basename in 16931 f77* | f90* | f95*) 16932 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16933 *) 16934 lt_prog_compiler_wl_GCJ='-Wl,';; 16935 esac 16936 ;; 16937 16938 sunos4*) 16939 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16940 lt_prog_compiler_pic_GCJ='-PIC' 16941 lt_prog_compiler_static_GCJ='-Bstatic' 16942 ;; 16943 16944 sysv4 | sysv4.2uw2* | sysv4.3*) 16945 lt_prog_compiler_wl_GCJ='-Wl,' 16946 lt_prog_compiler_pic_GCJ='-KPIC' 16947 lt_prog_compiler_static_GCJ='-Bstatic' 16948 ;; 16949 16950 sysv4*MP*) 16951 if test -d /usr/nec ;then 16952 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16953 lt_prog_compiler_static_GCJ='-Bstatic' 16954 fi 16955 ;; 16956 16957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16958 lt_prog_compiler_wl_GCJ='-Wl,' 16959 lt_prog_compiler_pic_GCJ='-KPIC' 16960 lt_prog_compiler_static_GCJ='-Bstatic' 16961 ;; 16962 16963 unicos*) 16964 lt_prog_compiler_wl_GCJ='-Wl,' 16965 lt_prog_compiler_can_build_shared_GCJ=no 16966 ;; 16967 16968 uts4*) 16969 lt_prog_compiler_pic_GCJ='-pic' 16970 lt_prog_compiler_static_GCJ='-Bstatic' 16971 ;; 16972 16973 *) 16974 lt_prog_compiler_can_build_shared_GCJ=no 16975 ;; 16976 esac 16977 fi 16978 16979{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16980echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16981 16982# 16983# Check to make sure the PIC flag actually works. 16984# 16985if test -n "$lt_prog_compiler_pic_GCJ"; then 16986 16987{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16989if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16990 echo $ECHO_N "(cached) $ECHO_C" >&6 16991else 16992 lt_prog_compiler_pic_works_GCJ=no 16993 ac_outfile=conftest.$ac_objext 16994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16995 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16996 # Insert the option either (1) after the last *FLAGS variable, or 16997 # (2) before a word containing "conftest.", or (3) at the end. 16998 # Note that $ac_compile itself does not contain backslashes and begins 16999 # with a dollar sign (not a hyphen), so the echo should work correctly. 17000 # The option is referenced via a variable to avoid confusing sed. 17001 lt_compile=`echo "$ac_compile" | $SED \ 17002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17004 -e 's:$: $lt_compiler_flag:'` 17005 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 17006 (eval "$lt_compile" 2>conftest.err) 17007 ac_status=$? 17008 cat conftest.err >&5 17009 echo "$as_me:__oline__: \$? = $ac_status" >&5 17010 if (exit $ac_status) && test -s "$ac_outfile"; then 17011 # The compiler can only warn and ignore the option if not recognized 17012 # So say no if there are warnings other than the usual output. 17013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17016 lt_prog_compiler_pic_works_GCJ=yes 17017 fi 17018 fi 17019 $rm conftest* 17020 17021fi 17022{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17023echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17024 17025if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17026 case $lt_prog_compiler_pic_GCJ in 17027 "" | " "*) ;; 17028 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17029 esac 17030else 17031 lt_prog_compiler_pic_GCJ= 17032 lt_prog_compiler_can_build_shared_GCJ=no 17033fi 17034 17035fi 17036case $host_os in 17037 # For platforms which do not support PIC, -DPIC is meaningless: 17038 *djgpp*) 17039 lt_prog_compiler_pic_GCJ= 17040 ;; 17041 *) 17042 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17043 ;; 17044esac 17045 17046# 17047# Check to make sure the static flag actually works. 17048# 17049wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17050{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17051echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17052if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17053 echo $ECHO_N "(cached) $ECHO_C" >&6 17054else 17055 lt_prog_compiler_static_works_GCJ=no 17056 save_LDFLAGS="$LDFLAGS" 17057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17058 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17060 # The linker can only warn and ignore the option if not recognized 17061 # So say no if there are warnings 17062 if test -s conftest.err; then 17063 # Append any errors to the config.log. 17064 cat conftest.err 1>&5 17065 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17067 if diff conftest.exp conftest.er2 >/dev/null; then 17068 lt_prog_compiler_static_works_GCJ=yes 17069 fi 17070 else 17071 lt_prog_compiler_static_works_GCJ=yes 17072 fi 17073 fi 17074 $rm conftest* 17075 LDFLAGS="$save_LDFLAGS" 17076 17077fi 17078{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17079echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17080 17081if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17082 : 17083else 17084 lt_prog_compiler_static_GCJ= 17085fi 17086 17087 17088{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17089echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17090if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17091 echo $ECHO_N "(cached) $ECHO_C" >&6 17092else 17093 lt_cv_prog_compiler_c_o_GCJ=no 17094 $rm -r conftest 2>/dev/null 17095 mkdir conftest 17096 cd conftest 17097 mkdir out 17098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17099 17100 lt_compiler_flag="-o out/conftest2.$ac_objext" 17101 # Insert the option either (1) after the last *FLAGS variable, or 17102 # (2) before a word containing "conftest.", or (3) at the end. 17103 # Note that $ac_compile itself does not contain backslashes and begins 17104 # with a dollar sign (not a hyphen), so the echo should work correctly. 17105 lt_compile=`echo "$ac_compile" | $SED \ 17106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17108 -e 's:$: $lt_compiler_flag:'` 17109 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 17110 (eval "$lt_compile" 2>out/conftest.err) 17111 ac_status=$? 17112 cat out/conftest.err >&5 17113 echo "$as_me:__oline__: \$? = $ac_status" >&5 17114 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17115 then 17116 # The compiler can only warn and ignore the option if not recognized 17117 # So say no if there are warnings 17118 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17121 lt_cv_prog_compiler_c_o_GCJ=yes 17122 fi 17123 fi 17124 chmod u+w . 2>&5 17125 $rm conftest* 17126 # SGI C++ compiler will create directory out/ii_files/ for 17127 # template instantiation 17128 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17129 $rm out/* && rmdir out 17130 cd .. 17131 rmdir conftest 17132 $rm conftest* 17133 17134fi 17135{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17136echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17137 17138 17139hard_links="nottested" 17140if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17141 # do not overwrite the value of need_locks provided by the user 17142 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17143echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17144 hard_links=yes 17145 $rm conftest* 17146 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17147 touch conftest.a 17148 ln conftest.a conftest.b 2>&5 || hard_links=no 17149 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17150 { echo "$as_me:$LINENO: result: $hard_links" >&5 17151echo "${ECHO_T}$hard_links" >&6; } 17152 if test "$hard_links" = no; then 17153 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17154echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17155 need_locks=warn 17156 fi 17157else 17158 need_locks=no 17159fi 17160 17161{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17162echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17163 17164 runpath_var= 17165 allow_undefined_flag_GCJ= 17166 enable_shared_with_static_runtimes_GCJ=no 17167 archive_cmds_GCJ= 17168 archive_expsym_cmds_GCJ= 17169 old_archive_From_new_cmds_GCJ= 17170 old_archive_from_expsyms_cmds_GCJ= 17171 export_dynamic_flag_spec_GCJ= 17172 whole_archive_flag_spec_GCJ= 17173 thread_safe_flag_spec_GCJ= 17174 hardcode_libdir_flag_spec_GCJ= 17175 hardcode_libdir_flag_spec_ld_GCJ= 17176 hardcode_libdir_separator_GCJ= 17177 hardcode_direct_GCJ=no 17178 hardcode_minus_L_GCJ=no 17179 hardcode_shlibpath_var_GCJ=unsupported 17180 link_all_deplibs_GCJ=unknown 17181 hardcode_automatic_GCJ=no 17182 module_cmds_GCJ= 17183 module_expsym_cmds_GCJ= 17184 always_export_symbols_GCJ=no 17185 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17186 # include_expsyms should be a list of space-separated symbols to be *always* 17187 # included in the symbol list 17188 include_expsyms_GCJ= 17189 # exclude_expsyms can be an extended regexp of symbols to exclude 17190 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17191 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17192 # as well as any symbol that contains `d'. 17193 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17195 # platforms (ab)use it in PIC code, but their linkers get confused if 17196 # the symbol is explicitly referenced. Since portable code cannot 17197 # rely on this symbol name, it's probably fine to never include it in 17198 # preloaded symbol tables. 17199 extract_expsyms_cmds= 17200 # Just being paranoid about ensuring that cc_basename is set. 17201 for cc_temp in $compiler""; do 17202 case $cc_temp in 17203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17205 \-*) ;; 17206 *) break;; 17207 esac 17208done 17209cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17210 17211 case $host_os in 17212 cygwin* | mingw* | pw32*) 17213 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17214 # When not using gcc, we currently assume that we are using 17215 # Microsoft Visual C++. 17216 if test "$GCC" != yes; then 17217 with_gnu_ld=no 17218 fi 17219 ;; 17220 interix*) 17221 # we just hope/assume this is gcc and not c89 (= MSVC++) 17222 with_gnu_ld=yes 17223 ;; 17224 openbsd*) 17225 with_gnu_ld=no 17226 ;; 17227 esac 17228 17229 ld_shlibs_GCJ=yes 17230 if test "$with_gnu_ld" = yes; then 17231 # If archive_cmds runs LD, not CC, wlarc should be empty 17232 wlarc='${wl}' 17233 17234 # Set some defaults for GNU ld with shared library support. These 17235 # are reset later if shared libraries are not supported. Putting them 17236 # here allows them to be overridden if necessary. 17237 runpath_var=LD_RUN_PATH 17238 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17239 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17240 # ancient GNU ld didn't support --whole-archive et. al. 17241 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17242 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17243 else 17244 whole_archive_flag_spec_GCJ= 17245 fi 17246 supports_anon_versioning=no 17247 case `$LD -v 2>/dev/null` in 17248 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17249 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17250 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17251 *\ 2.11.*) ;; # other 2.11 versions 17252 *) supports_anon_versioning=yes ;; 17253 esac 17254 17255 # See if GNU ld supports shared libraries. 17256 case $host_os in 17257 aix3* | aix4* | aix5*) 17258 # On AIX/PPC, the GNU linker is very broken 17259 if test "$host_cpu" != ia64; then 17260 ld_shlibs_GCJ=no 17261 cat <<EOF 1>&2 17262 17263*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17264*** to be unable to reliably create shared libraries on AIX. 17265*** Therefore, libtool is disabling shared libraries support. If you 17266*** really care for shared libraries, you may want to modify your PATH 17267*** so that a non-GNU linker is found, and then restart. 17268 17269EOF 17270 fi 17271 ;; 17272 17273 amigaos*) 17274 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)' 17275 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17276 hardcode_minus_L_GCJ=yes 17277 17278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17279 # that the semantics of dynamic libraries on AmigaOS, at least up 17280 # to version 4, is to share data among multiple programs linked 17281 # with the same dynamic library. Since this doesn't match the 17282 # behavior of shared libraries on other platforms, we can't use 17283 # them. 17284 ld_shlibs_GCJ=no 17285 ;; 17286 17287 beos*) 17288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17289 allow_undefined_flag_GCJ=unsupported 17290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17291 # support --undefined. This deserves some investigation. FIXME 17292 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17293 else 17294 ld_shlibs_GCJ=no 17295 fi 17296 ;; 17297 17298 cygwin* | mingw* | pw32*) 17299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17300 # as there is no search path for DLLs. 17301 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17302 allow_undefined_flag_GCJ=unsupported 17303 always_export_symbols_GCJ=no 17304 enable_shared_with_static_runtimes_GCJ=yes 17305 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17306 17307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17308 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17309 # If the export-symbols file already is a .def file (1st line 17310 # is EXPORTS), use it as is; otherwise, prepend... 17311 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17312 cp $export_symbols $output_objdir/$soname.def; 17313 else 17314 echo EXPORTS > $output_objdir/$soname.def; 17315 cat $export_symbols >> $output_objdir/$soname.def; 17316 fi~ 17317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17318 else 17319 ld_shlibs_GCJ=no 17320 fi 17321 ;; 17322 17323 interix3*) 17324 hardcode_direct_GCJ=no 17325 hardcode_shlibpath_var_GCJ=no 17326 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17327 export_dynamic_flag_spec_GCJ='${wl}-E' 17328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17329 # Instead, shared libraries are loaded at an image base (0x10000000 by 17330 # default) and relocated if they conflict, which is a slow very memory 17331 # consuming and fragmenting process. To avoid this, we pick a random, 17332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17333 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17334 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' 17335 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' 17336 ;; 17337 17338 linux* | k*bsd*-gnu) 17339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17340 tmp_addflag= 17341 case $cc_basename,$host_cpu in 17342 pgcc*) # Portland Group C compiler 17343 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' 17344 tmp_addflag=' $pic_flag' 17345 ;; 17346 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17347 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' 17348 tmp_addflag=' $pic_flag -Mnomain' ;; 17349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17350 tmp_addflag=' -i_dynamic' ;; 17351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17352 tmp_addflag=' -i_dynamic -nofor_main' ;; 17353 ifc* | ifort*) # Intel Fortran compiler 17354 tmp_addflag=' -nofor_main' ;; 17355 esac 17356 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17357 17358 if test $supports_anon_versioning = yes; then 17359 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17361 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17362 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17363 fi 17364 link_all_deplibs_GCJ=no 17365 else 17366 ld_shlibs_GCJ=no 17367 fi 17368 ;; 17369 17370 netbsd* | netbsdelf*-gnu) 17371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17372 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17373 wlarc= 17374 else 17375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17377 fi 17378 ;; 17379 17380 solaris*) 17381 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17382 ld_shlibs_GCJ=no 17383 cat <<EOF 1>&2 17384 17385*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17386*** create shared libraries on Solaris systems. Therefore, libtool 17387*** is disabling shared libraries support. We urge you to upgrade GNU 17388*** binutils to release 2.9.1 or newer. Another option is to modify 17389*** your PATH or compiler configuration so that the native linker is 17390*** used, and then restart. 17391 17392EOF 17393 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17395 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17396 else 17397 ld_shlibs_GCJ=no 17398 fi 17399 ;; 17400 17401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17402 case `$LD -v 2>&1` in 17403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17404 ld_shlibs_GCJ=no 17405 cat <<_LT_EOF 1>&2 17406 17407*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17408*** reliably create shared libraries on SCO systems. Therefore, libtool 17409*** is disabling shared libraries support. We urge you to upgrade GNU 17410*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17411*** your PATH or compiler configuration so that the native linker is 17412*** used, and then restart. 17413 17414_LT_EOF 17415 ;; 17416 *) 17417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17418 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17419 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17420 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17421 else 17422 ld_shlibs_GCJ=no 17423 fi 17424 ;; 17425 esac 17426 ;; 17427 17428 sunos4*) 17429 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17430 wlarc= 17431 hardcode_direct_GCJ=yes 17432 hardcode_shlibpath_var_GCJ=no 17433 ;; 17434 17435 *) 17436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17438 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17439 else 17440 ld_shlibs_GCJ=no 17441 fi 17442 ;; 17443 esac 17444 17445 if test "$ld_shlibs_GCJ" = no; then 17446 runpath_var= 17447 hardcode_libdir_flag_spec_GCJ= 17448 export_dynamic_flag_spec_GCJ= 17449 whole_archive_flag_spec_GCJ= 17450 fi 17451 else 17452 # PORTME fill in a description of your system's linker (not GNU ld) 17453 case $host_os in 17454 aix3*) 17455 allow_undefined_flag_GCJ=unsupported 17456 always_export_symbols_GCJ=yes 17457 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' 17458 # Note: this linker hardcodes the directories in LIBPATH if there 17459 # are no directories specified by -L. 17460 hardcode_minus_L_GCJ=yes 17461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17462 # Neither direct hardcoding nor static linking is supported with a 17463 # broken collect2. 17464 hardcode_direct_GCJ=unsupported 17465 fi 17466 ;; 17467 17468 aix4* | aix5*) 17469 if test "$host_cpu" = ia64; then 17470 # On IA64, the linker does run time linking by default, so we don't 17471 # have to do anything special. 17472 aix_use_runtimelinking=no 17473 exp_sym_flag='-Bexport' 17474 no_entry_flag="" 17475 else 17476 # If we're using GNU nm, then we don't want the "-C" option. 17477 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17478 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17479 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' 17480 else 17481 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' 17482 fi 17483 aix_use_runtimelinking=no 17484 17485 # Test if we are trying to use run time linking or normal 17486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17487 # need to do runtime linking. 17488 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17489 for ld_flag in $LDFLAGS; do 17490 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17491 aix_use_runtimelinking=yes 17492 break 17493 fi 17494 done 17495 ;; 17496 esac 17497 17498 exp_sym_flag='-bexport' 17499 no_entry_flag='-bnoentry' 17500 fi 17501 17502 # When large executables or shared objects are built, AIX ld can 17503 # have problems creating the table of contents. If linking a library 17504 # or program results in "error TOC overflow" add -mminimal-toc to 17505 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17506 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17507 17508 archive_cmds_GCJ='' 17509 hardcode_direct_GCJ=yes 17510 hardcode_libdir_separator_GCJ=':' 17511 link_all_deplibs_GCJ=yes 17512 17513 if test "$GCC" = yes; then 17514 case $host_os in aix4.[012]|aix4.[012].*) 17515 # We only want to do this on AIX 4.2 and lower, the check 17516 # below for broken collect2 doesn't work under 4.3+ 17517 collect2name=`${CC} -print-prog-name=collect2` 17518 if test -f "$collect2name" && \ 17519 strings "$collect2name" | grep resolve_lib_name >/dev/null 17520 then 17521 # We have reworked collect2 17522 hardcode_direct_GCJ=yes 17523 else 17524 # We have old collect2 17525 hardcode_direct_GCJ=unsupported 17526 # It fails to find uninstalled libraries when the uninstalled 17527 # path is not listed in the libpath. Setting hardcode_minus_L 17528 # to unsupported forces relinking 17529 hardcode_minus_L_GCJ=yes 17530 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17531 hardcode_libdir_separator_GCJ= 17532 fi 17533 ;; 17534 esac 17535 shared_flag='-shared' 17536 if test "$aix_use_runtimelinking" = yes; then 17537 shared_flag="$shared_flag "'${wl}-G' 17538 fi 17539 else 17540 # not using gcc 17541 if test "$host_cpu" = ia64; then 17542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17543 # chokes on -Wl,-G. The following line is correct: 17544 shared_flag='-G' 17545 else 17546 if test "$aix_use_runtimelinking" = yes; then 17547 shared_flag='${wl}-G' 17548 else 17549 shared_flag='${wl}-bM:SRE' 17550 fi 17551 fi 17552 fi 17553 17554 # It seems that -bexpall does not export symbols beginning with 17555 # underscore (_), so it is better to generate a list of symbols to export. 17556 always_export_symbols_GCJ=yes 17557 if test "$aix_use_runtimelinking" = yes; then 17558 # Warning - without using the other runtime loading flags (-brtl), 17559 # -berok will link without error, but may produce a broken library. 17560 allow_undefined_flag_GCJ='-berok' 17561 # Determine the default libpath from the value encoded in an empty executable. 17562 cat >conftest.$ac_ext <<_ACEOF 17563/* confdefs.h. */ 17564_ACEOF 17565cat confdefs.h >>conftest.$ac_ext 17566cat >>conftest.$ac_ext <<_ACEOF 17567/* end confdefs.h. */ 17568 17569int 17570main () 17571{ 17572 17573 ; 17574 return 0; 17575} 17576_ACEOF 17577rm -f conftest.$ac_objext conftest$ac_exeext 17578if { (ac_try="$ac_link" 17579case "(($ac_try" in 17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17581 *) ac_try_echo=$ac_try;; 17582esac 17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17584 (eval "$ac_link") 2>conftest.er1 17585 ac_status=$? 17586 grep -v '^ *+' conftest.er1 >conftest.err 17587 rm -f conftest.er1 17588 cat conftest.err >&5 17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17590 (exit $ac_status); } && 17591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17592 { (case "(($ac_try" in 17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17594 *) ac_try_echo=$ac_try;; 17595esac 17596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17597 (eval "$ac_try") 2>&5 17598 ac_status=$? 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); }; } && 17601 { ac_try='test -s conftest$ac_exeext' 17602 { (case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605esac 17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17607 (eval "$ac_try") 2>&5 17608 ac_status=$? 17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17610 (exit $ac_status); }; }; then 17611 17612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17613}'` 17614# Check for a 64-bit object if we didn't find anything. 17615if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17616}'`; fi 17617else 17618 echo "$as_me: failed program was:" >&5 17619sed 's/^/| /' conftest.$ac_ext >&5 17620 17621 17622fi 17623 17624rm -f conftest.err conftest.$ac_objext \ 17625 conftest$ac_exeext conftest.$ac_ext 17626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17627 17628 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17629 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" 17630 else 17631 if test "$host_cpu" = ia64; then 17632 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17633 allow_undefined_flag_GCJ="-z nodefs" 17634 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" 17635 else 17636 # Determine the default libpath from the value encoded in an empty executable. 17637 cat >conftest.$ac_ext <<_ACEOF 17638/* confdefs.h. */ 17639_ACEOF 17640cat confdefs.h >>conftest.$ac_ext 17641cat >>conftest.$ac_ext <<_ACEOF 17642/* end confdefs.h. */ 17643 17644int 17645main () 17646{ 17647 17648 ; 17649 return 0; 17650} 17651_ACEOF 17652rm -f conftest.$ac_objext conftest$ac_exeext 17653if { (ac_try="$ac_link" 17654case "(($ac_try" in 17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17656 *) ac_try_echo=$ac_try;; 17657esac 17658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17659 (eval "$ac_link") 2>conftest.er1 17660 ac_status=$? 17661 grep -v '^ *+' conftest.er1 >conftest.err 17662 rm -f conftest.er1 17663 cat conftest.err >&5 17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17665 (exit $ac_status); } && 17666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17667 { (case "(($ac_try" in 17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17669 *) ac_try_echo=$ac_try;; 17670esac 17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17672 (eval "$ac_try") 2>&5 17673 ac_status=$? 17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17675 (exit $ac_status); }; } && 17676 { ac_try='test -s conftest$ac_exeext' 17677 { (case "(($ac_try" in 17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17679 *) ac_try_echo=$ac_try;; 17680esac 17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17682 (eval "$ac_try") 2>&5 17683 ac_status=$? 17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17685 (exit $ac_status); }; }; then 17686 17687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17688}'` 17689# Check for a 64-bit object if we didn't find anything. 17690if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17691}'`; fi 17692else 17693 echo "$as_me: failed program was:" >&5 17694sed 's/^/| /' conftest.$ac_ext >&5 17695 17696 17697fi 17698 17699rm -f conftest.err conftest.$ac_objext \ 17700 conftest$ac_exeext conftest.$ac_ext 17701if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17702 17703 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17704 # Warning - without using the other run time loading flags, 17705 # -berok will link without error, but may produce a broken library. 17706 no_undefined_flag_GCJ=' ${wl}-bernotok' 17707 allow_undefined_flag_GCJ=' ${wl}-berok' 17708 # Exported symbols can be pulled into shared objects from archives 17709 whole_archive_flag_spec_GCJ='$convenience' 17710 archive_cmds_need_lc_GCJ=yes 17711 # This is similar to how AIX traditionally builds its shared libraries. 17712 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' 17713 fi 17714 fi 17715 ;; 17716 17717 amigaos*) 17718 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)' 17719 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17720 hardcode_minus_L_GCJ=yes 17721 # see comment about different semantics on the GNU ld section 17722 ld_shlibs_GCJ=no 17723 ;; 17724 17725 bsdi[45]*) 17726 export_dynamic_flag_spec_GCJ=-rdynamic 17727 ;; 17728 17729 cygwin* | mingw* | pw32*) 17730 # When not using gcc, we currently assume that we are using 17731 # Microsoft Visual C++. 17732 # hardcode_libdir_flag_spec is actually meaningless, as there is 17733 # no search path for DLLs. 17734 hardcode_libdir_flag_spec_GCJ=' ' 17735 allow_undefined_flag_GCJ=unsupported 17736 # Tell ltmain to make .lib files, not .a files. 17737 libext=lib 17738 # Tell ltmain to make .dll files, not .so files. 17739 shrext_cmds=".dll" 17740 # FIXME: Setting linknames here is a bad hack. 17741 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17742 # The linker will automatically build a .lib file if we build a DLL. 17743 old_archive_From_new_cmds_GCJ='true' 17744 # FIXME: Should let the user specify the lib program. 17745 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17746 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17747 enable_shared_with_static_runtimes_GCJ=yes 17748 ;; 17749 17750 darwin* | rhapsody*) 17751 case $host_os in 17752 rhapsody* | darwin1.[012]) 17753 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17754 ;; 17755 *) # Darwin 1.3 on 17756 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17757 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17758 else 17759 case ${MACOSX_DEPLOYMENT_TARGET} in 17760 10.[012]) 17761 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17762 ;; 17763 10.*) 17764 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17765 ;; 17766 esac 17767 fi 17768 ;; 17769 esac 17770 archive_cmds_need_lc_GCJ=no 17771 hardcode_direct_GCJ=no 17772 hardcode_automatic_GCJ=yes 17773 hardcode_shlibpath_var_GCJ=unsupported 17774 whole_archive_flag_spec_GCJ='' 17775 link_all_deplibs_GCJ=yes 17776 if test "$GCC" = yes ; then 17777 output_verbose_link_cmd='echo' 17778 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17779 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17781 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}' 17782 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}' 17783 else 17784 case $cc_basename in 17785 xlc*) 17786 output_verbose_link_cmd='echo' 17787 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17788 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17790 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17791 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}' 17792 ;; 17793 *) 17794 ld_shlibs_GCJ=no 17795 ;; 17796 esac 17797 fi 17798 ;; 17799 17800 dgux*) 17801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17802 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17803 hardcode_shlibpath_var_GCJ=no 17804 ;; 17805 17806 freebsd1*) 17807 ld_shlibs_GCJ=no 17808 ;; 17809 17810 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17811 # support. Future versions do this automatically, but an explicit c++rt0.o 17812 # does not break anything, and helps significantly (at the cost of a little 17813 # extra space). 17814 freebsd2.2*) 17815 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17816 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17817 hardcode_direct_GCJ=yes 17818 hardcode_shlibpath_var_GCJ=no 17819 ;; 17820 17821 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17822 freebsd2*) 17823 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17824 hardcode_direct_GCJ=yes 17825 hardcode_minus_L_GCJ=yes 17826 hardcode_shlibpath_var_GCJ=no 17827 ;; 17828 17829 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17830 freebsd* | dragonfly*) 17831 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17832 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17833 hardcode_direct_GCJ=yes 17834 hardcode_shlibpath_var_GCJ=no 17835 ;; 17836 17837 hpux9*) 17838 if test "$GCC" = yes; then 17839 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' 17840 else 17841 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' 17842 fi 17843 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17844 hardcode_libdir_separator_GCJ=: 17845 hardcode_direct_GCJ=yes 17846 17847 # hardcode_minus_L: Not really in the search PATH, 17848 # but as the default location of the library. 17849 hardcode_minus_L_GCJ=yes 17850 export_dynamic_flag_spec_GCJ='${wl}-E' 17851 ;; 17852 17853 hpux10*) 17854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17855 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17856 else 17857 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17858 fi 17859 if test "$with_gnu_ld" = no; then 17860 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17861 hardcode_libdir_separator_GCJ=: 17862 17863 hardcode_direct_GCJ=yes 17864 export_dynamic_flag_spec_GCJ='${wl}-E' 17865 17866 # hardcode_minus_L: Not really in the search PATH, 17867 # but as the default location of the library. 17868 hardcode_minus_L_GCJ=yes 17869 fi 17870 ;; 17871 17872 hpux11*) 17873 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17874 case $host_cpu in 17875 hppa*64*) 17876 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17877 ;; 17878 ia64*) 17879 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17880 ;; 17881 *) 17882 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17883 ;; 17884 esac 17885 else 17886 case $host_cpu in 17887 hppa*64*) 17888 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17889 ;; 17890 ia64*) 17891 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17892 ;; 17893 *) 17894 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17895 ;; 17896 esac 17897 fi 17898 if test "$with_gnu_ld" = no; then 17899 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17900 hardcode_libdir_separator_GCJ=: 17901 17902 case $host_cpu in 17903 hppa*64*|ia64*) 17904 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17905 hardcode_direct_GCJ=no 17906 hardcode_shlibpath_var_GCJ=no 17907 ;; 17908 *) 17909 hardcode_direct_GCJ=yes 17910 export_dynamic_flag_spec_GCJ='${wl}-E' 17911 17912 # hardcode_minus_L: Not really in the search PATH, 17913 # but as the default location of the library. 17914 hardcode_minus_L_GCJ=yes 17915 ;; 17916 esac 17917 fi 17918 ;; 17919 17920 irix5* | irix6* | nonstopux*) 17921 if test "$GCC" = yes; then 17922 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' 17923 else 17924 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' 17925 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17926 fi 17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17928 hardcode_libdir_separator_GCJ=: 17929 link_all_deplibs_GCJ=yes 17930 ;; 17931 17932 netbsd* | netbsdelf*-gnu) 17933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17934 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17935 else 17936 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17937 fi 17938 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17939 hardcode_direct_GCJ=yes 17940 hardcode_shlibpath_var_GCJ=no 17941 ;; 17942 17943 newsos6) 17944 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17945 hardcode_direct_GCJ=yes 17946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17947 hardcode_libdir_separator_GCJ=: 17948 hardcode_shlibpath_var_GCJ=no 17949 ;; 17950 17951 openbsd*) 17952 hardcode_direct_GCJ=yes 17953 hardcode_shlibpath_var_GCJ=no 17954 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17955 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17956 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17958 export_dynamic_flag_spec_GCJ='${wl}-E' 17959 else 17960 case $host_os in 17961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17962 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17963 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17964 ;; 17965 *) 17966 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17968 ;; 17969 esac 17970 fi 17971 ;; 17972 17973 os2*) 17974 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17975 hardcode_minus_L_GCJ=yes 17976 allow_undefined_flag_GCJ=unsupported 17977 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' 17978 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17979 ;; 17980 17981 osf3*) 17982 if test "$GCC" = yes; then 17983 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17984 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' 17985 else 17986 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17987 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' 17988 fi 17989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17990 hardcode_libdir_separator_GCJ=: 17991 ;; 17992 17993 osf4* | osf5*) # as osf3* with the addition of -msym flag 17994 if test "$GCC" = yes; then 17995 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17996 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' 17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17998 else 17999 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18000 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' 18001 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~ 18002 $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' 18003 18004 # Both c and cxx compiler support -rpath directly 18005 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18006 fi 18007 hardcode_libdir_separator_GCJ=: 18008 ;; 18009 18010 solaris*) 18011 no_undefined_flag_GCJ=' -z text' 18012 if test "$GCC" = yes; then 18013 wlarc='${wl}' 18014 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18015 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18016 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18017 else 18018 wlarc='' 18019 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18020 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18022 fi 18023 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18024 hardcode_shlibpath_var_GCJ=no 18025 case $host_os in 18026 solaris2.[0-5] | solaris2.[0-5].*) ;; 18027 *) 18028 # The compiler driver will combine linker options so we 18029 # cannot just pass the convience library names through 18030 # without $wl, iff we do not link with $LD. 18031 # Luckily, gcc supports the same syntax we need for Sun Studio. 18032 # Supported since Solaris 2.6 (maybe 2.5.1?) 18033 case $wlarc in 18034 '') 18035 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18036 *) 18037 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18038 esac ;; 18039 esac 18040 link_all_deplibs_GCJ=yes 18041 ;; 18042 18043 sunos4*) 18044 if test "x$host_vendor" = xsequent; then 18045 # Use $CC to link under sequent, because it throws in some extra .o 18046 # files that make .init and .fini sections work. 18047 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18048 else 18049 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18050 fi 18051 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18052 hardcode_direct_GCJ=yes 18053 hardcode_minus_L_GCJ=yes 18054 hardcode_shlibpath_var_GCJ=no 18055 ;; 18056 18057 sysv4) 18058 case $host_vendor in 18059 sni) 18060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18061 hardcode_direct_GCJ=yes # is this really true??? 18062 ;; 18063 siemens) 18064 ## LD is ld it makes a PLAMLIB 18065 ## CC just makes a GrossModule. 18066 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18067 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18068 hardcode_direct_GCJ=no 18069 ;; 18070 motorola) 18071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18072 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18073 ;; 18074 esac 18075 runpath_var='LD_RUN_PATH' 18076 hardcode_shlibpath_var_GCJ=no 18077 ;; 18078 18079 sysv4.3*) 18080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18081 hardcode_shlibpath_var_GCJ=no 18082 export_dynamic_flag_spec_GCJ='-Bexport' 18083 ;; 18084 18085 sysv4*MP*) 18086 if test -d /usr/nec; then 18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18088 hardcode_shlibpath_var_GCJ=no 18089 runpath_var=LD_RUN_PATH 18090 hardcode_runpath_var=yes 18091 ld_shlibs_GCJ=yes 18092 fi 18093 ;; 18094 18095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18096 no_undefined_flag_GCJ='${wl}-z,text' 18097 archive_cmds_need_lc_GCJ=no 18098 hardcode_shlibpath_var_GCJ=no 18099 runpath_var='LD_RUN_PATH' 18100 18101 if test "$GCC" = yes; then 18102 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18103 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18104 else 18105 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18106 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18107 fi 18108 ;; 18109 18110 sysv5* | sco3.2v5* | sco5v6*) 18111 # Note: We can NOT use -z defs as we might desire, because we do not 18112 # link with -lc, and that would cause any symbols used from libc to 18113 # always be unresolved, which means just about no library would 18114 # ever link correctly. If we're not using GNU ld we use -z text 18115 # though, which does catch some bad symbols but isn't as heavy-handed 18116 # as -z defs. 18117 no_undefined_flag_GCJ='${wl}-z,text' 18118 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18119 archive_cmds_need_lc_GCJ=no 18120 hardcode_shlibpath_var_GCJ=no 18121 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18122 hardcode_libdir_separator_GCJ=':' 18123 link_all_deplibs_GCJ=yes 18124 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18125 runpath_var='LD_RUN_PATH' 18126 18127 if test "$GCC" = yes; then 18128 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18129 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18130 else 18131 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18132 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18133 fi 18134 ;; 18135 18136 uts4*) 18137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18138 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18139 hardcode_shlibpath_var_GCJ=no 18140 ;; 18141 18142 *) 18143 ld_shlibs_GCJ=no 18144 ;; 18145 esac 18146 fi 18147 18148{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18149echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18150test "$ld_shlibs_GCJ" = no && can_build_shared=no 18151 18152# 18153# Do we need to explicitly link libc? 18154# 18155case "x$archive_cmds_need_lc_GCJ" in 18156x|xyes) 18157 # Assume -lc should be added 18158 archive_cmds_need_lc_GCJ=yes 18159 18160 if test "$enable_shared" = yes && test "$GCC" = yes; then 18161 case $archive_cmds_GCJ in 18162 *'~'*) 18163 # FIXME: we may have to deal with multi-command sequences. 18164 ;; 18165 '$CC '*) 18166 # Test whether the compiler implicitly links with -lc since on some 18167 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18168 # to ld, don't add -lc before -lgcc. 18169 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18170echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18171 $rm conftest* 18172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18173 18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18175 (eval $ac_compile) 2>&5 18176 ac_status=$? 18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18178 (exit $ac_status); } 2>conftest.err; then 18179 soname=conftest 18180 lib=conftest 18181 libobjs=conftest.$ac_objext 18182 deplibs= 18183 wl=$lt_prog_compiler_wl_GCJ 18184 pic_flag=$lt_prog_compiler_pic_GCJ 18185 compiler_flags=-v 18186 linker_flags=-v 18187 verstring= 18188 output_objdir=. 18189 libname=conftest 18190 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18191 allow_undefined_flag_GCJ= 18192 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18193 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18194 ac_status=$? 18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18196 (exit $ac_status); } 18197 then 18198 archive_cmds_need_lc_GCJ=no 18199 else 18200 archive_cmds_need_lc_GCJ=yes 18201 fi 18202 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18203 else 18204 cat conftest.err 1>&5 18205 fi 18206 $rm conftest* 18207 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18208echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18209 ;; 18210 esac 18211 fi 18212 ;; 18213esac 18214 18215{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18216echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18217library_names_spec= 18218libname_spec='lib$name' 18219soname_spec= 18220shrext_cmds=".so" 18221postinstall_cmds= 18222postuninstall_cmds= 18223finish_cmds= 18224finish_eval= 18225shlibpath_var= 18226shlibpath_overrides_runpath=unknown 18227version_type=none 18228dynamic_linker="$host_os ld.so" 18229sys_lib_dlsearch_path_spec="/lib /usr/lib" 18230if test "$GCC" = yes; then 18231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18232 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18233 # if the path contains ";" then we assume it to be the separator 18234 # otherwise default to the standard path separator (i.e. ":") - it is 18235 # assumed that no part of a normal pathname contains ";" but that should 18236 # okay in the real world where ";" in dirpaths is itself problematic. 18237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18238 else 18239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18240 fi 18241else 18242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18243fi 18244need_lib_prefix=unknown 18245hardcode_into_libs=no 18246 18247# when you set need_version to no, make sure it does not cause -set_version 18248# flags to be left without arguments 18249need_version=unknown 18250 18251case $host_os in 18252aix3*) 18253 version_type=linux 18254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18255 shlibpath_var=LIBPATH 18256 18257 # AIX 3 has no versioning support, so we append a major version to the name. 18258 soname_spec='${libname}${release}${shared_ext}$major' 18259 ;; 18260 18261aix4* | aix5*) 18262 version_type=linux 18263 need_lib_prefix=no 18264 need_version=no 18265 hardcode_into_libs=yes 18266 if test "$host_cpu" = ia64; then 18267 # AIX 5 supports IA64 18268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18269 shlibpath_var=LD_LIBRARY_PATH 18270 else 18271 # With GCC up to 2.95.x, collect2 would create an import file 18272 # for dependence libraries. The import file would start with 18273 # the line `#! .'. This would cause the generated library to 18274 # depend on `.', always an invalid library. This was fixed in 18275 # development snapshots of GCC prior to 3.0. 18276 case $host_os in 18277 aix4 | aix4.[01] | aix4.[01].*) 18278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18279 echo ' yes ' 18280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18281 : 18282 else 18283 can_build_shared=no 18284 fi 18285 ;; 18286 esac 18287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18288 # soname into executable. Probably we can add versioning support to 18289 # collect2, so additional links can be useful in future. 18290 if test "$aix_use_runtimelinking" = yes; then 18291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18292 # instead of lib<name>.a to let people know that these are not 18293 # typical AIX shared libraries. 18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18295 else 18296 # We preserve .a as extension for shared libraries through AIX4.2 18297 # and later when we are not doing run time linking. 18298 library_names_spec='${libname}${release}.a $libname.a' 18299 soname_spec='${libname}${release}${shared_ext}$major' 18300 fi 18301 shlibpath_var=LIBPATH 18302 fi 18303 ;; 18304 18305amigaos*) 18306 library_names_spec='$libname.ixlibrary $libname.a' 18307 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18308 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' 18309 ;; 18310 18311beos*) 18312 library_names_spec='${libname}${shared_ext}' 18313 dynamic_linker="$host_os ld.so" 18314 shlibpath_var=LIBRARY_PATH 18315 ;; 18316 18317bsdi[45]*) 18318 version_type=linux 18319 need_version=no 18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18321 soname_spec='${libname}${release}${shared_ext}$major' 18322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18323 shlibpath_var=LD_LIBRARY_PATH 18324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18326 # the default ld.so.conf also contains /usr/contrib/lib and 18327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18328 # libtool to hard-code these into programs 18329 ;; 18330 18331cygwin* | mingw* | pw32*) 18332 version_type=windows 18333 shrext_cmds=".dll" 18334 need_version=no 18335 need_lib_prefix=no 18336 18337 case $GCC,$host_os in 18338 yes,cygwin* | yes,mingw* | yes,pw32*) 18339 library_names_spec='$libname.dll.a' 18340 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18341 postinstall_cmds='base_file=`basename \${file}`~ 18342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18343 dldir=$destdir/`dirname \$dlpath`~ 18344 test -d \$dldir || mkdir -p \$dldir~ 18345 $install_prog $dir/$dlname \$dldir/$dlname~ 18346 chmod a+x \$dldir/$dlname' 18347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18348 dlpath=$dir/\$dldll~ 18349 $rm \$dlpath' 18350 shlibpath_overrides_runpath=yes 18351 18352 case $host_os in 18353 cygwin*) 18354 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18355 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18356 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18357 ;; 18358 mingw*) 18359 # MinGW DLLs use traditional 'lib' prefix 18360 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18362 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18363 # It is most probably a Windows format PATH printed by 18364 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18365 # path with ; separators, and with drive letters. We can handle the 18366 # drive letters (cygwin fileutils understands them), so leave them, 18367 # especially as we might pass files found there to a mingw objdump, 18368 # which wouldn't understand a cygwinified path. Ahh. 18369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18370 else 18371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18372 fi 18373 ;; 18374 pw32*) 18375 # pw32 DLLs use 'pw' prefix rather than 'lib' 18376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18377 ;; 18378 esac 18379 ;; 18380 18381 *) 18382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18383 ;; 18384 esac 18385 dynamic_linker='Win32 ld.exe' 18386 # FIXME: first we should search . and the directory the executable is in 18387 shlibpath_var=PATH 18388 ;; 18389 18390darwin* | rhapsody*) 18391 dynamic_linker="$host_os dyld" 18392 version_type=darwin 18393 need_lib_prefix=no 18394 need_version=no 18395 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18396 soname_spec='${libname}${release}${major}$shared_ext' 18397 shlibpath_overrides_runpath=yes 18398 shlibpath_var=DYLD_LIBRARY_PATH 18399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18400 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18401 if test "$GCC" = yes; then 18402 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18403 else 18404 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18405 fi 18406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18407 ;; 18408 18409dgux*) 18410 version_type=linux 18411 need_lib_prefix=no 18412 need_version=no 18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18414 soname_spec='${libname}${release}${shared_ext}$major' 18415 shlibpath_var=LD_LIBRARY_PATH 18416 ;; 18417 18418freebsd1*) 18419 dynamic_linker=no 18420 ;; 18421 18422freebsd* | dragonfly*) 18423 # DragonFly does not have aout. When/if they implement a new 18424 # versioning mechanism, adjust this. 18425 if test -x /usr/bin/objformat; then 18426 objformat=`/usr/bin/objformat` 18427 else 18428 case $host_os in 18429 freebsd[123]*) objformat=aout ;; 18430 *) objformat=elf ;; 18431 esac 18432 fi 18433 version_type=freebsd-$objformat 18434 case $version_type in 18435 freebsd-elf*) 18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18437 need_version=no 18438 need_lib_prefix=no 18439 ;; 18440 freebsd-*) 18441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18442 need_version=yes 18443 ;; 18444 esac 18445 shlibpath_var=LD_LIBRARY_PATH 18446 case $host_os in 18447 freebsd2*) 18448 shlibpath_overrides_runpath=yes 18449 ;; 18450 freebsd3.[01]* | freebsdelf3.[01]*) 18451 shlibpath_overrides_runpath=yes 18452 hardcode_into_libs=yes 18453 ;; 18454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18456 shlibpath_overrides_runpath=no 18457 hardcode_into_libs=yes 18458 ;; 18459 freebsd*) # from 4.6 on 18460 shlibpath_overrides_runpath=yes 18461 hardcode_into_libs=yes 18462 ;; 18463 esac 18464 ;; 18465 18466gnu*) 18467 version_type=linux 18468 need_lib_prefix=no 18469 need_version=no 18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18471 soname_spec='${libname}${release}${shared_ext}$major' 18472 shlibpath_var=LD_LIBRARY_PATH 18473 hardcode_into_libs=yes 18474 ;; 18475 18476hpux9* | hpux10* | hpux11*) 18477 # Give a soname corresponding to the major version so that dld.sl refuses to 18478 # link against other versions. 18479 version_type=sunos 18480 need_lib_prefix=no 18481 need_version=no 18482 case $host_cpu in 18483 ia64*) 18484 shrext_cmds='.so' 18485 hardcode_into_libs=yes 18486 dynamic_linker="$host_os dld.so" 18487 shlibpath_var=LD_LIBRARY_PATH 18488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18490 soname_spec='${libname}${release}${shared_ext}$major' 18491 if test "X$HPUX_IA64_MODE" = X32; then 18492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18493 else 18494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18495 fi 18496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18497 ;; 18498 hppa*64*) 18499 shrext_cmds='.sl' 18500 hardcode_into_libs=yes 18501 dynamic_linker="$host_os dld.sl" 18502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18505 soname_spec='${libname}${release}${shared_ext}$major' 18506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18508 ;; 18509 *) 18510 shrext_cmds='.sl' 18511 dynamic_linker="$host_os dld.sl" 18512 shlibpath_var=SHLIB_PATH 18513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18515 soname_spec='${libname}${release}${shared_ext}$major' 18516 ;; 18517 esac 18518 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18519 postinstall_cmds='chmod 555 $lib' 18520 ;; 18521 18522interix3*) 18523 version_type=linux 18524 need_lib_prefix=no 18525 need_version=no 18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18527 soname_spec='${libname}${release}${shared_ext}$major' 18528 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18529 shlibpath_var=LD_LIBRARY_PATH 18530 shlibpath_overrides_runpath=no 18531 hardcode_into_libs=yes 18532 ;; 18533 18534irix5* | irix6* | nonstopux*) 18535 case $host_os in 18536 nonstopux*) version_type=nonstopux ;; 18537 *) 18538 if test "$lt_cv_prog_gnu_ld" = yes; then 18539 version_type=linux 18540 else 18541 version_type=irix 18542 fi ;; 18543 esac 18544 need_lib_prefix=no 18545 need_version=no 18546 soname_spec='${libname}${release}${shared_ext}$major' 18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18548 case $host_os in 18549 irix5* | nonstopux*) 18550 libsuff= shlibsuff= 18551 ;; 18552 *) 18553 case $LD in # libtool.m4 will add one of these switches to LD 18554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18555 libsuff= shlibsuff= libmagic=32-bit;; 18556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18557 libsuff=32 shlibsuff=N32 libmagic=N32;; 18558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18559 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18560 *) libsuff= shlibsuff= libmagic=never-match;; 18561 esac 18562 ;; 18563 esac 18564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18565 shlibpath_overrides_runpath=no 18566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18568 hardcode_into_libs=yes 18569 ;; 18570 18571# No shared lib support for Linux oldld, aout, or coff. 18572linux*oldld* | linux*aout* | linux*coff*) 18573 dynamic_linker=no 18574 ;; 18575 18576# This must be Linux ELF. 18577linux* | k*bsd*-gnu) 18578 version_type=linux 18579 need_lib_prefix=no 18580 need_version=no 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18582 soname_spec='${libname}${release}${shared_ext}$major' 18583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18584 shlibpath_var=LD_LIBRARY_PATH 18585 shlibpath_overrides_runpath=no 18586 # This implies no fast_install, which is unacceptable. 18587 # Some rework will be needed to allow for fast_install 18588 # before this can be enabled. 18589 hardcode_into_libs=yes 18590 18591 # Append ld.so.conf contents to the search path 18592 if test -f /etc/ld.so.conf; then 18593 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18595 fi 18596 18597 # We used to test for /lib/ld.so.1 and disable shared libraries on 18598 # powerpc, because MkLinux only supported shared libraries with the 18599 # GNU dynamic linker. Since this was broken with cross compilers, 18600 # most powerpc-linux boxes support dynamic linking these days and 18601 # people can always --disable-shared, the test was removed, and we 18602 # assume the GNU/Linux dynamic linker is in use. 18603 dynamic_linker='GNU/Linux ld.so' 18604 ;; 18605 18606netbsdelf*-gnu) 18607 version_type=linux 18608 need_lib_prefix=no 18609 need_version=no 18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18611 soname_spec='${libname}${release}${shared_ext}$major' 18612 shlibpath_var=LD_LIBRARY_PATH 18613 shlibpath_overrides_runpath=no 18614 hardcode_into_libs=yes 18615 dynamic_linker='NetBSD ld.elf_so' 18616 ;; 18617 18618netbsd*) 18619 version_type=sunos 18620 need_lib_prefix=no 18621 need_version=no 18622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18625 dynamic_linker='NetBSD (a.out) ld.so' 18626 else 18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18628 soname_spec='${libname}${release}${shared_ext}$major' 18629 dynamic_linker='NetBSD ld.elf_so' 18630 fi 18631 shlibpath_var=LD_LIBRARY_PATH 18632 shlibpath_overrides_runpath=yes 18633 hardcode_into_libs=yes 18634 ;; 18635 18636newsos6) 18637 version_type=linux 18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18639 shlibpath_var=LD_LIBRARY_PATH 18640 shlibpath_overrides_runpath=yes 18641 ;; 18642 18643nto-qnx*) 18644 version_type=linux 18645 need_lib_prefix=no 18646 need_version=no 18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18648 soname_spec='${libname}${release}${shared_ext}$major' 18649 shlibpath_var=LD_LIBRARY_PATH 18650 shlibpath_overrides_runpath=yes 18651 ;; 18652 18653openbsd*) 18654 version_type=sunos 18655 sys_lib_dlsearch_path_spec="/usr/lib" 18656 need_lib_prefix=no 18657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18658 case $host_os in 18659 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18660 *) need_version=no ;; 18661 esac 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18666 case $host_os in 18667 openbsd2.[89] | openbsd2.[89].*) 18668 shlibpath_overrides_runpath=no 18669 ;; 18670 *) 18671 shlibpath_overrides_runpath=yes 18672 ;; 18673 esac 18674 else 18675 shlibpath_overrides_runpath=yes 18676 fi 18677 ;; 18678 18679os2*) 18680 libname_spec='$name' 18681 shrext_cmds=".dll" 18682 need_lib_prefix=no 18683 library_names_spec='$libname${shared_ext} $libname.a' 18684 dynamic_linker='OS/2 ld.exe' 18685 shlibpath_var=LIBPATH 18686 ;; 18687 18688osf3* | osf4* | osf5*) 18689 version_type=osf 18690 need_lib_prefix=no 18691 need_version=no 18692 soname_spec='${libname}${release}${shared_ext}$major' 18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18694 shlibpath_var=LD_LIBRARY_PATH 18695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18697 ;; 18698 18699solaris*) 18700 version_type=linux 18701 need_lib_prefix=no 18702 need_version=no 18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18704 soname_spec='${libname}${release}${shared_ext}$major' 18705 shlibpath_var=LD_LIBRARY_PATH 18706 shlibpath_overrides_runpath=yes 18707 hardcode_into_libs=yes 18708 # ldd complains unless libraries are executable 18709 postinstall_cmds='chmod +x $lib' 18710 ;; 18711 18712sunos4*) 18713 version_type=sunos 18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18716 shlibpath_var=LD_LIBRARY_PATH 18717 shlibpath_overrides_runpath=yes 18718 if test "$with_gnu_ld" = yes; then 18719 need_lib_prefix=no 18720 fi 18721 need_version=yes 18722 ;; 18723 18724sysv4 | sysv4.3*) 18725 version_type=linux 18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18727 soname_spec='${libname}${release}${shared_ext}$major' 18728 shlibpath_var=LD_LIBRARY_PATH 18729 case $host_vendor in 18730 sni) 18731 shlibpath_overrides_runpath=no 18732 need_lib_prefix=no 18733 export_dynamic_flag_spec='${wl}-Blargedynsym' 18734 runpath_var=LD_RUN_PATH 18735 ;; 18736 siemens) 18737 need_lib_prefix=no 18738 ;; 18739 motorola) 18740 need_lib_prefix=no 18741 need_version=no 18742 shlibpath_overrides_runpath=no 18743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18744 ;; 18745 esac 18746 ;; 18747 18748sysv4*MP*) 18749 if test -d /usr/nec ;then 18750 version_type=linux 18751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18752 soname_spec='$libname${shared_ext}.$major' 18753 shlibpath_var=LD_LIBRARY_PATH 18754 fi 18755 ;; 18756 18757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18758 version_type=freebsd-elf 18759 need_lib_prefix=no 18760 need_version=no 18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18762 soname_spec='${libname}${release}${shared_ext}$major' 18763 shlibpath_var=LD_LIBRARY_PATH 18764 hardcode_into_libs=yes 18765 if test "$with_gnu_ld" = yes; then 18766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18767 shlibpath_overrides_runpath=no 18768 else 18769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18770 shlibpath_overrides_runpath=yes 18771 case $host_os in 18772 sco3.2v5*) 18773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18774 ;; 18775 esac 18776 fi 18777 sys_lib_dlsearch_path_spec='/usr/lib' 18778 ;; 18779 18780uts4*) 18781 version_type=linux 18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18783 soname_spec='${libname}${release}${shared_ext}$major' 18784 shlibpath_var=LD_LIBRARY_PATH 18785 ;; 18786 18787*) 18788 dynamic_linker=no 18789 ;; 18790esac 18791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18792echo "${ECHO_T}$dynamic_linker" >&6; } 18793test "$dynamic_linker" = no && can_build_shared=no 18794 18795variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18796if test "$GCC" = yes; then 18797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18798fi 18799 18800{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18801echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18802hardcode_action_GCJ= 18803if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18804 test -n "$runpath_var_GCJ" || \ 18805 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18806 18807 # We can hardcode non-existant directories. 18808 if test "$hardcode_direct_GCJ" != no && 18809 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18810 # have to relink, otherwise we might link with an installed library 18811 # when we should be linking with a yet-to-be-installed one 18812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18813 test "$hardcode_minus_L_GCJ" != no; then 18814 # Linking always hardcodes the temporary library directory. 18815 hardcode_action_GCJ=relink 18816 else 18817 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18818 hardcode_action_GCJ=immediate 18819 fi 18820else 18821 # We cannot hardcode anything, or else we can only hardcode existing 18822 # directories. 18823 hardcode_action_GCJ=unsupported 18824fi 18825{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18826echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18827 18828if test "$hardcode_action_GCJ" = relink; then 18829 # Fast installation is not supported 18830 enable_fast_install=no 18831elif test "$shlibpath_overrides_runpath" = yes || 18832 test "$enable_shared" = no; then 18833 # Fast installation is not necessary 18834 enable_fast_install=needless 18835fi 18836 18837 18838# The else clause should only fire when bootstrapping the 18839# libtool distribution, otherwise you forgot to ship ltmain.sh 18840# with your package, and you will get complaints that there are 18841# no rules to generate ltmain.sh. 18842if test -f "$ltmain"; then 18843 # See if we are running on zsh, and set the options which allow our commands through 18844 # without removal of \ escapes. 18845 if test -n "${ZSH_VERSION+set}" ; then 18846 setopt NO_GLOB_SUBST 18847 fi 18848 # Now quote all the things that may contain metacharacters while being 18849 # careful not to overquote the AC_SUBSTed values. We take copies of the 18850 # variables and quote the copies for generation of the libtool script. 18851 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18852 SED SHELL STRIP \ 18853 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18854 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18855 deplibs_check_method reload_flag reload_cmds need_locks \ 18856 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18857 lt_cv_sys_global_symbol_to_c_name_address \ 18858 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18859 old_postinstall_cmds old_postuninstall_cmds \ 18860 compiler_GCJ \ 18861 CC_GCJ \ 18862 LD_GCJ \ 18863 lt_prog_compiler_wl_GCJ \ 18864 lt_prog_compiler_pic_GCJ \ 18865 lt_prog_compiler_static_GCJ \ 18866 lt_prog_compiler_no_builtin_flag_GCJ \ 18867 export_dynamic_flag_spec_GCJ \ 18868 thread_safe_flag_spec_GCJ \ 18869 whole_archive_flag_spec_GCJ \ 18870 enable_shared_with_static_runtimes_GCJ \ 18871 old_archive_cmds_GCJ \ 18872 old_archive_from_new_cmds_GCJ \ 18873 predep_objects_GCJ \ 18874 postdep_objects_GCJ \ 18875 predeps_GCJ \ 18876 postdeps_GCJ \ 18877 compiler_lib_search_path_GCJ \ 18878 archive_cmds_GCJ \ 18879 archive_expsym_cmds_GCJ \ 18880 postinstall_cmds_GCJ \ 18881 postuninstall_cmds_GCJ \ 18882 old_archive_from_expsyms_cmds_GCJ \ 18883 allow_undefined_flag_GCJ \ 18884 no_undefined_flag_GCJ \ 18885 export_symbols_cmds_GCJ \ 18886 hardcode_libdir_flag_spec_GCJ \ 18887 hardcode_libdir_flag_spec_ld_GCJ \ 18888 hardcode_libdir_separator_GCJ \ 18889 hardcode_automatic_GCJ \ 18890 module_cmds_GCJ \ 18891 module_expsym_cmds_GCJ \ 18892 lt_cv_prog_compiler_c_o_GCJ \ 18893 exclude_expsyms_GCJ \ 18894 include_expsyms_GCJ; do 18895 18896 case $var in 18897 old_archive_cmds_GCJ | \ 18898 old_archive_from_new_cmds_GCJ | \ 18899 archive_cmds_GCJ | \ 18900 archive_expsym_cmds_GCJ | \ 18901 module_cmds_GCJ | \ 18902 module_expsym_cmds_GCJ | \ 18903 old_archive_from_expsyms_cmds_GCJ | \ 18904 export_symbols_cmds_GCJ | \ 18905 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18906 postinstall_cmds | postuninstall_cmds | \ 18907 old_postinstall_cmds | old_postuninstall_cmds | \ 18908 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18909 # Double-quote double-evaled strings. 18910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18911 ;; 18912 *) 18913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18914 ;; 18915 esac 18916 done 18917 18918 case $lt_echo in 18919 *'\$0 --fallback-echo"') 18920 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18921 ;; 18922 esac 18923 18924cfgfile="$ofile" 18925 18926 cat <<__EOF__ >> "$cfgfile" 18927# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18928 18929# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18930 18931# Shell to use when invoking shell scripts. 18932SHELL=$lt_SHELL 18933 18934# Whether or not to build shared libraries. 18935build_libtool_libs=$enable_shared 18936 18937# Whether or not to build static libraries. 18938build_old_libs=$enable_static 18939 18940# Whether or not to add -lc for building shared libraries. 18941build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18942 18943# Whether or not to disallow shared libs when runtime libs are static 18944allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18945 18946# Whether or not to optimize for fast installation. 18947fast_install=$enable_fast_install 18948 18949# The host system. 18950host_alias=$host_alias 18951host=$host 18952host_os=$host_os 18953 18954# The build system. 18955build_alias=$build_alias 18956build=$build 18957build_os=$build_os 18958 18959# An echo program that does not interpret backslashes. 18960echo=$lt_echo 18961 18962# The archiver. 18963AR=$lt_AR 18964AR_FLAGS=$lt_AR_FLAGS 18965 18966# A C compiler. 18967LTCC=$lt_LTCC 18968 18969# LTCC compiler flags. 18970LTCFLAGS=$lt_LTCFLAGS 18971 18972# A language-specific compiler. 18973CC=$lt_compiler_GCJ 18974 18975# Is the compiler the GNU C compiler? 18976with_gcc=$GCC_GCJ 18977 18978# An ERE matcher. 18979EGREP=$lt_EGREP 18980 18981# The linker used to build libraries. 18982LD=$lt_LD_GCJ 18983 18984# Whether we need hard or soft links. 18985LN_S=$lt_LN_S 18986 18987# A BSD-compatible nm program. 18988NM=$lt_NM 18989 18990# A symbol stripping program 18991STRIP=$lt_STRIP 18992 18993# Used to examine libraries when file_magic_cmd begins "file" 18994MAGIC_CMD=$MAGIC_CMD 18995 18996# Used on cygwin: DLL creation program. 18997DLLTOOL="$DLLTOOL" 18998 18999# Used on cygwin: object dumper. 19000OBJDUMP="$OBJDUMP" 19001 19002# Used on cygwin: assembler. 19003AS="$AS" 19004 19005# The name of the directory that contains temporary libtool files. 19006objdir=$objdir 19007 19008# How to create reloadable object files. 19009reload_flag=$lt_reload_flag 19010reload_cmds=$lt_reload_cmds 19011 19012# How to pass a linker flag through the compiler. 19013wl=$lt_lt_prog_compiler_wl_GCJ 19014 19015# Object file suffix (normally "o"). 19016objext="$ac_objext" 19017 19018# Old archive suffix (normally "a"). 19019libext="$libext" 19020 19021# Shared library suffix (normally ".so"). 19022shrext_cmds='$shrext_cmds' 19023 19024# Executable file suffix (normally ""). 19025exeext="$exeext" 19026 19027# Additional compiler flags for building library objects. 19028pic_flag=$lt_lt_prog_compiler_pic_GCJ 19029pic_mode=$pic_mode 19030 19031# What is the maximum length of a command? 19032max_cmd_len=$lt_cv_sys_max_cmd_len 19033 19034# Does compiler simultaneously support -c and -o options? 19035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19036 19037# Must we lock files when doing compilation? 19038need_locks=$lt_need_locks 19039 19040# Do we need the lib prefix for modules? 19041need_lib_prefix=$need_lib_prefix 19042 19043# Do we need a version for libraries? 19044need_version=$need_version 19045 19046# Whether dlopen is supported. 19047dlopen_support=$enable_dlopen 19048 19049# Whether dlopen of programs is supported. 19050dlopen_self=$enable_dlopen_self 19051 19052# Whether dlopen of statically linked programs is supported. 19053dlopen_self_static=$enable_dlopen_self_static 19054 19055# Compiler flag to prevent dynamic linking. 19056link_static_flag=$lt_lt_prog_compiler_static_GCJ 19057 19058# Compiler flag to turn off builtin functions. 19059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19060 19061# Compiler flag to allow reflexive dlopens. 19062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19063 19064# Compiler flag to generate shared objects directly from archives. 19065whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19066 19067# Compiler flag to generate thread-safe objects. 19068thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19069 19070# Library versioning type. 19071version_type=$version_type 19072 19073# Format of library name prefix. 19074libname_spec=$lt_libname_spec 19075 19076# List of archive names. First name is the real one, the rest are links. 19077# The last name is the one that the linker finds with -lNAME. 19078library_names_spec=$lt_library_names_spec 19079 19080# The coded name of the library, if different from the real name. 19081soname_spec=$lt_soname_spec 19082 19083# Commands used to build and install an old-style archive. 19084RANLIB=$lt_RANLIB 19085old_archive_cmds=$lt_old_archive_cmds_GCJ 19086old_postinstall_cmds=$lt_old_postinstall_cmds 19087old_postuninstall_cmds=$lt_old_postuninstall_cmds 19088 19089# Create an old-style archive from a shared archive. 19090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19091 19092# Create a temporary old-style archive to link instead of a shared archive. 19093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19094 19095# Commands used to build and install a shared archive. 19096archive_cmds=$lt_archive_cmds_GCJ 19097archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19098postinstall_cmds=$lt_postinstall_cmds 19099postuninstall_cmds=$lt_postuninstall_cmds 19100 19101# Commands used to build a loadable module (assumed same as above if empty) 19102module_cmds=$lt_module_cmds_GCJ 19103module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19104 19105# Commands to strip libraries. 19106old_striplib=$lt_old_striplib 19107striplib=$lt_striplib 19108 19109# Dependencies to place before the objects being linked to create a 19110# shared library. 19111predep_objects=$lt_predep_objects_GCJ 19112 19113# Dependencies to place after the objects being linked to create a 19114# shared library. 19115postdep_objects=$lt_postdep_objects_GCJ 19116 19117# Dependencies to place before the objects being linked to create a 19118# shared library. 19119predeps=$lt_predeps_GCJ 19120 19121# Dependencies to place after the objects being linked to create a 19122# shared library. 19123postdeps=$lt_postdeps_GCJ 19124 19125# The library search path used internally by the compiler when linking 19126# a shared library. 19127compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19128 19129# Method to check whether dependent libraries are shared objects. 19130deplibs_check_method=$lt_deplibs_check_method 19131 19132# Command to use when deplibs_check_method == file_magic. 19133file_magic_cmd=$lt_file_magic_cmd 19134 19135# Flag that allows shared libraries with undefined symbols to be built. 19136allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19137 19138# Flag that forces no undefined symbols. 19139no_undefined_flag=$lt_no_undefined_flag_GCJ 19140 19141# Commands used to finish a libtool library installation in a directory. 19142finish_cmds=$lt_finish_cmds 19143 19144# Same as above, but a single script fragment to be evaled but not shown. 19145finish_eval=$lt_finish_eval 19146 19147# Take the output of nm and produce a listing of raw symbols and C names. 19148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19149 19150# Transform the output of nm in a proper C declaration 19151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19152 19153# Transform the output of nm in a C name address pair 19154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19155 19156# This is the shared library runtime path variable. 19157runpath_var=$runpath_var 19158 19159# This is the shared library path variable. 19160shlibpath_var=$shlibpath_var 19161 19162# Is shlibpath searched before the hard-coded library search path? 19163shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19164 19165# How to hardcode a shared library path into an executable. 19166hardcode_action=$hardcode_action_GCJ 19167 19168# Whether we should hardcode library paths into libraries. 19169hardcode_into_libs=$hardcode_into_libs 19170 19171# Flag to hardcode \$libdir into a binary during linking. 19172# This must work even if \$libdir does not exist. 19173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19174 19175# If ld is used when linking, flag to hardcode \$libdir into 19176# a binary during linking. This must work even if \$libdir does 19177# not exist. 19178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19179 19180# Whether we need a single -rpath flag with a separated argument. 19181hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19182 19183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19184# resulting binary. 19185hardcode_direct=$hardcode_direct_GCJ 19186 19187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19188# resulting binary. 19189hardcode_minus_L=$hardcode_minus_L_GCJ 19190 19191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19192# the resulting binary. 19193hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19194 19195# Set to yes if building a shared library automatically hardcodes DIR into the library 19196# and all subsequent libraries and executables linked against it. 19197hardcode_automatic=$hardcode_automatic_GCJ 19198 19199# Variables whose values should be saved in libtool wrapper scripts and 19200# restored at relink time. 19201variables_saved_for_relink="$variables_saved_for_relink" 19202 19203# Whether libtool must link a program against all its dependency libraries. 19204link_all_deplibs=$link_all_deplibs_GCJ 19205 19206# Compile-time system search path for libraries 19207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19208 19209# Run-time system search path for libraries 19210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19211 19212# Fix the shell variable \$srcfile for the compiler. 19213fix_srcfile_path="$fix_srcfile_path_GCJ" 19214 19215# Set to yes if exported symbols are required. 19216always_export_symbols=$always_export_symbols_GCJ 19217 19218# The commands to list exported symbols. 19219export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19220 19221# The commands to extract the exported symbol list from a shared archive. 19222extract_expsyms_cmds=$lt_extract_expsyms_cmds 19223 19224# Symbols that should not be listed in the preloaded symbols. 19225exclude_expsyms=$lt_exclude_expsyms_GCJ 19226 19227# Symbols that must always be exported. 19228include_expsyms=$lt_include_expsyms_GCJ 19229 19230# ### END LIBTOOL TAG CONFIG: $tagname 19231 19232__EOF__ 19233 19234 19235else 19236 # If there is no Makefile yet, we rely on a make rule to execute 19237 # `config.status --recheck' to rerun these tests and create the 19238 # libtool script then. 19239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19240 if test -f "$ltmain_in"; then 19241 test -f Makefile && make "$ltmain" 19242 fi 19243fi 19244 19245 19246ac_ext=c 19247ac_cpp='$CPP $CPPFLAGS' 19248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19250ac_compiler_gnu=$ac_cv_c_compiler_gnu 19251 19252CC="$lt_save_CC" 19253 19254 else 19255 tagname="" 19256 fi 19257 ;; 19258 19259 RC) 19260 19261 19262# Source file extension for RC test sources. 19263ac_ext=rc 19264 19265# Object file extension for compiled RC test sources. 19266objext=o 19267objext_RC=$objext 19268 19269# Code to be used in simple compile tests 19270lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19271 19272# Code to be used in simple link tests 19273lt_simple_link_test_code="$lt_simple_compile_test_code" 19274 19275# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19276 19277# If no C compiler was specified, use CC. 19278LTCC=${LTCC-"$CC"} 19279 19280# If no C compiler flags were specified, use CFLAGS. 19281LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19282 19283# Allow CC to be a program name with arguments. 19284compiler=$CC 19285 19286 19287# save warnings/boilerplate of simple test code 19288ac_outfile=conftest.$ac_objext 19289printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19291_lt_compiler_boilerplate=`cat conftest.err` 19292$rm conftest* 19293 19294ac_outfile=conftest.$ac_objext 19295printf "$lt_simple_link_test_code" >conftest.$ac_ext 19296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19297_lt_linker_boilerplate=`cat conftest.err` 19298$rm conftest* 19299 19300 19301# Allow CC to be a program name with arguments. 19302lt_save_CC="$CC" 19303CC=${RC-"windres"} 19304compiler=$CC 19305compiler_RC=$CC 19306for cc_temp in $compiler""; do 19307 case $cc_temp in 19308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19310 \-*) ;; 19311 *) break;; 19312 esac 19313done 19314cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19315 19316lt_cv_prog_compiler_c_o_RC=yes 19317 19318# The else clause should only fire when bootstrapping the 19319# libtool distribution, otherwise you forgot to ship ltmain.sh 19320# with your package, and you will get complaints that there are 19321# no rules to generate ltmain.sh. 19322if test -f "$ltmain"; then 19323 # See if we are running on zsh, and set the options which allow our commands through 19324 # without removal of \ escapes. 19325 if test -n "${ZSH_VERSION+set}" ; then 19326 setopt NO_GLOB_SUBST 19327 fi 19328 # Now quote all the things that may contain metacharacters while being 19329 # careful not to overquote the AC_SUBSTed values. We take copies of the 19330 # variables and quote the copies for generation of the libtool script. 19331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19332 SED SHELL STRIP \ 19333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19335 deplibs_check_method reload_flag reload_cmds need_locks \ 19336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19337 lt_cv_sys_global_symbol_to_c_name_address \ 19338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19339 old_postinstall_cmds old_postuninstall_cmds \ 19340 compiler_RC \ 19341 CC_RC \ 19342 LD_RC \ 19343 lt_prog_compiler_wl_RC \ 19344 lt_prog_compiler_pic_RC \ 19345 lt_prog_compiler_static_RC \ 19346 lt_prog_compiler_no_builtin_flag_RC \ 19347 export_dynamic_flag_spec_RC \ 19348 thread_safe_flag_spec_RC \ 19349 whole_archive_flag_spec_RC \ 19350 enable_shared_with_static_runtimes_RC \ 19351 old_archive_cmds_RC \ 19352 old_archive_from_new_cmds_RC \ 19353 predep_objects_RC \ 19354 postdep_objects_RC \ 19355 predeps_RC \ 19356 postdeps_RC \ 19357 compiler_lib_search_path_RC \ 19358 archive_cmds_RC \ 19359 archive_expsym_cmds_RC \ 19360 postinstall_cmds_RC \ 19361 postuninstall_cmds_RC \ 19362 old_archive_from_expsyms_cmds_RC \ 19363 allow_undefined_flag_RC \ 19364 no_undefined_flag_RC \ 19365 export_symbols_cmds_RC \ 19366 hardcode_libdir_flag_spec_RC \ 19367 hardcode_libdir_flag_spec_ld_RC \ 19368 hardcode_libdir_separator_RC \ 19369 hardcode_automatic_RC \ 19370 module_cmds_RC \ 19371 module_expsym_cmds_RC \ 19372 lt_cv_prog_compiler_c_o_RC \ 19373 exclude_expsyms_RC \ 19374 include_expsyms_RC; do 19375 19376 case $var in 19377 old_archive_cmds_RC | \ 19378 old_archive_from_new_cmds_RC | \ 19379 archive_cmds_RC | \ 19380 archive_expsym_cmds_RC | \ 19381 module_cmds_RC | \ 19382 module_expsym_cmds_RC | \ 19383 old_archive_from_expsyms_cmds_RC | \ 19384 export_symbols_cmds_RC | \ 19385 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19386 postinstall_cmds | postuninstall_cmds | \ 19387 old_postinstall_cmds | old_postuninstall_cmds | \ 19388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19389 # Double-quote double-evaled strings. 19390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19391 ;; 19392 *) 19393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19394 ;; 19395 esac 19396 done 19397 19398 case $lt_echo in 19399 *'\$0 --fallback-echo"') 19400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19401 ;; 19402 esac 19403 19404cfgfile="$ofile" 19405 19406 cat <<__EOF__ >> "$cfgfile" 19407# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19408 19409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19410 19411# Shell to use when invoking shell scripts. 19412SHELL=$lt_SHELL 19413 19414# Whether or not to build shared libraries. 19415build_libtool_libs=$enable_shared 19416 19417# Whether or not to build static libraries. 19418build_old_libs=$enable_static 19419 19420# Whether or not to add -lc for building shared libraries. 19421build_libtool_need_lc=$archive_cmds_need_lc_RC 19422 19423# Whether or not to disallow shared libs when runtime libs are static 19424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19425 19426# Whether or not to optimize for fast installation. 19427fast_install=$enable_fast_install 19428 19429# The host system. 19430host_alias=$host_alias 19431host=$host 19432host_os=$host_os 19433 19434# The build system. 19435build_alias=$build_alias 19436build=$build 19437build_os=$build_os 19438 19439# An echo program that does not interpret backslashes. 19440echo=$lt_echo 19441 19442# The archiver. 19443AR=$lt_AR 19444AR_FLAGS=$lt_AR_FLAGS 19445 19446# A C compiler. 19447LTCC=$lt_LTCC 19448 19449# LTCC compiler flags. 19450LTCFLAGS=$lt_LTCFLAGS 19451 19452# A language-specific compiler. 19453CC=$lt_compiler_RC 19454 19455# Is the compiler the GNU C compiler? 19456with_gcc=$GCC_RC 19457 19458# An ERE matcher. 19459EGREP=$lt_EGREP 19460 19461# The linker used to build libraries. 19462LD=$lt_LD_RC 19463 19464# Whether we need hard or soft links. 19465LN_S=$lt_LN_S 19466 19467# A BSD-compatible nm program. 19468NM=$lt_NM 19469 19470# A symbol stripping program 19471STRIP=$lt_STRIP 19472 19473# Used to examine libraries when file_magic_cmd begins "file" 19474MAGIC_CMD=$MAGIC_CMD 19475 19476# Used on cygwin: DLL creation program. 19477DLLTOOL="$DLLTOOL" 19478 19479# Used on cygwin: object dumper. 19480OBJDUMP="$OBJDUMP" 19481 19482# Used on cygwin: assembler. 19483AS="$AS" 19484 19485# The name of the directory that contains temporary libtool files. 19486objdir=$objdir 19487 19488# How to create reloadable object files. 19489reload_flag=$lt_reload_flag 19490reload_cmds=$lt_reload_cmds 19491 19492# How to pass a linker flag through the compiler. 19493wl=$lt_lt_prog_compiler_wl_RC 19494 19495# Object file suffix (normally "o"). 19496objext="$ac_objext" 19497 19498# Old archive suffix (normally "a"). 19499libext="$libext" 19500 19501# Shared library suffix (normally ".so"). 19502shrext_cmds='$shrext_cmds' 19503 19504# Executable file suffix (normally ""). 19505exeext="$exeext" 19506 19507# Additional compiler flags for building library objects. 19508pic_flag=$lt_lt_prog_compiler_pic_RC 19509pic_mode=$pic_mode 19510 19511# What is the maximum length of a command? 19512max_cmd_len=$lt_cv_sys_max_cmd_len 19513 19514# Does compiler simultaneously support -c and -o options? 19515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19516 19517# Must we lock files when doing compilation? 19518need_locks=$lt_need_locks 19519 19520# Do we need the lib prefix for modules? 19521need_lib_prefix=$need_lib_prefix 19522 19523# Do we need a version for libraries? 19524need_version=$need_version 19525 19526# Whether dlopen is supported. 19527dlopen_support=$enable_dlopen 19528 19529# Whether dlopen of programs is supported. 19530dlopen_self=$enable_dlopen_self 19531 19532# Whether dlopen of statically linked programs is supported. 19533dlopen_self_static=$enable_dlopen_self_static 19534 19535# Compiler flag to prevent dynamic linking. 19536link_static_flag=$lt_lt_prog_compiler_static_RC 19537 19538# Compiler flag to turn off builtin functions. 19539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19540 19541# Compiler flag to allow reflexive dlopens. 19542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19543 19544# Compiler flag to generate shared objects directly from archives. 19545whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19546 19547# Compiler flag to generate thread-safe objects. 19548thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19549 19550# Library versioning type. 19551version_type=$version_type 19552 19553# Format of library name prefix. 19554libname_spec=$lt_libname_spec 19555 19556# List of archive names. First name is the real one, the rest are links. 19557# The last name is the one that the linker finds with -lNAME. 19558library_names_spec=$lt_library_names_spec 19559 19560# The coded name of the library, if different from the real name. 19561soname_spec=$lt_soname_spec 19562 19563# Commands used to build and install an old-style archive. 19564RANLIB=$lt_RANLIB 19565old_archive_cmds=$lt_old_archive_cmds_RC 19566old_postinstall_cmds=$lt_old_postinstall_cmds 19567old_postuninstall_cmds=$lt_old_postuninstall_cmds 19568 19569# Create an old-style archive from a shared archive. 19570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19571 19572# Create a temporary old-style archive to link instead of a shared archive. 19573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19574 19575# Commands used to build and install a shared archive. 19576archive_cmds=$lt_archive_cmds_RC 19577archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19578postinstall_cmds=$lt_postinstall_cmds 19579postuninstall_cmds=$lt_postuninstall_cmds 19580 19581# Commands used to build a loadable module (assumed same as above if empty) 19582module_cmds=$lt_module_cmds_RC 19583module_expsym_cmds=$lt_module_expsym_cmds_RC 19584 19585# Commands to strip libraries. 19586old_striplib=$lt_old_striplib 19587striplib=$lt_striplib 19588 19589# Dependencies to place before the objects being linked to create a 19590# shared library. 19591predep_objects=$lt_predep_objects_RC 19592 19593# Dependencies to place after the objects being linked to create a 19594# shared library. 19595postdep_objects=$lt_postdep_objects_RC 19596 19597# Dependencies to place before the objects being linked to create a 19598# shared library. 19599predeps=$lt_predeps_RC 19600 19601# Dependencies to place after the objects being linked to create a 19602# shared library. 19603postdeps=$lt_postdeps_RC 19604 19605# The library search path used internally by the compiler when linking 19606# a shared library. 19607compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19608 19609# Method to check whether dependent libraries are shared objects. 19610deplibs_check_method=$lt_deplibs_check_method 19611 19612# Command to use when deplibs_check_method == file_magic. 19613file_magic_cmd=$lt_file_magic_cmd 19614 19615# Flag that allows shared libraries with undefined symbols to be built. 19616allow_undefined_flag=$lt_allow_undefined_flag_RC 19617 19618# Flag that forces no undefined symbols. 19619no_undefined_flag=$lt_no_undefined_flag_RC 19620 19621# Commands used to finish a libtool library installation in a directory. 19622finish_cmds=$lt_finish_cmds 19623 19624# Same as above, but a single script fragment to be evaled but not shown. 19625finish_eval=$lt_finish_eval 19626 19627# Take the output of nm and produce a listing of raw symbols and C names. 19628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19629 19630# Transform the output of nm in a proper C declaration 19631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19632 19633# Transform the output of nm in a C name address pair 19634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19635 19636# This is the shared library runtime path variable. 19637runpath_var=$runpath_var 19638 19639# This is the shared library path variable. 19640shlibpath_var=$shlibpath_var 19641 19642# Is shlibpath searched before the hard-coded library search path? 19643shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19644 19645# How to hardcode a shared library path into an executable. 19646hardcode_action=$hardcode_action_RC 19647 19648# Whether we should hardcode library paths into libraries. 19649hardcode_into_libs=$hardcode_into_libs 19650 19651# Flag to hardcode \$libdir into a binary during linking. 19652# This must work even if \$libdir does not exist. 19653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19654 19655# If ld is used when linking, flag to hardcode \$libdir into 19656# a binary during linking. This must work even if \$libdir does 19657# not exist. 19658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19659 19660# Whether we need a single -rpath flag with a separated argument. 19661hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19662 19663# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19664# resulting binary. 19665hardcode_direct=$hardcode_direct_RC 19666 19667# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19668# resulting binary. 19669hardcode_minus_L=$hardcode_minus_L_RC 19670 19671# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19672# the resulting binary. 19673hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19674 19675# Set to yes if building a shared library automatically hardcodes DIR into the library 19676# and all subsequent libraries and executables linked against it. 19677hardcode_automatic=$hardcode_automatic_RC 19678 19679# Variables whose values should be saved in libtool wrapper scripts and 19680# restored at relink time. 19681variables_saved_for_relink="$variables_saved_for_relink" 19682 19683# Whether libtool must link a program against all its dependency libraries. 19684link_all_deplibs=$link_all_deplibs_RC 19685 19686# Compile-time system search path for libraries 19687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19688 19689# Run-time system search path for libraries 19690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19691 19692# Fix the shell variable \$srcfile for the compiler. 19693fix_srcfile_path="$fix_srcfile_path_RC" 19694 19695# Set to yes if exported symbols are required. 19696always_export_symbols=$always_export_symbols_RC 19697 19698# The commands to list exported symbols. 19699export_symbols_cmds=$lt_export_symbols_cmds_RC 19700 19701# The commands to extract the exported symbol list from a shared archive. 19702extract_expsyms_cmds=$lt_extract_expsyms_cmds 19703 19704# Symbols that should not be listed in the preloaded symbols. 19705exclude_expsyms=$lt_exclude_expsyms_RC 19706 19707# Symbols that must always be exported. 19708include_expsyms=$lt_include_expsyms_RC 19709 19710# ### END LIBTOOL TAG CONFIG: $tagname 19711 19712__EOF__ 19713 19714 19715else 19716 # If there is no Makefile yet, we rely on a make rule to execute 19717 # `config.status --recheck' to rerun these tests and create the 19718 # libtool script then. 19719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19720 if test -f "$ltmain_in"; then 19721 test -f Makefile && make "$ltmain" 19722 fi 19723fi 19724 19725 19726ac_ext=c 19727ac_cpp='$CPP $CPPFLAGS' 19728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19730ac_compiler_gnu=$ac_cv_c_compiler_gnu 19731 19732CC="$lt_save_CC" 19733 19734 ;; 19735 19736 *) 19737 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19738echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19739 { (exit 1); exit 1; }; } 19740 ;; 19741 esac 19742 19743 # Append the new tag name to the list of available tags. 19744 if test -n "$tagname" ; then 19745 available_tags="$available_tags $tagname" 19746 fi 19747 fi 19748 done 19749 IFS="$lt_save_ifs" 19750 19751 # Now substitute the updated list of available tags. 19752 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19753 mv "${ofile}T" "$ofile" 19754 chmod +x "$ofile" 19755 else 19756 rm -f "${ofile}T" 19757 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19758echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19759 { (exit 1); exit 1; }; } 19760 fi 19761fi 19762 19763 19764 19765# This can be used to rebuild libtool when needed 19766LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19767 19768# Always use our own libtool. 19769LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19770 19771# Prevent multiple expansion 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793csoap_major=`echo $VERSION | $AWK -F. '{print $1}'` 19794csoap_minor=`echo $VERSION | $AWK -F. '{print $2}'` 19795csoap_patch=`echo $VERSION | $AWK -F. '{print $3}'` 19796 19797 19798 19799 19800csoap_release="$csoap_major.$csoap_minor" 19801csoap_version=`expr $csoap_major + $csoap_minor`":$csoap_patch:$csoap_minor" 19802 19803 19804 19805nanohttp_release=$csoap_release 19806nanohttp_version=$csoap_version 19807 19808 19809 19810{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19811echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19812if test "${ac_cv_header_stdc+set}" = set; then 19813 echo $ECHO_N "(cached) $ECHO_C" >&6 19814else 19815 cat >conftest.$ac_ext <<_ACEOF 19816/* confdefs.h. */ 19817_ACEOF 19818cat confdefs.h >>conftest.$ac_ext 19819cat >>conftest.$ac_ext <<_ACEOF 19820/* end confdefs.h. */ 19821#include <stdlib.h> 19822#include <stdarg.h> 19823#include <string.h> 19824#include <float.h> 19825 19826int 19827main () 19828{ 19829 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834rm -f conftest.$ac_objext 19835if { (ac_try="$ac_compile" 19836case "(($ac_try" in 19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19838 *) ac_try_echo=$ac_try;; 19839esac 19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19841 (eval "$ac_compile") 2>conftest.er1 19842 ac_status=$? 19843 grep -v '^ *+' conftest.er1 >conftest.err 19844 rm -f conftest.er1 19845 cat conftest.err >&5 19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19847 (exit $ac_status); } && 19848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19849 { (case "(($ac_try" in 19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19851 *) ac_try_echo=$ac_try;; 19852esac 19853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19854 (eval "$ac_try") 2>&5 19855 ac_status=$? 19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19857 (exit $ac_status); }; } && 19858 { ac_try='test -s conftest.$ac_objext' 19859 { (case "(($ac_try" in 19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19861 *) ac_try_echo=$ac_try;; 19862esac 19863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19864 (eval "$ac_try") 2>&5 19865 ac_status=$? 19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19867 (exit $ac_status); }; }; then 19868 ac_cv_header_stdc=yes 19869else 19870 echo "$as_me: failed program was:" >&5 19871sed 's/^/| /' conftest.$ac_ext >&5 19872 19873 ac_cv_header_stdc=no 19874fi 19875 19876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19877 19878if test $ac_cv_header_stdc = yes; then 19879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19880 cat >conftest.$ac_ext <<_ACEOF 19881/* confdefs.h. */ 19882_ACEOF 19883cat confdefs.h >>conftest.$ac_ext 19884cat >>conftest.$ac_ext <<_ACEOF 19885/* end confdefs.h. */ 19886#include <string.h> 19887 19888_ACEOF 19889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19890 $EGREP "memchr" >/dev/null 2>&1; then 19891 : 19892else 19893 ac_cv_header_stdc=no 19894fi 19895rm -f conftest* 19896 19897fi 19898 19899if test $ac_cv_header_stdc = yes; then 19900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19901 cat >conftest.$ac_ext <<_ACEOF 19902/* confdefs.h. */ 19903_ACEOF 19904cat confdefs.h >>conftest.$ac_ext 19905cat >>conftest.$ac_ext <<_ACEOF 19906/* end confdefs.h. */ 19907#include <stdlib.h> 19908 19909_ACEOF 19910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19911 $EGREP "free" >/dev/null 2>&1; then 19912 : 19913else 19914 ac_cv_header_stdc=no 19915fi 19916rm -f conftest* 19917 19918fi 19919 19920if test $ac_cv_header_stdc = yes; then 19921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19922 if test "$cross_compiling" = yes; then 19923 : 19924else 19925 cat >conftest.$ac_ext <<_ACEOF 19926/* confdefs.h. */ 19927_ACEOF 19928cat confdefs.h >>conftest.$ac_ext 19929cat >>conftest.$ac_ext <<_ACEOF 19930/* end confdefs.h. */ 19931#include <ctype.h> 19932#include <stdlib.h> 19933#if ((' ' & 0x0FF) == 0x020) 19934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19936#else 19937# define ISLOWER(c) \ 19938 (('a' <= (c) && (c) <= 'i') \ 19939 || ('j' <= (c) && (c) <= 'r') \ 19940 || ('s' <= (c) && (c) <= 'z')) 19941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19942#endif 19943 19944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19945int 19946main () 19947{ 19948 int i; 19949 for (i = 0; i < 256; i++) 19950 if (XOR (islower (i), ISLOWER (i)) 19951 || toupper (i) != TOUPPER (i)) 19952 return 2; 19953 return 0; 19954} 19955_ACEOF 19956rm -f conftest$ac_exeext 19957if { (ac_try="$ac_link" 19958case "(($ac_try" in 19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19960 *) ac_try_echo=$ac_try;; 19961esac 19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19963 (eval "$ac_link") 2>&5 19964 ac_status=$? 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19967 { (case "(($ac_try" in 19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19969 *) ac_try_echo=$ac_try;; 19970esac 19971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19972 (eval "$ac_try") 2>&5 19973 ac_status=$? 19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19975 (exit $ac_status); }; }; then 19976 : 19977else 19978 echo "$as_me: program exited with status $ac_status" >&5 19979echo "$as_me: failed program was:" >&5 19980sed 's/^/| /' conftest.$ac_ext >&5 19981 19982( exit $ac_status ) 19983ac_cv_header_stdc=no 19984fi 19985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19986fi 19987 19988 19989fi 19990fi 19991{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19992echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 19993if test $ac_cv_header_stdc = yes; then 19994 19995cat >>confdefs.h <<\_ACEOF 19996@%:@define STDC_HEADERS 1 19997_ACEOF 19998 19999fi 20000 20001{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20002echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 20003if test "${ac_cv_header_time+set}" = set; then 20004 echo $ECHO_N "(cached) $ECHO_C" >&6 20005else 20006 cat >conftest.$ac_ext <<_ACEOF 20007/* confdefs.h. */ 20008_ACEOF 20009cat confdefs.h >>conftest.$ac_ext 20010cat >>conftest.$ac_ext <<_ACEOF 20011/* end confdefs.h. */ 20012#include <sys/types.h> 20013#include <sys/time.h> 20014#include <time.h> 20015 20016int 20017main () 20018{ 20019if ((struct tm *) 0) 20020return 0; 20021 ; 20022 return 0; 20023} 20024_ACEOF 20025rm -f conftest.$ac_objext 20026if { (ac_try="$ac_compile" 20027case "(($ac_try" in 20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20029 *) ac_try_echo=$ac_try;; 20030esac 20031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20032 (eval "$ac_compile") 2>conftest.er1 20033 ac_status=$? 20034 grep -v '^ *+' conftest.er1 >conftest.err 20035 rm -f conftest.er1 20036 cat conftest.err >&5 20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20038 (exit $ac_status); } && 20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20040 { (case "(($ac_try" in 20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20042 *) ac_try_echo=$ac_try;; 20043esac 20044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20045 (eval "$ac_try") 2>&5 20046 ac_status=$? 20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20048 (exit $ac_status); }; } && 20049 { ac_try='test -s conftest.$ac_objext' 20050 { (case "(($ac_try" in 20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20052 *) ac_try_echo=$ac_try;; 20053esac 20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20055 (eval "$ac_try") 2>&5 20056 ac_status=$? 20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20058 (exit $ac_status); }; }; then 20059 ac_cv_header_time=yes 20060else 20061 echo "$as_me: failed program was:" >&5 20062sed 's/^/| /' conftest.$ac_ext >&5 20063 20064 ac_cv_header_time=no 20065fi 20066 20067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20068fi 20069{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20070echo "${ECHO_T}$ac_cv_header_time" >&6; } 20071if test $ac_cv_header_time = yes; then 20072 20073cat >>confdefs.h <<\_ACEOF 20074@%:@define TIME_WITH_SYS_TIME 1 20075_ACEOF 20076 20077fi 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h signal.h pthread.h string.h sys/socket.h sys/time.h unistd.h io.h stdio.h stdarg.h errno.h ctype.h openssl/rand.h openssl/err.h 20101do 20102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20104 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20107 echo $ECHO_N "(cached) $ECHO_C" >&6 20108fi 20109ac_res=`eval echo '${'$as_ac_Header'}'` 20110 { echo "$as_me:$LINENO: result: $ac_res" >&5 20111echo "${ECHO_T}$ac_res" >&6; } 20112else 20113 # Is the header compilable? 20114{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20116cat >conftest.$ac_ext <<_ACEOF 20117/* confdefs.h. */ 20118_ACEOF 20119cat confdefs.h >>conftest.$ac_ext 20120cat >>conftest.$ac_ext <<_ACEOF 20121/* end confdefs.h. */ 20122$ac_includes_default 20123@%:@include <$ac_header> 20124_ACEOF 20125rm -f conftest.$ac_objext 20126if { (ac_try="$ac_compile" 20127case "(($ac_try" in 20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20129 *) ac_try_echo=$ac_try;; 20130esac 20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20132 (eval "$ac_compile") 2>conftest.er1 20133 ac_status=$? 20134 grep -v '^ *+' conftest.er1 >conftest.err 20135 rm -f conftest.er1 20136 cat conftest.err >&5 20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20138 (exit $ac_status); } && 20139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20140 { (case "(($ac_try" in 20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20142 *) ac_try_echo=$ac_try;; 20143esac 20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20145 (eval "$ac_try") 2>&5 20146 ac_status=$? 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); }; } && 20149 { ac_try='test -s conftest.$ac_objext' 20150 { (case "(($ac_try" in 20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20152 *) ac_try_echo=$ac_try;; 20153esac 20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20155 (eval "$ac_try") 2>&5 20156 ac_status=$? 20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20158 (exit $ac_status); }; }; then 20159 ac_header_compiler=yes 20160else 20161 echo "$as_me: failed program was:" >&5 20162sed 's/^/| /' conftest.$ac_ext >&5 20163 20164 ac_header_compiler=no 20165fi 20166 20167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20168{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20169echo "${ECHO_T}$ac_header_compiler" >&6; } 20170 20171# Is the header present? 20172{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20174cat >conftest.$ac_ext <<_ACEOF 20175/* confdefs.h. */ 20176_ACEOF 20177cat confdefs.h >>conftest.$ac_ext 20178cat >>conftest.$ac_ext <<_ACEOF 20179/* end confdefs.h. */ 20180@%:@include <$ac_header> 20181_ACEOF 20182if { (ac_try="$ac_cpp conftest.$ac_ext" 20183case "(($ac_try" in 20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20185 *) ac_try_echo=$ac_try;; 20186esac 20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20189 ac_status=$? 20190 grep -v '^ *+' conftest.er1 >conftest.err 20191 rm -f conftest.er1 20192 cat conftest.err >&5 20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20194 (exit $ac_status); } >/dev/null; then 20195 if test -s conftest.err; then 20196 ac_cpp_err=$ac_c_preproc_warn_flag 20197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20198 else 20199 ac_cpp_err= 20200 fi 20201else 20202 ac_cpp_err=yes 20203fi 20204if test -z "$ac_cpp_err"; then 20205 ac_header_preproc=yes 20206else 20207 echo "$as_me: failed program was:" >&5 20208sed 's/^/| /' conftest.$ac_ext >&5 20209 20210 ac_header_preproc=no 20211fi 20212 20213rm -f conftest.err conftest.$ac_ext 20214{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20215echo "${ECHO_T}$ac_header_preproc" >&6; } 20216 20217# So? What about this header? 20218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20219 yes:no: ) 20220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20224 ac_header_preproc=yes 20225 ;; 20226 no:yes:* ) 20227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20234echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20239 20240 ;; 20241esac 20242{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20245 echo $ECHO_N "(cached) $ECHO_C" >&6 20246else 20247 eval "$as_ac_Header=\$ac_header_preproc" 20248fi 20249ac_res=`eval echo '${'$as_ac_Header'}'` 20250 { echo "$as_me:$LINENO: result: $ac_res" >&5 20251echo "${ECHO_T}$ac_res" >&6; } 20252 20253fi 20254if test `eval echo '${'$as_ac_Header'}'` = yes; then 20255 cat >>confdefs.h <<_ACEOF 20256@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20257_ACEOF 20258 20259fi 20260 20261done 20262 20263 20264{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20265echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20266if test "${ac_cv_c_const+set}" = set; then 20267 echo $ECHO_N "(cached) $ECHO_C" >&6 20268else 20269 cat >conftest.$ac_ext <<_ACEOF 20270/* confdefs.h. */ 20271_ACEOF 20272cat confdefs.h >>conftest.$ac_ext 20273cat >>conftest.$ac_ext <<_ACEOF 20274/* end confdefs.h. */ 20275 20276int 20277main () 20278{ 20279/* FIXME: Include the comments suggested by Paul. */ 20280#ifndef __cplusplus 20281 /* Ultrix mips cc rejects this. */ 20282 typedef int charset[2]; 20283 const charset x; 20284 /* SunOS 4.1.1 cc rejects this. */ 20285 char const *const *ccp; 20286 char **p; 20287 /* NEC SVR4.0.2 mips cc rejects this. */ 20288 struct point {int x, y;}; 20289 static struct point const zero = {0,0}; 20290 /* AIX XL C 1.02.0.0 rejects this. 20291 It does not let you subtract one const X* pointer from another in 20292 an arm of an if-expression whose if-part is not a constant 20293 expression */ 20294 const char *g = "string"; 20295 ccp = &g + (g ? g-g : 0); 20296 /* HPUX 7.0 cc rejects these. */ 20297 ++ccp; 20298 p = (char**) ccp; 20299 ccp = (char const *const *) p; 20300 { /* SCO 3.2v4 cc rejects this. */ 20301 char *t; 20302 char const *s = 0 ? (char *) 0 : (char const *) 0; 20303 20304 *t++ = 0; 20305 if (s) return 0; 20306 } 20307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20308 int x[] = {25, 17}; 20309 const int *foo = &x[0]; 20310 ++foo; 20311 } 20312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20313 typedef const int *iptr; 20314 iptr p = 0; 20315 ++p; 20316 } 20317 { /* AIX XL C 1.02.0.0 rejects this saying 20318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20319 struct s { int j; const int *ap[3]; }; 20320 struct s *b; b->j = 5; 20321 } 20322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20323 const int foo = 10; 20324 if (!foo) return 0; 20325 } 20326 return !x[0] && !zero.x; 20327#endif 20328 20329 ; 20330 return 0; 20331} 20332_ACEOF 20333rm -f conftest.$ac_objext 20334if { (ac_try="$ac_compile" 20335case "(($ac_try" in 20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20337 *) ac_try_echo=$ac_try;; 20338esac 20339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20340 (eval "$ac_compile") 2>conftest.er1 20341 ac_status=$? 20342 grep -v '^ *+' conftest.er1 >conftest.err 20343 rm -f conftest.er1 20344 cat conftest.err >&5 20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20346 (exit $ac_status); } && 20347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20348 { (case "(($ac_try" in 20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20350 *) ac_try_echo=$ac_try;; 20351esac 20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20353 (eval "$ac_try") 2>&5 20354 ac_status=$? 20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20356 (exit $ac_status); }; } && 20357 { ac_try='test -s conftest.$ac_objext' 20358 { (case "(($ac_try" in 20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20360 *) ac_try_echo=$ac_try;; 20361esac 20362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20363 (eval "$ac_try") 2>&5 20364 ac_status=$? 20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20366 (exit $ac_status); }; }; then 20367 ac_cv_c_const=yes 20368else 20369 echo "$as_me: failed program was:" >&5 20370sed 's/^/| /' conftest.$ac_ext >&5 20371 20372 ac_cv_c_const=no 20373fi 20374 20375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20376fi 20377{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20378echo "${ECHO_T}$ac_cv_c_const" >&6; } 20379if test $ac_cv_c_const = no; then 20380 20381cat >>confdefs.h <<\_ACEOF 20382@%:@define const 20383_ACEOF 20384 20385fi 20386 20387{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20388echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 20389if test "${ac_cv_struct_tm+set}" = set; then 20390 echo $ECHO_N "(cached) $ECHO_C" >&6 20391else 20392 cat >conftest.$ac_ext <<_ACEOF 20393/* confdefs.h. */ 20394_ACEOF 20395cat confdefs.h >>conftest.$ac_ext 20396cat >>conftest.$ac_ext <<_ACEOF 20397/* end confdefs.h. */ 20398#include <sys/types.h> 20399#include <time.h> 20400 20401int 20402main () 20403{ 20404struct tm *tp; tp->tm_sec; 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20424 { (case "(($ac_try" in 20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20426 *) ac_try_echo=$ac_try;; 20427esac 20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20429 (eval "$ac_try") 2>&5 20430 ac_status=$? 20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20432 (exit $ac_status); }; } && 20433 { ac_try='test -s conftest.$ac_objext' 20434 { (case "(($ac_try" in 20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20436 *) ac_try_echo=$ac_try;; 20437esac 20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20439 (eval "$ac_try") 2>&5 20440 ac_status=$? 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); }; }; then 20443 ac_cv_struct_tm=time.h 20444else 20445 echo "$as_me: failed program was:" >&5 20446sed 's/^/| /' conftest.$ac_ext >&5 20447 20448 ac_cv_struct_tm=sys/time.h 20449fi 20450 20451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20452fi 20453{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20454echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 20455if test $ac_cv_struct_tm = sys/time.h; then 20456 20457cat >>confdefs.h <<\_ACEOF 20458@%:@define TM_IN_SYS_TIME 1 20459_ACEOF 20460 20461fi 20462 20463 20464{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 20465echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 20466if test "${ac_cv_type_signal+set}" = set; then 20467 echo $ECHO_N "(cached) $ECHO_C" >&6 20468else 20469 cat >conftest.$ac_ext <<_ACEOF 20470/* confdefs.h. */ 20471_ACEOF 20472cat confdefs.h >>conftest.$ac_ext 20473cat >>conftest.$ac_ext <<_ACEOF 20474/* end confdefs.h. */ 20475#include <sys/types.h> 20476#include <signal.h> 20477 20478int 20479main () 20480{ 20481return *(signal (0, 0)) (0) == 1; 20482 ; 20483 return 0; 20484} 20485_ACEOF 20486rm -f conftest.$ac_objext 20487if { (ac_try="$ac_compile" 20488case "(($ac_try" in 20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20490 *) ac_try_echo=$ac_try;; 20491esac 20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20493 (eval "$ac_compile") 2>conftest.er1 20494 ac_status=$? 20495 grep -v '^ *+' conftest.er1 >conftest.err 20496 rm -f conftest.er1 20497 cat conftest.err >&5 20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20499 (exit $ac_status); } && 20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20501 { (case "(($ac_try" in 20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20503 *) ac_try_echo=$ac_try;; 20504esac 20505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20506 (eval "$ac_try") 2>&5 20507 ac_status=$? 20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20509 (exit $ac_status); }; } && 20510 { ac_try='test -s conftest.$ac_objext' 20511 { (case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514esac 20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_try") 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; }; then 20520 ac_cv_type_signal=int 20521else 20522 echo "$as_me: failed program was:" >&5 20523sed 's/^/| /' conftest.$ac_ext >&5 20524 20525 ac_cv_type_signal=void 20526fi 20527 20528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20529fi 20530{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20531echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20532 20533cat >>confdefs.h <<_ACEOF 20534@%:@define RETSIGTYPE $ac_cv_type_signal 20535_ACEOF 20536 20537 20538 20539{ echo "$as_me:$LINENO: checking for size_t" >&5 20540echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 20541if test "${ac_cv_type_size_t+set}" = set; then 20542 echo $ECHO_N "(cached) $ECHO_C" >&6 20543else 20544 cat >conftest.$ac_ext <<_ACEOF 20545/* confdefs.h. */ 20546_ACEOF 20547cat confdefs.h >>conftest.$ac_ext 20548cat >>conftest.$ac_ext <<_ACEOF 20549/* end confdefs.h. */ 20550$ac_includes_default 20551typedef size_t ac__type_new_; 20552int 20553main () 20554{ 20555if ((ac__type_new_ *) 0) 20556 return 0; 20557if (sizeof (ac__type_new_)) 20558 return 0; 20559 ; 20560 return 0; 20561} 20562_ACEOF 20563rm -f conftest.$ac_objext 20564if { (ac_try="$ac_compile" 20565case "(($ac_try" in 20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20567 *) ac_try_echo=$ac_try;; 20568esac 20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20570 (eval "$ac_compile") 2>conftest.er1 20571 ac_status=$? 20572 grep -v '^ *+' conftest.er1 >conftest.err 20573 rm -f conftest.er1 20574 cat conftest.err >&5 20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20576 (exit $ac_status); } && 20577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20578 { (case "(($ac_try" in 20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20580 *) ac_try_echo=$ac_try;; 20581esac 20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20583 (eval "$ac_try") 2>&5 20584 ac_status=$? 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); }; } && 20587 { ac_try='test -s conftest.$ac_objext' 20588 { (case "(($ac_try" in 20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20590 *) ac_try_echo=$ac_try;; 20591esac 20592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20593 (eval "$ac_try") 2>&5 20594 ac_status=$? 20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20596 (exit $ac_status); }; }; then 20597 ac_cv_type_size_t=yes 20598else 20599 echo "$as_me: failed program was:" >&5 20600sed 's/^/| /' conftest.$ac_ext >&5 20601 20602 ac_cv_type_size_t=no 20603fi 20604 20605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20606fi 20607{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20608echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 20609if test $ac_cv_type_size_t = yes; then 20610 : 20611else 20612 20613cat >>confdefs.h <<_ACEOF 20614@%:@define size_t unsigned int 20615_ACEOF 20616 20617fi 20618 20619{ echo "$as_me:$LINENO: checking for ssize_t" >&5 20620echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 20621if test "${ac_cv_type_ssize_t+set}" = set; then 20622 echo $ECHO_N "(cached) $ECHO_C" >&6 20623else 20624 cat >conftest.$ac_ext <<_ACEOF 20625/* confdefs.h. */ 20626_ACEOF 20627cat confdefs.h >>conftest.$ac_ext 20628cat >>conftest.$ac_ext <<_ACEOF 20629/* end confdefs.h. */ 20630$ac_includes_default 20631typedef ssize_t ac__type_new_; 20632int 20633main () 20634{ 20635if ((ac__type_new_ *) 0) 20636 return 0; 20637if (sizeof (ac__type_new_)) 20638 return 0; 20639 ; 20640 return 0; 20641} 20642_ACEOF 20643rm -f conftest.$ac_objext 20644if { (ac_try="$ac_compile" 20645case "(($ac_try" in 20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20647 *) ac_try_echo=$ac_try;; 20648esac 20649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20650 (eval "$ac_compile") 2>conftest.er1 20651 ac_status=$? 20652 grep -v '^ *+' conftest.er1 >conftest.err 20653 rm -f conftest.er1 20654 cat conftest.err >&5 20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20656 (exit $ac_status); } && 20657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20658 { (case "(($ac_try" in 20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20660 *) ac_try_echo=$ac_try;; 20661esac 20662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20663 (eval "$ac_try") 2>&5 20664 ac_status=$? 20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20666 (exit $ac_status); }; } && 20667 { ac_try='test -s conftest.$ac_objext' 20668 { (case "(($ac_try" in 20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20670 *) ac_try_echo=$ac_try;; 20671esac 20672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20673 (eval "$ac_try") 2>&5 20674 ac_status=$? 20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20676 (exit $ac_status); }; }; then 20677 ac_cv_type_ssize_t=yes 20678else 20679 echo "$as_me: failed program was:" >&5 20680sed 's/^/| /' conftest.$ac_ext >&5 20681 20682 ac_cv_type_ssize_t=no 20683fi 20684 20685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20686fi 20687{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 20688echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 20689if test $ac_cv_type_ssize_t = yes; then 20690 : 20691else 20692 20693cat >>confdefs.h <<_ACEOF 20694@%:@define ssize_t int 20695_ACEOF 20696 20697fi 20698 20699 20700 20701for ac_header in stdlib.h 20702do 20703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20705 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20708 echo $ECHO_N "(cached) $ECHO_C" >&6 20709fi 20710ac_res=`eval echo '${'$as_ac_Header'}'` 20711 { echo "$as_me:$LINENO: result: $ac_res" >&5 20712echo "${ECHO_T}$ac_res" >&6; } 20713else 20714 # Is the header compilable? 20715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20717cat >conftest.$ac_ext <<_ACEOF 20718/* confdefs.h. */ 20719_ACEOF 20720cat confdefs.h >>conftest.$ac_ext 20721cat >>conftest.$ac_ext <<_ACEOF 20722/* end confdefs.h. */ 20723$ac_includes_default 20724@%:@include <$ac_header> 20725_ACEOF 20726rm -f conftest.$ac_objext 20727if { (ac_try="$ac_compile" 20728case "(($ac_try" in 20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20730 *) ac_try_echo=$ac_try;; 20731esac 20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20733 (eval "$ac_compile") 2>conftest.er1 20734 ac_status=$? 20735 grep -v '^ *+' conftest.er1 >conftest.err 20736 rm -f conftest.er1 20737 cat conftest.err >&5 20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20739 (exit $ac_status); } && 20740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20741 { (case "(($ac_try" in 20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20743 *) ac_try_echo=$ac_try;; 20744esac 20745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20746 (eval "$ac_try") 2>&5 20747 ac_status=$? 20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20749 (exit $ac_status); }; } && 20750 { ac_try='test -s conftest.$ac_objext' 20751 { (case "(($ac_try" in 20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20753 *) ac_try_echo=$ac_try;; 20754esac 20755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20756 (eval "$ac_try") 2>&5 20757 ac_status=$? 20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20759 (exit $ac_status); }; }; then 20760 ac_header_compiler=yes 20761else 20762 echo "$as_me: failed program was:" >&5 20763sed 's/^/| /' conftest.$ac_ext >&5 20764 20765 ac_header_compiler=no 20766fi 20767 20768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20769{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20770echo "${ECHO_T}$ac_header_compiler" >&6; } 20771 20772# Is the header present? 20773{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20775cat >conftest.$ac_ext <<_ACEOF 20776/* confdefs.h. */ 20777_ACEOF 20778cat confdefs.h >>conftest.$ac_ext 20779cat >>conftest.$ac_ext <<_ACEOF 20780/* end confdefs.h. */ 20781@%:@include <$ac_header> 20782_ACEOF 20783if { (ac_try="$ac_cpp conftest.$ac_ext" 20784case "(($ac_try" in 20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20786 *) ac_try_echo=$ac_try;; 20787esac 20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20790 ac_status=$? 20791 grep -v '^ *+' conftest.er1 >conftest.err 20792 rm -f conftest.er1 20793 cat conftest.err >&5 20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20795 (exit $ac_status); } >/dev/null; then 20796 if test -s conftest.err; then 20797 ac_cpp_err=$ac_c_preproc_warn_flag 20798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20799 else 20800 ac_cpp_err= 20801 fi 20802else 20803 ac_cpp_err=yes 20804fi 20805if test -z "$ac_cpp_err"; then 20806 ac_header_preproc=yes 20807else 20808 echo "$as_me: failed program was:" >&5 20809sed 's/^/| /' conftest.$ac_ext >&5 20810 20811 ac_header_preproc=no 20812fi 20813 20814rm -f conftest.err conftest.$ac_ext 20815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20816echo "${ECHO_T}$ac_header_preproc" >&6; } 20817 20818# So? What about this header? 20819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20820 yes:no: ) 20821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20825 ac_header_preproc=yes 20826 ;; 20827 no:yes:* ) 20828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20840 20841 ;; 20842esac 20843{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20846 echo $ECHO_N "(cached) $ECHO_C" >&6 20847else 20848 eval "$as_ac_Header=\$ac_header_preproc" 20849fi 20850ac_res=`eval echo '${'$as_ac_Header'}'` 20851 { echo "$as_me:$LINENO: result: $ac_res" >&5 20852echo "${ECHO_T}$ac_res" >&6; } 20853 20854fi 20855if test `eval echo '${'$as_ac_Header'}'` = yes; then 20856 cat >>confdefs.h <<_ACEOF 20857@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20858_ACEOF 20859 20860fi 20861 20862done 20863 20864{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 20865echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 20866if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 20867 echo $ECHO_N "(cached) $ECHO_C" >&6 20868else 20869 if test "$cross_compiling" = yes; then 20870 ac_cv_func_malloc_0_nonnull=no 20871else 20872 cat >conftest.$ac_ext <<_ACEOF 20873/* confdefs.h. */ 20874_ACEOF 20875cat confdefs.h >>conftest.$ac_ext 20876cat >>conftest.$ac_ext <<_ACEOF 20877/* end confdefs.h. */ 20878#if STDC_HEADERS || HAVE_STDLIB_H 20879# include <stdlib.h> 20880#else 20881char *malloc (); 20882#endif 20883 20884int 20885main () 20886{ 20887return ! malloc (0); 20888 ; 20889 return 0; 20890} 20891_ACEOF 20892rm -f conftest$ac_exeext 20893if { (ac_try="$ac_link" 20894case "(($ac_try" in 20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20896 *) ac_try_echo=$ac_try;; 20897esac 20898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20899 (eval "$ac_link") 2>&5 20900 ac_status=$? 20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20903 { (case "(($ac_try" in 20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20905 *) ac_try_echo=$ac_try;; 20906esac 20907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20908 (eval "$ac_try") 2>&5 20909 ac_status=$? 20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20911 (exit $ac_status); }; }; then 20912 ac_cv_func_malloc_0_nonnull=yes 20913else 20914 echo "$as_me: program exited with status $ac_status" >&5 20915echo "$as_me: failed program was:" >&5 20916sed 's/^/| /' conftest.$ac_ext >&5 20917 20918( exit $ac_status ) 20919ac_cv_func_malloc_0_nonnull=no 20920fi 20921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20922fi 20923 20924 20925fi 20926{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 20927echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 20928if test $ac_cv_func_malloc_0_nonnull = yes; then 20929 20930cat >>confdefs.h <<\_ACEOF 20931@%:@define HAVE_MALLOC 1 20932_ACEOF 20933 20934else 20935 cat >>confdefs.h <<\_ACEOF 20936@%:@define HAVE_MALLOC 0 20937_ACEOF 20938 20939 case " $LIB@&t@OBJS " in 20940 *" malloc.$ac_objext "* ) ;; 20941 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" 20942 ;; 20943esac 20944 20945 20946cat >>confdefs.h <<\_ACEOF 20947@%:@define malloc rpl_malloc 20948_ACEOF 20949 20950fi 20951 20952 20953 20954 20955for ac_func in vprintf 20956do 20957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20958{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20961 echo $ECHO_N "(cached) $ECHO_C" >&6 20962else 20963 cat >conftest.$ac_ext <<_ACEOF 20964/* confdefs.h. */ 20965_ACEOF 20966cat confdefs.h >>conftest.$ac_ext 20967cat >>conftest.$ac_ext <<_ACEOF 20968/* end confdefs.h. */ 20969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20970 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20971#define $ac_func innocuous_$ac_func 20972 20973/* System header to define __stub macros and hopefully few prototypes, 20974 which can conflict with char $ac_func (); below. 20975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20976 <limits.h> exists even on freestanding compilers. */ 20977 20978#ifdef __STDC__ 20979# include <limits.h> 20980#else 20981# include <assert.h> 20982#endif 20983 20984#undef $ac_func 20985 20986/* Override any GCC internal prototype to avoid an error. 20987 Use char because int might match the return type of a GCC 20988 builtin and then its argument prototype would still apply. */ 20989#ifdef __cplusplus 20990extern "C" 20991#endif 20992char $ac_func (); 20993/* The GNU C library defines this for functions which it implements 20994 to always fail with ENOSYS. Some functions are actually named 20995 something starting with __ and the normal name is an alias. */ 20996#if defined __stub_$ac_func || defined __stub___$ac_func 20997choke me 20998#endif 20999 21000int 21001main () 21002{ 21003return $ac_func (); 21004 ; 21005 return 0; 21006} 21007_ACEOF 21008rm -f conftest.$ac_objext conftest$ac_exeext 21009if { (ac_try="$ac_link" 21010case "(($ac_try" in 21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21012 *) ac_try_echo=$ac_try;; 21013esac 21014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21015 (eval "$ac_link") 2>conftest.er1 21016 ac_status=$? 21017 grep -v '^ *+' conftest.er1 >conftest.err 21018 rm -f conftest.er1 21019 cat conftest.err >&5 21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21021 (exit $ac_status); } && 21022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21023 { (case "(($ac_try" in 21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21025 *) ac_try_echo=$ac_try;; 21026esac 21027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21028 (eval "$ac_try") 2>&5 21029 ac_status=$? 21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21031 (exit $ac_status); }; } && 21032 { ac_try='test -s conftest$ac_exeext' 21033 { (case "(($ac_try" in 21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21035 *) ac_try_echo=$ac_try;; 21036esac 21037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21038 (eval "$ac_try") 2>&5 21039 ac_status=$? 21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21041 (exit $ac_status); }; }; then 21042 eval "$as_ac_var=yes" 21043else 21044 echo "$as_me: failed program was:" >&5 21045sed 's/^/| /' conftest.$ac_ext >&5 21046 21047 eval "$as_ac_var=no" 21048fi 21049 21050rm -f conftest.err conftest.$ac_objext \ 21051 conftest$ac_exeext conftest.$ac_ext 21052fi 21053ac_res=`eval echo '${'$as_ac_var'}'` 21054 { echo "$as_me:$LINENO: result: $ac_res" >&5 21055echo "${ECHO_T}$ac_res" >&6; } 21056if test `eval echo '${'$as_ac_var'}'` = yes; then 21057 cat >>confdefs.h <<_ACEOF 21058@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21059_ACEOF 21060 21061{ echo "$as_me:$LINENO: checking for _doprnt" >&5 21062echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 21063if test "${ac_cv_func__doprnt+set}" = set; then 21064 echo $ECHO_N "(cached) $ECHO_C" >&6 21065else 21066 cat >conftest.$ac_ext <<_ACEOF 21067/* confdefs.h. */ 21068_ACEOF 21069cat confdefs.h >>conftest.$ac_ext 21070cat >>conftest.$ac_ext <<_ACEOF 21071/* end confdefs.h. */ 21072/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21073 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21074#define _doprnt innocuous__doprnt 21075 21076/* System header to define __stub macros and hopefully few prototypes, 21077 which can conflict with char _doprnt (); below. 21078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21079 <limits.h> exists even on freestanding compilers. */ 21080 21081#ifdef __STDC__ 21082# include <limits.h> 21083#else 21084# include <assert.h> 21085#endif 21086 21087#undef _doprnt 21088 21089/* Override any GCC internal prototype to avoid an error. 21090 Use char because int might match the return type of a GCC 21091 builtin and then its argument prototype would still apply. */ 21092#ifdef __cplusplus 21093extern "C" 21094#endif 21095char _doprnt (); 21096/* The GNU C library defines this for functions which it implements 21097 to always fail with ENOSYS. Some functions are actually named 21098 something starting with __ and the normal name is an alias. */ 21099#if defined __stub__doprnt || defined __stub____doprnt 21100choke me 21101#endif 21102 21103int 21104main () 21105{ 21106return _doprnt (); 21107 ; 21108 return 0; 21109} 21110_ACEOF 21111rm -f conftest.$ac_objext conftest$ac_exeext 21112if { (ac_try="$ac_link" 21113case "(($ac_try" in 21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21115 *) ac_try_echo=$ac_try;; 21116esac 21117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21118 (eval "$ac_link") 2>conftest.er1 21119 ac_status=$? 21120 grep -v '^ *+' conftest.er1 >conftest.err 21121 rm -f conftest.er1 21122 cat conftest.err >&5 21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21124 (exit $ac_status); } && 21125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21126 { (case "(($ac_try" in 21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21128 *) ac_try_echo=$ac_try;; 21129esac 21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21131 (eval "$ac_try") 2>&5 21132 ac_status=$? 21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21134 (exit $ac_status); }; } && 21135 { ac_try='test -s conftest$ac_exeext' 21136 { (case "(($ac_try" in 21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21138 *) ac_try_echo=$ac_try;; 21139esac 21140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21141 (eval "$ac_try") 2>&5 21142 ac_status=$? 21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21144 (exit $ac_status); }; }; then 21145 ac_cv_func__doprnt=yes 21146else 21147 echo "$as_me: failed program was:" >&5 21148sed 's/^/| /' conftest.$ac_ext >&5 21149 21150 ac_cv_func__doprnt=no 21151fi 21152 21153rm -f conftest.err conftest.$ac_objext \ 21154 conftest$ac_exeext conftest.$ac_ext 21155fi 21156{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21157echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 21158if test $ac_cv_func__doprnt = yes; then 21159 21160cat >>confdefs.h <<\_ACEOF 21161@%:@define HAVE_DOPRNT 1 21162_ACEOF 21163 21164fi 21165 21166fi 21167done 21168 21169 21170 21171for ac_func in strftime 21172do 21173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21174{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21177 echo $ECHO_N "(cached) $ECHO_C" >&6 21178else 21179 cat >conftest.$ac_ext <<_ACEOF 21180/* confdefs.h. */ 21181_ACEOF 21182cat confdefs.h >>conftest.$ac_ext 21183cat >>conftest.$ac_ext <<_ACEOF 21184/* end confdefs.h. */ 21185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21186 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21187#define $ac_func innocuous_$ac_func 21188 21189/* System header to define __stub macros and hopefully few prototypes, 21190 which can conflict with char $ac_func (); below. 21191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21192 <limits.h> exists even on freestanding compilers. */ 21193 21194#ifdef __STDC__ 21195# include <limits.h> 21196#else 21197# include <assert.h> 21198#endif 21199 21200#undef $ac_func 21201 21202/* Override any GCC internal prototype to avoid an error. 21203 Use char because int might match the return type of a GCC 21204 builtin and then its argument prototype would still apply. */ 21205#ifdef __cplusplus 21206extern "C" 21207#endif 21208char $ac_func (); 21209/* The GNU C library defines this for functions which it implements 21210 to always fail with ENOSYS. Some functions are actually named 21211 something starting with __ and the normal name is an alias. */ 21212#if defined __stub_$ac_func || defined __stub___$ac_func 21213choke me 21214#endif 21215 21216int 21217main () 21218{ 21219return $ac_func (); 21220 ; 21221 return 0; 21222} 21223_ACEOF 21224rm -f conftest.$ac_objext conftest$ac_exeext 21225if { (ac_try="$ac_link" 21226case "(($ac_try" in 21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21228 *) ac_try_echo=$ac_try;; 21229esac 21230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21231 (eval "$ac_link") 2>conftest.er1 21232 ac_status=$? 21233 grep -v '^ *+' conftest.er1 >conftest.err 21234 rm -f conftest.er1 21235 cat conftest.err >&5 21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21237 (exit $ac_status); } && 21238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21239 { (case "(($ac_try" in 21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21241 *) ac_try_echo=$ac_try;; 21242esac 21243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21244 (eval "$ac_try") 2>&5 21245 ac_status=$? 21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21247 (exit $ac_status); }; } && 21248 { ac_try='test -s conftest$ac_exeext' 21249 { (case "(($ac_try" in 21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21251 *) ac_try_echo=$ac_try;; 21252esac 21253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21254 (eval "$ac_try") 2>&5 21255 ac_status=$? 21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21257 (exit $ac_status); }; }; then 21258 eval "$as_ac_var=yes" 21259else 21260 echo "$as_me: failed program was:" >&5 21261sed 's/^/| /' conftest.$ac_ext >&5 21262 21263 eval "$as_ac_var=no" 21264fi 21265 21266rm -f conftest.err conftest.$ac_objext \ 21267 conftest$ac_exeext conftest.$ac_ext 21268fi 21269ac_res=`eval echo '${'$as_ac_var'}'` 21270 { echo "$as_me:$LINENO: result: $ac_res" >&5 21271echo "${ECHO_T}$ac_res" >&6; } 21272if test `eval echo '${'$as_ac_var'}'` = yes; then 21273 cat >>confdefs.h <<_ACEOF 21274@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21275_ACEOF 21276 21277else 21278 # strftime is in -lintl on SCO UNIX. 21279{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 21280echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 21281if test "${ac_cv_lib_intl_strftime+set}" = set; then 21282 echo $ECHO_N "(cached) $ECHO_C" >&6 21283else 21284 ac_check_lib_save_LIBS=$LIBS 21285LIBS="-lintl $LIBS" 21286cat >conftest.$ac_ext <<_ACEOF 21287/* confdefs.h. */ 21288_ACEOF 21289cat confdefs.h >>conftest.$ac_ext 21290cat >>conftest.$ac_ext <<_ACEOF 21291/* end confdefs.h. */ 21292 21293/* Override any GCC internal prototype to avoid an error. 21294 Use char because int might match the return type of a GCC 21295 builtin and then its argument prototype would still apply. */ 21296#ifdef __cplusplus 21297extern "C" 21298#endif 21299char strftime (); 21300int 21301main () 21302{ 21303return strftime (); 21304 ; 21305 return 0; 21306} 21307_ACEOF 21308rm -f conftest.$ac_objext conftest$ac_exeext 21309if { (ac_try="$ac_link" 21310case "(($ac_try" in 21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21312 *) ac_try_echo=$ac_try;; 21313esac 21314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21315 (eval "$ac_link") 2>conftest.er1 21316 ac_status=$? 21317 grep -v '^ *+' conftest.er1 >conftest.err 21318 rm -f conftest.er1 21319 cat conftest.err >&5 21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21321 (exit $ac_status); } && 21322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21323 { (case "(($ac_try" in 21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21325 *) ac_try_echo=$ac_try;; 21326esac 21327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21328 (eval "$ac_try") 2>&5 21329 ac_status=$? 21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21331 (exit $ac_status); }; } && 21332 { ac_try='test -s conftest$ac_exeext' 21333 { (case "(($ac_try" in 21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21335 *) ac_try_echo=$ac_try;; 21336esac 21337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21338 (eval "$ac_try") 2>&5 21339 ac_status=$? 21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21341 (exit $ac_status); }; }; then 21342 ac_cv_lib_intl_strftime=yes 21343else 21344 echo "$as_me: failed program was:" >&5 21345sed 's/^/| /' conftest.$ac_ext >&5 21346 21347 ac_cv_lib_intl_strftime=no 21348fi 21349 21350rm -f conftest.err conftest.$ac_objext \ 21351 conftest$ac_exeext conftest.$ac_ext 21352LIBS=$ac_check_lib_save_LIBS 21353fi 21354{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 21355echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 21356if test $ac_cv_lib_intl_strftime = yes; then 21357 cat >>confdefs.h <<\_ACEOF 21358@%:@define HAVE_STRFTIME 1 21359_ACEOF 21360 21361LIBS="-lintl $LIBS" 21362fi 21363 21364fi 21365done 21366 21367 21368 21369for ac_header in sys/select.h sys/socket.h 21370do 21371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21373 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21376 echo $ECHO_N "(cached) $ECHO_C" >&6 21377fi 21378ac_res=`eval echo '${'$as_ac_Header'}'` 21379 { echo "$as_me:$LINENO: result: $ac_res" >&5 21380echo "${ECHO_T}$ac_res" >&6; } 21381else 21382 # Is the header compilable? 21383{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21385cat >conftest.$ac_ext <<_ACEOF 21386/* confdefs.h. */ 21387_ACEOF 21388cat confdefs.h >>conftest.$ac_ext 21389cat >>conftest.$ac_ext <<_ACEOF 21390/* end confdefs.h. */ 21391$ac_includes_default 21392@%:@include <$ac_header> 21393_ACEOF 21394rm -f conftest.$ac_objext 21395if { (ac_try="$ac_compile" 21396case "(($ac_try" in 21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21398 *) ac_try_echo=$ac_try;; 21399esac 21400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21401 (eval "$ac_compile") 2>conftest.er1 21402 ac_status=$? 21403 grep -v '^ *+' conftest.er1 >conftest.err 21404 rm -f conftest.er1 21405 cat conftest.err >&5 21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21407 (exit $ac_status); } && 21408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21409 { (case "(($ac_try" in 21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21411 *) ac_try_echo=$ac_try;; 21412esac 21413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21414 (eval "$ac_try") 2>&5 21415 ac_status=$? 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); }; } && 21418 { ac_try='test -s conftest.$ac_objext' 21419 { (case "(($ac_try" in 21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21421 *) ac_try_echo=$ac_try;; 21422esac 21423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21424 (eval "$ac_try") 2>&5 21425 ac_status=$? 21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21427 (exit $ac_status); }; }; then 21428 ac_header_compiler=yes 21429else 21430 echo "$as_me: failed program was:" >&5 21431sed 's/^/| /' conftest.$ac_ext >&5 21432 21433 ac_header_compiler=no 21434fi 21435 21436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21438echo "${ECHO_T}$ac_header_compiler" >&6; } 21439 21440# Is the header present? 21441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21443cat >conftest.$ac_ext <<_ACEOF 21444/* confdefs.h. */ 21445_ACEOF 21446cat confdefs.h >>conftest.$ac_ext 21447cat >>conftest.$ac_ext <<_ACEOF 21448/* end confdefs.h. */ 21449@%:@include <$ac_header> 21450_ACEOF 21451if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null; then 21464 if test -s conftest.err; then 21465 ac_cpp_err=$ac_c_preproc_warn_flag 21466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21467 else 21468 ac_cpp_err= 21469 fi 21470else 21471 ac_cpp_err=yes 21472fi 21473if test -z "$ac_cpp_err"; then 21474 ac_header_preproc=yes 21475else 21476 echo "$as_me: failed program was:" >&5 21477sed 's/^/| /' conftest.$ac_ext >&5 21478 21479 ac_header_preproc=no 21480fi 21481 21482rm -f conftest.err conftest.$ac_ext 21483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21484echo "${ECHO_T}$ac_header_preproc" >&6; } 21485 21486# So? What about this header? 21487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21488 yes:no: ) 21489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21493 ac_header_preproc=yes 21494 ;; 21495 no:yes:* ) 21496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21508 21509 ;; 21510esac 21511{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21514 echo $ECHO_N "(cached) $ECHO_C" >&6 21515else 21516 eval "$as_ac_Header=\$ac_header_preproc" 21517fi 21518ac_res=`eval echo '${'$as_ac_Header'}'` 21519 { echo "$as_me:$LINENO: result: $ac_res" >&5 21520echo "${ECHO_T}$ac_res" >&6; } 21521 21522fi 21523if test `eval echo '${'$as_ac_Header'}'` = yes; then 21524 cat >>confdefs.h <<_ACEOF 21525@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21526_ACEOF 21527 21528fi 21529 21530done 21531 21532{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 21533echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 21534if test "${ac_cv_func_select_args+set}" = set; then 21535 echo $ECHO_N "(cached) $ECHO_C" >&6 21536else 21537 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 21538 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 21539 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 21540 cat >conftest.$ac_ext <<_ACEOF 21541/* confdefs.h. */ 21542_ACEOF 21543cat confdefs.h >>conftest.$ac_ext 21544cat >>conftest.$ac_ext <<_ACEOF 21545/* end confdefs.h. */ 21546$ac_includes_default 21547#if HAVE_SYS_SELECT_H 21548# include <sys/select.h> 21549#endif 21550#if HAVE_SYS_SOCKET_H 21551# include <sys/socket.h> 21552#endif 21553 21554int 21555main () 21556{ 21557extern int select ($ac_arg1, 21558 $ac_arg234, $ac_arg234, $ac_arg234, 21559 $ac_arg5); 21560 ; 21561 return 0; 21562} 21563_ACEOF 21564rm -f conftest.$ac_objext 21565if { (ac_try="$ac_compile" 21566case "(($ac_try" in 21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21568 *) ac_try_echo=$ac_try;; 21569esac 21570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21571 (eval "$ac_compile") 2>conftest.er1 21572 ac_status=$? 21573 grep -v '^ *+' conftest.er1 >conftest.err 21574 rm -f conftest.er1 21575 cat conftest.err >&5 21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21577 (exit $ac_status); } && 21578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21579 { (case "(($ac_try" in 21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21581 *) ac_try_echo=$ac_try;; 21582esac 21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21584 (eval "$ac_try") 2>&5 21585 ac_status=$? 21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21587 (exit $ac_status); }; } && 21588 { ac_try='test -s conftest.$ac_objext' 21589 { (case "(($ac_try" in 21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21591 *) ac_try_echo=$ac_try;; 21592esac 21593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21594 (eval "$ac_try") 2>&5 21595 ac_status=$? 21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21597 (exit $ac_status); }; }; then 21598 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 21599else 21600 echo "$as_me: failed program was:" >&5 21601sed 's/^/| /' conftest.$ac_ext >&5 21602 21603 21604fi 21605 21606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21607 done 21608 done 21609done 21610# Provide a safe default value. 21611: ${ac_cv_func_select_args='int,int *,struct timeval *'} 21612 21613fi 21614{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 21615echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 21616ac_save_IFS=$IFS; IFS=',' 21617set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 21618IFS=$ac_save_IFS 21619shift 21620 21621cat >>confdefs.h <<_ACEOF 21622@%:@define SELECT_TYPE_ARG1 $1 21623_ACEOF 21624 21625 21626cat >>confdefs.h <<_ACEOF 21627@%:@define SELECT_TYPE_ARG234 ($2) 21628_ACEOF 21629 21630 21631cat >>confdefs.h <<_ACEOF 21632@%:@define SELECT_TYPE_ARG5 ($3) 21633_ACEOF 21634 21635rm -f conftest* 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651for ac_func in gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strncasecmp strpbrk strspn strstr strtol 21652do 21653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21654{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21657 echo $ECHO_N "(cached) $ECHO_C" >&6 21658else 21659 cat >conftest.$ac_ext <<_ACEOF 21660/* confdefs.h. */ 21661_ACEOF 21662cat confdefs.h >>conftest.$ac_ext 21663cat >>conftest.$ac_ext <<_ACEOF 21664/* end confdefs.h. */ 21665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21666 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21667#define $ac_func innocuous_$ac_func 21668 21669/* System header to define __stub macros and hopefully few prototypes, 21670 which can conflict with char $ac_func (); below. 21671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21672 <limits.h> exists even on freestanding compilers. */ 21673 21674#ifdef __STDC__ 21675# include <limits.h> 21676#else 21677# include <assert.h> 21678#endif 21679 21680#undef $ac_func 21681 21682/* Override any GCC internal prototype to avoid an error. 21683 Use char because int might match the return type of a GCC 21684 builtin and then its argument prototype would still apply. */ 21685#ifdef __cplusplus 21686extern "C" 21687#endif 21688char $ac_func (); 21689/* The GNU C library defines this for functions which it implements 21690 to always fail with ENOSYS. Some functions are actually named 21691 something starting with __ and the normal name is an alias. */ 21692#if defined __stub_$ac_func || defined __stub___$ac_func 21693choke me 21694#endif 21695 21696int 21697main () 21698{ 21699return $ac_func (); 21700 ; 21701 return 0; 21702} 21703_ACEOF 21704rm -f conftest.$ac_objext conftest$ac_exeext 21705if { (ac_try="$ac_link" 21706case "(($ac_try" in 21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21708 *) ac_try_echo=$ac_try;; 21709esac 21710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21711 (eval "$ac_link") 2>conftest.er1 21712 ac_status=$? 21713 grep -v '^ *+' conftest.er1 >conftest.err 21714 rm -f conftest.er1 21715 cat conftest.err >&5 21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21717 (exit $ac_status); } && 21718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21719 { (case "(($ac_try" in 21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21721 *) ac_try_echo=$ac_try;; 21722esac 21723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21724 (eval "$ac_try") 2>&5 21725 ac_status=$? 21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21727 (exit $ac_status); }; } && 21728 { ac_try='test -s conftest$ac_exeext' 21729 { (case "(($ac_try" in 21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21731 *) ac_try_echo=$ac_try;; 21732esac 21733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21734 (eval "$ac_try") 2>&5 21735 ac_status=$? 21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21737 (exit $ac_status); }; }; then 21738 eval "$as_ac_var=yes" 21739else 21740 echo "$as_me: failed program was:" >&5 21741sed 's/^/| /' conftest.$ac_ext >&5 21742 21743 eval "$as_ac_var=no" 21744fi 21745 21746rm -f conftest.err conftest.$ac_objext \ 21747 conftest$ac_exeext conftest.$ac_ext 21748fi 21749ac_res=`eval echo '${'$as_ac_var'}'` 21750 { echo "$as_me:$LINENO: result: $ac_res" >&5 21751echo "${ECHO_T}$ac_res" >&6; } 21752if test `eval echo '${'$as_ac_var'}'` = yes; then 21753 cat >>confdefs.h <<_ACEOF 21754@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21755_ACEOF 21756 21757fi 21758done 21759 21760 21761 21762 21763 21764 21765 21766ac_ext=c 21767ac_cpp='$CPP $CPPFLAGS' 21768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21770ac_compiler_gnu=$ac_cv_c_compiler_gnu 21771 21772acx_pthread_ok=no 21773 21774# We used to check for pthread.h first, but this fails if pthread.h 21775# requires special compiler flags (e.g. on True64 or Sequent). 21776# It gets checked for in the link test anyway. 21777 21778# First of all, check if the user has set any of the PTHREAD_LIBS, 21779# etcetera environment variables, and if threads linking works using 21780# them: 21781if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 21782 save_CFLAGS="$CFLAGS" 21783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21784 save_LIBS="$LIBS" 21785 LIBS="$PTHREAD_LIBS $LIBS" 21786 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 21787echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 21788 cat >conftest.$ac_ext <<_ACEOF 21789/* confdefs.h. */ 21790_ACEOF 21791cat confdefs.h >>conftest.$ac_ext 21792cat >>conftest.$ac_ext <<_ACEOF 21793/* end confdefs.h. */ 21794 21795/* Override any GCC internal prototype to avoid an error. 21796 Use char because int might match the return type of a GCC 21797 builtin and then its argument prototype would still apply. */ 21798#ifdef __cplusplus 21799extern "C" 21800#endif 21801char pthread_join (); 21802int 21803main () 21804{ 21805return pthread_join (); 21806 ; 21807 return 0; 21808} 21809_ACEOF 21810rm -f conftest.$ac_objext conftest$ac_exeext 21811if { (ac_try="$ac_link" 21812case "(($ac_try" in 21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21814 *) ac_try_echo=$ac_try;; 21815esac 21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21817 (eval "$ac_link") 2>conftest.er1 21818 ac_status=$? 21819 grep -v '^ *+' conftest.er1 >conftest.err 21820 rm -f conftest.er1 21821 cat conftest.err >&5 21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21823 (exit $ac_status); } && 21824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21825 { (case "(($ac_try" in 21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21827 *) ac_try_echo=$ac_try;; 21828esac 21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21830 (eval "$ac_try") 2>&5 21831 ac_status=$? 21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21833 (exit $ac_status); }; } && 21834 { ac_try='test -s conftest$ac_exeext' 21835 { (case "(($ac_try" in 21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21837 *) ac_try_echo=$ac_try;; 21838esac 21839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21840 (eval "$ac_try") 2>&5 21841 ac_status=$? 21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); }; }; then 21844 acx_pthread_ok=yes 21845else 21846 echo "$as_me: failed program was:" >&5 21847sed 's/^/| /' conftest.$ac_ext >&5 21848 21849 21850fi 21851 21852rm -f conftest.err conftest.$ac_objext \ 21853 conftest$ac_exeext conftest.$ac_ext 21854 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 21855echo "${ECHO_T}$acx_pthread_ok" >&6; } 21856 if test x"$acx_pthread_ok" = xno; then 21857 PTHREAD_LIBS="" 21858 PTHREAD_CFLAGS="" 21859 fi 21860 LIBS="$save_LIBS" 21861 CFLAGS="$save_CFLAGS" 21862fi 21863 21864# We must check for the threads library under a number of different 21865# names; the ordering is very important because some systems 21866# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 21867# libraries is broken (non-POSIX). 21868 21869# Create a list of thread flags to try. Items starting with a "-" are 21870# C compiler flags, and other items are library names, except for "none" 21871# which indicates that we try without any flags at all, and "pthread-config" 21872# which is a program returning the flags for the Pth emulation library. 21873 21874acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 21875 21876# The ordering *is* (sometimes) important. Some notes on the 21877# individual items follow: 21878 21879# pthreads: AIX (must check this before -lpthread) 21880# none: in case threads are in libc; should be tried before -Kthread and 21881# other compiler flags to prevent continual compiler warnings 21882# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 21883# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 21884# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 21885# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 21886# -pthreads: Solaris/gcc 21887# -mthreads: Mingw32/gcc, Lynx/gcc 21888# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 21889# doesn't hurt to check since this sometimes defines pthreads too; 21890# also defines -D_REENTRANT) 21891# ... -mt is also the pthreads flag for HP/aCC 21892# pthread: Linux, etcetera 21893# --thread-safe: KAI C++ 21894# pthread-config: use pthread-config program (for GNU Pth library) 21895 21896case "${host_cpu}-${host_os}" in 21897 *solaris*) 21898 21899 # On Solaris (at least, for some versions), libc contains stubbed 21900 # (non-functional) versions of the pthreads routines, so link-based 21901 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 21902 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 21903 # a function called by this macro, so we could check for that, but 21904 # who knows whether they'll stub that too in a future libc.) So, 21905 # we'll just look for -pthreads and -lpthread first: 21906 21907 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 21908 ;; 21909esac 21910 21911if test x"$acx_pthread_ok" = xno; then 21912for flag in $acx_pthread_flags; do 21913 21914 case $flag in 21915 none) 21916 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 21917echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 21918 ;; 21919 21920 -*) 21921 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 21922echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 21923 PTHREAD_CFLAGS="$flag" 21924 ;; 21925 21926 pthread-config) 21927 # Extract the first word of "pthread-config", so it can be a program name with args. 21928set dummy pthread-config; ac_word=$2 21929{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21931if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 21932 echo $ECHO_N "(cached) $ECHO_C" >&6 21933else 21934 if test -n "$acx_pthread_config"; then 21935 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 21936else 21937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21938for as_dir in $PATH 21939do 21940 IFS=$as_save_IFS 21941 test -z "$as_dir" && as_dir=. 21942 for ac_exec_ext in '' $ac_executable_extensions; do 21943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21944 ac_cv_prog_acx_pthread_config="yes" 21945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21946 break 2 21947 fi 21948done 21949done 21950IFS=$as_save_IFS 21951 21952 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 21953fi 21954fi 21955acx_pthread_config=$ac_cv_prog_acx_pthread_config 21956if test -n "$acx_pthread_config"; then 21957 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 21958echo "${ECHO_T}$acx_pthread_config" >&6; } 21959else 21960 { echo "$as_me:$LINENO: result: no" >&5 21961echo "${ECHO_T}no" >&6; } 21962fi 21963 21964 21965 if test x"$acx_pthread_config" = xno; then continue; fi 21966 PTHREAD_CFLAGS="`pthread-config --cflags`" 21967 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 21968 ;; 21969 21970 *) 21971 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 21972echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 21973 PTHREAD_LIBS="-l$flag" 21974 ;; 21975 esac 21976 21977 save_LIBS="$LIBS" 21978 save_CFLAGS="$CFLAGS" 21979 LIBS="$PTHREAD_LIBS $LIBS" 21980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21981 21982 # Check for various functions. We must include pthread.h, 21983 # since some functions may be macros. (On the Sequent, we 21984 # need a special flag -Kthread to make this header compile.) 21985 # We check for pthread_join because it is in -lpthread on IRIX 21986 # while pthread_create is in libc. We check for pthread_attr_init 21987 # due to DEC craziness with -lpthreads. We check for 21988 # pthread_cleanup_push because it is one of the few pthread 21989 # functions on Solaris that doesn't have a non-functional libc stub. 21990 # We try pthread_create on general principles. 21991 cat >conftest.$ac_ext <<_ACEOF 21992/* confdefs.h. */ 21993_ACEOF 21994cat confdefs.h >>conftest.$ac_ext 21995cat >>conftest.$ac_ext <<_ACEOF 21996/* end confdefs.h. */ 21997#include <pthread.h> 21998int 21999main () 22000{ 22001pthread_t th; pthread_join(th, 0); 22002 pthread_attr_init(0); pthread_cleanup_push(0, 0); 22003 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 22004 ; 22005 return 0; 22006} 22007_ACEOF 22008rm -f conftest.$ac_objext conftest$ac_exeext 22009if { (ac_try="$ac_link" 22010case "(($ac_try" in 22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22012 *) ac_try_echo=$ac_try;; 22013esac 22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22015 (eval "$ac_link") 2>conftest.er1 22016 ac_status=$? 22017 grep -v '^ *+' conftest.er1 >conftest.err 22018 rm -f conftest.er1 22019 cat conftest.err >&5 22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22021 (exit $ac_status); } && 22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22023 { (case "(($ac_try" in 22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22025 *) ac_try_echo=$ac_try;; 22026esac 22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22028 (eval "$ac_try") 2>&5 22029 ac_status=$? 22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22031 (exit $ac_status); }; } && 22032 { ac_try='test -s conftest$ac_exeext' 22033 { (case "(($ac_try" in 22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22035 *) ac_try_echo=$ac_try;; 22036esac 22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22038 (eval "$ac_try") 2>&5 22039 ac_status=$? 22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22041 (exit $ac_status); }; }; then 22042 acx_pthread_ok=yes 22043else 22044 echo "$as_me: failed program was:" >&5 22045sed 's/^/| /' conftest.$ac_ext >&5 22046 22047 22048fi 22049 22050rm -f conftest.err conftest.$ac_objext \ 22051 conftest$ac_exeext conftest.$ac_ext 22052 22053 LIBS="$save_LIBS" 22054 CFLAGS="$save_CFLAGS" 22055 22056 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 22057echo "${ECHO_T}$acx_pthread_ok" >&6; } 22058 if test "x$acx_pthread_ok" = xyes; then 22059 break; 22060 fi 22061 22062 PTHREAD_LIBS="" 22063 PTHREAD_CFLAGS="" 22064done 22065fi 22066 22067# Various other checks: 22068if test "x$acx_pthread_ok" = xyes; then 22069 save_LIBS="$LIBS" 22070 LIBS="$PTHREAD_LIBS $LIBS" 22071 save_CFLAGS="$CFLAGS" 22072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 22073 22074 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 22075 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 22076echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 22077 attr_name=unknown 22078 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 22079 cat >conftest.$ac_ext <<_ACEOF 22080/* confdefs.h. */ 22081_ACEOF 22082cat confdefs.h >>conftest.$ac_ext 22083cat >>conftest.$ac_ext <<_ACEOF 22084/* end confdefs.h. */ 22085#include <pthread.h> 22086int 22087main () 22088{ 22089int attr=$attr; return attr; 22090 ; 22091 return 0; 22092} 22093_ACEOF 22094rm -f conftest.$ac_objext conftest$ac_exeext 22095if { (ac_try="$ac_link" 22096case "(($ac_try" in 22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22098 *) ac_try_echo=$ac_try;; 22099esac 22100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22101 (eval "$ac_link") 2>conftest.er1 22102 ac_status=$? 22103 grep -v '^ *+' conftest.er1 >conftest.err 22104 rm -f conftest.er1 22105 cat conftest.err >&5 22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22107 (exit $ac_status); } && 22108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22109 { (case "(($ac_try" in 22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22111 *) ac_try_echo=$ac_try;; 22112esac 22113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22114 (eval "$ac_try") 2>&5 22115 ac_status=$? 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); }; } && 22118 { ac_try='test -s conftest$ac_exeext' 22119 { (case "(($ac_try" in 22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22121 *) ac_try_echo=$ac_try;; 22122esac 22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22124 (eval "$ac_try") 2>&5 22125 ac_status=$? 22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22127 (exit $ac_status); }; }; then 22128 attr_name=$attr; break 22129else 22130 echo "$as_me: failed program was:" >&5 22131sed 's/^/| /' conftest.$ac_ext >&5 22132 22133 22134fi 22135 22136rm -f conftest.err conftest.$ac_objext \ 22137 conftest$ac_exeext conftest.$ac_ext 22138 done 22139 { echo "$as_me:$LINENO: result: $attr_name" >&5 22140echo "${ECHO_T}$attr_name" >&6; } 22141 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 22142 22143cat >>confdefs.h <<_ACEOF 22144@%:@define PTHREAD_CREATE_JOINABLE $attr_name 22145_ACEOF 22146 22147 fi 22148 22149 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 22150echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 22151 flag=no 22152 case "${host_cpu}-${host_os}" in 22153 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 22154 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 22155 esac 22156 { echo "$as_me:$LINENO: result: ${flag}" >&5 22157echo "${ECHO_T}${flag}" >&6; } 22158 if test "x$flag" != xno; then 22159 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 22160 fi 22161 22162 LIBS="$save_LIBS" 22163 CFLAGS="$save_CFLAGS" 22164 22165 # More AIX lossage: must compile with xlc_r or cc_r 22166 if test x"$GCC" != xyes; then 22167 for ac_prog in xlc_r cc_r 22168do 22169 # Extract the first word of "$ac_prog", so it can be a program name with args. 22170set dummy $ac_prog; ac_word=$2 22171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22173if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 22174 echo $ECHO_N "(cached) $ECHO_C" >&6 22175else 22176 if test -n "$PTHREAD_CC"; then 22177 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 22178else 22179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22180for as_dir in $PATH 22181do 22182 IFS=$as_save_IFS 22183 test -z "$as_dir" && as_dir=. 22184 for ac_exec_ext in '' $ac_executable_extensions; do 22185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 22186 ac_cv_prog_PTHREAD_CC="$ac_prog" 22187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22188 break 2 22189 fi 22190done 22191done 22192IFS=$as_save_IFS 22193 22194fi 22195fi 22196PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 22197if test -n "$PTHREAD_CC"; then 22198 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 22199echo "${ECHO_T}$PTHREAD_CC" >&6; } 22200else 22201 { echo "$as_me:$LINENO: result: no" >&5 22202echo "${ECHO_T}no" >&6; } 22203fi 22204 22205 22206 test -n "$PTHREAD_CC" && break 22207done 22208test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 22209 22210 else 22211 PTHREAD_CC=$CC 22212 fi 22213else 22214 PTHREAD_CC="$CC" 22215fi 22216 22217 22218 22219 22220 22221# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 22222if test x"$acx_pthread_ok" = xyes; then 22223 LIBS="$PTHREAD_LIBS $LIBS"; CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 22224 : 22225else 22226 acx_pthread_ok=no 22227 22228fi 22229ac_ext=c 22230ac_cpp='$CPP $CPPFLAGS' 22231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22233ac_compiler_gnu=$ac_cv_c_compiler_gnu 22234 22235 22236 22237 22238 22239for ac_func in localtime_r strtok_r 22240do 22241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22242{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22245 echo $ECHO_N "(cached) $ECHO_C" >&6 22246else 22247 cat >conftest.$ac_ext <<_ACEOF 22248/* confdefs.h. */ 22249_ACEOF 22250cat confdefs.h >>conftest.$ac_ext 22251cat >>conftest.$ac_ext <<_ACEOF 22252/* end confdefs.h. */ 22253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22254 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22255#define $ac_func innocuous_$ac_func 22256 22257/* System header to define __stub macros and hopefully few prototypes, 22258 which can conflict with char $ac_func (); below. 22259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22260 <limits.h> exists even on freestanding compilers. */ 22261 22262#ifdef __STDC__ 22263# include <limits.h> 22264#else 22265# include <assert.h> 22266#endif 22267 22268#undef $ac_func 22269 22270/* Override any GCC internal prototype to avoid an error. 22271 Use char because int might match the return type of a GCC 22272 builtin and then its argument prototype would still apply. */ 22273#ifdef __cplusplus 22274extern "C" 22275#endif 22276char $ac_func (); 22277/* The GNU C library defines this for functions which it implements 22278 to always fail with ENOSYS. Some functions are actually named 22279 something starting with __ and the normal name is an alias. */ 22280#if defined __stub_$ac_func || defined __stub___$ac_func 22281choke me 22282#endif 22283 22284int 22285main () 22286{ 22287return $ac_func (); 22288 ; 22289 return 0; 22290} 22291_ACEOF 22292rm -f conftest.$ac_objext conftest$ac_exeext 22293if { (ac_try="$ac_link" 22294case "(($ac_try" in 22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22296 *) ac_try_echo=$ac_try;; 22297esac 22298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22299 (eval "$ac_link") 2>conftest.er1 22300 ac_status=$? 22301 grep -v '^ *+' conftest.er1 >conftest.err 22302 rm -f conftest.er1 22303 cat conftest.err >&5 22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22305 (exit $ac_status); } && 22306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22307 { (case "(($ac_try" in 22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22309 *) ac_try_echo=$ac_try;; 22310esac 22311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22312 (eval "$ac_try") 2>&5 22313 ac_status=$? 22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22315 (exit $ac_status); }; } && 22316 { ac_try='test -s conftest$ac_exeext' 22317 { (case "(($ac_try" in 22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22319 *) ac_try_echo=$ac_try;; 22320esac 22321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22322 (eval "$ac_try") 2>&5 22323 ac_status=$? 22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22325 (exit $ac_status); }; }; then 22326 eval "$as_ac_var=yes" 22327else 22328 echo "$as_me: failed program was:" >&5 22329sed 's/^/| /' conftest.$ac_ext >&5 22330 22331 eval "$as_ac_var=no" 22332fi 22333 22334rm -f conftest.err conftest.$ac_objext \ 22335 conftest$ac_exeext conftest.$ac_ext 22336fi 22337ac_res=`eval echo '${'$as_ac_var'}'` 22338 { echo "$as_me:$LINENO: result: $ac_res" >&5 22339echo "${ECHO_T}$ac_res" >&6; } 22340if test `eval echo '${'$as_ac_var'}'` = yes; then 22341 cat >>confdefs.h <<_ACEOF 22342@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22343_ACEOF 22344 22345fi 22346done 22347 22348 22349# ------------------------------------------ 22350# Check socket library (for Solaris) 22351# ------------------------------------------ 22352{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 22353echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 22354if test "${ac_cv_lib_socket_socket+set}" = set; then 22355 echo $ECHO_N "(cached) $ECHO_C" >&6 22356else 22357 ac_check_lib_save_LIBS=$LIBS 22358LIBS="-lsocket $LIBS" 22359cat >conftest.$ac_ext <<_ACEOF 22360/* confdefs.h. */ 22361_ACEOF 22362cat confdefs.h >>conftest.$ac_ext 22363cat >>conftest.$ac_ext <<_ACEOF 22364/* end confdefs.h. */ 22365 22366/* Override any GCC internal prototype to avoid an error. 22367 Use char because int might match the return type of a GCC 22368 builtin and then its argument prototype would still apply. */ 22369#ifdef __cplusplus 22370extern "C" 22371#endif 22372char socket (); 22373int 22374main () 22375{ 22376return socket (); 22377 ; 22378 return 0; 22379} 22380_ACEOF 22381rm -f conftest.$ac_objext conftest$ac_exeext 22382if { (ac_try="$ac_link" 22383case "(($ac_try" in 22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22385 *) ac_try_echo=$ac_try;; 22386esac 22387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22388 (eval "$ac_link") 2>conftest.er1 22389 ac_status=$? 22390 grep -v '^ *+' conftest.er1 >conftest.err 22391 rm -f conftest.er1 22392 cat conftest.err >&5 22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22394 (exit $ac_status); } && 22395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22396 { (case "(($ac_try" in 22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22398 *) ac_try_echo=$ac_try;; 22399esac 22400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22401 (eval "$ac_try") 2>&5 22402 ac_status=$? 22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22404 (exit $ac_status); }; } && 22405 { ac_try='test -s conftest$ac_exeext' 22406 { (case "(($ac_try" in 22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22408 *) ac_try_echo=$ac_try;; 22409esac 22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22411 (eval "$ac_try") 2>&5 22412 ac_status=$? 22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22414 (exit $ac_status); }; }; then 22415 ac_cv_lib_socket_socket=yes 22416else 22417 echo "$as_me: failed program was:" >&5 22418sed 's/^/| /' conftest.$ac_ext >&5 22419 22420 ac_cv_lib_socket_socket=no 22421fi 22422 22423rm -f conftest.err conftest.$ac_objext \ 22424 conftest$ac_exeext conftest.$ac_ext 22425LIBS=$ac_check_lib_save_LIBS 22426fi 22427{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 22428echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 22429if test $ac_cv_lib_socket_socket = yes; then 22430 LIBSOCKET="-lsocket" 22431fi 22432 22433 22434 22435{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 22436echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 22437if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 22438 echo $ECHO_N "(cached) $ECHO_C" >&6 22439else 22440 ac_check_lib_save_LIBS=$LIBS 22441LIBS="-lnsl $LIBS" 22442cat >conftest.$ac_ext <<_ACEOF 22443/* confdefs.h. */ 22444_ACEOF 22445cat confdefs.h >>conftest.$ac_ext 22446cat >>conftest.$ac_ext <<_ACEOF 22447/* end confdefs.h. */ 22448 22449/* Override any GCC internal prototype to avoid an error. 22450 Use char because int might match the return type of a GCC 22451 builtin and then its argument prototype would still apply. */ 22452#ifdef __cplusplus 22453extern "C" 22454#endif 22455char inet_ntoa (); 22456int 22457main () 22458{ 22459return inet_ntoa (); 22460 ; 22461 return 0; 22462} 22463_ACEOF 22464rm -f conftest.$ac_objext conftest$ac_exeext 22465if { (ac_try="$ac_link" 22466case "(($ac_try" in 22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22468 *) ac_try_echo=$ac_try;; 22469esac 22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22471 (eval "$ac_link") 2>conftest.er1 22472 ac_status=$? 22473 grep -v '^ *+' conftest.er1 >conftest.err 22474 rm -f conftest.er1 22475 cat conftest.err >&5 22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22477 (exit $ac_status); } && 22478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22479 { (case "(($ac_try" in 22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22481 *) ac_try_echo=$ac_try;; 22482esac 22483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22484 (eval "$ac_try") 2>&5 22485 ac_status=$? 22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22487 (exit $ac_status); }; } && 22488 { ac_try='test -s conftest$ac_exeext' 22489 { (case "(($ac_try" in 22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22491 *) ac_try_echo=$ac_try;; 22492esac 22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22494 (eval "$ac_try") 2>&5 22495 ac_status=$? 22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22497 (exit $ac_status); }; }; then 22498 ac_cv_lib_nsl_inet_ntoa=yes 22499else 22500 echo "$as_me: failed program was:" >&5 22501sed 's/^/| /' conftest.$ac_ext >&5 22502 22503 ac_cv_lib_nsl_inet_ntoa=no 22504fi 22505 22506rm -f conftest.err conftest.$ac_objext \ 22507 conftest$ac_exeext conftest.$ac_ext 22508LIBS=$ac_check_lib_save_LIBS 22509fi 22510{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 22511echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 22512if test $ac_cv_lib_nsl_inet_ntoa = yes; then 22513 LIBNSL="-lnsl" 22514fi 22515 22516{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 22517echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 22518if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 22519 echo $ECHO_N "(cached) $ECHO_C" >&6 22520else 22521 ac_check_lib_save_LIBS=$LIBS 22522LIBS="-lnsl $LIBS" 22523cat >conftest.$ac_ext <<_ACEOF 22524/* confdefs.h. */ 22525_ACEOF 22526cat confdefs.h >>conftest.$ac_ext 22527cat >>conftest.$ac_ext <<_ACEOF 22528/* end confdefs.h. */ 22529 22530/* Override any GCC internal prototype to avoid an error. 22531 Use char because int might match the return type of a GCC 22532 builtin and then its argument prototype would still apply. */ 22533#ifdef __cplusplus 22534extern "C" 22535#endif 22536char gethostbyname (); 22537int 22538main () 22539{ 22540return gethostbyname (); 22541 ; 22542 return 0; 22543} 22544_ACEOF 22545rm -f conftest.$ac_objext conftest$ac_exeext 22546if { (ac_try="$ac_link" 22547case "(($ac_try" in 22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22549 *) ac_try_echo=$ac_try;; 22550esac 22551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22552 (eval "$ac_link") 2>conftest.er1 22553 ac_status=$? 22554 grep -v '^ *+' conftest.er1 >conftest.err 22555 rm -f conftest.er1 22556 cat conftest.err >&5 22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22558 (exit $ac_status); } && 22559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22560 { (case "(($ac_try" in 22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22562 *) ac_try_echo=$ac_try;; 22563esac 22564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22565 (eval "$ac_try") 2>&5 22566 ac_status=$? 22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22568 (exit $ac_status); }; } && 22569 { ac_try='test -s conftest$ac_exeext' 22570 { (case "(($ac_try" in 22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22572 *) ac_try_echo=$ac_try;; 22573esac 22574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22575 (eval "$ac_try") 2>&5 22576 ac_status=$? 22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22578 (exit $ac_status); }; }; then 22579 ac_cv_lib_nsl_gethostbyname=yes 22580else 22581 echo "$as_me: failed program was:" >&5 22582sed 's/^/| /' conftest.$ac_ext >&5 22583 22584 ac_cv_lib_nsl_gethostbyname=no 22585fi 22586 22587rm -f conftest.err conftest.$ac_objext \ 22588 conftest$ac_exeext conftest.$ac_ext 22589LIBS=$ac_check_lib_save_LIBS 22590fi 22591{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 22592echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 22593if test $ac_cv_lib_nsl_gethostbyname = yes; then 22594 LIBNSL="-lnsl" 22595fi 22596 22597 22598 22599 22600 22601# Check whether --with-xml-prefix was given. 22602if test "${with_xml_prefix+set}" = set; then 22603 withval=$with_xml_prefix; xml_config_prefix="$withval" 22604else 22605 xml_config_prefix="" 22606fi 22607 22608 22609# Check whether --with-xml-exec-prefix was given. 22610if test "${with_xml_exec_prefix+set}" = set; then 22611 withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval" 22612else 22613 xml_config_exec_prefix="" 22614fi 22615 22616# Check whether --enable-xmltest was given. 22617if test "${enable_xmltest+set}" = set; then 22618 enableval=$enable_xmltest; 22619else 22620 enable_xmltest=yes 22621fi 22622 22623 22624 if test x$xml_config_exec_prefix != x ; then 22625 xml_config_args="$xml_config_args" 22626 if test x${XML2_CONFIG+set} != xset ; then 22627 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config 22628 fi 22629 fi 22630 if test x$xml_config_prefix != x ; then 22631 xml_config_args="$xml_config_args --prefix=$xml_config_prefix" 22632 if test x${XML2_CONFIG+set} != xset ; then 22633 XML2_CONFIG=$xml_config_prefix/bin/xml2-config 22634 fi 22635 fi 22636 22637 # Extract the first word of "xml2-config", so it can be a program name with args. 22638set dummy xml2-config; ac_word=$2 22639{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22641if test "${ac_cv_path_XML2_CONFIG+set}" = set; then 22642 echo $ECHO_N "(cached) $ECHO_C" >&6 22643else 22644 case $XML2_CONFIG in 22645 [\\/]* | ?:[\\/]*) 22646 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. 22647 ;; 22648 *) 22649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22650for as_dir in $PATH 22651do 22652 IFS=$as_save_IFS 22653 test -z "$as_dir" && as_dir=. 22654 for ac_exec_ext in '' $ac_executable_extensions; do 22655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 22656 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22658 break 2 22659 fi 22660done 22661done 22662IFS=$as_save_IFS 22663 22664 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" 22665 ;; 22666esac 22667fi 22668XML2_CONFIG=$ac_cv_path_XML2_CONFIG 22669if test -n "$XML2_CONFIG"; then 22670 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 22671echo "${ECHO_T}$XML2_CONFIG" >&6; } 22672else 22673 { echo "$as_me:$LINENO: result: no" >&5 22674echo "${ECHO_T}no" >&6; } 22675fi 22676 22677 22678 min_xml_version=2.6.0 22679 { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5 22680echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; } 22681 no_xml="" 22682 if test "$XML2_CONFIG" = "no" ; then 22683 no_xml=yes 22684 else 22685 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags` 22686 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs` 22687 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ 22688 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 22689 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ 22690 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 22691 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ 22692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 22693 if test "x$enable_xmltest" = "xyes" ; then 22694 ac_save_CPPFLAGS="$CPPFLAGS" 22695 ac_save_LIBS="$LIBS" 22696 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" 22697 LIBS="$XML_LIBS $LIBS" 22698 rm -f conf.xmltest 22699 if test "$cross_compiling" = yes; then 22700 echo $ac_n "cross compiling; assumed OK... $ac_c" 22701else 22702 cat >conftest.$ac_ext <<_ACEOF 22703/* confdefs.h. */ 22704_ACEOF 22705cat confdefs.h >>conftest.$ac_ext 22706cat >>conftest.$ac_ext <<_ACEOF 22707/* end confdefs.h. */ 22708 22709#include <stdlib.h> 22710#include <stdio.h> 22711#include <string.h> 22712#include <libxml/xmlversion.h> 22713 22714int 22715main() 22716{ 22717 int xml_major_version, xml_minor_version, xml_micro_version; 22718 int major, minor, micro; 22719 char *tmp_version; 22720 22721 system("touch conf.xmltest"); 22722 22723 /* Capture xml2-config output via autoconf/configure variables */ 22724 /* HP/UX 9 (%@#!) writes to sscanf strings */ 22725 tmp_version = (char *)strdup("$min_xml_version"); 22726 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 22727 printf("%s, bad version string from xml2-config\n", "$min_xml_version"); 22728 exit(1); 22729 } 22730 free(tmp_version); 22731 22732 /* Capture the version information from the header files */ 22733 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION); 22734 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) { 22735 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION"); 22736 exit(1); 22737 } 22738 free(tmp_version); 22739 22740 /* Compare xml2-config output to the libxml headers */ 22741 if ((xml_major_version != $xml_config_major_version) || 22742 (xml_minor_version != $xml_config_minor_version) || 22743 (xml_micro_version != $xml_config_micro_version)) 22744 { 22745 printf("*** libxml header files (version %d.%d.%d) do not match\n", 22746 xml_major_version, xml_minor_version, xml_micro_version); 22747 printf("*** xml2-config (version %d.%d.%d)\n", 22748 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); 22749 return 1; 22750 } 22751/* Compare the headers to the library to make sure we match */ 22752 /* Less than ideal -- doesn't provide us with return value feedback, 22753 * only exits if there's a serious mismatch between header and library. 22754 */ 22755 LIBXML_TEST_VERSION; 22756 22757 /* Test that the library is greater than our minimum version */ 22758 if ((xml_major_version > major) || 22759 ((xml_major_version == major) && (xml_minor_version > minor)) || 22760 ((xml_major_version == major) && (xml_minor_version == minor) && 22761 (xml_micro_version >= micro))) 22762 { 22763 return 0; 22764 } 22765 else 22766 { 22767 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n", 22768 xml_major_version, xml_minor_version, xml_micro_version); 22769 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n", 22770 major, minor, micro); 22771 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n"); 22772 printf("***\n"); 22773 printf("*** If you have already installed a sufficiently new version, this error\n"); 22774 printf("*** probably means that the wrong copy of the xml2-config shell script is\n"); 22775 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 22776 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); 22777 printf("*** correct copy of xml2-config. (In this case, you will have to\n"); 22778 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 22779 printf("*** so that the correct libraries are found at run-time))\n"); 22780 } 22781 return 1; 22782} 22783 22784_ACEOF 22785rm -f conftest$ac_exeext 22786if { (ac_try="$ac_link" 22787case "(($ac_try" in 22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22789 *) ac_try_echo=$ac_try;; 22790esac 22791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22792 (eval "$ac_link") 2>&5 22793 ac_status=$? 22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22796 { (case "(($ac_try" in 22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22798 *) ac_try_echo=$ac_try;; 22799esac 22800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22801 (eval "$ac_try") 2>&5 22802 ac_status=$? 22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22804 (exit $ac_status); }; }; then 22805 : 22806else 22807 echo "$as_me: program exited with status $ac_status" >&5 22808echo "$as_me: failed program was:" >&5 22809sed 's/^/| /' conftest.$ac_ext >&5 22810 22811( exit $ac_status ) 22812no_xml=yes 22813fi 22814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22815fi 22816 22817 22818 CPPFLAGS="$ac_save_CPPFLAGS" 22819 LIBS="$ac_save_LIBS" 22820 fi 22821 fi 22822 22823 if test "x$no_xml" = x ; then 22824 { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5 22825echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; } 22826 CFLAGS="$CFLAGS $XML_CPPFLAGS"; LDFLAGS="$LDFLAGS $XML_LIBS" 22827 else 22828 { echo "$as_me:$LINENO: result: no" >&5 22829echo "${ECHO_T}no" >&6; } 22830 if test "$XML2_CONFIG" = "no" ; then 22831 echo "*** The xml2-config script installed by LIBXML could not be found" 22832 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" 22833 echo "*** your path, or set the XML2_CONFIG environment variable to the" 22834 echo "*** full path to xml2-config." 22835 else 22836 if test -f conf.xmltest ; then 22837 : 22838 else 22839 echo "*** Could not run libxml test program, checking why..." 22840 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" 22841 LIBS="$LIBS $XML_LIBS" 22842 cat >conftest.$ac_ext <<_ACEOF 22843/* confdefs.h. */ 22844_ACEOF 22845cat confdefs.h >>conftest.$ac_ext 22846cat >>conftest.$ac_ext <<_ACEOF 22847/* end confdefs.h. */ 22848 22849#include <libxml/xmlversion.h> 22850#include <stdio.h> 22851 22852int 22853main () 22854{ 22855 LIBXML_TEST_VERSION; return 0; 22856 ; 22857 return 0; 22858} 22859_ACEOF 22860rm -f conftest.$ac_objext conftest$ac_exeext 22861if { (ac_try="$ac_link" 22862case "(($ac_try" in 22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22864 *) ac_try_echo=$ac_try;; 22865esac 22866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22867 (eval "$ac_link") 2>conftest.er1 22868 ac_status=$? 22869 grep -v '^ *+' conftest.er1 >conftest.err 22870 rm -f conftest.er1 22871 cat conftest.err >&5 22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22873 (exit $ac_status); } && 22874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22875 { (case "(($ac_try" in 22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22877 *) ac_try_echo=$ac_try;; 22878esac 22879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22880 (eval "$ac_try") 2>&5 22881 ac_status=$? 22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22883 (exit $ac_status); }; } && 22884 { ac_try='test -s conftest$ac_exeext' 22885 { (case "(($ac_try" in 22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22887 *) ac_try_echo=$ac_try;; 22888esac 22889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22890 (eval "$ac_try") 2>&5 22891 ac_status=$? 22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22893 (exit $ac_status); }; }; then 22894 echo "*** The test program compiled, but did not run. This usually means" 22895 echo "*** that the run-time linker is not finding LIBXML or finding the wrong" 22896 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" 22897 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 22898 echo "*** to the installed location Also, make sure you have run ldconfig if that" 22899 echo "*** is required on your system" 22900 echo "***" 22901 echo "*** If you have an old version installed, it is best to remove it, although" 22902 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 22903else 22904 echo "$as_me: failed program was:" >&5 22905sed 's/^/| /' conftest.$ac_ext >&5 22906 22907 echo "*** The test program failed to compile or link. See the file config.log for the" 22908 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" 22909 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" 22910 echo "*** may want to edit the xml2-config script: $XML2_CONFIG" 22911fi 22912 22913rm -f conftest.err conftest.$ac_objext \ 22914 conftest$ac_exeext conftest.$ac_ext 22915 CPPFLAGS="$ac_save_CPPFLAGS" 22916 LIBS="$ac_save_LIBS" 22917 fi 22918 fi 22919 22920 XML_CPPFLAGS="" 22921 XML_LIBS="" 22922 exit 1 22923 fi 22924 22925 22926 rm -f conf.xmltest 22927 22928 22929# ------------------------------------------ 22930# Check ssl library 22931# Original work at: http://autoconf-archive.cryp.to/check_ssl.html 22932# ------------------------------------------ 22933 22934{ echo "$as_me:$LINENO: checking if ssl is wanted" >&5 22935echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6; } 22936 22937# Check whether --with-ssl was given. 22938if test "${with_ssl+set}" = set; then 22939 withval=$with_ssl; { echo "$as_me:$LINENO: result: yes" >&5 22940echo "${ECHO_T}yes" >&6; } 22941 for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do 22942 ssldir="$dir" 22943 if test -f "$dir/include/openssl/ssl.h"; then 22944 found_ssl="yes"; 22945 CFLAGS="$CFLAGS -I$ssldir/include/openssl"; 22946 break; 22947 fi 22948 if test -f "$dir/include/ssl.h"; then 22949 found_ssl="yes"; 22950 CFLAGS="$CFLAGS -I$ssldir/include"; 22951 break 22952 fi 22953 done 22954 if test x_$found_ssl != x_yes; then 22955 { { echo "$as_me:$LINENO: error: Cannot find ssl libraries 22956 Please goto http://www.openssl.org and install OpenSSL or 22957 install it from your os distribution" >&5 22958echo "$as_me: error: Cannot find ssl libraries 22959 Please goto http://www.openssl.org and install OpenSSL or 22960 install it from your os distribution" >&2;} 22961 { (exit 1); exit 1; }; } 22962 else 22963 printf "OpenSSL found in $ssldir\n"; 22964 LIBS="$LIBS -lssl -lcrypto"; 22965 LDFLAGS="$LDFLAGS -L$ssldir/lib"; 22966 22967cat >>confdefs.h <<\_ACEOF 22968@%:@define HAVE_SSL 1 22969_ACEOF 22970 22971 fi 22972 22973else 22974 22975 { echo "$as_me:$LINENO: result: no" >&5 22976echo "${ECHO_T}no" >&6; } 22977 22978fi 22979 22980 22981 22982ac_config_files="$ac_config_files Makefile libcsoap/Makefile nanohttp/Makefile examples/Makefile examples/nanohttp/Makefile examples/csoap/Makefile libcsoap.pc csoap-config" 22983 22984cat >confcache <<\_ACEOF 22985# This file is a shell script that caches the results of configure 22986# tests run on this system so they can be shared between configure 22987# scripts and configure runs, see configure's option --config-cache. 22988# It is not useful on other systems. If it contains results you don't 22989# want to keep, you may remove or edit it. 22990# 22991# config.status only pays attention to the cache file if you give it 22992# the --recheck option to rerun configure. 22993# 22994# `ac_cv_env_foo' variables (set or unset) will be overridden when 22995# loading this file, other *unset* `ac_cv_foo' will be assigned the 22996# following values. 22997 22998_ACEOF 22999 23000# The following way of writing the cache mishandles newlines in values, 23001# but we know of no workaround that is simple, portable, and efficient. 23002# So, we kill variables containing newlines. 23003# Ultrix sh set writes to stderr and can't be redirected directly, 23004# and sets the high bit in the cache file unless we assign to the vars. 23005( 23006 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23007 eval ac_val=\$$ac_var 23008 case $ac_val in #( 23009 *${as_nl}*) 23010 case $ac_var in #( 23011 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23012echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23013 esac 23014 case $ac_var in #( 23015 _ | IFS | as_nl) ;; #( 23016 *) $as_unset $ac_var ;; 23017 esac ;; 23018 esac 23019 done 23020 23021 (set) 2>&1 | 23022 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23023 *${as_nl}ac_space=\ *) 23024 # `set' does not quote correctly, so add quotes (double-quote 23025 # substitution turns \\\\ into \\, and sed turns \\ into \). 23026 sed -n \ 23027 "s/'/'\\\\''/g; 23028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23029 ;; #( 23030 *) 23031 # `set' quotes correctly as required by POSIX, so do not add quotes. 23032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23033 ;; 23034 esac | 23035 sort 23036) | 23037 sed ' 23038 /^ac_cv_env_/b end 23039 t clear 23040 :clear 23041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23042 t end 23043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23044 :end' >>confcache 23045if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23046 if test -w "$cache_file"; then 23047 test "x$cache_file" != "x/dev/null" && 23048 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23049echo "$as_me: updating cache $cache_file" >&6;} 23050 cat confcache >$cache_file 23051 else 23052 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23053echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23054 fi 23055fi 23056rm -f confcache 23057 23058test "x$prefix" = xNONE && prefix=$ac_default_prefix 23059# Let make expand exec_prefix. 23060test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23061 23062DEFS=-DHAVE_CONFIG_H 23063 23064ac_libobjs= 23065ac_ltlibobjs= 23066for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 23067 # 1. Remove the extension, and $U if already installed. 23068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23069 ac_i=`echo "$ac_i" | sed "$ac_script"` 23070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23071 # will be set to the directory where LIBOBJS objects are built. 23072 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23073 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23074done 23075LIB@&t@OBJS=$ac_libobjs 23076 23077LTLIBOBJS=$ac_ltlibobjs 23078 23079 23080if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23081 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23082Usually this means the macro was only invoked conditionally." >&5 23083echo "$as_me: error: conditional \"AMDEP\" was never defined. 23084Usually this means the macro was only invoked conditionally." >&2;} 23085 { (exit 1); exit 1; }; } 23086fi 23087if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23088 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23089Usually this means the macro was only invoked conditionally." >&5 23090echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23091Usually this means the macro was only invoked conditionally." >&2;} 23092 { (exit 1); exit 1; }; } 23093fi 23094if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23095 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23096Usually this means the macro was only invoked conditionally." >&5 23097echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23098Usually this means the macro was only invoked conditionally." >&2;} 23099 { (exit 1); exit 1; }; } 23100fi 23101 23102: ${CONFIG_STATUS=./config.status} 23103ac_clean_files_save=$ac_clean_files 23104ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23105{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23106echo "$as_me: creating $CONFIG_STATUS" >&6;} 23107cat >$CONFIG_STATUS <<_ACEOF 23108#! $SHELL 23109# Generated by $as_me. 23110# Run this file to recreate the current configuration. 23111# Compiler output produced by configure, useful for debugging 23112# configure, is in config.log if it exists. 23113 23114debug=false 23115ac_cs_recheck=false 23116ac_cs_silent=false 23117SHELL=\${CONFIG_SHELL-$SHELL} 23118_ACEOF 23119 23120cat >>$CONFIG_STATUS <<\_ACEOF 23121## --------------------- ## 23122## M4sh Initialization. ## 23123## --------------------- ## 23124 23125# Be Bourne compatible 23126if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23127 emulate sh 23128 NULLCMD=: 23129 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23130 # is contrary to our usage. Disable this feature. 23131 alias -g '${1+"$@"}'='"$@"' 23132 setopt NO_GLOB_SUBST 23133else 23134 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23135fi 23136BIN_SH=xpg4; export BIN_SH # for Tru64 23137DUALCASE=1; export DUALCASE # for MKS sh 23138 23139 23140# PATH needs CR 23141# Avoid depending upon Character Ranges. 23142as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23144as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23145as_cr_digits='0123456789' 23146as_cr_alnum=$as_cr_Letters$as_cr_digits 23147 23148# The user is always right. 23149if test "${PATH_SEPARATOR+set}" != set; then 23150 echo "#! /bin/sh" >conf$$.sh 23151 echo "exit 0" >>conf$$.sh 23152 chmod +x conf$$.sh 23153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23154 PATH_SEPARATOR=';' 23155 else 23156 PATH_SEPARATOR=: 23157 fi 23158 rm -f conf$$.sh 23159fi 23160 23161# Support unset when possible. 23162if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23163 as_unset=unset 23164else 23165 as_unset=false 23166fi 23167 23168 23169# IFS 23170# We need space, tab and new line, in precisely that order. Quoting is 23171# there to prevent editors from complaining about space-tab. 23172# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23173# splitting by setting IFS to empty value.) 23174as_nl=' 23175' 23176IFS=" "" $as_nl" 23177 23178# Find who we are. Look in the path if we contain no directory separator. 23179case $0 in 23180 *[\\/]* ) as_myself=$0 ;; 23181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23182for as_dir in $PATH 23183do 23184 IFS=$as_save_IFS 23185 test -z "$as_dir" && as_dir=. 23186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23187done 23188IFS=$as_save_IFS 23189 23190 ;; 23191esac 23192# We did not find ourselves, most probably we were run as `sh COMMAND' 23193# in which case we are not to be found in the path. 23194if test "x$as_myself" = x; then 23195 as_myself=$0 23196fi 23197if test ! -f "$as_myself"; then 23198 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23199 { (exit 1); exit 1; } 23200fi 23201 23202# Work around bugs in pre-3.0 UWIN ksh. 23203for as_var in ENV MAIL MAILPATH 23204do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23205done 23206PS1='$ ' 23207PS2='> ' 23208PS4='+ ' 23209 23210# NLS nuisances. 23211for as_var in \ 23212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23214 LC_TELEPHONE LC_TIME 23215do 23216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23217 eval $as_var=C; export $as_var 23218 else 23219 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23220 fi 23221done 23222 23223# Required to use basename. 23224if expr a : '\(a\)' >/dev/null 2>&1 && 23225 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23226 as_expr=expr 23227else 23228 as_expr=false 23229fi 23230 23231if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23232 as_basename=basename 23233else 23234 as_basename=false 23235fi 23236 23237 23238# Name of the executable. 23239as_me=`$as_basename -- "$0" || 23240$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23241 X"$0" : 'X\(//\)$' \| \ 23242 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23243echo X/"$0" | 23244 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23245 s//\1/ 23246 q 23247 } 23248 /^X\/\(\/\/\)$/{ 23249 s//\1/ 23250 q 23251 } 23252 /^X\/\(\/\).*/{ 23253 s//\1/ 23254 q 23255 } 23256 s/.*/./; q'` 23257 23258# CDPATH. 23259$as_unset CDPATH 23260 23261 23262 23263 as_lineno_1=$LINENO 23264 as_lineno_2=$LINENO 23265 test "x$as_lineno_1" != "x$as_lineno_2" && 23266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23267 23268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23269 # uniformly replaced by the line number. The first 'sed' inserts a 23270 # line-number line after each line using $LINENO; the second 'sed' 23271 # does the real work. The second script uses 'N' to pair each 23272 # line-number line with the line containing $LINENO, and appends 23273 # trailing '-' during substitution so that $LINENO is not a special 23274 # case at line end. 23275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23276 # scripts with optimization help from Paolo Bonzini. Blame Lee 23277 # E. McMahon (1931-1989) for sed's syntax. :-) 23278 sed -n ' 23279 p 23280 /[$]LINENO/= 23281 ' <$as_myself | 23282 sed ' 23283 s/[$]LINENO.*/&-/ 23284 t lineno 23285 b 23286 :lineno 23287 N 23288 :loop 23289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23290 t loop 23291 s/-\n.*// 23292 ' >$as_me.lineno && 23293 chmod +x "$as_me.lineno" || 23294 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23295 { (exit 1); exit 1; }; } 23296 23297 # Don't try to exec as it changes $[0], causing all sort of problems 23298 # (the dirname of $[0] is not the place where we might find the 23299 # original and so on. Autoconf is especially sensitive to this). 23300 . "./$as_me.lineno" 23301 # Exit status is that of the last command. 23302 exit 23303} 23304 23305 23306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23307 as_dirname=dirname 23308else 23309 as_dirname=false 23310fi 23311 23312ECHO_C= ECHO_N= ECHO_T= 23313case `echo -n x` in 23314-n*) 23315 case `echo 'x\c'` in 23316 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23317 *) ECHO_C='\c';; 23318 esac;; 23319*) 23320 ECHO_N='-n';; 23321esac 23322 23323if expr a : '\(a\)' >/dev/null 2>&1 && 23324 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23325 as_expr=expr 23326else 23327 as_expr=false 23328fi 23329 23330rm -f conf$$ conf$$.exe conf$$.file 23331if test -d conf$$.dir; then 23332 rm -f conf$$.dir/conf$$.file 23333else 23334 rm -f conf$$.dir 23335 mkdir conf$$.dir 23336fi 23337echo >conf$$.file 23338if ln -s conf$$.file conf$$ 2>/dev/null; then 23339 as_ln_s='ln -s' 23340 # ... but there are two gotchas: 23341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23343 # In both cases, we have to default to `cp -p'. 23344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23345 as_ln_s='cp -p' 23346elif ln conf$$.file conf$$ 2>/dev/null; then 23347 as_ln_s=ln 23348else 23349 as_ln_s='cp -p' 23350fi 23351rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23352rmdir conf$$.dir 2>/dev/null 23353 23354if mkdir -p . 2>/dev/null; then 23355 as_mkdir_p=: 23356else 23357 test -d ./-p && rmdir ./-p 23358 as_mkdir_p=false 23359fi 23360 23361# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23362# systems may use methods other than mode bits to determine executability. 23363cat >conf$$.file <<_ASEOF 23364#! /bin/sh 23365exit 0 23366_ASEOF 23367chmod +x conf$$.file 23368if test -x conf$$.file >/dev/null 2>&1; then 23369 as_executable_p="test -x" 23370else 23371 as_executable_p=: 23372fi 23373rm -f conf$$.file 23374 23375# Sed expression to map a string onto a valid CPP name. 23376as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23377 23378# Sed expression to map a string onto a valid variable name. 23379as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23380 23381 23382exec 6>&1 23383 23384# Save the log message, to keep $[0] and so on meaningful, and to 23385# report actual input values of CONFIG_FILES etc. instead of their 23386# values after options handling. 23387ac_log=" 23388This file was extended by csoap $as_me 1.1.0, which was 23389generated by GNU Autoconf 2.59e. Invocation command line was 23390 23391 CONFIG_FILES = $CONFIG_FILES 23392 CONFIG_HEADERS = $CONFIG_HEADERS 23393 CONFIG_LINKS = $CONFIG_LINKS 23394 CONFIG_COMMANDS = $CONFIG_COMMANDS 23395 $ $0 $@ 23396 23397on `(hostname || uname -n) 2>/dev/null | sed 1q` 23398" 23399 23400_ACEOF 23401 23402cat >>$CONFIG_STATUS <<_ACEOF 23403# Files that config.status was made for. 23404config_files="$ac_config_files" 23405config_headers="$ac_config_headers" 23406config_commands="$ac_config_commands" 23407 23408_ACEOF 23409 23410cat >>$CONFIG_STATUS <<\_ACEOF 23411ac_cs_usage="\ 23412\`$as_me' instantiates files from templates according to the 23413current configuration. 23414 23415Usage: $0 [OPTIONS] [FILE]... 23416 23417 -h, --help print this help, then exit 23418 -V, --version print version number, then exit 23419 -q, --quiet do not print progress messages 23420 -d, --debug don't remove temporary files 23421 --recheck update $as_me by reconfiguring in the same conditions 23422 --file=FILE[:TEMPLATE] 23423 instantiate the configuration file FILE 23424 --header=FILE[:TEMPLATE] 23425 instantiate the configuration header FILE 23426 23427Configuration files: 23428$config_files 23429 23430Configuration headers: 23431$config_headers 23432 23433Configuration commands: 23434$config_commands 23435 23436Report bugs to <bug-autoconf@gnu.org>." 23437 23438_ACEOF 23439cat >>$CONFIG_STATUS <<_ACEOF 23440ac_cs_version="\\ 23441csoap config.status 1.1.0 23442configured by $0, generated by GNU Autoconf 2.59e, 23443 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23444 23445Copyright (C) 2006 Free Software Foundation, Inc. 23446This config.status script is free software; the Free Software Foundation 23447gives unlimited permission to copy, distribute and modify it." 23448 23449ac_pwd='$ac_pwd' 23450srcdir='$srcdir' 23451INSTALL='$INSTALL' 23452_ACEOF 23453 23454cat >>$CONFIG_STATUS <<\_ACEOF 23455# If no file are specified by the user, then we need to provide default 23456# value. By we need to know if files were specified by the user. 23457ac_need_defaults=: 23458while test $# != 0 23459do 23460 case $1 in 23461 --*=*) 23462 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23463 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23464 ac_shift=: 23465 ;; 23466 *) 23467 ac_option=$1 23468 ac_optarg=$2 23469 ac_shift=shift 23470 ;; 23471 esac 23472 23473 case $ac_option in 23474 # Handling of the options. 23475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23476 ac_cs_recheck=: ;; 23477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23478 echo "$ac_cs_version"; exit ;; 23479 --debug | --debu | --deb | --de | --d | -d ) 23480 debug=: ;; 23481 --file | --fil | --fi | --f ) 23482 $ac_shift 23483 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23484 ac_need_defaults=false;; 23485 --header | --heade | --head | --hea ) 23486 $ac_shift 23487 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23488 ac_need_defaults=false;; 23489 --he | --h) 23490 # Conflict between --help and --header 23491 { echo "$as_me: error: ambiguous option: $1 23492Try \`$0 --help' for more information." >&2 23493 { (exit 1); exit 1; }; };; 23494 --help | --hel | -h ) 23495 echo "$ac_cs_usage"; exit ;; 23496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23497 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23498 ac_cs_silent=: ;; 23499 23500 # This is an error. 23501 -*) { echo "$as_me: error: unrecognized option: $1 23502Try \`$0 --help' for more information." >&2 23503 { (exit 1); exit 1; }; } ;; 23504 23505 *) ac_config_targets="$ac_config_targets $1" 23506 ac_need_defaults=false ;; 23507 23508 esac 23509 shift 23510done 23511 23512ac_configure_extra_args= 23513 23514if $ac_cs_silent; then 23515 exec 6>/dev/null 23516 ac_configure_extra_args="$ac_configure_extra_args --silent" 23517fi 23518 23519_ACEOF 23520cat >>$CONFIG_STATUS <<_ACEOF 23521if \$ac_cs_recheck; then 23522 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23523 CONFIG_SHELL=$SHELL 23524 export CONFIG_SHELL 23525 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23526fi 23527 23528_ACEOF 23529cat >>$CONFIG_STATUS <<\_ACEOF 23530exec 5>>config.log 23531{ 23532 echo 23533 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 23534@%:@@%:@ Running $as_me. @%:@@%:@ 23535_ASBOX 23536 echo "$ac_log" 23537} >&5 23538 23539_ACEOF 23540cat >>$CONFIG_STATUS <<_ACEOF 23541# 23542# INIT-COMMANDS 23543# 23544AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23545 23546_ACEOF 23547 23548cat >>$CONFIG_STATUS <<\_ACEOF 23549 23550# Handling of arguments. 23551for ac_config_target in $ac_config_targets 23552do 23553 case $ac_config_target in 23554 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23555 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23557 "libcsoap/Makefile") CONFIG_FILES="$CONFIG_FILES libcsoap/Makefile" ;; 23558 "nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES nanohttp/Makefile" ;; 23559 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 23560 "examples/nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nanohttp/Makefile" ;; 23561 "examples/csoap/Makefile") CONFIG_FILES="$CONFIG_FILES examples/csoap/Makefile" ;; 23562 "libcsoap.pc") CONFIG_FILES="$CONFIG_FILES libcsoap.pc" ;; 23563 "csoap-config") CONFIG_FILES="$CONFIG_FILES csoap-config" ;; 23564 23565 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23566echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23567 { (exit 1); exit 1; }; };; 23568 esac 23569done 23570 23571 23572# If the user did not use the arguments to specify the items to instantiate, 23573# then the envvar interface is used. Set only those that are not. 23574# We use the long form for the default assignment because of an extremely 23575# bizarre bug on SunOS 4.1.3. 23576if $ac_need_defaults; then 23577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23580fi 23581 23582# Have a temporary directory for convenience. Make it in the build tree 23583# simply because there is no reason against having it here, and in addition, 23584# creating and moving files from /tmp can sometimes cause problems. 23585# Hook for its removal unless debugging. 23586# Note that there is a small window in which the directory will not be cleaned: 23587# after its creation but before its name has been assigned to `$tmp'. 23588$debug || 23589{ 23590 tmp= 23591 trap 'exit_status=$? 23592 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23593' 0 23594 trap '{ (exit 1); exit 1; }' 1 2 13 15 23595} 23596# Create a (secure) tmp directory for tmp files. 23597 23598{ 23599 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23600 test -n "$tmp" && test -d "$tmp" 23601} || 23602{ 23603 tmp=./conf$$-$RANDOM 23604 (umask 077 && mkdir "$tmp") 23605} || 23606{ 23607 echo "$me: cannot create a temporary directory in ." >&2 23608 { (exit 1); exit 1; } 23609} 23610 23611# 23612# Set up the sed scripts for CONFIG_FILES section. 23613# 23614 23615# No need to generate the scripts if there are no CONFIG_FILES. 23616# This happens for instance when ./config.status config.h 23617if test -n "$CONFIG_FILES"; then 23618 23619_ACEOF 23620 23621 23622 23623ac_delim='%!_!# ' 23624for ac_last_try in false false false false false :; do 23625 cat >conf$$subs.sed <<_ACEOF 23626SHELL!$SHELL$ac_delim 23627PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23628PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23629PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23630PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23631PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23632PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23633exec_prefix!$exec_prefix$ac_delim 23634prefix!$prefix$ac_delim 23635program_transform_name!$program_transform_name$ac_delim 23636bindir!$bindir$ac_delim 23637sbindir!$sbindir$ac_delim 23638libexecdir!$libexecdir$ac_delim 23639datarootdir!$datarootdir$ac_delim 23640datadir!$datadir$ac_delim 23641sysconfdir!$sysconfdir$ac_delim 23642sharedstatedir!$sharedstatedir$ac_delim 23643localstatedir!$localstatedir$ac_delim 23644includedir!$includedir$ac_delim 23645oldincludedir!$oldincludedir$ac_delim 23646docdir!$docdir$ac_delim 23647infodir!$infodir$ac_delim 23648htmldir!$htmldir$ac_delim 23649dvidir!$dvidir$ac_delim 23650pdfdir!$pdfdir$ac_delim 23651psdir!$psdir$ac_delim 23652libdir!$libdir$ac_delim 23653localedir!$localedir$ac_delim 23654mandir!$mandir$ac_delim 23655DEFS!$DEFS$ac_delim 23656ECHO_C!$ECHO_C$ac_delim 23657ECHO_N!$ECHO_N$ac_delim 23658ECHO_T!$ECHO_T$ac_delim 23659LIBS!$LIBS$ac_delim 23660build_alias!$build_alias$ac_delim 23661host_alias!$host_alias$ac_delim 23662target_alias!$target_alias$ac_delim 23663INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23664INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23665INSTALL_DATA!$INSTALL_DATA$ac_delim 23666CYGPATH_W!$CYGPATH_W$ac_delim 23667PACKAGE!$PACKAGE$ac_delim 23668VERSION!$VERSION$ac_delim 23669ACLOCAL!$ACLOCAL$ac_delim 23670AUTOCONF!$AUTOCONF$ac_delim 23671AUTOMAKE!$AUTOMAKE$ac_delim 23672AUTOHEADER!$AUTOHEADER$ac_delim 23673MAKEINFO!$MAKEINFO$ac_delim 23674install_sh!$install_sh$ac_delim 23675STRIP!$STRIP$ac_delim 23676INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23677mkdir_p!$mkdir_p$ac_delim 23678AWK!$AWK$ac_delim 23679SET_MAKE!$SET_MAKE$ac_delim 23680am__leading_dot!$am__leading_dot$ac_delim 23681AMTAR!$AMTAR$ac_delim 23682am__tar!$am__tar$ac_delim 23683am__untar!$am__untar$ac_delim 23684CC!$CC$ac_delim 23685CFLAGS!$CFLAGS$ac_delim 23686LDFLAGS!$LDFLAGS$ac_delim 23687CPPFLAGS!$CPPFLAGS$ac_delim 23688ac_ct_CC!$ac_ct_CC$ac_delim 23689EXEEXT!$EXEEXT$ac_delim 23690OBJEXT!$OBJEXT$ac_delim 23691DEPDIR!$DEPDIR$ac_delim 23692am__include!$am__include$ac_delim 23693am__quote!$am__quote$ac_delim 23694AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23695AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23696AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23697CCDEPMODE!$CCDEPMODE$ac_delim 23698am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23699am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23700build!$build$ac_delim 23701build_cpu!$build_cpu$ac_delim 23702build_vendor!$build_vendor$ac_delim 23703build_os!$build_os$ac_delim 23704host!$host$ac_delim 23705host_cpu!$host_cpu$ac_delim 23706host_vendor!$host_vendor$ac_delim 23707host_os!$host_os$ac_delim 23708GREP!$GREP$ac_delim 23709EGREP!$EGREP$ac_delim 23710LN_S!$LN_S$ac_delim 23711ECHO!$ECHO$ac_delim 23712AR!$AR$ac_delim 23713RANLIB!$RANLIB$ac_delim 23714CPP!$CPP$ac_delim 23715CXX!$CXX$ac_delim 23716CXXFLAGS!$CXXFLAGS$ac_delim 23717ac_ct_CXX!$ac_ct_CXX$ac_delim 23718CXXDEPMODE!$CXXDEPMODE$ac_delim 23719am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23720am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23721CXXCPP!$CXXCPP$ac_delim 23722F77!$F77$ac_delim 23723_ACEOF 23724 23725 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23726 break 23727 elif $ac_last_try; then 23728 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23729echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23730 { (exit 1); exit 1; }; } 23731 else 23732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23733 fi 23734done 23735 23736ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23737if test -n "$ac_eof"; then 23738 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23739 ac_eof=`expr $ac_eof + 1` 23740fi 23741 23742cat >>$CONFIG_STATUS <<_ACEOF 23743cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23745_ACEOF 23746sed ' 23747s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23748s/^/s,@/; s/!/@,|#_!!_#|/ 23749:n 23750t n 23751s/'"$ac_delim"'$/,g/; t 23752s/$/\\/; p 23753N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23754' >>$CONFIG_STATUS <conf$$subs.sed 23755rm -f conf$$subs.sed 23756cat >>$CONFIG_STATUS <<_ACEOF 23757CEOF$ac_eof 23758_ACEOF 23759 23760 23761ac_delim='%!_!# ' 23762for ac_last_try in false false false false false :; do 23763 cat >conf$$subs.sed <<_ACEOF 23764FFLAGS!$FFLAGS$ac_delim 23765ac_ct_F77!$ac_ct_F77$ac_delim 23766LIBTOOL!$LIBTOOL$ac_delim 23767csoap_major!$csoap_major$ac_delim 23768csoap_minor!$csoap_minor$ac_delim 23769csoap_patch!$csoap_patch$ac_delim 23770csoap_release!$csoap_release$ac_delim 23771csoap_version!$csoap_version$ac_delim 23772nanohttp_release!$nanohttp_release$ac_delim 23773nanohttp_version!$nanohttp_version$ac_delim 23774LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 23775acx_pthread_config!$acx_pthread_config$ac_delim 23776PTHREAD_CC!$PTHREAD_CC$ac_delim 23777PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 23778PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 23779LIBSOCKET!$LIBSOCKET$ac_delim 23780LIBNSL!$LIBNSL$ac_delim 23781XML2_CONFIG!$XML2_CONFIG$ac_delim 23782XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim 23783XML_LIBS!$XML_LIBS$ac_delim 23784LTLIBOBJS!$LTLIBOBJS$ac_delim 23785_ACEOF 23786 23787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 23788 break 23789 elif $ac_last_try; then 23790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23791echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23792 { (exit 1); exit 1; }; } 23793 else 23794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23795 fi 23796done 23797 23798ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23799if test -n "$ac_eof"; then 23800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23801 ac_eof=`expr $ac_eof + 1` 23802fi 23803 23804cat >>$CONFIG_STATUS <<_ACEOF 23805cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23807_ACEOF 23808sed ' 23809s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23810s/^/s,@/; s/!/@,|#_!!_#|/ 23811:n 23812t n 23813s/'"$ac_delim"'$/,g/; t 23814s/$/\\/; p 23815N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23816' >>$CONFIG_STATUS <conf$$subs.sed 23817rm -f conf$$subs.sed 23818cat >>$CONFIG_STATUS <<_ACEOF 23819:end 23820s/|#_!!_#|//g 23821CEOF$ac_eof 23822_ACEOF 23823 23824 23825# VPATH may cause trouble with some makes, so we remove $(srcdir), 23826# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23827# trailing colons and then remove the whole line if VPATH becomes empty 23828# (actually we leave an empty line to preserve line numbers). 23829if test "x$srcdir" = x.; then 23830 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23831s/:*\$(srcdir):*/:/ 23832s/:*\${srcdir}:*/:/ 23833s/:*@srcdir@:*/:/ 23834s/^\([^=]*=[ ]*\):*/\1/ 23835s/:*$// 23836s/^[^=]*=[ ]*$// 23837}' 23838fi 23839 23840cat >>$CONFIG_STATUS <<\_ACEOF 23841fi # test -n "$CONFIG_FILES" 23842 23843 23844for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23845do 23846 case $ac_tag in 23847 :[FHLC]) ac_mode=$ac_tag; continue;; 23848 esac 23849 case $ac_mode$ac_tag in 23850 :[FHL]*:*);; 23851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23852echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23853 { (exit 1); exit 1; }; };; 23854 :[FH]-) ac_tag=-:-;; 23855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23856 esac 23857 ac_save_IFS=$IFS 23858 IFS=: 23859 set x $ac_tag 23860 IFS=$ac_save_IFS 23861 shift 23862 ac_file=$1 23863 shift 23864 23865 case $ac_mode in 23866 :L) ac_source=$1;; 23867 :[FH]) 23868 ac_file_inputs= 23869 for ac_f 23870 do 23871 case $ac_f in 23872 -) ac_f="$tmp/stdin";; 23873 *) # Look for the file first in the build tree, then in the source tree 23874 # (if the path is not absolute). The absolute path cannot be DOS-style, 23875 # because $ac_f cannot contain `:'. 23876 test -f "$ac_f" || 23877 case $ac_f in 23878 [\\/$]*) false;; 23879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23880 esac || 23881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23882echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23883 { (exit 1); exit 1; }; };; 23884 esac 23885 ac_file_inputs="$ac_file_inputs $ac_f" 23886 done 23887 23888 # Let's still pretend it is `configure' which instantiates (i.e., don't 23889 # use $as_me), people would be surprised to read: 23890 # /* config.h. Generated by config.status. */ 23891 configure_input="Generated from "`IFS=: 23892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23893 if test x"$ac_file" != x-; then 23894 configure_input="$ac_file. $configure_input" 23895 { echo "$as_me:$LINENO: creating $ac_file" >&5 23896echo "$as_me: creating $ac_file" >&6;} 23897 fi 23898 23899 case $ac_tag in 23900 *:-:* | *:-) cat >"$tmp/stdin";; 23901 esac 23902 ;; 23903 esac 23904 23905 ac_dir=`$as_dirname -- "$ac_file" || 23906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23907 X"$ac_file" : 'X\(//\)[^/]' \| \ 23908 X"$ac_file" : 'X\(//\)$' \| \ 23909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23910echo X"$ac_file" | 23911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23912 s//\1/ 23913 q 23914 } 23915 /^X\(\/\/\)[^/].*/{ 23916 s//\1/ 23917 q 23918 } 23919 /^X\(\/\/\)$/{ 23920 s//\1/ 23921 q 23922 } 23923 /^X\(\/\).*/{ 23924 s//\1/ 23925 q 23926 } 23927 s/.*/./; q'` 23928 { as_dir="$ac_dir" 23929 case $as_dir in #( 23930 -*) as_dir=./$as_dir;; 23931 esac 23932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23933 as_dirs= 23934 while :; do 23935 case $as_dir in #( 23936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23937 *) as_qdir=$as_dir;; 23938 esac 23939 as_dirs="'$as_qdir' $as_dirs" 23940 as_dir=`$as_dirname -- "$as_dir" || 23941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23942 X"$as_dir" : 'X\(//\)[^/]' \| \ 23943 X"$as_dir" : 'X\(//\)$' \| \ 23944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23945echo X"$as_dir" | 23946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23947 s//\1/ 23948 q 23949 } 23950 /^X\(\/\/\)[^/].*/{ 23951 s//\1/ 23952 q 23953 } 23954 /^X\(\/\/\)$/{ 23955 s//\1/ 23956 q 23957 } 23958 /^X\(\/\).*/{ 23959 s//\1/ 23960 q 23961 } 23962 s/.*/./; q'` 23963 test -d "$as_dir" && break 23964 done 23965 test -z "$as_dirs" || eval "mkdir $as_dirs" 23966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23967echo "$as_me: error: cannot create directory $as_dir" >&2;} 23968 { (exit 1); exit 1; }; }; } 23969 ac_builddir=. 23970 23971case "$ac_dir" in 23972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23973*) 23974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23975 # A ".." for each directory in $ac_dir_suffix. 23976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23977 case $ac_top_builddir_sub in 23978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23980 esac ;; 23981esac 23982ac_abs_top_builddir=$ac_pwd 23983ac_abs_builddir=$ac_pwd$ac_dir_suffix 23984# for backward compatibility: 23985ac_top_builddir=$ac_top_build_prefix 23986 23987case $srcdir in 23988 .) # We are building in place. 23989 ac_srcdir=. 23990 ac_top_srcdir=$ac_top_builddir_sub 23991 ac_abs_top_srcdir=$ac_pwd ;; 23992 [\\/]* | ?:[\\/]* ) # Absolute name. 23993 ac_srcdir=$srcdir$ac_dir_suffix; 23994 ac_top_srcdir=$srcdir 23995 ac_abs_top_srcdir=$srcdir ;; 23996 *) # Relative name. 23997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23998 ac_top_srcdir=$ac_top_build_prefix$srcdir 23999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24000esac 24001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24002 24003 24004 case $ac_mode in 24005 :F) 24006 # 24007 # CONFIG_FILE 24008 # 24009 24010 case $INSTALL in 24011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24013 esac 24014_ACEOF 24015 24016cat >>$CONFIG_STATUS <<\_ACEOF 24017# If the template does not know about datarootdir, expand it. 24018# FIXME: This hack should be removed a few years after 2.60. 24019ac_datarootdir_hack=; ac_datarootdir_seen= 24020 24021case `sed -n '/datarootdir/ { 24022 p 24023 q 24024} 24025/@datadir@/p 24026/@docdir@/p 24027/@infodir@/p 24028/@localedir@/p 24029/@mandir@/p 24030' $ac_file_inputs` in 24031*datarootdir*) ac_datarootdir_seen=yes;; 24032*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24034echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24035_ACEOF 24036cat >>$CONFIG_STATUS <<_ACEOF 24037 ac_datarootdir_hack=' 24038 s&@datadir@&$datadir&g 24039 s&@docdir@&$docdir&g 24040 s&@infodir@&$infodir&g 24041 s&@localedir@&$localedir&g 24042 s&@mandir@&$mandir&g 24043 s&\\\${datarootdir}&$datarootdir&g' ;; 24044esac 24045_ACEOF 24046 24047# Neutralize VPATH when `$srcdir' = `.'. 24048# Shell code in configure.ac might set extrasub. 24049# FIXME: do we really want to maintain this feature? 24050cat >>$CONFIG_STATUS <<_ACEOF 24051 sed "$ac_vpsub 24052$extrasub 24053_ACEOF 24054cat >>$CONFIG_STATUS <<\_ACEOF 24055:t 24056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24057s&@configure_input@&$configure_input&;t t 24058s&@top_builddir@&$ac_top_builddir_sub&;t t 24059s&@srcdir@&$ac_srcdir&;t t 24060s&@abs_srcdir@&$ac_abs_srcdir&;t t 24061s&@top_srcdir@&$ac_top_srcdir&;t t 24062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24063s&@builddir@&$ac_builddir&;t t 24064s&@abs_builddir@&$ac_abs_builddir&;t t 24065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24066s&@INSTALL@&$ac_INSTALL&;t t 24067$ac_datarootdir_hack 24068" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24069 24070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24072 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24073which seems to be undefined. Please make sure it is defined." >&5 24074echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24075which seems to be undefined. Please make sure it is defined." >&2;} 24076 24077 rm -f "$tmp/stdin" 24078 case $ac_file in 24079 -) cat "$tmp/out"; rm -f "$tmp/out";; 24080 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24081 esac 24082 ;; 24083 :H) 24084 # 24085 # CONFIG_HEADER 24086 # 24087_ACEOF 24088 24089# Transform confdefs.h into a sed script `conftest.defines', that 24090# substitutes the proper values into config.h.in to produce config.h. 24091rm -f conftest.defines conftest.tail 24092# First, append a space to every undef/define line, to ease matching. 24093echo 's/$/ /' >conftest.defines 24094# Then, protect against being on the right side of a sed subst, or in 24095# an unquoted here document, in config.status. If some macros were 24096# called several times there might be several #defines for the same 24097# symbol, which is useless. But do not sort them, since the last 24098# AC_DEFINE must be honored. 24099ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24100# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24101# NAME is the cpp macro being defined, VALUE is the value it is being given. 24102# PARAMS is the parameter list in the macro definition--in most cases, it's 24103# just an empty string. 24104ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24105ac_dB='\\)[ (].*,\\1define\\2' 24106ac_dC=' ' 24107ac_dD=' ,' 24108 24109uniq confdefs.h | 24110 sed -n ' 24111 t rset 24112 :rset 24113 s/^[ ]*#[ ]*define[ ][ ]*// 24114 t ok 24115 d 24116 :ok 24117 s/[\\&,]/\\&/g 24118 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24119 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24120 ' >>conftest.defines 24121 24122# Remove the space that was appended to ease matching. 24123# Then replace #undef with comments. This is necessary, for 24124# example, in the case of _POSIX_SOURCE, which is predefined and required 24125# on some systems where configure will not decide to define it. 24126# (The regexp can be short, since the line contains either #define or #undef.) 24127echo 's/ $// 24128s,^[ #]*u.*,/* & */,' >>conftest.defines 24129 24130# Break up conftest.defines: 24131ac_max_sed_lines=50 24132 24133# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24134# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24135# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24136# et cetera. 24137ac_in='$ac_file_inputs' 24138ac_out='"$tmp/out1"' 24139ac_nxt='"$tmp/out2"' 24140 24141while : 24142do 24143 # Write a here document: 24144 cat >>$CONFIG_STATUS <<_ACEOF 24145 # First, check the format of the line: 24146 cat >"\$tmp/defines.sed" <<\\CEOF 24147/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24148/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24149b 24150:def 24151_ACEOF 24152 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24153 echo 'CEOF 24154 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24155 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24156 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24157 grep . conftest.tail >/dev/null || break 24158 rm -f conftest.defines 24159 mv conftest.tail conftest.defines 24160done 24161rm -f conftest.defines conftest.tail 24162 24163echo "ac_result=$ac_in" >>$CONFIG_STATUS 24164cat >>$CONFIG_STATUS <<\_ACEOF 24165 if test x"$ac_file" != x-; then 24166 echo "/* $configure_input */" >"$tmp/config.h" 24167 cat "$ac_result" >>"$tmp/config.h" 24168 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24170echo "$as_me: $ac_file is unchanged" >&6;} 24171 else 24172 rm -f $ac_file 24173 mv "$tmp/config.h" $ac_file 24174 fi 24175 else 24176 echo "/* $configure_input */" 24177 cat "$ac_result" 24178 fi 24179 rm -f "$tmp/out12" 24180# Compute $ac_file's index in $config_headers. 24181_am_stamp_count=1 24182for _am_header in $config_headers :; do 24183 case $_am_header in 24184 $ac_file | $ac_file:* ) 24185 break ;; 24186 * ) 24187 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24188 esac 24189done 24190echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24191$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24192 X$ac_file : 'X\(//\)[^/]' \| \ 24193 X$ac_file : 'X\(//\)$' \| \ 24194 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24195echo X$ac_file | 24196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24197 s//\1/ 24198 q 24199 } 24200 /^X\(\/\/\)[^/].*/{ 24201 s//\1/ 24202 q 24203 } 24204 /^X\(\/\/\)$/{ 24205 s//\1/ 24206 q 24207 } 24208 /^X\(\/\).*/{ 24209 s//\1/ 24210 q 24211 } 24212 s/.*/./; q'`/stamp-h$_am_stamp_count 24213 ;; 24214 24215 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24216echo "$as_me: executing $ac_file commands" >&6;} 24217 ;; 24218 esac 24219 24220 24221 case $ac_file$ac_mode in 24222 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24223 # Strip MF so we end up with the name of the file. 24224 mf=`echo "$mf" | sed -e 's/:.*$//'` 24225 # Check whether this is an Automake generated Makefile or not. 24226 # We used to match only the files named `Makefile.in', but 24227 # some people rename them; so instead we look at the file content. 24228 # Grep'ing the first line is not enough: some people post-process 24229 # each Makefile.in and add a new line on top of each file to say so. 24230 # So let's grep whole file. 24231 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24232 dirpart=`$as_dirname -- "$mf" || 24233$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24234 X"$mf" : 'X\(//\)[^/]' \| \ 24235 X"$mf" : 'X\(//\)$' \| \ 24236 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24237echo X"$mf" | 24238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24239 s//\1/ 24240 q 24241 } 24242 /^X\(\/\/\)[^/].*/{ 24243 s//\1/ 24244 q 24245 } 24246 /^X\(\/\/\)$/{ 24247 s//\1/ 24248 q 24249 } 24250 /^X\(\/\).*/{ 24251 s//\1/ 24252 q 24253 } 24254 s/.*/./; q'` 24255 else 24256 continue 24257 fi 24258 # Extract the definition of DEPDIR, am__include, and am__quote 24259 # from the Makefile without running `make'. 24260 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24261 test -z "$DEPDIR" && continue 24262 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24263 test -z "am__include" && continue 24264 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24265 # When using ansi2knr, U may be empty or an underscore; expand it 24266 U=`sed -n 's/^U = //p' < "$mf"` 24267 # Find all dependency output files, they are included files with 24268 # $(DEPDIR) in their names. We invoke sed twice because it is the 24269 # simplest approach to changing $(DEPDIR) to its actual value in the 24270 # expansion. 24271 for file in `sed -n " 24272 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24274 # Make sure the directory exists. 24275 test -f "$dirpart/$file" && continue 24276 fdir=`$as_dirname -- "$file" || 24277$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24278 X"$file" : 'X\(//\)[^/]' \| \ 24279 X"$file" : 'X\(//\)$' \| \ 24280 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24281echo X"$file" | 24282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24283 s//\1/ 24284 q 24285 } 24286 /^X\(\/\/\)[^/].*/{ 24287 s//\1/ 24288 q 24289 } 24290 /^X\(\/\/\)$/{ 24291 s//\1/ 24292 q 24293 } 24294 /^X\(\/\).*/{ 24295 s//\1/ 24296 q 24297 } 24298 s/.*/./; q'` 24299 { as_dir=$dirpart/$fdir 24300 case $as_dir in #( 24301 -*) as_dir=./$as_dir;; 24302 esac 24303 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24304 as_dirs= 24305 while :; do 24306 case $as_dir in #( 24307 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24308 *) as_qdir=$as_dir;; 24309 esac 24310 as_dirs="'$as_qdir' $as_dirs" 24311 as_dir=`$as_dirname -- "$as_dir" || 24312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24313 X"$as_dir" : 'X\(//\)[^/]' \| \ 24314 X"$as_dir" : 'X\(//\)$' \| \ 24315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24316echo X"$as_dir" | 24317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24318 s//\1/ 24319 q 24320 } 24321 /^X\(\/\/\)[^/].*/{ 24322 s//\1/ 24323 q 24324 } 24325 /^X\(\/\/\)$/{ 24326 s//\1/ 24327 q 24328 } 24329 /^X\(\/\).*/{ 24330 s//\1/ 24331 q 24332 } 24333 s/.*/./; q'` 24334 test -d "$as_dir" && break 24335 done 24336 test -z "$as_dirs" || eval "mkdir $as_dirs" 24337 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24338echo "$as_me: error: cannot create directory $as_dir" >&2;} 24339 { (exit 1); exit 1; }; }; } 24340 # echo "creating $dirpart/$file" 24341 echo '# dummy' > "$dirpart/$file" 24342 done 24343done 24344 ;; 24345 24346 esac 24347done # for ac_tag 24348 24349 24350{ (exit 0); exit 0; } 24351_ACEOF 24352chmod +x $CONFIG_STATUS 24353ac_clean_files=$ac_clean_files_save 24354 24355 24356# configure is writing to config.log, and then calls config.status. 24357# config.status does its own redirection, appending to config.log. 24358# Unfortunately, on DOS this fails, as config.log is still kept open 24359# by configure, so config.status won't be able to write to it; its 24360# output is simply discarded. So we exec the FD to /dev/null, 24361# effectively closing config.log, so it can be properly (re)opened and 24362# appended to by config.status. When coming back to configure, we 24363# need to make the FD available again. 24364if test "$no_create" != yes; then 24365 ac_cs_success=: 24366 ac_config_status_args= 24367 test "$silent" = yes && 24368 ac_config_status_args="$ac_config_status_args --quiet" 24369 exec 5>/dev/null 24370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24371 exec 5>>config.log 24372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24373 # would make configure fail if this is the last instruction. 24374 $ac_cs_success || { (exit 1); exit 1; } 24375fi 24376 24377 24378echo "Configured cSOAP $csoap_major.$csoap_minor.$csoap_patch for installation in $prefix"; 24379 24380 24381