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=. 704LIBOBJS= 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 863LIBOBJS 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 4497 "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 7432lt_prog_compiler_no_builtin_flag= 7433 7434if test "$GCC" = yes; then 7435 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7436 7437 7438{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7439echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7440if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7441 echo $ECHO_N "(cached) $ECHO_C" >&6 7442else 7443 lt_cv_prog_compiler_rtti_exceptions=no 7444 ac_outfile=conftest.$ac_objext 7445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7446 lt_compiler_flag="-fno-rtti -fno-exceptions" 7447 # Insert the option either (1) after the last *FLAGS variable, or 7448 # (2) before a word containing "conftest.", or (3) at the end. 7449 # Note that $ac_compile itself does not contain backslashes and begins 7450 # with a dollar sign (not a hyphen), so the echo should work correctly. 7451 # The option is referenced via a variable to avoid confusing sed. 7452 lt_compile=`echo "$ac_compile" | $SED \ 7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7455 -e 's:$: $lt_compiler_flag:'` 7456 (eval echo "\"\$as_me:7456: $lt_compile\"" >&5) 7457 (eval "$lt_compile" 2>conftest.err) 7458 ac_status=$? 7459 cat conftest.err >&5 7460 echo "$as_me:7460: \$? = $ac_status" >&5 7461 if (exit $ac_status) && test -s "$ac_outfile"; then 7462 # The compiler can only warn and ignore the option if not recognized 7463 # So say no if there are warnings other than the usual output. 7464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7467 lt_cv_prog_compiler_rtti_exceptions=yes 7468 fi 7469 fi 7470 $rm conftest* 7471 7472fi 7473{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7474echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7475 7476if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7478else 7479 : 7480fi 7481 7482fi 7483 7484lt_prog_compiler_wl= 7485lt_prog_compiler_pic= 7486lt_prog_compiler_static= 7487 7488{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7489echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7490 7491 if test "$GCC" = yes; then 7492 lt_prog_compiler_wl='-Wl,' 7493 lt_prog_compiler_static='-static' 7494 7495 case $host_os in 7496 aix*) 7497 # All AIX code is PIC. 7498 if test "$host_cpu" = ia64; then 7499 # AIX 5 now supports IA64 processor 7500 lt_prog_compiler_static='-Bstatic' 7501 fi 7502 ;; 7503 7504 amigaos*) 7505 # FIXME: we need at least 68020 code to build shared libraries, but 7506 # adding the `-m68020' flag to GCC prevents building anything better, 7507 # like `-m68040'. 7508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7509 ;; 7510 7511 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7512 # PIC is the default for these OSes. 7513 ;; 7514 7515 mingw* | pw32* | os2*) 7516 # This hack is so that the source file can tell whether it is being 7517 # built for inclusion in a dll (and should export symbols for example). 7518 lt_prog_compiler_pic='-DDLL_EXPORT' 7519 ;; 7520 7521 darwin* | rhapsody*) 7522 # PIC is the default on this platform 7523 # Common symbols not allowed in MH_DYLIB files 7524 lt_prog_compiler_pic='-fno-common' 7525 ;; 7526 7527 interix3*) 7528 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7529 # Instead, we relocate shared libraries at runtime. 7530 ;; 7531 7532 msdosdjgpp*) 7533 # Just because we use GCC doesn't mean we suddenly get shared libraries 7534 # on systems that don't support them. 7535 lt_prog_compiler_can_build_shared=no 7536 enable_shared=no 7537 ;; 7538 7539 sysv4*MP*) 7540 if test -d /usr/nec; then 7541 lt_prog_compiler_pic=-Kconform_pic 7542 fi 7543 ;; 7544 7545 hpux*) 7546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7547 # not for PA HP-UX. 7548 case $host_cpu in 7549 hppa*64*|ia64*) 7550 # +Z the default 7551 ;; 7552 *) 7553 lt_prog_compiler_pic='-fPIC' 7554 ;; 7555 esac 7556 ;; 7557 7558 *) 7559 lt_prog_compiler_pic='-fPIC' 7560 ;; 7561 esac 7562 else 7563 # PORTME Check for flag to pass linker flags through the system compiler. 7564 case $host_os in 7565 aix*) 7566 lt_prog_compiler_wl='-Wl,' 7567 if test "$host_cpu" = ia64; then 7568 # AIX 5 now supports IA64 processor 7569 lt_prog_compiler_static='-Bstatic' 7570 else 7571 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7572 fi 7573 ;; 7574 darwin*) 7575 # PIC is the default on this platform 7576 # Common symbols not allowed in MH_DYLIB files 7577 case $cc_basename in 7578 xlc*) 7579 lt_prog_compiler_pic='-qnocommon' 7580 lt_prog_compiler_wl='-Wl,' 7581 ;; 7582 esac 7583 ;; 7584 7585 mingw* | pw32* | os2*) 7586 # This hack is so that the source file can tell whether it is being 7587 # built for inclusion in a dll (and should export symbols for example). 7588 lt_prog_compiler_pic='-DDLL_EXPORT' 7589 ;; 7590 7591 hpux9* | hpux10* | hpux11*) 7592 lt_prog_compiler_wl='-Wl,' 7593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7594 # not for PA HP-UX. 7595 case $host_cpu in 7596 hppa*64*|ia64*) 7597 # +Z the default 7598 ;; 7599 *) 7600 lt_prog_compiler_pic='+Z' 7601 ;; 7602 esac 7603 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7604 lt_prog_compiler_static='${wl}-a ${wl}archive' 7605 ;; 7606 7607 irix5* | irix6* | nonstopux*) 7608 lt_prog_compiler_wl='-Wl,' 7609 # PIC (with -KPIC) is the default. 7610 lt_prog_compiler_static='-non_shared' 7611 ;; 7612 7613 newsos6) 7614 lt_prog_compiler_pic='-KPIC' 7615 lt_prog_compiler_static='-Bstatic' 7616 ;; 7617 7618 linux* | k*bsd*-gnu) 7619 case $cc_basename in 7620 icc* | ecc*) 7621 lt_prog_compiler_wl='-Wl,' 7622 lt_prog_compiler_pic='-KPIC' 7623 lt_prog_compiler_static='-static' 7624 ;; 7625 pgcc* | pgf77* | pgf90* | pgf95*) 7626 # Portland Group compilers (*not* the Pentium gcc compiler, 7627 # which looks to be a dead project) 7628 lt_prog_compiler_wl='-Wl,' 7629 lt_prog_compiler_pic='-fpic' 7630 lt_prog_compiler_static='-Bstatic' 7631 ;; 7632 ccc*) 7633 lt_prog_compiler_wl='-Wl,' 7634 # All Alpha code is PIC. 7635 lt_prog_compiler_static='-non_shared' 7636 ;; 7637 esac 7638 ;; 7639 7640 osf3* | osf4* | osf5*) 7641 lt_prog_compiler_wl='-Wl,' 7642 # All OSF/1 code is PIC. 7643 lt_prog_compiler_static='-non_shared' 7644 ;; 7645 7646 solaris*) 7647 lt_prog_compiler_pic='-KPIC' 7648 lt_prog_compiler_static='-Bstatic' 7649 case $cc_basename in 7650 f77* | f90* | f95*) 7651 lt_prog_compiler_wl='-Qoption ld ';; 7652 *) 7653 lt_prog_compiler_wl='-Wl,';; 7654 esac 7655 ;; 7656 7657 sunos4*) 7658 lt_prog_compiler_wl='-Qoption ld ' 7659 lt_prog_compiler_pic='-PIC' 7660 lt_prog_compiler_static='-Bstatic' 7661 ;; 7662 7663 sysv4 | sysv4.2uw2* | sysv4.3*) 7664 lt_prog_compiler_wl='-Wl,' 7665 lt_prog_compiler_pic='-KPIC' 7666 lt_prog_compiler_static='-Bstatic' 7667 ;; 7668 7669 sysv4*MP*) 7670 if test -d /usr/nec ;then 7671 lt_prog_compiler_pic='-Kconform_pic' 7672 lt_prog_compiler_static='-Bstatic' 7673 fi 7674 ;; 7675 7676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7677 lt_prog_compiler_wl='-Wl,' 7678 lt_prog_compiler_pic='-KPIC' 7679 lt_prog_compiler_static='-Bstatic' 7680 ;; 7681 7682 unicos*) 7683 lt_prog_compiler_wl='-Wl,' 7684 lt_prog_compiler_can_build_shared=no 7685 ;; 7686 7687 uts4*) 7688 lt_prog_compiler_pic='-pic' 7689 lt_prog_compiler_static='-Bstatic' 7690 ;; 7691 7692 *) 7693 lt_prog_compiler_can_build_shared=no 7694 ;; 7695 esac 7696 fi 7697 7698{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7699echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7700 7701# 7702# Check to make sure the PIC flag actually works. 7703# 7704if test -n "$lt_prog_compiler_pic"; then 7705 7706{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7707echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7708if test "${lt_prog_compiler_pic_works+set}" = set; then 7709 echo $ECHO_N "(cached) $ECHO_C" >&6 7710else 7711 lt_prog_compiler_pic_works=no 7712 ac_outfile=conftest.$ac_objext 7713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7715 # Insert the option either (1) after the last *FLAGS variable, or 7716 # (2) before a word containing "conftest.", or (3) at the end. 7717 # Note that $ac_compile itself does not contain backslashes and begins 7718 # with a dollar sign (not a hyphen), so the echo should work correctly. 7719 # The option is referenced via a variable to avoid confusing sed. 7720 lt_compile=`echo "$ac_compile" | $SED \ 7721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7723 -e 's:$: $lt_compiler_flag:'` 7724 (eval echo "\"\$as_me:7724: $lt_compile\"" >&5) 7725 (eval "$lt_compile" 2>conftest.err) 7726 ac_status=$? 7727 cat conftest.err >&5 7728 echo "$as_me:7728: \$? = $ac_status" >&5 7729 if (exit $ac_status) && test -s "$ac_outfile"; then 7730 # The compiler can only warn and ignore the option if not recognized 7731 # So say no if there are warnings other than the usual output. 7732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7735 lt_prog_compiler_pic_works=yes 7736 fi 7737 fi 7738 $rm conftest* 7739 7740fi 7741{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7742echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7743 7744if test x"$lt_prog_compiler_pic_works" = xyes; then 7745 case $lt_prog_compiler_pic in 7746 "" | " "*) ;; 7747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7748 esac 7749else 7750 lt_prog_compiler_pic= 7751 lt_prog_compiler_can_build_shared=no 7752fi 7753 7754fi 7755case $host_os in 7756 # For platforms which do not support PIC, -DPIC is meaningless: 7757 *djgpp*) 7758 lt_prog_compiler_pic= 7759 ;; 7760 *) 7761 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7762 ;; 7763esac 7764 7765# 7766# Check to make sure the static flag actually works. 7767# 7768wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7769{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7770echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7771if test "${lt_prog_compiler_static_works+set}" = set; then 7772 echo $ECHO_N "(cached) $ECHO_C" >&6 7773else 7774 lt_prog_compiler_static_works=no 7775 save_LDFLAGS="$LDFLAGS" 7776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7777 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7779 # The linker can only warn and ignore the option if not recognized 7780 # So say no if there are warnings 7781 if test -s conftest.err; then 7782 # Append any errors to the config.log. 7783 cat conftest.err 1>&5 7784 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7786 if diff conftest.exp conftest.er2 >/dev/null; then 7787 lt_prog_compiler_static_works=yes 7788 fi 7789 else 7790 lt_prog_compiler_static_works=yes 7791 fi 7792 fi 7793 $rm conftest* 7794 LDFLAGS="$save_LDFLAGS" 7795 7796fi 7797{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7798echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7799 7800if test x"$lt_prog_compiler_static_works" = xyes; then 7801 : 7802else 7803 lt_prog_compiler_static= 7804fi 7805 7806 7807{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7808echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7809if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7810 echo $ECHO_N "(cached) $ECHO_C" >&6 7811else 7812 lt_cv_prog_compiler_c_o=no 7813 $rm -r conftest 2>/dev/null 7814 mkdir conftest 7815 cd conftest 7816 mkdir out 7817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7818 7819 lt_compiler_flag="-o out/conftest2.$ac_objext" 7820 # Insert the option either (1) after the last *FLAGS variable, or 7821 # (2) before a word containing "conftest.", or (3) at the end. 7822 # Note that $ac_compile itself does not contain backslashes and begins 7823 # with a dollar sign (not a hyphen), so the echo should work correctly. 7824 lt_compile=`echo "$ac_compile" | $SED \ 7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7827 -e 's:$: $lt_compiler_flag:'` 7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5) 7829 (eval "$lt_compile" 2>out/conftest.err) 7830 ac_status=$? 7831 cat out/conftest.err >&5 7832 echo "$as_me:7832: \$? = $ac_status" >&5 7833 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7834 then 7835 # The compiler can only warn and ignore the option if not recognized 7836 # So say no if there are warnings 7837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7840 lt_cv_prog_compiler_c_o=yes 7841 fi 7842 fi 7843 chmod u+w . 2>&5 7844 $rm conftest* 7845 # SGI C++ compiler will create directory out/ii_files/ for 7846 # template instantiation 7847 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7848 $rm out/* && rmdir out 7849 cd .. 7850 rmdir conftest 7851 $rm conftest* 7852 7853fi 7854{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7855echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7856 7857 7858hard_links="nottested" 7859if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7860 # do not overwrite the value of need_locks provided by the user 7861 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7862echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7863 hard_links=yes 7864 $rm conftest* 7865 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7866 touch conftest.a 7867 ln conftest.a conftest.b 2>&5 || hard_links=no 7868 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7869 { echo "$as_me:$LINENO: result: $hard_links" >&5 7870echo "${ECHO_T}$hard_links" >&6; } 7871 if test "$hard_links" = no; then 7872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7873echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7874 need_locks=warn 7875 fi 7876else 7877 need_locks=no 7878fi 7879 7880{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7881echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7882 7883 runpath_var= 7884 allow_undefined_flag= 7885 enable_shared_with_static_runtimes=no 7886 archive_cmds= 7887 archive_expsym_cmds= 7888 old_archive_From_new_cmds= 7889 old_archive_from_expsyms_cmds= 7890 export_dynamic_flag_spec= 7891 whole_archive_flag_spec= 7892 thread_safe_flag_spec= 7893 hardcode_libdir_flag_spec= 7894 hardcode_libdir_flag_spec_ld= 7895 hardcode_libdir_separator= 7896 hardcode_direct=no 7897 hardcode_minus_L=no 7898 hardcode_shlibpath_var=unsupported 7899 link_all_deplibs=unknown 7900 hardcode_automatic=no 7901 module_cmds= 7902 module_expsym_cmds= 7903 always_export_symbols=no 7904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7905 # include_expsyms should be a list of space-separated symbols to be *always* 7906 # included in the symbol list 7907 include_expsyms= 7908 # exclude_expsyms can be an extended regexp of symbols to exclude 7909 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7911 # as well as any symbol that contains `d'. 7912 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7914 # platforms (ab)use it in PIC code, but their linkers get confused if 7915 # the symbol is explicitly referenced. Since portable code cannot 7916 # rely on this symbol name, it's probably fine to never include it in 7917 # preloaded symbol tables. 7918 extract_expsyms_cmds= 7919 # Just being paranoid about ensuring that cc_basename is set. 7920 for cc_temp in $compiler""; do 7921 case $cc_temp in 7922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7924 \-*) ;; 7925 *) break;; 7926 esac 7927done 7928cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7929 7930 case $host_os in 7931 cygwin* | mingw* | pw32*) 7932 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7933 # When not using gcc, we currently assume that we are using 7934 # Microsoft Visual C++. 7935 if test "$GCC" != yes; then 7936 with_gnu_ld=no 7937 fi 7938 ;; 7939 interix*) 7940 # we just hope/assume this is gcc and not c89 (= MSVC++) 7941 with_gnu_ld=yes 7942 ;; 7943 openbsd*) 7944 with_gnu_ld=no 7945 ;; 7946 esac 7947 7948 ld_shlibs=yes 7949 if test "$with_gnu_ld" = yes; then 7950 # If archive_cmds runs LD, not CC, wlarc should be empty 7951 wlarc='${wl}' 7952 7953 # Set some defaults for GNU ld with shared library support. These 7954 # are reset later if shared libraries are not supported. Putting them 7955 # here allows them to be overridden if necessary. 7956 runpath_var=LD_RUN_PATH 7957 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7958 export_dynamic_flag_spec='${wl}--export-dynamic' 7959 # ancient GNU ld didn't support --whole-archive et. al. 7960 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7961 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7962 else 7963 whole_archive_flag_spec= 7964 fi 7965 supports_anon_versioning=no 7966 case `$LD -v 2>/dev/null` in 7967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7970 *\ 2.11.*) ;; # other 2.11 versions 7971 *) supports_anon_versioning=yes ;; 7972 esac 7973 7974 # See if GNU ld supports shared libraries. 7975 case $host_os in 7976 aix3* | aix4* | aix5*) 7977 # On AIX/PPC, the GNU linker is very broken 7978 if test "$host_cpu" != ia64; then 7979 ld_shlibs=no 7980 cat <<EOF 1>&2 7981 7982*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7983*** to be unable to reliably create shared libraries on AIX. 7984*** Therefore, libtool is disabling shared libraries support. If you 7985*** really care for shared libraries, you may want to modify your PATH 7986*** so that a non-GNU linker is found, and then restart. 7987 7988EOF 7989 fi 7990 ;; 7991 7992 amigaos*) 7993 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)' 7994 hardcode_libdir_flag_spec='-L$libdir' 7995 hardcode_minus_L=yes 7996 7997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7998 # that the semantics of dynamic libraries on AmigaOS, at least up 7999 # to version 4, is to share data among multiple programs linked 8000 # with the same dynamic library. Since this doesn't match the 8001 # behavior of shared libraries on other platforms, we can't use 8002 # them. 8003 ld_shlibs=no 8004 ;; 8005 8006 beos*) 8007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8008 allow_undefined_flag=unsupported 8009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8010 # support --undefined. This deserves some investigation. FIXME 8011 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8012 else 8013 ld_shlibs=no 8014 fi 8015 ;; 8016 8017 cygwin* | mingw* | pw32*) 8018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8019 # as there is no search path for DLLs. 8020 hardcode_libdir_flag_spec='-L$libdir' 8021 allow_undefined_flag=unsupported 8022 always_export_symbols=no 8023 enable_shared_with_static_runtimes=yes 8024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8025 8026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8028 # If the export-symbols file already is a .def file (1st line 8029 # is EXPORTS), use it as is; otherwise, prepend... 8030 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8031 cp $export_symbols $output_objdir/$soname.def; 8032 else 8033 echo EXPORTS > $output_objdir/$soname.def; 8034 cat $export_symbols >> $output_objdir/$soname.def; 8035 fi~ 8036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8037 else 8038 ld_shlibs=no 8039 fi 8040 ;; 8041 8042 interix3*) 8043 hardcode_direct=no 8044 hardcode_shlibpath_var=no 8045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8046 export_dynamic_flag_spec='${wl}-E' 8047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8048 # Instead, shared libraries are loaded at an image base (0x10000000 by 8049 # default) and relocated if they conflict, which is a slow very memory 8050 # consuming and fragmenting process. To avoid this, we pick a random, 8051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8052 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8054 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' 8055 ;; 8056 8057 linux* | k*bsd*-gnu) 8058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8059 tmp_addflag= 8060 case $cc_basename,$host_cpu in 8061 pgcc*) # Portland Group C compiler 8062 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' 8063 tmp_addflag=' $pic_flag' 8064 ;; 8065 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 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 -Mnomain' ;; 8068 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8069 tmp_addflag=' -i_dynamic' ;; 8070 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8071 tmp_addflag=' -i_dynamic -nofor_main' ;; 8072 ifc* | ifort*) # Intel Fortran compiler 8073 tmp_addflag=' -nofor_main' ;; 8074 esac 8075 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8076 8077 if test $supports_anon_versioning = yes; then 8078 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8080 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8081 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8082 fi 8083 link_all_deplibs=no 8084 else 8085 ld_shlibs=no 8086 fi 8087 ;; 8088 8089 netbsd* | netbsdelf*-gnu) 8090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8092 wlarc= 8093 else 8094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8096 fi 8097 ;; 8098 8099 solaris*) 8100 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8101 ld_shlibs=no 8102 cat <<EOF 1>&2 8103 8104*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8105*** create shared libraries on Solaris systems. Therefore, libtool 8106*** is disabling shared libraries support. We urge you to upgrade GNU 8107*** binutils to release 2.9.1 or newer. Another option is to modify 8108*** your PATH or compiler configuration so that the native linker is 8109*** used, and then restart. 8110 8111EOF 8112 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8115 else 8116 ld_shlibs=no 8117 fi 8118 ;; 8119 8120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8121 case `$LD -v 2>&1` in 8122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8123 ld_shlibs=no 8124 cat <<_LT_EOF 1>&2 8125 8126*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8127*** reliably create shared libraries on SCO systems. Therefore, libtool 8128*** is disabling shared libraries support. We urge you to upgrade GNU 8129*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8130*** your PATH or compiler configuration so that the native linker is 8131*** used, and then restart. 8132 8133_LT_EOF 8134 ;; 8135 *) 8136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8137 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8140 else 8141 ld_shlibs=no 8142 fi 8143 ;; 8144 esac 8145 ;; 8146 8147 sunos4*) 8148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8149 wlarc= 8150 hardcode_direct=yes 8151 hardcode_shlibpath_var=no 8152 ;; 8153 8154 *) 8155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8158 else 8159 ld_shlibs=no 8160 fi 8161 ;; 8162 esac 8163 8164 if test "$ld_shlibs" = no; then 8165 runpath_var= 8166 hardcode_libdir_flag_spec= 8167 export_dynamic_flag_spec= 8168 whole_archive_flag_spec= 8169 fi 8170 else 8171 # PORTME fill in a description of your system's linker (not GNU ld) 8172 case $host_os in 8173 aix3*) 8174 allow_undefined_flag=unsupported 8175 always_export_symbols=yes 8176 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' 8177 # Note: this linker hardcodes the directories in LIBPATH if there 8178 # are no directories specified by -L. 8179 hardcode_minus_L=yes 8180 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8181 # Neither direct hardcoding nor static linking is supported with a 8182 # broken collect2. 8183 hardcode_direct=unsupported 8184 fi 8185 ;; 8186 8187 aix4* | aix5*) 8188 if test "$host_cpu" = ia64; then 8189 # On IA64, the linker does run time linking by default, so we don't 8190 # have to do anything special. 8191 aix_use_runtimelinking=no 8192 exp_sym_flag='-Bexport' 8193 no_entry_flag="" 8194 else 8195 # If we're using GNU nm, then we don't want the "-C" option. 8196 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8197 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8198 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' 8199 else 8200 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' 8201 fi 8202 aix_use_runtimelinking=no 8203 8204 # Test if we are trying to use run time linking or normal 8205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8206 # need to do runtime linking. 8207 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8208 for ld_flag in $LDFLAGS; do 8209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8210 aix_use_runtimelinking=yes 8211 break 8212 fi 8213 done 8214 ;; 8215 esac 8216 8217 exp_sym_flag='-bexport' 8218 no_entry_flag='-bnoentry' 8219 fi 8220 8221 # When large executables or shared objects are built, AIX ld can 8222 # have problems creating the table of contents. If linking a library 8223 # or program results in "error TOC overflow" add -mminimal-toc to 8224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8226 8227 archive_cmds='' 8228 hardcode_direct=yes 8229 hardcode_libdir_separator=':' 8230 link_all_deplibs=yes 8231 8232 if test "$GCC" = yes; then 8233 case $host_os in aix4.[012]|aix4.[012].*) 8234 # We only want to do this on AIX 4.2 and lower, the check 8235 # below for broken collect2 doesn't work under 4.3+ 8236 collect2name=`${CC} -print-prog-name=collect2` 8237 if test -f "$collect2name" && \ 8238 strings "$collect2name" | grep resolve_lib_name >/dev/null 8239 then 8240 # We have reworked collect2 8241 hardcode_direct=yes 8242 else 8243 # We have old collect2 8244 hardcode_direct=unsupported 8245 # It fails to find uninstalled libraries when the uninstalled 8246 # path is not listed in the libpath. Setting hardcode_minus_L 8247 # to unsupported forces relinking 8248 hardcode_minus_L=yes 8249 hardcode_libdir_flag_spec='-L$libdir' 8250 hardcode_libdir_separator= 8251 fi 8252 ;; 8253 esac 8254 shared_flag='-shared' 8255 if test "$aix_use_runtimelinking" = yes; then 8256 shared_flag="$shared_flag "'${wl}-G' 8257 fi 8258 else 8259 # not using gcc 8260 if test "$host_cpu" = ia64; then 8261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8262 # chokes on -Wl,-G. The following line is correct: 8263 shared_flag='-G' 8264 else 8265 if test "$aix_use_runtimelinking" = yes; then 8266 shared_flag='${wl}-G' 8267 else 8268 shared_flag='${wl}-bM:SRE' 8269 fi 8270 fi 8271 fi 8272 8273 # It seems that -bexpall does not export symbols beginning with 8274 # underscore (_), so it is better to generate a list of symbols to export. 8275 always_export_symbols=yes 8276 if test "$aix_use_runtimelinking" = yes; then 8277 # Warning - without using the other runtime loading flags (-brtl), 8278 # -berok will link without error, but may produce a broken library. 8279 allow_undefined_flag='-berok' 8280 # Determine the default libpath from the value encoded in an empty executable. 8281 cat >conftest.$ac_ext <<_ACEOF 8282/* confdefs.h. */ 8283_ACEOF 8284cat confdefs.h >>conftest.$ac_ext 8285cat >>conftest.$ac_ext <<_ACEOF 8286/* end confdefs.h. */ 8287 8288int 8289main () 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296rm -f conftest.$ac_objext conftest$ac_exeext 8297if { (ac_try="$ac_link" 8298case "(($ac_try" in 8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8300 *) ac_try_echo=$ac_try;; 8301esac 8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8303 (eval "$ac_link") 2>conftest.er1 8304 ac_status=$? 8305 grep -v '^ *+' conftest.er1 >conftest.err 8306 rm -f conftest.er1 8307 cat conftest.err >&5 8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8309 (exit $ac_status); } && 8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8311 { (case "(($ac_try" in 8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8313 *) ac_try_echo=$ac_try;; 8314esac 8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8316 (eval "$ac_try") 2>&5 8317 ac_status=$? 8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8319 (exit $ac_status); }; } && 8320 { ac_try='test -s conftest$ac_exeext' 8321 { (case "(($ac_try" in 8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8323 *) ac_try_echo=$ac_try;; 8324esac 8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8326 (eval "$ac_try") 2>&5 8327 ac_status=$? 8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8329 (exit $ac_status); }; }; then 8330 8331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8332}'` 8333# Check for a 64-bit object if we didn't find anything. 8334if 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; } 8335}'`; fi 8336else 8337 echo "$as_me: failed program was:" >&5 8338sed 's/^/| /' conftest.$ac_ext >&5 8339 8340 8341fi 8342 8343rm -f conftest.err conftest.$ac_objext \ 8344 conftest$ac_exeext conftest.$ac_ext 8345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8346 8347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8348 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" 8349 else 8350 if test "$host_cpu" = ia64; then 8351 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8352 allow_undefined_flag="-z nodefs" 8353 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" 8354 else 8355 # Determine the default libpath from the value encoded in an empty executable. 8356 cat >conftest.$ac_ext <<_ACEOF 8357/* confdefs.h. */ 8358_ACEOF 8359cat confdefs.h >>conftest.$ac_ext 8360cat >>conftest.$ac_ext <<_ACEOF 8361/* end confdefs.h. */ 8362 8363int 8364main () 8365{ 8366 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371rm -f conftest.$ac_objext conftest$ac_exeext 8372if { (ac_try="$ac_link" 8373case "(($ac_try" in 8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8375 *) ac_try_echo=$ac_try;; 8376esac 8377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8378 (eval "$ac_link") 2>conftest.er1 8379 ac_status=$? 8380 grep -v '^ *+' conftest.er1 >conftest.err 8381 rm -f conftest.er1 8382 cat conftest.err >&5 8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 (exit $ac_status); } && 8385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8386 { (case "(($ac_try" in 8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8388 *) ac_try_echo=$ac_try;; 8389esac 8390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8391 (eval "$ac_try") 2>&5 8392 ac_status=$? 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); }; } && 8395 { ac_try='test -s conftest$ac_exeext' 8396 { (case "(($ac_try" in 8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8398 *) ac_try_echo=$ac_try;; 8399esac 8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8401 (eval "$ac_try") 2>&5 8402 ac_status=$? 8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8404 (exit $ac_status); }; }; then 8405 8406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8407}'` 8408# Check for a 64-bit object if we didn't find anything. 8409if 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; } 8410}'`; fi 8411else 8412 echo "$as_me: failed program was:" >&5 8413sed 's/^/| /' conftest.$ac_ext >&5 8414 8415 8416fi 8417 8418rm -f conftest.err conftest.$ac_objext \ 8419 conftest$ac_exeext conftest.$ac_ext 8420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8421 8422 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8423 # Warning - without using the other run time loading flags, 8424 # -berok will link without error, but may produce a broken library. 8425 no_undefined_flag=' ${wl}-bernotok' 8426 allow_undefined_flag=' ${wl}-berok' 8427 # Exported symbols can be pulled into shared objects from archives 8428 whole_archive_flag_spec='$convenience' 8429 archive_cmds_need_lc=yes 8430 # This is similar to how AIX traditionally builds its shared libraries. 8431 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' 8432 fi 8433 fi 8434 ;; 8435 8436 amigaos*) 8437 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)' 8438 hardcode_libdir_flag_spec='-L$libdir' 8439 hardcode_minus_L=yes 8440 # see comment about different semantics on the GNU ld section 8441 ld_shlibs=no 8442 ;; 8443 8444 bsdi[45]*) 8445 export_dynamic_flag_spec=-rdynamic 8446 ;; 8447 8448 cygwin* | mingw* | pw32*) 8449 # When not using gcc, we currently assume that we are using 8450 # Microsoft Visual C++. 8451 # hardcode_libdir_flag_spec is actually meaningless, as there is 8452 # no search path for DLLs. 8453 hardcode_libdir_flag_spec=' ' 8454 allow_undefined_flag=unsupported 8455 # Tell ltmain to make .lib files, not .a files. 8456 libext=lib 8457 # Tell ltmain to make .dll files, not .so files. 8458 shrext_cmds=".dll" 8459 # FIXME: Setting linknames here is a bad hack. 8460 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8461 # The linker will automatically build a .lib file if we build a DLL. 8462 old_archive_From_new_cmds='true' 8463 # FIXME: Should let the user specify the lib program. 8464 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8465 fix_srcfile_path='`cygpath -w "$srcfile"`' 8466 enable_shared_with_static_runtimes=yes 8467 ;; 8468 8469 darwin* | rhapsody*) 8470 case $host_os in 8471 rhapsody* | darwin1.[012]) 8472 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8473 ;; 8474 *) # Darwin 1.3 on 8475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8476 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8477 else 8478 case ${MACOSX_DEPLOYMENT_TARGET} in 8479 10.[012]) 8480 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8481 ;; 8482 10.*) 8483 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8484 ;; 8485 esac 8486 fi 8487 ;; 8488 esac 8489 archive_cmds_need_lc=no 8490 hardcode_direct=no 8491 hardcode_automatic=yes 8492 hardcode_shlibpath_var=unsupported 8493 whole_archive_flag_spec='' 8494 link_all_deplibs=yes 8495 if test "$GCC" = yes ; then 8496 output_verbose_link_cmd='echo' 8497 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8498 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8500 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}' 8501 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}' 8502 else 8503 case $cc_basename in 8504 xlc*) 8505 output_verbose_link_cmd='echo' 8506 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8507 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8509 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}' 8510 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}' 8511 ;; 8512 *) 8513 ld_shlibs=no 8514 ;; 8515 esac 8516 fi 8517 ;; 8518 8519 dgux*) 8520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8521 hardcode_libdir_flag_spec='-L$libdir' 8522 hardcode_shlibpath_var=no 8523 ;; 8524 8525 freebsd1*) 8526 ld_shlibs=no 8527 ;; 8528 8529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8530 # support. Future versions do this automatically, but an explicit c++rt0.o 8531 # does not break anything, and helps significantly (at the cost of a little 8532 # extra space). 8533 freebsd2.2*) 8534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8535 hardcode_libdir_flag_spec='-R$libdir' 8536 hardcode_direct=yes 8537 hardcode_shlibpath_var=no 8538 ;; 8539 8540 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8541 freebsd2*) 8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8543 hardcode_direct=yes 8544 hardcode_minus_L=yes 8545 hardcode_shlibpath_var=no 8546 ;; 8547 8548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8549 freebsd* | dragonfly*) 8550 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8551 hardcode_libdir_flag_spec='-R$libdir' 8552 hardcode_direct=yes 8553 hardcode_shlibpath_var=no 8554 ;; 8555 8556 hpux9*) 8557 if test "$GCC" = yes; then 8558 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' 8559 else 8560 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' 8561 fi 8562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8563 hardcode_libdir_separator=: 8564 hardcode_direct=yes 8565 8566 # hardcode_minus_L: Not really in the search PATH, 8567 # but as the default location of the library. 8568 hardcode_minus_L=yes 8569 export_dynamic_flag_spec='${wl}-E' 8570 ;; 8571 8572 hpux10*) 8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8575 else 8576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8577 fi 8578 if test "$with_gnu_ld" = no; then 8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8580 hardcode_libdir_separator=: 8581 8582 hardcode_direct=yes 8583 export_dynamic_flag_spec='${wl}-E' 8584 8585 # hardcode_minus_L: Not really in the search PATH, 8586 # but as the default location of the library. 8587 hardcode_minus_L=yes 8588 fi 8589 ;; 8590 8591 hpux11*) 8592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8593 case $host_cpu in 8594 hppa*64*) 8595 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8596 ;; 8597 ia64*) 8598 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8599 ;; 8600 *) 8601 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8602 ;; 8603 esac 8604 else 8605 case $host_cpu in 8606 hppa*64*) 8607 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8608 ;; 8609 ia64*) 8610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8611 ;; 8612 *) 8613 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8614 ;; 8615 esac 8616 fi 8617 if test "$with_gnu_ld" = no; then 8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8619 hardcode_libdir_separator=: 8620 8621 case $host_cpu in 8622 hppa*64*|ia64*) 8623 hardcode_libdir_flag_spec_ld='+b $libdir' 8624 hardcode_direct=no 8625 hardcode_shlibpath_var=no 8626 ;; 8627 *) 8628 hardcode_direct=yes 8629 export_dynamic_flag_spec='${wl}-E' 8630 8631 # hardcode_minus_L: Not really in the search PATH, 8632 # but as the default location of the library. 8633 hardcode_minus_L=yes 8634 ;; 8635 esac 8636 fi 8637 ;; 8638 8639 irix5* | irix6* | nonstopux*) 8640 if test "$GCC" = yes; then 8641 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' 8642 else 8643 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' 8644 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8645 fi 8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8647 hardcode_libdir_separator=: 8648 link_all_deplibs=yes 8649 ;; 8650 8651 netbsd* | netbsdelf*-gnu) 8652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8654 else 8655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8656 fi 8657 hardcode_libdir_flag_spec='-R$libdir' 8658 hardcode_direct=yes 8659 hardcode_shlibpath_var=no 8660 ;; 8661 8662 newsos6) 8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8664 hardcode_direct=yes 8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8666 hardcode_libdir_separator=: 8667 hardcode_shlibpath_var=no 8668 ;; 8669 8670 openbsd*) 8671 hardcode_direct=yes 8672 hardcode_shlibpath_var=no 8673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8675 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8677 export_dynamic_flag_spec='${wl}-E' 8678 else 8679 case $host_os in 8680 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8682 hardcode_libdir_flag_spec='-R$libdir' 8683 ;; 8684 *) 8685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8687 ;; 8688 esac 8689 fi 8690 ;; 8691 8692 os2*) 8693 hardcode_libdir_flag_spec='-L$libdir' 8694 hardcode_minus_L=yes 8695 allow_undefined_flag=unsupported 8696 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' 8697 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8698 ;; 8699 8700 osf3*) 8701 if test "$GCC" = yes; then 8702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8703 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' 8704 else 8705 allow_undefined_flag=' -expect_unresolved \*' 8706 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' 8707 fi 8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8709 hardcode_libdir_separator=: 8710 ;; 8711 8712 osf4* | osf5*) # as osf3* with the addition of -msym flag 8713 if test "$GCC" = yes; then 8714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8715 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' 8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8717 else 8718 allow_undefined_flag=' -expect_unresolved \*' 8719 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' 8720 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8721 $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' 8722 8723 # Both c and cxx compiler support -rpath directly 8724 hardcode_libdir_flag_spec='-rpath $libdir' 8725 fi 8726 hardcode_libdir_separator=: 8727 ;; 8728 8729 solaris*) 8730 no_undefined_flag=' -z text' 8731 if test "$GCC" = yes; then 8732 wlarc='${wl}' 8733 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8734 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8736 else 8737 wlarc='' 8738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8741 fi 8742 hardcode_libdir_flag_spec='-R$libdir' 8743 hardcode_shlibpath_var=no 8744 case $host_os in 8745 solaris2.[0-5] | solaris2.[0-5].*) ;; 8746 *) 8747 # The compiler driver will combine linker options so we 8748 # cannot just pass the convience library names through 8749 # without $wl, iff we do not link with $LD. 8750 # Luckily, gcc supports the same syntax we need for Sun Studio. 8751 # Supported since Solaris 2.6 (maybe 2.5.1?) 8752 case $wlarc in 8753 '') 8754 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8755 *) 8756 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' ;; 8757 esac ;; 8758 esac 8759 link_all_deplibs=yes 8760 ;; 8761 8762 sunos4*) 8763 if test "x$host_vendor" = xsequent; then 8764 # Use $CC to link under sequent, because it throws in some extra .o 8765 # files that make .init and .fini sections work. 8766 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8767 else 8768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8769 fi 8770 hardcode_libdir_flag_spec='-L$libdir' 8771 hardcode_direct=yes 8772 hardcode_minus_L=yes 8773 hardcode_shlibpath_var=no 8774 ;; 8775 8776 sysv4) 8777 case $host_vendor in 8778 sni) 8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8780 hardcode_direct=yes # is this really true??? 8781 ;; 8782 siemens) 8783 ## LD is ld it makes a PLAMLIB 8784 ## CC just makes a GrossModule. 8785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8786 reload_cmds='$CC -r -o $output$reload_objs' 8787 hardcode_direct=no 8788 ;; 8789 motorola) 8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8792 ;; 8793 esac 8794 runpath_var='LD_RUN_PATH' 8795 hardcode_shlibpath_var=no 8796 ;; 8797 8798 sysv4.3*) 8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8800 hardcode_shlibpath_var=no 8801 export_dynamic_flag_spec='-Bexport' 8802 ;; 8803 8804 sysv4*MP*) 8805 if test -d /usr/nec; then 8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8807 hardcode_shlibpath_var=no 8808 runpath_var=LD_RUN_PATH 8809 hardcode_runpath_var=yes 8810 ld_shlibs=yes 8811 fi 8812 ;; 8813 8814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8815 no_undefined_flag='${wl}-z,text' 8816 archive_cmds_need_lc=no 8817 hardcode_shlibpath_var=no 8818 runpath_var='LD_RUN_PATH' 8819 8820 if test "$GCC" = yes; then 8821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8823 else 8824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8826 fi 8827 ;; 8828 8829 sysv5* | sco3.2v5* | sco5v6*) 8830 # Note: We can NOT use -z defs as we might desire, because we do not 8831 # link with -lc, and that would cause any symbols used from libc to 8832 # always be unresolved, which means just about no library would 8833 # ever link correctly. If we're not using GNU ld we use -z text 8834 # though, which does catch some bad symbols but isn't as heavy-handed 8835 # as -z defs. 8836 no_undefined_flag='${wl}-z,text' 8837 allow_undefined_flag='${wl}-z,nodefs' 8838 archive_cmds_need_lc=no 8839 hardcode_shlibpath_var=no 8840 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8841 hardcode_libdir_separator=':' 8842 link_all_deplibs=yes 8843 export_dynamic_flag_spec='${wl}-Bexport' 8844 runpath_var='LD_RUN_PATH' 8845 8846 if test "$GCC" = yes; then 8847 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8848 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8849 else 8850 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8851 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8852 fi 8853 ;; 8854 8855 uts4*) 8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8857 hardcode_libdir_flag_spec='-L$libdir' 8858 hardcode_shlibpath_var=no 8859 ;; 8860 8861 *) 8862 ld_shlibs=no 8863 ;; 8864 esac 8865 fi 8866 8867{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8868echo "${ECHO_T}$ld_shlibs" >&6; } 8869test "$ld_shlibs" = no && can_build_shared=no 8870 8871# 8872# Do we need to explicitly link libc? 8873# 8874case "x$archive_cmds_need_lc" in 8875x|xyes) 8876 # Assume -lc should be added 8877 archive_cmds_need_lc=yes 8878 8879 if test "$enable_shared" = yes && test "$GCC" = yes; then 8880 case $archive_cmds in 8881 *'~'*) 8882 # FIXME: we may have to deal with multi-command sequences. 8883 ;; 8884 '$CC '*) 8885 # Test whether the compiler implicitly links with -lc since on some 8886 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8887 # to ld, don't add -lc before -lgcc. 8888 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8889echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8890 $rm conftest* 8891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8892 8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8894 (eval $ac_compile) 2>&5 8895 ac_status=$? 8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 (exit $ac_status); } 2>conftest.err; then 8898 soname=conftest 8899 lib=conftest 8900 libobjs=conftest.$ac_objext 8901 deplibs= 8902 wl=$lt_prog_compiler_wl 8903 pic_flag=$lt_prog_compiler_pic 8904 compiler_flags=-v 8905 linker_flags=-v 8906 verstring= 8907 output_objdir=. 8908 libname=conftest 8909 lt_save_allow_undefined_flag=$allow_undefined_flag 8910 allow_undefined_flag= 8911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8912 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8913 ac_status=$? 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8915 (exit $ac_status); } 8916 then 8917 archive_cmds_need_lc=no 8918 else 8919 archive_cmds_need_lc=yes 8920 fi 8921 allow_undefined_flag=$lt_save_allow_undefined_flag 8922 else 8923 cat conftest.err 1>&5 8924 fi 8925 $rm conftest* 8926 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8927echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8928 ;; 8929 esac 8930 fi 8931 ;; 8932esac 8933 8934{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8935echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8936library_names_spec= 8937libname_spec='lib$name' 8938soname_spec= 8939shrext_cmds=".so" 8940postinstall_cmds= 8941postuninstall_cmds= 8942finish_cmds= 8943finish_eval= 8944shlibpath_var= 8945shlibpath_overrides_runpath=unknown 8946version_type=none 8947dynamic_linker="$host_os ld.so" 8948sys_lib_dlsearch_path_spec="/lib /usr/lib" 8949if test "$GCC" = yes; then 8950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8951 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8952 # if the path contains ";" then we assume it to be the separator 8953 # otherwise default to the standard path separator (i.e. ":") - it is 8954 # assumed that no part of a normal pathname contains ";" but that should 8955 # okay in the real world where ";" in dirpaths is itself problematic. 8956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8957 else 8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8959 fi 8960else 8961 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8962fi 8963need_lib_prefix=unknown 8964hardcode_into_libs=no 8965 8966# when you set need_version to no, make sure it does not cause -set_version 8967# flags to be left without arguments 8968need_version=unknown 8969 8970case $host_os in 8971aix3*) 8972 version_type=linux 8973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8974 shlibpath_var=LIBPATH 8975 8976 # AIX 3 has no versioning support, so we append a major version to the name. 8977 soname_spec='${libname}${release}${shared_ext}$major' 8978 ;; 8979 8980aix4* | aix5*) 8981 version_type=linux 8982 need_lib_prefix=no 8983 need_version=no 8984 hardcode_into_libs=yes 8985 if test "$host_cpu" = ia64; then 8986 # AIX 5 supports IA64 8987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8988 shlibpath_var=LD_LIBRARY_PATH 8989 else 8990 # With GCC up to 2.95.x, collect2 would create an import file 8991 # for dependence libraries. The import file would start with 8992 # the line `#! .'. This would cause the generated library to 8993 # depend on `.', always an invalid library. This was fixed in 8994 # development snapshots of GCC prior to 3.0. 8995 case $host_os in 8996 aix4 | aix4.[01] | aix4.[01].*) 8997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8998 echo ' yes ' 8999 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9000 : 9001 else 9002 can_build_shared=no 9003 fi 9004 ;; 9005 esac 9006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9007 # soname into executable. Probably we can add versioning support to 9008 # collect2, so additional links can be useful in future. 9009 if test "$aix_use_runtimelinking" = yes; then 9010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9011 # instead of lib<name>.a to let people know that these are not 9012 # typical AIX shared libraries. 9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9014 else 9015 # We preserve .a as extension for shared libraries through AIX4.2 9016 # and later when we are not doing run time linking. 9017 library_names_spec='${libname}${release}.a $libname.a' 9018 soname_spec='${libname}${release}${shared_ext}$major' 9019 fi 9020 shlibpath_var=LIBPATH 9021 fi 9022 ;; 9023 9024amigaos*) 9025 library_names_spec='$libname.ixlibrary $libname.a' 9026 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9027 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' 9028 ;; 9029 9030beos*) 9031 library_names_spec='${libname}${shared_ext}' 9032 dynamic_linker="$host_os ld.so" 9033 shlibpath_var=LIBRARY_PATH 9034 ;; 9035 9036bsdi[45]*) 9037 version_type=linux 9038 need_version=no 9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9040 soname_spec='${libname}${release}${shared_ext}$major' 9041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9042 shlibpath_var=LD_LIBRARY_PATH 9043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9045 # the default ld.so.conf also contains /usr/contrib/lib and 9046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9047 # libtool to hard-code these into programs 9048 ;; 9049 9050cygwin* | mingw* | pw32*) 9051 version_type=windows 9052 shrext_cmds=".dll" 9053 need_version=no 9054 need_lib_prefix=no 9055 9056 case $GCC,$host_os in 9057 yes,cygwin* | yes,mingw* | yes,pw32*) 9058 library_names_spec='$libname.dll.a' 9059 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9060 postinstall_cmds='base_file=`basename \${file}`~ 9061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9062 dldir=$destdir/`dirname \$dlpath`~ 9063 test -d \$dldir || mkdir -p \$dldir~ 9064 $install_prog $dir/$dlname \$dldir/$dlname~ 9065 chmod a+x \$dldir/$dlname' 9066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9067 dlpath=$dir/\$dldll~ 9068 $rm \$dlpath' 9069 shlibpath_overrides_runpath=yes 9070 9071 case $host_os in 9072 cygwin*) 9073 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9075 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9076 ;; 9077 mingw*) 9078 # MinGW DLLs use traditional 'lib' prefix 9079 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9081 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9082 # It is most probably a Windows format PATH printed by 9083 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9084 # path with ; separators, and with drive letters. We can handle the 9085 # drive letters (cygwin fileutils understands them), so leave them, 9086 # especially as we might pass files found there to a mingw objdump, 9087 # which wouldn't understand a cygwinified path. Ahh. 9088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9089 else 9090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9091 fi 9092 ;; 9093 pw32*) 9094 # pw32 DLLs use 'pw' prefix rather than 'lib' 9095 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9096 ;; 9097 esac 9098 ;; 9099 9100 *) 9101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9102 ;; 9103 esac 9104 dynamic_linker='Win32 ld.exe' 9105 # FIXME: first we should search . and the directory the executable is in 9106 shlibpath_var=PATH 9107 ;; 9108 9109darwin* | rhapsody*) 9110 dynamic_linker="$host_os dyld" 9111 version_type=darwin 9112 need_lib_prefix=no 9113 need_version=no 9114 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9115 soname_spec='${libname}${release}${major}$shared_ext' 9116 shlibpath_overrides_runpath=yes 9117 shlibpath_var=DYLD_LIBRARY_PATH 9118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9119 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9120 if test "$GCC" = yes; then 9121 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"` 9122 else 9123 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9124 fi 9125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9126 ;; 9127 9128dgux*) 9129 version_type=linux 9130 need_lib_prefix=no 9131 need_version=no 9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9133 soname_spec='${libname}${release}${shared_ext}$major' 9134 shlibpath_var=LD_LIBRARY_PATH 9135 ;; 9136 9137freebsd1*) 9138 dynamic_linker=no 9139 ;; 9140 9141freebsd* | dragonfly*) 9142 # DragonFly does not have aout. When/if they implement a new 9143 # versioning mechanism, adjust this. 9144 if test -x /usr/bin/objformat; then 9145 objformat=`/usr/bin/objformat` 9146 else 9147 case $host_os in 9148 freebsd[123]*) objformat=aout ;; 9149 *) objformat=elf ;; 9150 esac 9151 fi 9152 version_type=freebsd-$objformat 9153 case $version_type in 9154 freebsd-elf*) 9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9156 need_version=no 9157 need_lib_prefix=no 9158 ;; 9159 freebsd-*) 9160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9161 need_version=yes 9162 ;; 9163 esac 9164 shlibpath_var=LD_LIBRARY_PATH 9165 case $host_os in 9166 freebsd2*) 9167 shlibpath_overrides_runpath=yes 9168 ;; 9169 freebsd3.[01]* | freebsdelf3.[01]*) 9170 shlibpath_overrides_runpath=yes 9171 hardcode_into_libs=yes 9172 ;; 9173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9175 shlibpath_overrides_runpath=no 9176 hardcode_into_libs=yes 9177 ;; 9178 freebsd*) # from 4.6 on 9179 shlibpath_overrides_runpath=yes 9180 hardcode_into_libs=yes 9181 ;; 9182 esac 9183 ;; 9184 9185gnu*) 9186 version_type=linux 9187 need_lib_prefix=no 9188 need_version=no 9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9190 soname_spec='${libname}${release}${shared_ext}$major' 9191 shlibpath_var=LD_LIBRARY_PATH 9192 hardcode_into_libs=yes 9193 ;; 9194 9195hpux9* | hpux10* | hpux11*) 9196 # Give a soname corresponding to the major version so that dld.sl refuses to 9197 # link against other versions. 9198 version_type=sunos 9199 need_lib_prefix=no 9200 need_version=no 9201 case $host_cpu in 9202 ia64*) 9203 shrext_cmds='.so' 9204 hardcode_into_libs=yes 9205 dynamic_linker="$host_os dld.so" 9206 shlibpath_var=LD_LIBRARY_PATH 9207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9209 soname_spec='${libname}${release}${shared_ext}$major' 9210 if test "X$HPUX_IA64_MODE" = X32; then 9211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9212 else 9213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9214 fi 9215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9216 ;; 9217 hppa*64*) 9218 shrext_cmds='.sl' 9219 hardcode_into_libs=yes 9220 dynamic_linker="$host_os dld.sl" 9221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9224 soname_spec='${libname}${release}${shared_ext}$major' 9225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9227 ;; 9228 *) 9229 shrext_cmds='.sl' 9230 dynamic_linker="$host_os dld.sl" 9231 shlibpath_var=SHLIB_PATH 9232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 ;; 9236 esac 9237 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9238 postinstall_cmds='chmod 555 $lib' 9239 ;; 9240 9241interix3*) 9242 version_type=linux 9243 need_lib_prefix=no 9244 need_version=no 9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9246 soname_spec='${libname}${release}${shared_ext}$major' 9247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9248 shlibpath_var=LD_LIBRARY_PATH 9249 shlibpath_overrides_runpath=no 9250 hardcode_into_libs=yes 9251 ;; 9252 9253irix5* | irix6* | nonstopux*) 9254 case $host_os in 9255 nonstopux*) version_type=nonstopux ;; 9256 *) 9257 if test "$lt_cv_prog_gnu_ld" = yes; then 9258 version_type=linux 9259 else 9260 version_type=irix 9261 fi ;; 9262 esac 9263 need_lib_prefix=no 9264 need_version=no 9265 soname_spec='${libname}${release}${shared_ext}$major' 9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9267 case $host_os in 9268 irix5* | nonstopux*) 9269 libsuff= shlibsuff= 9270 ;; 9271 *) 9272 case $LD in # libtool.m4 will add one of these switches to LD 9273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9274 libsuff= shlibsuff= libmagic=32-bit;; 9275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9276 libsuff=32 shlibsuff=N32 libmagic=N32;; 9277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9278 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9279 *) libsuff= shlibsuff= libmagic=never-match;; 9280 esac 9281 ;; 9282 esac 9283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9284 shlibpath_overrides_runpath=no 9285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9287 hardcode_into_libs=yes 9288 ;; 9289 9290# No shared lib support for Linux oldld, aout, or coff. 9291linux*oldld* | linux*aout* | linux*coff*) 9292 dynamic_linker=no 9293 ;; 9294 9295# This must be Linux ELF. 9296linux* | k*bsd*-gnu) 9297 version_type=linux 9298 need_lib_prefix=no 9299 need_version=no 9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9301 soname_spec='${libname}${release}${shared_ext}$major' 9302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9303 shlibpath_var=LD_LIBRARY_PATH 9304 shlibpath_overrides_runpath=no 9305 # This implies no fast_install, which is unacceptable. 9306 # Some rework will be needed to allow for fast_install 9307 # before this can be enabled. 9308 hardcode_into_libs=yes 9309 9310 # Append ld.so.conf contents to the search path 9311 if test -f /etc/ld.so.conf; then 9312 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' ' '` 9313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9314 fi 9315 9316 # We used to test for /lib/ld.so.1 and disable shared libraries on 9317 # powerpc, because MkLinux only supported shared libraries with the 9318 # GNU dynamic linker. Since this was broken with cross compilers, 9319 # most powerpc-linux boxes support dynamic linking these days and 9320 # people can always --disable-shared, the test was removed, and we 9321 # assume the GNU/Linux dynamic linker is in use. 9322 dynamic_linker='GNU/Linux ld.so' 9323 ;; 9324 9325netbsdelf*-gnu) 9326 version_type=linux 9327 need_lib_prefix=no 9328 need_version=no 9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9330 soname_spec='${libname}${release}${shared_ext}$major' 9331 shlibpath_var=LD_LIBRARY_PATH 9332 shlibpath_overrides_runpath=no 9333 hardcode_into_libs=yes 9334 dynamic_linker='NetBSD ld.elf_so' 9335 ;; 9336 9337netbsd*) 9338 version_type=sunos 9339 need_lib_prefix=no 9340 need_version=no 9341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9344 dynamic_linker='NetBSD (a.out) ld.so' 9345 else 9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9347 soname_spec='${libname}${release}${shared_ext}$major' 9348 dynamic_linker='NetBSD ld.elf_so' 9349 fi 9350 shlibpath_var=LD_LIBRARY_PATH 9351 shlibpath_overrides_runpath=yes 9352 hardcode_into_libs=yes 9353 ;; 9354 9355newsos6) 9356 version_type=linux 9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9358 shlibpath_var=LD_LIBRARY_PATH 9359 shlibpath_overrides_runpath=yes 9360 ;; 9361 9362nto-qnx*) 9363 version_type=linux 9364 need_lib_prefix=no 9365 need_version=no 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9367 soname_spec='${libname}${release}${shared_ext}$major' 9368 shlibpath_var=LD_LIBRARY_PATH 9369 shlibpath_overrides_runpath=yes 9370 ;; 9371 9372openbsd*) 9373 version_type=sunos 9374 sys_lib_dlsearch_path_spec="/usr/lib" 9375 need_lib_prefix=no 9376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9377 case $host_os in 9378 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9379 *) need_version=no ;; 9380 esac 9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9383 shlibpath_var=LD_LIBRARY_PATH 9384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9385 case $host_os in 9386 openbsd2.[89] | openbsd2.[89].*) 9387 shlibpath_overrides_runpath=no 9388 ;; 9389 *) 9390 shlibpath_overrides_runpath=yes 9391 ;; 9392 esac 9393 else 9394 shlibpath_overrides_runpath=yes 9395 fi 9396 ;; 9397 9398os2*) 9399 libname_spec='$name' 9400 shrext_cmds=".dll" 9401 need_lib_prefix=no 9402 library_names_spec='$libname${shared_ext} $libname.a' 9403 dynamic_linker='OS/2 ld.exe' 9404 shlibpath_var=LIBPATH 9405 ;; 9406 9407osf3* | osf4* | osf5*) 9408 version_type=osf 9409 need_lib_prefix=no 9410 need_version=no 9411 soname_spec='${libname}${release}${shared_ext}$major' 9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9413 shlibpath_var=LD_LIBRARY_PATH 9414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9416 ;; 9417 9418solaris*) 9419 version_type=linux 9420 need_lib_prefix=no 9421 need_version=no 9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9423 soname_spec='${libname}${release}${shared_ext}$major' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 shlibpath_overrides_runpath=yes 9426 hardcode_into_libs=yes 9427 # ldd complains unless libraries are executable 9428 postinstall_cmds='chmod +x $lib' 9429 ;; 9430 9431sunos4*) 9432 version_type=sunos 9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9435 shlibpath_var=LD_LIBRARY_PATH 9436 shlibpath_overrides_runpath=yes 9437 if test "$with_gnu_ld" = yes; then 9438 need_lib_prefix=no 9439 fi 9440 need_version=yes 9441 ;; 9442 9443sysv4 | sysv4.3*) 9444 version_type=linux 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9446 soname_spec='${libname}${release}${shared_ext}$major' 9447 shlibpath_var=LD_LIBRARY_PATH 9448 case $host_vendor in 9449 sni) 9450 shlibpath_overrides_runpath=no 9451 need_lib_prefix=no 9452 export_dynamic_flag_spec='${wl}-Blargedynsym' 9453 runpath_var=LD_RUN_PATH 9454 ;; 9455 siemens) 9456 need_lib_prefix=no 9457 ;; 9458 motorola) 9459 need_lib_prefix=no 9460 need_version=no 9461 shlibpath_overrides_runpath=no 9462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9463 ;; 9464 esac 9465 ;; 9466 9467sysv4*MP*) 9468 if test -d /usr/nec ;then 9469 version_type=linux 9470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9471 soname_spec='$libname${shared_ext}.$major' 9472 shlibpath_var=LD_LIBRARY_PATH 9473 fi 9474 ;; 9475 9476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9477 version_type=freebsd-elf 9478 need_lib_prefix=no 9479 need_version=no 9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9481 soname_spec='${libname}${release}${shared_ext}$major' 9482 shlibpath_var=LD_LIBRARY_PATH 9483 hardcode_into_libs=yes 9484 if test "$with_gnu_ld" = yes; then 9485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9486 shlibpath_overrides_runpath=no 9487 else 9488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9489 shlibpath_overrides_runpath=yes 9490 case $host_os in 9491 sco3.2v5*) 9492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9493 ;; 9494 esac 9495 fi 9496 sys_lib_dlsearch_path_spec='/usr/lib' 9497 ;; 9498 9499uts4*) 9500 version_type=linux 9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9502 soname_spec='${libname}${release}${shared_ext}$major' 9503 shlibpath_var=LD_LIBRARY_PATH 9504 ;; 9505 9506*) 9507 dynamic_linker=no 9508 ;; 9509esac 9510{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9511echo "${ECHO_T}$dynamic_linker" >&6; } 9512test "$dynamic_linker" = no && can_build_shared=no 9513 9514variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9515if test "$GCC" = yes; then 9516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9517fi 9518 9519{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9520echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9521hardcode_action= 9522if test -n "$hardcode_libdir_flag_spec" || \ 9523 test -n "$runpath_var" || \ 9524 test "X$hardcode_automatic" = "Xyes" ; then 9525 9526 # We can hardcode non-existant directories. 9527 if test "$hardcode_direct" != no && 9528 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9529 # have to relink, otherwise we might link with an installed library 9530 # when we should be linking with a yet-to-be-installed one 9531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9532 test "$hardcode_minus_L" != no; then 9533 # Linking always hardcodes the temporary library directory. 9534 hardcode_action=relink 9535 else 9536 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9537 hardcode_action=immediate 9538 fi 9539else 9540 # We cannot hardcode anything, or else we can only hardcode existing 9541 # directories. 9542 hardcode_action=unsupported 9543fi 9544{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9545echo "${ECHO_T}$hardcode_action" >&6; } 9546 9547if test "$hardcode_action" = relink; then 9548 # Fast installation is not supported 9549 enable_fast_install=no 9550elif test "$shlibpath_overrides_runpath" = yes || 9551 test "$enable_shared" = no; then 9552 # Fast installation is not necessary 9553 enable_fast_install=needless 9554fi 9555 9556striplib= 9557old_striplib= 9558{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9559echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9560if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9562 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9563 { echo "$as_me:$LINENO: result: yes" >&5 9564echo "${ECHO_T}yes" >&6; } 9565else 9566# FIXME - insert some real tests, host_os isn't really good enough 9567 case $host_os in 9568 darwin*) 9569 if test -n "$STRIP" ; then 9570 striplib="$STRIP -x" 9571 { echo "$as_me:$LINENO: result: yes" >&5 9572echo "${ECHO_T}yes" >&6; } 9573 else 9574 { echo "$as_me:$LINENO: result: no" >&5 9575echo "${ECHO_T}no" >&6; } 9576fi 9577 ;; 9578 *) 9579 { echo "$as_me:$LINENO: result: no" >&5 9580echo "${ECHO_T}no" >&6; } 9581 ;; 9582 esac 9583fi 9584 9585if test "x$enable_dlopen" != xyes; then 9586 enable_dlopen=unknown 9587 enable_dlopen_self=unknown 9588 enable_dlopen_self_static=unknown 9589else 9590 lt_cv_dlopen=no 9591 lt_cv_dlopen_libs= 9592 9593 case $host_os in 9594 beos*) 9595 lt_cv_dlopen="load_add_on" 9596 lt_cv_dlopen_libs= 9597 lt_cv_dlopen_self=yes 9598 ;; 9599 9600 mingw* | pw32*) 9601 lt_cv_dlopen="LoadLibrary" 9602 lt_cv_dlopen_libs= 9603 ;; 9604 9605 cygwin*) 9606 lt_cv_dlopen="dlopen" 9607 lt_cv_dlopen_libs= 9608 ;; 9609 9610 darwin*) 9611 # if libdl is installed we need to link against it 9612 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9613echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9614if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9615 echo $ECHO_N "(cached) $ECHO_C" >&6 9616else 9617 ac_check_lib_save_LIBS=$LIBS 9618LIBS="-ldl $LIBS" 9619cat >conftest.$ac_ext <<_ACEOF 9620/* confdefs.h. */ 9621_ACEOF 9622cat confdefs.h >>conftest.$ac_ext 9623cat >>conftest.$ac_ext <<_ACEOF 9624/* end confdefs.h. */ 9625 9626/* Override any GCC internal prototype to avoid an error. 9627 Use char because int might match the return type of a GCC 9628 builtin and then its argument prototype would still apply. */ 9629#ifdef __cplusplus 9630extern "C" 9631#endif 9632char dlopen (); 9633int 9634main () 9635{ 9636return dlopen (); 9637 ; 9638 return 0; 9639} 9640_ACEOF 9641rm -f conftest.$ac_objext conftest$ac_exeext 9642if { (ac_try="$ac_link" 9643case "(($ac_try" in 9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9645 *) ac_try_echo=$ac_try;; 9646esac 9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9648 (eval "$ac_link") 2>conftest.er1 9649 ac_status=$? 9650 grep -v '^ *+' conftest.er1 >conftest.err 9651 rm -f conftest.er1 9652 cat conftest.err >&5 9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9654 (exit $ac_status); } && 9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9656 { (case "(($ac_try" in 9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9658 *) ac_try_echo=$ac_try;; 9659esac 9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9661 (eval "$ac_try") 2>&5 9662 ac_status=$? 9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9664 (exit $ac_status); }; } && 9665 { ac_try='test -s conftest$ac_exeext' 9666 { (case "(($ac_try" in 9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9668 *) ac_try_echo=$ac_try;; 9669esac 9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9671 (eval "$ac_try") 2>&5 9672 ac_status=$? 9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9674 (exit $ac_status); }; }; then 9675 ac_cv_lib_dl_dlopen=yes 9676else 9677 echo "$as_me: failed program was:" >&5 9678sed 's/^/| /' conftest.$ac_ext >&5 9679 9680 ac_cv_lib_dl_dlopen=no 9681fi 9682 9683rm -f conftest.err conftest.$ac_objext \ 9684 conftest$ac_exeext conftest.$ac_ext 9685LIBS=$ac_check_lib_save_LIBS 9686fi 9687{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9688echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9689if test $ac_cv_lib_dl_dlopen = yes; then 9690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9691else 9692 9693 lt_cv_dlopen="dyld" 9694 lt_cv_dlopen_libs= 9695 lt_cv_dlopen_self=yes 9696 9697fi 9698 9699 ;; 9700 9701 *) 9702 { echo "$as_me:$LINENO: checking for shl_load" >&5 9703echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9704if test "${ac_cv_func_shl_load+set}" = set; then 9705 echo $ECHO_N "(cached) $ECHO_C" >&6 9706else 9707 cat >conftest.$ac_ext <<_ACEOF 9708/* confdefs.h. */ 9709_ACEOF 9710cat confdefs.h >>conftest.$ac_ext 9711cat >>conftest.$ac_ext <<_ACEOF 9712/* end confdefs.h. */ 9713/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9714 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9715#define shl_load innocuous_shl_load 9716 9717/* System header to define __stub macros and hopefully few prototypes, 9718 which can conflict with char shl_load (); below. 9719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9720 <limits.h> exists even on freestanding compilers. */ 9721 9722#ifdef __STDC__ 9723# include <limits.h> 9724#else 9725# include <assert.h> 9726#endif 9727 9728#undef shl_load 9729 9730/* Override any GCC internal prototype to avoid an error. 9731 Use char because int might match the return type of a GCC 9732 builtin and then its argument prototype would still apply. */ 9733#ifdef __cplusplus 9734extern "C" 9735#endif 9736char shl_load (); 9737/* The GNU C library defines this for functions which it implements 9738 to always fail with ENOSYS. Some functions are actually named 9739 something starting with __ and the normal name is an alias. */ 9740#if defined __stub_shl_load || defined __stub___shl_load 9741choke me 9742#endif 9743 9744int 9745main () 9746{ 9747return shl_load (); 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752rm -f conftest.$ac_objext conftest$ac_exeext 9753if { (ac_try="$ac_link" 9754case "(($ac_try" in 9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9756 *) ac_try_echo=$ac_try;; 9757esac 9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9759 (eval "$ac_link") 2>conftest.er1 9760 ac_status=$? 9761 grep -v '^ *+' conftest.er1 >conftest.err 9762 rm -f conftest.er1 9763 cat conftest.err >&5 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); } && 9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9767 { (case "(($ac_try" in 9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9769 *) ac_try_echo=$ac_try;; 9770esac 9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9772 (eval "$ac_try") 2>&5 9773 ac_status=$? 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); }; } && 9776 { ac_try='test -s conftest$ac_exeext' 9777 { (case "(($ac_try" in 9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9779 *) ac_try_echo=$ac_try;; 9780esac 9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9782 (eval "$ac_try") 2>&5 9783 ac_status=$? 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 (exit $ac_status); }; }; then 9786 ac_cv_func_shl_load=yes 9787else 9788 echo "$as_me: failed program was:" >&5 9789sed 's/^/| /' conftest.$ac_ext >&5 9790 9791 ac_cv_func_shl_load=no 9792fi 9793 9794rm -f conftest.err conftest.$ac_objext \ 9795 conftest$ac_exeext conftest.$ac_ext 9796fi 9797{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9798echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9799if test $ac_cv_func_shl_load = yes; then 9800 lt_cv_dlopen="shl_load" 9801else 9802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9803echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9804if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9805 echo $ECHO_N "(cached) $ECHO_C" >&6 9806else 9807 ac_check_lib_save_LIBS=$LIBS 9808LIBS="-ldld $LIBS" 9809cat >conftest.$ac_ext <<_ACEOF 9810/* confdefs.h. */ 9811_ACEOF 9812cat confdefs.h >>conftest.$ac_ext 9813cat >>conftest.$ac_ext <<_ACEOF 9814/* end confdefs.h. */ 9815 9816/* Override any GCC internal prototype to avoid an error. 9817 Use char because int might match the return type of a GCC 9818 builtin and then its argument prototype would still apply. */ 9819#ifdef __cplusplus 9820extern "C" 9821#endif 9822char shl_load (); 9823int 9824main () 9825{ 9826return shl_load (); 9827 ; 9828 return 0; 9829} 9830_ACEOF 9831rm -f conftest.$ac_objext conftest$ac_exeext 9832if { (ac_try="$ac_link" 9833case "(($ac_try" in 9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9835 *) ac_try_echo=$ac_try;; 9836esac 9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9838 (eval "$ac_link") 2>conftest.er1 9839 ac_status=$? 9840 grep -v '^ *+' conftest.er1 >conftest.err 9841 rm -f conftest.er1 9842 cat conftest.err >&5 9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9844 (exit $ac_status); } && 9845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9846 { (case "(($ac_try" in 9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9848 *) ac_try_echo=$ac_try;; 9849esac 9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9851 (eval "$ac_try") 2>&5 9852 ac_status=$? 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); }; } && 9855 { ac_try='test -s conftest$ac_exeext' 9856 { (case "(($ac_try" in 9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9858 *) ac_try_echo=$ac_try;; 9859esac 9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9861 (eval "$ac_try") 2>&5 9862 ac_status=$? 9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9864 (exit $ac_status); }; }; then 9865 ac_cv_lib_dld_shl_load=yes 9866else 9867 echo "$as_me: failed program was:" >&5 9868sed 's/^/| /' conftest.$ac_ext >&5 9869 9870 ac_cv_lib_dld_shl_load=no 9871fi 9872 9873rm -f conftest.err conftest.$ac_objext \ 9874 conftest$ac_exeext conftest.$ac_ext 9875LIBS=$ac_check_lib_save_LIBS 9876fi 9877{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9878echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9879if test $ac_cv_lib_dld_shl_load = yes; then 9880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9881else 9882 { echo "$as_me:$LINENO: checking for dlopen" >&5 9883echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9884if test "${ac_cv_func_dlopen+set}" = set; then 9885 echo $ECHO_N "(cached) $ECHO_C" >&6 9886else 9887 cat >conftest.$ac_ext <<_ACEOF 9888/* confdefs.h. */ 9889_ACEOF 9890cat confdefs.h >>conftest.$ac_ext 9891cat >>conftest.$ac_ext <<_ACEOF 9892/* end confdefs.h. */ 9893/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9895#define dlopen innocuous_dlopen 9896 9897/* System header to define __stub macros and hopefully few prototypes, 9898 which can conflict with char dlopen (); below. 9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9900 <limits.h> exists even on freestanding compilers. */ 9901 9902#ifdef __STDC__ 9903# include <limits.h> 9904#else 9905# include <assert.h> 9906#endif 9907 9908#undef dlopen 9909 9910/* Override any GCC internal prototype to avoid an error. 9911 Use char because int might match the return type of a GCC 9912 builtin and then its argument prototype would still apply. */ 9913#ifdef __cplusplus 9914extern "C" 9915#endif 9916char dlopen (); 9917/* The GNU C library defines this for functions which it implements 9918 to always fail with ENOSYS. Some functions are actually named 9919 something starting with __ and the normal name is an alias. */ 9920#if defined __stub_dlopen || defined __stub___dlopen 9921choke me 9922#endif 9923 9924int 9925main () 9926{ 9927return dlopen (); 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932rm -f conftest.$ac_objext conftest$ac_exeext 9933if { (ac_try="$ac_link" 9934case "(($ac_try" in 9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9936 *) ac_try_echo=$ac_try;; 9937esac 9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9939 (eval "$ac_link") 2>conftest.er1 9940 ac_status=$? 9941 grep -v '^ *+' conftest.er1 >conftest.err 9942 rm -f conftest.er1 9943 cat conftest.err >&5 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && 9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9947 { (case "(($ac_try" in 9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9949 *) ac_try_echo=$ac_try;; 9950esac 9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9952 (eval "$ac_try") 2>&5 9953 ac_status=$? 9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9955 (exit $ac_status); }; } && 9956 { ac_try='test -s conftest$ac_exeext' 9957 { (case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960esac 9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_try") 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); }; }; then 9966 ac_cv_func_dlopen=yes 9967else 9968 echo "$as_me: failed program was:" >&5 9969sed 's/^/| /' conftest.$ac_ext >&5 9970 9971 ac_cv_func_dlopen=no 9972fi 9973 9974rm -f conftest.err conftest.$ac_objext \ 9975 conftest$ac_exeext conftest.$ac_ext 9976fi 9977{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9978echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9979if test $ac_cv_func_dlopen = yes; then 9980 lt_cv_dlopen="dlopen" 9981else 9982 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9984if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9985 echo $ECHO_N "(cached) $ECHO_C" >&6 9986else 9987 ac_check_lib_save_LIBS=$LIBS 9988LIBS="-ldl $LIBS" 9989cat >conftest.$ac_ext <<_ACEOF 9990/* confdefs.h. */ 9991_ACEOF 9992cat confdefs.h >>conftest.$ac_ext 9993cat >>conftest.$ac_ext <<_ACEOF 9994/* end confdefs.h. */ 9995 9996/* Override any GCC internal prototype to avoid an error. 9997 Use char because int might match the return type of a GCC 9998 builtin and then its argument prototype would still apply. */ 9999#ifdef __cplusplus 10000extern "C" 10001#endif 10002char dlopen (); 10003int 10004main () 10005{ 10006return dlopen (); 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011rm -f conftest.$ac_objext conftest$ac_exeext 10012if { (ac_try="$ac_link" 10013case "(($ac_try" in 10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10015 *) ac_try_echo=$ac_try;; 10016esac 10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10018 (eval "$ac_link") 2>conftest.er1 10019 ac_status=$? 10020 grep -v '^ *+' conftest.er1 >conftest.err 10021 rm -f conftest.er1 10022 cat conftest.err >&5 10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10024 (exit $ac_status); } && 10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10026 { (case "(($ac_try" in 10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10028 *) ac_try_echo=$ac_try;; 10029esac 10030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10031 (eval "$ac_try") 2>&5 10032 ac_status=$? 10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10034 (exit $ac_status); }; } && 10035 { ac_try='test -s conftest$ac_exeext' 10036 { (case "(($ac_try" in 10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10038 *) ac_try_echo=$ac_try;; 10039esac 10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10041 (eval "$ac_try") 2>&5 10042 ac_status=$? 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); }; }; then 10045 ac_cv_lib_dl_dlopen=yes 10046else 10047 echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050 ac_cv_lib_dl_dlopen=no 10051fi 10052 10053rm -f conftest.err conftest.$ac_objext \ 10054 conftest$ac_exeext conftest.$ac_ext 10055LIBS=$ac_check_lib_save_LIBS 10056fi 10057{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10058echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10059if test $ac_cv_lib_dl_dlopen = yes; then 10060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10061else 10062 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10063echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10064if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10065 echo $ECHO_N "(cached) $ECHO_C" >&6 10066else 10067 ac_check_lib_save_LIBS=$LIBS 10068LIBS="-lsvld $LIBS" 10069cat >conftest.$ac_ext <<_ACEOF 10070/* confdefs.h. */ 10071_ACEOF 10072cat confdefs.h >>conftest.$ac_ext 10073cat >>conftest.$ac_ext <<_ACEOF 10074/* end confdefs.h. */ 10075 10076/* Override any GCC internal prototype to avoid an error. 10077 Use char because int might match the return type of a GCC 10078 builtin and then its argument prototype would still apply. */ 10079#ifdef __cplusplus 10080extern "C" 10081#endif 10082char dlopen (); 10083int 10084main () 10085{ 10086return dlopen (); 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091rm -f conftest.$ac_objext conftest$ac_exeext 10092if { (ac_try="$ac_link" 10093case "(($ac_try" in 10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10095 *) ac_try_echo=$ac_try;; 10096esac 10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10098 (eval "$ac_link") 2>conftest.er1 10099 ac_status=$? 10100 grep -v '^ *+' conftest.er1 >conftest.err 10101 rm -f conftest.er1 10102 cat conftest.err >&5 10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10104 (exit $ac_status); } && 10105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10106 { (case "(($ac_try" in 10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10108 *) ac_try_echo=$ac_try;; 10109esac 10110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10111 (eval "$ac_try") 2>&5 10112 ac_status=$? 10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10114 (exit $ac_status); }; } && 10115 { ac_try='test -s conftest$ac_exeext' 10116 { (case "(($ac_try" in 10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10118 *) ac_try_echo=$ac_try;; 10119esac 10120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10121 (eval "$ac_try") 2>&5 10122 ac_status=$? 10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10124 (exit $ac_status); }; }; then 10125 ac_cv_lib_svld_dlopen=yes 10126else 10127 echo "$as_me: failed program was:" >&5 10128sed 's/^/| /' conftest.$ac_ext >&5 10129 10130 ac_cv_lib_svld_dlopen=no 10131fi 10132 10133rm -f conftest.err conftest.$ac_objext \ 10134 conftest$ac_exeext conftest.$ac_ext 10135LIBS=$ac_check_lib_save_LIBS 10136fi 10137{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10138echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10139if test $ac_cv_lib_svld_dlopen = yes; then 10140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10141else 10142 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10143echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10144if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10145 echo $ECHO_N "(cached) $ECHO_C" >&6 10146else 10147 ac_check_lib_save_LIBS=$LIBS 10148LIBS="-ldld $LIBS" 10149cat >conftest.$ac_ext <<_ACEOF 10150/* confdefs.h. */ 10151_ACEOF 10152cat confdefs.h >>conftest.$ac_ext 10153cat >>conftest.$ac_ext <<_ACEOF 10154/* end confdefs.h. */ 10155 10156/* Override any GCC internal prototype to avoid an error. 10157 Use char because int might match the return type of a GCC 10158 builtin and then its argument prototype would still apply. */ 10159#ifdef __cplusplus 10160extern "C" 10161#endif 10162char dld_link (); 10163int 10164main () 10165{ 10166return dld_link (); 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171rm -f conftest.$ac_objext conftest$ac_exeext 10172if { (ac_try="$ac_link" 10173case "(($ac_try" in 10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10175 *) ac_try_echo=$ac_try;; 10176esac 10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10178 (eval "$ac_link") 2>conftest.er1 10179 ac_status=$? 10180 grep -v '^ *+' conftest.er1 >conftest.err 10181 rm -f conftest.er1 10182 cat conftest.err >&5 10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10184 (exit $ac_status); } && 10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10186 { (case "(($ac_try" in 10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10188 *) ac_try_echo=$ac_try;; 10189esac 10190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10191 (eval "$ac_try") 2>&5 10192 ac_status=$? 10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); }; } && 10195 { ac_try='test -s conftest$ac_exeext' 10196 { (case "(($ac_try" in 10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10198 *) ac_try_echo=$ac_try;; 10199esac 10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10201 (eval "$ac_try") 2>&5 10202 ac_status=$? 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10204 (exit $ac_status); }; }; then 10205 ac_cv_lib_dld_dld_link=yes 10206else 10207 echo "$as_me: failed program was:" >&5 10208sed 's/^/| /' conftest.$ac_ext >&5 10209 10210 ac_cv_lib_dld_dld_link=no 10211fi 10212 10213rm -f conftest.err conftest.$ac_objext \ 10214 conftest$ac_exeext conftest.$ac_ext 10215LIBS=$ac_check_lib_save_LIBS 10216fi 10217{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10218echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10219if test $ac_cv_lib_dld_dld_link = yes; then 10220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10221fi 10222 10223 10224fi 10225 10226 10227fi 10228 10229 10230fi 10231 10232 10233fi 10234 10235 10236fi 10237 10238 ;; 10239 esac 10240 10241 if test "x$lt_cv_dlopen" != xno; then 10242 enable_dlopen=yes 10243 else 10244 enable_dlopen=no 10245 fi 10246 10247 case $lt_cv_dlopen in 10248 dlopen) 10249 save_CPPFLAGS="$CPPFLAGS" 10250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10251 10252 save_LDFLAGS="$LDFLAGS" 10253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10254 10255 save_LIBS="$LIBS" 10256 LIBS="$lt_cv_dlopen_libs $LIBS" 10257 10258 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10259echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10260if test "${lt_cv_dlopen_self+set}" = set; then 10261 echo $ECHO_N "(cached) $ECHO_C" >&6 10262else 10263 if test "$cross_compiling" = yes; then : 10264 lt_cv_dlopen_self=cross 10265else 10266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10267 lt_status=$lt_dlunknown 10268 cat > conftest.$ac_ext <<EOF 10269#line 10269 "configure" 10270#include "confdefs.h" 10271 10272#if HAVE_DLFCN_H 10273#include <dlfcn.h> 10274#endif 10275 10276#include <stdio.h> 10277 10278#ifdef RTLD_GLOBAL 10279# define LT_DLGLOBAL RTLD_GLOBAL 10280#else 10281# ifdef DL_GLOBAL 10282# define LT_DLGLOBAL DL_GLOBAL 10283# else 10284# define LT_DLGLOBAL 0 10285# endif 10286#endif 10287 10288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10289 find out it does not work in some platform. */ 10290#ifndef LT_DLLAZY_OR_NOW 10291# ifdef RTLD_LAZY 10292# define LT_DLLAZY_OR_NOW RTLD_LAZY 10293# else 10294# ifdef DL_LAZY 10295# define LT_DLLAZY_OR_NOW DL_LAZY 10296# else 10297# ifdef RTLD_NOW 10298# define LT_DLLAZY_OR_NOW RTLD_NOW 10299# else 10300# ifdef DL_NOW 10301# define LT_DLLAZY_OR_NOW DL_NOW 10302# else 10303# define LT_DLLAZY_OR_NOW 0 10304# endif 10305# endif 10306# endif 10307# endif 10308#endif 10309 10310#ifdef __cplusplus 10311extern "C" void exit (int); 10312#endif 10313 10314void fnord() { int i=42;} 10315int main () 10316{ 10317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10318 int status = $lt_dlunknown; 10319 10320 if (self) 10321 { 10322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10324 /* dlclose (self); */ 10325 } 10326 else 10327 puts (dlerror ()); 10328 10329 exit (status); 10330} 10331EOF 10332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10333 (eval $ac_link) 2>&5 10334 ac_status=$? 10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10336 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10337 (./conftest; exit; ) >&5 2>/dev/null 10338 lt_status=$? 10339 case x$lt_status in 10340 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10341 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10342 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10343 esac 10344 else : 10345 # compilation failed 10346 lt_cv_dlopen_self=no 10347 fi 10348fi 10349rm -fr conftest* 10350 10351 10352fi 10353{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10354echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10355 10356 if test "x$lt_cv_dlopen_self" = xyes; then 10357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10358 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10359echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10360if test "${lt_cv_dlopen_self_static+set}" = set; then 10361 echo $ECHO_N "(cached) $ECHO_C" >&6 10362else 10363 if test "$cross_compiling" = yes; then : 10364 lt_cv_dlopen_self_static=cross 10365else 10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10367 lt_status=$lt_dlunknown 10368 cat > conftest.$ac_ext <<EOF 10369#line 10369 "configure" 10370#include "confdefs.h" 10371 10372#if HAVE_DLFCN_H 10373#include <dlfcn.h> 10374#endif 10375 10376#include <stdio.h> 10377 10378#ifdef RTLD_GLOBAL 10379# define LT_DLGLOBAL RTLD_GLOBAL 10380#else 10381# ifdef DL_GLOBAL 10382# define LT_DLGLOBAL DL_GLOBAL 10383# else 10384# define LT_DLGLOBAL 0 10385# endif 10386#endif 10387 10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10389 find out it does not work in some platform. */ 10390#ifndef LT_DLLAZY_OR_NOW 10391# ifdef RTLD_LAZY 10392# define LT_DLLAZY_OR_NOW RTLD_LAZY 10393# else 10394# ifdef DL_LAZY 10395# define LT_DLLAZY_OR_NOW DL_LAZY 10396# else 10397# ifdef RTLD_NOW 10398# define LT_DLLAZY_OR_NOW RTLD_NOW 10399# else 10400# ifdef DL_NOW 10401# define LT_DLLAZY_OR_NOW DL_NOW 10402# else 10403# define LT_DLLAZY_OR_NOW 0 10404# endif 10405# endif 10406# endif 10407# endif 10408#endif 10409 10410#ifdef __cplusplus 10411extern "C" void exit (int); 10412#endif 10413 10414void fnord() { int i=42;} 10415int main () 10416{ 10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10418 int status = $lt_dlunknown; 10419 10420 if (self) 10421 { 10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10424 /* dlclose (self); */ 10425 } 10426 else 10427 puts (dlerror ()); 10428 10429 exit (status); 10430} 10431EOF 10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10433 (eval $ac_link) 2>&5 10434 ac_status=$? 10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10437 (./conftest; exit; ) >&5 2>/dev/null 10438 lt_status=$? 10439 case x$lt_status in 10440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10442 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10443 esac 10444 else : 10445 # compilation failed 10446 lt_cv_dlopen_self_static=no 10447 fi 10448fi 10449rm -fr conftest* 10450 10451 10452fi 10453{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10454echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10455 fi 10456 10457 CPPFLAGS="$save_CPPFLAGS" 10458 LDFLAGS="$save_LDFLAGS" 10459 LIBS="$save_LIBS" 10460 ;; 10461 esac 10462 10463 case $lt_cv_dlopen_self in 10464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10465 *) enable_dlopen_self=unknown ;; 10466 esac 10467 10468 case $lt_cv_dlopen_self_static in 10469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10470 *) enable_dlopen_self_static=unknown ;; 10471 esac 10472fi 10473 10474 10475# Report which library types will actually be built 10476{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10477echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10478{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10479echo "${ECHO_T}$can_build_shared" >&6; } 10480 10481{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10482echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10483test "$can_build_shared" = "no" && enable_shared=no 10484 10485# On AIX, shared libraries and static libraries use the same namespace, and 10486# are all built from PIC. 10487case $host_os in 10488aix3*) 10489 test "$enable_shared" = yes && enable_static=no 10490 if test -n "$RANLIB"; then 10491 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10492 postinstall_cmds='$RANLIB $lib' 10493 fi 10494 ;; 10495 10496aix4* | aix5*) 10497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10498 test "$enable_shared" = yes && enable_static=no 10499 fi 10500 ;; 10501esac 10502{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10503echo "${ECHO_T}$enable_shared" >&6; } 10504 10505{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10506echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10507# Make sure either enable_shared or enable_static is yes. 10508test "$enable_shared" = yes || enable_static=yes 10509{ echo "$as_me:$LINENO: result: $enable_static" >&5 10510echo "${ECHO_T}$enable_static" >&6; } 10511 10512# The else clause should only fire when bootstrapping the 10513# libtool distribution, otherwise you forgot to ship ltmain.sh 10514# with your package, and you will get complaints that there are 10515# no rules to generate ltmain.sh. 10516if test -f "$ltmain"; then 10517 # See if we are running on zsh, and set the options which allow our commands through 10518 # without removal of \ escapes. 10519 if test -n "${ZSH_VERSION+set}" ; then 10520 setopt NO_GLOB_SUBST 10521 fi 10522 # Now quote all the things that may contain metacharacters while being 10523 # careful not to overquote the AC_SUBSTed values. We take copies of the 10524 # variables and quote the copies for generation of the libtool script. 10525 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10526 SED SHELL STRIP \ 10527 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10528 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10529 deplibs_check_method reload_flag reload_cmds need_locks \ 10530 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10531 lt_cv_sys_global_symbol_to_c_name_address \ 10532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10533 old_postinstall_cmds old_postuninstall_cmds \ 10534 compiler \ 10535 CC \ 10536 LD \ 10537 lt_prog_compiler_wl \ 10538 lt_prog_compiler_pic \ 10539 lt_prog_compiler_static \ 10540 lt_prog_compiler_no_builtin_flag \ 10541 export_dynamic_flag_spec \ 10542 thread_safe_flag_spec \ 10543 whole_archive_flag_spec \ 10544 enable_shared_with_static_runtimes \ 10545 old_archive_cmds \ 10546 old_archive_from_new_cmds \ 10547 predep_objects \ 10548 postdep_objects \ 10549 predeps \ 10550 postdeps \ 10551 compiler_lib_search_path \ 10552 archive_cmds \ 10553 archive_expsym_cmds \ 10554 postinstall_cmds \ 10555 postuninstall_cmds \ 10556 old_archive_from_expsyms_cmds \ 10557 allow_undefined_flag \ 10558 no_undefined_flag \ 10559 export_symbols_cmds \ 10560 hardcode_libdir_flag_spec \ 10561 hardcode_libdir_flag_spec_ld \ 10562 hardcode_libdir_separator \ 10563 hardcode_automatic \ 10564 module_cmds \ 10565 module_expsym_cmds \ 10566 lt_cv_prog_compiler_c_o \ 10567 exclude_expsyms \ 10568 include_expsyms; do 10569 10570 case $var in 10571 old_archive_cmds | \ 10572 old_archive_from_new_cmds | \ 10573 archive_cmds | \ 10574 archive_expsym_cmds | \ 10575 module_cmds | \ 10576 module_expsym_cmds | \ 10577 old_archive_from_expsyms_cmds | \ 10578 export_symbols_cmds | \ 10579 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10580 postinstall_cmds | postuninstall_cmds | \ 10581 old_postinstall_cmds | old_postuninstall_cmds | \ 10582 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10583 # Double-quote double-evaled strings. 10584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10585 ;; 10586 *) 10587 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10588 ;; 10589 esac 10590 done 10591 10592 case $lt_echo in 10593 *'\$0 --fallback-echo"') 10594 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10595 ;; 10596 esac 10597 10598cfgfile="${ofile}T" 10599 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10600 $rm -f "$cfgfile" 10601 { echo "$as_me:$LINENO: creating $ofile" >&5 10602echo "$as_me: creating $ofile" >&6;} 10603 10604 cat <<__EOF__ >> "$cfgfile" 10605#! $SHELL 10606 10607# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10608# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10609# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10610# 10611# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10612# Free Software Foundation, Inc. 10613# 10614# This file is part of GNU Libtool: 10615# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10616# 10617# This program is free software; you can redistribute it and/or modify 10618# it under the terms of the GNU General Public License as published by 10619# the Free Software Foundation; either version 2 of the License, or 10620# (at your option) any later version. 10621# 10622# This program is distributed in the hope that it will be useful, but 10623# WITHOUT ANY WARRANTY; without even the implied warranty of 10624# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10625# General Public License for more details. 10626# 10627# You should have received a copy of the GNU General Public License 10628# along with this program; if not, write to the Free Software 10629# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10630# 10631# As a special exception to the GNU General Public License, if you 10632# distribute this file as part of a program that contains a 10633# configuration script generated by Autoconf, you may include it under 10634# the same distribution terms that you use for the rest of that program. 10635 10636# A sed program that does not truncate output. 10637SED=$lt_SED 10638 10639# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10640Xsed="$SED -e 1s/^X//" 10641 10642# The HP-UX ksh and POSIX shell print the target directory to stdout 10643# if CDPATH is set. 10644(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10645 10646# The names of the tagged configurations supported by this script. 10647available_tags= 10648 10649# ### BEGIN LIBTOOL CONFIG 10650 10651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10652 10653# Shell to use when invoking shell scripts. 10654SHELL=$lt_SHELL 10655 10656# Whether or not to build shared libraries. 10657build_libtool_libs=$enable_shared 10658 10659# Whether or not to build static libraries. 10660build_old_libs=$enable_static 10661 10662# Whether or not to add -lc for building shared libraries. 10663build_libtool_need_lc=$archive_cmds_need_lc 10664 10665# Whether or not to disallow shared libs when runtime libs are static 10666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10667 10668# Whether or not to optimize for fast installation. 10669fast_install=$enable_fast_install 10670 10671# The host system. 10672host_alias=$host_alias 10673host=$host 10674host_os=$host_os 10675 10676# The build system. 10677build_alias=$build_alias 10678build=$build 10679build_os=$build_os 10680 10681# An echo program that does not interpret backslashes. 10682echo=$lt_echo 10683 10684# The archiver. 10685AR=$lt_AR 10686AR_FLAGS=$lt_AR_FLAGS 10687 10688# A C compiler. 10689LTCC=$lt_LTCC 10690 10691# LTCC compiler flags. 10692LTCFLAGS=$lt_LTCFLAGS 10693 10694# A language-specific compiler. 10695CC=$lt_compiler 10696 10697# Is the compiler the GNU C compiler? 10698with_gcc=$GCC 10699 10700# An ERE matcher. 10701EGREP=$lt_EGREP 10702 10703# The linker used to build libraries. 10704LD=$lt_LD 10705 10706# Whether we need hard or soft links. 10707LN_S=$lt_LN_S 10708 10709# A BSD-compatible nm program. 10710NM=$lt_NM 10711 10712# A symbol stripping program 10713STRIP=$lt_STRIP 10714 10715# Used to examine libraries when file_magic_cmd begins "file" 10716MAGIC_CMD=$MAGIC_CMD 10717 10718# Used on cygwin: DLL creation program. 10719DLLTOOL="$DLLTOOL" 10720 10721# Used on cygwin: object dumper. 10722OBJDUMP="$OBJDUMP" 10723 10724# Used on cygwin: assembler. 10725AS="$AS" 10726 10727# The name of the directory that contains temporary libtool files. 10728objdir=$objdir 10729 10730# How to create reloadable object files. 10731reload_flag=$lt_reload_flag 10732reload_cmds=$lt_reload_cmds 10733 10734# How to pass a linker flag through the compiler. 10735wl=$lt_lt_prog_compiler_wl 10736 10737# Object file suffix (normally "o"). 10738objext="$ac_objext" 10739 10740# Old archive suffix (normally "a"). 10741libext="$libext" 10742 10743# Shared library suffix (normally ".so"). 10744shrext_cmds='$shrext_cmds' 10745 10746# Executable file suffix (normally ""). 10747exeext="$exeext" 10748 10749# Additional compiler flags for building library objects. 10750pic_flag=$lt_lt_prog_compiler_pic 10751pic_mode=$pic_mode 10752 10753# What is the maximum length of a command? 10754max_cmd_len=$lt_cv_sys_max_cmd_len 10755 10756# Does compiler simultaneously support -c and -o options? 10757compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10758 10759# Must we lock files when doing compilation? 10760need_locks=$lt_need_locks 10761 10762# Do we need the lib prefix for modules? 10763need_lib_prefix=$need_lib_prefix 10764 10765# Do we need a version for libraries? 10766need_version=$need_version 10767 10768# Whether dlopen is supported. 10769dlopen_support=$enable_dlopen 10770 10771# Whether dlopen of programs is supported. 10772dlopen_self=$enable_dlopen_self 10773 10774# Whether dlopen of statically linked programs is supported. 10775dlopen_self_static=$enable_dlopen_self_static 10776 10777# Compiler flag to prevent dynamic linking. 10778link_static_flag=$lt_lt_prog_compiler_static 10779 10780# Compiler flag to turn off builtin functions. 10781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10782 10783# Compiler flag to allow reflexive dlopens. 10784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10785 10786# Compiler flag to generate shared objects directly from archives. 10787whole_archive_flag_spec=$lt_whole_archive_flag_spec 10788 10789# Compiler flag to generate thread-safe objects. 10790thread_safe_flag_spec=$lt_thread_safe_flag_spec 10791 10792# Library versioning type. 10793version_type=$version_type 10794 10795# Format of library name prefix. 10796libname_spec=$lt_libname_spec 10797 10798# List of archive names. First name is the real one, the rest are links. 10799# The last name is the one that the linker finds with -lNAME. 10800library_names_spec=$lt_library_names_spec 10801 10802# The coded name of the library, if different from the real name. 10803soname_spec=$lt_soname_spec 10804 10805# Commands used to build and install an old-style archive. 10806RANLIB=$lt_RANLIB 10807old_archive_cmds=$lt_old_archive_cmds 10808old_postinstall_cmds=$lt_old_postinstall_cmds 10809old_postuninstall_cmds=$lt_old_postuninstall_cmds 10810 10811# Create an old-style archive from a shared archive. 10812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10813 10814# Create a temporary old-style archive to link instead of a shared archive. 10815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10816 10817# Commands used to build and install a shared archive. 10818archive_cmds=$lt_archive_cmds 10819archive_expsym_cmds=$lt_archive_expsym_cmds 10820postinstall_cmds=$lt_postinstall_cmds 10821postuninstall_cmds=$lt_postuninstall_cmds 10822 10823# Commands used to build a loadable module (assumed same as above if empty) 10824module_cmds=$lt_module_cmds 10825module_expsym_cmds=$lt_module_expsym_cmds 10826 10827# Commands to strip libraries. 10828old_striplib=$lt_old_striplib 10829striplib=$lt_striplib 10830 10831# Dependencies to place before the objects being linked to create a 10832# shared library. 10833predep_objects=$lt_predep_objects 10834 10835# Dependencies to place after the objects being linked to create a 10836# shared library. 10837postdep_objects=$lt_postdep_objects 10838 10839# Dependencies to place before the objects being linked to create a 10840# shared library. 10841predeps=$lt_predeps 10842 10843# Dependencies to place after the objects being linked to create a 10844# shared library. 10845postdeps=$lt_postdeps 10846 10847# The library search path used internally by the compiler when linking 10848# a shared library. 10849compiler_lib_search_path=$lt_compiler_lib_search_path 10850 10851# Method to check whether dependent libraries are shared objects. 10852deplibs_check_method=$lt_deplibs_check_method 10853 10854# Command to use when deplibs_check_method == file_magic. 10855file_magic_cmd=$lt_file_magic_cmd 10856 10857# Flag that allows shared libraries with undefined symbols to be built. 10858allow_undefined_flag=$lt_allow_undefined_flag 10859 10860# Flag that forces no undefined symbols. 10861no_undefined_flag=$lt_no_undefined_flag 10862 10863# Commands used to finish a libtool library installation in a directory. 10864finish_cmds=$lt_finish_cmds 10865 10866# Same as above, but a single script fragment to be evaled but not shown. 10867finish_eval=$lt_finish_eval 10868 10869# Take the output of nm and produce a listing of raw symbols and C names. 10870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10871 10872# Transform the output of nm in a proper C declaration 10873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10874 10875# Transform the output of nm in a C name address pair 10876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10877 10878# This is the shared library runtime path variable. 10879runpath_var=$runpath_var 10880 10881# This is the shared library path variable. 10882shlibpath_var=$shlibpath_var 10883 10884# Is shlibpath searched before the hard-coded library search path? 10885shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10886 10887# How to hardcode a shared library path into an executable. 10888hardcode_action=$hardcode_action 10889 10890# Whether we should hardcode library paths into libraries. 10891hardcode_into_libs=$hardcode_into_libs 10892 10893# Flag to hardcode \$libdir into a binary during linking. 10894# This must work even if \$libdir does not exist. 10895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10896 10897# If ld is used when linking, flag to hardcode \$libdir into 10898# a binary during linking. This must work even if \$libdir does 10899# not exist. 10900hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10901 10902# Whether we need a single -rpath flag with a separated argument. 10903hardcode_libdir_separator=$lt_hardcode_libdir_separator 10904 10905# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10906# resulting binary. 10907hardcode_direct=$hardcode_direct 10908 10909# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10910# resulting binary. 10911hardcode_minus_L=$hardcode_minus_L 10912 10913# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10914# the resulting binary. 10915hardcode_shlibpath_var=$hardcode_shlibpath_var 10916 10917# Set to yes if building a shared library automatically hardcodes DIR into the library 10918# and all subsequent libraries and executables linked against it. 10919hardcode_automatic=$hardcode_automatic 10920 10921# Variables whose values should be saved in libtool wrapper scripts and 10922# restored at relink time. 10923variables_saved_for_relink="$variables_saved_for_relink" 10924 10925# Whether libtool must link a program against all its dependency libraries. 10926link_all_deplibs=$link_all_deplibs 10927 10928# Compile-time system search path for libraries 10929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10930 10931# Run-time system search path for libraries 10932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10933 10934# Fix the shell variable \$srcfile for the compiler. 10935fix_srcfile_path="$fix_srcfile_path" 10936 10937# Set to yes if exported symbols are required. 10938always_export_symbols=$always_export_symbols 10939 10940# The commands to list exported symbols. 10941export_symbols_cmds=$lt_export_symbols_cmds 10942 10943# The commands to extract the exported symbol list from a shared archive. 10944extract_expsyms_cmds=$lt_extract_expsyms_cmds 10945 10946# Symbols that should not be listed in the preloaded symbols. 10947exclude_expsyms=$lt_exclude_expsyms 10948 10949# Symbols that must always be exported. 10950include_expsyms=$lt_include_expsyms 10951 10952# ### END LIBTOOL CONFIG 10953 10954__EOF__ 10955 10956 10957 case $host_os in 10958 aix3*) 10959 cat <<\EOF >> "$cfgfile" 10960 10961# AIX sometimes has problems with the GCC collect2 program. For some 10962# reason, if we set the COLLECT_NAMES environment variable, the problems 10963# vanish in a puff of smoke. 10964if test "X${COLLECT_NAMES+set}" != Xset; then 10965 COLLECT_NAMES= 10966 export COLLECT_NAMES 10967fi 10968EOF 10969 ;; 10970 esac 10971 10972 # We use sed instead of cat because bash on DJGPP gets confused if 10973 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10974 # text mode, it properly converts lines to CR/LF. This bash problem 10975 # is reportedly fixed, but why not run on old versions too? 10976 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10977 10978 mv -f "$cfgfile" "$ofile" || \ 10979 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10980 chmod +x "$ofile" 10981 10982else 10983 # If there is no Makefile yet, we rely on a make rule to execute 10984 # `config.status --recheck' to rerun these tests and create the 10985 # libtool script then. 10986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10987 if test -f "$ltmain_in"; then 10988 test -f Makefile && make "$ltmain" 10989 fi 10990fi 10991 10992 10993ac_ext=c 10994ac_cpp='$CPP $CPPFLAGS' 10995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10997ac_compiler_gnu=$ac_cv_c_compiler_gnu 10998 10999CC="$lt_save_CC" 11000 11001 11002# Check whether --with-tags was given. 11003if test "${with_tags+set}" = set; then 11004 withval=$with_tags; tagnames="$withval" 11005fi 11006 11007 11008if test -f "$ltmain" && test -n "$tagnames"; then 11009 if test ! -f "${ofile}"; then 11010 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11011echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11012 fi 11013 11014 if test -z "$LTCC"; then 11015 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11016 if test -z "$LTCC"; then 11017 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11018echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11019 else 11020 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11021echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11022 fi 11023 fi 11024 if test -z "$LTCFLAGS"; then 11025 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11026 fi 11027 11028 # Extract list of available tagged configurations in $ofile. 11029 # Note that this assumes the entire list is on one line. 11030 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11031 11032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11033 for tagname in $tagnames; do 11034 IFS="$lt_save_ifs" 11035 # Check whether tagname contains only valid characters 11036 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11037 "") ;; 11038 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11039echo "$as_me: error: invalid tag name: $tagname" >&2;} 11040 { (exit 1); exit 1; }; } 11041 ;; 11042 esac 11043 11044 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11045 then 11046 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11047echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11048 { (exit 1); exit 1; }; } 11049 fi 11050 11051 # Update the list of available tags. 11052 if test -n "$tagname"; then 11053 echo appending configuration tag \"$tagname\" to $ofile 11054 11055 case $tagname in 11056 CXX) 11057 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11058 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11059 (test "X$CXX" != "Xg++"))) ; then 11060 ac_ext=cpp 11061ac_cpp='$CXXCPP $CPPFLAGS' 11062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11065 11066 11067 11068 11069archive_cmds_need_lc_CXX=no 11070allow_undefined_flag_CXX= 11071always_export_symbols_CXX=no 11072archive_expsym_cmds_CXX= 11073export_dynamic_flag_spec_CXX= 11074hardcode_direct_CXX=no 11075hardcode_libdir_flag_spec_CXX= 11076hardcode_libdir_flag_spec_ld_CXX= 11077hardcode_libdir_separator_CXX= 11078hardcode_minus_L_CXX=no 11079hardcode_shlibpath_var_CXX=unsupported 11080hardcode_automatic_CXX=no 11081module_cmds_CXX= 11082module_expsym_cmds_CXX= 11083link_all_deplibs_CXX=unknown 11084old_archive_cmds_CXX=$old_archive_cmds 11085no_undefined_flag_CXX= 11086whole_archive_flag_spec_CXX= 11087enable_shared_with_static_runtimes_CXX=no 11088 11089# Dependencies to place before and after the object being linked: 11090predep_objects_CXX= 11091postdep_objects_CXX= 11092predeps_CXX= 11093postdeps_CXX= 11094compiler_lib_search_path_CXX= 11095 11096# Source file extension for C++ test sources. 11097ac_ext=cpp 11098 11099# Object file extension for compiled C++ test sources. 11100objext=o 11101objext_CXX=$objext 11102 11103# Code to be used in simple compile tests 11104lt_simple_compile_test_code="int some_variable = 0;\n" 11105 11106# Code to be used in simple link tests 11107lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11108 11109# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11110 11111# If no C compiler was specified, use CC. 11112LTCC=${LTCC-"$CC"} 11113 11114# If no C compiler flags were specified, use CFLAGS. 11115LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11116 11117# Allow CC to be a program name with arguments. 11118compiler=$CC 11119 11120 11121# save warnings/boilerplate of simple test code 11122ac_outfile=conftest.$ac_objext 11123printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11125_lt_compiler_boilerplate=`cat conftest.err` 11126$rm conftest* 11127 11128ac_outfile=conftest.$ac_objext 11129printf "$lt_simple_link_test_code" >conftest.$ac_ext 11130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11131_lt_linker_boilerplate=`cat conftest.err` 11132$rm conftest* 11133 11134 11135# Allow CC to be a program name with arguments. 11136lt_save_CC=$CC 11137lt_save_LD=$LD 11138lt_save_GCC=$GCC 11139GCC=$GXX 11140lt_save_with_gnu_ld=$with_gnu_ld 11141lt_save_path_LD=$lt_cv_path_LD 11142if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11143 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11144else 11145 $as_unset lt_cv_prog_gnu_ld 11146fi 11147if test -n "${lt_cv_path_LDCXX+set}"; then 11148 lt_cv_path_LD=$lt_cv_path_LDCXX 11149else 11150 $as_unset lt_cv_path_LD 11151fi 11152test -z "${LDCXX+set}" || LD=$LDCXX 11153CC=${CXX-"c++"} 11154compiler=$CC 11155compiler_CXX=$CC 11156for cc_temp in $compiler""; do 11157 case $cc_temp in 11158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11160 \-*) ;; 11161 *) break;; 11162 esac 11163done 11164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11165 11166 11167# We don't want -fno-exception wen compiling C++ code, so set the 11168# no_builtin_flag separately 11169if test "$GXX" = yes; then 11170 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11171else 11172 lt_prog_compiler_no_builtin_flag_CXX= 11173fi 11174 11175if test "$GXX" = yes; then 11176 # Set up default GNU C++ configuration 11177 11178 11179# Check whether --with-gnu-ld was given. 11180if test "${with_gnu_ld+set}" = set; then 11181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11182else 11183 with_gnu_ld=no 11184fi 11185 11186ac_prog=ld 11187if test "$GCC" = yes; then 11188 # Check if gcc -print-prog-name=ld gives a path. 11189 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11190echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11191 case $host in 11192 *-*-mingw*) 11193 # gcc leaves a trailing carriage return which upsets mingw 11194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11195 *) 11196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11197 esac 11198 case $ac_prog in 11199 # Accept absolute paths. 11200 [\\/]* | ?:[\\/]*) 11201 re_direlt='/[^/][^/]*/\.\./' 11202 # Canonicalize the pathname of ld 11203 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11204 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11205 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11206 done 11207 test -z "$LD" && LD="$ac_prog" 11208 ;; 11209 "") 11210 # If it fails, then pretend we aren't using GCC. 11211 ac_prog=ld 11212 ;; 11213 *) 11214 # If it is relative, then search for the first ld in PATH. 11215 with_gnu_ld=unknown 11216 ;; 11217 esac 11218elif test "$with_gnu_ld" = yes; then 11219 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11220echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11221else 11222 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11223echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11224fi 11225if test "${lt_cv_path_LD+set}" = set; then 11226 echo $ECHO_N "(cached) $ECHO_C" >&6 11227else 11228 if test -z "$LD"; then 11229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11230 for ac_dir in $PATH; do 11231 IFS="$lt_save_ifs" 11232 test -z "$ac_dir" && ac_dir=. 11233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11234 lt_cv_path_LD="$ac_dir/$ac_prog" 11235 # Check to see if the program is GNU ld. I'd rather use --version, 11236 # but apparently some variants of GNU ld only accept -v. 11237 # Break only if it was the GNU/non-GNU ld that we prefer. 11238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11239 *GNU* | *'with BFD'*) 11240 test "$with_gnu_ld" != no && break 11241 ;; 11242 *) 11243 test "$with_gnu_ld" != yes && break 11244 ;; 11245 esac 11246 fi 11247 done 11248 IFS="$lt_save_ifs" 11249else 11250 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11251fi 11252fi 11253 11254LD="$lt_cv_path_LD" 11255if test -n "$LD"; then 11256 { echo "$as_me:$LINENO: result: $LD" >&5 11257echo "${ECHO_T}$LD" >&6; } 11258else 11259 { echo "$as_me:$LINENO: result: no" >&5 11260echo "${ECHO_T}no" >&6; } 11261fi 11262test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11263echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11264 { (exit 1); exit 1; }; } 11265{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11266echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11267if test "${lt_cv_prog_gnu_ld+set}" = set; then 11268 echo $ECHO_N "(cached) $ECHO_C" >&6 11269else 11270 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11271case `$LD -v 2>&1 </dev/null` in 11272*GNU* | *'with BFD'*) 11273 lt_cv_prog_gnu_ld=yes 11274 ;; 11275*) 11276 lt_cv_prog_gnu_ld=no 11277 ;; 11278esac 11279fi 11280{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11281echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11282with_gnu_ld=$lt_cv_prog_gnu_ld 11283 11284 11285 11286 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11287 # archiving commands below assume that GNU ld is being used. 11288 if test "$with_gnu_ld" = yes; then 11289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11290 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' 11291 11292 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11294 11295 # If archive_cmds runs LD, not CC, wlarc should be empty 11296 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11297 # investigate it a little bit more. (MM) 11298 wlarc='${wl}' 11299 11300 # ancient GNU ld didn't support --whole-archive et. al. 11301 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11302 grep 'no-whole-archive' > /dev/null; then 11303 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11304 else 11305 whole_archive_flag_spec_CXX= 11306 fi 11307 else 11308 with_gnu_ld=no 11309 wlarc= 11310 11311 # A generic and very simple default shared library creation 11312 # command for GNU C++ for the case where it uses the native 11313 # linker, instead of GNU ld. If possible, this setting should 11314 # overridden to take advantage of the native linker features on 11315 # the platform it is being used on. 11316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11317 fi 11318 11319 # Commands to make compiler produce verbose output that lists 11320 # what "hidden" libraries, object files and flags are used when 11321 # linking a shared library. 11322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11323 11324else 11325 GXX=no 11326 with_gnu_ld=no 11327 wlarc= 11328fi 11329 11330# PORTME: fill in a description of your system's C++ link characteristics 11331{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11332echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11333ld_shlibs_CXX=yes 11334case $host_os in 11335 aix3*) 11336 # FIXME: insert proper C++ library support 11337 ld_shlibs_CXX=no 11338 ;; 11339 aix4* | aix5*) 11340 if test "$host_cpu" = ia64; then 11341 # On IA64, the linker does run time linking by default, so we don't 11342 # have to do anything special. 11343 aix_use_runtimelinking=no 11344 exp_sym_flag='-Bexport' 11345 no_entry_flag="" 11346 else 11347 aix_use_runtimelinking=no 11348 11349 # Test if we are trying to use run time linking or normal 11350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11351 # need to do runtime linking. 11352 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11353 for ld_flag in $LDFLAGS; do 11354 case $ld_flag in 11355 *-brtl*) 11356 aix_use_runtimelinking=yes 11357 break 11358 ;; 11359 esac 11360 done 11361 ;; 11362 esac 11363 11364 exp_sym_flag='-bexport' 11365 no_entry_flag='-bnoentry' 11366 fi 11367 11368 # When large executables or shared objects are built, AIX ld can 11369 # have problems creating the table of contents. If linking a library 11370 # or program results in "error TOC overflow" add -mminimal-toc to 11371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11373 11374 archive_cmds_CXX='' 11375 hardcode_direct_CXX=yes 11376 hardcode_libdir_separator_CXX=':' 11377 link_all_deplibs_CXX=yes 11378 11379 if test "$GXX" = yes; then 11380 case $host_os in aix4.[012]|aix4.[012].*) 11381 # We only want to do this on AIX 4.2 and lower, the check 11382 # below for broken collect2 doesn't work under 4.3+ 11383 collect2name=`${CC} -print-prog-name=collect2` 11384 if test -f "$collect2name" && \ 11385 strings "$collect2name" | grep resolve_lib_name >/dev/null 11386 then 11387 # We have reworked collect2 11388 hardcode_direct_CXX=yes 11389 else 11390 # We have old collect2 11391 hardcode_direct_CXX=unsupported 11392 # It fails to find uninstalled libraries when the uninstalled 11393 # path is not listed in the libpath. Setting hardcode_minus_L 11394 # to unsupported forces relinking 11395 hardcode_minus_L_CXX=yes 11396 hardcode_libdir_flag_spec_CXX='-L$libdir' 11397 hardcode_libdir_separator_CXX= 11398 fi 11399 ;; 11400 esac 11401 shared_flag='-shared' 11402 if test "$aix_use_runtimelinking" = yes; then 11403 shared_flag="$shared_flag "'${wl}-G' 11404 fi 11405 else 11406 # not using gcc 11407 if test "$host_cpu" = ia64; then 11408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11409 # chokes on -Wl,-G. The following line is correct: 11410 shared_flag='-G' 11411 else 11412 if test "$aix_use_runtimelinking" = yes; then 11413 shared_flag='${wl}-G' 11414 else 11415 shared_flag='${wl}-bM:SRE' 11416 fi 11417 fi 11418 fi 11419 11420 # It seems that -bexpall does not export symbols beginning with 11421 # underscore (_), so it is better to generate a list of symbols to export. 11422 always_export_symbols_CXX=yes 11423 if test "$aix_use_runtimelinking" = yes; then 11424 # Warning - without using the other runtime loading flags (-brtl), 11425 # -berok will link without error, but may produce a broken library. 11426 allow_undefined_flag_CXX='-berok' 11427 # Determine the default libpath from the value encoded in an empty executable. 11428 cat >conftest.$ac_ext <<_ACEOF 11429/* confdefs.h. */ 11430_ACEOF 11431cat confdefs.h >>conftest.$ac_ext 11432cat >>conftest.$ac_ext <<_ACEOF 11433/* end confdefs.h. */ 11434 11435int 11436main () 11437{ 11438 11439 ; 11440 return 0; 11441} 11442_ACEOF 11443rm -f conftest.$ac_objext conftest$ac_exeext 11444if { (ac_try="$ac_link" 11445case "(($ac_try" in 11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11447 *) ac_try_echo=$ac_try;; 11448esac 11449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11450 (eval "$ac_link") 2>conftest.er1 11451 ac_status=$? 11452 grep -v '^ *+' conftest.er1 >conftest.err 11453 rm -f conftest.er1 11454 cat conftest.err >&5 11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11456 (exit $ac_status); } && 11457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11458 { (case "(($ac_try" in 11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11460 *) ac_try_echo=$ac_try;; 11461esac 11462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11463 (eval "$ac_try") 2>&5 11464 ac_status=$? 11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11466 (exit $ac_status); }; } && 11467 { ac_try='test -s conftest$ac_exeext' 11468 { (case "(($ac_try" in 11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11470 *) ac_try_echo=$ac_try;; 11471esac 11472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11473 (eval "$ac_try") 2>&5 11474 ac_status=$? 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 (exit $ac_status); }; }; then 11477 11478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11479}'` 11480# Check for a 64-bit object if we didn't find anything. 11481if 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; } 11482}'`; fi 11483else 11484 echo "$as_me: failed program was:" >&5 11485sed 's/^/| /' conftest.$ac_ext >&5 11486 11487 11488fi 11489 11490rm -f conftest.err conftest.$ac_objext \ 11491 conftest$ac_exeext conftest.$ac_ext 11492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11493 11494 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11495 11496 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" 11497 else 11498 if test "$host_cpu" = ia64; then 11499 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11500 allow_undefined_flag_CXX="-z nodefs" 11501 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" 11502 else 11503 # Determine the default libpath from the value encoded in an empty executable. 11504 cat >conftest.$ac_ext <<_ACEOF 11505/* confdefs.h. */ 11506_ACEOF 11507cat confdefs.h >>conftest.$ac_ext 11508cat >>conftest.$ac_ext <<_ACEOF 11509/* end confdefs.h. */ 11510 11511int 11512main () 11513{ 11514 11515 ; 11516 return 0; 11517} 11518_ACEOF 11519rm -f conftest.$ac_objext conftest$ac_exeext 11520if { (ac_try="$ac_link" 11521case "(($ac_try" in 11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11523 *) ac_try_echo=$ac_try;; 11524esac 11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11526 (eval "$ac_link") 2>conftest.er1 11527 ac_status=$? 11528 grep -v '^ *+' conftest.er1 >conftest.err 11529 rm -f conftest.er1 11530 cat conftest.err >&5 11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11532 (exit $ac_status); } && 11533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11534 { (case "(($ac_try" in 11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11536 *) ac_try_echo=$ac_try;; 11537esac 11538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11539 (eval "$ac_try") 2>&5 11540 ac_status=$? 11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11542 (exit $ac_status); }; } && 11543 { ac_try='test -s conftest$ac_exeext' 11544 { (case "(($ac_try" in 11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11546 *) ac_try_echo=$ac_try;; 11547esac 11548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11549 (eval "$ac_try") 2>&5 11550 ac_status=$? 11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11552 (exit $ac_status); }; }; then 11553 11554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11555}'` 11556# Check for a 64-bit object if we didn't find anything. 11557if 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; } 11558}'`; fi 11559else 11560 echo "$as_me: failed program was:" >&5 11561sed 's/^/| /' conftest.$ac_ext >&5 11562 11563 11564fi 11565 11566rm -f conftest.err conftest.$ac_objext \ 11567 conftest$ac_exeext conftest.$ac_ext 11568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11569 11570 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11571 # Warning - without using the other run time loading flags, 11572 # -berok will link without error, but may produce a broken library. 11573 no_undefined_flag_CXX=' ${wl}-bernotok' 11574 allow_undefined_flag_CXX=' ${wl}-berok' 11575 # Exported symbols can be pulled into shared objects from archives 11576 whole_archive_flag_spec_CXX='$convenience' 11577 archive_cmds_need_lc_CXX=yes 11578 # This is similar to how AIX traditionally builds its shared libraries. 11579 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' 11580 fi 11581 fi 11582 ;; 11583 11584 beos*) 11585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11586 allow_undefined_flag_CXX=unsupported 11587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11588 # support --undefined. This deserves some investigation. FIXME 11589 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11590 else 11591 ld_shlibs_CXX=no 11592 fi 11593 ;; 11594 11595 chorus*) 11596 case $cc_basename in 11597 *) 11598 # FIXME: insert proper C++ library support 11599 ld_shlibs_CXX=no 11600 ;; 11601 esac 11602 ;; 11603 11604 cygwin* | mingw* | pw32*) 11605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11606 # as there is no search path for DLLs. 11607 hardcode_libdir_flag_spec_CXX='-L$libdir' 11608 allow_undefined_flag_CXX=unsupported 11609 always_export_symbols_CXX=no 11610 enable_shared_with_static_runtimes_CXX=yes 11611 11612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11613 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' 11614 # If the export-symbols file already is a .def file (1st line 11615 # is EXPORTS), use it as is; otherwise, prepend... 11616 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11617 cp $export_symbols $output_objdir/$soname.def; 11618 else 11619 echo EXPORTS > $output_objdir/$soname.def; 11620 cat $export_symbols >> $output_objdir/$soname.def; 11621 fi~ 11622 $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' 11623 else 11624 ld_shlibs_CXX=no 11625 fi 11626 ;; 11627 darwin* | rhapsody*) 11628 case $host_os in 11629 rhapsody* | darwin1.[012]) 11630 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11631 ;; 11632 *) # Darwin 1.3 on 11633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11634 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11635 else 11636 case ${MACOSX_DEPLOYMENT_TARGET} in 11637 10.[012]) 11638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11639 ;; 11640 10.*) 11641 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11642 ;; 11643 esac 11644 fi 11645 ;; 11646 esac 11647 archive_cmds_need_lc_CXX=no 11648 hardcode_direct_CXX=no 11649 hardcode_automatic_CXX=yes 11650 hardcode_shlibpath_var_CXX=unsupported 11651 whole_archive_flag_spec_CXX='' 11652 link_all_deplibs_CXX=yes 11653 11654 if test "$GXX" = yes ; then 11655 lt_int_apple_cc_single_mod=no 11656 output_verbose_link_cmd='echo' 11657 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11658 lt_int_apple_cc_single_mod=yes 11659 fi 11660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11661 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11662 else 11663 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' 11664 fi 11665 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11668 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}' 11669 else 11670 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}' 11671 fi 11672 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}' 11673 else 11674 case $cc_basename in 11675 xlc*) 11676 output_verbose_link_cmd='echo' 11677 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' 11678 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11680 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}' 11681 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}' 11682 ;; 11683 *) 11684 ld_shlibs_CXX=no 11685 ;; 11686 esac 11687 fi 11688 ;; 11689 11690 dgux*) 11691 case $cc_basename in 11692 ec++*) 11693 # FIXME: insert proper C++ library support 11694 ld_shlibs_CXX=no 11695 ;; 11696 ghcx*) 11697 # Green Hills C++ Compiler 11698 # FIXME: insert proper C++ library support 11699 ld_shlibs_CXX=no 11700 ;; 11701 *) 11702 # FIXME: insert proper C++ library support 11703 ld_shlibs_CXX=no 11704 ;; 11705 esac 11706 ;; 11707 freebsd[12]*) 11708 # C++ shared libraries reported to be fairly broken before switch to ELF 11709 ld_shlibs_CXX=no 11710 ;; 11711 freebsd-elf*) 11712 archive_cmds_need_lc_CXX=no 11713 ;; 11714 freebsd* | dragonfly*) 11715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11716 # conventions 11717 ld_shlibs_CXX=yes 11718 ;; 11719 gnu*) 11720 ;; 11721 hpux9*) 11722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11723 hardcode_libdir_separator_CXX=: 11724 export_dynamic_flag_spec_CXX='${wl}-E' 11725 hardcode_direct_CXX=yes 11726 hardcode_minus_L_CXX=yes # Not in the search PATH, 11727 # but as the default 11728 # location of the library. 11729 11730 case $cc_basename in 11731 CC*) 11732 # FIXME: insert proper C++ library support 11733 ld_shlibs_CXX=no 11734 ;; 11735 aCC*) 11736 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' 11737 # Commands to make compiler produce verbose output that lists 11738 # what "hidden" libraries, object files and flags are used when 11739 # linking a shared library. 11740 # 11741 # There doesn't appear to be a way to prevent this compiler from 11742 # explicitly linking system object files so we need to strip them 11743 # from the output so that they don't get included in the library 11744 # dependencies. 11745 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' 11746 ;; 11747 *) 11748 if test "$GXX" = yes; then 11749 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' 11750 else 11751 # FIXME: insert proper C++ library support 11752 ld_shlibs_CXX=no 11753 fi 11754 ;; 11755 esac 11756 ;; 11757 hpux10*|hpux11*) 11758 if test $with_gnu_ld = no; then 11759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11760 hardcode_libdir_separator_CXX=: 11761 11762 case $host_cpu in 11763 hppa*64*|ia64*) 11764 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11765 ;; 11766 *) 11767 export_dynamic_flag_spec_CXX='${wl}-E' 11768 ;; 11769 esac 11770 fi 11771 case $host_cpu in 11772 hppa*64*|ia64*) 11773 hardcode_direct_CXX=no 11774 hardcode_shlibpath_var_CXX=no 11775 ;; 11776 *) 11777 hardcode_direct_CXX=yes 11778 hardcode_minus_L_CXX=yes # Not in the search PATH, 11779 # but as the default 11780 # location of the library. 11781 ;; 11782 esac 11783 11784 case $cc_basename in 11785 CC*) 11786 # FIXME: insert proper C++ library support 11787 ld_shlibs_CXX=no 11788 ;; 11789 aCC*) 11790 case $host_cpu in 11791 hppa*64*) 11792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11793 ;; 11794 ia64*) 11795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11796 ;; 11797 *) 11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11799 ;; 11800 esac 11801 # Commands to make compiler produce verbose output that lists 11802 # what "hidden" libraries, object files and flags are used when 11803 # linking a shared library. 11804 # 11805 # There doesn't appear to be a way to prevent this compiler from 11806 # explicitly linking system object files so we need to strip them 11807 # from the output so that they don't get included in the library 11808 # dependencies. 11809 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' 11810 ;; 11811 *) 11812 if test "$GXX" = yes; then 11813 if test $with_gnu_ld = no; then 11814 case $host_cpu in 11815 hppa*64*) 11816 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11817 ;; 11818 ia64*) 11819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11820 ;; 11821 *) 11822 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' 11823 ;; 11824 esac 11825 fi 11826 else 11827 # FIXME: insert proper C++ library support 11828 ld_shlibs_CXX=no 11829 fi 11830 ;; 11831 esac 11832 ;; 11833 interix3*) 11834 hardcode_direct_CXX=no 11835 hardcode_shlibpath_var_CXX=no 11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11837 export_dynamic_flag_spec_CXX='${wl}-E' 11838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11839 # Instead, shared libraries are loaded at an image base (0x10000000 by 11840 # default) and relocated if they conflict, which is a slow very memory 11841 # consuming and fragmenting process. To avoid this, we pick a random, 11842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11843 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11844 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' 11845 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' 11846 ;; 11847 irix5* | irix6*) 11848 case $cc_basename in 11849 CC*) 11850 # SGI C++ 11851 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' 11852 11853 # Archives containing C++ object files must be created using 11854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11855 # necessary to make sure instantiated templates are included 11856 # in the archive. 11857 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11858 ;; 11859 *) 11860 if test "$GXX" = yes; then 11861 if test "$with_gnu_ld" = no; then 11862 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' 11863 else 11864 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' 11865 fi 11866 fi 11867 link_all_deplibs_CXX=yes 11868 ;; 11869 esac 11870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11871 hardcode_libdir_separator_CXX=: 11872 ;; 11873 linux* | k*bsd*-gnu) 11874 case $cc_basename in 11875 KCC*) 11876 # Kuck and Associates, Inc. (KAI) C++ Compiler 11877 11878 # KCC will only create a shared library if the output file 11879 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11880 # to its proper name (with version) after linking. 11881 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' 11882 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' 11883 # Commands to make compiler produce verbose output that lists 11884 # what "hidden" libraries, object files and flags are used when 11885 # linking a shared library. 11886 # 11887 # There doesn't appear to be a way to prevent this compiler from 11888 # explicitly linking system object files so we need to strip them 11889 # from the output so that they don't get included in the library 11890 # dependencies. 11891 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' 11892 11893 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11895 11896 # Archives containing C++ object files must be created using 11897 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11898 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11899 ;; 11900 icpc*) 11901 # Intel C++ 11902 with_gnu_ld=yes 11903 # version 8.0 and above of icpc choke on multiply defined symbols 11904 # if we add $predep_objects and $postdep_objects, however 7.1 and 11905 # earlier do not add the objects themselves. 11906 case `$CC -V 2>&1` in 11907 *"Version 7."*) 11908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11909 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' 11910 ;; 11911 *) # Version 8.0 or newer 11912 tmp_idyn= 11913 case $host_cpu in 11914 ia64*) tmp_idyn=' -i_dynamic';; 11915 esac 11916 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11917 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' 11918 ;; 11919 esac 11920 archive_cmds_need_lc_CXX=no 11921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11923 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11924 ;; 11925 pgCC*) 11926 # Portland Group C++ compiler 11927 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11928 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' 11929 11930 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11932 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' 11933 ;; 11934 cxx*) 11935 # Compaq C++ 11936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11937 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' 11938 11939 runpath_var=LD_RUN_PATH 11940 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11941 hardcode_libdir_separator_CXX=: 11942 11943 # Commands to make compiler produce verbose output that lists 11944 # what "hidden" libraries, object files and flags are used when 11945 # linking a shared library. 11946 # 11947 # There doesn't appear to be a way to prevent this compiler from 11948 # explicitly linking system object files so we need to strip them 11949 # from the output so that they don't get included in the library 11950 # dependencies. 11951 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' 11952 ;; 11953 esac 11954 ;; 11955 lynxos*) 11956 # FIXME: insert proper C++ library support 11957 ld_shlibs_CXX=no 11958 ;; 11959 m88k*) 11960 # FIXME: insert proper C++ library support 11961 ld_shlibs_CXX=no 11962 ;; 11963 mvs*) 11964 case $cc_basename in 11965 cxx*) 11966 # FIXME: insert proper C++ library support 11967 ld_shlibs_CXX=no 11968 ;; 11969 *) 11970 # FIXME: insert proper C++ library support 11971 ld_shlibs_CXX=no 11972 ;; 11973 esac 11974 ;; 11975 netbsd* | netbsdelf*-gnu) 11976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11977 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11978 wlarc= 11979 hardcode_libdir_flag_spec_CXX='-R$libdir' 11980 hardcode_direct_CXX=yes 11981 hardcode_shlibpath_var_CXX=no 11982 fi 11983 # Workaround some broken pre-1.5 toolchains 11984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11985 ;; 11986 openbsd2*) 11987 # C++ shared libraries are fairly broken 11988 ld_shlibs_CXX=no 11989 ;; 11990 openbsd*) 11991 hardcode_direct_CXX=yes 11992 hardcode_shlibpath_var_CXX=no 11993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11996 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11997 export_dynamic_flag_spec_CXX='${wl}-E' 11998 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11999 fi 12000 output_verbose_link_cmd='echo' 12001 ;; 12002 osf3*) 12003 case $cc_basename in 12004 KCC*) 12005 # Kuck and Associates, Inc. (KAI) C++ Compiler 12006 12007 # KCC will only create a shared library if the output file 12008 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12009 # to its proper name (with version) after linking. 12010 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' 12011 12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12013 hardcode_libdir_separator_CXX=: 12014 12015 # Archives containing C++ object files must be created using 12016 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12017 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12018 12019 ;; 12020 RCC*) 12021 # Rational C++ 2.4.1 12022 # FIXME: insert proper C++ library support 12023 ld_shlibs_CXX=no 12024 ;; 12025 cxx*) 12026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12027 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' 12028 12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12030 hardcode_libdir_separator_CXX=: 12031 12032 # Commands to make compiler produce verbose output that lists 12033 # what "hidden" libraries, object files and flags are used when 12034 # linking a shared library. 12035 # 12036 # There doesn't appear to be a way to prevent this compiler from 12037 # explicitly linking system object files so we need to strip them 12038 # from the output so that they don't get included in the library 12039 # dependencies. 12040 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' 12041 ;; 12042 *) 12043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12044 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12045 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' 12046 12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12048 hardcode_libdir_separator_CXX=: 12049 12050 # Commands to make compiler produce verbose output that lists 12051 # what "hidden" libraries, object files and flags are used when 12052 # linking a shared library. 12053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12054 12055 else 12056 # FIXME: insert proper C++ library support 12057 ld_shlibs_CXX=no 12058 fi 12059 ;; 12060 esac 12061 ;; 12062 osf4* | osf5*) 12063 case $cc_basename in 12064 KCC*) 12065 # Kuck and Associates, Inc. (KAI) C++ Compiler 12066 12067 # KCC will only create a shared library if the output file 12068 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12069 # to its proper name (with version) after linking. 12070 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' 12071 12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12073 hardcode_libdir_separator_CXX=: 12074 12075 # Archives containing C++ object files must be created using 12076 # the KAI C++ compiler. 12077 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12078 ;; 12079 RCC*) 12080 # Rational C++ 2.4.1 12081 # FIXME: insert proper C++ library support 12082 ld_shlibs_CXX=no 12083 ;; 12084 cxx*) 12085 allow_undefined_flag_CXX=' -expect_unresolved \*' 12086 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' 12087 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12088 echo "-hidden">> $lib.exp~ 12089 $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~ 12090 $rm $lib.exp' 12091 12092 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12093 hardcode_libdir_separator_CXX=: 12094 12095 # Commands to make compiler produce verbose output that lists 12096 # what "hidden" libraries, object files and flags are used when 12097 # linking a shared library. 12098 # 12099 # There doesn't appear to be a way to prevent this compiler from 12100 # explicitly linking system object files so we need to strip them 12101 # from the output so that they don't get included in the library 12102 # dependencies. 12103 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' 12104 ;; 12105 *) 12106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12108 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' 12109 12110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12111 hardcode_libdir_separator_CXX=: 12112 12113 # Commands to make compiler produce verbose output that lists 12114 # what "hidden" libraries, object files and flags are used when 12115 # linking a shared library. 12116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12117 12118 else 12119 # FIXME: insert proper C++ library support 12120 ld_shlibs_CXX=no 12121 fi 12122 ;; 12123 esac 12124 ;; 12125 psos*) 12126 # FIXME: insert proper C++ library support 12127 ld_shlibs_CXX=no 12128 ;; 12129 sunos4*) 12130 case $cc_basename in 12131 CC*) 12132 # Sun C++ 4.x 12133 # FIXME: insert proper C++ library support 12134 ld_shlibs_CXX=no 12135 ;; 12136 lcc*) 12137 # Lucid 12138 # FIXME: insert proper C++ library support 12139 ld_shlibs_CXX=no 12140 ;; 12141 *) 12142 # FIXME: insert proper C++ library support 12143 ld_shlibs_CXX=no 12144 ;; 12145 esac 12146 ;; 12147 solaris*) 12148 case $cc_basename in 12149 CC*) 12150 # Sun C++ 4.2, 5.x and Centerline C++ 12151 archive_cmds_need_lc_CXX=yes 12152 no_undefined_flag_CXX=' -zdefs' 12153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12155 $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' 12156 12157 hardcode_libdir_flag_spec_CXX='-R$libdir' 12158 hardcode_shlibpath_var_CXX=no 12159 case $host_os in 12160 solaris2.[0-5] | solaris2.[0-5].*) ;; 12161 *) 12162 # The C++ compiler is used as linker so we must use $wl 12163 # flag to pass the commands to the underlying system 12164 # linker. We must also pass each convience library through 12165 # to the system linker between allextract/defaultextract. 12166 # The C++ compiler will combine linker options so we 12167 # cannot just pass the convience library names through 12168 # without $wl. 12169 # Supported since Solaris 2.6 (maybe 2.5.1?) 12170 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' 12171 ;; 12172 esac 12173 link_all_deplibs_CXX=yes 12174 12175 output_verbose_link_cmd='echo' 12176 12177 # Archives containing C++ object files must be created using 12178 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12179 # necessary to make sure instantiated templates are included 12180 # in the archive. 12181 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12182 ;; 12183 gcx*) 12184 # Green Hills C++ Compiler 12185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12186 12187 # The C++ compiler must be used to create the archive. 12188 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12189 ;; 12190 *) 12191 # GNU C++ compiler with Solaris linker 12192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12193 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12194 if $CC --version | grep -v '^2\.7' > /dev/null; then 12195 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12197 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12198 12199 # Commands to make compiler produce verbose output that lists 12200 # what "hidden" libraries, object files and flags are used when 12201 # linking a shared library. 12202 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12203 else 12204 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12205 # platform. 12206 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12208 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12209 12210 # Commands to make compiler produce verbose output that lists 12211 # what "hidden" libraries, object files and flags are used when 12212 # linking a shared library. 12213 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12214 fi 12215 12216 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12217 fi 12218 ;; 12219 esac 12220 ;; 12221 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12222 no_undefined_flag_CXX='${wl}-z,text' 12223 archive_cmds_need_lc_CXX=no 12224 hardcode_shlibpath_var_CXX=no 12225 runpath_var='LD_RUN_PATH' 12226 12227 case $cc_basename in 12228 CC*) 12229 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12230 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12231 ;; 12232 *) 12233 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12235 ;; 12236 esac 12237 ;; 12238 sysv5* | sco3.2v5* | sco5v6*) 12239 # Note: We can NOT use -z defs as we might desire, because we do not 12240 # link with -lc, and that would cause any symbols used from libc to 12241 # always be unresolved, which means just about no library would 12242 # ever link correctly. If we're not using GNU ld we use -z text 12243 # though, which does catch some bad symbols but isn't as heavy-handed 12244 # as -z defs. 12245 # For security reasons, it is highly recommended that you always 12246 # use absolute paths for naming shared libraries, and exclude the 12247 # DT_RUNPATH tag from executables and libraries. But doing so 12248 # requires that you compile everything twice, which is a pain. 12249 # So that behaviour is only enabled if SCOABSPATH is set to a 12250 # non-empty value in the environment. Most likely only useful for 12251 # creating official distributions of packages. 12252 # This is a hack until libtool officially supports absolute path 12253 # names for shared libraries. 12254 no_undefined_flag_CXX='${wl}-z,text' 12255 allow_undefined_flag_CXX='${wl}-z,nodefs' 12256 archive_cmds_need_lc_CXX=no 12257 hardcode_shlibpath_var_CXX=no 12258 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12259 hardcode_libdir_separator_CXX=':' 12260 link_all_deplibs_CXX=yes 12261 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12262 runpath_var='LD_RUN_PATH' 12263 12264 case $cc_basename in 12265 CC*) 12266 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12267 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12268 ;; 12269 *) 12270 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12271 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12272 ;; 12273 esac 12274 ;; 12275 tandem*) 12276 case $cc_basename in 12277 NCC*) 12278 # NonStop-UX NCC 3.20 12279 # FIXME: insert proper C++ library support 12280 ld_shlibs_CXX=no 12281 ;; 12282 *) 12283 # FIXME: insert proper C++ library support 12284 ld_shlibs_CXX=no 12285 ;; 12286 esac 12287 ;; 12288 vxworks*) 12289 # FIXME: insert proper C++ library support 12290 ld_shlibs_CXX=no 12291 ;; 12292 *) 12293 # FIXME: insert proper C++ library support 12294 ld_shlibs_CXX=no 12295 ;; 12296esac 12297{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12298echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12299test "$ld_shlibs_CXX" = no && can_build_shared=no 12300 12301GCC_CXX="$GXX" 12302LD_CXX="$LD" 12303 12304 12305cat > conftest.$ac_ext <<EOF 12306class Foo 12307{ 12308public: 12309 Foo (void) { a = 0; } 12310private: 12311 int a; 12312}; 12313EOF 12314 12315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12316 (eval $ac_compile) 2>&5 12317 ac_status=$? 12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12319 (exit $ac_status); }; then 12320 # Parse the compiler output and extract the necessary 12321 # objects, libraries and library flags. 12322 12323 # Sentinel used to keep track of whether or not we are before 12324 # the conftest object file. 12325 pre_test_object_deps_done=no 12326 12327 # The `*' in the case matches for architectures that use `case' in 12328 # $output_verbose_cmd can trigger glob expansion during the loop 12329 # eval without this substitution. 12330 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12331 12332 for p in `eval $output_verbose_link_cmd`; do 12333 case $p in 12334 12335 -L* | -R* | -l*) 12336 # Some compilers place space between "-{L,R}" and the path. 12337 # Remove the space. 12338 if test $p = "-L" \ 12339 || test $p = "-R"; then 12340 prev=$p 12341 continue 12342 else 12343 prev= 12344 fi 12345 12346 if test "$pre_test_object_deps_done" = no; then 12347 case $p in 12348 -L* | -R*) 12349 # Internal compiler library paths should come after those 12350 # provided the user. The postdeps already come after the 12351 # user supplied libs so there is no need to process them. 12352 if test -z "$compiler_lib_search_path_CXX"; then 12353 compiler_lib_search_path_CXX="${prev}${p}" 12354 else 12355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12356 fi 12357 ;; 12358 # The "-l" case would never come before the object being 12359 # linked, so don't bother handling this case. 12360 esac 12361 else 12362 if test -z "$postdeps_CXX"; then 12363 postdeps_CXX="${prev}${p}" 12364 else 12365 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12366 fi 12367 fi 12368 ;; 12369 12370 *.$objext) 12371 # This assumes that the test object file only shows up 12372 # once in the compiler output. 12373 if test "$p" = "conftest.$objext"; then 12374 pre_test_object_deps_done=yes 12375 continue 12376 fi 12377 12378 if test "$pre_test_object_deps_done" = no; then 12379 if test -z "$predep_objects_CXX"; then 12380 predep_objects_CXX="$p" 12381 else 12382 predep_objects_CXX="$predep_objects_CXX $p" 12383 fi 12384 else 12385 if test -z "$postdep_objects_CXX"; then 12386 postdep_objects_CXX="$p" 12387 else 12388 postdep_objects_CXX="$postdep_objects_CXX $p" 12389 fi 12390 fi 12391 ;; 12392 12393 *) ;; # Ignore the rest. 12394 12395 esac 12396 done 12397 12398 # Clean up. 12399 rm -f a.out a.exe 12400else 12401 echo "libtool.m4: error: problem compiling CXX test program" 12402fi 12403 12404$rm -f confest.$objext 12405 12406# PORTME: override above test on systems where it is broken 12407case $host_os in 12408interix3*) 12409 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12410 # hack all around it, let's just trust "g++" to DTRT. 12411 predep_objects_CXX= 12412 postdep_objects_CXX= 12413 postdeps_CXX= 12414 ;; 12415 12416solaris*) 12417 case $cc_basename in 12418 CC*) 12419 # Adding this requires a known-good setup of shared libraries for 12420 # Sun compiler versions before 5.6, else PIC objects from an old 12421 # archive will be linked into the output, leading to subtle bugs. 12422 postdeps_CXX='-lCstd -lCrun' 12423 ;; 12424 esac 12425 ;; 12426esac 12427 12428 12429case " $postdeps_CXX " in 12430*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12431esac 12432 12433lt_prog_compiler_wl_CXX= 12434lt_prog_compiler_pic_CXX= 12435lt_prog_compiler_static_CXX= 12436 12437{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12438echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12439 12440 # C++ specific cases for pic, static, wl, etc. 12441 if test "$GXX" = yes; then 12442 lt_prog_compiler_wl_CXX='-Wl,' 12443 lt_prog_compiler_static_CXX='-static' 12444 12445 case $host_os in 12446 aix*) 12447 # All AIX code is PIC. 12448 if test "$host_cpu" = ia64; then 12449 # AIX 5 now supports IA64 processor 12450 lt_prog_compiler_static_CXX='-Bstatic' 12451 fi 12452 ;; 12453 amigaos*) 12454 # FIXME: we need at least 68020 code to build shared libraries, but 12455 # adding the `-m68020' flag to GCC prevents building anything better, 12456 # like `-m68040'. 12457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12458 ;; 12459 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12460 # PIC is the default for these OSes. 12461 ;; 12462 mingw* | os2* | pw32*) 12463 # This hack is so that the source file can tell whether it is being 12464 # built for inclusion in a dll (and should export symbols for example). 12465 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12466 ;; 12467 darwin* | rhapsody*) 12468 # PIC is the default on this platform 12469 # Common symbols not allowed in MH_DYLIB files 12470 lt_prog_compiler_pic_CXX='-fno-common' 12471 ;; 12472 *djgpp*) 12473 # DJGPP does not support shared libraries at all 12474 lt_prog_compiler_pic_CXX= 12475 ;; 12476 interix3*) 12477 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12478 # Instead, we relocate shared libraries at runtime. 12479 ;; 12480 sysv4*MP*) 12481 if test -d /usr/nec; then 12482 lt_prog_compiler_pic_CXX=-Kconform_pic 12483 fi 12484 ;; 12485 hpux*) 12486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12487 # not for PA HP-UX. 12488 case $host_cpu in 12489 hppa*64*|ia64*) 12490 ;; 12491 *) 12492 lt_prog_compiler_pic_CXX='-fPIC' 12493 ;; 12494 esac 12495 ;; 12496 *) 12497 lt_prog_compiler_pic_CXX='-fPIC' 12498 ;; 12499 esac 12500 else 12501 case $host_os in 12502 aix4* | aix5*) 12503 # All AIX code is PIC. 12504 if test "$host_cpu" = ia64; then 12505 # AIX 5 now supports IA64 processor 12506 lt_prog_compiler_static_CXX='-Bstatic' 12507 else 12508 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12509 fi 12510 ;; 12511 chorus*) 12512 case $cc_basename in 12513 cxch68*) 12514 # Green Hills C++ Compiler 12515 # _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" 12516 ;; 12517 esac 12518 ;; 12519 darwin*) 12520 # PIC is the default on this platform 12521 # Common symbols not allowed in MH_DYLIB files 12522 case $cc_basename in 12523 xlc*) 12524 lt_prog_compiler_pic_CXX='-qnocommon' 12525 lt_prog_compiler_wl_CXX='-Wl,' 12526 ;; 12527 esac 12528 ;; 12529 dgux*) 12530 case $cc_basename in 12531 ec++*) 12532 lt_prog_compiler_pic_CXX='-KPIC' 12533 ;; 12534 ghcx*) 12535 # Green Hills C++ Compiler 12536 lt_prog_compiler_pic_CXX='-pic' 12537 ;; 12538 *) 12539 ;; 12540 esac 12541 ;; 12542 freebsd* | dragonfly*) 12543 # FreeBSD uses GNU C++ 12544 ;; 12545 hpux9* | hpux10* | hpux11*) 12546 case $cc_basename in 12547 CC*) 12548 lt_prog_compiler_wl_CXX='-Wl,' 12549 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12550 if test "$host_cpu" != ia64; then 12551 lt_prog_compiler_pic_CXX='+Z' 12552 fi 12553 ;; 12554 aCC*) 12555 lt_prog_compiler_wl_CXX='-Wl,' 12556 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12557 case $host_cpu in 12558 hppa*64*|ia64*) 12559 # +Z the default 12560 ;; 12561 *) 12562 lt_prog_compiler_pic_CXX='+Z' 12563 ;; 12564 esac 12565 ;; 12566 *) 12567 ;; 12568 esac 12569 ;; 12570 interix*) 12571 # This is c89, which is MS Visual C++ (no shared libs) 12572 # Anyone wants to do a port? 12573 ;; 12574 irix5* | irix6* | nonstopux*) 12575 case $cc_basename in 12576 CC*) 12577 lt_prog_compiler_wl_CXX='-Wl,' 12578 lt_prog_compiler_static_CXX='-non_shared' 12579 # CC pic flag -KPIC is the default. 12580 ;; 12581 *) 12582 ;; 12583 esac 12584 ;; 12585 linux* | k*bsd*-gnu) 12586 case $cc_basename in 12587 KCC*) 12588 # KAI C++ Compiler 12589 lt_prog_compiler_wl_CXX='--backend -Wl,' 12590 lt_prog_compiler_pic_CXX='-fPIC' 12591 ;; 12592 icpc* | ecpc*) 12593 # Intel C++ 12594 lt_prog_compiler_wl_CXX='-Wl,' 12595 lt_prog_compiler_pic_CXX='-KPIC' 12596 lt_prog_compiler_static_CXX='-static' 12597 ;; 12598 pgCC*) 12599 # Portland Group C++ compiler. 12600 lt_prog_compiler_wl_CXX='-Wl,' 12601 lt_prog_compiler_pic_CXX='-fpic' 12602 lt_prog_compiler_static_CXX='-Bstatic' 12603 ;; 12604 cxx*) 12605 # Compaq C++ 12606 # Make sure the PIC flag is empty. It appears that all Alpha 12607 # Linux and Compaq Tru64 Unix objects are PIC. 12608 lt_prog_compiler_pic_CXX= 12609 lt_prog_compiler_static_CXX='-non_shared' 12610 ;; 12611 *) 12612 ;; 12613 esac 12614 ;; 12615 lynxos*) 12616 ;; 12617 m88k*) 12618 ;; 12619 mvs*) 12620 case $cc_basename in 12621 cxx*) 12622 lt_prog_compiler_pic_CXX='-W c,exportall' 12623 ;; 12624 *) 12625 ;; 12626 esac 12627 ;; 12628 netbsd* | netbsdelf*-gnu) 12629 ;; 12630 osf3* | osf4* | osf5*) 12631 case $cc_basename in 12632 KCC*) 12633 lt_prog_compiler_wl_CXX='--backend -Wl,' 12634 ;; 12635 RCC*) 12636 # Rational C++ 2.4.1 12637 lt_prog_compiler_pic_CXX='-pic' 12638 ;; 12639 cxx*) 12640 # Digital/Compaq C++ 12641 lt_prog_compiler_wl_CXX='-Wl,' 12642 # Make sure the PIC flag is empty. It appears that all Alpha 12643 # Linux and Compaq Tru64 Unix objects are PIC. 12644 lt_prog_compiler_pic_CXX= 12645 lt_prog_compiler_static_CXX='-non_shared' 12646 ;; 12647 *) 12648 ;; 12649 esac 12650 ;; 12651 psos*) 12652 ;; 12653 solaris*) 12654 case $cc_basename in 12655 CC*) 12656 # Sun C++ 4.2, 5.x and Centerline C++ 12657 lt_prog_compiler_pic_CXX='-KPIC' 12658 lt_prog_compiler_static_CXX='-Bstatic' 12659 lt_prog_compiler_wl_CXX='-Qoption ld ' 12660 ;; 12661 gcx*) 12662 # Green Hills C++ Compiler 12663 lt_prog_compiler_pic_CXX='-PIC' 12664 ;; 12665 *) 12666 ;; 12667 esac 12668 ;; 12669 sunos4*) 12670 case $cc_basename in 12671 CC*) 12672 # Sun C++ 4.x 12673 lt_prog_compiler_pic_CXX='-pic' 12674 lt_prog_compiler_static_CXX='-Bstatic' 12675 ;; 12676 lcc*) 12677 # Lucid 12678 lt_prog_compiler_pic_CXX='-pic' 12679 ;; 12680 *) 12681 ;; 12682 esac 12683 ;; 12684 tandem*) 12685 case $cc_basename in 12686 NCC*) 12687 # NonStop-UX NCC 3.20 12688 lt_prog_compiler_pic_CXX='-KPIC' 12689 ;; 12690 *) 12691 ;; 12692 esac 12693 ;; 12694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12695 case $cc_basename in 12696 CC*) 12697 lt_prog_compiler_wl_CXX='-Wl,' 12698 lt_prog_compiler_pic_CXX='-KPIC' 12699 lt_prog_compiler_static_CXX='-Bstatic' 12700 ;; 12701 esac 12702 ;; 12703 vxworks*) 12704 ;; 12705 *) 12706 lt_prog_compiler_can_build_shared_CXX=no 12707 ;; 12708 esac 12709 fi 12710 12711{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12712echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12713 12714# 12715# Check to make sure the PIC flag actually works. 12716# 12717if test -n "$lt_prog_compiler_pic_CXX"; then 12718 12719{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12721if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12722 echo $ECHO_N "(cached) $ECHO_C" >&6 12723else 12724 lt_prog_compiler_pic_works_CXX=no 12725 ac_outfile=conftest.$ac_objext 12726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12728 # Insert the option either (1) after the last *FLAGS variable, or 12729 # (2) before a word containing "conftest.", or (3) at the end. 12730 # Note that $ac_compile itself does not contain backslashes and begins 12731 # with a dollar sign (not a hyphen), so the echo should work correctly. 12732 # The option is referenced via a variable to avoid confusing sed. 12733 lt_compile=`echo "$ac_compile" | $SED \ 12734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12736 -e 's:$: $lt_compiler_flag:'` 12737 (eval echo "\"\$as_me:12737: $lt_compile\"" >&5) 12738 (eval "$lt_compile" 2>conftest.err) 12739 ac_status=$? 12740 cat conftest.err >&5 12741 echo "$as_me:12741: \$? = $ac_status" >&5 12742 if (exit $ac_status) && test -s "$ac_outfile"; then 12743 # The compiler can only warn and ignore the option if not recognized 12744 # So say no if there are warnings other than the usual output. 12745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12748 lt_prog_compiler_pic_works_CXX=yes 12749 fi 12750 fi 12751 $rm conftest* 12752 12753fi 12754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12755echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12756 12757if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12758 case $lt_prog_compiler_pic_CXX in 12759 "" | " "*) ;; 12760 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12761 esac 12762else 12763 lt_prog_compiler_pic_CXX= 12764 lt_prog_compiler_can_build_shared_CXX=no 12765fi 12766 12767fi 12768case $host_os in 12769 # For platforms which do not support PIC, -DPIC is meaningless: 12770 *djgpp*) 12771 lt_prog_compiler_pic_CXX= 12772 ;; 12773 *) 12774 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12775 ;; 12776esac 12777 12778# 12779# Check to make sure the static flag actually works. 12780# 12781wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12782{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12784if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12785 echo $ECHO_N "(cached) $ECHO_C" >&6 12786else 12787 lt_prog_compiler_static_works_CXX=no 12788 save_LDFLAGS="$LDFLAGS" 12789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12790 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12792 # The linker can only warn and ignore the option if not recognized 12793 # So say no if there are warnings 12794 if test -s conftest.err; then 12795 # Append any errors to the config.log. 12796 cat conftest.err 1>&5 12797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12799 if diff conftest.exp conftest.er2 >/dev/null; then 12800 lt_prog_compiler_static_works_CXX=yes 12801 fi 12802 else 12803 lt_prog_compiler_static_works_CXX=yes 12804 fi 12805 fi 12806 $rm conftest* 12807 LDFLAGS="$save_LDFLAGS" 12808 12809fi 12810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12811echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12812 12813if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12814 : 12815else 12816 lt_prog_compiler_static_CXX= 12817fi 12818 12819 12820{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12822if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12823 echo $ECHO_N "(cached) $ECHO_C" >&6 12824else 12825 lt_cv_prog_compiler_c_o_CXX=no 12826 $rm -r conftest 2>/dev/null 12827 mkdir conftest 12828 cd conftest 12829 mkdir out 12830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12831 12832 lt_compiler_flag="-o out/conftest2.$ac_objext" 12833 # Insert the option either (1) after the last *FLAGS variable, or 12834 # (2) before a word containing "conftest.", or (3) at the end. 12835 # Note that $ac_compile itself does not contain backslashes and begins 12836 # with a dollar sign (not a hyphen), so the echo should work correctly. 12837 lt_compile=`echo "$ac_compile" | $SED \ 12838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12840 -e 's:$: $lt_compiler_flag:'` 12841 (eval echo "\"\$as_me:12841: $lt_compile\"" >&5) 12842 (eval "$lt_compile" 2>out/conftest.err) 12843 ac_status=$? 12844 cat out/conftest.err >&5 12845 echo "$as_me:12845: \$? = $ac_status" >&5 12846 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12847 then 12848 # The compiler can only warn and ignore the option if not recognized 12849 # So say no if there are warnings 12850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12853 lt_cv_prog_compiler_c_o_CXX=yes 12854 fi 12855 fi 12856 chmod u+w . 2>&5 12857 $rm conftest* 12858 # SGI C++ compiler will create directory out/ii_files/ for 12859 # template instantiation 12860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12861 $rm out/* && rmdir out 12862 cd .. 12863 rmdir conftest 12864 $rm conftest* 12865 12866fi 12867{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12868echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12869 12870 12871hard_links="nottested" 12872if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12873 # do not overwrite the value of need_locks provided by the user 12874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12876 hard_links=yes 12877 $rm conftest* 12878 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12879 touch conftest.a 12880 ln conftest.a conftest.b 2>&5 || hard_links=no 12881 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12882 { echo "$as_me:$LINENO: result: $hard_links" >&5 12883echo "${ECHO_T}$hard_links" >&6; } 12884 if test "$hard_links" = no; then 12885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12887 need_locks=warn 12888 fi 12889else 12890 need_locks=no 12891fi 12892 12893{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12895 12896 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12897 case $host_os in 12898 aix4* | aix5*) 12899 # If we're using GNU nm, then we don't want the "-C" option. 12900 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12902 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' 12903 else 12904 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' 12905 fi 12906 ;; 12907 pw32*) 12908 export_symbols_cmds_CXX="$ltdll_cmds" 12909 ;; 12910 cygwin* | mingw*) 12911 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' 12912 ;; 12913 linux* | k*bsd*-gnu) 12914 link_all_deplibs_CXX=no 12915 ;; 12916 *) 12917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12918 ;; 12919 esac 12920 12921{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12922echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12923test "$ld_shlibs_CXX" = no && can_build_shared=no 12924 12925# 12926# Do we need to explicitly link libc? 12927# 12928case "x$archive_cmds_need_lc_CXX" in 12929x|xyes) 12930 # Assume -lc should be added 12931 archive_cmds_need_lc_CXX=yes 12932 12933 if test "$enable_shared" = yes && test "$GCC" = yes; then 12934 case $archive_cmds_CXX in 12935 *'~'*) 12936 # FIXME: we may have to deal with multi-command sequences. 12937 ;; 12938 '$CC '*) 12939 # Test whether the compiler implicitly links with -lc since on some 12940 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12941 # to ld, don't add -lc before -lgcc. 12942 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12943echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12944 $rm conftest* 12945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12946 12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12948 (eval $ac_compile) 2>&5 12949 ac_status=$? 12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12951 (exit $ac_status); } 2>conftest.err; then 12952 soname=conftest 12953 lib=conftest 12954 libobjs=conftest.$ac_objext 12955 deplibs= 12956 wl=$lt_prog_compiler_wl_CXX 12957 pic_flag=$lt_prog_compiler_pic_CXX 12958 compiler_flags=-v 12959 linker_flags=-v 12960 verstring= 12961 output_objdir=. 12962 libname=conftest 12963 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12964 allow_undefined_flag_CXX= 12965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12966 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12967 ac_status=$? 12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12969 (exit $ac_status); } 12970 then 12971 archive_cmds_need_lc_CXX=no 12972 else 12973 archive_cmds_need_lc_CXX=yes 12974 fi 12975 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12976 else 12977 cat conftest.err 1>&5 12978 fi 12979 $rm conftest* 12980 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12981echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12982 ;; 12983 esac 12984 fi 12985 ;; 12986esac 12987 12988{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12989echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12990library_names_spec= 12991libname_spec='lib$name' 12992soname_spec= 12993shrext_cmds=".so" 12994postinstall_cmds= 12995postuninstall_cmds= 12996finish_cmds= 12997finish_eval= 12998shlibpath_var= 12999shlibpath_overrides_runpath=unknown 13000version_type=none 13001dynamic_linker="$host_os ld.so" 13002sys_lib_dlsearch_path_spec="/lib /usr/lib" 13003if test "$GCC" = yes; then 13004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13006 # if the path contains ";" then we assume it to be the separator 13007 # otherwise default to the standard path separator (i.e. ":") - it is 13008 # assumed that no part of a normal pathname contains ";" but that should 13009 # okay in the real world where ";" in dirpaths is itself problematic. 13010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13011 else 13012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13013 fi 13014else 13015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13016fi 13017need_lib_prefix=unknown 13018hardcode_into_libs=no 13019 13020# when you set need_version to no, make sure it does not cause -set_version 13021# flags to be left without arguments 13022need_version=unknown 13023 13024case $host_os in 13025aix3*) 13026 version_type=linux 13027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13028 shlibpath_var=LIBPATH 13029 13030 # AIX 3 has no versioning support, so we append a major version to the name. 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 ;; 13033 13034aix4* | aix5*) 13035 version_type=linux 13036 need_lib_prefix=no 13037 need_version=no 13038 hardcode_into_libs=yes 13039 if test "$host_cpu" = ia64; then 13040 # AIX 5 supports IA64 13041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13042 shlibpath_var=LD_LIBRARY_PATH 13043 else 13044 # With GCC up to 2.95.x, collect2 would create an import file 13045 # for dependence libraries. The import file would start with 13046 # the line `#! .'. This would cause the generated library to 13047 # depend on `.', always an invalid library. This was fixed in 13048 # development snapshots of GCC prior to 3.0. 13049 case $host_os in 13050 aix4 | aix4.[01] | aix4.[01].*) 13051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13052 echo ' yes ' 13053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13054 : 13055 else 13056 can_build_shared=no 13057 fi 13058 ;; 13059 esac 13060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13061 # soname into executable. Probably we can add versioning support to 13062 # collect2, so additional links can be useful in future. 13063 if test "$aix_use_runtimelinking" = yes; then 13064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13065 # instead of lib<name>.a to let people know that these are not 13066 # typical AIX shared libraries. 13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13068 else 13069 # We preserve .a as extension for shared libraries through AIX4.2 13070 # and later when we are not doing run time linking. 13071 library_names_spec='${libname}${release}.a $libname.a' 13072 soname_spec='${libname}${release}${shared_ext}$major' 13073 fi 13074 shlibpath_var=LIBPATH 13075 fi 13076 ;; 13077 13078amigaos*) 13079 library_names_spec='$libname.ixlibrary $libname.a' 13080 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13081 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' 13082 ;; 13083 13084beos*) 13085 library_names_spec='${libname}${shared_ext}' 13086 dynamic_linker="$host_os ld.so" 13087 shlibpath_var=LIBRARY_PATH 13088 ;; 13089 13090bsdi[45]*) 13091 version_type=linux 13092 need_version=no 13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13094 soname_spec='${libname}${release}${shared_ext}$major' 13095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13096 shlibpath_var=LD_LIBRARY_PATH 13097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13099 # the default ld.so.conf also contains /usr/contrib/lib and 13100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13101 # libtool to hard-code these into programs 13102 ;; 13103 13104cygwin* | mingw* | pw32*) 13105 version_type=windows 13106 shrext_cmds=".dll" 13107 need_version=no 13108 need_lib_prefix=no 13109 13110 case $GCC,$host_os in 13111 yes,cygwin* | yes,mingw* | yes,pw32*) 13112 library_names_spec='$libname.dll.a' 13113 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13114 postinstall_cmds='base_file=`basename \${file}`~ 13115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13116 dldir=$destdir/`dirname \$dlpath`~ 13117 test -d \$dldir || mkdir -p \$dldir~ 13118 $install_prog $dir/$dlname \$dldir/$dlname~ 13119 chmod a+x \$dldir/$dlname' 13120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13121 dlpath=$dir/\$dldll~ 13122 $rm \$dlpath' 13123 shlibpath_overrides_runpath=yes 13124 13125 case $host_os in 13126 cygwin*) 13127 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13130 ;; 13131 mingw*) 13132 # MinGW DLLs use traditional 'lib' prefix 13133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13136 # It is most probably a Windows format PATH printed by 13137 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13138 # path with ; separators, and with drive letters. We can handle the 13139 # drive letters (cygwin fileutils understands them), so leave them, 13140 # especially as we might pass files found there to a mingw objdump, 13141 # which wouldn't understand a cygwinified path. Ahh. 13142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13143 else 13144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13145 fi 13146 ;; 13147 pw32*) 13148 # pw32 DLLs use 'pw' prefix rather than 'lib' 13149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13150 ;; 13151 esac 13152 ;; 13153 13154 *) 13155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13156 ;; 13157 esac 13158 dynamic_linker='Win32 ld.exe' 13159 # FIXME: first we should search . and the directory the executable is in 13160 shlibpath_var=PATH 13161 ;; 13162 13163darwin* | rhapsody*) 13164 dynamic_linker="$host_os dyld" 13165 version_type=darwin 13166 need_lib_prefix=no 13167 need_version=no 13168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13169 soname_spec='${libname}${release}${major}$shared_ext' 13170 shlibpath_overrides_runpath=yes 13171 shlibpath_var=DYLD_LIBRARY_PATH 13172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13174 if test "$GCC" = yes; then 13175 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"` 13176 else 13177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13178 fi 13179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13180 ;; 13181 13182dgux*) 13183 version_type=linux 13184 need_lib_prefix=no 13185 need_version=no 13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13187 soname_spec='${libname}${release}${shared_ext}$major' 13188 shlibpath_var=LD_LIBRARY_PATH 13189 ;; 13190 13191freebsd1*) 13192 dynamic_linker=no 13193 ;; 13194 13195freebsd* | dragonfly*) 13196 # DragonFly does not have aout. When/if they implement a new 13197 # versioning mechanism, adjust this. 13198 if test -x /usr/bin/objformat; then 13199 objformat=`/usr/bin/objformat` 13200 else 13201 case $host_os in 13202 freebsd[123]*) objformat=aout ;; 13203 *) objformat=elf ;; 13204 esac 13205 fi 13206 version_type=freebsd-$objformat 13207 case $version_type in 13208 freebsd-elf*) 13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13210 need_version=no 13211 need_lib_prefix=no 13212 ;; 13213 freebsd-*) 13214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13215 need_version=yes 13216 ;; 13217 esac 13218 shlibpath_var=LD_LIBRARY_PATH 13219 case $host_os in 13220 freebsd2*) 13221 shlibpath_overrides_runpath=yes 13222 ;; 13223 freebsd3.[01]* | freebsdelf3.[01]*) 13224 shlibpath_overrides_runpath=yes 13225 hardcode_into_libs=yes 13226 ;; 13227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13229 shlibpath_overrides_runpath=no 13230 hardcode_into_libs=yes 13231 ;; 13232 freebsd*) # from 4.6 on 13233 shlibpath_overrides_runpath=yes 13234 hardcode_into_libs=yes 13235 ;; 13236 esac 13237 ;; 13238 13239gnu*) 13240 version_type=linux 13241 need_lib_prefix=no 13242 need_version=no 13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13244 soname_spec='${libname}${release}${shared_ext}$major' 13245 shlibpath_var=LD_LIBRARY_PATH 13246 hardcode_into_libs=yes 13247 ;; 13248 13249hpux9* | hpux10* | hpux11*) 13250 # Give a soname corresponding to the major version so that dld.sl refuses to 13251 # link against other versions. 13252 version_type=sunos 13253 need_lib_prefix=no 13254 need_version=no 13255 case $host_cpu in 13256 ia64*) 13257 shrext_cmds='.so' 13258 hardcode_into_libs=yes 13259 dynamic_linker="$host_os dld.so" 13260 shlibpath_var=LD_LIBRARY_PATH 13261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13263 soname_spec='${libname}${release}${shared_ext}$major' 13264 if test "X$HPUX_IA64_MODE" = X32; then 13265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13266 else 13267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13268 fi 13269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13270 ;; 13271 hppa*64*) 13272 shrext_cmds='.sl' 13273 hardcode_into_libs=yes 13274 dynamic_linker="$host_os dld.sl" 13275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13278 soname_spec='${libname}${release}${shared_ext}$major' 13279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13281 ;; 13282 *) 13283 shrext_cmds='.sl' 13284 dynamic_linker="$host_os dld.sl" 13285 shlibpath_var=SHLIB_PATH 13286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13288 soname_spec='${libname}${release}${shared_ext}$major' 13289 ;; 13290 esac 13291 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13292 postinstall_cmds='chmod 555 $lib' 13293 ;; 13294 13295interix3*) 13296 version_type=linux 13297 need_lib_prefix=no 13298 need_version=no 13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13300 soname_spec='${libname}${release}${shared_ext}$major' 13301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13302 shlibpath_var=LD_LIBRARY_PATH 13303 shlibpath_overrides_runpath=no 13304 hardcode_into_libs=yes 13305 ;; 13306 13307irix5* | irix6* | nonstopux*) 13308 case $host_os in 13309 nonstopux*) version_type=nonstopux ;; 13310 *) 13311 if test "$lt_cv_prog_gnu_ld" = yes; then 13312 version_type=linux 13313 else 13314 version_type=irix 13315 fi ;; 13316 esac 13317 need_lib_prefix=no 13318 need_version=no 13319 soname_spec='${libname}${release}${shared_ext}$major' 13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13321 case $host_os in 13322 irix5* | nonstopux*) 13323 libsuff= shlibsuff= 13324 ;; 13325 *) 13326 case $LD in # libtool.m4 will add one of these switches to LD 13327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13328 libsuff= shlibsuff= libmagic=32-bit;; 13329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13330 libsuff=32 shlibsuff=N32 libmagic=N32;; 13331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13332 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13333 *) libsuff= shlibsuff= libmagic=never-match;; 13334 esac 13335 ;; 13336 esac 13337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13338 shlibpath_overrides_runpath=no 13339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13341 hardcode_into_libs=yes 13342 ;; 13343 13344# No shared lib support for Linux oldld, aout, or coff. 13345linux*oldld* | linux*aout* | linux*coff*) 13346 dynamic_linker=no 13347 ;; 13348 13349# This must be Linux ELF. 13350linux* | k*bsd*-gnu) 13351 version_type=linux 13352 need_lib_prefix=no 13353 need_version=no 13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13355 soname_spec='${libname}${release}${shared_ext}$major' 13356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13357 shlibpath_var=LD_LIBRARY_PATH 13358 shlibpath_overrides_runpath=no 13359 # This implies no fast_install, which is unacceptable. 13360 # Some rework will be needed to allow for fast_install 13361 # before this can be enabled. 13362 hardcode_into_libs=yes 13363 13364 # Append ld.so.conf contents to the search path 13365 if test -f /etc/ld.so.conf; then 13366 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' ' '` 13367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13368 fi 13369 13370 # We used to test for /lib/ld.so.1 and disable shared libraries on 13371 # powerpc, because MkLinux only supported shared libraries with the 13372 # GNU dynamic linker. Since this was broken with cross compilers, 13373 # most powerpc-linux boxes support dynamic linking these days and 13374 # people can always --disable-shared, the test was removed, and we 13375 # assume the GNU/Linux dynamic linker is in use. 13376 dynamic_linker='GNU/Linux ld.so' 13377 ;; 13378 13379netbsdelf*-gnu) 13380 version_type=linux 13381 need_lib_prefix=no 13382 need_version=no 13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13384 soname_spec='${libname}${release}${shared_ext}$major' 13385 shlibpath_var=LD_LIBRARY_PATH 13386 shlibpath_overrides_runpath=no 13387 hardcode_into_libs=yes 13388 dynamic_linker='NetBSD ld.elf_so' 13389 ;; 13390 13391netbsd*) 13392 version_type=sunos 13393 need_lib_prefix=no 13394 need_version=no 13395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13398 dynamic_linker='NetBSD (a.out) ld.so' 13399 else 13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13401 soname_spec='${libname}${release}${shared_ext}$major' 13402 dynamic_linker='NetBSD ld.elf_so' 13403 fi 13404 shlibpath_var=LD_LIBRARY_PATH 13405 shlibpath_overrides_runpath=yes 13406 hardcode_into_libs=yes 13407 ;; 13408 13409newsos6) 13410 version_type=linux 13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13412 shlibpath_var=LD_LIBRARY_PATH 13413 shlibpath_overrides_runpath=yes 13414 ;; 13415 13416nto-qnx*) 13417 version_type=linux 13418 need_lib_prefix=no 13419 need_version=no 13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13421 soname_spec='${libname}${release}${shared_ext}$major' 13422 shlibpath_var=LD_LIBRARY_PATH 13423 shlibpath_overrides_runpath=yes 13424 ;; 13425 13426openbsd*) 13427 version_type=sunos 13428 sys_lib_dlsearch_path_spec="/usr/lib" 13429 need_lib_prefix=no 13430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13431 case $host_os in 13432 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13433 *) need_version=no ;; 13434 esac 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13437 shlibpath_var=LD_LIBRARY_PATH 13438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13439 case $host_os in 13440 openbsd2.[89] | openbsd2.[89].*) 13441 shlibpath_overrides_runpath=no 13442 ;; 13443 *) 13444 shlibpath_overrides_runpath=yes 13445 ;; 13446 esac 13447 else 13448 shlibpath_overrides_runpath=yes 13449 fi 13450 ;; 13451 13452os2*) 13453 libname_spec='$name' 13454 shrext_cmds=".dll" 13455 need_lib_prefix=no 13456 library_names_spec='$libname${shared_ext} $libname.a' 13457 dynamic_linker='OS/2 ld.exe' 13458 shlibpath_var=LIBPATH 13459 ;; 13460 13461osf3* | osf4* | osf5*) 13462 version_type=osf 13463 need_lib_prefix=no 13464 need_version=no 13465 soname_spec='${libname}${release}${shared_ext}$major' 13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13470 ;; 13471 13472solaris*) 13473 version_type=linux 13474 need_lib_prefix=no 13475 need_version=no 13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13477 soname_spec='${libname}${release}${shared_ext}$major' 13478 shlibpath_var=LD_LIBRARY_PATH 13479 shlibpath_overrides_runpath=yes 13480 hardcode_into_libs=yes 13481 # ldd complains unless libraries are executable 13482 postinstall_cmds='chmod +x $lib' 13483 ;; 13484 13485sunos4*) 13486 version_type=sunos 13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 shlibpath_overrides_runpath=yes 13491 if test "$with_gnu_ld" = yes; then 13492 need_lib_prefix=no 13493 fi 13494 need_version=yes 13495 ;; 13496 13497sysv4 | sysv4.3*) 13498 version_type=linux 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 shlibpath_var=LD_LIBRARY_PATH 13502 case $host_vendor in 13503 sni) 13504 shlibpath_overrides_runpath=no 13505 need_lib_prefix=no 13506 export_dynamic_flag_spec='${wl}-Blargedynsym' 13507 runpath_var=LD_RUN_PATH 13508 ;; 13509 siemens) 13510 need_lib_prefix=no 13511 ;; 13512 motorola) 13513 need_lib_prefix=no 13514 need_version=no 13515 shlibpath_overrides_runpath=no 13516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13517 ;; 13518 esac 13519 ;; 13520 13521sysv4*MP*) 13522 if test -d /usr/nec ;then 13523 version_type=linux 13524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13525 soname_spec='$libname${shared_ext}.$major' 13526 shlibpath_var=LD_LIBRARY_PATH 13527 fi 13528 ;; 13529 13530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13531 version_type=freebsd-elf 13532 need_lib_prefix=no 13533 need_version=no 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13535 soname_spec='${libname}${release}${shared_ext}$major' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 hardcode_into_libs=yes 13538 if test "$with_gnu_ld" = yes; then 13539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13540 shlibpath_overrides_runpath=no 13541 else 13542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13543 shlibpath_overrides_runpath=yes 13544 case $host_os in 13545 sco3.2v5*) 13546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13547 ;; 13548 esac 13549 fi 13550 sys_lib_dlsearch_path_spec='/usr/lib' 13551 ;; 13552 13553uts4*) 13554 version_type=linux 13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13556 soname_spec='${libname}${release}${shared_ext}$major' 13557 shlibpath_var=LD_LIBRARY_PATH 13558 ;; 13559 13560*) 13561 dynamic_linker=no 13562 ;; 13563esac 13564{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13565echo "${ECHO_T}$dynamic_linker" >&6; } 13566test "$dynamic_linker" = no && can_build_shared=no 13567 13568variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13569if test "$GCC" = yes; then 13570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13571fi 13572 13573{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13574echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13575hardcode_action_CXX= 13576if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13577 test -n "$runpath_var_CXX" || \ 13578 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13579 13580 # We can hardcode non-existant directories. 13581 if test "$hardcode_direct_CXX" != no && 13582 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13583 # have to relink, otherwise we might link with an installed library 13584 # when we should be linking with a yet-to-be-installed one 13585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13586 test "$hardcode_minus_L_CXX" != no; then 13587 # Linking always hardcodes the temporary library directory. 13588 hardcode_action_CXX=relink 13589 else 13590 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13591 hardcode_action_CXX=immediate 13592 fi 13593else 13594 # We cannot hardcode anything, or else we can only hardcode existing 13595 # directories. 13596 hardcode_action_CXX=unsupported 13597fi 13598{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13599echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13600 13601if test "$hardcode_action_CXX" = relink; then 13602 # Fast installation is not supported 13603 enable_fast_install=no 13604elif test "$shlibpath_overrides_runpath" = yes || 13605 test "$enable_shared" = no; then 13606 # Fast installation is not necessary 13607 enable_fast_install=needless 13608fi 13609 13610 13611# The else clause should only fire when bootstrapping the 13612# libtool distribution, otherwise you forgot to ship ltmain.sh 13613# with your package, and you will get complaints that there are 13614# no rules to generate ltmain.sh. 13615if test -f "$ltmain"; then 13616 # See if we are running on zsh, and set the options which allow our commands through 13617 # without removal of \ escapes. 13618 if test -n "${ZSH_VERSION+set}" ; then 13619 setopt NO_GLOB_SUBST 13620 fi 13621 # Now quote all the things that may contain metacharacters while being 13622 # careful not to overquote the AC_SUBSTed values. We take copies of the 13623 # variables and quote the copies for generation of the libtool script. 13624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13625 SED SHELL STRIP \ 13626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13628 deplibs_check_method reload_flag reload_cmds need_locks \ 13629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13630 lt_cv_sys_global_symbol_to_c_name_address \ 13631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13632 old_postinstall_cmds old_postuninstall_cmds \ 13633 compiler_CXX \ 13634 CC_CXX \ 13635 LD_CXX \ 13636 lt_prog_compiler_wl_CXX \ 13637 lt_prog_compiler_pic_CXX \ 13638 lt_prog_compiler_static_CXX \ 13639 lt_prog_compiler_no_builtin_flag_CXX \ 13640 export_dynamic_flag_spec_CXX \ 13641 thread_safe_flag_spec_CXX \ 13642 whole_archive_flag_spec_CXX \ 13643 enable_shared_with_static_runtimes_CXX \ 13644 old_archive_cmds_CXX \ 13645 old_archive_from_new_cmds_CXX \ 13646 predep_objects_CXX \ 13647 postdep_objects_CXX \ 13648 predeps_CXX \ 13649 postdeps_CXX \ 13650 compiler_lib_search_path_CXX \ 13651 archive_cmds_CXX \ 13652 archive_expsym_cmds_CXX \ 13653 postinstall_cmds_CXX \ 13654 postuninstall_cmds_CXX \ 13655 old_archive_from_expsyms_cmds_CXX \ 13656 allow_undefined_flag_CXX \ 13657 no_undefined_flag_CXX \ 13658 export_symbols_cmds_CXX \ 13659 hardcode_libdir_flag_spec_CXX \ 13660 hardcode_libdir_flag_spec_ld_CXX \ 13661 hardcode_libdir_separator_CXX \ 13662 hardcode_automatic_CXX \ 13663 module_cmds_CXX \ 13664 module_expsym_cmds_CXX \ 13665 lt_cv_prog_compiler_c_o_CXX \ 13666 exclude_expsyms_CXX \ 13667 include_expsyms_CXX; do 13668 13669 case $var in 13670 old_archive_cmds_CXX | \ 13671 old_archive_from_new_cmds_CXX | \ 13672 archive_cmds_CXX | \ 13673 archive_expsym_cmds_CXX | \ 13674 module_cmds_CXX | \ 13675 module_expsym_cmds_CXX | \ 13676 old_archive_from_expsyms_cmds_CXX | \ 13677 export_symbols_cmds_CXX | \ 13678 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13679 postinstall_cmds | postuninstall_cmds | \ 13680 old_postinstall_cmds | old_postuninstall_cmds | \ 13681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13682 # Double-quote double-evaled strings. 13683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13684 ;; 13685 *) 13686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13687 ;; 13688 esac 13689 done 13690 13691 case $lt_echo in 13692 *'\$0 --fallback-echo"') 13693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13694 ;; 13695 esac 13696 13697cfgfile="$ofile" 13698 13699 cat <<__EOF__ >> "$cfgfile" 13700# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13701 13702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13703 13704# Shell to use when invoking shell scripts. 13705SHELL=$lt_SHELL 13706 13707# Whether or not to build shared libraries. 13708build_libtool_libs=$enable_shared 13709 13710# Whether or not to build static libraries. 13711build_old_libs=$enable_static 13712 13713# Whether or not to add -lc for building shared libraries. 13714build_libtool_need_lc=$archive_cmds_need_lc_CXX 13715 13716# Whether or not to disallow shared libs when runtime libs are static 13717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13718 13719# Whether or not to optimize for fast installation. 13720fast_install=$enable_fast_install 13721 13722# The host system. 13723host_alias=$host_alias 13724host=$host 13725host_os=$host_os 13726 13727# The build system. 13728build_alias=$build_alias 13729build=$build 13730build_os=$build_os 13731 13732# An echo program that does not interpret backslashes. 13733echo=$lt_echo 13734 13735# The archiver. 13736AR=$lt_AR 13737AR_FLAGS=$lt_AR_FLAGS 13738 13739# A C compiler. 13740LTCC=$lt_LTCC 13741 13742# LTCC compiler flags. 13743LTCFLAGS=$lt_LTCFLAGS 13744 13745# A language-specific compiler. 13746CC=$lt_compiler_CXX 13747 13748# Is the compiler the GNU C compiler? 13749with_gcc=$GCC_CXX 13750 13751# An ERE matcher. 13752EGREP=$lt_EGREP 13753 13754# The linker used to build libraries. 13755LD=$lt_LD_CXX 13756 13757# Whether we need hard or soft links. 13758LN_S=$lt_LN_S 13759 13760# A BSD-compatible nm program. 13761NM=$lt_NM 13762 13763# A symbol stripping program 13764STRIP=$lt_STRIP 13765 13766# Used to examine libraries when file_magic_cmd begins "file" 13767MAGIC_CMD=$MAGIC_CMD 13768 13769# Used on cygwin: DLL creation program. 13770DLLTOOL="$DLLTOOL" 13771 13772# Used on cygwin: object dumper. 13773OBJDUMP="$OBJDUMP" 13774 13775# Used on cygwin: assembler. 13776AS="$AS" 13777 13778# The name of the directory that contains temporary libtool files. 13779objdir=$objdir 13780 13781# How to create reloadable object files. 13782reload_flag=$lt_reload_flag 13783reload_cmds=$lt_reload_cmds 13784 13785# How to pass a linker flag through the compiler. 13786wl=$lt_lt_prog_compiler_wl_CXX 13787 13788# Object file suffix (normally "o"). 13789objext="$ac_objext" 13790 13791# Old archive suffix (normally "a"). 13792libext="$libext" 13793 13794# Shared library suffix (normally ".so"). 13795shrext_cmds='$shrext_cmds' 13796 13797# Executable file suffix (normally ""). 13798exeext="$exeext" 13799 13800# Additional compiler flags for building library objects. 13801pic_flag=$lt_lt_prog_compiler_pic_CXX 13802pic_mode=$pic_mode 13803 13804# What is the maximum length of a command? 13805max_cmd_len=$lt_cv_sys_max_cmd_len 13806 13807# Does compiler simultaneously support -c and -o options? 13808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13809 13810# Must we lock files when doing compilation? 13811need_locks=$lt_need_locks 13812 13813# Do we need the lib prefix for modules? 13814need_lib_prefix=$need_lib_prefix 13815 13816# Do we need a version for libraries? 13817need_version=$need_version 13818 13819# Whether dlopen is supported. 13820dlopen_support=$enable_dlopen 13821 13822# Whether dlopen of programs is supported. 13823dlopen_self=$enable_dlopen_self 13824 13825# Whether dlopen of statically linked programs is supported. 13826dlopen_self_static=$enable_dlopen_self_static 13827 13828# Compiler flag to prevent dynamic linking. 13829link_static_flag=$lt_lt_prog_compiler_static_CXX 13830 13831# Compiler flag to turn off builtin functions. 13832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13833 13834# Compiler flag to allow reflexive dlopens. 13835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13836 13837# Compiler flag to generate shared objects directly from archives. 13838whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13839 13840# Compiler flag to generate thread-safe objects. 13841thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13842 13843# Library versioning type. 13844version_type=$version_type 13845 13846# Format of library name prefix. 13847libname_spec=$lt_libname_spec 13848 13849# List of archive names. First name is the real one, the rest are links. 13850# The last name is the one that the linker finds with -lNAME. 13851library_names_spec=$lt_library_names_spec 13852 13853# The coded name of the library, if different from the real name. 13854soname_spec=$lt_soname_spec 13855 13856# Commands used to build and install an old-style archive. 13857RANLIB=$lt_RANLIB 13858old_archive_cmds=$lt_old_archive_cmds_CXX 13859old_postinstall_cmds=$lt_old_postinstall_cmds 13860old_postuninstall_cmds=$lt_old_postuninstall_cmds 13861 13862# Create an old-style archive from a shared archive. 13863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13864 13865# Create a temporary old-style archive to link instead of a shared archive. 13866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13867 13868# Commands used to build and install a shared archive. 13869archive_cmds=$lt_archive_cmds_CXX 13870archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13871postinstall_cmds=$lt_postinstall_cmds 13872postuninstall_cmds=$lt_postuninstall_cmds 13873 13874# Commands used to build a loadable module (assumed same as above if empty) 13875module_cmds=$lt_module_cmds_CXX 13876module_expsym_cmds=$lt_module_expsym_cmds_CXX 13877 13878# Commands to strip libraries. 13879old_striplib=$lt_old_striplib 13880striplib=$lt_striplib 13881 13882# Dependencies to place before the objects being linked to create a 13883# shared library. 13884predep_objects=$lt_predep_objects_CXX 13885 13886# Dependencies to place after the objects being linked to create a 13887# shared library. 13888postdep_objects=$lt_postdep_objects_CXX 13889 13890# Dependencies to place before the objects being linked to create a 13891# shared library. 13892predeps=$lt_predeps_CXX 13893 13894# Dependencies to place after the objects being linked to create a 13895# shared library. 13896postdeps=$lt_postdeps_CXX 13897 13898# The library search path used internally by the compiler when linking 13899# a shared library. 13900compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13901 13902# Method to check whether dependent libraries are shared objects. 13903deplibs_check_method=$lt_deplibs_check_method 13904 13905# Command to use when deplibs_check_method == file_magic. 13906file_magic_cmd=$lt_file_magic_cmd 13907 13908# Flag that allows shared libraries with undefined symbols to be built. 13909allow_undefined_flag=$lt_allow_undefined_flag_CXX 13910 13911# Flag that forces no undefined symbols. 13912no_undefined_flag=$lt_no_undefined_flag_CXX 13913 13914# Commands used to finish a libtool library installation in a directory. 13915finish_cmds=$lt_finish_cmds 13916 13917# Same as above, but a single script fragment to be evaled but not shown. 13918finish_eval=$lt_finish_eval 13919 13920# Take the output of nm and produce a listing of raw symbols and C names. 13921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13922 13923# Transform the output of nm in a proper C declaration 13924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13925 13926# Transform the output of nm in a C name address pair 13927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13928 13929# This is the shared library runtime path variable. 13930runpath_var=$runpath_var 13931 13932# This is the shared library path variable. 13933shlibpath_var=$shlibpath_var 13934 13935# Is shlibpath searched before the hard-coded library search path? 13936shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13937 13938# How to hardcode a shared library path into an executable. 13939hardcode_action=$hardcode_action_CXX 13940 13941# Whether we should hardcode library paths into libraries. 13942hardcode_into_libs=$hardcode_into_libs 13943 13944# Flag to hardcode \$libdir into a binary during linking. 13945# This must work even if \$libdir does not exist. 13946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13947 13948# If ld is used when linking, flag to hardcode \$libdir into 13949# a binary during linking. This must work even if \$libdir does 13950# not exist. 13951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13952 13953# Whether we need a single -rpath flag with a separated argument. 13954hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13955 13956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13957# resulting binary. 13958hardcode_direct=$hardcode_direct_CXX 13959 13960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13961# resulting binary. 13962hardcode_minus_L=$hardcode_minus_L_CXX 13963 13964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13965# the resulting binary. 13966hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13967 13968# Set to yes if building a shared library automatically hardcodes DIR into the library 13969# and all subsequent libraries and executables linked against it. 13970hardcode_automatic=$hardcode_automatic_CXX 13971 13972# Variables whose values should be saved in libtool wrapper scripts and 13973# restored at relink time. 13974variables_saved_for_relink="$variables_saved_for_relink" 13975 13976# Whether libtool must link a program against all its dependency libraries. 13977link_all_deplibs=$link_all_deplibs_CXX 13978 13979# Compile-time system search path for libraries 13980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13981 13982# Run-time system search path for libraries 13983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13984 13985# Fix the shell variable \$srcfile for the compiler. 13986fix_srcfile_path="$fix_srcfile_path_CXX" 13987 13988# Set to yes if exported symbols are required. 13989always_export_symbols=$always_export_symbols_CXX 13990 13991# The commands to list exported symbols. 13992export_symbols_cmds=$lt_export_symbols_cmds_CXX 13993 13994# The commands to extract the exported symbol list from a shared archive. 13995extract_expsyms_cmds=$lt_extract_expsyms_cmds 13996 13997# Symbols that should not be listed in the preloaded symbols. 13998exclude_expsyms=$lt_exclude_expsyms_CXX 13999 14000# Symbols that must always be exported. 14001include_expsyms=$lt_include_expsyms_CXX 14002 14003# ### END LIBTOOL TAG CONFIG: $tagname 14004 14005__EOF__ 14006 14007 14008else 14009 # If there is no Makefile yet, we rely on a make rule to execute 14010 # `config.status --recheck' to rerun these tests and create the 14011 # libtool script then. 14012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14013 if test -f "$ltmain_in"; then 14014 test -f Makefile && make "$ltmain" 14015 fi 14016fi 14017 14018 14019ac_ext=c 14020ac_cpp='$CPP $CPPFLAGS' 14021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14023ac_compiler_gnu=$ac_cv_c_compiler_gnu 14024 14025CC=$lt_save_CC 14026LDCXX=$LD 14027LD=$lt_save_LD 14028GCC=$lt_save_GCC 14029with_gnu_ldcxx=$with_gnu_ld 14030with_gnu_ld=$lt_save_with_gnu_ld 14031lt_cv_path_LDCXX=$lt_cv_path_LD 14032lt_cv_path_LD=$lt_save_path_LD 14033lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14034lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14035 14036 else 14037 tagname="" 14038 fi 14039 ;; 14040 14041 F77) 14042 if test -n "$F77" && test "X$F77" != "Xno"; then 14043 14044ac_ext=f 14045ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14046ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14047ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14048 14049 14050archive_cmds_need_lc_F77=no 14051allow_undefined_flag_F77= 14052always_export_symbols_F77=no 14053archive_expsym_cmds_F77= 14054export_dynamic_flag_spec_F77= 14055hardcode_direct_F77=no 14056hardcode_libdir_flag_spec_F77= 14057hardcode_libdir_flag_spec_ld_F77= 14058hardcode_libdir_separator_F77= 14059hardcode_minus_L_F77=no 14060hardcode_automatic_F77=no 14061module_cmds_F77= 14062module_expsym_cmds_F77= 14063link_all_deplibs_F77=unknown 14064old_archive_cmds_F77=$old_archive_cmds 14065no_undefined_flag_F77= 14066whole_archive_flag_spec_F77= 14067enable_shared_with_static_runtimes_F77=no 14068 14069# Source file extension for f77 test sources. 14070ac_ext=f 14071 14072# Object file extension for compiled f77 test sources. 14073objext=o 14074objext_F77=$objext 14075 14076# Code to be used in simple compile tests 14077lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14078 14079# Code to be used in simple link tests 14080lt_simple_link_test_code=" program t\n end\n" 14081 14082# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14083 14084# If no C compiler was specified, use CC. 14085LTCC=${LTCC-"$CC"} 14086 14087# If no C compiler flags were specified, use CFLAGS. 14088LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14089 14090# Allow CC to be a program name with arguments. 14091compiler=$CC 14092 14093 14094# save warnings/boilerplate of simple test code 14095ac_outfile=conftest.$ac_objext 14096printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14098_lt_compiler_boilerplate=`cat conftest.err` 14099$rm conftest* 14100 14101ac_outfile=conftest.$ac_objext 14102printf "$lt_simple_link_test_code" >conftest.$ac_ext 14103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14104_lt_linker_boilerplate=`cat conftest.err` 14105$rm conftest* 14106 14107 14108# Allow CC to be a program name with arguments. 14109lt_save_CC="$CC" 14110CC=${F77-"f77"} 14111compiler=$CC 14112compiler_F77=$CC 14113for cc_temp in $compiler""; do 14114 case $cc_temp in 14115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14117 \-*) ;; 14118 *) break;; 14119 esac 14120done 14121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14122 14123 14124{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14125echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14126{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14127echo "${ECHO_T}$can_build_shared" >&6; } 14128 14129{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14130echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14131test "$can_build_shared" = "no" && enable_shared=no 14132 14133# On AIX, shared libraries and static libraries use the same namespace, and 14134# are all built from PIC. 14135case $host_os in 14136aix3*) 14137 test "$enable_shared" = yes && enable_static=no 14138 if test -n "$RANLIB"; then 14139 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14140 postinstall_cmds='$RANLIB $lib' 14141 fi 14142 ;; 14143aix4* | aix5*) 14144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14145 test "$enable_shared" = yes && enable_static=no 14146 fi 14147 ;; 14148esac 14149{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14150echo "${ECHO_T}$enable_shared" >&6; } 14151 14152{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14153echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14154# Make sure either enable_shared or enable_static is yes. 14155test "$enable_shared" = yes || enable_static=yes 14156{ echo "$as_me:$LINENO: result: $enable_static" >&5 14157echo "${ECHO_T}$enable_static" >&6; } 14158 14159GCC_F77="$G77" 14160LD_F77="$LD" 14161 14162lt_prog_compiler_wl_F77= 14163lt_prog_compiler_pic_F77= 14164lt_prog_compiler_static_F77= 14165 14166{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14167echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14168 14169 if test "$GCC" = yes; then 14170 lt_prog_compiler_wl_F77='-Wl,' 14171 lt_prog_compiler_static_F77='-static' 14172 14173 case $host_os in 14174 aix*) 14175 # All AIX code is PIC. 14176 if test "$host_cpu" = ia64; then 14177 # AIX 5 now supports IA64 processor 14178 lt_prog_compiler_static_F77='-Bstatic' 14179 fi 14180 ;; 14181 14182 amigaos*) 14183 # FIXME: we need at least 68020 code to build shared libraries, but 14184 # adding the `-m68020' flag to GCC prevents building anything better, 14185 # like `-m68040'. 14186 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14187 ;; 14188 14189 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14190 # PIC is the default for these OSes. 14191 ;; 14192 14193 mingw* | pw32* | os2*) 14194 # This hack is so that the source file can tell whether it is being 14195 # built for inclusion in a dll (and should export symbols for example). 14196 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14197 ;; 14198 14199 darwin* | rhapsody*) 14200 # PIC is the default on this platform 14201 # Common symbols not allowed in MH_DYLIB files 14202 lt_prog_compiler_pic_F77='-fno-common' 14203 ;; 14204 14205 interix3*) 14206 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14207 # Instead, we relocate shared libraries at runtime. 14208 ;; 14209 14210 msdosdjgpp*) 14211 # Just because we use GCC doesn't mean we suddenly get shared libraries 14212 # on systems that don't support them. 14213 lt_prog_compiler_can_build_shared_F77=no 14214 enable_shared=no 14215 ;; 14216 14217 sysv4*MP*) 14218 if test -d /usr/nec; then 14219 lt_prog_compiler_pic_F77=-Kconform_pic 14220 fi 14221 ;; 14222 14223 hpux*) 14224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14225 # not for PA HP-UX. 14226 case $host_cpu in 14227 hppa*64*|ia64*) 14228 # +Z the default 14229 ;; 14230 *) 14231 lt_prog_compiler_pic_F77='-fPIC' 14232 ;; 14233 esac 14234 ;; 14235 14236 *) 14237 lt_prog_compiler_pic_F77='-fPIC' 14238 ;; 14239 esac 14240 else 14241 # PORTME Check for flag to pass linker flags through the system compiler. 14242 case $host_os in 14243 aix*) 14244 lt_prog_compiler_wl_F77='-Wl,' 14245 if test "$host_cpu" = ia64; then 14246 # AIX 5 now supports IA64 processor 14247 lt_prog_compiler_static_F77='-Bstatic' 14248 else 14249 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14250 fi 14251 ;; 14252 darwin*) 14253 # PIC is the default on this platform 14254 # Common symbols not allowed in MH_DYLIB files 14255 case $cc_basename in 14256 xlc*) 14257 lt_prog_compiler_pic_F77='-qnocommon' 14258 lt_prog_compiler_wl_F77='-Wl,' 14259 ;; 14260 esac 14261 ;; 14262 14263 mingw* | pw32* | os2*) 14264 # This hack is so that the source file can tell whether it is being 14265 # built for inclusion in a dll (and should export symbols for example). 14266 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14267 ;; 14268 14269 hpux9* | hpux10* | hpux11*) 14270 lt_prog_compiler_wl_F77='-Wl,' 14271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14272 # not for PA HP-UX. 14273 case $host_cpu in 14274 hppa*64*|ia64*) 14275 # +Z the default 14276 ;; 14277 *) 14278 lt_prog_compiler_pic_F77='+Z' 14279 ;; 14280 esac 14281 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14282 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14283 ;; 14284 14285 irix5* | irix6* | nonstopux*) 14286 lt_prog_compiler_wl_F77='-Wl,' 14287 # PIC (with -KPIC) is the default. 14288 lt_prog_compiler_static_F77='-non_shared' 14289 ;; 14290 14291 newsos6) 14292 lt_prog_compiler_pic_F77='-KPIC' 14293 lt_prog_compiler_static_F77='-Bstatic' 14294 ;; 14295 14296 linux* | k*bsd*-gnu) 14297 case $cc_basename in 14298 icc* | ecc*) 14299 lt_prog_compiler_wl_F77='-Wl,' 14300 lt_prog_compiler_pic_F77='-KPIC' 14301 lt_prog_compiler_static_F77='-static' 14302 ;; 14303 pgcc* | pgf77* | pgf90* | pgf95*) 14304 # Portland Group compilers (*not* the Pentium gcc compiler, 14305 # which looks to be a dead project) 14306 lt_prog_compiler_wl_F77='-Wl,' 14307 lt_prog_compiler_pic_F77='-fpic' 14308 lt_prog_compiler_static_F77='-Bstatic' 14309 ;; 14310 ccc*) 14311 lt_prog_compiler_wl_F77='-Wl,' 14312 # All Alpha code is PIC. 14313 lt_prog_compiler_static_F77='-non_shared' 14314 ;; 14315 esac 14316 ;; 14317 14318 osf3* | osf4* | osf5*) 14319 lt_prog_compiler_wl_F77='-Wl,' 14320 # All OSF/1 code is PIC. 14321 lt_prog_compiler_static_F77='-non_shared' 14322 ;; 14323 14324 solaris*) 14325 lt_prog_compiler_pic_F77='-KPIC' 14326 lt_prog_compiler_static_F77='-Bstatic' 14327 case $cc_basename in 14328 f77* | f90* | f95*) 14329 lt_prog_compiler_wl_F77='-Qoption ld ';; 14330 *) 14331 lt_prog_compiler_wl_F77='-Wl,';; 14332 esac 14333 ;; 14334 14335 sunos4*) 14336 lt_prog_compiler_wl_F77='-Qoption ld ' 14337 lt_prog_compiler_pic_F77='-PIC' 14338 lt_prog_compiler_static_F77='-Bstatic' 14339 ;; 14340 14341 sysv4 | sysv4.2uw2* | sysv4.3*) 14342 lt_prog_compiler_wl_F77='-Wl,' 14343 lt_prog_compiler_pic_F77='-KPIC' 14344 lt_prog_compiler_static_F77='-Bstatic' 14345 ;; 14346 14347 sysv4*MP*) 14348 if test -d /usr/nec ;then 14349 lt_prog_compiler_pic_F77='-Kconform_pic' 14350 lt_prog_compiler_static_F77='-Bstatic' 14351 fi 14352 ;; 14353 14354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14355 lt_prog_compiler_wl_F77='-Wl,' 14356 lt_prog_compiler_pic_F77='-KPIC' 14357 lt_prog_compiler_static_F77='-Bstatic' 14358 ;; 14359 14360 unicos*) 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 lt_prog_compiler_can_build_shared_F77=no 14363 ;; 14364 14365 uts4*) 14366 lt_prog_compiler_pic_F77='-pic' 14367 lt_prog_compiler_static_F77='-Bstatic' 14368 ;; 14369 14370 *) 14371 lt_prog_compiler_can_build_shared_F77=no 14372 ;; 14373 esac 14374 fi 14375 14376{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14377echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14378 14379# 14380# Check to make sure the PIC flag actually works. 14381# 14382if test -n "$lt_prog_compiler_pic_F77"; then 14383 14384{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14385echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14386if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14387 echo $ECHO_N "(cached) $ECHO_C" >&6 14388else 14389 lt_prog_compiler_pic_works_F77=no 14390 ac_outfile=conftest.$ac_objext 14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14392 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14393 # Insert the option either (1) after the last *FLAGS variable, or 14394 # (2) before a word containing "conftest.", or (3) at the end. 14395 # Note that $ac_compile itself does not contain backslashes and begins 14396 # with a dollar sign (not a hyphen), so the echo should work correctly. 14397 # The option is referenced via a variable to avoid confusing sed. 14398 lt_compile=`echo "$ac_compile" | $SED \ 14399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14401 -e 's:$: $lt_compiler_flag:'` 14402 (eval echo "\"\$as_me:14402: $lt_compile\"" >&5) 14403 (eval "$lt_compile" 2>conftest.err) 14404 ac_status=$? 14405 cat conftest.err >&5 14406 echo "$as_me:14406: \$? = $ac_status" >&5 14407 if (exit $ac_status) && test -s "$ac_outfile"; then 14408 # The compiler can only warn and ignore the option if not recognized 14409 # So say no if there are warnings other than the usual output. 14410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14413 lt_prog_compiler_pic_works_F77=yes 14414 fi 14415 fi 14416 $rm conftest* 14417 14418fi 14419{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14420echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14421 14422if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14423 case $lt_prog_compiler_pic_F77 in 14424 "" | " "*) ;; 14425 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14426 esac 14427else 14428 lt_prog_compiler_pic_F77= 14429 lt_prog_compiler_can_build_shared_F77=no 14430fi 14431 14432fi 14433case $host_os in 14434 # For platforms which do not support PIC, -DPIC is meaningless: 14435 *djgpp*) 14436 lt_prog_compiler_pic_F77= 14437 ;; 14438 *) 14439 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14440 ;; 14441esac 14442 14443# 14444# Check to make sure the static flag actually works. 14445# 14446wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14447{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14449if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14450 echo $ECHO_N "(cached) $ECHO_C" >&6 14451else 14452 lt_prog_compiler_static_works_F77=no 14453 save_LDFLAGS="$LDFLAGS" 14454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14455 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14457 # The linker can only warn and ignore the option if not recognized 14458 # So say no if there are warnings 14459 if test -s conftest.err; then 14460 # Append any errors to the config.log. 14461 cat conftest.err 1>&5 14462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14464 if diff conftest.exp conftest.er2 >/dev/null; then 14465 lt_prog_compiler_static_works_F77=yes 14466 fi 14467 else 14468 lt_prog_compiler_static_works_F77=yes 14469 fi 14470 fi 14471 $rm conftest* 14472 LDFLAGS="$save_LDFLAGS" 14473 14474fi 14475{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14476echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14477 14478if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14479 : 14480else 14481 lt_prog_compiler_static_F77= 14482fi 14483 14484 14485{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14486echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14487if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14488 echo $ECHO_N "(cached) $ECHO_C" >&6 14489else 14490 lt_cv_prog_compiler_c_o_F77=no 14491 $rm -r conftest 2>/dev/null 14492 mkdir conftest 14493 cd conftest 14494 mkdir out 14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14496 14497 lt_compiler_flag="-o out/conftest2.$ac_objext" 14498 # Insert the option either (1) after the last *FLAGS variable, or 14499 # (2) before a word containing "conftest.", or (3) at the end. 14500 # Note that $ac_compile itself does not contain backslashes and begins 14501 # with a dollar sign (not a hyphen), so the echo should work correctly. 14502 lt_compile=`echo "$ac_compile" | $SED \ 14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14505 -e 's:$: $lt_compiler_flag:'` 14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5) 14507 (eval "$lt_compile" 2>out/conftest.err) 14508 ac_status=$? 14509 cat out/conftest.err >&5 14510 echo "$as_me:14510: \$? = $ac_status" >&5 14511 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14512 then 14513 # The compiler can only warn and ignore the option if not recognized 14514 # So say no if there are warnings 14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14518 lt_cv_prog_compiler_c_o_F77=yes 14519 fi 14520 fi 14521 chmod u+w . 2>&5 14522 $rm conftest* 14523 # SGI C++ compiler will create directory out/ii_files/ for 14524 # template instantiation 14525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14526 $rm out/* && rmdir out 14527 cd .. 14528 rmdir conftest 14529 $rm conftest* 14530 14531fi 14532{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14533echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14534 14535 14536hard_links="nottested" 14537if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14538 # do not overwrite the value of need_locks provided by the user 14539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14540echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14541 hard_links=yes 14542 $rm conftest* 14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14544 touch conftest.a 14545 ln conftest.a conftest.b 2>&5 || hard_links=no 14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14547 { echo "$as_me:$LINENO: result: $hard_links" >&5 14548echo "${ECHO_T}$hard_links" >&6; } 14549 if test "$hard_links" = no; then 14550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14551echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14552 need_locks=warn 14553 fi 14554else 14555 need_locks=no 14556fi 14557 14558{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14559echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14560 14561 runpath_var= 14562 allow_undefined_flag_F77= 14563 enable_shared_with_static_runtimes_F77=no 14564 archive_cmds_F77= 14565 archive_expsym_cmds_F77= 14566 old_archive_From_new_cmds_F77= 14567 old_archive_from_expsyms_cmds_F77= 14568 export_dynamic_flag_spec_F77= 14569 whole_archive_flag_spec_F77= 14570 thread_safe_flag_spec_F77= 14571 hardcode_libdir_flag_spec_F77= 14572 hardcode_libdir_flag_spec_ld_F77= 14573 hardcode_libdir_separator_F77= 14574 hardcode_direct_F77=no 14575 hardcode_minus_L_F77=no 14576 hardcode_shlibpath_var_F77=unsupported 14577 link_all_deplibs_F77=unknown 14578 hardcode_automatic_F77=no 14579 module_cmds_F77= 14580 module_expsym_cmds_F77= 14581 always_export_symbols_F77=no 14582 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14583 # include_expsyms should be a list of space-separated symbols to be *always* 14584 # included in the symbol list 14585 include_expsyms_F77= 14586 # exclude_expsyms can be an extended regexp of symbols to exclude 14587 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14589 # as well as any symbol that contains `d'. 14590 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14592 # platforms (ab)use it in PIC code, but their linkers get confused if 14593 # the symbol is explicitly referenced. Since portable code cannot 14594 # rely on this symbol name, it's probably fine to never include it in 14595 # preloaded symbol tables. 14596 extract_expsyms_cmds= 14597 # Just being paranoid about ensuring that cc_basename is set. 14598 for cc_temp in $compiler""; do 14599 case $cc_temp in 14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14602 \-*) ;; 14603 *) break;; 14604 esac 14605done 14606cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14607 14608 case $host_os in 14609 cygwin* | mingw* | pw32*) 14610 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14611 # When not using gcc, we currently assume that we are using 14612 # Microsoft Visual C++. 14613 if test "$GCC" != yes; then 14614 with_gnu_ld=no 14615 fi 14616 ;; 14617 interix*) 14618 # we just hope/assume this is gcc and not c89 (= MSVC++) 14619 with_gnu_ld=yes 14620 ;; 14621 openbsd*) 14622 with_gnu_ld=no 14623 ;; 14624 esac 14625 14626 ld_shlibs_F77=yes 14627 if test "$with_gnu_ld" = yes; then 14628 # If archive_cmds runs LD, not CC, wlarc should be empty 14629 wlarc='${wl}' 14630 14631 # Set some defaults for GNU ld with shared library support. These 14632 # are reset later if shared libraries are not supported. Putting them 14633 # here allows them to be overridden if necessary. 14634 runpath_var=LD_RUN_PATH 14635 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14636 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14637 # ancient GNU ld didn't support --whole-archive et. al. 14638 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14639 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14640 else 14641 whole_archive_flag_spec_F77= 14642 fi 14643 supports_anon_versioning=no 14644 case `$LD -v 2>/dev/null` in 14645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14648 *\ 2.11.*) ;; # other 2.11 versions 14649 *) supports_anon_versioning=yes ;; 14650 esac 14651 14652 # See if GNU ld supports shared libraries. 14653 case $host_os in 14654 aix3* | aix4* | aix5*) 14655 # On AIX/PPC, the GNU linker is very broken 14656 if test "$host_cpu" != ia64; then 14657 ld_shlibs_F77=no 14658 cat <<EOF 1>&2 14659 14660*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14661*** to be unable to reliably create shared libraries on AIX. 14662*** Therefore, libtool is disabling shared libraries support. If you 14663*** really care for shared libraries, you may want to modify your PATH 14664*** so that a non-GNU linker is found, and then restart. 14665 14666EOF 14667 fi 14668 ;; 14669 14670 amigaos*) 14671 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)' 14672 hardcode_libdir_flag_spec_F77='-L$libdir' 14673 hardcode_minus_L_F77=yes 14674 14675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14676 # that the semantics of dynamic libraries on AmigaOS, at least up 14677 # to version 4, is to share data among multiple programs linked 14678 # with the same dynamic library. Since this doesn't match the 14679 # behavior of shared libraries on other platforms, we can't use 14680 # them. 14681 ld_shlibs_F77=no 14682 ;; 14683 14684 beos*) 14685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14686 allow_undefined_flag_F77=unsupported 14687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14688 # support --undefined. This deserves some investigation. FIXME 14689 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14690 else 14691 ld_shlibs_F77=no 14692 fi 14693 ;; 14694 14695 cygwin* | mingw* | pw32*) 14696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14697 # as there is no search path for DLLs. 14698 hardcode_libdir_flag_spec_F77='-L$libdir' 14699 allow_undefined_flag_F77=unsupported 14700 always_export_symbols_F77=no 14701 enable_shared_with_static_runtimes_F77=yes 14702 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14703 14704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14706 # If the export-symbols file already is a .def file (1st line 14707 # is EXPORTS), use it as is; otherwise, prepend... 14708 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14709 cp $export_symbols $output_objdir/$soname.def; 14710 else 14711 echo EXPORTS > $output_objdir/$soname.def; 14712 cat $export_symbols >> $output_objdir/$soname.def; 14713 fi~ 14714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14715 else 14716 ld_shlibs_F77=no 14717 fi 14718 ;; 14719 14720 interix3*) 14721 hardcode_direct_F77=no 14722 hardcode_shlibpath_var_F77=no 14723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14724 export_dynamic_flag_spec_F77='${wl}-E' 14725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14726 # Instead, shared libraries are loaded at an image base (0x10000000 by 14727 # default) and relocated if they conflict, which is a slow very memory 14728 # consuming and fragmenting process. To avoid this, we pick a random, 14729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14730 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14731 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' 14732 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' 14733 ;; 14734 14735 linux* | k*bsd*-gnu) 14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14737 tmp_addflag= 14738 case $cc_basename,$host_cpu in 14739 pgcc*) # Portland Group C compiler 14740 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' 14741 tmp_addflag=' $pic_flag' 14742 ;; 14743 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14744 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' 14745 tmp_addflag=' $pic_flag -Mnomain' ;; 14746 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14747 tmp_addflag=' -i_dynamic' ;; 14748 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14749 tmp_addflag=' -i_dynamic -nofor_main' ;; 14750 ifc* | ifort*) # Intel Fortran compiler 14751 tmp_addflag=' -nofor_main' ;; 14752 esac 14753 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14754 14755 if test $supports_anon_versioning = yes; then 14756 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14758 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14759 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14760 fi 14761 link_all_deplibs_F77=no 14762 else 14763 ld_shlibs_F77=no 14764 fi 14765 ;; 14766 14767 netbsd* | netbsdelf*-gnu) 14768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14769 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14770 wlarc= 14771 else 14772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14774 fi 14775 ;; 14776 14777 solaris*) 14778 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14779 ld_shlibs_F77=no 14780 cat <<EOF 1>&2 14781 14782*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14783*** create shared libraries on Solaris systems. Therefore, libtool 14784*** is disabling shared libraries support. We urge you to upgrade GNU 14785*** binutils to release 2.9.1 or newer. Another option is to modify 14786*** your PATH or compiler configuration so that the native linker is 14787*** used, and then restart. 14788 14789EOF 14790 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14791 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14792 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14793 else 14794 ld_shlibs_F77=no 14795 fi 14796 ;; 14797 14798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14799 case `$LD -v 2>&1` in 14800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14801 ld_shlibs_F77=no 14802 cat <<_LT_EOF 1>&2 14803 14804*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14805*** reliably create shared libraries on SCO systems. Therefore, libtool 14806*** is disabling shared libraries support. We urge you to upgrade GNU 14807*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14808*** your PATH or compiler configuration so that the native linker is 14809*** used, and then restart. 14810 14811_LT_EOF 14812 ;; 14813 *) 14814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14815 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14816 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14817 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14818 else 14819 ld_shlibs_F77=no 14820 fi 14821 ;; 14822 esac 14823 ;; 14824 14825 sunos4*) 14826 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14827 wlarc= 14828 hardcode_direct_F77=yes 14829 hardcode_shlibpath_var_F77=no 14830 ;; 14831 14832 *) 14833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14834 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14835 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14836 else 14837 ld_shlibs_F77=no 14838 fi 14839 ;; 14840 esac 14841 14842 if test "$ld_shlibs_F77" = no; then 14843 runpath_var= 14844 hardcode_libdir_flag_spec_F77= 14845 export_dynamic_flag_spec_F77= 14846 whole_archive_flag_spec_F77= 14847 fi 14848 else 14849 # PORTME fill in a description of your system's linker (not GNU ld) 14850 case $host_os in 14851 aix3*) 14852 allow_undefined_flag_F77=unsupported 14853 always_export_symbols_F77=yes 14854 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' 14855 # Note: this linker hardcodes the directories in LIBPATH if there 14856 # are no directories specified by -L. 14857 hardcode_minus_L_F77=yes 14858 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14859 # Neither direct hardcoding nor static linking is supported with a 14860 # broken collect2. 14861 hardcode_direct_F77=unsupported 14862 fi 14863 ;; 14864 14865 aix4* | aix5*) 14866 if test "$host_cpu" = ia64; then 14867 # On IA64, the linker does run time linking by default, so we don't 14868 # have to do anything special. 14869 aix_use_runtimelinking=no 14870 exp_sym_flag='-Bexport' 14871 no_entry_flag="" 14872 else 14873 # If we're using GNU nm, then we don't want the "-C" option. 14874 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14875 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14876 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' 14877 else 14878 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' 14879 fi 14880 aix_use_runtimelinking=no 14881 14882 # Test if we are trying to use run time linking or normal 14883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14884 # need to do runtime linking. 14885 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14886 for ld_flag in $LDFLAGS; do 14887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14888 aix_use_runtimelinking=yes 14889 break 14890 fi 14891 done 14892 ;; 14893 esac 14894 14895 exp_sym_flag='-bexport' 14896 no_entry_flag='-bnoentry' 14897 fi 14898 14899 # When large executables or shared objects are built, AIX ld can 14900 # have problems creating the table of contents. If linking a library 14901 # or program results in "error TOC overflow" add -mminimal-toc to 14902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14904 14905 archive_cmds_F77='' 14906 hardcode_direct_F77=yes 14907 hardcode_libdir_separator_F77=':' 14908 link_all_deplibs_F77=yes 14909 14910 if test "$GCC" = yes; then 14911 case $host_os in aix4.[012]|aix4.[012].*) 14912 # We only want to do this on AIX 4.2 and lower, the check 14913 # below for broken collect2 doesn't work under 4.3+ 14914 collect2name=`${CC} -print-prog-name=collect2` 14915 if test -f "$collect2name" && \ 14916 strings "$collect2name" | grep resolve_lib_name >/dev/null 14917 then 14918 # We have reworked collect2 14919 hardcode_direct_F77=yes 14920 else 14921 # We have old collect2 14922 hardcode_direct_F77=unsupported 14923 # It fails to find uninstalled libraries when the uninstalled 14924 # path is not listed in the libpath. Setting hardcode_minus_L 14925 # to unsupported forces relinking 14926 hardcode_minus_L_F77=yes 14927 hardcode_libdir_flag_spec_F77='-L$libdir' 14928 hardcode_libdir_separator_F77= 14929 fi 14930 ;; 14931 esac 14932 shared_flag='-shared' 14933 if test "$aix_use_runtimelinking" = yes; then 14934 shared_flag="$shared_flag "'${wl}-G' 14935 fi 14936 else 14937 # not using gcc 14938 if test "$host_cpu" = ia64; then 14939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14940 # chokes on -Wl,-G. The following line is correct: 14941 shared_flag='-G' 14942 else 14943 if test "$aix_use_runtimelinking" = yes; then 14944 shared_flag='${wl}-G' 14945 else 14946 shared_flag='${wl}-bM:SRE' 14947 fi 14948 fi 14949 fi 14950 14951 # It seems that -bexpall does not export symbols beginning with 14952 # underscore (_), so it is better to generate a list of symbols to export. 14953 always_export_symbols_F77=yes 14954 if test "$aix_use_runtimelinking" = yes; then 14955 # Warning - without using the other runtime loading flags (-brtl), 14956 # -berok will link without error, but may produce a broken library. 14957 allow_undefined_flag_F77='-berok' 14958 # Determine the default libpath from the value encoded in an empty executable. 14959 cat >conftest.$ac_ext <<_ACEOF 14960 program main 14961 14962 end 14963_ACEOF 14964rm -f conftest.$ac_objext conftest$ac_exeext 14965if { (ac_try="$ac_link" 14966case "(($ac_try" in 14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14968 *) ac_try_echo=$ac_try;; 14969esac 14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14971 (eval "$ac_link") 2>conftest.er1 14972 ac_status=$? 14973 grep -v '^ *+' conftest.er1 >conftest.err 14974 rm -f conftest.er1 14975 cat conftest.err >&5 14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14977 (exit $ac_status); } && 14978 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14979 { (case "(($ac_try" in 14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14981 *) ac_try_echo=$ac_try;; 14982esac 14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14984 (eval "$ac_try") 2>&5 14985 ac_status=$? 14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14987 (exit $ac_status); }; } && 14988 { ac_try='test -s conftest$ac_exeext' 14989 { (case "(($ac_try" in 14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14991 *) ac_try_echo=$ac_try;; 14992esac 14993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14994 (eval "$ac_try") 2>&5 14995 ac_status=$? 14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14997 (exit $ac_status); }; }; then 14998 14999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15000}'` 15001# Check for a 64-bit object if we didn't find anything. 15002if 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; } 15003}'`; fi 15004else 15005 echo "$as_me: failed program was:" >&5 15006sed 's/^/| /' conftest.$ac_ext >&5 15007 15008 15009fi 15010 15011rm -f conftest.err conftest.$ac_objext \ 15012 conftest$ac_exeext conftest.$ac_ext 15013if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15014 15015 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15016 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" 15017 else 15018 if test "$host_cpu" = ia64; then 15019 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15020 allow_undefined_flag_F77="-z nodefs" 15021 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" 15022 else 15023 # Determine the default libpath from the value encoded in an empty executable. 15024 cat >conftest.$ac_ext <<_ACEOF 15025 program main 15026 15027 end 15028_ACEOF 15029rm -f conftest.$ac_objext conftest$ac_exeext 15030if { (ac_try="$ac_link" 15031case "(($ac_try" in 15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15033 *) ac_try_echo=$ac_try;; 15034esac 15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15036 (eval "$ac_link") 2>conftest.er1 15037 ac_status=$? 15038 grep -v '^ *+' conftest.er1 >conftest.err 15039 rm -f conftest.er1 15040 cat conftest.err >&5 15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15042 (exit $ac_status); } && 15043 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15044 { (case "(($ac_try" in 15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15046 *) ac_try_echo=$ac_try;; 15047esac 15048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15049 (eval "$ac_try") 2>&5 15050 ac_status=$? 15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15052 (exit $ac_status); }; } && 15053 { ac_try='test -s conftest$ac_exeext' 15054 { (case "(($ac_try" in 15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15056 *) ac_try_echo=$ac_try;; 15057esac 15058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15059 (eval "$ac_try") 2>&5 15060 ac_status=$? 15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15062 (exit $ac_status); }; }; then 15063 15064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15065}'` 15066# Check for a 64-bit object if we didn't find anything. 15067if 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; } 15068}'`; fi 15069else 15070 echo "$as_me: failed program was:" >&5 15071sed 's/^/| /' conftest.$ac_ext >&5 15072 15073 15074fi 15075 15076rm -f conftest.err conftest.$ac_objext \ 15077 conftest$ac_exeext conftest.$ac_ext 15078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15079 15080 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15081 # Warning - without using the other run time loading flags, 15082 # -berok will link without error, but may produce a broken library. 15083 no_undefined_flag_F77=' ${wl}-bernotok' 15084 allow_undefined_flag_F77=' ${wl}-berok' 15085 # Exported symbols can be pulled into shared objects from archives 15086 whole_archive_flag_spec_F77='$convenience' 15087 archive_cmds_need_lc_F77=yes 15088 # This is similar to how AIX traditionally builds its shared libraries. 15089 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' 15090 fi 15091 fi 15092 ;; 15093 15094 amigaos*) 15095 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)' 15096 hardcode_libdir_flag_spec_F77='-L$libdir' 15097 hardcode_minus_L_F77=yes 15098 # see comment about different semantics on the GNU ld section 15099 ld_shlibs_F77=no 15100 ;; 15101 15102 bsdi[45]*) 15103 export_dynamic_flag_spec_F77=-rdynamic 15104 ;; 15105 15106 cygwin* | mingw* | pw32*) 15107 # When not using gcc, we currently assume that we are using 15108 # Microsoft Visual C++. 15109 # hardcode_libdir_flag_spec is actually meaningless, as there is 15110 # no search path for DLLs. 15111 hardcode_libdir_flag_spec_F77=' ' 15112 allow_undefined_flag_F77=unsupported 15113 # Tell ltmain to make .lib files, not .a files. 15114 libext=lib 15115 # Tell ltmain to make .dll files, not .so files. 15116 shrext_cmds=".dll" 15117 # FIXME: Setting linknames here is a bad hack. 15118 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15119 # The linker will automatically build a .lib file if we build a DLL. 15120 old_archive_From_new_cmds_F77='true' 15121 # FIXME: Should let the user specify the lib program. 15122 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15123 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15124 enable_shared_with_static_runtimes_F77=yes 15125 ;; 15126 15127 darwin* | rhapsody*) 15128 case $host_os in 15129 rhapsody* | darwin1.[012]) 15130 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15131 ;; 15132 *) # Darwin 1.3 on 15133 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15134 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15135 else 15136 case ${MACOSX_DEPLOYMENT_TARGET} in 15137 10.[012]) 15138 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15139 ;; 15140 10.*) 15141 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15142 ;; 15143 esac 15144 fi 15145 ;; 15146 esac 15147 archive_cmds_need_lc_F77=no 15148 hardcode_direct_F77=no 15149 hardcode_automatic_F77=yes 15150 hardcode_shlibpath_var_F77=unsupported 15151 whole_archive_flag_spec_F77='' 15152 link_all_deplibs_F77=yes 15153 if test "$GCC" = yes ; then 15154 output_verbose_link_cmd='echo' 15155 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15156 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15158 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}' 15159 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}' 15160 else 15161 case $cc_basename in 15162 xlc*) 15163 output_verbose_link_cmd='echo' 15164 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15165 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15166 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15167 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}' 15168 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}' 15169 ;; 15170 *) 15171 ld_shlibs_F77=no 15172 ;; 15173 esac 15174 fi 15175 ;; 15176 15177 dgux*) 15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15179 hardcode_libdir_flag_spec_F77='-L$libdir' 15180 hardcode_shlibpath_var_F77=no 15181 ;; 15182 15183 freebsd1*) 15184 ld_shlibs_F77=no 15185 ;; 15186 15187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15188 # support. Future versions do this automatically, but an explicit c++rt0.o 15189 # does not break anything, and helps significantly (at the cost of a little 15190 # extra space). 15191 freebsd2.2*) 15192 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15193 hardcode_libdir_flag_spec_F77='-R$libdir' 15194 hardcode_direct_F77=yes 15195 hardcode_shlibpath_var_F77=no 15196 ;; 15197 15198 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15199 freebsd2*) 15200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15201 hardcode_direct_F77=yes 15202 hardcode_minus_L_F77=yes 15203 hardcode_shlibpath_var_F77=no 15204 ;; 15205 15206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15207 freebsd* | dragonfly*) 15208 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15209 hardcode_libdir_flag_spec_F77='-R$libdir' 15210 hardcode_direct_F77=yes 15211 hardcode_shlibpath_var_F77=no 15212 ;; 15213 15214 hpux9*) 15215 if test "$GCC" = yes; then 15216 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' 15217 else 15218 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' 15219 fi 15220 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15221 hardcode_libdir_separator_F77=: 15222 hardcode_direct_F77=yes 15223 15224 # hardcode_minus_L: Not really in the search PATH, 15225 # but as the default location of the library. 15226 hardcode_minus_L_F77=yes 15227 export_dynamic_flag_spec_F77='${wl}-E' 15228 ;; 15229 15230 hpux10*) 15231 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15232 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15233 else 15234 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15235 fi 15236 if test "$with_gnu_ld" = no; then 15237 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15238 hardcode_libdir_separator_F77=: 15239 15240 hardcode_direct_F77=yes 15241 export_dynamic_flag_spec_F77='${wl}-E' 15242 15243 # hardcode_minus_L: Not really in the search PATH, 15244 # but as the default location of the library. 15245 hardcode_minus_L_F77=yes 15246 fi 15247 ;; 15248 15249 hpux11*) 15250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15251 case $host_cpu in 15252 hppa*64*) 15253 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15254 ;; 15255 ia64*) 15256 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15257 ;; 15258 *) 15259 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15260 ;; 15261 esac 15262 else 15263 case $host_cpu in 15264 hppa*64*) 15265 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15266 ;; 15267 ia64*) 15268 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15269 ;; 15270 *) 15271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15272 ;; 15273 esac 15274 fi 15275 if test "$with_gnu_ld" = no; then 15276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15277 hardcode_libdir_separator_F77=: 15278 15279 case $host_cpu in 15280 hppa*64*|ia64*) 15281 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15282 hardcode_direct_F77=no 15283 hardcode_shlibpath_var_F77=no 15284 ;; 15285 *) 15286 hardcode_direct_F77=yes 15287 export_dynamic_flag_spec_F77='${wl}-E' 15288 15289 # hardcode_minus_L: Not really in the search PATH, 15290 # but as the default location of the library. 15291 hardcode_minus_L_F77=yes 15292 ;; 15293 esac 15294 fi 15295 ;; 15296 15297 irix5* | irix6* | nonstopux*) 15298 if test "$GCC" = yes; then 15299 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' 15300 else 15301 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' 15302 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15303 fi 15304 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15305 hardcode_libdir_separator_F77=: 15306 link_all_deplibs_F77=yes 15307 ;; 15308 15309 netbsd* | netbsdelf*-gnu) 15310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15312 else 15313 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15314 fi 15315 hardcode_libdir_flag_spec_F77='-R$libdir' 15316 hardcode_direct_F77=yes 15317 hardcode_shlibpath_var_F77=no 15318 ;; 15319 15320 newsos6) 15321 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15322 hardcode_direct_F77=yes 15323 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15324 hardcode_libdir_separator_F77=: 15325 hardcode_shlibpath_var_F77=no 15326 ;; 15327 15328 openbsd*) 15329 hardcode_direct_F77=yes 15330 hardcode_shlibpath_var_F77=no 15331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15332 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15333 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15334 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15335 export_dynamic_flag_spec_F77='${wl}-E' 15336 else 15337 case $host_os in 15338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15339 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15340 hardcode_libdir_flag_spec_F77='-R$libdir' 15341 ;; 15342 *) 15343 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15344 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15345 ;; 15346 esac 15347 fi 15348 ;; 15349 15350 os2*) 15351 hardcode_libdir_flag_spec_F77='-L$libdir' 15352 hardcode_minus_L_F77=yes 15353 allow_undefined_flag_F77=unsupported 15354 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' 15355 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15356 ;; 15357 15358 osf3*) 15359 if test "$GCC" = yes; then 15360 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15361 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' 15362 else 15363 allow_undefined_flag_F77=' -expect_unresolved \*' 15364 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' 15365 fi 15366 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15367 hardcode_libdir_separator_F77=: 15368 ;; 15369 15370 osf4* | osf5*) # as osf3* with the addition of -msym flag 15371 if test "$GCC" = yes; then 15372 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15373 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' 15374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15375 else 15376 allow_undefined_flag_F77=' -expect_unresolved \*' 15377 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' 15378 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~ 15379 $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' 15380 15381 # Both c and cxx compiler support -rpath directly 15382 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15383 fi 15384 hardcode_libdir_separator_F77=: 15385 ;; 15386 15387 solaris*) 15388 no_undefined_flag_F77=' -z text' 15389 if test "$GCC" = yes; then 15390 wlarc='${wl}' 15391 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15392 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15393 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15394 else 15395 wlarc='' 15396 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15397 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15399 fi 15400 hardcode_libdir_flag_spec_F77='-R$libdir' 15401 hardcode_shlibpath_var_F77=no 15402 case $host_os in 15403 solaris2.[0-5] | solaris2.[0-5].*) ;; 15404 *) 15405 # The compiler driver will combine linker options so we 15406 # cannot just pass the convience library names through 15407 # without $wl, iff we do not link with $LD. 15408 # Luckily, gcc supports the same syntax we need for Sun Studio. 15409 # Supported since Solaris 2.6 (maybe 2.5.1?) 15410 case $wlarc in 15411 '') 15412 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15413 *) 15414 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' ;; 15415 esac ;; 15416 esac 15417 link_all_deplibs_F77=yes 15418 ;; 15419 15420 sunos4*) 15421 if test "x$host_vendor" = xsequent; then 15422 # Use $CC to link under sequent, because it throws in some extra .o 15423 # files that make .init and .fini sections work. 15424 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15425 else 15426 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15427 fi 15428 hardcode_libdir_flag_spec_F77='-L$libdir' 15429 hardcode_direct_F77=yes 15430 hardcode_minus_L_F77=yes 15431 hardcode_shlibpath_var_F77=no 15432 ;; 15433 15434 sysv4) 15435 case $host_vendor in 15436 sni) 15437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15438 hardcode_direct_F77=yes # is this really true??? 15439 ;; 15440 siemens) 15441 ## LD is ld it makes a PLAMLIB 15442 ## CC just makes a GrossModule. 15443 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15444 reload_cmds_F77='$CC -r -o $output$reload_objs' 15445 hardcode_direct_F77=no 15446 ;; 15447 motorola) 15448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15449 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15450 ;; 15451 esac 15452 runpath_var='LD_RUN_PATH' 15453 hardcode_shlibpath_var_F77=no 15454 ;; 15455 15456 sysv4.3*) 15457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15458 hardcode_shlibpath_var_F77=no 15459 export_dynamic_flag_spec_F77='-Bexport' 15460 ;; 15461 15462 sysv4*MP*) 15463 if test -d /usr/nec; then 15464 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15465 hardcode_shlibpath_var_F77=no 15466 runpath_var=LD_RUN_PATH 15467 hardcode_runpath_var=yes 15468 ld_shlibs_F77=yes 15469 fi 15470 ;; 15471 15472 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15473 no_undefined_flag_F77='${wl}-z,text' 15474 archive_cmds_need_lc_F77=no 15475 hardcode_shlibpath_var_F77=no 15476 runpath_var='LD_RUN_PATH' 15477 15478 if test "$GCC" = yes; then 15479 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15480 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15481 else 15482 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15483 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15484 fi 15485 ;; 15486 15487 sysv5* | sco3.2v5* | sco5v6*) 15488 # Note: We can NOT use -z defs as we might desire, because we do not 15489 # link with -lc, and that would cause any symbols used from libc to 15490 # always be unresolved, which means just about no library would 15491 # ever link correctly. If we're not using GNU ld we use -z text 15492 # though, which does catch some bad symbols but isn't as heavy-handed 15493 # as -z defs. 15494 no_undefined_flag_F77='${wl}-z,text' 15495 allow_undefined_flag_F77='${wl}-z,nodefs' 15496 archive_cmds_need_lc_F77=no 15497 hardcode_shlibpath_var_F77=no 15498 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15499 hardcode_libdir_separator_F77=':' 15500 link_all_deplibs_F77=yes 15501 export_dynamic_flag_spec_F77='${wl}-Bexport' 15502 runpath_var='LD_RUN_PATH' 15503 15504 if test "$GCC" = yes; then 15505 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15506 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15507 else 15508 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15509 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15510 fi 15511 ;; 15512 15513 uts4*) 15514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15515 hardcode_libdir_flag_spec_F77='-L$libdir' 15516 hardcode_shlibpath_var_F77=no 15517 ;; 15518 15519 *) 15520 ld_shlibs_F77=no 15521 ;; 15522 esac 15523 fi 15524 15525{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15526echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15527test "$ld_shlibs_F77" = no && can_build_shared=no 15528 15529# 15530# Do we need to explicitly link libc? 15531# 15532case "x$archive_cmds_need_lc_F77" in 15533x|xyes) 15534 # Assume -lc should be added 15535 archive_cmds_need_lc_F77=yes 15536 15537 if test "$enable_shared" = yes && test "$GCC" = yes; then 15538 case $archive_cmds_F77 in 15539 *'~'*) 15540 # FIXME: we may have to deal with multi-command sequences. 15541 ;; 15542 '$CC '*) 15543 # Test whether the compiler implicitly links with -lc since on some 15544 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15545 # to ld, don't add -lc before -lgcc. 15546 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15547echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15548 $rm conftest* 15549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15550 15551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15552 (eval $ac_compile) 2>&5 15553 ac_status=$? 15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15555 (exit $ac_status); } 2>conftest.err; then 15556 soname=conftest 15557 lib=conftest 15558 libobjs=conftest.$ac_objext 15559 deplibs= 15560 wl=$lt_prog_compiler_wl_F77 15561 pic_flag=$lt_prog_compiler_pic_F77 15562 compiler_flags=-v 15563 linker_flags=-v 15564 verstring= 15565 output_objdir=. 15566 libname=conftest 15567 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15568 allow_undefined_flag_F77= 15569 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15570 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15571 ac_status=$? 15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15573 (exit $ac_status); } 15574 then 15575 archive_cmds_need_lc_F77=no 15576 else 15577 archive_cmds_need_lc_F77=yes 15578 fi 15579 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15580 else 15581 cat conftest.err 1>&5 15582 fi 15583 $rm conftest* 15584 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15585echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15586 ;; 15587 esac 15588 fi 15589 ;; 15590esac 15591 15592{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15593echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15594library_names_spec= 15595libname_spec='lib$name' 15596soname_spec= 15597shrext_cmds=".so" 15598postinstall_cmds= 15599postuninstall_cmds= 15600finish_cmds= 15601finish_eval= 15602shlibpath_var= 15603shlibpath_overrides_runpath=unknown 15604version_type=none 15605dynamic_linker="$host_os ld.so" 15606sys_lib_dlsearch_path_spec="/lib /usr/lib" 15607if test "$GCC" = yes; then 15608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15609 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15610 # if the path contains ";" then we assume it to be the separator 15611 # otherwise default to the standard path separator (i.e. ":") - it is 15612 # assumed that no part of a normal pathname contains ";" but that should 15613 # okay in the real world where ";" in dirpaths is itself problematic. 15614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15615 else 15616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15617 fi 15618else 15619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15620fi 15621need_lib_prefix=unknown 15622hardcode_into_libs=no 15623 15624# when you set need_version to no, make sure it does not cause -set_version 15625# flags to be left without arguments 15626need_version=unknown 15627 15628case $host_os in 15629aix3*) 15630 version_type=linux 15631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15632 shlibpath_var=LIBPATH 15633 15634 # AIX 3 has no versioning support, so we append a major version to the name. 15635 soname_spec='${libname}${release}${shared_ext}$major' 15636 ;; 15637 15638aix4* | aix5*) 15639 version_type=linux 15640 need_lib_prefix=no 15641 need_version=no 15642 hardcode_into_libs=yes 15643 if test "$host_cpu" = ia64; then 15644 # AIX 5 supports IA64 15645 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15646 shlibpath_var=LD_LIBRARY_PATH 15647 else 15648 # With GCC up to 2.95.x, collect2 would create an import file 15649 # for dependence libraries. The import file would start with 15650 # the line `#! .'. This would cause the generated library to 15651 # depend on `.', always an invalid library. This was fixed in 15652 # development snapshots of GCC prior to 3.0. 15653 case $host_os in 15654 aix4 | aix4.[01] | aix4.[01].*) 15655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15656 echo ' yes ' 15657 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15658 : 15659 else 15660 can_build_shared=no 15661 fi 15662 ;; 15663 esac 15664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15665 # soname into executable. Probably we can add versioning support to 15666 # collect2, so additional links can be useful in future. 15667 if test "$aix_use_runtimelinking" = yes; then 15668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15669 # instead of lib<name>.a to let people know that these are not 15670 # typical AIX shared libraries. 15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15672 else 15673 # We preserve .a as extension for shared libraries through AIX4.2 15674 # and later when we are not doing run time linking. 15675 library_names_spec='${libname}${release}.a $libname.a' 15676 soname_spec='${libname}${release}${shared_ext}$major' 15677 fi 15678 shlibpath_var=LIBPATH 15679 fi 15680 ;; 15681 15682amigaos*) 15683 library_names_spec='$libname.ixlibrary $libname.a' 15684 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15685 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' 15686 ;; 15687 15688beos*) 15689 library_names_spec='${libname}${shared_ext}' 15690 dynamic_linker="$host_os ld.so" 15691 shlibpath_var=LIBRARY_PATH 15692 ;; 15693 15694bsdi[45]*) 15695 version_type=linux 15696 need_version=no 15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15698 soname_spec='${libname}${release}${shared_ext}$major' 15699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15700 shlibpath_var=LD_LIBRARY_PATH 15701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15703 # the default ld.so.conf also contains /usr/contrib/lib and 15704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15705 # libtool to hard-code these into programs 15706 ;; 15707 15708cygwin* | mingw* | pw32*) 15709 version_type=windows 15710 shrext_cmds=".dll" 15711 need_version=no 15712 need_lib_prefix=no 15713 15714 case $GCC,$host_os in 15715 yes,cygwin* | yes,mingw* | yes,pw32*) 15716 library_names_spec='$libname.dll.a' 15717 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15718 postinstall_cmds='base_file=`basename \${file}`~ 15719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15720 dldir=$destdir/`dirname \$dlpath`~ 15721 test -d \$dldir || mkdir -p \$dldir~ 15722 $install_prog $dir/$dlname \$dldir/$dlname~ 15723 chmod a+x \$dldir/$dlname' 15724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15725 dlpath=$dir/\$dldll~ 15726 $rm \$dlpath' 15727 shlibpath_overrides_runpath=yes 15728 15729 case $host_os in 15730 cygwin*) 15731 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15734 ;; 15735 mingw*) 15736 # MinGW DLLs use traditional 'lib' prefix 15737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15740 # It is most probably a Windows format PATH printed by 15741 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15742 # path with ; separators, and with drive letters. We can handle the 15743 # drive letters (cygwin fileutils understands them), so leave them, 15744 # especially as we might pass files found there to a mingw objdump, 15745 # which wouldn't understand a cygwinified path. Ahh. 15746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15747 else 15748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15749 fi 15750 ;; 15751 pw32*) 15752 # pw32 DLLs use 'pw' prefix rather than 'lib' 15753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15754 ;; 15755 esac 15756 ;; 15757 15758 *) 15759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15760 ;; 15761 esac 15762 dynamic_linker='Win32 ld.exe' 15763 # FIXME: first we should search . and the directory the executable is in 15764 shlibpath_var=PATH 15765 ;; 15766 15767darwin* | rhapsody*) 15768 dynamic_linker="$host_os dyld" 15769 version_type=darwin 15770 need_lib_prefix=no 15771 need_version=no 15772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15773 soname_spec='${libname}${release}${major}$shared_ext' 15774 shlibpath_overrides_runpath=yes 15775 shlibpath_var=DYLD_LIBRARY_PATH 15776 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15778 if test "$GCC" = yes; then 15779 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"` 15780 else 15781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15782 fi 15783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15784 ;; 15785 15786dgux*) 15787 version_type=linux 15788 need_lib_prefix=no 15789 need_version=no 15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15791 soname_spec='${libname}${release}${shared_ext}$major' 15792 shlibpath_var=LD_LIBRARY_PATH 15793 ;; 15794 15795freebsd1*) 15796 dynamic_linker=no 15797 ;; 15798 15799freebsd* | dragonfly*) 15800 # DragonFly does not have aout. When/if they implement a new 15801 # versioning mechanism, adjust this. 15802 if test -x /usr/bin/objformat; then 15803 objformat=`/usr/bin/objformat` 15804 else 15805 case $host_os in 15806 freebsd[123]*) objformat=aout ;; 15807 *) objformat=elf ;; 15808 esac 15809 fi 15810 version_type=freebsd-$objformat 15811 case $version_type in 15812 freebsd-elf*) 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15814 need_version=no 15815 need_lib_prefix=no 15816 ;; 15817 freebsd-*) 15818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15819 need_version=yes 15820 ;; 15821 esac 15822 shlibpath_var=LD_LIBRARY_PATH 15823 case $host_os in 15824 freebsd2*) 15825 shlibpath_overrides_runpath=yes 15826 ;; 15827 freebsd3.[01]* | freebsdelf3.[01]*) 15828 shlibpath_overrides_runpath=yes 15829 hardcode_into_libs=yes 15830 ;; 15831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15833 shlibpath_overrides_runpath=no 15834 hardcode_into_libs=yes 15835 ;; 15836 freebsd*) # from 4.6 on 15837 shlibpath_overrides_runpath=yes 15838 hardcode_into_libs=yes 15839 ;; 15840 esac 15841 ;; 15842 15843gnu*) 15844 version_type=linux 15845 need_lib_prefix=no 15846 need_version=no 15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15848 soname_spec='${libname}${release}${shared_ext}$major' 15849 shlibpath_var=LD_LIBRARY_PATH 15850 hardcode_into_libs=yes 15851 ;; 15852 15853hpux9* | hpux10* | hpux11*) 15854 # Give a soname corresponding to the major version so that dld.sl refuses to 15855 # link against other versions. 15856 version_type=sunos 15857 need_lib_prefix=no 15858 need_version=no 15859 case $host_cpu in 15860 ia64*) 15861 shrext_cmds='.so' 15862 hardcode_into_libs=yes 15863 dynamic_linker="$host_os dld.so" 15864 shlibpath_var=LD_LIBRARY_PATH 15865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15867 soname_spec='${libname}${release}${shared_ext}$major' 15868 if test "X$HPUX_IA64_MODE" = X32; then 15869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15870 else 15871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15872 fi 15873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15874 ;; 15875 hppa*64*) 15876 shrext_cmds='.sl' 15877 hardcode_into_libs=yes 15878 dynamic_linker="$host_os dld.sl" 15879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15882 soname_spec='${libname}${release}${shared_ext}$major' 15883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15885 ;; 15886 *) 15887 shrext_cmds='.sl' 15888 dynamic_linker="$host_os dld.sl" 15889 shlibpath_var=SHLIB_PATH 15890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15892 soname_spec='${libname}${release}${shared_ext}$major' 15893 ;; 15894 esac 15895 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15896 postinstall_cmds='chmod 555 $lib' 15897 ;; 15898 15899interix3*) 15900 version_type=linux 15901 need_lib_prefix=no 15902 need_version=no 15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15904 soname_spec='${libname}${release}${shared_ext}$major' 15905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15906 shlibpath_var=LD_LIBRARY_PATH 15907 shlibpath_overrides_runpath=no 15908 hardcode_into_libs=yes 15909 ;; 15910 15911irix5* | irix6* | nonstopux*) 15912 case $host_os in 15913 nonstopux*) version_type=nonstopux ;; 15914 *) 15915 if test "$lt_cv_prog_gnu_ld" = yes; then 15916 version_type=linux 15917 else 15918 version_type=irix 15919 fi ;; 15920 esac 15921 need_lib_prefix=no 15922 need_version=no 15923 soname_spec='${libname}${release}${shared_ext}$major' 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15925 case $host_os in 15926 irix5* | nonstopux*) 15927 libsuff= shlibsuff= 15928 ;; 15929 *) 15930 case $LD in # libtool.m4 will add one of these switches to LD 15931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15932 libsuff= shlibsuff= libmagic=32-bit;; 15933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15934 libsuff=32 shlibsuff=N32 libmagic=N32;; 15935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15936 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15937 *) libsuff= shlibsuff= libmagic=never-match;; 15938 esac 15939 ;; 15940 esac 15941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15942 shlibpath_overrides_runpath=no 15943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15945 hardcode_into_libs=yes 15946 ;; 15947 15948# No shared lib support for Linux oldld, aout, or coff. 15949linux*oldld* | linux*aout* | linux*coff*) 15950 dynamic_linker=no 15951 ;; 15952 15953# This must be Linux ELF. 15954linux* | k*bsd*-gnu) 15955 version_type=linux 15956 need_lib_prefix=no 15957 need_version=no 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15959 soname_spec='${libname}${release}${shared_ext}$major' 15960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15961 shlibpath_var=LD_LIBRARY_PATH 15962 shlibpath_overrides_runpath=no 15963 # This implies no fast_install, which is unacceptable. 15964 # Some rework will be needed to allow for fast_install 15965 # before this can be enabled. 15966 hardcode_into_libs=yes 15967 15968 # Append ld.so.conf contents to the search path 15969 if test -f /etc/ld.so.conf; then 15970 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' ' '` 15971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15972 fi 15973 15974 # We used to test for /lib/ld.so.1 and disable shared libraries on 15975 # powerpc, because MkLinux only supported shared libraries with the 15976 # GNU dynamic linker. Since this was broken with cross compilers, 15977 # most powerpc-linux boxes support dynamic linking these days and 15978 # people can always --disable-shared, the test was removed, and we 15979 # assume the GNU/Linux dynamic linker is in use. 15980 dynamic_linker='GNU/Linux ld.so' 15981 ;; 15982 15983netbsdelf*-gnu) 15984 version_type=linux 15985 need_lib_prefix=no 15986 need_version=no 15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15988 soname_spec='${libname}${release}${shared_ext}$major' 15989 shlibpath_var=LD_LIBRARY_PATH 15990 shlibpath_overrides_runpath=no 15991 hardcode_into_libs=yes 15992 dynamic_linker='NetBSD ld.elf_so' 15993 ;; 15994 15995netbsd*) 15996 version_type=sunos 15997 need_lib_prefix=no 15998 need_version=no 15999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16002 dynamic_linker='NetBSD (a.out) ld.so' 16003 else 16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16005 soname_spec='${libname}${release}${shared_ext}$major' 16006 dynamic_linker='NetBSD ld.elf_so' 16007 fi 16008 shlibpath_var=LD_LIBRARY_PATH 16009 shlibpath_overrides_runpath=yes 16010 hardcode_into_libs=yes 16011 ;; 16012 16013newsos6) 16014 version_type=linux 16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 shlibpath_overrides_runpath=yes 16018 ;; 16019 16020nto-qnx*) 16021 version_type=linux 16022 need_lib_prefix=no 16023 need_version=no 16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16025 soname_spec='${libname}${release}${shared_ext}$major' 16026 shlibpath_var=LD_LIBRARY_PATH 16027 shlibpath_overrides_runpath=yes 16028 ;; 16029 16030openbsd*) 16031 version_type=sunos 16032 sys_lib_dlsearch_path_spec="/usr/lib" 16033 need_lib_prefix=no 16034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16035 case $host_os in 16036 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16037 *) need_version=no ;; 16038 esac 16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16041 shlibpath_var=LD_LIBRARY_PATH 16042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16043 case $host_os in 16044 openbsd2.[89] | openbsd2.[89].*) 16045 shlibpath_overrides_runpath=no 16046 ;; 16047 *) 16048 shlibpath_overrides_runpath=yes 16049 ;; 16050 esac 16051 else 16052 shlibpath_overrides_runpath=yes 16053 fi 16054 ;; 16055 16056os2*) 16057 libname_spec='$name' 16058 shrext_cmds=".dll" 16059 need_lib_prefix=no 16060 library_names_spec='$libname${shared_ext} $libname.a' 16061 dynamic_linker='OS/2 ld.exe' 16062 shlibpath_var=LIBPATH 16063 ;; 16064 16065osf3* | osf4* | osf5*) 16066 version_type=osf 16067 need_lib_prefix=no 16068 need_version=no 16069 soname_spec='${libname}${release}${shared_ext}$major' 16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16074 ;; 16075 16076solaris*) 16077 version_type=linux 16078 need_lib_prefix=no 16079 need_version=no 16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16081 soname_spec='${libname}${release}${shared_ext}$major' 16082 shlibpath_var=LD_LIBRARY_PATH 16083 shlibpath_overrides_runpath=yes 16084 hardcode_into_libs=yes 16085 # ldd complains unless libraries are executable 16086 postinstall_cmds='chmod +x $lib' 16087 ;; 16088 16089sunos4*) 16090 version_type=sunos 16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16093 shlibpath_var=LD_LIBRARY_PATH 16094 shlibpath_overrides_runpath=yes 16095 if test "$with_gnu_ld" = yes; then 16096 need_lib_prefix=no 16097 fi 16098 need_version=yes 16099 ;; 16100 16101sysv4 | sysv4.3*) 16102 version_type=linux 16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16104 soname_spec='${libname}${release}${shared_ext}$major' 16105 shlibpath_var=LD_LIBRARY_PATH 16106 case $host_vendor in 16107 sni) 16108 shlibpath_overrides_runpath=no 16109 need_lib_prefix=no 16110 export_dynamic_flag_spec='${wl}-Blargedynsym' 16111 runpath_var=LD_RUN_PATH 16112 ;; 16113 siemens) 16114 need_lib_prefix=no 16115 ;; 16116 motorola) 16117 need_lib_prefix=no 16118 need_version=no 16119 shlibpath_overrides_runpath=no 16120 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16121 ;; 16122 esac 16123 ;; 16124 16125sysv4*MP*) 16126 if test -d /usr/nec ;then 16127 version_type=linux 16128 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16129 soname_spec='$libname${shared_ext}.$major' 16130 shlibpath_var=LD_LIBRARY_PATH 16131 fi 16132 ;; 16133 16134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16135 version_type=freebsd-elf 16136 need_lib_prefix=no 16137 need_version=no 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16139 soname_spec='${libname}${release}${shared_ext}$major' 16140 shlibpath_var=LD_LIBRARY_PATH 16141 hardcode_into_libs=yes 16142 if test "$with_gnu_ld" = yes; then 16143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16144 shlibpath_overrides_runpath=no 16145 else 16146 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16147 shlibpath_overrides_runpath=yes 16148 case $host_os in 16149 sco3.2v5*) 16150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16151 ;; 16152 esac 16153 fi 16154 sys_lib_dlsearch_path_spec='/usr/lib' 16155 ;; 16156 16157uts4*) 16158 version_type=linux 16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16160 soname_spec='${libname}${release}${shared_ext}$major' 16161 shlibpath_var=LD_LIBRARY_PATH 16162 ;; 16163 16164*) 16165 dynamic_linker=no 16166 ;; 16167esac 16168{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16169echo "${ECHO_T}$dynamic_linker" >&6; } 16170test "$dynamic_linker" = no && can_build_shared=no 16171 16172variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16173if test "$GCC" = yes; then 16174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16175fi 16176 16177{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16178echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16179hardcode_action_F77= 16180if test -n "$hardcode_libdir_flag_spec_F77" || \ 16181 test -n "$runpath_var_F77" || \ 16182 test "X$hardcode_automatic_F77" = "Xyes" ; then 16183 16184 # We can hardcode non-existant directories. 16185 if test "$hardcode_direct_F77" != no && 16186 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16187 # have to relink, otherwise we might link with an installed library 16188 # when we should be linking with a yet-to-be-installed one 16189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16190 test "$hardcode_minus_L_F77" != no; then 16191 # Linking always hardcodes the temporary library directory. 16192 hardcode_action_F77=relink 16193 else 16194 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16195 hardcode_action_F77=immediate 16196 fi 16197else 16198 # We cannot hardcode anything, or else we can only hardcode existing 16199 # directories. 16200 hardcode_action_F77=unsupported 16201fi 16202{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16203echo "${ECHO_T}$hardcode_action_F77" >&6; } 16204 16205if test "$hardcode_action_F77" = relink; then 16206 # Fast installation is not supported 16207 enable_fast_install=no 16208elif test "$shlibpath_overrides_runpath" = yes || 16209 test "$enable_shared" = no; then 16210 # Fast installation is not necessary 16211 enable_fast_install=needless 16212fi 16213 16214 16215# The else clause should only fire when bootstrapping the 16216# libtool distribution, otherwise you forgot to ship ltmain.sh 16217# with your package, and you will get complaints that there are 16218# no rules to generate ltmain.sh. 16219if test -f "$ltmain"; then 16220 # See if we are running on zsh, and set the options which allow our commands through 16221 # without removal of \ escapes. 16222 if test -n "${ZSH_VERSION+set}" ; then 16223 setopt NO_GLOB_SUBST 16224 fi 16225 # Now quote all the things that may contain metacharacters while being 16226 # careful not to overquote the AC_SUBSTed values. We take copies of the 16227 # variables and quote the copies for generation of the libtool script. 16228 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16229 SED SHELL STRIP \ 16230 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16231 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16232 deplibs_check_method reload_flag reload_cmds need_locks \ 16233 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16234 lt_cv_sys_global_symbol_to_c_name_address \ 16235 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16236 old_postinstall_cmds old_postuninstall_cmds \ 16237 compiler_F77 \ 16238 CC_F77 \ 16239 LD_F77 \ 16240 lt_prog_compiler_wl_F77 \ 16241 lt_prog_compiler_pic_F77 \ 16242 lt_prog_compiler_static_F77 \ 16243 lt_prog_compiler_no_builtin_flag_F77 \ 16244 export_dynamic_flag_spec_F77 \ 16245 thread_safe_flag_spec_F77 \ 16246 whole_archive_flag_spec_F77 \ 16247 enable_shared_with_static_runtimes_F77 \ 16248 old_archive_cmds_F77 \ 16249 old_archive_from_new_cmds_F77 \ 16250 predep_objects_F77 \ 16251 postdep_objects_F77 \ 16252 predeps_F77 \ 16253 postdeps_F77 \ 16254 compiler_lib_search_path_F77 \ 16255 archive_cmds_F77 \ 16256 archive_expsym_cmds_F77 \ 16257 postinstall_cmds_F77 \ 16258 postuninstall_cmds_F77 \ 16259 old_archive_from_expsyms_cmds_F77 \ 16260 allow_undefined_flag_F77 \ 16261 no_undefined_flag_F77 \ 16262 export_symbols_cmds_F77 \ 16263 hardcode_libdir_flag_spec_F77 \ 16264 hardcode_libdir_flag_spec_ld_F77 \ 16265 hardcode_libdir_separator_F77 \ 16266 hardcode_automatic_F77 \ 16267 module_cmds_F77 \ 16268 module_expsym_cmds_F77 \ 16269 lt_cv_prog_compiler_c_o_F77 \ 16270 exclude_expsyms_F77 \ 16271 include_expsyms_F77; do 16272 16273 case $var in 16274 old_archive_cmds_F77 | \ 16275 old_archive_from_new_cmds_F77 | \ 16276 archive_cmds_F77 | \ 16277 archive_expsym_cmds_F77 | \ 16278 module_cmds_F77 | \ 16279 module_expsym_cmds_F77 | \ 16280 old_archive_from_expsyms_cmds_F77 | \ 16281 export_symbols_cmds_F77 | \ 16282 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16283 postinstall_cmds | postuninstall_cmds | \ 16284 old_postinstall_cmds | old_postuninstall_cmds | \ 16285 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16286 # Double-quote double-evaled strings. 16287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16288 ;; 16289 *) 16290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16291 ;; 16292 esac 16293 done 16294 16295 case $lt_echo in 16296 *'\$0 --fallback-echo"') 16297 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16298 ;; 16299 esac 16300 16301cfgfile="$ofile" 16302 16303 cat <<__EOF__ >> "$cfgfile" 16304# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16305 16306# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16307 16308# Shell to use when invoking shell scripts. 16309SHELL=$lt_SHELL 16310 16311# Whether or not to build shared libraries. 16312build_libtool_libs=$enable_shared 16313 16314# Whether or not to build static libraries. 16315build_old_libs=$enable_static 16316 16317# Whether or not to add -lc for building shared libraries. 16318build_libtool_need_lc=$archive_cmds_need_lc_F77 16319 16320# Whether or not to disallow shared libs when runtime libs are static 16321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16322 16323# Whether or not to optimize for fast installation. 16324fast_install=$enable_fast_install 16325 16326# The host system. 16327host_alias=$host_alias 16328host=$host 16329host_os=$host_os 16330 16331# The build system. 16332build_alias=$build_alias 16333build=$build 16334build_os=$build_os 16335 16336# An echo program that does not interpret backslashes. 16337echo=$lt_echo 16338 16339# The archiver. 16340AR=$lt_AR 16341AR_FLAGS=$lt_AR_FLAGS 16342 16343# A C compiler. 16344LTCC=$lt_LTCC 16345 16346# LTCC compiler flags. 16347LTCFLAGS=$lt_LTCFLAGS 16348 16349# A language-specific compiler. 16350CC=$lt_compiler_F77 16351 16352# Is the compiler the GNU C compiler? 16353with_gcc=$GCC_F77 16354 16355# An ERE matcher. 16356EGREP=$lt_EGREP 16357 16358# The linker used to build libraries. 16359LD=$lt_LD_F77 16360 16361# Whether we need hard or soft links. 16362LN_S=$lt_LN_S 16363 16364# A BSD-compatible nm program. 16365NM=$lt_NM 16366 16367# A symbol stripping program 16368STRIP=$lt_STRIP 16369 16370# Used to examine libraries when file_magic_cmd begins "file" 16371MAGIC_CMD=$MAGIC_CMD 16372 16373# Used on cygwin: DLL creation program. 16374DLLTOOL="$DLLTOOL" 16375 16376# Used on cygwin: object dumper. 16377OBJDUMP="$OBJDUMP" 16378 16379# Used on cygwin: assembler. 16380AS="$AS" 16381 16382# The name of the directory that contains temporary libtool files. 16383objdir=$objdir 16384 16385# How to create reloadable object files. 16386reload_flag=$lt_reload_flag 16387reload_cmds=$lt_reload_cmds 16388 16389# How to pass a linker flag through the compiler. 16390wl=$lt_lt_prog_compiler_wl_F77 16391 16392# Object file suffix (normally "o"). 16393objext="$ac_objext" 16394 16395# Old archive suffix (normally "a"). 16396libext="$libext" 16397 16398# Shared library suffix (normally ".so"). 16399shrext_cmds='$shrext_cmds' 16400 16401# Executable file suffix (normally ""). 16402exeext="$exeext" 16403 16404# Additional compiler flags for building library objects. 16405pic_flag=$lt_lt_prog_compiler_pic_F77 16406pic_mode=$pic_mode 16407 16408# What is the maximum length of a command? 16409max_cmd_len=$lt_cv_sys_max_cmd_len 16410 16411# Does compiler simultaneously support -c and -o options? 16412compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16413 16414# Must we lock files when doing compilation? 16415need_locks=$lt_need_locks 16416 16417# Do we need the lib prefix for modules? 16418need_lib_prefix=$need_lib_prefix 16419 16420# Do we need a version for libraries? 16421need_version=$need_version 16422 16423# Whether dlopen is supported. 16424dlopen_support=$enable_dlopen 16425 16426# Whether dlopen of programs is supported. 16427dlopen_self=$enable_dlopen_self 16428 16429# Whether dlopen of statically linked programs is supported. 16430dlopen_self_static=$enable_dlopen_self_static 16431 16432# Compiler flag to prevent dynamic linking. 16433link_static_flag=$lt_lt_prog_compiler_static_F77 16434 16435# Compiler flag to turn off builtin functions. 16436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16437 16438# Compiler flag to allow reflexive dlopens. 16439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16440 16441# Compiler flag to generate shared objects directly from archives. 16442whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16443 16444# Compiler flag to generate thread-safe objects. 16445thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16446 16447# Library versioning type. 16448version_type=$version_type 16449 16450# Format of library name prefix. 16451libname_spec=$lt_libname_spec 16452 16453# List of archive names. First name is the real one, the rest are links. 16454# The last name is the one that the linker finds with -lNAME. 16455library_names_spec=$lt_library_names_spec 16456 16457# The coded name of the library, if different from the real name. 16458soname_spec=$lt_soname_spec 16459 16460# Commands used to build and install an old-style archive. 16461RANLIB=$lt_RANLIB 16462old_archive_cmds=$lt_old_archive_cmds_F77 16463old_postinstall_cmds=$lt_old_postinstall_cmds 16464old_postuninstall_cmds=$lt_old_postuninstall_cmds 16465 16466# Create an old-style archive from a shared archive. 16467old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16468 16469# Create a temporary old-style archive to link instead of a shared archive. 16470old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16471 16472# Commands used to build and install a shared archive. 16473archive_cmds=$lt_archive_cmds_F77 16474archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16475postinstall_cmds=$lt_postinstall_cmds 16476postuninstall_cmds=$lt_postuninstall_cmds 16477 16478# Commands used to build a loadable module (assumed same as above if empty) 16479module_cmds=$lt_module_cmds_F77 16480module_expsym_cmds=$lt_module_expsym_cmds_F77 16481 16482# Commands to strip libraries. 16483old_striplib=$lt_old_striplib 16484striplib=$lt_striplib 16485 16486# Dependencies to place before the objects being linked to create a 16487# shared library. 16488predep_objects=$lt_predep_objects_F77 16489 16490# Dependencies to place after the objects being linked to create a 16491# shared library. 16492postdep_objects=$lt_postdep_objects_F77 16493 16494# Dependencies to place before the objects being linked to create a 16495# shared library. 16496predeps=$lt_predeps_F77 16497 16498# Dependencies to place after the objects being linked to create a 16499# shared library. 16500postdeps=$lt_postdeps_F77 16501 16502# The library search path used internally by the compiler when linking 16503# a shared library. 16504compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16505 16506# Method to check whether dependent libraries are shared objects. 16507deplibs_check_method=$lt_deplibs_check_method 16508 16509# Command to use when deplibs_check_method == file_magic. 16510file_magic_cmd=$lt_file_magic_cmd 16511 16512# Flag that allows shared libraries with undefined symbols to be built. 16513allow_undefined_flag=$lt_allow_undefined_flag_F77 16514 16515# Flag that forces no undefined symbols. 16516no_undefined_flag=$lt_no_undefined_flag_F77 16517 16518# Commands used to finish a libtool library installation in a directory. 16519finish_cmds=$lt_finish_cmds 16520 16521# Same as above, but a single script fragment to be evaled but not shown. 16522finish_eval=$lt_finish_eval 16523 16524# Take the output of nm and produce a listing of raw symbols and C names. 16525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16526 16527# Transform the output of nm in a proper C declaration 16528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16529 16530# Transform the output of nm in a C name address pair 16531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16532 16533# This is the shared library runtime path variable. 16534runpath_var=$runpath_var 16535 16536# This is the shared library path variable. 16537shlibpath_var=$shlibpath_var 16538 16539# Is shlibpath searched before the hard-coded library search path? 16540shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16541 16542# How to hardcode a shared library path into an executable. 16543hardcode_action=$hardcode_action_F77 16544 16545# Whether we should hardcode library paths into libraries. 16546hardcode_into_libs=$hardcode_into_libs 16547 16548# Flag to hardcode \$libdir into a binary during linking. 16549# This must work even if \$libdir does not exist. 16550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16551 16552# If ld is used when linking, flag to hardcode \$libdir into 16553# a binary during linking. This must work even if \$libdir does 16554# not exist. 16555hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16556 16557# Whether we need a single -rpath flag with a separated argument. 16558hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16559 16560# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16561# resulting binary. 16562hardcode_direct=$hardcode_direct_F77 16563 16564# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16565# resulting binary. 16566hardcode_minus_L=$hardcode_minus_L_F77 16567 16568# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16569# the resulting binary. 16570hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16571 16572# Set to yes if building a shared library automatically hardcodes DIR into the library 16573# and all subsequent libraries and executables linked against it. 16574hardcode_automatic=$hardcode_automatic_F77 16575 16576# Variables whose values should be saved in libtool wrapper scripts and 16577# restored at relink time. 16578variables_saved_for_relink="$variables_saved_for_relink" 16579 16580# Whether libtool must link a program against all its dependency libraries. 16581link_all_deplibs=$link_all_deplibs_F77 16582 16583# Compile-time system search path for libraries 16584sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16585 16586# Run-time system search path for libraries 16587sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16588 16589# Fix the shell variable \$srcfile for the compiler. 16590fix_srcfile_path="$fix_srcfile_path_F77" 16591 16592# Set to yes if exported symbols are required. 16593always_export_symbols=$always_export_symbols_F77 16594 16595# The commands to list exported symbols. 16596export_symbols_cmds=$lt_export_symbols_cmds_F77 16597 16598# The commands to extract the exported symbol list from a shared archive. 16599extract_expsyms_cmds=$lt_extract_expsyms_cmds 16600 16601# Symbols that should not be listed in the preloaded symbols. 16602exclude_expsyms=$lt_exclude_expsyms_F77 16603 16604# Symbols that must always be exported. 16605include_expsyms=$lt_include_expsyms_F77 16606 16607# ### END LIBTOOL TAG CONFIG: $tagname 16608 16609__EOF__ 16610 16611 16612else 16613 # If there is no Makefile yet, we rely on a make rule to execute 16614 # `config.status --recheck' to rerun these tests and create the 16615 # libtool script then. 16616 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16617 if test -f "$ltmain_in"; then 16618 test -f Makefile && make "$ltmain" 16619 fi 16620fi 16621 16622 16623ac_ext=c 16624ac_cpp='$CPP $CPPFLAGS' 16625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16627ac_compiler_gnu=$ac_cv_c_compiler_gnu 16628 16629CC="$lt_save_CC" 16630 16631 else 16632 tagname="" 16633 fi 16634 ;; 16635 16636 GCJ) 16637 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16638 16639 16640# Source file extension for Java test sources. 16641ac_ext=java 16642 16643# Object file extension for compiled Java test sources. 16644objext=o 16645objext_GCJ=$objext 16646 16647# Code to be used in simple compile tests 16648lt_simple_compile_test_code="class foo {}\n" 16649 16650# Code to be used in simple link tests 16651lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16652 16653# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16654 16655# If no C compiler was specified, use CC. 16656LTCC=${LTCC-"$CC"} 16657 16658# If no C compiler flags were specified, use CFLAGS. 16659LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16660 16661# Allow CC to be a program name with arguments. 16662compiler=$CC 16663 16664 16665# save warnings/boilerplate of simple test code 16666ac_outfile=conftest.$ac_objext 16667printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16669_lt_compiler_boilerplate=`cat conftest.err` 16670$rm conftest* 16671 16672ac_outfile=conftest.$ac_objext 16673printf "$lt_simple_link_test_code" >conftest.$ac_ext 16674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16675_lt_linker_boilerplate=`cat conftest.err` 16676$rm conftest* 16677 16678 16679# Allow CC to be a program name with arguments. 16680lt_save_CC="$CC" 16681CC=${GCJ-"gcj"} 16682compiler=$CC 16683compiler_GCJ=$CC 16684for cc_temp in $compiler""; do 16685 case $cc_temp in 16686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16688 \-*) ;; 16689 *) break;; 16690 esac 16691done 16692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16693 16694 16695# GCJ did not exist at the time GCC didn't implicitly link libc in. 16696archive_cmds_need_lc_GCJ=no 16697 16698old_archive_cmds_GCJ=$old_archive_cmds 16699 16700 16701lt_prog_compiler_no_builtin_flag_GCJ= 16702 16703if test "$GCC" = yes; then 16704 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16705 16706 16707{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16709if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16710 echo $ECHO_N "(cached) $ECHO_C" >&6 16711else 16712 lt_cv_prog_compiler_rtti_exceptions=no 16713 ac_outfile=conftest.$ac_objext 16714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16715 lt_compiler_flag="-fno-rtti -fno-exceptions" 16716 # Insert the option either (1) after the last *FLAGS variable, or 16717 # (2) before a word containing "conftest.", or (3) at the end. 16718 # Note that $ac_compile itself does not contain backslashes and begins 16719 # with a dollar sign (not a hyphen), so the echo should work correctly. 16720 # The option is referenced via a variable to avoid confusing sed. 16721 lt_compile=`echo "$ac_compile" | $SED \ 16722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16724 -e 's:$: $lt_compiler_flag:'` 16725 (eval echo "\"\$as_me:16725: $lt_compile\"" >&5) 16726 (eval "$lt_compile" 2>conftest.err) 16727 ac_status=$? 16728 cat conftest.err >&5 16729 echo "$as_me:16729: \$? = $ac_status" >&5 16730 if (exit $ac_status) && test -s "$ac_outfile"; then 16731 # The compiler can only warn and ignore the option if not recognized 16732 # So say no if there are warnings other than the usual output. 16733 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16736 lt_cv_prog_compiler_rtti_exceptions=yes 16737 fi 16738 fi 16739 $rm conftest* 16740 16741fi 16742{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16743echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16744 16745if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16746 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16747else 16748 : 16749fi 16750 16751fi 16752 16753lt_prog_compiler_wl_GCJ= 16754lt_prog_compiler_pic_GCJ= 16755lt_prog_compiler_static_GCJ= 16756 16757{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16758echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16759 16760 if test "$GCC" = yes; then 16761 lt_prog_compiler_wl_GCJ='-Wl,' 16762 lt_prog_compiler_static_GCJ='-static' 16763 16764 case $host_os in 16765 aix*) 16766 # All AIX code is PIC. 16767 if test "$host_cpu" = ia64; then 16768 # AIX 5 now supports IA64 processor 16769 lt_prog_compiler_static_GCJ='-Bstatic' 16770 fi 16771 ;; 16772 16773 amigaos*) 16774 # FIXME: we need at least 68020 code to build shared libraries, but 16775 # adding the `-m68020' flag to GCC prevents building anything better, 16776 # like `-m68040'. 16777 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16778 ;; 16779 16780 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16781 # PIC is the default for these OSes. 16782 ;; 16783 16784 mingw* | pw32* | os2*) 16785 # This hack is so that the source file can tell whether it is being 16786 # built for inclusion in a dll (and should export symbols for example). 16787 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16788 ;; 16789 16790 darwin* | rhapsody*) 16791 # PIC is the default on this platform 16792 # Common symbols not allowed in MH_DYLIB files 16793 lt_prog_compiler_pic_GCJ='-fno-common' 16794 ;; 16795 16796 interix3*) 16797 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16798 # Instead, we relocate shared libraries at runtime. 16799 ;; 16800 16801 msdosdjgpp*) 16802 # Just because we use GCC doesn't mean we suddenly get shared libraries 16803 # on systems that don't support them. 16804 lt_prog_compiler_can_build_shared_GCJ=no 16805 enable_shared=no 16806 ;; 16807 16808 sysv4*MP*) 16809 if test -d /usr/nec; then 16810 lt_prog_compiler_pic_GCJ=-Kconform_pic 16811 fi 16812 ;; 16813 16814 hpux*) 16815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16816 # not for PA HP-UX. 16817 case $host_cpu in 16818 hppa*64*|ia64*) 16819 # +Z the default 16820 ;; 16821 *) 16822 lt_prog_compiler_pic_GCJ='-fPIC' 16823 ;; 16824 esac 16825 ;; 16826 16827 *) 16828 lt_prog_compiler_pic_GCJ='-fPIC' 16829 ;; 16830 esac 16831 else 16832 # PORTME Check for flag to pass linker flags through the system compiler. 16833 case $host_os in 16834 aix*) 16835 lt_prog_compiler_wl_GCJ='-Wl,' 16836 if test "$host_cpu" = ia64; then 16837 # AIX 5 now supports IA64 processor 16838 lt_prog_compiler_static_GCJ='-Bstatic' 16839 else 16840 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16841 fi 16842 ;; 16843 darwin*) 16844 # PIC is the default on this platform 16845 # Common symbols not allowed in MH_DYLIB files 16846 case $cc_basename in 16847 xlc*) 16848 lt_prog_compiler_pic_GCJ='-qnocommon' 16849 lt_prog_compiler_wl_GCJ='-Wl,' 16850 ;; 16851 esac 16852 ;; 16853 16854 mingw* | pw32* | os2*) 16855 # This hack is so that the source file can tell whether it is being 16856 # built for inclusion in a dll (and should export symbols for example). 16857 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16858 ;; 16859 16860 hpux9* | hpux10* | hpux11*) 16861 lt_prog_compiler_wl_GCJ='-Wl,' 16862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16863 # not for PA HP-UX. 16864 case $host_cpu in 16865 hppa*64*|ia64*) 16866 # +Z the default 16867 ;; 16868 *) 16869 lt_prog_compiler_pic_GCJ='+Z' 16870 ;; 16871 esac 16872 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16873 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16874 ;; 16875 16876 irix5* | irix6* | nonstopux*) 16877 lt_prog_compiler_wl_GCJ='-Wl,' 16878 # PIC (with -KPIC) is the default. 16879 lt_prog_compiler_static_GCJ='-non_shared' 16880 ;; 16881 16882 newsos6) 16883 lt_prog_compiler_pic_GCJ='-KPIC' 16884 lt_prog_compiler_static_GCJ='-Bstatic' 16885 ;; 16886 16887 linux* | k*bsd*-gnu) 16888 case $cc_basename in 16889 icc* | ecc*) 16890 lt_prog_compiler_wl_GCJ='-Wl,' 16891 lt_prog_compiler_pic_GCJ='-KPIC' 16892 lt_prog_compiler_static_GCJ='-static' 16893 ;; 16894 pgcc* | pgf77* | pgf90* | pgf95*) 16895 # Portland Group compilers (*not* the Pentium gcc compiler, 16896 # which looks to be a dead project) 16897 lt_prog_compiler_wl_GCJ='-Wl,' 16898 lt_prog_compiler_pic_GCJ='-fpic' 16899 lt_prog_compiler_static_GCJ='-Bstatic' 16900 ;; 16901 ccc*) 16902 lt_prog_compiler_wl_GCJ='-Wl,' 16903 # All Alpha code is PIC. 16904 lt_prog_compiler_static_GCJ='-non_shared' 16905 ;; 16906 esac 16907 ;; 16908 16909 osf3* | osf4* | osf5*) 16910 lt_prog_compiler_wl_GCJ='-Wl,' 16911 # All OSF/1 code is PIC. 16912 lt_prog_compiler_static_GCJ='-non_shared' 16913 ;; 16914 16915 solaris*) 16916 lt_prog_compiler_pic_GCJ='-KPIC' 16917 lt_prog_compiler_static_GCJ='-Bstatic' 16918 case $cc_basename in 16919 f77* | f90* | f95*) 16920 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16921 *) 16922 lt_prog_compiler_wl_GCJ='-Wl,';; 16923 esac 16924 ;; 16925 16926 sunos4*) 16927 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16928 lt_prog_compiler_pic_GCJ='-PIC' 16929 lt_prog_compiler_static_GCJ='-Bstatic' 16930 ;; 16931 16932 sysv4 | sysv4.2uw2* | sysv4.3*) 16933 lt_prog_compiler_wl_GCJ='-Wl,' 16934 lt_prog_compiler_pic_GCJ='-KPIC' 16935 lt_prog_compiler_static_GCJ='-Bstatic' 16936 ;; 16937 16938 sysv4*MP*) 16939 if test -d /usr/nec ;then 16940 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16941 lt_prog_compiler_static_GCJ='-Bstatic' 16942 fi 16943 ;; 16944 16945 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16946 lt_prog_compiler_wl_GCJ='-Wl,' 16947 lt_prog_compiler_pic_GCJ='-KPIC' 16948 lt_prog_compiler_static_GCJ='-Bstatic' 16949 ;; 16950 16951 unicos*) 16952 lt_prog_compiler_wl_GCJ='-Wl,' 16953 lt_prog_compiler_can_build_shared_GCJ=no 16954 ;; 16955 16956 uts4*) 16957 lt_prog_compiler_pic_GCJ='-pic' 16958 lt_prog_compiler_static_GCJ='-Bstatic' 16959 ;; 16960 16961 *) 16962 lt_prog_compiler_can_build_shared_GCJ=no 16963 ;; 16964 esac 16965 fi 16966 16967{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16968echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16969 16970# 16971# Check to make sure the PIC flag actually works. 16972# 16973if test -n "$lt_prog_compiler_pic_GCJ"; then 16974 16975{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16976echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16977if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16978 echo $ECHO_N "(cached) $ECHO_C" >&6 16979else 16980 lt_prog_compiler_pic_works_GCJ=no 16981 ac_outfile=conftest.$ac_objext 16982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16983 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16984 # Insert the option either (1) after the last *FLAGS variable, or 16985 # (2) before a word containing "conftest.", or (3) at the end. 16986 # Note that $ac_compile itself does not contain backslashes and begins 16987 # with a dollar sign (not a hyphen), so the echo should work correctly. 16988 # The option is referenced via a variable to avoid confusing sed. 16989 lt_compile=`echo "$ac_compile" | $SED \ 16990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16992 -e 's:$: $lt_compiler_flag:'` 16993 (eval echo "\"\$as_me:16993: $lt_compile\"" >&5) 16994 (eval "$lt_compile" 2>conftest.err) 16995 ac_status=$? 16996 cat conftest.err >&5 16997 echo "$as_me:16997: \$? = $ac_status" >&5 16998 if (exit $ac_status) && test -s "$ac_outfile"; then 16999 # The compiler can only warn and ignore the option if not recognized 17000 # So say no if there are warnings other than the usual output. 17001 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17004 lt_prog_compiler_pic_works_GCJ=yes 17005 fi 17006 fi 17007 $rm conftest* 17008 17009fi 17010{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17011echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17012 17013if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17014 case $lt_prog_compiler_pic_GCJ in 17015 "" | " "*) ;; 17016 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17017 esac 17018else 17019 lt_prog_compiler_pic_GCJ= 17020 lt_prog_compiler_can_build_shared_GCJ=no 17021fi 17022 17023fi 17024case $host_os in 17025 # For platforms which do not support PIC, -DPIC is meaningless: 17026 *djgpp*) 17027 lt_prog_compiler_pic_GCJ= 17028 ;; 17029 *) 17030 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17031 ;; 17032esac 17033 17034# 17035# Check to make sure the static flag actually works. 17036# 17037wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17038{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17039echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17040if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17041 echo $ECHO_N "(cached) $ECHO_C" >&6 17042else 17043 lt_prog_compiler_static_works_GCJ=no 17044 save_LDFLAGS="$LDFLAGS" 17045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17046 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17048 # The linker can only warn and ignore the option if not recognized 17049 # So say no if there are warnings 17050 if test -s conftest.err; then 17051 # Append any errors to the config.log. 17052 cat conftest.err 1>&5 17053 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17055 if diff conftest.exp conftest.er2 >/dev/null; then 17056 lt_prog_compiler_static_works_GCJ=yes 17057 fi 17058 else 17059 lt_prog_compiler_static_works_GCJ=yes 17060 fi 17061 fi 17062 $rm conftest* 17063 LDFLAGS="$save_LDFLAGS" 17064 17065fi 17066{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17067echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17068 17069if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17070 : 17071else 17072 lt_prog_compiler_static_GCJ= 17073fi 17074 17075 17076{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17077echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17078if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17079 echo $ECHO_N "(cached) $ECHO_C" >&6 17080else 17081 lt_cv_prog_compiler_c_o_GCJ=no 17082 $rm -r conftest 2>/dev/null 17083 mkdir conftest 17084 cd conftest 17085 mkdir out 17086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17087 17088 lt_compiler_flag="-o out/conftest2.$ac_objext" 17089 # Insert the option either (1) after the last *FLAGS variable, or 17090 # (2) before a word containing "conftest.", or (3) at the end. 17091 # Note that $ac_compile itself does not contain backslashes and begins 17092 # with a dollar sign (not a hyphen), so the echo should work correctly. 17093 lt_compile=`echo "$ac_compile" | $SED \ 17094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17096 -e 's:$: $lt_compiler_flag:'` 17097 (eval echo "\"\$as_me:17097: $lt_compile\"" >&5) 17098 (eval "$lt_compile" 2>out/conftest.err) 17099 ac_status=$? 17100 cat out/conftest.err >&5 17101 echo "$as_me:17101: \$? = $ac_status" >&5 17102 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17103 then 17104 # The compiler can only warn and ignore the option if not recognized 17105 # So say no if there are warnings 17106 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17109 lt_cv_prog_compiler_c_o_GCJ=yes 17110 fi 17111 fi 17112 chmod u+w . 2>&5 17113 $rm conftest* 17114 # SGI C++ compiler will create directory out/ii_files/ for 17115 # template instantiation 17116 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17117 $rm out/* && rmdir out 17118 cd .. 17119 rmdir conftest 17120 $rm conftest* 17121 17122fi 17123{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17124echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17125 17126 17127hard_links="nottested" 17128if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17129 # do not overwrite the value of need_locks provided by the user 17130 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17131echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17132 hard_links=yes 17133 $rm conftest* 17134 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17135 touch conftest.a 17136 ln conftest.a conftest.b 2>&5 || hard_links=no 17137 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17138 { echo "$as_me:$LINENO: result: $hard_links" >&5 17139echo "${ECHO_T}$hard_links" >&6; } 17140 if test "$hard_links" = no; then 17141 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17142echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17143 need_locks=warn 17144 fi 17145else 17146 need_locks=no 17147fi 17148 17149{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17150echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17151 17152 runpath_var= 17153 allow_undefined_flag_GCJ= 17154 enable_shared_with_static_runtimes_GCJ=no 17155 archive_cmds_GCJ= 17156 archive_expsym_cmds_GCJ= 17157 old_archive_From_new_cmds_GCJ= 17158 old_archive_from_expsyms_cmds_GCJ= 17159 export_dynamic_flag_spec_GCJ= 17160 whole_archive_flag_spec_GCJ= 17161 thread_safe_flag_spec_GCJ= 17162 hardcode_libdir_flag_spec_GCJ= 17163 hardcode_libdir_flag_spec_ld_GCJ= 17164 hardcode_libdir_separator_GCJ= 17165 hardcode_direct_GCJ=no 17166 hardcode_minus_L_GCJ=no 17167 hardcode_shlibpath_var_GCJ=unsupported 17168 link_all_deplibs_GCJ=unknown 17169 hardcode_automatic_GCJ=no 17170 module_cmds_GCJ= 17171 module_expsym_cmds_GCJ= 17172 always_export_symbols_GCJ=no 17173 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17174 # include_expsyms should be a list of space-separated symbols to be *always* 17175 # included in the symbol list 17176 include_expsyms_GCJ= 17177 # exclude_expsyms can be an extended regexp of symbols to exclude 17178 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17180 # as well as any symbol that contains `d'. 17181 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17183 # platforms (ab)use it in PIC code, but their linkers get confused if 17184 # the symbol is explicitly referenced. Since portable code cannot 17185 # rely on this symbol name, it's probably fine to never include it in 17186 # preloaded symbol tables. 17187 extract_expsyms_cmds= 17188 # Just being paranoid about ensuring that cc_basename is set. 17189 for cc_temp in $compiler""; do 17190 case $cc_temp in 17191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17193 \-*) ;; 17194 *) break;; 17195 esac 17196done 17197cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17198 17199 case $host_os in 17200 cygwin* | mingw* | pw32*) 17201 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17202 # When not using gcc, we currently assume that we are using 17203 # Microsoft Visual C++. 17204 if test "$GCC" != yes; then 17205 with_gnu_ld=no 17206 fi 17207 ;; 17208 interix*) 17209 # we just hope/assume this is gcc and not c89 (= MSVC++) 17210 with_gnu_ld=yes 17211 ;; 17212 openbsd*) 17213 with_gnu_ld=no 17214 ;; 17215 esac 17216 17217 ld_shlibs_GCJ=yes 17218 if test "$with_gnu_ld" = yes; then 17219 # If archive_cmds runs LD, not CC, wlarc should be empty 17220 wlarc='${wl}' 17221 17222 # Set some defaults for GNU ld with shared library support. These 17223 # are reset later if shared libraries are not supported. Putting them 17224 # here allows them to be overridden if necessary. 17225 runpath_var=LD_RUN_PATH 17226 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17227 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17228 # ancient GNU ld didn't support --whole-archive et. al. 17229 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17230 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17231 else 17232 whole_archive_flag_spec_GCJ= 17233 fi 17234 supports_anon_versioning=no 17235 case `$LD -v 2>/dev/null` in 17236 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17237 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17238 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17239 *\ 2.11.*) ;; # other 2.11 versions 17240 *) supports_anon_versioning=yes ;; 17241 esac 17242 17243 # See if GNU ld supports shared libraries. 17244 case $host_os in 17245 aix3* | aix4* | aix5*) 17246 # On AIX/PPC, the GNU linker is very broken 17247 if test "$host_cpu" != ia64; then 17248 ld_shlibs_GCJ=no 17249 cat <<EOF 1>&2 17250 17251*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17252*** to be unable to reliably create shared libraries on AIX. 17253*** Therefore, libtool is disabling shared libraries support. If you 17254*** really care for shared libraries, you may want to modify your PATH 17255*** so that a non-GNU linker is found, and then restart. 17256 17257EOF 17258 fi 17259 ;; 17260 17261 amigaos*) 17262 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)' 17263 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17264 hardcode_minus_L_GCJ=yes 17265 17266 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17267 # that the semantics of dynamic libraries on AmigaOS, at least up 17268 # to version 4, is to share data among multiple programs linked 17269 # with the same dynamic library. Since this doesn't match the 17270 # behavior of shared libraries on other platforms, we can't use 17271 # them. 17272 ld_shlibs_GCJ=no 17273 ;; 17274 17275 beos*) 17276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17277 allow_undefined_flag_GCJ=unsupported 17278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17279 # support --undefined. This deserves some investigation. FIXME 17280 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17281 else 17282 ld_shlibs_GCJ=no 17283 fi 17284 ;; 17285 17286 cygwin* | mingw* | pw32*) 17287 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17288 # as there is no search path for DLLs. 17289 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17290 allow_undefined_flag_GCJ=unsupported 17291 always_export_symbols_GCJ=no 17292 enable_shared_with_static_runtimes_GCJ=yes 17293 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17294 17295 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17296 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17297 # If the export-symbols file already is a .def file (1st line 17298 # is EXPORTS), use it as is; otherwise, prepend... 17299 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17300 cp $export_symbols $output_objdir/$soname.def; 17301 else 17302 echo EXPORTS > $output_objdir/$soname.def; 17303 cat $export_symbols >> $output_objdir/$soname.def; 17304 fi~ 17305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17306 else 17307 ld_shlibs_GCJ=no 17308 fi 17309 ;; 17310 17311 interix3*) 17312 hardcode_direct_GCJ=no 17313 hardcode_shlibpath_var_GCJ=no 17314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17315 export_dynamic_flag_spec_GCJ='${wl}-E' 17316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17317 # Instead, shared libraries are loaded at an image base (0x10000000 by 17318 # default) and relocated if they conflict, which is a slow very memory 17319 # consuming and fragmenting process. To avoid this, we pick a random, 17320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17321 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17322 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' 17323 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' 17324 ;; 17325 17326 linux* | k*bsd*-gnu) 17327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17328 tmp_addflag= 17329 case $cc_basename,$host_cpu in 17330 pgcc*) # Portland Group C compiler 17331 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' 17332 tmp_addflag=' $pic_flag' 17333 ;; 17334 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17335 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' 17336 tmp_addflag=' $pic_flag -Mnomain' ;; 17337 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17338 tmp_addflag=' -i_dynamic' ;; 17339 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17340 tmp_addflag=' -i_dynamic -nofor_main' ;; 17341 ifc* | ifort*) # Intel Fortran compiler 17342 tmp_addflag=' -nofor_main' ;; 17343 esac 17344 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17345 17346 if test $supports_anon_versioning = yes; then 17347 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17349 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17350 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17351 fi 17352 link_all_deplibs_GCJ=no 17353 else 17354 ld_shlibs_GCJ=no 17355 fi 17356 ;; 17357 17358 netbsd* | netbsdelf*-gnu) 17359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17360 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17361 wlarc= 17362 else 17363 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17364 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17365 fi 17366 ;; 17367 17368 solaris*) 17369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17370 ld_shlibs_GCJ=no 17371 cat <<EOF 1>&2 17372 17373*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17374*** create shared libraries on Solaris systems. Therefore, libtool 17375*** is disabling shared libraries support. We urge you to upgrade GNU 17376*** binutils to release 2.9.1 or newer. Another option is to modify 17377*** your PATH or compiler configuration so that the native linker is 17378*** used, and then restart. 17379 17380EOF 17381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17384 else 17385 ld_shlibs_GCJ=no 17386 fi 17387 ;; 17388 17389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17390 case `$LD -v 2>&1` in 17391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17392 ld_shlibs_GCJ=no 17393 cat <<_LT_EOF 1>&2 17394 17395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17396*** reliably create shared libraries on SCO systems. Therefore, libtool 17397*** is disabling shared libraries support. We urge you to upgrade GNU 17398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17399*** your PATH or compiler configuration so that the native linker is 17400*** used, and then restart. 17401 17402_LT_EOF 17403 ;; 17404 *) 17405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17406 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17407 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17408 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17409 else 17410 ld_shlibs_GCJ=no 17411 fi 17412 ;; 17413 esac 17414 ;; 17415 17416 sunos4*) 17417 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17418 wlarc= 17419 hardcode_direct_GCJ=yes 17420 hardcode_shlibpath_var_GCJ=no 17421 ;; 17422 17423 *) 17424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17426 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17427 else 17428 ld_shlibs_GCJ=no 17429 fi 17430 ;; 17431 esac 17432 17433 if test "$ld_shlibs_GCJ" = no; then 17434 runpath_var= 17435 hardcode_libdir_flag_spec_GCJ= 17436 export_dynamic_flag_spec_GCJ= 17437 whole_archive_flag_spec_GCJ= 17438 fi 17439 else 17440 # PORTME fill in a description of your system's linker (not GNU ld) 17441 case $host_os in 17442 aix3*) 17443 allow_undefined_flag_GCJ=unsupported 17444 always_export_symbols_GCJ=yes 17445 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' 17446 # Note: this linker hardcodes the directories in LIBPATH if there 17447 # are no directories specified by -L. 17448 hardcode_minus_L_GCJ=yes 17449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17450 # Neither direct hardcoding nor static linking is supported with a 17451 # broken collect2. 17452 hardcode_direct_GCJ=unsupported 17453 fi 17454 ;; 17455 17456 aix4* | aix5*) 17457 if test "$host_cpu" = ia64; then 17458 # On IA64, the linker does run time linking by default, so we don't 17459 # have to do anything special. 17460 aix_use_runtimelinking=no 17461 exp_sym_flag='-Bexport' 17462 no_entry_flag="" 17463 else 17464 # If we're using GNU nm, then we don't want the "-C" option. 17465 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17467 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' 17468 else 17469 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' 17470 fi 17471 aix_use_runtimelinking=no 17472 17473 # Test if we are trying to use run time linking or normal 17474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17475 # need to do runtime linking. 17476 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17477 for ld_flag in $LDFLAGS; do 17478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17479 aix_use_runtimelinking=yes 17480 break 17481 fi 17482 done 17483 ;; 17484 esac 17485 17486 exp_sym_flag='-bexport' 17487 no_entry_flag='-bnoentry' 17488 fi 17489 17490 # When large executables or shared objects are built, AIX ld can 17491 # have problems creating the table of contents. If linking a library 17492 # or program results in "error TOC overflow" add -mminimal-toc to 17493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17495 17496 archive_cmds_GCJ='' 17497 hardcode_direct_GCJ=yes 17498 hardcode_libdir_separator_GCJ=':' 17499 link_all_deplibs_GCJ=yes 17500 17501 if test "$GCC" = yes; then 17502 case $host_os in aix4.[012]|aix4.[012].*) 17503 # We only want to do this on AIX 4.2 and lower, the check 17504 # below for broken collect2 doesn't work under 4.3+ 17505 collect2name=`${CC} -print-prog-name=collect2` 17506 if test -f "$collect2name" && \ 17507 strings "$collect2name" | grep resolve_lib_name >/dev/null 17508 then 17509 # We have reworked collect2 17510 hardcode_direct_GCJ=yes 17511 else 17512 # We have old collect2 17513 hardcode_direct_GCJ=unsupported 17514 # It fails to find uninstalled libraries when the uninstalled 17515 # path is not listed in the libpath. Setting hardcode_minus_L 17516 # to unsupported forces relinking 17517 hardcode_minus_L_GCJ=yes 17518 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17519 hardcode_libdir_separator_GCJ= 17520 fi 17521 ;; 17522 esac 17523 shared_flag='-shared' 17524 if test "$aix_use_runtimelinking" = yes; then 17525 shared_flag="$shared_flag "'${wl}-G' 17526 fi 17527 else 17528 # not using gcc 17529 if test "$host_cpu" = ia64; then 17530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17531 # chokes on -Wl,-G. The following line is correct: 17532 shared_flag='-G' 17533 else 17534 if test "$aix_use_runtimelinking" = yes; then 17535 shared_flag='${wl}-G' 17536 else 17537 shared_flag='${wl}-bM:SRE' 17538 fi 17539 fi 17540 fi 17541 17542 # It seems that -bexpall does not export symbols beginning with 17543 # underscore (_), so it is better to generate a list of symbols to export. 17544 always_export_symbols_GCJ=yes 17545 if test "$aix_use_runtimelinking" = yes; then 17546 # Warning - without using the other runtime loading flags (-brtl), 17547 # -berok will link without error, but may produce a broken library. 17548 allow_undefined_flag_GCJ='-berok' 17549 # Determine the default libpath from the value encoded in an empty executable. 17550 cat >conftest.$ac_ext <<_ACEOF 17551/* confdefs.h. */ 17552_ACEOF 17553cat confdefs.h >>conftest.$ac_ext 17554cat >>conftest.$ac_ext <<_ACEOF 17555/* end confdefs.h. */ 17556 17557int 17558main () 17559{ 17560 17561 ; 17562 return 0; 17563} 17564_ACEOF 17565rm -f conftest.$ac_objext conftest$ac_exeext 17566if { (ac_try="$ac_link" 17567case "(($ac_try" in 17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17569 *) ac_try_echo=$ac_try;; 17570esac 17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17572 (eval "$ac_link") 2>conftest.er1 17573 ac_status=$? 17574 grep -v '^ *+' conftest.er1 >conftest.err 17575 rm -f conftest.er1 17576 cat conftest.err >&5 17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17578 (exit $ac_status); } && 17579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17580 { (case "(($ac_try" in 17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17582 *) ac_try_echo=$ac_try;; 17583esac 17584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17585 (eval "$ac_try") 2>&5 17586 ac_status=$? 17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17588 (exit $ac_status); }; } && 17589 { ac_try='test -s conftest$ac_exeext' 17590 { (case "(($ac_try" in 17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17592 *) ac_try_echo=$ac_try;; 17593esac 17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17595 (eval "$ac_try") 2>&5 17596 ac_status=$? 17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17598 (exit $ac_status); }; }; then 17599 17600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17601}'` 17602# Check for a 64-bit object if we didn't find anything. 17603if 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; } 17604}'`; fi 17605else 17606 echo "$as_me: failed program was:" >&5 17607sed 's/^/| /' conftest.$ac_ext >&5 17608 17609 17610fi 17611 17612rm -f conftest.err conftest.$ac_objext \ 17613 conftest$ac_exeext conftest.$ac_ext 17614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17615 17616 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17617 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" 17618 else 17619 if test "$host_cpu" = ia64; then 17620 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17621 allow_undefined_flag_GCJ="-z nodefs" 17622 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" 17623 else 17624 # Determine the default libpath from the value encoded in an empty executable. 17625 cat >conftest.$ac_ext <<_ACEOF 17626/* confdefs.h. */ 17627_ACEOF 17628cat confdefs.h >>conftest.$ac_ext 17629cat >>conftest.$ac_ext <<_ACEOF 17630/* end confdefs.h. */ 17631 17632int 17633main () 17634{ 17635 17636 ; 17637 return 0; 17638} 17639_ACEOF 17640rm -f conftest.$ac_objext conftest$ac_exeext 17641if { (ac_try="$ac_link" 17642case "(($ac_try" in 17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17644 *) ac_try_echo=$ac_try;; 17645esac 17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17647 (eval "$ac_link") 2>conftest.er1 17648 ac_status=$? 17649 grep -v '^ *+' conftest.er1 >conftest.err 17650 rm -f conftest.er1 17651 cat conftest.err >&5 17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17653 (exit $ac_status); } && 17654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17655 { (case "(($ac_try" in 17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17657 *) ac_try_echo=$ac_try;; 17658esac 17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17660 (eval "$ac_try") 2>&5 17661 ac_status=$? 17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17663 (exit $ac_status); }; } && 17664 { ac_try='test -s conftest$ac_exeext' 17665 { (case "(($ac_try" in 17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17667 *) ac_try_echo=$ac_try;; 17668esac 17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17670 (eval "$ac_try") 2>&5 17671 ac_status=$? 17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17673 (exit $ac_status); }; }; then 17674 17675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17676}'` 17677# Check for a 64-bit object if we didn't find anything. 17678if 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; } 17679}'`; fi 17680else 17681 echo "$as_me: failed program was:" >&5 17682sed 's/^/| /' conftest.$ac_ext >&5 17683 17684 17685fi 17686 17687rm -f conftest.err conftest.$ac_objext \ 17688 conftest$ac_exeext conftest.$ac_ext 17689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17690 17691 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17692 # Warning - without using the other run time loading flags, 17693 # -berok will link without error, but may produce a broken library. 17694 no_undefined_flag_GCJ=' ${wl}-bernotok' 17695 allow_undefined_flag_GCJ=' ${wl}-berok' 17696 # Exported symbols can be pulled into shared objects from archives 17697 whole_archive_flag_spec_GCJ='$convenience' 17698 archive_cmds_need_lc_GCJ=yes 17699 # This is similar to how AIX traditionally builds its shared libraries. 17700 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' 17701 fi 17702 fi 17703 ;; 17704 17705 amigaos*) 17706 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)' 17707 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17708 hardcode_minus_L_GCJ=yes 17709 # see comment about different semantics on the GNU ld section 17710 ld_shlibs_GCJ=no 17711 ;; 17712 17713 bsdi[45]*) 17714 export_dynamic_flag_spec_GCJ=-rdynamic 17715 ;; 17716 17717 cygwin* | mingw* | pw32*) 17718 # When not using gcc, we currently assume that we are using 17719 # Microsoft Visual C++. 17720 # hardcode_libdir_flag_spec is actually meaningless, as there is 17721 # no search path for DLLs. 17722 hardcode_libdir_flag_spec_GCJ=' ' 17723 allow_undefined_flag_GCJ=unsupported 17724 # Tell ltmain to make .lib files, not .a files. 17725 libext=lib 17726 # Tell ltmain to make .dll files, not .so files. 17727 shrext_cmds=".dll" 17728 # FIXME: Setting linknames here is a bad hack. 17729 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17730 # The linker will automatically build a .lib file if we build a DLL. 17731 old_archive_From_new_cmds_GCJ='true' 17732 # FIXME: Should let the user specify the lib program. 17733 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17734 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17735 enable_shared_with_static_runtimes_GCJ=yes 17736 ;; 17737 17738 darwin* | rhapsody*) 17739 case $host_os in 17740 rhapsody* | darwin1.[012]) 17741 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17742 ;; 17743 *) # Darwin 1.3 on 17744 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17745 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17746 else 17747 case ${MACOSX_DEPLOYMENT_TARGET} in 17748 10.[012]) 17749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17750 ;; 17751 10.*) 17752 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17753 ;; 17754 esac 17755 fi 17756 ;; 17757 esac 17758 archive_cmds_need_lc_GCJ=no 17759 hardcode_direct_GCJ=no 17760 hardcode_automatic_GCJ=yes 17761 hardcode_shlibpath_var_GCJ=unsupported 17762 whole_archive_flag_spec_GCJ='' 17763 link_all_deplibs_GCJ=yes 17764 if test "$GCC" = yes ; then 17765 output_verbose_link_cmd='echo' 17766 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17767 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17768 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17769 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}' 17770 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}' 17771 else 17772 case $cc_basename in 17773 xlc*) 17774 output_verbose_link_cmd='echo' 17775 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17776 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17777 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17778 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}' 17779 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}' 17780 ;; 17781 *) 17782 ld_shlibs_GCJ=no 17783 ;; 17784 esac 17785 fi 17786 ;; 17787 17788 dgux*) 17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17790 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17791 hardcode_shlibpath_var_GCJ=no 17792 ;; 17793 17794 freebsd1*) 17795 ld_shlibs_GCJ=no 17796 ;; 17797 17798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17799 # support. Future versions do this automatically, but an explicit c++rt0.o 17800 # does not break anything, and helps significantly (at the cost of a little 17801 # extra space). 17802 freebsd2.2*) 17803 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17804 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17805 hardcode_direct_GCJ=yes 17806 hardcode_shlibpath_var_GCJ=no 17807 ;; 17808 17809 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17810 freebsd2*) 17811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17812 hardcode_direct_GCJ=yes 17813 hardcode_minus_L_GCJ=yes 17814 hardcode_shlibpath_var_GCJ=no 17815 ;; 17816 17817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17818 freebsd* | dragonfly*) 17819 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17820 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17821 hardcode_direct_GCJ=yes 17822 hardcode_shlibpath_var_GCJ=no 17823 ;; 17824 17825 hpux9*) 17826 if test "$GCC" = yes; then 17827 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' 17828 else 17829 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' 17830 fi 17831 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17832 hardcode_libdir_separator_GCJ=: 17833 hardcode_direct_GCJ=yes 17834 17835 # hardcode_minus_L: Not really in the search PATH, 17836 # but as the default location of the library. 17837 hardcode_minus_L_GCJ=yes 17838 export_dynamic_flag_spec_GCJ='${wl}-E' 17839 ;; 17840 17841 hpux10*) 17842 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17843 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17844 else 17845 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17846 fi 17847 if test "$with_gnu_ld" = no; then 17848 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17849 hardcode_libdir_separator_GCJ=: 17850 17851 hardcode_direct_GCJ=yes 17852 export_dynamic_flag_spec_GCJ='${wl}-E' 17853 17854 # hardcode_minus_L: Not really in the search PATH, 17855 # but as the default location of the library. 17856 hardcode_minus_L_GCJ=yes 17857 fi 17858 ;; 17859 17860 hpux11*) 17861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17862 case $host_cpu in 17863 hppa*64*) 17864 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17865 ;; 17866 ia64*) 17867 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17868 ;; 17869 *) 17870 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17871 ;; 17872 esac 17873 else 17874 case $host_cpu in 17875 hppa*64*) 17876 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17877 ;; 17878 ia64*) 17879 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17880 ;; 17881 *) 17882 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17883 ;; 17884 esac 17885 fi 17886 if test "$with_gnu_ld" = no; then 17887 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17888 hardcode_libdir_separator_GCJ=: 17889 17890 case $host_cpu in 17891 hppa*64*|ia64*) 17892 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17893 hardcode_direct_GCJ=no 17894 hardcode_shlibpath_var_GCJ=no 17895 ;; 17896 *) 17897 hardcode_direct_GCJ=yes 17898 export_dynamic_flag_spec_GCJ='${wl}-E' 17899 17900 # hardcode_minus_L: Not really in the search PATH, 17901 # but as the default location of the library. 17902 hardcode_minus_L_GCJ=yes 17903 ;; 17904 esac 17905 fi 17906 ;; 17907 17908 irix5* | irix6* | nonstopux*) 17909 if test "$GCC" = yes; then 17910 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' 17911 else 17912 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' 17913 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17914 fi 17915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17916 hardcode_libdir_separator_GCJ=: 17917 link_all_deplibs_GCJ=yes 17918 ;; 17919 17920 netbsd* | netbsdelf*-gnu) 17921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17923 else 17924 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17925 fi 17926 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17927 hardcode_direct_GCJ=yes 17928 hardcode_shlibpath_var_GCJ=no 17929 ;; 17930 17931 newsos6) 17932 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17933 hardcode_direct_GCJ=yes 17934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17935 hardcode_libdir_separator_GCJ=: 17936 hardcode_shlibpath_var_GCJ=no 17937 ;; 17938 17939 openbsd*) 17940 hardcode_direct_GCJ=yes 17941 hardcode_shlibpath_var_GCJ=no 17942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17944 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17946 export_dynamic_flag_spec_GCJ='${wl}-E' 17947 else 17948 case $host_os in 17949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17951 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17952 ;; 17953 *) 17954 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17956 ;; 17957 esac 17958 fi 17959 ;; 17960 17961 os2*) 17962 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17963 hardcode_minus_L_GCJ=yes 17964 allow_undefined_flag_GCJ=unsupported 17965 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' 17966 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17967 ;; 17968 17969 osf3*) 17970 if test "$GCC" = yes; then 17971 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17972 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' 17973 else 17974 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17975 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' 17976 fi 17977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17978 hardcode_libdir_separator_GCJ=: 17979 ;; 17980 17981 osf4* | osf5*) # as osf3* with the addition of -msym flag 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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17986 else 17987 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17988 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' 17989 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~ 17990 $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' 17991 17992 # Both c and cxx compiler support -rpath directly 17993 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17994 fi 17995 hardcode_libdir_separator_GCJ=: 17996 ;; 17997 17998 solaris*) 17999 no_undefined_flag_GCJ=' -z text' 18000 if test "$GCC" = yes; then 18001 wlarc='${wl}' 18002 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18003 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18004 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18005 else 18006 wlarc='' 18007 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18008 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18010 fi 18011 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18012 hardcode_shlibpath_var_GCJ=no 18013 case $host_os in 18014 solaris2.[0-5] | solaris2.[0-5].*) ;; 18015 *) 18016 # The compiler driver will combine linker options so we 18017 # cannot just pass the convience library names through 18018 # without $wl, iff we do not link with $LD. 18019 # Luckily, gcc supports the same syntax we need for Sun Studio. 18020 # Supported since Solaris 2.6 (maybe 2.5.1?) 18021 case $wlarc in 18022 '') 18023 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18024 *) 18025 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' ;; 18026 esac ;; 18027 esac 18028 link_all_deplibs_GCJ=yes 18029 ;; 18030 18031 sunos4*) 18032 if test "x$host_vendor" = xsequent; then 18033 # Use $CC to link under sequent, because it throws in some extra .o 18034 # files that make .init and .fini sections work. 18035 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18036 else 18037 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18038 fi 18039 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18040 hardcode_direct_GCJ=yes 18041 hardcode_minus_L_GCJ=yes 18042 hardcode_shlibpath_var_GCJ=no 18043 ;; 18044 18045 sysv4) 18046 case $host_vendor in 18047 sni) 18048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18049 hardcode_direct_GCJ=yes # is this really true??? 18050 ;; 18051 siemens) 18052 ## LD is ld it makes a PLAMLIB 18053 ## CC just makes a GrossModule. 18054 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18055 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18056 hardcode_direct_GCJ=no 18057 ;; 18058 motorola) 18059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18060 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18061 ;; 18062 esac 18063 runpath_var='LD_RUN_PATH' 18064 hardcode_shlibpath_var_GCJ=no 18065 ;; 18066 18067 sysv4.3*) 18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18069 hardcode_shlibpath_var_GCJ=no 18070 export_dynamic_flag_spec_GCJ='-Bexport' 18071 ;; 18072 18073 sysv4*MP*) 18074 if test -d /usr/nec; then 18075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18076 hardcode_shlibpath_var_GCJ=no 18077 runpath_var=LD_RUN_PATH 18078 hardcode_runpath_var=yes 18079 ld_shlibs_GCJ=yes 18080 fi 18081 ;; 18082 18083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18084 no_undefined_flag_GCJ='${wl}-z,text' 18085 archive_cmds_need_lc_GCJ=no 18086 hardcode_shlibpath_var_GCJ=no 18087 runpath_var='LD_RUN_PATH' 18088 18089 if test "$GCC" = yes; then 18090 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18091 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18092 else 18093 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18094 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18095 fi 18096 ;; 18097 18098 sysv5* | sco3.2v5* | sco5v6*) 18099 # Note: We can NOT use -z defs as we might desire, because we do not 18100 # link with -lc, and that would cause any symbols used from libc to 18101 # always be unresolved, which means just about no library would 18102 # ever link correctly. If we're not using GNU ld we use -z text 18103 # though, which does catch some bad symbols but isn't as heavy-handed 18104 # as -z defs. 18105 no_undefined_flag_GCJ='${wl}-z,text' 18106 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18107 archive_cmds_need_lc_GCJ=no 18108 hardcode_shlibpath_var_GCJ=no 18109 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18110 hardcode_libdir_separator_GCJ=':' 18111 link_all_deplibs_GCJ=yes 18112 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18113 runpath_var='LD_RUN_PATH' 18114 18115 if test "$GCC" = yes; then 18116 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18117 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18118 else 18119 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18120 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18121 fi 18122 ;; 18123 18124 uts4*) 18125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18126 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18127 hardcode_shlibpath_var_GCJ=no 18128 ;; 18129 18130 *) 18131 ld_shlibs_GCJ=no 18132 ;; 18133 esac 18134 fi 18135 18136{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18137echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18138test "$ld_shlibs_GCJ" = no && can_build_shared=no 18139 18140# 18141# Do we need to explicitly link libc? 18142# 18143case "x$archive_cmds_need_lc_GCJ" in 18144x|xyes) 18145 # Assume -lc should be added 18146 archive_cmds_need_lc_GCJ=yes 18147 18148 if test "$enable_shared" = yes && test "$GCC" = yes; then 18149 case $archive_cmds_GCJ in 18150 *'~'*) 18151 # FIXME: we may have to deal with multi-command sequences. 18152 ;; 18153 '$CC '*) 18154 # Test whether the compiler implicitly links with -lc since on some 18155 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18156 # to ld, don't add -lc before -lgcc. 18157 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18158echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18159 $rm conftest* 18160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18161 18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18163 (eval $ac_compile) 2>&5 18164 ac_status=$? 18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18166 (exit $ac_status); } 2>conftest.err; then 18167 soname=conftest 18168 lib=conftest 18169 libobjs=conftest.$ac_objext 18170 deplibs= 18171 wl=$lt_prog_compiler_wl_GCJ 18172 pic_flag=$lt_prog_compiler_pic_GCJ 18173 compiler_flags=-v 18174 linker_flags=-v 18175 verstring= 18176 output_objdir=. 18177 libname=conftest 18178 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18179 allow_undefined_flag_GCJ= 18180 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18181 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18182 ac_status=$? 18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18184 (exit $ac_status); } 18185 then 18186 archive_cmds_need_lc_GCJ=no 18187 else 18188 archive_cmds_need_lc_GCJ=yes 18189 fi 18190 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18191 else 18192 cat conftest.err 1>&5 18193 fi 18194 $rm conftest* 18195 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18196echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18197 ;; 18198 esac 18199 fi 18200 ;; 18201esac 18202 18203{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18204echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18205library_names_spec= 18206libname_spec='lib$name' 18207soname_spec= 18208shrext_cmds=".so" 18209postinstall_cmds= 18210postuninstall_cmds= 18211finish_cmds= 18212finish_eval= 18213shlibpath_var= 18214shlibpath_overrides_runpath=unknown 18215version_type=none 18216dynamic_linker="$host_os ld.so" 18217sys_lib_dlsearch_path_spec="/lib /usr/lib" 18218if test "$GCC" = yes; then 18219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18220 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18221 # if the path contains ";" then we assume it to be the separator 18222 # otherwise default to the standard path separator (i.e. ":") - it is 18223 # assumed that no part of a normal pathname contains ";" but that should 18224 # okay in the real world where ";" in dirpaths is itself problematic. 18225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18226 else 18227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18228 fi 18229else 18230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18231fi 18232need_lib_prefix=unknown 18233hardcode_into_libs=no 18234 18235# when you set need_version to no, make sure it does not cause -set_version 18236# flags to be left without arguments 18237need_version=unknown 18238 18239case $host_os in 18240aix3*) 18241 version_type=linux 18242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18243 shlibpath_var=LIBPATH 18244 18245 # AIX 3 has no versioning support, so we append a major version to the name. 18246 soname_spec='${libname}${release}${shared_ext}$major' 18247 ;; 18248 18249aix4* | aix5*) 18250 version_type=linux 18251 need_lib_prefix=no 18252 need_version=no 18253 hardcode_into_libs=yes 18254 if test "$host_cpu" = ia64; then 18255 # AIX 5 supports IA64 18256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18257 shlibpath_var=LD_LIBRARY_PATH 18258 else 18259 # With GCC up to 2.95.x, collect2 would create an import file 18260 # for dependence libraries. The import file would start with 18261 # the line `#! .'. This would cause the generated library to 18262 # depend on `.', always an invalid library. This was fixed in 18263 # development snapshots of GCC prior to 3.0. 18264 case $host_os in 18265 aix4 | aix4.[01] | aix4.[01].*) 18266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18267 echo ' yes ' 18268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18269 : 18270 else 18271 can_build_shared=no 18272 fi 18273 ;; 18274 esac 18275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18276 # soname into executable. Probably we can add versioning support to 18277 # collect2, so additional links can be useful in future. 18278 if test "$aix_use_runtimelinking" = yes; then 18279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18280 # instead of lib<name>.a to let people know that these are not 18281 # typical AIX shared libraries. 18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18283 else 18284 # We preserve .a as extension for shared libraries through AIX4.2 18285 # and later when we are not doing run time linking. 18286 library_names_spec='${libname}${release}.a $libname.a' 18287 soname_spec='${libname}${release}${shared_ext}$major' 18288 fi 18289 shlibpath_var=LIBPATH 18290 fi 18291 ;; 18292 18293amigaos*) 18294 library_names_spec='$libname.ixlibrary $libname.a' 18295 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18296 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' 18297 ;; 18298 18299beos*) 18300 library_names_spec='${libname}${shared_ext}' 18301 dynamic_linker="$host_os ld.so" 18302 shlibpath_var=LIBRARY_PATH 18303 ;; 18304 18305bsdi[45]*) 18306 version_type=linux 18307 need_version=no 18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18309 soname_spec='${libname}${release}${shared_ext}$major' 18310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18311 shlibpath_var=LD_LIBRARY_PATH 18312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18314 # the default ld.so.conf also contains /usr/contrib/lib and 18315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18316 # libtool to hard-code these into programs 18317 ;; 18318 18319cygwin* | mingw* | pw32*) 18320 version_type=windows 18321 shrext_cmds=".dll" 18322 need_version=no 18323 need_lib_prefix=no 18324 18325 case $GCC,$host_os in 18326 yes,cygwin* | yes,mingw* | yes,pw32*) 18327 library_names_spec='$libname.dll.a' 18328 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18329 postinstall_cmds='base_file=`basename \${file}`~ 18330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18331 dldir=$destdir/`dirname \$dlpath`~ 18332 test -d \$dldir || mkdir -p \$dldir~ 18333 $install_prog $dir/$dlname \$dldir/$dlname~ 18334 chmod a+x \$dldir/$dlname' 18335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18336 dlpath=$dir/\$dldll~ 18337 $rm \$dlpath' 18338 shlibpath_overrides_runpath=yes 18339 18340 case $host_os in 18341 cygwin*) 18342 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18345 ;; 18346 mingw*) 18347 # MinGW DLLs use traditional 'lib' prefix 18348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18351 # It is most probably a Windows format PATH printed by 18352 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18353 # path with ; separators, and with drive letters. We can handle the 18354 # drive letters (cygwin fileutils understands them), so leave them, 18355 # especially as we might pass files found there to a mingw objdump, 18356 # which wouldn't understand a cygwinified path. Ahh. 18357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18358 else 18359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18360 fi 18361 ;; 18362 pw32*) 18363 # pw32 DLLs use 'pw' prefix rather than 'lib' 18364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18365 ;; 18366 esac 18367 ;; 18368 18369 *) 18370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18371 ;; 18372 esac 18373 dynamic_linker='Win32 ld.exe' 18374 # FIXME: first we should search . and the directory the executable is in 18375 shlibpath_var=PATH 18376 ;; 18377 18378darwin* | rhapsody*) 18379 dynamic_linker="$host_os dyld" 18380 version_type=darwin 18381 need_lib_prefix=no 18382 need_version=no 18383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18384 soname_spec='${libname}${release}${major}$shared_ext' 18385 shlibpath_overrides_runpath=yes 18386 shlibpath_var=DYLD_LIBRARY_PATH 18387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18389 if test "$GCC" = yes; then 18390 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"` 18391 else 18392 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18393 fi 18394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18395 ;; 18396 18397dgux*) 18398 version_type=linux 18399 need_lib_prefix=no 18400 need_version=no 18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18402 soname_spec='${libname}${release}${shared_ext}$major' 18403 shlibpath_var=LD_LIBRARY_PATH 18404 ;; 18405 18406freebsd1*) 18407 dynamic_linker=no 18408 ;; 18409 18410freebsd* | dragonfly*) 18411 # DragonFly does not have aout. When/if they implement a new 18412 # versioning mechanism, adjust this. 18413 if test -x /usr/bin/objformat; then 18414 objformat=`/usr/bin/objformat` 18415 else 18416 case $host_os in 18417 freebsd[123]*) objformat=aout ;; 18418 *) objformat=elf ;; 18419 esac 18420 fi 18421 version_type=freebsd-$objformat 18422 case $version_type in 18423 freebsd-elf*) 18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18425 need_version=no 18426 need_lib_prefix=no 18427 ;; 18428 freebsd-*) 18429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18430 need_version=yes 18431 ;; 18432 esac 18433 shlibpath_var=LD_LIBRARY_PATH 18434 case $host_os in 18435 freebsd2*) 18436 shlibpath_overrides_runpath=yes 18437 ;; 18438 freebsd3.[01]* | freebsdelf3.[01]*) 18439 shlibpath_overrides_runpath=yes 18440 hardcode_into_libs=yes 18441 ;; 18442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18444 shlibpath_overrides_runpath=no 18445 hardcode_into_libs=yes 18446 ;; 18447 freebsd*) # from 4.6 on 18448 shlibpath_overrides_runpath=yes 18449 hardcode_into_libs=yes 18450 ;; 18451 esac 18452 ;; 18453 18454gnu*) 18455 version_type=linux 18456 need_lib_prefix=no 18457 need_version=no 18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18459 soname_spec='${libname}${release}${shared_ext}$major' 18460 shlibpath_var=LD_LIBRARY_PATH 18461 hardcode_into_libs=yes 18462 ;; 18463 18464hpux9* | hpux10* | hpux11*) 18465 # Give a soname corresponding to the major version so that dld.sl refuses to 18466 # link against other versions. 18467 version_type=sunos 18468 need_lib_prefix=no 18469 need_version=no 18470 case $host_cpu in 18471 ia64*) 18472 shrext_cmds='.so' 18473 hardcode_into_libs=yes 18474 dynamic_linker="$host_os dld.so" 18475 shlibpath_var=LD_LIBRARY_PATH 18476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18478 soname_spec='${libname}${release}${shared_ext}$major' 18479 if test "X$HPUX_IA64_MODE" = X32; then 18480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18481 else 18482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18483 fi 18484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18485 ;; 18486 hppa*64*) 18487 shrext_cmds='.sl' 18488 hardcode_into_libs=yes 18489 dynamic_linker="$host_os dld.sl" 18490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18493 soname_spec='${libname}${release}${shared_ext}$major' 18494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18496 ;; 18497 *) 18498 shrext_cmds='.sl' 18499 dynamic_linker="$host_os dld.sl" 18500 shlibpath_var=SHLIB_PATH 18501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18503 soname_spec='${libname}${release}${shared_ext}$major' 18504 ;; 18505 esac 18506 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18507 postinstall_cmds='chmod 555 $lib' 18508 ;; 18509 18510interix3*) 18511 version_type=linux 18512 need_lib_prefix=no 18513 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18517 shlibpath_var=LD_LIBRARY_PATH 18518 shlibpath_overrides_runpath=no 18519 hardcode_into_libs=yes 18520 ;; 18521 18522irix5* | irix6* | nonstopux*) 18523 case $host_os in 18524 nonstopux*) version_type=nonstopux ;; 18525 *) 18526 if test "$lt_cv_prog_gnu_ld" = yes; then 18527 version_type=linux 18528 else 18529 version_type=irix 18530 fi ;; 18531 esac 18532 need_lib_prefix=no 18533 need_version=no 18534 soname_spec='${libname}${release}${shared_ext}$major' 18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18536 case $host_os in 18537 irix5* | nonstopux*) 18538 libsuff= shlibsuff= 18539 ;; 18540 *) 18541 case $LD in # libtool.m4 will add one of these switches to LD 18542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18543 libsuff= shlibsuff= libmagic=32-bit;; 18544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18545 libsuff=32 shlibsuff=N32 libmagic=N32;; 18546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18547 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18548 *) libsuff= shlibsuff= libmagic=never-match;; 18549 esac 18550 ;; 18551 esac 18552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18553 shlibpath_overrides_runpath=no 18554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18556 hardcode_into_libs=yes 18557 ;; 18558 18559# No shared lib support for Linux oldld, aout, or coff. 18560linux*oldld* | linux*aout* | linux*coff*) 18561 dynamic_linker=no 18562 ;; 18563 18564# This must be Linux ELF. 18565linux* | k*bsd*-gnu) 18566 version_type=linux 18567 need_lib_prefix=no 18568 need_version=no 18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18570 soname_spec='${libname}${release}${shared_ext}$major' 18571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18572 shlibpath_var=LD_LIBRARY_PATH 18573 shlibpath_overrides_runpath=no 18574 # This implies no fast_install, which is unacceptable. 18575 # Some rework will be needed to allow for fast_install 18576 # before this can be enabled. 18577 hardcode_into_libs=yes 18578 18579 # Append ld.so.conf contents to the search path 18580 if test -f /etc/ld.so.conf; then 18581 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' ' '` 18582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18583 fi 18584 18585 # We used to test for /lib/ld.so.1 and disable shared libraries on 18586 # powerpc, because MkLinux only supported shared libraries with the 18587 # GNU dynamic linker. Since this was broken with cross compilers, 18588 # most powerpc-linux boxes support dynamic linking these days and 18589 # people can always --disable-shared, the test was removed, and we 18590 # assume the GNU/Linux dynamic linker is in use. 18591 dynamic_linker='GNU/Linux ld.so' 18592 ;; 18593 18594netbsdelf*-gnu) 18595 version_type=linux 18596 need_lib_prefix=no 18597 need_version=no 18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18599 soname_spec='${libname}${release}${shared_ext}$major' 18600 shlibpath_var=LD_LIBRARY_PATH 18601 shlibpath_overrides_runpath=no 18602 hardcode_into_libs=yes 18603 dynamic_linker='NetBSD ld.elf_so' 18604 ;; 18605 18606netbsd*) 18607 version_type=sunos 18608 need_lib_prefix=no 18609 need_version=no 18610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18613 dynamic_linker='NetBSD (a.out) ld.so' 18614 else 18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18616 soname_spec='${libname}${release}${shared_ext}$major' 18617 dynamic_linker='NetBSD ld.elf_so' 18618 fi 18619 shlibpath_var=LD_LIBRARY_PATH 18620 shlibpath_overrides_runpath=yes 18621 hardcode_into_libs=yes 18622 ;; 18623 18624newsos6) 18625 version_type=linux 18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18627 shlibpath_var=LD_LIBRARY_PATH 18628 shlibpath_overrides_runpath=yes 18629 ;; 18630 18631nto-qnx*) 18632 version_type=linux 18633 need_lib_prefix=no 18634 need_version=no 18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18636 soname_spec='${libname}${release}${shared_ext}$major' 18637 shlibpath_var=LD_LIBRARY_PATH 18638 shlibpath_overrides_runpath=yes 18639 ;; 18640 18641openbsd*) 18642 version_type=sunos 18643 sys_lib_dlsearch_path_spec="/usr/lib" 18644 need_lib_prefix=no 18645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18646 case $host_os in 18647 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18648 *) need_version=no ;; 18649 esac 18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18652 shlibpath_var=LD_LIBRARY_PATH 18653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18654 case $host_os in 18655 openbsd2.[89] | openbsd2.[89].*) 18656 shlibpath_overrides_runpath=no 18657 ;; 18658 *) 18659 shlibpath_overrides_runpath=yes 18660 ;; 18661 esac 18662 else 18663 shlibpath_overrides_runpath=yes 18664 fi 18665 ;; 18666 18667os2*) 18668 libname_spec='$name' 18669 shrext_cmds=".dll" 18670 need_lib_prefix=no 18671 library_names_spec='$libname${shared_ext} $libname.a' 18672 dynamic_linker='OS/2 ld.exe' 18673 shlibpath_var=LIBPATH 18674 ;; 18675 18676osf3* | osf4* | osf5*) 18677 version_type=osf 18678 need_lib_prefix=no 18679 need_version=no 18680 soname_spec='${libname}${release}${shared_ext}$major' 18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18682 shlibpath_var=LD_LIBRARY_PATH 18683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18685 ;; 18686 18687solaris*) 18688 version_type=linux 18689 need_lib_prefix=no 18690 need_version=no 18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18692 soname_spec='${libname}${release}${shared_ext}$major' 18693 shlibpath_var=LD_LIBRARY_PATH 18694 shlibpath_overrides_runpath=yes 18695 hardcode_into_libs=yes 18696 # ldd complains unless libraries are executable 18697 postinstall_cmds='chmod +x $lib' 18698 ;; 18699 18700sunos4*) 18701 version_type=sunos 18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18704 shlibpath_var=LD_LIBRARY_PATH 18705 shlibpath_overrides_runpath=yes 18706 if test "$with_gnu_ld" = yes; then 18707 need_lib_prefix=no 18708 fi 18709 need_version=yes 18710 ;; 18711 18712sysv4 | sysv4.3*) 18713 version_type=linux 18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18715 soname_spec='${libname}${release}${shared_ext}$major' 18716 shlibpath_var=LD_LIBRARY_PATH 18717 case $host_vendor in 18718 sni) 18719 shlibpath_overrides_runpath=no 18720 need_lib_prefix=no 18721 export_dynamic_flag_spec='${wl}-Blargedynsym' 18722 runpath_var=LD_RUN_PATH 18723 ;; 18724 siemens) 18725 need_lib_prefix=no 18726 ;; 18727 motorola) 18728 need_lib_prefix=no 18729 need_version=no 18730 shlibpath_overrides_runpath=no 18731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18732 ;; 18733 esac 18734 ;; 18735 18736sysv4*MP*) 18737 if test -d /usr/nec ;then 18738 version_type=linux 18739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18740 soname_spec='$libname${shared_ext}.$major' 18741 shlibpath_var=LD_LIBRARY_PATH 18742 fi 18743 ;; 18744 18745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18746 version_type=freebsd-elf 18747 need_lib_prefix=no 18748 need_version=no 18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18750 soname_spec='${libname}${release}${shared_ext}$major' 18751 shlibpath_var=LD_LIBRARY_PATH 18752 hardcode_into_libs=yes 18753 if test "$with_gnu_ld" = yes; then 18754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18755 shlibpath_overrides_runpath=no 18756 else 18757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18758 shlibpath_overrides_runpath=yes 18759 case $host_os in 18760 sco3.2v5*) 18761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18762 ;; 18763 esac 18764 fi 18765 sys_lib_dlsearch_path_spec='/usr/lib' 18766 ;; 18767 18768uts4*) 18769 version_type=linux 18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18771 soname_spec='${libname}${release}${shared_ext}$major' 18772 shlibpath_var=LD_LIBRARY_PATH 18773 ;; 18774 18775*) 18776 dynamic_linker=no 18777 ;; 18778esac 18779{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18780echo "${ECHO_T}$dynamic_linker" >&6; } 18781test "$dynamic_linker" = no && can_build_shared=no 18782 18783variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18784if test "$GCC" = yes; then 18785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18786fi 18787 18788{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18789echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18790hardcode_action_GCJ= 18791if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18792 test -n "$runpath_var_GCJ" || \ 18793 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18794 18795 # We can hardcode non-existant directories. 18796 if test "$hardcode_direct_GCJ" != no && 18797 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18798 # have to relink, otherwise we might link with an installed library 18799 # when we should be linking with a yet-to-be-installed one 18800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18801 test "$hardcode_minus_L_GCJ" != no; then 18802 # Linking always hardcodes the temporary library directory. 18803 hardcode_action_GCJ=relink 18804 else 18805 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18806 hardcode_action_GCJ=immediate 18807 fi 18808else 18809 # We cannot hardcode anything, or else we can only hardcode existing 18810 # directories. 18811 hardcode_action_GCJ=unsupported 18812fi 18813{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18814echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18815 18816if test "$hardcode_action_GCJ" = relink; then 18817 # Fast installation is not supported 18818 enable_fast_install=no 18819elif test "$shlibpath_overrides_runpath" = yes || 18820 test "$enable_shared" = no; then 18821 # Fast installation is not necessary 18822 enable_fast_install=needless 18823fi 18824 18825 18826# The else clause should only fire when bootstrapping the 18827# libtool distribution, otherwise you forgot to ship ltmain.sh 18828# with your package, and you will get complaints that there are 18829# no rules to generate ltmain.sh. 18830if test -f "$ltmain"; then 18831 # See if we are running on zsh, and set the options which allow our commands through 18832 # without removal of \ escapes. 18833 if test -n "${ZSH_VERSION+set}" ; then 18834 setopt NO_GLOB_SUBST 18835 fi 18836 # Now quote all the things that may contain metacharacters while being 18837 # careful not to overquote the AC_SUBSTed values. We take copies of the 18838 # variables and quote the copies for generation of the libtool script. 18839 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18840 SED SHELL STRIP \ 18841 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18842 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18843 deplibs_check_method reload_flag reload_cmds need_locks \ 18844 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18845 lt_cv_sys_global_symbol_to_c_name_address \ 18846 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18847 old_postinstall_cmds old_postuninstall_cmds \ 18848 compiler_GCJ \ 18849 CC_GCJ \ 18850 LD_GCJ \ 18851 lt_prog_compiler_wl_GCJ \ 18852 lt_prog_compiler_pic_GCJ \ 18853 lt_prog_compiler_static_GCJ \ 18854 lt_prog_compiler_no_builtin_flag_GCJ \ 18855 export_dynamic_flag_spec_GCJ \ 18856 thread_safe_flag_spec_GCJ \ 18857 whole_archive_flag_spec_GCJ \ 18858 enable_shared_with_static_runtimes_GCJ \ 18859 old_archive_cmds_GCJ \ 18860 old_archive_from_new_cmds_GCJ \ 18861 predep_objects_GCJ \ 18862 postdep_objects_GCJ \ 18863 predeps_GCJ \ 18864 postdeps_GCJ \ 18865 compiler_lib_search_path_GCJ \ 18866 archive_cmds_GCJ \ 18867 archive_expsym_cmds_GCJ \ 18868 postinstall_cmds_GCJ \ 18869 postuninstall_cmds_GCJ \ 18870 old_archive_from_expsyms_cmds_GCJ \ 18871 allow_undefined_flag_GCJ \ 18872 no_undefined_flag_GCJ \ 18873 export_symbols_cmds_GCJ \ 18874 hardcode_libdir_flag_spec_GCJ \ 18875 hardcode_libdir_flag_spec_ld_GCJ \ 18876 hardcode_libdir_separator_GCJ \ 18877 hardcode_automatic_GCJ \ 18878 module_cmds_GCJ \ 18879 module_expsym_cmds_GCJ \ 18880 lt_cv_prog_compiler_c_o_GCJ \ 18881 exclude_expsyms_GCJ \ 18882 include_expsyms_GCJ; do 18883 18884 case $var in 18885 old_archive_cmds_GCJ | \ 18886 old_archive_from_new_cmds_GCJ | \ 18887 archive_cmds_GCJ | \ 18888 archive_expsym_cmds_GCJ | \ 18889 module_cmds_GCJ | \ 18890 module_expsym_cmds_GCJ | \ 18891 old_archive_from_expsyms_cmds_GCJ | \ 18892 export_symbols_cmds_GCJ | \ 18893 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18894 postinstall_cmds | postuninstall_cmds | \ 18895 old_postinstall_cmds | old_postuninstall_cmds | \ 18896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18897 # Double-quote double-evaled strings. 18898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18899 ;; 18900 *) 18901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18902 ;; 18903 esac 18904 done 18905 18906 case $lt_echo in 18907 *'\$0 --fallback-echo"') 18908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18909 ;; 18910 esac 18911 18912cfgfile="$ofile" 18913 18914 cat <<__EOF__ >> "$cfgfile" 18915# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18916 18917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18918 18919# Shell to use when invoking shell scripts. 18920SHELL=$lt_SHELL 18921 18922# Whether or not to build shared libraries. 18923build_libtool_libs=$enable_shared 18924 18925# Whether or not to build static libraries. 18926build_old_libs=$enable_static 18927 18928# Whether or not to add -lc for building shared libraries. 18929build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18930 18931# Whether or not to disallow shared libs when runtime libs are static 18932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18933 18934# Whether or not to optimize for fast installation. 18935fast_install=$enable_fast_install 18936 18937# The host system. 18938host_alias=$host_alias 18939host=$host 18940host_os=$host_os 18941 18942# The build system. 18943build_alias=$build_alias 18944build=$build 18945build_os=$build_os 18946 18947# An echo program that does not interpret backslashes. 18948echo=$lt_echo 18949 18950# The archiver. 18951AR=$lt_AR 18952AR_FLAGS=$lt_AR_FLAGS 18953 18954# A C compiler. 18955LTCC=$lt_LTCC 18956 18957# LTCC compiler flags. 18958LTCFLAGS=$lt_LTCFLAGS 18959 18960# A language-specific compiler. 18961CC=$lt_compiler_GCJ 18962 18963# Is the compiler the GNU C compiler? 18964with_gcc=$GCC_GCJ 18965 18966# An ERE matcher. 18967EGREP=$lt_EGREP 18968 18969# The linker used to build libraries. 18970LD=$lt_LD_GCJ 18971 18972# Whether we need hard or soft links. 18973LN_S=$lt_LN_S 18974 18975# A BSD-compatible nm program. 18976NM=$lt_NM 18977 18978# A symbol stripping program 18979STRIP=$lt_STRIP 18980 18981# Used to examine libraries when file_magic_cmd begins "file" 18982MAGIC_CMD=$MAGIC_CMD 18983 18984# Used on cygwin: DLL creation program. 18985DLLTOOL="$DLLTOOL" 18986 18987# Used on cygwin: object dumper. 18988OBJDUMP="$OBJDUMP" 18989 18990# Used on cygwin: assembler. 18991AS="$AS" 18992 18993# The name of the directory that contains temporary libtool files. 18994objdir=$objdir 18995 18996# How to create reloadable object files. 18997reload_flag=$lt_reload_flag 18998reload_cmds=$lt_reload_cmds 18999 19000# How to pass a linker flag through the compiler. 19001wl=$lt_lt_prog_compiler_wl_GCJ 19002 19003# Object file suffix (normally "o"). 19004objext="$ac_objext" 19005 19006# Old archive suffix (normally "a"). 19007libext="$libext" 19008 19009# Shared library suffix (normally ".so"). 19010shrext_cmds='$shrext_cmds' 19011 19012# Executable file suffix (normally ""). 19013exeext="$exeext" 19014 19015# Additional compiler flags for building library objects. 19016pic_flag=$lt_lt_prog_compiler_pic_GCJ 19017pic_mode=$pic_mode 19018 19019# What is the maximum length of a command? 19020max_cmd_len=$lt_cv_sys_max_cmd_len 19021 19022# Does compiler simultaneously support -c and -o options? 19023compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19024 19025# Must we lock files when doing compilation? 19026need_locks=$lt_need_locks 19027 19028# Do we need the lib prefix for modules? 19029need_lib_prefix=$need_lib_prefix 19030 19031# Do we need a version for libraries? 19032need_version=$need_version 19033 19034# Whether dlopen is supported. 19035dlopen_support=$enable_dlopen 19036 19037# Whether dlopen of programs is supported. 19038dlopen_self=$enable_dlopen_self 19039 19040# Whether dlopen of statically linked programs is supported. 19041dlopen_self_static=$enable_dlopen_self_static 19042 19043# Compiler flag to prevent dynamic linking. 19044link_static_flag=$lt_lt_prog_compiler_static_GCJ 19045 19046# Compiler flag to turn off builtin functions. 19047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19048 19049# Compiler flag to allow reflexive dlopens. 19050export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19051 19052# Compiler flag to generate shared objects directly from archives. 19053whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19054 19055# Compiler flag to generate thread-safe objects. 19056thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19057 19058# Library versioning type. 19059version_type=$version_type 19060 19061# Format of library name prefix. 19062libname_spec=$lt_libname_spec 19063 19064# List of archive names. First name is the real one, the rest are links. 19065# The last name is the one that the linker finds with -lNAME. 19066library_names_spec=$lt_library_names_spec 19067 19068# The coded name of the library, if different from the real name. 19069soname_spec=$lt_soname_spec 19070 19071# Commands used to build and install an old-style archive. 19072RANLIB=$lt_RANLIB 19073old_archive_cmds=$lt_old_archive_cmds_GCJ 19074old_postinstall_cmds=$lt_old_postinstall_cmds 19075old_postuninstall_cmds=$lt_old_postuninstall_cmds 19076 19077# Create an old-style archive from a shared archive. 19078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19079 19080# Create a temporary old-style archive to link instead of a shared archive. 19081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19082 19083# Commands used to build and install a shared archive. 19084archive_cmds=$lt_archive_cmds_GCJ 19085archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19086postinstall_cmds=$lt_postinstall_cmds 19087postuninstall_cmds=$lt_postuninstall_cmds 19088 19089# Commands used to build a loadable module (assumed same as above if empty) 19090module_cmds=$lt_module_cmds_GCJ 19091module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19092 19093# Commands to strip libraries. 19094old_striplib=$lt_old_striplib 19095striplib=$lt_striplib 19096 19097# Dependencies to place before the objects being linked to create a 19098# shared library. 19099predep_objects=$lt_predep_objects_GCJ 19100 19101# Dependencies to place after the objects being linked to create a 19102# shared library. 19103postdep_objects=$lt_postdep_objects_GCJ 19104 19105# Dependencies to place before the objects being linked to create a 19106# shared library. 19107predeps=$lt_predeps_GCJ 19108 19109# Dependencies to place after the objects being linked to create a 19110# shared library. 19111postdeps=$lt_postdeps_GCJ 19112 19113# The library search path used internally by the compiler when linking 19114# a shared library. 19115compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19116 19117# Method to check whether dependent libraries are shared objects. 19118deplibs_check_method=$lt_deplibs_check_method 19119 19120# Command to use when deplibs_check_method == file_magic. 19121file_magic_cmd=$lt_file_magic_cmd 19122 19123# Flag that allows shared libraries with undefined symbols to be built. 19124allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19125 19126# Flag that forces no undefined symbols. 19127no_undefined_flag=$lt_no_undefined_flag_GCJ 19128 19129# Commands used to finish a libtool library installation in a directory. 19130finish_cmds=$lt_finish_cmds 19131 19132# Same as above, but a single script fragment to be evaled but not shown. 19133finish_eval=$lt_finish_eval 19134 19135# Take the output of nm and produce a listing of raw symbols and C names. 19136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19137 19138# Transform the output of nm in a proper C declaration 19139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19140 19141# Transform the output of nm in a C name address pair 19142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19143 19144# This is the shared library runtime path variable. 19145runpath_var=$runpath_var 19146 19147# This is the shared library path variable. 19148shlibpath_var=$shlibpath_var 19149 19150# Is shlibpath searched before the hard-coded library search path? 19151shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19152 19153# How to hardcode a shared library path into an executable. 19154hardcode_action=$hardcode_action_GCJ 19155 19156# Whether we should hardcode library paths into libraries. 19157hardcode_into_libs=$hardcode_into_libs 19158 19159# Flag to hardcode \$libdir into a binary during linking. 19160# This must work even if \$libdir does not exist. 19161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19162 19163# If ld is used when linking, flag to hardcode \$libdir into 19164# a binary during linking. This must work even if \$libdir does 19165# not exist. 19166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19167 19168# Whether we need a single -rpath flag with a separated argument. 19169hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19170 19171# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19172# resulting binary. 19173hardcode_direct=$hardcode_direct_GCJ 19174 19175# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19176# resulting binary. 19177hardcode_minus_L=$hardcode_minus_L_GCJ 19178 19179# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19180# the resulting binary. 19181hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19182 19183# Set to yes if building a shared library automatically hardcodes DIR into the library 19184# and all subsequent libraries and executables linked against it. 19185hardcode_automatic=$hardcode_automatic_GCJ 19186 19187# Variables whose values should be saved in libtool wrapper scripts and 19188# restored at relink time. 19189variables_saved_for_relink="$variables_saved_for_relink" 19190 19191# Whether libtool must link a program against all its dependency libraries. 19192link_all_deplibs=$link_all_deplibs_GCJ 19193 19194# Compile-time system search path for libraries 19195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19196 19197# Run-time system search path for libraries 19198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19199 19200# Fix the shell variable \$srcfile for the compiler. 19201fix_srcfile_path="$fix_srcfile_path_GCJ" 19202 19203# Set to yes if exported symbols are required. 19204always_export_symbols=$always_export_symbols_GCJ 19205 19206# The commands to list exported symbols. 19207export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19208 19209# The commands to extract the exported symbol list from a shared archive. 19210extract_expsyms_cmds=$lt_extract_expsyms_cmds 19211 19212# Symbols that should not be listed in the preloaded symbols. 19213exclude_expsyms=$lt_exclude_expsyms_GCJ 19214 19215# Symbols that must always be exported. 19216include_expsyms=$lt_include_expsyms_GCJ 19217 19218# ### END LIBTOOL TAG CONFIG: $tagname 19219 19220__EOF__ 19221 19222 19223else 19224 # If there is no Makefile yet, we rely on a make rule to execute 19225 # `config.status --recheck' to rerun these tests and create the 19226 # libtool script then. 19227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19228 if test -f "$ltmain_in"; then 19229 test -f Makefile && make "$ltmain" 19230 fi 19231fi 19232 19233 19234ac_ext=c 19235ac_cpp='$CPP $CPPFLAGS' 19236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19238ac_compiler_gnu=$ac_cv_c_compiler_gnu 19239 19240CC="$lt_save_CC" 19241 19242 else 19243 tagname="" 19244 fi 19245 ;; 19246 19247 RC) 19248 19249 19250# Source file extension for RC test sources. 19251ac_ext=rc 19252 19253# Object file extension for compiled RC test sources. 19254objext=o 19255objext_RC=$objext 19256 19257# Code to be used in simple compile tests 19258lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19259 19260# Code to be used in simple link tests 19261lt_simple_link_test_code="$lt_simple_compile_test_code" 19262 19263# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19264 19265# If no C compiler was specified, use CC. 19266LTCC=${LTCC-"$CC"} 19267 19268# If no C compiler flags were specified, use CFLAGS. 19269LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19270 19271# Allow CC to be a program name with arguments. 19272compiler=$CC 19273 19274 19275# save warnings/boilerplate of simple test code 19276ac_outfile=conftest.$ac_objext 19277printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19279_lt_compiler_boilerplate=`cat conftest.err` 19280$rm conftest* 19281 19282ac_outfile=conftest.$ac_objext 19283printf "$lt_simple_link_test_code" >conftest.$ac_ext 19284eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19285_lt_linker_boilerplate=`cat conftest.err` 19286$rm conftest* 19287 19288 19289# Allow CC to be a program name with arguments. 19290lt_save_CC="$CC" 19291CC=${RC-"windres"} 19292compiler=$CC 19293compiler_RC=$CC 19294for cc_temp in $compiler""; do 19295 case $cc_temp in 19296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19298 \-*) ;; 19299 *) break;; 19300 esac 19301done 19302cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19303 19304lt_cv_prog_compiler_c_o_RC=yes 19305 19306# The else clause should only fire when bootstrapping the 19307# libtool distribution, otherwise you forgot to ship ltmain.sh 19308# with your package, and you will get complaints that there are 19309# no rules to generate ltmain.sh. 19310if test -f "$ltmain"; then 19311 # See if we are running on zsh, and set the options which allow our commands through 19312 # without removal of \ escapes. 19313 if test -n "${ZSH_VERSION+set}" ; then 19314 setopt NO_GLOB_SUBST 19315 fi 19316 # Now quote all the things that may contain metacharacters while being 19317 # careful not to overquote the AC_SUBSTed values. We take copies of the 19318 # variables and quote the copies for generation of the libtool script. 19319 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19320 SED SHELL STRIP \ 19321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19323 deplibs_check_method reload_flag reload_cmds need_locks \ 19324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19325 lt_cv_sys_global_symbol_to_c_name_address \ 19326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19327 old_postinstall_cmds old_postuninstall_cmds \ 19328 compiler_RC \ 19329 CC_RC \ 19330 LD_RC \ 19331 lt_prog_compiler_wl_RC \ 19332 lt_prog_compiler_pic_RC \ 19333 lt_prog_compiler_static_RC \ 19334 lt_prog_compiler_no_builtin_flag_RC \ 19335 export_dynamic_flag_spec_RC \ 19336 thread_safe_flag_spec_RC \ 19337 whole_archive_flag_spec_RC \ 19338 enable_shared_with_static_runtimes_RC \ 19339 old_archive_cmds_RC \ 19340 old_archive_from_new_cmds_RC \ 19341 predep_objects_RC \ 19342 postdep_objects_RC \ 19343 predeps_RC \ 19344 postdeps_RC \ 19345 compiler_lib_search_path_RC \ 19346 archive_cmds_RC \ 19347 archive_expsym_cmds_RC \ 19348 postinstall_cmds_RC \ 19349 postuninstall_cmds_RC \ 19350 old_archive_from_expsyms_cmds_RC \ 19351 allow_undefined_flag_RC \ 19352 no_undefined_flag_RC \ 19353 export_symbols_cmds_RC \ 19354 hardcode_libdir_flag_spec_RC \ 19355 hardcode_libdir_flag_spec_ld_RC \ 19356 hardcode_libdir_separator_RC \ 19357 hardcode_automatic_RC \ 19358 module_cmds_RC \ 19359 module_expsym_cmds_RC \ 19360 lt_cv_prog_compiler_c_o_RC \ 19361 exclude_expsyms_RC \ 19362 include_expsyms_RC; do 19363 19364 case $var in 19365 old_archive_cmds_RC | \ 19366 old_archive_from_new_cmds_RC | \ 19367 archive_cmds_RC | \ 19368 archive_expsym_cmds_RC | \ 19369 module_cmds_RC | \ 19370 module_expsym_cmds_RC | \ 19371 old_archive_from_expsyms_cmds_RC | \ 19372 export_symbols_cmds_RC | \ 19373 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19374 postinstall_cmds | postuninstall_cmds | \ 19375 old_postinstall_cmds | old_postuninstall_cmds | \ 19376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19377 # Double-quote double-evaled strings. 19378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19379 ;; 19380 *) 19381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19382 ;; 19383 esac 19384 done 19385 19386 case $lt_echo in 19387 *'\$0 --fallback-echo"') 19388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19389 ;; 19390 esac 19391 19392cfgfile="$ofile" 19393 19394 cat <<__EOF__ >> "$cfgfile" 19395# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19396 19397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19398 19399# Shell to use when invoking shell scripts. 19400SHELL=$lt_SHELL 19401 19402# Whether or not to build shared libraries. 19403build_libtool_libs=$enable_shared 19404 19405# Whether or not to build static libraries. 19406build_old_libs=$enable_static 19407 19408# Whether or not to add -lc for building shared libraries. 19409build_libtool_need_lc=$archive_cmds_need_lc_RC 19410 19411# Whether or not to disallow shared libs when runtime libs are static 19412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19413 19414# Whether or not to optimize for fast installation. 19415fast_install=$enable_fast_install 19416 19417# The host system. 19418host_alias=$host_alias 19419host=$host 19420host_os=$host_os 19421 19422# The build system. 19423build_alias=$build_alias 19424build=$build 19425build_os=$build_os 19426 19427# An echo program that does not interpret backslashes. 19428echo=$lt_echo 19429 19430# The archiver. 19431AR=$lt_AR 19432AR_FLAGS=$lt_AR_FLAGS 19433 19434# A C compiler. 19435LTCC=$lt_LTCC 19436 19437# LTCC compiler flags. 19438LTCFLAGS=$lt_LTCFLAGS 19439 19440# A language-specific compiler. 19441CC=$lt_compiler_RC 19442 19443# Is the compiler the GNU C compiler? 19444with_gcc=$GCC_RC 19445 19446# An ERE matcher. 19447EGREP=$lt_EGREP 19448 19449# The linker used to build libraries. 19450LD=$lt_LD_RC 19451 19452# Whether we need hard or soft links. 19453LN_S=$lt_LN_S 19454 19455# A BSD-compatible nm program. 19456NM=$lt_NM 19457 19458# A symbol stripping program 19459STRIP=$lt_STRIP 19460 19461# Used to examine libraries when file_magic_cmd begins "file" 19462MAGIC_CMD=$MAGIC_CMD 19463 19464# Used on cygwin: DLL creation program. 19465DLLTOOL="$DLLTOOL" 19466 19467# Used on cygwin: object dumper. 19468OBJDUMP="$OBJDUMP" 19469 19470# Used on cygwin: assembler. 19471AS="$AS" 19472 19473# The name of the directory that contains temporary libtool files. 19474objdir=$objdir 19475 19476# How to create reloadable object files. 19477reload_flag=$lt_reload_flag 19478reload_cmds=$lt_reload_cmds 19479 19480# How to pass a linker flag through the compiler. 19481wl=$lt_lt_prog_compiler_wl_RC 19482 19483# Object file suffix (normally "o"). 19484objext="$ac_objext" 19485 19486# Old archive suffix (normally "a"). 19487libext="$libext" 19488 19489# Shared library suffix (normally ".so"). 19490shrext_cmds='$shrext_cmds' 19491 19492# Executable file suffix (normally ""). 19493exeext="$exeext" 19494 19495# Additional compiler flags for building library objects. 19496pic_flag=$lt_lt_prog_compiler_pic_RC 19497pic_mode=$pic_mode 19498 19499# What is the maximum length of a command? 19500max_cmd_len=$lt_cv_sys_max_cmd_len 19501 19502# Does compiler simultaneously support -c and -o options? 19503compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19504 19505# Must we lock files when doing compilation? 19506need_locks=$lt_need_locks 19507 19508# Do we need the lib prefix for modules? 19509need_lib_prefix=$need_lib_prefix 19510 19511# Do we need a version for libraries? 19512need_version=$need_version 19513 19514# Whether dlopen is supported. 19515dlopen_support=$enable_dlopen 19516 19517# Whether dlopen of programs is supported. 19518dlopen_self=$enable_dlopen_self 19519 19520# Whether dlopen of statically linked programs is supported. 19521dlopen_self_static=$enable_dlopen_self_static 19522 19523# Compiler flag to prevent dynamic linking. 19524link_static_flag=$lt_lt_prog_compiler_static_RC 19525 19526# Compiler flag to turn off builtin functions. 19527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19528 19529# Compiler flag to allow reflexive dlopens. 19530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19531 19532# Compiler flag to generate shared objects directly from archives. 19533whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19534 19535# Compiler flag to generate thread-safe objects. 19536thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19537 19538# Library versioning type. 19539version_type=$version_type 19540 19541# Format of library name prefix. 19542libname_spec=$lt_libname_spec 19543 19544# List of archive names. First name is the real one, the rest are links. 19545# The last name is the one that the linker finds with -lNAME. 19546library_names_spec=$lt_library_names_spec 19547 19548# The coded name of the library, if different from the real name. 19549soname_spec=$lt_soname_spec 19550 19551# Commands used to build and install an old-style archive. 19552RANLIB=$lt_RANLIB 19553old_archive_cmds=$lt_old_archive_cmds_RC 19554old_postinstall_cmds=$lt_old_postinstall_cmds 19555old_postuninstall_cmds=$lt_old_postuninstall_cmds 19556 19557# Create an old-style archive from a shared archive. 19558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19559 19560# Create a temporary old-style archive to link instead of a shared archive. 19561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19562 19563# Commands used to build and install a shared archive. 19564archive_cmds=$lt_archive_cmds_RC 19565archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19566postinstall_cmds=$lt_postinstall_cmds 19567postuninstall_cmds=$lt_postuninstall_cmds 19568 19569# Commands used to build a loadable module (assumed same as above if empty) 19570module_cmds=$lt_module_cmds_RC 19571module_expsym_cmds=$lt_module_expsym_cmds_RC 19572 19573# Commands to strip libraries. 19574old_striplib=$lt_old_striplib 19575striplib=$lt_striplib 19576 19577# Dependencies to place before the objects being linked to create a 19578# shared library. 19579predep_objects=$lt_predep_objects_RC 19580 19581# Dependencies to place after the objects being linked to create a 19582# shared library. 19583postdep_objects=$lt_postdep_objects_RC 19584 19585# Dependencies to place before the objects being linked to create a 19586# shared library. 19587predeps=$lt_predeps_RC 19588 19589# Dependencies to place after the objects being linked to create a 19590# shared library. 19591postdeps=$lt_postdeps_RC 19592 19593# The library search path used internally by the compiler when linking 19594# a shared library. 19595compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19596 19597# Method to check whether dependent libraries are shared objects. 19598deplibs_check_method=$lt_deplibs_check_method 19599 19600# Command to use when deplibs_check_method == file_magic. 19601file_magic_cmd=$lt_file_magic_cmd 19602 19603# Flag that allows shared libraries with undefined symbols to be built. 19604allow_undefined_flag=$lt_allow_undefined_flag_RC 19605 19606# Flag that forces no undefined symbols. 19607no_undefined_flag=$lt_no_undefined_flag_RC 19608 19609# Commands used to finish a libtool library installation in a directory. 19610finish_cmds=$lt_finish_cmds 19611 19612# Same as above, but a single script fragment to be evaled but not shown. 19613finish_eval=$lt_finish_eval 19614 19615# Take the output of nm and produce a listing of raw symbols and C names. 19616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19617 19618# Transform the output of nm in a proper C declaration 19619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19620 19621# Transform the output of nm in a C name address pair 19622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19623 19624# This is the shared library runtime path variable. 19625runpath_var=$runpath_var 19626 19627# This is the shared library path variable. 19628shlibpath_var=$shlibpath_var 19629 19630# Is shlibpath searched before the hard-coded library search path? 19631shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19632 19633# How to hardcode a shared library path into an executable. 19634hardcode_action=$hardcode_action_RC 19635 19636# Whether we should hardcode library paths into libraries. 19637hardcode_into_libs=$hardcode_into_libs 19638 19639# Flag to hardcode \$libdir into a binary during linking. 19640# This must work even if \$libdir does not exist. 19641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19642 19643# If ld is used when linking, flag to hardcode \$libdir into 19644# a binary during linking. This must work even if \$libdir does 19645# not exist. 19646hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19647 19648# Whether we need a single -rpath flag with a separated argument. 19649hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19650 19651# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19652# resulting binary. 19653hardcode_direct=$hardcode_direct_RC 19654 19655# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19656# resulting binary. 19657hardcode_minus_L=$hardcode_minus_L_RC 19658 19659# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19660# the resulting binary. 19661hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19662 19663# Set to yes if building a shared library automatically hardcodes DIR into the library 19664# and all subsequent libraries and executables linked against it. 19665hardcode_automatic=$hardcode_automatic_RC 19666 19667# Variables whose values should be saved in libtool wrapper scripts and 19668# restored at relink time. 19669variables_saved_for_relink="$variables_saved_for_relink" 19670 19671# Whether libtool must link a program against all its dependency libraries. 19672link_all_deplibs=$link_all_deplibs_RC 19673 19674# Compile-time system search path for libraries 19675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19676 19677# Run-time system search path for libraries 19678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19679 19680# Fix the shell variable \$srcfile for the compiler. 19681fix_srcfile_path="$fix_srcfile_path_RC" 19682 19683# Set to yes if exported symbols are required. 19684always_export_symbols=$always_export_symbols_RC 19685 19686# The commands to list exported symbols. 19687export_symbols_cmds=$lt_export_symbols_cmds_RC 19688 19689# The commands to extract the exported symbol list from a shared archive. 19690extract_expsyms_cmds=$lt_extract_expsyms_cmds 19691 19692# Symbols that should not be listed in the preloaded symbols. 19693exclude_expsyms=$lt_exclude_expsyms_RC 19694 19695# Symbols that must always be exported. 19696include_expsyms=$lt_include_expsyms_RC 19697 19698# ### END LIBTOOL TAG CONFIG: $tagname 19699 19700__EOF__ 19701 19702 19703else 19704 # If there is no Makefile yet, we rely on a make rule to execute 19705 # `config.status --recheck' to rerun these tests and create the 19706 # libtool script then. 19707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19708 if test -f "$ltmain_in"; then 19709 test -f Makefile && make "$ltmain" 19710 fi 19711fi 19712 19713 19714ac_ext=c 19715ac_cpp='$CPP $CPPFLAGS' 19716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19718ac_compiler_gnu=$ac_cv_c_compiler_gnu 19719 19720CC="$lt_save_CC" 19721 19722 ;; 19723 19724 *) 19725 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19726echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19727 { (exit 1); exit 1; }; } 19728 ;; 19729 esac 19730 19731 # Append the new tag name to the list of available tags. 19732 if test -n "$tagname" ; then 19733 available_tags="$available_tags $tagname" 19734 fi 19735 fi 19736 done 19737 IFS="$lt_save_ifs" 19738 19739 # Now substitute the updated list of available tags. 19740 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19741 mv "${ofile}T" "$ofile" 19742 chmod +x "$ofile" 19743 else 19744 rm -f "${ofile}T" 19745 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19746echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19747 { (exit 1); exit 1; }; } 19748 fi 19749fi 19750 19751 19752 19753# This can be used to rebuild libtool when needed 19754LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19755 19756# Always use our own libtool. 19757LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19758 19759# Prevent multiple expansion 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781csoap_major=`echo $VERSION | $AWK -F. '{print $1}'` 19782csoap_minor=`echo $VERSION | $AWK -F. '{print $2}'` 19783csoap_patch=`echo $VERSION | $AWK -F. '{print $3}'` 19784 19785 19786 19787 19788csoap_release="$csoap_major.$csoap_minor" 19789csoap_version=`expr $csoap_major + $csoap_minor`":$csoap_patch:$csoap_minor" 19790 19791 19792 19793nanohttp_release=$csoap_release 19794nanohttp_version=$csoap_version 19795 19796 19797 19798{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19799echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19800if test "${ac_cv_header_stdc+set}" = set; then 19801 echo $ECHO_N "(cached) $ECHO_C" >&6 19802else 19803 cat >conftest.$ac_ext <<_ACEOF 19804/* confdefs.h. */ 19805_ACEOF 19806cat confdefs.h >>conftest.$ac_ext 19807cat >>conftest.$ac_ext <<_ACEOF 19808/* end confdefs.h. */ 19809#include <stdlib.h> 19810#include <stdarg.h> 19811#include <string.h> 19812#include <float.h> 19813 19814int 19815main () 19816{ 19817 19818 ; 19819 return 0; 19820} 19821_ACEOF 19822rm -f conftest.$ac_objext 19823if { (ac_try="$ac_compile" 19824case "(($ac_try" in 19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19826 *) ac_try_echo=$ac_try;; 19827esac 19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19829 (eval "$ac_compile") 2>conftest.er1 19830 ac_status=$? 19831 grep -v '^ *+' conftest.er1 >conftest.err 19832 rm -f conftest.er1 19833 cat conftest.err >&5 19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19835 (exit $ac_status); } && 19836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19837 { (case "(($ac_try" in 19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19839 *) ac_try_echo=$ac_try;; 19840esac 19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19842 (eval "$ac_try") 2>&5 19843 ac_status=$? 19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19845 (exit $ac_status); }; } && 19846 { ac_try='test -s conftest.$ac_objext' 19847 { (case "(($ac_try" in 19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19849 *) ac_try_echo=$ac_try;; 19850esac 19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19852 (eval "$ac_try") 2>&5 19853 ac_status=$? 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19855 (exit $ac_status); }; }; then 19856 ac_cv_header_stdc=yes 19857else 19858 echo "$as_me: failed program was:" >&5 19859sed 's/^/| /' conftest.$ac_ext >&5 19860 19861 ac_cv_header_stdc=no 19862fi 19863 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19865 19866if test $ac_cv_header_stdc = yes; then 19867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19868 cat >conftest.$ac_ext <<_ACEOF 19869/* confdefs.h. */ 19870_ACEOF 19871cat confdefs.h >>conftest.$ac_ext 19872cat >>conftest.$ac_ext <<_ACEOF 19873/* end confdefs.h. */ 19874#include <string.h> 19875 19876_ACEOF 19877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19878 $EGREP "memchr" >/dev/null 2>&1; then 19879 : 19880else 19881 ac_cv_header_stdc=no 19882fi 19883rm -f conftest* 19884 19885fi 19886 19887if test $ac_cv_header_stdc = yes; then 19888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19889 cat >conftest.$ac_ext <<_ACEOF 19890/* confdefs.h. */ 19891_ACEOF 19892cat confdefs.h >>conftest.$ac_ext 19893cat >>conftest.$ac_ext <<_ACEOF 19894/* end confdefs.h. */ 19895#include <stdlib.h> 19896 19897_ACEOF 19898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19899 $EGREP "free" >/dev/null 2>&1; then 19900 : 19901else 19902 ac_cv_header_stdc=no 19903fi 19904rm -f conftest* 19905 19906fi 19907 19908if test $ac_cv_header_stdc = yes; then 19909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19910 if test "$cross_compiling" = yes; then 19911 : 19912else 19913 cat >conftest.$ac_ext <<_ACEOF 19914/* confdefs.h. */ 19915_ACEOF 19916cat confdefs.h >>conftest.$ac_ext 19917cat >>conftest.$ac_ext <<_ACEOF 19918/* end confdefs.h. */ 19919#include <ctype.h> 19920#include <stdlib.h> 19921#if ((' ' & 0x0FF) == 0x020) 19922# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19923# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19924#else 19925# define ISLOWER(c) \ 19926 (('a' <= (c) && (c) <= 'i') \ 19927 || ('j' <= (c) && (c) <= 'r') \ 19928 || ('s' <= (c) && (c) <= 'z')) 19929# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19930#endif 19931 19932#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19933int 19934main () 19935{ 19936 int i; 19937 for (i = 0; i < 256; i++) 19938 if (XOR (islower (i), ISLOWER (i)) 19939 || toupper (i) != TOUPPER (i)) 19940 return 2; 19941 return 0; 19942} 19943_ACEOF 19944rm -f conftest$ac_exeext 19945if { (ac_try="$ac_link" 19946case "(($ac_try" in 19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19948 *) ac_try_echo=$ac_try;; 19949esac 19950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19951 (eval "$ac_link") 2>&5 19952 ac_status=$? 19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19955 { (case "(($ac_try" in 19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19957 *) ac_try_echo=$ac_try;; 19958esac 19959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19960 (eval "$ac_try") 2>&5 19961 ac_status=$? 19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19963 (exit $ac_status); }; }; then 19964 : 19965else 19966 echo "$as_me: program exited with status $ac_status" >&5 19967echo "$as_me: failed program was:" >&5 19968sed 's/^/| /' conftest.$ac_ext >&5 19969 19970( exit $ac_status ) 19971ac_cv_header_stdc=no 19972fi 19973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19974fi 19975 19976 19977fi 19978fi 19979{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19980echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 19981if test $ac_cv_header_stdc = yes; then 19982 19983cat >>confdefs.h <<\_ACEOF 19984#define STDC_HEADERS 1 19985_ACEOF 19986 19987fi 19988 19989{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 19990echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 19991if test "${ac_cv_header_time+set}" = set; then 19992 echo $ECHO_N "(cached) $ECHO_C" >&6 19993else 19994 cat >conftest.$ac_ext <<_ACEOF 19995/* confdefs.h. */ 19996_ACEOF 19997cat confdefs.h >>conftest.$ac_ext 19998cat >>conftest.$ac_ext <<_ACEOF 19999/* end confdefs.h. */ 20000#include <sys/types.h> 20001#include <sys/time.h> 20002#include <time.h> 20003 20004int 20005main () 20006{ 20007if ((struct tm *) 0) 20008return 0; 20009 ; 20010 return 0; 20011} 20012_ACEOF 20013rm -f conftest.$ac_objext 20014if { (ac_try="$ac_compile" 20015case "(($ac_try" in 20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20017 *) ac_try_echo=$ac_try;; 20018esac 20019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20020 (eval "$ac_compile") 2>conftest.er1 20021 ac_status=$? 20022 grep -v '^ *+' conftest.er1 >conftest.err 20023 rm -f conftest.er1 20024 cat conftest.err >&5 20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20026 (exit $ac_status); } && 20027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20028 { (case "(($ac_try" in 20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20030 *) ac_try_echo=$ac_try;; 20031esac 20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20033 (eval "$ac_try") 2>&5 20034 ac_status=$? 20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20036 (exit $ac_status); }; } && 20037 { ac_try='test -s conftest.$ac_objext' 20038 { (case "(($ac_try" in 20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20040 *) ac_try_echo=$ac_try;; 20041esac 20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20043 (eval "$ac_try") 2>&5 20044 ac_status=$? 20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20046 (exit $ac_status); }; }; then 20047 ac_cv_header_time=yes 20048else 20049 echo "$as_me: failed program was:" >&5 20050sed 's/^/| /' conftest.$ac_ext >&5 20051 20052 ac_cv_header_time=no 20053fi 20054 20055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20056fi 20057{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20058echo "${ECHO_T}$ac_cv_header_time" >&6; } 20059if test $ac_cv_header_time = yes; then 20060 20061cat >>confdefs.h <<\_ACEOF 20062#define TIME_WITH_SYS_TIME 1 20063_ACEOF 20064 20065fi 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088for 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 20089do 20090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20092 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20095 echo $ECHO_N "(cached) $ECHO_C" >&6 20096fi 20097ac_res=`eval echo '${'$as_ac_Header'}'` 20098 { echo "$as_me:$LINENO: result: $ac_res" >&5 20099echo "${ECHO_T}$ac_res" >&6; } 20100else 20101 # Is the header compilable? 20102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20104cat >conftest.$ac_ext <<_ACEOF 20105/* confdefs.h. */ 20106_ACEOF 20107cat confdefs.h >>conftest.$ac_ext 20108cat >>conftest.$ac_ext <<_ACEOF 20109/* end confdefs.h. */ 20110$ac_includes_default 20111#include <$ac_header> 20112_ACEOF 20113rm -f conftest.$ac_objext 20114if { (ac_try="$ac_compile" 20115case "(($ac_try" in 20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20117 *) ac_try_echo=$ac_try;; 20118esac 20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20120 (eval "$ac_compile") 2>conftest.er1 20121 ac_status=$? 20122 grep -v '^ *+' conftest.er1 >conftest.err 20123 rm -f conftest.er1 20124 cat conftest.err >&5 20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20126 (exit $ac_status); } && 20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20128 { (case "(($ac_try" in 20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20130 *) ac_try_echo=$ac_try;; 20131esac 20132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20133 (eval "$ac_try") 2>&5 20134 ac_status=$? 20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20136 (exit $ac_status); }; } && 20137 { ac_try='test -s conftest.$ac_objext' 20138 { (case "(($ac_try" in 20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20140 *) ac_try_echo=$ac_try;; 20141esac 20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20143 (eval "$ac_try") 2>&5 20144 ac_status=$? 20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20146 (exit $ac_status); }; }; then 20147 ac_header_compiler=yes 20148else 20149 echo "$as_me: failed program was:" >&5 20150sed 's/^/| /' conftest.$ac_ext >&5 20151 20152 ac_header_compiler=no 20153fi 20154 20155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20157echo "${ECHO_T}$ac_header_compiler" >&6; } 20158 20159# Is the header present? 20160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20162cat >conftest.$ac_ext <<_ACEOF 20163/* confdefs.h. */ 20164_ACEOF 20165cat confdefs.h >>conftest.$ac_ext 20166cat >>conftest.$ac_ext <<_ACEOF 20167/* end confdefs.h. */ 20168#include <$ac_header> 20169_ACEOF 20170if { (ac_try="$ac_cpp conftest.$ac_ext" 20171case "(($ac_try" in 20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20173 *) ac_try_echo=$ac_try;; 20174esac 20175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20177 ac_status=$? 20178 grep -v '^ *+' conftest.er1 >conftest.err 20179 rm -f conftest.er1 20180 cat conftest.err >&5 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); } >/dev/null; then 20183 if test -s conftest.err; then 20184 ac_cpp_err=$ac_c_preproc_warn_flag 20185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20186 else 20187 ac_cpp_err= 20188 fi 20189else 20190 ac_cpp_err=yes 20191fi 20192if test -z "$ac_cpp_err"; then 20193 ac_header_preproc=yes 20194else 20195 echo "$as_me: failed program was:" >&5 20196sed 's/^/| /' conftest.$ac_ext >&5 20197 20198 ac_header_preproc=no 20199fi 20200 20201rm -f conftest.err conftest.$ac_ext 20202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20203echo "${ECHO_T}$ac_header_preproc" >&6; } 20204 20205# So? What about this header? 20206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20207 yes:no: ) 20208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20212 ac_header_preproc=yes 20213 ;; 20214 no:yes:* ) 20215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20227 20228 ;; 20229esac 20230{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20233 echo $ECHO_N "(cached) $ECHO_C" >&6 20234else 20235 eval "$as_ac_Header=\$ac_header_preproc" 20236fi 20237ac_res=`eval echo '${'$as_ac_Header'}'` 20238 { echo "$as_me:$LINENO: result: $ac_res" >&5 20239echo "${ECHO_T}$ac_res" >&6; } 20240 20241fi 20242if test `eval echo '${'$as_ac_Header'}'` = yes; then 20243 cat >>confdefs.h <<_ACEOF 20244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20245_ACEOF 20246 20247fi 20248 20249done 20250 20251 20252{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20253echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20254if test "${ac_cv_c_const+set}" = set; then 20255 echo $ECHO_N "(cached) $ECHO_C" >&6 20256else 20257 cat >conftest.$ac_ext <<_ACEOF 20258/* confdefs.h. */ 20259_ACEOF 20260cat confdefs.h >>conftest.$ac_ext 20261cat >>conftest.$ac_ext <<_ACEOF 20262/* end confdefs.h. */ 20263 20264int 20265main () 20266{ 20267/* FIXME: Include the comments suggested by Paul. */ 20268#ifndef __cplusplus 20269 /* Ultrix mips cc rejects this. */ 20270 typedef int charset[2]; 20271 const charset x; 20272 /* SunOS 4.1.1 cc rejects this. */ 20273 char const *const *ccp; 20274 char **p; 20275 /* NEC SVR4.0.2 mips cc rejects this. */ 20276 struct point {int x, y;}; 20277 static struct point const zero = {0,0}; 20278 /* AIX XL C 1.02.0.0 rejects this. 20279 It does not let you subtract one const X* pointer from another in 20280 an arm of an if-expression whose if-part is not a constant 20281 expression */ 20282 const char *g = "string"; 20283 ccp = &g + (g ? g-g : 0); 20284 /* HPUX 7.0 cc rejects these. */ 20285 ++ccp; 20286 p = (char**) ccp; 20287 ccp = (char const *const *) p; 20288 { /* SCO 3.2v4 cc rejects this. */ 20289 char *t; 20290 char const *s = 0 ? (char *) 0 : (char const *) 0; 20291 20292 *t++ = 0; 20293 if (s) return 0; 20294 } 20295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20296 int x[] = {25, 17}; 20297 const int *foo = &x[0]; 20298 ++foo; 20299 } 20300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20301 typedef const int *iptr; 20302 iptr p = 0; 20303 ++p; 20304 } 20305 { /* AIX XL C 1.02.0.0 rejects this saying 20306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20307 struct s { int j; const int *ap[3]; }; 20308 struct s *b; b->j = 5; 20309 } 20310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20311 const int foo = 10; 20312 if (!foo) return 0; 20313 } 20314 return !x[0] && !zero.x; 20315#endif 20316 20317 ; 20318 return 0; 20319} 20320_ACEOF 20321rm -f conftest.$ac_objext 20322if { (ac_try="$ac_compile" 20323case "(($ac_try" in 20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20325 *) ac_try_echo=$ac_try;; 20326esac 20327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20328 (eval "$ac_compile") 2>conftest.er1 20329 ac_status=$? 20330 grep -v '^ *+' conftest.er1 >conftest.err 20331 rm -f conftest.er1 20332 cat conftest.err >&5 20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20334 (exit $ac_status); } && 20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20336 { (case "(($ac_try" in 20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20338 *) ac_try_echo=$ac_try;; 20339esac 20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20341 (eval "$ac_try") 2>&5 20342 ac_status=$? 20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20344 (exit $ac_status); }; } && 20345 { ac_try='test -s conftest.$ac_objext' 20346 { (case "(($ac_try" in 20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20348 *) ac_try_echo=$ac_try;; 20349esac 20350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20351 (eval "$ac_try") 2>&5 20352 ac_status=$? 20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20354 (exit $ac_status); }; }; then 20355 ac_cv_c_const=yes 20356else 20357 echo "$as_me: failed program was:" >&5 20358sed 's/^/| /' conftest.$ac_ext >&5 20359 20360 ac_cv_c_const=no 20361fi 20362 20363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20364fi 20365{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20366echo "${ECHO_T}$ac_cv_c_const" >&6; } 20367if test $ac_cv_c_const = no; then 20368 20369cat >>confdefs.h <<\_ACEOF 20370#define const 20371_ACEOF 20372 20373fi 20374 20375{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20376echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 20377if test "${ac_cv_struct_tm+set}" = set; then 20378 echo $ECHO_N "(cached) $ECHO_C" >&6 20379else 20380 cat >conftest.$ac_ext <<_ACEOF 20381/* confdefs.h. */ 20382_ACEOF 20383cat confdefs.h >>conftest.$ac_ext 20384cat >>conftest.$ac_ext <<_ACEOF 20385/* end confdefs.h. */ 20386#include <sys/types.h> 20387#include <time.h> 20388 20389int 20390main () 20391{ 20392struct tm *tp; tp->tm_sec; 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397rm -f conftest.$ac_objext 20398if { (ac_try="$ac_compile" 20399case "(($ac_try" in 20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20401 *) ac_try_echo=$ac_try;; 20402esac 20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20404 (eval "$ac_compile") 2>conftest.er1 20405 ac_status=$? 20406 grep -v '^ *+' conftest.er1 >conftest.err 20407 rm -f conftest.er1 20408 cat conftest.err >&5 20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20410 (exit $ac_status); } && 20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20412 { (case "(($ac_try" in 20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20414 *) ac_try_echo=$ac_try;; 20415esac 20416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20417 (eval "$ac_try") 2>&5 20418 ac_status=$? 20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20420 (exit $ac_status); }; } && 20421 { ac_try='test -s conftest.$ac_objext' 20422 { (case "(($ac_try" in 20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20424 *) ac_try_echo=$ac_try;; 20425esac 20426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20427 (eval "$ac_try") 2>&5 20428 ac_status=$? 20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20430 (exit $ac_status); }; }; then 20431 ac_cv_struct_tm=time.h 20432else 20433 echo "$as_me: failed program was:" >&5 20434sed 's/^/| /' conftest.$ac_ext >&5 20435 20436 ac_cv_struct_tm=sys/time.h 20437fi 20438 20439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20440fi 20441{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20442echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 20443if test $ac_cv_struct_tm = sys/time.h; then 20444 20445cat >>confdefs.h <<\_ACEOF 20446#define TM_IN_SYS_TIME 1 20447_ACEOF 20448 20449fi 20450 20451 20452{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 20453echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 20454if test "${ac_cv_type_signal+set}" = set; then 20455 echo $ECHO_N "(cached) $ECHO_C" >&6 20456else 20457 cat >conftest.$ac_ext <<_ACEOF 20458/* confdefs.h. */ 20459_ACEOF 20460cat confdefs.h >>conftest.$ac_ext 20461cat >>conftest.$ac_ext <<_ACEOF 20462/* end confdefs.h. */ 20463#include <sys/types.h> 20464#include <signal.h> 20465 20466int 20467main () 20468{ 20469return *(signal (0, 0)) (0) == 1; 20470 ; 20471 return 0; 20472} 20473_ACEOF 20474rm -f conftest.$ac_objext 20475if { (ac_try="$ac_compile" 20476case "(($ac_try" in 20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20478 *) ac_try_echo=$ac_try;; 20479esac 20480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20481 (eval "$ac_compile") 2>conftest.er1 20482 ac_status=$? 20483 grep -v '^ *+' conftest.er1 >conftest.err 20484 rm -f conftest.er1 20485 cat conftest.err >&5 20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20487 (exit $ac_status); } && 20488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20489 { (case "(($ac_try" in 20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20491 *) ac_try_echo=$ac_try;; 20492esac 20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20494 (eval "$ac_try") 2>&5 20495 ac_status=$? 20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20497 (exit $ac_status); }; } && 20498 { ac_try='test -s conftest.$ac_objext' 20499 { (case "(($ac_try" in 20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20501 *) ac_try_echo=$ac_try;; 20502esac 20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20504 (eval "$ac_try") 2>&5 20505 ac_status=$? 20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20507 (exit $ac_status); }; }; then 20508 ac_cv_type_signal=int 20509else 20510 echo "$as_me: failed program was:" >&5 20511sed 's/^/| /' conftest.$ac_ext >&5 20512 20513 ac_cv_type_signal=void 20514fi 20515 20516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20517fi 20518{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20519echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20520 20521cat >>confdefs.h <<_ACEOF 20522#define RETSIGTYPE $ac_cv_type_signal 20523_ACEOF 20524 20525 20526 20527{ echo "$as_me:$LINENO: checking for size_t" >&5 20528echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 20529if test "${ac_cv_type_size_t+set}" = set; then 20530 echo $ECHO_N "(cached) $ECHO_C" >&6 20531else 20532 cat >conftest.$ac_ext <<_ACEOF 20533/* confdefs.h. */ 20534_ACEOF 20535cat confdefs.h >>conftest.$ac_ext 20536cat >>conftest.$ac_ext <<_ACEOF 20537/* end confdefs.h. */ 20538$ac_includes_default 20539typedef size_t ac__type_new_; 20540int 20541main () 20542{ 20543if ((ac__type_new_ *) 0) 20544 return 0; 20545if (sizeof (ac__type_new_)) 20546 return 0; 20547 ; 20548 return 0; 20549} 20550_ACEOF 20551rm -f conftest.$ac_objext 20552if { (ac_try="$ac_compile" 20553case "(($ac_try" in 20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20555 *) ac_try_echo=$ac_try;; 20556esac 20557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20558 (eval "$ac_compile") 2>conftest.er1 20559 ac_status=$? 20560 grep -v '^ *+' conftest.er1 >conftest.err 20561 rm -f conftest.er1 20562 cat conftest.err >&5 20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20564 (exit $ac_status); } && 20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20566 { (case "(($ac_try" in 20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20568 *) ac_try_echo=$ac_try;; 20569esac 20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20571 (eval "$ac_try") 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); }; } && 20575 { ac_try='test -s conftest.$ac_objext' 20576 { (case "(($ac_try" in 20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20578 *) ac_try_echo=$ac_try;; 20579esac 20580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20581 (eval "$ac_try") 2>&5 20582 ac_status=$? 20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20584 (exit $ac_status); }; }; then 20585 ac_cv_type_size_t=yes 20586else 20587 echo "$as_me: failed program was:" >&5 20588sed 's/^/| /' conftest.$ac_ext >&5 20589 20590 ac_cv_type_size_t=no 20591fi 20592 20593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20594fi 20595{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20596echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 20597if test $ac_cv_type_size_t = yes; then 20598 : 20599else 20600 20601cat >>confdefs.h <<_ACEOF 20602#define size_t unsigned int 20603_ACEOF 20604 20605fi 20606 20607{ echo "$as_me:$LINENO: checking for ssize_t" >&5 20608echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 20609if test "${ac_cv_type_ssize_t+set}" = set; then 20610 echo $ECHO_N "(cached) $ECHO_C" >&6 20611else 20612 cat >conftest.$ac_ext <<_ACEOF 20613/* confdefs.h. */ 20614_ACEOF 20615cat confdefs.h >>conftest.$ac_ext 20616cat >>conftest.$ac_ext <<_ACEOF 20617/* end confdefs.h. */ 20618$ac_includes_default 20619typedef ssize_t ac__type_new_; 20620int 20621main () 20622{ 20623if ((ac__type_new_ *) 0) 20624 return 0; 20625if (sizeof (ac__type_new_)) 20626 return 0; 20627 ; 20628 return 0; 20629} 20630_ACEOF 20631rm -f conftest.$ac_objext 20632if { (ac_try="$ac_compile" 20633case "(($ac_try" in 20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20635 *) ac_try_echo=$ac_try;; 20636esac 20637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20638 (eval "$ac_compile") 2>conftest.er1 20639 ac_status=$? 20640 grep -v '^ *+' conftest.er1 >conftest.err 20641 rm -f conftest.er1 20642 cat conftest.err >&5 20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20644 (exit $ac_status); } && 20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20646 { (case "(($ac_try" in 20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20648 *) ac_try_echo=$ac_try;; 20649esac 20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20651 (eval "$ac_try") 2>&5 20652 ac_status=$? 20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20654 (exit $ac_status); }; } && 20655 { ac_try='test -s conftest.$ac_objext' 20656 { (case "(($ac_try" in 20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20658 *) ac_try_echo=$ac_try;; 20659esac 20660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20661 (eval "$ac_try") 2>&5 20662 ac_status=$? 20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20664 (exit $ac_status); }; }; then 20665 ac_cv_type_ssize_t=yes 20666else 20667 echo "$as_me: failed program was:" >&5 20668sed 's/^/| /' conftest.$ac_ext >&5 20669 20670 ac_cv_type_ssize_t=no 20671fi 20672 20673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20674fi 20675{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 20676echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 20677if test $ac_cv_type_ssize_t = yes; then 20678 : 20679else 20680 20681cat >>confdefs.h <<_ACEOF 20682#define ssize_t int 20683_ACEOF 20684 20685fi 20686 20687 20688 20689for ac_header in stdlib.h 20690do 20691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20693 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20696 echo $ECHO_N "(cached) $ECHO_C" >&6 20697fi 20698ac_res=`eval echo '${'$as_ac_Header'}'` 20699 { echo "$as_me:$LINENO: result: $ac_res" >&5 20700echo "${ECHO_T}$ac_res" >&6; } 20701else 20702 # Is the header compilable? 20703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20705cat >conftest.$ac_ext <<_ACEOF 20706/* confdefs.h. */ 20707_ACEOF 20708cat confdefs.h >>conftest.$ac_ext 20709cat >>conftest.$ac_ext <<_ACEOF 20710/* end confdefs.h. */ 20711$ac_includes_default 20712#include <$ac_header> 20713_ACEOF 20714rm -f conftest.$ac_objext 20715if { (ac_try="$ac_compile" 20716case "(($ac_try" in 20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20718 *) ac_try_echo=$ac_try;; 20719esac 20720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20721 (eval "$ac_compile") 2>conftest.er1 20722 ac_status=$? 20723 grep -v '^ *+' conftest.er1 >conftest.err 20724 rm -f conftest.er1 20725 cat conftest.err >&5 20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20727 (exit $ac_status); } && 20728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20729 { (case "(($ac_try" in 20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20731 *) ac_try_echo=$ac_try;; 20732esac 20733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20734 (eval "$ac_try") 2>&5 20735 ac_status=$? 20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20737 (exit $ac_status); }; } && 20738 { ac_try='test -s conftest.$ac_objext' 20739 { (case "(($ac_try" in 20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20741 *) ac_try_echo=$ac_try;; 20742esac 20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20744 (eval "$ac_try") 2>&5 20745 ac_status=$? 20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20747 (exit $ac_status); }; }; then 20748 ac_header_compiler=yes 20749else 20750 echo "$as_me: failed program was:" >&5 20751sed 's/^/| /' conftest.$ac_ext >&5 20752 20753 ac_header_compiler=no 20754fi 20755 20756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20758echo "${ECHO_T}$ac_header_compiler" >&6; } 20759 20760# Is the header present? 20761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20763cat >conftest.$ac_ext <<_ACEOF 20764/* confdefs.h. */ 20765_ACEOF 20766cat confdefs.h >>conftest.$ac_ext 20767cat >>conftest.$ac_ext <<_ACEOF 20768/* end confdefs.h. */ 20769#include <$ac_header> 20770_ACEOF 20771if { (ac_try="$ac_cpp conftest.$ac_ext" 20772case "(($ac_try" in 20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20774 *) ac_try_echo=$ac_try;; 20775esac 20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20778 ac_status=$? 20779 grep -v '^ *+' conftest.er1 >conftest.err 20780 rm -f conftest.er1 20781 cat conftest.err >&5 20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20783 (exit $ac_status); } >/dev/null; then 20784 if test -s conftest.err; then 20785 ac_cpp_err=$ac_c_preproc_warn_flag 20786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20787 else 20788 ac_cpp_err= 20789 fi 20790else 20791 ac_cpp_err=yes 20792fi 20793if test -z "$ac_cpp_err"; then 20794 ac_header_preproc=yes 20795else 20796 echo "$as_me: failed program was:" >&5 20797sed 's/^/| /' conftest.$ac_ext >&5 20798 20799 ac_header_preproc=no 20800fi 20801 20802rm -f conftest.err conftest.$ac_ext 20803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20804echo "${ECHO_T}$ac_header_preproc" >&6; } 20805 20806# So? What about this header? 20807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20808 yes:no: ) 20809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20813 ac_header_preproc=yes 20814 ;; 20815 no:yes:* ) 20816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20828 20829 ;; 20830esac 20831{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20834 echo $ECHO_N "(cached) $ECHO_C" >&6 20835else 20836 eval "$as_ac_Header=\$ac_header_preproc" 20837fi 20838ac_res=`eval echo '${'$as_ac_Header'}'` 20839 { echo "$as_me:$LINENO: result: $ac_res" >&5 20840echo "${ECHO_T}$ac_res" >&6; } 20841 20842fi 20843if test `eval echo '${'$as_ac_Header'}'` = yes; then 20844 cat >>confdefs.h <<_ACEOF 20845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20846_ACEOF 20847 20848fi 20849 20850done 20851 20852{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 20853echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 20854if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 20855 echo $ECHO_N "(cached) $ECHO_C" >&6 20856else 20857 if test "$cross_compiling" = yes; then 20858 ac_cv_func_malloc_0_nonnull=no 20859else 20860 cat >conftest.$ac_ext <<_ACEOF 20861/* confdefs.h. */ 20862_ACEOF 20863cat confdefs.h >>conftest.$ac_ext 20864cat >>conftest.$ac_ext <<_ACEOF 20865/* end confdefs.h. */ 20866#if STDC_HEADERS || HAVE_STDLIB_H 20867# include <stdlib.h> 20868#else 20869char *malloc (); 20870#endif 20871 20872int 20873main () 20874{ 20875return ! malloc (0); 20876 ; 20877 return 0; 20878} 20879_ACEOF 20880rm -f conftest$ac_exeext 20881if { (ac_try="$ac_link" 20882case "(($ac_try" in 20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20884 *) ac_try_echo=$ac_try;; 20885esac 20886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20887 (eval "$ac_link") 2>&5 20888 ac_status=$? 20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20891 { (case "(($ac_try" in 20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20893 *) ac_try_echo=$ac_try;; 20894esac 20895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20896 (eval "$ac_try") 2>&5 20897 ac_status=$? 20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20899 (exit $ac_status); }; }; then 20900 ac_cv_func_malloc_0_nonnull=yes 20901else 20902 echo "$as_me: program exited with status $ac_status" >&5 20903echo "$as_me: failed program was:" >&5 20904sed 's/^/| /' conftest.$ac_ext >&5 20905 20906( exit $ac_status ) 20907ac_cv_func_malloc_0_nonnull=no 20908fi 20909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20910fi 20911 20912 20913fi 20914{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 20915echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 20916if test $ac_cv_func_malloc_0_nonnull = yes; then 20917 20918cat >>confdefs.h <<\_ACEOF 20919#define HAVE_MALLOC 1 20920_ACEOF 20921 20922else 20923 cat >>confdefs.h <<\_ACEOF 20924#define HAVE_MALLOC 0 20925_ACEOF 20926 20927 case " $LIBOBJS " in 20928 *" malloc.$ac_objext "* ) ;; 20929 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 20930 ;; 20931esac 20932 20933 20934cat >>confdefs.h <<\_ACEOF 20935#define malloc rpl_malloc 20936_ACEOF 20937 20938fi 20939 20940 20941 20942 20943for ac_func in vprintf 20944do 20945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20946{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20949 echo $ECHO_N "(cached) $ECHO_C" >&6 20950else 20951 cat >conftest.$ac_ext <<_ACEOF 20952/* confdefs.h. */ 20953_ACEOF 20954cat confdefs.h >>conftest.$ac_ext 20955cat >>conftest.$ac_ext <<_ACEOF 20956/* end confdefs.h. */ 20957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20959#define $ac_func innocuous_$ac_func 20960 20961/* System header to define __stub macros and hopefully few prototypes, 20962 which can conflict with char $ac_func (); below. 20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20964 <limits.h> exists even on freestanding compilers. */ 20965 20966#ifdef __STDC__ 20967# include <limits.h> 20968#else 20969# include <assert.h> 20970#endif 20971 20972#undef $ac_func 20973 20974/* Override any GCC internal prototype to avoid an error. 20975 Use char because int might match the return type of a GCC 20976 builtin and then its argument prototype would still apply. */ 20977#ifdef __cplusplus 20978extern "C" 20979#endif 20980char $ac_func (); 20981/* The GNU C library defines this for functions which it implements 20982 to always fail with ENOSYS. Some functions are actually named 20983 something starting with __ and the normal name is an alias. */ 20984#if defined __stub_$ac_func || defined __stub___$ac_func 20985choke me 20986#endif 20987 20988int 20989main () 20990{ 20991return $ac_func (); 20992 ; 20993 return 0; 20994} 20995_ACEOF 20996rm -f conftest.$ac_objext conftest$ac_exeext 20997if { (ac_try="$ac_link" 20998case "(($ac_try" in 20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21000 *) ac_try_echo=$ac_try;; 21001esac 21002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21003 (eval "$ac_link") 2>conftest.er1 21004 ac_status=$? 21005 grep -v '^ *+' conftest.er1 >conftest.err 21006 rm -f conftest.er1 21007 cat conftest.err >&5 21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21009 (exit $ac_status); } && 21010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21011 { (case "(($ac_try" in 21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21013 *) ac_try_echo=$ac_try;; 21014esac 21015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21016 (eval "$ac_try") 2>&5 21017 ac_status=$? 21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21019 (exit $ac_status); }; } && 21020 { ac_try='test -s conftest$ac_exeext' 21021 { (case "(($ac_try" in 21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21023 *) ac_try_echo=$ac_try;; 21024esac 21025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21026 (eval "$ac_try") 2>&5 21027 ac_status=$? 21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21029 (exit $ac_status); }; }; then 21030 eval "$as_ac_var=yes" 21031else 21032 echo "$as_me: failed program was:" >&5 21033sed 's/^/| /' conftest.$ac_ext >&5 21034 21035 eval "$as_ac_var=no" 21036fi 21037 21038rm -f conftest.err conftest.$ac_objext \ 21039 conftest$ac_exeext conftest.$ac_ext 21040fi 21041ac_res=`eval echo '${'$as_ac_var'}'` 21042 { echo "$as_me:$LINENO: result: $ac_res" >&5 21043echo "${ECHO_T}$ac_res" >&6; } 21044if test `eval echo '${'$as_ac_var'}'` = yes; then 21045 cat >>confdefs.h <<_ACEOF 21046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21047_ACEOF 21048 21049{ echo "$as_me:$LINENO: checking for _doprnt" >&5 21050echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 21051if test "${ac_cv_func__doprnt+set}" = set; then 21052 echo $ECHO_N "(cached) $ECHO_C" >&6 21053else 21054 cat >conftest.$ac_ext <<_ACEOF 21055/* confdefs.h. */ 21056_ACEOF 21057cat confdefs.h >>conftest.$ac_ext 21058cat >>conftest.$ac_ext <<_ACEOF 21059/* end confdefs.h. */ 21060/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21061 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21062#define _doprnt innocuous__doprnt 21063 21064/* System header to define __stub macros and hopefully few prototypes, 21065 which can conflict with char _doprnt (); below. 21066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21067 <limits.h> exists even on freestanding compilers. */ 21068 21069#ifdef __STDC__ 21070# include <limits.h> 21071#else 21072# include <assert.h> 21073#endif 21074 21075#undef _doprnt 21076 21077/* Override any GCC internal prototype to avoid an error. 21078 Use char because int might match the return type of a GCC 21079 builtin and then its argument prototype would still apply. */ 21080#ifdef __cplusplus 21081extern "C" 21082#endif 21083char _doprnt (); 21084/* The GNU C library defines this for functions which it implements 21085 to always fail with ENOSYS. Some functions are actually named 21086 something starting with __ and the normal name is an alias. */ 21087#if defined __stub__doprnt || defined __stub____doprnt 21088choke me 21089#endif 21090 21091int 21092main () 21093{ 21094return _doprnt (); 21095 ; 21096 return 0; 21097} 21098_ACEOF 21099rm -f conftest.$ac_objext conftest$ac_exeext 21100if { (ac_try="$ac_link" 21101case "(($ac_try" in 21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21103 *) ac_try_echo=$ac_try;; 21104esac 21105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21106 (eval "$ac_link") 2>conftest.er1 21107 ac_status=$? 21108 grep -v '^ *+' conftest.er1 >conftest.err 21109 rm -f conftest.er1 21110 cat conftest.err >&5 21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21112 (exit $ac_status); } && 21113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21114 { (case "(($ac_try" in 21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21116 *) ac_try_echo=$ac_try;; 21117esac 21118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21119 (eval "$ac_try") 2>&5 21120 ac_status=$? 21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21122 (exit $ac_status); }; } && 21123 { ac_try='test -s conftest$ac_exeext' 21124 { (case "(($ac_try" in 21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21126 *) ac_try_echo=$ac_try;; 21127esac 21128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21129 (eval "$ac_try") 2>&5 21130 ac_status=$? 21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21132 (exit $ac_status); }; }; then 21133 ac_cv_func__doprnt=yes 21134else 21135 echo "$as_me: failed program was:" >&5 21136sed 's/^/| /' conftest.$ac_ext >&5 21137 21138 ac_cv_func__doprnt=no 21139fi 21140 21141rm -f conftest.err conftest.$ac_objext \ 21142 conftest$ac_exeext conftest.$ac_ext 21143fi 21144{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21145echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 21146if test $ac_cv_func__doprnt = yes; then 21147 21148cat >>confdefs.h <<\_ACEOF 21149#define HAVE_DOPRNT 1 21150_ACEOF 21151 21152fi 21153 21154fi 21155done 21156 21157 21158 21159for ac_func in strftime 21160do 21161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21162{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21165 echo $ECHO_N "(cached) $ECHO_C" >&6 21166else 21167 cat >conftest.$ac_ext <<_ACEOF 21168/* confdefs.h. */ 21169_ACEOF 21170cat confdefs.h >>conftest.$ac_ext 21171cat >>conftest.$ac_ext <<_ACEOF 21172/* end confdefs.h. */ 21173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21174 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21175#define $ac_func innocuous_$ac_func 21176 21177/* System header to define __stub macros and hopefully few prototypes, 21178 which can conflict with char $ac_func (); below. 21179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21180 <limits.h> exists even on freestanding compilers. */ 21181 21182#ifdef __STDC__ 21183# include <limits.h> 21184#else 21185# include <assert.h> 21186#endif 21187 21188#undef $ac_func 21189 21190/* Override any GCC internal prototype to avoid an error. 21191 Use char because int might match the return type of a GCC 21192 builtin and then its argument prototype would still apply. */ 21193#ifdef __cplusplus 21194extern "C" 21195#endif 21196char $ac_func (); 21197/* The GNU C library defines this for functions which it implements 21198 to always fail with ENOSYS. Some functions are actually named 21199 something starting with __ and the normal name is an alias. */ 21200#if defined __stub_$ac_func || defined __stub___$ac_func 21201choke me 21202#endif 21203 21204int 21205main () 21206{ 21207return $ac_func (); 21208 ; 21209 return 0; 21210} 21211_ACEOF 21212rm -f conftest.$ac_objext conftest$ac_exeext 21213if { (ac_try="$ac_link" 21214case "(($ac_try" in 21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21216 *) ac_try_echo=$ac_try;; 21217esac 21218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21219 (eval "$ac_link") 2>conftest.er1 21220 ac_status=$? 21221 grep -v '^ *+' conftest.er1 >conftest.err 21222 rm -f conftest.er1 21223 cat conftest.err >&5 21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21225 (exit $ac_status); } && 21226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21227 { (case "(($ac_try" in 21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21229 *) ac_try_echo=$ac_try;; 21230esac 21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21232 (eval "$ac_try") 2>&5 21233 ac_status=$? 21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21235 (exit $ac_status); }; } && 21236 { ac_try='test -s conftest$ac_exeext' 21237 { (case "(($ac_try" in 21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21239 *) ac_try_echo=$ac_try;; 21240esac 21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21242 (eval "$ac_try") 2>&5 21243 ac_status=$? 21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21245 (exit $ac_status); }; }; then 21246 eval "$as_ac_var=yes" 21247else 21248 echo "$as_me: failed program was:" >&5 21249sed 's/^/| /' conftest.$ac_ext >&5 21250 21251 eval "$as_ac_var=no" 21252fi 21253 21254rm -f conftest.err conftest.$ac_objext \ 21255 conftest$ac_exeext conftest.$ac_ext 21256fi 21257ac_res=`eval echo '${'$as_ac_var'}'` 21258 { echo "$as_me:$LINENO: result: $ac_res" >&5 21259echo "${ECHO_T}$ac_res" >&6; } 21260if test `eval echo '${'$as_ac_var'}'` = yes; then 21261 cat >>confdefs.h <<_ACEOF 21262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21263_ACEOF 21264 21265else 21266 # strftime is in -lintl on SCO UNIX. 21267{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 21268echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 21269if test "${ac_cv_lib_intl_strftime+set}" = set; then 21270 echo $ECHO_N "(cached) $ECHO_C" >&6 21271else 21272 ac_check_lib_save_LIBS=$LIBS 21273LIBS="-lintl $LIBS" 21274cat >conftest.$ac_ext <<_ACEOF 21275/* confdefs.h. */ 21276_ACEOF 21277cat confdefs.h >>conftest.$ac_ext 21278cat >>conftest.$ac_ext <<_ACEOF 21279/* end confdefs.h. */ 21280 21281/* Override any GCC internal prototype to avoid an error. 21282 Use char because int might match the return type of a GCC 21283 builtin and then its argument prototype would still apply. */ 21284#ifdef __cplusplus 21285extern "C" 21286#endif 21287char strftime (); 21288int 21289main () 21290{ 21291return strftime (); 21292 ; 21293 return 0; 21294} 21295_ACEOF 21296rm -f conftest.$ac_objext conftest$ac_exeext 21297if { (ac_try="$ac_link" 21298case "(($ac_try" in 21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21300 *) ac_try_echo=$ac_try;; 21301esac 21302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21303 (eval "$ac_link") 2>conftest.er1 21304 ac_status=$? 21305 grep -v '^ *+' conftest.er1 >conftest.err 21306 rm -f conftest.er1 21307 cat conftest.err >&5 21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21309 (exit $ac_status); } && 21310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21311 { (case "(($ac_try" in 21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21313 *) ac_try_echo=$ac_try;; 21314esac 21315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21316 (eval "$ac_try") 2>&5 21317 ac_status=$? 21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21319 (exit $ac_status); }; } && 21320 { ac_try='test -s conftest$ac_exeext' 21321 { (case "(($ac_try" in 21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21323 *) ac_try_echo=$ac_try;; 21324esac 21325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21326 (eval "$ac_try") 2>&5 21327 ac_status=$? 21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21329 (exit $ac_status); }; }; then 21330 ac_cv_lib_intl_strftime=yes 21331else 21332 echo "$as_me: failed program was:" >&5 21333sed 's/^/| /' conftest.$ac_ext >&5 21334 21335 ac_cv_lib_intl_strftime=no 21336fi 21337 21338rm -f conftest.err conftest.$ac_objext \ 21339 conftest$ac_exeext conftest.$ac_ext 21340LIBS=$ac_check_lib_save_LIBS 21341fi 21342{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 21343echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 21344if test $ac_cv_lib_intl_strftime = yes; then 21345 cat >>confdefs.h <<\_ACEOF 21346#define HAVE_STRFTIME 1 21347_ACEOF 21348 21349LIBS="-lintl $LIBS" 21350fi 21351 21352fi 21353done 21354 21355 21356 21357for ac_header in sys/select.h sys/socket.h 21358do 21359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21361 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21364 echo $ECHO_N "(cached) $ECHO_C" >&6 21365fi 21366ac_res=`eval echo '${'$as_ac_Header'}'` 21367 { echo "$as_me:$LINENO: result: $ac_res" >&5 21368echo "${ECHO_T}$ac_res" >&6; } 21369else 21370 # Is the header compilable? 21371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21373cat >conftest.$ac_ext <<_ACEOF 21374/* confdefs.h. */ 21375_ACEOF 21376cat confdefs.h >>conftest.$ac_ext 21377cat >>conftest.$ac_ext <<_ACEOF 21378/* end confdefs.h. */ 21379$ac_includes_default 21380#include <$ac_header> 21381_ACEOF 21382rm -f conftest.$ac_objext 21383if { (ac_try="$ac_compile" 21384case "(($ac_try" in 21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21386 *) ac_try_echo=$ac_try;; 21387esac 21388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21389 (eval "$ac_compile") 2>conftest.er1 21390 ac_status=$? 21391 grep -v '^ *+' conftest.er1 >conftest.err 21392 rm -f conftest.er1 21393 cat conftest.err >&5 21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21395 (exit $ac_status); } && 21396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21397 { (case "(($ac_try" in 21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21399 *) ac_try_echo=$ac_try;; 21400esac 21401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21402 (eval "$ac_try") 2>&5 21403 ac_status=$? 21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21405 (exit $ac_status); }; } && 21406 { ac_try='test -s conftest.$ac_objext' 21407 { (case "(($ac_try" in 21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21409 *) ac_try_echo=$ac_try;; 21410esac 21411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21412 (eval "$ac_try") 2>&5 21413 ac_status=$? 21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21415 (exit $ac_status); }; }; then 21416 ac_header_compiler=yes 21417else 21418 echo "$as_me: failed program was:" >&5 21419sed 's/^/| /' conftest.$ac_ext >&5 21420 21421 ac_header_compiler=no 21422fi 21423 21424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21426echo "${ECHO_T}$ac_header_compiler" >&6; } 21427 21428# Is the header present? 21429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21431cat >conftest.$ac_ext <<_ACEOF 21432/* confdefs.h. */ 21433_ACEOF 21434cat confdefs.h >>conftest.$ac_ext 21435cat >>conftest.$ac_ext <<_ACEOF 21436/* end confdefs.h. */ 21437#include <$ac_header> 21438_ACEOF 21439if { (ac_try="$ac_cpp conftest.$ac_ext" 21440case "(($ac_try" in 21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21442 *) ac_try_echo=$ac_try;; 21443esac 21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21446 ac_status=$? 21447 grep -v '^ *+' conftest.er1 >conftest.err 21448 rm -f conftest.er1 21449 cat conftest.err >&5 21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21451 (exit $ac_status); } >/dev/null; then 21452 if test -s conftest.err; then 21453 ac_cpp_err=$ac_c_preproc_warn_flag 21454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21455 else 21456 ac_cpp_err= 21457 fi 21458else 21459 ac_cpp_err=yes 21460fi 21461if test -z "$ac_cpp_err"; then 21462 ac_header_preproc=yes 21463else 21464 echo "$as_me: failed program was:" >&5 21465sed 's/^/| /' conftest.$ac_ext >&5 21466 21467 ac_header_preproc=no 21468fi 21469 21470rm -f conftest.err conftest.$ac_ext 21471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21472echo "${ECHO_T}$ac_header_preproc" >&6; } 21473 21474# So? What about this header? 21475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21476 yes:no: ) 21477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21481 ac_header_preproc=yes 21482 ;; 21483 no:yes:* ) 21484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21496 21497 ;; 21498esac 21499{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21502 echo $ECHO_N "(cached) $ECHO_C" >&6 21503else 21504 eval "$as_ac_Header=\$ac_header_preproc" 21505fi 21506ac_res=`eval echo '${'$as_ac_Header'}'` 21507 { echo "$as_me:$LINENO: result: $ac_res" >&5 21508echo "${ECHO_T}$ac_res" >&6; } 21509 21510fi 21511if test `eval echo '${'$as_ac_Header'}'` = yes; then 21512 cat >>confdefs.h <<_ACEOF 21513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21514_ACEOF 21515 21516fi 21517 21518done 21519 21520{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 21521echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 21522if test "${ac_cv_func_select_args+set}" = set; then 21523 echo $ECHO_N "(cached) $ECHO_C" >&6 21524else 21525 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 21526 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 21527 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 21528 cat >conftest.$ac_ext <<_ACEOF 21529/* confdefs.h. */ 21530_ACEOF 21531cat confdefs.h >>conftest.$ac_ext 21532cat >>conftest.$ac_ext <<_ACEOF 21533/* end confdefs.h. */ 21534$ac_includes_default 21535#if HAVE_SYS_SELECT_H 21536# include <sys/select.h> 21537#endif 21538#if HAVE_SYS_SOCKET_H 21539# include <sys/socket.h> 21540#endif 21541 21542int 21543main () 21544{ 21545extern int select ($ac_arg1, 21546 $ac_arg234, $ac_arg234, $ac_arg234, 21547 $ac_arg5); 21548 ; 21549 return 0; 21550} 21551_ACEOF 21552rm -f conftest.$ac_objext 21553if { (ac_try="$ac_compile" 21554case "(($ac_try" in 21555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21556 *) ac_try_echo=$ac_try;; 21557esac 21558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21559 (eval "$ac_compile") 2>conftest.er1 21560 ac_status=$? 21561 grep -v '^ *+' conftest.er1 >conftest.err 21562 rm -f conftest.er1 21563 cat conftest.err >&5 21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21565 (exit $ac_status); } && 21566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21567 { (case "(($ac_try" in 21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21569 *) ac_try_echo=$ac_try;; 21570esac 21571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21572 (eval "$ac_try") 2>&5 21573 ac_status=$? 21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21575 (exit $ac_status); }; } && 21576 { ac_try='test -s conftest.$ac_objext' 21577 { (case "(($ac_try" in 21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21579 *) ac_try_echo=$ac_try;; 21580esac 21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21582 (eval "$ac_try") 2>&5 21583 ac_status=$? 21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21585 (exit $ac_status); }; }; then 21586 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 21587else 21588 echo "$as_me: failed program was:" >&5 21589sed 's/^/| /' conftest.$ac_ext >&5 21590 21591 21592fi 21593 21594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21595 done 21596 done 21597done 21598# Provide a safe default value. 21599: ${ac_cv_func_select_args='int,int *,struct timeval *'} 21600 21601fi 21602{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 21603echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 21604ac_save_IFS=$IFS; IFS=',' 21605set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 21606IFS=$ac_save_IFS 21607shift 21608 21609cat >>confdefs.h <<_ACEOF 21610#define SELECT_TYPE_ARG1 $1 21611_ACEOF 21612 21613 21614cat >>confdefs.h <<_ACEOF 21615#define SELECT_TYPE_ARG234 ($2) 21616_ACEOF 21617 21618 21619cat >>confdefs.h <<_ACEOF 21620#define SELECT_TYPE_ARG5 ($3) 21621_ACEOF 21622 21623rm -f conftest* 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639for ac_func in gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strncasecmp strpbrk strspn strstr strtol 21640do 21641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21642{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21645 echo $ECHO_N "(cached) $ECHO_C" >&6 21646else 21647 cat >conftest.$ac_ext <<_ACEOF 21648/* confdefs.h. */ 21649_ACEOF 21650cat confdefs.h >>conftest.$ac_ext 21651cat >>conftest.$ac_ext <<_ACEOF 21652/* end confdefs.h. */ 21653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21654 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21655#define $ac_func innocuous_$ac_func 21656 21657/* System header to define __stub macros and hopefully few prototypes, 21658 which can conflict with char $ac_func (); below. 21659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21660 <limits.h> exists even on freestanding compilers. */ 21661 21662#ifdef __STDC__ 21663# include <limits.h> 21664#else 21665# include <assert.h> 21666#endif 21667 21668#undef $ac_func 21669 21670/* Override any GCC internal prototype to avoid an error. 21671 Use char because int might match the return type of a GCC 21672 builtin and then its argument prototype would still apply. */ 21673#ifdef __cplusplus 21674extern "C" 21675#endif 21676char $ac_func (); 21677/* The GNU C library defines this for functions which it implements 21678 to always fail with ENOSYS. Some functions are actually named 21679 something starting with __ and the normal name is an alias. */ 21680#if defined __stub_$ac_func || defined __stub___$ac_func 21681choke me 21682#endif 21683 21684int 21685main () 21686{ 21687return $ac_func (); 21688 ; 21689 return 0; 21690} 21691_ACEOF 21692rm -f conftest.$ac_objext conftest$ac_exeext 21693if { (ac_try="$ac_link" 21694case "(($ac_try" in 21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21696 *) ac_try_echo=$ac_try;; 21697esac 21698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21699 (eval "$ac_link") 2>conftest.er1 21700 ac_status=$? 21701 grep -v '^ *+' conftest.er1 >conftest.err 21702 rm -f conftest.er1 21703 cat conftest.err >&5 21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21705 (exit $ac_status); } && 21706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21707 { (case "(($ac_try" in 21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21709 *) ac_try_echo=$ac_try;; 21710esac 21711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21712 (eval "$ac_try") 2>&5 21713 ac_status=$? 21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); }; } && 21716 { ac_try='test -s conftest$ac_exeext' 21717 { (case "(($ac_try" in 21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21719 *) ac_try_echo=$ac_try;; 21720esac 21721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21722 (eval "$ac_try") 2>&5 21723 ac_status=$? 21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21725 (exit $ac_status); }; }; then 21726 eval "$as_ac_var=yes" 21727else 21728 echo "$as_me: failed program was:" >&5 21729sed 's/^/| /' conftest.$ac_ext >&5 21730 21731 eval "$as_ac_var=no" 21732fi 21733 21734rm -f conftest.err conftest.$ac_objext \ 21735 conftest$ac_exeext conftest.$ac_ext 21736fi 21737ac_res=`eval echo '${'$as_ac_var'}'` 21738 { echo "$as_me:$LINENO: result: $ac_res" >&5 21739echo "${ECHO_T}$ac_res" >&6; } 21740if test `eval echo '${'$as_ac_var'}'` = yes; then 21741 cat >>confdefs.h <<_ACEOF 21742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21743_ACEOF 21744 21745fi 21746done 21747 21748 21749 21750 21751 21752 21753 21754ac_ext=c 21755ac_cpp='$CPP $CPPFLAGS' 21756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21758ac_compiler_gnu=$ac_cv_c_compiler_gnu 21759 21760acx_pthread_ok=no 21761 21762# We used to check for pthread.h first, but this fails if pthread.h 21763# requires special compiler flags (e.g. on True64 or Sequent). 21764# It gets checked for in the link test anyway. 21765 21766# First of all, check if the user has set any of the PTHREAD_LIBS, 21767# etcetera environment variables, and if threads linking works using 21768# them: 21769if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 21770 save_CFLAGS="$CFLAGS" 21771 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21772 save_LIBS="$LIBS" 21773 LIBS="$PTHREAD_LIBS $LIBS" 21774 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 21775echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 21776 cat >conftest.$ac_ext <<_ACEOF 21777/* confdefs.h. */ 21778_ACEOF 21779cat confdefs.h >>conftest.$ac_ext 21780cat >>conftest.$ac_ext <<_ACEOF 21781/* end confdefs.h. */ 21782 21783/* Override any GCC internal prototype to avoid an error. 21784 Use char because int might match the return type of a GCC 21785 builtin and then its argument prototype would still apply. */ 21786#ifdef __cplusplus 21787extern "C" 21788#endif 21789char pthread_join (); 21790int 21791main () 21792{ 21793return pthread_join (); 21794 ; 21795 return 0; 21796} 21797_ACEOF 21798rm -f conftest.$ac_objext conftest$ac_exeext 21799if { (ac_try="$ac_link" 21800case "(($ac_try" in 21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21802 *) ac_try_echo=$ac_try;; 21803esac 21804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21805 (eval "$ac_link") 2>conftest.er1 21806 ac_status=$? 21807 grep -v '^ *+' conftest.er1 >conftest.err 21808 rm -f conftest.er1 21809 cat conftest.err >&5 21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21811 (exit $ac_status); } && 21812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21813 { (case "(($ac_try" in 21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21815 *) ac_try_echo=$ac_try;; 21816esac 21817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21818 (eval "$ac_try") 2>&5 21819 ac_status=$? 21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21821 (exit $ac_status); }; } && 21822 { ac_try='test -s conftest$ac_exeext' 21823 { (case "(($ac_try" in 21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21825 *) ac_try_echo=$ac_try;; 21826esac 21827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21828 (eval "$ac_try") 2>&5 21829 ac_status=$? 21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21831 (exit $ac_status); }; }; then 21832 acx_pthread_ok=yes 21833else 21834 echo "$as_me: failed program was:" >&5 21835sed 's/^/| /' conftest.$ac_ext >&5 21836 21837 21838fi 21839 21840rm -f conftest.err conftest.$ac_objext \ 21841 conftest$ac_exeext conftest.$ac_ext 21842 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 21843echo "${ECHO_T}$acx_pthread_ok" >&6; } 21844 if test x"$acx_pthread_ok" = xno; then 21845 PTHREAD_LIBS="" 21846 PTHREAD_CFLAGS="" 21847 fi 21848 LIBS="$save_LIBS" 21849 CFLAGS="$save_CFLAGS" 21850fi 21851 21852# We must check for the threads library under a number of different 21853# names; the ordering is very important because some systems 21854# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 21855# libraries is broken (non-POSIX). 21856 21857# Create a list of thread flags to try. Items starting with a "-" are 21858# C compiler flags, and other items are library names, except for "none" 21859# which indicates that we try without any flags at all, and "pthread-config" 21860# which is a program returning the flags for the Pth emulation library. 21861 21862acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 21863 21864# The ordering *is* (sometimes) important. Some notes on the 21865# individual items follow: 21866 21867# pthreads: AIX (must check this before -lpthread) 21868# none: in case threads are in libc; should be tried before -Kthread and 21869# other compiler flags to prevent continual compiler warnings 21870# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 21871# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 21872# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 21873# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 21874# -pthreads: Solaris/gcc 21875# -mthreads: Mingw32/gcc, Lynx/gcc 21876# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 21877# doesn't hurt to check since this sometimes defines pthreads too; 21878# also defines -D_REENTRANT) 21879# ... -mt is also the pthreads flag for HP/aCC 21880# pthread: Linux, etcetera 21881# --thread-safe: KAI C++ 21882# pthread-config: use pthread-config program (for GNU Pth library) 21883 21884case "${host_cpu}-${host_os}" in 21885 *solaris*) 21886 21887 # On Solaris (at least, for some versions), libc contains stubbed 21888 # (non-functional) versions of the pthreads routines, so link-based 21889 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 21890 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 21891 # a function called by this macro, so we could check for that, but 21892 # who knows whether they'll stub that too in a future libc.) So, 21893 # we'll just look for -pthreads and -lpthread first: 21894 21895 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 21896 ;; 21897esac 21898 21899if test x"$acx_pthread_ok" = xno; then 21900for flag in $acx_pthread_flags; do 21901 21902 case $flag in 21903 none) 21904 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 21905echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 21906 ;; 21907 21908 -*) 21909 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 21910echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 21911 PTHREAD_CFLAGS="$flag" 21912 ;; 21913 21914 pthread-config) 21915 # Extract the first word of "pthread-config", so it can be a program name with args. 21916set dummy pthread-config; ac_word=$2 21917{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21919if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 21920 echo $ECHO_N "(cached) $ECHO_C" >&6 21921else 21922 if test -n "$acx_pthread_config"; then 21923 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 21924else 21925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21926for as_dir in $PATH 21927do 21928 IFS=$as_save_IFS 21929 test -z "$as_dir" && as_dir=. 21930 for ac_exec_ext in '' $ac_executable_extensions; do 21931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21932 ac_cv_prog_acx_pthread_config="yes" 21933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21934 break 2 21935 fi 21936done 21937done 21938IFS=$as_save_IFS 21939 21940 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 21941fi 21942fi 21943acx_pthread_config=$ac_cv_prog_acx_pthread_config 21944if test -n "$acx_pthread_config"; then 21945 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 21946echo "${ECHO_T}$acx_pthread_config" >&6; } 21947else 21948 { echo "$as_me:$LINENO: result: no" >&5 21949echo "${ECHO_T}no" >&6; } 21950fi 21951 21952 21953 if test x"$acx_pthread_config" = xno; then continue; fi 21954 PTHREAD_CFLAGS="`pthread-config --cflags`" 21955 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 21956 ;; 21957 21958 *) 21959 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 21960echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 21961 PTHREAD_LIBS="-l$flag" 21962 ;; 21963 esac 21964 21965 save_LIBS="$LIBS" 21966 save_CFLAGS="$CFLAGS" 21967 LIBS="$PTHREAD_LIBS $LIBS" 21968 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21969 21970 # Check for various functions. We must include pthread.h, 21971 # since some functions may be macros. (On the Sequent, we 21972 # need a special flag -Kthread to make this header compile.) 21973 # We check for pthread_join because it is in -lpthread on IRIX 21974 # while pthread_create is in libc. We check for pthread_attr_init 21975 # due to DEC craziness with -lpthreads. We check for 21976 # pthread_cleanup_push because it is one of the few pthread 21977 # functions on Solaris that doesn't have a non-functional libc stub. 21978 # We try pthread_create on general principles. 21979 cat >conftest.$ac_ext <<_ACEOF 21980/* confdefs.h. */ 21981_ACEOF 21982cat confdefs.h >>conftest.$ac_ext 21983cat >>conftest.$ac_ext <<_ACEOF 21984/* end confdefs.h. */ 21985#include <pthread.h> 21986int 21987main () 21988{ 21989pthread_t th; pthread_join(th, 0); 21990 pthread_attr_init(0); pthread_cleanup_push(0, 0); 21991 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 21992 ; 21993 return 0; 21994} 21995_ACEOF 21996rm -f conftest.$ac_objext conftest$ac_exeext 21997if { (ac_try="$ac_link" 21998case "(($ac_try" in 21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22000 *) ac_try_echo=$ac_try;; 22001esac 22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22003 (eval "$ac_link") 2>conftest.er1 22004 ac_status=$? 22005 grep -v '^ *+' conftest.er1 >conftest.err 22006 rm -f conftest.er1 22007 cat conftest.err >&5 22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22009 (exit $ac_status); } && 22010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22011 { (case "(($ac_try" in 22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22013 *) ac_try_echo=$ac_try;; 22014esac 22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22016 (eval "$ac_try") 2>&5 22017 ac_status=$? 22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22019 (exit $ac_status); }; } && 22020 { ac_try='test -s conftest$ac_exeext' 22021 { (case "(($ac_try" in 22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22023 *) ac_try_echo=$ac_try;; 22024esac 22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22026 (eval "$ac_try") 2>&5 22027 ac_status=$? 22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22029 (exit $ac_status); }; }; then 22030 acx_pthread_ok=yes 22031else 22032 echo "$as_me: failed program was:" >&5 22033sed 's/^/| /' conftest.$ac_ext >&5 22034 22035 22036fi 22037 22038rm -f conftest.err conftest.$ac_objext \ 22039 conftest$ac_exeext conftest.$ac_ext 22040 22041 LIBS="$save_LIBS" 22042 CFLAGS="$save_CFLAGS" 22043 22044 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 22045echo "${ECHO_T}$acx_pthread_ok" >&6; } 22046 if test "x$acx_pthread_ok" = xyes; then 22047 break; 22048 fi 22049 22050 PTHREAD_LIBS="" 22051 PTHREAD_CFLAGS="" 22052done 22053fi 22054 22055# Various other checks: 22056if test "x$acx_pthread_ok" = xyes; then 22057 save_LIBS="$LIBS" 22058 LIBS="$PTHREAD_LIBS $LIBS" 22059 save_CFLAGS="$CFLAGS" 22060 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 22061 22062 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 22063 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 22064echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 22065 attr_name=unknown 22066 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 22067 cat >conftest.$ac_ext <<_ACEOF 22068/* confdefs.h. */ 22069_ACEOF 22070cat confdefs.h >>conftest.$ac_ext 22071cat >>conftest.$ac_ext <<_ACEOF 22072/* end confdefs.h. */ 22073#include <pthread.h> 22074int 22075main () 22076{ 22077int attr=$attr; return attr; 22078 ; 22079 return 0; 22080} 22081_ACEOF 22082rm -f conftest.$ac_objext conftest$ac_exeext 22083if { (ac_try="$ac_link" 22084case "(($ac_try" in 22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22086 *) ac_try_echo=$ac_try;; 22087esac 22088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22089 (eval "$ac_link") 2>conftest.er1 22090 ac_status=$? 22091 grep -v '^ *+' conftest.er1 >conftest.err 22092 rm -f conftest.er1 22093 cat conftest.err >&5 22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22095 (exit $ac_status); } && 22096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22097 { (case "(($ac_try" in 22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22099 *) ac_try_echo=$ac_try;; 22100esac 22101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22102 (eval "$ac_try") 2>&5 22103 ac_status=$? 22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22105 (exit $ac_status); }; } && 22106 { ac_try='test -s conftest$ac_exeext' 22107 { (case "(($ac_try" in 22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22109 *) ac_try_echo=$ac_try;; 22110esac 22111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22112 (eval "$ac_try") 2>&5 22113 ac_status=$? 22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22115 (exit $ac_status); }; }; then 22116 attr_name=$attr; break 22117else 22118 echo "$as_me: failed program was:" >&5 22119sed 's/^/| /' conftest.$ac_ext >&5 22120 22121 22122fi 22123 22124rm -f conftest.err conftest.$ac_objext \ 22125 conftest$ac_exeext conftest.$ac_ext 22126 done 22127 { echo "$as_me:$LINENO: result: $attr_name" >&5 22128echo "${ECHO_T}$attr_name" >&6; } 22129 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 22130 22131cat >>confdefs.h <<_ACEOF 22132#define PTHREAD_CREATE_JOINABLE $attr_name 22133_ACEOF 22134 22135 fi 22136 22137 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 22138echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 22139 flag=no 22140 case "${host_cpu}-${host_os}" in 22141 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 22142 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 22143 esac 22144 { echo "$as_me:$LINENO: result: ${flag}" >&5 22145echo "${ECHO_T}${flag}" >&6; } 22146 if test "x$flag" != xno; then 22147 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 22148 fi 22149 22150 LIBS="$save_LIBS" 22151 CFLAGS="$save_CFLAGS" 22152 22153 # More AIX lossage: must compile with xlc_r or cc_r 22154 if test x"$GCC" != xyes; then 22155 for ac_prog in xlc_r cc_r 22156do 22157 # Extract the first word of "$ac_prog", so it can be a program name with args. 22158set dummy $ac_prog; ac_word=$2 22159{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22161if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 22162 echo $ECHO_N "(cached) $ECHO_C" >&6 22163else 22164 if test -n "$PTHREAD_CC"; then 22165 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 22166else 22167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22168for as_dir in $PATH 22169do 22170 IFS=$as_save_IFS 22171 test -z "$as_dir" && as_dir=. 22172 for ac_exec_ext in '' $ac_executable_extensions; do 22173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 22174 ac_cv_prog_PTHREAD_CC="$ac_prog" 22175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22176 break 2 22177 fi 22178done 22179done 22180IFS=$as_save_IFS 22181 22182fi 22183fi 22184PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 22185if test -n "$PTHREAD_CC"; then 22186 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 22187echo "${ECHO_T}$PTHREAD_CC" >&6; } 22188else 22189 { echo "$as_me:$LINENO: result: no" >&5 22190echo "${ECHO_T}no" >&6; } 22191fi 22192 22193 22194 test -n "$PTHREAD_CC" && break 22195done 22196test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 22197 22198 else 22199 PTHREAD_CC=$CC 22200 fi 22201else 22202 PTHREAD_CC="$CC" 22203fi 22204 22205 22206 22207 22208 22209# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 22210if test x"$acx_pthread_ok" = xyes; then 22211 LIBS="$PTHREAD_LIBS $LIBS"; CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 22212 : 22213else 22214 acx_pthread_ok=no 22215 22216fi 22217ac_ext=c 22218ac_cpp='$CPP $CPPFLAGS' 22219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22221ac_compiler_gnu=$ac_cv_c_compiler_gnu 22222 22223 22224 22225 22226 22227for ac_func in localtime_r strtok_r 22228do 22229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22230{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22233 echo $ECHO_N "(cached) $ECHO_C" >&6 22234else 22235 cat >conftest.$ac_ext <<_ACEOF 22236/* confdefs.h. */ 22237_ACEOF 22238cat confdefs.h >>conftest.$ac_ext 22239cat >>conftest.$ac_ext <<_ACEOF 22240/* end confdefs.h. */ 22241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22242 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22243#define $ac_func innocuous_$ac_func 22244 22245/* System header to define __stub macros and hopefully few prototypes, 22246 which can conflict with char $ac_func (); below. 22247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22248 <limits.h> exists even on freestanding compilers. */ 22249 22250#ifdef __STDC__ 22251# include <limits.h> 22252#else 22253# include <assert.h> 22254#endif 22255 22256#undef $ac_func 22257 22258/* Override any GCC internal prototype to avoid an error. 22259 Use char because int might match the return type of a GCC 22260 builtin and then its argument prototype would still apply. */ 22261#ifdef __cplusplus 22262extern "C" 22263#endif 22264char $ac_func (); 22265/* The GNU C library defines this for functions which it implements 22266 to always fail with ENOSYS. Some functions are actually named 22267 something starting with __ and the normal name is an alias. */ 22268#if defined __stub_$ac_func || defined __stub___$ac_func 22269choke me 22270#endif 22271 22272int 22273main () 22274{ 22275return $ac_func (); 22276 ; 22277 return 0; 22278} 22279_ACEOF 22280rm -f conftest.$ac_objext conftest$ac_exeext 22281if { (ac_try="$ac_link" 22282case "(($ac_try" in 22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22284 *) ac_try_echo=$ac_try;; 22285esac 22286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22287 (eval "$ac_link") 2>conftest.er1 22288 ac_status=$? 22289 grep -v '^ *+' conftest.er1 >conftest.err 22290 rm -f conftest.er1 22291 cat conftest.err >&5 22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22293 (exit $ac_status); } && 22294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22295 { (case "(($ac_try" in 22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22297 *) ac_try_echo=$ac_try;; 22298esac 22299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22300 (eval "$ac_try") 2>&5 22301 ac_status=$? 22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22303 (exit $ac_status); }; } && 22304 { ac_try='test -s conftest$ac_exeext' 22305 { (case "(($ac_try" in 22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22307 *) ac_try_echo=$ac_try;; 22308esac 22309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22310 (eval "$ac_try") 2>&5 22311 ac_status=$? 22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22313 (exit $ac_status); }; }; then 22314 eval "$as_ac_var=yes" 22315else 22316 echo "$as_me: failed program was:" >&5 22317sed 's/^/| /' conftest.$ac_ext >&5 22318 22319 eval "$as_ac_var=no" 22320fi 22321 22322rm -f conftest.err conftest.$ac_objext \ 22323 conftest$ac_exeext conftest.$ac_ext 22324fi 22325ac_res=`eval echo '${'$as_ac_var'}'` 22326 { echo "$as_me:$LINENO: result: $ac_res" >&5 22327echo "${ECHO_T}$ac_res" >&6; } 22328if test `eval echo '${'$as_ac_var'}'` = yes; then 22329 cat >>confdefs.h <<_ACEOF 22330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22331_ACEOF 22332 22333fi 22334done 22335 22336 22337# ------------------------------------------ 22338# Check socket library (for Solaris) 22339# ------------------------------------------ 22340{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 22341echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 22342if test "${ac_cv_lib_socket_socket+set}" = set; then 22343 echo $ECHO_N "(cached) $ECHO_C" >&6 22344else 22345 ac_check_lib_save_LIBS=$LIBS 22346LIBS="-lsocket $LIBS" 22347cat >conftest.$ac_ext <<_ACEOF 22348/* confdefs.h. */ 22349_ACEOF 22350cat confdefs.h >>conftest.$ac_ext 22351cat >>conftest.$ac_ext <<_ACEOF 22352/* end confdefs.h. */ 22353 22354/* Override any GCC internal prototype to avoid an error. 22355 Use char because int might match the return type of a GCC 22356 builtin and then its argument prototype would still apply. */ 22357#ifdef __cplusplus 22358extern "C" 22359#endif 22360char socket (); 22361int 22362main () 22363{ 22364return socket (); 22365 ; 22366 return 0; 22367} 22368_ACEOF 22369rm -f conftest.$ac_objext conftest$ac_exeext 22370if { (ac_try="$ac_link" 22371case "(($ac_try" in 22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22373 *) ac_try_echo=$ac_try;; 22374esac 22375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22376 (eval "$ac_link") 2>conftest.er1 22377 ac_status=$? 22378 grep -v '^ *+' conftest.er1 >conftest.err 22379 rm -f conftest.er1 22380 cat conftest.err >&5 22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22382 (exit $ac_status); } && 22383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22384 { (case "(($ac_try" in 22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22386 *) ac_try_echo=$ac_try;; 22387esac 22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22389 (eval "$ac_try") 2>&5 22390 ac_status=$? 22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22392 (exit $ac_status); }; } && 22393 { ac_try='test -s conftest$ac_exeext' 22394 { (case "(($ac_try" in 22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22396 *) ac_try_echo=$ac_try;; 22397esac 22398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22399 (eval "$ac_try") 2>&5 22400 ac_status=$? 22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22402 (exit $ac_status); }; }; then 22403 ac_cv_lib_socket_socket=yes 22404else 22405 echo "$as_me: failed program was:" >&5 22406sed 's/^/| /' conftest.$ac_ext >&5 22407 22408 ac_cv_lib_socket_socket=no 22409fi 22410 22411rm -f conftest.err conftest.$ac_objext \ 22412 conftest$ac_exeext conftest.$ac_ext 22413LIBS=$ac_check_lib_save_LIBS 22414fi 22415{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 22416echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 22417if test $ac_cv_lib_socket_socket = yes; then 22418 LIBSOCKET="-lsocket" 22419fi 22420 22421 22422 22423{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 22424echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 22425if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 22426 echo $ECHO_N "(cached) $ECHO_C" >&6 22427else 22428 ac_check_lib_save_LIBS=$LIBS 22429LIBS="-lnsl $LIBS" 22430cat >conftest.$ac_ext <<_ACEOF 22431/* confdefs.h. */ 22432_ACEOF 22433cat confdefs.h >>conftest.$ac_ext 22434cat >>conftest.$ac_ext <<_ACEOF 22435/* end confdefs.h. */ 22436 22437/* Override any GCC internal prototype to avoid an error. 22438 Use char because int might match the return type of a GCC 22439 builtin and then its argument prototype would still apply. */ 22440#ifdef __cplusplus 22441extern "C" 22442#endif 22443char inet_ntoa (); 22444int 22445main () 22446{ 22447return inet_ntoa (); 22448 ; 22449 return 0; 22450} 22451_ACEOF 22452rm -f conftest.$ac_objext conftest$ac_exeext 22453if { (ac_try="$ac_link" 22454case "(($ac_try" in 22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22456 *) ac_try_echo=$ac_try;; 22457esac 22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22459 (eval "$ac_link") 2>conftest.er1 22460 ac_status=$? 22461 grep -v '^ *+' conftest.er1 >conftest.err 22462 rm -f conftest.er1 22463 cat conftest.err >&5 22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22465 (exit $ac_status); } && 22466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22467 { (case "(($ac_try" in 22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22469 *) ac_try_echo=$ac_try;; 22470esac 22471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22472 (eval "$ac_try") 2>&5 22473 ac_status=$? 22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22475 (exit $ac_status); }; } && 22476 { ac_try='test -s conftest$ac_exeext' 22477 { (case "(($ac_try" in 22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22479 *) ac_try_echo=$ac_try;; 22480esac 22481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22482 (eval "$ac_try") 2>&5 22483 ac_status=$? 22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22485 (exit $ac_status); }; }; then 22486 ac_cv_lib_nsl_inet_ntoa=yes 22487else 22488 echo "$as_me: failed program was:" >&5 22489sed 's/^/| /' conftest.$ac_ext >&5 22490 22491 ac_cv_lib_nsl_inet_ntoa=no 22492fi 22493 22494rm -f conftest.err conftest.$ac_objext \ 22495 conftest$ac_exeext conftest.$ac_ext 22496LIBS=$ac_check_lib_save_LIBS 22497fi 22498{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 22499echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 22500if test $ac_cv_lib_nsl_inet_ntoa = yes; then 22501 LIBNSL="-lnsl" 22502fi 22503 22504{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 22505echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 22506if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 22507 echo $ECHO_N "(cached) $ECHO_C" >&6 22508else 22509 ac_check_lib_save_LIBS=$LIBS 22510LIBS="-lnsl $LIBS" 22511cat >conftest.$ac_ext <<_ACEOF 22512/* confdefs.h. */ 22513_ACEOF 22514cat confdefs.h >>conftest.$ac_ext 22515cat >>conftest.$ac_ext <<_ACEOF 22516/* end confdefs.h. */ 22517 22518/* Override any GCC internal prototype to avoid an error. 22519 Use char because int might match the return type of a GCC 22520 builtin and then its argument prototype would still apply. */ 22521#ifdef __cplusplus 22522extern "C" 22523#endif 22524char gethostbyname (); 22525int 22526main () 22527{ 22528return gethostbyname (); 22529 ; 22530 return 0; 22531} 22532_ACEOF 22533rm -f conftest.$ac_objext conftest$ac_exeext 22534if { (ac_try="$ac_link" 22535case "(($ac_try" in 22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22537 *) ac_try_echo=$ac_try;; 22538esac 22539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22540 (eval "$ac_link") 2>conftest.er1 22541 ac_status=$? 22542 grep -v '^ *+' conftest.er1 >conftest.err 22543 rm -f conftest.er1 22544 cat conftest.err >&5 22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22546 (exit $ac_status); } && 22547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22548 { (case "(($ac_try" in 22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22550 *) ac_try_echo=$ac_try;; 22551esac 22552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22553 (eval "$ac_try") 2>&5 22554 ac_status=$? 22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22556 (exit $ac_status); }; } && 22557 { ac_try='test -s conftest$ac_exeext' 22558 { (case "(($ac_try" in 22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22560 *) ac_try_echo=$ac_try;; 22561esac 22562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22563 (eval "$ac_try") 2>&5 22564 ac_status=$? 22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22566 (exit $ac_status); }; }; then 22567 ac_cv_lib_nsl_gethostbyname=yes 22568else 22569 echo "$as_me: failed program was:" >&5 22570sed 's/^/| /' conftest.$ac_ext >&5 22571 22572 ac_cv_lib_nsl_gethostbyname=no 22573fi 22574 22575rm -f conftest.err conftest.$ac_objext \ 22576 conftest$ac_exeext conftest.$ac_ext 22577LIBS=$ac_check_lib_save_LIBS 22578fi 22579{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 22580echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 22581if test $ac_cv_lib_nsl_gethostbyname = yes; then 22582 LIBNSL="-lnsl" 22583fi 22584 22585 22586 22587 22588 22589# Check whether --with-xml-prefix was given. 22590if test "${with_xml_prefix+set}" = set; then 22591 withval=$with_xml_prefix; xml_config_prefix="$withval" 22592else 22593 xml_config_prefix="" 22594fi 22595 22596 22597# Check whether --with-xml-exec-prefix was given. 22598if test "${with_xml_exec_prefix+set}" = set; then 22599 withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval" 22600else 22601 xml_config_exec_prefix="" 22602fi 22603 22604# Check whether --enable-xmltest was given. 22605if test "${enable_xmltest+set}" = set; then 22606 enableval=$enable_xmltest; 22607else 22608 enable_xmltest=yes 22609fi 22610 22611 22612 if test x$xml_config_exec_prefix != x ; then 22613 xml_config_args="$xml_config_args" 22614 if test x${XML2_CONFIG+set} != xset ; then 22615 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config 22616 fi 22617 fi 22618 if test x$xml_config_prefix != x ; then 22619 xml_config_args="$xml_config_args --prefix=$xml_config_prefix" 22620 if test x${XML2_CONFIG+set} != xset ; then 22621 XML2_CONFIG=$xml_config_prefix/bin/xml2-config 22622 fi 22623 fi 22624 22625 # Extract the first word of "xml2-config", so it can be a program name with args. 22626set dummy xml2-config; ac_word=$2 22627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22629if test "${ac_cv_path_XML2_CONFIG+set}" = set; then 22630 echo $ECHO_N "(cached) $ECHO_C" >&6 22631else 22632 case $XML2_CONFIG in 22633 [\\/]* | ?:[\\/]*) 22634 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. 22635 ;; 22636 *) 22637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22638for as_dir in $PATH 22639do 22640 IFS=$as_save_IFS 22641 test -z "$as_dir" && as_dir=. 22642 for ac_exec_ext in '' $ac_executable_extensions; do 22643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 22644 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22646 break 2 22647 fi 22648done 22649done 22650IFS=$as_save_IFS 22651 22652 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" 22653 ;; 22654esac 22655fi 22656XML2_CONFIG=$ac_cv_path_XML2_CONFIG 22657if test -n "$XML2_CONFIG"; then 22658 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 22659echo "${ECHO_T}$XML2_CONFIG" >&6; } 22660else 22661 { echo "$as_me:$LINENO: result: no" >&5 22662echo "${ECHO_T}no" >&6; } 22663fi 22664 22665 22666 min_xml_version=2.6.0 22667 { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5 22668echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; } 22669 no_xml="" 22670 if test "$XML2_CONFIG" = "no" ; then 22671 no_xml=yes 22672 else 22673 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags` 22674 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs` 22675 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ 22676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 22677 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ 22678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 22679 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ 22680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 22681 if test "x$enable_xmltest" = "xyes" ; then 22682 ac_save_CPPFLAGS="$CPPFLAGS" 22683 ac_save_LIBS="$LIBS" 22684 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" 22685 LIBS="$XML_LIBS $LIBS" 22686 rm -f conf.xmltest 22687 if test "$cross_compiling" = yes; then 22688 echo $ac_n "cross compiling; assumed OK... $ac_c" 22689else 22690 cat >conftest.$ac_ext <<_ACEOF 22691/* confdefs.h. */ 22692_ACEOF 22693cat confdefs.h >>conftest.$ac_ext 22694cat >>conftest.$ac_ext <<_ACEOF 22695/* end confdefs.h. */ 22696 22697#include <stdlib.h> 22698#include <stdio.h> 22699#include <string.h> 22700#include <libxml/xmlversion.h> 22701 22702int 22703main() 22704{ 22705 int xml_major_version, xml_minor_version, xml_micro_version; 22706 int major, minor, micro; 22707 char *tmp_version; 22708 22709 system("touch conf.xmltest"); 22710 22711 /* Capture xml2-config output via autoconf/configure variables */ 22712 /* HP/UX 9 (%@#!) writes to sscanf strings */ 22713 tmp_version = (char *)strdup("$min_xml_version"); 22714 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 22715 printf("%s, bad version string from xml2-config\n", "$min_xml_version"); 22716 exit(1); 22717 } 22718 free(tmp_version); 22719 22720 /* Capture the version information from the header files */ 22721 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION); 22722 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) { 22723 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION"); 22724 exit(1); 22725 } 22726 free(tmp_version); 22727 22728 /* Compare xml2-config output to the libxml headers */ 22729 if ((xml_major_version != $xml_config_major_version) || 22730 (xml_minor_version != $xml_config_minor_version) || 22731 (xml_micro_version != $xml_config_micro_version)) 22732 { 22733 printf("*** libxml header files (version %d.%d.%d) do not match\n", 22734 xml_major_version, xml_minor_version, xml_micro_version); 22735 printf("*** xml2-config (version %d.%d.%d)\n", 22736 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); 22737 return 1; 22738 } 22739/* Compare the headers to the library to make sure we match */ 22740 /* Less than ideal -- doesn't provide us with return value feedback, 22741 * only exits if there's a serious mismatch between header and library. 22742 */ 22743 LIBXML_TEST_VERSION; 22744 22745 /* Test that the library is greater than our minimum version */ 22746 if ((xml_major_version > major) || 22747 ((xml_major_version == major) && (xml_minor_version > minor)) || 22748 ((xml_major_version == major) && (xml_minor_version == minor) && 22749 (xml_micro_version >= micro))) 22750 { 22751 return 0; 22752 } 22753 else 22754 { 22755 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n", 22756 xml_major_version, xml_minor_version, xml_micro_version); 22757 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n", 22758 major, minor, micro); 22759 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n"); 22760 printf("***\n"); 22761 printf("*** If you have already installed a sufficiently new version, this error\n"); 22762 printf("*** probably means that the wrong copy of the xml2-config shell script is\n"); 22763 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 22764 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); 22765 printf("*** correct copy of xml2-config. (In this case, you will have to\n"); 22766 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 22767 printf("*** so that the correct libraries are found at run-time))\n"); 22768 } 22769 return 1; 22770} 22771 22772_ACEOF 22773rm -f conftest$ac_exeext 22774if { (ac_try="$ac_link" 22775case "(($ac_try" in 22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22777 *) ac_try_echo=$ac_try;; 22778esac 22779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22780 (eval "$ac_link") 2>&5 22781 ac_status=$? 22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22784 { (case "(($ac_try" in 22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22786 *) ac_try_echo=$ac_try;; 22787esac 22788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22789 (eval "$ac_try") 2>&5 22790 ac_status=$? 22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22792 (exit $ac_status); }; }; then 22793 : 22794else 22795 echo "$as_me: program exited with status $ac_status" >&5 22796echo "$as_me: failed program was:" >&5 22797sed 's/^/| /' conftest.$ac_ext >&5 22798 22799( exit $ac_status ) 22800no_xml=yes 22801fi 22802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22803fi 22804 22805 22806 CPPFLAGS="$ac_save_CPPFLAGS" 22807 LIBS="$ac_save_LIBS" 22808 fi 22809 fi 22810 22811 if test "x$no_xml" = x ; then 22812 { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5 22813echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; } 22814 CFLAGS="$CFLAGS $XML_CPPFLAGS"; LDFLAGS="$LDFLAGS $XML_LIBS" 22815 else 22816 { echo "$as_me:$LINENO: result: no" >&5 22817echo "${ECHO_T}no" >&6; } 22818 if test "$XML2_CONFIG" = "no" ; then 22819 echo "*** The xml2-config script installed by LIBXML could not be found" 22820 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" 22821 echo "*** your path, or set the XML2_CONFIG environment variable to the" 22822 echo "*** full path to xml2-config." 22823 else 22824 if test -f conf.xmltest ; then 22825 : 22826 else 22827 echo "*** Could not run libxml test program, checking why..." 22828 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" 22829 LIBS="$LIBS $XML_LIBS" 22830 cat >conftest.$ac_ext <<_ACEOF 22831/* confdefs.h. */ 22832_ACEOF 22833cat confdefs.h >>conftest.$ac_ext 22834cat >>conftest.$ac_ext <<_ACEOF 22835/* end confdefs.h. */ 22836 22837#include <libxml/xmlversion.h> 22838#include <stdio.h> 22839 22840int 22841main () 22842{ 22843 LIBXML_TEST_VERSION; return 0; 22844 ; 22845 return 0; 22846} 22847_ACEOF 22848rm -f conftest.$ac_objext conftest$ac_exeext 22849if { (ac_try="$ac_link" 22850case "(($ac_try" in 22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22852 *) ac_try_echo=$ac_try;; 22853esac 22854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22855 (eval "$ac_link") 2>conftest.er1 22856 ac_status=$? 22857 grep -v '^ *+' conftest.er1 >conftest.err 22858 rm -f conftest.er1 22859 cat conftest.err >&5 22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22861 (exit $ac_status); } && 22862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22863 { (case "(($ac_try" in 22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22865 *) ac_try_echo=$ac_try;; 22866esac 22867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22868 (eval "$ac_try") 2>&5 22869 ac_status=$? 22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22871 (exit $ac_status); }; } && 22872 { ac_try='test -s conftest$ac_exeext' 22873 { (case "(($ac_try" in 22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22875 *) ac_try_echo=$ac_try;; 22876esac 22877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22878 (eval "$ac_try") 2>&5 22879 ac_status=$? 22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22881 (exit $ac_status); }; }; then 22882 echo "*** The test program compiled, but did not run. This usually means" 22883 echo "*** that the run-time linker is not finding LIBXML or finding the wrong" 22884 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" 22885 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 22886 echo "*** to the installed location Also, make sure you have run ldconfig if that" 22887 echo "*** is required on your system" 22888 echo "***" 22889 echo "*** If you have an old version installed, it is best to remove it, although" 22890 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 22891else 22892 echo "$as_me: failed program was:" >&5 22893sed 's/^/| /' conftest.$ac_ext >&5 22894 22895 echo "*** The test program failed to compile or link. See the file config.log for the" 22896 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" 22897 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" 22898 echo "*** may want to edit the xml2-config script: $XML2_CONFIG" 22899fi 22900 22901rm -f conftest.err conftest.$ac_objext \ 22902 conftest$ac_exeext conftest.$ac_ext 22903 CPPFLAGS="$ac_save_CPPFLAGS" 22904 LIBS="$ac_save_LIBS" 22905 fi 22906 fi 22907 22908 XML_CPPFLAGS="" 22909 XML_LIBS="" 22910 exit 1 22911 fi 22912 22913 22914 rm -f conf.xmltest 22915 22916 22917# ------------------------------------------ 22918# Check ssl library 22919# Original work at: http://autoconf-archive.cryp.to/check_ssl.html 22920# ------------------------------------------ 22921 22922{ echo "$as_me:$LINENO: checking if ssl is wanted" >&5 22923echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6; } 22924 22925# Check whether --with-ssl was given. 22926if test "${with_ssl+set}" = set; then 22927 withval=$with_ssl; { echo "$as_me:$LINENO: result: yes" >&5 22928echo "${ECHO_T}yes" >&6; } 22929 for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do 22930 ssldir="$dir" 22931 if test -f "$dir/include/openssl/ssl.h"; then 22932 found_ssl="yes"; 22933 CFLAGS="$CFLAGS -I$ssldir/include/openssl"; 22934 break; 22935 fi 22936 if test -f "$dir/include/ssl.h"; then 22937 found_ssl="yes"; 22938 CFLAGS="$CFLAGS -I$ssldir/include"; 22939 break 22940 fi 22941 done 22942 if test x_$found_ssl != x_yes; then 22943 { { echo "$as_me:$LINENO: error: Cannot find ssl libraries 22944 Please goto http://www.openssl.org and install OpenSSL or 22945 install it from your os distribution" >&5 22946echo "$as_me: error: Cannot find ssl libraries 22947 Please goto http://www.openssl.org and install OpenSSL or 22948 install it from your os distribution" >&2;} 22949 { (exit 1); exit 1; }; } 22950 else 22951 printf "OpenSSL found in $ssldir\n"; 22952 LIBS="$LIBS -lssl -lcrypto"; 22953 LDFLAGS="$LDFLAGS -L$ssldir/lib"; 22954 22955cat >>confdefs.h <<\_ACEOF 22956#define HAVE_SSL 1 22957_ACEOF 22958 22959 fi 22960 22961else 22962 22963 { echo "$as_me:$LINENO: result: no" >&5 22964echo "${ECHO_T}no" >&6; } 22965 22966fi 22967 22968 22969 22970ac_config_files="$ac_config_files Makefile libcsoap/Makefile nanohttp/Makefile examples/Makefile examples/nanohttp/Makefile examples/csoap/Makefile libcsoap.pc csoap-config" 22971 22972cat >confcache <<\_ACEOF 22973# This file is a shell script that caches the results of configure 22974# tests run on this system so they can be shared between configure 22975# scripts and configure runs, see configure's option --config-cache. 22976# It is not useful on other systems. If it contains results you don't 22977# want to keep, you may remove or edit it. 22978# 22979# config.status only pays attention to the cache file if you give it 22980# the --recheck option to rerun configure. 22981# 22982# `ac_cv_env_foo' variables (set or unset) will be overridden when 22983# loading this file, other *unset* `ac_cv_foo' will be assigned the 22984# following values. 22985 22986_ACEOF 22987 22988# The following way of writing the cache mishandles newlines in values, 22989# but we know of no workaround that is simple, portable, and efficient. 22990# So, we kill variables containing newlines. 22991# Ultrix sh set writes to stderr and can't be redirected directly, 22992# and sets the high bit in the cache file unless we assign to the vars. 22993( 22994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22995 eval ac_val=\$$ac_var 22996 case $ac_val in #( 22997 *${as_nl}*) 22998 case $ac_var in #( 22999 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23000echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23001 esac 23002 case $ac_var in #( 23003 _ | IFS | as_nl) ;; #( 23004 *) $as_unset $ac_var ;; 23005 esac ;; 23006 esac 23007 done 23008 23009 (set) 2>&1 | 23010 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23011 *${as_nl}ac_space=\ *) 23012 # `set' does not quote correctly, so add quotes (double-quote 23013 # substitution turns \\\\ into \\, and sed turns \\ into \). 23014 sed -n \ 23015 "s/'/'\\\\''/g; 23016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23017 ;; #( 23018 *) 23019 # `set' quotes correctly as required by POSIX, so do not add quotes. 23020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23021 ;; 23022 esac | 23023 sort 23024) | 23025 sed ' 23026 /^ac_cv_env_/b end 23027 t clear 23028 :clear 23029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23030 t end 23031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23032 :end' >>confcache 23033if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23034 if test -w "$cache_file"; then 23035 test "x$cache_file" != "x/dev/null" && 23036 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23037echo "$as_me: updating cache $cache_file" >&6;} 23038 cat confcache >$cache_file 23039 else 23040 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23041echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23042 fi 23043fi 23044rm -f confcache 23045 23046test "x$prefix" = xNONE && prefix=$ac_default_prefix 23047# Let make expand exec_prefix. 23048test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23049 23050DEFS=-DHAVE_CONFIG_H 23051 23052ac_libobjs= 23053ac_ltlibobjs= 23054for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23055 # 1. Remove the extension, and $U if already installed. 23056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23057 ac_i=`echo "$ac_i" | sed "$ac_script"` 23058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23059 # will be set to the directory where LIBOBJS objects are built. 23060 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23061 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23062done 23063LIBOBJS=$ac_libobjs 23064 23065LTLIBOBJS=$ac_ltlibobjs 23066 23067 23068if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23069 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23070Usually this means the macro was only invoked conditionally." >&5 23071echo "$as_me: error: conditional \"AMDEP\" was never defined. 23072Usually this means the macro was only invoked conditionally." >&2;} 23073 { (exit 1); exit 1; }; } 23074fi 23075if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23076 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23077Usually this means the macro was only invoked conditionally." >&5 23078echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23079Usually this means the macro was only invoked conditionally." >&2;} 23080 { (exit 1); exit 1; }; } 23081fi 23082if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23084Usually this means the macro was only invoked conditionally." >&5 23085echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23086Usually this means the macro was only invoked conditionally." >&2;} 23087 { (exit 1); exit 1; }; } 23088fi 23089 23090: ${CONFIG_STATUS=./config.status} 23091ac_clean_files_save=$ac_clean_files 23092ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23093{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23094echo "$as_me: creating $CONFIG_STATUS" >&6;} 23095cat >$CONFIG_STATUS <<_ACEOF 23096#! $SHELL 23097# Generated by $as_me. 23098# Run this file to recreate the current configuration. 23099# Compiler output produced by configure, useful for debugging 23100# configure, is in config.log if it exists. 23101 23102debug=false 23103ac_cs_recheck=false 23104ac_cs_silent=false 23105SHELL=\${CONFIG_SHELL-$SHELL} 23106_ACEOF 23107 23108cat >>$CONFIG_STATUS <<\_ACEOF 23109## --------------------- ## 23110## M4sh Initialization. ## 23111## --------------------- ## 23112 23113# Be Bourne compatible 23114if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23115 emulate sh 23116 NULLCMD=: 23117 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23118 # is contrary to our usage. Disable this feature. 23119 alias -g '${1+"$@"}'='"$@"' 23120 setopt NO_GLOB_SUBST 23121else 23122 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23123fi 23124BIN_SH=xpg4; export BIN_SH # for Tru64 23125DUALCASE=1; export DUALCASE # for MKS sh 23126 23127 23128# PATH needs CR 23129# Avoid depending upon Character Ranges. 23130as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23131as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23132as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23133as_cr_digits='0123456789' 23134as_cr_alnum=$as_cr_Letters$as_cr_digits 23135 23136# The user is always right. 23137if test "${PATH_SEPARATOR+set}" != set; then 23138 echo "#! /bin/sh" >conf$$.sh 23139 echo "exit 0" >>conf$$.sh 23140 chmod +x conf$$.sh 23141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23142 PATH_SEPARATOR=';' 23143 else 23144 PATH_SEPARATOR=: 23145 fi 23146 rm -f conf$$.sh 23147fi 23148 23149# Support unset when possible. 23150if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23151 as_unset=unset 23152else 23153 as_unset=false 23154fi 23155 23156 23157# IFS 23158# We need space, tab and new line, in precisely that order. Quoting is 23159# there to prevent editors from complaining about space-tab. 23160# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23161# splitting by setting IFS to empty value.) 23162as_nl=' 23163' 23164IFS=" "" $as_nl" 23165 23166# Find who we are. Look in the path if we contain no directory separator. 23167case $0 in 23168 *[\\/]* ) as_myself=$0 ;; 23169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23170for as_dir in $PATH 23171do 23172 IFS=$as_save_IFS 23173 test -z "$as_dir" && as_dir=. 23174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23175done 23176IFS=$as_save_IFS 23177 23178 ;; 23179esac 23180# We did not find ourselves, most probably we were run as `sh COMMAND' 23181# in which case we are not to be found in the path. 23182if test "x$as_myself" = x; then 23183 as_myself=$0 23184fi 23185if test ! -f "$as_myself"; then 23186 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23187 { (exit 1); exit 1; } 23188fi 23189 23190# Work around bugs in pre-3.0 UWIN ksh. 23191for as_var in ENV MAIL MAILPATH 23192do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23193done 23194PS1='$ ' 23195PS2='> ' 23196PS4='+ ' 23197 23198# NLS nuisances. 23199for as_var in \ 23200 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23201 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23202 LC_TELEPHONE LC_TIME 23203do 23204 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23205 eval $as_var=C; export $as_var 23206 else 23207 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23208 fi 23209done 23210 23211# Required to use basename. 23212if expr a : '\(a\)' >/dev/null 2>&1 && 23213 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23214 as_expr=expr 23215else 23216 as_expr=false 23217fi 23218 23219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23220 as_basename=basename 23221else 23222 as_basename=false 23223fi 23224 23225 23226# Name of the executable. 23227as_me=`$as_basename -- "$0" || 23228$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23229 X"$0" : 'X\(//\)$' \| \ 23230 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23231echo X/"$0" | 23232 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23233 s//\1/ 23234 q 23235 } 23236 /^X\/\(\/\/\)$/{ 23237 s//\1/ 23238 q 23239 } 23240 /^X\/\(\/\).*/{ 23241 s//\1/ 23242 q 23243 } 23244 s/.*/./; q'` 23245 23246# CDPATH. 23247$as_unset CDPATH 23248 23249 23250 23251 as_lineno_1=$LINENO 23252 as_lineno_2=$LINENO 23253 test "x$as_lineno_1" != "x$as_lineno_2" && 23254 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23255 23256 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23257 # uniformly replaced by the line number. The first 'sed' inserts a 23258 # line-number line after each line using $LINENO; the second 'sed' 23259 # does the real work. The second script uses 'N' to pair each 23260 # line-number line with the line containing $LINENO, and appends 23261 # trailing '-' during substitution so that $LINENO is not a special 23262 # case at line end. 23263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23264 # scripts with optimization help from Paolo Bonzini. Blame Lee 23265 # E. McMahon (1931-1989) for sed's syntax. :-) 23266 sed -n ' 23267 p 23268 /[$]LINENO/= 23269 ' <$as_myself | 23270 sed ' 23271 s/[$]LINENO.*/&-/ 23272 t lineno 23273 b 23274 :lineno 23275 N 23276 :loop 23277 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23278 t loop 23279 s/-\n.*// 23280 ' >$as_me.lineno && 23281 chmod +x "$as_me.lineno" || 23282 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23283 { (exit 1); exit 1; }; } 23284 23285 # Don't try to exec as it changes $[0], causing all sort of problems 23286 # (the dirname of $[0] is not the place where we might find the 23287 # original and so on. Autoconf is especially sensitive to this). 23288 . "./$as_me.lineno" 23289 # Exit status is that of the last command. 23290 exit 23291} 23292 23293 23294if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23295 as_dirname=dirname 23296else 23297 as_dirname=false 23298fi 23299 23300ECHO_C= ECHO_N= ECHO_T= 23301case `echo -n x` in 23302-n*) 23303 case `echo 'x\c'` in 23304 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23305 *) ECHO_C='\c';; 23306 esac;; 23307*) 23308 ECHO_N='-n';; 23309esac 23310 23311if expr a : '\(a\)' >/dev/null 2>&1 && 23312 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23313 as_expr=expr 23314else 23315 as_expr=false 23316fi 23317 23318rm -f conf$$ conf$$.exe conf$$.file 23319if test -d conf$$.dir; then 23320 rm -f conf$$.dir/conf$$.file 23321else 23322 rm -f conf$$.dir 23323 mkdir conf$$.dir 23324fi 23325echo >conf$$.file 23326if ln -s conf$$.file conf$$ 2>/dev/null; then 23327 as_ln_s='ln -s' 23328 # ... but there are two gotchas: 23329 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23330 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23331 # In both cases, we have to default to `cp -p'. 23332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23333 as_ln_s='cp -p' 23334elif ln conf$$.file conf$$ 2>/dev/null; then 23335 as_ln_s=ln 23336else 23337 as_ln_s='cp -p' 23338fi 23339rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23340rmdir conf$$.dir 2>/dev/null 23341 23342if mkdir -p . 2>/dev/null; then 23343 as_mkdir_p=: 23344else 23345 test -d ./-p && rmdir ./-p 23346 as_mkdir_p=false 23347fi 23348 23349# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23350# systems may use methods other than mode bits to determine executability. 23351cat >conf$$.file <<_ASEOF 23352#! /bin/sh 23353exit 0 23354_ASEOF 23355chmod +x conf$$.file 23356if test -x conf$$.file >/dev/null 2>&1; then 23357 as_executable_p="test -x" 23358else 23359 as_executable_p=: 23360fi 23361rm -f conf$$.file 23362 23363# Sed expression to map a string onto a valid CPP name. 23364as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23365 23366# Sed expression to map a string onto a valid variable name. 23367as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23368 23369 23370exec 6>&1 23371 23372# Save the log message, to keep $[0] and so on meaningful, and to 23373# report actual input values of CONFIG_FILES etc. instead of their 23374# values after options handling. 23375ac_log=" 23376This file was extended by csoap $as_me 1.1.0, which was 23377generated by GNU Autoconf 2.59e. Invocation command line was 23378 23379 CONFIG_FILES = $CONFIG_FILES 23380 CONFIG_HEADERS = $CONFIG_HEADERS 23381 CONFIG_LINKS = $CONFIG_LINKS 23382 CONFIG_COMMANDS = $CONFIG_COMMANDS 23383 $ $0 $@ 23384 23385on `(hostname || uname -n) 2>/dev/null | sed 1q` 23386" 23387 23388_ACEOF 23389 23390cat >>$CONFIG_STATUS <<_ACEOF 23391# Files that config.status was made for. 23392config_files="$ac_config_files" 23393config_headers="$ac_config_headers" 23394config_commands="$ac_config_commands" 23395 23396_ACEOF 23397 23398cat >>$CONFIG_STATUS <<\_ACEOF 23399ac_cs_usage="\ 23400\`$as_me' instantiates files from templates according to the 23401current configuration. 23402 23403Usage: $0 [OPTIONS] [FILE]... 23404 23405 -h, --help print this help, then exit 23406 -V, --version print version number, then exit 23407 -q, --quiet do not print progress messages 23408 -d, --debug don't remove temporary files 23409 --recheck update $as_me by reconfiguring in the same conditions 23410 --file=FILE[:TEMPLATE] 23411 instantiate the configuration file FILE 23412 --header=FILE[:TEMPLATE] 23413 instantiate the configuration header FILE 23414 23415Configuration files: 23416$config_files 23417 23418Configuration headers: 23419$config_headers 23420 23421Configuration commands: 23422$config_commands 23423 23424Report bugs to <bug-autoconf@gnu.org>." 23425 23426_ACEOF 23427cat >>$CONFIG_STATUS <<_ACEOF 23428ac_cs_version="\\ 23429csoap config.status 1.1.0 23430configured by $0, generated by GNU Autoconf 2.59e, 23431 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23432 23433Copyright (C) 2006 Free Software Foundation, Inc. 23434This config.status script is free software; the Free Software Foundation 23435gives unlimited permission to copy, distribute and modify it." 23436 23437ac_pwd='$ac_pwd' 23438srcdir='$srcdir' 23439INSTALL='$INSTALL' 23440_ACEOF 23441 23442cat >>$CONFIG_STATUS <<\_ACEOF 23443# If no file are specified by the user, then we need to provide default 23444# value. By we need to know if files were specified by the user. 23445ac_need_defaults=: 23446while test $# != 0 23447do 23448 case $1 in 23449 --*=*) 23450 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23451 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23452 ac_shift=: 23453 ;; 23454 *) 23455 ac_option=$1 23456 ac_optarg=$2 23457 ac_shift=shift 23458 ;; 23459 esac 23460 23461 case $ac_option in 23462 # Handling of the options. 23463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23464 ac_cs_recheck=: ;; 23465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23466 echo "$ac_cs_version"; exit ;; 23467 --debug | --debu | --deb | --de | --d | -d ) 23468 debug=: ;; 23469 --file | --fil | --fi | --f ) 23470 $ac_shift 23471 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23472 ac_need_defaults=false;; 23473 --header | --heade | --head | --hea ) 23474 $ac_shift 23475 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23476 ac_need_defaults=false;; 23477 --he | --h) 23478 # Conflict between --help and --header 23479 { echo "$as_me: error: ambiguous option: $1 23480Try \`$0 --help' for more information." >&2 23481 { (exit 1); exit 1; }; };; 23482 --help | --hel | -h ) 23483 echo "$ac_cs_usage"; exit ;; 23484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23485 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23486 ac_cs_silent=: ;; 23487 23488 # This is an error. 23489 -*) { echo "$as_me: error: unrecognized option: $1 23490Try \`$0 --help' for more information." >&2 23491 { (exit 1); exit 1; }; } ;; 23492 23493 *) ac_config_targets="$ac_config_targets $1" 23494 ac_need_defaults=false ;; 23495 23496 esac 23497 shift 23498done 23499 23500ac_configure_extra_args= 23501 23502if $ac_cs_silent; then 23503 exec 6>/dev/null 23504 ac_configure_extra_args="$ac_configure_extra_args --silent" 23505fi 23506 23507_ACEOF 23508cat >>$CONFIG_STATUS <<_ACEOF 23509if \$ac_cs_recheck; then 23510 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23511 CONFIG_SHELL=$SHELL 23512 export CONFIG_SHELL 23513 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23514fi 23515 23516_ACEOF 23517cat >>$CONFIG_STATUS <<\_ACEOF 23518exec 5>>config.log 23519{ 23520 echo 23521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23522## Running $as_me. ## 23523_ASBOX 23524 echo "$ac_log" 23525} >&5 23526 23527_ACEOF 23528cat >>$CONFIG_STATUS <<_ACEOF 23529# 23530# INIT-COMMANDS 23531# 23532AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23533 23534_ACEOF 23535 23536cat >>$CONFIG_STATUS <<\_ACEOF 23537 23538# Handling of arguments. 23539for ac_config_target in $ac_config_targets 23540do 23541 case $ac_config_target in 23542 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23543 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23545 "libcsoap/Makefile") CONFIG_FILES="$CONFIG_FILES libcsoap/Makefile" ;; 23546 "nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES nanohttp/Makefile" ;; 23547 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 23548 "examples/nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nanohttp/Makefile" ;; 23549 "examples/csoap/Makefile") CONFIG_FILES="$CONFIG_FILES examples/csoap/Makefile" ;; 23550 "libcsoap.pc") CONFIG_FILES="$CONFIG_FILES libcsoap.pc" ;; 23551 "csoap-config") CONFIG_FILES="$CONFIG_FILES csoap-config" ;; 23552 23553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23554echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23555 { (exit 1); exit 1; }; };; 23556 esac 23557done 23558 23559 23560# If the user did not use the arguments to specify the items to instantiate, 23561# then the envvar interface is used. Set only those that are not. 23562# We use the long form for the default assignment because of an extremely 23563# bizarre bug on SunOS 4.1.3. 23564if $ac_need_defaults; then 23565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23568fi 23569 23570# Have a temporary directory for convenience. Make it in the build tree 23571# simply because there is no reason against having it here, and in addition, 23572# creating and moving files from /tmp can sometimes cause problems. 23573# Hook for its removal unless debugging. 23574# Note that there is a small window in which the directory will not be cleaned: 23575# after its creation but before its name has been assigned to `$tmp'. 23576$debug || 23577{ 23578 tmp= 23579 trap 'exit_status=$? 23580 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23581' 0 23582 trap '{ (exit 1); exit 1; }' 1 2 13 15 23583} 23584# Create a (secure) tmp directory for tmp files. 23585 23586{ 23587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23588 test -n "$tmp" && test -d "$tmp" 23589} || 23590{ 23591 tmp=./conf$$-$RANDOM 23592 (umask 077 && mkdir "$tmp") 23593} || 23594{ 23595 echo "$me: cannot create a temporary directory in ." >&2 23596 { (exit 1); exit 1; } 23597} 23598 23599# 23600# Set up the sed scripts for CONFIG_FILES section. 23601# 23602 23603# No need to generate the scripts if there are no CONFIG_FILES. 23604# This happens for instance when ./config.status config.h 23605if test -n "$CONFIG_FILES"; then 23606 23607_ACEOF 23608 23609 23610 23611ac_delim='%!_!# ' 23612for ac_last_try in false false false false false :; do 23613 cat >conf$$subs.sed <<_ACEOF 23614SHELL!$SHELL$ac_delim 23615PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23616PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23617PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23618PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23619PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23620PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23621exec_prefix!$exec_prefix$ac_delim 23622prefix!$prefix$ac_delim 23623program_transform_name!$program_transform_name$ac_delim 23624bindir!$bindir$ac_delim 23625sbindir!$sbindir$ac_delim 23626libexecdir!$libexecdir$ac_delim 23627datarootdir!$datarootdir$ac_delim 23628datadir!$datadir$ac_delim 23629sysconfdir!$sysconfdir$ac_delim 23630sharedstatedir!$sharedstatedir$ac_delim 23631localstatedir!$localstatedir$ac_delim 23632includedir!$includedir$ac_delim 23633oldincludedir!$oldincludedir$ac_delim 23634docdir!$docdir$ac_delim 23635infodir!$infodir$ac_delim 23636htmldir!$htmldir$ac_delim 23637dvidir!$dvidir$ac_delim 23638pdfdir!$pdfdir$ac_delim 23639psdir!$psdir$ac_delim 23640libdir!$libdir$ac_delim 23641localedir!$localedir$ac_delim 23642mandir!$mandir$ac_delim 23643DEFS!$DEFS$ac_delim 23644ECHO_C!$ECHO_C$ac_delim 23645ECHO_N!$ECHO_N$ac_delim 23646ECHO_T!$ECHO_T$ac_delim 23647LIBS!$LIBS$ac_delim 23648build_alias!$build_alias$ac_delim 23649host_alias!$host_alias$ac_delim 23650target_alias!$target_alias$ac_delim 23651INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23652INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23653INSTALL_DATA!$INSTALL_DATA$ac_delim 23654CYGPATH_W!$CYGPATH_W$ac_delim 23655PACKAGE!$PACKAGE$ac_delim 23656VERSION!$VERSION$ac_delim 23657ACLOCAL!$ACLOCAL$ac_delim 23658AUTOCONF!$AUTOCONF$ac_delim 23659AUTOMAKE!$AUTOMAKE$ac_delim 23660AUTOHEADER!$AUTOHEADER$ac_delim 23661MAKEINFO!$MAKEINFO$ac_delim 23662install_sh!$install_sh$ac_delim 23663STRIP!$STRIP$ac_delim 23664INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23665mkdir_p!$mkdir_p$ac_delim 23666AWK!$AWK$ac_delim 23667SET_MAKE!$SET_MAKE$ac_delim 23668am__leading_dot!$am__leading_dot$ac_delim 23669AMTAR!$AMTAR$ac_delim 23670am__tar!$am__tar$ac_delim 23671am__untar!$am__untar$ac_delim 23672CC!$CC$ac_delim 23673CFLAGS!$CFLAGS$ac_delim 23674LDFLAGS!$LDFLAGS$ac_delim 23675CPPFLAGS!$CPPFLAGS$ac_delim 23676ac_ct_CC!$ac_ct_CC$ac_delim 23677EXEEXT!$EXEEXT$ac_delim 23678OBJEXT!$OBJEXT$ac_delim 23679DEPDIR!$DEPDIR$ac_delim 23680am__include!$am__include$ac_delim 23681am__quote!$am__quote$ac_delim 23682AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23683AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23684AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23685CCDEPMODE!$CCDEPMODE$ac_delim 23686am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23687am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23688build!$build$ac_delim 23689build_cpu!$build_cpu$ac_delim 23690build_vendor!$build_vendor$ac_delim 23691build_os!$build_os$ac_delim 23692host!$host$ac_delim 23693host_cpu!$host_cpu$ac_delim 23694host_vendor!$host_vendor$ac_delim 23695host_os!$host_os$ac_delim 23696GREP!$GREP$ac_delim 23697EGREP!$EGREP$ac_delim 23698LN_S!$LN_S$ac_delim 23699ECHO!$ECHO$ac_delim 23700AR!$AR$ac_delim 23701RANLIB!$RANLIB$ac_delim 23702CPP!$CPP$ac_delim 23703CXX!$CXX$ac_delim 23704CXXFLAGS!$CXXFLAGS$ac_delim 23705ac_ct_CXX!$ac_ct_CXX$ac_delim 23706CXXDEPMODE!$CXXDEPMODE$ac_delim 23707am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23708am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23709CXXCPP!$CXXCPP$ac_delim 23710F77!$F77$ac_delim 23711_ACEOF 23712 23713 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23714 break 23715 elif $ac_last_try; then 23716 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23717echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23718 { (exit 1); exit 1; }; } 23719 else 23720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23721 fi 23722done 23723 23724ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23725if test -n "$ac_eof"; then 23726 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23727 ac_eof=`expr $ac_eof + 1` 23728fi 23729 23730cat >>$CONFIG_STATUS <<_ACEOF 23731cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23733_ACEOF 23734sed ' 23735s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23736s/^/s,@/; s/!/@,|#_!!_#|/ 23737:n 23738t n 23739s/'"$ac_delim"'$/,g/; t 23740s/$/\\/; p 23741N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23742' >>$CONFIG_STATUS <conf$$subs.sed 23743rm -f conf$$subs.sed 23744cat >>$CONFIG_STATUS <<_ACEOF 23745CEOF$ac_eof 23746_ACEOF 23747 23748 23749ac_delim='%!_!# ' 23750for ac_last_try in false false false false false :; do 23751 cat >conf$$subs.sed <<_ACEOF 23752FFLAGS!$FFLAGS$ac_delim 23753ac_ct_F77!$ac_ct_F77$ac_delim 23754LIBTOOL!$LIBTOOL$ac_delim 23755csoap_major!$csoap_major$ac_delim 23756csoap_minor!$csoap_minor$ac_delim 23757csoap_patch!$csoap_patch$ac_delim 23758csoap_release!$csoap_release$ac_delim 23759csoap_version!$csoap_version$ac_delim 23760nanohttp_release!$nanohttp_release$ac_delim 23761nanohttp_version!$nanohttp_version$ac_delim 23762LIBOBJS!$LIBOBJS$ac_delim 23763acx_pthread_config!$acx_pthread_config$ac_delim 23764PTHREAD_CC!$PTHREAD_CC$ac_delim 23765PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 23766PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 23767LIBSOCKET!$LIBSOCKET$ac_delim 23768LIBNSL!$LIBNSL$ac_delim 23769XML2_CONFIG!$XML2_CONFIG$ac_delim 23770XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim 23771XML_LIBS!$XML_LIBS$ac_delim 23772LTLIBOBJS!$LTLIBOBJS$ac_delim 23773_ACEOF 23774 23775 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 23776 break 23777 elif $ac_last_try; then 23778 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23779echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23780 { (exit 1); exit 1; }; } 23781 else 23782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23783 fi 23784done 23785 23786ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23787if test -n "$ac_eof"; then 23788 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23789 ac_eof=`expr $ac_eof + 1` 23790fi 23791 23792cat >>$CONFIG_STATUS <<_ACEOF 23793cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23795_ACEOF 23796sed ' 23797s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23798s/^/s,@/; s/!/@,|#_!!_#|/ 23799:n 23800t n 23801s/'"$ac_delim"'$/,g/; t 23802s/$/\\/; p 23803N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23804' >>$CONFIG_STATUS <conf$$subs.sed 23805rm -f conf$$subs.sed 23806cat >>$CONFIG_STATUS <<_ACEOF 23807:end 23808s/|#_!!_#|//g 23809CEOF$ac_eof 23810_ACEOF 23811 23812 23813# VPATH may cause trouble with some makes, so we remove $(srcdir), 23814# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23815# trailing colons and then remove the whole line if VPATH becomes empty 23816# (actually we leave an empty line to preserve line numbers). 23817if test "x$srcdir" = x.; then 23818 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23819s/:*\$(srcdir):*/:/ 23820s/:*\${srcdir}:*/:/ 23821s/:*@srcdir@:*/:/ 23822s/^\([^=]*=[ ]*\):*/\1/ 23823s/:*$// 23824s/^[^=]*=[ ]*$// 23825}' 23826fi 23827 23828cat >>$CONFIG_STATUS <<\_ACEOF 23829fi # test -n "$CONFIG_FILES" 23830 23831 23832for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23833do 23834 case $ac_tag in 23835 :[FHLC]) ac_mode=$ac_tag; continue;; 23836 esac 23837 case $ac_mode$ac_tag in 23838 :[FHL]*:*);; 23839 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23840echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23841 { (exit 1); exit 1; }; };; 23842 :[FH]-) ac_tag=-:-;; 23843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23844 esac 23845 ac_save_IFS=$IFS 23846 IFS=: 23847 set x $ac_tag 23848 IFS=$ac_save_IFS 23849 shift 23850 ac_file=$1 23851 shift 23852 23853 case $ac_mode in 23854 :L) ac_source=$1;; 23855 :[FH]) 23856 ac_file_inputs= 23857 for ac_f 23858 do 23859 case $ac_f in 23860 -) ac_f="$tmp/stdin";; 23861 *) # Look for the file first in the build tree, then in the source tree 23862 # (if the path is not absolute). The absolute path cannot be DOS-style, 23863 # because $ac_f cannot contain `:'. 23864 test -f "$ac_f" || 23865 case $ac_f in 23866 [\\/$]*) false;; 23867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23868 esac || 23869 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23870echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23871 { (exit 1); exit 1; }; };; 23872 esac 23873 ac_file_inputs="$ac_file_inputs $ac_f" 23874 done 23875 23876 # Let's still pretend it is `configure' which instantiates (i.e., don't 23877 # use $as_me), people would be surprised to read: 23878 # /* config.h. Generated by config.status. */ 23879 configure_input="Generated from "`IFS=: 23880 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23881 if test x"$ac_file" != x-; then 23882 configure_input="$ac_file. $configure_input" 23883 { echo "$as_me:$LINENO: creating $ac_file" >&5 23884echo "$as_me: creating $ac_file" >&6;} 23885 fi 23886 23887 case $ac_tag in 23888 *:-:* | *:-) cat >"$tmp/stdin";; 23889 esac 23890 ;; 23891 esac 23892 23893 ac_dir=`$as_dirname -- "$ac_file" || 23894$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23895 X"$ac_file" : 'X\(//\)[^/]' \| \ 23896 X"$ac_file" : 'X\(//\)$' \| \ 23897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23898echo X"$ac_file" | 23899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23900 s//\1/ 23901 q 23902 } 23903 /^X\(\/\/\)[^/].*/{ 23904 s//\1/ 23905 q 23906 } 23907 /^X\(\/\/\)$/{ 23908 s//\1/ 23909 q 23910 } 23911 /^X\(\/\).*/{ 23912 s//\1/ 23913 q 23914 } 23915 s/.*/./; q'` 23916 { as_dir="$ac_dir" 23917 case $as_dir in #( 23918 -*) as_dir=./$as_dir;; 23919 esac 23920 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23921 as_dirs= 23922 while :; do 23923 case $as_dir in #( 23924 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23925 *) as_qdir=$as_dir;; 23926 esac 23927 as_dirs="'$as_qdir' $as_dirs" 23928 as_dir=`$as_dirname -- "$as_dir" || 23929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23930 X"$as_dir" : 'X\(//\)[^/]' \| \ 23931 X"$as_dir" : 'X\(//\)$' \| \ 23932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23933echo X"$as_dir" | 23934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23935 s//\1/ 23936 q 23937 } 23938 /^X\(\/\/\)[^/].*/{ 23939 s//\1/ 23940 q 23941 } 23942 /^X\(\/\/\)$/{ 23943 s//\1/ 23944 q 23945 } 23946 /^X\(\/\).*/{ 23947 s//\1/ 23948 q 23949 } 23950 s/.*/./; q'` 23951 test -d "$as_dir" && break 23952 done 23953 test -z "$as_dirs" || eval "mkdir $as_dirs" 23954 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23955echo "$as_me: error: cannot create directory $as_dir" >&2;} 23956 { (exit 1); exit 1; }; }; } 23957 ac_builddir=. 23958 23959case "$ac_dir" in 23960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23961*) 23962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23963 # A ".." for each directory in $ac_dir_suffix. 23964 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23965 case $ac_top_builddir_sub in 23966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23968 esac ;; 23969esac 23970ac_abs_top_builddir=$ac_pwd 23971ac_abs_builddir=$ac_pwd$ac_dir_suffix 23972# for backward compatibility: 23973ac_top_builddir=$ac_top_build_prefix 23974 23975case $srcdir in 23976 .) # We are building in place. 23977 ac_srcdir=. 23978 ac_top_srcdir=$ac_top_builddir_sub 23979 ac_abs_top_srcdir=$ac_pwd ;; 23980 [\\/]* | ?:[\\/]* ) # Absolute name. 23981 ac_srcdir=$srcdir$ac_dir_suffix; 23982 ac_top_srcdir=$srcdir 23983 ac_abs_top_srcdir=$srcdir ;; 23984 *) # Relative name. 23985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23986 ac_top_srcdir=$ac_top_build_prefix$srcdir 23987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23988esac 23989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23990 23991 23992 case $ac_mode in 23993 :F) 23994 # 23995 # CONFIG_FILE 23996 # 23997 23998 case $INSTALL in 23999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24001 esac 24002_ACEOF 24003 24004cat >>$CONFIG_STATUS <<\_ACEOF 24005# If the template does not know about datarootdir, expand it. 24006# FIXME: This hack should be removed a few years after 2.60. 24007ac_datarootdir_hack=; ac_datarootdir_seen= 24008 24009case `sed -n '/datarootdir/ { 24010 p 24011 q 24012} 24013/@datadir@/p 24014/@docdir@/p 24015/@infodir@/p 24016/@localedir@/p 24017/@mandir@/p 24018' $ac_file_inputs` in 24019*datarootdir*) ac_datarootdir_seen=yes;; 24020*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24021 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24022echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24023_ACEOF 24024cat >>$CONFIG_STATUS <<_ACEOF 24025 ac_datarootdir_hack=' 24026 s&@datadir@&$datadir&g 24027 s&@docdir@&$docdir&g 24028 s&@infodir@&$infodir&g 24029 s&@localedir@&$localedir&g 24030 s&@mandir@&$mandir&g 24031 s&\\\${datarootdir}&$datarootdir&g' ;; 24032esac 24033_ACEOF 24034 24035# Neutralize VPATH when `$srcdir' = `.'. 24036# Shell code in configure.ac might set extrasub. 24037# FIXME: do we really want to maintain this feature? 24038cat >>$CONFIG_STATUS <<_ACEOF 24039 sed "$ac_vpsub 24040$extrasub 24041_ACEOF 24042cat >>$CONFIG_STATUS <<\_ACEOF 24043:t 24044/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24045s&@configure_input@&$configure_input&;t t 24046s&@top_builddir@&$ac_top_builddir_sub&;t t 24047s&@srcdir@&$ac_srcdir&;t t 24048s&@abs_srcdir@&$ac_abs_srcdir&;t t 24049s&@top_srcdir@&$ac_top_srcdir&;t t 24050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24051s&@builddir@&$ac_builddir&;t t 24052s&@abs_builddir@&$ac_abs_builddir&;t t 24053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24054s&@INSTALL@&$ac_INSTALL&;t t 24055$ac_datarootdir_hack 24056" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24057 24058test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24060 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24061which seems to be undefined. Please make sure it is defined." >&5 24062echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24063which seems to be undefined. Please make sure it is defined." >&2;} 24064 24065 rm -f "$tmp/stdin" 24066 case $ac_file in 24067 -) cat "$tmp/out"; rm -f "$tmp/out";; 24068 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24069 esac 24070 ;; 24071 :H) 24072 # 24073 # CONFIG_HEADER 24074 # 24075_ACEOF 24076 24077# Transform confdefs.h into a sed script `conftest.defines', that 24078# substitutes the proper values into config.h.in to produce config.h. 24079rm -f conftest.defines conftest.tail 24080# First, append a space to every undef/define line, to ease matching. 24081echo 's/$/ /' >conftest.defines 24082# Then, protect against being on the right side of a sed subst, or in 24083# an unquoted here document, in config.status. If some macros were 24084# called several times there might be several #defines for the same 24085# symbol, which is useless. But do not sort them, since the last 24086# AC_DEFINE must be honored. 24087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24088# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24089# NAME is the cpp macro being defined, VALUE is the value it is being given. 24090# PARAMS is the parameter list in the macro definition--in most cases, it's 24091# just an empty string. 24092ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24093ac_dB='\\)[ (].*,\\1define\\2' 24094ac_dC=' ' 24095ac_dD=' ,' 24096 24097uniq confdefs.h | 24098 sed -n ' 24099 t rset 24100 :rset 24101 s/^[ ]*#[ ]*define[ ][ ]*// 24102 t ok 24103 d 24104 :ok 24105 s/[\\&,]/\\&/g 24106 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24107 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24108 ' >>conftest.defines 24109 24110# Remove the space that was appended to ease matching. 24111# Then replace #undef with comments. This is necessary, for 24112# example, in the case of _POSIX_SOURCE, which is predefined and required 24113# on some systems where configure will not decide to define it. 24114# (The regexp can be short, since the line contains either #define or #undef.) 24115echo 's/ $// 24116s,^[ #]*u.*,/* & */,' >>conftest.defines 24117 24118# Break up conftest.defines: 24119ac_max_sed_lines=50 24120 24121# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24122# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24123# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24124# et cetera. 24125ac_in='$ac_file_inputs' 24126ac_out='"$tmp/out1"' 24127ac_nxt='"$tmp/out2"' 24128 24129while : 24130do 24131 # Write a here document: 24132 cat >>$CONFIG_STATUS <<_ACEOF 24133 # First, check the format of the line: 24134 cat >"\$tmp/defines.sed" <<\\CEOF 24135/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24136/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24137b 24138:def 24139_ACEOF 24140 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24141 echo 'CEOF 24142 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24143 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24144 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24145 grep . conftest.tail >/dev/null || break 24146 rm -f conftest.defines 24147 mv conftest.tail conftest.defines 24148done 24149rm -f conftest.defines conftest.tail 24150 24151echo "ac_result=$ac_in" >>$CONFIG_STATUS 24152cat >>$CONFIG_STATUS <<\_ACEOF 24153 if test x"$ac_file" != x-; then 24154 echo "/* $configure_input */" >"$tmp/config.h" 24155 cat "$ac_result" >>"$tmp/config.h" 24156 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24158echo "$as_me: $ac_file is unchanged" >&6;} 24159 else 24160 rm -f $ac_file 24161 mv "$tmp/config.h" $ac_file 24162 fi 24163 else 24164 echo "/* $configure_input */" 24165 cat "$ac_result" 24166 fi 24167 rm -f "$tmp/out12" 24168# Compute $ac_file's index in $config_headers. 24169_am_stamp_count=1 24170for _am_header in $config_headers :; do 24171 case $_am_header in 24172 $ac_file | $ac_file:* ) 24173 break ;; 24174 * ) 24175 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24176 esac 24177done 24178echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24179$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24180 X$ac_file : 'X\(//\)[^/]' \| \ 24181 X$ac_file : 'X\(//\)$' \| \ 24182 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24183echo X$ac_file | 24184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24185 s//\1/ 24186 q 24187 } 24188 /^X\(\/\/\)[^/].*/{ 24189 s//\1/ 24190 q 24191 } 24192 /^X\(\/\/\)$/{ 24193 s//\1/ 24194 q 24195 } 24196 /^X\(\/\).*/{ 24197 s//\1/ 24198 q 24199 } 24200 s/.*/./; q'`/stamp-h$_am_stamp_count 24201 ;; 24202 24203 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24204echo "$as_me: executing $ac_file commands" >&6;} 24205 ;; 24206 esac 24207 24208 24209 case $ac_file$ac_mode in 24210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24211 # Strip MF so we end up with the name of the file. 24212 mf=`echo "$mf" | sed -e 's/:.*$//'` 24213 # Check whether this is an Automake generated Makefile or not. 24214 # We used to match only the files named `Makefile.in', but 24215 # some people rename them; so instead we look at the file content. 24216 # Grep'ing the first line is not enough: some people post-process 24217 # each Makefile.in and add a new line on top of each file to say so. 24218 # So let's grep whole file. 24219 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24220 dirpart=`$as_dirname -- "$mf" || 24221$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24222 X"$mf" : 'X\(//\)[^/]' \| \ 24223 X"$mf" : 'X\(//\)$' \| \ 24224 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24225echo X"$mf" | 24226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24227 s//\1/ 24228 q 24229 } 24230 /^X\(\/\/\)[^/].*/{ 24231 s//\1/ 24232 q 24233 } 24234 /^X\(\/\/\)$/{ 24235 s//\1/ 24236 q 24237 } 24238 /^X\(\/\).*/{ 24239 s//\1/ 24240 q 24241 } 24242 s/.*/./; q'` 24243 else 24244 continue 24245 fi 24246 # Extract the definition of DEPDIR, am__include, and am__quote 24247 # from the Makefile without running `make'. 24248 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24249 test -z "$DEPDIR" && continue 24250 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24251 test -z "am__include" && continue 24252 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24253 # When using ansi2knr, U may be empty or an underscore; expand it 24254 U=`sed -n 's/^U = //p' < "$mf"` 24255 # Find all dependency output files, they are included files with 24256 # $(DEPDIR) in their names. We invoke sed twice because it is the 24257 # simplest approach to changing $(DEPDIR) to its actual value in the 24258 # expansion. 24259 for file in `sed -n " 24260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24262 # Make sure the directory exists. 24263 test -f "$dirpart/$file" && continue 24264 fdir=`$as_dirname -- "$file" || 24265$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24266 X"$file" : 'X\(//\)[^/]' \| \ 24267 X"$file" : 'X\(//\)$' \| \ 24268 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24269echo X"$file" | 24270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24271 s//\1/ 24272 q 24273 } 24274 /^X\(\/\/\)[^/].*/{ 24275 s//\1/ 24276 q 24277 } 24278 /^X\(\/\/\)$/{ 24279 s//\1/ 24280 q 24281 } 24282 /^X\(\/\).*/{ 24283 s//\1/ 24284 q 24285 } 24286 s/.*/./; q'` 24287 { as_dir=$dirpart/$fdir 24288 case $as_dir in #( 24289 -*) as_dir=./$as_dir;; 24290 esac 24291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24292 as_dirs= 24293 while :; do 24294 case $as_dir in #( 24295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24296 *) as_qdir=$as_dir;; 24297 esac 24298 as_dirs="'$as_qdir' $as_dirs" 24299 as_dir=`$as_dirname -- "$as_dir" || 24300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24301 X"$as_dir" : 'X\(//\)[^/]' \| \ 24302 X"$as_dir" : 'X\(//\)$' \| \ 24303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24304echo X"$as_dir" | 24305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24306 s//\1/ 24307 q 24308 } 24309 /^X\(\/\/\)[^/].*/{ 24310 s//\1/ 24311 q 24312 } 24313 /^X\(\/\/\)$/{ 24314 s//\1/ 24315 q 24316 } 24317 /^X\(\/\).*/{ 24318 s//\1/ 24319 q 24320 } 24321 s/.*/./; q'` 24322 test -d "$as_dir" && break 24323 done 24324 test -z "$as_dirs" || eval "mkdir $as_dirs" 24325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24326echo "$as_me: error: cannot create directory $as_dir" >&2;} 24327 { (exit 1); exit 1; }; }; } 24328 # echo "creating $dirpart/$file" 24329 echo '# dummy' > "$dirpart/$file" 24330 done 24331done 24332 ;; 24333 24334 esac 24335done # for ac_tag 24336 24337 24338{ (exit 0); exit 0; } 24339_ACEOF 24340chmod +x $CONFIG_STATUS 24341ac_clean_files=$ac_clean_files_save 24342 24343 24344# configure is writing to config.log, and then calls config.status. 24345# config.status does its own redirection, appending to config.log. 24346# Unfortunately, on DOS this fails, as config.log is still kept open 24347# by configure, so config.status won't be able to write to it; its 24348# output is simply discarded. So we exec the FD to /dev/null, 24349# effectively closing config.log, so it can be properly (re)opened and 24350# appended to by config.status. When coming back to configure, we 24351# need to make the FD available again. 24352if test "$no_create" != yes; then 24353 ac_cs_success=: 24354 ac_config_status_args= 24355 test "$silent" = yes && 24356 ac_config_status_args="$ac_config_status_args --quiet" 24357 exec 5>/dev/null 24358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24359 exec 5>>config.log 24360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24361 # would make configure fail if this is the last instruction. 24362 $ac_cs_success || { (exit 1); exit 1; } 24363fi 24364 24365 24366echo "Configured cSOAP $csoap_major.$csoap_minor.$csoap_patch for installation in $prefix"; 24367 24368 24369