configure revision e0963ede
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXinerama 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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 more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='libXinerama' 730PACKAGE_TARNAME='libXinerama' 731PACKAGE_VERSION='1.0.3' 732PACKAGE_STRING='libXinerama 1.0.3' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811am__isrc 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830MAINTAINER_MODE_TRUE 831MAINTAINER_MODE_FALSE 832MAINT 833CC 834CFLAGS 835LDFLAGS 836CPPFLAGS 837ac_ct_CC 838EXEEXT 839OBJEXT 840DEPDIR 841am__include 842am__quote 843AMDEP_TRUE 844AMDEP_FALSE 845AMDEPBACKSLASH 846CCDEPMODE 847am__fastdepCC_TRUE 848am__fastdepCC_FALSE 849build 850build_cpu 851build_vendor 852build_os 853host 854host_cpu 855host_vendor 856host_os 857SED 858GREP 859EGREP 860LN_S 861ECHO 862AR 863RANLIB 864CPP 865CXX 866CXXFLAGS 867ac_ct_CXX 868CXXDEPMODE 869am__fastdepCXX_TRUE 870am__fastdepCXX_FALSE 871CXXCPP 872F77 873FFLAGS 874ac_ct_F77 875LIBTOOL 876PKG_CONFIG 877XINERAMA_CFLAGS 878XINERAMA_LIBS 879LINT 880LINT_FLAGS 881LINT_TRUE 882LINT_FALSE 883MALLOC_ZERO_CFLAGS 884XMALLOC_ZERO_CFLAGS 885XTMALLOC_ZERO_CFLAGS 886APP_MAN_SUFFIX 887LIB_MAN_SUFFIX 888FILE_MAN_SUFFIX 889MISC_MAN_SUFFIX 890DRIVER_MAN_SUFFIX 891ADMIN_MAN_SUFFIX 892APP_MAN_DIR 893LIB_MAN_DIR 894FILE_MAN_DIR 895MISC_MAN_DIR 896DRIVER_MAN_DIR 897ADMIN_MAN_DIR 898LIBOBJS 899LTLIBOBJS' 900ac_subst_files='' 901 ac_precious_vars='build_alias 902host_alias 903target_alias 904CC 905CFLAGS 906LDFLAGS 907LIBS 908CPPFLAGS 909CPP 910CXX 911CXXFLAGS 912CCC 913CXXCPP 914F77 915FFLAGS 916PKG_CONFIG 917XINERAMA_CFLAGS 918XINERAMA_LIBS' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924# The variables have the same names as the options, with 925# dashes changed to underlines. 926cache_file=/dev/null 927exec_prefix=NONE 928no_create= 929no_recursion= 930prefix=NONE 931program_prefix=NONE 932program_suffix=NONE 933program_transform_name=s,x,x, 934silent= 935site= 936srcdir= 937verbose= 938x_includes=NONE 939x_libraries=NONE 940 941# Installation directory options. 942# These are left unexpanded so users can "make install exec_prefix=/foo" 943# and all the variables that are supposed to be based on exec_prefix 944# by default will actually change. 945# Use braces instead of parens because sh, perl, etc. also accept them. 946# (The list follows the same order as the GNU Coding Standards.) 947bindir='${exec_prefix}/bin' 948sbindir='${exec_prefix}/sbin' 949libexecdir='${exec_prefix}/libexec' 950datarootdir='${prefix}/share' 951datadir='${datarootdir}' 952sysconfdir='${prefix}/etc' 953sharedstatedir='${prefix}/com' 954localstatedir='${prefix}/var' 955includedir='${prefix}/include' 956oldincludedir='/usr/include' 957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 958infodir='${datarootdir}/info' 959htmldir='${docdir}' 960dvidir='${docdir}' 961pdfdir='${docdir}' 962psdir='${docdir}' 963libdir='${exec_prefix}/lib' 964localedir='${datarootdir}/locale' 965mandir='${datarootdir}/man' 966 967ac_prev= 968ac_dashdash= 969for ac_option 970do 971 # If the previous option needs an argument, assign it. 972 if test -n "$ac_prev"; then 973 eval $ac_prev=\$ac_option 974 ac_prev= 975 continue 976 fi 977 978 case $ac_option in 979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 980 *) ac_optarg=yes ;; 981 esac 982 983 # Accept the important Cygnus configure options, so we can diagnose typos. 984 985 case $ac_dashdash$ac_option in 986 --) 987 ac_dashdash=yes ;; 988 989 -bindir | --bindir | --bindi | --bind | --bin | --bi) 990 ac_prev=bindir ;; 991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 992 bindir=$ac_optarg ;; 993 994 -build | --build | --buil | --bui | --bu) 995 ac_prev=build_alias ;; 996 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 997 build_alias=$ac_optarg ;; 998 999 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1001 ac_prev=cache_file ;; 1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1004 cache_file=$ac_optarg ;; 1005 1006 --config-cache | -C) 1007 cache_file=config.cache ;; 1008 1009 -datadir | --datadir | --datadi | --datad) 1010 ac_prev=datadir ;; 1011 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1012 datadir=$ac_optarg ;; 1013 1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1015 | --dataroo | --dataro | --datar) 1016 ac_prev=datarootdir ;; 1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1019 datarootdir=$ac_optarg ;; 1020 1021 -disable-* | --disable-*) 1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1028 eval enable_$ac_feature=no ;; 1029 1030 -docdir | --docdir | --docdi | --doc | --do) 1031 ac_prev=docdir ;; 1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1033 docdir=$ac_optarg ;; 1034 1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1036 ac_prev=dvidir ;; 1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1038 dvidir=$ac_optarg ;; 1039 1040 -enable-* | --enable-*) 1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1045 { (exit 1); exit 1; }; } 1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1047 eval enable_$ac_feature=\$ac_optarg ;; 1048 1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1051 | --exec | --exe | --ex) 1052 ac_prev=exec_prefix ;; 1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1055 | --exec=* | --exe=* | --ex=*) 1056 exec_prefix=$ac_optarg ;; 1057 1058 -gas | --gas | --ga | --g) 1059 # Obsolete; use --with-gas. 1060 with_gas=yes ;; 1061 1062 -help | --help | --hel | --he | -h) 1063 ac_init_help=long ;; 1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1065 ac_init_help=recursive ;; 1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1067 ac_init_help=short ;; 1068 1069 -host | --host | --hos | --ho) 1070 ac_prev=host_alias ;; 1071 -host=* | --host=* | --hos=* | --ho=*) 1072 host_alias=$ac_optarg ;; 1073 1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1075 ac_prev=htmldir ;; 1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1077 | --ht=*) 1078 htmldir=$ac_optarg ;; 1079 1080 -includedir | --includedir | --includedi | --included | --include \ 1081 | --includ | --inclu | --incl | --inc) 1082 ac_prev=includedir ;; 1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1084 | --includ=* | --inclu=* | --incl=* | --inc=*) 1085 includedir=$ac_optarg ;; 1086 1087 -infodir | --infodir | --infodi | --infod | --info | --inf) 1088 ac_prev=infodir ;; 1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1090 infodir=$ac_optarg ;; 1091 1092 -libdir | --libdir | --libdi | --libd) 1093 ac_prev=libdir ;; 1094 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1095 libdir=$ac_optarg ;; 1096 1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1098 | --libexe | --libex | --libe) 1099 ac_prev=libexecdir ;; 1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1101 | --libexe=* | --libex=* | --libe=*) 1102 libexecdir=$ac_optarg ;; 1103 1104 -localedir | --localedir | --localedi | --localed | --locale) 1105 ac_prev=localedir ;; 1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1107 localedir=$ac_optarg ;; 1108 1109 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1110 | --localstate | --localstat | --localsta | --localst | --locals) 1111 ac_prev=localstatedir ;; 1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1114 localstatedir=$ac_optarg ;; 1115 1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1117 ac_prev=mandir ;; 1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1119 mandir=$ac_optarg ;; 1120 1121 -nfp | --nfp | --nf) 1122 # Obsolete; use --without-fp. 1123 with_fp=no ;; 1124 1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1126 | --no-cr | --no-c | -n) 1127 no_create=yes ;; 1128 1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1131 no_recursion=yes ;; 1132 1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1135 | --oldin | --oldi | --old | --ol | --o) 1136 ac_prev=oldincludedir ;; 1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1140 oldincludedir=$ac_optarg ;; 1141 1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1143 ac_prev=prefix ;; 1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1145 prefix=$ac_optarg ;; 1146 1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1148 | --program-pre | --program-pr | --program-p) 1149 ac_prev=program_prefix ;; 1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1152 program_prefix=$ac_optarg ;; 1153 1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1155 | --program-suf | --program-su | --program-s) 1156 ac_prev=program_suffix ;; 1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1159 program_suffix=$ac_optarg ;; 1160 1161 -program-transform-name | --program-transform-name \ 1162 | --program-transform-nam | --program-transform-na \ 1163 | --program-transform-n | --program-transform- \ 1164 | --program-transform | --program-transfor \ 1165 | --program-transfo | --program-transf \ 1166 | --program-trans | --program-tran \ 1167 | --progr-tra | --program-tr | --program-t) 1168 ac_prev=program_transform_name ;; 1169 -program-transform-name=* | --program-transform-name=* \ 1170 | --program-transform-nam=* | --program-transform-na=* \ 1171 | --program-transform-n=* | --program-transform-=* \ 1172 | --program-transform=* | --program-transfor=* \ 1173 | --program-transfo=* | --program-transf=* \ 1174 | --program-trans=* | --program-tran=* \ 1175 | --progr-tra=* | --program-tr=* | --program-t=*) 1176 program_transform_name=$ac_optarg ;; 1177 1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1179 ac_prev=pdfdir ;; 1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1181 pdfdir=$ac_optarg ;; 1182 1183 -psdir | --psdir | --psdi | --psd | --ps) 1184 ac_prev=psdir ;; 1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1186 psdir=$ac_optarg ;; 1187 1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1189 | -silent | --silent | --silen | --sile | --sil) 1190 silent=yes ;; 1191 1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1193 ac_prev=sbindir ;; 1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1195 | --sbi=* | --sb=*) 1196 sbindir=$ac_optarg ;; 1197 1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1200 | --sharedst | --shareds | --shared | --share | --shar \ 1201 | --sha | --sh) 1202 ac_prev=sharedstatedir ;; 1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1206 | --sha=* | --sh=*) 1207 sharedstatedir=$ac_optarg ;; 1208 1209 -site | --site | --sit) 1210 ac_prev=site ;; 1211 -site=* | --site=* | --sit=*) 1212 site=$ac_optarg ;; 1213 1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1215 ac_prev=srcdir ;; 1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1217 srcdir=$ac_optarg ;; 1218 1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1220 | --syscon | --sysco | --sysc | --sys | --sy) 1221 ac_prev=sysconfdir ;; 1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1224 sysconfdir=$ac_optarg ;; 1225 1226 -target | --target | --targe | --targ | --tar | --ta | --t) 1227 ac_prev=target_alias ;; 1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1229 target_alias=$ac_optarg ;; 1230 1231 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1232 verbose=yes ;; 1233 1234 -version | --version | --versio | --versi | --vers | -V) 1235 ac_init_version=: ;; 1236 1237 -with-* | --with-*) 1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 { echo "$as_me: error: invalid package name: $ac_package" >&2 1242 { (exit 1); exit 1; }; } 1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1244 eval with_$ac_package=\$ac_optarg ;; 1245 1246 -without-* | --without-*) 1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1248 # Reject names that are not valid shell variable names. 1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 { echo "$as_me: error: invalid package name: $ac_package" >&2 1251 { (exit 1); exit 1; }; } 1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1253 eval with_$ac_package=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) { echo "$as_me: error: unrecognized option: $ac_option 1274Try \`$0 --help' for more information." >&2 1275 { (exit 1); exit 1; }; } 1276 ;; 1277 1278 *=*) 1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1283 { (exit 1); exit 1; }; } 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 { echo "$as_me: error: missing argument to $ac_option" >&2 1301 { (exit 1); exit 1; }; } 1302fi 1303 1304# Be sure to have absolute directory names. 1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1306 datadir sysconfdir sharedstatedir localstatedir includedir \ 1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1308 libdir localedir mandir 1309do 1310 eval ac_val=\$$ac_var 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1316 { (exit 1); exit 1; }; } 1317done 1318 1319# There might be people who depend on the old broken behavior: `$host' 1320# used to hold the argument of --host etc. 1321# FIXME: To remove some day. 1322build=$build_alias 1323host=$host_alias 1324target=$target_alias 1325 1326# FIXME: To remove some day. 1327if test "x$host_alias" != x; then 1328 if test "x$build_alias" = x; then 1329 cross_compiling=maybe 1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1331 If a cross compiler is detected then cross compile mode will be used." >&2 1332 elif test "x$build_alias" != "x$host_alias"; then 1333 cross_compiling=yes 1334 fi 1335fi 1336 1337ac_tool_prefix= 1338test -n "$host_alias" && ac_tool_prefix=$host_alias- 1339 1340test "$silent" = yes && exec 6>/dev/null 1341 1342 1343ac_pwd=`pwd` && test -n "$ac_pwd" && 1344ac_ls_di=`ls -di .` && 1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1346 { echo "$as_me: error: Working directory cannot be determined" >&2 1347 { (exit 1); exit 1; }; } 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1349 { echo "$as_me: error: pwd does not report name of working directory" >&2 1350 { (exit 1); exit 1; }; } 1351 1352 1353# Find the source files, if location was not specified. 1354if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$0" || 1358$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$0" : 'X\(//\)[^/]' \| \ 1360 X"$0" : 'X\(//\)$' \| \ 1361 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1362echo X"$0" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384else 1385 ac_srcdir_defaulted=no 1386fi 1387if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1390 { (exit 1); exit 1; }; } 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1395 { (exit 1); exit 1; }; } 1396 pwd)` 1397# When building in place, set srcdir=. 1398if test "$ac_abs_confdir" = "$ac_pwd"; then 1399 srcdir=. 1400fi 1401# Remove unnecessary trailing slashes from srcdir. 1402# Double slashes in file names in object file debugging info 1403# mess up M-x gdb in Emacs. 1404case $srcdir in 1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1406esac 1407for ac_var in $ac_precious_vars; do 1408 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_env_${ac_var}_value=\$${ac_var} 1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1412done 1413 1414# 1415# Report the --help message. 1416# 1417if test "$ac_init_help" = "long"; then 1418 # Omit some internal or obsolete options to make the list less imposing. 1419 # This message is too long to be a string in the A/UX 3.1 sh. 1420 cat <<_ACEOF 1421\`configure' configures libXinerama 1.0.3 to adapt to many kinds of systems. 1422 1423Usage: $0 [OPTION]... [VAR=VALUE]... 1424 1425To assign environment variables (e.g., CC, CFLAGS...), specify them as 1426VAR=VALUE. See below for descriptions of some of the useful variables. 1427 1428Defaults for the options are specified in brackets. 1429 1430Configuration: 1431 -h, --help display this help and exit 1432 --help=short display options specific to this package 1433 --help=recursive display the short help of all the included packages 1434 -V, --version display version information and exit 1435 -q, --quiet, --silent do not print \`checking...' messages 1436 --cache-file=FILE cache test results in FILE [disabled] 1437 -C, --config-cache alias for \`--cache-file=config.cache' 1438 -n, --no-create do not create output files 1439 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1440 1441Installation directories: 1442 --prefix=PREFIX install architecture-independent files in PREFIX 1443 [$ac_default_prefix] 1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1445 [PREFIX] 1446 1447By default, \`make install' will install all the files in 1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1449an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1450for instance \`--prefix=\$HOME'. 1451 1452For better control, use the options below. 1453 1454Fine tuning of the installation directories: 1455 --bindir=DIR user executables [EPREFIX/bin] 1456 --sbindir=DIR system admin executables [EPREFIX/sbin] 1457 --libexecdir=DIR program executables [EPREFIX/libexec] 1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1461 --libdir=DIR object code libraries [EPREFIX/lib] 1462 --includedir=DIR C header files [PREFIX/include] 1463 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1466 --infodir=DIR info documentation [DATAROOTDIR/info] 1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1468 --mandir=DIR man documentation [DATAROOTDIR/man] 1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama] 1470 --htmldir=DIR html documentation [DOCDIR] 1471 --dvidir=DIR dvi documentation [DOCDIR] 1472 --pdfdir=DIR pdf documentation [DOCDIR] 1473 --psdir=DIR ps documentation [DOCDIR] 1474_ACEOF 1475 1476 cat <<\_ACEOF 1477 1478Program names: 1479 --program-prefix=PREFIX prepend PREFIX to installed program names 1480 --program-suffix=SUFFIX append SUFFIX to installed program names 1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1482 1483System types: 1484 --build=BUILD configure for building on BUILD [guessed] 1485 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1486_ACEOF 1487fi 1488 1489if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of libXinerama 1.0.3:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495Optional Features: 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --enable-maintainer-mode enable make rules and dependencies not useful 1499 (and sometimes confusing) to the casual installer 1500 --disable-dependency-tracking speeds up one-time build 1501 --enable-dependency-tracking do not reject slow dependency extractors 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-static[=PKGS] build static libraries [default=yes] 1504 --enable-fast-install[=PKGS] 1505 optimize for fast installation [default=yes] 1506 --disable-libtool-lock avoid locking (might break parallel builds) 1507 --enable-malloc0returnsnull 1508 malloc(0) returns NULL (default: auto) 1509 1510Optional Packages: 1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514 --with-pic try to use only PIC/non-PIC objects [default=use 1515 both] 1516 --with-tags[=TAGS] include additional configurations [automatic] 1517 --with-lint Use a lint-style source code checker (default: 1518 disabled) 1519 --with-release-version=STRING 1520 Use release version string in package name 1521 1522Some influential environment variables: 1523 CC C compiler command 1524 CFLAGS C compiler flags 1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1526 nonstandard directory <lib dir> 1527 LIBS libraries to pass to the linker, e.g. -l<library> 1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1529 you have headers in a nonstandard directory <include dir> 1530 CPP C preprocessor 1531 CXX C++ compiler command 1532 CXXFLAGS C++ compiler flags 1533 CXXCPP C++ preprocessor 1534 F77 Fortran 77 compiler command 1535 FFLAGS Fortran 77 compiler flags 1536 PKG_CONFIG path to pkg-config utility 1537 XINERAMA_CFLAGS 1538 C compiler flags for XINERAMA, overriding pkg-config 1539 XINERAMA_LIBS 1540 linker flags for XINERAMA, overriding pkg-config 1541 1542Use these variables to override the choices made by `configure' or to help 1543it to find libraries and programs with nonstandard names/locations. 1544 1545Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1546_ACEOF 1547ac_status=$? 1548fi 1549 1550if test "$ac_init_help" = "recursive"; then 1551 # If there are subdirs, report their specific --help. 1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1553 test -d "$ac_dir" || continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for guested configure. 1590 if test -f "$ac_srcdir/configure.gnu"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1593 elif test -f "$ac_srcdir/configure"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure" --help=recursive 1596 else 1597 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1598 fi || ac_status=$? 1599 cd "$ac_pwd" || { ac_status=$?; break; } 1600 done 1601fi 1602 1603test -n "$ac_init_help" && exit $ac_status 1604if $ac_init_version; then 1605 cat <<\_ACEOF 1606libXinerama configure 1.0.3 1607generated by GNU Autoconf 2.61 1608 1609Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16102002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616cat >config.log <<_ACEOF 1617This file contains any messages produced by compilers while 1618running configure, to aid debugging if configure makes a mistake. 1619 1620It was created by libXinerama $as_me 1.0.3, which was 1621generated by GNU Autoconf 2.61. Invocation command line was 1622 1623 $ $0 $@ 1624 1625_ACEOF 1626exec 5>>config.log 1627{ 1628cat <<_ASUNAME 1629## --------- ## 1630## Platform. ## 1631## --------- ## 1632 1633hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1634uname -m = `(uname -m) 2>/dev/null || echo unknown` 1635uname -r = `(uname -r) 2>/dev/null || echo unknown` 1636uname -s = `(uname -s) 2>/dev/null || echo unknown` 1637uname -v = `(uname -v) 2>/dev/null || echo unknown` 1638 1639/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1640/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1641 1642/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1643/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1644/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1645/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1646/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1647/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1648/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1649 1650_ASUNAME 1651 1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1653for as_dir in $PATH 1654do 1655 IFS=$as_save_IFS 1656 test -z "$as_dir" && as_dir=. 1657 echo "PATH: $as_dir" 1658done 1659IFS=$as_save_IFS 1660 1661} >&5 1662 1663cat >&5 <<_ACEOF 1664 1665 1666## ----------- ## 1667## Core tests. ## 1668## ----------- ## 1669 1670_ACEOF 1671 1672 1673# Keep a trace of the command line. 1674# Strip out --no-create and --no-recursion so they do not pile up. 1675# Strip out --silent because we don't want to record it for future runs. 1676# Also quote any args containing shell meta-characters. 1677# Make two passes to allow for proper duplicate-argument suppression. 1678ac_configure_args= 1679ac_configure_args0= 1680ac_configure_args1= 1681ac_must_keep_next=false 1682for ac_pass in 1 2 1683do 1684 for ac_arg 1685 do 1686 case $ac_arg in 1687 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1689 | -silent | --silent | --silen | --sile | --sil) 1690 continue ;; 1691 *\'*) 1692 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1693 esac 1694 case $ac_pass in 1695 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1696 2) 1697 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1698 if test $ac_must_keep_next = true; then 1699 ac_must_keep_next=false # Got value, back to normal. 1700 else 1701 case $ac_arg in 1702 *=* | --config-cache | -C | -disable-* | --disable-* \ 1703 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1704 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1705 | -with-* | --with-* | -without-* | --without-* | --x) 1706 case "$ac_configure_args0 " in 1707 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1708 esac 1709 ;; 1710 -* ) ac_must_keep_next=true ;; 1711 esac 1712 fi 1713 ac_configure_args="$ac_configure_args '$ac_arg'" 1714 ;; 1715 esac 1716 done 1717done 1718$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1719$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1720 1721# When interrupted or exit'd, cleanup temporary files, and complete 1722# config.log. We remove comments because anyway the quotes in there 1723# would cause problems or look ugly. 1724# WARNING: Use '\'' to represent an apostrophe within the trap. 1725# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1726trap 'exit_status=$? 1727 # Save into config.log some information that might help in debugging. 1728 { 1729 echo 1730 1731 cat <<\_ASBOX 1732## ---------------- ## 1733## Cache variables. ## 1734## ---------------- ## 1735_ASBOX 1736 echo 1737 # The following way of writing the cache mishandles newlines in values, 1738( 1739 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1740 eval ac_val=\$$ac_var 1741 case $ac_val in #( 1742 *${as_nl}*) 1743 case $ac_var in #( 1744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1745echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1746 esac 1747 case $ac_var in #( 1748 _ | IFS | as_nl) ;; #( 1749 *) $as_unset $ac_var ;; 1750 esac ;; 1751 esac 1752 done 1753 (set) 2>&1 | 1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1755 *${as_nl}ac_space=\ *) 1756 sed -n \ 1757 "s/'\''/'\''\\\\'\'''\''/g; 1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1759 ;; #( 1760 *) 1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1762 ;; 1763 esac | 1764 sort 1765) 1766 echo 1767 1768 cat <<\_ASBOX 1769## ----------------- ## 1770## Output variables. ## 1771## ----------------- ## 1772_ASBOX 1773 echo 1774 for ac_var in $ac_subst_vars 1775 do 1776 eval ac_val=\$$ac_var 1777 case $ac_val in 1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1779 esac 1780 echo "$ac_var='\''$ac_val'\''" 1781 done | sort 1782 echo 1783 1784 if test -n "$ac_subst_files"; then 1785 cat <<\_ASBOX 1786## ------------------- ## 1787## File substitutions. ## 1788## ------------------- ## 1789_ASBOX 1790 echo 1791 for ac_var in $ac_subst_files 1792 do 1793 eval ac_val=\$$ac_var 1794 case $ac_val in 1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1796 esac 1797 echo "$ac_var='\''$ac_val'\''" 1798 done | sort 1799 echo 1800 fi 1801 1802 if test -s confdefs.h; then 1803 cat <<\_ASBOX 1804## ----------- ## 1805## confdefs.h. ## 1806## ----------- ## 1807_ASBOX 1808 echo 1809 cat confdefs.h 1810 echo 1811 fi 1812 test "$ac_signal" != 0 && 1813 echo "$as_me: caught signal $ac_signal" 1814 echo "$as_me: exit $exit_status" 1815 } >&5 1816 rm -f core *.core core.conftest.* && 1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1818 exit $exit_status 1819' 0 1820for ac_signal in 1 2 13 15; do 1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1822done 1823ac_signal=0 1824 1825# confdefs.h avoids OS command line length limits that DEFS can exceed. 1826rm -f -r conftest* confdefs.h 1827 1828# Predefined preprocessor variables. 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_NAME "$PACKAGE_NAME" 1832_ACEOF 1833 1834 1835cat >>confdefs.h <<_ACEOF 1836#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1837_ACEOF 1838 1839 1840cat >>confdefs.h <<_ACEOF 1841#define PACKAGE_VERSION "$PACKAGE_VERSION" 1842_ACEOF 1843 1844 1845cat >>confdefs.h <<_ACEOF 1846#define PACKAGE_STRING "$PACKAGE_STRING" 1847_ACEOF 1848 1849 1850cat >>confdefs.h <<_ACEOF 1851#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1852_ACEOF 1853 1854 1855# Let the site file select an alternate cache file if it wants to. 1856# Prefer explicitly selected file to automatically selected ones. 1857if test -n "$CONFIG_SITE"; then 1858 set x "$CONFIG_SITE" 1859elif test "x$prefix" != xNONE; then 1860 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1861else 1862 set x "$ac_default_prefix/share/config.site" \ 1863 "$ac_default_prefix/etc/config.site" 1864fi 1865shift 1866for ac_site_file 1867do 1868 if test -r "$ac_site_file"; then 1869 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1870echo "$as_me: loading site script $ac_site_file" >&6;} 1871 sed 's/^/| /' "$ac_site_file" >&5 1872 . "$ac_site_file" 1873 fi 1874done 1875 1876if test -r "$cache_file"; then 1877 # Some versions of bash will fail to source /dev/null (special 1878 # files actually), so we avoid doing that. 1879 if test -f "$cache_file"; then 1880 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1881echo "$as_me: loading cache $cache_file" >&6;} 1882 case $cache_file in 1883 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1884 *) . "./$cache_file";; 1885 esac 1886 fi 1887else 1888 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1889echo "$as_me: creating cache $cache_file" >&6;} 1890 >$cache_file 1891fi 1892 1893# Check that the precious variables saved in the cache have kept the same 1894# value. 1895ac_cache_corrupted=false 1896for ac_var in $ac_precious_vars; do 1897 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1898 eval ac_new_set=\$ac_env_${ac_var}_set 1899 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1900 eval ac_new_val=\$ac_env_${ac_var}_value 1901 case $ac_old_set,$ac_new_set in 1902 set,) 1903 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1904echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1905 ac_cache_corrupted=: ;; 1906 ,set) 1907 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1908echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1909 ac_cache_corrupted=: ;; 1910 ,);; 1911 *) 1912 if test "x$ac_old_val" != "x$ac_new_val"; then 1913 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1914echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1915 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1916echo "$as_me: former value: $ac_old_val" >&2;} 1917 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1918echo "$as_me: current value: $ac_new_val" >&2;} 1919 ac_cache_corrupted=: 1920 fi;; 1921 esac 1922 # Pass precious variables to config.status. 1923 if test "$ac_new_set" = set; then 1924 case $ac_new_val in 1925 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1926 *) ac_arg=$ac_var=$ac_new_val ;; 1927 esac 1928 case " $ac_configure_args " in 1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1931 esac 1932 fi 1933done 1934if $ac_cache_corrupted; then 1935 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1936echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1937 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1938echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1939 { (exit 1); exit 1; }; } 1940fi 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966ac_ext=c 1967ac_cpp='$CPP $CPPFLAGS' 1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1970ac_compiler_gnu=$ac_cv_c_compiler_gnu 1971 1972 1973am__api_version='1.10' 1974 1975ac_aux_dir= 1976for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1977 if test -f "$ac_dir/install-sh"; then 1978 ac_aux_dir=$ac_dir 1979 ac_install_sh="$ac_aux_dir/install-sh -c" 1980 break 1981 elif test -f "$ac_dir/install.sh"; then 1982 ac_aux_dir=$ac_dir 1983 ac_install_sh="$ac_aux_dir/install.sh -c" 1984 break 1985 elif test -f "$ac_dir/shtool"; then 1986 ac_aux_dir=$ac_dir 1987 ac_install_sh="$ac_aux_dir/shtool install -c" 1988 break 1989 fi 1990done 1991if test -z "$ac_aux_dir"; then 1992 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1993echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1994 { (exit 1); exit 1; }; } 1995fi 1996 1997# These three variables are undocumented and unsupported, 1998# and are intended to be withdrawn in a future Autoconf release. 1999# They can cause serious problems if a builder's source tree is in a directory 2000# whose full name contains unusual characters. 2001ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2002ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2003ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2004 2005 2006# Find a good install program. We prefer a C program (faster), 2007# so one script is as good as another. But avoid the broken or 2008# incompatible versions: 2009# SysV /etc/install, /usr/sbin/install 2010# SunOS /usr/etc/install 2011# IRIX /sbin/install 2012# AIX /bin/install 2013# AmigaOS /C/install, which installs bootblocks on floppy discs 2014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2015# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2017# OS/2's system install, which has a completely different semantic 2018# ./install, which can be erroneously created by make from ./install.sh. 2019{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2020echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2021if test -z "$INSTALL"; then 2022if test "${ac_cv_path_install+set}" = set; then 2023 echo $ECHO_N "(cached) $ECHO_C" >&6 2024else 2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2026for as_dir in $PATH 2027do 2028 IFS=$as_save_IFS 2029 test -z "$as_dir" && as_dir=. 2030 # Account for people who put trailing slashes in PATH elements. 2031case $as_dir/ in 2032 ./ | .// | /cC/* | \ 2033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2035 /usr/ucb/* ) ;; 2036 *) 2037 # OSF1 and SCO ODT 3.0 have their own names for install. 2038 # Don't use installbsd from OSF since it installs stuff as root 2039 # by default. 2040 for ac_prog in ginstall scoinst install; do 2041 for ac_exec_ext in '' $ac_executable_extensions; do 2042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2043 if test $ac_prog = install && 2044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2045 # AIX install. It has an incompatible calling convention. 2046 : 2047 elif test $ac_prog = install && 2048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2049 # program-specific install script used by HP pwplus--don't use. 2050 : 2051 else 2052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2053 break 3 2054 fi 2055 fi 2056 done 2057 done 2058 ;; 2059esac 2060done 2061IFS=$as_save_IFS 2062 2063 2064fi 2065 if test "${ac_cv_path_install+set}" = set; then 2066 INSTALL=$ac_cv_path_install 2067 else 2068 # As a last resort, use the slow shell script. Don't cache a 2069 # value for INSTALL within a source directory, because that will 2070 # break other packages using the cache if that directory is 2071 # removed, or if the value is a relative name. 2072 INSTALL=$ac_install_sh 2073 fi 2074fi 2075{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2076echo "${ECHO_T}$INSTALL" >&6; } 2077 2078# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2079# It thinks the first close brace ends the variable substitution. 2080test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2081 2082test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2083 2084test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2085 2086{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2087echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2088# Just in case 2089sleep 1 2090echo timestamp > conftest.file 2091# Do `set' in a subshell so we don't clobber the current shell's 2092# arguments. Must try -L first in case configure is actually a 2093# symlink; some systems play weird games with the mod time of symlinks 2094# (eg FreeBSD returns the mod time of the symlink's containing 2095# directory). 2096if ( 2097 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2098 if test "$*" = "X"; then 2099 # -L didn't work. 2100 set X `ls -t $srcdir/configure conftest.file` 2101 fi 2102 rm -f conftest.file 2103 if test "$*" != "X $srcdir/configure conftest.file" \ 2104 && test "$*" != "X conftest.file $srcdir/configure"; then 2105 2106 # If neither matched, then we have a broken ls. This can happen 2107 # if, for instance, CONFIG_SHELL is bash and it inherits a 2108 # broken ls alias from the environment. This has actually 2109 # happened. Such a system could not be considered "sane". 2110 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2111alias in your environment" >&5 2112echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2113alias in your environment" >&2;} 2114 { (exit 1); exit 1; }; } 2115 fi 2116 2117 test "$2" = conftest.file 2118 ) 2119then 2120 # Ok. 2121 : 2122else 2123 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2124Check your system clock" >&5 2125echo "$as_me: error: newly created file is older than distributed files! 2126Check your system clock" >&2;} 2127 { (exit 1); exit 1; }; } 2128fi 2129{ echo "$as_me:$LINENO: result: yes" >&5 2130echo "${ECHO_T}yes" >&6; } 2131test "$program_prefix" != NONE && 2132 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2133# Use a double $ so make ignores it. 2134test "$program_suffix" != NONE && 2135 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2136# Double any \ or $. echo might interpret backslashes. 2137# By default was `s,x,x', remove it if useless. 2138cat <<\_ACEOF >conftest.sed 2139s/[\\$]/&&/g;s/;s,x,x,$// 2140_ACEOF 2141program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2142rm -f conftest.sed 2143 2144# expand $ac_aux_dir to an absolute path 2145am_aux_dir=`cd $ac_aux_dir && pwd` 2146 2147test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2148# Use eval to expand $SHELL 2149if eval "$MISSING --run true"; then 2150 am_missing_run="$MISSING --run " 2151else 2152 am_missing_run= 2153 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2154echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2155fi 2156 2157{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2158echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2159if test -z "$MKDIR_P"; then 2160 if test "${ac_cv_path_mkdir+set}" = set; then 2161 echo $ECHO_N "(cached) $ECHO_C" >&6 2162else 2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2164for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2165do 2166 IFS=$as_save_IFS 2167 test -z "$as_dir" && as_dir=. 2168 for ac_prog in mkdir gmkdir; do 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2171 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2172 'mkdir (GNU coreutils) '* | \ 2173 'mkdir (coreutils) '* | \ 2174 'mkdir (fileutils) '4.1*) 2175 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2176 break 3;; 2177 esac 2178 done 2179 done 2180done 2181IFS=$as_save_IFS 2182 2183fi 2184 2185 if test "${ac_cv_path_mkdir+set}" = set; then 2186 MKDIR_P="$ac_cv_path_mkdir -p" 2187 else 2188 # As a last resort, use the slow shell script. Don't cache a 2189 # value for MKDIR_P within a source directory, because that will 2190 # break other packages using the cache if that directory is 2191 # removed, or if the value is a relative name. 2192 test -d ./--version && rmdir ./--version 2193 MKDIR_P="$ac_install_sh -d" 2194 fi 2195fi 2196{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2197echo "${ECHO_T}$MKDIR_P" >&6; } 2198 2199mkdir_p="$MKDIR_P" 2200case $mkdir_p in 2201 [\\/$]* | ?:[\\/]*) ;; 2202 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2203esac 2204 2205for ac_prog in gawk mawk nawk awk 2206do 2207 # Extract the first word of "$ac_prog", so it can be a program name with args. 2208set dummy $ac_prog; ac_word=$2 2209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2211if test "${ac_cv_prog_AWK+set}" = set; then 2212 echo $ECHO_N "(cached) $ECHO_C" >&6 2213else 2214 if test -n "$AWK"; then 2215 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2216else 2217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2218for as_dir in $PATH 2219do 2220 IFS=$as_save_IFS 2221 test -z "$as_dir" && as_dir=. 2222 for ac_exec_ext in '' $ac_executable_extensions; do 2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2224 ac_cv_prog_AWK="$ac_prog" 2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2226 break 2 2227 fi 2228done 2229done 2230IFS=$as_save_IFS 2231 2232fi 2233fi 2234AWK=$ac_cv_prog_AWK 2235if test -n "$AWK"; then 2236 { echo "$as_me:$LINENO: result: $AWK" >&5 2237echo "${ECHO_T}$AWK" >&6; } 2238else 2239 { echo "$as_me:$LINENO: result: no" >&5 2240echo "${ECHO_T}no" >&6; } 2241fi 2242 2243 2244 test -n "$AWK" && break 2245done 2246 2247{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2248echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2249set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2250if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2251 echo $ECHO_N "(cached) $ECHO_C" >&6 2252else 2253 cat >conftest.make <<\_ACEOF 2254SHELL = /bin/sh 2255all: 2256 @echo '@@@%%%=$(MAKE)=@@@%%%' 2257_ACEOF 2258# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2259case `${MAKE-make} -f conftest.make 2>/dev/null` in 2260 *@@@%%%=?*=@@@%%%*) 2261 eval ac_cv_prog_make_${ac_make}_set=yes;; 2262 *) 2263 eval ac_cv_prog_make_${ac_make}_set=no;; 2264esac 2265rm -f conftest.make 2266fi 2267if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2268 { echo "$as_me:$LINENO: result: yes" >&5 2269echo "${ECHO_T}yes" >&6; } 2270 SET_MAKE= 2271else 2272 { echo "$as_me:$LINENO: result: no" >&5 2273echo "${ECHO_T}no" >&6; } 2274 SET_MAKE="MAKE=${MAKE-make}" 2275fi 2276 2277rm -rf .tst 2>/dev/null 2278mkdir .tst 2>/dev/null 2279if test -d .tst; then 2280 am__leading_dot=. 2281else 2282 am__leading_dot=_ 2283fi 2284rmdir .tst 2>/dev/null 2285 2286if test "`cd $srcdir && pwd`" != "`pwd`"; then 2287 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2288 # is not polluted with repeated "-I." 2289 am__isrc=' -I$(srcdir)' 2290 # test to see if srcdir already configured 2291 if test -f $srcdir/config.status; then 2292 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2293echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2294 { (exit 1); exit 1; }; } 2295 fi 2296fi 2297 2298# test whether we have cygpath 2299if test -z "$CYGPATH_W"; then 2300 if (cygpath --version) >/dev/null 2>/dev/null; then 2301 CYGPATH_W='cygpath -w' 2302 else 2303 CYGPATH_W=echo 2304 fi 2305fi 2306 2307 2308# Define the identity of the package. 2309 PACKAGE='libXinerama' 2310 VERSION='1.0.3' 2311 2312 2313cat >>confdefs.h <<_ACEOF 2314#define PACKAGE "$PACKAGE" 2315_ACEOF 2316 2317 2318cat >>confdefs.h <<_ACEOF 2319#define VERSION "$VERSION" 2320_ACEOF 2321 2322# Some tools Automake needs. 2323 2324ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2325 2326 2327AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2328 2329 2330AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2331 2332 2333AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2334 2335 2336MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2337 2338install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2339 2340# Installed binaries are usually stripped using `strip' when the user 2341# run `make install-strip'. However `strip' might not be the right 2342# tool to use in cross-compilation environments, therefore Automake 2343# will honor the `STRIP' environment variable to overrule this program. 2344if test "$cross_compiling" != no; then 2345 if test -n "$ac_tool_prefix"; then 2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2347set dummy ${ac_tool_prefix}strip; ac_word=$2 2348{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2350if test "${ac_cv_prog_STRIP+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 if test -n "$STRIP"; then 2354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2355else 2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2357for as_dir in $PATH 2358do 2359 IFS=$as_save_IFS 2360 test -z "$as_dir" && as_dir=. 2361 for ac_exec_ext in '' $ac_executable_extensions; do 2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2363 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2365 break 2 2366 fi 2367done 2368done 2369IFS=$as_save_IFS 2370 2371fi 2372fi 2373STRIP=$ac_cv_prog_STRIP 2374if test -n "$STRIP"; then 2375 { echo "$as_me:$LINENO: result: $STRIP" >&5 2376echo "${ECHO_T}$STRIP" >&6; } 2377else 2378 { echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6; } 2380fi 2381 2382 2383fi 2384if test -z "$ac_cv_prog_STRIP"; then 2385 ac_ct_STRIP=$STRIP 2386 # Extract the first word of "strip", so it can be a program name with args. 2387set dummy strip; ac_word=$2 2388{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392else 2393 if test -n "$ac_ct_STRIP"; then 2394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2395else 2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2403 ac_cv_prog_ac_ct_STRIP="strip" 2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408done 2409IFS=$as_save_IFS 2410 2411fi 2412fi 2413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2414if test -n "$ac_ct_STRIP"; then 2415 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2416echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2417else 2418 { echo "$as_me:$LINENO: result: no" >&5 2419echo "${ECHO_T}no" >&6; } 2420fi 2421 2422 if test "x$ac_ct_STRIP" = x; then 2423 STRIP=":" 2424 else 2425 case $cross_compiling:$ac_tool_warned in 2426yes:) 2427{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2428whose name does not start with the host triplet. If you think this 2429configuration is useful to you, please write to autoconf@gnu.org." >&5 2430echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2431whose name does not start with the host triplet. If you think this 2432configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2433ac_tool_warned=yes ;; 2434esac 2435 STRIP=$ac_ct_STRIP 2436 fi 2437else 2438 STRIP="$ac_cv_prog_STRIP" 2439fi 2440 2441fi 2442INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2443 2444# We need awk for the "check" target. The system "awk" is bad on 2445# some platforms. 2446# Always define AMTAR for backward compatibility. 2447 2448AMTAR=${AMTAR-"${am_missing_run}tar"} 2449 2450am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2451 2452 2453 2454 2455 2456{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2457echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2458 # Check whether --enable-maintainer-mode was given. 2459if test "${enable_maintainer_mode+set}" = set; then 2460 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2461else 2462 USE_MAINTAINER_MODE=no 2463fi 2464 2465 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2466echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2467 if test $USE_MAINTAINER_MODE = yes; then 2468 MAINTAINER_MODE_TRUE= 2469 MAINTAINER_MODE_FALSE='#' 2470else 2471 MAINTAINER_MODE_TRUE='#' 2472 MAINTAINER_MODE_FALSE= 2473fi 2474 2475 MAINT=$MAINTAINER_MODE_TRUE 2476 2477 2478 2479ac_config_headers="$ac_config_headers config.h" 2480 2481 2482# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 2483 2484 2485 XORG_MACROS_needed_version=1.1 2486 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2487 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2488 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2489echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 2490 XORG_MACROS_version=1.1.6 2491 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2492 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2493 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2494 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2495echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2496 { (exit 1); exit 1; }; } 2497 fi 2498 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2499 { { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2500echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2501 { (exit 1); exit 1; }; } 2502 fi 2503 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2504echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2505 2506 2507# Check for progs 2508ac_ext=c 2509ac_cpp='$CPP $CPPFLAGS' 2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2512ac_compiler_gnu=$ac_cv_c_compiler_gnu 2513if test -n "$ac_tool_prefix"; then 2514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2515set dummy ${ac_tool_prefix}gcc; ac_word=$2 2516{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2518if test "${ac_cv_prog_CC+set}" = set; then 2519 echo $ECHO_N "(cached) $ECHO_C" >&6 2520else 2521 if test -n "$CC"; then 2522 ac_cv_prog_CC="$CC" # Let the user override the test. 2523else 2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2531 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2533 break 2 2534 fi 2535done 2536done 2537IFS=$as_save_IFS 2538 2539fi 2540fi 2541CC=$ac_cv_prog_CC 2542if test -n "$CC"; then 2543 { echo "$as_me:$LINENO: result: $CC" >&5 2544echo "${ECHO_T}$CC" >&6; } 2545else 2546 { echo "$as_me:$LINENO: result: no" >&5 2547echo "${ECHO_T}no" >&6; } 2548fi 2549 2550 2551fi 2552if test -z "$ac_cv_prog_CC"; then 2553 ac_ct_CC=$CC 2554 # Extract the first word of "gcc", so it can be a program name with args. 2555set dummy gcc; ac_word=$2 2556{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560else 2561 if test -n "$ac_ct_CC"; then 2562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 ac_cv_prog_ac_ct_CC="gcc" 2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581ac_ct_CC=$ac_cv_prog_ac_ct_CC 2582if test -n "$ac_ct_CC"; then 2583 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2584echo "${ECHO_T}$ac_ct_CC" >&6; } 2585else 2586 { echo "$as_me:$LINENO: result: no" >&5 2587echo "${ECHO_T}no" >&6; } 2588fi 2589 2590 if test "x$ac_ct_CC" = x; then 2591 CC="" 2592 else 2593 case $cross_compiling:$ac_tool_warned in 2594yes:) 2595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2596whose name does not start with the host triplet. If you think this 2597configuration is useful to you, please write to autoconf@gnu.org." >&5 2598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2599whose name does not start with the host triplet. If you think this 2600configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2601ac_tool_warned=yes ;; 2602esac 2603 CC=$ac_ct_CC 2604 fi 2605else 2606 CC="$ac_cv_prog_CC" 2607fi 2608 2609if test -z "$CC"; then 2610 if test -n "$ac_tool_prefix"; then 2611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2612set dummy ${ac_tool_prefix}cc; ac_word=$2 2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2615if test "${ac_cv_prog_CC+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 if test -n "$CC"; then 2619 ac_cv_prog_CC="$CC" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_CC="${ac_tool_prefix}cc" 2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638CC=$ac_cv_prog_CC 2639if test -n "$CC"; then 2640 { echo "$as_me:$LINENO: result: $CC" >&5 2641echo "${ECHO_T}$CC" >&6; } 2642else 2643 { echo "$as_me:$LINENO: result: no" >&5 2644echo "${ECHO_T}no" >&6; } 2645fi 2646 2647 2648 fi 2649fi 2650if test -z "$CC"; then 2651 # Extract the first word of "cc", so it can be a program name with args. 2652set dummy cc; ac_word=$2 2653{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2655if test "${ac_cv_prog_CC+set}" = set; then 2656 echo $ECHO_N "(cached) $ECHO_C" >&6 2657else 2658 if test -n "$CC"; then 2659 ac_cv_prog_CC="$CC" # Let the user override the test. 2660else 2661 ac_prog_rejected=no 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2670 ac_prog_rejected=yes 2671 continue 2672 fi 2673 ac_cv_prog_CC="cc" 2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678done 2679IFS=$as_save_IFS 2680 2681if test $ac_prog_rejected = yes; then 2682 # We found a bogon in the path, so make sure we never use it. 2683 set dummy $ac_cv_prog_CC 2684 shift 2685 if test $# != 0; then 2686 # We chose a different compiler from the bogus one. 2687 # However, it has the same basename, so the bogon will be chosen 2688 # first if we set CC to just the basename; use the full file name. 2689 shift 2690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2691 fi 2692fi 2693fi 2694fi 2695CC=$ac_cv_prog_CC 2696if test -n "$CC"; then 2697 { echo "$as_me:$LINENO: result: $CC" >&5 2698echo "${ECHO_T}$CC" >&6; } 2699else 2700 { echo "$as_me:$LINENO: result: no" >&5 2701echo "${ECHO_T}no" >&6; } 2702fi 2703 2704 2705fi 2706if test -z "$CC"; then 2707 if test -n "$ac_tool_prefix"; then 2708 for ac_prog in cl.exe 2709 do 2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2714if test "${ac_cv_prog_CC+set}" = set; then 2715 echo $ECHO_N "(cached) $ECHO_C" >&6 2716else 2717 if test -n "$CC"; then 2718 ac_cv_prog_CC="$CC" # Let the user override the test. 2719else 2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 test -z "$as_dir" && as_dir=. 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { echo "$as_me:$LINENO: result: $CC" >&5 2740echo "${ECHO_T}$CC" >&6; } 2741else 2742 { echo "$as_me:$LINENO: result: no" >&5 2743echo "${ECHO_T}no" >&6; } 2744fi 2745 2746 2747 test -n "$CC" && break 2748 done 2749fi 2750if test -z "$CC"; then 2751 ac_ct_CC=$CC 2752 for ac_prog in cl.exe 2753do 2754 # Extract the first word of "$ac_prog", so it can be a program name with args. 2755set dummy $ac_prog; ac_word=$2 2756{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2758if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2759 echo $ECHO_N "(cached) $ECHO_C" >&6 2760else 2761 if test -n "$ac_ct_CC"; then 2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2771 ac_cv_prog_ac_ct_CC="$ac_prog" 2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781ac_ct_CC=$ac_cv_prog_ac_ct_CC 2782if test -n "$ac_ct_CC"; then 2783 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2784echo "${ECHO_T}$ac_ct_CC" >&6; } 2785else 2786 { echo "$as_me:$LINENO: result: no" >&5 2787echo "${ECHO_T}no" >&6; } 2788fi 2789 2790 2791 test -n "$ac_ct_CC" && break 2792done 2793 2794 if test "x$ac_ct_CC" = x; then 2795 CC="" 2796 else 2797 case $cross_compiling:$ac_tool_warned in 2798yes:) 2799{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2800whose name does not start with the host triplet. If you think this 2801configuration is useful to you, please write to autoconf@gnu.org." >&5 2802echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2803whose name does not start with the host triplet. If you think this 2804configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2805ac_tool_warned=yes ;; 2806esac 2807 CC=$ac_ct_CC 2808 fi 2809fi 2810 2811fi 2812 2813 2814test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2815See \`config.log' for more details." >&5 2816echo "$as_me: error: no acceptable C compiler found in \$PATH 2817See \`config.log' for more details." >&2;} 2818 { (exit 1); exit 1; }; } 2819 2820# Provide some information about the compiler. 2821echo "$as_me:$LINENO: checking for C compiler version" >&5 2822ac_compiler=`set X $ac_compile; echo $2` 2823{ (ac_try="$ac_compiler --version >&5" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2829 (eval "$ac_compiler --version >&5") 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } 2833{ (ac_try="$ac_compiler -v >&5" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_compiler -v >&5") 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); } 2843{ (ac_try="$ac_compiler -V >&5" 2844case "(($ac_try" in 2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2846 *) ac_try_echo=$ac_try;; 2847esac 2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2849 (eval "$ac_compiler -V >&5") 2>&5 2850 ac_status=$? 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); } 2853 2854cat >conftest.$ac_ext <<_ACEOF 2855/* confdefs.h. */ 2856_ACEOF 2857cat confdefs.h >>conftest.$ac_ext 2858cat >>conftest.$ac_ext <<_ACEOF 2859/* end confdefs.h. */ 2860 2861int 2862main () 2863{ 2864 2865 ; 2866 return 0; 2867} 2868_ACEOF 2869ac_clean_files_save=$ac_clean_files 2870ac_clean_files="$ac_clean_files a.out a.exe b.out" 2871# Try to create an executable without -o first, disregard a.out. 2872# It will help us diagnose broken compilers, and finding out an intuition 2873# of exeext. 2874{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2875echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2876ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2877# 2878# List of possible output files, starting from the most likely. 2879# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2880# only as a last resort. b.out is created by i960 compilers. 2881ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2882# 2883# The IRIX 6 linker writes into existing files which may not be 2884# executable, retaining their permissions. Remove them first so a 2885# subsequent execution test works. 2886ac_rmfiles= 2887for ac_file in $ac_files 2888do 2889 case $ac_file in 2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2891 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2892 esac 2893done 2894rm -f $ac_rmfiles 2895 2896if { (ac_try="$ac_link_default" 2897case "(($ac_try" in 2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2899 *) ac_try_echo=$ac_try;; 2900esac 2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2902 (eval "$ac_link_default") 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); }; then 2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2908# in a Makefile. We should not override ac_cv_exeext if it was cached, 2909# so that the user can short-circuit this test for compilers unknown to 2910# Autoconf. 2911for ac_file in $ac_files '' 2912do 2913 test -f "$ac_file" || continue 2914 case $ac_file in 2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2916 ;; 2917 [ab].out ) 2918 # We found the default executable, but exeext='' is most 2919 # certainly right. 2920 break;; 2921 *.* ) 2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2923 then :; else 2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2925 fi 2926 # We set ac_cv_exeext here because the later test for it is not 2927 # safe: cross compilers may not add the suffix if given an `-o' 2928 # argument, so we may need to know it at that point already. 2929 # Even if this section looks crufty: it has the advantage of 2930 # actually working. 2931 break;; 2932 * ) 2933 break;; 2934 esac 2935done 2936test "$ac_cv_exeext" = no && ac_cv_exeext= 2937 2938else 2939 ac_file='' 2940fi 2941 2942{ echo "$as_me:$LINENO: result: $ac_file" >&5 2943echo "${ECHO_T}$ac_file" >&6; } 2944if test -z "$ac_file"; then 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2949See \`config.log' for more details." >&5 2950echo "$as_me: error: C compiler cannot create executables 2951See \`config.log' for more details." >&2;} 2952 { (exit 77); exit 77; }; } 2953fi 2954 2955ac_exeext=$ac_cv_exeext 2956 2957# Check that the compiler produces executables we can run. If not, either 2958# the compiler is broken, or we cross compile. 2959{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2960echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2961# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2962# If not cross compiling, check that we can run a simple program. 2963if test "$cross_compiling" != yes; then 2964 if { ac_try='./$ac_file' 2965 { (case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968esac 2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2970 (eval "$ac_try") 2>&5 2971 ac_status=$? 2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2973 (exit $ac_status); }; }; then 2974 cross_compiling=no 2975 else 2976 if test "$cross_compiling" = maybe; then 2977 cross_compiling=yes 2978 else 2979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2980If you meant to cross compile, use \`--host'. 2981See \`config.log' for more details." >&5 2982echo "$as_me: error: cannot run C compiled programs. 2983If you meant to cross compile, use \`--host'. 2984See \`config.log' for more details." >&2;} 2985 { (exit 1); exit 1; }; } 2986 fi 2987 fi 2988fi 2989{ echo "$as_me:$LINENO: result: yes" >&5 2990echo "${ECHO_T}yes" >&6; } 2991 2992rm -f a.out a.exe conftest$ac_cv_exeext b.out 2993ac_clean_files=$ac_clean_files_save 2994# Check that the compiler produces executables we can run. If not, either 2995# the compiler is broken, or we cross compile. 2996{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2997echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2998{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2999echo "${ECHO_T}$cross_compiling" >&6; } 3000 3001{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3002echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3003if { (ac_try="$ac_link" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3009 (eval "$ac_link") 2>&5 3010 ac_status=$? 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); }; then 3013 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3014# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3015# work properly (i.e., refer to `conftest.exe'), while it won't with 3016# `rm'. 3017for ac_file in conftest.exe conftest conftest.*; do 3018 test -f "$ac_file" || continue 3019 case $ac_file in 3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3022 break;; 3023 * ) break;; 3024 esac 3025done 3026else 3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3028See \`config.log' for more details." >&5 3029echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3030See \`config.log' for more details." >&2;} 3031 { (exit 1); exit 1; }; } 3032fi 3033 3034rm -f conftest$ac_cv_exeext 3035{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3036echo "${ECHO_T}$ac_cv_exeext" >&6; } 3037 3038rm -f conftest.$ac_ext 3039EXEEXT=$ac_cv_exeext 3040ac_exeext=$EXEEXT 3041{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3042echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3043if test "${ac_cv_objext+set}" = set; then 3044 echo $ECHO_N "(cached) $ECHO_C" >&6 3045else 3046 cat >conftest.$ac_ext <<_ACEOF 3047/* confdefs.h. */ 3048_ACEOF 3049cat confdefs.h >>conftest.$ac_ext 3050cat >>conftest.$ac_ext <<_ACEOF 3051/* end confdefs.h. */ 3052 3053int 3054main () 3055{ 3056 3057 ; 3058 return 0; 3059} 3060_ACEOF 3061rm -f conftest.o conftest.obj 3062if { (ac_try="$ac_compile" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_compile") 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; then 3072 for ac_file in conftest.o conftest.obj conftest.*; do 3073 test -f "$ac_file" || continue; 3074 case $ac_file in 3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3077 break;; 3078 esac 3079done 3080else 3081 echo "$as_me: failed program was:" >&5 3082sed 's/^/| /' conftest.$ac_ext >&5 3083 3084{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3085See \`config.log' for more details." >&5 3086echo "$as_me: error: cannot compute suffix of object files: cannot compile 3087See \`config.log' for more details." >&2;} 3088 { (exit 1); exit 1; }; } 3089fi 3090 3091rm -f conftest.$ac_cv_objext conftest.$ac_ext 3092fi 3093{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3094echo "${ECHO_T}$ac_cv_objext" >&6; } 3095OBJEXT=$ac_cv_objext 3096ac_objext=$OBJEXT 3097{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3098echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3099if test "${ac_cv_c_compiler_gnu+set}" = set; then 3100 echo $ECHO_N "(cached) $ECHO_C" >&6 3101else 3102 cat >conftest.$ac_ext <<_ACEOF 3103/* confdefs.h. */ 3104_ACEOF 3105cat confdefs.h >>conftest.$ac_ext 3106cat >>conftest.$ac_ext <<_ACEOF 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112#ifndef __GNUC__ 3113 choke me 3114#endif 3115 3116 ; 3117 return 0; 3118} 3119_ACEOF 3120rm -f conftest.$ac_objext 3121if { (ac_try="$ac_compile" 3122case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125esac 3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3127 (eval "$ac_compile") 2>conftest.er1 3128 ac_status=$? 3129 grep -v '^ *+' conftest.er1 >conftest.err 3130 rm -f conftest.er1 3131 cat conftest.err >&5 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); } && { 3134 test -z "$ac_c_werror_flag" || 3135 test ! -s conftest.err 3136 } && test -s conftest.$ac_objext; then 3137 ac_compiler_gnu=yes 3138else 3139 echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 ac_compiler_gnu=no 3143fi 3144 3145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3146ac_cv_c_compiler_gnu=$ac_compiler_gnu 3147 3148fi 3149{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3150echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3151GCC=`test $ac_compiler_gnu = yes && echo yes` 3152ac_test_CFLAGS=${CFLAGS+set} 3153ac_save_CFLAGS=$CFLAGS 3154{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3155echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3156if test "${ac_cv_prog_cc_g+set}" = set; then 3157 echo $ECHO_N "(cached) $ECHO_C" >&6 3158else 3159 ac_save_c_werror_flag=$ac_c_werror_flag 3160 ac_c_werror_flag=yes 3161 ac_cv_prog_cc_g=no 3162 CFLAGS="-g" 3163 cat >conftest.$ac_ext <<_ACEOF 3164/* confdefs.h. */ 3165_ACEOF 3166cat confdefs.h >>conftest.$ac_ext 3167cat >>conftest.$ac_ext <<_ACEOF 3168/* end confdefs.h. */ 3169 3170int 3171main () 3172{ 3173 3174 ; 3175 return 0; 3176} 3177_ACEOF 3178rm -f conftest.$ac_objext 3179if { (ac_try="$ac_compile" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3185 (eval "$ac_compile") 2>conftest.er1 3186 ac_status=$? 3187 grep -v '^ *+' conftest.er1 >conftest.err 3188 rm -f conftest.er1 3189 cat conftest.err >&5 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && { 3192 test -z "$ac_c_werror_flag" || 3193 test ! -s conftest.err 3194 } && test -s conftest.$ac_objext; then 3195 ac_cv_prog_cc_g=yes 3196else 3197 echo "$as_me: failed program was:" >&5 3198sed 's/^/| /' conftest.$ac_ext >&5 3199 3200 CFLAGS="" 3201 cat >conftest.$ac_ext <<_ACEOF 3202/* confdefs.h. */ 3203_ACEOF 3204cat confdefs.h >>conftest.$ac_ext 3205cat >>conftest.$ac_ext <<_ACEOF 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216rm -f conftest.$ac_objext 3217if { (ac_try="$ac_compile" 3218case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3223 (eval "$ac_compile") 2>conftest.er1 3224 ac_status=$? 3225 grep -v '^ *+' conftest.er1 >conftest.err 3226 rm -f conftest.er1 3227 cat conftest.err >&5 3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3229 (exit $ac_status); } && { 3230 test -z "$ac_c_werror_flag" || 3231 test ! -s conftest.err 3232 } && test -s conftest.$ac_objext; then 3233 : 3234else 3235 echo "$as_me: failed program was:" >&5 3236sed 's/^/| /' conftest.$ac_ext >&5 3237 3238 ac_c_werror_flag=$ac_save_c_werror_flag 3239 CFLAGS="-g" 3240 cat >conftest.$ac_ext <<_ACEOF 3241/* confdefs.h. */ 3242_ACEOF 3243cat confdefs.h >>conftest.$ac_ext 3244cat >>conftest.$ac_ext <<_ACEOF 3245/* end confdefs.h. */ 3246 3247int 3248main () 3249{ 3250 3251 ; 3252 return 0; 3253} 3254_ACEOF 3255rm -f conftest.$ac_objext 3256if { (ac_try="$ac_compile" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3262 (eval "$ac_compile") 2>conftest.er1 3263 ac_status=$? 3264 grep -v '^ *+' conftest.er1 >conftest.err 3265 rm -f conftest.er1 3266 cat conftest.err >&5 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); } && { 3269 test -z "$ac_c_werror_flag" || 3270 test ! -s conftest.err 3271 } && test -s conftest.$ac_objext; then 3272 ac_cv_prog_cc_g=yes 3273else 3274 echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277 3278fi 3279 3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3281fi 3282 3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3284fi 3285 3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3287 ac_c_werror_flag=$ac_save_c_werror_flag 3288fi 3289{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3290echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3291if test "$ac_test_CFLAGS" = set; then 3292 CFLAGS=$ac_save_CFLAGS 3293elif test $ac_cv_prog_cc_g = yes; then 3294 if test "$GCC" = yes; then 3295 CFLAGS="-g -O2" 3296 else 3297 CFLAGS="-g" 3298 fi 3299else 3300 if test "$GCC" = yes; then 3301 CFLAGS="-O2" 3302 else 3303 CFLAGS= 3304 fi 3305fi 3306{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3307echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3308if test "${ac_cv_prog_cc_c89+set}" = set; then 3309 echo $ECHO_N "(cached) $ECHO_C" >&6 3310else 3311 ac_cv_prog_cc_c89=no 3312ac_save_CC=$CC 3313cat >conftest.$ac_ext <<_ACEOF 3314/* confdefs.h. */ 3315_ACEOF 3316cat confdefs.h >>conftest.$ac_ext 3317cat >>conftest.$ac_ext <<_ACEOF 3318/* end confdefs.h. */ 3319#include <stdarg.h> 3320#include <stdio.h> 3321#include <sys/types.h> 3322#include <sys/stat.h> 3323/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3324struct buf { int x; }; 3325FILE * (*rcsopen) (struct buf *, struct stat *, int); 3326static char *e (p, i) 3327 char **p; 3328 int i; 3329{ 3330 return p[i]; 3331} 3332static char *f (char * (*g) (char **, int), char **p, ...) 3333{ 3334 char *s; 3335 va_list v; 3336 va_start (v,p); 3337 s = g (p, va_arg (v,int)); 3338 va_end (v); 3339 return s; 3340} 3341 3342/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3343 function prototypes and stuff, but not '\xHH' hex character constants. 3344 These don't provoke an error unfortunately, instead are silently treated 3345 as 'x'. The following induces an error, until -std is added to get 3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3347 array size at least. It's necessary to write '\x00'==0 to get something 3348 that's true only with -std. */ 3349int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3350 3351/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3352 inside strings and character constants. */ 3353#define FOO(x) 'x' 3354int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3355 3356int test (int i, double x); 3357struct s1 {int (*f) (int a);}; 3358struct s2 {int (*f) (double a);}; 3359int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3360int argc; 3361char **argv; 3362int 3363main () 3364{ 3365return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3366 ; 3367 return 0; 3368} 3369_ACEOF 3370for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3372do 3373 CC="$ac_save_CC $ac_arg" 3374 rm -f conftest.$ac_objext 3375if { (ac_try="$ac_compile" 3376case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379esac 3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3381 (eval "$ac_compile") 2>conftest.er1 3382 ac_status=$? 3383 grep -v '^ *+' conftest.er1 >conftest.err 3384 rm -f conftest.er1 3385 cat conftest.err >&5 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); } && { 3388 test -z "$ac_c_werror_flag" || 3389 test ! -s conftest.err 3390 } && test -s conftest.$ac_objext; then 3391 ac_cv_prog_cc_c89=$ac_arg 3392else 3393 echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396 3397fi 3398 3399rm -f core conftest.err conftest.$ac_objext 3400 test "x$ac_cv_prog_cc_c89" != "xno" && break 3401done 3402rm -f conftest.$ac_ext 3403CC=$ac_save_CC 3404 3405fi 3406# AC_CACHE_VAL 3407case "x$ac_cv_prog_cc_c89" in 3408 x) 3409 { echo "$as_me:$LINENO: result: none needed" >&5 3410echo "${ECHO_T}none needed" >&6; } ;; 3411 xno) 3412 { echo "$as_me:$LINENO: result: unsupported" >&5 3413echo "${ECHO_T}unsupported" >&6; } ;; 3414 *) 3415 CC="$CC $ac_cv_prog_cc_c89" 3416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3417echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3418esac 3419 3420 3421ac_ext=c 3422ac_cpp='$CPP $CPPFLAGS' 3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3425ac_compiler_gnu=$ac_cv_c_compiler_gnu 3426DEPDIR="${am__leading_dot}deps" 3427 3428ac_config_commands="$ac_config_commands depfiles" 3429 3430 3431am_make=${MAKE-make} 3432cat > confinc << 'END' 3433am__doit: 3434 @echo done 3435.PHONY: am__doit 3436END 3437# If we don't find an include directive, just comment out the code. 3438{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3439echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3440am__include="#" 3441am__quote= 3442_am_result=none 3443# First try GNU make style include. 3444echo "include confinc" > confmf 3445# We grep out `Entering directory' and `Leaving directory' 3446# messages which can occur if `w' ends up in MAKEFLAGS. 3447# In particular we don't look at `^make:' because GNU make might 3448# be invoked under some other name (usually "gmake"), in which 3449# case it prints its new name instead of `make'. 3450if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3451 am__include=include 3452 am__quote= 3453 _am_result=GNU 3454fi 3455# Now try BSD make style include. 3456if test "$am__include" = "#"; then 3457 echo '.include "confinc"' > confmf 3458 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3459 am__include=.include 3460 am__quote="\"" 3461 _am_result=BSD 3462 fi 3463fi 3464 3465 3466{ echo "$as_me:$LINENO: result: $_am_result" >&5 3467echo "${ECHO_T}$_am_result" >&6; } 3468rm -f confinc confmf 3469 3470# Check whether --enable-dependency-tracking was given. 3471if test "${enable_dependency_tracking+set}" = set; then 3472 enableval=$enable_dependency_tracking; 3473fi 3474 3475if test "x$enable_dependency_tracking" != xno; then 3476 am_depcomp="$ac_aux_dir/depcomp" 3477 AMDEPBACKSLASH='\' 3478fi 3479 if test "x$enable_dependency_tracking" != xno; then 3480 AMDEP_TRUE= 3481 AMDEP_FALSE='#' 3482else 3483 AMDEP_TRUE='#' 3484 AMDEP_FALSE= 3485fi 3486 3487 3488 3489depcc="$CC" am_compiler_list= 3490 3491{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3492echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3493if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3494 echo $ECHO_N "(cached) $ECHO_C" >&6 3495else 3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3497 # We make a subdir and do the tests there. Otherwise we can end up 3498 # making bogus files that we don't know about and never remove. For 3499 # instance it was reported that on HP-UX the gcc test will end up 3500 # making a dummy file named `D' -- because `-MD' means `put the output 3501 # in D'. 3502 mkdir conftest.dir 3503 # Copy depcomp to subdir because otherwise we won't find it if we're 3504 # using a relative directory. 3505 cp "$am_depcomp" conftest.dir 3506 cd conftest.dir 3507 # We will build objects and dependencies in a subdirectory because 3508 # it helps to detect inapplicable dependency modes. For instance 3509 # both Tru64's cc and ICC support -MD to output dependencies as a 3510 # side effect of compilation, but ICC will put the dependencies in 3511 # the current directory while Tru64 will put them in the object 3512 # directory. 3513 mkdir sub 3514 3515 am_cv_CC_dependencies_compiler_type=none 3516 if test "$am_compiler_list" = ""; then 3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3518 fi 3519 for depmode in $am_compiler_list; do 3520 # Setup a source with many dependencies, because some compilers 3521 # like to wrap large dependency lists on column 80 (with \), and 3522 # we should not choose a depcomp mode which is confused by this. 3523 # 3524 # We need to recreate these files for each test, as the compiler may 3525 # overwrite some of them when testing with obscure command lines. 3526 # This happens at least with the AIX C compiler. 3527 : > sub/conftest.c 3528 for i in 1 2 3 4 5 6; do 3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3531 # Solaris 8's {/usr,}/bin/sh. 3532 touch sub/conftst$i.h 3533 done 3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3535 3536 case $depmode in 3537 nosideeffect) 3538 # after this tag, mechanisms are not by side-effect, so they'll 3539 # only be used when explicitly requested 3540 if test "x$enable_dependency_tracking" = xyes; then 3541 continue 3542 else 3543 break 3544 fi 3545 ;; 3546 none) break ;; 3547 esac 3548 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3549 # mode. It turns out that the SunPro C++ compiler does not properly 3550 # handle `-M -o', and we need to detect this. 3551 if depmode=$depmode \ 3552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3555 >/dev/null 2>conftest.err && 3556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3558 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3560 # icc doesn't choke on unknown options, it will just issue warnings 3561 # or remarks (even with -Werror). So we grep stderr for any message 3562 # that says an option was ignored or not supported. 3563 # When given -MP, icc 7.0 and 7.1 complain thusly: 3564 # icc: Command line warning: ignoring option '-M'; no argument required 3565 # The diagnosis changed in icc 8.0: 3566 # icc: Command line remark: option '-MP' not supported 3567 if (grep 'ignoring option' conftest.err || 3568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3569 am_cv_CC_dependencies_compiler_type=$depmode 3570 break 3571 fi 3572 fi 3573 done 3574 3575 cd .. 3576 rm -rf conftest.dir 3577else 3578 am_cv_CC_dependencies_compiler_type=none 3579fi 3580 3581fi 3582{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3583echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3584CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3585 3586 if 3587 test "x$enable_dependency_tracking" != xno \ 3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3589 am__fastdepCC_TRUE= 3590 am__fastdepCC_FALSE='#' 3591else 3592 am__fastdepCC_TRUE='#' 3593 am__fastdepCC_FALSE= 3594fi 3595 3596 3597# Check whether --enable-shared was given. 3598if test "${enable_shared+set}" = set; then 3599 enableval=$enable_shared; p=${PACKAGE-default} 3600 case $enableval in 3601 yes) enable_shared=yes ;; 3602 no) enable_shared=no ;; 3603 *) 3604 enable_shared=no 3605 # Look at the argument we got. We use all the common list separators. 3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3607 for pkg in $enableval; do 3608 IFS="$lt_save_ifs" 3609 if test "X$pkg" = "X$p"; then 3610 enable_shared=yes 3611 fi 3612 done 3613 IFS="$lt_save_ifs" 3614 ;; 3615 esac 3616else 3617 enable_shared=yes 3618fi 3619 3620 3621# Check whether --enable-static was given. 3622if test "${enable_static+set}" = set; then 3623 enableval=$enable_static; p=${PACKAGE-default} 3624 case $enableval in 3625 yes) enable_static=yes ;; 3626 no) enable_static=no ;; 3627 *) 3628 enable_static=no 3629 # Look at the argument we got. We use all the common list separators. 3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3631 for pkg in $enableval; do 3632 IFS="$lt_save_ifs" 3633 if test "X$pkg" = "X$p"; then 3634 enable_static=yes 3635 fi 3636 done 3637 IFS="$lt_save_ifs" 3638 ;; 3639 esac 3640else 3641 enable_static=yes 3642fi 3643 3644 3645# Check whether --enable-fast-install was given. 3646if test "${enable_fast_install+set}" = set; then 3647 enableval=$enable_fast_install; p=${PACKAGE-default} 3648 case $enableval in 3649 yes) enable_fast_install=yes ;; 3650 no) enable_fast_install=no ;; 3651 *) 3652 enable_fast_install=no 3653 # Look at the argument we got. We use all the common list separators. 3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3655 for pkg in $enableval; do 3656 IFS="$lt_save_ifs" 3657 if test "X$pkg" = "X$p"; then 3658 enable_fast_install=yes 3659 fi 3660 done 3661 IFS="$lt_save_ifs" 3662 ;; 3663 esac 3664else 3665 enable_fast_install=yes 3666fi 3667 3668 3669# Make sure we can run config.sub. 3670$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3672echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3673 { (exit 1); exit 1; }; } 3674 3675{ echo "$as_me:$LINENO: checking build system type" >&5 3676echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3677if test "${ac_cv_build+set}" = set; then 3678 echo $ECHO_N "(cached) $ECHO_C" >&6 3679else 3680 ac_build_alias=$build_alias 3681test "x$ac_build_alias" = x && 3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3683test "x$ac_build_alias" = x && 3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3685echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3686 { (exit 1); exit 1; }; } 3687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3689echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3690 { (exit 1); exit 1; }; } 3691 3692fi 3693{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3694echo "${ECHO_T}$ac_cv_build" >&6; } 3695case $ac_cv_build in 3696*-*-*) ;; 3697*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3698echo "$as_me: error: invalid value of canonical build" >&2;} 3699 { (exit 1); exit 1; }; };; 3700esac 3701build=$ac_cv_build 3702ac_save_IFS=$IFS; IFS='-' 3703set x $ac_cv_build 3704shift 3705build_cpu=$1 3706build_vendor=$2 3707shift; shift 3708# Remember, the first character of IFS is used to create $*, 3709# except with old shells: 3710build_os=$* 3711IFS=$ac_save_IFS 3712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3713 3714 3715{ echo "$as_me:$LINENO: checking host system type" >&5 3716echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3717if test "${ac_cv_host+set}" = set; then 3718 echo $ECHO_N "(cached) $ECHO_C" >&6 3719else 3720 if test "x$host_alias" = x; then 3721 ac_cv_host=$ac_cv_build 3722else 3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3725echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3726 { (exit 1); exit 1; }; } 3727fi 3728 3729fi 3730{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3731echo "${ECHO_T}$ac_cv_host" >&6; } 3732case $ac_cv_host in 3733*-*-*) ;; 3734*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3735echo "$as_me: error: invalid value of canonical host" >&2;} 3736 { (exit 1); exit 1; }; };; 3737esac 3738host=$ac_cv_host 3739ac_save_IFS=$IFS; IFS='-' 3740set x $ac_cv_host 3741shift 3742host_cpu=$1 3743host_vendor=$2 3744shift; shift 3745# Remember, the first character of IFS is used to create $*, 3746# except with old shells: 3747host_os=$* 3748IFS=$ac_save_IFS 3749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3750 3751 3752{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3753echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3754if test "${lt_cv_path_SED+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756else 3757 # Loop through the user's path and test for sed and gsed. 3758# Then use that list of sed's as ones to test for truncation. 3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3760for as_dir in $PATH 3761do 3762 IFS=$as_save_IFS 3763 test -z "$as_dir" && as_dir=. 3764 for lt_ac_prog in sed gsed; do 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3767 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3768 fi 3769 done 3770 done 3771done 3772IFS=$as_save_IFS 3773lt_ac_max=0 3774lt_ac_count=0 3775# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3776# along with /bin/sed that truncates output. 3777for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3778 test ! -f $lt_ac_sed && continue 3779 cat /dev/null > conftest.in 3780 lt_ac_count=0 3781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3782 # Check for GNU sed and select it if it is found. 3783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3784 lt_cv_path_SED=$lt_ac_sed 3785 break 3786 fi 3787 while true; do 3788 cat conftest.in conftest.in >conftest.tmp 3789 mv conftest.tmp conftest.in 3790 cp conftest.in conftest.nl 3791 echo >>conftest.nl 3792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3793 cmp -s conftest.out conftest.nl || break 3794 # 10000 chars as input seems more than enough 3795 test $lt_ac_count -gt 10 && break 3796 lt_ac_count=`expr $lt_ac_count + 1` 3797 if test $lt_ac_count -gt $lt_ac_max; then 3798 lt_ac_max=$lt_ac_count 3799 lt_cv_path_SED=$lt_ac_sed 3800 fi 3801 done 3802done 3803 3804fi 3805 3806SED=$lt_cv_path_SED 3807 3808{ echo "$as_me:$LINENO: result: $SED" >&5 3809echo "${ECHO_T}$SED" >&6; } 3810 3811{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3812echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3813if test "${ac_cv_path_GREP+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 # Extract the first word of "grep ggrep" to use in msg output 3817if test -z "$GREP"; then 3818set dummy grep ggrep; ac_prog_name=$2 3819if test "${ac_cv_path_GREP+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 ac_path_GREP_found=false 3823# Loop through the user's path and test for each of PROGNAME-LIST 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_prog in grep ggrep; do 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3832 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3833 # Check for GNU ac_path_GREP and select it if it is found. 3834 # Check for GNU $ac_path_GREP 3835case `"$ac_path_GREP" --version 2>&1` in 3836*GNU*) 3837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3838*) 3839 ac_count=0 3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3841 while : 3842 do 3843 cat "conftest.in" "conftest.in" >"conftest.tmp" 3844 mv "conftest.tmp" "conftest.in" 3845 cp "conftest.in" "conftest.nl" 3846 echo 'GREP' >> "conftest.nl" 3847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3849 ac_count=`expr $ac_count + 1` 3850 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3851 # Best one so far, save it but keep looking for a better one 3852 ac_cv_path_GREP="$ac_path_GREP" 3853 ac_path_GREP_max=$ac_count 3854 fi 3855 # 10*(2^10) chars as input seems more than enough 3856 test $ac_count -gt 10 && break 3857 done 3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3859esac 3860 3861 3862 $ac_path_GREP_found && break 3 3863 done 3864done 3865 3866done 3867IFS=$as_save_IFS 3868 3869 3870fi 3871 3872GREP="$ac_cv_path_GREP" 3873if test -z "$GREP"; then 3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3875echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3876 { (exit 1); exit 1; }; } 3877fi 3878 3879else 3880 ac_cv_path_GREP=$GREP 3881fi 3882 3883 3884fi 3885{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3886echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3887 GREP="$ac_cv_path_GREP" 3888 3889 3890{ echo "$as_me:$LINENO: checking for egrep" >&5 3891echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3892if test "${ac_cv_path_EGREP+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3896 then ac_cv_path_EGREP="$GREP -E" 3897 else 3898 # Extract the first word of "egrep" to use in msg output 3899if test -z "$EGREP"; then 3900set dummy egrep; ac_prog_name=$2 3901if test "${ac_cv_path_EGREP+set}" = set; then 3902 echo $ECHO_N "(cached) $ECHO_C" >&6 3903else 3904 ac_path_EGREP_found=false 3905# Loop through the user's path and test for each of PROGNAME-LIST 3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3908do 3909 IFS=$as_save_IFS 3910 test -z "$as_dir" && as_dir=. 3911 for ac_prog in egrep; do 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3915 # Check for GNU ac_path_EGREP and select it if it is found. 3916 # Check for GNU $ac_path_EGREP 3917case `"$ac_path_EGREP" --version 2>&1` in 3918*GNU*) 3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3920*) 3921 ac_count=0 3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3923 while : 3924 do 3925 cat "conftest.in" "conftest.in" >"conftest.tmp" 3926 mv "conftest.tmp" "conftest.in" 3927 cp "conftest.in" "conftest.nl" 3928 echo 'EGREP' >> "conftest.nl" 3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3931 ac_count=`expr $ac_count + 1` 3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3933 # Best one so far, save it but keep looking for a better one 3934 ac_cv_path_EGREP="$ac_path_EGREP" 3935 ac_path_EGREP_max=$ac_count 3936 fi 3937 # 10*(2^10) chars as input seems more than enough 3938 test $ac_count -gt 10 && break 3939 done 3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3941esac 3942 3943 3944 $ac_path_EGREP_found && break 3 3945 done 3946done 3947 3948done 3949IFS=$as_save_IFS 3950 3951 3952fi 3953 3954EGREP="$ac_cv_path_EGREP" 3955if test -z "$EGREP"; then 3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3957echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3958 { (exit 1); exit 1; }; } 3959fi 3960 3961else 3962 ac_cv_path_EGREP=$EGREP 3963fi 3964 3965 3966 fi 3967fi 3968{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3969echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3970 EGREP="$ac_cv_path_EGREP" 3971 3972 3973 3974# Check whether --with-gnu-ld was given. 3975if test "${with_gnu_ld+set}" = set; then 3976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3977else 3978 with_gnu_ld=no 3979fi 3980 3981ac_prog=ld 3982if test "$GCC" = yes; then 3983 # Check if gcc -print-prog-name=ld gives a path. 3984 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3985echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3986 case $host in 3987 *-*-mingw*) 3988 # gcc leaves a trailing carriage return which upsets mingw 3989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3990 *) 3991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3992 esac 3993 case $ac_prog in 3994 # Accept absolute paths. 3995 [\\/]* | ?:[\\/]*) 3996 re_direlt='/[^/][^/]*/\.\./' 3997 # Canonicalize the pathname of ld 3998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4001 done 4002 test -z "$LD" && LD="$ac_prog" 4003 ;; 4004 "") 4005 # If it fails, then pretend we aren't using GCC. 4006 ac_prog=ld 4007 ;; 4008 *) 4009 # If it is relative, then search for the first ld in PATH. 4010 with_gnu_ld=unknown 4011 ;; 4012 esac 4013elif test "$with_gnu_ld" = yes; then 4014 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4015echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4016else 4017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4018echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4019fi 4020if test "${lt_cv_path_LD+set}" = set; then 4021 echo $ECHO_N "(cached) $ECHO_C" >&6 4022else 4023 if test -z "$LD"; then 4024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4025 for ac_dir in $PATH; do 4026 IFS="$lt_save_ifs" 4027 test -z "$ac_dir" && ac_dir=. 4028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4029 lt_cv_path_LD="$ac_dir/$ac_prog" 4030 # Check to see if the program is GNU ld. I'd rather use --version, 4031 # but apparently some variants of GNU ld only accept -v. 4032 # Break only if it was the GNU/non-GNU ld that we prefer. 4033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4034 *GNU* | *'with BFD'*) 4035 test "$with_gnu_ld" != no && break 4036 ;; 4037 *) 4038 test "$with_gnu_ld" != yes && break 4039 ;; 4040 esac 4041 fi 4042 done 4043 IFS="$lt_save_ifs" 4044else 4045 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4046fi 4047fi 4048 4049LD="$lt_cv_path_LD" 4050if test -n "$LD"; then 4051 { echo "$as_me:$LINENO: result: $LD" >&5 4052echo "${ECHO_T}$LD" >&6; } 4053else 4054 { echo "$as_me:$LINENO: result: no" >&5 4055echo "${ECHO_T}no" >&6; } 4056fi 4057test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4058echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4059 { (exit 1); exit 1; }; } 4060{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4061echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4062if test "${lt_cv_prog_gnu_ld+set}" = set; then 4063 echo $ECHO_N "(cached) $ECHO_C" >&6 4064else 4065 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4066case `$LD -v 2>&1 </dev/null` in 4067*GNU* | *'with BFD'*) 4068 lt_cv_prog_gnu_ld=yes 4069 ;; 4070*) 4071 lt_cv_prog_gnu_ld=no 4072 ;; 4073esac 4074fi 4075{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4076echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4077with_gnu_ld=$lt_cv_prog_gnu_ld 4078 4079 4080{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4081echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4082if test "${lt_cv_ld_reload_flag+set}" = set; then 4083 echo $ECHO_N "(cached) $ECHO_C" >&6 4084else 4085 lt_cv_ld_reload_flag='-r' 4086fi 4087{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4088echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4089reload_flag=$lt_cv_ld_reload_flag 4090case $reload_flag in 4091"" | " "*) ;; 4092*) reload_flag=" $reload_flag" ;; 4093esac 4094reload_cmds='$LD$reload_flag -o $output$reload_objs' 4095case $host_os in 4096 darwin*) 4097 if test "$GCC" = yes; then 4098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4099 else 4100 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4101 fi 4102 ;; 4103esac 4104 4105{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4106echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4107if test "${lt_cv_path_NM+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 if test -n "$NM"; then 4111 # Let the user override the test. 4112 lt_cv_path_NM="$NM" 4113else 4114 lt_nm_to_check="${ac_tool_prefix}nm" 4115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4116 lt_nm_to_check="$lt_nm_to_check nm" 4117 fi 4118 for lt_tmp_nm in $lt_nm_to_check; do 4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4121 IFS="$lt_save_ifs" 4122 test -z "$ac_dir" && ac_dir=. 4123 tmp_nm="$ac_dir/$lt_tmp_nm" 4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4125 # Check to see if the nm accepts a BSD-compat flag. 4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4127 # nm: unknown option "B" ignored 4128 # Tru64's nm complains that /dev/null is an invalid object file 4129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4130 */dev/null* | *'Invalid file or object type'*) 4131 lt_cv_path_NM="$tmp_nm -B" 4132 break 4133 ;; 4134 *) 4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4136 */dev/null*) 4137 lt_cv_path_NM="$tmp_nm -p" 4138 break 4139 ;; 4140 *) 4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4142 continue # so that we can try to find one that supports BSD flags 4143 ;; 4144 esac 4145 ;; 4146 esac 4147 fi 4148 done 4149 IFS="$lt_save_ifs" 4150 done 4151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4152fi 4153fi 4154{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4155echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4156NM="$lt_cv_path_NM" 4157 4158{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4159echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4160LN_S=$as_ln_s 4161if test "$LN_S" = "ln -s"; then 4162 { echo "$as_me:$LINENO: result: yes" >&5 4163echo "${ECHO_T}yes" >&6; } 4164else 4165 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4166echo "${ECHO_T}no, using $LN_S" >&6; } 4167fi 4168 4169{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4170echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4171if test "${lt_cv_deplibs_check_method+set}" = set; then 4172 echo $ECHO_N "(cached) $ECHO_C" >&6 4173else 4174 lt_cv_file_magic_cmd='$MAGIC_CMD' 4175lt_cv_file_magic_test_file= 4176lt_cv_deplibs_check_method='unknown' 4177# Need to set the preceding variable on all platforms that support 4178# interlibrary dependencies. 4179# 'none' -- dependencies not supported. 4180# `unknown' -- same as none, but documents that we really don't know. 4181# 'pass_all' -- all dependencies passed with no checks. 4182# 'test_compile' -- check by making test program. 4183# 'file_magic [[regex]]' -- check by looking for files in library path 4184# which responds to the $file_magic_cmd with a given extended regex. 4185# If you have `file' or equivalent on your system and you're not sure 4186# whether `pass_all' will *always* work, you probably want this one. 4187 4188case $host_os in 4189aix4* | aix5*) 4190 lt_cv_deplibs_check_method=pass_all 4191 ;; 4192 4193beos*) 4194 lt_cv_deplibs_check_method=pass_all 4195 ;; 4196 4197bsdi[45]*) 4198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4199 lt_cv_file_magic_cmd='/usr/bin/file -L' 4200 lt_cv_file_magic_test_file=/shlib/libc.so 4201 ;; 4202 4203cygwin*) 4204 # func_win32_libid is a shell function defined in ltmain.sh 4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4206 lt_cv_file_magic_cmd='func_win32_libid' 4207 ;; 4208 4209mingw* | pw32*) 4210 # Base MSYS/MinGW do not provide the 'file' command needed by 4211 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4212 # unless we find 'file', for example because we are cross-compiling. 4213 if ( file / ) >/dev/null 2>&1; then 4214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4215 lt_cv_file_magic_cmd='func_win32_libid' 4216 else 4217 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4218 lt_cv_file_magic_cmd='$OBJDUMP -f' 4219 fi 4220 ;; 4221 4222darwin* | rhapsody*) 4223 lt_cv_deplibs_check_method=pass_all 4224 ;; 4225 4226freebsd* | dragonfly*) 4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4228 case $host_cpu in 4229 i*86 ) 4230 # Not sure whether the presence of OpenBSD here was a mistake. 4231 # Let's accept both of them until this is cleared up. 4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4233 lt_cv_file_magic_cmd=/usr/bin/file 4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4235 ;; 4236 esac 4237 else 4238 lt_cv_deplibs_check_method=pass_all 4239 fi 4240 ;; 4241 4242gnu*) 4243 lt_cv_deplibs_check_method=pass_all 4244 ;; 4245 4246hpux10.20* | hpux11*) 4247 lt_cv_file_magic_cmd=/usr/bin/file 4248 case $host_cpu in 4249 ia64*) 4250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4252 ;; 4253 hppa*64*) 4254 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]' 4255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4256 ;; 4257 *) 4258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4259 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4260 ;; 4261 esac 4262 ;; 4263 4264interix[3-9]*) 4265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4267 ;; 4268 4269irix5* | irix6* | nonstopux*) 4270 case $LD in 4271 *-32|*"-32 ") libmagic=32-bit;; 4272 *-n32|*"-n32 ") libmagic=N32;; 4273 *-64|*"-64 ") libmagic=64-bit;; 4274 *) libmagic=never-match;; 4275 esac 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 4279# This must be Linux ELF. 4280linux* | k*bsd*-gnu) 4281 lt_cv_deplibs_check_method=pass_all 4282 ;; 4283 4284netbsd*) 4285 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4287 else 4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4289 fi 4290 ;; 4291 4292newos6*) 4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4294 lt_cv_file_magic_cmd=/usr/bin/file 4295 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4296 ;; 4297 4298nto-qnx*) 4299 lt_cv_deplibs_check_method=unknown 4300 ;; 4301 4302openbsd*) 4303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4305 else 4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4307 fi 4308 ;; 4309 4310osf3* | osf4* | osf5*) 4311 lt_cv_deplibs_check_method=pass_all 4312 ;; 4313 4314rdos*) 4315 lt_cv_deplibs_check_method=pass_all 4316 ;; 4317 4318solaris*) 4319 lt_cv_deplibs_check_method=pass_all 4320 ;; 4321 4322sysv4 | sysv4.3*) 4323 case $host_vendor in 4324 motorola) 4325 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]' 4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4327 ;; 4328 ncr) 4329 lt_cv_deplibs_check_method=pass_all 4330 ;; 4331 sequent) 4332 lt_cv_file_magic_cmd='/bin/file' 4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4334 ;; 4335 sni) 4336 lt_cv_file_magic_cmd='/bin/file' 4337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4338 lt_cv_file_magic_test_file=/lib/libc.so 4339 ;; 4340 siemens) 4341 lt_cv_deplibs_check_method=pass_all 4342 ;; 4343 pc) 4344 lt_cv_deplibs_check_method=pass_all 4345 ;; 4346 esac 4347 ;; 4348 4349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4350 lt_cv_deplibs_check_method=pass_all 4351 ;; 4352esac 4353 4354fi 4355{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4356echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4357file_magic_cmd=$lt_cv_file_magic_cmd 4358deplibs_check_method=$lt_cv_deplibs_check_method 4359test -z "$deplibs_check_method" && deplibs_check_method=unknown 4360 4361 4362 4363 4364# If no C compiler was specified, use CC. 4365LTCC=${LTCC-"$CC"} 4366 4367# If no C compiler flags were specified, use CFLAGS. 4368LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4369 4370# Allow CC to be a program name with arguments. 4371compiler=$CC 4372 4373 4374# Check whether --enable-libtool-lock was given. 4375if test "${enable_libtool_lock+set}" = set; then 4376 enableval=$enable_libtool_lock; 4377fi 4378 4379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4380 4381# Some flags need to be propagated to the compiler or linker for good 4382# libtool support. 4383case $host in 4384ia64-*-hpux*) 4385 # Find out which ABI we are using. 4386 echo 'int i;' > conftest.$ac_ext 4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4388 (eval $ac_compile) 2>&5 4389 ac_status=$? 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); }; then 4392 case `/usr/bin/file conftest.$ac_objext` in 4393 *ELF-32*) 4394 HPUX_IA64_MODE="32" 4395 ;; 4396 *ELF-64*) 4397 HPUX_IA64_MODE="64" 4398 ;; 4399 esac 4400 fi 4401 rm -rf conftest* 4402 ;; 4403*-*-irix6*) 4404 # Find out which ABI we are using. 4405 echo '#line 4405 "configure"' > conftest.$ac_ext 4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4407 (eval $ac_compile) 2>&5 4408 ac_status=$? 4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4410 (exit $ac_status); }; then 4411 if test "$lt_cv_prog_gnu_ld" = yes; then 4412 case `/usr/bin/file conftest.$ac_objext` in 4413 *32-bit*) 4414 LD="${LD-ld} -melf32bsmip" 4415 ;; 4416 *N32*) 4417 LD="${LD-ld} -melf32bmipn32" 4418 ;; 4419 *64-bit*) 4420 LD="${LD-ld} -melf64bmip" 4421 ;; 4422 esac 4423 else 4424 case `/usr/bin/file conftest.$ac_objext` in 4425 *32-bit*) 4426 LD="${LD-ld} -32" 4427 ;; 4428 *N32*) 4429 LD="${LD-ld} -n32" 4430 ;; 4431 *64-bit*) 4432 LD="${LD-ld} -64" 4433 ;; 4434 esac 4435 fi 4436 fi 4437 rm -rf conftest* 4438 ;; 4439 4440x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4441s390*-*linux*|sparc*-*linux*) 4442 # Find out which ABI we are using. 4443 echo 'int i;' > conftest.$ac_ext 4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4445 (eval $ac_compile) 2>&5 4446 ac_status=$? 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); }; then 4449 case `/usr/bin/file conftest.o` in 4450 *32-bit*) 4451 case $host in 4452 x86_64-*kfreebsd*-gnu) 4453 LD="${LD-ld} -m elf_i386_fbsd" 4454 ;; 4455 x86_64-*linux*) 4456 LD="${LD-ld} -m elf_i386" 4457 ;; 4458 ppc64-*linux*|powerpc64-*linux*) 4459 LD="${LD-ld} -m elf32ppclinux" 4460 ;; 4461 s390x-*linux*) 4462 LD="${LD-ld} -m elf_s390" 4463 ;; 4464 sparc64-*linux*) 4465 LD="${LD-ld} -m elf32_sparc" 4466 ;; 4467 esac 4468 ;; 4469 *64-bit*) 4470 libsuff=64 4471 case $host in 4472 x86_64-*kfreebsd*-gnu) 4473 LD="${LD-ld} -m elf_x86_64_fbsd" 4474 ;; 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 test -z "$ac_c_werror_flag" || 4539 test ! -s conftest.err 4540 } && test -s conftest$ac_exeext && 4541 $as_test_x conftest$ac_exeext; then 4542 lt_cv_cc_needs_belf=yes 4543else 4544 echo "$as_me: failed program was:" >&5 4545sed 's/^/| /' conftest.$ac_ext >&5 4546 4547 lt_cv_cc_needs_belf=no 4548fi 4549 4550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4551 conftest$ac_exeext conftest.$ac_ext 4552 ac_ext=c 4553ac_cpp='$CPP $CPPFLAGS' 4554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4556ac_compiler_gnu=$ac_cv_c_compiler_gnu 4557 4558fi 4559{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4560echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4563 CFLAGS="$SAVE_CFLAGS" 4564 fi 4565 ;; 4566sparc*-*solaris*) 4567 # Find out which ABI we are using. 4568 echo 'int i;' > conftest.$ac_ext 4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4570 (eval $ac_compile) 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; then 4574 case `/usr/bin/file conftest.o` in 4575 *64-bit*) 4576 case $lt_cv_prog_gnu_ld in 4577 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4578 *) LD="${LD-ld} -64" ;; 4579 esac 4580 ;; 4581 esac 4582 fi 4583 rm -rf conftest* 4584 ;; 4585 4586 4587esac 4588 4589need_locks="$enable_libtool_lock" 4590 4591 4592ac_ext=c 4593ac_cpp='$CPP $CPPFLAGS' 4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4596ac_compiler_gnu=$ac_cv_c_compiler_gnu 4597{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4598echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4599# On Suns, sometimes $CPP names a directory. 4600if test -n "$CPP" && test -d "$CPP"; then 4601 CPP= 4602fi 4603if test -z "$CPP"; then 4604 if test "${ac_cv_prog_CPP+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606else 4607 # Double quotes because CPP needs to be expanded 4608 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4609 do 4610 ac_preproc_ok=false 4611for ac_c_preproc_warn_flag in '' yes 4612do 4613 # Use a header file that comes with gcc, so configuring glibc 4614 # with a fresh cross-compiler works. 4615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4616 # <limits.h> exists even on freestanding compilers. 4617 # On the NeXT, cc -E runs the code through the compiler's parser, 4618 # not just through cpp. "Syntax error" is here to catch this case. 4619 cat >conftest.$ac_ext <<_ACEOF 4620/* confdefs.h. */ 4621_ACEOF 4622cat confdefs.h >>conftest.$ac_ext 4623cat >>conftest.$ac_ext <<_ACEOF 4624/* end confdefs.h. */ 4625#ifdef __STDC__ 4626# include <limits.h> 4627#else 4628# include <assert.h> 4629#endif 4630 Syntax error 4631_ACEOF 4632if { (ac_try="$ac_cpp conftest.$ac_ext" 4633case "(($ac_try" in 4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4635 *) ac_try_echo=$ac_try;; 4636esac 4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4639 ac_status=$? 4640 grep -v '^ *+' conftest.er1 >conftest.err 4641 rm -f conftest.er1 4642 cat conftest.err >&5 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); } >/dev/null && { 4645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4646 test ! -s conftest.err 4647 }; then 4648 : 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653 # Broken: fails on valid input. 4654continue 4655fi 4656 4657rm -f conftest.err conftest.$ac_ext 4658 4659 # OK, works on sane cases. Now check whether nonexistent headers 4660 # can be detected and how. 4661 cat >conftest.$ac_ext <<_ACEOF 4662/* confdefs.h. */ 4663_ACEOF 4664cat confdefs.h >>conftest.$ac_ext 4665cat >>conftest.$ac_ext <<_ACEOF 4666/* end confdefs.h. */ 4667#include <ac_nonexistent.h> 4668_ACEOF 4669if { (ac_try="$ac_cpp conftest.$ac_ext" 4670case "(($ac_try" in 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4672 *) ac_try_echo=$ac_try;; 4673esac 4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 4678 rm -f conftest.er1 4679 cat conftest.err >&5 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } >/dev/null && { 4682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4683 test ! -s conftest.err 4684 }; then 4685 # Broken: success on invalid input. 4686continue 4687else 4688 echo "$as_me: failed program was:" >&5 4689sed 's/^/| /' conftest.$ac_ext >&5 4690 4691 # Passes both tests. 4692ac_preproc_ok=: 4693break 4694fi 4695 4696rm -f conftest.err conftest.$ac_ext 4697 4698done 4699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4700rm -f conftest.err conftest.$ac_ext 4701if $ac_preproc_ok; then 4702 break 4703fi 4704 4705 done 4706 ac_cv_prog_CPP=$CPP 4707 4708fi 4709 CPP=$ac_cv_prog_CPP 4710else 4711 ac_cv_prog_CPP=$CPP 4712fi 4713{ echo "$as_me:$LINENO: result: $CPP" >&5 4714echo "${ECHO_T}$CPP" >&6; } 4715ac_preproc_ok=false 4716for ac_c_preproc_warn_flag in '' yes 4717do 4718 # Use a header file that comes with gcc, so configuring glibc 4719 # with a fresh cross-compiler works. 4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4721 # <limits.h> exists even on freestanding compilers. 4722 # On the NeXT, cc -E runs the code through the compiler's parser, 4723 # not just through cpp. "Syntax error" is here to catch this case. 4724 cat >conftest.$ac_ext <<_ACEOF 4725/* confdefs.h. */ 4726_ACEOF 4727cat confdefs.h >>conftest.$ac_ext 4728cat >>conftest.$ac_ext <<_ACEOF 4729/* end confdefs.h. */ 4730#ifdef __STDC__ 4731# include <limits.h> 4732#else 4733# include <assert.h> 4734#endif 4735 Syntax error 4736_ACEOF 4737if { (ac_try="$ac_cpp conftest.$ac_ext" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } >/dev/null && { 4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 }; then 4753 : 4754else 4755 echo "$as_me: failed program was:" >&5 4756sed 's/^/| /' conftest.$ac_ext >&5 4757 4758 # Broken: fails on valid input. 4759continue 4760fi 4761 4762rm -f conftest.err conftest.$ac_ext 4763 4764 # OK, works on sane cases. Now check whether nonexistent headers 4765 # can be detected and how. 4766 cat >conftest.$ac_ext <<_ACEOF 4767/* confdefs.h. */ 4768_ACEOF 4769cat confdefs.h >>conftest.$ac_ext 4770cat >>conftest.$ac_ext <<_ACEOF 4771/* end confdefs.h. */ 4772#include <ac_nonexistent.h> 4773_ACEOF 4774if { (ac_try="$ac_cpp conftest.$ac_ext" 4775case "(($ac_try" in 4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4777 *) ac_try_echo=$ac_try;; 4778esac 4779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4781 ac_status=$? 4782 grep -v '^ *+' conftest.er1 >conftest.err 4783 rm -f conftest.er1 4784 cat conftest.err >&5 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); } >/dev/null && { 4787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4788 test ! -s conftest.err 4789 }; then 4790 # Broken: success on invalid input. 4791continue 4792else 4793 echo "$as_me: failed program was:" >&5 4794sed 's/^/| /' conftest.$ac_ext >&5 4795 4796 # Passes both tests. 4797ac_preproc_ok=: 4798break 4799fi 4800 4801rm -f conftest.err conftest.$ac_ext 4802 4803done 4804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4805rm -f conftest.err conftest.$ac_ext 4806if $ac_preproc_ok; then 4807 : 4808else 4809 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4810See \`config.log' for more details." >&5 4811echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4812See \`config.log' for more details." >&2;} 4813 { (exit 1); exit 1; }; } 4814fi 4815 4816ac_ext=c 4817ac_cpp='$CPP $CPPFLAGS' 4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4820ac_compiler_gnu=$ac_cv_c_compiler_gnu 4821 4822 4823{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4824echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4825if test "${ac_cv_header_stdc+set}" = set; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827else 4828 cat >conftest.$ac_ext <<_ACEOF 4829/* confdefs.h. */ 4830_ACEOF 4831cat confdefs.h >>conftest.$ac_ext 4832cat >>conftest.$ac_ext <<_ACEOF 4833/* end confdefs.h. */ 4834#include <stdlib.h> 4835#include <stdarg.h> 4836#include <string.h> 4837#include <float.h> 4838 4839int 4840main () 4841{ 4842 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847rm -f conftest.$ac_objext 4848if { (ac_try="$ac_compile" 4849case "(($ac_try" in 4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4851 *) ac_try_echo=$ac_try;; 4852esac 4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4854 (eval "$ac_compile") 2>conftest.er1 4855 ac_status=$? 4856 grep -v '^ *+' conftest.er1 >conftest.err 4857 rm -f conftest.er1 4858 cat conftest.err >&5 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); } && { 4861 test -z "$ac_c_werror_flag" || 4862 test ! -s conftest.err 4863 } && test -s conftest.$ac_objext; then 4864 ac_cv_header_stdc=yes 4865else 4866 echo "$as_me: failed program was:" >&5 4867sed 's/^/| /' conftest.$ac_ext >&5 4868 4869 ac_cv_header_stdc=no 4870fi 4871 4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4873 4874if test $ac_cv_header_stdc = yes; then 4875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4876 cat >conftest.$ac_ext <<_ACEOF 4877/* confdefs.h. */ 4878_ACEOF 4879cat confdefs.h >>conftest.$ac_ext 4880cat >>conftest.$ac_ext <<_ACEOF 4881/* end confdefs.h. */ 4882#include <string.h> 4883 4884_ACEOF 4885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4886 $EGREP "memchr" >/dev/null 2>&1; then 4887 : 4888else 4889 ac_cv_header_stdc=no 4890fi 4891rm -f conftest* 4892 4893fi 4894 4895if test $ac_cv_header_stdc = yes; then 4896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4897 cat >conftest.$ac_ext <<_ACEOF 4898/* confdefs.h. */ 4899_ACEOF 4900cat confdefs.h >>conftest.$ac_ext 4901cat >>conftest.$ac_ext <<_ACEOF 4902/* end confdefs.h. */ 4903#include <stdlib.h> 4904 4905_ACEOF 4906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4907 $EGREP "free" >/dev/null 2>&1; then 4908 : 4909else 4910 ac_cv_header_stdc=no 4911fi 4912rm -f conftest* 4913 4914fi 4915 4916if test $ac_cv_header_stdc = yes; then 4917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4918 if test "$cross_compiling" = yes; then 4919 : 4920else 4921 cat >conftest.$ac_ext <<_ACEOF 4922/* confdefs.h. */ 4923_ACEOF 4924cat confdefs.h >>conftest.$ac_ext 4925cat >>conftest.$ac_ext <<_ACEOF 4926/* end confdefs.h. */ 4927#include <ctype.h> 4928#include <stdlib.h> 4929#if ((' ' & 0x0FF) == 0x020) 4930# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4931# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4932#else 4933# define ISLOWER(c) \ 4934 (('a' <= (c) && (c) <= 'i') \ 4935 || ('j' <= (c) && (c) <= 'r') \ 4936 || ('s' <= (c) && (c) <= 'z')) 4937# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4938#endif 4939 4940#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4941int 4942main () 4943{ 4944 int i; 4945 for (i = 0; i < 256; i++) 4946 if (XOR (islower (i), ISLOWER (i)) 4947 || toupper (i) != TOUPPER (i)) 4948 return 2; 4949 return 0; 4950} 4951_ACEOF 4952rm -f conftest$ac_exeext 4953if { (ac_try="$ac_link" 4954case "(($ac_try" in 4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4956 *) ac_try_echo=$ac_try;; 4957esac 4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4959 (eval "$ac_link") 2>&5 4960 ac_status=$? 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4963 { (case "(($ac_try" in 4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4965 *) ac_try_echo=$ac_try;; 4966esac 4967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4968 (eval "$ac_try") 2>&5 4969 ac_status=$? 4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4971 (exit $ac_status); }; }; then 4972 : 4973else 4974 echo "$as_me: program exited with status $ac_status" >&5 4975echo "$as_me: failed program was:" >&5 4976sed 's/^/| /' conftest.$ac_ext >&5 4977 4978( exit $ac_status ) 4979ac_cv_header_stdc=no 4980fi 4981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4982fi 4983 4984 4985fi 4986fi 4987{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4988echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4989if test $ac_cv_header_stdc = yes; then 4990 4991cat >>confdefs.h <<\_ACEOF 4992#define STDC_HEADERS 1 4993_ACEOF 4994 4995fi 4996 4997# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5008 inttypes.h stdint.h unistd.h 5009do 5010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5011{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 5015else 5016 cat >conftest.$ac_ext <<_ACEOF 5017/* confdefs.h. */ 5018_ACEOF 5019cat confdefs.h >>conftest.$ac_ext 5020cat >>conftest.$ac_ext <<_ACEOF 5021/* end confdefs.h. */ 5022$ac_includes_default 5023 5024#include <$ac_header> 5025_ACEOF 5026rm -f conftest.$ac_objext 5027if { (ac_try="$ac_compile" 5028case "(($ac_try" in 5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5030 *) ac_try_echo=$ac_try;; 5031esac 5032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5033 (eval "$ac_compile") 2>conftest.er1 5034 ac_status=$? 5035 grep -v '^ *+' conftest.er1 >conftest.err 5036 rm -f conftest.er1 5037 cat conftest.err >&5 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } && { 5040 test -z "$ac_c_werror_flag" || 5041 test ! -s conftest.err 5042 } && test -s conftest.$ac_objext; then 5043 eval "$as_ac_Header=yes" 5044else 5045 echo "$as_me: failed program was:" >&5 5046sed 's/^/| /' conftest.$ac_ext >&5 5047 5048 eval "$as_ac_Header=no" 5049fi 5050 5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5052fi 5053ac_res=`eval echo '${'$as_ac_Header'}'` 5054 { echo "$as_me:$LINENO: result: $ac_res" >&5 5055echo "${ECHO_T}$ac_res" >&6; } 5056if test `eval echo '${'$as_ac_Header'}'` = yes; then 5057 cat >>confdefs.h <<_ACEOF 5058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5059_ACEOF 5060 5061fi 5062 5063done 5064 5065 5066 5067for ac_header in dlfcn.h 5068do 5069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5071 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5074 echo $ECHO_N "(cached) $ECHO_C" >&6 5075fi 5076ac_res=`eval echo '${'$as_ac_Header'}'` 5077 { echo "$as_me:$LINENO: result: $ac_res" >&5 5078echo "${ECHO_T}$ac_res" >&6; } 5079else 5080 # Is the header compilable? 5081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5083cat >conftest.$ac_ext <<_ACEOF 5084/* confdefs.h. */ 5085_ACEOF 5086cat confdefs.h >>conftest.$ac_ext 5087cat >>conftest.$ac_ext <<_ACEOF 5088/* end confdefs.h. */ 5089$ac_includes_default 5090#include <$ac_header> 5091_ACEOF 5092rm -f conftest.$ac_objext 5093if { (ac_try="$ac_compile" 5094case "(($ac_try" in 5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5096 *) ac_try_echo=$ac_try;; 5097esac 5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5099 (eval "$ac_compile") 2>conftest.er1 5100 ac_status=$? 5101 grep -v '^ *+' conftest.er1 >conftest.err 5102 rm -f conftest.er1 5103 cat conftest.err >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); } && { 5106 test -z "$ac_c_werror_flag" || 5107 test ! -s conftest.err 5108 } && test -s conftest.$ac_objext; then 5109 ac_header_compiler=yes 5110else 5111 echo "$as_me: failed program was:" >&5 5112sed 's/^/| /' conftest.$ac_ext >&5 5113 5114 ac_header_compiler=no 5115fi 5116 5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5119echo "${ECHO_T}$ac_header_compiler" >&6; } 5120 5121# Is the header present? 5122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5124cat >conftest.$ac_ext <<_ACEOF 5125/* confdefs.h. */ 5126_ACEOF 5127cat confdefs.h >>conftest.$ac_ext 5128cat >>conftest.$ac_ext <<_ACEOF 5129/* end confdefs.h. */ 5130#include <$ac_header> 5131_ACEOF 5132if { (ac_try="$ac_cpp conftest.$ac_ext" 5133case "(($ac_try" in 5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5135 *) ac_try_echo=$ac_try;; 5136esac 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5139 ac_status=$? 5140 grep -v '^ *+' conftest.er1 >conftest.err 5141 rm -f conftest.er1 5142 cat conftest.err >&5 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5144 (exit $ac_status); } >/dev/null && { 5145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5146 test ! -s conftest.err 5147 }; then 5148 ac_header_preproc=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153 ac_header_preproc=no 5154fi 5155 5156rm -f conftest.err conftest.$ac_ext 5157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5158echo "${ECHO_T}$ac_header_preproc" >&6; } 5159 5160# So? What about this header? 5161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5162 yes:no: ) 5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5167 ac_header_preproc=yes 5168 ;; 5169 no:yes:* ) 5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5182 ( cat <<\_ASBOX 5183## ---------------------------------------------------------------------- ## 5184## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5185## ---------------------------------------------------------------------- ## 5186_ASBOX 5187 ) | sed "s/^/$as_me: WARNING: /" >&2 5188 ;; 5189esac 5190{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 eval "$as_ac_Header=\$ac_header_preproc" 5196fi 5197ac_res=`eval echo '${'$as_ac_Header'}'` 5198 { echo "$as_me:$LINENO: result: $ac_res" >&5 5199echo "${ECHO_T}$ac_res" >&6; } 5200 5201fi 5202if test `eval echo '${'$as_ac_Header'}'` = yes; then 5203 cat >>confdefs.h <<_ACEOF 5204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5205_ACEOF 5206 5207fi 5208 5209done 5210 5211ac_ext=cpp 5212ac_cpp='$CXXCPP $CPPFLAGS' 5213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5216if test -z "$CXX"; then 5217 if test -n "$CCC"; then 5218 CXX=$CCC 5219 else 5220 if test -n "$ac_tool_prefix"; then 5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5222 do 5223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5224set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5227if test "${ac_cv_prog_CXX+set}" = set; then 5228 echo $ECHO_N "(cached) $ECHO_C" >&6 5229else 5230 if test -n "$CXX"; then 5231 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5232else 5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5234for as_dir in $PATH 5235do 5236 IFS=$as_save_IFS 5237 test -z "$as_dir" && as_dir=. 5238 for ac_exec_ext in '' $ac_executable_extensions; do 5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5242 break 2 5243 fi 5244done 5245done 5246IFS=$as_save_IFS 5247 5248fi 5249fi 5250CXX=$ac_cv_prog_CXX 5251if test -n "$CXX"; then 5252 { echo "$as_me:$LINENO: result: $CXX" >&5 5253echo "${ECHO_T}$CXX" >&6; } 5254else 5255 { echo "$as_me:$LINENO: result: no" >&5 5256echo "${ECHO_T}no" >&6; } 5257fi 5258 5259 5260 test -n "$CXX" && break 5261 done 5262fi 5263if test -z "$CXX"; then 5264 ac_ct_CXX=$CXX 5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5266do 5267 # Extract the first word of "$ac_prog", so it can be a program name with args. 5268set dummy $ac_prog; ac_word=$2 5269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5271if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5272 echo $ECHO_N "(cached) $ECHO_C" >&6 5273else 5274 if test -n "$ac_ct_CXX"; then 5275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5284 ac_cv_prog_ac_ct_CXX="$ac_prog" 5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289done 5290IFS=$as_save_IFS 5291 5292fi 5293fi 5294ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5295if test -n "$ac_ct_CXX"; then 5296 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5297echo "${ECHO_T}$ac_ct_CXX" >&6; } 5298else 5299 { echo "$as_me:$LINENO: result: no" >&5 5300echo "${ECHO_T}no" >&6; } 5301fi 5302 5303 5304 test -n "$ac_ct_CXX" && break 5305done 5306 5307 if test "x$ac_ct_CXX" = x; then 5308 CXX="g++" 5309 else 5310 case $cross_compiling:$ac_tool_warned in 5311yes:) 5312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5313whose name does not start with the host triplet. If you think this 5314configuration is useful to you, please write to autoconf@gnu.org." >&5 5315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5316whose name does not start with the host triplet. If you think this 5317configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5318ac_tool_warned=yes ;; 5319esac 5320 CXX=$ac_ct_CXX 5321 fi 5322fi 5323 5324 fi 5325fi 5326# Provide some information about the compiler. 5327echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5328ac_compiler=`set X $ac_compile; echo $2` 5329{ (ac_try="$ac_compiler --version >&5" 5330case "(($ac_try" in 5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5332 *) ac_try_echo=$ac_try;; 5333esac 5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5335 (eval "$ac_compiler --version >&5") 2>&5 5336 ac_status=$? 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); } 5339{ (ac_try="$ac_compiler -v >&5" 5340case "(($ac_try" in 5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5342 *) ac_try_echo=$ac_try;; 5343esac 5344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5345 (eval "$ac_compiler -v >&5") 2>&5 5346 ac_status=$? 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); } 5349{ (ac_try="$ac_compiler -V >&5" 5350case "(($ac_try" in 5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5352 *) ac_try_echo=$ac_try;; 5353esac 5354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5355 (eval "$ac_compiler -V >&5") 2>&5 5356 ac_status=$? 5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5358 (exit $ac_status); } 5359 5360{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5361echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5362if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5363 echo $ECHO_N "(cached) $ECHO_C" >&6 5364else 5365 cat >conftest.$ac_ext <<_ACEOF 5366/* confdefs.h. */ 5367_ACEOF 5368cat confdefs.h >>conftest.$ac_ext 5369cat >>conftest.$ac_ext <<_ACEOF 5370/* end confdefs.h. */ 5371 5372int 5373main () 5374{ 5375#ifndef __GNUC__ 5376 choke me 5377#endif 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383rm -f conftest.$ac_objext 5384if { (ac_try="$ac_compile" 5385case "(($ac_try" in 5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5387 *) ac_try_echo=$ac_try;; 5388esac 5389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5390 (eval "$ac_compile") 2>conftest.er1 5391 ac_status=$? 5392 grep -v '^ *+' conftest.er1 >conftest.err 5393 rm -f conftest.er1 5394 cat conftest.err >&5 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); } && { 5397 test -z "$ac_cxx_werror_flag" || 5398 test ! -s conftest.err 5399 } && test -s conftest.$ac_objext; then 5400 ac_compiler_gnu=yes 5401else 5402 echo "$as_me: failed program was:" >&5 5403sed 's/^/| /' conftest.$ac_ext >&5 5404 5405 ac_compiler_gnu=no 5406fi 5407 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5410 5411fi 5412{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5413echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5414GXX=`test $ac_compiler_gnu = yes && echo yes` 5415ac_test_CXXFLAGS=${CXXFLAGS+set} 5416ac_save_CXXFLAGS=$CXXFLAGS 5417{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5418echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5419if test "${ac_cv_prog_cxx_g+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421else 5422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5423 ac_cxx_werror_flag=yes 5424 ac_cv_prog_cxx_g=no 5425 CXXFLAGS="-g" 5426 cat >conftest.$ac_ext <<_ACEOF 5427/* confdefs.h. */ 5428_ACEOF 5429cat confdefs.h >>conftest.$ac_ext 5430cat >>conftest.$ac_ext <<_ACEOF 5431/* end confdefs.h. */ 5432 5433int 5434main () 5435{ 5436 5437 ; 5438 return 0; 5439} 5440_ACEOF 5441rm -f conftest.$ac_objext 5442if { (ac_try="$ac_compile" 5443case "(($ac_try" in 5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5445 *) ac_try_echo=$ac_try;; 5446esac 5447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5448 (eval "$ac_compile") 2>conftest.er1 5449 ac_status=$? 5450 grep -v '^ *+' conftest.er1 >conftest.err 5451 rm -f conftest.er1 5452 cat conftest.err >&5 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); } && { 5455 test -z "$ac_cxx_werror_flag" || 5456 test ! -s conftest.err 5457 } && test -s conftest.$ac_objext; then 5458 ac_cv_prog_cxx_g=yes 5459else 5460 echo "$as_me: failed program was:" >&5 5461sed 's/^/| /' conftest.$ac_ext >&5 5462 5463 CXXFLAGS="" 5464 cat >conftest.$ac_ext <<_ACEOF 5465/* confdefs.h. */ 5466_ACEOF 5467cat confdefs.h >>conftest.$ac_ext 5468cat >>conftest.$ac_ext <<_ACEOF 5469/* end confdefs.h. */ 5470 5471int 5472main () 5473{ 5474 5475 ; 5476 return 0; 5477} 5478_ACEOF 5479rm -f conftest.$ac_objext 5480if { (ac_try="$ac_compile" 5481case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5486 (eval "$ac_compile") 2>conftest.er1 5487 ac_status=$? 5488 grep -v '^ *+' conftest.er1 >conftest.err 5489 rm -f conftest.er1 5490 cat conftest.err >&5 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && { 5493 test -z "$ac_cxx_werror_flag" || 5494 test ! -s conftest.err 5495 } && test -s conftest.$ac_objext; then 5496 : 5497else 5498 echo "$as_me: failed program was:" >&5 5499sed 's/^/| /' conftest.$ac_ext >&5 5500 5501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5502 CXXFLAGS="-g" 5503 cat >conftest.$ac_ext <<_ACEOF 5504/* confdefs.h. */ 5505_ACEOF 5506cat confdefs.h >>conftest.$ac_ext 5507cat >>conftest.$ac_ext <<_ACEOF 5508/* end confdefs.h. */ 5509 5510int 5511main () 5512{ 5513 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518rm -f conftest.$ac_objext 5519if { (ac_try="$ac_compile" 5520case "(($ac_try" in 5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5522 *) ac_try_echo=$ac_try;; 5523esac 5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5525 (eval "$ac_compile") 2>conftest.er1 5526 ac_status=$? 5527 grep -v '^ *+' conftest.er1 >conftest.err 5528 rm -f conftest.er1 5529 cat conftest.err >&5 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); } && { 5532 test -z "$ac_cxx_werror_flag" || 5533 test ! -s conftest.err 5534 } && test -s conftest.$ac_objext; then 5535 ac_cv_prog_cxx_g=yes 5536else 5537 echo "$as_me: failed program was:" >&5 5538sed 's/^/| /' conftest.$ac_ext >&5 5539 5540 5541fi 5542 5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5544fi 5545 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5547fi 5548 5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5551fi 5552{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5553echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5554if test "$ac_test_CXXFLAGS" = set; then 5555 CXXFLAGS=$ac_save_CXXFLAGS 5556elif test $ac_cv_prog_cxx_g = yes; then 5557 if test "$GXX" = yes; then 5558 CXXFLAGS="-g -O2" 5559 else 5560 CXXFLAGS="-g" 5561 fi 5562else 5563 if test "$GXX" = yes; then 5564 CXXFLAGS="-O2" 5565 else 5566 CXXFLAGS= 5567 fi 5568fi 5569ac_ext=cpp 5570ac_cpp='$CXXCPP $CPPFLAGS' 5571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5574 5575depcc="$CXX" am_compiler_list= 5576 5577{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5578echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5579if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5580 echo $ECHO_N "(cached) $ECHO_C" >&6 5581else 5582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5583 # We make a subdir and do the tests there. Otherwise we can end up 5584 # making bogus files that we don't know about and never remove. For 5585 # instance it was reported that on HP-UX the gcc test will end up 5586 # making a dummy file named `D' -- because `-MD' means `put the output 5587 # in D'. 5588 mkdir conftest.dir 5589 # Copy depcomp to subdir because otherwise we won't find it if we're 5590 # using a relative directory. 5591 cp "$am_depcomp" conftest.dir 5592 cd conftest.dir 5593 # We will build objects and dependencies in a subdirectory because 5594 # it helps to detect inapplicable dependency modes. For instance 5595 # both Tru64's cc and ICC support -MD to output dependencies as a 5596 # side effect of compilation, but ICC will put the dependencies in 5597 # the current directory while Tru64 will put them in the object 5598 # directory. 5599 mkdir sub 5600 5601 am_cv_CXX_dependencies_compiler_type=none 5602 if test "$am_compiler_list" = ""; then 5603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5604 fi 5605 for depmode in $am_compiler_list; do 5606 # Setup a source with many dependencies, because some compilers 5607 # like to wrap large dependency lists on column 80 (with \), and 5608 # we should not choose a depcomp mode which is confused by this. 5609 # 5610 # We need to recreate these files for each test, as the compiler may 5611 # overwrite some of them when testing with obscure command lines. 5612 # This happens at least with the AIX C compiler. 5613 : > sub/conftest.c 5614 for i in 1 2 3 4 5 6; do 5615 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5617 # Solaris 8's {/usr,}/bin/sh. 5618 touch sub/conftst$i.h 5619 done 5620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5621 5622 case $depmode in 5623 nosideeffect) 5624 # after this tag, mechanisms are not by side-effect, so they'll 5625 # only be used when explicitly requested 5626 if test "x$enable_dependency_tracking" = xyes; then 5627 continue 5628 else 5629 break 5630 fi 5631 ;; 5632 none) break ;; 5633 esac 5634 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5635 # mode. It turns out that the SunPro C++ compiler does not properly 5636 # handle `-M -o', and we need to detect this. 5637 if depmode=$depmode \ 5638 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5640 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5641 >/dev/null 2>conftest.err && 5642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5644 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5646 # icc doesn't choke on unknown options, it will just issue warnings 5647 # or remarks (even with -Werror). So we grep stderr for any message 5648 # that says an option was ignored or not supported. 5649 # When given -MP, icc 7.0 and 7.1 complain thusly: 5650 # icc: Command line warning: ignoring option '-M'; no argument required 5651 # The diagnosis changed in icc 8.0: 5652 # icc: Command line remark: option '-MP' not supported 5653 if (grep 'ignoring option' conftest.err || 5654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5655 am_cv_CXX_dependencies_compiler_type=$depmode 5656 break 5657 fi 5658 fi 5659 done 5660 5661 cd .. 5662 rm -rf conftest.dir 5663else 5664 am_cv_CXX_dependencies_compiler_type=none 5665fi 5666 5667fi 5668{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5669echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5670CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5671 5672 if 5673 test "x$enable_dependency_tracking" != xno \ 5674 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5675 am__fastdepCXX_TRUE= 5676 am__fastdepCXX_FALSE='#' 5677else 5678 am__fastdepCXX_TRUE='#' 5679 am__fastdepCXX_FALSE= 5680fi 5681 5682 5683 5684 5685if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5686 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5687 (test "X$CXX" != "Xg++"))) ; then 5688 ac_ext=cpp 5689ac_cpp='$CXXCPP $CPPFLAGS' 5690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5693{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5694echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5695if test -z "$CXXCPP"; then 5696 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5697 echo $ECHO_N "(cached) $ECHO_C" >&6 5698else 5699 # Double quotes because CXXCPP needs to be expanded 5700 for CXXCPP in "$CXX -E" "/lib/cpp" 5701 do 5702 ac_preproc_ok=false 5703for ac_cxx_preproc_warn_flag in '' yes 5704do 5705 # Use a header file that comes with gcc, so configuring glibc 5706 # with a fresh cross-compiler works. 5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5708 # <limits.h> exists even on freestanding compilers. 5709 # On the NeXT, cc -E runs the code through the compiler's parser, 5710 # not just through cpp. "Syntax error" is here to catch this case. 5711 cat >conftest.$ac_ext <<_ACEOF 5712/* confdefs.h. */ 5713_ACEOF 5714cat confdefs.h >>conftest.$ac_ext 5715cat >>conftest.$ac_ext <<_ACEOF 5716/* end confdefs.h. */ 5717#ifdef __STDC__ 5718# include <limits.h> 5719#else 5720# include <assert.h> 5721#endif 5722 Syntax error 5723_ACEOF 5724if { (ac_try="$ac_cpp conftest.$ac_ext" 5725case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } >/dev/null && { 5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5738 test ! -s conftest.err 5739 }; then 5740 : 5741else 5742 echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745 # Broken: fails on valid input. 5746continue 5747fi 5748 5749rm -f conftest.err conftest.$ac_ext 5750 5751 # OK, works on sane cases. Now check whether nonexistent headers 5752 # can be detected and how. 5753 cat >conftest.$ac_ext <<_ACEOF 5754/* confdefs.h. */ 5755_ACEOF 5756cat confdefs.h >>conftest.$ac_ext 5757cat >>conftest.$ac_ext <<_ACEOF 5758/* end confdefs.h. */ 5759#include <ac_nonexistent.h> 5760_ACEOF 5761if { (ac_try="$ac_cpp conftest.$ac_ext" 5762case "(($ac_try" in 5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5764 *) ac_try_echo=$ac_try;; 5765esac 5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5768 ac_status=$? 5769 grep -v '^ *+' conftest.er1 >conftest.err 5770 rm -f conftest.er1 5771 cat conftest.err >&5 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } >/dev/null && { 5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5775 test ! -s conftest.err 5776 }; then 5777 # Broken: success on invalid input. 5778continue 5779else 5780 echo "$as_me: failed program was:" >&5 5781sed 's/^/| /' conftest.$ac_ext >&5 5782 5783 # Passes both tests. 5784ac_preproc_ok=: 5785break 5786fi 5787 5788rm -f conftest.err conftest.$ac_ext 5789 5790done 5791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5792rm -f conftest.err conftest.$ac_ext 5793if $ac_preproc_ok; then 5794 break 5795fi 5796 5797 done 5798 ac_cv_prog_CXXCPP=$CXXCPP 5799 5800fi 5801 CXXCPP=$ac_cv_prog_CXXCPP 5802else 5803 ac_cv_prog_CXXCPP=$CXXCPP 5804fi 5805{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5806echo "${ECHO_T}$CXXCPP" >&6; } 5807ac_preproc_ok=false 5808for ac_cxx_preproc_warn_flag in '' yes 5809do 5810 # Use a header file that comes with gcc, so configuring glibc 5811 # with a fresh cross-compiler works. 5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5813 # <limits.h> exists even on freestanding compilers. 5814 # On the NeXT, cc -E runs the code through the compiler's parser, 5815 # not just through cpp. "Syntax error" is here to catch this case. 5816 cat >conftest.$ac_ext <<_ACEOF 5817/* confdefs.h. */ 5818_ACEOF 5819cat confdefs.h >>conftest.$ac_ext 5820cat >>conftest.$ac_ext <<_ACEOF 5821/* end confdefs.h. */ 5822#ifdef __STDC__ 5823# include <limits.h> 5824#else 5825# include <assert.h> 5826#endif 5827 Syntax error 5828_ACEOF 5829if { (ac_try="$ac_cpp conftest.$ac_ext" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } >/dev/null && { 5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5843 test ! -s conftest.err 5844 }; then 5845 : 5846else 5847 echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 # Broken: fails on valid input. 5851continue 5852fi 5853 5854rm -f conftest.err conftest.$ac_ext 5855 5856 # OK, works on sane cases. Now check whether nonexistent headers 5857 # can be detected and how. 5858 cat >conftest.$ac_ext <<_ACEOF 5859/* confdefs.h. */ 5860_ACEOF 5861cat confdefs.h >>conftest.$ac_ext 5862cat >>conftest.$ac_ext <<_ACEOF 5863/* end confdefs.h. */ 5864#include <ac_nonexistent.h> 5865_ACEOF 5866if { (ac_try="$ac_cpp conftest.$ac_ext" 5867case "(($ac_try" in 5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5869 *) ac_try_echo=$ac_try;; 5870esac 5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5873 ac_status=$? 5874 grep -v '^ *+' conftest.er1 >conftest.err 5875 rm -f conftest.er1 5876 cat conftest.err >&5 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); } >/dev/null && { 5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5880 test ! -s conftest.err 5881 }; then 5882 # Broken: success on invalid input. 5883continue 5884else 5885 echo "$as_me: failed program was:" >&5 5886sed 's/^/| /' conftest.$ac_ext >&5 5887 5888 # Passes both tests. 5889ac_preproc_ok=: 5890break 5891fi 5892 5893rm -f conftest.err conftest.$ac_ext 5894 5895done 5896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5897rm -f conftest.err conftest.$ac_ext 5898if $ac_preproc_ok; then 5899 : 5900else 5901 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5902See \`config.log' for more details." >&5 5903echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5904See \`config.log' for more details." >&2;} 5905 { (exit 1); exit 1; }; } 5906fi 5907 5908ac_ext=cpp 5909ac_cpp='$CXXCPP $CPPFLAGS' 5910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5913 5914fi 5915 5916 5917ac_ext=f 5918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5920ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5921if test -n "$ac_tool_prefix"; then 5922 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5923 do 5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5925set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5926{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5928if test "${ac_cv_prog_F77+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930else 5931 if test -n "$F77"; then 5932 ac_cv_prog_F77="$F77" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5941 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951F77=$ac_cv_prog_F77 5952if test -n "$F77"; then 5953 { echo "$as_me:$LINENO: result: $F77" >&5 5954echo "${ECHO_T}$F77" >&6; } 5955else 5956 { echo "$as_me:$LINENO: result: no" >&5 5957echo "${ECHO_T}no" >&6; } 5958fi 5959 5960 5961 test -n "$F77" && break 5962 done 5963fi 5964if test -z "$F77"; then 5965 ac_ct_F77=$F77 5966 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5967do 5968 # Extract the first word of "$ac_prog", so it can be a program name with args. 5969set dummy $ac_prog; ac_word=$2 5970{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5972if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5973 echo $ECHO_N "(cached) $ECHO_C" >&6 5974else 5975 if test -n "$ac_ct_F77"; then 5976 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5985 ac_cv_prog_ac_ct_F77="$ac_prog" 5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995ac_ct_F77=$ac_cv_prog_ac_ct_F77 5996if test -n "$ac_ct_F77"; then 5997 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5998echo "${ECHO_T}$ac_ct_F77" >&6; } 5999else 6000 { echo "$as_me:$LINENO: result: no" >&5 6001echo "${ECHO_T}no" >&6; } 6002fi 6003 6004 6005 test -n "$ac_ct_F77" && break 6006done 6007 6008 if test "x$ac_ct_F77" = x; then 6009 F77="" 6010 else 6011 case $cross_compiling:$ac_tool_warned in 6012yes:) 6013{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6014whose name does not start with the host triplet. If you think this 6015configuration is useful to you, please write to autoconf@gnu.org." >&5 6016echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6017whose name does not start with the host triplet. If you think this 6018configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6019ac_tool_warned=yes ;; 6020esac 6021 F77=$ac_ct_F77 6022 fi 6023fi 6024 6025 6026# Provide some information about the compiler. 6027echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6028ac_compiler=`set X $ac_compile; echo $2` 6029{ (ac_try="$ac_compiler --version >&5" 6030case "(($ac_try" in 6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6032 *) ac_try_echo=$ac_try;; 6033esac 6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6035 (eval "$ac_compiler --version >&5") 2>&5 6036 ac_status=$? 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6038 (exit $ac_status); } 6039{ (ac_try="$ac_compiler -v >&5" 6040case "(($ac_try" in 6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6042 *) ac_try_echo=$ac_try;; 6043esac 6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6045 (eval "$ac_compiler -v >&5") 2>&5 6046 ac_status=$? 6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6048 (exit $ac_status); } 6049{ (ac_try="$ac_compiler -V >&5" 6050case "(($ac_try" in 6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6052 *) ac_try_echo=$ac_try;; 6053esac 6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6055 (eval "$ac_compiler -V >&5") 2>&5 6056 ac_status=$? 6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6058 (exit $ac_status); } 6059rm -f a.out 6060 6061# If we don't use `.F' as extension, the preprocessor is not run on the 6062# input file. (Note that this only needs to work for GNU compilers.) 6063ac_save_ext=$ac_ext 6064ac_ext=F 6065{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6066echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6067if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 cat >conftest.$ac_ext <<_ACEOF 6071 program main 6072#ifndef __GNUC__ 6073 choke me 6074#endif 6075 6076 end 6077_ACEOF 6078rm -f conftest.$ac_objext 6079if { (ac_try="$ac_compile" 6080case "(($ac_try" in 6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6082 *) ac_try_echo=$ac_try;; 6083esac 6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6085 (eval "$ac_compile") 2>conftest.er1 6086 ac_status=$? 6087 grep -v '^ *+' conftest.er1 >conftest.err 6088 rm -f conftest.er1 6089 cat conftest.err >&5 6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6091 (exit $ac_status); } && { 6092 test -z "$ac_f77_werror_flag" || 6093 test ! -s conftest.err 6094 } && test -s conftest.$ac_objext; then 6095 ac_compiler_gnu=yes 6096else 6097 echo "$as_me: failed program was:" >&5 6098sed 's/^/| /' conftest.$ac_ext >&5 6099 6100 ac_compiler_gnu=no 6101fi 6102 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6105 6106fi 6107{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6108echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6109ac_ext=$ac_save_ext 6110ac_test_FFLAGS=${FFLAGS+set} 6111ac_save_FFLAGS=$FFLAGS 6112FFLAGS= 6113{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6114echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6115if test "${ac_cv_prog_f77_g+set}" = set; then 6116 echo $ECHO_N "(cached) $ECHO_C" >&6 6117else 6118 FFLAGS=-g 6119cat >conftest.$ac_ext <<_ACEOF 6120 program main 6121 6122 end 6123_ACEOF 6124rm -f conftest.$ac_objext 6125if { (ac_try="$ac_compile" 6126case "(($ac_try" in 6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6128 *) ac_try_echo=$ac_try;; 6129esac 6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6131 (eval "$ac_compile") 2>conftest.er1 6132 ac_status=$? 6133 grep -v '^ *+' conftest.er1 >conftest.err 6134 rm -f conftest.er1 6135 cat conftest.err >&5 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); } && { 6138 test -z "$ac_f77_werror_flag" || 6139 test ! -s conftest.err 6140 } && test -s conftest.$ac_objext; then 6141 ac_cv_prog_f77_g=yes 6142else 6143 echo "$as_me: failed program was:" >&5 6144sed 's/^/| /' conftest.$ac_ext >&5 6145 6146 ac_cv_prog_f77_g=no 6147fi 6148 6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6150 6151fi 6152{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6153echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6154if test "$ac_test_FFLAGS" = set; then 6155 FFLAGS=$ac_save_FFLAGS 6156elif test $ac_cv_prog_f77_g = yes; then 6157 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6158 FFLAGS="-g -O2" 6159 else 6160 FFLAGS="-g" 6161 fi 6162else 6163 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6164 FFLAGS="-O2" 6165 else 6166 FFLAGS= 6167 fi 6168fi 6169 6170G77=`test $ac_compiler_gnu = yes && echo yes` 6171ac_ext=c 6172ac_cpp='$CPP $CPPFLAGS' 6173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6175ac_compiler_gnu=$ac_cv_c_compiler_gnu 6176 6177 6178 6179# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6180 6181# find the maximum length of command line arguments 6182{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6183echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6184if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6185 echo $ECHO_N "(cached) $ECHO_C" >&6 6186else 6187 i=0 6188 teststring="ABCD" 6189 6190 case $build_os in 6191 msdosdjgpp*) 6192 # On DJGPP, this test can blow up pretty badly due to problems in libc 6193 # (any single argument exceeding 2000 bytes causes a buffer overrun 6194 # during glob expansion). Even if it were fixed, the result of this 6195 # check would be larger than it should be. 6196 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6197 ;; 6198 6199 gnu*) 6200 # Under GNU Hurd, this test is not required because there is 6201 # no limit to the length of command line arguments. 6202 # Libtool will interpret -1 as no limit whatsoever 6203 lt_cv_sys_max_cmd_len=-1; 6204 ;; 6205 6206 cygwin* | mingw*) 6207 # On Win9x/ME, this test blows up -- it succeeds, but takes 6208 # about 5 minutes as the teststring grows exponentially. 6209 # Worse, since 9x/ME are not pre-emptively multitasking, 6210 # you end up with a "frozen" computer, even though with patience 6211 # the test eventually succeeds (with a max line length of 256k). 6212 # Instead, let's just punt: use the minimum linelength reported by 6213 # all of the supported platforms: 8192 (on NT/2K/XP). 6214 lt_cv_sys_max_cmd_len=8192; 6215 ;; 6216 6217 amigaos*) 6218 # On AmigaOS with pdksh, this test takes hours, literally. 6219 # So we just punt and use a minimum line length of 8192. 6220 lt_cv_sys_max_cmd_len=8192; 6221 ;; 6222 6223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6224 # This has been around since 386BSD, at least. Likely further. 6225 if test -x /sbin/sysctl; then 6226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6227 elif test -x /usr/sbin/sysctl; then 6228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6229 else 6230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6231 fi 6232 # And add a safety zone 6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6235 ;; 6236 6237 interix*) 6238 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6239 lt_cv_sys_max_cmd_len=196608 6240 ;; 6241 6242 osf*) 6243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6245 # nice to cause kernel panics so lets avoid the loop below. 6246 # First set a reasonable default. 6247 lt_cv_sys_max_cmd_len=16384 6248 # 6249 if test -x /sbin/sysconfig; then 6250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6251 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6252 esac 6253 fi 6254 ;; 6255 sco3.2v5*) 6256 lt_cv_sys_max_cmd_len=102400 6257 ;; 6258 sysv5* | sco5v6* | sysv4.2uw2*) 6259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6260 if test -n "$kargmax"; then 6261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6262 else 6263 lt_cv_sys_max_cmd_len=32768 6264 fi 6265 ;; 6266 *) 6267 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6268 if test -n "$lt_cv_sys_max_cmd_len"; then 6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6271 else 6272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6274 = "XX$teststring") >/dev/null 2>&1 && 6275 new_result=`expr "X$teststring" : ".*" 2>&1` && 6276 lt_cv_sys_max_cmd_len=$new_result && 6277 test $i != 17 # 1/2 MB should be enough 6278 do 6279 i=`expr $i + 1` 6280 teststring=$teststring$teststring 6281 done 6282 teststring= 6283 # Add a significant safety factor because C++ compilers can tack on massive 6284 # amounts of additional arguments before passing them to the linker. 6285 # It appears as though 1/2 is a usable value. 6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6287 fi 6288 ;; 6289 esac 6290 6291fi 6292 6293if test -n $lt_cv_sys_max_cmd_len ; then 6294 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6295echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6296else 6297 { echo "$as_me:$LINENO: result: none" >&5 6298echo "${ECHO_T}none" >&6; } 6299fi 6300 6301 6302 6303 6304 6305# Check for command to grab the raw symbol name followed by C symbol from nm. 6306{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6307echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6308if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6309 echo $ECHO_N "(cached) $ECHO_C" >&6 6310else 6311 6312# These are sane defaults that work on at least a few old systems. 6313# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6314 6315# Character class describing NM global symbol codes. 6316symcode='[BCDEGRST]' 6317 6318# Regexp to match symbols that can be accessed directly from C. 6319sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6320 6321# Transform an extracted symbol line into a proper C declaration 6322lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6323 6324# Transform an extracted symbol line into symbol name and symbol address 6325lt_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'" 6326 6327# Define system-specific variables. 6328case $host_os in 6329aix*) 6330 symcode='[BCDT]' 6331 ;; 6332cygwin* | mingw* | pw32*) 6333 symcode='[ABCDGISTW]' 6334 ;; 6335hpux*) # Its linker distinguishes data from code symbols 6336 if test "$host_cpu" = ia64; then 6337 symcode='[ABCDEGRST]' 6338 fi 6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6340 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'" 6341 ;; 6342linux* | k*bsd*-gnu) 6343 if test "$host_cpu" = ia64; then 6344 symcode='[ABCDGIRSTW]' 6345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6346 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'" 6347 fi 6348 ;; 6349irix* | nonstopux*) 6350 symcode='[BCDEGRST]' 6351 ;; 6352osf*) 6353 symcode='[BCDEGQRST]' 6354 ;; 6355solaris*) 6356 symcode='[BDRT]' 6357 ;; 6358sco3.2v5*) 6359 symcode='[DT]' 6360 ;; 6361sysv4.2uw2*) 6362 symcode='[DT]' 6363 ;; 6364sysv5* | sco5v6* | unixware* | OpenUNIX*) 6365 symcode='[ABDT]' 6366 ;; 6367sysv4) 6368 symcode='[DFNSTU]' 6369 ;; 6370esac 6371 6372# Handle CRLF in mingw tool chain 6373opt_cr= 6374case $build_os in 6375mingw*) 6376 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6377 ;; 6378esac 6379 6380# If we're using GNU nm, then use its standard symbol codes. 6381case `$NM -V 2>&1` in 6382*GNU* | *'with BFD'*) 6383 symcode='[ABCDGIRSTW]' ;; 6384esac 6385 6386# Try without a prefix undercore, then with it. 6387for ac_symprfx in "" "_"; do 6388 6389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6390 symxfrm="\\1 $ac_symprfx\\2 \\2" 6391 6392 # Write the raw and C identifiers. 6393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6394 6395 # Check to see that the pipe works correctly. 6396 pipe_works=no 6397 6398 rm -f conftest* 6399 cat > conftest.$ac_ext <<EOF 6400#ifdef __cplusplus 6401extern "C" { 6402#endif 6403char nm_test_var; 6404void nm_test_func(){} 6405#ifdef __cplusplus 6406} 6407#endif 6408int main(){nm_test_var='a';nm_test_func();return(0);} 6409EOF 6410 6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6412 (eval $ac_compile) 2>&5 6413 ac_status=$? 6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6415 (exit $ac_status); }; then 6416 # Now try to grab the symbols. 6417 nlist=conftest.nm 6418 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6420 ac_status=$? 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); } && test -s "$nlist"; then 6423 # Try sorting and uniquifying the output. 6424 if sort "$nlist" | uniq > "$nlist"T; then 6425 mv -f "$nlist"T "$nlist" 6426 else 6427 rm -f "$nlist"T 6428 fi 6429 6430 # Make sure that we snagged all the symbols we need. 6431 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6432 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6433 cat <<EOF > conftest.$ac_ext 6434#ifdef __cplusplus 6435extern "C" { 6436#endif 6437 6438EOF 6439 # Now generate the symbol file. 6440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6441 6442 cat <<EOF >> conftest.$ac_ext 6443#if defined (__STDC__) && __STDC__ 6444# define lt_ptr_t void * 6445#else 6446# define lt_ptr_t char * 6447# define const 6448#endif 6449 6450/* The mapping between symbol names and symbols. */ 6451const struct { 6452 const char *name; 6453 lt_ptr_t address; 6454} 6455lt_preloaded_symbols[] = 6456{ 6457EOF 6458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6459 cat <<\EOF >> conftest.$ac_ext 6460 {0, (lt_ptr_t) 0} 6461}; 6462 6463#ifdef __cplusplus 6464} 6465#endif 6466EOF 6467 # Now try linking the two files. 6468 mv conftest.$ac_objext conftstm.$ac_objext 6469 lt_save_LIBS="$LIBS" 6470 lt_save_CFLAGS="$CFLAGS" 6471 LIBS="conftstm.$ac_objext" 6472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6474 (eval $ac_link) 2>&5 6475 ac_status=$? 6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6478 pipe_works=yes 6479 fi 6480 LIBS="$lt_save_LIBS" 6481 CFLAGS="$lt_save_CFLAGS" 6482 else 6483 echo "cannot find nm_test_func in $nlist" >&5 6484 fi 6485 else 6486 echo "cannot find nm_test_var in $nlist" >&5 6487 fi 6488 else 6489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6490 fi 6491 else 6492 echo "$progname: failed program was:" >&5 6493 cat conftest.$ac_ext >&5 6494 fi 6495 rm -f conftest* conftst* 6496 6497 # Do not use the global_symbol_pipe unless it works. 6498 if test "$pipe_works" = yes; then 6499 break 6500 else 6501 lt_cv_sys_global_symbol_pipe= 6502 fi 6503done 6504 6505fi 6506 6507if test -z "$lt_cv_sys_global_symbol_pipe"; then 6508 lt_cv_sys_global_symbol_to_cdecl= 6509fi 6510if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6511 { echo "$as_me:$LINENO: result: failed" >&5 6512echo "${ECHO_T}failed" >&6; } 6513else 6514 { echo "$as_me:$LINENO: result: ok" >&5 6515echo "${ECHO_T}ok" >&6; } 6516fi 6517 6518{ echo "$as_me:$LINENO: checking for objdir" >&5 6519echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6520if test "${lt_cv_objdir+set}" = set; then 6521 echo $ECHO_N "(cached) $ECHO_C" >&6 6522else 6523 rm -f .libs 2>/dev/null 6524mkdir .libs 2>/dev/null 6525if test -d .libs; then 6526 lt_cv_objdir=.libs 6527else 6528 # MS-DOS does not allow filenames that begin with a dot. 6529 lt_cv_objdir=_libs 6530fi 6531rmdir .libs 2>/dev/null 6532fi 6533{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6534echo "${ECHO_T}$lt_cv_objdir" >&6; } 6535objdir=$lt_cv_objdir 6536 6537 6538 6539 6540 6541case $host_os in 6542aix3*) 6543 # AIX sometimes has problems with the GCC collect2 program. For some 6544 # reason, if we set the COLLECT_NAMES environment variable, the problems 6545 # vanish in a puff of smoke. 6546 if test "X${COLLECT_NAMES+set}" != Xset; then 6547 COLLECT_NAMES= 6548 export COLLECT_NAMES 6549 fi 6550 ;; 6551esac 6552 6553# Sed substitution that helps us do robust quoting. It backslashifies 6554# metacharacters that are still active within double-quoted strings. 6555Xsed='sed -e 1s/^X//' 6556sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6557 6558# Same as above, but do not quote variable references. 6559double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6560 6561# Sed substitution to delay expansion of an escaped shell variable in a 6562# double_quote_subst'ed string. 6563delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6564 6565# Sed substitution to avoid accidental globbing in evaled expressions 6566no_glob_subst='s/\*/\\\*/g' 6567 6568# Constants: 6569rm="rm -f" 6570 6571# Global variables: 6572default_ofile=libtool 6573can_build_shared=yes 6574 6575# All known linkers require a `.a' archive for static linking (except MSVC, 6576# which needs '.lib'). 6577libext=a 6578ltmain="$ac_aux_dir/ltmain.sh" 6579ofile="$default_ofile" 6580with_gnu_ld="$lt_cv_prog_gnu_ld" 6581 6582if test -n "$ac_tool_prefix"; then 6583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6584set dummy ${ac_tool_prefix}ar; ac_word=$2 6585{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6587if test "${ac_cv_prog_AR+set}" = set; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589else 6590 if test -n "$AR"; then 6591 ac_cv_prog_AR="$AR" # Let the user override the test. 6592else 6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594for as_dir in $PATH 6595do 6596 IFS=$as_save_IFS 6597 test -z "$as_dir" && as_dir=. 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6600 ac_cv_prog_AR="${ac_tool_prefix}ar" 6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604done 6605done 6606IFS=$as_save_IFS 6607 6608fi 6609fi 6610AR=$ac_cv_prog_AR 6611if test -n "$AR"; then 6612 { echo "$as_me:$LINENO: result: $AR" >&5 6613echo "${ECHO_T}$AR" >&6; } 6614else 6615 { echo "$as_me:$LINENO: result: no" >&5 6616echo "${ECHO_T}no" >&6; } 6617fi 6618 6619 6620fi 6621if test -z "$ac_cv_prog_AR"; then 6622 ac_ct_AR=$AR 6623 # Extract the first word of "ar", so it can be a program name with args. 6624set dummy ar; ac_word=$2 6625{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6627if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6628 echo $ECHO_N "(cached) $ECHO_C" >&6 6629else 6630 if test -n "$ac_ct_AR"; then 6631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6632else 6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6634for as_dir in $PATH 6635do 6636 IFS=$as_save_IFS 6637 test -z "$as_dir" && as_dir=. 6638 for ac_exec_ext in '' $ac_executable_extensions; do 6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6640 ac_cv_prog_ac_ct_AR="ar" 6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6642 break 2 6643 fi 6644done 6645done 6646IFS=$as_save_IFS 6647 6648fi 6649fi 6650ac_ct_AR=$ac_cv_prog_ac_ct_AR 6651if test -n "$ac_ct_AR"; then 6652 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6653echo "${ECHO_T}$ac_ct_AR" >&6; } 6654else 6655 { echo "$as_me:$LINENO: result: no" >&5 6656echo "${ECHO_T}no" >&6; } 6657fi 6658 6659 if test "x$ac_ct_AR" = x; then 6660 AR="false" 6661 else 6662 case $cross_compiling:$ac_tool_warned in 6663yes:) 6664{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6665whose name does not start with the host triplet. If you think this 6666configuration is useful to you, please write to autoconf@gnu.org." >&5 6667echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6668whose name does not start with the host triplet. If you think this 6669configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6670ac_tool_warned=yes ;; 6671esac 6672 AR=$ac_ct_AR 6673 fi 6674else 6675 AR="$ac_cv_prog_AR" 6676fi 6677 6678if test -n "$ac_tool_prefix"; then 6679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6680set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6681{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6683if test "${ac_cv_prog_RANLIB+set}" = set; then 6684 echo $ECHO_N "(cached) $ECHO_C" >&6 6685else 6686 if test -n "$RANLIB"; then 6687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6688else 6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701done 6702IFS=$as_save_IFS 6703 6704fi 6705fi 6706RANLIB=$ac_cv_prog_RANLIB 6707if test -n "$RANLIB"; then 6708 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6709echo "${ECHO_T}$RANLIB" >&6; } 6710else 6711 { echo "$as_me:$LINENO: result: no" >&5 6712echo "${ECHO_T}no" >&6; } 6713fi 6714 6715 6716fi 6717if test -z "$ac_cv_prog_RANLIB"; then 6718 ac_ct_RANLIB=$RANLIB 6719 # Extract the first word of "ranlib", so it can be a program name with args. 6720set dummy ranlib; ac_word=$2 6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6723if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6724 echo $ECHO_N "(cached) $ECHO_C" >&6 6725else 6726 if test -n "$ac_ct_RANLIB"; then 6727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6728else 6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6730for as_dir in $PATH 6731do 6732 IFS=$as_save_IFS 6733 test -z "$as_dir" && as_dir=. 6734 for ac_exec_ext in '' $ac_executable_extensions; do 6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6736 ac_cv_prog_ac_ct_RANLIB="ranlib" 6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6738 break 2 6739 fi 6740done 6741done 6742IFS=$as_save_IFS 6743 6744fi 6745fi 6746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6747if test -n "$ac_ct_RANLIB"; then 6748 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6749echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6750else 6751 { echo "$as_me:$LINENO: result: no" >&5 6752echo "${ECHO_T}no" >&6; } 6753fi 6754 6755 if test "x$ac_ct_RANLIB" = x; then 6756 RANLIB=":" 6757 else 6758 case $cross_compiling:$ac_tool_warned in 6759yes:) 6760{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6761whose name does not start with the host triplet. If you think this 6762configuration is useful to you, please write to autoconf@gnu.org." >&5 6763echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6764whose name does not start with the host triplet. If you think this 6765configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6766ac_tool_warned=yes ;; 6767esac 6768 RANLIB=$ac_ct_RANLIB 6769 fi 6770else 6771 RANLIB="$ac_cv_prog_RANLIB" 6772fi 6773 6774if test -n "$ac_tool_prefix"; then 6775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6776set dummy ${ac_tool_prefix}strip; ac_word=$2 6777{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6779if test "${ac_cv_prog_STRIP+set}" = set; then 6780 echo $ECHO_N "(cached) $ECHO_C" >&6 6781else 6782 if test -n "$STRIP"; then 6783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6792 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802STRIP=$ac_cv_prog_STRIP 6803if test -n "$STRIP"; then 6804 { echo "$as_me:$LINENO: result: $STRIP" >&5 6805echo "${ECHO_T}$STRIP" >&6; } 6806else 6807 { echo "$as_me:$LINENO: result: no" >&5 6808echo "${ECHO_T}no" >&6; } 6809fi 6810 6811 6812fi 6813if test -z "$ac_cv_prog_STRIP"; then 6814 ac_ct_STRIP=$STRIP 6815 # Extract the first word of "strip", so it can be a program name with args. 6816set dummy strip; ac_word=$2 6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6819if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6820 echo $ECHO_N "(cached) $ECHO_C" >&6 6821else 6822 if test -n "$ac_ct_STRIP"; then 6823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6832 ac_cv_prog_ac_ct_STRIP="strip" 6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6843if test -n "$ac_ct_STRIP"; then 6844 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6845echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6846else 6847 { echo "$as_me:$LINENO: result: no" >&5 6848echo "${ECHO_T}no" >&6; } 6849fi 6850 6851 if test "x$ac_ct_STRIP" = x; then 6852 STRIP=":" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6857whose name does not start with the host triplet. If you think this 6858configuration is useful to you, please write to autoconf@gnu.org." >&5 6859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6860whose name does not start with the host triplet. If you think this 6861configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6862ac_tool_warned=yes ;; 6863esac 6864 STRIP=$ac_ct_STRIP 6865 fi 6866else 6867 STRIP="$ac_cv_prog_STRIP" 6868fi 6869 6870 6871old_CC="$CC" 6872old_CFLAGS="$CFLAGS" 6873 6874# Set sane defaults for various variables 6875test -z "$AR" && AR=ar 6876test -z "$AR_FLAGS" && AR_FLAGS=cru 6877test -z "$AS" && AS=as 6878test -z "$CC" && CC=cc 6879test -z "$LTCC" && LTCC=$CC 6880test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6881test -z "$DLLTOOL" && DLLTOOL=dlltool 6882test -z "$LD" && LD=ld 6883test -z "$LN_S" && LN_S="ln -s" 6884test -z "$MAGIC_CMD" && MAGIC_CMD=file 6885test -z "$NM" && NM=nm 6886test -z "$SED" && SED=sed 6887test -z "$OBJDUMP" && OBJDUMP=objdump 6888test -z "$RANLIB" && RANLIB=: 6889test -z "$STRIP" && STRIP=: 6890test -z "$ac_objext" && ac_objext=o 6891 6892# Determine commands to create old-style static archives. 6893old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6894old_postinstall_cmds='chmod 644 $oldlib' 6895old_postuninstall_cmds= 6896 6897if test -n "$RANLIB"; then 6898 case $host_os in 6899 openbsd*) 6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6901 ;; 6902 *) 6903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6904 ;; 6905 esac 6906 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6907fi 6908 6909for cc_temp in $compiler""; do 6910 case $cc_temp in 6911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6913 \-*) ;; 6914 *) break;; 6915 esac 6916done 6917cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6918 6919 6920# Only perform the check for file, if the check method requires it 6921case $deplibs_check_method in 6922file_magic*) 6923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6924 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6925echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6926if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928else 6929 case $MAGIC_CMD in 6930[\\/*] | ?:[\\/]*) 6931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6932 ;; 6933*) 6934 lt_save_MAGIC_CMD="$MAGIC_CMD" 6935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6937 for ac_dir in $ac_dummy; do 6938 IFS="$lt_save_ifs" 6939 test -z "$ac_dir" && ac_dir=. 6940 if test -f $ac_dir/${ac_tool_prefix}file; then 6941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6942 if test -n "$file_magic_test_file"; then 6943 case $deplibs_check_method in 6944 "file_magic "*) 6945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6948 $EGREP "$file_magic_regex" > /dev/null; then 6949 : 6950 else 6951 cat <<EOF 1>&2 6952 6953*** Warning: the command libtool uses to detect shared libraries, 6954*** $file_magic_cmd, produces output that libtool cannot recognize. 6955*** The result is that libtool may fail to recognize shared libraries 6956*** as such. This will affect the creation of libtool libraries that 6957*** depend on shared libraries, but programs linked with such libtool 6958*** libraries will work regardless of this problem. Nevertheless, you 6959*** may want to report the problem to your system manager and/or to 6960*** bug-libtool@gnu.org 6961 6962EOF 6963 fi ;; 6964 esac 6965 fi 6966 break 6967 fi 6968 done 6969 IFS="$lt_save_ifs" 6970 MAGIC_CMD="$lt_save_MAGIC_CMD" 6971 ;; 6972esac 6973fi 6974 6975MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6976if test -n "$MAGIC_CMD"; then 6977 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6978echo "${ECHO_T}$MAGIC_CMD" >&6; } 6979else 6980 { echo "$as_me:$LINENO: result: no" >&5 6981echo "${ECHO_T}no" >&6; } 6982fi 6983 6984if test -z "$lt_cv_path_MAGIC_CMD"; then 6985 if test -n "$ac_tool_prefix"; then 6986 { echo "$as_me:$LINENO: checking for file" >&5 6987echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6988if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6989 echo $ECHO_N "(cached) $ECHO_C" >&6 6990else 6991 case $MAGIC_CMD in 6992[\\/*] | ?:[\\/]*) 6993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6994 ;; 6995*) 6996 lt_save_MAGIC_CMD="$MAGIC_CMD" 6997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6999 for ac_dir in $ac_dummy; do 7000 IFS="$lt_save_ifs" 7001 test -z "$ac_dir" && ac_dir=. 7002 if test -f $ac_dir/file; then 7003 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7004 if test -n "$file_magic_test_file"; then 7005 case $deplibs_check_method in 7006 "file_magic "*) 7007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7010 $EGREP "$file_magic_regex" > /dev/null; then 7011 : 7012 else 7013 cat <<EOF 1>&2 7014 7015*** Warning: the command libtool uses to detect shared libraries, 7016*** $file_magic_cmd, produces output that libtool cannot recognize. 7017*** The result is that libtool may fail to recognize shared libraries 7018*** as such. This will affect the creation of libtool libraries that 7019*** depend on shared libraries, but programs linked with such libtool 7020*** libraries will work regardless of this problem. Nevertheless, you 7021*** may want to report the problem to your system manager and/or to 7022*** bug-libtool@gnu.org 7023 7024EOF 7025 fi ;; 7026 esac 7027 fi 7028 break 7029 fi 7030 done 7031 IFS="$lt_save_ifs" 7032 MAGIC_CMD="$lt_save_MAGIC_CMD" 7033 ;; 7034esac 7035fi 7036 7037MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7038if test -n "$MAGIC_CMD"; then 7039 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7040echo "${ECHO_T}$MAGIC_CMD" >&6; } 7041else 7042 { echo "$as_me:$LINENO: result: no" >&5 7043echo "${ECHO_T}no" >&6; } 7044fi 7045 7046 else 7047 MAGIC_CMD=: 7048 fi 7049fi 7050 7051 fi 7052 ;; 7053esac 7054 7055enable_dlopen=no 7056enable_win32_dll=no 7057 7058# Check whether --enable-libtool-lock was given. 7059if test "${enable_libtool_lock+set}" = set; then 7060 enableval=$enable_libtool_lock; 7061fi 7062 7063test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7064 7065 7066# Check whether --with-pic was given. 7067if test "${with_pic+set}" = set; then 7068 withval=$with_pic; pic_mode="$withval" 7069else 7070 pic_mode=default 7071fi 7072 7073test -z "$pic_mode" && pic_mode=default 7074 7075# Use C for the default configuration in the libtool script 7076tagname= 7077lt_save_CC="$CC" 7078ac_ext=c 7079ac_cpp='$CPP $CPPFLAGS' 7080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7082ac_compiler_gnu=$ac_cv_c_compiler_gnu 7083 7084 7085# Source file extension for C test sources. 7086ac_ext=c 7087 7088# Object file extension for compiled C test sources. 7089objext=o 7090objext=$objext 7091 7092# Code to be used in simple compile tests 7093lt_simple_compile_test_code="int some_variable = 0;" 7094 7095# Code to be used in simple link tests 7096lt_simple_link_test_code='int main(){return(0);}' 7097 7098 7099# If no C compiler was specified, use CC. 7100LTCC=${LTCC-"$CC"} 7101 7102# If no C compiler flags were specified, use CFLAGS. 7103LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7104 7105# Allow CC to be a program name with arguments. 7106compiler=$CC 7107 7108 7109# save warnings/boilerplate of simple test code 7110ac_outfile=conftest.$ac_objext 7111echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7113_lt_compiler_boilerplate=`cat conftest.err` 7114$rm conftest* 7115 7116ac_outfile=conftest.$ac_objext 7117echo "$lt_simple_link_test_code" >conftest.$ac_ext 7118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7119_lt_linker_boilerplate=`cat conftest.err` 7120$rm conftest* 7121 7122 7123 7124lt_prog_compiler_no_builtin_flag= 7125 7126if test "$GCC" = yes; then 7127 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7128 7129 7130{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7131echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7132if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7133 echo $ECHO_N "(cached) $ECHO_C" >&6 7134else 7135 lt_cv_prog_compiler_rtti_exceptions=no 7136 ac_outfile=conftest.$ac_objext 7137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7138 lt_compiler_flag="-fno-rtti -fno-exceptions" 7139 # Insert the option either (1) after the last *FLAGS variable, or 7140 # (2) before a word containing "conftest.", or (3) at the end. 7141 # Note that $ac_compile itself does not contain backslashes and begins 7142 # with a dollar sign (not a hyphen), so the echo should work correctly. 7143 # The option is referenced via a variable to avoid confusing sed. 7144 lt_compile=`echo "$ac_compile" | $SED \ 7145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7147 -e 's:$: $lt_compiler_flag:'` 7148 (eval echo "\"\$as_me:7148: $lt_compile\"" >&5) 7149 (eval "$lt_compile" 2>conftest.err) 7150 ac_status=$? 7151 cat conftest.err >&5 7152 echo "$as_me:7152: \$? = $ac_status" >&5 7153 if (exit $ac_status) && test -s "$ac_outfile"; then 7154 # The compiler can only warn and ignore the option if not recognized 7155 # So say no if there are warnings other than the usual output. 7156 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7159 lt_cv_prog_compiler_rtti_exceptions=yes 7160 fi 7161 fi 7162 $rm conftest* 7163 7164fi 7165{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7166echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7167 7168if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7169 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7170else 7171 : 7172fi 7173 7174fi 7175 7176lt_prog_compiler_wl= 7177lt_prog_compiler_pic= 7178lt_prog_compiler_static= 7179 7180{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7181echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7182 7183 if test "$GCC" = yes; then 7184 lt_prog_compiler_wl='-Wl,' 7185 lt_prog_compiler_static='-static' 7186 7187 case $host_os in 7188 aix*) 7189 # All AIX code is PIC. 7190 if test "$host_cpu" = ia64; then 7191 # AIX 5 now supports IA64 processor 7192 lt_prog_compiler_static='-Bstatic' 7193 fi 7194 ;; 7195 7196 amigaos*) 7197 # FIXME: we need at least 68020 code to build shared libraries, but 7198 # adding the `-m68020' flag to GCC prevents building anything better, 7199 # like `-m68040'. 7200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7201 ;; 7202 7203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7204 # PIC is the default for these OSes. 7205 ;; 7206 7207 mingw* | cygwin* | pw32* | os2*) 7208 # This hack is so that the source file can tell whether it is being 7209 # built for inclusion in a dll (and should export symbols for example). 7210 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7211 # (--disable-auto-import) libraries 7212 lt_prog_compiler_pic='-DDLL_EXPORT' 7213 ;; 7214 7215 darwin* | rhapsody*) 7216 # PIC is the default on this platform 7217 # Common symbols not allowed in MH_DYLIB files 7218 lt_prog_compiler_pic='-fno-common' 7219 ;; 7220 7221 interix[3-9]*) 7222 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7223 # Instead, we relocate shared libraries at runtime. 7224 ;; 7225 7226 msdosdjgpp*) 7227 # Just because we use GCC doesn't mean we suddenly get shared libraries 7228 # on systems that don't support them. 7229 lt_prog_compiler_can_build_shared=no 7230 enable_shared=no 7231 ;; 7232 7233 sysv4*MP*) 7234 if test -d /usr/nec; then 7235 lt_prog_compiler_pic=-Kconform_pic 7236 fi 7237 ;; 7238 7239 hpux*) 7240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7241 # not for PA HP-UX. 7242 case $host_cpu in 7243 hppa*64*|ia64*) 7244 # +Z the default 7245 ;; 7246 *) 7247 lt_prog_compiler_pic='-fPIC' 7248 ;; 7249 esac 7250 ;; 7251 7252 *) 7253 lt_prog_compiler_pic='-fPIC' 7254 ;; 7255 esac 7256 else 7257 # PORTME Check for flag to pass linker flags through the system compiler. 7258 case $host_os in 7259 aix*) 7260 lt_prog_compiler_wl='-Wl,' 7261 if test "$host_cpu" = ia64; then 7262 # AIX 5 now supports IA64 processor 7263 lt_prog_compiler_static='-Bstatic' 7264 else 7265 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7266 fi 7267 ;; 7268 darwin*) 7269 # PIC is the default on this platform 7270 # Common symbols not allowed in MH_DYLIB files 7271 case $cc_basename in 7272 xlc*) 7273 lt_prog_compiler_pic='-qnocommon' 7274 lt_prog_compiler_wl='-Wl,' 7275 ;; 7276 esac 7277 ;; 7278 7279 mingw* | cygwin* | pw32* | os2*) 7280 # This hack is so that the source file can tell whether it is being 7281 # built for inclusion in a dll (and should export symbols for example). 7282 lt_prog_compiler_pic='-DDLL_EXPORT' 7283 ;; 7284 7285 hpux9* | hpux10* | hpux11*) 7286 lt_prog_compiler_wl='-Wl,' 7287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7288 # not for PA HP-UX. 7289 case $host_cpu in 7290 hppa*64*|ia64*) 7291 # +Z the default 7292 ;; 7293 *) 7294 lt_prog_compiler_pic='+Z' 7295 ;; 7296 esac 7297 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7298 lt_prog_compiler_static='${wl}-a ${wl}archive' 7299 ;; 7300 7301 irix5* | irix6* | nonstopux*) 7302 lt_prog_compiler_wl='-Wl,' 7303 # PIC (with -KPIC) is the default. 7304 lt_prog_compiler_static='-non_shared' 7305 ;; 7306 7307 newsos6) 7308 lt_prog_compiler_pic='-KPIC' 7309 lt_prog_compiler_static='-Bstatic' 7310 ;; 7311 7312 linux* | k*bsd*-gnu) 7313 case $cc_basename in 7314 icc* | ecc*) 7315 lt_prog_compiler_wl='-Wl,' 7316 lt_prog_compiler_pic='-KPIC' 7317 lt_prog_compiler_static='-static' 7318 ;; 7319 pgcc* | pgf77* | pgf90* | pgf95*) 7320 # Portland Group compilers (*not* the Pentium gcc compiler, 7321 # which looks to be a dead project) 7322 lt_prog_compiler_wl='-Wl,' 7323 lt_prog_compiler_pic='-fpic' 7324 lt_prog_compiler_static='-Bstatic' 7325 ;; 7326 ccc*) 7327 lt_prog_compiler_wl='-Wl,' 7328 # All Alpha code is PIC. 7329 lt_prog_compiler_static='-non_shared' 7330 ;; 7331 *) 7332 case `$CC -V 2>&1 | sed 5q` in 7333 *Sun\ C*) 7334 # Sun C 5.9 7335 lt_prog_compiler_pic='-KPIC' 7336 lt_prog_compiler_static='-Bstatic' 7337 lt_prog_compiler_wl='-Wl,' 7338 ;; 7339 *Sun\ F*) 7340 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7341 lt_prog_compiler_pic='-KPIC' 7342 lt_prog_compiler_static='-Bstatic' 7343 lt_prog_compiler_wl='' 7344 ;; 7345 esac 7346 ;; 7347 esac 7348 ;; 7349 7350 osf3* | osf4* | osf5*) 7351 lt_prog_compiler_wl='-Wl,' 7352 # All OSF/1 code is PIC. 7353 lt_prog_compiler_static='-non_shared' 7354 ;; 7355 7356 rdos*) 7357 lt_prog_compiler_static='-non_shared' 7358 ;; 7359 7360 solaris*) 7361 lt_prog_compiler_pic='-KPIC' 7362 lt_prog_compiler_static='-Bstatic' 7363 case $cc_basename in 7364 f77* | f90* | f95*) 7365 lt_prog_compiler_wl='-Qoption ld ';; 7366 *) 7367 lt_prog_compiler_wl='-Wl,';; 7368 esac 7369 ;; 7370 7371 sunos4*) 7372 lt_prog_compiler_wl='-Qoption ld ' 7373 lt_prog_compiler_pic='-PIC' 7374 lt_prog_compiler_static='-Bstatic' 7375 ;; 7376 7377 sysv4 | sysv4.2uw2* | sysv4.3*) 7378 lt_prog_compiler_wl='-Wl,' 7379 lt_prog_compiler_pic='-KPIC' 7380 lt_prog_compiler_static='-Bstatic' 7381 ;; 7382 7383 sysv4*MP*) 7384 if test -d /usr/nec ;then 7385 lt_prog_compiler_pic='-Kconform_pic' 7386 lt_prog_compiler_static='-Bstatic' 7387 fi 7388 ;; 7389 7390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7391 lt_prog_compiler_wl='-Wl,' 7392 lt_prog_compiler_pic='-KPIC' 7393 lt_prog_compiler_static='-Bstatic' 7394 ;; 7395 7396 unicos*) 7397 lt_prog_compiler_wl='-Wl,' 7398 lt_prog_compiler_can_build_shared=no 7399 ;; 7400 7401 uts4*) 7402 lt_prog_compiler_pic='-pic' 7403 lt_prog_compiler_static='-Bstatic' 7404 ;; 7405 7406 *) 7407 lt_prog_compiler_can_build_shared=no 7408 ;; 7409 esac 7410 fi 7411 7412{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7413echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7414 7415# 7416# Check to make sure the PIC flag actually works. 7417# 7418if test -n "$lt_prog_compiler_pic"; then 7419 7420{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7422if test "${lt_prog_compiler_pic_works+set}" = set; then 7423 echo $ECHO_N "(cached) $ECHO_C" >&6 7424else 7425 lt_prog_compiler_pic_works=no 7426 ac_outfile=conftest.$ac_objext 7427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7429 # Insert the option either (1) after the last *FLAGS variable, or 7430 # (2) before a word containing "conftest.", or (3) at the end. 7431 # Note that $ac_compile itself does not contain backslashes and begins 7432 # with a dollar sign (not a hyphen), so the echo should work correctly. 7433 # The option is referenced via a variable to avoid confusing sed. 7434 lt_compile=`echo "$ac_compile" | $SED \ 7435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7437 -e 's:$: $lt_compiler_flag:'` 7438 (eval echo "\"\$as_me:7438: $lt_compile\"" >&5) 7439 (eval "$lt_compile" 2>conftest.err) 7440 ac_status=$? 7441 cat conftest.err >&5 7442 echo "$as_me:7442: \$? = $ac_status" >&5 7443 if (exit $ac_status) && test -s "$ac_outfile"; then 7444 # The compiler can only warn and ignore the option if not recognized 7445 # So say no if there are warnings other than the usual output. 7446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7449 lt_prog_compiler_pic_works=yes 7450 fi 7451 fi 7452 $rm conftest* 7453 7454fi 7455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7456echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7457 7458if test x"$lt_prog_compiler_pic_works" = xyes; then 7459 case $lt_prog_compiler_pic in 7460 "" | " "*) ;; 7461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7462 esac 7463else 7464 lt_prog_compiler_pic= 7465 lt_prog_compiler_can_build_shared=no 7466fi 7467 7468fi 7469case $host_os in 7470 # For platforms which do not support PIC, -DPIC is meaningless: 7471 *djgpp*) 7472 lt_prog_compiler_pic= 7473 ;; 7474 *) 7475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7476 ;; 7477esac 7478 7479# 7480# Check to make sure the static flag actually works. 7481# 7482wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7483{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7484echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7485if test "${lt_prog_compiler_static_works+set}" = set; then 7486 echo $ECHO_N "(cached) $ECHO_C" >&6 7487else 7488 lt_prog_compiler_static_works=no 7489 save_LDFLAGS="$LDFLAGS" 7490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7491 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7493 # The linker can only warn and ignore the option if not recognized 7494 # So say no if there are warnings 7495 if test -s conftest.err; then 7496 # Append any errors to the config.log. 7497 cat conftest.err 1>&5 7498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7500 if diff conftest.exp conftest.er2 >/dev/null; then 7501 lt_prog_compiler_static_works=yes 7502 fi 7503 else 7504 lt_prog_compiler_static_works=yes 7505 fi 7506 fi 7507 $rm conftest* 7508 LDFLAGS="$save_LDFLAGS" 7509 7510fi 7511{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7512echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7513 7514if test x"$lt_prog_compiler_static_works" = xyes; then 7515 : 7516else 7517 lt_prog_compiler_static= 7518fi 7519 7520 7521{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7522echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7523if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7524 echo $ECHO_N "(cached) $ECHO_C" >&6 7525else 7526 lt_cv_prog_compiler_c_o=no 7527 $rm -r conftest 2>/dev/null 7528 mkdir conftest 7529 cd conftest 7530 mkdir out 7531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7532 7533 lt_compiler_flag="-o out/conftest2.$ac_objext" 7534 # Insert the option either (1) after the last *FLAGS variable, or 7535 # (2) before a word containing "conftest.", or (3) at the end. 7536 # Note that $ac_compile itself does not contain backslashes and begins 7537 # with a dollar sign (not a hyphen), so the echo should work correctly. 7538 lt_compile=`echo "$ac_compile" | $SED \ 7539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7541 -e 's:$: $lt_compiler_flag:'` 7542 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5) 7543 (eval "$lt_compile" 2>out/conftest.err) 7544 ac_status=$? 7545 cat out/conftest.err >&5 7546 echo "$as_me:7546: \$? = $ac_status" >&5 7547 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7548 then 7549 # The compiler can only warn and ignore the option if not recognized 7550 # So say no if there are warnings 7551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7554 lt_cv_prog_compiler_c_o=yes 7555 fi 7556 fi 7557 chmod u+w . 2>&5 7558 $rm conftest* 7559 # SGI C++ compiler will create directory out/ii_files/ for 7560 # template instantiation 7561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7562 $rm out/* && rmdir out 7563 cd .. 7564 rmdir conftest 7565 $rm conftest* 7566 7567fi 7568{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7569echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7570 7571 7572hard_links="nottested" 7573if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7574 # do not overwrite the value of need_locks provided by the user 7575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7576echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7577 hard_links=yes 7578 $rm conftest* 7579 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7580 touch conftest.a 7581 ln conftest.a conftest.b 2>&5 || hard_links=no 7582 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7583 { echo "$as_me:$LINENO: result: $hard_links" >&5 7584echo "${ECHO_T}$hard_links" >&6; } 7585 if test "$hard_links" = no; then 7586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7587echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7588 need_locks=warn 7589 fi 7590else 7591 need_locks=no 7592fi 7593 7594{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7596 7597 runpath_var= 7598 allow_undefined_flag= 7599 enable_shared_with_static_runtimes=no 7600 archive_cmds= 7601 archive_expsym_cmds= 7602 old_archive_From_new_cmds= 7603 old_archive_from_expsyms_cmds= 7604 export_dynamic_flag_spec= 7605 whole_archive_flag_spec= 7606 thread_safe_flag_spec= 7607 hardcode_libdir_flag_spec= 7608 hardcode_libdir_flag_spec_ld= 7609 hardcode_libdir_separator= 7610 hardcode_direct=no 7611 hardcode_minus_L=no 7612 hardcode_shlibpath_var=unsupported 7613 link_all_deplibs=unknown 7614 hardcode_automatic=no 7615 module_cmds= 7616 module_expsym_cmds= 7617 always_export_symbols=no 7618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7619 # include_expsyms should be a list of space-separated symbols to be *always* 7620 # included in the symbol list 7621 include_expsyms= 7622 # exclude_expsyms can be an extended regexp of symbols to exclude 7623 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7625 # as well as any symbol that contains `d'. 7626 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7628 # platforms (ab)use it in PIC code, but their linkers get confused if 7629 # the symbol is explicitly referenced. Since portable code cannot 7630 # rely on this symbol name, it's probably fine to never include it in 7631 # preloaded symbol tables. 7632 extract_expsyms_cmds= 7633 # Just being paranoid about ensuring that cc_basename is set. 7634 for cc_temp in $compiler""; do 7635 case $cc_temp in 7636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7638 \-*) ;; 7639 *) break;; 7640 esac 7641done 7642cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7643 7644 case $host_os in 7645 cygwin* | mingw* | pw32*) 7646 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7647 # When not using gcc, we currently assume that we are using 7648 # Microsoft Visual C++. 7649 if test "$GCC" != yes; then 7650 with_gnu_ld=no 7651 fi 7652 ;; 7653 interix*) 7654 # we just hope/assume this is gcc and not c89 (= MSVC++) 7655 with_gnu_ld=yes 7656 ;; 7657 openbsd*) 7658 with_gnu_ld=no 7659 ;; 7660 esac 7661 7662 ld_shlibs=yes 7663 if test "$with_gnu_ld" = yes; then 7664 # If archive_cmds runs LD, not CC, wlarc should be empty 7665 wlarc='${wl}' 7666 7667 # Set some defaults for GNU ld with shared library support. These 7668 # are reset later if shared libraries are not supported. Putting them 7669 # here allows them to be overridden if necessary. 7670 runpath_var=LD_RUN_PATH 7671 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7672 export_dynamic_flag_spec='${wl}--export-dynamic' 7673 # ancient GNU ld didn't support --whole-archive et. al. 7674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7676 else 7677 whole_archive_flag_spec= 7678 fi 7679 supports_anon_versioning=no 7680 case `$LD -v 2>/dev/null` in 7681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7684 *\ 2.11.*) ;; # other 2.11 versions 7685 *) supports_anon_versioning=yes ;; 7686 esac 7687 7688 # See if GNU ld supports shared libraries. 7689 case $host_os in 7690 aix3* | aix4* | aix5*) 7691 # On AIX/PPC, the GNU linker is very broken 7692 if test "$host_cpu" != ia64; then 7693 ld_shlibs=no 7694 cat <<EOF 1>&2 7695 7696*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7697*** to be unable to reliably create shared libraries on AIX. 7698*** Therefore, libtool is disabling shared libraries support. If you 7699*** really care for shared libraries, you may want to modify your PATH 7700*** so that a non-GNU linker is found, and then restart. 7701 7702EOF 7703 fi 7704 ;; 7705 7706 amigaos*) 7707 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)' 7708 hardcode_libdir_flag_spec='-L$libdir' 7709 hardcode_minus_L=yes 7710 7711 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7712 # that the semantics of dynamic libraries on AmigaOS, at least up 7713 # to version 4, is to share data among multiple programs linked 7714 # with the same dynamic library. Since this doesn't match the 7715 # behavior of shared libraries on other platforms, we can't use 7716 # them. 7717 ld_shlibs=no 7718 ;; 7719 7720 beos*) 7721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7722 allow_undefined_flag=unsupported 7723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7724 # support --undefined. This deserves some investigation. FIXME 7725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7726 else 7727 ld_shlibs=no 7728 fi 7729 ;; 7730 7731 cygwin* | mingw* | pw32*) 7732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7733 # as there is no search path for DLLs. 7734 hardcode_libdir_flag_spec='-L$libdir' 7735 allow_undefined_flag=unsupported 7736 always_export_symbols=no 7737 enable_shared_with_static_runtimes=yes 7738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7739 7740 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7742 # If the export-symbols file already is a .def file (1st line 7743 # is EXPORTS), use it as is; otherwise, prepend... 7744 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7745 cp $export_symbols $output_objdir/$soname.def; 7746 else 7747 echo EXPORTS > $output_objdir/$soname.def; 7748 cat $export_symbols >> $output_objdir/$soname.def; 7749 fi~ 7750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7751 else 7752 ld_shlibs=no 7753 fi 7754 ;; 7755 7756 interix[3-9]*) 7757 hardcode_direct=no 7758 hardcode_shlibpath_var=no 7759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7760 export_dynamic_flag_spec='${wl}-E' 7761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7762 # Instead, shared libraries are loaded at an image base (0x10000000 by 7763 # default) and relocated if they conflict, which is a slow very memory 7764 # consuming and fragmenting process. To avoid this, we pick a random, 7765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7766 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7768 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' 7769 ;; 7770 7771 gnu* | linux* | k*bsd*-gnu) 7772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7773 tmp_addflag= 7774 case $cc_basename,$host_cpu in 7775 pgcc*) # Portland Group C compiler 7776 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' 7777 tmp_addflag=' $pic_flag' 7778 ;; 7779 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7780 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' 7781 tmp_addflag=' $pic_flag -Mnomain' ;; 7782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7783 tmp_addflag=' -i_dynamic' ;; 7784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7785 tmp_addflag=' -i_dynamic -nofor_main' ;; 7786 ifc* | ifort*) # Intel Fortran compiler 7787 tmp_addflag=' -nofor_main' ;; 7788 esac 7789 case `$CC -V 2>&1 | sed 5q` in 7790 *Sun\ C*) # Sun C 5.9 7791 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7792 tmp_sharedflag='-G' ;; 7793 *Sun\ F*) # Sun Fortran 8.3 7794 tmp_sharedflag='-G' ;; 7795 *) 7796 tmp_sharedflag='-shared' ;; 7797 esac 7798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7799 7800 if test $supports_anon_versioning = yes; then 7801 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7803 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7805 fi 7806 else 7807 ld_shlibs=no 7808 fi 7809 ;; 7810 7811 netbsd*) 7812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7813 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7814 wlarc= 7815 else 7816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7818 fi 7819 ;; 7820 7821 solaris*) 7822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7823 ld_shlibs=no 7824 cat <<EOF 1>&2 7825 7826*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7827*** create shared libraries on Solaris systems. Therefore, libtool 7828*** is disabling shared libraries support. We urge you to upgrade GNU 7829*** binutils to release 2.9.1 or newer. Another option is to modify 7830*** your PATH or compiler configuration so that the native linker is 7831*** used, and then restart. 7832 7833EOF 7834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7837 else 7838 ld_shlibs=no 7839 fi 7840 ;; 7841 7842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7843 case `$LD -v 2>&1` in 7844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7845 ld_shlibs=no 7846 cat <<_LT_EOF 1>&2 7847 7848*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7849*** reliably create shared libraries on SCO systems. Therefore, libtool 7850*** is disabling shared libraries support. We urge you to upgrade GNU 7851*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7852*** your PATH or compiler configuration so that the native linker is 7853*** used, and then restart. 7854 7855_LT_EOF 7856 ;; 7857 *) 7858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7859 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7862 else 7863 ld_shlibs=no 7864 fi 7865 ;; 7866 esac 7867 ;; 7868 7869 sunos4*) 7870 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7871 wlarc= 7872 hardcode_direct=yes 7873 hardcode_shlibpath_var=no 7874 ;; 7875 7876 *) 7877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7880 else 7881 ld_shlibs=no 7882 fi 7883 ;; 7884 esac 7885 7886 if test "$ld_shlibs" = no; then 7887 runpath_var= 7888 hardcode_libdir_flag_spec= 7889 export_dynamic_flag_spec= 7890 whole_archive_flag_spec= 7891 fi 7892 else 7893 # PORTME fill in a description of your system's linker (not GNU ld) 7894 case $host_os in 7895 aix3*) 7896 allow_undefined_flag=unsupported 7897 always_export_symbols=yes 7898 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' 7899 # Note: this linker hardcodes the directories in LIBPATH if there 7900 # are no directories specified by -L. 7901 hardcode_minus_L=yes 7902 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7903 # Neither direct hardcoding nor static linking is supported with a 7904 # broken collect2. 7905 hardcode_direct=unsupported 7906 fi 7907 ;; 7908 7909 aix4* | aix5*) 7910 if test "$host_cpu" = ia64; then 7911 # On IA64, the linker does run time linking by default, so we don't 7912 # have to do anything special. 7913 aix_use_runtimelinking=no 7914 exp_sym_flag='-Bexport' 7915 no_entry_flag="" 7916 else 7917 # If we're using GNU nm, then we don't want the "-C" option. 7918 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7920 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' 7921 else 7922 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' 7923 fi 7924 aix_use_runtimelinking=no 7925 7926 # Test if we are trying to use run time linking or normal 7927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7928 # need to do runtime linking. 7929 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7930 for ld_flag in $LDFLAGS; do 7931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7932 aix_use_runtimelinking=yes 7933 break 7934 fi 7935 done 7936 ;; 7937 esac 7938 7939 exp_sym_flag='-bexport' 7940 no_entry_flag='-bnoentry' 7941 fi 7942 7943 # When large executables or shared objects are built, AIX ld can 7944 # have problems creating the table of contents. If linking a library 7945 # or program results in "error TOC overflow" add -mminimal-toc to 7946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7948 7949 archive_cmds='' 7950 hardcode_direct=yes 7951 hardcode_libdir_separator=':' 7952 link_all_deplibs=yes 7953 7954 if test "$GCC" = yes; then 7955 case $host_os in aix4.[012]|aix4.[012].*) 7956 # We only want to do this on AIX 4.2 and lower, the check 7957 # below for broken collect2 doesn't work under 4.3+ 7958 collect2name=`${CC} -print-prog-name=collect2` 7959 if test -f "$collect2name" && \ 7960 strings "$collect2name" | grep resolve_lib_name >/dev/null 7961 then 7962 # We have reworked collect2 7963 : 7964 else 7965 # We have old collect2 7966 hardcode_direct=unsupported 7967 # It fails to find uninstalled libraries when the uninstalled 7968 # path is not listed in the libpath. Setting hardcode_minus_L 7969 # to unsupported forces relinking 7970 hardcode_minus_L=yes 7971 hardcode_libdir_flag_spec='-L$libdir' 7972 hardcode_libdir_separator= 7973 fi 7974 ;; 7975 esac 7976 shared_flag='-shared' 7977 if test "$aix_use_runtimelinking" = yes; then 7978 shared_flag="$shared_flag "'${wl}-G' 7979 fi 7980 else 7981 # not using gcc 7982 if test "$host_cpu" = ia64; then 7983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7984 # chokes on -Wl,-G. The following line is correct: 7985 shared_flag='-G' 7986 else 7987 if test "$aix_use_runtimelinking" = yes; then 7988 shared_flag='${wl}-G' 7989 else 7990 shared_flag='${wl}-bM:SRE' 7991 fi 7992 fi 7993 fi 7994 7995 # It seems that -bexpall does not export symbols beginning with 7996 # underscore (_), so it is better to generate a list of symbols to export. 7997 always_export_symbols=yes 7998 if test "$aix_use_runtimelinking" = yes; then 7999 # Warning - without using the other runtime loading flags (-brtl), 8000 # -berok will link without error, but may produce a broken library. 8001 allow_undefined_flag='-berok' 8002 # Determine the default libpath from the value encoded in an empty executable. 8003 cat >conftest.$ac_ext <<_ACEOF 8004/* confdefs.h. */ 8005_ACEOF 8006cat confdefs.h >>conftest.$ac_ext 8007cat >>conftest.$ac_ext <<_ACEOF 8008/* end confdefs.h. */ 8009 8010int 8011main () 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018rm -f conftest.$ac_objext conftest$ac_exeext 8019if { (ac_try="$ac_link" 8020case "(($ac_try" in 8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8022 *) ac_try_echo=$ac_try;; 8023esac 8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8025 (eval "$ac_link") 2>conftest.er1 8026 ac_status=$? 8027 grep -v '^ *+' conftest.er1 >conftest.err 8028 rm -f conftest.er1 8029 cat conftest.err >&5 8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8031 (exit $ac_status); } && { 8032 test -z "$ac_c_werror_flag" || 8033 test ! -s conftest.err 8034 } && test -s conftest$ac_exeext && 8035 $as_test_x conftest$ac_exeext; then 8036 8037lt_aix_libpath_sed=' 8038 /Import File Strings/,/^$/ { 8039 /^0/ { 8040 s/^0 *\(.*\)$/\1/ 8041 p 8042 } 8043 }' 8044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8045# Check for a 64-bit object if we didn't find anything. 8046if test -z "$aix_libpath"; then 8047 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8048fi 8049else 8050 echo "$as_me: failed program was:" >&5 8051sed 's/^/| /' conftest.$ac_ext >&5 8052 8053 8054fi 8055 8056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8057 conftest$ac_exeext conftest.$ac_ext 8058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8059 8060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8061 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" 8062 else 8063 if test "$host_cpu" = ia64; then 8064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8065 allow_undefined_flag="-z nodefs" 8066 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" 8067 else 8068 # Determine the default libpath from the value encoded in an empty executable. 8069 cat >conftest.$ac_ext <<_ACEOF 8070/* confdefs.h. */ 8071_ACEOF 8072cat confdefs.h >>conftest.$ac_ext 8073cat >>conftest.$ac_ext <<_ACEOF 8074/* end confdefs.h. */ 8075 8076int 8077main () 8078{ 8079 8080 ; 8081 return 0; 8082} 8083_ACEOF 8084rm -f conftest.$ac_objext conftest$ac_exeext 8085if { (ac_try="$ac_link" 8086case "(($ac_try" in 8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8088 *) ac_try_echo=$ac_try;; 8089esac 8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8091 (eval "$ac_link") 2>conftest.er1 8092 ac_status=$? 8093 grep -v '^ *+' conftest.er1 >conftest.err 8094 rm -f conftest.er1 8095 cat conftest.err >&5 8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8097 (exit $ac_status); } && { 8098 test -z "$ac_c_werror_flag" || 8099 test ! -s conftest.err 8100 } && test -s conftest$ac_exeext && 8101 $as_test_x conftest$ac_exeext; then 8102 8103lt_aix_libpath_sed=' 8104 /Import File Strings/,/^$/ { 8105 /^0/ { 8106 s/^0 *\(.*\)$/\1/ 8107 p 8108 } 8109 }' 8110aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8111# Check for a 64-bit object if we didn't find anything. 8112if test -z "$aix_libpath"; then 8113 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8114fi 8115else 8116 echo "$as_me: failed program was:" >&5 8117sed 's/^/| /' conftest.$ac_ext >&5 8118 8119 8120fi 8121 8122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8123 conftest$ac_exeext conftest.$ac_ext 8124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8125 8126 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8127 # Warning - without using the other run time loading flags, 8128 # -berok will link without error, but may produce a broken library. 8129 no_undefined_flag=' ${wl}-bernotok' 8130 allow_undefined_flag=' ${wl}-berok' 8131 # Exported symbols can be pulled into shared objects from archives 8132 whole_archive_flag_spec='$convenience' 8133 archive_cmds_need_lc=yes 8134 # This is similar to how AIX traditionally builds its shared libraries. 8135 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' 8136 fi 8137 fi 8138 ;; 8139 8140 amigaos*) 8141 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)' 8142 hardcode_libdir_flag_spec='-L$libdir' 8143 hardcode_minus_L=yes 8144 # see comment about different semantics on the GNU ld section 8145 ld_shlibs=no 8146 ;; 8147 8148 bsdi[45]*) 8149 export_dynamic_flag_spec=-rdynamic 8150 ;; 8151 8152 cygwin* | mingw* | pw32*) 8153 # When not using gcc, we currently assume that we are using 8154 # Microsoft Visual C++. 8155 # hardcode_libdir_flag_spec is actually meaningless, as there is 8156 # no search path for DLLs. 8157 hardcode_libdir_flag_spec=' ' 8158 allow_undefined_flag=unsupported 8159 # Tell ltmain to make .lib files, not .a files. 8160 libext=lib 8161 # Tell ltmain to make .dll files, not .so files. 8162 shrext_cmds=".dll" 8163 # FIXME: Setting linknames here is a bad hack. 8164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8165 # The linker will automatically build a .lib file if we build a DLL. 8166 old_archive_From_new_cmds='true' 8167 # FIXME: Should let the user specify the lib program. 8168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8169 fix_srcfile_path='`cygpath -w "$srcfile"`' 8170 enable_shared_with_static_runtimes=yes 8171 ;; 8172 8173 darwin* | rhapsody*) 8174 case $host_os in 8175 rhapsody* | darwin1.[012]) 8176 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8177 ;; 8178 *) # Darwin 1.3 on 8179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8180 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8181 else 8182 case ${MACOSX_DEPLOYMENT_TARGET} in 8183 10.[012]) 8184 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8185 ;; 8186 10.*) 8187 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8188 ;; 8189 esac 8190 fi 8191 ;; 8192 esac 8193 archive_cmds_need_lc=no 8194 hardcode_direct=no 8195 hardcode_automatic=yes 8196 hardcode_shlibpath_var=unsupported 8197 whole_archive_flag_spec='' 8198 link_all_deplibs=yes 8199 if test "$GCC" = yes ; then 8200 output_verbose_link_cmd='echo' 8201 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8202 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8204 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}' 8205 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}' 8206 else 8207 case $cc_basename in 8208 xlc*) 8209 output_verbose_link_cmd='echo' 8210 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8211 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8213 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8214 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}' 8215 ;; 8216 *) 8217 ld_shlibs=no 8218 ;; 8219 esac 8220 fi 8221 ;; 8222 8223 dgux*) 8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8225 hardcode_libdir_flag_spec='-L$libdir' 8226 hardcode_shlibpath_var=no 8227 ;; 8228 8229 freebsd1*) 8230 ld_shlibs=no 8231 ;; 8232 8233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8234 # support. Future versions do this automatically, but an explicit c++rt0.o 8235 # does not break anything, and helps significantly (at the cost of a little 8236 # extra space). 8237 freebsd2.2*) 8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8239 hardcode_libdir_flag_spec='-R$libdir' 8240 hardcode_direct=yes 8241 hardcode_shlibpath_var=no 8242 ;; 8243 8244 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8245 freebsd2*) 8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8247 hardcode_direct=yes 8248 hardcode_minus_L=yes 8249 hardcode_shlibpath_var=no 8250 ;; 8251 8252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8253 freebsd* | dragonfly*) 8254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8255 hardcode_libdir_flag_spec='-R$libdir' 8256 hardcode_direct=yes 8257 hardcode_shlibpath_var=no 8258 ;; 8259 8260 hpux9*) 8261 if test "$GCC" = yes; then 8262 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' 8263 else 8264 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' 8265 fi 8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8267 hardcode_libdir_separator=: 8268 hardcode_direct=yes 8269 8270 # hardcode_minus_L: Not really in the search PATH, 8271 # but as the default location of the library. 8272 hardcode_minus_L=yes 8273 export_dynamic_flag_spec='${wl}-E' 8274 ;; 8275 8276 hpux10*) 8277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8279 else 8280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8281 fi 8282 if test "$with_gnu_ld" = no; then 8283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8284 hardcode_libdir_separator=: 8285 8286 hardcode_direct=yes 8287 export_dynamic_flag_spec='${wl}-E' 8288 8289 # hardcode_minus_L: Not really in the search PATH, 8290 # but as the default location of the library. 8291 hardcode_minus_L=yes 8292 fi 8293 ;; 8294 8295 hpux11*) 8296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8297 case $host_cpu in 8298 hppa*64*) 8299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8300 ;; 8301 ia64*) 8302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8303 ;; 8304 *) 8305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8306 ;; 8307 esac 8308 else 8309 case $host_cpu in 8310 hppa*64*) 8311 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8312 ;; 8313 ia64*) 8314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8315 ;; 8316 *) 8317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8318 ;; 8319 esac 8320 fi 8321 if test "$with_gnu_ld" = no; then 8322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8323 hardcode_libdir_separator=: 8324 8325 case $host_cpu in 8326 hppa*64*|ia64*) 8327 hardcode_libdir_flag_spec_ld='+b $libdir' 8328 hardcode_direct=no 8329 hardcode_shlibpath_var=no 8330 ;; 8331 *) 8332 hardcode_direct=yes 8333 export_dynamic_flag_spec='${wl}-E' 8334 8335 # hardcode_minus_L: Not really in the search PATH, 8336 # but as the default location of the library. 8337 hardcode_minus_L=yes 8338 ;; 8339 esac 8340 fi 8341 ;; 8342 8343 irix5* | irix6* | nonstopux*) 8344 if test "$GCC" = yes; then 8345 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' 8346 else 8347 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' 8348 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8349 fi 8350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8351 hardcode_libdir_separator=: 8352 link_all_deplibs=yes 8353 ;; 8354 8355 netbsd*) 8356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8358 else 8359 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8360 fi 8361 hardcode_libdir_flag_spec='-R$libdir' 8362 hardcode_direct=yes 8363 hardcode_shlibpath_var=no 8364 ;; 8365 8366 newsos6) 8367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8368 hardcode_direct=yes 8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8370 hardcode_libdir_separator=: 8371 hardcode_shlibpath_var=no 8372 ;; 8373 8374 openbsd*) 8375 if test -f /usr/libexec/ld.so; then 8376 hardcode_direct=yes 8377 hardcode_shlibpath_var=no 8378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8380 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8382 export_dynamic_flag_spec='${wl}-E' 8383 else 8384 case $host_os in 8385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8387 hardcode_libdir_flag_spec='-R$libdir' 8388 ;; 8389 *) 8390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8392 ;; 8393 esac 8394 fi 8395 else 8396 ld_shlibs=no 8397 fi 8398 ;; 8399 8400 os2*) 8401 hardcode_libdir_flag_spec='-L$libdir' 8402 hardcode_minus_L=yes 8403 allow_undefined_flag=unsupported 8404 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' 8405 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8406 ;; 8407 8408 osf3*) 8409 if test "$GCC" = yes; then 8410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8411 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' 8412 else 8413 allow_undefined_flag=' -expect_unresolved \*' 8414 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' 8415 fi 8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8417 hardcode_libdir_separator=: 8418 ;; 8419 8420 osf4* | osf5*) # as osf3* with the addition of -msym flag 8421 if test "$GCC" = yes; then 8422 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8423 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' 8424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8425 else 8426 allow_undefined_flag=' -expect_unresolved \*' 8427 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' 8428 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8429 $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' 8430 8431 # Both c and cxx compiler support -rpath directly 8432 hardcode_libdir_flag_spec='-rpath $libdir' 8433 fi 8434 hardcode_libdir_separator=: 8435 ;; 8436 8437 solaris*) 8438 no_undefined_flag=' -z text' 8439 if test "$GCC" = yes; then 8440 wlarc='${wl}' 8441 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8444 else 8445 wlarc='' 8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8449 fi 8450 hardcode_libdir_flag_spec='-R$libdir' 8451 hardcode_shlibpath_var=no 8452 case $host_os in 8453 solaris2.[0-5] | solaris2.[0-5].*) ;; 8454 *) 8455 # The compiler driver will combine and reorder linker options, 8456 # but understands `-z linker_flag'. GCC discards it without `$wl', 8457 # but is careful enough not to reorder. 8458 # Supported since Solaris 2.6 (maybe 2.5.1?) 8459 if test "$GCC" = yes; then 8460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8461 else 8462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8463 fi 8464 ;; 8465 esac 8466 link_all_deplibs=yes 8467 ;; 8468 8469 sunos4*) 8470 if test "x$host_vendor" = xsequent; then 8471 # Use $CC to link under sequent, because it throws in some extra .o 8472 # files that make .init and .fini sections work. 8473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8474 else 8475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8476 fi 8477 hardcode_libdir_flag_spec='-L$libdir' 8478 hardcode_direct=yes 8479 hardcode_minus_L=yes 8480 hardcode_shlibpath_var=no 8481 ;; 8482 8483 sysv4) 8484 case $host_vendor in 8485 sni) 8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8487 hardcode_direct=yes # is this really true??? 8488 ;; 8489 siemens) 8490 ## LD is ld it makes a PLAMLIB 8491 ## CC just makes a GrossModule. 8492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8493 reload_cmds='$CC -r -o $output$reload_objs' 8494 hardcode_direct=no 8495 ;; 8496 motorola) 8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8499 ;; 8500 esac 8501 runpath_var='LD_RUN_PATH' 8502 hardcode_shlibpath_var=no 8503 ;; 8504 8505 sysv4.3*) 8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8507 hardcode_shlibpath_var=no 8508 export_dynamic_flag_spec='-Bexport' 8509 ;; 8510 8511 sysv4*MP*) 8512 if test -d /usr/nec; then 8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8514 hardcode_shlibpath_var=no 8515 runpath_var=LD_RUN_PATH 8516 hardcode_runpath_var=yes 8517 ld_shlibs=yes 8518 fi 8519 ;; 8520 8521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8522 no_undefined_flag='${wl}-z,text' 8523 archive_cmds_need_lc=no 8524 hardcode_shlibpath_var=no 8525 runpath_var='LD_RUN_PATH' 8526 8527 if test "$GCC" = yes; then 8528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8530 else 8531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8533 fi 8534 ;; 8535 8536 sysv5* | sco3.2v5* | sco5v6*) 8537 # Note: We can NOT use -z defs as we might desire, because we do not 8538 # link with -lc, and that would cause any symbols used from libc to 8539 # always be unresolved, which means just about no library would 8540 # ever link correctly. If we're not using GNU ld we use -z text 8541 # though, which does catch some bad symbols but isn't as heavy-handed 8542 # as -z defs. 8543 no_undefined_flag='${wl}-z,text' 8544 allow_undefined_flag='${wl}-z,nodefs' 8545 archive_cmds_need_lc=no 8546 hardcode_shlibpath_var=no 8547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8548 hardcode_libdir_separator=':' 8549 link_all_deplibs=yes 8550 export_dynamic_flag_spec='${wl}-Bexport' 8551 runpath_var='LD_RUN_PATH' 8552 8553 if test "$GCC" = yes; then 8554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8556 else 8557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8559 fi 8560 ;; 8561 8562 uts4*) 8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8564 hardcode_libdir_flag_spec='-L$libdir' 8565 hardcode_shlibpath_var=no 8566 ;; 8567 8568 *) 8569 ld_shlibs=no 8570 ;; 8571 esac 8572 fi 8573 8574{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8575echo "${ECHO_T}$ld_shlibs" >&6; } 8576test "$ld_shlibs" = no && can_build_shared=no 8577 8578# 8579# Do we need to explicitly link libc? 8580# 8581case "x$archive_cmds_need_lc" in 8582x|xyes) 8583 # Assume -lc should be added 8584 archive_cmds_need_lc=yes 8585 8586 if test "$enable_shared" = yes && test "$GCC" = yes; then 8587 case $archive_cmds in 8588 *'~'*) 8589 # FIXME: we may have to deal with multi-command sequences. 8590 ;; 8591 '$CC '*) 8592 # Test whether the compiler implicitly links with -lc since on some 8593 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8594 # to ld, don't add -lc before -lgcc. 8595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8597 $rm conftest* 8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8599 8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8601 (eval $ac_compile) 2>&5 8602 ac_status=$? 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8604 (exit $ac_status); } 2>conftest.err; then 8605 soname=conftest 8606 lib=conftest 8607 libobjs=conftest.$ac_objext 8608 deplibs= 8609 wl=$lt_prog_compiler_wl 8610 pic_flag=$lt_prog_compiler_pic 8611 compiler_flags=-v 8612 linker_flags=-v 8613 verstring= 8614 output_objdir=. 8615 libname=conftest 8616 lt_save_allow_undefined_flag=$allow_undefined_flag 8617 allow_undefined_flag= 8618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8620 ac_status=$? 8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); } 8623 then 8624 archive_cmds_need_lc=no 8625 else 8626 archive_cmds_need_lc=yes 8627 fi 8628 allow_undefined_flag=$lt_save_allow_undefined_flag 8629 else 8630 cat conftest.err 1>&5 8631 fi 8632 $rm conftest* 8633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8634echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8635 ;; 8636 esac 8637 fi 8638 ;; 8639esac 8640 8641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8643library_names_spec= 8644libname_spec='lib$name' 8645soname_spec= 8646shrext_cmds=".so" 8647postinstall_cmds= 8648postuninstall_cmds= 8649finish_cmds= 8650finish_eval= 8651shlibpath_var= 8652shlibpath_overrides_runpath=unknown 8653version_type=none 8654dynamic_linker="$host_os ld.so" 8655sys_lib_dlsearch_path_spec="/lib /usr/lib" 8656 8657if test "$GCC" = yes; then 8658 case $host_os in 8659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8660 *) lt_awk_arg="/^libraries:/" ;; 8661 esac 8662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8663 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8664 # if the path contains ";" then we assume it to be the separator 8665 # otherwise default to the standard path separator (i.e. ":") - it is 8666 # assumed that no part of a normal pathname contains ";" but that should 8667 # okay in the real world where ";" in dirpaths is itself problematic. 8668 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8669 else 8670 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8671 fi 8672 # Ok, now we have the path, separated by spaces, we can step through it 8673 # and add multilib dir if necessary. 8674 lt_tmp_lt_search_path_spec= 8675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8676 for lt_sys_path in $lt_search_path_spec; do 8677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8679 else 8680 test -d "$lt_sys_path" && \ 8681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8682 fi 8683 done 8684 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8685BEGIN {RS=" "; FS="/|\n";} { 8686 lt_foo=""; 8687 lt_count=0; 8688 for (lt_i = NF; lt_i > 0; lt_i--) { 8689 if ($lt_i != "" && $lt_i != ".") { 8690 if ($lt_i == "..") { 8691 lt_count++; 8692 } else { 8693 if (lt_count == 0) { 8694 lt_foo="/" $lt_i lt_foo; 8695 } else { 8696 lt_count--; 8697 } 8698 } 8699 } 8700 } 8701 if (lt_foo != "") { lt_freq[lt_foo]++; } 8702 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8703}'` 8704 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8705else 8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8707fi 8708need_lib_prefix=unknown 8709hardcode_into_libs=no 8710 8711# when you set need_version to no, make sure it does not cause -set_version 8712# flags to be left without arguments 8713need_version=unknown 8714 8715case $host_os in 8716aix3*) 8717 version_type=linux 8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8719 shlibpath_var=LIBPATH 8720 8721 # AIX 3 has no versioning support, so we append a major version to the name. 8722 soname_spec='${libname}${release}${shared_ext}$major' 8723 ;; 8724 8725aix4* | aix5*) 8726 version_type=linux 8727 need_lib_prefix=no 8728 need_version=no 8729 hardcode_into_libs=yes 8730 if test "$host_cpu" = ia64; then 8731 # AIX 5 supports IA64 8732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8733 shlibpath_var=LD_LIBRARY_PATH 8734 else 8735 # With GCC up to 2.95.x, collect2 would create an import file 8736 # for dependence libraries. The import file would start with 8737 # the line `#! .'. This would cause the generated library to 8738 # depend on `.', always an invalid library. This was fixed in 8739 # development snapshots of GCC prior to 3.0. 8740 case $host_os in 8741 aix4 | aix4.[01] | aix4.[01].*) 8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8743 echo ' yes ' 8744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8745 : 8746 else 8747 can_build_shared=no 8748 fi 8749 ;; 8750 esac 8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8752 # soname into executable. Probably we can add versioning support to 8753 # collect2, so additional links can be useful in future. 8754 if test "$aix_use_runtimelinking" = yes; then 8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8756 # instead of lib<name>.a to let people know that these are not 8757 # typical AIX shared libraries. 8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8759 else 8760 # We preserve .a as extension for shared libraries through AIX4.2 8761 # and later when we are not doing run time linking. 8762 library_names_spec='${libname}${release}.a $libname.a' 8763 soname_spec='${libname}${release}${shared_ext}$major' 8764 fi 8765 shlibpath_var=LIBPATH 8766 fi 8767 ;; 8768 8769amigaos*) 8770 library_names_spec='$libname.ixlibrary $libname.a' 8771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8772 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' 8773 ;; 8774 8775beos*) 8776 library_names_spec='${libname}${shared_ext}' 8777 dynamic_linker="$host_os ld.so" 8778 shlibpath_var=LIBRARY_PATH 8779 ;; 8780 8781bsdi[45]*) 8782 version_type=linux 8783 need_version=no 8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8787 shlibpath_var=LD_LIBRARY_PATH 8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8790 # the default ld.so.conf also contains /usr/contrib/lib and 8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8792 # libtool to hard-code these into programs 8793 ;; 8794 8795cygwin* | mingw* | pw32*) 8796 version_type=windows 8797 shrext_cmds=".dll" 8798 need_version=no 8799 need_lib_prefix=no 8800 8801 case $GCC,$host_os in 8802 yes,cygwin* | yes,mingw* | yes,pw32*) 8803 library_names_spec='$libname.dll.a' 8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8805 postinstall_cmds='base_file=`basename \${file}`~ 8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8807 dldir=$destdir/`dirname \$dlpath`~ 8808 test -d \$dldir || mkdir -p \$dldir~ 8809 $install_prog $dir/$dlname \$dldir/$dlname~ 8810 chmod a+x \$dldir/$dlname' 8811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8812 dlpath=$dir/\$dldll~ 8813 $rm \$dlpath' 8814 shlibpath_overrides_runpath=yes 8815 8816 case $host_os in 8817 cygwin*) 8818 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8821 ;; 8822 mingw*) 8823 # MinGW DLLs use traditional 'lib' prefix 8824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8827 # It is most probably a Windows format PATH printed by 8828 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8829 # path with ; separators, and with drive letters. We can handle the 8830 # drive letters (cygwin fileutils understands them), so leave them, 8831 # especially as we might pass files found there to a mingw objdump, 8832 # which wouldn't understand a cygwinified path. Ahh. 8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8834 else 8835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8836 fi 8837 ;; 8838 pw32*) 8839 # pw32 DLLs use 'pw' prefix rather than 'lib' 8840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8841 ;; 8842 esac 8843 ;; 8844 8845 *) 8846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8847 ;; 8848 esac 8849 dynamic_linker='Win32 ld.exe' 8850 # FIXME: first we should search . and the directory the executable is in 8851 shlibpath_var=PATH 8852 ;; 8853 8854darwin* | rhapsody*) 8855 dynamic_linker="$host_os dyld" 8856 version_type=darwin 8857 need_lib_prefix=no 8858 need_version=no 8859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8860 soname_spec='${libname}${release}${major}$shared_ext' 8861 shlibpath_overrides_runpath=yes 8862 shlibpath_var=DYLD_LIBRARY_PATH 8863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8864 8865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8867 ;; 8868 8869dgux*) 8870 version_type=linux 8871 need_lib_prefix=no 8872 need_version=no 8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8874 soname_spec='${libname}${release}${shared_ext}$major' 8875 shlibpath_var=LD_LIBRARY_PATH 8876 ;; 8877 8878freebsd1*) 8879 dynamic_linker=no 8880 ;; 8881 8882freebsd* | dragonfly*) 8883 # DragonFly does not have aout. When/if they implement a new 8884 # versioning mechanism, adjust this. 8885 if test -x /usr/bin/objformat; then 8886 objformat=`/usr/bin/objformat` 8887 else 8888 case $host_os in 8889 freebsd[123]*) objformat=aout ;; 8890 *) objformat=elf ;; 8891 esac 8892 fi 8893 version_type=freebsd-$objformat 8894 case $version_type in 8895 freebsd-elf*) 8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8897 need_version=no 8898 need_lib_prefix=no 8899 ;; 8900 freebsd-*) 8901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8902 need_version=yes 8903 ;; 8904 esac 8905 shlibpath_var=LD_LIBRARY_PATH 8906 case $host_os in 8907 freebsd2*) 8908 shlibpath_overrides_runpath=yes 8909 ;; 8910 freebsd3.[01]* | freebsdelf3.[01]*) 8911 shlibpath_overrides_runpath=yes 8912 hardcode_into_libs=yes 8913 ;; 8914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8916 shlibpath_overrides_runpath=no 8917 hardcode_into_libs=yes 8918 ;; 8919 *) # from 4.6 on, and DragonFly 8920 shlibpath_overrides_runpath=yes 8921 hardcode_into_libs=yes 8922 ;; 8923 esac 8924 ;; 8925 8926gnu*) 8927 version_type=linux 8928 need_lib_prefix=no 8929 need_version=no 8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8931 soname_spec='${libname}${release}${shared_ext}$major' 8932 shlibpath_var=LD_LIBRARY_PATH 8933 hardcode_into_libs=yes 8934 ;; 8935 8936hpux9* | hpux10* | hpux11*) 8937 # Give a soname corresponding to the major version so that dld.sl refuses to 8938 # link against other versions. 8939 version_type=sunos 8940 need_lib_prefix=no 8941 need_version=no 8942 case $host_cpu in 8943 ia64*) 8944 shrext_cmds='.so' 8945 hardcode_into_libs=yes 8946 dynamic_linker="$host_os dld.so" 8947 shlibpath_var=LD_LIBRARY_PATH 8948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8950 soname_spec='${libname}${release}${shared_ext}$major' 8951 if test "X$HPUX_IA64_MODE" = X32; then 8952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8953 else 8954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8955 fi 8956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8957 ;; 8958 hppa*64*) 8959 shrext_cmds='.sl' 8960 hardcode_into_libs=yes 8961 dynamic_linker="$host_os dld.sl" 8962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8965 soname_spec='${libname}${release}${shared_ext}$major' 8966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8968 ;; 8969 *) 8970 shrext_cmds='.sl' 8971 dynamic_linker="$host_os dld.sl" 8972 shlibpath_var=SHLIB_PATH 8973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8975 soname_spec='${libname}${release}${shared_ext}$major' 8976 ;; 8977 esac 8978 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8979 postinstall_cmds='chmod 555 $lib' 8980 ;; 8981 8982interix[3-9]*) 8983 version_type=linux 8984 need_lib_prefix=no 8985 need_version=no 8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8987 soname_spec='${libname}${release}${shared_ext}$major' 8988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8989 shlibpath_var=LD_LIBRARY_PATH 8990 shlibpath_overrides_runpath=no 8991 hardcode_into_libs=yes 8992 ;; 8993 8994irix5* | irix6* | nonstopux*) 8995 case $host_os in 8996 nonstopux*) version_type=nonstopux ;; 8997 *) 8998 if test "$lt_cv_prog_gnu_ld" = yes; then 8999 version_type=linux 9000 else 9001 version_type=irix 9002 fi ;; 9003 esac 9004 need_lib_prefix=no 9005 need_version=no 9006 soname_spec='${libname}${release}${shared_ext}$major' 9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9008 case $host_os in 9009 irix5* | nonstopux*) 9010 libsuff= shlibsuff= 9011 ;; 9012 *) 9013 case $LD in # libtool.m4 will add one of these switches to LD 9014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9015 libsuff= shlibsuff= libmagic=32-bit;; 9016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9017 libsuff=32 shlibsuff=N32 libmagic=N32;; 9018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9019 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9020 *) libsuff= shlibsuff= libmagic=never-match;; 9021 esac 9022 ;; 9023 esac 9024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9025 shlibpath_overrides_runpath=no 9026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9028 hardcode_into_libs=yes 9029 ;; 9030 9031# No shared lib support for Linux oldld, aout, or coff. 9032linux*oldld* | linux*aout* | linux*coff*) 9033 dynamic_linker=no 9034 ;; 9035 9036# This must be Linux ELF. 9037linux* | k*bsd*-gnu) 9038 version_type=linux 9039 need_lib_prefix=no 9040 need_version=no 9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9042 soname_spec='${libname}${release}${shared_ext}$major' 9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9044 shlibpath_var=LD_LIBRARY_PATH 9045 shlibpath_overrides_runpath=no 9046 # This implies no fast_install, which is unacceptable. 9047 # Some rework will be needed to allow for fast_install 9048 # before this can be enabled. 9049 hardcode_into_libs=yes 9050 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9051 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9052 9053 # Append ld.so.conf contents to the search path 9054 if test -f /etc/ld.so.conf; then 9055 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9057 fi 9058 9059 # We used to test for /lib/ld.so.1 and disable shared libraries on 9060 # powerpc, because MkLinux only supported shared libraries with the 9061 # GNU dynamic linker. Since this was broken with cross compilers, 9062 # most powerpc-linux boxes support dynamic linking these days and 9063 # people can always --disable-shared, the test was removed, and we 9064 # assume the GNU/Linux dynamic linker is in use. 9065 dynamic_linker='GNU/Linux ld.so' 9066 ;; 9067 9068netbsd*) 9069 version_type=sunos 9070 need_lib_prefix=no 9071 need_version=no 9072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9075 dynamic_linker='NetBSD (a.out) ld.so' 9076 else 9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9078 soname_spec='${libname}${release}${shared_ext}$major' 9079 dynamic_linker='NetBSD ld.elf_so' 9080 fi 9081 shlibpath_var=LD_LIBRARY_PATH 9082 shlibpath_overrides_runpath=yes 9083 hardcode_into_libs=yes 9084 ;; 9085 9086newsos6) 9087 version_type=linux 9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9089 shlibpath_var=LD_LIBRARY_PATH 9090 shlibpath_overrides_runpath=yes 9091 ;; 9092 9093nto-qnx*) 9094 version_type=linux 9095 need_lib_prefix=no 9096 need_version=no 9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9098 soname_spec='${libname}${release}${shared_ext}$major' 9099 shlibpath_var=LD_LIBRARY_PATH 9100 shlibpath_overrides_runpath=yes 9101 ;; 9102 9103openbsd*) 9104 version_type=sunos 9105 sys_lib_dlsearch_path_spec="/usr/lib" 9106 need_lib_prefix=no 9107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9108 case $host_os in 9109 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9110 *) need_version=no ;; 9111 esac 9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9114 shlibpath_var=LD_LIBRARY_PATH 9115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9116 case $host_os in 9117 openbsd2.[89] | openbsd2.[89].*) 9118 shlibpath_overrides_runpath=no 9119 ;; 9120 *) 9121 shlibpath_overrides_runpath=yes 9122 ;; 9123 esac 9124 else 9125 shlibpath_overrides_runpath=yes 9126 fi 9127 ;; 9128 9129os2*) 9130 libname_spec='$name' 9131 shrext_cmds=".dll" 9132 need_lib_prefix=no 9133 library_names_spec='$libname${shared_ext} $libname.a' 9134 dynamic_linker='OS/2 ld.exe' 9135 shlibpath_var=LIBPATH 9136 ;; 9137 9138osf3* | osf4* | osf5*) 9139 version_type=osf 9140 need_lib_prefix=no 9141 need_version=no 9142 soname_spec='${libname}${release}${shared_ext}$major' 9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9144 shlibpath_var=LD_LIBRARY_PATH 9145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9147 ;; 9148 9149rdos*) 9150 dynamic_linker=no 9151 ;; 9152 9153solaris*) 9154 version_type=linux 9155 need_lib_prefix=no 9156 need_version=no 9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9158 soname_spec='${libname}${release}${shared_ext}$major' 9159 shlibpath_var=LD_LIBRARY_PATH 9160 shlibpath_overrides_runpath=yes 9161 hardcode_into_libs=yes 9162 # ldd complains unless libraries are executable 9163 postinstall_cmds='chmod +x $lib' 9164 ;; 9165 9166sunos4*) 9167 version_type=sunos 9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9170 shlibpath_var=LD_LIBRARY_PATH 9171 shlibpath_overrides_runpath=yes 9172 if test "$with_gnu_ld" = yes; then 9173 need_lib_prefix=no 9174 fi 9175 need_version=yes 9176 ;; 9177 9178sysv4 | sysv4.3*) 9179 version_type=linux 9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9181 soname_spec='${libname}${release}${shared_ext}$major' 9182 shlibpath_var=LD_LIBRARY_PATH 9183 case $host_vendor in 9184 sni) 9185 shlibpath_overrides_runpath=no 9186 need_lib_prefix=no 9187 export_dynamic_flag_spec='${wl}-Blargedynsym' 9188 runpath_var=LD_RUN_PATH 9189 ;; 9190 siemens) 9191 need_lib_prefix=no 9192 ;; 9193 motorola) 9194 need_lib_prefix=no 9195 need_version=no 9196 shlibpath_overrides_runpath=no 9197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9198 ;; 9199 esac 9200 ;; 9201 9202sysv4*MP*) 9203 if test -d /usr/nec ;then 9204 version_type=linux 9205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9206 soname_spec='$libname${shared_ext}.$major' 9207 shlibpath_var=LD_LIBRARY_PATH 9208 fi 9209 ;; 9210 9211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9212 version_type=freebsd-elf 9213 need_lib_prefix=no 9214 need_version=no 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9216 soname_spec='${libname}${release}${shared_ext}$major' 9217 shlibpath_var=LD_LIBRARY_PATH 9218 hardcode_into_libs=yes 9219 if test "$with_gnu_ld" = yes; then 9220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9221 shlibpath_overrides_runpath=no 9222 else 9223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9224 shlibpath_overrides_runpath=yes 9225 case $host_os in 9226 sco3.2v5*) 9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9228 ;; 9229 esac 9230 fi 9231 sys_lib_dlsearch_path_spec='/usr/lib' 9232 ;; 9233 9234uts4*) 9235 version_type=linux 9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9237 soname_spec='${libname}${release}${shared_ext}$major' 9238 shlibpath_var=LD_LIBRARY_PATH 9239 ;; 9240 9241*) 9242 dynamic_linker=no 9243 ;; 9244esac 9245{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9246echo "${ECHO_T}$dynamic_linker" >&6; } 9247test "$dynamic_linker" = no && can_build_shared=no 9248 9249variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9250if test "$GCC" = yes; then 9251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9252fi 9253 9254{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9256hardcode_action= 9257if test -n "$hardcode_libdir_flag_spec" || \ 9258 test -n "$runpath_var" || \ 9259 test "X$hardcode_automatic" = "Xyes" ; then 9260 9261 # We can hardcode non-existant directories. 9262 if test "$hardcode_direct" != no && 9263 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9264 # have to relink, otherwise we might link with an installed library 9265 # when we should be linking with a yet-to-be-installed one 9266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9267 test "$hardcode_minus_L" != no; then 9268 # Linking always hardcodes the temporary library directory. 9269 hardcode_action=relink 9270 else 9271 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9272 hardcode_action=immediate 9273 fi 9274else 9275 # We cannot hardcode anything, or else we can only hardcode existing 9276 # directories. 9277 hardcode_action=unsupported 9278fi 9279{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9280echo "${ECHO_T}$hardcode_action" >&6; } 9281 9282if test "$hardcode_action" = relink; then 9283 # Fast installation is not supported 9284 enable_fast_install=no 9285elif test "$shlibpath_overrides_runpath" = yes || 9286 test "$enable_shared" = no; then 9287 # Fast installation is not necessary 9288 enable_fast_install=needless 9289fi 9290 9291striplib= 9292old_striplib= 9293{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9294echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9295if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9297 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9298 { echo "$as_me:$LINENO: result: yes" >&5 9299echo "${ECHO_T}yes" >&6; } 9300else 9301# FIXME - insert some real tests, host_os isn't really good enough 9302 case $host_os in 9303 darwin*) 9304 if test -n "$STRIP" ; then 9305 striplib="$STRIP -x" 9306 old_striplib="$STRIP -S" 9307 { echo "$as_me:$LINENO: result: yes" >&5 9308echo "${ECHO_T}yes" >&6; } 9309 else 9310 { echo "$as_me:$LINENO: result: no" >&5 9311echo "${ECHO_T}no" >&6; } 9312fi 9313 ;; 9314 *) 9315 { echo "$as_me:$LINENO: result: no" >&5 9316echo "${ECHO_T}no" >&6; } 9317 ;; 9318 esac 9319fi 9320 9321if test "x$enable_dlopen" != xyes; then 9322 enable_dlopen=unknown 9323 enable_dlopen_self=unknown 9324 enable_dlopen_self_static=unknown 9325else 9326 lt_cv_dlopen=no 9327 lt_cv_dlopen_libs= 9328 9329 case $host_os in 9330 beos*) 9331 lt_cv_dlopen="load_add_on" 9332 lt_cv_dlopen_libs= 9333 lt_cv_dlopen_self=yes 9334 ;; 9335 9336 mingw* | pw32*) 9337 lt_cv_dlopen="LoadLibrary" 9338 lt_cv_dlopen_libs= 9339 ;; 9340 9341 cygwin*) 9342 lt_cv_dlopen="dlopen" 9343 lt_cv_dlopen_libs= 9344 ;; 9345 9346 darwin*) 9347 # if libdl is installed we need to link against it 9348 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9349echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9350if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9351 echo $ECHO_N "(cached) $ECHO_C" >&6 9352else 9353 ac_check_lib_save_LIBS=$LIBS 9354LIBS="-ldl $LIBS" 9355cat >conftest.$ac_ext <<_ACEOF 9356/* confdefs.h. */ 9357_ACEOF 9358cat confdefs.h >>conftest.$ac_ext 9359cat >>conftest.$ac_ext <<_ACEOF 9360/* end confdefs.h. */ 9361 9362/* Override any GCC internal prototype to avoid an error. 9363 Use char because int might match the return type of a GCC 9364 builtin and then its argument prototype would still apply. */ 9365#ifdef __cplusplus 9366extern "C" 9367#endif 9368char dlopen (); 9369int 9370main () 9371{ 9372return dlopen (); 9373 ; 9374 return 0; 9375} 9376_ACEOF 9377rm -f conftest.$ac_objext conftest$ac_exeext 9378if { (ac_try="$ac_link" 9379case "(($ac_try" in 9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9381 *) ac_try_echo=$ac_try;; 9382esac 9383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9384 (eval "$ac_link") 2>conftest.er1 9385 ac_status=$? 9386 grep -v '^ *+' conftest.er1 >conftest.err 9387 rm -f conftest.er1 9388 cat conftest.err >&5 9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9390 (exit $ac_status); } && { 9391 test -z "$ac_c_werror_flag" || 9392 test ! -s conftest.err 9393 } && test -s conftest$ac_exeext && 9394 $as_test_x conftest$ac_exeext; then 9395 ac_cv_lib_dl_dlopen=yes 9396else 9397 echo "$as_me: failed program was:" >&5 9398sed 's/^/| /' conftest.$ac_ext >&5 9399 9400 ac_cv_lib_dl_dlopen=no 9401fi 9402 9403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9404 conftest$ac_exeext conftest.$ac_ext 9405LIBS=$ac_check_lib_save_LIBS 9406fi 9407{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9408echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9409if test $ac_cv_lib_dl_dlopen = yes; then 9410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9411else 9412 9413 lt_cv_dlopen="dyld" 9414 lt_cv_dlopen_libs= 9415 lt_cv_dlopen_self=yes 9416 9417fi 9418 9419 ;; 9420 9421 *) 9422 { echo "$as_me:$LINENO: checking for shl_load" >&5 9423echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9424if test "${ac_cv_func_shl_load+set}" = set; then 9425 echo $ECHO_N "(cached) $ECHO_C" >&6 9426else 9427 cat >conftest.$ac_ext <<_ACEOF 9428/* confdefs.h. */ 9429_ACEOF 9430cat confdefs.h >>conftest.$ac_ext 9431cat >>conftest.$ac_ext <<_ACEOF 9432/* end confdefs.h. */ 9433/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9435#define shl_load innocuous_shl_load 9436 9437/* System header to define __stub macros and hopefully few prototypes, 9438 which can conflict with char shl_load (); below. 9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9440 <limits.h> exists even on freestanding compilers. */ 9441 9442#ifdef __STDC__ 9443# include <limits.h> 9444#else 9445# include <assert.h> 9446#endif 9447 9448#undef shl_load 9449 9450/* Override any GCC internal prototype to avoid an error. 9451 Use char because int might match the return type of a GCC 9452 builtin and then its argument prototype would still apply. */ 9453#ifdef __cplusplus 9454extern "C" 9455#endif 9456char shl_load (); 9457/* The GNU C library defines this for functions which it implements 9458 to always fail with ENOSYS. Some functions are actually named 9459 something starting with __ and the normal name is an alias. */ 9460#if defined __stub_shl_load || defined __stub___shl_load 9461choke me 9462#endif 9463 9464int 9465main () 9466{ 9467return shl_load (); 9468 ; 9469 return 0; 9470} 9471_ACEOF 9472rm -f conftest.$ac_objext conftest$ac_exeext 9473if { (ac_try="$ac_link" 9474case "(($ac_try" in 9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9476 *) ac_try_echo=$ac_try;; 9477esac 9478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9479 (eval "$ac_link") 2>conftest.er1 9480 ac_status=$? 9481 grep -v '^ *+' conftest.er1 >conftest.err 9482 rm -f conftest.er1 9483 cat conftest.err >&5 9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9485 (exit $ac_status); } && { 9486 test -z "$ac_c_werror_flag" || 9487 test ! -s conftest.err 9488 } && test -s conftest$ac_exeext && 9489 $as_test_x conftest$ac_exeext; then 9490 ac_cv_func_shl_load=yes 9491else 9492 echo "$as_me: failed program was:" >&5 9493sed 's/^/| /' conftest.$ac_ext >&5 9494 9495 ac_cv_func_shl_load=no 9496fi 9497 9498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9499 conftest$ac_exeext conftest.$ac_ext 9500fi 9501{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9502echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9503if test $ac_cv_func_shl_load = yes; then 9504 lt_cv_dlopen="shl_load" 9505else 9506 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9507echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9508if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9509 echo $ECHO_N "(cached) $ECHO_C" >&6 9510else 9511 ac_check_lib_save_LIBS=$LIBS 9512LIBS="-ldld $LIBS" 9513cat >conftest.$ac_ext <<_ACEOF 9514/* confdefs.h. */ 9515_ACEOF 9516cat confdefs.h >>conftest.$ac_ext 9517cat >>conftest.$ac_ext <<_ACEOF 9518/* end confdefs.h. */ 9519 9520/* Override any GCC internal prototype to avoid an error. 9521 Use char because int might match the return type of a GCC 9522 builtin and then its argument prototype would still apply. */ 9523#ifdef __cplusplus 9524extern "C" 9525#endif 9526char shl_load (); 9527int 9528main () 9529{ 9530return shl_load (); 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535rm -f conftest.$ac_objext conftest$ac_exeext 9536if { (ac_try="$ac_link" 9537case "(($ac_try" in 9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9539 *) ac_try_echo=$ac_try;; 9540esac 9541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9542 (eval "$ac_link") 2>conftest.er1 9543 ac_status=$? 9544 grep -v '^ *+' conftest.er1 >conftest.err 9545 rm -f conftest.er1 9546 cat conftest.err >&5 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); } && { 9549 test -z "$ac_c_werror_flag" || 9550 test ! -s conftest.err 9551 } && test -s conftest$ac_exeext && 9552 $as_test_x conftest$ac_exeext; then 9553 ac_cv_lib_dld_shl_load=yes 9554else 9555 echo "$as_me: failed program was:" >&5 9556sed 's/^/| /' conftest.$ac_ext >&5 9557 9558 ac_cv_lib_dld_shl_load=no 9559fi 9560 9561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9562 conftest$ac_exeext conftest.$ac_ext 9563LIBS=$ac_check_lib_save_LIBS 9564fi 9565{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9566echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9567if test $ac_cv_lib_dld_shl_load = yes; then 9568 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9569else 9570 { echo "$as_me:$LINENO: checking for dlopen" >&5 9571echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9572if test "${ac_cv_func_dlopen+set}" = set; then 9573 echo $ECHO_N "(cached) $ECHO_C" >&6 9574else 9575 cat >conftest.$ac_ext <<_ACEOF 9576/* confdefs.h. */ 9577_ACEOF 9578cat confdefs.h >>conftest.$ac_ext 9579cat >>conftest.$ac_ext <<_ACEOF 9580/* end confdefs.h. */ 9581/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9582 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9583#define dlopen innocuous_dlopen 9584 9585/* System header to define __stub macros and hopefully few prototypes, 9586 which can conflict with char dlopen (); below. 9587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9588 <limits.h> exists even on freestanding compilers. */ 9589 9590#ifdef __STDC__ 9591# include <limits.h> 9592#else 9593# include <assert.h> 9594#endif 9595 9596#undef dlopen 9597 9598/* Override any GCC internal prototype to avoid an error. 9599 Use char because int might match the return type of a GCC 9600 builtin and then its argument prototype would still apply. */ 9601#ifdef __cplusplus 9602extern "C" 9603#endif 9604char dlopen (); 9605/* The GNU C library defines this for functions which it implements 9606 to always fail with ENOSYS. Some functions are actually named 9607 something starting with __ and the normal name is an alias. */ 9608#if defined __stub_dlopen || defined __stub___dlopen 9609choke me 9610#endif 9611 9612int 9613main () 9614{ 9615return dlopen (); 9616 ; 9617 return 0; 9618} 9619_ACEOF 9620rm -f conftest.$ac_objext conftest$ac_exeext 9621if { (ac_try="$ac_link" 9622case "(($ac_try" in 9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9624 *) ac_try_echo=$ac_try;; 9625esac 9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9627 (eval "$ac_link") 2>conftest.er1 9628 ac_status=$? 9629 grep -v '^ *+' conftest.er1 >conftest.err 9630 rm -f conftest.er1 9631 cat conftest.err >&5 9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9633 (exit $ac_status); } && { 9634 test -z "$ac_c_werror_flag" || 9635 test ! -s conftest.err 9636 } && test -s conftest$ac_exeext && 9637 $as_test_x conftest$ac_exeext; then 9638 ac_cv_func_dlopen=yes 9639else 9640 echo "$as_me: failed program was:" >&5 9641sed 's/^/| /' conftest.$ac_ext >&5 9642 9643 ac_cv_func_dlopen=no 9644fi 9645 9646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9647 conftest$ac_exeext conftest.$ac_ext 9648fi 9649{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9650echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9651if test $ac_cv_func_dlopen = yes; then 9652 lt_cv_dlopen="dlopen" 9653else 9654 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9656if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9657 echo $ECHO_N "(cached) $ECHO_C" >&6 9658else 9659 ac_check_lib_save_LIBS=$LIBS 9660LIBS="-ldl $LIBS" 9661cat >conftest.$ac_ext <<_ACEOF 9662/* confdefs.h. */ 9663_ACEOF 9664cat confdefs.h >>conftest.$ac_ext 9665cat >>conftest.$ac_ext <<_ACEOF 9666/* end confdefs.h. */ 9667 9668/* Override any GCC internal prototype to avoid an error. 9669 Use char because int might match the return type of a GCC 9670 builtin and then its argument prototype would still apply. */ 9671#ifdef __cplusplus 9672extern "C" 9673#endif 9674char dlopen (); 9675int 9676main () 9677{ 9678return dlopen (); 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683rm -f conftest.$ac_objext conftest$ac_exeext 9684if { (ac_try="$ac_link" 9685case "(($ac_try" in 9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9687 *) ac_try_echo=$ac_try;; 9688esac 9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9690 (eval "$ac_link") 2>conftest.er1 9691 ac_status=$? 9692 grep -v '^ *+' conftest.er1 >conftest.err 9693 rm -f conftest.er1 9694 cat conftest.err >&5 9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9696 (exit $ac_status); } && { 9697 test -z "$ac_c_werror_flag" || 9698 test ! -s conftest.err 9699 } && test -s conftest$ac_exeext && 9700 $as_test_x conftest$ac_exeext; then 9701 ac_cv_lib_dl_dlopen=yes 9702else 9703 echo "$as_me: failed program was:" >&5 9704sed 's/^/| /' conftest.$ac_ext >&5 9705 9706 ac_cv_lib_dl_dlopen=no 9707fi 9708 9709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9710 conftest$ac_exeext conftest.$ac_ext 9711LIBS=$ac_check_lib_save_LIBS 9712fi 9713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9714echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9715if test $ac_cv_lib_dl_dlopen = yes; then 9716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9717else 9718 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9719echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9720if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9721 echo $ECHO_N "(cached) $ECHO_C" >&6 9722else 9723 ac_check_lib_save_LIBS=$LIBS 9724LIBS="-lsvld $LIBS" 9725cat >conftest.$ac_ext <<_ACEOF 9726/* confdefs.h. */ 9727_ACEOF 9728cat confdefs.h >>conftest.$ac_ext 9729cat >>conftest.$ac_ext <<_ACEOF 9730/* end confdefs.h. */ 9731 9732/* Override any GCC internal prototype to avoid an error. 9733 Use char because int might match the return type of a GCC 9734 builtin and then its argument prototype would still apply. */ 9735#ifdef __cplusplus 9736extern "C" 9737#endif 9738char dlopen (); 9739int 9740main () 9741{ 9742return dlopen (); 9743 ; 9744 return 0; 9745} 9746_ACEOF 9747rm -f conftest.$ac_objext conftest$ac_exeext 9748if { (ac_try="$ac_link" 9749case "(($ac_try" in 9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9751 *) ac_try_echo=$ac_try;; 9752esac 9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9754 (eval "$ac_link") 2>conftest.er1 9755 ac_status=$? 9756 grep -v '^ *+' conftest.er1 >conftest.err 9757 rm -f conftest.er1 9758 cat conftest.err >&5 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9760 (exit $ac_status); } && { 9761 test -z "$ac_c_werror_flag" || 9762 test ! -s conftest.err 9763 } && test -s conftest$ac_exeext && 9764 $as_test_x conftest$ac_exeext; then 9765 ac_cv_lib_svld_dlopen=yes 9766else 9767 echo "$as_me: failed program was:" >&5 9768sed 's/^/| /' conftest.$ac_ext >&5 9769 9770 ac_cv_lib_svld_dlopen=no 9771fi 9772 9773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9774 conftest$ac_exeext conftest.$ac_ext 9775LIBS=$ac_check_lib_save_LIBS 9776fi 9777{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9778echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9779if test $ac_cv_lib_svld_dlopen = yes; then 9780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9781else 9782 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9783echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9784if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9785 echo $ECHO_N "(cached) $ECHO_C" >&6 9786else 9787 ac_check_lib_save_LIBS=$LIBS 9788LIBS="-ldld $LIBS" 9789cat >conftest.$ac_ext <<_ACEOF 9790/* confdefs.h. */ 9791_ACEOF 9792cat confdefs.h >>conftest.$ac_ext 9793cat >>conftest.$ac_ext <<_ACEOF 9794/* end confdefs.h. */ 9795 9796/* Override any GCC internal prototype to avoid an error. 9797 Use char because int might match the return type of a GCC 9798 builtin and then its argument prototype would still apply. */ 9799#ifdef __cplusplus 9800extern "C" 9801#endif 9802char dld_link (); 9803int 9804main () 9805{ 9806return dld_link (); 9807 ; 9808 return 0; 9809} 9810_ACEOF 9811rm -f conftest.$ac_objext conftest$ac_exeext 9812if { (ac_try="$ac_link" 9813case "(($ac_try" in 9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9815 *) ac_try_echo=$ac_try;; 9816esac 9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9818 (eval "$ac_link") 2>conftest.er1 9819 ac_status=$? 9820 grep -v '^ *+' conftest.er1 >conftest.err 9821 rm -f conftest.er1 9822 cat conftest.err >&5 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9824 (exit $ac_status); } && { 9825 test -z "$ac_c_werror_flag" || 9826 test ! -s conftest.err 9827 } && test -s conftest$ac_exeext && 9828 $as_test_x conftest$ac_exeext; then 9829 ac_cv_lib_dld_dld_link=yes 9830else 9831 echo "$as_me: failed program was:" >&5 9832sed 's/^/| /' conftest.$ac_ext >&5 9833 9834 ac_cv_lib_dld_dld_link=no 9835fi 9836 9837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9838 conftest$ac_exeext conftest.$ac_ext 9839LIBS=$ac_check_lib_save_LIBS 9840fi 9841{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9842echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9843if test $ac_cv_lib_dld_dld_link = yes; then 9844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9845fi 9846 9847 9848fi 9849 9850 9851fi 9852 9853 9854fi 9855 9856 9857fi 9858 9859 9860fi 9861 9862 ;; 9863 esac 9864 9865 if test "x$lt_cv_dlopen" != xno; then 9866 enable_dlopen=yes 9867 else 9868 enable_dlopen=no 9869 fi 9870 9871 case $lt_cv_dlopen in 9872 dlopen) 9873 save_CPPFLAGS="$CPPFLAGS" 9874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9875 9876 save_LDFLAGS="$LDFLAGS" 9877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9878 9879 save_LIBS="$LIBS" 9880 LIBS="$lt_cv_dlopen_libs $LIBS" 9881 9882 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9883echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9884if test "${lt_cv_dlopen_self+set}" = set; then 9885 echo $ECHO_N "(cached) $ECHO_C" >&6 9886else 9887 if test "$cross_compiling" = yes; then : 9888 lt_cv_dlopen_self=cross 9889else 9890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9891 lt_status=$lt_dlunknown 9892 cat > conftest.$ac_ext <<EOF 9893#line 9893 "configure" 9894#include "confdefs.h" 9895 9896#if HAVE_DLFCN_H 9897#include <dlfcn.h> 9898#endif 9899 9900#include <stdio.h> 9901 9902#ifdef RTLD_GLOBAL 9903# define LT_DLGLOBAL RTLD_GLOBAL 9904#else 9905# ifdef DL_GLOBAL 9906# define LT_DLGLOBAL DL_GLOBAL 9907# else 9908# define LT_DLGLOBAL 0 9909# endif 9910#endif 9911 9912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9913 find out it does not work in some platform. */ 9914#ifndef LT_DLLAZY_OR_NOW 9915# ifdef RTLD_LAZY 9916# define LT_DLLAZY_OR_NOW RTLD_LAZY 9917# else 9918# ifdef DL_LAZY 9919# define LT_DLLAZY_OR_NOW DL_LAZY 9920# else 9921# ifdef RTLD_NOW 9922# define LT_DLLAZY_OR_NOW RTLD_NOW 9923# else 9924# ifdef DL_NOW 9925# define LT_DLLAZY_OR_NOW DL_NOW 9926# else 9927# define LT_DLLAZY_OR_NOW 0 9928# endif 9929# endif 9930# endif 9931# endif 9932#endif 9933 9934#ifdef __cplusplus 9935extern "C" void exit (int); 9936#endif 9937 9938void fnord() { int i=42;} 9939int main () 9940{ 9941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9942 int status = $lt_dlunknown; 9943 9944 if (self) 9945 { 9946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9948 /* dlclose (self); */ 9949 } 9950 else 9951 puts (dlerror ()); 9952 9953 exit (status); 9954} 9955EOF 9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9957 (eval $ac_link) 2>&5 9958 ac_status=$? 9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9960 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9961 (./conftest; exit; ) >&5 2>/dev/null 9962 lt_status=$? 9963 case x$lt_status in 9964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9967 esac 9968 else : 9969 # compilation failed 9970 lt_cv_dlopen_self=no 9971 fi 9972fi 9973rm -fr conftest* 9974 9975 9976fi 9977{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9978echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9979 9980 if test "x$lt_cv_dlopen_self" = xyes; then 9981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9982 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9983echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9984if test "${lt_cv_dlopen_self_static+set}" = set; then 9985 echo $ECHO_N "(cached) $ECHO_C" >&6 9986else 9987 if test "$cross_compiling" = yes; then : 9988 lt_cv_dlopen_self_static=cross 9989else 9990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9991 lt_status=$lt_dlunknown 9992 cat > conftest.$ac_ext <<EOF 9993#line 9993 "configure" 9994#include "confdefs.h" 9995 9996#if HAVE_DLFCN_H 9997#include <dlfcn.h> 9998#endif 9999 10000#include <stdio.h> 10001 10002#ifdef RTLD_GLOBAL 10003# define LT_DLGLOBAL RTLD_GLOBAL 10004#else 10005# ifdef DL_GLOBAL 10006# define LT_DLGLOBAL DL_GLOBAL 10007# else 10008# define LT_DLGLOBAL 0 10009# endif 10010#endif 10011 10012/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10013 find out it does not work in some platform. */ 10014#ifndef LT_DLLAZY_OR_NOW 10015# ifdef RTLD_LAZY 10016# define LT_DLLAZY_OR_NOW RTLD_LAZY 10017# else 10018# ifdef DL_LAZY 10019# define LT_DLLAZY_OR_NOW DL_LAZY 10020# else 10021# ifdef RTLD_NOW 10022# define LT_DLLAZY_OR_NOW RTLD_NOW 10023# else 10024# ifdef DL_NOW 10025# define LT_DLLAZY_OR_NOW DL_NOW 10026# else 10027# define LT_DLLAZY_OR_NOW 0 10028# endif 10029# endif 10030# endif 10031# endif 10032#endif 10033 10034#ifdef __cplusplus 10035extern "C" void exit (int); 10036#endif 10037 10038void fnord() { int i=42;} 10039int main () 10040{ 10041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10042 int status = $lt_dlunknown; 10043 10044 if (self) 10045 { 10046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10047 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10048 /* dlclose (self); */ 10049 } 10050 else 10051 puts (dlerror ()); 10052 10053 exit (status); 10054} 10055EOF 10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10057 (eval $ac_link) 2>&5 10058 ac_status=$? 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10061 (./conftest; exit; ) >&5 2>/dev/null 10062 lt_status=$? 10063 case x$lt_status in 10064 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10065 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10066 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10067 esac 10068 else : 10069 # compilation failed 10070 lt_cv_dlopen_self_static=no 10071 fi 10072fi 10073rm -fr conftest* 10074 10075 10076fi 10077{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10078echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10079 fi 10080 10081 CPPFLAGS="$save_CPPFLAGS" 10082 LDFLAGS="$save_LDFLAGS" 10083 LIBS="$save_LIBS" 10084 ;; 10085 esac 10086 10087 case $lt_cv_dlopen_self in 10088 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10089 *) enable_dlopen_self=unknown ;; 10090 esac 10091 10092 case $lt_cv_dlopen_self_static in 10093 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10094 *) enable_dlopen_self_static=unknown ;; 10095 esac 10096fi 10097 10098 10099# Report which library types will actually be built 10100{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10101echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10102{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10103echo "${ECHO_T}$can_build_shared" >&6; } 10104 10105{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10106echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10107test "$can_build_shared" = "no" && enable_shared=no 10108 10109# On AIX, shared libraries and static libraries use the same namespace, and 10110# are all built from PIC. 10111case $host_os in 10112aix3*) 10113 test "$enable_shared" = yes && enable_static=no 10114 if test -n "$RANLIB"; then 10115 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10116 postinstall_cmds='$RANLIB $lib' 10117 fi 10118 ;; 10119 10120aix4* | aix5*) 10121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10122 test "$enable_shared" = yes && enable_static=no 10123 fi 10124 ;; 10125esac 10126{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10127echo "${ECHO_T}$enable_shared" >&6; } 10128 10129{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10130echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10131# Make sure either enable_shared or enable_static is yes. 10132test "$enable_shared" = yes || enable_static=yes 10133{ echo "$as_me:$LINENO: result: $enable_static" >&5 10134echo "${ECHO_T}$enable_static" >&6; } 10135 10136# The else clause should only fire when bootstrapping the 10137# libtool distribution, otherwise you forgot to ship ltmain.sh 10138# with your package, and you will get complaints that there are 10139# no rules to generate ltmain.sh. 10140if test -f "$ltmain"; then 10141 # See if we are running on zsh, and set the options which allow our commands through 10142 # without removal of \ escapes. 10143 if test -n "${ZSH_VERSION+set}" ; then 10144 setopt NO_GLOB_SUBST 10145 fi 10146 # Now quote all the things that may contain metacharacters while being 10147 # careful not to overquote the AC_SUBSTed values. We take copies of the 10148 # variables and quote the copies for generation of the libtool script. 10149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10150 SED SHELL STRIP \ 10151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10153 deplibs_check_method reload_flag reload_cmds need_locks \ 10154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10155 lt_cv_sys_global_symbol_to_c_name_address \ 10156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10157 old_postinstall_cmds old_postuninstall_cmds \ 10158 compiler \ 10159 CC \ 10160 LD \ 10161 lt_prog_compiler_wl \ 10162 lt_prog_compiler_pic \ 10163 lt_prog_compiler_static \ 10164 lt_prog_compiler_no_builtin_flag \ 10165 export_dynamic_flag_spec \ 10166 thread_safe_flag_spec \ 10167 whole_archive_flag_spec \ 10168 enable_shared_with_static_runtimes \ 10169 old_archive_cmds \ 10170 old_archive_from_new_cmds \ 10171 predep_objects \ 10172 postdep_objects \ 10173 predeps \ 10174 postdeps \ 10175 compiler_lib_search_path \ 10176 archive_cmds \ 10177 archive_expsym_cmds \ 10178 postinstall_cmds \ 10179 postuninstall_cmds \ 10180 old_archive_from_expsyms_cmds \ 10181 allow_undefined_flag \ 10182 no_undefined_flag \ 10183 export_symbols_cmds \ 10184 hardcode_libdir_flag_spec \ 10185 hardcode_libdir_flag_spec_ld \ 10186 hardcode_libdir_separator \ 10187 hardcode_automatic \ 10188 module_cmds \ 10189 module_expsym_cmds \ 10190 lt_cv_prog_compiler_c_o \ 10191 fix_srcfile_path \ 10192 exclude_expsyms \ 10193 include_expsyms; do 10194 10195 case $var in 10196 old_archive_cmds | \ 10197 old_archive_from_new_cmds | \ 10198 archive_cmds | \ 10199 archive_expsym_cmds | \ 10200 module_cmds | \ 10201 module_expsym_cmds | \ 10202 old_archive_from_expsyms_cmds | \ 10203 export_symbols_cmds | \ 10204 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10205 postinstall_cmds | postuninstall_cmds | \ 10206 old_postinstall_cmds | old_postuninstall_cmds | \ 10207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10208 # Double-quote double-evaled strings. 10209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10210 ;; 10211 *) 10212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10213 ;; 10214 esac 10215 done 10216 10217 case $lt_echo in 10218 *'\$0 --fallback-echo"') 10219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10220 ;; 10221 esac 10222 10223cfgfile="${ofile}T" 10224 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10225 $rm -f "$cfgfile" 10226 { echo "$as_me:$LINENO: creating $ofile" >&5 10227echo "$as_me: creating $ofile" >&6;} 10228 10229 cat <<__EOF__ >> "$cfgfile" 10230#! $SHELL 10231 10232# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10233# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10234# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10235# 10236# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10237# Free Software Foundation, Inc. 10238# 10239# This file is part of GNU Libtool: 10240# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10241# 10242# This program is free software; you can redistribute it and/or modify 10243# it under the terms of the GNU General Public License as published by 10244# the Free Software Foundation; either version 2 of the License, or 10245# (at your option) any later version. 10246# 10247# This program is distributed in the hope that it will be useful, but 10248# WITHOUT ANY WARRANTY; without even the implied warranty of 10249# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10250# General Public License for more details. 10251# 10252# You should have received a copy of the GNU General Public License 10253# along with this program; if not, write to the Free Software 10254# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10255# 10256# As a special exception to the GNU General Public License, if you 10257# distribute this file as part of a program that contains a 10258# configuration script generated by Autoconf, you may include it under 10259# the same distribution terms that you use for the rest of that program. 10260 10261# A sed program that does not truncate output. 10262SED=$lt_SED 10263 10264# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10265Xsed="$SED -e 1s/^X//" 10266 10267# The HP-UX ksh and POSIX shell print the target directory to stdout 10268# if CDPATH is set. 10269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10270 10271# The names of the tagged configurations supported by this script. 10272available_tags= 10273 10274# ### BEGIN LIBTOOL CONFIG 10275 10276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10277 10278# Shell to use when invoking shell scripts. 10279SHELL=$lt_SHELL 10280 10281# Whether or not to build shared libraries. 10282build_libtool_libs=$enable_shared 10283 10284# Whether or not to build static libraries. 10285build_old_libs=$enable_static 10286 10287# Whether or not to add -lc for building shared libraries. 10288build_libtool_need_lc=$archive_cmds_need_lc 10289 10290# Whether or not to disallow shared libs when runtime libs are static 10291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10292 10293# Whether or not to optimize for fast installation. 10294fast_install=$enable_fast_install 10295 10296# The host system. 10297host_alias=$host_alias 10298host=$host 10299host_os=$host_os 10300 10301# The build system. 10302build_alias=$build_alias 10303build=$build 10304build_os=$build_os 10305 10306# An echo program that does not interpret backslashes. 10307echo=$lt_echo 10308 10309# The archiver. 10310AR=$lt_AR 10311AR_FLAGS=$lt_AR_FLAGS 10312 10313# A C compiler. 10314LTCC=$lt_LTCC 10315 10316# LTCC compiler flags. 10317LTCFLAGS=$lt_LTCFLAGS 10318 10319# A language-specific compiler. 10320CC=$lt_compiler 10321 10322# Is the compiler the GNU C compiler? 10323with_gcc=$GCC 10324 10325# An ERE matcher. 10326EGREP=$lt_EGREP 10327 10328# The linker used to build libraries. 10329LD=$lt_LD 10330 10331# Whether we need hard or soft links. 10332LN_S=$lt_LN_S 10333 10334# A BSD-compatible nm program. 10335NM=$lt_NM 10336 10337# A symbol stripping program 10338STRIP=$lt_STRIP 10339 10340# Used to examine libraries when file_magic_cmd begins "file" 10341MAGIC_CMD=$MAGIC_CMD 10342 10343# Used on cygwin: DLL creation program. 10344DLLTOOL="$DLLTOOL" 10345 10346# Used on cygwin: object dumper. 10347OBJDUMP="$OBJDUMP" 10348 10349# Used on cygwin: assembler. 10350AS="$AS" 10351 10352# The name of the directory that contains temporary libtool files. 10353objdir=$objdir 10354 10355# How to create reloadable object files. 10356reload_flag=$lt_reload_flag 10357reload_cmds=$lt_reload_cmds 10358 10359# How to pass a linker flag through the compiler. 10360wl=$lt_lt_prog_compiler_wl 10361 10362# Object file suffix (normally "o"). 10363objext="$ac_objext" 10364 10365# Old archive suffix (normally "a"). 10366libext="$libext" 10367 10368# Shared library suffix (normally ".so"). 10369shrext_cmds='$shrext_cmds' 10370 10371# Executable file suffix (normally ""). 10372exeext="$exeext" 10373 10374# Additional compiler flags for building library objects. 10375pic_flag=$lt_lt_prog_compiler_pic 10376pic_mode=$pic_mode 10377 10378# What is the maximum length of a command? 10379max_cmd_len=$lt_cv_sys_max_cmd_len 10380 10381# Does compiler simultaneously support -c and -o options? 10382compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10383 10384# Must we lock files when doing compilation? 10385need_locks=$lt_need_locks 10386 10387# Do we need the lib prefix for modules? 10388need_lib_prefix=$need_lib_prefix 10389 10390# Do we need a version for libraries? 10391need_version=$need_version 10392 10393# Whether dlopen is supported. 10394dlopen_support=$enable_dlopen 10395 10396# Whether dlopen of programs is supported. 10397dlopen_self=$enable_dlopen_self 10398 10399# Whether dlopen of statically linked programs is supported. 10400dlopen_self_static=$enable_dlopen_self_static 10401 10402# Compiler flag to prevent dynamic linking. 10403link_static_flag=$lt_lt_prog_compiler_static 10404 10405# Compiler flag to turn off builtin functions. 10406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10407 10408# Compiler flag to allow reflexive dlopens. 10409export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10410 10411# Compiler flag to generate shared objects directly from archives. 10412whole_archive_flag_spec=$lt_whole_archive_flag_spec 10413 10414# Compiler flag to generate thread-safe objects. 10415thread_safe_flag_spec=$lt_thread_safe_flag_spec 10416 10417# Library versioning type. 10418version_type=$version_type 10419 10420# Format of library name prefix. 10421libname_spec=$lt_libname_spec 10422 10423# List of archive names. First name is the real one, the rest are links. 10424# The last name is the one that the linker finds with -lNAME. 10425library_names_spec=$lt_library_names_spec 10426 10427# The coded name of the library, if different from the real name. 10428soname_spec=$lt_soname_spec 10429 10430# Commands used to build and install an old-style archive. 10431RANLIB=$lt_RANLIB 10432old_archive_cmds=$lt_old_archive_cmds 10433old_postinstall_cmds=$lt_old_postinstall_cmds 10434old_postuninstall_cmds=$lt_old_postuninstall_cmds 10435 10436# Create an old-style archive from a shared archive. 10437old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10438 10439# Create a temporary old-style archive to link instead of a shared archive. 10440old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10441 10442# Commands used to build and install a shared archive. 10443archive_cmds=$lt_archive_cmds 10444archive_expsym_cmds=$lt_archive_expsym_cmds 10445postinstall_cmds=$lt_postinstall_cmds 10446postuninstall_cmds=$lt_postuninstall_cmds 10447 10448# Commands used to build a loadable module (assumed same as above if empty) 10449module_cmds=$lt_module_cmds 10450module_expsym_cmds=$lt_module_expsym_cmds 10451 10452# Commands to strip libraries. 10453old_striplib=$lt_old_striplib 10454striplib=$lt_striplib 10455 10456# Dependencies to place before the objects being linked to create a 10457# shared library. 10458predep_objects=$lt_predep_objects 10459 10460# Dependencies to place after the objects being linked to create a 10461# shared library. 10462postdep_objects=$lt_postdep_objects 10463 10464# Dependencies to place before the objects being linked to create a 10465# shared library. 10466predeps=$lt_predeps 10467 10468# Dependencies to place after the objects being linked to create a 10469# shared library. 10470postdeps=$lt_postdeps 10471 10472# The library search path used internally by the compiler when linking 10473# a shared library. 10474compiler_lib_search_path=$lt_compiler_lib_search_path 10475 10476# Method to check whether dependent libraries are shared objects. 10477deplibs_check_method=$lt_deplibs_check_method 10478 10479# Command to use when deplibs_check_method == file_magic. 10480file_magic_cmd=$lt_file_magic_cmd 10481 10482# Flag that allows shared libraries with undefined symbols to be built. 10483allow_undefined_flag=$lt_allow_undefined_flag 10484 10485# Flag that forces no undefined symbols. 10486no_undefined_flag=$lt_no_undefined_flag 10487 10488# Commands used to finish a libtool library installation in a directory. 10489finish_cmds=$lt_finish_cmds 10490 10491# Same as above, but a single script fragment to be evaled but not shown. 10492finish_eval=$lt_finish_eval 10493 10494# Take the output of nm and produce a listing of raw symbols and C names. 10495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10496 10497# Transform the output of nm in a proper C declaration 10498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10499 10500# Transform the output of nm in a C name address pair 10501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10502 10503# This is the shared library runtime path variable. 10504runpath_var=$runpath_var 10505 10506# This is the shared library path variable. 10507shlibpath_var=$shlibpath_var 10508 10509# Is shlibpath searched before the hard-coded library search path? 10510shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10511 10512# How to hardcode a shared library path into an executable. 10513hardcode_action=$hardcode_action 10514 10515# Whether we should hardcode library paths into libraries. 10516hardcode_into_libs=$hardcode_into_libs 10517 10518# Flag to hardcode \$libdir into a binary during linking. 10519# This must work even if \$libdir does not exist. 10520hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10521 10522# If ld is used when linking, flag to hardcode \$libdir into 10523# a binary during linking. This must work even if \$libdir does 10524# not exist. 10525hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10526 10527# Whether we need a single -rpath flag with a separated argument. 10528hardcode_libdir_separator=$lt_hardcode_libdir_separator 10529 10530# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10531# resulting binary. 10532hardcode_direct=$hardcode_direct 10533 10534# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10535# resulting binary. 10536hardcode_minus_L=$hardcode_minus_L 10537 10538# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10539# the resulting binary. 10540hardcode_shlibpath_var=$hardcode_shlibpath_var 10541 10542# Set to yes if building a shared library automatically hardcodes DIR into the library 10543# and all subsequent libraries and executables linked against it. 10544hardcode_automatic=$hardcode_automatic 10545 10546# Variables whose values should be saved in libtool wrapper scripts and 10547# restored at relink time. 10548variables_saved_for_relink="$variables_saved_for_relink" 10549 10550# Whether libtool must link a program against all its dependency libraries. 10551link_all_deplibs=$link_all_deplibs 10552 10553# Compile-time system search path for libraries 10554sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10555 10556# Run-time system search path for libraries 10557sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10558 10559# Fix the shell variable \$srcfile for the compiler. 10560fix_srcfile_path=$lt_fix_srcfile_path 10561 10562# Set to yes if exported symbols are required. 10563always_export_symbols=$always_export_symbols 10564 10565# The commands to list exported symbols. 10566export_symbols_cmds=$lt_export_symbols_cmds 10567 10568# The commands to extract the exported symbol list from a shared archive. 10569extract_expsyms_cmds=$lt_extract_expsyms_cmds 10570 10571# Symbols that should not be listed in the preloaded symbols. 10572exclude_expsyms=$lt_exclude_expsyms 10573 10574# Symbols that must always be exported. 10575include_expsyms=$lt_include_expsyms 10576 10577# ### END LIBTOOL CONFIG 10578 10579__EOF__ 10580 10581 10582 case $host_os in 10583 aix3*) 10584 cat <<\EOF >> "$cfgfile" 10585 10586# AIX sometimes has problems with the GCC collect2 program. For some 10587# reason, if we set the COLLECT_NAMES environment variable, the problems 10588# vanish in a puff of smoke. 10589if test "X${COLLECT_NAMES+set}" != Xset; then 10590 COLLECT_NAMES= 10591 export COLLECT_NAMES 10592fi 10593EOF 10594 ;; 10595 esac 10596 10597 # We use sed instead of cat because bash on DJGPP gets confused if 10598 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10599 # text mode, it properly converts lines to CR/LF. This bash problem 10600 # is reportedly fixed, but why not run on old versions too? 10601 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10602 10603 mv -f "$cfgfile" "$ofile" || \ 10604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10605 chmod +x "$ofile" 10606 10607else 10608 # If there is no Makefile yet, we rely on a make rule to execute 10609 # `config.status --recheck' to rerun these tests and create the 10610 # libtool script then. 10611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10612 if test -f "$ltmain_in"; then 10613 test -f Makefile && make "$ltmain" 10614 fi 10615fi 10616 10617 10618ac_ext=c 10619ac_cpp='$CPP $CPPFLAGS' 10620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10622ac_compiler_gnu=$ac_cv_c_compiler_gnu 10623 10624CC="$lt_save_CC" 10625 10626 10627# Check whether --with-tags was given. 10628if test "${with_tags+set}" = set; then 10629 withval=$with_tags; tagnames="$withval" 10630fi 10631 10632 10633if test -f "$ltmain" && test -n "$tagnames"; then 10634 if test ! -f "${ofile}"; then 10635 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10636echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10637 fi 10638 10639 if test -z "$LTCC"; then 10640 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10641 if test -z "$LTCC"; then 10642 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10643echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10644 else 10645 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10646echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10647 fi 10648 fi 10649 if test -z "$LTCFLAGS"; then 10650 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10651 fi 10652 10653 # Extract list of available tagged configurations in $ofile. 10654 # Note that this assumes the entire list is on one line. 10655 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10656 10657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10658 for tagname in $tagnames; do 10659 IFS="$lt_save_ifs" 10660 # Check whether tagname contains only valid characters 10661 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10662 "") ;; 10663 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10664echo "$as_me: error: invalid tag name: $tagname" >&2;} 10665 { (exit 1); exit 1; }; } 10666 ;; 10667 esac 10668 10669 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10670 then 10671 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10672echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10673 { (exit 1); exit 1; }; } 10674 fi 10675 10676 # Update the list of available tags. 10677 if test -n "$tagname"; then 10678 echo appending configuration tag \"$tagname\" to $ofile 10679 10680 case $tagname in 10681 CXX) 10682 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10683 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10684 (test "X$CXX" != "Xg++"))) ; then 10685 ac_ext=cpp 10686ac_cpp='$CXXCPP $CPPFLAGS' 10687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10690 10691 10692 10693 10694archive_cmds_need_lc_CXX=no 10695allow_undefined_flag_CXX= 10696always_export_symbols_CXX=no 10697archive_expsym_cmds_CXX= 10698export_dynamic_flag_spec_CXX= 10699hardcode_direct_CXX=no 10700hardcode_libdir_flag_spec_CXX= 10701hardcode_libdir_flag_spec_ld_CXX= 10702hardcode_libdir_separator_CXX= 10703hardcode_minus_L_CXX=no 10704hardcode_shlibpath_var_CXX=unsupported 10705hardcode_automatic_CXX=no 10706module_cmds_CXX= 10707module_expsym_cmds_CXX= 10708link_all_deplibs_CXX=unknown 10709old_archive_cmds_CXX=$old_archive_cmds 10710no_undefined_flag_CXX= 10711whole_archive_flag_spec_CXX= 10712enable_shared_with_static_runtimes_CXX=no 10713 10714# Dependencies to place before and after the object being linked: 10715predep_objects_CXX= 10716postdep_objects_CXX= 10717predeps_CXX= 10718postdeps_CXX= 10719compiler_lib_search_path_CXX= 10720 10721# Source file extension for C++ test sources. 10722ac_ext=cpp 10723 10724# Object file extension for compiled C++ test sources. 10725objext=o 10726objext_CXX=$objext 10727 10728# Code to be used in simple compile tests 10729lt_simple_compile_test_code="int some_variable = 0;" 10730 10731# Code to be used in simple link tests 10732lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10733 10734# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10735 10736# If no C compiler was specified, use CC. 10737LTCC=${LTCC-"$CC"} 10738 10739# If no C compiler flags were specified, use CFLAGS. 10740LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10741 10742# Allow CC to be a program name with arguments. 10743compiler=$CC 10744 10745 10746# save warnings/boilerplate of simple test code 10747ac_outfile=conftest.$ac_objext 10748echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10750_lt_compiler_boilerplate=`cat conftest.err` 10751$rm conftest* 10752 10753ac_outfile=conftest.$ac_objext 10754echo "$lt_simple_link_test_code" >conftest.$ac_ext 10755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10756_lt_linker_boilerplate=`cat conftest.err` 10757$rm conftest* 10758 10759 10760# Allow CC to be a program name with arguments. 10761lt_save_CC=$CC 10762lt_save_LD=$LD 10763lt_save_GCC=$GCC 10764GCC=$GXX 10765lt_save_with_gnu_ld=$with_gnu_ld 10766lt_save_path_LD=$lt_cv_path_LD 10767if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10768 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10769else 10770 $as_unset lt_cv_prog_gnu_ld 10771fi 10772if test -n "${lt_cv_path_LDCXX+set}"; then 10773 lt_cv_path_LD=$lt_cv_path_LDCXX 10774else 10775 $as_unset lt_cv_path_LD 10776fi 10777test -z "${LDCXX+set}" || LD=$LDCXX 10778CC=${CXX-"c++"} 10779compiler=$CC 10780compiler_CXX=$CC 10781for cc_temp in $compiler""; do 10782 case $cc_temp in 10783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10785 \-*) ;; 10786 *) break;; 10787 esac 10788done 10789cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10790 10791 10792# We don't want -fno-exception wen compiling C++ code, so set the 10793# no_builtin_flag separately 10794if test "$GXX" = yes; then 10795 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10796else 10797 lt_prog_compiler_no_builtin_flag_CXX= 10798fi 10799 10800if test "$GXX" = yes; then 10801 # Set up default GNU C++ configuration 10802 10803 10804# Check whether --with-gnu-ld was given. 10805if test "${with_gnu_ld+set}" = set; then 10806 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10807else 10808 with_gnu_ld=no 10809fi 10810 10811ac_prog=ld 10812if test "$GCC" = yes; then 10813 # Check if gcc -print-prog-name=ld gives a path. 10814 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10815echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10816 case $host in 10817 *-*-mingw*) 10818 # gcc leaves a trailing carriage return which upsets mingw 10819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10820 *) 10821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10822 esac 10823 case $ac_prog in 10824 # Accept absolute paths. 10825 [\\/]* | ?:[\\/]*) 10826 re_direlt='/[^/][^/]*/\.\./' 10827 # Canonicalize the pathname of ld 10828 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10829 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10830 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10831 done 10832 test -z "$LD" && LD="$ac_prog" 10833 ;; 10834 "") 10835 # If it fails, then pretend we aren't using GCC. 10836 ac_prog=ld 10837 ;; 10838 *) 10839 # If it is relative, then search for the first ld in PATH. 10840 with_gnu_ld=unknown 10841 ;; 10842 esac 10843elif test "$with_gnu_ld" = yes; then 10844 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10845echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10846else 10847 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10848echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10849fi 10850if test "${lt_cv_path_LD+set}" = set; then 10851 echo $ECHO_N "(cached) $ECHO_C" >&6 10852else 10853 if test -z "$LD"; then 10854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10855 for ac_dir in $PATH; do 10856 IFS="$lt_save_ifs" 10857 test -z "$ac_dir" && ac_dir=. 10858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10859 lt_cv_path_LD="$ac_dir/$ac_prog" 10860 # Check to see if the program is GNU ld. I'd rather use --version, 10861 # but apparently some variants of GNU ld only accept -v. 10862 # Break only if it was the GNU/non-GNU ld that we prefer. 10863 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10864 *GNU* | *'with BFD'*) 10865 test "$with_gnu_ld" != no && break 10866 ;; 10867 *) 10868 test "$with_gnu_ld" != yes && break 10869 ;; 10870 esac 10871 fi 10872 done 10873 IFS="$lt_save_ifs" 10874else 10875 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10876fi 10877fi 10878 10879LD="$lt_cv_path_LD" 10880if test -n "$LD"; then 10881 { echo "$as_me:$LINENO: result: $LD" >&5 10882echo "${ECHO_T}$LD" >&6; } 10883else 10884 { echo "$as_me:$LINENO: result: no" >&5 10885echo "${ECHO_T}no" >&6; } 10886fi 10887test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10888echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10889 { (exit 1); exit 1; }; } 10890{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10891echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10892if test "${lt_cv_prog_gnu_ld+set}" = set; then 10893 echo $ECHO_N "(cached) $ECHO_C" >&6 10894else 10895 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10896case `$LD -v 2>&1 </dev/null` in 10897*GNU* | *'with BFD'*) 10898 lt_cv_prog_gnu_ld=yes 10899 ;; 10900*) 10901 lt_cv_prog_gnu_ld=no 10902 ;; 10903esac 10904fi 10905{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10906echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10907with_gnu_ld=$lt_cv_prog_gnu_ld 10908 10909 10910 10911 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10912 # archiving commands below assume that GNU ld is being used. 10913 if test "$with_gnu_ld" = yes; then 10914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10915 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' 10916 10917 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10919 10920 # If archive_cmds runs LD, not CC, wlarc should be empty 10921 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10922 # investigate it a little bit more. (MM) 10923 wlarc='${wl}' 10924 10925 # ancient GNU ld didn't support --whole-archive et. al. 10926 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10927 grep 'no-whole-archive' > /dev/null; then 10928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10929 else 10930 whole_archive_flag_spec_CXX= 10931 fi 10932 else 10933 with_gnu_ld=no 10934 wlarc= 10935 10936 # A generic and very simple default shared library creation 10937 # command for GNU C++ for the case where it uses the native 10938 # linker, instead of GNU ld. If possible, this setting should 10939 # overridden to take advantage of the native linker features on 10940 # the platform it is being used on. 10941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10942 fi 10943 10944 # Commands to make compiler produce verbose output that lists 10945 # what "hidden" libraries, object files and flags are used when 10946 # linking a shared library. 10947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10948 10949else 10950 GXX=no 10951 with_gnu_ld=no 10952 wlarc= 10953fi 10954 10955# PORTME: fill in a description of your system's C++ link characteristics 10956{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10957echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10958ld_shlibs_CXX=yes 10959case $host_os in 10960 aix3*) 10961 # FIXME: insert proper C++ library support 10962 ld_shlibs_CXX=no 10963 ;; 10964 aix4* | aix5*) 10965 if test "$host_cpu" = ia64; then 10966 # On IA64, the linker does run time linking by default, so we don't 10967 # have to do anything special. 10968 aix_use_runtimelinking=no 10969 exp_sym_flag='-Bexport' 10970 no_entry_flag="" 10971 else 10972 aix_use_runtimelinking=no 10973 10974 # Test if we are trying to use run time linking or normal 10975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10976 # need to do runtime linking. 10977 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10978 for ld_flag in $LDFLAGS; do 10979 case $ld_flag in 10980 *-brtl*) 10981 aix_use_runtimelinking=yes 10982 break 10983 ;; 10984 esac 10985 done 10986 ;; 10987 esac 10988 10989 exp_sym_flag='-bexport' 10990 no_entry_flag='-bnoentry' 10991 fi 10992 10993 # When large executables or shared objects are built, AIX ld can 10994 # have problems creating the table of contents. If linking a library 10995 # or program results in "error TOC overflow" add -mminimal-toc to 10996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10998 10999 archive_cmds_CXX='' 11000 hardcode_direct_CXX=yes 11001 hardcode_libdir_separator_CXX=':' 11002 link_all_deplibs_CXX=yes 11003 11004 if test "$GXX" = yes; then 11005 case $host_os in aix4.[012]|aix4.[012].*) 11006 # We only want to do this on AIX 4.2 and lower, the check 11007 # below for broken collect2 doesn't work under 4.3+ 11008 collect2name=`${CC} -print-prog-name=collect2` 11009 if test -f "$collect2name" && \ 11010 strings "$collect2name" | grep resolve_lib_name >/dev/null 11011 then 11012 # We have reworked collect2 11013 : 11014 else 11015 # We have old collect2 11016 hardcode_direct_CXX=unsupported 11017 # It fails to find uninstalled libraries when the uninstalled 11018 # path is not listed in the libpath. Setting hardcode_minus_L 11019 # to unsupported forces relinking 11020 hardcode_minus_L_CXX=yes 11021 hardcode_libdir_flag_spec_CXX='-L$libdir' 11022 hardcode_libdir_separator_CXX= 11023 fi 11024 ;; 11025 esac 11026 shared_flag='-shared' 11027 if test "$aix_use_runtimelinking" = yes; then 11028 shared_flag="$shared_flag "'${wl}-G' 11029 fi 11030 else 11031 # not using gcc 11032 if test "$host_cpu" = ia64; then 11033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11034 # chokes on -Wl,-G. The following line is correct: 11035 shared_flag='-G' 11036 else 11037 if test "$aix_use_runtimelinking" = yes; then 11038 shared_flag='${wl}-G' 11039 else 11040 shared_flag='${wl}-bM:SRE' 11041 fi 11042 fi 11043 fi 11044 11045 # It seems that -bexpall does not export symbols beginning with 11046 # underscore (_), so it is better to generate a list of symbols to export. 11047 always_export_symbols_CXX=yes 11048 if test "$aix_use_runtimelinking" = yes; then 11049 # Warning - without using the other runtime loading flags (-brtl), 11050 # -berok will link without error, but may produce a broken library. 11051 allow_undefined_flag_CXX='-berok' 11052 # Determine the default libpath from the value encoded in an empty executable. 11053 cat >conftest.$ac_ext <<_ACEOF 11054/* confdefs.h. */ 11055_ACEOF 11056cat confdefs.h >>conftest.$ac_ext 11057cat >>conftest.$ac_ext <<_ACEOF 11058/* end confdefs.h. */ 11059 11060int 11061main () 11062{ 11063 11064 ; 11065 return 0; 11066} 11067_ACEOF 11068rm -f conftest.$ac_objext conftest$ac_exeext 11069if { (ac_try="$ac_link" 11070case "(($ac_try" in 11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11072 *) ac_try_echo=$ac_try;; 11073esac 11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11075 (eval "$ac_link") 2>conftest.er1 11076 ac_status=$? 11077 grep -v '^ *+' conftest.er1 >conftest.err 11078 rm -f conftest.er1 11079 cat conftest.err >&5 11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11081 (exit $ac_status); } && { 11082 test -z "$ac_cxx_werror_flag" || 11083 test ! -s conftest.err 11084 } && test -s conftest$ac_exeext && 11085 $as_test_x conftest$ac_exeext; then 11086 11087lt_aix_libpath_sed=' 11088 /Import File Strings/,/^$/ { 11089 /^0/ { 11090 s/^0 *\(.*\)$/\1/ 11091 p 11092 } 11093 }' 11094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11095# Check for a 64-bit object if we didn't find anything. 11096if test -z "$aix_libpath"; then 11097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11098fi 11099else 11100 echo "$as_me: failed program was:" >&5 11101sed 's/^/| /' conftest.$ac_ext >&5 11102 11103 11104fi 11105 11106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11107 conftest$ac_exeext conftest.$ac_ext 11108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11109 11110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11111 11112 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" 11113 else 11114 if test "$host_cpu" = ia64; then 11115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11116 allow_undefined_flag_CXX="-z nodefs" 11117 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" 11118 else 11119 # Determine the default libpath from the value encoded in an empty executable. 11120 cat >conftest.$ac_ext <<_ACEOF 11121/* confdefs.h. */ 11122_ACEOF 11123cat confdefs.h >>conftest.$ac_ext 11124cat >>conftest.$ac_ext <<_ACEOF 11125/* end confdefs.h. */ 11126 11127int 11128main () 11129{ 11130 11131 ; 11132 return 0; 11133} 11134_ACEOF 11135rm -f conftest.$ac_objext conftest$ac_exeext 11136if { (ac_try="$ac_link" 11137case "(($ac_try" in 11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11139 *) ac_try_echo=$ac_try;; 11140esac 11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11142 (eval "$ac_link") 2>conftest.er1 11143 ac_status=$? 11144 grep -v '^ *+' conftest.er1 >conftest.err 11145 rm -f conftest.er1 11146 cat conftest.err >&5 11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11148 (exit $ac_status); } && { 11149 test -z "$ac_cxx_werror_flag" || 11150 test ! -s conftest.err 11151 } && test -s conftest$ac_exeext && 11152 $as_test_x conftest$ac_exeext; then 11153 11154lt_aix_libpath_sed=' 11155 /Import File Strings/,/^$/ { 11156 /^0/ { 11157 s/^0 *\(.*\)$/\1/ 11158 p 11159 } 11160 }' 11161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11162# Check for a 64-bit object if we didn't find anything. 11163if test -z "$aix_libpath"; then 11164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11165fi 11166else 11167 echo "$as_me: failed program was:" >&5 11168sed 's/^/| /' conftest.$ac_ext >&5 11169 11170 11171fi 11172 11173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11174 conftest$ac_exeext conftest.$ac_ext 11175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11176 11177 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11178 # Warning - without using the other run time loading flags, 11179 # -berok will link without error, but may produce a broken library. 11180 no_undefined_flag_CXX=' ${wl}-bernotok' 11181 allow_undefined_flag_CXX=' ${wl}-berok' 11182 # Exported symbols can be pulled into shared objects from archives 11183 whole_archive_flag_spec_CXX='$convenience' 11184 archive_cmds_need_lc_CXX=yes 11185 # This is similar to how AIX traditionally builds its shared libraries. 11186 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' 11187 fi 11188 fi 11189 ;; 11190 11191 beos*) 11192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11193 allow_undefined_flag_CXX=unsupported 11194 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11195 # support --undefined. This deserves some investigation. FIXME 11196 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11197 else 11198 ld_shlibs_CXX=no 11199 fi 11200 ;; 11201 11202 chorus*) 11203 case $cc_basename in 11204 *) 11205 # FIXME: insert proper C++ library support 11206 ld_shlibs_CXX=no 11207 ;; 11208 esac 11209 ;; 11210 11211 cygwin* | mingw* | pw32*) 11212 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11213 # as there is no search path for DLLs. 11214 hardcode_libdir_flag_spec_CXX='-L$libdir' 11215 allow_undefined_flag_CXX=unsupported 11216 always_export_symbols_CXX=no 11217 enable_shared_with_static_runtimes_CXX=yes 11218 11219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11220 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' 11221 # If the export-symbols file already is a .def file (1st line 11222 # is EXPORTS), use it as is; otherwise, prepend... 11223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11224 cp $export_symbols $output_objdir/$soname.def; 11225 else 11226 echo EXPORTS > $output_objdir/$soname.def; 11227 cat $export_symbols >> $output_objdir/$soname.def; 11228 fi~ 11229 $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' 11230 else 11231 ld_shlibs_CXX=no 11232 fi 11233 ;; 11234 darwin* | rhapsody*) 11235 case $host_os in 11236 rhapsody* | darwin1.[012]) 11237 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11238 ;; 11239 *) # Darwin 1.3 on 11240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11241 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11242 else 11243 case ${MACOSX_DEPLOYMENT_TARGET} in 11244 10.[012]) 11245 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11246 ;; 11247 10.*) 11248 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11249 ;; 11250 esac 11251 fi 11252 ;; 11253 esac 11254 archive_cmds_need_lc_CXX=no 11255 hardcode_direct_CXX=no 11256 hardcode_automatic_CXX=yes 11257 hardcode_shlibpath_var_CXX=unsupported 11258 whole_archive_flag_spec_CXX='' 11259 link_all_deplibs_CXX=yes 11260 11261 if test "$GXX" = yes ; then 11262 lt_int_apple_cc_single_mod=no 11263 output_verbose_link_cmd='echo' 11264 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11265 lt_int_apple_cc_single_mod=yes 11266 fi 11267 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11268 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11269 else 11270 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' 11271 fi 11272 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11275 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}' 11276 else 11277 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}' 11278 fi 11279 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}' 11280 else 11281 case $cc_basename in 11282 xlc*) 11283 output_verbose_link_cmd='echo' 11284 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11285 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11287 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11288 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}' 11289 ;; 11290 *) 11291 ld_shlibs_CXX=no 11292 ;; 11293 esac 11294 fi 11295 ;; 11296 11297 dgux*) 11298 case $cc_basename in 11299 ec++*) 11300 # FIXME: insert proper C++ library support 11301 ld_shlibs_CXX=no 11302 ;; 11303 ghcx*) 11304 # Green Hills C++ Compiler 11305 # FIXME: insert proper C++ library support 11306 ld_shlibs_CXX=no 11307 ;; 11308 *) 11309 # FIXME: insert proper C++ library support 11310 ld_shlibs_CXX=no 11311 ;; 11312 esac 11313 ;; 11314 freebsd[12]*) 11315 # C++ shared libraries reported to be fairly broken before switch to ELF 11316 ld_shlibs_CXX=no 11317 ;; 11318 freebsd-elf*) 11319 archive_cmds_need_lc_CXX=no 11320 ;; 11321 freebsd* | dragonfly*) 11322 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11323 # conventions 11324 ld_shlibs_CXX=yes 11325 ;; 11326 gnu*) 11327 ;; 11328 hpux9*) 11329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11330 hardcode_libdir_separator_CXX=: 11331 export_dynamic_flag_spec_CXX='${wl}-E' 11332 hardcode_direct_CXX=yes 11333 hardcode_minus_L_CXX=yes # Not in the search PATH, 11334 # but as the default 11335 # location of the library. 11336 11337 case $cc_basename in 11338 CC*) 11339 # FIXME: insert proper C++ library support 11340 ld_shlibs_CXX=no 11341 ;; 11342 aCC*) 11343 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' 11344 # Commands to make compiler produce verbose output that lists 11345 # what "hidden" libraries, object files and flags are used when 11346 # linking a shared library. 11347 # 11348 # There doesn't appear to be a way to prevent this compiler from 11349 # explicitly linking system object files so we need to strip them 11350 # from the output so that they don't get included in the library 11351 # dependencies. 11352 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' 11353 ;; 11354 *) 11355 if test "$GXX" = yes; then 11356 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' 11357 else 11358 # FIXME: insert proper C++ library support 11359 ld_shlibs_CXX=no 11360 fi 11361 ;; 11362 esac 11363 ;; 11364 hpux10*|hpux11*) 11365 if test $with_gnu_ld = no; then 11366 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11367 hardcode_libdir_separator_CXX=: 11368 11369 case $host_cpu in 11370 hppa*64*|ia64*) ;; 11371 *) 11372 export_dynamic_flag_spec_CXX='${wl}-E' 11373 ;; 11374 esac 11375 fi 11376 case $host_cpu in 11377 hppa*64*|ia64*) 11378 hardcode_direct_CXX=no 11379 hardcode_shlibpath_var_CXX=no 11380 ;; 11381 *) 11382 hardcode_direct_CXX=yes 11383 hardcode_minus_L_CXX=yes # Not in the search PATH, 11384 # but as the default 11385 # location of the library. 11386 ;; 11387 esac 11388 11389 case $cc_basename in 11390 CC*) 11391 # FIXME: insert proper C++ library support 11392 ld_shlibs_CXX=no 11393 ;; 11394 aCC*) 11395 case $host_cpu in 11396 hppa*64*) 11397 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11398 ;; 11399 ia64*) 11400 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11401 ;; 11402 *) 11403 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11404 ;; 11405 esac 11406 # Commands to make compiler produce verbose output that lists 11407 # what "hidden" libraries, object files and flags are used when 11408 # linking a shared library. 11409 # 11410 # There doesn't appear to be a way to prevent this compiler from 11411 # explicitly linking system object files so we need to strip them 11412 # from the output so that they don't get included in the library 11413 # dependencies. 11414 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' 11415 ;; 11416 *) 11417 if test "$GXX" = yes; then 11418 if test $with_gnu_ld = no; then 11419 case $host_cpu in 11420 hppa*64*) 11421 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11422 ;; 11423 ia64*) 11424 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11425 ;; 11426 *) 11427 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' 11428 ;; 11429 esac 11430 fi 11431 else 11432 # FIXME: insert proper C++ library support 11433 ld_shlibs_CXX=no 11434 fi 11435 ;; 11436 esac 11437 ;; 11438 interix[3-9]*) 11439 hardcode_direct_CXX=no 11440 hardcode_shlibpath_var_CXX=no 11441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11442 export_dynamic_flag_spec_CXX='${wl}-E' 11443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11444 # Instead, shared libraries are loaded at an image base (0x10000000 by 11445 # default) and relocated if they conflict, which is a slow very memory 11446 # consuming and fragmenting process. To avoid this, we pick a random, 11447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11448 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11449 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' 11450 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' 11451 ;; 11452 irix5* | irix6*) 11453 case $cc_basename in 11454 CC*) 11455 # SGI C++ 11456 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' 11457 11458 # Archives containing C++ object files must be created using 11459 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11460 # necessary to make sure instantiated templates are included 11461 # in the archive. 11462 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11463 ;; 11464 *) 11465 if test "$GXX" = yes; then 11466 if test "$with_gnu_ld" = no; then 11467 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' 11468 else 11469 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' 11470 fi 11471 fi 11472 link_all_deplibs_CXX=yes 11473 ;; 11474 esac 11475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11476 hardcode_libdir_separator_CXX=: 11477 ;; 11478 linux* | k*bsd*-gnu) 11479 case $cc_basename in 11480 KCC*) 11481 # Kuck and Associates, Inc. (KAI) C++ Compiler 11482 11483 # KCC will only create a shared library if the output file 11484 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11485 # to its proper name (with version) after linking. 11486 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' 11487 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' 11488 # Commands to make compiler produce verbose output that lists 11489 # what "hidden" libraries, object files and flags are used when 11490 # linking a shared library. 11491 # 11492 # There doesn't appear to be a way to prevent this compiler from 11493 # explicitly linking system object files so we need to strip them 11494 # from the output so that they don't get included in the library 11495 # dependencies. 11496 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' 11497 11498 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11500 11501 # Archives containing C++ object files must be created using 11502 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11503 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11504 ;; 11505 icpc*) 11506 # Intel C++ 11507 with_gnu_ld=yes 11508 # version 8.0 and above of icpc choke on multiply defined symbols 11509 # if we add $predep_objects and $postdep_objects, however 7.1 and 11510 # earlier do not add the objects themselves. 11511 case `$CC -V 2>&1` in 11512 *"Version 7."*) 11513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11514 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' 11515 ;; 11516 *) # Version 8.0 or newer 11517 tmp_idyn= 11518 case $host_cpu in 11519 ia64*) tmp_idyn=' -i_dynamic';; 11520 esac 11521 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11522 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' 11523 ;; 11524 esac 11525 archive_cmds_need_lc_CXX=no 11526 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11528 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11529 ;; 11530 pgCC*) 11531 # Portland Group C++ compiler 11532 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11533 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' 11534 11535 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11537 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' 11538 ;; 11539 cxx*) 11540 # Compaq C++ 11541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11542 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' 11543 11544 runpath_var=LD_RUN_PATH 11545 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11546 hardcode_libdir_separator_CXX=: 11547 11548 # Commands to make compiler produce verbose output that lists 11549 # what "hidden" libraries, object files and flags are used when 11550 # linking a shared library. 11551 # 11552 # There doesn't appear to be a way to prevent this compiler from 11553 # explicitly linking system object files so we need to strip them 11554 # from the output so that they don't get included in the library 11555 # dependencies. 11556 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' 11557 ;; 11558 *) 11559 case `$CC -V 2>&1 | sed 5q` in 11560 *Sun\ C*) 11561 # Sun C++ 5.9 11562 no_undefined_flag_CXX=' -zdefs' 11563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11564 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11565 hardcode_libdir_flag_spec_CXX='-R$libdir' 11566 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11567 11568 # Not sure whether something based on 11569 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11570 # would be better. 11571 output_verbose_link_cmd='echo' 11572 11573 # Archives containing C++ object files must be created using 11574 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11575 # necessary to make sure instantiated templates are included 11576 # in the archive. 11577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11578 ;; 11579 esac 11580 ;; 11581 esac 11582 ;; 11583 lynxos*) 11584 # FIXME: insert proper C++ library support 11585 ld_shlibs_CXX=no 11586 ;; 11587 m88k*) 11588 # FIXME: insert proper C++ library support 11589 ld_shlibs_CXX=no 11590 ;; 11591 mvs*) 11592 case $cc_basename in 11593 cxx*) 11594 # FIXME: insert proper C++ library support 11595 ld_shlibs_CXX=no 11596 ;; 11597 *) 11598 # FIXME: insert proper C++ library support 11599 ld_shlibs_CXX=no 11600 ;; 11601 esac 11602 ;; 11603 netbsd*) 11604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11605 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11606 wlarc= 11607 hardcode_libdir_flag_spec_CXX='-R$libdir' 11608 hardcode_direct_CXX=yes 11609 hardcode_shlibpath_var_CXX=no 11610 fi 11611 # Workaround some broken pre-1.5 toolchains 11612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11613 ;; 11614 openbsd2*) 11615 # C++ shared libraries are fairly broken 11616 ld_shlibs_CXX=no 11617 ;; 11618 openbsd*) 11619 if test -f /usr/libexec/ld.so; then 11620 hardcode_direct_CXX=yes 11621 hardcode_shlibpath_var_CXX=no 11622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11625 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11626 export_dynamic_flag_spec_CXX='${wl}-E' 11627 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11628 fi 11629 output_verbose_link_cmd='echo' 11630 else 11631 ld_shlibs_CXX=no 11632 fi 11633 ;; 11634 osf3*) 11635 case $cc_basename in 11636 KCC*) 11637 # Kuck and Associates, Inc. (KAI) C++ Compiler 11638 11639 # KCC will only create a shared library if the output file 11640 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11641 # to its proper name (with version) after linking. 11642 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' 11643 11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11645 hardcode_libdir_separator_CXX=: 11646 11647 # Archives containing C++ object files must be created using 11648 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11649 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11650 11651 ;; 11652 RCC*) 11653 # Rational C++ 2.4.1 11654 # FIXME: insert proper C++ library support 11655 ld_shlibs_CXX=no 11656 ;; 11657 cxx*) 11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11659 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' 11660 11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11662 hardcode_libdir_separator_CXX=: 11663 11664 # Commands to make compiler produce verbose output that lists 11665 # what "hidden" libraries, object files and flags are used when 11666 # linking a shared library. 11667 # 11668 # There doesn't appear to be a way to prevent this compiler from 11669 # explicitly linking system object files so we need to strip them 11670 # from the output so that they don't get included in the library 11671 # dependencies. 11672 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' 11673 ;; 11674 *) 11675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11677 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' 11678 11679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11680 hardcode_libdir_separator_CXX=: 11681 11682 # Commands to make compiler produce verbose output that lists 11683 # what "hidden" libraries, object files and flags are used when 11684 # linking a shared library. 11685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11686 11687 else 11688 # FIXME: insert proper C++ library support 11689 ld_shlibs_CXX=no 11690 fi 11691 ;; 11692 esac 11693 ;; 11694 osf4* | osf5*) 11695 case $cc_basename in 11696 KCC*) 11697 # Kuck and Associates, Inc. (KAI) C++ Compiler 11698 11699 # KCC will only create a shared library if the output file 11700 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11701 # to its proper name (with version) after linking. 11702 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' 11703 11704 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11705 hardcode_libdir_separator_CXX=: 11706 11707 # Archives containing C++ object files must be created using 11708 # the KAI C++ compiler. 11709 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11710 ;; 11711 RCC*) 11712 # Rational C++ 2.4.1 11713 # FIXME: insert proper C++ library support 11714 ld_shlibs_CXX=no 11715 ;; 11716 cxx*) 11717 allow_undefined_flag_CXX=' -expect_unresolved \*' 11718 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' 11719 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11720 echo "-hidden">> $lib.exp~ 11721 $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~ 11722 $rm $lib.exp' 11723 11724 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11725 hardcode_libdir_separator_CXX=: 11726 11727 # Commands to make compiler produce verbose output that lists 11728 # what "hidden" libraries, object files and flags are used when 11729 # linking a shared library. 11730 # 11731 # There doesn't appear to be a way to prevent this compiler from 11732 # explicitly linking system object files so we need to strip them 11733 # from the output so that they don't get included in the library 11734 # dependencies. 11735 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' 11736 ;; 11737 *) 11738 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11739 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11740 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' 11741 11742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11743 hardcode_libdir_separator_CXX=: 11744 11745 # Commands to make compiler produce verbose output that lists 11746 # what "hidden" libraries, object files and flags are used when 11747 # linking a shared library. 11748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11749 11750 else 11751 # FIXME: insert proper C++ library support 11752 ld_shlibs_CXX=no 11753 fi 11754 ;; 11755 esac 11756 ;; 11757 psos*) 11758 # FIXME: insert proper C++ library support 11759 ld_shlibs_CXX=no 11760 ;; 11761 sunos4*) 11762 case $cc_basename in 11763 CC*) 11764 # Sun C++ 4.x 11765 # FIXME: insert proper C++ library support 11766 ld_shlibs_CXX=no 11767 ;; 11768 lcc*) 11769 # Lucid 11770 # FIXME: insert proper C++ library support 11771 ld_shlibs_CXX=no 11772 ;; 11773 *) 11774 # FIXME: insert proper C++ library support 11775 ld_shlibs_CXX=no 11776 ;; 11777 esac 11778 ;; 11779 solaris*) 11780 case $cc_basename in 11781 CC*) 11782 # Sun C++ 4.2, 5.x and Centerline C++ 11783 archive_cmds_need_lc_CXX=yes 11784 no_undefined_flag_CXX=' -zdefs' 11785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11787 $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' 11788 11789 hardcode_libdir_flag_spec_CXX='-R$libdir' 11790 hardcode_shlibpath_var_CXX=no 11791 case $host_os in 11792 solaris2.[0-5] | solaris2.[0-5].*) ;; 11793 *) 11794 # The compiler driver will combine and reorder linker options, 11795 # but understands `-z linker_flag'. 11796 # Supported since Solaris 2.6 (maybe 2.5.1?) 11797 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11798 ;; 11799 esac 11800 link_all_deplibs_CXX=yes 11801 11802 output_verbose_link_cmd='echo' 11803 11804 # Archives containing C++ object files must be created using 11805 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11806 # necessary to make sure instantiated templates are included 11807 # in the archive. 11808 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11809 ;; 11810 gcx*) 11811 # Green Hills C++ Compiler 11812 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11813 11814 # The C++ compiler must be used to create the archive. 11815 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11816 ;; 11817 *) 11818 # GNU C++ compiler with Solaris linker 11819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11820 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11821 if $CC --version | grep -v '^2\.7' > /dev/null; then 11822 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11823 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11824 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11825 11826 # Commands to make compiler produce verbose output that lists 11827 # what "hidden" libraries, object files and flags are used when 11828 # linking a shared library. 11829 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11830 else 11831 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11832 # platform. 11833 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11834 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11835 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11836 11837 # Commands to make compiler produce verbose output that lists 11838 # what "hidden" libraries, object files and flags are used when 11839 # linking a shared library. 11840 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11841 fi 11842 11843 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11844 case $host_os in 11845 solaris2.[0-5] | solaris2.[0-5].*) ;; 11846 *) 11847 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11848 ;; 11849 esac 11850 fi 11851 ;; 11852 esac 11853 ;; 11854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11855 no_undefined_flag_CXX='${wl}-z,text' 11856 archive_cmds_need_lc_CXX=no 11857 hardcode_shlibpath_var_CXX=no 11858 runpath_var='LD_RUN_PATH' 11859 11860 case $cc_basename in 11861 CC*) 11862 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11863 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11864 ;; 11865 *) 11866 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11867 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11868 ;; 11869 esac 11870 ;; 11871 sysv5* | sco3.2v5* | sco5v6*) 11872 # Note: We can NOT use -z defs as we might desire, because we do not 11873 # link with -lc, and that would cause any symbols used from libc to 11874 # always be unresolved, which means just about no library would 11875 # ever link correctly. If we're not using GNU ld we use -z text 11876 # though, which does catch some bad symbols but isn't as heavy-handed 11877 # as -z defs. 11878 # For security reasons, it is highly recommended that you always 11879 # use absolute paths for naming shared libraries, and exclude the 11880 # DT_RUNPATH tag from executables and libraries. But doing so 11881 # requires that you compile everything twice, which is a pain. 11882 # So that behaviour is only enabled if SCOABSPATH is set to a 11883 # non-empty value in the environment. Most likely only useful for 11884 # creating official distributions of packages. 11885 # This is a hack until libtool officially supports absolute path 11886 # names for shared libraries. 11887 no_undefined_flag_CXX='${wl}-z,text' 11888 allow_undefined_flag_CXX='${wl}-z,nodefs' 11889 archive_cmds_need_lc_CXX=no 11890 hardcode_shlibpath_var_CXX=no 11891 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11892 hardcode_libdir_separator_CXX=':' 11893 link_all_deplibs_CXX=yes 11894 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11895 runpath_var='LD_RUN_PATH' 11896 11897 case $cc_basename in 11898 CC*) 11899 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11900 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11901 ;; 11902 *) 11903 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11904 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11905 ;; 11906 esac 11907 ;; 11908 tandem*) 11909 case $cc_basename in 11910 NCC*) 11911 # NonStop-UX NCC 3.20 11912 # FIXME: insert proper C++ library support 11913 ld_shlibs_CXX=no 11914 ;; 11915 *) 11916 # FIXME: insert proper C++ library support 11917 ld_shlibs_CXX=no 11918 ;; 11919 esac 11920 ;; 11921 vxworks*) 11922 # FIXME: insert proper C++ library support 11923 ld_shlibs_CXX=no 11924 ;; 11925 *) 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 ;; 11929esac 11930{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11931echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11932test "$ld_shlibs_CXX" = no && can_build_shared=no 11933 11934GCC_CXX="$GXX" 11935LD_CXX="$LD" 11936 11937 11938cat > conftest.$ac_ext <<EOF 11939class Foo 11940{ 11941public: 11942 Foo (void) { a = 0; } 11943private: 11944 int a; 11945}; 11946EOF 11947 11948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11949 (eval $ac_compile) 2>&5 11950 ac_status=$? 11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11952 (exit $ac_status); }; then 11953 # Parse the compiler output and extract the necessary 11954 # objects, libraries and library flags. 11955 11956 # Sentinel used to keep track of whether or not we are before 11957 # the conftest object file. 11958 pre_test_object_deps_done=no 11959 11960 # The `*' in the case matches for architectures that use `case' in 11961 # $output_verbose_cmd can trigger glob expansion during the loop 11962 # eval without this substitution. 11963 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11964 11965 for p in `eval $output_verbose_link_cmd`; do 11966 case $p in 11967 11968 -L* | -R* | -l*) 11969 # Some compilers place space between "-{L,R}" and the path. 11970 # Remove the space. 11971 if test $p = "-L" \ 11972 || test $p = "-R"; then 11973 prev=$p 11974 continue 11975 else 11976 prev= 11977 fi 11978 11979 if test "$pre_test_object_deps_done" = no; then 11980 case $p in 11981 -L* | -R*) 11982 # Internal compiler library paths should come after those 11983 # provided the user. The postdeps already come after the 11984 # user supplied libs so there is no need to process them. 11985 if test -z "$compiler_lib_search_path_CXX"; then 11986 compiler_lib_search_path_CXX="${prev}${p}" 11987 else 11988 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11989 fi 11990 ;; 11991 # The "-l" case would never come before the object being 11992 # linked, so don't bother handling this case. 11993 esac 11994 else 11995 if test -z "$postdeps_CXX"; then 11996 postdeps_CXX="${prev}${p}" 11997 else 11998 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11999 fi 12000 fi 12001 ;; 12002 12003 *.$objext) 12004 # This assumes that the test object file only shows up 12005 # once in the compiler output. 12006 if test "$p" = "conftest.$objext"; then 12007 pre_test_object_deps_done=yes 12008 continue 12009 fi 12010 12011 if test "$pre_test_object_deps_done" = no; then 12012 if test -z "$predep_objects_CXX"; then 12013 predep_objects_CXX="$p" 12014 else 12015 predep_objects_CXX="$predep_objects_CXX $p" 12016 fi 12017 else 12018 if test -z "$postdep_objects_CXX"; then 12019 postdep_objects_CXX="$p" 12020 else 12021 postdep_objects_CXX="$postdep_objects_CXX $p" 12022 fi 12023 fi 12024 ;; 12025 12026 *) ;; # Ignore the rest. 12027 12028 esac 12029 done 12030 12031 # Clean up. 12032 rm -f a.out a.exe 12033else 12034 echo "libtool.m4: error: problem compiling CXX test program" 12035fi 12036 12037$rm -f confest.$objext 12038 12039# PORTME: override above test on systems where it is broken 12040case $host_os in 12041interix[3-9]*) 12042 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12043 # hack all around it, let's just trust "g++" to DTRT. 12044 predep_objects_CXX= 12045 postdep_objects_CXX= 12046 postdeps_CXX= 12047 ;; 12048 12049linux*) 12050 case `$CC -V 2>&1 | sed 5q` in 12051 *Sun\ C*) 12052 # Sun C++ 5.9 12053 # 12054 # The more standards-conforming stlport4 library is 12055 # incompatible with the Cstd library. Avoid specifying 12056 # it if it's in CXXFLAGS. Ignore libCrun as 12057 # -library=stlport4 depends on it. 12058 case " $CXX $CXXFLAGS " in 12059 *" -library=stlport4 "*) 12060 solaris_use_stlport4=yes 12061 ;; 12062 esac 12063 if test "$solaris_use_stlport4" != yes; then 12064 postdeps_CXX='-library=Cstd -library=Crun' 12065 fi 12066 ;; 12067 esac 12068 ;; 12069 12070solaris*) 12071 case $cc_basename in 12072 CC*) 12073 # The more standards-conforming stlport4 library is 12074 # incompatible with the Cstd library. Avoid specifying 12075 # it if it's in CXXFLAGS. Ignore libCrun as 12076 # -library=stlport4 depends on it. 12077 case " $CXX $CXXFLAGS " in 12078 *" -library=stlport4 "*) 12079 solaris_use_stlport4=yes 12080 ;; 12081 esac 12082 12083 # Adding this requires a known-good setup of shared libraries for 12084 # Sun compiler versions before 5.6, else PIC objects from an old 12085 # archive will be linked into the output, leading to subtle bugs. 12086 if test "$solaris_use_stlport4" != yes; then 12087 postdeps_CXX='-library=Cstd -library=Crun' 12088 fi 12089 ;; 12090 esac 12091 ;; 12092esac 12093 12094 12095case " $postdeps_CXX " in 12096*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12097esac 12098 12099lt_prog_compiler_wl_CXX= 12100lt_prog_compiler_pic_CXX= 12101lt_prog_compiler_static_CXX= 12102 12103{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12104echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12105 12106 # C++ specific cases for pic, static, wl, etc. 12107 if test "$GXX" = yes; then 12108 lt_prog_compiler_wl_CXX='-Wl,' 12109 lt_prog_compiler_static_CXX='-static' 12110 12111 case $host_os in 12112 aix*) 12113 # All AIX code is PIC. 12114 if test "$host_cpu" = ia64; then 12115 # AIX 5 now supports IA64 processor 12116 lt_prog_compiler_static_CXX='-Bstatic' 12117 fi 12118 ;; 12119 amigaos*) 12120 # FIXME: we need at least 68020 code to build shared libraries, but 12121 # adding the `-m68020' flag to GCC prevents building anything better, 12122 # like `-m68040'. 12123 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12124 ;; 12125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12126 # PIC is the default for these OSes. 12127 ;; 12128 mingw* | cygwin* | os2* | pw32*) 12129 # This hack is so that the source file can tell whether it is being 12130 # built for inclusion in a dll (and should export symbols for example). 12131 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12132 # (--disable-auto-import) libraries 12133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12134 ;; 12135 darwin* | rhapsody*) 12136 # PIC is the default on this platform 12137 # Common symbols not allowed in MH_DYLIB files 12138 lt_prog_compiler_pic_CXX='-fno-common' 12139 ;; 12140 *djgpp*) 12141 # DJGPP does not support shared libraries at all 12142 lt_prog_compiler_pic_CXX= 12143 ;; 12144 interix[3-9]*) 12145 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12146 # Instead, we relocate shared libraries at runtime. 12147 ;; 12148 sysv4*MP*) 12149 if test -d /usr/nec; then 12150 lt_prog_compiler_pic_CXX=-Kconform_pic 12151 fi 12152 ;; 12153 hpux*) 12154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12155 # not for PA HP-UX. 12156 case $host_cpu in 12157 hppa*64*|ia64*) 12158 ;; 12159 *) 12160 lt_prog_compiler_pic_CXX='-fPIC' 12161 ;; 12162 esac 12163 ;; 12164 *) 12165 lt_prog_compiler_pic_CXX='-fPIC' 12166 ;; 12167 esac 12168 else 12169 case $host_os in 12170 aix4* | aix5*) 12171 # All AIX code is PIC. 12172 if test "$host_cpu" = ia64; then 12173 # AIX 5 now supports IA64 processor 12174 lt_prog_compiler_static_CXX='-Bstatic' 12175 else 12176 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12177 fi 12178 ;; 12179 chorus*) 12180 case $cc_basename in 12181 cxch68*) 12182 # Green Hills C++ Compiler 12183 # _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" 12184 ;; 12185 esac 12186 ;; 12187 darwin*) 12188 # PIC is the default on this platform 12189 # Common symbols not allowed in MH_DYLIB files 12190 case $cc_basename in 12191 xlc*) 12192 lt_prog_compiler_pic_CXX='-qnocommon' 12193 lt_prog_compiler_wl_CXX='-Wl,' 12194 ;; 12195 esac 12196 ;; 12197 dgux*) 12198 case $cc_basename in 12199 ec++*) 12200 lt_prog_compiler_pic_CXX='-KPIC' 12201 ;; 12202 ghcx*) 12203 # Green Hills C++ Compiler 12204 lt_prog_compiler_pic_CXX='-pic' 12205 ;; 12206 *) 12207 ;; 12208 esac 12209 ;; 12210 freebsd* | dragonfly*) 12211 # FreeBSD uses GNU C++ 12212 ;; 12213 hpux9* | hpux10* | hpux11*) 12214 case $cc_basename in 12215 CC*) 12216 lt_prog_compiler_wl_CXX='-Wl,' 12217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12218 if test "$host_cpu" != ia64; then 12219 lt_prog_compiler_pic_CXX='+Z' 12220 fi 12221 ;; 12222 aCC*) 12223 lt_prog_compiler_wl_CXX='-Wl,' 12224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12225 case $host_cpu in 12226 hppa*64*|ia64*) 12227 # +Z the default 12228 ;; 12229 *) 12230 lt_prog_compiler_pic_CXX='+Z' 12231 ;; 12232 esac 12233 ;; 12234 *) 12235 ;; 12236 esac 12237 ;; 12238 interix*) 12239 # This is c89, which is MS Visual C++ (no shared libs) 12240 # Anyone wants to do a port? 12241 ;; 12242 irix5* | irix6* | nonstopux*) 12243 case $cc_basename in 12244 CC*) 12245 lt_prog_compiler_wl_CXX='-Wl,' 12246 lt_prog_compiler_static_CXX='-non_shared' 12247 # CC pic flag -KPIC is the default. 12248 ;; 12249 *) 12250 ;; 12251 esac 12252 ;; 12253 linux* | k*bsd*-gnu) 12254 case $cc_basename in 12255 KCC*) 12256 # KAI C++ Compiler 12257 lt_prog_compiler_wl_CXX='--backend -Wl,' 12258 lt_prog_compiler_pic_CXX='-fPIC' 12259 ;; 12260 icpc* | ecpc*) 12261 # Intel C++ 12262 lt_prog_compiler_wl_CXX='-Wl,' 12263 lt_prog_compiler_pic_CXX='-KPIC' 12264 lt_prog_compiler_static_CXX='-static' 12265 ;; 12266 pgCC*) 12267 # Portland Group C++ compiler. 12268 lt_prog_compiler_wl_CXX='-Wl,' 12269 lt_prog_compiler_pic_CXX='-fpic' 12270 lt_prog_compiler_static_CXX='-Bstatic' 12271 ;; 12272 cxx*) 12273 # Compaq C++ 12274 # Make sure the PIC flag is empty. It appears that all Alpha 12275 # Linux and Compaq Tru64 Unix objects are PIC. 12276 lt_prog_compiler_pic_CXX= 12277 lt_prog_compiler_static_CXX='-non_shared' 12278 ;; 12279 *) 12280 case `$CC -V 2>&1 | sed 5q` in 12281 *Sun\ C*) 12282 # Sun C++ 5.9 12283 lt_prog_compiler_pic_CXX='-KPIC' 12284 lt_prog_compiler_static_CXX='-Bstatic' 12285 lt_prog_compiler_wl_CXX='-Qoption ld ' 12286 ;; 12287 esac 12288 ;; 12289 esac 12290 ;; 12291 lynxos*) 12292 ;; 12293 m88k*) 12294 ;; 12295 mvs*) 12296 case $cc_basename in 12297 cxx*) 12298 lt_prog_compiler_pic_CXX='-W c,exportall' 12299 ;; 12300 *) 12301 ;; 12302 esac 12303 ;; 12304 netbsd*) 12305 ;; 12306 osf3* | osf4* | osf5*) 12307 case $cc_basename in 12308 KCC*) 12309 lt_prog_compiler_wl_CXX='--backend -Wl,' 12310 ;; 12311 RCC*) 12312 # Rational C++ 2.4.1 12313 lt_prog_compiler_pic_CXX='-pic' 12314 ;; 12315 cxx*) 12316 # Digital/Compaq C++ 12317 lt_prog_compiler_wl_CXX='-Wl,' 12318 # Make sure the PIC flag is empty. It appears that all Alpha 12319 # Linux and Compaq Tru64 Unix objects are PIC. 12320 lt_prog_compiler_pic_CXX= 12321 lt_prog_compiler_static_CXX='-non_shared' 12322 ;; 12323 *) 12324 ;; 12325 esac 12326 ;; 12327 psos*) 12328 ;; 12329 solaris*) 12330 case $cc_basename in 12331 CC*) 12332 # Sun C++ 4.2, 5.x and Centerline C++ 12333 lt_prog_compiler_pic_CXX='-KPIC' 12334 lt_prog_compiler_static_CXX='-Bstatic' 12335 lt_prog_compiler_wl_CXX='-Qoption ld ' 12336 ;; 12337 gcx*) 12338 # Green Hills C++ Compiler 12339 lt_prog_compiler_pic_CXX='-PIC' 12340 ;; 12341 *) 12342 ;; 12343 esac 12344 ;; 12345 sunos4*) 12346 case $cc_basename in 12347 CC*) 12348 # Sun C++ 4.x 12349 lt_prog_compiler_pic_CXX='-pic' 12350 lt_prog_compiler_static_CXX='-Bstatic' 12351 ;; 12352 lcc*) 12353 # Lucid 12354 lt_prog_compiler_pic_CXX='-pic' 12355 ;; 12356 *) 12357 ;; 12358 esac 12359 ;; 12360 tandem*) 12361 case $cc_basename in 12362 NCC*) 12363 # NonStop-UX NCC 3.20 12364 lt_prog_compiler_pic_CXX='-KPIC' 12365 ;; 12366 *) 12367 ;; 12368 esac 12369 ;; 12370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12371 case $cc_basename in 12372 CC*) 12373 lt_prog_compiler_wl_CXX='-Wl,' 12374 lt_prog_compiler_pic_CXX='-KPIC' 12375 lt_prog_compiler_static_CXX='-Bstatic' 12376 ;; 12377 esac 12378 ;; 12379 vxworks*) 12380 ;; 12381 *) 12382 lt_prog_compiler_can_build_shared_CXX=no 12383 ;; 12384 esac 12385 fi 12386 12387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12388echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12389 12390# 12391# Check to make sure the PIC flag actually works. 12392# 12393if test -n "$lt_prog_compiler_pic_CXX"; then 12394 12395{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12396echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12397if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12398 echo $ECHO_N "(cached) $ECHO_C" >&6 12399else 12400 lt_prog_compiler_pic_works_CXX=no 12401 ac_outfile=conftest.$ac_objext 12402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12403 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12404 # Insert the option either (1) after the last *FLAGS variable, or 12405 # (2) before a word containing "conftest.", or (3) at the end. 12406 # Note that $ac_compile itself does not contain backslashes and begins 12407 # with a dollar sign (not a hyphen), so the echo should work correctly. 12408 # The option is referenced via a variable to avoid confusing sed. 12409 lt_compile=`echo "$ac_compile" | $SED \ 12410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12412 -e 's:$: $lt_compiler_flag:'` 12413 (eval echo "\"\$as_me:12413: $lt_compile\"" >&5) 12414 (eval "$lt_compile" 2>conftest.err) 12415 ac_status=$? 12416 cat conftest.err >&5 12417 echo "$as_me:12417: \$? = $ac_status" >&5 12418 if (exit $ac_status) && test -s "$ac_outfile"; then 12419 # The compiler can only warn and ignore the option if not recognized 12420 # So say no if there are warnings other than the usual output. 12421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12424 lt_prog_compiler_pic_works_CXX=yes 12425 fi 12426 fi 12427 $rm conftest* 12428 12429fi 12430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12431echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12432 12433if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12434 case $lt_prog_compiler_pic_CXX in 12435 "" | " "*) ;; 12436 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12437 esac 12438else 12439 lt_prog_compiler_pic_CXX= 12440 lt_prog_compiler_can_build_shared_CXX=no 12441fi 12442 12443fi 12444case $host_os in 12445 # For platforms which do not support PIC, -DPIC is meaningless: 12446 *djgpp*) 12447 lt_prog_compiler_pic_CXX= 12448 ;; 12449 *) 12450 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12451 ;; 12452esac 12453 12454# 12455# Check to make sure the static flag actually works. 12456# 12457wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12458{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12459echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12460if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12461 echo $ECHO_N "(cached) $ECHO_C" >&6 12462else 12463 lt_prog_compiler_static_works_CXX=no 12464 save_LDFLAGS="$LDFLAGS" 12465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12466 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12468 # The linker can only warn and ignore the option if not recognized 12469 # So say no if there are warnings 12470 if test -s conftest.err; then 12471 # Append any errors to the config.log. 12472 cat conftest.err 1>&5 12473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12475 if diff conftest.exp conftest.er2 >/dev/null; then 12476 lt_prog_compiler_static_works_CXX=yes 12477 fi 12478 else 12479 lt_prog_compiler_static_works_CXX=yes 12480 fi 12481 fi 12482 $rm conftest* 12483 LDFLAGS="$save_LDFLAGS" 12484 12485fi 12486{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12487echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12488 12489if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12490 : 12491else 12492 lt_prog_compiler_static_CXX= 12493fi 12494 12495 12496{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12498if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12499 echo $ECHO_N "(cached) $ECHO_C" >&6 12500else 12501 lt_cv_prog_compiler_c_o_CXX=no 12502 $rm -r conftest 2>/dev/null 12503 mkdir conftest 12504 cd conftest 12505 mkdir out 12506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12507 12508 lt_compiler_flag="-o out/conftest2.$ac_objext" 12509 # Insert the option either (1) after the last *FLAGS variable, or 12510 # (2) before a word containing "conftest.", or (3) at the end. 12511 # Note that $ac_compile itself does not contain backslashes and begins 12512 # with a dollar sign (not a hyphen), so the echo should work correctly. 12513 lt_compile=`echo "$ac_compile" | $SED \ 12514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12516 -e 's:$: $lt_compiler_flag:'` 12517 (eval echo "\"\$as_me:12517: $lt_compile\"" >&5) 12518 (eval "$lt_compile" 2>out/conftest.err) 12519 ac_status=$? 12520 cat out/conftest.err >&5 12521 echo "$as_me:12521: \$? = $ac_status" >&5 12522 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12523 then 12524 # The compiler can only warn and ignore the option if not recognized 12525 # So say no if there are warnings 12526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12529 lt_cv_prog_compiler_c_o_CXX=yes 12530 fi 12531 fi 12532 chmod u+w . 2>&5 12533 $rm conftest* 12534 # SGI C++ compiler will create directory out/ii_files/ for 12535 # template instantiation 12536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12537 $rm out/* && rmdir out 12538 cd .. 12539 rmdir conftest 12540 $rm conftest* 12541 12542fi 12543{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12544echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12545 12546 12547hard_links="nottested" 12548if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12549 # do not overwrite the value of need_locks provided by the user 12550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12551echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12552 hard_links=yes 12553 $rm conftest* 12554 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12555 touch conftest.a 12556 ln conftest.a conftest.b 2>&5 || hard_links=no 12557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12558 { echo "$as_me:$LINENO: result: $hard_links" >&5 12559echo "${ECHO_T}$hard_links" >&6; } 12560 if test "$hard_links" = no; then 12561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12562echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12563 need_locks=warn 12564 fi 12565else 12566 need_locks=no 12567fi 12568 12569{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12570echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12571 12572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12573 case $host_os in 12574 aix4* | aix5*) 12575 # If we're using GNU nm, then we don't want the "-C" option. 12576 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12578 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' 12579 else 12580 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' 12581 fi 12582 ;; 12583 pw32*) 12584 export_symbols_cmds_CXX="$ltdll_cmds" 12585 ;; 12586 cygwin* | mingw*) 12587 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' 12588 ;; 12589 *) 12590 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12591 ;; 12592 esac 12593 12594{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12595echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12596test "$ld_shlibs_CXX" = no && can_build_shared=no 12597 12598# 12599# Do we need to explicitly link libc? 12600# 12601case "x$archive_cmds_need_lc_CXX" in 12602x|xyes) 12603 # Assume -lc should be added 12604 archive_cmds_need_lc_CXX=yes 12605 12606 if test "$enable_shared" = yes && test "$GCC" = yes; then 12607 case $archive_cmds_CXX in 12608 *'~'*) 12609 # FIXME: we may have to deal with multi-command sequences. 12610 ;; 12611 '$CC '*) 12612 # Test whether the compiler implicitly links with -lc since on some 12613 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12614 # to ld, don't add -lc before -lgcc. 12615 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12616echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12617 $rm conftest* 12618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12619 12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12621 (eval $ac_compile) 2>&5 12622 ac_status=$? 12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12624 (exit $ac_status); } 2>conftest.err; then 12625 soname=conftest 12626 lib=conftest 12627 libobjs=conftest.$ac_objext 12628 deplibs= 12629 wl=$lt_prog_compiler_wl_CXX 12630 pic_flag=$lt_prog_compiler_pic_CXX 12631 compiler_flags=-v 12632 linker_flags=-v 12633 verstring= 12634 output_objdir=. 12635 libname=conftest 12636 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12637 allow_undefined_flag_CXX= 12638 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12639 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12640 ac_status=$? 12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12642 (exit $ac_status); } 12643 then 12644 archive_cmds_need_lc_CXX=no 12645 else 12646 archive_cmds_need_lc_CXX=yes 12647 fi 12648 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12649 else 12650 cat conftest.err 1>&5 12651 fi 12652 $rm conftest* 12653 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12654echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12655 ;; 12656 esac 12657 fi 12658 ;; 12659esac 12660 12661{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12662echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12663library_names_spec= 12664libname_spec='lib$name' 12665soname_spec= 12666shrext_cmds=".so" 12667postinstall_cmds= 12668postuninstall_cmds= 12669finish_cmds= 12670finish_eval= 12671shlibpath_var= 12672shlibpath_overrides_runpath=unknown 12673version_type=none 12674dynamic_linker="$host_os ld.so" 12675sys_lib_dlsearch_path_spec="/lib /usr/lib" 12676 12677need_lib_prefix=unknown 12678hardcode_into_libs=no 12679 12680# when you set need_version to no, make sure it does not cause -set_version 12681# flags to be left without arguments 12682need_version=unknown 12683 12684case $host_os in 12685aix3*) 12686 version_type=linux 12687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12688 shlibpath_var=LIBPATH 12689 12690 # AIX 3 has no versioning support, so we append a major version to the name. 12691 soname_spec='${libname}${release}${shared_ext}$major' 12692 ;; 12693 12694aix4* | aix5*) 12695 version_type=linux 12696 need_lib_prefix=no 12697 need_version=no 12698 hardcode_into_libs=yes 12699 if test "$host_cpu" = ia64; then 12700 # AIX 5 supports IA64 12701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12702 shlibpath_var=LD_LIBRARY_PATH 12703 else 12704 # With GCC up to 2.95.x, collect2 would create an import file 12705 # for dependence libraries. The import file would start with 12706 # the line `#! .'. This would cause the generated library to 12707 # depend on `.', always an invalid library. This was fixed in 12708 # development snapshots of GCC prior to 3.0. 12709 case $host_os in 12710 aix4 | aix4.[01] | aix4.[01].*) 12711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12712 echo ' yes ' 12713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12714 : 12715 else 12716 can_build_shared=no 12717 fi 12718 ;; 12719 esac 12720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12721 # soname into executable. Probably we can add versioning support to 12722 # collect2, so additional links can be useful in future. 12723 if test "$aix_use_runtimelinking" = yes; then 12724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12725 # instead of lib<name>.a to let people know that these are not 12726 # typical AIX shared libraries. 12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12728 else 12729 # We preserve .a as extension for shared libraries through AIX4.2 12730 # and later when we are not doing run time linking. 12731 library_names_spec='${libname}${release}.a $libname.a' 12732 soname_spec='${libname}${release}${shared_ext}$major' 12733 fi 12734 shlibpath_var=LIBPATH 12735 fi 12736 ;; 12737 12738amigaos*) 12739 library_names_spec='$libname.ixlibrary $libname.a' 12740 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12741 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' 12742 ;; 12743 12744beos*) 12745 library_names_spec='${libname}${shared_ext}' 12746 dynamic_linker="$host_os ld.so" 12747 shlibpath_var=LIBRARY_PATH 12748 ;; 12749 12750bsdi[45]*) 12751 version_type=linux 12752 need_version=no 12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12754 soname_spec='${libname}${release}${shared_ext}$major' 12755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12756 shlibpath_var=LD_LIBRARY_PATH 12757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12759 # the default ld.so.conf also contains /usr/contrib/lib and 12760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12761 # libtool to hard-code these into programs 12762 ;; 12763 12764cygwin* | mingw* | pw32*) 12765 version_type=windows 12766 shrext_cmds=".dll" 12767 need_version=no 12768 need_lib_prefix=no 12769 12770 case $GCC,$host_os in 12771 yes,cygwin* | yes,mingw* | yes,pw32*) 12772 library_names_spec='$libname.dll.a' 12773 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12774 postinstall_cmds='base_file=`basename \${file}`~ 12775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12776 dldir=$destdir/`dirname \$dlpath`~ 12777 test -d \$dldir || mkdir -p \$dldir~ 12778 $install_prog $dir/$dlname \$dldir/$dlname~ 12779 chmod a+x \$dldir/$dlname' 12780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12781 dlpath=$dir/\$dldll~ 12782 $rm \$dlpath' 12783 shlibpath_overrides_runpath=yes 12784 12785 case $host_os in 12786 cygwin*) 12787 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12790 ;; 12791 mingw*) 12792 # MinGW DLLs use traditional 'lib' prefix 12793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12796 # It is most probably a Windows format PATH printed by 12797 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12798 # path with ; separators, and with drive letters. We can handle the 12799 # drive letters (cygwin fileutils understands them), so leave them, 12800 # especially as we might pass files found there to a mingw objdump, 12801 # which wouldn't understand a cygwinified path. Ahh. 12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12803 else 12804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12805 fi 12806 ;; 12807 pw32*) 12808 # pw32 DLLs use 'pw' prefix rather than 'lib' 12809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12810 ;; 12811 esac 12812 ;; 12813 12814 *) 12815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12816 ;; 12817 esac 12818 dynamic_linker='Win32 ld.exe' 12819 # FIXME: first we should search . and the directory the executable is in 12820 shlibpath_var=PATH 12821 ;; 12822 12823darwin* | rhapsody*) 12824 dynamic_linker="$host_os dyld" 12825 version_type=darwin 12826 need_lib_prefix=no 12827 need_version=no 12828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12829 soname_spec='${libname}${release}${major}$shared_ext' 12830 shlibpath_overrides_runpath=yes 12831 shlibpath_var=DYLD_LIBRARY_PATH 12832 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12833 12834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12835 ;; 12836 12837dgux*) 12838 version_type=linux 12839 need_lib_prefix=no 12840 need_version=no 12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12842 soname_spec='${libname}${release}${shared_ext}$major' 12843 shlibpath_var=LD_LIBRARY_PATH 12844 ;; 12845 12846freebsd1*) 12847 dynamic_linker=no 12848 ;; 12849 12850freebsd* | dragonfly*) 12851 # DragonFly does not have aout. When/if they implement a new 12852 # versioning mechanism, adjust this. 12853 if test -x /usr/bin/objformat; then 12854 objformat=`/usr/bin/objformat` 12855 else 12856 case $host_os in 12857 freebsd[123]*) objformat=aout ;; 12858 *) objformat=elf ;; 12859 esac 12860 fi 12861 version_type=freebsd-$objformat 12862 case $version_type in 12863 freebsd-elf*) 12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12865 need_version=no 12866 need_lib_prefix=no 12867 ;; 12868 freebsd-*) 12869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12870 need_version=yes 12871 ;; 12872 esac 12873 shlibpath_var=LD_LIBRARY_PATH 12874 case $host_os in 12875 freebsd2*) 12876 shlibpath_overrides_runpath=yes 12877 ;; 12878 freebsd3.[01]* | freebsdelf3.[01]*) 12879 shlibpath_overrides_runpath=yes 12880 hardcode_into_libs=yes 12881 ;; 12882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12884 shlibpath_overrides_runpath=no 12885 hardcode_into_libs=yes 12886 ;; 12887 *) # from 4.6 on, and DragonFly 12888 shlibpath_overrides_runpath=yes 12889 hardcode_into_libs=yes 12890 ;; 12891 esac 12892 ;; 12893 12894gnu*) 12895 version_type=linux 12896 need_lib_prefix=no 12897 need_version=no 12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12899 soname_spec='${libname}${release}${shared_ext}$major' 12900 shlibpath_var=LD_LIBRARY_PATH 12901 hardcode_into_libs=yes 12902 ;; 12903 12904hpux9* | hpux10* | hpux11*) 12905 # Give a soname corresponding to the major version so that dld.sl refuses to 12906 # link against other versions. 12907 version_type=sunos 12908 need_lib_prefix=no 12909 need_version=no 12910 case $host_cpu in 12911 ia64*) 12912 shrext_cmds='.so' 12913 hardcode_into_libs=yes 12914 dynamic_linker="$host_os dld.so" 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 if test "X$HPUX_IA64_MODE" = X32; then 12920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12921 else 12922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12923 fi 12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12925 ;; 12926 hppa*64*) 12927 shrext_cmds='.sl' 12928 hardcode_into_libs=yes 12929 dynamic_linker="$host_os dld.sl" 12930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12933 soname_spec='${libname}${release}${shared_ext}$major' 12934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12936 ;; 12937 *) 12938 shrext_cmds='.sl' 12939 dynamic_linker="$host_os dld.sl" 12940 shlibpath_var=SHLIB_PATH 12941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12943 soname_spec='${libname}${release}${shared_ext}$major' 12944 ;; 12945 esac 12946 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12947 postinstall_cmds='chmod 555 $lib' 12948 ;; 12949 12950interix[3-9]*) 12951 version_type=linux 12952 need_lib_prefix=no 12953 need_version=no 12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12955 soname_spec='${libname}${release}${shared_ext}$major' 12956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12957 shlibpath_var=LD_LIBRARY_PATH 12958 shlibpath_overrides_runpath=no 12959 hardcode_into_libs=yes 12960 ;; 12961 12962irix5* | irix6* | nonstopux*) 12963 case $host_os in 12964 nonstopux*) version_type=nonstopux ;; 12965 *) 12966 if test "$lt_cv_prog_gnu_ld" = yes; then 12967 version_type=linux 12968 else 12969 version_type=irix 12970 fi ;; 12971 esac 12972 need_lib_prefix=no 12973 need_version=no 12974 soname_spec='${libname}${release}${shared_ext}$major' 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12976 case $host_os in 12977 irix5* | nonstopux*) 12978 libsuff= shlibsuff= 12979 ;; 12980 *) 12981 case $LD in # libtool.m4 will add one of these switches to LD 12982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12983 libsuff= shlibsuff= libmagic=32-bit;; 12984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12985 libsuff=32 shlibsuff=N32 libmagic=N32;; 12986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12987 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12988 *) libsuff= shlibsuff= libmagic=never-match;; 12989 esac 12990 ;; 12991 esac 12992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12993 shlibpath_overrides_runpath=no 12994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12996 hardcode_into_libs=yes 12997 ;; 12998 12999# No shared lib support for Linux oldld, aout, or coff. 13000linux*oldld* | linux*aout* | linux*coff*) 13001 dynamic_linker=no 13002 ;; 13003 13004# This must be Linux ELF. 13005linux* | k*bsd*-gnu) 13006 version_type=linux 13007 need_lib_prefix=no 13008 need_version=no 13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13010 soname_spec='${libname}${release}${shared_ext}$major' 13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13012 shlibpath_var=LD_LIBRARY_PATH 13013 shlibpath_overrides_runpath=no 13014 # This implies no fast_install, which is unacceptable. 13015 # Some rework will be needed to allow for fast_install 13016 # before this can be enabled. 13017 hardcode_into_libs=yes 13018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13020 13021 # Append ld.so.conf contents to the search path 13022 if test -f /etc/ld.so.conf; then 13023 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13024 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13025 fi 13026 13027 # We used to test for /lib/ld.so.1 and disable shared libraries on 13028 # powerpc, because MkLinux only supported shared libraries with the 13029 # GNU dynamic linker. Since this was broken with cross compilers, 13030 # most powerpc-linux boxes support dynamic linking these days and 13031 # people can always --disable-shared, the test was removed, and we 13032 # assume the GNU/Linux dynamic linker is in use. 13033 dynamic_linker='GNU/Linux ld.so' 13034 ;; 13035 13036netbsd*) 13037 version_type=sunos 13038 need_lib_prefix=no 13039 need_version=no 13040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13043 dynamic_linker='NetBSD (a.out) ld.so' 13044 else 13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13046 soname_spec='${libname}${release}${shared_ext}$major' 13047 dynamic_linker='NetBSD ld.elf_so' 13048 fi 13049 shlibpath_var=LD_LIBRARY_PATH 13050 shlibpath_overrides_runpath=yes 13051 hardcode_into_libs=yes 13052 ;; 13053 13054newsos6) 13055 version_type=linux 13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13057 shlibpath_var=LD_LIBRARY_PATH 13058 shlibpath_overrides_runpath=yes 13059 ;; 13060 13061nto-qnx*) 13062 version_type=linux 13063 need_lib_prefix=no 13064 need_version=no 13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13066 soname_spec='${libname}${release}${shared_ext}$major' 13067 shlibpath_var=LD_LIBRARY_PATH 13068 shlibpath_overrides_runpath=yes 13069 ;; 13070 13071openbsd*) 13072 version_type=sunos 13073 sys_lib_dlsearch_path_spec="/usr/lib" 13074 need_lib_prefix=no 13075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13076 case $host_os in 13077 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13078 *) need_version=no ;; 13079 esac 13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13082 shlibpath_var=LD_LIBRARY_PATH 13083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13084 case $host_os in 13085 openbsd2.[89] | openbsd2.[89].*) 13086 shlibpath_overrides_runpath=no 13087 ;; 13088 *) 13089 shlibpath_overrides_runpath=yes 13090 ;; 13091 esac 13092 else 13093 shlibpath_overrides_runpath=yes 13094 fi 13095 ;; 13096 13097os2*) 13098 libname_spec='$name' 13099 shrext_cmds=".dll" 13100 need_lib_prefix=no 13101 library_names_spec='$libname${shared_ext} $libname.a' 13102 dynamic_linker='OS/2 ld.exe' 13103 shlibpath_var=LIBPATH 13104 ;; 13105 13106osf3* | osf4* | osf5*) 13107 version_type=osf 13108 need_lib_prefix=no 13109 need_version=no 13110 soname_spec='${libname}${release}${shared_ext}$major' 13111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13115 ;; 13116 13117rdos*) 13118 dynamic_linker=no 13119 ;; 13120 13121solaris*) 13122 version_type=linux 13123 need_lib_prefix=no 13124 need_version=no 13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13126 soname_spec='${libname}${release}${shared_ext}$major' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 shlibpath_overrides_runpath=yes 13129 hardcode_into_libs=yes 13130 # ldd complains unless libraries are executable 13131 postinstall_cmds='chmod +x $lib' 13132 ;; 13133 13134sunos4*) 13135 version_type=sunos 13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13138 shlibpath_var=LD_LIBRARY_PATH 13139 shlibpath_overrides_runpath=yes 13140 if test "$with_gnu_ld" = yes; then 13141 need_lib_prefix=no 13142 fi 13143 need_version=yes 13144 ;; 13145 13146sysv4 | sysv4.3*) 13147 version_type=linux 13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13149 soname_spec='${libname}${release}${shared_ext}$major' 13150 shlibpath_var=LD_LIBRARY_PATH 13151 case $host_vendor in 13152 sni) 13153 shlibpath_overrides_runpath=no 13154 need_lib_prefix=no 13155 export_dynamic_flag_spec='${wl}-Blargedynsym' 13156 runpath_var=LD_RUN_PATH 13157 ;; 13158 siemens) 13159 need_lib_prefix=no 13160 ;; 13161 motorola) 13162 need_lib_prefix=no 13163 need_version=no 13164 shlibpath_overrides_runpath=no 13165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13166 ;; 13167 esac 13168 ;; 13169 13170sysv4*MP*) 13171 if test -d /usr/nec ;then 13172 version_type=linux 13173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13174 soname_spec='$libname${shared_ext}.$major' 13175 shlibpath_var=LD_LIBRARY_PATH 13176 fi 13177 ;; 13178 13179sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13180 version_type=freebsd-elf 13181 need_lib_prefix=no 13182 need_version=no 13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13184 soname_spec='${libname}${release}${shared_ext}$major' 13185 shlibpath_var=LD_LIBRARY_PATH 13186 hardcode_into_libs=yes 13187 if test "$with_gnu_ld" = yes; then 13188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13189 shlibpath_overrides_runpath=no 13190 else 13191 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13192 shlibpath_overrides_runpath=yes 13193 case $host_os in 13194 sco3.2v5*) 13195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13196 ;; 13197 esac 13198 fi 13199 sys_lib_dlsearch_path_spec='/usr/lib' 13200 ;; 13201 13202uts4*) 13203 version_type=linux 13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13205 soname_spec='${libname}${release}${shared_ext}$major' 13206 shlibpath_var=LD_LIBRARY_PATH 13207 ;; 13208 13209*) 13210 dynamic_linker=no 13211 ;; 13212esac 13213{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13214echo "${ECHO_T}$dynamic_linker" >&6; } 13215test "$dynamic_linker" = no && can_build_shared=no 13216 13217variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13218if test "$GCC" = yes; then 13219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13220fi 13221 13222{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13223echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13224hardcode_action_CXX= 13225if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13226 test -n "$runpath_var_CXX" || \ 13227 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13228 13229 # We can hardcode non-existant directories. 13230 if test "$hardcode_direct_CXX" != no && 13231 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13232 # have to relink, otherwise we might link with an installed library 13233 # when we should be linking with a yet-to-be-installed one 13234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13235 test "$hardcode_minus_L_CXX" != no; then 13236 # Linking always hardcodes the temporary library directory. 13237 hardcode_action_CXX=relink 13238 else 13239 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13240 hardcode_action_CXX=immediate 13241 fi 13242else 13243 # We cannot hardcode anything, or else we can only hardcode existing 13244 # directories. 13245 hardcode_action_CXX=unsupported 13246fi 13247{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13248echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13249 13250if test "$hardcode_action_CXX" = relink; then 13251 # Fast installation is not supported 13252 enable_fast_install=no 13253elif test "$shlibpath_overrides_runpath" = yes || 13254 test "$enable_shared" = no; then 13255 # Fast installation is not necessary 13256 enable_fast_install=needless 13257fi 13258 13259 13260# The else clause should only fire when bootstrapping the 13261# libtool distribution, otherwise you forgot to ship ltmain.sh 13262# with your package, and you will get complaints that there are 13263# no rules to generate ltmain.sh. 13264if test -f "$ltmain"; then 13265 # See if we are running on zsh, and set the options which allow our commands through 13266 # without removal of \ escapes. 13267 if test -n "${ZSH_VERSION+set}" ; then 13268 setopt NO_GLOB_SUBST 13269 fi 13270 # Now quote all the things that may contain metacharacters while being 13271 # careful not to overquote the AC_SUBSTed values. We take copies of the 13272 # variables and quote the copies for generation of the libtool script. 13273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13274 SED SHELL STRIP \ 13275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13277 deplibs_check_method reload_flag reload_cmds need_locks \ 13278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13279 lt_cv_sys_global_symbol_to_c_name_address \ 13280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13281 old_postinstall_cmds old_postuninstall_cmds \ 13282 compiler_CXX \ 13283 CC_CXX \ 13284 LD_CXX \ 13285 lt_prog_compiler_wl_CXX \ 13286 lt_prog_compiler_pic_CXX \ 13287 lt_prog_compiler_static_CXX \ 13288 lt_prog_compiler_no_builtin_flag_CXX \ 13289 export_dynamic_flag_spec_CXX \ 13290 thread_safe_flag_spec_CXX \ 13291 whole_archive_flag_spec_CXX \ 13292 enable_shared_with_static_runtimes_CXX \ 13293 old_archive_cmds_CXX \ 13294 old_archive_from_new_cmds_CXX \ 13295 predep_objects_CXX \ 13296 postdep_objects_CXX \ 13297 predeps_CXX \ 13298 postdeps_CXX \ 13299 compiler_lib_search_path_CXX \ 13300 archive_cmds_CXX \ 13301 archive_expsym_cmds_CXX \ 13302 postinstall_cmds_CXX \ 13303 postuninstall_cmds_CXX \ 13304 old_archive_from_expsyms_cmds_CXX \ 13305 allow_undefined_flag_CXX \ 13306 no_undefined_flag_CXX \ 13307 export_symbols_cmds_CXX \ 13308 hardcode_libdir_flag_spec_CXX \ 13309 hardcode_libdir_flag_spec_ld_CXX \ 13310 hardcode_libdir_separator_CXX \ 13311 hardcode_automatic_CXX \ 13312 module_cmds_CXX \ 13313 module_expsym_cmds_CXX \ 13314 lt_cv_prog_compiler_c_o_CXX \ 13315 fix_srcfile_path_CXX \ 13316 exclude_expsyms_CXX \ 13317 include_expsyms_CXX; do 13318 13319 case $var in 13320 old_archive_cmds_CXX | \ 13321 old_archive_from_new_cmds_CXX | \ 13322 archive_cmds_CXX | \ 13323 archive_expsym_cmds_CXX | \ 13324 module_cmds_CXX | \ 13325 module_expsym_cmds_CXX | \ 13326 old_archive_from_expsyms_cmds_CXX | \ 13327 export_symbols_cmds_CXX | \ 13328 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13329 postinstall_cmds | postuninstall_cmds | \ 13330 old_postinstall_cmds | old_postuninstall_cmds | \ 13331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13332 # Double-quote double-evaled strings. 13333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13334 ;; 13335 *) 13336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13337 ;; 13338 esac 13339 done 13340 13341 case $lt_echo in 13342 *'\$0 --fallback-echo"') 13343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13344 ;; 13345 esac 13346 13347cfgfile="$ofile" 13348 13349 cat <<__EOF__ >> "$cfgfile" 13350# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13351 13352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13353 13354# Shell to use when invoking shell scripts. 13355SHELL=$lt_SHELL 13356 13357# Whether or not to build shared libraries. 13358build_libtool_libs=$enable_shared 13359 13360# Whether or not to build static libraries. 13361build_old_libs=$enable_static 13362 13363# Whether or not to add -lc for building shared libraries. 13364build_libtool_need_lc=$archive_cmds_need_lc_CXX 13365 13366# Whether or not to disallow shared libs when runtime libs are static 13367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13368 13369# Whether or not to optimize for fast installation. 13370fast_install=$enable_fast_install 13371 13372# The host system. 13373host_alias=$host_alias 13374host=$host 13375host_os=$host_os 13376 13377# The build system. 13378build_alias=$build_alias 13379build=$build 13380build_os=$build_os 13381 13382# An echo program that does not interpret backslashes. 13383echo=$lt_echo 13384 13385# The archiver. 13386AR=$lt_AR 13387AR_FLAGS=$lt_AR_FLAGS 13388 13389# A C compiler. 13390LTCC=$lt_LTCC 13391 13392# LTCC compiler flags. 13393LTCFLAGS=$lt_LTCFLAGS 13394 13395# A language-specific compiler. 13396CC=$lt_compiler_CXX 13397 13398# Is the compiler the GNU C compiler? 13399with_gcc=$GCC_CXX 13400 13401# An ERE matcher. 13402EGREP=$lt_EGREP 13403 13404# The linker used to build libraries. 13405LD=$lt_LD_CXX 13406 13407# Whether we need hard or soft links. 13408LN_S=$lt_LN_S 13409 13410# A BSD-compatible nm program. 13411NM=$lt_NM 13412 13413# A symbol stripping program 13414STRIP=$lt_STRIP 13415 13416# Used to examine libraries when file_magic_cmd begins "file" 13417MAGIC_CMD=$MAGIC_CMD 13418 13419# Used on cygwin: DLL creation program. 13420DLLTOOL="$DLLTOOL" 13421 13422# Used on cygwin: object dumper. 13423OBJDUMP="$OBJDUMP" 13424 13425# Used on cygwin: assembler. 13426AS="$AS" 13427 13428# The name of the directory that contains temporary libtool files. 13429objdir=$objdir 13430 13431# How to create reloadable object files. 13432reload_flag=$lt_reload_flag 13433reload_cmds=$lt_reload_cmds 13434 13435# How to pass a linker flag through the compiler. 13436wl=$lt_lt_prog_compiler_wl_CXX 13437 13438# Object file suffix (normally "o"). 13439objext="$ac_objext" 13440 13441# Old archive suffix (normally "a"). 13442libext="$libext" 13443 13444# Shared library suffix (normally ".so"). 13445shrext_cmds='$shrext_cmds' 13446 13447# Executable file suffix (normally ""). 13448exeext="$exeext" 13449 13450# Additional compiler flags for building library objects. 13451pic_flag=$lt_lt_prog_compiler_pic_CXX 13452pic_mode=$pic_mode 13453 13454# What is the maximum length of a command? 13455max_cmd_len=$lt_cv_sys_max_cmd_len 13456 13457# Does compiler simultaneously support -c and -o options? 13458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13459 13460# Must we lock files when doing compilation? 13461need_locks=$lt_need_locks 13462 13463# Do we need the lib prefix for modules? 13464need_lib_prefix=$need_lib_prefix 13465 13466# Do we need a version for libraries? 13467need_version=$need_version 13468 13469# Whether dlopen is supported. 13470dlopen_support=$enable_dlopen 13471 13472# Whether dlopen of programs is supported. 13473dlopen_self=$enable_dlopen_self 13474 13475# Whether dlopen of statically linked programs is supported. 13476dlopen_self_static=$enable_dlopen_self_static 13477 13478# Compiler flag to prevent dynamic linking. 13479link_static_flag=$lt_lt_prog_compiler_static_CXX 13480 13481# Compiler flag to turn off builtin functions. 13482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13483 13484# Compiler flag to allow reflexive dlopens. 13485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13486 13487# Compiler flag to generate shared objects directly from archives. 13488whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13489 13490# Compiler flag to generate thread-safe objects. 13491thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13492 13493# Library versioning type. 13494version_type=$version_type 13495 13496# Format of library name prefix. 13497libname_spec=$lt_libname_spec 13498 13499# List of archive names. First name is the real one, the rest are links. 13500# The last name is the one that the linker finds with -lNAME. 13501library_names_spec=$lt_library_names_spec 13502 13503# The coded name of the library, if different from the real name. 13504soname_spec=$lt_soname_spec 13505 13506# Commands used to build and install an old-style archive. 13507RANLIB=$lt_RANLIB 13508old_archive_cmds=$lt_old_archive_cmds_CXX 13509old_postinstall_cmds=$lt_old_postinstall_cmds 13510old_postuninstall_cmds=$lt_old_postuninstall_cmds 13511 13512# Create an old-style archive from a shared archive. 13513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13514 13515# Create a temporary old-style archive to link instead of a shared archive. 13516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13517 13518# Commands used to build and install a shared archive. 13519archive_cmds=$lt_archive_cmds_CXX 13520archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13521postinstall_cmds=$lt_postinstall_cmds 13522postuninstall_cmds=$lt_postuninstall_cmds 13523 13524# Commands used to build a loadable module (assumed same as above if empty) 13525module_cmds=$lt_module_cmds_CXX 13526module_expsym_cmds=$lt_module_expsym_cmds_CXX 13527 13528# Commands to strip libraries. 13529old_striplib=$lt_old_striplib 13530striplib=$lt_striplib 13531 13532# Dependencies to place before the objects being linked to create a 13533# shared library. 13534predep_objects=$lt_predep_objects_CXX 13535 13536# Dependencies to place after the objects being linked to create a 13537# shared library. 13538postdep_objects=$lt_postdep_objects_CXX 13539 13540# Dependencies to place before the objects being linked to create a 13541# shared library. 13542predeps=$lt_predeps_CXX 13543 13544# Dependencies to place after the objects being linked to create a 13545# shared library. 13546postdeps=$lt_postdeps_CXX 13547 13548# The library search path used internally by the compiler when linking 13549# a shared library. 13550compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13551 13552# Method to check whether dependent libraries are shared objects. 13553deplibs_check_method=$lt_deplibs_check_method 13554 13555# Command to use when deplibs_check_method == file_magic. 13556file_magic_cmd=$lt_file_magic_cmd 13557 13558# Flag that allows shared libraries with undefined symbols to be built. 13559allow_undefined_flag=$lt_allow_undefined_flag_CXX 13560 13561# Flag that forces no undefined symbols. 13562no_undefined_flag=$lt_no_undefined_flag_CXX 13563 13564# Commands used to finish a libtool library installation in a directory. 13565finish_cmds=$lt_finish_cmds 13566 13567# Same as above, but a single script fragment to be evaled but not shown. 13568finish_eval=$lt_finish_eval 13569 13570# Take the output of nm and produce a listing of raw symbols and C names. 13571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13572 13573# Transform the output of nm in a proper C declaration 13574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13575 13576# Transform the output of nm in a C name address pair 13577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13578 13579# This is the shared library runtime path variable. 13580runpath_var=$runpath_var 13581 13582# This is the shared library path variable. 13583shlibpath_var=$shlibpath_var 13584 13585# Is shlibpath searched before the hard-coded library search path? 13586shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13587 13588# How to hardcode a shared library path into an executable. 13589hardcode_action=$hardcode_action_CXX 13590 13591# Whether we should hardcode library paths into libraries. 13592hardcode_into_libs=$hardcode_into_libs 13593 13594# Flag to hardcode \$libdir into a binary during linking. 13595# This must work even if \$libdir does not exist. 13596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13597 13598# If ld is used when linking, flag to hardcode \$libdir into 13599# a binary during linking. This must work even if \$libdir does 13600# not exist. 13601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13602 13603# Whether we need a single -rpath flag with a separated argument. 13604hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13605 13606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13607# resulting binary. 13608hardcode_direct=$hardcode_direct_CXX 13609 13610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13611# resulting binary. 13612hardcode_minus_L=$hardcode_minus_L_CXX 13613 13614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13615# the resulting binary. 13616hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13617 13618# Set to yes if building a shared library automatically hardcodes DIR into the library 13619# and all subsequent libraries and executables linked against it. 13620hardcode_automatic=$hardcode_automatic_CXX 13621 13622# Variables whose values should be saved in libtool wrapper scripts and 13623# restored at relink time. 13624variables_saved_for_relink="$variables_saved_for_relink" 13625 13626# Whether libtool must link a program against all its dependency libraries. 13627link_all_deplibs=$link_all_deplibs_CXX 13628 13629# Compile-time system search path for libraries 13630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13631 13632# Run-time system search path for libraries 13633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13634 13635# Fix the shell variable \$srcfile for the compiler. 13636fix_srcfile_path=$lt_fix_srcfile_path 13637 13638# Set to yes if exported symbols are required. 13639always_export_symbols=$always_export_symbols_CXX 13640 13641# The commands to list exported symbols. 13642export_symbols_cmds=$lt_export_symbols_cmds_CXX 13643 13644# The commands to extract the exported symbol list from a shared archive. 13645extract_expsyms_cmds=$lt_extract_expsyms_cmds 13646 13647# Symbols that should not be listed in the preloaded symbols. 13648exclude_expsyms=$lt_exclude_expsyms_CXX 13649 13650# Symbols that must always be exported. 13651include_expsyms=$lt_include_expsyms_CXX 13652 13653# ### END LIBTOOL TAG CONFIG: $tagname 13654 13655__EOF__ 13656 13657 13658else 13659 # If there is no Makefile yet, we rely on a make rule to execute 13660 # `config.status --recheck' to rerun these tests and create the 13661 # libtool script then. 13662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13663 if test -f "$ltmain_in"; then 13664 test -f Makefile && make "$ltmain" 13665 fi 13666fi 13667 13668 13669ac_ext=c 13670ac_cpp='$CPP $CPPFLAGS' 13671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13673ac_compiler_gnu=$ac_cv_c_compiler_gnu 13674 13675CC=$lt_save_CC 13676LDCXX=$LD 13677LD=$lt_save_LD 13678GCC=$lt_save_GCC 13679with_gnu_ldcxx=$with_gnu_ld 13680with_gnu_ld=$lt_save_with_gnu_ld 13681lt_cv_path_LDCXX=$lt_cv_path_LD 13682lt_cv_path_LD=$lt_save_path_LD 13683lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13684lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13685 13686 else 13687 tagname="" 13688 fi 13689 ;; 13690 13691 F77) 13692 if test -n "$F77" && test "X$F77" != "Xno"; then 13693 13694ac_ext=f 13695ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13696ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13697ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13698 13699 13700archive_cmds_need_lc_F77=no 13701allow_undefined_flag_F77= 13702always_export_symbols_F77=no 13703archive_expsym_cmds_F77= 13704export_dynamic_flag_spec_F77= 13705hardcode_direct_F77=no 13706hardcode_libdir_flag_spec_F77= 13707hardcode_libdir_flag_spec_ld_F77= 13708hardcode_libdir_separator_F77= 13709hardcode_minus_L_F77=no 13710hardcode_automatic_F77=no 13711module_cmds_F77= 13712module_expsym_cmds_F77= 13713link_all_deplibs_F77=unknown 13714old_archive_cmds_F77=$old_archive_cmds 13715no_undefined_flag_F77= 13716whole_archive_flag_spec_F77= 13717enable_shared_with_static_runtimes_F77=no 13718 13719# Source file extension for f77 test sources. 13720ac_ext=f 13721 13722# Object file extension for compiled f77 test sources. 13723objext=o 13724objext_F77=$objext 13725 13726# Code to be used in simple compile tests 13727lt_simple_compile_test_code="\ 13728 subroutine t 13729 return 13730 end 13731" 13732 13733# Code to be used in simple link tests 13734lt_simple_link_test_code="\ 13735 program t 13736 end 13737" 13738 13739# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13740 13741# If no C compiler was specified, use CC. 13742LTCC=${LTCC-"$CC"} 13743 13744# If no C compiler flags were specified, use CFLAGS. 13745LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13746 13747# Allow CC to be a program name with arguments. 13748compiler=$CC 13749 13750 13751# save warnings/boilerplate of simple test code 13752ac_outfile=conftest.$ac_objext 13753echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13754eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13755_lt_compiler_boilerplate=`cat conftest.err` 13756$rm conftest* 13757 13758ac_outfile=conftest.$ac_objext 13759echo "$lt_simple_link_test_code" >conftest.$ac_ext 13760eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13761_lt_linker_boilerplate=`cat conftest.err` 13762$rm conftest* 13763 13764 13765# Allow CC to be a program name with arguments. 13766lt_save_CC="$CC" 13767CC=${F77-"f77"} 13768compiler=$CC 13769compiler_F77=$CC 13770for cc_temp in $compiler""; do 13771 case $cc_temp in 13772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13774 \-*) ;; 13775 *) break;; 13776 esac 13777done 13778cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13779 13780 13781{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13782echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13783{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13784echo "${ECHO_T}$can_build_shared" >&6; } 13785 13786{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13787echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13788test "$can_build_shared" = "no" && enable_shared=no 13789 13790# On AIX, shared libraries and static libraries use the same namespace, and 13791# are all built from PIC. 13792case $host_os in 13793aix3*) 13794 test "$enable_shared" = yes && enable_static=no 13795 if test -n "$RANLIB"; then 13796 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13797 postinstall_cmds='$RANLIB $lib' 13798 fi 13799 ;; 13800aix4* | aix5*) 13801 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13802 test "$enable_shared" = yes && enable_static=no 13803 fi 13804 ;; 13805esac 13806{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13807echo "${ECHO_T}$enable_shared" >&6; } 13808 13809{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13810echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13811# Make sure either enable_shared or enable_static is yes. 13812test "$enable_shared" = yes || enable_static=yes 13813{ echo "$as_me:$LINENO: result: $enable_static" >&5 13814echo "${ECHO_T}$enable_static" >&6; } 13815 13816GCC_F77="$G77" 13817LD_F77="$LD" 13818 13819lt_prog_compiler_wl_F77= 13820lt_prog_compiler_pic_F77= 13821lt_prog_compiler_static_F77= 13822 13823{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13824echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13825 13826 if test "$GCC" = yes; then 13827 lt_prog_compiler_wl_F77='-Wl,' 13828 lt_prog_compiler_static_F77='-static' 13829 13830 case $host_os in 13831 aix*) 13832 # All AIX code is PIC. 13833 if test "$host_cpu" = ia64; then 13834 # AIX 5 now supports IA64 processor 13835 lt_prog_compiler_static_F77='-Bstatic' 13836 fi 13837 ;; 13838 13839 amigaos*) 13840 # FIXME: we need at least 68020 code to build shared libraries, but 13841 # adding the `-m68020' flag to GCC prevents building anything better, 13842 # like `-m68040'. 13843 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13844 ;; 13845 13846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13847 # PIC is the default for these OSes. 13848 ;; 13849 13850 mingw* | cygwin* | pw32* | os2*) 13851 # This hack is so that the source file can tell whether it is being 13852 # built for inclusion in a dll (and should export symbols for example). 13853 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13854 # (--disable-auto-import) libraries 13855 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13856 ;; 13857 13858 darwin* | rhapsody*) 13859 # PIC is the default on this platform 13860 # Common symbols not allowed in MH_DYLIB files 13861 lt_prog_compiler_pic_F77='-fno-common' 13862 ;; 13863 13864 interix[3-9]*) 13865 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13866 # Instead, we relocate shared libraries at runtime. 13867 ;; 13868 13869 msdosdjgpp*) 13870 # Just because we use GCC doesn't mean we suddenly get shared libraries 13871 # on systems that don't support them. 13872 lt_prog_compiler_can_build_shared_F77=no 13873 enable_shared=no 13874 ;; 13875 13876 sysv4*MP*) 13877 if test -d /usr/nec; then 13878 lt_prog_compiler_pic_F77=-Kconform_pic 13879 fi 13880 ;; 13881 13882 hpux*) 13883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13884 # not for PA HP-UX. 13885 case $host_cpu in 13886 hppa*64*|ia64*) 13887 # +Z the default 13888 ;; 13889 *) 13890 lt_prog_compiler_pic_F77='-fPIC' 13891 ;; 13892 esac 13893 ;; 13894 13895 *) 13896 lt_prog_compiler_pic_F77='-fPIC' 13897 ;; 13898 esac 13899 else 13900 # PORTME Check for flag to pass linker flags through the system compiler. 13901 case $host_os in 13902 aix*) 13903 lt_prog_compiler_wl_F77='-Wl,' 13904 if test "$host_cpu" = ia64; then 13905 # AIX 5 now supports IA64 processor 13906 lt_prog_compiler_static_F77='-Bstatic' 13907 else 13908 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13909 fi 13910 ;; 13911 darwin*) 13912 # PIC is the default on this platform 13913 # Common symbols not allowed in MH_DYLIB files 13914 case $cc_basename in 13915 xlc*) 13916 lt_prog_compiler_pic_F77='-qnocommon' 13917 lt_prog_compiler_wl_F77='-Wl,' 13918 ;; 13919 esac 13920 ;; 13921 13922 mingw* | cygwin* | pw32* | os2*) 13923 # This hack is so that the source file can tell whether it is being 13924 # built for inclusion in a dll (and should export symbols for example). 13925 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13926 ;; 13927 13928 hpux9* | hpux10* | hpux11*) 13929 lt_prog_compiler_wl_F77='-Wl,' 13930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13931 # not for PA HP-UX. 13932 case $host_cpu in 13933 hppa*64*|ia64*) 13934 # +Z the default 13935 ;; 13936 *) 13937 lt_prog_compiler_pic_F77='+Z' 13938 ;; 13939 esac 13940 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13941 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13942 ;; 13943 13944 irix5* | irix6* | nonstopux*) 13945 lt_prog_compiler_wl_F77='-Wl,' 13946 # PIC (with -KPIC) is the default. 13947 lt_prog_compiler_static_F77='-non_shared' 13948 ;; 13949 13950 newsos6) 13951 lt_prog_compiler_pic_F77='-KPIC' 13952 lt_prog_compiler_static_F77='-Bstatic' 13953 ;; 13954 13955 linux* | k*bsd*-gnu) 13956 case $cc_basename in 13957 icc* | ecc*) 13958 lt_prog_compiler_wl_F77='-Wl,' 13959 lt_prog_compiler_pic_F77='-KPIC' 13960 lt_prog_compiler_static_F77='-static' 13961 ;; 13962 pgcc* | pgf77* | pgf90* | pgf95*) 13963 # Portland Group compilers (*not* the Pentium gcc compiler, 13964 # which looks to be a dead project) 13965 lt_prog_compiler_wl_F77='-Wl,' 13966 lt_prog_compiler_pic_F77='-fpic' 13967 lt_prog_compiler_static_F77='-Bstatic' 13968 ;; 13969 ccc*) 13970 lt_prog_compiler_wl_F77='-Wl,' 13971 # All Alpha code is PIC. 13972 lt_prog_compiler_static_F77='-non_shared' 13973 ;; 13974 *) 13975 case `$CC -V 2>&1 | sed 5q` in 13976 *Sun\ C*) 13977 # Sun C 5.9 13978 lt_prog_compiler_pic_F77='-KPIC' 13979 lt_prog_compiler_static_F77='-Bstatic' 13980 lt_prog_compiler_wl_F77='-Wl,' 13981 ;; 13982 *Sun\ F*) 13983 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13984 lt_prog_compiler_pic_F77='-KPIC' 13985 lt_prog_compiler_static_F77='-Bstatic' 13986 lt_prog_compiler_wl_F77='' 13987 ;; 13988 esac 13989 ;; 13990 esac 13991 ;; 13992 13993 osf3* | osf4* | osf5*) 13994 lt_prog_compiler_wl_F77='-Wl,' 13995 # All OSF/1 code is PIC. 13996 lt_prog_compiler_static_F77='-non_shared' 13997 ;; 13998 13999 rdos*) 14000 lt_prog_compiler_static_F77='-non_shared' 14001 ;; 14002 14003 solaris*) 14004 lt_prog_compiler_pic_F77='-KPIC' 14005 lt_prog_compiler_static_F77='-Bstatic' 14006 case $cc_basename in 14007 f77* | f90* | f95*) 14008 lt_prog_compiler_wl_F77='-Qoption ld ';; 14009 *) 14010 lt_prog_compiler_wl_F77='-Wl,';; 14011 esac 14012 ;; 14013 14014 sunos4*) 14015 lt_prog_compiler_wl_F77='-Qoption ld ' 14016 lt_prog_compiler_pic_F77='-PIC' 14017 lt_prog_compiler_static_F77='-Bstatic' 14018 ;; 14019 14020 sysv4 | sysv4.2uw2* | sysv4.3*) 14021 lt_prog_compiler_wl_F77='-Wl,' 14022 lt_prog_compiler_pic_F77='-KPIC' 14023 lt_prog_compiler_static_F77='-Bstatic' 14024 ;; 14025 14026 sysv4*MP*) 14027 if test -d /usr/nec ;then 14028 lt_prog_compiler_pic_F77='-Kconform_pic' 14029 lt_prog_compiler_static_F77='-Bstatic' 14030 fi 14031 ;; 14032 14033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14034 lt_prog_compiler_wl_F77='-Wl,' 14035 lt_prog_compiler_pic_F77='-KPIC' 14036 lt_prog_compiler_static_F77='-Bstatic' 14037 ;; 14038 14039 unicos*) 14040 lt_prog_compiler_wl_F77='-Wl,' 14041 lt_prog_compiler_can_build_shared_F77=no 14042 ;; 14043 14044 uts4*) 14045 lt_prog_compiler_pic_F77='-pic' 14046 lt_prog_compiler_static_F77='-Bstatic' 14047 ;; 14048 14049 *) 14050 lt_prog_compiler_can_build_shared_F77=no 14051 ;; 14052 esac 14053 fi 14054 14055{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14056echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14057 14058# 14059# Check to make sure the PIC flag actually works. 14060# 14061if test -n "$lt_prog_compiler_pic_F77"; then 14062 14063{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14064echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14065if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14066 echo $ECHO_N "(cached) $ECHO_C" >&6 14067else 14068 lt_prog_compiler_pic_works_F77=no 14069 ac_outfile=conftest.$ac_objext 14070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14071 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14072 # Insert the option either (1) after the last *FLAGS variable, or 14073 # (2) before a word containing "conftest.", or (3) at the end. 14074 # Note that $ac_compile itself does not contain backslashes and begins 14075 # with a dollar sign (not a hyphen), so the echo should work correctly. 14076 # The option is referenced via a variable to avoid confusing sed. 14077 lt_compile=`echo "$ac_compile" | $SED \ 14078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14080 -e 's:$: $lt_compiler_flag:'` 14081 (eval echo "\"\$as_me:14081: $lt_compile\"" >&5) 14082 (eval "$lt_compile" 2>conftest.err) 14083 ac_status=$? 14084 cat conftest.err >&5 14085 echo "$as_me:14085: \$? = $ac_status" >&5 14086 if (exit $ac_status) && test -s "$ac_outfile"; then 14087 # The compiler can only warn and ignore the option if not recognized 14088 # So say no if there are warnings other than the usual output. 14089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14092 lt_prog_compiler_pic_works_F77=yes 14093 fi 14094 fi 14095 $rm conftest* 14096 14097fi 14098{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14099echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14100 14101if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14102 case $lt_prog_compiler_pic_F77 in 14103 "" | " "*) ;; 14104 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14105 esac 14106else 14107 lt_prog_compiler_pic_F77= 14108 lt_prog_compiler_can_build_shared_F77=no 14109fi 14110 14111fi 14112case $host_os in 14113 # For platforms which do not support PIC, -DPIC is meaningless: 14114 *djgpp*) 14115 lt_prog_compiler_pic_F77= 14116 ;; 14117 *) 14118 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14119 ;; 14120esac 14121 14122# 14123# Check to make sure the static flag actually works. 14124# 14125wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14126{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14127echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14128if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14129 echo $ECHO_N "(cached) $ECHO_C" >&6 14130else 14131 lt_prog_compiler_static_works_F77=no 14132 save_LDFLAGS="$LDFLAGS" 14133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14134 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14136 # The linker can only warn and ignore the option if not recognized 14137 # So say no if there are warnings 14138 if test -s conftest.err; then 14139 # Append any errors to the config.log. 14140 cat conftest.err 1>&5 14141 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14143 if diff conftest.exp conftest.er2 >/dev/null; then 14144 lt_prog_compiler_static_works_F77=yes 14145 fi 14146 else 14147 lt_prog_compiler_static_works_F77=yes 14148 fi 14149 fi 14150 $rm conftest* 14151 LDFLAGS="$save_LDFLAGS" 14152 14153fi 14154{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14155echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14156 14157if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14158 : 14159else 14160 lt_prog_compiler_static_F77= 14161fi 14162 14163 14164{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14165echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14166if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14167 echo $ECHO_N "(cached) $ECHO_C" >&6 14168else 14169 lt_cv_prog_compiler_c_o_F77=no 14170 $rm -r conftest 2>/dev/null 14171 mkdir conftest 14172 cd conftest 14173 mkdir out 14174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14175 14176 lt_compiler_flag="-o out/conftest2.$ac_objext" 14177 # Insert the option either (1) after the last *FLAGS variable, or 14178 # (2) before a word containing "conftest.", or (3) at the end. 14179 # Note that $ac_compile itself does not contain backslashes and begins 14180 # with a dollar sign (not a hyphen), so the echo should work correctly. 14181 lt_compile=`echo "$ac_compile" | $SED \ 14182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14184 -e 's:$: $lt_compiler_flag:'` 14185 (eval echo "\"\$as_me:14185: $lt_compile\"" >&5) 14186 (eval "$lt_compile" 2>out/conftest.err) 14187 ac_status=$? 14188 cat out/conftest.err >&5 14189 echo "$as_me:14189: \$? = $ac_status" >&5 14190 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14191 then 14192 # The compiler can only warn and ignore the option if not recognized 14193 # So say no if there are warnings 14194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14197 lt_cv_prog_compiler_c_o_F77=yes 14198 fi 14199 fi 14200 chmod u+w . 2>&5 14201 $rm conftest* 14202 # SGI C++ compiler will create directory out/ii_files/ for 14203 # template instantiation 14204 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14205 $rm out/* && rmdir out 14206 cd .. 14207 rmdir conftest 14208 $rm conftest* 14209 14210fi 14211{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14212echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14213 14214 14215hard_links="nottested" 14216if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14217 # do not overwrite the value of need_locks provided by the user 14218 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14219echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14220 hard_links=yes 14221 $rm conftest* 14222 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14223 touch conftest.a 14224 ln conftest.a conftest.b 2>&5 || hard_links=no 14225 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14226 { echo "$as_me:$LINENO: result: $hard_links" >&5 14227echo "${ECHO_T}$hard_links" >&6; } 14228 if test "$hard_links" = no; then 14229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14230echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14231 need_locks=warn 14232 fi 14233else 14234 need_locks=no 14235fi 14236 14237{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14239 14240 runpath_var= 14241 allow_undefined_flag_F77= 14242 enable_shared_with_static_runtimes_F77=no 14243 archive_cmds_F77= 14244 archive_expsym_cmds_F77= 14245 old_archive_From_new_cmds_F77= 14246 old_archive_from_expsyms_cmds_F77= 14247 export_dynamic_flag_spec_F77= 14248 whole_archive_flag_spec_F77= 14249 thread_safe_flag_spec_F77= 14250 hardcode_libdir_flag_spec_F77= 14251 hardcode_libdir_flag_spec_ld_F77= 14252 hardcode_libdir_separator_F77= 14253 hardcode_direct_F77=no 14254 hardcode_minus_L_F77=no 14255 hardcode_shlibpath_var_F77=unsupported 14256 link_all_deplibs_F77=unknown 14257 hardcode_automatic_F77=no 14258 module_cmds_F77= 14259 module_expsym_cmds_F77= 14260 always_export_symbols_F77=no 14261 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14262 # include_expsyms should be a list of space-separated symbols to be *always* 14263 # included in the symbol list 14264 include_expsyms_F77= 14265 # exclude_expsyms can be an extended regexp of symbols to exclude 14266 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14268 # as well as any symbol that contains `d'. 14269 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14271 # platforms (ab)use it in PIC code, but their linkers get confused if 14272 # the symbol is explicitly referenced. Since portable code cannot 14273 # rely on this symbol name, it's probably fine to never include it in 14274 # preloaded symbol tables. 14275 extract_expsyms_cmds= 14276 # Just being paranoid about ensuring that cc_basename is set. 14277 for cc_temp in $compiler""; do 14278 case $cc_temp in 14279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14281 \-*) ;; 14282 *) break;; 14283 esac 14284done 14285cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14286 14287 case $host_os in 14288 cygwin* | mingw* | pw32*) 14289 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14290 # When not using gcc, we currently assume that we are using 14291 # Microsoft Visual C++. 14292 if test "$GCC" != yes; then 14293 with_gnu_ld=no 14294 fi 14295 ;; 14296 interix*) 14297 # we just hope/assume this is gcc and not c89 (= MSVC++) 14298 with_gnu_ld=yes 14299 ;; 14300 openbsd*) 14301 with_gnu_ld=no 14302 ;; 14303 esac 14304 14305 ld_shlibs_F77=yes 14306 if test "$with_gnu_ld" = yes; then 14307 # If archive_cmds runs LD, not CC, wlarc should be empty 14308 wlarc='${wl}' 14309 14310 # Set some defaults for GNU ld with shared library support. These 14311 # are reset later if shared libraries are not supported. Putting them 14312 # here allows them to be overridden if necessary. 14313 runpath_var=LD_RUN_PATH 14314 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14315 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14316 # ancient GNU ld didn't support --whole-archive et. al. 14317 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14318 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14319 else 14320 whole_archive_flag_spec_F77= 14321 fi 14322 supports_anon_versioning=no 14323 case `$LD -v 2>/dev/null` in 14324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14327 *\ 2.11.*) ;; # other 2.11 versions 14328 *) supports_anon_versioning=yes ;; 14329 esac 14330 14331 # See if GNU ld supports shared libraries. 14332 case $host_os in 14333 aix3* | aix4* | aix5*) 14334 # On AIX/PPC, the GNU linker is very broken 14335 if test "$host_cpu" != ia64; then 14336 ld_shlibs_F77=no 14337 cat <<EOF 1>&2 14338 14339*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14340*** to be unable to reliably create shared libraries on AIX. 14341*** Therefore, libtool is disabling shared libraries support. If you 14342*** really care for shared libraries, you may want to modify your PATH 14343*** so that a non-GNU linker is found, and then restart. 14344 14345EOF 14346 fi 14347 ;; 14348 14349 amigaos*) 14350 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)' 14351 hardcode_libdir_flag_spec_F77='-L$libdir' 14352 hardcode_minus_L_F77=yes 14353 14354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14355 # that the semantics of dynamic libraries on AmigaOS, at least up 14356 # to version 4, is to share data among multiple programs linked 14357 # with the same dynamic library. Since this doesn't match the 14358 # behavior of shared libraries on other platforms, we can't use 14359 # them. 14360 ld_shlibs_F77=no 14361 ;; 14362 14363 beos*) 14364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14365 allow_undefined_flag_F77=unsupported 14366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14367 # support --undefined. This deserves some investigation. FIXME 14368 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14369 else 14370 ld_shlibs_F77=no 14371 fi 14372 ;; 14373 14374 cygwin* | mingw* | pw32*) 14375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14376 # as there is no search path for DLLs. 14377 hardcode_libdir_flag_spec_F77='-L$libdir' 14378 allow_undefined_flag_F77=unsupported 14379 always_export_symbols_F77=no 14380 enable_shared_with_static_runtimes_F77=yes 14381 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14382 14383 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14384 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14385 # If the export-symbols file already is a .def file (1st line 14386 # is EXPORTS), use it as is; otherwise, prepend... 14387 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14388 cp $export_symbols $output_objdir/$soname.def; 14389 else 14390 echo EXPORTS > $output_objdir/$soname.def; 14391 cat $export_symbols >> $output_objdir/$soname.def; 14392 fi~ 14393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14394 else 14395 ld_shlibs_F77=no 14396 fi 14397 ;; 14398 14399 interix[3-9]*) 14400 hardcode_direct_F77=no 14401 hardcode_shlibpath_var_F77=no 14402 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14403 export_dynamic_flag_spec_F77='${wl}-E' 14404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14405 # Instead, shared libraries are loaded at an image base (0x10000000 by 14406 # default) and relocated if they conflict, which is a slow very memory 14407 # consuming and fragmenting process. To avoid this, we pick a random, 14408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14409 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14410 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' 14411 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' 14412 ;; 14413 14414 gnu* | linux* | k*bsd*-gnu) 14415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14416 tmp_addflag= 14417 case $cc_basename,$host_cpu in 14418 pgcc*) # Portland Group C compiler 14419 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' 14420 tmp_addflag=' $pic_flag' 14421 ;; 14422 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14423 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' 14424 tmp_addflag=' $pic_flag -Mnomain' ;; 14425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14426 tmp_addflag=' -i_dynamic' ;; 14427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14428 tmp_addflag=' -i_dynamic -nofor_main' ;; 14429 ifc* | ifort*) # Intel Fortran compiler 14430 tmp_addflag=' -nofor_main' ;; 14431 esac 14432 case `$CC -V 2>&1 | sed 5q` in 14433 *Sun\ C*) # Sun C 5.9 14434 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14435 tmp_sharedflag='-G' ;; 14436 *Sun\ F*) # Sun Fortran 8.3 14437 tmp_sharedflag='-G' ;; 14438 *) 14439 tmp_sharedflag='-shared' ;; 14440 esac 14441 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14442 14443 if test $supports_anon_versioning = yes; then 14444 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14446 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14447 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14448 fi 14449 else 14450 ld_shlibs_F77=no 14451 fi 14452 ;; 14453 14454 netbsd*) 14455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14456 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14457 wlarc= 14458 else 14459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14461 fi 14462 ;; 14463 14464 solaris*) 14465 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14466 ld_shlibs_F77=no 14467 cat <<EOF 1>&2 14468 14469*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14470*** create shared libraries on Solaris systems. Therefore, libtool 14471*** is disabling shared libraries support. We urge you to upgrade GNU 14472*** binutils to release 2.9.1 or newer. Another option is to modify 14473*** your PATH or compiler configuration so that the native linker is 14474*** used, and then restart. 14475 14476EOF 14477 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14480 else 14481 ld_shlibs_F77=no 14482 fi 14483 ;; 14484 14485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14486 case `$LD -v 2>&1` in 14487 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14488 ld_shlibs_F77=no 14489 cat <<_LT_EOF 1>&2 14490 14491*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14492*** reliably create shared libraries on SCO systems. Therefore, libtool 14493*** is disabling shared libraries support. We urge you to upgrade GNU 14494*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14495*** your PATH or compiler configuration so that the native linker is 14496*** used, and then restart. 14497 14498_LT_EOF 14499 ;; 14500 *) 14501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14502 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14505 else 14506 ld_shlibs_F77=no 14507 fi 14508 ;; 14509 esac 14510 ;; 14511 14512 sunos4*) 14513 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14514 wlarc= 14515 hardcode_direct_F77=yes 14516 hardcode_shlibpath_var_F77=no 14517 ;; 14518 14519 *) 14520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14523 else 14524 ld_shlibs_F77=no 14525 fi 14526 ;; 14527 esac 14528 14529 if test "$ld_shlibs_F77" = no; then 14530 runpath_var= 14531 hardcode_libdir_flag_spec_F77= 14532 export_dynamic_flag_spec_F77= 14533 whole_archive_flag_spec_F77= 14534 fi 14535 else 14536 # PORTME fill in a description of your system's linker (not GNU ld) 14537 case $host_os in 14538 aix3*) 14539 allow_undefined_flag_F77=unsupported 14540 always_export_symbols_F77=yes 14541 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' 14542 # Note: this linker hardcodes the directories in LIBPATH if there 14543 # are no directories specified by -L. 14544 hardcode_minus_L_F77=yes 14545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14546 # Neither direct hardcoding nor static linking is supported with a 14547 # broken collect2. 14548 hardcode_direct_F77=unsupported 14549 fi 14550 ;; 14551 14552 aix4* | aix5*) 14553 if test "$host_cpu" = ia64; then 14554 # On IA64, the linker does run time linking by default, so we don't 14555 # have to do anything special. 14556 aix_use_runtimelinking=no 14557 exp_sym_flag='-Bexport' 14558 no_entry_flag="" 14559 else 14560 # If we're using GNU nm, then we don't want the "-C" option. 14561 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14563 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' 14564 else 14565 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' 14566 fi 14567 aix_use_runtimelinking=no 14568 14569 # Test if we are trying to use run time linking or normal 14570 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14571 # need to do runtime linking. 14572 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14573 for ld_flag in $LDFLAGS; do 14574 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14575 aix_use_runtimelinking=yes 14576 break 14577 fi 14578 done 14579 ;; 14580 esac 14581 14582 exp_sym_flag='-bexport' 14583 no_entry_flag='-bnoentry' 14584 fi 14585 14586 # When large executables or shared objects are built, AIX ld can 14587 # have problems creating the table of contents. If linking a library 14588 # or program results in "error TOC overflow" add -mminimal-toc to 14589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14591 14592 archive_cmds_F77='' 14593 hardcode_direct_F77=yes 14594 hardcode_libdir_separator_F77=':' 14595 link_all_deplibs_F77=yes 14596 14597 if test "$GCC" = yes; then 14598 case $host_os in aix4.[012]|aix4.[012].*) 14599 # We only want to do this on AIX 4.2 and lower, the check 14600 # below for broken collect2 doesn't work under 4.3+ 14601 collect2name=`${CC} -print-prog-name=collect2` 14602 if test -f "$collect2name" && \ 14603 strings "$collect2name" | grep resolve_lib_name >/dev/null 14604 then 14605 # We have reworked collect2 14606 : 14607 else 14608 # We have old collect2 14609 hardcode_direct_F77=unsupported 14610 # It fails to find uninstalled libraries when the uninstalled 14611 # path is not listed in the libpath. Setting hardcode_minus_L 14612 # to unsupported forces relinking 14613 hardcode_minus_L_F77=yes 14614 hardcode_libdir_flag_spec_F77='-L$libdir' 14615 hardcode_libdir_separator_F77= 14616 fi 14617 ;; 14618 esac 14619 shared_flag='-shared' 14620 if test "$aix_use_runtimelinking" = yes; then 14621 shared_flag="$shared_flag "'${wl}-G' 14622 fi 14623 else 14624 # not using gcc 14625 if test "$host_cpu" = ia64; then 14626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14627 # chokes on -Wl,-G. The following line is correct: 14628 shared_flag='-G' 14629 else 14630 if test "$aix_use_runtimelinking" = yes; then 14631 shared_flag='${wl}-G' 14632 else 14633 shared_flag='${wl}-bM:SRE' 14634 fi 14635 fi 14636 fi 14637 14638 # It seems that -bexpall does not export symbols beginning with 14639 # underscore (_), so it is better to generate a list of symbols to export. 14640 always_export_symbols_F77=yes 14641 if test "$aix_use_runtimelinking" = yes; then 14642 # Warning - without using the other runtime loading flags (-brtl), 14643 # -berok will link without error, but may produce a broken library. 14644 allow_undefined_flag_F77='-berok' 14645 # Determine the default libpath from the value encoded in an empty executable. 14646 cat >conftest.$ac_ext <<_ACEOF 14647 program main 14648 14649 end 14650_ACEOF 14651rm -f conftest.$ac_objext conftest$ac_exeext 14652if { (ac_try="$ac_link" 14653case "(($ac_try" in 14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14655 *) ac_try_echo=$ac_try;; 14656esac 14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14658 (eval "$ac_link") 2>conftest.er1 14659 ac_status=$? 14660 grep -v '^ *+' conftest.er1 >conftest.err 14661 rm -f conftest.er1 14662 cat conftest.err >&5 14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14664 (exit $ac_status); } && { 14665 test -z "$ac_f77_werror_flag" || 14666 test ! -s conftest.err 14667 } && test -s conftest$ac_exeext && 14668 $as_test_x conftest$ac_exeext; then 14669 14670lt_aix_libpath_sed=' 14671 /Import File Strings/,/^$/ { 14672 /^0/ { 14673 s/^0 *\(.*\)$/\1/ 14674 p 14675 } 14676 }' 14677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14678# Check for a 64-bit object if we didn't find anything. 14679if test -z "$aix_libpath"; then 14680 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14681fi 14682else 14683 echo "$as_me: failed program was:" >&5 14684sed 's/^/| /' conftest.$ac_ext >&5 14685 14686 14687fi 14688 14689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14690 conftest$ac_exeext conftest.$ac_ext 14691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14692 14693 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14694 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" 14695 else 14696 if test "$host_cpu" = ia64; then 14697 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14698 allow_undefined_flag_F77="-z nodefs" 14699 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" 14700 else 14701 # Determine the default libpath from the value encoded in an empty executable. 14702 cat >conftest.$ac_ext <<_ACEOF 14703 program main 14704 14705 end 14706_ACEOF 14707rm -f conftest.$ac_objext conftest$ac_exeext 14708if { (ac_try="$ac_link" 14709case "(($ac_try" in 14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14711 *) ac_try_echo=$ac_try;; 14712esac 14713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14714 (eval "$ac_link") 2>conftest.er1 14715 ac_status=$? 14716 grep -v '^ *+' conftest.er1 >conftest.err 14717 rm -f conftest.er1 14718 cat conftest.err >&5 14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14720 (exit $ac_status); } && { 14721 test -z "$ac_f77_werror_flag" || 14722 test ! -s conftest.err 14723 } && test -s conftest$ac_exeext && 14724 $as_test_x conftest$ac_exeext; then 14725 14726lt_aix_libpath_sed=' 14727 /Import File Strings/,/^$/ { 14728 /^0/ { 14729 s/^0 *\(.*\)$/\1/ 14730 p 14731 } 14732 }' 14733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14734# Check for a 64-bit object if we didn't find anything. 14735if test -z "$aix_libpath"; then 14736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14737fi 14738else 14739 echo "$as_me: failed program was:" >&5 14740sed 's/^/| /' conftest.$ac_ext >&5 14741 14742 14743fi 14744 14745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14746 conftest$ac_exeext conftest.$ac_ext 14747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14748 14749 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14750 # Warning - without using the other run time loading flags, 14751 # -berok will link without error, but may produce a broken library. 14752 no_undefined_flag_F77=' ${wl}-bernotok' 14753 allow_undefined_flag_F77=' ${wl}-berok' 14754 # Exported symbols can be pulled into shared objects from archives 14755 whole_archive_flag_spec_F77='$convenience' 14756 archive_cmds_need_lc_F77=yes 14757 # This is similar to how AIX traditionally builds its shared libraries. 14758 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' 14759 fi 14760 fi 14761 ;; 14762 14763 amigaos*) 14764 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)' 14765 hardcode_libdir_flag_spec_F77='-L$libdir' 14766 hardcode_minus_L_F77=yes 14767 # see comment about different semantics on the GNU ld section 14768 ld_shlibs_F77=no 14769 ;; 14770 14771 bsdi[45]*) 14772 export_dynamic_flag_spec_F77=-rdynamic 14773 ;; 14774 14775 cygwin* | mingw* | pw32*) 14776 # When not using gcc, we currently assume that we are using 14777 # Microsoft Visual C++. 14778 # hardcode_libdir_flag_spec is actually meaningless, as there is 14779 # no search path for DLLs. 14780 hardcode_libdir_flag_spec_F77=' ' 14781 allow_undefined_flag_F77=unsupported 14782 # Tell ltmain to make .lib files, not .a files. 14783 libext=lib 14784 # Tell ltmain to make .dll files, not .so files. 14785 shrext_cmds=".dll" 14786 # FIXME: Setting linknames here is a bad hack. 14787 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14788 # The linker will automatically build a .lib file if we build a DLL. 14789 old_archive_From_new_cmds_F77='true' 14790 # FIXME: Should let the user specify the lib program. 14791 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14792 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14793 enable_shared_with_static_runtimes_F77=yes 14794 ;; 14795 14796 darwin* | rhapsody*) 14797 case $host_os in 14798 rhapsody* | darwin1.[012]) 14799 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14800 ;; 14801 *) # Darwin 1.3 on 14802 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14803 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14804 else 14805 case ${MACOSX_DEPLOYMENT_TARGET} in 14806 10.[012]) 14807 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14808 ;; 14809 10.*) 14810 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14811 ;; 14812 esac 14813 fi 14814 ;; 14815 esac 14816 archive_cmds_need_lc_F77=no 14817 hardcode_direct_F77=no 14818 hardcode_automatic_F77=yes 14819 hardcode_shlibpath_var_F77=unsupported 14820 whole_archive_flag_spec_F77='' 14821 link_all_deplibs_F77=yes 14822 if test "$GCC" = yes ; then 14823 output_verbose_link_cmd='echo' 14824 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14825 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14827 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}' 14828 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}' 14829 else 14830 case $cc_basename in 14831 xlc*) 14832 output_verbose_link_cmd='echo' 14833 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14834 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14836 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14837 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}' 14838 ;; 14839 *) 14840 ld_shlibs_F77=no 14841 ;; 14842 esac 14843 fi 14844 ;; 14845 14846 dgux*) 14847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14848 hardcode_libdir_flag_spec_F77='-L$libdir' 14849 hardcode_shlibpath_var_F77=no 14850 ;; 14851 14852 freebsd1*) 14853 ld_shlibs_F77=no 14854 ;; 14855 14856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14857 # support. Future versions do this automatically, but an explicit c++rt0.o 14858 # does not break anything, and helps significantly (at the cost of a little 14859 # extra space). 14860 freebsd2.2*) 14861 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14862 hardcode_libdir_flag_spec_F77='-R$libdir' 14863 hardcode_direct_F77=yes 14864 hardcode_shlibpath_var_F77=no 14865 ;; 14866 14867 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14868 freebsd2*) 14869 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14870 hardcode_direct_F77=yes 14871 hardcode_minus_L_F77=yes 14872 hardcode_shlibpath_var_F77=no 14873 ;; 14874 14875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14876 freebsd* | dragonfly*) 14877 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14878 hardcode_libdir_flag_spec_F77='-R$libdir' 14879 hardcode_direct_F77=yes 14880 hardcode_shlibpath_var_F77=no 14881 ;; 14882 14883 hpux9*) 14884 if test "$GCC" = yes; then 14885 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' 14886 else 14887 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' 14888 fi 14889 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14890 hardcode_libdir_separator_F77=: 14891 hardcode_direct_F77=yes 14892 14893 # hardcode_minus_L: Not really in the search PATH, 14894 # but as the default location of the library. 14895 hardcode_minus_L_F77=yes 14896 export_dynamic_flag_spec_F77='${wl}-E' 14897 ;; 14898 14899 hpux10*) 14900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14901 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14902 else 14903 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14904 fi 14905 if test "$with_gnu_ld" = no; then 14906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14907 hardcode_libdir_separator_F77=: 14908 14909 hardcode_direct_F77=yes 14910 export_dynamic_flag_spec_F77='${wl}-E' 14911 14912 # hardcode_minus_L: Not really in the search PATH, 14913 # but as the default location of the library. 14914 hardcode_minus_L_F77=yes 14915 fi 14916 ;; 14917 14918 hpux11*) 14919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14920 case $host_cpu in 14921 hppa*64*) 14922 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14923 ;; 14924 ia64*) 14925 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14926 ;; 14927 *) 14928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14929 ;; 14930 esac 14931 else 14932 case $host_cpu in 14933 hppa*64*) 14934 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14935 ;; 14936 ia64*) 14937 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14938 ;; 14939 *) 14940 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14941 ;; 14942 esac 14943 fi 14944 if test "$with_gnu_ld" = no; then 14945 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14946 hardcode_libdir_separator_F77=: 14947 14948 case $host_cpu in 14949 hppa*64*|ia64*) 14950 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14951 hardcode_direct_F77=no 14952 hardcode_shlibpath_var_F77=no 14953 ;; 14954 *) 14955 hardcode_direct_F77=yes 14956 export_dynamic_flag_spec_F77='${wl}-E' 14957 14958 # hardcode_minus_L: Not really in the search PATH, 14959 # but as the default location of the library. 14960 hardcode_minus_L_F77=yes 14961 ;; 14962 esac 14963 fi 14964 ;; 14965 14966 irix5* | irix6* | nonstopux*) 14967 if test "$GCC" = yes; then 14968 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' 14969 else 14970 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' 14971 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14972 fi 14973 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14974 hardcode_libdir_separator_F77=: 14975 link_all_deplibs_F77=yes 14976 ;; 14977 14978 netbsd*) 14979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14980 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14981 else 14982 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14983 fi 14984 hardcode_libdir_flag_spec_F77='-R$libdir' 14985 hardcode_direct_F77=yes 14986 hardcode_shlibpath_var_F77=no 14987 ;; 14988 14989 newsos6) 14990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14991 hardcode_direct_F77=yes 14992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14993 hardcode_libdir_separator_F77=: 14994 hardcode_shlibpath_var_F77=no 14995 ;; 14996 14997 openbsd*) 14998 if test -f /usr/libexec/ld.so; then 14999 hardcode_direct_F77=yes 15000 hardcode_shlibpath_var_F77=no 15001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15002 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15003 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15004 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15005 export_dynamic_flag_spec_F77='${wl}-E' 15006 else 15007 case $host_os in 15008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15009 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15010 hardcode_libdir_flag_spec_F77='-R$libdir' 15011 ;; 15012 *) 15013 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15014 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15015 ;; 15016 esac 15017 fi 15018 else 15019 ld_shlibs_F77=no 15020 fi 15021 ;; 15022 15023 os2*) 15024 hardcode_libdir_flag_spec_F77='-L$libdir' 15025 hardcode_minus_L_F77=yes 15026 allow_undefined_flag_F77=unsupported 15027 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' 15028 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15029 ;; 15030 15031 osf3*) 15032 if test "$GCC" = yes; then 15033 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15034 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' 15035 else 15036 allow_undefined_flag_F77=' -expect_unresolved \*' 15037 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' 15038 fi 15039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15040 hardcode_libdir_separator_F77=: 15041 ;; 15042 15043 osf4* | osf5*) # as osf3* with the addition of -msym flag 15044 if test "$GCC" = yes; then 15045 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15046 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' 15047 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15048 else 15049 allow_undefined_flag_F77=' -expect_unresolved \*' 15050 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' 15051 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~ 15052 $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' 15053 15054 # Both c and cxx compiler support -rpath directly 15055 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15056 fi 15057 hardcode_libdir_separator_F77=: 15058 ;; 15059 15060 solaris*) 15061 no_undefined_flag_F77=' -z text' 15062 if test "$GCC" = yes; then 15063 wlarc='${wl}' 15064 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15065 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15066 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15067 else 15068 wlarc='' 15069 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15070 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15072 fi 15073 hardcode_libdir_flag_spec_F77='-R$libdir' 15074 hardcode_shlibpath_var_F77=no 15075 case $host_os in 15076 solaris2.[0-5] | solaris2.[0-5].*) ;; 15077 *) 15078 # The compiler driver will combine and reorder linker options, 15079 # but understands `-z linker_flag'. GCC discards it without `$wl', 15080 # but is careful enough not to reorder. 15081 # Supported since Solaris 2.6 (maybe 2.5.1?) 15082 if test "$GCC" = yes; then 15083 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15084 else 15085 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15086 fi 15087 ;; 15088 esac 15089 link_all_deplibs_F77=yes 15090 ;; 15091 15092 sunos4*) 15093 if test "x$host_vendor" = xsequent; then 15094 # Use $CC to link under sequent, because it throws in some extra .o 15095 # files that make .init and .fini sections work. 15096 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15097 else 15098 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15099 fi 15100 hardcode_libdir_flag_spec_F77='-L$libdir' 15101 hardcode_direct_F77=yes 15102 hardcode_minus_L_F77=yes 15103 hardcode_shlibpath_var_F77=no 15104 ;; 15105 15106 sysv4) 15107 case $host_vendor in 15108 sni) 15109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15110 hardcode_direct_F77=yes # is this really true??? 15111 ;; 15112 siemens) 15113 ## LD is ld it makes a PLAMLIB 15114 ## CC just makes a GrossModule. 15115 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15116 reload_cmds_F77='$CC -r -o $output$reload_objs' 15117 hardcode_direct_F77=no 15118 ;; 15119 motorola) 15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15121 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15122 ;; 15123 esac 15124 runpath_var='LD_RUN_PATH' 15125 hardcode_shlibpath_var_F77=no 15126 ;; 15127 15128 sysv4.3*) 15129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15130 hardcode_shlibpath_var_F77=no 15131 export_dynamic_flag_spec_F77='-Bexport' 15132 ;; 15133 15134 sysv4*MP*) 15135 if test -d /usr/nec; then 15136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15137 hardcode_shlibpath_var_F77=no 15138 runpath_var=LD_RUN_PATH 15139 hardcode_runpath_var=yes 15140 ld_shlibs_F77=yes 15141 fi 15142 ;; 15143 15144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15145 no_undefined_flag_F77='${wl}-z,text' 15146 archive_cmds_need_lc_F77=no 15147 hardcode_shlibpath_var_F77=no 15148 runpath_var='LD_RUN_PATH' 15149 15150 if test "$GCC" = yes; then 15151 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15152 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15153 else 15154 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15155 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15156 fi 15157 ;; 15158 15159 sysv5* | sco3.2v5* | sco5v6*) 15160 # Note: We can NOT use -z defs as we might desire, because we do not 15161 # link with -lc, and that would cause any symbols used from libc to 15162 # always be unresolved, which means just about no library would 15163 # ever link correctly. If we're not using GNU ld we use -z text 15164 # though, which does catch some bad symbols but isn't as heavy-handed 15165 # as -z defs. 15166 no_undefined_flag_F77='${wl}-z,text' 15167 allow_undefined_flag_F77='${wl}-z,nodefs' 15168 archive_cmds_need_lc_F77=no 15169 hardcode_shlibpath_var_F77=no 15170 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15171 hardcode_libdir_separator_F77=':' 15172 link_all_deplibs_F77=yes 15173 export_dynamic_flag_spec_F77='${wl}-Bexport' 15174 runpath_var='LD_RUN_PATH' 15175 15176 if test "$GCC" = yes; then 15177 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15178 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15179 else 15180 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15181 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15182 fi 15183 ;; 15184 15185 uts4*) 15186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15187 hardcode_libdir_flag_spec_F77='-L$libdir' 15188 hardcode_shlibpath_var_F77=no 15189 ;; 15190 15191 *) 15192 ld_shlibs_F77=no 15193 ;; 15194 esac 15195 fi 15196 15197{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15198echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15199test "$ld_shlibs_F77" = no && can_build_shared=no 15200 15201# 15202# Do we need to explicitly link libc? 15203# 15204case "x$archive_cmds_need_lc_F77" in 15205x|xyes) 15206 # Assume -lc should be added 15207 archive_cmds_need_lc_F77=yes 15208 15209 if test "$enable_shared" = yes && test "$GCC" = yes; then 15210 case $archive_cmds_F77 in 15211 *'~'*) 15212 # FIXME: we may have to deal with multi-command sequences. 15213 ;; 15214 '$CC '*) 15215 # Test whether the compiler implicitly links with -lc since on some 15216 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15217 # to ld, don't add -lc before -lgcc. 15218 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15219echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15220 $rm conftest* 15221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15222 15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15224 (eval $ac_compile) 2>&5 15225 ac_status=$? 15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15227 (exit $ac_status); } 2>conftest.err; then 15228 soname=conftest 15229 lib=conftest 15230 libobjs=conftest.$ac_objext 15231 deplibs= 15232 wl=$lt_prog_compiler_wl_F77 15233 pic_flag=$lt_prog_compiler_pic_F77 15234 compiler_flags=-v 15235 linker_flags=-v 15236 verstring= 15237 output_objdir=. 15238 libname=conftest 15239 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15240 allow_undefined_flag_F77= 15241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15242 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15243 ac_status=$? 15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15245 (exit $ac_status); } 15246 then 15247 archive_cmds_need_lc_F77=no 15248 else 15249 archive_cmds_need_lc_F77=yes 15250 fi 15251 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15252 else 15253 cat conftest.err 1>&5 15254 fi 15255 $rm conftest* 15256 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15257echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15258 ;; 15259 esac 15260 fi 15261 ;; 15262esac 15263 15264{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15265echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15266library_names_spec= 15267libname_spec='lib$name' 15268soname_spec= 15269shrext_cmds=".so" 15270postinstall_cmds= 15271postuninstall_cmds= 15272finish_cmds= 15273finish_eval= 15274shlibpath_var= 15275shlibpath_overrides_runpath=unknown 15276version_type=none 15277dynamic_linker="$host_os ld.so" 15278sys_lib_dlsearch_path_spec="/lib /usr/lib" 15279 15280need_lib_prefix=unknown 15281hardcode_into_libs=no 15282 15283# when you set need_version to no, make sure it does not cause -set_version 15284# flags to be left without arguments 15285need_version=unknown 15286 15287case $host_os in 15288aix3*) 15289 version_type=linux 15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15291 shlibpath_var=LIBPATH 15292 15293 # AIX 3 has no versioning support, so we append a major version to the name. 15294 soname_spec='${libname}${release}${shared_ext}$major' 15295 ;; 15296 15297aix4* | aix5*) 15298 version_type=linux 15299 need_lib_prefix=no 15300 need_version=no 15301 hardcode_into_libs=yes 15302 if test "$host_cpu" = ia64; then 15303 # AIX 5 supports IA64 15304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15305 shlibpath_var=LD_LIBRARY_PATH 15306 else 15307 # With GCC up to 2.95.x, collect2 would create an import file 15308 # for dependence libraries. The import file would start with 15309 # the line `#! .'. This would cause the generated library to 15310 # depend on `.', always an invalid library. This was fixed in 15311 # development snapshots of GCC prior to 3.0. 15312 case $host_os in 15313 aix4 | aix4.[01] | aix4.[01].*) 15314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15315 echo ' yes ' 15316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15317 : 15318 else 15319 can_build_shared=no 15320 fi 15321 ;; 15322 esac 15323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15324 # soname into executable. Probably we can add versioning support to 15325 # collect2, so additional links can be useful in future. 15326 if test "$aix_use_runtimelinking" = yes; then 15327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15328 # instead of lib<name>.a to let people know that these are not 15329 # typical AIX shared libraries. 15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15331 else 15332 # We preserve .a as extension for shared libraries through AIX4.2 15333 # and later when we are not doing run time linking. 15334 library_names_spec='${libname}${release}.a $libname.a' 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 fi 15337 shlibpath_var=LIBPATH 15338 fi 15339 ;; 15340 15341amigaos*) 15342 library_names_spec='$libname.ixlibrary $libname.a' 15343 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15344 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' 15345 ;; 15346 15347beos*) 15348 library_names_spec='${libname}${shared_ext}' 15349 dynamic_linker="$host_os ld.so" 15350 shlibpath_var=LIBRARY_PATH 15351 ;; 15352 15353bsdi[45]*) 15354 version_type=linux 15355 need_version=no 15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15357 soname_spec='${libname}${release}${shared_ext}$major' 15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15359 shlibpath_var=LD_LIBRARY_PATH 15360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15362 # the default ld.so.conf also contains /usr/contrib/lib and 15363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15364 # libtool to hard-code these into programs 15365 ;; 15366 15367cygwin* | mingw* | pw32*) 15368 version_type=windows 15369 shrext_cmds=".dll" 15370 need_version=no 15371 need_lib_prefix=no 15372 15373 case $GCC,$host_os in 15374 yes,cygwin* | yes,mingw* | yes,pw32*) 15375 library_names_spec='$libname.dll.a' 15376 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15377 postinstall_cmds='base_file=`basename \${file}`~ 15378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15379 dldir=$destdir/`dirname \$dlpath`~ 15380 test -d \$dldir || mkdir -p \$dldir~ 15381 $install_prog $dir/$dlname \$dldir/$dlname~ 15382 chmod a+x \$dldir/$dlname' 15383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15384 dlpath=$dir/\$dldll~ 15385 $rm \$dlpath' 15386 shlibpath_overrides_runpath=yes 15387 15388 case $host_os in 15389 cygwin*) 15390 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15393 ;; 15394 mingw*) 15395 # MinGW DLLs use traditional 'lib' prefix 15396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15399 # It is most probably a Windows format PATH printed by 15400 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15401 # path with ; separators, and with drive letters. We can handle the 15402 # drive letters (cygwin fileutils understands them), so leave them, 15403 # especially as we might pass files found there to a mingw objdump, 15404 # which wouldn't understand a cygwinified path. Ahh. 15405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15406 else 15407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15408 fi 15409 ;; 15410 pw32*) 15411 # pw32 DLLs use 'pw' prefix rather than 'lib' 15412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15413 ;; 15414 esac 15415 ;; 15416 15417 *) 15418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15419 ;; 15420 esac 15421 dynamic_linker='Win32 ld.exe' 15422 # FIXME: first we should search . and the directory the executable is in 15423 shlibpath_var=PATH 15424 ;; 15425 15426darwin* | rhapsody*) 15427 dynamic_linker="$host_os dyld" 15428 version_type=darwin 15429 need_lib_prefix=no 15430 need_version=no 15431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15432 soname_spec='${libname}${release}${major}$shared_ext' 15433 shlibpath_overrides_runpath=yes 15434 shlibpath_var=DYLD_LIBRARY_PATH 15435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15436 15437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15438 ;; 15439 15440dgux*) 15441 version_type=linux 15442 need_lib_prefix=no 15443 need_version=no 15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15445 soname_spec='${libname}${release}${shared_ext}$major' 15446 shlibpath_var=LD_LIBRARY_PATH 15447 ;; 15448 15449freebsd1*) 15450 dynamic_linker=no 15451 ;; 15452 15453freebsd* | dragonfly*) 15454 # DragonFly does not have aout. When/if they implement a new 15455 # versioning mechanism, adjust this. 15456 if test -x /usr/bin/objformat; then 15457 objformat=`/usr/bin/objformat` 15458 else 15459 case $host_os in 15460 freebsd[123]*) objformat=aout ;; 15461 *) objformat=elf ;; 15462 esac 15463 fi 15464 version_type=freebsd-$objformat 15465 case $version_type in 15466 freebsd-elf*) 15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15468 need_version=no 15469 need_lib_prefix=no 15470 ;; 15471 freebsd-*) 15472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15473 need_version=yes 15474 ;; 15475 esac 15476 shlibpath_var=LD_LIBRARY_PATH 15477 case $host_os in 15478 freebsd2*) 15479 shlibpath_overrides_runpath=yes 15480 ;; 15481 freebsd3.[01]* | freebsdelf3.[01]*) 15482 shlibpath_overrides_runpath=yes 15483 hardcode_into_libs=yes 15484 ;; 15485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15487 shlibpath_overrides_runpath=no 15488 hardcode_into_libs=yes 15489 ;; 15490 *) # from 4.6 on, and DragonFly 15491 shlibpath_overrides_runpath=yes 15492 hardcode_into_libs=yes 15493 ;; 15494 esac 15495 ;; 15496 15497gnu*) 15498 version_type=linux 15499 need_lib_prefix=no 15500 need_version=no 15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15502 soname_spec='${libname}${release}${shared_ext}$major' 15503 shlibpath_var=LD_LIBRARY_PATH 15504 hardcode_into_libs=yes 15505 ;; 15506 15507hpux9* | hpux10* | hpux11*) 15508 # Give a soname corresponding to the major version so that dld.sl refuses to 15509 # link against other versions. 15510 version_type=sunos 15511 need_lib_prefix=no 15512 need_version=no 15513 case $host_cpu in 15514 ia64*) 15515 shrext_cmds='.so' 15516 hardcode_into_libs=yes 15517 dynamic_linker="$host_os dld.so" 15518 shlibpath_var=LD_LIBRARY_PATH 15519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 if test "X$HPUX_IA64_MODE" = X32; then 15523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15524 else 15525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15526 fi 15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15528 ;; 15529 hppa*64*) 15530 shrext_cmds='.sl' 15531 hardcode_into_libs=yes 15532 dynamic_linker="$host_os dld.sl" 15533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15536 soname_spec='${libname}${release}${shared_ext}$major' 15537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15539 ;; 15540 *) 15541 shrext_cmds='.sl' 15542 dynamic_linker="$host_os dld.sl" 15543 shlibpath_var=SHLIB_PATH 15544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15546 soname_spec='${libname}${release}${shared_ext}$major' 15547 ;; 15548 esac 15549 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15550 postinstall_cmds='chmod 555 $lib' 15551 ;; 15552 15553interix[3-9]*) 15554 version_type=linux 15555 need_lib_prefix=no 15556 need_version=no 15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15558 soname_spec='${libname}${release}${shared_ext}$major' 15559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15560 shlibpath_var=LD_LIBRARY_PATH 15561 shlibpath_overrides_runpath=no 15562 hardcode_into_libs=yes 15563 ;; 15564 15565irix5* | irix6* | nonstopux*) 15566 case $host_os in 15567 nonstopux*) version_type=nonstopux ;; 15568 *) 15569 if test "$lt_cv_prog_gnu_ld" = yes; then 15570 version_type=linux 15571 else 15572 version_type=irix 15573 fi ;; 15574 esac 15575 need_lib_prefix=no 15576 need_version=no 15577 soname_spec='${libname}${release}${shared_ext}$major' 15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15579 case $host_os in 15580 irix5* | nonstopux*) 15581 libsuff= shlibsuff= 15582 ;; 15583 *) 15584 case $LD in # libtool.m4 will add one of these switches to LD 15585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15586 libsuff= shlibsuff= libmagic=32-bit;; 15587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15588 libsuff=32 shlibsuff=N32 libmagic=N32;; 15589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15590 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15591 *) libsuff= shlibsuff= libmagic=never-match;; 15592 esac 15593 ;; 15594 esac 15595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15596 shlibpath_overrides_runpath=no 15597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15599 hardcode_into_libs=yes 15600 ;; 15601 15602# No shared lib support for Linux oldld, aout, or coff. 15603linux*oldld* | linux*aout* | linux*coff*) 15604 dynamic_linker=no 15605 ;; 15606 15607# This must be Linux ELF. 15608linux* | k*bsd*-gnu) 15609 version_type=linux 15610 need_lib_prefix=no 15611 need_version=no 15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15613 soname_spec='${libname}${release}${shared_ext}$major' 15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 shlibpath_overrides_runpath=no 15617 # This implies no fast_install, which is unacceptable. 15618 # Some rework will be needed to allow for fast_install 15619 # before this can be enabled. 15620 hardcode_into_libs=yes 15621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15623 15624 # Append ld.so.conf contents to the search path 15625 if test -f /etc/ld.so.conf; then 15626 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15627 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15628 fi 15629 15630 # We used to test for /lib/ld.so.1 and disable shared libraries on 15631 # powerpc, because MkLinux only supported shared libraries with the 15632 # GNU dynamic linker. Since this was broken with cross compilers, 15633 # most powerpc-linux boxes support dynamic linking these days and 15634 # people can always --disable-shared, the test was removed, and we 15635 # assume the GNU/Linux dynamic linker is in use. 15636 dynamic_linker='GNU/Linux ld.so' 15637 ;; 15638 15639netbsd*) 15640 version_type=sunos 15641 need_lib_prefix=no 15642 need_version=no 15643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15646 dynamic_linker='NetBSD (a.out) ld.so' 15647 else 15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15649 soname_spec='${libname}${release}${shared_ext}$major' 15650 dynamic_linker='NetBSD ld.elf_so' 15651 fi 15652 shlibpath_var=LD_LIBRARY_PATH 15653 shlibpath_overrides_runpath=yes 15654 hardcode_into_libs=yes 15655 ;; 15656 15657newsos6) 15658 version_type=linux 15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15660 shlibpath_var=LD_LIBRARY_PATH 15661 shlibpath_overrides_runpath=yes 15662 ;; 15663 15664nto-qnx*) 15665 version_type=linux 15666 need_lib_prefix=no 15667 need_version=no 15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15669 soname_spec='${libname}${release}${shared_ext}$major' 15670 shlibpath_var=LD_LIBRARY_PATH 15671 shlibpath_overrides_runpath=yes 15672 ;; 15673 15674openbsd*) 15675 version_type=sunos 15676 sys_lib_dlsearch_path_spec="/usr/lib" 15677 need_lib_prefix=no 15678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15679 case $host_os in 15680 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15681 *) need_version=no ;; 15682 esac 15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15685 shlibpath_var=LD_LIBRARY_PATH 15686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15687 case $host_os in 15688 openbsd2.[89] | openbsd2.[89].*) 15689 shlibpath_overrides_runpath=no 15690 ;; 15691 *) 15692 shlibpath_overrides_runpath=yes 15693 ;; 15694 esac 15695 else 15696 shlibpath_overrides_runpath=yes 15697 fi 15698 ;; 15699 15700os2*) 15701 libname_spec='$name' 15702 shrext_cmds=".dll" 15703 need_lib_prefix=no 15704 library_names_spec='$libname${shared_ext} $libname.a' 15705 dynamic_linker='OS/2 ld.exe' 15706 shlibpath_var=LIBPATH 15707 ;; 15708 15709osf3* | osf4* | osf5*) 15710 version_type=osf 15711 need_lib_prefix=no 15712 need_version=no 15713 soname_spec='${libname}${release}${shared_ext}$major' 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15715 shlibpath_var=LD_LIBRARY_PATH 15716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15718 ;; 15719 15720rdos*) 15721 dynamic_linker=no 15722 ;; 15723 15724solaris*) 15725 version_type=linux 15726 need_lib_prefix=no 15727 need_version=no 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 shlibpath_overrides_runpath=yes 15732 hardcode_into_libs=yes 15733 # ldd complains unless libraries are executable 15734 postinstall_cmds='chmod +x $lib' 15735 ;; 15736 15737sunos4*) 15738 version_type=sunos 15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15741 shlibpath_var=LD_LIBRARY_PATH 15742 shlibpath_overrides_runpath=yes 15743 if test "$with_gnu_ld" = yes; then 15744 need_lib_prefix=no 15745 fi 15746 need_version=yes 15747 ;; 15748 15749sysv4 | sysv4.3*) 15750 version_type=linux 15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15752 soname_spec='${libname}${release}${shared_ext}$major' 15753 shlibpath_var=LD_LIBRARY_PATH 15754 case $host_vendor in 15755 sni) 15756 shlibpath_overrides_runpath=no 15757 need_lib_prefix=no 15758 export_dynamic_flag_spec='${wl}-Blargedynsym' 15759 runpath_var=LD_RUN_PATH 15760 ;; 15761 siemens) 15762 need_lib_prefix=no 15763 ;; 15764 motorola) 15765 need_lib_prefix=no 15766 need_version=no 15767 shlibpath_overrides_runpath=no 15768 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15769 ;; 15770 esac 15771 ;; 15772 15773sysv4*MP*) 15774 if test -d /usr/nec ;then 15775 version_type=linux 15776 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15777 soname_spec='$libname${shared_ext}.$major' 15778 shlibpath_var=LD_LIBRARY_PATH 15779 fi 15780 ;; 15781 15782sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15783 version_type=freebsd-elf 15784 need_lib_prefix=no 15785 need_version=no 15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15787 soname_spec='${libname}${release}${shared_ext}$major' 15788 shlibpath_var=LD_LIBRARY_PATH 15789 hardcode_into_libs=yes 15790 if test "$with_gnu_ld" = yes; then 15791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15792 shlibpath_overrides_runpath=no 15793 else 15794 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15795 shlibpath_overrides_runpath=yes 15796 case $host_os in 15797 sco3.2v5*) 15798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15799 ;; 15800 esac 15801 fi 15802 sys_lib_dlsearch_path_spec='/usr/lib' 15803 ;; 15804 15805uts4*) 15806 version_type=linux 15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15808 soname_spec='${libname}${release}${shared_ext}$major' 15809 shlibpath_var=LD_LIBRARY_PATH 15810 ;; 15811 15812*) 15813 dynamic_linker=no 15814 ;; 15815esac 15816{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15817echo "${ECHO_T}$dynamic_linker" >&6; } 15818test "$dynamic_linker" = no && can_build_shared=no 15819 15820variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15821if test "$GCC" = yes; then 15822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15823fi 15824 15825{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15826echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15827hardcode_action_F77= 15828if test -n "$hardcode_libdir_flag_spec_F77" || \ 15829 test -n "$runpath_var_F77" || \ 15830 test "X$hardcode_automatic_F77" = "Xyes" ; then 15831 15832 # We can hardcode non-existant directories. 15833 if test "$hardcode_direct_F77" != no && 15834 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15835 # have to relink, otherwise we might link with an installed library 15836 # when we should be linking with a yet-to-be-installed one 15837 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15838 test "$hardcode_minus_L_F77" != no; then 15839 # Linking always hardcodes the temporary library directory. 15840 hardcode_action_F77=relink 15841 else 15842 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15843 hardcode_action_F77=immediate 15844 fi 15845else 15846 # We cannot hardcode anything, or else we can only hardcode existing 15847 # directories. 15848 hardcode_action_F77=unsupported 15849fi 15850{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15851echo "${ECHO_T}$hardcode_action_F77" >&6; } 15852 15853if test "$hardcode_action_F77" = relink; then 15854 # Fast installation is not supported 15855 enable_fast_install=no 15856elif test "$shlibpath_overrides_runpath" = yes || 15857 test "$enable_shared" = no; then 15858 # Fast installation is not necessary 15859 enable_fast_install=needless 15860fi 15861 15862 15863# The else clause should only fire when bootstrapping the 15864# libtool distribution, otherwise you forgot to ship ltmain.sh 15865# with your package, and you will get complaints that there are 15866# no rules to generate ltmain.sh. 15867if test -f "$ltmain"; then 15868 # See if we are running on zsh, and set the options which allow our commands through 15869 # without removal of \ escapes. 15870 if test -n "${ZSH_VERSION+set}" ; then 15871 setopt NO_GLOB_SUBST 15872 fi 15873 # Now quote all the things that may contain metacharacters while being 15874 # careful not to overquote the AC_SUBSTed values. We take copies of the 15875 # variables and quote the copies for generation of the libtool script. 15876 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15877 SED SHELL STRIP \ 15878 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15879 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15880 deplibs_check_method reload_flag reload_cmds need_locks \ 15881 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15882 lt_cv_sys_global_symbol_to_c_name_address \ 15883 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15884 old_postinstall_cmds old_postuninstall_cmds \ 15885 compiler_F77 \ 15886 CC_F77 \ 15887 LD_F77 \ 15888 lt_prog_compiler_wl_F77 \ 15889 lt_prog_compiler_pic_F77 \ 15890 lt_prog_compiler_static_F77 \ 15891 lt_prog_compiler_no_builtin_flag_F77 \ 15892 export_dynamic_flag_spec_F77 \ 15893 thread_safe_flag_spec_F77 \ 15894 whole_archive_flag_spec_F77 \ 15895 enable_shared_with_static_runtimes_F77 \ 15896 old_archive_cmds_F77 \ 15897 old_archive_from_new_cmds_F77 \ 15898 predep_objects_F77 \ 15899 postdep_objects_F77 \ 15900 predeps_F77 \ 15901 postdeps_F77 \ 15902 compiler_lib_search_path_F77 \ 15903 archive_cmds_F77 \ 15904 archive_expsym_cmds_F77 \ 15905 postinstall_cmds_F77 \ 15906 postuninstall_cmds_F77 \ 15907 old_archive_from_expsyms_cmds_F77 \ 15908 allow_undefined_flag_F77 \ 15909 no_undefined_flag_F77 \ 15910 export_symbols_cmds_F77 \ 15911 hardcode_libdir_flag_spec_F77 \ 15912 hardcode_libdir_flag_spec_ld_F77 \ 15913 hardcode_libdir_separator_F77 \ 15914 hardcode_automatic_F77 \ 15915 module_cmds_F77 \ 15916 module_expsym_cmds_F77 \ 15917 lt_cv_prog_compiler_c_o_F77 \ 15918 fix_srcfile_path_F77 \ 15919 exclude_expsyms_F77 \ 15920 include_expsyms_F77; do 15921 15922 case $var in 15923 old_archive_cmds_F77 | \ 15924 old_archive_from_new_cmds_F77 | \ 15925 archive_cmds_F77 | \ 15926 archive_expsym_cmds_F77 | \ 15927 module_cmds_F77 | \ 15928 module_expsym_cmds_F77 | \ 15929 old_archive_from_expsyms_cmds_F77 | \ 15930 export_symbols_cmds_F77 | \ 15931 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15932 postinstall_cmds | postuninstall_cmds | \ 15933 old_postinstall_cmds | old_postuninstall_cmds | \ 15934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15935 # Double-quote double-evaled strings. 15936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15937 ;; 15938 *) 15939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15940 ;; 15941 esac 15942 done 15943 15944 case $lt_echo in 15945 *'\$0 --fallback-echo"') 15946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15947 ;; 15948 esac 15949 15950cfgfile="$ofile" 15951 15952 cat <<__EOF__ >> "$cfgfile" 15953# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15954 15955# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15956 15957# Shell to use when invoking shell scripts. 15958SHELL=$lt_SHELL 15959 15960# Whether or not to build shared libraries. 15961build_libtool_libs=$enable_shared 15962 15963# Whether or not to build static libraries. 15964build_old_libs=$enable_static 15965 15966# Whether or not to add -lc for building shared libraries. 15967build_libtool_need_lc=$archive_cmds_need_lc_F77 15968 15969# Whether or not to disallow shared libs when runtime libs are static 15970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15971 15972# Whether or not to optimize for fast installation. 15973fast_install=$enable_fast_install 15974 15975# The host system. 15976host_alias=$host_alias 15977host=$host 15978host_os=$host_os 15979 15980# The build system. 15981build_alias=$build_alias 15982build=$build 15983build_os=$build_os 15984 15985# An echo program that does not interpret backslashes. 15986echo=$lt_echo 15987 15988# The archiver. 15989AR=$lt_AR 15990AR_FLAGS=$lt_AR_FLAGS 15991 15992# A C compiler. 15993LTCC=$lt_LTCC 15994 15995# LTCC compiler flags. 15996LTCFLAGS=$lt_LTCFLAGS 15997 15998# A language-specific compiler. 15999CC=$lt_compiler_F77 16000 16001# Is the compiler the GNU C compiler? 16002with_gcc=$GCC_F77 16003 16004# An ERE matcher. 16005EGREP=$lt_EGREP 16006 16007# The linker used to build libraries. 16008LD=$lt_LD_F77 16009 16010# Whether we need hard or soft links. 16011LN_S=$lt_LN_S 16012 16013# A BSD-compatible nm program. 16014NM=$lt_NM 16015 16016# A symbol stripping program 16017STRIP=$lt_STRIP 16018 16019# Used to examine libraries when file_magic_cmd begins "file" 16020MAGIC_CMD=$MAGIC_CMD 16021 16022# Used on cygwin: DLL creation program. 16023DLLTOOL="$DLLTOOL" 16024 16025# Used on cygwin: object dumper. 16026OBJDUMP="$OBJDUMP" 16027 16028# Used on cygwin: assembler. 16029AS="$AS" 16030 16031# The name of the directory that contains temporary libtool files. 16032objdir=$objdir 16033 16034# How to create reloadable object files. 16035reload_flag=$lt_reload_flag 16036reload_cmds=$lt_reload_cmds 16037 16038# How to pass a linker flag through the compiler. 16039wl=$lt_lt_prog_compiler_wl_F77 16040 16041# Object file suffix (normally "o"). 16042objext="$ac_objext" 16043 16044# Old archive suffix (normally "a"). 16045libext="$libext" 16046 16047# Shared library suffix (normally ".so"). 16048shrext_cmds='$shrext_cmds' 16049 16050# Executable file suffix (normally ""). 16051exeext="$exeext" 16052 16053# Additional compiler flags for building library objects. 16054pic_flag=$lt_lt_prog_compiler_pic_F77 16055pic_mode=$pic_mode 16056 16057# What is the maximum length of a command? 16058max_cmd_len=$lt_cv_sys_max_cmd_len 16059 16060# Does compiler simultaneously support -c and -o options? 16061compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16062 16063# Must we lock files when doing compilation? 16064need_locks=$lt_need_locks 16065 16066# Do we need the lib prefix for modules? 16067need_lib_prefix=$need_lib_prefix 16068 16069# Do we need a version for libraries? 16070need_version=$need_version 16071 16072# Whether dlopen is supported. 16073dlopen_support=$enable_dlopen 16074 16075# Whether dlopen of programs is supported. 16076dlopen_self=$enable_dlopen_self 16077 16078# Whether dlopen of statically linked programs is supported. 16079dlopen_self_static=$enable_dlopen_self_static 16080 16081# Compiler flag to prevent dynamic linking. 16082link_static_flag=$lt_lt_prog_compiler_static_F77 16083 16084# Compiler flag to turn off builtin functions. 16085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16086 16087# Compiler flag to allow reflexive dlopens. 16088export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16089 16090# Compiler flag to generate shared objects directly from archives. 16091whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16092 16093# Compiler flag to generate thread-safe objects. 16094thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16095 16096# Library versioning type. 16097version_type=$version_type 16098 16099# Format of library name prefix. 16100libname_spec=$lt_libname_spec 16101 16102# List of archive names. First name is the real one, the rest are links. 16103# The last name is the one that the linker finds with -lNAME. 16104library_names_spec=$lt_library_names_spec 16105 16106# The coded name of the library, if different from the real name. 16107soname_spec=$lt_soname_spec 16108 16109# Commands used to build and install an old-style archive. 16110RANLIB=$lt_RANLIB 16111old_archive_cmds=$lt_old_archive_cmds_F77 16112old_postinstall_cmds=$lt_old_postinstall_cmds 16113old_postuninstall_cmds=$lt_old_postuninstall_cmds 16114 16115# Create an old-style archive from a shared archive. 16116old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16117 16118# Create a temporary old-style archive to link instead of a shared archive. 16119old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16120 16121# Commands used to build and install a shared archive. 16122archive_cmds=$lt_archive_cmds_F77 16123archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16124postinstall_cmds=$lt_postinstall_cmds 16125postuninstall_cmds=$lt_postuninstall_cmds 16126 16127# Commands used to build a loadable module (assumed same as above if empty) 16128module_cmds=$lt_module_cmds_F77 16129module_expsym_cmds=$lt_module_expsym_cmds_F77 16130 16131# Commands to strip libraries. 16132old_striplib=$lt_old_striplib 16133striplib=$lt_striplib 16134 16135# Dependencies to place before the objects being linked to create a 16136# shared library. 16137predep_objects=$lt_predep_objects_F77 16138 16139# Dependencies to place after the objects being linked to create a 16140# shared library. 16141postdep_objects=$lt_postdep_objects_F77 16142 16143# Dependencies to place before the objects being linked to create a 16144# shared library. 16145predeps=$lt_predeps_F77 16146 16147# Dependencies to place after the objects being linked to create a 16148# shared library. 16149postdeps=$lt_postdeps_F77 16150 16151# The library search path used internally by the compiler when linking 16152# a shared library. 16153compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16154 16155# Method to check whether dependent libraries are shared objects. 16156deplibs_check_method=$lt_deplibs_check_method 16157 16158# Command to use when deplibs_check_method == file_magic. 16159file_magic_cmd=$lt_file_magic_cmd 16160 16161# Flag that allows shared libraries with undefined symbols to be built. 16162allow_undefined_flag=$lt_allow_undefined_flag_F77 16163 16164# Flag that forces no undefined symbols. 16165no_undefined_flag=$lt_no_undefined_flag_F77 16166 16167# Commands used to finish a libtool library installation in a directory. 16168finish_cmds=$lt_finish_cmds 16169 16170# Same as above, but a single script fragment to be evaled but not shown. 16171finish_eval=$lt_finish_eval 16172 16173# Take the output of nm and produce a listing of raw symbols and C names. 16174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16175 16176# Transform the output of nm in a proper C declaration 16177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16178 16179# Transform the output of nm in a C name address pair 16180global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16181 16182# This is the shared library runtime path variable. 16183runpath_var=$runpath_var 16184 16185# This is the shared library path variable. 16186shlibpath_var=$shlibpath_var 16187 16188# Is shlibpath searched before the hard-coded library search path? 16189shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16190 16191# How to hardcode a shared library path into an executable. 16192hardcode_action=$hardcode_action_F77 16193 16194# Whether we should hardcode library paths into libraries. 16195hardcode_into_libs=$hardcode_into_libs 16196 16197# Flag to hardcode \$libdir into a binary during linking. 16198# This must work even if \$libdir does not exist. 16199hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16200 16201# If ld is used when linking, flag to hardcode \$libdir into 16202# a binary during linking. This must work even if \$libdir does 16203# not exist. 16204hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16205 16206# Whether we need a single -rpath flag with a separated argument. 16207hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16208 16209# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16210# resulting binary. 16211hardcode_direct=$hardcode_direct_F77 16212 16213# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16214# resulting binary. 16215hardcode_minus_L=$hardcode_minus_L_F77 16216 16217# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16218# the resulting binary. 16219hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16220 16221# Set to yes if building a shared library automatically hardcodes DIR into the library 16222# and all subsequent libraries and executables linked against it. 16223hardcode_automatic=$hardcode_automatic_F77 16224 16225# Variables whose values should be saved in libtool wrapper scripts and 16226# restored at relink time. 16227variables_saved_for_relink="$variables_saved_for_relink" 16228 16229# Whether libtool must link a program against all its dependency libraries. 16230link_all_deplibs=$link_all_deplibs_F77 16231 16232# Compile-time system search path for libraries 16233sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16234 16235# Run-time system search path for libraries 16236sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16237 16238# Fix the shell variable \$srcfile for the compiler. 16239fix_srcfile_path=$lt_fix_srcfile_path 16240 16241# Set to yes if exported symbols are required. 16242always_export_symbols=$always_export_symbols_F77 16243 16244# The commands to list exported symbols. 16245export_symbols_cmds=$lt_export_symbols_cmds_F77 16246 16247# The commands to extract the exported symbol list from a shared archive. 16248extract_expsyms_cmds=$lt_extract_expsyms_cmds 16249 16250# Symbols that should not be listed in the preloaded symbols. 16251exclude_expsyms=$lt_exclude_expsyms_F77 16252 16253# Symbols that must always be exported. 16254include_expsyms=$lt_include_expsyms_F77 16255 16256# ### END LIBTOOL TAG CONFIG: $tagname 16257 16258__EOF__ 16259 16260 16261else 16262 # If there is no Makefile yet, we rely on a make rule to execute 16263 # `config.status --recheck' to rerun these tests and create the 16264 # libtool script then. 16265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16266 if test -f "$ltmain_in"; then 16267 test -f Makefile && make "$ltmain" 16268 fi 16269fi 16270 16271 16272ac_ext=c 16273ac_cpp='$CPP $CPPFLAGS' 16274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16276ac_compiler_gnu=$ac_cv_c_compiler_gnu 16277 16278CC="$lt_save_CC" 16279 16280 else 16281 tagname="" 16282 fi 16283 ;; 16284 16285 GCJ) 16286 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16287 16288 16289# Source file extension for Java test sources. 16290ac_ext=java 16291 16292# Object file extension for compiled Java test sources. 16293objext=o 16294objext_GCJ=$objext 16295 16296# Code to be used in simple compile tests 16297lt_simple_compile_test_code="class foo {}" 16298 16299# Code to be used in simple link tests 16300lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16301 16302# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16303 16304# If no C compiler was specified, use CC. 16305LTCC=${LTCC-"$CC"} 16306 16307# If no C compiler flags were specified, use CFLAGS. 16308LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16309 16310# Allow CC to be a program name with arguments. 16311compiler=$CC 16312 16313 16314# save warnings/boilerplate of simple test code 16315ac_outfile=conftest.$ac_objext 16316echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16317eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16318_lt_compiler_boilerplate=`cat conftest.err` 16319$rm conftest* 16320 16321ac_outfile=conftest.$ac_objext 16322echo "$lt_simple_link_test_code" >conftest.$ac_ext 16323eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16324_lt_linker_boilerplate=`cat conftest.err` 16325$rm conftest* 16326 16327 16328# Allow CC to be a program name with arguments. 16329lt_save_CC="$CC" 16330CC=${GCJ-"gcj"} 16331compiler=$CC 16332compiler_GCJ=$CC 16333for cc_temp in $compiler""; do 16334 case $cc_temp in 16335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16337 \-*) ;; 16338 *) break;; 16339 esac 16340done 16341cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16342 16343 16344# GCJ did not exist at the time GCC didn't implicitly link libc in. 16345archive_cmds_need_lc_GCJ=no 16346 16347old_archive_cmds_GCJ=$old_archive_cmds 16348 16349 16350lt_prog_compiler_no_builtin_flag_GCJ= 16351 16352if test "$GCC" = yes; then 16353 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16354 16355 16356{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16357echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16358if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16359 echo $ECHO_N "(cached) $ECHO_C" >&6 16360else 16361 lt_cv_prog_compiler_rtti_exceptions=no 16362 ac_outfile=conftest.$ac_objext 16363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16364 lt_compiler_flag="-fno-rtti -fno-exceptions" 16365 # Insert the option either (1) after the last *FLAGS variable, or 16366 # (2) before a word containing "conftest.", or (3) at the end. 16367 # Note that $ac_compile itself does not contain backslashes and begins 16368 # with a dollar sign (not a hyphen), so the echo should work correctly. 16369 # The option is referenced via a variable to avoid confusing sed. 16370 lt_compile=`echo "$ac_compile" | $SED \ 16371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16373 -e 's:$: $lt_compiler_flag:'` 16374 (eval echo "\"\$as_me:16374: $lt_compile\"" >&5) 16375 (eval "$lt_compile" 2>conftest.err) 16376 ac_status=$? 16377 cat conftest.err >&5 16378 echo "$as_me:16378: \$? = $ac_status" >&5 16379 if (exit $ac_status) && test -s "$ac_outfile"; then 16380 # The compiler can only warn and ignore the option if not recognized 16381 # So say no if there are warnings other than the usual output. 16382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16385 lt_cv_prog_compiler_rtti_exceptions=yes 16386 fi 16387 fi 16388 $rm conftest* 16389 16390fi 16391{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16392echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16393 16394if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16395 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16396else 16397 : 16398fi 16399 16400fi 16401 16402lt_prog_compiler_wl_GCJ= 16403lt_prog_compiler_pic_GCJ= 16404lt_prog_compiler_static_GCJ= 16405 16406{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16407echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16408 16409 if test "$GCC" = yes; then 16410 lt_prog_compiler_wl_GCJ='-Wl,' 16411 lt_prog_compiler_static_GCJ='-static' 16412 16413 case $host_os in 16414 aix*) 16415 # All AIX code is PIC. 16416 if test "$host_cpu" = ia64; then 16417 # AIX 5 now supports IA64 processor 16418 lt_prog_compiler_static_GCJ='-Bstatic' 16419 fi 16420 ;; 16421 16422 amigaos*) 16423 # FIXME: we need at least 68020 code to build shared libraries, but 16424 # adding the `-m68020' flag to GCC prevents building anything better, 16425 # like `-m68040'. 16426 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16427 ;; 16428 16429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16430 # PIC is the default for these OSes. 16431 ;; 16432 16433 mingw* | cygwin* | pw32* | os2*) 16434 # This hack is so that the source file can tell whether it is being 16435 # built for inclusion in a dll (and should export symbols for example). 16436 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16437 # (--disable-auto-import) libraries 16438 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16439 ;; 16440 16441 darwin* | rhapsody*) 16442 # PIC is the default on this platform 16443 # Common symbols not allowed in MH_DYLIB files 16444 lt_prog_compiler_pic_GCJ='-fno-common' 16445 ;; 16446 16447 interix[3-9]*) 16448 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16449 # Instead, we relocate shared libraries at runtime. 16450 ;; 16451 16452 msdosdjgpp*) 16453 # Just because we use GCC doesn't mean we suddenly get shared libraries 16454 # on systems that don't support them. 16455 lt_prog_compiler_can_build_shared_GCJ=no 16456 enable_shared=no 16457 ;; 16458 16459 sysv4*MP*) 16460 if test -d /usr/nec; then 16461 lt_prog_compiler_pic_GCJ=-Kconform_pic 16462 fi 16463 ;; 16464 16465 hpux*) 16466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16467 # not for PA HP-UX. 16468 case $host_cpu in 16469 hppa*64*|ia64*) 16470 # +Z the default 16471 ;; 16472 *) 16473 lt_prog_compiler_pic_GCJ='-fPIC' 16474 ;; 16475 esac 16476 ;; 16477 16478 *) 16479 lt_prog_compiler_pic_GCJ='-fPIC' 16480 ;; 16481 esac 16482 else 16483 # PORTME Check for flag to pass linker flags through the system compiler. 16484 case $host_os in 16485 aix*) 16486 lt_prog_compiler_wl_GCJ='-Wl,' 16487 if test "$host_cpu" = ia64; then 16488 # AIX 5 now supports IA64 processor 16489 lt_prog_compiler_static_GCJ='-Bstatic' 16490 else 16491 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16492 fi 16493 ;; 16494 darwin*) 16495 # PIC is the default on this platform 16496 # Common symbols not allowed in MH_DYLIB files 16497 case $cc_basename in 16498 xlc*) 16499 lt_prog_compiler_pic_GCJ='-qnocommon' 16500 lt_prog_compiler_wl_GCJ='-Wl,' 16501 ;; 16502 esac 16503 ;; 16504 16505 mingw* | cygwin* | pw32* | os2*) 16506 # This hack is so that the source file can tell whether it is being 16507 # built for inclusion in a dll (and should export symbols for example). 16508 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16509 ;; 16510 16511 hpux9* | hpux10* | hpux11*) 16512 lt_prog_compiler_wl_GCJ='-Wl,' 16513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16514 # not for PA HP-UX. 16515 case $host_cpu in 16516 hppa*64*|ia64*) 16517 # +Z the default 16518 ;; 16519 *) 16520 lt_prog_compiler_pic_GCJ='+Z' 16521 ;; 16522 esac 16523 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16524 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16525 ;; 16526 16527 irix5* | irix6* | nonstopux*) 16528 lt_prog_compiler_wl_GCJ='-Wl,' 16529 # PIC (with -KPIC) is the default. 16530 lt_prog_compiler_static_GCJ='-non_shared' 16531 ;; 16532 16533 newsos6) 16534 lt_prog_compiler_pic_GCJ='-KPIC' 16535 lt_prog_compiler_static_GCJ='-Bstatic' 16536 ;; 16537 16538 linux* | k*bsd*-gnu) 16539 case $cc_basename in 16540 icc* | ecc*) 16541 lt_prog_compiler_wl_GCJ='-Wl,' 16542 lt_prog_compiler_pic_GCJ='-KPIC' 16543 lt_prog_compiler_static_GCJ='-static' 16544 ;; 16545 pgcc* | pgf77* | pgf90* | pgf95*) 16546 # Portland Group compilers (*not* the Pentium gcc compiler, 16547 # which looks to be a dead project) 16548 lt_prog_compiler_wl_GCJ='-Wl,' 16549 lt_prog_compiler_pic_GCJ='-fpic' 16550 lt_prog_compiler_static_GCJ='-Bstatic' 16551 ;; 16552 ccc*) 16553 lt_prog_compiler_wl_GCJ='-Wl,' 16554 # All Alpha code is PIC. 16555 lt_prog_compiler_static_GCJ='-non_shared' 16556 ;; 16557 *) 16558 case `$CC -V 2>&1 | sed 5q` in 16559 *Sun\ C*) 16560 # Sun C 5.9 16561 lt_prog_compiler_pic_GCJ='-KPIC' 16562 lt_prog_compiler_static_GCJ='-Bstatic' 16563 lt_prog_compiler_wl_GCJ='-Wl,' 16564 ;; 16565 *Sun\ F*) 16566 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16567 lt_prog_compiler_pic_GCJ='-KPIC' 16568 lt_prog_compiler_static_GCJ='-Bstatic' 16569 lt_prog_compiler_wl_GCJ='' 16570 ;; 16571 esac 16572 ;; 16573 esac 16574 ;; 16575 16576 osf3* | osf4* | osf5*) 16577 lt_prog_compiler_wl_GCJ='-Wl,' 16578 # All OSF/1 code is PIC. 16579 lt_prog_compiler_static_GCJ='-non_shared' 16580 ;; 16581 16582 rdos*) 16583 lt_prog_compiler_static_GCJ='-non_shared' 16584 ;; 16585 16586 solaris*) 16587 lt_prog_compiler_pic_GCJ='-KPIC' 16588 lt_prog_compiler_static_GCJ='-Bstatic' 16589 case $cc_basename in 16590 f77* | f90* | f95*) 16591 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16592 *) 16593 lt_prog_compiler_wl_GCJ='-Wl,';; 16594 esac 16595 ;; 16596 16597 sunos4*) 16598 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16599 lt_prog_compiler_pic_GCJ='-PIC' 16600 lt_prog_compiler_static_GCJ='-Bstatic' 16601 ;; 16602 16603 sysv4 | sysv4.2uw2* | sysv4.3*) 16604 lt_prog_compiler_wl_GCJ='-Wl,' 16605 lt_prog_compiler_pic_GCJ='-KPIC' 16606 lt_prog_compiler_static_GCJ='-Bstatic' 16607 ;; 16608 16609 sysv4*MP*) 16610 if test -d /usr/nec ;then 16611 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16612 lt_prog_compiler_static_GCJ='-Bstatic' 16613 fi 16614 ;; 16615 16616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16617 lt_prog_compiler_wl_GCJ='-Wl,' 16618 lt_prog_compiler_pic_GCJ='-KPIC' 16619 lt_prog_compiler_static_GCJ='-Bstatic' 16620 ;; 16621 16622 unicos*) 16623 lt_prog_compiler_wl_GCJ='-Wl,' 16624 lt_prog_compiler_can_build_shared_GCJ=no 16625 ;; 16626 16627 uts4*) 16628 lt_prog_compiler_pic_GCJ='-pic' 16629 lt_prog_compiler_static_GCJ='-Bstatic' 16630 ;; 16631 16632 *) 16633 lt_prog_compiler_can_build_shared_GCJ=no 16634 ;; 16635 esac 16636 fi 16637 16638{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16639echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16640 16641# 16642# Check to make sure the PIC flag actually works. 16643# 16644if test -n "$lt_prog_compiler_pic_GCJ"; then 16645 16646{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16647echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16648if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16649 echo $ECHO_N "(cached) $ECHO_C" >&6 16650else 16651 lt_prog_compiler_pic_works_GCJ=no 16652 ac_outfile=conftest.$ac_objext 16653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16654 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16655 # Insert the option either (1) after the last *FLAGS variable, or 16656 # (2) before a word containing "conftest.", or (3) at the end. 16657 # Note that $ac_compile itself does not contain backslashes and begins 16658 # with a dollar sign (not a hyphen), so the echo should work correctly. 16659 # The option is referenced via a variable to avoid confusing sed. 16660 lt_compile=`echo "$ac_compile" | $SED \ 16661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16663 -e 's:$: $lt_compiler_flag:'` 16664 (eval echo "\"\$as_me:16664: $lt_compile\"" >&5) 16665 (eval "$lt_compile" 2>conftest.err) 16666 ac_status=$? 16667 cat conftest.err >&5 16668 echo "$as_me:16668: \$? = $ac_status" >&5 16669 if (exit $ac_status) && test -s "$ac_outfile"; then 16670 # The compiler can only warn and ignore the option if not recognized 16671 # So say no if there are warnings other than the usual output. 16672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16675 lt_prog_compiler_pic_works_GCJ=yes 16676 fi 16677 fi 16678 $rm conftest* 16679 16680fi 16681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16682echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16683 16684if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16685 case $lt_prog_compiler_pic_GCJ in 16686 "" | " "*) ;; 16687 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16688 esac 16689else 16690 lt_prog_compiler_pic_GCJ= 16691 lt_prog_compiler_can_build_shared_GCJ=no 16692fi 16693 16694fi 16695case $host_os in 16696 # For platforms which do not support PIC, -DPIC is meaningless: 16697 *djgpp*) 16698 lt_prog_compiler_pic_GCJ= 16699 ;; 16700 *) 16701 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16702 ;; 16703esac 16704 16705# 16706# Check to make sure the static flag actually works. 16707# 16708wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16709{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16710echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16711if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16712 echo $ECHO_N "(cached) $ECHO_C" >&6 16713else 16714 lt_prog_compiler_static_works_GCJ=no 16715 save_LDFLAGS="$LDFLAGS" 16716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16717 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16719 # The linker can only warn and ignore the option if not recognized 16720 # So say no if there are warnings 16721 if test -s conftest.err; then 16722 # Append any errors to the config.log. 16723 cat conftest.err 1>&5 16724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16726 if diff conftest.exp conftest.er2 >/dev/null; then 16727 lt_prog_compiler_static_works_GCJ=yes 16728 fi 16729 else 16730 lt_prog_compiler_static_works_GCJ=yes 16731 fi 16732 fi 16733 $rm conftest* 16734 LDFLAGS="$save_LDFLAGS" 16735 16736fi 16737{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16738echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16739 16740if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16741 : 16742else 16743 lt_prog_compiler_static_GCJ= 16744fi 16745 16746 16747{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16748echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16749if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16750 echo $ECHO_N "(cached) $ECHO_C" >&6 16751else 16752 lt_cv_prog_compiler_c_o_GCJ=no 16753 $rm -r conftest 2>/dev/null 16754 mkdir conftest 16755 cd conftest 16756 mkdir out 16757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16758 16759 lt_compiler_flag="-o out/conftest2.$ac_objext" 16760 # Insert the option either (1) after the last *FLAGS variable, or 16761 # (2) before a word containing "conftest.", or (3) at the end. 16762 # Note that $ac_compile itself does not contain backslashes and begins 16763 # with a dollar sign (not a hyphen), so the echo should work correctly. 16764 lt_compile=`echo "$ac_compile" | $SED \ 16765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16767 -e 's:$: $lt_compiler_flag:'` 16768 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5) 16769 (eval "$lt_compile" 2>out/conftest.err) 16770 ac_status=$? 16771 cat out/conftest.err >&5 16772 echo "$as_me:16772: \$? = $ac_status" >&5 16773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16774 then 16775 # The compiler can only warn and ignore the option if not recognized 16776 # So say no if there are warnings 16777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16780 lt_cv_prog_compiler_c_o_GCJ=yes 16781 fi 16782 fi 16783 chmod u+w . 2>&5 16784 $rm conftest* 16785 # SGI C++ compiler will create directory out/ii_files/ for 16786 # template instantiation 16787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16788 $rm out/* && rmdir out 16789 cd .. 16790 rmdir conftest 16791 $rm conftest* 16792 16793fi 16794{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16795echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16796 16797 16798hard_links="nottested" 16799if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16800 # do not overwrite the value of need_locks provided by the user 16801 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16802echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16803 hard_links=yes 16804 $rm conftest* 16805 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16806 touch conftest.a 16807 ln conftest.a conftest.b 2>&5 || hard_links=no 16808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16809 { echo "$as_me:$LINENO: result: $hard_links" >&5 16810echo "${ECHO_T}$hard_links" >&6; } 16811 if test "$hard_links" = no; then 16812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16813echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16814 need_locks=warn 16815 fi 16816else 16817 need_locks=no 16818fi 16819 16820{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16821echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16822 16823 runpath_var= 16824 allow_undefined_flag_GCJ= 16825 enable_shared_with_static_runtimes_GCJ=no 16826 archive_cmds_GCJ= 16827 archive_expsym_cmds_GCJ= 16828 old_archive_From_new_cmds_GCJ= 16829 old_archive_from_expsyms_cmds_GCJ= 16830 export_dynamic_flag_spec_GCJ= 16831 whole_archive_flag_spec_GCJ= 16832 thread_safe_flag_spec_GCJ= 16833 hardcode_libdir_flag_spec_GCJ= 16834 hardcode_libdir_flag_spec_ld_GCJ= 16835 hardcode_libdir_separator_GCJ= 16836 hardcode_direct_GCJ=no 16837 hardcode_minus_L_GCJ=no 16838 hardcode_shlibpath_var_GCJ=unsupported 16839 link_all_deplibs_GCJ=unknown 16840 hardcode_automatic_GCJ=no 16841 module_cmds_GCJ= 16842 module_expsym_cmds_GCJ= 16843 always_export_symbols_GCJ=no 16844 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16845 # include_expsyms should be a list of space-separated symbols to be *always* 16846 # included in the symbol list 16847 include_expsyms_GCJ= 16848 # exclude_expsyms can be an extended regexp of symbols to exclude 16849 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16851 # as well as any symbol that contains `d'. 16852 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16854 # platforms (ab)use it in PIC code, but their linkers get confused if 16855 # the symbol is explicitly referenced. Since portable code cannot 16856 # rely on this symbol name, it's probably fine to never include it in 16857 # preloaded symbol tables. 16858 extract_expsyms_cmds= 16859 # Just being paranoid about ensuring that cc_basename is set. 16860 for cc_temp in $compiler""; do 16861 case $cc_temp in 16862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16864 \-*) ;; 16865 *) break;; 16866 esac 16867done 16868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16869 16870 case $host_os in 16871 cygwin* | mingw* | pw32*) 16872 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16873 # When not using gcc, we currently assume that we are using 16874 # Microsoft Visual C++. 16875 if test "$GCC" != yes; then 16876 with_gnu_ld=no 16877 fi 16878 ;; 16879 interix*) 16880 # we just hope/assume this is gcc and not c89 (= MSVC++) 16881 with_gnu_ld=yes 16882 ;; 16883 openbsd*) 16884 with_gnu_ld=no 16885 ;; 16886 esac 16887 16888 ld_shlibs_GCJ=yes 16889 if test "$with_gnu_ld" = yes; then 16890 # If archive_cmds runs LD, not CC, wlarc should be empty 16891 wlarc='${wl}' 16892 16893 # Set some defaults for GNU ld with shared library support. These 16894 # are reset later if shared libraries are not supported. Putting them 16895 # here allows them to be overridden if necessary. 16896 runpath_var=LD_RUN_PATH 16897 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16898 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16899 # ancient GNU ld didn't support --whole-archive et. al. 16900 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16901 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16902 else 16903 whole_archive_flag_spec_GCJ= 16904 fi 16905 supports_anon_versioning=no 16906 case `$LD -v 2>/dev/null` in 16907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16910 *\ 2.11.*) ;; # other 2.11 versions 16911 *) supports_anon_versioning=yes ;; 16912 esac 16913 16914 # See if GNU ld supports shared libraries. 16915 case $host_os in 16916 aix3* | aix4* | aix5*) 16917 # On AIX/PPC, the GNU linker is very broken 16918 if test "$host_cpu" != ia64; then 16919 ld_shlibs_GCJ=no 16920 cat <<EOF 1>&2 16921 16922*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16923*** to be unable to reliably create shared libraries on AIX. 16924*** Therefore, libtool is disabling shared libraries support. If you 16925*** really care for shared libraries, you may want to modify your PATH 16926*** so that a non-GNU linker is found, and then restart. 16927 16928EOF 16929 fi 16930 ;; 16931 16932 amigaos*) 16933 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)' 16934 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16935 hardcode_minus_L_GCJ=yes 16936 16937 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16938 # that the semantics of dynamic libraries on AmigaOS, at least up 16939 # to version 4, is to share data among multiple programs linked 16940 # with the same dynamic library. Since this doesn't match the 16941 # behavior of shared libraries on other platforms, we can't use 16942 # them. 16943 ld_shlibs_GCJ=no 16944 ;; 16945 16946 beos*) 16947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16948 allow_undefined_flag_GCJ=unsupported 16949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16950 # support --undefined. This deserves some investigation. FIXME 16951 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16952 else 16953 ld_shlibs_GCJ=no 16954 fi 16955 ;; 16956 16957 cygwin* | mingw* | pw32*) 16958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16959 # as there is no search path for DLLs. 16960 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16961 allow_undefined_flag_GCJ=unsupported 16962 always_export_symbols_GCJ=no 16963 enable_shared_with_static_runtimes_GCJ=yes 16964 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16965 16966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16967 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16968 # If the export-symbols file already is a .def file (1st line 16969 # is EXPORTS), use it as is; otherwise, prepend... 16970 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16971 cp $export_symbols $output_objdir/$soname.def; 16972 else 16973 echo EXPORTS > $output_objdir/$soname.def; 16974 cat $export_symbols >> $output_objdir/$soname.def; 16975 fi~ 16976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16977 else 16978 ld_shlibs_GCJ=no 16979 fi 16980 ;; 16981 16982 interix[3-9]*) 16983 hardcode_direct_GCJ=no 16984 hardcode_shlibpath_var_GCJ=no 16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16986 export_dynamic_flag_spec_GCJ='${wl}-E' 16987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16988 # Instead, shared libraries are loaded at an image base (0x10000000 by 16989 # default) and relocated if they conflict, which is a slow very memory 16990 # consuming and fragmenting process. To avoid this, we pick a random, 16991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16992 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16993 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' 16994 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' 16995 ;; 16996 16997 gnu* | linux* | k*bsd*-gnu) 16998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16999 tmp_addflag= 17000 case $cc_basename,$host_cpu in 17001 pgcc*) # Portland Group C compiler 17002 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' 17003 tmp_addflag=' $pic_flag' 17004 ;; 17005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17006 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' 17007 tmp_addflag=' $pic_flag -Mnomain' ;; 17008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17009 tmp_addflag=' -i_dynamic' ;; 17010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17011 tmp_addflag=' -i_dynamic -nofor_main' ;; 17012 ifc* | ifort*) # Intel Fortran compiler 17013 tmp_addflag=' -nofor_main' ;; 17014 esac 17015 case `$CC -V 2>&1 | sed 5q` in 17016 *Sun\ C*) # Sun C 5.9 17017 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17018 tmp_sharedflag='-G' ;; 17019 *Sun\ F*) # Sun Fortran 8.3 17020 tmp_sharedflag='-G' ;; 17021 *) 17022 tmp_sharedflag='-shared' ;; 17023 esac 17024 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17025 17026 if test $supports_anon_versioning = yes; then 17027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17029 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17030 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17031 fi 17032 else 17033 ld_shlibs_GCJ=no 17034 fi 17035 ;; 17036 17037 netbsd*) 17038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17039 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17040 wlarc= 17041 else 17042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17044 fi 17045 ;; 17046 17047 solaris*) 17048 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17049 ld_shlibs_GCJ=no 17050 cat <<EOF 1>&2 17051 17052*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17053*** create shared libraries on Solaris systems. Therefore, libtool 17054*** is disabling shared libraries support. We urge you to upgrade GNU 17055*** binutils to release 2.9.1 or newer. Another option is to modify 17056*** your PATH or compiler configuration so that the native linker is 17057*** used, and then restart. 17058 17059EOF 17060 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17061 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17062 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17063 else 17064 ld_shlibs_GCJ=no 17065 fi 17066 ;; 17067 17068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17069 case `$LD -v 2>&1` in 17070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17071 ld_shlibs_GCJ=no 17072 cat <<_LT_EOF 1>&2 17073 17074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17075*** reliably create shared libraries on SCO systems. Therefore, libtool 17076*** is disabling shared libraries support. We urge you to upgrade GNU 17077*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17078*** your PATH or compiler configuration so that the native linker is 17079*** used, and then restart. 17080 17081_LT_EOF 17082 ;; 17083 *) 17084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17085 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17087 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17088 else 17089 ld_shlibs_GCJ=no 17090 fi 17091 ;; 17092 esac 17093 ;; 17094 17095 sunos4*) 17096 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17097 wlarc= 17098 hardcode_direct_GCJ=yes 17099 hardcode_shlibpath_var_GCJ=no 17100 ;; 17101 17102 *) 17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17106 else 17107 ld_shlibs_GCJ=no 17108 fi 17109 ;; 17110 esac 17111 17112 if test "$ld_shlibs_GCJ" = no; then 17113 runpath_var= 17114 hardcode_libdir_flag_spec_GCJ= 17115 export_dynamic_flag_spec_GCJ= 17116 whole_archive_flag_spec_GCJ= 17117 fi 17118 else 17119 # PORTME fill in a description of your system's linker (not GNU ld) 17120 case $host_os in 17121 aix3*) 17122 allow_undefined_flag_GCJ=unsupported 17123 always_export_symbols_GCJ=yes 17124 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' 17125 # Note: this linker hardcodes the directories in LIBPATH if there 17126 # are no directories specified by -L. 17127 hardcode_minus_L_GCJ=yes 17128 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17129 # Neither direct hardcoding nor static linking is supported with a 17130 # broken collect2. 17131 hardcode_direct_GCJ=unsupported 17132 fi 17133 ;; 17134 17135 aix4* | aix5*) 17136 if test "$host_cpu" = ia64; then 17137 # On IA64, the linker does run time linking by default, so we don't 17138 # have to do anything special. 17139 aix_use_runtimelinking=no 17140 exp_sym_flag='-Bexport' 17141 no_entry_flag="" 17142 else 17143 # If we're using GNU nm, then we don't want the "-C" option. 17144 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17145 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17146 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' 17147 else 17148 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' 17149 fi 17150 aix_use_runtimelinking=no 17151 17152 # Test if we are trying to use run time linking or normal 17153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17154 # need to do runtime linking. 17155 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17156 for ld_flag in $LDFLAGS; do 17157 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17158 aix_use_runtimelinking=yes 17159 break 17160 fi 17161 done 17162 ;; 17163 esac 17164 17165 exp_sym_flag='-bexport' 17166 no_entry_flag='-bnoentry' 17167 fi 17168 17169 # When large executables or shared objects are built, AIX ld can 17170 # have problems creating the table of contents. If linking a library 17171 # or program results in "error TOC overflow" add -mminimal-toc to 17172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17174 17175 archive_cmds_GCJ='' 17176 hardcode_direct_GCJ=yes 17177 hardcode_libdir_separator_GCJ=':' 17178 link_all_deplibs_GCJ=yes 17179 17180 if test "$GCC" = yes; then 17181 case $host_os in aix4.[012]|aix4.[012].*) 17182 # We only want to do this on AIX 4.2 and lower, the check 17183 # below for broken collect2 doesn't work under 4.3+ 17184 collect2name=`${CC} -print-prog-name=collect2` 17185 if test -f "$collect2name" && \ 17186 strings "$collect2name" | grep resolve_lib_name >/dev/null 17187 then 17188 # We have reworked collect2 17189 : 17190 else 17191 # We have old collect2 17192 hardcode_direct_GCJ=unsupported 17193 # It fails to find uninstalled libraries when the uninstalled 17194 # path is not listed in the libpath. Setting hardcode_minus_L 17195 # to unsupported forces relinking 17196 hardcode_minus_L_GCJ=yes 17197 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17198 hardcode_libdir_separator_GCJ= 17199 fi 17200 ;; 17201 esac 17202 shared_flag='-shared' 17203 if test "$aix_use_runtimelinking" = yes; then 17204 shared_flag="$shared_flag "'${wl}-G' 17205 fi 17206 else 17207 # not using gcc 17208 if test "$host_cpu" = ia64; then 17209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17210 # chokes on -Wl,-G. The following line is correct: 17211 shared_flag='-G' 17212 else 17213 if test "$aix_use_runtimelinking" = yes; then 17214 shared_flag='${wl}-G' 17215 else 17216 shared_flag='${wl}-bM:SRE' 17217 fi 17218 fi 17219 fi 17220 17221 # It seems that -bexpall does not export symbols beginning with 17222 # underscore (_), so it is better to generate a list of symbols to export. 17223 always_export_symbols_GCJ=yes 17224 if test "$aix_use_runtimelinking" = yes; then 17225 # Warning - without using the other runtime loading flags (-brtl), 17226 # -berok will link without error, but may produce a broken library. 17227 allow_undefined_flag_GCJ='-berok' 17228 # Determine the default libpath from the value encoded in an empty executable. 17229 cat >conftest.$ac_ext <<_ACEOF 17230/* confdefs.h. */ 17231_ACEOF 17232cat confdefs.h >>conftest.$ac_ext 17233cat >>conftest.$ac_ext <<_ACEOF 17234/* end confdefs.h. */ 17235 17236int 17237main () 17238{ 17239 17240 ; 17241 return 0; 17242} 17243_ACEOF 17244rm -f conftest.$ac_objext conftest$ac_exeext 17245if { (ac_try="$ac_link" 17246case "(($ac_try" in 17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17248 *) ac_try_echo=$ac_try;; 17249esac 17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17251 (eval "$ac_link") 2>conftest.er1 17252 ac_status=$? 17253 grep -v '^ *+' conftest.er1 >conftest.err 17254 rm -f conftest.er1 17255 cat conftest.err >&5 17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17257 (exit $ac_status); } && { 17258 test -z "$ac_c_werror_flag" || 17259 test ! -s conftest.err 17260 } && test -s conftest$ac_exeext && 17261 $as_test_x conftest$ac_exeext; then 17262 17263lt_aix_libpath_sed=' 17264 /Import File Strings/,/^$/ { 17265 /^0/ { 17266 s/^0 *\(.*\)$/\1/ 17267 p 17268 } 17269 }' 17270aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17271# Check for a 64-bit object if we didn't find anything. 17272if test -z "$aix_libpath"; then 17273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17274fi 17275else 17276 echo "$as_me: failed program was:" >&5 17277sed 's/^/| /' conftest.$ac_ext >&5 17278 17279 17280fi 17281 17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17283 conftest$ac_exeext conftest.$ac_ext 17284if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17285 17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17287 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" 17288 else 17289 if test "$host_cpu" = ia64; then 17290 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17291 allow_undefined_flag_GCJ="-z nodefs" 17292 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" 17293 else 17294 # Determine the default libpath from the value encoded in an empty executable. 17295 cat >conftest.$ac_ext <<_ACEOF 17296/* confdefs.h. */ 17297_ACEOF 17298cat confdefs.h >>conftest.$ac_ext 17299cat >>conftest.$ac_ext <<_ACEOF 17300/* end confdefs.h. */ 17301 17302int 17303main () 17304{ 17305 17306 ; 17307 return 0; 17308} 17309_ACEOF 17310rm -f conftest.$ac_objext conftest$ac_exeext 17311if { (ac_try="$ac_link" 17312case "(($ac_try" in 17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17314 *) ac_try_echo=$ac_try;; 17315esac 17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17317 (eval "$ac_link") 2>conftest.er1 17318 ac_status=$? 17319 grep -v '^ *+' conftest.er1 >conftest.err 17320 rm -f conftest.er1 17321 cat conftest.err >&5 17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17323 (exit $ac_status); } && { 17324 test -z "$ac_c_werror_flag" || 17325 test ! -s conftest.err 17326 } && test -s conftest$ac_exeext && 17327 $as_test_x conftest$ac_exeext; then 17328 17329lt_aix_libpath_sed=' 17330 /Import File Strings/,/^$/ { 17331 /^0/ { 17332 s/^0 *\(.*\)$/\1/ 17333 p 17334 } 17335 }' 17336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17337# Check for a 64-bit object if we didn't find anything. 17338if test -z "$aix_libpath"; then 17339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17340fi 17341else 17342 echo "$as_me: failed program was:" >&5 17343sed 's/^/| /' conftest.$ac_ext >&5 17344 17345 17346fi 17347 17348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17349 conftest$ac_exeext conftest.$ac_ext 17350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17351 17352 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17353 # Warning - without using the other run time loading flags, 17354 # -berok will link without error, but may produce a broken library. 17355 no_undefined_flag_GCJ=' ${wl}-bernotok' 17356 allow_undefined_flag_GCJ=' ${wl}-berok' 17357 # Exported symbols can be pulled into shared objects from archives 17358 whole_archive_flag_spec_GCJ='$convenience' 17359 archive_cmds_need_lc_GCJ=yes 17360 # This is similar to how AIX traditionally builds its shared libraries. 17361 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' 17362 fi 17363 fi 17364 ;; 17365 17366 amigaos*) 17367 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)' 17368 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17369 hardcode_minus_L_GCJ=yes 17370 # see comment about different semantics on the GNU ld section 17371 ld_shlibs_GCJ=no 17372 ;; 17373 17374 bsdi[45]*) 17375 export_dynamic_flag_spec_GCJ=-rdynamic 17376 ;; 17377 17378 cygwin* | mingw* | pw32*) 17379 # When not using gcc, we currently assume that we are using 17380 # Microsoft Visual C++. 17381 # hardcode_libdir_flag_spec is actually meaningless, as there is 17382 # no search path for DLLs. 17383 hardcode_libdir_flag_spec_GCJ=' ' 17384 allow_undefined_flag_GCJ=unsupported 17385 # Tell ltmain to make .lib files, not .a files. 17386 libext=lib 17387 # Tell ltmain to make .dll files, not .so files. 17388 shrext_cmds=".dll" 17389 # FIXME: Setting linknames here is a bad hack. 17390 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17391 # The linker will automatically build a .lib file if we build a DLL. 17392 old_archive_From_new_cmds_GCJ='true' 17393 # FIXME: Should let the user specify the lib program. 17394 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17395 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17396 enable_shared_with_static_runtimes_GCJ=yes 17397 ;; 17398 17399 darwin* | rhapsody*) 17400 case $host_os in 17401 rhapsody* | darwin1.[012]) 17402 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17403 ;; 17404 *) # Darwin 1.3 on 17405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17406 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17407 else 17408 case ${MACOSX_DEPLOYMENT_TARGET} in 17409 10.[012]) 17410 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17411 ;; 17412 10.*) 17413 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17414 ;; 17415 esac 17416 fi 17417 ;; 17418 esac 17419 archive_cmds_need_lc_GCJ=no 17420 hardcode_direct_GCJ=no 17421 hardcode_automatic_GCJ=yes 17422 hardcode_shlibpath_var_GCJ=unsupported 17423 whole_archive_flag_spec_GCJ='' 17424 link_all_deplibs_GCJ=yes 17425 if test "$GCC" = yes ; then 17426 output_verbose_link_cmd='echo' 17427 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17428 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17430 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}' 17431 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}' 17432 else 17433 case $cc_basename in 17434 xlc*) 17435 output_verbose_link_cmd='echo' 17436 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17437 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17439 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17440 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}' 17441 ;; 17442 *) 17443 ld_shlibs_GCJ=no 17444 ;; 17445 esac 17446 fi 17447 ;; 17448 17449 dgux*) 17450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17451 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17452 hardcode_shlibpath_var_GCJ=no 17453 ;; 17454 17455 freebsd1*) 17456 ld_shlibs_GCJ=no 17457 ;; 17458 17459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17460 # support. Future versions do this automatically, but an explicit c++rt0.o 17461 # does not break anything, and helps significantly (at the cost of a little 17462 # extra space). 17463 freebsd2.2*) 17464 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17465 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17466 hardcode_direct_GCJ=yes 17467 hardcode_shlibpath_var_GCJ=no 17468 ;; 17469 17470 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17471 freebsd2*) 17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17473 hardcode_direct_GCJ=yes 17474 hardcode_minus_L_GCJ=yes 17475 hardcode_shlibpath_var_GCJ=no 17476 ;; 17477 17478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17479 freebsd* | dragonfly*) 17480 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17481 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17482 hardcode_direct_GCJ=yes 17483 hardcode_shlibpath_var_GCJ=no 17484 ;; 17485 17486 hpux9*) 17487 if test "$GCC" = yes; then 17488 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' 17489 else 17490 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' 17491 fi 17492 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17493 hardcode_libdir_separator_GCJ=: 17494 hardcode_direct_GCJ=yes 17495 17496 # hardcode_minus_L: Not really in the search PATH, 17497 # but as the default location of the library. 17498 hardcode_minus_L_GCJ=yes 17499 export_dynamic_flag_spec_GCJ='${wl}-E' 17500 ;; 17501 17502 hpux10*) 17503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17504 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17505 else 17506 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17507 fi 17508 if test "$with_gnu_ld" = no; then 17509 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17510 hardcode_libdir_separator_GCJ=: 17511 17512 hardcode_direct_GCJ=yes 17513 export_dynamic_flag_spec_GCJ='${wl}-E' 17514 17515 # hardcode_minus_L: Not really in the search PATH, 17516 # but as the default location of the library. 17517 hardcode_minus_L_GCJ=yes 17518 fi 17519 ;; 17520 17521 hpux11*) 17522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17523 case $host_cpu in 17524 hppa*64*) 17525 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17526 ;; 17527 ia64*) 17528 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17529 ;; 17530 *) 17531 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17532 ;; 17533 esac 17534 else 17535 case $host_cpu in 17536 hppa*64*) 17537 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17538 ;; 17539 ia64*) 17540 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17541 ;; 17542 *) 17543 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17544 ;; 17545 esac 17546 fi 17547 if test "$with_gnu_ld" = no; then 17548 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17549 hardcode_libdir_separator_GCJ=: 17550 17551 case $host_cpu in 17552 hppa*64*|ia64*) 17553 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17554 hardcode_direct_GCJ=no 17555 hardcode_shlibpath_var_GCJ=no 17556 ;; 17557 *) 17558 hardcode_direct_GCJ=yes 17559 export_dynamic_flag_spec_GCJ='${wl}-E' 17560 17561 # hardcode_minus_L: Not really in the search PATH, 17562 # but as the default location of the library. 17563 hardcode_minus_L_GCJ=yes 17564 ;; 17565 esac 17566 fi 17567 ;; 17568 17569 irix5* | irix6* | nonstopux*) 17570 if test "$GCC" = yes; then 17571 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' 17572 else 17573 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' 17574 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17575 fi 17576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17577 hardcode_libdir_separator_GCJ=: 17578 link_all_deplibs_GCJ=yes 17579 ;; 17580 17581 netbsd*) 17582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17583 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17584 else 17585 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17586 fi 17587 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17588 hardcode_direct_GCJ=yes 17589 hardcode_shlibpath_var_GCJ=no 17590 ;; 17591 17592 newsos6) 17593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17594 hardcode_direct_GCJ=yes 17595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17596 hardcode_libdir_separator_GCJ=: 17597 hardcode_shlibpath_var_GCJ=no 17598 ;; 17599 17600 openbsd*) 17601 if test -f /usr/libexec/ld.so; then 17602 hardcode_direct_GCJ=yes 17603 hardcode_shlibpath_var_GCJ=no 17604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17605 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17606 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17608 export_dynamic_flag_spec_GCJ='${wl}-E' 17609 else 17610 case $host_os in 17611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17613 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17614 ;; 17615 *) 17616 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17618 ;; 17619 esac 17620 fi 17621 else 17622 ld_shlibs_GCJ=no 17623 fi 17624 ;; 17625 17626 os2*) 17627 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17628 hardcode_minus_L_GCJ=yes 17629 allow_undefined_flag_GCJ=unsupported 17630 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' 17631 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17632 ;; 17633 17634 osf3*) 17635 if test "$GCC" = yes; then 17636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17637 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' 17638 else 17639 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17640 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' 17641 fi 17642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17643 hardcode_libdir_separator_GCJ=: 17644 ;; 17645 17646 osf4* | osf5*) # as osf3* with the addition of -msym flag 17647 if test "$GCC" = yes; then 17648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17649 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' 17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17651 else 17652 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17653 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' 17654 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~ 17655 $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' 17656 17657 # Both c and cxx compiler support -rpath directly 17658 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17659 fi 17660 hardcode_libdir_separator_GCJ=: 17661 ;; 17662 17663 solaris*) 17664 no_undefined_flag_GCJ=' -z text' 17665 if test "$GCC" = yes; then 17666 wlarc='${wl}' 17667 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17669 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17670 else 17671 wlarc='' 17672 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17674 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17675 fi 17676 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17677 hardcode_shlibpath_var_GCJ=no 17678 case $host_os in 17679 solaris2.[0-5] | solaris2.[0-5].*) ;; 17680 *) 17681 # The compiler driver will combine and reorder linker options, 17682 # but understands `-z linker_flag'. GCC discards it without `$wl', 17683 # but is careful enough not to reorder. 17684 # Supported since Solaris 2.6 (maybe 2.5.1?) 17685 if test "$GCC" = yes; then 17686 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17687 else 17688 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17689 fi 17690 ;; 17691 esac 17692 link_all_deplibs_GCJ=yes 17693 ;; 17694 17695 sunos4*) 17696 if test "x$host_vendor" = xsequent; then 17697 # Use $CC to link under sequent, because it throws in some extra .o 17698 # files that make .init and .fini sections work. 17699 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17700 else 17701 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17702 fi 17703 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17704 hardcode_direct_GCJ=yes 17705 hardcode_minus_L_GCJ=yes 17706 hardcode_shlibpath_var_GCJ=no 17707 ;; 17708 17709 sysv4) 17710 case $host_vendor in 17711 sni) 17712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17713 hardcode_direct_GCJ=yes # is this really true??? 17714 ;; 17715 siemens) 17716 ## LD is ld it makes a PLAMLIB 17717 ## CC just makes a GrossModule. 17718 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17719 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17720 hardcode_direct_GCJ=no 17721 ;; 17722 motorola) 17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17724 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17725 ;; 17726 esac 17727 runpath_var='LD_RUN_PATH' 17728 hardcode_shlibpath_var_GCJ=no 17729 ;; 17730 17731 sysv4.3*) 17732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17733 hardcode_shlibpath_var_GCJ=no 17734 export_dynamic_flag_spec_GCJ='-Bexport' 17735 ;; 17736 17737 sysv4*MP*) 17738 if test -d /usr/nec; then 17739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17740 hardcode_shlibpath_var_GCJ=no 17741 runpath_var=LD_RUN_PATH 17742 hardcode_runpath_var=yes 17743 ld_shlibs_GCJ=yes 17744 fi 17745 ;; 17746 17747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17748 no_undefined_flag_GCJ='${wl}-z,text' 17749 archive_cmds_need_lc_GCJ=no 17750 hardcode_shlibpath_var_GCJ=no 17751 runpath_var='LD_RUN_PATH' 17752 17753 if test "$GCC" = yes; then 17754 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17755 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17756 else 17757 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17758 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17759 fi 17760 ;; 17761 17762 sysv5* | sco3.2v5* | sco5v6*) 17763 # Note: We can NOT use -z defs as we might desire, because we do not 17764 # link with -lc, and that would cause any symbols used from libc to 17765 # always be unresolved, which means just about no library would 17766 # ever link correctly. If we're not using GNU ld we use -z text 17767 # though, which does catch some bad symbols but isn't as heavy-handed 17768 # as -z defs. 17769 no_undefined_flag_GCJ='${wl}-z,text' 17770 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17771 archive_cmds_need_lc_GCJ=no 17772 hardcode_shlibpath_var_GCJ=no 17773 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17774 hardcode_libdir_separator_GCJ=':' 17775 link_all_deplibs_GCJ=yes 17776 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17777 runpath_var='LD_RUN_PATH' 17778 17779 if test "$GCC" = yes; then 17780 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17781 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17782 else 17783 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17784 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17785 fi 17786 ;; 17787 17788 uts4*) 17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17790 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17791 hardcode_shlibpath_var_GCJ=no 17792 ;; 17793 17794 *) 17795 ld_shlibs_GCJ=no 17796 ;; 17797 esac 17798 fi 17799 17800{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17801echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17802test "$ld_shlibs_GCJ" = no && can_build_shared=no 17803 17804# 17805# Do we need to explicitly link libc? 17806# 17807case "x$archive_cmds_need_lc_GCJ" in 17808x|xyes) 17809 # Assume -lc should be added 17810 archive_cmds_need_lc_GCJ=yes 17811 17812 if test "$enable_shared" = yes && test "$GCC" = yes; then 17813 case $archive_cmds_GCJ in 17814 *'~'*) 17815 # FIXME: we may have to deal with multi-command sequences. 17816 ;; 17817 '$CC '*) 17818 # Test whether the compiler implicitly links with -lc since on some 17819 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17820 # to ld, don't add -lc before -lgcc. 17821 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17822echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17823 $rm conftest* 17824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17825 17826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17827 (eval $ac_compile) 2>&5 17828 ac_status=$? 17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17830 (exit $ac_status); } 2>conftest.err; then 17831 soname=conftest 17832 lib=conftest 17833 libobjs=conftest.$ac_objext 17834 deplibs= 17835 wl=$lt_prog_compiler_wl_GCJ 17836 pic_flag=$lt_prog_compiler_pic_GCJ 17837 compiler_flags=-v 17838 linker_flags=-v 17839 verstring= 17840 output_objdir=. 17841 libname=conftest 17842 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17843 allow_undefined_flag_GCJ= 17844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17845 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17846 ac_status=$? 17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17848 (exit $ac_status); } 17849 then 17850 archive_cmds_need_lc_GCJ=no 17851 else 17852 archive_cmds_need_lc_GCJ=yes 17853 fi 17854 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17855 else 17856 cat conftest.err 1>&5 17857 fi 17858 $rm conftest* 17859 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17860echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17861 ;; 17862 esac 17863 fi 17864 ;; 17865esac 17866 17867{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17868echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17869library_names_spec= 17870libname_spec='lib$name' 17871soname_spec= 17872shrext_cmds=".so" 17873postinstall_cmds= 17874postuninstall_cmds= 17875finish_cmds= 17876finish_eval= 17877shlibpath_var= 17878shlibpath_overrides_runpath=unknown 17879version_type=none 17880dynamic_linker="$host_os ld.so" 17881sys_lib_dlsearch_path_spec="/lib /usr/lib" 17882 17883need_lib_prefix=unknown 17884hardcode_into_libs=no 17885 17886# when you set need_version to no, make sure it does not cause -set_version 17887# flags to be left without arguments 17888need_version=unknown 17889 17890case $host_os in 17891aix3*) 17892 version_type=linux 17893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17894 shlibpath_var=LIBPATH 17895 17896 # AIX 3 has no versioning support, so we append a major version to the name. 17897 soname_spec='${libname}${release}${shared_ext}$major' 17898 ;; 17899 17900aix4* | aix5*) 17901 version_type=linux 17902 need_lib_prefix=no 17903 need_version=no 17904 hardcode_into_libs=yes 17905 if test "$host_cpu" = ia64; then 17906 # AIX 5 supports IA64 17907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17908 shlibpath_var=LD_LIBRARY_PATH 17909 else 17910 # With GCC up to 2.95.x, collect2 would create an import file 17911 # for dependence libraries. The import file would start with 17912 # the line `#! .'. This would cause the generated library to 17913 # depend on `.', always an invalid library. This was fixed in 17914 # development snapshots of GCC prior to 3.0. 17915 case $host_os in 17916 aix4 | aix4.[01] | aix4.[01].*) 17917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17918 echo ' yes ' 17919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17920 : 17921 else 17922 can_build_shared=no 17923 fi 17924 ;; 17925 esac 17926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17927 # soname into executable. Probably we can add versioning support to 17928 # collect2, so additional links can be useful in future. 17929 if test "$aix_use_runtimelinking" = yes; then 17930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17931 # instead of lib<name>.a to let people know that these are not 17932 # typical AIX shared libraries. 17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17934 else 17935 # We preserve .a as extension for shared libraries through AIX4.2 17936 # and later when we are not doing run time linking. 17937 library_names_spec='${libname}${release}.a $libname.a' 17938 soname_spec='${libname}${release}${shared_ext}$major' 17939 fi 17940 shlibpath_var=LIBPATH 17941 fi 17942 ;; 17943 17944amigaos*) 17945 library_names_spec='$libname.ixlibrary $libname.a' 17946 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17947 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' 17948 ;; 17949 17950beos*) 17951 library_names_spec='${libname}${shared_ext}' 17952 dynamic_linker="$host_os ld.so" 17953 shlibpath_var=LIBRARY_PATH 17954 ;; 17955 17956bsdi[45]*) 17957 version_type=linux 17958 need_version=no 17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17960 soname_spec='${libname}${release}${shared_ext}$major' 17961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17962 shlibpath_var=LD_LIBRARY_PATH 17963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17965 # the default ld.so.conf also contains /usr/contrib/lib and 17966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17967 # libtool to hard-code these into programs 17968 ;; 17969 17970cygwin* | mingw* | pw32*) 17971 version_type=windows 17972 shrext_cmds=".dll" 17973 need_version=no 17974 need_lib_prefix=no 17975 17976 case $GCC,$host_os in 17977 yes,cygwin* | yes,mingw* | yes,pw32*) 17978 library_names_spec='$libname.dll.a' 17979 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17980 postinstall_cmds='base_file=`basename \${file}`~ 17981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17982 dldir=$destdir/`dirname \$dlpath`~ 17983 test -d \$dldir || mkdir -p \$dldir~ 17984 $install_prog $dir/$dlname \$dldir/$dlname~ 17985 chmod a+x \$dldir/$dlname' 17986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17987 dlpath=$dir/\$dldll~ 17988 $rm \$dlpath' 17989 shlibpath_overrides_runpath=yes 17990 17991 case $host_os in 17992 cygwin*) 17993 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17996 ;; 17997 mingw*) 17998 # MinGW DLLs use traditional 'lib' prefix 17999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18002 # It is most probably a Windows format PATH printed by 18003 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18004 # path with ; separators, and with drive letters. We can handle the 18005 # drive letters (cygwin fileutils understands them), so leave them, 18006 # especially as we might pass files found there to a mingw objdump, 18007 # which wouldn't understand a cygwinified path. Ahh. 18008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18009 else 18010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18011 fi 18012 ;; 18013 pw32*) 18014 # pw32 DLLs use 'pw' prefix rather than 'lib' 18015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18016 ;; 18017 esac 18018 ;; 18019 18020 *) 18021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18022 ;; 18023 esac 18024 dynamic_linker='Win32 ld.exe' 18025 # FIXME: first we should search . and the directory the executable is in 18026 shlibpath_var=PATH 18027 ;; 18028 18029darwin* | rhapsody*) 18030 dynamic_linker="$host_os dyld" 18031 version_type=darwin 18032 need_lib_prefix=no 18033 need_version=no 18034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18035 soname_spec='${libname}${release}${major}$shared_ext' 18036 shlibpath_overrides_runpath=yes 18037 shlibpath_var=DYLD_LIBRARY_PATH 18038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18039 18040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18041 ;; 18042 18043dgux*) 18044 version_type=linux 18045 need_lib_prefix=no 18046 need_version=no 18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18048 soname_spec='${libname}${release}${shared_ext}$major' 18049 shlibpath_var=LD_LIBRARY_PATH 18050 ;; 18051 18052freebsd1*) 18053 dynamic_linker=no 18054 ;; 18055 18056freebsd* | dragonfly*) 18057 # DragonFly does not have aout. When/if they implement a new 18058 # versioning mechanism, adjust this. 18059 if test -x /usr/bin/objformat; then 18060 objformat=`/usr/bin/objformat` 18061 else 18062 case $host_os in 18063 freebsd[123]*) objformat=aout ;; 18064 *) objformat=elf ;; 18065 esac 18066 fi 18067 version_type=freebsd-$objformat 18068 case $version_type in 18069 freebsd-elf*) 18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18071 need_version=no 18072 need_lib_prefix=no 18073 ;; 18074 freebsd-*) 18075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18076 need_version=yes 18077 ;; 18078 esac 18079 shlibpath_var=LD_LIBRARY_PATH 18080 case $host_os in 18081 freebsd2*) 18082 shlibpath_overrides_runpath=yes 18083 ;; 18084 freebsd3.[01]* | freebsdelf3.[01]*) 18085 shlibpath_overrides_runpath=yes 18086 hardcode_into_libs=yes 18087 ;; 18088 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18089 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18090 shlibpath_overrides_runpath=no 18091 hardcode_into_libs=yes 18092 ;; 18093 *) # from 4.6 on, and DragonFly 18094 shlibpath_overrides_runpath=yes 18095 hardcode_into_libs=yes 18096 ;; 18097 esac 18098 ;; 18099 18100gnu*) 18101 version_type=linux 18102 need_lib_prefix=no 18103 need_version=no 18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18105 soname_spec='${libname}${release}${shared_ext}$major' 18106 shlibpath_var=LD_LIBRARY_PATH 18107 hardcode_into_libs=yes 18108 ;; 18109 18110hpux9* | hpux10* | hpux11*) 18111 # Give a soname corresponding to the major version so that dld.sl refuses to 18112 # link against other versions. 18113 version_type=sunos 18114 need_lib_prefix=no 18115 need_version=no 18116 case $host_cpu in 18117 ia64*) 18118 shrext_cmds='.so' 18119 hardcode_into_libs=yes 18120 dynamic_linker="$host_os dld.so" 18121 shlibpath_var=LD_LIBRARY_PATH 18122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18124 soname_spec='${libname}${release}${shared_ext}$major' 18125 if test "X$HPUX_IA64_MODE" = X32; then 18126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18127 else 18128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18129 fi 18130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18131 ;; 18132 hppa*64*) 18133 shrext_cmds='.sl' 18134 hardcode_into_libs=yes 18135 dynamic_linker="$host_os dld.sl" 18136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18139 soname_spec='${libname}${release}${shared_ext}$major' 18140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18142 ;; 18143 *) 18144 shrext_cmds='.sl' 18145 dynamic_linker="$host_os dld.sl" 18146 shlibpath_var=SHLIB_PATH 18147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18149 soname_spec='${libname}${release}${shared_ext}$major' 18150 ;; 18151 esac 18152 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18153 postinstall_cmds='chmod 555 $lib' 18154 ;; 18155 18156interix[3-9]*) 18157 version_type=linux 18158 need_lib_prefix=no 18159 need_version=no 18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18161 soname_spec='${libname}${release}${shared_ext}$major' 18162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18163 shlibpath_var=LD_LIBRARY_PATH 18164 shlibpath_overrides_runpath=no 18165 hardcode_into_libs=yes 18166 ;; 18167 18168irix5* | irix6* | nonstopux*) 18169 case $host_os in 18170 nonstopux*) version_type=nonstopux ;; 18171 *) 18172 if test "$lt_cv_prog_gnu_ld" = yes; then 18173 version_type=linux 18174 else 18175 version_type=irix 18176 fi ;; 18177 esac 18178 need_lib_prefix=no 18179 need_version=no 18180 soname_spec='${libname}${release}${shared_ext}$major' 18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18182 case $host_os in 18183 irix5* | nonstopux*) 18184 libsuff= shlibsuff= 18185 ;; 18186 *) 18187 case $LD in # libtool.m4 will add one of these switches to LD 18188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18189 libsuff= shlibsuff= libmagic=32-bit;; 18190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18191 libsuff=32 shlibsuff=N32 libmagic=N32;; 18192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18193 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18194 *) libsuff= shlibsuff= libmagic=never-match;; 18195 esac 18196 ;; 18197 esac 18198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18199 shlibpath_overrides_runpath=no 18200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18202 hardcode_into_libs=yes 18203 ;; 18204 18205# No shared lib support for Linux oldld, aout, or coff. 18206linux*oldld* | linux*aout* | linux*coff*) 18207 dynamic_linker=no 18208 ;; 18209 18210# This must be Linux ELF. 18211linux* | k*bsd*-gnu) 18212 version_type=linux 18213 need_lib_prefix=no 18214 need_version=no 18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18216 soname_spec='${libname}${release}${shared_ext}$major' 18217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18218 shlibpath_var=LD_LIBRARY_PATH 18219 shlibpath_overrides_runpath=no 18220 # This implies no fast_install, which is unacceptable. 18221 # Some rework will be needed to allow for fast_install 18222 # before this can be enabled. 18223 hardcode_into_libs=yes 18224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18226 18227 # Append ld.so.conf contents to the search path 18228 if test -f /etc/ld.so.conf; then 18229 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18230 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18231 fi 18232 18233 # We used to test for /lib/ld.so.1 and disable shared libraries on 18234 # powerpc, because MkLinux only supported shared libraries with the 18235 # GNU dynamic linker. Since this was broken with cross compilers, 18236 # most powerpc-linux boxes support dynamic linking these days and 18237 # people can always --disable-shared, the test was removed, and we 18238 # assume the GNU/Linux dynamic linker is in use. 18239 dynamic_linker='GNU/Linux ld.so' 18240 ;; 18241 18242netbsd*) 18243 version_type=sunos 18244 need_lib_prefix=no 18245 need_version=no 18246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18249 dynamic_linker='NetBSD (a.out) ld.so' 18250 else 18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18252 soname_spec='${libname}${release}${shared_ext}$major' 18253 dynamic_linker='NetBSD ld.elf_so' 18254 fi 18255 shlibpath_var=LD_LIBRARY_PATH 18256 shlibpath_overrides_runpath=yes 18257 hardcode_into_libs=yes 18258 ;; 18259 18260newsos6) 18261 version_type=linux 18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18263 shlibpath_var=LD_LIBRARY_PATH 18264 shlibpath_overrides_runpath=yes 18265 ;; 18266 18267nto-qnx*) 18268 version_type=linux 18269 need_lib_prefix=no 18270 need_version=no 18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18272 soname_spec='${libname}${release}${shared_ext}$major' 18273 shlibpath_var=LD_LIBRARY_PATH 18274 shlibpath_overrides_runpath=yes 18275 ;; 18276 18277openbsd*) 18278 version_type=sunos 18279 sys_lib_dlsearch_path_spec="/usr/lib" 18280 need_lib_prefix=no 18281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18282 case $host_os in 18283 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18284 *) need_version=no ;; 18285 esac 18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18288 shlibpath_var=LD_LIBRARY_PATH 18289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18290 case $host_os in 18291 openbsd2.[89] | openbsd2.[89].*) 18292 shlibpath_overrides_runpath=no 18293 ;; 18294 *) 18295 shlibpath_overrides_runpath=yes 18296 ;; 18297 esac 18298 else 18299 shlibpath_overrides_runpath=yes 18300 fi 18301 ;; 18302 18303os2*) 18304 libname_spec='$name' 18305 shrext_cmds=".dll" 18306 need_lib_prefix=no 18307 library_names_spec='$libname${shared_ext} $libname.a' 18308 dynamic_linker='OS/2 ld.exe' 18309 shlibpath_var=LIBPATH 18310 ;; 18311 18312osf3* | osf4* | osf5*) 18313 version_type=osf 18314 need_lib_prefix=no 18315 need_version=no 18316 soname_spec='${libname}${release}${shared_ext}$major' 18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18318 shlibpath_var=LD_LIBRARY_PATH 18319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18321 ;; 18322 18323rdos*) 18324 dynamic_linker=no 18325 ;; 18326 18327solaris*) 18328 version_type=linux 18329 need_lib_prefix=no 18330 need_version=no 18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18332 soname_spec='${libname}${release}${shared_ext}$major' 18333 shlibpath_var=LD_LIBRARY_PATH 18334 shlibpath_overrides_runpath=yes 18335 hardcode_into_libs=yes 18336 # ldd complains unless libraries are executable 18337 postinstall_cmds='chmod +x $lib' 18338 ;; 18339 18340sunos4*) 18341 version_type=sunos 18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18344 shlibpath_var=LD_LIBRARY_PATH 18345 shlibpath_overrides_runpath=yes 18346 if test "$with_gnu_ld" = yes; then 18347 need_lib_prefix=no 18348 fi 18349 need_version=yes 18350 ;; 18351 18352sysv4 | sysv4.3*) 18353 version_type=linux 18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18355 soname_spec='${libname}${release}${shared_ext}$major' 18356 shlibpath_var=LD_LIBRARY_PATH 18357 case $host_vendor in 18358 sni) 18359 shlibpath_overrides_runpath=no 18360 need_lib_prefix=no 18361 export_dynamic_flag_spec='${wl}-Blargedynsym' 18362 runpath_var=LD_RUN_PATH 18363 ;; 18364 siemens) 18365 need_lib_prefix=no 18366 ;; 18367 motorola) 18368 need_lib_prefix=no 18369 need_version=no 18370 shlibpath_overrides_runpath=no 18371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18372 ;; 18373 esac 18374 ;; 18375 18376sysv4*MP*) 18377 if test -d /usr/nec ;then 18378 version_type=linux 18379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18380 soname_spec='$libname${shared_ext}.$major' 18381 shlibpath_var=LD_LIBRARY_PATH 18382 fi 18383 ;; 18384 18385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18386 version_type=freebsd-elf 18387 need_lib_prefix=no 18388 need_version=no 18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18390 soname_spec='${libname}${release}${shared_ext}$major' 18391 shlibpath_var=LD_LIBRARY_PATH 18392 hardcode_into_libs=yes 18393 if test "$with_gnu_ld" = yes; then 18394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18395 shlibpath_overrides_runpath=no 18396 else 18397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18398 shlibpath_overrides_runpath=yes 18399 case $host_os in 18400 sco3.2v5*) 18401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18402 ;; 18403 esac 18404 fi 18405 sys_lib_dlsearch_path_spec='/usr/lib' 18406 ;; 18407 18408uts4*) 18409 version_type=linux 18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18411 soname_spec='${libname}${release}${shared_ext}$major' 18412 shlibpath_var=LD_LIBRARY_PATH 18413 ;; 18414 18415*) 18416 dynamic_linker=no 18417 ;; 18418esac 18419{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18420echo "${ECHO_T}$dynamic_linker" >&6; } 18421test "$dynamic_linker" = no && can_build_shared=no 18422 18423variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18424if test "$GCC" = yes; then 18425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18426fi 18427 18428{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18429echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18430hardcode_action_GCJ= 18431if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18432 test -n "$runpath_var_GCJ" || \ 18433 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18434 18435 # We can hardcode non-existant directories. 18436 if test "$hardcode_direct_GCJ" != no && 18437 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18438 # have to relink, otherwise we might link with an installed library 18439 # when we should be linking with a yet-to-be-installed one 18440 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18441 test "$hardcode_minus_L_GCJ" != no; then 18442 # Linking always hardcodes the temporary library directory. 18443 hardcode_action_GCJ=relink 18444 else 18445 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18446 hardcode_action_GCJ=immediate 18447 fi 18448else 18449 # We cannot hardcode anything, or else we can only hardcode existing 18450 # directories. 18451 hardcode_action_GCJ=unsupported 18452fi 18453{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18454echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18455 18456if test "$hardcode_action_GCJ" = relink; then 18457 # Fast installation is not supported 18458 enable_fast_install=no 18459elif test "$shlibpath_overrides_runpath" = yes || 18460 test "$enable_shared" = no; then 18461 # Fast installation is not necessary 18462 enable_fast_install=needless 18463fi 18464 18465 18466# The else clause should only fire when bootstrapping the 18467# libtool distribution, otherwise you forgot to ship ltmain.sh 18468# with your package, and you will get complaints that there are 18469# no rules to generate ltmain.sh. 18470if test -f "$ltmain"; then 18471 # See if we are running on zsh, and set the options which allow our commands through 18472 # without removal of \ escapes. 18473 if test -n "${ZSH_VERSION+set}" ; then 18474 setopt NO_GLOB_SUBST 18475 fi 18476 # Now quote all the things that may contain metacharacters while being 18477 # careful not to overquote the AC_SUBSTed values. We take copies of the 18478 # variables and quote the copies for generation of the libtool script. 18479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18480 SED SHELL STRIP \ 18481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18483 deplibs_check_method reload_flag reload_cmds need_locks \ 18484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18485 lt_cv_sys_global_symbol_to_c_name_address \ 18486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18487 old_postinstall_cmds old_postuninstall_cmds \ 18488 compiler_GCJ \ 18489 CC_GCJ \ 18490 LD_GCJ \ 18491 lt_prog_compiler_wl_GCJ \ 18492 lt_prog_compiler_pic_GCJ \ 18493 lt_prog_compiler_static_GCJ \ 18494 lt_prog_compiler_no_builtin_flag_GCJ \ 18495 export_dynamic_flag_spec_GCJ \ 18496 thread_safe_flag_spec_GCJ \ 18497 whole_archive_flag_spec_GCJ \ 18498 enable_shared_with_static_runtimes_GCJ \ 18499 old_archive_cmds_GCJ \ 18500 old_archive_from_new_cmds_GCJ \ 18501 predep_objects_GCJ \ 18502 postdep_objects_GCJ \ 18503 predeps_GCJ \ 18504 postdeps_GCJ \ 18505 compiler_lib_search_path_GCJ \ 18506 archive_cmds_GCJ \ 18507 archive_expsym_cmds_GCJ \ 18508 postinstall_cmds_GCJ \ 18509 postuninstall_cmds_GCJ \ 18510 old_archive_from_expsyms_cmds_GCJ \ 18511 allow_undefined_flag_GCJ \ 18512 no_undefined_flag_GCJ \ 18513 export_symbols_cmds_GCJ \ 18514 hardcode_libdir_flag_spec_GCJ \ 18515 hardcode_libdir_flag_spec_ld_GCJ \ 18516 hardcode_libdir_separator_GCJ \ 18517 hardcode_automatic_GCJ \ 18518 module_cmds_GCJ \ 18519 module_expsym_cmds_GCJ \ 18520 lt_cv_prog_compiler_c_o_GCJ \ 18521 fix_srcfile_path_GCJ \ 18522 exclude_expsyms_GCJ \ 18523 include_expsyms_GCJ; do 18524 18525 case $var in 18526 old_archive_cmds_GCJ | \ 18527 old_archive_from_new_cmds_GCJ | \ 18528 archive_cmds_GCJ | \ 18529 archive_expsym_cmds_GCJ | \ 18530 module_cmds_GCJ | \ 18531 module_expsym_cmds_GCJ | \ 18532 old_archive_from_expsyms_cmds_GCJ | \ 18533 export_symbols_cmds_GCJ | \ 18534 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18535 postinstall_cmds | postuninstall_cmds | \ 18536 old_postinstall_cmds | old_postuninstall_cmds | \ 18537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18538 # Double-quote double-evaled strings. 18539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18540 ;; 18541 *) 18542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18543 ;; 18544 esac 18545 done 18546 18547 case $lt_echo in 18548 *'\$0 --fallback-echo"') 18549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18550 ;; 18551 esac 18552 18553cfgfile="$ofile" 18554 18555 cat <<__EOF__ >> "$cfgfile" 18556# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18557 18558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18559 18560# Shell to use when invoking shell scripts. 18561SHELL=$lt_SHELL 18562 18563# Whether or not to build shared libraries. 18564build_libtool_libs=$enable_shared 18565 18566# Whether or not to build static libraries. 18567build_old_libs=$enable_static 18568 18569# Whether or not to add -lc for building shared libraries. 18570build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18571 18572# Whether or not to disallow shared libs when runtime libs are static 18573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18574 18575# Whether or not to optimize for fast installation. 18576fast_install=$enable_fast_install 18577 18578# The host system. 18579host_alias=$host_alias 18580host=$host 18581host_os=$host_os 18582 18583# The build system. 18584build_alias=$build_alias 18585build=$build 18586build_os=$build_os 18587 18588# An echo program that does not interpret backslashes. 18589echo=$lt_echo 18590 18591# The archiver. 18592AR=$lt_AR 18593AR_FLAGS=$lt_AR_FLAGS 18594 18595# A C compiler. 18596LTCC=$lt_LTCC 18597 18598# LTCC compiler flags. 18599LTCFLAGS=$lt_LTCFLAGS 18600 18601# A language-specific compiler. 18602CC=$lt_compiler_GCJ 18603 18604# Is the compiler the GNU C compiler? 18605with_gcc=$GCC_GCJ 18606 18607# An ERE matcher. 18608EGREP=$lt_EGREP 18609 18610# The linker used to build libraries. 18611LD=$lt_LD_GCJ 18612 18613# Whether we need hard or soft links. 18614LN_S=$lt_LN_S 18615 18616# A BSD-compatible nm program. 18617NM=$lt_NM 18618 18619# A symbol stripping program 18620STRIP=$lt_STRIP 18621 18622# Used to examine libraries when file_magic_cmd begins "file" 18623MAGIC_CMD=$MAGIC_CMD 18624 18625# Used on cygwin: DLL creation program. 18626DLLTOOL="$DLLTOOL" 18627 18628# Used on cygwin: object dumper. 18629OBJDUMP="$OBJDUMP" 18630 18631# Used on cygwin: assembler. 18632AS="$AS" 18633 18634# The name of the directory that contains temporary libtool files. 18635objdir=$objdir 18636 18637# How to create reloadable object files. 18638reload_flag=$lt_reload_flag 18639reload_cmds=$lt_reload_cmds 18640 18641# How to pass a linker flag through the compiler. 18642wl=$lt_lt_prog_compiler_wl_GCJ 18643 18644# Object file suffix (normally "o"). 18645objext="$ac_objext" 18646 18647# Old archive suffix (normally "a"). 18648libext="$libext" 18649 18650# Shared library suffix (normally ".so"). 18651shrext_cmds='$shrext_cmds' 18652 18653# Executable file suffix (normally ""). 18654exeext="$exeext" 18655 18656# Additional compiler flags for building library objects. 18657pic_flag=$lt_lt_prog_compiler_pic_GCJ 18658pic_mode=$pic_mode 18659 18660# What is the maximum length of a command? 18661max_cmd_len=$lt_cv_sys_max_cmd_len 18662 18663# Does compiler simultaneously support -c and -o options? 18664compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18665 18666# Must we lock files when doing compilation? 18667need_locks=$lt_need_locks 18668 18669# Do we need the lib prefix for modules? 18670need_lib_prefix=$need_lib_prefix 18671 18672# Do we need a version for libraries? 18673need_version=$need_version 18674 18675# Whether dlopen is supported. 18676dlopen_support=$enable_dlopen 18677 18678# Whether dlopen of programs is supported. 18679dlopen_self=$enable_dlopen_self 18680 18681# Whether dlopen of statically linked programs is supported. 18682dlopen_self_static=$enable_dlopen_self_static 18683 18684# Compiler flag to prevent dynamic linking. 18685link_static_flag=$lt_lt_prog_compiler_static_GCJ 18686 18687# Compiler flag to turn off builtin functions. 18688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18689 18690# Compiler flag to allow reflexive dlopens. 18691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18692 18693# Compiler flag to generate shared objects directly from archives. 18694whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18695 18696# Compiler flag to generate thread-safe objects. 18697thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18698 18699# Library versioning type. 18700version_type=$version_type 18701 18702# Format of library name prefix. 18703libname_spec=$lt_libname_spec 18704 18705# List of archive names. First name is the real one, the rest are links. 18706# The last name is the one that the linker finds with -lNAME. 18707library_names_spec=$lt_library_names_spec 18708 18709# The coded name of the library, if different from the real name. 18710soname_spec=$lt_soname_spec 18711 18712# Commands used to build and install an old-style archive. 18713RANLIB=$lt_RANLIB 18714old_archive_cmds=$lt_old_archive_cmds_GCJ 18715old_postinstall_cmds=$lt_old_postinstall_cmds 18716old_postuninstall_cmds=$lt_old_postuninstall_cmds 18717 18718# Create an old-style archive from a shared archive. 18719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18720 18721# Create a temporary old-style archive to link instead of a shared archive. 18722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18723 18724# Commands used to build and install a shared archive. 18725archive_cmds=$lt_archive_cmds_GCJ 18726archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18727postinstall_cmds=$lt_postinstall_cmds 18728postuninstall_cmds=$lt_postuninstall_cmds 18729 18730# Commands used to build a loadable module (assumed same as above if empty) 18731module_cmds=$lt_module_cmds_GCJ 18732module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18733 18734# Commands to strip libraries. 18735old_striplib=$lt_old_striplib 18736striplib=$lt_striplib 18737 18738# Dependencies to place before the objects being linked to create a 18739# shared library. 18740predep_objects=$lt_predep_objects_GCJ 18741 18742# Dependencies to place after the objects being linked to create a 18743# shared library. 18744postdep_objects=$lt_postdep_objects_GCJ 18745 18746# Dependencies to place before the objects being linked to create a 18747# shared library. 18748predeps=$lt_predeps_GCJ 18749 18750# Dependencies to place after the objects being linked to create a 18751# shared library. 18752postdeps=$lt_postdeps_GCJ 18753 18754# The library search path used internally by the compiler when linking 18755# a shared library. 18756compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18757 18758# Method to check whether dependent libraries are shared objects. 18759deplibs_check_method=$lt_deplibs_check_method 18760 18761# Command to use when deplibs_check_method == file_magic. 18762file_magic_cmd=$lt_file_magic_cmd 18763 18764# Flag that allows shared libraries with undefined symbols to be built. 18765allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18766 18767# Flag that forces no undefined symbols. 18768no_undefined_flag=$lt_no_undefined_flag_GCJ 18769 18770# Commands used to finish a libtool library installation in a directory. 18771finish_cmds=$lt_finish_cmds 18772 18773# Same as above, but a single script fragment to be evaled but not shown. 18774finish_eval=$lt_finish_eval 18775 18776# Take the output of nm and produce a listing of raw symbols and C names. 18777global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18778 18779# Transform the output of nm in a proper C declaration 18780global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18781 18782# Transform the output of nm in a C name address pair 18783global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18784 18785# This is the shared library runtime path variable. 18786runpath_var=$runpath_var 18787 18788# This is the shared library path variable. 18789shlibpath_var=$shlibpath_var 18790 18791# Is shlibpath searched before the hard-coded library search path? 18792shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18793 18794# How to hardcode a shared library path into an executable. 18795hardcode_action=$hardcode_action_GCJ 18796 18797# Whether we should hardcode library paths into libraries. 18798hardcode_into_libs=$hardcode_into_libs 18799 18800# Flag to hardcode \$libdir into a binary during linking. 18801# This must work even if \$libdir does not exist. 18802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18803 18804# If ld is used when linking, flag to hardcode \$libdir into 18805# a binary during linking. This must work even if \$libdir does 18806# not exist. 18807hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18808 18809# Whether we need a single -rpath flag with a separated argument. 18810hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18811 18812# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18813# resulting binary. 18814hardcode_direct=$hardcode_direct_GCJ 18815 18816# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18817# resulting binary. 18818hardcode_minus_L=$hardcode_minus_L_GCJ 18819 18820# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18821# the resulting binary. 18822hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18823 18824# Set to yes if building a shared library automatically hardcodes DIR into the library 18825# and all subsequent libraries and executables linked against it. 18826hardcode_automatic=$hardcode_automatic_GCJ 18827 18828# Variables whose values should be saved in libtool wrapper scripts and 18829# restored at relink time. 18830variables_saved_for_relink="$variables_saved_for_relink" 18831 18832# Whether libtool must link a program against all its dependency libraries. 18833link_all_deplibs=$link_all_deplibs_GCJ 18834 18835# Compile-time system search path for libraries 18836sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18837 18838# Run-time system search path for libraries 18839sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18840 18841# Fix the shell variable \$srcfile for the compiler. 18842fix_srcfile_path=$lt_fix_srcfile_path 18843 18844# Set to yes if exported symbols are required. 18845always_export_symbols=$always_export_symbols_GCJ 18846 18847# The commands to list exported symbols. 18848export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18849 18850# The commands to extract the exported symbol list from a shared archive. 18851extract_expsyms_cmds=$lt_extract_expsyms_cmds 18852 18853# Symbols that should not be listed in the preloaded symbols. 18854exclude_expsyms=$lt_exclude_expsyms_GCJ 18855 18856# Symbols that must always be exported. 18857include_expsyms=$lt_include_expsyms_GCJ 18858 18859# ### END LIBTOOL TAG CONFIG: $tagname 18860 18861__EOF__ 18862 18863 18864else 18865 # If there is no Makefile yet, we rely on a make rule to execute 18866 # `config.status --recheck' to rerun these tests and create the 18867 # libtool script then. 18868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18869 if test -f "$ltmain_in"; then 18870 test -f Makefile && make "$ltmain" 18871 fi 18872fi 18873 18874 18875ac_ext=c 18876ac_cpp='$CPP $CPPFLAGS' 18877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18879ac_compiler_gnu=$ac_cv_c_compiler_gnu 18880 18881CC="$lt_save_CC" 18882 18883 else 18884 tagname="" 18885 fi 18886 ;; 18887 18888 RC) 18889 18890 18891# Source file extension for RC test sources. 18892ac_ext=rc 18893 18894# Object file extension for compiled RC test sources. 18895objext=o 18896objext_RC=$objext 18897 18898# Code to be used in simple compile tests 18899lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18900 18901# Code to be used in simple link tests 18902lt_simple_link_test_code="$lt_simple_compile_test_code" 18903 18904# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18905 18906# If no C compiler was specified, use CC. 18907LTCC=${LTCC-"$CC"} 18908 18909# If no C compiler flags were specified, use CFLAGS. 18910LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18911 18912# Allow CC to be a program name with arguments. 18913compiler=$CC 18914 18915 18916# save warnings/boilerplate of simple test code 18917ac_outfile=conftest.$ac_objext 18918echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18919eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18920_lt_compiler_boilerplate=`cat conftest.err` 18921$rm conftest* 18922 18923ac_outfile=conftest.$ac_objext 18924echo "$lt_simple_link_test_code" >conftest.$ac_ext 18925eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18926_lt_linker_boilerplate=`cat conftest.err` 18927$rm conftest* 18928 18929 18930# Allow CC to be a program name with arguments. 18931lt_save_CC="$CC" 18932CC=${RC-"windres"} 18933compiler=$CC 18934compiler_RC=$CC 18935for cc_temp in $compiler""; do 18936 case $cc_temp in 18937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18939 \-*) ;; 18940 *) break;; 18941 esac 18942done 18943cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18944 18945lt_cv_prog_compiler_c_o_RC=yes 18946 18947# The else clause should only fire when bootstrapping the 18948# libtool distribution, otherwise you forgot to ship ltmain.sh 18949# with your package, and you will get complaints that there are 18950# no rules to generate ltmain.sh. 18951if test -f "$ltmain"; then 18952 # See if we are running on zsh, and set the options which allow our commands through 18953 # without removal of \ escapes. 18954 if test -n "${ZSH_VERSION+set}" ; then 18955 setopt NO_GLOB_SUBST 18956 fi 18957 # Now quote all the things that may contain metacharacters while being 18958 # careful not to overquote the AC_SUBSTed values. We take copies of the 18959 # variables and quote the copies for generation of the libtool script. 18960 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18961 SED SHELL STRIP \ 18962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18964 deplibs_check_method reload_flag reload_cmds need_locks \ 18965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18966 lt_cv_sys_global_symbol_to_c_name_address \ 18967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18968 old_postinstall_cmds old_postuninstall_cmds \ 18969 compiler_RC \ 18970 CC_RC \ 18971 LD_RC \ 18972 lt_prog_compiler_wl_RC \ 18973 lt_prog_compiler_pic_RC \ 18974 lt_prog_compiler_static_RC \ 18975 lt_prog_compiler_no_builtin_flag_RC \ 18976 export_dynamic_flag_spec_RC \ 18977 thread_safe_flag_spec_RC \ 18978 whole_archive_flag_spec_RC \ 18979 enable_shared_with_static_runtimes_RC \ 18980 old_archive_cmds_RC \ 18981 old_archive_from_new_cmds_RC \ 18982 predep_objects_RC \ 18983 postdep_objects_RC \ 18984 predeps_RC \ 18985 postdeps_RC \ 18986 compiler_lib_search_path_RC \ 18987 archive_cmds_RC \ 18988 archive_expsym_cmds_RC \ 18989 postinstall_cmds_RC \ 18990 postuninstall_cmds_RC \ 18991 old_archive_from_expsyms_cmds_RC \ 18992 allow_undefined_flag_RC \ 18993 no_undefined_flag_RC \ 18994 export_symbols_cmds_RC \ 18995 hardcode_libdir_flag_spec_RC \ 18996 hardcode_libdir_flag_spec_ld_RC \ 18997 hardcode_libdir_separator_RC \ 18998 hardcode_automatic_RC \ 18999 module_cmds_RC \ 19000 module_expsym_cmds_RC \ 19001 lt_cv_prog_compiler_c_o_RC \ 19002 fix_srcfile_path_RC \ 19003 exclude_expsyms_RC \ 19004 include_expsyms_RC; do 19005 19006 case $var in 19007 old_archive_cmds_RC | \ 19008 old_archive_from_new_cmds_RC | \ 19009 archive_cmds_RC | \ 19010 archive_expsym_cmds_RC | \ 19011 module_cmds_RC | \ 19012 module_expsym_cmds_RC | \ 19013 old_archive_from_expsyms_cmds_RC | \ 19014 export_symbols_cmds_RC | \ 19015 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19016 postinstall_cmds | postuninstall_cmds | \ 19017 old_postinstall_cmds | old_postuninstall_cmds | \ 19018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19019 # Double-quote double-evaled strings. 19020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19021 ;; 19022 *) 19023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19024 ;; 19025 esac 19026 done 19027 19028 case $lt_echo in 19029 *'\$0 --fallback-echo"') 19030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19031 ;; 19032 esac 19033 19034cfgfile="$ofile" 19035 19036 cat <<__EOF__ >> "$cfgfile" 19037# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19038 19039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19040 19041# Shell to use when invoking shell scripts. 19042SHELL=$lt_SHELL 19043 19044# Whether or not to build shared libraries. 19045build_libtool_libs=$enable_shared 19046 19047# Whether or not to build static libraries. 19048build_old_libs=$enable_static 19049 19050# Whether or not to add -lc for building shared libraries. 19051build_libtool_need_lc=$archive_cmds_need_lc_RC 19052 19053# Whether or not to disallow shared libs when runtime libs are static 19054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19055 19056# Whether or not to optimize for fast installation. 19057fast_install=$enable_fast_install 19058 19059# The host system. 19060host_alias=$host_alias 19061host=$host 19062host_os=$host_os 19063 19064# The build system. 19065build_alias=$build_alias 19066build=$build 19067build_os=$build_os 19068 19069# An echo program that does not interpret backslashes. 19070echo=$lt_echo 19071 19072# The archiver. 19073AR=$lt_AR 19074AR_FLAGS=$lt_AR_FLAGS 19075 19076# A C compiler. 19077LTCC=$lt_LTCC 19078 19079# LTCC compiler flags. 19080LTCFLAGS=$lt_LTCFLAGS 19081 19082# A language-specific compiler. 19083CC=$lt_compiler_RC 19084 19085# Is the compiler the GNU C compiler? 19086with_gcc=$GCC_RC 19087 19088# An ERE matcher. 19089EGREP=$lt_EGREP 19090 19091# The linker used to build libraries. 19092LD=$lt_LD_RC 19093 19094# Whether we need hard or soft links. 19095LN_S=$lt_LN_S 19096 19097# A BSD-compatible nm program. 19098NM=$lt_NM 19099 19100# A symbol stripping program 19101STRIP=$lt_STRIP 19102 19103# Used to examine libraries when file_magic_cmd begins "file" 19104MAGIC_CMD=$MAGIC_CMD 19105 19106# Used on cygwin: DLL creation program. 19107DLLTOOL="$DLLTOOL" 19108 19109# Used on cygwin: object dumper. 19110OBJDUMP="$OBJDUMP" 19111 19112# Used on cygwin: assembler. 19113AS="$AS" 19114 19115# The name of the directory that contains temporary libtool files. 19116objdir=$objdir 19117 19118# How to create reloadable object files. 19119reload_flag=$lt_reload_flag 19120reload_cmds=$lt_reload_cmds 19121 19122# How to pass a linker flag through the compiler. 19123wl=$lt_lt_prog_compiler_wl_RC 19124 19125# Object file suffix (normally "o"). 19126objext="$ac_objext" 19127 19128# Old archive suffix (normally "a"). 19129libext="$libext" 19130 19131# Shared library suffix (normally ".so"). 19132shrext_cmds='$shrext_cmds' 19133 19134# Executable file suffix (normally ""). 19135exeext="$exeext" 19136 19137# Additional compiler flags for building library objects. 19138pic_flag=$lt_lt_prog_compiler_pic_RC 19139pic_mode=$pic_mode 19140 19141# What is the maximum length of a command? 19142max_cmd_len=$lt_cv_sys_max_cmd_len 19143 19144# Does compiler simultaneously support -c and -o options? 19145compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19146 19147# Must we lock files when doing compilation? 19148need_locks=$lt_need_locks 19149 19150# Do we need the lib prefix for modules? 19151need_lib_prefix=$need_lib_prefix 19152 19153# Do we need a version for libraries? 19154need_version=$need_version 19155 19156# Whether dlopen is supported. 19157dlopen_support=$enable_dlopen 19158 19159# Whether dlopen of programs is supported. 19160dlopen_self=$enable_dlopen_self 19161 19162# Whether dlopen of statically linked programs is supported. 19163dlopen_self_static=$enable_dlopen_self_static 19164 19165# Compiler flag to prevent dynamic linking. 19166link_static_flag=$lt_lt_prog_compiler_static_RC 19167 19168# Compiler flag to turn off builtin functions. 19169no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19170 19171# Compiler flag to allow reflexive dlopens. 19172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19173 19174# Compiler flag to generate shared objects directly from archives. 19175whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19176 19177# Compiler flag to generate thread-safe objects. 19178thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19179 19180# Library versioning type. 19181version_type=$version_type 19182 19183# Format of library name prefix. 19184libname_spec=$lt_libname_spec 19185 19186# List of archive names. First name is the real one, the rest are links. 19187# The last name is the one that the linker finds with -lNAME. 19188library_names_spec=$lt_library_names_spec 19189 19190# The coded name of the library, if different from the real name. 19191soname_spec=$lt_soname_spec 19192 19193# Commands used to build and install an old-style archive. 19194RANLIB=$lt_RANLIB 19195old_archive_cmds=$lt_old_archive_cmds_RC 19196old_postinstall_cmds=$lt_old_postinstall_cmds 19197old_postuninstall_cmds=$lt_old_postuninstall_cmds 19198 19199# Create an old-style archive from a shared archive. 19200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19201 19202# Create a temporary old-style archive to link instead of a shared archive. 19203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19204 19205# Commands used to build and install a shared archive. 19206archive_cmds=$lt_archive_cmds_RC 19207archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19208postinstall_cmds=$lt_postinstall_cmds 19209postuninstall_cmds=$lt_postuninstall_cmds 19210 19211# Commands used to build a loadable module (assumed same as above if empty) 19212module_cmds=$lt_module_cmds_RC 19213module_expsym_cmds=$lt_module_expsym_cmds_RC 19214 19215# Commands to strip libraries. 19216old_striplib=$lt_old_striplib 19217striplib=$lt_striplib 19218 19219# Dependencies to place before the objects being linked to create a 19220# shared library. 19221predep_objects=$lt_predep_objects_RC 19222 19223# Dependencies to place after the objects being linked to create a 19224# shared library. 19225postdep_objects=$lt_postdep_objects_RC 19226 19227# Dependencies to place before the objects being linked to create a 19228# shared library. 19229predeps=$lt_predeps_RC 19230 19231# Dependencies to place after the objects being linked to create a 19232# shared library. 19233postdeps=$lt_postdeps_RC 19234 19235# The library search path used internally by the compiler when linking 19236# a shared library. 19237compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19238 19239# Method to check whether dependent libraries are shared objects. 19240deplibs_check_method=$lt_deplibs_check_method 19241 19242# Command to use when deplibs_check_method == file_magic. 19243file_magic_cmd=$lt_file_magic_cmd 19244 19245# Flag that allows shared libraries with undefined symbols to be built. 19246allow_undefined_flag=$lt_allow_undefined_flag_RC 19247 19248# Flag that forces no undefined symbols. 19249no_undefined_flag=$lt_no_undefined_flag_RC 19250 19251# Commands used to finish a libtool library installation in a directory. 19252finish_cmds=$lt_finish_cmds 19253 19254# Same as above, but a single script fragment to be evaled but not shown. 19255finish_eval=$lt_finish_eval 19256 19257# Take the output of nm and produce a listing of raw symbols and C names. 19258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19259 19260# Transform the output of nm in a proper C declaration 19261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19262 19263# Transform the output of nm in a C name address pair 19264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19265 19266# This is the shared library runtime path variable. 19267runpath_var=$runpath_var 19268 19269# This is the shared library path variable. 19270shlibpath_var=$shlibpath_var 19271 19272# Is shlibpath searched before the hard-coded library search path? 19273shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19274 19275# How to hardcode a shared library path into an executable. 19276hardcode_action=$hardcode_action_RC 19277 19278# Whether we should hardcode library paths into libraries. 19279hardcode_into_libs=$hardcode_into_libs 19280 19281# Flag to hardcode \$libdir into a binary during linking. 19282# This must work even if \$libdir does not exist. 19283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19284 19285# If ld is used when linking, flag to hardcode \$libdir into 19286# a binary during linking. This must work even if \$libdir does 19287# not exist. 19288hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19289 19290# Whether we need a single -rpath flag with a separated argument. 19291hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19292 19293# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19294# resulting binary. 19295hardcode_direct=$hardcode_direct_RC 19296 19297# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19298# resulting binary. 19299hardcode_minus_L=$hardcode_minus_L_RC 19300 19301# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19302# the resulting binary. 19303hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19304 19305# Set to yes if building a shared library automatically hardcodes DIR into the library 19306# and all subsequent libraries and executables linked against it. 19307hardcode_automatic=$hardcode_automatic_RC 19308 19309# Variables whose values should be saved in libtool wrapper scripts and 19310# restored at relink time. 19311variables_saved_for_relink="$variables_saved_for_relink" 19312 19313# Whether libtool must link a program against all its dependency libraries. 19314link_all_deplibs=$link_all_deplibs_RC 19315 19316# Compile-time system search path for libraries 19317sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19318 19319# Run-time system search path for libraries 19320sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19321 19322# Fix the shell variable \$srcfile for the compiler. 19323fix_srcfile_path=$lt_fix_srcfile_path 19324 19325# Set to yes if exported symbols are required. 19326always_export_symbols=$always_export_symbols_RC 19327 19328# The commands to list exported symbols. 19329export_symbols_cmds=$lt_export_symbols_cmds_RC 19330 19331# The commands to extract the exported symbol list from a shared archive. 19332extract_expsyms_cmds=$lt_extract_expsyms_cmds 19333 19334# Symbols that should not be listed in the preloaded symbols. 19335exclude_expsyms=$lt_exclude_expsyms_RC 19336 19337# Symbols that must always be exported. 19338include_expsyms=$lt_include_expsyms_RC 19339 19340# ### END LIBTOOL TAG CONFIG: $tagname 19341 19342__EOF__ 19343 19344 19345else 19346 # If there is no Makefile yet, we rely on a make rule to execute 19347 # `config.status --recheck' to rerun these tests and create the 19348 # libtool script then. 19349 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19350 if test -f "$ltmain_in"; then 19351 test -f Makefile && make "$ltmain" 19352 fi 19353fi 19354 19355 19356ac_ext=c 19357ac_cpp='$CPP $CPPFLAGS' 19358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19360ac_compiler_gnu=$ac_cv_c_compiler_gnu 19361 19362CC="$lt_save_CC" 19363 19364 ;; 19365 19366 *) 19367 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19368echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19369 { (exit 1); exit 1; }; } 19370 ;; 19371 esac 19372 19373 # Append the new tag name to the list of available tags. 19374 if test -n "$tagname" ; then 19375 available_tags="$available_tags $tagname" 19376 fi 19377 fi 19378 done 19379 IFS="$lt_save_ifs" 19380 19381 # Now substitute the updated list of available tags. 19382 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19383 mv "${ofile}T" "$ofile" 19384 chmod +x "$ofile" 19385 else 19386 rm -f "${ofile}T" 19387 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19388echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19389 { (exit 1); exit 1; }; } 19390 fi 19391fi 19392 19393 19394 19395# This can be used to rebuild libtool when needed 19396LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19397 19398# Always use our own libtool. 19399LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19400 19401# Prevent multiple expansion 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423# Check for dependencies 19424 19425 19426if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19427 if test -n "$ac_tool_prefix"; then 19428 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19429set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19430{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19432if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19433 echo $ECHO_N "(cached) $ECHO_C" >&6 19434else 19435 case $PKG_CONFIG in 19436 [\\/]* | ?:[\\/]*) 19437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19438 ;; 19439 *) 19440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19441for as_dir in $PATH 19442do 19443 IFS=$as_save_IFS 19444 test -z "$as_dir" && as_dir=. 19445 for ac_exec_ext in '' $ac_executable_extensions; do 19446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19449 break 2 19450 fi 19451done 19452done 19453IFS=$as_save_IFS 19454 19455 ;; 19456esac 19457fi 19458PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19459if test -n "$PKG_CONFIG"; then 19460 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19461echo "${ECHO_T}$PKG_CONFIG" >&6; } 19462else 19463 { echo "$as_me:$LINENO: result: no" >&5 19464echo "${ECHO_T}no" >&6; } 19465fi 19466 19467 19468fi 19469if test -z "$ac_cv_path_PKG_CONFIG"; then 19470 ac_pt_PKG_CONFIG=$PKG_CONFIG 19471 # Extract the first word of "pkg-config", so it can be a program name with args. 19472set dummy pkg-config; ac_word=$2 19473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19475if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19476 echo $ECHO_N "(cached) $ECHO_C" >&6 19477else 19478 case $ac_pt_PKG_CONFIG in 19479 [\\/]* | ?:[\\/]*) 19480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19481 ;; 19482 *) 19483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19484for as_dir in $PATH 19485do 19486 IFS=$as_save_IFS 19487 test -z "$as_dir" && as_dir=. 19488 for ac_exec_ext in '' $ac_executable_extensions; do 19489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19490 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19492 break 2 19493 fi 19494done 19495done 19496IFS=$as_save_IFS 19497 19498 ;; 19499esac 19500fi 19501ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19502if test -n "$ac_pt_PKG_CONFIG"; then 19503 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19504echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19505else 19506 { echo "$as_me:$LINENO: result: no" >&5 19507echo "${ECHO_T}no" >&6; } 19508fi 19509 19510 if test "x$ac_pt_PKG_CONFIG" = x; then 19511 PKG_CONFIG="" 19512 else 19513 case $cross_compiling:$ac_tool_warned in 19514yes:) 19515{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19516whose name does not start with the host triplet. If you think this 19517configuration is useful to you, please write to autoconf@gnu.org." >&5 19518echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19519whose name does not start with the host triplet. If you think this 19520configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19521ac_tool_warned=yes ;; 19522esac 19523 PKG_CONFIG=$ac_pt_PKG_CONFIG 19524 fi 19525else 19526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19527fi 19528 19529fi 19530if test -n "$PKG_CONFIG"; then 19531 _pkg_min_version=0.9.0 19532 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19533echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19534 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19535 { echo "$as_me:$LINENO: result: yes" >&5 19536echo "${ECHO_T}yes" >&6; } 19537 else 19538 { echo "$as_me:$LINENO: result: no" >&5 19539echo "${ECHO_T}no" >&6; } 19540 PKG_CONFIG="" 19541 fi 19542 19543fi 19544 19545pkg_failed=no 19546{ echo "$as_me:$LINENO: checking for XINERAMA" >&5 19547echo $ECHO_N "checking for XINERAMA... $ECHO_C" >&6; } 19548 19549if test -n "$XINERAMA_CFLAGS"; then 19550 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 19551 elif test -n "$PKG_CONFIG"; then 19552 if test -n "$PKG_CONFIG" && \ 19553 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto\"") >&5 19554 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto") 2>&5 19555 ac_status=$? 19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19557 (exit $ac_status); }; then 19558 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto" 2>/dev/null` 19559else 19560 pkg_failed=yes 19561fi 19562 else 19563 pkg_failed=untried 19564fi 19565if test -n "$XINERAMA_LIBS"; then 19566 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 19567 elif test -n "$PKG_CONFIG"; then 19568 if test -n "$PKG_CONFIG" && \ 19569 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto\"") >&5 19570 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto") 2>&5 19571 ac_status=$? 19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19573 (exit $ac_status); }; then 19574 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto" 2>/dev/null` 19575else 19576 pkg_failed=yes 19577fi 19578 else 19579 pkg_failed=untried 19580fi 19581 19582 19583 19584if test $pkg_failed = yes; then 19585 19586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19587 _pkg_short_errors_supported=yes 19588else 19589 _pkg_short_errors_supported=no 19590fi 19591 if test $_pkg_short_errors_supported = yes; then 19592 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto" 2>&1` 19593 else 19594 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto" 2>&1` 19595 fi 19596 # Put the nasty error message in config.log where it belongs 19597 echo "$XINERAMA_PKG_ERRORS" >&5 19598 19599 { { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto xineramaproto) were not met: 19600 19601$XINERAMA_PKG_ERRORS 19602 19603Consider adjusting the PKG_CONFIG_PATH environment variable if you 19604installed software in a non-standard prefix. 19605 19606Alternatively, you may set the environment variables XINERAMA_CFLAGS 19607and XINERAMA_LIBS to avoid the need to call pkg-config. 19608See the pkg-config man page for more details. 19609" >&5 19610echo "$as_me: error: Package requirements (x11 xext xextproto xineramaproto) were not met: 19611 19612$XINERAMA_PKG_ERRORS 19613 19614Consider adjusting the PKG_CONFIG_PATH environment variable if you 19615installed software in a non-standard prefix. 19616 19617Alternatively, you may set the environment variables XINERAMA_CFLAGS 19618and XINERAMA_LIBS to avoid the need to call pkg-config. 19619See the pkg-config man page for more details. 19620" >&2;} 19621 { (exit 1); exit 1; }; } 19622elif test $pkg_failed = untried; then 19623 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19624is in your PATH or set the PKG_CONFIG environment variable to the full 19625path to pkg-config. 19626 19627Alternatively, you may set the environment variables XINERAMA_CFLAGS 19628and XINERAMA_LIBS to avoid the need to call pkg-config. 19629See the pkg-config man page for more details. 19630 19631To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19632See \`config.log' for more details." >&5 19633echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19634is in your PATH or set the PKG_CONFIG environment variable to the full 19635path to pkg-config. 19636 19637Alternatively, you may set the environment variables XINERAMA_CFLAGS 19638and XINERAMA_LIBS to avoid the need to call pkg-config. 19639See the pkg-config man page for more details. 19640 19641To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19642See \`config.log' for more details." >&2;} 19643 { (exit 1); exit 1; }; } 19644else 19645 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 19646 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 19647 { echo "$as_me:$LINENO: result: yes" >&5 19648echo "${ECHO_T}yes" >&6; } 19649 : 19650fi 19651 19652 19653 19654 19655 19656 19657# Allow checking code with lint, sparse, etc. 19658 19659# Check whether --with-lint was given. 19660if test "${with_lint+set}" = set; then 19661 withval=$with_lint; use_lint=$withval 19662else 19663 use_lint=no 19664fi 19665 19666if test "x$use_lint" = "xyes" ; then 19667 LINT="lint" 19668else 19669 LINT="$use_lint" 19670fi 19671if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 19672 case $LINT in 19673 lint|*/lint) 19674 case $host_os in 19675 solaris*) 19676 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19677 ;; 19678 esac 19679 ;; 19680 esac 19681fi 19682 19683 19684 19685 if test x$LINT != xno; then 19686 LINT_TRUE= 19687 LINT_FALSE='#' 19688else 19689 LINT_TRUE='#' 19690 LINT_FALSE= 19691fi 19692 19693 19694 19695LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}" 19696 19697 19698# Check whether --enable-malloc0returnsnull was given. 19699if test "${enable_malloc0returnsnull+set}" = set; then 19700 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19701else 19702 MALLOC_ZERO_RETURNS_NULL=auto 19703fi 19704 19705 19706{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 19707echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; } 19708if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19709 if test "$cross_compiling" = yes; then 19710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19711See \`config.log' for more details." >&5 19712echo "$as_me: error: cannot run test program while cross compiling 19713See \`config.log' for more details." >&2;} 19714 { (exit 1); exit 1; }; } 19715else 19716 cat >conftest.$ac_ext <<_ACEOF 19717 19718char *malloc(); 19719char *realloc(); 19720char *calloc(); 19721main() { 19722 char *m0, *r0, *c0, *p; 19723 m0 = malloc(0); 19724 p = malloc(10); 19725 r0 = realloc(p,0); 19726 c0 = calloc(0); 19727 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 19728} 19729_ACEOF 19730rm -f conftest$ac_exeext 19731if { (ac_try="$ac_link" 19732case "(($ac_try" in 19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19734 *) ac_try_echo=$ac_try;; 19735esac 19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19737 (eval "$ac_link") 2>&5 19738 ac_status=$? 19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19741 { (case "(($ac_try" in 19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19743 *) ac_try_echo=$ac_try;; 19744esac 19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19746 (eval "$ac_try") 2>&5 19747 ac_status=$? 19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); }; }; then 19750 MALLOC_ZERO_RETURNS_NULL=yes 19751else 19752 echo "$as_me: program exited with status $ac_status" >&5 19753echo "$as_me: failed program was:" >&5 19754sed 's/^/| /' conftest.$ac_ext >&5 19755 19756( exit $ac_status ) 19757MALLOC_ZERO_RETURNS_NULL=no 19758fi 19759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19760fi 19761 19762 19763fi 19764{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19765echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; } 19766 19767if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19768 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19769 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19770 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19771else 19772 MALLOC_ZERO_CFLAGS="" 19773 XMALLOC_ZERO_CFLAGS="" 19774 XTMALLOC_ZERO_CFLAGS="" 19775fi 19776 19777 19778 19779 19780 19781 19782 19783 19784if test x$APP_MAN_SUFFIX = x ; then 19785 APP_MAN_SUFFIX=1 19786fi 19787if test x$APP_MAN_DIR = x ; then 19788 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19789fi 19790 19791if test x$LIB_MAN_SUFFIX = x ; then 19792 LIB_MAN_SUFFIX=3 19793fi 19794if test x$LIB_MAN_DIR = x ; then 19795 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19796fi 19797 19798if test x$FILE_MAN_SUFFIX = x ; then 19799 case $host_os in 19800 solaris*) FILE_MAN_SUFFIX=4 ;; 19801 *) FILE_MAN_SUFFIX=5 ;; 19802 esac 19803fi 19804if test x$FILE_MAN_DIR = x ; then 19805 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19806fi 19807 19808if test x$MISC_MAN_SUFFIX = x ; then 19809 case $host_os in 19810 solaris*) MISC_MAN_SUFFIX=5 ;; 19811 *) MISC_MAN_SUFFIX=7 ;; 19812 esac 19813fi 19814if test x$MISC_MAN_DIR = x ; then 19815 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19816fi 19817 19818if test x$DRIVER_MAN_SUFFIX = x ; then 19819 case $host_os in 19820 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19821 *) DRIVER_MAN_SUFFIX=4 ;; 19822 esac 19823fi 19824if test x$DRIVER_MAN_DIR = x ; then 19825 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19826fi 19827 19828if test x$ADMIN_MAN_SUFFIX = x ; then 19829 case $host_os in 19830 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19831 *) ADMIN_MAN_SUFFIX=8 ;; 19832 esac 19833fi 19834if test x$ADMIN_MAN_DIR = x ; then 19835 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19836fi 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854# Check whether --with-release-version was given. 19855if test "${with_release_version+set}" = set; then 19856 withval=$with_release_version; RELEASE_VERSION="$withval" 19857else 19858 RELEASE_VERSION="" 19859fi 19860 19861 if test "x$RELEASE_VERSION" != "x"; then 19862 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19863 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19864 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19865echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19866 fi 19867 19868cat >>confdefs.h <<_ACEOF 19869#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19870_ACEOF 19871 19872 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19873 if test "x$PVM" = "x"; then 19874 PVM="0" 19875 fi 19876 19877cat >>confdefs.h <<_ACEOF 19878#define PACKAGE_VERSION_MINOR $PVM 19879_ACEOF 19880 19881 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19882 if test "x$PVP" = "x"; then 19883 PVP="0" 19884 fi 19885 19886cat >>confdefs.h <<_ACEOF 19887#define PACKAGE_VERSION_PATCHLEVEL $PVP 19888_ACEOF 19889 19890 19891 19892ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc" 19893 19894cat >confcache <<\_ACEOF 19895# This file is a shell script that caches the results of configure 19896# tests run on this system so they can be shared between configure 19897# scripts and configure runs, see configure's option --config-cache. 19898# It is not useful on other systems. If it contains results you don't 19899# want to keep, you may remove or edit it. 19900# 19901# config.status only pays attention to the cache file if you give it 19902# the --recheck option to rerun configure. 19903# 19904# `ac_cv_env_foo' variables (set or unset) will be overridden when 19905# loading this file, other *unset* `ac_cv_foo' will be assigned the 19906# following values. 19907 19908_ACEOF 19909 19910# The following way of writing the cache mishandles newlines in values, 19911# but we know of no workaround that is simple, portable, and efficient. 19912# So, we kill variables containing newlines. 19913# Ultrix sh set writes to stderr and can't be redirected directly, 19914# and sets the high bit in the cache file unless we assign to the vars. 19915( 19916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19917 eval ac_val=\$$ac_var 19918 case $ac_val in #( 19919 *${as_nl}*) 19920 case $ac_var in #( 19921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19922echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19923 esac 19924 case $ac_var in #( 19925 _ | IFS | as_nl) ;; #( 19926 *) $as_unset $ac_var ;; 19927 esac ;; 19928 esac 19929 done 19930 19931 (set) 2>&1 | 19932 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19933 *${as_nl}ac_space=\ *) 19934 # `set' does not quote correctly, so add quotes (double-quote 19935 # substitution turns \\\\ into \\, and sed turns \\ into \). 19936 sed -n \ 19937 "s/'/'\\\\''/g; 19938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19939 ;; #( 19940 *) 19941 # `set' quotes correctly as required by POSIX, so do not add quotes. 19942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19943 ;; 19944 esac | 19945 sort 19946) | 19947 sed ' 19948 /^ac_cv_env_/b end 19949 t clear 19950 :clear 19951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19952 t end 19953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19954 :end' >>confcache 19955if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19956 if test -w "$cache_file"; then 19957 test "x$cache_file" != "x/dev/null" && 19958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19959echo "$as_me: updating cache $cache_file" >&6;} 19960 cat confcache >$cache_file 19961 else 19962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19963echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19964 fi 19965fi 19966rm -f confcache 19967 19968test "x$prefix" = xNONE && prefix=$ac_default_prefix 19969# Let make expand exec_prefix. 19970test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19971 19972DEFS=-DHAVE_CONFIG_H 19973 19974ac_libobjs= 19975ac_ltlibobjs= 19976for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19977 # 1. Remove the extension, and $U if already installed. 19978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19979 ac_i=`echo "$ac_i" | sed "$ac_script"` 19980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19981 # will be set to the directory where LIBOBJS objects are built. 19982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19984done 19985LIBOBJS=$ac_libobjs 19986 19987LTLIBOBJS=$ac_ltlibobjs 19988 19989 19990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19992Usually this means the macro was only invoked conditionally." >&5 19993echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19994Usually this means the macro was only invoked conditionally." >&2;} 19995 { (exit 1); exit 1; }; } 19996fi 19997if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19999Usually this means the macro was only invoked conditionally." >&5 20000echo "$as_me: error: conditional \"AMDEP\" was never defined. 20001Usually this means the macro was only invoked conditionally." >&2;} 20002 { (exit 1); exit 1; }; } 20003fi 20004if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20006Usually this means the macro was only invoked conditionally." >&5 20007echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20008Usually this means the macro was only invoked conditionally." >&2;} 20009 { (exit 1); exit 1; }; } 20010fi 20011if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20013Usually this means the macro was only invoked conditionally." >&5 20014echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20015Usually this means the macro was only invoked conditionally." >&2;} 20016 { (exit 1); exit 1; }; } 20017fi 20018if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20019 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 20020Usually this means the macro was only invoked conditionally." >&5 20021echo "$as_me: error: conditional \"LINT\" was never defined. 20022Usually this means the macro was only invoked conditionally." >&2;} 20023 { (exit 1); exit 1; }; } 20024fi 20025 20026: ${CONFIG_STATUS=./config.status} 20027ac_clean_files_save=$ac_clean_files 20028ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20029{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20030echo "$as_me: creating $CONFIG_STATUS" >&6;} 20031cat >$CONFIG_STATUS <<_ACEOF 20032#! $SHELL 20033# Generated by $as_me. 20034# Run this file to recreate the current configuration. 20035# Compiler output produced by configure, useful for debugging 20036# configure, is in config.log if it exists. 20037 20038debug=false 20039ac_cs_recheck=false 20040ac_cs_silent=false 20041SHELL=\${CONFIG_SHELL-$SHELL} 20042_ACEOF 20043 20044cat >>$CONFIG_STATUS <<\_ACEOF 20045## --------------------- ## 20046## M4sh Initialization. ## 20047## --------------------- ## 20048 20049# Be more Bourne compatible 20050DUALCASE=1; export DUALCASE # for MKS sh 20051if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20052 emulate sh 20053 NULLCMD=: 20054 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20055 # is contrary to our usage. Disable this feature. 20056 alias -g '${1+"$@"}'='"$@"' 20057 setopt NO_GLOB_SUBST 20058else 20059 case `(set -o) 2>/dev/null` in 20060 *posix*) set -o posix ;; 20061esac 20062 20063fi 20064 20065 20066 20067 20068# PATH needs CR 20069# Avoid depending upon Character Ranges. 20070as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20071as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20072as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20073as_cr_digits='0123456789' 20074as_cr_alnum=$as_cr_Letters$as_cr_digits 20075 20076# The user is always right. 20077if test "${PATH_SEPARATOR+set}" != set; then 20078 echo "#! /bin/sh" >conf$$.sh 20079 echo "exit 0" >>conf$$.sh 20080 chmod +x conf$$.sh 20081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20082 PATH_SEPARATOR=';' 20083 else 20084 PATH_SEPARATOR=: 20085 fi 20086 rm -f conf$$.sh 20087fi 20088 20089# Support unset when possible. 20090if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20091 as_unset=unset 20092else 20093 as_unset=false 20094fi 20095 20096 20097# IFS 20098# We need space, tab and new line, in precisely that order. Quoting is 20099# there to prevent editors from complaining about space-tab. 20100# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20101# splitting by setting IFS to empty value.) 20102as_nl=' 20103' 20104IFS=" "" $as_nl" 20105 20106# Find who we are. Look in the path if we contain no directory separator. 20107case $0 in 20108 *[\\/]* ) as_myself=$0 ;; 20109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20110for as_dir in $PATH 20111do 20112 IFS=$as_save_IFS 20113 test -z "$as_dir" && as_dir=. 20114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20115done 20116IFS=$as_save_IFS 20117 20118 ;; 20119esac 20120# We did not find ourselves, most probably we were run as `sh COMMAND' 20121# in which case we are not to be found in the path. 20122if test "x$as_myself" = x; then 20123 as_myself=$0 20124fi 20125if test ! -f "$as_myself"; then 20126 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20127 { (exit 1); exit 1; } 20128fi 20129 20130# Work around bugs in pre-3.0 UWIN ksh. 20131for as_var in ENV MAIL MAILPATH 20132do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20133done 20134PS1='$ ' 20135PS2='> ' 20136PS4='+ ' 20137 20138# NLS nuisances. 20139for as_var in \ 20140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20142 LC_TELEPHONE LC_TIME 20143do 20144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20145 eval $as_var=C; export $as_var 20146 else 20147 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20148 fi 20149done 20150 20151# Required to use basename. 20152if expr a : '\(a\)' >/dev/null 2>&1 && 20153 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20154 as_expr=expr 20155else 20156 as_expr=false 20157fi 20158 20159if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20160 as_basename=basename 20161else 20162 as_basename=false 20163fi 20164 20165 20166# Name of the executable. 20167as_me=`$as_basename -- "$0" || 20168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20169 X"$0" : 'X\(//\)$' \| \ 20170 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20171echo X/"$0" | 20172 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20173 s//\1/ 20174 q 20175 } 20176 /^X\/\(\/\/\)$/{ 20177 s//\1/ 20178 q 20179 } 20180 /^X\/\(\/\).*/{ 20181 s//\1/ 20182 q 20183 } 20184 s/.*/./; q'` 20185 20186# CDPATH. 20187$as_unset CDPATH 20188 20189 20190 20191 as_lineno_1=$LINENO 20192 as_lineno_2=$LINENO 20193 test "x$as_lineno_1" != "x$as_lineno_2" && 20194 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20195 20196 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20197 # uniformly replaced by the line number. The first 'sed' inserts a 20198 # line-number line after each line using $LINENO; the second 'sed' 20199 # does the real work. The second script uses 'N' to pair each 20200 # line-number line with the line containing $LINENO, and appends 20201 # trailing '-' during substitution so that $LINENO is not a special 20202 # case at line end. 20203 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20204 # scripts with optimization help from Paolo Bonzini. Blame Lee 20205 # E. McMahon (1931-1989) for sed's syntax. :-) 20206 sed -n ' 20207 p 20208 /[$]LINENO/= 20209 ' <$as_myself | 20210 sed ' 20211 s/[$]LINENO.*/&-/ 20212 t lineno 20213 b 20214 :lineno 20215 N 20216 :loop 20217 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20218 t loop 20219 s/-\n.*// 20220 ' >$as_me.lineno && 20221 chmod +x "$as_me.lineno" || 20222 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20223 { (exit 1); exit 1; }; } 20224 20225 # Don't try to exec as it changes $[0], causing all sort of problems 20226 # (the dirname of $[0] is not the place where we might find the 20227 # original and so on. Autoconf is especially sensitive to this). 20228 . "./$as_me.lineno" 20229 # Exit status is that of the last command. 20230 exit 20231} 20232 20233 20234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20235 as_dirname=dirname 20236else 20237 as_dirname=false 20238fi 20239 20240ECHO_C= ECHO_N= ECHO_T= 20241case `echo -n x` in 20242-n*) 20243 case `echo 'x\c'` in 20244 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20245 *) ECHO_C='\c';; 20246 esac;; 20247*) 20248 ECHO_N='-n';; 20249esac 20250 20251if expr a : '\(a\)' >/dev/null 2>&1 && 20252 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20253 as_expr=expr 20254else 20255 as_expr=false 20256fi 20257 20258rm -f conf$$ conf$$.exe conf$$.file 20259if test -d conf$$.dir; then 20260 rm -f conf$$.dir/conf$$.file 20261else 20262 rm -f conf$$.dir 20263 mkdir conf$$.dir 20264fi 20265echo >conf$$.file 20266if ln -s conf$$.file conf$$ 2>/dev/null; then 20267 as_ln_s='ln -s' 20268 # ... but there are two gotchas: 20269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20271 # In both cases, we have to default to `cp -p'. 20272 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20273 as_ln_s='cp -p' 20274elif ln conf$$.file conf$$ 2>/dev/null; then 20275 as_ln_s=ln 20276else 20277 as_ln_s='cp -p' 20278fi 20279rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20280rmdir conf$$.dir 2>/dev/null 20281 20282if mkdir -p . 2>/dev/null; then 20283 as_mkdir_p=: 20284else 20285 test -d ./-p && rmdir ./-p 20286 as_mkdir_p=false 20287fi 20288 20289if test -x / >/dev/null 2>&1; then 20290 as_test_x='test -x' 20291else 20292 if ls -dL / >/dev/null 2>&1; then 20293 as_ls_L_option=L 20294 else 20295 as_ls_L_option= 20296 fi 20297 as_test_x=' 20298 eval sh -c '\'' 20299 if test -d "$1"; then 20300 test -d "$1/."; 20301 else 20302 case $1 in 20303 -*)set "./$1";; 20304 esac; 20305 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20306 ???[sx]*):;;*)false;;esac;fi 20307 '\'' sh 20308 ' 20309fi 20310as_executable_p=$as_test_x 20311 20312# Sed expression to map a string onto a valid CPP name. 20313as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20314 20315# Sed expression to map a string onto a valid variable name. 20316as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20317 20318 20319exec 6>&1 20320 20321# Save the log message, to keep $[0] and so on meaningful, and to 20322# report actual input values of CONFIG_FILES etc. instead of their 20323# values after options handling. 20324ac_log=" 20325This file was extended by libXinerama $as_me 1.0.3, which was 20326generated by GNU Autoconf 2.61. Invocation command line was 20327 20328 CONFIG_FILES = $CONFIG_FILES 20329 CONFIG_HEADERS = $CONFIG_HEADERS 20330 CONFIG_LINKS = $CONFIG_LINKS 20331 CONFIG_COMMANDS = $CONFIG_COMMANDS 20332 $ $0 $@ 20333 20334on `(hostname || uname -n) 2>/dev/null | sed 1q` 20335" 20336 20337_ACEOF 20338 20339cat >>$CONFIG_STATUS <<_ACEOF 20340# Files that config.status was made for. 20341config_files="$ac_config_files" 20342config_headers="$ac_config_headers" 20343config_commands="$ac_config_commands" 20344 20345_ACEOF 20346 20347cat >>$CONFIG_STATUS <<\_ACEOF 20348ac_cs_usage="\ 20349\`$as_me' instantiates files from templates according to the 20350current configuration. 20351 20352Usage: $0 [OPTIONS] [FILE]... 20353 20354 -h, --help print this help, then exit 20355 -V, --version print version number and configuration settings, then exit 20356 -q, --quiet do not print progress messages 20357 -d, --debug don't remove temporary files 20358 --recheck update $as_me by reconfiguring in the same conditions 20359 --file=FILE[:TEMPLATE] 20360 instantiate the configuration file FILE 20361 --header=FILE[:TEMPLATE] 20362 instantiate the configuration header FILE 20363 20364Configuration files: 20365$config_files 20366 20367Configuration headers: 20368$config_headers 20369 20370Configuration commands: 20371$config_commands 20372 20373Report bugs to <bug-autoconf@gnu.org>." 20374 20375_ACEOF 20376cat >>$CONFIG_STATUS <<_ACEOF 20377ac_cs_version="\\ 20378libXinerama config.status 1.0.3 20379configured by $0, generated by GNU Autoconf 2.61, 20380 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20381 20382Copyright (C) 2006 Free Software Foundation, Inc. 20383This config.status script is free software; the Free Software Foundation 20384gives unlimited permission to copy, distribute and modify it." 20385 20386ac_pwd='$ac_pwd' 20387srcdir='$srcdir' 20388INSTALL='$INSTALL' 20389MKDIR_P='$MKDIR_P' 20390_ACEOF 20391 20392cat >>$CONFIG_STATUS <<\_ACEOF 20393# If no file are specified by the user, then we need to provide default 20394# value. By we need to know if files were specified by the user. 20395ac_need_defaults=: 20396while test $# != 0 20397do 20398 case $1 in 20399 --*=*) 20400 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20402 ac_shift=: 20403 ;; 20404 *) 20405 ac_option=$1 20406 ac_optarg=$2 20407 ac_shift=shift 20408 ;; 20409 esac 20410 20411 case $ac_option in 20412 # Handling of the options. 20413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20414 ac_cs_recheck=: ;; 20415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20416 echo "$ac_cs_version"; exit ;; 20417 --debug | --debu | --deb | --de | --d | -d ) 20418 debug=: ;; 20419 --file | --fil | --fi | --f ) 20420 $ac_shift 20421 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20422 ac_need_defaults=false;; 20423 --header | --heade | --head | --hea ) 20424 $ac_shift 20425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20426 ac_need_defaults=false;; 20427 --he | --h) 20428 # Conflict between --help and --header 20429 { echo "$as_me: error: ambiguous option: $1 20430Try \`$0 --help' for more information." >&2 20431 { (exit 1); exit 1; }; };; 20432 --help | --hel | -h ) 20433 echo "$ac_cs_usage"; exit ;; 20434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20435 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20436 ac_cs_silent=: ;; 20437 20438 # This is an error. 20439 -*) { echo "$as_me: error: unrecognized option: $1 20440Try \`$0 --help' for more information." >&2 20441 { (exit 1); exit 1; }; } ;; 20442 20443 *) ac_config_targets="$ac_config_targets $1" 20444 ac_need_defaults=false ;; 20445 20446 esac 20447 shift 20448done 20449 20450ac_configure_extra_args= 20451 20452if $ac_cs_silent; then 20453 exec 6>/dev/null 20454 ac_configure_extra_args="$ac_configure_extra_args --silent" 20455fi 20456 20457_ACEOF 20458cat >>$CONFIG_STATUS <<_ACEOF 20459if \$ac_cs_recheck; then 20460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20461 CONFIG_SHELL=$SHELL 20462 export CONFIG_SHELL 20463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20464fi 20465 20466_ACEOF 20467cat >>$CONFIG_STATUS <<\_ACEOF 20468exec 5>>config.log 20469{ 20470 echo 20471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20472## Running $as_me. ## 20473_ASBOX 20474 echo "$ac_log" 20475} >&5 20476 20477_ACEOF 20478cat >>$CONFIG_STATUS <<_ACEOF 20479# 20480# INIT-COMMANDS 20481# 20482AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20483 20484_ACEOF 20485 20486cat >>$CONFIG_STATUS <<\_ACEOF 20487 20488# Handling of arguments. 20489for ac_config_target in $ac_config_targets 20490do 20491 case $ac_config_target in 20492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20493 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20494 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20496 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20497 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;; 20498 20499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20500echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20501 { (exit 1); exit 1; }; };; 20502 esac 20503done 20504 20505 20506# If the user did not use the arguments to specify the items to instantiate, 20507# then the envvar interface is used. Set only those that are not. 20508# We use the long form for the default assignment because of an extremely 20509# bizarre bug on SunOS 4.1.3. 20510if $ac_need_defaults; then 20511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20514fi 20515 20516# Have a temporary directory for convenience. Make it in the build tree 20517# simply because there is no reason against having it here, and in addition, 20518# creating and moving files from /tmp can sometimes cause problems. 20519# Hook for its removal unless debugging. 20520# Note that there is a small window in which the directory will not be cleaned: 20521# after its creation but before its name has been assigned to `$tmp'. 20522$debug || 20523{ 20524 tmp= 20525 trap 'exit_status=$? 20526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20527' 0 20528 trap '{ (exit 1); exit 1; }' 1 2 13 15 20529} 20530# Create a (secure) tmp directory for tmp files. 20531 20532{ 20533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20534 test -n "$tmp" && test -d "$tmp" 20535} || 20536{ 20537 tmp=./conf$$-$RANDOM 20538 (umask 077 && mkdir "$tmp") 20539} || 20540{ 20541 echo "$me: cannot create a temporary directory in ." >&2 20542 { (exit 1); exit 1; } 20543} 20544 20545# 20546# Set up the sed scripts for CONFIG_FILES section. 20547# 20548 20549# No need to generate the scripts if there are no CONFIG_FILES. 20550# This happens for instance when ./config.status config.h 20551if test -n "$CONFIG_FILES"; then 20552 20553_ACEOF 20554 20555 20556 20557ac_delim='%!_!# ' 20558for ac_last_try in false false false false false :; do 20559 cat >conf$$subs.sed <<_ACEOF 20560SHELL!$SHELL$ac_delim 20561PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20562PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20563PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20564PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20565PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20566PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20567exec_prefix!$exec_prefix$ac_delim 20568prefix!$prefix$ac_delim 20569program_transform_name!$program_transform_name$ac_delim 20570bindir!$bindir$ac_delim 20571sbindir!$sbindir$ac_delim 20572libexecdir!$libexecdir$ac_delim 20573datarootdir!$datarootdir$ac_delim 20574datadir!$datadir$ac_delim 20575sysconfdir!$sysconfdir$ac_delim 20576sharedstatedir!$sharedstatedir$ac_delim 20577localstatedir!$localstatedir$ac_delim 20578includedir!$includedir$ac_delim 20579oldincludedir!$oldincludedir$ac_delim 20580docdir!$docdir$ac_delim 20581infodir!$infodir$ac_delim 20582htmldir!$htmldir$ac_delim 20583dvidir!$dvidir$ac_delim 20584pdfdir!$pdfdir$ac_delim 20585psdir!$psdir$ac_delim 20586libdir!$libdir$ac_delim 20587localedir!$localedir$ac_delim 20588mandir!$mandir$ac_delim 20589DEFS!$DEFS$ac_delim 20590ECHO_C!$ECHO_C$ac_delim 20591ECHO_N!$ECHO_N$ac_delim 20592ECHO_T!$ECHO_T$ac_delim 20593LIBS!$LIBS$ac_delim 20594build_alias!$build_alias$ac_delim 20595host_alias!$host_alias$ac_delim 20596target_alias!$target_alias$ac_delim 20597INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20598INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20599INSTALL_DATA!$INSTALL_DATA$ac_delim 20600am__isrc!$am__isrc$ac_delim 20601CYGPATH_W!$CYGPATH_W$ac_delim 20602PACKAGE!$PACKAGE$ac_delim 20603VERSION!$VERSION$ac_delim 20604ACLOCAL!$ACLOCAL$ac_delim 20605AUTOCONF!$AUTOCONF$ac_delim 20606AUTOMAKE!$AUTOMAKE$ac_delim 20607AUTOHEADER!$AUTOHEADER$ac_delim 20608MAKEINFO!$MAKEINFO$ac_delim 20609install_sh!$install_sh$ac_delim 20610STRIP!$STRIP$ac_delim 20611INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20612mkdir_p!$mkdir_p$ac_delim 20613AWK!$AWK$ac_delim 20614SET_MAKE!$SET_MAKE$ac_delim 20615am__leading_dot!$am__leading_dot$ac_delim 20616AMTAR!$AMTAR$ac_delim 20617am__tar!$am__tar$ac_delim 20618am__untar!$am__untar$ac_delim 20619MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 20620MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 20621MAINT!$MAINT$ac_delim 20622CC!$CC$ac_delim 20623CFLAGS!$CFLAGS$ac_delim 20624LDFLAGS!$LDFLAGS$ac_delim 20625CPPFLAGS!$CPPFLAGS$ac_delim 20626ac_ct_CC!$ac_ct_CC$ac_delim 20627EXEEXT!$EXEEXT$ac_delim 20628OBJEXT!$OBJEXT$ac_delim 20629DEPDIR!$DEPDIR$ac_delim 20630am__include!$am__include$ac_delim 20631am__quote!$am__quote$ac_delim 20632AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20633AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20634AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20635CCDEPMODE!$CCDEPMODE$ac_delim 20636am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20637am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20638build!$build$ac_delim 20639build_cpu!$build_cpu$ac_delim 20640build_vendor!$build_vendor$ac_delim 20641build_os!$build_os$ac_delim 20642host!$host$ac_delim 20643host_cpu!$host_cpu$ac_delim 20644host_vendor!$host_vendor$ac_delim 20645host_os!$host_os$ac_delim 20646SED!$SED$ac_delim 20647GREP!$GREP$ac_delim 20648EGREP!$EGREP$ac_delim 20649LN_S!$LN_S$ac_delim 20650ECHO!$ECHO$ac_delim 20651AR!$AR$ac_delim 20652RANLIB!$RANLIB$ac_delim 20653CPP!$CPP$ac_delim 20654CXX!$CXX$ac_delim 20655CXXFLAGS!$CXXFLAGS$ac_delim 20656ac_ct_CXX!$ac_ct_CXX$ac_delim 20657_ACEOF 20658 20659 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20660 break 20661 elif $ac_last_try; then 20662 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20663echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20664 { (exit 1); exit 1; }; } 20665 else 20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20667 fi 20668done 20669 20670ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20671if test -n "$ac_eof"; then 20672 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20673 ac_eof=`expr $ac_eof + 1` 20674fi 20675 20676cat >>$CONFIG_STATUS <<_ACEOF 20677cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20679_ACEOF 20680sed ' 20681s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20682s/^/s,@/; s/!/@,|#_!!_#|/ 20683:n 20684t n 20685s/'"$ac_delim"'$/,g/; t 20686s/$/\\/; p 20687N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20688' >>$CONFIG_STATUS <conf$$subs.sed 20689rm -f conf$$subs.sed 20690cat >>$CONFIG_STATUS <<_ACEOF 20691CEOF$ac_eof 20692_ACEOF 20693 20694 20695ac_delim='%!_!# ' 20696for ac_last_try in false false false false false :; do 20697 cat >conf$$subs.sed <<_ACEOF 20698CXXDEPMODE!$CXXDEPMODE$ac_delim 20699am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20700am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20701CXXCPP!$CXXCPP$ac_delim 20702F77!$F77$ac_delim 20703FFLAGS!$FFLAGS$ac_delim 20704ac_ct_F77!$ac_ct_F77$ac_delim 20705LIBTOOL!$LIBTOOL$ac_delim 20706PKG_CONFIG!$PKG_CONFIG$ac_delim 20707XINERAMA_CFLAGS!$XINERAMA_CFLAGS$ac_delim 20708XINERAMA_LIBS!$XINERAMA_LIBS$ac_delim 20709LINT!$LINT$ac_delim 20710LINT_FLAGS!$LINT_FLAGS$ac_delim 20711LINT_TRUE!$LINT_TRUE$ac_delim 20712LINT_FALSE!$LINT_FALSE$ac_delim 20713MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim 20714XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim 20715XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim 20716APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 20717LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 20718FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 20719MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 20720DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 20721ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 20722APP_MAN_DIR!$APP_MAN_DIR$ac_delim 20723LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 20724FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 20725MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 20726DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 20727ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 20728LIBOBJS!$LIBOBJS$ac_delim 20729LTLIBOBJS!$LTLIBOBJS$ac_delim 20730_ACEOF 20731 20732 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then 20733 break 20734 elif $ac_last_try; then 20735 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20736echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20737 { (exit 1); exit 1; }; } 20738 else 20739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20740 fi 20741done 20742 20743ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20744if test -n "$ac_eof"; then 20745 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20746 ac_eof=`expr $ac_eof + 1` 20747fi 20748 20749cat >>$CONFIG_STATUS <<_ACEOF 20750cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20751/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20752_ACEOF 20753sed ' 20754s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20755s/^/s,@/; s/!/@,|#_!!_#|/ 20756:n 20757t n 20758s/'"$ac_delim"'$/,g/; t 20759s/$/\\/; p 20760N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20761' >>$CONFIG_STATUS <conf$$subs.sed 20762rm -f conf$$subs.sed 20763cat >>$CONFIG_STATUS <<_ACEOF 20764:end 20765s/|#_!!_#|//g 20766CEOF$ac_eof 20767_ACEOF 20768 20769 20770# VPATH may cause trouble with some makes, so we remove $(srcdir), 20771# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20772# trailing colons and then remove the whole line if VPATH becomes empty 20773# (actually we leave an empty line to preserve line numbers). 20774if test "x$srcdir" = x.; then 20775 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20776s/:*\$(srcdir):*/:/ 20777s/:*\${srcdir}:*/:/ 20778s/:*@srcdir@:*/:/ 20779s/^\([^=]*=[ ]*\):*/\1/ 20780s/:*$// 20781s/^[^=]*=[ ]*$// 20782}' 20783fi 20784 20785cat >>$CONFIG_STATUS <<\_ACEOF 20786fi # test -n "$CONFIG_FILES" 20787 20788 20789for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20790do 20791 case $ac_tag in 20792 :[FHLC]) ac_mode=$ac_tag; continue;; 20793 esac 20794 case $ac_mode$ac_tag in 20795 :[FHL]*:*);; 20796 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20797echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20798 { (exit 1); exit 1; }; };; 20799 :[FH]-) ac_tag=-:-;; 20800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20801 esac 20802 ac_save_IFS=$IFS 20803 IFS=: 20804 set x $ac_tag 20805 IFS=$ac_save_IFS 20806 shift 20807 ac_file=$1 20808 shift 20809 20810 case $ac_mode in 20811 :L) ac_source=$1;; 20812 :[FH]) 20813 ac_file_inputs= 20814 for ac_f 20815 do 20816 case $ac_f in 20817 -) ac_f="$tmp/stdin";; 20818 *) # Look for the file first in the build tree, then in the source tree 20819 # (if the path is not absolute). The absolute path cannot be DOS-style, 20820 # because $ac_f cannot contain `:'. 20821 test -f "$ac_f" || 20822 case $ac_f in 20823 [\\/$]*) false;; 20824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20825 esac || 20826 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20827echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20828 { (exit 1); exit 1; }; };; 20829 esac 20830 ac_file_inputs="$ac_file_inputs $ac_f" 20831 done 20832 20833 # Let's still pretend it is `configure' which instantiates (i.e., don't 20834 # use $as_me), people would be surprised to read: 20835 # /* config.h. Generated by config.status. */ 20836 configure_input="Generated from "`IFS=: 20837 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20838 if test x"$ac_file" != x-; then 20839 configure_input="$ac_file. $configure_input" 20840 { echo "$as_me:$LINENO: creating $ac_file" >&5 20841echo "$as_me: creating $ac_file" >&6;} 20842 fi 20843 20844 case $ac_tag in 20845 *:-:* | *:-) cat >"$tmp/stdin";; 20846 esac 20847 ;; 20848 esac 20849 20850 ac_dir=`$as_dirname -- "$ac_file" || 20851$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20852 X"$ac_file" : 'X\(//\)[^/]' \| \ 20853 X"$ac_file" : 'X\(//\)$' \| \ 20854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20855echo X"$ac_file" | 20856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20857 s//\1/ 20858 q 20859 } 20860 /^X\(\/\/\)[^/].*/{ 20861 s//\1/ 20862 q 20863 } 20864 /^X\(\/\/\)$/{ 20865 s//\1/ 20866 q 20867 } 20868 /^X\(\/\).*/{ 20869 s//\1/ 20870 q 20871 } 20872 s/.*/./; q'` 20873 { as_dir="$ac_dir" 20874 case $as_dir in #( 20875 -*) as_dir=./$as_dir;; 20876 esac 20877 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20878 as_dirs= 20879 while :; do 20880 case $as_dir in #( 20881 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20882 *) as_qdir=$as_dir;; 20883 esac 20884 as_dirs="'$as_qdir' $as_dirs" 20885 as_dir=`$as_dirname -- "$as_dir" || 20886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20887 X"$as_dir" : 'X\(//\)[^/]' \| \ 20888 X"$as_dir" : 'X\(//\)$' \| \ 20889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20890echo X"$as_dir" | 20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20892 s//\1/ 20893 q 20894 } 20895 /^X\(\/\/\)[^/].*/{ 20896 s//\1/ 20897 q 20898 } 20899 /^X\(\/\/\)$/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\).*/{ 20904 s//\1/ 20905 q 20906 } 20907 s/.*/./; q'` 20908 test -d "$as_dir" && break 20909 done 20910 test -z "$as_dirs" || eval "mkdir $as_dirs" 20911 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20912echo "$as_me: error: cannot create directory $as_dir" >&2;} 20913 { (exit 1); exit 1; }; }; } 20914 ac_builddir=. 20915 20916case "$ac_dir" in 20917.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20918*) 20919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20920 # A ".." for each directory in $ac_dir_suffix. 20921 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20922 case $ac_top_builddir_sub in 20923 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20924 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20925 esac ;; 20926esac 20927ac_abs_top_builddir=$ac_pwd 20928ac_abs_builddir=$ac_pwd$ac_dir_suffix 20929# for backward compatibility: 20930ac_top_builddir=$ac_top_build_prefix 20931 20932case $srcdir in 20933 .) # We are building in place. 20934 ac_srcdir=. 20935 ac_top_srcdir=$ac_top_builddir_sub 20936 ac_abs_top_srcdir=$ac_pwd ;; 20937 [\\/]* | ?:[\\/]* ) # Absolute name. 20938 ac_srcdir=$srcdir$ac_dir_suffix; 20939 ac_top_srcdir=$srcdir 20940 ac_abs_top_srcdir=$srcdir ;; 20941 *) # Relative name. 20942 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20943 ac_top_srcdir=$ac_top_build_prefix$srcdir 20944 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20945esac 20946ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20947 20948 20949 case $ac_mode in 20950 :F) 20951 # 20952 # CONFIG_FILE 20953 # 20954 20955 case $INSTALL in 20956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20957 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20958 esac 20959 ac_MKDIR_P=$MKDIR_P 20960 case $MKDIR_P in 20961 [\\/$]* | ?:[\\/]* ) ;; 20962 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20963 esac 20964_ACEOF 20965 20966cat >>$CONFIG_STATUS <<\_ACEOF 20967# If the template does not know about datarootdir, expand it. 20968# FIXME: This hack should be removed a few years after 2.60. 20969ac_datarootdir_hack=; ac_datarootdir_seen= 20970 20971case `sed -n '/datarootdir/ { 20972 p 20973 q 20974} 20975/@datadir@/p 20976/@docdir@/p 20977/@infodir@/p 20978/@localedir@/p 20979/@mandir@/p 20980' $ac_file_inputs` in 20981*datarootdir*) ac_datarootdir_seen=yes;; 20982*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20983 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20984echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20985_ACEOF 20986cat >>$CONFIG_STATUS <<_ACEOF 20987 ac_datarootdir_hack=' 20988 s&@datadir@&$datadir&g 20989 s&@docdir@&$docdir&g 20990 s&@infodir@&$infodir&g 20991 s&@localedir@&$localedir&g 20992 s&@mandir@&$mandir&g 20993 s&\\\${datarootdir}&$datarootdir&g' ;; 20994esac 20995_ACEOF 20996 20997# Neutralize VPATH when `$srcdir' = `.'. 20998# Shell code in configure.ac might set extrasub. 20999# FIXME: do we really want to maintain this feature? 21000cat >>$CONFIG_STATUS <<_ACEOF 21001 sed "$ac_vpsub 21002$extrasub 21003_ACEOF 21004cat >>$CONFIG_STATUS <<\_ACEOF 21005:t 21006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21007s&@configure_input@&$configure_input&;t t 21008s&@top_builddir@&$ac_top_builddir_sub&;t t 21009s&@srcdir@&$ac_srcdir&;t t 21010s&@abs_srcdir@&$ac_abs_srcdir&;t t 21011s&@top_srcdir@&$ac_top_srcdir&;t t 21012s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21013s&@builddir@&$ac_builddir&;t t 21014s&@abs_builddir@&$ac_abs_builddir&;t t 21015s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21016s&@INSTALL@&$ac_INSTALL&;t t 21017s&@MKDIR_P@&$ac_MKDIR_P&;t t 21018$ac_datarootdir_hack 21019" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21020 21021test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21024 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21025which seems to be undefined. Please make sure it is defined." >&5 21026echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21027which seems to be undefined. Please make sure it is defined." >&2;} 21028 21029 rm -f "$tmp/stdin" 21030 case $ac_file in 21031 -) cat "$tmp/out"; rm -f "$tmp/out";; 21032 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21033 esac 21034 ;; 21035 :H) 21036 # 21037 # CONFIG_HEADER 21038 # 21039_ACEOF 21040 21041# Transform confdefs.h into a sed script `conftest.defines', that 21042# substitutes the proper values into config.h.in to produce config.h. 21043rm -f conftest.defines conftest.tail 21044# First, append a space to every undef/define line, to ease matching. 21045echo 's/$/ /' >conftest.defines 21046# Then, protect against being on the right side of a sed subst, or in 21047# an unquoted here document, in config.status. If some macros were 21048# called several times there might be several #defines for the same 21049# symbol, which is useless. But do not sort them, since the last 21050# AC_DEFINE must be honored. 21051ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21052# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21053# NAME is the cpp macro being defined, VALUE is the value it is being given. 21054# PARAMS is the parameter list in the macro definition--in most cases, it's 21055# just an empty string. 21056ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21057ac_dB='\\)[ (].*,\\1define\\2' 21058ac_dC=' ' 21059ac_dD=' ,' 21060 21061uniq confdefs.h | 21062 sed -n ' 21063 t rset 21064 :rset 21065 s/^[ ]*#[ ]*define[ ][ ]*// 21066 t ok 21067 d 21068 :ok 21069 s/[\\&,]/\\&/g 21070 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21071 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21072 ' >>conftest.defines 21073 21074# Remove the space that was appended to ease matching. 21075# Then replace #undef with comments. This is necessary, for 21076# example, in the case of _POSIX_SOURCE, which is predefined and required 21077# on some systems where configure will not decide to define it. 21078# (The regexp can be short, since the line contains either #define or #undef.) 21079echo 's/ $// 21080s,^[ #]*u.*,/* & */,' >>conftest.defines 21081 21082# Break up conftest.defines: 21083ac_max_sed_lines=50 21084 21085# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21086# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21087# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21088# et cetera. 21089ac_in='$ac_file_inputs' 21090ac_out='"$tmp/out1"' 21091ac_nxt='"$tmp/out2"' 21092 21093while : 21094do 21095 # Write a here document: 21096 cat >>$CONFIG_STATUS <<_ACEOF 21097 # First, check the format of the line: 21098 cat >"\$tmp/defines.sed" <<\\CEOF 21099/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21100/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21101b 21102:def 21103_ACEOF 21104 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21105 echo 'CEOF 21106 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21107 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21108 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21109 grep . conftest.tail >/dev/null || break 21110 rm -f conftest.defines 21111 mv conftest.tail conftest.defines 21112done 21113rm -f conftest.defines conftest.tail 21114 21115echo "ac_result=$ac_in" >>$CONFIG_STATUS 21116cat >>$CONFIG_STATUS <<\_ACEOF 21117 if test x"$ac_file" != x-; then 21118 echo "/* $configure_input */" >"$tmp/config.h" 21119 cat "$ac_result" >>"$tmp/config.h" 21120 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21122echo "$as_me: $ac_file is unchanged" >&6;} 21123 else 21124 rm -f $ac_file 21125 mv "$tmp/config.h" $ac_file 21126 fi 21127 else 21128 echo "/* $configure_input */" 21129 cat "$ac_result" 21130 fi 21131 rm -f "$tmp/out12" 21132# Compute $ac_file's index in $config_headers. 21133_am_arg=$ac_file 21134_am_stamp_count=1 21135for _am_header in $config_headers :; do 21136 case $_am_header in 21137 $_am_arg | $_am_arg:* ) 21138 break ;; 21139 * ) 21140 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21141 esac 21142done 21143echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21144$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21145 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21146 X"$_am_arg" : 'X\(//\)$' \| \ 21147 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21148echo X"$_am_arg" | 21149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21150 s//\1/ 21151 q 21152 } 21153 /^X\(\/\/\)[^/].*/{ 21154 s//\1/ 21155 q 21156 } 21157 /^X\(\/\/\)$/{ 21158 s//\1/ 21159 q 21160 } 21161 /^X\(\/\).*/{ 21162 s//\1/ 21163 q 21164 } 21165 s/.*/./; q'`/stamp-h$_am_stamp_count 21166 ;; 21167 21168 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21169echo "$as_me: executing $ac_file commands" >&6;} 21170 ;; 21171 esac 21172 21173 21174 case $ac_file$ac_mode in 21175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21176 # Strip MF so we end up with the name of the file. 21177 mf=`echo "$mf" | sed -e 's/:.*$//'` 21178 # Check whether this is an Automake generated Makefile or not. 21179 # We used to match only the files named `Makefile.in', but 21180 # some people rename them; so instead we look at the file content. 21181 # Grep'ing the first line is not enough: some people post-process 21182 # each Makefile.in and add a new line on top of each file to say so. 21183 # Grep'ing the whole file is not good either: AIX grep has a line 21184 # limit of 2048, but all sed's we know have understand at least 4000. 21185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21186 dirpart=`$as_dirname -- "$mf" || 21187$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21188 X"$mf" : 'X\(//\)[^/]' \| \ 21189 X"$mf" : 'X\(//\)$' \| \ 21190 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21191echo X"$mf" | 21192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21193 s//\1/ 21194 q 21195 } 21196 /^X\(\/\/\)[^/].*/{ 21197 s//\1/ 21198 q 21199 } 21200 /^X\(\/\/\)$/{ 21201 s//\1/ 21202 q 21203 } 21204 /^X\(\/\).*/{ 21205 s//\1/ 21206 q 21207 } 21208 s/.*/./; q'` 21209 else 21210 continue 21211 fi 21212 # Extract the definition of DEPDIR, am__include, and am__quote 21213 # from the Makefile without running `make'. 21214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21215 test -z "$DEPDIR" && continue 21216 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21217 test -z "am__include" && continue 21218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21219 # When using ansi2knr, U may be empty or an underscore; expand it 21220 U=`sed -n 's/^U = //p' < "$mf"` 21221 # Find all dependency output files, they are included files with 21222 # $(DEPDIR) in their names. We invoke sed twice because it is the 21223 # simplest approach to changing $(DEPDIR) to its actual value in the 21224 # expansion. 21225 for file in `sed -n " 21226 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21227 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21228 # Make sure the directory exists. 21229 test -f "$dirpart/$file" && continue 21230 fdir=`$as_dirname -- "$file" || 21231$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21232 X"$file" : 'X\(//\)[^/]' \| \ 21233 X"$file" : 'X\(//\)$' \| \ 21234 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21235echo X"$file" | 21236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21237 s//\1/ 21238 q 21239 } 21240 /^X\(\/\/\)[^/].*/{ 21241 s//\1/ 21242 q 21243 } 21244 /^X\(\/\/\)$/{ 21245 s//\1/ 21246 q 21247 } 21248 /^X\(\/\).*/{ 21249 s//\1/ 21250 q 21251 } 21252 s/.*/./; q'` 21253 { as_dir=$dirpart/$fdir 21254 case $as_dir in #( 21255 -*) as_dir=./$as_dir;; 21256 esac 21257 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21258 as_dirs= 21259 while :; do 21260 case $as_dir in #( 21261 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21262 *) as_qdir=$as_dir;; 21263 esac 21264 as_dirs="'$as_qdir' $as_dirs" 21265 as_dir=`$as_dirname -- "$as_dir" || 21266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21267 X"$as_dir" : 'X\(//\)[^/]' \| \ 21268 X"$as_dir" : 'X\(//\)$' \| \ 21269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21270echo X"$as_dir" | 21271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21272 s//\1/ 21273 q 21274 } 21275 /^X\(\/\/\)[^/].*/{ 21276 s//\1/ 21277 q 21278 } 21279 /^X\(\/\/\)$/{ 21280 s//\1/ 21281 q 21282 } 21283 /^X\(\/\).*/{ 21284 s//\1/ 21285 q 21286 } 21287 s/.*/./; q'` 21288 test -d "$as_dir" && break 21289 done 21290 test -z "$as_dirs" || eval "mkdir $as_dirs" 21291 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21292echo "$as_me: error: cannot create directory $as_dir" >&2;} 21293 { (exit 1); exit 1; }; }; } 21294 # echo "creating $dirpart/$file" 21295 echo '# dummy' > "$dirpart/$file" 21296 done 21297done 21298 ;; 21299 21300 esac 21301done # for ac_tag 21302 21303 21304{ (exit 0); exit 0; } 21305_ACEOF 21306chmod +x $CONFIG_STATUS 21307ac_clean_files=$ac_clean_files_save 21308 21309 21310# configure is writing to config.log, and then calls config.status. 21311# config.status does its own redirection, appending to config.log. 21312# Unfortunately, on DOS this fails, as config.log is still kept open 21313# by configure, so config.status won't be able to write to it; its 21314# output is simply discarded. So we exec the FD to /dev/null, 21315# effectively closing config.log, so it can be properly (re)opened and 21316# appended to by config.status. When coming back to configure, we 21317# need to make the FD available again. 21318if test "$no_create" != yes; then 21319 ac_cs_success=: 21320 ac_config_status_args= 21321 test "$silent" = yes && 21322 ac_config_status_args="$ac_config_status_args --quiet" 21323 exec 5>/dev/null 21324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21325 exec 5>>config.log 21326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21327 # would make configure fail if this is the last instruction. 21328 $ac_cs_success || { (exit 1); exit 1; } 21329fi 21330 21331