1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for UpdateDD 2.6. 4# 5# Report bugs to <updatedd@philipp-benner.de>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 540# Check that we are running under the correct shell. 541SHELL=${CONFIG_SHELL-/bin/sh} 542 543case X$ECHO in 544X*--fallback-echo) 545 # Remove one level of quotation (which was required for Make). 546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 547 ;; 548esac 549 550echo=${ECHO-echo} 551if test "X$1" = X--no-reexec; then 552 # Discard the --no-reexec flag, and continue. 553 shift 554elif test "X$1" = X--fallback-echo; then 555 # Avoid inline document here, it may be left over 556 : 557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 558 # Yippee, $echo works! 559 : 560else 561 # Restart under the correct shell. 562 exec $SHELL "$0" --no-reexec ${1+"$@"} 563fi 564 565if test "X$1" = X--fallback-echo; then 566 # used as fallback echo 567 shift 568 cat <<EOF 569$* 570EOF 571 exit 0 572fi 573 574# The HP-UX ksh and POSIX shell print the target directory to stdout 575# if CDPATH is set. 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 577 578if test -z "$ECHO"; then 579if test "X${echo_test_string+set}" != Xset; then 580# find a string as large as possible, as long as the shell can cope with it 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 583 if (echo_test_string=`eval $cmd`) 2>/dev/null && 584 echo_test_string=`eval $cmd` && 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 586 then 587 break 588 fi 589 done 590fi 591 592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 echo="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$echo" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 echo='print -r' 623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 echo='printf %s\n' 634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 echo="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 echo="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 echo=echo 672 fi 673 fi 674 fi 675 fi 676fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681ECHO=$echo 682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689tagnames=${tagnames+${tagnames},}CXX 690 691tagnames=${tagnames+${tagnames},}F77 692 693exec 7<&0 </dev/null 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711SHELL=${CONFIG_SHELL-/bin/sh} 712 713# Identity of this package. 714PACKAGE_NAME='UpdateDD' 715PACKAGE_TARNAME='updatedd' 716PACKAGE_VERSION='2.6' 717PACKAGE_STRING='UpdateDD 2.6' 718PACKAGE_BUGREPORT='updatedd@philipp-benner.de' 719 720ac_unique_file="src/updatedd.c" 721# Factoring default headers for most tests. 722ac_includes_default="\ 723#include <stdio.h> 724#if HAVE_SYS_TYPES_H 725# include <sys/types.h> 726#endif 727#if HAVE_SYS_STAT_H 728# include <sys/stat.h> 729#endif 730#if STDC_HEADERS 731# include <stdlib.h> 732# include <stddef.h> 733#else 734# if HAVE_STDLIB_H 735# include <stdlib.h> 736# endif 737#endif 738#if HAVE_STRING_H 739# if !STDC_HEADERS && HAVE_MEMORY_H 740# include <memory.h> 741# endif 742# include <string.h> 743#endif 744#if HAVE_STRINGS_H 745# include <strings.h> 746#endif 747#if HAVE_INTTYPES_H 748# include <inttypes.h> 749#endif 750#if HAVE_STDINT_H 751# include <stdint.h> 752#endif 753#if HAVE_UNISTD_H 754# include <unistd.h> 755#endif" 756 757ac_subst_vars='SHELL 758PATH_SEPARATOR 759PACKAGE_NAME 760PACKAGE_TARNAME 761PACKAGE_VERSION 762PACKAGE_STRING 763PACKAGE_BUGREPORT 764exec_prefix 765prefix 766program_transform_name 767bindir 768sbindir 769libexecdir 770datarootdir 771datadir 772sysconfdir 773sharedstatedir 774localstatedir 775includedir 776oldincludedir 777docdir 778infodir 779htmldir 780dvidir 781pdfdir 782psdir 783libdir 784localedir 785mandir 786DEFS 787ECHO_C 788ECHO_N 789ECHO_T 790LIBS 791build_alias 792host_alias 793target_alias 794build 795build_cpu 796build_vendor 797build_os 798host 799host_cpu 800host_vendor 801host_os 802target 803target_cpu 804target_vendor 805target_os 806INSTALL_PROGRAM 807INSTALL_SCRIPT 808INSTALL_DATA 809CYGPATH_W 810PACKAGE 811VERSION 812ACLOCAL 813AUTOCONF 814AUTOMAKE 815AUTOHEADER 816MAKEINFO 817install_sh 818STRIP 819INSTALL_STRIP_PROGRAM 820mkdir_p 821AWK 822SET_MAKE 823am__leading_dot 824AMTAR 825am__tar 826am__untar 827CC 828CFLAGS 829LDFLAGS 830CPPFLAGS 831ac_ct_CC 832EXEEXT 833OBJEXT 834DEPDIR 835am__include 836am__quote 837AMDEP_TRUE 838AMDEP_FALSE 839AMDEPBACKSLASH 840CCDEPMODE 841am__fastdepCC_TRUE 842am__fastdepCC_FALSE 843GREP 844EGREP 845LN_S 846ECHO 847AR 848RANLIB 849CPP 850CXX 851CXXFLAGS 852ac_ct_CXX 853CXXDEPMODE 854am__fastdepCXX_TRUE 855am__fastdepCXX_FALSE 856CXXCPP 857F77 858FFLAGS 859ac_ct_F77 860LIBTOOL 861PACKAGE_SUMMARY 862PACKAGE_URL 863PACKAGE_LICENSE 864PACKAGE_DESCRIPTION 865HPLX_LIBRARY_PATH 866HPLX_INCLUDE_PATH 867LIBOBJS 868PERL 869COND_PERL_TRUE 870COND_PERL_FALSE 871LTLIBOBJS' 872ac_subst_files='' 873 ac_precious_vars='build_alias 874host_alias 875target_alias 876CC 877CFLAGS 878LDFLAGS 879CPPFLAGS 880CPP 881CXX 882CXXFLAGS 883CCC 884CXXCPP 885F77 886FFLAGS 887HPLX_LIBRARY_PATH 888HPLX_INCLUDE_PATH' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 # Accept the important Cygnus configure options, so we can diagnose typos. 954 955 case $ac_dashdash$ac_option in 956 --) 957 ac_dashdash=yes ;; 958 959 -bindir | --bindir | --bindi | --bind | --bin | --bi) 960 ac_prev=bindir ;; 961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 962 bindir=$ac_optarg ;; 963 964 -build | --build | --buil | --bui | --bu) 965 ac_prev=build_alias ;; 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 967 build_alias=$ac_optarg ;; 968 969 -cache-file | --cache-file | --cache-fil | --cache-fi \ 970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 971 ac_prev=cache_file ;; 972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 974 cache_file=$ac_optarg ;; 975 976 --config-cache | -C) 977 cache_file=config.cache ;; 978 979 -datadir | --datadir | --datadi | --datad) 980 ac_prev=datadir ;; 981 -datadir=* | --datadir=* | --datadi=* | --datad=*) 982 datadir=$ac_optarg ;; 983 984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 985 | --dataroo | --dataro | --datar) 986 ac_prev=datarootdir ;; 987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 989 datarootdir=$ac_optarg ;; 990 991 -disable-* | --disable-*) 992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 996 { (exit 1); exit 1; }; } 997 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 998 eval enable_$ac_feature=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1015 { (exit 1); exit 1; }; } 1016 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1017 eval enable_$ac_feature=\$ac_optarg ;; 1018 1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1021 | --exec | --exe | --ex) 1022 ac_prev=exec_prefix ;; 1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1025 | --exec=* | --exe=* | --ex=*) 1026 exec_prefix=$ac_optarg ;; 1027 1028 -gas | --gas | --ga | --g) 1029 # Obsolete; use --with-gas. 1030 with_gas=yes ;; 1031 1032 -help | --help | --hel | --he | -h) 1033 ac_init_help=long ;; 1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1035 ac_init_help=recursive ;; 1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1037 ac_init_help=short ;; 1038 1039 -host | --host | --hos | --ho) 1040 ac_prev=host_alias ;; 1041 -host=* | --host=* | --hos=* | --ho=*) 1042 host_alias=$ac_optarg ;; 1043 1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1045 ac_prev=htmldir ;; 1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1047 | --ht=*) 1048 htmldir=$ac_optarg ;; 1049 1050 -includedir | --includedir | --includedi | --included | --include \ 1051 | --includ | --inclu | --incl | --inc) 1052 ac_prev=includedir ;; 1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1054 | --includ=* | --inclu=* | --incl=* | --inc=*) 1055 includedir=$ac_optarg ;; 1056 1057 -infodir | --infodir | --infodi | --infod | --info | --inf) 1058 ac_prev=infodir ;; 1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1060 infodir=$ac_optarg ;; 1061 1062 -libdir | --libdir | --libdi | --libd) 1063 ac_prev=libdir ;; 1064 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1065 libdir=$ac_optarg ;; 1066 1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1068 | --libexe | --libex | --libe) 1069 ac_prev=libexecdir ;; 1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1071 | --libexe=* | --libex=* | --libe=*) 1072 libexecdir=$ac_optarg ;; 1073 1074 -localedir | --localedir | --localedi | --localed | --locale) 1075 ac_prev=localedir ;; 1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1077 localedir=$ac_optarg ;; 1078 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1080 | --localstate | --localstat | --localsta | --localst | --locals) 1081 ac_prev=localstatedir ;; 1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1084 localstatedir=$ac_optarg ;; 1085 1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1087 ac_prev=mandir ;; 1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1089 mandir=$ac_optarg ;; 1090 1091 -nfp | --nfp | --nf) 1092 # Obsolete; use --without-fp. 1093 with_fp=no ;; 1094 1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1096 | --no-cr | --no-c | -n) 1097 no_create=yes ;; 1098 1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1101 no_recursion=yes ;; 1102 1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1105 | --oldin | --oldi | --old | --ol | --o) 1106 ac_prev=oldincludedir ;; 1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1110 oldincludedir=$ac_optarg ;; 1111 1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1113 ac_prev=prefix ;; 1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1115 prefix=$ac_optarg ;; 1116 1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1118 | --program-pre | --program-pr | --program-p) 1119 ac_prev=program_prefix ;; 1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1122 program_prefix=$ac_optarg ;; 1123 1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1125 | --program-suf | --program-su | --program-s) 1126 ac_prev=program_suffix ;; 1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1129 program_suffix=$ac_optarg ;; 1130 1131 -program-transform-name | --program-transform-name \ 1132 | --program-transform-nam | --program-transform-na \ 1133 | --program-transform-n | --program-transform- \ 1134 | --program-transform | --program-transfor \ 1135 | --program-transfo | --program-transf \ 1136 | --program-trans | --program-tran \ 1137 | --progr-tra | --program-tr | --program-t) 1138 ac_prev=program_transform_name ;; 1139 -program-transform-name=* | --program-transform-name=* \ 1140 | --program-transform-nam=* | --program-transform-na=* \ 1141 | --program-transform-n=* | --program-transform-=* \ 1142 | --program-transform=* | --program-transfor=* \ 1143 | --program-transfo=* | --program-transf=* \ 1144 | --program-trans=* | --program-tran=* \ 1145 | --progr-tra=* | --program-tr=* | --program-t=*) 1146 program_transform_name=$ac_optarg ;; 1147 1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1149 ac_prev=pdfdir ;; 1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1151 pdfdir=$ac_optarg ;; 1152 1153 -psdir | --psdir | --psdi | --psd | --ps) 1154 ac_prev=psdir ;; 1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1156 psdir=$ac_optarg ;; 1157 1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1159 | -silent | --silent | --silen | --sile | --sil) 1160 silent=yes ;; 1161 1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1163 ac_prev=sbindir ;; 1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1165 | --sbi=* | --sb=*) 1166 sbindir=$ac_optarg ;; 1167 1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1170 | --sharedst | --shareds | --shared | --share | --shar \ 1171 | --sha | --sh) 1172 ac_prev=sharedstatedir ;; 1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1176 | --sha=* | --sh=*) 1177 sharedstatedir=$ac_optarg ;; 1178 1179 -site | --site | --sit) 1180 ac_prev=site ;; 1181 -site=* | --site=* | --sit=*) 1182 site=$ac_optarg ;; 1183 1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1185 ac_prev=srcdir ;; 1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1187 srcdir=$ac_optarg ;; 1188 1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1190 | --syscon | --sysco | --sysc | --sys | --sy) 1191 ac_prev=sysconfdir ;; 1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1194 sysconfdir=$ac_optarg ;; 1195 1196 -target | --target | --targe | --targ | --tar | --ta | --t) 1197 ac_prev=target_alias ;; 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1199 target_alias=$ac_optarg ;; 1200 1201 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1202 verbose=yes ;; 1203 1204 -version | --version | --versio | --versi | --vers | -V) 1205 ac_init_version=: ;; 1206 1207 -with-* | --with-*) 1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1211 { echo "$as_me: error: invalid package name: $ac_package" >&2 1212 { (exit 1); exit 1; }; } 1213 ac_package=`echo $ac_package| sed 's/-/_/g'` 1214 eval with_$ac_package=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/-/_/g'` 1223 eval with_$ac_package=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) { echo "$as_me: error: unrecognized option: $ac_option 1244Try \`$0 --help' for more information." >&2 1245 { (exit 1); exit 1; }; } 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1253 { (exit 1); exit 1; }; } 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 { echo "$as_me: error: missing argument to $ac_option" >&2 1271 { (exit 1); exit 1; }; } 1272fi 1273 1274# Be sure to have absolute directory names. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1286 { (exit 1); exit 1; }; } 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1301 If a cross compiler is detected then cross compile mode will be used." >&2 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 { echo "$as_me: error: Working directory cannot be determined" >&2 1317 { (exit 1); exit 1; }; } 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 { echo "$as_me: error: pwd does not report name of working directory" >&2 1320 { (exit 1); exit 1; }; } 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$0" || 1328$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$0" : 'X\(//\)[^/]' \| \ 1330 X"$0" : 'X\(//\)$' \| \ 1331 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1332echo X"$0" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1360 { (exit 1); exit 1; }; } 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1365 { (exit 1); exit 1; }; } 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures UpdateDD 2.6 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/updatedd] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456 --target=TARGET configure for building compilers for TARGET [HOST] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of UpdateDD 2.6:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466Optional Features: 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --disable-dependency-tracking speeds up one-time build 1470 --enable-dependency-tracking do not reject slow dependency extractors 1471 --enable-shared[=PKGS] build shared libraries [default=yes] 1472 --enable-static[=PKGS] build static libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1481 --with-pic try to use only PIC/non-PIC objects [default=use 1482 both] 1483 --with-tags[=TAGS] include additional configurations [automatic] 1484 1485Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1491 you have headers in a nonstandard directory <include dir> 1492 CPP C preprocessor 1493 CXX C++ compiler command 1494 CXXFLAGS C++ compiler flags 1495 CXXCPP C++ preprocessor 1496 F77 Fortran 77 compiler command 1497 FFLAGS Fortran 77 compiler flags 1498 HPLX_LIBRARY_PATH 1499 Path to the hplx library directory (only for hp-ux systems). 1500 HPLX_INCLUDE_PATH 1501 Path to the hplx include directory (only for hp-ux systems). 1502 1503Use these variables to override the choices made by `configure' or to help 1504it to find libraries and programs with nonstandard names/locations. 1505 1506Report bugs to <updatedd@philipp-benner.de>. 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567UpdateDD configure 2.6 1568generated by GNU Autoconf 2.60 1569 1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577cat >config.log <<_ACEOF 1578This file contains any messages produced by compilers while 1579running configure, to aid debugging if configure makes a mistake. 1580 1581It was created by UpdateDD $as_me 2.6, which was 1582generated by GNU Autoconf 2.60. Invocation command line was 1583 1584 $ $0 $@ 1585 1586_ACEOF 1587exec 5>>config.log 1588{ 1589cat <<_ASUNAME 1590## --------- ## 1591## Platform. ## 1592## --------- ## 1593 1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1595uname -m = `(uname -m) 2>/dev/null || echo unknown` 1596uname -r = `(uname -r) 2>/dev/null || echo unknown` 1597uname -s = `(uname -s) 2>/dev/null || echo unknown` 1598uname -v = `(uname -v) 2>/dev/null || echo unknown` 1599 1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1601/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1602 1603/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1604/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1606/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1607/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1608/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1609/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1610 1611_ASUNAME 1612 1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1614for as_dir in $PATH 1615do 1616 IFS=$as_save_IFS 1617 test -z "$as_dir" && as_dir=. 1618 echo "PATH: $as_dir" 1619done 1620IFS=$as_save_IFS 1621 1622} >&5 1623 1624cat >&5 <<_ACEOF 1625 1626 1627## ----------- ## 1628## Core tests. ## 1629## ----------- ## 1630 1631_ACEOF 1632 1633 1634# Keep a trace of the command line. 1635# Strip out --no-create and --no-recursion so they do not pile up. 1636# Strip out --silent because we don't want to record it for future runs. 1637# Also quote any args containing shell meta-characters. 1638# Make two passes to allow for proper duplicate-argument suppression. 1639ac_configure_args= 1640ac_configure_args0= 1641ac_configure_args1= 1642ac_must_keep_next=false 1643for ac_pass in 1 2 1644do 1645 for ac_arg 1646 do 1647 case $ac_arg in 1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1650 | -silent | --silent | --silen | --sile | --sil) 1651 continue ;; 1652 *\'*) 1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 esac 1655 case $ac_pass in 1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1657 2) 1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1659 if test $ac_must_keep_next = true; then 1660 ac_must_keep_next=false # Got value, back to normal. 1661 else 1662 case $ac_arg in 1663 *=* | --config-cache | -C | -disable-* | --disable-* \ 1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1666 | -with-* | --with-* | -without-* | --without-* | --x) 1667 case "$ac_configure_args0 " in 1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1669 esac 1670 ;; 1671 -* ) ac_must_keep_next=true ;; 1672 esac 1673 fi 1674 ac_configure_args="$ac_configure_args '$ac_arg'" 1675 ;; 1676 esac 1677 done 1678done 1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1681 1682# When interrupted or exit'd, cleanup temporary files, and complete 1683# config.log. We remove comments because anyway the quotes in there 1684# would cause problems or look ugly. 1685# WARNING: Use '\'' to represent an apostrophe within the trap. 1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1687trap 'exit_status=$? 1688 # Save into config.log some information that might help in debugging. 1689 { 1690 echo 1691 1692 cat <<\_ASBOX 1693## ---------------- ## 1694## Cache variables. ## 1695## ---------------- ## 1696_ASBOX 1697 echo 1698 # The following way of writing the cache mishandles newlines in values, 1699( 1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1701 eval ac_val=\$$ac_var 1702 case $ac_val in #( 1703 *${as_nl}*) 1704 case $ac_var in #( 1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1707 esac 1708 case $ac_var in #( 1709 _ | IFS | as_nl) ;; #( 1710 *) $as_unset $ac_var ;; 1711 esac ;; 1712 esac 1713 done 1714 (set) 2>&1 | 1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1716 *${as_nl}ac_space=\ *) 1717 sed -n \ 1718 "s/'\''/'\''\\\\'\'''\''/g; 1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1720 ;; #( 1721 *) 1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1723 ;; 1724 esac | 1725 sort 1726) 1727 echo 1728 1729 cat <<\_ASBOX 1730## ----------------- ## 1731## Output variables. ## 1732## ----------------- ## 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_vars 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 1745 if test -n "$ac_subst_files"; then 1746 cat <<\_ASBOX 1747## ------------------- ## 1748## File substitutions. ## 1749## ------------------- ## 1750_ASBOX 1751 echo 1752 for ac_var in $ac_subst_files 1753 do 1754 eval ac_val=\$$ac_var 1755 case $ac_val in 1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1757 esac 1758 echo "$ac_var='\''$ac_val'\''" 1759 done | sort 1760 echo 1761 fi 1762 1763 if test -s confdefs.h; then 1764 cat <<\_ASBOX 1765## ----------- ## 1766## confdefs.h. ## 1767## ----------- ## 1768_ASBOX 1769 echo 1770 cat confdefs.h 1771 echo 1772 fi 1773 test "$ac_signal" != 0 && 1774 echo "$as_me: caught signal $ac_signal" 1775 echo "$as_me: exit $exit_status" 1776 } >&5 1777 rm -f core *.core core.conftest.* && 1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1779 exit $exit_status 1780' 0 1781for ac_signal in 1 2 13 15; do 1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1783done 1784ac_signal=0 1785 1786# confdefs.h avoids OS command line length limits that DEFS can exceed. 1787rm -f -r conftest* confdefs.h 1788 1789# Predefined preprocessor variables. 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_NAME "$PACKAGE_NAME" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_VERSION "$PACKAGE_VERSION" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_STRING "$PACKAGE_STRING" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1813_ACEOF 1814 1815 1816# Let the site file select an alternate cache file if it wants to. 1817# Prefer explicitly selected file to automatically selected ones. 1818if test -n "$CONFIG_SITE"; then 1819 set x "$CONFIG_SITE" 1820elif test "x$prefix" != xNONE; then 1821 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1822else 1823 set x "$ac_default_prefix/share/config.site" \ 1824 "$ac_default_prefix/etc/config.site" 1825fi 1826shift 1827for ac_site_file 1828do 1829 if test -r "$ac_site_file"; then 1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1831echo "$as_me: loading site script $ac_site_file" >&6;} 1832 sed 's/^/| /' "$ac_site_file" >&5 1833 . "$ac_site_file" 1834 fi 1835done 1836 1837if test -r "$cache_file"; then 1838 # Some versions of bash will fail to source /dev/null (special 1839 # files actually), so we avoid doing that. 1840 if test -f "$cache_file"; then 1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1842echo "$as_me: loading cache $cache_file" >&6;} 1843 case $cache_file in 1844 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1845 *) . "./$cache_file";; 1846 esac 1847 fi 1848else 1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1850echo "$as_me: creating cache $cache_file" >&6;} 1851 >$cache_file 1852fi 1853 1854# Check that the precious variables saved in the cache have kept the same 1855# value. 1856ac_cache_corrupted=false 1857for ac_var in $ac_precious_vars; do 1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1859 eval ac_new_set=\$ac_env_${ac_var}_set 1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1861 eval ac_new_val=\$ac_env_${ac_var}_value 1862 case $ac_old_set,$ac_new_set in 1863 set,) 1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,set) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,);; 1872 *) 1873 if test "x$ac_old_val" != "x$ac_new_val"; then 1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1877echo "$as_me: former value: $ac_old_val" >&2;} 1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1879echo "$as_me: current value: $ac_new_val" >&2;} 1880 ac_cache_corrupted=: 1881 fi;; 1882 esac 1883 # Pass precious variables to config.status. 1884 if test "$ac_new_set" = set; then 1885 case $ac_new_val in 1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1887 *) ac_arg=$ac_var=$ac_new_val ;; 1888 esac 1889 case " $ac_configure_args " in 1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1892 esac 1893 fi 1894done 1895if $ac_cache_corrupted; then 1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1897echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927ac_ext=c 1928ac_cpp='$CPP $CPPFLAGS' 1929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1931ac_compiler_gnu=$ac_cv_c_compiler_gnu 1932 1933 1934ac_aux_dir= 1935for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1936 if test -f "$ac_dir/install-sh"; then 1937 ac_aux_dir=$ac_dir 1938 ac_install_sh="$ac_aux_dir/install-sh -c" 1939 break 1940 elif test -f "$ac_dir/install.sh"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/install.sh -c" 1943 break 1944 elif test -f "$ac_dir/shtool"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/shtool install -c" 1947 break 1948 fi 1949done 1950if test -z "$ac_aux_dir"; then 1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1952echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1953 { (exit 1); exit 1; }; } 1954fi 1955 1956# These three variables are undocumented and unsupported, 1957# and are intended to be withdrawn in a future Autoconf release. 1958# They can cause serious problems if a builder's source tree is in a directory 1959# whose full name contains unusual characters. 1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1963 1964 1965# Make sure we can run config.sub. 1966$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1967 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1968echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1969 { (exit 1); exit 1; }; } 1970 1971{ echo "$as_me:$LINENO: checking build system type" >&5 1972echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1973if test "${ac_cv_build+set}" = set; then 1974 echo $ECHO_N "(cached) $ECHO_C" >&6 1975else 1976 ac_build_alias=$build_alias 1977test "x$ac_build_alias" = x && 1978 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1979test "x$ac_build_alias" = x && 1980 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1981echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1982 { (exit 1); exit 1; }; } 1983ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1984 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1985echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1986 { (exit 1); exit 1; }; } 1987 1988fi 1989{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1990echo "${ECHO_T}$ac_cv_build" >&6; } 1991case $ac_cv_build in 1992*-*-*) ;; 1993*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1994echo "$as_me: error: invalid value of canonical build" >&2;} 1995 { (exit 1); exit 1; }; };; 1996esac 1997build=$ac_cv_build 1998ac_save_IFS=$IFS; IFS='-' 1999set x $ac_cv_build 2000shift 2001build_cpu=$1 2002build_vendor=$2 2003shift; shift 2004# Remember, the first character of IFS is used to create $*, 2005# except with old shells: 2006build_os=$* 2007IFS=$ac_save_IFS 2008case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2009 2010 2011{ echo "$as_me:$LINENO: checking host system type" >&5 2012echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2013if test "${ac_cv_host+set}" = set; then 2014 echo $ECHO_N "(cached) $ECHO_C" >&6 2015else 2016 if test "x$host_alias" = x; then 2017 ac_cv_host=$ac_cv_build 2018else 2019 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2020 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2021echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2022 { (exit 1); exit 1; }; } 2023fi 2024 2025fi 2026{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2027echo "${ECHO_T}$ac_cv_host" >&6; } 2028case $ac_cv_host in 2029*-*-*) ;; 2030*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2031echo "$as_me: error: invalid value of canonical host" >&2;} 2032 { (exit 1); exit 1; }; };; 2033esac 2034host=$ac_cv_host 2035ac_save_IFS=$IFS; IFS='-' 2036set x $ac_cv_host 2037shift 2038host_cpu=$1 2039host_vendor=$2 2040shift; shift 2041# Remember, the first character of IFS is used to create $*, 2042# except with old shells: 2043host_os=$* 2044IFS=$ac_save_IFS 2045case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2046 2047 2048{ echo "$as_me:$LINENO: checking target system type" >&5 2049echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2050if test "${ac_cv_target+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 if test "x$target_alias" = x; then 2054 ac_cv_target=$ac_cv_host 2055else 2056 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2058echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062fi 2063{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2064echo "${ECHO_T}$ac_cv_target" >&6; } 2065case $ac_cv_target in 2066*-*-*) ;; 2067*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2068echo "$as_me: error: invalid value of canonical target" >&2;} 2069 { (exit 1); exit 1; }; };; 2070esac 2071target=$ac_cv_target 2072ac_save_IFS=$IFS; IFS='-' 2073set x $ac_cv_target 2074shift 2075target_cpu=$1 2076target_vendor=$2 2077shift; shift 2078# Remember, the first character of IFS is used to create $*, 2079# except with old shells: 2080target_os=$* 2081IFS=$ac_save_IFS 2082case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2083 2084 2085# The aliases save the names the user supplied, while $host etc. 2086# will get canonicalized. 2087test -n "$target_alias" && 2088 test "$program_prefix$program_suffix$program_transform_name" = \ 2089 NONENONEs,x,x, && 2090 program_prefix=${target_alias}- 2091 2092am__api_version="1.9" 2093# Find a good install program. We prefer a C program (faster), 2094# so one script is as good as another. But avoid the broken or 2095# incompatible versions: 2096# SysV /etc/install, /usr/sbin/install 2097# SunOS /usr/etc/install 2098# IRIX /sbin/install 2099# AIX /bin/install 2100# AmigaOS /C/install, which installs bootblocks on floppy discs 2101# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2102# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2103# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2104# OS/2's system install, which has a completely different semantic 2105# ./install, which can be erroneously created by make from ./install.sh. 2106{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2107echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2108if test -z "$INSTALL"; then 2109if test "${ac_cv_path_install+set}" = set; then 2110 echo $ECHO_N "(cached) $ECHO_C" >&6 2111else 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 # Account for people who put trailing slashes in PATH elements. 2118case $as_dir/ in 2119 ./ | .// | /cC/* | \ 2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2122 /usr/ucb/* ) ;; 2123 *) 2124 # OSF1 and SCO ODT 3.0 have their own names for install. 2125 # Don't use installbsd from OSF since it installs stuff as root 2126 # by default. 2127 for ac_prog in ginstall scoinst install; do 2128 for ac_exec_ext in '' $ac_executable_extensions; do 2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2130 if test $ac_prog = install && 2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2132 # AIX install. It has an incompatible calling convention. 2133 : 2134 elif test $ac_prog = install && 2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2136 # program-specific install script used by HP pwplus--don't use. 2137 : 2138 else 2139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2140 break 3 2141 fi 2142 fi 2143 done 2144 done 2145 ;; 2146esac 2147done 2148IFS=$as_save_IFS 2149 2150 2151fi 2152 if test "${ac_cv_path_install+set}" = set; then 2153 INSTALL=$ac_cv_path_install 2154 else 2155 # As a last resort, use the slow shell script. Don't cache a 2156 # value for INSTALL within a source directory, because that will 2157 # break other packages using the cache if that directory is 2158 # removed, or if the value is a relative name. 2159 INSTALL=$ac_install_sh 2160 fi 2161fi 2162{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2163echo "${ECHO_T}$INSTALL" >&6; } 2164 2165# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2166# It thinks the first close brace ends the variable substitution. 2167test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2168 2169test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2170 2171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2172 2173{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2174echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2175# Just in case 2176sleep 1 2177echo timestamp > conftest.file 2178# Do `set' in a subshell so we don't clobber the current shell's 2179# arguments. Must try -L first in case configure is actually a 2180# symlink; some systems play weird games with the mod time of symlinks 2181# (eg FreeBSD returns the mod time of the symlink's containing 2182# directory). 2183if ( 2184 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2185 if test "$*" = "X"; then 2186 # -L didn't work. 2187 set X `ls -t $srcdir/configure conftest.file` 2188 fi 2189 rm -f conftest.file 2190 if test "$*" != "X $srcdir/configure conftest.file" \ 2191 && test "$*" != "X conftest.file $srcdir/configure"; then 2192 2193 # If neither matched, then we have a broken ls. This can happen 2194 # if, for instance, CONFIG_SHELL is bash and it inherits a 2195 # broken ls alias from the environment. This has actually 2196 # happened. Such a system could not be considered "sane". 2197 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2198alias in your environment" >&5 2199echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2200alias in your environment" >&2;} 2201 { (exit 1); exit 1; }; } 2202 fi 2203 2204 test "$2" = conftest.file 2205 ) 2206then 2207 # Ok. 2208 : 2209else 2210 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2211Check your system clock" >&5 2212echo "$as_me: error: newly created file is older than distributed files! 2213Check your system clock" >&2;} 2214 { (exit 1); exit 1; }; } 2215fi 2216{ echo "$as_me:$LINENO: result: yes" >&5 2217echo "${ECHO_T}yes" >&6; } 2218test "$program_prefix" != NONE && 2219 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2220# Use a double $ so make ignores it. 2221test "$program_suffix" != NONE && 2222 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2223# Double any \ or $. echo might interpret backslashes. 2224# By default was `s,x,x', remove it if useless. 2225cat <<\_ACEOF >conftest.sed 2226s/[\\$]/&&/g;s/;s,x,x,$// 2227_ACEOF 2228program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2229rm -f conftest.sed 2230 2231# expand $ac_aux_dir to an absolute path 2232am_aux_dir=`cd $ac_aux_dir && pwd` 2233 2234test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2235# Use eval to expand $SHELL 2236if eval "$MISSING --run true"; then 2237 am_missing_run="$MISSING --run " 2238else 2239 am_missing_run= 2240 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2241echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2242fi 2243 2244if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2245 # We used to keeping the `.' as first argument, in order to 2246 # allow $(mkdir_p) to be used without argument. As in 2247 # $(mkdir_p) $(somedir) 2248 # where $(somedir) is conditionally defined. However this is wrong 2249 # for two reasons: 2250 # 1. if the package is installed by a user who cannot write `.' 2251 # make install will fail, 2252 # 2. the above comment should most certainly read 2253 # $(mkdir_p) $(DESTDIR)$(somedir) 2254 # so it does not work when $(somedir) is undefined and 2255 # $(DESTDIR) is not. 2256 # To support the latter case, we have to write 2257 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2258 # so the `.' trick is pointless. 2259 mkdir_p='mkdir -p --' 2260else 2261 # On NextStep and OpenStep, the `mkdir' command does not 2262 # recognize any option. It will interpret all options as 2263 # directories to create, and then abort because `.' already 2264 # exists. 2265 for d in ./-p ./--version; 2266 do 2267 test -d $d && rmdir $d 2268 done 2269 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2270 if test -f "$ac_aux_dir/mkinstalldirs"; then 2271 mkdir_p='$(mkinstalldirs)' 2272 else 2273 mkdir_p='$(install_sh) -d' 2274 fi 2275fi 2276 2277for ac_prog in gawk mawk nawk awk 2278do 2279 # Extract the first word of "$ac_prog", so it can be a program name with args. 2280set dummy $ac_prog; ac_word=$2 2281{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2283if test "${ac_cv_prog_AWK+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 if test -n "$AWK"; then 2287 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2296 ac_cv_prog_AWK="$ac_prog" 2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301done 2302IFS=$as_save_IFS 2303 2304fi 2305fi 2306AWK=$ac_cv_prog_AWK 2307if test -n "$AWK"; then 2308 { echo "$as_me:$LINENO: result: $AWK" >&5 2309echo "${ECHO_T}$AWK" >&6; } 2310else 2311 { echo "$as_me:$LINENO: result: no" >&5 2312echo "${ECHO_T}no" >&6; } 2313fi 2314 2315 2316 test -n "$AWK" && break 2317done 2318 2319{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2320echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2321set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2322if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 cat >conftest.make <<\_ACEOF 2326SHELL = /bin/sh 2327all: 2328 @echo '@@@%%%=$(MAKE)=@@@%%%' 2329_ACEOF 2330# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2331case `${MAKE-make} -f conftest.make 2>/dev/null` in 2332 *@@@%%%=?*=@@@%%%*) 2333 eval ac_cv_prog_make_${ac_make}_set=yes;; 2334 *) 2335 eval ac_cv_prog_make_${ac_make}_set=no;; 2336esac 2337rm -f conftest.make 2338fi 2339if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2340 { echo "$as_me:$LINENO: result: yes" >&5 2341echo "${ECHO_T}yes" >&6; } 2342 SET_MAKE= 2343else 2344 { echo "$as_me:$LINENO: result: no" >&5 2345echo "${ECHO_T}no" >&6; } 2346 SET_MAKE="MAKE=${MAKE-make}" 2347fi 2348 2349rm -rf .tst 2>/dev/null 2350mkdir .tst 2>/dev/null 2351if test -d .tst; then 2352 am__leading_dot=. 2353else 2354 am__leading_dot=_ 2355fi 2356rmdir .tst 2>/dev/null 2357 2358# test to see if srcdir already configured 2359if test "`cd $srcdir && pwd`" != "`pwd`" && 2360 test -f $srcdir/config.status; then 2361 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2362echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2363 { (exit 1); exit 1; }; } 2364fi 2365 2366# test whether we have cygpath 2367if test -z "$CYGPATH_W"; then 2368 if (cygpath --version) >/dev/null 2>/dev/null; then 2369 CYGPATH_W='cygpath -w' 2370 else 2371 CYGPATH_W=echo 2372 fi 2373fi 2374 2375 2376# Define the identity of the package. 2377 PACKAGE='updatedd' 2378 VERSION='2.6' 2379 2380 2381cat >>confdefs.h <<_ACEOF 2382#define PACKAGE "$PACKAGE" 2383_ACEOF 2384 2385 2386cat >>confdefs.h <<_ACEOF 2387#define VERSION "$VERSION" 2388_ACEOF 2389 2390# Some tools Automake needs. 2391 2392ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2393 2394 2395AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2396 2397 2398AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2399 2400 2401AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2402 2403 2404MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2405 2406install_sh=${install_sh-"$am_aux_dir/install-sh"} 2407 2408# Installed binaries are usually stripped using `strip' when the user 2409# run `make install-strip'. However `strip' might not be the right 2410# tool to use in cross-compilation environments, therefore Automake 2411# will honor the `STRIP' environment variable to overrule this program. 2412if test "$cross_compiling" != no; then 2413 if test -n "$ac_tool_prefix"; then 2414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2415set dummy ${ac_tool_prefix}strip; ac_word=$2 2416{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2418if test "${ac_cv_prog_STRIP+set}" = set; then 2419 echo $ECHO_N "(cached) $ECHO_C" >&6 2420else 2421 if test -n "$STRIP"; then 2422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2423else 2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425for as_dir in $PATH 2426do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 for ac_exec_ext in '' $ac_executable_extensions; do 2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2431 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2433 break 2 2434 fi 2435done 2436done 2437IFS=$as_save_IFS 2438 2439fi 2440fi 2441STRIP=$ac_cv_prog_STRIP 2442if test -n "$STRIP"; then 2443 { echo "$as_me:$LINENO: result: $STRIP" >&5 2444echo "${ECHO_T}$STRIP" >&6; } 2445else 2446 { echo "$as_me:$LINENO: result: no" >&5 2447echo "${ECHO_T}no" >&6; } 2448fi 2449 2450 2451fi 2452if test -z "$ac_cv_prog_STRIP"; then 2453 ac_ct_STRIP=$STRIP 2454 # Extract the first word of "strip", so it can be a program name with args. 2455set dummy strip; ac_word=$2 2456{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2458if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2459 echo $ECHO_N "(cached) $ECHO_C" >&6 2460else 2461 if test -n "$ac_ct_STRIP"; then 2462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2463else 2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465for as_dir in $PATH 2466do 2467 IFS=$as_save_IFS 2468 test -z "$as_dir" && as_dir=. 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2471 ac_cv_prog_ac_ct_STRIP="strip" 2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2473 break 2 2474 fi 2475done 2476done 2477IFS=$as_save_IFS 2478 2479fi 2480fi 2481ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2482if test -n "$ac_ct_STRIP"; then 2483 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2484echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2485else 2486 { echo "$as_me:$LINENO: result: no" >&5 2487echo "${ECHO_T}no" >&6; } 2488fi 2489 2490 if test "x$ac_ct_STRIP" = x; then 2491 STRIP=":" 2492 else 2493 case $cross_compiling:$ac_tool_warned in 2494yes:) 2495{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2496whose name does not start with the host triplet. If you think this 2497configuration is useful to you, please write to autoconf@gnu.org." >&5 2498echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2499whose name does not start with the host triplet. If you think this 2500configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2501ac_tool_warned=yes ;; 2502esac 2503 STRIP=$ac_ct_STRIP 2504 fi 2505else 2506 STRIP="$ac_cv_prog_STRIP" 2507fi 2508 2509fi 2510INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2511 2512# We need awk for the "check" target. The system "awk" is bad on 2513# some platforms. 2514# Always define AMTAR for backward compatibility. 2515 2516AMTAR=${AMTAR-"${am_missing_run}tar"} 2517 2518am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2519 2520 2521 2522 2523 2524ac_ext=c 2525ac_cpp='$CPP $CPPFLAGS' 2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2528ac_compiler_gnu=$ac_cv_c_compiler_gnu 2529if test -n "$ac_tool_prefix"; then 2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2531set dummy ${ac_tool_prefix}gcc; ac_word=$2 2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2534if test "${ac_cv_prog_CC+set}" = set; then 2535 echo $ECHO_N "(cached) $ECHO_C" >&6 2536else 2537 if test -n "$CC"; then 2538 ac_cv_prog_CC="$CC" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2547 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557CC=$ac_cv_prog_CC 2558if test -n "$CC"; then 2559 { echo "$as_me:$LINENO: result: $CC" >&5 2560echo "${ECHO_T}$CC" >&6; } 2561else 2562 { echo "$as_me:$LINENO: result: no" >&5 2563echo "${ECHO_T}no" >&6; } 2564fi 2565 2566 2567fi 2568if test -z "$ac_cv_prog_CC"; then 2569 ac_ct_CC=$CC 2570 # Extract the first word of "gcc", so it can be a program name with args. 2571set dummy gcc; ac_word=$2 2572{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2575 echo $ECHO_N "(cached) $ECHO_C" >&6 2576else 2577 if test -n "$ac_ct_CC"; then 2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2579else 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2587 ac_cv_prog_ac_ct_CC="gcc" 2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2589 break 2 2590 fi 2591done 2592done 2593IFS=$as_save_IFS 2594 2595fi 2596fi 2597ac_ct_CC=$ac_cv_prog_ac_ct_CC 2598if test -n "$ac_ct_CC"; then 2599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2600echo "${ECHO_T}$ac_ct_CC" >&6; } 2601else 2602 { echo "$as_me:$LINENO: result: no" >&5 2603echo "${ECHO_T}no" >&6; } 2604fi 2605 2606 if test "x$ac_ct_CC" = x; then 2607 CC="" 2608 else 2609 case $cross_compiling:$ac_tool_warned in 2610yes:) 2611{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2612whose name does not start with the host triplet. If you think this 2613configuration is useful to you, please write to autoconf@gnu.org." >&5 2614echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2615whose name does not start with the host triplet. If you think this 2616configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2617ac_tool_warned=yes ;; 2618esac 2619 CC=$ac_ct_CC 2620 fi 2621else 2622 CC="$ac_cv_prog_CC" 2623fi 2624 2625if test -z "$CC"; then 2626 if test -n "$ac_tool_prefix"; then 2627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2628set dummy ${ac_tool_prefix}cc; ac_word=$2 2629{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2631if test "${ac_cv_prog_CC+set}" = set; then 2632 echo $ECHO_N "(cached) $ECHO_C" >&6 2633else 2634 if test -n "$CC"; then 2635 ac_cv_prog_CC="$CC" # Let the user override the test. 2636else 2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2644 ac_cv_prog_CC="${ac_tool_prefix}cc" 2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2646 break 2 2647 fi 2648done 2649done 2650IFS=$as_save_IFS 2651 2652fi 2653fi 2654CC=$ac_cv_prog_CC 2655if test -n "$CC"; then 2656 { echo "$as_me:$LINENO: result: $CC" >&5 2657echo "${ECHO_T}$CC" >&6; } 2658else 2659 { echo "$as_me:$LINENO: result: no" >&5 2660echo "${ECHO_T}no" >&6; } 2661fi 2662 2663 2664 fi 2665fi 2666if test -z "$CC"; then 2667 # Extract the first word of "cc", so it can be a program name with args. 2668set dummy cc; ac_word=$2 2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2671if test "${ac_cv_prog_CC+set}" = set; then 2672 echo $ECHO_N "(cached) $ECHO_C" >&6 2673else 2674 if test -n "$CC"; then 2675 ac_cv_prog_CC="$CC" # Let the user override the test. 2676else 2677 ac_prog_rejected=no 2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2686 ac_prog_rejected=yes 2687 continue 2688 fi 2689 ac_cv_prog_CC="cc" 2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694done 2695IFS=$as_save_IFS 2696 2697if test $ac_prog_rejected = yes; then 2698 # We found a bogon in the path, so make sure we never use it. 2699 set dummy $ac_cv_prog_CC 2700 shift 2701 if test $# != 0; then 2702 # We chose a different compiler from the bogus one. 2703 # However, it has the same basename, so the bogon will be chosen 2704 # first if we set CC to just the basename; use the full file name. 2705 shift 2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2707 fi 2708fi 2709fi 2710fi 2711CC=$ac_cv_prog_CC 2712if test -n "$CC"; then 2713 { echo "$as_me:$LINENO: result: $CC" >&5 2714echo "${ECHO_T}$CC" >&6; } 2715else 2716 { echo "$as_me:$LINENO: result: no" >&5 2717echo "${ECHO_T}no" >&6; } 2718fi 2719 2720 2721fi 2722if test -z "$CC"; then 2723 if test -n "$ac_tool_prefix"; then 2724 for ac_prog in cl.exe 2725 do 2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2728{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2730if test "${ac_cv_prog_CC+set}" = set; then 2731 echo $ECHO_N "(cached) $ECHO_C" >&6 2732else 2733 if test -n "$CC"; then 2734 ac_cv_prog_CC="$CC" # Let the user override the test. 2735else 2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2737for as_dir in $PATH 2738do 2739 IFS=$as_save_IFS 2740 test -z "$as_dir" && as_dir=. 2741 for ac_exec_ext in '' $ac_executable_extensions; do 2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2745 break 2 2746 fi 2747done 2748done 2749IFS=$as_save_IFS 2750 2751fi 2752fi 2753CC=$ac_cv_prog_CC 2754if test -n "$CC"; then 2755 { echo "$as_me:$LINENO: result: $CC" >&5 2756echo "${ECHO_T}$CC" >&6; } 2757else 2758 { echo "$as_me:$LINENO: result: no" >&5 2759echo "${ECHO_T}no" >&6; } 2760fi 2761 2762 2763 test -n "$CC" && break 2764 done 2765fi 2766if test -z "$CC"; then 2767 ac_ct_CC=$CC 2768 for ac_prog in cl.exe 2769do 2770 # Extract the first word of "$ac_prog", so it can be a program name with args. 2771set dummy $ac_prog; ac_word=$2 2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 if test -n "$ac_ct_CC"; then 2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2787 ac_cv_prog_ac_ct_CC="$ac_prog" 2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797ac_ct_CC=$ac_cv_prog_ac_ct_CC 2798if test -n "$ac_ct_CC"; then 2799 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2800echo "${ECHO_T}$ac_ct_CC" >&6; } 2801else 2802 { echo "$as_me:$LINENO: result: no" >&5 2803echo "${ECHO_T}no" >&6; } 2804fi 2805 2806 2807 test -n "$ac_ct_CC" && break 2808done 2809 2810 if test "x$ac_ct_CC" = x; then 2811 CC="" 2812 else 2813 case $cross_compiling:$ac_tool_warned in 2814yes:) 2815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2816whose name does not start with the host triplet. If you think this 2817configuration is useful to you, please write to autoconf@gnu.org." >&5 2818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2819whose name does not start with the host triplet. If you think this 2820configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2821ac_tool_warned=yes ;; 2822esac 2823 CC=$ac_ct_CC 2824 fi 2825fi 2826 2827fi 2828 2829 2830test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2831See \`config.log' for more details." >&5 2832echo "$as_me: error: no acceptable C compiler found in \$PATH 2833See \`config.log' for more details." >&2;} 2834 { (exit 1); exit 1; }; } 2835 2836# Provide some information about the compiler. 2837echo "$as_me:$LINENO: checking for C compiler version" >&5 2838ac_compiler=`set X $ac_compile; echo $2` 2839{ (ac_try="$ac_compiler --version >&5" 2840case "(($ac_try" in 2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2842 *) ac_try_echo=$ac_try;; 2843esac 2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2845 (eval "$ac_compiler --version >&5") 2>&5 2846 ac_status=$? 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } 2849{ (ac_try="$ac_compiler -v >&5" 2850case "(($ac_try" in 2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2852 *) ac_try_echo=$ac_try;; 2853esac 2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2855 (eval "$ac_compiler -v >&5") 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); } 2859{ (ac_try="$ac_compiler -V >&5" 2860case "(($ac_try" in 2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2862 *) ac_try_echo=$ac_try;; 2863esac 2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2865 (eval "$ac_compiler -V >&5") 2>&5 2866 ac_status=$? 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); } 2869 2870cat >conftest.$ac_ext <<_ACEOF 2871/* confdefs.h. */ 2872_ACEOF 2873cat confdefs.h >>conftest.$ac_ext 2874cat >>conftest.$ac_ext <<_ACEOF 2875/* end confdefs.h. */ 2876 2877int 2878main () 2879{ 2880 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885ac_clean_files_save=$ac_clean_files 2886ac_clean_files="$ac_clean_files a.out a.exe b.out" 2887# Try to create an executable without -o first, disregard a.out. 2888# It will help us diagnose broken compilers, and finding out an intuition 2889# of exeext. 2890{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2891echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2892ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2893# 2894# List of possible output files, starting from the most likely. 2895# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2896# only as a last resort. b.out is created by i960 compilers. 2897ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2898# 2899# The IRIX 6 linker writes into existing files which may not be 2900# executable, retaining their permissions. Remove them first so a 2901# subsequent execution test works. 2902ac_rmfiles= 2903for ac_file in $ac_files 2904do 2905 case $ac_file in 2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2908 esac 2909done 2910rm -f $ac_rmfiles 2911 2912if { (ac_try="$ac_link_default" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_link_default") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); }; then 2922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2924# in a Makefile. We should not override ac_cv_exeext if it was cached, 2925# so that the user can short-circuit this test for compilers unknown to 2926# Autoconf. 2927for ac_file in $ac_files 2928do 2929 test -f "$ac_file" || continue 2930 case $ac_file in 2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2932 ;; 2933 [ab].out ) 2934 # We found the default executable, but exeext='' is most 2935 # certainly right. 2936 break;; 2937 *.* ) 2938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2939 then :; else 2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2941 fi 2942 # We set ac_cv_exeext here because the later test for it is not 2943 # safe: cross compilers may not add the suffix if given an `-o' 2944 # argument, so we may need to know it at that point already. 2945 # Even if this section looks crufty: it has the advantage of 2946 # actually working. 2947 break;; 2948 * ) 2949 break;; 2950 esac 2951done 2952test "$ac_cv_exeext" = no && ac_cv_exeext= 2953 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2959See \`config.log' for more details." >&5 2960echo "$as_me: error: C compiler cannot create executables 2961See \`config.log' for more details." >&2;} 2962 { (exit 77); exit 77; }; } 2963fi 2964 2965ac_exeext=$ac_cv_exeext 2966{ echo "$as_me:$LINENO: result: $ac_file" >&5 2967echo "${ECHO_T}$ac_file" >&6; } 2968 2969# Check that the compiler produces executables we can run. If not, either 2970# the compiler is broken, or we cross compile. 2971{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2972echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2973# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2974# If not cross compiling, check that we can run a simple program. 2975if test "$cross_compiling" != yes; then 2976 if { ac_try='./$ac_file' 2977 { (case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; }; then 2986 cross_compiling=no 2987 else 2988 if test "$cross_compiling" = maybe; then 2989 cross_compiling=yes 2990 else 2991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2992If you meant to cross compile, use \`--host'. 2993See \`config.log' for more details." >&5 2994echo "$as_me: error: cannot run C compiled programs. 2995If you meant to cross compile, use \`--host'. 2996See \`config.log' for more details." >&2;} 2997 { (exit 1); exit 1; }; } 2998 fi 2999 fi 3000fi 3001{ echo "$as_me:$LINENO: result: yes" >&5 3002echo "${ECHO_T}yes" >&6; } 3003 3004rm -f a.out a.exe conftest$ac_cv_exeext b.out 3005ac_clean_files=$ac_clean_files_save 3006# Check that the compiler produces executables we can run. If not, either 3007# the compiler is broken, or we cross compile. 3008{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3010{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3011echo "${ECHO_T}$cross_compiling" >&6; } 3012 3013{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3015if { (ac_try="$ac_link" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_link") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; then 3025 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3026# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3027# work properly (i.e., refer to `conftest.exe'), while it won't with 3028# `rm'. 3029for ac_file in conftest.exe conftest conftest.*; do 3030 test -f "$ac_file" || continue 3031 case $ac_file in 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3034 break;; 3035 * ) break;; 3036 esac 3037done 3038else 3039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3040See \`config.log' for more details." >&5 3041echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3042See \`config.log' for more details." >&2;} 3043 { (exit 1); exit 1; }; } 3044fi 3045 3046rm -f conftest$ac_cv_exeext 3047{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3048echo "${ECHO_T}$ac_cv_exeext" >&6; } 3049 3050rm -f conftest.$ac_ext 3051EXEEXT=$ac_cv_exeext 3052ac_exeext=$EXEEXT 3053{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3054echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3055if test "${ac_cv_objext+set}" = set; then 3056 echo $ECHO_N "(cached) $ECHO_C" >&6 3057else 3058 cat >conftest.$ac_ext <<_ACEOF 3059/* confdefs.h. */ 3060_ACEOF 3061cat confdefs.h >>conftest.$ac_ext 3062cat >>conftest.$ac_ext <<_ACEOF 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068 3069 ; 3070 return 0; 3071} 3072_ACEOF 3073rm -f conftest.o conftest.obj 3074if { (ac_try="$ac_compile" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3080 (eval "$ac_compile") 2>&5 3081 ac_status=$? 3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3083 (exit $ac_status); }; then 3084 for ac_file in conftest.o conftest.obj conftest.*; do 3085 test -f "$ac_file" || continue; 3086 case $ac_file in 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3089 break;; 3090 esac 3091done 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3097See \`config.log' for more details." >&5 3098echo "$as_me: error: cannot compute suffix of object files: cannot compile 3099See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; } 3101fi 3102 3103rm -f conftest.$ac_cv_objext conftest.$ac_ext 3104fi 3105{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3106echo "${ECHO_T}$ac_cv_objext" >&6; } 3107OBJEXT=$ac_cv_objext 3108ac_objext=$OBJEXT 3109{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3110echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3111if test "${ac_cv_c_compiler_gnu+set}" = set; then 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 3113else 3114 cat >conftest.$ac_ext <<_ACEOF 3115/* confdefs.h. */ 3116_ACEOF 3117cat confdefs.h >>conftest.$ac_ext 3118cat >>conftest.$ac_ext <<_ACEOF 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124#ifndef __GNUC__ 3125 choke me 3126#endif 3127 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132rm -f conftest.$ac_objext 3133if { (ac_try="$ac_compile" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_compile") 2>conftest.er1 3140 ac_status=$? 3141 grep -v '^ *+' conftest.er1 >conftest.err 3142 rm -f conftest.er1 3143 cat conftest.err >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } && 3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3147 { (case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3152 (eval "$ac_try") 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); }; } && 3156 { ac_try='test -s conftest.$ac_objext' 3157 { (case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); }; }; then 3166 ac_compiler_gnu=yes 3167else 3168 echo "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171 ac_compiler_gnu=no 3172fi 3173 3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3175ac_cv_c_compiler_gnu=$ac_compiler_gnu 3176 3177fi 3178{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3179echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3180GCC=`test $ac_compiler_gnu = yes && echo yes` 3181ac_test_CFLAGS=${CFLAGS+set} 3182ac_save_CFLAGS=$CFLAGS 3183{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3184echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3185if test "${ac_cv_prog_cc_g+set}" = set; then 3186 echo $ECHO_N "(cached) $ECHO_C" >&6 3187else 3188 ac_save_c_werror_flag=$ac_c_werror_flag 3189 ac_c_werror_flag=yes 3190 ac_cv_prog_cc_g=no 3191 CFLAGS="-g" 3192 cat >conftest.$ac_ext <<_ACEOF 3193/* confdefs.h. */ 3194_ACEOF 3195cat confdefs.h >>conftest.$ac_ext 3196cat >>conftest.$ac_ext <<_ACEOF 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207rm -f conftest.$ac_objext 3208if { (ac_try="$ac_compile" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3214 (eval "$ac_compile") 2>conftest.er1 3215 ac_status=$? 3216 grep -v '^ *+' conftest.er1 >conftest.err 3217 rm -f conftest.er1 3218 cat conftest.err >&5 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } && 3221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3222 { (case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3227 (eval "$ac_try") 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); }; } && 3231 { ac_try='test -s conftest.$ac_objext' 3232 { (case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3237 (eval "$ac_try") 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; }; then 3241 ac_cv_prog_cc_g=yes 3242else 3243 echo "$as_me: failed program was:" >&5 3244sed 's/^/| /' conftest.$ac_ext >&5 3245 3246 CFLAGS="" 3247 cat >conftest.$ac_ext <<_ACEOF 3248/* confdefs.h. */ 3249_ACEOF 3250cat confdefs.h >>conftest.$ac_ext 3251cat >>conftest.$ac_ext <<_ACEOF 3252/* end confdefs.h. */ 3253 3254int 3255main () 3256{ 3257 3258 ; 3259 return 0; 3260} 3261_ACEOF 3262rm -f conftest.$ac_objext 3263if { (ac_try="$ac_compile" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3269 (eval "$ac_compile") 2>conftest.er1 3270 ac_status=$? 3271 grep -v '^ *+' conftest.er1 >conftest.err 3272 rm -f conftest.er1 3273 cat conftest.err >&5 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); } && 3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3277 { (case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3282 (eval "$ac_try") 2>&5 3283 ac_status=$? 3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); }; } && 3286 { ac_try='test -s conftest.$ac_objext' 3287 { (case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3292 (eval "$ac_try") 2>&5 3293 ac_status=$? 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); }; }; then 3296 : 3297else 3298 echo "$as_me: failed program was:" >&5 3299sed 's/^/| /' conftest.$ac_ext >&5 3300 3301 ac_c_werror_flag=$ac_save_c_werror_flag 3302 CFLAGS="-g" 3303 cat >conftest.$ac_ext <<_ACEOF 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309 3310int 3311main () 3312{ 3313 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318rm -f conftest.$ac_objext 3319if { (ac_try="$ac_compile" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3325 (eval "$ac_compile") 2>conftest.er1 3326 ac_status=$? 3327 grep -v '^ *+' conftest.er1 >conftest.err 3328 rm -f conftest.er1 3329 cat conftest.err >&5 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); } && 3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3333 { (case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3338 (eval "$ac_try") 2>&5 3339 ac_status=$? 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); }; } && 3342 { ac_try='test -s conftest.$ac_objext' 3343 { (case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3348 (eval "$ac_try") 2>&5 3349 ac_status=$? 3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); }; }; then 3352 ac_cv_prog_cc_g=yes 3353else 3354 echo "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357 3358fi 3359 3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3361fi 3362 3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364fi 3365 3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3367 ac_c_werror_flag=$ac_save_c_werror_flag 3368fi 3369{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3370echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3371if test "$ac_test_CFLAGS" = set; then 3372 CFLAGS=$ac_save_CFLAGS 3373elif test $ac_cv_prog_cc_g = yes; then 3374 if test "$GCC" = yes; then 3375 CFLAGS="-g -O2" 3376 else 3377 CFLAGS="-g" 3378 fi 3379else 3380 if test "$GCC" = yes; then 3381 CFLAGS="-O2" 3382 else 3383 CFLAGS= 3384 fi 3385fi 3386{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3387echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3388if test "${ac_cv_prog_cc_c89+set}" = set; then 3389 echo $ECHO_N "(cached) $ECHO_C" >&6 3390else 3391 ac_cv_prog_cc_c89=no 3392ac_save_CC=$CC 3393cat >conftest.$ac_ext <<_ACEOF 3394/* confdefs.h. */ 3395_ACEOF 3396cat confdefs.h >>conftest.$ac_ext 3397cat >>conftest.$ac_ext <<_ACEOF 3398/* end confdefs.h. */ 3399#include <stdarg.h> 3400#include <stdio.h> 3401#include <sys/types.h> 3402#include <sys/stat.h> 3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3404struct buf { int x; }; 3405FILE * (*rcsopen) (struct buf *, struct stat *, int); 3406static char *e (p, i) 3407 char **p; 3408 int i; 3409{ 3410 return p[i]; 3411} 3412static char *f (char * (*g) (char **, int), char **p, ...) 3413{ 3414 char *s; 3415 va_list v; 3416 va_start (v,p); 3417 s = g (p, va_arg (v,int)); 3418 va_end (v); 3419 return s; 3420} 3421 3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3423 function prototypes and stuff, but not '\xHH' hex character constants. 3424 These don't provoke an error unfortunately, instead are silently treated 3425 as 'x'. The following induces an error, until -std is added to get 3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3427 array size at least. It's necessary to write '\x00'==0 to get something 3428 that's true only with -std. */ 3429int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3430 3431/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3432 inside strings and character constants. */ 3433#define FOO(x) 'x' 3434int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3435 3436int test (int i, double x); 3437struct s1 {int (*f) (int a);}; 3438struct s2 {int (*f) (double a);}; 3439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3440int argc; 3441char **argv; 3442int 3443main () 3444{ 3445return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3452do 3453 CC="$ac_save_CC $ac_arg" 3454 rm -f conftest.$ac_objext 3455if { (ac_try="$ac_compile" 3456case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459esac 3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3461 (eval "$ac_compile") 2>conftest.er1 3462 ac_status=$? 3463 grep -v '^ *+' conftest.er1 >conftest.err 3464 rm -f conftest.er1 3465 cat conftest.err >&5 3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3467 (exit $ac_status); } && 3468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3469 { (case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3474 (eval "$ac_try") 2>&5 3475 ac_status=$? 3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3477 (exit $ac_status); }; } && 3478 { ac_try='test -s conftest.$ac_objext' 3479 { (case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482esac 3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3484 (eval "$ac_try") 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); }; }; then 3488 ac_cv_prog_cc_c89=$ac_arg 3489else 3490 echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493 3494fi 3495 3496rm -f core conftest.err conftest.$ac_objext 3497 test "x$ac_cv_prog_cc_c89" != "xno" && break 3498done 3499rm -f conftest.$ac_ext 3500CC=$ac_save_CC 3501 3502fi 3503# AC_CACHE_VAL 3504case "x$ac_cv_prog_cc_c89" in 3505 x) 3506 { echo "$as_me:$LINENO: result: none needed" >&5 3507echo "${ECHO_T}none needed" >&6; } ;; 3508 xno) 3509 { echo "$as_me:$LINENO: result: unsupported" >&5 3510echo "${ECHO_T}unsupported" >&6; } ;; 3511 *) 3512 CC="$CC $ac_cv_prog_cc_c89" 3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3514echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3515esac 3516 3517 3518ac_ext=c 3519ac_cpp='$CPP $CPPFLAGS' 3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3522ac_compiler_gnu=$ac_cv_c_compiler_gnu 3523DEPDIR="${am__leading_dot}deps" 3524 3525ac_config_commands="$ac_config_commands depfiles" 3526 3527 3528am_make=${MAKE-make} 3529cat > confinc << 'END' 3530am__doit: 3531 @echo done 3532.PHONY: am__doit 3533END 3534# If we don't find an include directive, just comment out the code. 3535{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3536echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3537am__include="#" 3538am__quote= 3539_am_result=none 3540# First try GNU make style include. 3541echo "include confinc" > confmf 3542# We grep out `Entering directory' and `Leaving directory' 3543# messages which can occur if `w' ends up in MAKEFLAGS. 3544# In particular we don't look at `^make:' because GNU make might 3545# be invoked under some other name (usually "gmake"), in which 3546# case it prints its new name instead of `make'. 3547if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3548 am__include=include 3549 am__quote= 3550 _am_result=GNU 3551fi 3552# Now try BSD make style include. 3553if test "$am__include" = "#"; then 3554 echo '.include "confinc"' > confmf 3555 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3556 am__include=.include 3557 am__quote="\"" 3558 _am_result=BSD 3559 fi 3560fi 3561 3562 3563{ echo "$as_me:$LINENO: result: $_am_result" >&5 3564echo "${ECHO_T}$_am_result" >&6; } 3565rm -f confinc confmf 3566 3567# Check whether --enable-dependency-tracking was given. 3568if test "${enable_dependency_tracking+set}" = set; then 3569 enableval=$enable_dependency_tracking; 3570fi 3571 3572if test "x$enable_dependency_tracking" != xno; then 3573 am_depcomp="$ac_aux_dir/depcomp" 3574 AMDEPBACKSLASH='\' 3575fi 3576 3577 3578if test "x$enable_dependency_tracking" != xno; then 3579 AMDEP_TRUE= 3580 AMDEP_FALSE='#' 3581else 3582 AMDEP_TRUE='#' 3583 AMDEP_FALSE= 3584fi 3585 3586 3587 3588 3589depcc="$CC" am_compiler_list= 3590 3591{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3592echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3593if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3594 echo $ECHO_N "(cached) $ECHO_C" >&6 3595else 3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3597 # We make a subdir and do the tests there. Otherwise we can end up 3598 # making bogus files that we don't know about and never remove. For 3599 # instance it was reported that on HP-UX the gcc test will end up 3600 # making a dummy file named `D' -- because `-MD' means `put the output 3601 # in D'. 3602 mkdir conftest.dir 3603 # Copy depcomp to subdir because otherwise we won't find it if we're 3604 # using a relative directory. 3605 cp "$am_depcomp" conftest.dir 3606 cd conftest.dir 3607 # We will build objects and dependencies in a subdirectory because 3608 # it helps to detect inapplicable dependency modes. For instance 3609 # both Tru64's cc and ICC support -MD to output dependencies as a 3610 # side effect of compilation, but ICC will put the dependencies in 3611 # the current directory while Tru64 will put them in the object 3612 # directory. 3613 mkdir sub 3614 3615 am_cv_CC_dependencies_compiler_type=none 3616 if test "$am_compiler_list" = ""; then 3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3618 fi 3619 for depmode in $am_compiler_list; do 3620 # Setup a source with many dependencies, because some compilers 3621 # like to wrap large dependency lists on column 80 (with \), and 3622 # we should not choose a depcomp mode which is confused by this. 3623 # 3624 # We need to recreate these files for each test, as the compiler may 3625 # overwrite some of them when testing with obscure command lines. 3626 # This happens at least with the AIX C compiler. 3627 : > sub/conftest.c 3628 for i in 1 2 3 4 5 6; do 3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3631 # Solaris 8's {/usr,}/bin/sh. 3632 touch sub/conftst$i.h 3633 done 3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3635 3636 case $depmode in 3637 nosideeffect) 3638 # after this tag, mechanisms are not by side-effect, so they'll 3639 # only be used when explicitly requested 3640 if test "x$enable_dependency_tracking" = xyes; then 3641 continue 3642 else 3643 break 3644 fi 3645 ;; 3646 none) break ;; 3647 esac 3648 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3649 # mode. It turns out that the SunPro C++ compiler does not properly 3650 # handle `-M -o', and we need to detect this. 3651 if depmode=$depmode \ 3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3655 >/dev/null 2>conftest.err && 3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3659 # icc doesn't choke on unknown options, it will just issue warnings 3660 # or remarks (even with -Werror). So we grep stderr for any message 3661 # that says an option was ignored or not supported. 3662 # When given -MP, icc 7.0 and 7.1 complain thusly: 3663 # icc: Command line warning: ignoring option '-M'; no argument required 3664 # The diagnosis changed in icc 8.0: 3665 # icc: Command line remark: option '-MP' not supported 3666 if (grep 'ignoring option' conftest.err || 3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3668 am_cv_CC_dependencies_compiler_type=$depmode 3669 break 3670 fi 3671 fi 3672 done 3673 3674 cd .. 3675 rm -rf conftest.dir 3676else 3677 am_cv_CC_dependencies_compiler_type=none 3678fi 3679 3680fi 3681{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3682echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3683CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3684 3685 3686 3687if 3688 test "x$enable_dependency_tracking" != xno \ 3689 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3690 am__fastdepCC_TRUE= 3691 am__fastdepCC_FALSE='#' 3692else 3693 am__fastdepCC_TRUE='#' 3694 am__fastdepCC_FALSE= 3695fi 3696 3697 3698 3699 3700# Check whether --enable-shared was given. 3701if test "${enable_shared+set}" = set; then 3702 enableval=$enable_shared; p=${PACKAGE-default} 3703 case $enableval in 3704 yes) enable_shared=yes ;; 3705 no) enable_shared=no ;; 3706 *) 3707 enable_shared=no 3708 # Look at the argument we got. We use all the common list separators. 3709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3710 for pkg in $enableval; do 3711 IFS="$lt_save_ifs" 3712 if test "X$pkg" = "X$p"; then 3713 enable_shared=yes 3714 fi 3715 done 3716 IFS="$lt_save_ifs" 3717 ;; 3718 esac 3719else 3720 enable_shared=yes 3721fi 3722 3723 3724# Check whether --enable-static was given. 3725if test "${enable_static+set}" = set; then 3726 enableval=$enable_static; p=${PACKAGE-default} 3727 case $enableval in 3728 yes) enable_static=yes ;; 3729 no) enable_static=no ;; 3730 *) 3731 enable_static=no 3732 # Look at the argument we got. We use all the common list separators. 3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3734 for pkg in $enableval; do 3735 IFS="$lt_save_ifs" 3736 if test "X$pkg" = "X$p"; then 3737 enable_static=yes 3738 fi 3739 done 3740 IFS="$lt_save_ifs" 3741 ;; 3742 esac 3743else 3744 enable_static=yes 3745fi 3746 3747 3748# Check whether --enable-fast-install was given. 3749if test "${enable_fast_install+set}" = set; then 3750 enableval=$enable_fast_install; p=${PACKAGE-default} 3751 case $enableval in 3752 yes) enable_fast_install=yes ;; 3753 no) enable_fast_install=no ;; 3754 *) 3755 enable_fast_install=no 3756 # Look at the argument we got. We use all the common list separators. 3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3758 for pkg in $enableval; do 3759 IFS="$lt_save_ifs" 3760 if test "X$pkg" = "X$p"; then 3761 enable_fast_install=yes 3762 fi 3763 done 3764 IFS="$lt_save_ifs" 3765 ;; 3766 esac 3767else 3768 enable_fast_install=yes 3769fi 3770 3771 3772{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3773echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3774if test "${lt_cv_path_SED+set}" = set; then 3775 echo $ECHO_N "(cached) $ECHO_C" >&6 3776else 3777 # Loop through the user's path and test for sed and gsed. 3778# Then use that list of sed's as ones to test for truncation. 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for lt_ac_prog in sed gsed; do 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3787 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3788 fi 3789 done 3790 done 3791done 3792lt_ac_max=0 3793lt_ac_count=0 3794# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3795# along with /bin/sed that truncates output. 3796for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3797 test ! -f $lt_ac_sed && continue 3798 cat /dev/null > conftest.in 3799 lt_ac_count=0 3800 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3801 # Check for GNU sed and select it if it is found. 3802 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3803 lt_cv_path_SED=$lt_ac_sed 3804 break 3805 fi 3806 while true; do 3807 cat conftest.in conftest.in >conftest.tmp 3808 mv conftest.tmp conftest.in 3809 cp conftest.in conftest.nl 3810 echo >>conftest.nl 3811 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3812 cmp -s conftest.out conftest.nl || break 3813 # 10000 chars as input seems more than enough 3814 test $lt_ac_count -gt 10 && break 3815 lt_ac_count=`expr $lt_ac_count + 1` 3816 if test $lt_ac_count -gt $lt_ac_max; then 3817 lt_ac_max=$lt_ac_count 3818 lt_cv_path_SED=$lt_ac_sed 3819 fi 3820 done 3821done 3822 3823fi 3824 3825SED=$lt_cv_path_SED 3826{ echo "$as_me:$LINENO: result: $SED" >&5 3827echo "${ECHO_T}$SED" >&6; } 3828 3829{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3830echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3831if test "${ac_cv_path_GREP+set}" = set; then 3832 echo $ECHO_N "(cached) $ECHO_C" >&6 3833else 3834 # Extract the first word of "grep ggrep" to use in msg output 3835if test -z "$GREP"; then 3836set dummy grep ggrep; ac_prog_name=$2 3837if test "${ac_cv_path_GREP+set}" = set; then 3838 echo $ECHO_N "(cached) $ECHO_C" >&6 3839else 3840 ac_path_GREP_found=false 3841# Loop through the user's path and test for each of PROGNAME-LIST 3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3844do 3845 IFS=$as_save_IFS 3846 test -z "$as_dir" && as_dir=. 3847 for ac_prog in grep ggrep; do 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3850 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3851 # Check for GNU ac_path_GREP and select it if it is found. 3852 # Check for GNU $ac_path_GREP 3853case `"$ac_path_GREP" --version 2>&1` in 3854*GNU*) 3855 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3856*) 3857 ac_count=0 3858 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3859 while : 3860 do 3861 cat "conftest.in" "conftest.in" >"conftest.tmp" 3862 mv "conftest.tmp" "conftest.in" 3863 cp "conftest.in" "conftest.nl" 3864 echo 'GREP' >> "conftest.nl" 3865 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3867 ac_count=`expr $ac_count + 1` 3868 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3869 # Best one so far, save it but keep looking for a better one 3870 ac_cv_path_GREP="$ac_path_GREP" 3871 ac_path_GREP_max=$ac_count 3872 fi 3873 # 10*(2^10) chars as input seems more than enough 3874 test $ac_count -gt 10 && break 3875 done 3876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3877esac 3878 3879 3880 $ac_path_GREP_found && break 3 3881 done 3882done 3883 3884done 3885IFS=$as_save_IFS 3886 3887 3888fi 3889 3890GREP="$ac_cv_path_GREP" 3891if test -z "$GREP"; then 3892 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3893echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3894 { (exit 1); exit 1; }; } 3895fi 3896 3897else 3898 ac_cv_path_GREP=$GREP 3899fi 3900 3901 3902fi 3903{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3904echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3905 GREP="$ac_cv_path_GREP" 3906 3907 3908{ echo "$as_me:$LINENO: checking for egrep" >&5 3909echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3910if test "${ac_cv_path_EGREP+set}" = set; then 3911 echo $ECHO_N "(cached) $ECHO_C" >&6 3912else 3913 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3914 then ac_cv_path_EGREP="$GREP -E" 3915 else 3916 # Extract the first word of "egrep" to use in msg output 3917if test -z "$EGREP"; then 3918set dummy egrep; ac_prog_name=$2 3919if test "${ac_cv_path_EGREP+set}" = set; then 3920 echo $ECHO_N "(cached) $ECHO_C" >&6 3921else 3922 ac_path_EGREP_found=false 3923# Loop through the user's path and test for each of PROGNAME-LIST 3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3926do 3927 IFS=$as_save_IFS 3928 test -z "$as_dir" && as_dir=. 3929 for ac_prog in egrep; do 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3932 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3933 # Check for GNU ac_path_EGREP and select it if it is found. 3934 # Check for GNU $ac_path_EGREP 3935case `"$ac_path_EGREP" --version 2>&1` in 3936*GNU*) 3937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3938*) 3939 ac_count=0 3940 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3941 while : 3942 do 3943 cat "conftest.in" "conftest.in" >"conftest.tmp" 3944 mv "conftest.tmp" "conftest.in" 3945 cp "conftest.in" "conftest.nl" 3946 echo 'EGREP' >> "conftest.nl" 3947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3949 ac_count=`expr $ac_count + 1` 3950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3951 # Best one so far, save it but keep looking for a better one 3952 ac_cv_path_EGREP="$ac_path_EGREP" 3953 ac_path_EGREP_max=$ac_count 3954 fi 3955 # 10*(2^10) chars as input seems more than enough 3956 test $ac_count -gt 10 && break 3957 done 3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3959esac 3960 3961 3962 $ac_path_EGREP_found && break 3 3963 done 3964done 3965 3966done 3967IFS=$as_save_IFS 3968 3969 3970fi 3971 3972EGREP="$ac_cv_path_EGREP" 3973if test -z "$EGREP"; then 3974 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3975echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3976 { (exit 1); exit 1; }; } 3977fi 3978 3979else 3980 ac_cv_path_EGREP=$EGREP 3981fi 3982 3983 3984 fi 3985fi 3986{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3987echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3988 EGREP="$ac_cv_path_EGREP" 3989 3990 3991 3992# Check whether --with-gnu-ld was given. 3993if test "${with_gnu_ld+set}" = set; then 3994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3995else 3996 with_gnu_ld=no 3997fi 3998 3999ac_prog=ld 4000if test "$GCC" = yes; then 4001 # Check if gcc -print-prog-name=ld gives a path. 4002 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4003echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4004 case $host in 4005 *-*-mingw*) 4006 # gcc leaves a trailing carriage return which upsets mingw 4007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4008 *) 4009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4010 esac 4011 case $ac_prog in 4012 # Accept absolute paths. 4013 [\\/]* | ?:[\\/]*) 4014 re_direlt='/[^/][^/]*/\.\./' 4015 # Canonicalize the pathname of ld 4016 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4017 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4018 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4019 done 4020 test -z "$LD" && LD="$ac_prog" 4021 ;; 4022 "") 4023 # If it fails, then pretend we aren't using GCC. 4024 ac_prog=ld 4025 ;; 4026 *) 4027 # If it is relative, then search for the first ld in PATH. 4028 with_gnu_ld=unknown 4029 ;; 4030 esac 4031elif test "$with_gnu_ld" = yes; then 4032 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4033echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4034else 4035 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4036echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4037fi 4038if test "${lt_cv_path_LD+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 if test -z "$LD"; then 4042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4043 for ac_dir in $PATH; do 4044 IFS="$lt_save_ifs" 4045 test -z "$ac_dir" && ac_dir=. 4046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4047 lt_cv_path_LD="$ac_dir/$ac_prog" 4048 # Check to see if the program is GNU ld. I'd rather use --version, 4049 # but apparently some variants of GNU ld only accept -v. 4050 # Break only if it was the GNU/non-GNU ld that we prefer. 4051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4052 *GNU* | *'with BFD'*) 4053 test "$with_gnu_ld" != no && break 4054 ;; 4055 *) 4056 test "$with_gnu_ld" != yes && break 4057 ;; 4058 esac 4059 fi 4060 done 4061 IFS="$lt_save_ifs" 4062else 4063 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4064fi 4065fi 4066 4067LD="$lt_cv_path_LD" 4068if test -n "$LD"; then 4069 { echo "$as_me:$LINENO: result: $LD" >&5 4070echo "${ECHO_T}$LD" >&6; } 4071else 4072 { echo "$as_me:$LINENO: result: no" >&5 4073echo "${ECHO_T}no" >&6; } 4074fi 4075test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4076echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4077 { (exit 1); exit 1; }; } 4078{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4079echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4080if test "${lt_cv_prog_gnu_ld+set}" = set; then 4081 echo $ECHO_N "(cached) $ECHO_C" >&6 4082else 4083 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4084case `$LD -v 2>&1 </dev/null` in 4085*GNU* | *'with BFD'*) 4086 lt_cv_prog_gnu_ld=yes 4087 ;; 4088*) 4089 lt_cv_prog_gnu_ld=no 4090 ;; 4091esac 4092fi 4093{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4094echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4095with_gnu_ld=$lt_cv_prog_gnu_ld 4096 4097 4098{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4099echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4100if test "${lt_cv_ld_reload_flag+set}" = set; then 4101 echo $ECHO_N "(cached) $ECHO_C" >&6 4102else 4103 lt_cv_ld_reload_flag='-r' 4104fi 4105{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4106echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4107reload_flag=$lt_cv_ld_reload_flag 4108case $reload_flag in 4109"" | " "*) ;; 4110*) reload_flag=" $reload_flag" ;; 4111esac 4112reload_cmds='$LD$reload_flag -o $output$reload_objs' 4113case $host_os in 4114 darwin*) 4115 if test "$GCC" = yes; then 4116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4117 else 4118 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4119 fi 4120 ;; 4121esac 4122 4123{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4124echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4125if test "${lt_cv_path_NM+set}" = set; then 4126 echo $ECHO_N "(cached) $ECHO_C" >&6 4127else 4128 if test -n "$NM"; then 4129 # Let the user override the test. 4130 lt_cv_path_NM="$NM" 4131else 4132 lt_nm_to_check="${ac_tool_prefix}nm" 4133 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4134 lt_nm_to_check="$lt_nm_to_check nm" 4135 fi 4136 for lt_tmp_nm in $lt_nm_to_check; do 4137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4138 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4139 IFS="$lt_save_ifs" 4140 test -z "$ac_dir" && ac_dir=. 4141 tmp_nm="$ac_dir/$lt_tmp_nm" 4142 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4143 # Check to see if the nm accepts a BSD-compat flag. 4144 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4145 # nm: unknown option "B" ignored 4146 # Tru64's nm complains that /dev/null is an invalid object file 4147 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4148 */dev/null* | *'Invalid file or object type'*) 4149 lt_cv_path_NM="$tmp_nm -B" 4150 break 4151 ;; 4152 *) 4153 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4154 */dev/null*) 4155 lt_cv_path_NM="$tmp_nm -p" 4156 break 4157 ;; 4158 *) 4159 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4160 continue # so that we can try to find one that supports BSD flags 4161 ;; 4162 esac 4163 ;; 4164 esac 4165 fi 4166 done 4167 IFS="$lt_save_ifs" 4168 done 4169 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4170fi 4171fi 4172{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4173echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4174NM="$lt_cv_path_NM" 4175 4176{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4177echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4178LN_S=$as_ln_s 4179if test "$LN_S" = "ln -s"; then 4180 { echo "$as_me:$LINENO: result: yes" >&5 4181echo "${ECHO_T}yes" >&6; } 4182else 4183 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4184echo "${ECHO_T}no, using $LN_S" >&6; } 4185fi 4186 4187{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4188echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4189if test "${lt_cv_deplibs_check_method+set}" = set; then 4190 echo $ECHO_N "(cached) $ECHO_C" >&6 4191else 4192 lt_cv_file_magic_cmd='$MAGIC_CMD' 4193lt_cv_file_magic_test_file= 4194lt_cv_deplibs_check_method='unknown' 4195# Need to set the preceding variable on all platforms that support 4196# interlibrary dependencies. 4197# 'none' -- dependencies not supported. 4198# `unknown' -- same as none, but documents that we really don't know. 4199# 'pass_all' -- all dependencies passed with no checks. 4200# 'test_compile' -- check by making test program. 4201# 'file_magic [[regex]]' -- check by looking for files in library path 4202# which responds to the $file_magic_cmd with a given extended regex. 4203# If you have `file' or equivalent on your system and you're not sure 4204# whether `pass_all' will *always* work, you probably want this one. 4205 4206case $host_os in 4207aix4* | aix5*) 4208 lt_cv_deplibs_check_method=pass_all 4209 ;; 4210 4211beos*) 4212 lt_cv_deplibs_check_method=pass_all 4213 ;; 4214 4215bsdi[45]*) 4216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4217 lt_cv_file_magic_cmd='/usr/bin/file -L' 4218 lt_cv_file_magic_test_file=/shlib/libc.so 4219 ;; 4220 4221cygwin*) 4222 # func_win32_libid is a shell function defined in ltmain.sh 4223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4224 lt_cv_file_magic_cmd='func_win32_libid' 4225 ;; 4226 4227mingw* | pw32*) 4228 # Base MSYS/MinGW do not provide the 'file' command needed by 4229 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4230 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4231 lt_cv_file_magic_cmd='$OBJDUMP -f' 4232 ;; 4233 4234darwin* | rhapsody*) 4235 lt_cv_deplibs_check_method=pass_all 4236 ;; 4237 4238freebsd* | dragonfly*) 4239 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4240 case $host_cpu in 4241 i*86 ) 4242 # Not sure whether the presence of OpenBSD here was a mistake. 4243 # Let's accept both of them until this is cleared up. 4244 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4245 lt_cv_file_magic_cmd=/usr/bin/file 4246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4247 ;; 4248 esac 4249 else 4250 lt_cv_deplibs_check_method=pass_all 4251 fi 4252 ;; 4253 4254gnu*) 4255 lt_cv_deplibs_check_method=pass_all 4256 ;; 4257 4258hpux10.20* | hpux11*) 4259 lt_cv_file_magic_cmd=/usr/bin/file 4260 case $host_cpu in 4261 ia64*) 4262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4264 ;; 4265 hppa*64*) 4266 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]' 4267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4268 ;; 4269 *) 4270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4271 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4272 ;; 4273 esac 4274 ;; 4275 4276interix3*) 4277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4279 ;; 4280 4281irix5* | irix6* | nonstopux*) 4282 case $LD in 4283 *-32|*"-32 ") libmagic=32-bit;; 4284 *-n32|*"-n32 ") libmagic=N32;; 4285 *-64|*"-64 ") libmagic=64-bit;; 4286 *) libmagic=never-match;; 4287 esac 4288 lt_cv_deplibs_check_method=pass_all 4289 ;; 4290 4291# This must be Linux ELF. 4292linux* | k*bsd*-gnu) 4293 lt_cv_deplibs_check_method=pass_all 4294 ;; 4295 4296netbsd* | netbsdelf*-gnu) 4297 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4299 else 4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4301 fi 4302 ;; 4303 4304newos6*) 4305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4306 lt_cv_file_magic_cmd=/usr/bin/file 4307 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4308 ;; 4309 4310nto-qnx*) 4311 lt_cv_deplibs_check_method=unknown 4312 ;; 4313 4314openbsd*) 4315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4317 else 4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4319 fi 4320 ;; 4321 4322osf3* | osf4* | osf5*) 4323 lt_cv_deplibs_check_method=pass_all 4324 ;; 4325 4326solaris*) 4327 lt_cv_deplibs_check_method=pass_all 4328 ;; 4329 4330sysv4 | sysv4.3*) 4331 case $host_vendor in 4332 motorola) 4333 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]' 4334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4335 ;; 4336 ncr) 4337 lt_cv_deplibs_check_method=pass_all 4338 ;; 4339 sequent) 4340 lt_cv_file_magic_cmd='/bin/file' 4341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4342 ;; 4343 sni) 4344 lt_cv_file_magic_cmd='/bin/file' 4345 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4346 lt_cv_file_magic_test_file=/lib/libc.so 4347 ;; 4348 siemens) 4349 lt_cv_deplibs_check_method=pass_all 4350 ;; 4351 pc) 4352 lt_cv_deplibs_check_method=pass_all 4353 ;; 4354 esac 4355 ;; 4356 4357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4358 lt_cv_deplibs_check_method=pass_all 4359 ;; 4360esac 4361 4362fi 4363{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4364echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4365file_magic_cmd=$lt_cv_file_magic_cmd 4366deplibs_check_method=$lt_cv_deplibs_check_method 4367test -z "$deplibs_check_method" && deplibs_check_method=unknown 4368 4369 4370 4371 4372# If no C compiler was specified, use CC. 4373LTCC=${LTCC-"$CC"} 4374 4375# If no C compiler flags were specified, use CFLAGS. 4376LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4377 4378# Allow CC to be a program name with arguments. 4379compiler=$CC 4380 4381 4382# Check whether --enable-libtool-lock was given. 4383if test "${enable_libtool_lock+set}" = set; then 4384 enableval=$enable_libtool_lock; 4385fi 4386 4387test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4388 4389# Some flags need to be propagated to the compiler or linker for good 4390# libtool support. 4391case $host in 4392ia64-*-hpux*) 4393 # Find out which ABI we are using. 4394 echo 'int i;' > conftest.$ac_ext 4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4396 (eval $ac_compile) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; then 4400 case `/usr/bin/file conftest.$ac_objext` in 4401 *ELF-32*) 4402 HPUX_IA64_MODE="32" 4403 ;; 4404 *ELF-64*) 4405 HPUX_IA64_MODE="64" 4406 ;; 4407 esac 4408 fi 4409 rm -rf conftest* 4410 ;; 4411*-*-irix6*) 4412 # Find out which ABI we are using. 4413 echo '#line 4413 "configure"' > conftest.$ac_ext 4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4415 (eval $ac_compile) 2>&5 4416 ac_status=$? 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); }; then 4419 if test "$lt_cv_prog_gnu_ld" = yes; then 4420 case `/usr/bin/file conftest.$ac_objext` in 4421 *32-bit*) 4422 LD="${LD-ld} -melf32bsmip" 4423 ;; 4424 *N32*) 4425 LD="${LD-ld} -melf32bmipn32" 4426 ;; 4427 *64-bit*) 4428 LD="${LD-ld} -melf64bmip" 4429 ;; 4430 esac 4431 else 4432 case `/usr/bin/file conftest.$ac_objext` in 4433 *32-bit*) 4434 LD="${LD-ld} -32" 4435 ;; 4436 *N32*) 4437 LD="${LD-ld} -n32" 4438 ;; 4439 *64-bit*) 4440 LD="${LD-ld} -64" 4441 ;; 4442 esac 4443 fi 4444 fi 4445 rm -rf conftest* 4446 ;; 4447 4448x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4449 # Find out which ABI we are using. 4450 echo 'int i;' > conftest.$ac_ext 4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4452 (eval $ac_compile) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; then 4456 case `/usr/bin/file conftest.o` in 4457 *32-bit*) 4458 case $host in 4459 x86_64-*linux*) 4460 LD="${LD-ld} -m elf_i386" 4461 ;; 4462 ppc64-*linux*|powerpc64-*linux*) 4463 LD="${LD-ld} -m elf32ppclinux" 4464 ;; 4465 s390x-*linux*) 4466 LD="${LD-ld} -m elf_s390" 4467 ;; 4468 sparc64-*linux*) 4469 LD="${LD-ld} -m elf32_sparc" 4470 ;; 4471 esac 4472 ;; 4473 *64-bit*) 4474 case $host in 4475 x86_64-*linux*) 4476 LD="${LD-ld} -m elf_x86_64" 4477 ;; 4478 ppc*-*linux*|powerpc*-*linux*) 4479 LD="${LD-ld} -m elf64ppc" 4480 ;; 4481 s390*-*linux*) 4482 LD="${LD-ld} -m elf64_s390" 4483 ;; 4484 sparc*-*linux*) 4485 LD="${LD-ld} -m elf64_sparc" 4486 ;; 4487 esac 4488 ;; 4489 esac 4490 fi 4491 rm -rf conftest* 4492 ;; 4493 4494*-*-sco3.2v5*) 4495 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4496 SAVE_CFLAGS="$CFLAGS" 4497 CFLAGS="$CFLAGS -belf" 4498 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4499echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4500if test "${lt_cv_cc_needs_belf+set}" = set; then 4501 echo $ECHO_N "(cached) $ECHO_C" >&6 4502else 4503 ac_ext=c 4504ac_cpp='$CPP $CPPFLAGS' 4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4507ac_compiler_gnu=$ac_cv_c_compiler_gnu 4508 4509 cat >conftest.$ac_ext <<_ACEOF 4510/* confdefs.h. */ 4511_ACEOF 4512cat confdefs.h >>conftest.$ac_ext 4513cat >>conftest.$ac_ext <<_ACEOF 4514/* end confdefs.h. */ 4515 4516int 4517main () 4518{ 4519 4520 ; 4521 return 0; 4522} 4523_ACEOF 4524rm -f conftest.$ac_objext conftest$ac_exeext 4525if { (ac_try="$ac_link" 4526case "(($ac_try" in 4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4528 *) ac_try_echo=$ac_try;; 4529esac 4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4531 (eval "$ac_link") 2>conftest.er1 4532 ac_status=$? 4533 grep -v '^ *+' conftest.er1 >conftest.err 4534 rm -f conftest.er1 4535 cat conftest.err >&5 4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); } && 4538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4539 { (case "(($ac_try" in 4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4541 *) ac_try_echo=$ac_try;; 4542esac 4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4544 (eval "$ac_try") 2>&5 4545 ac_status=$? 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); }; } && 4548 { ac_try='test -s conftest$ac_exeext' 4549 { (case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552esac 4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_try") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; }; then 4558 lt_cv_cc_needs_belf=yes 4559else 4560 echo "$as_me: failed program was:" >&5 4561sed 's/^/| /' conftest.$ac_ext >&5 4562 4563 lt_cv_cc_needs_belf=no 4564fi 4565 4566rm -f core conftest.err conftest.$ac_objext \ 4567 conftest$ac_exeext conftest.$ac_ext 4568 ac_ext=c 4569ac_cpp='$CPP $CPPFLAGS' 4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4572ac_compiler_gnu=$ac_cv_c_compiler_gnu 4573 4574fi 4575{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4576echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4579 CFLAGS="$SAVE_CFLAGS" 4580 fi 4581 ;; 4582sparc*-*solaris*) 4583 # Find out which ABI we are using. 4584 echo 'int i;' > conftest.$ac_ext 4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4586 (eval $ac_compile) 2>&5 4587 ac_status=$? 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); }; then 4590 case `/usr/bin/file conftest.o` in 4591 *64-bit*) 4592 case $lt_cv_prog_gnu_ld in 4593 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4594 *) LD="${LD-ld} -64" ;; 4595 esac 4596 ;; 4597 esac 4598 fi 4599 rm -rf conftest* 4600 ;; 4601 4602 4603esac 4604 4605need_locks="$enable_libtool_lock" 4606 4607 4608ac_ext=c 4609ac_cpp='$CPP $CPPFLAGS' 4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4612ac_compiler_gnu=$ac_cv_c_compiler_gnu 4613{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4614echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4615# On Suns, sometimes $CPP names a directory. 4616if test -n "$CPP" && test -d "$CPP"; then 4617 CPP= 4618fi 4619if test -z "$CPP"; then 4620 if test "${ac_cv_prog_CPP+set}" = set; then 4621 echo $ECHO_N "(cached) $ECHO_C" >&6 4622else 4623 # Double quotes because CPP needs to be expanded 4624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4625 do 4626 ac_preproc_ok=false 4627for ac_c_preproc_warn_flag in '' yes 4628do 4629 # Use a header file that comes with gcc, so configuring glibc 4630 # with a fresh cross-compiler works. 4631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4632 # <limits.h> exists even on freestanding compilers. 4633 # On the NeXT, cc -E runs the code through the compiler's parser, 4634 # not just through cpp. "Syntax error" is here to catch this case. 4635 cat >conftest.$ac_ext <<_ACEOF 4636/* confdefs.h. */ 4637_ACEOF 4638cat confdefs.h >>conftest.$ac_ext 4639cat >>conftest.$ac_ext <<_ACEOF 4640/* end confdefs.h. */ 4641#ifdef __STDC__ 4642# include <limits.h> 4643#else 4644# include <assert.h> 4645#endif 4646 Syntax error 4647_ACEOF 4648if { (ac_try="$ac_cpp conftest.$ac_ext" 4649case "(($ac_try" in 4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4651 *) ac_try_echo=$ac_try;; 4652esac 4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4655 ac_status=$? 4656 grep -v '^ *+' conftest.er1 >conftest.err 4657 rm -f conftest.er1 4658 cat conftest.err >&5 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); } >/dev/null; then 4661 if test -s conftest.err; then 4662 ac_cpp_err=$ac_c_preproc_warn_flag 4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4664 else 4665 ac_cpp_err= 4666 fi 4667else 4668 ac_cpp_err=yes 4669fi 4670if test -z "$ac_cpp_err"; then 4671 : 4672else 4673 echo "$as_me: failed program was:" >&5 4674sed 's/^/| /' conftest.$ac_ext >&5 4675 4676 # Broken: fails on valid input. 4677continue 4678fi 4679 4680rm -f conftest.err conftest.$ac_ext 4681 4682 # OK, works on sane cases. Now check whether nonexistent headers 4683 # can be detected and how. 4684 cat >conftest.$ac_ext <<_ACEOF 4685/* confdefs.h. */ 4686_ACEOF 4687cat confdefs.h >>conftest.$ac_ext 4688cat >>conftest.$ac_ext <<_ACEOF 4689/* end confdefs.h. */ 4690#include <ac_nonexistent.h> 4691_ACEOF 4692if { (ac_try="$ac_cpp conftest.$ac_ext" 4693case "(($ac_try" in 4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4695 *) ac_try_echo=$ac_try;; 4696esac 4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4699 ac_status=$? 4700 grep -v '^ *+' conftest.er1 >conftest.err 4701 rm -f conftest.er1 4702 cat conftest.err >&5 4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704 (exit $ac_status); } >/dev/null; then 4705 if test -s conftest.err; then 4706 ac_cpp_err=$ac_c_preproc_warn_flag 4707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4708 else 4709 ac_cpp_err= 4710 fi 4711else 4712 ac_cpp_err=yes 4713fi 4714if test -z "$ac_cpp_err"; then 4715 # Broken: success on invalid input. 4716continue 4717else 4718 echo "$as_me: failed program was:" >&5 4719sed 's/^/| /' conftest.$ac_ext >&5 4720 4721 # Passes both tests. 4722ac_preproc_ok=: 4723break 4724fi 4725 4726rm -f conftest.err conftest.$ac_ext 4727 4728done 4729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4730rm -f conftest.err conftest.$ac_ext 4731if $ac_preproc_ok; then 4732 break 4733fi 4734 4735 done 4736 ac_cv_prog_CPP=$CPP 4737 4738fi 4739 CPP=$ac_cv_prog_CPP 4740else 4741 ac_cv_prog_CPP=$CPP 4742fi 4743{ echo "$as_me:$LINENO: result: $CPP" >&5 4744echo "${ECHO_T}$CPP" >&6; } 4745ac_preproc_ok=false 4746for ac_c_preproc_warn_flag in '' yes 4747do 4748 # Use a header file that comes with gcc, so configuring glibc 4749 # with a fresh cross-compiler works. 4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4751 # <limits.h> exists even on freestanding compilers. 4752 # On the NeXT, cc -E runs the code through the compiler's parser, 4753 # not just through cpp. "Syntax error" is here to catch this case. 4754 cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760#ifdef __STDC__ 4761# include <limits.h> 4762#else 4763# include <assert.h> 4764#endif 4765 Syntax error 4766_ACEOF 4767if { (ac_try="$ac_cpp conftest.$ac_ext" 4768case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4774 ac_status=$? 4775 grep -v '^ *+' conftest.er1 >conftest.err 4776 rm -f conftest.er1 4777 cat conftest.err >&5 4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4779 (exit $ac_status); } >/dev/null; then 4780 if test -s conftest.err; then 4781 ac_cpp_err=$ac_c_preproc_warn_flag 4782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4783 else 4784 ac_cpp_err= 4785 fi 4786else 4787 ac_cpp_err=yes 4788fi 4789if test -z "$ac_cpp_err"; then 4790 : 4791else 4792 echo "$as_me: failed program was:" >&5 4793sed 's/^/| /' conftest.$ac_ext >&5 4794 4795 # Broken: fails on valid input. 4796continue 4797fi 4798 4799rm -f conftest.err conftest.$ac_ext 4800 4801 # OK, works on sane cases. Now check whether nonexistent headers 4802 # can be detected and how. 4803 cat >conftest.$ac_ext <<_ACEOF 4804/* confdefs.h. */ 4805_ACEOF 4806cat confdefs.h >>conftest.$ac_ext 4807cat >>conftest.$ac_ext <<_ACEOF 4808/* end confdefs.h. */ 4809#include <ac_nonexistent.h> 4810_ACEOF 4811if { (ac_try="$ac_cpp conftest.$ac_ext" 4812case "(($ac_try" in 4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4814 *) ac_try_echo=$ac_try;; 4815esac 4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } >/dev/null; then 4824 if test -s conftest.err; then 4825 ac_cpp_err=$ac_c_preproc_warn_flag 4826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4827 else 4828 ac_cpp_err= 4829 fi 4830else 4831 ac_cpp_err=yes 4832fi 4833if test -z "$ac_cpp_err"; then 4834 # Broken: success on invalid input. 4835continue 4836else 4837 echo "$as_me: failed program was:" >&5 4838sed 's/^/| /' conftest.$ac_ext >&5 4839 4840 # Passes both tests. 4841ac_preproc_ok=: 4842break 4843fi 4844 4845rm -f conftest.err conftest.$ac_ext 4846 4847done 4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4849rm -f conftest.err conftest.$ac_ext 4850if $ac_preproc_ok; then 4851 : 4852else 4853 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4854See \`config.log' for more details." >&5 4855echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4856See \`config.log' for more details." >&2;} 4857 { (exit 1); exit 1; }; } 4858fi 4859 4860ac_ext=c 4861ac_cpp='$CPP $CPPFLAGS' 4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4864ac_compiler_gnu=$ac_cv_c_compiler_gnu 4865 4866 4867{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4868echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4869if test "${ac_cv_header_stdc+set}" = set; then 4870 echo $ECHO_N "(cached) $ECHO_C" >&6 4871else 4872 cat >conftest.$ac_ext <<_ACEOF 4873/* confdefs.h. */ 4874_ACEOF 4875cat confdefs.h >>conftest.$ac_ext 4876cat >>conftest.$ac_ext <<_ACEOF 4877/* end confdefs.h. */ 4878#include <stdlib.h> 4879#include <stdarg.h> 4880#include <string.h> 4881#include <float.h> 4882 4883int 4884main () 4885{ 4886 4887 ; 4888 return 0; 4889} 4890_ACEOF 4891rm -f conftest.$ac_objext 4892if { (ac_try="$ac_compile" 4893case "(($ac_try" in 4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4895 *) ac_try_echo=$ac_try;; 4896esac 4897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4898 (eval "$ac_compile") 2>conftest.er1 4899 ac_status=$? 4900 grep -v '^ *+' conftest.er1 >conftest.err 4901 rm -f conftest.er1 4902 cat conftest.err >&5 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904 (exit $ac_status); } && 4905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4906 { (case "(($ac_try" in 4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4908 *) ac_try_echo=$ac_try;; 4909esac 4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4911 (eval "$ac_try") 2>&5 4912 ac_status=$? 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); }; } && 4915 { ac_try='test -s conftest.$ac_objext' 4916 { (case "(($ac_try" in 4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4918 *) ac_try_echo=$ac_try;; 4919esac 4920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4921 (eval "$ac_try") 2>&5 4922 ac_status=$? 4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); }; }; then 4925 ac_cv_header_stdc=yes 4926else 4927 echo "$as_me: failed program was:" >&5 4928sed 's/^/| /' conftest.$ac_ext >&5 4929 4930 ac_cv_header_stdc=no 4931fi 4932 4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4934 4935if test $ac_cv_header_stdc = yes; then 4936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4937 cat >conftest.$ac_ext <<_ACEOF 4938/* confdefs.h. */ 4939_ACEOF 4940cat confdefs.h >>conftest.$ac_ext 4941cat >>conftest.$ac_ext <<_ACEOF 4942/* end confdefs.h. */ 4943#include <string.h> 4944 4945_ACEOF 4946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4947 $EGREP "memchr" >/dev/null 2>&1; then 4948 : 4949else 4950 ac_cv_header_stdc=no 4951fi 4952rm -f conftest* 4953 4954fi 4955 4956if test $ac_cv_header_stdc = yes; then 4957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4958 cat >conftest.$ac_ext <<_ACEOF 4959/* confdefs.h. */ 4960_ACEOF 4961cat confdefs.h >>conftest.$ac_ext 4962cat >>conftest.$ac_ext <<_ACEOF 4963/* end confdefs.h. */ 4964#include <stdlib.h> 4965 4966_ACEOF 4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4968 $EGREP "free" >/dev/null 2>&1; then 4969 : 4970else 4971 ac_cv_header_stdc=no 4972fi 4973rm -f conftest* 4974 4975fi 4976 4977if test $ac_cv_header_stdc = yes; then 4978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4979 if test "$cross_compiling" = yes; then 4980 : 4981else 4982 cat >conftest.$ac_ext <<_ACEOF 4983/* confdefs.h. */ 4984_ACEOF 4985cat confdefs.h >>conftest.$ac_ext 4986cat >>conftest.$ac_ext <<_ACEOF 4987/* end confdefs.h. */ 4988#include <ctype.h> 4989#include <stdlib.h> 4990#if ((' ' & 0x0FF) == 0x020) 4991# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4992# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4993#else 4994# define ISLOWER(c) \ 4995 (('a' <= (c) && (c) <= 'i') \ 4996 || ('j' <= (c) && (c) <= 'r') \ 4997 || ('s' <= (c) && (c) <= 'z')) 4998# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4999#endif 5000 5001#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5002int 5003main () 5004{ 5005 int i; 5006 for (i = 0; i < 256; i++) 5007 if (XOR (islower (i), ISLOWER (i)) 5008 || toupper (i) != TOUPPER (i)) 5009 return 2; 5010 return 0; 5011} 5012_ACEOF 5013rm -f conftest$ac_exeext 5014if { (ac_try="$ac_link" 5015case "(($ac_try" in 5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5017 *) ac_try_echo=$ac_try;; 5018esac 5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5020 (eval "$ac_link") 2>&5 5021 ac_status=$? 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5024 { (case "(($ac_try" in 5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5026 *) ac_try_echo=$ac_try;; 5027esac 5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5029 (eval "$ac_try") 2>&5 5030 ac_status=$? 5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 (exit $ac_status); }; }; then 5033 : 5034else 5035 echo "$as_me: program exited with status $ac_status" >&5 5036echo "$as_me: failed program was:" >&5 5037sed 's/^/| /' conftest.$ac_ext >&5 5038 5039( exit $ac_status ) 5040ac_cv_header_stdc=no 5041fi 5042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5043fi 5044 5045 5046fi 5047fi 5048{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5049echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5050if test $ac_cv_header_stdc = yes; then 5051 5052cat >>confdefs.h <<\_ACEOF 5053#define STDC_HEADERS 1 5054_ACEOF 5055 5056fi 5057 5058# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5069 inttypes.h stdint.h unistd.h 5070do 5071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5072{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5075 echo $ECHO_N "(cached) $ECHO_C" >&6 5076else 5077 cat >conftest.$ac_ext <<_ACEOF 5078/* confdefs.h. */ 5079_ACEOF 5080cat confdefs.h >>conftest.$ac_ext 5081cat >>conftest.$ac_ext <<_ACEOF 5082/* end confdefs.h. */ 5083$ac_includes_default 5084 5085#include <$ac_header> 5086_ACEOF 5087rm -f conftest.$ac_objext 5088if { (ac_try="$ac_compile" 5089case "(($ac_try" in 5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5091 *) ac_try_echo=$ac_try;; 5092esac 5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5094 (eval "$ac_compile") 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && 5101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5102 { (case "(($ac_try" in 5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5104 *) ac_try_echo=$ac_try;; 5105esac 5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5107 (eval "$ac_try") 2>&5 5108 ac_status=$? 5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5110 (exit $ac_status); }; } && 5111 { ac_try='test -s conftest.$ac_objext' 5112 { (case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115esac 5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5117 (eval "$ac_try") 2>&5 5118 ac_status=$? 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); }; }; then 5121 eval "$as_ac_Header=yes" 5122else 5123 echo "$as_me: failed program was:" >&5 5124sed 's/^/| /' conftest.$ac_ext >&5 5125 5126 eval "$as_ac_Header=no" 5127fi 5128 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130fi 5131ac_res=`eval echo '${'$as_ac_Header'}'` 5132 { echo "$as_me:$LINENO: result: $ac_res" >&5 5133echo "${ECHO_T}$ac_res" >&6; } 5134if test `eval echo '${'$as_ac_Header'}'` = yes; then 5135 cat >>confdefs.h <<_ACEOF 5136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5137_ACEOF 5138 5139fi 5140 5141done 5142 5143 5144 5145for ac_header in dlfcn.h 5146do 5147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5149 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5152 echo $ECHO_N "(cached) $ECHO_C" >&6 5153fi 5154ac_res=`eval echo '${'$as_ac_Header'}'` 5155 { echo "$as_me:$LINENO: result: $ac_res" >&5 5156echo "${ECHO_T}$ac_res" >&6; } 5157else 5158 # Is the header compilable? 5159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5161cat >conftest.$ac_ext <<_ACEOF 5162/* confdefs.h. */ 5163_ACEOF 5164cat confdefs.h >>conftest.$ac_ext 5165cat >>conftest.$ac_ext <<_ACEOF 5166/* end confdefs.h. */ 5167$ac_includes_default 5168#include <$ac_header> 5169_ACEOF 5170rm -f conftest.$ac_objext 5171if { (ac_try="$ac_compile" 5172case "(($ac_try" in 5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5174 *) ac_try_echo=$ac_try;; 5175esac 5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5177 (eval "$ac_compile") 2>conftest.er1 5178 ac_status=$? 5179 grep -v '^ *+' conftest.er1 >conftest.err 5180 rm -f conftest.er1 5181 cat conftest.err >&5 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); } && 5184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5185 { (case "(($ac_try" in 5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5187 *) ac_try_echo=$ac_try;; 5188esac 5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5190 (eval "$ac_try") 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); }; } && 5194 { ac_try='test -s conftest.$ac_objext' 5195 { (case "(($ac_try" in 5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5197 *) ac_try_echo=$ac_try;; 5198esac 5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5200 (eval "$ac_try") 2>&5 5201 ac_status=$? 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); }; }; then 5204 ac_header_compiler=yes 5205else 5206 echo "$as_me: failed program was:" >&5 5207sed 's/^/| /' conftest.$ac_ext >&5 5208 5209 ac_header_compiler=no 5210fi 5211 5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5213{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5214echo "${ECHO_T}$ac_header_compiler" >&6; } 5215 5216# Is the header present? 5217{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5219cat >conftest.$ac_ext <<_ACEOF 5220/* confdefs.h. */ 5221_ACEOF 5222cat confdefs.h >>conftest.$ac_ext 5223cat >>conftest.$ac_ext <<_ACEOF 5224/* end confdefs.h. */ 5225#include <$ac_header> 5226_ACEOF 5227if { (ac_try="$ac_cpp conftest.$ac_ext" 5228case "(($ac_try" in 5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5230 *) ac_try_echo=$ac_try;; 5231esac 5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5234 ac_status=$? 5235 grep -v '^ *+' conftest.er1 >conftest.err 5236 rm -f conftest.er1 5237 cat conftest.err >&5 5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239 (exit $ac_status); } >/dev/null; then 5240 if test -s conftest.err; then 5241 ac_cpp_err=$ac_c_preproc_warn_flag 5242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5243 else 5244 ac_cpp_err= 5245 fi 5246else 5247 ac_cpp_err=yes 5248fi 5249if test -z "$ac_cpp_err"; then 5250 ac_header_preproc=yes 5251else 5252 echo "$as_me: failed program was:" >&5 5253sed 's/^/| /' conftest.$ac_ext >&5 5254 5255 ac_header_preproc=no 5256fi 5257 5258rm -f conftest.err conftest.$ac_ext 5259{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5260echo "${ECHO_T}$ac_header_preproc" >&6; } 5261 5262# So? What about this header? 5263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5264 yes:no: ) 5265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5269 ac_header_preproc=yes 5270 ;; 5271 no:yes:* ) 5272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5284 ( cat <<\_ASBOX 5285## ----------------------------------------- ## 5286## Report this to updatedd@philipp-benner.de ## 5287## ----------------------------------------- ## 5288_ASBOX 5289 ) | sed "s/^/$as_me: WARNING: /" >&2 5290 ;; 5291esac 5292{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5295 echo $ECHO_N "(cached) $ECHO_C" >&6 5296else 5297 eval "$as_ac_Header=\$ac_header_preproc" 5298fi 5299ac_res=`eval echo '${'$as_ac_Header'}'` 5300 { echo "$as_me:$LINENO: result: $ac_res" >&5 5301echo "${ECHO_T}$ac_res" >&6; } 5302 5303fi 5304if test `eval echo '${'$as_ac_Header'}'` = yes; then 5305 cat >>confdefs.h <<_ACEOF 5306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5307_ACEOF 5308 5309fi 5310 5311done 5312 5313ac_ext=cpp 5314ac_cpp='$CXXCPP $CPPFLAGS' 5315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5318if test -z "$CXX"; then 5319 if test -n "$CCC"; then 5320 CXX=$CCC 5321 else 5322 if test -n "$ac_tool_prefix"; then 5323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5324 do 5325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5326set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5327{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5329if test "${ac_cv_prog_CXX+set}" = set; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331else 5332 if test -n "$CXX"; then 5333 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5342 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352CXX=$ac_cv_prog_CXX 5353if test -n "$CXX"; then 5354 { echo "$as_me:$LINENO: result: $CXX" >&5 5355echo "${ECHO_T}$CXX" >&6; } 5356else 5357 { echo "$as_me:$LINENO: result: no" >&5 5358echo "${ECHO_T}no" >&6; } 5359fi 5360 5361 5362 test -n "$CXX" && break 5363 done 5364fi 5365if test -z "$CXX"; then 5366 ac_ct_CXX=$CXX 5367 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5368do 5369 # Extract the first word of "$ac_prog", so it can be a program name with args. 5370set dummy $ac_prog; ac_word=$2 5371{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5373if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5374 echo $ECHO_N "(cached) $ECHO_C" >&6 5375else 5376 if test -n "$ac_ct_CXX"; then 5377 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5378else 5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH 5381do 5382 IFS=$as_save_IFS 5383 test -z "$as_dir" && as_dir=. 5384 for ac_exec_ext in '' $ac_executable_extensions; do 5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5386 ac_cv_prog_ac_ct_CXX="$ac_prog" 5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5388 break 2 5389 fi 5390done 5391done 5392IFS=$as_save_IFS 5393 5394fi 5395fi 5396ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5397if test -n "$ac_ct_CXX"; then 5398 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5399echo "${ECHO_T}$ac_ct_CXX" >&6; } 5400else 5401 { echo "$as_me:$LINENO: result: no" >&5 5402echo "${ECHO_T}no" >&6; } 5403fi 5404 5405 5406 test -n "$ac_ct_CXX" && break 5407done 5408 5409 if test "x$ac_ct_CXX" = x; then 5410 CXX="g++" 5411 else 5412 case $cross_compiling:$ac_tool_warned in 5413yes:) 5414{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5415whose name does not start with the host triplet. If you think this 5416configuration is useful to you, please write to autoconf@gnu.org." >&5 5417echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5418whose name does not start with the host triplet. If you think this 5419configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5420ac_tool_warned=yes ;; 5421esac 5422 CXX=$ac_ct_CXX 5423 fi 5424fi 5425 5426 fi 5427fi 5428# Provide some information about the compiler. 5429echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5430ac_compiler=`set X $ac_compile; echo $2` 5431{ (ac_try="$ac_compiler --version >&5" 5432case "(($ac_try" in 5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5434 *) ac_try_echo=$ac_try;; 5435esac 5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5437 (eval "$ac_compiler --version >&5") 2>&5 5438 ac_status=$? 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); } 5441{ (ac_try="$ac_compiler -v >&5" 5442case "(($ac_try" in 5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5444 *) ac_try_echo=$ac_try;; 5445esac 5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5447 (eval "$ac_compiler -v >&5") 2>&5 5448 ac_status=$? 5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5450 (exit $ac_status); } 5451{ (ac_try="$ac_compiler -V >&5" 5452case "(($ac_try" in 5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5454 *) ac_try_echo=$ac_try;; 5455esac 5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5457 (eval "$ac_compiler -V >&5") 2>&5 5458 ac_status=$? 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } 5461 5462{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5463echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5464if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5465 echo $ECHO_N "(cached) $ECHO_C" >&6 5466else 5467 cat >conftest.$ac_ext <<_ACEOF 5468/* confdefs.h. */ 5469_ACEOF 5470cat confdefs.h >>conftest.$ac_ext 5471cat >>conftest.$ac_ext <<_ACEOF 5472/* end confdefs.h. */ 5473 5474int 5475main () 5476{ 5477#ifndef __GNUC__ 5478 choke me 5479#endif 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485rm -f conftest.$ac_objext 5486if { (ac_try="$ac_compile" 5487case "(($ac_try" in 5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5489 *) ac_try_echo=$ac_try;; 5490esac 5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5492 (eval "$ac_compile") 2>conftest.er1 5493 ac_status=$? 5494 grep -v '^ *+' conftest.er1 >conftest.err 5495 rm -f conftest.er1 5496 cat conftest.err >&5 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); } && 5499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5500 { (case "(($ac_try" in 5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5502 *) ac_try_echo=$ac_try;; 5503esac 5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5505 (eval "$ac_try") 2>&5 5506 ac_status=$? 5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); }; } && 5509 { ac_try='test -s conftest.$ac_objext' 5510 { (case "(($ac_try" in 5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5512 *) ac_try_echo=$ac_try;; 5513esac 5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5515 (eval "$ac_try") 2>&5 5516 ac_status=$? 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); }; }; then 5519 ac_compiler_gnu=yes 5520else 5521 echo "$as_me: failed program was:" >&5 5522sed 's/^/| /' conftest.$ac_ext >&5 5523 5524 ac_compiler_gnu=no 5525fi 5526 5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5529 5530fi 5531{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5532echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5533GXX=`test $ac_compiler_gnu = yes && echo yes` 5534ac_test_CXXFLAGS=${CXXFLAGS+set} 5535ac_save_CXXFLAGS=$CXXFLAGS 5536{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5537echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5538if test "${ac_cv_prog_cxx_g+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540else 5541 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5542 ac_cxx_werror_flag=yes 5543 ac_cv_prog_cxx_g=no 5544 CXXFLAGS="-g" 5545 cat >conftest.$ac_ext <<_ACEOF 5546/* confdefs.h. */ 5547_ACEOF 5548cat confdefs.h >>conftest.$ac_ext 5549cat >>conftest.$ac_ext <<_ACEOF 5550/* end confdefs.h. */ 5551 5552int 5553main () 5554{ 5555 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560rm -f conftest.$ac_objext 5561if { (ac_try="$ac_compile" 5562case "(($ac_try" in 5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5564 *) ac_try_echo=$ac_try;; 5565esac 5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5567 (eval "$ac_compile") 2>conftest.er1 5568 ac_status=$? 5569 grep -v '^ *+' conftest.er1 >conftest.err 5570 rm -f conftest.er1 5571 cat conftest.err >&5 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); } && 5574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5575 { (case "(($ac_try" in 5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5577 *) ac_try_echo=$ac_try;; 5578esac 5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5580 (eval "$ac_try") 2>&5 5581 ac_status=$? 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583 (exit $ac_status); }; } && 5584 { ac_try='test -s conftest.$ac_objext' 5585 { (case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588esac 5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_try") 2>&5 5591 ac_status=$? 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); }; }; then 5594 ac_cv_prog_cxx_g=yes 5595else 5596 echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599 CXXFLAGS="" 5600 cat >conftest.$ac_ext <<_ACEOF 5601/* confdefs.h. */ 5602_ACEOF 5603cat confdefs.h >>conftest.$ac_ext 5604cat >>conftest.$ac_ext <<_ACEOF 5605/* end confdefs.h. */ 5606 5607int 5608main () 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615rm -f conftest.$ac_objext 5616if { (ac_try="$ac_compile" 5617case "(($ac_try" in 5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5619 *) ac_try_echo=$ac_try;; 5620esac 5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5622 (eval "$ac_compile") 2>conftest.er1 5623 ac_status=$? 5624 grep -v '^ *+' conftest.er1 >conftest.err 5625 rm -f conftest.er1 5626 cat conftest.err >&5 5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); } && 5629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5630 { (case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5635 (eval "$ac_try") 2>&5 5636 ac_status=$? 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); }; } && 5639 { ac_try='test -s conftest.$ac_objext' 5640 { (case "(($ac_try" in 5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5642 *) ac_try_echo=$ac_try;; 5643esac 5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5645 (eval "$ac_try") 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; }; then 5649 : 5650else 5651 echo "$as_me: failed program was:" >&5 5652sed 's/^/| /' conftest.$ac_ext >&5 5653 5654 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5655 CXXFLAGS="-g" 5656 cat >conftest.$ac_ext <<_ACEOF 5657/* confdefs.h. */ 5658_ACEOF 5659cat confdefs.h >>conftest.$ac_ext 5660cat >>conftest.$ac_ext <<_ACEOF 5661/* end confdefs.h. */ 5662 5663int 5664main () 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671rm -f conftest.$ac_objext 5672if { (ac_try="$ac_compile" 5673case "(($ac_try" in 5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5675 *) ac_try_echo=$ac_try;; 5676esac 5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5678 (eval "$ac_compile") 2>conftest.er1 5679 ac_status=$? 5680 grep -v '^ *+' conftest.er1 >conftest.err 5681 rm -f conftest.er1 5682 cat conftest.err >&5 5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 (exit $ac_status); } && 5685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5686 { (case "(($ac_try" in 5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5688 *) ac_try_echo=$ac_try;; 5689esac 5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5691 (eval "$ac_try") 2>&5 5692 ac_status=$? 5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5694 (exit $ac_status); }; } && 5695 { ac_try='test -s conftest.$ac_objext' 5696 { (case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5701 (eval "$ac_try") 2>&5 5702 ac_status=$? 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); }; }; then 5705 ac_cv_prog_cxx_g=yes 5706else 5707 echo "$as_me: failed program was:" >&5 5708sed 's/^/| /' conftest.$ac_ext >&5 5709 5710 5711fi 5712 5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5714fi 5715 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5717fi 5718 5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5721fi 5722{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5723echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5724if test "$ac_test_CXXFLAGS" = set; then 5725 CXXFLAGS=$ac_save_CXXFLAGS 5726elif test $ac_cv_prog_cxx_g = yes; then 5727 if test "$GXX" = yes; then 5728 CXXFLAGS="-g -O2" 5729 else 5730 CXXFLAGS="-g" 5731 fi 5732else 5733 if test "$GXX" = yes; then 5734 CXXFLAGS="-O2" 5735 else 5736 CXXFLAGS= 5737 fi 5738fi 5739ac_ext=cpp 5740ac_cpp='$CXXCPP $CPPFLAGS' 5741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5744 5745depcc="$CXX" am_compiler_list= 5746 5747{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5748echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5749if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5750 echo $ECHO_N "(cached) $ECHO_C" >&6 5751else 5752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5753 # We make a subdir and do the tests there. Otherwise we can end up 5754 # making bogus files that we don't know about and never remove. For 5755 # instance it was reported that on HP-UX the gcc test will end up 5756 # making a dummy file named `D' -- because `-MD' means `put the output 5757 # in D'. 5758 mkdir conftest.dir 5759 # Copy depcomp to subdir because otherwise we won't find it if we're 5760 # using a relative directory. 5761 cp "$am_depcomp" conftest.dir 5762 cd conftest.dir 5763 # We will build objects and dependencies in a subdirectory because 5764 # it helps to detect inapplicable dependency modes. For instance 5765 # both Tru64's cc and ICC support -MD to output dependencies as a 5766 # side effect of compilation, but ICC will put the dependencies in 5767 # the current directory while Tru64 will put them in the object 5768 # directory. 5769 mkdir sub 5770 5771 am_cv_CXX_dependencies_compiler_type=none 5772 if test "$am_compiler_list" = ""; then 5773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5774 fi 5775 for depmode in $am_compiler_list; do 5776 # Setup a source with many dependencies, because some compilers 5777 # like to wrap large dependency lists on column 80 (with \), and 5778 # we should not choose a depcomp mode which is confused by this. 5779 # 5780 # We need to recreate these files for each test, as the compiler may 5781 # overwrite some of them when testing with obscure command lines. 5782 # This happens at least with the AIX C compiler. 5783 : > sub/conftest.c 5784 for i in 1 2 3 4 5 6; do 5785 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5787 # Solaris 8's {/usr,}/bin/sh. 5788 touch sub/conftst$i.h 5789 done 5790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5791 5792 case $depmode in 5793 nosideeffect) 5794 # after this tag, mechanisms are not by side-effect, so they'll 5795 # only be used when explicitly requested 5796 if test "x$enable_dependency_tracking" = xyes; then 5797 continue 5798 else 5799 break 5800 fi 5801 ;; 5802 none) break ;; 5803 esac 5804 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5805 # mode. It turns out that the SunPro C++ compiler does not properly 5806 # handle `-M -o', and we need to detect this. 5807 if depmode=$depmode \ 5808 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5810 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5811 >/dev/null 2>conftest.err && 5812 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5813 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5814 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5815 # icc doesn't choke on unknown options, it will just issue warnings 5816 # or remarks (even with -Werror). So we grep stderr for any message 5817 # that says an option was ignored or not supported. 5818 # When given -MP, icc 7.0 and 7.1 complain thusly: 5819 # icc: Command line warning: ignoring option '-M'; no argument required 5820 # The diagnosis changed in icc 8.0: 5821 # icc: Command line remark: option '-MP' not supported 5822 if (grep 'ignoring option' conftest.err || 5823 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5824 am_cv_CXX_dependencies_compiler_type=$depmode 5825 break 5826 fi 5827 fi 5828 done 5829 5830 cd .. 5831 rm -rf conftest.dir 5832else 5833 am_cv_CXX_dependencies_compiler_type=none 5834fi 5835 5836fi 5837{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5838echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5839CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5840 5841 5842 5843if 5844 test "x$enable_dependency_tracking" != xno \ 5845 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5846 am__fastdepCXX_TRUE= 5847 am__fastdepCXX_FALSE='#' 5848else 5849 am__fastdepCXX_TRUE='#' 5850 am__fastdepCXX_FALSE= 5851fi 5852 5853 5854 5855 5856if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5857 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5858 (test "X$CXX" != "Xg++"))) ; then 5859 ac_ext=cpp 5860ac_cpp='$CXXCPP $CPPFLAGS' 5861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5864{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5865echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5866if test -z "$CXXCPP"; then 5867 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869else 5870 # Double quotes because CXXCPP needs to be expanded 5871 for CXXCPP in "$CXX -E" "/lib/cpp" 5872 do 5873 ac_preproc_ok=false 5874for ac_cxx_preproc_warn_flag in '' yes 5875do 5876 # Use a header file that comes with gcc, so configuring glibc 5877 # with a fresh cross-compiler works. 5878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5879 # <limits.h> exists even on freestanding compilers. 5880 # On the NeXT, cc -E runs the code through the compiler's parser, 5881 # not just through cpp. "Syntax error" is here to catch this case. 5882 cat >conftest.$ac_ext <<_ACEOF 5883/* confdefs.h. */ 5884_ACEOF 5885cat confdefs.h >>conftest.$ac_ext 5886cat >>conftest.$ac_ext <<_ACEOF 5887/* end confdefs.h. */ 5888#ifdef __STDC__ 5889# include <limits.h> 5890#else 5891# include <assert.h> 5892#endif 5893 Syntax error 5894_ACEOF 5895if { (ac_try="$ac_cpp conftest.$ac_ext" 5896case "(($ac_try" in 5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5898 *) ac_try_echo=$ac_try;; 5899esac 5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5902 ac_status=$? 5903 grep -v '^ *+' conftest.er1 >conftest.err 5904 rm -f conftest.er1 5905 cat conftest.err >&5 5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5907 (exit $ac_status); } >/dev/null; then 5908 if test -s conftest.err; then 5909 ac_cpp_err=$ac_cxx_preproc_warn_flag 5910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5911 else 5912 ac_cpp_err= 5913 fi 5914else 5915 ac_cpp_err=yes 5916fi 5917if test -z "$ac_cpp_err"; then 5918 : 5919else 5920 echo "$as_me: failed program was:" >&5 5921sed 's/^/| /' conftest.$ac_ext >&5 5922 5923 # Broken: fails on valid input. 5924continue 5925fi 5926 5927rm -f conftest.err conftest.$ac_ext 5928 5929 # OK, works on sane cases. Now check whether nonexistent headers 5930 # can be detected and how. 5931 cat >conftest.$ac_ext <<_ACEOF 5932/* confdefs.h. */ 5933_ACEOF 5934cat confdefs.h >>conftest.$ac_ext 5935cat >>conftest.$ac_ext <<_ACEOF 5936/* end confdefs.h. */ 5937#include <ac_nonexistent.h> 5938_ACEOF 5939if { (ac_try="$ac_cpp conftest.$ac_ext" 5940case "(($ac_try" in 5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5942 *) ac_try_echo=$ac_try;; 5943esac 5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5946 ac_status=$? 5947 grep -v '^ *+' conftest.er1 >conftest.err 5948 rm -f conftest.er1 5949 cat conftest.err >&5 5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5951 (exit $ac_status); } >/dev/null; then 5952 if test -s conftest.err; then 5953 ac_cpp_err=$ac_cxx_preproc_warn_flag 5954 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5955 else 5956 ac_cpp_err= 5957 fi 5958else 5959 ac_cpp_err=yes 5960fi 5961if test -z "$ac_cpp_err"; then 5962 # Broken: success on invalid input. 5963continue 5964else 5965 echo "$as_me: failed program was:" >&5 5966sed 's/^/| /' conftest.$ac_ext >&5 5967 5968 # Passes both tests. 5969ac_preproc_ok=: 5970break 5971fi 5972 5973rm -f conftest.err conftest.$ac_ext 5974 5975done 5976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5977rm -f conftest.err conftest.$ac_ext 5978if $ac_preproc_ok; then 5979 break 5980fi 5981 5982 done 5983 ac_cv_prog_CXXCPP=$CXXCPP 5984 5985fi 5986 CXXCPP=$ac_cv_prog_CXXCPP 5987else 5988 ac_cv_prog_CXXCPP=$CXXCPP 5989fi 5990{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5991echo "${ECHO_T}$CXXCPP" >&6; } 5992ac_preproc_ok=false 5993for ac_cxx_preproc_warn_flag in '' yes 5994do 5995 # Use a header file that comes with gcc, so configuring glibc 5996 # with a fresh cross-compiler works. 5997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5998 # <limits.h> exists even on freestanding compilers. 5999 # On the NeXT, cc -E runs the code through the compiler's parser, 6000 # not just through cpp. "Syntax error" is here to catch this case. 6001 cat >conftest.$ac_ext <<_ACEOF 6002/* confdefs.h. */ 6003_ACEOF 6004cat confdefs.h >>conftest.$ac_ext 6005cat >>conftest.$ac_ext <<_ACEOF 6006/* end confdefs.h. */ 6007#ifdef __STDC__ 6008# include <limits.h> 6009#else 6010# include <assert.h> 6011#endif 6012 Syntax error 6013_ACEOF 6014if { (ac_try="$ac_cpp conftest.$ac_ext" 6015case "(($ac_try" in 6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6017 *) ac_try_echo=$ac_try;; 6018esac 6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6021 ac_status=$? 6022 grep -v '^ *+' conftest.er1 >conftest.err 6023 rm -f conftest.er1 6024 cat conftest.err >&5 6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6026 (exit $ac_status); } >/dev/null; then 6027 if test -s conftest.err; then 6028 ac_cpp_err=$ac_cxx_preproc_warn_flag 6029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6030 else 6031 ac_cpp_err= 6032 fi 6033else 6034 ac_cpp_err=yes 6035fi 6036if test -z "$ac_cpp_err"; then 6037 : 6038else 6039 echo "$as_me: failed program was:" >&5 6040sed 's/^/| /' conftest.$ac_ext >&5 6041 6042 # Broken: fails on valid input. 6043continue 6044fi 6045 6046rm -f conftest.err conftest.$ac_ext 6047 6048 # OK, works on sane cases. Now check whether nonexistent headers 6049 # can be detected and how. 6050 cat >conftest.$ac_ext <<_ACEOF 6051/* confdefs.h. */ 6052_ACEOF 6053cat confdefs.h >>conftest.$ac_ext 6054cat >>conftest.$ac_ext <<_ACEOF 6055/* end confdefs.h. */ 6056#include <ac_nonexistent.h> 6057_ACEOF 6058if { (ac_try="$ac_cpp conftest.$ac_ext" 6059case "(($ac_try" in 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6061 *) ac_try_echo=$ac_try;; 6062esac 6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6065 ac_status=$? 6066 grep -v '^ *+' conftest.er1 >conftest.err 6067 rm -f conftest.er1 6068 cat conftest.err >&5 6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6070 (exit $ac_status); } >/dev/null; then 6071 if test -s conftest.err; then 6072 ac_cpp_err=$ac_cxx_preproc_warn_flag 6073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6074 else 6075 ac_cpp_err= 6076 fi 6077else 6078 ac_cpp_err=yes 6079fi 6080if test -z "$ac_cpp_err"; then 6081 # Broken: success on invalid input. 6082continue 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087 # Passes both tests. 6088ac_preproc_ok=: 6089break 6090fi 6091 6092rm -f conftest.err conftest.$ac_ext 6093 6094done 6095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6096rm -f conftest.err conftest.$ac_ext 6097if $ac_preproc_ok; then 6098 : 6099else 6100 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6101See \`config.log' for more details." >&5 6102echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6103See \`config.log' for more details." >&2;} 6104 { (exit 1); exit 1; }; } 6105fi 6106 6107ac_ext=cpp 6108ac_cpp='$CXXCPP $CPPFLAGS' 6109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6112 6113fi 6114 6115 6116ac_ext=f 6117ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6118ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6119ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6120if test -n "$ac_tool_prefix"; then 6121 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6122 do 6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6124set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6125{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6127if test "${ac_cv_prog_F77+set}" = set; then 6128 echo $ECHO_N "(cached) $ECHO_C" >&6 6129else 6130 if test -n "$F77"; then 6131 ac_cv_prog_F77="$F77" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6140 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145done 6146IFS=$as_save_IFS 6147 6148fi 6149fi 6150F77=$ac_cv_prog_F77 6151if test -n "$F77"; then 6152 { echo "$as_me:$LINENO: result: $F77" >&5 6153echo "${ECHO_T}$F77" >&6; } 6154else 6155 { echo "$as_me:$LINENO: result: no" >&5 6156echo "${ECHO_T}no" >&6; } 6157fi 6158 6159 6160 test -n "$F77" && break 6161 done 6162fi 6163if test -z "$F77"; then 6164 ac_ct_F77=$F77 6165 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6166do 6167 # Extract the first word of "$ac_prog", so it can be a program name with args. 6168set dummy $ac_prog; ac_word=$2 6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6171if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6172 echo $ECHO_N "(cached) $ECHO_C" >&6 6173else 6174 if test -n "$ac_ct_F77"; then 6175 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6176else 6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6178for as_dir in $PATH 6179do 6180 IFS=$as_save_IFS 6181 test -z "$as_dir" && as_dir=. 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6184 ac_cv_prog_ac_ct_F77="$ac_prog" 6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188done 6189done 6190IFS=$as_save_IFS 6191 6192fi 6193fi 6194ac_ct_F77=$ac_cv_prog_ac_ct_F77 6195if test -n "$ac_ct_F77"; then 6196 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6197echo "${ECHO_T}$ac_ct_F77" >&6; } 6198else 6199 { echo "$as_me:$LINENO: result: no" >&5 6200echo "${ECHO_T}no" >&6; } 6201fi 6202 6203 6204 test -n "$ac_ct_F77" && break 6205done 6206 6207 if test "x$ac_ct_F77" = x; then 6208 F77="" 6209 else 6210 case $cross_compiling:$ac_tool_warned in 6211yes:) 6212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6213whose name does not start with the host triplet. If you think this 6214configuration is useful to you, please write to autoconf@gnu.org." >&5 6215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6216whose name does not start with the host triplet. If you think this 6217configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6218ac_tool_warned=yes ;; 6219esac 6220 F77=$ac_ct_F77 6221 fi 6222fi 6223 6224 6225# Provide some information about the compiler. 6226echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6227ac_compiler=`set X $ac_compile; echo $2` 6228{ (ac_try="$ac_compiler --version >&5" 6229case "(($ac_try" in 6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6231 *) ac_try_echo=$ac_try;; 6232esac 6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6234 (eval "$ac_compiler --version >&5") 2>&5 6235 ac_status=$? 6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6237 (exit $ac_status); } 6238{ (ac_try="$ac_compiler -v >&5" 6239case "(($ac_try" in 6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6241 *) ac_try_echo=$ac_try;; 6242esac 6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6244 (eval "$ac_compiler -v >&5") 2>&5 6245 ac_status=$? 6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } 6248{ (ac_try="$ac_compiler -V >&5" 6249case "(($ac_try" in 6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6251 *) ac_try_echo=$ac_try;; 6252esac 6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6254 (eval "$ac_compiler -V >&5") 2>&5 6255 ac_status=$? 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); } 6258rm -f a.out 6259 6260# If we don't use `.F' as extension, the preprocessor is not run on the 6261# input file. (Note that this only needs to work for GNU compilers.) 6262ac_save_ext=$ac_ext 6263ac_ext=F 6264{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6265echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6266if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6267 echo $ECHO_N "(cached) $ECHO_C" >&6 6268else 6269 cat >conftest.$ac_ext <<_ACEOF 6270 program main 6271#ifndef __GNUC__ 6272 choke me 6273#endif 6274 6275 end 6276_ACEOF 6277rm -f conftest.$ac_objext 6278if { (ac_try="$ac_compile" 6279case "(($ac_try" in 6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6281 *) ac_try_echo=$ac_try;; 6282esac 6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6284 (eval "$ac_compile") 2>conftest.er1 6285 ac_status=$? 6286 grep -v '^ *+' conftest.er1 >conftest.err 6287 rm -f conftest.er1 6288 cat conftest.err >&5 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 (exit $ac_status); } && 6291 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6292 { (case "(($ac_try" in 6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6294 *) ac_try_echo=$ac_try;; 6295esac 6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6297 (eval "$ac_try") 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; } && 6301 { ac_try='test -s conftest.$ac_objext' 6302 { (case "(($ac_try" in 6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6304 *) ac_try_echo=$ac_try;; 6305esac 6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6307 (eval "$ac_try") 2>&5 6308 ac_status=$? 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); }; }; then 6311 ac_compiler_gnu=yes 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_compiler_gnu=no 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6321 6322fi 6323{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6324echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6325ac_ext=$ac_save_ext 6326ac_test_FFLAGS=${FFLAGS+set} 6327ac_save_FFLAGS=$FFLAGS 6328FFLAGS= 6329{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6330echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6331if test "${ac_cv_prog_f77_g+set}" = set; then 6332 echo $ECHO_N "(cached) $ECHO_C" >&6 6333else 6334 FFLAGS=-g 6335cat >conftest.$ac_ext <<_ACEOF 6336 program main 6337 6338 end 6339_ACEOF 6340rm -f conftest.$ac_objext 6341if { (ac_try="$ac_compile" 6342case "(($ac_try" in 6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6344 *) ac_try_echo=$ac_try;; 6345esac 6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6347 (eval "$ac_compile") 2>conftest.er1 6348 ac_status=$? 6349 grep -v '^ *+' conftest.er1 >conftest.err 6350 rm -f conftest.er1 6351 cat conftest.err >&5 6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); } && 6354 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6355 { (case "(($ac_try" in 6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6357 *) ac_try_echo=$ac_try;; 6358esac 6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6360 (eval "$ac_try") 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); }; } && 6364 { ac_try='test -s conftest.$ac_objext' 6365 { (case "(($ac_try" in 6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6367 *) ac_try_echo=$ac_try;; 6368esac 6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6370 (eval "$ac_try") 2>&5 6371 ac_status=$? 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6373 (exit $ac_status); }; }; then 6374 ac_cv_prog_f77_g=yes 6375else 6376 echo "$as_me: failed program was:" >&5 6377sed 's/^/| /' conftest.$ac_ext >&5 6378 6379 ac_cv_prog_f77_g=no 6380fi 6381 6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6383 6384fi 6385{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6386echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6387if test "$ac_test_FFLAGS" = set; then 6388 FFLAGS=$ac_save_FFLAGS 6389elif test $ac_cv_prog_f77_g = yes; then 6390 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6391 FFLAGS="-g -O2" 6392 else 6393 FFLAGS="-g" 6394 fi 6395else 6396 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6397 FFLAGS="-O2" 6398 else 6399 FFLAGS= 6400 fi 6401fi 6402 6403G77=`test $ac_compiler_gnu = yes && echo yes` 6404ac_ext=c 6405ac_cpp='$CPP $CPPFLAGS' 6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6408ac_compiler_gnu=$ac_cv_c_compiler_gnu 6409 6410 6411 6412# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6413 6414# find the maximum length of command line arguments 6415{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6416echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6417if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6418 echo $ECHO_N "(cached) $ECHO_C" >&6 6419else 6420 i=0 6421 teststring="ABCD" 6422 6423 case $build_os in 6424 msdosdjgpp*) 6425 # On DJGPP, this test can blow up pretty badly due to problems in libc 6426 # (any single argument exceeding 2000 bytes causes a buffer overrun 6427 # during glob expansion). Even if it were fixed, the result of this 6428 # check would be larger than it should be. 6429 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6430 ;; 6431 6432 gnu*) 6433 # Under GNU Hurd, this test is not required because there is 6434 # no limit to the length of command line arguments. 6435 # Libtool will interpret -1 as no limit whatsoever 6436 lt_cv_sys_max_cmd_len=-1; 6437 ;; 6438 6439 cygwin* | mingw*) 6440 # On Win9x/ME, this test blows up -- it succeeds, but takes 6441 # about 5 minutes as the teststring grows exponentially. 6442 # Worse, since 9x/ME are not pre-emptively multitasking, 6443 # you end up with a "frozen" computer, even though with patience 6444 # the test eventually succeeds (with a max line length of 256k). 6445 # Instead, let's just punt: use the minimum linelength reported by 6446 # all of the supported platforms: 8192 (on NT/2K/XP). 6447 lt_cv_sys_max_cmd_len=8192; 6448 ;; 6449 6450 amigaos*) 6451 # On AmigaOS with pdksh, this test takes hours, literally. 6452 # So we just punt and use a minimum line length of 8192. 6453 lt_cv_sys_max_cmd_len=8192; 6454 ;; 6455 6456 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6457 # This has been around since 386BSD, at least. Likely further. 6458 if test -x /sbin/sysctl; then 6459 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6460 elif test -x /usr/sbin/sysctl; then 6461 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6462 else 6463 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6464 fi 6465 # And add a safety zone 6466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6468 ;; 6469 6470 interix*) 6471 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6472 lt_cv_sys_max_cmd_len=196608 6473 ;; 6474 6475 osf*) 6476 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6477 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6478 # nice to cause kernel panics so lets avoid the loop below. 6479 # First set a reasonable default. 6480 lt_cv_sys_max_cmd_len=16384 6481 # 6482 if test -x /sbin/sysconfig; then 6483 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6484 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6485 esac 6486 fi 6487 ;; 6488 sco3.2v5*) 6489 lt_cv_sys_max_cmd_len=102400 6490 ;; 6491 sysv5* | sco5v6* | sysv4.2uw2*) 6492 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6493 if test -n "$kargmax"; then 6494 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6495 else 6496 lt_cv_sys_max_cmd_len=32768 6497 fi 6498 ;; 6499 *) 6500 # If test is not a shell built-in, we'll probably end up computing a 6501 # maximum length that is only half of the actual maximum length, but 6502 # we can't tell. 6503 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6504 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6505 = "XX$teststring") >/dev/null 2>&1 && 6506 new_result=`expr "X$teststring" : ".*" 2>&1` && 6507 lt_cv_sys_max_cmd_len=$new_result && 6508 test $i != 17 # 1/2 MB should be enough 6509 do 6510 i=`expr $i + 1` 6511 teststring=$teststring$teststring 6512 done 6513 teststring= 6514 # Add a significant safety factor because C++ compilers can tack on massive 6515 # amounts of additional arguments before passing them to the linker. 6516 # It appears as though 1/2 is a usable value. 6517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6518 ;; 6519 esac 6520 6521fi 6522 6523if test -n $lt_cv_sys_max_cmd_len ; then 6524 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6525echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6526else 6527 { echo "$as_me:$LINENO: result: none" >&5 6528echo "${ECHO_T}none" >&6; } 6529fi 6530 6531 6532 6533 6534# Check for command to grab the raw symbol name followed by C symbol from nm. 6535{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6536echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6537if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 6541# These are sane defaults that work on at least a few old systems. 6542# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6543 6544# Character class describing NM global symbol codes. 6545symcode='[BCDEGRST]' 6546 6547# Regexp to match symbols that can be accessed directly from C. 6548sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6549 6550# Transform an extracted symbol line into a proper C declaration 6551lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6552 6553# Transform an extracted symbol line into symbol name and symbol address 6554lt_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'" 6555 6556# Define system-specific variables. 6557case $host_os in 6558aix*) 6559 symcode='[BCDT]' 6560 ;; 6561cygwin* | mingw* | pw32*) 6562 symcode='[ABCDGISTW]' 6563 ;; 6564hpux*) # Its linker distinguishes data from code symbols 6565 if test "$host_cpu" = ia64; then 6566 symcode='[ABCDEGRST]' 6567 fi 6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6569 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'" 6570 ;; 6571linux* | k*bsd*-gnu) 6572 if test "$host_cpu" = ia64; then 6573 symcode='[ABCDGIRSTW]' 6574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6575 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'" 6576 fi 6577 ;; 6578irix* | nonstopux*) 6579 symcode='[BCDEGRST]' 6580 ;; 6581osf*) 6582 symcode='[BCDEGQRST]' 6583 ;; 6584solaris*) 6585 symcode='[BDRT]' 6586 ;; 6587sco3.2v5*) 6588 symcode='[DT]' 6589 ;; 6590sysv4.2uw2*) 6591 symcode='[DT]' 6592 ;; 6593sysv5* | sco5v6* | unixware* | OpenUNIX*) 6594 symcode='[ABDT]' 6595 ;; 6596sysv4) 6597 symcode='[DFNSTU]' 6598 ;; 6599esac 6600 6601# Handle CRLF in mingw tool chain 6602opt_cr= 6603case $build_os in 6604mingw*) 6605 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6606 ;; 6607esac 6608 6609# If we're using GNU nm, then use its standard symbol codes. 6610case `$NM -V 2>&1` in 6611*GNU* | *'with BFD'*) 6612 symcode='[ABCDGIRSTW]' ;; 6613esac 6614 6615# Try without a prefix undercore, then with it. 6616for ac_symprfx in "" "_"; do 6617 6618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6619 symxfrm="\\1 $ac_symprfx\\2 \\2" 6620 6621 # Write the raw and C identifiers. 6622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6623 6624 # Check to see that the pipe works correctly. 6625 pipe_works=no 6626 6627 rm -f conftest* 6628 cat > conftest.$ac_ext <<EOF 6629#ifdef __cplusplus 6630extern "C" { 6631#endif 6632char nm_test_var; 6633void nm_test_func(){} 6634#ifdef __cplusplus 6635} 6636#endif 6637int main(){nm_test_var='a';nm_test_func();return(0);} 6638EOF 6639 6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6641 (eval $ac_compile) 2>&5 6642 ac_status=$? 6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6644 (exit $ac_status); }; then 6645 # Now try to grab the symbols. 6646 nlist=conftest.nm 6647 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6648 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6649 ac_status=$? 6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6651 (exit $ac_status); } && test -s "$nlist"; then 6652 # Try sorting and uniquifying the output. 6653 if sort "$nlist" | uniq > "$nlist"T; then 6654 mv -f "$nlist"T "$nlist" 6655 else 6656 rm -f "$nlist"T 6657 fi 6658 6659 # Make sure that we snagged all the symbols we need. 6660 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6661 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6662 cat <<EOF > conftest.$ac_ext 6663#ifdef __cplusplus 6664extern "C" { 6665#endif 6666 6667EOF 6668 # Now generate the symbol file. 6669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6670 6671 cat <<EOF >> conftest.$ac_ext 6672#if defined (__STDC__) && __STDC__ 6673# define lt_ptr_t void * 6674#else 6675# define lt_ptr_t char * 6676# define const 6677#endif 6678 6679/* The mapping between symbol names and symbols. */ 6680const struct { 6681 const char *name; 6682 lt_ptr_t address; 6683} 6684lt_preloaded_symbols[] = 6685{ 6686EOF 6687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6688 cat <<\EOF >> conftest.$ac_ext 6689 {0, (lt_ptr_t) 0} 6690}; 6691 6692#ifdef __cplusplus 6693} 6694#endif 6695EOF 6696 # Now try linking the two files. 6697 mv conftest.$ac_objext conftstm.$ac_objext 6698 lt_save_LIBS="$LIBS" 6699 lt_save_CFLAGS="$CFLAGS" 6700 LIBS="conftstm.$ac_objext" 6701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6703 (eval $ac_link) 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6707 pipe_works=yes 6708 fi 6709 LIBS="$lt_save_LIBS" 6710 CFLAGS="$lt_save_CFLAGS" 6711 else 6712 echo "cannot find nm_test_func in $nlist" >&5 6713 fi 6714 else 6715 echo "cannot find nm_test_var in $nlist" >&5 6716 fi 6717 else 6718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6719 fi 6720 else 6721 echo "$progname: failed program was:" >&5 6722 cat conftest.$ac_ext >&5 6723 fi 6724 rm -f conftest* conftst* 6725 6726 # Do not use the global_symbol_pipe unless it works. 6727 if test "$pipe_works" = yes; then 6728 break 6729 else 6730 lt_cv_sys_global_symbol_pipe= 6731 fi 6732done 6733 6734fi 6735 6736if test -z "$lt_cv_sys_global_symbol_pipe"; then 6737 lt_cv_sys_global_symbol_to_cdecl= 6738fi 6739if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6740 { echo "$as_me:$LINENO: result: failed" >&5 6741echo "${ECHO_T}failed" >&6; } 6742else 6743 { echo "$as_me:$LINENO: result: ok" >&5 6744echo "${ECHO_T}ok" >&6; } 6745fi 6746 6747{ echo "$as_me:$LINENO: checking for objdir" >&5 6748echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6749if test "${lt_cv_objdir+set}" = set; then 6750 echo $ECHO_N "(cached) $ECHO_C" >&6 6751else 6752 rm -f .libs 2>/dev/null 6753mkdir .libs 2>/dev/null 6754if test -d .libs; then 6755 lt_cv_objdir=.libs 6756else 6757 # MS-DOS does not allow filenames that begin with a dot. 6758 lt_cv_objdir=_libs 6759fi 6760rmdir .libs 2>/dev/null 6761fi 6762{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6763echo "${ECHO_T}$lt_cv_objdir" >&6; } 6764objdir=$lt_cv_objdir 6765 6766 6767 6768 6769 6770case $host_os in 6771aix3*) 6772 # AIX sometimes has problems with the GCC collect2 program. For some 6773 # reason, if we set the COLLECT_NAMES environment variable, the problems 6774 # vanish in a puff of smoke. 6775 if test "X${COLLECT_NAMES+set}" != Xset; then 6776 COLLECT_NAMES= 6777 export COLLECT_NAMES 6778 fi 6779 ;; 6780esac 6781 6782# Sed substitution that helps us do robust quoting. It backslashifies 6783# metacharacters that are still active within double-quoted strings. 6784Xsed='sed -e 1s/^X//' 6785sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6786 6787# Same as above, but do not quote variable references. 6788double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6789 6790# Sed substitution to delay expansion of an escaped shell variable in a 6791# double_quote_subst'ed string. 6792delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6793 6794# Sed substitution to avoid accidental globbing in evaled expressions 6795no_glob_subst='s/\*/\\\*/g' 6796 6797# Constants: 6798rm="rm -f" 6799 6800# Global variables: 6801default_ofile=libtool 6802can_build_shared=yes 6803 6804# All known linkers require a `.a' archive for static linking (except MSVC, 6805# which needs '.lib'). 6806libext=a 6807ltmain="$ac_aux_dir/ltmain.sh" 6808ofile="$default_ofile" 6809with_gnu_ld="$lt_cv_prog_gnu_ld" 6810 6811if test -n "$ac_tool_prefix"; then 6812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6813set dummy ${ac_tool_prefix}ar; ac_word=$2 6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6816if test "${ac_cv_prog_AR+set}" = set; then 6817 echo $ECHO_N "(cached) $ECHO_C" >&6 6818else 6819 if test -n "$AR"; then 6820 ac_cv_prog_AR="$AR" # Let the user override the test. 6821else 6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6823for as_dir in $PATH 6824do 6825 IFS=$as_save_IFS 6826 test -z "$as_dir" && as_dir=. 6827 for ac_exec_ext in '' $ac_executable_extensions; do 6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6829 ac_cv_prog_AR="${ac_tool_prefix}ar" 6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6831 break 2 6832 fi 6833done 6834done 6835IFS=$as_save_IFS 6836 6837fi 6838fi 6839AR=$ac_cv_prog_AR 6840if test -n "$AR"; then 6841 { echo "$as_me:$LINENO: result: $AR" >&5 6842echo "${ECHO_T}$AR" >&6; } 6843else 6844 { echo "$as_me:$LINENO: result: no" >&5 6845echo "${ECHO_T}no" >&6; } 6846fi 6847 6848 6849fi 6850if test -z "$ac_cv_prog_AR"; then 6851 ac_ct_AR=$AR 6852 # Extract the first word of "ar", so it can be a program name with args. 6853set dummy ar; ac_word=$2 6854{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6856if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6857 echo $ECHO_N "(cached) $ECHO_C" >&6 6858else 6859 if test -n "$ac_ct_AR"; then 6860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6869 ac_cv_prog_ac_ct_AR="ar" 6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879ac_ct_AR=$ac_cv_prog_ac_ct_AR 6880if test -n "$ac_ct_AR"; then 6881 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6882echo "${ECHO_T}$ac_ct_AR" >&6; } 6883else 6884 { echo "$as_me:$LINENO: result: no" >&5 6885echo "${ECHO_T}no" >&6; } 6886fi 6887 6888 if test "x$ac_ct_AR" = x; then 6889 AR="false" 6890 else 6891 case $cross_compiling:$ac_tool_warned in 6892yes:) 6893{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6894whose name does not start with the host triplet. If you think this 6895configuration is useful to you, please write to autoconf@gnu.org." >&5 6896echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6897whose name does not start with the host triplet. If you think this 6898configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6899ac_tool_warned=yes ;; 6900esac 6901 AR=$ac_ct_AR 6902 fi 6903else 6904 AR="$ac_cv_prog_AR" 6905fi 6906 6907if test -n "$ac_tool_prefix"; then 6908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6909set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6910{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6912if test "${ac_cv_prog_RANLIB+set}" = set; then 6913 echo $ECHO_N "(cached) $ECHO_C" >&6 6914else 6915 if test -n "$RANLIB"; then 6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6917else 6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930done 6931IFS=$as_save_IFS 6932 6933fi 6934fi 6935RANLIB=$ac_cv_prog_RANLIB 6936if test -n "$RANLIB"; then 6937 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6938echo "${ECHO_T}$RANLIB" >&6; } 6939else 6940 { echo "$as_me:$LINENO: result: no" >&5 6941echo "${ECHO_T}no" >&6; } 6942fi 6943 6944 6945fi 6946if test -z "$ac_cv_prog_RANLIB"; then 6947 ac_ct_RANLIB=$RANLIB 6948 # Extract the first word of "ranlib", so it can be a program name with args. 6949set dummy ranlib; ac_word=$2 6950{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6952if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6953 echo $ECHO_N "(cached) $ECHO_C" >&6 6954else 6955 if test -n "$ac_ct_RANLIB"; then 6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6957else 6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6965 ac_cv_prog_ac_ct_RANLIB="ranlib" 6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969done 6970done 6971IFS=$as_save_IFS 6972 6973fi 6974fi 6975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6976if test -n "$ac_ct_RANLIB"; then 6977 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6978echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6979else 6980 { echo "$as_me:$LINENO: result: no" >&5 6981echo "${ECHO_T}no" >&6; } 6982fi 6983 6984 if test "x$ac_ct_RANLIB" = x; then 6985 RANLIB=":" 6986 else 6987 case $cross_compiling:$ac_tool_warned in 6988yes:) 6989{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6990whose name does not start with the host triplet. If you think this 6991configuration is useful to you, please write to autoconf@gnu.org." >&5 6992echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6993whose name does not start with the host triplet. If you think this 6994configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6995ac_tool_warned=yes ;; 6996esac 6997 RANLIB=$ac_ct_RANLIB 6998 fi 6999else 7000 RANLIB="$ac_cv_prog_RANLIB" 7001fi 7002 7003if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}strip; ac_word=$2 7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7008if test "${ac_cv_prog_STRIP+set}" = set; then 7009 echo $ECHO_N "(cached) $ECHO_C" >&6 7010else 7011 if test -n "$STRIP"; then 7012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7013else 7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7021 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031STRIP=$ac_cv_prog_STRIP 7032if test -n "$STRIP"; then 7033 { echo "$as_me:$LINENO: result: $STRIP" >&5 7034echo "${ECHO_T}$STRIP" >&6; } 7035else 7036 { echo "$as_me:$LINENO: result: no" >&5 7037echo "${ECHO_T}no" >&6; } 7038fi 7039 7040 7041fi 7042if test -z "$ac_cv_prog_STRIP"; then 7043 ac_ct_STRIP=$STRIP 7044 # Extract the first word of "strip", so it can be a program name with args. 7045set dummy strip; ac_word=$2 7046{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7048if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7049 echo $ECHO_N "(cached) $ECHO_C" >&6 7050else 7051 if test -n "$ac_ct_STRIP"; then 7052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7061 ac_cv_prog_ac_ct_STRIP="strip" 7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7072if test -n "$ac_ct_STRIP"; then 7073 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7074echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7075else 7076 { echo "$as_me:$LINENO: result: no" >&5 7077echo "${ECHO_T}no" >&6; } 7078fi 7079 7080 if test "x$ac_ct_STRIP" = x; then 7081 STRIP=":" 7082 else 7083 case $cross_compiling:$ac_tool_warned in 7084yes:) 7085{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7086whose name does not start with the host triplet. If you think this 7087configuration is useful to you, please write to autoconf@gnu.org." >&5 7088echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7089whose name does not start with the host triplet. If you think this 7090configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7091ac_tool_warned=yes ;; 7092esac 7093 STRIP=$ac_ct_STRIP 7094 fi 7095else 7096 STRIP="$ac_cv_prog_STRIP" 7097fi 7098 7099 7100old_CC="$CC" 7101old_CFLAGS="$CFLAGS" 7102 7103# Set sane defaults for various variables 7104test -z "$AR" && AR=ar 7105test -z "$AR_FLAGS" && AR_FLAGS=cru 7106test -z "$AS" && AS=as 7107test -z "$CC" && CC=cc 7108test -z "$LTCC" && LTCC=$CC 7109test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7110test -z "$DLLTOOL" && DLLTOOL=dlltool 7111test -z "$LD" && LD=ld 7112test -z "$LN_S" && LN_S="ln -s" 7113test -z "$MAGIC_CMD" && MAGIC_CMD=file 7114test -z "$NM" && NM=nm 7115test -z "$SED" && SED=sed 7116test -z "$OBJDUMP" && OBJDUMP=objdump 7117test -z "$RANLIB" && RANLIB=: 7118test -z "$STRIP" && STRIP=: 7119test -z "$ac_objext" && ac_objext=o 7120 7121# Determine commands to create old-style static archives. 7122old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7123old_postinstall_cmds='chmod 644 $oldlib' 7124old_postuninstall_cmds= 7125 7126if test -n "$RANLIB"; then 7127 case $host_os in 7128 openbsd*) 7129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7130 ;; 7131 *) 7132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7133 ;; 7134 esac 7135 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7136fi 7137 7138for cc_temp in $compiler""; do 7139 case $cc_temp in 7140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7142 \-*) ;; 7143 *) break;; 7144 esac 7145done 7146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7147 7148 7149# Only perform the check for file, if the check method requires it 7150case $deplibs_check_method in 7151file_magic*) 7152 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7153 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7154echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7155if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7156 echo $ECHO_N "(cached) $ECHO_C" >&6 7157else 7158 case $MAGIC_CMD in 7159[\\/*] | ?:[\\/]*) 7160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7161 ;; 7162*) 7163 lt_save_MAGIC_CMD="$MAGIC_CMD" 7164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7166 for ac_dir in $ac_dummy; do 7167 IFS="$lt_save_ifs" 7168 test -z "$ac_dir" && ac_dir=. 7169 if test -f $ac_dir/${ac_tool_prefix}file; then 7170 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7171 if test -n "$file_magic_test_file"; then 7172 case $deplibs_check_method in 7173 "file_magic "*) 7174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7177 $EGREP "$file_magic_regex" > /dev/null; then 7178 : 7179 else 7180 cat <<EOF 1>&2 7181 7182*** Warning: the command libtool uses to detect shared libraries, 7183*** $file_magic_cmd, produces output that libtool cannot recognize. 7184*** The result is that libtool may fail to recognize shared libraries 7185*** as such. This will affect the creation of libtool libraries that 7186*** depend on shared libraries, but programs linked with such libtool 7187*** libraries will work regardless of this problem. Nevertheless, you 7188*** may want to report the problem to your system manager and/or to 7189*** bug-libtool@gnu.org 7190 7191EOF 7192 fi ;; 7193 esac 7194 fi 7195 break 7196 fi 7197 done 7198 IFS="$lt_save_ifs" 7199 MAGIC_CMD="$lt_save_MAGIC_CMD" 7200 ;; 7201esac 7202fi 7203 7204MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7205if test -n "$MAGIC_CMD"; then 7206 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7207echo "${ECHO_T}$MAGIC_CMD" >&6; } 7208else 7209 { echo "$as_me:$LINENO: result: no" >&5 7210echo "${ECHO_T}no" >&6; } 7211fi 7212 7213if test -z "$lt_cv_path_MAGIC_CMD"; then 7214 if test -n "$ac_tool_prefix"; then 7215 { echo "$as_me:$LINENO: checking for file" >&5 7216echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7218 echo $ECHO_N "(cached) $ECHO_C" >&6 7219else 7220 case $MAGIC_CMD in 7221[\\/*] | ?:[\\/]*) 7222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7223 ;; 7224*) 7225 lt_save_MAGIC_CMD="$MAGIC_CMD" 7226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7228 for ac_dir in $ac_dummy; do 7229 IFS="$lt_save_ifs" 7230 test -z "$ac_dir" && ac_dir=. 7231 if test -f $ac_dir/file; then 7232 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7233 if test -n "$file_magic_test_file"; then 7234 case $deplibs_check_method in 7235 "file_magic "*) 7236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7239 $EGREP "$file_magic_regex" > /dev/null; then 7240 : 7241 else 7242 cat <<EOF 1>&2 7243 7244*** Warning: the command libtool uses to detect shared libraries, 7245*** $file_magic_cmd, produces output that libtool cannot recognize. 7246*** The result is that libtool may fail to recognize shared libraries 7247*** as such. This will affect the creation of libtool libraries that 7248*** depend on shared libraries, but programs linked with such libtool 7249*** libraries will work regardless of this problem. Nevertheless, you 7250*** may want to report the problem to your system manager and/or to 7251*** bug-libtool@gnu.org 7252 7253EOF 7254 fi ;; 7255 esac 7256 fi 7257 break 7258 fi 7259 done 7260 IFS="$lt_save_ifs" 7261 MAGIC_CMD="$lt_save_MAGIC_CMD" 7262 ;; 7263esac 7264fi 7265 7266MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7267if test -n "$MAGIC_CMD"; then 7268 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7269echo "${ECHO_T}$MAGIC_CMD" >&6; } 7270else 7271 { echo "$as_me:$LINENO: result: no" >&5 7272echo "${ECHO_T}no" >&6; } 7273fi 7274 7275 else 7276 MAGIC_CMD=: 7277 fi 7278fi 7279 7280 fi 7281 ;; 7282esac 7283 7284enable_dlopen=yes 7285enable_win32_dll=no 7286 7287# Check whether --enable-libtool-lock was given. 7288if test "${enable_libtool_lock+set}" = set; then 7289 enableval=$enable_libtool_lock; 7290fi 7291 7292test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7293 7294 7295# Check whether --with-pic was given. 7296if test "${with_pic+set}" = set; then 7297 withval=$with_pic; pic_mode="$withval" 7298else 7299 pic_mode=default 7300fi 7301 7302test -z "$pic_mode" && pic_mode=default 7303 7304# Use C for the default configuration in the libtool script 7305tagname= 7306lt_save_CC="$CC" 7307ac_ext=c 7308ac_cpp='$CPP $CPPFLAGS' 7309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7311ac_compiler_gnu=$ac_cv_c_compiler_gnu 7312 7313 7314# Source file extension for C test sources. 7315ac_ext=c 7316 7317# Object file extension for compiled C test sources. 7318objext=o 7319objext=$objext 7320 7321# Code to be used in simple compile tests 7322lt_simple_compile_test_code="int some_variable = 0;\n" 7323 7324# Code to be used in simple link tests 7325lt_simple_link_test_code='int main(){return(0);}\n' 7326 7327 7328# If no C compiler was specified, use CC. 7329LTCC=${LTCC-"$CC"} 7330 7331# If no C compiler flags were specified, use CFLAGS. 7332LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7333 7334# Allow CC to be a program name with arguments. 7335compiler=$CC 7336 7337 7338# save warnings/boilerplate of simple test code 7339ac_outfile=conftest.$ac_objext 7340printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7342_lt_compiler_boilerplate=`cat conftest.err` 7343$rm conftest* 7344 7345ac_outfile=conftest.$ac_objext 7346printf "$lt_simple_link_test_code" >conftest.$ac_ext 7347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7348_lt_linker_boilerplate=`cat conftest.err` 7349$rm conftest* 7350 7351 7352 7353lt_prog_compiler_no_builtin_flag= 7354 7355if test "$GCC" = yes; then 7356 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7357 7358 7359{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7360echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7361if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7362 echo $ECHO_N "(cached) $ECHO_C" >&6 7363else 7364 lt_cv_prog_compiler_rtti_exceptions=no 7365 ac_outfile=conftest.$ac_objext 7366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7367 lt_compiler_flag="-fno-rtti -fno-exceptions" 7368 # Insert the option either (1) after the last *FLAGS variable, or 7369 # (2) before a word containing "conftest.", or (3) at the end. 7370 # Note that $ac_compile itself does not contain backslashes and begins 7371 # with a dollar sign (not a hyphen), so the echo should work correctly. 7372 # The option is referenced via a variable to avoid confusing sed. 7373 lt_compile=`echo "$ac_compile" | $SED \ 7374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7376 -e 's:$: $lt_compiler_flag:'` 7377 (eval echo "\"\$as_me:7377: $lt_compile\"" >&5) 7378 (eval "$lt_compile" 2>conftest.err) 7379 ac_status=$? 7380 cat conftest.err >&5 7381 echo "$as_me:7381: \$? = $ac_status" >&5 7382 if (exit $ac_status) && test -s "$ac_outfile"; then 7383 # The compiler can only warn and ignore the option if not recognized 7384 # So say no if there are warnings other than the usual output. 7385 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7388 lt_cv_prog_compiler_rtti_exceptions=yes 7389 fi 7390 fi 7391 $rm conftest* 7392 7393fi 7394{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7395echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7396 7397if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7398 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7399else 7400 : 7401fi 7402 7403fi 7404 7405lt_prog_compiler_wl= 7406lt_prog_compiler_pic= 7407lt_prog_compiler_static= 7408 7409{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7410echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7411 7412 if test "$GCC" = yes; then 7413 lt_prog_compiler_wl='-Wl,' 7414 lt_prog_compiler_static='-static' 7415 7416 case $host_os in 7417 aix*) 7418 # All AIX code is PIC. 7419 if test "$host_cpu" = ia64; then 7420 # AIX 5 now supports IA64 processor 7421 lt_prog_compiler_static='-Bstatic' 7422 fi 7423 ;; 7424 7425 amigaos*) 7426 # FIXME: we need at least 68020 code to build shared libraries, but 7427 # adding the `-m68020' flag to GCC prevents building anything better, 7428 # like `-m68040'. 7429 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7430 ;; 7431 7432 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7433 # PIC is the default for these OSes. 7434 ;; 7435 7436 mingw* | pw32* | os2*) 7437 # This hack is so that the source file can tell whether it is being 7438 # built for inclusion in a dll (and should export symbols for example). 7439 lt_prog_compiler_pic='-DDLL_EXPORT' 7440 ;; 7441 7442 darwin* | rhapsody*) 7443 # PIC is the default on this platform 7444 # Common symbols not allowed in MH_DYLIB files 7445 lt_prog_compiler_pic='-fno-common' 7446 ;; 7447 7448 interix3*) 7449 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7450 # Instead, we relocate shared libraries at runtime. 7451 ;; 7452 7453 msdosdjgpp*) 7454 # Just because we use GCC doesn't mean we suddenly get shared libraries 7455 # on systems that don't support them. 7456 lt_prog_compiler_can_build_shared=no 7457 enable_shared=no 7458 ;; 7459 7460 sysv4*MP*) 7461 if test -d /usr/nec; then 7462 lt_prog_compiler_pic=-Kconform_pic 7463 fi 7464 ;; 7465 7466 hpux*) 7467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7468 # not for PA HP-UX. 7469 case $host_cpu in 7470 hppa*64*|ia64*) 7471 # +Z the default 7472 ;; 7473 *) 7474 lt_prog_compiler_pic='-fPIC' 7475 ;; 7476 esac 7477 ;; 7478 7479 *) 7480 lt_prog_compiler_pic='-fPIC' 7481 ;; 7482 esac 7483 else 7484 # PORTME Check for flag to pass linker flags through the system compiler. 7485 case $host_os in 7486 aix*) 7487 lt_prog_compiler_wl='-Wl,' 7488 if test "$host_cpu" = ia64; then 7489 # AIX 5 now supports IA64 processor 7490 lt_prog_compiler_static='-Bstatic' 7491 else 7492 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7493 fi 7494 ;; 7495 darwin*) 7496 # PIC is the default on this platform 7497 # Common symbols not allowed in MH_DYLIB files 7498 case $cc_basename in 7499 xlc*) 7500 lt_prog_compiler_pic='-qnocommon' 7501 lt_prog_compiler_wl='-Wl,' 7502 ;; 7503 esac 7504 ;; 7505 7506 mingw* | pw32* | os2*) 7507 # This hack is so that the source file can tell whether it is being 7508 # built for inclusion in a dll (and should export symbols for example). 7509 lt_prog_compiler_pic='-DDLL_EXPORT' 7510 ;; 7511 7512 hpux9* | hpux10* | hpux11*) 7513 lt_prog_compiler_wl='-Wl,' 7514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7515 # not for PA HP-UX. 7516 case $host_cpu in 7517 hppa*64*|ia64*) 7518 # +Z the default 7519 ;; 7520 *) 7521 lt_prog_compiler_pic='+Z' 7522 ;; 7523 esac 7524 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7525 lt_prog_compiler_static='${wl}-a ${wl}archive' 7526 ;; 7527 7528 irix5* | irix6* | nonstopux*) 7529 lt_prog_compiler_wl='-Wl,' 7530 # PIC (with -KPIC) is the default. 7531 lt_prog_compiler_static='-non_shared' 7532 ;; 7533 7534 newsos6) 7535 lt_prog_compiler_pic='-KPIC' 7536 lt_prog_compiler_static='-Bstatic' 7537 ;; 7538 7539 linux* | k*bsd*-gnu) 7540 case $cc_basename in 7541 icc* | ecc*) 7542 lt_prog_compiler_wl='-Wl,' 7543 lt_prog_compiler_pic='-KPIC' 7544 lt_prog_compiler_static='-static' 7545 ;; 7546 pgcc* | pgf77* | pgf90* | pgf95*) 7547 # Portland Group compilers (*not* the Pentium gcc compiler, 7548 # which looks to be a dead project) 7549 lt_prog_compiler_wl='-Wl,' 7550 lt_prog_compiler_pic='-fpic' 7551 lt_prog_compiler_static='-Bstatic' 7552 ;; 7553 ccc*) 7554 lt_prog_compiler_wl='-Wl,' 7555 # All Alpha code is PIC. 7556 lt_prog_compiler_static='-non_shared' 7557 ;; 7558 esac 7559 ;; 7560 7561 osf3* | osf4* | osf5*) 7562 lt_prog_compiler_wl='-Wl,' 7563 # All OSF/1 code is PIC. 7564 lt_prog_compiler_static='-non_shared' 7565 ;; 7566 7567 solaris*) 7568 lt_prog_compiler_pic='-KPIC' 7569 lt_prog_compiler_static='-Bstatic' 7570 case $cc_basename in 7571 f77* | f90* | f95*) 7572 lt_prog_compiler_wl='-Qoption ld ';; 7573 *) 7574 lt_prog_compiler_wl='-Wl,';; 7575 esac 7576 ;; 7577 7578 sunos4*) 7579 lt_prog_compiler_wl='-Qoption ld ' 7580 lt_prog_compiler_pic='-PIC' 7581 lt_prog_compiler_static='-Bstatic' 7582 ;; 7583 7584 sysv4 | sysv4.2uw2* | sysv4.3*) 7585 lt_prog_compiler_wl='-Wl,' 7586 lt_prog_compiler_pic='-KPIC' 7587 lt_prog_compiler_static='-Bstatic' 7588 ;; 7589 7590 sysv4*MP*) 7591 if test -d /usr/nec ;then 7592 lt_prog_compiler_pic='-Kconform_pic' 7593 lt_prog_compiler_static='-Bstatic' 7594 fi 7595 ;; 7596 7597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7598 lt_prog_compiler_wl='-Wl,' 7599 lt_prog_compiler_pic='-KPIC' 7600 lt_prog_compiler_static='-Bstatic' 7601 ;; 7602 7603 unicos*) 7604 lt_prog_compiler_wl='-Wl,' 7605 lt_prog_compiler_can_build_shared=no 7606 ;; 7607 7608 uts4*) 7609 lt_prog_compiler_pic='-pic' 7610 lt_prog_compiler_static='-Bstatic' 7611 ;; 7612 7613 *) 7614 lt_prog_compiler_can_build_shared=no 7615 ;; 7616 esac 7617 fi 7618 7619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7620echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7621 7622# 7623# Check to make sure the PIC flag actually works. 7624# 7625if test -n "$lt_prog_compiler_pic"; then 7626 7627{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7628echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7629if test "${lt_prog_compiler_pic_works+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631else 7632 lt_prog_compiler_pic_works=no 7633 ac_outfile=conftest.$ac_objext 7634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7636 # Insert the option either (1) after the last *FLAGS variable, or 7637 # (2) before a word containing "conftest.", or (3) at the end. 7638 # Note that $ac_compile itself does not contain backslashes and begins 7639 # with a dollar sign (not a hyphen), so the echo should work correctly. 7640 # The option is referenced via a variable to avoid confusing sed. 7641 lt_compile=`echo "$ac_compile" | $SED \ 7642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7644 -e 's:$: $lt_compiler_flag:'` 7645 (eval echo "\"\$as_me:7645: $lt_compile\"" >&5) 7646 (eval "$lt_compile" 2>conftest.err) 7647 ac_status=$? 7648 cat conftest.err >&5 7649 echo "$as_me:7649: \$? = $ac_status" >&5 7650 if (exit $ac_status) && test -s "$ac_outfile"; then 7651 # The compiler can only warn and ignore the option if not recognized 7652 # So say no if there are warnings other than the usual output. 7653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7656 lt_prog_compiler_pic_works=yes 7657 fi 7658 fi 7659 $rm conftest* 7660 7661fi 7662{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7663echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7664 7665if test x"$lt_prog_compiler_pic_works" = xyes; then 7666 case $lt_prog_compiler_pic in 7667 "" | " "*) ;; 7668 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7669 esac 7670else 7671 lt_prog_compiler_pic= 7672 lt_prog_compiler_can_build_shared=no 7673fi 7674 7675fi 7676case $host_os in 7677 # For platforms which do not support PIC, -DPIC is meaningless: 7678 *djgpp*) 7679 lt_prog_compiler_pic= 7680 ;; 7681 *) 7682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7683 ;; 7684esac 7685 7686# 7687# Check to make sure the static flag actually works. 7688# 7689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7690{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7691echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7692if test "${lt_prog_compiler_static_works+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 lt_prog_compiler_static_works=no 7696 save_LDFLAGS="$LDFLAGS" 7697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7698 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7700 # The linker can only warn and ignore the option if not recognized 7701 # So say no if there are warnings 7702 if test -s conftest.err; then 7703 # Append any errors to the config.log. 7704 cat conftest.err 1>&5 7705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7707 if diff conftest.exp conftest.er2 >/dev/null; then 7708 lt_prog_compiler_static_works=yes 7709 fi 7710 else 7711 lt_prog_compiler_static_works=yes 7712 fi 7713 fi 7714 $rm conftest* 7715 LDFLAGS="$save_LDFLAGS" 7716 7717fi 7718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7719echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7720 7721if test x"$lt_prog_compiler_static_works" = xyes; then 7722 : 7723else 7724 lt_prog_compiler_static= 7725fi 7726 7727 7728{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7730if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7731 echo $ECHO_N "(cached) $ECHO_C" >&6 7732else 7733 lt_cv_prog_compiler_c_o=no 7734 $rm -r conftest 2>/dev/null 7735 mkdir conftest 7736 cd conftest 7737 mkdir out 7738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7739 7740 lt_compiler_flag="-o out/conftest2.$ac_objext" 7741 # Insert the option either (1) after the last *FLAGS variable, or 7742 # (2) before a word containing "conftest.", or (3) at the end. 7743 # Note that $ac_compile itself does not contain backslashes and begins 7744 # with a dollar sign (not a hyphen), so the echo should work correctly. 7745 lt_compile=`echo "$ac_compile" | $SED \ 7746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7748 -e 's:$: $lt_compiler_flag:'` 7749 (eval echo "\"\$as_me:7749: $lt_compile\"" >&5) 7750 (eval "$lt_compile" 2>out/conftest.err) 7751 ac_status=$? 7752 cat out/conftest.err >&5 7753 echo "$as_me:7753: \$? = $ac_status" >&5 7754 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7755 then 7756 # The compiler can only warn and ignore the option if not recognized 7757 # So say no if there are warnings 7758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7761 lt_cv_prog_compiler_c_o=yes 7762 fi 7763 fi 7764 chmod u+w . 2>&5 7765 $rm conftest* 7766 # SGI C++ compiler will create directory out/ii_files/ for 7767 # template instantiation 7768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7769 $rm out/* && rmdir out 7770 cd .. 7771 rmdir conftest 7772 $rm conftest* 7773 7774fi 7775{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7776echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7777 7778 7779hard_links="nottested" 7780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7781 # do not overwrite the value of need_locks provided by the user 7782 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7784 hard_links=yes 7785 $rm conftest* 7786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7787 touch conftest.a 7788 ln conftest.a conftest.b 2>&5 || hard_links=no 7789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7790 { echo "$as_me:$LINENO: result: $hard_links" >&5 7791echo "${ECHO_T}$hard_links" >&6; } 7792 if test "$hard_links" = no; then 7793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7795 need_locks=warn 7796 fi 7797else 7798 need_locks=no 7799fi 7800 7801{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7803 7804 runpath_var= 7805 allow_undefined_flag= 7806 enable_shared_with_static_runtimes=no 7807 archive_cmds= 7808 archive_expsym_cmds= 7809 old_archive_From_new_cmds= 7810 old_archive_from_expsyms_cmds= 7811 export_dynamic_flag_spec= 7812 whole_archive_flag_spec= 7813 thread_safe_flag_spec= 7814 hardcode_libdir_flag_spec= 7815 hardcode_libdir_flag_spec_ld= 7816 hardcode_libdir_separator= 7817 hardcode_direct=no 7818 hardcode_minus_L=no 7819 hardcode_shlibpath_var=unsupported 7820 link_all_deplibs=unknown 7821 hardcode_automatic=no 7822 module_cmds= 7823 module_expsym_cmds= 7824 always_export_symbols=no 7825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7826 # include_expsyms should be a list of space-separated symbols to be *always* 7827 # included in the symbol list 7828 include_expsyms= 7829 # exclude_expsyms can be an extended regexp of symbols to exclude 7830 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7832 # as well as any symbol that contains `d'. 7833 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7835 # platforms (ab)use it in PIC code, but their linkers get confused if 7836 # the symbol is explicitly referenced. Since portable code cannot 7837 # rely on this symbol name, it's probably fine to never include it in 7838 # preloaded symbol tables. 7839 extract_expsyms_cmds= 7840 # Just being paranoid about ensuring that cc_basename is set. 7841 for cc_temp in $compiler""; do 7842 case $cc_temp in 7843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7845 \-*) ;; 7846 *) break;; 7847 esac 7848done 7849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7850 7851 case $host_os in 7852 cygwin* | mingw* | pw32*) 7853 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7854 # When not using gcc, we currently assume that we are using 7855 # Microsoft Visual C++. 7856 if test "$GCC" != yes; then 7857 with_gnu_ld=no 7858 fi 7859 ;; 7860 interix*) 7861 # we just hope/assume this is gcc and not c89 (= MSVC++) 7862 with_gnu_ld=yes 7863 ;; 7864 openbsd*) 7865 with_gnu_ld=no 7866 ;; 7867 esac 7868 7869 ld_shlibs=yes 7870 if test "$with_gnu_ld" = yes; then 7871 # If archive_cmds runs LD, not CC, wlarc should be empty 7872 wlarc='${wl}' 7873 7874 # Set some defaults for GNU ld with shared library support. These 7875 # are reset later if shared libraries are not supported. Putting them 7876 # here allows them to be overridden if necessary. 7877 runpath_var=LD_RUN_PATH 7878 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7879 export_dynamic_flag_spec='${wl}--export-dynamic' 7880 # ancient GNU ld didn't support --whole-archive et. al. 7881 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7882 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7883 else 7884 whole_archive_flag_spec= 7885 fi 7886 supports_anon_versioning=no 7887 case `$LD -v 2>/dev/null` in 7888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7891 *\ 2.11.*) ;; # other 2.11 versions 7892 *) supports_anon_versioning=yes ;; 7893 esac 7894 7895 # See if GNU ld supports shared libraries. 7896 case $host_os in 7897 aix3* | aix4* | aix5*) 7898 # On AIX/PPC, the GNU linker is very broken 7899 if test "$host_cpu" != ia64; then 7900 ld_shlibs=no 7901 cat <<EOF 1>&2 7902 7903*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7904*** to be unable to reliably create shared libraries on AIX. 7905*** Therefore, libtool is disabling shared libraries support. If you 7906*** really care for shared libraries, you may want to modify your PATH 7907*** so that a non-GNU linker is found, and then restart. 7908 7909EOF 7910 fi 7911 ;; 7912 7913 amigaos*) 7914 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)' 7915 hardcode_libdir_flag_spec='-L$libdir' 7916 hardcode_minus_L=yes 7917 7918 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7919 # that the semantics of dynamic libraries on AmigaOS, at least up 7920 # to version 4, is to share data among multiple programs linked 7921 # with the same dynamic library. Since this doesn't match the 7922 # behavior of shared libraries on other platforms, we can't use 7923 # them. 7924 ld_shlibs=no 7925 ;; 7926 7927 beos*) 7928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7929 allow_undefined_flag=unsupported 7930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7931 # support --undefined. This deserves some investigation. FIXME 7932 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7933 else 7934 ld_shlibs=no 7935 fi 7936 ;; 7937 7938 cygwin* | mingw* | pw32*) 7939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7940 # as there is no search path for DLLs. 7941 hardcode_libdir_flag_spec='-L$libdir' 7942 allow_undefined_flag=unsupported 7943 always_export_symbols=no 7944 enable_shared_with_static_runtimes=yes 7945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7946 7947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7949 # If the export-symbols file already is a .def file (1st line 7950 # is EXPORTS), use it as is; otherwise, prepend... 7951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7952 cp $export_symbols $output_objdir/$soname.def; 7953 else 7954 echo EXPORTS > $output_objdir/$soname.def; 7955 cat $export_symbols >> $output_objdir/$soname.def; 7956 fi~ 7957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7958 else 7959 ld_shlibs=no 7960 fi 7961 ;; 7962 7963 interix3*) 7964 hardcode_direct=no 7965 hardcode_shlibpath_var=no 7966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7967 export_dynamic_flag_spec='${wl}-E' 7968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7969 # Instead, shared libraries are loaded at an image base (0x10000000 by 7970 # default) and relocated if they conflict, which is a slow very memory 7971 # consuming and fragmenting process. To avoid this, we pick a random, 7972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7973 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7975 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' 7976 ;; 7977 7978 linux* | k*bsd*-gnu) 7979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7980 tmp_addflag= 7981 case $cc_basename,$host_cpu in 7982 pgcc*) # Portland Group C compiler 7983 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' 7984 tmp_addflag=' $pic_flag' 7985 ;; 7986 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7987 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' 7988 tmp_addflag=' $pic_flag -Mnomain' ;; 7989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7990 tmp_addflag=' -i_dynamic' ;; 7991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7992 tmp_addflag=' -i_dynamic -nofor_main' ;; 7993 ifc* | ifort*) # Intel Fortran compiler 7994 tmp_addflag=' -nofor_main' ;; 7995 esac 7996 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7997 7998 if test $supports_anon_versioning = yes; then 7999 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8001 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8002 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8003 fi 8004 link_all_deplibs=no 8005 else 8006 ld_shlibs=no 8007 fi 8008 ;; 8009 8010 netbsd* | netbsdelf*-gnu) 8011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8012 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8013 wlarc= 8014 else 8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8017 fi 8018 ;; 8019 8020 solaris*) 8021 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8022 ld_shlibs=no 8023 cat <<EOF 1>&2 8024 8025*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8026*** create shared libraries on Solaris systems. Therefore, libtool 8027*** is disabling shared libraries support. We urge you to upgrade GNU 8028*** binutils to release 2.9.1 or newer. Another option is to modify 8029*** your PATH or compiler configuration so that the native linker is 8030*** used, and then restart. 8031 8032EOF 8033 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8036 else 8037 ld_shlibs=no 8038 fi 8039 ;; 8040 8041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8042 case `$LD -v 2>&1` in 8043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8044 ld_shlibs=no 8045 cat <<_LT_EOF 1>&2 8046 8047*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8048*** reliably create shared libraries on SCO systems. Therefore, libtool 8049*** is disabling shared libraries support. We urge you to upgrade GNU 8050*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8051*** your PATH or compiler configuration so that the native linker is 8052*** used, and then restart. 8053 8054_LT_EOF 8055 ;; 8056 *) 8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8058 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8061 else 8062 ld_shlibs=no 8063 fi 8064 ;; 8065 esac 8066 ;; 8067 8068 sunos4*) 8069 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8070 wlarc= 8071 hardcode_direct=yes 8072 hardcode_shlibpath_var=no 8073 ;; 8074 8075 *) 8076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8079 else 8080 ld_shlibs=no 8081 fi 8082 ;; 8083 esac 8084 8085 if test "$ld_shlibs" = no; then 8086 runpath_var= 8087 hardcode_libdir_flag_spec= 8088 export_dynamic_flag_spec= 8089 whole_archive_flag_spec= 8090 fi 8091 else 8092 # PORTME fill in a description of your system's linker (not GNU ld) 8093 case $host_os in 8094 aix3*) 8095 allow_undefined_flag=unsupported 8096 always_export_symbols=yes 8097 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' 8098 # Note: this linker hardcodes the directories in LIBPATH if there 8099 # are no directories specified by -L. 8100 hardcode_minus_L=yes 8101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8102 # Neither direct hardcoding nor static linking is supported with a 8103 # broken collect2. 8104 hardcode_direct=unsupported 8105 fi 8106 ;; 8107 8108 aix4* | aix5*) 8109 if test "$host_cpu" = ia64; then 8110 # On IA64, the linker does run time linking by default, so we don't 8111 # have to do anything special. 8112 aix_use_runtimelinking=no 8113 exp_sym_flag='-Bexport' 8114 no_entry_flag="" 8115 else 8116 # If we're using GNU nm, then we don't want the "-C" option. 8117 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8119 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' 8120 else 8121 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' 8122 fi 8123 aix_use_runtimelinking=no 8124 8125 # Test if we are trying to use run time linking or normal 8126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8127 # need to do runtime linking. 8128 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8129 for ld_flag in $LDFLAGS; do 8130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8131 aix_use_runtimelinking=yes 8132 break 8133 fi 8134 done 8135 ;; 8136 esac 8137 8138 exp_sym_flag='-bexport' 8139 no_entry_flag='-bnoentry' 8140 fi 8141 8142 # When large executables or shared objects are built, AIX ld can 8143 # have problems creating the table of contents. If linking a library 8144 # or program results in "error TOC overflow" add -mminimal-toc to 8145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8147 8148 archive_cmds='' 8149 hardcode_direct=yes 8150 hardcode_libdir_separator=':' 8151 link_all_deplibs=yes 8152 8153 if test "$GCC" = yes; then 8154 case $host_os in aix4.[012]|aix4.[012].*) 8155 # We only want to do this on AIX 4.2 and lower, the check 8156 # below for broken collect2 doesn't work under 4.3+ 8157 collect2name=`${CC} -print-prog-name=collect2` 8158 if test -f "$collect2name" && \ 8159 strings "$collect2name" | grep resolve_lib_name >/dev/null 8160 then 8161 # We have reworked collect2 8162 hardcode_direct=yes 8163 else 8164 # We have old collect2 8165 hardcode_direct=unsupported 8166 # It fails to find uninstalled libraries when the uninstalled 8167 # path is not listed in the libpath. Setting hardcode_minus_L 8168 # to unsupported forces relinking 8169 hardcode_minus_L=yes 8170 hardcode_libdir_flag_spec='-L$libdir' 8171 hardcode_libdir_separator= 8172 fi 8173 ;; 8174 esac 8175 shared_flag='-shared' 8176 if test "$aix_use_runtimelinking" = yes; then 8177 shared_flag="$shared_flag "'${wl}-G' 8178 fi 8179 else 8180 # not using gcc 8181 if test "$host_cpu" = ia64; then 8182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8183 # chokes on -Wl,-G. The following line is correct: 8184 shared_flag='-G' 8185 else 8186 if test "$aix_use_runtimelinking" = yes; then 8187 shared_flag='${wl}-G' 8188 else 8189 shared_flag='${wl}-bM:SRE' 8190 fi 8191 fi 8192 fi 8193 8194 # It seems that -bexpall does not export symbols beginning with 8195 # underscore (_), so it is better to generate a list of symbols to export. 8196 always_export_symbols=yes 8197 if test "$aix_use_runtimelinking" = yes; then 8198 # Warning - without using the other runtime loading flags (-brtl), 8199 # -berok will link without error, but may produce a broken library. 8200 allow_undefined_flag='-berok' 8201 # Determine the default libpath from the value encoded in an empty executable. 8202 cat >conftest.$ac_ext <<_ACEOF 8203/* confdefs.h. */ 8204_ACEOF 8205cat confdefs.h >>conftest.$ac_ext 8206cat >>conftest.$ac_ext <<_ACEOF 8207/* end confdefs.h. */ 8208 8209int 8210main () 8211{ 8212 8213 ; 8214 return 0; 8215} 8216_ACEOF 8217rm -f conftest.$ac_objext conftest$ac_exeext 8218if { (ac_try="$ac_link" 8219case "(($ac_try" in 8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8221 *) ac_try_echo=$ac_try;; 8222esac 8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8224 (eval "$ac_link") 2>conftest.er1 8225 ac_status=$? 8226 grep -v '^ *+' conftest.er1 >conftest.err 8227 rm -f conftest.er1 8228 cat conftest.err >&5 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); } && 8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8232 { (case "(($ac_try" in 8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8234 *) ac_try_echo=$ac_try;; 8235esac 8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8237 (eval "$ac_try") 2>&5 8238 ac_status=$? 8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8240 (exit $ac_status); }; } && 8241 { ac_try='test -s conftest$ac_exeext' 8242 { (case "(($ac_try" in 8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8244 *) ac_try_echo=$ac_try;; 8245esac 8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8247 (eval "$ac_try") 2>&5 8248 ac_status=$? 8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8250 (exit $ac_status); }; }; then 8251 8252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8253}'` 8254# Check for a 64-bit object if we didn't find anything. 8255if 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; } 8256}'`; fi 8257else 8258 echo "$as_me: failed program was:" >&5 8259sed 's/^/| /' conftest.$ac_ext >&5 8260 8261 8262fi 8263 8264rm -f core conftest.err conftest.$ac_objext \ 8265 conftest$ac_exeext conftest.$ac_ext 8266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8267 8268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8269 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" 8270 else 8271 if test "$host_cpu" = ia64; then 8272 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8273 allow_undefined_flag="-z nodefs" 8274 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" 8275 else 8276 # Determine the default libpath from the value encoded in an empty executable. 8277 cat >conftest.$ac_ext <<_ACEOF 8278/* confdefs.h. */ 8279_ACEOF 8280cat confdefs.h >>conftest.$ac_ext 8281cat >>conftest.$ac_ext <<_ACEOF 8282/* end confdefs.h. */ 8283 8284int 8285main () 8286{ 8287 8288 ; 8289 return 0; 8290} 8291_ACEOF 8292rm -f conftest.$ac_objext conftest$ac_exeext 8293if { (ac_try="$ac_link" 8294case "(($ac_try" in 8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8296 *) ac_try_echo=$ac_try;; 8297esac 8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8299 (eval "$ac_link") 2>conftest.er1 8300 ac_status=$? 8301 grep -v '^ *+' conftest.er1 >conftest.err 8302 rm -f conftest.er1 8303 cat conftest.err >&5 8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8305 (exit $ac_status); } && 8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8307 { (case "(($ac_try" in 8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8309 *) ac_try_echo=$ac_try;; 8310esac 8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8312 (eval "$ac_try") 2>&5 8313 ac_status=$? 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8315 (exit $ac_status); }; } && 8316 { ac_try='test -s conftest$ac_exeext' 8317 { (case "(($ac_try" in 8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8319 *) ac_try_echo=$ac_try;; 8320esac 8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8322 (eval "$ac_try") 2>&5 8323 ac_status=$? 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8325 (exit $ac_status); }; }; then 8326 8327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8328}'` 8329# Check for a 64-bit object if we didn't find anything. 8330if 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; } 8331}'`; fi 8332else 8333 echo "$as_me: failed program was:" >&5 8334sed 's/^/| /' conftest.$ac_ext >&5 8335 8336 8337fi 8338 8339rm -f core conftest.err conftest.$ac_objext \ 8340 conftest$ac_exeext conftest.$ac_ext 8341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8342 8343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8344 # Warning - without using the other run time loading flags, 8345 # -berok will link without error, but may produce a broken library. 8346 no_undefined_flag=' ${wl}-bernotok' 8347 allow_undefined_flag=' ${wl}-berok' 8348 # Exported symbols can be pulled into shared objects from archives 8349 whole_archive_flag_spec='$convenience' 8350 archive_cmds_need_lc=yes 8351 # This is similar to how AIX traditionally builds its shared libraries. 8352 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' 8353 fi 8354 fi 8355 ;; 8356 8357 amigaos*) 8358 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)' 8359 hardcode_libdir_flag_spec='-L$libdir' 8360 hardcode_minus_L=yes 8361 # see comment about different semantics on the GNU ld section 8362 ld_shlibs=no 8363 ;; 8364 8365 bsdi[45]*) 8366 export_dynamic_flag_spec=-rdynamic 8367 ;; 8368 8369 cygwin* | mingw* | pw32*) 8370 # When not using gcc, we currently assume that we are using 8371 # Microsoft Visual C++. 8372 # hardcode_libdir_flag_spec is actually meaningless, as there is 8373 # no search path for DLLs. 8374 hardcode_libdir_flag_spec=' ' 8375 allow_undefined_flag=unsupported 8376 # Tell ltmain to make .lib files, not .a files. 8377 libext=lib 8378 # Tell ltmain to make .dll files, not .so files. 8379 shrext_cmds=".dll" 8380 # FIXME: Setting linknames here is a bad hack. 8381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8382 # The linker will automatically build a .lib file if we build a DLL. 8383 old_archive_From_new_cmds='true' 8384 # FIXME: Should let the user specify the lib program. 8385 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8386 fix_srcfile_path='`cygpath -w "$srcfile"`' 8387 enable_shared_with_static_runtimes=yes 8388 ;; 8389 8390 darwin* | rhapsody*) 8391 case $host_os in 8392 rhapsody* | darwin1.[012]) 8393 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8394 ;; 8395 *) # Darwin 1.3 on 8396 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8397 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8398 else 8399 case ${MACOSX_DEPLOYMENT_TARGET} in 8400 10.[012]) 8401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8402 ;; 8403 10.*) 8404 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8405 ;; 8406 esac 8407 fi 8408 ;; 8409 esac 8410 archive_cmds_need_lc=no 8411 hardcode_direct=no 8412 hardcode_automatic=yes 8413 hardcode_shlibpath_var=unsupported 8414 whole_archive_flag_spec='' 8415 link_all_deplibs=yes 8416 if test "$GCC" = yes ; then 8417 output_verbose_link_cmd='echo' 8418 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8419 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8421 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}' 8422 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}' 8423 else 8424 case $cc_basename in 8425 xlc*) 8426 output_verbose_link_cmd='echo' 8427 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8430 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}' 8431 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}' 8432 ;; 8433 *) 8434 ld_shlibs=no 8435 ;; 8436 esac 8437 fi 8438 ;; 8439 8440 dgux*) 8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8442 hardcode_libdir_flag_spec='-L$libdir' 8443 hardcode_shlibpath_var=no 8444 ;; 8445 8446 freebsd1*) 8447 ld_shlibs=no 8448 ;; 8449 8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8451 # support. Future versions do this automatically, but an explicit c++rt0.o 8452 # does not break anything, and helps significantly (at the cost of a little 8453 # extra space). 8454 freebsd2.2*) 8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8456 hardcode_libdir_flag_spec='-R$libdir' 8457 hardcode_direct=yes 8458 hardcode_shlibpath_var=no 8459 ;; 8460 8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8462 freebsd2*) 8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8464 hardcode_direct=yes 8465 hardcode_minus_L=yes 8466 hardcode_shlibpath_var=no 8467 ;; 8468 8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8470 freebsd* | dragonfly*) 8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8472 hardcode_libdir_flag_spec='-R$libdir' 8473 hardcode_direct=yes 8474 hardcode_shlibpath_var=no 8475 ;; 8476 8477 hpux9*) 8478 if test "$GCC" = yes; then 8479 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' 8480 else 8481 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' 8482 fi 8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8484 hardcode_libdir_separator=: 8485 hardcode_direct=yes 8486 8487 # hardcode_minus_L: Not really in the search PATH, 8488 # but as the default location of the library. 8489 hardcode_minus_L=yes 8490 export_dynamic_flag_spec='${wl}-E' 8491 ;; 8492 8493 hpux10*) 8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8496 else 8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8498 fi 8499 if test "$with_gnu_ld" = no; then 8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8501 hardcode_libdir_separator=: 8502 8503 hardcode_direct=yes 8504 export_dynamic_flag_spec='${wl}-E' 8505 8506 # hardcode_minus_L: Not really in the search PATH, 8507 # but as the default location of the library. 8508 hardcode_minus_L=yes 8509 fi 8510 ;; 8511 8512 hpux11*) 8513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8514 case $host_cpu in 8515 hppa*64*) 8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8517 ;; 8518 ia64*) 8519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8520 ;; 8521 *) 8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8523 ;; 8524 esac 8525 else 8526 case $host_cpu in 8527 hppa*64*) 8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8529 ;; 8530 ia64*) 8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8532 ;; 8533 *) 8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8535 ;; 8536 esac 8537 fi 8538 if test "$with_gnu_ld" = no; then 8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8540 hardcode_libdir_separator=: 8541 8542 case $host_cpu in 8543 hppa*64*|ia64*) 8544 hardcode_libdir_flag_spec_ld='+b $libdir' 8545 hardcode_direct=no 8546 hardcode_shlibpath_var=no 8547 ;; 8548 *) 8549 hardcode_direct=yes 8550 export_dynamic_flag_spec='${wl}-E' 8551 8552 # hardcode_minus_L: Not really in the search PATH, 8553 # but as the default location of the library. 8554 hardcode_minus_L=yes 8555 ;; 8556 esac 8557 fi 8558 ;; 8559 8560 irix5* | irix6* | nonstopux*) 8561 if test "$GCC" = yes; then 8562 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' 8563 else 8564 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' 8565 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8566 fi 8567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8568 hardcode_libdir_separator=: 8569 link_all_deplibs=yes 8570 ;; 8571 8572 netbsd* | netbsdelf*-gnu) 8573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8575 else 8576 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8577 fi 8578 hardcode_libdir_flag_spec='-R$libdir' 8579 hardcode_direct=yes 8580 hardcode_shlibpath_var=no 8581 ;; 8582 8583 newsos6) 8584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8585 hardcode_direct=yes 8586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8587 hardcode_libdir_separator=: 8588 hardcode_shlibpath_var=no 8589 ;; 8590 8591 openbsd*) 8592 hardcode_direct=yes 8593 hardcode_shlibpath_var=no 8594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8598 export_dynamic_flag_spec='${wl}-E' 8599 else 8600 case $host_os in 8601 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8603 hardcode_libdir_flag_spec='-R$libdir' 8604 ;; 8605 *) 8606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8608 ;; 8609 esac 8610 fi 8611 ;; 8612 8613 os2*) 8614 hardcode_libdir_flag_spec='-L$libdir' 8615 hardcode_minus_L=yes 8616 allow_undefined_flag=unsupported 8617 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' 8618 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8619 ;; 8620 8621 osf3*) 8622 if test "$GCC" = yes; then 8623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8624 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' 8625 else 8626 allow_undefined_flag=' -expect_unresolved \*' 8627 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' 8628 fi 8629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8630 hardcode_libdir_separator=: 8631 ;; 8632 8633 osf4* | osf5*) # as osf3* with the addition of -msym flag 8634 if test "$GCC" = yes; then 8635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8636 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' 8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8638 else 8639 allow_undefined_flag=' -expect_unresolved \*' 8640 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' 8641 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8642 $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' 8643 8644 # Both c and cxx compiler support -rpath directly 8645 hardcode_libdir_flag_spec='-rpath $libdir' 8646 fi 8647 hardcode_libdir_separator=: 8648 ;; 8649 8650 solaris*) 8651 no_undefined_flag=' -z text' 8652 if test "$GCC" = yes; then 8653 wlarc='${wl}' 8654 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8656 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8657 else 8658 wlarc='' 8659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8662 fi 8663 hardcode_libdir_flag_spec='-R$libdir' 8664 hardcode_shlibpath_var=no 8665 case $host_os in 8666 solaris2.[0-5] | solaris2.[0-5].*) ;; 8667 *) 8668 # The compiler driver will combine linker options so we 8669 # cannot just pass the convience library names through 8670 # without $wl, iff we do not link with $LD. 8671 # Luckily, gcc supports the same syntax we need for Sun Studio. 8672 # Supported since Solaris 2.6 (maybe 2.5.1?) 8673 case $wlarc in 8674 '') 8675 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8676 *) 8677 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' ;; 8678 esac ;; 8679 esac 8680 link_all_deplibs=yes 8681 ;; 8682 8683 sunos4*) 8684 if test "x$host_vendor" = xsequent; then 8685 # Use $CC to link under sequent, because it throws in some extra .o 8686 # files that make .init and .fini sections work. 8687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8688 else 8689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8690 fi 8691 hardcode_libdir_flag_spec='-L$libdir' 8692 hardcode_direct=yes 8693 hardcode_minus_L=yes 8694 hardcode_shlibpath_var=no 8695 ;; 8696 8697 sysv4) 8698 case $host_vendor in 8699 sni) 8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8701 hardcode_direct=yes # is this really true??? 8702 ;; 8703 siemens) 8704 ## LD is ld it makes a PLAMLIB 8705 ## CC just makes a GrossModule. 8706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8707 reload_cmds='$CC -r -o $output$reload_objs' 8708 hardcode_direct=no 8709 ;; 8710 motorola) 8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8713 ;; 8714 esac 8715 runpath_var='LD_RUN_PATH' 8716 hardcode_shlibpath_var=no 8717 ;; 8718 8719 sysv4.3*) 8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8721 hardcode_shlibpath_var=no 8722 export_dynamic_flag_spec='-Bexport' 8723 ;; 8724 8725 sysv4*MP*) 8726 if test -d /usr/nec; then 8727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8728 hardcode_shlibpath_var=no 8729 runpath_var=LD_RUN_PATH 8730 hardcode_runpath_var=yes 8731 ld_shlibs=yes 8732 fi 8733 ;; 8734 8735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8736 no_undefined_flag='${wl}-z,text' 8737 archive_cmds_need_lc=no 8738 hardcode_shlibpath_var=no 8739 runpath_var='LD_RUN_PATH' 8740 8741 if test "$GCC" = yes; then 8742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8744 else 8745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8747 fi 8748 ;; 8749 8750 sysv5* | sco3.2v5* | sco5v6*) 8751 # Note: We can NOT use -z defs as we might desire, because we do not 8752 # link with -lc, and that would cause any symbols used from libc to 8753 # always be unresolved, which means just about no library would 8754 # ever link correctly. If we're not using GNU ld we use -z text 8755 # though, which does catch some bad symbols but isn't as heavy-handed 8756 # as -z defs. 8757 no_undefined_flag='${wl}-z,text' 8758 allow_undefined_flag='${wl}-z,nodefs' 8759 archive_cmds_need_lc=no 8760 hardcode_shlibpath_var=no 8761 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8762 hardcode_libdir_separator=':' 8763 link_all_deplibs=yes 8764 export_dynamic_flag_spec='${wl}-Bexport' 8765 runpath_var='LD_RUN_PATH' 8766 8767 if test "$GCC" = yes; then 8768 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8770 else 8771 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8773 fi 8774 ;; 8775 8776 uts4*) 8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8778 hardcode_libdir_flag_spec='-L$libdir' 8779 hardcode_shlibpath_var=no 8780 ;; 8781 8782 *) 8783 ld_shlibs=no 8784 ;; 8785 esac 8786 fi 8787 8788{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8789echo "${ECHO_T}$ld_shlibs" >&6; } 8790test "$ld_shlibs" = no && can_build_shared=no 8791 8792# 8793# Do we need to explicitly link libc? 8794# 8795case "x$archive_cmds_need_lc" in 8796x|xyes) 8797 # Assume -lc should be added 8798 archive_cmds_need_lc=yes 8799 8800 if test "$enable_shared" = yes && test "$GCC" = yes; then 8801 case $archive_cmds in 8802 *'~'*) 8803 # FIXME: we may have to deal with multi-command sequences. 8804 ;; 8805 '$CC '*) 8806 # Test whether the compiler implicitly links with -lc since on some 8807 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8808 # to ld, don't add -lc before -lgcc. 8809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8811 $rm conftest* 8812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8813 8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8815 (eval $ac_compile) 2>&5 8816 ac_status=$? 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 (exit $ac_status); } 2>conftest.err; then 8819 soname=conftest 8820 lib=conftest 8821 libobjs=conftest.$ac_objext 8822 deplibs= 8823 wl=$lt_prog_compiler_wl 8824 pic_flag=$lt_prog_compiler_pic 8825 compiler_flags=-v 8826 linker_flags=-v 8827 verstring= 8828 output_objdir=. 8829 libname=conftest 8830 lt_save_allow_undefined_flag=$allow_undefined_flag 8831 allow_undefined_flag= 8832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8833 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8834 ac_status=$? 8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8836 (exit $ac_status); } 8837 then 8838 archive_cmds_need_lc=no 8839 else 8840 archive_cmds_need_lc=yes 8841 fi 8842 allow_undefined_flag=$lt_save_allow_undefined_flag 8843 else 8844 cat conftest.err 1>&5 8845 fi 8846 $rm conftest* 8847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8848echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8849 ;; 8850 esac 8851 fi 8852 ;; 8853esac 8854 8855{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8856echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8857library_names_spec= 8858libname_spec='lib$name' 8859soname_spec= 8860shrext_cmds=".so" 8861postinstall_cmds= 8862postuninstall_cmds= 8863finish_cmds= 8864finish_eval= 8865shlibpath_var= 8866shlibpath_overrides_runpath=unknown 8867version_type=none 8868dynamic_linker="$host_os ld.so" 8869sys_lib_dlsearch_path_spec="/lib /usr/lib" 8870if test "$GCC" = yes; then 8871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8873 # if the path contains ";" then we assume it to be the separator 8874 # otherwise default to the standard path separator (i.e. ":") - it is 8875 # assumed that no part of a normal pathname contains ";" but that should 8876 # okay in the real world where ";" in dirpaths is itself problematic. 8877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8878 else 8879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8880 fi 8881else 8882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8883fi 8884need_lib_prefix=unknown 8885hardcode_into_libs=no 8886 8887# when you set need_version to no, make sure it does not cause -set_version 8888# flags to be left without arguments 8889need_version=unknown 8890 8891case $host_os in 8892aix3*) 8893 version_type=linux 8894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8895 shlibpath_var=LIBPATH 8896 8897 # AIX 3 has no versioning support, so we append a major version to the name. 8898 soname_spec='${libname}${release}${shared_ext}$major' 8899 ;; 8900 8901aix4* | aix5*) 8902 version_type=linux 8903 need_lib_prefix=no 8904 need_version=no 8905 hardcode_into_libs=yes 8906 if test "$host_cpu" = ia64; then 8907 # AIX 5 supports IA64 8908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8909 shlibpath_var=LD_LIBRARY_PATH 8910 else 8911 # With GCC up to 2.95.x, collect2 would create an import file 8912 # for dependence libraries. The import file would start with 8913 # the line `#! .'. This would cause the generated library to 8914 # depend on `.', always an invalid library. This was fixed in 8915 # development snapshots of GCC prior to 3.0. 8916 case $host_os in 8917 aix4 | aix4.[01] | aix4.[01].*) 8918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8919 echo ' yes ' 8920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8921 : 8922 else 8923 can_build_shared=no 8924 fi 8925 ;; 8926 esac 8927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8928 # soname into executable. Probably we can add versioning support to 8929 # collect2, so additional links can be useful in future. 8930 if test "$aix_use_runtimelinking" = yes; then 8931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8932 # instead of lib<name>.a to let people know that these are not 8933 # typical AIX shared libraries. 8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8935 else 8936 # We preserve .a as extension for shared libraries through AIX4.2 8937 # and later when we are not doing run time linking. 8938 library_names_spec='${libname}${release}.a $libname.a' 8939 soname_spec='${libname}${release}${shared_ext}$major' 8940 fi 8941 shlibpath_var=LIBPATH 8942 fi 8943 ;; 8944 8945amigaos*) 8946 library_names_spec='$libname.ixlibrary $libname.a' 8947 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8948 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' 8949 ;; 8950 8951beos*) 8952 library_names_spec='${libname}${shared_ext}' 8953 dynamic_linker="$host_os ld.so" 8954 shlibpath_var=LIBRARY_PATH 8955 ;; 8956 8957bsdi[45]*) 8958 version_type=linux 8959 need_version=no 8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8961 soname_spec='${libname}${release}${shared_ext}$major' 8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8963 shlibpath_var=LD_LIBRARY_PATH 8964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8966 # the default ld.so.conf also contains /usr/contrib/lib and 8967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8968 # libtool to hard-code these into programs 8969 ;; 8970 8971cygwin* | mingw* | pw32*) 8972 version_type=windows 8973 shrext_cmds=".dll" 8974 need_version=no 8975 need_lib_prefix=no 8976 8977 case $GCC,$host_os in 8978 yes,cygwin* | yes,mingw* | yes,pw32*) 8979 library_names_spec='$libname.dll.a' 8980 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8981 postinstall_cmds='base_file=`basename \${file}`~ 8982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8983 dldir=$destdir/`dirname \$dlpath`~ 8984 test -d \$dldir || mkdir -p \$dldir~ 8985 $install_prog $dir/$dlname \$dldir/$dlname~ 8986 chmod a+x \$dldir/$dlname' 8987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8988 dlpath=$dir/\$dldll~ 8989 $rm \$dlpath' 8990 shlibpath_overrides_runpath=yes 8991 8992 case $host_os in 8993 cygwin*) 8994 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8997 ;; 8998 mingw*) 8999 # MinGW DLLs use traditional 'lib' prefix 9000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9003 # It is most probably a Windows format PATH printed by 9004 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9005 # path with ; separators, and with drive letters. We can handle the 9006 # drive letters (cygwin fileutils understands them), so leave them, 9007 # especially as we might pass files found there to a mingw objdump, 9008 # which wouldn't understand a cygwinified path. Ahh. 9009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9010 else 9011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9012 fi 9013 ;; 9014 pw32*) 9015 # pw32 DLLs use 'pw' prefix rather than 'lib' 9016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9017 ;; 9018 esac 9019 ;; 9020 9021 *) 9022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9023 ;; 9024 esac 9025 dynamic_linker='Win32 ld.exe' 9026 # FIXME: first we should search . and the directory the executable is in 9027 shlibpath_var=PATH 9028 ;; 9029 9030darwin* | rhapsody*) 9031 dynamic_linker="$host_os dyld" 9032 version_type=darwin 9033 need_lib_prefix=no 9034 need_version=no 9035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9036 soname_spec='${libname}${release}${major}$shared_ext' 9037 shlibpath_overrides_runpath=yes 9038 shlibpath_var=DYLD_LIBRARY_PATH 9039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9041 if test "$GCC" = yes; then 9042 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"` 9043 else 9044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9045 fi 9046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9047 ;; 9048 9049dgux*) 9050 version_type=linux 9051 need_lib_prefix=no 9052 need_version=no 9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9054 soname_spec='${libname}${release}${shared_ext}$major' 9055 shlibpath_var=LD_LIBRARY_PATH 9056 ;; 9057 9058freebsd1*) 9059 dynamic_linker=no 9060 ;; 9061 9062freebsd* | dragonfly*) 9063 # DragonFly does not have aout. When/if they implement a new 9064 # versioning mechanism, adjust this. 9065 if test -x /usr/bin/objformat; then 9066 objformat=`/usr/bin/objformat` 9067 else 9068 case $host_os in 9069 freebsd[123]*) objformat=aout ;; 9070 *) objformat=elf ;; 9071 esac 9072 fi 9073 version_type=freebsd-$objformat 9074 case $version_type in 9075 freebsd-elf*) 9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9077 need_version=no 9078 need_lib_prefix=no 9079 ;; 9080 freebsd-*) 9081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9082 need_version=yes 9083 ;; 9084 esac 9085 shlibpath_var=LD_LIBRARY_PATH 9086 case $host_os in 9087 freebsd2*) 9088 shlibpath_overrides_runpath=yes 9089 ;; 9090 freebsd3.[01]* | freebsdelf3.[01]*) 9091 shlibpath_overrides_runpath=yes 9092 hardcode_into_libs=yes 9093 ;; 9094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9096 shlibpath_overrides_runpath=no 9097 hardcode_into_libs=yes 9098 ;; 9099 freebsd*) # from 4.6 on 9100 shlibpath_overrides_runpath=yes 9101 hardcode_into_libs=yes 9102 ;; 9103 esac 9104 ;; 9105 9106gnu*) 9107 version_type=linux 9108 need_lib_prefix=no 9109 need_version=no 9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9111 soname_spec='${libname}${release}${shared_ext}$major' 9112 shlibpath_var=LD_LIBRARY_PATH 9113 hardcode_into_libs=yes 9114 ;; 9115 9116hpux9* | hpux10* | hpux11*) 9117 # Give a soname corresponding to the major version so that dld.sl refuses to 9118 # link against other versions. 9119 version_type=sunos 9120 need_lib_prefix=no 9121 need_version=no 9122 case $host_cpu in 9123 ia64*) 9124 shrext_cmds='.so' 9125 hardcode_into_libs=yes 9126 dynamic_linker="$host_os dld.so" 9127 shlibpath_var=LD_LIBRARY_PATH 9128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9130 soname_spec='${libname}${release}${shared_ext}$major' 9131 if test "X$HPUX_IA64_MODE" = X32; then 9132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9133 else 9134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9135 fi 9136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9137 ;; 9138 hppa*64*) 9139 shrext_cmds='.sl' 9140 hardcode_into_libs=yes 9141 dynamic_linker="$host_os dld.sl" 9142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9145 soname_spec='${libname}${release}${shared_ext}$major' 9146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9148 ;; 9149 *) 9150 shrext_cmds='.sl' 9151 dynamic_linker="$host_os dld.sl" 9152 shlibpath_var=SHLIB_PATH 9153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9155 soname_spec='${libname}${release}${shared_ext}$major' 9156 ;; 9157 esac 9158 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9159 postinstall_cmds='chmod 555 $lib' 9160 ;; 9161 9162interix3*) 9163 version_type=linux 9164 need_lib_prefix=no 9165 need_version=no 9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9167 soname_spec='${libname}${release}${shared_ext}$major' 9168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9169 shlibpath_var=LD_LIBRARY_PATH 9170 shlibpath_overrides_runpath=no 9171 hardcode_into_libs=yes 9172 ;; 9173 9174irix5* | irix6* | nonstopux*) 9175 case $host_os in 9176 nonstopux*) version_type=nonstopux ;; 9177 *) 9178 if test "$lt_cv_prog_gnu_ld" = yes; then 9179 version_type=linux 9180 else 9181 version_type=irix 9182 fi ;; 9183 esac 9184 need_lib_prefix=no 9185 need_version=no 9186 soname_spec='${libname}${release}${shared_ext}$major' 9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9188 case $host_os in 9189 irix5* | nonstopux*) 9190 libsuff= shlibsuff= 9191 ;; 9192 *) 9193 case $LD in # libtool.m4 will add one of these switches to LD 9194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9195 libsuff= shlibsuff= libmagic=32-bit;; 9196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9197 libsuff=32 shlibsuff=N32 libmagic=N32;; 9198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9199 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9200 *) libsuff= shlibsuff= libmagic=never-match;; 9201 esac 9202 ;; 9203 esac 9204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9205 shlibpath_overrides_runpath=no 9206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9208 hardcode_into_libs=yes 9209 ;; 9210 9211# No shared lib support for Linux oldld, aout, or coff. 9212linux*oldld* | linux*aout* | linux*coff*) 9213 dynamic_linker=no 9214 ;; 9215 9216# This must be Linux ELF. 9217linux* | k*bsd*-gnu) 9218 version_type=linux 9219 need_lib_prefix=no 9220 need_version=no 9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9222 soname_spec='${libname}${release}${shared_ext}$major' 9223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9224 shlibpath_var=LD_LIBRARY_PATH 9225 shlibpath_overrides_runpath=no 9226 # This implies no fast_install, which is unacceptable. 9227 # Some rework will be needed to allow for fast_install 9228 # before this can be enabled. 9229 hardcode_into_libs=yes 9230 9231 # Append ld.so.conf contents to the search path 9232 if test -f /etc/ld.so.conf; then 9233 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' ' '` 9234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9235 fi 9236 9237 # We used to test for /lib/ld.so.1 and disable shared libraries on 9238 # powerpc, because MkLinux only supported shared libraries with the 9239 # GNU dynamic linker. Since this was broken with cross compilers, 9240 # most powerpc-linux boxes support dynamic linking these days and 9241 # people can always --disable-shared, the test was removed, and we 9242 # assume the GNU/Linux dynamic linker is in use. 9243 dynamic_linker='GNU/Linux ld.so' 9244 ;; 9245 9246netbsdelf*-gnu) 9247 version_type=linux 9248 need_lib_prefix=no 9249 need_version=no 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9251 soname_spec='${libname}${release}${shared_ext}$major' 9252 shlibpath_var=LD_LIBRARY_PATH 9253 shlibpath_overrides_runpath=no 9254 hardcode_into_libs=yes 9255 dynamic_linker='NetBSD ld.elf_so' 9256 ;; 9257 9258netbsd*) 9259 version_type=sunos 9260 need_lib_prefix=no 9261 need_version=no 9262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9265 dynamic_linker='NetBSD (a.out) ld.so' 9266 else 9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9268 soname_spec='${libname}${release}${shared_ext}$major' 9269 dynamic_linker='NetBSD ld.elf_so' 9270 fi 9271 shlibpath_var=LD_LIBRARY_PATH 9272 shlibpath_overrides_runpath=yes 9273 hardcode_into_libs=yes 9274 ;; 9275 9276newsos6) 9277 version_type=linux 9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9279 shlibpath_var=LD_LIBRARY_PATH 9280 shlibpath_overrides_runpath=yes 9281 ;; 9282 9283nto-qnx*) 9284 version_type=linux 9285 need_lib_prefix=no 9286 need_version=no 9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9288 soname_spec='${libname}${release}${shared_ext}$major' 9289 shlibpath_var=LD_LIBRARY_PATH 9290 shlibpath_overrides_runpath=yes 9291 ;; 9292 9293openbsd*) 9294 version_type=sunos 9295 sys_lib_dlsearch_path_spec="/usr/lib" 9296 need_lib_prefix=no 9297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9298 case $host_os in 9299 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9300 *) need_version=no ;; 9301 esac 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9304 shlibpath_var=LD_LIBRARY_PATH 9305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9306 case $host_os in 9307 openbsd2.[89] | openbsd2.[89].*) 9308 shlibpath_overrides_runpath=no 9309 ;; 9310 *) 9311 shlibpath_overrides_runpath=yes 9312 ;; 9313 esac 9314 else 9315 shlibpath_overrides_runpath=yes 9316 fi 9317 ;; 9318 9319os2*) 9320 libname_spec='$name' 9321 shrext_cmds=".dll" 9322 need_lib_prefix=no 9323 library_names_spec='$libname${shared_ext} $libname.a' 9324 dynamic_linker='OS/2 ld.exe' 9325 shlibpath_var=LIBPATH 9326 ;; 9327 9328osf3* | osf4* | osf5*) 9329 version_type=osf 9330 need_lib_prefix=no 9331 need_version=no 9332 soname_spec='${libname}${release}${shared_ext}$major' 9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9334 shlibpath_var=LD_LIBRARY_PATH 9335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9337 ;; 9338 9339solaris*) 9340 version_type=linux 9341 need_lib_prefix=no 9342 need_version=no 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9344 soname_spec='${libname}${release}${shared_ext}$major' 9345 shlibpath_var=LD_LIBRARY_PATH 9346 shlibpath_overrides_runpath=yes 9347 hardcode_into_libs=yes 9348 # ldd complains unless libraries are executable 9349 postinstall_cmds='chmod +x $lib' 9350 ;; 9351 9352sunos4*) 9353 version_type=sunos 9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9356 shlibpath_var=LD_LIBRARY_PATH 9357 shlibpath_overrides_runpath=yes 9358 if test "$with_gnu_ld" = yes; then 9359 need_lib_prefix=no 9360 fi 9361 need_version=yes 9362 ;; 9363 9364sysv4 | sysv4.3*) 9365 version_type=linux 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9367 soname_spec='${libname}${release}${shared_ext}$major' 9368 shlibpath_var=LD_LIBRARY_PATH 9369 case $host_vendor in 9370 sni) 9371 shlibpath_overrides_runpath=no 9372 need_lib_prefix=no 9373 export_dynamic_flag_spec='${wl}-Blargedynsym' 9374 runpath_var=LD_RUN_PATH 9375 ;; 9376 siemens) 9377 need_lib_prefix=no 9378 ;; 9379 motorola) 9380 need_lib_prefix=no 9381 need_version=no 9382 shlibpath_overrides_runpath=no 9383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9384 ;; 9385 esac 9386 ;; 9387 9388sysv4*MP*) 9389 if test -d /usr/nec ;then 9390 version_type=linux 9391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9392 soname_spec='$libname${shared_ext}.$major' 9393 shlibpath_var=LD_LIBRARY_PATH 9394 fi 9395 ;; 9396 9397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9398 version_type=freebsd-elf 9399 need_lib_prefix=no 9400 need_version=no 9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9402 soname_spec='${libname}${release}${shared_ext}$major' 9403 shlibpath_var=LD_LIBRARY_PATH 9404 hardcode_into_libs=yes 9405 if test "$with_gnu_ld" = yes; then 9406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9407 shlibpath_overrides_runpath=no 9408 else 9409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9410 shlibpath_overrides_runpath=yes 9411 case $host_os in 9412 sco3.2v5*) 9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9414 ;; 9415 esac 9416 fi 9417 sys_lib_dlsearch_path_spec='/usr/lib' 9418 ;; 9419 9420uts4*) 9421 version_type=linux 9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9423 soname_spec='${libname}${release}${shared_ext}$major' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 ;; 9426 9427*) 9428 dynamic_linker=no 9429 ;; 9430esac 9431{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9432echo "${ECHO_T}$dynamic_linker" >&6; } 9433test "$dynamic_linker" = no && can_build_shared=no 9434 9435variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9436if test "$GCC" = yes; then 9437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9438fi 9439 9440{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9442hardcode_action= 9443if test -n "$hardcode_libdir_flag_spec" || \ 9444 test -n "$runpath_var" || \ 9445 test "X$hardcode_automatic" = "Xyes" ; then 9446 9447 # We can hardcode non-existant directories. 9448 if test "$hardcode_direct" != no && 9449 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9450 # have to relink, otherwise we might link with an installed library 9451 # when we should be linking with a yet-to-be-installed one 9452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9453 test "$hardcode_minus_L" != no; then 9454 # Linking always hardcodes the temporary library directory. 9455 hardcode_action=relink 9456 else 9457 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9458 hardcode_action=immediate 9459 fi 9460else 9461 # We cannot hardcode anything, or else we can only hardcode existing 9462 # directories. 9463 hardcode_action=unsupported 9464fi 9465{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9466echo "${ECHO_T}$hardcode_action" >&6; } 9467 9468if test "$hardcode_action" = relink; then 9469 # Fast installation is not supported 9470 enable_fast_install=no 9471elif test "$shlibpath_overrides_runpath" = yes || 9472 test "$enable_shared" = no; then 9473 # Fast installation is not necessary 9474 enable_fast_install=needless 9475fi 9476 9477striplib= 9478old_striplib= 9479{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9480echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9481if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9482 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9483 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9484 { echo "$as_me:$LINENO: result: yes" >&5 9485echo "${ECHO_T}yes" >&6; } 9486else 9487# FIXME - insert some real tests, host_os isn't really good enough 9488 case $host_os in 9489 darwin*) 9490 if test -n "$STRIP" ; then 9491 striplib="$STRIP -x" 9492 { echo "$as_me:$LINENO: result: yes" >&5 9493echo "${ECHO_T}yes" >&6; } 9494 else 9495 { echo "$as_me:$LINENO: result: no" >&5 9496echo "${ECHO_T}no" >&6; } 9497fi 9498 ;; 9499 *) 9500 { echo "$as_me:$LINENO: result: no" >&5 9501echo "${ECHO_T}no" >&6; } 9502 ;; 9503 esac 9504fi 9505 9506if test "x$enable_dlopen" != xyes; then 9507 enable_dlopen=unknown 9508 enable_dlopen_self=unknown 9509 enable_dlopen_self_static=unknown 9510else 9511 lt_cv_dlopen=no 9512 lt_cv_dlopen_libs= 9513 9514 case $host_os in 9515 beos*) 9516 lt_cv_dlopen="load_add_on" 9517 lt_cv_dlopen_libs= 9518 lt_cv_dlopen_self=yes 9519 ;; 9520 9521 mingw* | pw32*) 9522 lt_cv_dlopen="LoadLibrary" 9523 lt_cv_dlopen_libs= 9524 ;; 9525 9526 cygwin*) 9527 lt_cv_dlopen="dlopen" 9528 lt_cv_dlopen_libs= 9529 ;; 9530 9531 darwin*) 9532 # if libdl is installed we need to link against it 9533 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9534echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9535if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9536 echo $ECHO_N "(cached) $ECHO_C" >&6 9537else 9538 ac_check_lib_save_LIBS=$LIBS 9539LIBS="-ldl $LIBS" 9540cat >conftest.$ac_ext <<_ACEOF 9541/* confdefs.h. */ 9542_ACEOF 9543cat confdefs.h >>conftest.$ac_ext 9544cat >>conftest.$ac_ext <<_ACEOF 9545/* end confdefs.h. */ 9546 9547/* Override any GCC internal prototype to avoid an error. 9548 Use char because int might match the return type of a GCC 9549 builtin and then its argument prototype would still apply. */ 9550#ifdef __cplusplus 9551extern "C" 9552#endif 9553char dlopen (); 9554int 9555main () 9556{ 9557return dlopen (); 9558 ; 9559 return 0; 9560} 9561_ACEOF 9562rm -f conftest.$ac_objext conftest$ac_exeext 9563if { (ac_try="$ac_link" 9564case "(($ac_try" in 9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9566 *) ac_try_echo=$ac_try;; 9567esac 9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9569 (eval "$ac_link") 2>conftest.er1 9570 ac_status=$? 9571 grep -v '^ *+' conftest.er1 >conftest.err 9572 rm -f conftest.er1 9573 cat conftest.err >&5 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 (exit $ac_status); } && 9576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9577 { (case "(($ac_try" in 9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9579 *) ac_try_echo=$ac_try;; 9580esac 9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9582 (eval "$ac_try") 2>&5 9583 ac_status=$? 9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 (exit $ac_status); }; } && 9586 { ac_try='test -s conftest$ac_exeext' 9587 { (case "(($ac_try" in 9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9589 *) ac_try_echo=$ac_try;; 9590esac 9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9592 (eval "$ac_try") 2>&5 9593 ac_status=$? 9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 (exit $ac_status); }; }; then 9596 ac_cv_lib_dl_dlopen=yes 9597else 9598 echo "$as_me: failed program was:" >&5 9599sed 's/^/| /' conftest.$ac_ext >&5 9600 9601 ac_cv_lib_dl_dlopen=no 9602fi 9603 9604rm -f core conftest.err conftest.$ac_objext \ 9605 conftest$ac_exeext conftest.$ac_ext 9606LIBS=$ac_check_lib_save_LIBS 9607fi 9608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9609echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9610if test $ac_cv_lib_dl_dlopen = yes; then 9611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9612else 9613 9614 lt_cv_dlopen="dyld" 9615 lt_cv_dlopen_libs= 9616 lt_cv_dlopen_self=yes 9617 9618fi 9619 9620 ;; 9621 9622 *) 9623 { echo "$as_me:$LINENO: checking for shl_load" >&5 9624echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9625if test "${ac_cv_func_shl_load+set}" = set; then 9626 echo $ECHO_N "(cached) $ECHO_C" >&6 9627else 9628 cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9636#define shl_load innocuous_shl_load 9637 9638/* System header to define __stub macros and hopefully few prototypes, 9639 which can conflict with char shl_load (); below. 9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9641 <limits.h> exists even on freestanding compilers. */ 9642 9643#ifdef __STDC__ 9644# include <limits.h> 9645#else 9646# include <assert.h> 9647#endif 9648 9649#undef shl_load 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char shl_load (); 9658/* The GNU C library defines this for functions which it implements 9659 to always fail with ENOSYS. Some functions are actually named 9660 something starting with __ and the normal name is an alias. */ 9661#if defined __stub_shl_load || defined __stub___shl_load 9662choke me 9663#endif 9664 9665int 9666main () 9667{ 9668return shl_load (); 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673rm -f conftest.$ac_objext conftest$ac_exeext 9674if { (ac_try="$ac_link" 9675case "(($ac_try" in 9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9677 *) ac_try_echo=$ac_try;; 9678esac 9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9680 (eval "$ac_link") 2>conftest.er1 9681 ac_status=$? 9682 grep -v '^ *+' conftest.er1 >conftest.err 9683 rm -f conftest.er1 9684 cat conftest.err >&5 9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9686 (exit $ac_status); } && 9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9688 { (case "(($ac_try" in 9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9690 *) ac_try_echo=$ac_try;; 9691esac 9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9693 (eval "$ac_try") 2>&5 9694 ac_status=$? 9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9696 (exit $ac_status); }; } && 9697 { ac_try='test -s conftest$ac_exeext' 9698 { (case "(($ac_try" in 9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9700 *) ac_try_echo=$ac_try;; 9701esac 9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9703 (eval "$ac_try") 2>&5 9704 ac_status=$? 9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); }; }; then 9707 ac_cv_func_shl_load=yes 9708else 9709 echo "$as_me: failed program was:" >&5 9710sed 's/^/| /' conftest.$ac_ext >&5 9711 9712 ac_cv_func_shl_load=no 9713fi 9714 9715rm -f core conftest.err conftest.$ac_objext \ 9716 conftest$ac_exeext conftest.$ac_ext 9717fi 9718{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9719echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9720if test $ac_cv_func_shl_load = yes; then 9721 lt_cv_dlopen="shl_load" 9722else 9723 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9724echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9725if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9726 echo $ECHO_N "(cached) $ECHO_C" >&6 9727else 9728 ac_check_lib_save_LIBS=$LIBS 9729LIBS="-ldld $LIBS" 9730cat >conftest.$ac_ext <<_ACEOF 9731/* confdefs.h. */ 9732_ACEOF 9733cat confdefs.h >>conftest.$ac_ext 9734cat >>conftest.$ac_ext <<_ACEOF 9735/* end confdefs.h. */ 9736 9737/* Override any GCC internal prototype to avoid an error. 9738 Use char because int might match the return type of a GCC 9739 builtin and then its argument prototype would still apply. */ 9740#ifdef __cplusplus 9741extern "C" 9742#endif 9743char shl_load (); 9744int 9745main () 9746{ 9747return shl_load (); 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752rm -f conftest.$ac_objext conftest$ac_exeext 9753if { (ac_try="$ac_link" 9754case "(($ac_try" in 9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9756 *) ac_try_echo=$ac_try;; 9757esac 9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9759 (eval "$ac_link") 2>conftest.er1 9760 ac_status=$? 9761 grep -v '^ *+' conftest.er1 >conftest.err 9762 rm -f conftest.er1 9763 cat conftest.err >&5 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); } && 9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9767 { (case "(($ac_try" in 9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9769 *) ac_try_echo=$ac_try;; 9770esac 9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9772 (eval "$ac_try") 2>&5 9773 ac_status=$? 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); }; } && 9776 { ac_try='test -s conftest$ac_exeext' 9777 { (case "(($ac_try" in 9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9779 *) ac_try_echo=$ac_try;; 9780esac 9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9782 (eval "$ac_try") 2>&5 9783 ac_status=$? 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 (exit $ac_status); }; }; then 9786 ac_cv_lib_dld_shl_load=yes 9787else 9788 echo "$as_me: failed program was:" >&5 9789sed 's/^/| /' conftest.$ac_ext >&5 9790 9791 ac_cv_lib_dld_shl_load=no 9792fi 9793 9794rm -f core conftest.err conftest.$ac_objext \ 9795 conftest$ac_exeext conftest.$ac_ext 9796LIBS=$ac_check_lib_save_LIBS 9797fi 9798{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9799echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9800if test $ac_cv_lib_dld_shl_load = yes; then 9801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9802else 9803 { echo "$as_me:$LINENO: checking for dlopen" >&5 9804echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9805if test "${ac_cv_func_dlopen+set}" = set; then 9806 echo $ECHO_N "(cached) $ECHO_C" >&6 9807else 9808 cat >conftest.$ac_ext <<_ACEOF 9809/* confdefs.h. */ 9810_ACEOF 9811cat confdefs.h >>conftest.$ac_ext 9812cat >>conftest.$ac_ext <<_ACEOF 9813/* end confdefs.h. */ 9814/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9816#define dlopen innocuous_dlopen 9817 9818/* System header to define __stub macros and hopefully few prototypes, 9819 which can conflict with char dlopen (); below. 9820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9821 <limits.h> exists even on freestanding compilers. */ 9822 9823#ifdef __STDC__ 9824# include <limits.h> 9825#else 9826# include <assert.h> 9827#endif 9828 9829#undef dlopen 9830 9831/* Override any GCC internal prototype to avoid an error. 9832 Use char because int might match the return type of a GCC 9833 builtin and then its argument prototype would still apply. */ 9834#ifdef __cplusplus 9835extern "C" 9836#endif 9837char dlopen (); 9838/* The GNU C library defines this for functions which it implements 9839 to always fail with ENOSYS. Some functions are actually named 9840 something starting with __ and the normal name is an alias. */ 9841#if defined __stub_dlopen || defined __stub___dlopen 9842choke me 9843#endif 9844 9845int 9846main () 9847{ 9848return dlopen (); 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853rm -f conftest.$ac_objext conftest$ac_exeext 9854if { (ac_try="$ac_link" 9855case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858esac 9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9860 (eval "$ac_link") 2>conftest.er1 9861 ac_status=$? 9862 grep -v '^ *+' conftest.er1 >conftest.err 9863 rm -f conftest.er1 9864 cat conftest.err >&5 9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9866 (exit $ac_status); } && 9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9868 { (case "(($ac_try" in 9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9870 *) ac_try_echo=$ac_try;; 9871esac 9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9873 (eval "$ac_try") 2>&5 9874 ac_status=$? 9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9876 (exit $ac_status); }; } && 9877 { ac_try='test -s conftest$ac_exeext' 9878 { (case "(($ac_try" in 9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9880 *) ac_try_echo=$ac_try;; 9881esac 9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9883 (eval "$ac_try") 2>&5 9884 ac_status=$? 9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9886 (exit $ac_status); }; }; then 9887 ac_cv_func_dlopen=yes 9888else 9889 echo "$as_me: failed program was:" >&5 9890sed 's/^/| /' conftest.$ac_ext >&5 9891 9892 ac_cv_func_dlopen=no 9893fi 9894 9895rm -f core conftest.err conftest.$ac_objext \ 9896 conftest$ac_exeext conftest.$ac_ext 9897fi 9898{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9899echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9900if test $ac_cv_func_dlopen = yes; then 9901 lt_cv_dlopen="dlopen" 9902else 9903 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9904echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9905if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9906 echo $ECHO_N "(cached) $ECHO_C" >&6 9907else 9908 ac_check_lib_save_LIBS=$LIBS 9909LIBS="-ldl $LIBS" 9910cat >conftest.$ac_ext <<_ACEOF 9911/* confdefs.h. */ 9912_ACEOF 9913cat confdefs.h >>conftest.$ac_ext 9914cat >>conftest.$ac_ext <<_ACEOF 9915/* end confdefs.h. */ 9916 9917/* Override any GCC internal prototype to avoid an error. 9918 Use char because int might match the return type of a GCC 9919 builtin and then its argument prototype would still apply. */ 9920#ifdef __cplusplus 9921extern "C" 9922#endif 9923char dlopen (); 9924int 9925main () 9926{ 9927return dlopen (); 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932rm -f conftest.$ac_objext conftest$ac_exeext 9933if { (ac_try="$ac_link" 9934case "(($ac_try" in 9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9936 *) ac_try_echo=$ac_try;; 9937esac 9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9939 (eval "$ac_link") 2>conftest.er1 9940 ac_status=$? 9941 grep -v '^ *+' conftest.er1 >conftest.err 9942 rm -f conftest.er1 9943 cat conftest.err >&5 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && 9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9947 { (case "(($ac_try" in 9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9949 *) ac_try_echo=$ac_try;; 9950esac 9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9952 (eval "$ac_try") 2>&5 9953 ac_status=$? 9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9955 (exit $ac_status); }; } && 9956 { ac_try='test -s conftest$ac_exeext' 9957 { (case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960esac 9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_try") 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); }; }; then 9966 ac_cv_lib_dl_dlopen=yes 9967else 9968 echo "$as_me: failed program was:" >&5 9969sed 's/^/| /' conftest.$ac_ext >&5 9970 9971 ac_cv_lib_dl_dlopen=no 9972fi 9973 9974rm -f core conftest.err conftest.$ac_objext \ 9975 conftest$ac_exeext conftest.$ac_ext 9976LIBS=$ac_check_lib_save_LIBS 9977fi 9978{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9980if test $ac_cv_lib_dl_dlopen = yes; then 9981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9982else 9983 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9984echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9985if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9986 echo $ECHO_N "(cached) $ECHO_C" >&6 9987else 9988 ac_check_lib_save_LIBS=$LIBS 9989LIBS="-lsvld $LIBS" 9990cat >conftest.$ac_ext <<_ACEOF 9991/* confdefs.h. */ 9992_ACEOF 9993cat confdefs.h >>conftest.$ac_ext 9994cat >>conftest.$ac_ext <<_ACEOF 9995/* end confdefs.h. */ 9996 9997/* Override any GCC internal prototype to avoid an error. 9998 Use char because int might match the return type of a GCC 9999 builtin and then its argument prototype would still apply. */ 10000#ifdef __cplusplus 10001extern "C" 10002#endif 10003char dlopen (); 10004int 10005main () 10006{ 10007return dlopen (); 10008 ; 10009 return 0; 10010} 10011_ACEOF 10012rm -f conftest.$ac_objext conftest$ac_exeext 10013if { (ac_try="$ac_link" 10014case "(($ac_try" in 10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10016 *) ac_try_echo=$ac_try;; 10017esac 10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10019 (eval "$ac_link") 2>conftest.er1 10020 ac_status=$? 10021 grep -v '^ *+' conftest.er1 >conftest.err 10022 rm -f conftest.er1 10023 cat conftest.err >&5 10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10025 (exit $ac_status); } && 10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10027 { (case "(($ac_try" in 10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10029 *) ac_try_echo=$ac_try;; 10030esac 10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10032 (eval "$ac_try") 2>&5 10033 ac_status=$? 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); }; } && 10036 { ac_try='test -s conftest$ac_exeext' 10037 { (case "(($ac_try" in 10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10039 *) ac_try_echo=$ac_try;; 10040esac 10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10042 (eval "$ac_try") 2>&5 10043 ac_status=$? 10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 (exit $ac_status); }; }; then 10046 ac_cv_lib_svld_dlopen=yes 10047else 10048 echo "$as_me: failed program was:" >&5 10049sed 's/^/| /' conftest.$ac_ext >&5 10050 10051 ac_cv_lib_svld_dlopen=no 10052fi 10053 10054rm -f core conftest.err conftest.$ac_objext \ 10055 conftest$ac_exeext conftest.$ac_ext 10056LIBS=$ac_check_lib_save_LIBS 10057fi 10058{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10060if test $ac_cv_lib_svld_dlopen = yes; then 10061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10062else 10063 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10065if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10066 echo $ECHO_N "(cached) $ECHO_C" >&6 10067else 10068 ac_check_lib_save_LIBS=$LIBS 10069LIBS="-ldld $LIBS" 10070cat >conftest.$ac_ext <<_ACEOF 10071/* confdefs.h. */ 10072_ACEOF 10073cat confdefs.h >>conftest.$ac_ext 10074cat >>conftest.$ac_ext <<_ACEOF 10075/* end confdefs.h. */ 10076 10077/* Override any GCC internal prototype to avoid an error. 10078 Use char because int might match the return type of a GCC 10079 builtin and then its argument prototype would still apply. */ 10080#ifdef __cplusplus 10081extern "C" 10082#endif 10083char dld_link (); 10084int 10085main () 10086{ 10087return dld_link (); 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092rm -f conftest.$ac_objext conftest$ac_exeext 10093if { (ac_try="$ac_link" 10094case "(($ac_try" in 10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10096 *) ac_try_echo=$ac_try;; 10097esac 10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10099 (eval "$ac_link") 2>conftest.er1 10100 ac_status=$? 10101 grep -v '^ *+' conftest.er1 >conftest.err 10102 rm -f conftest.er1 10103 cat conftest.err >&5 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); } && 10106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10107 { (case "(($ac_try" in 10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10109 *) ac_try_echo=$ac_try;; 10110esac 10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10112 (eval "$ac_try") 2>&5 10113 ac_status=$? 10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10115 (exit $ac_status); }; } && 10116 { ac_try='test -s conftest$ac_exeext' 10117 { (case "(($ac_try" in 10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10119 *) ac_try_echo=$ac_try;; 10120esac 10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10122 (eval "$ac_try") 2>&5 10123 ac_status=$? 10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 (exit $ac_status); }; }; then 10126 ac_cv_lib_dld_dld_link=yes 10127else 10128 echo "$as_me: failed program was:" >&5 10129sed 's/^/| /' conftest.$ac_ext >&5 10130 10131 ac_cv_lib_dld_dld_link=no 10132fi 10133 10134rm -f core conftest.err conftest.$ac_objext \ 10135 conftest$ac_exeext conftest.$ac_ext 10136LIBS=$ac_check_lib_save_LIBS 10137fi 10138{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10139echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10140if test $ac_cv_lib_dld_dld_link = yes; then 10141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10142fi 10143 10144 10145fi 10146 10147 10148fi 10149 10150 10151fi 10152 10153 10154fi 10155 10156 10157fi 10158 10159 ;; 10160 esac 10161 10162 if test "x$lt_cv_dlopen" != xno; then 10163 enable_dlopen=yes 10164 else 10165 enable_dlopen=no 10166 fi 10167 10168 case $lt_cv_dlopen in 10169 dlopen) 10170 save_CPPFLAGS="$CPPFLAGS" 10171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10172 10173 save_LDFLAGS="$LDFLAGS" 10174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10175 10176 save_LIBS="$LIBS" 10177 LIBS="$lt_cv_dlopen_libs $LIBS" 10178 10179 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10180echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10181if test "${lt_cv_dlopen_self+set}" = set; then 10182 echo $ECHO_N "(cached) $ECHO_C" >&6 10183else 10184 if test "$cross_compiling" = yes; then : 10185 lt_cv_dlopen_self=cross 10186else 10187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10188 lt_status=$lt_dlunknown 10189 cat > conftest.$ac_ext <<EOF 10190#line 10190 "configure" 10191#include "confdefs.h" 10192 10193#if HAVE_DLFCN_H 10194#include <dlfcn.h> 10195#endif 10196 10197#include <stdio.h> 10198 10199#ifdef RTLD_GLOBAL 10200# define LT_DLGLOBAL RTLD_GLOBAL 10201#else 10202# ifdef DL_GLOBAL 10203# define LT_DLGLOBAL DL_GLOBAL 10204# else 10205# define LT_DLGLOBAL 0 10206# endif 10207#endif 10208 10209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10210 find out it does not work in some platform. */ 10211#ifndef LT_DLLAZY_OR_NOW 10212# ifdef RTLD_LAZY 10213# define LT_DLLAZY_OR_NOW RTLD_LAZY 10214# else 10215# ifdef DL_LAZY 10216# define LT_DLLAZY_OR_NOW DL_LAZY 10217# else 10218# ifdef RTLD_NOW 10219# define LT_DLLAZY_OR_NOW RTLD_NOW 10220# else 10221# ifdef DL_NOW 10222# define LT_DLLAZY_OR_NOW DL_NOW 10223# else 10224# define LT_DLLAZY_OR_NOW 0 10225# endif 10226# endif 10227# endif 10228# endif 10229#endif 10230 10231#ifdef __cplusplus 10232extern "C" void exit (int); 10233#endif 10234 10235void fnord() { int i=42;} 10236int main () 10237{ 10238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10239 int status = $lt_dlunknown; 10240 10241 if (self) 10242 { 10243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10245 /* dlclose (self); */ 10246 } 10247 else 10248 puts (dlerror ()); 10249 10250 exit (status); 10251} 10252EOF 10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10254 (eval $ac_link) 2>&5 10255 ac_status=$? 10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10258 (./conftest; exit; ) >&5 2>/dev/null 10259 lt_status=$? 10260 case x$lt_status in 10261 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10262 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10263 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10264 esac 10265 else : 10266 # compilation failed 10267 lt_cv_dlopen_self=no 10268 fi 10269fi 10270rm -fr conftest* 10271 10272 10273fi 10274{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10275echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10276 10277 if test "x$lt_cv_dlopen_self" = xyes; then 10278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10279 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10280echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10281if test "${lt_cv_dlopen_self_static+set}" = set; then 10282 echo $ECHO_N "(cached) $ECHO_C" >&6 10283else 10284 if test "$cross_compiling" = yes; then : 10285 lt_cv_dlopen_self_static=cross 10286else 10287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10288 lt_status=$lt_dlunknown 10289 cat > conftest.$ac_ext <<EOF 10290#line 10290 "configure" 10291#include "confdefs.h" 10292 10293#if HAVE_DLFCN_H 10294#include <dlfcn.h> 10295#endif 10296 10297#include <stdio.h> 10298 10299#ifdef RTLD_GLOBAL 10300# define LT_DLGLOBAL RTLD_GLOBAL 10301#else 10302# ifdef DL_GLOBAL 10303# define LT_DLGLOBAL DL_GLOBAL 10304# else 10305# define LT_DLGLOBAL 0 10306# endif 10307#endif 10308 10309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10310 find out it does not work in some platform. */ 10311#ifndef LT_DLLAZY_OR_NOW 10312# ifdef RTLD_LAZY 10313# define LT_DLLAZY_OR_NOW RTLD_LAZY 10314# else 10315# ifdef DL_LAZY 10316# define LT_DLLAZY_OR_NOW DL_LAZY 10317# else 10318# ifdef RTLD_NOW 10319# define LT_DLLAZY_OR_NOW RTLD_NOW 10320# else 10321# ifdef DL_NOW 10322# define LT_DLLAZY_OR_NOW DL_NOW 10323# else 10324# define LT_DLLAZY_OR_NOW 0 10325# endif 10326# endif 10327# endif 10328# endif 10329#endif 10330 10331#ifdef __cplusplus 10332extern "C" void exit (int); 10333#endif 10334 10335void fnord() { int i=42;} 10336int main () 10337{ 10338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10339 int status = $lt_dlunknown; 10340 10341 if (self) 10342 { 10343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10345 /* dlclose (self); */ 10346 } 10347 else 10348 puts (dlerror ()); 10349 10350 exit (status); 10351} 10352EOF 10353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10354 (eval $ac_link) 2>&5 10355 ac_status=$? 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10358 (./conftest; exit; ) >&5 2>/dev/null 10359 lt_status=$? 10360 case x$lt_status in 10361 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10362 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10363 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10364 esac 10365 else : 10366 # compilation failed 10367 lt_cv_dlopen_self_static=no 10368 fi 10369fi 10370rm -fr conftest* 10371 10372 10373fi 10374{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10375echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10376 fi 10377 10378 CPPFLAGS="$save_CPPFLAGS" 10379 LDFLAGS="$save_LDFLAGS" 10380 LIBS="$save_LIBS" 10381 ;; 10382 esac 10383 10384 case $lt_cv_dlopen_self in 10385 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10386 *) enable_dlopen_self=unknown ;; 10387 esac 10388 10389 case $lt_cv_dlopen_self_static in 10390 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10391 *) enable_dlopen_self_static=unknown ;; 10392 esac 10393fi 10394 10395 10396# Report which library types will actually be built 10397{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10398echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10399{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10400echo "${ECHO_T}$can_build_shared" >&6; } 10401 10402{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10403echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10404test "$can_build_shared" = "no" && enable_shared=no 10405 10406# On AIX, shared libraries and static libraries use the same namespace, and 10407# are all built from PIC. 10408case $host_os in 10409aix3*) 10410 test "$enable_shared" = yes && enable_static=no 10411 if test -n "$RANLIB"; then 10412 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10413 postinstall_cmds='$RANLIB $lib' 10414 fi 10415 ;; 10416 10417aix4* | aix5*) 10418 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10419 test "$enable_shared" = yes && enable_static=no 10420 fi 10421 ;; 10422esac 10423{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10424echo "${ECHO_T}$enable_shared" >&6; } 10425 10426{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10427echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10428# Make sure either enable_shared or enable_static is yes. 10429test "$enable_shared" = yes || enable_static=yes 10430{ echo "$as_me:$LINENO: result: $enable_static" >&5 10431echo "${ECHO_T}$enable_static" >&6; } 10432 10433# The else clause should only fire when bootstrapping the 10434# libtool distribution, otherwise you forgot to ship ltmain.sh 10435# with your package, and you will get complaints that there are 10436# no rules to generate ltmain.sh. 10437if test -f "$ltmain"; then 10438 # See if we are running on zsh, and set the options which allow our commands through 10439 # without removal of \ escapes. 10440 if test -n "${ZSH_VERSION+set}" ; then 10441 setopt NO_GLOB_SUBST 10442 fi 10443 # Now quote all the things that may contain metacharacters while being 10444 # careful not to overquote the AC_SUBSTed values. We take copies of the 10445 # variables and quote the copies for generation of the libtool script. 10446 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10447 SED SHELL STRIP \ 10448 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10449 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10450 deplibs_check_method reload_flag reload_cmds need_locks \ 10451 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10452 lt_cv_sys_global_symbol_to_c_name_address \ 10453 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10454 old_postinstall_cmds old_postuninstall_cmds \ 10455 compiler \ 10456 CC \ 10457 LD \ 10458 lt_prog_compiler_wl \ 10459 lt_prog_compiler_pic \ 10460 lt_prog_compiler_static \ 10461 lt_prog_compiler_no_builtin_flag \ 10462 export_dynamic_flag_spec \ 10463 thread_safe_flag_spec \ 10464 whole_archive_flag_spec \ 10465 enable_shared_with_static_runtimes \ 10466 old_archive_cmds \ 10467 old_archive_from_new_cmds \ 10468 predep_objects \ 10469 postdep_objects \ 10470 predeps \ 10471 postdeps \ 10472 compiler_lib_search_path \ 10473 archive_cmds \ 10474 archive_expsym_cmds \ 10475 postinstall_cmds \ 10476 postuninstall_cmds \ 10477 old_archive_from_expsyms_cmds \ 10478 allow_undefined_flag \ 10479 no_undefined_flag \ 10480 export_symbols_cmds \ 10481 hardcode_libdir_flag_spec \ 10482 hardcode_libdir_flag_spec_ld \ 10483 hardcode_libdir_separator \ 10484 hardcode_automatic \ 10485 module_cmds \ 10486 module_expsym_cmds \ 10487 lt_cv_prog_compiler_c_o \ 10488 exclude_expsyms \ 10489 include_expsyms; do 10490 10491 case $var in 10492 old_archive_cmds | \ 10493 old_archive_from_new_cmds | \ 10494 archive_cmds | \ 10495 archive_expsym_cmds | \ 10496 module_cmds | \ 10497 module_expsym_cmds | \ 10498 old_archive_from_expsyms_cmds | \ 10499 export_symbols_cmds | \ 10500 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10501 postinstall_cmds | postuninstall_cmds | \ 10502 old_postinstall_cmds | old_postuninstall_cmds | \ 10503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10504 # Double-quote double-evaled strings. 10505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10506 ;; 10507 *) 10508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10509 ;; 10510 esac 10511 done 10512 10513 case $lt_echo in 10514 *'\$0 --fallback-echo"') 10515 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10516 ;; 10517 esac 10518 10519cfgfile="${ofile}T" 10520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10521 $rm -f "$cfgfile" 10522 { echo "$as_me:$LINENO: creating $ofile" >&5 10523echo "$as_me: creating $ofile" >&6;} 10524 10525 cat <<__EOF__ >> "$cfgfile" 10526#! $SHELL 10527 10528# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10530# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10531# 10532# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10533# Free Software Foundation, Inc. 10534# 10535# This file is part of GNU Libtool: 10536# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10537# 10538# This program is free software; you can redistribute it and/or modify 10539# it under the terms of the GNU General Public License as published by 10540# the Free Software Foundation; either version 2 of the License, or 10541# (at your option) any later version. 10542# 10543# This program is distributed in the hope that it will be useful, but 10544# WITHOUT ANY WARRANTY; without even the implied warranty of 10545# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10546# General Public License for more details. 10547# 10548# You should have received a copy of the GNU General Public License 10549# along with this program; if not, write to the Free Software 10550# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10551# 10552# As a special exception to the GNU General Public License, if you 10553# distribute this file as part of a program that contains a 10554# configuration script generated by Autoconf, you may include it under 10555# the same distribution terms that you use for the rest of that program. 10556 10557# A sed program that does not truncate output. 10558SED=$lt_SED 10559 10560# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10561Xsed="$SED -e 1s/^X//" 10562 10563# The HP-UX ksh and POSIX shell print the target directory to stdout 10564# if CDPATH is set. 10565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10566 10567# The names of the tagged configurations supported by this script. 10568available_tags= 10569 10570# ### BEGIN LIBTOOL CONFIG 10571 10572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10573 10574# Shell to use when invoking shell scripts. 10575SHELL=$lt_SHELL 10576 10577# Whether or not to build shared libraries. 10578build_libtool_libs=$enable_shared 10579 10580# Whether or not to build static libraries. 10581build_old_libs=$enable_static 10582 10583# Whether or not to add -lc for building shared libraries. 10584build_libtool_need_lc=$archive_cmds_need_lc 10585 10586# Whether or not to disallow shared libs when runtime libs are static 10587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10588 10589# Whether or not to optimize for fast installation. 10590fast_install=$enable_fast_install 10591 10592# The host system. 10593host_alias=$host_alias 10594host=$host 10595host_os=$host_os 10596 10597# The build system. 10598build_alias=$build_alias 10599build=$build 10600build_os=$build_os 10601 10602# An echo program that does not interpret backslashes. 10603echo=$lt_echo 10604 10605# The archiver. 10606AR=$lt_AR 10607AR_FLAGS=$lt_AR_FLAGS 10608 10609# A C compiler. 10610LTCC=$lt_LTCC 10611 10612# LTCC compiler flags. 10613LTCFLAGS=$lt_LTCFLAGS 10614 10615# A language-specific compiler. 10616CC=$lt_compiler 10617 10618# Is the compiler the GNU C compiler? 10619with_gcc=$GCC 10620 10621# An ERE matcher. 10622EGREP=$lt_EGREP 10623 10624# The linker used to build libraries. 10625LD=$lt_LD 10626 10627# Whether we need hard or soft links. 10628LN_S=$lt_LN_S 10629 10630# A BSD-compatible nm program. 10631NM=$lt_NM 10632 10633# A symbol stripping program 10634STRIP=$lt_STRIP 10635 10636# Used to examine libraries when file_magic_cmd begins "file" 10637MAGIC_CMD=$MAGIC_CMD 10638 10639# Used on cygwin: DLL creation program. 10640DLLTOOL="$DLLTOOL" 10641 10642# Used on cygwin: object dumper. 10643OBJDUMP="$OBJDUMP" 10644 10645# Used on cygwin: assembler. 10646AS="$AS" 10647 10648# The name of the directory that contains temporary libtool files. 10649objdir=$objdir 10650 10651# How to create reloadable object files. 10652reload_flag=$lt_reload_flag 10653reload_cmds=$lt_reload_cmds 10654 10655# How to pass a linker flag through the compiler. 10656wl=$lt_lt_prog_compiler_wl 10657 10658# Object file suffix (normally "o"). 10659objext="$ac_objext" 10660 10661# Old archive suffix (normally "a"). 10662libext="$libext" 10663 10664# Shared library suffix (normally ".so"). 10665shrext_cmds='$shrext_cmds' 10666 10667# Executable file suffix (normally ""). 10668exeext="$exeext" 10669 10670# Additional compiler flags for building library objects. 10671pic_flag=$lt_lt_prog_compiler_pic 10672pic_mode=$pic_mode 10673 10674# What is the maximum length of a command? 10675max_cmd_len=$lt_cv_sys_max_cmd_len 10676 10677# Does compiler simultaneously support -c and -o options? 10678compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10679 10680# Must we lock files when doing compilation? 10681need_locks=$lt_need_locks 10682 10683# Do we need the lib prefix for modules? 10684need_lib_prefix=$need_lib_prefix 10685 10686# Do we need a version for libraries? 10687need_version=$need_version 10688 10689# Whether dlopen is supported. 10690dlopen_support=$enable_dlopen 10691 10692# Whether dlopen of programs is supported. 10693dlopen_self=$enable_dlopen_self 10694 10695# Whether dlopen of statically linked programs is supported. 10696dlopen_self_static=$enable_dlopen_self_static 10697 10698# Compiler flag to prevent dynamic linking. 10699link_static_flag=$lt_lt_prog_compiler_static 10700 10701# Compiler flag to turn off builtin functions. 10702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10703 10704# Compiler flag to allow reflexive dlopens. 10705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10706 10707# Compiler flag to generate shared objects directly from archives. 10708whole_archive_flag_spec=$lt_whole_archive_flag_spec 10709 10710# Compiler flag to generate thread-safe objects. 10711thread_safe_flag_spec=$lt_thread_safe_flag_spec 10712 10713# Library versioning type. 10714version_type=$version_type 10715 10716# Format of library name prefix. 10717libname_spec=$lt_libname_spec 10718 10719# List of archive names. First name is the real one, the rest are links. 10720# The last name is the one that the linker finds with -lNAME. 10721library_names_spec=$lt_library_names_spec 10722 10723# The coded name of the library, if different from the real name. 10724soname_spec=$lt_soname_spec 10725 10726# Commands used to build and install an old-style archive. 10727RANLIB=$lt_RANLIB 10728old_archive_cmds=$lt_old_archive_cmds 10729old_postinstall_cmds=$lt_old_postinstall_cmds 10730old_postuninstall_cmds=$lt_old_postuninstall_cmds 10731 10732# Create an old-style archive from a shared archive. 10733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10734 10735# Create a temporary old-style archive to link instead of a shared archive. 10736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10737 10738# Commands used to build and install a shared archive. 10739archive_cmds=$lt_archive_cmds 10740archive_expsym_cmds=$lt_archive_expsym_cmds 10741postinstall_cmds=$lt_postinstall_cmds 10742postuninstall_cmds=$lt_postuninstall_cmds 10743 10744# Commands used to build a loadable module (assumed same as above if empty) 10745module_cmds=$lt_module_cmds 10746module_expsym_cmds=$lt_module_expsym_cmds 10747 10748# Commands to strip libraries. 10749old_striplib=$lt_old_striplib 10750striplib=$lt_striplib 10751 10752# Dependencies to place before the objects being linked to create a 10753# shared library. 10754predep_objects=$lt_predep_objects 10755 10756# Dependencies to place after the objects being linked to create a 10757# shared library. 10758postdep_objects=$lt_postdep_objects 10759 10760# Dependencies to place before the objects being linked to create a 10761# shared library. 10762predeps=$lt_predeps 10763 10764# Dependencies to place after the objects being linked to create a 10765# shared library. 10766postdeps=$lt_postdeps 10767 10768# The library search path used internally by the compiler when linking 10769# a shared library. 10770compiler_lib_search_path=$lt_compiler_lib_search_path 10771 10772# Method to check whether dependent libraries are shared objects. 10773deplibs_check_method=$lt_deplibs_check_method 10774 10775# Command to use when deplibs_check_method == file_magic. 10776file_magic_cmd=$lt_file_magic_cmd 10777 10778# Flag that allows shared libraries with undefined symbols to be built. 10779allow_undefined_flag=$lt_allow_undefined_flag 10780 10781# Flag that forces no undefined symbols. 10782no_undefined_flag=$lt_no_undefined_flag 10783 10784# Commands used to finish a libtool library installation in a directory. 10785finish_cmds=$lt_finish_cmds 10786 10787# Same as above, but a single script fragment to be evaled but not shown. 10788finish_eval=$lt_finish_eval 10789 10790# Take the output of nm and produce a listing of raw symbols and C names. 10791global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10792 10793# Transform the output of nm in a proper C declaration 10794global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10795 10796# Transform the output of nm in a C name address pair 10797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10798 10799# This is the shared library runtime path variable. 10800runpath_var=$runpath_var 10801 10802# This is the shared library path variable. 10803shlibpath_var=$shlibpath_var 10804 10805# Is shlibpath searched before the hard-coded library search path? 10806shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10807 10808# How to hardcode a shared library path into an executable. 10809hardcode_action=$hardcode_action 10810 10811# Whether we should hardcode library paths into libraries. 10812hardcode_into_libs=$hardcode_into_libs 10813 10814# Flag to hardcode \$libdir into a binary during linking. 10815# This must work even if \$libdir does not exist. 10816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10817 10818# If ld is used when linking, flag to hardcode \$libdir into 10819# a binary during linking. This must work even if \$libdir does 10820# not exist. 10821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10822 10823# Whether we need a single -rpath flag with a separated argument. 10824hardcode_libdir_separator=$lt_hardcode_libdir_separator 10825 10826# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10827# resulting binary. 10828hardcode_direct=$hardcode_direct 10829 10830# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10831# resulting binary. 10832hardcode_minus_L=$hardcode_minus_L 10833 10834# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10835# the resulting binary. 10836hardcode_shlibpath_var=$hardcode_shlibpath_var 10837 10838# Set to yes if building a shared library automatically hardcodes DIR into the library 10839# and all subsequent libraries and executables linked against it. 10840hardcode_automatic=$hardcode_automatic 10841 10842# Variables whose values should be saved in libtool wrapper scripts and 10843# restored at relink time. 10844variables_saved_for_relink="$variables_saved_for_relink" 10845 10846# Whether libtool must link a program against all its dependency libraries. 10847link_all_deplibs=$link_all_deplibs 10848 10849# Compile-time system search path for libraries 10850sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10851 10852# Run-time system search path for libraries 10853sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10854 10855# Fix the shell variable \$srcfile for the compiler. 10856fix_srcfile_path="$fix_srcfile_path" 10857 10858# Set to yes if exported symbols are required. 10859always_export_symbols=$always_export_symbols 10860 10861# The commands to list exported symbols. 10862export_symbols_cmds=$lt_export_symbols_cmds 10863 10864# The commands to extract the exported symbol list from a shared archive. 10865extract_expsyms_cmds=$lt_extract_expsyms_cmds 10866 10867# Symbols that should not be listed in the preloaded symbols. 10868exclude_expsyms=$lt_exclude_expsyms 10869 10870# Symbols that must always be exported. 10871include_expsyms=$lt_include_expsyms 10872 10873# ### END LIBTOOL CONFIG 10874 10875__EOF__ 10876 10877 10878 case $host_os in 10879 aix3*) 10880 cat <<\EOF >> "$cfgfile" 10881 10882# AIX sometimes has problems with the GCC collect2 program. For some 10883# reason, if we set the COLLECT_NAMES environment variable, the problems 10884# vanish in a puff of smoke. 10885if test "X${COLLECT_NAMES+set}" != Xset; then 10886 COLLECT_NAMES= 10887 export COLLECT_NAMES 10888fi 10889EOF 10890 ;; 10891 esac 10892 10893 # We use sed instead of cat because bash on DJGPP gets confused if 10894 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10895 # text mode, it properly converts lines to CR/LF. This bash problem 10896 # is reportedly fixed, but why not run on old versions too? 10897 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10898 10899 mv -f "$cfgfile" "$ofile" || \ 10900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10901 chmod +x "$ofile" 10902 10903else 10904 # If there is no Makefile yet, we rely on a make rule to execute 10905 # `config.status --recheck' to rerun these tests and create the 10906 # libtool script then. 10907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10908 if test -f "$ltmain_in"; then 10909 test -f Makefile && make "$ltmain" 10910 fi 10911fi 10912 10913 10914ac_ext=c 10915ac_cpp='$CPP $CPPFLAGS' 10916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10918ac_compiler_gnu=$ac_cv_c_compiler_gnu 10919 10920CC="$lt_save_CC" 10921 10922 10923# Check whether --with-tags was given. 10924if test "${with_tags+set}" = set; then 10925 withval=$with_tags; tagnames="$withval" 10926fi 10927 10928 10929if test -f "$ltmain" && test -n "$tagnames"; then 10930 if test ! -f "${ofile}"; then 10931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10932echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10933 fi 10934 10935 if test -z "$LTCC"; then 10936 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10937 if test -z "$LTCC"; then 10938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10939echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10940 else 10941 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10942echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10943 fi 10944 fi 10945 if test -z "$LTCFLAGS"; then 10946 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10947 fi 10948 10949 # Extract list of available tagged configurations in $ofile. 10950 # Note that this assumes the entire list is on one line. 10951 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10952 10953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10954 for tagname in $tagnames; do 10955 IFS="$lt_save_ifs" 10956 # Check whether tagname contains only valid characters 10957 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10958 "") ;; 10959 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10960echo "$as_me: error: invalid tag name: $tagname" >&2;} 10961 { (exit 1); exit 1; }; } 10962 ;; 10963 esac 10964 10965 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10966 then 10967 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10968echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10969 { (exit 1); exit 1; }; } 10970 fi 10971 10972 # Update the list of available tags. 10973 if test -n "$tagname"; then 10974 echo appending configuration tag \"$tagname\" to $ofile 10975 10976 case $tagname in 10977 CXX) 10978 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10979 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10980 (test "X$CXX" != "Xg++"))) ; then 10981 ac_ext=cpp 10982ac_cpp='$CXXCPP $CPPFLAGS' 10983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10986 10987 10988 10989 10990archive_cmds_need_lc_CXX=no 10991allow_undefined_flag_CXX= 10992always_export_symbols_CXX=no 10993archive_expsym_cmds_CXX= 10994export_dynamic_flag_spec_CXX= 10995hardcode_direct_CXX=no 10996hardcode_libdir_flag_spec_CXX= 10997hardcode_libdir_flag_spec_ld_CXX= 10998hardcode_libdir_separator_CXX= 10999hardcode_minus_L_CXX=no 11000hardcode_shlibpath_var_CXX=unsupported 11001hardcode_automatic_CXX=no 11002module_cmds_CXX= 11003module_expsym_cmds_CXX= 11004link_all_deplibs_CXX=unknown 11005old_archive_cmds_CXX=$old_archive_cmds 11006no_undefined_flag_CXX= 11007whole_archive_flag_spec_CXX= 11008enable_shared_with_static_runtimes_CXX=no 11009 11010# Dependencies to place before and after the object being linked: 11011predep_objects_CXX= 11012postdep_objects_CXX= 11013predeps_CXX= 11014postdeps_CXX= 11015compiler_lib_search_path_CXX= 11016 11017# Source file extension for C++ test sources. 11018ac_ext=cpp 11019 11020# Object file extension for compiled C++ test sources. 11021objext=o 11022objext_CXX=$objext 11023 11024# Code to be used in simple compile tests 11025lt_simple_compile_test_code="int some_variable = 0;\n" 11026 11027# Code to be used in simple link tests 11028lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11029 11030# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11031 11032# If no C compiler was specified, use CC. 11033LTCC=${LTCC-"$CC"} 11034 11035# If no C compiler flags were specified, use CFLAGS. 11036LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11037 11038# Allow CC to be a program name with arguments. 11039compiler=$CC 11040 11041 11042# save warnings/boilerplate of simple test code 11043ac_outfile=conftest.$ac_objext 11044printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11045eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11046_lt_compiler_boilerplate=`cat conftest.err` 11047$rm conftest* 11048 11049ac_outfile=conftest.$ac_objext 11050printf "$lt_simple_link_test_code" >conftest.$ac_ext 11051eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11052_lt_linker_boilerplate=`cat conftest.err` 11053$rm conftest* 11054 11055 11056# Allow CC to be a program name with arguments. 11057lt_save_CC=$CC 11058lt_save_LD=$LD 11059lt_save_GCC=$GCC 11060GCC=$GXX 11061lt_save_with_gnu_ld=$with_gnu_ld 11062lt_save_path_LD=$lt_cv_path_LD 11063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11065else 11066 $as_unset lt_cv_prog_gnu_ld 11067fi 11068if test -n "${lt_cv_path_LDCXX+set}"; then 11069 lt_cv_path_LD=$lt_cv_path_LDCXX 11070else 11071 $as_unset lt_cv_path_LD 11072fi 11073test -z "${LDCXX+set}" || LD=$LDCXX 11074CC=${CXX-"c++"} 11075compiler=$CC 11076compiler_CXX=$CC 11077for cc_temp in $compiler""; do 11078 case $cc_temp in 11079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11081 \-*) ;; 11082 *) break;; 11083 esac 11084done 11085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11086 11087 11088# We don't want -fno-exception wen compiling C++ code, so set the 11089# no_builtin_flag separately 11090if test "$GXX" = yes; then 11091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11092else 11093 lt_prog_compiler_no_builtin_flag_CXX= 11094fi 11095 11096if test "$GXX" = yes; then 11097 # Set up default GNU C++ configuration 11098 11099 11100# Check whether --with-gnu-ld was given. 11101if test "${with_gnu_ld+set}" = set; then 11102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11103else 11104 with_gnu_ld=no 11105fi 11106 11107ac_prog=ld 11108if test "$GCC" = yes; then 11109 # Check if gcc -print-prog-name=ld gives a path. 11110 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11111echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11112 case $host in 11113 *-*-mingw*) 11114 # gcc leaves a trailing carriage return which upsets mingw 11115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11116 *) 11117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11118 esac 11119 case $ac_prog in 11120 # Accept absolute paths. 11121 [\\/]* | ?:[\\/]*) 11122 re_direlt='/[^/][^/]*/\.\./' 11123 # Canonicalize the pathname of ld 11124 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11126 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11127 done 11128 test -z "$LD" && LD="$ac_prog" 11129 ;; 11130 "") 11131 # If it fails, then pretend we aren't using GCC. 11132 ac_prog=ld 11133 ;; 11134 *) 11135 # If it is relative, then search for the first ld in PATH. 11136 with_gnu_ld=unknown 11137 ;; 11138 esac 11139elif test "$with_gnu_ld" = yes; then 11140 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11142else 11143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11145fi 11146if test "${lt_cv_path_LD+set}" = set; then 11147 echo $ECHO_N "(cached) $ECHO_C" >&6 11148else 11149 if test -z "$LD"; then 11150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11151 for ac_dir in $PATH; do 11152 IFS="$lt_save_ifs" 11153 test -z "$ac_dir" && ac_dir=. 11154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11155 lt_cv_path_LD="$ac_dir/$ac_prog" 11156 # Check to see if the program is GNU ld. I'd rather use --version, 11157 # but apparently some variants of GNU ld only accept -v. 11158 # Break only if it was the GNU/non-GNU ld that we prefer. 11159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11160 *GNU* | *'with BFD'*) 11161 test "$with_gnu_ld" != no && break 11162 ;; 11163 *) 11164 test "$with_gnu_ld" != yes && break 11165 ;; 11166 esac 11167 fi 11168 done 11169 IFS="$lt_save_ifs" 11170else 11171 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11172fi 11173fi 11174 11175LD="$lt_cv_path_LD" 11176if test -n "$LD"; then 11177 { echo "$as_me:$LINENO: result: $LD" >&5 11178echo "${ECHO_T}$LD" >&6; } 11179else 11180 { echo "$as_me:$LINENO: result: no" >&5 11181echo "${ECHO_T}no" >&6; } 11182fi 11183test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11184echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11185 { (exit 1); exit 1; }; } 11186{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11187echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11188if test "${lt_cv_prog_gnu_ld+set}" = set; then 11189 echo $ECHO_N "(cached) $ECHO_C" >&6 11190else 11191 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11192case `$LD -v 2>&1 </dev/null` in 11193*GNU* | *'with BFD'*) 11194 lt_cv_prog_gnu_ld=yes 11195 ;; 11196*) 11197 lt_cv_prog_gnu_ld=no 11198 ;; 11199esac 11200fi 11201{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11202echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11203with_gnu_ld=$lt_cv_prog_gnu_ld 11204 11205 11206 11207 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11208 # archiving commands below assume that GNU ld is being used. 11209 if test "$with_gnu_ld" = yes; then 11210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11211 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' 11212 11213 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11215 11216 # If archive_cmds runs LD, not CC, wlarc should be empty 11217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11218 # investigate it a little bit more. (MM) 11219 wlarc='${wl}' 11220 11221 # ancient GNU ld didn't support --whole-archive et. al. 11222 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11223 grep 'no-whole-archive' > /dev/null; then 11224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11225 else 11226 whole_archive_flag_spec_CXX= 11227 fi 11228 else 11229 with_gnu_ld=no 11230 wlarc= 11231 11232 # A generic and very simple default shared library creation 11233 # command for GNU C++ for the case where it uses the native 11234 # linker, instead of GNU ld. If possible, this setting should 11235 # overridden to take advantage of the native linker features on 11236 # the platform it is being used on. 11237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11238 fi 11239 11240 # Commands to make compiler produce verbose output that lists 11241 # what "hidden" libraries, object files and flags are used when 11242 # linking a shared library. 11243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11244 11245else 11246 GXX=no 11247 with_gnu_ld=no 11248 wlarc= 11249fi 11250 11251# PORTME: fill in a description of your system's C++ link characteristics 11252{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11253echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11254ld_shlibs_CXX=yes 11255case $host_os in 11256 aix3*) 11257 # FIXME: insert proper C++ library support 11258 ld_shlibs_CXX=no 11259 ;; 11260 aix4* | aix5*) 11261 if test "$host_cpu" = ia64; then 11262 # On IA64, the linker does run time linking by default, so we don't 11263 # have to do anything special. 11264 aix_use_runtimelinking=no 11265 exp_sym_flag='-Bexport' 11266 no_entry_flag="" 11267 else 11268 aix_use_runtimelinking=no 11269 11270 # Test if we are trying to use run time linking or normal 11271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11272 # need to do runtime linking. 11273 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11274 for ld_flag in $LDFLAGS; do 11275 case $ld_flag in 11276 *-brtl*) 11277 aix_use_runtimelinking=yes 11278 break 11279 ;; 11280 esac 11281 done 11282 ;; 11283 esac 11284 11285 exp_sym_flag='-bexport' 11286 no_entry_flag='-bnoentry' 11287 fi 11288 11289 # When large executables or shared objects are built, AIX ld can 11290 # have problems creating the table of contents. If linking a library 11291 # or program results in "error TOC overflow" add -mminimal-toc to 11292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11294 11295 archive_cmds_CXX='' 11296 hardcode_direct_CXX=yes 11297 hardcode_libdir_separator_CXX=':' 11298 link_all_deplibs_CXX=yes 11299 11300 if test "$GXX" = yes; then 11301 case $host_os in aix4.[012]|aix4.[012].*) 11302 # We only want to do this on AIX 4.2 and lower, the check 11303 # below for broken collect2 doesn't work under 4.3+ 11304 collect2name=`${CC} -print-prog-name=collect2` 11305 if test -f "$collect2name" && \ 11306 strings "$collect2name" | grep resolve_lib_name >/dev/null 11307 then 11308 # We have reworked collect2 11309 hardcode_direct_CXX=yes 11310 else 11311 # We have old collect2 11312 hardcode_direct_CXX=unsupported 11313 # It fails to find uninstalled libraries when the uninstalled 11314 # path is not listed in the libpath. Setting hardcode_minus_L 11315 # to unsupported forces relinking 11316 hardcode_minus_L_CXX=yes 11317 hardcode_libdir_flag_spec_CXX='-L$libdir' 11318 hardcode_libdir_separator_CXX= 11319 fi 11320 ;; 11321 esac 11322 shared_flag='-shared' 11323 if test "$aix_use_runtimelinking" = yes; then 11324 shared_flag="$shared_flag "'${wl}-G' 11325 fi 11326 else 11327 # not using gcc 11328 if test "$host_cpu" = ia64; then 11329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11330 # chokes on -Wl,-G. The following line is correct: 11331 shared_flag='-G' 11332 else 11333 if test "$aix_use_runtimelinking" = yes; then 11334 shared_flag='${wl}-G' 11335 else 11336 shared_flag='${wl}-bM:SRE' 11337 fi 11338 fi 11339 fi 11340 11341 # It seems that -bexpall does not export symbols beginning with 11342 # underscore (_), so it is better to generate a list of symbols to export. 11343 always_export_symbols_CXX=yes 11344 if test "$aix_use_runtimelinking" = yes; then 11345 # Warning - without using the other runtime loading flags (-brtl), 11346 # -berok will link without error, but may produce a broken library. 11347 allow_undefined_flag_CXX='-berok' 11348 # Determine the default libpath from the value encoded in an empty executable. 11349 cat >conftest.$ac_ext <<_ACEOF 11350/* confdefs.h. */ 11351_ACEOF 11352cat confdefs.h >>conftest.$ac_ext 11353cat >>conftest.$ac_ext <<_ACEOF 11354/* end confdefs.h. */ 11355 11356int 11357main () 11358{ 11359 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364rm -f conftest.$ac_objext conftest$ac_exeext 11365if { (ac_try="$ac_link" 11366case "(($ac_try" in 11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11368 *) ac_try_echo=$ac_try;; 11369esac 11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11371 (eval "$ac_link") 2>conftest.er1 11372 ac_status=$? 11373 grep -v '^ *+' conftest.er1 >conftest.err 11374 rm -f conftest.er1 11375 cat conftest.err >&5 11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 (exit $ac_status); } && 11378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11379 { (case "(($ac_try" in 11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11381 *) ac_try_echo=$ac_try;; 11382esac 11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11384 (eval "$ac_try") 2>&5 11385 ac_status=$? 11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11387 (exit $ac_status); }; } && 11388 { ac_try='test -s conftest$ac_exeext' 11389 { (case "(($ac_try" in 11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11391 *) ac_try_echo=$ac_try;; 11392esac 11393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11394 (eval "$ac_try") 2>&5 11395 ac_status=$? 11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11397 (exit $ac_status); }; }; then 11398 11399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11400}'` 11401# Check for a 64-bit object if we didn't find anything. 11402if 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; } 11403}'`; fi 11404else 11405 echo "$as_me: failed program was:" >&5 11406sed 's/^/| /' conftest.$ac_ext >&5 11407 11408 11409fi 11410 11411rm -f core conftest.err conftest.$ac_objext \ 11412 conftest$ac_exeext conftest.$ac_ext 11413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11414 11415 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11416 11417 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" 11418 else 11419 if test "$host_cpu" = ia64; then 11420 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11421 allow_undefined_flag_CXX="-z nodefs" 11422 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" 11423 else 11424 # Determine the default libpath from the value encoded in an empty executable. 11425 cat >conftest.$ac_ext <<_ACEOF 11426/* confdefs.h. */ 11427_ACEOF 11428cat confdefs.h >>conftest.$ac_ext 11429cat >>conftest.$ac_ext <<_ACEOF 11430/* end confdefs.h. */ 11431 11432int 11433main () 11434{ 11435 11436 ; 11437 return 0; 11438} 11439_ACEOF 11440rm -f conftest.$ac_objext conftest$ac_exeext 11441if { (ac_try="$ac_link" 11442case "(($ac_try" in 11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11444 *) ac_try_echo=$ac_try;; 11445esac 11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11447 (eval "$ac_link") 2>conftest.er1 11448 ac_status=$? 11449 grep -v '^ *+' conftest.er1 >conftest.err 11450 rm -f conftest.er1 11451 cat conftest.err >&5 11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11453 (exit $ac_status); } && 11454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11455 { (case "(($ac_try" in 11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11457 *) ac_try_echo=$ac_try;; 11458esac 11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11460 (eval "$ac_try") 2>&5 11461 ac_status=$? 11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11463 (exit $ac_status); }; } && 11464 { ac_try='test -s conftest$ac_exeext' 11465 { (case "(($ac_try" in 11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11467 *) ac_try_echo=$ac_try;; 11468esac 11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11470 (eval "$ac_try") 2>&5 11471 ac_status=$? 11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11473 (exit $ac_status); }; }; then 11474 11475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11476}'` 11477# Check for a 64-bit object if we didn't find anything. 11478if 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; } 11479}'`; fi 11480else 11481 echo "$as_me: failed program was:" >&5 11482sed 's/^/| /' conftest.$ac_ext >&5 11483 11484 11485fi 11486 11487rm -f core conftest.err conftest.$ac_objext \ 11488 conftest$ac_exeext conftest.$ac_ext 11489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11490 11491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11492 # Warning - without using the other run time loading flags, 11493 # -berok will link without error, but may produce a broken library. 11494 no_undefined_flag_CXX=' ${wl}-bernotok' 11495 allow_undefined_flag_CXX=' ${wl}-berok' 11496 # Exported symbols can be pulled into shared objects from archives 11497 whole_archive_flag_spec_CXX='$convenience' 11498 archive_cmds_need_lc_CXX=yes 11499 # This is similar to how AIX traditionally builds its shared libraries. 11500 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' 11501 fi 11502 fi 11503 ;; 11504 11505 beos*) 11506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11507 allow_undefined_flag_CXX=unsupported 11508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11509 # support --undefined. This deserves some investigation. FIXME 11510 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11511 else 11512 ld_shlibs_CXX=no 11513 fi 11514 ;; 11515 11516 chorus*) 11517 case $cc_basename in 11518 *) 11519 # FIXME: insert proper C++ library support 11520 ld_shlibs_CXX=no 11521 ;; 11522 esac 11523 ;; 11524 11525 cygwin* | mingw* | pw32*) 11526 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11527 # as there is no search path for DLLs. 11528 hardcode_libdir_flag_spec_CXX='-L$libdir' 11529 allow_undefined_flag_CXX=unsupported 11530 always_export_symbols_CXX=no 11531 enable_shared_with_static_runtimes_CXX=yes 11532 11533 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11534 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' 11535 # If the export-symbols file already is a .def file (1st line 11536 # is EXPORTS), use it as is; otherwise, prepend... 11537 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11538 cp $export_symbols $output_objdir/$soname.def; 11539 else 11540 echo EXPORTS > $output_objdir/$soname.def; 11541 cat $export_symbols >> $output_objdir/$soname.def; 11542 fi~ 11543 $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' 11544 else 11545 ld_shlibs_CXX=no 11546 fi 11547 ;; 11548 darwin* | rhapsody*) 11549 case $host_os in 11550 rhapsody* | darwin1.[012]) 11551 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11552 ;; 11553 *) # Darwin 1.3 on 11554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11555 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11556 else 11557 case ${MACOSX_DEPLOYMENT_TARGET} in 11558 10.[012]) 11559 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11560 ;; 11561 10.*) 11562 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11563 ;; 11564 esac 11565 fi 11566 ;; 11567 esac 11568 archive_cmds_need_lc_CXX=no 11569 hardcode_direct_CXX=no 11570 hardcode_automatic_CXX=yes 11571 hardcode_shlibpath_var_CXX=unsupported 11572 whole_archive_flag_spec_CXX='' 11573 link_all_deplibs_CXX=yes 11574 11575 if test "$GXX" = yes ; then 11576 lt_int_apple_cc_single_mod=no 11577 output_verbose_link_cmd='echo' 11578 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11579 lt_int_apple_cc_single_mod=yes 11580 fi 11581 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11582 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11583 else 11584 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' 11585 fi 11586 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11588 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11589 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}' 11590 else 11591 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}' 11592 fi 11593 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}' 11594 else 11595 case $cc_basename in 11596 xlc*) 11597 output_verbose_link_cmd='echo' 11598 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' 11599 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11601 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}' 11602 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}' 11603 ;; 11604 *) 11605 ld_shlibs_CXX=no 11606 ;; 11607 esac 11608 fi 11609 ;; 11610 11611 dgux*) 11612 case $cc_basename in 11613 ec++*) 11614 # FIXME: insert proper C++ library support 11615 ld_shlibs_CXX=no 11616 ;; 11617 ghcx*) 11618 # Green Hills C++ Compiler 11619 # FIXME: insert proper C++ library support 11620 ld_shlibs_CXX=no 11621 ;; 11622 *) 11623 # FIXME: insert proper C++ library support 11624 ld_shlibs_CXX=no 11625 ;; 11626 esac 11627 ;; 11628 freebsd[12]*) 11629 # C++ shared libraries reported to be fairly broken before switch to ELF 11630 ld_shlibs_CXX=no 11631 ;; 11632 freebsd-elf*) 11633 archive_cmds_need_lc_CXX=no 11634 ;; 11635 freebsd* | dragonfly*) 11636 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11637 # conventions 11638 ld_shlibs_CXX=yes 11639 ;; 11640 gnu*) 11641 ;; 11642 hpux9*) 11643 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11644 hardcode_libdir_separator_CXX=: 11645 export_dynamic_flag_spec_CXX='${wl}-E' 11646 hardcode_direct_CXX=yes 11647 hardcode_minus_L_CXX=yes # Not in the search PATH, 11648 # but as the default 11649 # location of the library. 11650 11651 case $cc_basename in 11652 CC*) 11653 # FIXME: insert proper C++ library support 11654 ld_shlibs_CXX=no 11655 ;; 11656 aCC*) 11657 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' 11658 # Commands to make compiler produce verbose output that lists 11659 # what "hidden" libraries, object files and flags are used when 11660 # linking a shared library. 11661 # 11662 # There doesn't appear to be a way to prevent this compiler from 11663 # explicitly linking system object files so we need to strip them 11664 # from the output so that they don't get included in the library 11665 # dependencies. 11666 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' 11667 ;; 11668 *) 11669 if test "$GXX" = yes; then 11670 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' 11671 else 11672 # FIXME: insert proper C++ library support 11673 ld_shlibs_CXX=no 11674 fi 11675 ;; 11676 esac 11677 ;; 11678 hpux10*|hpux11*) 11679 if test $with_gnu_ld = no; then 11680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11681 hardcode_libdir_separator_CXX=: 11682 11683 case $host_cpu in 11684 hppa*64*|ia64*) 11685 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11686 ;; 11687 *) 11688 export_dynamic_flag_spec_CXX='${wl}-E' 11689 ;; 11690 esac 11691 fi 11692 case $host_cpu in 11693 hppa*64*|ia64*) 11694 hardcode_direct_CXX=no 11695 hardcode_shlibpath_var_CXX=no 11696 ;; 11697 *) 11698 hardcode_direct_CXX=yes 11699 hardcode_minus_L_CXX=yes # Not in the search PATH, 11700 # but as the default 11701 # location of the library. 11702 ;; 11703 esac 11704 11705 case $cc_basename in 11706 CC*) 11707 # FIXME: insert proper C++ library support 11708 ld_shlibs_CXX=no 11709 ;; 11710 aCC*) 11711 case $host_cpu in 11712 hppa*64*) 11713 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11714 ;; 11715 ia64*) 11716 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11717 ;; 11718 *) 11719 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11720 ;; 11721 esac 11722 # Commands to make compiler produce verbose output that lists 11723 # what "hidden" libraries, object files and flags are used when 11724 # linking a shared library. 11725 # 11726 # There doesn't appear to be a way to prevent this compiler from 11727 # explicitly linking system object files so we need to strip them 11728 # from the output so that they don't get included in the library 11729 # dependencies. 11730 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' 11731 ;; 11732 *) 11733 if test "$GXX" = yes; then 11734 if test $with_gnu_ld = no; then 11735 case $host_cpu in 11736 hppa*64*) 11737 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11738 ;; 11739 ia64*) 11740 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11741 ;; 11742 *) 11743 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' 11744 ;; 11745 esac 11746 fi 11747 else 11748 # FIXME: insert proper C++ library support 11749 ld_shlibs_CXX=no 11750 fi 11751 ;; 11752 esac 11753 ;; 11754 interix3*) 11755 hardcode_direct_CXX=no 11756 hardcode_shlibpath_var_CXX=no 11757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11758 export_dynamic_flag_spec_CXX='${wl}-E' 11759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11760 # Instead, shared libraries are loaded at an image base (0x10000000 by 11761 # default) and relocated if they conflict, which is a slow very memory 11762 # consuming and fragmenting process. To avoid this, we pick a random, 11763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11764 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11765 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' 11766 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' 11767 ;; 11768 irix5* | irix6*) 11769 case $cc_basename in 11770 CC*) 11771 # SGI C++ 11772 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' 11773 11774 # Archives containing C++ object files must be created using 11775 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11776 # necessary to make sure instantiated templates are included 11777 # in the archive. 11778 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11779 ;; 11780 *) 11781 if test "$GXX" = yes; then 11782 if test "$with_gnu_ld" = no; then 11783 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' 11784 else 11785 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' 11786 fi 11787 fi 11788 link_all_deplibs_CXX=yes 11789 ;; 11790 esac 11791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11792 hardcode_libdir_separator_CXX=: 11793 ;; 11794 linux* | k*bsd*-gnu) 11795 case $cc_basename in 11796 KCC*) 11797 # Kuck and Associates, Inc. (KAI) C++ Compiler 11798 11799 # KCC will only create a shared library if the output file 11800 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11801 # to its proper name (with version) after linking. 11802 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' 11803 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' 11804 # Commands to make compiler produce verbose output that lists 11805 # what "hidden" libraries, object files and flags are used when 11806 # linking a shared library. 11807 # 11808 # There doesn't appear to be a way to prevent this compiler from 11809 # explicitly linking system object files so we need to strip them 11810 # from the output so that they don't get included in the library 11811 # dependencies. 11812 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' 11813 11814 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11816 11817 # Archives containing C++ object files must be created using 11818 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11819 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11820 ;; 11821 icpc*) 11822 # Intel C++ 11823 with_gnu_ld=yes 11824 # version 8.0 and above of icpc choke on multiply defined symbols 11825 # if we add $predep_objects and $postdep_objects, however 7.1 and 11826 # earlier do not add the objects themselves. 11827 case `$CC -V 2>&1` in 11828 *"Version 7."*) 11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11830 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' 11831 ;; 11832 *) # Version 8.0 or newer 11833 tmp_idyn= 11834 case $host_cpu in 11835 ia64*) tmp_idyn=' -i_dynamic';; 11836 esac 11837 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11838 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' 11839 ;; 11840 esac 11841 archive_cmds_need_lc_CXX=no 11842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11844 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11845 ;; 11846 pgCC*) 11847 # Portland Group C++ compiler 11848 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11849 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' 11850 11851 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11852 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11853 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' 11854 ;; 11855 cxx*) 11856 # Compaq C++ 11857 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11858 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' 11859 11860 runpath_var=LD_RUN_PATH 11861 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11862 hardcode_libdir_separator_CXX=: 11863 11864 # Commands to make compiler produce verbose output that lists 11865 # what "hidden" libraries, object files and flags are used when 11866 # linking a shared library. 11867 # 11868 # There doesn't appear to be a way to prevent this compiler from 11869 # explicitly linking system object files so we need to strip them 11870 # from the output so that they don't get included in the library 11871 # dependencies. 11872 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' 11873 ;; 11874 esac 11875 ;; 11876 lynxos*) 11877 # FIXME: insert proper C++ library support 11878 ld_shlibs_CXX=no 11879 ;; 11880 m88k*) 11881 # FIXME: insert proper C++ library support 11882 ld_shlibs_CXX=no 11883 ;; 11884 mvs*) 11885 case $cc_basename in 11886 cxx*) 11887 # FIXME: insert proper C++ library support 11888 ld_shlibs_CXX=no 11889 ;; 11890 *) 11891 # FIXME: insert proper C++ library support 11892 ld_shlibs_CXX=no 11893 ;; 11894 esac 11895 ;; 11896 netbsd* | netbsdelf*-gnu) 11897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11898 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11899 wlarc= 11900 hardcode_libdir_flag_spec_CXX='-R$libdir' 11901 hardcode_direct_CXX=yes 11902 hardcode_shlibpath_var_CXX=no 11903 fi 11904 # Workaround some broken pre-1.5 toolchains 11905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11906 ;; 11907 openbsd2*) 11908 # C++ shared libraries are fairly broken 11909 ld_shlibs_CXX=no 11910 ;; 11911 openbsd*) 11912 hardcode_direct_CXX=yes 11913 hardcode_shlibpath_var_CXX=no 11914 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11917 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11918 export_dynamic_flag_spec_CXX='${wl}-E' 11919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11920 fi 11921 output_verbose_link_cmd='echo' 11922 ;; 11923 osf3*) 11924 case $cc_basename in 11925 KCC*) 11926 # Kuck and Associates, Inc. (KAI) C++ Compiler 11927 11928 # KCC will only create a shared library if the output file 11929 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11930 # to its proper name (with version) after linking. 11931 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' 11932 11933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11934 hardcode_libdir_separator_CXX=: 11935 11936 # Archives containing C++ object files must be created using 11937 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11938 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11939 11940 ;; 11941 RCC*) 11942 # Rational C++ 2.4.1 11943 # FIXME: insert proper C++ library support 11944 ld_shlibs_CXX=no 11945 ;; 11946 cxx*) 11947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11948 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' 11949 11950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11951 hardcode_libdir_separator_CXX=: 11952 11953 # Commands to make compiler produce verbose output that lists 11954 # what "hidden" libraries, object files and flags are used when 11955 # linking a shared library. 11956 # 11957 # There doesn't appear to be a way to prevent this compiler from 11958 # explicitly linking system object files so we need to strip them 11959 # from the output so that they don't get included in the library 11960 # dependencies. 11961 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' 11962 ;; 11963 *) 11964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11965 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11966 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' 11967 11968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11969 hardcode_libdir_separator_CXX=: 11970 11971 # Commands to make compiler produce verbose output that lists 11972 # what "hidden" libraries, object files and flags are used when 11973 # linking a shared library. 11974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11975 11976 else 11977 # FIXME: insert proper C++ library support 11978 ld_shlibs_CXX=no 11979 fi 11980 ;; 11981 esac 11982 ;; 11983 osf4* | osf5*) 11984 case $cc_basename in 11985 KCC*) 11986 # Kuck and Associates, Inc. (KAI) C++ Compiler 11987 11988 # KCC will only create a shared library if the output file 11989 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11990 # to its proper name (with version) after linking. 11991 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' 11992 11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11994 hardcode_libdir_separator_CXX=: 11995 11996 # Archives containing C++ object files must be created using 11997 # the KAI C++ compiler. 11998 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11999 ;; 12000 RCC*) 12001 # Rational C++ 2.4.1 12002 # FIXME: insert proper C++ library support 12003 ld_shlibs_CXX=no 12004 ;; 12005 cxx*) 12006 allow_undefined_flag_CXX=' -expect_unresolved \*' 12007 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' 12008 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12009 echo "-hidden">> $lib.exp~ 12010 $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~ 12011 $rm $lib.exp' 12012 12013 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12014 hardcode_libdir_separator_CXX=: 12015 12016 # Commands to make compiler produce verbose output that lists 12017 # what "hidden" libraries, object files and flags are used when 12018 # linking a shared library. 12019 # 12020 # There doesn't appear to be a way to prevent this compiler from 12021 # explicitly linking system object files so we need to strip them 12022 # from the output so that they don't get included in the library 12023 # dependencies. 12024 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' 12025 ;; 12026 *) 12027 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12028 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12029 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' 12030 12031 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12032 hardcode_libdir_separator_CXX=: 12033 12034 # Commands to make compiler produce verbose output that lists 12035 # what "hidden" libraries, object files and flags are used when 12036 # linking a shared library. 12037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12038 12039 else 12040 # FIXME: insert proper C++ library support 12041 ld_shlibs_CXX=no 12042 fi 12043 ;; 12044 esac 12045 ;; 12046 psos*) 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 sunos4*) 12051 case $cc_basename in 12052 CC*) 12053 # Sun C++ 4.x 12054 # FIXME: insert proper C++ library support 12055 ld_shlibs_CXX=no 12056 ;; 12057 lcc*) 12058 # Lucid 12059 # FIXME: insert proper C++ library support 12060 ld_shlibs_CXX=no 12061 ;; 12062 *) 12063 # FIXME: insert proper C++ library support 12064 ld_shlibs_CXX=no 12065 ;; 12066 esac 12067 ;; 12068 solaris*) 12069 case $cc_basename in 12070 CC*) 12071 # Sun C++ 4.2, 5.x and Centerline C++ 12072 archive_cmds_need_lc_CXX=yes 12073 no_undefined_flag_CXX=' -zdefs' 12074 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12075 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12076 $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' 12077 12078 hardcode_libdir_flag_spec_CXX='-R$libdir' 12079 hardcode_shlibpath_var_CXX=no 12080 case $host_os in 12081 solaris2.[0-5] | solaris2.[0-5].*) ;; 12082 *) 12083 # The C++ compiler is used as linker so we must use $wl 12084 # flag to pass the commands to the underlying system 12085 # linker. We must also pass each convience library through 12086 # to the system linker between allextract/defaultextract. 12087 # The C++ compiler will combine linker options so we 12088 # cannot just pass the convience library names through 12089 # without $wl. 12090 # Supported since Solaris 2.6 (maybe 2.5.1?) 12091 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' 12092 ;; 12093 esac 12094 link_all_deplibs_CXX=yes 12095 12096 output_verbose_link_cmd='echo' 12097 12098 # Archives containing C++ object files must be created using 12099 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12100 # necessary to make sure instantiated templates are included 12101 # in the archive. 12102 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12103 ;; 12104 gcx*) 12105 # Green Hills C++ Compiler 12106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12107 12108 # The C++ compiler must be used to create the archive. 12109 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12110 ;; 12111 *) 12112 # GNU C++ compiler with Solaris linker 12113 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12114 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12115 if $CC --version | grep -v '^2\.7' > /dev/null; then 12116 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12117 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12118 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12119 12120 # Commands to make compiler produce verbose output that lists 12121 # what "hidden" libraries, object files and flags are used when 12122 # linking a shared library. 12123 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12124 else 12125 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12126 # platform. 12127 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12128 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12129 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12130 12131 # Commands to make compiler produce verbose output that lists 12132 # what "hidden" libraries, object files and flags are used when 12133 # linking a shared library. 12134 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12135 fi 12136 12137 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12138 fi 12139 ;; 12140 esac 12141 ;; 12142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12143 no_undefined_flag_CXX='${wl}-z,text' 12144 archive_cmds_need_lc_CXX=no 12145 hardcode_shlibpath_var_CXX=no 12146 runpath_var='LD_RUN_PATH' 12147 12148 case $cc_basename in 12149 CC*) 12150 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12151 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12152 ;; 12153 *) 12154 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12155 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12156 ;; 12157 esac 12158 ;; 12159 sysv5* | sco3.2v5* | sco5v6*) 12160 # Note: We can NOT use -z defs as we might desire, because we do not 12161 # link with -lc, and that would cause any symbols used from libc to 12162 # always be unresolved, which means just about no library would 12163 # ever link correctly. If we're not using GNU ld we use -z text 12164 # though, which does catch some bad symbols but isn't as heavy-handed 12165 # as -z defs. 12166 # For security reasons, it is highly recommended that you always 12167 # use absolute paths for naming shared libraries, and exclude the 12168 # DT_RUNPATH tag from executables and libraries. But doing so 12169 # requires that you compile everything twice, which is a pain. 12170 # So that behaviour is only enabled if SCOABSPATH is set to a 12171 # non-empty value in the environment. Most likely only useful for 12172 # creating official distributions of packages. 12173 # This is a hack until libtool officially supports absolute path 12174 # names for shared libraries. 12175 no_undefined_flag_CXX='${wl}-z,text' 12176 allow_undefined_flag_CXX='${wl}-z,nodefs' 12177 archive_cmds_need_lc_CXX=no 12178 hardcode_shlibpath_var_CXX=no 12179 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12180 hardcode_libdir_separator_CXX=':' 12181 link_all_deplibs_CXX=yes 12182 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12183 runpath_var='LD_RUN_PATH' 12184 12185 case $cc_basename in 12186 CC*) 12187 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12189 ;; 12190 *) 12191 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12193 ;; 12194 esac 12195 ;; 12196 tandem*) 12197 case $cc_basename in 12198 NCC*) 12199 # NonStop-UX NCC 3.20 12200 # FIXME: insert proper C++ library support 12201 ld_shlibs_CXX=no 12202 ;; 12203 *) 12204 # FIXME: insert proper C++ library support 12205 ld_shlibs_CXX=no 12206 ;; 12207 esac 12208 ;; 12209 vxworks*) 12210 # FIXME: insert proper C++ library support 12211 ld_shlibs_CXX=no 12212 ;; 12213 *) 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 ;; 12217esac 12218{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12219echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12220test "$ld_shlibs_CXX" = no && can_build_shared=no 12221 12222GCC_CXX="$GXX" 12223LD_CXX="$LD" 12224 12225 12226cat > conftest.$ac_ext <<EOF 12227class Foo 12228{ 12229public: 12230 Foo (void) { a = 0; } 12231private: 12232 int a; 12233}; 12234EOF 12235 12236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12237 (eval $ac_compile) 2>&5 12238 ac_status=$? 12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12240 (exit $ac_status); }; then 12241 # Parse the compiler output and extract the necessary 12242 # objects, libraries and library flags. 12243 12244 # Sentinel used to keep track of whether or not we are before 12245 # the conftest object file. 12246 pre_test_object_deps_done=no 12247 12248 # The `*' in the case matches for architectures that use `case' in 12249 # $output_verbose_cmd can trigger glob expansion during the loop 12250 # eval without this substitution. 12251 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12252 12253 for p in `eval $output_verbose_link_cmd`; do 12254 case $p in 12255 12256 -L* | -R* | -l*) 12257 # Some compilers place space between "-{L,R}" and the path. 12258 # Remove the space. 12259 if test $p = "-L" \ 12260 || test $p = "-R"; then 12261 prev=$p 12262 continue 12263 else 12264 prev= 12265 fi 12266 12267 if test "$pre_test_object_deps_done" = no; then 12268 case $p in 12269 -L* | -R*) 12270 # Internal compiler library paths should come after those 12271 # provided the user. The postdeps already come after the 12272 # user supplied libs so there is no need to process them. 12273 if test -z "$compiler_lib_search_path_CXX"; then 12274 compiler_lib_search_path_CXX="${prev}${p}" 12275 else 12276 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12277 fi 12278 ;; 12279 # The "-l" case would never come before the object being 12280 # linked, so don't bother handling this case. 12281 esac 12282 else 12283 if test -z "$postdeps_CXX"; then 12284 postdeps_CXX="${prev}${p}" 12285 else 12286 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12287 fi 12288 fi 12289 ;; 12290 12291 *.$objext) 12292 # This assumes that the test object file only shows up 12293 # once in the compiler output. 12294 if test "$p" = "conftest.$objext"; then 12295 pre_test_object_deps_done=yes 12296 continue 12297 fi 12298 12299 if test "$pre_test_object_deps_done" = no; then 12300 if test -z "$predep_objects_CXX"; then 12301 predep_objects_CXX="$p" 12302 else 12303 predep_objects_CXX="$predep_objects_CXX $p" 12304 fi 12305 else 12306 if test -z "$postdep_objects_CXX"; then 12307 postdep_objects_CXX="$p" 12308 else 12309 postdep_objects_CXX="$postdep_objects_CXX $p" 12310 fi 12311 fi 12312 ;; 12313 12314 *) ;; # Ignore the rest. 12315 12316 esac 12317 done 12318 12319 # Clean up. 12320 rm -f a.out a.exe 12321else 12322 echo "libtool.m4: error: problem compiling CXX test program" 12323fi 12324 12325$rm -f confest.$objext 12326 12327# PORTME: override above test on systems where it is broken 12328case $host_os in 12329interix3*) 12330 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12331 # hack all around it, let's just trust "g++" to DTRT. 12332 predep_objects_CXX= 12333 postdep_objects_CXX= 12334 postdeps_CXX= 12335 ;; 12336 12337solaris*) 12338 case $cc_basename in 12339 CC*) 12340 # Adding this requires a known-good setup of shared libraries for 12341 # Sun compiler versions before 5.6, else PIC objects from an old 12342 # archive will be linked into the output, leading to subtle bugs. 12343 postdeps_CXX='-lCstd -lCrun' 12344 ;; 12345 esac 12346 ;; 12347esac 12348 12349 12350case " $postdeps_CXX " in 12351*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12352esac 12353 12354lt_prog_compiler_wl_CXX= 12355lt_prog_compiler_pic_CXX= 12356lt_prog_compiler_static_CXX= 12357 12358{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12360 12361 # C++ specific cases for pic, static, wl, etc. 12362 if test "$GXX" = yes; then 12363 lt_prog_compiler_wl_CXX='-Wl,' 12364 lt_prog_compiler_static_CXX='-static' 12365 12366 case $host_os in 12367 aix*) 12368 # All AIX code is PIC. 12369 if test "$host_cpu" = ia64; then 12370 # AIX 5 now supports IA64 processor 12371 lt_prog_compiler_static_CXX='-Bstatic' 12372 fi 12373 ;; 12374 amigaos*) 12375 # FIXME: we need at least 68020 code to build shared libraries, but 12376 # adding the `-m68020' flag to GCC prevents building anything better, 12377 # like `-m68040'. 12378 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12379 ;; 12380 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12381 # PIC is the default for these OSes. 12382 ;; 12383 mingw* | os2* | pw32*) 12384 # This hack is so that the source file can tell whether it is being 12385 # built for inclusion in a dll (and should export symbols for example). 12386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12387 ;; 12388 darwin* | rhapsody*) 12389 # PIC is the default on this platform 12390 # Common symbols not allowed in MH_DYLIB files 12391 lt_prog_compiler_pic_CXX='-fno-common' 12392 ;; 12393 *djgpp*) 12394 # DJGPP does not support shared libraries at all 12395 lt_prog_compiler_pic_CXX= 12396 ;; 12397 interix3*) 12398 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12399 # Instead, we relocate shared libraries at runtime. 12400 ;; 12401 sysv4*MP*) 12402 if test -d /usr/nec; then 12403 lt_prog_compiler_pic_CXX=-Kconform_pic 12404 fi 12405 ;; 12406 hpux*) 12407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12408 # not for PA HP-UX. 12409 case $host_cpu in 12410 hppa*64*|ia64*) 12411 ;; 12412 *) 12413 lt_prog_compiler_pic_CXX='-fPIC' 12414 ;; 12415 esac 12416 ;; 12417 *) 12418 lt_prog_compiler_pic_CXX='-fPIC' 12419 ;; 12420 esac 12421 else 12422 case $host_os in 12423 aix4* | aix5*) 12424 # All AIX code is PIC. 12425 if test "$host_cpu" = ia64; then 12426 # AIX 5 now supports IA64 processor 12427 lt_prog_compiler_static_CXX='-Bstatic' 12428 else 12429 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12430 fi 12431 ;; 12432 chorus*) 12433 case $cc_basename in 12434 cxch68*) 12435 # Green Hills C++ Compiler 12436 # _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" 12437 ;; 12438 esac 12439 ;; 12440 darwin*) 12441 # PIC is the default on this platform 12442 # Common symbols not allowed in MH_DYLIB files 12443 case $cc_basename in 12444 xlc*) 12445 lt_prog_compiler_pic_CXX='-qnocommon' 12446 lt_prog_compiler_wl_CXX='-Wl,' 12447 ;; 12448 esac 12449 ;; 12450 dgux*) 12451 case $cc_basename in 12452 ec++*) 12453 lt_prog_compiler_pic_CXX='-KPIC' 12454 ;; 12455 ghcx*) 12456 # Green Hills C++ Compiler 12457 lt_prog_compiler_pic_CXX='-pic' 12458 ;; 12459 *) 12460 ;; 12461 esac 12462 ;; 12463 freebsd* | dragonfly*) 12464 # FreeBSD uses GNU C++ 12465 ;; 12466 hpux9* | hpux10* | hpux11*) 12467 case $cc_basename in 12468 CC*) 12469 lt_prog_compiler_wl_CXX='-Wl,' 12470 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12471 if test "$host_cpu" != ia64; then 12472 lt_prog_compiler_pic_CXX='+Z' 12473 fi 12474 ;; 12475 aCC*) 12476 lt_prog_compiler_wl_CXX='-Wl,' 12477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12478 case $host_cpu in 12479 hppa*64*|ia64*) 12480 # +Z the default 12481 ;; 12482 *) 12483 lt_prog_compiler_pic_CXX='+Z' 12484 ;; 12485 esac 12486 ;; 12487 *) 12488 ;; 12489 esac 12490 ;; 12491 interix*) 12492 # This is c89, which is MS Visual C++ (no shared libs) 12493 # Anyone wants to do a port? 12494 ;; 12495 irix5* | irix6* | nonstopux*) 12496 case $cc_basename in 12497 CC*) 12498 lt_prog_compiler_wl_CXX='-Wl,' 12499 lt_prog_compiler_static_CXX='-non_shared' 12500 # CC pic flag -KPIC is the default. 12501 ;; 12502 *) 12503 ;; 12504 esac 12505 ;; 12506 linux* | k*bsd*-gnu) 12507 case $cc_basename in 12508 KCC*) 12509 # KAI C++ Compiler 12510 lt_prog_compiler_wl_CXX='--backend -Wl,' 12511 lt_prog_compiler_pic_CXX='-fPIC' 12512 ;; 12513 icpc* | ecpc*) 12514 # Intel C++ 12515 lt_prog_compiler_wl_CXX='-Wl,' 12516 lt_prog_compiler_pic_CXX='-KPIC' 12517 lt_prog_compiler_static_CXX='-static' 12518 ;; 12519 pgCC*) 12520 # Portland Group C++ compiler. 12521 lt_prog_compiler_wl_CXX='-Wl,' 12522 lt_prog_compiler_pic_CXX='-fpic' 12523 lt_prog_compiler_static_CXX='-Bstatic' 12524 ;; 12525 cxx*) 12526 # Compaq C++ 12527 # Make sure the PIC flag is empty. It appears that all Alpha 12528 # Linux and Compaq Tru64 Unix objects are PIC. 12529 lt_prog_compiler_pic_CXX= 12530 lt_prog_compiler_static_CXX='-non_shared' 12531 ;; 12532 *) 12533 ;; 12534 esac 12535 ;; 12536 lynxos*) 12537 ;; 12538 m88k*) 12539 ;; 12540 mvs*) 12541 case $cc_basename in 12542 cxx*) 12543 lt_prog_compiler_pic_CXX='-W c,exportall' 12544 ;; 12545 *) 12546 ;; 12547 esac 12548 ;; 12549 netbsd* | netbsdelf*-gnu) 12550 ;; 12551 osf3* | osf4* | osf5*) 12552 case $cc_basename in 12553 KCC*) 12554 lt_prog_compiler_wl_CXX='--backend -Wl,' 12555 ;; 12556 RCC*) 12557 # Rational C++ 2.4.1 12558 lt_prog_compiler_pic_CXX='-pic' 12559 ;; 12560 cxx*) 12561 # Digital/Compaq C++ 12562 lt_prog_compiler_wl_CXX='-Wl,' 12563 # Make sure the PIC flag is empty. It appears that all Alpha 12564 # Linux and Compaq Tru64 Unix objects are PIC. 12565 lt_prog_compiler_pic_CXX= 12566 lt_prog_compiler_static_CXX='-non_shared' 12567 ;; 12568 *) 12569 ;; 12570 esac 12571 ;; 12572 psos*) 12573 ;; 12574 solaris*) 12575 case $cc_basename in 12576 CC*) 12577 # Sun C++ 4.2, 5.x and Centerline C++ 12578 lt_prog_compiler_pic_CXX='-KPIC' 12579 lt_prog_compiler_static_CXX='-Bstatic' 12580 lt_prog_compiler_wl_CXX='-Qoption ld ' 12581 ;; 12582 gcx*) 12583 # Green Hills C++ Compiler 12584 lt_prog_compiler_pic_CXX='-PIC' 12585 ;; 12586 *) 12587 ;; 12588 esac 12589 ;; 12590 sunos4*) 12591 case $cc_basename in 12592 CC*) 12593 # Sun C++ 4.x 12594 lt_prog_compiler_pic_CXX='-pic' 12595 lt_prog_compiler_static_CXX='-Bstatic' 12596 ;; 12597 lcc*) 12598 # Lucid 12599 lt_prog_compiler_pic_CXX='-pic' 12600 ;; 12601 *) 12602 ;; 12603 esac 12604 ;; 12605 tandem*) 12606 case $cc_basename in 12607 NCC*) 12608 # NonStop-UX NCC 3.20 12609 lt_prog_compiler_pic_CXX='-KPIC' 12610 ;; 12611 *) 12612 ;; 12613 esac 12614 ;; 12615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12616 case $cc_basename in 12617 CC*) 12618 lt_prog_compiler_wl_CXX='-Wl,' 12619 lt_prog_compiler_pic_CXX='-KPIC' 12620 lt_prog_compiler_static_CXX='-Bstatic' 12621 ;; 12622 esac 12623 ;; 12624 vxworks*) 12625 ;; 12626 *) 12627 lt_prog_compiler_can_build_shared_CXX=no 12628 ;; 12629 esac 12630 fi 12631 12632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12633echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12634 12635# 12636# Check to make sure the PIC flag actually works. 12637# 12638if test -n "$lt_prog_compiler_pic_CXX"; then 12639 12640{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12642if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12643 echo $ECHO_N "(cached) $ECHO_C" >&6 12644else 12645 lt_prog_compiler_pic_works_CXX=no 12646 ac_outfile=conftest.$ac_objext 12647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12648 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12649 # Insert the option either (1) after the last *FLAGS variable, or 12650 # (2) before a word containing "conftest.", or (3) at the end. 12651 # Note that $ac_compile itself does not contain backslashes and begins 12652 # with a dollar sign (not a hyphen), so the echo should work correctly. 12653 # The option is referenced via a variable to avoid confusing sed. 12654 lt_compile=`echo "$ac_compile" | $SED \ 12655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12657 -e 's:$: $lt_compiler_flag:'` 12658 (eval echo "\"\$as_me:12658: $lt_compile\"" >&5) 12659 (eval "$lt_compile" 2>conftest.err) 12660 ac_status=$? 12661 cat conftest.err >&5 12662 echo "$as_me:12662: \$? = $ac_status" >&5 12663 if (exit $ac_status) && test -s "$ac_outfile"; then 12664 # The compiler can only warn and ignore the option if not recognized 12665 # So say no if there are warnings other than the usual output. 12666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12669 lt_prog_compiler_pic_works_CXX=yes 12670 fi 12671 fi 12672 $rm conftest* 12673 12674fi 12675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12676echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12677 12678if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12679 case $lt_prog_compiler_pic_CXX in 12680 "" | " "*) ;; 12681 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12682 esac 12683else 12684 lt_prog_compiler_pic_CXX= 12685 lt_prog_compiler_can_build_shared_CXX=no 12686fi 12687 12688fi 12689case $host_os in 12690 # For platforms which do not support PIC, -DPIC is meaningless: 12691 *djgpp*) 12692 lt_prog_compiler_pic_CXX= 12693 ;; 12694 *) 12695 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12696 ;; 12697esac 12698 12699# 12700# Check to make sure the static flag actually works. 12701# 12702wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12703{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12705if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12706 echo $ECHO_N "(cached) $ECHO_C" >&6 12707else 12708 lt_prog_compiler_static_works_CXX=no 12709 save_LDFLAGS="$LDFLAGS" 12710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12711 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12713 # The linker can only warn and ignore the option if not recognized 12714 # So say no if there are warnings 12715 if test -s conftest.err; then 12716 # Append any errors to the config.log. 12717 cat conftest.err 1>&5 12718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12720 if diff conftest.exp conftest.er2 >/dev/null; then 12721 lt_prog_compiler_static_works_CXX=yes 12722 fi 12723 else 12724 lt_prog_compiler_static_works_CXX=yes 12725 fi 12726 fi 12727 $rm conftest* 12728 LDFLAGS="$save_LDFLAGS" 12729 12730fi 12731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12732echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12733 12734if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12735 : 12736else 12737 lt_prog_compiler_static_CXX= 12738fi 12739 12740 12741{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12743if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12744 echo $ECHO_N "(cached) $ECHO_C" >&6 12745else 12746 lt_cv_prog_compiler_c_o_CXX=no 12747 $rm -r conftest 2>/dev/null 12748 mkdir conftest 12749 cd conftest 12750 mkdir out 12751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12752 12753 lt_compiler_flag="-o out/conftest2.$ac_objext" 12754 # Insert the option either (1) after the last *FLAGS variable, or 12755 # (2) before a word containing "conftest.", or (3) at the end. 12756 # Note that $ac_compile itself does not contain backslashes and begins 12757 # with a dollar sign (not a hyphen), so the echo should work correctly. 12758 lt_compile=`echo "$ac_compile" | $SED \ 12759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12761 -e 's:$: $lt_compiler_flag:'` 12762 (eval echo "\"\$as_me:12762: $lt_compile\"" >&5) 12763 (eval "$lt_compile" 2>out/conftest.err) 12764 ac_status=$? 12765 cat out/conftest.err >&5 12766 echo "$as_me:12766: \$? = $ac_status" >&5 12767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12768 then 12769 # The compiler can only warn and ignore the option if not recognized 12770 # So say no if there are warnings 12771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12774 lt_cv_prog_compiler_c_o_CXX=yes 12775 fi 12776 fi 12777 chmod u+w . 2>&5 12778 $rm conftest* 12779 # SGI C++ compiler will create directory out/ii_files/ for 12780 # template instantiation 12781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12782 $rm out/* && rmdir out 12783 cd .. 12784 rmdir conftest 12785 $rm conftest* 12786 12787fi 12788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12789echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12790 12791 12792hard_links="nottested" 12793if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12794 # do not overwrite the value of need_locks provided by the user 12795 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12797 hard_links=yes 12798 $rm conftest* 12799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12800 touch conftest.a 12801 ln conftest.a conftest.b 2>&5 || hard_links=no 12802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12803 { echo "$as_me:$LINENO: result: $hard_links" >&5 12804echo "${ECHO_T}$hard_links" >&6; } 12805 if test "$hard_links" = no; then 12806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12808 need_locks=warn 12809 fi 12810else 12811 need_locks=no 12812fi 12813 12814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12816 12817 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12818 case $host_os in 12819 aix4* | aix5*) 12820 # If we're using GNU nm, then we don't want the "-C" option. 12821 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12822 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12823 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' 12824 else 12825 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' 12826 fi 12827 ;; 12828 pw32*) 12829 export_symbols_cmds_CXX="$ltdll_cmds" 12830 ;; 12831 cygwin* | mingw*) 12832 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' 12833 ;; 12834 linux* | k*bsd*-gnu) 12835 link_all_deplibs_CXX=no 12836 ;; 12837 *) 12838 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12839 ;; 12840 esac 12841 12842{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12843echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12844test "$ld_shlibs_CXX" = no && can_build_shared=no 12845 12846# 12847# Do we need to explicitly link libc? 12848# 12849case "x$archive_cmds_need_lc_CXX" in 12850x|xyes) 12851 # Assume -lc should be added 12852 archive_cmds_need_lc_CXX=yes 12853 12854 if test "$enable_shared" = yes && test "$GCC" = yes; then 12855 case $archive_cmds_CXX in 12856 *'~'*) 12857 # FIXME: we may have to deal with multi-command sequences. 12858 ;; 12859 '$CC '*) 12860 # Test whether the compiler implicitly links with -lc since on some 12861 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12862 # to ld, don't add -lc before -lgcc. 12863 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12864echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12865 $rm conftest* 12866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12867 12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12869 (eval $ac_compile) 2>&5 12870 ac_status=$? 12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12872 (exit $ac_status); } 2>conftest.err; then 12873 soname=conftest 12874 lib=conftest 12875 libobjs=conftest.$ac_objext 12876 deplibs= 12877 wl=$lt_prog_compiler_wl_CXX 12878 pic_flag=$lt_prog_compiler_pic_CXX 12879 compiler_flags=-v 12880 linker_flags=-v 12881 verstring= 12882 output_objdir=. 12883 libname=conftest 12884 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12885 allow_undefined_flag_CXX= 12886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12887 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12888 ac_status=$? 12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12890 (exit $ac_status); } 12891 then 12892 archive_cmds_need_lc_CXX=no 12893 else 12894 archive_cmds_need_lc_CXX=yes 12895 fi 12896 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12897 else 12898 cat conftest.err 1>&5 12899 fi 12900 $rm conftest* 12901 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12902echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12903 ;; 12904 esac 12905 fi 12906 ;; 12907esac 12908 12909{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12910echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12911library_names_spec= 12912libname_spec='lib$name' 12913soname_spec= 12914shrext_cmds=".so" 12915postinstall_cmds= 12916postuninstall_cmds= 12917finish_cmds= 12918finish_eval= 12919shlibpath_var= 12920shlibpath_overrides_runpath=unknown 12921version_type=none 12922dynamic_linker="$host_os ld.so" 12923sys_lib_dlsearch_path_spec="/lib /usr/lib" 12924if test "$GCC" = yes; then 12925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12927 # if the path contains ";" then we assume it to be the separator 12928 # otherwise default to the standard path separator (i.e. ":") - it is 12929 # assumed that no part of a normal pathname contains ";" but that should 12930 # okay in the real world where ";" in dirpaths is itself problematic. 12931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12932 else 12933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12934 fi 12935else 12936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12937fi 12938need_lib_prefix=unknown 12939hardcode_into_libs=no 12940 12941# when you set need_version to no, make sure it does not cause -set_version 12942# flags to be left without arguments 12943need_version=unknown 12944 12945case $host_os in 12946aix3*) 12947 version_type=linux 12948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12949 shlibpath_var=LIBPATH 12950 12951 # AIX 3 has no versioning support, so we append a major version to the name. 12952 soname_spec='${libname}${release}${shared_ext}$major' 12953 ;; 12954 12955aix4* | aix5*) 12956 version_type=linux 12957 need_lib_prefix=no 12958 need_version=no 12959 hardcode_into_libs=yes 12960 if test "$host_cpu" = ia64; then 12961 # AIX 5 supports IA64 12962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12963 shlibpath_var=LD_LIBRARY_PATH 12964 else 12965 # With GCC up to 2.95.x, collect2 would create an import file 12966 # for dependence libraries. The import file would start with 12967 # the line `#! .'. This would cause the generated library to 12968 # depend on `.', always an invalid library. This was fixed in 12969 # development snapshots of GCC prior to 3.0. 12970 case $host_os in 12971 aix4 | aix4.[01] | aix4.[01].*) 12972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12973 echo ' yes ' 12974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12975 : 12976 else 12977 can_build_shared=no 12978 fi 12979 ;; 12980 esac 12981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12982 # soname into executable. Probably we can add versioning support to 12983 # collect2, so additional links can be useful in future. 12984 if test "$aix_use_runtimelinking" = yes; then 12985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12986 # instead of lib<name>.a to let people know that these are not 12987 # typical AIX shared libraries. 12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12989 else 12990 # We preserve .a as extension for shared libraries through AIX4.2 12991 # and later when we are not doing run time linking. 12992 library_names_spec='${libname}${release}.a $libname.a' 12993 soname_spec='${libname}${release}${shared_ext}$major' 12994 fi 12995 shlibpath_var=LIBPATH 12996 fi 12997 ;; 12998 12999amigaos*) 13000 library_names_spec='$libname.ixlibrary $libname.a' 13001 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13002 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' 13003 ;; 13004 13005beos*) 13006 library_names_spec='${libname}${shared_ext}' 13007 dynamic_linker="$host_os ld.so" 13008 shlibpath_var=LIBRARY_PATH 13009 ;; 13010 13011bsdi[45]*) 13012 version_type=linux 13013 need_version=no 13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13015 soname_spec='${libname}${release}${shared_ext}$major' 13016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13017 shlibpath_var=LD_LIBRARY_PATH 13018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13020 # the default ld.so.conf also contains /usr/contrib/lib and 13021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13022 # libtool to hard-code these into programs 13023 ;; 13024 13025cygwin* | mingw* | pw32*) 13026 version_type=windows 13027 shrext_cmds=".dll" 13028 need_version=no 13029 need_lib_prefix=no 13030 13031 case $GCC,$host_os in 13032 yes,cygwin* | yes,mingw* | yes,pw32*) 13033 library_names_spec='$libname.dll.a' 13034 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13035 postinstall_cmds='base_file=`basename \${file}`~ 13036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13037 dldir=$destdir/`dirname \$dlpath`~ 13038 test -d \$dldir || mkdir -p \$dldir~ 13039 $install_prog $dir/$dlname \$dldir/$dlname~ 13040 chmod a+x \$dldir/$dlname' 13041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13042 dlpath=$dir/\$dldll~ 13043 $rm \$dlpath' 13044 shlibpath_overrides_runpath=yes 13045 13046 case $host_os in 13047 cygwin*) 13048 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13049 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13050 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13051 ;; 13052 mingw*) 13053 # MinGW DLLs use traditional 'lib' prefix 13054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13056 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13057 # It is most probably a Windows format PATH printed by 13058 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13059 # path with ; separators, and with drive letters. We can handle the 13060 # drive letters (cygwin fileutils understands them), so leave them, 13061 # especially as we might pass files found there to a mingw objdump, 13062 # which wouldn't understand a cygwinified path. Ahh. 13063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13064 else 13065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13066 fi 13067 ;; 13068 pw32*) 13069 # pw32 DLLs use 'pw' prefix rather than 'lib' 13070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13071 ;; 13072 esac 13073 ;; 13074 13075 *) 13076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13077 ;; 13078 esac 13079 dynamic_linker='Win32 ld.exe' 13080 # FIXME: first we should search . and the directory the executable is in 13081 shlibpath_var=PATH 13082 ;; 13083 13084darwin* | rhapsody*) 13085 dynamic_linker="$host_os dyld" 13086 version_type=darwin 13087 need_lib_prefix=no 13088 need_version=no 13089 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13090 soname_spec='${libname}${release}${major}$shared_ext' 13091 shlibpath_overrides_runpath=yes 13092 shlibpath_var=DYLD_LIBRARY_PATH 13093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13094 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13095 if test "$GCC" = yes; then 13096 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"` 13097 else 13098 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13099 fi 13100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13101 ;; 13102 13103dgux*) 13104 version_type=linux 13105 need_lib_prefix=no 13106 need_version=no 13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13108 soname_spec='${libname}${release}${shared_ext}$major' 13109 shlibpath_var=LD_LIBRARY_PATH 13110 ;; 13111 13112freebsd1*) 13113 dynamic_linker=no 13114 ;; 13115 13116freebsd* | dragonfly*) 13117 # DragonFly does not have aout. When/if they implement a new 13118 # versioning mechanism, adjust this. 13119 if test -x /usr/bin/objformat; then 13120 objformat=`/usr/bin/objformat` 13121 else 13122 case $host_os in 13123 freebsd[123]*) objformat=aout ;; 13124 *) objformat=elf ;; 13125 esac 13126 fi 13127 version_type=freebsd-$objformat 13128 case $version_type in 13129 freebsd-elf*) 13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13131 need_version=no 13132 need_lib_prefix=no 13133 ;; 13134 freebsd-*) 13135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13136 need_version=yes 13137 ;; 13138 esac 13139 shlibpath_var=LD_LIBRARY_PATH 13140 case $host_os in 13141 freebsd2*) 13142 shlibpath_overrides_runpath=yes 13143 ;; 13144 freebsd3.[01]* | freebsdelf3.[01]*) 13145 shlibpath_overrides_runpath=yes 13146 hardcode_into_libs=yes 13147 ;; 13148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13150 shlibpath_overrides_runpath=no 13151 hardcode_into_libs=yes 13152 ;; 13153 freebsd*) # from 4.6 on 13154 shlibpath_overrides_runpath=yes 13155 hardcode_into_libs=yes 13156 ;; 13157 esac 13158 ;; 13159 13160gnu*) 13161 version_type=linux 13162 need_lib_prefix=no 13163 need_version=no 13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13165 soname_spec='${libname}${release}${shared_ext}$major' 13166 shlibpath_var=LD_LIBRARY_PATH 13167 hardcode_into_libs=yes 13168 ;; 13169 13170hpux9* | hpux10* | hpux11*) 13171 # Give a soname corresponding to the major version so that dld.sl refuses to 13172 # link against other versions. 13173 version_type=sunos 13174 need_lib_prefix=no 13175 need_version=no 13176 case $host_cpu in 13177 ia64*) 13178 shrext_cmds='.so' 13179 hardcode_into_libs=yes 13180 dynamic_linker="$host_os dld.so" 13181 shlibpath_var=LD_LIBRARY_PATH 13182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13184 soname_spec='${libname}${release}${shared_ext}$major' 13185 if test "X$HPUX_IA64_MODE" = X32; then 13186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13187 else 13188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13189 fi 13190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13191 ;; 13192 hppa*64*) 13193 shrext_cmds='.sl' 13194 hardcode_into_libs=yes 13195 dynamic_linker="$host_os dld.sl" 13196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13199 soname_spec='${libname}${release}${shared_ext}$major' 13200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13202 ;; 13203 *) 13204 shrext_cmds='.sl' 13205 dynamic_linker="$host_os dld.sl" 13206 shlibpath_var=SHLIB_PATH 13207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13209 soname_spec='${libname}${release}${shared_ext}$major' 13210 ;; 13211 esac 13212 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13213 postinstall_cmds='chmod 555 $lib' 13214 ;; 13215 13216interix3*) 13217 version_type=linux 13218 need_lib_prefix=no 13219 need_version=no 13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13221 soname_spec='${libname}${release}${shared_ext}$major' 13222 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13223 shlibpath_var=LD_LIBRARY_PATH 13224 shlibpath_overrides_runpath=no 13225 hardcode_into_libs=yes 13226 ;; 13227 13228irix5* | irix6* | nonstopux*) 13229 case $host_os in 13230 nonstopux*) version_type=nonstopux ;; 13231 *) 13232 if test "$lt_cv_prog_gnu_ld" = yes; then 13233 version_type=linux 13234 else 13235 version_type=irix 13236 fi ;; 13237 esac 13238 need_lib_prefix=no 13239 need_version=no 13240 soname_spec='${libname}${release}${shared_ext}$major' 13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13242 case $host_os in 13243 irix5* | nonstopux*) 13244 libsuff= shlibsuff= 13245 ;; 13246 *) 13247 case $LD in # libtool.m4 will add one of these switches to LD 13248 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13249 libsuff= shlibsuff= libmagic=32-bit;; 13250 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13251 libsuff=32 shlibsuff=N32 libmagic=N32;; 13252 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13253 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13254 *) libsuff= shlibsuff= libmagic=never-match;; 13255 esac 13256 ;; 13257 esac 13258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13259 shlibpath_overrides_runpath=no 13260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13262 hardcode_into_libs=yes 13263 ;; 13264 13265# No shared lib support for Linux oldld, aout, or coff. 13266linux*oldld* | linux*aout* | linux*coff*) 13267 dynamic_linker=no 13268 ;; 13269 13270# This must be Linux ELF. 13271linux* | k*bsd*-gnu) 13272 version_type=linux 13273 need_lib_prefix=no 13274 need_version=no 13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13276 soname_spec='${libname}${release}${shared_ext}$major' 13277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13278 shlibpath_var=LD_LIBRARY_PATH 13279 shlibpath_overrides_runpath=no 13280 # This implies no fast_install, which is unacceptable. 13281 # Some rework will be needed to allow for fast_install 13282 # before this can be enabled. 13283 hardcode_into_libs=yes 13284 13285 # Append ld.so.conf contents to the search path 13286 if test -f /etc/ld.so.conf; then 13287 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' ' '` 13288 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13289 fi 13290 13291 # We used to test for /lib/ld.so.1 and disable shared libraries on 13292 # powerpc, because MkLinux only supported shared libraries with the 13293 # GNU dynamic linker. Since this was broken with cross compilers, 13294 # most powerpc-linux boxes support dynamic linking these days and 13295 # people can always --disable-shared, the test was removed, and we 13296 # assume the GNU/Linux dynamic linker is in use. 13297 dynamic_linker='GNU/Linux ld.so' 13298 ;; 13299 13300netbsdelf*-gnu) 13301 version_type=linux 13302 need_lib_prefix=no 13303 need_version=no 13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13305 soname_spec='${libname}${release}${shared_ext}$major' 13306 shlibpath_var=LD_LIBRARY_PATH 13307 shlibpath_overrides_runpath=no 13308 hardcode_into_libs=yes 13309 dynamic_linker='NetBSD ld.elf_so' 13310 ;; 13311 13312netbsd*) 13313 version_type=sunos 13314 need_lib_prefix=no 13315 need_version=no 13316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13319 dynamic_linker='NetBSD (a.out) ld.so' 13320 else 13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13322 soname_spec='${libname}${release}${shared_ext}$major' 13323 dynamic_linker='NetBSD ld.elf_so' 13324 fi 13325 shlibpath_var=LD_LIBRARY_PATH 13326 shlibpath_overrides_runpath=yes 13327 hardcode_into_libs=yes 13328 ;; 13329 13330newsos6) 13331 version_type=linux 13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13333 shlibpath_var=LD_LIBRARY_PATH 13334 shlibpath_overrides_runpath=yes 13335 ;; 13336 13337nto-qnx*) 13338 version_type=linux 13339 need_lib_prefix=no 13340 need_version=no 13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13342 soname_spec='${libname}${release}${shared_ext}$major' 13343 shlibpath_var=LD_LIBRARY_PATH 13344 shlibpath_overrides_runpath=yes 13345 ;; 13346 13347openbsd*) 13348 version_type=sunos 13349 sys_lib_dlsearch_path_spec="/usr/lib" 13350 need_lib_prefix=no 13351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13352 case $host_os in 13353 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13354 *) need_version=no ;; 13355 esac 13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13358 shlibpath_var=LD_LIBRARY_PATH 13359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13360 case $host_os in 13361 openbsd2.[89] | openbsd2.[89].*) 13362 shlibpath_overrides_runpath=no 13363 ;; 13364 *) 13365 shlibpath_overrides_runpath=yes 13366 ;; 13367 esac 13368 else 13369 shlibpath_overrides_runpath=yes 13370 fi 13371 ;; 13372 13373os2*) 13374 libname_spec='$name' 13375 shrext_cmds=".dll" 13376 need_lib_prefix=no 13377 library_names_spec='$libname${shared_ext} $libname.a' 13378 dynamic_linker='OS/2 ld.exe' 13379 shlibpath_var=LIBPATH 13380 ;; 13381 13382osf3* | osf4* | osf5*) 13383 version_type=osf 13384 need_lib_prefix=no 13385 need_version=no 13386 soname_spec='${libname}${release}${shared_ext}$major' 13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13388 shlibpath_var=LD_LIBRARY_PATH 13389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13391 ;; 13392 13393solaris*) 13394 version_type=linux 13395 need_lib_prefix=no 13396 need_version=no 13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13398 soname_spec='${libname}${release}${shared_ext}$major' 13399 shlibpath_var=LD_LIBRARY_PATH 13400 shlibpath_overrides_runpath=yes 13401 hardcode_into_libs=yes 13402 # ldd complains unless libraries are executable 13403 postinstall_cmds='chmod +x $lib' 13404 ;; 13405 13406sunos4*) 13407 version_type=sunos 13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13409 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13410 shlibpath_var=LD_LIBRARY_PATH 13411 shlibpath_overrides_runpath=yes 13412 if test "$with_gnu_ld" = yes; then 13413 need_lib_prefix=no 13414 fi 13415 need_version=yes 13416 ;; 13417 13418sysv4 | sysv4.3*) 13419 version_type=linux 13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13421 soname_spec='${libname}${release}${shared_ext}$major' 13422 shlibpath_var=LD_LIBRARY_PATH 13423 case $host_vendor in 13424 sni) 13425 shlibpath_overrides_runpath=no 13426 need_lib_prefix=no 13427 export_dynamic_flag_spec='${wl}-Blargedynsym' 13428 runpath_var=LD_RUN_PATH 13429 ;; 13430 siemens) 13431 need_lib_prefix=no 13432 ;; 13433 motorola) 13434 need_lib_prefix=no 13435 need_version=no 13436 shlibpath_overrides_runpath=no 13437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13438 ;; 13439 esac 13440 ;; 13441 13442sysv4*MP*) 13443 if test -d /usr/nec ;then 13444 version_type=linux 13445 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13446 soname_spec='$libname${shared_ext}.$major' 13447 shlibpath_var=LD_LIBRARY_PATH 13448 fi 13449 ;; 13450 13451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13452 version_type=freebsd-elf 13453 need_lib_prefix=no 13454 need_version=no 13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13456 soname_spec='${libname}${release}${shared_ext}$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 hardcode_into_libs=yes 13459 if test "$with_gnu_ld" = yes; then 13460 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13461 shlibpath_overrides_runpath=no 13462 else 13463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13464 shlibpath_overrides_runpath=yes 13465 case $host_os in 13466 sco3.2v5*) 13467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13468 ;; 13469 esac 13470 fi 13471 sys_lib_dlsearch_path_spec='/usr/lib' 13472 ;; 13473 13474uts4*) 13475 version_type=linux 13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13477 soname_spec='${libname}${release}${shared_ext}$major' 13478 shlibpath_var=LD_LIBRARY_PATH 13479 ;; 13480 13481*) 13482 dynamic_linker=no 13483 ;; 13484esac 13485{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13486echo "${ECHO_T}$dynamic_linker" >&6; } 13487test "$dynamic_linker" = no && can_build_shared=no 13488 13489variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13490if test "$GCC" = yes; then 13491 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13492fi 13493 13494{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13496hardcode_action_CXX= 13497if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13498 test -n "$runpath_var_CXX" || \ 13499 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13500 13501 # We can hardcode non-existant directories. 13502 if test "$hardcode_direct_CXX" != no && 13503 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13504 # have to relink, otherwise we might link with an installed library 13505 # when we should be linking with a yet-to-be-installed one 13506 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13507 test "$hardcode_minus_L_CXX" != no; then 13508 # Linking always hardcodes the temporary library directory. 13509 hardcode_action_CXX=relink 13510 else 13511 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13512 hardcode_action_CXX=immediate 13513 fi 13514else 13515 # We cannot hardcode anything, or else we can only hardcode existing 13516 # directories. 13517 hardcode_action_CXX=unsupported 13518fi 13519{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13520echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13521 13522if test "$hardcode_action_CXX" = relink; then 13523 # Fast installation is not supported 13524 enable_fast_install=no 13525elif test "$shlibpath_overrides_runpath" = yes || 13526 test "$enable_shared" = no; then 13527 # Fast installation is not necessary 13528 enable_fast_install=needless 13529fi 13530 13531 13532# The else clause should only fire when bootstrapping the 13533# libtool distribution, otherwise you forgot to ship ltmain.sh 13534# with your package, and you will get complaints that there are 13535# no rules to generate ltmain.sh. 13536if test -f "$ltmain"; then 13537 # See if we are running on zsh, and set the options which allow our commands through 13538 # without removal of \ escapes. 13539 if test -n "${ZSH_VERSION+set}" ; then 13540 setopt NO_GLOB_SUBST 13541 fi 13542 # Now quote all the things that may contain metacharacters while being 13543 # careful not to overquote the AC_SUBSTed values. We take copies of the 13544 # variables and quote the copies for generation of the libtool script. 13545 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13546 SED SHELL STRIP \ 13547 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13548 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13549 deplibs_check_method reload_flag reload_cmds need_locks \ 13550 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13551 lt_cv_sys_global_symbol_to_c_name_address \ 13552 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13553 old_postinstall_cmds old_postuninstall_cmds \ 13554 compiler_CXX \ 13555 CC_CXX \ 13556 LD_CXX \ 13557 lt_prog_compiler_wl_CXX \ 13558 lt_prog_compiler_pic_CXX \ 13559 lt_prog_compiler_static_CXX \ 13560 lt_prog_compiler_no_builtin_flag_CXX \ 13561 export_dynamic_flag_spec_CXX \ 13562 thread_safe_flag_spec_CXX \ 13563 whole_archive_flag_spec_CXX \ 13564 enable_shared_with_static_runtimes_CXX \ 13565 old_archive_cmds_CXX \ 13566 old_archive_from_new_cmds_CXX \ 13567 predep_objects_CXX \ 13568 postdep_objects_CXX \ 13569 predeps_CXX \ 13570 postdeps_CXX \ 13571 compiler_lib_search_path_CXX \ 13572 archive_cmds_CXX \ 13573 archive_expsym_cmds_CXX \ 13574 postinstall_cmds_CXX \ 13575 postuninstall_cmds_CXX \ 13576 old_archive_from_expsyms_cmds_CXX \ 13577 allow_undefined_flag_CXX \ 13578 no_undefined_flag_CXX \ 13579 export_symbols_cmds_CXX \ 13580 hardcode_libdir_flag_spec_CXX \ 13581 hardcode_libdir_flag_spec_ld_CXX \ 13582 hardcode_libdir_separator_CXX \ 13583 hardcode_automatic_CXX \ 13584 module_cmds_CXX \ 13585 module_expsym_cmds_CXX \ 13586 lt_cv_prog_compiler_c_o_CXX \ 13587 exclude_expsyms_CXX \ 13588 include_expsyms_CXX; do 13589 13590 case $var in 13591 old_archive_cmds_CXX | \ 13592 old_archive_from_new_cmds_CXX | \ 13593 archive_cmds_CXX | \ 13594 archive_expsym_cmds_CXX | \ 13595 module_cmds_CXX | \ 13596 module_expsym_cmds_CXX | \ 13597 old_archive_from_expsyms_cmds_CXX | \ 13598 export_symbols_cmds_CXX | \ 13599 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13600 postinstall_cmds | postuninstall_cmds | \ 13601 old_postinstall_cmds | old_postuninstall_cmds | \ 13602 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13603 # Double-quote double-evaled strings. 13604 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13605 ;; 13606 *) 13607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13608 ;; 13609 esac 13610 done 13611 13612 case $lt_echo in 13613 *'\$0 --fallback-echo"') 13614 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13615 ;; 13616 esac 13617 13618cfgfile="$ofile" 13619 13620 cat <<__EOF__ >> "$cfgfile" 13621# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13622 13623# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13624 13625# Shell to use when invoking shell scripts. 13626SHELL=$lt_SHELL 13627 13628# Whether or not to build shared libraries. 13629build_libtool_libs=$enable_shared 13630 13631# Whether or not to build static libraries. 13632build_old_libs=$enable_static 13633 13634# Whether or not to add -lc for building shared libraries. 13635build_libtool_need_lc=$archive_cmds_need_lc_CXX 13636 13637# Whether or not to disallow shared libs when runtime libs are static 13638allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13639 13640# Whether or not to optimize for fast installation. 13641fast_install=$enable_fast_install 13642 13643# The host system. 13644host_alias=$host_alias 13645host=$host 13646host_os=$host_os 13647 13648# The build system. 13649build_alias=$build_alias 13650build=$build 13651build_os=$build_os 13652 13653# An echo program that does not interpret backslashes. 13654echo=$lt_echo 13655 13656# The archiver. 13657AR=$lt_AR 13658AR_FLAGS=$lt_AR_FLAGS 13659 13660# A C compiler. 13661LTCC=$lt_LTCC 13662 13663# LTCC compiler flags. 13664LTCFLAGS=$lt_LTCFLAGS 13665 13666# A language-specific compiler. 13667CC=$lt_compiler_CXX 13668 13669# Is the compiler the GNU C compiler? 13670with_gcc=$GCC_CXX 13671 13672# An ERE matcher. 13673EGREP=$lt_EGREP 13674 13675# The linker used to build libraries. 13676LD=$lt_LD_CXX 13677 13678# Whether we need hard or soft links. 13679LN_S=$lt_LN_S 13680 13681# A BSD-compatible nm program. 13682NM=$lt_NM 13683 13684# A symbol stripping program 13685STRIP=$lt_STRIP 13686 13687# Used to examine libraries when file_magic_cmd begins "file" 13688MAGIC_CMD=$MAGIC_CMD 13689 13690# Used on cygwin: DLL creation program. 13691DLLTOOL="$DLLTOOL" 13692 13693# Used on cygwin: object dumper. 13694OBJDUMP="$OBJDUMP" 13695 13696# Used on cygwin: assembler. 13697AS="$AS" 13698 13699# The name of the directory that contains temporary libtool files. 13700objdir=$objdir 13701 13702# How to create reloadable object files. 13703reload_flag=$lt_reload_flag 13704reload_cmds=$lt_reload_cmds 13705 13706# How to pass a linker flag through the compiler. 13707wl=$lt_lt_prog_compiler_wl_CXX 13708 13709# Object file suffix (normally "o"). 13710objext="$ac_objext" 13711 13712# Old archive suffix (normally "a"). 13713libext="$libext" 13714 13715# Shared library suffix (normally ".so"). 13716shrext_cmds='$shrext_cmds' 13717 13718# Executable file suffix (normally ""). 13719exeext="$exeext" 13720 13721# Additional compiler flags for building library objects. 13722pic_flag=$lt_lt_prog_compiler_pic_CXX 13723pic_mode=$pic_mode 13724 13725# What is the maximum length of a command? 13726max_cmd_len=$lt_cv_sys_max_cmd_len 13727 13728# Does compiler simultaneously support -c and -o options? 13729compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13730 13731# Must we lock files when doing compilation? 13732need_locks=$lt_need_locks 13733 13734# Do we need the lib prefix for modules? 13735need_lib_prefix=$need_lib_prefix 13736 13737# Do we need a version for libraries? 13738need_version=$need_version 13739 13740# Whether dlopen is supported. 13741dlopen_support=$enable_dlopen 13742 13743# Whether dlopen of programs is supported. 13744dlopen_self=$enable_dlopen_self 13745 13746# Whether dlopen of statically linked programs is supported. 13747dlopen_self_static=$enable_dlopen_self_static 13748 13749# Compiler flag to prevent dynamic linking. 13750link_static_flag=$lt_lt_prog_compiler_static_CXX 13751 13752# Compiler flag to turn off builtin functions. 13753no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13754 13755# Compiler flag to allow reflexive dlopens. 13756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13757 13758# Compiler flag to generate shared objects directly from archives. 13759whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13760 13761# Compiler flag to generate thread-safe objects. 13762thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13763 13764# Library versioning type. 13765version_type=$version_type 13766 13767# Format of library name prefix. 13768libname_spec=$lt_libname_spec 13769 13770# List of archive names. First name is the real one, the rest are links. 13771# The last name is the one that the linker finds with -lNAME. 13772library_names_spec=$lt_library_names_spec 13773 13774# The coded name of the library, if different from the real name. 13775soname_spec=$lt_soname_spec 13776 13777# Commands used to build and install an old-style archive. 13778RANLIB=$lt_RANLIB 13779old_archive_cmds=$lt_old_archive_cmds_CXX 13780old_postinstall_cmds=$lt_old_postinstall_cmds 13781old_postuninstall_cmds=$lt_old_postuninstall_cmds 13782 13783# Create an old-style archive from a shared archive. 13784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13785 13786# Create a temporary old-style archive to link instead of a shared archive. 13787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13788 13789# Commands used to build and install a shared archive. 13790archive_cmds=$lt_archive_cmds_CXX 13791archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13792postinstall_cmds=$lt_postinstall_cmds 13793postuninstall_cmds=$lt_postuninstall_cmds 13794 13795# Commands used to build a loadable module (assumed same as above if empty) 13796module_cmds=$lt_module_cmds_CXX 13797module_expsym_cmds=$lt_module_expsym_cmds_CXX 13798 13799# Commands to strip libraries. 13800old_striplib=$lt_old_striplib 13801striplib=$lt_striplib 13802 13803# Dependencies to place before the objects being linked to create a 13804# shared library. 13805predep_objects=$lt_predep_objects_CXX 13806 13807# Dependencies to place after the objects being linked to create a 13808# shared library. 13809postdep_objects=$lt_postdep_objects_CXX 13810 13811# Dependencies to place before the objects being linked to create a 13812# shared library. 13813predeps=$lt_predeps_CXX 13814 13815# Dependencies to place after the objects being linked to create a 13816# shared library. 13817postdeps=$lt_postdeps_CXX 13818 13819# The library search path used internally by the compiler when linking 13820# a shared library. 13821compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13822 13823# Method to check whether dependent libraries are shared objects. 13824deplibs_check_method=$lt_deplibs_check_method 13825 13826# Command to use when deplibs_check_method == file_magic. 13827file_magic_cmd=$lt_file_magic_cmd 13828 13829# Flag that allows shared libraries with undefined symbols to be built. 13830allow_undefined_flag=$lt_allow_undefined_flag_CXX 13831 13832# Flag that forces no undefined symbols. 13833no_undefined_flag=$lt_no_undefined_flag_CXX 13834 13835# Commands used to finish a libtool library installation in a directory. 13836finish_cmds=$lt_finish_cmds 13837 13838# Same as above, but a single script fragment to be evaled but not shown. 13839finish_eval=$lt_finish_eval 13840 13841# Take the output of nm and produce a listing of raw symbols and C names. 13842global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13843 13844# Transform the output of nm in a proper C declaration 13845global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13846 13847# Transform the output of nm in a C name address pair 13848global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13849 13850# This is the shared library runtime path variable. 13851runpath_var=$runpath_var 13852 13853# This is the shared library path variable. 13854shlibpath_var=$shlibpath_var 13855 13856# Is shlibpath searched before the hard-coded library search path? 13857shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13858 13859# How to hardcode a shared library path into an executable. 13860hardcode_action=$hardcode_action_CXX 13861 13862# Whether we should hardcode library paths into libraries. 13863hardcode_into_libs=$hardcode_into_libs 13864 13865# Flag to hardcode \$libdir into a binary during linking. 13866# This must work even if \$libdir does not exist. 13867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13868 13869# If ld is used when linking, flag to hardcode \$libdir into 13870# a binary during linking. This must work even if \$libdir does 13871# not exist. 13872hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13873 13874# Whether we need a single -rpath flag with a separated argument. 13875hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13876 13877# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13878# resulting binary. 13879hardcode_direct=$hardcode_direct_CXX 13880 13881# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13882# resulting binary. 13883hardcode_minus_L=$hardcode_minus_L_CXX 13884 13885# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13886# the resulting binary. 13887hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13888 13889# Set to yes if building a shared library automatically hardcodes DIR into the library 13890# and all subsequent libraries and executables linked against it. 13891hardcode_automatic=$hardcode_automatic_CXX 13892 13893# Variables whose values should be saved in libtool wrapper scripts and 13894# restored at relink time. 13895variables_saved_for_relink="$variables_saved_for_relink" 13896 13897# Whether libtool must link a program against all its dependency libraries. 13898link_all_deplibs=$link_all_deplibs_CXX 13899 13900# Compile-time system search path for libraries 13901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13902 13903# Run-time system search path for libraries 13904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13905 13906# Fix the shell variable \$srcfile for the compiler. 13907fix_srcfile_path="$fix_srcfile_path_CXX" 13908 13909# Set to yes if exported symbols are required. 13910always_export_symbols=$always_export_symbols_CXX 13911 13912# The commands to list exported symbols. 13913export_symbols_cmds=$lt_export_symbols_cmds_CXX 13914 13915# The commands to extract the exported symbol list from a shared archive. 13916extract_expsyms_cmds=$lt_extract_expsyms_cmds 13917 13918# Symbols that should not be listed in the preloaded symbols. 13919exclude_expsyms=$lt_exclude_expsyms_CXX 13920 13921# Symbols that must always be exported. 13922include_expsyms=$lt_include_expsyms_CXX 13923 13924# ### END LIBTOOL TAG CONFIG: $tagname 13925 13926__EOF__ 13927 13928 13929else 13930 # If there is no Makefile yet, we rely on a make rule to execute 13931 # `config.status --recheck' to rerun these tests and create the 13932 # libtool script then. 13933 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13934 if test -f "$ltmain_in"; then 13935 test -f Makefile && make "$ltmain" 13936 fi 13937fi 13938 13939 13940ac_ext=c 13941ac_cpp='$CPP $CPPFLAGS' 13942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13944ac_compiler_gnu=$ac_cv_c_compiler_gnu 13945 13946CC=$lt_save_CC 13947LDCXX=$LD 13948LD=$lt_save_LD 13949GCC=$lt_save_GCC 13950with_gnu_ldcxx=$with_gnu_ld 13951with_gnu_ld=$lt_save_with_gnu_ld 13952lt_cv_path_LDCXX=$lt_cv_path_LD 13953lt_cv_path_LD=$lt_save_path_LD 13954lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13955lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13956 13957 else 13958 tagname="" 13959 fi 13960 ;; 13961 13962 F77) 13963 if test -n "$F77" && test "X$F77" != "Xno"; then 13964 13965ac_ext=f 13966ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13967ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13968ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13969 13970 13971archive_cmds_need_lc_F77=no 13972allow_undefined_flag_F77= 13973always_export_symbols_F77=no 13974archive_expsym_cmds_F77= 13975export_dynamic_flag_spec_F77= 13976hardcode_direct_F77=no 13977hardcode_libdir_flag_spec_F77= 13978hardcode_libdir_flag_spec_ld_F77= 13979hardcode_libdir_separator_F77= 13980hardcode_minus_L_F77=no 13981hardcode_automatic_F77=no 13982module_cmds_F77= 13983module_expsym_cmds_F77= 13984link_all_deplibs_F77=unknown 13985old_archive_cmds_F77=$old_archive_cmds 13986no_undefined_flag_F77= 13987whole_archive_flag_spec_F77= 13988enable_shared_with_static_runtimes_F77=no 13989 13990# Source file extension for f77 test sources. 13991ac_ext=f 13992 13993# Object file extension for compiled f77 test sources. 13994objext=o 13995objext_F77=$objext 13996 13997# Code to be used in simple compile tests 13998lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13999 14000# Code to be used in simple link tests 14001lt_simple_link_test_code=" program t\n end\n" 14002 14003# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14004 14005# If no C compiler was specified, use CC. 14006LTCC=${LTCC-"$CC"} 14007 14008# If no C compiler flags were specified, use CFLAGS. 14009LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14010 14011# Allow CC to be a program name with arguments. 14012compiler=$CC 14013 14014 14015# save warnings/boilerplate of simple test code 14016ac_outfile=conftest.$ac_objext 14017printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14018eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14019_lt_compiler_boilerplate=`cat conftest.err` 14020$rm conftest* 14021 14022ac_outfile=conftest.$ac_objext 14023printf "$lt_simple_link_test_code" >conftest.$ac_ext 14024eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14025_lt_linker_boilerplate=`cat conftest.err` 14026$rm conftest* 14027 14028 14029# Allow CC to be a program name with arguments. 14030lt_save_CC="$CC" 14031CC=${F77-"f77"} 14032compiler=$CC 14033compiler_F77=$CC 14034for cc_temp in $compiler""; do 14035 case $cc_temp in 14036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14038 \-*) ;; 14039 *) break;; 14040 esac 14041done 14042cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14043 14044 14045{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14046echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14047{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14048echo "${ECHO_T}$can_build_shared" >&6; } 14049 14050{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14051echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14052test "$can_build_shared" = "no" && enable_shared=no 14053 14054# On AIX, shared libraries and static libraries use the same namespace, and 14055# are all built from PIC. 14056case $host_os in 14057aix3*) 14058 test "$enable_shared" = yes && enable_static=no 14059 if test -n "$RANLIB"; then 14060 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14061 postinstall_cmds='$RANLIB $lib' 14062 fi 14063 ;; 14064aix4* | aix5*) 14065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14066 test "$enable_shared" = yes && enable_static=no 14067 fi 14068 ;; 14069esac 14070{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14071echo "${ECHO_T}$enable_shared" >&6; } 14072 14073{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14074echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14075# Make sure either enable_shared or enable_static is yes. 14076test "$enable_shared" = yes || enable_static=yes 14077{ echo "$as_me:$LINENO: result: $enable_static" >&5 14078echo "${ECHO_T}$enable_static" >&6; } 14079 14080GCC_F77="$G77" 14081LD_F77="$LD" 14082 14083lt_prog_compiler_wl_F77= 14084lt_prog_compiler_pic_F77= 14085lt_prog_compiler_static_F77= 14086 14087{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14088echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14089 14090 if test "$GCC" = yes; then 14091 lt_prog_compiler_wl_F77='-Wl,' 14092 lt_prog_compiler_static_F77='-static' 14093 14094 case $host_os in 14095 aix*) 14096 # All AIX code is PIC. 14097 if test "$host_cpu" = ia64; then 14098 # AIX 5 now supports IA64 processor 14099 lt_prog_compiler_static_F77='-Bstatic' 14100 fi 14101 ;; 14102 14103 amigaos*) 14104 # FIXME: we need at least 68020 code to build shared libraries, but 14105 # adding the `-m68020' flag to GCC prevents building anything better, 14106 # like `-m68040'. 14107 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14108 ;; 14109 14110 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14111 # PIC is the default for these OSes. 14112 ;; 14113 14114 mingw* | pw32* | os2*) 14115 # This hack is so that the source file can tell whether it is being 14116 # built for inclusion in a dll (and should export symbols for example). 14117 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14118 ;; 14119 14120 darwin* | rhapsody*) 14121 # PIC is the default on this platform 14122 # Common symbols not allowed in MH_DYLIB files 14123 lt_prog_compiler_pic_F77='-fno-common' 14124 ;; 14125 14126 interix3*) 14127 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14128 # Instead, we relocate shared libraries at runtime. 14129 ;; 14130 14131 msdosdjgpp*) 14132 # Just because we use GCC doesn't mean we suddenly get shared libraries 14133 # on systems that don't support them. 14134 lt_prog_compiler_can_build_shared_F77=no 14135 enable_shared=no 14136 ;; 14137 14138 sysv4*MP*) 14139 if test -d /usr/nec; then 14140 lt_prog_compiler_pic_F77=-Kconform_pic 14141 fi 14142 ;; 14143 14144 hpux*) 14145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14146 # not for PA HP-UX. 14147 case $host_cpu in 14148 hppa*64*|ia64*) 14149 # +Z the default 14150 ;; 14151 *) 14152 lt_prog_compiler_pic_F77='-fPIC' 14153 ;; 14154 esac 14155 ;; 14156 14157 *) 14158 lt_prog_compiler_pic_F77='-fPIC' 14159 ;; 14160 esac 14161 else 14162 # PORTME Check for flag to pass linker flags through the system compiler. 14163 case $host_os in 14164 aix*) 14165 lt_prog_compiler_wl_F77='-Wl,' 14166 if test "$host_cpu" = ia64; then 14167 # AIX 5 now supports IA64 processor 14168 lt_prog_compiler_static_F77='-Bstatic' 14169 else 14170 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14171 fi 14172 ;; 14173 darwin*) 14174 # PIC is the default on this platform 14175 # Common symbols not allowed in MH_DYLIB files 14176 case $cc_basename in 14177 xlc*) 14178 lt_prog_compiler_pic_F77='-qnocommon' 14179 lt_prog_compiler_wl_F77='-Wl,' 14180 ;; 14181 esac 14182 ;; 14183 14184 mingw* | pw32* | os2*) 14185 # This hack is so that the source file can tell whether it is being 14186 # built for inclusion in a dll (and should export symbols for example). 14187 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14188 ;; 14189 14190 hpux9* | hpux10* | hpux11*) 14191 lt_prog_compiler_wl_F77='-Wl,' 14192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14193 # not for PA HP-UX. 14194 case $host_cpu in 14195 hppa*64*|ia64*) 14196 # +Z the default 14197 ;; 14198 *) 14199 lt_prog_compiler_pic_F77='+Z' 14200 ;; 14201 esac 14202 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14203 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14204 ;; 14205 14206 irix5* | irix6* | nonstopux*) 14207 lt_prog_compiler_wl_F77='-Wl,' 14208 # PIC (with -KPIC) is the default. 14209 lt_prog_compiler_static_F77='-non_shared' 14210 ;; 14211 14212 newsos6) 14213 lt_prog_compiler_pic_F77='-KPIC' 14214 lt_prog_compiler_static_F77='-Bstatic' 14215 ;; 14216 14217 linux* | k*bsd*-gnu) 14218 case $cc_basename in 14219 icc* | ecc*) 14220 lt_prog_compiler_wl_F77='-Wl,' 14221 lt_prog_compiler_pic_F77='-KPIC' 14222 lt_prog_compiler_static_F77='-static' 14223 ;; 14224 pgcc* | pgf77* | pgf90* | pgf95*) 14225 # Portland Group compilers (*not* the Pentium gcc compiler, 14226 # which looks to be a dead project) 14227 lt_prog_compiler_wl_F77='-Wl,' 14228 lt_prog_compiler_pic_F77='-fpic' 14229 lt_prog_compiler_static_F77='-Bstatic' 14230 ;; 14231 ccc*) 14232 lt_prog_compiler_wl_F77='-Wl,' 14233 # All Alpha code is PIC. 14234 lt_prog_compiler_static_F77='-non_shared' 14235 ;; 14236 esac 14237 ;; 14238 14239 osf3* | osf4* | osf5*) 14240 lt_prog_compiler_wl_F77='-Wl,' 14241 # All OSF/1 code is PIC. 14242 lt_prog_compiler_static_F77='-non_shared' 14243 ;; 14244 14245 solaris*) 14246 lt_prog_compiler_pic_F77='-KPIC' 14247 lt_prog_compiler_static_F77='-Bstatic' 14248 case $cc_basename in 14249 f77* | f90* | f95*) 14250 lt_prog_compiler_wl_F77='-Qoption ld ';; 14251 *) 14252 lt_prog_compiler_wl_F77='-Wl,';; 14253 esac 14254 ;; 14255 14256 sunos4*) 14257 lt_prog_compiler_wl_F77='-Qoption ld ' 14258 lt_prog_compiler_pic_F77='-PIC' 14259 lt_prog_compiler_static_F77='-Bstatic' 14260 ;; 14261 14262 sysv4 | sysv4.2uw2* | sysv4.3*) 14263 lt_prog_compiler_wl_F77='-Wl,' 14264 lt_prog_compiler_pic_F77='-KPIC' 14265 lt_prog_compiler_static_F77='-Bstatic' 14266 ;; 14267 14268 sysv4*MP*) 14269 if test -d /usr/nec ;then 14270 lt_prog_compiler_pic_F77='-Kconform_pic' 14271 lt_prog_compiler_static_F77='-Bstatic' 14272 fi 14273 ;; 14274 14275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14276 lt_prog_compiler_wl_F77='-Wl,' 14277 lt_prog_compiler_pic_F77='-KPIC' 14278 lt_prog_compiler_static_F77='-Bstatic' 14279 ;; 14280 14281 unicos*) 14282 lt_prog_compiler_wl_F77='-Wl,' 14283 lt_prog_compiler_can_build_shared_F77=no 14284 ;; 14285 14286 uts4*) 14287 lt_prog_compiler_pic_F77='-pic' 14288 lt_prog_compiler_static_F77='-Bstatic' 14289 ;; 14290 14291 *) 14292 lt_prog_compiler_can_build_shared_F77=no 14293 ;; 14294 esac 14295 fi 14296 14297{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14298echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14299 14300# 14301# Check to make sure the PIC flag actually works. 14302# 14303if test -n "$lt_prog_compiler_pic_F77"; then 14304 14305{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14306echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14307if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14308 echo $ECHO_N "(cached) $ECHO_C" >&6 14309else 14310 lt_prog_compiler_pic_works_F77=no 14311 ac_outfile=conftest.$ac_objext 14312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14313 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14314 # Insert the option either (1) after the last *FLAGS variable, or 14315 # (2) before a word containing "conftest.", or (3) at the end. 14316 # Note that $ac_compile itself does not contain backslashes and begins 14317 # with a dollar sign (not a hyphen), so the echo should work correctly. 14318 # The option is referenced via a variable to avoid confusing sed. 14319 lt_compile=`echo "$ac_compile" | $SED \ 14320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14322 -e 's:$: $lt_compiler_flag:'` 14323 (eval echo "\"\$as_me:14323: $lt_compile\"" >&5) 14324 (eval "$lt_compile" 2>conftest.err) 14325 ac_status=$? 14326 cat conftest.err >&5 14327 echo "$as_me:14327: \$? = $ac_status" >&5 14328 if (exit $ac_status) && test -s "$ac_outfile"; then 14329 # The compiler can only warn and ignore the option if not recognized 14330 # So say no if there are warnings other than the usual output. 14331 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14334 lt_prog_compiler_pic_works_F77=yes 14335 fi 14336 fi 14337 $rm conftest* 14338 14339fi 14340{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14341echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14342 14343if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14344 case $lt_prog_compiler_pic_F77 in 14345 "" | " "*) ;; 14346 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14347 esac 14348else 14349 lt_prog_compiler_pic_F77= 14350 lt_prog_compiler_can_build_shared_F77=no 14351fi 14352 14353fi 14354case $host_os in 14355 # For platforms which do not support PIC, -DPIC is meaningless: 14356 *djgpp*) 14357 lt_prog_compiler_pic_F77= 14358 ;; 14359 *) 14360 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14361 ;; 14362esac 14363 14364# 14365# Check to make sure the static flag actually works. 14366# 14367wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14368{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14369echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14370if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14371 echo $ECHO_N "(cached) $ECHO_C" >&6 14372else 14373 lt_prog_compiler_static_works_F77=no 14374 save_LDFLAGS="$LDFLAGS" 14375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14376 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14378 # The linker can only warn and ignore the option if not recognized 14379 # So say no if there are warnings 14380 if test -s conftest.err; then 14381 # Append any errors to the config.log. 14382 cat conftest.err 1>&5 14383 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14385 if diff conftest.exp conftest.er2 >/dev/null; then 14386 lt_prog_compiler_static_works_F77=yes 14387 fi 14388 else 14389 lt_prog_compiler_static_works_F77=yes 14390 fi 14391 fi 14392 $rm conftest* 14393 LDFLAGS="$save_LDFLAGS" 14394 14395fi 14396{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14397echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14398 14399if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14400 : 14401else 14402 lt_prog_compiler_static_F77= 14403fi 14404 14405 14406{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14407echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14408if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14409 echo $ECHO_N "(cached) $ECHO_C" >&6 14410else 14411 lt_cv_prog_compiler_c_o_F77=no 14412 $rm -r conftest 2>/dev/null 14413 mkdir conftest 14414 cd conftest 14415 mkdir out 14416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14417 14418 lt_compiler_flag="-o out/conftest2.$ac_objext" 14419 # Insert the option either (1) after the last *FLAGS variable, or 14420 # (2) before a word containing "conftest.", or (3) at the end. 14421 # Note that $ac_compile itself does not contain backslashes and begins 14422 # with a dollar sign (not a hyphen), so the echo should work correctly. 14423 lt_compile=`echo "$ac_compile" | $SED \ 14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14426 -e 's:$: $lt_compiler_flag:'` 14427 (eval echo "\"\$as_me:14427: $lt_compile\"" >&5) 14428 (eval "$lt_compile" 2>out/conftest.err) 14429 ac_status=$? 14430 cat out/conftest.err >&5 14431 echo "$as_me:14431: \$? = $ac_status" >&5 14432 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14433 then 14434 # The compiler can only warn and ignore the option if not recognized 14435 # So say no if there are warnings 14436 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14439 lt_cv_prog_compiler_c_o_F77=yes 14440 fi 14441 fi 14442 chmod u+w . 2>&5 14443 $rm conftest* 14444 # SGI C++ compiler will create directory out/ii_files/ for 14445 # template instantiation 14446 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14447 $rm out/* && rmdir out 14448 cd .. 14449 rmdir conftest 14450 $rm conftest* 14451 14452fi 14453{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14454echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14455 14456 14457hard_links="nottested" 14458if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14459 # do not overwrite the value of need_locks provided by the user 14460 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14461echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14462 hard_links=yes 14463 $rm conftest* 14464 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14465 touch conftest.a 14466 ln conftest.a conftest.b 2>&5 || hard_links=no 14467 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14468 { echo "$as_me:$LINENO: result: $hard_links" >&5 14469echo "${ECHO_T}$hard_links" >&6; } 14470 if test "$hard_links" = no; then 14471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14472echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14473 need_locks=warn 14474 fi 14475else 14476 need_locks=no 14477fi 14478 14479{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14480echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14481 14482 runpath_var= 14483 allow_undefined_flag_F77= 14484 enable_shared_with_static_runtimes_F77=no 14485 archive_cmds_F77= 14486 archive_expsym_cmds_F77= 14487 old_archive_From_new_cmds_F77= 14488 old_archive_from_expsyms_cmds_F77= 14489 export_dynamic_flag_spec_F77= 14490 whole_archive_flag_spec_F77= 14491 thread_safe_flag_spec_F77= 14492 hardcode_libdir_flag_spec_F77= 14493 hardcode_libdir_flag_spec_ld_F77= 14494 hardcode_libdir_separator_F77= 14495 hardcode_direct_F77=no 14496 hardcode_minus_L_F77=no 14497 hardcode_shlibpath_var_F77=unsupported 14498 link_all_deplibs_F77=unknown 14499 hardcode_automatic_F77=no 14500 module_cmds_F77= 14501 module_expsym_cmds_F77= 14502 always_export_symbols_F77=no 14503 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14504 # include_expsyms should be a list of space-separated symbols to be *always* 14505 # included in the symbol list 14506 include_expsyms_F77= 14507 # exclude_expsyms can be an extended regexp of symbols to exclude 14508 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14509 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14510 # as well as any symbol that contains `d'. 14511 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14512 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14513 # platforms (ab)use it in PIC code, but their linkers get confused if 14514 # the symbol is explicitly referenced. Since portable code cannot 14515 # rely on this symbol name, it's probably fine to never include it in 14516 # preloaded symbol tables. 14517 extract_expsyms_cmds= 14518 # Just being paranoid about ensuring that cc_basename is set. 14519 for cc_temp in $compiler""; do 14520 case $cc_temp in 14521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14523 \-*) ;; 14524 *) break;; 14525 esac 14526done 14527cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14528 14529 case $host_os in 14530 cygwin* | mingw* | pw32*) 14531 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14532 # When not using gcc, we currently assume that we are using 14533 # Microsoft Visual C++. 14534 if test "$GCC" != yes; then 14535 with_gnu_ld=no 14536 fi 14537 ;; 14538 interix*) 14539 # we just hope/assume this is gcc and not c89 (= MSVC++) 14540 with_gnu_ld=yes 14541 ;; 14542 openbsd*) 14543 with_gnu_ld=no 14544 ;; 14545 esac 14546 14547 ld_shlibs_F77=yes 14548 if test "$with_gnu_ld" = yes; then 14549 # If archive_cmds runs LD, not CC, wlarc should be empty 14550 wlarc='${wl}' 14551 14552 # Set some defaults for GNU ld with shared library support. These 14553 # are reset later if shared libraries are not supported. Putting them 14554 # here allows them to be overridden if necessary. 14555 runpath_var=LD_RUN_PATH 14556 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14557 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14558 # ancient GNU ld didn't support --whole-archive et. al. 14559 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14560 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14561 else 14562 whole_archive_flag_spec_F77= 14563 fi 14564 supports_anon_versioning=no 14565 case `$LD -v 2>/dev/null` in 14566 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14567 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14568 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14569 *\ 2.11.*) ;; # other 2.11 versions 14570 *) supports_anon_versioning=yes ;; 14571 esac 14572 14573 # See if GNU ld supports shared libraries. 14574 case $host_os in 14575 aix3* | aix4* | aix5*) 14576 # On AIX/PPC, the GNU linker is very broken 14577 if test "$host_cpu" != ia64; then 14578 ld_shlibs_F77=no 14579 cat <<EOF 1>&2 14580 14581*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14582*** to be unable to reliably create shared libraries on AIX. 14583*** Therefore, libtool is disabling shared libraries support. If you 14584*** really care for shared libraries, you may want to modify your PATH 14585*** so that a non-GNU linker is found, and then restart. 14586 14587EOF 14588 fi 14589 ;; 14590 14591 amigaos*) 14592 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)' 14593 hardcode_libdir_flag_spec_F77='-L$libdir' 14594 hardcode_minus_L_F77=yes 14595 14596 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14597 # that the semantics of dynamic libraries on AmigaOS, at least up 14598 # to version 4, is to share data among multiple programs linked 14599 # with the same dynamic library. Since this doesn't match the 14600 # behavior of shared libraries on other platforms, we can't use 14601 # them. 14602 ld_shlibs_F77=no 14603 ;; 14604 14605 beos*) 14606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14607 allow_undefined_flag_F77=unsupported 14608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14609 # support --undefined. This deserves some investigation. FIXME 14610 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14611 else 14612 ld_shlibs_F77=no 14613 fi 14614 ;; 14615 14616 cygwin* | mingw* | pw32*) 14617 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14618 # as there is no search path for DLLs. 14619 hardcode_libdir_flag_spec_F77='-L$libdir' 14620 allow_undefined_flag_F77=unsupported 14621 always_export_symbols_F77=no 14622 enable_shared_with_static_runtimes_F77=yes 14623 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14624 14625 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14626 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14627 # If the export-symbols file already is a .def file (1st line 14628 # is EXPORTS), use it as is; otherwise, prepend... 14629 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14630 cp $export_symbols $output_objdir/$soname.def; 14631 else 14632 echo EXPORTS > $output_objdir/$soname.def; 14633 cat $export_symbols >> $output_objdir/$soname.def; 14634 fi~ 14635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14636 else 14637 ld_shlibs_F77=no 14638 fi 14639 ;; 14640 14641 interix3*) 14642 hardcode_direct_F77=no 14643 hardcode_shlibpath_var_F77=no 14644 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14645 export_dynamic_flag_spec_F77='${wl}-E' 14646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14647 # Instead, shared libraries are loaded at an image base (0x10000000 by 14648 # default) and relocated if they conflict, which is a slow very memory 14649 # consuming and fragmenting process. To avoid this, we pick a random, 14650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14651 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14652 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' 14653 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' 14654 ;; 14655 14656 linux* | k*bsd*-gnu) 14657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14658 tmp_addflag= 14659 case $cc_basename,$host_cpu in 14660 pgcc*) # Portland Group C compiler 14661 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' 14662 tmp_addflag=' $pic_flag' 14663 ;; 14664 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14665 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' 14666 tmp_addflag=' $pic_flag -Mnomain' ;; 14667 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14668 tmp_addflag=' -i_dynamic' ;; 14669 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14670 tmp_addflag=' -i_dynamic -nofor_main' ;; 14671 ifc* | ifort*) # Intel Fortran compiler 14672 tmp_addflag=' -nofor_main' ;; 14673 esac 14674 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14675 14676 if test $supports_anon_versioning = yes; then 14677 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14679 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14680 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14681 fi 14682 link_all_deplibs_F77=no 14683 else 14684 ld_shlibs_F77=no 14685 fi 14686 ;; 14687 14688 netbsd* | netbsdelf*-gnu) 14689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14690 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14691 wlarc= 14692 else 14693 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14694 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14695 fi 14696 ;; 14697 14698 solaris*) 14699 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14700 ld_shlibs_F77=no 14701 cat <<EOF 1>&2 14702 14703*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14704*** create shared libraries on Solaris systems. Therefore, libtool 14705*** is disabling shared libraries support. We urge you to upgrade GNU 14706*** binutils to release 2.9.1 or newer. Another option is to modify 14707*** your PATH or compiler configuration so that the native linker is 14708*** used, and then restart. 14709 14710EOF 14711 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14714 else 14715 ld_shlibs_F77=no 14716 fi 14717 ;; 14718 14719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14720 case `$LD -v 2>&1` in 14721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14722 ld_shlibs_F77=no 14723 cat <<_LT_EOF 1>&2 14724 14725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14726*** reliably create shared libraries on SCO systems. Therefore, libtool 14727*** is disabling shared libraries support. We urge you to upgrade GNU 14728*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14729*** your PATH or compiler configuration so that the native linker is 14730*** used, and then restart. 14731 14732_LT_EOF 14733 ;; 14734 *) 14735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14736 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14738 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14739 else 14740 ld_shlibs_F77=no 14741 fi 14742 ;; 14743 esac 14744 ;; 14745 14746 sunos4*) 14747 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14748 wlarc= 14749 hardcode_direct_F77=yes 14750 hardcode_shlibpath_var_F77=no 14751 ;; 14752 14753 *) 14754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14757 else 14758 ld_shlibs_F77=no 14759 fi 14760 ;; 14761 esac 14762 14763 if test "$ld_shlibs_F77" = no; then 14764 runpath_var= 14765 hardcode_libdir_flag_spec_F77= 14766 export_dynamic_flag_spec_F77= 14767 whole_archive_flag_spec_F77= 14768 fi 14769 else 14770 # PORTME fill in a description of your system's linker (not GNU ld) 14771 case $host_os in 14772 aix3*) 14773 allow_undefined_flag_F77=unsupported 14774 always_export_symbols_F77=yes 14775 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' 14776 # Note: this linker hardcodes the directories in LIBPATH if there 14777 # are no directories specified by -L. 14778 hardcode_minus_L_F77=yes 14779 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14780 # Neither direct hardcoding nor static linking is supported with a 14781 # broken collect2. 14782 hardcode_direct_F77=unsupported 14783 fi 14784 ;; 14785 14786 aix4* | aix5*) 14787 if test "$host_cpu" = ia64; then 14788 # On IA64, the linker does run time linking by default, so we don't 14789 # have to do anything special. 14790 aix_use_runtimelinking=no 14791 exp_sym_flag='-Bexport' 14792 no_entry_flag="" 14793 else 14794 # If we're using GNU nm, then we don't want the "-C" option. 14795 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14796 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14797 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' 14798 else 14799 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' 14800 fi 14801 aix_use_runtimelinking=no 14802 14803 # Test if we are trying to use run time linking or normal 14804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14805 # need to do runtime linking. 14806 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14807 for ld_flag in $LDFLAGS; do 14808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14809 aix_use_runtimelinking=yes 14810 break 14811 fi 14812 done 14813 ;; 14814 esac 14815 14816 exp_sym_flag='-bexport' 14817 no_entry_flag='-bnoentry' 14818 fi 14819 14820 # When large executables or shared objects are built, AIX ld can 14821 # have problems creating the table of contents. If linking a library 14822 # or program results in "error TOC overflow" add -mminimal-toc to 14823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14825 14826 archive_cmds_F77='' 14827 hardcode_direct_F77=yes 14828 hardcode_libdir_separator_F77=':' 14829 link_all_deplibs_F77=yes 14830 14831 if test "$GCC" = yes; then 14832 case $host_os in aix4.[012]|aix4.[012].*) 14833 # We only want to do this on AIX 4.2 and lower, the check 14834 # below for broken collect2 doesn't work under 4.3+ 14835 collect2name=`${CC} -print-prog-name=collect2` 14836 if test -f "$collect2name" && \ 14837 strings "$collect2name" | grep resolve_lib_name >/dev/null 14838 then 14839 # We have reworked collect2 14840 hardcode_direct_F77=yes 14841 else 14842 # We have old collect2 14843 hardcode_direct_F77=unsupported 14844 # It fails to find uninstalled libraries when the uninstalled 14845 # path is not listed in the libpath. Setting hardcode_minus_L 14846 # to unsupported forces relinking 14847 hardcode_minus_L_F77=yes 14848 hardcode_libdir_flag_spec_F77='-L$libdir' 14849 hardcode_libdir_separator_F77= 14850 fi 14851 ;; 14852 esac 14853 shared_flag='-shared' 14854 if test "$aix_use_runtimelinking" = yes; then 14855 shared_flag="$shared_flag "'${wl}-G' 14856 fi 14857 else 14858 # not using gcc 14859 if test "$host_cpu" = ia64; then 14860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14861 # chokes on -Wl,-G. The following line is correct: 14862 shared_flag='-G' 14863 else 14864 if test "$aix_use_runtimelinking" = yes; then 14865 shared_flag='${wl}-G' 14866 else 14867 shared_flag='${wl}-bM:SRE' 14868 fi 14869 fi 14870 fi 14871 14872 # It seems that -bexpall does not export symbols beginning with 14873 # underscore (_), so it is better to generate a list of symbols to export. 14874 always_export_symbols_F77=yes 14875 if test "$aix_use_runtimelinking" = yes; then 14876 # Warning - without using the other runtime loading flags (-brtl), 14877 # -berok will link without error, but may produce a broken library. 14878 allow_undefined_flag_F77='-berok' 14879 # Determine the default libpath from the value encoded in an empty executable. 14880 cat >conftest.$ac_ext <<_ACEOF 14881 program main 14882 14883 end 14884_ACEOF 14885rm -f conftest.$ac_objext conftest$ac_exeext 14886if { (ac_try="$ac_link" 14887case "(($ac_try" in 14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14889 *) ac_try_echo=$ac_try;; 14890esac 14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14892 (eval "$ac_link") 2>conftest.er1 14893 ac_status=$? 14894 grep -v '^ *+' conftest.er1 >conftest.err 14895 rm -f conftest.er1 14896 cat conftest.err >&5 14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14898 (exit $ac_status); } && 14899 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14900 { (case "(($ac_try" in 14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14902 *) ac_try_echo=$ac_try;; 14903esac 14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14905 (eval "$ac_try") 2>&5 14906 ac_status=$? 14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14908 (exit $ac_status); }; } && 14909 { ac_try='test -s conftest$ac_exeext' 14910 { (case "(($ac_try" in 14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14912 *) ac_try_echo=$ac_try;; 14913esac 14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14915 (eval "$ac_try") 2>&5 14916 ac_status=$? 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 (exit $ac_status); }; }; then 14919 14920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14921}'` 14922# Check for a 64-bit object if we didn't find anything. 14923if 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; } 14924}'`; fi 14925else 14926 echo "$as_me: failed program was:" >&5 14927sed 's/^/| /' conftest.$ac_ext >&5 14928 14929 14930fi 14931 14932rm -f core conftest.err conftest.$ac_objext \ 14933 conftest$ac_exeext conftest.$ac_ext 14934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14935 14936 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14937 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" 14938 else 14939 if test "$host_cpu" = ia64; then 14940 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14941 allow_undefined_flag_F77="-z nodefs" 14942 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" 14943 else 14944 # Determine the default libpath from the value encoded in an empty executable. 14945 cat >conftest.$ac_ext <<_ACEOF 14946 program main 14947 14948 end 14949_ACEOF 14950rm -f conftest.$ac_objext conftest$ac_exeext 14951if { (ac_try="$ac_link" 14952case "(($ac_try" in 14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14954 *) ac_try_echo=$ac_try;; 14955esac 14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14957 (eval "$ac_link") 2>conftest.er1 14958 ac_status=$? 14959 grep -v '^ *+' conftest.er1 >conftest.err 14960 rm -f conftest.er1 14961 cat conftest.err >&5 14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14963 (exit $ac_status); } && 14964 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14965 { (case "(($ac_try" in 14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14967 *) ac_try_echo=$ac_try;; 14968esac 14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14970 (eval "$ac_try") 2>&5 14971 ac_status=$? 14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14973 (exit $ac_status); }; } && 14974 { ac_try='test -s conftest$ac_exeext' 14975 { (case "(($ac_try" in 14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14977 *) ac_try_echo=$ac_try;; 14978esac 14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14980 (eval "$ac_try") 2>&5 14981 ac_status=$? 14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14983 (exit $ac_status); }; }; then 14984 14985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14986}'` 14987# Check for a 64-bit object if we didn't find anything. 14988if 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; } 14989}'`; fi 14990else 14991 echo "$as_me: failed program was:" >&5 14992sed 's/^/| /' conftest.$ac_ext >&5 14993 14994 14995fi 14996 14997rm -f core conftest.err conftest.$ac_objext \ 14998 conftest$ac_exeext conftest.$ac_ext 14999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15000 15001 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15002 # Warning - without using the other run time loading flags, 15003 # -berok will link without error, but may produce a broken library. 15004 no_undefined_flag_F77=' ${wl}-bernotok' 15005 allow_undefined_flag_F77=' ${wl}-berok' 15006 # Exported symbols can be pulled into shared objects from archives 15007 whole_archive_flag_spec_F77='$convenience' 15008 archive_cmds_need_lc_F77=yes 15009 # This is similar to how AIX traditionally builds its shared libraries. 15010 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' 15011 fi 15012 fi 15013 ;; 15014 15015 amigaos*) 15016 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)' 15017 hardcode_libdir_flag_spec_F77='-L$libdir' 15018 hardcode_minus_L_F77=yes 15019 # see comment about different semantics on the GNU ld section 15020 ld_shlibs_F77=no 15021 ;; 15022 15023 bsdi[45]*) 15024 export_dynamic_flag_spec_F77=-rdynamic 15025 ;; 15026 15027 cygwin* | mingw* | pw32*) 15028 # When not using gcc, we currently assume that we are using 15029 # Microsoft Visual C++. 15030 # hardcode_libdir_flag_spec is actually meaningless, as there is 15031 # no search path for DLLs. 15032 hardcode_libdir_flag_spec_F77=' ' 15033 allow_undefined_flag_F77=unsupported 15034 # Tell ltmain to make .lib files, not .a files. 15035 libext=lib 15036 # Tell ltmain to make .dll files, not .so files. 15037 shrext_cmds=".dll" 15038 # FIXME: Setting linknames here is a bad hack. 15039 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15040 # The linker will automatically build a .lib file if we build a DLL. 15041 old_archive_From_new_cmds_F77='true' 15042 # FIXME: Should let the user specify the lib program. 15043 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15044 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15045 enable_shared_with_static_runtimes_F77=yes 15046 ;; 15047 15048 darwin* | rhapsody*) 15049 case $host_os in 15050 rhapsody* | darwin1.[012]) 15051 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15052 ;; 15053 *) # Darwin 1.3 on 15054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15055 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15056 else 15057 case ${MACOSX_DEPLOYMENT_TARGET} in 15058 10.[012]) 15059 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15060 ;; 15061 10.*) 15062 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15063 ;; 15064 esac 15065 fi 15066 ;; 15067 esac 15068 archive_cmds_need_lc_F77=no 15069 hardcode_direct_F77=no 15070 hardcode_automatic_F77=yes 15071 hardcode_shlibpath_var_F77=unsupported 15072 whole_archive_flag_spec_F77='' 15073 link_all_deplibs_F77=yes 15074 if test "$GCC" = yes ; then 15075 output_verbose_link_cmd='echo' 15076 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15077 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15078 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15079 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}' 15080 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}' 15081 else 15082 case $cc_basename in 15083 xlc*) 15084 output_verbose_link_cmd='echo' 15085 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15086 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15088 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}' 15089 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}' 15090 ;; 15091 *) 15092 ld_shlibs_F77=no 15093 ;; 15094 esac 15095 fi 15096 ;; 15097 15098 dgux*) 15099 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15100 hardcode_libdir_flag_spec_F77='-L$libdir' 15101 hardcode_shlibpath_var_F77=no 15102 ;; 15103 15104 freebsd1*) 15105 ld_shlibs_F77=no 15106 ;; 15107 15108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15109 # support. Future versions do this automatically, but an explicit c++rt0.o 15110 # does not break anything, and helps significantly (at the cost of a little 15111 # extra space). 15112 freebsd2.2*) 15113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15114 hardcode_libdir_flag_spec_F77='-R$libdir' 15115 hardcode_direct_F77=yes 15116 hardcode_shlibpath_var_F77=no 15117 ;; 15118 15119 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15120 freebsd2*) 15121 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15122 hardcode_direct_F77=yes 15123 hardcode_minus_L_F77=yes 15124 hardcode_shlibpath_var_F77=no 15125 ;; 15126 15127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15128 freebsd* | dragonfly*) 15129 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15130 hardcode_libdir_flag_spec_F77='-R$libdir' 15131 hardcode_direct_F77=yes 15132 hardcode_shlibpath_var_F77=no 15133 ;; 15134 15135 hpux9*) 15136 if test "$GCC" = yes; then 15137 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' 15138 else 15139 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' 15140 fi 15141 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15142 hardcode_libdir_separator_F77=: 15143 hardcode_direct_F77=yes 15144 15145 # hardcode_minus_L: Not really in the search PATH, 15146 # but as the default location of the library. 15147 hardcode_minus_L_F77=yes 15148 export_dynamic_flag_spec_F77='${wl}-E' 15149 ;; 15150 15151 hpux10*) 15152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15153 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15154 else 15155 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15156 fi 15157 if test "$with_gnu_ld" = no; then 15158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15159 hardcode_libdir_separator_F77=: 15160 15161 hardcode_direct_F77=yes 15162 export_dynamic_flag_spec_F77='${wl}-E' 15163 15164 # hardcode_minus_L: Not really in the search PATH, 15165 # but as the default location of the library. 15166 hardcode_minus_L_F77=yes 15167 fi 15168 ;; 15169 15170 hpux11*) 15171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15172 case $host_cpu in 15173 hppa*64*) 15174 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15175 ;; 15176 ia64*) 15177 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15178 ;; 15179 *) 15180 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15181 ;; 15182 esac 15183 else 15184 case $host_cpu in 15185 hppa*64*) 15186 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15187 ;; 15188 ia64*) 15189 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15190 ;; 15191 *) 15192 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15193 ;; 15194 esac 15195 fi 15196 if test "$with_gnu_ld" = no; then 15197 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15198 hardcode_libdir_separator_F77=: 15199 15200 case $host_cpu in 15201 hppa*64*|ia64*) 15202 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15203 hardcode_direct_F77=no 15204 hardcode_shlibpath_var_F77=no 15205 ;; 15206 *) 15207 hardcode_direct_F77=yes 15208 export_dynamic_flag_spec_F77='${wl}-E' 15209 15210 # hardcode_minus_L: Not really in the search PATH, 15211 # but as the default location of the library. 15212 hardcode_minus_L_F77=yes 15213 ;; 15214 esac 15215 fi 15216 ;; 15217 15218 irix5* | irix6* | nonstopux*) 15219 if test "$GCC" = yes; then 15220 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' 15221 else 15222 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' 15223 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15224 fi 15225 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15226 hardcode_libdir_separator_F77=: 15227 link_all_deplibs_F77=yes 15228 ;; 15229 15230 netbsd* | netbsdelf*-gnu) 15231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15232 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15233 else 15234 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15235 fi 15236 hardcode_libdir_flag_spec_F77='-R$libdir' 15237 hardcode_direct_F77=yes 15238 hardcode_shlibpath_var_F77=no 15239 ;; 15240 15241 newsos6) 15242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15243 hardcode_direct_F77=yes 15244 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15245 hardcode_libdir_separator_F77=: 15246 hardcode_shlibpath_var_F77=no 15247 ;; 15248 15249 openbsd*) 15250 hardcode_direct_F77=yes 15251 hardcode_shlibpath_var_F77=no 15252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15253 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15254 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15255 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15256 export_dynamic_flag_spec_F77='${wl}-E' 15257 else 15258 case $host_os in 15259 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15260 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15261 hardcode_libdir_flag_spec_F77='-R$libdir' 15262 ;; 15263 *) 15264 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15265 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15266 ;; 15267 esac 15268 fi 15269 ;; 15270 15271 os2*) 15272 hardcode_libdir_flag_spec_F77='-L$libdir' 15273 hardcode_minus_L_F77=yes 15274 allow_undefined_flag_F77=unsupported 15275 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' 15276 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15277 ;; 15278 15279 osf3*) 15280 if test "$GCC" = yes; then 15281 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15282 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' 15283 else 15284 allow_undefined_flag_F77=' -expect_unresolved \*' 15285 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' 15286 fi 15287 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15288 hardcode_libdir_separator_F77=: 15289 ;; 15290 15291 osf4* | osf5*) # as osf3* with the addition of -msym flag 15292 if test "$GCC" = yes; then 15293 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15294 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' 15295 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15296 else 15297 allow_undefined_flag_F77=' -expect_unresolved \*' 15298 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' 15299 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~ 15300 $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' 15301 15302 # Both c and cxx compiler support -rpath directly 15303 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15304 fi 15305 hardcode_libdir_separator_F77=: 15306 ;; 15307 15308 solaris*) 15309 no_undefined_flag_F77=' -z text' 15310 if test "$GCC" = yes; then 15311 wlarc='${wl}' 15312 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15313 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15314 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15315 else 15316 wlarc='' 15317 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15318 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15320 fi 15321 hardcode_libdir_flag_spec_F77='-R$libdir' 15322 hardcode_shlibpath_var_F77=no 15323 case $host_os in 15324 solaris2.[0-5] | solaris2.[0-5].*) ;; 15325 *) 15326 # The compiler driver will combine linker options so we 15327 # cannot just pass the convience library names through 15328 # without $wl, iff we do not link with $LD. 15329 # Luckily, gcc supports the same syntax we need for Sun Studio. 15330 # Supported since Solaris 2.6 (maybe 2.5.1?) 15331 case $wlarc in 15332 '') 15333 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15334 *) 15335 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' ;; 15336 esac ;; 15337 esac 15338 link_all_deplibs_F77=yes 15339 ;; 15340 15341 sunos4*) 15342 if test "x$host_vendor" = xsequent; then 15343 # Use $CC to link under sequent, because it throws in some extra .o 15344 # files that make .init and .fini sections work. 15345 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15346 else 15347 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15348 fi 15349 hardcode_libdir_flag_spec_F77='-L$libdir' 15350 hardcode_direct_F77=yes 15351 hardcode_minus_L_F77=yes 15352 hardcode_shlibpath_var_F77=no 15353 ;; 15354 15355 sysv4) 15356 case $host_vendor in 15357 sni) 15358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15359 hardcode_direct_F77=yes # is this really true??? 15360 ;; 15361 siemens) 15362 ## LD is ld it makes a PLAMLIB 15363 ## CC just makes a GrossModule. 15364 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15365 reload_cmds_F77='$CC -r -o $output$reload_objs' 15366 hardcode_direct_F77=no 15367 ;; 15368 motorola) 15369 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15370 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15371 ;; 15372 esac 15373 runpath_var='LD_RUN_PATH' 15374 hardcode_shlibpath_var_F77=no 15375 ;; 15376 15377 sysv4.3*) 15378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15379 hardcode_shlibpath_var_F77=no 15380 export_dynamic_flag_spec_F77='-Bexport' 15381 ;; 15382 15383 sysv4*MP*) 15384 if test -d /usr/nec; then 15385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15386 hardcode_shlibpath_var_F77=no 15387 runpath_var=LD_RUN_PATH 15388 hardcode_runpath_var=yes 15389 ld_shlibs_F77=yes 15390 fi 15391 ;; 15392 15393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15394 no_undefined_flag_F77='${wl}-z,text' 15395 archive_cmds_need_lc_F77=no 15396 hardcode_shlibpath_var_F77=no 15397 runpath_var='LD_RUN_PATH' 15398 15399 if test "$GCC" = yes; then 15400 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15401 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15402 else 15403 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15404 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15405 fi 15406 ;; 15407 15408 sysv5* | sco3.2v5* | sco5v6*) 15409 # Note: We can NOT use -z defs as we might desire, because we do not 15410 # link with -lc, and that would cause any symbols used from libc to 15411 # always be unresolved, which means just about no library would 15412 # ever link correctly. If we're not using GNU ld we use -z text 15413 # though, which does catch some bad symbols but isn't as heavy-handed 15414 # as -z defs. 15415 no_undefined_flag_F77='${wl}-z,text' 15416 allow_undefined_flag_F77='${wl}-z,nodefs' 15417 archive_cmds_need_lc_F77=no 15418 hardcode_shlibpath_var_F77=no 15419 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15420 hardcode_libdir_separator_F77=':' 15421 link_all_deplibs_F77=yes 15422 export_dynamic_flag_spec_F77='${wl}-Bexport' 15423 runpath_var='LD_RUN_PATH' 15424 15425 if test "$GCC" = yes; then 15426 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15427 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15428 else 15429 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15430 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15431 fi 15432 ;; 15433 15434 uts4*) 15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15436 hardcode_libdir_flag_spec_F77='-L$libdir' 15437 hardcode_shlibpath_var_F77=no 15438 ;; 15439 15440 *) 15441 ld_shlibs_F77=no 15442 ;; 15443 esac 15444 fi 15445 15446{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15447echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15448test "$ld_shlibs_F77" = no && can_build_shared=no 15449 15450# 15451# Do we need to explicitly link libc? 15452# 15453case "x$archive_cmds_need_lc_F77" in 15454x|xyes) 15455 # Assume -lc should be added 15456 archive_cmds_need_lc_F77=yes 15457 15458 if test "$enable_shared" = yes && test "$GCC" = yes; then 15459 case $archive_cmds_F77 in 15460 *'~'*) 15461 # FIXME: we may have to deal with multi-command sequences. 15462 ;; 15463 '$CC '*) 15464 # Test whether the compiler implicitly links with -lc since on some 15465 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15466 # to ld, don't add -lc before -lgcc. 15467 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15468echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15469 $rm conftest* 15470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15471 15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15473 (eval $ac_compile) 2>&5 15474 ac_status=$? 15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15476 (exit $ac_status); } 2>conftest.err; then 15477 soname=conftest 15478 lib=conftest 15479 libobjs=conftest.$ac_objext 15480 deplibs= 15481 wl=$lt_prog_compiler_wl_F77 15482 pic_flag=$lt_prog_compiler_pic_F77 15483 compiler_flags=-v 15484 linker_flags=-v 15485 verstring= 15486 output_objdir=. 15487 libname=conftest 15488 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15489 allow_undefined_flag_F77= 15490 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15491 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15492 ac_status=$? 15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15494 (exit $ac_status); } 15495 then 15496 archive_cmds_need_lc_F77=no 15497 else 15498 archive_cmds_need_lc_F77=yes 15499 fi 15500 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15501 else 15502 cat conftest.err 1>&5 15503 fi 15504 $rm conftest* 15505 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15506echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15507 ;; 15508 esac 15509 fi 15510 ;; 15511esac 15512 15513{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15515library_names_spec= 15516libname_spec='lib$name' 15517soname_spec= 15518shrext_cmds=".so" 15519postinstall_cmds= 15520postuninstall_cmds= 15521finish_cmds= 15522finish_eval= 15523shlibpath_var= 15524shlibpath_overrides_runpath=unknown 15525version_type=none 15526dynamic_linker="$host_os ld.so" 15527sys_lib_dlsearch_path_spec="/lib /usr/lib" 15528if test "$GCC" = yes; then 15529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15531 # if the path contains ";" then we assume it to be the separator 15532 # otherwise default to the standard path separator (i.e. ":") - it is 15533 # assumed that no part of a normal pathname contains ";" but that should 15534 # okay in the real world where ";" in dirpaths is itself problematic. 15535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15536 else 15537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15538 fi 15539else 15540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15541fi 15542need_lib_prefix=unknown 15543hardcode_into_libs=no 15544 15545# when you set need_version to no, make sure it does not cause -set_version 15546# flags to be left without arguments 15547need_version=unknown 15548 15549case $host_os in 15550aix3*) 15551 version_type=linux 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15553 shlibpath_var=LIBPATH 15554 15555 # AIX 3 has no versioning support, so we append a major version to the name. 15556 soname_spec='${libname}${release}${shared_ext}$major' 15557 ;; 15558 15559aix4* | aix5*) 15560 version_type=linux 15561 need_lib_prefix=no 15562 need_version=no 15563 hardcode_into_libs=yes 15564 if test "$host_cpu" = ia64; then 15565 # AIX 5 supports IA64 15566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15567 shlibpath_var=LD_LIBRARY_PATH 15568 else 15569 # With GCC up to 2.95.x, collect2 would create an import file 15570 # for dependence libraries. The import file would start with 15571 # the line `#! .'. This would cause the generated library to 15572 # depend on `.', always an invalid library. This was fixed in 15573 # development snapshots of GCC prior to 3.0. 15574 case $host_os in 15575 aix4 | aix4.[01] | aix4.[01].*) 15576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15577 echo ' yes ' 15578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15579 : 15580 else 15581 can_build_shared=no 15582 fi 15583 ;; 15584 esac 15585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15586 # soname into executable. Probably we can add versioning support to 15587 # collect2, so additional links can be useful in future. 15588 if test "$aix_use_runtimelinking" = yes; then 15589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15590 # instead of lib<name>.a to let people know that these are not 15591 # typical AIX shared libraries. 15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15593 else 15594 # We preserve .a as extension for shared libraries through AIX4.2 15595 # and later when we are not doing run time linking. 15596 library_names_spec='${libname}${release}.a $libname.a' 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 fi 15599 shlibpath_var=LIBPATH 15600 fi 15601 ;; 15602 15603amigaos*) 15604 library_names_spec='$libname.ixlibrary $libname.a' 15605 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15606 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' 15607 ;; 15608 15609beos*) 15610 library_names_spec='${libname}${shared_ext}' 15611 dynamic_linker="$host_os ld.so" 15612 shlibpath_var=LIBRARY_PATH 15613 ;; 15614 15615bsdi[45]*) 15616 version_type=linux 15617 need_version=no 15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15619 soname_spec='${libname}${release}${shared_ext}$major' 15620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15621 shlibpath_var=LD_LIBRARY_PATH 15622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15624 # the default ld.so.conf also contains /usr/contrib/lib and 15625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15626 # libtool to hard-code these into programs 15627 ;; 15628 15629cygwin* | mingw* | pw32*) 15630 version_type=windows 15631 shrext_cmds=".dll" 15632 need_version=no 15633 need_lib_prefix=no 15634 15635 case $GCC,$host_os in 15636 yes,cygwin* | yes,mingw* | yes,pw32*) 15637 library_names_spec='$libname.dll.a' 15638 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15639 postinstall_cmds='base_file=`basename \${file}`~ 15640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15641 dldir=$destdir/`dirname \$dlpath`~ 15642 test -d \$dldir || mkdir -p \$dldir~ 15643 $install_prog $dir/$dlname \$dldir/$dlname~ 15644 chmod a+x \$dldir/$dlname' 15645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15646 dlpath=$dir/\$dldll~ 15647 $rm \$dlpath' 15648 shlibpath_overrides_runpath=yes 15649 15650 case $host_os in 15651 cygwin*) 15652 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15655 ;; 15656 mingw*) 15657 # MinGW DLLs use traditional 'lib' prefix 15658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15661 # It is most probably a Windows format PATH printed by 15662 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15663 # path with ; separators, and with drive letters. We can handle the 15664 # drive letters (cygwin fileutils understands them), so leave them, 15665 # especially as we might pass files found there to a mingw objdump, 15666 # which wouldn't understand a cygwinified path. Ahh. 15667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15668 else 15669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15670 fi 15671 ;; 15672 pw32*) 15673 # pw32 DLLs use 'pw' prefix rather than 'lib' 15674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15675 ;; 15676 esac 15677 ;; 15678 15679 *) 15680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15681 ;; 15682 esac 15683 dynamic_linker='Win32 ld.exe' 15684 # FIXME: first we should search . and the directory the executable is in 15685 shlibpath_var=PATH 15686 ;; 15687 15688darwin* | rhapsody*) 15689 dynamic_linker="$host_os dyld" 15690 version_type=darwin 15691 need_lib_prefix=no 15692 need_version=no 15693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15694 soname_spec='${libname}${release}${major}$shared_ext' 15695 shlibpath_overrides_runpath=yes 15696 shlibpath_var=DYLD_LIBRARY_PATH 15697 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15699 if test "$GCC" = yes; then 15700 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"` 15701 else 15702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15703 fi 15704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15705 ;; 15706 15707dgux*) 15708 version_type=linux 15709 need_lib_prefix=no 15710 need_version=no 15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15712 soname_spec='${libname}${release}${shared_ext}$major' 15713 shlibpath_var=LD_LIBRARY_PATH 15714 ;; 15715 15716freebsd1*) 15717 dynamic_linker=no 15718 ;; 15719 15720freebsd* | dragonfly*) 15721 # DragonFly does not have aout. When/if they implement a new 15722 # versioning mechanism, adjust this. 15723 if test -x /usr/bin/objformat; then 15724 objformat=`/usr/bin/objformat` 15725 else 15726 case $host_os in 15727 freebsd[123]*) objformat=aout ;; 15728 *) objformat=elf ;; 15729 esac 15730 fi 15731 version_type=freebsd-$objformat 15732 case $version_type in 15733 freebsd-elf*) 15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15735 need_version=no 15736 need_lib_prefix=no 15737 ;; 15738 freebsd-*) 15739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15740 need_version=yes 15741 ;; 15742 esac 15743 shlibpath_var=LD_LIBRARY_PATH 15744 case $host_os in 15745 freebsd2*) 15746 shlibpath_overrides_runpath=yes 15747 ;; 15748 freebsd3.[01]* | freebsdelf3.[01]*) 15749 shlibpath_overrides_runpath=yes 15750 hardcode_into_libs=yes 15751 ;; 15752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15754 shlibpath_overrides_runpath=no 15755 hardcode_into_libs=yes 15756 ;; 15757 freebsd*) # from 4.6 on 15758 shlibpath_overrides_runpath=yes 15759 hardcode_into_libs=yes 15760 ;; 15761 esac 15762 ;; 15763 15764gnu*) 15765 version_type=linux 15766 need_lib_prefix=no 15767 need_version=no 15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15769 soname_spec='${libname}${release}${shared_ext}$major' 15770 shlibpath_var=LD_LIBRARY_PATH 15771 hardcode_into_libs=yes 15772 ;; 15773 15774hpux9* | hpux10* | hpux11*) 15775 # Give a soname corresponding to the major version so that dld.sl refuses to 15776 # link against other versions. 15777 version_type=sunos 15778 need_lib_prefix=no 15779 need_version=no 15780 case $host_cpu in 15781 ia64*) 15782 shrext_cmds='.so' 15783 hardcode_into_libs=yes 15784 dynamic_linker="$host_os dld.so" 15785 shlibpath_var=LD_LIBRARY_PATH 15786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15788 soname_spec='${libname}${release}${shared_ext}$major' 15789 if test "X$HPUX_IA64_MODE" = X32; then 15790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15791 else 15792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15793 fi 15794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15795 ;; 15796 hppa*64*) 15797 shrext_cmds='.sl' 15798 hardcode_into_libs=yes 15799 dynamic_linker="$host_os dld.sl" 15800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15803 soname_spec='${libname}${release}${shared_ext}$major' 15804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15806 ;; 15807 *) 15808 shrext_cmds='.sl' 15809 dynamic_linker="$host_os dld.sl" 15810 shlibpath_var=SHLIB_PATH 15811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15813 soname_spec='${libname}${release}${shared_ext}$major' 15814 ;; 15815 esac 15816 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15817 postinstall_cmds='chmod 555 $lib' 15818 ;; 15819 15820interix3*) 15821 version_type=linux 15822 need_lib_prefix=no 15823 need_version=no 15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15825 soname_spec='${libname}${release}${shared_ext}$major' 15826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15827 shlibpath_var=LD_LIBRARY_PATH 15828 shlibpath_overrides_runpath=no 15829 hardcode_into_libs=yes 15830 ;; 15831 15832irix5* | irix6* | nonstopux*) 15833 case $host_os in 15834 nonstopux*) version_type=nonstopux ;; 15835 *) 15836 if test "$lt_cv_prog_gnu_ld" = yes; then 15837 version_type=linux 15838 else 15839 version_type=irix 15840 fi ;; 15841 esac 15842 need_lib_prefix=no 15843 need_version=no 15844 soname_spec='${libname}${release}${shared_ext}$major' 15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15846 case $host_os in 15847 irix5* | nonstopux*) 15848 libsuff= shlibsuff= 15849 ;; 15850 *) 15851 case $LD in # libtool.m4 will add one of these switches to LD 15852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15853 libsuff= shlibsuff= libmagic=32-bit;; 15854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15855 libsuff=32 shlibsuff=N32 libmagic=N32;; 15856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15857 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15858 *) libsuff= shlibsuff= libmagic=never-match;; 15859 esac 15860 ;; 15861 esac 15862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15863 shlibpath_overrides_runpath=no 15864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15866 hardcode_into_libs=yes 15867 ;; 15868 15869# No shared lib support for Linux oldld, aout, or coff. 15870linux*oldld* | linux*aout* | linux*coff*) 15871 dynamic_linker=no 15872 ;; 15873 15874# This must be Linux ELF. 15875linux* | k*bsd*-gnu) 15876 version_type=linux 15877 need_lib_prefix=no 15878 need_version=no 15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15880 soname_spec='${libname}${release}${shared_ext}$major' 15881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15882 shlibpath_var=LD_LIBRARY_PATH 15883 shlibpath_overrides_runpath=no 15884 # This implies no fast_install, which is unacceptable. 15885 # Some rework will be needed to allow for fast_install 15886 # before this can be enabled. 15887 hardcode_into_libs=yes 15888 15889 # Append ld.so.conf contents to the search path 15890 if test -f /etc/ld.so.conf; then 15891 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' ' '` 15892 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15893 fi 15894 15895 # We used to test for /lib/ld.so.1 and disable shared libraries on 15896 # powerpc, because MkLinux only supported shared libraries with the 15897 # GNU dynamic linker. Since this was broken with cross compilers, 15898 # most powerpc-linux boxes support dynamic linking these days and 15899 # people can always --disable-shared, the test was removed, and we 15900 # assume the GNU/Linux dynamic linker is in use. 15901 dynamic_linker='GNU/Linux ld.so' 15902 ;; 15903 15904netbsdelf*-gnu) 15905 version_type=linux 15906 need_lib_prefix=no 15907 need_version=no 15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15909 soname_spec='${libname}${release}${shared_ext}$major' 15910 shlibpath_var=LD_LIBRARY_PATH 15911 shlibpath_overrides_runpath=no 15912 hardcode_into_libs=yes 15913 dynamic_linker='NetBSD ld.elf_so' 15914 ;; 15915 15916netbsd*) 15917 version_type=sunos 15918 need_lib_prefix=no 15919 need_version=no 15920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15923 dynamic_linker='NetBSD (a.out) ld.so' 15924 else 15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15926 soname_spec='${libname}${release}${shared_ext}$major' 15927 dynamic_linker='NetBSD ld.elf_so' 15928 fi 15929 shlibpath_var=LD_LIBRARY_PATH 15930 shlibpath_overrides_runpath=yes 15931 hardcode_into_libs=yes 15932 ;; 15933 15934newsos6) 15935 version_type=linux 15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15937 shlibpath_var=LD_LIBRARY_PATH 15938 shlibpath_overrides_runpath=yes 15939 ;; 15940 15941nto-qnx*) 15942 version_type=linux 15943 need_lib_prefix=no 15944 need_version=no 15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15946 soname_spec='${libname}${release}${shared_ext}$major' 15947 shlibpath_var=LD_LIBRARY_PATH 15948 shlibpath_overrides_runpath=yes 15949 ;; 15950 15951openbsd*) 15952 version_type=sunos 15953 sys_lib_dlsearch_path_spec="/usr/lib" 15954 need_lib_prefix=no 15955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15956 case $host_os in 15957 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15958 *) need_version=no ;; 15959 esac 15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15962 shlibpath_var=LD_LIBRARY_PATH 15963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15964 case $host_os in 15965 openbsd2.[89] | openbsd2.[89].*) 15966 shlibpath_overrides_runpath=no 15967 ;; 15968 *) 15969 shlibpath_overrides_runpath=yes 15970 ;; 15971 esac 15972 else 15973 shlibpath_overrides_runpath=yes 15974 fi 15975 ;; 15976 15977os2*) 15978 libname_spec='$name' 15979 shrext_cmds=".dll" 15980 need_lib_prefix=no 15981 library_names_spec='$libname${shared_ext} $libname.a' 15982 dynamic_linker='OS/2 ld.exe' 15983 shlibpath_var=LIBPATH 15984 ;; 15985 15986osf3* | osf4* | osf5*) 15987 version_type=osf 15988 need_lib_prefix=no 15989 need_version=no 15990 soname_spec='${libname}${release}${shared_ext}$major' 15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15992 shlibpath_var=LD_LIBRARY_PATH 15993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15995 ;; 15996 15997solaris*) 15998 version_type=linux 15999 need_lib_prefix=no 16000 need_version=no 16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16002 soname_spec='${libname}${release}${shared_ext}$major' 16003 shlibpath_var=LD_LIBRARY_PATH 16004 shlibpath_overrides_runpath=yes 16005 hardcode_into_libs=yes 16006 # ldd complains unless libraries are executable 16007 postinstall_cmds='chmod +x $lib' 16008 ;; 16009 16010sunos4*) 16011 version_type=sunos 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16014 shlibpath_var=LD_LIBRARY_PATH 16015 shlibpath_overrides_runpath=yes 16016 if test "$with_gnu_ld" = yes; then 16017 need_lib_prefix=no 16018 fi 16019 need_version=yes 16020 ;; 16021 16022sysv4 | sysv4.3*) 16023 version_type=linux 16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16025 soname_spec='${libname}${release}${shared_ext}$major' 16026 shlibpath_var=LD_LIBRARY_PATH 16027 case $host_vendor in 16028 sni) 16029 shlibpath_overrides_runpath=no 16030 need_lib_prefix=no 16031 export_dynamic_flag_spec='${wl}-Blargedynsym' 16032 runpath_var=LD_RUN_PATH 16033 ;; 16034 siemens) 16035 need_lib_prefix=no 16036 ;; 16037 motorola) 16038 need_lib_prefix=no 16039 need_version=no 16040 shlibpath_overrides_runpath=no 16041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16042 ;; 16043 esac 16044 ;; 16045 16046sysv4*MP*) 16047 if test -d /usr/nec ;then 16048 version_type=linux 16049 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16050 soname_spec='$libname${shared_ext}.$major' 16051 shlibpath_var=LD_LIBRARY_PATH 16052 fi 16053 ;; 16054 16055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16056 version_type=freebsd-elf 16057 need_lib_prefix=no 16058 need_version=no 16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16060 soname_spec='${libname}${release}${shared_ext}$major' 16061 shlibpath_var=LD_LIBRARY_PATH 16062 hardcode_into_libs=yes 16063 if test "$with_gnu_ld" = yes; then 16064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16065 shlibpath_overrides_runpath=no 16066 else 16067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16068 shlibpath_overrides_runpath=yes 16069 case $host_os in 16070 sco3.2v5*) 16071 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16072 ;; 16073 esac 16074 fi 16075 sys_lib_dlsearch_path_spec='/usr/lib' 16076 ;; 16077 16078uts4*) 16079 version_type=linux 16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16081 soname_spec='${libname}${release}${shared_ext}$major' 16082 shlibpath_var=LD_LIBRARY_PATH 16083 ;; 16084 16085*) 16086 dynamic_linker=no 16087 ;; 16088esac 16089{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16090echo "${ECHO_T}$dynamic_linker" >&6; } 16091test "$dynamic_linker" = no && can_build_shared=no 16092 16093variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16094if test "$GCC" = yes; then 16095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16096fi 16097 16098{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16100hardcode_action_F77= 16101if test -n "$hardcode_libdir_flag_spec_F77" || \ 16102 test -n "$runpath_var_F77" || \ 16103 test "X$hardcode_automatic_F77" = "Xyes" ; then 16104 16105 # We can hardcode non-existant directories. 16106 if test "$hardcode_direct_F77" != no && 16107 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16108 # have to relink, otherwise we might link with an installed library 16109 # when we should be linking with a yet-to-be-installed one 16110 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16111 test "$hardcode_minus_L_F77" != no; then 16112 # Linking always hardcodes the temporary library directory. 16113 hardcode_action_F77=relink 16114 else 16115 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16116 hardcode_action_F77=immediate 16117 fi 16118else 16119 # We cannot hardcode anything, or else we can only hardcode existing 16120 # directories. 16121 hardcode_action_F77=unsupported 16122fi 16123{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16124echo "${ECHO_T}$hardcode_action_F77" >&6; } 16125 16126if test "$hardcode_action_F77" = relink; then 16127 # Fast installation is not supported 16128 enable_fast_install=no 16129elif test "$shlibpath_overrides_runpath" = yes || 16130 test "$enable_shared" = no; then 16131 # Fast installation is not necessary 16132 enable_fast_install=needless 16133fi 16134 16135 16136# The else clause should only fire when bootstrapping the 16137# libtool distribution, otherwise you forgot to ship ltmain.sh 16138# with your package, and you will get complaints that there are 16139# no rules to generate ltmain.sh. 16140if test -f "$ltmain"; then 16141 # See if we are running on zsh, and set the options which allow our commands through 16142 # without removal of \ escapes. 16143 if test -n "${ZSH_VERSION+set}" ; then 16144 setopt NO_GLOB_SUBST 16145 fi 16146 # Now quote all the things that may contain metacharacters while being 16147 # careful not to overquote the AC_SUBSTed values. We take copies of the 16148 # variables and quote the copies for generation of the libtool script. 16149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16150 SED SHELL STRIP \ 16151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16153 deplibs_check_method reload_flag reload_cmds need_locks \ 16154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16155 lt_cv_sys_global_symbol_to_c_name_address \ 16156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16157 old_postinstall_cmds old_postuninstall_cmds \ 16158 compiler_F77 \ 16159 CC_F77 \ 16160 LD_F77 \ 16161 lt_prog_compiler_wl_F77 \ 16162 lt_prog_compiler_pic_F77 \ 16163 lt_prog_compiler_static_F77 \ 16164 lt_prog_compiler_no_builtin_flag_F77 \ 16165 export_dynamic_flag_spec_F77 \ 16166 thread_safe_flag_spec_F77 \ 16167 whole_archive_flag_spec_F77 \ 16168 enable_shared_with_static_runtimes_F77 \ 16169 old_archive_cmds_F77 \ 16170 old_archive_from_new_cmds_F77 \ 16171 predep_objects_F77 \ 16172 postdep_objects_F77 \ 16173 predeps_F77 \ 16174 postdeps_F77 \ 16175 compiler_lib_search_path_F77 \ 16176 archive_cmds_F77 \ 16177 archive_expsym_cmds_F77 \ 16178 postinstall_cmds_F77 \ 16179 postuninstall_cmds_F77 \ 16180 old_archive_from_expsyms_cmds_F77 \ 16181 allow_undefined_flag_F77 \ 16182 no_undefined_flag_F77 \ 16183 export_symbols_cmds_F77 \ 16184 hardcode_libdir_flag_spec_F77 \ 16185 hardcode_libdir_flag_spec_ld_F77 \ 16186 hardcode_libdir_separator_F77 \ 16187 hardcode_automatic_F77 \ 16188 module_cmds_F77 \ 16189 module_expsym_cmds_F77 \ 16190 lt_cv_prog_compiler_c_o_F77 \ 16191 exclude_expsyms_F77 \ 16192 include_expsyms_F77; do 16193 16194 case $var in 16195 old_archive_cmds_F77 | \ 16196 old_archive_from_new_cmds_F77 | \ 16197 archive_cmds_F77 | \ 16198 archive_expsym_cmds_F77 | \ 16199 module_cmds_F77 | \ 16200 module_expsym_cmds_F77 | \ 16201 old_archive_from_expsyms_cmds_F77 | \ 16202 export_symbols_cmds_F77 | \ 16203 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16204 postinstall_cmds | postuninstall_cmds | \ 16205 old_postinstall_cmds | old_postuninstall_cmds | \ 16206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16207 # Double-quote double-evaled strings. 16208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16209 ;; 16210 *) 16211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16212 ;; 16213 esac 16214 done 16215 16216 case $lt_echo in 16217 *'\$0 --fallback-echo"') 16218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16219 ;; 16220 esac 16221 16222cfgfile="$ofile" 16223 16224 cat <<__EOF__ >> "$cfgfile" 16225# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16226 16227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16228 16229# Shell to use when invoking shell scripts. 16230SHELL=$lt_SHELL 16231 16232# Whether or not to build shared libraries. 16233build_libtool_libs=$enable_shared 16234 16235# Whether or not to build static libraries. 16236build_old_libs=$enable_static 16237 16238# Whether or not to add -lc for building shared libraries. 16239build_libtool_need_lc=$archive_cmds_need_lc_F77 16240 16241# Whether or not to disallow shared libs when runtime libs are static 16242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16243 16244# Whether or not to optimize for fast installation. 16245fast_install=$enable_fast_install 16246 16247# The host system. 16248host_alias=$host_alias 16249host=$host 16250host_os=$host_os 16251 16252# The build system. 16253build_alias=$build_alias 16254build=$build 16255build_os=$build_os 16256 16257# An echo program that does not interpret backslashes. 16258echo=$lt_echo 16259 16260# The archiver. 16261AR=$lt_AR 16262AR_FLAGS=$lt_AR_FLAGS 16263 16264# A C compiler. 16265LTCC=$lt_LTCC 16266 16267# LTCC compiler flags. 16268LTCFLAGS=$lt_LTCFLAGS 16269 16270# A language-specific compiler. 16271CC=$lt_compiler_F77 16272 16273# Is the compiler the GNU C compiler? 16274with_gcc=$GCC_F77 16275 16276# An ERE matcher. 16277EGREP=$lt_EGREP 16278 16279# The linker used to build libraries. 16280LD=$lt_LD_F77 16281 16282# Whether we need hard or soft links. 16283LN_S=$lt_LN_S 16284 16285# A BSD-compatible nm program. 16286NM=$lt_NM 16287 16288# A symbol stripping program 16289STRIP=$lt_STRIP 16290 16291# Used to examine libraries when file_magic_cmd begins "file" 16292MAGIC_CMD=$MAGIC_CMD 16293 16294# Used on cygwin: DLL creation program. 16295DLLTOOL="$DLLTOOL" 16296 16297# Used on cygwin: object dumper. 16298OBJDUMP="$OBJDUMP" 16299 16300# Used on cygwin: assembler. 16301AS="$AS" 16302 16303# The name of the directory that contains temporary libtool files. 16304objdir=$objdir 16305 16306# How to create reloadable object files. 16307reload_flag=$lt_reload_flag 16308reload_cmds=$lt_reload_cmds 16309 16310# How to pass a linker flag through the compiler. 16311wl=$lt_lt_prog_compiler_wl_F77 16312 16313# Object file suffix (normally "o"). 16314objext="$ac_objext" 16315 16316# Old archive suffix (normally "a"). 16317libext="$libext" 16318 16319# Shared library suffix (normally ".so"). 16320shrext_cmds='$shrext_cmds' 16321 16322# Executable file suffix (normally ""). 16323exeext="$exeext" 16324 16325# Additional compiler flags for building library objects. 16326pic_flag=$lt_lt_prog_compiler_pic_F77 16327pic_mode=$pic_mode 16328 16329# What is the maximum length of a command? 16330max_cmd_len=$lt_cv_sys_max_cmd_len 16331 16332# Does compiler simultaneously support -c and -o options? 16333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16334 16335# Must we lock files when doing compilation? 16336need_locks=$lt_need_locks 16337 16338# Do we need the lib prefix for modules? 16339need_lib_prefix=$need_lib_prefix 16340 16341# Do we need a version for libraries? 16342need_version=$need_version 16343 16344# Whether dlopen is supported. 16345dlopen_support=$enable_dlopen 16346 16347# Whether dlopen of programs is supported. 16348dlopen_self=$enable_dlopen_self 16349 16350# Whether dlopen of statically linked programs is supported. 16351dlopen_self_static=$enable_dlopen_self_static 16352 16353# Compiler flag to prevent dynamic linking. 16354link_static_flag=$lt_lt_prog_compiler_static_F77 16355 16356# Compiler flag to turn off builtin functions. 16357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16358 16359# Compiler flag to allow reflexive dlopens. 16360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16361 16362# Compiler flag to generate shared objects directly from archives. 16363whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16364 16365# Compiler flag to generate thread-safe objects. 16366thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16367 16368# Library versioning type. 16369version_type=$version_type 16370 16371# Format of library name prefix. 16372libname_spec=$lt_libname_spec 16373 16374# List of archive names. First name is the real one, the rest are links. 16375# The last name is the one that the linker finds with -lNAME. 16376library_names_spec=$lt_library_names_spec 16377 16378# The coded name of the library, if different from the real name. 16379soname_spec=$lt_soname_spec 16380 16381# Commands used to build and install an old-style archive. 16382RANLIB=$lt_RANLIB 16383old_archive_cmds=$lt_old_archive_cmds_F77 16384old_postinstall_cmds=$lt_old_postinstall_cmds 16385old_postuninstall_cmds=$lt_old_postuninstall_cmds 16386 16387# Create an old-style archive from a shared archive. 16388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16389 16390# Create a temporary old-style archive to link instead of a shared archive. 16391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16392 16393# Commands used to build and install a shared archive. 16394archive_cmds=$lt_archive_cmds_F77 16395archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16396postinstall_cmds=$lt_postinstall_cmds 16397postuninstall_cmds=$lt_postuninstall_cmds 16398 16399# Commands used to build a loadable module (assumed same as above if empty) 16400module_cmds=$lt_module_cmds_F77 16401module_expsym_cmds=$lt_module_expsym_cmds_F77 16402 16403# Commands to strip libraries. 16404old_striplib=$lt_old_striplib 16405striplib=$lt_striplib 16406 16407# Dependencies to place before the objects being linked to create a 16408# shared library. 16409predep_objects=$lt_predep_objects_F77 16410 16411# Dependencies to place after the objects being linked to create a 16412# shared library. 16413postdep_objects=$lt_postdep_objects_F77 16414 16415# Dependencies to place before the objects being linked to create a 16416# shared library. 16417predeps=$lt_predeps_F77 16418 16419# Dependencies to place after the objects being linked to create a 16420# shared library. 16421postdeps=$lt_postdeps_F77 16422 16423# The library search path used internally by the compiler when linking 16424# a shared library. 16425compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16426 16427# Method to check whether dependent libraries are shared objects. 16428deplibs_check_method=$lt_deplibs_check_method 16429 16430# Command to use when deplibs_check_method == file_magic. 16431file_magic_cmd=$lt_file_magic_cmd 16432 16433# Flag that allows shared libraries with undefined symbols to be built. 16434allow_undefined_flag=$lt_allow_undefined_flag_F77 16435 16436# Flag that forces no undefined symbols. 16437no_undefined_flag=$lt_no_undefined_flag_F77 16438 16439# Commands used to finish a libtool library installation in a directory. 16440finish_cmds=$lt_finish_cmds 16441 16442# Same as above, but a single script fragment to be evaled but not shown. 16443finish_eval=$lt_finish_eval 16444 16445# Take the output of nm and produce a listing of raw symbols and C names. 16446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16447 16448# Transform the output of nm in a proper C declaration 16449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16450 16451# Transform the output of nm in a C name address pair 16452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16453 16454# This is the shared library runtime path variable. 16455runpath_var=$runpath_var 16456 16457# This is the shared library path variable. 16458shlibpath_var=$shlibpath_var 16459 16460# Is shlibpath searched before the hard-coded library search path? 16461shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16462 16463# How to hardcode a shared library path into an executable. 16464hardcode_action=$hardcode_action_F77 16465 16466# Whether we should hardcode library paths into libraries. 16467hardcode_into_libs=$hardcode_into_libs 16468 16469# Flag to hardcode \$libdir into a binary during linking. 16470# This must work even if \$libdir does not exist. 16471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16472 16473# If ld is used when linking, flag to hardcode \$libdir into 16474# a binary during linking. This must work even if \$libdir does 16475# not exist. 16476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16477 16478# Whether we need a single -rpath flag with a separated argument. 16479hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16480 16481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16482# resulting binary. 16483hardcode_direct=$hardcode_direct_F77 16484 16485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16486# resulting binary. 16487hardcode_minus_L=$hardcode_minus_L_F77 16488 16489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16490# the resulting binary. 16491hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16492 16493# Set to yes if building a shared library automatically hardcodes DIR into the library 16494# and all subsequent libraries and executables linked against it. 16495hardcode_automatic=$hardcode_automatic_F77 16496 16497# Variables whose values should be saved in libtool wrapper scripts and 16498# restored at relink time. 16499variables_saved_for_relink="$variables_saved_for_relink" 16500 16501# Whether libtool must link a program against all its dependency libraries. 16502link_all_deplibs=$link_all_deplibs_F77 16503 16504# Compile-time system search path for libraries 16505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16506 16507# Run-time system search path for libraries 16508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16509 16510# Fix the shell variable \$srcfile for the compiler. 16511fix_srcfile_path="$fix_srcfile_path_F77" 16512 16513# Set to yes if exported symbols are required. 16514always_export_symbols=$always_export_symbols_F77 16515 16516# The commands to list exported symbols. 16517export_symbols_cmds=$lt_export_symbols_cmds_F77 16518 16519# The commands to extract the exported symbol list from a shared archive. 16520extract_expsyms_cmds=$lt_extract_expsyms_cmds 16521 16522# Symbols that should not be listed in the preloaded symbols. 16523exclude_expsyms=$lt_exclude_expsyms_F77 16524 16525# Symbols that must always be exported. 16526include_expsyms=$lt_include_expsyms_F77 16527 16528# ### END LIBTOOL TAG CONFIG: $tagname 16529 16530__EOF__ 16531 16532 16533else 16534 # If there is no Makefile yet, we rely on a make rule to execute 16535 # `config.status --recheck' to rerun these tests and create the 16536 # libtool script then. 16537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16538 if test -f "$ltmain_in"; then 16539 test -f Makefile && make "$ltmain" 16540 fi 16541fi 16542 16543 16544ac_ext=c 16545ac_cpp='$CPP $CPPFLAGS' 16546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16548ac_compiler_gnu=$ac_cv_c_compiler_gnu 16549 16550CC="$lt_save_CC" 16551 16552 else 16553 tagname="" 16554 fi 16555 ;; 16556 16557 GCJ) 16558 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16559 16560 16561# Source file extension for Java test sources. 16562ac_ext=java 16563 16564# Object file extension for compiled Java test sources. 16565objext=o 16566objext_GCJ=$objext 16567 16568# Code to be used in simple compile tests 16569lt_simple_compile_test_code="class foo {}\n" 16570 16571# Code to be used in simple link tests 16572lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16573 16574# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16575 16576# If no C compiler was specified, use CC. 16577LTCC=${LTCC-"$CC"} 16578 16579# If no C compiler flags were specified, use CFLAGS. 16580LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16581 16582# Allow CC to be a program name with arguments. 16583compiler=$CC 16584 16585 16586# save warnings/boilerplate of simple test code 16587ac_outfile=conftest.$ac_objext 16588printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16590_lt_compiler_boilerplate=`cat conftest.err` 16591$rm conftest* 16592 16593ac_outfile=conftest.$ac_objext 16594printf "$lt_simple_link_test_code" >conftest.$ac_ext 16595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16596_lt_linker_boilerplate=`cat conftest.err` 16597$rm conftest* 16598 16599 16600# Allow CC to be a program name with arguments. 16601lt_save_CC="$CC" 16602CC=${GCJ-"gcj"} 16603compiler=$CC 16604compiler_GCJ=$CC 16605for cc_temp in $compiler""; do 16606 case $cc_temp in 16607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16609 \-*) ;; 16610 *) break;; 16611 esac 16612done 16613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16614 16615 16616# GCJ did not exist at the time GCC didn't implicitly link libc in. 16617archive_cmds_need_lc_GCJ=no 16618 16619old_archive_cmds_GCJ=$old_archive_cmds 16620 16621 16622lt_prog_compiler_no_builtin_flag_GCJ= 16623 16624if test "$GCC" = yes; then 16625 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16626 16627 16628{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16629echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16630if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16631 echo $ECHO_N "(cached) $ECHO_C" >&6 16632else 16633 lt_cv_prog_compiler_rtti_exceptions=no 16634 ac_outfile=conftest.$ac_objext 16635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16636 lt_compiler_flag="-fno-rtti -fno-exceptions" 16637 # Insert the option either (1) after the last *FLAGS variable, or 16638 # (2) before a word containing "conftest.", or (3) at the end. 16639 # Note that $ac_compile itself does not contain backslashes and begins 16640 # with a dollar sign (not a hyphen), so the echo should work correctly. 16641 # The option is referenced via a variable to avoid confusing sed. 16642 lt_compile=`echo "$ac_compile" | $SED \ 16643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16645 -e 's:$: $lt_compiler_flag:'` 16646 (eval echo "\"\$as_me:16646: $lt_compile\"" >&5) 16647 (eval "$lt_compile" 2>conftest.err) 16648 ac_status=$? 16649 cat conftest.err >&5 16650 echo "$as_me:16650: \$? = $ac_status" >&5 16651 if (exit $ac_status) && test -s "$ac_outfile"; then 16652 # The compiler can only warn and ignore the option if not recognized 16653 # So say no if there are warnings other than the usual output. 16654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16657 lt_cv_prog_compiler_rtti_exceptions=yes 16658 fi 16659 fi 16660 $rm conftest* 16661 16662fi 16663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16664echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16665 16666if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16667 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16668else 16669 : 16670fi 16671 16672fi 16673 16674lt_prog_compiler_wl_GCJ= 16675lt_prog_compiler_pic_GCJ= 16676lt_prog_compiler_static_GCJ= 16677 16678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16680 16681 if test "$GCC" = yes; then 16682 lt_prog_compiler_wl_GCJ='-Wl,' 16683 lt_prog_compiler_static_GCJ='-static' 16684 16685 case $host_os in 16686 aix*) 16687 # All AIX code is PIC. 16688 if test "$host_cpu" = ia64; then 16689 # AIX 5 now supports IA64 processor 16690 lt_prog_compiler_static_GCJ='-Bstatic' 16691 fi 16692 ;; 16693 16694 amigaos*) 16695 # FIXME: we need at least 68020 code to build shared libraries, but 16696 # adding the `-m68020' flag to GCC prevents building anything better, 16697 # like `-m68040'. 16698 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16699 ;; 16700 16701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16702 # PIC is the default for these OSes. 16703 ;; 16704 16705 mingw* | pw32* | os2*) 16706 # This hack is so that the source file can tell whether it is being 16707 # built for inclusion in a dll (and should export symbols for example). 16708 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16709 ;; 16710 16711 darwin* | rhapsody*) 16712 # PIC is the default on this platform 16713 # Common symbols not allowed in MH_DYLIB files 16714 lt_prog_compiler_pic_GCJ='-fno-common' 16715 ;; 16716 16717 interix3*) 16718 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16719 # Instead, we relocate shared libraries at runtime. 16720 ;; 16721 16722 msdosdjgpp*) 16723 # Just because we use GCC doesn't mean we suddenly get shared libraries 16724 # on systems that don't support them. 16725 lt_prog_compiler_can_build_shared_GCJ=no 16726 enable_shared=no 16727 ;; 16728 16729 sysv4*MP*) 16730 if test -d /usr/nec; then 16731 lt_prog_compiler_pic_GCJ=-Kconform_pic 16732 fi 16733 ;; 16734 16735 hpux*) 16736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16737 # not for PA HP-UX. 16738 case $host_cpu in 16739 hppa*64*|ia64*) 16740 # +Z the default 16741 ;; 16742 *) 16743 lt_prog_compiler_pic_GCJ='-fPIC' 16744 ;; 16745 esac 16746 ;; 16747 16748 *) 16749 lt_prog_compiler_pic_GCJ='-fPIC' 16750 ;; 16751 esac 16752 else 16753 # PORTME Check for flag to pass linker flags through the system compiler. 16754 case $host_os in 16755 aix*) 16756 lt_prog_compiler_wl_GCJ='-Wl,' 16757 if test "$host_cpu" = ia64; then 16758 # AIX 5 now supports IA64 processor 16759 lt_prog_compiler_static_GCJ='-Bstatic' 16760 else 16761 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16762 fi 16763 ;; 16764 darwin*) 16765 # PIC is the default on this platform 16766 # Common symbols not allowed in MH_DYLIB files 16767 case $cc_basename in 16768 xlc*) 16769 lt_prog_compiler_pic_GCJ='-qnocommon' 16770 lt_prog_compiler_wl_GCJ='-Wl,' 16771 ;; 16772 esac 16773 ;; 16774 16775 mingw* | pw32* | os2*) 16776 # This hack is so that the source file can tell whether it is being 16777 # built for inclusion in a dll (and should export symbols for example). 16778 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16779 ;; 16780 16781 hpux9* | hpux10* | hpux11*) 16782 lt_prog_compiler_wl_GCJ='-Wl,' 16783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16784 # not for PA HP-UX. 16785 case $host_cpu in 16786 hppa*64*|ia64*) 16787 # +Z the default 16788 ;; 16789 *) 16790 lt_prog_compiler_pic_GCJ='+Z' 16791 ;; 16792 esac 16793 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16794 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16795 ;; 16796 16797 irix5* | irix6* | nonstopux*) 16798 lt_prog_compiler_wl_GCJ='-Wl,' 16799 # PIC (with -KPIC) is the default. 16800 lt_prog_compiler_static_GCJ='-non_shared' 16801 ;; 16802 16803 newsos6) 16804 lt_prog_compiler_pic_GCJ='-KPIC' 16805 lt_prog_compiler_static_GCJ='-Bstatic' 16806 ;; 16807 16808 linux* | k*bsd*-gnu) 16809 case $cc_basename in 16810 icc* | ecc*) 16811 lt_prog_compiler_wl_GCJ='-Wl,' 16812 lt_prog_compiler_pic_GCJ='-KPIC' 16813 lt_prog_compiler_static_GCJ='-static' 16814 ;; 16815 pgcc* | pgf77* | pgf90* | pgf95*) 16816 # Portland Group compilers (*not* the Pentium gcc compiler, 16817 # which looks to be a dead project) 16818 lt_prog_compiler_wl_GCJ='-Wl,' 16819 lt_prog_compiler_pic_GCJ='-fpic' 16820 lt_prog_compiler_static_GCJ='-Bstatic' 16821 ;; 16822 ccc*) 16823 lt_prog_compiler_wl_GCJ='-Wl,' 16824 # All Alpha code is PIC. 16825 lt_prog_compiler_static_GCJ='-non_shared' 16826 ;; 16827 esac 16828 ;; 16829 16830 osf3* | osf4* | osf5*) 16831 lt_prog_compiler_wl_GCJ='-Wl,' 16832 # All OSF/1 code is PIC. 16833 lt_prog_compiler_static_GCJ='-non_shared' 16834 ;; 16835 16836 solaris*) 16837 lt_prog_compiler_pic_GCJ='-KPIC' 16838 lt_prog_compiler_static_GCJ='-Bstatic' 16839 case $cc_basename in 16840 f77* | f90* | f95*) 16841 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16842 *) 16843 lt_prog_compiler_wl_GCJ='-Wl,';; 16844 esac 16845 ;; 16846 16847 sunos4*) 16848 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16849 lt_prog_compiler_pic_GCJ='-PIC' 16850 lt_prog_compiler_static_GCJ='-Bstatic' 16851 ;; 16852 16853 sysv4 | sysv4.2uw2* | sysv4.3*) 16854 lt_prog_compiler_wl_GCJ='-Wl,' 16855 lt_prog_compiler_pic_GCJ='-KPIC' 16856 lt_prog_compiler_static_GCJ='-Bstatic' 16857 ;; 16858 16859 sysv4*MP*) 16860 if test -d /usr/nec ;then 16861 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16862 lt_prog_compiler_static_GCJ='-Bstatic' 16863 fi 16864 ;; 16865 16866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16867 lt_prog_compiler_wl_GCJ='-Wl,' 16868 lt_prog_compiler_pic_GCJ='-KPIC' 16869 lt_prog_compiler_static_GCJ='-Bstatic' 16870 ;; 16871 16872 unicos*) 16873 lt_prog_compiler_wl_GCJ='-Wl,' 16874 lt_prog_compiler_can_build_shared_GCJ=no 16875 ;; 16876 16877 uts4*) 16878 lt_prog_compiler_pic_GCJ='-pic' 16879 lt_prog_compiler_static_GCJ='-Bstatic' 16880 ;; 16881 16882 *) 16883 lt_prog_compiler_can_build_shared_GCJ=no 16884 ;; 16885 esac 16886 fi 16887 16888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16889echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16890 16891# 16892# Check to make sure the PIC flag actually works. 16893# 16894if test -n "$lt_prog_compiler_pic_GCJ"; then 16895 16896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16898if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16899 echo $ECHO_N "(cached) $ECHO_C" >&6 16900else 16901 lt_prog_compiler_pic_works_GCJ=no 16902 ac_outfile=conftest.$ac_objext 16903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16904 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16905 # Insert the option either (1) after the last *FLAGS variable, or 16906 # (2) before a word containing "conftest.", or (3) at the end. 16907 # Note that $ac_compile itself does not contain backslashes and begins 16908 # with a dollar sign (not a hyphen), so the echo should work correctly. 16909 # The option is referenced via a variable to avoid confusing sed. 16910 lt_compile=`echo "$ac_compile" | $SED \ 16911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16913 -e 's:$: $lt_compiler_flag:'` 16914 (eval echo "\"\$as_me:16914: $lt_compile\"" >&5) 16915 (eval "$lt_compile" 2>conftest.err) 16916 ac_status=$? 16917 cat conftest.err >&5 16918 echo "$as_me:16918: \$? = $ac_status" >&5 16919 if (exit $ac_status) && test -s "$ac_outfile"; then 16920 # The compiler can only warn and ignore the option if not recognized 16921 # So say no if there are warnings other than the usual output. 16922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16925 lt_prog_compiler_pic_works_GCJ=yes 16926 fi 16927 fi 16928 $rm conftest* 16929 16930fi 16931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16932echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16933 16934if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16935 case $lt_prog_compiler_pic_GCJ in 16936 "" | " "*) ;; 16937 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16938 esac 16939else 16940 lt_prog_compiler_pic_GCJ= 16941 lt_prog_compiler_can_build_shared_GCJ=no 16942fi 16943 16944fi 16945case $host_os in 16946 # For platforms which do not support PIC, -DPIC is meaningless: 16947 *djgpp*) 16948 lt_prog_compiler_pic_GCJ= 16949 ;; 16950 *) 16951 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16952 ;; 16953esac 16954 16955# 16956# Check to make sure the static flag actually works. 16957# 16958wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16961if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16962 echo $ECHO_N "(cached) $ECHO_C" >&6 16963else 16964 lt_prog_compiler_static_works_GCJ=no 16965 save_LDFLAGS="$LDFLAGS" 16966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16967 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16969 # The linker can only warn and ignore the option if not recognized 16970 # So say no if there are warnings 16971 if test -s conftest.err; then 16972 # Append any errors to the config.log. 16973 cat conftest.err 1>&5 16974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16976 if diff conftest.exp conftest.er2 >/dev/null; then 16977 lt_prog_compiler_static_works_GCJ=yes 16978 fi 16979 else 16980 lt_prog_compiler_static_works_GCJ=yes 16981 fi 16982 fi 16983 $rm conftest* 16984 LDFLAGS="$save_LDFLAGS" 16985 16986fi 16987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16988echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16989 16990if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16991 : 16992else 16993 lt_prog_compiler_static_GCJ= 16994fi 16995 16996 16997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16999if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17000 echo $ECHO_N "(cached) $ECHO_C" >&6 17001else 17002 lt_cv_prog_compiler_c_o_GCJ=no 17003 $rm -r conftest 2>/dev/null 17004 mkdir conftest 17005 cd conftest 17006 mkdir out 17007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17008 17009 lt_compiler_flag="-o out/conftest2.$ac_objext" 17010 # Insert the option either (1) after the last *FLAGS variable, or 17011 # (2) before a word containing "conftest.", or (3) at the end. 17012 # Note that $ac_compile itself does not contain backslashes and begins 17013 # with a dollar sign (not a hyphen), so the echo should work correctly. 17014 lt_compile=`echo "$ac_compile" | $SED \ 17015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17017 -e 's:$: $lt_compiler_flag:'` 17018 (eval echo "\"\$as_me:17018: $lt_compile\"" >&5) 17019 (eval "$lt_compile" 2>out/conftest.err) 17020 ac_status=$? 17021 cat out/conftest.err >&5 17022 echo "$as_me:17022: \$? = $ac_status" >&5 17023 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17024 then 17025 # The compiler can only warn and ignore the option if not recognized 17026 # So say no if there are warnings 17027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17030 lt_cv_prog_compiler_c_o_GCJ=yes 17031 fi 17032 fi 17033 chmod u+w . 2>&5 17034 $rm conftest* 17035 # SGI C++ compiler will create directory out/ii_files/ for 17036 # template instantiation 17037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17038 $rm out/* && rmdir out 17039 cd .. 17040 rmdir conftest 17041 $rm conftest* 17042 17043fi 17044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17045echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17046 17047 17048hard_links="nottested" 17049if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17050 # do not overwrite the value of need_locks provided by the user 17051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17053 hard_links=yes 17054 $rm conftest* 17055 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17056 touch conftest.a 17057 ln conftest.a conftest.b 2>&5 || hard_links=no 17058 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17059 { echo "$as_me:$LINENO: result: $hard_links" >&5 17060echo "${ECHO_T}$hard_links" >&6; } 17061 if test "$hard_links" = no; then 17062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17064 need_locks=warn 17065 fi 17066else 17067 need_locks=no 17068fi 17069 17070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17072 17073 runpath_var= 17074 allow_undefined_flag_GCJ= 17075 enable_shared_with_static_runtimes_GCJ=no 17076 archive_cmds_GCJ= 17077 archive_expsym_cmds_GCJ= 17078 old_archive_From_new_cmds_GCJ= 17079 old_archive_from_expsyms_cmds_GCJ= 17080 export_dynamic_flag_spec_GCJ= 17081 whole_archive_flag_spec_GCJ= 17082 thread_safe_flag_spec_GCJ= 17083 hardcode_libdir_flag_spec_GCJ= 17084 hardcode_libdir_flag_spec_ld_GCJ= 17085 hardcode_libdir_separator_GCJ= 17086 hardcode_direct_GCJ=no 17087 hardcode_minus_L_GCJ=no 17088 hardcode_shlibpath_var_GCJ=unsupported 17089 link_all_deplibs_GCJ=unknown 17090 hardcode_automatic_GCJ=no 17091 module_cmds_GCJ= 17092 module_expsym_cmds_GCJ= 17093 always_export_symbols_GCJ=no 17094 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17095 # include_expsyms should be a list of space-separated symbols to be *always* 17096 # included in the symbol list 17097 include_expsyms_GCJ= 17098 # exclude_expsyms can be an extended regexp of symbols to exclude 17099 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17101 # as well as any symbol that contains `d'. 17102 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17104 # platforms (ab)use it in PIC code, but their linkers get confused if 17105 # the symbol is explicitly referenced. Since portable code cannot 17106 # rely on this symbol name, it's probably fine to never include it in 17107 # preloaded symbol tables. 17108 extract_expsyms_cmds= 17109 # Just being paranoid about ensuring that cc_basename is set. 17110 for cc_temp in $compiler""; do 17111 case $cc_temp in 17112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17114 \-*) ;; 17115 *) break;; 17116 esac 17117done 17118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17119 17120 case $host_os in 17121 cygwin* | mingw* | pw32*) 17122 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17123 # When not using gcc, we currently assume that we are using 17124 # Microsoft Visual C++. 17125 if test "$GCC" != yes; then 17126 with_gnu_ld=no 17127 fi 17128 ;; 17129 interix*) 17130 # we just hope/assume this is gcc and not c89 (= MSVC++) 17131 with_gnu_ld=yes 17132 ;; 17133 openbsd*) 17134 with_gnu_ld=no 17135 ;; 17136 esac 17137 17138 ld_shlibs_GCJ=yes 17139 if test "$with_gnu_ld" = yes; then 17140 # If archive_cmds runs LD, not CC, wlarc should be empty 17141 wlarc='${wl}' 17142 17143 # Set some defaults for GNU ld with shared library support. These 17144 # are reset later if shared libraries are not supported. Putting them 17145 # here allows them to be overridden if necessary. 17146 runpath_var=LD_RUN_PATH 17147 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17148 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17149 # ancient GNU ld didn't support --whole-archive et. al. 17150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17151 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17152 else 17153 whole_archive_flag_spec_GCJ= 17154 fi 17155 supports_anon_versioning=no 17156 case `$LD -v 2>/dev/null` in 17157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17160 *\ 2.11.*) ;; # other 2.11 versions 17161 *) supports_anon_versioning=yes ;; 17162 esac 17163 17164 # See if GNU ld supports shared libraries. 17165 case $host_os in 17166 aix3* | aix4* | aix5*) 17167 # On AIX/PPC, the GNU linker is very broken 17168 if test "$host_cpu" != ia64; then 17169 ld_shlibs_GCJ=no 17170 cat <<EOF 1>&2 17171 17172*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17173*** to be unable to reliably create shared libraries on AIX. 17174*** Therefore, libtool is disabling shared libraries support. If you 17175*** really care for shared libraries, you may want to modify your PATH 17176*** so that a non-GNU linker is found, and then restart. 17177 17178EOF 17179 fi 17180 ;; 17181 17182 amigaos*) 17183 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)' 17184 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17185 hardcode_minus_L_GCJ=yes 17186 17187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17188 # that the semantics of dynamic libraries on AmigaOS, at least up 17189 # to version 4, is to share data among multiple programs linked 17190 # with the same dynamic library. Since this doesn't match the 17191 # behavior of shared libraries on other platforms, we can't use 17192 # them. 17193 ld_shlibs_GCJ=no 17194 ;; 17195 17196 beos*) 17197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17198 allow_undefined_flag_GCJ=unsupported 17199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17200 # support --undefined. This deserves some investigation. FIXME 17201 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17202 else 17203 ld_shlibs_GCJ=no 17204 fi 17205 ;; 17206 17207 cygwin* | mingw* | pw32*) 17208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17209 # as there is no search path for DLLs. 17210 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17211 allow_undefined_flag_GCJ=unsupported 17212 always_export_symbols_GCJ=no 17213 enable_shared_with_static_runtimes_GCJ=yes 17214 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17215 17216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17218 # If the export-symbols file already is a .def file (1st line 17219 # is EXPORTS), use it as is; otherwise, prepend... 17220 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17221 cp $export_symbols $output_objdir/$soname.def; 17222 else 17223 echo EXPORTS > $output_objdir/$soname.def; 17224 cat $export_symbols >> $output_objdir/$soname.def; 17225 fi~ 17226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17227 else 17228 ld_shlibs_GCJ=no 17229 fi 17230 ;; 17231 17232 interix3*) 17233 hardcode_direct_GCJ=no 17234 hardcode_shlibpath_var_GCJ=no 17235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17236 export_dynamic_flag_spec_GCJ='${wl}-E' 17237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17238 # Instead, shared libraries are loaded at an image base (0x10000000 by 17239 # default) and relocated if they conflict, which is a slow very memory 17240 # consuming and fragmenting process. To avoid this, we pick a random, 17241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17242 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17243 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' 17244 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' 17245 ;; 17246 17247 linux* | k*bsd*-gnu) 17248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17249 tmp_addflag= 17250 case $cc_basename,$host_cpu in 17251 pgcc*) # Portland Group C compiler 17252 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' 17253 tmp_addflag=' $pic_flag' 17254 ;; 17255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17256 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' 17257 tmp_addflag=' $pic_flag -Mnomain' ;; 17258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17259 tmp_addflag=' -i_dynamic' ;; 17260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17261 tmp_addflag=' -i_dynamic -nofor_main' ;; 17262 ifc* | ifort*) # Intel Fortran compiler 17263 tmp_addflag=' -nofor_main' ;; 17264 esac 17265 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17266 17267 if test $supports_anon_versioning = yes; then 17268 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17270 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17272 fi 17273 link_all_deplibs_GCJ=no 17274 else 17275 ld_shlibs_GCJ=no 17276 fi 17277 ;; 17278 17279 netbsd* | netbsdelf*-gnu) 17280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17281 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17282 wlarc= 17283 else 17284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17285 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17286 fi 17287 ;; 17288 17289 solaris*) 17290 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17291 ld_shlibs_GCJ=no 17292 cat <<EOF 1>&2 17293 17294*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17295*** create shared libraries on Solaris systems. Therefore, libtool 17296*** is disabling shared libraries support. We urge you to upgrade GNU 17297*** binutils to release 2.9.1 or newer. Another option is to modify 17298*** your PATH or compiler configuration so that the native linker is 17299*** used, and then restart. 17300 17301EOF 17302 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17303 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17304 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17305 else 17306 ld_shlibs_GCJ=no 17307 fi 17308 ;; 17309 17310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17311 case `$LD -v 2>&1` in 17312 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17313 ld_shlibs_GCJ=no 17314 cat <<_LT_EOF 1>&2 17315 17316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17317*** reliably create shared libraries on SCO systems. Therefore, libtool 17318*** is disabling shared libraries support. We urge you to upgrade GNU 17319*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17320*** your PATH or compiler configuration so that the native linker is 17321*** used, and then restart. 17322 17323_LT_EOF 17324 ;; 17325 *) 17326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17327 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17328 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17329 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17330 else 17331 ld_shlibs_GCJ=no 17332 fi 17333 ;; 17334 esac 17335 ;; 17336 17337 sunos4*) 17338 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17339 wlarc= 17340 hardcode_direct_GCJ=yes 17341 hardcode_shlibpath_var_GCJ=no 17342 ;; 17343 17344 *) 17345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17346 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17347 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17348 else 17349 ld_shlibs_GCJ=no 17350 fi 17351 ;; 17352 esac 17353 17354 if test "$ld_shlibs_GCJ" = no; then 17355 runpath_var= 17356 hardcode_libdir_flag_spec_GCJ= 17357 export_dynamic_flag_spec_GCJ= 17358 whole_archive_flag_spec_GCJ= 17359 fi 17360 else 17361 # PORTME fill in a description of your system's linker (not GNU ld) 17362 case $host_os in 17363 aix3*) 17364 allow_undefined_flag_GCJ=unsupported 17365 always_export_symbols_GCJ=yes 17366 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' 17367 # Note: this linker hardcodes the directories in LIBPATH if there 17368 # are no directories specified by -L. 17369 hardcode_minus_L_GCJ=yes 17370 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17371 # Neither direct hardcoding nor static linking is supported with a 17372 # broken collect2. 17373 hardcode_direct_GCJ=unsupported 17374 fi 17375 ;; 17376 17377 aix4* | aix5*) 17378 if test "$host_cpu" = ia64; then 17379 # On IA64, the linker does run time linking by default, so we don't 17380 # have to do anything special. 17381 aix_use_runtimelinking=no 17382 exp_sym_flag='-Bexport' 17383 no_entry_flag="" 17384 else 17385 # If we're using GNU nm, then we don't want the "-C" option. 17386 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17387 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17388 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' 17389 else 17390 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' 17391 fi 17392 aix_use_runtimelinking=no 17393 17394 # Test if we are trying to use run time linking or normal 17395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17396 # need to do runtime linking. 17397 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17398 for ld_flag in $LDFLAGS; do 17399 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17400 aix_use_runtimelinking=yes 17401 break 17402 fi 17403 done 17404 ;; 17405 esac 17406 17407 exp_sym_flag='-bexport' 17408 no_entry_flag='-bnoentry' 17409 fi 17410 17411 # When large executables or shared objects are built, AIX ld can 17412 # have problems creating the table of contents. If linking a library 17413 # or program results in "error TOC overflow" add -mminimal-toc to 17414 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17415 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17416 17417 archive_cmds_GCJ='' 17418 hardcode_direct_GCJ=yes 17419 hardcode_libdir_separator_GCJ=':' 17420 link_all_deplibs_GCJ=yes 17421 17422 if test "$GCC" = yes; then 17423 case $host_os in aix4.[012]|aix4.[012].*) 17424 # We only want to do this on AIX 4.2 and lower, the check 17425 # below for broken collect2 doesn't work under 4.3+ 17426 collect2name=`${CC} -print-prog-name=collect2` 17427 if test -f "$collect2name" && \ 17428 strings "$collect2name" | grep resolve_lib_name >/dev/null 17429 then 17430 # We have reworked collect2 17431 hardcode_direct_GCJ=yes 17432 else 17433 # We have old collect2 17434 hardcode_direct_GCJ=unsupported 17435 # It fails to find uninstalled libraries when the uninstalled 17436 # path is not listed in the libpath. Setting hardcode_minus_L 17437 # to unsupported forces relinking 17438 hardcode_minus_L_GCJ=yes 17439 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17440 hardcode_libdir_separator_GCJ= 17441 fi 17442 ;; 17443 esac 17444 shared_flag='-shared' 17445 if test "$aix_use_runtimelinking" = yes; then 17446 shared_flag="$shared_flag "'${wl}-G' 17447 fi 17448 else 17449 # not using gcc 17450 if test "$host_cpu" = ia64; then 17451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17452 # chokes on -Wl,-G. The following line is correct: 17453 shared_flag='-G' 17454 else 17455 if test "$aix_use_runtimelinking" = yes; then 17456 shared_flag='${wl}-G' 17457 else 17458 shared_flag='${wl}-bM:SRE' 17459 fi 17460 fi 17461 fi 17462 17463 # It seems that -bexpall does not export symbols beginning with 17464 # underscore (_), so it is better to generate a list of symbols to export. 17465 always_export_symbols_GCJ=yes 17466 if test "$aix_use_runtimelinking" = yes; then 17467 # Warning - without using the other runtime loading flags (-brtl), 17468 # -berok will link without error, but may produce a broken library. 17469 allow_undefined_flag_GCJ='-berok' 17470 # Determine the default libpath from the value encoded in an empty executable. 17471 cat >conftest.$ac_ext <<_ACEOF 17472/* confdefs.h. */ 17473_ACEOF 17474cat confdefs.h >>conftest.$ac_ext 17475cat >>conftest.$ac_ext <<_ACEOF 17476/* end confdefs.h. */ 17477 17478int 17479main () 17480{ 17481 17482 ; 17483 return 0; 17484} 17485_ACEOF 17486rm -f conftest.$ac_objext conftest$ac_exeext 17487if { (ac_try="$ac_link" 17488case "(($ac_try" in 17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17490 *) ac_try_echo=$ac_try;; 17491esac 17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17493 (eval "$ac_link") 2>conftest.er1 17494 ac_status=$? 17495 grep -v '^ *+' conftest.er1 >conftest.err 17496 rm -f conftest.er1 17497 cat conftest.err >&5 17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17499 (exit $ac_status); } && 17500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17501 { (case "(($ac_try" in 17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17503 *) ac_try_echo=$ac_try;; 17504esac 17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17506 (eval "$ac_try") 2>&5 17507 ac_status=$? 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17509 (exit $ac_status); }; } && 17510 { ac_try='test -s conftest$ac_exeext' 17511 { (case "(($ac_try" in 17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17513 *) ac_try_echo=$ac_try;; 17514esac 17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17516 (eval "$ac_try") 2>&5 17517 ac_status=$? 17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17519 (exit $ac_status); }; }; then 17520 17521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17522}'` 17523# Check for a 64-bit object if we didn't find anything. 17524if 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; } 17525}'`; fi 17526else 17527 echo "$as_me: failed program was:" >&5 17528sed 's/^/| /' conftest.$ac_ext >&5 17529 17530 17531fi 17532 17533rm -f core conftest.err conftest.$ac_objext \ 17534 conftest$ac_exeext conftest.$ac_ext 17535if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17536 17537 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17538 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" 17539 else 17540 if test "$host_cpu" = ia64; then 17541 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17542 allow_undefined_flag_GCJ="-z nodefs" 17543 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" 17544 else 17545 # Determine the default libpath from the value encoded in an empty executable. 17546 cat >conftest.$ac_ext <<_ACEOF 17547/* confdefs.h. */ 17548_ACEOF 17549cat confdefs.h >>conftest.$ac_ext 17550cat >>conftest.$ac_ext <<_ACEOF 17551/* end confdefs.h. */ 17552 17553int 17554main () 17555{ 17556 17557 ; 17558 return 0; 17559} 17560_ACEOF 17561rm -f conftest.$ac_objext conftest$ac_exeext 17562if { (ac_try="$ac_link" 17563case "(($ac_try" in 17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17565 *) ac_try_echo=$ac_try;; 17566esac 17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17568 (eval "$ac_link") 2>conftest.er1 17569 ac_status=$? 17570 grep -v '^ *+' conftest.er1 >conftest.err 17571 rm -f conftest.er1 17572 cat conftest.err >&5 17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17574 (exit $ac_status); } && 17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17576 { (case "(($ac_try" in 17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17578 *) ac_try_echo=$ac_try;; 17579esac 17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17581 (eval "$ac_try") 2>&5 17582 ac_status=$? 17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17584 (exit $ac_status); }; } && 17585 { ac_try='test -s conftest$ac_exeext' 17586 { (case "(($ac_try" in 17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17588 *) ac_try_echo=$ac_try;; 17589esac 17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17591 (eval "$ac_try") 2>&5 17592 ac_status=$? 17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17594 (exit $ac_status); }; }; then 17595 17596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17597}'` 17598# Check for a 64-bit object if we didn't find anything. 17599if 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; } 17600}'`; fi 17601else 17602 echo "$as_me: failed program was:" >&5 17603sed 's/^/| /' conftest.$ac_ext >&5 17604 17605 17606fi 17607 17608rm -f core conftest.err conftest.$ac_objext \ 17609 conftest$ac_exeext conftest.$ac_ext 17610if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17611 17612 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17613 # Warning - without using the other run time loading flags, 17614 # -berok will link without error, but may produce a broken library. 17615 no_undefined_flag_GCJ=' ${wl}-bernotok' 17616 allow_undefined_flag_GCJ=' ${wl}-berok' 17617 # Exported symbols can be pulled into shared objects from archives 17618 whole_archive_flag_spec_GCJ='$convenience' 17619 archive_cmds_need_lc_GCJ=yes 17620 # This is similar to how AIX traditionally builds its shared libraries. 17621 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' 17622 fi 17623 fi 17624 ;; 17625 17626 amigaos*) 17627 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)' 17628 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17629 hardcode_minus_L_GCJ=yes 17630 # see comment about different semantics on the GNU ld section 17631 ld_shlibs_GCJ=no 17632 ;; 17633 17634 bsdi[45]*) 17635 export_dynamic_flag_spec_GCJ=-rdynamic 17636 ;; 17637 17638 cygwin* | mingw* | pw32*) 17639 # When not using gcc, we currently assume that we are using 17640 # Microsoft Visual C++. 17641 # hardcode_libdir_flag_spec is actually meaningless, as there is 17642 # no search path for DLLs. 17643 hardcode_libdir_flag_spec_GCJ=' ' 17644 allow_undefined_flag_GCJ=unsupported 17645 # Tell ltmain to make .lib files, not .a files. 17646 libext=lib 17647 # Tell ltmain to make .dll files, not .so files. 17648 shrext_cmds=".dll" 17649 # FIXME: Setting linknames here is a bad hack. 17650 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17651 # The linker will automatically build a .lib file if we build a DLL. 17652 old_archive_From_new_cmds_GCJ='true' 17653 # FIXME: Should let the user specify the lib program. 17654 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17655 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17656 enable_shared_with_static_runtimes_GCJ=yes 17657 ;; 17658 17659 darwin* | rhapsody*) 17660 case $host_os in 17661 rhapsody* | darwin1.[012]) 17662 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17663 ;; 17664 *) # Darwin 1.3 on 17665 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17666 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17667 else 17668 case ${MACOSX_DEPLOYMENT_TARGET} in 17669 10.[012]) 17670 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17671 ;; 17672 10.*) 17673 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17674 ;; 17675 esac 17676 fi 17677 ;; 17678 esac 17679 archive_cmds_need_lc_GCJ=no 17680 hardcode_direct_GCJ=no 17681 hardcode_automatic_GCJ=yes 17682 hardcode_shlibpath_var_GCJ=unsupported 17683 whole_archive_flag_spec_GCJ='' 17684 link_all_deplibs_GCJ=yes 17685 if test "$GCC" = yes ; then 17686 output_verbose_link_cmd='echo' 17687 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17688 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17690 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}' 17691 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}' 17692 else 17693 case $cc_basename in 17694 xlc*) 17695 output_verbose_link_cmd='echo' 17696 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17697 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17699 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}' 17700 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}' 17701 ;; 17702 *) 17703 ld_shlibs_GCJ=no 17704 ;; 17705 esac 17706 fi 17707 ;; 17708 17709 dgux*) 17710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17711 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17712 hardcode_shlibpath_var_GCJ=no 17713 ;; 17714 17715 freebsd1*) 17716 ld_shlibs_GCJ=no 17717 ;; 17718 17719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17720 # support. Future versions do this automatically, but an explicit c++rt0.o 17721 # does not break anything, and helps significantly (at the cost of a little 17722 # extra space). 17723 freebsd2.2*) 17724 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17725 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17726 hardcode_direct_GCJ=yes 17727 hardcode_shlibpath_var_GCJ=no 17728 ;; 17729 17730 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17731 freebsd2*) 17732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17733 hardcode_direct_GCJ=yes 17734 hardcode_minus_L_GCJ=yes 17735 hardcode_shlibpath_var_GCJ=no 17736 ;; 17737 17738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17739 freebsd* | dragonfly*) 17740 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17741 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17742 hardcode_direct_GCJ=yes 17743 hardcode_shlibpath_var_GCJ=no 17744 ;; 17745 17746 hpux9*) 17747 if test "$GCC" = yes; then 17748 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' 17749 else 17750 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' 17751 fi 17752 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17753 hardcode_libdir_separator_GCJ=: 17754 hardcode_direct_GCJ=yes 17755 17756 # hardcode_minus_L: Not really in the search PATH, 17757 # but as the default location of the library. 17758 hardcode_minus_L_GCJ=yes 17759 export_dynamic_flag_spec_GCJ='${wl}-E' 17760 ;; 17761 17762 hpux10*) 17763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17764 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17765 else 17766 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17767 fi 17768 if test "$with_gnu_ld" = no; then 17769 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17770 hardcode_libdir_separator_GCJ=: 17771 17772 hardcode_direct_GCJ=yes 17773 export_dynamic_flag_spec_GCJ='${wl}-E' 17774 17775 # hardcode_minus_L: Not really in the search PATH, 17776 # but as the default location of the library. 17777 hardcode_minus_L_GCJ=yes 17778 fi 17779 ;; 17780 17781 hpux11*) 17782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17783 case $host_cpu in 17784 hppa*64*) 17785 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17786 ;; 17787 ia64*) 17788 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17789 ;; 17790 *) 17791 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17792 ;; 17793 esac 17794 else 17795 case $host_cpu in 17796 hppa*64*) 17797 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17798 ;; 17799 ia64*) 17800 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17801 ;; 17802 *) 17803 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17804 ;; 17805 esac 17806 fi 17807 if test "$with_gnu_ld" = no; then 17808 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17809 hardcode_libdir_separator_GCJ=: 17810 17811 case $host_cpu in 17812 hppa*64*|ia64*) 17813 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17814 hardcode_direct_GCJ=no 17815 hardcode_shlibpath_var_GCJ=no 17816 ;; 17817 *) 17818 hardcode_direct_GCJ=yes 17819 export_dynamic_flag_spec_GCJ='${wl}-E' 17820 17821 # hardcode_minus_L: Not really in the search PATH, 17822 # but as the default location of the library. 17823 hardcode_minus_L_GCJ=yes 17824 ;; 17825 esac 17826 fi 17827 ;; 17828 17829 irix5* | irix6* | nonstopux*) 17830 if test "$GCC" = yes; then 17831 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' 17832 else 17833 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' 17834 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17835 fi 17836 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17837 hardcode_libdir_separator_GCJ=: 17838 link_all_deplibs_GCJ=yes 17839 ;; 17840 17841 netbsd* | netbsdelf*-gnu) 17842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17843 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17844 else 17845 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17846 fi 17847 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17848 hardcode_direct_GCJ=yes 17849 hardcode_shlibpath_var_GCJ=no 17850 ;; 17851 17852 newsos6) 17853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17854 hardcode_direct_GCJ=yes 17855 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17856 hardcode_libdir_separator_GCJ=: 17857 hardcode_shlibpath_var_GCJ=no 17858 ;; 17859 17860 openbsd*) 17861 hardcode_direct_GCJ=yes 17862 hardcode_shlibpath_var_GCJ=no 17863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17864 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17865 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17866 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17867 export_dynamic_flag_spec_GCJ='${wl}-E' 17868 else 17869 case $host_os in 17870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17872 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17873 ;; 17874 *) 17875 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17876 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17877 ;; 17878 esac 17879 fi 17880 ;; 17881 17882 os2*) 17883 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17884 hardcode_minus_L_GCJ=yes 17885 allow_undefined_flag_GCJ=unsupported 17886 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' 17887 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17888 ;; 17889 17890 osf3*) 17891 if test "$GCC" = yes; then 17892 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17893 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' 17894 else 17895 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17896 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' 17897 fi 17898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17899 hardcode_libdir_separator_GCJ=: 17900 ;; 17901 17902 osf4* | osf5*) # as osf3* with the addition of -msym flag 17903 if test "$GCC" = yes; then 17904 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17905 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' 17906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17907 else 17908 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17909 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' 17910 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~ 17911 $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' 17912 17913 # Both c and cxx compiler support -rpath directly 17914 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17915 fi 17916 hardcode_libdir_separator_GCJ=: 17917 ;; 17918 17919 solaris*) 17920 no_undefined_flag_GCJ=' -z text' 17921 if test "$GCC" = yes; then 17922 wlarc='${wl}' 17923 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17924 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17926 else 17927 wlarc='' 17928 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17929 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17931 fi 17932 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17933 hardcode_shlibpath_var_GCJ=no 17934 case $host_os in 17935 solaris2.[0-5] | solaris2.[0-5].*) ;; 17936 *) 17937 # The compiler driver will combine linker options so we 17938 # cannot just pass the convience library names through 17939 # without $wl, iff we do not link with $LD. 17940 # Luckily, gcc supports the same syntax we need for Sun Studio. 17941 # Supported since Solaris 2.6 (maybe 2.5.1?) 17942 case $wlarc in 17943 '') 17944 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17945 *) 17946 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' ;; 17947 esac ;; 17948 esac 17949 link_all_deplibs_GCJ=yes 17950 ;; 17951 17952 sunos4*) 17953 if test "x$host_vendor" = xsequent; then 17954 # Use $CC to link under sequent, because it throws in some extra .o 17955 # files that make .init and .fini sections work. 17956 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17957 else 17958 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17959 fi 17960 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17961 hardcode_direct_GCJ=yes 17962 hardcode_minus_L_GCJ=yes 17963 hardcode_shlibpath_var_GCJ=no 17964 ;; 17965 17966 sysv4) 17967 case $host_vendor in 17968 sni) 17969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17970 hardcode_direct_GCJ=yes # is this really true??? 17971 ;; 17972 siemens) 17973 ## LD is ld it makes a PLAMLIB 17974 ## CC just makes a GrossModule. 17975 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17976 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17977 hardcode_direct_GCJ=no 17978 ;; 17979 motorola) 17980 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17981 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17982 ;; 17983 esac 17984 runpath_var='LD_RUN_PATH' 17985 hardcode_shlibpath_var_GCJ=no 17986 ;; 17987 17988 sysv4.3*) 17989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17990 hardcode_shlibpath_var_GCJ=no 17991 export_dynamic_flag_spec_GCJ='-Bexport' 17992 ;; 17993 17994 sysv4*MP*) 17995 if test -d /usr/nec; then 17996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17997 hardcode_shlibpath_var_GCJ=no 17998 runpath_var=LD_RUN_PATH 17999 hardcode_runpath_var=yes 18000 ld_shlibs_GCJ=yes 18001 fi 18002 ;; 18003 18004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18005 no_undefined_flag_GCJ='${wl}-z,text' 18006 archive_cmds_need_lc_GCJ=no 18007 hardcode_shlibpath_var_GCJ=no 18008 runpath_var='LD_RUN_PATH' 18009 18010 if test "$GCC" = yes; then 18011 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18012 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18013 else 18014 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18015 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18016 fi 18017 ;; 18018 18019 sysv5* | sco3.2v5* | sco5v6*) 18020 # Note: We can NOT use -z defs as we might desire, because we do not 18021 # link with -lc, and that would cause any symbols used from libc to 18022 # always be unresolved, which means just about no library would 18023 # ever link correctly. If we're not using GNU ld we use -z text 18024 # though, which does catch some bad symbols but isn't as heavy-handed 18025 # as -z defs. 18026 no_undefined_flag_GCJ='${wl}-z,text' 18027 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18028 archive_cmds_need_lc_GCJ=no 18029 hardcode_shlibpath_var_GCJ=no 18030 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18031 hardcode_libdir_separator_GCJ=':' 18032 link_all_deplibs_GCJ=yes 18033 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18034 runpath_var='LD_RUN_PATH' 18035 18036 if test "$GCC" = yes; then 18037 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18038 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18039 else 18040 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18041 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18042 fi 18043 ;; 18044 18045 uts4*) 18046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18047 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18048 hardcode_shlibpath_var_GCJ=no 18049 ;; 18050 18051 *) 18052 ld_shlibs_GCJ=no 18053 ;; 18054 esac 18055 fi 18056 18057{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18058echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18059test "$ld_shlibs_GCJ" = no && can_build_shared=no 18060 18061# 18062# Do we need to explicitly link libc? 18063# 18064case "x$archive_cmds_need_lc_GCJ" in 18065x|xyes) 18066 # Assume -lc should be added 18067 archive_cmds_need_lc_GCJ=yes 18068 18069 if test "$enable_shared" = yes && test "$GCC" = yes; then 18070 case $archive_cmds_GCJ in 18071 *'~'*) 18072 # FIXME: we may have to deal with multi-command sequences. 18073 ;; 18074 '$CC '*) 18075 # Test whether the compiler implicitly links with -lc since on some 18076 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18077 # to ld, don't add -lc before -lgcc. 18078 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18079echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18080 $rm conftest* 18081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18082 18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18084 (eval $ac_compile) 2>&5 18085 ac_status=$? 18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18087 (exit $ac_status); } 2>conftest.err; then 18088 soname=conftest 18089 lib=conftest 18090 libobjs=conftest.$ac_objext 18091 deplibs= 18092 wl=$lt_prog_compiler_wl_GCJ 18093 pic_flag=$lt_prog_compiler_pic_GCJ 18094 compiler_flags=-v 18095 linker_flags=-v 18096 verstring= 18097 output_objdir=. 18098 libname=conftest 18099 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18100 allow_undefined_flag_GCJ= 18101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18102 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18103 ac_status=$? 18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18105 (exit $ac_status); } 18106 then 18107 archive_cmds_need_lc_GCJ=no 18108 else 18109 archive_cmds_need_lc_GCJ=yes 18110 fi 18111 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18112 else 18113 cat conftest.err 1>&5 18114 fi 18115 $rm conftest* 18116 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18117echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18118 ;; 18119 esac 18120 fi 18121 ;; 18122esac 18123 18124{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18125echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18126library_names_spec= 18127libname_spec='lib$name' 18128soname_spec= 18129shrext_cmds=".so" 18130postinstall_cmds= 18131postuninstall_cmds= 18132finish_cmds= 18133finish_eval= 18134shlibpath_var= 18135shlibpath_overrides_runpath=unknown 18136version_type=none 18137dynamic_linker="$host_os ld.so" 18138sys_lib_dlsearch_path_spec="/lib /usr/lib" 18139if test "$GCC" = yes; then 18140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18141 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18142 # if the path contains ";" then we assume it to be the separator 18143 # otherwise default to the standard path separator (i.e. ":") - it is 18144 # assumed that no part of a normal pathname contains ";" but that should 18145 # okay in the real world where ";" in dirpaths is itself problematic. 18146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18147 else 18148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18149 fi 18150else 18151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18152fi 18153need_lib_prefix=unknown 18154hardcode_into_libs=no 18155 18156# when you set need_version to no, make sure it does not cause -set_version 18157# flags to be left without arguments 18158need_version=unknown 18159 18160case $host_os in 18161aix3*) 18162 version_type=linux 18163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18164 shlibpath_var=LIBPATH 18165 18166 # AIX 3 has no versioning support, so we append a major version to the name. 18167 soname_spec='${libname}${release}${shared_ext}$major' 18168 ;; 18169 18170aix4* | aix5*) 18171 version_type=linux 18172 need_lib_prefix=no 18173 need_version=no 18174 hardcode_into_libs=yes 18175 if test "$host_cpu" = ia64; then 18176 # AIX 5 supports IA64 18177 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18178 shlibpath_var=LD_LIBRARY_PATH 18179 else 18180 # With GCC up to 2.95.x, collect2 would create an import file 18181 # for dependence libraries. The import file would start with 18182 # the line `#! .'. This would cause the generated library to 18183 # depend on `.', always an invalid library. This was fixed in 18184 # development snapshots of GCC prior to 3.0. 18185 case $host_os in 18186 aix4 | aix4.[01] | aix4.[01].*) 18187 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18188 echo ' yes ' 18189 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18190 : 18191 else 18192 can_build_shared=no 18193 fi 18194 ;; 18195 esac 18196 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18197 # soname into executable. Probably we can add versioning support to 18198 # collect2, so additional links can be useful in future. 18199 if test "$aix_use_runtimelinking" = yes; then 18200 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18201 # instead of lib<name>.a to let people know that these are not 18202 # typical AIX shared libraries. 18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18204 else 18205 # We preserve .a as extension for shared libraries through AIX4.2 18206 # and later when we are not doing run time linking. 18207 library_names_spec='${libname}${release}.a $libname.a' 18208 soname_spec='${libname}${release}${shared_ext}$major' 18209 fi 18210 shlibpath_var=LIBPATH 18211 fi 18212 ;; 18213 18214amigaos*) 18215 library_names_spec='$libname.ixlibrary $libname.a' 18216 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18217 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' 18218 ;; 18219 18220beos*) 18221 library_names_spec='${libname}${shared_ext}' 18222 dynamic_linker="$host_os ld.so" 18223 shlibpath_var=LIBRARY_PATH 18224 ;; 18225 18226bsdi[45]*) 18227 version_type=linux 18228 need_version=no 18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18230 soname_spec='${libname}${release}${shared_ext}$major' 18231 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18232 shlibpath_var=LD_LIBRARY_PATH 18233 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18234 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18235 # the default ld.so.conf also contains /usr/contrib/lib and 18236 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18237 # libtool to hard-code these into programs 18238 ;; 18239 18240cygwin* | mingw* | pw32*) 18241 version_type=windows 18242 shrext_cmds=".dll" 18243 need_version=no 18244 need_lib_prefix=no 18245 18246 case $GCC,$host_os in 18247 yes,cygwin* | yes,mingw* | yes,pw32*) 18248 library_names_spec='$libname.dll.a' 18249 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18250 postinstall_cmds='base_file=`basename \${file}`~ 18251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18252 dldir=$destdir/`dirname \$dlpath`~ 18253 test -d \$dldir || mkdir -p \$dldir~ 18254 $install_prog $dir/$dlname \$dldir/$dlname~ 18255 chmod a+x \$dldir/$dlname' 18256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18257 dlpath=$dir/\$dldll~ 18258 $rm \$dlpath' 18259 shlibpath_overrides_runpath=yes 18260 18261 case $host_os in 18262 cygwin*) 18263 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18264 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18265 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18266 ;; 18267 mingw*) 18268 # MinGW DLLs use traditional 'lib' prefix 18269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18271 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18272 # It is most probably a Windows format PATH printed by 18273 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18274 # path with ; separators, and with drive letters. We can handle the 18275 # drive letters (cygwin fileutils understands them), so leave them, 18276 # especially as we might pass files found there to a mingw objdump, 18277 # which wouldn't understand a cygwinified path. Ahh. 18278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18279 else 18280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18281 fi 18282 ;; 18283 pw32*) 18284 # pw32 DLLs use 'pw' prefix rather than 'lib' 18285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18286 ;; 18287 esac 18288 ;; 18289 18290 *) 18291 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18292 ;; 18293 esac 18294 dynamic_linker='Win32 ld.exe' 18295 # FIXME: first we should search . and the directory the executable is in 18296 shlibpath_var=PATH 18297 ;; 18298 18299darwin* | rhapsody*) 18300 dynamic_linker="$host_os dyld" 18301 version_type=darwin 18302 need_lib_prefix=no 18303 need_version=no 18304 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18305 soname_spec='${libname}${release}${major}$shared_ext' 18306 shlibpath_overrides_runpath=yes 18307 shlibpath_var=DYLD_LIBRARY_PATH 18308 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18309 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18310 if test "$GCC" = yes; then 18311 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"` 18312 else 18313 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18314 fi 18315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18316 ;; 18317 18318dgux*) 18319 version_type=linux 18320 need_lib_prefix=no 18321 need_version=no 18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18323 soname_spec='${libname}${release}${shared_ext}$major' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 ;; 18326 18327freebsd1*) 18328 dynamic_linker=no 18329 ;; 18330 18331freebsd* | dragonfly*) 18332 # DragonFly does not have aout. When/if they implement a new 18333 # versioning mechanism, adjust this. 18334 if test -x /usr/bin/objformat; then 18335 objformat=`/usr/bin/objformat` 18336 else 18337 case $host_os in 18338 freebsd[123]*) objformat=aout ;; 18339 *) objformat=elf ;; 18340 esac 18341 fi 18342 version_type=freebsd-$objformat 18343 case $version_type in 18344 freebsd-elf*) 18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18346 need_version=no 18347 need_lib_prefix=no 18348 ;; 18349 freebsd-*) 18350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18351 need_version=yes 18352 ;; 18353 esac 18354 shlibpath_var=LD_LIBRARY_PATH 18355 case $host_os in 18356 freebsd2*) 18357 shlibpath_overrides_runpath=yes 18358 ;; 18359 freebsd3.[01]* | freebsdelf3.[01]*) 18360 shlibpath_overrides_runpath=yes 18361 hardcode_into_libs=yes 18362 ;; 18363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18365 shlibpath_overrides_runpath=no 18366 hardcode_into_libs=yes 18367 ;; 18368 freebsd*) # from 4.6 on 18369 shlibpath_overrides_runpath=yes 18370 hardcode_into_libs=yes 18371 ;; 18372 esac 18373 ;; 18374 18375gnu*) 18376 version_type=linux 18377 need_lib_prefix=no 18378 need_version=no 18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18380 soname_spec='${libname}${release}${shared_ext}$major' 18381 shlibpath_var=LD_LIBRARY_PATH 18382 hardcode_into_libs=yes 18383 ;; 18384 18385hpux9* | hpux10* | hpux11*) 18386 # Give a soname corresponding to the major version so that dld.sl refuses to 18387 # link against other versions. 18388 version_type=sunos 18389 need_lib_prefix=no 18390 need_version=no 18391 case $host_cpu in 18392 ia64*) 18393 shrext_cmds='.so' 18394 hardcode_into_libs=yes 18395 dynamic_linker="$host_os dld.so" 18396 shlibpath_var=LD_LIBRARY_PATH 18397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18399 soname_spec='${libname}${release}${shared_ext}$major' 18400 if test "X$HPUX_IA64_MODE" = X32; then 18401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18402 else 18403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18404 fi 18405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18406 ;; 18407 hppa*64*) 18408 shrext_cmds='.sl' 18409 hardcode_into_libs=yes 18410 dynamic_linker="$host_os dld.sl" 18411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18414 soname_spec='${libname}${release}${shared_ext}$major' 18415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18417 ;; 18418 *) 18419 shrext_cmds='.sl' 18420 dynamic_linker="$host_os dld.sl" 18421 shlibpath_var=SHLIB_PATH 18422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18424 soname_spec='${libname}${release}${shared_ext}$major' 18425 ;; 18426 esac 18427 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18428 postinstall_cmds='chmod 555 $lib' 18429 ;; 18430 18431interix3*) 18432 version_type=linux 18433 need_lib_prefix=no 18434 need_version=no 18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18436 soname_spec='${libname}${release}${shared_ext}$major' 18437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18438 shlibpath_var=LD_LIBRARY_PATH 18439 shlibpath_overrides_runpath=no 18440 hardcode_into_libs=yes 18441 ;; 18442 18443irix5* | irix6* | nonstopux*) 18444 case $host_os in 18445 nonstopux*) version_type=nonstopux ;; 18446 *) 18447 if test "$lt_cv_prog_gnu_ld" = yes; then 18448 version_type=linux 18449 else 18450 version_type=irix 18451 fi ;; 18452 esac 18453 need_lib_prefix=no 18454 need_version=no 18455 soname_spec='${libname}${release}${shared_ext}$major' 18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18457 case $host_os in 18458 irix5* | nonstopux*) 18459 libsuff= shlibsuff= 18460 ;; 18461 *) 18462 case $LD in # libtool.m4 will add one of these switches to LD 18463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18464 libsuff= shlibsuff= libmagic=32-bit;; 18465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18466 libsuff=32 shlibsuff=N32 libmagic=N32;; 18467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18468 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18469 *) libsuff= shlibsuff= libmagic=never-match;; 18470 esac 18471 ;; 18472 esac 18473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18474 shlibpath_overrides_runpath=no 18475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18477 hardcode_into_libs=yes 18478 ;; 18479 18480# No shared lib support for Linux oldld, aout, or coff. 18481linux*oldld* | linux*aout* | linux*coff*) 18482 dynamic_linker=no 18483 ;; 18484 18485# This must be Linux ELF. 18486linux* | k*bsd*-gnu) 18487 version_type=linux 18488 need_lib_prefix=no 18489 need_version=no 18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18491 soname_spec='${libname}${release}${shared_ext}$major' 18492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18493 shlibpath_var=LD_LIBRARY_PATH 18494 shlibpath_overrides_runpath=no 18495 # This implies no fast_install, which is unacceptable. 18496 # Some rework will be needed to allow for fast_install 18497 # before this can be enabled. 18498 hardcode_into_libs=yes 18499 18500 # Append ld.so.conf contents to the search path 18501 if test -f /etc/ld.so.conf; then 18502 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' ' '` 18503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18504 fi 18505 18506 # We used to test for /lib/ld.so.1 and disable shared libraries on 18507 # powerpc, because MkLinux only supported shared libraries with the 18508 # GNU dynamic linker. Since this was broken with cross compilers, 18509 # most powerpc-linux boxes support dynamic linking these days and 18510 # people can always --disable-shared, the test was removed, and we 18511 # assume the GNU/Linux dynamic linker is in use. 18512 dynamic_linker='GNU/Linux ld.so' 18513 ;; 18514 18515netbsdelf*-gnu) 18516 version_type=linux 18517 need_lib_prefix=no 18518 need_version=no 18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18520 soname_spec='${libname}${release}${shared_ext}$major' 18521 shlibpath_var=LD_LIBRARY_PATH 18522 shlibpath_overrides_runpath=no 18523 hardcode_into_libs=yes 18524 dynamic_linker='NetBSD ld.elf_so' 18525 ;; 18526 18527netbsd*) 18528 version_type=sunos 18529 need_lib_prefix=no 18530 need_version=no 18531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18534 dynamic_linker='NetBSD (a.out) ld.so' 18535 else 18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18537 soname_spec='${libname}${release}${shared_ext}$major' 18538 dynamic_linker='NetBSD ld.elf_so' 18539 fi 18540 shlibpath_var=LD_LIBRARY_PATH 18541 shlibpath_overrides_runpath=yes 18542 hardcode_into_libs=yes 18543 ;; 18544 18545newsos6) 18546 version_type=linux 18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18548 shlibpath_var=LD_LIBRARY_PATH 18549 shlibpath_overrides_runpath=yes 18550 ;; 18551 18552nto-qnx*) 18553 version_type=linux 18554 need_lib_prefix=no 18555 need_version=no 18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18557 soname_spec='${libname}${release}${shared_ext}$major' 18558 shlibpath_var=LD_LIBRARY_PATH 18559 shlibpath_overrides_runpath=yes 18560 ;; 18561 18562openbsd*) 18563 version_type=sunos 18564 sys_lib_dlsearch_path_spec="/usr/lib" 18565 need_lib_prefix=no 18566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18567 case $host_os in 18568 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18569 *) need_version=no ;; 18570 esac 18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18573 shlibpath_var=LD_LIBRARY_PATH 18574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18575 case $host_os in 18576 openbsd2.[89] | openbsd2.[89].*) 18577 shlibpath_overrides_runpath=no 18578 ;; 18579 *) 18580 shlibpath_overrides_runpath=yes 18581 ;; 18582 esac 18583 else 18584 shlibpath_overrides_runpath=yes 18585 fi 18586 ;; 18587 18588os2*) 18589 libname_spec='$name' 18590 shrext_cmds=".dll" 18591 need_lib_prefix=no 18592 library_names_spec='$libname${shared_ext} $libname.a' 18593 dynamic_linker='OS/2 ld.exe' 18594 shlibpath_var=LIBPATH 18595 ;; 18596 18597osf3* | osf4* | osf5*) 18598 version_type=osf 18599 need_lib_prefix=no 18600 need_version=no 18601 soname_spec='${libname}${release}${shared_ext}$major' 18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18603 shlibpath_var=LD_LIBRARY_PATH 18604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18606 ;; 18607 18608solaris*) 18609 version_type=linux 18610 need_lib_prefix=no 18611 need_version=no 18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18613 soname_spec='${libname}${release}${shared_ext}$major' 18614 shlibpath_var=LD_LIBRARY_PATH 18615 shlibpath_overrides_runpath=yes 18616 hardcode_into_libs=yes 18617 # ldd complains unless libraries are executable 18618 postinstall_cmds='chmod +x $lib' 18619 ;; 18620 18621sunos4*) 18622 version_type=sunos 18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18625 shlibpath_var=LD_LIBRARY_PATH 18626 shlibpath_overrides_runpath=yes 18627 if test "$with_gnu_ld" = yes; then 18628 need_lib_prefix=no 18629 fi 18630 need_version=yes 18631 ;; 18632 18633sysv4 | sysv4.3*) 18634 version_type=linux 18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18636 soname_spec='${libname}${release}${shared_ext}$major' 18637 shlibpath_var=LD_LIBRARY_PATH 18638 case $host_vendor in 18639 sni) 18640 shlibpath_overrides_runpath=no 18641 need_lib_prefix=no 18642 export_dynamic_flag_spec='${wl}-Blargedynsym' 18643 runpath_var=LD_RUN_PATH 18644 ;; 18645 siemens) 18646 need_lib_prefix=no 18647 ;; 18648 motorola) 18649 need_lib_prefix=no 18650 need_version=no 18651 shlibpath_overrides_runpath=no 18652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18653 ;; 18654 esac 18655 ;; 18656 18657sysv4*MP*) 18658 if test -d /usr/nec ;then 18659 version_type=linux 18660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18661 soname_spec='$libname${shared_ext}.$major' 18662 shlibpath_var=LD_LIBRARY_PATH 18663 fi 18664 ;; 18665 18666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18667 version_type=freebsd-elf 18668 need_lib_prefix=no 18669 need_version=no 18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18671 soname_spec='${libname}${release}${shared_ext}$major' 18672 shlibpath_var=LD_LIBRARY_PATH 18673 hardcode_into_libs=yes 18674 if test "$with_gnu_ld" = yes; then 18675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18676 shlibpath_overrides_runpath=no 18677 else 18678 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18679 shlibpath_overrides_runpath=yes 18680 case $host_os in 18681 sco3.2v5*) 18682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18683 ;; 18684 esac 18685 fi 18686 sys_lib_dlsearch_path_spec='/usr/lib' 18687 ;; 18688 18689uts4*) 18690 version_type=linux 18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18692 soname_spec='${libname}${release}${shared_ext}$major' 18693 shlibpath_var=LD_LIBRARY_PATH 18694 ;; 18695 18696*) 18697 dynamic_linker=no 18698 ;; 18699esac 18700{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18701echo "${ECHO_T}$dynamic_linker" >&6; } 18702test "$dynamic_linker" = no && can_build_shared=no 18703 18704variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18705if test "$GCC" = yes; then 18706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18707fi 18708 18709{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18710echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18711hardcode_action_GCJ= 18712if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18713 test -n "$runpath_var_GCJ" || \ 18714 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18715 18716 # We can hardcode non-existant directories. 18717 if test "$hardcode_direct_GCJ" != no && 18718 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18719 # have to relink, otherwise we might link with an installed library 18720 # when we should be linking with a yet-to-be-installed one 18721 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18722 test "$hardcode_minus_L_GCJ" != no; then 18723 # Linking always hardcodes the temporary library directory. 18724 hardcode_action_GCJ=relink 18725 else 18726 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18727 hardcode_action_GCJ=immediate 18728 fi 18729else 18730 # We cannot hardcode anything, or else we can only hardcode existing 18731 # directories. 18732 hardcode_action_GCJ=unsupported 18733fi 18734{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18735echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18736 18737if test "$hardcode_action_GCJ" = relink; then 18738 # Fast installation is not supported 18739 enable_fast_install=no 18740elif test "$shlibpath_overrides_runpath" = yes || 18741 test "$enable_shared" = no; then 18742 # Fast installation is not necessary 18743 enable_fast_install=needless 18744fi 18745 18746 18747# The else clause should only fire when bootstrapping the 18748# libtool distribution, otherwise you forgot to ship ltmain.sh 18749# with your package, and you will get complaints that there are 18750# no rules to generate ltmain.sh. 18751if test -f "$ltmain"; then 18752 # See if we are running on zsh, and set the options which allow our commands through 18753 # without removal of \ escapes. 18754 if test -n "${ZSH_VERSION+set}" ; then 18755 setopt NO_GLOB_SUBST 18756 fi 18757 # Now quote all the things that may contain metacharacters while being 18758 # careful not to overquote the AC_SUBSTed values. We take copies of the 18759 # variables and quote the copies for generation of the libtool script. 18760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18761 SED SHELL STRIP \ 18762 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18763 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18764 deplibs_check_method reload_flag reload_cmds need_locks \ 18765 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18766 lt_cv_sys_global_symbol_to_c_name_address \ 18767 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18768 old_postinstall_cmds old_postuninstall_cmds \ 18769 compiler_GCJ \ 18770 CC_GCJ \ 18771 LD_GCJ \ 18772 lt_prog_compiler_wl_GCJ \ 18773 lt_prog_compiler_pic_GCJ \ 18774 lt_prog_compiler_static_GCJ \ 18775 lt_prog_compiler_no_builtin_flag_GCJ \ 18776 export_dynamic_flag_spec_GCJ \ 18777 thread_safe_flag_spec_GCJ \ 18778 whole_archive_flag_spec_GCJ \ 18779 enable_shared_with_static_runtimes_GCJ \ 18780 old_archive_cmds_GCJ \ 18781 old_archive_from_new_cmds_GCJ \ 18782 predep_objects_GCJ \ 18783 postdep_objects_GCJ \ 18784 predeps_GCJ \ 18785 postdeps_GCJ \ 18786 compiler_lib_search_path_GCJ \ 18787 archive_cmds_GCJ \ 18788 archive_expsym_cmds_GCJ \ 18789 postinstall_cmds_GCJ \ 18790 postuninstall_cmds_GCJ \ 18791 old_archive_from_expsyms_cmds_GCJ \ 18792 allow_undefined_flag_GCJ \ 18793 no_undefined_flag_GCJ \ 18794 export_symbols_cmds_GCJ \ 18795 hardcode_libdir_flag_spec_GCJ \ 18796 hardcode_libdir_flag_spec_ld_GCJ \ 18797 hardcode_libdir_separator_GCJ \ 18798 hardcode_automatic_GCJ \ 18799 module_cmds_GCJ \ 18800 module_expsym_cmds_GCJ \ 18801 lt_cv_prog_compiler_c_o_GCJ \ 18802 exclude_expsyms_GCJ \ 18803 include_expsyms_GCJ; do 18804 18805 case $var in 18806 old_archive_cmds_GCJ | \ 18807 old_archive_from_new_cmds_GCJ | \ 18808 archive_cmds_GCJ | \ 18809 archive_expsym_cmds_GCJ | \ 18810 module_cmds_GCJ | \ 18811 module_expsym_cmds_GCJ | \ 18812 old_archive_from_expsyms_cmds_GCJ | \ 18813 export_symbols_cmds_GCJ | \ 18814 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18815 postinstall_cmds | postuninstall_cmds | \ 18816 old_postinstall_cmds | old_postuninstall_cmds | \ 18817 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18818 # Double-quote double-evaled strings. 18819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18820 ;; 18821 *) 18822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18823 ;; 18824 esac 18825 done 18826 18827 case $lt_echo in 18828 *'\$0 --fallback-echo"') 18829 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18830 ;; 18831 esac 18832 18833cfgfile="$ofile" 18834 18835 cat <<__EOF__ >> "$cfgfile" 18836# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18837 18838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18839 18840# Shell to use when invoking shell scripts. 18841SHELL=$lt_SHELL 18842 18843# Whether or not to build shared libraries. 18844build_libtool_libs=$enable_shared 18845 18846# Whether or not to build static libraries. 18847build_old_libs=$enable_static 18848 18849# Whether or not to add -lc for building shared libraries. 18850build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18851 18852# Whether or not to disallow shared libs when runtime libs are static 18853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18854 18855# Whether or not to optimize for fast installation. 18856fast_install=$enable_fast_install 18857 18858# The host system. 18859host_alias=$host_alias 18860host=$host 18861host_os=$host_os 18862 18863# The build system. 18864build_alias=$build_alias 18865build=$build 18866build_os=$build_os 18867 18868# An echo program that does not interpret backslashes. 18869echo=$lt_echo 18870 18871# The archiver. 18872AR=$lt_AR 18873AR_FLAGS=$lt_AR_FLAGS 18874 18875# A C compiler. 18876LTCC=$lt_LTCC 18877 18878# LTCC compiler flags. 18879LTCFLAGS=$lt_LTCFLAGS 18880 18881# A language-specific compiler. 18882CC=$lt_compiler_GCJ 18883 18884# Is the compiler the GNU C compiler? 18885with_gcc=$GCC_GCJ 18886 18887# An ERE matcher. 18888EGREP=$lt_EGREP 18889 18890# The linker used to build libraries. 18891LD=$lt_LD_GCJ 18892 18893# Whether we need hard or soft links. 18894LN_S=$lt_LN_S 18895 18896# A BSD-compatible nm program. 18897NM=$lt_NM 18898 18899# A symbol stripping program 18900STRIP=$lt_STRIP 18901 18902# Used to examine libraries when file_magic_cmd begins "file" 18903MAGIC_CMD=$MAGIC_CMD 18904 18905# Used on cygwin: DLL creation program. 18906DLLTOOL="$DLLTOOL" 18907 18908# Used on cygwin: object dumper. 18909OBJDUMP="$OBJDUMP" 18910 18911# Used on cygwin: assembler. 18912AS="$AS" 18913 18914# The name of the directory that contains temporary libtool files. 18915objdir=$objdir 18916 18917# How to create reloadable object files. 18918reload_flag=$lt_reload_flag 18919reload_cmds=$lt_reload_cmds 18920 18921# How to pass a linker flag through the compiler. 18922wl=$lt_lt_prog_compiler_wl_GCJ 18923 18924# Object file suffix (normally "o"). 18925objext="$ac_objext" 18926 18927# Old archive suffix (normally "a"). 18928libext="$libext" 18929 18930# Shared library suffix (normally ".so"). 18931shrext_cmds='$shrext_cmds' 18932 18933# Executable file suffix (normally ""). 18934exeext="$exeext" 18935 18936# Additional compiler flags for building library objects. 18937pic_flag=$lt_lt_prog_compiler_pic_GCJ 18938pic_mode=$pic_mode 18939 18940# What is the maximum length of a command? 18941max_cmd_len=$lt_cv_sys_max_cmd_len 18942 18943# Does compiler simultaneously support -c and -o options? 18944compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18945 18946# Must we lock files when doing compilation? 18947need_locks=$lt_need_locks 18948 18949# Do we need the lib prefix for modules? 18950need_lib_prefix=$need_lib_prefix 18951 18952# Do we need a version for libraries? 18953need_version=$need_version 18954 18955# Whether dlopen is supported. 18956dlopen_support=$enable_dlopen 18957 18958# Whether dlopen of programs is supported. 18959dlopen_self=$enable_dlopen_self 18960 18961# Whether dlopen of statically linked programs is supported. 18962dlopen_self_static=$enable_dlopen_self_static 18963 18964# Compiler flag to prevent dynamic linking. 18965link_static_flag=$lt_lt_prog_compiler_static_GCJ 18966 18967# Compiler flag to turn off builtin functions. 18968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18969 18970# Compiler flag to allow reflexive dlopens. 18971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18972 18973# Compiler flag to generate shared objects directly from archives. 18974whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18975 18976# Compiler flag to generate thread-safe objects. 18977thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18978 18979# Library versioning type. 18980version_type=$version_type 18981 18982# Format of library name prefix. 18983libname_spec=$lt_libname_spec 18984 18985# List of archive names. First name is the real one, the rest are links. 18986# The last name is the one that the linker finds with -lNAME. 18987library_names_spec=$lt_library_names_spec 18988 18989# The coded name of the library, if different from the real name. 18990soname_spec=$lt_soname_spec 18991 18992# Commands used to build and install an old-style archive. 18993RANLIB=$lt_RANLIB 18994old_archive_cmds=$lt_old_archive_cmds_GCJ 18995old_postinstall_cmds=$lt_old_postinstall_cmds 18996old_postuninstall_cmds=$lt_old_postuninstall_cmds 18997 18998# Create an old-style archive from a shared archive. 18999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19000 19001# Create a temporary old-style archive to link instead of a shared archive. 19002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19003 19004# Commands used to build and install a shared archive. 19005archive_cmds=$lt_archive_cmds_GCJ 19006archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19007postinstall_cmds=$lt_postinstall_cmds 19008postuninstall_cmds=$lt_postuninstall_cmds 19009 19010# Commands used to build a loadable module (assumed same as above if empty) 19011module_cmds=$lt_module_cmds_GCJ 19012module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19013 19014# Commands to strip libraries. 19015old_striplib=$lt_old_striplib 19016striplib=$lt_striplib 19017 19018# Dependencies to place before the objects being linked to create a 19019# shared library. 19020predep_objects=$lt_predep_objects_GCJ 19021 19022# Dependencies to place after the objects being linked to create a 19023# shared library. 19024postdep_objects=$lt_postdep_objects_GCJ 19025 19026# Dependencies to place before the objects being linked to create a 19027# shared library. 19028predeps=$lt_predeps_GCJ 19029 19030# Dependencies to place after the objects being linked to create a 19031# shared library. 19032postdeps=$lt_postdeps_GCJ 19033 19034# The library search path used internally by the compiler when linking 19035# a shared library. 19036compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19037 19038# Method to check whether dependent libraries are shared objects. 19039deplibs_check_method=$lt_deplibs_check_method 19040 19041# Command to use when deplibs_check_method == file_magic. 19042file_magic_cmd=$lt_file_magic_cmd 19043 19044# Flag that allows shared libraries with undefined symbols to be built. 19045allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19046 19047# Flag that forces no undefined symbols. 19048no_undefined_flag=$lt_no_undefined_flag_GCJ 19049 19050# Commands used to finish a libtool library installation in a directory. 19051finish_cmds=$lt_finish_cmds 19052 19053# Same as above, but a single script fragment to be evaled but not shown. 19054finish_eval=$lt_finish_eval 19055 19056# Take the output of nm and produce a listing of raw symbols and C names. 19057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19058 19059# Transform the output of nm in a proper C declaration 19060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19061 19062# Transform the output of nm in a C name address pair 19063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19064 19065# This is the shared library runtime path variable. 19066runpath_var=$runpath_var 19067 19068# This is the shared library path variable. 19069shlibpath_var=$shlibpath_var 19070 19071# Is shlibpath searched before the hard-coded library search path? 19072shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19073 19074# How to hardcode a shared library path into an executable. 19075hardcode_action=$hardcode_action_GCJ 19076 19077# Whether we should hardcode library paths into libraries. 19078hardcode_into_libs=$hardcode_into_libs 19079 19080# Flag to hardcode \$libdir into a binary during linking. 19081# This must work even if \$libdir does not exist. 19082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19083 19084# If ld is used when linking, flag to hardcode \$libdir into 19085# a binary during linking. This must work even if \$libdir does 19086# not exist. 19087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19088 19089# Whether we need a single -rpath flag with a separated argument. 19090hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19091 19092# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19093# resulting binary. 19094hardcode_direct=$hardcode_direct_GCJ 19095 19096# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19097# resulting binary. 19098hardcode_minus_L=$hardcode_minus_L_GCJ 19099 19100# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19101# the resulting binary. 19102hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19103 19104# Set to yes if building a shared library automatically hardcodes DIR into the library 19105# and all subsequent libraries and executables linked against it. 19106hardcode_automatic=$hardcode_automatic_GCJ 19107 19108# Variables whose values should be saved in libtool wrapper scripts and 19109# restored at relink time. 19110variables_saved_for_relink="$variables_saved_for_relink" 19111 19112# Whether libtool must link a program against all its dependency libraries. 19113link_all_deplibs=$link_all_deplibs_GCJ 19114 19115# Compile-time system search path for libraries 19116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19117 19118# Run-time system search path for libraries 19119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19120 19121# Fix the shell variable \$srcfile for the compiler. 19122fix_srcfile_path="$fix_srcfile_path_GCJ" 19123 19124# Set to yes if exported symbols are required. 19125always_export_symbols=$always_export_symbols_GCJ 19126 19127# The commands to list exported symbols. 19128export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19129 19130# The commands to extract the exported symbol list from a shared archive. 19131extract_expsyms_cmds=$lt_extract_expsyms_cmds 19132 19133# Symbols that should not be listed in the preloaded symbols. 19134exclude_expsyms=$lt_exclude_expsyms_GCJ 19135 19136# Symbols that must always be exported. 19137include_expsyms=$lt_include_expsyms_GCJ 19138 19139# ### END LIBTOOL TAG CONFIG: $tagname 19140 19141__EOF__ 19142 19143 19144else 19145 # If there is no Makefile yet, we rely on a make rule to execute 19146 # `config.status --recheck' to rerun these tests and create the 19147 # libtool script then. 19148 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19149 if test -f "$ltmain_in"; then 19150 test -f Makefile && make "$ltmain" 19151 fi 19152fi 19153 19154 19155ac_ext=c 19156ac_cpp='$CPP $CPPFLAGS' 19157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19159ac_compiler_gnu=$ac_cv_c_compiler_gnu 19160 19161CC="$lt_save_CC" 19162 19163 else 19164 tagname="" 19165 fi 19166 ;; 19167 19168 RC) 19169 19170 19171# Source file extension for RC test sources. 19172ac_ext=rc 19173 19174# Object file extension for compiled RC test sources. 19175objext=o 19176objext_RC=$objext 19177 19178# Code to be used in simple compile tests 19179lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19180 19181# Code to be used in simple link tests 19182lt_simple_link_test_code="$lt_simple_compile_test_code" 19183 19184# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19185 19186# If no C compiler was specified, use CC. 19187LTCC=${LTCC-"$CC"} 19188 19189# If no C compiler flags were specified, use CFLAGS. 19190LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19191 19192# Allow CC to be a program name with arguments. 19193compiler=$CC 19194 19195 19196# save warnings/boilerplate of simple test code 19197ac_outfile=conftest.$ac_objext 19198printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19200_lt_compiler_boilerplate=`cat conftest.err` 19201$rm conftest* 19202 19203ac_outfile=conftest.$ac_objext 19204printf "$lt_simple_link_test_code" >conftest.$ac_ext 19205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19206_lt_linker_boilerplate=`cat conftest.err` 19207$rm conftest* 19208 19209 19210# Allow CC to be a program name with arguments. 19211lt_save_CC="$CC" 19212CC=${RC-"windres"} 19213compiler=$CC 19214compiler_RC=$CC 19215for cc_temp in $compiler""; do 19216 case $cc_temp in 19217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19219 \-*) ;; 19220 *) break;; 19221 esac 19222done 19223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19224 19225lt_cv_prog_compiler_c_o_RC=yes 19226 19227# The else clause should only fire when bootstrapping the 19228# libtool distribution, otherwise you forgot to ship ltmain.sh 19229# with your package, and you will get complaints that there are 19230# no rules to generate ltmain.sh. 19231if test -f "$ltmain"; then 19232 # See if we are running on zsh, and set the options which allow our commands through 19233 # without removal of \ escapes. 19234 if test -n "${ZSH_VERSION+set}" ; then 19235 setopt NO_GLOB_SUBST 19236 fi 19237 # Now quote all the things that may contain metacharacters while being 19238 # careful not to overquote the AC_SUBSTed values. We take copies of the 19239 # variables and quote the copies for generation of the libtool script. 19240 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19241 SED SHELL STRIP \ 19242 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19243 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19244 deplibs_check_method reload_flag reload_cmds need_locks \ 19245 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19246 lt_cv_sys_global_symbol_to_c_name_address \ 19247 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19248 old_postinstall_cmds old_postuninstall_cmds \ 19249 compiler_RC \ 19250 CC_RC \ 19251 LD_RC \ 19252 lt_prog_compiler_wl_RC \ 19253 lt_prog_compiler_pic_RC \ 19254 lt_prog_compiler_static_RC \ 19255 lt_prog_compiler_no_builtin_flag_RC \ 19256 export_dynamic_flag_spec_RC \ 19257 thread_safe_flag_spec_RC \ 19258 whole_archive_flag_spec_RC \ 19259 enable_shared_with_static_runtimes_RC \ 19260 old_archive_cmds_RC \ 19261 old_archive_from_new_cmds_RC \ 19262 predep_objects_RC \ 19263 postdep_objects_RC \ 19264 predeps_RC \ 19265 postdeps_RC \ 19266 compiler_lib_search_path_RC \ 19267 archive_cmds_RC \ 19268 archive_expsym_cmds_RC \ 19269 postinstall_cmds_RC \ 19270 postuninstall_cmds_RC \ 19271 old_archive_from_expsyms_cmds_RC \ 19272 allow_undefined_flag_RC \ 19273 no_undefined_flag_RC \ 19274 export_symbols_cmds_RC \ 19275 hardcode_libdir_flag_spec_RC \ 19276 hardcode_libdir_flag_spec_ld_RC \ 19277 hardcode_libdir_separator_RC \ 19278 hardcode_automatic_RC \ 19279 module_cmds_RC \ 19280 module_expsym_cmds_RC \ 19281 lt_cv_prog_compiler_c_o_RC \ 19282 exclude_expsyms_RC \ 19283 include_expsyms_RC; do 19284 19285 case $var in 19286 old_archive_cmds_RC | \ 19287 old_archive_from_new_cmds_RC | \ 19288 archive_cmds_RC | \ 19289 archive_expsym_cmds_RC | \ 19290 module_cmds_RC | \ 19291 module_expsym_cmds_RC | \ 19292 old_archive_from_expsyms_cmds_RC | \ 19293 export_symbols_cmds_RC | \ 19294 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19295 postinstall_cmds | postuninstall_cmds | \ 19296 old_postinstall_cmds | old_postuninstall_cmds | \ 19297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19298 # Double-quote double-evaled strings. 19299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19300 ;; 19301 *) 19302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19303 ;; 19304 esac 19305 done 19306 19307 case $lt_echo in 19308 *'\$0 --fallback-echo"') 19309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19310 ;; 19311 esac 19312 19313cfgfile="$ofile" 19314 19315 cat <<__EOF__ >> "$cfgfile" 19316# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19317 19318# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19319 19320# Shell to use when invoking shell scripts. 19321SHELL=$lt_SHELL 19322 19323# Whether or not to build shared libraries. 19324build_libtool_libs=$enable_shared 19325 19326# Whether or not to build static libraries. 19327build_old_libs=$enable_static 19328 19329# Whether or not to add -lc for building shared libraries. 19330build_libtool_need_lc=$archive_cmds_need_lc_RC 19331 19332# Whether or not to disallow shared libs when runtime libs are static 19333allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19334 19335# Whether or not to optimize for fast installation. 19336fast_install=$enable_fast_install 19337 19338# The host system. 19339host_alias=$host_alias 19340host=$host 19341host_os=$host_os 19342 19343# The build system. 19344build_alias=$build_alias 19345build=$build 19346build_os=$build_os 19347 19348# An echo program that does not interpret backslashes. 19349echo=$lt_echo 19350 19351# The archiver. 19352AR=$lt_AR 19353AR_FLAGS=$lt_AR_FLAGS 19354 19355# A C compiler. 19356LTCC=$lt_LTCC 19357 19358# LTCC compiler flags. 19359LTCFLAGS=$lt_LTCFLAGS 19360 19361# A language-specific compiler. 19362CC=$lt_compiler_RC 19363 19364# Is the compiler the GNU C compiler? 19365with_gcc=$GCC_RC 19366 19367# An ERE matcher. 19368EGREP=$lt_EGREP 19369 19370# The linker used to build libraries. 19371LD=$lt_LD_RC 19372 19373# Whether we need hard or soft links. 19374LN_S=$lt_LN_S 19375 19376# A BSD-compatible nm program. 19377NM=$lt_NM 19378 19379# A symbol stripping program 19380STRIP=$lt_STRIP 19381 19382# Used to examine libraries when file_magic_cmd begins "file" 19383MAGIC_CMD=$MAGIC_CMD 19384 19385# Used on cygwin: DLL creation program. 19386DLLTOOL="$DLLTOOL" 19387 19388# Used on cygwin: object dumper. 19389OBJDUMP="$OBJDUMP" 19390 19391# Used on cygwin: assembler. 19392AS="$AS" 19393 19394# The name of the directory that contains temporary libtool files. 19395objdir=$objdir 19396 19397# How to create reloadable object files. 19398reload_flag=$lt_reload_flag 19399reload_cmds=$lt_reload_cmds 19400 19401# How to pass a linker flag through the compiler. 19402wl=$lt_lt_prog_compiler_wl_RC 19403 19404# Object file suffix (normally "o"). 19405objext="$ac_objext" 19406 19407# Old archive suffix (normally "a"). 19408libext="$libext" 19409 19410# Shared library suffix (normally ".so"). 19411shrext_cmds='$shrext_cmds' 19412 19413# Executable file suffix (normally ""). 19414exeext="$exeext" 19415 19416# Additional compiler flags for building library objects. 19417pic_flag=$lt_lt_prog_compiler_pic_RC 19418pic_mode=$pic_mode 19419 19420# What is the maximum length of a command? 19421max_cmd_len=$lt_cv_sys_max_cmd_len 19422 19423# Does compiler simultaneously support -c and -o options? 19424compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19425 19426# Must we lock files when doing compilation? 19427need_locks=$lt_need_locks 19428 19429# Do we need the lib prefix for modules? 19430need_lib_prefix=$need_lib_prefix 19431 19432# Do we need a version for libraries? 19433need_version=$need_version 19434 19435# Whether dlopen is supported. 19436dlopen_support=$enable_dlopen 19437 19438# Whether dlopen of programs is supported. 19439dlopen_self=$enable_dlopen_self 19440 19441# Whether dlopen of statically linked programs is supported. 19442dlopen_self_static=$enable_dlopen_self_static 19443 19444# Compiler flag to prevent dynamic linking. 19445link_static_flag=$lt_lt_prog_compiler_static_RC 19446 19447# Compiler flag to turn off builtin functions. 19448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19449 19450# Compiler flag to allow reflexive dlopens. 19451export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19452 19453# Compiler flag to generate shared objects directly from archives. 19454whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19455 19456# Compiler flag to generate thread-safe objects. 19457thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19458 19459# Library versioning type. 19460version_type=$version_type 19461 19462# Format of library name prefix. 19463libname_spec=$lt_libname_spec 19464 19465# List of archive names. First name is the real one, the rest are links. 19466# The last name is the one that the linker finds with -lNAME. 19467library_names_spec=$lt_library_names_spec 19468 19469# The coded name of the library, if different from the real name. 19470soname_spec=$lt_soname_spec 19471 19472# Commands used to build and install an old-style archive. 19473RANLIB=$lt_RANLIB 19474old_archive_cmds=$lt_old_archive_cmds_RC 19475old_postinstall_cmds=$lt_old_postinstall_cmds 19476old_postuninstall_cmds=$lt_old_postuninstall_cmds 19477 19478# Create an old-style archive from a shared archive. 19479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19480 19481# Create a temporary old-style archive to link instead of a shared archive. 19482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19483 19484# Commands used to build and install a shared archive. 19485archive_cmds=$lt_archive_cmds_RC 19486archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19487postinstall_cmds=$lt_postinstall_cmds 19488postuninstall_cmds=$lt_postuninstall_cmds 19489 19490# Commands used to build a loadable module (assumed same as above if empty) 19491module_cmds=$lt_module_cmds_RC 19492module_expsym_cmds=$lt_module_expsym_cmds_RC 19493 19494# Commands to strip libraries. 19495old_striplib=$lt_old_striplib 19496striplib=$lt_striplib 19497 19498# Dependencies to place before the objects being linked to create a 19499# shared library. 19500predep_objects=$lt_predep_objects_RC 19501 19502# Dependencies to place after the objects being linked to create a 19503# shared library. 19504postdep_objects=$lt_postdep_objects_RC 19505 19506# Dependencies to place before the objects being linked to create a 19507# shared library. 19508predeps=$lt_predeps_RC 19509 19510# Dependencies to place after the objects being linked to create a 19511# shared library. 19512postdeps=$lt_postdeps_RC 19513 19514# The library search path used internally by the compiler when linking 19515# a shared library. 19516compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19517 19518# Method to check whether dependent libraries are shared objects. 19519deplibs_check_method=$lt_deplibs_check_method 19520 19521# Command to use when deplibs_check_method == file_magic. 19522file_magic_cmd=$lt_file_magic_cmd 19523 19524# Flag that allows shared libraries with undefined symbols to be built. 19525allow_undefined_flag=$lt_allow_undefined_flag_RC 19526 19527# Flag that forces no undefined symbols. 19528no_undefined_flag=$lt_no_undefined_flag_RC 19529 19530# Commands used to finish a libtool library installation in a directory. 19531finish_cmds=$lt_finish_cmds 19532 19533# Same as above, but a single script fragment to be evaled but not shown. 19534finish_eval=$lt_finish_eval 19535 19536# Take the output of nm and produce a listing of raw symbols and C names. 19537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19538 19539# Transform the output of nm in a proper C declaration 19540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19541 19542# Transform the output of nm in a C name address pair 19543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19544 19545# This is the shared library runtime path variable. 19546runpath_var=$runpath_var 19547 19548# This is the shared library path variable. 19549shlibpath_var=$shlibpath_var 19550 19551# Is shlibpath searched before the hard-coded library search path? 19552shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19553 19554# How to hardcode a shared library path into an executable. 19555hardcode_action=$hardcode_action_RC 19556 19557# Whether we should hardcode library paths into libraries. 19558hardcode_into_libs=$hardcode_into_libs 19559 19560# Flag to hardcode \$libdir into a binary during linking. 19561# This must work even if \$libdir does not exist. 19562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19563 19564# If ld is used when linking, flag to hardcode \$libdir into 19565# a binary during linking. This must work even if \$libdir does 19566# not exist. 19567hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19568 19569# Whether we need a single -rpath flag with a separated argument. 19570hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19571 19572# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19573# resulting binary. 19574hardcode_direct=$hardcode_direct_RC 19575 19576# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19577# resulting binary. 19578hardcode_minus_L=$hardcode_minus_L_RC 19579 19580# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19581# the resulting binary. 19582hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19583 19584# Set to yes if building a shared library automatically hardcodes DIR into the library 19585# and all subsequent libraries and executables linked against it. 19586hardcode_automatic=$hardcode_automatic_RC 19587 19588# Variables whose values should be saved in libtool wrapper scripts and 19589# restored at relink time. 19590variables_saved_for_relink="$variables_saved_for_relink" 19591 19592# Whether libtool must link a program against all its dependency libraries. 19593link_all_deplibs=$link_all_deplibs_RC 19594 19595# Compile-time system search path for libraries 19596sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19597 19598# Run-time system search path for libraries 19599sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19600 19601# Fix the shell variable \$srcfile for the compiler. 19602fix_srcfile_path="$fix_srcfile_path_RC" 19603 19604# Set to yes if exported symbols are required. 19605always_export_symbols=$always_export_symbols_RC 19606 19607# The commands to list exported symbols. 19608export_symbols_cmds=$lt_export_symbols_cmds_RC 19609 19610# The commands to extract the exported symbol list from a shared archive. 19611extract_expsyms_cmds=$lt_extract_expsyms_cmds 19612 19613# Symbols that should not be listed in the preloaded symbols. 19614exclude_expsyms=$lt_exclude_expsyms_RC 19615 19616# Symbols that must always be exported. 19617include_expsyms=$lt_include_expsyms_RC 19618 19619# ### END LIBTOOL TAG CONFIG: $tagname 19620 19621__EOF__ 19622 19623 19624else 19625 # If there is no Makefile yet, we rely on a make rule to execute 19626 # `config.status --recheck' to rerun these tests and create the 19627 # libtool script then. 19628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19629 if test -f "$ltmain_in"; then 19630 test -f Makefile && make "$ltmain" 19631 fi 19632fi 19633 19634 19635ac_ext=c 19636ac_cpp='$CPP $CPPFLAGS' 19637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19639ac_compiler_gnu=$ac_cv_c_compiler_gnu 19640 19641CC="$lt_save_CC" 19642 19643 ;; 19644 19645 *) 19646 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19647echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19648 { (exit 1); exit 1; }; } 19649 ;; 19650 esac 19651 19652 # Append the new tag name to the list of available tags. 19653 if test -n "$tagname" ; then 19654 available_tags="$available_tags $tagname" 19655 fi 19656 fi 19657 done 19658 IFS="$lt_save_ifs" 19659 19660 # Now substitute the updated list of available tags. 19661 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19662 mv "${ofile}T" "$ofile" 19663 chmod +x "$ofile" 19664 else 19665 rm -f "${ofile}T" 19666 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19667echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19668 { (exit 1); exit 1; }; } 19669 fi 19670fi 19671 19672 19673 19674# This can be used to rebuild libtool when needed 19675LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19676 19677# Always use our own libtool. 19678LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19679 19680# Prevent multiple expansion 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 19702echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 19703if test "${ac_cv_search_strerror+set}" = set; then 19704 echo $ECHO_N "(cached) $ECHO_C" >&6 19705else 19706 ac_func_search_save_LIBS=$LIBS 19707cat >conftest.$ac_ext <<_ACEOF 19708/* confdefs.h. */ 19709_ACEOF 19710cat confdefs.h >>conftest.$ac_ext 19711cat >>conftest.$ac_ext <<_ACEOF 19712/* end confdefs.h. */ 19713 19714/* Override any GCC internal prototype to avoid an error. 19715 Use char because int might match the return type of a GCC 19716 builtin and then its argument prototype would still apply. */ 19717#ifdef __cplusplus 19718extern "C" 19719#endif 19720char strerror (); 19721int 19722main () 19723{ 19724return strerror (); 19725 ; 19726 return 0; 19727} 19728_ACEOF 19729for ac_lib in '' cposix; do 19730 if test -z "$ac_lib"; then 19731 ac_res="none required" 19732 else 19733 ac_res=-l$ac_lib 19734 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19735 fi 19736 rm -f conftest.$ac_objext conftest$ac_exeext 19737if { (ac_try="$ac_link" 19738case "(($ac_try" in 19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19740 *) ac_try_echo=$ac_try;; 19741esac 19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19743 (eval "$ac_link") 2>conftest.er1 19744 ac_status=$? 19745 grep -v '^ *+' conftest.er1 >conftest.err 19746 rm -f conftest.er1 19747 cat conftest.err >&5 19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); } && 19750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19751 { (case "(($ac_try" in 19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19753 *) ac_try_echo=$ac_try;; 19754esac 19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19756 (eval "$ac_try") 2>&5 19757 ac_status=$? 19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19759 (exit $ac_status); }; } && 19760 { ac_try='test -s conftest$ac_exeext' 19761 { (case "(($ac_try" in 19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19763 *) ac_try_echo=$ac_try;; 19764esac 19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19766 (eval "$ac_try") 2>&5 19767 ac_status=$? 19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19769 (exit $ac_status); }; }; then 19770 ac_cv_search_strerror=$ac_res 19771else 19772 echo "$as_me: failed program was:" >&5 19773sed 's/^/| /' conftest.$ac_ext >&5 19774 19775 19776fi 19777 19778rm -f core conftest.err conftest.$ac_objext \ 19779 conftest$ac_exeext 19780 if test "${ac_cv_search_strerror+set}" = set; then 19781 break 19782fi 19783done 19784if test "${ac_cv_search_strerror+set}" = set; then 19785 : 19786else 19787 ac_cv_search_strerror=no 19788fi 19789rm conftest.$ac_ext 19790LIBS=$ac_func_search_save_LIBS 19791fi 19792{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 19793echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 19794ac_res=$ac_cv_search_strerror 19795if test "$ac_res" != no; then 19796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19797 19798fi 19799 19800# Find a good install program. We prefer a C program (faster), 19801# so one script is as good as another. But avoid the broken or 19802# incompatible versions: 19803# SysV /etc/install, /usr/sbin/install 19804# SunOS /usr/etc/install 19805# IRIX /sbin/install 19806# AIX /bin/install 19807# AmigaOS /C/install, which installs bootblocks on floppy discs 19808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19809# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19811# OS/2's system install, which has a completely different semantic 19812# ./install, which can be erroneously created by make from ./install.sh. 19813{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19814echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 19815if test -z "$INSTALL"; then 19816if test "${ac_cv_path_install+set}" = set; then 19817 echo $ECHO_N "(cached) $ECHO_C" >&6 19818else 19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19820for as_dir in $PATH 19821do 19822 IFS=$as_save_IFS 19823 test -z "$as_dir" && as_dir=. 19824 # Account for people who put trailing slashes in PATH elements. 19825case $as_dir/ in 19826 ./ | .// | /cC/* | \ 19827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19829 /usr/ucb/* ) ;; 19830 *) 19831 # OSF1 and SCO ODT 3.0 have their own names for install. 19832 # Don't use installbsd from OSF since it installs stuff as root 19833 # by default. 19834 for ac_prog in ginstall scoinst install; do 19835 for ac_exec_ext in '' $ac_executable_extensions; do 19836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 19837 if test $ac_prog = install && 19838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19839 # AIX install. It has an incompatible calling convention. 19840 : 19841 elif test $ac_prog = install && 19842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19843 # program-specific install script used by HP pwplus--don't use. 19844 : 19845 else 19846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19847 break 3 19848 fi 19849 fi 19850 done 19851 done 19852 ;; 19853esac 19854done 19855IFS=$as_save_IFS 19856 19857 19858fi 19859 if test "${ac_cv_path_install+set}" = set; then 19860 INSTALL=$ac_cv_path_install 19861 else 19862 # As a last resort, use the slow shell script. Don't cache a 19863 # value for INSTALL within a source directory, because that will 19864 # break other packages using the cache if that directory is 19865 # removed, or if the value is a relative name. 19866 INSTALL=$ac_install_sh 19867 fi 19868fi 19869{ echo "$as_me:$LINENO: result: $INSTALL" >&5 19870echo "${ECHO_T}$INSTALL" >&6; } 19871 19872# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19873# It thinks the first close brace ends the variable substitution. 19874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19875 19876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19877 19878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19879 19880 19881# ------------------] GENERAL PACKAGE INFO [ 19882 19883PACKAGE_SUMMARY="template project" 19884 19885PACKAGE_URL="http://www.philipp-benner.de" 19886 19887PACKAGE_LICENSE="GPL" 19888 19889PACKAGE_DESCRIPTION="This is a template project using autoconf, automake and autoheader." 19890 19891 19892# ------------------] MACRO DEFINITIONS [ 19893 19894 19895 19896 19897 19898# ------------------] LIBRARIES [ 19899 19900 19901 19902 19903{ echo "$as_me:$LINENO: checking for hstrerror in -lhplx" >&5 19904echo $ECHO_N "checking for hstrerror in -lhplx... $ECHO_C" >&6; } 19905if test "${ac_cv_lib_hplx_hstrerror+set}" = set; then 19906 echo $ECHO_N "(cached) $ECHO_C" >&6 19907else 19908 ac_check_lib_save_LIBS=$LIBS 19909LIBS="-lhplx # Additional libraries: 19910 -lsec $LIBS" 19911cat >conftest.$ac_ext <<_ACEOF 19912/* confdefs.h. */ 19913_ACEOF 19914cat confdefs.h >>conftest.$ac_ext 19915cat >>conftest.$ac_ext <<_ACEOF 19916/* end confdefs.h. */ 19917 19918/* Override any GCC internal prototype to avoid an error. 19919 Use char because int might match the return type of a GCC 19920 builtin and then its argument prototype would still apply. */ 19921#ifdef __cplusplus 19922extern "C" 19923#endif 19924char hstrerror (); 19925int 19926main () 19927{ 19928return hstrerror (); 19929 ; 19930 return 0; 19931} 19932_ACEOF 19933rm -f conftest.$ac_objext conftest$ac_exeext 19934if { (ac_try="$ac_link" 19935case "(($ac_try" in 19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19937 *) ac_try_echo=$ac_try;; 19938esac 19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19940 (eval "$ac_link") 2>conftest.er1 19941 ac_status=$? 19942 grep -v '^ *+' conftest.er1 >conftest.err 19943 rm -f conftest.er1 19944 cat conftest.err >&5 19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19946 (exit $ac_status); } && 19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19948 { (case "(($ac_try" in 19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19950 *) ac_try_echo=$ac_try;; 19951esac 19952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19953 (eval "$ac_try") 2>&5 19954 ac_status=$? 19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19956 (exit $ac_status); }; } && 19957 { ac_try='test -s conftest$ac_exeext' 19958 { (case "(($ac_try" in 19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19960 *) ac_try_echo=$ac_try;; 19961esac 19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19963 (eval "$ac_try") 2>&5 19964 ac_status=$? 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); }; }; then 19967 ac_cv_lib_hplx_hstrerror=yes 19968else 19969 echo "$as_me: failed program was:" >&5 19970sed 's/^/| /' conftest.$ac_ext >&5 19971 19972 ac_cv_lib_hplx_hstrerror=no 19973fi 19974 19975rm -f core conftest.err conftest.$ac_objext \ 19976 conftest$ac_exeext conftest.$ac_ext 19977LIBS=$ac_check_lib_save_LIBS 19978fi 19979{ echo "$as_me:$LINENO: result: $ac_cv_lib_hplx_hstrerror" >&5 19980echo "${ECHO_T}$ac_cv_lib_hplx_hstrerror" >&6; } 19981if test $ac_cv_lib_hplx_hstrerror = yes; then 19982 # Add additional include an library directory. 19983 LDFLAGS="$LDFLAGS -L${HPLX_LIBRARY_PATH:-/usr/local/hplx/lib}" 19984 CFLAGS="$CFLAGS -I${HPLX_INCLUDE_PATH:-/usr/local/hplx/include}" 19985fi 19986 19987 19988 19989{ echo "$as_me:$LINENO: checking for sprintf in -lucb" >&5 19990echo $ECHO_N "checking for sprintf in -lucb... $ECHO_C" >&6; } 19991if test "${ac_cv_lib_ucb_sprintf+set}" = set; then 19992 echo $ECHO_N "(cached) $ECHO_C" >&6 19993else 19994 ac_check_lib_save_LIBS=$LIBS 19995LIBS="-lucb $LIBS" 19996cat >conftest.$ac_ext <<_ACEOF 19997/* confdefs.h. */ 19998_ACEOF 19999cat confdefs.h >>conftest.$ac_ext 20000cat >>conftest.$ac_ext <<_ACEOF 20001/* end confdefs.h. */ 20002 20003/* Override any GCC internal prototype to avoid an error. 20004 Use char because int might match the return type of a GCC 20005 builtin and then its argument prototype would still apply. */ 20006#ifdef __cplusplus 20007extern "C" 20008#endif 20009char sprintf (); 20010int 20011main () 20012{ 20013return sprintf (); 20014 ; 20015 return 0; 20016} 20017_ACEOF 20018rm -f conftest.$ac_objext conftest$ac_exeext 20019if { (ac_try="$ac_link" 20020case "(($ac_try" in 20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20022 *) ac_try_echo=$ac_try;; 20023esac 20024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20025 (eval "$ac_link") 2>conftest.er1 20026 ac_status=$? 20027 grep -v '^ *+' conftest.er1 >conftest.err 20028 rm -f conftest.er1 20029 cat conftest.err >&5 20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20031 (exit $ac_status); } && 20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20033 { (case "(($ac_try" in 20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20035 *) ac_try_echo=$ac_try;; 20036esac 20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20038 (eval "$ac_try") 2>&5 20039 ac_status=$? 20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20041 (exit $ac_status); }; } && 20042 { ac_try='test -s conftest$ac_exeext' 20043 { (case "(($ac_try" in 20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20045 *) ac_try_echo=$ac_try;; 20046esac 20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20048 (eval "$ac_try") 2>&5 20049 ac_status=$? 20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20051 (exit $ac_status); }; }; then 20052 ac_cv_lib_ucb_sprintf=yes 20053else 20054 echo "$as_me: failed program was:" >&5 20055sed 's/^/| /' conftest.$ac_ext >&5 20056 20057 ac_cv_lib_ucb_sprintf=no 20058fi 20059 20060rm -f core conftest.err conftest.$ac_objext \ 20061 conftest$ac_exeext conftest.$ac_ext 20062LIBS=$ac_check_lib_save_LIBS 20063fi 20064{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_sprintf" >&5 20065echo "${ECHO_T}$ac_cv_lib_ucb_sprintf" >&6; } 20066if test $ac_cv_lib_ucb_sprintf = yes; then 20067 cat >>confdefs.h <<_ACEOF 20068#define HAVE_LIBUCB 1 20069_ACEOF 20070 20071 LIBS="-lucb $LIBS" 20072 20073fi 20074 20075 20076{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 20077echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 20078if test "${ac_cv_lib_socket_connect+set}" = set; then 20079 echo $ECHO_N "(cached) $ECHO_C" >&6 20080else 20081 ac_check_lib_save_LIBS=$LIBS 20082LIBS="-lsocket $LIBS" 20083cat >conftest.$ac_ext <<_ACEOF 20084/* confdefs.h. */ 20085_ACEOF 20086cat confdefs.h >>conftest.$ac_ext 20087cat >>conftest.$ac_ext <<_ACEOF 20088/* end confdefs.h. */ 20089 20090/* Override any GCC internal prototype to avoid an error. 20091 Use char because int might match the return type of a GCC 20092 builtin and then its argument prototype would still apply. */ 20093#ifdef __cplusplus 20094extern "C" 20095#endif 20096char connect (); 20097int 20098main () 20099{ 20100return connect (); 20101 ; 20102 return 0; 20103} 20104_ACEOF 20105rm -f conftest.$ac_objext conftest$ac_exeext 20106if { (ac_try="$ac_link" 20107case "(($ac_try" in 20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20109 *) ac_try_echo=$ac_try;; 20110esac 20111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20112 (eval "$ac_link") 2>conftest.er1 20113 ac_status=$? 20114 grep -v '^ *+' conftest.er1 >conftest.err 20115 rm -f conftest.er1 20116 cat conftest.err >&5 20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20118 (exit $ac_status); } && 20119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20120 { (case "(($ac_try" in 20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20122 *) ac_try_echo=$ac_try;; 20123esac 20124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20125 (eval "$ac_try") 2>&5 20126 ac_status=$? 20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20128 (exit $ac_status); }; } && 20129 { ac_try='test -s conftest$ac_exeext' 20130 { (case "(($ac_try" in 20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20132 *) ac_try_echo=$ac_try;; 20133esac 20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20135 (eval "$ac_try") 2>&5 20136 ac_status=$? 20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20138 (exit $ac_status); }; }; then 20139 ac_cv_lib_socket_connect=yes 20140else 20141 echo "$as_me: failed program was:" >&5 20142sed 's/^/| /' conftest.$ac_ext >&5 20143 20144 ac_cv_lib_socket_connect=no 20145fi 20146 20147rm -f core conftest.err conftest.$ac_objext \ 20148 conftest$ac_exeext conftest.$ac_ext 20149LIBS=$ac_check_lib_save_LIBS 20150fi 20151{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 20152echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 20153if test $ac_cv_lib_socket_connect = yes; then 20154 cat >>confdefs.h <<_ACEOF 20155#define HAVE_LIBSOCKET 1 20156_ACEOF 20157 20158 LIBS="-lsocket $LIBS" 20159 20160fi 20161 20162 20163{ echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5 20164echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; } 20165if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then 20166 echo $ECHO_N "(cached) $ECHO_C" >&6 20167else 20168 ac_check_lib_save_LIBS=$LIBS 20169LIBS="-lresolv $LIBS" 20170cat >conftest.$ac_ext <<_ACEOF 20171/* confdefs.h. */ 20172_ACEOF 20173cat confdefs.h >>conftest.$ac_ext 20174cat >>conftest.$ac_ext <<_ACEOF 20175/* end confdefs.h. */ 20176 20177/* Override any GCC internal prototype to avoid an error. 20178 Use char because int might match the return type of a GCC 20179 builtin and then its argument prototype would still apply. */ 20180#ifdef __cplusplus 20181extern "C" 20182#endif 20183char gethostbyname (); 20184int 20185main () 20186{ 20187return gethostbyname (); 20188 ; 20189 return 0; 20190} 20191_ACEOF 20192rm -f conftest.$ac_objext conftest$ac_exeext 20193if { (ac_try="$ac_link" 20194case "(($ac_try" in 20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20196 *) ac_try_echo=$ac_try;; 20197esac 20198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20199 (eval "$ac_link") 2>conftest.er1 20200 ac_status=$? 20201 grep -v '^ *+' conftest.er1 >conftest.err 20202 rm -f conftest.er1 20203 cat conftest.err >&5 20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20205 (exit $ac_status); } && 20206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20207 { (case "(($ac_try" in 20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20209 *) ac_try_echo=$ac_try;; 20210esac 20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20212 (eval "$ac_try") 2>&5 20213 ac_status=$? 20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20215 (exit $ac_status); }; } && 20216 { ac_try='test -s conftest$ac_exeext' 20217 { (case "(($ac_try" in 20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20219 *) ac_try_echo=$ac_try;; 20220esac 20221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20222 (eval "$ac_try") 2>&5 20223 ac_status=$? 20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20225 (exit $ac_status); }; }; then 20226 ac_cv_lib_resolv_gethostbyname=yes 20227else 20228 echo "$as_me: failed program was:" >&5 20229sed 's/^/| /' conftest.$ac_ext >&5 20230 20231 ac_cv_lib_resolv_gethostbyname=no 20232fi 20233 20234rm -f core conftest.err conftest.$ac_objext \ 20235 conftest$ac_exeext conftest.$ac_ext 20236LIBS=$ac_check_lib_save_LIBS 20237fi 20238{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5 20239echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; } 20240if test $ac_cv_lib_resolv_gethostbyname = yes; then 20241 cat >>confdefs.h <<_ACEOF 20242#define HAVE_LIBRESOLV 1 20243_ACEOF 20244 20245 LIBS="-lresolv $LIBS" 20246 20247else 20248 20249{ echo "$as_me:$LINENO: checking for hstrerror in -lresolv" >&5 20250echo $ECHO_N "checking for hstrerror in -lresolv... $ECHO_C" >&6; } 20251if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253else 20254 ac_check_lib_save_LIBS=$LIBS 20255LIBS="-lresolv $LIBS" 20256cat >conftest.$ac_ext <<_ACEOF 20257/* confdefs.h. */ 20258_ACEOF 20259cat confdefs.h >>conftest.$ac_ext 20260cat >>conftest.$ac_ext <<_ACEOF 20261/* end confdefs.h. */ 20262 20263/* Override any GCC internal prototype to avoid an error. 20264 Use char because int might match the return type of a GCC 20265 builtin and then its argument prototype would still apply. */ 20266#ifdef __cplusplus 20267extern "C" 20268#endif 20269char hstrerror (); 20270int 20271main () 20272{ 20273return hstrerror (); 20274 ; 20275 return 0; 20276} 20277_ACEOF 20278rm -f conftest.$ac_objext conftest$ac_exeext 20279if { (ac_try="$ac_link" 20280case "(($ac_try" in 20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20282 *) ac_try_echo=$ac_try;; 20283esac 20284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20285 (eval "$ac_link") 2>conftest.er1 20286 ac_status=$? 20287 grep -v '^ *+' conftest.er1 >conftest.err 20288 rm -f conftest.er1 20289 cat conftest.err >&5 20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20291 (exit $ac_status); } && 20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20293 { (case "(($ac_try" in 20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20295 *) ac_try_echo=$ac_try;; 20296esac 20297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20298 (eval "$ac_try") 2>&5 20299 ac_status=$? 20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20301 (exit $ac_status); }; } && 20302 { ac_try='test -s conftest$ac_exeext' 20303 { (case "(($ac_try" in 20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20305 *) ac_try_echo=$ac_try;; 20306esac 20307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20308 (eval "$ac_try") 2>&5 20309 ac_status=$? 20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20311 (exit $ac_status); }; }; then 20312 ac_cv_lib_resolv_hstrerror=yes 20313else 20314 echo "$as_me: failed program was:" >&5 20315sed 's/^/| /' conftest.$ac_ext >&5 20316 20317 ac_cv_lib_resolv_hstrerror=no 20318fi 20319 20320rm -f core conftest.err conftest.$ac_objext \ 20321 conftest$ac_exeext conftest.$ac_ext 20322LIBS=$ac_check_lib_save_LIBS 20323fi 20324{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_hstrerror" >&5 20325echo "${ECHO_T}$ac_cv_lib_resolv_hstrerror" >&6; } 20326if test $ac_cv_lib_resolv_hstrerror = yes; then 20327 cat >>confdefs.h <<_ACEOF 20328#define HAVE_LIBRESOLV 1 20329_ACEOF 20330 20331 LIBS="-lresolv $LIBS" 20332 20333fi 20334 20335fi 20336 20337 20338{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20339echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 20340if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20341 echo $ECHO_N "(cached) $ECHO_C" >&6 20342else 20343 ac_check_lib_save_LIBS=$LIBS 20344LIBS="-lnsl $LIBS" 20345cat >conftest.$ac_ext <<_ACEOF 20346/* confdefs.h. */ 20347_ACEOF 20348cat confdefs.h >>conftest.$ac_ext 20349cat >>conftest.$ac_ext <<_ACEOF 20350/* end confdefs.h. */ 20351 20352/* Override any GCC internal prototype to avoid an error. 20353 Use char because int might match the return type of a GCC 20354 builtin and then its argument prototype would still apply. */ 20355#ifdef __cplusplus 20356extern "C" 20357#endif 20358char gethostbyname (); 20359int 20360main () 20361{ 20362return gethostbyname (); 20363 ; 20364 return 0; 20365} 20366_ACEOF 20367rm -f conftest.$ac_objext conftest$ac_exeext 20368if { (ac_try="$ac_link" 20369case "(($ac_try" in 20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20371 *) ac_try_echo=$ac_try;; 20372esac 20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20374 (eval "$ac_link") 2>conftest.er1 20375 ac_status=$? 20376 grep -v '^ *+' conftest.er1 >conftest.err 20377 rm -f conftest.er1 20378 cat conftest.err >&5 20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); } && 20381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20382 { (case "(($ac_try" in 20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20384 *) ac_try_echo=$ac_try;; 20385esac 20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20387 (eval "$ac_try") 2>&5 20388 ac_status=$? 20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20390 (exit $ac_status); }; } && 20391 { ac_try='test -s conftest$ac_exeext' 20392 { (case "(($ac_try" in 20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20394 *) ac_try_echo=$ac_try;; 20395esac 20396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20397 (eval "$ac_try") 2>&5 20398 ac_status=$? 20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20400 (exit $ac_status); }; }; then 20401 ac_cv_lib_nsl_gethostbyname=yes 20402else 20403 echo "$as_me: failed program was:" >&5 20404sed 's/^/| /' conftest.$ac_ext >&5 20405 20406 ac_cv_lib_nsl_gethostbyname=no 20407fi 20408 20409rm -f core conftest.err conftest.$ac_objext \ 20410 conftest$ac_exeext conftest.$ac_ext 20411LIBS=$ac_check_lib_save_LIBS 20412fi 20413{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 20414echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 20415if test $ac_cv_lib_nsl_gethostbyname = yes; then 20416 cat >>confdefs.h <<_ACEOF 20417#define HAVE_LIBNSL 1 20418_ACEOF 20419 20420 LIBS="-lnsl $LIBS" 20421 20422fi 20423 20424 20425{ echo "$as_me:$LINENO: checking for dlopen in -lc" >&5 20426echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; } 20427if test "${ac_cv_lib_c_dlopen+set}" = set; then 20428 echo $ECHO_N "(cached) $ECHO_C" >&6 20429else 20430 ac_check_lib_save_LIBS=$LIBS 20431LIBS="-lc $LIBS" 20432cat >conftest.$ac_ext <<_ACEOF 20433/* confdefs.h. */ 20434_ACEOF 20435cat confdefs.h >>conftest.$ac_ext 20436cat >>conftest.$ac_ext <<_ACEOF 20437/* end confdefs.h. */ 20438 20439/* Override any GCC internal prototype to avoid an error. 20440 Use char because int might match the return type of a GCC 20441 builtin and then its argument prototype would still apply. */ 20442#ifdef __cplusplus 20443extern "C" 20444#endif 20445char dlopen (); 20446int 20447main () 20448{ 20449return dlopen (); 20450 ; 20451 return 0; 20452} 20453_ACEOF 20454rm -f conftest.$ac_objext conftest$ac_exeext 20455if { (ac_try="$ac_link" 20456case "(($ac_try" in 20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20458 *) ac_try_echo=$ac_try;; 20459esac 20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20461 (eval "$ac_link") 2>conftest.er1 20462 ac_status=$? 20463 grep -v '^ *+' conftest.er1 >conftest.err 20464 rm -f conftest.er1 20465 cat conftest.err >&5 20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20467 (exit $ac_status); } && 20468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20469 { (case "(($ac_try" in 20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20471 *) ac_try_echo=$ac_try;; 20472esac 20473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20474 (eval "$ac_try") 2>&5 20475 ac_status=$? 20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20477 (exit $ac_status); }; } && 20478 { ac_try='test -s conftest$ac_exeext' 20479 { (case "(($ac_try" in 20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20481 *) ac_try_echo=$ac_try;; 20482esac 20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20484 (eval "$ac_try") 2>&5 20485 ac_status=$? 20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20487 (exit $ac_status); }; }; then 20488 ac_cv_lib_c_dlopen=yes 20489else 20490 echo "$as_me: failed program was:" >&5 20491sed 's/^/| /' conftest.$ac_ext >&5 20492 20493 ac_cv_lib_c_dlopen=no 20494fi 20495 20496rm -f core conftest.err conftest.$ac_objext \ 20497 conftest$ac_exeext conftest.$ac_ext 20498LIBS=$ac_check_lib_save_LIBS 20499fi 20500{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5 20501echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; } 20502if test $ac_cv_lib_c_dlopen = yes; then 20503 cat >>confdefs.h <<_ACEOF 20504#define HAVE_LIBC 1 20505_ACEOF 20506 20507 LIBS="-lc $LIBS" 20508 20509fi 20510 20511 20512{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20513echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 20514if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20515 echo $ECHO_N "(cached) $ECHO_C" >&6 20516else 20517 ac_check_lib_save_LIBS=$LIBS 20518LIBS="-ldl $LIBS" 20519cat >conftest.$ac_ext <<_ACEOF 20520/* confdefs.h. */ 20521_ACEOF 20522cat confdefs.h >>conftest.$ac_ext 20523cat >>conftest.$ac_ext <<_ACEOF 20524/* end confdefs.h. */ 20525 20526/* Override any GCC internal prototype to avoid an error. 20527 Use char because int might match the return type of a GCC 20528 builtin and then its argument prototype would still apply. */ 20529#ifdef __cplusplus 20530extern "C" 20531#endif 20532char dlopen (); 20533int 20534main () 20535{ 20536return dlopen (); 20537 ; 20538 return 0; 20539} 20540_ACEOF 20541rm -f conftest.$ac_objext conftest$ac_exeext 20542if { (ac_try="$ac_link" 20543case "(($ac_try" in 20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20545 *) ac_try_echo=$ac_try;; 20546esac 20547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20548 (eval "$ac_link") 2>conftest.er1 20549 ac_status=$? 20550 grep -v '^ *+' conftest.er1 >conftest.err 20551 rm -f conftest.er1 20552 cat conftest.err >&5 20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20554 (exit $ac_status); } && 20555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20556 { (case "(($ac_try" in 20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20558 *) ac_try_echo=$ac_try;; 20559esac 20560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20561 (eval "$ac_try") 2>&5 20562 ac_status=$? 20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20564 (exit $ac_status); }; } && 20565 { ac_try='test -s conftest$ac_exeext' 20566 { (case "(($ac_try" in 20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20568 *) ac_try_echo=$ac_try;; 20569esac 20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20571 (eval "$ac_try") 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); }; }; then 20575 ac_cv_lib_dl_dlopen=yes 20576else 20577 echo "$as_me: failed program was:" >&5 20578sed 's/^/| /' conftest.$ac_ext >&5 20579 20580 ac_cv_lib_dl_dlopen=no 20581fi 20582 20583rm -f core conftest.err conftest.$ac_objext \ 20584 conftest$ac_exeext conftest.$ac_ext 20585LIBS=$ac_check_lib_save_LIBS 20586fi 20587{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20588echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 20589if test $ac_cv_lib_dl_dlopen = yes; then 20590 cat >>confdefs.h <<_ACEOF 20591#define HAVE_LIBDL 1 20592_ACEOF 20593 20594 LIBS="-ldl $LIBS" 20595 20596fi 20597 20598 20599{ echo "$as_me:$LINENO: checking for vasprintf in -liberty" >&5 20600echo $ECHO_N "checking for vasprintf in -liberty... $ECHO_C" >&6; } 20601if test "${ac_cv_lib_iberty_vasprintf+set}" = set; then 20602 echo $ECHO_N "(cached) $ECHO_C" >&6 20603else 20604 ac_check_lib_save_LIBS=$LIBS 20605LIBS="-liberty $LIBS" 20606cat >conftest.$ac_ext <<_ACEOF 20607/* confdefs.h. */ 20608_ACEOF 20609cat confdefs.h >>conftest.$ac_ext 20610cat >>conftest.$ac_ext <<_ACEOF 20611/* end confdefs.h. */ 20612 20613/* Override any GCC internal prototype to avoid an error. 20614 Use char because int might match the return type of a GCC 20615 builtin and then its argument prototype would still apply. */ 20616#ifdef __cplusplus 20617extern "C" 20618#endif 20619char vasprintf (); 20620int 20621main () 20622{ 20623return vasprintf (); 20624 ; 20625 return 0; 20626} 20627_ACEOF 20628rm -f conftest.$ac_objext conftest$ac_exeext 20629if { (ac_try="$ac_link" 20630case "(($ac_try" in 20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20632 *) ac_try_echo=$ac_try;; 20633esac 20634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20635 (eval "$ac_link") 2>conftest.er1 20636 ac_status=$? 20637 grep -v '^ *+' conftest.er1 >conftest.err 20638 rm -f conftest.er1 20639 cat conftest.err >&5 20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20641 (exit $ac_status); } && 20642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20643 { (case "(($ac_try" in 20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20645 *) ac_try_echo=$ac_try;; 20646esac 20647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20648 (eval "$ac_try") 2>&5 20649 ac_status=$? 20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20651 (exit $ac_status); }; } && 20652 { ac_try='test -s conftest$ac_exeext' 20653 { (case "(($ac_try" in 20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20655 *) ac_try_echo=$ac_try;; 20656esac 20657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20658 (eval "$ac_try") 2>&5 20659 ac_status=$? 20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20661 (exit $ac_status); }; }; then 20662 ac_cv_lib_iberty_vasprintf=yes 20663else 20664 echo "$as_me: failed program was:" >&5 20665sed 's/^/| /' conftest.$ac_ext >&5 20666 20667 ac_cv_lib_iberty_vasprintf=no 20668fi 20669 20670rm -f core conftest.err conftest.$ac_objext \ 20671 conftest$ac_exeext conftest.$ac_ext 20672LIBS=$ac_check_lib_save_LIBS 20673fi 20674{ echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_vasprintf" >&5 20675echo "${ECHO_T}$ac_cv_lib_iberty_vasprintf" >&6; } 20676if test $ac_cv_lib_iberty_vasprintf = yes; then 20677 cat >>confdefs.h <<_ACEOF 20678#define HAVE_LIBIBERTY 1 20679_ACEOF 20680 20681 LIBS="-liberty $LIBS" 20682 20683fi 20684 20685 20686# ------------------] GETOPT_LONG [ 20687 20688 20689 20690 # clean out junk possibly left behind by a previous configuration 20691 rm -f include/getopt.h 20692 # Check for getopt_long support 20693 20694for ac_header in getopt.h 20695do 20696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20698 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20701 echo $ECHO_N "(cached) $ECHO_C" >&6 20702fi 20703ac_res=`eval echo '${'$as_ac_Header'}'` 20704 { echo "$as_me:$LINENO: result: $ac_res" >&5 20705echo "${ECHO_T}$ac_res" >&6; } 20706else 20707 # Is the header compilable? 20708{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20710cat >conftest.$ac_ext <<_ACEOF 20711/* confdefs.h. */ 20712_ACEOF 20713cat confdefs.h >>conftest.$ac_ext 20714cat >>conftest.$ac_ext <<_ACEOF 20715/* end confdefs.h. */ 20716$ac_includes_default 20717#include <$ac_header> 20718_ACEOF 20719rm -f conftest.$ac_objext 20720if { (ac_try="$ac_compile" 20721case "(($ac_try" in 20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20723 *) ac_try_echo=$ac_try;; 20724esac 20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20726 (eval "$ac_compile") 2>conftest.er1 20727 ac_status=$? 20728 grep -v '^ *+' conftest.er1 >conftest.err 20729 rm -f conftest.er1 20730 cat conftest.err >&5 20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20732 (exit $ac_status); } && 20733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20734 { (case "(($ac_try" in 20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20736 *) ac_try_echo=$ac_try;; 20737esac 20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20739 (eval "$ac_try") 2>&5 20740 ac_status=$? 20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20742 (exit $ac_status); }; } && 20743 { ac_try='test -s conftest.$ac_objext' 20744 { (case "(($ac_try" in 20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20746 *) ac_try_echo=$ac_try;; 20747esac 20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20749 (eval "$ac_try") 2>&5 20750 ac_status=$? 20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20752 (exit $ac_status); }; }; then 20753 ac_header_compiler=yes 20754else 20755 echo "$as_me: failed program was:" >&5 20756sed 's/^/| /' conftest.$ac_ext >&5 20757 20758 ac_header_compiler=no 20759fi 20760 20761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20762{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20763echo "${ECHO_T}$ac_header_compiler" >&6; } 20764 20765# Is the header present? 20766{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20768cat >conftest.$ac_ext <<_ACEOF 20769/* confdefs.h. */ 20770_ACEOF 20771cat confdefs.h >>conftest.$ac_ext 20772cat >>conftest.$ac_ext <<_ACEOF 20773/* end confdefs.h. */ 20774#include <$ac_header> 20775_ACEOF 20776if { (ac_try="$ac_cpp conftest.$ac_ext" 20777case "(($ac_try" in 20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20779 *) ac_try_echo=$ac_try;; 20780esac 20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20783 ac_status=$? 20784 grep -v '^ *+' conftest.er1 >conftest.err 20785 rm -f conftest.er1 20786 cat conftest.err >&5 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); } >/dev/null; then 20789 if test -s conftest.err; then 20790 ac_cpp_err=$ac_c_preproc_warn_flag 20791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20792 else 20793 ac_cpp_err= 20794 fi 20795else 20796 ac_cpp_err=yes 20797fi 20798if test -z "$ac_cpp_err"; then 20799 ac_header_preproc=yes 20800else 20801 echo "$as_me: failed program was:" >&5 20802sed 's/^/| /' conftest.$ac_ext >&5 20803 20804 ac_header_preproc=no 20805fi 20806 20807rm -f conftest.err conftest.$ac_ext 20808{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20809echo "${ECHO_T}$ac_header_preproc" >&6; } 20810 20811# So? What about this header? 20812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20813 yes:no: ) 20814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20818 ac_header_preproc=yes 20819 ;; 20820 no:yes:* ) 20821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20833 ( cat <<\_ASBOX 20834## ----------------------------------------- ## 20835## Report this to updatedd@philipp-benner.de ## 20836## ----------------------------------------- ## 20837_ASBOX 20838 ) | sed "s/^/$as_me: WARNING: /" >&2 20839 ;; 20840esac 20841{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20844 echo $ECHO_N "(cached) $ECHO_C" >&6 20845else 20846 eval "$as_ac_Header=\$ac_header_preproc" 20847fi 20848ac_res=`eval echo '${'$as_ac_Header'}'` 20849 { echo "$as_me:$LINENO: result: $ac_res" >&5 20850echo "${ECHO_T}$ac_res" >&6; } 20851 20852fi 20853if test `eval echo '${'$as_ac_Header'}'` = yes; then 20854 cat >>confdefs.h <<_ACEOF 20855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20856_ACEOF 20857 20858fi 20859 20860done 20861 20862 20863for ac_func in getopt_long 20864do 20865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20866{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20869 echo $ECHO_N "(cached) $ECHO_C" >&6 20870else 20871 cat >conftest.$ac_ext <<_ACEOF 20872/* confdefs.h. */ 20873_ACEOF 20874cat confdefs.h >>conftest.$ac_ext 20875cat >>conftest.$ac_ext <<_ACEOF 20876/* end confdefs.h. */ 20877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20879#define $ac_func innocuous_$ac_func 20880 20881/* System header to define __stub macros and hopefully few prototypes, 20882 which can conflict with char $ac_func (); below. 20883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20884 <limits.h> exists even on freestanding compilers. */ 20885 20886#ifdef __STDC__ 20887# include <limits.h> 20888#else 20889# include <assert.h> 20890#endif 20891 20892#undef $ac_func 20893 20894/* Override any GCC internal prototype to avoid an error. 20895 Use char because int might match the return type of a GCC 20896 builtin and then its argument prototype would still apply. */ 20897#ifdef __cplusplus 20898extern "C" 20899#endif 20900char $ac_func (); 20901/* The GNU C library defines this for functions which it implements 20902 to always fail with ENOSYS. Some functions are actually named 20903 something starting with __ and the normal name is an alias. */ 20904#if defined __stub_$ac_func || defined __stub___$ac_func 20905choke me 20906#endif 20907 20908int 20909main () 20910{ 20911return $ac_func (); 20912 ; 20913 return 0; 20914} 20915_ACEOF 20916rm -f conftest.$ac_objext conftest$ac_exeext 20917if { (ac_try="$ac_link" 20918case "(($ac_try" in 20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20920 *) ac_try_echo=$ac_try;; 20921esac 20922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20923 (eval "$ac_link") 2>conftest.er1 20924 ac_status=$? 20925 grep -v '^ *+' conftest.er1 >conftest.err 20926 rm -f conftest.er1 20927 cat conftest.err >&5 20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20929 (exit $ac_status); } && 20930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20931 { (case "(($ac_try" in 20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20933 *) ac_try_echo=$ac_try;; 20934esac 20935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20936 (eval "$ac_try") 2>&5 20937 ac_status=$? 20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20939 (exit $ac_status); }; } && 20940 { ac_try='test -s conftest$ac_exeext' 20941 { (case "(($ac_try" in 20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20943 *) ac_try_echo=$ac_try;; 20944esac 20945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20946 (eval "$ac_try") 2>&5 20947 ac_status=$? 20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20949 (exit $ac_status); }; }; then 20950 eval "$as_ac_var=yes" 20951else 20952 echo "$as_me: failed program was:" >&5 20953sed 's/^/| /' conftest.$ac_ext >&5 20954 20955 eval "$as_ac_var=no" 20956fi 20957 20958rm -f core conftest.err conftest.$ac_objext \ 20959 conftest$ac_exeext conftest.$ac_ext 20960fi 20961ac_res=`eval echo '${'$as_ac_var'}'` 20962 { echo "$as_me:$LINENO: result: $ac_res" >&5 20963echo "${ECHO_T}$ac_res" >&6; } 20964if test `eval echo '${'$as_ac_var'}'` = yes; then 20965 cat >>confdefs.h <<_ACEOF 20966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20967_ACEOF 20968 20969else 20970 # FreeBSD has a gnugetopt library for this 20971 { echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 20972echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; } 20973if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then 20974 echo $ECHO_N "(cached) $ECHO_C" >&6 20975else 20976 ac_check_lib_save_LIBS=$LIBS 20977LIBS="-lgnugetopt $LIBS" 20978cat >conftest.$ac_ext <<_ACEOF 20979/* confdefs.h. */ 20980_ACEOF 20981cat confdefs.h >>conftest.$ac_ext 20982cat >>conftest.$ac_ext <<_ACEOF 20983/* end confdefs.h. */ 20984 20985/* Override any GCC internal prototype to avoid an error. 20986 Use char because int might match the return type of a GCC 20987 builtin and then its argument prototype would still apply. */ 20988#ifdef __cplusplus 20989extern "C" 20990#endif 20991char getopt_long (); 20992int 20993main () 20994{ 20995return getopt_long (); 20996 ; 20997 return 0; 20998} 20999_ACEOF 21000rm -f conftest.$ac_objext conftest$ac_exeext 21001if { (ac_try="$ac_link" 21002case "(($ac_try" in 21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21004 *) ac_try_echo=$ac_try;; 21005esac 21006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21007 (eval "$ac_link") 2>conftest.er1 21008 ac_status=$? 21009 grep -v '^ *+' conftest.er1 >conftest.err 21010 rm -f conftest.er1 21011 cat conftest.err >&5 21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21013 (exit $ac_status); } && 21014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21015 { (case "(($ac_try" in 21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21017 *) ac_try_echo=$ac_try;; 21018esac 21019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21020 (eval "$ac_try") 2>&5 21021 ac_status=$? 21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21023 (exit $ac_status); }; } && 21024 { ac_try='test -s conftest$ac_exeext' 21025 { (case "(($ac_try" in 21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21027 *) ac_try_echo=$ac_try;; 21028esac 21029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21030 (eval "$ac_try") 2>&5 21031 ac_status=$? 21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21033 (exit $ac_status); }; }; then 21034 ac_cv_lib_gnugetopt_getopt_long=yes 21035else 21036 echo "$as_me: failed program was:" >&5 21037sed 's/^/| /' conftest.$ac_ext >&5 21038 21039 ac_cv_lib_gnugetopt_getopt_long=no 21040fi 21041 21042rm -f core conftest.err conftest.$ac_objext \ 21043 conftest$ac_exeext conftest.$ac_ext 21044LIBS=$ac_check_lib_save_LIBS 21045fi 21046{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 21047echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; } 21048if test $ac_cv_lib_gnugetopt_getopt_long = yes; then 21049 cat >>confdefs.h <<\_ACEOF 21050#define HAVE_GETOPT_LONG 1 21051_ACEOF 21052 21053else 21054 # use the GNU replacement 21055 case " $LIBOBJS " in 21056 *" getopt.$ac_objext "* ) ;; 21057 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 21058 ;; 21059esac 21060 21061 case " $LIBOBJS " in 21062 *" getopt1.$ac_objext "* ) ;; 21063 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" 21064 ;; 21065esac 21066 21067 ac_config_links="$ac_config_links include/getopt.h:include/gnugetopt.h" 21068 21069fi 21070 21071fi 21072done 21073 21074 21075# ------------------] DEFINES [ 21076# 21077 21078 21079 21080 21081 21082cat >>confdefs.h <<_ACEOF 21083#define TARGET "$target" 21084_ACEOF 21085 21086 21087cat >>confdefs.h <<_ACEOF 21088#define TARGET_CPU "$target_cpu" 21089_ACEOF 21090 21091 21092cat >>confdefs.h <<_ACEOF 21093#define TARGET_OS "$target_os" 21094_ACEOF 21095 21096 21097cat >>confdefs.h <<_ACEOF 21098#define TARGET_VENDOR "$target_vendor" 21099_ACEOF 21100 21101 21102 21103cat >>confdefs.h <<_ACEOF 21104#define BUILD "$build" 21105_ACEOF 21106 21107 21108cat >>confdefs.h <<_ACEOF 21109#define BUILD_CPU "$build_cpu" 21110_ACEOF 21111 21112 21113cat >>confdefs.h <<_ACEOF 21114#define BUILD_OS "$build_os" 21115_ACEOF 21116 21117 21118cat >>confdefs.h <<_ACEOF 21119#define BUILD_VENDOR "$build_vendor" 21120_ACEOF 21121 21122 21123 21124cat >>confdefs.h <<_ACEOF 21125#define HOST "$host" 21126_ACEOF 21127 21128 21129cat >>confdefs.h <<_ACEOF 21130#define HOST_CPU "$host_cpu" 21131_ACEOF 21132 21133 21134cat >>confdefs.h <<_ACEOF 21135#define HOST_OS "$host_os" 21136_ACEOF 21137 21138 21139cat >>confdefs.h <<_ACEOF 21140#define HOST_VENDOR "$host_vendor" 21141_ACEOF 21142 21143 21144# ------------------] HEADERS [ 21145# 21146 21147HEADERS_TO_CHECK="stdarg.h dlfcn.h dirent.h netinet/in.h sys/ioctl.h 21148 arpa/inet.h netdb.h syslog.h signal.h" 21149 21150 21151for ac_header in $HEADERS_TO_CHECK 21152do 21153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21155 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21158 echo $ECHO_N "(cached) $ECHO_C" >&6 21159fi 21160ac_res=`eval echo '${'$as_ac_Header'}'` 21161 { echo "$as_me:$LINENO: result: $ac_res" >&5 21162echo "${ECHO_T}$ac_res" >&6; } 21163else 21164 # Is the header compilable? 21165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21167cat >conftest.$ac_ext <<_ACEOF 21168/* confdefs.h. */ 21169_ACEOF 21170cat confdefs.h >>conftest.$ac_ext 21171cat >>conftest.$ac_ext <<_ACEOF 21172/* end confdefs.h. */ 21173$ac_includes_default 21174#include <$ac_header> 21175_ACEOF 21176rm -f conftest.$ac_objext 21177if { (ac_try="$ac_compile" 21178case "(($ac_try" in 21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21180 *) ac_try_echo=$ac_try;; 21181esac 21182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21183 (eval "$ac_compile") 2>conftest.er1 21184 ac_status=$? 21185 grep -v '^ *+' conftest.er1 >conftest.err 21186 rm -f conftest.er1 21187 cat conftest.err >&5 21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21189 (exit $ac_status); } && 21190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21191 { (case "(($ac_try" in 21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21193 *) ac_try_echo=$ac_try;; 21194esac 21195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21196 (eval "$ac_try") 2>&5 21197 ac_status=$? 21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21199 (exit $ac_status); }; } && 21200 { ac_try='test -s conftest.$ac_objext' 21201 { (case "(($ac_try" in 21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21203 *) ac_try_echo=$ac_try;; 21204esac 21205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21206 (eval "$ac_try") 2>&5 21207 ac_status=$? 21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21209 (exit $ac_status); }; }; then 21210 ac_header_compiler=yes 21211else 21212 echo "$as_me: failed program was:" >&5 21213sed 's/^/| /' conftest.$ac_ext >&5 21214 21215 ac_header_compiler=no 21216fi 21217 21218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21220echo "${ECHO_T}$ac_header_compiler" >&6; } 21221 21222# Is the header present? 21223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21224echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header> 21232_ACEOF 21233if { (ac_try="$ac_cpp conftest.$ac_ext" 21234case "(($ac_try" in 21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21236 *) ac_try_echo=$ac_try;; 21237esac 21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21240 ac_status=$? 21241 grep -v '^ *+' conftest.er1 >conftest.err 21242 rm -f conftest.er1 21243 cat conftest.err >&5 21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21245 (exit $ac_status); } >/dev/null; then 21246 if test -s conftest.err; then 21247 ac_cpp_err=$ac_c_preproc_warn_flag 21248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21249 else 21250 ac_cpp_err= 21251 fi 21252else 21253 ac_cpp_err=yes 21254fi 21255if test -z "$ac_cpp_err"; then 21256 ac_header_preproc=yes 21257else 21258 echo "$as_me: failed program was:" >&5 21259sed 's/^/| /' conftest.$ac_ext >&5 21260 21261 ac_header_preproc=no 21262fi 21263 21264rm -f conftest.err conftest.$ac_ext 21265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21266echo "${ECHO_T}$ac_header_preproc" >&6; } 21267 21268# So? What about this header? 21269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21270 yes:no: ) 21271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21275 ac_header_preproc=yes 21276 ;; 21277 no:yes:* ) 21278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21290 ( cat <<\_ASBOX 21291## ----------------------------------------- ## 21292## Report this to updatedd@philipp-benner.de ## 21293## ----------------------------------------- ## 21294_ASBOX 21295 ) | sed "s/^/$as_me: WARNING: /" >&2 21296 ;; 21297esac 21298{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21301 echo $ECHO_N "(cached) $ECHO_C" >&6 21302else 21303 eval "$as_ac_Header=\$ac_header_preproc" 21304fi 21305ac_res=`eval echo '${'$as_ac_Header'}'` 21306 { echo "$as_me:$LINENO: result: $ac_res" >&5 21307echo "${ECHO_T}$ac_res" >&6; } 21308 21309fi 21310if test `eval echo '${'$as_ac_Header'}'` = yes; then 21311 cat >>confdefs.h <<_ACEOF 21312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21313_ACEOF 21314 21315else 21316 { { echo "$as_me:$LINENO: error: this header is required" >&5 21317echo "$as_me: error: this header is required" >&2;} 21318 { (exit 1); exit 1; }; } 21319fi 21320 21321done 21322 21323 21324{ echo "$as_me:$LINENO: checking for net/if.h" >&5 21325echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } 21326if test "${ac_cv_header_net_if_h+set}" = set; then 21327 echo $ECHO_N "(cached) $ECHO_C" >&6 21328else 21329 cat >conftest.$ac_ext <<_ACEOF 21330/* confdefs.h. */ 21331_ACEOF 21332cat confdefs.h >>conftest.$ac_ext 21333cat >>conftest.$ac_ext <<_ACEOF 21334/* end confdefs.h. */ 21335#include <sys/types.h> 21336 #include <sys/socket.h> 21337 21338#include <net/if.h> 21339_ACEOF 21340rm -f conftest.$ac_objext 21341if { (ac_try="$ac_compile" 21342case "(($ac_try" in 21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21344 *) ac_try_echo=$ac_try;; 21345esac 21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21347 (eval "$ac_compile") 2>conftest.er1 21348 ac_status=$? 21349 grep -v '^ *+' conftest.er1 >conftest.err 21350 rm -f conftest.er1 21351 cat conftest.err >&5 21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21353 (exit $ac_status); } && 21354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21355 { (case "(($ac_try" in 21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21357 *) ac_try_echo=$ac_try;; 21358esac 21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21360 (eval "$ac_try") 2>&5 21361 ac_status=$? 21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21363 (exit $ac_status); }; } && 21364 { ac_try='test -s conftest.$ac_objext' 21365 { (case "(($ac_try" in 21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21367 *) ac_try_echo=$ac_try;; 21368esac 21369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21370 (eval "$ac_try") 2>&5 21371 ac_status=$? 21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21373 (exit $ac_status); }; }; then 21374 ac_cv_header_net_if_h=yes 21375else 21376 echo "$as_me: failed program was:" >&5 21377sed 's/^/| /' conftest.$ac_ext >&5 21378 21379 ac_cv_header_net_if_h=no 21380fi 21381 21382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21383fi 21384{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 21385echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } 21386if test $ac_cv_header_net_if_h = yes; then 21387 : 21388else 21389 { { echo "$as_me:$LINENO: error: this header is required" >&5 21390echo "$as_me: error: this header is required" >&2;} 21391 { (exit 1); exit 1; }; } 21392fi 21393 21394 21395 21396if test "${ac_cv_header_error_h+set}" = set; then 21397 { echo "$as_me:$LINENO: checking for error.h" >&5 21398echo $ECHO_N "checking for error.h... $ECHO_C" >&6; } 21399if test "${ac_cv_header_error_h+set}" = set; then 21400 echo $ECHO_N "(cached) $ECHO_C" >&6 21401fi 21402{ echo "$as_me:$LINENO: result: $ac_cv_header_error_h" >&5 21403echo "${ECHO_T}$ac_cv_header_error_h" >&6; } 21404else 21405 # Is the header compilable? 21406{ echo "$as_me:$LINENO: checking error.h usability" >&5 21407echo $ECHO_N "checking error.h usability... $ECHO_C" >&6; } 21408cat >conftest.$ac_ext <<_ACEOF 21409/* confdefs.h. */ 21410_ACEOF 21411cat confdefs.h >>conftest.$ac_ext 21412cat >>conftest.$ac_ext <<_ACEOF 21413/* end confdefs.h. */ 21414$ac_includes_default 21415#include <error.h> 21416_ACEOF 21417rm -f conftest.$ac_objext 21418if { (ac_try="$ac_compile" 21419case "(($ac_try" in 21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21421 *) ac_try_echo=$ac_try;; 21422esac 21423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21424 (eval "$ac_compile") 2>conftest.er1 21425 ac_status=$? 21426 grep -v '^ *+' conftest.er1 >conftest.err 21427 rm -f conftest.er1 21428 cat conftest.err >&5 21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21430 (exit $ac_status); } && 21431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21432 { (case "(($ac_try" in 21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21434 *) ac_try_echo=$ac_try;; 21435esac 21436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21437 (eval "$ac_try") 2>&5 21438 ac_status=$? 21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21440 (exit $ac_status); }; } && 21441 { ac_try='test -s conftest.$ac_objext' 21442 { (case "(($ac_try" in 21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21444 *) ac_try_echo=$ac_try;; 21445esac 21446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21447 (eval "$ac_try") 2>&5 21448 ac_status=$? 21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21450 (exit $ac_status); }; }; then 21451 ac_header_compiler=yes 21452else 21453 echo "$as_me: failed program was:" >&5 21454sed 's/^/| /' conftest.$ac_ext >&5 21455 21456 ac_header_compiler=no 21457fi 21458 21459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21461echo "${ECHO_T}$ac_header_compiler" >&6; } 21462 21463# Is the header present? 21464{ echo "$as_me:$LINENO: checking error.h presence" >&5 21465echo $ECHO_N "checking error.h presence... $ECHO_C" >&6; } 21466cat >conftest.$ac_ext <<_ACEOF 21467/* confdefs.h. */ 21468_ACEOF 21469cat confdefs.h >>conftest.$ac_ext 21470cat >>conftest.$ac_ext <<_ACEOF 21471/* end confdefs.h. */ 21472#include <error.h> 21473_ACEOF 21474if { (ac_try="$ac_cpp conftest.$ac_ext" 21475case "(($ac_try" in 21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21477 *) ac_try_echo=$ac_try;; 21478esac 21479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21481 ac_status=$? 21482 grep -v '^ *+' conftest.er1 >conftest.err 21483 rm -f conftest.er1 21484 cat conftest.err >&5 21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21486 (exit $ac_status); } >/dev/null; then 21487 if test -s conftest.err; then 21488 ac_cpp_err=$ac_c_preproc_warn_flag 21489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21490 else 21491 ac_cpp_err= 21492 fi 21493else 21494 ac_cpp_err=yes 21495fi 21496if test -z "$ac_cpp_err"; then 21497 ac_header_preproc=yes 21498else 21499 echo "$as_me: failed program was:" >&5 21500sed 's/^/| /' conftest.$ac_ext >&5 21501 21502 ac_header_preproc=no 21503fi 21504 21505rm -f conftest.err conftest.$ac_ext 21506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21507echo "${ECHO_T}$ac_header_preproc" >&6; } 21508 21509# So? What about this header? 21510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21511 yes:no: ) 21512 { echo "$as_me:$LINENO: WARNING: error.h: accepted by the compiler, rejected by the preprocessor!" >&5 21513echo "$as_me: WARNING: error.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21514 { echo "$as_me:$LINENO: WARNING: error.h: proceeding with the compiler's result" >&5 21515echo "$as_me: WARNING: error.h: proceeding with the compiler's result" >&2;} 21516 ac_header_preproc=yes 21517 ;; 21518 no:yes:* ) 21519 { echo "$as_me:$LINENO: WARNING: error.h: present but cannot be compiled" >&5 21520echo "$as_me: WARNING: error.h: present but cannot be compiled" >&2;} 21521 { echo "$as_me:$LINENO: WARNING: error.h: check for missing prerequisite headers?" >&5 21522echo "$as_me: WARNING: error.h: check for missing prerequisite headers?" >&2;} 21523 { echo "$as_me:$LINENO: WARNING: error.h: see the Autoconf documentation" >&5 21524echo "$as_me: WARNING: error.h: see the Autoconf documentation" >&2;} 21525 { echo "$as_me:$LINENO: WARNING: error.h: section \"Present But Cannot Be Compiled\"" >&5 21526echo "$as_me: WARNING: error.h: section \"Present But Cannot Be Compiled\"" >&2;} 21527 { echo "$as_me:$LINENO: WARNING: error.h: proceeding with the preprocessor's result" >&5 21528echo "$as_me: WARNING: error.h: proceeding with the preprocessor's result" >&2;} 21529 { echo "$as_me:$LINENO: WARNING: error.h: in the future, the compiler will take precedence" >&5 21530echo "$as_me: WARNING: error.h: in the future, the compiler will take precedence" >&2;} 21531 ( cat <<\_ASBOX 21532## ----------------------------------------- ## 21533## Report this to updatedd@philipp-benner.de ## 21534## ----------------------------------------- ## 21535_ASBOX 21536 ) | sed "s/^/$as_me: WARNING: /" >&2 21537 ;; 21538esac 21539{ echo "$as_me:$LINENO: checking for error.h" >&5 21540echo $ECHO_N "checking for error.h... $ECHO_C" >&6; } 21541if test "${ac_cv_header_error_h+set}" = set; then 21542 echo $ECHO_N "(cached) $ECHO_C" >&6 21543else 21544 ac_cv_header_error_h=$ac_header_preproc 21545fi 21546{ echo "$as_me:$LINENO: result: $ac_cv_header_error_h" >&5 21547echo "${ECHO_T}$ac_cv_header_error_h" >&6; } 21548 21549fi 21550if test $ac_cv_header_error_h = yes; then 21551 21552cat >>confdefs.h <<\_ACEOF 21553#define HAVE_ERROR_H 21554_ACEOF 21555 21556fi 21557 21558 21559 21560# ------------------] FUNCTIONS [ 21561# 21562 21563 21564for ac_func in dprintf 21565do 21566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21567{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21569if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21570 echo $ECHO_N "(cached) $ECHO_C" >&6 21571else 21572 cat >conftest.$ac_ext <<_ACEOF 21573/* confdefs.h. */ 21574_ACEOF 21575cat confdefs.h >>conftest.$ac_ext 21576cat >>conftest.$ac_ext <<_ACEOF 21577/* end confdefs.h. */ 21578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21580#define $ac_func innocuous_$ac_func 21581 21582/* System header to define __stub macros and hopefully few prototypes, 21583 which can conflict with char $ac_func (); below. 21584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21585 <limits.h> exists even on freestanding compilers. */ 21586 21587#ifdef __STDC__ 21588# include <limits.h> 21589#else 21590# include <assert.h> 21591#endif 21592 21593#undef $ac_func 21594 21595/* Override any GCC internal prototype to avoid an error. 21596 Use char because int might match the return type of a GCC 21597 builtin and then its argument prototype would still apply. */ 21598#ifdef __cplusplus 21599extern "C" 21600#endif 21601char $ac_func (); 21602/* The GNU C library defines this for functions which it implements 21603 to always fail with ENOSYS. Some functions are actually named 21604 something starting with __ and the normal name is an alias. */ 21605#if defined __stub_$ac_func || defined __stub___$ac_func 21606choke me 21607#endif 21608 21609int 21610main () 21611{ 21612return $ac_func (); 21613 ; 21614 return 0; 21615} 21616_ACEOF 21617rm -f conftest.$ac_objext conftest$ac_exeext 21618if { (ac_try="$ac_link" 21619case "(($ac_try" in 21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21621 *) ac_try_echo=$ac_try;; 21622esac 21623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21624 (eval "$ac_link") 2>conftest.er1 21625 ac_status=$? 21626 grep -v '^ *+' conftest.er1 >conftest.err 21627 rm -f conftest.er1 21628 cat conftest.err >&5 21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21630 (exit $ac_status); } && 21631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21632 { (case "(($ac_try" in 21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21634 *) ac_try_echo=$ac_try;; 21635esac 21636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21637 (eval "$ac_try") 2>&5 21638 ac_status=$? 21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21640 (exit $ac_status); }; } && 21641 { ac_try='test -s conftest$ac_exeext' 21642 { (case "(($ac_try" in 21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21644 *) ac_try_echo=$ac_try;; 21645esac 21646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21647 (eval "$ac_try") 2>&5 21648 ac_status=$? 21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21650 (exit $ac_status); }; }; then 21651 eval "$as_ac_var=yes" 21652else 21653 echo "$as_me: failed program was:" >&5 21654sed 's/^/| /' conftest.$ac_ext >&5 21655 21656 eval "$as_ac_var=no" 21657fi 21658 21659rm -f core conftest.err conftest.$ac_objext \ 21660 conftest$ac_exeext conftest.$ac_ext 21661fi 21662ac_res=`eval echo '${'$as_ac_var'}'` 21663 { echo "$as_me:$LINENO: result: $ac_res" >&5 21664echo "${ECHO_T}$ac_res" >&6; } 21665if test `eval echo '${'$as_ac_var'}'` = yes; then 21666 cat >>confdefs.h <<_ACEOF 21667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21668_ACEOF 21669 21670fi 21671done 21672 21673 21674for ac_func in vsyslog 21675do 21676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21677{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21680 echo $ECHO_N "(cached) $ECHO_C" >&6 21681else 21682 cat >conftest.$ac_ext <<_ACEOF 21683/* confdefs.h. */ 21684_ACEOF 21685cat confdefs.h >>conftest.$ac_ext 21686cat >>conftest.$ac_ext <<_ACEOF 21687/* end confdefs.h. */ 21688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21690#define $ac_func innocuous_$ac_func 21691 21692/* System header to define __stub macros and hopefully few prototypes, 21693 which can conflict with char $ac_func (); below. 21694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21695 <limits.h> exists even on freestanding compilers. */ 21696 21697#ifdef __STDC__ 21698# include <limits.h> 21699#else 21700# include <assert.h> 21701#endif 21702 21703#undef $ac_func 21704 21705/* Override any GCC internal prototype to avoid an error. 21706 Use char because int might match the return type of a GCC 21707 builtin and then its argument prototype would still apply. */ 21708#ifdef __cplusplus 21709extern "C" 21710#endif 21711char $ac_func (); 21712/* The GNU C library defines this for functions which it implements 21713 to always fail with ENOSYS. Some functions are actually named 21714 something starting with __ and the normal name is an alias. */ 21715#if defined __stub_$ac_func || defined __stub___$ac_func 21716choke me 21717#endif 21718 21719int 21720main () 21721{ 21722return $ac_func (); 21723 ; 21724 return 0; 21725} 21726_ACEOF 21727rm -f conftest.$ac_objext conftest$ac_exeext 21728if { (ac_try="$ac_link" 21729case "(($ac_try" in 21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21731 *) ac_try_echo=$ac_try;; 21732esac 21733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21734 (eval "$ac_link") 2>conftest.er1 21735 ac_status=$? 21736 grep -v '^ *+' conftest.er1 >conftest.err 21737 rm -f conftest.er1 21738 cat conftest.err >&5 21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21740 (exit $ac_status); } && 21741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21742 { (case "(($ac_try" in 21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21744 *) ac_try_echo=$ac_try;; 21745esac 21746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21747 (eval "$ac_try") 2>&5 21748 ac_status=$? 21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21750 (exit $ac_status); }; } && 21751 { ac_try='test -s conftest$ac_exeext' 21752 { (case "(($ac_try" in 21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21754 *) ac_try_echo=$ac_try;; 21755esac 21756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21757 (eval "$ac_try") 2>&5 21758 ac_status=$? 21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21760 (exit $ac_status); }; }; then 21761 eval "$as_ac_var=yes" 21762else 21763 echo "$as_me: failed program was:" >&5 21764sed 's/^/| /' conftest.$ac_ext >&5 21765 21766 eval "$as_ac_var=no" 21767fi 21768 21769rm -f core conftest.err conftest.$ac_objext \ 21770 conftest$ac_exeext conftest.$ac_ext 21771fi 21772ac_res=`eval echo '${'$as_ac_var'}'` 21773 { echo "$as_me:$LINENO: result: $ac_res" >&5 21774echo "${ECHO_T}$ac_res" >&6; } 21775if test `eval echo '${'$as_ac_var'}'` = yes; then 21776 cat >>confdefs.h <<_ACEOF 21777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21778_ACEOF 21779 21780fi 21781done 21782 21783 21784# ------------------] SUBDIR CONFIGURATION [ 21785# 21786 21787#AC_NEW_SUBDIR([doc], [DOC], ["no"]) 21788 21789# ------------------] PERL [ 21790# 21791 21792# Extract the first word of "perl", so it can be a program name with args. 21793set dummy perl; ac_word=$2 21794{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21796if test "${ac_cv_path_PERL+set}" = set; then 21797 echo $ECHO_N "(cached) $ECHO_C" >&6 21798else 21799 case $PERL in 21800 [\\/]* | ?:[\\/]*) 21801 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21802 ;; 21803 *) 21804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21805for as_dir in $PATH 21806do 21807 IFS=$as_save_IFS 21808 test -z "$as_dir" && as_dir=. 21809 for ac_exec_ext in '' $ac_executable_extensions; do 21810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21811 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 21812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21813 break 2 21814 fi 21815done 21816done 21817IFS=$as_save_IFS 21818 21819 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=""no"" 21820 ;; 21821esac 21822fi 21823PERL=$ac_cv_path_PERL 21824if test -n "$PERL"; then 21825 { echo "$as_me:$LINENO: result: $PERL" >&5 21826echo "${ECHO_T}$PERL" >&6; } 21827else 21828 { echo "$as_me:$LINENO: result: no" >&5 21829echo "${ECHO_T}no" >&6; } 21830fi 21831 21832 21833 21834 21835if test "$PERL" != no; then 21836 COND_PERL_TRUE= 21837 COND_PERL_FALSE='#' 21838else 21839 COND_PERL_TRUE='#' 21840 COND_PERL_FALSE= 21841fi 21842 21843 21844# ------------------] AC_OUTPUT [ 21845# 21846 21847ac_config_headers="$ac_config_headers config.h:config.h.in" 21848 21849ac_config_files="$ac_config_files Makefile version.h libupdatedd-exception/Makefile include/Makefile src/Makefile src/plugins/Makefile scripts/Makefile Documentation/Makefile updatedd-wrapper/Makefile" 21850 21851 21852ac_config_files="$ac_config_files updatedd-wrapper/create-config" 21853 21854ac_config_files="$ac_config_files updatedd-wrapper/updatedd-wrapper" 21855 21856ac_config_files="$ac_config_files scripts/ipserv.pl" 21857 21858ac_config_files="$ac_config_files scripts/interface.pl" 21859 21860 21861cat >confcache <<\_ACEOF 21862# This file is a shell script that caches the results of configure 21863# tests run on this system so they can be shared between configure 21864# scripts and configure runs, see configure's option --config-cache. 21865# It is not useful on other systems. If it contains results you don't 21866# want to keep, you may remove or edit it. 21867# 21868# config.status only pays attention to the cache file if you give it 21869# the --recheck option to rerun configure. 21870# 21871# `ac_cv_env_foo' variables (set or unset) will be overridden when 21872# loading this file, other *unset* `ac_cv_foo' will be assigned the 21873# following values. 21874 21875_ACEOF 21876 21877# The following way of writing the cache mishandles newlines in values, 21878# but we know of no workaround that is simple, portable, and efficient. 21879# So, we kill variables containing newlines. 21880# Ultrix sh set writes to stderr and can't be redirected directly, 21881# and sets the high bit in the cache file unless we assign to the vars. 21882( 21883 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21884 eval ac_val=\$$ac_var 21885 case $ac_val in #( 21886 *${as_nl}*) 21887 case $ac_var in #( 21888 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21889echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21890 esac 21891 case $ac_var in #( 21892 _ | IFS | as_nl) ;; #( 21893 *) $as_unset $ac_var ;; 21894 esac ;; 21895 esac 21896 done 21897 21898 (set) 2>&1 | 21899 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21900 *${as_nl}ac_space=\ *) 21901 # `set' does not quote correctly, so add quotes (double-quote 21902 # substitution turns \\\\ into \\, and sed turns \\ into \). 21903 sed -n \ 21904 "s/'/'\\\\''/g; 21905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21906 ;; #( 21907 *) 21908 # `set' quotes correctly as required by POSIX, so do not add quotes. 21909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21910 ;; 21911 esac | 21912 sort 21913) | 21914 sed ' 21915 /^ac_cv_env_/b end 21916 t clear 21917 :clear 21918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21919 t end 21920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21921 :end' >>confcache 21922if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21923 if test -w "$cache_file"; then 21924 test "x$cache_file" != "x/dev/null" && 21925 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21926echo "$as_me: updating cache $cache_file" >&6;} 21927 cat confcache >$cache_file 21928 else 21929 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21930echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21931 fi 21932fi 21933rm -f confcache 21934 21935test "x$prefix" = xNONE && prefix=$ac_default_prefix 21936# Let make expand exec_prefix. 21937test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21938 21939DEFS=-DHAVE_CONFIG_H 21940 21941ac_libobjs= 21942ac_ltlibobjs= 21943for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21944 # 1. Remove the extension, and $U if already installed. 21945 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21946 ac_i=`echo "$ac_i" | sed "$ac_script"` 21947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21948 # will be set to the directory where LIBOBJS objects are built. 21949 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21950 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21951done 21952LIBOBJS=$ac_libobjs 21953 21954LTLIBOBJS=$ac_ltlibobjs 21955 21956 21957if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21958 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21959Usually this means the macro was only invoked conditionally." >&5 21960echo "$as_me: error: conditional \"AMDEP\" was never defined. 21961Usually this means the macro was only invoked conditionally." >&2;} 21962 { (exit 1); exit 1; }; } 21963fi 21964if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21965 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21966Usually this means the macro was only invoked conditionally." >&5 21967echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21968Usually this means the macro was only invoked conditionally." >&2;} 21969 { (exit 1); exit 1; }; } 21970fi 21971if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21972 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21973Usually this means the macro was only invoked conditionally." >&5 21974echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21975Usually this means the macro was only invoked conditionally." >&2;} 21976 { (exit 1); exit 1; }; } 21977fi 21978if test -z "${COND_PERL_TRUE}" && test -z "${COND_PERL_FALSE}"; then 21979 { { echo "$as_me:$LINENO: error: conditional \"COND_PERL\" was never defined. 21980Usually this means the macro was only invoked conditionally." >&5 21981echo "$as_me: error: conditional \"COND_PERL\" was never defined. 21982Usually this means the macro was only invoked conditionally." >&2;} 21983 { (exit 1); exit 1; }; } 21984fi 21985 21986: ${CONFIG_STATUS=./config.status} 21987ac_clean_files_save=$ac_clean_files 21988ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21989{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21990echo "$as_me: creating $CONFIG_STATUS" >&6;} 21991cat >$CONFIG_STATUS <<_ACEOF 21992#! $SHELL 21993# Generated by $as_me. 21994# Run this file to recreate the current configuration. 21995# Compiler output produced by configure, useful for debugging 21996# configure, is in config.log if it exists. 21997 21998debug=false 21999ac_cs_recheck=false 22000ac_cs_silent=false 22001SHELL=\${CONFIG_SHELL-$SHELL} 22002_ACEOF 22003 22004cat >>$CONFIG_STATUS <<\_ACEOF 22005## --------------------- ## 22006## M4sh Initialization. ## 22007## --------------------- ## 22008 22009# Be Bourne compatible 22010if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22011 emulate sh 22012 NULLCMD=: 22013 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22014 # is contrary to our usage. Disable this feature. 22015 alias -g '${1+"$@"}'='"$@"' 22016 setopt NO_GLOB_SUBST 22017else 22018 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22019fi 22020BIN_SH=xpg4; export BIN_SH # for Tru64 22021DUALCASE=1; export DUALCASE # for MKS sh 22022 22023 22024# PATH needs CR 22025# Avoid depending upon Character Ranges. 22026as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22027as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22028as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22029as_cr_digits='0123456789' 22030as_cr_alnum=$as_cr_Letters$as_cr_digits 22031 22032# The user is always right. 22033if test "${PATH_SEPARATOR+set}" != set; then 22034 echo "#! /bin/sh" >conf$$.sh 22035 echo "exit 0" >>conf$$.sh 22036 chmod +x conf$$.sh 22037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22038 PATH_SEPARATOR=';' 22039 else 22040 PATH_SEPARATOR=: 22041 fi 22042 rm -f conf$$.sh 22043fi 22044 22045# Support unset when possible. 22046if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22047 as_unset=unset 22048else 22049 as_unset=false 22050fi 22051 22052 22053# IFS 22054# We need space, tab and new line, in precisely that order. Quoting is 22055# there to prevent editors from complaining about space-tab. 22056# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22057# splitting by setting IFS to empty value.) 22058as_nl=' 22059' 22060IFS=" "" $as_nl" 22061 22062# Find who we are. Look in the path if we contain no directory separator. 22063case $0 in 22064 *[\\/]* ) as_myself=$0 ;; 22065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22066for as_dir in $PATH 22067do 22068 IFS=$as_save_IFS 22069 test -z "$as_dir" && as_dir=. 22070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22071done 22072IFS=$as_save_IFS 22073 22074 ;; 22075esac 22076# We did not find ourselves, most probably we were run as `sh COMMAND' 22077# in which case we are not to be found in the path. 22078if test "x$as_myself" = x; then 22079 as_myself=$0 22080fi 22081if test ! -f "$as_myself"; then 22082 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22083 { (exit 1); exit 1; } 22084fi 22085 22086# Work around bugs in pre-3.0 UWIN ksh. 22087for as_var in ENV MAIL MAILPATH 22088do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22089done 22090PS1='$ ' 22091PS2='> ' 22092PS4='+ ' 22093 22094# NLS nuisances. 22095for as_var in \ 22096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22098 LC_TELEPHONE LC_TIME 22099do 22100 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22101 eval $as_var=C; export $as_var 22102 else 22103 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22104 fi 22105done 22106 22107# Required to use basename. 22108if expr a : '\(a\)' >/dev/null 2>&1 && 22109 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22110 as_expr=expr 22111else 22112 as_expr=false 22113fi 22114 22115if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22116 as_basename=basename 22117else 22118 as_basename=false 22119fi 22120 22121 22122# Name of the executable. 22123as_me=`$as_basename -- "$0" || 22124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22125 X"$0" : 'X\(//\)$' \| \ 22126 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22127echo X/"$0" | 22128 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22129 s//\1/ 22130 q 22131 } 22132 /^X\/\(\/\/\)$/{ 22133 s//\1/ 22134 q 22135 } 22136 /^X\/\(\/\).*/{ 22137 s//\1/ 22138 q 22139 } 22140 s/.*/./; q'` 22141 22142# CDPATH. 22143$as_unset CDPATH 22144 22145 22146 22147 as_lineno_1=$LINENO 22148 as_lineno_2=$LINENO 22149 test "x$as_lineno_1" != "x$as_lineno_2" && 22150 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22151 22152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22153 # uniformly replaced by the line number. The first 'sed' inserts a 22154 # line-number line after each line using $LINENO; the second 'sed' 22155 # does the real work. The second script uses 'N' to pair each 22156 # line-number line with the line containing $LINENO, and appends 22157 # trailing '-' during substitution so that $LINENO is not a special 22158 # case at line end. 22159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22160 # scripts with optimization help from Paolo Bonzini. Blame Lee 22161 # E. McMahon (1931-1989) for sed's syntax. :-) 22162 sed -n ' 22163 p 22164 /[$]LINENO/= 22165 ' <$as_myself | 22166 sed ' 22167 s/[$]LINENO.*/&-/ 22168 t lineno 22169 b 22170 :lineno 22171 N 22172 :loop 22173 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22174 t loop 22175 s/-\n.*// 22176 ' >$as_me.lineno && 22177 chmod +x "$as_me.lineno" || 22178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22179 { (exit 1); exit 1; }; } 22180 22181 # Don't try to exec as it changes $[0], causing all sort of problems 22182 # (the dirname of $[0] is not the place where we might find the 22183 # original and so on. Autoconf is especially sensitive to this). 22184 . "./$as_me.lineno" 22185 # Exit status is that of the last command. 22186 exit 22187} 22188 22189 22190if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22191 as_dirname=dirname 22192else 22193 as_dirname=false 22194fi 22195 22196ECHO_C= ECHO_N= ECHO_T= 22197case `echo -n x` in 22198-n*) 22199 case `echo 'x\c'` in 22200 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22201 *) ECHO_C='\c';; 22202 esac;; 22203*) 22204 ECHO_N='-n';; 22205esac 22206 22207if expr a : '\(a\)' >/dev/null 2>&1 && 22208 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22209 as_expr=expr 22210else 22211 as_expr=false 22212fi 22213 22214rm -f conf$$ conf$$.exe conf$$.file 22215if test -d conf$$.dir; then 22216 rm -f conf$$.dir/conf$$.file 22217else 22218 rm -f conf$$.dir 22219 mkdir conf$$.dir 22220fi 22221echo >conf$$.file 22222if ln -s conf$$.file conf$$ 2>/dev/null; then 22223 as_ln_s='ln -s' 22224 # ... but there are two gotchas: 22225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22227 # In both cases, we have to default to `cp -p'. 22228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22229 as_ln_s='cp -p' 22230elif ln conf$$.file conf$$ 2>/dev/null; then 22231 as_ln_s=ln 22232else 22233 as_ln_s='cp -p' 22234fi 22235rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22236rmdir conf$$.dir 2>/dev/null 22237 22238if mkdir -p . 2>/dev/null; then 22239 as_mkdir_p=: 22240else 22241 test -d ./-p && rmdir ./-p 22242 as_mkdir_p=false 22243fi 22244 22245# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22246# systems may use methods other than mode bits to determine executability. 22247cat >conf$$.file <<_ASEOF 22248#! /bin/sh 22249exit 0 22250_ASEOF 22251chmod +x conf$$.file 22252if test -x conf$$.file >/dev/null 2>&1; then 22253 as_executable_p="test -x" 22254else 22255 as_executable_p=: 22256fi 22257rm -f conf$$.file 22258 22259# Sed expression to map a string onto a valid CPP name. 22260as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22261 22262# Sed expression to map a string onto a valid variable name. 22263as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22264 22265 22266exec 6>&1 22267 22268# Save the log message, to keep $[0] and so on meaningful, and to 22269# report actual input values of CONFIG_FILES etc. instead of their 22270# values after options handling. 22271ac_log=" 22272This file was extended by UpdateDD $as_me 2.6, which was 22273generated by GNU Autoconf 2.60. Invocation command line was 22274 22275 CONFIG_FILES = $CONFIG_FILES 22276 CONFIG_HEADERS = $CONFIG_HEADERS 22277 CONFIG_LINKS = $CONFIG_LINKS 22278 CONFIG_COMMANDS = $CONFIG_COMMANDS 22279 $ $0 $@ 22280 22281on `(hostname || uname -n) 2>/dev/null | sed 1q` 22282" 22283 22284_ACEOF 22285 22286cat >>$CONFIG_STATUS <<_ACEOF 22287# Files that config.status was made for. 22288config_files="$ac_config_files" 22289config_headers="$ac_config_headers" 22290config_links="$ac_config_links" 22291config_commands="$ac_config_commands" 22292 22293_ACEOF 22294 22295cat >>$CONFIG_STATUS <<\_ACEOF 22296ac_cs_usage="\ 22297\`$as_me' instantiates files from templates according to the 22298current configuration. 22299 22300Usage: $0 [OPTIONS] [FILE]... 22301 22302 -h, --help print this help, then exit 22303 -V, --version print version number, then exit 22304 -q, --quiet do not print progress messages 22305 -d, --debug don't remove temporary files 22306 --recheck update $as_me by reconfiguring in the same conditions 22307 --file=FILE[:TEMPLATE] 22308 instantiate the configuration file FILE 22309 --header=FILE[:TEMPLATE] 22310 instantiate the configuration header FILE 22311 22312Configuration files: 22313$config_files 22314 22315Configuration headers: 22316$config_headers 22317 22318Configuration links: 22319$config_links 22320 22321Configuration commands: 22322$config_commands 22323 22324Report bugs to <bug-autoconf@gnu.org>." 22325 22326_ACEOF 22327cat >>$CONFIG_STATUS <<_ACEOF 22328ac_cs_version="\\ 22329UpdateDD config.status 2.6 22330configured by $0, generated by GNU Autoconf 2.60, 22331 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22332 22333Copyright (C) 2006 Free Software Foundation, Inc. 22334This config.status script is free software; the Free Software Foundation 22335gives unlimited permission to copy, distribute and modify it." 22336 22337ac_pwd='$ac_pwd' 22338srcdir='$srcdir' 22339INSTALL='$INSTALL' 22340_ACEOF 22341 22342cat >>$CONFIG_STATUS <<\_ACEOF 22343# If no file are specified by the user, then we need to provide default 22344# value. By we need to know if files were specified by the user. 22345ac_need_defaults=: 22346while test $# != 0 22347do 22348 case $1 in 22349 --*=*) 22350 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22352 ac_shift=: 22353 ;; 22354 *) 22355 ac_option=$1 22356 ac_optarg=$2 22357 ac_shift=shift 22358 ;; 22359 esac 22360 22361 case $ac_option in 22362 # Handling of the options. 22363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22364 ac_cs_recheck=: ;; 22365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22366 echo "$ac_cs_version"; exit ;; 22367 --debug | --debu | --deb | --de | --d | -d ) 22368 debug=: ;; 22369 --file | --fil | --fi | --f ) 22370 $ac_shift 22371 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22372 ac_need_defaults=false;; 22373 --header | --heade | --head | --hea ) 22374 $ac_shift 22375 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22376 ac_need_defaults=false;; 22377 --he | --h) 22378 # Conflict between --help and --header 22379 { echo "$as_me: error: ambiguous option: $1 22380Try \`$0 --help' for more information." >&2 22381 { (exit 1); exit 1; }; };; 22382 --help | --hel | -h ) 22383 echo "$ac_cs_usage"; exit ;; 22384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22385 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22386 ac_cs_silent=: ;; 22387 22388 # This is an error. 22389 -*) { echo "$as_me: error: unrecognized option: $1 22390Try \`$0 --help' for more information." >&2 22391 { (exit 1); exit 1; }; } ;; 22392 22393 *) ac_config_targets="$ac_config_targets $1" 22394 ac_need_defaults=false ;; 22395 22396 esac 22397 shift 22398done 22399 22400ac_configure_extra_args= 22401 22402if $ac_cs_silent; then 22403 exec 6>/dev/null 22404 ac_configure_extra_args="$ac_configure_extra_args --silent" 22405fi 22406 22407_ACEOF 22408cat >>$CONFIG_STATUS <<_ACEOF 22409if \$ac_cs_recheck; then 22410 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22411 CONFIG_SHELL=$SHELL 22412 export CONFIG_SHELL 22413 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22414fi 22415 22416_ACEOF 22417cat >>$CONFIG_STATUS <<\_ACEOF 22418exec 5>>config.log 22419{ 22420 echo 22421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22422## Running $as_me. ## 22423_ASBOX 22424 echo "$ac_log" 22425} >&5 22426 22427_ACEOF 22428cat >>$CONFIG_STATUS <<_ACEOF 22429# 22430# INIT-COMMANDS 22431# 22432AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22433 22434_ACEOF 22435 22436cat >>$CONFIG_STATUS <<\_ACEOF 22437 22438# Handling of arguments. 22439for ac_config_target in $ac_config_targets 22440do 22441 case $ac_config_target in 22442 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22443 "include/getopt.h") CONFIG_LINKS="$CONFIG_LINKS include/getopt.h:include/gnugetopt.h" ;; 22444 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 22445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22446 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;; 22447 "libupdatedd-exception/Makefile") CONFIG_FILES="$CONFIG_FILES libupdatedd-exception/Makefile" ;; 22448 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22449 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22450 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; 22451 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 22452 "Documentation/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;; 22453 "updatedd-wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES updatedd-wrapper/Makefile" ;; 22454 "updatedd-wrapper/create-config") CONFIG_FILES="$CONFIG_FILES updatedd-wrapper/create-config" ;; 22455 "updatedd-wrapper/updatedd-wrapper") CONFIG_FILES="$CONFIG_FILES updatedd-wrapper/updatedd-wrapper" ;; 22456 "scripts/ipserv.pl") CONFIG_FILES="$CONFIG_FILES scripts/ipserv.pl" ;; 22457 "scripts/interface.pl") CONFIG_FILES="$CONFIG_FILES scripts/interface.pl" ;; 22458 22459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22460echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22461 { (exit 1); exit 1; }; };; 22462 esac 22463done 22464 22465 22466# If the user did not use the arguments to specify the items to instantiate, 22467# then the envvar interface is used. Set only those that are not. 22468# We use the long form for the default assignment because of an extremely 22469# bizarre bug on SunOS 4.1.3. 22470if $ac_need_defaults; then 22471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22473 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 22474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22475fi 22476 22477# Have a temporary directory for convenience. Make it in the build tree 22478# simply because there is no reason against having it here, and in addition, 22479# creating and moving files from /tmp can sometimes cause problems. 22480# Hook for its removal unless debugging. 22481# Note that there is a small window in which the directory will not be cleaned: 22482# after its creation but before its name has been assigned to `$tmp'. 22483$debug || 22484{ 22485 tmp= 22486 trap 'exit_status=$? 22487 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22488' 0 22489 trap '{ (exit 1); exit 1; }' 1 2 13 15 22490} 22491# Create a (secure) tmp directory for tmp files. 22492 22493{ 22494 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22495 test -n "$tmp" && test -d "$tmp" 22496} || 22497{ 22498 tmp=./conf$$-$RANDOM 22499 (umask 077 && mkdir "$tmp") 22500} || 22501{ 22502 echo "$me: cannot create a temporary directory in ." >&2 22503 { (exit 1); exit 1; } 22504} 22505 22506# 22507# Set up the sed scripts for CONFIG_FILES section. 22508# 22509 22510# No need to generate the scripts if there are no CONFIG_FILES. 22511# This happens for instance when ./config.status config.h 22512if test -n "$CONFIG_FILES"; then 22513 22514_ACEOF 22515 22516 22517 22518ac_delim='%!_!# ' 22519for ac_last_try in false false false false false :; do 22520 cat >conf$$subs.sed <<_ACEOF 22521SHELL!$SHELL$ac_delim 22522PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22523PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22524PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22525PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22526PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22527PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22528exec_prefix!$exec_prefix$ac_delim 22529prefix!$prefix$ac_delim 22530program_transform_name!$program_transform_name$ac_delim 22531bindir!$bindir$ac_delim 22532sbindir!$sbindir$ac_delim 22533libexecdir!$libexecdir$ac_delim 22534datarootdir!$datarootdir$ac_delim 22535datadir!$datadir$ac_delim 22536sysconfdir!$sysconfdir$ac_delim 22537sharedstatedir!$sharedstatedir$ac_delim 22538localstatedir!$localstatedir$ac_delim 22539includedir!$includedir$ac_delim 22540oldincludedir!$oldincludedir$ac_delim 22541docdir!$docdir$ac_delim 22542infodir!$infodir$ac_delim 22543htmldir!$htmldir$ac_delim 22544dvidir!$dvidir$ac_delim 22545pdfdir!$pdfdir$ac_delim 22546psdir!$psdir$ac_delim 22547libdir!$libdir$ac_delim 22548localedir!$localedir$ac_delim 22549mandir!$mandir$ac_delim 22550DEFS!$DEFS$ac_delim 22551ECHO_C!$ECHO_C$ac_delim 22552ECHO_N!$ECHO_N$ac_delim 22553ECHO_T!$ECHO_T$ac_delim 22554LIBS!$LIBS$ac_delim 22555build_alias!$build_alias$ac_delim 22556host_alias!$host_alias$ac_delim 22557target_alias!$target_alias$ac_delim 22558build!$build$ac_delim 22559build_cpu!$build_cpu$ac_delim 22560build_vendor!$build_vendor$ac_delim 22561build_os!$build_os$ac_delim 22562host!$host$ac_delim 22563host_cpu!$host_cpu$ac_delim 22564host_vendor!$host_vendor$ac_delim 22565host_os!$host_os$ac_delim 22566target!$target$ac_delim 22567target_cpu!$target_cpu$ac_delim 22568target_vendor!$target_vendor$ac_delim 22569target_os!$target_os$ac_delim 22570INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22571INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22572INSTALL_DATA!$INSTALL_DATA$ac_delim 22573CYGPATH_W!$CYGPATH_W$ac_delim 22574PACKAGE!$PACKAGE$ac_delim 22575VERSION!$VERSION$ac_delim 22576ACLOCAL!$ACLOCAL$ac_delim 22577AUTOCONF!$AUTOCONF$ac_delim 22578AUTOMAKE!$AUTOMAKE$ac_delim 22579AUTOHEADER!$AUTOHEADER$ac_delim 22580MAKEINFO!$MAKEINFO$ac_delim 22581install_sh!$install_sh$ac_delim 22582STRIP!$STRIP$ac_delim 22583INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22584mkdir_p!$mkdir_p$ac_delim 22585AWK!$AWK$ac_delim 22586SET_MAKE!$SET_MAKE$ac_delim 22587am__leading_dot!$am__leading_dot$ac_delim 22588AMTAR!$AMTAR$ac_delim 22589am__tar!$am__tar$ac_delim 22590am__untar!$am__untar$ac_delim 22591CC!$CC$ac_delim 22592CFLAGS!$CFLAGS$ac_delim 22593LDFLAGS!$LDFLAGS$ac_delim 22594CPPFLAGS!$CPPFLAGS$ac_delim 22595ac_ct_CC!$ac_ct_CC$ac_delim 22596EXEEXT!$EXEEXT$ac_delim 22597OBJEXT!$OBJEXT$ac_delim 22598DEPDIR!$DEPDIR$ac_delim 22599am__include!$am__include$ac_delim 22600am__quote!$am__quote$ac_delim 22601AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22602AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22603AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22604CCDEPMODE!$CCDEPMODE$ac_delim 22605am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22606am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22607GREP!$GREP$ac_delim 22608EGREP!$EGREP$ac_delim 22609LN_S!$LN_S$ac_delim 22610ECHO!$ECHO$ac_delim 22611AR!$AR$ac_delim 22612RANLIB!$RANLIB$ac_delim 22613CPP!$CPP$ac_delim 22614CXX!$CXX$ac_delim 22615CXXFLAGS!$CXXFLAGS$ac_delim 22616ac_ct_CXX!$ac_ct_CXX$ac_delim 22617CXXDEPMODE!$CXXDEPMODE$ac_delim 22618_ACEOF 22619 22620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22621 break 22622 elif $ac_last_try; then 22623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22624echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22625 { (exit 1); exit 1; }; } 22626 else 22627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22628 fi 22629done 22630 22631ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22632if test -n "$ac_eof"; then 22633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22634 ac_eof=`expr $ac_eof + 1` 22635fi 22636 22637cat >>$CONFIG_STATUS <<_ACEOF 22638cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22639/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22640_ACEOF 22641sed ' 22642s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22643s/^/s,@/; s/!/@,|#_!!_#|/ 22644:n 22645t n 22646s/'"$ac_delim"'$/,g/; t 22647s/$/\\/; p 22648N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22649' >>$CONFIG_STATUS <conf$$subs.sed 22650rm -f conf$$subs.sed 22651cat >>$CONFIG_STATUS <<_ACEOF 22652CEOF$ac_eof 22653_ACEOF 22654 22655 22656ac_delim='%!_!# ' 22657for ac_last_try in false false false false false :; do 22658 cat >conf$$subs.sed <<_ACEOF 22659am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22660am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22661CXXCPP!$CXXCPP$ac_delim 22662F77!$F77$ac_delim 22663FFLAGS!$FFLAGS$ac_delim 22664ac_ct_F77!$ac_ct_F77$ac_delim 22665LIBTOOL!$LIBTOOL$ac_delim 22666PACKAGE_SUMMARY!$PACKAGE_SUMMARY$ac_delim 22667PACKAGE_URL!$PACKAGE_URL$ac_delim 22668PACKAGE_LICENSE!$PACKAGE_LICENSE$ac_delim 22669PACKAGE_DESCRIPTION!$PACKAGE_DESCRIPTION$ac_delim 22670HPLX_LIBRARY_PATH!$HPLX_LIBRARY_PATH$ac_delim 22671HPLX_INCLUDE_PATH!$HPLX_INCLUDE_PATH$ac_delim 22672LIBOBJS!$LIBOBJS$ac_delim 22673PERL!$PERL$ac_delim 22674COND_PERL_TRUE!$COND_PERL_TRUE$ac_delim 22675COND_PERL_FALSE!$COND_PERL_FALSE$ac_delim 22676LTLIBOBJS!$LTLIBOBJS$ac_delim 22677_ACEOF 22678 22679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then 22680 break 22681 elif $ac_last_try; then 22682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22683echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22684 { (exit 1); exit 1; }; } 22685 else 22686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22687 fi 22688done 22689 22690ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22691if test -n "$ac_eof"; then 22692 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22693 ac_eof=`expr $ac_eof + 1` 22694fi 22695 22696cat >>$CONFIG_STATUS <<_ACEOF 22697cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22698/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22699_ACEOF 22700sed ' 22701s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22702s/^/s,@/; s/!/@,|#_!!_#|/ 22703:n 22704t n 22705s/'"$ac_delim"'$/,g/; t 22706s/$/\\/; p 22707N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22708' >>$CONFIG_STATUS <conf$$subs.sed 22709rm -f conf$$subs.sed 22710cat >>$CONFIG_STATUS <<_ACEOF 22711:end 22712s/|#_!!_#|//g 22713CEOF$ac_eof 22714_ACEOF 22715 22716 22717# VPATH may cause trouble with some makes, so we remove $(srcdir), 22718# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22719# trailing colons and then remove the whole line if VPATH becomes empty 22720# (actually we leave an empty line to preserve line numbers). 22721if test "x$srcdir" = x.; then 22722 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22723s/:*\$(srcdir):*/:/ 22724s/:*\${srcdir}:*/:/ 22725s/:*@srcdir@:*/:/ 22726s/^\([^=]*=[ ]*\):*/\1/ 22727s/:*$// 22728s/^[^=]*=[ ]*$// 22729}' 22730fi 22731 22732cat >>$CONFIG_STATUS <<\_ACEOF 22733fi # test -n "$CONFIG_FILES" 22734 22735 22736for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS 22737do 22738 case $ac_tag in 22739 :[FHLC]) ac_mode=$ac_tag; continue;; 22740 esac 22741 case $ac_mode$ac_tag in 22742 :[FHL]*:*);; 22743 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22744echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22745 { (exit 1); exit 1; }; };; 22746 :[FH]-) ac_tag=-:-;; 22747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22748 esac 22749 ac_save_IFS=$IFS 22750 IFS=: 22751 set x $ac_tag 22752 IFS=$ac_save_IFS 22753 shift 22754 ac_file=$1 22755 shift 22756 22757 case $ac_mode in 22758 :L) ac_source=$1;; 22759 :[FH]) 22760 ac_file_inputs= 22761 for ac_f 22762 do 22763 case $ac_f in 22764 -) ac_f="$tmp/stdin";; 22765 *) # Look for the file first in the build tree, then in the source tree 22766 # (if the path is not absolute). The absolute path cannot be DOS-style, 22767 # because $ac_f cannot contain `:'. 22768 test -f "$ac_f" || 22769 case $ac_f in 22770 [\\/$]*) false;; 22771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22772 esac || 22773 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22774echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22775 { (exit 1); exit 1; }; };; 22776 esac 22777 ac_file_inputs="$ac_file_inputs $ac_f" 22778 done 22779 22780 # Let's still pretend it is `configure' which instantiates (i.e., don't 22781 # use $as_me), people would be surprised to read: 22782 # /* config.h. Generated by config.status. */ 22783 configure_input="Generated from "`IFS=: 22784 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22785 if test x"$ac_file" != x-; then 22786 configure_input="$ac_file. $configure_input" 22787 { echo "$as_me:$LINENO: creating $ac_file" >&5 22788echo "$as_me: creating $ac_file" >&6;} 22789 fi 22790 22791 case $ac_tag in 22792 *:-:* | *:-) cat >"$tmp/stdin";; 22793 esac 22794 ;; 22795 esac 22796 22797 ac_dir=`$as_dirname -- "$ac_file" || 22798$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22799 X"$ac_file" : 'X\(//\)[^/]' \| \ 22800 X"$ac_file" : 'X\(//\)$' \| \ 22801 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22802echo X"$ac_file" | 22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22804 s//\1/ 22805 q 22806 } 22807 /^X\(\/\/\)[^/].*/{ 22808 s//\1/ 22809 q 22810 } 22811 /^X\(\/\/\)$/{ 22812 s//\1/ 22813 q 22814 } 22815 /^X\(\/\).*/{ 22816 s//\1/ 22817 q 22818 } 22819 s/.*/./; q'` 22820 { as_dir="$ac_dir" 22821 case $as_dir in #( 22822 -*) as_dir=./$as_dir;; 22823 esac 22824 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22825 as_dirs= 22826 while :; do 22827 case $as_dir in #( 22828 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22829 *) as_qdir=$as_dir;; 22830 esac 22831 as_dirs="'$as_qdir' $as_dirs" 22832 as_dir=`$as_dirname -- "$as_dir" || 22833$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22834 X"$as_dir" : 'X\(//\)[^/]' \| \ 22835 X"$as_dir" : 'X\(//\)$' \| \ 22836 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22837echo X"$as_dir" | 22838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22839 s//\1/ 22840 q 22841 } 22842 /^X\(\/\/\)[^/].*/{ 22843 s//\1/ 22844 q 22845 } 22846 /^X\(\/\/\)$/{ 22847 s//\1/ 22848 q 22849 } 22850 /^X\(\/\).*/{ 22851 s//\1/ 22852 q 22853 } 22854 s/.*/./; q'` 22855 test -d "$as_dir" && break 22856 done 22857 test -z "$as_dirs" || eval "mkdir $as_dirs" 22858 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22859echo "$as_me: error: cannot create directory $as_dir" >&2;} 22860 { (exit 1); exit 1; }; }; } 22861 ac_builddir=. 22862 22863case "$ac_dir" in 22864.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22865*) 22866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22867 # A ".." for each directory in $ac_dir_suffix. 22868 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22869 case $ac_top_builddir_sub in 22870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22872 esac ;; 22873esac 22874ac_abs_top_builddir=$ac_pwd 22875ac_abs_builddir=$ac_pwd$ac_dir_suffix 22876# for backward compatibility: 22877ac_top_builddir=$ac_top_build_prefix 22878 22879case $srcdir in 22880 .) # We are building in place. 22881 ac_srcdir=. 22882 ac_top_srcdir=$ac_top_builddir_sub 22883 ac_abs_top_srcdir=$ac_pwd ;; 22884 [\\/]* | ?:[\\/]* ) # Absolute name. 22885 ac_srcdir=$srcdir$ac_dir_suffix; 22886 ac_top_srcdir=$srcdir 22887 ac_abs_top_srcdir=$srcdir ;; 22888 *) # Relative name. 22889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22890 ac_top_srcdir=$ac_top_build_prefix$srcdir 22891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22892esac 22893ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22894 22895 22896 case $ac_mode in 22897 :F) 22898 # 22899 # CONFIG_FILE 22900 # 22901 22902 case $INSTALL in 22903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22905 esac 22906_ACEOF 22907 22908cat >>$CONFIG_STATUS <<\_ACEOF 22909# If the template does not know about datarootdir, expand it. 22910# FIXME: This hack should be removed a few years after 2.60. 22911ac_datarootdir_hack=; ac_datarootdir_seen= 22912 22913case `sed -n '/datarootdir/ { 22914 p 22915 q 22916} 22917/@datadir@/p 22918/@docdir@/p 22919/@infodir@/p 22920/@localedir@/p 22921/@mandir@/p 22922' $ac_file_inputs` in 22923*datarootdir*) ac_datarootdir_seen=yes;; 22924*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22925 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22926echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22927_ACEOF 22928cat >>$CONFIG_STATUS <<_ACEOF 22929 ac_datarootdir_hack=' 22930 s&@datadir@&$datadir&g 22931 s&@docdir@&$docdir&g 22932 s&@infodir@&$infodir&g 22933 s&@localedir@&$localedir&g 22934 s&@mandir@&$mandir&g 22935 s&\\\${datarootdir}&$datarootdir&g' ;; 22936esac 22937_ACEOF 22938 22939# Neutralize VPATH when `$srcdir' = `.'. 22940# Shell code in configure.ac might set extrasub. 22941# FIXME: do we really want to maintain this feature? 22942cat >>$CONFIG_STATUS <<_ACEOF 22943 sed "$ac_vpsub 22944$extrasub 22945_ACEOF 22946cat >>$CONFIG_STATUS <<\_ACEOF 22947:t 22948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22949s&@configure_input@&$configure_input&;t t 22950s&@top_builddir@&$ac_top_builddir_sub&;t t 22951s&@srcdir@&$ac_srcdir&;t t 22952s&@abs_srcdir@&$ac_abs_srcdir&;t t 22953s&@top_srcdir@&$ac_top_srcdir&;t t 22954s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22955s&@builddir@&$ac_builddir&;t t 22956s&@abs_builddir@&$ac_abs_builddir&;t t 22957s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22958s&@INSTALL@&$ac_INSTALL&;t t 22959$ac_datarootdir_hack 22960" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22961 22962test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22963 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22964 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22965 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22966which seems to be undefined. Please make sure it is defined." >&5 22967echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22968which seems to be undefined. Please make sure it is defined." >&2;} 22969 22970 rm -f "$tmp/stdin" 22971 case $ac_file in 22972 -) cat "$tmp/out"; rm -f "$tmp/out";; 22973 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22974 esac 22975 ;; 22976 :H) 22977 # 22978 # CONFIG_HEADER 22979 # 22980_ACEOF 22981 22982# Transform confdefs.h into a sed script `conftest.defines', that 22983# substitutes the proper values into config.h.in to produce config.h. 22984rm -f conftest.defines conftest.tail 22985# First, append a space to every undef/define line, to ease matching. 22986echo 's/$/ /' >conftest.defines 22987# Then, protect against being on the right side of a sed subst, or in 22988# an unquoted here document, in config.status. If some macros were 22989# called several times there might be several #defines for the same 22990# symbol, which is useless. But do not sort them, since the last 22991# AC_DEFINE must be honored. 22992ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22993# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22994# NAME is the cpp macro being defined, VALUE is the value it is being given. 22995# PARAMS is the parameter list in the macro definition--in most cases, it's 22996# just an empty string. 22997ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22998ac_dB='\\)[ (].*,\\1define\\2' 22999ac_dC=' ' 23000ac_dD=' ,' 23001 23002uniq confdefs.h | 23003 sed -n ' 23004 t rset 23005 :rset 23006 s/^[ ]*#[ ]*define[ ][ ]*// 23007 t ok 23008 d 23009 :ok 23010 s/[\\&,]/\\&/g 23011 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23012 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23013 ' >>conftest.defines 23014 23015# Remove the space that was appended to ease matching. 23016# Then replace #undef with comments. This is necessary, for 23017# example, in the case of _POSIX_SOURCE, which is predefined and required 23018# on some systems where configure will not decide to define it. 23019# (The regexp can be short, since the line contains either #define or #undef.) 23020echo 's/ $// 23021s,^[ #]*u.*,/* & */,' >>conftest.defines 23022 23023# Break up conftest.defines: 23024ac_max_sed_lines=50 23025 23026# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23027# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23028# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23029# et cetera. 23030ac_in='$ac_file_inputs' 23031ac_out='"$tmp/out1"' 23032ac_nxt='"$tmp/out2"' 23033 23034while : 23035do 23036 # Write a here document: 23037 cat >>$CONFIG_STATUS <<_ACEOF 23038 # First, check the format of the line: 23039 cat >"\$tmp/defines.sed" <<\\CEOF 23040/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23041/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23042b 23043:def 23044_ACEOF 23045 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23046 echo 'CEOF 23047 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23048 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23049 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23050 grep . conftest.tail >/dev/null || break 23051 rm -f conftest.defines 23052 mv conftest.tail conftest.defines 23053done 23054rm -f conftest.defines conftest.tail 23055 23056echo "ac_result=$ac_in" >>$CONFIG_STATUS 23057cat >>$CONFIG_STATUS <<\_ACEOF 23058 if test x"$ac_file" != x-; then 23059 echo "/* $configure_input */" >"$tmp/config.h" 23060 cat "$ac_result" >>"$tmp/config.h" 23061 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23063echo "$as_me: $ac_file is unchanged" >&6;} 23064 else 23065 rm -f $ac_file 23066 mv "$tmp/config.h" $ac_file 23067 fi 23068 else 23069 echo "/* $configure_input */" 23070 cat "$ac_result" 23071 fi 23072 rm -f "$tmp/out12" 23073# Compute $ac_file's index in $config_headers. 23074_am_stamp_count=1 23075for _am_header in $config_headers :; do 23076 case $_am_header in 23077 $ac_file | $ac_file:* ) 23078 break ;; 23079 * ) 23080 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23081 esac 23082done 23083echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23084$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23085 X$ac_file : 'X\(//\)[^/]' \| \ 23086 X$ac_file : 'X\(//\)$' \| \ 23087 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23088echo X$ac_file | 23089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23090 s//\1/ 23091 q 23092 } 23093 /^X\(\/\/\)[^/].*/{ 23094 s//\1/ 23095 q 23096 } 23097 /^X\(\/\/\)$/{ 23098 s//\1/ 23099 q 23100 } 23101 /^X\(\/\).*/{ 23102 s//\1/ 23103 q 23104 } 23105 s/.*/./; q'`/stamp-h$_am_stamp_count 23106 ;; 23107 :L) 23108 # 23109 # CONFIG_LINK 23110 # 23111 23112 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 23113echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} 23114 23115 if test ! -r "$srcdir/$ac_source"; then 23116 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 23117echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 23118 { (exit 1); exit 1; }; } 23119 fi 23120 rm -f "$ac_file" 23121 23122 # Try a relative symlink, then a hard link, then a copy. 23123 case $srcdir in 23124 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 23125 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; 23126 esac 23127 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 23128 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || 23129 cp -p "$srcdir/$ac_source" "$ac_file" || 23130 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 23131echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} 23132 { (exit 1); exit 1; }; } 23133 ;; 23134 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23135echo "$as_me: executing $ac_file commands" >&6;} 23136 ;; 23137 esac 23138 23139 23140 case $ac_file$ac_mode in 23141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23142 # Strip MF so we end up with the name of the file. 23143 mf=`echo "$mf" | sed -e 's/:.*$//'` 23144 # Check whether this is an Automake generated Makefile or not. 23145 # We used to match only the files named `Makefile.in', but 23146 # some people rename them; so instead we look at the file content. 23147 # Grep'ing the first line is not enough: some people post-process 23148 # each Makefile.in and add a new line on top of each file to say so. 23149 # So let's grep whole file. 23150 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23151 dirpart=`$as_dirname -- "$mf" || 23152$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23153 X"$mf" : 'X\(//\)[^/]' \| \ 23154 X"$mf" : 'X\(//\)$' \| \ 23155 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23156echo X"$mf" | 23157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23158 s//\1/ 23159 q 23160 } 23161 /^X\(\/\/\)[^/].*/{ 23162 s//\1/ 23163 q 23164 } 23165 /^X\(\/\/\)$/{ 23166 s//\1/ 23167 q 23168 } 23169 /^X\(\/\).*/{ 23170 s//\1/ 23171 q 23172 } 23173 s/.*/./; q'` 23174 else 23175 continue 23176 fi 23177 # Extract the definition of DEPDIR, am__include, and am__quote 23178 # from the Makefile without running `make'. 23179 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23180 test -z "$DEPDIR" && continue 23181 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23182 test -z "am__include" && continue 23183 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23184 # When using ansi2knr, U may be empty or an underscore; expand it 23185 U=`sed -n 's/^U = //p' < "$mf"` 23186 # Find all dependency output files, they are included files with 23187 # $(DEPDIR) in their names. We invoke sed twice because it is the 23188 # simplest approach to changing $(DEPDIR) to its actual value in the 23189 # expansion. 23190 for file in `sed -n " 23191 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23193 # Make sure the directory exists. 23194 test -f "$dirpart/$file" && continue 23195 fdir=`$as_dirname -- "$file" || 23196$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23197 X"$file" : 'X\(//\)[^/]' \| \ 23198 X"$file" : 'X\(//\)$' \| \ 23199 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23200echo X"$file" | 23201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23202 s//\1/ 23203 q 23204 } 23205 /^X\(\/\/\)[^/].*/{ 23206 s//\1/ 23207 q 23208 } 23209 /^X\(\/\/\)$/{ 23210 s//\1/ 23211 q 23212 } 23213 /^X\(\/\).*/{ 23214 s//\1/ 23215 q 23216 } 23217 s/.*/./; q'` 23218 { as_dir=$dirpart/$fdir 23219 case $as_dir in #( 23220 -*) as_dir=./$as_dir;; 23221 esac 23222 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23223 as_dirs= 23224 while :; do 23225 case $as_dir in #( 23226 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23227 *) as_qdir=$as_dir;; 23228 esac 23229 as_dirs="'$as_qdir' $as_dirs" 23230 as_dir=`$as_dirname -- "$as_dir" || 23231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23232 X"$as_dir" : 'X\(//\)[^/]' \| \ 23233 X"$as_dir" : 'X\(//\)$' \| \ 23234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23235echo X"$as_dir" | 23236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23237 s//\1/ 23238 q 23239 } 23240 /^X\(\/\/\)[^/].*/{ 23241 s//\1/ 23242 q 23243 } 23244 /^X\(\/\/\)$/{ 23245 s//\1/ 23246 q 23247 } 23248 /^X\(\/\).*/{ 23249 s//\1/ 23250 q 23251 } 23252 s/.*/./; q'` 23253 test -d "$as_dir" && break 23254 done 23255 test -z "$as_dirs" || eval "mkdir $as_dirs" 23256 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23257echo "$as_me: error: cannot create directory $as_dir" >&2;} 23258 { (exit 1); exit 1; }; }; } 23259 # echo "creating $dirpart/$file" 23260 echo '# dummy' > "$dirpart/$file" 23261 done 23262done 23263 ;; 23264 "updatedd-wrapper/create-config":F) chmod 755 updatedd-wrapper/create-config ;; 23265 "updatedd-wrapper/updatedd-wrapper":F) chmod 755 updatedd-wrapper/updatedd-wrapper ;; 23266 "scripts/ipserv.pl":F) chmod 755 scripts/ipserv.pl ;; 23267 "scripts/interface.pl":F) chmod 755 scripts/interface.pl ;; 23268 23269 esac 23270done # for ac_tag 23271 23272 23273{ (exit 0); exit 0; } 23274_ACEOF 23275chmod +x $CONFIG_STATUS 23276ac_clean_files=$ac_clean_files_save 23277 23278 23279# configure is writing to config.log, and then calls config.status. 23280# config.status does its own redirection, appending to config.log. 23281# Unfortunately, on DOS this fails, as config.log is still kept open 23282# by configure, so config.status won't be able to write to it; its 23283# output is simply discarded. So we exec the FD to /dev/null, 23284# effectively closing config.log, so it can be properly (re)opened and 23285# appended to by config.status. When coming back to configure, we 23286# need to make the FD available again. 23287if test "$no_create" != yes; then 23288 ac_cs_success=: 23289 ac_config_status_args= 23290 test "$silent" = yes && 23291 ac_config_status_args="$ac_config_status_args --quiet" 23292 exec 5>/dev/null 23293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23294 exec 5>>config.log 23295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23296 # would make configure fail if this is the last instruction. 23297 $ac_cs_success || { (exit 1); exit 1; } 23298fi 23299 23300 23301# Local Variables: 23302# tab-width: 2 23303# End: 23304