1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 (OpenPKG-CURRENT). 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_default_prefix=/usr/local 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807L2_VERSION_STR 808L2_VERSION_HEX 809PLATFORM 810SET_MAKE 811CC 812CFLAGS 813LDFLAGS 814CPPFLAGS 815ac_ct_CC 816EXEEXT 817OBJEXT 818CPP 819M 820build 821build_cpu 822build_vendor 823build_os 824host 825host_cpu 826host_vendor 827host_os 828GREP 829EGREP 830LN_S 831ECHO 832AR 833RANLIB 834STRIP 835CXX 836CXXFLAGS 837ac_ct_CXX 838CXXCPP 839F77 840FFLAGS 841ac_ct_F77 842LIBTOOL 843BISON 844FLEX 845LIBOBJS 846LTLIBOBJS' 847ac_subst_files='' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856CPP 857CXX 858CXXFLAGS 859CCC 860CXXCPP 861F77 862FFLAGS' 863 864 865# Initialize some variables set by options. 866ac_init_help= 867ac_init_version=false 868# The variables have the same names as the options, with 869# dashes changed to underlines. 870cache_file=/dev/null 871exec_prefix=NONE 872no_create= 873no_recursion= 874prefix=NONE 875program_prefix=NONE 876program_suffix=NONE 877program_transform_name=s,x,x, 878silent= 879site= 880srcdir= 881verbose= 882x_includes=NONE 883x_libraries=NONE 884 885# Installation directory options. 886# These are left unexpanded so users can "make install exec_prefix=/foo" 887# and all the variables that are supposed to be based on exec_prefix 888# by default will actually change. 889# Use braces instead of parens because sh, perl, etc. also accept them. 890# (The list follows the same order as the GNU Coding Standards.) 891bindir='${exec_prefix}/bin' 892sbindir='${exec_prefix}/sbin' 893libexecdir='${exec_prefix}/libexec' 894datarootdir='${prefix}/share' 895datadir='${datarootdir}' 896sysconfdir='${prefix}/etc' 897sharedstatedir='${prefix}/com' 898localstatedir='${prefix}/var' 899includedir='${prefix}/include' 900oldincludedir='/usr/include' 901docdir='${datarootdir}/doc/${PACKAGE}' 902infodir='${datarootdir}/info' 903htmldir='${docdir}' 904dvidir='${docdir}' 905pdfdir='${docdir}' 906psdir='${docdir}' 907libdir='${exec_prefix}/lib' 908localedir='${datarootdir}/locale' 909mandir='${datarootdir}/man' 910 911ac_prev= 912ac_dashdash= 913for ac_option 914do 915 # If the previous option needs an argument, assign it. 916 if test -n "$ac_prev"; then 917 eval $ac_prev=\$ac_option 918 ac_prev= 919 continue 920 fi 921 922 case $ac_option in 923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 969 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 970 { (exit 1); exit 1; }; } 971 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 972 eval enable_$ac_feature=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 988 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 989 { (exit 1); exit 1; }; } 990 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 991 eval enable_$ac_feature=\$ac_optarg ;; 992 993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 995 | --exec | --exe | --ex) 996 ac_prev=exec_prefix ;; 997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 999 | --exec=* | --exe=* | --ex=*) 1000 exec_prefix=$ac_optarg ;; 1001 1002 -gas | --gas | --ga | --g) 1003 # Obsolete; use --with-gas. 1004 with_gas=yes ;; 1005 1006 -help | --help | --hel | --he | -h) 1007 ac_init_help=long ;; 1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1009 ac_init_help=recursive ;; 1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1011 ac_init_help=short ;; 1012 1013 -host | --host | --hos | --ho) 1014 ac_prev=host_alias ;; 1015 -host=* | --host=* | --hos=* | --ho=*) 1016 host_alias=$ac_optarg ;; 1017 1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1019 ac_prev=htmldir ;; 1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1021 | --ht=*) 1022 htmldir=$ac_optarg ;; 1023 1024 -includedir | --includedir | --includedi | --included | --include \ 1025 | --includ | --inclu | --incl | --inc) 1026 ac_prev=includedir ;; 1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1028 | --includ=* | --inclu=* | --incl=* | --inc=*) 1029 includedir=$ac_optarg ;; 1030 1031 -infodir | --infodir | --infodi | --infod | --info | --inf) 1032 ac_prev=infodir ;; 1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1034 infodir=$ac_optarg ;; 1035 1036 -libdir | --libdir | --libdi | --libd) 1037 ac_prev=libdir ;; 1038 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1039 libdir=$ac_optarg ;; 1040 1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1042 | --libexe | --libex | --libe) 1043 ac_prev=libexecdir ;; 1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1045 | --libexe=* | --libex=* | --libe=*) 1046 libexecdir=$ac_optarg ;; 1047 1048 -localedir | --localedir | --localedi | --localed | --locale) 1049 ac_prev=localedir ;; 1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1051 localedir=$ac_optarg ;; 1052 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1054 | --localstate | --localstat | --localsta | --localst | --locals) 1055 ac_prev=localstatedir ;; 1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1058 localstatedir=$ac_optarg ;; 1059 1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1061 ac_prev=mandir ;; 1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1063 mandir=$ac_optarg ;; 1064 1065 -nfp | --nfp | --nf) 1066 # Obsolete; use --without-fp. 1067 with_fp=no ;; 1068 1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1070 | --no-cr | --no-c | -n) 1071 no_create=yes ;; 1072 1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1075 no_recursion=yes ;; 1076 1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1079 | --oldin | --oldi | --old | --ol | --o) 1080 ac_prev=oldincludedir ;; 1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1084 oldincludedir=$ac_optarg ;; 1085 1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1087 ac_prev=prefix ;; 1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1089 prefix=$ac_optarg ;; 1090 1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1092 | --program-pre | --program-pr | --program-p) 1093 ac_prev=program_prefix ;; 1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1096 program_prefix=$ac_optarg ;; 1097 1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1099 | --program-suf | --program-su | --program-s) 1100 ac_prev=program_suffix ;; 1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1103 program_suffix=$ac_optarg ;; 1104 1105 -program-transform-name | --program-transform-name \ 1106 | --program-transform-nam | --program-transform-na \ 1107 | --program-transform-n | --program-transform- \ 1108 | --program-transform | --program-transfor \ 1109 | --program-transfo | --program-transf \ 1110 | --program-trans | --program-tran \ 1111 | --progr-tra | --program-tr | --program-t) 1112 ac_prev=program_transform_name ;; 1113 -program-transform-name=* | --program-transform-name=* \ 1114 | --program-transform-nam=* | --program-transform-na=* \ 1115 | --program-transform-n=* | --program-transform-=* \ 1116 | --program-transform=* | --program-transfor=* \ 1117 | --program-transfo=* | --program-transf=* \ 1118 | --program-trans=* | --program-tran=* \ 1119 | --progr-tra=* | --program-tr=* | --program-t=*) 1120 program_transform_name=$ac_optarg ;; 1121 1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1123 ac_prev=pdfdir ;; 1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1125 pdfdir=$ac_optarg ;; 1126 1127 -psdir | --psdir | --psdi | --psd | --ps) 1128 ac_prev=psdir ;; 1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1130 psdir=$ac_optarg ;; 1131 1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1133 | -silent | --silent | --silen | --sile | --sil) 1134 silent=yes ;; 1135 1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1137 ac_prev=sbindir ;; 1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1139 | --sbi=* | --sb=*) 1140 sbindir=$ac_optarg ;; 1141 1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1144 | --sharedst | --shareds | --shared | --share | --shar \ 1145 | --sha | --sh) 1146 ac_prev=sharedstatedir ;; 1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1150 | --sha=* | --sh=*) 1151 sharedstatedir=$ac_optarg ;; 1152 1153 -site | --site | --sit) 1154 ac_prev=site ;; 1155 -site=* | --site=* | --sit=*) 1156 site=$ac_optarg ;; 1157 1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1159 ac_prev=srcdir ;; 1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1161 srcdir=$ac_optarg ;; 1162 1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1164 | --syscon | --sysco | --sysc | --sys | --sy) 1165 ac_prev=sysconfdir ;; 1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1168 sysconfdir=$ac_optarg ;; 1169 1170 -target | --target | --targe | --targ | --tar | --ta | --t) 1171 ac_prev=target_alias ;; 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1173 target_alias=$ac_optarg ;; 1174 1175 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1176 verbose=yes ;; 1177 1178 -version | --version | --versio | --versi | --vers | -V) 1179 ac_init_version=: ;; 1180 1181 -with-* | --with-*) 1182 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 { echo "$as_me: error: invalid package name: $ac_package" >&2 1186 { (exit 1); exit 1; }; } 1187 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1188 eval with_$ac_package=\$ac_optarg ;; 1189 1190 -without-* | --without-*) 1191 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 { echo "$as_me: error: invalid package name: $ac_package" >&2 1195 { (exit 1); exit 1; }; } 1196 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1197 eval with_$ac_package=no ;; 1198 1199 --x) 1200 # Obsolete; use --with-x. 1201 with_x=yes ;; 1202 1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1204 | --x-incl | --x-inc | --x-in | --x-i) 1205 ac_prev=x_includes ;; 1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1208 x_includes=$ac_optarg ;; 1209 1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1212 ac_prev=x_libraries ;; 1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1215 x_libraries=$ac_optarg ;; 1216 1217 -*) { echo "$as_me: error: unrecognized option: $ac_option 1218Try \`$0 --help' for more information." >&2 1219 { (exit 1); exit 1; }; } 1220 ;; 1221 1222 *=*) 1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1227 { (exit 1); exit 1; }; } 1228 eval $ac_envvar=\$ac_optarg 1229 export $ac_envvar ;; 1230 1231 *) 1232 # FIXME: should be removed in autoconf 3.0. 1233 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1237 ;; 1238 1239 esac 1240done 1241 1242if test -n "$ac_prev"; then 1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1244 { echo "$as_me: error: missing argument to $ac_option" >&2 1245 { (exit 1); exit 1; }; } 1246fi 1247 1248# Be sure to have absolute directory names. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253do 1254 eval ac_val=\$$ac_var 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1260 { (exit 1); exit 1; }; } 1261done 1262 1263# There might be people who depend on the old broken behavior: `$host' 1264# used to hold the argument of --host etc. 1265# FIXME: To remove some day. 1266build=$build_alias 1267host=$host_alias 1268target=$target_alias 1269 1270# FIXME: To remove some day. 1271if test "x$host_alias" != x; then 1272 if test "x$build_alias" = x; then 1273 cross_compiling=maybe 1274 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1275 If a cross compiler is detected then cross compile mode will be used." >&2 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 { echo "$as_me: error: Working directory cannot be determined" >&2 1291 { (exit 1); exit 1; }; } 1292test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1293 { echo "$as_me: error: pwd does not report name of working directory" >&2 1294 { (exit 1); exit 1; }; } 1295 1296 1297# Find the source files, if location was not specified. 1298if test -z "$srcdir"; then 1299 ac_srcdir_defaulted=yes 1300 # Try the directory containing this script, then the parent directory. 1301 ac_confdir=`$as_dirname -- "$0" || 1302$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1303 X"$0" : 'X\(//\)[^/]' \| \ 1304 X"$0" : 'X\(//\)$' \| \ 1305 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1306echo X"$0" | 1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)[^/].*/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\).*/{ 1320 s//\1/ 1321 q 1322 } 1323 s/.*/./; q'` 1324 srcdir=$ac_confdir 1325 if test ! -r "$srcdir/$ac_unique_file"; then 1326 srcdir=.. 1327 fi 1328else 1329 ac_srcdir_defaulted=no 1330fi 1331if test ! -r "$srcdir/$ac_unique_file"; then 1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1333 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1334 { (exit 1); exit 1; }; } 1335fi 1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1339 { (exit 1); exit 1; }; } 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures this package to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-debug build for debugging (default=no) 1436 --enable-maintainer enable maintainer build mode (default=no) 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-static[=PKGS] build static libraries [default=yes] 1439 --enable-fast-install[=PKGS] 1440 optimize for fast installation [default=yes] 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 1443Optional Packages: 1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1447 --with-pic try to use only PIC/non-PIC objects [default=use 1448 both] 1449 --with-tags[=TAGS] include additional configurations [automatic] 1450 --with-dmalloc[=DIR] build with external Dmalloc library (default=no) 1451 1452Some influential environment variables: 1453 CC C compiler command 1454 CFLAGS C compiler flags 1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1456 nonstandard directory <lib dir> 1457 LIBS libraries to pass to the linker, e.g. -l<library> 1458 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1459 you have headers in a nonstandard directory <include dir> 1460 CPP C preprocessor 1461 CXX C++ compiler command 1462 CXXFLAGS C++ compiler flags 1463 CXXCPP C++ preprocessor 1464 F77 Fortran 77 compiler command 1465 FFLAGS Fortran 77 compiler flags 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470_ACEOF 1471ac_status=$? 1472fi 1473 1474if test "$ac_init_help" = "recursive"; then 1475 # If there are subdirs, report their specific --help. 1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1477 test -d "$ac_dir" || continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530configure 1531generated by GNU Autoconf 2.61 (OpenPKG-CURRENT) 1532 1533Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15342002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1535This configure script is free software; the Free Software Foundation 1536gives unlimited permission to copy, distribute and modify it. 1537_ACEOF 1538 exit 1539fi 1540cat >config.log <<_ACEOF 1541This file contains any messages produced by compilers while 1542running configure, to aid debugging if configure makes a mistake. 1543 1544It was created by $as_me, which was 1545generated by GNU Autoconf 2.61 (OpenPKG-CURRENT). Invocation command line was 1546 1547 $ $0 $@ 1548 1549_ACEOF 1550exec 5>>config.log 1551{ 1552cat <<_ASUNAME 1553## --------- ## 1554## Platform. ## 1555## --------- ## 1556 1557hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1558uname -m = `(uname -m) 2>/dev/null || echo unknown` 1559uname -r = `(uname -r) 2>/dev/null || echo unknown` 1560uname -s = `(uname -s) 2>/dev/null || echo unknown` 1561uname -v = `(uname -v) 2>/dev/null || echo unknown` 1562 1563/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1564/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1565 1566/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1567/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1568/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1569/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1570/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1571/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1572/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1573 1574_ASUNAME 1575 1576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1577for as_dir in $PATH 1578do 1579 IFS=$as_save_IFS 1580 test -z "$as_dir" && as_dir=. 1581 echo "PATH: $as_dir" 1582done 1583IFS=$as_save_IFS 1584 1585} >&5 1586 1587cat >&5 <<_ACEOF 1588 1589 1590## ----------- ## 1591## Core tests. ## 1592## ----------- ## 1593 1594_ACEOF 1595 1596 1597# Keep a trace of the command line. 1598# Strip out --no-create and --no-recursion so they do not pile up. 1599# Strip out --silent because we don't want to record it for future runs. 1600# Also quote any args containing shell meta-characters. 1601# Make two passes to allow for proper duplicate-argument suppression. 1602ac_configure_args= 1603ac_configure_args0= 1604ac_configure_args1= 1605ac_must_keep_next=false 1606for ac_pass in 1 2 1607do 1608 for ac_arg 1609 do 1610 case $ac_arg in 1611 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1613 | -silent | --silent | --silen | --sile | --sil) 1614 continue ;; 1615 *\'*) 1616 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1617 esac 1618 case $ac_pass in 1619 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1620 2) 1621 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1622 if test $ac_must_keep_next = true; then 1623 ac_must_keep_next=false # Got value, back to normal. 1624 else 1625 case $ac_arg in 1626 *=* | --config-cache | -C | -disable-* | --disable-* \ 1627 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1628 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1629 | -with-* | --with-* | -without-* | --without-* | --x) 1630 case "$ac_configure_args0 " in 1631 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1632 esac 1633 ;; 1634 -* ) ac_must_keep_next=true ;; 1635 esac 1636 fi 1637 ac_configure_args="$ac_configure_args '$ac_arg'" 1638 ;; 1639 esac 1640 done 1641done 1642$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1643$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1644 1645# When interrupted or exit'd, cleanup temporary files, and complete 1646# config.log. We remove comments because anyway the quotes in there 1647# would cause problems or look ugly. 1648# WARNING: Use '\'' to represent an apostrophe within the trap. 1649# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1650trap 'exit_status=$? 1651 # Save into config.log some information that might help in debugging. 1652 { 1653 echo 1654 1655 cat <<\_ASBOX 1656## ---------------- ## 1657## Cache variables. ## 1658## ---------------- ## 1659_ASBOX 1660 echo 1661 # The following way of writing the cache mishandles newlines in values, 1662( 1663 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1664 eval ac_val=\$$ac_var 1665 case $ac_val in #( 1666 *${as_nl}*) 1667 case $ac_var in #( 1668 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1669echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1670 esac 1671 case $ac_var in #( 1672 _ | IFS | as_nl) ;; #( 1673 *) $as_unset $ac_var ;; 1674 esac ;; 1675 esac 1676 done 1677 (set) 2>&1 | 1678 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1679 *${as_nl}ac_space=\ *) 1680 sed -n \ 1681 "s/'\''/'\''\\\\'\'''\''/g; 1682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1683 ;; #( 1684 *) 1685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1686 ;; 1687 esac | 1688 sort 1689) 1690 echo 1691 1692 cat <<\_ASBOX 1693## ----------------- ## 1694## Output variables. ## 1695## ----------------- ## 1696_ASBOX 1697 echo 1698 for ac_var in $ac_subst_vars 1699 do 1700 eval ac_val=\$$ac_var 1701 case $ac_val in 1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1703 esac 1704 echo "$ac_var='\''$ac_val'\''" 1705 done | sort 1706 echo 1707 1708 if test -n "$ac_subst_files"; then 1709 cat <<\_ASBOX 1710## ------------------- ## 1711## File substitutions. ## 1712## ------------------- ## 1713_ASBOX 1714 echo 1715 for ac_var in $ac_subst_files 1716 do 1717 eval ac_val=\$$ac_var 1718 case $ac_val in 1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1720 esac 1721 echo "$ac_var='\''$ac_val'\''" 1722 done | sort 1723 echo 1724 fi 1725 1726 if test -s confdefs.h; then 1727 cat <<\_ASBOX 1728## ----------- ## 1729## confdefs.h. ## 1730## ----------- ## 1731_ASBOX 1732 echo 1733 cat confdefs.h 1734 echo 1735 fi 1736 test "$ac_signal" != 0 && 1737 echo "$as_me: caught signal $ac_signal" 1738 echo "$as_me: exit $exit_status" 1739 } >&5 1740 rm -f core *.core core.conftest.* && 1741 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1742 exit $exit_status 1743' 0 1744for ac_signal in 1 2 13 15; do 1745 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1746done 1747ac_signal=0 1748 1749# confdefs.h avoids OS command line length limits that DEFS can exceed. 1750rm -f -r conftest* confdefs.h 1751 1752# Predefined preprocessor variables. 1753 1754cat >>confdefs.h <<_ACEOF 1755#define PACKAGE_NAME "$PACKAGE_NAME" 1756_ACEOF 1757 1758 1759cat >>confdefs.h <<_ACEOF 1760#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1761_ACEOF 1762 1763 1764cat >>confdefs.h <<_ACEOF 1765#define PACKAGE_VERSION "$PACKAGE_VERSION" 1766_ACEOF 1767 1768 1769cat >>confdefs.h <<_ACEOF 1770#define PACKAGE_STRING "$PACKAGE_STRING" 1771_ACEOF 1772 1773 1774cat >>confdefs.h <<_ACEOF 1775#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1776_ACEOF 1777 1778 1779# Let the site file select an alternate cache file if it wants to. 1780# Prefer explicitly selected file to automatically selected ones. 1781if test -n "$CONFIG_SITE"; then 1782 set x "$CONFIG_SITE" 1783elif test "x$prefix" != xNONE; then 1784 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1785else 1786 set x "$ac_default_prefix/share/config.site" \ 1787 "$ac_default_prefix/etc/config.site" 1788fi 1789shift 1790for ac_site_file 1791do 1792 if test -r "$ac_site_file"; then 1793 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1794echo "$as_me: loading site script $ac_site_file" >&6;} 1795 sed 's/^/| /' "$ac_site_file" >&5 1796 . "$ac_site_file" 1797 fi 1798done 1799 1800if test -r "$cache_file"; then 1801 # Some versions of bash will fail to source /dev/null (special 1802 # files actually), so we avoid doing that. 1803 if test -f "$cache_file"; then 1804 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1805echo "$as_me: loading cache $cache_file" >&6;} 1806 case $cache_file in 1807 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1808 *) . "./$cache_file";; 1809 esac 1810 fi 1811else 1812 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1813echo "$as_me: creating cache $cache_file" >&6;} 1814 >$cache_file 1815fi 1816 1817# Check that the precious variables saved in the cache have kept the same 1818# value. 1819ac_cache_corrupted=false 1820for ac_var in $ac_precious_vars; do 1821 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1822 eval ac_new_set=\$ac_env_${ac_var}_set 1823 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1824 eval ac_new_val=\$ac_env_${ac_var}_value 1825 case $ac_old_set,$ac_new_set in 1826 set,) 1827 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1828echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1829 ac_cache_corrupted=: ;; 1830 ,set) 1831 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1832echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1833 ac_cache_corrupted=: ;; 1834 ,);; 1835 *) 1836 if test "x$ac_old_val" != "x$ac_new_val"; then 1837 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1838echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1839 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1840echo "$as_me: former value: $ac_old_val" >&2;} 1841 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1842echo "$as_me: current value: $ac_new_val" >&2;} 1843 ac_cache_corrupted=: 1844 fi;; 1845 esac 1846 # Pass precious variables to config.status. 1847 if test "$ac_new_set" = set; then 1848 case $ac_new_val in 1849 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1850 *) ac_arg=$ac_var=$ac_new_val ;; 1851 esac 1852 case " $ac_configure_args " in 1853 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1854 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1855 esac 1856 fi 1857done 1858if $ac_cache_corrupted; then 1859 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1860echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1861 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1862echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1863 { (exit 1); exit 1; }; } 1864fi 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882ac_ext=c 1883ac_cpp='$CPP $CPPFLAGS' 1884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1886ac_compiler_gnu=$ac_cv_c_compiler_gnu 1887 1888 1889# configuration header 1890if test ".`echo dummy $@ | grep help`" = .; then 1891 # bootstrapping shtool 1892 ac_prog=$0 1893 ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'` 1894 test ".$ac_srcdir" = ".$ac_prog" && ac_srcdir=. 1895 ac_shtool="$ac_srcdir/shtool" 1896 1897 # find out terminal sequences 1898 TB=`$ac_shtool echo -n -e %B 2>/dev/null` 1899 TN=`$ac_shtool echo -n -e %b 2>/dev/null` 1900 1901 # find out package version 1902 L2_VERSION_STR="`$ac_shtool version -l c -d long $ac_srcdir/l2_version.c`" 1903 1904 1905 # friendly header ;) 1906 if test ".$enable_headline" != .no; then 1907 echo "Configuring ${TB}OSSP l2${TN} (Flexible Logging), Version ${TB}${L2_VERSION_STR}${TN}" 1908 echo "Copyright (c) 2001-2005 The OSSP Project <http://www.ossp.org/> 1909Copyright (c) 2001-2005 Ralf S. Engelschall (rse@engelschall.com) 1910Copyright (c) 2001-2005 Cable & Wireless <http://www.cw.com/>" 1911 fi 1912 1913 # additionally find out hex version 1914 L2_VERSION_HEX="`$ac_shtool version -l c -d hex $ac_srcdir/l2_version.c`" 1915 1916fi 1917 1918 1919 1920if test ".$host" != .NONE && test ".$host" != .; then 1921 PLATFORM="$host" 1922else 1923 PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess` 1924fi 1925PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub $PLATFORM` || exit 1 1926 1927if test ".$enable_subdir" != .yes; then 1928 if test ".$enable_headline" != .no; then 1929 echo "Platform: ${TB}${PLATFORM}${TN}" 1930 fi 1931fi 1932 1933 1934{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1935echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 1936set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1937if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1938 echo $ECHO_N "(cached) $ECHO_C" >&6 1939else 1940 cat >conftest.make <<\_ACEOF 1941SHELL = /bin/sh 1942all: 1943 @echo '@@@%%%=$(MAKE)=@@@%%%' 1944_ACEOF 1945# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1946case `${MAKE-make} -f conftest.make 2>/dev/null` in 1947 *@@@%%%=?*=@@@%%%*) 1948 eval ac_cv_prog_make_${ac_make}_set=yes;; 1949 *) 1950 eval ac_cv_prog_make_${ac_make}_set=no;; 1951esac 1952rm -f conftest.make 1953fi 1954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 1955 { echo "$as_me:$LINENO: result: yes" >&5 1956echo "${ECHO_T}yes" >&6; } 1957 SET_MAKE= 1958else 1959 { echo "$as_me:$LINENO: result: no" >&5 1960echo "${ECHO_T}no" >&6; } 1961 SET_MAKE="MAKE=${MAKE-make}" 1962fi 1963 1964ac_ext=c 1965ac_cpp='$CPP $CPPFLAGS' 1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1968ac_compiler_gnu=$ac_cv_c_compiler_gnu 1969if test -n "$ac_tool_prefix"; then 1970 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1971set dummy ${ac_tool_prefix}gcc; ac_word=$2 1972{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1974if test "${ac_cv_prog_CC+set}" = set; then 1975 echo $ECHO_N "(cached) $ECHO_C" >&6 1976else 1977 if test -n "$CC"; then 1978 ac_cv_prog_CC="$CC" # Let the user override the test. 1979else 1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981for as_dir in $PATH 1982do 1983 IFS=$as_save_IFS 1984 test -z "$as_dir" && as_dir=. 1985 for ac_exec_ext in '' $ac_executable_extensions; do 1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1987 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1989 break 2 1990 fi 1991done 1992done 1993IFS=$as_save_IFS 1994 1995fi 1996fi 1997CC=$ac_cv_prog_CC 1998if test -n "$CC"; then 1999 { echo "$as_me:$LINENO: result: $CC" >&5 2000echo "${ECHO_T}$CC" >&6; } 2001else 2002 { echo "$as_me:$LINENO: result: no" >&5 2003echo "${ECHO_T}no" >&6; } 2004fi 2005 2006 2007fi 2008if test -z "$ac_cv_prog_CC"; then 2009 ac_ct_CC=$CC 2010 # Extract the first word of "gcc", so it can be a program name with args. 2011set dummy gcc; ac_word=$2 2012{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2015 echo $ECHO_N "(cached) $ECHO_C" >&6 2016else 2017 if test -n "$ac_ct_CC"; then 2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2019else 2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2021for as_dir in $PATH 2022do 2023 IFS=$as_save_IFS 2024 test -z "$as_dir" && as_dir=. 2025 for ac_exec_ext in '' $ac_executable_extensions; do 2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2027 ac_cv_prog_ac_ct_CC="gcc" 2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2029 break 2 2030 fi 2031done 2032done 2033IFS=$as_save_IFS 2034 2035fi 2036fi 2037ac_ct_CC=$ac_cv_prog_ac_ct_CC 2038if test -n "$ac_ct_CC"; then 2039 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2040echo "${ECHO_T}$ac_ct_CC" >&6; } 2041else 2042 { echo "$as_me:$LINENO: result: no" >&5 2043echo "${ECHO_T}no" >&6; } 2044fi 2045 2046 if test "x$ac_ct_CC" = x; then 2047 CC="" 2048 else 2049 case $cross_compiling:$ac_tool_warned in 2050yes:) 2051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2052whose name does not start with the host triplet. If you think this 2053configuration is useful to you, please write to autoconf@gnu.org." >&5 2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2055whose name does not start with the host triplet. If you think this 2056configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2057ac_tool_warned=yes ;; 2058esac 2059 CC=$ac_ct_CC 2060 fi 2061else 2062 CC="$ac_cv_prog_CC" 2063fi 2064 2065if test -z "$CC"; then 2066 if test -n "$ac_tool_prefix"; then 2067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2068set dummy ${ac_tool_prefix}cc; ac_word=$2 2069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2071if test "${ac_cv_prog_CC+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073else 2074 if test -n "$CC"; then 2075 ac_cv_prog_CC="$CC" # Let the user override the test. 2076else 2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078for as_dir in $PATH 2079do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2084 ac_cv_prog_CC="${ac_tool_prefix}cc" 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088done 2089done 2090IFS=$as_save_IFS 2091 2092fi 2093fi 2094CC=$ac_cv_prog_CC 2095if test -n "$CC"; then 2096 { echo "$as_me:$LINENO: result: $CC" >&5 2097echo "${ECHO_T}$CC" >&6; } 2098else 2099 { echo "$as_me:$LINENO: result: no" >&5 2100echo "${ECHO_T}no" >&6; } 2101fi 2102 2103 2104 fi 2105fi 2106if test -z "$CC"; then 2107 # Extract the first word of "cc", so it can be a program name with args. 2108set dummy cc; ac_word=$2 2109{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2111if test "${ac_cv_prog_CC+set}" = set; then 2112 echo $ECHO_N "(cached) $ECHO_C" >&6 2113else 2114 if test -n "$CC"; then 2115 ac_cv_prog_CC="$CC" # Let the user override the test. 2116else 2117 ac_prog_rejected=no 2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2119for as_dir in $PATH 2120do 2121 IFS=$as_save_IFS 2122 test -z "$as_dir" && as_dir=. 2123 for ac_exec_ext in '' $ac_executable_extensions; do 2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2126 ac_prog_rejected=yes 2127 continue 2128 fi 2129 ac_cv_prog_CC="cc" 2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2131 break 2 2132 fi 2133done 2134done 2135IFS=$as_save_IFS 2136 2137if test $ac_prog_rejected = yes; then 2138 # We found a bogon in the path, so make sure we never use it. 2139 set dummy $ac_cv_prog_CC 2140 shift 2141 if test $# != 0; then 2142 # We chose a different compiler from the bogus one. 2143 # However, it has the same basename, so the bogon will be chosen 2144 # first if we set CC to just the basename; use the full file name. 2145 shift 2146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2147 fi 2148fi 2149fi 2150fi 2151CC=$ac_cv_prog_CC 2152if test -n "$CC"; then 2153 { echo "$as_me:$LINENO: result: $CC" >&5 2154echo "${ECHO_T}$CC" >&6; } 2155else 2156 { echo "$as_me:$LINENO: result: no" >&5 2157echo "${ECHO_T}no" >&6; } 2158fi 2159 2160 2161fi 2162if test -z "$CC"; then 2163 if test -n "$ac_tool_prefix"; then 2164 for ac_prog in cl.exe 2165 do 2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2168{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2170if test "${ac_cv_prog_CC+set}" = set; then 2171 echo $ECHO_N "(cached) $ECHO_C" >&6 2172else 2173 if test -n "$CC"; then 2174 ac_cv_prog_CC="$CC" # Let the user override the test. 2175else 2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177for as_dir in $PATH 2178do 2179 IFS=$as_save_IFS 2180 test -z "$as_dir" && as_dir=. 2181 for ac_exec_ext in '' $ac_executable_extensions; do 2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2185 break 2 2186 fi 2187done 2188done 2189IFS=$as_save_IFS 2190 2191fi 2192fi 2193CC=$ac_cv_prog_CC 2194if test -n "$CC"; then 2195 { echo "$as_me:$LINENO: result: $CC" >&5 2196echo "${ECHO_T}$CC" >&6; } 2197else 2198 { echo "$as_me:$LINENO: result: no" >&5 2199echo "${ECHO_T}no" >&6; } 2200fi 2201 2202 2203 test -n "$CC" && break 2204 done 2205fi 2206if test -z "$CC"; then 2207 ac_ct_CC=$CC 2208 for ac_prog in cl.exe 2209do 2210 # Extract the first word of "$ac_prog", so it can be a program name with args. 2211set dummy $ac_prog; ac_word=$2 2212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216else 2217 if test -n "$ac_ct_CC"; then 2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2219else 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2227 ac_cv_prog_ac_ct_CC="$ac_prog" 2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2229 break 2 2230 fi 2231done 2232done 2233IFS=$as_save_IFS 2234 2235fi 2236fi 2237ac_ct_CC=$ac_cv_prog_ac_ct_CC 2238if test -n "$ac_ct_CC"; then 2239 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2240echo "${ECHO_T}$ac_ct_CC" >&6; } 2241else 2242 { echo "$as_me:$LINENO: result: no" >&5 2243echo "${ECHO_T}no" >&6; } 2244fi 2245 2246 2247 test -n "$ac_ct_CC" && break 2248done 2249 2250 if test "x$ac_ct_CC" = x; then 2251 CC="" 2252 else 2253 case $cross_compiling:$ac_tool_warned in 2254yes:) 2255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2256whose name does not start with the host triplet. If you think this 2257configuration is useful to you, please write to autoconf@gnu.org." >&5 2258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2259whose name does not start with the host triplet. If you think this 2260configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2261ac_tool_warned=yes ;; 2262esac 2263 CC=$ac_ct_CC 2264 fi 2265fi 2266 2267fi 2268 2269 2270test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2271See \`config.log' for more details." >&5 2272echo "$as_me: error: no acceptable C compiler found in \$PATH 2273See \`config.log' for more details." >&2;} 2274 { (exit 1); exit 1; }; } 2275 2276# Provide some information about the compiler. 2277echo "$as_me:$LINENO: checking for C compiler version" >&5 2278ac_compiler=`set X $ac_compile; echo $2` 2279{ (ac_try="$ac_compiler --version >&5" 2280case "(($ac_try" in 2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2282 *) ac_try_echo=$ac_try;; 2283esac 2284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2285 (eval "$ac_compiler --version >&5") 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } 2289{ (ac_try="$ac_compiler -v >&5" 2290case "(($ac_try" in 2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2292 *) ac_try_echo=$ac_try;; 2293esac 2294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2295 (eval "$ac_compiler -v >&5") 2>&5 2296 ac_status=$? 2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2298 (exit $ac_status); } 2299{ (ac_try="$ac_compiler -V >&5" 2300case "(($ac_try" in 2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2302 *) ac_try_echo=$ac_try;; 2303esac 2304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2305 (eval "$ac_compiler -V >&5") 2>&5 2306 ac_status=$? 2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 (exit $ac_status); } 2309 2310cat >conftest.$ac_ext <<_ACEOF 2311/* confdefs.h. */ 2312_ACEOF 2313cat confdefs.h >>conftest.$ac_ext 2314cat >>conftest.$ac_ext <<_ACEOF 2315/* end confdefs.h. */ 2316 2317int 2318main () 2319{ 2320 2321 ; 2322 return 0; 2323} 2324_ACEOF 2325ac_clean_files_save=$ac_clean_files 2326ac_clean_files="$ac_clean_files a.out a.exe b.out" 2327# Try to create an executable without -o first, disregard a.out. 2328# It will help us diagnose broken compilers, and finding out an intuition 2329# of exeext. 2330{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2331echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2332ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2333# 2334# List of possible output files, starting from the most likely. 2335# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2336# only as a last resort. b.out is created by i960 compilers. 2337ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2338# 2339# The IRIX 6 linker writes into existing files which may not be 2340# executable, retaining their permissions. Remove them first so a 2341# subsequent execution test works. 2342ac_rmfiles= 2343for ac_file in $ac_files 2344do 2345 case $ac_file in 2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2347 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2348 esac 2349done 2350rm -f $ac_rmfiles 2351 2352if { (ac_try="$ac_link_default" 2353case "(($ac_try" in 2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2355 *) ac_try_echo=$ac_try;; 2356esac 2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2358 (eval "$ac_link_default") 2>&5 2359 ac_status=$? 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2361 (exit $ac_status); }; then 2362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2363# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2364# in a Makefile. We should not override ac_cv_exeext if it was cached, 2365# so that the user can short-circuit this test for compilers unknown to 2366# Autoconf. 2367for ac_file in $ac_files '' 2368do 2369 test -f "$ac_file" || continue 2370 case $ac_file in 2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2372 ;; 2373 [ab].out ) 2374 # We found the default executable, but exeext='' is most 2375 # certainly right. 2376 break;; 2377 *.* ) 2378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2379 then :; else 2380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2381 fi 2382 # We set ac_cv_exeext here because the later test for it is not 2383 # safe: cross compilers may not add the suffix if given an `-o' 2384 # argument, so we may need to know it at that point already. 2385 # Even if this section looks crufty: it has the advantage of 2386 # actually working. 2387 break;; 2388 * ) 2389 break;; 2390 esac 2391done 2392test "$ac_cv_exeext" = no && ac_cv_exeext= 2393 2394else 2395 ac_file='' 2396fi 2397 2398{ echo "$as_me:$LINENO: result: $ac_file" >&5 2399echo "${ECHO_T}$ac_file" >&6; } 2400if test -z "$ac_file"; then 2401 echo "$as_me: failed program was:" >&5 2402sed 's/^/| /' conftest.$ac_ext >&5 2403 2404{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2405See \`config.log' for more details." >&5 2406echo "$as_me: error: C compiler cannot create executables 2407See \`config.log' for more details." >&2;} 2408 { (exit 77); exit 77; }; } 2409fi 2410 2411ac_exeext=$ac_cv_exeext 2412 2413# Check that the compiler produces executables we can run. If not, either 2414# the compiler is broken, or we cross compile. 2415{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2416echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2417# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2418# If not cross compiling, check that we can run a simple program. 2419if test "$cross_compiling" != yes; then 2420 if { ac_try='./$ac_file' 2421 { (case "(($ac_try" in 2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2423 *) ac_try_echo=$ac_try;; 2424esac 2425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2426 (eval "$ac_try") 2>&5 2427 ac_status=$? 2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2429 (exit $ac_status); }; }; then 2430 cross_compiling=no 2431 else 2432 if test "$cross_compiling" = maybe; then 2433 cross_compiling=yes 2434 else 2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2436If you meant to cross compile, use \`--host'. 2437See \`config.log' for more details." >&5 2438echo "$as_me: error: cannot run C compiled programs. 2439If you meant to cross compile, use \`--host'. 2440See \`config.log' for more details." >&2;} 2441 { (exit 1); exit 1; }; } 2442 fi 2443 fi 2444fi 2445{ echo "$as_me:$LINENO: result: yes" >&5 2446echo "${ECHO_T}yes" >&6; } 2447 2448rm -f a.out a.exe conftest$ac_cv_exeext b.out 2449ac_clean_files=$ac_clean_files_save 2450# Check that the compiler produces executables we can run. If not, either 2451# the compiler is broken, or we cross compile. 2452{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2453echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2454{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2455echo "${ECHO_T}$cross_compiling" >&6; } 2456 2457{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2458echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2459if { (ac_try="$ac_link" 2460case "(($ac_try" in 2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2462 *) ac_try_echo=$ac_try;; 2463esac 2464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2465 (eval "$ac_link") 2>&5 2466 ac_status=$? 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2468 (exit $ac_status); }; then 2469 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2470# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2471# work properly (i.e., refer to `conftest.exe'), while it won't with 2472# `rm'. 2473for ac_file in conftest.exe conftest conftest.*; do 2474 test -f "$ac_file" || continue 2475 case $ac_file in 2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2478 break;; 2479 * ) break;; 2480 esac 2481done 2482else 2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2484See \`config.log' for more details." >&5 2485echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2486See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488fi 2489 2490rm -f conftest$ac_cv_exeext 2491{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2492echo "${ECHO_T}$ac_cv_exeext" >&6; } 2493 2494rm -f conftest.$ac_ext 2495EXEEXT=$ac_cv_exeext 2496ac_exeext=$EXEEXT 2497{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2498echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2499if test "${ac_cv_objext+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 cat >conftest.$ac_ext <<_ACEOF 2503/* confdefs.h. */ 2504_ACEOF 2505cat confdefs.h >>conftest.$ac_ext 2506cat >>conftest.$ac_ext <<_ACEOF 2507/* end confdefs.h. */ 2508 2509int 2510main () 2511{ 2512 2513 ; 2514 return 0; 2515} 2516_ACEOF 2517rm -f conftest.o conftest.obj 2518if { (ac_try="$ac_compile" 2519case "(($ac_try" in 2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2521 *) ac_try_echo=$ac_try;; 2522esac 2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2524 (eval "$ac_compile") 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); }; then 2528 for ac_file in conftest.o conftest.obj conftest.*; do 2529 test -f "$ac_file" || continue; 2530 case $ac_file in 2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2532 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2533 break;; 2534 esac 2535done 2536else 2537 echo "$as_me: failed program was:" >&5 2538sed 's/^/| /' conftest.$ac_ext >&5 2539 2540{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2541See \`config.log' for more details." >&5 2542echo "$as_me: error: cannot compute suffix of object files: cannot compile 2543See \`config.log' for more details." >&2;} 2544 { (exit 1); exit 1; }; } 2545fi 2546 2547rm -f conftest.$ac_cv_objext conftest.$ac_ext 2548fi 2549{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2550echo "${ECHO_T}$ac_cv_objext" >&6; } 2551OBJEXT=$ac_cv_objext 2552ac_objext=$OBJEXT 2553{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2554echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2555if test "${ac_cv_c_compiler_gnu+set}" = set; then 2556 echo $ECHO_N "(cached) $ECHO_C" >&6 2557else 2558 cat >conftest.$ac_ext <<_ACEOF 2559/* confdefs.h. */ 2560_ACEOF 2561cat confdefs.h >>conftest.$ac_ext 2562cat >>conftest.$ac_ext <<_ACEOF 2563/* end confdefs.h. */ 2564 2565int 2566main () 2567{ 2568#ifndef __GNUC__ 2569 choke me 2570#endif 2571 2572 ; 2573 return 0; 2574} 2575_ACEOF 2576rm -f conftest.$ac_objext 2577if { (ac_try="$ac_compile" 2578case "(($ac_try" in 2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2580 *) ac_try_echo=$ac_try;; 2581esac 2582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2583 (eval "$ac_compile") 2>conftest.er1 2584 ac_status=$? 2585 grep -v '^ *+' conftest.er1 >conftest.err 2586 rm -f conftest.er1 2587 cat conftest.err >&5 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } && { 2590 test -z "$ac_c_werror_flag" || 2591 test ! -s conftest.err 2592 } && test -s conftest.$ac_objext; then 2593 ac_compiler_gnu=yes 2594else 2595 echo "$as_me: failed program was:" >&5 2596sed 's/^/| /' conftest.$ac_ext >&5 2597 2598 ac_compiler_gnu=no 2599fi 2600 2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2602ac_cv_c_compiler_gnu=$ac_compiler_gnu 2603 2604fi 2605{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2606echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2607GCC=`test $ac_compiler_gnu = yes && echo yes` 2608ac_test_CFLAGS=${CFLAGS+set} 2609ac_save_CFLAGS=$CFLAGS 2610{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2611echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2612if test "${ac_cv_prog_cc_g+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 ac_save_c_werror_flag=$ac_c_werror_flag 2616 ac_c_werror_flag=yes 2617 ac_cv_prog_cc_g=no 2618 CFLAGS="-g" 2619 cat >conftest.$ac_ext <<_ACEOF 2620/* confdefs.h. */ 2621_ACEOF 2622cat confdefs.h >>conftest.$ac_ext 2623cat >>conftest.$ac_ext <<_ACEOF 2624/* end confdefs.h. */ 2625 2626int 2627main () 2628{ 2629 2630 ; 2631 return 0; 2632} 2633_ACEOF 2634rm -f conftest.$ac_objext 2635if { (ac_try="$ac_compile" 2636case "(($ac_try" in 2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2638 *) ac_try_echo=$ac_try;; 2639esac 2640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2641 (eval "$ac_compile") 2>conftest.er1 2642 ac_status=$? 2643 grep -v '^ *+' conftest.er1 >conftest.err 2644 rm -f conftest.er1 2645 cat conftest.err >&5 2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2647 (exit $ac_status); } && { 2648 test -z "$ac_c_werror_flag" || 2649 test ! -s conftest.err 2650 } && test -s conftest.$ac_objext; then 2651 ac_cv_prog_cc_g=yes 2652else 2653 echo "$as_me: failed program was:" >&5 2654sed 's/^/| /' conftest.$ac_ext >&5 2655 2656 CFLAGS="" 2657 cat >conftest.$ac_ext <<_ACEOF 2658/* confdefs.h. */ 2659_ACEOF 2660cat confdefs.h >>conftest.$ac_ext 2661cat >>conftest.$ac_ext <<_ACEOF 2662/* end confdefs.h. */ 2663 2664int 2665main () 2666{ 2667 2668 ; 2669 return 0; 2670} 2671_ACEOF 2672rm -f conftest.$ac_objext 2673if { (ac_try="$ac_compile" 2674case "(($ac_try" in 2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2676 *) ac_try_echo=$ac_try;; 2677esac 2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2679 (eval "$ac_compile") 2>conftest.er1 2680 ac_status=$? 2681 grep -v '^ *+' conftest.er1 >conftest.err 2682 rm -f conftest.er1 2683 cat conftest.err >&5 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); } && { 2686 test -z "$ac_c_werror_flag" || 2687 test ! -s conftest.err 2688 } && test -s conftest.$ac_objext; then 2689 : 2690else 2691 echo "$as_me: failed program was:" >&5 2692sed 's/^/| /' conftest.$ac_ext >&5 2693 2694 ac_c_werror_flag=$ac_save_c_werror_flag 2695 CFLAGS="-g" 2696 cat >conftest.$ac_ext <<_ACEOF 2697/* confdefs.h. */ 2698_ACEOF 2699cat confdefs.h >>conftest.$ac_ext 2700cat >>conftest.$ac_ext <<_ACEOF 2701/* end confdefs.h. */ 2702 2703int 2704main () 2705{ 2706 2707 ; 2708 return 0; 2709} 2710_ACEOF 2711rm -f conftest.$ac_objext 2712if { (ac_try="$ac_compile" 2713case "(($ac_try" in 2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2715 *) ac_try_echo=$ac_try;; 2716esac 2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2718 (eval "$ac_compile") 2>conftest.er1 2719 ac_status=$? 2720 grep -v '^ *+' conftest.er1 >conftest.err 2721 rm -f conftest.er1 2722 cat conftest.err >&5 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); } && { 2725 test -z "$ac_c_werror_flag" || 2726 test ! -s conftest.err 2727 } && test -s conftest.$ac_objext; then 2728 ac_cv_prog_cc_g=yes 2729else 2730 echo "$as_me: failed program was:" >&5 2731sed 's/^/| /' conftest.$ac_ext >&5 2732 2733 2734fi 2735 2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2737fi 2738 2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2740fi 2741 2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2743 ac_c_werror_flag=$ac_save_c_werror_flag 2744fi 2745{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2746echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2747if test "$ac_test_CFLAGS" = set; then 2748 CFLAGS=$ac_save_CFLAGS 2749elif test $ac_cv_prog_cc_g = yes; then 2750 if test "$GCC" = yes; then 2751 CFLAGS="-g -O2" 2752 else 2753 CFLAGS="-g" 2754 fi 2755else 2756 if test "$GCC" = yes; then 2757 CFLAGS="-O2" 2758 else 2759 CFLAGS= 2760 fi 2761fi 2762{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2763echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2764if test "${ac_cv_prog_cc_c89+set}" = set; then 2765 echo $ECHO_N "(cached) $ECHO_C" >&6 2766else 2767 ac_cv_prog_cc_c89=no 2768ac_save_CC=$CC 2769cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775#include <stdarg.h> 2776#include <stdio.h> 2777#include <sys/types.h> 2778#include <sys/stat.h> 2779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2780struct buf { int x; }; 2781FILE * (*rcsopen) (struct buf *, struct stat *, int); 2782static char *e (p, i) 2783 char **p; 2784 int i; 2785{ 2786 return p[i]; 2787} 2788static char *f (char * (*g) (char **, int), char **p, ...) 2789{ 2790 char *s; 2791 va_list v; 2792 va_start (v,p); 2793 s = g (p, va_arg (v,int)); 2794 va_end (v); 2795 return s; 2796} 2797 2798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2799 function prototypes and stuff, but not '\xHH' hex character constants. 2800 These don't provoke an error unfortunately, instead are silently treated 2801 as 'x'. The following induces an error, until -std is added to get 2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2803 array size at least. It's necessary to write '\x00'==0 to get something 2804 that's true only with -std. */ 2805int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2806 2807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2808 inside strings and character constants. */ 2809#define FOO(x) 'x' 2810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2811 2812int test (int i, double x); 2813struct s1 {int (*f) (int a);}; 2814struct s2 {int (*f) (double a);}; 2815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2816int argc; 2817char **argv; 2818int 2819main () 2820{ 2821return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2822 ; 2823 return 0; 2824} 2825_ACEOF 2826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2828do 2829 CC="$ac_save_CC $ac_arg" 2830 rm -f conftest.$ac_objext 2831if { (ac_try="$ac_compile" 2832case "(($ac_try" in 2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2834 *) ac_try_echo=$ac_try;; 2835esac 2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2837 (eval "$ac_compile") 2>conftest.er1 2838 ac_status=$? 2839 grep -v '^ *+' conftest.er1 >conftest.err 2840 rm -f conftest.er1 2841 cat conftest.err >&5 2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2843 (exit $ac_status); } && { 2844 test -z "$ac_c_werror_flag" || 2845 test ! -s conftest.err 2846 } && test -s conftest.$ac_objext; then 2847 ac_cv_prog_cc_c89=$ac_arg 2848else 2849 echo "$as_me: failed program was:" >&5 2850sed 's/^/| /' conftest.$ac_ext >&5 2851 2852 2853fi 2854 2855rm -f core conftest.err conftest.$ac_objext 2856 test "x$ac_cv_prog_cc_c89" != "xno" && break 2857done 2858rm -f conftest.$ac_ext 2859CC=$ac_save_CC 2860 2861fi 2862# AC_CACHE_VAL 2863case "x$ac_cv_prog_cc_c89" in 2864 x) 2865 { echo "$as_me:$LINENO: result: none needed" >&5 2866echo "${ECHO_T}none needed" >&6; } ;; 2867 xno) 2868 { echo "$as_me:$LINENO: result: unsupported" >&5 2869echo "${ECHO_T}unsupported" >&6; } ;; 2870 *) 2871 CC="$CC $ac_cv_prog_cc_c89" 2872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2873echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2874esac 2875 2876 2877ac_ext=c 2878ac_cpp='$CPP $CPPFLAGS' 2879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2881ac_compiler_gnu=$ac_cv_c_compiler_gnu 2882 2883ac_ext=c 2884ac_cpp='$CPP $CPPFLAGS' 2885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2887ac_compiler_gnu=$ac_cv_c_compiler_gnu 2888{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2889echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2890# On Suns, sometimes $CPP names a directory. 2891if test -n "$CPP" && test -d "$CPP"; then 2892 CPP= 2893fi 2894if test -z "$CPP"; then 2895 if test "${ac_cv_prog_CPP+set}" = set; then 2896 echo $ECHO_N "(cached) $ECHO_C" >&6 2897else 2898 # Double quotes because CPP needs to be expanded 2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2900 do 2901 ac_preproc_ok=false 2902for ac_c_preproc_warn_flag in '' yes 2903do 2904 # Use a header file that comes with gcc, so configuring glibc 2905 # with a fresh cross-compiler works. 2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2907 # <limits.h> exists even on freestanding compilers. 2908 # On the NeXT, cc -E runs the code through the compiler's parser, 2909 # not just through cpp. "Syntax error" is here to catch this case. 2910 cat >conftest.$ac_ext <<_ACEOF 2911/* confdefs.h. */ 2912_ACEOF 2913cat confdefs.h >>conftest.$ac_ext 2914cat >>conftest.$ac_ext <<_ACEOF 2915/* end confdefs.h. */ 2916#ifdef __STDC__ 2917# include <limits.h> 2918#else 2919# include <assert.h> 2920#endif 2921 Syntax error 2922_ACEOF 2923if { (ac_try="$ac_cpp conftest.$ac_ext" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2930 ac_status=$? 2931 grep -v '^ *+' conftest.er1 >conftest.err 2932 rm -f conftest.er1 2933 cat conftest.err >&5 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); } >/dev/null && { 2936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2937 test ! -s conftest.err 2938 }; then 2939 : 2940else 2941 echo "$as_me: failed program was:" >&5 2942sed 's/^/| /' conftest.$ac_ext >&5 2943 2944 # Broken: fails on valid input. 2945continue 2946fi 2947 2948rm -f conftest.err conftest.$ac_ext 2949 2950 # OK, works on sane cases. Now check whether nonexistent headers 2951 # can be detected and how. 2952 cat >conftest.$ac_ext <<_ACEOF 2953/* confdefs.h. */ 2954_ACEOF 2955cat confdefs.h >>conftest.$ac_ext 2956cat >>conftest.$ac_ext <<_ACEOF 2957/* end confdefs.h. */ 2958#include <ac_nonexistent.h> 2959_ACEOF 2960if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.er1 2967 ac_status=$? 2968 grep -v '^ *+' conftest.er1 >conftest.err 2969 rm -f conftest.er1 2970 cat conftest.err >&5 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); } >/dev/null && { 2973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2974 test ! -s conftest.err 2975 }; then 2976 # Broken: success on invalid input. 2977continue 2978else 2979 echo "$as_me: failed program was:" >&5 2980sed 's/^/| /' conftest.$ac_ext >&5 2981 2982 # Passes both tests. 2983ac_preproc_ok=: 2984break 2985fi 2986 2987rm -f conftest.err conftest.$ac_ext 2988 2989done 2990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2991rm -f conftest.err conftest.$ac_ext 2992if $ac_preproc_ok; then 2993 break 2994fi 2995 2996 done 2997 ac_cv_prog_CPP=$CPP 2998 2999fi 3000 CPP=$ac_cv_prog_CPP 3001else 3002 ac_cv_prog_CPP=$CPP 3003fi 3004{ echo "$as_me:$LINENO: result: $CPP" >&5 3005echo "${ECHO_T}$CPP" >&6; } 3006ac_preproc_ok=false 3007for ac_c_preproc_warn_flag in '' yes 3008do 3009 # Use a header file that comes with gcc, so configuring glibc 3010 # with a fresh cross-compiler works. 3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3012 # <limits.h> exists even on freestanding compilers. 3013 # On the NeXT, cc -E runs the code through the compiler's parser, 3014 # not just through cpp. "Syntax error" is here to catch this case. 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021#ifdef __STDC__ 3022# include <limits.h> 3023#else 3024# include <assert.h> 3025#endif 3026 Syntax error 3027_ACEOF 3028if { (ac_try="$ac_cpp conftest.$ac_ext" 3029case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032esac 3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3035 ac_status=$? 3036 grep -v '^ *+' conftest.er1 >conftest.err 3037 rm -f conftest.er1 3038 cat conftest.err >&5 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); } >/dev/null && { 3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3042 test ! -s conftest.err 3043 }; then 3044 : 3045else 3046 echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049 # Broken: fails on valid input. 3050continue 3051fi 3052 3053rm -f conftest.err conftest.$ac_ext 3054 3055 # OK, works on sane cases. Now check whether nonexistent headers 3056 # can be detected and how. 3057 cat >conftest.$ac_ext <<_ACEOF 3058/* confdefs.h. */ 3059_ACEOF 3060cat confdefs.h >>conftest.$ac_ext 3061cat >>conftest.$ac_ext <<_ACEOF 3062/* end confdefs.h. */ 3063#include <ac_nonexistent.h> 3064_ACEOF 3065if { (ac_try="$ac_cpp conftest.$ac_ext" 3066case "(($ac_try" in 3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3068 *) ac_try_echo=$ac_try;; 3069esac 3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3072 ac_status=$? 3073 grep -v '^ *+' conftest.er1 >conftest.err 3074 rm -f conftest.er1 3075 cat conftest.err >&5 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); } >/dev/null && { 3078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3079 test ! -s conftest.err 3080 }; then 3081 # Broken: success on invalid input. 3082continue 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 # Passes both tests. 3088ac_preproc_ok=: 3089break 3090fi 3091 3092rm -f conftest.err conftest.$ac_ext 3093 3094done 3095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3096rm -f conftest.err conftest.$ac_ext 3097if $ac_preproc_ok; then 3098 : 3099else 3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3101See \`config.log' for more details." >&5 3102echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3103See \`config.log' for more details." >&2;} 3104 { (exit 1); exit 1; }; } 3105fi 3106 3107ac_ext=c 3108ac_cpp='$CPP $CPPFLAGS' 3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3111ac_compiler_gnu=$ac_cv_c_compiler_gnu 3112 3113 3114# Check whether --enable-debug was given. 3115if test "${enable_debug+set}" = set; then 3116 enableval=$enable_debug; if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 3117 case "$CFLAGS" in 3118 *-O* ) ;; 3119 * ) CFLAGS="$CFLAGS -O2" ;; 3120 esac 3121 case "$CFLAGS" in 3122 *-g* ) ;; 3123 * ) CFLAGS="$CFLAGS -g" ;; 3124 esac 3125 case "$CFLAGS" in 3126 *-pipe* ) ;; 3127 * ) { echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5 3128echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6; } 3129if test "${ac_cv_compiler_option_pipe+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 3133SAVE_CFLAGS="$CFLAGS" 3134CFLAGS="$CFLAGS -pipe" 3135cat >conftest.$ac_ext <<_ACEOF 3136/* confdefs.h. */ 3137_ACEOF 3138cat confdefs.h >>conftest.$ac_ext 3139cat >>conftest.$ac_ext <<_ACEOF 3140/* end confdefs.h. */ 3141 3142int 3143main () 3144{ 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150rm -f conftest.$ac_objext 3151if { (ac_try="$ac_compile" 3152case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3157 (eval "$ac_compile") 2>conftest.er1 3158 ac_status=$? 3159 grep -v '^ *+' conftest.er1 >conftest.err 3160 rm -f conftest.er1 3161 cat conftest.err >&5 3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); } && { 3164 test -z "$ac_c_werror_flag" || 3165 test ! -s conftest.err 3166 } && test -s conftest.$ac_objext; then 3167 ac_cv_compiler_option_pipe=yes 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172 ac_cv_compiler_option_pipe=no 3173fi 3174 3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3176CFLAGS="$SAVE_CFLAGS" 3177 3178fi 3179if test ".$ac_cv_compiler_option_pipe" = .yes; then 3180 CFLAGS="$CFLAGS -pipe" 3181else 3182 : 3183fi 3184{ echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 3185echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6; } 3186 ;; 3187 esac 3188 { echo "$as_me:$LINENO: checking whether compiler option(s) -DDEBUG work" >&5 3189echo $ECHO_N "checking whether compiler option(s) -DDEBUG work... $ECHO_C" >&6; } 3190if test "${ac_cv_compiler_option_defdbg+set}" = set; then 3191 echo $ECHO_N "(cached) $ECHO_C" >&6 3192else 3193 3194SAVE_CFLAGS="$CFLAGS" 3195CFLAGS="$CFLAGS -DDEBUG" 3196cat >conftest.$ac_ext <<_ACEOF 3197/* confdefs.h. */ 3198_ACEOF 3199cat confdefs.h >>conftest.$ac_ext 3200cat >>conftest.$ac_ext <<_ACEOF 3201/* end confdefs.h. */ 3202 3203int 3204main () 3205{ 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211rm -f conftest.$ac_objext 3212if { (ac_try="$ac_compile" 3213case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216esac 3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3218 (eval "$ac_compile") 2>conftest.er1 3219 ac_status=$? 3220 grep -v '^ *+' conftest.er1 >conftest.err 3221 rm -f conftest.er1 3222 cat conftest.err >&5 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); } && { 3225 test -z "$ac_c_werror_flag" || 3226 test ! -s conftest.err 3227 } && test -s conftest.$ac_objext; then 3228 ac_cv_compiler_option_defdbg=yes 3229else 3230 echo "$as_me: failed program was:" >&5 3231sed 's/^/| /' conftest.$ac_ext >&5 3232 3233 ac_cv_compiler_option_defdbg=no 3234fi 3235 3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3237CFLAGS="$SAVE_CFLAGS" 3238 3239fi 3240if test ".$ac_cv_compiler_option_defdbg" = .yes; then 3241 CFLAGS="$CFLAGS -DDEBUG" 3242else 3243 : 3244fi 3245{ echo "$as_me:$LINENO: result: $ac_cv_compiler_option_defdbg" >&5 3246echo "${ECHO_T}$ac_cv_compiler_option_defdbg" >&6; } 3247 3248 CFLAGS="$CFLAGS -pedantic" 3249 CFLAGS="$CFLAGS -Wall" 3250 WMORE="" 3251 WMORE="$WMORE -Wbad-function-cast" 3252 WMORE="$WMORE -Wcast-align" 3253 WMORE="$WMORE -Winline" 3254 WMORE="$WMORE -Wmissing-declarations" 3255 WMORE="$WMORE -Wmissing-prototypes" 3256 WMORE="$WMORE -Wmultichar" 3257 WMORE="$WMORE -Wnested-externs" 3258 WMORE="$WMORE -Wno-system-headers" 3259 WMORE="$WMORE -Wpointer-arith" 3260 WMORE="$WMORE -Wredundant-decls" 3261 WMORE="$WMORE -Wshadow" 3262 WMORE="$WMORE -Wstrict-prototypes" 3263 { echo "$as_me:$LINENO: checking whether compiler option(s) -W<xxx> work" >&5 3264echo $ECHO_N "checking whether compiler option(s) -W<xxx> work... $ECHO_C" >&6; } 3265if test "${ac_cv_compiler_option_wmore+set}" = set; then 3266 echo $ECHO_N "(cached) $ECHO_C" >&6 3267else 3268 3269SAVE_CFLAGS="$CFLAGS" 3270CFLAGS="$CFLAGS $WMORE" 3271cat >conftest.$ac_ext <<_ACEOF 3272/* confdefs.h. */ 3273_ACEOF 3274cat confdefs.h >>conftest.$ac_ext 3275cat >>conftest.$ac_ext <<_ACEOF 3276/* end confdefs.h. */ 3277 3278int 3279main () 3280{ 3281 3282 ; 3283 return 0; 3284} 3285_ACEOF 3286rm -f conftest.$ac_objext 3287if { (ac_try="$ac_compile" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 ac_cv_compiler_option_wmore=yes 3304else 3305 echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 ac_cv_compiler_option_wmore=no 3309fi 3310 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312CFLAGS="$SAVE_CFLAGS" 3313 3314fi 3315if test ".$ac_cv_compiler_option_wmore" = .yes; then 3316 CFLAGS="$CFLAGS $WMORE" 3317else 3318 : 3319fi 3320{ echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5 3321echo "${ECHO_T}$ac_cv_compiler_option_wmore" >&6; } 3322 3323 { echo "$as_me:$LINENO: checking whether compiler option(s) -Wno-long-long work" >&5 3324echo $ECHO_N "checking whether compiler option(s) -Wno-long-long work... $ECHO_C" >&6; } 3325if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then 3326 echo $ECHO_N "(cached) $ECHO_C" >&6 3327else 3328 3329SAVE_CFLAGS="$CFLAGS" 3330CFLAGS="$CFLAGS -Wno-long-long" 3331cat >conftest.$ac_ext <<_ACEOF 3332/* confdefs.h. */ 3333_ACEOF 3334cat confdefs.h >>conftest.$ac_ext 3335cat >>conftest.$ac_ext <<_ACEOF 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346rm -f conftest.$ac_objext 3347if { (ac_try="$ac_compile" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3353 (eval "$ac_compile") 2>conftest.er1 3354 ac_status=$? 3355 grep -v '^ *+' conftest.er1 >conftest.err 3356 rm -f conftest.er1 3357 cat conftest.err >&5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } && { 3360 test -z "$ac_c_werror_flag" || 3361 test ! -s conftest.err 3362 } && test -s conftest.$ac_objext; then 3363 ac_cv_compiler_option_wnolonglong=yes 3364else 3365 echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368 ac_cv_compiler_option_wnolonglong=no 3369fi 3370 3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3372CFLAGS="$SAVE_CFLAGS" 3373 3374fi 3375if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then 3376 CFLAGS="$CFLAGS -Wno-long-long" 3377else 3378 : 3379fi 3380{ echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5 3381echo "${ECHO_T}$ac_cv_compiler_option_wnolonglong" >&6; } 3382 3383else 3384 case "$CFLAGS" in 3385 *-g* ) ;; 3386 * ) CFLAGS="$CFLAGS -g" ;; 3387 esac 3388fi 3389msg="enabled" 3390 3391else 3392 3393if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 3394case "$CFLAGS" in 3395 *-pipe* ) ;; 3396 * ) { echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5 3397echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6; } 3398if test "${ac_cv_compiler_option_pipe+set}" = set; then 3399 echo $ECHO_N "(cached) $ECHO_C" >&6 3400else 3401 3402SAVE_CFLAGS="$CFLAGS" 3403CFLAGS="$CFLAGS -pipe" 3404cat >conftest.$ac_ext <<_ACEOF 3405/* confdefs.h. */ 3406_ACEOF 3407cat confdefs.h >>conftest.$ac_ext 3408cat >>conftest.$ac_ext <<_ACEOF 3409/* end confdefs.h. */ 3410 3411int 3412main () 3413{ 3414 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419rm -f conftest.$ac_objext 3420if { (ac_try="$ac_compile" 3421case "(($ac_try" in 3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *) ac_try_echo=$ac_try;; 3424esac 3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3426 (eval "$ac_compile") 2>conftest.er1 3427 ac_status=$? 3428 grep -v '^ *+' conftest.er1 >conftest.err 3429 rm -f conftest.er1 3430 cat conftest.err >&5 3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } && { 3433 test -z "$ac_c_werror_flag" || 3434 test ! -s conftest.err 3435 } && test -s conftest.$ac_objext; then 3436 ac_cv_compiler_option_pipe=yes 3437else 3438 echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 ac_cv_compiler_option_pipe=no 3442fi 3443 3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3445CFLAGS="$SAVE_CFLAGS" 3446 3447fi 3448if test ".$ac_cv_compiler_option_pipe" = .yes; then 3449 CFLAGS="$CFLAGS -pipe" 3450else 3451 : 3452fi 3453{ echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 3454echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6; } 3455 ;; 3456esac 3457fi 3458case "$CFLAGS" in 3459 *-g* ) CFLAGS=`echo "$CFLAGS" |\ 3460 sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; 3461esac 3462msg=disabled 3463 3464fi 3465{ echo "$as_me:$LINENO: checking for compilation debug mode" >&5 3466echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6; } 3467{ echo "$as_me:$LINENO: result: $msg" >&5 3468echo "${ECHO_T}$msg" >&6; } 3469if test ".$msg" = .enabled; then 3470 enable_shared=no 3471fi 3472 3473 3474{ echo "$as_me:$LINENO: checking for maintainer build mode" >&5 3475echo $ECHO_N "checking for maintainer build mode... $ECHO_C" >&6; } 3476# Check whether --enable-maintainer was given. 3477if test "${enable_maintainer+set}" = set; then 3478 enableval=$enable_maintainer; enable_maintainer=yes; M="" 3479else 3480 enable_maintainer=no; M="#" 3481fi 3482 3483{ echo "$as_me:$LINENO: result: $enable_maintainer" >&5 3484echo "${ECHO_T}$enable_maintainer" >&6; } 3485 3486# Check whether --enable-shared was given. 3487if test "${enable_shared+set}" = set; then 3488 enableval=$enable_shared; p=${PACKAGE-default} 3489 case $enableval in 3490 yes) enable_shared=yes ;; 3491 no) enable_shared=no ;; 3492 *) 3493 enable_shared=no 3494 # Look at the argument we got. We use all the common list separators. 3495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3496 for pkg in $enableval; do 3497 IFS="$lt_save_ifs" 3498 if test "X$pkg" = "X$p"; then 3499 enable_shared=yes 3500 fi 3501 done 3502 IFS="$lt_save_ifs" 3503 ;; 3504 esac 3505else 3506 enable_shared=yes 3507fi 3508 3509 3510# Check whether --enable-static was given. 3511if test "${enable_static+set}" = set; then 3512 enableval=$enable_static; p=${PACKAGE-default} 3513 case $enableval in 3514 yes) enable_static=yes ;; 3515 no) enable_static=no ;; 3516 *) 3517 enable_static=no 3518 # Look at the argument we got. We use all the common list separators. 3519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3520 for pkg in $enableval; do 3521 IFS="$lt_save_ifs" 3522 if test "X$pkg" = "X$p"; then 3523 enable_static=yes 3524 fi 3525 done 3526 IFS="$lt_save_ifs" 3527 ;; 3528 esac 3529else 3530 enable_static=yes 3531fi 3532 3533 3534# Check whether --enable-fast-install was given. 3535if test "${enable_fast_install+set}" = set; then 3536 enableval=$enable_fast_install; p=${PACKAGE-default} 3537 case $enableval in 3538 yes) enable_fast_install=yes ;; 3539 no) enable_fast_install=no ;; 3540 *) 3541 enable_fast_install=no 3542 # Look at the argument we got. We use all the common list separators. 3543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3544 for pkg in $enableval; do 3545 IFS="$lt_save_ifs" 3546 if test "X$pkg" = "X$p"; then 3547 enable_fast_install=yes 3548 fi 3549 done 3550 IFS="$lt_save_ifs" 3551 ;; 3552 esac 3553else 3554 enable_fast_install=yes 3555fi 3556 3557 3558ac_aux_dir= 3559for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3560 if test -f "$ac_dir/install-sh"; then 3561 ac_aux_dir=$ac_dir 3562 ac_install_sh="$ac_aux_dir/install-sh -c" 3563 break 3564 elif test -f "$ac_dir/install.sh"; then 3565 ac_aux_dir=$ac_dir 3566 ac_install_sh="$ac_aux_dir/install.sh -c" 3567 break 3568 elif test -f "$ac_dir/shtool"; then 3569 ac_aux_dir=$ac_dir 3570 ac_install_sh="$ac_aux_dir/shtool install -c" 3571 break 3572 fi 3573done 3574if test -z "$ac_aux_dir"; then 3575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3576echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 3577 { (exit 1); exit 1; }; } 3578fi 3579 3580# These three variables are undocumented and unsupported, 3581# and are intended to be withdrawn in a future Autoconf release. 3582# They can cause serious problems if a builder's source tree is in a directory 3583# whose full name contains unusual characters. 3584ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3585ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3586ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3587 3588 3589# Make sure we can run config.sub. 3590$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3591 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3592echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3593 { (exit 1); exit 1; }; } 3594 3595{ echo "$as_me:$LINENO: checking build system type" >&5 3596echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3597if test "${ac_cv_build+set}" = set; then 3598 echo $ECHO_N "(cached) $ECHO_C" >&6 3599else 3600 ac_build_alias=$build_alias 3601test "x$ac_build_alias" = x && 3602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3603test "x$ac_build_alias" = x && 3604 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3605echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3606 { (exit 1); exit 1; }; } 3607ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3609echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3610 { (exit 1); exit 1; }; } 3611 3612fi 3613{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3614echo "${ECHO_T}$ac_cv_build" >&6; } 3615case $ac_cv_build in 3616*-*-*) ;; 3617*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3618echo "$as_me: error: invalid value of canonical build" >&2;} 3619 { (exit 1); exit 1; }; };; 3620esac 3621build=$ac_cv_build 3622ac_save_IFS=$IFS; IFS='-' 3623set x $ac_cv_build 3624shift 3625build_cpu=$1 3626build_vendor=$2 3627shift; shift 3628# Remember, the first character of IFS is used to create $*, 3629# except with old shells: 3630build_os=$* 3631IFS=$ac_save_IFS 3632case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3633 3634 3635{ echo "$as_me:$LINENO: checking host system type" >&5 3636echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3637if test "${ac_cv_host+set}" = set; then 3638 echo $ECHO_N "(cached) $ECHO_C" >&6 3639else 3640 if test "x$host_alias" = x; then 3641 ac_cv_host=$ac_cv_build 3642else 3643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3644 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3645echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3646 { (exit 1); exit 1; }; } 3647fi 3648 3649fi 3650{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3651echo "${ECHO_T}$ac_cv_host" >&6; } 3652case $ac_cv_host in 3653*-*-*) ;; 3654*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3655echo "$as_me: error: invalid value of canonical host" >&2;} 3656 { (exit 1); exit 1; }; };; 3657esac 3658host=$ac_cv_host 3659ac_save_IFS=$IFS; IFS='-' 3660set x $ac_cv_host 3661shift 3662host_cpu=$1 3663host_vendor=$2 3664shift; shift 3665# Remember, the first character of IFS is used to create $*, 3666# except with old shells: 3667host_os=$* 3668IFS=$ac_save_IFS 3669case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3670 3671 3672{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3673echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3674if test "${lt_cv_path_SED+set}" = set; then 3675 echo $ECHO_N "(cached) $ECHO_C" >&6 3676else 3677 # Loop through the user's path and test for sed and gsed. 3678# Then use that list of sed's as ones to test for truncation. 3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680for as_dir in $PATH 3681do 3682 IFS=$as_save_IFS 3683 test -z "$as_dir" && as_dir=. 3684 for lt_ac_prog in sed gsed; do 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3687 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3688 fi 3689 done 3690 done 3691done 3692lt_ac_max=0 3693lt_ac_count=0 3694# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3695# along with /bin/sed that truncates output. 3696for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3697 test ! -f $lt_ac_sed && continue 3698 cat /dev/null > conftest.in 3699 lt_ac_count=0 3700 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3701 # Check for GNU sed and select it if it is found. 3702 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3703 lt_cv_path_SED=$lt_ac_sed 3704 break 3705 fi 3706 while true; do 3707 cat conftest.in conftest.in >conftest.tmp 3708 mv conftest.tmp conftest.in 3709 cp conftest.in conftest.nl 3710 echo >>conftest.nl 3711 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3712 cmp -s conftest.out conftest.nl || break 3713 # 10000 chars as input seems more than enough 3714 test $lt_ac_count -gt 10 && break 3715 lt_ac_count=`expr $lt_ac_count + 1` 3716 if test $lt_ac_count -gt $lt_ac_max; then 3717 lt_ac_max=$lt_ac_count 3718 lt_cv_path_SED=$lt_ac_sed 3719 fi 3720 done 3721done 3722 3723fi 3724 3725SED=$lt_cv_path_SED 3726{ echo "$as_me:$LINENO: result: $SED" >&5 3727echo "${ECHO_T}$SED" >&6; } 3728 3729{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3730echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3731if test "${ac_cv_path_GREP+set}" = set; then 3732 echo $ECHO_N "(cached) $ECHO_C" >&6 3733else 3734 # Extract the first word of "grep ggrep" to use in msg output 3735if test -z "$GREP"; then 3736set dummy grep ggrep; ac_prog_name=$2 3737if test "${ac_cv_path_GREP+set}" = set; then 3738 echo $ECHO_N "(cached) $ECHO_C" >&6 3739else 3740 ac_path_GREP_found=false 3741# Loop through the user's path and test for each of PROGNAME-LIST 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_prog in grep ggrep; do 3748 for ac_exec_ext in '' $ac_executable_extensions; do 3749 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3750 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3751 # Check for GNU ac_path_GREP and select it if it is found. 3752 # Check for GNU $ac_path_GREP 3753case `"$ac_path_GREP" --version 2>&1` in 3754*GNU*) 3755 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3756*) 3757 ac_count=0 3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3759 while : 3760 do 3761 cat "conftest.in" "conftest.in" >"conftest.tmp" 3762 mv "conftest.tmp" "conftest.in" 3763 cp "conftest.in" "conftest.nl" 3764 echo 'GREP' >> "conftest.nl" 3765 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3767 ac_count=`expr $ac_count + 1` 3768 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3769 # Best one so far, save it but keep looking for a better one 3770 ac_cv_path_GREP="$ac_path_GREP" 3771 ac_path_GREP_max=$ac_count 3772 fi 3773 # 10*(2^10) chars as input seems more than enough 3774 test $ac_count -gt 10 && break 3775 done 3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3777esac 3778 3779 3780 $ac_path_GREP_found && break 3 3781 done 3782done 3783 3784done 3785IFS=$as_save_IFS 3786 3787 3788fi 3789 3790GREP="$ac_cv_path_GREP" 3791if test -z "$GREP"; then 3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3794 { (exit 1); exit 1; }; } 3795fi 3796 3797else 3798 ac_cv_path_GREP=$GREP 3799fi 3800 3801 3802fi 3803{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3804echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3805 GREP="$ac_cv_path_GREP" 3806 3807 3808{ echo "$as_me:$LINENO: checking for egrep" >&5 3809echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3810if test "${ac_cv_path_EGREP+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3812else 3813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3814 then ac_cv_path_EGREP="$GREP -E" 3815 else 3816 # Extract the first word of "egrep" to use in msg output 3817if test -z "$EGREP"; then 3818set dummy egrep; ac_prog_name=$2 3819if test "${ac_cv_path_EGREP+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 ac_path_EGREP_found=false 3823# Loop through the user's path and test for each of PROGNAME-LIST 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_prog in egrep; do 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3832 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3833 # Check for GNU ac_path_EGREP and select it if it is found. 3834 # Check for GNU $ac_path_EGREP 3835case `"$ac_path_EGREP" --version 2>&1` in 3836*GNU*) 3837 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3838*) 3839 ac_count=0 3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3841 while : 3842 do 3843 cat "conftest.in" "conftest.in" >"conftest.tmp" 3844 mv "conftest.tmp" "conftest.in" 3845 cp "conftest.in" "conftest.nl" 3846 echo 'EGREP' >> "conftest.nl" 3847 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3849 ac_count=`expr $ac_count + 1` 3850 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3851 # Best one so far, save it but keep looking for a better one 3852 ac_cv_path_EGREP="$ac_path_EGREP" 3853 ac_path_EGREP_max=$ac_count 3854 fi 3855 # 10*(2^10) chars as input seems more than enough 3856 test $ac_count -gt 10 && break 3857 done 3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3859esac 3860 3861 3862 $ac_path_EGREP_found && break 3 3863 done 3864done 3865 3866done 3867IFS=$as_save_IFS 3868 3869 3870fi 3871 3872EGREP="$ac_cv_path_EGREP" 3873if test -z "$EGREP"; then 3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3875echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3876 { (exit 1); exit 1; }; } 3877fi 3878 3879else 3880 ac_cv_path_EGREP=$EGREP 3881fi 3882 3883 3884 fi 3885fi 3886{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3887echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3888 EGREP="$ac_cv_path_EGREP" 3889 3890 3891 3892# Check whether --with-gnu-ld was given. 3893if test "${with_gnu_ld+set}" = set; then 3894 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3895else 3896 with_gnu_ld=no 3897fi 3898 3899ac_prog=ld 3900if test "$GCC" = yes; then 3901 # Check if gcc -print-prog-name=ld gives a path. 3902 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3903echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3904 case $host in 3905 *-*-mingw*) 3906 # gcc leaves a trailing carriage return which upsets mingw 3907 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3908 *) 3909 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3910 esac 3911 case $ac_prog in 3912 # Accept absolute paths. 3913 [\\/]* | ?:[\\/]*) 3914 re_direlt='/[^/][^/]*/\.\./' 3915 # Canonicalize the pathname of ld 3916 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3917 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3918 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3919 done 3920 test -z "$LD" && LD="$ac_prog" 3921 ;; 3922 "") 3923 # If it fails, then pretend we aren't using GCC. 3924 ac_prog=ld 3925 ;; 3926 *) 3927 # If it is relative, then search for the first ld in PATH. 3928 with_gnu_ld=unknown 3929 ;; 3930 esac 3931elif test "$with_gnu_ld" = yes; then 3932 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3933echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3934else 3935 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3936echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3937fi 3938if test "${lt_cv_path_LD+set}" = set; then 3939 echo $ECHO_N "(cached) $ECHO_C" >&6 3940else 3941 if test -z "$LD"; then 3942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3943 for ac_dir in $PATH; do 3944 IFS="$lt_save_ifs" 3945 test -z "$ac_dir" && ac_dir=. 3946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3947 lt_cv_path_LD="$ac_dir/$ac_prog" 3948 # Check to see if the program is GNU ld. I'd rather use --version, 3949 # but apparently some variants of GNU ld only accept -v. 3950 # Break only if it was the GNU/non-GNU ld that we prefer. 3951 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3952 *GNU* | *'with BFD'*) 3953 test "$with_gnu_ld" != no && break 3954 ;; 3955 *) 3956 test "$with_gnu_ld" != yes && break 3957 ;; 3958 esac 3959 fi 3960 done 3961 IFS="$lt_save_ifs" 3962else 3963 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3964fi 3965fi 3966 3967LD="$lt_cv_path_LD" 3968if test -n "$LD"; then 3969 { echo "$as_me:$LINENO: result: $LD" >&5 3970echo "${ECHO_T}$LD" >&6; } 3971else 3972 { echo "$as_me:$LINENO: result: no" >&5 3973echo "${ECHO_T}no" >&6; } 3974fi 3975test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3976echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3977 { (exit 1); exit 1; }; } 3978{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3979echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3980if test "${lt_cv_prog_gnu_ld+set}" = set; then 3981 echo $ECHO_N "(cached) $ECHO_C" >&6 3982else 3983 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3984case `$LD -v 2>&1 </dev/null` in 3985*GNU* | *'with BFD'*) 3986 lt_cv_prog_gnu_ld=yes 3987 ;; 3988*) 3989 lt_cv_prog_gnu_ld=no 3990 ;; 3991esac 3992fi 3993{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3994echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3995with_gnu_ld=$lt_cv_prog_gnu_ld 3996 3997 3998{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3999echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4000if test "${lt_cv_ld_reload_flag+set}" = set; then 4001 echo $ECHO_N "(cached) $ECHO_C" >&6 4002else 4003 lt_cv_ld_reload_flag='-r' 4004fi 4005{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4006echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4007reload_flag=$lt_cv_ld_reload_flag 4008case $reload_flag in 4009"" | " "*) ;; 4010*) reload_flag=" $reload_flag" ;; 4011esac 4012reload_cmds='$LD$reload_flag -o $output$reload_objs' 4013case $host_os in 4014 darwin*) 4015 if test "$GCC" = yes; then 4016 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4017 else 4018 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4019 fi 4020 ;; 4021esac 4022 4023{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4024echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4025if test "${lt_cv_path_NM+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 if test -n "$NM"; then 4029 # Let the user override the test. 4030 lt_cv_path_NM="$NM" 4031else 4032 lt_nm_to_check="${ac_tool_prefix}nm" 4033 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4034 lt_nm_to_check="$lt_nm_to_check nm" 4035 fi 4036 for lt_tmp_nm in $lt_nm_to_check; do 4037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4038 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4039 IFS="$lt_save_ifs" 4040 test -z "$ac_dir" && ac_dir=. 4041 tmp_nm="$ac_dir/$lt_tmp_nm" 4042 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4043 # Check to see if the nm accepts a BSD-compat flag. 4044 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4045 # nm: unknown option "B" ignored 4046 # Tru64's nm complains that /dev/null is an invalid object file 4047 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4048 */dev/null* | *'Invalid file or object type'*) 4049 lt_cv_path_NM="$tmp_nm -B" 4050 break 4051 ;; 4052 *) 4053 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4054 */dev/null*) 4055 lt_cv_path_NM="$tmp_nm -p" 4056 break 4057 ;; 4058 *) 4059 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4060 continue # so that we can try to find one that supports BSD flags 4061 ;; 4062 esac 4063 ;; 4064 esac 4065 fi 4066 done 4067 IFS="$lt_save_ifs" 4068 done 4069 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4070fi 4071fi 4072{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4073echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4074NM="$lt_cv_path_NM" 4075 4076{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4077echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4078LN_S=$as_ln_s 4079if test "$LN_S" = "ln -s"; then 4080 { echo "$as_me:$LINENO: result: yes" >&5 4081echo "${ECHO_T}yes" >&6; } 4082else 4083 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4084echo "${ECHO_T}no, using $LN_S" >&6; } 4085fi 4086 4087{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4088echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4089if test "${lt_cv_deplibs_check_method+set}" = set; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 lt_cv_file_magic_cmd='$MAGIC_CMD' 4093lt_cv_file_magic_test_file= 4094lt_cv_deplibs_check_method='unknown' 4095# Need to set the preceding variable on all platforms that support 4096# interlibrary dependencies. 4097# 'none' -- dependencies not supported. 4098# `unknown' -- same as none, but documents that we really don't know. 4099# 'pass_all' -- all dependencies passed with no checks. 4100# 'test_compile' -- check by making test program. 4101# 'file_magic [[regex]]' -- check by looking for files in library path 4102# which responds to the $file_magic_cmd with a given extended regex. 4103# If you have `file' or equivalent on your system and you're not sure 4104# whether `pass_all' will *always* work, you probably want this one. 4105 4106case $host_os in 4107aix4* | aix5*) 4108 lt_cv_deplibs_check_method=pass_all 4109 ;; 4110 4111beos*) 4112 lt_cv_deplibs_check_method=pass_all 4113 ;; 4114 4115bsdi[45]*) 4116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4117 lt_cv_file_magic_cmd='/usr/bin/file -L' 4118 lt_cv_file_magic_test_file=/shlib/libc.so 4119 ;; 4120 4121cygwin*) 4122 # func_win32_libid is a shell function defined in ltmain.sh 4123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4124 lt_cv_file_magic_cmd='func_win32_libid' 4125 ;; 4126 4127mingw* | pw32*) 4128 # Base MSYS/MinGW do not provide the 'file' command needed by 4129 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4130 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4131 lt_cv_file_magic_cmd='$OBJDUMP -f' 4132 ;; 4133 4134darwin* | rhapsody*) 4135 lt_cv_deplibs_check_method=pass_all 4136 ;; 4137 4138freebsd* | kfreebsd*-gnu | dragonfly*) 4139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4140 case $host_cpu in 4141 i*86 ) 4142 # Not sure whether the presence of OpenBSD here was a mistake. 4143 # Let's accept both of them until this is cleared up. 4144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4145 lt_cv_file_magic_cmd=/usr/bin/file 4146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4147 ;; 4148 esac 4149 else 4150 lt_cv_deplibs_check_method=pass_all 4151 fi 4152 ;; 4153 4154gnu*) 4155 lt_cv_deplibs_check_method=pass_all 4156 ;; 4157 4158hpux10.20* | hpux11*) 4159 lt_cv_file_magic_cmd=/usr/bin/file 4160 case $host_cpu in 4161 ia64*) 4162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4163 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4164 ;; 4165 hppa*64*) 4166 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]' 4167 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4168 ;; 4169 *) 4170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4171 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4172 ;; 4173 esac 4174 ;; 4175 4176interix3*) 4177 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4179 ;; 4180 4181irix5* | irix6* | nonstopux*) 4182 case $LD in 4183 *-32|*"-32 ") libmagic=32-bit;; 4184 *-n32|*"-n32 ") libmagic=N32;; 4185 *-64|*"-64 ") libmagic=64-bit;; 4186 *) libmagic=never-match;; 4187 esac 4188 lt_cv_deplibs_check_method=pass_all 4189 ;; 4190 4191# This must be Linux ELF. 4192linux*) 4193 lt_cv_deplibs_check_method=pass_all 4194 ;; 4195 4196netbsd*) 4197 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4199 else 4200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4201 fi 4202 ;; 4203 4204newos6*) 4205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4206 lt_cv_file_magic_cmd=/usr/bin/file 4207 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4208 ;; 4209 4210nto-qnx*) 4211 lt_cv_deplibs_check_method=unknown 4212 ;; 4213 4214openbsd*) 4215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4217 else 4218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4219 fi 4220 ;; 4221 4222osf3* | osf4* | osf5*) 4223 lt_cv_deplibs_check_method=pass_all 4224 ;; 4225 4226solaris*) 4227 lt_cv_deplibs_check_method=pass_all 4228 ;; 4229 4230sysv4 | sysv4.3*) 4231 case $host_vendor in 4232 motorola) 4233 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]' 4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4235 ;; 4236 ncr) 4237 lt_cv_deplibs_check_method=pass_all 4238 ;; 4239 sequent) 4240 lt_cv_file_magic_cmd='/bin/file' 4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4242 ;; 4243 sni) 4244 lt_cv_file_magic_cmd='/bin/file' 4245 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4246 lt_cv_file_magic_test_file=/lib/libc.so 4247 ;; 4248 siemens) 4249 lt_cv_deplibs_check_method=pass_all 4250 ;; 4251 pc) 4252 lt_cv_deplibs_check_method=pass_all 4253 ;; 4254 esac 4255 ;; 4256 4257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4258 lt_cv_deplibs_check_method=pass_all 4259 ;; 4260esac 4261 4262fi 4263{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4264echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4265file_magic_cmd=$lt_cv_file_magic_cmd 4266deplibs_check_method=$lt_cv_deplibs_check_method 4267test -z "$deplibs_check_method" && deplibs_check_method=unknown 4268 4269 4270 4271 4272# If no C compiler was specified, use CC. 4273LTCC=${LTCC-"$CC"} 4274 4275# If no C compiler flags were specified, use CFLAGS. 4276LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4277 4278# Allow CC to be a program name with arguments. 4279compiler=$CC 4280 4281# Check whether --enable-libtool-lock was given. 4282if test "${enable_libtool_lock+set}" = set; then 4283 enableval=$enable_libtool_lock; 4284fi 4285 4286test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4287 4288# Some flags need to be propagated to the compiler or linker for good 4289# libtool support. 4290case $host in 4291ia64-*-hpux*) 4292 # Find out which ABI we are using. 4293 echo 'int i;' > conftest.$ac_ext 4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4295 (eval $ac_compile) 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); }; then 4299 case `/usr/bin/file conftest.$ac_objext` in 4300 *ELF-32*) 4301 HPUX_IA64_MODE="32" 4302 ;; 4303 *ELF-64*) 4304 HPUX_IA64_MODE="64" 4305 ;; 4306 esac 4307 fi 4308 rm -rf conftest* 4309 ;; 4310*-*-irix6*) 4311 # Find out which ABI we are using. 4312 echo '#line 4312 "configure"' > conftest.$ac_ext 4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4314 (eval $ac_compile) 2>&5 4315 ac_status=$? 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); }; then 4318 if test "$lt_cv_prog_gnu_ld" = yes; then 4319 case `/usr/bin/file conftest.$ac_objext` in 4320 *32-bit*) 4321 LD="${LD-ld} -melf32bsmip" 4322 ;; 4323 *N32*) 4324 LD="${LD-ld} -melf32bmipn32" 4325 ;; 4326 *64-bit*) 4327 LD="${LD-ld} -melf64bmip" 4328 ;; 4329 esac 4330 else 4331 case `/usr/bin/file conftest.$ac_objext` in 4332 *32-bit*) 4333 LD="${LD-ld} -32" 4334 ;; 4335 *N32*) 4336 LD="${LD-ld} -n32" 4337 ;; 4338 *64-bit*) 4339 LD="${LD-ld} -64" 4340 ;; 4341 esac 4342 fi 4343 fi 4344 rm -rf conftest* 4345 ;; 4346 4347x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4348 # Find out which ABI we are using. 4349 echo 'int i;' > conftest.$ac_ext 4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4351 (eval $ac_compile) 2>&5 4352 ac_status=$? 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); }; then 4355 case `/usr/bin/file conftest.o` in 4356 *32-bit*) 4357 case $host in 4358 x86_64-*linux*) 4359 LD="${LD-ld} -m elf_i386" 4360 ;; 4361 ppc64-*linux*|powerpc64-*linux*) 4362 LD="${LD-ld} -m elf32ppclinux" 4363 ;; 4364 s390x-*linux*) 4365 LD="${LD-ld} -m elf_s390" 4366 ;; 4367 sparc64-*linux*) 4368 LD="${LD-ld} -m elf32_sparc" 4369 ;; 4370 esac 4371 ;; 4372 *64-bit*) 4373 case $host in 4374 x86_64-*linux*) 4375 LD="${LD-ld} -m elf_x86_64" 4376 ;; 4377 ppc*-*linux*|powerpc*-*linux*) 4378 LD="${LD-ld} -m elf64ppc" 4379 ;; 4380 s390*-*linux*) 4381 LD="${LD-ld} -m elf64_s390" 4382 ;; 4383 sparc*-*linux*) 4384 LD="${LD-ld} -m elf64_sparc" 4385 ;; 4386 esac 4387 ;; 4388 esac 4389 fi 4390 rm -rf conftest* 4391 ;; 4392 4393*-*-sco3.2v5*) 4394 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4395 SAVE_CFLAGS="$CFLAGS" 4396 CFLAGS="$CFLAGS -belf" 4397 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4398echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4399if test "${lt_cv_cc_needs_belf+set}" = set; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401else 4402 ac_ext=c 4403ac_cpp='$CPP $CPPFLAGS' 4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4406ac_compiler_gnu=$ac_cv_c_compiler_gnu 4407 4408 cat >conftest.$ac_ext <<_ACEOF 4409/* confdefs.h. */ 4410_ACEOF 4411cat confdefs.h >>conftest.$ac_ext 4412cat >>conftest.$ac_ext <<_ACEOF 4413/* end confdefs.h. */ 4414 4415int 4416main () 4417{ 4418 4419 ; 4420 return 0; 4421} 4422_ACEOF 4423rm -f conftest.$ac_objext conftest$ac_exeext 4424if { (ac_try="$ac_link" 4425case "(($ac_try" in 4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4427 *) ac_try_echo=$ac_try;; 4428esac 4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4430 (eval "$ac_link") 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && { 4437 test -z "$ac_c_werror_flag" || 4438 test ! -s conftest.err 4439 } && test -s conftest$ac_exeext && 4440 $as_test_x conftest$ac_exeext; then 4441 lt_cv_cc_needs_belf=yes 4442else 4443 echo "$as_me: failed program was:" >&5 4444sed 's/^/| /' conftest.$ac_ext >&5 4445 4446 lt_cv_cc_needs_belf=no 4447fi 4448 4449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4450 conftest$ac_exeext conftest.$ac_ext 4451 ac_ext=c 4452ac_cpp='$CPP $CPPFLAGS' 4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4455ac_compiler_gnu=$ac_cv_c_compiler_gnu 4456 4457fi 4458{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4459echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4462 CFLAGS="$SAVE_CFLAGS" 4463 fi 4464 ;; 4465sparc*-*solaris*) 4466 # Find out which ABI we are using. 4467 echo 'int i;' > conftest.$ac_ext 4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4469 (eval $ac_compile) 2>&5 4470 ac_status=$? 4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4472 (exit $ac_status); }; then 4473 case `/usr/bin/file conftest.o` in 4474 *64-bit*) 4475 case $lt_cv_prog_gnu_ld in 4476 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4477 *) LD="${LD-ld} -64" ;; 4478 esac 4479 ;; 4480 esac 4481 fi 4482 rm -rf conftest* 4483 ;; 4484 4485 4486esac 4487 4488need_locks="$enable_libtool_lock" 4489 4490 4491 4492{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4493echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4494if test "${ac_cv_header_stdc+set}" = set; then 4495 echo $ECHO_N "(cached) $ECHO_C" >&6 4496else 4497 cat >conftest.$ac_ext <<_ACEOF 4498/* confdefs.h. */ 4499_ACEOF 4500cat confdefs.h >>conftest.$ac_ext 4501cat >>conftest.$ac_ext <<_ACEOF 4502/* end confdefs.h. */ 4503#include <stdlib.h> 4504#include <stdarg.h> 4505#include <string.h> 4506#include <float.h> 4507 4508int 4509main () 4510{ 4511 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516rm -f conftest.$ac_objext 4517if { (ac_try="$ac_compile" 4518case "(($ac_try" in 4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4520 *) ac_try_echo=$ac_try;; 4521esac 4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4523 (eval "$ac_compile") 2>conftest.er1 4524 ac_status=$? 4525 grep -v '^ *+' conftest.er1 >conftest.err 4526 rm -f conftest.er1 4527 cat conftest.err >&5 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); } && { 4530 test -z "$ac_c_werror_flag" || 4531 test ! -s conftest.err 4532 } && test -s conftest.$ac_objext; then 4533 ac_cv_header_stdc=yes 4534else 4535 echo "$as_me: failed program was:" >&5 4536sed 's/^/| /' conftest.$ac_ext >&5 4537 4538 ac_cv_header_stdc=no 4539fi 4540 4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4542 4543if test $ac_cv_header_stdc = yes; then 4544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4545 cat >conftest.$ac_ext <<_ACEOF 4546/* confdefs.h. */ 4547_ACEOF 4548cat confdefs.h >>conftest.$ac_ext 4549cat >>conftest.$ac_ext <<_ACEOF 4550/* end confdefs.h. */ 4551#include <string.h> 4552 4553_ACEOF 4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4555 $EGREP "memchr" >/dev/null 2>&1; then 4556 : 4557else 4558 ac_cv_header_stdc=no 4559fi 4560rm -f conftest* 4561 4562fi 4563 4564if test $ac_cv_header_stdc = yes; then 4565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4566 cat >conftest.$ac_ext <<_ACEOF 4567/* confdefs.h. */ 4568_ACEOF 4569cat confdefs.h >>conftest.$ac_ext 4570cat >>conftest.$ac_ext <<_ACEOF 4571/* end confdefs.h. */ 4572#include <stdlib.h> 4573 4574_ACEOF 4575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4576 $EGREP "free" >/dev/null 2>&1; then 4577 : 4578else 4579 ac_cv_header_stdc=no 4580fi 4581rm -f conftest* 4582 4583fi 4584 4585if test $ac_cv_header_stdc = yes; then 4586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4587 if test "$cross_compiling" = yes; then 4588 : 4589else 4590 cat >conftest.$ac_ext <<_ACEOF 4591/* confdefs.h. */ 4592_ACEOF 4593cat confdefs.h >>conftest.$ac_ext 4594cat >>conftest.$ac_ext <<_ACEOF 4595/* end confdefs.h. */ 4596#include <ctype.h> 4597#include <stdlib.h> 4598#if ((' ' & 0x0FF) == 0x020) 4599# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4600# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4601#else 4602# define ISLOWER(c) \ 4603 (('a' <= (c) && (c) <= 'i') \ 4604 || ('j' <= (c) && (c) <= 'r') \ 4605 || ('s' <= (c) && (c) <= 'z')) 4606# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4607#endif 4608 4609#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4610int 4611main () 4612{ 4613 int i; 4614 for (i = 0; i < 256; i++) 4615 if (XOR (islower (i), ISLOWER (i)) 4616 || toupper (i) != TOUPPER (i)) 4617 return 2; 4618 return 0; 4619} 4620_ACEOF 4621rm -f conftest$ac_exeext 4622if { (ac_try="$ac_link" 4623case "(($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_link") 2>&5 4629 ac_status=$? 4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4632 { (case "(($ac_try" in 4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4634 *) ac_try_echo=$ac_try;; 4635esac 4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4637 (eval "$ac_try") 2>&5 4638 ac_status=$? 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); }; }; then 4641 : 4642else 4643 echo "$as_me: program exited with status $ac_status" >&5 4644echo "$as_me: failed program was:" >&5 4645sed 's/^/| /' conftest.$ac_ext >&5 4646 4647( exit $ac_status ) 4648ac_cv_header_stdc=no 4649fi 4650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4651fi 4652 4653 4654fi 4655fi 4656{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4657echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4658if test $ac_cv_header_stdc = yes; then 4659 4660cat >>confdefs.h <<\_ACEOF 4661#define STDC_HEADERS 1 4662_ACEOF 4663 4664fi 4665 4666# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4677 inttypes.h stdint.h unistd.h 4678do 4679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4680{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4683 echo $ECHO_N "(cached) $ECHO_C" >&6 4684else 4685 cat >conftest.$ac_ext <<_ACEOF 4686/* confdefs.h. */ 4687_ACEOF 4688cat confdefs.h >>conftest.$ac_ext 4689cat >>conftest.$ac_ext <<_ACEOF 4690/* end confdefs.h. */ 4691$ac_includes_default 4692 4693#include <$ac_header> 4694_ACEOF 4695rm -f conftest.$ac_objext 4696if { (ac_try="$ac_compile" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4702 (eval "$ac_compile") 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } && { 4709 test -z "$ac_c_werror_flag" || 4710 test ! -s conftest.err 4711 } && test -s conftest.$ac_objext; then 4712 eval "$as_ac_Header=yes" 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 eval "$as_ac_Header=no" 4718fi 4719 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4721fi 4722ac_res=`eval echo '${'$as_ac_Header'}'` 4723 { echo "$as_me:$LINENO: result: $ac_res" >&5 4724echo "${ECHO_T}$ac_res" >&6; } 4725if test `eval echo '${'$as_ac_Header'}'` = yes; then 4726 cat >>confdefs.h <<_ACEOF 4727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4728_ACEOF 4729 4730fi 4731 4732done 4733 4734 4735 4736for ac_header in dlfcn.h 4737do 4738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4740 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4743 echo $ECHO_N "(cached) $ECHO_C" >&6 4744fi 4745ac_res=`eval echo '${'$as_ac_Header'}'` 4746 { echo "$as_me:$LINENO: result: $ac_res" >&5 4747echo "${ECHO_T}$ac_res" >&6; } 4748else 4749 # Is the header compilable? 4750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4752cat >conftest.$ac_ext <<_ACEOF 4753/* confdefs.h. */ 4754_ACEOF 4755cat confdefs.h >>conftest.$ac_ext 4756cat >>conftest.$ac_ext <<_ACEOF 4757/* end confdefs.h. */ 4758$ac_includes_default 4759#include <$ac_header> 4760_ACEOF 4761rm -f conftest.$ac_objext 4762if { (ac_try="$ac_compile" 4763case "(($ac_try" in 4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4765 *) ac_try_echo=$ac_try;; 4766esac 4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4768 (eval "$ac_compile") 2>conftest.er1 4769 ac_status=$? 4770 grep -v '^ *+' conftest.er1 >conftest.err 4771 rm -f conftest.er1 4772 cat conftest.err >&5 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); } && { 4775 test -z "$ac_c_werror_flag" || 4776 test ! -s conftest.err 4777 } && test -s conftest.$ac_objext; then 4778 ac_header_compiler=yes 4779else 4780 echo "$as_me: failed program was:" >&5 4781sed 's/^/| /' conftest.$ac_ext >&5 4782 4783 ac_header_compiler=no 4784fi 4785 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4788echo "${ECHO_T}$ac_header_compiler" >&6; } 4789 4790# Is the header present? 4791{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4793cat >conftest.$ac_ext <<_ACEOF 4794/* confdefs.h. */ 4795_ACEOF 4796cat confdefs.h >>conftest.$ac_ext 4797cat >>conftest.$ac_ext <<_ACEOF 4798/* end confdefs.h. */ 4799#include <$ac_header> 4800_ACEOF 4801if { (ac_try="$ac_cpp conftest.$ac_ext" 4802case "(($ac_try" in 4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4804 *) ac_try_echo=$ac_try;; 4805esac 4806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4808 ac_status=$? 4809 grep -v '^ *+' conftest.er1 >conftest.err 4810 rm -f conftest.er1 4811 cat conftest.err >&5 4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4813 (exit $ac_status); } >/dev/null && { 4814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4815 test ! -s conftest.err 4816 }; then 4817 ac_header_preproc=yes 4818else 4819 echo "$as_me: failed program was:" >&5 4820sed 's/^/| /' conftest.$ac_ext >&5 4821 4822 ac_header_preproc=no 4823fi 4824 4825rm -f conftest.err conftest.$ac_ext 4826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4827echo "${ECHO_T}$ac_header_preproc" >&6; } 4828 4829# So? What about this header? 4830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4831 yes:no: ) 4832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4836 ac_header_preproc=yes 4837 ;; 4838 no:yes:* ) 4839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4851 4852 ;; 4853esac 4854{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4857 echo $ECHO_N "(cached) $ECHO_C" >&6 4858else 4859 eval "$as_ac_Header=\$ac_header_preproc" 4860fi 4861ac_res=`eval echo '${'$as_ac_Header'}'` 4862 { echo "$as_me:$LINENO: result: $ac_res" >&5 4863echo "${ECHO_T}$ac_res" >&6; } 4864 4865fi 4866if test `eval echo '${'$as_ac_Header'}'` = yes; then 4867 cat >>confdefs.h <<_ACEOF 4868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4869_ACEOF 4870 4871fi 4872 4873done 4874 4875ac_ext=cpp 4876ac_cpp='$CXXCPP $CPPFLAGS' 4877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4880if test -z "$CXX"; then 4881 if test -n "$CCC"; then 4882 CXX=$CCC 4883 else 4884 if test -n "$ac_tool_prefix"; then 4885 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4886 do 4887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4891if test "${ac_cv_prog_CXX+set}" = set; then 4892 echo $ECHO_N "(cached) $ECHO_C" >&6 4893else 4894 if test -n "$CXX"; then 4895 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4896else 4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_exec_ext in '' $ac_executable_extensions; do 4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4904 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908done 4909done 4910IFS=$as_save_IFS 4911 4912fi 4913fi 4914CXX=$ac_cv_prog_CXX 4915if test -n "$CXX"; then 4916 { echo "$as_me:$LINENO: result: $CXX" >&5 4917echo "${ECHO_T}$CXX" >&6; } 4918else 4919 { echo "$as_me:$LINENO: result: no" >&5 4920echo "${ECHO_T}no" >&6; } 4921fi 4922 4923 4924 test -n "$CXX" && break 4925 done 4926fi 4927if test -z "$CXX"; then 4928 ac_ct_CXX=$CXX 4929 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4930do 4931 # Extract the first word of "$ac_prog", so it can be a program name with args. 4932set dummy $ac_prog; ac_word=$2 4933{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4935if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4936 echo $ECHO_N "(cached) $ECHO_C" >&6 4937else 4938 if test -n "$ac_ct_CXX"; then 4939 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4940else 4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942for as_dir in $PATH 4943do 4944 IFS=$as_save_IFS 4945 test -z "$as_dir" && as_dir=. 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4948 ac_cv_prog_ac_ct_CXX="$ac_prog" 4949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4950 break 2 4951 fi 4952done 4953done 4954IFS=$as_save_IFS 4955 4956fi 4957fi 4958ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4959if test -n "$ac_ct_CXX"; then 4960 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4961echo "${ECHO_T}$ac_ct_CXX" >&6; } 4962else 4963 { echo "$as_me:$LINENO: result: no" >&5 4964echo "${ECHO_T}no" >&6; } 4965fi 4966 4967 4968 test -n "$ac_ct_CXX" && break 4969done 4970 4971 if test "x$ac_ct_CXX" = x; then 4972 CXX="g++" 4973 else 4974 case $cross_compiling:$ac_tool_warned in 4975yes:) 4976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4977whose name does not start with the host triplet. If you think this 4978configuration is useful to you, please write to autoconf@gnu.org." >&5 4979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4980whose name does not start with the host triplet. If you think this 4981configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4982ac_tool_warned=yes ;; 4983esac 4984 CXX=$ac_ct_CXX 4985 fi 4986fi 4987 4988 fi 4989fi 4990# Provide some information about the compiler. 4991echo "$as_me:$LINENO: checking for C++ compiler version" >&5 4992ac_compiler=`set X $ac_compile; echo $2` 4993{ (ac_try="$ac_compiler --version >&5" 4994case "(($ac_try" in 4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4996 *) ac_try_echo=$ac_try;; 4997esac 4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4999 (eval "$ac_compiler --version >&5") 2>&5 5000 ac_status=$? 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } 5003{ (ac_try="$ac_compiler -v >&5" 5004case "(($ac_try" in 5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5006 *) ac_try_echo=$ac_try;; 5007esac 5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5009 (eval "$ac_compiler -v >&5") 2>&5 5010 ac_status=$? 5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5012 (exit $ac_status); } 5013{ (ac_try="$ac_compiler -V >&5" 5014case "(($ac_try" in 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016 *) ac_try_echo=$ac_try;; 5017esac 5018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5019 (eval "$ac_compiler -V >&5") 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); } 5023 5024{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5025echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5026if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5027 echo $ECHO_N "(cached) $ECHO_C" >&6 5028else 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035 5036int 5037main () 5038{ 5039#ifndef __GNUC__ 5040 choke me 5041#endif 5042 5043 ; 5044 return 0; 5045} 5046_ACEOF 5047rm -f conftest.$ac_objext 5048if { (ac_try="$ac_compile" 5049case "(($ac_try" in 5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5051 *) ac_try_echo=$ac_try;; 5052esac 5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5054 (eval "$ac_compile") 2>conftest.er1 5055 ac_status=$? 5056 grep -v '^ *+' conftest.er1 >conftest.err 5057 rm -f conftest.er1 5058 cat conftest.err >&5 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); } && { 5061 test -z "$ac_cxx_werror_flag" || 5062 test ! -s conftest.err 5063 } && test -s conftest.$ac_objext; then 5064 ac_compiler_gnu=yes 5065else 5066 echo "$as_me: failed program was:" >&5 5067sed 's/^/| /' conftest.$ac_ext >&5 5068 5069 ac_compiler_gnu=no 5070fi 5071 5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5074 5075fi 5076{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5078GXX=`test $ac_compiler_gnu = yes && echo yes` 5079ac_test_CXXFLAGS=${CXXFLAGS+set} 5080ac_save_CXXFLAGS=$CXXFLAGS 5081{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5082echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5083if test "${ac_cv_prog_cxx_g+set}" = set; then 5084 echo $ECHO_N "(cached) $ECHO_C" >&6 5085else 5086 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5087 ac_cxx_werror_flag=yes 5088 ac_cv_prog_cxx_g=no 5089 CXXFLAGS="-g" 5090 cat >conftest.$ac_ext <<_ACEOF 5091/* confdefs.h. */ 5092_ACEOF 5093cat confdefs.h >>conftest.$ac_ext 5094cat >>conftest.$ac_ext <<_ACEOF 5095/* end confdefs.h. */ 5096 5097int 5098main () 5099{ 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105rm -f conftest.$ac_objext 5106if { (ac_try="$ac_compile" 5107case "(($ac_try" in 5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5109 *) ac_try_echo=$ac_try;; 5110esac 5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5112 (eval "$ac_compile") 2>conftest.er1 5113 ac_status=$? 5114 grep -v '^ *+' conftest.er1 >conftest.err 5115 rm -f conftest.er1 5116 cat conftest.err >&5 5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5118 (exit $ac_status); } && { 5119 test -z "$ac_cxx_werror_flag" || 5120 test ! -s conftest.err 5121 } && test -s conftest.$ac_objext; then 5122 ac_cv_prog_cxx_g=yes 5123else 5124 echo "$as_me: failed program was:" >&5 5125sed 's/^/| /' conftest.$ac_ext >&5 5126 5127 CXXFLAGS="" 5128 cat >conftest.$ac_ext <<_ACEOF 5129/* confdefs.h. */ 5130_ACEOF 5131cat confdefs.h >>conftest.$ac_ext 5132cat >>conftest.$ac_ext <<_ACEOF 5133/* end confdefs.h. */ 5134 5135int 5136main () 5137{ 5138 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143rm -f conftest.$ac_objext 5144if { (ac_try="$ac_compile" 5145case "(($ac_try" in 5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5147 *) ac_try_echo=$ac_try;; 5148esac 5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5150 (eval "$ac_compile") 2>conftest.er1 5151 ac_status=$? 5152 grep -v '^ *+' conftest.er1 >conftest.err 5153 rm -f conftest.er1 5154 cat conftest.err >&5 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); } && { 5157 test -z "$ac_cxx_werror_flag" || 5158 test ! -s conftest.err 5159 } && test -s conftest.$ac_objext; then 5160 : 5161else 5162 echo "$as_me: failed program was:" >&5 5163sed 's/^/| /' conftest.$ac_ext >&5 5164 5165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5166 CXXFLAGS="-g" 5167 cat >conftest.$ac_ext <<_ACEOF 5168/* confdefs.h. */ 5169_ACEOF 5170cat confdefs.h >>conftest.$ac_ext 5171cat >>conftest.$ac_ext <<_ACEOF 5172/* end confdefs.h. */ 5173 5174int 5175main () 5176{ 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182rm -f conftest.$ac_objext 5183if { (ac_try="$ac_compile" 5184case "(($ac_try" in 5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5186 *) ac_try_echo=$ac_try;; 5187esac 5188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5189 (eval "$ac_compile") 2>conftest.er1 5190 ac_status=$? 5191 grep -v '^ *+' conftest.er1 >conftest.err 5192 rm -f conftest.er1 5193 cat conftest.err >&5 5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); } && { 5196 test -z "$ac_cxx_werror_flag" || 5197 test ! -s conftest.err 5198 } && test -s conftest.$ac_objext; then 5199 ac_cv_prog_cxx_g=yes 5200else 5201 echo "$as_me: failed program was:" >&5 5202sed 's/^/| /' conftest.$ac_ext >&5 5203 5204 5205fi 5206 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5208fi 5209 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211fi 5212 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5215fi 5216{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5217echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5218if test "$ac_test_CXXFLAGS" = set; then 5219 CXXFLAGS=$ac_save_CXXFLAGS 5220elif test $ac_cv_prog_cxx_g = yes; then 5221 if test "$GXX" = yes; then 5222 CXXFLAGS="-g -O2" 5223 else 5224 CXXFLAGS="-g" 5225 fi 5226else 5227 if test "$GXX" = yes; then 5228 CXXFLAGS="-O2" 5229 else 5230 CXXFLAGS= 5231 fi 5232fi 5233ac_ext=cpp 5234ac_cpp='$CXXCPP $CPPFLAGS' 5235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5238 5239 5240 5241if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5243 (test "X$CXX" != "Xg++"))) ; then 5244 ac_ext=cpp 5245ac_cpp='$CXXCPP $CPPFLAGS' 5246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5249{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5250echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5251if test -z "$CXXCPP"; then 5252 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5253 echo $ECHO_N "(cached) $ECHO_C" >&6 5254else 5255 # Double quotes because CXXCPP needs to be expanded 5256 for CXXCPP in "$CXX -E" "/lib/cpp" 5257 do 5258 ac_preproc_ok=false 5259for ac_cxx_preproc_warn_flag in '' yes 5260do 5261 # Use a header file that comes with gcc, so configuring glibc 5262 # with a fresh cross-compiler works. 5263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5264 # <limits.h> exists even on freestanding compilers. 5265 # On the NeXT, cc -E runs the code through the compiler's parser, 5266 # not just through cpp. "Syntax error" is here to catch this case. 5267 cat >conftest.$ac_ext <<_ACEOF 5268/* confdefs.h. */ 5269_ACEOF 5270cat confdefs.h >>conftest.$ac_ext 5271cat >>conftest.$ac_ext <<_ACEOF 5272/* end confdefs.h. */ 5273#ifdef __STDC__ 5274# include <limits.h> 5275#else 5276# include <assert.h> 5277#endif 5278 Syntax error 5279_ACEOF 5280if { (ac_try="$ac_cpp conftest.$ac_ext" 5281case "(($ac_try" in 5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5283 *) ac_try_echo=$ac_try;; 5284esac 5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5287 ac_status=$? 5288 grep -v '^ *+' conftest.er1 >conftest.err 5289 rm -f conftest.er1 5290 cat conftest.err >&5 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); } >/dev/null && { 5293 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5294 test ! -s conftest.err 5295 }; then 5296 : 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301 # Broken: fails on valid input. 5302continue 5303fi 5304 5305rm -f conftest.err conftest.$ac_ext 5306 5307 # OK, works on sane cases. Now check whether nonexistent headers 5308 # can be detected and how. 5309 cat >conftest.$ac_ext <<_ACEOF 5310/* confdefs.h. */ 5311_ACEOF 5312cat confdefs.h >>conftest.$ac_ext 5313cat >>conftest.$ac_ext <<_ACEOF 5314/* end confdefs.h. */ 5315#include <ac_nonexistent.h> 5316_ACEOF 5317if { (ac_try="$ac_cpp conftest.$ac_ext" 5318case "(($ac_try" in 5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5320 *) ac_try_echo=$ac_try;; 5321esac 5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5324 ac_status=$? 5325 grep -v '^ *+' conftest.er1 >conftest.err 5326 rm -f conftest.er1 5327 cat conftest.err >&5 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); } >/dev/null && { 5330 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5331 test ! -s conftest.err 5332 }; then 5333 # Broken: success on invalid input. 5334continue 5335else 5336 echo "$as_me: failed program was:" >&5 5337sed 's/^/| /' conftest.$ac_ext >&5 5338 5339 # Passes both tests. 5340ac_preproc_ok=: 5341break 5342fi 5343 5344rm -f conftest.err conftest.$ac_ext 5345 5346done 5347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5348rm -f conftest.err conftest.$ac_ext 5349if $ac_preproc_ok; then 5350 break 5351fi 5352 5353 done 5354 ac_cv_prog_CXXCPP=$CXXCPP 5355 5356fi 5357 CXXCPP=$ac_cv_prog_CXXCPP 5358else 5359 ac_cv_prog_CXXCPP=$CXXCPP 5360fi 5361{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5362echo "${ECHO_T}$CXXCPP" >&6; } 5363ac_preproc_ok=false 5364for ac_cxx_preproc_warn_flag in '' yes 5365do 5366 # Use a header file that comes with gcc, so configuring glibc 5367 # with a fresh cross-compiler works. 5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5369 # <limits.h> exists even on freestanding compilers. 5370 # On the NeXT, cc -E runs the code through the compiler's parser, 5371 # not just through cpp. "Syntax error" is here to catch this case. 5372 cat >conftest.$ac_ext <<_ACEOF 5373/* confdefs.h. */ 5374_ACEOF 5375cat confdefs.h >>conftest.$ac_ext 5376cat >>conftest.$ac_ext <<_ACEOF 5377/* end confdefs.h. */ 5378#ifdef __STDC__ 5379# include <limits.h> 5380#else 5381# include <assert.h> 5382#endif 5383 Syntax error 5384_ACEOF 5385if { (ac_try="$ac_cpp conftest.$ac_ext" 5386case "(($ac_try" in 5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5388 *) ac_try_echo=$ac_try;; 5389esac 5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5392 ac_status=$? 5393 grep -v '^ *+' conftest.er1 >conftest.err 5394 rm -f conftest.er1 5395 cat conftest.err >&5 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5397 (exit $ac_status); } >/dev/null && { 5398 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5399 test ! -s conftest.err 5400 }; then 5401 : 5402else 5403 echo "$as_me: failed program was:" >&5 5404sed 's/^/| /' conftest.$ac_ext >&5 5405 5406 # Broken: fails on valid input. 5407continue 5408fi 5409 5410rm -f conftest.err conftest.$ac_ext 5411 5412 # OK, works on sane cases. Now check whether nonexistent headers 5413 # can be detected and how. 5414 cat >conftest.$ac_ext <<_ACEOF 5415/* confdefs.h. */ 5416_ACEOF 5417cat confdefs.h >>conftest.$ac_ext 5418cat >>conftest.$ac_ext <<_ACEOF 5419/* end confdefs.h. */ 5420#include <ac_nonexistent.h> 5421_ACEOF 5422if { (ac_try="$ac_cpp conftest.$ac_ext" 5423case "(($ac_try" in 5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5425 *) ac_try_echo=$ac_try;; 5426esac 5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } >/dev/null && { 5435 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5436 test ! -s conftest.err 5437 }; then 5438 # Broken: success on invalid input. 5439continue 5440else 5441 echo "$as_me: failed program was:" >&5 5442sed 's/^/| /' conftest.$ac_ext >&5 5443 5444 # Passes both tests. 5445ac_preproc_ok=: 5446break 5447fi 5448 5449rm -f conftest.err conftest.$ac_ext 5450 5451done 5452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5453rm -f conftest.err conftest.$ac_ext 5454if $ac_preproc_ok; then 5455 : 5456else 5457 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5458See \`config.log' for more details." >&5 5459echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5460See \`config.log' for more details." >&2;} 5461 { (exit 1); exit 1; }; } 5462fi 5463 5464ac_ext=cpp 5465ac_cpp='$CXXCPP $CPPFLAGS' 5466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5469 5470fi 5471 5472 5473ac_ext=f 5474ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5475ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5476ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5477if test -n "$ac_tool_prefix"; then 5478 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5479 do 5480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5482{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5484if test "${ac_cv_prog_F77+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486else 5487 if test -n "$F77"; then 5488 ac_cv_prog_F77="$F77" # Let the user override the test. 5489else 5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491for as_dir in $PATH 5492do 5493 IFS=$as_save_IFS 5494 test -z "$as_dir" && as_dir=. 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5497 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5499 break 2 5500 fi 5501done 5502done 5503IFS=$as_save_IFS 5504 5505fi 5506fi 5507F77=$ac_cv_prog_F77 5508if test -n "$F77"; then 5509 { echo "$as_me:$LINENO: result: $F77" >&5 5510echo "${ECHO_T}$F77" >&6; } 5511else 5512 { echo "$as_me:$LINENO: result: no" >&5 5513echo "${ECHO_T}no" >&6; } 5514fi 5515 5516 5517 test -n "$F77" && break 5518 done 5519fi 5520if test -z "$F77"; then 5521 ac_ct_F77=$F77 5522 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5523do 5524 # Extract the first word of "$ac_prog", so it can be a program name with args. 5525set dummy $ac_prog; ac_word=$2 5526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5528if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5529 echo $ECHO_N "(cached) $ECHO_C" >&6 5530else 5531 if test -n "$ac_ct_F77"; then 5532 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5533else 5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5541 ac_cv_prog_ac_ct_F77="$ac_prog" 5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546done 5547IFS=$as_save_IFS 5548 5549fi 5550fi 5551ac_ct_F77=$ac_cv_prog_ac_ct_F77 5552if test -n "$ac_ct_F77"; then 5553 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5554echo "${ECHO_T}$ac_ct_F77" >&6; } 5555else 5556 { echo "$as_me:$LINENO: result: no" >&5 5557echo "${ECHO_T}no" >&6; } 5558fi 5559 5560 5561 test -n "$ac_ct_F77" && break 5562done 5563 5564 if test "x$ac_ct_F77" = x; then 5565 F77="" 5566 else 5567 case $cross_compiling:$ac_tool_warned in 5568yes:) 5569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5570whose name does not start with the host triplet. If you think this 5571configuration is useful to you, please write to autoconf@gnu.org." >&5 5572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5573whose name does not start with the host triplet. If you think this 5574configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5575ac_tool_warned=yes ;; 5576esac 5577 F77=$ac_ct_F77 5578 fi 5579fi 5580 5581 5582# Provide some information about the compiler. 5583echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5584ac_compiler=`set X $ac_compile; echo $2` 5585{ (ac_try="$ac_compiler --version >&5" 5586case "(($ac_try" in 5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5588 *) ac_try_echo=$ac_try;; 5589esac 5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5591 (eval "$ac_compiler --version >&5") 2>&5 5592 ac_status=$? 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 (exit $ac_status); } 5595{ (ac_try="$ac_compiler -v >&5" 5596case "(($ac_try" in 5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5598 *) ac_try_echo=$ac_try;; 5599esac 5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5601 (eval "$ac_compiler -v >&5") 2>&5 5602 ac_status=$? 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 (exit $ac_status); } 5605{ (ac_try="$ac_compiler -V >&5" 5606case "(($ac_try" in 5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5608 *) ac_try_echo=$ac_try;; 5609esac 5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5611 (eval "$ac_compiler -V >&5") 2>&5 5612 ac_status=$? 5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 (exit $ac_status); } 5615rm -f a.out 5616 5617# If we don't use `.F' as extension, the preprocessor is not run on the 5618# input file. (Note that this only needs to work for GNU compilers.) 5619ac_save_ext=$ac_ext 5620ac_ext=F 5621{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5622echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5623if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5624 echo $ECHO_N "(cached) $ECHO_C" >&6 5625else 5626 cat >conftest.$ac_ext <<_ACEOF 5627 program main 5628#ifndef __GNUC__ 5629 choke me 5630#endif 5631 5632 end 5633_ACEOF 5634rm -f conftest.$ac_objext 5635if { (ac_try="$ac_compile" 5636case "(($ac_try" in 5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5638 *) ac_try_echo=$ac_try;; 5639esac 5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5641 (eval "$ac_compile") 2>conftest.er1 5642 ac_status=$? 5643 grep -v '^ *+' conftest.er1 >conftest.err 5644 rm -f conftest.er1 5645 cat conftest.err >&5 5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5647 (exit $ac_status); } && { 5648 test -z "$ac_f77_werror_flag" || 5649 test ! -s conftest.err 5650 } && test -s conftest.$ac_objext; then 5651 ac_compiler_gnu=yes 5652else 5653 echo "$as_me: failed program was:" >&5 5654sed 's/^/| /' conftest.$ac_ext >&5 5655 5656 ac_compiler_gnu=no 5657fi 5658 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5661 5662fi 5663{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5664echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5665ac_ext=$ac_save_ext 5666ac_test_FFLAGS=${FFLAGS+set} 5667ac_save_FFLAGS=$FFLAGS 5668FFLAGS= 5669{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5670echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5671if test "${ac_cv_prog_f77_g+set}" = set; then 5672 echo $ECHO_N "(cached) $ECHO_C" >&6 5673else 5674 FFLAGS=-g 5675cat >conftest.$ac_ext <<_ACEOF 5676 program main 5677 5678 end 5679_ACEOF 5680rm -f conftest.$ac_objext 5681if { (ac_try="$ac_compile" 5682case "(($ac_try" in 5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5684 *) ac_try_echo=$ac_try;; 5685esac 5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5687 (eval "$ac_compile") 2>conftest.er1 5688 ac_status=$? 5689 grep -v '^ *+' conftest.er1 >conftest.err 5690 rm -f conftest.er1 5691 cat conftest.err >&5 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); } && { 5694 test -z "$ac_f77_werror_flag" || 5695 test ! -s conftest.err 5696 } && test -s conftest.$ac_objext; then 5697 ac_cv_prog_f77_g=yes 5698else 5699 echo "$as_me: failed program was:" >&5 5700sed 's/^/| /' conftest.$ac_ext >&5 5701 5702 ac_cv_prog_f77_g=no 5703fi 5704 5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706 5707fi 5708{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5709echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 5710if test "$ac_test_FFLAGS" = set; then 5711 FFLAGS=$ac_save_FFLAGS 5712elif test $ac_cv_prog_f77_g = yes; then 5713 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5714 FFLAGS="-g -O2" 5715 else 5716 FFLAGS="-g" 5717 fi 5718else 5719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5720 FFLAGS="-O2" 5721 else 5722 FFLAGS= 5723 fi 5724fi 5725 5726G77=`test $ac_compiler_gnu = yes && echo yes` 5727ac_ext=c 5728ac_cpp='$CPP $CPPFLAGS' 5729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5731ac_compiler_gnu=$ac_cv_c_compiler_gnu 5732 5733 5734 5735# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5736 5737# find the maximum length of command line arguments 5738{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5739echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5740if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5741 echo $ECHO_N "(cached) $ECHO_C" >&6 5742else 5743 i=0 5744 teststring="ABCD" 5745 5746 case $build_os in 5747 msdosdjgpp*) 5748 # On DJGPP, this test can blow up pretty badly due to problems in libc 5749 # (any single argument exceeding 2000 bytes causes a buffer overrun 5750 # during glob expansion). Even if it were fixed, the result of this 5751 # check would be larger than it should be. 5752 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5753 ;; 5754 5755 gnu*) 5756 # Under GNU Hurd, this test is not required because there is 5757 # no limit to the length of command line arguments. 5758 # Libtool will interpret -1 as no limit whatsoever 5759 lt_cv_sys_max_cmd_len=-1; 5760 ;; 5761 5762 cygwin* | mingw*) 5763 # On Win9x/ME, this test blows up -- it succeeds, but takes 5764 # about 5 minutes as the teststring grows exponentially. 5765 # Worse, since 9x/ME are not pre-emptively multitasking, 5766 # you end up with a "frozen" computer, even though with patience 5767 # the test eventually succeeds (with a max line length of 256k). 5768 # Instead, let's just punt: use the minimum linelength reported by 5769 # all of the supported platforms: 8192 (on NT/2K/XP). 5770 lt_cv_sys_max_cmd_len=8192; 5771 ;; 5772 5773 amigaos*) 5774 # On AmigaOS with pdksh, this test takes hours, literally. 5775 # So we just punt and use a minimum line length of 8192. 5776 lt_cv_sys_max_cmd_len=8192; 5777 ;; 5778 5779 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5780 # This has been around since 386BSD, at least. Likely further. 5781 if test -x /sbin/sysctl; then 5782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5783 elif test -x /usr/sbin/sysctl; then 5784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5785 else 5786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5787 fi 5788 # And add a safety zone 5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5791 ;; 5792 5793 interix*) 5794 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5795 lt_cv_sys_max_cmd_len=196608 5796 ;; 5797 5798 osf*) 5799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5801 # nice to cause kernel panics so lets avoid the loop below. 5802 # First set a reasonable default. 5803 lt_cv_sys_max_cmd_len=16384 5804 # 5805 if test -x /sbin/sysconfig; then 5806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5807 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5808 esac 5809 fi 5810 ;; 5811 sco3.2v5*) 5812 lt_cv_sys_max_cmd_len=102400 5813 ;; 5814 sysv5* | sco5v6* | sysv4.2uw2*) 5815 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5816 if test -n "$kargmax"; then 5817 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5818 else 5819 lt_cv_sys_max_cmd_len=32768 5820 fi 5821 ;; 5822 *) 5823 # If test is not a shell built-in, we'll probably end up computing a 5824 # maximum length that is only half of the actual maximum length, but 5825 # we can't tell. 5826 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5827 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5828 = "XX$teststring") >/dev/null 2>&1 && 5829 new_result=`expr "X$teststring" : ".*" 2>&1` && 5830 lt_cv_sys_max_cmd_len=$new_result && 5831 test $i != 17 # 1/2 MB should be enough 5832 do 5833 i=`expr $i + 1` 5834 teststring=$teststring$teststring 5835 done 5836 teststring= 5837 # Add a significant safety factor because C++ compilers can tack on massive 5838 # amounts of additional arguments before passing them to the linker. 5839 # It appears as though 1/2 is a usable value. 5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5841 ;; 5842 esac 5843 5844fi 5845 5846if test -n $lt_cv_sys_max_cmd_len ; then 5847 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5848echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5849else 5850 { echo "$as_me:$LINENO: result: none" >&5 5851echo "${ECHO_T}none" >&6; } 5852fi 5853 5854 5855 5856 5857# Check for command to grab the raw symbol name followed by C symbol from nm. 5858{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5859echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5860if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5861 echo $ECHO_N "(cached) $ECHO_C" >&6 5862else 5863 5864# These are sane defaults that work on at least a few old systems. 5865# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5866 5867# Character class describing NM global symbol codes. 5868symcode='[BCDEGRST]' 5869 5870# Regexp to match symbols that can be accessed directly from C. 5871sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5872 5873# Transform an extracted symbol line into a proper C declaration 5874lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5875 5876# Transform an extracted symbol line into symbol name and symbol address 5877lt_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'" 5878 5879# Define system-specific variables. 5880case $host_os in 5881aix*) 5882 symcode='[BCDT]' 5883 ;; 5884cygwin* | mingw* | pw32*) 5885 symcode='[ABCDGISTW]' 5886 ;; 5887hpux*) # Its linker distinguishes data from code symbols 5888 if test "$host_cpu" = ia64; then 5889 symcode='[ABCDEGRST]' 5890 fi 5891 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5892 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'" 5893 ;; 5894linux*) 5895 if test "$host_cpu" = ia64; then 5896 symcode='[ABCDGIRSTW]' 5897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5898 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'" 5899 fi 5900 ;; 5901irix* | nonstopux*) 5902 symcode='[BCDEGRST]' 5903 ;; 5904osf*) 5905 symcode='[BCDEGQRST]' 5906 ;; 5907solaris*) 5908 symcode='[BDRT]' 5909 ;; 5910sco3.2v5*) 5911 symcode='[DT]' 5912 ;; 5913sysv4.2uw2*) 5914 symcode='[DT]' 5915 ;; 5916sysv5* | sco5v6* | unixware* | OpenUNIX*) 5917 symcode='[ABDT]' 5918 ;; 5919sysv4) 5920 symcode='[DFNSTU]' 5921 ;; 5922esac 5923 5924# Handle CRLF in mingw tool chain 5925opt_cr= 5926case $build_os in 5927mingw*) 5928 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5929 ;; 5930esac 5931 5932# If we're using GNU nm, then use its standard symbol codes. 5933case `$NM -V 2>&1` in 5934*GNU* | *'with BFD'*) 5935 symcode='[ABCDGIRSTW]' ;; 5936esac 5937 5938# Try without a prefix undercore, then with it. 5939for ac_symprfx in "" "_"; do 5940 5941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5942 symxfrm="\\1 $ac_symprfx\\2 \\2" 5943 5944 # Write the raw and C identifiers. 5945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5946 5947 # Check to see that the pipe works correctly. 5948 pipe_works=no 5949 5950 rm -f conftest* 5951 cat > conftest.$ac_ext <<EOF 5952#ifdef __cplusplus 5953extern "C" { 5954#endif 5955char nm_test_var; 5956void nm_test_func(){} 5957#ifdef __cplusplus 5958} 5959#endif 5960int main(){nm_test_var='a';nm_test_func();return(0);} 5961EOF 5962 5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5964 (eval $ac_compile) 2>&5 5965 ac_status=$? 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); }; then 5968 # Now try to grab the symbols. 5969 nlist=conftest.nm 5970 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5971 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5972 ac_status=$? 5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5974 (exit $ac_status); } && test -s "$nlist"; then 5975 # Try sorting and uniquifying the output. 5976 if sort "$nlist" | uniq > "$nlist"T; then 5977 mv -f "$nlist"T "$nlist" 5978 else 5979 rm -f "$nlist"T 5980 fi 5981 5982 # Make sure that we snagged all the symbols we need. 5983 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5984 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5985 cat <<EOF > conftest.$ac_ext 5986#ifdef __cplusplus 5987extern "C" { 5988#endif 5989 5990EOF 5991 # Now generate the symbol file. 5992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5993 5994 cat <<EOF >> conftest.$ac_ext 5995#if defined (__STDC__) && __STDC__ 5996# define lt_ptr_t void * 5997#else 5998# define lt_ptr_t char * 5999# define const 6000#endif 6001 6002/* The mapping between symbol names and symbols. */ 6003const struct { 6004 const char *name; 6005 lt_ptr_t address; 6006} 6007lt_preloaded_symbols[] = 6008{ 6009EOF 6010 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6011 cat <<\EOF >> conftest.$ac_ext 6012 {0, (lt_ptr_t) 0} 6013}; 6014 6015#ifdef __cplusplus 6016} 6017#endif 6018EOF 6019 # Now try linking the two files. 6020 mv conftest.$ac_objext conftstm.$ac_objext 6021 lt_save_LIBS="$LIBS" 6022 lt_save_CFLAGS="$CFLAGS" 6023 LIBS="conftstm.$ac_objext" 6024 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6026 (eval $ac_link) 2>&5 6027 ac_status=$? 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6030 pipe_works=yes 6031 fi 6032 LIBS="$lt_save_LIBS" 6033 CFLAGS="$lt_save_CFLAGS" 6034 else 6035 echo "cannot find nm_test_func in $nlist" >&5 6036 fi 6037 else 6038 echo "cannot find nm_test_var in $nlist" >&5 6039 fi 6040 else 6041 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6042 fi 6043 else 6044 echo "$progname: failed program was:" >&5 6045 cat conftest.$ac_ext >&5 6046 fi 6047 rm -f conftest* conftst* 6048 6049 # Do not use the global_symbol_pipe unless it works. 6050 if test "$pipe_works" = yes; then 6051 break 6052 else 6053 lt_cv_sys_global_symbol_pipe= 6054 fi 6055done 6056 6057fi 6058 6059if test -z "$lt_cv_sys_global_symbol_pipe"; then 6060 lt_cv_sys_global_symbol_to_cdecl= 6061fi 6062if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6063 { echo "$as_me:$LINENO: result: failed" >&5 6064echo "${ECHO_T}failed" >&6; } 6065else 6066 { echo "$as_me:$LINENO: result: ok" >&5 6067echo "${ECHO_T}ok" >&6; } 6068fi 6069 6070{ echo "$as_me:$LINENO: checking for objdir" >&5 6071echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6072if test "${lt_cv_objdir+set}" = set; then 6073 echo $ECHO_N "(cached) $ECHO_C" >&6 6074else 6075 rm -f .libs 2>/dev/null 6076mkdir .libs 2>/dev/null 6077if test -d .libs; then 6078 lt_cv_objdir=.libs 6079else 6080 # MS-DOS does not allow filenames that begin with a dot. 6081 lt_cv_objdir=_libs 6082fi 6083rmdir .libs 2>/dev/null 6084fi 6085{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6086echo "${ECHO_T}$lt_cv_objdir" >&6; } 6087objdir=$lt_cv_objdir 6088 6089 6090 6091 6092 6093case $host_os in 6094aix3*) 6095 # AIX sometimes has problems with the GCC collect2 program. For some 6096 # reason, if we set the COLLECT_NAMES environment variable, the problems 6097 # vanish in a puff of smoke. 6098 if test "X${COLLECT_NAMES+set}" != Xset; then 6099 COLLECT_NAMES= 6100 export COLLECT_NAMES 6101 fi 6102 ;; 6103esac 6104 6105# Sed substitution that helps us do robust quoting. It backslashifies 6106# metacharacters that are still active within double-quoted strings. 6107Xsed='sed -e 1s/^X//' 6108sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6109 6110# Same as above, but do not quote variable references. 6111double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6112 6113# Sed substitution to delay expansion of an escaped shell variable in a 6114# double_quote_subst'ed string. 6115delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6116 6117# Sed substitution to avoid accidental globbing in evaled expressions 6118no_glob_subst='s/\*/\\\*/g' 6119 6120# Constants: 6121rm="rm -f" 6122 6123# Global variables: 6124default_ofile=libtool 6125can_build_shared=yes 6126 6127# All known linkers require a `.a' archive for static linking (except MSVC, 6128# which needs '.lib'). 6129libext=a 6130ltmain="$ac_aux_dir/ltmain.sh" 6131ofile="$default_ofile" 6132with_gnu_ld="$lt_cv_prog_gnu_ld" 6133 6134if test -n "$ac_tool_prefix"; then 6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6136set dummy ${ac_tool_prefix}ar; ac_word=$2 6137{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6139if test "${ac_cv_prog_AR+set}" = set; then 6140 echo $ECHO_N "(cached) $ECHO_C" >&6 6141else 6142 if test -n "$AR"; then 6143 ac_cv_prog_AR="$AR" # Let the user override the test. 6144else 6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6146for as_dir in $PATH 6147do 6148 IFS=$as_save_IFS 6149 test -z "$as_dir" && as_dir=. 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6152 ac_cv_prog_AR="${ac_tool_prefix}ar" 6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6154 break 2 6155 fi 6156done 6157done 6158IFS=$as_save_IFS 6159 6160fi 6161fi 6162AR=$ac_cv_prog_AR 6163if test -n "$AR"; then 6164 { echo "$as_me:$LINENO: result: $AR" >&5 6165echo "${ECHO_T}$AR" >&6; } 6166else 6167 { echo "$as_me:$LINENO: result: no" >&5 6168echo "${ECHO_T}no" >&6; } 6169fi 6170 6171 6172fi 6173if test -z "$ac_cv_prog_AR"; then 6174 ac_ct_AR=$AR 6175 # Extract the first word of "ar", so it can be a program name with args. 6176set dummy ar; ac_word=$2 6177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6179if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181else 6182 if test -n "$ac_ct_AR"; then 6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 test -z "$as_dir" && as_dir=. 6190 for ac_exec_ext in '' $ac_executable_extensions; do 6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6192 ac_cv_prog_ac_ct_AR="ar" 6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6194 break 2 6195 fi 6196done 6197done 6198IFS=$as_save_IFS 6199 6200fi 6201fi 6202ac_ct_AR=$ac_cv_prog_ac_ct_AR 6203if test -n "$ac_ct_AR"; then 6204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6205echo "${ECHO_T}$ac_ct_AR" >&6; } 6206else 6207 { echo "$as_me:$LINENO: result: no" >&5 6208echo "${ECHO_T}no" >&6; } 6209fi 6210 6211 if test "x$ac_ct_AR" = x; then 6212 AR="false" 6213 else 6214 case $cross_compiling:$ac_tool_warned in 6215yes:) 6216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6217whose name does not start with the host triplet. If you think this 6218configuration is useful to you, please write to autoconf@gnu.org." >&5 6219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6220whose name does not start with the host triplet. If you think this 6221configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6222ac_tool_warned=yes ;; 6223esac 6224 AR=$ac_ct_AR 6225 fi 6226else 6227 AR="$ac_cv_prog_AR" 6228fi 6229 6230if test -n "$ac_tool_prefix"; then 6231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6232set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6233{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6235if test "${ac_cv_prog_RANLIB+set}" = set; then 6236 echo $ECHO_N "(cached) $ECHO_C" >&6 6237else 6238 if test -n "$RANLIB"; then 6239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6240else 6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6242for as_dir in $PATH 6243do 6244 IFS=$as_save_IFS 6245 test -z "$as_dir" && as_dir=. 6246 for ac_exec_ext in '' $ac_executable_extensions; do 6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6250 break 2 6251 fi 6252done 6253done 6254IFS=$as_save_IFS 6255 6256fi 6257fi 6258RANLIB=$ac_cv_prog_RANLIB 6259if test -n "$RANLIB"; then 6260 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6261echo "${ECHO_T}$RANLIB" >&6; } 6262else 6263 { echo "$as_me:$LINENO: result: no" >&5 6264echo "${ECHO_T}no" >&6; } 6265fi 6266 6267 6268fi 6269if test -z "$ac_cv_prog_RANLIB"; then 6270 ac_ct_RANLIB=$RANLIB 6271 # Extract the first word of "ranlib", so it can be a program name with args. 6272set dummy ranlib; ac_word=$2 6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6276 echo $ECHO_N "(cached) $ECHO_C" >&6 6277else 6278 if test -n "$ac_ct_RANLIB"; then 6279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6280else 6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282for as_dir in $PATH 6283do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6288 ac_cv_prog_ac_ct_RANLIB="ranlib" 6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292done 6293done 6294IFS=$as_save_IFS 6295 6296fi 6297fi 6298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6299if test -n "$ac_ct_RANLIB"; then 6300 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6301echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6302else 6303 { echo "$as_me:$LINENO: result: no" >&5 6304echo "${ECHO_T}no" >&6; } 6305fi 6306 6307 if test "x$ac_ct_RANLIB" = x; then 6308 RANLIB=":" 6309 else 6310 case $cross_compiling:$ac_tool_warned in 6311yes:) 6312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6313whose name does not start with the host triplet. If you think this 6314configuration is useful to you, please write to autoconf@gnu.org." >&5 6315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6316whose name does not start with the host triplet. If you think this 6317configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6318ac_tool_warned=yes ;; 6319esac 6320 RANLIB=$ac_ct_RANLIB 6321 fi 6322else 6323 RANLIB="$ac_cv_prog_RANLIB" 6324fi 6325 6326if test -n "$ac_tool_prefix"; then 6327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6328set dummy ${ac_tool_prefix}strip; ac_word=$2 6329{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6331if test "${ac_cv_prog_STRIP+set}" = set; then 6332 echo $ECHO_N "(cached) $ECHO_C" >&6 6333else 6334 if test -n "$STRIP"; then 6335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354STRIP=$ac_cv_prog_STRIP 6355if test -n "$STRIP"; then 6356 { echo "$as_me:$LINENO: result: $STRIP" >&5 6357echo "${ECHO_T}$STRIP" >&6; } 6358else 6359 { echo "$as_me:$LINENO: result: no" >&5 6360echo "${ECHO_T}no" >&6; } 6361fi 6362 6363 6364fi 6365if test -z "$ac_cv_prog_STRIP"; then 6366 ac_ct_STRIP=$STRIP 6367 # Extract the first word of "strip", so it can be a program name with args. 6368set dummy strip; ac_word=$2 6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6371if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6372 echo $ECHO_N "(cached) $ECHO_C" >&6 6373else 6374 if test -n "$ac_ct_STRIP"; then 6375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6376else 6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6378for as_dir in $PATH 6379do 6380 IFS=$as_save_IFS 6381 test -z "$as_dir" && as_dir=. 6382 for ac_exec_ext in '' $ac_executable_extensions; do 6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6384 ac_cv_prog_ac_ct_STRIP="strip" 6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6386 break 2 6387 fi 6388done 6389done 6390IFS=$as_save_IFS 6391 6392fi 6393fi 6394ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6395if test -n "$ac_ct_STRIP"; then 6396 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6397echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6398else 6399 { echo "$as_me:$LINENO: result: no" >&5 6400echo "${ECHO_T}no" >&6; } 6401fi 6402 6403 if test "x$ac_ct_STRIP" = x; then 6404 STRIP=":" 6405 else 6406 case $cross_compiling:$ac_tool_warned in 6407yes:) 6408{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6409whose name does not start with the host triplet. If you think this 6410configuration is useful to you, please write to autoconf@gnu.org." >&5 6411echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6412whose name does not start with the host triplet. If you think this 6413configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6414ac_tool_warned=yes ;; 6415esac 6416 STRIP=$ac_ct_STRIP 6417 fi 6418else 6419 STRIP="$ac_cv_prog_STRIP" 6420fi 6421 6422 6423old_CC="$CC" 6424old_CFLAGS="$CFLAGS" 6425 6426# Set sane defaults for various variables 6427test -z "$AR" && AR=ar 6428test -z "$AR_FLAGS" && AR_FLAGS=cru 6429test -z "$AS" && AS=as 6430test -z "$CC" && CC=cc 6431test -z "$LTCC" && LTCC=$CC 6432test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6433test -z "$DLLTOOL" && DLLTOOL=dlltool 6434test -z "$LD" && LD=ld 6435test -z "$LN_S" && LN_S="ln -s" 6436test -z "$MAGIC_CMD" && MAGIC_CMD=file 6437test -z "$NM" && NM=nm 6438test -z "$SED" && SED=sed 6439test -z "$OBJDUMP" && OBJDUMP=objdump 6440test -z "$RANLIB" && RANLIB=: 6441test -z "$STRIP" && STRIP=: 6442test -z "$ac_objext" && ac_objext=o 6443 6444# Determine commands to create old-style static archives. 6445old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6446old_postinstall_cmds='chmod 644 $oldlib' 6447old_postuninstall_cmds= 6448 6449if test -n "$RANLIB"; then 6450 case $host_os in 6451 openbsd*) 6452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6453 ;; 6454 *) 6455 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6456 ;; 6457 esac 6458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6459fi 6460 6461for cc_temp in $compiler""; do 6462 case $cc_temp in 6463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6465 \-*) ;; 6466 *) break;; 6467 esac 6468done 6469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6470 6471 6472# Only perform the check for file, if the check method requires it 6473case $deplibs_check_method in 6474file_magic*) 6475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6476 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6477echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6478if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6479 echo $ECHO_N "(cached) $ECHO_C" >&6 6480else 6481 case $MAGIC_CMD in 6482[\\/*] | ?:[\\/]*) 6483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6484 ;; 6485*) 6486 lt_save_MAGIC_CMD="$MAGIC_CMD" 6487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6489 for ac_dir in $ac_dummy; do 6490 IFS="$lt_save_ifs" 6491 test -z "$ac_dir" && ac_dir=. 6492 if test -f $ac_dir/${ac_tool_prefix}file; then 6493 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6494 if test -n "$file_magic_test_file"; then 6495 case $deplibs_check_method in 6496 "file_magic "*) 6497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6500 $EGREP "$file_magic_regex" > /dev/null; then 6501 : 6502 else 6503 cat <<EOF 1>&2 6504 6505*** Warning: the command libtool uses to detect shared libraries, 6506*** $file_magic_cmd, produces output that libtool cannot recognize. 6507*** The result is that libtool may fail to recognize shared libraries 6508*** as such. This will affect the creation of libtool libraries that 6509*** depend on shared libraries, but programs linked with such libtool 6510*** libraries will work regardless of this problem. Nevertheless, you 6511*** may want to report the problem to your system manager and/or to 6512*** bug-libtool@gnu.org 6513 6514EOF 6515 fi ;; 6516 esac 6517 fi 6518 break 6519 fi 6520 done 6521 IFS="$lt_save_ifs" 6522 MAGIC_CMD="$lt_save_MAGIC_CMD" 6523 ;; 6524esac 6525fi 6526 6527MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6528if test -n "$MAGIC_CMD"; then 6529 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6530echo "${ECHO_T}$MAGIC_CMD" >&6; } 6531else 6532 { echo "$as_me:$LINENO: result: no" >&5 6533echo "${ECHO_T}no" >&6; } 6534fi 6535 6536if test -z "$lt_cv_path_MAGIC_CMD"; then 6537 if test -n "$ac_tool_prefix"; then 6538 { echo "$as_me:$LINENO: checking for file" >&5 6539echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6540if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6541 echo $ECHO_N "(cached) $ECHO_C" >&6 6542else 6543 case $MAGIC_CMD in 6544[\\/*] | ?:[\\/]*) 6545 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6546 ;; 6547*) 6548 lt_save_MAGIC_CMD="$MAGIC_CMD" 6549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6551 for ac_dir in $ac_dummy; do 6552 IFS="$lt_save_ifs" 6553 test -z "$ac_dir" && ac_dir=. 6554 if test -f $ac_dir/file; then 6555 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6556 if test -n "$file_magic_test_file"; then 6557 case $deplibs_check_method in 6558 "file_magic "*) 6559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6562 $EGREP "$file_magic_regex" > /dev/null; then 6563 : 6564 else 6565 cat <<EOF 1>&2 6566 6567*** Warning: the command libtool uses to detect shared libraries, 6568*** $file_magic_cmd, produces output that libtool cannot recognize. 6569*** The result is that libtool may fail to recognize shared libraries 6570*** as such. This will affect the creation of libtool libraries that 6571*** depend on shared libraries, but programs linked with such libtool 6572*** libraries will work regardless of this problem. Nevertheless, you 6573*** may want to report the problem to your system manager and/or to 6574*** bug-libtool@gnu.org 6575 6576EOF 6577 fi ;; 6578 esac 6579 fi 6580 break 6581 fi 6582 done 6583 IFS="$lt_save_ifs" 6584 MAGIC_CMD="$lt_save_MAGIC_CMD" 6585 ;; 6586esac 6587fi 6588 6589MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6590if test -n "$MAGIC_CMD"; then 6591 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6592echo "${ECHO_T}$MAGIC_CMD" >&6; } 6593else 6594 { echo "$as_me:$LINENO: result: no" >&5 6595echo "${ECHO_T}no" >&6; } 6596fi 6597 6598 else 6599 MAGIC_CMD=: 6600 fi 6601fi 6602 6603 fi 6604 ;; 6605esac 6606 6607enable_dlopen=no 6608enable_win32_dll=no 6609 6610# Check whether --enable-libtool-lock was given. 6611if test "${enable_libtool_lock+set}" = set; then 6612 enableval=$enable_libtool_lock; 6613fi 6614 6615test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6616 6617 6618# Check whether --with-pic was given. 6619if test "${with_pic+set}" = set; then 6620 withval=$with_pic; pic_mode="$withval" 6621else 6622 pic_mode=default 6623fi 6624 6625test -z "$pic_mode" && pic_mode=default 6626 6627# Use C for the default configuration in the libtool script 6628tagname= 6629lt_save_CC="$CC" 6630ac_ext=c 6631ac_cpp='$CPP $CPPFLAGS' 6632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6634ac_compiler_gnu=$ac_cv_c_compiler_gnu 6635 6636 6637# Source file extension for C test sources. 6638ac_ext=c 6639 6640# Object file extension for compiled C test sources. 6641objext=o 6642objext=$objext 6643 6644# Code to be used in simple compile tests 6645lt_simple_compile_test_code="int some_variable = 0;\n" 6646 6647# Code to be used in simple link tests 6648lt_simple_link_test_code='int main(){return(0);}\n' 6649 6650 6651# If no C compiler was specified, use CC. 6652LTCC=${LTCC-"$CC"} 6653 6654# If no C compiler flags were specified, use CFLAGS. 6655LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6656 6657# Allow CC to be a program name with arguments. 6658compiler=$CC 6659 6660 6661# save warnings/boilerplate of simple test code 6662ac_outfile=conftest.$ac_objext 6663printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6665_lt_compiler_boilerplate=`cat conftest.err` 6666$rm conftest* 6667 6668ac_outfile=conftest.$ac_objext 6669printf "$lt_simple_link_test_code" >conftest.$ac_ext 6670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6671_lt_linker_boilerplate=`cat conftest.err` 6672$rm conftest* 6673 6674 6675## CAVEAT EMPTOR: 6676## There is no encapsulation within the following macros, do not change 6677## the running order or otherwise move them around unless you know exactly 6678## what you are doing... 6679 6680lt_prog_compiler_no_builtin_flag= 6681 6682if test "$GCC" = yes; then 6683 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6684 6685 6686{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6687echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 6688if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6689 echo $ECHO_N "(cached) $ECHO_C" >&6 6690else 6691 lt_cv_prog_compiler_rtti_exceptions=no 6692 ac_outfile=conftest.$ac_objext 6693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6694 lt_compiler_flag="-fno-rtti -fno-exceptions" 6695 # Insert the option either (1) after the last *FLAGS variable, or 6696 # (2) before a word containing "conftest.", or (3) at the end. 6697 # Note that $ac_compile itself does not contain backslashes and begins 6698 # with a dollar sign (not a hyphen), so the echo should work correctly. 6699 # The option is referenced via a variable to avoid confusing sed. 6700 lt_compile=`echo "$ac_compile" | $SED \ 6701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6703 -e 's:$: $lt_compiler_flag:'` 6704 (eval echo "\"\$as_me:6704: $lt_compile\"" >&5) 6705 (eval "$lt_compile" 2>conftest.err) 6706 ac_status=$? 6707 cat conftest.err >&5 6708 echo "$as_me:6708: \$? = $ac_status" >&5 6709 if (exit $ac_status) && test -s "$ac_outfile"; then 6710 # The compiler can only warn and ignore the option if not recognized 6711 # So say no if there are warnings other than the usual output. 6712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6715 lt_cv_prog_compiler_rtti_exceptions=yes 6716 fi 6717 fi 6718 $rm conftest* 6719 6720fi 6721{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6722echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6723 6724if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6725 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6726else 6727 : 6728fi 6729 6730fi 6731 6732lt_prog_compiler_wl= 6733lt_prog_compiler_pic= 6734lt_prog_compiler_static= 6735 6736{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6737echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 6738 6739 if test "$GCC" = yes; then 6740 lt_prog_compiler_wl='-Wl,' 6741 lt_prog_compiler_static='-static' 6742 6743 case $host_os in 6744 aix*) 6745 # All AIX code is PIC. 6746 if test "$host_cpu" = ia64; then 6747 # AIX 5 now supports IA64 processor 6748 lt_prog_compiler_static='-Bstatic' 6749 fi 6750 ;; 6751 6752 amigaos*) 6753 # FIXME: we need at least 68020 code to build shared libraries, but 6754 # adding the `-m68020' flag to GCC prevents building anything better, 6755 # like `-m68040'. 6756 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6757 ;; 6758 6759 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6760 # PIC is the default for these OSes. 6761 ;; 6762 6763 mingw* | pw32* | os2*) 6764 # This hack is so that the source file can tell whether it is being 6765 # built for inclusion in a dll (and should export symbols for example). 6766 lt_prog_compiler_pic='-DDLL_EXPORT' 6767 ;; 6768 6769 darwin* | rhapsody*) 6770 # PIC is the default on this platform 6771 # Common symbols not allowed in MH_DYLIB files 6772 lt_prog_compiler_pic='-fno-common' 6773 ;; 6774 6775 interix3*) 6776 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6777 # Instead, we relocate shared libraries at runtime. 6778 ;; 6779 6780 msdosdjgpp*) 6781 # Just because we use GCC doesn't mean we suddenly get shared libraries 6782 # on systems that don't support them. 6783 lt_prog_compiler_can_build_shared=no 6784 enable_shared=no 6785 ;; 6786 6787 sysv4*MP*) 6788 if test -d /usr/nec; then 6789 lt_prog_compiler_pic=-Kconform_pic 6790 fi 6791 ;; 6792 6793 hpux*) 6794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6795 # not for PA HP-UX. 6796 case $host_cpu in 6797 hppa*64*|ia64*) 6798 # +Z the default 6799 ;; 6800 *) 6801 lt_prog_compiler_pic='-fPIC' 6802 ;; 6803 esac 6804 ;; 6805 6806 *) 6807 lt_prog_compiler_pic='-fPIC' 6808 ;; 6809 esac 6810 else 6811 # PORTME Check for flag to pass linker flags through the system compiler. 6812 case $host_os in 6813 aix*) 6814 lt_prog_compiler_wl='-Wl,' 6815 if test "$host_cpu" = ia64; then 6816 # AIX 5 now supports IA64 processor 6817 lt_prog_compiler_static='-Bstatic' 6818 else 6819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6820 fi 6821 ;; 6822 darwin*) 6823 # PIC is the default on this platform 6824 # Common symbols not allowed in MH_DYLIB files 6825 case $cc_basename in 6826 xlc*) 6827 lt_prog_compiler_pic='-qnocommon' 6828 lt_prog_compiler_wl='-Wl,' 6829 ;; 6830 esac 6831 ;; 6832 6833 mingw* | pw32* | os2*) 6834 # This hack is so that the source file can tell whether it is being 6835 # built for inclusion in a dll (and should export symbols for example). 6836 lt_prog_compiler_pic='-DDLL_EXPORT' 6837 ;; 6838 6839 hpux9* | hpux10* | hpux11*) 6840 lt_prog_compiler_wl='-Wl,' 6841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6842 # not for PA HP-UX. 6843 case $host_cpu in 6844 hppa*64*|ia64*) 6845 # +Z the default 6846 ;; 6847 *) 6848 lt_prog_compiler_pic='+Z' 6849 ;; 6850 esac 6851 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6852 lt_prog_compiler_static='${wl}-a ${wl}archive' 6853 ;; 6854 6855 irix5* | irix6* | nonstopux*) 6856 lt_prog_compiler_wl='-Wl,' 6857 # PIC (with -KPIC) is the default. 6858 lt_prog_compiler_static='-non_shared' 6859 ;; 6860 6861 newsos6) 6862 lt_prog_compiler_pic='-KPIC' 6863 lt_prog_compiler_static='-Bstatic' 6864 ;; 6865 6866 linux*) 6867 case $cc_basename in 6868 icc* | ecc*) 6869 lt_prog_compiler_wl='-Wl,' 6870 lt_prog_compiler_pic='-KPIC' 6871 lt_prog_compiler_static='-static' 6872 ;; 6873 pgcc* | pgf77* | pgf90* | pgf95*) 6874 # Portland Group compilers (*not* the Pentium gcc compiler, 6875 # which looks to be a dead project) 6876 lt_prog_compiler_wl='-Wl,' 6877 lt_prog_compiler_pic='-fpic' 6878 lt_prog_compiler_static='-Bstatic' 6879 ;; 6880 ccc*) 6881 lt_prog_compiler_wl='-Wl,' 6882 # All Alpha code is PIC. 6883 lt_prog_compiler_static='-non_shared' 6884 ;; 6885 esac 6886 ;; 6887 6888 osf3* | osf4* | osf5*) 6889 lt_prog_compiler_wl='-Wl,' 6890 # All OSF/1 code is PIC. 6891 lt_prog_compiler_static='-non_shared' 6892 ;; 6893 6894 solaris*) 6895 lt_prog_compiler_pic='-KPIC' 6896 lt_prog_compiler_static='-Bstatic' 6897 case $cc_basename in 6898 f77* | f90* | f95*) 6899 lt_prog_compiler_wl='-Qoption ld ';; 6900 *) 6901 lt_prog_compiler_wl='-Wl,';; 6902 esac 6903 ;; 6904 6905 sunos4*) 6906 lt_prog_compiler_wl='-Qoption ld ' 6907 lt_prog_compiler_pic='-PIC' 6908 lt_prog_compiler_static='-Bstatic' 6909 ;; 6910 6911 sysv4 | sysv4.2uw2* | sysv4.3*) 6912 lt_prog_compiler_wl='-Wl,' 6913 lt_prog_compiler_pic='-KPIC' 6914 lt_prog_compiler_static='-Bstatic' 6915 ;; 6916 6917 sysv4*MP*) 6918 if test -d /usr/nec ;then 6919 lt_prog_compiler_pic='-Kconform_pic' 6920 lt_prog_compiler_static='-Bstatic' 6921 fi 6922 ;; 6923 6924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6925 lt_prog_compiler_wl='-Wl,' 6926 lt_prog_compiler_pic='-KPIC' 6927 lt_prog_compiler_static='-Bstatic' 6928 ;; 6929 6930 unicos*) 6931 lt_prog_compiler_wl='-Wl,' 6932 lt_prog_compiler_can_build_shared=no 6933 ;; 6934 6935 uts4*) 6936 lt_prog_compiler_pic='-pic' 6937 lt_prog_compiler_static='-Bstatic' 6938 ;; 6939 6940 *) 6941 lt_prog_compiler_can_build_shared=no 6942 ;; 6943 esac 6944 fi 6945 6946{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6947echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 6948 6949# 6950# Check to make sure the PIC flag actually works. 6951# 6952if test -n "$lt_prog_compiler_pic"; then 6953 6954{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6955echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 6956if test "${lt_prog_compiler_pic_works+set}" = set; then 6957 echo $ECHO_N "(cached) $ECHO_C" >&6 6958else 6959 lt_prog_compiler_pic_works=no 6960 ac_outfile=conftest.$ac_objext 6961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6963 # Insert the option either (1) after the last *FLAGS variable, or 6964 # (2) before a word containing "conftest.", or (3) at the end. 6965 # Note that $ac_compile itself does not contain backslashes and begins 6966 # with a dollar sign (not a hyphen), so the echo should work correctly. 6967 # The option is referenced via a variable to avoid confusing sed. 6968 lt_compile=`echo "$ac_compile" | $SED \ 6969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6971 -e 's:$: $lt_compiler_flag:'` 6972 (eval echo "\"\$as_me:6972: $lt_compile\"" >&5) 6973 (eval "$lt_compile" 2>conftest.err) 6974 ac_status=$? 6975 cat conftest.err >&5 6976 echo "$as_me:6976: \$? = $ac_status" >&5 6977 if (exit $ac_status) && test -s "$ac_outfile"; then 6978 # The compiler can only warn and ignore the option if not recognized 6979 # So say no if there are warnings other than the usual output. 6980 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6983 lt_prog_compiler_pic_works=yes 6984 fi 6985 fi 6986 $rm conftest* 6987 6988fi 6989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6990echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 6991 6992if test x"$lt_prog_compiler_pic_works" = xyes; then 6993 case $lt_prog_compiler_pic in 6994 "" | " "*) ;; 6995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6996 esac 6997else 6998 lt_prog_compiler_pic= 6999 lt_prog_compiler_can_build_shared=no 7000fi 7001 7002fi 7003case $host_os in 7004 # For platforms which do not support PIC, -DPIC is meaningless: 7005 *djgpp*) 7006 lt_prog_compiler_pic= 7007 ;; 7008 *) 7009 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7010 ;; 7011esac 7012 7013# 7014# Check to make sure the static flag actually works. 7015# 7016wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7017{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7018echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7019if test "${lt_prog_compiler_static_works+set}" = set; then 7020 echo $ECHO_N "(cached) $ECHO_C" >&6 7021else 7022 lt_prog_compiler_static_works=no 7023 save_LDFLAGS="$LDFLAGS" 7024 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7025 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7026 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7027 # The linker can only warn and ignore the option if not recognized 7028 # So say no if there are warnings 7029 if test -s conftest.err; then 7030 # Append any errors to the config.log. 7031 cat conftest.err 1>&5 7032 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7034 if diff conftest.exp conftest.er2 >/dev/null; then 7035 lt_prog_compiler_static_works=yes 7036 fi 7037 else 7038 lt_prog_compiler_static_works=yes 7039 fi 7040 fi 7041 $rm conftest* 7042 LDFLAGS="$save_LDFLAGS" 7043 7044fi 7045{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7046echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7047 7048if test x"$lt_prog_compiler_static_works" = xyes; then 7049 : 7050else 7051 lt_prog_compiler_static= 7052fi 7053 7054 7055{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7056echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7057if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7058 echo $ECHO_N "(cached) $ECHO_C" >&6 7059else 7060 lt_cv_prog_compiler_c_o=no 7061 $rm -r conftest 2>/dev/null 7062 mkdir conftest 7063 cd conftest 7064 mkdir out 7065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7066 7067 lt_compiler_flag="-o out/conftest2.$ac_objext" 7068 # Insert the option either (1) after the last *FLAGS variable, or 7069 # (2) before a word containing "conftest.", or (3) at the end. 7070 # Note that $ac_compile itself does not contain backslashes and begins 7071 # with a dollar sign (not a hyphen), so the echo should work correctly. 7072 lt_compile=`echo "$ac_compile" | $SED \ 7073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7075 -e 's:$: $lt_compiler_flag:'` 7076 (eval echo "\"\$as_me:7076: $lt_compile\"" >&5) 7077 (eval "$lt_compile" 2>out/conftest.err) 7078 ac_status=$? 7079 cat out/conftest.err >&5 7080 echo "$as_me:7080: \$? = $ac_status" >&5 7081 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7082 then 7083 # The compiler can only warn and ignore the option if not recognized 7084 # So say no if there are warnings 7085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7088 lt_cv_prog_compiler_c_o=yes 7089 fi 7090 fi 7091 chmod u+w . 2>&5 7092 $rm conftest* 7093 # SGI C++ compiler will create directory out/ii_files/ for 7094 # template instantiation 7095 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7096 $rm out/* && rmdir out 7097 cd .. 7098 rmdir conftest 7099 $rm conftest* 7100 7101fi 7102{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7103echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7104 7105 7106hard_links="nottested" 7107if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7108 # do not overwrite the value of need_locks provided by the user 7109 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7110echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7111 hard_links=yes 7112 $rm conftest* 7113 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7114 touch conftest.a 7115 ln conftest.a conftest.b 2>&5 || hard_links=no 7116 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7117 { echo "$as_me:$LINENO: result: $hard_links" >&5 7118echo "${ECHO_T}$hard_links" >&6; } 7119 if test "$hard_links" = no; then 7120 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7121echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7122 need_locks=warn 7123 fi 7124else 7125 need_locks=no 7126fi 7127 7128{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7129echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7130 7131 runpath_var= 7132 allow_undefined_flag= 7133 enable_shared_with_static_runtimes=no 7134 archive_cmds= 7135 archive_expsym_cmds= 7136 old_archive_From_new_cmds= 7137 old_archive_from_expsyms_cmds= 7138 export_dynamic_flag_spec= 7139 whole_archive_flag_spec= 7140 thread_safe_flag_spec= 7141 hardcode_libdir_flag_spec= 7142 hardcode_libdir_flag_spec_ld= 7143 hardcode_libdir_separator= 7144 hardcode_direct=no 7145 hardcode_minus_L=no 7146 hardcode_shlibpath_var=unsupported 7147 link_all_deplibs=unknown 7148 hardcode_automatic=no 7149 module_cmds= 7150 module_expsym_cmds= 7151 always_export_symbols=no 7152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7153 # include_expsyms should be a list of space-separated symbols to be *always* 7154 # included in the symbol list 7155 include_expsyms= 7156 # exclude_expsyms can be an extended regexp of symbols to exclude 7157 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7159 # as well as any symbol that contains `d'. 7160 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7162 # platforms (ab)use it in PIC code, but their linkers get confused if 7163 # the symbol is explicitly referenced. Since portable code cannot 7164 # rely on this symbol name, it's probably fine to never include it in 7165 # preloaded symbol tables. 7166 extract_expsyms_cmds= 7167 # Just being paranoid about ensuring that cc_basename is set. 7168 for cc_temp in $compiler""; do 7169 case $cc_temp in 7170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7172 \-*) ;; 7173 *) break;; 7174 esac 7175done 7176cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7177 7178 case $host_os in 7179 cygwin* | mingw* | pw32*) 7180 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7181 # When not using gcc, we currently assume that we are using 7182 # Microsoft Visual C++. 7183 if test "$GCC" != yes; then 7184 with_gnu_ld=no 7185 fi 7186 ;; 7187 interix*) 7188 # we just hope/assume this is gcc and not c89 (= MSVC++) 7189 with_gnu_ld=yes 7190 ;; 7191 openbsd*) 7192 with_gnu_ld=no 7193 ;; 7194 esac 7195 7196 ld_shlibs=yes 7197 if test "$with_gnu_ld" = yes; then 7198 # If archive_cmds runs LD, not CC, wlarc should be empty 7199 wlarc='${wl}' 7200 7201 # Set some defaults for GNU ld with shared library support. These 7202 # are reset later if shared libraries are not supported. Putting them 7203 # here allows them to be overridden if necessary. 7204 runpath_var=LD_RUN_PATH 7205 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7206 export_dynamic_flag_spec='${wl}--export-dynamic' 7207 # ancient GNU ld didn't support --whole-archive et. al. 7208 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7209 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7210 else 7211 whole_archive_flag_spec= 7212 fi 7213 supports_anon_versioning=no 7214 case `$LD -v 2>/dev/null` in 7215 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7216 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7217 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7218 *\ 2.11.*) ;; # other 2.11 versions 7219 *) supports_anon_versioning=yes ;; 7220 esac 7221 7222 # See if GNU ld supports shared libraries. 7223 case $host_os in 7224 aix3* | aix4* | aix5*) 7225 # On AIX/PPC, the GNU linker is very broken 7226 if test "$host_cpu" != ia64; then 7227 ld_shlibs=no 7228 cat <<EOF 1>&2 7229 7230*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7231*** to be unable to reliably create shared libraries on AIX. 7232*** Therefore, libtool is disabling shared libraries support. If you 7233*** really care for shared libraries, you may want to modify your PATH 7234*** so that a non-GNU linker is found, and then restart. 7235 7236EOF 7237 fi 7238 ;; 7239 7240 amigaos*) 7241 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)' 7242 hardcode_libdir_flag_spec='-L$libdir' 7243 hardcode_minus_L=yes 7244 7245 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7246 # that the semantics of dynamic libraries on AmigaOS, at least up 7247 # to version 4, is to share data among multiple programs linked 7248 # with the same dynamic library. Since this doesn't match the 7249 # behavior of shared libraries on other platforms, we can't use 7250 # them. 7251 ld_shlibs=no 7252 ;; 7253 7254 beos*) 7255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7256 allow_undefined_flag=unsupported 7257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7258 # support --undefined. This deserves some investigation. FIXME 7259 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7260 else 7261 ld_shlibs=no 7262 fi 7263 ;; 7264 7265 cygwin* | mingw* | pw32*) 7266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7267 # as there is no search path for DLLs. 7268 hardcode_libdir_flag_spec='-L$libdir' 7269 allow_undefined_flag=unsupported 7270 always_export_symbols=no 7271 enable_shared_with_static_runtimes=yes 7272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7273 7274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7276 # If the export-symbols file already is a .def file (1st line 7277 # is EXPORTS), use it as is; otherwise, prepend... 7278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7279 cp $export_symbols $output_objdir/$soname.def; 7280 else 7281 echo EXPORTS > $output_objdir/$soname.def; 7282 cat $export_symbols >> $output_objdir/$soname.def; 7283 fi~ 7284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7285 else 7286 ld_shlibs=no 7287 fi 7288 ;; 7289 7290 interix3*) 7291 hardcode_direct=no 7292 hardcode_shlibpath_var=no 7293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7294 export_dynamic_flag_spec='${wl}-E' 7295 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7296 # Instead, shared libraries are loaded at an image base (0x10000000 by 7297 # default) and relocated if they conflict, which is a slow very memory 7298 # consuming and fragmenting process. To avoid this, we pick a random, 7299 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7300 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7302 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' 7303 ;; 7304 7305 linux*) 7306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7307 tmp_addflag= 7308 case $cc_basename,$host_cpu in 7309 pgcc*) # Portland Group C compiler 7310 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' 7311 tmp_addflag=' $pic_flag' 7312 ;; 7313 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7314 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' 7315 tmp_addflag=' $pic_flag -Mnomain' ;; 7316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7317 tmp_addflag=' -i_dynamic' ;; 7318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7319 tmp_addflag=' -i_dynamic -nofor_main' ;; 7320 ifc* | ifort*) # Intel Fortran compiler 7321 tmp_addflag=' -nofor_main' ;; 7322 esac 7323 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7324 7325 if test $supports_anon_versioning = yes; then 7326 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7328 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7329 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7330 fi 7331 else 7332 ld_shlibs=no 7333 fi 7334 ;; 7335 7336 netbsd*) 7337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7338 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7339 wlarc= 7340 else 7341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7343 fi 7344 ;; 7345 7346 solaris*) 7347 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7348 ld_shlibs=no 7349 cat <<EOF 1>&2 7350 7351*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7352*** create shared libraries on Solaris systems. Therefore, libtool 7353*** is disabling shared libraries support. We urge you to upgrade GNU 7354*** binutils to release 2.9.1 or newer. Another option is to modify 7355*** your PATH or compiler configuration so that the native linker is 7356*** used, and then restart. 7357 7358EOF 7359 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7362 else 7363 ld_shlibs=no 7364 fi 7365 ;; 7366 7367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7368 case `$LD -v 2>&1` in 7369 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7370 ld_shlibs=no 7371 cat <<_LT_EOF 1>&2 7372 7373*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7374*** reliably create shared libraries on SCO systems. Therefore, libtool 7375*** is disabling shared libraries support. We urge you to upgrade GNU 7376*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7377*** your PATH or compiler configuration so that the native linker is 7378*** used, and then restart. 7379 7380_LT_EOF 7381 ;; 7382 *) 7383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7384 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7387 else 7388 ld_shlibs=no 7389 fi 7390 ;; 7391 esac 7392 ;; 7393 7394 sunos4*) 7395 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7396 wlarc= 7397 hardcode_direct=yes 7398 hardcode_shlibpath_var=no 7399 ;; 7400 7401 *) 7402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7405 else 7406 ld_shlibs=no 7407 fi 7408 ;; 7409 esac 7410 7411 if test "$ld_shlibs" = no; then 7412 runpath_var= 7413 hardcode_libdir_flag_spec= 7414 export_dynamic_flag_spec= 7415 whole_archive_flag_spec= 7416 fi 7417 else 7418 # PORTME fill in a description of your system's linker (not GNU ld) 7419 case $host_os in 7420 aix3*) 7421 allow_undefined_flag=unsupported 7422 always_export_symbols=yes 7423 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' 7424 # Note: this linker hardcodes the directories in LIBPATH if there 7425 # are no directories specified by -L. 7426 hardcode_minus_L=yes 7427 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7428 # Neither direct hardcoding nor static linking is supported with a 7429 # broken collect2. 7430 hardcode_direct=unsupported 7431 fi 7432 ;; 7433 7434 aix4* | aix5*) 7435 if test "$host_cpu" = ia64; then 7436 # On IA64, the linker does run time linking by default, so we don't 7437 # have to do anything special. 7438 aix_use_runtimelinking=no 7439 exp_sym_flag='-Bexport' 7440 no_entry_flag="" 7441 else 7442 # If we're using GNU nm, then we don't want the "-C" option. 7443 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7445 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' 7446 else 7447 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' 7448 fi 7449 aix_use_runtimelinking=no 7450 7451 # Test if we are trying to use run time linking or normal 7452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7453 # need to do runtime linking. 7454 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7455 for ld_flag in $LDFLAGS; do 7456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7457 aix_use_runtimelinking=yes 7458 break 7459 fi 7460 done 7461 ;; 7462 esac 7463 7464 exp_sym_flag='-bexport' 7465 no_entry_flag='-bnoentry' 7466 fi 7467 7468 # When large executables or shared objects are built, AIX ld can 7469 # have problems creating the table of contents. If linking a library 7470 # or program results in "error TOC overflow" add -mminimal-toc to 7471 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7472 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7473 7474 archive_cmds='' 7475 hardcode_direct=yes 7476 hardcode_libdir_separator=':' 7477 link_all_deplibs=yes 7478 7479 if test "$GCC" = yes; then 7480 case $host_os in aix4.[012]|aix4.[012].*) 7481 # We only want to do this on AIX 4.2 and lower, the check 7482 # below for broken collect2 doesn't work under 4.3+ 7483 collect2name=`${CC} -print-prog-name=collect2` 7484 if test -f "$collect2name" && \ 7485 strings "$collect2name" | grep resolve_lib_name >/dev/null 7486 then 7487 # We have reworked collect2 7488 hardcode_direct=yes 7489 else 7490 # We have old collect2 7491 hardcode_direct=unsupported 7492 # It fails to find uninstalled libraries when the uninstalled 7493 # path is not listed in the libpath. Setting hardcode_minus_L 7494 # to unsupported forces relinking 7495 hardcode_minus_L=yes 7496 hardcode_libdir_flag_spec='-L$libdir' 7497 hardcode_libdir_separator= 7498 fi 7499 ;; 7500 esac 7501 shared_flag='-shared' 7502 if test "$aix_use_runtimelinking" = yes; then 7503 shared_flag="$shared_flag "'${wl}-G' 7504 fi 7505 else 7506 # not using gcc 7507 if test "$host_cpu" = ia64; then 7508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7509 # chokes on -Wl,-G. The following line is correct: 7510 shared_flag='-G' 7511 else 7512 if test "$aix_use_runtimelinking" = yes; then 7513 shared_flag='${wl}-G' 7514 else 7515 shared_flag='${wl}-bM:SRE' 7516 fi 7517 fi 7518 fi 7519 7520 # It seems that -bexpall does not export symbols beginning with 7521 # underscore (_), so it is better to generate a list of symbols to export. 7522 always_export_symbols=yes 7523 if test "$aix_use_runtimelinking" = yes; then 7524 # Warning - without using the other runtime loading flags (-brtl), 7525 # -berok will link without error, but may produce a broken library. 7526 allow_undefined_flag='-berok' 7527 # Determine the default libpath from the value encoded in an empty executable. 7528 cat >conftest.$ac_ext <<_ACEOF 7529/* confdefs.h. */ 7530_ACEOF 7531cat confdefs.h >>conftest.$ac_ext 7532cat >>conftest.$ac_ext <<_ACEOF 7533/* end confdefs.h. */ 7534 7535int 7536main () 7537{ 7538 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543rm -f conftest.$ac_objext conftest$ac_exeext 7544if { (ac_try="$ac_link" 7545case "(($ac_try" in 7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7547 *) ac_try_echo=$ac_try;; 7548esac 7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7550 (eval "$ac_link") 2>conftest.er1 7551 ac_status=$? 7552 grep -v '^ *+' conftest.er1 >conftest.err 7553 rm -f conftest.er1 7554 cat conftest.err >&5 7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7556 (exit $ac_status); } && { 7557 test -z "$ac_c_werror_flag" || 7558 test ! -s conftest.err 7559 } && test -s conftest$ac_exeext && 7560 $as_test_x conftest$ac_exeext; then 7561 7562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7563}'` 7564# Check for a 64-bit object if we didn't find anything. 7565if 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; } 7566}'`; fi 7567else 7568 echo "$as_me: failed program was:" >&5 7569sed 's/^/| /' conftest.$ac_ext >&5 7570 7571 7572fi 7573 7574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7575 conftest$ac_exeext conftest.$ac_ext 7576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7577 7578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7579 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" 7580 else 7581 if test "$host_cpu" = ia64; then 7582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7583 allow_undefined_flag="-z nodefs" 7584 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" 7585 else 7586 # Determine the default libpath from the value encoded in an empty executable. 7587 cat >conftest.$ac_ext <<_ACEOF 7588/* confdefs.h. */ 7589_ACEOF 7590cat confdefs.h >>conftest.$ac_ext 7591cat >>conftest.$ac_ext <<_ACEOF 7592/* end confdefs.h. */ 7593 7594int 7595main () 7596{ 7597 7598 ; 7599 return 0; 7600} 7601_ACEOF 7602rm -f conftest.$ac_objext conftest$ac_exeext 7603if { (ac_try="$ac_link" 7604case "(($ac_try" in 7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7606 *) ac_try_echo=$ac_try;; 7607esac 7608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7609 (eval "$ac_link") 2>conftest.er1 7610 ac_status=$? 7611 grep -v '^ *+' conftest.er1 >conftest.err 7612 rm -f conftest.er1 7613 cat conftest.err >&5 7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7615 (exit $ac_status); } && { 7616 test -z "$ac_c_werror_flag" || 7617 test ! -s conftest.err 7618 } && test -s conftest$ac_exeext && 7619 $as_test_x conftest$ac_exeext; then 7620 7621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7622}'` 7623# Check for a 64-bit object if we didn't find anything. 7624if 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; } 7625}'`; fi 7626else 7627 echo "$as_me: failed program was:" >&5 7628sed 's/^/| /' conftest.$ac_ext >&5 7629 7630 7631fi 7632 7633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7634 conftest$ac_exeext conftest.$ac_ext 7635if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7636 7637 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7638 # Warning - without using the other run time loading flags, 7639 # -berok will link without error, but may produce a broken library. 7640 no_undefined_flag=' ${wl}-bernotok' 7641 allow_undefined_flag=' ${wl}-berok' 7642 # Exported symbols can be pulled into shared objects from archives 7643 whole_archive_flag_spec='$convenience' 7644 archive_cmds_need_lc=yes 7645 # This is similar to how AIX traditionally builds its shared libraries. 7646 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' 7647 fi 7648 fi 7649 ;; 7650 7651 amigaos*) 7652 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)' 7653 hardcode_libdir_flag_spec='-L$libdir' 7654 hardcode_minus_L=yes 7655 # see comment about different semantics on the GNU ld section 7656 ld_shlibs=no 7657 ;; 7658 7659 bsdi[45]*) 7660 export_dynamic_flag_spec=-rdynamic 7661 ;; 7662 7663 cygwin* | mingw* | pw32*) 7664 # When not using gcc, we currently assume that we are using 7665 # Microsoft Visual C++. 7666 # hardcode_libdir_flag_spec is actually meaningless, as there is 7667 # no search path for DLLs. 7668 hardcode_libdir_flag_spec=' ' 7669 allow_undefined_flag=unsupported 7670 # Tell ltmain to make .lib files, not .a files. 7671 libext=lib 7672 # Tell ltmain to make .dll files, not .so files. 7673 shrext_cmds=".dll" 7674 # FIXME: Setting linknames here is a bad hack. 7675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7676 # The linker will automatically build a .lib file if we build a DLL. 7677 old_archive_From_new_cmds='true' 7678 # FIXME: Should let the user specify the lib program. 7679 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7680 fix_srcfile_path='`cygpath -w "$srcfile"`' 7681 enable_shared_with_static_runtimes=yes 7682 ;; 7683 7684 darwin* | rhapsody*) 7685 case $host_os in 7686 rhapsody* | darwin1.[012]) 7687 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7688 ;; 7689 *) # Darwin 1.3 on 7690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7691 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7692 else 7693 case ${MACOSX_DEPLOYMENT_TARGET} in 7694 10.[012]) 7695 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7696 ;; 7697 10.*) 7698 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7699 ;; 7700 esac 7701 fi 7702 ;; 7703 esac 7704 archive_cmds_need_lc=no 7705 hardcode_direct=no 7706 hardcode_automatic=yes 7707 hardcode_shlibpath_var=unsupported 7708 whole_archive_flag_spec='' 7709 link_all_deplibs=yes 7710 if test "$GCC" = yes ; then 7711 output_verbose_link_cmd='echo' 7712 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7713 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7715 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}' 7716 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}' 7717 else 7718 case $cc_basename in 7719 xlc*) 7720 output_verbose_link_cmd='echo' 7721 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7722 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7724 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}' 7725 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}' 7726 ;; 7727 *) 7728 ld_shlibs=no 7729 ;; 7730 esac 7731 fi 7732 ;; 7733 7734 dgux*) 7735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7736 hardcode_libdir_flag_spec='-L$libdir' 7737 hardcode_shlibpath_var=no 7738 ;; 7739 7740 freebsd1*) 7741 ld_shlibs=no 7742 ;; 7743 7744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7745 # support. Future versions do this automatically, but an explicit c++rt0.o 7746 # does not break anything, and helps significantly (at the cost of a little 7747 # extra space). 7748 freebsd2.2*) 7749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7750 hardcode_libdir_flag_spec='-R$libdir' 7751 hardcode_direct=yes 7752 hardcode_shlibpath_var=no 7753 ;; 7754 7755 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7756 freebsd2*) 7757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7758 hardcode_direct=yes 7759 hardcode_minus_L=yes 7760 hardcode_shlibpath_var=no 7761 ;; 7762 7763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7764 freebsd* | kfreebsd*-gnu | dragonfly*) 7765 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7766 hardcode_libdir_flag_spec='-R$libdir' 7767 hardcode_direct=yes 7768 hardcode_shlibpath_var=no 7769 ;; 7770 7771 hpux9*) 7772 if test "$GCC" = yes; then 7773 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' 7774 else 7775 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' 7776 fi 7777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7778 hardcode_libdir_separator=: 7779 hardcode_direct=yes 7780 7781 # hardcode_minus_L: Not really in the search PATH, 7782 # but as the default location of the library. 7783 hardcode_minus_L=yes 7784 export_dynamic_flag_spec='${wl}-E' 7785 ;; 7786 7787 hpux10*) 7788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7790 else 7791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7792 fi 7793 if test "$with_gnu_ld" = no; then 7794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7795 hardcode_libdir_separator=: 7796 7797 hardcode_direct=yes 7798 export_dynamic_flag_spec='${wl}-E' 7799 7800 # hardcode_minus_L: Not really in the search PATH, 7801 # but as the default location of the library. 7802 hardcode_minus_L=yes 7803 fi 7804 ;; 7805 7806 hpux11*) 7807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7808 case $host_cpu in 7809 hppa*64*) 7810 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7811 ;; 7812 ia64*) 7813 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7814 ;; 7815 *) 7816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7817 ;; 7818 esac 7819 else 7820 case $host_cpu in 7821 hppa*64*) 7822 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7823 ;; 7824 ia64*) 7825 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7826 ;; 7827 *) 7828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7829 ;; 7830 esac 7831 fi 7832 if test "$with_gnu_ld" = no; then 7833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7834 hardcode_libdir_separator=: 7835 7836 case $host_cpu in 7837 hppa*64*|ia64*) 7838 hardcode_libdir_flag_spec_ld='+b $libdir' 7839 hardcode_direct=no 7840 hardcode_shlibpath_var=no 7841 ;; 7842 *) 7843 hardcode_direct=yes 7844 export_dynamic_flag_spec='${wl}-E' 7845 7846 # hardcode_minus_L: Not really in the search PATH, 7847 # but as the default location of the library. 7848 hardcode_minus_L=yes 7849 ;; 7850 esac 7851 fi 7852 ;; 7853 7854 irix5* | irix6* | nonstopux*) 7855 if test "$GCC" = yes; then 7856 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' 7857 else 7858 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' 7859 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7860 fi 7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7862 hardcode_libdir_separator=: 7863 link_all_deplibs=yes 7864 ;; 7865 7866 netbsd*) 7867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7869 else 7870 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7871 fi 7872 hardcode_libdir_flag_spec='-R$libdir' 7873 hardcode_direct=yes 7874 hardcode_shlibpath_var=no 7875 ;; 7876 7877 newsos6) 7878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7879 hardcode_direct=yes 7880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7881 hardcode_libdir_separator=: 7882 hardcode_shlibpath_var=no 7883 ;; 7884 7885 openbsd*) 7886 hardcode_direct=yes 7887 hardcode_shlibpath_var=no 7888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7890 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7892 export_dynamic_flag_spec='${wl}-E' 7893 else 7894 case $host_os in 7895 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7897 hardcode_libdir_flag_spec='-R$libdir' 7898 ;; 7899 *) 7900 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7902 ;; 7903 esac 7904 fi 7905 ;; 7906 7907 os2*) 7908 hardcode_libdir_flag_spec='-L$libdir' 7909 hardcode_minus_L=yes 7910 allow_undefined_flag=unsupported 7911 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' 7912 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7913 ;; 7914 7915 osf3*) 7916 if test "$GCC" = yes; then 7917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7918 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' 7919 else 7920 allow_undefined_flag=' -expect_unresolved \*' 7921 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' 7922 fi 7923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7924 hardcode_libdir_separator=: 7925 ;; 7926 7927 osf4* | osf5*) # as osf3* with the addition of -msym flag 7928 if test "$GCC" = yes; then 7929 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7930 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' 7931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7932 else 7933 allow_undefined_flag=' -expect_unresolved \*' 7934 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' 7935 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7936 $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' 7937 7938 # Both c and cxx compiler support -rpath directly 7939 hardcode_libdir_flag_spec='-rpath $libdir' 7940 fi 7941 hardcode_libdir_separator=: 7942 ;; 7943 7944 solaris*) 7945 no_undefined_flag=' -z text' 7946 if test "$GCC" = yes; then 7947 wlarc='${wl}' 7948 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7949 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7950 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7951 else 7952 wlarc='' 7953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7956 fi 7957 hardcode_libdir_flag_spec='-R$libdir' 7958 hardcode_shlibpath_var=no 7959 case $host_os in 7960 solaris2.[0-5] | solaris2.[0-5].*) ;; 7961 *) 7962 # The compiler driver will combine linker options so we 7963 # cannot just pass the convience library names through 7964 # without $wl, iff we do not link with $LD. 7965 # Luckily, gcc supports the same syntax we need for Sun Studio. 7966 # Supported since Solaris 2.6 (maybe 2.5.1?) 7967 case $wlarc in 7968 '') 7969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7970 *) 7971 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' ;; 7972 esac ;; 7973 esac 7974 link_all_deplibs=yes 7975 ;; 7976 7977 sunos4*) 7978 if test "x$host_vendor" = xsequent; then 7979 # Use $CC to link under sequent, because it throws in some extra .o 7980 # files that make .init and .fini sections work. 7981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7982 else 7983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7984 fi 7985 hardcode_libdir_flag_spec='-L$libdir' 7986 hardcode_direct=yes 7987 hardcode_minus_L=yes 7988 hardcode_shlibpath_var=no 7989 ;; 7990 7991 sysv4) 7992 case $host_vendor in 7993 sni) 7994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7995 hardcode_direct=yes # is this really true??? 7996 ;; 7997 siemens) 7998 ## LD is ld it makes a PLAMLIB 7999 ## CC just makes a GrossModule. 8000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8001 reload_cmds='$CC -r -o $output$reload_objs' 8002 hardcode_direct=no 8003 ;; 8004 motorola) 8005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8006 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8007 ;; 8008 esac 8009 runpath_var='LD_RUN_PATH' 8010 hardcode_shlibpath_var=no 8011 ;; 8012 8013 sysv4.3*) 8014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8015 hardcode_shlibpath_var=no 8016 export_dynamic_flag_spec='-Bexport' 8017 ;; 8018 8019 sysv4*MP*) 8020 if test -d /usr/nec; then 8021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8022 hardcode_shlibpath_var=no 8023 runpath_var=LD_RUN_PATH 8024 hardcode_runpath_var=yes 8025 ld_shlibs=yes 8026 fi 8027 ;; 8028 8029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8030 no_undefined_flag='${wl}-z,text' 8031 archive_cmds_need_lc=no 8032 hardcode_shlibpath_var=no 8033 runpath_var='LD_RUN_PATH' 8034 8035 if test "$GCC" = yes; then 8036 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8038 else 8039 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8041 fi 8042 ;; 8043 8044 sysv5* | sco3.2v5* | sco5v6*) 8045 # Note: We can NOT use -z defs as we might desire, because we do not 8046 # link with -lc, and that would cause any symbols used from libc to 8047 # always be unresolved, which means just about no library would 8048 # ever link correctly. If we're not using GNU ld we use -z text 8049 # though, which does catch some bad symbols but isn't as heavy-handed 8050 # as -z defs. 8051 no_undefined_flag='${wl}-z,text' 8052 allow_undefined_flag='${wl}-z,nodefs' 8053 archive_cmds_need_lc=no 8054 hardcode_shlibpath_var=no 8055 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8056 hardcode_libdir_separator=':' 8057 link_all_deplibs=yes 8058 export_dynamic_flag_spec='${wl}-Bexport' 8059 runpath_var='LD_RUN_PATH' 8060 8061 if test "$GCC" = yes; then 8062 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8064 else 8065 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8067 fi 8068 ;; 8069 8070 uts4*) 8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8072 hardcode_libdir_flag_spec='-L$libdir' 8073 hardcode_shlibpath_var=no 8074 ;; 8075 8076 *) 8077 ld_shlibs=no 8078 ;; 8079 esac 8080 fi 8081 8082{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8083echo "${ECHO_T}$ld_shlibs" >&6; } 8084test "$ld_shlibs" = no && can_build_shared=no 8085 8086# 8087# Do we need to explicitly link libc? 8088# 8089case "x$archive_cmds_need_lc" in 8090x|xyes) 8091 # Assume -lc should be added 8092 archive_cmds_need_lc=yes 8093 8094 if test "$enable_shared" = yes && test "$GCC" = yes; then 8095 case $archive_cmds in 8096 *'~'*) 8097 # FIXME: we may have to deal with multi-command sequences. 8098 ;; 8099 '$CC '*) 8100 # Test whether the compiler implicitly links with -lc since on some 8101 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8102 # to ld, don't add -lc before -lgcc. 8103 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8104echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8105 $rm conftest* 8106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8107 8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8109 (eval $ac_compile) 2>&5 8110 ac_status=$? 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); } 2>conftest.err; then 8113 soname=conftest 8114 lib=conftest 8115 libobjs=conftest.$ac_objext 8116 deplibs= 8117 wl=$lt_prog_compiler_wl 8118 pic_flag=$lt_prog_compiler_pic 8119 compiler_flags=-v 8120 linker_flags=-v 8121 verstring= 8122 output_objdir=. 8123 libname=conftest 8124 lt_save_allow_undefined_flag=$allow_undefined_flag 8125 allow_undefined_flag= 8126 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8127 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8128 ac_status=$? 8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8130 (exit $ac_status); } 8131 then 8132 archive_cmds_need_lc=no 8133 else 8134 archive_cmds_need_lc=yes 8135 fi 8136 allow_undefined_flag=$lt_save_allow_undefined_flag 8137 else 8138 cat conftest.err 1>&5 8139 fi 8140 $rm conftest* 8141 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8142echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8143 ;; 8144 esac 8145 fi 8146 ;; 8147esac 8148 8149{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8150echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8151library_names_spec= 8152libname_spec='lib$name' 8153soname_spec= 8154shrext_cmds=".so" 8155postinstall_cmds= 8156postuninstall_cmds= 8157finish_cmds= 8158finish_eval= 8159shlibpath_var= 8160shlibpath_overrides_runpath=unknown 8161version_type=none 8162dynamic_linker="$host_os ld.so" 8163sys_lib_dlsearch_path_spec="/lib /usr/lib" 8164if test "$GCC" = yes; then 8165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8166 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8167 # if the path contains ";" then we assume it to be the separator 8168 # otherwise default to the standard path separator (i.e. ":") - it is 8169 # assumed that no part of a normal pathname contains ";" but that should 8170 # okay in the real world where ";" in dirpaths is itself problematic. 8171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8172 else 8173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8174 fi 8175else 8176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8177fi 8178need_lib_prefix=unknown 8179hardcode_into_libs=no 8180 8181# when you set need_version to no, make sure it does not cause -set_version 8182# flags to be left without arguments 8183need_version=unknown 8184 8185case $host_os in 8186aix3*) 8187 version_type=linux 8188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8189 shlibpath_var=LIBPATH 8190 8191 # AIX 3 has no versioning support, so we append a major version to the name. 8192 soname_spec='${libname}${release}${shared_ext}$major' 8193 ;; 8194 8195aix4* | aix5*) 8196 version_type=linux 8197 need_lib_prefix=no 8198 need_version=no 8199 hardcode_into_libs=yes 8200 if test "$host_cpu" = ia64; then 8201 # AIX 5 supports IA64 8202 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8203 shlibpath_var=LD_LIBRARY_PATH 8204 else 8205 # With GCC up to 2.95.x, collect2 would create an import file 8206 # for dependence libraries. The import file would start with 8207 # the line `#! .'. This would cause the generated library to 8208 # depend on `.', always an invalid library. This was fixed in 8209 # development snapshots of GCC prior to 3.0. 8210 case $host_os in 8211 aix4 | aix4.[01] | aix4.[01].*) 8212 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8213 echo ' yes ' 8214 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8215 : 8216 else 8217 can_build_shared=no 8218 fi 8219 ;; 8220 esac 8221 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8222 # soname into executable. Probably we can add versioning support to 8223 # collect2, so additional links can be useful in future. 8224 if test "$aix_use_runtimelinking" = yes; then 8225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8226 # instead of lib<name>.a to let people know that these are not 8227 # typical AIX shared libraries. 8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8229 else 8230 # We preserve .a as extension for shared libraries through AIX4.2 8231 # and later when we are not doing run time linking. 8232 library_names_spec='${libname}${release}.a $libname.a' 8233 soname_spec='${libname}${release}${shared_ext}$major' 8234 fi 8235 shlibpath_var=LIBPATH 8236 fi 8237 ;; 8238 8239amigaos*) 8240 library_names_spec='$libname.ixlibrary $libname.a' 8241 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8242 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' 8243 ;; 8244 8245beos*) 8246 library_names_spec='${libname}${shared_ext}' 8247 dynamic_linker="$host_os ld.so" 8248 shlibpath_var=LIBRARY_PATH 8249 ;; 8250 8251bsdi[45]*) 8252 version_type=linux 8253 need_version=no 8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8255 soname_spec='${libname}${release}${shared_ext}$major' 8256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8257 shlibpath_var=LD_LIBRARY_PATH 8258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8260 # the default ld.so.conf also contains /usr/contrib/lib and 8261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8262 # libtool to hard-code these into programs 8263 ;; 8264 8265cygwin* | mingw* | pw32*) 8266 version_type=windows 8267 shrext_cmds=".dll" 8268 need_version=no 8269 need_lib_prefix=no 8270 8271 case $GCC,$host_os in 8272 yes,cygwin* | yes,mingw* | yes,pw32*) 8273 library_names_spec='$libname.dll.a' 8274 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8275 postinstall_cmds='base_file=`basename \${file}`~ 8276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8277 dldir=$destdir/`dirname \$dlpath`~ 8278 test -d \$dldir || mkdir -p \$dldir~ 8279 $install_prog $dir/$dlname \$dldir/$dlname~ 8280 chmod a+x \$dldir/$dlname' 8281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8282 dlpath=$dir/\$dldll~ 8283 $rm \$dlpath' 8284 shlibpath_overrides_runpath=yes 8285 8286 case $host_os in 8287 cygwin*) 8288 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8290 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8291 ;; 8292 mingw*) 8293 # MinGW DLLs use traditional 'lib' prefix 8294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8296 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8297 # It is most probably a Windows format PATH printed by 8298 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8299 # path with ; separators, and with drive letters. We can handle the 8300 # drive letters (cygwin fileutils understands them), so leave them, 8301 # especially as we might pass files found there to a mingw objdump, 8302 # which wouldn't understand a cygwinified path. Ahh. 8303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8304 else 8305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8306 fi 8307 ;; 8308 pw32*) 8309 # pw32 DLLs use 'pw' prefix rather than 'lib' 8310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8311 ;; 8312 esac 8313 ;; 8314 8315 *) 8316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8317 ;; 8318 esac 8319 dynamic_linker='Win32 ld.exe' 8320 # FIXME: first we should search . and the directory the executable is in 8321 shlibpath_var=PATH 8322 ;; 8323 8324darwin* | rhapsody*) 8325 dynamic_linker="$host_os dyld" 8326 version_type=darwin 8327 need_lib_prefix=no 8328 need_version=no 8329 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8330 soname_spec='${libname}${release}${major}$shared_ext' 8331 shlibpath_overrides_runpath=yes 8332 shlibpath_var=DYLD_LIBRARY_PATH 8333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8334 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8335 if test "$GCC" = yes; then 8336 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"` 8337 else 8338 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8339 fi 8340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8341 ;; 8342 8343dgux*) 8344 version_type=linux 8345 need_lib_prefix=no 8346 need_version=no 8347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8348 soname_spec='${libname}${release}${shared_ext}$major' 8349 shlibpath_var=LD_LIBRARY_PATH 8350 ;; 8351 8352freebsd1*) 8353 dynamic_linker=no 8354 ;; 8355 8356kfreebsd*-gnu) 8357 version_type=linux 8358 need_lib_prefix=no 8359 need_version=no 8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8361 soname_spec='${libname}${release}${shared_ext}$major' 8362 shlibpath_var=LD_LIBRARY_PATH 8363 shlibpath_overrides_runpath=no 8364 hardcode_into_libs=yes 8365 dynamic_linker='GNU ld.so' 8366 ;; 8367 8368freebsd* | dragonfly*) 8369 # DragonFly does not have aout. When/if they implement a new 8370 # versioning mechanism, adjust this. 8371 if test -x /usr/bin/objformat; then 8372 objformat=`/usr/bin/objformat` 8373 else 8374 case $host_os in 8375 freebsd[123]*) objformat=aout ;; 8376 *) objformat=elf ;; 8377 esac 8378 fi 8379 version_type=freebsd-$objformat 8380 case $version_type in 8381 freebsd-elf*) 8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8383 need_version=no 8384 need_lib_prefix=no 8385 ;; 8386 freebsd-*) 8387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8388 need_version=yes 8389 ;; 8390 esac 8391 shlibpath_var=LD_LIBRARY_PATH 8392 case $host_os in 8393 freebsd2*) 8394 shlibpath_overrides_runpath=yes 8395 ;; 8396 freebsd3.[01]* | freebsdelf3.[01]*) 8397 shlibpath_overrides_runpath=yes 8398 hardcode_into_libs=yes 8399 ;; 8400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8402 shlibpath_overrides_runpath=no 8403 hardcode_into_libs=yes 8404 ;; 8405 freebsd*) # from 4.6 on 8406 shlibpath_overrides_runpath=yes 8407 hardcode_into_libs=yes 8408 ;; 8409 esac 8410 ;; 8411 8412gnu*) 8413 version_type=linux 8414 need_lib_prefix=no 8415 need_version=no 8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8417 soname_spec='${libname}${release}${shared_ext}$major' 8418 shlibpath_var=LD_LIBRARY_PATH 8419 hardcode_into_libs=yes 8420 ;; 8421 8422hpux9* | hpux10* | hpux11*) 8423 # Give a soname corresponding to the major version so that dld.sl refuses to 8424 # link against other versions. 8425 version_type=sunos 8426 need_lib_prefix=no 8427 need_version=no 8428 case $host_cpu in 8429 ia64*) 8430 shrext_cmds='.so' 8431 hardcode_into_libs=yes 8432 dynamic_linker="$host_os dld.so" 8433 shlibpath_var=LD_LIBRARY_PATH 8434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8436 soname_spec='${libname}${release}${shared_ext}$major' 8437 if test "X$HPUX_IA64_MODE" = X32; then 8438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8439 else 8440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8441 fi 8442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8443 ;; 8444 hppa*64*) 8445 shrext_cmds='.sl' 8446 hardcode_into_libs=yes 8447 dynamic_linker="$host_os dld.sl" 8448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8451 soname_spec='${libname}${release}${shared_ext}$major' 8452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8454 ;; 8455 *) 8456 shrext_cmds='.sl' 8457 dynamic_linker="$host_os dld.sl" 8458 shlibpath_var=SHLIB_PATH 8459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8461 soname_spec='${libname}${release}${shared_ext}$major' 8462 ;; 8463 esac 8464 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8465 postinstall_cmds='chmod 555 $lib' 8466 ;; 8467 8468interix3*) 8469 version_type=linux 8470 need_lib_prefix=no 8471 need_version=no 8472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8473 soname_spec='${libname}${release}${shared_ext}$major' 8474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8475 shlibpath_var=LD_LIBRARY_PATH 8476 shlibpath_overrides_runpath=no 8477 hardcode_into_libs=yes 8478 ;; 8479 8480irix5* | irix6* | nonstopux*) 8481 case $host_os in 8482 nonstopux*) version_type=nonstopux ;; 8483 *) 8484 if test "$lt_cv_prog_gnu_ld" = yes; then 8485 version_type=linux 8486 else 8487 version_type=irix 8488 fi ;; 8489 esac 8490 need_lib_prefix=no 8491 need_version=no 8492 soname_spec='${libname}${release}${shared_ext}$major' 8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8494 case $host_os in 8495 irix5* | nonstopux*) 8496 libsuff= shlibsuff= 8497 ;; 8498 *) 8499 case $LD in # libtool.m4 will add one of these switches to LD 8500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8501 libsuff= shlibsuff= libmagic=32-bit;; 8502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8503 libsuff=32 shlibsuff=N32 libmagic=N32;; 8504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8505 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8506 *) libsuff= shlibsuff= libmagic=never-match;; 8507 esac 8508 ;; 8509 esac 8510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8511 shlibpath_overrides_runpath=no 8512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8514 hardcode_into_libs=yes 8515 ;; 8516 8517# No shared lib support for Linux oldld, aout, or coff. 8518linux*oldld* | linux*aout* | linux*coff*) 8519 dynamic_linker=no 8520 ;; 8521 8522# This must be Linux ELF. 8523linux*) 8524 version_type=linux 8525 need_lib_prefix=no 8526 need_version=no 8527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8528 soname_spec='${libname}${release}${shared_ext}$major' 8529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8530 shlibpath_var=LD_LIBRARY_PATH 8531 shlibpath_overrides_runpath=no 8532 # This implies no fast_install, which is unacceptable. 8533 # Some rework will be needed to allow for fast_install 8534 # before this can be enabled. 8535 hardcode_into_libs=yes 8536 8537 # Append ld.so.conf contents to the search path 8538 if test -f /etc/ld.so.conf; then 8539 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' ' '` 8540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8541 fi 8542 8543 # We used to test for /lib/ld.so.1 and disable shared libraries on 8544 # powerpc, because MkLinux only supported shared libraries with the 8545 # GNU dynamic linker. Since this was broken with cross compilers, 8546 # most powerpc-linux boxes support dynamic linking these days and 8547 # people can always --disable-shared, the test was removed, and we 8548 # assume the GNU/Linux dynamic linker is in use. 8549 dynamic_linker='GNU/Linux ld.so' 8550 ;; 8551 8552knetbsd*-gnu) 8553 version_type=linux 8554 need_lib_prefix=no 8555 need_version=no 8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8557 soname_spec='${libname}${release}${shared_ext}$major' 8558 shlibpath_var=LD_LIBRARY_PATH 8559 shlibpath_overrides_runpath=no 8560 hardcode_into_libs=yes 8561 dynamic_linker='GNU ld.so' 8562 ;; 8563 8564netbsd*) 8565 version_type=sunos 8566 need_lib_prefix=no 8567 need_version=no 8568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8571 dynamic_linker='NetBSD (a.out) ld.so' 8572 else 8573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8574 soname_spec='${libname}${release}${shared_ext}$major' 8575 dynamic_linker='NetBSD ld.elf_so' 8576 fi 8577 shlibpath_var=LD_LIBRARY_PATH 8578 shlibpath_overrides_runpath=yes 8579 hardcode_into_libs=yes 8580 ;; 8581 8582newsos6) 8583 version_type=linux 8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8585 shlibpath_var=LD_LIBRARY_PATH 8586 shlibpath_overrides_runpath=yes 8587 ;; 8588 8589nto-qnx*) 8590 version_type=linux 8591 need_lib_prefix=no 8592 need_version=no 8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8594 soname_spec='${libname}${release}${shared_ext}$major' 8595 shlibpath_var=LD_LIBRARY_PATH 8596 shlibpath_overrides_runpath=yes 8597 ;; 8598 8599openbsd*) 8600 version_type=sunos 8601 sys_lib_dlsearch_path_spec="/usr/lib" 8602 need_lib_prefix=no 8603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8604 case $host_os in 8605 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8606 *) need_version=no ;; 8607 esac 8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8610 shlibpath_var=LD_LIBRARY_PATH 8611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8612 case $host_os in 8613 openbsd2.[89] | openbsd2.[89].*) 8614 shlibpath_overrides_runpath=no 8615 ;; 8616 *) 8617 shlibpath_overrides_runpath=yes 8618 ;; 8619 esac 8620 else 8621 shlibpath_overrides_runpath=yes 8622 fi 8623 ;; 8624 8625os2*) 8626 libname_spec='$name' 8627 shrext_cmds=".dll" 8628 need_lib_prefix=no 8629 library_names_spec='$libname${shared_ext} $libname.a' 8630 dynamic_linker='OS/2 ld.exe' 8631 shlibpath_var=LIBPATH 8632 ;; 8633 8634osf3* | osf4* | osf5*) 8635 version_type=osf 8636 need_lib_prefix=no 8637 need_version=no 8638 soname_spec='${libname}${release}${shared_ext}$major' 8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8640 shlibpath_var=LD_LIBRARY_PATH 8641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8642 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8643 ;; 8644 8645solaris*) 8646 version_type=linux 8647 need_lib_prefix=no 8648 need_version=no 8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8650 soname_spec='${libname}${release}${shared_ext}$major' 8651 shlibpath_var=LD_LIBRARY_PATH 8652 shlibpath_overrides_runpath=yes 8653 hardcode_into_libs=yes 8654 # ldd complains unless libraries are executable 8655 postinstall_cmds='chmod +x $lib' 8656 ;; 8657 8658sunos4*) 8659 version_type=sunos 8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8662 shlibpath_var=LD_LIBRARY_PATH 8663 shlibpath_overrides_runpath=yes 8664 if test "$with_gnu_ld" = yes; then 8665 need_lib_prefix=no 8666 fi 8667 need_version=yes 8668 ;; 8669 8670sysv4 | sysv4.3*) 8671 version_type=linux 8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8673 soname_spec='${libname}${release}${shared_ext}$major' 8674 shlibpath_var=LD_LIBRARY_PATH 8675 case $host_vendor in 8676 sni) 8677 shlibpath_overrides_runpath=no 8678 need_lib_prefix=no 8679 export_dynamic_flag_spec='${wl}-Blargedynsym' 8680 runpath_var=LD_RUN_PATH 8681 ;; 8682 siemens) 8683 need_lib_prefix=no 8684 ;; 8685 motorola) 8686 need_lib_prefix=no 8687 need_version=no 8688 shlibpath_overrides_runpath=no 8689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8690 ;; 8691 esac 8692 ;; 8693 8694sysv4*MP*) 8695 if test -d /usr/nec ;then 8696 version_type=linux 8697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8698 soname_spec='$libname${shared_ext}.$major' 8699 shlibpath_var=LD_LIBRARY_PATH 8700 fi 8701 ;; 8702 8703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8704 version_type=freebsd-elf 8705 need_lib_prefix=no 8706 need_version=no 8707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8708 soname_spec='${libname}${release}${shared_ext}$major' 8709 shlibpath_var=LD_LIBRARY_PATH 8710 hardcode_into_libs=yes 8711 if test "$with_gnu_ld" = yes; then 8712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8713 shlibpath_overrides_runpath=no 8714 else 8715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8716 shlibpath_overrides_runpath=yes 8717 case $host_os in 8718 sco3.2v5*) 8719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8720 ;; 8721 esac 8722 fi 8723 sys_lib_dlsearch_path_spec='/usr/lib' 8724 ;; 8725 8726uts4*) 8727 version_type=linux 8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8729 soname_spec='${libname}${release}${shared_ext}$major' 8730 shlibpath_var=LD_LIBRARY_PATH 8731 ;; 8732 8733*) 8734 dynamic_linker=no 8735 ;; 8736esac 8737{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8738echo "${ECHO_T}$dynamic_linker" >&6; } 8739test "$dynamic_linker" = no && can_build_shared=no 8740 8741variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8742if test "$GCC" = yes; then 8743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8744fi 8745 8746{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8747echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 8748hardcode_action= 8749if test -n "$hardcode_libdir_flag_spec" || \ 8750 test -n "$runpath_var" || \ 8751 test "X$hardcode_automatic" = "Xyes" ; then 8752 8753 # We can hardcode non-existant directories. 8754 if test "$hardcode_direct" != no && 8755 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8756 # have to relink, otherwise we might link with an installed library 8757 # when we should be linking with a yet-to-be-installed one 8758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8759 test "$hardcode_minus_L" != no; then 8760 # Linking always hardcodes the temporary library directory. 8761 hardcode_action=relink 8762 else 8763 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8764 hardcode_action=immediate 8765 fi 8766else 8767 # We cannot hardcode anything, or else we can only hardcode existing 8768 # directories. 8769 hardcode_action=unsupported 8770fi 8771{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 8772echo "${ECHO_T}$hardcode_action" >&6; } 8773 8774if test "$hardcode_action" = relink; then 8775 # Fast installation is not supported 8776 enable_fast_install=no 8777elif test "$shlibpath_overrides_runpath" = yes || 8778 test "$enable_shared" = no; then 8779 # Fast installation is not necessary 8780 enable_fast_install=needless 8781fi 8782 8783striplib= 8784old_striplib= 8785{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8786echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 8787if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8789 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8790 { echo "$as_me:$LINENO: result: yes" >&5 8791echo "${ECHO_T}yes" >&6; } 8792else 8793# FIXME - insert some real tests, host_os isn't really good enough 8794 case $host_os in 8795 darwin*) 8796 if test -n "$STRIP" ; then 8797 striplib="$STRIP -x" 8798 { echo "$as_me:$LINENO: result: yes" >&5 8799echo "${ECHO_T}yes" >&6; } 8800 else 8801 { echo "$as_me:$LINENO: result: no" >&5 8802echo "${ECHO_T}no" >&6; } 8803fi 8804 ;; 8805 *) 8806 { echo "$as_me:$LINENO: result: no" >&5 8807echo "${ECHO_T}no" >&6; } 8808 ;; 8809 esac 8810fi 8811 8812if test "x$enable_dlopen" != xyes; then 8813 enable_dlopen=unknown 8814 enable_dlopen_self=unknown 8815 enable_dlopen_self_static=unknown 8816else 8817 lt_cv_dlopen=no 8818 lt_cv_dlopen_libs= 8819 8820 case $host_os in 8821 beos*) 8822 lt_cv_dlopen="load_add_on" 8823 lt_cv_dlopen_libs= 8824 lt_cv_dlopen_self=yes 8825 ;; 8826 8827 mingw* | pw32*) 8828 lt_cv_dlopen="LoadLibrary" 8829 lt_cv_dlopen_libs= 8830 ;; 8831 8832 cygwin*) 8833 lt_cv_dlopen="dlopen" 8834 lt_cv_dlopen_libs= 8835 ;; 8836 8837 darwin*) 8838 # if libdl is installed we need to link against it 8839 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8840echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 8841if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8842 echo $ECHO_N "(cached) $ECHO_C" >&6 8843else 8844 ac_check_lib_save_LIBS=$LIBS 8845LIBS="-ldl $LIBS" 8846cat >conftest.$ac_ext <<_ACEOF 8847/* confdefs.h. */ 8848_ACEOF 8849cat confdefs.h >>conftest.$ac_ext 8850cat >>conftest.$ac_ext <<_ACEOF 8851/* end confdefs.h. */ 8852 8853/* Override any GCC internal prototype to avoid an error. 8854 Use char because int might match the return type of a GCC 8855 builtin and then its argument prototype would still apply. */ 8856#ifdef __cplusplus 8857extern "C" 8858#endif 8859char dlopen (); 8860int 8861main () 8862{ 8863return dlopen (); 8864 ; 8865 return 0; 8866} 8867_ACEOF 8868rm -f conftest.$ac_objext conftest$ac_exeext 8869if { (ac_try="$ac_link" 8870case "(($ac_try" in 8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8872 *) ac_try_echo=$ac_try;; 8873esac 8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8875 (eval "$ac_link") 2>conftest.er1 8876 ac_status=$? 8877 grep -v '^ *+' conftest.er1 >conftest.err 8878 rm -f conftest.er1 8879 cat conftest.err >&5 8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8881 (exit $ac_status); } && { 8882 test -z "$ac_c_werror_flag" || 8883 test ! -s conftest.err 8884 } && test -s conftest$ac_exeext && 8885 $as_test_x conftest$ac_exeext; then 8886 ac_cv_lib_dl_dlopen=yes 8887else 8888 echo "$as_me: failed program was:" >&5 8889sed 's/^/| /' conftest.$ac_ext >&5 8890 8891 ac_cv_lib_dl_dlopen=no 8892fi 8893 8894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8895 conftest$ac_exeext conftest.$ac_ext 8896LIBS=$ac_check_lib_save_LIBS 8897fi 8898{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8899echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 8900if test $ac_cv_lib_dl_dlopen = yes; then 8901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8902else 8903 8904 lt_cv_dlopen="dyld" 8905 lt_cv_dlopen_libs= 8906 lt_cv_dlopen_self=yes 8907 8908fi 8909 8910 ;; 8911 8912 *) 8913 { echo "$as_me:$LINENO: checking for shl_load" >&5 8914echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 8915if test "${ac_cv_func_shl_load+set}" = set; then 8916 echo $ECHO_N "(cached) $ECHO_C" >&6 8917else 8918 cat >conftest.$ac_ext <<_ACEOF 8919/* confdefs.h. */ 8920_ACEOF 8921cat confdefs.h >>conftest.$ac_ext 8922cat >>conftest.$ac_ext <<_ACEOF 8923/* end confdefs.h. */ 8924/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8925 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8926#define shl_load innocuous_shl_load 8927 8928/* System header to define __stub macros and hopefully few prototypes, 8929 which can conflict with char shl_load (); below. 8930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8931 <limits.h> exists even on freestanding compilers. */ 8932 8933#ifdef __STDC__ 8934# include <limits.h> 8935#else 8936# include <assert.h> 8937#endif 8938 8939#undef shl_load 8940 8941/* Override any GCC internal prototype to avoid an error. 8942 Use char because int might match the return type of a GCC 8943 builtin and then its argument prototype would still apply. */ 8944#ifdef __cplusplus 8945extern "C" 8946#endif 8947char shl_load (); 8948/* The GNU C library defines this for functions which it implements 8949 to always fail with ENOSYS. Some functions are actually named 8950 something starting with __ and the normal name is an alias. */ 8951#if defined __stub_shl_load || defined __stub___shl_load 8952choke me 8953#endif 8954 8955int 8956main () 8957{ 8958return shl_load (); 8959 ; 8960 return 0; 8961} 8962_ACEOF 8963rm -f conftest.$ac_objext conftest$ac_exeext 8964if { (ac_try="$ac_link" 8965case "(($ac_try" in 8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8967 *) ac_try_echo=$ac_try;; 8968esac 8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8970 (eval "$ac_link") 2>conftest.er1 8971 ac_status=$? 8972 grep -v '^ *+' conftest.er1 >conftest.err 8973 rm -f conftest.er1 8974 cat conftest.err >&5 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 (exit $ac_status); } && { 8977 test -z "$ac_c_werror_flag" || 8978 test ! -s conftest.err 8979 } && test -s conftest$ac_exeext && 8980 $as_test_x conftest$ac_exeext; then 8981 ac_cv_func_shl_load=yes 8982else 8983 echo "$as_me: failed program was:" >&5 8984sed 's/^/| /' conftest.$ac_ext >&5 8985 8986 ac_cv_func_shl_load=no 8987fi 8988 8989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8990 conftest$ac_exeext conftest.$ac_ext 8991fi 8992{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8993echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 8994if test $ac_cv_func_shl_load = yes; then 8995 lt_cv_dlopen="shl_load" 8996else 8997 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8998echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8999if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9000 echo $ECHO_N "(cached) $ECHO_C" >&6 9001else 9002 ac_check_lib_save_LIBS=$LIBS 9003LIBS="-ldld $LIBS" 9004cat >conftest.$ac_ext <<_ACEOF 9005/* confdefs.h. */ 9006_ACEOF 9007cat confdefs.h >>conftest.$ac_ext 9008cat >>conftest.$ac_ext <<_ACEOF 9009/* end confdefs.h. */ 9010 9011/* Override any GCC internal prototype to avoid an error. 9012 Use char because int might match the return type of a GCC 9013 builtin and then its argument prototype would still apply. */ 9014#ifdef __cplusplus 9015extern "C" 9016#endif 9017char shl_load (); 9018int 9019main () 9020{ 9021return shl_load (); 9022 ; 9023 return 0; 9024} 9025_ACEOF 9026rm -f conftest.$ac_objext conftest$ac_exeext 9027if { (ac_try="$ac_link" 9028case "(($ac_try" in 9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9030 *) ac_try_echo=$ac_try;; 9031esac 9032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9033 (eval "$ac_link") 2>conftest.er1 9034 ac_status=$? 9035 grep -v '^ *+' conftest.er1 >conftest.err 9036 rm -f conftest.er1 9037 cat conftest.err >&5 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); } && { 9040 test -z "$ac_c_werror_flag" || 9041 test ! -s conftest.err 9042 } && test -s conftest$ac_exeext && 9043 $as_test_x conftest$ac_exeext; then 9044 ac_cv_lib_dld_shl_load=yes 9045else 9046 echo "$as_me: failed program was:" >&5 9047sed 's/^/| /' conftest.$ac_ext >&5 9048 9049 ac_cv_lib_dld_shl_load=no 9050fi 9051 9052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9053 conftest$ac_exeext conftest.$ac_ext 9054LIBS=$ac_check_lib_save_LIBS 9055fi 9056{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9057echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9058if test $ac_cv_lib_dld_shl_load = yes; then 9059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9060else 9061 { echo "$as_me:$LINENO: checking for dlopen" >&5 9062echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9063if test "${ac_cv_func_dlopen+set}" = set; then 9064 echo $ECHO_N "(cached) $ECHO_C" >&6 9065else 9066 cat >conftest.$ac_ext <<_ACEOF 9067/* confdefs.h. */ 9068_ACEOF 9069cat confdefs.h >>conftest.$ac_ext 9070cat >>conftest.$ac_ext <<_ACEOF 9071/* end confdefs.h. */ 9072/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9073 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9074#define dlopen innocuous_dlopen 9075 9076/* System header to define __stub macros and hopefully few prototypes, 9077 which can conflict with char dlopen (); below. 9078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9079 <limits.h> exists even on freestanding compilers. */ 9080 9081#ifdef __STDC__ 9082# include <limits.h> 9083#else 9084# include <assert.h> 9085#endif 9086 9087#undef dlopen 9088 9089/* Override any GCC internal prototype to avoid an error. 9090 Use char because int might match the return type of a GCC 9091 builtin and then its argument prototype would still apply. */ 9092#ifdef __cplusplus 9093extern "C" 9094#endif 9095char dlopen (); 9096/* The GNU C library defines this for functions which it implements 9097 to always fail with ENOSYS. Some functions are actually named 9098 something starting with __ and the normal name is an alias. */ 9099#if defined __stub_dlopen || defined __stub___dlopen 9100choke me 9101#endif 9102 9103int 9104main () 9105{ 9106return dlopen (); 9107 ; 9108 return 0; 9109} 9110_ACEOF 9111rm -f conftest.$ac_objext conftest$ac_exeext 9112if { (ac_try="$ac_link" 9113case "(($ac_try" in 9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9115 *) ac_try_echo=$ac_try;; 9116esac 9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9118 (eval "$ac_link") 2>conftest.er1 9119 ac_status=$? 9120 grep -v '^ *+' conftest.er1 >conftest.err 9121 rm -f conftest.er1 9122 cat conftest.err >&5 9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9124 (exit $ac_status); } && { 9125 test -z "$ac_c_werror_flag" || 9126 test ! -s conftest.err 9127 } && test -s conftest$ac_exeext && 9128 $as_test_x conftest$ac_exeext; then 9129 ac_cv_func_dlopen=yes 9130else 9131 echo "$as_me: failed program was:" >&5 9132sed 's/^/| /' conftest.$ac_ext >&5 9133 9134 ac_cv_func_dlopen=no 9135fi 9136 9137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9138 conftest$ac_exeext conftest.$ac_ext 9139fi 9140{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9141echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9142if test $ac_cv_func_dlopen = yes; then 9143 lt_cv_dlopen="dlopen" 9144else 9145 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9146echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9147if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9148 echo $ECHO_N "(cached) $ECHO_C" >&6 9149else 9150 ac_check_lib_save_LIBS=$LIBS 9151LIBS="-ldl $LIBS" 9152cat >conftest.$ac_ext <<_ACEOF 9153/* confdefs.h. */ 9154_ACEOF 9155cat confdefs.h >>conftest.$ac_ext 9156cat >>conftest.$ac_ext <<_ACEOF 9157/* end confdefs.h. */ 9158 9159/* Override any GCC internal prototype to avoid an error. 9160 Use char because int might match the return type of a GCC 9161 builtin and then its argument prototype would still apply. */ 9162#ifdef __cplusplus 9163extern "C" 9164#endif 9165char dlopen (); 9166int 9167main () 9168{ 9169return dlopen (); 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174rm -f conftest.$ac_objext conftest$ac_exeext 9175if { (ac_try="$ac_link" 9176case "(($ac_try" in 9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9178 *) ac_try_echo=$ac_try;; 9179esac 9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9181 (eval "$ac_link") 2>conftest.er1 9182 ac_status=$? 9183 grep -v '^ *+' conftest.er1 >conftest.err 9184 rm -f conftest.er1 9185 cat conftest.err >&5 9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9187 (exit $ac_status); } && { 9188 test -z "$ac_c_werror_flag" || 9189 test ! -s conftest.err 9190 } && test -s conftest$ac_exeext && 9191 $as_test_x conftest$ac_exeext; then 9192 ac_cv_lib_dl_dlopen=yes 9193else 9194 echo "$as_me: failed program was:" >&5 9195sed 's/^/| /' conftest.$ac_ext >&5 9196 9197 ac_cv_lib_dl_dlopen=no 9198fi 9199 9200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9201 conftest$ac_exeext conftest.$ac_ext 9202LIBS=$ac_check_lib_save_LIBS 9203fi 9204{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9206if test $ac_cv_lib_dl_dlopen = yes; then 9207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9208else 9209 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9210echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9211if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9212 echo $ECHO_N "(cached) $ECHO_C" >&6 9213else 9214 ac_check_lib_save_LIBS=$LIBS 9215LIBS="-lsvld $LIBS" 9216cat >conftest.$ac_ext <<_ACEOF 9217/* confdefs.h. */ 9218_ACEOF 9219cat confdefs.h >>conftest.$ac_ext 9220cat >>conftest.$ac_ext <<_ACEOF 9221/* end confdefs.h. */ 9222 9223/* Override any GCC internal prototype to avoid an error. 9224 Use char because int might match the return type of a GCC 9225 builtin and then its argument prototype would still apply. */ 9226#ifdef __cplusplus 9227extern "C" 9228#endif 9229char dlopen (); 9230int 9231main () 9232{ 9233return dlopen (); 9234 ; 9235 return 0; 9236} 9237_ACEOF 9238rm -f conftest.$ac_objext conftest$ac_exeext 9239if { (ac_try="$ac_link" 9240case "(($ac_try" in 9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9242 *) ac_try_echo=$ac_try;; 9243esac 9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9245 (eval "$ac_link") 2>conftest.er1 9246 ac_status=$? 9247 grep -v '^ *+' conftest.er1 >conftest.err 9248 rm -f conftest.er1 9249 cat conftest.err >&5 9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9251 (exit $ac_status); } && { 9252 test -z "$ac_c_werror_flag" || 9253 test ! -s conftest.err 9254 } && test -s conftest$ac_exeext && 9255 $as_test_x conftest$ac_exeext; then 9256 ac_cv_lib_svld_dlopen=yes 9257else 9258 echo "$as_me: failed program was:" >&5 9259sed 's/^/| /' conftest.$ac_ext >&5 9260 9261 ac_cv_lib_svld_dlopen=no 9262fi 9263 9264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9265 conftest$ac_exeext conftest.$ac_ext 9266LIBS=$ac_check_lib_save_LIBS 9267fi 9268{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9269echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9270if test $ac_cv_lib_svld_dlopen = yes; then 9271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9272else 9273 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9274echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9275if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9276 echo $ECHO_N "(cached) $ECHO_C" >&6 9277else 9278 ac_check_lib_save_LIBS=$LIBS 9279LIBS="-ldld $LIBS" 9280cat >conftest.$ac_ext <<_ACEOF 9281/* confdefs.h. */ 9282_ACEOF 9283cat confdefs.h >>conftest.$ac_ext 9284cat >>conftest.$ac_ext <<_ACEOF 9285/* end confdefs.h. */ 9286 9287/* Override any GCC internal prototype to avoid an error. 9288 Use char because int might match the return type of a GCC 9289 builtin and then its argument prototype would still apply. */ 9290#ifdef __cplusplus 9291extern "C" 9292#endif 9293char dld_link (); 9294int 9295main () 9296{ 9297return dld_link (); 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302rm -f conftest.$ac_objext conftest$ac_exeext 9303if { (ac_try="$ac_link" 9304case "(($ac_try" in 9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9306 *) ac_try_echo=$ac_try;; 9307esac 9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9309 (eval "$ac_link") 2>conftest.er1 9310 ac_status=$? 9311 grep -v '^ *+' conftest.er1 >conftest.err 9312 rm -f conftest.er1 9313 cat conftest.err >&5 9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9315 (exit $ac_status); } && { 9316 test -z "$ac_c_werror_flag" || 9317 test ! -s conftest.err 9318 } && test -s conftest$ac_exeext && 9319 $as_test_x conftest$ac_exeext; then 9320 ac_cv_lib_dld_dld_link=yes 9321else 9322 echo "$as_me: failed program was:" >&5 9323sed 's/^/| /' conftest.$ac_ext >&5 9324 9325 ac_cv_lib_dld_dld_link=no 9326fi 9327 9328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9329 conftest$ac_exeext conftest.$ac_ext 9330LIBS=$ac_check_lib_save_LIBS 9331fi 9332{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9333echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9334if test $ac_cv_lib_dld_dld_link = yes; then 9335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9336fi 9337 9338 9339fi 9340 9341 9342fi 9343 9344 9345fi 9346 9347 9348fi 9349 9350 9351fi 9352 9353 ;; 9354 esac 9355 9356 if test "x$lt_cv_dlopen" != xno; then 9357 enable_dlopen=yes 9358 else 9359 enable_dlopen=no 9360 fi 9361 9362 case $lt_cv_dlopen in 9363 dlopen) 9364 save_CPPFLAGS="$CPPFLAGS" 9365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9366 9367 save_LDFLAGS="$LDFLAGS" 9368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9369 9370 save_LIBS="$LIBS" 9371 LIBS="$lt_cv_dlopen_libs $LIBS" 9372 9373 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9374echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9375if test "${lt_cv_dlopen_self+set}" = set; then 9376 echo $ECHO_N "(cached) $ECHO_C" >&6 9377else 9378 if test "$cross_compiling" = yes; then : 9379 lt_cv_dlopen_self=cross 9380else 9381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9382 lt_status=$lt_dlunknown 9383 cat > conftest.$ac_ext <<EOF 9384#line 9384 "configure" 9385#include "confdefs.h" 9386 9387#if HAVE_DLFCN_H 9388#include <dlfcn.h> 9389#endif 9390 9391#include <stdio.h> 9392 9393#ifdef RTLD_GLOBAL 9394# define LT_DLGLOBAL RTLD_GLOBAL 9395#else 9396# ifdef DL_GLOBAL 9397# define LT_DLGLOBAL DL_GLOBAL 9398# else 9399# define LT_DLGLOBAL 0 9400# endif 9401#endif 9402 9403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9404 find out it does not work in some platform. */ 9405#ifndef LT_DLLAZY_OR_NOW 9406# ifdef RTLD_LAZY 9407# define LT_DLLAZY_OR_NOW RTLD_LAZY 9408# else 9409# ifdef DL_LAZY 9410# define LT_DLLAZY_OR_NOW DL_LAZY 9411# else 9412# ifdef RTLD_NOW 9413# define LT_DLLAZY_OR_NOW RTLD_NOW 9414# else 9415# ifdef DL_NOW 9416# define LT_DLLAZY_OR_NOW DL_NOW 9417# else 9418# define LT_DLLAZY_OR_NOW 0 9419# endif 9420# endif 9421# endif 9422# endif 9423#endif 9424 9425#ifdef __cplusplus 9426extern "C" void exit (int); 9427#endif 9428 9429void fnord() { int i=42;} 9430int main () 9431{ 9432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9433 int status = $lt_dlunknown; 9434 9435 if (self) 9436 { 9437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9438 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9439 /* dlclose (self); */ 9440 } 9441 else 9442 puts (dlerror ()); 9443 9444 exit (status); 9445} 9446EOF 9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9448 (eval $ac_link) 2>&5 9449 ac_status=$? 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9452 (./conftest; exit; ) >&5 2>/dev/null 9453 lt_status=$? 9454 case x$lt_status in 9455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9458 esac 9459 else : 9460 # compilation failed 9461 lt_cv_dlopen_self=no 9462 fi 9463fi 9464rm -fr conftest* 9465 9466 9467fi 9468{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9469echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9470 9471 if test "x$lt_cv_dlopen_self" = xyes; then 9472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9473 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9474echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9475if test "${lt_cv_dlopen_self_static+set}" = set; then 9476 echo $ECHO_N "(cached) $ECHO_C" >&6 9477else 9478 if test "$cross_compiling" = yes; then : 9479 lt_cv_dlopen_self_static=cross 9480else 9481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9482 lt_status=$lt_dlunknown 9483 cat > conftest.$ac_ext <<EOF 9484#line 9484 "configure" 9485#include "confdefs.h" 9486 9487#if HAVE_DLFCN_H 9488#include <dlfcn.h> 9489#endif 9490 9491#include <stdio.h> 9492 9493#ifdef RTLD_GLOBAL 9494# define LT_DLGLOBAL RTLD_GLOBAL 9495#else 9496# ifdef DL_GLOBAL 9497# define LT_DLGLOBAL DL_GLOBAL 9498# else 9499# define LT_DLGLOBAL 0 9500# endif 9501#endif 9502 9503/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9504 find out it does not work in some platform. */ 9505#ifndef LT_DLLAZY_OR_NOW 9506# ifdef RTLD_LAZY 9507# define LT_DLLAZY_OR_NOW RTLD_LAZY 9508# else 9509# ifdef DL_LAZY 9510# define LT_DLLAZY_OR_NOW DL_LAZY 9511# else 9512# ifdef RTLD_NOW 9513# define LT_DLLAZY_OR_NOW RTLD_NOW 9514# else 9515# ifdef DL_NOW 9516# define LT_DLLAZY_OR_NOW DL_NOW 9517# else 9518# define LT_DLLAZY_OR_NOW 0 9519# endif 9520# endif 9521# endif 9522# endif 9523#endif 9524 9525#ifdef __cplusplus 9526extern "C" void exit (int); 9527#endif 9528 9529void fnord() { int i=42;} 9530int main () 9531{ 9532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9533 int status = $lt_dlunknown; 9534 9535 if (self) 9536 { 9537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9538 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9539 /* dlclose (self); */ 9540 } 9541 else 9542 puts (dlerror ()); 9543 9544 exit (status); 9545} 9546EOF 9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9548 (eval $ac_link) 2>&5 9549 ac_status=$? 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9552 (./conftest; exit; ) >&5 2>/dev/null 9553 lt_status=$? 9554 case x$lt_status in 9555 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9556 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9557 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9558 esac 9559 else : 9560 # compilation failed 9561 lt_cv_dlopen_self_static=no 9562 fi 9563fi 9564rm -fr conftest* 9565 9566 9567fi 9568{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9569echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9570 fi 9571 9572 CPPFLAGS="$save_CPPFLAGS" 9573 LDFLAGS="$save_LDFLAGS" 9574 LIBS="$save_LIBS" 9575 ;; 9576 esac 9577 9578 case $lt_cv_dlopen_self in 9579 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9580 *) enable_dlopen_self=unknown ;; 9581 esac 9582 9583 case $lt_cv_dlopen_self_static in 9584 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9585 *) enable_dlopen_self_static=unknown ;; 9586 esac 9587fi 9588 9589 9590# Report which library types will actually be built 9591{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9592echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9593{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9594echo "${ECHO_T}$can_build_shared" >&6; } 9595 9596{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9597echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9598test "$can_build_shared" = "no" && enable_shared=no 9599 9600# On AIX, shared libraries and static libraries use the same namespace, and 9601# are all built from PIC. 9602case $host_os in 9603aix3*) 9604 test "$enable_shared" = yes && enable_static=no 9605 if test -n "$RANLIB"; then 9606 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9607 postinstall_cmds='$RANLIB $lib' 9608 fi 9609 ;; 9610 9611aix4* | aix5*) 9612 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9613 test "$enable_shared" = yes && enable_static=no 9614 fi 9615 ;; 9616esac 9617{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9618echo "${ECHO_T}$enable_shared" >&6; } 9619 9620{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9621echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9622# Make sure either enable_shared or enable_static is yes. 9623test "$enable_shared" = yes || enable_static=yes 9624{ echo "$as_me:$LINENO: result: $enable_static" >&5 9625echo "${ECHO_T}$enable_static" >&6; } 9626 9627# The else clause should only fire when bootstrapping the 9628# libtool distribution, otherwise you forgot to ship ltmain.sh 9629# with your package, and you will get complaints that there are 9630# no rules to generate ltmain.sh. 9631if test -f "$ltmain"; then 9632 # See if we are running on zsh, and set the options which allow our commands through 9633 # without removal of \ escapes. 9634 if test -n "${ZSH_VERSION+set}" ; then 9635 setopt NO_GLOB_SUBST 9636 fi 9637 # Now quote all the things that may contain metacharacters while being 9638 # careful not to overquote the AC_SUBSTed values. We take copies of the 9639 # variables and quote the copies for generation of the libtool script. 9640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9641 SED SHELL STRIP \ 9642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9644 deplibs_check_method reload_flag reload_cmds need_locks \ 9645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9646 lt_cv_sys_global_symbol_to_c_name_address \ 9647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9648 old_postinstall_cmds old_postuninstall_cmds \ 9649 compiler \ 9650 CC \ 9651 LD \ 9652 lt_prog_compiler_wl \ 9653 lt_prog_compiler_pic \ 9654 lt_prog_compiler_static \ 9655 lt_prog_compiler_no_builtin_flag \ 9656 export_dynamic_flag_spec \ 9657 thread_safe_flag_spec \ 9658 whole_archive_flag_spec \ 9659 enable_shared_with_static_runtimes \ 9660 old_archive_cmds \ 9661 old_archive_from_new_cmds \ 9662 predep_objects \ 9663 postdep_objects \ 9664 predeps \ 9665 postdeps \ 9666 compiler_lib_search_path \ 9667 archive_cmds \ 9668 archive_expsym_cmds \ 9669 postinstall_cmds \ 9670 postuninstall_cmds \ 9671 old_archive_from_expsyms_cmds \ 9672 allow_undefined_flag \ 9673 no_undefined_flag \ 9674 export_symbols_cmds \ 9675 hardcode_libdir_flag_spec \ 9676 hardcode_libdir_flag_spec_ld \ 9677 hardcode_libdir_separator \ 9678 hardcode_automatic \ 9679 module_cmds \ 9680 module_expsym_cmds \ 9681 lt_cv_prog_compiler_c_o \ 9682 exclude_expsyms \ 9683 include_expsyms; do 9684 9685 case $var in 9686 old_archive_cmds | \ 9687 old_archive_from_new_cmds | \ 9688 archive_cmds | \ 9689 archive_expsym_cmds | \ 9690 module_cmds | \ 9691 module_expsym_cmds | \ 9692 old_archive_from_expsyms_cmds | \ 9693 export_symbols_cmds | \ 9694 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9695 postinstall_cmds | postuninstall_cmds | \ 9696 old_postinstall_cmds | old_postuninstall_cmds | \ 9697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9698 # Double-quote double-evaled strings. 9699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9700 ;; 9701 *) 9702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9703 ;; 9704 esac 9705 done 9706 9707 case $lt_echo in 9708 *'\$0 --fallback-echo"') 9709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9710 ;; 9711 esac 9712 9713cfgfile="${ofile}T" 9714 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9715 $rm -f "$cfgfile" 9716 { echo "$as_me:$LINENO: creating $ofile" >&5 9717echo "$as_me: creating $ofile" >&6;} 9718 9719 cat <<__EOF__ >> "$cfgfile" 9720#! $SHELL 9721 9722# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9723# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9724# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9725# 9726# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9727# Free Software Foundation, Inc. 9728# 9729# This file is part of GNU Libtool: 9730# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9731# 9732# This program is free software; you can redistribute it and/or modify 9733# it under the terms of the GNU General Public License as published by 9734# the Free Software Foundation; either version 2 of the License, or 9735# (at your option) any later version. 9736# 9737# This program is distributed in the hope that it will be useful, but 9738# WITHOUT ANY WARRANTY; without even the implied warranty of 9739# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9740# General Public License for more details. 9741# 9742# You should have received a copy of the GNU General Public License 9743# along with this program; if not, write to the Free Software 9744# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9745# 9746# As a special exception to the GNU General Public License, if you 9747# distribute this file as part of a program that contains a 9748# configuration script generated by Autoconf, you may include it under 9749# the same distribution terms that you use for the rest of that program. 9750 9751# A sed program that does not truncate output. 9752SED=$lt_SED 9753 9754# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9755Xsed="$SED -e 1s/^X//" 9756 9757# The HP-UX ksh and POSIX shell print the target directory to stdout 9758# if CDPATH is set. 9759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9760 9761# The names of the tagged configurations supported by this script. 9762available_tags= 9763 9764# ### BEGIN LIBTOOL CONFIG 9765 9766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9767 9768# Shell to use when invoking shell scripts. 9769SHELL=$lt_SHELL 9770 9771# Whether or not to build shared libraries. 9772build_libtool_libs=$enable_shared 9773 9774# Whether or not to build static libraries. 9775build_old_libs=$enable_static 9776 9777# Whether or not to add -lc for building shared libraries. 9778build_libtool_need_lc=$archive_cmds_need_lc 9779 9780# Whether or not to disallow shared libs when runtime libs are static 9781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9782 9783# Whether or not to optimize for fast installation. 9784fast_install=$enable_fast_install 9785 9786# The host system. 9787host_alias=$host_alias 9788host=$host 9789host_os=$host_os 9790 9791# The build system. 9792build_alias=$build_alias 9793build=$build 9794build_os=$build_os 9795 9796# An echo program that does not interpret backslashes. 9797echo=$lt_echo 9798 9799# The archiver. 9800AR=$lt_AR 9801AR_FLAGS=$lt_AR_FLAGS 9802 9803# A C compiler. 9804LTCC=$lt_LTCC 9805 9806# LTCC compiler flags. 9807LTCFLAGS=$lt_LTCFLAGS 9808 9809# A language-specific compiler. 9810CC=$lt_compiler 9811 9812# Is the compiler the GNU C compiler? 9813with_gcc=$GCC 9814 9815# An ERE matcher. 9816EGREP=$lt_EGREP 9817 9818# The linker used to build libraries. 9819LD=$lt_LD 9820 9821# Whether we need hard or soft links. 9822LN_S=$lt_LN_S 9823 9824# A BSD-compatible nm program. 9825NM=$lt_NM 9826 9827# A symbol stripping program 9828STRIP=$lt_STRIP 9829 9830# Used to examine libraries when file_magic_cmd begins "file" 9831MAGIC_CMD=$MAGIC_CMD 9832 9833# Used on cygwin: DLL creation program. 9834DLLTOOL="$DLLTOOL" 9835 9836# Used on cygwin: object dumper. 9837OBJDUMP="$OBJDUMP" 9838 9839# Used on cygwin: assembler. 9840AS="$AS" 9841 9842# The name of the directory that contains temporary libtool files. 9843objdir=$objdir 9844 9845# How to create reloadable object files. 9846reload_flag=$lt_reload_flag 9847reload_cmds=$lt_reload_cmds 9848 9849# How to pass a linker flag through the compiler. 9850wl=$lt_lt_prog_compiler_wl 9851 9852# Object file suffix (normally "o"). 9853objext="$ac_objext" 9854 9855# Old archive suffix (normally "a"). 9856libext="$libext" 9857 9858# Shared library suffix (normally ".so"). 9859shrext_cmds='$shrext_cmds' 9860 9861# Executable file suffix (normally ""). 9862exeext="$exeext" 9863 9864# Additional compiler flags for building library objects. 9865pic_flag=$lt_lt_prog_compiler_pic 9866pic_mode=$pic_mode 9867 9868# What is the maximum length of a command? 9869max_cmd_len=$lt_cv_sys_max_cmd_len 9870 9871# Does compiler simultaneously support -c and -o options? 9872compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9873 9874# Must we lock files when doing compilation? 9875need_locks=$lt_need_locks 9876 9877# Do we need the lib prefix for modules? 9878need_lib_prefix=$need_lib_prefix 9879 9880# Do we need a version for libraries? 9881need_version=$need_version 9882 9883# Whether dlopen is supported. 9884dlopen_support=$enable_dlopen 9885 9886# Whether dlopen of programs is supported. 9887dlopen_self=$enable_dlopen_self 9888 9889# Whether dlopen of statically linked programs is supported. 9890dlopen_self_static=$enable_dlopen_self_static 9891 9892# Compiler flag to prevent dynamic linking. 9893link_static_flag=$lt_lt_prog_compiler_static 9894 9895# Compiler flag to turn off builtin functions. 9896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9897 9898# Compiler flag to allow reflexive dlopens. 9899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9900 9901# Compiler flag to generate shared objects directly from archives. 9902whole_archive_flag_spec=$lt_whole_archive_flag_spec 9903 9904# Compiler flag to generate thread-safe objects. 9905thread_safe_flag_spec=$lt_thread_safe_flag_spec 9906 9907# Library versioning type. 9908version_type=$version_type 9909 9910# Format of library name prefix. 9911libname_spec=$lt_libname_spec 9912 9913# List of archive names. First name is the real one, the rest are links. 9914# The last name is the one that the linker finds with -lNAME. 9915library_names_spec=$lt_library_names_spec 9916 9917# The coded name of the library, if different from the real name. 9918soname_spec=$lt_soname_spec 9919 9920# Commands used to build and install an old-style archive. 9921RANLIB=$lt_RANLIB 9922old_archive_cmds=$lt_old_archive_cmds 9923old_postinstall_cmds=$lt_old_postinstall_cmds 9924old_postuninstall_cmds=$lt_old_postuninstall_cmds 9925 9926# Create an old-style archive from a shared archive. 9927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9928 9929# Create a temporary old-style archive to link instead of a shared archive. 9930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9931 9932# Commands used to build and install a shared archive. 9933archive_cmds=$lt_archive_cmds 9934archive_expsym_cmds=$lt_archive_expsym_cmds 9935postinstall_cmds=$lt_postinstall_cmds 9936postuninstall_cmds=$lt_postuninstall_cmds 9937 9938# Commands used to build a loadable module (assumed same as above if empty) 9939module_cmds=$lt_module_cmds 9940module_expsym_cmds=$lt_module_expsym_cmds 9941 9942# Commands to strip libraries. 9943old_striplib=$lt_old_striplib 9944striplib=$lt_striplib 9945 9946# Dependencies to place before the objects being linked to create a 9947# shared library. 9948predep_objects=$lt_predep_objects 9949 9950# Dependencies to place after the objects being linked to create a 9951# shared library. 9952postdep_objects=$lt_postdep_objects 9953 9954# Dependencies to place before the objects being linked to create a 9955# shared library. 9956predeps=$lt_predeps 9957 9958# Dependencies to place after the objects being linked to create a 9959# shared library. 9960postdeps=$lt_postdeps 9961 9962# The library search path used internally by the compiler when linking 9963# a shared library. 9964compiler_lib_search_path=$lt_compiler_lib_search_path 9965 9966# Method to check whether dependent libraries are shared objects. 9967deplibs_check_method=$lt_deplibs_check_method 9968 9969# Command to use when deplibs_check_method == file_magic. 9970file_magic_cmd=$lt_file_magic_cmd 9971 9972# Flag that allows shared libraries with undefined symbols to be built. 9973allow_undefined_flag=$lt_allow_undefined_flag 9974 9975# Flag that forces no undefined symbols. 9976no_undefined_flag=$lt_no_undefined_flag 9977 9978# Commands used to finish a libtool library installation in a directory. 9979finish_cmds=$lt_finish_cmds 9980 9981# Same as above, but a single script fragment to be evaled but not shown. 9982finish_eval=$lt_finish_eval 9983 9984# Take the output of nm and produce a listing of raw symbols and C names. 9985global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9986 9987# Transform the output of nm in a proper C declaration 9988global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9989 9990# Transform the output of nm in a C name address pair 9991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9992 9993# This is the shared library runtime path variable. 9994runpath_var=$runpath_var 9995 9996# This is the shared library path variable. 9997shlibpath_var=$shlibpath_var 9998 9999# Is shlibpath searched before the hard-coded library search path? 10000shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10001 10002# How to hardcode a shared library path into an executable. 10003hardcode_action=$hardcode_action 10004 10005# Whether we should hardcode library paths into libraries. 10006hardcode_into_libs=$hardcode_into_libs 10007 10008# Flag to hardcode \$libdir into a binary during linking. 10009# This must work even if \$libdir does not exist. 10010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10011 10012# If ld is used when linking, flag to hardcode \$libdir into 10013# a binary during linking. This must work even if \$libdir does 10014# not exist. 10015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10016 10017# Whether we need a single -rpath flag with a separated argument. 10018hardcode_libdir_separator=$lt_hardcode_libdir_separator 10019 10020# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10021# resulting binary. 10022hardcode_direct=$hardcode_direct 10023 10024# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10025# resulting binary. 10026hardcode_minus_L=$hardcode_minus_L 10027 10028# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10029# the resulting binary. 10030hardcode_shlibpath_var=$hardcode_shlibpath_var 10031 10032# Set to yes if building a shared library automatically hardcodes DIR into the library 10033# and all subsequent libraries and executables linked against it. 10034hardcode_automatic=$hardcode_automatic 10035 10036# Variables whose values should be saved in libtool wrapper scripts and 10037# restored at relink time. 10038variables_saved_for_relink="$variables_saved_for_relink" 10039 10040# Whether libtool must link a program against all its dependency libraries. 10041link_all_deplibs=$link_all_deplibs 10042 10043# Compile-time system search path for libraries 10044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10045 10046# Run-time system search path for libraries 10047sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10048 10049# Fix the shell variable \$srcfile for the compiler. 10050fix_srcfile_path="$fix_srcfile_path" 10051 10052# Set to yes if exported symbols are required. 10053always_export_symbols=$always_export_symbols 10054 10055# The commands to list exported symbols. 10056export_symbols_cmds=$lt_export_symbols_cmds 10057 10058# The commands to extract the exported symbol list from a shared archive. 10059extract_expsyms_cmds=$lt_extract_expsyms_cmds 10060 10061# Symbols that should not be listed in the preloaded symbols. 10062exclude_expsyms=$lt_exclude_expsyms 10063 10064# Symbols that must always be exported. 10065include_expsyms=$lt_include_expsyms 10066 10067# ### END LIBTOOL CONFIG 10068 10069__EOF__ 10070 10071 10072 case $host_os in 10073 aix3*) 10074 cat <<\EOF >> "$cfgfile" 10075 10076# AIX sometimes has problems with the GCC collect2 program. For some 10077# reason, if we set the COLLECT_NAMES environment variable, the problems 10078# vanish in a puff of smoke. 10079if test "X${COLLECT_NAMES+set}" != Xset; then 10080 COLLECT_NAMES= 10081 export COLLECT_NAMES 10082fi 10083EOF 10084 ;; 10085 esac 10086 10087 # We use sed instead of cat because bash on DJGPP gets confused if 10088 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10089 # text mode, it properly converts lines to CR/LF. This bash problem 10090 # is reportedly fixed, but why not run on old versions too? 10091 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10092 10093 mv -f "$cfgfile" "$ofile" || \ 10094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10095 chmod +x "$ofile" 10096 10097else 10098 # If there is no Makefile yet, we rely on a make rule to execute 10099 # `config.status --recheck' to rerun these tests and create the 10100 # libtool script then. 10101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10102 if test -f "$ltmain_in"; then 10103 test -f Makefile && make "$ltmain" 10104 fi 10105fi 10106 10107 10108ac_ext=c 10109ac_cpp='$CPP $CPPFLAGS' 10110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10112ac_compiler_gnu=$ac_cv_c_compiler_gnu 10113 10114CC="$lt_save_CC" 10115 10116 10117# Check whether --with-tags was given. 10118if test "${with_tags+set}" = set; then 10119 withval=$with_tags; tagnames="$withval" 10120fi 10121 10122 10123if test -f "$ltmain" && test -n "$tagnames"; then 10124 if test ! -f "${ofile}"; then 10125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10126echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10127 fi 10128 10129 if test -z "$LTCC"; then 10130 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10131 if test -z "$LTCC"; then 10132 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10133echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10134 else 10135 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10136echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10137 fi 10138 fi 10139 if test -z "$LTCFLAGS"; then 10140 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10141 fi 10142 10143 # Extract list of available tagged configurations in $ofile. 10144 # Note that this assumes the entire list is on one line. 10145 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10146 10147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10148 for tagname in $tagnames; do 10149 IFS="$lt_save_ifs" 10150 # Check whether tagname contains only valid characters 10151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10152 "") ;; 10153 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10154echo "$as_me: error: invalid tag name: $tagname" >&2;} 10155 { (exit 1); exit 1; }; } 10156 ;; 10157 esac 10158 10159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10160 then 10161 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10162echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10163 { (exit 1); exit 1; }; } 10164 fi 10165 10166 # Update the list of available tags. 10167 if test -n "$tagname"; then 10168 echo appending configuration tag \"$tagname\" to $ofile 10169 10170 case $tagname in 10171 CXX) 10172 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10174 (test "X$CXX" != "Xg++"))) ; then 10175 ac_ext=cpp 10176ac_cpp='$CXXCPP $CPPFLAGS' 10177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10180 10181 10182 10183 10184archive_cmds_need_lc_CXX=no 10185allow_undefined_flag_CXX= 10186always_export_symbols_CXX=no 10187archive_expsym_cmds_CXX= 10188export_dynamic_flag_spec_CXX= 10189hardcode_direct_CXX=no 10190hardcode_libdir_flag_spec_CXX= 10191hardcode_libdir_flag_spec_ld_CXX= 10192hardcode_libdir_separator_CXX= 10193hardcode_minus_L_CXX=no 10194hardcode_shlibpath_var_CXX=unsupported 10195hardcode_automatic_CXX=no 10196module_cmds_CXX= 10197module_expsym_cmds_CXX= 10198link_all_deplibs_CXX=unknown 10199old_archive_cmds_CXX=$old_archive_cmds 10200no_undefined_flag_CXX= 10201whole_archive_flag_spec_CXX= 10202enable_shared_with_static_runtimes_CXX=no 10203 10204# Dependencies to place before and after the object being linked: 10205predep_objects_CXX= 10206postdep_objects_CXX= 10207predeps_CXX= 10208postdeps_CXX= 10209compiler_lib_search_path_CXX= 10210 10211# Source file extension for C++ test sources. 10212ac_ext=cpp 10213 10214# Object file extension for compiled C++ test sources. 10215objext=o 10216objext_CXX=$objext 10217 10218# Code to be used in simple compile tests 10219lt_simple_compile_test_code="int some_variable = 0;\n" 10220 10221# Code to be used in simple link tests 10222lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10223 10224# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10225 10226# If no C compiler was specified, use CC. 10227LTCC=${LTCC-"$CC"} 10228 10229# If no C compiler flags were specified, use CFLAGS. 10230LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10231 10232# Allow CC to be a program name with arguments. 10233compiler=$CC 10234 10235 10236# save warnings/boilerplate of simple test code 10237ac_outfile=conftest.$ac_objext 10238printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10240_lt_compiler_boilerplate=`cat conftest.err` 10241$rm conftest* 10242 10243ac_outfile=conftest.$ac_objext 10244printf "$lt_simple_link_test_code" >conftest.$ac_ext 10245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10246_lt_linker_boilerplate=`cat conftest.err` 10247$rm conftest* 10248 10249 10250# Allow CC to be a program name with arguments. 10251lt_save_CC=$CC 10252lt_save_LD=$LD 10253lt_save_GCC=$GCC 10254GCC=$GXX 10255lt_save_with_gnu_ld=$with_gnu_ld 10256lt_save_path_LD=$lt_cv_path_LD 10257if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10258 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10259else 10260 $as_unset lt_cv_prog_gnu_ld 10261fi 10262if test -n "${lt_cv_path_LDCXX+set}"; then 10263 lt_cv_path_LD=$lt_cv_path_LDCXX 10264else 10265 $as_unset lt_cv_path_LD 10266fi 10267test -z "${LDCXX+set}" || LD=$LDCXX 10268CC=${CXX-"c++"} 10269compiler=$CC 10270compiler_CXX=$CC 10271for cc_temp in $compiler""; do 10272 case $cc_temp in 10273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10275 \-*) ;; 10276 *) break;; 10277 esac 10278done 10279cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10280 10281 10282# We don't want -fno-exception wen compiling C++ code, so set the 10283# no_builtin_flag separately 10284if test "$GXX" = yes; then 10285 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10286else 10287 lt_prog_compiler_no_builtin_flag_CXX= 10288fi 10289 10290if test "$GXX" = yes; then 10291 # Set up default GNU C++ configuration 10292 10293 10294# Check whether --with-gnu-ld was given. 10295if test "${with_gnu_ld+set}" = set; then 10296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10297else 10298 with_gnu_ld=no 10299fi 10300 10301ac_prog=ld 10302if test "$GCC" = yes; then 10303 # Check if gcc -print-prog-name=ld gives a path. 10304 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10305echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10306 case $host in 10307 *-*-mingw*) 10308 # gcc leaves a trailing carriage return which upsets mingw 10309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10310 *) 10311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10312 esac 10313 case $ac_prog in 10314 # Accept absolute paths. 10315 [\\/]* | ?:[\\/]*) 10316 re_direlt='/[^/][^/]*/\.\./' 10317 # Canonicalize the pathname of ld 10318 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10319 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10320 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10321 done 10322 test -z "$LD" && LD="$ac_prog" 10323 ;; 10324 "") 10325 # If it fails, then pretend we aren't using GCC. 10326 ac_prog=ld 10327 ;; 10328 *) 10329 # If it is relative, then search for the first ld in PATH. 10330 with_gnu_ld=unknown 10331 ;; 10332 esac 10333elif test "$with_gnu_ld" = yes; then 10334 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10335echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10336else 10337 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10338echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10339fi 10340if test "${lt_cv_path_LD+set}" = set; then 10341 echo $ECHO_N "(cached) $ECHO_C" >&6 10342else 10343 if test -z "$LD"; then 10344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10345 for ac_dir in $PATH; do 10346 IFS="$lt_save_ifs" 10347 test -z "$ac_dir" && ac_dir=. 10348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10349 lt_cv_path_LD="$ac_dir/$ac_prog" 10350 # Check to see if the program is GNU ld. I'd rather use --version, 10351 # but apparently some variants of GNU ld only accept -v. 10352 # Break only if it was the GNU/non-GNU ld that we prefer. 10353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10354 *GNU* | *'with BFD'*) 10355 test "$with_gnu_ld" != no && break 10356 ;; 10357 *) 10358 test "$with_gnu_ld" != yes && break 10359 ;; 10360 esac 10361 fi 10362 done 10363 IFS="$lt_save_ifs" 10364else 10365 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10366fi 10367fi 10368 10369LD="$lt_cv_path_LD" 10370if test -n "$LD"; then 10371 { echo "$as_me:$LINENO: result: $LD" >&5 10372echo "${ECHO_T}$LD" >&6; } 10373else 10374 { echo "$as_me:$LINENO: result: no" >&5 10375echo "${ECHO_T}no" >&6; } 10376fi 10377test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10378echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10379 { (exit 1); exit 1; }; } 10380{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10381echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10382if test "${lt_cv_prog_gnu_ld+set}" = set; then 10383 echo $ECHO_N "(cached) $ECHO_C" >&6 10384else 10385 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10386case `$LD -v 2>&1 </dev/null` in 10387*GNU* | *'with BFD'*) 10388 lt_cv_prog_gnu_ld=yes 10389 ;; 10390*) 10391 lt_cv_prog_gnu_ld=no 10392 ;; 10393esac 10394fi 10395{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10396echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10397with_gnu_ld=$lt_cv_prog_gnu_ld 10398 10399 10400 10401 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10402 # archiving commands below assume that GNU ld is being used. 10403 if test "$with_gnu_ld" = yes; then 10404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10405 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' 10406 10407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10409 10410 # If archive_cmds runs LD, not CC, wlarc should be empty 10411 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10412 # investigate it a little bit more. (MM) 10413 wlarc='${wl}' 10414 10415 # ancient GNU ld didn't support --whole-archive et. al. 10416 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10417 grep 'no-whole-archive' > /dev/null; then 10418 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10419 else 10420 whole_archive_flag_spec_CXX= 10421 fi 10422 else 10423 with_gnu_ld=no 10424 wlarc= 10425 10426 # A generic and very simple default shared library creation 10427 # command for GNU C++ for the case where it uses the native 10428 # linker, instead of GNU ld. If possible, this setting should 10429 # overridden to take advantage of the native linker features on 10430 # the platform it is being used on. 10431 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10432 fi 10433 10434 # Commands to make compiler produce verbose output that lists 10435 # what "hidden" libraries, object files and flags are used when 10436 # linking a shared library. 10437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10438 10439else 10440 GXX=no 10441 with_gnu_ld=no 10442 wlarc= 10443fi 10444 10445# PORTME: fill in a description of your system's C++ link characteristics 10446{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10447echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10448ld_shlibs_CXX=yes 10449case $host_os in 10450 aix3*) 10451 # FIXME: insert proper C++ library support 10452 ld_shlibs_CXX=no 10453 ;; 10454 aix4* | aix5*) 10455 if test "$host_cpu" = ia64; then 10456 # On IA64, the linker does run time linking by default, so we don't 10457 # have to do anything special. 10458 aix_use_runtimelinking=no 10459 exp_sym_flag='-Bexport' 10460 no_entry_flag="" 10461 else 10462 aix_use_runtimelinking=no 10463 10464 # Test if we are trying to use run time linking or normal 10465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10466 # need to do runtime linking. 10467 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10468 for ld_flag in $LDFLAGS; do 10469 case $ld_flag in 10470 *-brtl*) 10471 aix_use_runtimelinking=yes 10472 break 10473 ;; 10474 esac 10475 done 10476 ;; 10477 esac 10478 10479 exp_sym_flag='-bexport' 10480 no_entry_flag='-bnoentry' 10481 fi 10482 10483 # When large executables or shared objects are built, AIX ld can 10484 # have problems creating the table of contents. If linking a library 10485 # or program results in "error TOC overflow" add -mminimal-toc to 10486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10488 10489 archive_cmds_CXX='' 10490 hardcode_direct_CXX=yes 10491 hardcode_libdir_separator_CXX=':' 10492 link_all_deplibs_CXX=yes 10493 10494 if test "$GXX" = yes; then 10495 case $host_os in aix4.[012]|aix4.[012].*) 10496 # We only want to do this on AIX 4.2 and lower, the check 10497 # below for broken collect2 doesn't work under 4.3+ 10498 collect2name=`${CC} -print-prog-name=collect2` 10499 if test -f "$collect2name" && \ 10500 strings "$collect2name" | grep resolve_lib_name >/dev/null 10501 then 10502 # We have reworked collect2 10503 hardcode_direct_CXX=yes 10504 else 10505 # We have old collect2 10506 hardcode_direct_CXX=unsupported 10507 # It fails to find uninstalled libraries when the uninstalled 10508 # path is not listed in the libpath. Setting hardcode_minus_L 10509 # to unsupported forces relinking 10510 hardcode_minus_L_CXX=yes 10511 hardcode_libdir_flag_spec_CXX='-L$libdir' 10512 hardcode_libdir_separator_CXX= 10513 fi 10514 ;; 10515 esac 10516 shared_flag='-shared' 10517 if test "$aix_use_runtimelinking" = yes; then 10518 shared_flag="$shared_flag "'${wl}-G' 10519 fi 10520 else 10521 # not using gcc 10522 if test "$host_cpu" = ia64; then 10523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10524 # chokes on -Wl,-G. The following line is correct: 10525 shared_flag='-G' 10526 else 10527 if test "$aix_use_runtimelinking" = yes; then 10528 shared_flag='${wl}-G' 10529 else 10530 shared_flag='${wl}-bM:SRE' 10531 fi 10532 fi 10533 fi 10534 10535 # It seems that -bexpall does not export symbols beginning with 10536 # underscore (_), so it is better to generate a list of symbols to export. 10537 always_export_symbols_CXX=yes 10538 if test "$aix_use_runtimelinking" = yes; then 10539 # Warning - without using the other runtime loading flags (-brtl), 10540 # -berok will link without error, but may produce a broken library. 10541 allow_undefined_flag_CXX='-berok' 10542 # Determine the default libpath from the value encoded in an empty executable. 10543 cat >conftest.$ac_ext <<_ACEOF 10544/* confdefs.h. */ 10545_ACEOF 10546cat confdefs.h >>conftest.$ac_ext 10547cat >>conftest.$ac_ext <<_ACEOF 10548/* end confdefs.h. */ 10549 10550int 10551main () 10552{ 10553 10554 ; 10555 return 0; 10556} 10557_ACEOF 10558rm -f conftest.$ac_objext conftest$ac_exeext 10559if { (ac_try="$ac_link" 10560case "(($ac_try" in 10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10562 *) ac_try_echo=$ac_try;; 10563esac 10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10565 (eval "$ac_link") 2>conftest.er1 10566 ac_status=$? 10567 grep -v '^ *+' conftest.er1 >conftest.err 10568 rm -f conftest.er1 10569 cat conftest.err >&5 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); } && { 10572 test -z "$ac_cxx_werror_flag" || 10573 test ! -s conftest.err 10574 } && test -s conftest$ac_exeext && 10575 $as_test_x conftest$ac_exeext; then 10576 10577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10578}'` 10579# Check for a 64-bit object if we didn't find anything. 10580if 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; } 10581}'`; fi 10582else 10583 echo "$as_me: failed program was:" >&5 10584sed 's/^/| /' conftest.$ac_ext >&5 10585 10586 10587fi 10588 10589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10590 conftest$ac_exeext conftest.$ac_ext 10591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10592 10593 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10594 10595 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" 10596 else 10597 if test "$host_cpu" = ia64; then 10598 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10599 allow_undefined_flag_CXX="-z nodefs" 10600 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" 10601 else 10602 # Determine the default libpath from the value encoded in an empty executable. 10603 cat >conftest.$ac_ext <<_ACEOF 10604/* confdefs.h. */ 10605_ACEOF 10606cat confdefs.h >>conftest.$ac_ext 10607cat >>conftest.$ac_ext <<_ACEOF 10608/* end confdefs.h. */ 10609 10610int 10611main () 10612{ 10613 10614 ; 10615 return 0; 10616} 10617_ACEOF 10618rm -f conftest.$ac_objext conftest$ac_exeext 10619if { (ac_try="$ac_link" 10620case "(($ac_try" in 10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10622 *) ac_try_echo=$ac_try;; 10623esac 10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10625 (eval "$ac_link") 2>conftest.er1 10626 ac_status=$? 10627 grep -v '^ *+' conftest.er1 >conftest.err 10628 rm -f conftest.er1 10629 cat conftest.err >&5 10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10631 (exit $ac_status); } && { 10632 test -z "$ac_cxx_werror_flag" || 10633 test ! -s conftest.err 10634 } && test -s conftest$ac_exeext && 10635 $as_test_x conftest$ac_exeext; then 10636 10637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10638}'` 10639# Check for a 64-bit object if we didn't find anything. 10640if 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; } 10641}'`; fi 10642else 10643 echo "$as_me: failed program was:" >&5 10644sed 's/^/| /' conftest.$ac_ext >&5 10645 10646 10647fi 10648 10649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10650 conftest$ac_exeext conftest.$ac_ext 10651if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10652 10653 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10654 # Warning - without using the other run time loading flags, 10655 # -berok will link without error, but may produce a broken library. 10656 no_undefined_flag_CXX=' ${wl}-bernotok' 10657 allow_undefined_flag_CXX=' ${wl}-berok' 10658 # Exported symbols can be pulled into shared objects from archives 10659 whole_archive_flag_spec_CXX='$convenience' 10660 archive_cmds_need_lc_CXX=yes 10661 # This is similar to how AIX traditionally builds its shared libraries. 10662 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' 10663 fi 10664 fi 10665 ;; 10666 10667 beos*) 10668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10669 allow_undefined_flag_CXX=unsupported 10670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10671 # support --undefined. This deserves some investigation. FIXME 10672 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10673 else 10674 ld_shlibs_CXX=no 10675 fi 10676 ;; 10677 10678 chorus*) 10679 case $cc_basename in 10680 *) 10681 # FIXME: insert proper C++ library support 10682 ld_shlibs_CXX=no 10683 ;; 10684 esac 10685 ;; 10686 10687 cygwin* | mingw* | pw32*) 10688 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10689 # as there is no search path for DLLs. 10690 hardcode_libdir_flag_spec_CXX='-L$libdir' 10691 allow_undefined_flag_CXX=unsupported 10692 always_export_symbols_CXX=no 10693 enable_shared_with_static_runtimes_CXX=yes 10694 10695 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10696 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' 10697 # If the export-symbols file already is a .def file (1st line 10698 # is EXPORTS), use it as is; otherwise, prepend... 10699 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10700 cp $export_symbols $output_objdir/$soname.def; 10701 else 10702 echo EXPORTS > $output_objdir/$soname.def; 10703 cat $export_symbols >> $output_objdir/$soname.def; 10704 fi~ 10705 $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' 10706 else 10707 ld_shlibs_CXX=no 10708 fi 10709 ;; 10710 darwin* | rhapsody*) 10711 case $host_os in 10712 rhapsody* | darwin1.[012]) 10713 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10714 ;; 10715 *) # Darwin 1.3 on 10716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10717 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10718 else 10719 case ${MACOSX_DEPLOYMENT_TARGET} in 10720 10.[012]) 10721 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10722 ;; 10723 10.*) 10724 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10725 ;; 10726 esac 10727 fi 10728 ;; 10729 esac 10730 archive_cmds_need_lc_CXX=no 10731 hardcode_direct_CXX=no 10732 hardcode_automatic_CXX=yes 10733 hardcode_shlibpath_var_CXX=unsupported 10734 whole_archive_flag_spec_CXX='' 10735 link_all_deplibs_CXX=yes 10736 10737 if test "$GXX" = yes ; then 10738 lt_int_apple_cc_single_mod=no 10739 output_verbose_link_cmd='echo' 10740 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10741 lt_int_apple_cc_single_mod=yes 10742 fi 10743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10744 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10745 else 10746 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' 10747 fi 10748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10750 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10751 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}' 10752 else 10753 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}' 10754 fi 10755 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}' 10756 else 10757 case $cc_basename in 10758 xlc*) 10759 output_verbose_link_cmd='echo' 10760 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' 10761 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10763 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}' 10764 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}' 10765 ;; 10766 *) 10767 ld_shlibs_CXX=no 10768 ;; 10769 esac 10770 fi 10771 ;; 10772 10773 dgux*) 10774 case $cc_basename in 10775 ec++*) 10776 # FIXME: insert proper C++ library support 10777 ld_shlibs_CXX=no 10778 ;; 10779 ghcx*) 10780 # Green Hills C++ Compiler 10781 # FIXME: insert proper C++ library support 10782 ld_shlibs_CXX=no 10783 ;; 10784 *) 10785 # FIXME: insert proper C++ library support 10786 ld_shlibs_CXX=no 10787 ;; 10788 esac 10789 ;; 10790 freebsd[12]*) 10791 # C++ shared libraries reported to be fairly broken before switch to ELF 10792 ld_shlibs_CXX=no 10793 ;; 10794 freebsd-elf*) 10795 archive_cmds_need_lc_CXX=no 10796 ;; 10797 freebsd* | kfreebsd*-gnu | dragonfly*) 10798 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10799 # conventions 10800 ld_shlibs_CXX=yes 10801 ;; 10802 gnu*) 10803 ;; 10804 hpux9*) 10805 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10806 hardcode_libdir_separator_CXX=: 10807 export_dynamic_flag_spec_CXX='${wl}-E' 10808 hardcode_direct_CXX=yes 10809 hardcode_minus_L_CXX=yes # Not in the search PATH, 10810 # but as the default 10811 # location of the library. 10812 10813 case $cc_basename in 10814 CC*) 10815 # FIXME: insert proper C++ library support 10816 ld_shlibs_CXX=no 10817 ;; 10818 aCC*) 10819 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' 10820 # Commands to make compiler produce verbose output that lists 10821 # what "hidden" libraries, object files and flags are used when 10822 # linking a shared library. 10823 # 10824 # There doesn't appear to be a way to prevent this compiler from 10825 # explicitly linking system object files so we need to strip them 10826 # from the output so that they don't get included in the library 10827 # dependencies. 10828 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' 10829 ;; 10830 *) 10831 if test "$GXX" = yes; then 10832 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' 10833 else 10834 # FIXME: insert proper C++ library support 10835 ld_shlibs_CXX=no 10836 fi 10837 ;; 10838 esac 10839 ;; 10840 hpux10*|hpux11*) 10841 if test $with_gnu_ld = no; then 10842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10843 hardcode_libdir_separator_CXX=: 10844 10845 case $host_cpu in 10846 hppa*64*|ia64*) 10847 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10848 ;; 10849 *) 10850 export_dynamic_flag_spec_CXX='${wl}-E' 10851 ;; 10852 esac 10853 fi 10854 case $host_cpu in 10855 hppa*64*|ia64*) 10856 hardcode_direct_CXX=no 10857 hardcode_shlibpath_var_CXX=no 10858 ;; 10859 *) 10860 hardcode_direct_CXX=yes 10861 hardcode_minus_L_CXX=yes # Not in the search PATH, 10862 # but as the default 10863 # location of the library. 10864 ;; 10865 esac 10866 10867 case $cc_basename in 10868 CC*) 10869 # FIXME: insert proper C++ library support 10870 ld_shlibs_CXX=no 10871 ;; 10872 aCC*) 10873 case $host_cpu in 10874 hppa*64*) 10875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10876 ;; 10877 ia64*) 10878 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10879 ;; 10880 *) 10881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10882 ;; 10883 esac 10884 # Commands to make compiler produce verbose output that lists 10885 # what "hidden" libraries, object files and flags are used when 10886 # linking a shared library. 10887 # 10888 # There doesn't appear to be a way to prevent this compiler from 10889 # explicitly linking system object files so we need to strip them 10890 # from the output so that they don't get included in the library 10891 # dependencies. 10892 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' 10893 ;; 10894 *) 10895 if test "$GXX" = yes; then 10896 if test $with_gnu_ld = no; then 10897 case $host_cpu in 10898 hppa*64*) 10899 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10900 ;; 10901 ia64*) 10902 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10903 ;; 10904 *) 10905 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' 10906 ;; 10907 esac 10908 fi 10909 else 10910 # FIXME: insert proper C++ library support 10911 ld_shlibs_CXX=no 10912 fi 10913 ;; 10914 esac 10915 ;; 10916 interix3*) 10917 hardcode_direct_CXX=no 10918 hardcode_shlibpath_var_CXX=no 10919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10920 export_dynamic_flag_spec_CXX='${wl}-E' 10921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10922 # Instead, shared libraries are loaded at an image base (0x10000000 by 10923 # default) and relocated if they conflict, which is a slow very memory 10924 # consuming and fragmenting process. To avoid this, we pick a random, 10925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10926 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10927 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' 10928 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' 10929 ;; 10930 irix5* | irix6*) 10931 case $cc_basename in 10932 CC*) 10933 # SGI C++ 10934 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' 10935 10936 # Archives containing C++ object files must be created using 10937 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10938 # necessary to make sure instantiated templates are included 10939 # in the archive. 10940 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10941 ;; 10942 *) 10943 if test "$GXX" = yes; then 10944 if test "$with_gnu_ld" = no; then 10945 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' 10946 else 10947 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' 10948 fi 10949 fi 10950 link_all_deplibs_CXX=yes 10951 ;; 10952 esac 10953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10954 hardcode_libdir_separator_CXX=: 10955 ;; 10956 linux*) 10957 case $cc_basename in 10958 KCC*) 10959 # Kuck and Associates, Inc. (KAI) C++ Compiler 10960 10961 # KCC will only create a shared library if the output file 10962 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10963 # to its proper name (with version) after linking. 10964 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' 10965 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' 10966 # Commands to make compiler produce verbose output that lists 10967 # what "hidden" libraries, object files and flags are used when 10968 # linking a shared library. 10969 # 10970 # There doesn't appear to be a way to prevent this compiler from 10971 # explicitly linking system object files so we need to strip them 10972 # from the output so that they don't get included in the library 10973 # dependencies. 10974 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' 10975 10976 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10978 10979 # Archives containing C++ object files must be created using 10980 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10981 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10982 ;; 10983 icpc*) 10984 # Intel C++ 10985 with_gnu_ld=yes 10986 # version 8.0 and above of icpc choke on multiply defined symbols 10987 # if we add $predep_objects and $postdep_objects, however 7.1 and 10988 # earlier do not add the objects themselves. 10989 case `$CC -V 2>&1` in 10990 *"Version 7."*) 10991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10992 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' 10993 ;; 10994 *) # Version 8.0 or newer 10995 tmp_idyn= 10996 case $host_cpu in 10997 ia64*) tmp_idyn=' -i_dynamic';; 10998 esac 10999 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11000 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' 11001 ;; 11002 esac 11003 archive_cmds_need_lc_CXX=no 11004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11006 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11007 ;; 11008 pgCC*) 11009 # Portland Group C++ compiler 11010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11011 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' 11012 11013 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11015 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' 11016 ;; 11017 cxx*) 11018 # Compaq C++ 11019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11020 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' 11021 11022 runpath_var=LD_RUN_PATH 11023 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11024 hardcode_libdir_separator_CXX=: 11025 11026 # Commands to make compiler produce verbose output that lists 11027 # what "hidden" libraries, object files and flags are used when 11028 # linking a shared library. 11029 # 11030 # There doesn't appear to be a way to prevent this compiler from 11031 # explicitly linking system object files so we need to strip them 11032 # from the output so that they don't get included in the library 11033 # dependencies. 11034 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' 11035 ;; 11036 esac 11037 ;; 11038 lynxos*) 11039 # FIXME: insert proper C++ library support 11040 ld_shlibs_CXX=no 11041 ;; 11042 m88k*) 11043 # FIXME: insert proper C++ library support 11044 ld_shlibs_CXX=no 11045 ;; 11046 mvs*) 11047 case $cc_basename in 11048 cxx*) 11049 # FIXME: insert proper C++ library support 11050 ld_shlibs_CXX=no 11051 ;; 11052 *) 11053 # FIXME: insert proper C++ library support 11054 ld_shlibs_CXX=no 11055 ;; 11056 esac 11057 ;; 11058 netbsd*) 11059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11060 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11061 wlarc= 11062 hardcode_libdir_flag_spec_CXX='-R$libdir' 11063 hardcode_direct_CXX=yes 11064 hardcode_shlibpath_var_CXX=no 11065 fi 11066 # Workaround some broken pre-1.5 toolchains 11067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11068 ;; 11069 openbsd2*) 11070 # C++ shared libraries are fairly broken 11071 ld_shlibs_CXX=no 11072 ;; 11073 openbsd*) 11074 hardcode_direct_CXX=yes 11075 hardcode_shlibpath_var_CXX=no 11076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11080 export_dynamic_flag_spec_CXX='${wl}-E' 11081 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11082 fi 11083 output_verbose_link_cmd='echo' 11084 ;; 11085 osf3*) 11086 case $cc_basename in 11087 KCC*) 11088 # Kuck and Associates, Inc. (KAI) C++ Compiler 11089 11090 # KCC will only create a shared library if the output file 11091 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11092 # to its proper name (with version) after linking. 11093 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' 11094 11095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11096 hardcode_libdir_separator_CXX=: 11097 11098 # Archives containing C++ object files must be created using 11099 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11100 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11101 11102 ;; 11103 RCC*) 11104 # Rational C++ 2.4.1 11105 # FIXME: insert proper C++ library support 11106 ld_shlibs_CXX=no 11107 ;; 11108 cxx*) 11109 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11110 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' 11111 11112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11113 hardcode_libdir_separator_CXX=: 11114 11115 # Commands to make compiler produce verbose output that lists 11116 # what "hidden" libraries, object files and flags are used when 11117 # linking a shared library. 11118 # 11119 # There doesn't appear to be a way to prevent this compiler from 11120 # explicitly linking system object files so we need to strip them 11121 # from the output so that they don't get included in the library 11122 # dependencies. 11123 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' 11124 ;; 11125 *) 11126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11127 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11128 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' 11129 11130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11131 hardcode_libdir_separator_CXX=: 11132 11133 # Commands to make compiler produce verbose output that lists 11134 # what "hidden" libraries, object files and flags are used when 11135 # linking a shared library. 11136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11137 11138 else 11139 # FIXME: insert proper C++ library support 11140 ld_shlibs_CXX=no 11141 fi 11142 ;; 11143 esac 11144 ;; 11145 osf4* | osf5*) 11146 case $cc_basename in 11147 KCC*) 11148 # Kuck and Associates, Inc. (KAI) C++ Compiler 11149 11150 # KCC will only create a shared library if the output file 11151 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11152 # to its proper name (with version) after linking. 11153 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' 11154 11155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11156 hardcode_libdir_separator_CXX=: 11157 11158 # Archives containing C++ object files must be created using 11159 # the KAI C++ compiler. 11160 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11161 ;; 11162 RCC*) 11163 # Rational C++ 2.4.1 11164 # FIXME: insert proper C++ library support 11165 ld_shlibs_CXX=no 11166 ;; 11167 cxx*) 11168 allow_undefined_flag_CXX=' -expect_unresolved \*' 11169 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' 11170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11171 echo "-hidden">> $lib.exp~ 11172 $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~ 11173 $rm $lib.exp' 11174 11175 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11176 hardcode_libdir_separator_CXX=: 11177 11178 # Commands to make compiler produce verbose output that lists 11179 # what "hidden" libraries, object files and flags are used when 11180 # linking a shared library. 11181 # 11182 # There doesn't appear to be a way to prevent this compiler from 11183 # explicitly linking system object files so we need to strip them 11184 # from the output so that they don't get included in the library 11185 # dependencies. 11186 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' 11187 ;; 11188 *) 11189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11191 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' 11192 11193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11194 hardcode_libdir_separator_CXX=: 11195 11196 # Commands to make compiler produce verbose output that lists 11197 # what "hidden" libraries, object files and flags are used when 11198 # linking a shared library. 11199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11200 11201 else 11202 # FIXME: insert proper C++ library support 11203 ld_shlibs_CXX=no 11204 fi 11205 ;; 11206 esac 11207 ;; 11208 psos*) 11209 # FIXME: insert proper C++ library support 11210 ld_shlibs_CXX=no 11211 ;; 11212 sunos4*) 11213 case $cc_basename in 11214 CC*) 11215 # Sun C++ 4.x 11216 # FIXME: insert proper C++ library support 11217 ld_shlibs_CXX=no 11218 ;; 11219 lcc*) 11220 # Lucid 11221 # FIXME: insert proper C++ library support 11222 ld_shlibs_CXX=no 11223 ;; 11224 *) 11225 # FIXME: insert proper C++ library support 11226 ld_shlibs_CXX=no 11227 ;; 11228 esac 11229 ;; 11230 solaris*) 11231 case $cc_basename in 11232 CC*) 11233 # Sun C++ 4.2, 5.x and Centerline C++ 11234 archive_cmds_need_lc_CXX=yes 11235 no_undefined_flag_CXX=' -zdefs' 11236 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11237 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11238 $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' 11239 11240 hardcode_libdir_flag_spec_CXX='-R$libdir' 11241 hardcode_shlibpath_var_CXX=no 11242 case $host_os in 11243 solaris2.[0-5] | solaris2.[0-5].*) ;; 11244 *) 11245 # The C++ compiler is used as linker so we must use $wl 11246 # flag to pass the commands to the underlying system 11247 # linker. We must also pass each convience library through 11248 # to the system linker between allextract/defaultextract. 11249 # The C++ compiler will combine linker options so we 11250 # cannot just pass the convience library names through 11251 # without $wl. 11252 # Supported since Solaris 2.6 (maybe 2.5.1?) 11253 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' 11254 ;; 11255 esac 11256 link_all_deplibs_CXX=yes 11257 11258 output_verbose_link_cmd='echo' 11259 11260 # Archives containing C++ object files must be created using 11261 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11262 # necessary to make sure instantiated templates are included 11263 # in the archive. 11264 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11265 ;; 11266 gcx*) 11267 # Green Hills C++ Compiler 11268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11269 11270 # The C++ compiler must be used to create the archive. 11271 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11272 ;; 11273 *) 11274 # GNU C++ compiler with Solaris linker 11275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11276 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11277 if $CC --version | grep -v '^2\.7' > /dev/null; then 11278 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11279 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11280 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11281 11282 # Commands to make compiler produce verbose output that lists 11283 # what "hidden" libraries, object files and flags are used when 11284 # linking a shared library. 11285 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11286 else 11287 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11288 # platform. 11289 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11291 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11292 11293 # Commands to make compiler produce verbose output that lists 11294 # what "hidden" libraries, object files and flags are used when 11295 # linking a shared library. 11296 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11297 fi 11298 11299 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11300 fi 11301 ;; 11302 esac 11303 ;; 11304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11305 no_undefined_flag_CXX='${wl}-z,text' 11306 archive_cmds_need_lc_CXX=no 11307 hardcode_shlibpath_var_CXX=no 11308 runpath_var='LD_RUN_PATH' 11309 11310 case $cc_basename in 11311 CC*) 11312 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11313 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11314 ;; 11315 *) 11316 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11317 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11318 ;; 11319 esac 11320 ;; 11321 sysv5* | sco3.2v5* | sco5v6*) 11322 # Note: We can NOT use -z defs as we might desire, because we do not 11323 # link with -lc, and that would cause any symbols used from libc to 11324 # always be unresolved, which means just about no library would 11325 # ever link correctly. If we're not using GNU ld we use -z text 11326 # though, which does catch some bad symbols but isn't as heavy-handed 11327 # as -z defs. 11328 # For security reasons, it is highly recommended that you always 11329 # use absolute paths for naming shared libraries, and exclude the 11330 # DT_RUNPATH tag from executables and libraries. But doing so 11331 # requires that you compile everything twice, which is a pain. 11332 # So that behaviour is only enabled if SCOABSPATH is set to a 11333 # non-empty value in the environment. Most likely only useful for 11334 # creating official distributions of packages. 11335 # This is a hack until libtool officially supports absolute path 11336 # names for shared libraries. 11337 no_undefined_flag_CXX='${wl}-z,text' 11338 allow_undefined_flag_CXX='${wl}-z,nodefs' 11339 archive_cmds_need_lc_CXX=no 11340 hardcode_shlibpath_var_CXX=no 11341 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11342 hardcode_libdir_separator_CXX=':' 11343 link_all_deplibs_CXX=yes 11344 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11345 runpath_var='LD_RUN_PATH' 11346 11347 case $cc_basename in 11348 CC*) 11349 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11351 ;; 11352 *) 11353 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11355 ;; 11356 esac 11357 ;; 11358 tandem*) 11359 case $cc_basename in 11360 NCC*) 11361 # NonStop-UX NCC 3.20 11362 # FIXME: insert proper C++ library support 11363 ld_shlibs_CXX=no 11364 ;; 11365 *) 11366 # FIXME: insert proper C++ library support 11367 ld_shlibs_CXX=no 11368 ;; 11369 esac 11370 ;; 11371 vxworks*) 11372 # FIXME: insert proper C++ library support 11373 ld_shlibs_CXX=no 11374 ;; 11375 *) 11376 # FIXME: insert proper C++ library support 11377 ld_shlibs_CXX=no 11378 ;; 11379esac 11380{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11381echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11382test "$ld_shlibs_CXX" = no && can_build_shared=no 11383 11384GCC_CXX="$GXX" 11385LD_CXX="$LD" 11386 11387## CAVEAT EMPTOR: 11388## There is no encapsulation within the following macros, do not change 11389## the running order or otherwise move them around unless you know exactly 11390## what you are doing... 11391 11392cat > conftest.$ac_ext <<EOF 11393class Foo 11394{ 11395public: 11396 Foo (void) { a = 0; } 11397private: 11398 int a; 11399}; 11400EOF 11401 11402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11403 (eval $ac_compile) 2>&5 11404 ac_status=$? 11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11406 (exit $ac_status); }; then 11407 # Parse the compiler output and extract the necessary 11408 # objects, libraries and library flags. 11409 11410 # Sentinel used to keep track of whether or not we are before 11411 # the conftest object file. 11412 pre_test_object_deps_done=no 11413 11414 # The `*' in the case matches for architectures that use `case' in 11415 # $output_verbose_cmd can trigger glob expansion during the loop 11416 # eval without this substitution. 11417 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11418 11419 for p in `eval $output_verbose_link_cmd`; do 11420 case $p in 11421 11422 -L* | -R* | -l*) 11423 # Some compilers place space between "-{L,R}" and the path. 11424 # Remove the space. 11425 if test $p = "-L" \ 11426 || test $p = "-R"; then 11427 prev=$p 11428 continue 11429 else 11430 prev= 11431 fi 11432 11433 if test "$pre_test_object_deps_done" = no; then 11434 case $p in 11435 -L* | -R*) 11436 # Internal compiler library paths should come after those 11437 # provided the user. The postdeps already come after the 11438 # user supplied libs so there is no need to process them. 11439 if test -z "$compiler_lib_search_path_CXX"; then 11440 compiler_lib_search_path_CXX="${prev}${p}" 11441 else 11442 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11443 fi 11444 ;; 11445 # The "-l" case would never come before the object being 11446 # linked, so don't bother handling this case. 11447 esac 11448 else 11449 if test -z "$postdeps_CXX"; then 11450 postdeps_CXX="${prev}${p}" 11451 else 11452 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11453 fi 11454 fi 11455 ;; 11456 11457 *.$objext) 11458 # This assumes that the test object file only shows up 11459 # once in the compiler output. 11460 if test "$p" = "conftest.$objext"; then 11461 pre_test_object_deps_done=yes 11462 continue 11463 fi 11464 11465 if test "$pre_test_object_deps_done" = no; then 11466 if test -z "$predep_objects_CXX"; then 11467 predep_objects_CXX="$p" 11468 else 11469 predep_objects_CXX="$predep_objects_CXX $p" 11470 fi 11471 else 11472 if test -z "$postdep_objects_CXX"; then 11473 postdep_objects_CXX="$p" 11474 else 11475 postdep_objects_CXX="$postdep_objects_CXX $p" 11476 fi 11477 fi 11478 ;; 11479 11480 *) ;; # Ignore the rest. 11481 11482 esac 11483 done 11484 11485 # Clean up. 11486 rm -f a.out a.exe 11487else 11488 echo "libtool.m4: error: problem compiling CXX test program" 11489fi 11490 11491$rm -f confest.$objext 11492 11493# PORTME: override above test on systems where it is broken 11494case $host_os in 11495interix3*) 11496 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11497 # hack all around it, let's just trust "g++" to DTRT. 11498 predep_objects_CXX= 11499 postdep_objects_CXX= 11500 postdeps_CXX= 11501 ;; 11502 11503solaris*) 11504 case $cc_basename in 11505 CC*) 11506 # Adding this requires a known-good setup of shared libraries for 11507 # Sun compiler versions before 5.6, else PIC objects from an old 11508 # archive will be linked into the output, leading to subtle bugs. 11509 postdeps_CXX='-lCstd -lCrun' 11510 ;; 11511 esac 11512 ;; 11513esac 11514 11515 11516case " $postdeps_CXX " in 11517*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11518esac 11519 11520lt_prog_compiler_wl_CXX= 11521lt_prog_compiler_pic_CXX= 11522lt_prog_compiler_static_CXX= 11523 11524{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11526 11527 # C++ specific cases for pic, static, wl, etc. 11528 if test "$GXX" = yes; then 11529 lt_prog_compiler_wl_CXX='-Wl,' 11530 lt_prog_compiler_static_CXX='-static' 11531 11532 case $host_os in 11533 aix*) 11534 # All AIX code is PIC. 11535 if test "$host_cpu" = ia64; then 11536 # AIX 5 now supports IA64 processor 11537 lt_prog_compiler_static_CXX='-Bstatic' 11538 fi 11539 ;; 11540 amigaos*) 11541 # FIXME: we need at least 68020 code to build shared libraries, but 11542 # adding the `-m68020' flag to GCC prevents building anything better, 11543 # like `-m68040'. 11544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11545 ;; 11546 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11547 # PIC is the default for these OSes. 11548 ;; 11549 mingw* | os2* | pw32*) 11550 # This hack is so that the source file can tell whether it is being 11551 # built for inclusion in a dll (and should export symbols for example). 11552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11553 ;; 11554 darwin* | rhapsody*) 11555 # PIC is the default on this platform 11556 # Common symbols not allowed in MH_DYLIB files 11557 lt_prog_compiler_pic_CXX='-fno-common' 11558 ;; 11559 *djgpp*) 11560 # DJGPP does not support shared libraries at all 11561 lt_prog_compiler_pic_CXX= 11562 ;; 11563 interix3*) 11564 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11565 # Instead, we relocate shared libraries at runtime. 11566 ;; 11567 sysv4*MP*) 11568 if test -d /usr/nec; then 11569 lt_prog_compiler_pic_CXX=-Kconform_pic 11570 fi 11571 ;; 11572 hpux*) 11573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11574 # not for PA HP-UX. 11575 case $host_cpu in 11576 hppa*64*|ia64*) 11577 ;; 11578 *) 11579 lt_prog_compiler_pic_CXX='-fPIC' 11580 ;; 11581 esac 11582 ;; 11583 *) 11584 lt_prog_compiler_pic_CXX='-fPIC' 11585 ;; 11586 esac 11587 else 11588 case $host_os in 11589 aix4* | aix5*) 11590 # All AIX code is PIC. 11591 if test "$host_cpu" = ia64; then 11592 # AIX 5 now supports IA64 processor 11593 lt_prog_compiler_static_CXX='-Bstatic' 11594 else 11595 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11596 fi 11597 ;; 11598 chorus*) 11599 case $cc_basename in 11600 cxch68*) 11601 # Green Hills C++ Compiler 11602 # _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" 11603 ;; 11604 esac 11605 ;; 11606 darwin*) 11607 # PIC is the default on this platform 11608 # Common symbols not allowed in MH_DYLIB files 11609 case $cc_basename in 11610 xlc*) 11611 lt_prog_compiler_pic_CXX='-qnocommon' 11612 lt_prog_compiler_wl_CXX='-Wl,' 11613 ;; 11614 esac 11615 ;; 11616 dgux*) 11617 case $cc_basename in 11618 ec++*) 11619 lt_prog_compiler_pic_CXX='-KPIC' 11620 ;; 11621 ghcx*) 11622 # Green Hills C++ Compiler 11623 lt_prog_compiler_pic_CXX='-pic' 11624 ;; 11625 *) 11626 ;; 11627 esac 11628 ;; 11629 freebsd* | kfreebsd*-gnu | dragonfly*) 11630 # FreeBSD uses GNU C++ 11631 ;; 11632 hpux9* | hpux10* | hpux11*) 11633 case $cc_basename in 11634 CC*) 11635 lt_prog_compiler_wl_CXX='-Wl,' 11636 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11637 if test "$host_cpu" != ia64; then 11638 lt_prog_compiler_pic_CXX='+Z' 11639 fi 11640 ;; 11641 aCC*) 11642 lt_prog_compiler_wl_CXX='-Wl,' 11643 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11644 case $host_cpu in 11645 hppa*64*|ia64*) 11646 # +Z the default 11647 ;; 11648 *) 11649 lt_prog_compiler_pic_CXX='+Z' 11650 ;; 11651 esac 11652 ;; 11653 *) 11654 ;; 11655 esac 11656 ;; 11657 interix*) 11658 # This is c89, which is MS Visual C++ (no shared libs) 11659 # Anyone wants to do a port? 11660 ;; 11661 irix5* | irix6* | nonstopux*) 11662 case $cc_basename in 11663 CC*) 11664 lt_prog_compiler_wl_CXX='-Wl,' 11665 lt_prog_compiler_static_CXX='-non_shared' 11666 # CC pic flag -KPIC is the default. 11667 ;; 11668 *) 11669 ;; 11670 esac 11671 ;; 11672 linux*) 11673 case $cc_basename in 11674 KCC*) 11675 # KAI C++ Compiler 11676 lt_prog_compiler_wl_CXX='--backend -Wl,' 11677 lt_prog_compiler_pic_CXX='-fPIC' 11678 ;; 11679 icpc* | ecpc*) 11680 # Intel C++ 11681 lt_prog_compiler_wl_CXX='-Wl,' 11682 lt_prog_compiler_pic_CXX='-KPIC' 11683 lt_prog_compiler_static_CXX='-static' 11684 ;; 11685 pgCC*) 11686 # Portland Group C++ compiler. 11687 lt_prog_compiler_wl_CXX='-Wl,' 11688 lt_prog_compiler_pic_CXX='-fpic' 11689 lt_prog_compiler_static_CXX='-Bstatic' 11690 ;; 11691 cxx*) 11692 # Compaq C++ 11693 # Make sure the PIC flag is empty. It appears that all Alpha 11694 # Linux and Compaq Tru64 Unix objects are PIC. 11695 lt_prog_compiler_pic_CXX= 11696 lt_prog_compiler_static_CXX='-non_shared' 11697 ;; 11698 *) 11699 ;; 11700 esac 11701 ;; 11702 lynxos*) 11703 ;; 11704 m88k*) 11705 ;; 11706 mvs*) 11707 case $cc_basename in 11708 cxx*) 11709 lt_prog_compiler_pic_CXX='-W c,exportall' 11710 ;; 11711 *) 11712 ;; 11713 esac 11714 ;; 11715 netbsd*) 11716 ;; 11717 osf3* | osf4* | osf5*) 11718 case $cc_basename in 11719 KCC*) 11720 lt_prog_compiler_wl_CXX='--backend -Wl,' 11721 ;; 11722 RCC*) 11723 # Rational C++ 2.4.1 11724 lt_prog_compiler_pic_CXX='-pic' 11725 ;; 11726 cxx*) 11727 # Digital/Compaq C++ 11728 lt_prog_compiler_wl_CXX='-Wl,' 11729 # Make sure the PIC flag is empty. It appears that all Alpha 11730 # Linux and Compaq Tru64 Unix objects are PIC. 11731 lt_prog_compiler_pic_CXX= 11732 lt_prog_compiler_static_CXX='-non_shared' 11733 ;; 11734 *) 11735 ;; 11736 esac 11737 ;; 11738 psos*) 11739 ;; 11740 solaris*) 11741 case $cc_basename in 11742 CC*) 11743 # Sun C++ 4.2, 5.x and Centerline C++ 11744 lt_prog_compiler_pic_CXX='-KPIC' 11745 lt_prog_compiler_static_CXX='-Bstatic' 11746 lt_prog_compiler_wl_CXX='-Qoption ld ' 11747 ;; 11748 gcx*) 11749 # Green Hills C++ Compiler 11750 lt_prog_compiler_pic_CXX='-PIC' 11751 ;; 11752 *) 11753 ;; 11754 esac 11755 ;; 11756 sunos4*) 11757 case $cc_basename in 11758 CC*) 11759 # Sun C++ 4.x 11760 lt_prog_compiler_pic_CXX='-pic' 11761 lt_prog_compiler_static_CXX='-Bstatic' 11762 ;; 11763 lcc*) 11764 # Lucid 11765 lt_prog_compiler_pic_CXX='-pic' 11766 ;; 11767 *) 11768 ;; 11769 esac 11770 ;; 11771 tandem*) 11772 case $cc_basename in 11773 NCC*) 11774 # NonStop-UX NCC 3.20 11775 lt_prog_compiler_pic_CXX='-KPIC' 11776 ;; 11777 *) 11778 ;; 11779 esac 11780 ;; 11781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11782 case $cc_basename in 11783 CC*) 11784 lt_prog_compiler_wl_CXX='-Wl,' 11785 lt_prog_compiler_pic_CXX='-KPIC' 11786 lt_prog_compiler_static_CXX='-Bstatic' 11787 ;; 11788 esac 11789 ;; 11790 vxworks*) 11791 ;; 11792 *) 11793 lt_prog_compiler_can_build_shared_CXX=no 11794 ;; 11795 esac 11796 fi 11797 11798{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11799echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 11800 11801# 11802# Check to make sure the PIC flag actually works. 11803# 11804if test -n "$lt_prog_compiler_pic_CXX"; then 11805 11806{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11807echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 11808if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11809 echo $ECHO_N "(cached) $ECHO_C" >&6 11810else 11811 lt_prog_compiler_pic_works_CXX=no 11812 ac_outfile=conftest.$ac_objext 11813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11815 # Insert the option either (1) after the last *FLAGS variable, or 11816 # (2) before a word containing "conftest.", or (3) at the end. 11817 # Note that $ac_compile itself does not contain backslashes and begins 11818 # with a dollar sign (not a hyphen), so the echo should work correctly. 11819 # The option is referenced via a variable to avoid confusing sed. 11820 lt_compile=`echo "$ac_compile" | $SED \ 11821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11823 -e 's:$: $lt_compiler_flag:'` 11824 (eval echo "\"\$as_me:11824: $lt_compile\"" >&5) 11825 (eval "$lt_compile" 2>conftest.err) 11826 ac_status=$? 11827 cat conftest.err >&5 11828 echo "$as_me:11828: \$? = $ac_status" >&5 11829 if (exit $ac_status) && test -s "$ac_outfile"; then 11830 # The compiler can only warn and ignore the option if not recognized 11831 # So say no if there are warnings other than the usual output. 11832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11835 lt_prog_compiler_pic_works_CXX=yes 11836 fi 11837 fi 11838 $rm conftest* 11839 11840fi 11841{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11842echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 11843 11844if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11845 case $lt_prog_compiler_pic_CXX in 11846 "" | " "*) ;; 11847 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11848 esac 11849else 11850 lt_prog_compiler_pic_CXX= 11851 lt_prog_compiler_can_build_shared_CXX=no 11852fi 11853 11854fi 11855case $host_os in 11856 # For platforms which do not support PIC, -DPIC is meaningless: 11857 *djgpp*) 11858 lt_prog_compiler_pic_CXX= 11859 ;; 11860 *) 11861 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11862 ;; 11863esac 11864 11865# 11866# Check to make sure the static flag actually works. 11867# 11868wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11869{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11870echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 11871if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11872 echo $ECHO_N "(cached) $ECHO_C" >&6 11873else 11874 lt_prog_compiler_static_works_CXX=no 11875 save_LDFLAGS="$LDFLAGS" 11876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11877 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11879 # The linker can only warn and ignore the option if not recognized 11880 # So say no if there are warnings 11881 if test -s conftest.err; then 11882 # Append any errors to the config.log. 11883 cat conftest.err 1>&5 11884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11886 if diff conftest.exp conftest.er2 >/dev/null; then 11887 lt_prog_compiler_static_works_CXX=yes 11888 fi 11889 else 11890 lt_prog_compiler_static_works_CXX=yes 11891 fi 11892 fi 11893 $rm conftest* 11894 LDFLAGS="$save_LDFLAGS" 11895 11896fi 11897{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11898echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 11899 11900if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11901 : 11902else 11903 lt_prog_compiler_static_CXX= 11904fi 11905 11906 11907{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 11909if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11910 echo $ECHO_N "(cached) $ECHO_C" >&6 11911else 11912 lt_cv_prog_compiler_c_o_CXX=no 11913 $rm -r conftest 2>/dev/null 11914 mkdir conftest 11915 cd conftest 11916 mkdir out 11917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11918 11919 lt_compiler_flag="-o out/conftest2.$ac_objext" 11920 # Insert the option either (1) after the last *FLAGS variable, or 11921 # (2) before a word containing "conftest.", or (3) at the end. 11922 # Note that $ac_compile itself does not contain backslashes and begins 11923 # with a dollar sign (not a hyphen), so the echo should work correctly. 11924 lt_compile=`echo "$ac_compile" | $SED \ 11925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11927 -e 's:$: $lt_compiler_flag:'` 11928 (eval echo "\"\$as_me:11928: $lt_compile\"" >&5) 11929 (eval "$lt_compile" 2>out/conftest.err) 11930 ac_status=$? 11931 cat out/conftest.err >&5 11932 echo "$as_me:11932: \$? = $ac_status" >&5 11933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11934 then 11935 # The compiler can only warn and ignore the option if not recognized 11936 # So say no if there are warnings 11937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11940 lt_cv_prog_compiler_c_o_CXX=yes 11941 fi 11942 fi 11943 chmod u+w . 2>&5 11944 $rm conftest* 11945 # SGI C++ compiler will create directory out/ii_files/ for 11946 # template instantiation 11947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11948 $rm out/* && rmdir out 11949 cd .. 11950 rmdir conftest 11951 $rm conftest* 11952 11953fi 11954{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11955echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 11956 11957 11958hard_links="nottested" 11959if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11960 # do not overwrite the value of need_locks provided by the user 11961 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11962echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 11963 hard_links=yes 11964 $rm conftest* 11965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11966 touch conftest.a 11967 ln conftest.a conftest.b 2>&5 || hard_links=no 11968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11969 { echo "$as_me:$LINENO: result: $hard_links" >&5 11970echo "${ECHO_T}$hard_links" >&6; } 11971 if test "$hard_links" = no; then 11972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11973echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11974 need_locks=warn 11975 fi 11976else 11977 need_locks=no 11978fi 11979 11980{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11981echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11982 11983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11984 case $host_os in 11985 aix4* | aix5*) 11986 # If we're using GNU nm, then we don't want the "-C" option. 11987 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11989 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' 11990 else 11991 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' 11992 fi 11993 ;; 11994 pw32*) 11995 export_symbols_cmds_CXX="$ltdll_cmds" 11996 ;; 11997 cygwin* | mingw*) 11998 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' 11999 ;; 12000 *) 12001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12002 ;; 12003 esac 12004 12005{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12006echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12007test "$ld_shlibs_CXX" = no && can_build_shared=no 12008 12009# 12010# Do we need to explicitly link libc? 12011# 12012case "x$archive_cmds_need_lc_CXX" in 12013x|xyes) 12014 # Assume -lc should be added 12015 archive_cmds_need_lc_CXX=yes 12016 12017 if test "$enable_shared" = yes && test "$GCC" = yes; then 12018 case $archive_cmds_CXX in 12019 *'~'*) 12020 # FIXME: we may have to deal with multi-command sequences. 12021 ;; 12022 '$CC '*) 12023 # Test whether the compiler implicitly links with -lc since on some 12024 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12025 # to ld, don't add -lc before -lgcc. 12026 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12028 $rm conftest* 12029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12030 12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12032 (eval $ac_compile) 2>&5 12033 ac_status=$? 12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12035 (exit $ac_status); } 2>conftest.err; then 12036 soname=conftest 12037 lib=conftest 12038 libobjs=conftest.$ac_objext 12039 deplibs= 12040 wl=$lt_prog_compiler_wl_CXX 12041 pic_flag=$lt_prog_compiler_pic_CXX 12042 compiler_flags=-v 12043 linker_flags=-v 12044 verstring= 12045 output_objdir=. 12046 libname=conftest 12047 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12048 allow_undefined_flag_CXX= 12049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12050 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12051 ac_status=$? 12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12053 (exit $ac_status); } 12054 then 12055 archive_cmds_need_lc_CXX=no 12056 else 12057 archive_cmds_need_lc_CXX=yes 12058 fi 12059 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12060 else 12061 cat conftest.err 1>&5 12062 fi 12063 $rm conftest* 12064 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12065echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12066 ;; 12067 esac 12068 fi 12069 ;; 12070esac 12071 12072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12074library_names_spec= 12075libname_spec='lib$name' 12076soname_spec= 12077shrext_cmds=".so" 12078postinstall_cmds= 12079postuninstall_cmds= 12080finish_cmds= 12081finish_eval= 12082shlibpath_var= 12083shlibpath_overrides_runpath=unknown 12084version_type=none 12085dynamic_linker="$host_os ld.so" 12086sys_lib_dlsearch_path_spec="/lib /usr/lib" 12087if test "$GCC" = yes; then 12088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12090 # if the path contains ";" then we assume it to be the separator 12091 # otherwise default to the standard path separator (i.e. ":") - it is 12092 # assumed that no part of a normal pathname contains ";" but that should 12093 # okay in the real world where ";" in dirpaths is itself problematic. 12094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12095 else 12096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12097 fi 12098else 12099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12100fi 12101need_lib_prefix=unknown 12102hardcode_into_libs=no 12103 12104# when you set need_version to no, make sure it does not cause -set_version 12105# flags to be left without arguments 12106need_version=unknown 12107 12108case $host_os in 12109aix3*) 12110 version_type=linux 12111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12112 shlibpath_var=LIBPATH 12113 12114 # AIX 3 has no versioning support, so we append a major version to the name. 12115 soname_spec='${libname}${release}${shared_ext}$major' 12116 ;; 12117 12118aix4* | aix5*) 12119 version_type=linux 12120 need_lib_prefix=no 12121 need_version=no 12122 hardcode_into_libs=yes 12123 if test "$host_cpu" = ia64; then 12124 # AIX 5 supports IA64 12125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12126 shlibpath_var=LD_LIBRARY_PATH 12127 else 12128 # With GCC up to 2.95.x, collect2 would create an import file 12129 # for dependence libraries. The import file would start with 12130 # the line `#! .'. This would cause the generated library to 12131 # depend on `.', always an invalid library. This was fixed in 12132 # development snapshots of GCC prior to 3.0. 12133 case $host_os in 12134 aix4 | aix4.[01] | aix4.[01].*) 12135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12136 echo ' yes ' 12137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12138 : 12139 else 12140 can_build_shared=no 12141 fi 12142 ;; 12143 esac 12144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12145 # soname into executable. Probably we can add versioning support to 12146 # collect2, so additional links can be useful in future. 12147 if test "$aix_use_runtimelinking" = yes; then 12148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12149 # instead of lib<name>.a to let people know that these are not 12150 # typical AIX shared libraries. 12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12152 else 12153 # We preserve .a as extension for shared libraries through AIX4.2 12154 # and later when we are not doing run time linking. 12155 library_names_spec='${libname}${release}.a $libname.a' 12156 soname_spec='${libname}${release}${shared_ext}$major' 12157 fi 12158 shlibpath_var=LIBPATH 12159 fi 12160 ;; 12161 12162amigaos*) 12163 library_names_spec='$libname.ixlibrary $libname.a' 12164 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12165 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' 12166 ;; 12167 12168beos*) 12169 library_names_spec='${libname}${shared_ext}' 12170 dynamic_linker="$host_os ld.so" 12171 shlibpath_var=LIBRARY_PATH 12172 ;; 12173 12174bsdi[45]*) 12175 version_type=linux 12176 need_version=no 12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12178 soname_spec='${libname}${release}${shared_ext}$major' 12179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12183 # the default ld.so.conf also contains /usr/contrib/lib and 12184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12185 # libtool to hard-code these into programs 12186 ;; 12187 12188cygwin* | mingw* | pw32*) 12189 version_type=windows 12190 shrext_cmds=".dll" 12191 need_version=no 12192 need_lib_prefix=no 12193 12194 case $GCC,$host_os in 12195 yes,cygwin* | yes,mingw* | yes,pw32*) 12196 library_names_spec='$libname.dll.a' 12197 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12198 postinstall_cmds='base_file=`basename \${file}`~ 12199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12200 dldir=$destdir/`dirname \$dlpath`~ 12201 test -d \$dldir || mkdir -p \$dldir~ 12202 $install_prog $dir/$dlname \$dldir/$dlname~ 12203 chmod a+x \$dldir/$dlname' 12204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12205 dlpath=$dir/\$dldll~ 12206 $rm \$dlpath' 12207 shlibpath_overrides_runpath=yes 12208 12209 case $host_os in 12210 cygwin*) 12211 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12214 ;; 12215 mingw*) 12216 # MinGW DLLs use traditional 'lib' prefix 12217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12220 # It is most probably a Windows format PATH printed by 12221 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12222 # path with ; separators, and with drive letters. We can handle the 12223 # drive letters (cygwin fileutils understands them), so leave them, 12224 # especially as we might pass files found there to a mingw objdump, 12225 # which wouldn't understand a cygwinified path. Ahh. 12226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12227 else 12228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12229 fi 12230 ;; 12231 pw32*) 12232 # pw32 DLLs use 'pw' prefix rather than 'lib' 12233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12234 ;; 12235 esac 12236 ;; 12237 12238 *) 12239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12240 ;; 12241 esac 12242 dynamic_linker='Win32 ld.exe' 12243 # FIXME: first we should search . and the directory the executable is in 12244 shlibpath_var=PATH 12245 ;; 12246 12247darwin* | rhapsody*) 12248 dynamic_linker="$host_os dyld" 12249 version_type=darwin 12250 need_lib_prefix=no 12251 need_version=no 12252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12253 soname_spec='${libname}${release}${major}$shared_ext' 12254 shlibpath_overrides_runpath=yes 12255 shlibpath_var=DYLD_LIBRARY_PATH 12256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12258 if test "$GCC" = yes; then 12259 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"` 12260 else 12261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12262 fi 12263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12264 ;; 12265 12266dgux*) 12267 version_type=linux 12268 need_lib_prefix=no 12269 need_version=no 12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12271 soname_spec='${libname}${release}${shared_ext}$major' 12272 shlibpath_var=LD_LIBRARY_PATH 12273 ;; 12274 12275freebsd1*) 12276 dynamic_linker=no 12277 ;; 12278 12279kfreebsd*-gnu) 12280 version_type=linux 12281 need_lib_prefix=no 12282 need_version=no 12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12284 soname_spec='${libname}${release}${shared_ext}$major' 12285 shlibpath_var=LD_LIBRARY_PATH 12286 shlibpath_overrides_runpath=no 12287 hardcode_into_libs=yes 12288 dynamic_linker='GNU ld.so' 12289 ;; 12290 12291freebsd* | dragonfly*) 12292 # DragonFly does not have aout. When/if they implement a new 12293 # versioning mechanism, adjust this. 12294 if test -x /usr/bin/objformat; then 12295 objformat=`/usr/bin/objformat` 12296 else 12297 case $host_os in 12298 freebsd[123]*) objformat=aout ;; 12299 *) objformat=elf ;; 12300 esac 12301 fi 12302 version_type=freebsd-$objformat 12303 case $version_type in 12304 freebsd-elf*) 12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12306 need_version=no 12307 need_lib_prefix=no 12308 ;; 12309 freebsd-*) 12310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12311 need_version=yes 12312 ;; 12313 esac 12314 shlibpath_var=LD_LIBRARY_PATH 12315 case $host_os in 12316 freebsd2*) 12317 shlibpath_overrides_runpath=yes 12318 ;; 12319 freebsd3.[01]* | freebsdelf3.[01]*) 12320 shlibpath_overrides_runpath=yes 12321 hardcode_into_libs=yes 12322 ;; 12323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12325 shlibpath_overrides_runpath=no 12326 hardcode_into_libs=yes 12327 ;; 12328 freebsd*) # from 4.6 on 12329 shlibpath_overrides_runpath=yes 12330 hardcode_into_libs=yes 12331 ;; 12332 esac 12333 ;; 12334 12335gnu*) 12336 version_type=linux 12337 need_lib_prefix=no 12338 need_version=no 12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12340 soname_spec='${libname}${release}${shared_ext}$major' 12341 shlibpath_var=LD_LIBRARY_PATH 12342 hardcode_into_libs=yes 12343 ;; 12344 12345hpux9* | hpux10* | hpux11*) 12346 # Give a soname corresponding to the major version so that dld.sl refuses to 12347 # link against other versions. 12348 version_type=sunos 12349 need_lib_prefix=no 12350 need_version=no 12351 case $host_cpu in 12352 ia64*) 12353 shrext_cmds='.so' 12354 hardcode_into_libs=yes 12355 dynamic_linker="$host_os dld.so" 12356 shlibpath_var=LD_LIBRARY_PATH 12357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12359 soname_spec='${libname}${release}${shared_ext}$major' 12360 if test "X$HPUX_IA64_MODE" = X32; then 12361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12362 else 12363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12364 fi 12365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12366 ;; 12367 hppa*64*) 12368 shrext_cmds='.sl' 12369 hardcode_into_libs=yes 12370 dynamic_linker="$host_os dld.sl" 12371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12374 soname_spec='${libname}${release}${shared_ext}$major' 12375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12377 ;; 12378 *) 12379 shrext_cmds='.sl' 12380 dynamic_linker="$host_os dld.sl" 12381 shlibpath_var=SHLIB_PATH 12382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12384 soname_spec='${libname}${release}${shared_ext}$major' 12385 ;; 12386 esac 12387 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12388 postinstall_cmds='chmod 555 $lib' 12389 ;; 12390 12391interix3*) 12392 version_type=linux 12393 need_lib_prefix=no 12394 need_version=no 12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12396 soname_spec='${libname}${release}${shared_ext}$major' 12397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12398 shlibpath_var=LD_LIBRARY_PATH 12399 shlibpath_overrides_runpath=no 12400 hardcode_into_libs=yes 12401 ;; 12402 12403irix5* | irix6* | nonstopux*) 12404 case $host_os in 12405 nonstopux*) version_type=nonstopux ;; 12406 *) 12407 if test "$lt_cv_prog_gnu_ld" = yes; then 12408 version_type=linux 12409 else 12410 version_type=irix 12411 fi ;; 12412 esac 12413 need_lib_prefix=no 12414 need_version=no 12415 soname_spec='${libname}${release}${shared_ext}$major' 12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12417 case $host_os in 12418 irix5* | nonstopux*) 12419 libsuff= shlibsuff= 12420 ;; 12421 *) 12422 case $LD in # libtool.m4 will add one of these switches to LD 12423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12424 libsuff= shlibsuff= libmagic=32-bit;; 12425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12426 libsuff=32 shlibsuff=N32 libmagic=N32;; 12427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12428 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12429 *) libsuff= shlibsuff= libmagic=never-match;; 12430 esac 12431 ;; 12432 esac 12433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12434 shlibpath_overrides_runpath=no 12435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12437 hardcode_into_libs=yes 12438 ;; 12439 12440# No shared lib support for Linux oldld, aout, or coff. 12441linux*oldld* | linux*aout* | linux*coff*) 12442 dynamic_linker=no 12443 ;; 12444 12445# This must be Linux ELF. 12446linux*) 12447 version_type=linux 12448 need_lib_prefix=no 12449 need_version=no 12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12451 soname_spec='${libname}${release}${shared_ext}$major' 12452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12453 shlibpath_var=LD_LIBRARY_PATH 12454 shlibpath_overrides_runpath=no 12455 # This implies no fast_install, which is unacceptable. 12456 # Some rework will be needed to allow for fast_install 12457 # before this can be enabled. 12458 hardcode_into_libs=yes 12459 12460 # Append ld.so.conf contents to the search path 12461 if test -f /etc/ld.so.conf; then 12462 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' ' '` 12463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12464 fi 12465 12466 # We used to test for /lib/ld.so.1 and disable shared libraries on 12467 # powerpc, because MkLinux only supported shared libraries with the 12468 # GNU dynamic linker. Since this was broken with cross compilers, 12469 # most powerpc-linux boxes support dynamic linking these days and 12470 # people can always --disable-shared, the test was removed, and we 12471 # assume the GNU/Linux dynamic linker is in use. 12472 dynamic_linker='GNU/Linux ld.so' 12473 ;; 12474 12475knetbsd*-gnu) 12476 version_type=linux 12477 need_lib_prefix=no 12478 need_version=no 12479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12480 soname_spec='${libname}${release}${shared_ext}$major' 12481 shlibpath_var=LD_LIBRARY_PATH 12482 shlibpath_overrides_runpath=no 12483 hardcode_into_libs=yes 12484 dynamic_linker='GNU ld.so' 12485 ;; 12486 12487netbsd*) 12488 version_type=sunos 12489 need_lib_prefix=no 12490 need_version=no 12491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12494 dynamic_linker='NetBSD (a.out) ld.so' 12495 else 12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12497 soname_spec='${libname}${release}${shared_ext}$major' 12498 dynamic_linker='NetBSD ld.elf_so' 12499 fi 12500 shlibpath_var=LD_LIBRARY_PATH 12501 shlibpath_overrides_runpath=yes 12502 hardcode_into_libs=yes 12503 ;; 12504 12505newsos6) 12506 version_type=linux 12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12508 shlibpath_var=LD_LIBRARY_PATH 12509 shlibpath_overrides_runpath=yes 12510 ;; 12511 12512nto-qnx*) 12513 version_type=linux 12514 need_lib_prefix=no 12515 need_version=no 12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12517 soname_spec='${libname}${release}${shared_ext}$major' 12518 shlibpath_var=LD_LIBRARY_PATH 12519 shlibpath_overrides_runpath=yes 12520 ;; 12521 12522openbsd*) 12523 version_type=sunos 12524 sys_lib_dlsearch_path_spec="/usr/lib" 12525 need_lib_prefix=no 12526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12527 case $host_os in 12528 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12529 *) need_version=no ;; 12530 esac 12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12533 shlibpath_var=LD_LIBRARY_PATH 12534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12535 case $host_os in 12536 openbsd2.[89] | openbsd2.[89].*) 12537 shlibpath_overrides_runpath=no 12538 ;; 12539 *) 12540 shlibpath_overrides_runpath=yes 12541 ;; 12542 esac 12543 else 12544 shlibpath_overrides_runpath=yes 12545 fi 12546 ;; 12547 12548os2*) 12549 libname_spec='$name' 12550 shrext_cmds=".dll" 12551 need_lib_prefix=no 12552 library_names_spec='$libname${shared_ext} $libname.a' 12553 dynamic_linker='OS/2 ld.exe' 12554 shlibpath_var=LIBPATH 12555 ;; 12556 12557osf3* | osf4* | osf5*) 12558 version_type=osf 12559 need_lib_prefix=no 12560 need_version=no 12561 soname_spec='${libname}${release}${shared_ext}$major' 12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12563 shlibpath_var=LD_LIBRARY_PATH 12564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12566 ;; 12567 12568solaris*) 12569 version_type=linux 12570 need_lib_prefix=no 12571 need_version=no 12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12573 soname_spec='${libname}${release}${shared_ext}$major' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 shlibpath_overrides_runpath=yes 12576 hardcode_into_libs=yes 12577 # ldd complains unless libraries are executable 12578 postinstall_cmds='chmod +x $lib' 12579 ;; 12580 12581sunos4*) 12582 version_type=sunos 12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12585 shlibpath_var=LD_LIBRARY_PATH 12586 shlibpath_overrides_runpath=yes 12587 if test "$with_gnu_ld" = yes; then 12588 need_lib_prefix=no 12589 fi 12590 need_version=yes 12591 ;; 12592 12593sysv4 | sysv4.3*) 12594 version_type=linux 12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12596 soname_spec='${libname}${release}${shared_ext}$major' 12597 shlibpath_var=LD_LIBRARY_PATH 12598 case $host_vendor in 12599 sni) 12600 shlibpath_overrides_runpath=no 12601 need_lib_prefix=no 12602 export_dynamic_flag_spec='${wl}-Blargedynsym' 12603 runpath_var=LD_RUN_PATH 12604 ;; 12605 siemens) 12606 need_lib_prefix=no 12607 ;; 12608 motorola) 12609 need_lib_prefix=no 12610 need_version=no 12611 shlibpath_overrides_runpath=no 12612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12613 ;; 12614 esac 12615 ;; 12616 12617sysv4*MP*) 12618 if test -d /usr/nec ;then 12619 version_type=linux 12620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12621 soname_spec='$libname${shared_ext}.$major' 12622 shlibpath_var=LD_LIBRARY_PATH 12623 fi 12624 ;; 12625 12626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12627 version_type=freebsd-elf 12628 need_lib_prefix=no 12629 need_version=no 12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12631 soname_spec='${libname}${release}${shared_ext}$major' 12632 shlibpath_var=LD_LIBRARY_PATH 12633 hardcode_into_libs=yes 12634 if test "$with_gnu_ld" = yes; then 12635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12636 shlibpath_overrides_runpath=no 12637 else 12638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12639 shlibpath_overrides_runpath=yes 12640 case $host_os in 12641 sco3.2v5*) 12642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12643 ;; 12644 esac 12645 fi 12646 sys_lib_dlsearch_path_spec='/usr/lib' 12647 ;; 12648 12649uts4*) 12650 version_type=linux 12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12652 soname_spec='${libname}${release}${shared_ext}$major' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 ;; 12655 12656*) 12657 dynamic_linker=no 12658 ;; 12659esac 12660{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12661echo "${ECHO_T}$dynamic_linker" >&6; } 12662test "$dynamic_linker" = no && can_build_shared=no 12663 12664variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12665if test "$GCC" = yes; then 12666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12667fi 12668 12669{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12670echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12671hardcode_action_CXX= 12672if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12673 test -n "$runpath_var_CXX" || \ 12674 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12675 12676 # We can hardcode non-existant directories. 12677 if test "$hardcode_direct_CXX" != no && 12678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12679 # have to relink, otherwise we might link with an installed library 12680 # when we should be linking with a yet-to-be-installed one 12681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12682 test "$hardcode_minus_L_CXX" != no; then 12683 # Linking always hardcodes the temporary library directory. 12684 hardcode_action_CXX=relink 12685 else 12686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12687 hardcode_action_CXX=immediate 12688 fi 12689else 12690 # We cannot hardcode anything, or else we can only hardcode existing 12691 # directories. 12692 hardcode_action_CXX=unsupported 12693fi 12694{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12695echo "${ECHO_T}$hardcode_action_CXX" >&6; } 12696 12697if test "$hardcode_action_CXX" = relink; then 12698 # Fast installation is not supported 12699 enable_fast_install=no 12700elif test "$shlibpath_overrides_runpath" = yes || 12701 test "$enable_shared" = no; then 12702 # Fast installation is not necessary 12703 enable_fast_install=needless 12704fi 12705 12706 12707# The else clause should only fire when bootstrapping the 12708# libtool distribution, otherwise you forgot to ship ltmain.sh 12709# with your package, and you will get complaints that there are 12710# no rules to generate ltmain.sh. 12711if test -f "$ltmain"; then 12712 # See if we are running on zsh, and set the options which allow our commands through 12713 # without removal of \ escapes. 12714 if test -n "${ZSH_VERSION+set}" ; then 12715 setopt NO_GLOB_SUBST 12716 fi 12717 # Now quote all the things that may contain metacharacters while being 12718 # careful not to overquote the AC_SUBSTed values. We take copies of the 12719 # variables and quote the copies for generation of the libtool script. 12720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12721 SED SHELL STRIP \ 12722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12724 deplibs_check_method reload_flag reload_cmds need_locks \ 12725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12726 lt_cv_sys_global_symbol_to_c_name_address \ 12727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12728 old_postinstall_cmds old_postuninstall_cmds \ 12729 compiler_CXX \ 12730 CC_CXX \ 12731 LD_CXX \ 12732 lt_prog_compiler_wl_CXX \ 12733 lt_prog_compiler_pic_CXX \ 12734 lt_prog_compiler_static_CXX \ 12735 lt_prog_compiler_no_builtin_flag_CXX \ 12736 export_dynamic_flag_spec_CXX \ 12737 thread_safe_flag_spec_CXX \ 12738 whole_archive_flag_spec_CXX \ 12739 enable_shared_with_static_runtimes_CXX \ 12740 old_archive_cmds_CXX \ 12741 old_archive_from_new_cmds_CXX \ 12742 predep_objects_CXX \ 12743 postdep_objects_CXX \ 12744 predeps_CXX \ 12745 postdeps_CXX \ 12746 compiler_lib_search_path_CXX \ 12747 archive_cmds_CXX \ 12748 archive_expsym_cmds_CXX \ 12749 postinstall_cmds_CXX \ 12750 postuninstall_cmds_CXX \ 12751 old_archive_from_expsyms_cmds_CXX \ 12752 allow_undefined_flag_CXX \ 12753 no_undefined_flag_CXX \ 12754 export_symbols_cmds_CXX \ 12755 hardcode_libdir_flag_spec_CXX \ 12756 hardcode_libdir_flag_spec_ld_CXX \ 12757 hardcode_libdir_separator_CXX \ 12758 hardcode_automatic_CXX \ 12759 module_cmds_CXX \ 12760 module_expsym_cmds_CXX \ 12761 lt_cv_prog_compiler_c_o_CXX \ 12762 exclude_expsyms_CXX \ 12763 include_expsyms_CXX; do 12764 12765 case $var in 12766 old_archive_cmds_CXX | \ 12767 old_archive_from_new_cmds_CXX | \ 12768 archive_cmds_CXX | \ 12769 archive_expsym_cmds_CXX | \ 12770 module_cmds_CXX | \ 12771 module_expsym_cmds_CXX | \ 12772 old_archive_from_expsyms_cmds_CXX | \ 12773 export_symbols_cmds_CXX | \ 12774 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12775 postinstall_cmds | postuninstall_cmds | \ 12776 old_postinstall_cmds | old_postuninstall_cmds | \ 12777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12778 # Double-quote double-evaled strings. 12779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12780 ;; 12781 *) 12782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12783 ;; 12784 esac 12785 done 12786 12787 case $lt_echo in 12788 *'\$0 --fallback-echo"') 12789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12790 ;; 12791 esac 12792 12793cfgfile="$ofile" 12794 12795 cat <<__EOF__ >> "$cfgfile" 12796# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12797 12798# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12799 12800# Shell to use when invoking shell scripts. 12801SHELL=$lt_SHELL 12802 12803# Whether or not to build shared libraries. 12804build_libtool_libs=$enable_shared 12805 12806# Whether or not to build static libraries. 12807build_old_libs=$enable_static 12808 12809# Whether or not to add -lc for building shared libraries. 12810build_libtool_need_lc=$archive_cmds_need_lc_CXX 12811 12812# Whether or not to disallow shared libs when runtime libs are static 12813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12814 12815# Whether or not to optimize for fast installation. 12816fast_install=$enable_fast_install 12817 12818# The host system. 12819host_alias=$host_alias 12820host=$host 12821host_os=$host_os 12822 12823# The build system. 12824build_alias=$build_alias 12825build=$build 12826build_os=$build_os 12827 12828# An echo program that does not interpret backslashes. 12829echo=$lt_echo 12830 12831# The archiver. 12832AR=$lt_AR 12833AR_FLAGS=$lt_AR_FLAGS 12834 12835# A C compiler. 12836LTCC=$lt_LTCC 12837 12838# LTCC compiler flags. 12839LTCFLAGS=$lt_LTCFLAGS 12840 12841# A language-specific compiler. 12842CC=$lt_compiler_CXX 12843 12844# Is the compiler the GNU C compiler? 12845with_gcc=$GCC_CXX 12846 12847# An ERE matcher. 12848EGREP=$lt_EGREP 12849 12850# The linker used to build libraries. 12851LD=$lt_LD_CXX 12852 12853# Whether we need hard or soft links. 12854LN_S=$lt_LN_S 12855 12856# A BSD-compatible nm program. 12857NM=$lt_NM 12858 12859# A symbol stripping program 12860STRIP=$lt_STRIP 12861 12862# Used to examine libraries when file_magic_cmd begins "file" 12863MAGIC_CMD=$MAGIC_CMD 12864 12865# Used on cygwin: DLL creation program. 12866DLLTOOL="$DLLTOOL" 12867 12868# Used on cygwin: object dumper. 12869OBJDUMP="$OBJDUMP" 12870 12871# Used on cygwin: assembler. 12872AS="$AS" 12873 12874# The name of the directory that contains temporary libtool files. 12875objdir=$objdir 12876 12877# How to create reloadable object files. 12878reload_flag=$lt_reload_flag 12879reload_cmds=$lt_reload_cmds 12880 12881# How to pass a linker flag through the compiler. 12882wl=$lt_lt_prog_compiler_wl_CXX 12883 12884# Object file suffix (normally "o"). 12885objext="$ac_objext" 12886 12887# Old archive suffix (normally "a"). 12888libext="$libext" 12889 12890# Shared library suffix (normally ".so"). 12891shrext_cmds='$shrext_cmds' 12892 12893# Executable file suffix (normally ""). 12894exeext="$exeext" 12895 12896# Additional compiler flags for building library objects. 12897pic_flag=$lt_lt_prog_compiler_pic_CXX 12898pic_mode=$pic_mode 12899 12900# What is the maximum length of a command? 12901max_cmd_len=$lt_cv_sys_max_cmd_len 12902 12903# Does compiler simultaneously support -c and -o options? 12904compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12905 12906# Must we lock files when doing compilation? 12907need_locks=$lt_need_locks 12908 12909# Do we need the lib prefix for modules? 12910need_lib_prefix=$need_lib_prefix 12911 12912# Do we need a version for libraries? 12913need_version=$need_version 12914 12915# Whether dlopen is supported. 12916dlopen_support=$enable_dlopen 12917 12918# Whether dlopen of programs is supported. 12919dlopen_self=$enable_dlopen_self 12920 12921# Whether dlopen of statically linked programs is supported. 12922dlopen_self_static=$enable_dlopen_self_static 12923 12924# Compiler flag to prevent dynamic linking. 12925link_static_flag=$lt_lt_prog_compiler_static_CXX 12926 12927# Compiler flag to turn off builtin functions. 12928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12929 12930# Compiler flag to allow reflexive dlopens. 12931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12932 12933# Compiler flag to generate shared objects directly from archives. 12934whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12935 12936# Compiler flag to generate thread-safe objects. 12937thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12938 12939# Library versioning type. 12940version_type=$version_type 12941 12942# Format of library name prefix. 12943libname_spec=$lt_libname_spec 12944 12945# List of archive names. First name is the real one, the rest are links. 12946# The last name is the one that the linker finds with -lNAME. 12947library_names_spec=$lt_library_names_spec 12948 12949# The coded name of the library, if different from the real name. 12950soname_spec=$lt_soname_spec 12951 12952# Commands used to build and install an old-style archive. 12953RANLIB=$lt_RANLIB 12954old_archive_cmds=$lt_old_archive_cmds_CXX 12955old_postinstall_cmds=$lt_old_postinstall_cmds 12956old_postuninstall_cmds=$lt_old_postuninstall_cmds 12957 12958# Create an old-style archive from a shared archive. 12959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12960 12961# Create a temporary old-style archive to link instead of a shared archive. 12962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12963 12964# Commands used to build and install a shared archive. 12965archive_cmds=$lt_archive_cmds_CXX 12966archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12967postinstall_cmds=$lt_postinstall_cmds 12968postuninstall_cmds=$lt_postuninstall_cmds 12969 12970# Commands used to build a loadable module (assumed same as above if empty) 12971module_cmds=$lt_module_cmds_CXX 12972module_expsym_cmds=$lt_module_expsym_cmds_CXX 12973 12974# Commands to strip libraries. 12975old_striplib=$lt_old_striplib 12976striplib=$lt_striplib 12977 12978# Dependencies to place before the objects being linked to create a 12979# shared library. 12980predep_objects=$lt_predep_objects_CXX 12981 12982# Dependencies to place after the objects being linked to create a 12983# shared library. 12984postdep_objects=$lt_postdep_objects_CXX 12985 12986# Dependencies to place before the objects being linked to create a 12987# shared library. 12988predeps=$lt_predeps_CXX 12989 12990# Dependencies to place after the objects being linked to create a 12991# shared library. 12992postdeps=$lt_postdeps_CXX 12993 12994# The library search path used internally by the compiler when linking 12995# a shared library. 12996compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12997 12998# Method to check whether dependent libraries are shared objects. 12999deplibs_check_method=$lt_deplibs_check_method 13000 13001# Command to use when deplibs_check_method == file_magic. 13002file_magic_cmd=$lt_file_magic_cmd 13003 13004# Flag that allows shared libraries with undefined symbols to be built. 13005allow_undefined_flag=$lt_allow_undefined_flag_CXX 13006 13007# Flag that forces no undefined symbols. 13008no_undefined_flag=$lt_no_undefined_flag_CXX 13009 13010# Commands used to finish a libtool library installation in a directory. 13011finish_cmds=$lt_finish_cmds 13012 13013# Same as above, but a single script fragment to be evaled but not shown. 13014finish_eval=$lt_finish_eval 13015 13016# Take the output of nm and produce a listing of raw symbols and C names. 13017global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13018 13019# Transform the output of nm in a proper C declaration 13020global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13021 13022# Transform the output of nm in a C name address pair 13023global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13024 13025# This is the shared library runtime path variable. 13026runpath_var=$runpath_var 13027 13028# This is the shared library path variable. 13029shlibpath_var=$shlibpath_var 13030 13031# Is shlibpath searched before the hard-coded library search path? 13032shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13033 13034# How to hardcode a shared library path into an executable. 13035hardcode_action=$hardcode_action_CXX 13036 13037# Whether we should hardcode library paths into libraries. 13038hardcode_into_libs=$hardcode_into_libs 13039 13040# Flag to hardcode \$libdir into a binary during linking. 13041# This must work even if \$libdir does not exist. 13042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13043 13044# If ld is used when linking, flag to hardcode \$libdir into 13045# a binary during linking. This must work even if \$libdir does 13046# not exist. 13047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13048 13049# Whether we need a single -rpath flag with a separated argument. 13050hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13051 13052# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13053# resulting binary. 13054hardcode_direct=$hardcode_direct_CXX 13055 13056# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13057# resulting binary. 13058hardcode_minus_L=$hardcode_minus_L_CXX 13059 13060# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13061# the resulting binary. 13062hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13063 13064# Set to yes if building a shared library automatically hardcodes DIR into the library 13065# and all subsequent libraries and executables linked against it. 13066hardcode_automatic=$hardcode_automatic_CXX 13067 13068# Variables whose values should be saved in libtool wrapper scripts and 13069# restored at relink time. 13070variables_saved_for_relink="$variables_saved_for_relink" 13071 13072# Whether libtool must link a program against all its dependency libraries. 13073link_all_deplibs=$link_all_deplibs_CXX 13074 13075# Compile-time system search path for libraries 13076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13077 13078# Run-time system search path for libraries 13079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13080 13081# Fix the shell variable \$srcfile for the compiler. 13082fix_srcfile_path="$fix_srcfile_path_CXX" 13083 13084# Set to yes if exported symbols are required. 13085always_export_symbols=$always_export_symbols_CXX 13086 13087# The commands to list exported symbols. 13088export_symbols_cmds=$lt_export_symbols_cmds_CXX 13089 13090# The commands to extract the exported symbol list from a shared archive. 13091extract_expsyms_cmds=$lt_extract_expsyms_cmds 13092 13093# Symbols that should not be listed in the preloaded symbols. 13094exclude_expsyms=$lt_exclude_expsyms_CXX 13095 13096# Symbols that must always be exported. 13097include_expsyms=$lt_include_expsyms_CXX 13098 13099# ### END LIBTOOL TAG CONFIG: $tagname 13100 13101__EOF__ 13102 13103 13104else 13105 # If there is no Makefile yet, we rely on a make rule to execute 13106 # `config.status --recheck' to rerun these tests and create the 13107 # libtool script then. 13108 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13109 if test -f "$ltmain_in"; then 13110 test -f Makefile && make "$ltmain" 13111 fi 13112fi 13113 13114 13115ac_ext=c 13116ac_cpp='$CPP $CPPFLAGS' 13117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13119ac_compiler_gnu=$ac_cv_c_compiler_gnu 13120 13121CC=$lt_save_CC 13122LDCXX=$LD 13123LD=$lt_save_LD 13124GCC=$lt_save_GCC 13125with_gnu_ldcxx=$with_gnu_ld 13126with_gnu_ld=$lt_save_with_gnu_ld 13127lt_cv_path_LDCXX=$lt_cv_path_LD 13128lt_cv_path_LD=$lt_save_path_LD 13129lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13130lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13131 13132 else 13133 tagname="" 13134 fi 13135 ;; 13136 13137 F77) 13138 if test -n "$F77" && test "X$F77" != "Xno"; then 13139 13140ac_ext=f 13141ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13142ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13143ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13144 13145 13146archive_cmds_need_lc_F77=no 13147allow_undefined_flag_F77= 13148always_export_symbols_F77=no 13149archive_expsym_cmds_F77= 13150export_dynamic_flag_spec_F77= 13151hardcode_direct_F77=no 13152hardcode_libdir_flag_spec_F77= 13153hardcode_libdir_flag_spec_ld_F77= 13154hardcode_libdir_separator_F77= 13155hardcode_minus_L_F77=no 13156hardcode_automatic_F77=no 13157module_cmds_F77= 13158module_expsym_cmds_F77= 13159link_all_deplibs_F77=unknown 13160old_archive_cmds_F77=$old_archive_cmds 13161no_undefined_flag_F77= 13162whole_archive_flag_spec_F77= 13163enable_shared_with_static_runtimes_F77=no 13164 13165# Source file extension for f77 test sources. 13166ac_ext=f 13167 13168# Object file extension for compiled f77 test sources. 13169objext=o 13170objext_F77=$objext 13171 13172# Code to be used in simple compile tests 13173lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13174 13175# Code to be used in simple link tests 13176lt_simple_link_test_code=" program t\n end\n" 13177 13178# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13179 13180# If no C compiler was specified, use CC. 13181LTCC=${LTCC-"$CC"} 13182 13183# If no C compiler flags were specified, use CFLAGS. 13184LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13185 13186# Allow CC to be a program name with arguments. 13187compiler=$CC 13188 13189 13190# save warnings/boilerplate of simple test code 13191ac_outfile=conftest.$ac_objext 13192printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13193eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13194_lt_compiler_boilerplate=`cat conftest.err` 13195$rm conftest* 13196 13197ac_outfile=conftest.$ac_objext 13198printf "$lt_simple_link_test_code" >conftest.$ac_ext 13199eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13200_lt_linker_boilerplate=`cat conftest.err` 13201$rm conftest* 13202 13203 13204# Allow CC to be a program name with arguments. 13205lt_save_CC="$CC" 13206CC=${F77-"f77"} 13207compiler=$CC 13208compiler_F77=$CC 13209for cc_temp in $compiler""; do 13210 case $cc_temp in 13211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13213 \-*) ;; 13214 *) break;; 13215 esac 13216done 13217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13218 13219 13220{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13221echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13222{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13223echo "${ECHO_T}$can_build_shared" >&6; } 13224 13225{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13226echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13227test "$can_build_shared" = "no" && enable_shared=no 13228 13229# On AIX, shared libraries and static libraries use the same namespace, and 13230# are all built from PIC. 13231case $host_os in 13232aix3*) 13233 test "$enable_shared" = yes && enable_static=no 13234 if test -n "$RANLIB"; then 13235 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13236 postinstall_cmds='$RANLIB $lib' 13237 fi 13238 ;; 13239aix4* | aix5*) 13240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13241 test "$enable_shared" = yes && enable_static=no 13242 fi 13243 ;; 13244esac 13245{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13246echo "${ECHO_T}$enable_shared" >&6; } 13247 13248{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13249echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13250# Make sure either enable_shared or enable_static is yes. 13251test "$enable_shared" = yes || enable_static=yes 13252{ echo "$as_me:$LINENO: result: $enable_static" >&5 13253echo "${ECHO_T}$enable_static" >&6; } 13254 13255GCC_F77="$G77" 13256LD_F77="$LD" 13257 13258lt_prog_compiler_wl_F77= 13259lt_prog_compiler_pic_F77= 13260lt_prog_compiler_static_F77= 13261 13262{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13263echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13264 13265 if test "$GCC" = yes; then 13266 lt_prog_compiler_wl_F77='-Wl,' 13267 lt_prog_compiler_static_F77='-static' 13268 13269 case $host_os in 13270 aix*) 13271 # All AIX code is PIC. 13272 if test "$host_cpu" = ia64; then 13273 # AIX 5 now supports IA64 processor 13274 lt_prog_compiler_static_F77='-Bstatic' 13275 fi 13276 ;; 13277 13278 amigaos*) 13279 # FIXME: we need at least 68020 code to build shared libraries, but 13280 # adding the `-m68020' flag to GCC prevents building anything better, 13281 # like `-m68040'. 13282 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13283 ;; 13284 13285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13286 # PIC is the default for these OSes. 13287 ;; 13288 13289 mingw* | pw32* | os2*) 13290 # This hack is so that the source file can tell whether it is being 13291 # built for inclusion in a dll (and should export symbols for example). 13292 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13293 ;; 13294 13295 darwin* | rhapsody*) 13296 # PIC is the default on this platform 13297 # Common symbols not allowed in MH_DYLIB files 13298 lt_prog_compiler_pic_F77='-fno-common' 13299 ;; 13300 13301 interix3*) 13302 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13303 # Instead, we relocate shared libraries at runtime. 13304 ;; 13305 13306 msdosdjgpp*) 13307 # Just because we use GCC doesn't mean we suddenly get shared libraries 13308 # on systems that don't support them. 13309 lt_prog_compiler_can_build_shared_F77=no 13310 enable_shared=no 13311 ;; 13312 13313 sysv4*MP*) 13314 if test -d /usr/nec; then 13315 lt_prog_compiler_pic_F77=-Kconform_pic 13316 fi 13317 ;; 13318 13319 hpux*) 13320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13321 # not for PA HP-UX. 13322 case $host_cpu in 13323 hppa*64*|ia64*) 13324 # +Z the default 13325 ;; 13326 *) 13327 lt_prog_compiler_pic_F77='-fPIC' 13328 ;; 13329 esac 13330 ;; 13331 13332 *) 13333 lt_prog_compiler_pic_F77='-fPIC' 13334 ;; 13335 esac 13336 else 13337 # PORTME Check for flag to pass linker flags through the system compiler. 13338 case $host_os in 13339 aix*) 13340 lt_prog_compiler_wl_F77='-Wl,' 13341 if test "$host_cpu" = ia64; then 13342 # AIX 5 now supports IA64 processor 13343 lt_prog_compiler_static_F77='-Bstatic' 13344 else 13345 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13346 fi 13347 ;; 13348 darwin*) 13349 # PIC is the default on this platform 13350 # Common symbols not allowed in MH_DYLIB files 13351 case $cc_basename in 13352 xlc*) 13353 lt_prog_compiler_pic_F77='-qnocommon' 13354 lt_prog_compiler_wl_F77='-Wl,' 13355 ;; 13356 esac 13357 ;; 13358 13359 mingw* | pw32* | os2*) 13360 # This hack is so that the source file can tell whether it is being 13361 # built for inclusion in a dll (and should export symbols for example). 13362 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13363 ;; 13364 13365 hpux9* | hpux10* | hpux11*) 13366 lt_prog_compiler_wl_F77='-Wl,' 13367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13368 # not for PA HP-UX. 13369 case $host_cpu in 13370 hppa*64*|ia64*) 13371 # +Z the default 13372 ;; 13373 *) 13374 lt_prog_compiler_pic_F77='+Z' 13375 ;; 13376 esac 13377 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13378 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13379 ;; 13380 13381 irix5* | irix6* | nonstopux*) 13382 lt_prog_compiler_wl_F77='-Wl,' 13383 # PIC (with -KPIC) is the default. 13384 lt_prog_compiler_static_F77='-non_shared' 13385 ;; 13386 13387 newsos6) 13388 lt_prog_compiler_pic_F77='-KPIC' 13389 lt_prog_compiler_static_F77='-Bstatic' 13390 ;; 13391 13392 linux*) 13393 case $cc_basename in 13394 icc* | ecc*) 13395 lt_prog_compiler_wl_F77='-Wl,' 13396 lt_prog_compiler_pic_F77='-KPIC' 13397 lt_prog_compiler_static_F77='-static' 13398 ;; 13399 pgcc* | pgf77* | pgf90* | pgf95*) 13400 # Portland Group compilers (*not* the Pentium gcc compiler, 13401 # which looks to be a dead project) 13402 lt_prog_compiler_wl_F77='-Wl,' 13403 lt_prog_compiler_pic_F77='-fpic' 13404 lt_prog_compiler_static_F77='-Bstatic' 13405 ;; 13406 ccc*) 13407 lt_prog_compiler_wl_F77='-Wl,' 13408 # All Alpha code is PIC. 13409 lt_prog_compiler_static_F77='-non_shared' 13410 ;; 13411 esac 13412 ;; 13413 13414 osf3* | osf4* | osf5*) 13415 lt_prog_compiler_wl_F77='-Wl,' 13416 # All OSF/1 code is PIC. 13417 lt_prog_compiler_static_F77='-non_shared' 13418 ;; 13419 13420 solaris*) 13421 lt_prog_compiler_pic_F77='-KPIC' 13422 lt_prog_compiler_static_F77='-Bstatic' 13423 case $cc_basename in 13424 f77* | f90* | f95*) 13425 lt_prog_compiler_wl_F77='-Qoption ld ';; 13426 *) 13427 lt_prog_compiler_wl_F77='-Wl,';; 13428 esac 13429 ;; 13430 13431 sunos4*) 13432 lt_prog_compiler_wl_F77='-Qoption ld ' 13433 lt_prog_compiler_pic_F77='-PIC' 13434 lt_prog_compiler_static_F77='-Bstatic' 13435 ;; 13436 13437 sysv4 | sysv4.2uw2* | sysv4.3*) 13438 lt_prog_compiler_wl_F77='-Wl,' 13439 lt_prog_compiler_pic_F77='-KPIC' 13440 lt_prog_compiler_static_F77='-Bstatic' 13441 ;; 13442 13443 sysv4*MP*) 13444 if test -d /usr/nec ;then 13445 lt_prog_compiler_pic_F77='-Kconform_pic' 13446 lt_prog_compiler_static_F77='-Bstatic' 13447 fi 13448 ;; 13449 13450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13451 lt_prog_compiler_wl_F77='-Wl,' 13452 lt_prog_compiler_pic_F77='-KPIC' 13453 lt_prog_compiler_static_F77='-Bstatic' 13454 ;; 13455 13456 unicos*) 13457 lt_prog_compiler_wl_F77='-Wl,' 13458 lt_prog_compiler_can_build_shared_F77=no 13459 ;; 13460 13461 uts4*) 13462 lt_prog_compiler_pic_F77='-pic' 13463 lt_prog_compiler_static_F77='-Bstatic' 13464 ;; 13465 13466 *) 13467 lt_prog_compiler_can_build_shared_F77=no 13468 ;; 13469 esac 13470 fi 13471 13472{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13473echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13474 13475# 13476# Check to make sure the PIC flag actually works. 13477# 13478if test -n "$lt_prog_compiler_pic_F77"; then 13479 13480{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13481echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13482if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13483 echo $ECHO_N "(cached) $ECHO_C" >&6 13484else 13485 lt_prog_compiler_pic_works_F77=no 13486 ac_outfile=conftest.$ac_objext 13487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13488 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13489 # Insert the option either (1) after the last *FLAGS variable, or 13490 # (2) before a word containing "conftest.", or (3) at the end. 13491 # Note that $ac_compile itself does not contain backslashes and begins 13492 # with a dollar sign (not a hyphen), so the echo should work correctly. 13493 # The option is referenced via a variable to avoid confusing sed. 13494 lt_compile=`echo "$ac_compile" | $SED \ 13495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13497 -e 's:$: $lt_compiler_flag:'` 13498 (eval echo "\"\$as_me:13498: $lt_compile\"" >&5) 13499 (eval "$lt_compile" 2>conftest.err) 13500 ac_status=$? 13501 cat conftest.err >&5 13502 echo "$as_me:13502: \$? = $ac_status" >&5 13503 if (exit $ac_status) && test -s "$ac_outfile"; then 13504 # The compiler can only warn and ignore the option if not recognized 13505 # So say no if there are warnings other than the usual output. 13506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13509 lt_prog_compiler_pic_works_F77=yes 13510 fi 13511 fi 13512 $rm conftest* 13513 13514fi 13515{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13516echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13517 13518if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13519 case $lt_prog_compiler_pic_F77 in 13520 "" | " "*) ;; 13521 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13522 esac 13523else 13524 lt_prog_compiler_pic_F77= 13525 lt_prog_compiler_can_build_shared_F77=no 13526fi 13527 13528fi 13529case $host_os in 13530 # For platforms which do not support PIC, -DPIC is meaningless: 13531 *djgpp*) 13532 lt_prog_compiler_pic_F77= 13533 ;; 13534 *) 13535 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13536 ;; 13537esac 13538 13539# 13540# Check to make sure the static flag actually works. 13541# 13542wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13543{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13544echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13545if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13546 echo $ECHO_N "(cached) $ECHO_C" >&6 13547else 13548 lt_prog_compiler_static_works_F77=no 13549 save_LDFLAGS="$LDFLAGS" 13550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13551 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13553 # The linker can only warn and ignore the option if not recognized 13554 # So say no if there are warnings 13555 if test -s conftest.err; then 13556 # Append any errors to the config.log. 13557 cat conftest.err 1>&5 13558 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13560 if diff conftest.exp conftest.er2 >/dev/null; then 13561 lt_prog_compiler_static_works_F77=yes 13562 fi 13563 else 13564 lt_prog_compiler_static_works_F77=yes 13565 fi 13566 fi 13567 $rm conftest* 13568 LDFLAGS="$save_LDFLAGS" 13569 13570fi 13571{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13572echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13573 13574if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13575 : 13576else 13577 lt_prog_compiler_static_F77= 13578fi 13579 13580 13581{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13582echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13583if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13584 echo $ECHO_N "(cached) $ECHO_C" >&6 13585else 13586 lt_cv_prog_compiler_c_o_F77=no 13587 $rm -r conftest 2>/dev/null 13588 mkdir conftest 13589 cd conftest 13590 mkdir out 13591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13592 13593 lt_compiler_flag="-o out/conftest2.$ac_objext" 13594 # Insert the option either (1) after the last *FLAGS variable, or 13595 # (2) before a word containing "conftest.", or (3) at the end. 13596 # Note that $ac_compile itself does not contain backslashes and begins 13597 # with a dollar sign (not a hyphen), so the echo should work correctly. 13598 lt_compile=`echo "$ac_compile" | $SED \ 13599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13601 -e 's:$: $lt_compiler_flag:'` 13602 (eval echo "\"\$as_me:13602: $lt_compile\"" >&5) 13603 (eval "$lt_compile" 2>out/conftest.err) 13604 ac_status=$? 13605 cat out/conftest.err >&5 13606 echo "$as_me:13606: \$? = $ac_status" >&5 13607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13608 then 13609 # The compiler can only warn and ignore the option if not recognized 13610 # So say no if there are warnings 13611 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13614 lt_cv_prog_compiler_c_o_F77=yes 13615 fi 13616 fi 13617 chmod u+w . 2>&5 13618 $rm conftest* 13619 # SGI C++ compiler will create directory out/ii_files/ for 13620 # template instantiation 13621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13622 $rm out/* && rmdir out 13623 cd .. 13624 rmdir conftest 13625 $rm conftest* 13626 13627fi 13628{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13629echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13630 13631 13632hard_links="nottested" 13633if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13634 # do not overwrite the value of need_locks provided by the user 13635 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13636echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13637 hard_links=yes 13638 $rm conftest* 13639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13640 touch conftest.a 13641 ln conftest.a conftest.b 2>&5 || hard_links=no 13642 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13643 { echo "$as_me:$LINENO: result: $hard_links" >&5 13644echo "${ECHO_T}$hard_links" >&6; } 13645 if test "$hard_links" = no; then 13646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13647echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13648 need_locks=warn 13649 fi 13650else 13651 need_locks=no 13652fi 13653 13654{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13655echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13656 13657 runpath_var= 13658 allow_undefined_flag_F77= 13659 enable_shared_with_static_runtimes_F77=no 13660 archive_cmds_F77= 13661 archive_expsym_cmds_F77= 13662 old_archive_From_new_cmds_F77= 13663 old_archive_from_expsyms_cmds_F77= 13664 export_dynamic_flag_spec_F77= 13665 whole_archive_flag_spec_F77= 13666 thread_safe_flag_spec_F77= 13667 hardcode_libdir_flag_spec_F77= 13668 hardcode_libdir_flag_spec_ld_F77= 13669 hardcode_libdir_separator_F77= 13670 hardcode_direct_F77=no 13671 hardcode_minus_L_F77=no 13672 hardcode_shlibpath_var_F77=unsupported 13673 link_all_deplibs_F77=unknown 13674 hardcode_automatic_F77=no 13675 module_cmds_F77= 13676 module_expsym_cmds_F77= 13677 always_export_symbols_F77=no 13678 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13679 # include_expsyms should be a list of space-separated symbols to be *always* 13680 # included in the symbol list 13681 include_expsyms_F77= 13682 # exclude_expsyms can be an extended regexp of symbols to exclude 13683 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13685 # as well as any symbol that contains `d'. 13686 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13688 # platforms (ab)use it in PIC code, but their linkers get confused if 13689 # the symbol is explicitly referenced. Since portable code cannot 13690 # rely on this symbol name, it's probably fine to never include it in 13691 # preloaded symbol tables. 13692 extract_expsyms_cmds= 13693 # Just being paranoid about ensuring that cc_basename is set. 13694 for cc_temp in $compiler""; do 13695 case $cc_temp in 13696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13698 \-*) ;; 13699 *) break;; 13700 esac 13701done 13702cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13703 13704 case $host_os in 13705 cygwin* | mingw* | pw32*) 13706 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13707 # When not using gcc, we currently assume that we are using 13708 # Microsoft Visual C++. 13709 if test "$GCC" != yes; then 13710 with_gnu_ld=no 13711 fi 13712 ;; 13713 interix*) 13714 # we just hope/assume this is gcc and not c89 (= MSVC++) 13715 with_gnu_ld=yes 13716 ;; 13717 openbsd*) 13718 with_gnu_ld=no 13719 ;; 13720 esac 13721 13722 ld_shlibs_F77=yes 13723 if test "$with_gnu_ld" = yes; then 13724 # If archive_cmds runs LD, not CC, wlarc should be empty 13725 wlarc='${wl}' 13726 13727 # Set some defaults for GNU ld with shared library support. These 13728 # are reset later if shared libraries are not supported. Putting them 13729 # here allows them to be overridden if necessary. 13730 runpath_var=LD_RUN_PATH 13731 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13732 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13733 # ancient GNU ld didn't support --whole-archive et. al. 13734 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13735 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13736 else 13737 whole_archive_flag_spec_F77= 13738 fi 13739 supports_anon_versioning=no 13740 case `$LD -v 2>/dev/null` in 13741 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13742 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13743 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13744 *\ 2.11.*) ;; # other 2.11 versions 13745 *) supports_anon_versioning=yes ;; 13746 esac 13747 13748 # See if GNU ld supports shared libraries. 13749 case $host_os in 13750 aix3* | aix4* | aix5*) 13751 # On AIX/PPC, the GNU linker is very broken 13752 if test "$host_cpu" != ia64; then 13753 ld_shlibs_F77=no 13754 cat <<EOF 1>&2 13755 13756*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13757*** to be unable to reliably create shared libraries on AIX. 13758*** Therefore, libtool is disabling shared libraries support. If you 13759*** really care for shared libraries, you may want to modify your PATH 13760*** so that a non-GNU linker is found, and then restart. 13761 13762EOF 13763 fi 13764 ;; 13765 13766 amigaos*) 13767 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)' 13768 hardcode_libdir_flag_spec_F77='-L$libdir' 13769 hardcode_minus_L_F77=yes 13770 13771 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13772 # that the semantics of dynamic libraries on AmigaOS, at least up 13773 # to version 4, is to share data among multiple programs linked 13774 # with the same dynamic library. Since this doesn't match the 13775 # behavior of shared libraries on other platforms, we can't use 13776 # them. 13777 ld_shlibs_F77=no 13778 ;; 13779 13780 beos*) 13781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13782 allow_undefined_flag_F77=unsupported 13783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13784 # support --undefined. This deserves some investigation. FIXME 13785 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13786 else 13787 ld_shlibs_F77=no 13788 fi 13789 ;; 13790 13791 cygwin* | mingw* | pw32*) 13792 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13793 # as there is no search path for DLLs. 13794 hardcode_libdir_flag_spec_F77='-L$libdir' 13795 allow_undefined_flag_F77=unsupported 13796 always_export_symbols_F77=no 13797 enable_shared_with_static_runtimes_F77=yes 13798 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13799 13800 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13801 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13802 # If the export-symbols file already is a .def file (1st line 13803 # is EXPORTS), use it as is; otherwise, prepend... 13804 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13805 cp $export_symbols $output_objdir/$soname.def; 13806 else 13807 echo EXPORTS > $output_objdir/$soname.def; 13808 cat $export_symbols >> $output_objdir/$soname.def; 13809 fi~ 13810 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13811 else 13812 ld_shlibs_F77=no 13813 fi 13814 ;; 13815 13816 interix3*) 13817 hardcode_direct_F77=no 13818 hardcode_shlibpath_var_F77=no 13819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13820 export_dynamic_flag_spec_F77='${wl}-E' 13821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13822 # Instead, shared libraries are loaded at an image base (0x10000000 by 13823 # default) and relocated if they conflict, which is a slow very memory 13824 # consuming and fragmenting process. To avoid this, we pick a random, 13825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13826 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13827 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' 13828 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' 13829 ;; 13830 13831 linux*) 13832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13833 tmp_addflag= 13834 case $cc_basename,$host_cpu in 13835 pgcc*) # Portland Group C compiler 13836 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' 13837 tmp_addflag=' $pic_flag' 13838 ;; 13839 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13840 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' 13841 tmp_addflag=' $pic_flag -Mnomain' ;; 13842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13843 tmp_addflag=' -i_dynamic' ;; 13844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13845 tmp_addflag=' -i_dynamic -nofor_main' ;; 13846 ifc* | ifort*) # Intel Fortran compiler 13847 tmp_addflag=' -nofor_main' ;; 13848 esac 13849 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13850 13851 if test $supports_anon_versioning = yes; then 13852 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13854 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13855 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13856 fi 13857 else 13858 ld_shlibs_F77=no 13859 fi 13860 ;; 13861 13862 netbsd*) 13863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13864 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13865 wlarc= 13866 else 13867 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13868 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13869 fi 13870 ;; 13871 13872 solaris*) 13873 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13874 ld_shlibs_F77=no 13875 cat <<EOF 1>&2 13876 13877*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13878*** create shared libraries on Solaris systems. Therefore, libtool 13879*** is disabling shared libraries support. We urge you to upgrade GNU 13880*** binutils to release 2.9.1 or newer. Another option is to modify 13881*** your PATH or compiler configuration so that the native linker is 13882*** used, and then restart. 13883 13884EOF 13885 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13886 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13887 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13888 else 13889 ld_shlibs_F77=no 13890 fi 13891 ;; 13892 13893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13894 case `$LD -v 2>&1` in 13895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13896 ld_shlibs_F77=no 13897 cat <<_LT_EOF 1>&2 13898 13899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13900*** reliably create shared libraries on SCO systems. Therefore, libtool 13901*** is disabling shared libraries support. We urge you to upgrade GNU 13902*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13903*** your PATH or compiler configuration so that the native linker is 13904*** used, and then restart. 13905 13906_LT_EOF 13907 ;; 13908 *) 13909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13910 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13911 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13912 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13913 else 13914 ld_shlibs_F77=no 13915 fi 13916 ;; 13917 esac 13918 ;; 13919 13920 sunos4*) 13921 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13922 wlarc= 13923 hardcode_direct_F77=yes 13924 hardcode_shlibpath_var_F77=no 13925 ;; 13926 13927 *) 13928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13931 else 13932 ld_shlibs_F77=no 13933 fi 13934 ;; 13935 esac 13936 13937 if test "$ld_shlibs_F77" = no; then 13938 runpath_var= 13939 hardcode_libdir_flag_spec_F77= 13940 export_dynamic_flag_spec_F77= 13941 whole_archive_flag_spec_F77= 13942 fi 13943 else 13944 # PORTME fill in a description of your system's linker (not GNU ld) 13945 case $host_os in 13946 aix3*) 13947 allow_undefined_flag_F77=unsupported 13948 always_export_symbols_F77=yes 13949 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' 13950 # Note: this linker hardcodes the directories in LIBPATH if there 13951 # are no directories specified by -L. 13952 hardcode_minus_L_F77=yes 13953 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13954 # Neither direct hardcoding nor static linking is supported with a 13955 # broken collect2. 13956 hardcode_direct_F77=unsupported 13957 fi 13958 ;; 13959 13960 aix4* | aix5*) 13961 if test "$host_cpu" = ia64; then 13962 # On IA64, the linker does run time linking by default, so we don't 13963 # have to do anything special. 13964 aix_use_runtimelinking=no 13965 exp_sym_flag='-Bexport' 13966 no_entry_flag="" 13967 else 13968 # If we're using GNU nm, then we don't want the "-C" option. 13969 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13971 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' 13972 else 13973 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' 13974 fi 13975 aix_use_runtimelinking=no 13976 13977 # Test if we are trying to use run time linking or normal 13978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13979 # need to do runtime linking. 13980 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13981 for ld_flag in $LDFLAGS; do 13982 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13983 aix_use_runtimelinking=yes 13984 break 13985 fi 13986 done 13987 ;; 13988 esac 13989 13990 exp_sym_flag='-bexport' 13991 no_entry_flag='-bnoentry' 13992 fi 13993 13994 # When large executables or shared objects are built, AIX ld can 13995 # have problems creating the table of contents. If linking a library 13996 # or program results in "error TOC overflow" add -mminimal-toc to 13997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13999 14000 archive_cmds_F77='' 14001 hardcode_direct_F77=yes 14002 hardcode_libdir_separator_F77=':' 14003 link_all_deplibs_F77=yes 14004 14005 if test "$GCC" = yes; then 14006 case $host_os in aix4.[012]|aix4.[012].*) 14007 # We only want to do this on AIX 4.2 and lower, the check 14008 # below for broken collect2 doesn't work under 4.3+ 14009 collect2name=`${CC} -print-prog-name=collect2` 14010 if test -f "$collect2name" && \ 14011 strings "$collect2name" | grep resolve_lib_name >/dev/null 14012 then 14013 # We have reworked collect2 14014 hardcode_direct_F77=yes 14015 else 14016 # We have old collect2 14017 hardcode_direct_F77=unsupported 14018 # It fails to find uninstalled libraries when the uninstalled 14019 # path is not listed in the libpath. Setting hardcode_minus_L 14020 # to unsupported forces relinking 14021 hardcode_minus_L_F77=yes 14022 hardcode_libdir_flag_spec_F77='-L$libdir' 14023 hardcode_libdir_separator_F77= 14024 fi 14025 ;; 14026 esac 14027 shared_flag='-shared' 14028 if test "$aix_use_runtimelinking" = yes; then 14029 shared_flag="$shared_flag "'${wl}-G' 14030 fi 14031 else 14032 # not using gcc 14033 if test "$host_cpu" = ia64; then 14034 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14035 # chokes on -Wl,-G. The following line is correct: 14036 shared_flag='-G' 14037 else 14038 if test "$aix_use_runtimelinking" = yes; then 14039 shared_flag='${wl}-G' 14040 else 14041 shared_flag='${wl}-bM:SRE' 14042 fi 14043 fi 14044 fi 14045 14046 # It seems that -bexpall does not export symbols beginning with 14047 # underscore (_), so it is better to generate a list of symbols to export. 14048 always_export_symbols_F77=yes 14049 if test "$aix_use_runtimelinking" = yes; then 14050 # Warning - without using the other runtime loading flags (-brtl), 14051 # -berok will link without error, but may produce a broken library. 14052 allow_undefined_flag_F77='-berok' 14053 # Determine the default libpath from the value encoded in an empty executable. 14054 cat >conftest.$ac_ext <<_ACEOF 14055 program main 14056 14057 end 14058_ACEOF 14059rm -f conftest.$ac_objext conftest$ac_exeext 14060if { (ac_try="$ac_link" 14061case "(($ac_try" in 14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14063 *) ac_try_echo=$ac_try;; 14064esac 14065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14066 (eval "$ac_link") 2>conftest.er1 14067 ac_status=$? 14068 grep -v '^ *+' conftest.er1 >conftest.err 14069 rm -f conftest.er1 14070 cat conftest.err >&5 14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14072 (exit $ac_status); } && { 14073 test -z "$ac_f77_werror_flag" || 14074 test ! -s conftest.err 14075 } && test -s conftest$ac_exeext && 14076 $as_test_x conftest$ac_exeext; then 14077 14078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14079}'` 14080# Check for a 64-bit object if we didn't find anything. 14081if 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; } 14082}'`; fi 14083else 14084 echo "$as_me: failed program was:" >&5 14085sed 's/^/| /' conftest.$ac_ext >&5 14086 14087 14088fi 14089 14090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14091 conftest$ac_exeext conftest.$ac_ext 14092if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14093 14094 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14095 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" 14096 else 14097 if test "$host_cpu" = ia64; then 14098 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14099 allow_undefined_flag_F77="-z nodefs" 14100 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" 14101 else 14102 # Determine the default libpath from the value encoded in an empty executable. 14103 cat >conftest.$ac_ext <<_ACEOF 14104 program main 14105 14106 end 14107_ACEOF 14108rm -f conftest.$ac_objext conftest$ac_exeext 14109if { (ac_try="$ac_link" 14110case "(($ac_try" in 14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14112 *) ac_try_echo=$ac_try;; 14113esac 14114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14115 (eval "$ac_link") 2>conftest.er1 14116 ac_status=$? 14117 grep -v '^ *+' conftest.er1 >conftest.err 14118 rm -f conftest.er1 14119 cat conftest.err >&5 14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14121 (exit $ac_status); } && { 14122 test -z "$ac_f77_werror_flag" || 14123 test ! -s conftest.err 14124 } && test -s conftest$ac_exeext && 14125 $as_test_x conftest$ac_exeext; then 14126 14127aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14128}'` 14129# Check for a 64-bit object if we didn't find anything. 14130if 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; } 14131}'`; fi 14132else 14133 echo "$as_me: failed program was:" >&5 14134sed 's/^/| /' conftest.$ac_ext >&5 14135 14136 14137fi 14138 14139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14140 conftest$ac_exeext conftest.$ac_ext 14141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14142 14143 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14144 # Warning - without using the other run time loading flags, 14145 # -berok will link without error, but may produce a broken library. 14146 no_undefined_flag_F77=' ${wl}-bernotok' 14147 allow_undefined_flag_F77=' ${wl}-berok' 14148 # Exported symbols can be pulled into shared objects from archives 14149 whole_archive_flag_spec_F77='$convenience' 14150 archive_cmds_need_lc_F77=yes 14151 # This is similar to how AIX traditionally builds its shared libraries. 14152 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' 14153 fi 14154 fi 14155 ;; 14156 14157 amigaos*) 14158 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)' 14159 hardcode_libdir_flag_spec_F77='-L$libdir' 14160 hardcode_minus_L_F77=yes 14161 # see comment about different semantics on the GNU ld section 14162 ld_shlibs_F77=no 14163 ;; 14164 14165 bsdi[45]*) 14166 export_dynamic_flag_spec_F77=-rdynamic 14167 ;; 14168 14169 cygwin* | mingw* | pw32*) 14170 # When not using gcc, we currently assume that we are using 14171 # Microsoft Visual C++. 14172 # hardcode_libdir_flag_spec is actually meaningless, as there is 14173 # no search path for DLLs. 14174 hardcode_libdir_flag_spec_F77=' ' 14175 allow_undefined_flag_F77=unsupported 14176 # Tell ltmain to make .lib files, not .a files. 14177 libext=lib 14178 # Tell ltmain to make .dll files, not .so files. 14179 shrext_cmds=".dll" 14180 # FIXME: Setting linknames here is a bad hack. 14181 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14182 # The linker will automatically build a .lib file if we build a DLL. 14183 old_archive_From_new_cmds_F77='true' 14184 # FIXME: Should let the user specify the lib program. 14185 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14186 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14187 enable_shared_with_static_runtimes_F77=yes 14188 ;; 14189 14190 darwin* | rhapsody*) 14191 case $host_os in 14192 rhapsody* | darwin1.[012]) 14193 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14194 ;; 14195 *) # Darwin 1.3 on 14196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14197 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14198 else 14199 case ${MACOSX_DEPLOYMENT_TARGET} in 14200 10.[012]) 14201 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14202 ;; 14203 10.*) 14204 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14205 ;; 14206 esac 14207 fi 14208 ;; 14209 esac 14210 archive_cmds_need_lc_F77=no 14211 hardcode_direct_F77=no 14212 hardcode_automatic_F77=yes 14213 hardcode_shlibpath_var_F77=unsupported 14214 whole_archive_flag_spec_F77='' 14215 link_all_deplibs_F77=yes 14216 if test "$GCC" = yes ; then 14217 output_verbose_link_cmd='echo' 14218 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14219 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14221 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}' 14222 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}' 14223 else 14224 case $cc_basename in 14225 xlc*) 14226 output_verbose_link_cmd='echo' 14227 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14228 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14230 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}' 14231 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}' 14232 ;; 14233 *) 14234 ld_shlibs_F77=no 14235 ;; 14236 esac 14237 fi 14238 ;; 14239 14240 dgux*) 14241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14242 hardcode_libdir_flag_spec_F77='-L$libdir' 14243 hardcode_shlibpath_var_F77=no 14244 ;; 14245 14246 freebsd1*) 14247 ld_shlibs_F77=no 14248 ;; 14249 14250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14251 # support. Future versions do this automatically, but an explicit c++rt0.o 14252 # does not break anything, and helps significantly (at the cost of a little 14253 # extra space). 14254 freebsd2.2*) 14255 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14256 hardcode_libdir_flag_spec_F77='-R$libdir' 14257 hardcode_direct_F77=yes 14258 hardcode_shlibpath_var_F77=no 14259 ;; 14260 14261 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14262 freebsd2*) 14263 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14264 hardcode_direct_F77=yes 14265 hardcode_minus_L_F77=yes 14266 hardcode_shlibpath_var_F77=no 14267 ;; 14268 14269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14270 freebsd* | kfreebsd*-gnu | dragonfly*) 14271 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14272 hardcode_libdir_flag_spec_F77='-R$libdir' 14273 hardcode_direct_F77=yes 14274 hardcode_shlibpath_var_F77=no 14275 ;; 14276 14277 hpux9*) 14278 if test "$GCC" = yes; then 14279 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' 14280 else 14281 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' 14282 fi 14283 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14284 hardcode_libdir_separator_F77=: 14285 hardcode_direct_F77=yes 14286 14287 # hardcode_minus_L: Not really in the search PATH, 14288 # but as the default location of the library. 14289 hardcode_minus_L_F77=yes 14290 export_dynamic_flag_spec_F77='${wl}-E' 14291 ;; 14292 14293 hpux10*) 14294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14295 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14296 else 14297 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14298 fi 14299 if test "$with_gnu_ld" = no; then 14300 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14301 hardcode_libdir_separator_F77=: 14302 14303 hardcode_direct_F77=yes 14304 export_dynamic_flag_spec_F77='${wl}-E' 14305 14306 # hardcode_minus_L: Not really in the search PATH, 14307 # but as the default location of the library. 14308 hardcode_minus_L_F77=yes 14309 fi 14310 ;; 14311 14312 hpux11*) 14313 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14314 case $host_cpu in 14315 hppa*64*) 14316 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14317 ;; 14318 ia64*) 14319 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14320 ;; 14321 *) 14322 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14323 ;; 14324 esac 14325 else 14326 case $host_cpu in 14327 hppa*64*) 14328 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14329 ;; 14330 ia64*) 14331 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14332 ;; 14333 *) 14334 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14335 ;; 14336 esac 14337 fi 14338 if test "$with_gnu_ld" = no; then 14339 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14340 hardcode_libdir_separator_F77=: 14341 14342 case $host_cpu in 14343 hppa*64*|ia64*) 14344 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14345 hardcode_direct_F77=no 14346 hardcode_shlibpath_var_F77=no 14347 ;; 14348 *) 14349 hardcode_direct_F77=yes 14350 export_dynamic_flag_spec_F77='${wl}-E' 14351 14352 # hardcode_minus_L: Not really in the search PATH, 14353 # but as the default location of the library. 14354 hardcode_minus_L_F77=yes 14355 ;; 14356 esac 14357 fi 14358 ;; 14359 14360 irix5* | irix6* | nonstopux*) 14361 if test "$GCC" = yes; then 14362 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' 14363 else 14364 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' 14365 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14366 fi 14367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14368 hardcode_libdir_separator_F77=: 14369 link_all_deplibs_F77=yes 14370 ;; 14371 14372 netbsd*) 14373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14374 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14375 else 14376 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14377 fi 14378 hardcode_libdir_flag_spec_F77='-R$libdir' 14379 hardcode_direct_F77=yes 14380 hardcode_shlibpath_var_F77=no 14381 ;; 14382 14383 newsos6) 14384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14385 hardcode_direct_F77=yes 14386 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14387 hardcode_libdir_separator_F77=: 14388 hardcode_shlibpath_var_F77=no 14389 ;; 14390 14391 openbsd*) 14392 hardcode_direct_F77=yes 14393 hardcode_shlibpath_var_F77=no 14394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14395 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14396 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14397 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14398 export_dynamic_flag_spec_F77='${wl}-E' 14399 else 14400 case $host_os in 14401 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14402 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14403 hardcode_libdir_flag_spec_F77='-R$libdir' 14404 ;; 14405 *) 14406 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14407 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14408 ;; 14409 esac 14410 fi 14411 ;; 14412 14413 os2*) 14414 hardcode_libdir_flag_spec_F77='-L$libdir' 14415 hardcode_minus_L_F77=yes 14416 allow_undefined_flag_F77=unsupported 14417 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' 14418 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14419 ;; 14420 14421 osf3*) 14422 if test "$GCC" = yes; then 14423 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14424 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' 14425 else 14426 allow_undefined_flag_F77=' -expect_unresolved \*' 14427 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' 14428 fi 14429 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14430 hardcode_libdir_separator_F77=: 14431 ;; 14432 14433 osf4* | osf5*) # as osf3* with the addition of -msym flag 14434 if test "$GCC" = yes; then 14435 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14436 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' 14437 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14438 else 14439 allow_undefined_flag_F77=' -expect_unresolved \*' 14440 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' 14441 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~ 14442 $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' 14443 14444 # Both c and cxx compiler support -rpath directly 14445 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14446 fi 14447 hardcode_libdir_separator_F77=: 14448 ;; 14449 14450 solaris*) 14451 no_undefined_flag_F77=' -z text' 14452 if test "$GCC" = yes; then 14453 wlarc='${wl}' 14454 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14455 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14456 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14457 else 14458 wlarc='' 14459 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14460 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14462 fi 14463 hardcode_libdir_flag_spec_F77='-R$libdir' 14464 hardcode_shlibpath_var_F77=no 14465 case $host_os in 14466 solaris2.[0-5] | solaris2.[0-5].*) ;; 14467 *) 14468 # The compiler driver will combine linker options so we 14469 # cannot just pass the convience library names through 14470 # without $wl, iff we do not link with $LD. 14471 # Luckily, gcc supports the same syntax we need for Sun Studio. 14472 # Supported since Solaris 2.6 (maybe 2.5.1?) 14473 case $wlarc in 14474 '') 14475 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14476 *) 14477 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' ;; 14478 esac ;; 14479 esac 14480 link_all_deplibs_F77=yes 14481 ;; 14482 14483 sunos4*) 14484 if test "x$host_vendor" = xsequent; then 14485 # Use $CC to link under sequent, because it throws in some extra .o 14486 # files that make .init and .fini sections work. 14487 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14488 else 14489 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14490 fi 14491 hardcode_libdir_flag_spec_F77='-L$libdir' 14492 hardcode_direct_F77=yes 14493 hardcode_minus_L_F77=yes 14494 hardcode_shlibpath_var_F77=no 14495 ;; 14496 14497 sysv4) 14498 case $host_vendor in 14499 sni) 14500 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14501 hardcode_direct_F77=yes # is this really true??? 14502 ;; 14503 siemens) 14504 ## LD is ld it makes a PLAMLIB 14505 ## CC just makes a GrossModule. 14506 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14507 reload_cmds_F77='$CC -r -o $output$reload_objs' 14508 hardcode_direct_F77=no 14509 ;; 14510 motorola) 14511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14512 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14513 ;; 14514 esac 14515 runpath_var='LD_RUN_PATH' 14516 hardcode_shlibpath_var_F77=no 14517 ;; 14518 14519 sysv4.3*) 14520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14521 hardcode_shlibpath_var_F77=no 14522 export_dynamic_flag_spec_F77='-Bexport' 14523 ;; 14524 14525 sysv4*MP*) 14526 if test -d /usr/nec; then 14527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14528 hardcode_shlibpath_var_F77=no 14529 runpath_var=LD_RUN_PATH 14530 hardcode_runpath_var=yes 14531 ld_shlibs_F77=yes 14532 fi 14533 ;; 14534 14535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14536 no_undefined_flag_F77='${wl}-z,text' 14537 archive_cmds_need_lc_F77=no 14538 hardcode_shlibpath_var_F77=no 14539 runpath_var='LD_RUN_PATH' 14540 14541 if test "$GCC" = yes; then 14542 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14543 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14544 else 14545 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14546 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14547 fi 14548 ;; 14549 14550 sysv5* | sco3.2v5* | sco5v6*) 14551 # Note: We can NOT use -z defs as we might desire, because we do not 14552 # link with -lc, and that would cause any symbols used from libc to 14553 # always be unresolved, which means just about no library would 14554 # ever link correctly. If we're not using GNU ld we use -z text 14555 # though, which does catch some bad symbols but isn't as heavy-handed 14556 # as -z defs. 14557 no_undefined_flag_F77='${wl}-z,text' 14558 allow_undefined_flag_F77='${wl}-z,nodefs' 14559 archive_cmds_need_lc_F77=no 14560 hardcode_shlibpath_var_F77=no 14561 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14562 hardcode_libdir_separator_F77=':' 14563 link_all_deplibs_F77=yes 14564 export_dynamic_flag_spec_F77='${wl}-Bexport' 14565 runpath_var='LD_RUN_PATH' 14566 14567 if test "$GCC" = yes; then 14568 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14569 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14570 else 14571 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14572 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14573 fi 14574 ;; 14575 14576 uts4*) 14577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14578 hardcode_libdir_flag_spec_F77='-L$libdir' 14579 hardcode_shlibpath_var_F77=no 14580 ;; 14581 14582 *) 14583 ld_shlibs_F77=no 14584 ;; 14585 esac 14586 fi 14587 14588{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14589echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14590test "$ld_shlibs_F77" = no && can_build_shared=no 14591 14592# 14593# Do we need to explicitly link libc? 14594# 14595case "x$archive_cmds_need_lc_F77" in 14596x|xyes) 14597 # Assume -lc should be added 14598 archive_cmds_need_lc_F77=yes 14599 14600 if test "$enable_shared" = yes && test "$GCC" = yes; then 14601 case $archive_cmds_F77 in 14602 *'~'*) 14603 # FIXME: we may have to deal with multi-command sequences. 14604 ;; 14605 '$CC '*) 14606 # Test whether the compiler implicitly links with -lc since on some 14607 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14608 # to ld, don't add -lc before -lgcc. 14609 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14610echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14611 $rm conftest* 14612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14613 14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14615 (eval $ac_compile) 2>&5 14616 ac_status=$? 14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14618 (exit $ac_status); } 2>conftest.err; then 14619 soname=conftest 14620 lib=conftest 14621 libobjs=conftest.$ac_objext 14622 deplibs= 14623 wl=$lt_prog_compiler_wl_F77 14624 pic_flag=$lt_prog_compiler_pic_F77 14625 compiler_flags=-v 14626 linker_flags=-v 14627 verstring= 14628 output_objdir=. 14629 libname=conftest 14630 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14631 allow_undefined_flag_F77= 14632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14633 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14634 ac_status=$? 14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14636 (exit $ac_status); } 14637 then 14638 archive_cmds_need_lc_F77=no 14639 else 14640 archive_cmds_need_lc_F77=yes 14641 fi 14642 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14643 else 14644 cat conftest.err 1>&5 14645 fi 14646 $rm conftest* 14647 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14648echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14649 ;; 14650 esac 14651 fi 14652 ;; 14653esac 14654 14655{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14656echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14657library_names_spec= 14658libname_spec='lib$name' 14659soname_spec= 14660shrext_cmds=".so" 14661postinstall_cmds= 14662postuninstall_cmds= 14663finish_cmds= 14664finish_eval= 14665shlibpath_var= 14666shlibpath_overrides_runpath=unknown 14667version_type=none 14668dynamic_linker="$host_os ld.so" 14669sys_lib_dlsearch_path_spec="/lib /usr/lib" 14670if test "$GCC" = yes; then 14671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14673 # if the path contains ";" then we assume it to be the separator 14674 # otherwise default to the standard path separator (i.e. ":") - it is 14675 # assumed that no part of a normal pathname contains ";" but that should 14676 # okay in the real world where ";" in dirpaths is itself problematic. 14677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14678 else 14679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14680 fi 14681else 14682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14683fi 14684need_lib_prefix=unknown 14685hardcode_into_libs=no 14686 14687# when you set need_version to no, make sure it does not cause -set_version 14688# flags to be left without arguments 14689need_version=unknown 14690 14691case $host_os in 14692aix3*) 14693 version_type=linux 14694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14695 shlibpath_var=LIBPATH 14696 14697 # AIX 3 has no versioning support, so we append a major version to the name. 14698 soname_spec='${libname}${release}${shared_ext}$major' 14699 ;; 14700 14701aix4* | aix5*) 14702 version_type=linux 14703 need_lib_prefix=no 14704 need_version=no 14705 hardcode_into_libs=yes 14706 if test "$host_cpu" = ia64; then 14707 # AIX 5 supports IA64 14708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14709 shlibpath_var=LD_LIBRARY_PATH 14710 else 14711 # With GCC up to 2.95.x, collect2 would create an import file 14712 # for dependence libraries. The import file would start with 14713 # the line `#! .'. This would cause the generated library to 14714 # depend on `.', always an invalid library. This was fixed in 14715 # development snapshots of GCC prior to 3.0. 14716 case $host_os in 14717 aix4 | aix4.[01] | aix4.[01].*) 14718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14719 echo ' yes ' 14720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14721 : 14722 else 14723 can_build_shared=no 14724 fi 14725 ;; 14726 esac 14727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14728 # soname into executable. Probably we can add versioning support to 14729 # collect2, so additional links can be useful in future. 14730 if test "$aix_use_runtimelinking" = yes; then 14731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14732 # instead of lib<name>.a to let people know that these are not 14733 # typical AIX shared libraries. 14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14735 else 14736 # We preserve .a as extension for shared libraries through AIX4.2 14737 # and later when we are not doing run time linking. 14738 library_names_spec='${libname}${release}.a $libname.a' 14739 soname_spec='${libname}${release}${shared_ext}$major' 14740 fi 14741 shlibpath_var=LIBPATH 14742 fi 14743 ;; 14744 14745amigaos*) 14746 library_names_spec='$libname.ixlibrary $libname.a' 14747 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14748 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' 14749 ;; 14750 14751beos*) 14752 library_names_spec='${libname}${shared_ext}' 14753 dynamic_linker="$host_os ld.so" 14754 shlibpath_var=LIBRARY_PATH 14755 ;; 14756 14757bsdi[45]*) 14758 version_type=linux 14759 need_version=no 14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14761 soname_spec='${libname}${release}${shared_ext}$major' 14762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14763 shlibpath_var=LD_LIBRARY_PATH 14764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14766 # the default ld.so.conf also contains /usr/contrib/lib and 14767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14768 # libtool to hard-code these into programs 14769 ;; 14770 14771cygwin* | mingw* | pw32*) 14772 version_type=windows 14773 shrext_cmds=".dll" 14774 need_version=no 14775 need_lib_prefix=no 14776 14777 case $GCC,$host_os in 14778 yes,cygwin* | yes,mingw* | yes,pw32*) 14779 library_names_spec='$libname.dll.a' 14780 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14781 postinstall_cmds='base_file=`basename \${file}`~ 14782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14783 dldir=$destdir/`dirname \$dlpath`~ 14784 test -d \$dldir || mkdir -p \$dldir~ 14785 $install_prog $dir/$dlname \$dldir/$dlname~ 14786 chmod a+x \$dldir/$dlname' 14787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14788 dlpath=$dir/\$dldll~ 14789 $rm \$dlpath' 14790 shlibpath_overrides_runpath=yes 14791 14792 case $host_os in 14793 cygwin*) 14794 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14797 ;; 14798 mingw*) 14799 # MinGW DLLs use traditional 'lib' prefix 14800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14803 # It is most probably a Windows format PATH printed by 14804 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14805 # path with ; separators, and with drive letters. We can handle the 14806 # drive letters (cygwin fileutils understands them), so leave them, 14807 # especially as we might pass files found there to a mingw objdump, 14808 # which wouldn't understand a cygwinified path. Ahh. 14809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14810 else 14811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14812 fi 14813 ;; 14814 pw32*) 14815 # pw32 DLLs use 'pw' prefix rather than 'lib' 14816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14817 ;; 14818 esac 14819 ;; 14820 14821 *) 14822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14823 ;; 14824 esac 14825 dynamic_linker='Win32 ld.exe' 14826 # FIXME: first we should search . and the directory the executable is in 14827 shlibpath_var=PATH 14828 ;; 14829 14830darwin* | rhapsody*) 14831 dynamic_linker="$host_os dyld" 14832 version_type=darwin 14833 need_lib_prefix=no 14834 need_version=no 14835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14836 soname_spec='${libname}${release}${major}$shared_ext' 14837 shlibpath_overrides_runpath=yes 14838 shlibpath_var=DYLD_LIBRARY_PATH 14839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14841 if test "$GCC" = yes; then 14842 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"` 14843 else 14844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14845 fi 14846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14847 ;; 14848 14849dgux*) 14850 version_type=linux 14851 need_lib_prefix=no 14852 need_version=no 14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14854 soname_spec='${libname}${release}${shared_ext}$major' 14855 shlibpath_var=LD_LIBRARY_PATH 14856 ;; 14857 14858freebsd1*) 14859 dynamic_linker=no 14860 ;; 14861 14862kfreebsd*-gnu) 14863 version_type=linux 14864 need_lib_prefix=no 14865 need_version=no 14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14867 soname_spec='${libname}${release}${shared_ext}$major' 14868 shlibpath_var=LD_LIBRARY_PATH 14869 shlibpath_overrides_runpath=no 14870 hardcode_into_libs=yes 14871 dynamic_linker='GNU ld.so' 14872 ;; 14873 14874freebsd* | dragonfly*) 14875 # DragonFly does not have aout. When/if they implement a new 14876 # versioning mechanism, adjust this. 14877 if test -x /usr/bin/objformat; then 14878 objformat=`/usr/bin/objformat` 14879 else 14880 case $host_os in 14881 freebsd[123]*) objformat=aout ;; 14882 *) objformat=elf ;; 14883 esac 14884 fi 14885 version_type=freebsd-$objformat 14886 case $version_type in 14887 freebsd-elf*) 14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14889 need_version=no 14890 need_lib_prefix=no 14891 ;; 14892 freebsd-*) 14893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14894 need_version=yes 14895 ;; 14896 esac 14897 shlibpath_var=LD_LIBRARY_PATH 14898 case $host_os in 14899 freebsd2*) 14900 shlibpath_overrides_runpath=yes 14901 ;; 14902 freebsd3.[01]* | freebsdelf3.[01]*) 14903 shlibpath_overrides_runpath=yes 14904 hardcode_into_libs=yes 14905 ;; 14906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14908 shlibpath_overrides_runpath=no 14909 hardcode_into_libs=yes 14910 ;; 14911 freebsd*) # from 4.6 on 14912 shlibpath_overrides_runpath=yes 14913 hardcode_into_libs=yes 14914 ;; 14915 esac 14916 ;; 14917 14918gnu*) 14919 version_type=linux 14920 need_lib_prefix=no 14921 need_version=no 14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14923 soname_spec='${libname}${release}${shared_ext}$major' 14924 shlibpath_var=LD_LIBRARY_PATH 14925 hardcode_into_libs=yes 14926 ;; 14927 14928hpux9* | hpux10* | hpux11*) 14929 # Give a soname corresponding to the major version so that dld.sl refuses to 14930 # link against other versions. 14931 version_type=sunos 14932 need_lib_prefix=no 14933 need_version=no 14934 case $host_cpu in 14935 ia64*) 14936 shrext_cmds='.so' 14937 hardcode_into_libs=yes 14938 dynamic_linker="$host_os dld.so" 14939 shlibpath_var=LD_LIBRARY_PATH 14940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14942 soname_spec='${libname}${release}${shared_ext}$major' 14943 if test "X$HPUX_IA64_MODE" = X32; then 14944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14945 else 14946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14947 fi 14948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14949 ;; 14950 hppa*64*) 14951 shrext_cmds='.sl' 14952 hardcode_into_libs=yes 14953 dynamic_linker="$host_os dld.sl" 14954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14957 soname_spec='${libname}${release}${shared_ext}$major' 14958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14960 ;; 14961 *) 14962 shrext_cmds='.sl' 14963 dynamic_linker="$host_os dld.sl" 14964 shlibpath_var=SHLIB_PATH 14965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14967 soname_spec='${libname}${release}${shared_ext}$major' 14968 ;; 14969 esac 14970 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14971 postinstall_cmds='chmod 555 $lib' 14972 ;; 14973 14974interix3*) 14975 version_type=linux 14976 need_lib_prefix=no 14977 need_version=no 14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14979 soname_spec='${libname}${release}${shared_ext}$major' 14980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14981 shlibpath_var=LD_LIBRARY_PATH 14982 shlibpath_overrides_runpath=no 14983 hardcode_into_libs=yes 14984 ;; 14985 14986irix5* | irix6* | nonstopux*) 14987 case $host_os in 14988 nonstopux*) version_type=nonstopux ;; 14989 *) 14990 if test "$lt_cv_prog_gnu_ld" = yes; then 14991 version_type=linux 14992 else 14993 version_type=irix 14994 fi ;; 14995 esac 14996 need_lib_prefix=no 14997 need_version=no 14998 soname_spec='${libname}${release}${shared_ext}$major' 14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15000 case $host_os in 15001 irix5* | nonstopux*) 15002 libsuff= shlibsuff= 15003 ;; 15004 *) 15005 case $LD in # libtool.m4 will add one of these switches to LD 15006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15007 libsuff= shlibsuff= libmagic=32-bit;; 15008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15009 libsuff=32 shlibsuff=N32 libmagic=N32;; 15010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15011 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15012 *) libsuff= shlibsuff= libmagic=never-match;; 15013 esac 15014 ;; 15015 esac 15016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15017 shlibpath_overrides_runpath=no 15018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15020 hardcode_into_libs=yes 15021 ;; 15022 15023# No shared lib support for Linux oldld, aout, or coff. 15024linux*oldld* | linux*aout* | linux*coff*) 15025 dynamic_linker=no 15026 ;; 15027 15028# This must be Linux ELF. 15029linux*) 15030 version_type=linux 15031 need_lib_prefix=no 15032 need_version=no 15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15034 soname_spec='${libname}${release}${shared_ext}$major' 15035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15036 shlibpath_var=LD_LIBRARY_PATH 15037 shlibpath_overrides_runpath=no 15038 # This implies no fast_install, which is unacceptable. 15039 # Some rework will be needed to allow for fast_install 15040 # before this can be enabled. 15041 hardcode_into_libs=yes 15042 15043 # Append ld.so.conf contents to the search path 15044 if test -f /etc/ld.so.conf; then 15045 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' ' '` 15046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15047 fi 15048 15049 # We used to test for /lib/ld.so.1 and disable shared libraries on 15050 # powerpc, because MkLinux only supported shared libraries with the 15051 # GNU dynamic linker. Since this was broken with cross compilers, 15052 # most powerpc-linux boxes support dynamic linking these days and 15053 # people can always --disable-shared, the test was removed, and we 15054 # assume the GNU/Linux dynamic linker is in use. 15055 dynamic_linker='GNU/Linux ld.so' 15056 ;; 15057 15058knetbsd*-gnu) 15059 version_type=linux 15060 need_lib_prefix=no 15061 need_version=no 15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15063 soname_spec='${libname}${release}${shared_ext}$major' 15064 shlibpath_var=LD_LIBRARY_PATH 15065 shlibpath_overrides_runpath=no 15066 hardcode_into_libs=yes 15067 dynamic_linker='GNU ld.so' 15068 ;; 15069 15070netbsd*) 15071 version_type=sunos 15072 need_lib_prefix=no 15073 need_version=no 15074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15077 dynamic_linker='NetBSD (a.out) ld.so' 15078 else 15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15080 soname_spec='${libname}${release}${shared_ext}$major' 15081 dynamic_linker='NetBSD ld.elf_so' 15082 fi 15083 shlibpath_var=LD_LIBRARY_PATH 15084 shlibpath_overrides_runpath=yes 15085 hardcode_into_libs=yes 15086 ;; 15087 15088newsos6) 15089 version_type=linux 15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15091 shlibpath_var=LD_LIBRARY_PATH 15092 shlibpath_overrides_runpath=yes 15093 ;; 15094 15095nto-qnx*) 15096 version_type=linux 15097 need_lib_prefix=no 15098 need_version=no 15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15100 soname_spec='${libname}${release}${shared_ext}$major' 15101 shlibpath_var=LD_LIBRARY_PATH 15102 shlibpath_overrides_runpath=yes 15103 ;; 15104 15105openbsd*) 15106 version_type=sunos 15107 sys_lib_dlsearch_path_spec="/usr/lib" 15108 need_lib_prefix=no 15109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15110 case $host_os in 15111 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15112 *) need_version=no ;; 15113 esac 15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15116 shlibpath_var=LD_LIBRARY_PATH 15117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15118 case $host_os in 15119 openbsd2.[89] | openbsd2.[89].*) 15120 shlibpath_overrides_runpath=no 15121 ;; 15122 *) 15123 shlibpath_overrides_runpath=yes 15124 ;; 15125 esac 15126 else 15127 shlibpath_overrides_runpath=yes 15128 fi 15129 ;; 15130 15131os2*) 15132 libname_spec='$name' 15133 shrext_cmds=".dll" 15134 need_lib_prefix=no 15135 library_names_spec='$libname${shared_ext} $libname.a' 15136 dynamic_linker='OS/2 ld.exe' 15137 shlibpath_var=LIBPATH 15138 ;; 15139 15140osf3* | osf4* | osf5*) 15141 version_type=osf 15142 need_lib_prefix=no 15143 need_version=no 15144 soname_spec='${libname}${release}${shared_ext}$major' 15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15146 shlibpath_var=LD_LIBRARY_PATH 15147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15149 ;; 15150 15151solaris*) 15152 version_type=linux 15153 need_lib_prefix=no 15154 need_version=no 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 shlibpath_var=LD_LIBRARY_PATH 15158 shlibpath_overrides_runpath=yes 15159 hardcode_into_libs=yes 15160 # ldd complains unless libraries are executable 15161 postinstall_cmds='chmod +x $lib' 15162 ;; 15163 15164sunos4*) 15165 version_type=sunos 15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15168 shlibpath_var=LD_LIBRARY_PATH 15169 shlibpath_overrides_runpath=yes 15170 if test "$with_gnu_ld" = yes; then 15171 need_lib_prefix=no 15172 fi 15173 need_version=yes 15174 ;; 15175 15176sysv4 | sysv4.3*) 15177 version_type=linux 15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15179 soname_spec='${libname}${release}${shared_ext}$major' 15180 shlibpath_var=LD_LIBRARY_PATH 15181 case $host_vendor in 15182 sni) 15183 shlibpath_overrides_runpath=no 15184 need_lib_prefix=no 15185 export_dynamic_flag_spec='${wl}-Blargedynsym' 15186 runpath_var=LD_RUN_PATH 15187 ;; 15188 siemens) 15189 need_lib_prefix=no 15190 ;; 15191 motorola) 15192 need_lib_prefix=no 15193 need_version=no 15194 shlibpath_overrides_runpath=no 15195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15196 ;; 15197 esac 15198 ;; 15199 15200sysv4*MP*) 15201 if test -d /usr/nec ;then 15202 version_type=linux 15203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15204 soname_spec='$libname${shared_ext}.$major' 15205 shlibpath_var=LD_LIBRARY_PATH 15206 fi 15207 ;; 15208 15209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15210 version_type=freebsd-elf 15211 need_lib_prefix=no 15212 need_version=no 15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15214 soname_spec='${libname}${release}${shared_ext}$major' 15215 shlibpath_var=LD_LIBRARY_PATH 15216 hardcode_into_libs=yes 15217 if test "$with_gnu_ld" = yes; then 15218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15219 shlibpath_overrides_runpath=no 15220 else 15221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15222 shlibpath_overrides_runpath=yes 15223 case $host_os in 15224 sco3.2v5*) 15225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15226 ;; 15227 esac 15228 fi 15229 sys_lib_dlsearch_path_spec='/usr/lib' 15230 ;; 15231 15232uts4*) 15233 version_type=linux 15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15235 soname_spec='${libname}${release}${shared_ext}$major' 15236 shlibpath_var=LD_LIBRARY_PATH 15237 ;; 15238 15239*) 15240 dynamic_linker=no 15241 ;; 15242esac 15243{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15244echo "${ECHO_T}$dynamic_linker" >&6; } 15245test "$dynamic_linker" = no && can_build_shared=no 15246 15247variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15248if test "$GCC" = yes; then 15249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15250fi 15251 15252{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15253echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15254hardcode_action_F77= 15255if test -n "$hardcode_libdir_flag_spec_F77" || \ 15256 test -n "$runpath_var_F77" || \ 15257 test "X$hardcode_automatic_F77" = "Xyes" ; then 15258 15259 # We can hardcode non-existant directories. 15260 if test "$hardcode_direct_F77" != no && 15261 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15262 # have to relink, otherwise we might link with an installed library 15263 # when we should be linking with a yet-to-be-installed one 15264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15265 test "$hardcode_minus_L_F77" != no; then 15266 # Linking always hardcodes the temporary library directory. 15267 hardcode_action_F77=relink 15268 else 15269 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15270 hardcode_action_F77=immediate 15271 fi 15272else 15273 # We cannot hardcode anything, or else we can only hardcode existing 15274 # directories. 15275 hardcode_action_F77=unsupported 15276fi 15277{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15278echo "${ECHO_T}$hardcode_action_F77" >&6; } 15279 15280if test "$hardcode_action_F77" = relink; then 15281 # Fast installation is not supported 15282 enable_fast_install=no 15283elif test "$shlibpath_overrides_runpath" = yes || 15284 test "$enable_shared" = no; then 15285 # Fast installation is not necessary 15286 enable_fast_install=needless 15287fi 15288 15289 15290# The else clause should only fire when bootstrapping the 15291# libtool distribution, otherwise you forgot to ship ltmain.sh 15292# with your package, and you will get complaints that there are 15293# no rules to generate ltmain.sh. 15294if test -f "$ltmain"; then 15295 # See if we are running on zsh, and set the options which allow our commands through 15296 # without removal of \ escapes. 15297 if test -n "${ZSH_VERSION+set}" ; then 15298 setopt NO_GLOB_SUBST 15299 fi 15300 # Now quote all the things that may contain metacharacters while being 15301 # careful not to overquote the AC_SUBSTed values. We take copies of the 15302 # variables and quote the copies for generation of the libtool script. 15303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15304 SED SHELL STRIP \ 15305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15307 deplibs_check_method reload_flag reload_cmds need_locks \ 15308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15309 lt_cv_sys_global_symbol_to_c_name_address \ 15310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15311 old_postinstall_cmds old_postuninstall_cmds \ 15312 compiler_F77 \ 15313 CC_F77 \ 15314 LD_F77 \ 15315 lt_prog_compiler_wl_F77 \ 15316 lt_prog_compiler_pic_F77 \ 15317 lt_prog_compiler_static_F77 \ 15318 lt_prog_compiler_no_builtin_flag_F77 \ 15319 export_dynamic_flag_spec_F77 \ 15320 thread_safe_flag_spec_F77 \ 15321 whole_archive_flag_spec_F77 \ 15322 enable_shared_with_static_runtimes_F77 \ 15323 old_archive_cmds_F77 \ 15324 old_archive_from_new_cmds_F77 \ 15325 predep_objects_F77 \ 15326 postdep_objects_F77 \ 15327 predeps_F77 \ 15328 postdeps_F77 \ 15329 compiler_lib_search_path_F77 \ 15330 archive_cmds_F77 \ 15331 archive_expsym_cmds_F77 \ 15332 postinstall_cmds_F77 \ 15333 postuninstall_cmds_F77 \ 15334 old_archive_from_expsyms_cmds_F77 \ 15335 allow_undefined_flag_F77 \ 15336 no_undefined_flag_F77 \ 15337 export_symbols_cmds_F77 \ 15338 hardcode_libdir_flag_spec_F77 \ 15339 hardcode_libdir_flag_spec_ld_F77 \ 15340 hardcode_libdir_separator_F77 \ 15341 hardcode_automatic_F77 \ 15342 module_cmds_F77 \ 15343 module_expsym_cmds_F77 \ 15344 lt_cv_prog_compiler_c_o_F77 \ 15345 exclude_expsyms_F77 \ 15346 include_expsyms_F77; do 15347 15348 case $var in 15349 old_archive_cmds_F77 | \ 15350 old_archive_from_new_cmds_F77 | \ 15351 archive_cmds_F77 | \ 15352 archive_expsym_cmds_F77 | \ 15353 module_cmds_F77 | \ 15354 module_expsym_cmds_F77 | \ 15355 old_archive_from_expsyms_cmds_F77 | \ 15356 export_symbols_cmds_F77 | \ 15357 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15358 postinstall_cmds | postuninstall_cmds | \ 15359 old_postinstall_cmds | old_postuninstall_cmds | \ 15360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15361 # Double-quote double-evaled strings. 15362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15363 ;; 15364 *) 15365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15366 ;; 15367 esac 15368 done 15369 15370 case $lt_echo in 15371 *'\$0 --fallback-echo"') 15372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15373 ;; 15374 esac 15375 15376cfgfile="$ofile" 15377 15378 cat <<__EOF__ >> "$cfgfile" 15379# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15380 15381# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15382 15383# Shell to use when invoking shell scripts. 15384SHELL=$lt_SHELL 15385 15386# Whether or not to build shared libraries. 15387build_libtool_libs=$enable_shared 15388 15389# Whether or not to build static libraries. 15390build_old_libs=$enable_static 15391 15392# Whether or not to add -lc for building shared libraries. 15393build_libtool_need_lc=$archive_cmds_need_lc_F77 15394 15395# Whether or not to disallow shared libs when runtime libs are static 15396allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15397 15398# Whether or not to optimize for fast installation. 15399fast_install=$enable_fast_install 15400 15401# The host system. 15402host_alias=$host_alias 15403host=$host 15404host_os=$host_os 15405 15406# The build system. 15407build_alias=$build_alias 15408build=$build 15409build_os=$build_os 15410 15411# An echo program that does not interpret backslashes. 15412echo=$lt_echo 15413 15414# The archiver. 15415AR=$lt_AR 15416AR_FLAGS=$lt_AR_FLAGS 15417 15418# A C compiler. 15419LTCC=$lt_LTCC 15420 15421# LTCC compiler flags. 15422LTCFLAGS=$lt_LTCFLAGS 15423 15424# A language-specific compiler. 15425CC=$lt_compiler_F77 15426 15427# Is the compiler the GNU C compiler? 15428with_gcc=$GCC_F77 15429 15430# An ERE matcher. 15431EGREP=$lt_EGREP 15432 15433# The linker used to build libraries. 15434LD=$lt_LD_F77 15435 15436# Whether we need hard or soft links. 15437LN_S=$lt_LN_S 15438 15439# A BSD-compatible nm program. 15440NM=$lt_NM 15441 15442# A symbol stripping program 15443STRIP=$lt_STRIP 15444 15445# Used to examine libraries when file_magic_cmd begins "file" 15446MAGIC_CMD=$MAGIC_CMD 15447 15448# Used on cygwin: DLL creation program. 15449DLLTOOL="$DLLTOOL" 15450 15451# Used on cygwin: object dumper. 15452OBJDUMP="$OBJDUMP" 15453 15454# Used on cygwin: assembler. 15455AS="$AS" 15456 15457# The name of the directory that contains temporary libtool files. 15458objdir=$objdir 15459 15460# How to create reloadable object files. 15461reload_flag=$lt_reload_flag 15462reload_cmds=$lt_reload_cmds 15463 15464# How to pass a linker flag through the compiler. 15465wl=$lt_lt_prog_compiler_wl_F77 15466 15467# Object file suffix (normally "o"). 15468objext="$ac_objext" 15469 15470# Old archive suffix (normally "a"). 15471libext="$libext" 15472 15473# Shared library suffix (normally ".so"). 15474shrext_cmds='$shrext_cmds' 15475 15476# Executable file suffix (normally ""). 15477exeext="$exeext" 15478 15479# Additional compiler flags for building library objects. 15480pic_flag=$lt_lt_prog_compiler_pic_F77 15481pic_mode=$pic_mode 15482 15483# What is the maximum length of a command? 15484max_cmd_len=$lt_cv_sys_max_cmd_len 15485 15486# Does compiler simultaneously support -c and -o options? 15487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15488 15489# Must we lock files when doing compilation? 15490need_locks=$lt_need_locks 15491 15492# Do we need the lib prefix for modules? 15493need_lib_prefix=$need_lib_prefix 15494 15495# Do we need a version for libraries? 15496need_version=$need_version 15497 15498# Whether dlopen is supported. 15499dlopen_support=$enable_dlopen 15500 15501# Whether dlopen of programs is supported. 15502dlopen_self=$enable_dlopen_self 15503 15504# Whether dlopen of statically linked programs is supported. 15505dlopen_self_static=$enable_dlopen_self_static 15506 15507# Compiler flag to prevent dynamic linking. 15508link_static_flag=$lt_lt_prog_compiler_static_F77 15509 15510# Compiler flag to turn off builtin functions. 15511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15512 15513# Compiler flag to allow reflexive dlopens. 15514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15515 15516# Compiler flag to generate shared objects directly from archives. 15517whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15518 15519# Compiler flag to generate thread-safe objects. 15520thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15521 15522# Library versioning type. 15523version_type=$version_type 15524 15525# Format of library name prefix. 15526libname_spec=$lt_libname_spec 15527 15528# List of archive names. First name is the real one, the rest are links. 15529# The last name is the one that the linker finds with -lNAME. 15530library_names_spec=$lt_library_names_spec 15531 15532# The coded name of the library, if different from the real name. 15533soname_spec=$lt_soname_spec 15534 15535# Commands used to build and install an old-style archive. 15536RANLIB=$lt_RANLIB 15537old_archive_cmds=$lt_old_archive_cmds_F77 15538old_postinstall_cmds=$lt_old_postinstall_cmds 15539old_postuninstall_cmds=$lt_old_postuninstall_cmds 15540 15541# Create an old-style archive from a shared archive. 15542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15543 15544# Create a temporary old-style archive to link instead of a shared archive. 15545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15546 15547# Commands used to build and install a shared archive. 15548archive_cmds=$lt_archive_cmds_F77 15549archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15550postinstall_cmds=$lt_postinstall_cmds 15551postuninstall_cmds=$lt_postuninstall_cmds 15552 15553# Commands used to build a loadable module (assumed same as above if empty) 15554module_cmds=$lt_module_cmds_F77 15555module_expsym_cmds=$lt_module_expsym_cmds_F77 15556 15557# Commands to strip libraries. 15558old_striplib=$lt_old_striplib 15559striplib=$lt_striplib 15560 15561# Dependencies to place before the objects being linked to create a 15562# shared library. 15563predep_objects=$lt_predep_objects_F77 15564 15565# Dependencies to place after the objects being linked to create a 15566# shared library. 15567postdep_objects=$lt_postdep_objects_F77 15568 15569# Dependencies to place before the objects being linked to create a 15570# shared library. 15571predeps=$lt_predeps_F77 15572 15573# Dependencies to place after the objects being linked to create a 15574# shared library. 15575postdeps=$lt_postdeps_F77 15576 15577# The library search path used internally by the compiler when linking 15578# a shared library. 15579compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15580 15581# Method to check whether dependent libraries are shared objects. 15582deplibs_check_method=$lt_deplibs_check_method 15583 15584# Command to use when deplibs_check_method == file_magic. 15585file_magic_cmd=$lt_file_magic_cmd 15586 15587# Flag that allows shared libraries with undefined symbols to be built. 15588allow_undefined_flag=$lt_allow_undefined_flag_F77 15589 15590# Flag that forces no undefined symbols. 15591no_undefined_flag=$lt_no_undefined_flag_F77 15592 15593# Commands used to finish a libtool library installation in a directory. 15594finish_cmds=$lt_finish_cmds 15595 15596# Same as above, but a single script fragment to be evaled but not shown. 15597finish_eval=$lt_finish_eval 15598 15599# Take the output of nm and produce a listing of raw symbols and C names. 15600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15601 15602# Transform the output of nm in a proper C declaration 15603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15604 15605# Transform the output of nm in a C name address pair 15606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15607 15608# This is the shared library runtime path variable. 15609runpath_var=$runpath_var 15610 15611# This is the shared library path variable. 15612shlibpath_var=$shlibpath_var 15613 15614# Is shlibpath searched before the hard-coded library search path? 15615shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15616 15617# How to hardcode a shared library path into an executable. 15618hardcode_action=$hardcode_action_F77 15619 15620# Whether we should hardcode library paths into libraries. 15621hardcode_into_libs=$hardcode_into_libs 15622 15623# Flag to hardcode \$libdir into a binary during linking. 15624# This must work even if \$libdir does not exist. 15625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15626 15627# If ld is used when linking, flag to hardcode \$libdir into 15628# a binary during linking. This must work even if \$libdir does 15629# not exist. 15630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15631 15632# Whether we need a single -rpath flag with a separated argument. 15633hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15634 15635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15636# resulting binary. 15637hardcode_direct=$hardcode_direct_F77 15638 15639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15640# resulting binary. 15641hardcode_minus_L=$hardcode_minus_L_F77 15642 15643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15644# the resulting binary. 15645hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15646 15647# Set to yes if building a shared library automatically hardcodes DIR into the library 15648# and all subsequent libraries and executables linked against it. 15649hardcode_automatic=$hardcode_automatic_F77 15650 15651# Variables whose values should be saved in libtool wrapper scripts and 15652# restored at relink time. 15653variables_saved_for_relink="$variables_saved_for_relink" 15654 15655# Whether libtool must link a program against all its dependency libraries. 15656link_all_deplibs=$link_all_deplibs_F77 15657 15658# Compile-time system search path for libraries 15659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15660 15661# Run-time system search path for libraries 15662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15663 15664# Fix the shell variable \$srcfile for the compiler. 15665fix_srcfile_path="$fix_srcfile_path_F77" 15666 15667# Set to yes if exported symbols are required. 15668always_export_symbols=$always_export_symbols_F77 15669 15670# The commands to list exported symbols. 15671export_symbols_cmds=$lt_export_symbols_cmds_F77 15672 15673# The commands to extract the exported symbol list from a shared archive. 15674extract_expsyms_cmds=$lt_extract_expsyms_cmds 15675 15676# Symbols that should not be listed in the preloaded symbols. 15677exclude_expsyms=$lt_exclude_expsyms_F77 15678 15679# Symbols that must always be exported. 15680include_expsyms=$lt_include_expsyms_F77 15681 15682# ### END LIBTOOL TAG CONFIG: $tagname 15683 15684__EOF__ 15685 15686 15687else 15688 # If there is no Makefile yet, we rely on a make rule to execute 15689 # `config.status --recheck' to rerun these tests and create the 15690 # libtool script then. 15691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15692 if test -f "$ltmain_in"; then 15693 test -f Makefile && make "$ltmain" 15694 fi 15695fi 15696 15697 15698ac_ext=c 15699ac_cpp='$CPP $CPPFLAGS' 15700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15702ac_compiler_gnu=$ac_cv_c_compiler_gnu 15703 15704CC="$lt_save_CC" 15705 15706 else 15707 tagname="" 15708 fi 15709 ;; 15710 15711 GCJ) 15712 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15713 15714 15715# Source file extension for Java test sources. 15716ac_ext=java 15717 15718# Object file extension for compiled Java test sources. 15719objext=o 15720objext_GCJ=$objext 15721 15722# Code to be used in simple compile tests 15723lt_simple_compile_test_code="class foo {}\n" 15724 15725# Code to be used in simple link tests 15726lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15727 15728# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15729 15730# If no C compiler was specified, use CC. 15731LTCC=${LTCC-"$CC"} 15732 15733# If no C compiler flags were specified, use CFLAGS. 15734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15735 15736# Allow CC to be a program name with arguments. 15737compiler=$CC 15738 15739 15740# save warnings/boilerplate of simple test code 15741ac_outfile=conftest.$ac_objext 15742printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15744_lt_compiler_boilerplate=`cat conftest.err` 15745$rm conftest* 15746 15747ac_outfile=conftest.$ac_objext 15748printf "$lt_simple_link_test_code" >conftest.$ac_ext 15749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15750_lt_linker_boilerplate=`cat conftest.err` 15751$rm conftest* 15752 15753 15754# Allow CC to be a program name with arguments. 15755lt_save_CC="$CC" 15756CC=${GCJ-"gcj"} 15757compiler=$CC 15758compiler_GCJ=$CC 15759for cc_temp in $compiler""; do 15760 case $cc_temp in 15761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15763 \-*) ;; 15764 *) break;; 15765 esac 15766done 15767cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15768 15769 15770# GCJ did not exist at the time GCC didn't implicitly link libc in. 15771archive_cmds_need_lc_GCJ=no 15772 15773old_archive_cmds_GCJ=$old_archive_cmds 15774 15775## CAVEAT EMPTOR: 15776## There is no encapsulation within the following macros, do not change 15777## the running order or otherwise move them around unless you know exactly 15778## what you are doing... 15779 15780lt_prog_compiler_no_builtin_flag_GCJ= 15781 15782if test "$GCC" = yes; then 15783 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15784 15785 15786{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15787echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 15788if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15789 echo $ECHO_N "(cached) $ECHO_C" >&6 15790else 15791 lt_cv_prog_compiler_rtti_exceptions=no 15792 ac_outfile=conftest.$ac_objext 15793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15794 lt_compiler_flag="-fno-rtti -fno-exceptions" 15795 # Insert the option either (1) after the last *FLAGS variable, or 15796 # (2) before a word containing "conftest.", or (3) at the end. 15797 # Note that $ac_compile itself does not contain backslashes and begins 15798 # with a dollar sign (not a hyphen), so the echo should work correctly. 15799 # The option is referenced via a variable to avoid confusing sed. 15800 lt_compile=`echo "$ac_compile" | $SED \ 15801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15803 -e 's:$: $lt_compiler_flag:'` 15804 (eval echo "\"\$as_me:15804: $lt_compile\"" >&5) 15805 (eval "$lt_compile" 2>conftest.err) 15806 ac_status=$? 15807 cat conftest.err >&5 15808 echo "$as_me:15808: \$? = $ac_status" >&5 15809 if (exit $ac_status) && test -s "$ac_outfile"; then 15810 # The compiler can only warn and ignore the option if not recognized 15811 # So say no if there are warnings other than the usual output. 15812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15815 lt_cv_prog_compiler_rtti_exceptions=yes 15816 fi 15817 fi 15818 $rm conftest* 15819 15820fi 15821{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15822echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15823 15824if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15825 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15826else 15827 : 15828fi 15829 15830fi 15831 15832lt_prog_compiler_wl_GCJ= 15833lt_prog_compiler_pic_GCJ= 15834lt_prog_compiler_static_GCJ= 15835 15836{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15837echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15838 15839 if test "$GCC" = yes; then 15840 lt_prog_compiler_wl_GCJ='-Wl,' 15841 lt_prog_compiler_static_GCJ='-static' 15842 15843 case $host_os in 15844 aix*) 15845 # All AIX code is PIC. 15846 if test "$host_cpu" = ia64; then 15847 # AIX 5 now supports IA64 processor 15848 lt_prog_compiler_static_GCJ='-Bstatic' 15849 fi 15850 ;; 15851 15852 amigaos*) 15853 # FIXME: we need at least 68020 code to build shared libraries, but 15854 # adding the `-m68020' flag to GCC prevents building anything better, 15855 # like `-m68040'. 15856 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15857 ;; 15858 15859 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15860 # PIC is the default for these OSes. 15861 ;; 15862 15863 mingw* | pw32* | os2*) 15864 # This hack is so that the source file can tell whether it is being 15865 # built for inclusion in a dll (and should export symbols for example). 15866 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15867 ;; 15868 15869 darwin* | rhapsody*) 15870 # PIC is the default on this platform 15871 # Common symbols not allowed in MH_DYLIB files 15872 lt_prog_compiler_pic_GCJ='-fno-common' 15873 ;; 15874 15875 interix3*) 15876 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15877 # Instead, we relocate shared libraries at runtime. 15878 ;; 15879 15880 msdosdjgpp*) 15881 # Just because we use GCC doesn't mean we suddenly get shared libraries 15882 # on systems that don't support them. 15883 lt_prog_compiler_can_build_shared_GCJ=no 15884 enable_shared=no 15885 ;; 15886 15887 sysv4*MP*) 15888 if test -d /usr/nec; then 15889 lt_prog_compiler_pic_GCJ=-Kconform_pic 15890 fi 15891 ;; 15892 15893 hpux*) 15894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15895 # not for PA HP-UX. 15896 case $host_cpu in 15897 hppa*64*|ia64*) 15898 # +Z the default 15899 ;; 15900 *) 15901 lt_prog_compiler_pic_GCJ='-fPIC' 15902 ;; 15903 esac 15904 ;; 15905 15906 *) 15907 lt_prog_compiler_pic_GCJ='-fPIC' 15908 ;; 15909 esac 15910 else 15911 # PORTME Check for flag to pass linker flags through the system compiler. 15912 case $host_os in 15913 aix*) 15914 lt_prog_compiler_wl_GCJ='-Wl,' 15915 if test "$host_cpu" = ia64; then 15916 # AIX 5 now supports IA64 processor 15917 lt_prog_compiler_static_GCJ='-Bstatic' 15918 else 15919 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15920 fi 15921 ;; 15922 darwin*) 15923 # PIC is the default on this platform 15924 # Common symbols not allowed in MH_DYLIB files 15925 case $cc_basename in 15926 xlc*) 15927 lt_prog_compiler_pic_GCJ='-qnocommon' 15928 lt_prog_compiler_wl_GCJ='-Wl,' 15929 ;; 15930 esac 15931 ;; 15932 15933 mingw* | pw32* | os2*) 15934 # This hack is so that the source file can tell whether it is being 15935 # built for inclusion in a dll (and should export symbols for example). 15936 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15937 ;; 15938 15939 hpux9* | hpux10* | hpux11*) 15940 lt_prog_compiler_wl_GCJ='-Wl,' 15941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15942 # not for PA HP-UX. 15943 case $host_cpu in 15944 hppa*64*|ia64*) 15945 # +Z the default 15946 ;; 15947 *) 15948 lt_prog_compiler_pic_GCJ='+Z' 15949 ;; 15950 esac 15951 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15952 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15953 ;; 15954 15955 irix5* | irix6* | nonstopux*) 15956 lt_prog_compiler_wl_GCJ='-Wl,' 15957 # PIC (with -KPIC) is the default. 15958 lt_prog_compiler_static_GCJ='-non_shared' 15959 ;; 15960 15961 newsos6) 15962 lt_prog_compiler_pic_GCJ='-KPIC' 15963 lt_prog_compiler_static_GCJ='-Bstatic' 15964 ;; 15965 15966 linux*) 15967 case $cc_basename in 15968 icc* | ecc*) 15969 lt_prog_compiler_wl_GCJ='-Wl,' 15970 lt_prog_compiler_pic_GCJ='-KPIC' 15971 lt_prog_compiler_static_GCJ='-static' 15972 ;; 15973 pgcc* | pgf77* | pgf90* | pgf95*) 15974 # Portland Group compilers (*not* the Pentium gcc compiler, 15975 # which looks to be a dead project) 15976 lt_prog_compiler_wl_GCJ='-Wl,' 15977 lt_prog_compiler_pic_GCJ='-fpic' 15978 lt_prog_compiler_static_GCJ='-Bstatic' 15979 ;; 15980 ccc*) 15981 lt_prog_compiler_wl_GCJ='-Wl,' 15982 # All Alpha code is PIC. 15983 lt_prog_compiler_static_GCJ='-non_shared' 15984 ;; 15985 esac 15986 ;; 15987 15988 osf3* | osf4* | osf5*) 15989 lt_prog_compiler_wl_GCJ='-Wl,' 15990 # All OSF/1 code is PIC. 15991 lt_prog_compiler_static_GCJ='-non_shared' 15992 ;; 15993 15994 solaris*) 15995 lt_prog_compiler_pic_GCJ='-KPIC' 15996 lt_prog_compiler_static_GCJ='-Bstatic' 15997 case $cc_basename in 15998 f77* | f90* | f95*) 15999 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16000 *) 16001 lt_prog_compiler_wl_GCJ='-Wl,';; 16002 esac 16003 ;; 16004 16005 sunos4*) 16006 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16007 lt_prog_compiler_pic_GCJ='-PIC' 16008 lt_prog_compiler_static_GCJ='-Bstatic' 16009 ;; 16010 16011 sysv4 | sysv4.2uw2* | sysv4.3*) 16012 lt_prog_compiler_wl_GCJ='-Wl,' 16013 lt_prog_compiler_pic_GCJ='-KPIC' 16014 lt_prog_compiler_static_GCJ='-Bstatic' 16015 ;; 16016 16017 sysv4*MP*) 16018 if test -d /usr/nec ;then 16019 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16020 lt_prog_compiler_static_GCJ='-Bstatic' 16021 fi 16022 ;; 16023 16024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16025 lt_prog_compiler_wl_GCJ='-Wl,' 16026 lt_prog_compiler_pic_GCJ='-KPIC' 16027 lt_prog_compiler_static_GCJ='-Bstatic' 16028 ;; 16029 16030 unicos*) 16031 lt_prog_compiler_wl_GCJ='-Wl,' 16032 lt_prog_compiler_can_build_shared_GCJ=no 16033 ;; 16034 16035 uts4*) 16036 lt_prog_compiler_pic_GCJ='-pic' 16037 lt_prog_compiler_static_GCJ='-Bstatic' 16038 ;; 16039 16040 *) 16041 lt_prog_compiler_can_build_shared_GCJ=no 16042 ;; 16043 esac 16044 fi 16045 16046{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16047echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16048 16049# 16050# Check to make sure the PIC flag actually works. 16051# 16052if test -n "$lt_prog_compiler_pic_GCJ"; then 16053 16054{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16055echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16056if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16057 echo $ECHO_N "(cached) $ECHO_C" >&6 16058else 16059 lt_prog_compiler_pic_works_GCJ=no 16060 ac_outfile=conftest.$ac_objext 16061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16062 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16063 # Insert the option either (1) after the last *FLAGS variable, or 16064 # (2) before a word containing "conftest.", or (3) at the end. 16065 # Note that $ac_compile itself does not contain backslashes and begins 16066 # with a dollar sign (not a hyphen), so the echo should work correctly. 16067 # The option is referenced via a variable to avoid confusing sed. 16068 lt_compile=`echo "$ac_compile" | $SED \ 16069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16071 -e 's:$: $lt_compiler_flag:'` 16072 (eval echo "\"\$as_me:16072: $lt_compile\"" >&5) 16073 (eval "$lt_compile" 2>conftest.err) 16074 ac_status=$? 16075 cat conftest.err >&5 16076 echo "$as_me:16076: \$? = $ac_status" >&5 16077 if (exit $ac_status) && test -s "$ac_outfile"; then 16078 # The compiler can only warn and ignore the option if not recognized 16079 # So say no if there are warnings other than the usual output. 16080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16083 lt_prog_compiler_pic_works_GCJ=yes 16084 fi 16085 fi 16086 $rm conftest* 16087 16088fi 16089{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16090echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16091 16092if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16093 case $lt_prog_compiler_pic_GCJ in 16094 "" | " "*) ;; 16095 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16096 esac 16097else 16098 lt_prog_compiler_pic_GCJ= 16099 lt_prog_compiler_can_build_shared_GCJ=no 16100fi 16101 16102fi 16103case $host_os in 16104 # For platforms which do not support PIC, -DPIC is meaningless: 16105 *djgpp*) 16106 lt_prog_compiler_pic_GCJ= 16107 ;; 16108 *) 16109 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16110 ;; 16111esac 16112 16113# 16114# Check to make sure the static flag actually works. 16115# 16116wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16117{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16118echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16119if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16120 echo $ECHO_N "(cached) $ECHO_C" >&6 16121else 16122 lt_prog_compiler_static_works_GCJ=no 16123 save_LDFLAGS="$LDFLAGS" 16124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16125 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16127 # The linker can only warn and ignore the option if not recognized 16128 # So say no if there are warnings 16129 if test -s conftest.err; then 16130 # Append any errors to the config.log. 16131 cat conftest.err 1>&5 16132 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16134 if diff conftest.exp conftest.er2 >/dev/null; then 16135 lt_prog_compiler_static_works_GCJ=yes 16136 fi 16137 else 16138 lt_prog_compiler_static_works_GCJ=yes 16139 fi 16140 fi 16141 $rm conftest* 16142 LDFLAGS="$save_LDFLAGS" 16143 16144fi 16145{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16146echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16147 16148if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16149 : 16150else 16151 lt_prog_compiler_static_GCJ= 16152fi 16153 16154 16155{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16156echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16157if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16158 echo $ECHO_N "(cached) $ECHO_C" >&6 16159else 16160 lt_cv_prog_compiler_c_o_GCJ=no 16161 $rm -r conftest 2>/dev/null 16162 mkdir conftest 16163 cd conftest 16164 mkdir out 16165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16166 16167 lt_compiler_flag="-o out/conftest2.$ac_objext" 16168 # Insert the option either (1) after the last *FLAGS variable, or 16169 # (2) before a word containing "conftest.", or (3) at the end. 16170 # Note that $ac_compile itself does not contain backslashes and begins 16171 # with a dollar sign (not a hyphen), so the echo should work correctly. 16172 lt_compile=`echo "$ac_compile" | $SED \ 16173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16175 -e 's:$: $lt_compiler_flag:'` 16176 (eval echo "\"\$as_me:16176: $lt_compile\"" >&5) 16177 (eval "$lt_compile" 2>out/conftest.err) 16178 ac_status=$? 16179 cat out/conftest.err >&5 16180 echo "$as_me:16180: \$? = $ac_status" >&5 16181 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16182 then 16183 # The compiler can only warn and ignore the option if not recognized 16184 # So say no if there are warnings 16185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16188 lt_cv_prog_compiler_c_o_GCJ=yes 16189 fi 16190 fi 16191 chmod u+w . 2>&5 16192 $rm conftest* 16193 # SGI C++ compiler will create directory out/ii_files/ for 16194 # template instantiation 16195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16196 $rm out/* && rmdir out 16197 cd .. 16198 rmdir conftest 16199 $rm conftest* 16200 16201fi 16202{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16203echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16204 16205 16206hard_links="nottested" 16207if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16208 # do not overwrite the value of need_locks provided by the user 16209 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16210echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16211 hard_links=yes 16212 $rm conftest* 16213 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16214 touch conftest.a 16215 ln conftest.a conftest.b 2>&5 || hard_links=no 16216 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16217 { echo "$as_me:$LINENO: result: $hard_links" >&5 16218echo "${ECHO_T}$hard_links" >&6; } 16219 if test "$hard_links" = no; then 16220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16221echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16222 need_locks=warn 16223 fi 16224else 16225 need_locks=no 16226fi 16227 16228{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16229echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16230 16231 runpath_var= 16232 allow_undefined_flag_GCJ= 16233 enable_shared_with_static_runtimes_GCJ=no 16234 archive_cmds_GCJ= 16235 archive_expsym_cmds_GCJ= 16236 old_archive_From_new_cmds_GCJ= 16237 old_archive_from_expsyms_cmds_GCJ= 16238 export_dynamic_flag_spec_GCJ= 16239 whole_archive_flag_spec_GCJ= 16240 thread_safe_flag_spec_GCJ= 16241 hardcode_libdir_flag_spec_GCJ= 16242 hardcode_libdir_flag_spec_ld_GCJ= 16243 hardcode_libdir_separator_GCJ= 16244 hardcode_direct_GCJ=no 16245 hardcode_minus_L_GCJ=no 16246 hardcode_shlibpath_var_GCJ=unsupported 16247 link_all_deplibs_GCJ=unknown 16248 hardcode_automatic_GCJ=no 16249 module_cmds_GCJ= 16250 module_expsym_cmds_GCJ= 16251 always_export_symbols_GCJ=no 16252 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16253 # include_expsyms should be a list of space-separated symbols to be *always* 16254 # included in the symbol list 16255 include_expsyms_GCJ= 16256 # exclude_expsyms can be an extended regexp of symbols to exclude 16257 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16259 # as well as any symbol that contains `d'. 16260 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16262 # platforms (ab)use it in PIC code, but their linkers get confused if 16263 # the symbol is explicitly referenced. Since portable code cannot 16264 # rely on this symbol name, it's probably fine to never include it in 16265 # preloaded symbol tables. 16266 extract_expsyms_cmds= 16267 # Just being paranoid about ensuring that cc_basename is set. 16268 for cc_temp in $compiler""; do 16269 case $cc_temp in 16270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16272 \-*) ;; 16273 *) break;; 16274 esac 16275done 16276cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16277 16278 case $host_os in 16279 cygwin* | mingw* | pw32*) 16280 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16281 # When not using gcc, we currently assume that we are using 16282 # Microsoft Visual C++. 16283 if test "$GCC" != yes; then 16284 with_gnu_ld=no 16285 fi 16286 ;; 16287 interix*) 16288 # we just hope/assume this is gcc and not c89 (= MSVC++) 16289 with_gnu_ld=yes 16290 ;; 16291 openbsd*) 16292 with_gnu_ld=no 16293 ;; 16294 esac 16295 16296 ld_shlibs_GCJ=yes 16297 if test "$with_gnu_ld" = yes; then 16298 # If archive_cmds runs LD, not CC, wlarc should be empty 16299 wlarc='${wl}' 16300 16301 # Set some defaults for GNU ld with shared library support. These 16302 # are reset later if shared libraries are not supported. Putting them 16303 # here allows them to be overridden if necessary. 16304 runpath_var=LD_RUN_PATH 16305 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16306 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16307 # ancient GNU ld didn't support --whole-archive et. al. 16308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16309 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16310 else 16311 whole_archive_flag_spec_GCJ= 16312 fi 16313 supports_anon_versioning=no 16314 case `$LD -v 2>/dev/null` in 16315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16318 *\ 2.11.*) ;; # other 2.11 versions 16319 *) supports_anon_versioning=yes ;; 16320 esac 16321 16322 # See if GNU ld supports shared libraries. 16323 case $host_os in 16324 aix3* | aix4* | aix5*) 16325 # On AIX/PPC, the GNU linker is very broken 16326 if test "$host_cpu" != ia64; then 16327 ld_shlibs_GCJ=no 16328 cat <<EOF 1>&2 16329 16330*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16331*** to be unable to reliably create shared libraries on AIX. 16332*** Therefore, libtool is disabling shared libraries support. If you 16333*** really care for shared libraries, you may want to modify your PATH 16334*** so that a non-GNU linker is found, and then restart. 16335 16336EOF 16337 fi 16338 ;; 16339 16340 amigaos*) 16341 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)' 16342 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16343 hardcode_minus_L_GCJ=yes 16344 16345 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16346 # that the semantics of dynamic libraries on AmigaOS, at least up 16347 # to version 4, is to share data among multiple programs linked 16348 # with the same dynamic library. Since this doesn't match the 16349 # behavior of shared libraries on other platforms, we can't use 16350 # them. 16351 ld_shlibs_GCJ=no 16352 ;; 16353 16354 beos*) 16355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16356 allow_undefined_flag_GCJ=unsupported 16357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16358 # support --undefined. This deserves some investigation. FIXME 16359 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16360 else 16361 ld_shlibs_GCJ=no 16362 fi 16363 ;; 16364 16365 cygwin* | mingw* | pw32*) 16366 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16367 # as there is no search path for DLLs. 16368 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16369 allow_undefined_flag_GCJ=unsupported 16370 always_export_symbols_GCJ=no 16371 enable_shared_with_static_runtimes_GCJ=yes 16372 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16373 16374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16376 # If the export-symbols file already is a .def file (1st line 16377 # is EXPORTS), use it as is; otherwise, prepend... 16378 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16379 cp $export_symbols $output_objdir/$soname.def; 16380 else 16381 echo EXPORTS > $output_objdir/$soname.def; 16382 cat $export_symbols >> $output_objdir/$soname.def; 16383 fi~ 16384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16385 else 16386 ld_shlibs_GCJ=no 16387 fi 16388 ;; 16389 16390 interix3*) 16391 hardcode_direct_GCJ=no 16392 hardcode_shlibpath_var_GCJ=no 16393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16394 export_dynamic_flag_spec_GCJ='${wl}-E' 16395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16396 # Instead, shared libraries are loaded at an image base (0x10000000 by 16397 # default) and relocated if they conflict, which is a slow very memory 16398 # consuming and fragmenting process. To avoid this, we pick a random, 16399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16400 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16401 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' 16402 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' 16403 ;; 16404 16405 linux*) 16406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16407 tmp_addflag= 16408 case $cc_basename,$host_cpu in 16409 pgcc*) # Portland Group C compiler 16410 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' 16411 tmp_addflag=' $pic_flag' 16412 ;; 16413 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16414 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' 16415 tmp_addflag=' $pic_flag -Mnomain' ;; 16416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16417 tmp_addflag=' -i_dynamic' ;; 16418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16419 tmp_addflag=' -i_dynamic -nofor_main' ;; 16420 ifc* | ifort*) # Intel Fortran compiler 16421 tmp_addflag=' -nofor_main' ;; 16422 esac 16423 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16424 16425 if test $supports_anon_versioning = yes; then 16426 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16428 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16429 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16430 fi 16431 else 16432 ld_shlibs_GCJ=no 16433 fi 16434 ;; 16435 16436 netbsd*) 16437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16438 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16439 wlarc= 16440 else 16441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16442 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16443 fi 16444 ;; 16445 16446 solaris*) 16447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16448 ld_shlibs_GCJ=no 16449 cat <<EOF 1>&2 16450 16451*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16452*** create shared libraries on Solaris systems. Therefore, libtool 16453*** is disabling shared libraries support. We urge you to upgrade GNU 16454*** binutils to release 2.9.1 or newer. Another option is to modify 16455*** your PATH or compiler configuration so that the native linker is 16456*** used, and then restart. 16457 16458EOF 16459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16462 else 16463 ld_shlibs_GCJ=no 16464 fi 16465 ;; 16466 16467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16468 case `$LD -v 2>&1` in 16469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16470 ld_shlibs_GCJ=no 16471 cat <<_LT_EOF 1>&2 16472 16473*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16474*** reliably create shared libraries on SCO systems. Therefore, libtool 16475*** is disabling shared libraries support. We urge you to upgrade GNU 16476*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16477*** your PATH or compiler configuration so that the native linker is 16478*** used, and then restart. 16479 16480_LT_EOF 16481 ;; 16482 *) 16483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16484 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16486 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16487 else 16488 ld_shlibs_GCJ=no 16489 fi 16490 ;; 16491 esac 16492 ;; 16493 16494 sunos4*) 16495 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16496 wlarc= 16497 hardcode_direct_GCJ=yes 16498 hardcode_shlibpath_var_GCJ=no 16499 ;; 16500 16501 *) 16502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16505 else 16506 ld_shlibs_GCJ=no 16507 fi 16508 ;; 16509 esac 16510 16511 if test "$ld_shlibs_GCJ" = no; then 16512 runpath_var= 16513 hardcode_libdir_flag_spec_GCJ= 16514 export_dynamic_flag_spec_GCJ= 16515 whole_archive_flag_spec_GCJ= 16516 fi 16517 else 16518 # PORTME fill in a description of your system's linker (not GNU ld) 16519 case $host_os in 16520 aix3*) 16521 allow_undefined_flag_GCJ=unsupported 16522 always_export_symbols_GCJ=yes 16523 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' 16524 # Note: this linker hardcodes the directories in LIBPATH if there 16525 # are no directories specified by -L. 16526 hardcode_minus_L_GCJ=yes 16527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16528 # Neither direct hardcoding nor static linking is supported with a 16529 # broken collect2. 16530 hardcode_direct_GCJ=unsupported 16531 fi 16532 ;; 16533 16534 aix4* | aix5*) 16535 if test "$host_cpu" = ia64; then 16536 # On IA64, the linker does run time linking by default, so we don't 16537 # have to do anything special. 16538 aix_use_runtimelinking=no 16539 exp_sym_flag='-Bexport' 16540 no_entry_flag="" 16541 else 16542 # If we're using GNU nm, then we don't want the "-C" option. 16543 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16544 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16545 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' 16546 else 16547 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' 16548 fi 16549 aix_use_runtimelinking=no 16550 16551 # Test if we are trying to use run time linking or normal 16552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16553 # need to do runtime linking. 16554 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16555 for ld_flag in $LDFLAGS; do 16556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16557 aix_use_runtimelinking=yes 16558 break 16559 fi 16560 done 16561 ;; 16562 esac 16563 16564 exp_sym_flag='-bexport' 16565 no_entry_flag='-bnoentry' 16566 fi 16567 16568 # When large executables or shared objects are built, AIX ld can 16569 # have problems creating the table of contents. If linking a library 16570 # or program results in "error TOC overflow" add -mminimal-toc to 16571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16573 16574 archive_cmds_GCJ='' 16575 hardcode_direct_GCJ=yes 16576 hardcode_libdir_separator_GCJ=':' 16577 link_all_deplibs_GCJ=yes 16578 16579 if test "$GCC" = yes; then 16580 case $host_os in aix4.[012]|aix4.[012].*) 16581 # We only want to do this on AIX 4.2 and lower, the check 16582 # below for broken collect2 doesn't work under 4.3+ 16583 collect2name=`${CC} -print-prog-name=collect2` 16584 if test -f "$collect2name" && \ 16585 strings "$collect2name" | grep resolve_lib_name >/dev/null 16586 then 16587 # We have reworked collect2 16588 hardcode_direct_GCJ=yes 16589 else 16590 # We have old collect2 16591 hardcode_direct_GCJ=unsupported 16592 # It fails to find uninstalled libraries when the uninstalled 16593 # path is not listed in the libpath. Setting hardcode_minus_L 16594 # to unsupported forces relinking 16595 hardcode_minus_L_GCJ=yes 16596 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16597 hardcode_libdir_separator_GCJ= 16598 fi 16599 ;; 16600 esac 16601 shared_flag='-shared' 16602 if test "$aix_use_runtimelinking" = yes; then 16603 shared_flag="$shared_flag "'${wl}-G' 16604 fi 16605 else 16606 # not using gcc 16607 if test "$host_cpu" = ia64; then 16608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16609 # chokes on -Wl,-G. The following line is correct: 16610 shared_flag='-G' 16611 else 16612 if test "$aix_use_runtimelinking" = yes; then 16613 shared_flag='${wl}-G' 16614 else 16615 shared_flag='${wl}-bM:SRE' 16616 fi 16617 fi 16618 fi 16619 16620 # It seems that -bexpall does not export symbols beginning with 16621 # underscore (_), so it is better to generate a list of symbols to export. 16622 always_export_symbols_GCJ=yes 16623 if test "$aix_use_runtimelinking" = yes; then 16624 # Warning - without using the other runtime loading flags (-brtl), 16625 # -berok will link without error, but may produce a broken library. 16626 allow_undefined_flag_GCJ='-berok' 16627 # Determine the default libpath from the value encoded in an empty executable. 16628 cat >conftest.$ac_ext <<_ACEOF 16629/* confdefs.h. */ 16630_ACEOF 16631cat confdefs.h >>conftest.$ac_ext 16632cat >>conftest.$ac_ext <<_ACEOF 16633/* end confdefs.h. */ 16634 16635int 16636main () 16637{ 16638 16639 ; 16640 return 0; 16641} 16642_ACEOF 16643rm -f conftest.$ac_objext conftest$ac_exeext 16644if { (ac_try="$ac_link" 16645case "(($ac_try" in 16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16647 *) ac_try_echo=$ac_try;; 16648esac 16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16650 (eval "$ac_link") 2>conftest.er1 16651 ac_status=$? 16652 grep -v '^ *+' conftest.er1 >conftest.err 16653 rm -f conftest.er1 16654 cat conftest.err >&5 16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16656 (exit $ac_status); } && { 16657 test -z "$ac_c_werror_flag" || 16658 test ! -s conftest.err 16659 } && test -s conftest$ac_exeext && 16660 $as_test_x conftest$ac_exeext; then 16661 16662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16663}'` 16664# Check for a 64-bit object if we didn't find anything. 16665if 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; } 16666}'`; fi 16667else 16668 echo "$as_me: failed program was:" >&5 16669sed 's/^/| /' conftest.$ac_ext >&5 16670 16671 16672fi 16673 16674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16675 conftest$ac_exeext conftest.$ac_ext 16676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16677 16678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16679 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" 16680 else 16681 if test "$host_cpu" = ia64; then 16682 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16683 allow_undefined_flag_GCJ="-z nodefs" 16684 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" 16685 else 16686 # Determine the default libpath from the value encoded in an empty executable. 16687 cat >conftest.$ac_ext <<_ACEOF 16688/* confdefs.h. */ 16689_ACEOF 16690cat confdefs.h >>conftest.$ac_ext 16691cat >>conftest.$ac_ext <<_ACEOF 16692/* end confdefs.h. */ 16693 16694int 16695main () 16696{ 16697 16698 ; 16699 return 0; 16700} 16701_ACEOF 16702rm -f conftest.$ac_objext conftest$ac_exeext 16703if { (ac_try="$ac_link" 16704case "(($ac_try" in 16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16706 *) ac_try_echo=$ac_try;; 16707esac 16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16709 (eval "$ac_link") 2>conftest.er1 16710 ac_status=$? 16711 grep -v '^ *+' conftest.er1 >conftest.err 16712 rm -f conftest.er1 16713 cat conftest.err >&5 16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16715 (exit $ac_status); } && { 16716 test -z "$ac_c_werror_flag" || 16717 test ! -s conftest.err 16718 } && test -s conftest$ac_exeext && 16719 $as_test_x conftest$ac_exeext; then 16720 16721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16722}'` 16723# Check for a 64-bit object if we didn't find anything. 16724if 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; } 16725}'`; fi 16726else 16727 echo "$as_me: failed program was:" >&5 16728sed 's/^/| /' conftest.$ac_ext >&5 16729 16730 16731fi 16732 16733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16734 conftest$ac_exeext conftest.$ac_ext 16735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16736 16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16738 # Warning - without using the other run time loading flags, 16739 # -berok will link without error, but may produce a broken library. 16740 no_undefined_flag_GCJ=' ${wl}-bernotok' 16741 allow_undefined_flag_GCJ=' ${wl}-berok' 16742 # Exported symbols can be pulled into shared objects from archives 16743 whole_archive_flag_spec_GCJ='$convenience' 16744 archive_cmds_need_lc_GCJ=yes 16745 # This is similar to how AIX traditionally builds its shared libraries. 16746 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' 16747 fi 16748 fi 16749 ;; 16750 16751 amigaos*) 16752 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)' 16753 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16754 hardcode_minus_L_GCJ=yes 16755 # see comment about different semantics on the GNU ld section 16756 ld_shlibs_GCJ=no 16757 ;; 16758 16759 bsdi[45]*) 16760 export_dynamic_flag_spec_GCJ=-rdynamic 16761 ;; 16762 16763 cygwin* | mingw* | pw32*) 16764 # When not using gcc, we currently assume that we are using 16765 # Microsoft Visual C++. 16766 # hardcode_libdir_flag_spec is actually meaningless, as there is 16767 # no search path for DLLs. 16768 hardcode_libdir_flag_spec_GCJ=' ' 16769 allow_undefined_flag_GCJ=unsupported 16770 # Tell ltmain to make .lib files, not .a files. 16771 libext=lib 16772 # Tell ltmain to make .dll files, not .so files. 16773 shrext_cmds=".dll" 16774 # FIXME: Setting linknames here is a bad hack. 16775 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16776 # The linker will automatically build a .lib file if we build a DLL. 16777 old_archive_From_new_cmds_GCJ='true' 16778 # FIXME: Should let the user specify the lib program. 16779 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16780 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16781 enable_shared_with_static_runtimes_GCJ=yes 16782 ;; 16783 16784 darwin* | rhapsody*) 16785 case $host_os in 16786 rhapsody* | darwin1.[012]) 16787 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16788 ;; 16789 *) # Darwin 1.3 on 16790 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16791 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16792 else 16793 case ${MACOSX_DEPLOYMENT_TARGET} in 16794 10.[012]) 16795 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16796 ;; 16797 10.*) 16798 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16799 ;; 16800 esac 16801 fi 16802 ;; 16803 esac 16804 archive_cmds_need_lc_GCJ=no 16805 hardcode_direct_GCJ=no 16806 hardcode_automatic_GCJ=yes 16807 hardcode_shlibpath_var_GCJ=unsupported 16808 whole_archive_flag_spec_GCJ='' 16809 link_all_deplibs_GCJ=yes 16810 if test "$GCC" = yes ; then 16811 output_verbose_link_cmd='echo' 16812 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16813 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16815 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}' 16816 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}' 16817 else 16818 case $cc_basename in 16819 xlc*) 16820 output_verbose_link_cmd='echo' 16821 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16822 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16824 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}' 16825 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}' 16826 ;; 16827 *) 16828 ld_shlibs_GCJ=no 16829 ;; 16830 esac 16831 fi 16832 ;; 16833 16834 dgux*) 16835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16836 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16837 hardcode_shlibpath_var_GCJ=no 16838 ;; 16839 16840 freebsd1*) 16841 ld_shlibs_GCJ=no 16842 ;; 16843 16844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16845 # support. Future versions do this automatically, but an explicit c++rt0.o 16846 # does not break anything, and helps significantly (at the cost of a little 16847 # extra space). 16848 freebsd2.2*) 16849 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16850 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16851 hardcode_direct_GCJ=yes 16852 hardcode_shlibpath_var_GCJ=no 16853 ;; 16854 16855 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16856 freebsd2*) 16857 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16858 hardcode_direct_GCJ=yes 16859 hardcode_minus_L_GCJ=yes 16860 hardcode_shlibpath_var_GCJ=no 16861 ;; 16862 16863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16864 freebsd* | kfreebsd*-gnu | dragonfly*) 16865 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16866 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16867 hardcode_direct_GCJ=yes 16868 hardcode_shlibpath_var_GCJ=no 16869 ;; 16870 16871 hpux9*) 16872 if test "$GCC" = yes; then 16873 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' 16874 else 16875 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' 16876 fi 16877 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16878 hardcode_libdir_separator_GCJ=: 16879 hardcode_direct_GCJ=yes 16880 16881 # hardcode_minus_L: Not really in the search PATH, 16882 # but as the default location of the library. 16883 hardcode_minus_L_GCJ=yes 16884 export_dynamic_flag_spec_GCJ='${wl}-E' 16885 ;; 16886 16887 hpux10*) 16888 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16889 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16890 else 16891 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16892 fi 16893 if test "$with_gnu_ld" = no; then 16894 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16895 hardcode_libdir_separator_GCJ=: 16896 16897 hardcode_direct_GCJ=yes 16898 export_dynamic_flag_spec_GCJ='${wl}-E' 16899 16900 # hardcode_minus_L: Not really in the search PATH, 16901 # but as the default location of the library. 16902 hardcode_minus_L_GCJ=yes 16903 fi 16904 ;; 16905 16906 hpux11*) 16907 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16908 case $host_cpu in 16909 hppa*64*) 16910 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16911 ;; 16912 ia64*) 16913 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16914 ;; 16915 *) 16916 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16917 ;; 16918 esac 16919 else 16920 case $host_cpu in 16921 hppa*64*) 16922 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16923 ;; 16924 ia64*) 16925 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16926 ;; 16927 *) 16928 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16929 ;; 16930 esac 16931 fi 16932 if test "$with_gnu_ld" = no; then 16933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16934 hardcode_libdir_separator_GCJ=: 16935 16936 case $host_cpu in 16937 hppa*64*|ia64*) 16938 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16939 hardcode_direct_GCJ=no 16940 hardcode_shlibpath_var_GCJ=no 16941 ;; 16942 *) 16943 hardcode_direct_GCJ=yes 16944 export_dynamic_flag_spec_GCJ='${wl}-E' 16945 16946 # hardcode_minus_L: Not really in the search PATH, 16947 # but as the default location of the library. 16948 hardcode_minus_L_GCJ=yes 16949 ;; 16950 esac 16951 fi 16952 ;; 16953 16954 irix5* | irix6* | nonstopux*) 16955 if test "$GCC" = yes; then 16956 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' 16957 else 16958 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' 16959 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16960 fi 16961 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16962 hardcode_libdir_separator_GCJ=: 16963 link_all_deplibs_GCJ=yes 16964 ;; 16965 16966 netbsd*) 16967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16969 else 16970 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16971 fi 16972 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16973 hardcode_direct_GCJ=yes 16974 hardcode_shlibpath_var_GCJ=no 16975 ;; 16976 16977 newsos6) 16978 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16979 hardcode_direct_GCJ=yes 16980 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16981 hardcode_libdir_separator_GCJ=: 16982 hardcode_shlibpath_var_GCJ=no 16983 ;; 16984 16985 openbsd*) 16986 hardcode_direct_GCJ=yes 16987 hardcode_shlibpath_var_GCJ=no 16988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16989 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16990 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16992 export_dynamic_flag_spec_GCJ='${wl}-E' 16993 else 16994 case $host_os in 16995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16997 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16998 ;; 16999 *) 17000 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17002 ;; 17003 esac 17004 fi 17005 ;; 17006 17007 os2*) 17008 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17009 hardcode_minus_L_GCJ=yes 17010 allow_undefined_flag_GCJ=unsupported 17011 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' 17012 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17013 ;; 17014 17015 osf3*) 17016 if test "$GCC" = yes; then 17017 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17018 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' 17019 else 17020 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17021 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' 17022 fi 17023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17024 hardcode_libdir_separator_GCJ=: 17025 ;; 17026 17027 osf4* | osf5*) # as osf3* with the addition of -msym flag 17028 if test "$GCC" = yes; then 17029 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17030 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' 17031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17032 else 17033 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17034 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' 17035 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~ 17036 $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' 17037 17038 # Both c and cxx compiler support -rpath directly 17039 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17040 fi 17041 hardcode_libdir_separator_GCJ=: 17042 ;; 17043 17044 solaris*) 17045 no_undefined_flag_GCJ=' -z text' 17046 if test "$GCC" = yes; then 17047 wlarc='${wl}' 17048 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17051 else 17052 wlarc='' 17053 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17054 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17056 fi 17057 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17058 hardcode_shlibpath_var_GCJ=no 17059 case $host_os in 17060 solaris2.[0-5] | solaris2.[0-5].*) ;; 17061 *) 17062 # The compiler driver will combine linker options so we 17063 # cannot just pass the convience library names through 17064 # without $wl, iff we do not link with $LD. 17065 # Luckily, gcc supports the same syntax we need for Sun Studio. 17066 # Supported since Solaris 2.6 (maybe 2.5.1?) 17067 case $wlarc in 17068 '') 17069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17070 *) 17071 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' ;; 17072 esac ;; 17073 esac 17074 link_all_deplibs_GCJ=yes 17075 ;; 17076 17077 sunos4*) 17078 if test "x$host_vendor" = xsequent; then 17079 # Use $CC to link under sequent, because it throws in some extra .o 17080 # files that make .init and .fini sections work. 17081 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17082 else 17083 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17084 fi 17085 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17086 hardcode_direct_GCJ=yes 17087 hardcode_minus_L_GCJ=yes 17088 hardcode_shlibpath_var_GCJ=no 17089 ;; 17090 17091 sysv4) 17092 case $host_vendor in 17093 sni) 17094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17095 hardcode_direct_GCJ=yes # is this really true??? 17096 ;; 17097 siemens) 17098 ## LD is ld it makes a PLAMLIB 17099 ## CC just makes a GrossModule. 17100 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17101 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17102 hardcode_direct_GCJ=no 17103 ;; 17104 motorola) 17105 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17106 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17107 ;; 17108 esac 17109 runpath_var='LD_RUN_PATH' 17110 hardcode_shlibpath_var_GCJ=no 17111 ;; 17112 17113 sysv4.3*) 17114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17115 hardcode_shlibpath_var_GCJ=no 17116 export_dynamic_flag_spec_GCJ='-Bexport' 17117 ;; 17118 17119 sysv4*MP*) 17120 if test -d /usr/nec; then 17121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17122 hardcode_shlibpath_var_GCJ=no 17123 runpath_var=LD_RUN_PATH 17124 hardcode_runpath_var=yes 17125 ld_shlibs_GCJ=yes 17126 fi 17127 ;; 17128 17129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17130 no_undefined_flag_GCJ='${wl}-z,text' 17131 archive_cmds_need_lc_GCJ=no 17132 hardcode_shlibpath_var_GCJ=no 17133 runpath_var='LD_RUN_PATH' 17134 17135 if test "$GCC" = yes; then 17136 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17137 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17138 else 17139 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17140 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17141 fi 17142 ;; 17143 17144 sysv5* | sco3.2v5* | sco5v6*) 17145 # Note: We can NOT use -z defs as we might desire, because we do not 17146 # link with -lc, and that would cause any symbols used from libc to 17147 # always be unresolved, which means just about no library would 17148 # ever link correctly. If we're not using GNU ld we use -z text 17149 # though, which does catch some bad symbols but isn't as heavy-handed 17150 # as -z defs. 17151 no_undefined_flag_GCJ='${wl}-z,text' 17152 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17153 archive_cmds_need_lc_GCJ=no 17154 hardcode_shlibpath_var_GCJ=no 17155 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17156 hardcode_libdir_separator_GCJ=':' 17157 link_all_deplibs_GCJ=yes 17158 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17159 runpath_var='LD_RUN_PATH' 17160 17161 if test "$GCC" = yes; then 17162 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17163 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17164 else 17165 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17166 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17167 fi 17168 ;; 17169 17170 uts4*) 17171 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17172 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17173 hardcode_shlibpath_var_GCJ=no 17174 ;; 17175 17176 *) 17177 ld_shlibs_GCJ=no 17178 ;; 17179 esac 17180 fi 17181 17182{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17183echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17184test "$ld_shlibs_GCJ" = no && can_build_shared=no 17185 17186# 17187# Do we need to explicitly link libc? 17188# 17189case "x$archive_cmds_need_lc_GCJ" in 17190x|xyes) 17191 # Assume -lc should be added 17192 archive_cmds_need_lc_GCJ=yes 17193 17194 if test "$enable_shared" = yes && test "$GCC" = yes; then 17195 case $archive_cmds_GCJ in 17196 *'~'*) 17197 # FIXME: we may have to deal with multi-command sequences. 17198 ;; 17199 '$CC '*) 17200 # Test whether the compiler implicitly links with -lc since on some 17201 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17202 # to ld, don't add -lc before -lgcc. 17203 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17205 $rm conftest* 17206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17207 17208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17209 (eval $ac_compile) 2>&5 17210 ac_status=$? 17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17212 (exit $ac_status); } 2>conftest.err; then 17213 soname=conftest 17214 lib=conftest 17215 libobjs=conftest.$ac_objext 17216 deplibs= 17217 wl=$lt_prog_compiler_wl_GCJ 17218 pic_flag=$lt_prog_compiler_pic_GCJ 17219 compiler_flags=-v 17220 linker_flags=-v 17221 verstring= 17222 output_objdir=. 17223 libname=conftest 17224 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17225 allow_undefined_flag_GCJ= 17226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17227 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17228 ac_status=$? 17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17230 (exit $ac_status); } 17231 then 17232 archive_cmds_need_lc_GCJ=no 17233 else 17234 archive_cmds_need_lc_GCJ=yes 17235 fi 17236 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17237 else 17238 cat conftest.err 1>&5 17239 fi 17240 $rm conftest* 17241 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17242echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17243 ;; 17244 esac 17245 fi 17246 ;; 17247esac 17248 17249{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17250echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17251library_names_spec= 17252libname_spec='lib$name' 17253soname_spec= 17254shrext_cmds=".so" 17255postinstall_cmds= 17256postuninstall_cmds= 17257finish_cmds= 17258finish_eval= 17259shlibpath_var= 17260shlibpath_overrides_runpath=unknown 17261version_type=none 17262dynamic_linker="$host_os ld.so" 17263sys_lib_dlsearch_path_spec="/lib /usr/lib" 17264if test "$GCC" = yes; then 17265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17266 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17267 # if the path contains ";" then we assume it to be the separator 17268 # otherwise default to the standard path separator (i.e. ":") - it is 17269 # assumed that no part of a normal pathname contains ";" but that should 17270 # okay in the real world where ";" in dirpaths is itself problematic. 17271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17272 else 17273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17274 fi 17275else 17276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17277fi 17278need_lib_prefix=unknown 17279hardcode_into_libs=no 17280 17281# when you set need_version to no, make sure it does not cause -set_version 17282# flags to be left without arguments 17283need_version=unknown 17284 17285case $host_os in 17286aix3*) 17287 version_type=linux 17288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17289 shlibpath_var=LIBPATH 17290 17291 # AIX 3 has no versioning support, so we append a major version to the name. 17292 soname_spec='${libname}${release}${shared_ext}$major' 17293 ;; 17294 17295aix4* | aix5*) 17296 version_type=linux 17297 need_lib_prefix=no 17298 need_version=no 17299 hardcode_into_libs=yes 17300 if test "$host_cpu" = ia64; then 17301 # AIX 5 supports IA64 17302 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17303 shlibpath_var=LD_LIBRARY_PATH 17304 else 17305 # With GCC up to 2.95.x, collect2 would create an import file 17306 # for dependence libraries. The import file would start with 17307 # the line `#! .'. This would cause the generated library to 17308 # depend on `.', always an invalid library. This was fixed in 17309 # development snapshots of GCC prior to 3.0. 17310 case $host_os in 17311 aix4 | aix4.[01] | aix4.[01].*) 17312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17313 echo ' yes ' 17314 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17315 : 17316 else 17317 can_build_shared=no 17318 fi 17319 ;; 17320 esac 17321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17322 # soname into executable. Probably we can add versioning support to 17323 # collect2, so additional links can be useful in future. 17324 if test "$aix_use_runtimelinking" = yes; then 17325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17326 # instead of lib<name>.a to let people know that these are not 17327 # typical AIX shared libraries. 17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17329 else 17330 # We preserve .a as extension for shared libraries through AIX4.2 17331 # and later when we are not doing run time linking. 17332 library_names_spec='${libname}${release}.a $libname.a' 17333 soname_spec='${libname}${release}${shared_ext}$major' 17334 fi 17335 shlibpath_var=LIBPATH 17336 fi 17337 ;; 17338 17339amigaos*) 17340 library_names_spec='$libname.ixlibrary $libname.a' 17341 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17342 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' 17343 ;; 17344 17345beos*) 17346 library_names_spec='${libname}${shared_ext}' 17347 dynamic_linker="$host_os ld.so" 17348 shlibpath_var=LIBRARY_PATH 17349 ;; 17350 17351bsdi[45]*) 17352 version_type=linux 17353 need_version=no 17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17355 soname_spec='${libname}${release}${shared_ext}$major' 17356 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17357 shlibpath_var=LD_LIBRARY_PATH 17358 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17359 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17360 # the default ld.so.conf also contains /usr/contrib/lib and 17361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17362 # libtool to hard-code these into programs 17363 ;; 17364 17365cygwin* | mingw* | pw32*) 17366 version_type=windows 17367 shrext_cmds=".dll" 17368 need_version=no 17369 need_lib_prefix=no 17370 17371 case $GCC,$host_os in 17372 yes,cygwin* | yes,mingw* | yes,pw32*) 17373 library_names_spec='$libname.dll.a' 17374 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17375 postinstall_cmds='base_file=`basename \${file}`~ 17376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17377 dldir=$destdir/`dirname \$dlpath`~ 17378 test -d \$dldir || mkdir -p \$dldir~ 17379 $install_prog $dir/$dlname \$dldir/$dlname~ 17380 chmod a+x \$dldir/$dlname' 17381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17382 dlpath=$dir/\$dldll~ 17383 $rm \$dlpath' 17384 shlibpath_overrides_runpath=yes 17385 17386 case $host_os in 17387 cygwin*) 17388 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17389 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17390 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17391 ;; 17392 mingw*) 17393 # MinGW DLLs use traditional 'lib' prefix 17394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17395 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17396 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17397 # It is most probably a Windows format PATH printed by 17398 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17399 # path with ; separators, and with drive letters. We can handle the 17400 # drive letters (cygwin fileutils understands them), so leave them, 17401 # especially as we might pass files found there to a mingw objdump, 17402 # which wouldn't understand a cygwinified path. Ahh. 17403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17404 else 17405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17406 fi 17407 ;; 17408 pw32*) 17409 # pw32 DLLs use 'pw' prefix rather than 'lib' 17410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17411 ;; 17412 esac 17413 ;; 17414 17415 *) 17416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17417 ;; 17418 esac 17419 dynamic_linker='Win32 ld.exe' 17420 # FIXME: first we should search . and the directory the executable is in 17421 shlibpath_var=PATH 17422 ;; 17423 17424darwin* | rhapsody*) 17425 dynamic_linker="$host_os dyld" 17426 version_type=darwin 17427 need_lib_prefix=no 17428 need_version=no 17429 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17430 soname_spec='${libname}${release}${major}$shared_ext' 17431 shlibpath_overrides_runpath=yes 17432 shlibpath_var=DYLD_LIBRARY_PATH 17433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17434 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17435 if test "$GCC" = yes; then 17436 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"` 17437 else 17438 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17439 fi 17440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17441 ;; 17442 17443dgux*) 17444 version_type=linux 17445 need_lib_prefix=no 17446 need_version=no 17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17448 soname_spec='${libname}${release}${shared_ext}$major' 17449 shlibpath_var=LD_LIBRARY_PATH 17450 ;; 17451 17452freebsd1*) 17453 dynamic_linker=no 17454 ;; 17455 17456kfreebsd*-gnu) 17457 version_type=linux 17458 need_lib_prefix=no 17459 need_version=no 17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17461 soname_spec='${libname}${release}${shared_ext}$major' 17462 shlibpath_var=LD_LIBRARY_PATH 17463 shlibpath_overrides_runpath=no 17464 hardcode_into_libs=yes 17465 dynamic_linker='GNU ld.so' 17466 ;; 17467 17468freebsd* | dragonfly*) 17469 # DragonFly does not have aout. When/if they implement a new 17470 # versioning mechanism, adjust this. 17471 if test -x /usr/bin/objformat; then 17472 objformat=`/usr/bin/objformat` 17473 else 17474 case $host_os in 17475 freebsd[123]*) objformat=aout ;; 17476 *) objformat=elf ;; 17477 esac 17478 fi 17479 version_type=freebsd-$objformat 17480 case $version_type in 17481 freebsd-elf*) 17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17483 need_version=no 17484 need_lib_prefix=no 17485 ;; 17486 freebsd-*) 17487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17488 need_version=yes 17489 ;; 17490 esac 17491 shlibpath_var=LD_LIBRARY_PATH 17492 case $host_os in 17493 freebsd2*) 17494 shlibpath_overrides_runpath=yes 17495 ;; 17496 freebsd3.[01]* | freebsdelf3.[01]*) 17497 shlibpath_overrides_runpath=yes 17498 hardcode_into_libs=yes 17499 ;; 17500 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17501 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17502 shlibpath_overrides_runpath=no 17503 hardcode_into_libs=yes 17504 ;; 17505 freebsd*) # from 4.6 on 17506 shlibpath_overrides_runpath=yes 17507 hardcode_into_libs=yes 17508 ;; 17509 esac 17510 ;; 17511 17512gnu*) 17513 version_type=linux 17514 need_lib_prefix=no 17515 need_version=no 17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17517 soname_spec='${libname}${release}${shared_ext}$major' 17518 shlibpath_var=LD_LIBRARY_PATH 17519 hardcode_into_libs=yes 17520 ;; 17521 17522hpux9* | hpux10* | hpux11*) 17523 # Give a soname corresponding to the major version so that dld.sl refuses to 17524 # link against other versions. 17525 version_type=sunos 17526 need_lib_prefix=no 17527 need_version=no 17528 case $host_cpu in 17529 ia64*) 17530 shrext_cmds='.so' 17531 hardcode_into_libs=yes 17532 dynamic_linker="$host_os dld.so" 17533 shlibpath_var=LD_LIBRARY_PATH 17534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17536 soname_spec='${libname}${release}${shared_ext}$major' 17537 if test "X$HPUX_IA64_MODE" = X32; then 17538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17539 else 17540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17541 fi 17542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17543 ;; 17544 hppa*64*) 17545 shrext_cmds='.sl' 17546 hardcode_into_libs=yes 17547 dynamic_linker="$host_os dld.sl" 17548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17551 soname_spec='${libname}${release}${shared_ext}$major' 17552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17554 ;; 17555 *) 17556 shrext_cmds='.sl' 17557 dynamic_linker="$host_os dld.sl" 17558 shlibpath_var=SHLIB_PATH 17559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17561 soname_spec='${libname}${release}${shared_ext}$major' 17562 ;; 17563 esac 17564 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17565 postinstall_cmds='chmod 555 $lib' 17566 ;; 17567 17568interix3*) 17569 version_type=linux 17570 need_lib_prefix=no 17571 need_version=no 17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17573 soname_spec='${libname}${release}${shared_ext}$major' 17574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17575 shlibpath_var=LD_LIBRARY_PATH 17576 shlibpath_overrides_runpath=no 17577 hardcode_into_libs=yes 17578 ;; 17579 17580irix5* | irix6* | nonstopux*) 17581 case $host_os in 17582 nonstopux*) version_type=nonstopux ;; 17583 *) 17584 if test "$lt_cv_prog_gnu_ld" = yes; then 17585 version_type=linux 17586 else 17587 version_type=irix 17588 fi ;; 17589 esac 17590 need_lib_prefix=no 17591 need_version=no 17592 soname_spec='${libname}${release}${shared_ext}$major' 17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17594 case $host_os in 17595 irix5* | nonstopux*) 17596 libsuff= shlibsuff= 17597 ;; 17598 *) 17599 case $LD in # libtool.m4 will add one of these switches to LD 17600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17601 libsuff= shlibsuff= libmagic=32-bit;; 17602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17603 libsuff=32 shlibsuff=N32 libmagic=N32;; 17604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17605 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17606 *) libsuff= shlibsuff= libmagic=never-match;; 17607 esac 17608 ;; 17609 esac 17610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17611 shlibpath_overrides_runpath=no 17612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17614 hardcode_into_libs=yes 17615 ;; 17616 17617# No shared lib support for Linux oldld, aout, or coff. 17618linux*oldld* | linux*aout* | linux*coff*) 17619 dynamic_linker=no 17620 ;; 17621 17622# This must be Linux ELF. 17623linux*) 17624 version_type=linux 17625 need_lib_prefix=no 17626 need_version=no 17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17628 soname_spec='${libname}${release}${shared_ext}$major' 17629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17630 shlibpath_var=LD_LIBRARY_PATH 17631 shlibpath_overrides_runpath=no 17632 # This implies no fast_install, which is unacceptable. 17633 # Some rework will be needed to allow for fast_install 17634 # before this can be enabled. 17635 hardcode_into_libs=yes 17636 17637 # Append ld.so.conf contents to the search path 17638 if test -f /etc/ld.so.conf; then 17639 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' ' '` 17640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17641 fi 17642 17643 # We used to test for /lib/ld.so.1 and disable shared libraries on 17644 # powerpc, because MkLinux only supported shared libraries with the 17645 # GNU dynamic linker. Since this was broken with cross compilers, 17646 # most powerpc-linux boxes support dynamic linking these days and 17647 # people can always --disable-shared, the test was removed, and we 17648 # assume the GNU/Linux dynamic linker is in use. 17649 dynamic_linker='GNU/Linux ld.so' 17650 ;; 17651 17652knetbsd*-gnu) 17653 version_type=linux 17654 need_lib_prefix=no 17655 need_version=no 17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17657 soname_spec='${libname}${release}${shared_ext}$major' 17658 shlibpath_var=LD_LIBRARY_PATH 17659 shlibpath_overrides_runpath=no 17660 hardcode_into_libs=yes 17661 dynamic_linker='GNU ld.so' 17662 ;; 17663 17664netbsd*) 17665 version_type=sunos 17666 need_lib_prefix=no 17667 need_version=no 17668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17671 dynamic_linker='NetBSD (a.out) ld.so' 17672 else 17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17674 soname_spec='${libname}${release}${shared_ext}$major' 17675 dynamic_linker='NetBSD ld.elf_so' 17676 fi 17677 shlibpath_var=LD_LIBRARY_PATH 17678 shlibpath_overrides_runpath=yes 17679 hardcode_into_libs=yes 17680 ;; 17681 17682newsos6) 17683 version_type=linux 17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17685 shlibpath_var=LD_LIBRARY_PATH 17686 shlibpath_overrides_runpath=yes 17687 ;; 17688 17689nto-qnx*) 17690 version_type=linux 17691 need_lib_prefix=no 17692 need_version=no 17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17694 soname_spec='${libname}${release}${shared_ext}$major' 17695 shlibpath_var=LD_LIBRARY_PATH 17696 shlibpath_overrides_runpath=yes 17697 ;; 17698 17699openbsd*) 17700 version_type=sunos 17701 sys_lib_dlsearch_path_spec="/usr/lib" 17702 need_lib_prefix=no 17703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17704 case $host_os in 17705 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17706 *) need_version=no ;; 17707 esac 17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17710 shlibpath_var=LD_LIBRARY_PATH 17711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17712 case $host_os in 17713 openbsd2.[89] | openbsd2.[89].*) 17714 shlibpath_overrides_runpath=no 17715 ;; 17716 *) 17717 shlibpath_overrides_runpath=yes 17718 ;; 17719 esac 17720 else 17721 shlibpath_overrides_runpath=yes 17722 fi 17723 ;; 17724 17725os2*) 17726 libname_spec='$name' 17727 shrext_cmds=".dll" 17728 need_lib_prefix=no 17729 library_names_spec='$libname${shared_ext} $libname.a' 17730 dynamic_linker='OS/2 ld.exe' 17731 shlibpath_var=LIBPATH 17732 ;; 17733 17734osf3* | osf4* | osf5*) 17735 version_type=osf 17736 need_lib_prefix=no 17737 need_version=no 17738 soname_spec='${libname}${release}${shared_ext}$major' 17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17740 shlibpath_var=LD_LIBRARY_PATH 17741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17743 ;; 17744 17745solaris*) 17746 version_type=linux 17747 need_lib_prefix=no 17748 need_version=no 17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17750 soname_spec='${libname}${release}${shared_ext}$major' 17751 shlibpath_var=LD_LIBRARY_PATH 17752 shlibpath_overrides_runpath=yes 17753 hardcode_into_libs=yes 17754 # ldd complains unless libraries are executable 17755 postinstall_cmds='chmod +x $lib' 17756 ;; 17757 17758sunos4*) 17759 version_type=sunos 17760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17762 shlibpath_var=LD_LIBRARY_PATH 17763 shlibpath_overrides_runpath=yes 17764 if test "$with_gnu_ld" = yes; then 17765 need_lib_prefix=no 17766 fi 17767 need_version=yes 17768 ;; 17769 17770sysv4 | sysv4.3*) 17771 version_type=linux 17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17773 soname_spec='${libname}${release}${shared_ext}$major' 17774 shlibpath_var=LD_LIBRARY_PATH 17775 case $host_vendor in 17776 sni) 17777 shlibpath_overrides_runpath=no 17778 need_lib_prefix=no 17779 export_dynamic_flag_spec='${wl}-Blargedynsym' 17780 runpath_var=LD_RUN_PATH 17781 ;; 17782 siemens) 17783 need_lib_prefix=no 17784 ;; 17785 motorola) 17786 need_lib_prefix=no 17787 need_version=no 17788 shlibpath_overrides_runpath=no 17789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17790 ;; 17791 esac 17792 ;; 17793 17794sysv4*MP*) 17795 if test -d /usr/nec ;then 17796 version_type=linux 17797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17798 soname_spec='$libname${shared_ext}.$major' 17799 shlibpath_var=LD_LIBRARY_PATH 17800 fi 17801 ;; 17802 17803sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17804 version_type=freebsd-elf 17805 need_lib_prefix=no 17806 need_version=no 17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17808 soname_spec='${libname}${release}${shared_ext}$major' 17809 shlibpath_var=LD_LIBRARY_PATH 17810 hardcode_into_libs=yes 17811 if test "$with_gnu_ld" = yes; then 17812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17813 shlibpath_overrides_runpath=no 17814 else 17815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17816 shlibpath_overrides_runpath=yes 17817 case $host_os in 17818 sco3.2v5*) 17819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17820 ;; 17821 esac 17822 fi 17823 sys_lib_dlsearch_path_spec='/usr/lib' 17824 ;; 17825 17826uts4*) 17827 version_type=linux 17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17829 soname_spec='${libname}${release}${shared_ext}$major' 17830 shlibpath_var=LD_LIBRARY_PATH 17831 ;; 17832 17833*) 17834 dynamic_linker=no 17835 ;; 17836esac 17837{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17838echo "${ECHO_T}$dynamic_linker" >&6; } 17839test "$dynamic_linker" = no && can_build_shared=no 17840 17841variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17842if test "$GCC" = yes; then 17843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17844fi 17845 17846{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17847echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17848hardcode_action_GCJ= 17849if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17850 test -n "$runpath_var_GCJ" || \ 17851 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17852 17853 # We can hardcode non-existant directories. 17854 if test "$hardcode_direct_GCJ" != no && 17855 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17856 # have to relink, otherwise we might link with an installed library 17857 # when we should be linking with a yet-to-be-installed one 17858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17859 test "$hardcode_minus_L_GCJ" != no; then 17860 # Linking always hardcodes the temporary library directory. 17861 hardcode_action_GCJ=relink 17862 else 17863 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17864 hardcode_action_GCJ=immediate 17865 fi 17866else 17867 # We cannot hardcode anything, or else we can only hardcode existing 17868 # directories. 17869 hardcode_action_GCJ=unsupported 17870fi 17871{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17872echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 17873 17874if test "$hardcode_action_GCJ" = relink; then 17875 # Fast installation is not supported 17876 enable_fast_install=no 17877elif test "$shlibpath_overrides_runpath" = yes || 17878 test "$enable_shared" = no; then 17879 # Fast installation is not necessary 17880 enable_fast_install=needless 17881fi 17882 17883 17884# The else clause should only fire when bootstrapping the 17885# libtool distribution, otherwise you forgot to ship ltmain.sh 17886# with your package, and you will get complaints that there are 17887# no rules to generate ltmain.sh. 17888if test -f "$ltmain"; then 17889 # See if we are running on zsh, and set the options which allow our commands through 17890 # without removal of \ escapes. 17891 if test -n "${ZSH_VERSION+set}" ; then 17892 setopt NO_GLOB_SUBST 17893 fi 17894 # Now quote all the things that may contain metacharacters while being 17895 # careful not to overquote the AC_SUBSTed values. We take copies of the 17896 # variables and quote the copies for generation of the libtool script. 17897 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17898 SED SHELL STRIP \ 17899 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17900 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17901 deplibs_check_method reload_flag reload_cmds need_locks \ 17902 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17903 lt_cv_sys_global_symbol_to_c_name_address \ 17904 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17905 old_postinstall_cmds old_postuninstall_cmds \ 17906 compiler_GCJ \ 17907 CC_GCJ \ 17908 LD_GCJ \ 17909 lt_prog_compiler_wl_GCJ \ 17910 lt_prog_compiler_pic_GCJ \ 17911 lt_prog_compiler_static_GCJ \ 17912 lt_prog_compiler_no_builtin_flag_GCJ \ 17913 export_dynamic_flag_spec_GCJ \ 17914 thread_safe_flag_spec_GCJ \ 17915 whole_archive_flag_spec_GCJ \ 17916 enable_shared_with_static_runtimes_GCJ \ 17917 old_archive_cmds_GCJ \ 17918 old_archive_from_new_cmds_GCJ \ 17919 predep_objects_GCJ \ 17920 postdep_objects_GCJ \ 17921 predeps_GCJ \ 17922 postdeps_GCJ \ 17923 compiler_lib_search_path_GCJ \ 17924 archive_cmds_GCJ \ 17925 archive_expsym_cmds_GCJ \ 17926 postinstall_cmds_GCJ \ 17927 postuninstall_cmds_GCJ \ 17928 old_archive_from_expsyms_cmds_GCJ \ 17929 allow_undefined_flag_GCJ \ 17930 no_undefined_flag_GCJ \ 17931 export_symbols_cmds_GCJ \ 17932 hardcode_libdir_flag_spec_GCJ \ 17933 hardcode_libdir_flag_spec_ld_GCJ \ 17934 hardcode_libdir_separator_GCJ \ 17935 hardcode_automatic_GCJ \ 17936 module_cmds_GCJ \ 17937 module_expsym_cmds_GCJ \ 17938 lt_cv_prog_compiler_c_o_GCJ \ 17939 exclude_expsyms_GCJ \ 17940 include_expsyms_GCJ; do 17941 17942 case $var in 17943 old_archive_cmds_GCJ | \ 17944 old_archive_from_new_cmds_GCJ | \ 17945 archive_cmds_GCJ | \ 17946 archive_expsym_cmds_GCJ | \ 17947 module_cmds_GCJ | \ 17948 module_expsym_cmds_GCJ | \ 17949 old_archive_from_expsyms_cmds_GCJ | \ 17950 export_symbols_cmds_GCJ | \ 17951 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17952 postinstall_cmds | postuninstall_cmds | \ 17953 old_postinstall_cmds | old_postuninstall_cmds | \ 17954 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17955 # Double-quote double-evaled strings. 17956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17957 ;; 17958 *) 17959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17960 ;; 17961 esac 17962 done 17963 17964 case $lt_echo in 17965 *'\$0 --fallback-echo"') 17966 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17967 ;; 17968 esac 17969 17970cfgfile="$ofile" 17971 17972 cat <<__EOF__ >> "$cfgfile" 17973# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17974 17975# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17976 17977# Shell to use when invoking shell scripts. 17978SHELL=$lt_SHELL 17979 17980# Whether or not to build shared libraries. 17981build_libtool_libs=$enable_shared 17982 17983# Whether or not to build static libraries. 17984build_old_libs=$enable_static 17985 17986# Whether or not to add -lc for building shared libraries. 17987build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17988 17989# Whether or not to disallow shared libs when runtime libs are static 17990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17991 17992# Whether or not to optimize for fast installation. 17993fast_install=$enable_fast_install 17994 17995# The host system. 17996host_alias=$host_alias 17997host=$host 17998host_os=$host_os 17999 18000# The build system. 18001build_alias=$build_alias 18002build=$build 18003build_os=$build_os 18004 18005# An echo program that does not interpret backslashes. 18006echo=$lt_echo 18007 18008# The archiver. 18009AR=$lt_AR 18010AR_FLAGS=$lt_AR_FLAGS 18011 18012# A C compiler. 18013LTCC=$lt_LTCC 18014 18015# LTCC compiler flags. 18016LTCFLAGS=$lt_LTCFLAGS 18017 18018# A language-specific compiler. 18019CC=$lt_compiler_GCJ 18020 18021# Is the compiler the GNU C compiler? 18022with_gcc=$GCC_GCJ 18023 18024# An ERE matcher. 18025EGREP=$lt_EGREP 18026 18027# The linker used to build libraries. 18028LD=$lt_LD_GCJ 18029 18030# Whether we need hard or soft links. 18031LN_S=$lt_LN_S 18032 18033# A BSD-compatible nm program. 18034NM=$lt_NM 18035 18036# A symbol stripping program 18037STRIP=$lt_STRIP 18038 18039# Used to examine libraries when file_magic_cmd begins "file" 18040MAGIC_CMD=$MAGIC_CMD 18041 18042# Used on cygwin: DLL creation program. 18043DLLTOOL="$DLLTOOL" 18044 18045# Used on cygwin: object dumper. 18046OBJDUMP="$OBJDUMP" 18047 18048# Used on cygwin: assembler. 18049AS="$AS" 18050 18051# The name of the directory that contains temporary libtool files. 18052objdir=$objdir 18053 18054# How to create reloadable object files. 18055reload_flag=$lt_reload_flag 18056reload_cmds=$lt_reload_cmds 18057 18058# How to pass a linker flag through the compiler. 18059wl=$lt_lt_prog_compiler_wl_GCJ 18060 18061# Object file suffix (normally "o"). 18062objext="$ac_objext" 18063 18064# Old archive suffix (normally "a"). 18065libext="$libext" 18066 18067# Shared library suffix (normally ".so"). 18068shrext_cmds='$shrext_cmds' 18069 18070# Executable file suffix (normally ""). 18071exeext="$exeext" 18072 18073# Additional compiler flags for building library objects. 18074pic_flag=$lt_lt_prog_compiler_pic_GCJ 18075pic_mode=$pic_mode 18076 18077# What is the maximum length of a command? 18078max_cmd_len=$lt_cv_sys_max_cmd_len 18079 18080# Does compiler simultaneously support -c and -o options? 18081compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18082 18083# Must we lock files when doing compilation? 18084need_locks=$lt_need_locks 18085 18086# Do we need the lib prefix for modules? 18087need_lib_prefix=$need_lib_prefix 18088 18089# Do we need a version for libraries? 18090need_version=$need_version 18091 18092# Whether dlopen is supported. 18093dlopen_support=$enable_dlopen 18094 18095# Whether dlopen of programs is supported. 18096dlopen_self=$enable_dlopen_self 18097 18098# Whether dlopen of statically linked programs is supported. 18099dlopen_self_static=$enable_dlopen_self_static 18100 18101# Compiler flag to prevent dynamic linking. 18102link_static_flag=$lt_lt_prog_compiler_static_GCJ 18103 18104# Compiler flag to turn off builtin functions. 18105no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18106 18107# Compiler flag to allow reflexive dlopens. 18108export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18109 18110# Compiler flag to generate shared objects directly from archives. 18111whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18112 18113# Compiler flag to generate thread-safe objects. 18114thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18115 18116# Library versioning type. 18117version_type=$version_type 18118 18119# Format of library name prefix. 18120libname_spec=$lt_libname_spec 18121 18122# List of archive names. First name is the real one, the rest are links. 18123# The last name is the one that the linker finds with -lNAME. 18124library_names_spec=$lt_library_names_spec 18125 18126# The coded name of the library, if different from the real name. 18127soname_spec=$lt_soname_spec 18128 18129# Commands used to build and install an old-style archive. 18130RANLIB=$lt_RANLIB 18131old_archive_cmds=$lt_old_archive_cmds_GCJ 18132old_postinstall_cmds=$lt_old_postinstall_cmds 18133old_postuninstall_cmds=$lt_old_postuninstall_cmds 18134 18135# Create an old-style archive from a shared archive. 18136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18137 18138# Create a temporary old-style archive to link instead of a shared archive. 18139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18140 18141# Commands used to build and install a shared archive. 18142archive_cmds=$lt_archive_cmds_GCJ 18143archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18144postinstall_cmds=$lt_postinstall_cmds 18145postuninstall_cmds=$lt_postuninstall_cmds 18146 18147# Commands used to build a loadable module (assumed same as above if empty) 18148module_cmds=$lt_module_cmds_GCJ 18149module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18150 18151# Commands to strip libraries. 18152old_striplib=$lt_old_striplib 18153striplib=$lt_striplib 18154 18155# Dependencies to place before the objects being linked to create a 18156# shared library. 18157predep_objects=$lt_predep_objects_GCJ 18158 18159# Dependencies to place after the objects being linked to create a 18160# shared library. 18161postdep_objects=$lt_postdep_objects_GCJ 18162 18163# Dependencies to place before the objects being linked to create a 18164# shared library. 18165predeps=$lt_predeps_GCJ 18166 18167# Dependencies to place after the objects being linked to create a 18168# shared library. 18169postdeps=$lt_postdeps_GCJ 18170 18171# The library search path used internally by the compiler when linking 18172# a shared library. 18173compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18174 18175# Method to check whether dependent libraries are shared objects. 18176deplibs_check_method=$lt_deplibs_check_method 18177 18178# Command to use when deplibs_check_method == file_magic. 18179file_magic_cmd=$lt_file_magic_cmd 18180 18181# Flag that allows shared libraries with undefined symbols to be built. 18182allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18183 18184# Flag that forces no undefined symbols. 18185no_undefined_flag=$lt_no_undefined_flag_GCJ 18186 18187# Commands used to finish a libtool library installation in a directory. 18188finish_cmds=$lt_finish_cmds 18189 18190# Same as above, but a single script fragment to be evaled but not shown. 18191finish_eval=$lt_finish_eval 18192 18193# Take the output of nm and produce a listing of raw symbols and C names. 18194global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18195 18196# Transform the output of nm in a proper C declaration 18197global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18198 18199# Transform the output of nm in a C name address pair 18200global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18201 18202# This is the shared library runtime path variable. 18203runpath_var=$runpath_var 18204 18205# This is the shared library path variable. 18206shlibpath_var=$shlibpath_var 18207 18208# Is shlibpath searched before the hard-coded library search path? 18209shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18210 18211# How to hardcode a shared library path into an executable. 18212hardcode_action=$hardcode_action_GCJ 18213 18214# Whether we should hardcode library paths into libraries. 18215hardcode_into_libs=$hardcode_into_libs 18216 18217# Flag to hardcode \$libdir into a binary during linking. 18218# This must work even if \$libdir does not exist. 18219hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18220 18221# If ld is used when linking, flag to hardcode \$libdir into 18222# a binary during linking. This must work even if \$libdir does 18223# not exist. 18224hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18225 18226# Whether we need a single -rpath flag with a separated argument. 18227hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18228 18229# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18230# resulting binary. 18231hardcode_direct=$hardcode_direct_GCJ 18232 18233# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18234# resulting binary. 18235hardcode_minus_L=$hardcode_minus_L_GCJ 18236 18237# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18238# the resulting binary. 18239hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18240 18241# Set to yes if building a shared library automatically hardcodes DIR into the library 18242# and all subsequent libraries and executables linked against it. 18243hardcode_automatic=$hardcode_automatic_GCJ 18244 18245# Variables whose values should be saved in libtool wrapper scripts and 18246# restored at relink time. 18247variables_saved_for_relink="$variables_saved_for_relink" 18248 18249# Whether libtool must link a program against all its dependency libraries. 18250link_all_deplibs=$link_all_deplibs_GCJ 18251 18252# Compile-time system search path for libraries 18253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18254 18255# Run-time system search path for libraries 18256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18257 18258# Fix the shell variable \$srcfile for the compiler. 18259fix_srcfile_path="$fix_srcfile_path_GCJ" 18260 18261# Set to yes if exported symbols are required. 18262always_export_symbols=$always_export_symbols_GCJ 18263 18264# The commands to list exported symbols. 18265export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18266 18267# The commands to extract the exported symbol list from a shared archive. 18268extract_expsyms_cmds=$lt_extract_expsyms_cmds 18269 18270# Symbols that should not be listed in the preloaded symbols. 18271exclude_expsyms=$lt_exclude_expsyms_GCJ 18272 18273# Symbols that must always be exported. 18274include_expsyms=$lt_include_expsyms_GCJ 18275 18276# ### END LIBTOOL TAG CONFIG: $tagname 18277 18278__EOF__ 18279 18280 18281else 18282 # If there is no Makefile yet, we rely on a make rule to execute 18283 # `config.status --recheck' to rerun these tests and create the 18284 # libtool script then. 18285 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18286 if test -f "$ltmain_in"; then 18287 test -f Makefile && make "$ltmain" 18288 fi 18289fi 18290 18291 18292ac_ext=c 18293ac_cpp='$CPP $CPPFLAGS' 18294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18296ac_compiler_gnu=$ac_cv_c_compiler_gnu 18297 18298CC="$lt_save_CC" 18299 18300 else 18301 tagname="" 18302 fi 18303 ;; 18304 18305 RC) 18306 18307 18308# Source file extension for RC test sources. 18309ac_ext=rc 18310 18311# Object file extension for compiled RC test sources. 18312objext=o 18313objext_RC=$objext 18314 18315# Code to be used in simple compile tests 18316lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18317 18318# Code to be used in simple link tests 18319lt_simple_link_test_code="$lt_simple_compile_test_code" 18320 18321# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18322 18323# If no C compiler was specified, use CC. 18324LTCC=${LTCC-"$CC"} 18325 18326# If no C compiler flags were specified, use CFLAGS. 18327LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18328 18329# Allow CC to be a program name with arguments. 18330compiler=$CC 18331 18332 18333# save warnings/boilerplate of simple test code 18334ac_outfile=conftest.$ac_objext 18335printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18336eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18337_lt_compiler_boilerplate=`cat conftest.err` 18338$rm conftest* 18339 18340ac_outfile=conftest.$ac_objext 18341printf "$lt_simple_link_test_code" >conftest.$ac_ext 18342eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18343_lt_linker_boilerplate=`cat conftest.err` 18344$rm conftest* 18345 18346 18347# Allow CC to be a program name with arguments. 18348lt_save_CC="$CC" 18349CC=${RC-"windres"} 18350compiler=$CC 18351compiler_RC=$CC 18352for cc_temp in $compiler""; do 18353 case $cc_temp in 18354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18356 \-*) ;; 18357 *) break;; 18358 esac 18359done 18360cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18361 18362lt_cv_prog_compiler_c_o_RC=yes 18363 18364# The else clause should only fire when bootstrapping the 18365# libtool distribution, otherwise you forgot to ship ltmain.sh 18366# with your package, and you will get complaints that there are 18367# no rules to generate ltmain.sh. 18368if test -f "$ltmain"; then 18369 # See if we are running on zsh, and set the options which allow our commands through 18370 # without removal of \ escapes. 18371 if test -n "${ZSH_VERSION+set}" ; then 18372 setopt NO_GLOB_SUBST 18373 fi 18374 # Now quote all the things that may contain metacharacters while being 18375 # careful not to overquote the AC_SUBSTed values. We take copies of the 18376 # variables and quote the copies for generation of the libtool script. 18377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18378 SED SHELL STRIP \ 18379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18381 deplibs_check_method reload_flag reload_cmds need_locks \ 18382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18383 lt_cv_sys_global_symbol_to_c_name_address \ 18384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18385 old_postinstall_cmds old_postuninstall_cmds \ 18386 compiler_RC \ 18387 CC_RC \ 18388 LD_RC \ 18389 lt_prog_compiler_wl_RC \ 18390 lt_prog_compiler_pic_RC \ 18391 lt_prog_compiler_static_RC \ 18392 lt_prog_compiler_no_builtin_flag_RC \ 18393 export_dynamic_flag_spec_RC \ 18394 thread_safe_flag_spec_RC \ 18395 whole_archive_flag_spec_RC \ 18396 enable_shared_with_static_runtimes_RC \ 18397 old_archive_cmds_RC \ 18398 old_archive_from_new_cmds_RC \ 18399 predep_objects_RC \ 18400 postdep_objects_RC \ 18401 predeps_RC \ 18402 postdeps_RC \ 18403 compiler_lib_search_path_RC \ 18404 archive_cmds_RC \ 18405 archive_expsym_cmds_RC \ 18406 postinstall_cmds_RC \ 18407 postuninstall_cmds_RC \ 18408 old_archive_from_expsyms_cmds_RC \ 18409 allow_undefined_flag_RC \ 18410 no_undefined_flag_RC \ 18411 export_symbols_cmds_RC \ 18412 hardcode_libdir_flag_spec_RC \ 18413 hardcode_libdir_flag_spec_ld_RC \ 18414 hardcode_libdir_separator_RC \ 18415 hardcode_automatic_RC \ 18416 module_cmds_RC \ 18417 module_expsym_cmds_RC \ 18418 lt_cv_prog_compiler_c_o_RC \ 18419 exclude_expsyms_RC \ 18420 include_expsyms_RC; do 18421 18422 case $var in 18423 old_archive_cmds_RC | \ 18424 old_archive_from_new_cmds_RC | \ 18425 archive_cmds_RC | \ 18426 archive_expsym_cmds_RC | \ 18427 module_cmds_RC | \ 18428 module_expsym_cmds_RC | \ 18429 old_archive_from_expsyms_cmds_RC | \ 18430 export_symbols_cmds_RC | \ 18431 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18432 postinstall_cmds | postuninstall_cmds | \ 18433 old_postinstall_cmds | old_postuninstall_cmds | \ 18434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18435 # Double-quote double-evaled strings. 18436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18437 ;; 18438 *) 18439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18440 ;; 18441 esac 18442 done 18443 18444 case $lt_echo in 18445 *'\$0 --fallback-echo"') 18446 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18447 ;; 18448 esac 18449 18450cfgfile="$ofile" 18451 18452 cat <<__EOF__ >> "$cfgfile" 18453# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18454 18455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18456 18457# Shell to use when invoking shell scripts. 18458SHELL=$lt_SHELL 18459 18460# Whether or not to build shared libraries. 18461build_libtool_libs=$enable_shared 18462 18463# Whether or not to build static libraries. 18464build_old_libs=$enable_static 18465 18466# Whether or not to add -lc for building shared libraries. 18467build_libtool_need_lc=$archive_cmds_need_lc_RC 18468 18469# Whether or not to disallow shared libs when runtime libs are static 18470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18471 18472# Whether or not to optimize for fast installation. 18473fast_install=$enable_fast_install 18474 18475# The host system. 18476host_alias=$host_alias 18477host=$host 18478host_os=$host_os 18479 18480# The build system. 18481build_alias=$build_alias 18482build=$build 18483build_os=$build_os 18484 18485# An echo program that does not interpret backslashes. 18486echo=$lt_echo 18487 18488# The archiver. 18489AR=$lt_AR 18490AR_FLAGS=$lt_AR_FLAGS 18491 18492# A C compiler. 18493LTCC=$lt_LTCC 18494 18495# LTCC compiler flags. 18496LTCFLAGS=$lt_LTCFLAGS 18497 18498# A language-specific compiler. 18499CC=$lt_compiler_RC 18500 18501# Is the compiler the GNU C compiler? 18502with_gcc=$GCC_RC 18503 18504# An ERE matcher. 18505EGREP=$lt_EGREP 18506 18507# The linker used to build libraries. 18508LD=$lt_LD_RC 18509 18510# Whether we need hard or soft links. 18511LN_S=$lt_LN_S 18512 18513# A BSD-compatible nm program. 18514NM=$lt_NM 18515 18516# A symbol stripping program 18517STRIP=$lt_STRIP 18518 18519# Used to examine libraries when file_magic_cmd begins "file" 18520MAGIC_CMD=$MAGIC_CMD 18521 18522# Used on cygwin: DLL creation program. 18523DLLTOOL="$DLLTOOL" 18524 18525# Used on cygwin: object dumper. 18526OBJDUMP="$OBJDUMP" 18527 18528# Used on cygwin: assembler. 18529AS="$AS" 18530 18531# The name of the directory that contains temporary libtool files. 18532objdir=$objdir 18533 18534# How to create reloadable object files. 18535reload_flag=$lt_reload_flag 18536reload_cmds=$lt_reload_cmds 18537 18538# How to pass a linker flag through the compiler. 18539wl=$lt_lt_prog_compiler_wl_RC 18540 18541# Object file suffix (normally "o"). 18542objext="$ac_objext" 18543 18544# Old archive suffix (normally "a"). 18545libext="$libext" 18546 18547# Shared library suffix (normally ".so"). 18548shrext_cmds='$shrext_cmds' 18549 18550# Executable file suffix (normally ""). 18551exeext="$exeext" 18552 18553# Additional compiler flags for building library objects. 18554pic_flag=$lt_lt_prog_compiler_pic_RC 18555pic_mode=$pic_mode 18556 18557# What is the maximum length of a command? 18558max_cmd_len=$lt_cv_sys_max_cmd_len 18559 18560# Does compiler simultaneously support -c and -o options? 18561compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18562 18563# Must we lock files when doing compilation? 18564need_locks=$lt_need_locks 18565 18566# Do we need the lib prefix for modules? 18567need_lib_prefix=$need_lib_prefix 18568 18569# Do we need a version for libraries? 18570need_version=$need_version 18571 18572# Whether dlopen is supported. 18573dlopen_support=$enable_dlopen 18574 18575# Whether dlopen of programs is supported. 18576dlopen_self=$enable_dlopen_self 18577 18578# Whether dlopen of statically linked programs is supported. 18579dlopen_self_static=$enable_dlopen_self_static 18580 18581# Compiler flag to prevent dynamic linking. 18582link_static_flag=$lt_lt_prog_compiler_static_RC 18583 18584# Compiler flag to turn off builtin functions. 18585no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18586 18587# Compiler flag to allow reflexive dlopens. 18588export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18589 18590# Compiler flag to generate shared objects directly from archives. 18591whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18592 18593# Compiler flag to generate thread-safe objects. 18594thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18595 18596# Library versioning type. 18597version_type=$version_type 18598 18599# Format of library name prefix. 18600libname_spec=$lt_libname_spec 18601 18602# List of archive names. First name is the real one, the rest are links. 18603# The last name is the one that the linker finds with -lNAME. 18604library_names_spec=$lt_library_names_spec 18605 18606# The coded name of the library, if different from the real name. 18607soname_spec=$lt_soname_spec 18608 18609# Commands used to build and install an old-style archive. 18610RANLIB=$lt_RANLIB 18611old_archive_cmds=$lt_old_archive_cmds_RC 18612old_postinstall_cmds=$lt_old_postinstall_cmds 18613old_postuninstall_cmds=$lt_old_postuninstall_cmds 18614 18615# Create an old-style archive from a shared archive. 18616old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18617 18618# Create a temporary old-style archive to link instead of a shared archive. 18619old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18620 18621# Commands used to build and install a shared archive. 18622archive_cmds=$lt_archive_cmds_RC 18623archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18624postinstall_cmds=$lt_postinstall_cmds 18625postuninstall_cmds=$lt_postuninstall_cmds 18626 18627# Commands used to build a loadable module (assumed same as above if empty) 18628module_cmds=$lt_module_cmds_RC 18629module_expsym_cmds=$lt_module_expsym_cmds_RC 18630 18631# Commands to strip libraries. 18632old_striplib=$lt_old_striplib 18633striplib=$lt_striplib 18634 18635# Dependencies to place before the objects being linked to create a 18636# shared library. 18637predep_objects=$lt_predep_objects_RC 18638 18639# Dependencies to place after the objects being linked to create a 18640# shared library. 18641postdep_objects=$lt_postdep_objects_RC 18642 18643# Dependencies to place before the objects being linked to create a 18644# shared library. 18645predeps=$lt_predeps_RC 18646 18647# Dependencies to place after the objects being linked to create a 18648# shared library. 18649postdeps=$lt_postdeps_RC 18650 18651# The library search path used internally by the compiler when linking 18652# a shared library. 18653compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18654 18655# Method to check whether dependent libraries are shared objects. 18656deplibs_check_method=$lt_deplibs_check_method 18657 18658# Command to use when deplibs_check_method == file_magic. 18659file_magic_cmd=$lt_file_magic_cmd 18660 18661# Flag that allows shared libraries with undefined symbols to be built. 18662allow_undefined_flag=$lt_allow_undefined_flag_RC 18663 18664# Flag that forces no undefined symbols. 18665no_undefined_flag=$lt_no_undefined_flag_RC 18666 18667# Commands used to finish a libtool library installation in a directory. 18668finish_cmds=$lt_finish_cmds 18669 18670# Same as above, but a single script fragment to be evaled but not shown. 18671finish_eval=$lt_finish_eval 18672 18673# Take the output of nm and produce a listing of raw symbols and C names. 18674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18675 18676# Transform the output of nm in a proper C declaration 18677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18678 18679# Transform the output of nm in a C name address pair 18680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18681 18682# This is the shared library runtime path variable. 18683runpath_var=$runpath_var 18684 18685# This is the shared library path variable. 18686shlibpath_var=$shlibpath_var 18687 18688# Is shlibpath searched before the hard-coded library search path? 18689shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18690 18691# How to hardcode a shared library path into an executable. 18692hardcode_action=$hardcode_action_RC 18693 18694# Whether we should hardcode library paths into libraries. 18695hardcode_into_libs=$hardcode_into_libs 18696 18697# Flag to hardcode \$libdir into a binary during linking. 18698# This must work even if \$libdir does not exist. 18699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18700 18701# If ld is used when linking, flag to hardcode \$libdir into 18702# a binary during linking. This must work even if \$libdir does 18703# not exist. 18704hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18705 18706# Whether we need a single -rpath flag with a separated argument. 18707hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18708 18709# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18710# resulting binary. 18711hardcode_direct=$hardcode_direct_RC 18712 18713# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18714# resulting binary. 18715hardcode_minus_L=$hardcode_minus_L_RC 18716 18717# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18718# the resulting binary. 18719hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18720 18721# Set to yes if building a shared library automatically hardcodes DIR into the library 18722# and all subsequent libraries and executables linked against it. 18723hardcode_automatic=$hardcode_automatic_RC 18724 18725# Variables whose values should be saved in libtool wrapper scripts and 18726# restored at relink time. 18727variables_saved_for_relink="$variables_saved_for_relink" 18728 18729# Whether libtool must link a program against all its dependency libraries. 18730link_all_deplibs=$link_all_deplibs_RC 18731 18732# Compile-time system search path for libraries 18733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18734 18735# Run-time system search path for libraries 18736sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18737 18738# Fix the shell variable \$srcfile for the compiler. 18739fix_srcfile_path="$fix_srcfile_path_RC" 18740 18741# Set to yes if exported symbols are required. 18742always_export_symbols=$always_export_symbols_RC 18743 18744# The commands to list exported symbols. 18745export_symbols_cmds=$lt_export_symbols_cmds_RC 18746 18747# The commands to extract the exported symbol list from a shared archive. 18748extract_expsyms_cmds=$lt_extract_expsyms_cmds 18749 18750# Symbols that should not be listed in the preloaded symbols. 18751exclude_expsyms=$lt_exclude_expsyms_RC 18752 18753# Symbols that must always be exported. 18754include_expsyms=$lt_include_expsyms_RC 18755 18756# ### END LIBTOOL TAG CONFIG: $tagname 18757 18758__EOF__ 18759 18760 18761else 18762 # If there is no Makefile yet, we rely on a make rule to execute 18763 # `config.status --recheck' to rerun these tests and create the 18764 # libtool script then. 18765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18766 if test -f "$ltmain_in"; then 18767 test -f Makefile && make "$ltmain" 18768 fi 18769fi 18770 18771 18772ac_ext=c 18773ac_cpp='$CPP $CPPFLAGS' 18774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18776ac_compiler_gnu=$ac_cv_c_compiler_gnu 18777 18778CC="$lt_save_CC" 18779 18780 ;; 18781 18782 *) 18783 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18784echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18785 { (exit 1); exit 1; }; } 18786 ;; 18787 esac 18788 18789 # Append the new tag name to the list of available tags. 18790 if test -n "$tagname" ; then 18791 available_tags="$available_tags $tagname" 18792 fi 18793 fi 18794 done 18795 IFS="$lt_save_ifs" 18796 18797 # Now substitute the updated list of available tags. 18798 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18799 mv "${ofile}T" "$ofile" 18800 chmod +x "$ofile" 18801 else 18802 rm -f "${ofile}T" 18803 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18804echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18805 { (exit 1); exit 1; }; } 18806 fi 18807fi 18808 18809 18810 18811# This can be used to rebuild libtool when needed 18812LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18813 18814# Always use our own libtool. 18815LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18816 18817# Prevent multiple expansion 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 18831## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 18832## Free Software Foundation, Inc. 18833## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 18834## 18835## This file is free software; the Free Software Foundation gives 18836## unlimited permission to copy and/or distribute it, with or without 18837## modifications, as long as this notice is preserved. 18838 18839# serial 48 AC_PROG_LIBTOOL 18840 18841 18842# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 18843# ----------------------------------------------------------- 18844# If this macro is not defined by Autoconf, define it here. 18845 18846 18847 18848# AC_PROG_LIBTOOL 18849# --------------- 18850# AC_PROG_LIBTOOL 18851 18852 18853# _AC_PROG_LIBTOOL 18854# ---------------- 18855# _AC_PROG_LIBTOOL 18856 18857 18858# AC_LIBTOOL_SETUP 18859# ---------------- 18860# AC_LIBTOOL_SETUP 18861 18862 18863# _LT_AC_SYS_COMPILER 18864# ------------------- 18865# _LT_AC_SYS_COMPILER 18866 18867 18868# _LT_CC_BASENAME(CC) 18869# ------------------- 18870# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18871 18872 18873 18874# _LT_COMPILER_BOILERPLATE 18875# ------------------------ 18876# Check for compiler boilerplate output or warnings with 18877# the simple compiler test code. 18878# _LT_COMPILER_BOILERPLATE 18879 18880 18881# _LT_LINKER_BOILERPLATE 18882# ---------------------- 18883# Check for linker boilerplate output or warnings with 18884# the simple link test code. 18885# _LT_LINKER_BOILERPLATE 18886 18887 18888# _LT_AC_SYS_LIBPATH_AIX 18889# ---------------------- 18890# Links a minimal program and checks the executable 18891# for the system default hardcoded library path. In most cases, 18892# this is /usr/lib:/lib, but when the MPI compilers are used 18893# the location of the communication and MPI libs are included too. 18894# If we don't find anything, use the default library path according 18895# to the aix ld manual. 18896# _LT_AC_SYS_LIBPATH_AIX 18897 18898 18899# _LT_AC_SHELL_INIT(ARG) 18900# ---------------------- 18901# _LT_AC_SHELL_INIT 18902 18903 18904# _LT_AC_PROG_ECHO_BACKSLASH 18905# -------------------------- 18906# Add some code to the start of the generated configure script which 18907# will find an echo command which doesn't interpret backslashes. 18908# _LT_AC_PROG_ECHO_BACKSLASH 18909 18910 18911# _LT_AC_LOCK 18912# ----------- 18913# _LT_AC_LOCK 18914 18915 18916# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 18917# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 18918# ---------------------------------------------------------------- 18919# Check whether the given compiler option works 18920# AC_LIBTOOL_COMPILER_OPTION 18921 18922 18923# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 18924# [ACTION-SUCCESS], [ACTION-FAILURE]) 18925# ------------------------------------------------------------ 18926# Check whether the given compiler option works 18927# AC_LIBTOOL_LINKER_OPTION 18928 18929 18930# AC_LIBTOOL_SYS_MAX_CMD_LEN 18931# -------------------------- 18932# AC_LIBTOOL_SYS_MAX_CMD_LEN 18933 18934 18935# _LT_AC_CHECK_DLFCN 18936# ------------------ 18937# _LT_AC_CHECK_DLFCN 18938 18939 18940# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 18941# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 18942# --------------------------------------------------------------------- 18943# _LT_AC_TRY_DLOPEN_SELF 18944 18945 18946# AC_LIBTOOL_DLOPEN_SELF 18947# ---------------------- 18948# AC_LIBTOOL_DLOPEN_SELF 18949 18950 18951# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 18952# --------------------------------- 18953# Check to see if options -c and -o are simultaneously supported by compiler 18954# AC_LIBTOOL_PROG_CC_C_O 18955 18956 18957# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 18958# ----------------------------------------- 18959# Check to see if we can do hard links to lock some files if needed 18960# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 18961 18962 18963# AC_LIBTOOL_OBJDIR 18964# ----------------- 18965# AC_LIBTOOL_OBJDIR 18966 18967 18968# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 18969# ---------------------------------------------- 18970# Check hardcoding attributes. 18971# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 18972 18973 18974# AC_LIBTOOL_SYS_LIB_STRIP 18975# ------------------------ 18976# AC_LIBTOOL_SYS_LIB_STRIP 18977 18978 18979# AC_LIBTOOL_SYS_DYNAMIC_LINKER 18980# ----------------------------- 18981# PORTME Fill in your ld.so characteristics 18982# AC_LIBTOOL_SYS_DYNAMIC_LINKER 18983 18984 18985# _LT_AC_TAGCONFIG 18986# ---------------- 18987# _LT_AC_TAGCONFIG 18988 18989 18990# AC_LIBTOOL_DLOPEN 18991# ----------------- 18992# enable checks for dlopen support 18993# AC_LIBTOOL_DLOPEN 18994 18995 18996# AC_LIBTOOL_WIN32_DLL 18997# -------------------- 18998# declare package support for building win32 DLLs 18999# AC_LIBTOOL_WIN32_DLL 19000 19001 19002# AC_ENABLE_SHARED([DEFAULT]) 19003# --------------------------- 19004# implement the --enable-shared flag 19005# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19006# AC_ENABLE_SHARED 19007 19008 19009# AC_DISABLE_SHARED 19010# ----------------- 19011# set the default shared flag to --disable-shared 19012# AC_DISABLE_SHARED 19013 19014 19015# AC_ENABLE_STATIC([DEFAULT]) 19016# --------------------------- 19017# implement the --enable-static flag 19018# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19019# AC_ENABLE_STATIC 19020 19021 19022# AC_DISABLE_STATIC 19023# ----------------- 19024# set the default static flag to --disable-static 19025# AC_DISABLE_STATIC 19026 19027 19028# AC_ENABLE_FAST_INSTALL([DEFAULT]) 19029# --------------------------------- 19030# implement the --enable-fast-install flag 19031# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19032# AC_ENABLE_FAST_INSTALL 19033 19034 19035# AC_DISABLE_FAST_INSTALL 19036# ----------------------- 19037# set the default to --disable-fast-install 19038# AC_DISABLE_FAST_INSTALL 19039 19040 19041# AC_LIBTOOL_PICMODE([MODE]) 19042# -------------------------- 19043# implement the --with-pic flag 19044# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 19045# AC_LIBTOOL_PICMODE 19046 19047 19048# AC_PROG_EGREP 19049# ------------- 19050# This is predefined starting with Autoconf 2.54, so this conditional 19051# definition can be removed once we require Autoconf 2.54 or later. 19052 19053 19054 19055# AC_PATH_TOOL_PREFIX 19056# ------------------- 19057# find a file program which can recognise shared library 19058# AC_PATH_TOOL_PREFIX 19059 19060 19061# AC_PATH_MAGIC 19062# ------------- 19063# find a file program which can recognise a shared library 19064# AC_PATH_MAGIC 19065 19066 19067# AC_PROG_LD 19068# ---------- 19069# find the pathname to the GNU or non-GNU linker 19070# AC_PROG_LD 19071 19072 19073# AC_PROG_LD_GNU 19074# -------------- 19075# AC_PROG_LD_GNU 19076 19077 19078# AC_PROG_LD_RELOAD_FLAG 19079# ---------------------- 19080# find reload flag for linker 19081# -- PORTME Some linkers may need a different reload flag. 19082# AC_PROG_LD_RELOAD_FLAG 19083 19084 19085# AC_DEPLIBS_CHECK_METHOD 19086# ----------------------- 19087# how to check for library dependencies 19088# -- PORTME fill in with the dynamic library characteristics 19089# AC_DEPLIBS_CHECK_METHOD 19090 19091 19092# AC_PROG_NM 19093# ---------- 19094# find the pathname to a BSD-compatible name lister 19095# AC_PROG_NM 19096 19097 19098# AC_CHECK_LIBM 19099# ------------- 19100# check for math library 19101# AC_CHECK_LIBM 19102 19103 19104# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 19105# ----------------------------------- 19106# sets LIBLTDL to the link flags for the libltdl convenience library and 19107# LTDLINCL to the include flags for the libltdl header and adds 19108# --enable-ltdl-convenience to the configure arguments. Note that 19109# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 19110# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 19111# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 19112# (note the single quotes!). If your package is not flat and you're not 19113# using automake, define top_builddir and top_srcdir appropriately in 19114# the Makefiles. 19115# AC_LIBLTDL_CONVENIENCE 19116 19117 19118# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 19119# ----------------------------------- 19120# sets LIBLTDL to the link flags for the libltdl installable library and 19121# LTDLINCL to the include flags for the libltdl header and adds 19122# --enable-ltdl-install to the configure arguments. Note that 19123# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 19124# and an installed libltdl is not found, it is assumed to be `libltdl'. 19125# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 19126# '${top_srcdir}/' (note the single quotes!). If your package is not 19127# flat and you're not using automake, define top_builddir and top_srcdir 19128# appropriately in the Makefiles. 19129# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 19130# AC_LIBLTDL_INSTALLABLE 19131 19132 19133# AC_LIBTOOL_CXX 19134# -------------- 19135# enable support for C++ libraries 19136# AC_LIBTOOL_CXX 19137 19138 19139# _LT_AC_LANG_CXX 19140# --------------- 19141# _LT_AC_LANG_CXX 19142 19143# _LT_AC_PROG_CXXCPP 19144# ------------------ 19145# _LT_AC_PROG_CXXCPP 19146 19147# AC_LIBTOOL_F77 19148# -------------- 19149# enable support for Fortran 77 libraries 19150# AC_LIBTOOL_F77 19151 19152 19153# _LT_AC_LANG_F77 19154# --------------- 19155# _LT_AC_LANG_F77 19156 19157 19158# AC_LIBTOOL_GCJ 19159# -------------- 19160# enable support for GCJ libraries 19161# AC_LIBTOOL_GCJ 19162 19163 19164# _LT_AC_LANG_GCJ 19165# --------------- 19166# _LT_AC_LANG_GCJ 19167 19168 19169# AC_LIBTOOL_RC 19170# ------------- 19171# enable support for Windows resource files 19172# AC_LIBTOOL_RC 19173 19174 19175# AC_LIBTOOL_LANG_C_CONFIG 19176# ------------------------ 19177# Ensure that the configuration vars for the C compiler are 19178# suitably defined. Those variables are subsequently used by 19179# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 19180 19181# AC_LIBTOOL_LANG_C_CONFIG 19182 19183 19184# AC_LIBTOOL_LANG_CXX_CONFIG 19185# -------------------------- 19186# Ensure that the configuration vars for the C compiler are 19187# suitably defined. Those variables are subsequently used by 19188# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 19189 19190# AC_LIBTOOL_LANG_CXX_CONFIG 19191 19192# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 19193# ------------------------------------ 19194# Figure out "hidden" library dependencies from verbose 19195# compiler output when linking a shared library. 19196# Parse the compiler output and extract the necessary 19197# objects, libraries and library flags. 19198# AC_LIBTOOL_POSTDEP_PREDEP 19199 19200# AC_LIBTOOL_LANG_F77_CONFIG 19201# -------------------------- 19202# Ensure that the configuration vars for the C compiler are 19203# suitably defined. Those variables are subsequently used by 19204# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 19205 19206# AC_LIBTOOL_LANG_F77_CONFIG 19207 19208 19209# AC_LIBTOOL_LANG_GCJ_CONFIG 19210# -------------------------- 19211# Ensure that the configuration vars for the C compiler are 19212# suitably defined. Those variables are subsequently used by 19213# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 19214 19215# AC_LIBTOOL_LANG_GCJ_CONFIG 19216 19217 19218# AC_LIBTOOL_LANG_RC_CONFIG 19219# ------------------------- 19220# Ensure that the configuration vars for the Windows resource compiler are 19221# suitably defined. Those variables are subsequently used by 19222# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 19223 19224# AC_LIBTOOL_LANG_RC_CONFIG 19225 19226 19227# AC_LIBTOOL_CONFIG([TAGNAME]) 19228# ---------------------------- 19229# If TAGNAME is not passed, then create an initial libtool script 19230# with a default configuration from the untagged config vars. Otherwise 19231# add code to config.status for appending the configuration named by 19232# TAGNAME from the matching tagged config vars. 19233# AC_LIBTOOL_CONFIG 19234 19235 19236# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 19237# ------------------------------------------- 19238# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 19239 19240 19241# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 19242# --------------------------------- 19243 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 19244 19245 19246# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 19247# --------------------------------------- 19248 19249 19250 19251# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 19252# ------------------------------------ 19253# See if the linker supports building shared libraries. 19254# AC_LIBTOOL_PROG_LD_SHLIBS 19255 19256 19257# _LT_AC_FILE_LTDLL_C 19258# ------------------- 19259# Be careful that the start marker always follows a newline. 19260# _LT_AC_FILE_LTDLL_C 19261 19262 19263# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 19264# --------------------------------- 19265 19266 19267 19268# old names 19269 19270 19271 19272 19273 19274 19275 19276 19277# This is just to silence aclocal about the macro not being used 19278 19279 19280 19281 19282 19283 19284############################################################ 19285# NOTE: This macro has been submitted for inclusion into # 19286# GNU Autoconf as AC_PROG_SED. When it is available in # 19287# a released version of Autoconf we should remove this # 19288# macro and use it instead. # 19289############################################################ 19290# LT_AC_PROG_SED 19291# -------------- 19292# Check for a fully-functional sed program, that truncates 19293# as few characters as possible. Prefer GNU sed if found. 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307if test ".$enable_maintainer" = .yes; then 19308 bison_version="" 19309 for prog in bison bison-beta bison-alpha bison-snap; do 19310 # Extract the first word of "$prog", so it can be a program name with args. 19311set dummy $prog; ac_word=$2 19312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19314if test "${ac_cv_path_BISON+set}" = set; then 19315 echo $ECHO_N "(cached) $ECHO_C" >&6 19316else 19317 case $BISON in 19318 [\\/]* | ?:[\\/]*) 19319 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 19320 ;; 19321 *) 19322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19323for as_dir in $PATH 19324do 19325 IFS=$as_save_IFS 19326 test -z "$as_dir" && as_dir=. 19327 for ac_exec_ext in '' $ac_executable_extensions; do 19328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19329 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 19330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19331 break 2 19332 fi 19333done 19334done 19335IFS=$as_save_IFS 19336 19337 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="NA" 19338 ;; 19339esac 19340fi 19341BISON=$ac_cv_path_BISON 19342if test -n "$BISON"; then 19343 { echo "$as_me:$LINENO: result: $BISON" >&5 19344echo "${ECHO_T}$BISON" >&6; } 19345else 19346 { echo "$as_me:$LINENO: result: no" >&5 19347echo "${ECHO_T}no" >&6; } 19348fi 19349 19350 19351 if test ".$BISON" != .NA; then 19352 bison_version=`($BISON --version | head -1 | sed -e 's;^[^0-9]*\([0-9][0-9.]*\).*;\1;') 2>/dev/null` 19353 case "$bison_version" in 19354 1.[8-9][0-9]|1.[8-9][0-9][0-9]|2.[0-9] ) break ;; 19355 * ) BISON="NA"; unset ac_cv_path_BISON ;; 19356 esac 19357 else 19358 unset ac_cv_path_BISON 19359 fi 19360 done 19361 if test ".$BISON" = .NA; then 19362 if test ".$bison_version" != .; then 19363 { { echo "$as_me:$LINENO: error: found GNU Bison version $bison_version; require version >= 1.875d" >&5 19364echo "$as_me: error: found GNU Bison version $bison_version; require version >= 1.875d" >&2;} 19365 { (exit 1); exit 1; }; } 19366 else 19367 { { echo "$as_me:$LINENO: error: require GNU Bison version >= 1.875d" >&5 19368echo "$as_me: error: require GNU Bison version >= 1.875d" >&2;} 19369 { (exit 1); exit 1; }; } 19370 fi 19371 fi 19372else 19373 test ".$BISON" = . && BISON=true 19374 # Extract the first word of "bison", so it can be a program name with args. 19375set dummy bison; ac_word=$2 19376{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19378if test "${ac_cv_path_BISON+set}" = set; then 19379 echo $ECHO_N "(cached) $ECHO_C" >&6 19380else 19381 case $BISON in 19382 [\\/]* | ?:[\\/]*) 19383 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 19384 ;; 19385 *) 19386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19387for as_dir in $PATH 19388do 19389 IFS=$as_save_IFS 19390 test -z "$as_dir" && as_dir=. 19391 for ac_exec_ext in '' $ac_executable_extensions; do 19392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19393 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 19394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19395 break 2 19396 fi 19397done 19398done 19399IFS=$as_save_IFS 19400 19401 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="true" 19402 ;; 19403esac 19404fi 19405BISON=$ac_cv_path_BISON 19406if test -n "$BISON"; then 19407 { echo "$as_me:$LINENO: result: $BISON" >&5 19408echo "${ECHO_T}$BISON" >&6; } 19409else 19410 { echo "$as_me:$LINENO: result: no" >&5 19411echo "${ECHO_T}no" >&6; } 19412fi 19413 19414 19415fi 19416 19417if test ".$enable_maintainer" = .yes; then 19418 flex_version="" 19419 for prog in flex flex-beta flex-alpha flex-snap; do 19420 # Extract the first word of "$prog", so it can be a program name with args. 19421set dummy $prog; ac_word=$2 19422{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19424if test "${ac_cv_path_FLEX+set}" = set; then 19425 echo $ECHO_N "(cached) $ECHO_C" >&6 19426else 19427 case $FLEX in 19428 [\\/]* | ?:[\\/]*) 19429 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path. 19430 ;; 19431 *) 19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19433for as_dir in $PATH 19434do 19435 IFS=$as_save_IFS 19436 test -z "$as_dir" && as_dir=. 19437 for ac_exec_ext in '' $ac_executable_extensions; do 19438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19439 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext" 19440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19441 break 2 19442 fi 19443done 19444done 19445IFS=$as_save_IFS 19446 19447 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="NA" 19448 ;; 19449esac 19450fi 19451FLEX=$ac_cv_path_FLEX 19452if test -n "$FLEX"; then 19453 { echo "$as_me:$LINENO: result: $FLEX" >&5 19454echo "${ECHO_T}$FLEX" >&6; } 19455else 19456 { echo "$as_me:$LINENO: result: no" >&5 19457echo "${ECHO_T}no" >&6; } 19458fi 19459 19460 19461 if test ".$FLEX" != .NA; then 19462 flex_version=`($FLEX --version | head -1 | sed -e 's;^[^0-9]*\([0-9][0-9.]*\).*;\1;') 2>/dev/null` 19463 case "$flex_version" in 19464 2.5.1[0-9]|2.5.[2-9][0-9]|2.[6-9].* ) break ;; 19465 * ) FLEX="NA"; unset ac_cv_path_FLEX ;; 19466 esac 19467 else 19468 unset ac_cv_path_FLEX 19469 fi 19470 done 19471 if test ".$FLEX" = .NA; then 19472 if test ".$flex_version" != .; then 19473 { { echo "$as_me:$LINENO: error: found GNU Flex version $flex_version; require version >= 2.5.31" >&5 19474echo "$as_me: error: found GNU Flex version $flex_version; require version >= 2.5.31" >&2;} 19475 { (exit 1); exit 1; }; } 19476 else 19477 { { echo "$as_me:$LINENO: error: require GNU Flex version >= 2.5.31" >&5 19478echo "$as_me: error: require GNU Flex version >= 2.5.31" >&2;} 19479 { (exit 1); exit 1; }; } 19480 fi 19481 fi 19482else 19483 test ".$FLEX" = . && FLEX=true 19484 # Extract the first word of "flex", so it can be a program name with args. 19485set dummy flex; ac_word=$2 19486{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19488if test "${ac_cv_path_FLEX+set}" = set; then 19489 echo $ECHO_N "(cached) $ECHO_C" >&6 19490else 19491 case $FLEX in 19492 [\\/]* | ?:[\\/]*) 19493 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path. 19494 ;; 19495 *) 19496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19497for as_dir in $PATH 19498do 19499 IFS=$as_save_IFS 19500 test -z "$as_dir" && as_dir=. 19501 for ac_exec_ext in '' $ac_executable_extensions; do 19502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19503 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext" 19504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19505 break 2 19506 fi 19507done 19508done 19509IFS=$as_save_IFS 19510 19511 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="true" 19512 ;; 19513esac 19514fi 19515FLEX=$ac_cv_path_FLEX 19516if test -n "$FLEX"; then 19517 { echo "$as_me:$LINENO: result: $FLEX" >&5 19518echo "${ECHO_T}$FLEX" >&6; } 19519else 19520 { echo "$as_me:$LINENO: result: no" >&5 19521echo "${ECHO_T}no" >&6; } 19522fi 19523 19524 19525fi 19526 19527 19528 19529{ echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5 19530echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6; } 19531if test "${ac_cv_lib_nsl_gethostname+set}" = set; then 19532 echo $ECHO_N "(cached) $ECHO_C" >&6 19533else 19534 ac_check_lib_save_LIBS=$LIBS 19535LIBS="-lnsl $LIBS" 19536cat >conftest.$ac_ext <<_ACEOF 19537/* confdefs.h. */ 19538_ACEOF 19539cat confdefs.h >>conftest.$ac_ext 19540cat >>conftest.$ac_ext <<_ACEOF 19541/* end confdefs.h. */ 19542 19543/* Override any GCC internal prototype to avoid an error. 19544 Use char because int might match the return type of a GCC 19545 builtin and then its argument prototype would still apply. */ 19546#ifdef __cplusplus 19547extern "C" 19548#endif 19549char gethostname (); 19550int 19551main () 19552{ 19553return gethostname (); 19554 ; 19555 return 0; 19556} 19557_ACEOF 19558rm -f conftest.$ac_objext conftest$ac_exeext 19559if { (ac_try="$ac_link" 19560case "(($ac_try" in 19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19562 *) ac_try_echo=$ac_try;; 19563esac 19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19565 (eval "$ac_link") 2>conftest.er1 19566 ac_status=$? 19567 grep -v '^ *+' conftest.er1 >conftest.err 19568 rm -f conftest.er1 19569 cat conftest.err >&5 19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19571 (exit $ac_status); } && { 19572 test -z "$ac_c_werror_flag" || 19573 test ! -s conftest.err 19574 } && test -s conftest$ac_exeext && 19575 $as_test_x conftest$ac_exeext; then 19576 ac_cv_lib_nsl_gethostname=yes 19577else 19578 echo "$as_me: failed program was:" >&5 19579sed 's/^/| /' conftest.$ac_ext >&5 19580 19581 ac_cv_lib_nsl_gethostname=no 19582fi 19583 19584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19585 conftest$ac_exeext conftest.$ac_ext 19586LIBS=$ac_check_lib_save_LIBS 19587fi 19588{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5 19589echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6; } 19590if test $ac_cv_lib_nsl_gethostname = yes; then 19591 cat >>confdefs.h <<_ACEOF 19592#define HAVE_LIBNSL 1 19593_ACEOF 19594 19595 LIBS="-lnsl $LIBS" 19596 19597fi 19598 19599if test ".`echo $LIBS | grep nsl`" = . ;then 19600 19601{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 19602echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 19603if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 19604 echo $ECHO_N "(cached) $ECHO_C" >&6 19605else 19606 ac_check_lib_save_LIBS=$LIBS 19607LIBS="-lnsl $LIBS" 19608cat >conftest.$ac_ext <<_ACEOF 19609/* confdefs.h. */ 19610_ACEOF 19611cat confdefs.h >>conftest.$ac_ext 19612cat >>conftest.$ac_ext <<_ACEOF 19613/* end confdefs.h. */ 19614 19615/* Override any GCC internal prototype to avoid an error. 19616 Use char because int might match the return type of a GCC 19617 builtin and then its argument prototype would still apply. */ 19618#ifdef __cplusplus 19619extern "C" 19620#endif 19621char gethostbyname (); 19622int 19623main () 19624{ 19625return gethostbyname (); 19626 ; 19627 return 0; 19628} 19629_ACEOF 19630rm -f conftest.$ac_objext conftest$ac_exeext 19631if { (ac_try="$ac_link" 19632case "(($ac_try" in 19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19634 *) ac_try_echo=$ac_try;; 19635esac 19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19637 (eval "$ac_link") 2>conftest.er1 19638 ac_status=$? 19639 grep -v '^ *+' conftest.er1 >conftest.err 19640 rm -f conftest.er1 19641 cat conftest.err >&5 19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19643 (exit $ac_status); } && { 19644 test -z "$ac_c_werror_flag" || 19645 test ! -s conftest.err 19646 } && test -s conftest$ac_exeext && 19647 $as_test_x conftest$ac_exeext; then 19648 ac_cv_lib_nsl_gethostbyname=yes 19649else 19650 echo "$as_me: failed program was:" >&5 19651sed 's/^/| /' conftest.$ac_ext >&5 19652 19653 ac_cv_lib_nsl_gethostbyname=no 19654fi 19655 19656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19657 conftest$ac_exeext conftest.$ac_ext 19658LIBS=$ac_check_lib_save_LIBS 19659fi 19660{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 19661echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 19662if test $ac_cv_lib_nsl_gethostbyname = yes; then 19663 cat >>confdefs.h <<_ACEOF 19664#define HAVE_LIBNSL 1 19665_ACEOF 19666 19667 LIBS="-lnsl $LIBS" 19668 19669fi 19670 19671fi 19672 19673{ echo "$as_me:$LINENO: checking for accept in -lsocket" >&5 19674echo $ECHO_N "checking for accept in -lsocket... $ECHO_C" >&6; } 19675if test "${ac_cv_lib_socket_accept+set}" = set; then 19676 echo $ECHO_N "(cached) $ECHO_C" >&6 19677else 19678 ac_check_lib_save_LIBS=$LIBS 19679LIBS="-lsocket $LIBS" 19680cat >conftest.$ac_ext <<_ACEOF 19681/* confdefs.h. */ 19682_ACEOF 19683cat confdefs.h >>conftest.$ac_ext 19684cat >>conftest.$ac_ext <<_ACEOF 19685/* end confdefs.h. */ 19686 19687/* Override any GCC internal prototype to avoid an error. 19688 Use char because int might match the return type of a GCC 19689 builtin and then its argument prototype would still apply. */ 19690#ifdef __cplusplus 19691extern "C" 19692#endif 19693char accept (); 19694int 19695main () 19696{ 19697return accept (); 19698 ; 19699 return 0; 19700} 19701_ACEOF 19702rm -f conftest.$ac_objext conftest$ac_exeext 19703if { (ac_try="$ac_link" 19704case "(($ac_try" in 19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19706 *) ac_try_echo=$ac_try;; 19707esac 19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19709 (eval "$ac_link") 2>conftest.er1 19710 ac_status=$? 19711 grep -v '^ *+' conftest.er1 >conftest.err 19712 rm -f conftest.er1 19713 cat conftest.err >&5 19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19715 (exit $ac_status); } && { 19716 test -z "$ac_c_werror_flag" || 19717 test ! -s conftest.err 19718 } && test -s conftest$ac_exeext && 19719 $as_test_x conftest$ac_exeext; then 19720 ac_cv_lib_socket_accept=yes 19721else 19722 echo "$as_me: failed program was:" >&5 19723sed 's/^/| /' conftest.$ac_ext >&5 19724 19725 ac_cv_lib_socket_accept=no 19726fi 19727 19728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19729 conftest$ac_exeext conftest.$ac_ext 19730LIBS=$ac_check_lib_save_LIBS 19731fi 19732{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5 19733echo "${ECHO_T}$ac_cv_lib_socket_accept" >&6; } 19734if test $ac_cv_lib_socket_accept = yes; then 19735 cat >>confdefs.h <<_ACEOF 19736#define HAVE_LIBSOCKET 1 19737_ACEOF 19738 19739 LIBS="-lsocket $LIBS" 19740 19741fi 19742 19743 19744 19745for ac_header in sys/time.h 19746do 19747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19749 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19752 echo $ECHO_N "(cached) $ECHO_C" >&6 19753fi 19754ac_res=`eval echo '${'$as_ac_Header'}'` 19755 { echo "$as_me:$LINENO: result: $ac_res" >&5 19756echo "${ECHO_T}$ac_res" >&6; } 19757else 19758 # Is the header compilable? 19759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19761cat >conftest.$ac_ext <<_ACEOF 19762/* confdefs.h. */ 19763_ACEOF 19764cat confdefs.h >>conftest.$ac_ext 19765cat >>conftest.$ac_ext <<_ACEOF 19766/* end confdefs.h. */ 19767$ac_includes_default 19768#include <$ac_header> 19769_ACEOF 19770rm -f conftest.$ac_objext 19771if { (ac_try="$ac_compile" 19772case "(($ac_try" in 19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19774 *) ac_try_echo=$ac_try;; 19775esac 19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19777 (eval "$ac_compile") 2>conftest.er1 19778 ac_status=$? 19779 grep -v '^ *+' conftest.er1 >conftest.err 19780 rm -f conftest.er1 19781 cat conftest.err >&5 19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19783 (exit $ac_status); } && { 19784 test -z "$ac_c_werror_flag" || 19785 test ! -s conftest.err 19786 } && test -s conftest.$ac_objext; then 19787 ac_header_compiler=yes 19788else 19789 echo "$as_me: failed program was:" >&5 19790sed 's/^/| /' conftest.$ac_ext >&5 19791 19792 ac_header_compiler=no 19793fi 19794 19795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19797echo "${ECHO_T}$ac_header_compiler" >&6; } 19798 19799# Is the header present? 19800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19802cat >conftest.$ac_ext <<_ACEOF 19803/* confdefs.h. */ 19804_ACEOF 19805cat confdefs.h >>conftest.$ac_ext 19806cat >>conftest.$ac_ext <<_ACEOF 19807/* end confdefs.h. */ 19808#include <$ac_header> 19809_ACEOF 19810if { (ac_try="$ac_cpp conftest.$ac_ext" 19811case "(($ac_try" in 19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19813 *) ac_try_echo=$ac_try;; 19814esac 19815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19817 ac_status=$? 19818 grep -v '^ *+' conftest.er1 >conftest.err 19819 rm -f conftest.er1 19820 cat conftest.err >&5 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19822 (exit $ac_status); } >/dev/null && { 19823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19824 test ! -s conftest.err 19825 }; then 19826 ac_header_preproc=yes 19827else 19828 echo "$as_me: failed program was:" >&5 19829sed 's/^/| /' conftest.$ac_ext >&5 19830 19831 ac_header_preproc=no 19832fi 19833 19834rm -f conftest.err conftest.$ac_ext 19835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19836echo "${ECHO_T}$ac_header_preproc" >&6; } 19837 19838# So? What about this header? 19839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19840 yes:no: ) 19841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19845 ac_header_preproc=yes 19846 ;; 19847 no:yes:* ) 19848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19860 19861 ;; 19862esac 19863{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19866 echo $ECHO_N "(cached) $ECHO_C" >&6 19867else 19868 eval "$as_ac_Header=\$ac_header_preproc" 19869fi 19870ac_res=`eval echo '${'$as_ac_Header'}'` 19871 { echo "$as_me:$LINENO: result: $ac_res" >&5 19872echo "${ECHO_T}$ac_res" >&6; } 19873 19874fi 19875if test `eval echo '${'$as_ac_Header'}'` = yes; then 19876 cat >>confdefs.h <<_ACEOF 19877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19878_ACEOF 19879 19880fi 19881 19882done 19883 19884 19885 19886for ac_header in features.h 19887do 19888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19890 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19893 echo $ECHO_N "(cached) $ECHO_C" >&6 19894fi 19895ac_res=`eval echo '${'$as_ac_Header'}'` 19896 { echo "$as_me:$LINENO: result: $ac_res" >&5 19897echo "${ECHO_T}$ac_res" >&6; } 19898else 19899 # Is the header compilable? 19900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19902cat >conftest.$ac_ext <<_ACEOF 19903/* confdefs.h. */ 19904_ACEOF 19905cat confdefs.h >>conftest.$ac_ext 19906cat >>conftest.$ac_ext <<_ACEOF 19907/* end confdefs.h. */ 19908$ac_includes_default 19909#include <$ac_header> 19910_ACEOF 19911rm -f conftest.$ac_objext 19912if { (ac_try="$ac_compile" 19913case "(($ac_try" in 19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19915 *) ac_try_echo=$ac_try;; 19916esac 19917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19918 (eval "$ac_compile") 2>conftest.er1 19919 ac_status=$? 19920 grep -v '^ *+' conftest.er1 >conftest.err 19921 rm -f conftest.er1 19922 cat conftest.err >&5 19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19924 (exit $ac_status); } && { 19925 test -z "$ac_c_werror_flag" || 19926 test ! -s conftest.err 19927 } && test -s conftest.$ac_objext; then 19928 ac_header_compiler=yes 19929else 19930 echo "$as_me: failed program was:" >&5 19931sed 's/^/| /' conftest.$ac_ext >&5 19932 19933 ac_header_compiler=no 19934fi 19935 19936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19938echo "${ECHO_T}$ac_header_compiler" >&6; } 19939 19940# Is the header present? 19941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19943cat >conftest.$ac_ext <<_ACEOF 19944/* confdefs.h. */ 19945_ACEOF 19946cat confdefs.h >>conftest.$ac_ext 19947cat >>conftest.$ac_ext <<_ACEOF 19948/* end confdefs.h. */ 19949#include <$ac_header> 19950_ACEOF 19951if { (ac_try="$ac_cpp conftest.$ac_ext" 19952case "(($ac_try" in 19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19954 *) ac_try_echo=$ac_try;; 19955esac 19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19958 ac_status=$? 19959 grep -v '^ *+' conftest.er1 >conftest.err 19960 rm -f conftest.er1 19961 cat conftest.err >&5 19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19963 (exit $ac_status); } >/dev/null && { 19964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19965 test ! -s conftest.err 19966 }; then 19967 ac_header_preproc=yes 19968else 19969 echo "$as_me: failed program was:" >&5 19970sed 's/^/| /' conftest.$ac_ext >&5 19971 19972 ac_header_preproc=no 19973fi 19974 19975rm -f conftest.err conftest.$ac_ext 19976{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19977echo "${ECHO_T}$ac_header_preproc" >&6; } 19978 19979# So? What about this header? 19980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19981 yes:no: ) 19982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19986 ac_header_preproc=yes 19987 ;; 19988 no:yes:* ) 19989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19996echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20001 20002 ;; 20003esac 20004{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20007 echo $ECHO_N "(cached) $ECHO_C" >&6 20008else 20009 eval "$as_ac_Header=\$ac_header_preproc" 20010fi 20011ac_res=`eval echo '${'$as_ac_Header'}'` 20012 { echo "$as_me:$LINENO: result: $ac_res" >&5 20013echo "${ECHO_T}$ac_res" >&6; } 20014 20015fi 20016if test `eval echo '${'$as_ac_Header'}'` = yes; then 20017 cat >>confdefs.h <<_ACEOF 20018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20019_ACEOF 20020 20021fi 20022 20023done 20024 20025{ echo "$as_me:$LINENO: checking whether _GNU_SOURCE is required under GNU glibc" >&5 20026echo $ECHO_N "checking whether _GNU_SOURCE is required under GNU glibc... $ECHO_C" >&6; } 20027if test "$cross_compiling" = yes; then 20028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20029See \`config.log' for more details." >&5 20030echo "$as_me: error: cannot run test program while cross compiling 20031See \`config.log' for more details." >&2;} 20032 { (exit 1); exit 1; }; } 20033else 20034 cat >conftest.$ac_ext <<_ACEOF 20035/* confdefs.h. */ 20036_ACEOF 20037cat confdefs.h >>conftest.$ac_ext 20038cat >>conftest.$ac_ext <<_ACEOF 20039/* end confdefs.h. */ 20040#define RETURN 1 20041#ifdef HAVE_FEATURES_H 20042#include <features.h> 20043#if (__GLIBC__+0) > 0 20044#undef RETURN 20045#define RETURN 0 20046#endif 20047#endif 20048int main(int argc, char *argv) { return RETURN; } 20049 20050_ACEOF 20051rm -f conftest$ac_exeext 20052if { (ac_try="$ac_link" 20053case "(($ac_try" in 20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20055 *) ac_try_echo=$ac_try;; 20056esac 20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20058 (eval "$ac_link") 2>&5 20059 ac_status=$? 20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20062 { (case "(($ac_try" in 20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20064 *) ac_try_echo=$ac_try;; 20065esac 20066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20067 (eval "$ac_try") 2>&5 20068 ac_status=$? 20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20070 (exit $ac_status); }; }; then 20071 { echo "$as_me:$LINENO: result: yes" >&5 20072echo "${ECHO_T}yes" >&6; } 20073CFLAGS="$CFLAGS -D_GNU_SOURCE" 20074 20075else 20076 echo "$as_me: program exited with status $ac_status" >&5 20077echo "$as_me: failed program was:" >&5 20078sed 's/^/| /' conftest.$ac_ext >&5 20079 20080( exit $ac_status ) 20081{ echo "$as_me:$LINENO: result: no" >&5 20082echo "${ECHO_T}no" >&6; } 20083 20084fi 20085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20086fi 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099for ac_func in inet_aton inet_pton inet_ntoa inet_ntop snprintf vsnprintf setitimer isnan isinf 20100do 20101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20102{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20105 echo $ECHO_N "(cached) $ECHO_C" >&6 20106else 20107 cat >conftest.$ac_ext <<_ACEOF 20108/* confdefs.h. */ 20109_ACEOF 20110cat confdefs.h >>conftest.$ac_ext 20111cat >>conftest.$ac_ext <<_ACEOF 20112/* end confdefs.h. */ 20113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20114 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20115#define $ac_func innocuous_$ac_func 20116 20117/* System header to define __stub macros and hopefully few prototypes, 20118 which can conflict with char $ac_func (); below. 20119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20120 <limits.h> exists even on freestanding compilers. */ 20121 20122#ifdef __STDC__ 20123# include <limits.h> 20124#else 20125# include <assert.h> 20126#endif 20127 20128#undef $ac_func 20129 20130/* Override any GCC internal prototype to avoid an error. 20131 Use char because int might match the return type of a GCC 20132 builtin and then its argument prototype would still apply. */ 20133#ifdef __cplusplus 20134extern "C" 20135#endif 20136char $ac_func (); 20137/* The GNU C library defines this for functions which it implements 20138 to always fail with ENOSYS. Some functions are actually named 20139 something starting with __ and the normal name is an alias. */ 20140#if defined __stub_$ac_func || defined __stub___$ac_func 20141choke me 20142#endif 20143 20144int 20145main () 20146{ 20147return $ac_func (); 20148 ; 20149 return 0; 20150} 20151_ACEOF 20152rm -f conftest.$ac_objext conftest$ac_exeext 20153if { (ac_try="$ac_link" 20154case "(($ac_try" in 20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20156 *) ac_try_echo=$ac_try;; 20157esac 20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20159 (eval "$ac_link") 2>conftest.er1 20160 ac_status=$? 20161 grep -v '^ *+' conftest.er1 >conftest.err 20162 rm -f conftest.er1 20163 cat conftest.err >&5 20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20165 (exit $ac_status); } && { 20166 test -z "$ac_c_werror_flag" || 20167 test ! -s conftest.err 20168 } && test -s conftest$ac_exeext && 20169 $as_test_x conftest$ac_exeext; then 20170 eval "$as_ac_var=yes" 20171else 20172 echo "$as_me: failed program was:" >&5 20173sed 's/^/| /' conftest.$ac_ext >&5 20174 20175 eval "$as_ac_var=no" 20176fi 20177 20178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20179 conftest$ac_exeext conftest.$ac_ext 20180fi 20181ac_res=`eval echo '${'$as_ac_var'}'` 20182 { echo "$as_me:$LINENO: result: $ac_res" >&5 20183echo "${ECHO_T}$ac_res" >&6; } 20184if test `eval echo '${'$as_ac_var'}'` = yes; then 20185 cat >>confdefs.h <<_ACEOF 20186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20187_ACEOF 20188 20189fi 20190done 20191 20192 20193 20194 { echo "$as_me:$LINENO: checking for va_copy() function" >&5 20195echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; } 20196 if test "${ac_cv_va_copy+set}" = set; then 20197 echo $ECHO_N "(cached) $ECHO_C" >&6 20198else 20199 20200 ac_cv_va_copy="" 20201 20202 20203 20204 if test ".$ac_cv_va_copy" = .; then 20205 if test "$cross_compiling" = yes; then 20206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20207See \`config.log' for more details." >&5 20208echo "$as_me: error: cannot run test program while cross compiling 20209See \`config.log' for more details." >&2;} 20210 { (exit 1); exit 1; }; } 20211else 20212 cat >conftest.$ac_ext <<_ACEOF 20213/* confdefs.h. */ 20214_ACEOF 20215cat confdefs.h >>conftest.$ac_ext 20216cat >>conftest.$ac_ext <<_ACEOF 20217/* end confdefs.h. */ 20218 20219#include <stdlib.h> 20220#include <stdarg.h> 20221#include <string.h> 20222#define DO_VA_COPY(d, s) va_copy((d), (s)) 20223void test(char *str, ...) 20224{ 20225 va_list ap, ap2; 20226 int i; 20227 va_start(ap, str); 20228 DO_VA_COPY(ap2, ap); 20229 for (i = 1; i <= 9; i++) { 20230 int k = (int)va_arg(ap, int); 20231 if (k != i) 20232 abort(); 20233 } 20234 DO_VA_COPY(ap, ap2); 20235 for (i = 1; i <= 9; i++) { 20236 int k = (int)va_arg(ap, int); 20237 if (k != i) 20238 abort(); 20239 } 20240 va_end(ap); 20241} 20242int main(int argc, char *argv[]) 20243{ 20244 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20245 exit(0); 20246} 20247 20248_ACEOF 20249rm -f conftest$ac_exeext 20250if { (ac_try="$ac_link" 20251case "(($ac_try" in 20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20253 *) ac_try_echo=$ac_try;; 20254esac 20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20256 (eval "$ac_link") 2>&5 20257 ac_status=$? 20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20260 { (case "(($ac_try" in 20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20262 *) ac_try_echo=$ac_try;; 20263esac 20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20265 (eval "$ac_try") 2>&5 20266 ac_status=$? 20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20268 (exit $ac_status); }; }; then 20269 ac_cv_va_copy="C99" 20270else 20271 echo "$as_me: program exited with status $ac_status" >&5 20272echo "$as_me: failed program was:" >&5 20273sed 's/^/| /' conftest.$ac_ext >&5 20274 20275fi 20276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20277fi 20278 20279 20280 fi 20281 20282 20283 20284 20285 if test ".$ac_cv_va_copy" = .; then 20286 if test "$cross_compiling" = yes; then 20287 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20288See \`config.log' for more details." >&5 20289echo "$as_me: error: cannot run test program while cross compiling 20290See \`config.log' for more details." >&2;} 20291 { (exit 1); exit 1; }; } 20292else 20293 cat >conftest.$ac_ext <<_ACEOF 20294/* confdefs.h. */ 20295_ACEOF 20296cat confdefs.h >>conftest.$ac_ext 20297cat >>conftest.$ac_ext <<_ACEOF 20298/* end confdefs.h. */ 20299 20300#include <stdlib.h> 20301#include <stdarg.h> 20302#include <string.h> 20303#define DO_VA_COPY(d, s) VA_COPY((d), (s)) 20304void test(char *str, ...) 20305{ 20306 va_list ap, ap2; 20307 int i; 20308 va_start(ap, str); 20309 DO_VA_COPY(ap2, ap); 20310 for (i = 1; i <= 9; i++) { 20311 int k = (int)va_arg(ap, int); 20312 if (k != i) 20313 abort(); 20314 } 20315 DO_VA_COPY(ap, ap2); 20316 for (i = 1; i <= 9; i++) { 20317 int k = (int)va_arg(ap, int); 20318 if (k != i) 20319 abort(); 20320 } 20321 va_end(ap); 20322} 20323int main(int argc, char *argv[]) 20324{ 20325 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20326 exit(0); 20327} 20328 20329_ACEOF 20330rm -f conftest$ac_exeext 20331if { (ac_try="$ac_link" 20332case "(($ac_try" in 20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20334 *) ac_try_echo=$ac_try;; 20335esac 20336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20337 (eval "$ac_link") 2>&5 20338 ac_status=$? 20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20341 { (case "(($ac_try" in 20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20343 *) ac_try_echo=$ac_try;; 20344esac 20345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20346 (eval "$ac_try") 2>&5 20347 ac_status=$? 20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20349 (exit $ac_status); }; }; then 20350 ac_cv_va_copy="GCM" 20351else 20352 echo "$as_me: program exited with status $ac_status" >&5 20353echo "$as_me: failed program was:" >&5 20354sed 's/^/| /' conftest.$ac_ext >&5 20355 20356fi 20357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20358fi 20359 20360 20361 fi 20362 20363 20364 20365 20366 if test ".$ac_cv_va_copy" = .; then 20367 if test "$cross_compiling" = yes; then 20368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20369See \`config.log' for more details." >&5 20370echo "$as_me: error: cannot run test program while cross compiling 20371See \`config.log' for more details." >&2;} 20372 { (exit 1); exit 1; }; } 20373else 20374 cat >conftest.$ac_ext <<_ACEOF 20375/* confdefs.h. */ 20376_ACEOF 20377cat confdefs.h >>conftest.$ac_ext 20378cat >>conftest.$ac_ext <<_ACEOF 20379/* end confdefs.h. */ 20380 20381#include <stdlib.h> 20382#include <stdarg.h> 20383#include <string.h> 20384#define DO_VA_COPY(d, s) __va_copy((d), (s)) 20385void test(char *str, ...) 20386{ 20387 va_list ap, ap2; 20388 int i; 20389 va_start(ap, str); 20390 DO_VA_COPY(ap2, ap); 20391 for (i = 1; i <= 9; i++) { 20392 int k = (int)va_arg(ap, int); 20393 if (k != i) 20394 abort(); 20395 } 20396 DO_VA_COPY(ap, ap2); 20397 for (i = 1; i <= 9; i++) { 20398 int k = (int)va_arg(ap, int); 20399 if (k != i) 20400 abort(); 20401 } 20402 va_end(ap); 20403} 20404int main(int argc, char *argv[]) 20405{ 20406 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20407 exit(0); 20408} 20409 20410_ACEOF 20411rm -f conftest$ac_exeext 20412if { (ac_try="$ac_link" 20413case "(($ac_try" in 20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20415 *) ac_try_echo=$ac_try;; 20416esac 20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20418 (eval "$ac_link") 2>&5 20419 ac_status=$? 20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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_va_copy="GCH" 20432else 20433 echo "$as_me: program exited with status $ac_status" >&5 20434echo "$as_me: failed program was:" >&5 20435sed 's/^/| /' conftest.$ac_ext >&5 20436 20437fi 20438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20439fi 20440 20441 20442 fi 20443 20444 20445 20446 20447 if test ".$ac_cv_va_copy" = .; then 20448 if test "$cross_compiling" = yes; then 20449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20450See \`config.log' for more details." >&5 20451echo "$as_me: error: cannot run test program while cross compiling 20452See \`config.log' for more details." >&2;} 20453 { (exit 1); exit 1; }; } 20454else 20455 cat >conftest.$ac_ext <<_ACEOF 20456/* confdefs.h. */ 20457_ACEOF 20458cat confdefs.h >>conftest.$ac_ext 20459cat >>conftest.$ac_ext <<_ACEOF 20460/* end confdefs.h. */ 20461 20462#include <stdlib.h> 20463#include <stdarg.h> 20464#include <string.h> 20465#define DO_VA_COPY(d, s) __builtin_va_copy((d), (s)) 20466void test(char *str, ...) 20467{ 20468 va_list ap, ap2; 20469 int i; 20470 va_start(ap, str); 20471 DO_VA_COPY(ap2, ap); 20472 for (i = 1; i <= 9; i++) { 20473 int k = (int)va_arg(ap, int); 20474 if (k != i) 20475 abort(); 20476 } 20477 DO_VA_COPY(ap, ap2); 20478 for (i = 1; i <= 9; i++) { 20479 int k = (int)va_arg(ap, int); 20480 if (k != i) 20481 abort(); 20482 } 20483 va_end(ap); 20484} 20485int main(int argc, char *argv[]) 20486{ 20487 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20488 exit(0); 20489} 20490 20491_ACEOF 20492rm -f conftest$ac_exeext 20493if { (ac_try="$ac_link" 20494case "(($ac_try" in 20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20496 *) ac_try_echo=$ac_try;; 20497esac 20498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20499 (eval "$ac_link") 2>&5 20500 ac_status=$? 20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20503 { (case "(($ac_try" in 20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20505 *) ac_try_echo=$ac_try;; 20506esac 20507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20508 (eval "$ac_try") 2>&5 20509 ac_status=$? 20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20511 (exit $ac_status); }; }; then 20512 ac_cv_va_copy="GCB" 20513else 20514 echo "$as_me: program exited with status $ac_status" >&5 20515echo "$as_me: failed program was:" >&5 20516sed 's/^/| /' conftest.$ac_ext >&5 20517 20518fi 20519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20520fi 20521 20522 20523 fi 20524 20525 20526 20527 20528 if test ".$ac_cv_va_copy" = .; then 20529 if test "$cross_compiling" = yes; then 20530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20531See \`config.log' for more details." >&5 20532echo "$as_me: error: cannot run test program while cross compiling 20533See \`config.log' for more details." >&2;} 20534 { (exit 1); exit 1; }; } 20535else 20536 cat >conftest.$ac_ext <<_ACEOF 20537/* confdefs.h. */ 20538_ACEOF 20539cat confdefs.h >>conftest.$ac_ext 20540cat >>conftest.$ac_ext <<_ACEOF 20541/* end confdefs.h. */ 20542 20543#include <stdlib.h> 20544#include <stdarg.h> 20545#include <string.h> 20546#define DO_VA_COPY(d, s) do { (d) = (s); } while (0) 20547void test(char *str, ...) 20548{ 20549 va_list ap, ap2; 20550 int i; 20551 va_start(ap, str); 20552 DO_VA_COPY(ap2, ap); 20553 for (i = 1; i <= 9; i++) { 20554 int k = (int)va_arg(ap, int); 20555 if (k != i) 20556 abort(); 20557 } 20558 DO_VA_COPY(ap, ap2); 20559 for (i = 1; i <= 9; i++) { 20560 int k = (int)va_arg(ap, int); 20561 if (k != i) 20562 abort(); 20563 } 20564 va_end(ap); 20565} 20566int main(int argc, char *argv[]) 20567{ 20568 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20569 exit(0); 20570} 20571 20572_ACEOF 20573rm -f conftest$ac_exeext 20574if { (ac_try="$ac_link" 20575case "(($ac_try" in 20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20577 *) ac_try_echo=$ac_try;; 20578esac 20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20580 (eval "$ac_link") 2>&5 20581 ac_status=$? 20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20584 { (case "(($ac_try" in 20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20586 *) ac_try_echo=$ac_try;; 20587esac 20588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20589 (eval "$ac_try") 2>&5 20590 ac_status=$? 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); }; }; then 20593 ac_cv_va_copy="ASS" 20594else 20595 echo "$as_me: program exited with status $ac_status" >&5 20596echo "$as_me: failed program was:" >&5 20597sed 's/^/| /' conftest.$ac_ext >&5 20598 20599fi 20600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20601fi 20602 20603 20604 fi 20605 20606 20607 20608 20609 if test ".$ac_cv_va_copy" = .; then 20610 if test "$cross_compiling" = yes; then 20611 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20612See \`config.log' for more details." >&5 20613echo "$as_me: error: cannot run test program while cross compiling 20614See \`config.log' for more details." >&2;} 20615 { (exit 1); exit 1; }; } 20616else 20617 cat >conftest.$ac_ext <<_ACEOF 20618/* confdefs.h. */ 20619_ACEOF 20620cat confdefs.h >>conftest.$ac_ext 20621cat >>conftest.$ac_ext <<_ACEOF 20622/* end confdefs.h. */ 20623 20624#include <stdlib.h> 20625#include <stdarg.h> 20626#include <string.h> 20627#define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0) 20628void test(char *str, ...) 20629{ 20630 va_list ap, ap2; 20631 int i; 20632 va_start(ap, str); 20633 DO_VA_COPY(ap2, ap); 20634 for (i = 1; i <= 9; i++) { 20635 int k = (int)va_arg(ap, int); 20636 if (k != i) 20637 abort(); 20638 } 20639 DO_VA_COPY(ap, ap2); 20640 for (i = 1; i <= 9; i++) { 20641 int k = (int)va_arg(ap, int); 20642 if (k != i) 20643 abort(); 20644 } 20645 va_end(ap); 20646} 20647int main(int argc, char *argv[]) 20648{ 20649 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20650 exit(0); 20651} 20652 20653_ACEOF 20654rm -f conftest$ac_exeext 20655if { (ac_try="$ac_link" 20656case "(($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_link") 2>&5 20662 ac_status=$? 20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20665 { (case "(($ac_try" in 20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20667 *) ac_try_echo=$ac_try;; 20668esac 20669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20670 (eval "$ac_try") 2>&5 20671 ac_status=$? 20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20673 (exit $ac_status); }; }; then 20674 ac_cv_va_copy="ASP" 20675else 20676 echo "$as_me: program exited with status $ac_status" >&5 20677echo "$as_me: failed program was:" >&5 20678sed 's/^/| /' conftest.$ac_ext >&5 20679 20680fi 20681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20682fi 20683 20684 20685 fi 20686 20687 20688 20689 20690 if test ".$ac_cv_va_copy" = .; then 20691 if test "$cross_compiling" = yes; then 20692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20693See \`config.log' for more details." >&5 20694echo "$as_me: error: cannot run test program while cross compiling 20695See \`config.log' for more details." >&2;} 20696 { (exit 1); exit 1; }; } 20697else 20698 cat >conftest.$ac_ext <<_ACEOF 20699/* confdefs.h. */ 20700_ACEOF 20701cat confdefs.h >>conftest.$ac_ext 20702cat >>conftest.$ac_ext <<_ACEOF 20703/* end confdefs.h. */ 20704 20705#include <stdlib.h> 20706#include <stdarg.h> 20707#include <string.h> 20708#define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s)) 20709void test(char *str, ...) 20710{ 20711 va_list ap, ap2; 20712 int i; 20713 va_start(ap, str); 20714 DO_VA_COPY(ap2, ap); 20715 for (i = 1; i <= 9; i++) { 20716 int k = (int)va_arg(ap, int); 20717 if (k != i) 20718 abort(); 20719 } 20720 DO_VA_COPY(ap, ap2); 20721 for (i = 1; i <= 9; i++) { 20722 int k = (int)va_arg(ap, int); 20723 if (k != i) 20724 abort(); 20725 } 20726 va_end(ap); 20727} 20728int main(int argc, char *argv[]) 20729{ 20730 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20731 exit(0); 20732} 20733 20734_ACEOF 20735rm -f conftest$ac_exeext 20736if { (ac_try="$ac_link" 20737case "(($ac_try" in 20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20739 *) ac_try_echo=$ac_try;; 20740esac 20741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20742 (eval "$ac_link") 2>&5 20743 ac_status=$? 20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20746 { (case "(($ac_try" in 20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20748 *) ac_try_echo=$ac_try;; 20749esac 20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20751 (eval "$ac_try") 2>&5 20752 ac_status=$? 20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20754 (exit $ac_status); }; }; then 20755 ac_cv_va_copy="CPS" 20756else 20757 echo "$as_me: program exited with status $ac_status" >&5 20758echo "$as_me: failed program was:" >&5 20759sed 's/^/| /' conftest.$ac_ext >&5 20760 20761fi 20762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20763fi 20764 20765 20766 fi 20767 20768 20769 20770 20771 if test ".$ac_cv_va_copy" = .; then 20772 if test "$cross_compiling" = yes; then 20773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20774See \`config.log' for more details." >&5 20775echo "$as_me: error: cannot run test program while cross compiling 20776See \`config.log' for more details." >&2;} 20777 { (exit 1); exit 1; }; } 20778else 20779 cat >conftest.$ac_ext <<_ACEOF 20780/* confdefs.h. */ 20781_ACEOF 20782cat confdefs.h >>conftest.$ac_ext 20783cat >>conftest.$ac_ext <<_ACEOF 20784/* end confdefs.h. */ 20785 20786#include <stdlib.h> 20787#include <stdarg.h> 20788#include <string.h> 20789#define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s)) 20790void test(char *str, ...) 20791{ 20792 va_list ap, ap2; 20793 int i; 20794 va_start(ap, str); 20795 DO_VA_COPY(ap2, ap); 20796 for (i = 1; i <= 9; i++) { 20797 int k = (int)va_arg(ap, int); 20798 if (k != i) 20799 abort(); 20800 } 20801 DO_VA_COPY(ap, ap2); 20802 for (i = 1; i <= 9; i++) { 20803 int k = (int)va_arg(ap, int); 20804 if (k != i) 20805 abort(); 20806 } 20807 va_end(ap); 20808} 20809int main(int argc, char *argv[]) 20810{ 20811 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 20812 exit(0); 20813} 20814 20815_ACEOF 20816rm -f conftest$ac_exeext 20817if { (ac_try="$ac_link" 20818case "(($ac_try" in 20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20820 *) ac_try_echo=$ac_try;; 20821esac 20822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20823 (eval "$ac_link") 2>&5 20824 ac_status=$? 20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20827 { (case "(($ac_try" in 20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20829 *) ac_try_echo=$ac_try;; 20830esac 20831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20832 (eval "$ac_try") 2>&5 20833 ac_status=$? 20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20835 (exit $ac_status); }; }; then 20836 ac_cv_va_copy="CPP" 20837else 20838 echo "$as_me: program exited with status $ac_status" >&5 20839echo "$as_me: failed program was:" >&5 20840sed 's/^/| /' conftest.$ac_ext >&5 20841 20842fi 20843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20844fi 20845 20846 20847 fi 20848 20849 if test ".$ac_cv_va_copy" = .; then 20850 { { echo "$as_me:$LINENO: error: no working implementation found" >&5 20851echo "$as_me: error: no working implementation found" >&2;} 20852 { (exit 1); exit 1; }; } 20853 fi 20854 20855fi 20856 20857 if test ".$ac_cv_va_copy" = ".C99"; then 20858 20859cat >>confdefs.h <<\_ACEOF 20860#define HAVE_VA_COPY 1 20861_ACEOF 20862 20863 fi 20864 20865cat >>confdefs.h <<_ACEOF 20866#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy 20867_ACEOF 20868 20869 20870 20871 if test ".$ac_cv_va_copy" = ".C99"; then 20872 { echo "$as_me:$LINENO: result: yes" >&5 20873echo "${ECHO_T}yes" >&6; } 20874 else 20875 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5 20876echo "${ECHO_T}no (using fallback implementation)" >&6; } 20877 fi 20878 20879 20880 20881 20882case $PLATFORM in 20883 *-*-solaris2.[6-8]* ) 20884 20885cat >>confdefs.h <<\_ACEOF 20886#define HAVE_VSYSLOG_USVALIST 1 20887_ACEOF 20888 20889 ;; 20890esac 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 # make sure libnsl and libsocket are linked in if they exist 20914 20915{ echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5 20916echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6; } 20917if test "${ac_cv_lib_nsl_gethostname+set}" = set; then 20918 echo $ECHO_N "(cached) $ECHO_C" >&6 20919else 20920 ac_check_lib_save_LIBS=$LIBS 20921LIBS="-lnsl $LIBS" 20922cat >conftest.$ac_ext <<_ACEOF 20923/* confdefs.h. */ 20924_ACEOF 20925cat confdefs.h >>conftest.$ac_ext 20926cat >>conftest.$ac_ext <<_ACEOF 20927/* end confdefs.h. */ 20928 20929/* Override any GCC internal prototype to avoid an error. 20930 Use char because int might match the return type of a GCC 20931 builtin and then its argument prototype would still apply. */ 20932#ifdef __cplusplus 20933extern "C" 20934#endif 20935char gethostname (); 20936int 20937main () 20938{ 20939return gethostname (); 20940 ; 20941 return 0; 20942} 20943_ACEOF 20944rm -f conftest.$ac_objext conftest$ac_exeext 20945if { (ac_try="$ac_link" 20946case "(($ac_try" in 20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20948 *) ac_try_echo=$ac_try;; 20949esac 20950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20951 (eval "$ac_link") 2>conftest.er1 20952 ac_status=$? 20953 grep -v '^ *+' conftest.er1 >conftest.err 20954 rm -f conftest.er1 20955 cat conftest.err >&5 20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20957 (exit $ac_status); } && { 20958 test -z "$ac_c_werror_flag" || 20959 test ! -s conftest.err 20960 } && test -s conftest$ac_exeext && 20961 $as_test_x conftest$ac_exeext; then 20962 ac_cv_lib_nsl_gethostname=yes 20963else 20964 echo "$as_me: failed program was:" >&5 20965sed 's/^/| /' conftest.$ac_ext >&5 20966 20967 ac_cv_lib_nsl_gethostname=no 20968fi 20969 20970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20971 conftest$ac_exeext conftest.$ac_ext 20972LIBS=$ac_check_lib_save_LIBS 20973fi 20974{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5 20975echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6; } 20976if test $ac_cv_lib_nsl_gethostname = yes; then 20977 cat >>confdefs.h <<_ACEOF 20978#define HAVE_LIBNSL 1 20979_ACEOF 20980 20981 LIBS="-lnsl $LIBS" 20982 20983fi 20984 20985 if test ".`echo $LIBS | grep nsl`" = .; then 20986 20987{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20988echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 20989if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20990 echo $ECHO_N "(cached) $ECHO_C" >&6 20991else 20992 ac_check_lib_save_LIBS=$LIBS 20993LIBS="-lnsl $LIBS" 20994cat >conftest.$ac_ext <<_ACEOF 20995/* confdefs.h. */ 20996_ACEOF 20997cat confdefs.h >>conftest.$ac_ext 20998cat >>conftest.$ac_ext <<_ACEOF 20999/* end confdefs.h. */ 21000 21001/* Override any GCC internal prototype to avoid an error. 21002 Use char because int might match the return type of a GCC 21003 builtin and then its argument prototype would still apply. */ 21004#ifdef __cplusplus 21005extern "C" 21006#endif 21007char gethostbyname (); 21008int 21009main () 21010{ 21011return gethostbyname (); 21012 ; 21013 return 0; 21014} 21015_ACEOF 21016rm -f conftest.$ac_objext conftest$ac_exeext 21017if { (ac_try="$ac_link" 21018case "(($ac_try" in 21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21020 *) ac_try_echo=$ac_try;; 21021esac 21022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21023 (eval "$ac_link") 2>conftest.er1 21024 ac_status=$? 21025 grep -v '^ *+' conftest.er1 >conftest.err 21026 rm -f conftest.er1 21027 cat conftest.err >&5 21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21029 (exit $ac_status); } && { 21030 test -z "$ac_c_werror_flag" || 21031 test ! -s conftest.err 21032 } && test -s conftest$ac_exeext && 21033 $as_test_x conftest$ac_exeext; then 21034 ac_cv_lib_nsl_gethostbyname=yes 21035else 21036 echo "$as_me: failed program was:" >&5 21037sed 's/^/| /' conftest.$ac_ext >&5 21038 21039 ac_cv_lib_nsl_gethostbyname=no 21040fi 21041 21042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21043 conftest$ac_exeext conftest.$ac_ext 21044LIBS=$ac_check_lib_save_LIBS 21045fi 21046{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 21047echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 21048if test $ac_cv_lib_nsl_gethostbyname = yes; then 21049 cat >>confdefs.h <<_ACEOF 21050#define HAVE_LIBNSL 1 21051_ACEOF 21052 21053 LIBS="-lnsl $LIBS" 21054 21055fi 21056 21057 fi 21058 21059{ echo "$as_me:$LINENO: checking for accept in -lsocket" >&5 21060echo $ECHO_N "checking for accept in -lsocket... $ECHO_C" >&6; } 21061if test "${ac_cv_lib_socket_accept+set}" = set; then 21062 echo $ECHO_N "(cached) $ECHO_C" >&6 21063else 21064 ac_check_lib_save_LIBS=$LIBS 21065LIBS="-lsocket $LIBS" 21066cat >conftest.$ac_ext <<_ACEOF 21067/* confdefs.h. */ 21068_ACEOF 21069cat confdefs.h >>conftest.$ac_ext 21070cat >>conftest.$ac_ext <<_ACEOF 21071/* end confdefs.h. */ 21072 21073/* Override any GCC internal prototype to avoid an error. 21074 Use char because int might match the return type of a GCC 21075 builtin and then its argument prototype would still apply. */ 21076#ifdef __cplusplus 21077extern "C" 21078#endif 21079char accept (); 21080int 21081main () 21082{ 21083return accept (); 21084 ; 21085 return 0; 21086} 21087_ACEOF 21088rm -f conftest.$ac_objext conftest$ac_exeext 21089if { (ac_try="$ac_link" 21090case "(($ac_try" in 21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21092 *) ac_try_echo=$ac_try;; 21093esac 21094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21095 (eval "$ac_link") 2>conftest.er1 21096 ac_status=$? 21097 grep -v '^ *+' conftest.er1 >conftest.err 21098 rm -f conftest.er1 21099 cat conftest.err >&5 21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21101 (exit $ac_status); } && { 21102 test -z "$ac_c_werror_flag" || 21103 test ! -s conftest.err 21104 } && test -s conftest$ac_exeext && 21105 $as_test_x conftest$ac_exeext; then 21106 ac_cv_lib_socket_accept=yes 21107else 21108 echo "$as_me: failed program was:" >&5 21109sed 's/^/| /' conftest.$ac_ext >&5 21110 21111 ac_cv_lib_socket_accept=no 21112fi 21113 21114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21115 conftest$ac_exeext conftest.$ac_ext 21116LIBS=$ac_check_lib_save_LIBS 21117fi 21118{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5 21119echo "${ECHO_T}$ac_cv_lib_socket_accept" >&6; } 21120if test $ac_cv_lib_socket_accept = yes; then 21121 cat >>confdefs.h <<_ACEOF 21122#define HAVE_LIBSOCKET 1 21123_ACEOF 21124 21125 LIBS="-lsocket $LIBS" 21126 21127fi 21128 21129 21130 # make sure some platforms find their IPv6 library 21131 21132{ echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5 21133echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; } 21134if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then 21135 echo $ECHO_N "(cached) $ECHO_C" >&6 21136else 21137 ac_check_lib_save_LIBS=$LIBS 21138LIBS="-linet6 $LIBS" 21139cat >conftest.$ac_ext <<_ACEOF 21140/* confdefs.h. */ 21141_ACEOF 21142cat confdefs.h >>conftest.$ac_ext 21143cat >>conftest.$ac_ext <<_ACEOF 21144/* end confdefs.h. */ 21145 21146/* Override any GCC internal prototype to avoid an error. 21147 Use char because int might match the return type of a GCC 21148 builtin and then its argument prototype would still apply. */ 21149#ifdef __cplusplus 21150extern "C" 21151#endif 21152char getaddrinfo (); 21153int 21154main () 21155{ 21156return getaddrinfo (); 21157 ; 21158 return 0; 21159} 21160_ACEOF 21161rm -f conftest.$ac_objext conftest$ac_exeext 21162if { (ac_try="$ac_link" 21163case "(($ac_try" in 21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21165 *) ac_try_echo=$ac_try;; 21166esac 21167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21168 (eval "$ac_link") 2>conftest.er1 21169 ac_status=$? 21170 grep -v '^ *+' conftest.er1 >conftest.err 21171 rm -f conftest.er1 21172 cat conftest.err >&5 21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21174 (exit $ac_status); } && { 21175 test -z "$ac_c_werror_flag" || 21176 test ! -s conftest.err 21177 } && test -s conftest$ac_exeext && 21178 $as_test_x conftest$ac_exeext; then 21179 ac_cv_lib_inet6_getaddrinfo=yes 21180else 21181 echo "$as_me: failed program was:" >&5 21182sed 's/^/| /' conftest.$ac_ext >&5 21183 21184 ac_cv_lib_inet6_getaddrinfo=no 21185fi 21186 21187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21188 conftest$ac_exeext conftest.$ac_ext 21189LIBS=$ac_check_lib_save_LIBS 21190fi 21191{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5 21192echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; } 21193if test $ac_cv_lib_inet6_getaddrinfo = yes; then 21194 cat >>confdefs.h <<_ACEOF 21195#define HAVE_LIBINET6 1 21196_ACEOF 21197 21198 LIBS="-linet6 $LIBS" 21199 21200fi 21201 21202 21203 # check for system headers 21204 21205 21206 21207 21208 21209for ac_header in string.h sys/types.h sys/socket.h netdb.h netinet/in.h 21210do 21211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21213 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21216 echo $ECHO_N "(cached) $ECHO_C" >&6 21217fi 21218ac_res=`eval echo '${'$as_ac_Header'}'` 21219 { echo "$as_me:$LINENO: result: $ac_res" >&5 21220echo "${ECHO_T}$ac_res" >&6; } 21221else 21222 # Is the header compilable? 21223{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21225cat >conftest.$ac_ext <<_ACEOF 21226/* confdefs.h. */ 21227_ACEOF 21228cat confdefs.h >>conftest.$ac_ext 21229cat >>conftest.$ac_ext <<_ACEOF 21230/* end confdefs.h. */ 21231$ac_includes_default 21232#include <$ac_header> 21233_ACEOF 21234rm -f conftest.$ac_objext 21235if { (ac_try="$ac_compile" 21236case "(($ac_try" in 21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21238 *) ac_try_echo=$ac_try;; 21239esac 21240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21241 (eval "$ac_compile") 2>conftest.er1 21242 ac_status=$? 21243 grep -v '^ *+' conftest.er1 >conftest.err 21244 rm -f conftest.er1 21245 cat conftest.err >&5 21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21247 (exit $ac_status); } && { 21248 test -z "$ac_c_werror_flag" || 21249 test ! -s conftest.err 21250 } && test -s conftest.$ac_objext; then 21251 ac_header_compiler=yes 21252else 21253 echo "$as_me: failed program was:" >&5 21254sed 's/^/| /' conftest.$ac_ext >&5 21255 21256 ac_header_compiler=no 21257fi 21258 21259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21260{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21261echo "${ECHO_T}$ac_header_compiler" >&6; } 21262 21263# Is the header present? 21264{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21266cat >conftest.$ac_ext <<_ACEOF 21267/* confdefs.h. */ 21268_ACEOF 21269cat confdefs.h >>conftest.$ac_ext 21270cat >>conftest.$ac_ext <<_ACEOF 21271/* end confdefs.h. */ 21272#include <$ac_header> 21273_ACEOF 21274if { (ac_try="$ac_cpp conftest.$ac_ext" 21275case "(($ac_try" in 21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21277 *) ac_try_echo=$ac_try;; 21278esac 21279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21281 ac_status=$? 21282 grep -v '^ *+' conftest.er1 >conftest.err 21283 rm -f conftest.er1 21284 cat conftest.err >&5 21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21286 (exit $ac_status); } >/dev/null && { 21287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21288 test ! -s conftest.err 21289 }; then 21290 ac_header_preproc=yes 21291else 21292 echo "$as_me: failed program was:" >&5 21293sed 's/^/| /' conftest.$ac_ext >&5 21294 21295 ac_header_preproc=no 21296fi 21297 21298rm -f conftest.err conftest.$ac_ext 21299{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21300echo "${ECHO_T}$ac_header_preproc" >&6; } 21301 21302# So? What about this header? 21303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21304 yes:no: ) 21305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21309 ac_header_preproc=yes 21310 ;; 21311 no:yes:* ) 21312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21324 21325 ;; 21326esac 21327{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21330 echo $ECHO_N "(cached) $ECHO_C" >&6 21331else 21332 eval "$as_ac_Header=\$ac_header_preproc" 21333fi 21334ac_res=`eval echo '${'$as_ac_Header'}'` 21335 { echo "$as_me:$LINENO: result: $ac_res" >&5 21336echo "${ECHO_T}$ac_res" >&6; } 21337 21338fi 21339if test `eval echo '${'$as_ac_Header'}'` = yes; then 21340 cat >>confdefs.h <<_ACEOF 21341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21342_ACEOF 21343 21344fi 21345 21346done 21347 21348 21349 # check for system functions 21350 21351 21352 21353 21354 21355 21356 21357for ac_func in inet_addr inet_aton inet_pton inet_ntoa inet_ntop snprintf getaddrinfo 21358do 21359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21360{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21362if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21363 echo $ECHO_N "(cached) $ECHO_C" >&6 21364else 21365 cat >conftest.$ac_ext <<_ACEOF 21366/* confdefs.h. */ 21367_ACEOF 21368cat confdefs.h >>conftest.$ac_ext 21369cat >>conftest.$ac_ext <<_ACEOF 21370/* end confdefs.h. */ 21371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21372 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21373#define $ac_func innocuous_$ac_func 21374 21375/* System header to define __stub macros and hopefully few prototypes, 21376 which can conflict with char $ac_func (); below. 21377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21378 <limits.h> exists even on freestanding compilers. */ 21379 21380#ifdef __STDC__ 21381# include <limits.h> 21382#else 21383# include <assert.h> 21384#endif 21385 21386#undef $ac_func 21387 21388/* Override any GCC internal prototype to avoid an error. 21389 Use char because int might match the return type of a GCC 21390 builtin and then its argument prototype would still apply. */ 21391#ifdef __cplusplus 21392extern "C" 21393#endif 21394char $ac_func (); 21395/* The GNU C library defines this for functions which it implements 21396 to always fail with ENOSYS. Some functions are actually named 21397 something starting with __ and the normal name is an alias. */ 21398#if defined __stub_$ac_func || defined __stub___$ac_func 21399choke me 21400#endif 21401 21402int 21403main () 21404{ 21405return $ac_func (); 21406 ; 21407 return 0; 21408} 21409_ACEOF 21410rm -f conftest.$ac_objext conftest$ac_exeext 21411if { (ac_try="$ac_link" 21412case "(($ac_try" in 21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21414 *) ac_try_echo=$ac_try;; 21415esac 21416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21417 (eval "$ac_link") 2>conftest.er1 21418 ac_status=$? 21419 grep -v '^ *+' conftest.er1 >conftest.err 21420 rm -f conftest.er1 21421 cat conftest.err >&5 21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21423 (exit $ac_status); } && { 21424 test -z "$ac_c_werror_flag" || 21425 test ! -s conftest.err 21426 } && test -s conftest$ac_exeext && 21427 $as_test_x conftest$ac_exeext; then 21428 eval "$as_ac_var=yes" 21429else 21430 echo "$as_me: failed program was:" >&5 21431sed 's/^/| /' conftest.$ac_ext >&5 21432 21433 eval "$as_ac_var=no" 21434fi 21435 21436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21437 conftest$ac_exeext conftest.$ac_ext 21438fi 21439ac_res=`eval echo '${'$as_ac_var'}'` 21440 { echo "$as_me:$LINENO: result: $ac_res" >&5 21441echo "${ECHO_T}$ac_res" >&6; } 21442if test `eval echo '${'$as_ac_var'}'` = yes; then 21443 cat >>confdefs.h <<_ACEOF 21444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21445_ACEOF 21446 21447fi 21448done 21449 21450 21451 { echo "$as_me:$LINENO: checking for typedef socklen_t" >&5 21452echo $ECHO_N "checking for typedef socklen_t... $ECHO_C" >&6; } 21453 if test "${ac_cv_typedef_socklen_t+set}" = set; then 21454 echo $ECHO_N "(cached) $ECHO_C" >&6 21455else 21456 21457 cat >conftest.$ac_ext <<_ACEOF 21458/* confdefs.h. */ 21459_ACEOF 21460cat confdefs.h >>conftest.$ac_ext 21461cat >>conftest.$ac_ext <<_ACEOF 21462/* end confdefs.h. */ 21463 21464#include <sys/socket.h> 21465_ACEOF 21466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21467 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 21468 ac_cv_typedef_socklen_t=yes 21469else 21470 ac_cv_typedef_socklen_t=no 21471 21472fi 21473rm -f conftest* 21474 21475 21476fi 21477 { echo "$as_me:$LINENO: result: $ac_cv_typedef_socklen_t" >&5 21478echo "${ECHO_T}$ac_cv_typedef_socklen_t" >&6; } 21479 if test $ac_cv_typedef_socklen_t = yes; then 21480 21481cat >>confdefs.h <<\_ACEOF 21482#define HAVE_SOCKLEN_T 1 21483_ACEOF 21484 21485 fi 21486 21487 { echo "$as_me:$LINENO: checking for typedef ssize_t" >&5 21488echo $ECHO_N "checking for typedef ssize_t... $ECHO_C" >&6; } 21489 if test "${ac_cv_typedef_ssize_t+set}" = set; then 21490 echo $ECHO_N "(cached) $ECHO_C" >&6 21491else 21492 21493 cat >conftest.$ac_ext <<_ACEOF 21494/* confdefs.h. */ 21495_ACEOF 21496cat confdefs.h >>conftest.$ac_ext 21497cat >>conftest.$ac_ext <<_ACEOF 21498/* end confdefs.h. */ 21499 21500#include <sys/types.h> 21501_ACEOF 21502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21503 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 21504 ac_cv_typedef_ssize_t=yes 21505else 21506 ac_cv_typedef_ssize_t=no 21507 21508fi 21509rm -f conftest* 21510 21511 21512fi 21513 { echo "$as_me:$LINENO: result: $ac_cv_typedef_ssize_t" >&5 21514echo "${ECHO_T}$ac_cv_typedef_ssize_t" >&6; } 21515 if test $ac_cv_typedef_ssize_t = yes; then 21516 21517cat >>confdefs.h <<\_ACEOF 21518#define HAVE_SSIZE_T 1 21519_ACEOF 21520 21521 fi 21522 21523 21524{ echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt(2)" >&5 21525echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt(2)... $ECHO_C" >&6; } 21526if test "$cross_compiling" = yes; then 21527 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21528See \`config.log' for more details." >&5 21529echo "$as_me: error: cannot run test program while cross compiling 21530See \`config.log' for more details." >&2;} 21531 { (exit 1); exit 1; }; } 21532else 21533 cat >conftest.$ac_ext <<_ACEOF 21534/* confdefs.h. */ 21535_ACEOF 21536cat confdefs.h >>conftest.$ac_ext 21537cat >>conftest.$ac_ext <<_ACEOF 21538/* end confdefs.h. */ 21539 21540#include <sys/types.h> 21541#include <sys/socket.h> 21542#include <sys/time.h> 21543 21544int main(void) 21545{ 21546 int s; 21547 struct timeval timeo; 21548 timeo.tv_sec = 3; 21549 timeo.tv_usec = 3; 21550 21551#ifndef SO_RCVTIMEO 21552 exit(3); 21553#else 21554 if ((s = socket(PF_INET, SOCK_STREAM, 0)) == -1) 21555 exit(2); 21556 21557 /* fails on Solaris 2.6,8,9,10 and Debian 2.2 because 21558 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */ 21559 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (void *)&timeo, sizeof(timeo)) == -1) 21560 exit(1); 21561 21562 exit(0); 21563#endif 21564} 21565 21566 21567_ACEOF 21568rm -f conftest$ac_exeext 21569if { (ac_try="$ac_link" 21570case "(($ac_try" in 21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21572 *) ac_try_echo=$ac_try;; 21573esac 21574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21575 (eval "$ac_link") 2>&5 21576 ac_status=$? 21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21579 { (case "(($ac_try" in 21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21581 *) ac_try_echo=$ac_try;; 21582esac 21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21584 (eval "$ac_try") 2>&5 21585 ac_status=$? 21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21587 (exit $ac_status); }; }; then 21588 { echo "$as_me:$LINENO: result: yes" >&5 21589echo "${ECHO_T}yes" >&6; } 21590cat >>confdefs.h <<\_ACEOF 21591#define USE_SO_RCVTIMEO 1 21592_ACEOF 21593 21594 21595else 21596 echo "$as_me: program exited with status $ac_status" >&5 21597echo "$as_me: failed program was:" >&5 21598sed 's/^/| /' conftest.$ac_ext >&5 21599 21600( exit $ac_status ) 21601 { echo "$as_me:$LINENO: result: no" >&5 21602echo "${ECHO_T}no" >&6; } 21603 21604fi 21605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21606fi 21607 21608 21609 21610 21611{ echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt(2)" >&5 21612echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt(2)... $ECHO_C" >&6; } 21613if test "$cross_compiling" = yes; then 21614 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21615See \`config.log' for more details." >&5 21616echo "$as_me: error: cannot run test program while cross compiling 21617See \`config.log' for more details." >&2;} 21618 { (exit 1); exit 1; }; } 21619else 21620 cat >conftest.$ac_ext <<_ACEOF 21621/* confdefs.h. */ 21622_ACEOF 21623cat confdefs.h >>conftest.$ac_ext 21624cat >>conftest.$ac_ext <<_ACEOF 21625/* end confdefs.h. */ 21626 21627#include <sys/types.h> 21628#include <sys/socket.h> 21629#include <sys/time.h> 21630 21631int main(void) 21632{ 21633 int s; 21634 struct timeval timeo; 21635 timeo.tv_sec = 3; 21636 timeo.tv_usec = 3; 21637 21638#ifndef SO_SNDTIMEO 21639 exit(3); 21640#else 21641 if ((s = socket(PF_INET, SOCK_STREAM, 0)) == -1) 21642 exit(2); 21643 21644 /* fails on Solaris 2.6,8,9,10 and Debian 2.2 because 21645 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */ 21646 if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (void *)&timeo, sizeof(timeo)) == -1) 21647 exit(1); 21648 21649 exit(0); 21650#endif 21651} 21652 21653 21654_ACEOF 21655rm -f conftest$ac_exeext 21656if { (ac_try="$ac_link" 21657case "(($ac_try" in 21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21659 *) ac_try_echo=$ac_try;; 21660esac 21661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21662 (eval "$ac_link") 2>&5 21663 ac_status=$? 21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21666 { (case "(($ac_try" in 21667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21668 *) ac_try_echo=$ac_try;; 21669esac 21670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21671 (eval "$ac_try") 2>&5 21672 ac_status=$? 21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21674 (exit $ac_status); }; }; then 21675 { echo "$as_me:$LINENO: result: yes" >&5 21676echo "${ECHO_T}yes" >&6; } 21677cat >>confdefs.h <<\_ACEOF 21678#define USE_SO_SNDTIMEO 1 21679_ACEOF 21680 21681 21682else 21683 echo "$as_me: program exited with status $ac_status" >&5 21684echo "$as_me: failed program was:" >&5 21685sed 's/^/| /' conftest.$ac_ext >&5 21686 21687( exit $ac_status ) 21688 { echo "$as_me:$LINENO: result: no" >&5 21689echo "${ECHO_T}no" >&6; } 21690 21691fi 21692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21693fi 21694 21695 21696 21697 21698 21699 { echo "$as_me:$LINENO: checking for va_copy() function" >&5 21700echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; } 21701 if test "${ac_cv_va_copy+set}" = set; then 21702 echo $ECHO_N "(cached) $ECHO_C" >&6 21703else 21704 21705 ac_cv_va_copy="" 21706 21707 21708 21709 if test ".$ac_cv_va_copy" = .; then 21710 if test "$cross_compiling" = yes; then 21711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21712See \`config.log' for more details." >&5 21713echo "$as_me: error: cannot run test program while cross compiling 21714See \`config.log' for more details." >&2;} 21715 { (exit 1); exit 1; }; } 21716else 21717 cat >conftest.$ac_ext <<_ACEOF 21718/* confdefs.h. */ 21719_ACEOF 21720cat confdefs.h >>conftest.$ac_ext 21721cat >>conftest.$ac_ext <<_ACEOF 21722/* end confdefs.h. */ 21723 21724#include <stdlib.h> 21725#include <stdarg.h> 21726#include <string.h> 21727#define DO_VA_COPY(d, s) va_copy((d), (s)) 21728void test(char *str, ...) 21729{ 21730 va_list ap, ap2; 21731 int i; 21732 va_start(ap, str); 21733 DO_VA_COPY(ap2, ap); 21734 for (i = 1; i <= 9; i++) { 21735 int k = (int)va_arg(ap, int); 21736 if (k != i) 21737 abort(); 21738 } 21739 DO_VA_COPY(ap, ap2); 21740 for (i = 1; i <= 9; i++) { 21741 int k = (int)va_arg(ap, int); 21742 if (k != i) 21743 abort(); 21744 } 21745 va_end(ap); 21746} 21747int main(int argc, char *argv[]) 21748{ 21749 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 21750 exit(0); 21751} 21752 21753_ACEOF 21754rm -f conftest$ac_exeext 21755if { (ac_try="$ac_link" 21756case "(($ac_try" in 21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21758 *) ac_try_echo=$ac_try;; 21759esac 21760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21761 (eval "$ac_link") 2>&5 21762 ac_status=$? 21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21765 { (case "(($ac_try" in 21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21767 *) ac_try_echo=$ac_try;; 21768esac 21769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21770 (eval "$ac_try") 2>&5 21771 ac_status=$? 21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21773 (exit $ac_status); }; }; then 21774 ac_cv_va_copy="C99" 21775else 21776 echo "$as_me: program exited with status $ac_status" >&5 21777echo "$as_me: failed program was:" >&5 21778sed 's/^/| /' conftest.$ac_ext >&5 21779 21780fi 21781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21782fi 21783 21784 21785 fi 21786 21787 21788 21789 21790 if test ".$ac_cv_va_copy" = .; then 21791 if test "$cross_compiling" = yes; then 21792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21793See \`config.log' for more details." >&5 21794echo "$as_me: error: cannot run test program while cross compiling 21795See \`config.log' for more details." >&2;} 21796 { (exit 1); exit 1; }; } 21797else 21798 cat >conftest.$ac_ext <<_ACEOF 21799/* confdefs.h. */ 21800_ACEOF 21801cat confdefs.h >>conftest.$ac_ext 21802cat >>conftest.$ac_ext <<_ACEOF 21803/* end confdefs.h. */ 21804 21805#include <stdlib.h> 21806#include <stdarg.h> 21807#include <string.h> 21808#define DO_VA_COPY(d, s) VA_COPY((d), (s)) 21809void test(char *str, ...) 21810{ 21811 va_list ap, ap2; 21812 int i; 21813 va_start(ap, str); 21814 DO_VA_COPY(ap2, ap); 21815 for (i = 1; i <= 9; i++) { 21816 int k = (int)va_arg(ap, int); 21817 if (k != i) 21818 abort(); 21819 } 21820 DO_VA_COPY(ap, ap2); 21821 for (i = 1; i <= 9; i++) { 21822 int k = (int)va_arg(ap, int); 21823 if (k != i) 21824 abort(); 21825 } 21826 va_end(ap); 21827} 21828int main(int argc, char *argv[]) 21829{ 21830 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 21831 exit(0); 21832} 21833 21834_ACEOF 21835rm -f conftest$ac_exeext 21836if { (ac_try="$ac_link" 21837case "(($ac_try" in 21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21839 *) ac_try_echo=$ac_try;; 21840esac 21841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21842 (eval "$ac_link") 2>&5 21843 ac_status=$? 21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21846 { (case "(($ac_try" in 21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21848 *) ac_try_echo=$ac_try;; 21849esac 21850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21851 (eval "$ac_try") 2>&5 21852 ac_status=$? 21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21854 (exit $ac_status); }; }; then 21855 ac_cv_va_copy="GCM" 21856else 21857 echo "$as_me: program exited with status $ac_status" >&5 21858echo "$as_me: failed program was:" >&5 21859sed 's/^/| /' conftest.$ac_ext >&5 21860 21861fi 21862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21863fi 21864 21865 21866 fi 21867 21868 21869 21870 21871 if test ".$ac_cv_va_copy" = .; then 21872 if test "$cross_compiling" = yes; then 21873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21874See \`config.log' for more details." >&5 21875echo "$as_me: error: cannot run test program while cross compiling 21876See \`config.log' for more details." >&2;} 21877 { (exit 1); exit 1; }; } 21878else 21879 cat >conftest.$ac_ext <<_ACEOF 21880/* confdefs.h. */ 21881_ACEOF 21882cat confdefs.h >>conftest.$ac_ext 21883cat >>conftest.$ac_ext <<_ACEOF 21884/* end confdefs.h. */ 21885 21886#include <stdlib.h> 21887#include <stdarg.h> 21888#include <string.h> 21889#define DO_VA_COPY(d, s) __va_copy((d), (s)) 21890void test(char *str, ...) 21891{ 21892 va_list ap, ap2; 21893 int i; 21894 va_start(ap, str); 21895 DO_VA_COPY(ap2, ap); 21896 for (i = 1; i <= 9; i++) { 21897 int k = (int)va_arg(ap, int); 21898 if (k != i) 21899 abort(); 21900 } 21901 DO_VA_COPY(ap, ap2); 21902 for (i = 1; i <= 9; i++) { 21903 int k = (int)va_arg(ap, int); 21904 if (k != i) 21905 abort(); 21906 } 21907 va_end(ap); 21908} 21909int main(int argc, char *argv[]) 21910{ 21911 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 21912 exit(0); 21913} 21914 21915_ACEOF 21916rm -f conftest$ac_exeext 21917if { (ac_try="$ac_link" 21918case "(($ac_try" in 21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21920 *) ac_try_echo=$ac_try;; 21921esac 21922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21923 (eval "$ac_link") 2>&5 21924 ac_status=$? 21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21927 { (case "(($ac_try" in 21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21929 *) ac_try_echo=$ac_try;; 21930esac 21931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21932 (eval "$ac_try") 2>&5 21933 ac_status=$? 21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21935 (exit $ac_status); }; }; then 21936 ac_cv_va_copy="GCH" 21937else 21938 echo "$as_me: program exited with status $ac_status" >&5 21939echo "$as_me: failed program was:" >&5 21940sed 's/^/| /' conftest.$ac_ext >&5 21941 21942fi 21943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21944fi 21945 21946 21947 fi 21948 21949 21950 21951 21952 if test ".$ac_cv_va_copy" = .; then 21953 if test "$cross_compiling" = yes; then 21954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21955See \`config.log' for more details." >&5 21956echo "$as_me: error: cannot run test program while cross compiling 21957See \`config.log' for more details." >&2;} 21958 { (exit 1); exit 1; }; } 21959else 21960 cat >conftest.$ac_ext <<_ACEOF 21961/* confdefs.h. */ 21962_ACEOF 21963cat confdefs.h >>conftest.$ac_ext 21964cat >>conftest.$ac_ext <<_ACEOF 21965/* end confdefs.h. */ 21966 21967#include <stdlib.h> 21968#include <stdarg.h> 21969#include <string.h> 21970#define DO_VA_COPY(d, s) __builtin_va_copy((d), (s)) 21971void test(char *str, ...) 21972{ 21973 va_list ap, ap2; 21974 int i; 21975 va_start(ap, str); 21976 DO_VA_COPY(ap2, ap); 21977 for (i = 1; i <= 9; i++) { 21978 int k = (int)va_arg(ap, int); 21979 if (k != i) 21980 abort(); 21981 } 21982 DO_VA_COPY(ap, ap2); 21983 for (i = 1; i <= 9; i++) { 21984 int k = (int)va_arg(ap, int); 21985 if (k != i) 21986 abort(); 21987 } 21988 va_end(ap); 21989} 21990int main(int argc, char *argv[]) 21991{ 21992 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 21993 exit(0); 21994} 21995 21996_ACEOF 21997rm -f conftest$ac_exeext 21998if { (ac_try="$ac_link" 21999case "(($ac_try" in 22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22001 *) ac_try_echo=$ac_try;; 22002esac 22003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22004 (eval "$ac_link") 2>&5 22005 ac_status=$? 22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22008 { (case "(($ac_try" in 22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22010 *) ac_try_echo=$ac_try;; 22011esac 22012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22013 (eval "$ac_try") 2>&5 22014 ac_status=$? 22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22016 (exit $ac_status); }; }; then 22017 ac_cv_va_copy="GCB" 22018else 22019 echo "$as_me: program exited with status $ac_status" >&5 22020echo "$as_me: failed program was:" >&5 22021sed 's/^/| /' conftest.$ac_ext >&5 22022 22023fi 22024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22025fi 22026 22027 22028 fi 22029 22030 22031 22032 22033 if test ".$ac_cv_va_copy" = .; then 22034 if test "$cross_compiling" = yes; then 22035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22036See \`config.log' for more details." >&5 22037echo "$as_me: error: cannot run test program while cross compiling 22038See \`config.log' for more details." >&2;} 22039 { (exit 1); exit 1; }; } 22040else 22041 cat >conftest.$ac_ext <<_ACEOF 22042/* confdefs.h. */ 22043_ACEOF 22044cat confdefs.h >>conftest.$ac_ext 22045cat >>conftest.$ac_ext <<_ACEOF 22046/* end confdefs.h. */ 22047 22048#include <stdlib.h> 22049#include <stdarg.h> 22050#include <string.h> 22051#define DO_VA_COPY(d, s) do { (d) = (s); } while (0) 22052void test(char *str, ...) 22053{ 22054 va_list ap, ap2; 22055 int i; 22056 va_start(ap, str); 22057 DO_VA_COPY(ap2, ap); 22058 for (i = 1; i <= 9; i++) { 22059 int k = (int)va_arg(ap, int); 22060 if (k != i) 22061 abort(); 22062 } 22063 DO_VA_COPY(ap, ap2); 22064 for (i = 1; i <= 9; i++) { 22065 int k = (int)va_arg(ap, int); 22066 if (k != i) 22067 abort(); 22068 } 22069 va_end(ap); 22070} 22071int main(int argc, char *argv[]) 22072{ 22073 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 22074 exit(0); 22075} 22076 22077_ACEOF 22078rm -f conftest$ac_exeext 22079if { (ac_try="$ac_link" 22080case "(($ac_try" in 22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22082 *) ac_try_echo=$ac_try;; 22083esac 22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22085 (eval "$ac_link") 2>&5 22086 ac_status=$? 22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22089 { (case "(($ac_try" in 22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22091 *) ac_try_echo=$ac_try;; 22092esac 22093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22094 (eval "$ac_try") 2>&5 22095 ac_status=$? 22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22097 (exit $ac_status); }; }; then 22098 ac_cv_va_copy="ASS" 22099else 22100 echo "$as_me: program exited with status $ac_status" >&5 22101echo "$as_me: failed program was:" >&5 22102sed 's/^/| /' conftest.$ac_ext >&5 22103 22104fi 22105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22106fi 22107 22108 22109 fi 22110 22111 22112 22113 22114 if test ".$ac_cv_va_copy" = .; then 22115 if test "$cross_compiling" = yes; then 22116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22117See \`config.log' for more details." >&5 22118echo "$as_me: error: cannot run test program while cross compiling 22119See \`config.log' for more details." >&2;} 22120 { (exit 1); exit 1; }; } 22121else 22122 cat >conftest.$ac_ext <<_ACEOF 22123/* confdefs.h. */ 22124_ACEOF 22125cat confdefs.h >>conftest.$ac_ext 22126cat >>conftest.$ac_ext <<_ACEOF 22127/* end confdefs.h. */ 22128 22129#include <stdlib.h> 22130#include <stdarg.h> 22131#include <string.h> 22132#define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0) 22133void test(char *str, ...) 22134{ 22135 va_list ap, ap2; 22136 int i; 22137 va_start(ap, str); 22138 DO_VA_COPY(ap2, ap); 22139 for (i = 1; i <= 9; i++) { 22140 int k = (int)va_arg(ap, int); 22141 if (k != i) 22142 abort(); 22143 } 22144 DO_VA_COPY(ap, ap2); 22145 for (i = 1; i <= 9; i++) { 22146 int k = (int)va_arg(ap, int); 22147 if (k != i) 22148 abort(); 22149 } 22150 va_end(ap); 22151} 22152int main(int argc, char *argv[]) 22153{ 22154 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 22155 exit(0); 22156} 22157 22158_ACEOF 22159rm -f conftest$ac_exeext 22160if { (ac_try="$ac_link" 22161case "(($ac_try" in 22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22163 *) ac_try_echo=$ac_try;; 22164esac 22165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22166 (eval "$ac_link") 2>&5 22167 ac_status=$? 22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22170 { (case "(($ac_try" in 22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22172 *) ac_try_echo=$ac_try;; 22173esac 22174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22175 (eval "$ac_try") 2>&5 22176 ac_status=$? 22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22178 (exit $ac_status); }; }; then 22179 ac_cv_va_copy="ASP" 22180else 22181 echo "$as_me: program exited with status $ac_status" >&5 22182echo "$as_me: failed program was:" >&5 22183sed 's/^/| /' conftest.$ac_ext >&5 22184 22185fi 22186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22187fi 22188 22189 22190 fi 22191 22192 22193 22194 22195 if test ".$ac_cv_va_copy" = .; then 22196 if test "$cross_compiling" = yes; then 22197 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22198See \`config.log' for more details." >&5 22199echo "$as_me: error: cannot run test program while cross compiling 22200See \`config.log' for more details." >&2;} 22201 { (exit 1); exit 1; }; } 22202else 22203 cat >conftest.$ac_ext <<_ACEOF 22204/* confdefs.h. */ 22205_ACEOF 22206cat confdefs.h >>conftest.$ac_ext 22207cat >>conftest.$ac_ext <<_ACEOF 22208/* end confdefs.h. */ 22209 22210#include <stdlib.h> 22211#include <stdarg.h> 22212#include <string.h> 22213#define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s)) 22214void test(char *str, ...) 22215{ 22216 va_list ap, ap2; 22217 int i; 22218 va_start(ap, str); 22219 DO_VA_COPY(ap2, ap); 22220 for (i = 1; i <= 9; i++) { 22221 int k = (int)va_arg(ap, int); 22222 if (k != i) 22223 abort(); 22224 } 22225 DO_VA_COPY(ap, ap2); 22226 for (i = 1; i <= 9; i++) { 22227 int k = (int)va_arg(ap, int); 22228 if (k != i) 22229 abort(); 22230 } 22231 va_end(ap); 22232} 22233int main(int argc, char *argv[]) 22234{ 22235 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 22236 exit(0); 22237} 22238 22239_ACEOF 22240rm -f conftest$ac_exeext 22241if { (ac_try="$ac_link" 22242case "(($ac_try" in 22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22244 *) ac_try_echo=$ac_try;; 22245esac 22246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22247 (eval "$ac_link") 2>&5 22248 ac_status=$? 22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22251 { (case "(($ac_try" in 22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22253 *) ac_try_echo=$ac_try;; 22254esac 22255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22256 (eval "$ac_try") 2>&5 22257 ac_status=$? 22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22259 (exit $ac_status); }; }; then 22260 ac_cv_va_copy="CPS" 22261else 22262 echo "$as_me: program exited with status $ac_status" >&5 22263echo "$as_me: failed program was:" >&5 22264sed 's/^/| /' conftest.$ac_ext >&5 22265 22266fi 22267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22268fi 22269 22270 22271 fi 22272 22273 22274 22275 22276 if test ".$ac_cv_va_copy" = .; then 22277 if test "$cross_compiling" = yes; then 22278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22279See \`config.log' for more details." >&5 22280echo "$as_me: error: cannot run test program while cross compiling 22281See \`config.log' for more details." >&2;} 22282 { (exit 1); exit 1; }; } 22283else 22284 cat >conftest.$ac_ext <<_ACEOF 22285/* confdefs.h. */ 22286_ACEOF 22287cat confdefs.h >>conftest.$ac_ext 22288cat >>conftest.$ac_ext <<_ACEOF 22289/* end confdefs.h. */ 22290 22291#include <stdlib.h> 22292#include <stdarg.h> 22293#include <string.h> 22294#define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s)) 22295void test(char *str, ...) 22296{ 22297 va_list ap, ap2; 22298 int i; 22299 va_start(ap, str); 22300 DO_VA_COPY(ap2, ap); 22301 for (i = 1; i <= 9; i++) { 22302 int k = (int)va_arg(ap, int); 22303 if (k != i) 22304 abort(); 22305 } 22306 DO_VA_COPY(ap, ap2); 22307 for (i = 1; i <= 9; i++) { 22308 int k = (int)va_arg(ap, int); 22309 if (k != i) 22310 abort(); 22311 } 22312 va_end(ap); 22313} 22314int main(int argc, char *argv[]) 22315{ 22316 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9); 22317 exit(0); 22318} 22319 22320_ACEOF 22321rm -f conftest$ac_exeext 22322if { (ac_try="$ac_link" 22323case "(($ac_try" in 22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22325 *) ac_try_echo=$ac_try;; 22326esac 22327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22328 (eval "$ac_link") 2>&5 22329 ac_status=$? 22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22332 { (case "(($ac_try" in 22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22334 *) ac_try_echo=$ac_try;; 22335esac 22336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22337 (eval "$ac_try") 2>&5 22338 ac_status=$? 22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22340 (exit $ac_status); }; }; then 22341 ac_cv_va_copy="CPP" 22342else 22343 echo "$as_me: program exited with status $ac_status" >&5 22344echo "$as_me: failed program was:" >&5 22345sed 's/^/| /' conftest.$ac_ext >&5 22346 22347fi 22348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22349fi 22350 22351 22352 fi 22353 22354 if test ".$ac_cv_va_copy" = .; then 22355 { { echo "$as_me:$LINENO: error: no working implementation found" >&5 22356echo "$as_me: error: no working implementation found" >&2;} 22357 { (exit 1); exit 1; }; } 22358 fi 22359 22360fi 22361 22362 if test ".$ac_cv_va_copy" = ".C99"; then 22363 22364cat >>confdefs.h <<\_ACEOF 22365#define HAVE_VA_COPY 1 22366_ACEOF 22367 22368 fi 22369 22370cat >>confdefs.h <<_ACEOF 22371#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy 22372_ACEOF 22373 22374 22375 22376 if test ".$ac_cv_va_copy" = ".C99"; then 22377 { echo "$as_me:$LINENO: result: yes" >&5 22378echo "${ECHO_T}yes" >&6; } 22379 else 22380 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5 22381echo "${ECHO_T}no (using fallback implementation)" >&6; } 22382 fi 22383 22384 22385 22386 22387# Check whether --with-dmalloc was given. 22388if test "${with_dmalloc+set}" = set; then 22389 withval=$with_dmalloc; if test ".$with_dmalloc" = .yes; then 22390 # via config script 22391 dmalloc_version=`(dmalloc-config --version) 2>/dev/null` 22392 if test ".$dmalloc_version" != .; then 22393 CPPFLAGS="$CPPFLAGS `dmalloc-config --cflags`" 22394 CFLAGS="$CFLAGS `dmalloc-config --cflags`" 22395 LDFLAGS="$LDFLAGS `dmalloc-config --ldflags`" 22396 fi 22397 else 22398 if test -d "$with_dmalloc"; then 22399 found=0 22400 # via config script 22401 for dir in $with_dmalloc/bin $with_dmalloc; do 22402 if test -f "$dir/dmalloc-config"; then 22403 dmalloc_version=`($dir/dmalloc-config --version) 2>/dev/null` 22404 if test ".$dmalloc_version" != .; then 22405 CPPFLAGS="$CPPFLAGS `$dir/dmalloc-config --cflags`" 22406 CFLAGS="$CFLAGS `$dir/dmalloc-config --cflags`" 22407 LDFLAGS="$LDFLAGS `$dir/dmalloc-config --ldflags`" 22408 found=1 22409 break 22410 fi 22411 fi 22412 done 22413 # via standard paths 22414 if test ".$found" = .0; then 22415 for dir in $with_dmalloc/include/dmalloc $with_dmalloc/include $with_dmalloc; do 22416 if test -f "$dir/dmalloc.h"; then 22417 CPPFLAGS="$CPPFLAGS -I$dir" 22418 CFLAGS="$CFLAGS -I$dir" 22419 found=1 22420 break 22421 fi 22422 done 22423 for dir in $with_dmalloc/lib/dmalloc $with_dmalloc/lib $with_dmalloc; do 22424 if test -f "$dir/libdmalloc.a" -o -f "$dir/libdmalloc.so"; then 22425 LDFLAGS="$LDFLAGS -L$dir" 22426 found=1 22427 break 22428 fi 22429 done 22430 fi 22431 # in any subarea 22432 if test ".$found" = .0; then 22433 for file in x `find $with_dmalloc -name "dmalloc.h" -type f -print`; do 22434 test .$file = .x && continue 22435 dir=`echo $file | sed -e 's;[[^/]]*$;;' -e 's;\(.\)/$;\1;'` 22436 CPPFLAGS="$CPPFLAGS -I$dir" 22437 CFLAGS="$CFLAGS -I$dir" 22438 done 22439 for file in x `find $with_dmalloc -name "libdmalloc.[[aso]]" -type f -print`; do 22440 test .$file = .x && continue 22441 dir=`echo $file | sed -e 's;[[^/]]*$;;' -e 's;\(.\)/$;\1;'` 22442 LDFLAGS="$LDFLAGS -L$dir" 22443 done 22444 fi 22445 fi 22446 fi 22447 22448for ac_header in dmalloc.h 22449do 22450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22452 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22455 echo $ECHO_N "(cached) $ECHO_C" >&6 22456fi 22457ac_res=`eval echo '${'$as_ac_Header'}'` 22458 { echo "$as_me:$LINENO: result: $ac_res" >&5 22459echo "${ECHO_T}$ac_res" >&6; } 22460else 22461 # Is the header compilable? 22462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22464cat >conftest.$ac_ext <<_ACEOF 22465/* confdefs.h. */ 22466_ACEOF 22467cat confdefs.h >>conftest.$ac_ext 22468cat >>conftest.$ac_ext <<_ACEOF 22469/* end confdefs.h. */ 22470$ac_includes_default 22471#include <$ac_header> 22472_ACEOF 22473rm -f conftest.$ac_objext 22474if { (ac_try="$ac_compile" 22475case "(($ac_try" in 22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22477 *) ac_try_echo=$ac_try;; 22478esac 22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22480 (eval "$ac_compile") 2>conftest.er1 22481 ac_status=$? 22482 grep -v '^ *+' conftest.er1 >conftest.err 22483 rm -f conftest.er1 22484 cat conftest.err >&5 22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22486 (exit $ac_status); } && { 22487 test -z "$ac_c_werror_flag" || 22488 test ! -s conftest.err 22489 } && test -s conftest.$ac_objext; then 22490 ac_header_compiler=yes 22491else 22492 echo "$as_me: failed program was:" >&5 22493sed 's/^/| /' conftest.$ac_ext >&5 22494 22495 ac_header_compiler=no 22496fi 22497 22498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22500echo "${ECHO_T}$ac_header_compiler" >&6; } 22501 22502# Is the header present? 22503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22505cat >conftest.$ac_ext <<_ACEOF 22506/* confdefs.h. */ 22507_ACEOF 22508cat confdefs.h >>conftest.$ac_ext 22509cat >>conftest.$ac_ext <<_ACEOF 22510/* end confdefs.h. */ 22511#include <$ac_header> 22512_ACEOF 22513if { (ac_try="$ac_cpp conftest.$ac_ext" 22514case "(($ac_try" in 22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22516 *) ac_try_echo=$ac_try;; 22517esac 22518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22520 ac_status=$? 22521 grep -v '^ *+' conftest.er1 >conftest.err 22522 rm -f conftest.er1 22523 cat conftest.err >&5 22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22525 (exit $ac_status); } >/dev/null && { 22526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22527 test ! -s conftest.err 22528 }; then 22529 ac_header_preproc=yes 22530else 22531 echo "$as_me: failed program was:" >&5 22532sed 's/^/| /' conftest.$ac_ext >&5 22533 22534 ac_header_preproc=no 22535fi 22536 22537rm -f conftest.err conftest.$ac_ext 22538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22539echo "${ECHO_T}$ac_header_preproc" >&6; } 22540 22541# So? What about this header? 22542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22543 yes:no: ) 22544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22548 ac_header_preproc=yes 22549 ;; 22550 no:yes:* ) 22551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22563 22564 ;; 22565esac 22566{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22569 echo $ECHO_N "(cached) $ECHO_C" >&6 22570else 22571 eval "$as_ac_Header=\$ac_header_preproc" 22572fi 22573ac_res=`eval echo '${'$as_ac_Header'}'` 22574 { echo "$as_me:$LINENO: result: $ac_res" >&5 22575echo "${ECHO_T}$ac_res" >&6; } 22576 22577fi 22578if test `eval echo '${'$as_ac_Header'}'` = yes; then 22579 cat >>confdefs.h <<_ACEOF 22580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22581_ACEOF 22582 22583fi 22584 22585done 22586 22587 22588{ echo "$as_me:$LINENO: checking for dmalloc_debug in -ldmalloc" >&5 22589echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6; } 22590if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 22591 echo $ECHO_N "(cached) $ECHO_C" >&6 22592else 22593 ac_check_lib_save_LIBS=$LIBS 22594LIBS="-ldmalloc $LIBS" 22595cat >conftest.$ac_ext <<_ACEOF 22596/* confdefs.h. */ 22597_ACEOF 22598cat confdefs.h >>conftest.$ac_ext 22599cat >>conftest.$ac_ext <<_ACEOF 22600/* end confdefs.h. */ 22601 22602/* Override any GCC internal prototype to avoid an error. 22603 Use char because int might match the return type of a GCC 22604 builtin and then its argument prototype would still apply. */ 22605#ifdef __cplusplus 22606extern "C" 22607#endif 22608char dmalloc_debug (); 22609int 22610main () 22611{ 22612return dmalloc_debug (); 22613 ; 22614 return 0; 22615} 22616_ACEOF 22617rm -f conftest.$ac_objext conftest$ac_exeext 22618if { (ac_try="$ac_link" 22619case "(($ac_try" in 22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22621 *) ac_try_echo=$ac_try;; 22622esac 22623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22624 (eval "$ac_link") 2>conftest.er1 22625 ac_status=$? 22626 grep -v '^ *+' conftest.er1 >conftest.err 22627 rm -f conftest.er1 22628 cat conftest.err >&5 22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22630 (exit $ac_status); } && { 22631 test -z "$ac_c_werror_flag" || 22632 test ! -s conftest.err 22633 } && test -s conftest$ac_exeext && 22634 $as_test_x conftest$ac_exeext; then 22635 ac_cv_lib_dmalloc_dmalloc_debug=yes 22636else 22637 echo "$as_me: failed program was:" >&5 22638sed 's/^/| /' conftest.$ac_ext >&5 22639 22640 ac_cv_lib_dmalloc_dmalloc_debug=no 22641fi 22642 22643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22644 conftest$ac_exeext conftest.$ac_ext 22645LIBS=$ac_check_lib_save_LIBS 22646fi 22647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 22648echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6; } 22649if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 22650 cat >>confdefs.h <<_ACEOF 22651#define HAVE_LIBDMALLOC 1 22652_ACEOF 22653 22654 LIBS="-ldmalloc $LIBS" 22655 22656fi 22657 22658 ac_rc=yes 22659for ac_spec in header:dmalloc.h lib:dmalloc_dmalloc_debug; do 22660 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22661 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22662 case $ac_type in 22663 header ) 22664 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22665 ac_var="ac_cv_header_$ac_item" 22666 ;; 22667 file ) 22668 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22669 ac_var="ac_cv_file_$ac_item" 22670 ;; 22671 func ) ac_var="ac_cv_func_$ac_item" ;; 22672 lib ) ac_var="ac_cv_lib_$ac_item" ;; 22673 define ) ac_var="ac_cv_define_$ac_item" ;; 22674 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 22675 custom ) ac_var="$ac_item" ;; 22676 esac 22677 eval "ac_val=\$$ac_var" 22678 if test ".$ac_val" != .yes; then 22679 ac_rc=no 22680 break 22681 fi 22682done 22683if test ".$ac_rc" = .yes; then 22684 : 22685 with_dmalloc=yes 22686else 22687 : 22688 with_dmalloc=no 22689fi 22690 22691 if test ".$with_dmalloc" = .no; then 22692 { { echo "$as_me:$LINENO: error: Unable to find Dmalloc library" >&5 22693echo "$as_me: error: Unable to find Dmalloc library" >&2;} 22694 { (exit 1); exit 1; }; } 22695 fi 22696 22697else 22698 if test ".$with_dmalloc" = .; then 22699 with_dmalloc=no 22700fi 22701 22702fi 22703{ echo "$as_me:$LINENO: checking whether to build against external Dmalloc library" >&5 22704echo $ECHO_N "checking whether to build against external Dmalloc library... $ECHO_C" >&6; } 22705if test ".$with_dmalloc" = .yes; then 22706 22707cat >>confdefs.h <<\_ACEOF 22708#define WITH_DMALLOC 1 22709_ACEOF 22710 22711else 22712 : 22713fi 22714{ echo "$as_me:$LINENO: result: $with_dmalloc" >&5 22715echo "${ECHO_T}$with_dmalloc" >&6; } 22716 22717 22718ac_config_headers="$ac_config_headers l2_config.h" 22719 22720ac_config_files="$ac_config_files Makefile l2.h l2-config" 22721 22722ac_config_commands="$ac_config_commands adjustment" 22723 22724cat >confcache <<\_ACEOF 22725# This file is a shell script that caches the results of configure 22726# tests run on this system so they can be shared between configure 22727# scripts and configure runs, see configure's option --config-cache. 22728# It is not useful on other systems. If it contains results you don't 22729# want to keep, you may remove or edit it. 22730# 22731# config.status only pays attention to the cache file if you give it 22732# the --recheck option to rerun configure. 22733# 22734# `ac_cv_env_foo' variables (set or unset) will be overridden when 22735# loading this file, other *unset* `ac_cv_foo' will be assigned the 22736# following values. 22737 22738_ACEOF 22739 22740# The following way of writing the cache mishandles newlines in values, 22741# but we know of no workaround that is simple, portable, and efficient. 22742# So, we kill variables containing newlines. 22743# Ultrix sh set writes to stderr and can't be redirected directly, 22744# and sets the high bit in the cache file unless we assign to the vars. 22745( 22746 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22747 eval ac_val=\$$ac_var 22748 case $ac_val in #( 22749 *${as_nl}*) 22750 case $ac_var in #( 22751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22752echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22753 esac 22754 case $ac_var in #( 22755 _ | IFS | as_nl) ;; #( 22756 *) $as_unset $ac_var ;; 22757 esac ;; 22758 esac 22759 done 22760 22761 (set) 2>&1 | 22762 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22763 *${as_nl}ac_space=\ *) 22764 # `set' does not quote correctly, so add quotes (double-quote 22765 # substitution turns \\\\ into \\, and sed turns \\ into \). 22766 sed -n \ 22767 "s/'/'\\\\''/g; 22768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22769 ;; #( 22770 *) 22771 # `set' quotes correctly as required by POSIX, so do not add quotes. 22772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22773 ;; 22774 esac | 22775 sort 22776) | 22777 sed ' 22778 /^ac_cv_env_/b end 22779 t clear 22780 :clear 22781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22782 t end 22783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22784 :end' >>confcache 22785if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22786 if test -w "$cache_file"; then 22787 test "x$cache_file" != "x/dev/null" && 22788 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22789echo "$as_me: updating cache $cache_file" >&6;} 22790 cat confcache >$cache_file 22791 else 22792 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22793echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22794 fi 22795fi 22796rm -f confcache 22797 22798test "x$prefix" = xNONE && prefix=$ac_default_prefix 22799# Let make expand exec_prefix. 22800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22801 22802DEFS=-DHAVE_CONFIG_H 22803 22804ac_libobjs= 22805ac_ltlibobjs= 22806for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22807 # 1. Remove the extension, and $U if already installed. 22808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22809 ac_i=`echo "$ac_i" | sed "$ac_script"` 22810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22811 # will be set to the directory where LIBOBJS objects are built. 22812 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22813 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22814done 22815LIBOBJS=$ac_libobjs 22816 22817LTLIBOBJS=$ac_ltlibobjs 22818 22819 22820 22821: ${CONFIG_STATUS=./config.status} 22822ac_clean_files_save=$ac_clean_files 22823ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22824{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22825echo "$as_me: creating $CONFIG_STATUS" >&6;} 22826cat >$CONFIG_STATUS <<_ACEOF 22827#! $SHELL 22828# Generated by $as_me. 22829# Run this file to recreate the current configuration. 22830# Compiler output produced by configure, useful for debugging 22831# configure, is in config.log if it exists. 22832 22833debug=false 22834ac_cs_recheck=false 22835ac_cs_silent=false 22836SHELL=\${CONFIG_SHELL-$SHELL} 22837_ACEOF 22838 22839cat >>$CONFIG_STATUS <<\_ACEOF 22840## --------------------- ## 22841## M4sh Initialization. ## 22842## --------------------- ## 22843 22844# Be more Bourne compatible 22845DUALCASE=1; export DUALCASE # for MKS sh 22846if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22847 emulate sh 22848 NULLCMD=: 22849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22850 # is contrary to our usage. Disable this feature. 22851 alias -g '${1+"$@"}'='"$@"' 22852 setopt NO_GLOB_SUBST 22853else 22854 case `(set -o) 2>/dev/null` in 22855 *posix*) set -o posix ;; 22856esac 22857 22858fi 22859 22860 22861 22862 22863# PATH needs CR 22864# Avoid depending upon Character Ranges. 22865as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22867as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22868as_cr_digits='0123456789' 22869as_cr_alnum=$as_cr_Letters$as_cr_digits 22870 22871# The user is always right. 22872if test "${PATH_SEPARATOR+set}" != set; then 22873 echo "#! /bin/sh" >conf$$.sh 22874 echo "exit 0" >>conf$$.sh 22875 chmod +x conf$$.sh 22876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22877 PATH_SEPARATOR=';' 22878 else 22879 PATH_SEPARATOR=: 22880 fi 22881 rm -f conf$$.sh 22882fi 22883 22884# Support unset when possible. 22885if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22886 as_unset=unset 22887else 22888 as_unset=false 22889fi 22890 22891 22892# IFS 22893# We need space, tab and new line, in precisely that order. Quoting is 22894# there to prevent editors from complaining about space-tab. 22895# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22896# splitting by setting IFS to empty value.) 22897as_nl=' 22898' 22899IFS=" "" $as_nl" 22900 22901# Find who we are. Look in the path if we contain no directory separator. 22902case $0 in 22903 *[\\/]* ) as_myself=$0 ;; 22904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22905for as_dir in $PATH 22906do 22907 IFS=$as_save_IFS 22908 test -z "$as_dir" && as_dir=. 22909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22910done 22911IFS=$as_save_IFS 22912 22913 ;; 22914esac 22915# We did not find ourselves, most probably we were run as `sh COMMAND' 22916# in which case we are not to be found in the path. 22917if test "x$as_myself" = x; then 22918 as_myself=$0 22919fi 22920if test ! -f "$as_myself"; then 22921 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22922 { (exit 1); exit 1; } 22923fi 22924 22925# Work around bugs in pre-3.0 UWIN ksh. 22926for as_var in ENV MAIL MAILPATH 22927do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22928done 22929PS1='$ ' 22930PS2='> ' 22931PS4='+ ' 22932 22933# NLS nuisances. 22934for as_var in \ 22935 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22936 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22937 LC_TELEPHONE LC_TIME 22938do 22939 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22940 eval $as_var=C; export $as_var 22941 else 22942 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22943 fi 22944done 22945 22946# Required to use basename. 22947if expr a : '\(a\)' >/dev/null 2>&1 && 22948 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22949 as_expr=expr 22950else 22951 as_expr=false 22952fi 22953 22954if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22955 as_basename=basename 22956else 22957 as_basename=false 22958fi 22959 22960 22961# Name of the executable. 22962as_me=`$as_basename -- "$0" || 22963$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22964 X"$0" : 'X\(//\)$' \| \ 22965 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22966echo X/"$0" | 22967 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22968 s//\1/ 22969 q 22970 } 22971 /^X\/\(\/\/\)$/{ 22972 s//\1/ 22973 q 22974 } 22975 /^X\/\(\/\).*/{ 22976 s//\1/ 22977 q 22978 } 22979 s/.*/./; q'` 22980 22981# CDPATH. 22982$as_unset CDPATH 22983 22984 22985 22986 as_lineno_1=$LINENO 22987 as_lineno_2=$LINENO 22988 test "x$as_lineno_1" != "x$as_lineno_2" && 22989 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22990 22991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22992 # uniformly replaced by the line number. The first 'sed' inserts a 22993 # line-number line after each line using $LINENO; the second 'sed' 22994 # does the real work. The second script uses 'N' to pair each 22995 # line-number line with the line containing $LINENO, and appends 22996 # trailing '-' during substitution so that $LINENO is not a special 22997 # case at line end. 22998 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22999 # scripts with optimization help from Paolo Bonzini. Blame Lee 23000 # E. McMahon (1931-1989) for sed's syntax. :-) 23001 sed -n ' 23002 p 23003 /[$]LINENO/= 23004 ' <$as_myself | 23005 sed ' 23006 s/[$]LINENO.*/&-/ 23007 t lineno 23008 b 23009 :lineno 23010 N 23011 :loop 23012 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23013 t loop 23014 s/-\n.*// 23015 ' >$as_me.lineno && 23016 chmod +x "$as_me.lineno" || 23017 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23018 { (exit 1); exit 1; }; } 23019 23020 # Don't try to exec as it changes $[0], causing all sort of problems 23021 # (the dirname of $[0] is not the place where we might find the 23022 # original and so on. Autoconf is especially sensitive to this). 23023 . "./$as_me.lineno" 23024 # Exit status is that of the last command. 23025 exit 23026} 23027 23028 23029if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23030 as_dirname=dirname 23031else 23032 as_dirname=false 23033fi 23034 23035ECHO_C= ECHO_N= ECHO_T= 23036case `echo -n x` in 23037-n*) 23038 case `echo 'x\c'` in 23039 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23040 *) ECHO_C='\c';; 23041 esac;; 23042*) 23043 ECHO_N='-n';; 23044esac 23045 23046if expr a : '\(a\)' >/dev/null 2>&1 && 23047 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23048 as_expr=expr 23049else 23050 as_expr=false 23051fi 23052 23053rm -f conf$$ conf$$.exe conf$$.file 23054if test -d conf$$.dir; then 23055 rm -f conf$$.dir/conf$$.file 23056else 23057 rm -f conf$$.dir 23058 mkdir conf$$.dir 23059fi 23060echo >conf$$.file 23061if ln -s conf$$.file conf$$ 2>/dev/null; then 23062 as_ln_s='ln -s' 23063 # ... but there are two gotchas: 23064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23066 # In both cases, we have to default to `cp -p'. 23067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23068 as_ln_s='cp -p' 23069elif ln conf$$.file conf$$ 2>/dev/null; then 23070 as_ln_s=ln 23071else 23072 as_ln_s='cp -p' 23073fi 23074rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23075rmdir conf$$.dir 2>/dev/null 23076 23077if mkdir -p . 2>/dev/null; then 23078 as_mkdir_p=: 23079else 23080 test -d ./-p && rmdir ./-p 23081 as_mkdir_p=false 23082fi 23083 23084if test -x / >/dev/null 2>&1; then 23085 as_test_x='test -x' 23086else 23087 if ls -dL / >/dev/null 2>&1; then 23088 as_ls_L_option=L 23089 else 23090 as_ls_L_option= 23091 fi 23092 as_test_x=' 23093 eval sh -c '\'' 23094 if test -d "$1"; then 23095 test -d "$1/."; 23096 else 23097 case $1 in 23098 -*)set "./$1";; 23099 esac; 23100 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23101 ???[sx]*):;;*)false;;esac;fi 23102 '\'' sh 23103 ' 23104fi 23105as_executable_p=$as_test_x 23106 23107# Sed expression to map a string onto a valid CPP name. 23108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23109 23110# Sed expression to map a string onto a valid variable name. 23111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23112 23113 23114exec 6>&1 23115 23116# Save the log message, to keep $[0] and so on meaningful, and to 23117# report actual input values of CONFIG_FILES etc. instead of their 23118# values after options handling. 23119ac_log=" 23120This file was extended by $as_me, which was 23121generated by GNU Autoconf 2.61 (OpenPKG-CURRENT). Invocation command line was 23122 23123 CONFIG_FILES = $CONFIG_FILES 23124 CONFIG_HEADERS = $CONFIG_HEADERS 23125 CONFIG_LINKS = $CONFIG_LINKS 23126 CONFIG_COMMANDS = $CONFIG_COMMANDS 23127 $ $0 $@ 23128 23129on `(hostname || uname -n) 2>/dev/null | sed 1q` 23130" 23131 23132_ACEOF 23133 23134cat >>$CONFIG_STATUS <<_ACEOF 23135# Files that config.status was made for. 23136config_files="$ac_config_files" 23137config_headers="$ac_config_headers" 23138config_commands="$ac_config_commands" 23139 23140_ACEOF 23141 23142cat >>$CONFIG_STATUS <<\_ACEOF 23143ac_cs_usage="\ 23144\`$as_me' instantiates files from templates according to the 23145current configuration. 23146 23147Usage: $0 [OPTIONS] [FILE]... 23148 23149 -h, --help print this help, then exit 23150 -V, --version print version number and configuration settings, then exit 23151 -q, --quiet do not print progress messages 23152 -d, --debug don't remove temporary files 23153 --recheck update $as_me by reconfiguring in the same conditions 23154 --file=FILE[:TEMPLATE] 23155 instantiate the configuration file FILE 23156 --header=FILE[:TEMPLATE] 23157 instantiate the configuration header FILE 23158 23159Configuration files: 23160$config_files 23161 23162Configuration headers: 23163$config_headers 23164 23165Configuration commands: 23166$config_commands 23167 23168Report bugs to <bug-autoconf@gnu.org>." 23169 23170_ACEOF 23171cat >>$CONFIG_STATUS <<_ACEOF 23172ac_cs_version="\\ 23173config.status 23174configured by $0, generated by GNU Autoconf 2.61 (OpenPKG-CURRENT), 23175 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23176 23177Copyright (C) 2006 Free Software Foundation, Inc. 23178This config.status script is free software; the Free Software Foundation 23179gives unlimited permission to copy, distribute and modify it." 23180 23181ac_pwd='$ac_pwd' 23182srcdir='$srcdir' 23183_ACEOF 23184 23185cat >>$CONFIG_STATUS <<\_ACEOF 23186# If no file are specified by the user, then we need to provide default 23187# value. By we need to know if files were specified by the user. 23188ac_need_defaults=: 23189while test $# != 0 23190do 23191 case $1 in 23192 --*=*) 23193 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23195 ac_shift=: 23196 ;; 23197 *) 23198 ac_option=$1 23199 ac_optarg=$2 23200 ac_shift=shift 23201 ;; 23202 esac 23203 23204 case $ac_option in 23205 # Handling of the options. 23206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23207 ac_cs_recheck=: ;; 23208 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23209 echo "$ac_cs_version"; exit ;; 23210 --debug | --debu | --deb | --de | --d | -d ) 23211 debug=: ;; 23212 --file | --fil | --fi | --f ) 23213 $ac_shift 23214 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23215 ac_need_defaults=false;; 23216 --header | --heade | --head | --hea ) 23217 $ac_shift 23218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23219 ac_need_defaults=false;; 23220 --he | --h) 23221 # Conflict between --help and --header 23222 { echo "$as_me: error: ambiguous option: $1 23223Try \`$0 --help' for more information." >&2 23224 { (exit 1); exit 1; }; };; 23225 --help | --hel | -h ) 23226 echo "$ac_cs_usage"; exit ;; 23227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23228 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23229 ac_cs_silent=: ;; 23230 23231 # This is an error. 23232 -*) { echo "$as_me: error: unrecognized option: $1 23233Try \`$0 --help' for more information." >&2 23234 { (exit 1); exit 1; }; } ;; 23235 23236 *) ac_config_targets="$ac_config_targets $1" 23237 ac_need_defaults=false ;; 23238 23239 esac 23240 shift 23241done 23242 23243ac_configure_extra_args= 23244 23245if $ac_cs_silent; then 23246 exec 6>/dev/null 23247 ac_configure_extra_args="$ac_configure_extra_args --silent" 23248fi 23249 23250_ACEOF 23251cat >>$CONFIG_STATUS <<_ACEOF 23252if \$ac_cs_recheck; then 23253 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23254 CONFIG_SHELL=$SHELL 23255 export CONFIG_SHELL 23256 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23257fi 23258 23259_ACEOF 23260cat >>$CONFIG_STATUS <<\_ACEOF 23261exec 5>>config.log 23262{ 23263 echo 23264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23265## Running $as_me. ## 23266_ASBOX 23267 echo "$ac_log" 23268} >&5 23269 23270_ACEOF 23271cat >>$CONFIG_STATUS <<_ACEOF 23272_ACEOF 23273 23274cat >>$CONFIG_STATUS <<\_ACEOF 23275 23276# Handling of arguments. 23277for ac_config_target in $ac_config_targets 23278do 23279 case $ac_config_target in 23280 "l2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS l2_config.h" ;; 23281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23282 "l2.h") CONFIG_FILES="$CONFIG_FILES l2.h" ;; 23283 "l2-config") CONFIG_FILES="$CONFIG_FILES l2-config" ;; 23284 "adjustment") CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;; 23285 23286 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23287echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23288 { (exit 1); exit 1; }; };; 23289 esac 23290done 23291 23292 23293# If the user did not use the arguments to specify the items to instantiate, 23294# then the envvar interface is used. Set only those that are not. 23295# We use the long form for the default assignment because of an extremely 23296# bizarre bug on SunOS 4.1.3. 23297if $ac_need_defaults; then 23298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23301fi 23302 23303# Have a temporary directory for convenience. Make it in the build tree 23304# simply because there is no reason against having it here, and in addition, 23305# creating and moving files from /tmp can sometimes cause problems. 23306# Hook for its removal unless debugging. 23307# Note that there is a small window in which the directory will not be cleaned: 23308# after its creation but before its name has been assigned to `$tmp'. 23309$debug || 23310{ 23311 tmp= 23312 trap 'exit_status=$? 23313 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23314' 0 23315 trap '{ (exit 1); exit 1; }' 1 2 13 15 23316} 23317# Create a (secure) tmp directory for tmp files. 23318 23319{ 23320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23321 test -n "$tmp" && test -d "$tmp" 23322} || 23323{ 23324 tmp=./conf$$-$RANDOM 23325 (umask 077 && mkdir "$tmp") 23326} || 23327{ 23328 echo "$me: cannot create a temporary directory in ." >&2 23329 { (exit 1); exit 1; } 23330} 23331 23332# 23333# Set up the sed scripts for CONFIG_FILES section. 23334# 23335 23336# No need to generate the scripts if there are no CONFIG_FILES. 23337# This happens for instance when ./config.status config.h 23338if test -n "$CONFIG_FILES"; then 23339 23340_ACEOF 23341 23342 23343 23344ac_delim='%!_!# ' 23345for ac_last_try in false false false false false :; do 23346 cat >conf$$subs.sed <<_ACEOF 23347SHELL!$SHELL$ac_delim 23348PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23349PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23350PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23351PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23352PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23353PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23354exec_prefix!$exec_prefix$ac_delim 23355prefix!$prefix$ac_delim 23356program_transform_name!$program_transform_name$ac_delim 23357bindir!$bindir$ac_delim 23358sbindir!$sbindir$ac_delim 23359libexecdir!$libexecdir$ac_delim 23360datarootdir!$datarootdir$ac_delim 23361datadir!$datadir$ac_delim 23362sysconfdir!$sysconfdir$ac_delim 23363sharedstatedir!$sharedstatedir$ac_delim 23364localstatedir!$localstatedir$ac_delim 23365includedir!$includedir$ac_delim 23366oldincludedir!$oldincludedir$ac_delim 23367docdir!$docdir$ac_delim 23368infodir!$infodir$ac_delim 23369htmldir!$htmldir$ac_delim 23370dvidir!$dvidir$ac_delim 23371pdfdir!$pdfdir$ac_delim 23372psdir!$psdir$ac_delim 23373libdir!$libdir$ac_delim 23374localedir!$localedir$ac_delim 23375mandir!$mandir$ac_delim 23376DEFS!$DEFS$ac_delim 23377ECHO_C!$ECHO_C$ac_delim 23378ECHO_N!$ECHO_N$ac_delim 23379ECHO_T!$ECHO_T$ac_delim 23380LIBS!$LIBS$ac_delim 23381build_alias!$build_alias$ac_delim 23382host_alias!$host_alias$ac_delim 23383target_alias!$target_alias$ac_delim 23384L2_VERSION_STR!$L2_VERSION_STR$ac_delim 23385L2_VERSION_HEX!$L2_VERSION_HEX$ac_delim 23386PLATFORM!$PLATFORM$ac_delim 23387SET_MAKE!$SET_MAKE$ac_delim 23388CC!$CC$ac_delim 23389CFLAGS!$CFLAGS$ac_delim 23390LDFLAGS!$LDFLAGS$ac_delim 23391CPPFLAGS!$CPPFLAGS$ac_delim 23392ac_ct_CC!$ac_ct_CC$ac_delim 23393EXEEXT!$EXEEXT$ac_delim 23394OBJEXT!$OBJEXT$ac_delim 23395CPP!$CPP$ac_delim 23396M!$M$ac_delim 23397build!$build$ac_delim 23398build_cpu!$build_cpu$ac_delim 23399build_vendor!$build_vendor$ac_delim 23400build_os!$build_os$ac_delim 23401host!$host$ac_delim 23402host_cpu!$host_cpu$ac_delim 23403host_vendor!$host_vendor$ac_delim 23404host_os!$host_os$ac_delim 23405GREP!$GREP$ac_delim 23406EGREP!$EGREP$ac_delim 23407LN_S!$LN_S$ac_delim 23408ECHO!$ECHO$ac_delim 23409AR!$AR$ac_delim 23410RANLIB!$RANLIB$ac_delim 23411STRIP!$STRIP$ac_delim 23412CXX!$CXX$ac_delim 23413CXXFLAGS!$CXXFLAGS$ac_delim 23414ac_ct_CXX!$ac_ct_CXX$ac_delim 23415CXXCPP!$CXXCPP$ac_delim 23416F77!$F77$ac_delim 23417FFLAGS!$FFLAGS$ac_delim 23418ac_ct_F77!$ac_ct_F77$ac_delim 23419LIBTOOL!$LIBTOOL$ac_delim 23420BISON!$BISON$ac_delim 23421FLEX!$FLEX$ac_delim 23422LIBOBJS!$LIBOBJS$ac_delim 23423LTLIBOBJS!$LTLIBOBJS$ac_delim 23424_ACEOF 23425 23426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then 23427 break 23428 elif $ac_last_try; then 23429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23430echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23431 { (exit 1); exit 1; }; } 23432 else 23433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23434 fi 23435done 23436 23437ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23438if test -n "$ac_eof"; then 23439 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23440 ac_eof=`expr $ac_eof + 1` 23441fi 23442 23443cat >>$CONFIG_STATUS <<_ACEOF 23444cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23446_ACEOF 23447sed ' 23448s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23449s/^/s,@/; s/!/@,|#_!!_#|/ 23450:n 23451t n 23452s/'"$ac_delim"'$/,g/; t 23453s/$/\\/; p 23454N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23455' >>$CONFIG_STATUS <conf$$subs.sed 23456rm -f conf$$subs.sed 23457cat >>$CONFIG_STATUS <<_ACEOF 23458:end 23459s/|#_!!_#|//g 23460CEOF$ac_eof 23461_ACEOF 23462 23463 23464# VPATH may cause trouble with some makes, so we remove $(srcdir), 23465# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23466# trailing colons and then remove the whole line if VPATH becomes empty 23467# (actually we leave an empty line to preserve line numbers). 23468if test "x$srcdir" = x.; then 23469 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23470s/:*\$(srcdir):*/:/ 23471s/:*\${srcdir}:*/:/ 23472s/:*@srcdir@:*/:/ 23473s/^\([^=]*=[ ]*\):*/\1/ 23474s/:*$// 23475s/^[^=]*=[ ]*$// 23476}' 23477fi 23478 23479cat >>$CONFIG_STATUS <<\_ACEOF 23480fi # test -n "$CONFIG_FILES" 23481 23482 23483for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23484do 23485 case $ac_tag in 23486 :[FHLC]) ac_mode=$ac_tag; continue;; 23487 esac 23488 case $ac_mode$ac_tag in 23489 :[FHL]*:*);; 23490 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23491echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23492 { (exit 1); exit 1; }; };; 23493 :[FH]-) ac_tag=-:-;; 23494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23495 esac 23496 ac_save_IFS=$IFS 23497 IFS=: 23498 set x $ac_tag 23499 IFS=$ac_save_IFS 23500 shift 23501 ac_file=$1 23502 shift 23503 23504 case $ac_mode in 23505 :L) ac_source=$1;; 23506 :[FH]) 23507 ac_file_inputs= 23508 for ac_f 23509 do 23510 case $ac_f in 23511 -) ac_f="$tmp/stdin";; 23512 *) # Look for the file first in the build tree, then in the source tree 23513 # (if the path is not absolute). The absolute path cannot be DOS-style, 23514 # because $ac_f cannot contain `:'. 23515 test -f "$ac_f" || 23516 case $ac_f in 23517 [\\/$]*) false;; 23518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23519 esac || 23520 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23521echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23522 { (exit 1); exit 1; }; };; 23523 esac 23524 ac_file_inputs="$ac_file_inputs $ac_f" 23525 done 23526 23527 # Let's still pretend it is `configure' which instantiates (i.e., don't 23528 # use $as_me), people would be surprised to read: 23529 # /* config.h. Generated by config.status. */ 23530 configure_input="Generated from "`IFS=: 23531 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23532 if test x"$ac_file" != x-; then 23533 configure_input="$ac_file. $configure_input" 23534 { echo "$as_me:$LINENO: creating $ac_file" >&5 23535echo "$as_me: creating $ac_file" >&6;} 23536 fi 23537 23538 case $ac_tag in 23539 *:-:* | *:-) cat >"$tmp/stdin";; 23540 esac 23541 ;; 23542 esac 23543 23544 ac_dir=`$as_dirname -- "$ac_file" || 23545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23546 X"$ac_file" : 'X\(//\)[^/]' \| \ 23547 X"$ac_file" : 'X\(//\)$' \| \ 23548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23549echo X"$ac_file" | 23550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23551 s//\1/ 23552 q 23553 } 23554 /^X\(\/\/\)[^/].*/{ 23555 s//\1/ 23556 q 23557 } 23558 /^X\(\/\/\)$/{ 23559 s//\1/ 23560 q 23561 } 23562 /^X\(\/\).*/{ 23563 s//\1/ 23564 q 23565 } 23566 s/.*/./; q'` 23567 { as_dir="$ac_dir" 23568 case $as_dir in #( 23569 -*) as_dir=./$as_dir;; 23570 esac 23571 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23572 as_dirs= 23573 while :; do 23574 case $as_dir in #( 23575 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23576 *) as_qdir=$as_dir;; 23577 esac 23578 as_dirs="'$as_qdir' $as_dirs" 23579 as_dir=`$as_dirname -- "$as_dir" || 23580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23581 X"$as_dir" : 'X\(//\)[^/]' \| \ 23582 X"$as_dir" : 'X\(//\)$' \| \ 23583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23584echo X"$as_dir" | 23585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23586 s//\1/ 23587 q 23588 } 23589 /^X\(\/\/\)[^/].*/{ 23590 s//\1/ 23591 q 23592 } 23593 /^X\(\/\/\)$/{ 23594 s//\1/ 23595 q 23596 } 23597 /^X\(\/\).*/{ 23598 s//\1/ 23599 q 23600 } 23601 s/.*/./; q'` 23602 test -d "$as_dir" && break 23603 done 23604 test -z "$as_dirs" || eval "mkdir $as_dirs" 23605 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23606echo "$as_me: error: cannot create directory $as_dir" >&2;} 23607 { (exit 1); exit 1; }; }; } 23608 ac_builddir=. 23609 23610case "$ac_dir" in 23611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23612*) 23613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23614 # A ".." for each directory in $ac_dir_suffix. 23615 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23616 case $ac_top_builddir_sub in 23617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23619 esac ;; 23620esac 23621ac_abs_top_builddir=$ac_pwd 23622ac_abs_builddir=$ac_pwd$ac_dir_suffix 23623# for backward compatibility: 23624ac_top_builddir=$ac_top_build_prefix 23625 23626case $srcdir in 23627 .) # We are building in place. 23628 ac_srcdir=. 23629 ac_top_srcdir=$ac_top_builddir_sub 23630 ac_abs_top_srcdir=$ac_pwd ;; 23631 [\\/]* | ?:[\\/]* ) # Absolute name. 23632 ac_srcdir=$srcdir$ac_dir_suffix; 23633 ac_top_srcdir=$srcdir 23634 ac_abs_top_srcdir=$srcdir ;; 23635 *) # Relative name. 23636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23637 ac_top_srcdir=$ac_top_build_prefix$srcdir 23638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23639esac 23640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23641 23642 23643 case $ac_mode in 23644 :F) 23645 # 23646 # CONFIG_FILE 23647 # 23648 23649_ACEOF 23650 23651cat >>$CONFIG_STATUS <<\_ACEOF 23652# If the template does not know about datarootdir, expand it. 23653# FIXME: This hack should be removed a few years after 2.60. 23654ac_datarootdir_hack=; ac_datarootdir_seen= 23655 23656case `sed -n '/datarootdir/ { 23657 p 23658 q 23659} 23660/@datadir@/p 23661/@docdir@/p 23662/@infodir@/p 23663/@localedir@/p 23664/@mandir@/p 23665' $ac_file_inputs` in 23666*datarootdir*) ac_datarootdir_seen=yes;; 23667*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23668 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23669echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23670_ACEOF 23671cat >>$CONFIG_STATUS <<_ACEOF 23672 ac_datarootdir_hack=' 23673 s&@datadir@&$datadir&g 23674 s&@docdir@&$docdir&g 23675 s&@infodir@&$infodir&g 23676 s&@localedir@&$localedir&g 23677 s&@mandir@&$mandir&g 23678 s&\\\${datarootdir}&$datarootdir&g' ;; 23679esac 23680_ACEOF 23681 23682# Neutralize VPATH when `$srcdir' = `.'. 23683# Shell code in configure.ac might set extrasub. 23684# FIXME: do we really want to maintain this feature? 23685cat >>$CONFIG_STATUS <<_ACEOF 23686 sed "$ac_vpsub 23687$extrasub 23688_ACEOF 23689cat >>$CONFIG_STATUS <<\_ACEOF 23690:t 23691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23692s&@configure_input@&$configure_input&;t t 23693s&@top_builddir@&$ac_top_builddir_sub&;t t 23694s&@srcdir@&$ac_srcdir&;t t 23695s&@abs_srcdir@&$ac_abs_srcdir&;t t 23696s&@top_srcdir@&$ac_top_srcdir&;t t 23697s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23698s&@builddir@&$ac_builddir&;t t 23699s&@abs_builddir@&$ac_abs_builddir&;t t 23700s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23701$ac_datarootdir_hack 23702" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 23703 23704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23705 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23706 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23707 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23708which seems to be undefined. Please make sure it is defined." >&5 23709echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23710which seems to be undefined. Please make sure it is defined." >&2;} 23711 23712 rm -f "$tmp/stdin" 23713 case $ac_file in 23714 -) cat "$tmp/out"; rm -f "$tmp/out";; 23715 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23716 esac 23717 ;; 23718 :H) 23719 # 23720 # CONFIG_HEADER 23721 # 23722_ACEOF 23723 23724# Transform confdefs.h into a sed script `conftest.defines', that 23725# substitutes the proper values into config.h.in to produce config.h. 23726rm -f conftest.defines conftest.tail 23727# First, append a space to every undef/define line, to ease matching. 23728echo 's/$/ /' >conftest.defines 23729# Then, protect against being on the right side of a sed subst, or in 23730# an unquoted here document, in config.status. If some macros were 23731# called several times there might be several #defines for the same 23732# symbol, which is useless. But do not sort them, since the last 23733# AC_DEFINE must be honored. 23734ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23735# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23736# NAME is the cpp macro being defined, VALUE is the value it is being given. 23737# PARAMS is the parameter list in the macro definition--in most cases, it's 23738# just an empty string. 23739ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23740ac_dB='\\)[ (].*,\\1define\\2' 23741ac_dC=' ' 23742ac_dD=' ,' 23743 23744uniq confdefs.h | 23745 sed -n ' 23746 t rset 23747 :rset 23748 s/^[ ]*#[ ]*define[ ][ ]*// 23749 t ok 23750 d 23751 :ok 23752 s/[\\&,]/\\&/g 23753 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23754 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23755 ' >>conftest.defines 23756 23757# Remove the space that was appended to ease matching. 23758# Then replace #undef with comments. This is necessary, for 23759# example, in the case of _POSIX_SOURCE, which is predefined and required 23760# on some systems where configure will not decide to define it. 23761# (The regexp can be short, since the line contains either #define or #undef.) 23762echo 's/ $// 23763s,^[ #]*u.*,/* & */,' >>conftest.defines 23764 23765# Break up conftest.defines: 23766ac_max_sed_lines=50 23767 23768# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23769# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23770# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23771# et cetera. 23772ac_in='$ac_file_inputs' 23773ac_out='"$tmp/out1"' 23774ac_nxt='"$tmp/out2"' 23775 23776while : 23777do 23778 # Write a here document: 23779 cat >>$CONFIG_STATUS <<_ACEOF 23780 # First, check the format of the line: 23781 cat >"\$tmp/defines.sed" <<\\CEOF 23782/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23783/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23784b 23785:def 23786_ACEOF 23787 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23788 echo 'CEOF 23789 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23790 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23791 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23792 grep . conftest.tail >/dev/null || break 23793 rm -f conftest.defines 23794 mv conftest.tail conftest.defines 23795done 23796rm -f conftest.defines conftest.tail 23797 23798echo "ac_result=$ac_in" >>$CONFIG_STATUS 23799cat >>$CONFIG_STATUS <<\_ACEOF 23800 if test x"$ac_file" != x-; then 23801 echo "/* $configure_input */" >"$tmp/config.h" 23802 cat "$ac_result" >>"$tmp/config.h" 23803 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23804 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23805echo "$as_me: $ac_file is unchanged" >&6;} 23806 else 23807 rm -f $ac_file 23808 mv "$tmp/config.h" $ac_file 23809 fi 23810 else 23811 echo "/* $configure_input */" 23812 cat "$ac_result" 23813 fi 23814 rm -f "$tmp/out12" 23815 ;; 23816 23817 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23818echo "$as_me: executing $ac_file commands" >&6;} 23819 ;; 23820 esac 23821 23822 23823 case $ac_file$ac_mode in 23824 "adjustment":C) chmod a+x l2-config ;; 23825 23826 esac 23827done # for ac_tag 23828 23829 23830{ (exit 0); exit 0; } 23831_ACEOF 23832chmod +x $CONFIG_STATUS 23833ac_clean_files=$ac_clean_files_save 23834 23835 23836# configure is writing to config.log, and then calls config.status. 23837# config.status does its own redirection, appending to config.log. 23838# Unfortunately, on DOS this fails, as config.log is still kept open 23839# by configure, so config.status won't be able to write to it; its 23840# output is simply discarded. So we exec the FD to /dev/null, 23841# effectively closing config.log, so it can be properly (re)opened and 23842# appended to by config.status. When coming back to configure, we 23843# need to make the FD available again. 23844if test "$no_create" != yes; then 23845 ac_cs_success=: 23846 ac_config_status_args= 23847 test "$silent" = yes && 23848 ac_config_status_args="$ac_config_status_args --quiet" 23849 exec 5>/dev/null 23850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23851 exec 5>>config.log 23852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23853 # would make configure fail if this is the last instruction. 23854 $ac_cs_success || { (exit 1); exit 1; } 23855fi 23856 23857 23858